Skip to content
PACKAGES

describeToAscii()

Render a D39 describe snapshot as a compact ASCII adjacency diagram.

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

A string value.

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

packages/ts/src/graph/render.ts