Layout Features Tutorial
Hierarchic Layout with Sequence Constraints
This demo shows how to customize the order of the nodes in a layer (sequencing) when using
Hierarchic Layout
.
Sequence constraints
Nodes 2, 6 and 11 are configured to be placed at the beginning (or head) of the sequence
with the
placeAtHead
method.
Click the button in the toolbar to toggle between
Hierarchic Layout
with and without configured constraints.
Code Snippet
You can copy the code snippet to configure the layout from
GitHub
.
Demos
See the
Sequence Constraints
demo for more elaborate examples of the constraints functionality.
Documentation
See the
Constrained Node Sequencing
section in the Developer's Guide for an in-depth discussion of the relevant concepts.
See the
SequenceConstraintData
API documentation for detailed information on all available constraints.