Skip to content

arlas-d3 > "donuts/OneSelectionDonut" > OneSelectionDonut

Class: OneSelectionDonut

Hierarchy

AbstractDonut

↳ OneSelectionDonut

Index

Properties

Methods

Object literals


Properties

<Protected> arc

● arc: Arc<any, DefaultArcObject>

Inherited from AbstractDonut.arc

Defined in donuts/AbstractDonut.ts:34


<Protected> donutContext

● donutContext: any

Inherited from AbstractDonut.donutContext

Defined in donuts/AbstractDonut.ts:31


donutDimensions

● donutDimensions: DonutDimensions

Inherited from AbstractDonut.donutDimensions

Defined in donuts/AbstractDonut.ts:30


donutParams

● donutParams: DonutParams

Inherited from AbstractDonut.donutParams

Defined in donuts/AbstractDonut.ts:29


<Protected> lastSelectedNode

● lastSelectedNode: DonutNode = null

Inherited from AbstractDonut.lastSelectedNode

Defined in donuts/AbstractDonut.ts:33


<Protected> svgNode

● svgNode: any

Inherited from AbstractDonut.svgNode

Defined in donuts/AbstractDonut.ts:32


<Protected> x

● x: ScaleLinear<number, number>

Inherited from AbstractDonut.x

Defined in donuts/AbstractDonut.ts:35


<Protected> y

● y: ScalePower<number, number>

Inherited from AbstractDonut.y

Defined in donuts/AbstractDonut.ts:36


Methods

<Protected> addSelectedNode

addSelectedNode(clickedNode: DonutNode): void

Inherited from AbstractDonut.addSelectedNode

Defined in donuts/AbstractDonut.ts:148

description: Add the selected node to selectedArcsList

Parameters:

Name Type Description
clickedNode DonutNode The selected node on the donut

Returns: void


<Protected> createDonutArcs

createDonutArcs(): void

Inherited from AbstractDonut.createDonutArcs

Defined in donuts/AbstractDonut.ts:73

description: Creates donuts arcs

Returns: void


dataChange

dataChange(newData: TreeNode): void

Overrides AbstractDonut.dataChange

Defined in donuts/OneSelectionDonut.ts:25

Parameters:

Name Type
newData TreeNode

Returns: void


<Protected> deselectAll

deselectAll(): void

Inherited from AbstractDonut.deselectAll

Defined in donuts/AbstractDonut.ts:241

description: Set isSelected attribute to false for all the donut's nodes

Returns: void


<Protected> hoverNode

hoverNode(hoveredNode: DonutNode): void

Overrides AbstractDonut.hoverNode

Defined in donuts/OneSelectionDonut.ts:49

Parameters:

Name Type
hoveredNode DonutNode

Returns: void


<Protected> initializeDonutDimensions

initializeDonutDimensions(): void

Inherited from AbstractDonut.initializeDonutDimensions

Defined in donuts/AbstractDonut.ts:86

description: Inialize donuts dimensions

Returns: void


<Protected> onClick

onClick(clickedNode: DonutNode): void

Overrides AbstractDonut.onClick

Defined in donuts/OneSelectionDonut.ts:58

Parameters:

Name Type
clickedNode DonutNode

Returns: void


<Protected> onMouseLeavesContext

onMouseLeavesContext(): void

Inherited from AbstractDonut.onMouseLeavesContext

Defined in donuts/AbstractDonut.ts:327

Returns: void


<Protected> onMouseOut

onMouseOut(): void

Inherited from AbstractDonut.onMouseOut

Defined in donuts/AbstractDonut.ts:321

Returns: void


<Protected> onMouseOver

onMouseOver(hoveredNode: DonutNode): void

Inherited from AbstractDonut.onMouseOver

Defined in donuts/AbstractDonut.ts:298

Parameters:

Name Type
hoveredNode DonutNode

Returns: void


onSelectionChange

onSelectionChange(selectedArcsList: Array<Array<SimpleNode>>): void

Overrides AbstractDonut.onSelectionChange

Defined in donuts/OneSelectionDonut.ts:37

Parameters:

Name Type
selectedArcsList Array<Array<SimpleNode>>

Returns: void


plot

plot(): void

Inherited from AbstractDonut.plot

Defined in donuts/AbstractDonut.ts:45

description: Plots the donut

Returns: void


<Protected> plotDonut

