@crewlethq/ui 0.122.0 → 0.124.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/README.md +45 -2
  2. package/dist/AvatarPicker/index.js +2 -2
  3. package/dist/Callout/Callout.d.ts +13 -1
  4. package/dist/Callout/index.d.ts +1 -1
  5. package/dist/Callout/index.js +1 -1
  6. package/dist/{Callout-G3N3IE6M.css → Callout-WLZKAFPT.css} +23 -0
  7. package/dist/Charts/StackedRing.d.ts +40 -0
  8. package/dist/Charts/TimeSeries.d.ts +8 -1
  9. package/dist/Charts/index.d.ts +2 -0
  10. package/dist/Charts/index.js +1 -1
  11. package/dist/{Charts-UJKADWXE.css → Charts-4VQ7T3GB.css} +85 -0
  12. package/dist/DataGrid/DataGrid.d.ts +11 -1
  13. package/dist/DataGrid/index.d.ts +1 -1
  14. package/dist/DataGrid/index.js +1 -1
  15. package/dist/{DataGrid-7KUUYSHA.css → DataGrid-KAFVH4B3.css} +3 -1
  16. package/dist/FindingList/FindingList.d.ts +8 -1
  17. package/dist/FindingList/index.js +1 -1
  18. package/dist/{FindingList-MPLA2ZTO.css → FindingList-5P2W5MIB.css} +24 -0
  19. package/dist/FollowBanner/index.js +2 -2
  20. package/dist/Fullscreen/FullscreenToggle.d.ts +21 -0
  21. package/dist/Fullscreen/index.d.ts +2 -0
  22. package/dist/Fullscreen/index.js +11 -1
  23. package/dist/GraphCanvas/GraphCanvas.d.ts +97 -16
  24. package/dist/GraphCanvas/index.d.ts +4 -4
  25. package/dist/GraphCanvas/index.js +3 -3
  26. package/dist/GraphCanvas/layout.d.ts +31 -1
  27. package/dist/GraphCanvas/walk.d.ts +5 -4
  28. package/dist/GraphCanvas-UZPZRP6S.css +793 -0
  29. package/dist/IconTile/IconTile.d.ts +26 -18
  30. package/dist/IconTile/index.d.ts +1 -1
  31. package/dist/IconTile/index.js +1 -1
  32. package/dist/IconTile-6OSCIHYU.css +112 -0
  33. package/dist/LinkInterstitial/index.js +2 -2
  34. package/dist/List/index.js +1 -1
  35. package/dist/{List-BNA4XGMH.css → List-DG77FXA6.css} +15 -0
  36. package/dist/OpenInAppCard/index.js +2 -2
  37. package/dist/OrgTable/index.js +3 -3
  38. package/dist/ReviewList/index.js +2 -2
  39. package/dist/RichEditor/index.js +2 -2
  40. package/dist/RoomRow/index.js +2 -2
  41. package/dist/SandboxedFrame/index.js +2 -2
  42. package/dist/SetupWizard/index.js +2 -2
  43. package/dist/ShareDialog/index.js +2 -2
  44. package/dist/TimeRangePicker/index.js +2 -2
  45. package/dist/TreeGrid/index.js +2 -2
  46. package/dist/{chunk-W5XCNEZC.js → chunk-3JLG6KRU.js} +23 -2
  47. package/dist/{chunk-NHHVN23D.js → chunk-45OOFAL6.js} +1 -1
  48. package/dist/{chunk-ZKGAEXLI.js → chunk-4EKHHHOQ.js} +1 -1
  49. package/dist/{chunk-AGVGX52B.js → chunk-7XYU5PSQ.js} +1 -1
  50. package/dist/{chunk-6KPHU4EB.js → chunk-DSBKVP73.js} +490 -122
  51. package/dist/{chunk-MDD6K5M4.js → chunk-EWJOBD25.js} +1 -1
  52. package/dist/{chunk-VY37HWFV.js → chunk-GAQU5V5R.js} +1 -1
  53. package/dist/{chunk-MVXQ74TB.js → chunk-I4V4GUVM.js} +1 -1
  54. package/dist/{chunk-XZQRJVOK.js → chunk-IMNCBQVO.js} +1 -1
  55. package/dist/chunk-J2GRBRGK.js +64 -0
  56. package/dist/{chunk-GUTZISXY.js → chunk-JXE4SCYV.js} +1 -1
  57. package/dist/{chunk-X5YI6QLW.js → chunk-NOKZULW3.js} +1 -1
  58. package/dist/{chunk-ZOMTCEHR.js → chunk-OFNJE4BN.js} +6 -1
  59. package/dist/{chunk-BPCY7ZID.js → chunk-RCQLXOGS.js} +9 -2
  60. package/dist/{chunk-75O3HCCD.js → chunk-T4TKY4VZ.js} +1 -1
  61. package/dist/{chunk-ENYHABQJ.js → chunk-VB7KAQBN.js} +1 -1
  62. package/dist/chunk-VRVNLJUA.js +46 -0
  63. package/dist/{chunk-6UVBOA4M.js → chunk-YKLYMQ6J.js} +1 -1
  64. package/dist/{chunk-MNTN5ESE.js → chunk-ZY5322MJ.js} +77 -3
  65. package/dist/generated/index.js +60 -60
  66. package/dist/index.js +60 -60
  67. package/dist/styles.css +766 -133
  68. package/package.json +3 -3
  69. package/dist/GraphCanvas-RSBMO2AF.css +0 -388
  70. package/dist/IconTile-G52XZVR4.css +0 -33
  71. package/dist/chunk-3LI4TRUR.js +0 -22
  72. package/dist/chunk-NEPNJMTD.js +0 -52
  73. package/dist/{chunk-2DZV4PHK.js → chunk-WLL3PFI3.js} +1 -1
  74. package/dist/{chunk-JWUIGUIS.js → chunk-YCT7LRYR.js} +1 -1
@@ -1,26 +1,41 @@
1
1
  /**
2
- * A layered map on a canvas: entries in lanes read left to right, bands of
3
- * lanes under each other, groups that open and close, and orthogonal edges
4
- * from each entry to what it relies on.
2
+ * A layered map on a canvas: entries stand in clusters (lanes) read left to
3
+ * right, bands of clusters under each other, groups that open and close, and
4
+ * right-angled lines from each entry to what it relies on.
5
5
  *
6
6
  * PURE PRESENTATION. Entries, edges, the selection and the trace come in as
7
7
  * props and every decision goes out through a callback; nothing is fetched.
8
8
  * The layout is `layout.ts` (pure, tested without a DOM), the walk `walk.ts`
9
9
  * and the reach `reach.ts`; this component measures, draws and listens.
10
10
  *
11
+ * THREE FAMILIES OF LINE. `flow` is the path a request takes: drawn at rest,
12
+ * with dashes moving along it that say which way it points (direction, never
13
+ * volume). `support` is what something runs on: at rest it is one trunk per
14
+ * pair of clusters, with its count. `context` is everything around (an
15
+ * account, a repository, a monitor). The last two are drawn line by line for
16
+ * the entry a reader stands on, or when the legend turns them on, which is
17
+ * what keeps a few hundred entries from being a tangle.
18
+ *
19
+ * ONE LOOK, INSIDE THE WORLD ONLY. Outlined boxes on a fine grid, a ruled
20
+ * glyph cell, square corners and mono labels are the drawing of clusters,
21
+ * entries, lines and trunks. The legend, the card, the dock and the zoom bar
22
+ * are the kit's own surfaces.
23
+ *
11
24
  * IT STAYS LIGHT AT THOUSANDS OF ENTRIES. Every card is one size, so nothing
12
25
  * is measured per card; only the cards near the view are mounted; edges are a
13
26
  * few paths rather than one element each; and zoomed out past legibility the
14
27
  * cards are drawn as shapes on one layer rather than as elements at all.
15
28
  */
