@mermaid-editor-sdk/headless / setERStyle
Function: setERStyle()
setERStyle(
source,id,property,color):string
Defined in: source/er-mutations.ts:671
Sets one style property for an ER entity.
Parameters
| Parameter | Type | Description |
|---|---|---|
source | string | Mermaid source to inspect or update. |
id | string | Identifier of the diagram element. |
property | ERStyleProperty | Style property to read or update. |
color | string | Color value to assign. |
Returns
string