Specifies if the graph should scroll automatically. Default is true.
Whether the event source should be checked in {@link graphContainerEvent}. Default is true.
Holds the current drop target under the mouse.
Reference to the mxGraph that is the current drop target.
Holds an mxGuide for the currentGraph if {@link dragPreview} is not null.
Holds an mxGuide for the currentGraph if {@link dragPreview} is not null.
Holds the current drop location.
Holds the DOM node that is used to represent the drag preview. If this is null then the source element will be cloned and used for the drag preview.
Opacity of the drag element in %. Default is 70.
ZIndex for the drag element. Default is 100.
mxPoint that specifies the offset of the dragElement. Default is null.
Holds the DOM node that is used to represent the drag preview. If this is null then the source element will be cloned and used for the drag preview.
Reference to the DOM node which was made draggable.
Specifies if this drag source is enabled. Default is true.
Specifies if the grid should be allowed. Default is true.
Specifies if mxGuide should be enabled. Default is true.
Specifies if drop targets should be highlighted. Default is true.
Optional mxRectangle that specifies the unscaled size of the preview.
Creates and returns a clone of the {@link dragElementPrototype} or the element if the former is not defined.
Creates and returns an element which can be used as a preview in the given graph.
Actives the given graph as a drop target.
Deactivates the given graph as a drop target.
Implements autoscroll, updates the currentPoint, highlights any drop targets and updates the preview.
Returns the drop target for the given graph and coordinates. This implementation uses mxGraph.getCellAt.
Returns the drop target for the given graph and coordinates. This implementation uses mxGraph.getCellAt.
Returns the topmost element under the given event.
Returns the graph for the given mouse event. This implementation returns null.
Returns true if the given graph contains the given event.
Returns true if this drag source is active.
Returns enabled.
Returns gridEnabled.
Returns guidesEnabled.
Returns the drop target for the given graph and coordinates. This implementation uses mxGraph.getCellAt.
To ignore popup menu events for a drag source, this function can be overridden as follows.
Gets the graph for the given event using getGraphForEvent, updates the currentGraph, calling dragEnter and dragExit on the new and old graph, respectively, and invokes dragOver if currentGraph is not null.
Removes and destroys the dragElement.
Actives the given graph as a drop target.
Stops and removes everything and restores the state of the object.
Sets enabled.
Sets gridEnabled.
Sets guidesEnabled.
Creates the dragElement using createDragElement.
Invokes removeDragElement.
Generated using TypeDoc
Constructs a new drag source for the given element.