describeToMermaid()
Render a D39 describe snapshot as Mermaid flowchart text.
Import
Section titled “Import”import { describeToMermaid } from "@graphrefly/ts/graph";Signature
Section titled “Signature”function describeToMermaid( snapshot: DescribeSnapshot, opts: DescribeToMermaidOptions = {},): stringParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
snapshot | DescribeSnapshot | snapshot value used by the helper. |
opts | DescribeToMermaidOptions | Options that configure the helper. |
Returns
Section titled “Returns”A string value.
Example
Section titled “Example”import { describeToMermaid } from "@graphrefly/ts/graph";Source
Section titled “Source”packages/ts/src/graph/render.ts