Skip to content

arlas-d3 > "donuts/AbstractDonut" > AbstractDonut

Class: AbstractDonut

Hierarchy

AbstractDonut

MultiSelectionDonut

OneSelectionDonut

Index

Properties

Methods

Object literals


Properties

<Protected> arc

● arc: Arc<any, DefaultArcObject>

Defined in donuts/AbstractDonut.ts:34


<Protected> donutContext

● donutContext: any

Defined in donuts/AbstractDonut.ts:31


donutDimensions

● donutDimensions: DonutDimensions

Defined in donuts/AbstractDonut.ts:30


donutParams

● donutParams: DonutParams

Defined in donuts/AbstractDonut.ts:29


<Protected> lastSelectedNode

● lastSelectedNode: DonutNode = null

Defined in donuts/AbstractDonut.ts:33


<Protected> svgNode

● svgNode: any

Defined in donuts/AbstractDonut.ts:32


<Protected> x

● x: ScaleLinear<number, number>

Defined in donuts/AbstractDonut.ts:35


<Protected> y

● y: ScalePower<number, number>

Defined in donuts/AbstractDonut.ts:36


Methods

<Protected> addSelectedNode

addSelectedNode(clickedNode: DonutNode): void

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

Defined in donuts/AbstractDonut.ts:73

description: Creates donuts arcs

Returns: void


<Abstract> dataChange

dataChange(newData: TreeNode): void

Defined in donuts/AbstractDonut.ts:65

Parameters:

Name Type
newData TreeNode

Returns: void


<Protected> deselectAll

deselectAll(): void

Defined in donuts/AbstractDonut.ts:241

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

Returns: void


<Protected>``<Abstract> hoverNode

hoverNode(hoveredNode: DonutNode): any

Defined in donuts/AbstractDonut.ts:359

Parameters:

Name Type
hoveredNode DonutNode

Returns: any


<Protected> initializeDonutDimensions

initializeDonutDimensions(): void

Defined in donuts/AbstractDonut.ts:86

description: Inialize donuts dimensions

Returns: void


<Protected>``<Abstract> onClick

onClick(clickedNode: DonutNode): void

Defined in donuts/AbstractDonut.ts:361

Parameters:

Name Type
clickedNode DonutNode

Returns: void


<Protected> onMouseLeavesContext

onMouseLeavesContext(): void

Defined in donuts/AbstractDonut.ts:327

Returns: void


<Protected> onMouseOut

onMouseOut(): void

Defined in donuts/AbstractDonut.ts:321

Returns: void


<Protected> onMouseOver

onMouseOver(hoveredNode: DonutNode): void

Defined in donuts/AbstractDonut.ts:298

Parameters:

Name Type
hoveredNode DonutNode

Returns: void


<Abstract> onSelectionChange

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

Defined in donuts/AbstractDonut.ts:66

Parameters:

Name Type
selectedArcsList Array<Array<SimpleNode>>

Returns: void


plot

plot(): void

Defined in donuts/AbstractDonut.ts:45

description: Plots the donut

Returns: void


<Protected> plotDonut

plotDonut(): void

Defined in donuts/AbstractDonut.ts:124

description: Draws the donuts arcs

Returns: void


<Protected> reapplySelection

reapplySelection(): void

Defined in donuts/AbstractDonut.ts:250

description: Set isSelected attribute to true giving the selectedArcsList

Returns: void


<Protected> removeAllSimilarNodesOfSameRing

removeAllSimilarNodesOfSameRing(selectedArc: Array<SimpleNode>): void

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

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

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

Defined in donuts/AbstractDonut.ts:209

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

Returns: void


resize

resize(donutContainer: HTMLElement): void

Defined in donuts/AbstractDonut.ts:58

description: Resizes donut on window resize event.

Parameters:

Name Type
donutContainer HTMLElement

Returns: void


<Protected> setTooltipPosition

setTooltipPosition(): void

Defined in donuts/AbstractDonut.ts:342

Returns: void


<Protected> showTooltip

showTooltip(node: DonutNode): void

Defined in donuts/AbstractDonut.ts:331

Parameters:

Name Type
node DonutNode

Returns: void


<Protected> structureDataToNodes

structureDataToNodes(): void

Defined in donuts/AbstractDonut.ts:100

description: Transforms input data to d3 nodes

Returns: void


<Protected> styleNodes

styleNodes(): void

Defined in donuts/AbstractDonut.ts:262

description: Styles the nodes according to their states

Returns: void


<Protected> tweenNode

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

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>``<Abstract> unhoverNodesButNotSelected

unhoverNodesButNotSelected(): any

Defined in donuts/AbstractDonut.ts:360

Returns: any


Object literals

<Protected> donutTooltip

donutTooltip: object

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