Wiki

Clone wiki

Tree Visualization API / slice

Operator.js

connectTofillorderreshaperotatescalesetStrokeColorsetStrokeWidthslicesquarifystriptranslate

Function slice

Performs a slicing subdivision of available space as in the Slice&Dice layout.
Recommended stage: ALLOCATION

Function definition


slice(direction, attribute, condition)           

Parameters


direction = (HORIZONTAL|VERTICAL)
attribute = ("leaves"|"children"|"strahlernum",…)
condition = optional condition if operator is to be carried out. If left out, it is assumed TRUE

Example


//distribute the space horizontally among leaves.
ALLOCATE:
{
slice(HORIZONTAL,"leaves");
}

Updated