@cristianormazabal/triton-core 0.1.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.
- package/dist/contracts/anchors.d.ts +150 -0
- package/dist/contracts/anchors.d.ts.map +1 -0
- package/dist/contracts/crosslink.d.ts +171 -0
- package/dist/contracts/crosslink.d.ts.map +1 -0
- package/dist/contracts/diagram.d.ts +107 -0
- package/dist/contracts/diagram.d.ts.map +1 -0
- package/dist/contracts/index.d.ts +29 -0
- package/dist/contracts/index.d.ts.map +1 -0
- package/dist/contracts/overlay.d.ts +98 -0
- package/dist/contracts/overlay.d.ts.map +1 -0
- package/dist/contracts/primitives.d.ts +42 -0
- package/dist/contracts/primitives.d.ts.map +1 -0
- package/dist/contracts/renderer.d.ts +21 -0
- package/dist/contracts/renderer.d.ts.map +1 -0
- package/dist/contracts/result.d.ts +32 -0
- package/dist/contracts/result.d.ts.map +1 -0
- package/dist/contracts/routing.d.ts +60 -0
- package/dist/contracts/routing.d.ts.map +1 -0
- package/dist/contracts/scene.d.ts +114 -0
- package/dist/contracts/scene.d.ts.map +1 -0
- package/dist/contracts/theme.d.ts +113 -0
- package/dist/contracts/theme.d.ts.map +1 -0
- package/dist/crosslink/engine2.d.ts +40 -0
- package/dist/crosslink/engine2.d.ts.map +1 -0
- package/dist/crosslink/engine3.d.ts +36 -0
- package/dist/crosslink/engine3.d.ts.map +1 -0
- package/dist/crosslink/index.d.ts +5 -0
- package/dist/crosslink/index.d.ts.map +1 -0
- package/dist/crosslink/render.d.ts +22 -0
- package/dist/crosslink/render.d.ts.map +1 -0
- package/dist/crosslink/resolve.d.ts +26 -0
- package/dist/crosslink/resolve.d.ts.map +1 -0
- package/dist/diagrams/architecture/index.d.ts +5 -0
- package/dist/diagrams/architecture/index.d.ts.map +1 -0
- package/dist/diagrams/architecture/ir.d.ts +29 -0
- package/dist/diagrams/architecture/ir.d.ts.map +1 -0
- package/dist/diagrams/architecture/layout.d.ts +11 -0
- package/dist/diagrams/architecture/layout.d.ts.map +1 -0
- package/dist/diagrams/block/index.d.ts +5 -0
- package/dist/diagrams/block/index.d.ts.map +1 -0
- package/dist/diagrams/block/ir.d.ts +22 -0
- package/dist/diagrams/block/ir.d.ts.map +1 -0
- package/dist/diagrams/block/layout.d.ts +12 -0
- package/dist/diagrams/block/layout.d.ts.map +1 -0
- package/dist/diagrams/c4/index.d.ts +5 -0
- package/dist/diagrams/c4/index.d.ts.map +1 -0
- package/dist/diagrams/c4/ir.d.ts +33 -0
- package/dist/diagrams/c4/ir.d.ts.map +1 -0
- package/dist/diagrams/c4/layout.d.ts +12 -0
- package/dist/diagrams/c4/layout.d.ts.map +1 -0
- package/dist/diagrams/class/index.d.ts +5 -0
- package/dist/diagrams/class/index.d.ts.map +1 -0
- package/dist/diagrams/class/ir.d.ts +32 -0
- package/dist/diagrams/class/ir.d.ts.map +1 -0
- package/dist/diagrams/class/layout.d.ts +13 -0
- package/dist/diagrams/class/layout.d.ts.map +1 -0
- package/dist/diagrams/ds/graph/graph.d.ts +39 -0
- package/dist/diagrams/ds/graph/graph.d.ts.map +1 -0
- package/dist/diagrams/ds/hashmap/hashmap.d.ts +39 -0
- package/dist/diagrams/ds/hashmap/hashmap.d.ts.map +1 -0
- package/dist/diagrams/ds/matrix/matrix.d.ts +33 -0
- package/dist/diagrams/ds/matrix/matrix.d.ts.map +1 -0
- package/dist/diagrams/ds/queue/cqueue.d.ts +31 -0
- package/dist/diagrams/ds/queue/cqueue.d.ts.map +1 -0
- package/dist/diagrams/ds/queue/deque.d.ts +24 -0
- package/dist/diagrams/ds/queue/deque.d.ts.map +1 -0
- package/dist/diagrams/ds/queue/pqueue.d.ts +29 -0
- package/dist/diagrams/ds/queue/pqueue.d.ts.map +1 -0
- package/dist/diagrams/ds/queue/queue.d.ts +27 -0
- package/dist/diagrams/ds/queue/queue.d.ts.map +1 -0
- package/dist/diagrams/ds/queue/shared.d.ts +35 -0
- package/dist/diagrams/ds/queue/shared.d.ts.map +1 -0
- package/dist/diagrams/ds/stack/stack.d.ts +28 -0
- package/dist/diagrams/ds/stack/stack.d.ts.map +1 -0
- package/dist/diagrams/ds/struct/array.d.ts +28 -0
- package/dist/diagrams/ds/struct/array.d.ts.map +1 -0
- package/dist/diagrams/ds/struct/linkedlist.d.ts +21 -0
- package/dist/diagrams/ds/struct/linkedlist.d.ts.map +1 -0
- package/dist/diagrams/ds/struct/memory.d.ts +44 -0
- package/dist/diagrams/ds/struct/memory.d.ts.map +1 -0
- package/dist/diagrams/ds/struct/page.d.ts +25 -0
- package/dist/diagrams/ds/struct/page.d.ts.map +1 -0
- package/dist/diagrams/ds/struct/shared.d.ts +9 -0
- package/dist/diagrams/ds/struct/shared.d.ts.map +1 -0
- package/dist/diagrams/ds/tree/avl.d.ts +14 -0
- package/dist/diagrams/ds/tree/avl.d.ts.map +1 -0
- package/dist/diagrams/ds/tree/btree.d.ts +12 -0
- package/dist/diagrams/ds/tree/btree.d.ts.map +1 -0
- package/dist/diagrams/ds/tree/build.d.ts +34 -0
- package/dist/diagrams/ds/tree/build.d.ts.map +1 -0
- package/dist/diagrams/ds/tree/heap.d.ts +12 -0
- package/dist/diagrams/ds/tree/heap.d.ts.map +1 -0
- package/dist/diagrams/ds/tree/index.d.ts +5 -0
- package/dist/diagrams/ds/tree/index.d.ts.map +1 -0
- package/dist/diagrams/ds/tree/ir.d.ts +29 -0
- package/dist/diagrams/ds/tree/ir.d.ts.map +1 -0
- package/dist/diagrams/ds/tree/layout.d.ts +13 -0
- package/dist/diagrams/ds/tree/layout.d.ts.map +1 -0
- package/dist/diagrams/ds/tree/plan.d.ts +11 -0
- package/dist/diagrams/ds/tree/plan.d.ts.map +1 -0
- package/dist/diagrams/ds/tree/radix.d.ts +12 -0
- package/dist/diagrams/ds/tree/radix.d.ts.map +1 -0
- package/dist/diagrams/ds/tree/rbtree.d.ts +12 -0
- package/dist/diagrams/ds/tree/rbtree.d.ts.map +1 -0
- package/dist/diagrams/ds/tree/segtree.d.ts +12 -0
- package/dist/diagrams/ds/tree/segtree.d.ts.map +1 -0
- package/dist/diagrams/ds/trie/trie.d.ts +17 -0
- package/dist/diagrams/ds/trie/trie.d.ts.map +1 -0
- package/dist/diagrams/ds/unionfind/unionfind.d.ts +34 -0
- package/dist/diagrams/ds/unionfind/unionfind.d.ts.map +1 -0
- package/dist/diagrams/er/index.d.ts +5 -0
- package/dist/diagrams/er/index.d.ts.map +1 -0
- package/dist/diagrams/er/ir.d.ts +28 -0
- package/dist/diagrams/er/ir.d.ts.map +1 -0
- package/dist/diagrams/er/layout.d.ts +12 -0
- package/dist/diagrams/er/layout.d.ts.map +1 -0
- package/dist/diagrams/flowchart/index.d.ts +5 -0
- package/dist/diagrams/flowchart/index.d.ts.map +1 -0
- package/dist/diagrams/flowchart/ir.d.ts +38 -0
- package/dist/diagrams/flowchart/ir.d.ts.map +1 -0
- package/dist/diagrams/flowchart/layout.d.ts +5 -0
- package/dist/diagrams/flowchart/layout.d.ts.map +1 -0
- package/dist/diagrams/gantt/index.d.ts +5 -0
- package/dist/diagrams/gantt/index.d.ts.map +1 -0
- package/dist/diagrams/gantt/ir.d.ts +25 -0
- package/dist/diagrams/gantt/ir.d.ts.map +1 -0
- package/dist/diagrams/gantt/layout.d.ts +12 -0
- package/dist/diagrams/gantt/layout.d.ts.map +1 -0
- package/dist/diagrams/gitgraph/index.d.ts +5 -0
- package/dist/diagrams/gitgraph/index.d.ts.map +1 -0
- package/dist/diagrams/gitgraph/ir.d.ts +31 -0
- package/dist/diagrams/gitgraph/ir.d.ts.map +1 -0
- package/dist/diagrams/gitgraph/layout.d.ts +12 -0
- package/dist/diagrams/gitgraph/layout.d.ts.map +1 -0
- package/dist/diagrams/journey/index.d.ts +5 -0
- package/dist/diagrams/journey/index.d.ts.map +1 -0
- package/dist/diagrams/journey/ir.d.ts +20 -0
- package/dist/diagrams/journey/ir.d.ts.map +1 -0
- package/dist/diagrams/journey/layout.d.ts +13 -0
- package/dist/diagrams/journey/layout.d.ts.map +1 -0
- package/dist/diagrams/kanban/index.d.ts +5 -0
- package/dist/diagrams/kanban/index.d.ts.map +1 -0
- package/dist/diagrams/kanban/ir.d.ts +18 -0
- package/dist/diagrams/kanban/ir.d.ts.map +1 -0
- package/dist/diagrams/kanban/layout.d.ts +12 -0
- package/dist/diagrams/kanban/layout.d.ts.map +1 -0
- package/dist/diagrams/mindmap/index.d.ts +5 -0
- package/dist/diagrams/mindmap/index.d.ts.map +1 -0
- package/dist/diagrams/mindmap/ir.d.ts +15 -0
- package/dist/diagrams/mindmap/ir.d.ts.map +1 -0
- package/dist/diagrams/mindmap/layout.d.ts +12 -0
- package/dist/diagrams/mindmap/layout.d.ts.map +1 -0
- package/dist/diagrams/packet/index.d.ts +5 -0
- package/dist/diagrams/packet/index.d.ts.map +1 -0
- package/dist/diagrams/packet/ir.d.ts +15 -0
- package/dist/diagrams/packet/ir.d.ts.map +1 -0
- package/dist/diagrams/packet/layout.d.ts +12 -0
- package/dist/diagrams/packet/layout.d.ts.map +1 -0
- package/dist/diagrams/pie/index.d.ts +5 -0
- package/dist/diagrams/pie/index.d.ts.map +1 -0
- package/dist/diagrams/pie/ir.d.ts +16 -0
- package/dist/diagrams/pie/ir.d.ts.map +1 -0
- package/dist/diagrams/pie/layout.d.ts +12 -0
- package/dist/diagrams/pie/layout.d.ts.map +1 -0
- package/dist/diagrams/poster/index.d.ts +5 -0
- package/dist/diagrams/poster/index.d.ts.map +1 -0
- package/dist/diagrams/poster/ir.d.ts +46 -0
- package/dist/diagrams/poster/ir.d.ts.map +1 -0
- package/dist/diagrams/poster/layout.d.ts +8 -0
- package/dist/diagrams/poster/layout.d.ts.map +1 -0
- package/dist/diagrams/quadrant/index.d.ts +5 -0
- package/dist/diagrams/quadrant/index.d.ts.map +1 -0
- package/dist/diagrams/quadrant/ir.d.ts +23 -0
- package/dist/diagrams/quadrant/ir.d.ts.map +1 -0
- package/dist/diagrams/quadrant/layout.d.ts +12 -0
- package/dist/diagrams/quadrant/layout.d.ts.map +1 -0
- package/dist/diagrams/radar/index.d.ts +5 -0
- package/dist/diagrams/radar/index.d.ts.map +1 -0
- package/dist/diagrams/radar/ir.d.ts +22 -0
- package/dist/diagrams/radar/ir.d.ts.map +1 -0
- package/dist/diagrams/radar/layout.d.ts +12 -0
- package/dist/diagrams/radar/layout.d.ts.map +1 -0
- package/dist/diagrams/requirement/index.d.ts +5 -0
- package/dist/diagrams/requirement/index.d.ts.map +1 -0
- package/dist/diagrams/requirement/ir.d.ts +25 -0
- package/dist/diagrams/requirement/ir.d.ts.map +1 -0
- package/dist/diagrams/requirement/layout.d.ts +12 -0
- package/dist/diagrams/requirement/layout.d.ts.map +1 -0
- package/dist/diagrams/sankey/index.d.ts +5 -0
- package/dist/diagrams/sankey/index.d.ts.map +1 -0
- package/dist/diagrams/sankey/ir.d.ts +15 -0
- package/dist/diagrams/sankey/ir.d.ts.map +1 -0
- package/dist/diagrams/sankey/layout.d.ts +12 -0
- package/dist/diagrams/sankey/layout.d.ts.map +1 -0
- package/dist/diagrams/sequence/index.d.ts +5 -0
- package/dist/diagrams/sequence/index.d.ts.map +1 -0
- package/dist/diagrams/sequence/ir.d.ts +47 -0
- package/dist/diagrams/sequence/ir.d.ts.map +1 -0
- package/dist/diagrams/sequence/layout.d.ts +13 -0
- package/dist/diagrams/sequence/layout.d.ts.map +1 -0
- package/dist/diagrams/state/index.d.ts +5 -0
- package/dist/diagrams/state/index.d.ts.map +1 -0
- package/dist/diagrams/state/ir.d.ts +28 -0
- package/dist/diagrams/state/ir.d.ts.map +1 -0
- package/dist/diagrams/state/layout.d.ts +12 -0
- package/dist/diagrams/state/layout.d.ts.map +1 -0
- package/dist/diagrams/timeline/index.d.ts +7 -0
- package/dist/diagrams/timeline/index.d.ts.map +1 -0
- package/dist/diagrams/timeline/ir.d.ts +47 -0
- package/dist/diagrams/timeline/ir.d.ts.map +1 -0
- package/dist/diagrams/timeline/layout.d.ts +5 -0
- package/dist/diagrams/timeline/layout.d.ts.map +1 -0
- package/dist/diagrams/timeline/numbered.d.ts +16 -0
- package/dist/diagrams/timeline/numbered.d.ts.map +1 -0
- package/dist/diagrams/timeline/roadmap.d.ts +18 -0
- package/dist/diagrams/timeline/roadmap.d.ts.map +1 -0
- package/dist/diagrams/timeline/serpentine.d.ts +20 -0
- package/dist/diagrams/timeline/serpentine.d.ts.map +1 -0
- package/dist/diagrams/timeline/shared.d.ts +37 -0
- package/dist/diagrams/timeline/shared.d.ts.map +1 -0
- package/dist/diagrams/timeline/timeline-columns.d.ts +19 -0
- package/dist/diagrams/timeline/timeline-columns.d.ts.map +1 -0
- package/dist/diagrams/timeline/vertical-spine.d.ts +21 -0
- package/dist/diagrams/timeline/vertical-spine.d.ts.map +1 -0
- package/dist/diagrams/topology/topology.d.ts +47 -0
- package/dist/diagrams/topology/topology.d.ts.map +1 -0
- package/dist/diagrams/xychart/index.d.ts +5 -0
- package/dist/diagrams/xychart/index.d.ts.map +1 -0
- package/dist/diagrams/xychart/ir.d.ts +21 -0
- package/dist/diagrams/xychart/ir.d.ts.map +1 -0
- package/dist/diagrams/xychart/layout.d.ts +12 -0
- package/dist/diagrams/xychart/layout.d.ts.map +1 -0
- package/dist/frontend/detect.d.ts +7 -0
- package/dist/frontend/detect.d.ts.map +1 -0
- package/dist/frontend/index.d.ts +44 -0
- package/dist/frontend/index.d.ts.map +1 -0
- package/dist/frontend/registry.d.ts +21 -0
- package/dist/frontend/registry.d.ts.map +1 -0
- package/dist/graph/connect.d.ts +39 -0
- package/dist/graph/connect.d.ts.map +1 -0
- package/dist/graph/layered.d.ts +43 -0
- package/dist/graph/layered.d.ts.map +1 -0
- package/dist/graph/tree.d.ts +41 -0
- package/dist/graph/tree.d.ts.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +41345 -0
- package/dist/index.js.map +7 -0
- package/dist/overlay/apply.d.ts +15 -0
- package/dist/overlay/apply.d.ts.map +1 -0
- package/dist/overlay/compiler.d.ts +10 -0
- package/dist/overlay/compiler.d.ts.map +1 -0
- package/dist/overlay/layout.d.ts +16 -0
- package/dist/overlay/layout.d.ts.map +1 -0
- package/dist/palette/categorical.d.ts +15 -0
- package/dist/palette/categorical.d.ts.map +1 -0
- package/dist/render/registry.d.ts +15 -0
- package/dist/render/registry.d.ts.map +1 -0
- package/dist/render/svg.d.ts +11 -0
- package/dist/render/svg.d.ts.map +1 -0
- package/dist/routing/registry.d.ts +16 -0
- package/dist/routing/registry.d.ts.map +1 -0
- package/dist/routing/router.d.ts +10 -0
- package/dist/routing/router.d.ts.map +1 -0
- package/dist/scene/build.d.ts +45 -0
- package/dist/scene/build.d.ts.map +1 -0
- package/dist/scene/strip.d.ts +39 -0
- package/dist/scene/strip.d.ts.map +1 -0
- package/dist/style/cost.d.ts +35 -0
- package/dist/style/cost.d.ts.map +1 -0
- package/dist/text/metrics.d.ts +19 -0
- package/dist/text/metrics.d.ts.map +1 -0
- package/dist/text/wrap.d.ts +21 -0
- package/dist/text/wrap.d.ts.map +1 -0
- package/dist/theme/preset.d.ts +29 -0
- package/dist/theme/preset.d.ts.map +1 -0
- package/dist/theme/resolver.d.ts +7 -0
- package/dist/theme/resolver.d.ts.map +1 -0
- package/dist/time/dates.d.ts +72 -0
- package/dist/time/dates.d.ts.map +1 -0
- package/dist/util/round.d.ts +12 -0
- package/dist/util/round.d.ts.map +1 -0
- package/package.json +42 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file diagrams/tree/btree.ts — B-tree front-end over the tree engine.
|
|
3
|
+
*
|
|
4
|
+
* Value-driven: `btree order 3 insert 10 20 …` performs real B-tree insertion
|
|
5
|
+
* with node splitting and emits multi-key strip nodes. Structure is valid by
|
|
6
|
+
* construction (every non-root node holds between ⌈order/2⌉−1 and order−1 keys).
|
|
7
|
+
*/
|
|
8
|
+
import type { DiagramModule } from '../../../contracts/index.js';
|
|
9
|
+
import type { TreeDocument } from './ir.js';
|
|
10
|
+
export declare function buildBtree(input: string): TreeDocument;
|
|
11
|
+
export declare const btree: DiagramModule<TreeDocument>;
|
|
12
|
+
//# sourceMappingURL=btree.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"btree.d.ts","sourceRoot":"","sources":["../../../../../../src/diagrams/ds/tree/btree.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,aAAa,EAA+B,MAAM,6BAA6B,CAAC;AAC9F,OAAO,KAAK,EAAE,YAAY,EAAY,MAAM,SAAS,CAAC;AAwCtD,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,CAwBtD;AAED,eAAO,MAAM,KAAK,EAAE,aAAa,CAAC,YAAY,CAI7C,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file diagrams/tree/build.ts — Shared parsing helpers for the tree family.
|
|
3
|
+
*
|
|
4
|
+
* The indentation grammar (shared by `tree` and `plan`) is parsed here and the
|
|
5
|
+
* raw lines are folded into a child-linked node list. Semantic front-ends
|
|
6
|
+
* (plan) reuse this; value-driven front-ends (avl, …) build nodes directly.
|
|
7
|
+
*/
|
|
8
|
+
export interface RawLine {
|
|
9
|
+
indent: number;
|
|
10
|
+
label: string;
|
|
11
|
+
kinds: string[];
|
|
12
|
+
attrs: Record<string, unknown>;
|
|
13
|
+
edgeLabel?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface ParsedTree {
|
|
16
|
+
version: string;
|
|
17
|
+
metadata: Record<string, unknown>;
|
|
18
|
+
direction: 'TB' | 'LR';
|
|
19
|
+
lines: RawLine[];
|
|
20
|
+
}
|
|
21
|
+
/** A node with mutable arrays so front-ends can post-process before freezing. */
|
|
22
|
+
export interface MutableTreeNode {
|
|
23
|
+
id: string;
|
|
24
|
+
label: string;
|
|
25
|
+
kinds: string[];
|
|
26
|
+
children: string[];
|
|
27
|
+
info?: string;
|
|
28
|
+
badge?: string;
|
|
29
|
+
edgeLabel?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function parseLines(input: string): ParsedTree;
|
|
32
|
+
/** Fold indentation-nested raw lines into a flat, child-linked node list. */
|
|
33
|
+
export declare function buildNodes(lines: readonly RawLine[]): MutableTreeNode[];
|
|
34
|
+
//# sourceMappingURL=build.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../../../src/diagrams/ds/tree/build.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,WAAW,OAAO;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB,KAAK,EAAE,OAAO,EAAE,CAAC;CAClB;AAED,iFAAiF;AACjF,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,CAEpD;AAED,6EAA6E;AAC7E,wBAAgB,UAAU,CAAC,KAAK,EAAE,SAAS,OAAO,EAAE,GAAG,eAAe,EAAE,CAiCvE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file diagrams/tree/heap.ts — Binary-heap front-end over the tree engine.
|
|
3
|
+
*
|
|
4
|
+
* Value-driven: `heap max insert 50 30 70 …` builds a binary heap (max by
|
|
5
|
+
* default, `min` supported) with real sift-up, then renders the implicit tree
|
|
6
|
+
* (children of i are 2i+1, 2i+2) as circle nodes.
|
|
7
|
+
*/
|
|
8
|
+
import type { DiagramModule } from '../../../contracts/index.js';
|
|
9
|
+
import type { TreeDocument } from './ir.js';
|
|
10
|
+
export declare function buildHeap(input: string): TreeDocument;
|
|
11
|
+
export declare const heap: DiagramModule<TreeDocument>;
|
|
12
|
+
//# sourceMappingURL=heap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heap.d.ts","sourceRoot":"","sources":["../../../../../../src/diagrams/ds/tree/heap.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,aAAa,EAA+B,MAAM,6BAA6B,CAAC;AAC9F,OAAO,KAAK,EAAE,YAAY,EAAY,MAAM,SAAS,CAAC;AAGtD,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,CA+BrD;AAED,eAAO,MAAM,IAAI,EAAE,aAAa,CAAC,YAAY,CAI5C,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DiagramModule } from '../../../contracts/index.js';
|
|
2
|
+
import type { TreeDocument } from './ir.js';
|
|
3
|
+
export type { TreeDocument, TreeNode, TreeDirection } from './ir.js';
|
|
4
|
+
export declare const tree: DiagramModule<TreeDocument>;
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/diagrams/ds/tree/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAA+B,MAAM,6BAA6B,CAAC;AAC9F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAI5C,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAErE,eAAO,MAAM,IAAI,EAAE,aAAa,CAAC,YAAY,CAkB5C,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file diagrams/tree/ir.ts — Decorated tree IR.
|
|
3
|
+
*
|
|
4
|
+
* One generic hierarchy whose nodes carry a small decoration vocabulary
|
|
5
|
+
* (kinds → shape/colour, badge, info sub-line, edge label). The semantic
|
|
6
|
+
* front-ends (avl, rbtree, btree, radix, segtree, heap, plan) all compile
|
|
7
|
+
* down to this IR.
|
|
8
|
+
*/
|
|
9
|
+
import type { BaseIR } from '../../../contracts/index.js';
|
|
10
|
+
export type TreeDirection = 'TB' | 'LR';
|
|
11
|
+
export interface TreeNode {
|
|
12
|
+
readonly id: string;
|
|
13
|
+
readonly label: string;
|
|
14
|
+
/** Kind/colour tags, e.g. 'circle', 'leaf', 'box', 'red', 'black', 'scan'. */
|
|
15
|
+
readonly kinds: readonly string[];
|
|
16
|
+
/** Muted sub-line under the label (e.g. 'rows: 980', a range). */
|
|
17
|
+
readonly info?: string;
|
|
18
|
+
/** Corner badge value (e.g. an AVL balance factor). */
|
|
19
|
+
readonly badge?: string;
|
|
20
|
+
/** Label on the edge from this node's parent (e.g. 'yes' / 'no'). */
|
|
21
|
+
readonly edgeLabel?: string;
|
|
22
|
+
readonly children: readonly string[];
|
|
23
|
+
}
|
|
24
|
+
export interface TreeDocument extends BaseIR {
|
|
25
|
+
readonly direction: TreeDirection;
|
|
26
|
+
/** Flat, ordered node list; roots are nodes never referenced as a child. */
|
|
27
|
+
readonly nodes: readonly TreeNode[];
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=ir.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ir.d.ts","sourceRoot":"","sources":["../../../../../../src/diagrams/ds/tree/ir.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAE1D,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,IAAI,CAAC;AAExC,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,8EAA8E;IAC9E,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,kEAAkE;IAClE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,uDAAuD;IACvD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,qEAAqE;IACrE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;CACtC;AAED,MAAM,WAAW,YAAa,SAAQ,MAAM;IAC1C,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAC;IAClC,4EAA4E;IAC5E,QAAQ,CAAC,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAC;CACrC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file diagrams/tree/layout.ts — Decorated tree layout.
|
|
3
|
+
*
|
|
4
|
+
* Sizes each node from its label/info, runs the shared tidy tree placement
|
|
5
|
+
* (graph/tree), then renders nodes per their decoration kinds (circle / pill /
|
|
6
|
+
* rect, with colour states, corner badges, info sub-lines) and links parents to
|
|
7
|
+
* children with edge labels. Produces a node-anchor registry so trees are
|
|
8
|
+
* linkable inside posters.
|
|
9
|
+
*/
|
|
10
|
+
import type { TreeDocument } from './ir.js';
|
|
11
|
+
import type { LayoutResult, ResolvedTheme } from '../../../contracts/index.js';
|
|
12
|
+
export declare function layoutTree(ir: TreeDocument, theme: ResolvedTheme): LayoutResult;
|
|
13
|
+
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../../../src/diagrams/ds/tree/layout.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAY,MAAM,SAAS,CAAC;AACtD,OAAO,KAAK,EACW,YAAY,EAAsB,aAAa,EACrE,MAAM,6BAA6B,CAAC;AAwDrC,wBAAgB,UAAU,CAAC,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,aAAa,GAAG,YAAY,CAsH/E"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file diagrams/tree/plan.ts — Query-plan front-end over the tree engine.
|
|
3
|
+
*
|
|
4
|
+
* Same indentation source as `tree`, but operator nodes are auto-coloured by
|
|
5
|
+
* kind inferred from their name (scan / join / build), so authors don't tag
|
|
6
|
+
* every node by hand.
|
|
7
|
+
*/
|
|
8
|
+
import type { DiagramModule } from '../../../contracts/index.js';
|
|
9
|
+
import type { TreeDocument } from './ir.js';
|
|
10
|
+
export declare const plan: DiagramModule<TreeDocument>;
|
|
11
|
+
//# sourceMappingURL=plan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan.d.ts","sourceRoot":"","sources":["../../../../../../src/diagrams/ds/tree/plan.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,aAAa,EAA+B,MAAM,6BAA6B,CAAC;AAC9F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAgB5C,eAAO,MAAM,IAAI,EAAE,aAAa,CAAC,YAAY,CAwB5C,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file diagrams/tree/radix.ts — Radix (Patricia) trie front-end.
|
|
3
|
+
*
|
|
4
|
+
* Value-driven: `radix insert cat car card dog` inserts strings into a
|
|
5
|
+
* prefix-compressed trie. Shared prefixes collapse onto single labelled edges;
|
|
6
|
+
* branch nodes render as small dots, word-terminal nodes as filled pills.
|
|
7
|
+
*/
|
|
8
|
+
import type { DiagramModule } from '../../../contracts/index.js';
|
|
9
|
+
import type { TreeDocument } from './ir.js';
|
|
10
|
+
export declare function buildRadix(input: string): TreeDocument;
|
|
11
|
+
export declare const radix: DiagramModule<TreeDocument>;
|
|
12
|
+
//# sourceMappingURL=radix.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radix.d.ts","sourceRoot":"","sources":["../../../../../../src/diagrams/ds/tree/radix.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,aAAa,EAA+B,MAAM,6BAA6B,CAAC;AAC9F,OAAO,KAAK,EAAE,YAAY,EAAY,MAAM,SAAS,CAAC;AAoDtD,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,CAsBtD;AAED,eAAO,MAAM,KAAK,EAAE,aAAa,CAAC,YAAY,CAI7C,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file diagrams/tree/rbtree.ts — Red-black tree front-end over the tree engine.
|
|
3
|
+
*
|
|
4
|
+
* Value-driven via a left-leaning red-black tree (Sedgewick): real insertion
|
|
5
|
+
* with rotations + colour flips yields a valid red-black colouring by
|
|
6
|
+
* construction. Each key becomes a circle node tagged red or black.
|
|
7
|
+
*/
|
|
8
|
+
import type { DiagramModule } from '../../../contracts/index.js';
|
|
9
|
+
import type { TreeDocument } from './ir.js';
|
|
10
|
+
export declare function buildRbtree(input: string): TreeDocument;
|
|
11
|
+
export declare const rbtree: DiagramModule<TreeDocument>;
|
|
12
|
+
//# sourceMappingURL=rbtree.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rbtree.d.ts","sourceRoot":"","sources":["../../../../../../src/diagrams/ds/tree/rbtree.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,aAAa,EAA+B,MAAM,6BAA6B,CAAC;AAC9F,OAAO,KAAK,EAAE,YAAY,EAAY,MAAM,SAAS,CAAC;AAyCtD,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,CAkBvD;AAED,eAAO,MAAM,MAAM,EAAE,aAAa,CAAC,YAAY,CAI9C,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file diagrams/tree/segtree.ts — Segment-tree front-end over the tree engine.
|
|
3
|
+
*
|
|
4
|
+
* Value-driven: `segtree over [1,2,3,4] reduce sum` builds a segment tree whose
|
|
5
|
+
* nodes each carry a [lo,hi] range (info sub-line) and the reduced value.
|
|
6
|
+
* Supported reducers: sum (default), min, max.
|
|
7
|
+
*/
|
|
8
|
+
import type { DiagramModule } from '../../../contracts/index.js';
|
|
9
|
+
import type { TreeDocument } from './ir.js';
|
|
10
|
+
export declare function buildSegtree(input: string): TreeDocument;
|
|
11
|
+
export declare const segtree: DiagramModule<TreeDocument>;
|
|
12
|
+
//# sourceMappingURL=segtree.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"segtree.d.ts","sourceRoot":"","sources":["../../../../../../src/diagrams/ds/tree/segtree.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,aAAa,EAA+B,MAAM,6BAA6B,CAAC;AAC9F,OAAO,KAAK,EAAE,YAAY,EAAY,MAAM,SAAS,CAAC;AAYtD,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,CA4BxD;AAED,eAAO,MAAM,OAAO,EAAE,aAAa,CAAC,YAAY,CAI/C,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file diagrams/ds/trie/trie.ts — Prefix tree (trie) front-end.
|
|
3
|
+
*
|
|
4
|
+
* Value-driven: `trie insert cat car card dog do` inserts strings into a
|
|
5
|
+
* character trie. Unlike the radix/Patricia trie, edges are NOT compressed —
|
|
6
|
+
* every character gets its own edge and node. Shared prefixes share a path,
|
|
7
|
+
* branch/intermediate nodes render as small dots, and word-terminal nodes
|
|
8
|
+
* render as filled pills showing the full word.
|
|
9
|
+
*
|
|
10
|
+
* Compiles down to the shared decorated-tree IR (ir.ts) and reuses the tidy
|
|
11
|
+
* tree placement kernel (graph/tree via layout.ts), exactly like radix.
|
|
12
|
+
*/
|
|
13
|
+
import type { DiagramModule } from '../../../contracts/index.js';
|
|
14
|
+
import type { TreeDocument } from '../tree/ir.js';
|
|
15
|
+
export declare function buildTrie(input: string): TreeDocument;
|
|
16
|
+
export declare const trie: DiagramModule<TreeDocument>;
|
|
17
|
+
//# sourceMappingURL=trie.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trie.d.ts","sourceRoot":"","sources":["../../../../../../src/diagrams/ds/trie/trie.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,aAAa,EAA+B,MAAM,6BAA6B,CAAC;AAC9F,OAAO,KAAK,EAAE,YAAY,EAAY,MAAM,eAAe,CAAC;AAiB5D,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,CAyBrD;AAED,eAAO,MAAM,IAAI,EAAE,aAAa,CAAC,YAAY,CAI5C,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file diagrams/ds/unionfind/unionfind.ts — Disjoint Set Union (DSU) forest.
|
|
3
|
+
*
|
|
4
|
+
* A union-find structure is a forest of parent-pointer trees: each set is one
|
|
5
|
+
* tree rooted at its representative. This renders the whole forest side by side
|
|
6
|
+
* (the shared tidy-tree kernel places each root block left→right), with the
|
|
7
|
+
* representative of each set marked distinctly (filled) and the members drawn
|
|
8
|
+
* as plain circles. Edges are parent pointers (child → parent, drawn top-down).
|
|
9
|
+
*
|
|
10
|
+
* Value-driven mini-syntax (header `unionfind` or alias `dsu`):
|
|
11
|
+
* unionfind 7
|
|
12
|
+
* parent 0 0 1 1 3 5 5 // parent[i]; parent[i]==i ⇒ representative
|
|
13
|
+
*
|
|
14
|
+
* dsu 7
|
|
15
|
+
* union 1 0 // attach set(1) under set(0)
|
|
16
|
+
* union 3 1
|
|
17
|
+
* union 6 5
|
|
18
|
+
*
|
|
19
|
+
* Compiles to the shared decorated-tree IR and reuses layout.ts (graph/tree).
|
|
20
|
+
*/
|
|
21
|
+
import type { DiagramModule, ResolvedTheme, LayoutResult } from '../../../contracts/index.js';
|
|
22
|
+
import type { TreeDocument } from '../tree/ir.js';
|
|
23
|
+
export interface UnionFindDoc extends TreeDocument {
|
|
24
|
+
/** parent[i] is the parent of element i; parent[i] === i ⇒ representative. */
|
|
25
|
+
readonly parent: readonly number[];
|
|
26
|
+
/** Indices of the set representatives (roots). */
|
|
27
|
+
readonly roots: readonly number[];
|
|
28
|
+
/** Number of disjoint sets (= roots.length). */
|
|
29
|
+
readonly count: number;
|
|
30
|
+
}
|
|
31
|
+
export declare function buildUnionFind(input: string): UnionFindDoc;
|
|
32
|
+
export declare function layoutUnionFind(ir: UnionFindDoc, theme: ResolvedTheme): LayoutResult;
|
|
33
|
+
export declare const unionfind: DiagramModule<UnionFindDoc>;
|
|
34
|
+
//# sourceMappingURL=unionfind.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unionfind.d.ts","sourceRoot":"","sources":["../../../../../../src/diagrams/ds/unionfind/unionfind.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC9F,OAAO,KAAK,EAAE,YAAY,EAAY,MAAM,eAAe,CAAC;AAG5D,MAAM,WAAW,YAAa,SAAQ,YAAY;IAChD,8EAA8E;IAC9E,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,kDAAkD;IAClD,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,gDAAgD;IAChD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAUD,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,CAiE1D;AAED,wBAAgB,eAAe,CAAC,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,aAAa,GAAG,YAAY,CAEpF;AAED,eAAO,MAAM,SAAS,EAAE,aAAa,CAAC,YAAY,CAIjD,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DiagramModule } from '../../contracts/index.js';
|
|
2
|
+
import type { ErDocument } from './ir.js';
|
|
3
|
+
export type { ErDocument, ErEntity, ErAttribute, ErRelation } from './ir.js';
|
|
4
|
+
export declare const er: DiagramModule<ErDocument>;
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/diagrams/er/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAgB,MAAM,0BAA0B,CAAC;AAC5E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAK1C,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE7E,eAAO,MAAM,EAAE,EAAE,aAAa,CAAC,UAAU,CAYxC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { BaseIR } from '../../contracts/index.js';
|
|
2
|
+
export interface ErAttribute {
|
|
3
|
+
readonly type: string;
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly key?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ErEntity {
|
|
8
|
+
readonly name: string;
|
|
9
|
+
readonly attributes: readonly ErAttribute[];
|
|
10
|
+
}
|
|
11
|
+
export interface ErRelation {
|
|
12
|
+
readonly left: string;
|
|
13
|
+
readonly right: string;
|
|
14
|
+
readonly leftCard: string;
|
|
15
|
+
readonly rightCard: string;
|
|
16
|
+
readonly dashed: boolean;
|
|
17
|
+
readonly label?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface ErDocument extends BaseIR {
|
|
20
|
+
readonly metadata: {
|
|
21
|
+
readonly title?: string;
|
|
22
|
+
readonly theme?: string;
|
|
23
|
+
readonly [key: string]: string | undefined;
|
|
24
|
+
};
|
|
25
|
+
readonly entities: readonly ErEntity[];
|
|
26
|
+
readonly relations: readonly ErRelation[];
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=ir.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ir.d.ts","sourceRoot":"","sources":["../../../../../src/diagrams/er/ir.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAEvD,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,UAAU,EAAE,SAAS,WAAW,EAAE,CAAC;CAC7C;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,UAAW,SAAQ,MAAM;IACxC,QAAQ,CAAC,QAAQ,EAAE;QAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;IACpH,QAAQ,CAAC,QAAQ,EAAE,SAAS,QAAQ,EAAE,CAAC;IACvC,QAAQ,CAAC,SAAS,EAAE,SAAS,UAAU,EAAE,CAAC;CAC3C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file diagrams/er/layout.ts — Entity-relationship diagram.
|
|
3
|
+
*
|
|
4
|
+
* Entities render as header + typed-attribute tables; placement uses the shared
|
|
5
|
+
* layered kernel. Relationships connect entity borders with crow's-foot
|
|
6
|
+
* cardinality markers (one = tick, many = foot, zero = circle).
|
|
7
|
+
*/
|
|
8
|
+
import type { ErDocument } from './ir.js';
|
|
9
|
+
import type { LayoutResult } from '../../contracts/index.js';
|
|
10
|
+
import type { ResolvedTheme } from '../../contracts/index.js';
|
|
11
|
+
export declare function layoutEr(ir: ErDocument, theme: ResolvedTheme): LayoutResult;
|
|
12
|
+
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../../src/diagrams/er/layout.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAY,MAAM,SAAS,CAAC;AACpD,OAAO,KAAK,EAAuB,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAQ9D,wBAAgB,QAAQ,CAAC,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,aAAa,GAAG,YAAY,CAyE3E"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DiagramModule } from '../../contracts/index.js';
|
|
2
|
+
import type { FlowDocument } from './ir.js';
|
|
3
|
+
export type { FlowDocument, FlowNode, FlowEdge, FlowSubgraph, FlowDirection, NodeShape, NodeStatus, EdgeKind, EdgeStyle } from './ir.js';
|
|
4
|
+
export declare const flowchart: DiagramModule<FlowDocument>;
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/diagrams/flowchart/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAA+B,MAAM,0BAA0B,CAAC;AAC3F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAK5C,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzI,eAAO,MAAM,SAAS,EAAE,aAAa,CAAC,YAAY,CAsBjD,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { BaseIR } from '../../contracts/index.js';
|
|
2
|
+
export type NodeShape = 'rect' | 'rounded-rect' | 'circle' | 'diamond' | 'stadium' | 'subroutine' | 'cylinder' | 'hexagon' | 'parallelogram' | 'parallelogram-alt' | 'asymmetric';
|
|
3
|
+
export type NodeStatus = 'default' | 'active' | 'success' | 'warning' | 'error' | 'muted';
|
|
4
|
+
export interface FlowNode {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
readonly label: string;
|
|
7
|
+
readonly shape: NodeShape;
|
|
8
|
+
readonly status?: NodeStatus;
|
|
9
|
+
readonly subgraph?: string;
|
|
10
|
+
}
|
|
11
|
+
export type EdgeKind = 'sync' | 'async';
|
|
12
|
+
export type EdgeStyle = 'solid' | 'dashed' | 'dotted';
|
|
13
|
+
export interface FlowEdge {
|
|
14
|
+
readonly from: string;
|
|
15
|
+
readonly to: string;
|
|
16
|
+
readonly label?: string;
|
|
17
|
+
readonly kind: EdgeKind;
|
|
18
|
+
readonly style: EdgeStyle;
|
|
19
|
+
readonly bidirectional?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface FlowSubgraph {
|
|
22
|
+
readonly id: string;
|
|
23
|
+
readonly label: string;
|
|
24
|
+
readonly nodeIds: readonly string[];
|
|
25
|
+
}
|
|
26
|
+
export type FlowDirection = 'TD' | 'TB' | 'BT' | 'LR' | 'RL';
|
|
27
|
+
export interface FlowDocument extends BaseIR {
|
|
28
|
+
readonly metadata: {
|
|
29
|
+
readonly title?: string;
|
|
30
|
+
readonly theme?: string;
|
|
31
|
+
readonly [key: string]: string | undefined;
|
|
32
|
+
};
|
|
33
|
+
readonly direction: FlowDirection;
|
|
34
|
+
readonly nodes: readonly FlowNode[];
|
|
35
|
+
readonly edges: readonly FlowEdge[];
|
|
36
|
+
readonly subgraphs: readonly FlowSubgraph[];
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=ir.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ir.d.ts","sourceRoot":"","sources":["../../../../../src/diagrams/flowchart/ir.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAEvD,MAAM,MAAM,SAAS,GACjB,MAAM,GAAG,cAAc,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAC1D,YAAY,GAAG,UAAU,GAAG,SAAS,GACrC,eAAe,GAAG,mBAAmB,GAAG,YAAY,CAAC;AAEzD,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,CAAC;AAE1F,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,MAAM,QAAQ,GAAI,MAAM,GAAG,OAAO,CAAC;AACzC,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEtD,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;CAClC;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CACrC;AAED,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE7D,MAAM,WAAW,YAAa,SAAQ,MAAM;IAC1C,QAAQ,CAAC,QAAQ,EAAE;QAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;IACpH,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAC;IAClC,QAAQ,CAAC,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAC;IACpC,QAAQ,CAAC,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAC;IACpC,QAAQ,CAAC,SAAS,EAAE,SAAS,YAAY,EAAE,CAAC;CAC7C"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { FlowDocument } from './ir.js';
|
|
2
|
+
import type { LayoutResult, LayoutOptions } from '../../contracts/index.js';
|
|
3
|
+
import type { ResolvedTheme } from '../../contracts/index.js';
|
|
4
|
+
export declare function layoutFlowchart(ir: FlowDocument, theme: ResolvedTheme, options?: LayoutOptions): LayoutResult;
|
|
5
|
+
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../../src/diagrams/flowchart/layout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAqC,MAAM,SAAS,CAAC;AAC/E,OAAO,KAAK,EAAoC,YAAY,EAAgD,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC5J,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAe9D,wBAAgB,eAAe,CAAC,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,YAAY,CAqN7G"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DiagramModule } from '../../contracts/index.js';
|
|
2
|
+
import type { GanttDocument } from './ir.js';
|
|
3
|
+
export type { GanttDocument, GanttSection, GanttTask, GanttStatus } from './ir.js';
|
|
4
|
+
export declare const gantt: DiagramModule<GanttDocument>;
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/diagrams/gantt/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAgB,MAAM,0BAA0B,CAAC;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAwC,MAAM,SAAS,CAAC;AAMnF,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAqEnF,eAAO,MAAM,KAAK,EAAE,aAAa,CAAC,aAAa,CAkB9C,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { BaseIR } from '../../contracts/index.js';
|
|
2
|
+
export type GanttStatus = 'done' | 'active' | 'crit' | 'default';
|
|
3
|
+
export interface GanttTask {
|
|
4
|
+
readonly id?: string;
|
|
5
|
+
readonly label: string;
|
|
6
|
+
readonly status: GanttStatus;
|
|
7
|
+
/** Resolved ISO start date (YYYY-MM-DD). */
|
|
8
|
+
readonly start: string;
|
|
9
|
+
/** Resolved ISO end date (YYYY-MM-DD); equals start for milestones. */
|
|
10
|
+
readonly end: string;
|
|
11
|
+
readonly isMilestone: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface GanttSection {
|
|
14
|
+
readonly label: string;
|
|
15
|
+
readonly tasks: readonly GanttTask[];
|
|
16
|
+
}
|
|
17
|
+
export interface GanttDocument extends BaseIR {
|
|
18
|
+
readonly metadata: {
|
|
19
|
+
readonly title?: string;
|
|
20
|
+
readonly theme?: string;
|
|
21
|
+
readonly [key: string]: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
readonly sections: readonly GanttSection[];
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=ir.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ir.d.ts","sourceRoot":"","sources":["../../../../../src/diagrams/gantt/ir.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAEvD,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;AAEjE,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B,4CAA4C;IAC5C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,uEAAuE;IACvE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;CAC/B;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,SAAS,SAAS,EAAE,CAAC;CACtC;AAED,MAAM,WAAW,aAAc,SAAQ,MAAM;IAC3C,QAAQ,CAAC,QAAQ,EAAE;QAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;IACpH,QAAQ,CAAC,QAAQ,EAAE,SAAS,YAAY,EAAE,CAAC;CAC5C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file diagrams/gantt/layout.ts — Classic Gantt chart.
|
|
3
|
+
*
|
|
4
|
+
* One row per task, grouped under section bands, against a date grid. Bars span
|
|
5
|
+
* start→end on a day-ordinal axis (shared time/dates utilities); status maps to
|
|
6
|
+
* the semantic palette; zero-duration tasks render as milestone diamonds.
|
|
7
|
+
*/
|
|
8
|
+
import type { GanttDocument } from './ir.js';
|
|
9
|
+
import type { LayoutResult } from '../../contracts/index.js';
|
|
10
|
+
import type { ResolvedTheme } from '../../contracts/index.js';
|
|
11
|
+
export declare function layoutGantt(ir: GanttDocument, theme: ResolvedTheme): LayoutResult;
|
|
12
|
+
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../../src/diagrams/gantt/layout.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAuB,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAQ9D,wBAAgB,WAAW,CAAC,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,GAAG,YAAY,CAwFjF"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DiagramModule } from '../../contracts/index.js';
|
|
2
|
+
import type { GitgraphDocument } from './ir.js';
|
|
3
|
+
export type { GitgraphDocument, GitCommit, GitBranchPoint } from './ir.js';
|
|
4
|
+
export declare const gitgraph: DiagramModule<GitgraphDocument>;
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/diagrams/gitgraph/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAgB,MAAM,0BAA0B,CAAC;AAC5E,OAAO,KAAK,EAAE,gBAAgB,EAA4C,MAAM,SAAS,CAAC;AAK1F,YAAY,EAAE,gBAAgB,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAU3E,eAAO,MAAM,QAAQ,EAAE,aAAa,CAAC,gBAAgB,CA4CpD,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { BaseIR } from '../../contracts/index.js';
|
|
2
|
+
export type GitCommitType = 'normal' | 'highlight' | 'reverse';
|
|
3
|
+
export interface GitCommit {
|
|
4
|
+
readonly id: string;
|
|
5
|
+
readonly lane: number;
|
|
6
|
+
readonly x: number;
|
|
7
|
+
readonly type: GitCommitType;
|
|
8
|
+
readonly tag?: string;
|
|
9
|
+
readonly isMerge: boolean;
|
|
10
|
+
/** For merge commits: the lane + x of the merged branch tip. */
|
|
11
|
+
readonly fromLane?: number;
|
|
12
|
+
readonly fromX?: number;
|
|
13
|
+
}
|
|
14
|
+
export interface GitBranchPoint {
|
|
15
|
+
readonly lane: number;
|
|
16
|
+
readonly parentLane: number;
|
|
17
|
+
readonly x: number;
|
|
18
|
+
readonly parentX: number;
|
|
19
|
+
}
|
|
20
|
+
export interface GitgraphDocument extends BaseIR {
|
|
21
|
+
readonly metadata: {
|
|
22
|
+
readonly title?: string;
|
|
23
|
+
readonly theme?: string;
|
|
24
|
+
readonly [key: string]: string | undefined;
|
|
25
|
+
};
|
|
26
|
+
readonly lanes: number;
|
|
27
|
+
readonly laneNames: readonly string[];
|
|
28
|
+
readonly commits: readonly GitCommit[];
|
|
29
|
+
readonly branchPoints: readonly GitBranchPoint[];
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=ir.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ir.d.ts","sourceRoot":"","sources":["../../../../../src/diagrams/gitgraph/ir.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAEvD,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,WAAW,GAAG,SAAS,CAAC;AAE/D,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,gEAAgE;IAChE,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,gBAAiB,SAAQ,MAAM;IAC9C,QAAQ,CAAC,QAAQ,EAAE;QAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;IACpH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC,QAAQ,CAAC,OAAO,EAAE,SAAS,SAAS,EAAE,CAAC;IACvC,QAAQ,CAAC,YAAY,EAAE,SAAS,cAAc,EAAE,CAAC;CAClD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file diagrams/gitgraph/layout.ts — Git commit graph.
|
|
3
|
+
*
|
|
4
|
+
* Branches occupy horizontal lanes; commits sit at sequential x positions.
|
|
5
|
+
* Lane lines, branch-point curves and merge curves connect them; commit dots
|
|
6
|
+
* carry ids and tags. Lane colours come from the categorical hue cycle.
|
|
7
|
+
*/
|
|
8
|
+
import type { GitgraphDocument } from './ir.js';
|
|
9
|
+
import type { LayoutResult } from '../../contracts/index.js';
|
|
10
|
+
import type { ResolvedTheme } from '../../contracts/index.js';
|
|
11
|
+
export declare function layoutGitgraph(ir: GitgraphDocument, theme: ResolvedTheme): LayoutResult;
|
|
12
|
+
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../../src/diagrams/gitgraph/layout.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EAAuB,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAO9D,wBAAgB,cAAc,CAAC,EAAE,EAAE,gBAAgB,EAAE,KAAK,EAAE,aAAa,GAAG,YAAY,CA+EvF"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DiagramModule } from '../../contracts/index.js';
|
|
2
|
+
import type { JourneyDocument } from './ir.js';
|
|
3
|
+
export type { JourneyDocument, JourneySection, JourneyTask } from './ir.js';
|
|
4
|
+
export declare const journey: DiagramModule<JourneyDocument>;
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/diagrams/journey/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAgB,MAAM,0BAA0B,CAAC;AAC5E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAK/C,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE5E,eAAO,MAAM,OAAO,EAAE,aAAa,CAAC,eAAe,CAYlD,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { BaseIR } from '../../contracts/index.js';
|
|
2
|
+
export interface JourneyTask {
|
|
3
|
+
readonly label: string;
|
|
4
|
+
/** Satisfaction score, typically 1..5. */
|
|
5
|
+
readonly score: number;
|
|
6
|
+
readonly actors: readonly string[];
|
|
7
|
+
}
|
|
8
|
+
export interface JourneySection {
|
|
9
|
+
readonly label: string;
|
|
10
|
+
readonly tasks: readonly JourneyTask[];
|
|
11
|
+
}
|
|
12
|
+
export interface JourneyDocument extends BaseIR {
|
|
13
|
+
readonly metadata: {
|
|
14
|
+
readonly title?: string;
|
|
15
|
+
readonly theme?: string;
|
|
16
|
+
readonly [key: string]: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
readonly sections: readonly JourneySection[];
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=ir.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ir.d.ts","sourceRoot":"","sources":["../../../../../src/diagrams/journey/ir.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAEvD,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,0CAA0C;IAC1C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;CACpC;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,SAAS,WAAW,EAAE,CAAC;CACxC;AAED,MAAM,WAAW,eAAgB,SAAQ,MAAM;IAC7C,QAAQ,CAAC,QAAQ,EAAE;QAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;IACpH,QAAQ,CAAC,QAAQ,EAAE,SAAS,cAAc,EAAE,CAAC;CAC9C"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file diagrams/journey/layout.ts — User-journey satisfaction map.
|
|
3
|
+
*
|
|
4
|
+
* Tasks are placed left→right; vertical position encodes the satisfaction
|
|
5
|
+
* score (1 low … 5 high). A path connects consecutive task nodes; section
|
|
6
|
+
* bands span their tasks. Node colour maps the score onto the semantic palette
|
|
7
|
+
* (low → error, high → success).
|
|
8
|
+
*/
|
|
9
|
+
import type { JourneyDocument } from './ir.js';
|
|
10
|
+
import type { LayoutResult } from '../../contracts/index.js';
|
|
11
|
+
import type { ResolvedTheme } from '../../contracts/index.js';
|
|
12
|
+
export declare function layoutJourney(ir: JourneyDocument, theme: ResolvedTheme): LayoutResult;
|
|
13
|
+
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../../src/diagrams/journey/layout.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,KAAK,EAAuB,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAS9D,wBAAgB,aAAa,CAAC,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE,aAAa,GAAG,YAAY,CAuFrF"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DiagramModule } from '../../contracts/index.js';
|
|
2
|
+
import type { KanbanDocument } from './ir.js';
|
|
3
|
+
export type { KanbanDocument, KanbanColumn, KanbanCard } from './ir.js';
|
|
4
|
+
export declare const kanban: DiagramModule<KanbanDocument>;
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/diagrams/kanban/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAgB,MAAM,0BAA0B,CAAC;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAK9C,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAExE,eAAO,MAAM,MAAM,EAAE,aAAa,CAAC,cAAc,CAYhD,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { BaseIR } from '../../contracts/index.js';
|
|
2
|
+
export interface KanbanCard {
|
|
3
|
+
readonly id?: string;
|
|
4
|
+
readonly text: string;
|
|
5
|
+
}
|
|
6
|
+
export interface KanbanColumn {
|
|
7
|
+
readonly label: string;
|
|
8
|
+
readonly cards: readonly KanbanCard[];
|
|
9
|
+
}
|
|
10
|
+
export interface KanbanDocument extends BaseIR {
|
|
11
|
+
readonly metadata: {
|
|
12
|
+
readonly title?: string;
|
|
13
|
+
readonly theme?: string;
|
|
14
|
+
readonly [key: string]: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
readonly columns: readonly KanbanColumn[];
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=ir.d.ts.map
|