Snap-To-Grid

Snap-To-Grid is a lively feature that Svelvet offers for a unique user experience when building out your data diagram-flow. Although simplisitc in its design, snap-to-grid can be as energetic or as subtle as you want.

The diagram above features the snap-to-grid functionality whenver a node's position is changed. Upon Svelvet 4.0's release, snap-to-grid can easily be modifed within the Svelvet component declaration by changing the values passed into the snap and snapTo props.

< Svelvet snap={true} snapTo={30} />
If no specified numerical value is passed into snapTo, the default value is set to 30.