Whether or not this connection is detachable
Whether or not the connection is directed.
ReadonlyendpointSource and target endpoints.
ReadonlyendpointReadonlyendpointsWhether or not this connection should be reattached if it were detached via the mouse
The element that is the source of the connection
The id of the source of the connection
The element that is the target of the connection
The id of the target of the connection
ReadonlyuuidsUUIDs of the endpoints. If this is not specifically provided in the constructor of the connection it will be null.
StatictypeAdds the given class to the UI elements being used to represent this connection's connector, and optionally to the UI elements representing the connection's endpoints.
class to add
Optionalcascade: booleanIf true, also add the class to the connection's endpoints.
Bind an event listener. This method can be used with a type parameter by call sites; although it's not necessary it can be helpful to use this to ensure you've thought about what the payload to your event handler is going to be.
Returns a space-separated list of the current classes assigned to this component.
Gets any backing data stored against the given component.
Return this component's label, if one is set.
Gets all listeners for the given named event.
Get the Overlay with the given ID. You can optionally provide a type parameter for this method in order to get
a typed return value (such as LabelOverlay, ArrowOverlay, etc), since some overlays have methods that
others do not.
ID of the overlay to retrieve.
Hide the overlay with the given id.
Hide all overlays, or a specific set of overlays.
optional list of ids to hide.
Optionalep: Endpoint<any>Returns whether not event firing is currently suspended
Optionalanchor: AnchorSpecOptionalep: Endpoint<any>Merges the given backing data into any current backing data.
Remove all overlays from this component.
Removes the given class from the UI elements being used to represent this connection's connector, and optionally from the UI elements representing the connection's endpoints.
class to remove
Optionalcascade: booleanIf true, also remove the class from the connection's endpoints.
Remove the given set of overlays, specified by their ids.
Replace the Endpoint at the given index with a new Endpoint. This is used by the Toolkit edition, if changes to an edge type cause a change in Endpoint.
0 for source, 1 for target
Spec for the new Endpoint.
Sets backing data stored against the given component, overwriting any current value.
Set this component's label.
Either some text, or a function which returns some text, or an existing label overlay.
Sets whether not event firing is currently suspended
Sets the visible state of the connection.
Show a specific overlay (set it to be visible)
Show all overlays, or a specific set of overlays.
optional list of ids to show.
Unbind the given event listener, or all listeners. If you call this method with no arguments then all event listeners are unbound.
Connection's cost.