Custom Anchor Position

The default anchors can appear at the top, bottom, left, or right center of the node but it does not always satisfy developers' specific needs. So Svelvet 6.0 introduces custom anchor position as a new feature. Developers can now pass in a custom callback function to decide where they want the anchors to appear on the node.

Custom Anchor position demo

Custom Anchor Position

Click here for a sandbox!