mxEvent | Cross-browser DOM event support. |
Variables | |
objects | Contains all objects where any listener was added using addListener. |
Functions | |
addListener | Binds the function to the specified event on the given element. |
removeListener | Removes the specified listener from the given element. |
removeAllListeners | Removes all listeners from the given element. |
addGestureListeners | Adds the given listeners for touch, mouse and/or pointer events. |
removeGestureListeners | Removes the given listeners from mousedown, mousemove, mouseup and the respective touch events if mxClient.IS_TOUCH is true. |
redirectMouseEvents | Redirects the mouse events from the given DOM node to the graph dispatch loop using the event and given state as event arguments. |
release | Removes the known listeners from the given DOM node and its descendants. |
disableContextMenu | Disables the context menu for the given element. |
getSource | Returns the event’s target or srcElement depending on the browser. |
isConsumed | Returns true if the event has been consumed using consume. |
isTouchEvent | Returns true if the event was generated using a touch device (not a pen or mouse). |
isMultiTouchEvent | Returns true if the event was generated using a touch device (not a pen or mouse). |
isMouseEvent | Returns true if the event was generated using a mouse (not a pen or touch device). |
isLeftMouseButton | Returns true if the left mouse button is pressed for the given event. |
isMiddleMouseButton | Returns true if the middle mouse button is pressed for the given event. |
isRightMouseButton | Returns true if the right mouse button was pressed. |
isPopupTrigger | Returns true if the event is a popup trigger. |
isShiftDown | Returns true if the shift key is pressed for the given event. |
isAltDown | Returns true if the alt key is pressed for the given event. |
isControlDown | Returns true if the control key is pressed for the given event. |
isMetaDown | Returns true if the meta key is pressed for the given event. |
getMainEvent | Returns the touch or mouse event that contains the mouse coordinates. |
getClientX | Returns true if the meta key is pressed for the given event. |
getClientY | Returns true if the meta key is pressed for the given event. |
consume | Consumes the given event. |
Variables | |
LABEL_HANDLE | Index for the label handle in an mxMouseEvent. |
ROTATION_HANDLE | Index for the rotation handle in an mxMouseEvent. |
CUSTOM_HANDLE | Start index for the custom handles in an mxMouseEvent. |
VIRTUAL_HANDLE | Start index for the virtual handles in an mxMouseEvent. |
MOUSE_DOWN | Specifies the event name for mouseDown. |
MOUSE_MOVE | Specifies the event name for mouseMove. |
MOUSE_UP | Specifies the event name for mouseUp. |
ACTIVATE | Specifies the event name for activate. |
RESIZE_START | Specifies the event name for resizeStart. |
RESIZE | Specifies the event name for resize. |
RESIZE_END | Specifies the event name for resizeEnd. |
MOVE_START | Specifies the event name for moveStart. |
MOVE | Specifies the event name for move. |
MOVE_END | Specifies the event name for moveEnd. |
PAN_START | Specifies the event name for panStart. |
PAN | Specifies the event name for pan. |
PAN_END | Specifies the event name for panEnd. |
MINIMIZE | Specifies the event name for minimize. |
NORMALIZE | Specifies the event name for normalize. |
MAXIMIZE | Specifies the event name for maximize. |
HIDE | Specifies the event name for hide. |
SHOW | Specifies the event name for show. |
CLOSE | Specifies the event name for close. |
DESTROY | Specifies the event name for destroy. |
REFRESH | Specifies the event name for refresh. |
SIZE | Specifies the event name for size. |
SELECT | Specifies the event name for select. |
FIRED | Specifies the event name for fired. |
FIRE_MOUSE_EVENT | Specifies the event name for fireMouseEvent. |
GESTURE | Specifies the event name for gesture. |
TAP_AND_HOLD | Specifies the event name for tapAndHold. |
GET | Specifies the event name for get. |
RECEIVE | Specifies the event name for receive. |
CONNECT | Specifies the event name for connect. |
DISCONNECT | Specifies the event name for disconnect. |
SUSPEND | Specifies the event name for suspend. |
RESUME | Specifies the event name for suspend. |
MARK | Specifies the event name for mark. |
ROOT | Specifies the event name for root. |
POST | Specifies the event name for post. |
OPEN | Specifies the event name for open. |
SAVE | Specifies the event name for open. |
BEFORE_ADD_VERTEX | Specifies the event name for beforeAddVertex. |
ADD_VERTEX | Specifies the event name for addVertex. |
AFTER_ADD_VERTEX | Specifies the event name for afterAddVertex. |
DONE | Specifies the event name for done. |
EXECUTE | Specifies the event name for execute. |
EXECUTED | Specifies the event name for executed. |
BEGIN_UPDATE | Specifies the event name for beginUpdate. |
START_EDIT | Specifies the event name for startEdit. |
END_UPDATE | Specifies the event name for endUpdate. |
END_EDIT | Specifies the event name for endEdit. |
BEFORE_UNDO | Specifies the event name for beforeUndo. |
UNDO | Specifies the event name for undo. |
REDO | Specifies the event name for redo. |
CHANGE | Specifies the event name for change. |
NOTIFY | Specifies the event name for notify. |
LAYOUT_CELLS | Specifies the event name for layoutCells. |
CLICK | Specifies the event name for click. |
SCALE | Specifies the event name for scale. |
TRANSLATE | Specifies the event name for translate. |
SCALE_AND_TRANSLATE | Specifies the event name for scaleAndTranslate. |
UP | Specifies the event name for up. |
DOWN | Specifies the event name for down. |
ADD | Specifies the event name for add. |
REMOVE | Specifies the event name for remove. |
CLEAR | Specifies the event name for clear. |
ADD_CELLS | Specifies the event name for addCells. |
CELLS_ADDED | Specifies the event name for cellsAdded. |
MOVE_CELLS | Specifies the event name for moveCells. |
CELLS_MOVED | Specifies the event name for cellsMoved. |
RESIZE_CELLS | Specifies the event name for resizeCells. |
CELLS_RESIZED | Specifies the event name for cellsResized. |
TOGGLE_CELLS | Specifies the event name for toggleCells. |
CELLS_TOGGLED | Specifies the event name for cellsToggled. |
ORDER_CELLS | Specifies the event name for orderCells. |
CELLS_ORDERED | Specifies the event name for cellsOrdered. |
REMOVE_CELLS | Specifies the event name for removeCells. |
CELLS_REMOVED | Specifies the event name for cellsRemoved. |
GROUP_CELLS | Specifies the event name for groupCells. |
UNGROUP_CELLS | Specifies the event name for ungroupCells. |
REMOVE_CELLS_FROM_PARENT | Specifies the event name for removeCellsFromParent. |
FOLD_CELLS | Specifies the event name for foldCells. |
CELLS_FOLDED | Specifies the event name for cellsFolded. |
ALIGN_CELLS | Specifies the event name for alignCells. |
LABEL_CHANGED | Specifies the event name for labelChanged. |
CONNECT_CELL | Specifies the event name for connectCell. |
CELL_CONNECTED | Specifies the event name for cellConnected. |
SPLIT_EDGE | Specifies the event name for splitEdge. |
FLIP_EDGE | Specifies the event name for flipEdge. |
START_EDITING | Specifies the event name for startEditing. |
EDITING_STARTED | Specifies the event name for editingStarted. |
EDITING_STOPPED | Specifies the event name for editingStopped. |
ADD_OVERLAY | Specifies the event name for addOverlay. |
REMOVE_OVERLAY | Specifies the event name for removeOverlay. |
UPDATE_CELL_SIZE | Specifies the event name for updateCellSize. |
ESCAPE | Specifies the event name for escape. |
CLICK | Specifies the event name for click. |
DOUBLE_CLICK | Specifies the event name for doubleClick. |
START | Specifies the event name for start. |
RESET | Specifies the event name for reset. |