Live Demo — yFiles in Action
30–45 min | Online | No install required
For Developers, Product Mangers & Executives
- Interactive graph visualization in real time
- Integration example
- Live Q&A and next step recommendations
30–45 minutes | 1:1 or team session | Online (Zoom / Teams)
No install required | We show live code
Book a free live demo
Size Constraint Provider Demo
This demo shows how resizing of nodes can be restricted.
This is done with custom implementations of the interface
INodeSizeConstraintProvider
that are added to the lookup of the nodes.
Things to Try
Select and resize the nodes.
Node Types
-
Blue nodes
cannot shrink. Additionally, neither side can become larger than three times its initial
size in each resizing operation.
-
The minimum size of a
green node
is the size of its label. It gets never smaller than that.
-
The
orange node
must always encompass the black rectangle. Additionally, it has predefined minimum and
maximum sizes.