Nodes are defined through FlowNodeEntity
string Node idstring | number Node typeRectangle Get the node's x, y, width, height, equivalent to transform.boundsFlowNodeEntity[] Get child nodes, including collapsed child nodesFlowNodeEntity | undefined Get the parent node (Such as loop)node.getService(HistoryService)node.getExtInfo<{ test: string }>()node.updateExtInfo<{ test: string }>({ test: 'test' })Can be obtained through node.toJSON()
string Unique identifier for the node, must be uniqueobject Node's UI configuration information, such as position information for free layoutstring | number Node type, corresponds to type in nodeRegistriesobject Node form data, can be customized by businessarray Node branches, using block is more suitable for Gramming free layout scenarios, used in sub-nodes of sub-canvasarray Edge data of sub-canvasIn free layout scenarios, node definition is used to declare node's initial position/size, ports, form rendering, etc.
Get node-related methods through useNodeRender
Delete node through node.dispose
extInfo is used to store UI states, if node engine is not enabled, node's data will be stored in extInfo by default