@maxgraph/core
    Preparing search index...

    Class ConstraintHandler

    Handles constraints on connection targets. This class is in charge of showing fixed points when the mouse is over a vertex and handles constraints to establish new connections.

    Index
    constraints: ConnectionConstraint[] | null = null
    currentConstraint: ConnectionConstraint | null = null
    currentFocus: CellState | null = null
    currentFocusArea: Rectangle | null = null
    currentPoint: Point | null = null
    enabled: boolean = true

    Specifies if events are handled. Default is true.

    focusHighlight: RectangleShape | null = null
    focusIcons: ImageShape[] = []
    focusPoints: Point[] = []

    Reference to the enclosing AbstractGraph.

    highlightColor: string = DEFAULT_VALID_COLOR

    Specifies the color for the highlight. Default is DEFAULT_VALID_COLOR.

    mouseleaveHandler: (() => void) | null = null
    pointImage: ImageBox = ...

    Image to be used as the image for fixed connection points.

    resetHandler: () => void
    • Transfers the focus to the given state as a source or target terminal. If the handler is not enabled then the outline is painted, but the constraints are ignored.

      Returns void

    • Enables or disables event handling. This implementation updates enabled.

      Parameters

      • enabled: boolean

        Boolean that specifies the new enabled state.

      Returns void

    • Updates the state of this handler based on the given mxMouseEvent. Source is a boolean indicating if the cell is a source or target.

      Parameters

      Returns void