DOM element to make draggable.
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 mxGraph.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 mxGraph.getCellAt.
Configures the given DOM element to act as a drag source for the specified graph. Returns a a new DragSource. If DragSource#guideEnabled is enabled then the x and y arguments must be used in funct to match the preview location.
Example: