arlas-d3 / Exports / OneSelectionDonut

Class: OneSelectionDonut

Hierarchy

OneSelectionDonut

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new OneSelectionDonut()

Inherited from

AbstractDonut.constructor

Properties

arc

Protected arc: Arc<any, DefaultArcObject>

Inherited from

AbstractDonut.arc

Defined in

src/donuts/AbstractDonut.ts:34


donutContext

Protected donutContext: any

Inherited from

AbstractDonut.donutContext

Defined in

src/donuts/AbstractDonut.ts:31


donutDimensions

donutDimensions: DonutDimensions

Inherited from

AbstractDonut.donutDimensions

Defined in

src/donuts/AbstractDonut.ts:30


donutParams

donutParams: DonutParams

Inherited from

AbstractDonut.donutParams

Defined in

src/donuts/AbstractDonut.ts:29


donutTooltip

Protected donutTooltip: DonutTooltip

Inherited from

AbstractDonut.donutTooltip

Defined in

src/donuts/AbstractDonut.ts:37


lastSelectedNode

Protected lastSelectedNode: DonutNode = null

Inherited from

AbstractDonut.lastSelectedNode

Defined in

src/donuts/AbstractDonut.ts:33


svgNode

Protected svgNode: any

Inherited from

AbstractDonut.svgNode

Defined in

src/donuts/AbstractDonut.ts:32


x

Protected x: ScaleLinear<number, number, never>

Inherited from

AbstractDonut.x

Defined in

src/donuts/AbstractDonut.ts:35


y

Protected y: ScalePower<number, number, never>

Inherited from

AbstractDonut.y

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

Inherited from

AbstractDonut.addSelectedNode

Defined in

src/donuts/AbstractDonut.ts:157


createDonutArcs

Protected createDonutArcs(): void

description Creates donuts arcs

Returns

void

Inherited from

AbstractDonut.createDonutArcs

Defined in

src/donuts/AbstractDonut.ts:73


dataChange

dataChange(newData): void

Parameters

Name Type
newData TreeNode

Returns

void

Overrides

AbstractDonut.dataChange

Defined in

src/donuts/OneSelectionDonut.ts:25


deselectAll

Protected deselectAll(): void

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

Returns

void

Inherited from

AbstractDonut.deselectAll

Defined in

src/donuts/AbstractDonut.ts:250


hoverNode

Protected hoverNode(hoveredNode): void

Parameters

Name Type
hoveredNode DonutNode

Returns

void

Overrides

AbstractDonut.hoverNode

Defined in

src/donuts/OneSelectionDonut.ts:49


initializeDonutDimensions

Protected initializeDonutDimensions(): void

description Inialize donuts dimensions

Returns

void

Inherited from

AbstractDonut.initializeDonutDimensions

Defined in

src/donuts/AbstractDonut.ts:86


onClick

Protected onClick(event, clickedNode): void

Parameters

Name Type
event PointerEvent
clickedNode DonutNode

Returns

void

Overrides

AbstractDonut.onClick

Defined in

src/donuts/OneSelectionDonut.ts:58


onMouseLeavesContext

Protected onMouseLeavesContext(): void

Returns

void

Inherited from

AbstractDonut.onMouseLeavesContext

Defined in

src/donuts/AbstractDonut.ts:342


onMouseOut

Protected onMouseOut(): void

Returns

void

Inherited from

AbstractDonut.onMouseOut

Defined in

src/donuts/AbstractDonut.ts:335


onMouseOver

Protected onMouseOver(event, hoveredNode): void

Parameters

Name Type
event MouseEvent
hoveredNode DonutNode

Returns

void

Inherited from

AbstractDonut.onMouseOver

Defined in

src/donuts/AbstractDonut.ts:312


onSelectionChange

onSelectionChange(selectedArcsList): void

Parameters

Name Type
selectedArcsList SimpleNode[][]

Returns

void

Overrides

AbstractDonut.onSelectionChange

Defined in

src/donuts/OneSelectionDonut.ts:37


plot

plot(): void

description Plots the donut

Returns

void

Inherited from

AbstractDonut.plot

Defined in

src/donuts/AbstractDonut.ts:45


plotDonut

Protected plotDonut(): void

description Draws the donuts arcs

Returns

void

Inherited from

AbstractDonut.plotDonut

Defined in

src/donuts/AbstractDonut.ts:133


reapplySelection

Protected reapplySelection(): void

description Set isSelected attribute to true giving the selectedArcsList

Returns

void

Inherited from

AbstractDonut.reapplySelection

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

Inherited from

AbstractDonut.removeAllSimilarNodesOfSameRing

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

Inherited from

AbstractDonut.removeHigherNodes

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

Inherited from

AbstractDonut.removeSelectedNode

Defined in

src/donuts/AbstractDonut.ts:175


removeUnExistingNodes

Protected removeUnExistingNodes(): void

description Removes the unexisting nodes in the donut from the selectedArcsList

Returns

void

Inherited from

AbstractDonut.removeUnExistingNodes

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

Inherited from

AbstractDonut.resize

Defined in

src/donuts/AbstractDonut.ts:58


setTooltipPosition

Protected setTooltipPosition(event): void

Parameters

Name Type
event any

Returns

void

Inherited from

AbstractDonut.setTooltipPosition

Defined in

src/donuts/AbstractDonut.ts:354


showTooltip

Protected showTooltip(node): void

Parameters

Name Type
node DonutNode

Returns

void

Inherited from

AbstractDonut.showTooltip

Defined in

src/donuts/AbstractDonut.ts:346


structureDataToNodes

Protected structureDataToNodes(): void

description Transforms input data to d3 nodes

Returns

void

Inherited from

AbstractDonut.structureDataToNodes

Defined in

src/donuts/AbstractDonut.ts:109


styleNodes

Protected styleNodes(): void

description Styles the nodes according to their states

Returns

void

Inherited from

AbstractDonut.styleNodes

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

Inherited from

AbstractDonut.tweenNode

Defined in

src/donuts/AbstractDonut.ts:299


unhoverNodesButNotSelected

Protected unhoverNodesButNotSelected(): void

Returns

void

Overrides

AbstractDonut.unhoverNodesButNotSelected

Defined in

src/donuts/OneSelectionDonut.ts:54