@mermaid-editor-sdk/headless / addStateTransition
Function: addStateTransition()
addStateTransition(
source,from,to,label?):string
Defined in: source/state-mutations.ts:568
Adds a transition between two states.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
source | string | — | Mermaid source to inspect or update. |
from | string | — | Source element identifier. |
to | string | — | Target element identifier. |
label? | string | '' | Displayed label. |
Returns
string