16
- import { type ReactNode, type Ref } from 'react';
29
+ import { type ReactNode, type Ref, type RefObject } from 'react';
17
30
  import { type CanvasGround, type CanvasLabels, type CanvasRect, type CanvasSize, type CanvasView } from '../Canvas/index.js';
18
31
  import { type GraphTraceDirection } from './reach.js';
19
32
  /** A lane: one column of the map, or several in a band with fewer lanes. */
20
33
  export interface GraphLane {
21
34
  id: string;
22
- /** Its name, drawn over it: "Runtime". */
35
+ /** Its name, set into its outline: "Runtime". */
23
36
  label: string;
37
+ /** How many columns of entries it is wide. One unless named. */
38
+ columns?: number | undefined;
24
39
  /** What an empty lane says would fill it. Drawn in the lane, and read when the walk reaches it. */
25
40
  empty?: ReactNode;
26
41
  }
@@ -40,26 +55,40 @@ export interface GraphGroup {
40
55
  /** A mark ahead of the name, such as a vendor's. Decorative: the label is read. */
41
56
  lead?: ReactNode;
42
57
  }
43
- /** What needs attention on an entry, as one dot: never colour alone, so the word is read with it. */
58
+ /**
59
+ * What needs attention on an entry: a notch on its leading edge in the tone,
60
+ * and a badge with a glyph. Never colour alone, so the word is read with it.
61
+ */
44
62
  export type GraphAttentionTone = 'danger' | 'warning' | 'info';
45
63
  export interface GraphAttention {
46
64
  tone: GraphAttentionTone;
47
65
  /** The word a screen reader hears, such as "Alerting". */
48
66
  label: string;
67
+ /** Drawn in the badge in place of the tone's own glyph. */
68
+ glyph?: ReactNode;
49
69
  }
