@mermaid-editor-sdk/headless / setStateStyle
Function: setStateStyle()
setStateStyle(
source,id,property,value):string
Defined in: source/state-mutations.ts:275
Sets one style property for a state.
Parameters
| Parameter | Type | Description |
|---|---|---|
source | string | Mermaid source to inspect or update. |
id | string | Identifier of the diagram element. |
property | StateStyleProperty | Style property to read or update. |
value | string | Value to assign. |
Returns
string