Class TreeEdge

This holds TreeLayout-specific information about Links.

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(): TreeEdge

Returns

TreeEdge

Properties

public fromVertex: LayoutVertex

Gets or sets the LayoutVertex that this edge comes from.

public link: Link

Gets or sets the Link associated with this edge, if any.

public network: LayoutNetwork

Gets or sets the LayoutNetwork that owns this edge.

public relativePoint: Point

Gets or sets a Point, relative to the parent node, that may be useful in routing this link.

public toVertex: LayoutVertex

Gets or sets the LayoutVertex that this edge goes to.

Methods

public commit(): any

Commits the position of the Link and routes it.

Returns

any

public getOtherVertex(v: LayoutVertex): any

Returns the edge's vertex at the other of this edge from the given vertex.

Parameters

Returns

any