70
+ /** What a line says: a call, what something runs on, or what stands around it. */
71
+ export type GraphEdgeFamily = 'flow' | 'support' | 'context';
72
+ export declare const GRAPH_EDGE_FAMILIES: readonly GraphEdgeFamily[];
50
73
  export interface GraphNode {
51
74
  id: string;
52
75
  lane: string;
53
76
  group?: string | undefined;
54
- /** The first line: "orders-db". */
77
+ /** The column of its lane it stands in, from 0, in a lane of several: see [GraphLayoutNode]. */
78
+ column?: number | undefined;
79
+ /** Its name, on one line: "orders-db". */
55
80
  name: string;
56
- /** The second line, in the quiet ink: "postgres 16 · eu-west-1". */
81
+ /** The whole name, where `name` is a short form of it: the hover text, and what is read. */
82
+ title?: string | undefined;
83
+ /** Read after the name and never drawn, a card being one line: "postgres 16, eu-west-1". */
57
84
  caption?: string | undefined;
58
85
  /** What it is, read after the name: "Database". */
59
86
  kind?: string | undefined;
60
- /** The kind's glyph, drawn on a tile at the card's start. */
87
+ /** The kind's glyph, drawn in the cell at the card's start. */
61
88
  glyph?: ReactNode;
62
- /** A dot on the card's corner, only when something needs a person. */
89
+ /** A small mark on the cell's corner, such as a vendor's. Decorative. */
90
+ mark?: ReactNode;
91
+ /** A notch and a badge, only when something needs a person. */
63
92
  attention?: GraphAttention | undefined;
64
93
  /** Not confirmed by anyone the map trusts: drawn with a dashed edge. */
65
94
  unconfirmed?: boolean | undefined;
@@ -71,8 +100,8 @@ export interface GraphEdge {
71
100
  to: string;
72
101
  /** The relation, as words a reader hears in a card's description: "runs on". */
73
102
  label?: string | undefined;
74
- /** Drawn while nothing is selected. Off for a relation that would cross the whole map (an owning account). */
75
- atRest?: boolean | undefined;
103
+ /** What it says, which decides how and when it is drawn. A call (`flow`) unless named. */
104
+ family?: GraphEdgeFamily | undefined;
76
105
  }
77
106
  /** What a trace lights from the selected entry: which way, and how many hops. */
78
107
  export interface GraphTrace {
@@ -101,6 +130,17 @@ export interface GraphCanvasLabels extends CanvasLabels {
101
130
  unconfirmed: string;
102
131
  /** A card's description: what it relies on and what relies on it. */
103
132
  relations: (dependsOn: readonly GraphRelationText[], usedBy: readonly GraphRelationText[]) => string;
133
+ /** The legend's name. */
134
+ legend: string;
135
+ /** Each family of line, as its legend switch says it. */
136
+ families: Record<GraphEdgeFamily, string>;
137
+ /** The legend's key for an entry nothing is wrong with. */
138
+ quiet: string;
139
+ /** On a trunk between two clusters: how many lines it stands for. */
140
+ trunk: (lines: number) => string;
141
+ /** The fullscreen control's two names. */
142
+ fullscreen: string;
143
+ leaveFullscreen: string;
104
144
  }
105
145
  export declare const GRAPH_CANVAS_LABELS: GraphCanvasLabels;
106
146
  /**
@@ -119,6 +159,17 @@ export declare const GRAPH_CANVAS_OPEN_ZOOM = 0.75;
119
159
  * large: two thousand entries in five lanes fit at about a twentieth.
120
160
  */
121
161
  export declare const GRAPH_CANVAS_FIT_FLOOR = 0.02;
162
+ /**
163
+ * HOW MANY MOVING LINES A VIEW CARRIES. Past this many calls in view the
164
+ * dashes at rest stand still: a few hundred animated dashes cost every frame
165
+ * and say nothing a reader can follow. The lit path always moves.
166
+ */
167
+ export declare const GRAPH_CANVAS_FLOW_LIMIT = 160;
168
+ /**
169
+ * The width, in CSS pixels, under which a map is narrow: its legend and its
170
+ * dock stand under the picture instead of over it, so neither ever covers an entry.
171
+ */
172
+ export declare const GRAPH_CANVAS_NARROW_WIDTH = 800;
122
173
  /** What a screen can ask of a map it holds a ref to. */
123
174
  export interface GraphCanvasHandle {
124
175
  /** Moves focus to an entry's card, opening its group and bringing it into view. */
@@ -143,10 +194,40 @@ export interface GraphCanvasProps {
143
194
  /** Called with the open groups whenever one opens or closes. */
144
195
  onOpenGroupsChange?: ((open: ReadonlySet<string>) => void) | undefined;
145
196
  selectedId?: string | null | undefined;
146
- /** A press or Enter on a card selects it; Escape clears with `null`. */
197
+ /** A press or Enter on a card selects it; the same on the selected card, a press on the ground or Escape clears with `null`. */
147
198
  onSelect?: ((id: string | null) => void) | undefined;
148
- /** Lights what the selection reaches; unset, the selection lights its neighbours. */
199
+ /**
200
+ * How far the selection lights along the lines that carry a failure (calls
201
+ * and what things run on). Unset, the whole path both ways. What stands
202
+ * around the selection is lit one step away whatever the trace.
203
+ */
149
204
  trace?: GraphTrace | null | undefined;
205
+ /** The entry another surface points at, such as a table row under the pointer: lit as the pointer lights one. */
206
+ hoveredId?: string | null | undefined;
207
+ /** Called with the entry the pointer or focus rests on, and `null` when it leaves. */
208
+ onHover?: ((id: string | null) => void) | undefined;
209
+ /** The card drawn beside the entry the pointer or focus rests on. */
210
+ renderCard?: ((id: string) => ReactNode) | undefined;
211
+ /** Drawn over the map's lower edge, such as what is selected and what can be done with it. */
212
+ dock?: ReactNode;
213
+ /** The families of line drawn at rest, when the caller holds them. Calls alone unless named. */
214
+ families?: ReadonlySet<GraphEdgeFamily> | undefined;
215
+ /** Called with the families drawn at rest whenever the legend switches one. */
216
+ onFamiliesChange?: ((families: ReadonlySet<GraphEdgeFamily>) => void) | undefined;
217
+ /** The word for each tone, for the legend and each cluster's tally: "Alerting". A tone with no word has no key. */
218
+ tones?: Partial<Record<GraphAttentionTone, string>> | undefined;
219
+ /**
220
+ * The zoom bar, the legend, the trunks and fullscreen. Off for a small,
221
+ * still diagram, such as one entry among its neighbours.
222
+ */
223
+ chrome?: boolean | undefined;
224
+ /**
225
+ * The fullscreen control in the zoom bar. On by default, taking the map
226
+ * itself; pass the element to take instead where the map opens something
227
+ * beside it (a detail sheet), since a fullscreen element paints only its
228
+ * own subtree.
229
+ */
230
+ fullscreen?: boolean | RefObject<HTMLElement | null> | undefined;
150
231
  /** A card pushed back, such as one a legend filter leaves out. */
151
232
  cardDimmed?: ((id: string) => boolean) | undefined;
152
233
  /** Drawn over the canvas without the transform. */
@@ -156,7 +237,7 @@ export interface GraphCanvasProps {
156
237
  controlsBelow?: ReactNode;
157
238
  /** A bar in the corner opposite the zoom bar, such as the trace switch. */
158
239
  controlsStart?: ReactNode;
159
- /** A bar across from the zoom bar, such as a status legend. */
240
+ /** More in the bar across from the zoom bar, after the legend. */
160
241
  overlayEnd?: ReactNode;
161
242
  hint?: ReactNode;
162
243
  ground?: CanvasGround | undefined;
@@ -177,7 +258,7 @@ export interface GraphWindow {
177
258
  /** Whether cards are drawn as cards, or as shapes for a zoom too far out to read. */
178
259
  detail: boolean;
179
260
  }
180
- export declare function GraphCanvas({ label, bands, nodes, edges, groups, collapseAbove, openGroups, onOpenGroupsChange, selectedId, onSelect, trace, cardDimmed, overlay, controlsPlacement, controlsExtra, controlsBelow, controlsStart, overlayEnd, hint, ground, labels, minZoom, fitKey, initialView, onViewChange, ref, className, }: GraphCanvasProps): import("react").JSX.Element;
261
+ export declare function GraphCanvas({ label, bands, nodes, edges, groups, collapseAbove, openGroups, onOpenGroupsChange, selectedId, onSelect, trace, hoveredId, onHover, renderCard, dock, families, onFamiliesChange, tones, chrome, fullscreen, cardDimmed, overlay, controlsPlacement, controlsExtra, controlsBelow, controlsStart, overlayEnd, hint, ground, labels, minZoom, fitKey, initialView, onViewChange, ref, className, }: GraphCanvasProps): import("react").JSX.Element;
181
262
  /**
182
263
  * THE WINDOW MOVES IN STEPS. What is mounted is the view with half a screen
183
264
  * of room on every side, and it is replaced only when the view leaves it or
@@ -1,8 +1,8 @@
1
1
  import './GraphCanvas.css';
2
- export { GRAPH_CANVAS_DETAIL_ZOOM, GRAPH_CANVAS_FIT_FLOOR, GRAPH_CANVAS_LABELS, GRAPH_CANVAS_OPEN_ZOOM, GraphCanvas, graphWindow, } from './GraphCanvas.js';
3
- export type { GraphAttention, GraphAttentionTone, GraphBand, GraphCanvasHandle, GraphCanvasLabels, GraphCanvasProps, GraphEdge, GraphGroup, GraphLane, GraphNode, GraphRelationText, GraphTrace, GraphWindow, } from './GraphCanvas.js';
4
- export { GRAPH_ORDER_SWEEPS, graphItemKey, layoutGraph, routeGraphEdges } from './layout.js';
5
- export type { GraphBandPlaced, GraphGrid, GraphGroupPlaced, GraphItem, GraphItemKind, GraphLanePlaced, GraphLayout, GraphLayoutBand, GraphLayoutEdge, GraphLayoutGroup, GraphLayoutInput, GraphLayoutNode, GraphMetrics, GraphRoute, GraphStreet, } from './layout.js';
2
+ export { GRAPH_CANVAS_DETAIL_ZOOM, GRAPH_CANVAS_FIT_FLOOR, GRAPH_CANVAS_FLOW_LIMIT, GRAPH_CANVAS_NARROW_WIDTH, GRAPH_CANVAS_LABELS, GRAPH_CANVAS_OPEN_ZOOM, GRAPH_EDGE_FAMILIES, GraphCanvas, graphWindow, } from './GraphCanvas.js';
3
+ export type { GraphAttention, GraphAttentionTone, GraphBand, GraphCanvasHandle, GraphCanvasLabels, GraphCanvasProps, GraphEdge, GraphEdgeFamily, GraphGroup, GraphLane, GraphNode, GraphRelationText, GraphTrace, GraphWindow, } from './GraphCanvas.js';
4
+ export { GRAPH_ORDER_SWEEPS, graphItemKey, graphTrunks, layoutGraph, routeGraphEdges } from './layout.js';
5
+ export type { GraphBandPlaced, GraphGrid, GraphGroupPlaced, GraphItem, GraphItemKind, GraphLanePlaced, GraphLayout, GraphLayoutBand, GraphLayoutEdge, GraphLayoutGroup, GraphLayoutInput, GraphLayoutNode, GraphMetrics, GraphRoute, GraphStreet, GraphTrunk, } from './layout.js';
6
6
  export { graphNeighbourhood, graphReach } from './reach.js';
7
7
  export type { GraphReach, GraphTraceDirection } from './reach.js';
8
8
  export { graphStep } from './walk.js';
@@ -1,11 +1,11 @@
1
- export { GRAPH_CANVAS_DETAIL_ZOOM, GRAPH_CANVAS_FIT_FLOOR, GRAPH_CANVAS_LABELS, GRAPH_CANVAS_OPEN_ZOOM, GRAPH_ORDER_SWEEPS, GraphCanvas, graphItemKey, graphNeighbourhood, graphReach, graphStep, graphWindow, layoutGraph, routeGraphEdges } from '../chunk-6KPHU4EB.js';
1
+ export { GRAPH_CANVAS_DETAIL_ZOOM, GRAPH_CANVAS_FIT_FLOOR, GRAPH_CANVAS_FLOW_LIMIT, GRAPH_CANVAS_LABELS, GRAPH_CANVAS_NARROW_WIDTH, GRAPH_CANVAS_OPEN_ZOOM, GRAPH_EDGE_FAMILIES, GRAPH_ORDER_SWEEPS, GraphCanvas, graphItemKey, graphNeighbourhood, graphReach, graphStep, graphTrunks, graphWindow, layoutGraph, routeGraphEdges } from '../chunk-DSBKVP73.js';
2
2
  import '../chunk-MY374UUD.js';
3
- import '../chunk-3LI4TRUR.js';
3
+ import '../chunk-L6HUVA33.js';
4
+ import '../chunk-3JLG6KRU.js';
4
5
  import '../chunk-GKHZSNIV.js';
5
6
  import '../chunk-X4HBZSXA.js';
6
7
  import '../chunk-XLMURU75.js';
7
8
  import '../chunk-WSIJDWUG.js';
8
- import '../chunk-QRE6JCHS.js';
9
9
  import '../chunk-VBBLHS2Y.js';
10
10
  import '../chunk-M2M6ZD7P.js';
11
11
  import '../chunk-XSPCITPN.js';
@@ -26,6 +26,13 @@ export interface GraphLayoutNode {
26
26
  id: string;
27
27
  lane: string;
28
28
  group?: string | undefined;
29
+ /**
30
+ * The column of its lane it stands in, from 0, for a lane wider than one
31
+ * column whose columns mean something (a depth: what calls stands left of
32
+ * what is called). Read for a lane that holds no groups; elsewhere the lane
33
+ * fills row by row.
34
+ */
35
+ column?: number | undefined;
29
36
  }
30
37
  export interface GraphLayoutGroup {
31
38
  id: string;
@@ -62,8 +69,12 @@ export interface GraphLayoutInput {
62
69
  groups?: readonly GraphLayoutGroup[] | undefined;
63
70
  /** Whether a group is drawn open. A closed group is one summary card. */
64
71
  open: (groupId: string) => boolean;
65
- /** The edges drawn at rest, which also decide the order inside a lane. */
72
+ /** The edges drawn at rest. */
66
73
  edges: readonly GraphLayoutEdge[];
74
+ /** The edges that decide the order inside a lane: `edges` unless given, so hiding a line never moves a card. */
75
+ ordering?: readonly GraphLayoutEdge[] | undefined;
76
+ /** How many columns a lane asks for, by lane id. Unlisted lanes ask for one. */
77
+ laneColumns?: ReadonlyMap<string, number> | undefined;
67
78
  /** The height an empty lane's message takes, by lane id. Unlisted lanes keep one row. */
68
79
  emptyHeights?: ReadonlyMap<string, number> | undefined;
69
80
  }
@@ -199,3 +210,22 @@ export declare function layoutGraph(input: GraphLayoutInput, metrics: GraphMetri
199
210
  * edges a selection reveals: each pair of drawn items once, in its own tracks.
200
211
  */
201
212
  export declare function routeGraphEdges(layout: GraphLayout, edges: readonly GraphLayoutEdge[]): GraphRoute[];
213
+ /** Every line between two lanes of a kind that is not drawn one by one, as one line with its count. */
214
+ export interface GraphTrunk {
215
+ /** The two lanes, upper then lower: `services>runtime`. */
216
+ key: string;
217
+ from: string;
218
+ to: string;
219
+ /** How many edges it stands for. */
220
+ count: number;
221
+ d: string;
222
+ /** Where its count is written: the middle of its run. */
223
+ label: CanvasPoint;
224
+ box: CanvasRect;
225
+ }
226
+ /**
227
+ * The trunks of a set of edges: one per pair of lanes in neighbouring bands,
228
+ * straight down where the two panels overlap and stepped through the gap
229
+ * between the bands where they do not. Edges inside one band have no trunk.
230
+ */
231
+ export declare function graphTrunks(layout: Pick<GraphLayout, 'laneById'>, edges: readonly GraphLayoutEdge[], laneOf: (node: string) => string | undefined): GraphTrunk[];
@@ -1,10 +1,11 @@
1
1
  /**
2
2
  * The keyboard walk over a laid out map, as a pure function of the layout.
3
3
  *
4
- * Up and Down move through a lane in reading order and on into the band above
5
- * or below; Left and Right move to the item nearest in height in the lane
6
- * beside; Home and End go to a lane's ends, and with Control or Command to the
7
- * map's. An empty lane is a stop too, so its message is read.
4
+ * The arrows move the way they point. Up and Down move along a lane's column
5
+ * and on into the band above or below; Left and Right move to the next column
6
+ * of the lane, then to the item nearest in height in the lane beside; Home
7
+ * and End go to a lane's ends, and with Control or Command to the map's. An
8
+ * empty lane is a stop too, so its message is read.
8
9
  */
9
10
  import type { GraphLayout } from './layout.js';
10
11
  export interface GraphStepKey {