UnindexedGets or sets whether the Node (if any) is positioned aligned to the center of its layer or to the left side (if direction == 0) or top side (if direction == 90) of its layer.
The default value is true but gets the value of LayeredDigraphLayout.centered.
since3.1
Gets or sets the column to which the node is assigned. The default value is -1.
This property is not used during straightening and packing of nodes when using LayeredDigraphLayout.alignOption.
Gets or sets the connected component to which the node is assigned. The default value is NaN.
This property is not used during straightening and packing of nodes when using LayeredDigraphLayout.alignOption.
Gets or sets the data object in the model that should be associated with this vertex, if any. The value will be non-null if this vertex is virtualized, not represented by a real Node in the Diagram. Each data object should have a 'bounds' property that is a Rect or any JavaScript Object with 'x', 'y', 'width', and 'height' properties that are real numbers, and non-negative numbers for the width and the height. Setting this data property will also set the bounds and focus properties.
ReadonlydestinationThis read-only property returns an iterator for all of the edges that go out of this vertex.
ReadonlydestinationThis read-only property returns an iterator for all of the vertexes that are connected with edges going out of this vertex.
Note that this is inefficient compared to iterating over the edges (destinationEdges) due to the need to avoid duplicate vertexes if there happen to be multiple edges connecting with the same vertex.
ReadonlyedgesThis read-only property returns an iterator for all of the edges that are connected with this vertex in either direction.
Note that this is inefficient compared to iterating over the edges: sourceEdges and destinationEdges.
ReadonlyedgesThis read-only property returns the total number of edges that are connected with this vertex in either direction.
Gets or sets the relative X position of the "center" point, the focus.
Gets or sets the relative Y position of the "center" point, the focus.
Gets or sets the height of this vertex. This is always the vertical distance reserved for the node.
Gets or sets the index to which the node is assigned. The default value is -1.
Gets or sets the layer to which the node is assigned. The default value is -1.
Gets or sets another LayeredDigraphVertex in the same layer that this node should be near. The default value is null.
ReadonlynetworkGets the LayoutNetwork that owns this vertex. The default value is null. It is set automatically for you in LayoutNetwork.createVertex.
Gets or sets the Node associated with this vertex, if any. The value may be null if this vertex is a "dummy" vertex, not represented by a real Node in the Diagram.
This property setter also sets the bounds and focus properties according to the value of the Node's actualBounds and its Part.locationObject's center point.
ReadonlysourceThis read-only property returns an iterator for all of the edges that come into this vertex.
ReadonlysourceThis read-only property returns an iterator for all of the vertexes that are connected with edges coming into this vertex.
Note that this is inefficient compared to iterating over the edges (sourceEdges) due to the need to avoid duplicate vertexes if there happen to be multiple edges connecting with the same vertex.
ReadonlyvertexesThis read-only property returns an iterator for all of the vertexes that are connected in either direction with this vertex.
Note that this is inefficient compared to iterating over the edges (sourceEdges and destinationEdges) due to the need to avoid duplicate vertexes if there happen to be multiple edges connecting with the same vertex.
Gets or sets the width of this vertex. This is always the horizontal distance reserved for the node.
Gets or sets the left point of this vertex.
Gets or sets the top point of this vertex.
StaticsmartThis static function is used to compare the Part.text values of the nodes of the argument LayoutVertexes. If the text ends in a number, the values are compared as numbers rather than lexicographically. Naturally this comparison is significantly slower than LayoutVertex.standardComparer.
int -1, 0, or 1, depending on whether the comparison between M and N is less than, equal, or greater than.
StaticstandardThis static function is used to compare the Part.text values of the nodes of the argument LayoutVertexes. This just does a simple case-sensitive string comparison. Alternatively you may wish to use LayoutVertex.smartComparer or write your own comparison function.
int -1, 0, or 1, depending on whether the comparison between M and N is less than, equal, or greater than.
This holds LayeredDigraphLayout-specific information about Nodes.
This class inherits from LayoutVertex.