Svelvet now has an optional boundary that users can implement into their diagrams!
To access this feature, pass the
boundary prop to your
Svelvet application and set it equal to an object.
boundary object an
y key and set their values to a
y properties represent the width and height of your
boundary and will create
boundary starting from
0 to the number specified.
Do not set node positions to negative values while using the
Implementing Diagram Boundaries
See the Code Sandbox below to see implementation!