You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is their any way to disable the drag behavior of the Edge or Node separately ? Currently if we define graph as read only it disable movement of all items on the graph. @ajbogh
You can pass a canCreateEdge and canSwapEdge function that returns false when the user can't draw or drag edges. You can also pass your own renderNode function that returns null when it shouldn't render a node. Perhaps you would like to extend the "can" functions to include other things, like "canDragNode", "canCreateNode", "canSelectNode", and "canSelectEdge".
If you're willing to submit a PR, we would appreciate the support.
Activity
ajbogh commentedon Aug 27, 2020
You can pass a canCreateEdge and canSwapEdge function that returns false when the user can't draw or drag edges. You can also pass your own renderNode function that returns null when it shouldn't render a node. Perhaps you would like to extend the "can" functions to include other things, like "canDragNode", "canCreateNode", "canSelectNode", and "canSelectEdge".
If you're willing to submit a PR, we would appreciate the support.
man-person commentedon Oct 21, 2020
any news with this one?