Home > @i2analyze/notebook-sdk > visual > INode
visual.INode interface
A node on a chart surface.
Signature:
interface INode extends IElementBase
Extends: IElementBase
Introduced: version 1.0
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| center | readonly |
IPosition | Gets the position of the center of the node, in chart coordinates. |
| connectedEdges | readonly |
data.IKeyedReadOnlyCollection<ElementId, IEdge> | Gets all the edges that are connected to the node. |
| edges | readonly |
data.IKeyedReadOnlyCollection<ElementId, IEdge> | Gets all the edges that are connected to the node. |
| id | readonly |
ElementId | Gets the identifier of the element. (Inherited from IElementBase) |
| labelOrFallback | readonly |
string | Gets the label of the element or, if there is no label, an application-standard fallback string such as '<No label>'. (Inherited from IElementBase) |
| records | readonly |
data.IKeyedReadOnlyCollection<records.AnalyzeRecordId, records.IChartRecord> | Gets the records that the element represents, indexed by their identifiers. (Inherited from IElementBase) |
| style | readonly |
INodeStyle | Gets the style of the node. |
Methods
| Method | Description |
|---|---|
| getLabelDetails() | Gets the label for the element, together with information about whether the label has a genuine value. (Inherited from IElementBase) |
| isEdge() | Tests whether the element is an edge; functions as a TypeScript typeguard. (Inherited from IElementBase) |
| isNode() | Tests whether the element is a node; functions as a TypeScript typeguard. (Inherited from IElementBase) |