LayoutEdge$Typings extension

on

Properties

data Object?
For virtualized layouts working on model data instead of a Link.
getter/setter pair
fromVertex LayoutVertex?
Gets or sets the LayoutVertex that this edge comes from. Setting this property does not change any LayoutVertex#destinationEdges collection.
getter/setter pair
Gets or sets the Link associated with this edge, if any. The value may be null if this edge is a "dummy" edge, not represented by a real Link in the Diagram.
getter/setter pair
network LayoutNetwork
Gets the LayoutNetwork that owns this edge. The default value is null. It is set automatically for you in LayoutNetwork#createEdge.
getter/setter pair
toVertex LayoutVertex?
Gets or sets the LayoutVertex that this edge goes to. Setting this property does not change any LayoutVertex#sourceEdges collection.
getter/setter pair

Methods

commit() → void
Commits the route of this edge to the corresponding Link, if any. By default this does nothing. Please read the Introduction page on Extensions for how to override methods and how to call this base method. @expose
getOtherVertex(LayoutVertex v) LayoutVertex?
Returns the edge's vertex at the other of this edge from the given vertex. @param {LayoutVertex} v