NodeBase
23 Sep 20251 minute to read
Defines the common behavior of nodes, connectors and groups
Properties
addInfo Object
Allows the user to save custom information/data about a node/connector
Defaults to undefined
excludeFromLayout boolean
Defines whether the node should be automatically positioned or not. Applicable, if layout option is enabled.
Defaults to false
flip FlipDirection
Flip the element in Horizontal/Vertical directions
Defaults to None
flipMode FlipMode
Allows you to flip only the node or along with port and label.
This functionality is applicable only for nodes.
Defaults to All
id string
Represents the unique id of nodes/connectors
Defaults to ’’
margin MarginModel
Defines the space to be left between the node and its immediate parent
Defaults to {}
symbolInfo SymbolPaletteInfoModel
Defines the symbol info of a connector
Defaults to undefined
tooltip DiagramTooltipModel
defines the tooltip for the node
Defaults to {}
visible boolean
Sets the visibility of the node/connector
Defaults to true
zIndex number
Defines the visual order of the node/connector in DOM
Defaults to Number.MIN_VALUE