@mermaid-editor-sdk/headless / renameState
Function: renameState()
renameState(
source,oldId,newId):string
Defined in: source/state-mutations.ts:428
Renames a state and updates its references.
Parameters
| Parameter | Type | Description |
|---|---|---|
source | string | Mermaid source to inspect or update. |
oldId | string | Current identifier. |
newId | string | Replacement identifier. |
Returns
string