Wiki

Clone wiki

Tree Visualization API / connectTo

Operator.js

connectTofillorderreshaperotatescalesetStrokeColorsetStrokeWidthslicesquarifystriptranslate

Function connectTo

Assigns the anchor point to connect with explicit edges.

connectTo(anchorX,anchorY,condition);      

Parameters


anchorX = (LEFT|RIGHT|MIDDLE)
anchorY = (TOP|BOTTOM|MIDDLE)
condition = optional condition if operator is to be carried out. If left out, it is assumed TRUE

Example


//Perform strip subdivision among leaves.
....
POSTLAYOUT:
{
...
connectTo(MIDDLE, TOP);
}

Updated