Skip to content
PACKAGES

describeToD2()

Render a D39 describe snapshot as D2 diagram text.

import { describeToD2 } from "@graphrefly/ts/graph";
function describeToD2(
snapshot: DescribeSnapshot,
opts: DescribeToD2Options = {},
): string
ParameterTypeDescription
snapshotDescribeSnapshotsnapshot value used by the helper.
optsDescribeToD2OptionsOptions that configure the helper.

A string value.

import { describeToD2 } from "@graphrefly/ts/graph";

packages/ts/src/graph/render.ts