plotDonut(): void

Inherited from AbstractDonut.plotDonut

Defined in donuts/AbstractDonut.ts:124

description: Draws the donuts arcs

Returns: void


<Protected> reapplySelection

reapplySelection(): void

Inherited from AbstractDonut.reapplySelection

Defined in donuts/AbstractDonut.ts:250

description: Set isSelected attribute to true giving the selectedArcsList

Returns: void


<Protected> removeAllSimilarNodesOfSameRing

removeAllSimilarNodesOfSameRing(selectedArc: Array<SimpleNode>): void

Inherited from AbstractDonut.removeAllSimilarNodesOfSameRing

Defined in donuts/AbstractDonut.ts:225

description: REMOVES ALL THE NODES OF SAME RING HAVING THE SAME VALUE FROM THE SELECTEDARCSLIST,

Parameters:

Name Type Description
selectedArc Array<SimpleNode> Path from the selected arc to the ultimate parent (as an array)

Returns: void


<Protected> removeHigherNodes

removeHigherNodes(clickedNode: DonutNode): void

Inherited from AbstractDonut.removeHigherNodes

Defined in donuts/AbstractDonut.ts:186

description: Removes from selectArcsList all the parent nodes of the clicked node that are selected

Parameters:

Name Type Description
clickedNode DonutNode The selected/unselected node of the donut

Returns: void


<Protected> removeSelectedNode

removeSelectedNode(clickedNode: DonutNode): void

Inherited from AbstractDonut.removeSelectedNode

Defined in donuts/AbstractDonut.ts:166

description: Removes the selected node from selectedArcsList

Parameters:

Name Type Description
clickedNode DonutNode The unselected node from the donut

Returns: void


<Protected> removeUnExistingNodes

removeUnExistingNodes(): void

Inherited from AbstractDonut.removeUnExistingNodes

Defined in donuts/AbstractDonut.ts:209

description: Removes the unexisting nodes in the donut from the selectedArcsList

Returns: void


resize

resize(donutContainer: HTMLElement): void

Inherited from AbstractDonut.resize

Defined in donuts/AbstractDonut.ts:58

description: Resizes donut on window resize event.

Parameters:

Name Type
donutContainer HTMLElement

Returns: void


<Protected> setTooltipPosition

setTooltipPosition(): void

Inherited from AbstractDonut.setTooltipPosition

Defined in donuts/AbstractDonut.ts:342

Returns: void


<Protected> showTooltip

showTooltip(node: DonutNode): void

Inherited from AbstractDonut.showTooltip

Defined in donuts/AbstractDonut.ts:331

Parameters:

Name Type
node DonutNode

Returns: void


<Protected> structureDataToNodes

structureDataToNodes(): void

Inherited from AbstractDonut.structureDataToNodes

Defined in donuts/AbstractDonut.ts:100

description: Transforms input data to d3 nodes

Returns: void


<Protected> styleNodes

styleNodes(): void

Inherited from AbstractDonut.styleNodes

Defined in donuts/AbstractDonut.ts:262

description: Styles the nodes according to their states

Returns: void


<Protected> tweenNode

tweenNode(node: DonutNode, duration: number): void

Inherited from AbstractDonut.tweenNode

Defined in donuts/AbstractDonut.ts:285

description: Apply animation after clicking on the node.

Parameters:

Name Type Description
node DonutNode Clicked on node
duration number Duration of the animation

Returns: void


<Protected> unhoverNodesButNotSelected

unhoverNodesButNotSelected(): void

Overrides AbstractDonut.unhoverNodesButNotSelected

Defined in donuts/OneSelectionDonut.ts:54

Returns: void


Object literals

<Protected> donutTooltip

donutTooltip: object

Inherited from AbstractDonut.donutTooltip

Defined in donuts/AbstractDonut.ts:37

nodeColor

● nodeColor: null = null

Defined in donuts/AbstractDonut.ts:39


nodeCount

● nodeCount: null = null

Defined in donuts/AbstractDonut.ts:39


nodeName

● nodeName: null = null

Defined in donuts/AbstractDonut.ts:38


nodeParents

● nodeParents: null = null

Defined in donuts/AbstractDonut.ts:38


xPosition

● xPosition: null = null

Defined in donuts/AbstractDonut.ts:38


yPosition

● yPosition: null = null

Defined in donuts/AbstractDonut.ts:38