sesaparcours
    Preparing search index...

    Interface EndpointOptions<E>

    interface EndpointOptions<E = any> {
        anchor?: AnchorSpec;
        anchors?: [AnchorSpec, AnchorSpec];
        connectionCost?: number;
        connectionsDetachable?: boolean;
        connectionsDirected?: boolean;
        connector?: ConnectorSpec;
        connectorClass?: string;
        connectorHoverClass?: string;
        connectorHoverStyle?: PaintStyle;
        connectorOverlays?: OverlaySpec[];
        connectorStyle?: PaintStyle;
        cssClass?: string;
        data?: any;
        deleteOnEmpty?: boolean;
        dragAllowedWhenFull?: boolean;
        edgeType?: string;
        enabled?: boolean;
        endpoint?: EndpointSpec;
        hoverClass?: string;
        hoverPaintStyle?: PaintStyle;
        maxConnections?: number;
        onMaxConnections?: (value: any, event?: any) => any;
        paintStyle?: PaintStyle;
        parameters?: Record<string, any>;
        portId?: string;
        reattachConnections?: boolean;
        scope?: string;
        source?: boolean;
        target?: boolean;
        uuid?: string;
    }

    Type Parameters

    • E = any

    Hierarchy (View Summary)

    Index

    Properties

    anchor?: AnchorSpec

    Optional definition for both the source and target anchors for any connection created with this endpoint as its source. If you do not supply this, the default anchors definition for the jsPlumb instance will be used

    anchors?: [AnchorSpec, AnchorSpec]

    Optional definition for the source and target anchors for any connection created with this endpoint as its source. If you do not supply this, the default anchors definition for the jsPlumb instance will be used

    connectionCost?: number

    Optional cost to set for connections that have this endpoint as their source. Defaults to 1.

    connectionsDetachable?: boolean

    Whether or not connections that have this endpoint as their source are configured to be detachable with the mouse. Defaults to true.

    connectionsDirected?: boolean

    Whether or not connections that have this endpoint as their source are considered "directed".

    connector?: ConnectorSpec

    Optional connector definition for connections that are created with this endpoint as their source.

    connectorClass?: string

    Optional class to assign to connections that have this endpoint as their source.

    connectorHoverClass?: string

    Optional class to assign, on mouse hover, to connections that have this endpoint as their source.

    connectorHoverStyle?: PaintStyle

    Optional paint style to assign, on hover, to a connection that is created with this endpoint as its source.

    connectorOverlays?: OverlaySpec[]

    Optional list of overlays to add to a connection that is created with this endpoint as its source.

    connectorStyle?: PaintStyle

    Optional paint style to assign to a connection that is created with this endpoint as its source.

    cssClass?: string
    data?: any
    deleteOnEmpty?: boolean

    Whether or not to delete the Endpoint if it transitions to the state that it has no connections. Defaults to false. Note that this only applies if the endpoint previously had one or more connections and now has none: a newly created endpoint with this flag set is not immediately deleted.

    dragAllowedWhenFull?: boolean

    Whether or not connections can be dragged from the endpoint when it is full. Since no new connection could be dragged from an endpoint that is full, in a practical sense this means whether or not existing connections can be dragged off an endpoint that is full. Defaults to true.

    edgeType?: string

    Optional 'type' for connections that have this endpoint as their source.

    enabled?: boolean

    Whether or not the endpoint is initially enabled. Defaults to true.

    endpoint?: EndpointSpec

    Optional endpoint definition. If you do not supply this, the default endpoint definition for the jsPlumb instance will be used

    hoverClass?: string
    hoverPaintStyle?: PaintStyle

    Optional paint style to assign, on hover, to the endpoint.

    maxConnections?: number

    Maximum number of connections this endpoint supports. Defaults to 1. Use a value of -1 to indicate there is no limit.

    onMaxConnections?: (value: any, event?: any) => any

    Optional callback to fire when the endpoint transitions to the state that it is now full.

    paintStyle?: PaintStyle

    Optional paint style to assign to the endpoint

    parameters?: Record<string, any>
    portId?: string

    Optional "port id" for this endpoint - a logical mapping of the endpoint to some name.

    reattachConnections?: boolean

    Whether or not to set reattach:true on connections that have this endpoint as their source. Defaults to false.

    scope?: string
    source?: boolean

    Whether or not this Endpoint acts as a source for connections dragged with the mouse. Defaults to false.

    target?: boolean

    Whether or not this Endpoint acts as a target for connections dragged with the mouse. Defaults to false.

    uuid?: string

    Optional user-supplied ID for this endpoint.