Optional
allowWhen in tap mode, allow addition of new vertices simply by clicking, instead of requiring a shape be drawn. (When this is true, the drawing method also still works)
Optional
dragOptional dimensions to use for elements being dragged.
Optional
ignoreIf true, the manager will ignore any element constrain function that may be set on the surface
Optional
ignoreBy default, the DropManager will apply a scale
transform to elements that are being dragged so that they appear
at the same size as the Surface they're being dragged to. Setting this flag to true will switch off that behaviour.
Optional
lassoWhen in 'tap' mode, you can optionally provide a class to set on the lasso used by the vertex drawing plugin.
Optional
modeMode to operate in - 'drag' or 'tap'. Defaults to 'drag'.
A selector that identifies the draggable elements inside source
.
The element that contains draggable elements.
The Surface to attach to. Required.
Optional
vertexWhen in tap mode, this function can be used to provide the element shown to the user as a new vertex is being drawn.
Optional
vertexWhen in tap mode this function is repeatedly called as the mouse is dragging a new shape. It provides a hook for you to update the element's appearance.
Options for the DropManager.