OptionalallowWhether or not to allow drop on whitespace in the canvas. Defaults to true.
OptionalallowWhether or not to allow drop on edge. Defaults to false.
OptionalallowWhether or not to allow drop on existing vertices. Defaults to true.
OptionalcanvasOptional filter to test if objects may be dropped on the canvas.
OptionalcanvasOptional selector specifying what parts of the surface's canvas should be considered whitespace. If you're using a decorator, for instance, you might want to add a selector for that decorator's elements so that items can be dropped onto them.
OptionaldataFunction to use to get a dataset for an item that is being dragged. If omitted, JsPlumb will use a default data generator that extracts data values from any data-jtk-*** attribute
on the element being dragged.
OptionaldragOptional size to use for dragged elements.
OptionalgroupFunction to use to determine whether an item that is being dragged represents a group.
OptionalonOptional callback that will be invoked after a new vertex has been dropped and added to the dataset.
CSS 3 selector identifying what child elements of container are draggable.
OptionalsurfaceID of the surface to attach to. This is optional; JsPlumb will use the default surface ID if you do not provide this. For apps where there's only one surface there is no need to provide this.
OptionaltypeFunction to use to get the type of an item that is being dragged.
Supported props for the SurfaceDrop mixin.