@mermaid-editor-sdk/headless / setStateTransition
Function: setStateTransition()
setStateTransition(
source,transition,patch):string
Defined in: source/state-mutations.ts:472
Updates one state transition.
Parameters
| Parameter | Type | Description |
|---|---|---|
source | string | Mermaid source to inspect or update. |
transition | Pick<StateTransition, "source" | "target" | "occurrence"> | Transition identified by source, target, and occurrence. |
patch | Partial<Pick<StateTransition, "source" | "target" | "label">> | Properties to apply to the element. |
Returns
string