Wiki
Clone wikiTree Visualization API / slice
Operator.js
connectTo | fill | order | reshape | rotate | scale | setStrokeColor | setStrokeWidth | slice | squarify | strip | translate |
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