DOM element to make draggable.
AbstractGraph that acts as the drop target or a function that takes a mouse event and returns the current AbstractGraph.
Function to execute on a successful drop.
Optional DOM node to be used for the drag preview.
Optional horizontal offset between the cursor and the drag preview.
Optional vertical offset between the cursor and the drag preview.
Optional boolean that specifies if autoscroll should be used. Default is AbstractGraph.autoscroll.
Optional boolean that specifies if the preview element should be scaled according to the graph scale. If this is true, then the offsets will also be scaled. Default is false.
Optional boolean that specifies if dropTargets should be highlighted. Default is true.
Optional function to return the drop target for a given location (x, y). Default is AbstractGraph.getCellAt.
Configures the given DOM element to act as a drag source for the specified graph. Returns a new DragSource. If DragSource.guidesEnabled is enabled then the x and y arguments must be used in
funct
to match the preview location.Example: