/docsfor

Arc diagram

A network flattened onto one line.

import { ArcDiagram } from "diagrammatic";

Nodes follow a fixed file order. Each arc shows how many positions an import jumps.

Module imports in file orderclicfgcoreauthdbapinetwsuilogfstest

Illustrative data. Module imports in file order.

fig. 50 · Module imports in file order

test reaching back to cli is the longest jump, spanning eleven positions. cli to ui spans eight, followed by cli to ws and core to log at seven each. core to db to api forms two shorter hops.

Use it for
Connection patterns over an ordered set, sequences especially.
Watch out
Node order decides everything; sort it on purpose.

Motion

Each arc carries a trail from its source to its target, whichever side of the axis the source sits on. Put data-dg-motion on the chart or any ancestor; see Motion.

Which modules import which, in file orderclicfgcoredbapinetuilog

On this page