Called by the router when a dynamic anchor has changed its current location.
Adds a css class to the component
Class to add. May be a space separated list.
Optionalcascade: booleanThis is for subclasses to use, if they wish to. For instance, a Connection might want to optionally cascade a css class down to its 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.
Delete every connection in the instance.
Optionalparams: DeleteConnectionOptionsDetaches this Endpoint from the given Connection. If deleteOnEmpty is set to true and there are no
Connections after this one is detached, the Endpoint is deleted.
Connection from which to detach.
Optionalidx: numberOptional, used internally to identify if this is the source (0) or target endpoint (1). Sometimes we already know this when we call this method.
OptionaltransientDetach: booleanFor internal use only.
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.
Test if this Endpoint is connected to the given Endpoint.
Returns whether not event firing is currently suspended
Merges the given backing data into any current backing data.
Remove all overlays from this component.
Removes a css class from the component
Class to remove. May be a space separated list.
Optionalcascade: booleanThis is for subclasses to use, if they wish to. For instance, a Connection might want to optionally cascade a css class removal down to its endpoints.
Remove the given set of overlays, specified by their ids.
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
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.
Base class for Endpoint and Connection.