@mermaid-editor-sdk/headless


@mermaid-editor-sdk/headless / RendererModel

Interface: RendererModel

Defined in: core/diagram-model.ts:127

Parsed diagram state used by the UI and selection tools.

Properties

diagramType

readonly diagramType: DiagramType

Defined in: core/diagram-model.ts:129

Detected Mermaid diagram type.


elements

readonly elements: readonly DiagramElement[]

Defined in: core/diagram-model.ts:135

Renderable nodes, edges, subgraphs, and semantic elements.


parseState

readonly parseState: "unsupported" | "unknown" | "invalid" | "pending" | "parsed"

Defined in: core/diagram-model.ts:137

Current parser state for the source.


revision

readonly revision: number

Defined in: core/diagram-model.ts:131

Revision of this model snapshot.


sourceRevision

readonly sourceRevision: number

Defined in: core/diagram-model.ts:133

Source revision from which this model was created.