Release 6.15.0
New Functionality
-
When a new node is dropped onto some existing node via the drop manager, the
onVertexAddedcallback onSurfaceDropManagernow passes back information about the vertex on which the new node was dropped. -
Support for the
onVertexAddedcallback was added toShapeLibraryPalette -
Added new
panWithMetaKeyoption to Surface render params. With this flag you can instruct a Surface to only pan when the user is holding down the "meta" key (command key on Macs, ctrl key on Windows).
Further reading
-
Read more about the
onVertexAddedoption onShapeLibraryPalettehere: https://docs.jsplumbtoolkit.com/toolkit/7.x/lib/shape-libraries#getting-notification-of-a-new-vertex -
Read more about the
dropTargetoption onSurfaceDropManagerhere: https://docs.jsplumbtoolkit.com/toolkit/7.x/lib/drag-and-drop#getting-notification-of-a-new-vertex
Start a free trial
Interested in the concepts discussed in this article? JsPlumb is now in maintenance mode, but the good news is that we've released a bigger and better library - VisuallyJs. If you can do it in JsPlumb you can do it more easily in VisuallyJs.

To read more about VisuallyJs, check out the home page, or if you want to get started on a trial right now, head over to the trial page at https://visuallyjs.com/trial
Get in touch!
If you'd like to discuss any of the ideas/concepts in this article we'd love to hear from you - drop us a line at hello@jsplumbtoolkit.com.