Skip to main content

Home > @jsplumb/core > LightweightRouter

LightweightRouter class#

Signature:

export declare class LightweightRouter<T extends {    E: unknown;}> implements Router<T, LightweightAnchor> 

Implements: Router<T, LightweightAnchor>

Constructors#

ConstructorModifiersDescription
(constructor)(instance)Constructs a new instance of the LightweightRouter class

Properties#

PropertyModifiersTypeDescription
anchorListsMap<string, AnchorLists>
anchorLocationsMap<string, AnchorPlacement>
instanceJsPlumbInstance

Methods#

MethodModifiersDescription
anchorsEqual(a1, a2)Returns whether or not
computeAnchorLocation(anchor, params)
computePath(connection, timestamp)
getAnchorOrientation(anchor)
getEndpointLocation(endpoint, params)
getEndpointOrientation(ep)
isDynamicAnchor(ep)
isFloating(ep)
lock(a)
lockCurrentAxis(a)
prepareAnchor(endpoint, params)
redraw(elementId, timestamp, offsetToUI)
reset()
selectAnchorLocation(a, coords)Attempts to set the location in the given anchor whose x/y matches the coordinates given. An anchor may have more than one declared location. This method provides a means for setting the active location based upon matching its x/y values.
setAnchor(endpoint, anchor)
setConnectionAnchors(conn, anchors)
setCurrentFace(a, face, overrideLock)
unlock(a)
unlockCurrentAxis(a)