Variable: cloneEnabled
Specifies if cloning by control-drag is enabled. Default is true.
Variable: connectOnDrop
Specifies if drop events are interpreted as new connections if no other drop action is defined. Default is false.
Variable: currentDx
Stores the x-coordinate of the current mouse move.
Variable: currentDy
Stores the y-coordinate of the current mouse move.
Variable: enabled
Specifies if events are handled. Default is true.
Variable: graph
Reference to the enclosing
Variable: guide
Holds the
Variable: guidesEnabled
Specifies if other cells should be used for snapping the right, center or left side of the current selection. Default is false.
Variable: highlightEnabled
Specifies if drop targets under the mouse should be enabled. Default is true.
Variable: htmlPreview
Specifies if the graph container should be used for preview. If this is used then drop target detection relies entirely on <mxGraph.getCellAt> because the HTML preview does not "let events through". Default is false.
Variable: maxCells
Defines the maximum number of cells to paint subhandles for. Default is 50 for Firefox and 20 for IE. Set this to 0 if you want an unlimited number of handles to be displayed. This is only recommended if the number of cells in the graph is limited to a small number, eg. 500.
Variable: maxLivePreview
Maximum number of cells for which live preview should be used. Default is 0 which means no live preview.
Variable: minimumSize
Specifies the minimum number of pixels for the width and height of a selection border. Default is 6.
Variable: moveEnabled
Specifies if moving is enabled. Default is true.
Variable: previewColor
Specifies the color of the preview shape. Default is black.
Variable: removeCellsFromParent
Specifies if cells may be moved out of their parents. Default is true.
Variable: rotationEnabled
Specifies if the bounding box should allow for rotation. Default is true.
Variable: scaleGrid
Specifies if the grid should be scaled. Default is false.
Variable: scrollOnMove
Specifies if the view should be scrolled so that a moved cell is visible. Default is true.
Variable: selectEnabled
Specifies if selecting is enabled. Default is true.
Variable: shape
Reference to the
Variable: updateCursor
Specifies if a move cursor should be shown if the mouse is over a movable cell. Default is true.
Adds the states for the given cell recursively to the given dictionary.
Function: consumeMouseEvent
Consumes the given mouse event. NOTE: This may be used to enable click events for links in labels on iOS as follows as consuming the initial touchStart disables firing the subsequent click evnent on the link.
consumeMouseEvent(evtName, me)
{
var source = mxEvent.getSource(me.getEvent());
if (!mxEvent.isTouchEvent(me.getEvent()) || source.nodeName != 'A')
{
me.consume();
}
}
Function: createPreviewShape
Creates the shape used to draw the preview for the given bounds.
Function: destroy
Destroys the handler and all its resources and DOM nodes.
Function: destroyShapes
Destroy the preview and highlight shapes.
Function: getBoundingBox
Returns the union of the
Parameters:
cells - Array of
Function: getCells
Returns the cells to be modified by this handler. This implementation returns all selection cells that are movable, or the given initial cell if the given cell is not selected and movable. This handles the case of moving unselectable or unselected cells.
Parameters:
initialCell -
Function: getDelta
Returns an
Function: getGuideStates
Creates an array of cell states which should be used as guides.
Function: getInitialCellForEvent
Hook to return initial cell for the given event.
Function: getPreviewBounds
Returns the
Function: isCloneEnabled
Returns
Function: isDelayedSelection
Hook to return true for delayed selections.
Function: isEnabled
Returns
Function: isMoveEnabled
Returns
Function: isRemoveCellsFromParent
Returns
Function: isSelectEnabled
Returns
Function: mouseDown
Handles the event by selecing the given cell and creating a handle for it. By consuming the event all subsequent events of the gesture are redirected to this handler.
Function: mouseMove
Handles the event by highlighting possible drop targets and updating the preview.
Function: mouseUp
Handles the event by applying the changes to the selection cells.
Function: removeHint
Hooks for subclassers to hide details when the handler gets inactive.
Function: reset
Resets the state of this handler.
Function: roundLength
Hook for rounding the unscaled vector. This uses Math.round.
Function: selectDelayed
Implements the delayed selection for the given mouse event.
Function: setCloneEnabled
Sets
Parameters:
value - Boolean that specifies the new clone enabled state.
Function: setEnabled
Sets
Function: setHighlightColor
Sets the color of the rectangle used to highlight drop targets.
Parameters:
color - String that represents the new highlight color.
Function: setMoveEnabled
Sets
Function: setRemoveCellsFromParent
Sets
Function: setSelectEnabled
Sets
Function: start
Starts the handling of the mouse gesture.
Function: updateHint
Hook for subclassers do show details while the handler is active.
Function: updatePreviewShape
Updates the bounds of the preview shape.
Function: useGuidesForEvent
Returns true if the guides should be used for the given
Generated using TypeDoc
Variable allowLivePreview
If live preview is allowed on this system. Default is true for systems with SVG support.