@nowline/layout 0.2.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/LICENSE +190 -0
- package/README.md +103 -0
- package/dist/band-scale.d.ts +56 -0
- package/dist/band-scale.d.ts.map +1 -0
- package/dist/band-scale.js +86 -0
- package/dist/band-scale.js.map +1 -0
- package/dist/calendar.d.ts +79 -0
- package/dist/calendar.d.ts.map +1 -0
- package/dist/calendar.js +210 -0
- package/dist/calendar.js.map +1 -0
- package/dist/capacity.d.ts +72 -0
- package/dist/capacity.d.ts.map +1 -0
- package/dist/capacity.js +163 -0
- package/dist/capacity.js.map +1 -0
- package/dist/dsl-utils.d.ts +5 -0
- package/dist/dsl-utils.d.ts.map +1 -0
- package/dist/dsl-utils.js +28 -0
- package/dist/dsl-utils.js.map +1 -0
- package/dist/edge-routing.d.ts +89 -0
- package/dist/edge-routing.d.ts.map +1 -0
- package/dist/edge-routing.js +435 -0
- package/dist/edge-routing.js.map +1 -0
- package/dist/frame-tab-geometry.d.ts +78 -0
- package/dist/frame-tab-geometry.d.ts.map +1 -0
- package/dist/frame-tab-geometry.js +115 -0
- package/dist/frame-tab-geometry.js.map +1 -0
- package/dist/header-card-geometry.d.ts +29 -0
- package/dist/header-card-geometry.d.ts.map +1 -0
- package/dist/header-card-geometry.js +41 -0
- package/dist/header-card-geometry.js.map +1 -0
- package/dist/i18n.d.ts +48 -0
- package/dist/i18n.d.ts.map +1 -0
- package/dist/i18n.js +114 -0
- package/dist/i18n.js.map +1 -0
- package/dist/include-chrome-geometry.d.ts +86 -0
- package/dist/include-chrome-geometry.d.ts.map +1 -0
- package/dist/include-chrome-geometry.js +104 -0
- package/dist/include-chrome-geometry.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/dist/item-bar-geometry.d.ts +127 -0
- package/dist/item-bar-geometry.d.ts.map +1 -0
- package/dist/item-bar-geometry.js +173 -0
- package/dist/item-bar-geometry.js.map +1 -0
- package/dist/lane-utilization.d.ts +90 -0
- package/dist/lane-utilization.d.ts.map +1 -0
- package/dist/lane-utilization.js +206 -0
- package/dist/lane-utilization.js.map +1 -0
- package/dist/layout-context.d.ts +143 -0
- package/dist/layout-context.d.ts.map +1 -0
- package/dist/layout-context.js +8 -0
- package/dist/layout-context.js.map +1 -0
- package/dist/layout.d.ts +18 -0
- package/dist/layout.d.ts.map +1 -0
- package/dist/layout.js +1213 -0
- package/dist/layout.js.map +1 -0
- package/dist/nodes/anchor-node.d.ts +16 -0
- package/dist/nodes/anchor-node.d.ts.map +1 -0
- package/dist/nodes/anchor-node.js +68 -0
- package/dist/nodes/anchor-node.js.map +1 -0
- package/dist/nodes/footnote-node.d.ts +10 -0
- package/dist/nodes/footnote-node.d.ts.map +1 -0
- package/dist/nodes/footnote-node.js +41 -0
- package/dist/nodes/footnote-node.js.map +1 -0
- package/dist/nodes/group-node.d.ts +29 -0
- package/dist/nodes/group-node.d.ts.map +1 -0
- package/dist/nodes/group-node.js +187 -0
- package/dist/nodes/group-node.js.map +1 -0
- package/dist/nodes/include-node.d.ts +16 -0
- package/dist/nodes/include-node.d.ts.map +1 -0
- package/dist/nodes/include-node.js +117 -0
- package/dist/nodes/include-node.js.map +1 -0
- package/dist/nodes/item-node.d.ts +51 -0
- package/dist/nodes/item-node.d.ts.map +1 -0
- package/dist/nodes/item-node.js +108 -0
- package/dist/nodes/item-node.js.map +1 -0
- package/dist/nodes/marker-geometry.d.ts +22 -0
- package/dist/nodes/marker-geometry.d.ts.map +1 -0
- package/dist/nodes/marker-geometry.js +38 -0
- package/dist/nodes/marker-geometry.js.map +1 -0
- package/dist/nodes/milestone-node.d.ts +48 -0
- package/dist/nodes/milestone-node.d.ts.map +1 -0
- package/dist/nodes/milestone-node.js +210 -0
- package/dist/nodes/milestone-node.js.map +1 -0
- package/dist/nodes/parallel-node.d.ts +21 -0
- package/dist/nodes/parallel-node.d.ts.map +1 -0
- package/dist/nodes/parallel-node.js +80 -0
- package/dist/nodes/parallel-node.js.map +1 -0
- package/dist/nodes/roadmap-node.d.ts +76 -0
- package/dist/nodes/roadmap-node.d.ts.map +1 -0
- package/dist/nodes/roadmap-node.js +788 -0
- package/dist/nodes/roadmap-node.js.map +1 -0
- package/dist/nodes/swimlane-node.d.ts +38 -0
- package/dist/nodes/swimlane-node.d.ts.map +1 -0
- package/dist/nodes/swimlane-node.js +308 -0
- package/dist/nodes/swimlane-node.js.map +1 -0
- package/dist/renderable.d.ts +44 -0
- package/dist/renderable.d.ts.map +1 -0
- package/dist/renderable.js +21 -0
- package/dist/renderable.js.map +1 -0
- package/dist/row-packer.d.ts +125 -0
- package/dist/row-packer.d.ts.map +1 -0
- package/dist/row-packer.js +169 -0
- package/dist/row-packer.js.map +1 -0
- package/dist/style-resolution.d.ts +14 -0
- package/dist/style-resolution.d.ts.map +1 -0
- package/dist/style-resolution.js +191 -0
- package/dist/style-resolution.js.map +1 -0
- package/dist/themes/dark.d.ts +4 -0
- package/dist/themes/dark.d.ts.map +1 -0
- package/dist/themes/dark.js +241 -0
- package/dist/themes/dark.js.map +1 -0
- package/dist/themes/index.d.ts +15 -0
- package/dist/themes/index.d.ts.map +1 -0
- package/dist/themes/index.js +30 -0
- package/dist/themes/index.js.map +1 -0
- package/dist/themes/light.d.ts +4 -0
- package/dist/themes/light.d.ts.map +1 -0
- package/dist/themes/light.js +248 -0
- package/dist/themes/light.js.map +1 -0
- package/dist/themes/shape.d.ts +194 -0
- package/dist/themes/shape.d.ts.map +1 -0
- package/dist/themes/shape.js +6 -0
- package/dist/themes/shape.js.map +1 -0
- package/dist/themes/shared.d.ts +145 -0
- package/dist/themes/shared.d.ts.map +1 -0
- package/dist/themes/shared.js +310 -0
- package/dist/themes/shared.js.map +1 -0
- package/dist/time-scale.d.ts +39 -0
- package/dist/time-scale.d.ts.map +1 -0
- package/dist/time-scale.js +62 -0
- package/dist/time-scale.js.map +1 -0
- package/dist/types.d.ts +483 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +6 -0
- package/dist/types.js.map +1 -0
- package/dist/view-preset.d.ts +23 -0
- package/dist/view-preset.d.ts.map +1 -0
- package/dist/view-preset.js +146 -0
- package/dist/view-preset.js.map +1 -0
- package/dist/working-calendar.d.ts +14 -0
- package/dist/working-calendar.d.ts.map +1 -0
- package/dist/working-calendar.js +74 -0
- package/dist/working-calendar.js.map +1 -0
- package/package.json +37 -0
- package/src/band-scale.ts +115 -0
- package/src/calendar.ts +244 -0
- package/src/capacity.ts +191 -0
- package/src/dsl-utils.ts +30 -0
- package/src/edge-routing.ts +550 -0
- package/src/frame-tab-geometry.ts +165 -0
- package/src/header-card-geometry.ts +48 -0
- package/src/i18n.ts +124 -0
- package/src/include-chrome-geometry.ts +156 -0
- package/src/index.ts +116 -0
- package/src/item-bar-geometry.ts +222 -0
- package/src/lane-utilization.ts +259 -0
- package/src/layout-context.ts +182 -0
- package/src/layout.ts +1446 -0
- package/src/nodes/anchor-node.ts +77 -0
- package/src/nodes/footnote-node.ts +60 -0
- package/src/nodes/group-node.ts +252 -0
- package/src/nodes/include-node.ts +168 -0
- package/src/nodes/item-node.ts +171 -0
- package/src/nodes/marker-geometry.ts +43 -0
- package/src/nodes/milestone-node.ts +263 -0
- package/src/nodes/parallel-node.ts +101 -0
- package/src/nodes/roadmap-node.ts +957 -0
- package/src/nodes/swimlane-node.ts +423 -0
- package/src/renderable.ts +68 -0
- package/src/row-packer.ts +271 -0
- package/src/style-resolution.ts +243 -0
- package/src/themes/dark.ts +244 -0
- package/src/themes/index.ts +36 -0
- package/src/themes/light.ts +251 -0
- package/src/themes/shape.ts +230 -0
- package/src/themes/shared.ts +369 -0
- package/src/time-scale.ts +78 -0
- package/src/types.ts +607 -0
- package/src/view-preset.ts +180 -0
- package/src/working-calendar.ts +91 -0
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
// RowPacker — the topmost-fit row-pack engine shared by `SwimlaneNode`
|
|
2
|
+
// and `GroupNode`. Tracks rows of variable height (each row's height is
|
|
3
|
+
// the max of its placed children's heights, with a per-packer minimum)
|
|
4
|
+
// and bumps a child to a new row when it would collide with a sibling's
|
|
5
|
+
// `rightEdge`, caption `spillX`, or a slack-arrow corridor.
|
|
6
|
+
//
|
|
7
|
+
// Two-phase API per child:
|
|
8
|
+
// 1) `placeItem(...)` / `placeBlock(...)` decides which row the child
|
|
9
|
+
// lands on. The caller then sequences the child at the returned
|
|
10
|
+
// `(rowIndex, y)`, producing a fully positioned subtree.
|
|
11
|
+
// 2) `commitItem(...)` / `commitBlock(...)` records the placed child
|
|
12
|
+
// back into the packer so the row's `rightEdge` / `spillX` advance
|
|
13
|
+
// and the row's height grows to accommodate the new child.
|
|
14
|
+
//
|
|
15
|
+
// When a row's height grows after later rows already exist, the packer
|
|
16
|
+
// shifts every subsequent row (and every positioned child placed in it)
|
|
17
|
+
// downward by the delta. Items keep their row-anchored top edge; the
|
|
18
|
+
// row simply gets taller. This keeps the contract "all children in a
|
|
19
|
+
// row share that row's top y" intact while letting individual children
|
|
20
|
+
// grow vertically (e.g. wrapped label-chiclet stacks in m3).
|
|
21
|
+
export class RowPacker {
|
|
22
|
+
rows;
|
|
23
|
+
opts;
|
|
24
|
+
constructor(opts) {
|
|
25
|
+
this.opts = opts;
|
|
26
|
+
this.rows = [
|
|
27
|
+
{
|
|
28
|
+
y: opts.originY,
|
|
29
|
+
height: opts.minRowHeight,
|
|
30
|
+
rightEdge: opts.laneLeftX,
|
|
31
|
+
spillX: opts.laneLeftX,
|
|
32
|
+
placedChildren: [],
|
|
33
|
+
},
|
|
34
|
+
];
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Find the topmost row where the item's natural extent fits without
|
|
38
|
+
* colliding with sibling content or a slack corridor; appending a
|
|
39
|
+
* fresh row at the bottom when none of the existing rows fit.
|
|
40
|
+
*/
|
|
41
|
+
placeItem(input) {
|
|
42
|
+
for (let i = 0; i < this.rows.length; i += 1) {
|
|
43
|
+
const r = this.rows[i];
|
|
44
|
+
if (input.desiredStart < r.rightEdge)
|
|
45
|
+
continue;
|
|
46
|
+
if (input.desiredStart < r.spillX)
|
|
47
|
+
continue;
|
|
48
|
+
if (this.rowIntersectsCorridor(r, input))
|
|
49
|
+
continue;
|
|
50
|
+
return { rowIndex: i, y: r.y };
|
|
51
|
+
}
|
|
52
|
+
const fresh = this.appendRow(Math.max(this.opts.minRowHeight, input.predictedHeight));
|
|
53
|
+
return { rowIndex: this.rows.length - 1, y: fresh.y };
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Blocks (parallel / group) always claim a fresh row at the bottom
|
|
57
|
+
* of the stack so their inner sub-tracks have contiguous rows to
|
|
58
|
+
* expand into. If the bottom row is empty, we reuse it; otherwise
|
|
59
|
+
* we append.
|
|
60
|
+
*/
|
|
61
|
+
placeBlock() {
|
|
62
|
+
const last = this.rows[this.rows.length - 1];
|
|
63
|
+
if (last.rightEdge > this.opts.laneLeftX) {
|
|
64
|
+
const fresh = this.appendRow(this.opts.minRowHeight);
|
|
65
|
+
return { rowIndex: this.rows.length - 1, y: fresh.y };
|
|
66
|
+
}
|
|
67
|
+
return { rowIndex: this.rows.length - 1, y: last.y };
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Record a placed item back into its row. Grows the row's height to
|
|
71
|
+
* fit the item, advances `rightEdge`, sets the caption spill, and
|
|
72
|
+
* shifts later rows down if this row got taller.
|
|
73
|
+
*/
|
|
74
|
+
commitItem(input) {
|
|
75
|
+
const row = this.rows[input.rowIndex];
|
|
76
|
+
const target = Math.max(input.placed.box.height, input.rowHeight ?? 0);
|
|
77
|
+
this.growRowHeight(input.rowIndex, target);
|
|
78
|
+
row.rightEdge = input.logicalEnd;
|
|
79
|
+
row.spillX = input.spillReservation ?? this.opts.laneLeftX;
|
|
80
|
+
row.placedChildren.push(input.placed);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Record a placed block. Sets the row's height to the block's full
|
|
84
|
+
* height (blocks own their row, no other child shares it).
|
|
85
|
+
*/
|
|
86
|
+
commitBlock(input) {
|
|
87
|
+
const row = this.rows[input.rowIndex];
|
|
88
|
+
this.growRowHeight(input.rowIndex, input.blockHeight);
|
|
89
|
+
row.rightEdge = input.blockEnd;
|
|
90
|
+
row.spillX = this.opts.laneLeftX;
|
|
91
|
+
row.placedChildren.push(input.placed);
|
|
92
|
+
}
|
|
93
|
+
/** Total vertical extent reached (last row's bottom - originY). */
|
|
94
|
+
usedHeight() {
|
|
95
|
+
const last = this.rows[this.rows.length - 1];
|
|
96
|
+
return last.y + last.height - this.opts.originY;
|
|
97
|
+
}
|
|
98
|
+
/** Rightmost extent reached — bar logical end OR caption spill,
|
|
99
|
+
* whichever is wider, across every row. Empty rows contribute
|
|
100
|
+
* `laneLeftX`. */
|
|
101
|
+
usedRightX() {
|
|
102
|
+
let x = this.opts.laneLeftX;
|
|
103
|
+
for (const r of this.rows) {
|
|
104
|
+
if (r.rightEdge > x)
|
|
105
|
+
x = r.rightEdge;
|
|
106
|
+
if (r.spillX > x)
|
|
107
|
+
x = r.spillX;
|
|
108
|
+
}
|
|
109
|
+
return x;
|
|
110
|
+
}
|
|
111
|
+
rowIntersectsCorridor(r, p) {
|
|
112
|
+
return this.opts.slackCorridors.some((c) => c.y >= r.y &&
|
|
113
|
+
c.y < r.y + r.height &&
|
|
114
|
+
p.desiredStart < c.xEnd &&
|
|
115
|
+
p.desiredEnd > c.xStart &&
|
|
116
|
+
c.slackPredId !== p.childId);
|
|
117
|
+
}
|
|
118
|
+
appendRow(height) {
|
|
119
|
+
const last = this.rows[this.rows.length - 1];
|
|
120
|
+
const r = {
|
|
121
|
+
y: last.y + last.height,
|
|
122
|
+
height,
|
|
123
|
+
rightEdge: this.opts.laneLeftX,
|
|
124
|
+
spillX: this.opts.laneLeftX,
|
|
125
|
+
placedChildren: [],
|
|
126
|
+
};
|
|
127
|
+
this.rows.push(r);
|
|
128
|
+
return r;
|
|
129
|
+
}
|
|
130
|
+
growRowHeight(rowIndex, newHeight) {
|
|
131
|
+
const row = this.rows[rowIndex];
|
|
132
|
+
const delta = newHeight - row.height;
|
|
133
|
+
if (delta <= 0)
|
|
134
|
+
return;
|
|
135
|
+
row.height = newHeight;
|
|
136
|
+
for (let i = rowIndex + 1; i < this.rows.length; i += 1) {
|
|
137
|
+
const r = this.rows[i];
|
|
138
|
+
r.y += delta;
|
|
139
|
+
for (const child of r.placedChildren) {
|
|
140
|
+
shiftPositionedY(child, delta);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Walk a positioned subtree and shift every absolute y by `dy`. Used
|
|
147
|
+
* when an earlier row in the packer grows, retroactively pushing every
|
|
148
|
+
* later row (and its placed subtrees) down to keep them clear.
|
|
149
|
+
*
|
|
150
|
+
* Items: shift the bar box plus label chips and any overflow box.
|
|
151
|
+
* Groups / parallels: shift the container box and recurse into
|
|
152
|
+
* children. The caller's `box.y` already moved with the parent.
|
|
153
|
+
*/
|
|
154
|
+
function shiftPositionedY(p, dy) {
|
|
155
|
+
p.box.y += dy;
|
|
156
|
+
if (p.kind === 'item') {
|
|
157
|
+
for (const chip of p.labelChips) {
|
|
158
|
+
chip.box.y += dy;
|
|
159
|
+
}
|
|
160
|
+
if (p.overflowBox) {
|
|
161
|
+
p.overflowBox.y += dy;
|
|
162
|
+
}
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
for (const child of p.children) {
|
|
166
|
+
shiftPositionedY(child, dy);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
//# sourceMappingURL=row-packer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row-packer.js","sourceRoot":"","sources":["../src/row-packer.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,wEAAwE;AACxE,uEAAuE;AACvE,wEAAwE;AACxE,4DAA4D;AAC5D,EAAE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AC;gBACnC,gBAAgB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YACnC,CAAC;QACL,CAAC;IACL,CAAC;CACJ;AAED;;;;;;;;GAQG;AACH,SAAS,gBAAgB,CAAC,CAAuB,EAAE,EAAU;IACzD,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;IACd,IAAI,CAAC,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;QACpB,KAAK,MAAM,IAAI,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;YAC9B,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;QACrB,CAAC;QACD,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC;YAChB,CAAC,CAAC,WAAW,CAAC,CAAC,IAAI,EAAE,CAAC;QAC1B,CAAC;QACD,OAAO;IACX,CAAC;IACD,KAAK,MAAM,KAAK,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;QAC7B,gBAAgB,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IAChC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { DefaultDeclaration, EntityProperty, LabelDeclaration, StyleDeclaration } from '@nowline/core';
|
|
2
|
+
import type { Theme } from './themes/shape.js';
|
|
3
|
+
import type { ResolvedStyle } from './types.js';
|
|
4
|
+
type EntityTypeKey = 'roadmap' | 'swimlane' | 'item' | 'parallel' | 'group' | 'anchor' | 'milestone' | 'footnote' | 'label';
|
|
5
|
+
export interface StyleContext {
|
|
6
|
+
theme: Theme;
|
|
7
|
+
styles: Map<string, StyleDeclaration>;
|
|
8
|
+
defaults: Map<string, DefaultDeclaration>;
|
|
9
|
+
labels: Map<string, LabelDeclaration>;
|
|
10
|
+
}
|
|
11
|
+
export declare function resolveStyle(entityType: EntityTypeKey, props: EntityProperty[], ctx: StyleContext): ResolvedStyle;
|
|
12
|
+
export declare function resolveLabelChipStyle(label: LabelDeclaration, ctx: StyleContext): ResolvedStyle;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=style-resolution.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style-resolution.d.ts","sourceRoot":"","sources":["../src/style-resolution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAEnB,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAe,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAc,MAAM,YAAY,CAAC;AAE5D,KAAK,aAAa,GACZ,SAAS,GACT,UAAU,GACV,MAAM,GACN,UAAU,GACV,OAAO,GACP,QAAQ,GACR,WAAW,GACX,UAAU,GACV,OAAO,CAAC;AAEd,MAAM,WAAW,YAAY;IACzB,KAAK,EAAE,KAAK,CAAC;IAGb,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAEtC,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IAE1C,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;CACzC;AAiLD,wBAAgB,YAAY,CACxB,UAAU,EAAE,aAAa,EACzB,KAAK,EAAE,cAAc,EAAE,EACvB,GAAG,EAAE,YAAY,GAClB,aAAa,CAwBf;AAID,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,gBAAgB,EAAE,GAAG,EAAE,YAAY,GAAG,aAAa,CAE/F"}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { resolveColor } from './themes/index.js';
|
|
2
|
+
function propKey(prop) {
|
|
3
|
+
return prop.key.endsWith(':') ? prop.key.slice(0, -1) : prop.key;
|
|
4
|
+
}
|
|
5
|
+
function entityStyleToResolved(e, theme) {
|
|
6
|
+
return {
|
|
7
|
+
bg: resolveColor(e.bg, theme),
|
|
8
|
+
fg: resolveColor(e.fg, theme),
|
|
9
|
+
text: resolveColor(e.text, theme),
|
|
10
|
+
border: e.border,
|
|
11
|
+
icon: e.icon,
|
|
12
|
+
shadow: e.shadow,
|
|
13
|
+
font: e.font,
|
|
14
|
+
weight: e.weight,
|
|
15
|
+
italic: e.italic,
|
|
16
|
+
textSize: e.textSize,
|
|
17
|
+
padding: e.padding,
|
|
18
|
+
spacing: e.spacing,
|
|
19
|
+
headerHeight: e.headerHeight,
|
|
20
|
+
cornerRadius: e.cornerRadius,
|
|
21
|
+
bracket: e.bracket,
|
|
22
|
+
// DSL does not expose header-position on non-roadmap entities; system
|
|
23
|
+
// default `beside` applies. Roadmap entity's resolve step lifts this
|
|
24
|
+
// from the 5-level chain.
|
|
25
|
+
headerPosition: 'beside',
|
|
26
|
+
capacityIcon: e.capacityIcon,
|
|
27
|
+
// Roadmap-only readability knobs. Defaults preserve the existing
|
|
28
|
+
// single-top-strip layout and keep the major-ticks-only grid.
|
|
29
|
+
timelinePosition: 'top',
|
|
30
|
+
minorGrid: false,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
// Apply a single style property (from `style` blocks, `default` blocks, or
|
|
34
|
+
// label styles) onto an accumulating ResolvedStyle.
|
|
35
|
+
function applyProp(target, key, value, theme) {
|
|
36
|
+
switch (key) {
|
|
37
|
+
case 'bg':
|
|
38
|
+
target.bg = resolveColor(value, theme);
|
|
39
|
+
break;
|
|
40
|
+
case 'fg':
|
|
41
|
+
target.fg = resolveColor(value, theme);
|
|
42
|
+
break;
|
|
43
|
+
case 'text':
|
|
44
|
+
target.text = resolveColor(value, theme);
|
|
45
|
+
break;
|
|
46
|
+
case 'border':
|
|
47
|
+
if (value === 'solid' || value === 'dashed' || value === 'dotted')
|
|
48
|
+
target.border = value;
|
|
49
|
+
break;
|
|
50
|
+
case 'icon':
|
|
51
|
+
target.icon = value;
|
|
52
|
+
break;
|
|
53
|
+
case 'shadow':
|
|
54
|
+
if (value === 'none' || value === 'subtle' || value === 'soft' || value === 'hard') {
|
|
55
|
+
target.shadow = value;
|
|
56
|
+
}
|
|
57
|
+
break;
|
|
58
|
+
case 'font':
|
|
59
|
+
if (value === 'sans' || value === 'serif' || value === 'mono')
|
|
60
|
+
target.font = value;
|
|
61
|
+
break;
|
|
62
|
+
case 'weight':
|
|
63
|
+
if (value === 'thin' || value === 'light' || value === 'normal' || value === 'bold') {
|
|
64
|
+
target.weight = value;
|
|
65
|
+
}
|
|
66
|
+
break;
|
|
67
|
+
case 'italic':
|
|
68
|
+
target.italic = value === 'true';
|
|
69
|
+
break;
|
|
70
|
+
case 'text-size':
|
|
71
|
+
target.textSize = coerceSize(value, 'xl');
|
|
72
|
+
break;
|
|
73
|
+
case 'padding':
|
|
74
|
+
target.padding = coerceSize(value, 'xl');
|
|
75
|
+
break;
|
|
76
|
+
case 'spacing':
|
|
77
|
+
target.spacing = coerceSize(value, 'xl');
|
|
78
|
+
break;
|
|
79
|
+
case 'header-height':
|
|
80
|
+
target.headerHeight = coerceSize(value, 'xl');
|
|
81
|
+
break;
|
|
82
|
+
case 'corner-radius':
|
|
83
|
+
target.cornerRadius = coerceSize(value, 'full');
|
|
84
|
+
break;
|
|
85
|
+
case 'bracket':
|
|
86
|
+
if (value === 'none' || value === 'solid' || value === 'dashed')
|
|
87
|
+
target.bracket = value;
|
|
88
|
+
break;
|
|
89
|
+
case 'header-position':
|
|
90
|
+
if (value === 'beside' || value === 'above')
|
|
91
|
+
target.headerPosition = value;
|
|
92
|
+
break;
|
|
93
|
+
case 'capacity-icon':
|
|
94
|
+
// Validator (rule 17e + checkSymbolReferences) has already verified
|
|
95
|
+
// the value is a built-in name, a declared symbol id, or an inline
|
|
96
|
+
// Unicode literal. Pass it through verbatim — interpretation
|
|
97
|
+
// happens in the renderer where we have access to ResolvedConfig.symbols.
|
|
98
|
+
target.capacityIcon = value;
|
|
99
|
+
break;
|
|
100
|
+
case 'timeline-position':
|
|
101
|
+
if (value === 'top' || value === 'bottom' || value === 'both') {
|
|
102
|
+
target.timelinePosition = value;
|
|
103
|
+
}
|
|
104
|
+
break;
|
|
105
|
+
case 'minor-grid':
|
|
106
|
+
target.minorGrid = value === 'true';
|
|
107
|
+
break;
|
|
108
|
+
default:
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
function coerceSize(value, max) {
|
|
113
|
+
const order = ['none', 'xs', 'sm', 'md', 'lg', 'xl', 'full'];
|
|
114
|
+
const cap = order.indexOf(max);
|
|
115
|
+
const idx = order.indexOf(value);
|
|
116
|
+
if (idx < 0)
|
|
117
|
+
return 'md';
|
|
118
|
+
if (idx > cap)
|
|
119
|
+
return order[cap];
|
|
120
|
+
return order[idx];
|
|
121
|
+
}
|
|
122
|
+
function applyStyleDecl(target, decl, theme) {
|
|
123
|
+
if (!decl)
|
|
124
|
+
return;
|
|
125
|
+
for (const p of decl.properties) {
|
|
126
|
+
applyProp(target, propKey(p), p.value, theme);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
function applyProperties(target, props, theme) {
|
|
130
|
+
for (const p of props) {
|
|
131
|
+
const key = propKey(p);
|
|
132
|
+
if (p.value !== undefined) {
|
|
133
|
+
applyProp(target, key, p.value, theme);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
function applyLabelStyleRefs(target, props, ctx) {
|
|
138
|
+
const labelsProp = props.find((p) => propKey(p) === 'labels');
|
|
139
|
+
if (!labelsProp)
|
|
140
|
+
return;
|
|
141
|
+
const names = labelsProp.value ? [labelsProp.value] : labelsProp.values;
|
|
142
|
+
for (const name of names) {
|
|
143
|
+
const label = ctx.labels.get(name);
|
|
144
|
+
if (!label)
|
|
145
|
+
continue;
|
|
146
|
+
// Label's `style:` ref gets applied.
|
|
147
|
+
const styleRef = label.properties.find((p) => propKey(p) === 'style');
|
|
148
|
+
if (styleRef?.value) {
|
|
149
|
+
applyStyleDecl(target, ctx.styles.get(styleRef.value), ctx.theme);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
function applyEntityStyleRef(target, props, ctx) {
|
|
154
|
+
const styleProp = props.find((p) => propKey(p) === 'style');
|
|
155
|
+
if (!styleProp?.value)
|
|
156
|
+
return;
|
|
157
|
+
applyStyleDecl(target, ctx.styles.get(styleProp.value), ctx.theme);
|
|
158
|
+
}
|
|
159
|
+
// Five-level precedence chain from specs/rendering.md § Style Precedence:
|
|
160
|
+
// 1. system default (theme's EntityStyle for this type)
|
|
161
|
+
// 2. config `default <entity>` properties
|
|
162
|
+
// 3. label `style:` refs (per applied label)
|
|
163
|
+
// 4. entity's own `style:` ref
|
|
164
|
+
// 5. inline style properties on the entity (banned by validator for roadmap
|
|
165
|
+
// entities; still supported for declared styles / defaults)
|
|
166
|
+
export function resolveStyle(entityType, props, ctx) {
|
|
167
|
+
const baseEntity = ctx.theme.entities[entityType];
|
|
168
|
+
const out = entityStyleToResolved(baseEntity, ctx.theme);
|
|
169
|
+
// Level 2: config defaults
|
|
170
|
+
const defaultDecl = ctx.defaults.get(entityType);
|
|
171
|
+
if (defaultDecl) {
|
|
172
|
+
for (const p of defaultDecl.properties) {
|
|
173
|
+
if (p.value !== undefined) {
|
|
174
|
+
applyProp(out, propKey(p), p.value, ctx.theme);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
// Level 3: label styles (labels on this entity, each label's `style:` ref)
|
|
179
|
+
applyLabelStyleRefs(out, props, ctx);
|
|
180
|
+
// Level 4: entity's own `style:` ref
|
|
181
|
+
applyEntityStyleRef(out, props, ctx);
|
|
182
|
+
// Level 5: inline props on the entity
|
|
183
|
+
applyProperties(out, props, ctx.theme);
|
|
184
|
+
return out;
|
|
185
|
+
}
|
|
186
|
+
// Resolve a label's *display* style (bg/fg/text + bracket etc.) as used on
|
|
187
|
+
// label chips rendered on items. The chip uses the label entity type.
|
|
188
|
+
export function resolveLabelChipStyle(label, ctx) {
|
|
189
|
+
return resolveStyle('label', label.properties, ctx);
|
|
190
|
+
}
|
|
191
|
+
//# sourceMappingURL=style-resolution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style-resolution.js","sourceRoot":"","sources":["../src/style-resolution.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AA0BjD,SAAS,OAAO,CAAC,IAAqB;IAClC,OAAO,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;AACrE,CAAC;AAED,SAAS,qBAAqB,CAAC,CAAc,EAAE,KAAY;IACvD,OAAO;QACH,EAAE,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,KAAK,CAAC;QAC7B,EAAE,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,KAAK,CAAC;QAC7B,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC;QACjC,MAAM,EAAE,CAAC,CAAC,MAAM;QAChB,IAAI,EAAE,CAAC,CAAC,IAAI;QACZ,MAAM,EAAE,CAAC,CAAC,MAAM;QAChB,IAAI,EAAE,CAAC,CAAC,IAAI;QACZ,MAAM,EAAE,CAAC,CAAC,MAAM;QAChB,MAAM,EAAE,CAAC,CAAC,MAAM;QAChB,QAAQ,EAAE,CAAC,CAAC,QAAQ;QACpB,OAAO,EAAE,CAAC,CAAC,OAAO;QAClB,OAAO,EAAE,CAAC,CAAC,OAAO;QAClB,YAAY,EAAE,CAAC,CAAC,YAAY;QAC5B,YAAY,EAAE,CAAC,CAAC,YAAY;QAC5B,OAAO,EAAE,CAAC,CAAC,OAAO;QAClB,sEAAsE;QACtE,qEAAqE;QACrE,0BAA0B;QAC1B,cAAc,EAAE,QAAQ;QACxB,YAAY,EAAE,CAAC,CAAC,YAAY;QAC5B,iEAAi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3,"file":"dark.d.ts","sourceRoot":"","sources":["../../src/themes/dark.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,WAAW,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAGlE,eAAO,MAAM,SAAS,EAAE,WAUvB,CAAC;AAqBF,eAAO,MAAM,SAAS,EAAE,KAiNvB,CAAC"}
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
// Named-color mapping for dark theme. Tailwind's slate-on-near-black tints.
|
|
2
|
+
export const darkNamed = {
|
|
3
|
+
red: '#f87171',
|
|
4
|
+
blue: '#60a5fa',
|
|
5
|
+
yellow: '#facc15',
|
|
6
|
+
green: '#34d399',
|
|
7
|
+
orange: '#fb923c',
|
|
8
|
+
purple: '#a78bfa',
|
|
9
|
+
gray: '#94a3b8',
|
|
10
|
+
navy: '#818cf8',
|
|
11
|
+
white: '#e2e8f0',
|
|
12
|
+
};
|
|
13
|
+
const baseEntity = {
|
|
14
|
+
bg: 'none',
|
|
15
|
+
fg: '#e2e8f0',
|
|
16
|
+
text: '#e2e8f0',
|
|
17
|
+
border: 'solid',
|
|
18
|
+
icon: 'none',
|
|
19
|
+
shadow: 'none',
|
|
20
|
+
font: 'sans',
|
|
21
|
+
weight: 'normal',
|
|
22
|
+
italic: false,
|
|
23
|
+
textSize: 'md',
|
|
24
|
+
padding: 'sm',
|
|
25
|
+
spacing: 'sm',
|
|
26
|
+
headerHeight: 'sm',
|
|
27
|
+
cornerRadius: 'sm',
|
|
28
|
+
bracket: 'none',
|
|
29
|
+
capacityIcon: 'multiplier',
|
|
30
|
+
};
|
|
31
|
+
export const darkTheme = {
|
|
32
|
+
name: 'dark',
|
|
33
|
+
surface: {
|
|
34
|
+
page: '#0b1220',
|
|
35
|
+
chart: '#111827',
|
|
36
|
+
headerBox: '#1e293b',
|
|
37
|
+
},
|
|
38
|
+
entities: {
|
|
39
|
+
roadmap: {
|
|
40
|
+
...baseEntity,
|
|
41
|
+
headerHeight: 'md',
|
|
42
|
+
padding: 'md',
|
|
43
|
+
},
|
|
44
|
+
swimlane: {
|
|
45
|
+
...baseEntity,
|
|
46
|
+
fg: '#e2e8f0',
|
|
47
|
+
text: '#e2e8f0',
|
|
48
|
+
padding: 'sm',
|
|
49
|
+
spacing: 'none',
|
|
50
|
+
textSize: 'sm',
|
|
51
|
+
},
|
|
52
|
+
item: {
|
|
53
|
+
...baseEntity,
|
|
54
|
+
// Status-aware tint applied during layout when bg stays #0f172a.
|
|
55
|
+
bg: '#0f172a',
|
|
56
|
+
fg: '#94a3b8',
|
|
57
|
+
text: '#e2e8f0',
|
|
58
|
+
shadow: 'subtle',
|
|
59
|
+
cornerRadius: 'sm',
|
|
60
|
+
},
|
|
61
|
+
parallel: {
|
|
62
|
+
...baseEntity,
|
|
63
|
+
bracket: 'none',
|
|
64
|
+
padding: 'xs',
|
|
65
|
+
},
|
|
66
|
+
group: {
|
|
67
|
+
...baseEntity,
|
|
68
|
+
bracket: 'solid',
|
|
69
|
+
padding: 'xs',
|
|
70
|
+
fg: '#94a3b8',
|
|
71
|
+
},
|
|
72
|
+
anchor: {
|
|
73
|
+
...baseEntity,
|
|
74
|
+
bg: '#0b1220',
|
|
75
|
+
fg: '#cbd5e1',
|
|
76
|
+
text: '#cbd5e1',
|
|
77
|
+
cornerRadius: 'sm',
|
|
78
|
+
},
|
|
79
|
+
milestone: {
|
|
80
|
+
...baseEntity,
|
|
81
|
+
bg: '#e2e8f0',
|
|
82
|
+
fg: '#e2e8f0',
|
|
83
|
+
text: '#0b1220',
|
|
84
|
+
border: 'solid',
|
|
85
|
+
},
|
|
86
|
+
footnote: {
|
|
87
|
+
...baseEntity,
|
|
88
|
+
bg: 'none',
|
|
89
|
+
fg: '#94a3b8',
|
|
90
|
+
text: '#e2e8f0',
|
|
91
|
+
textSize: 'sm',
|
|
92
|
+
},
|
|
93
|
+
label: {
|
|
94
|
+
...baseEntity,
|
|
95
|
+
bg: '#1e293b',
|
|
96
|
+
fg: '#94a3b8',
|
|
97
|
+
text: '#e2e8f0',
|
|
98
|
+
textSize: 'xs',
|
|
99
|
+
padding: 'xs',
|
|
100
|
+
cornerRadius: 'full',
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
swimlane: {
|
|
104
|
+
bandEven: '#111827',
|
|
105
|
+
bandOdd: '#0f172a',
|
|
106
|
+
separator: '#1f2937',
|
|
107
|
+
frameTabText: '#e2e8f0',
|
|
108
|
+
frameTabMuted: '#94a3b8',
|
|
109
|
+
border: '#334155',
|
|
110
|
+
tabFill: '#1e293b',
|
|
111
|
+
tabStroke: '#475569',
|
|
112
|
+
tabText: '#e2e8f0',
|
|
113
|
+
ownerText: '#94a3b8',
|
|
114
|
+
footnoteIndicator: '#f87171',
|
|
115
|
+
rowTintEven: '#0f172a',
|
|
116
|
+
rowTintOdd: '#1e293b',
|
|
117
|
+
utilizationOk: '#34d399',
|
|
118
|
+
utilizationWarn: '#fbbf24',
|
|
119
|
+
utilizationOver: '#f87171',
|
|
120
|
+
},
|
|
121
|
+
timeline: {
|
|
122
|
+
gridLine: '#475569',
|
|
123
|
+
minorGridLine: '#334155',
|
|
124
|
+
tickMark: '#334155',
|
|
125
|
+
labelText: '#cbd5e1',
|
|
126
|
+
panelFill: '#0f172a',
|
|
127
|
+
border: '#334155',
|
|
128
|
+
},
|
|
129
|
+
header: {
|
|
130
|
+
cardBorder: '#475569',
|
|
131
|
+
author: '#94a3b8',
|
|
132
|
+
},
|
|
133
|
+
item: {
|
|
134
|
+
overflowX: '#f87171',
|
|
135
|
+
linkIconFg: '#94a3b8',
|
|
136
|
+
overflowTailFill: '#7f1d1d',
|
|
137
|
+
overflowTailStroke: '#f87171',
|
|
138
|
+
overflowCaption: '#fecaca',
|
|
139
|
+
},
|
|
140
|
+
parallel: {
|
|
141
|
+
bracketStroke: '#cbd5e1',
|
|
142
|
+
},
|
|
143
|
+
anchorDiamond: {
|
|
144
|
+
fill: '#0f172a',
|
|
145
|
+
stroke: '#cbd5e1',
|
|
146
|
+
label: '#cbd5e1',
|
|
147
|
+
cutLine: '#94a3b8',
|
|
148
|
+
},
|
|
149
|
+
milestoneDiamond: {
|
|
150
|
+
fill: '#e2e8f0',
|
|
151
|
+
label: '#e2e8f0',
|
|
152
|
+
cutLineNormal: '#a5b4fc',
|
|
153
|
+
cutLineOverrun: '#ef4444',
|
|
154
|
+
slack: '#cbd5e1',
|
|
155
|
+
},
|
|
156
|
+
footnotePanel: {
|
|
157
|
+
fill: '#0f172a',
|
|
158
|
+
border: '#334155',
|
|
159
|
+
header: '#e2e8f0',
|
|
160
|
+
title: '#e2e8f0',
|
|
161
|
+
description: '#94a3b8',
|
|
162
|
+
number: '#f87171',
|
|
163
|
+
},
|
|
164
|
+
nowline: {
|
|
165
|
+
stroke: '#f87171',
|
|
166
|
+
labelText: '#0b1220',
|
|
167
|
+
labelBg: '#f87171',
|
|
168
|
+
},
|
|
169
|
+
milestone: {
|
|
170
|
+
dashedInk: '#a5b4fc',
|
|
171
|
+
overrun: '#ef4444',
|
|
172
|
+
},
|
|
173
|
+
anchor: {
|
|
174
|
+
predecessorLine: '#94a3b8',
|
|
175
|
+
},
|
|
176
|
+
dependency: {
|
|
177
|
+
edgeStroke: '#cbd5e1',
|
|
178
|
+
overflowStroke: '#ef5350',
|
|
179
|
+
},
|
|
180
|
+
footnote: {
|
|
181
|
+
indicatorText: '#f87171',
|
|
182
|
+
descriptionMuted: '#94a3b8',
|
|
183
|
+
},
|
|
184
|
+
includeRegion: {
|
|
185
|
+
border: '#475569',
|
|
186
|
+
label: '#cbd5e1',
|
|
187
|
+
badge: '#94a3b8',
|
|
188
|
+
fill: '#0b1220',
|
|
189
|
+
tabFill: '#111827',
|
|
190
|
+
tabStroke: '#475569',
|
|
191
|
+
tabText: '#e2e8f0',
|
|
192
|
+
badgeFill: '#1e293b',
|
|
193
|
+
badgeStroke: '#475569',
|
|
194
|
+
badgeText: '#94a3b8',
|
|
195
|
+
},
|
|
196
|
+
arrowhead: {
|
|
197
|
+
neutral: '#94a3b8',
|
|
198
|
+
light: '#64748b',
|
|
199
|
+
dark: '#e2e8f0',
|
|
200
|
+
},
|
|
201
|
+
status: {
|
|
202
|
+
done: '#34d399',
|
|
203
|
+
inProgress: '#60a5fa',
|
|
204
|
+
atRisk: '#facc15',
|
|
205
|
+
blocked: '#ef4444',
|
|
206
|
+
planned: '#94a3b8',
|
|
207
|
+
neutral: '#94a3b8',
|
|
208
|
+
},
|
|
209
|
+
// Status-dot palettes — see `light.ts` for the contract. Same
|
|
210
|
+
// two palettes both themes; dark-theme bars come in BOTH dark
|
|
211
|
+
// (status-tint) and bright (label-driven) flavors, so a single
|
|
212
|
+
// palette can never satisfy both. The renderer picks per-bar
|
|
213
|
+
// based on the bar bg's relative luminance.
|
|
214
|
+
statusDot: {
|
|
215
|
+
onLight: {
|
|
216
|
+
done: '#065f46',
|
|
217
|
+
inProgress: '#1e3a8a',
|
|
218
|
+
atRisk: '#92400e',
|
|
219
|
+
blocked: '#991b1b',
|
|
220
|
+
planned: '#334155',
|
|
221
|
+
neutral: '#334155',
|
|
222
|
+
},
|
|
223
|
+
onDark: {
|
|
224
|
+
done: '#d1fae5',
|
|
225
|
+
inProgress: '#dbeafe',
|
|
226
|
+
atRisk: '#fef3c7',
|
|
227
|
+
blocked: '#fee2e2',
|
|
228
|
+
planned: '#e2e8f0',
|
|
229
|
+
neutral: '#e2e8f0',
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
attribution: {
|
|
233
|
+
mark: '#cbd5e1',
|
|
234
|
+
link: '#f87171',
|
|
235
|
+
},
|
|
236
|
+
diagnostic: {
|
|
237
|
+
overlayBg: '#7f1d1d',
|
|
238
|
+
errorText: '#fecaca',
|
|
239
|
+
},
|
|
240
|
+
};
|
|
241
|
+
//# sourceMappingURL=dark.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dark.js","sourceRoot":"","sources":["../../src/themes/dark.ts"],"names":[],"mappings":"AAEA,4EAA4E;AAC5E,MAAM,C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