@mermaid-editor-sdk/headless / deleteState
Function: deleteState()
deleteState(
source,id):string
Defined in: source/state-mutations.ts:528
Deletes a state and its related transitions.
Parameters
| Parameter | Type | Description |
|---|---|---|
source | string | Mermaid source to inspect or update. |
id | string | Identifier of the diagram element. |
Returns
string