Specifies if the bounds of handles should be used for hit-detection in IE.
Holds the Shapes that represent the points.
Specifies if cloning by control-drag is enabled.
Holds the ConstraintHandler used for drawing and highlighting constraints.
Specifies if removing bends by double click is enabled.
Specifies the resource key for the tooltip to be displayed on the single control point for routed edges. If the resource for this key does not exist then the value is used as the error message.
Holds the current validation error while a connection is being changed.
Specifies if a double click on the middle handle should call Graph#flipEdge.
Reference to the enclosing Graph.
Optional Image to be used as handles.
Holds the Shape that represents the label position.
Specifies if the label handle should be moved if it intersects with another handle. Uses checkLabelHandle for checking and moving.
Holds the CellMarker which is used for highlighting terminals.
Specifies if removing bends by dropping them on other bends is enabled.
Specifies if connections to the outline of a highlighted target should be enabled. This will allow to place the connection point along the outline of the highlighted target.
Specifies if the parent should be highlighted if a child cell is selected.
Specifies if bends should be added to the graph container. This is updated in constructor based on whether the edge or one of its terminals has an HTML label in the container.
Holds the Shape that represents the preview edge.
Specifies if waypoints should snap to the routing centers of terminals.
Reference to the CellState being modified.
Specifies if removing bends by creating straight segments should be enabled. If enabled, this can be overridden by holding down the alt key while moving.
Optional tolerance for hit-detection in getHandleForEvent.
Overriden to merge edge segments.
Returns an array of custom handles. This implementation returns an empty array.
Creates the shape used to display the given bend. Note that the index
null
for special cases, such as when called from ElbowEdgeHandler.createVirtualBend.null
for virtual handles.Only images and rectangles should be returned if support for HTML labels with not foreign objects is required.
Optional
_index: numberCreates the shape used to display the label handle.
Creates and returns the CellMarker used in marker.
Creates the shape used to draw the selection border.
Creates a virtual bend that supports double-clicking and calls Graph#flipEdge.
Optional
dblClickHandler: (evt: MouseEvent) => voidCreates and returns the bends used for modifying the edge. This is typically an array of RectangleShape.
Destroys all elements in bends.
Creates and returns the CellMarker used in marker.
Returns the index of the handle for the given event.
Returns the point for the given event.
Updates the given preview state taking into account the state of the constraint handler.
Returns EdgeHandlerConfig.selectionColor.
Returns true if the given event allows virtual bends to be added. This implementation returns true.
Returns true if the given event allows custom handles to be changed. This implementation returns true.
Returns true if the given custom handle is visible.
Returns true if outlineConnect is true and the source of the event is the outline shape or shift is pressed.
Returns EdgeHandlerConfig.selectionDashed.
Returns true if snapToTerminals is true and if alt is not pressed.
Handles the event by checking if a special element of the handler was clicked, in which case the index parameter is non-null. The indices may be one of InternalEvent.LABEL_HANDLE or the number of the respective control point. The source and target points are used for reconnecting the edge.
Handles the event by updating the preview.
Handles the event to applying the previewed changes on the edge by using moveLabel, connect or changePoints.
Hook for subclassers do show details while the handler is active.
Updates the highlight of the parent if parentHighlightEnabled is true.
Overridden to perform optimization of the edge style result.
Returns the error message or an empty string if the connection for the given source, target pair is not valid. Otherwise, it returns null. This implementation uses Graph#getEdgeValidationError.
Graph event handler that reconnects edges and modifies control points and the edge label location. Uses CellMarker for finding and highlighting new source and target vertices. This handler is automatically created in Graph.createHandler. It extends EdgeHandler.
Constructor: mxEdgeHandler
Constructs an edge handler for the specified CellState.
Param: state
CellState of the cell to be modified.