Specifies if the graph should scroll automatically. Default is true.
Whether the event source should be checked in 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 dragPreview is not null.
Holds an mxGuide for the currentGraph if 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.
Point 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.
TODO - wrong description Optional Rectangle that specifies the unscaled size of the preview.
Optional Point that specifies the offset of the preview in pixels.
Creates and returns a clone of the 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.
Optional
evt: MouseEventImplements autoscroll, updates the currentPoint, highlights any drop targets and updates the preview.
Returns true if the given graph contains the given event.
Returns enabled.
Returns gridEnabled.
Returns guidesEnabled.
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.
Sets enabled.
Sets gridEnabled.
Sets guidesEnabled.
Creates the dragElement using createDragElement.
Invokes removeDragElement.
DragSource
Wrapper to create a drag source from a DOM element so that the element can be dragged over a graph and dropped into the graph as a new cell.
Problem is that in the dropHandler the current preview location is not available, so the preview and the dropHandler must match.