GraphEdge
Defined in: src/types/index.ts:375
A directed transition between two graph nodes in the internal diagram model.
Properties
Section titled “Properties”condition?
Section titled “condition?”condition?: string;Defined in: src/types/index.ts:376
detail?
Section titled “detail?”detail?: string;Defined in: src/types/index.ts:382
A longer description than label, shown in the edge’s tooltip and the viewer’s
edge panel but never drawn on the diagram. Set on retry self-loops, where it
spells out each retrier’s backoff policy.
from: string;Defined in: src/types/index.ts:383
id: string;Defined in: src/types/index.ts:395
Stable identity for this edge, unique across the whole graph:
${from}->${to}#${type}#${ordinal} — e.g. Route->Work#choice#1.
Assigned once by parseAsl and never renumbered, so it stays valid as a
DiagramOptions.edgeOverrides key even after a collapse removes sibling edges.
That stability is against graph transforms, not against ASL edits: the
ordinal segment is assigned in parser order, so inserting a new Choice rule
ahead of an existing one that shares the same Next shifts the existing rule’s
ordinal — and therefore its id. A caller hand-writing edgeOverrides keys
should expect them to need updating when the ASL’s rule order changes.
label?
Section titled “label?”label?: string;Defined in: src/types/index.ts:396
to: string;Defined in: src/types/index.ts:397
type: EdgeType;Defined in: src/types/index.ts:398
visualOnly?
Section titled “visualOnly?”visualOnly?: boolean;Defined in: src/types/index.ts:399