@mermaid-editor-sdk/headless


@mermaid-editor-sdk/headless / setFlowchartNodeStyle

Function: setFlowchartNodeStyle()

setFlowchartNodeStyle(source, id, property, value): string

Defined in: source/flowchart-mutations.ts:741

Sets a style property for a flowchart node.

Parameters

ParameterTypeDescription
sourcestringMermaid source to inspect or update.
idstringIdentifier of the diagram element.
property"fill" | "stroke" | "stroke-dasharray"Style property to read or update.
valuestringValue to assign.

Returns

string