arlas-d3 / Exports / AbstractDonut

Class: AbstractDonut

Hierarchy

  • AbstractDonut

OneSelectionDonut

MultiSelectionDonut

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new AbstractDonut()

Properties

arc

Protected arc: Arc<any, DefaultArcObject>

Defined in

src/donuts/AbstractDonut.ts:34


donutContext

Protected donutContext: any

Defined in

src/donuts/AbstractDonut.ts:31


donutDimensions

donutDimensions: DonutDimensions

Defined in

src/donuts/AbstractDonut.ts:30


donutParams

donutParams: DonutParams

Defined in

src/donuts/AbstractDonut.ts:29


donutTooltip

Protected donutTooltip: DonutTooltip

Defined in

src/donuts/AbstractDonut.ts:37


lastSelectedNode

Protected lastSelectedNode: DonutNode = null

Defined in

src/donuts/AbstractDonut.ts:33


svgNode

Protected svgNode: any

Defined in

src/donuts/AbstractDonut.ts:32


x

Protected x: ScaleLinear<number, number, never>

Defined in

src/donuts/AbstractDonut.ts:35


y

Protected y: ScalePower<number, number, never>

Defined in

src/donuts/AbstractDonut.ts:36

Methods

addSelectedNode

Protected addSelectedNode(clickedNode): void

description Add the selected node to selectedArcsList

Parameters

Name Type Description
clickedNode DonutNode The selected node on the donut

Returns

void

Defined in

src/donuts/AbstractDonut.ts:157


createDonutArcs

Protected createDonutArcs(): void

description Creates donuts arcs

Returns

void

Defined in

src/donuts/AbstractDonut.ts:73


dataChange

Abstract dataChange(newData): void

Parameters

Name Type
newData TreeNode

Returns

void

Defined in

src/donuts/AbstractDonut.ts:65


deselectAll

Protected deselectAll(): void

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

Returns

void

Defined in

src/donuts/AbstractDonut.ts:250


hoverNode

Protected Abstract hoverNode(hoveredNode): any

Parameters

Name Type
hoveredNode DonutNode

Returns

any

Defined in

src/donuts/AbstractDonut.ts:372


initializeDonutDimensions

Protected initializeDonutDimensions(): void

description Inialize donuts dimensions

Returns

void

Defined in

src/donuts/AbstractDonut.ts:86


onClick

Protected Abstract onClick(event, clickedNode): void

Parameters

Name Type
event PointerEvent
clickedNode DonutNode

Returns

void

Defined in

src/donuts/AbstractDonut.ts:374


onMouseLeavesContext

Protected onMouseLeavesContext(): void

Returns

void

Defined in

src/donuts/AbstractDonut.ts:342


onMouseOut

Protected onMouseOut(): void

Returns

void

Defined in

src/donuts/AbstractDonut.ts:335


onMouseOver

Protected onMouseOver(event, hoveredNode): void

Parameters

Name Type
event MouseEvent
hoveredNode DonutNode

Returns

void

Defined in

src/donuts/AbstractDonut.ts:312


onSelectionChange

Abstract onSelectionChange(selectedArcsList): void

Parameters

Name Type
selectedArcsList SimpleNode[][]

Returns

void

Defined in

src/donuts/AbstractDonut.ts:66


plot

plot(): void

description Plots the donut

Returns

void

Defined in

src/donuts/AbstractDonut.ts:45


plotDonut

Protected plotDonut(): void

description Draws the donuts arcs

Returns

void

Defined in

src/donuts/AbstractDonut.ts:133


reapplySelection

Protected reapplySelection(): void

description Set isSelected attribute to true giving the selectedArcsList

Returns

void

Defined in

src/donuts/AbstractDonut.ts:259


removeAllSimilarNodesOfSameRing

Protected removeAllSimilarNodesOfSameRing(selectedArc): void

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

Parameters

Name Type Description
selectedArc SimpleNode[] Path from the selected arc to the ultimate parent (as an array)

Returns

void

Defined in

src/donuts/AbstractDonut.ts:234


removeHigherNodes

Protected removeHigherNodes(clickedNode): void

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

Defined in

src/donuts/AbstractDonut.ts:195


removeSelectedNode

Protected removeSelectedNode(clickedNode): void

description Removes the selected node from selectedArcsList

Parameters

Name Type Description
clickedNode DonutNode The unselected node from the donut

Returns

void

Defined in

src/donuts/AbstractDonut.ts:175


removeUnExistingNodes

Protected removeUnExistingNodes(): void

description Removes the unexisting nodes in the donut from the selectedArcsList

Returns

void

Defined in

src/donuts/AbstractDonut.ts:218


resize

resize(donutContainer): void

description Resizes donut on window resize event.

Parameters

Name Type
donutContainer HTMLElement

Returns

void

Defined in

src/donuts/AbstractDonut.ts:58


setTooltipPosition

Protected setTooltipPosition(event): void

Parameters

Name Type
event any

Returns

void

Defined in

src/donuts/AbstractDonut.ts:354


showTooltip

Protected showTooltip(node): void

Parameters

Name Type
node DonutNode

Returns

void

Defined in

src/donuts/AbstractDonut.ts:346


structureDataToNodes

Protected structureDataToNodes(): void

description Transforms input data to d3 nodes

Returns

void

Defined in

src/donuts/AbstractDonut.ts:109


styleNodes

Protected styleNodes(): void

description Styles the nodes according to their states

Returns

void

Defined in

src/donuts/AbstractDonut.ts:271


tweenNode

Protected tweenNode(node, duration): void

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

Defined in

src/donuts/AbstractDonut.ts:299


unhoverNodesButNotSelected

Protected Abstract unhoverNodesButNotSelected(): any

Returns

any

Defined in

src/donuts/AbstractDonut.ts:373