@mermaid-editor-sdk/headless


@mermaid-editor-sdk/headless / getFlowchartElementStyle

Function: getFlowchartElementStyle()

getFlowchartElementStyle(source, id, property): string

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

Reads a style property for a flowchart element.

Parameters

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

Returns

string