Skip to content

SimpleNode

Interface representing the most basic node in the diagram

T extends DataObject = DataObject

optional angle: number

The angle of the node from 0 to 360.


optional autoSize: boolean

Whether the size of the node is automatically resized based on the content.


readonly optional computedZIndex: number

ComputedZIndex is computed by the system and should not be set manually. The z-index of the node. This value is set automatically


data: T

The data associated with the node.


optional groupId: string

The id of the parent node.


id: string

The unique identifier for the node.


readonly optional measuredPorts: Port[]

MeasuredPorts are computed by the system and should not be set manually. The ports of the node with computed position and size.


position: Point

The position of the node in the diagram.


optional resizable: boolean

Whether the node is resizable.


optional rotatable: boolean

Whether the node is rotatable.


optional selected: boolean

Whether the node is selected.


optional size: Size

The size of the node.


optional type: string

The type of the node declared in nodeTemplateMap.


optional zOrder: number

The z-order of the node.