Interface: MermaidOptions
Defined in: packages/core/src/mermaid.ts:38
Options for toMermaid.
Properties
direction?
ts
direction?: "TD" | "LR";Defined in: packages/core/src/mermaid.ts:40
Flowchart orientation (default "TD", top-down).
resolveComponent?
ts
resolveComponent?: ResolveStructureComponent;Defined in: packages/core/src/mermaid.ts:51
Classify a bare class as a sibling component — a child that is itself a documented record. Such nodes get the stadium shape, are labelled by component name, and (when an href is returned) link to that component's page. Absent → every non-slot, non-root node is a plain part.
self?
ts
self?: string;Defined in: packages/core/src/mermaid.ts:45
The current record's base class, no leading dot (e.g. alert). Its top-level node renders as the diagram root; a descendant that references the same class stays a part, never a sibling component.