@mermaid-editor-sdk/headless / addFlowchartNode
Function: addFlowchartNode()
addFlowchartNode(
source,id,label,shape?):string
Defined in: source/flowchart-mutations.ts:449
Adds a node to a flowchart.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
source | string | — | Mermaid source to inspect or update. |
id | string | — | Identifier of the diagram element. |
label | string | — | Displayed label. |
shape? | FlowchartNodeShape | 'rect' | Node shape. |
Returns
string