Render the current configuration as a Mermaid stateDiagram-v2 block.
stateDiagram-v2
UI hosts call this and pipe the string into a <pre class="mermaid"> element. The active state is annotated with the current GraphTime and observed commit count.
<pre class="mermaid">
Configuration produced by statechart.
A newline-joined Mermaid source string.
const mermaid = renderStatechartMermaid(statechart(graph))element.textContent = mermaid Copy
const mermaid = renderStatechartMermaid(statechart(graph))element.textContent = mermaid
Render the current configuration as a Mermaid
stateDiagram-v2block.UI hosts call this and pipe the string into a
<pre class="mermaid">element. The active state is annotated with the current GraphTime and observed commit count.