@likec4/core 1.47.0 → 1.49.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 +1 -1
- package/dist/THIRD-PARTY-LICENSES.md +1012 -0
- package/dist/_chunks/Builder.view-element.mjs +2 -0
- package/dist/_chunks/LikeC4Model.d.mts +1283 -0
- package/dist/_chunks/RichText.mjs +1 -0
- package/dist/_chunks/_types.d.mts +777 -0
- package/dist/_chunks/_types2.d.mts +36 -0
- package/dist/_chunks/assignTagColors.mjs +1 -0
- package/dist/_chunks/calcDriftsFromSnapshot.mjs +1 -0
- package/dist/_chunks/guards.d.mts +2026 -0
- package/dist/_chunks/guards.mjs +4 -0
- package/dist/_chunks/index.d.mts +288 -0
- package/dist/_chunks/libs/@mantine/colors-generator.mjs +15 -0
- package/dist/_chunks/libs/@radix-ui/colors.mjs +1 -0
- package/dist/_chunks/libs/@ungap/structured-clone.mjs +1 -0
- package/dist/_chunks/libs/bail.mjs +1 -0
- package/dist/_chunks/libs/ccount.mjs +1 -0
- package/dist/_chunks/libs/character-entities-html4.mjs +1 -0
- package/dist/_chunks/libs/character-entities-legacy.mjs +1 -0
- package/dist/_chunks/libs/character-entities.mjs +2 -0
- package/dist/_chunks/libs/comma-separated-tokens.mjs +1 -0
- package/dist/_chunks/libs/decode-named-character-reference.mjs +1 -0
- package/dist/_chunks/libs/defu.mjs +1 -0
- package/dist/_chunks/libs/devlop.mjs +1 -0
- package/dist/_chunks/libs/escape-string-regexp.mjs +1 -0
- package/dist/_chunks/libs/extend.mjs +1 -0
- package/dist/_chunks/libs/graphology-dag.mjs +1 -0
- package/dist/_chunks/libs/graphology.mjs +1 -0
- package/dist/_chunks/libs/hast-util-sanitize.mjs +1 -0
- package/dist/_chunks/libs/hast-util-to-html.mjs +9 -0
- package/dist/_chunks/libs/is-plain-obj.mjs +1 -0
- package/dist/_chunks/libs/longest-streak.mjs +1 -0
- package/dist/_chunks/libs/markdown-table.mjs +2 -0
- package/dist/_chunks/libs/mdast-util-find-and-replace.mjs +1 -0
- package/dist/_chunks/libs/mdast-util-from-markdown.mjs +3 -0
- package/dist/_chunks/libs/mdast-util-gfm.mjs +15 -0
- package/dist/_chunks/libs/mdast-util-to-hast.mjs +11 -0
- package/dist/_chunks/libs/micromark-extension-gfm.mjs +1 -0
- package/dist/_chunks/libs/mnemonist.d.mts +164 -0
- package/dist/_chunks/libs/mnemonist.mjs +1 -0
- package/dist/_chunks/libs/natural-compare-lite.mjs +9 -0
- package/dist/_chunks/libs/ohash.mjs +1 -0
- package/dist/_chunks/libs/rehype-sanitize.mjs +1 -0
- package/dist/_chunks/libs/rehype-stringify.mjs +1 -0
- package/dist/_chunks/libs/remark-gfm.mjs +1 -0
- package/dist/_chunks/libs/remark-github-blockquote-alert.mjs +3 -0
- package/dist/_chunks/libs/remark-parse.mjs +1 -0
- package/dist/_chunks/libs/remark-rehype.mjs +1 -0
- package/dist/_chunks/libs/remeda.mjs +1 -0
- package/dist/_chunks/libs/trough.mjs +1 -0
- package/dist/_chunks/libs/unified.mjs +1 -0
- package/dist/_chunks/rolldown-runtime.mjs +1 -0
- package/dist/_chunks/theme.d.mts +148 -0
- package/dist/_chunks/to-text.d.mts +404 -0
- package/dist/_chunks/to-text.mjs +1 -0
- package/dist/_chunks/vector.d.mts +198 -0
- package/dist/_chunks/vector.mjs +1 -0
- package/dist/builder/index.d.mts +5 -775
- package/dist/builder/index.mjs +1 -1053
- package/dist/compute-view/index.d.mts +156 -56
- package/dist/compute-view/index.mjs +2 -229
- package/dist/geometry/index.d.mts +2 -109
- package/dist/geometry/index.mjs +1 -328
- package/dist/index.d.mts +14 -20
- package/dist/index.mjs +1 -18
- package/dist/model/index.d.mts +5 -57
- package/dist/model/index.mjs +1 -4
- package/dist/styles/index.d.mts +3 -117
- package/dist/styles/index.mjs +1 -63
- package/dist/types/index.d.mts +3 -47
- package/dist/types/index.mjs +1 -17
- package/dist/utils/graphology/index.d.mts +2 -1864
- package/dist/utils/graphology/index.mjs +1 -1
- package/dist/utils/index.d.mts +4 -124
- package/dist/utils/index.mjs +1 -44
- package/package.json +20 -24
- package/compute-view/relationships/package.json +0 -4
- package/dist/compute-view/relationships-view/index.d.mts +0 -51
- package/dist/compute-view/relationships-view/index.mjs +0 -185
- package/dist/model/connection/deployment/index.d.mts +0 -15
- package/dist/model/connection/deployment/index.mjs +0 -2
- package/dist/model/connection/index.d.mts +0 -75
- package/dist/model/connection/index.mjs +0 -3
- package/dist/model/connection/model/index.d.mts +0 -15
- package/dist/model/connection/model/index.mjs +0 -2
- package/dist/shared/core.3ZhnKAlZ.mjs +0 -106
- package/dist/shared/core.78IWAHAE.mjs +0 -332
- package/dist/shared/core.B85MJLTf.mjs +0 -5
- package/dist/shared/core.BFd1lU9R.mjs +0 -29
- package/dist/shared/core.BKlholso.mjs +0 -3
- package/dist/shared/core.BNN-3vPH.mjs +0 -1255
- package/dist/shared/core.BPGOjone.d.mts +0 -46
- package/dist/shared/core.BP_QHEXs.mjs +0 -785
- package/dist/shared/core.BbE4y-yl.mjs +0 -177
- package/dist/shared/core.Bdy3hhTc.mjs +0 -28382
- package/dist/shared/core.BfCKSW-g.d.mts +0 -1266
- package/dist/shared/core.BhNcrwzK.mjs +0 -7
- package/dist/shared/core.BkVA6gjl.mjs +0 -5
- package/dist/shared/core.BoYfZOBm.mjs +0 -3
- package/dist/shared/core.BsSXS-_R.mjs +0 -7
- package/dist/shared/core.C3JowhaZ.mjs +0 -32
- package/dist/shared/core.C4x8aaWa.mjs +0 -27
- package/dist/shared/core.CAgYpDtM.d.mts +0 -98
- package/dist/shared/core.CHf8VEa3.mjs +0 -1206
- package/dist/shared/core.CLSZtnFh.mjs +0 -69
- package/dist/shared/core.C_3y3eqV.d.mts +0 -139
- package/dist/shared/core.CbT8JVYL.mjs +0 -5
- package/dist/shared/core.CdNCAwq7.mjs +0 -176
- package/dist/shared/core.CmGY9blO.mjs +0 -6717
- package/dist/shared/core.CmPXpJ8l.mjs +0 -21
- package/dist/shared/core.Coi_LOUZ.mjs +0 -7
- package/dist/shared/core.CqAJJpK_.mjs +0 -3
- package/dist/shared/core.CywrQs86.d.mts +0 -31
- package/dist/shared/core.D00YbOhQ.d.mts +0 -300
- package/dist/shared/core.D0WZutNd.mjs +0 -94
- package/dist/shared/core.D4npX2q8.mjs +0 -18
- package/dist/shared/core.DB0Ue5Wx.d.mts +0 -70
- package/dist/shared/core.DC5IAaDT.d.mts +0 -334
- package/dist/shared/core.DE9qzhn8.d.mts +0 -83
- package/dist/shared/core.DGcIbsj4.mjs +0 -3946
- package/dist/shared/core.DH7TXqXf.mjs +0 -136
- package/dist/shared/core.DKhRkHRN.d.mts +0 -41
- package/dist/shared/core.DRJma0Ol.mjs +0 -22
- package/dist/shared/core.DU5SRqNF.mjs +0 -2209
- package/dist/shared/core.DXhDWKFZ.d.mts +0 -3
- package/dist/shared/core.DbfO90vF.mjs +0 -434
- package/dist/shared/core.DcS-0zys.mjs +0 -10
- package/dist/shared/core.Dh119QSP.mjs +0 -4995
- package/dist/shared/core.DjcWextK.mjs +0 -1371
- package/dist/shared/core.Dojz4bvg.d.mts +0 -504
- package/dist/shared/core.FZ305VYd.mjs +0 -21
- package/dist/shared/core.OtRNdMxy.d.mts +0 -352
- package/dist/shared/core.RfnaEmgA.mjs +0 -7
- package/dist/shared/core.btEq3i3f.mjs +0 -300
- package/dist/shared/core.oSV6SRfk.mjs +0 -13
- package/dist/shared/core.om36dXXW.mjs +0 -41
- package/dist/shared/core.osFs8tU7.d.mts +0 -466
- package/dist/shared/core.q10OP9oJ.mjs +0 -5
- package/dist/shared/core.tpvDGvdC.d.mts +0 -87
- package/dist/shared/core.uFk_o9X6.mjs +0 -13
- package/dist/types/_aux.d.mts +0 -4
- package/dist/types/_aux.mjs +0 -8
- package/dist/types/expression-model.d.mts +0 -190
- package/dist/types/expression-model.mjs +0 -109
- package/dist/types/expression.d.mts +0 -6
- package/dist/types/expression.mjs +0 -113
- package/dist/types/fqnRef.d.mts +0 -60
- package/dist/types/fqnRef.mjs +0 -45
- package/dist/types/scalar.d.mts +0 -2
- package/dist/types/scalar.mjs +0 -4
- package/dist/utils/iterable/index.d.mts +0 -132
- package/dist/utils/iterable/index.mjs +0 -62
package/dist/geometry/index.mjs
CHANGED
|
@@ -1,328 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { i as invariant } from '../shared/core.D4npX2q8.mjs';
|
|
3
|
-
|
|
4
|
-
var BBox;
|
|
5
|
-
((BBox2) => {
|
|
6
|
-
function center({ x, y, width, height }) {
|
|
7
|
-
return {
|
|
8
|
-
x: x + width / 2,
|
|
9
|
-
y: y + height / 2
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
BBox2.center = center;
|
|
13
|
-
function toPoints({ x, y, width, height }) {
|
|
14
|
-
return [
|
|
15
|
-
{ x, y },
|
|
16
|
-
// Top left
|
|
17
|
-
{ x: x + width, y },
|
|
18
|
-
// Top right
|
|
19
|
-
{ x: x + width, y: y + height },
|
|
20
|
-
// Bottom right
|
|
21
|
-
{ x, y: y + height }
|
|
22
|
-
// Bottom left
|
|
23
|
-
];
|
|
24
|
-
}
|
|
25
|
-
BBox2.toPoints = toPoints;
|
|
26
|
-
function fromPoints(points) {
|
|
27
|
-
const { x1, y1, x2, y2 } = RectBox.fromPoints(points);
|
|
28
|
-
return {
|
|
29
|
-
x: x1,
|
|
30
|
-
y: y1,
|
|
31
|
-
width: x2 - x1,
|
|
32
|
-
height: y2 - y1
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
BBox2.fromPoints = fromPoints;
|
|
36
|
-
function merge(...boxes) {
|
|
37
|
-
invariant(t(boxes, 1), "No boxes provided");
|
|
38
|
-
if (boxes.length === 1) {
|
|
39
|
-
return boxes[0];
|
|
40
|
-
}
|
|
41
|
-
let minX = boxes[0].x;
|
|
42
|
-
let minY = boxes[0].y;
|
|
43
|
-
let maxX = boxes[0].x + boxes[0].width;
|
|
44
|
-
let maxY = boxes[0].y + boxes[0].height;
|
|
45
|
-
for (let i = 1; i < boxes.length; i++) {
|
|
46
|
-
const box = boxes[i];
|
|
47
|
-
minX = Math.min(minX, box.x);
|
|
48
|
-
minY = Math.min(minY, box.y);
|
|
49
|
-
maxX = Math.max(maxX, box.x + box.width);
|
|
50
|
-
maxY = Math.max(maxY, box.y + box.height);
|
|
51
|
-
}
|
|
52
|
-
return {
|
|
53
|
-
x: Math.floor(minX),
|
|
54
|
-
y: Math.floor(minY),
|
|
55
|
-
width: Math.round(maxX - minX),
|
|
56
|
-
height: Math.round(maxY - minY)
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
BBox2.merge = merge;
|
|
60
|
-
function fromRectBox(rect) {
|
|
61
|
-
return {
|
|
62
|
-
x: Math.min(rect.x1, rect.x2),
|
|
63
|
-
y: Math.min(rect.y1, rect.y2),
|
|
64
|
-
width: Math.abs(rect.x2 - rect.x1),
|
|
65
|
-
height: Math.abs(rect.y2 - rect.y1)
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
BBox2.fromRectBox = fromRectBox;
|
|
69
|
-
function toRectBox(box) {
|
|
70
|
-
return {
|
|
71
|
-
x1: box.x,
|
|
72
|
-
y1: box.y,
|
|
73
|
-
x2: box.x + box.width,
|
|
74
|
-
y2: box.y + box.height
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
BBox2.toRectBox = toRectBox;
|
|
78
|
-
function expand(box, plus) {
|
|
79
|
-
if (plus === 0) {
|
|
80
|
-
return box;
|
|
81
|
-
}
|
|
82
|
-
return {
|
|
83
|
-
x: box.x - plus,
|
|
84
|
-
y: box.y - plus,
|
|
85
|
-
width: box.width + plus * 2,
|
|
86
|
-
height: box.height + plus * 2
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
BBox2.expand = expand;
|
|
90
|
-
function shrink(box, minus) {
|
|
91
|
-
if (minus === 0) {
|
|
92
|
-
return box;
|
|
93
|
-
}
|
|
94
|
-
return {
|
|
95
|
-
x: box.x + minus,
|
|
96
|
-
y: box.y + minus,
|
|
97
|
-
width: box.width - minus * 2,
|
|
98
|
-
height: box.height - minus * 2
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
BBox2.shrink = shrink;
|
|
102
|
-
function includes(a, b) {
|
|
103
|
-
if (a === b) {
|
|
104
|
-
return true;
|
|
105
|
-
}
|
|
106
|
-
return a.x <= b.x && a.y <= b.y && a.x + a.width >= b.x + b.width && a.y + a.height >= b.y + b.height;
|
|
107
|
-
}
|
|
108
|
-
BBox2.includes = includes;
|
|
109
|
-
})(BBox || (BBox = {}));
|
|
110
|
-
var RectBox;
|
|
111
|
-
((RectBox2) => {
|
|
112
|
-
function center({ x1, y1, x2, y2 }) {
|
|
113
|
-
return {
|
|
114
|
-
x: (x1 + x2) / 2,
|
|
115
|
-
y: (y1 + y2) / 2
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
RectBox2.center = center;
|
|
119
|
-
function fromPoints(points) {
|
|
120
|
-
invariant(points.length > 0, "At least one point is required");
|
|
121
|
-
let minX = Infinity;
|
|
122
|
-
let minY = Infinity;
|
|
123
|
-
let maxX = -Infinity;
|
|
124
|
-
let maxY = -Infinity;
|
|
125
|
-
for (const [x, y] of points) {
|
|
126
|
-
minX = Math.min(minX, x);
|
|
127
|
-
minY = Math.min(minY, y);
|
|
128
|
-
maxX = Math.max(maxX, x);
|
|
129
|
-
maxY = Math.max(maxY, y);
|
|
130
|
-
}
|
|
131
|
-
return {
|
|
132
|
-
x1: minX,
|
|
133
|
-
y1: minY,
|
|
134
|
-
x2: maxX,
|
|
135
|
-
y2: maxY
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
RectBox2.fromPoints = fromPoints;
|
|
139
|
-
function merge(...boxes) {
|
|
140
|
-
invariant(boxes.length > 0, "No boxes provided");
|
|
141
|
-
let minX = Infinity;
|
|
142
|
-
let minY = Infinity;
|
|
143
|
-
let maxX = -Infinity;
|
|
144
|
-
let maxY = -Infinity;
|
|
145
|
-
for (const box of boxes) {
|
|
146
|
-
minX = Math.min(minX, box.x1);
|
|
147
|
-
minY = Math.min(minY, box.y1);
|
|
148
|
-
maxX = Math.max(maxX, box.x2);
|
|
149
|
-
maxY = Math.max(maxY, box.y2);
|
|
150
|
-
}
|
|
151
|
-
return {
|
|
152
|
-
x1: minX,
|
|
153
|
-
y1: minY,
|
|
154
|
-
x2: maxX,
|
|
155
|
-
y2: maxY
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
RectBox2.merge = merge;
|
|
159
|
-
function toBBox(box) {
|
|
160
|
-
return {
|
|
161
|
-
x: box.x1,
|
|
162
|
-
y: box.y1,
|
|
163
|
-
width: box.x2 - box.x1,
|
|
164
|
-
height: box.y2 - box.y1
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
RectBox2.toBBox = toBBox;
|
|
168
|
-
function includes(a, b) {
|
|
169
|
-
if (a === b) {
|
|
170
|
-
return true;
|
|
171
|
-
}
|
|
172
|
-
return a.x1 <= b.x1 && a.y1 <= b.y1 && a.x2 >= b.x2 && a.y2 >= b.y2;
|
|
173
|
-
}
|
|
174
|
-
RectBox2.includes = includes;
|
|
175
|
-
})(RectBox || (RectBox = {}));
|
|
176
|
-
|
|
177
|
-
class Vector {
|
|
178
|
-
constructor(x, y) {
|
|
179
|
-
this.x = x;
|
|
180
|
-
this.y = y;
|
|
181
|
-
}
|
|
182
|
-
static create(...args) {
|
|
183
|
-
if (args.length === 2) {
|
|
184
|
-
return new Vector(args[0], args[1]);
|
|
185
|
-
}
|
|
186
|
-
return new Vector(args[0].x, args[0].y);
|
|
187
|
-
}
|
|
188
|
-
/**
|
|
189
|
-
* Adds two vectors.
|
|
190
|
-
* @param a The first vector.
|
|
191
|
-
* @param b The second vector.
|
|
192
|
-
* @returns The sum of the two vectors.
|
|
193
|
-
*/
|
|
194
|
-
static add(a, b) {
|
|
195
|
-
return { x: a.x + b.x, y: a.y + b.y };
|
|
196
|
-
}
|
|
197
|
-
/**
|
|
198
|
-
* Subtracts two vectors.
|
|
199
|
-
* @param a The first vector.
|
|
200
|
-
* @param b The second vector.
|
|
201
|
-
* @returns The difference of the two vectors.
|
|
202
|
-
*/
|
|
203
|
-
static subtract(a, b) {
|
|
204
|
-
return { x: a.x - b.x, y: a.y - b.y };
|
|
205
|
-
}
|
|
206
|
-
/**
|
|
207
|
-
* Multiplies a vector by a scalar.
|
|
208
|
-
* @param a The vector.
|
|
209
|
-
* @param b The scalar.
|
|
210
|
-
* @returns The scaled vector.
|
|
211
|
-
*/
|
|
212
|
-
static multiply(a, b) {
|
|
213
|
-
return { x: a.x * b, y: a.y * b };
|
|
214
|
-
}
|
|
215
|
-
/**
|
|
216
|
-
* Divides a vector by a scalar.
|
|
217
|
-
* @param a The vector.
|
|
218
|
-
* @param b The scalar.
|
|
219
|
-
* @returns The scaled vector.
|
|
220
|
-
*/
|
|
221
|
-
static divide(a, b) {
|
|
222
|
-
return { x: a.x / b, y: a.y / b };
|
|
223
|
-
}
|
|
224
|
-
/**
|
|
225
|
-
* Calculates the dot product of the vectors.
|
|
226
|
-
* @param a The first vector.
|
|
227
|
-
* @param b The second vector.
|
|
228
|
-
* @returns The dot product.
|
|
229
|
-
*/
|
|
230
|
-
static dot(a, b) {
|
|
231
|
-
return a.x * b.x + a.y * b.y;
|
|
232
|
-
}
|
|
233
|
-
/**
|
|
234
|
-
* Adds the given vector to this vector.
|
|
235
|
-
* @param b The vector to add.
|
|
236
|
-
* @returns A new vector that is the sum of this vector and the given vector.
|
|
237
|
-
*/
|
|
238
|
-
add(b) {
|
|
239
|
-
return new Vector(this.x + b.x, this.y + b.y);
|
|
240
|
-
}
|
|
241
|
-
/**
|
|
242
|
-
* Subtracts the given vector from this vector.
|
|
243
|
-
* @param b The vector to subtract.
|
|
244
|
-
* @returns A new vector that is the difference of this vector and the given vector.
|
|
245
|
-
*/
|
|
246
|
-
subtract(b) {
|
|
247
|
-
return new Vector(this.x - b.x, this.y - b.y);
|
|
248
|
-
}
|
|
249
|
-
/**
|
|
250
|
-
* Multiplies this vector by a scalar.
|
|
251
|
-
* @param b The scalar to multiply by.
|
|
252
|
-
* @returns A new vector that is the product of this vector and the given scalar.
|
|
253
|
-
*/
|
|
254
|
-
multiply(b) {
|
|
255
|
-
return new Vector(this.x * b, this.y * b);
|
|
256
|
-
}
|
|
257
|
-
/**
|
|
258
|
-
* Divides this vector by a scalar.
|
|
259
|
-
* @param b The scalar to divide by.
|
|
260
|
-
* @returns A new vector that is the quotient of this vector and the given scalar.
|
|
261
|
-
*/
|
|
262
|
-
divide(b) {
|
|
263
|
-
return new Vector(this.x / b, this.y / b);
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* Calculates the dot product of this vector and another vector.
|
|
267
|
-
* @param b The other vector.
|
|
268
|
-
* @returns The dot product.
|
|
269
|
-
*/
|
|
270
|
-
dot(b) {
|
|
271
|
-
return this.x * b.x + this.y * b.y;
|
|
272
|
-
}
|
|
273
|
-
/**
|
|
274
|
-
* Calculates the cross product of this vector and another vector.
|
|
275
|
-
* The cross product of two 2D vectors is a scalar value: a.x * b.y - a.y * b.x
|
|
276
|
-
* @param b The other vector.
|
|
277
|
-
* @returns The cross product as a scalar.
|
|
278
|
-
*/
|
|
279
|
-
cross(b) {
|
|
280
|
-
return this.x * b.y - this.y * b.x;
|
|
281
|
-
}
|
|
282
|
-
/**
|
|
283
|
-
* Calculates the length (magnitude) of this vector.
|
|
284
|
-
* @returns The length of the vector.
|
|
285
|
-
*/
|
|
286
|
-
length() {
|
|
287
|
-
if (this.x === 0 && this.y === 0) {
|
|
288
|
-
return 0;
|
|
289
|
-
}
|
|
290
|
-
return Math.sqrt(this.x ** 2 + this.y ** 2);
|
|
291
|
-
}
|
|
292
|
-
/**
|
|
293
|
-
* Normalizes the vector (makes it unit length, i.e., has a length of 1).
|
|
294
|
-
* @returns A new vector that is the normalized version of this vector.
|
|
295
|
-
*/
|
|
296
|
-
normalize() {
|
|
297
|
-
const len = this.length();
|
|
298
|
-
if (len === 0) {
|
|
299
|
-
return new Vector(0, 0);
|
|
300
|
-
}
|
|
301
|
-
return new Vector(this.x / len, this.y / len);
|
|
302
|
-
}
|
|
303
|
-
/**
|
|
304
|
-
* Rounds the components of the vector to the nearest integers.
|
|
305
|
-
* @returns A new vector with rounded components.
|
|
306
|
-
*/
|
|
307
|
-
round() {
|
|
308
|
-
return new Vector(Math.round(this.x), Math.round(this.y));
|
|
309
|
-
}
|
|
310
|
-
/**
|
|
311
|
-
* Converts the vector to a plain object.
|
|
312
|
-
* @returns An object with x and y properties.
|
|
313
|
-
*/
|
|
314
|
-
toObject() {
|
|
315
|
-
return { x: this.x, y: this.y };
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
function vector(...args) {
|
|
319
|
-
if (args.length === 1 && args[0] instanceof Vector) {
|
|
320
|
-
return args[0];
|
|
321
|
-
}
|
|
322
|
-
if (args.length === 2) {
|
|
323
|
-
return new Vector(args[0], args[1]);
|
|
324
|
-
}
|
|
325
|
-
return new Vector(args[0].x, args[0].y);
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
export { BBox, RectBox, Vector, vector };
|
|
1
|
+
import"../_chunks/libs/defu.mjs";import{a as convertPoint,i as RectBox,n as vector,o as isPoint,r as BBox,t as Vector}from"../_chunks/vector.mjs";import"../_chunks/libs/graphology-dag.mjs";import"../_chunks/libs/natural-compare-lite.mjs";import"../_chunks/libs/extend.mjs";export{BBox,RectBox,Vector,convertPoint,isPoint,vector};
|
package/dist/index.d.mts
CHANGED
|
@@ -1,21 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export { C as Coalesce, E as ExclusiveUnion, I as IterableContainer, c as IteratorLike, K as KeysOf, L as Link, b as NTuple, N as NonEmptyArray, a as NonEmptyReadonlyArray, P as Predicate, R as ReorderedArray, e as exact } from './shared/core.DB0Ue5Wx.mjs';
|
|
11
|
-
export { ModelExpression, ModelFqnExpr, ModelRelationExpr } from './types/expression-model.mjs';
|
|
12
|
-
export { FqnRef } from './types/fqnRef.mjs';
|
|
13
|
-
export { B as BBox, P as Point, R as RectBox, X as XYPoint } from './shared/core.BPGOjone.mjs';
|
|
14
|
-
export { Vector, VectorValue, vector } from './geometry/index.mjs';
|
|
15
|
-
export { A as AbstractRelationship, p as AnyExcludePredicate, o as AnyIncludePredicate, q as AnyViewRuleStyle, w as AutoLayoutDirection, I as BaseParsedViewProperties, H as BaseViewProperties, W as ComputedDeploymentView, X as ComputedDynamicView, P as ComputedEdge, U as ComputedElementView, O as ComputedNode, C as ComputedNodeStyle, Q as ComputedRankConstraint, Y as DynamicStep, _ as DynamicStepsParallel, Z as DynamicStepsSeries, a6 as DynamicViewDisplayVariant, a4 as DynamicViewIncludeRule, a5 as DynamicViewRule, a0 as DynamicViewStep, f as Element, h as ElementSpecification, E as ElementStyle, a9 as ElementViewExcludePredicate, a8 as ElementViewIncludePredicate, aa as ElementViewPredicate, ag as ElementViewRule, ab as ElementViewRuleGroup, ae as ElementViewRuleRank, ad as ElementViewRuleStyle, b as GlobalDynamicPredicates, G as GlobalPredicateId, a as GlobalPredicates, c as GlobalStyleID, d as GlobalStyles, n as LikeC4Project, m as LikeC4ProjectManualLayoutsConfig, l as LikeC4ProjectStyleDefaults, L as LikeC4ProjectStylesConfig, k as LikeC4ProjectTheme, M as ModelGlobals, g as ModelRelation, N as NodeNotation, a7 as ParsedDynamicView, ah as ParsedElementView, u as RankValue, R as Relationship, j as RelationshipSpecification, S as Specification, T as TagSpecification, B as ViewAutoLayout, D as ViewManualLayout, y as ViewRuleAutoLayout, s as ViewRuleGlobalPredicateRef, V as ViewRuleGlobalStyle, v as ViewRuleRank, F as ViewType, K as ViewWithHash, J as ViewWithNotation, e as ensureSizes, $ as getParallelStepsPrefix, x as isAutoLayoutDirection, a1 as isDynamicStep, a2 as isDynamicStepsParallel, a3 as isDynamicStepsSeries, i as isTagColorSpecified, z as isViewRuleAutoLayout, t as isViewRuleGlobalPredicateRef, r as isViewRuleGlobalStyle, ac as isViewRuleGroup, af as isViewRuleRank } from './shared/core.Dojz4bvg.mjs';
|
|
16
|
-
export { ViewChange } from './types/index.mjs';
|
|
17
|
-
import 'type-fest';
|
|
1
|
+
import { $ as LayoutedViewDriftReason, $i as IterableContainer, $n as FqnRef, $r as SpecAux, $t as ElementViewPredicate, A as isComputedView, Ai as RelationKind, An as ModelRelationExpr, Ar as ThemeColors, At as ModelRelation, B as DeploymentViewIncludePredicate, Bi as isGroupElementKind, Bn as OperatorPredicate, Bt as DynamicStepsParallel, C as LayoutedView, Ci as Icon, Cn as ViewWithNotation, Cr as isCustomColor, Ct as DeploymentRelation, D as ViewRule, Di as NoneIcon, Dn as isViewRuleGlobalStyle, Dr as ElementShapes, Dt as AbstractRelationship, E as ViewOnStage, Ei as NodeId, En as isViewRuleGlobalPredicateRef, Et as isDeploymentNode, F as isExtendsElementView, Fi as Tag, Fn as AndOperator, Fr as Aux, Ft as GlobalPredicates, G as DiagramEdge, Gi as ExtractOnStage, Gn as WhereOperator, Gr as LooseLiteral, Gt as DynamicViewStep, H as DeploymentViewRule, Hi as scalar_d_exports, Hn as Participant, Ht as DynamicViewDisplayVariant, I as isScopedElementView, Ii as ViewId, In as EqualOperator, It as GlobalStyleID, J as LayoutedDeploymentView, Ji as _stage, Jn as isNotOperator, Jt as isDynamicStep, K as DiagramNode, Ki as ModelStage, Kn as isAndOperator, Kt as ParsedDynamicView, L as isViewRulePredicate, Li as extractStep, Ln as Filterable, Lt as GlobalStyles, M as isDiagramView, Mi as StepEdgeId, Mn as FqnExpr, Mr as AnyComputed, Mt as ensureSizes, N as isDynamicView, Ni as StepEdgeIdLiteral, Nn as PredicateSelector, Nr as AnyLayouted, Nt as GlobalDynamicPredicates, O as ViewRulePredicate, Oi as ProjectId, On as ModelExpression, Or as IconPositions, Ot as Element, P as isElementView, Pi as StepEdgeKind, Pn as RelationExpr, Pr as AnyParsed, Pt as GlobalPredicateId, Q as DiagramNodeDriftReason, Qi as ExclusiveUnion, Qn as whereOperatorAsPredicate, Qt as ElementViewIncludePredicate, R as isViewRuleStyle, Ri as flattenMarkdownOrString, Rn as KindEqual, Rt as ModelGlobals, S as ComputedView, Si as GroupElementKind, Sn as ViewWithHash, Sr as ThemeColorValues, St as DeploymentNode, T as ProcessedView, Ti as MarkdownOrString, Tn as isViewRuleAutoLayout, Tr as BorderStyles, Tt as isDeployedInstance, U as DeploymentViewRuleStyle, Ui as splitGlobalFqn, Un as ParticipantOperator, Ut as DynamicViewIncludeRule, V as DeploymentViewPredicate, Vi as isStepEdgeId, Vn as OrOperator, Vt as DynamicStepsSeries, W as ParsedDeploymentView, Wi as stepEdgeId, Wn as TagEqual, Wt as DynamicViewRule, X as LayoutedElementView, Xi as isOnStage, Xn as isParticipantOperator, Xt as isDynamicStepsSeries, Y as LayoutedDynamicView, Yi as _type, Yn as isOrOperator, Yt as isDynamicStepsParallel, Z as DiagramEdgeDriftReason, Zi as Coalesce, Zn as isTagEqual, Zt as ElementViewExcludePredicate, _ as ComputedLikeC4ModelData, _i as DeploymentKind, _n as ViewRuleAutoLayout, _r as ShapeSize, _t as TagSpecification, a as isNonEmptyArray, aa as NonEmptyReadonlyArray, ai as UnknownComputed, an as isViewRuleGroup, ar as ElementColorValues, at as ComputedNode, b as ParsedLikeC4ModelData, bi as Fqn, bn as ViewRuleRank, br as TextSize, bt as DeploymentElement, c as RichTextEmpty, ca as exact, cn as AnyIncludePredicate, cr as IconPosition, ct as LikeC4Project, d as AuxFromDump, di as preferSummary, dn as BaseParsedViewProperties, dr as LikeC4StylesConfig, dt as LikeC4ProjectStylesConfig, ea as IteratorLike, en as ElementViewRule, er as BorderStyle, et as ViewManualLayoutSnapshot, f as LikeC4ModelDump, fn as BaseViewProperties, fr as LikeC4Theme, ft as LikeC4ProjectStylesCustomStylesheets, g as AuxFromLikeC4ModelData, gi as DeploymentFqn, gn as ViewManualLayout, gr as RelationshipLineType, gt as Specification, h as SpecificationDump, hi as BuiltInIcon, hn as ViewAutoLayout, hr as RelationshipColorValues, ht as RelationshipSpecification, i as isAnyOf, ia as NonEmptyArray, ii as Unknown, in as ParsedElementView, ir as CustomColorDefinitions, it as ComputedElementView, j as isDeploymentView, ji as RelationshipKind, jn as Expression, jr as Any, jt as Relationship, k as ViewWithType, ki as RelationId, kn as ModelFqnExpr, kr as Sizes, kt as ElementStyle, l as RichTextOrEmpty, li as _aux_d_exports, ln as AnyViewRuleStyle, lr as IconSize, lt as LikeC4ProjectManualLayoutsConfig, m as SpecTypesFromDump, mi as AnyFqn, mn as RankValue, mr as RelationshipArrowTypes, mt as ElementSpecification, n as GuardedBy, na as Link, nn as ElementViewRuleRank, nr as ColorLiteral, nt as ComputedDynamicView, o as isString, oa as Predicate, oi as UnknownLayouted, on as isViewRuleRank, or as ElementShape, ot as ComputedNodeStyle, p as ProjectDump, pn as NodeNotation, pr as RelationshipArrowType, pt as LikeC4ProjectTheme, q as LayoutType, qi as _layout, qn as isKindEqual, qt as getParallelStepsPrefix, r as hasProp, ra as NTuple, rn as ElementViewRuleStyle, rr as CustomColor, rt as ComputedEdge, s as RichText, sa as ReorderedArray, si as UnknownParsed, sn as AnyExcludePredicate, sr as HexColor, st as ComputedRankConstraint, t as Guard, ta as KeysOf, tn as ElementViewRuleGroup, tr as Color, tt as ComputedDeploymentView, u as ViewChange, ui as preferDescription, un as AutoLayoutDirection, ur as LikeC4StyleDefaults, ut as LikeC4ProjectStyleDefaults, v as LayoutedLikeC4ModelData, vi as EdgeId, vn as ViewRuleGlobalPredicateRef, vr as Size, vt as isTagColorSpecified, w as ParsedView, wi as IconUrl, wn as isAutoLayoutDirection, wr as isThemeColor, wt as DeploymentRelationship, x as AnyView, xi as GlobalFqn, xn as ViewType, xr as ThemeColor, xt as DeploymentElementRef, y as LikeC4ModelData, yi as ElementKind, yn as ViewRuleGlobalStyle, yr as SpacingSize, yt as DeployedInstance, z as DeploymentViewExcludePredicate, zi as isGlobalFqn, zn as NotOperator, zt as DynamicStep } from "./_chunks/guards.mjs";
|
|
2
|
+
import { a as RectBox, c as XYPoint, i as BBox, l as convertPoint, n as VectorValue, o as Dimensions, r as vector, s as Point, t as Vector, u as isPoint } from "./_chunks/vector.mjs";
|
|
3
|
+
import "./types/index.mjs";
|
|
4
|
+
import { i as LikeC4Styles } from "./_chunks/theme.mjs";
|
|
5
|
+
import { a as DefaultWeakMap, i as LinkedList, n as MultiMap, o as DefaultMap, r as Queue } from "./_chunks/libs/mnemonist.mjs";
|
|
6
|
+
import "./styles/index.mjs";
|
|
7
|
+
import { o as LayoutedProjectsView, r as ComputedProjectsView } from "./_chunks/_types2.mjs";
|
|
8
|
+
import { D as isIterable, F as isAncestor, H as sortParentsFirst, I as isDescendantOf, J as nonNullable, L as isSameHierarchy, R as nameFromFqn, V as sortNaturalByFqn, Y as nonexhaustive, k as ancestorsFqn, m as memoizeProp, q as invariant, z as parentFqn } from "./_chunks/to-text.mjs";
|
|
9
|
+
import "./utils/index.mjs";
|
|
18
10
|
|
|
11
|
+
//#region src/manual-layout/applyManualLayout.d.ts
|
|
19
12
|
/**
|
|
20
13
|
* Proof-of-concept
|
|
21
14
|
* Use layout from the snapshot, and 'safe'-apply style properties from the `autoLayouted` view
|
|
@@ -25,12 +18,13 @@ import 'type-fest';
|
|
|
25
18
|
* @returns The snapshot with the next view applied
|
|
26
19
|
*/
|
|
27
20
|
declare function applyManualLayout<V extends LayoutedView>(autoLayouted: V, snapshot: ViewManualLayoutSnapshot): V;
|
|
28
|
-
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/manual-layout/calcDriftsFromSnapshot.d.ts
|
|
29
23
|
/**
|
|
30
24
|
* Calculates drifts comparing latest autoLayouted with manual snapshot.
|
|
31
25
|
*
|
|
32
26
|
* @returns The autoLayouted view with calculated drifts if any.
|
|
33
27
|
*/
|
|
34
28
|
declare function calcDriftsFromSnapshot<V extends LayoutedView>(autoLayouted: V, snapshot: ViewManualLayoutSnapshot): V;
|
|
35
|
-
|
|
36
|
-
export { LayoutedView as DiagramView, LayoutedView, ViewManualLayoutSnapshot, applyManualLayout, calcDriftsFromSnapshot };
|
|
29
|
+
//#endregion
|
|
30
|
+
export { AbstractRelationship, AndOperator, Any, Any as AnyAux, AnyComputed, AnyExcludePredicate, AnyFqn, AnyIncludePredicate, AnyLayouted, AnyParsed, AnyView, AnyViewRuleStyle, AutoLayoutDirection, Aux, AuxFromDump, AuxFromLikeC4ModelData, BBox, BaseParsedViewProperties, BaseViewProperties, BorderStyle, BorderStyles, BuiltInIcon, Coalesce, Color, ColorLiteral, ComputedDeploymentView, ComputedDynamicView, ComputedEdge, ComputedElementView, ComputedLikeC4ModelData, ComputedNode, ComputedNodeStyle, type ComputedProjectsView, ComputedRankConstraint, ComputedView, CustomColor, CustomColorDefinitions, DefaultMap, DefaultWeakMap, DeployedInstance, DeploymentElement, DeploymentElementRef, DeploymentFqn, DeploymentKind, DeploymentNode, DeploymentRelation, DeploymentRelationship, DeploymentViewExcludePredicate, DeploymentViewIncludePredicate, DeploymentViewPredicate, DeploymentViewRule, DeploymentViewRuleStyle, DiagramEdge, DiagramEdgeDriftReason, DiagramNode, DiagramNodeDriftReason, LayoutedView as DiagramView, LayoutedView, Dimensions, DynamicStep, DynamicStepsParallel, DynamicStepsSeries, DynamicViewDisplayVariant, DynamicViewIncludeRule, DynamicViewRule, DynamicViewStep, EdgeId, Element, ElementColorValues, ElementKind, ElementShape, ElementShapes, ElementSpecification, ElementStyle, ElementViewExcludePredicate, ElementViewIncludePredicate, ElementViewPredicate, ElementViewRule, ElementViewRuleGroup, ElementViewRuleRank, ElementViewRuleStyle, EqualOperator, ExclusiveUnion, Expression, ExtractOnStage, Filterable, Fqn, FqnExpr, FqnRef, GlobalDynamicPredicates, GlobalFqn, GlobalPredicateId, GlobalPredicates, GlobalStyleID, GlobalStyles, GroupElementKind, Guard, GuardedBy, HexColor, Icon, IconPosition, IconPositions, IconSize, IconUrl, IterableContainer, IteratorLike, KeysOf, KindEqual, LayoutType, LayoutedDeploymentView, LayoutedDynamicView, LayoutedElementView, LayoutedLikeC4ModelData, type LayoutedProjectsView, LayoutedViewDriftReason, LikeC4ModelData, LikeC4ModelDump, LikeC4Project, LikeC4ProjectManualLayoutsConfig, LikeC4ProjectStyleDefaults, LikeC4ProjectStylesConfig, LikeC4ProjectStylesCustomStylesheets, LikeC4ProjectTheme, type LikeC4StyleDefaults, LikeC4Styles, type LikeC4StylesConfig, type LikeC4Theme, ParsedView as LikeC4View, ParsedView, Link, LinkedList, LooseLiteral, MarkdownOrString, ModelExpression, ModelFqnExpr, ModelGlobals, ModelRelation, ModelRelationExpr, ModelStage, MultiMap, NTuple, NodeId, NodeNotation, NonEmptyArray, NonEmptyReadonlyArray, NoneIcon, NotOperator, OperatorPredicate, OrOperator, ParsedDeploymentView, ParsedDynamicView, ParsedElementView, ParsedLikeC4ModelData, Participant, ParticipantOperator, Point, Predicate, PredicateSelector, ProcessedView, ProjectDump, ProjectId, Queue, RankValue, RectBox, RelationExpr, RelationId, RelationKind, Relationship, RelationshipArrowType, RelationshipArrowTypes, RelationshipColorValues, RelationshipKind, RelationshipLineType, RelationshipSpecification, ReorderedArray, RichText, RichTextEmpty, RichTextOrEmpty, ShapeSize, Size, Sizes, SpacingSize, SpecAux, SpecTypesFromDump, Specification, SpecificationDump, StepEdgeId, StepEdgeIdLiteral, StepEdgeKind, Tag, TagEqual, TagSpecification, TextSize, ThemeColor, type ThemeColorValues, ThemeColors, Unknown, UnknownComputed, UnknownLayouted, UnknownParsed, Vector, VectorValue, ViewAutoLayout, ViewChange, ViewId, ViewManualLayout, ViewManualLayoutSnapshot, ViewOnStage, ViewRule, ViewRuleAutoLayout, ViewRuleGlobalPredicateRef, ViewRuleGlobalStyle, ViewRulePredicate, ViewRuleRank, ViewType, ViewWithHash, ViewWithNotation, ViewWithType, WhereOperator, XYPoint, _layout, _stage, _type, ancestorsFqn, applyManualLayout, _aux_d_exports as aux, calcDriftsFromSnapshot, convertPoint, ensureSizes, exact, extractStep, flattenMarkdownOrString, getParallelStepsPrefix, hasProp, invariant, isAncestor, isAndOperator, isAnyOf, isAutoLayoutDirection, isComputedView, isCustomColor, isDeployedInstance, isDeploymentNode, isDeploymentView, isDescendantOf, isDiagramView, isDiagramView as isLayoutedView, isDynamicStep, isDynamicStepsParallel, isDynamicStepsSeries, isDynamicView, isElementView, isExtendsElementView, isGlobalFqn, isGroupElementKind, isIterable, isKindEqual, isNonEmptyArray, isNotOperator, isOnStage, isOrOperator, isParticipantOperator, isPoint, isSameHierarchy, isScopedElementView, isStepEdgeId, isString, isTagColorSpecified, isTagEqual, isThemeColor, isViewRuleAutoLayout, isViewRuleGlobalPredicateRef, isViewRuleGlobalStyle, isViewRuleGroup, isViewRulePredicate, isViewRuleRank, isViewRuleStyle, memoizeProp, nameFromFqn, nonNullable, nonexhaustive, parentFqn, preferDescription, preferSummary, scalar_d_exports as scalar, sortNaturalByFqn, sortParentsFirst, splitGlobalFqn, stepEdgeId, vector, whereOperatorAsPredicate };
|
package/dist/index.mjs
CHANGED
|
@@ -1,18 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { a as ancestorsFqn, h as hasProp, i as isAncestor, b as isDescendantOf, c as isNonEmptyArray, d as isSameHierarchy, e as isString, n as nameFromFqn, p as parentFqn, s as sortNaturalByFqn, f as sortParentsFirst } from './shared/core.CdNCAwq7.mjs';
|
|
3
|
-
export { b as BiMap, d as DefaultWeakMap, l as LinkedList, m as MultiMap, q as Queue } from './shared/core.BNN-3vPH.mjs';
|
|
4
|
-
export { D as DefaultMap } from './shared/core.BbE4y-yl.mjs';
|
|
5
|
-
export { i as invariant, a as nonNullable, n as nonexhaustive } from './shared/core.D4npX2q8.mjs';
|
|
6
|
-
export { i as isIterable } from './shared/core.RfnaEmgA.mjs';
|
|
7
|
-
export { m as memoizeProp } from './shared/core.CLSZtnFh.mjs';
|
|
8
|
-
export { a as applyManualLayout, c as calcDriftsFromSnapshot } from './shared/core.DjcWextK.mjs';
|
|
9
|
-
export { preferDescription, preferSummary } from './types/_aux.mjs';
|
|
10
|
-
export { D as DeploymentFqn, E as EdgeId, F as Fqn, a as GlobalFqn, G as GroupElementKind, d as NodeId, N as NoneIcon, P as ProjectId, R as RelationId, S as StepEdgeKind, V as ViewId, h as extractStep, f as flattenMarkdownOrString, b as isGlobalFqn, i as isGroupElementKind, g as isStepEdgeId, s as scalar, c as splitGlobalFqn, e as stepEdgeId } from './shared/core.D0WZutNd.mjs';
|
|
11
|
-
export { R as RichText, e as exact } from './shared/core.CHf8VEa3.mjs';
|
|
12
|
-
export { b as _layout, _ as _stage, a as _type, j as isAndOperator, n as isComputedView, d as isDeployedInstance, c as isDeploymentNode, s as isDeploymentView, o as isDiagramView, t as isDynamicView, p as isElementView, r as isExtendsElementView, f as isKindEqual, o as isLayoutedView, h as isNotOperator, i as isOnStage, k as isOrOperator, g as isParticipantOperator, q as isScopedElementView, e as isTagEqual, l as isViewRulePredicate, m as isViewRuleStyle, w as whereOperatorAsPredicate } from './shared/core.DH7TXqXf.mjs';
|
|
13
|
-
export { Expression, FqnExpr, RelationExpr } from './types/expression.mjs';
|
|
14
|
-
export { ModelExpression, ModelFqnExpr, ModelRelationExpr } from './types/expression-model.mjs';
|
|
15
|
-
export { FqnRef } from './types/fqnRef.mjs';
|
|
16
|
-
export { BBox, RectBox, Vector, vector } from './geometry/index.mjs';
|
|
17
|
-
export { isTagColorSpecified } from './types/index.mjs';
|
|
18
|
-
export { g as getParallelStepsPrefix, b as isAutoLayoutDirection, d as isDynamicStep, e as isDynamicStepsParallel, f as isDynamicStepsSeries, c as isViewRuleAutoLayout, a as isViewRuleGlobalPredicateRef, i as isViewRuleGlobalStyle, h as isViewRuleGroup, j as isViewRuleRank } from './shared/core.om36dXXW.mjs';
|
|
1
|
+
import"./_chunks/libs/defu.mjs";import{$ as GroupElementKind,A as LikeC4Styles,B as isDeployedInstance,C as isNotOperator,D as whereOperatorAsPredicate,E as isTagEqual,G as Expression,H as ModelExpression,J as FqnRef,K as FqnExpr,O as isTagColorSpecified,Q as GlobalFqn,S as isKindEqual,T as isParticipantOperator,U as ModelFqnExpr,V as isDeploymentNode,W as ModelRelationExpr,X as EdgeId,Y as DeploymentFqn,Z as Fqn,_ as isExtendsElementView,_t as _type,a as isDynamicStep,at as StepEdgeKind,b as isViewRuleStyle,bt as preferSummary,c as isAutoLayoutDirection,ct as flattenMarkdownOrString,d as isViewRuleGlobalStyle,dt as isStepEdgeId,et as MarkdownOrString,f as isComputedView,ft as scalar_exports,g as isElementView,gt as _stage,h as isDynamicView,ht as _layout,i as getParallelStepsPrefix,it as RelationId,k as ensureSizes,l as isViewRuleAutoLayout,lt as isGlobalFqn,m as isDiagramView,mt as stepEdgeId,n as isViewRuleGroup,nt as NoneIcon,o as isDynamicStepsParallel,ot as ViewId,p as isDeploymentView,pt as splitGlobalFqn,q as RelationExpr,r as isViewRuleRank,rt as ProjectId,s as isDynamicStepsSeries,st as extractStep,t as RichText,tt as NodeId,u as isViewRuleGlobalPredicateRef,ut as isGroupElementKind,v as isScopedElementView,vt as isOnStage,w as isOrOperator,x as isAndOperator,xt as exact,y as isViewRulePredicate,yt as preferDescription}from"./_chunks/RichText.mjs";import{i as RectBox,r as BBox}from"./_chunks/vector.mjs";import{$ as nonNullable,A as ancestorsFqn,B as parentFqn,G as isAnyOf,H as sortNaturalByFqn,I as isAncestor,K as isNonEmptyArray,L as isDescendantOf,O as isIterable,Q as invariant,R as isSameHierarchy,U as sortParentsFirst,W as hasProp,et as nonexhaustive,h as memoizeProp,q as isString,z as nameFromFqn}from"./_chunks/to-text.mjs";import"./_chunks/libs/graphology-dag.mjs";import{a as import_multi_map,n as import_default_weak_map,o as import_queue,r as import_linked_list,t as import_default_map}from"./_chunks/libs/mnemonist.mjs";import"./_chunks/libs/natural-compare-lite.mjs";import"./_chunks/libs/extend.mjs";import"./_chunks/libs/@mantine/colors-generator.mjs";import{n as applyManualLayout,t as calcDriftsFromSnapshot}from"./_chunks/calcDriftsFromSnapshot.mjs";import"./styles/index.mjs";var DefaultMap=import_default_map.default,DefaultWeakMap=import_default_weak_map.default,LinkedList=import_linked_list.default,MultiMap=import_multi_map.default,Queue=import_queue.default;export{BBox,DefaultMap,DefaultWeakMap,DeploymentFqn,EdgeId,Expression,Fqn,FqnExpr,FqnRef,GlobalFqn,GroupElementKind,LikeC4Styles,LinkedList,MarkdownOrString,ModelExpression,ModelFqnExpr,ModelRelationExpr,MultiMap,NodeId,NoneIcon,ProjectId,Queue,RectBox,RelationExpr,RelationId,RichText,StepEdgeKind,ViewId,_layout,_stage,_type,ancestorsFqn,applyManualLayout,calcDriftsFromSnapshot,ensureSizes,exact,extractStep,flattenMarkdownOrString,getParallelStepsPrefix,hasProp,invariant,isAncestor,isAndOperator,isAnyOf,isAutoLayoutDirection,isComputedView,isDeployedInstance,isDeploymentNode,isDeploymentView,isDescendantOf,isDiagramView,isDiagramView as isLayoutedView,isDynamicStep,isDynamicStepsParallel,isDynamicStepsSeries,isDynamicView,isElementView,isExtendsElementView,isGlobalFqn,isGroupElementKind,isIterable,isKindEqual,isNonEmptyArray,isNotOperator,isOnStage,isOrOperator,isParticipantOperator,isSameHierarchy,isScopedElementView,isStepEdgeId,isString,isTagColorSpecified,isTagEqual,isViewRuleAutoLayout,isViewRuleGlobalPredicateRef,isViewRuleGlobalStyle,isViewRuleGroup,isViewRulePredicate,isViewRuleRank,isViewRuleStyle,memoizeProp,nameFromFqn,nonNullable,nonexhaustive,parentFqn,preferDescription,preferSummary,scalar_exports as scalar,sortNaturalByFqn,sortParentsFirst,splitGlobalFqn,stepEdgeId,whereOperatorAsPredicate};
|
package/dist/model/index.d.mts
CHANGED
|
@@ -1,57 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export {
|
|
6
|
-
export { D as DeploymentConnectionModel, f as deploymentConnection } from '../shared/core.tpvDGvdC.mjs';
|
|
7
|
-
export { differenceConnections, findAscendingConnections, findDeepestNestedConnection, findDescendantConnections, hasSameSource, hasSameSourceTarget, hasSameTarget, isAnyInOut, isIncoming, isNestedConnection, isOutgoing, mergeConnections, sortConnectionsByBoundaryHierarchy, sortDeepestFirst } from './connection/index.mjs';
|
|
8
|
-
import 'type-fest';
|
|
9
|
-
import '../shared/core.CAgYpDtM.mjs';
|
|
10
|
-
import '../shared/core.DC5IAaDT.mjs';
|
|
11
|
-
import '../shared/core.DB0Ue5Wx.mjs';
|
|
12
|
-
import '../types/fqnRef.mjs';
|
|
13
|
-
import '../shared/core.C_3y3eqV.mjs';
|
|
14
|
-
import '../shared/core.Dojz4bvg.mjs';
|
|
15
|
-
import '../types/expression-model.mjs';
|
|
16
|
-
import '../shared/core.BPGOjone.mjs';
|
|
17
|
-
import '../shared/core.CywrQs86.mjs';
|
|
18
|
-
import '../shared/core.osFs8tU7.mjs';
|
|
19
|
-
|
|
20
|
-
type AnyModel<A extends Any> = DeploymentNodeModel<A> | DeployedInstanceModel<A> | DeploymentRelationModel<A> | AnyRelationshipModel<A> | NestedElementOfDeployedInstanceModel<A> | ElementModel<A> | RelationshipModel<A> | LikeC4ViewModel<A> | NodeModel<A> | EdgeModel<A>;
|
|
21
|
-
declare function isDeploymentNodeModel<M extends Any>(model: AnyModel<M>): model is DeploymentNodeModel<M>;
|
|
22
|
-
declare function isDeployedInstanceModel<M extends Any>(model: AnyModel<M>): model is DeployedInstanceModel<M>;
|
|
23
|
-
declare function isDeploymentElementModel<M extends Any>(model: AnyModel<M>): model is DeploymentElementModel<M>;
|
|
24
|
-
declare function isNestedElementOfDeployedInstanceModel<M extends Any>(model: AnyModel<M>): model is NestedElementOfDeployedInstanceModel<M>;
|
|
25
|
-
declare function isDeploymentRelationModel<M extends Any>(x: AnyModel<M>): x is DeploymentRelationModel<M>;
|
|
26
|
-
declare function isRelationModel<M extends Any>(x: AnyModel<M>): x is RelationshipModel<M>;
|
|
27
|
-
|
|
28
|
-
declare function isElementModel<M extends Any>(element: AnyModel<M>): element is ElementModel<M>;
|
|
29
|
-
declare function isLikeC4ViewModel<M extends Any>(view: AnyModel<M>): view is LikeC4ViewModel<M>;
|
|
30
|
-
declare function isNodeModel<M extends Any>(node: AnyModel<M>): node is NodeModel<M>;
|
|
31
|
-
declare function isEdgeModel<M extends Any>(edge: AnyModel<M>): edge is EdgeModel<M>;
|
|
32
|
-
|
|
33
|
-
declare const VIEW_FOLDERS_SEPARATOR = "/";
|
|
34
|
-
/**
|
|
35
|
-
* Normalizes view path by removing spaces from segments, removing empty segments,
|
|
36
|
-
* and removing leading/trailing slashes
|
|
37
|
-
* @example
|
|
38
|
-
* normalizeViewPath('One / Tw o / Thre e') === 'One/Tw o/Thre e'
|
|
39
|
-
*/
|
|
40
|
-
declare const normalizeViewPath: (title: string) => string;
|
|
41
|
-
/**
|
|
42
|
-
* Returns view group path if it is used as a path
|
|
43
|
-
* Returns empty string if it is not a path
|
|
44
|
-
* @example
|
|
45
|
-
* getViewFolderPath('One / Tw o / Thre e') === 'One/Tw o'
|
|
46
|
-
* getViewFolderPath('One') === ''
|
|
47
|
-
*/
|
|
48
|
-
declare const getViewFolderPath: (title: string) => string | null;
|
|
49
|
-
/**
|
|
50
|
-
* Returns view title if it is used as a path
|
|
51
|
-
* @example
|
|
52
|
-
* getViewTitleFromPath('One / Tw o / Thre e') === 'Thre e'
|
|
53
|
-
* getViewTitleFromPath('One') === 'One'
|
|
54
|
-
*/
|
|
55
|
-
declare const extractViewTitleFromPath: (title: string) => string;
|
|
56
|
-
|
|
57
|
-
export { AnyRelationshipModel, DeployedInstanceModel, DeploymentElementModel, DeploymentNodeModel, DeploymentRelationModel, EdgeModel, ElementModel, LikeC4ViewModel, NodeModel, RelationshipModel, VIEW_FOLDERS_SEPARATOR, extractViewTitleFromPath, getViewFolderPath, isDeployedInstanceModel, isDeploymentElementModel, isDeploymentNodeModel, isDeploymentRelationModel, isEdgeModel, isElementModel, isLikeC4ViewModel, isRelationModel as isModelRelation, isNestedElementOfDeployedInstanceModel, isNodeModel, isRelationModel, isRelationModel as isRelationshipModel, normalizeViewPath };
|
|
1
|
+
import "../_chunks/guards.mjs";
|
|
2
|
+
import "../_chunks/theme.mjs";
|
|
3
|
+
import { C as ElementModel, S as NodeModel, T as RelationshipModel, _ as WithMetadata, a as DeploymentNodeModel, b as LikeC4ViewsFolder, d as DeploymentOrFqn, f as EdgeOrId, g as OutgoingFilter, h as NodeOrId, i as DeploymentElementModel, l as RelationshipsAccum, m as IncomingFilter, n as LikeC4Model, o as DeploymentRelationEndpoint, p as ElementOrFqn, r as DeployedInstanceModel, s as DeploymentRelationModel, t as AnyLikeC4Model, u as LikeC4DeploymentModel, v as WithTags, w as AnyRelationshipModel, x as EdgeModel, y as LikeC4ViewModel } from "../_chunks/LikeC4Model.mjs";
|
|
4
|
+
import { A as sortDeepestFirst, C as hasSameTarget, D as isOutgoing, E as isNestedConnection, M as DeploymentConnectionModel, N as Connection, O as mergeConnections, S as hasSameSourceTarget, T as isIncoming, _ as differenceConnections, a as isDeployedInstanceModel, b as findDescendantConnections, c as isDeploymentRelationModel, d as isLikeC4ViewModel, f as isNestedElementOfDeployedInstanceModel, g as find_d_exports, h as find_d_exports$1, i as normalizeViewPath, j as ConnectionModel, k as sortConnectionsByBoundaryHierarchy, l as isEdgeModel, m as isRelationModel, n as extractViewTitleFromPath, o as isDeploymentElementModel, p as isNodeModel, r as getViewFolderPath, s as isDeploymentNodeModel, t as VIEW_FOLDERS_SEPARATOR, u as isElementModel, v as findAscendingConnections, w as isAnyInOut, x as hasSameSource, y as findDeepestNestedConnection } from "../_chunks/index.mjs";
|
|
5
|
+
export { type AnyLikeC4Model, type AnyRelationshipModel, Connection, ConnectionModel, DeployedInstanceModel, DeploymentConnectionModel, type DeploymentElementModel, DeploymentNodeModel, type DeploymentOrFqn, type DeploymentRelationEndpoint, DeploymentRelationModel, EdgeModel, type EdgeOrId, ElementModel, type ElementOrFqn, type IncomingFilter, LikeC4DeploymentModel, LikeC4Model, LikeC4ViewModel, LikeC4ViewsFolder, NodeModel, type NodeOrId, type OutgoingFilter, RelationshipModel, RelationshipsAccum, VIEW_FOLDERS_SEPARATOR, type WithMetadata, type WithTags, find_d_exports as deploymentConnection, differenceConnections, extractViewTitleFromPath, findAscendingConnections, findDeepestNestedConnection, findDescendantConnections, getViewFolderPath, hasSameSource, hasSameSourceTarget, hasSameTarget, isAnyInOut, isDeployedInstanceModel, isDeploymentElementModel, isDeploymentNodeModel, isDeploymentRelationModel, isEdgeModel, isElementModel, isIncoming, isLikeC4ViewModel, isRelationModel as isModelRelation, isRelationModel, isRelationModel as isRelationshipModel, isNestedConnection, isNestedElementOfDeployedInstanceModel, isNodeModel, isOutgoing, mergeConnections, find_d_exports$1 as modelConnection, normalizeViewPath, sortConnectionsByBoundaryHierarchy, sortDeepestFirst };
|
package/dist/model/index.mjs
CHANGED
|
@@ -1,4 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { b as DeployedInstanceModel, D as DeploymentConnectionModel, a as DeploymentNodeModel, c as DeploymentRelationModel, R as RelationshipsAccum, d as deploymentConnection } from '../shared/core.BP_QHEXs.mjs';
|
|
3
|
-
export { C as Connection } from '../shared/core.BFd1lU9R.mjs';
|
|
4
|
-
export { C as ConnectionModel, d as differenceConnections, f as findAscendingConnections, a as findDeepestNestedConnection, b as findDescendantConnections, h as hasSameSource, c as hasSameSourceTarget, e as hasSameTarget, i as isAnyInOut, g as isIncoming, j as isNestedConnection, k as isOutgoing, m as mergeConnections, n as modelConnection, s as sortConnectionsByBoundaryHierarchy, l as sortDeepestFirst } from '../shared/core.78IWAHAE.mjs';
|
|
1
|
+
import"../_chunks/libs/defu.mjs";import"../_chunks/libs/graphology-dag.mjs";import"../_chunks/libs/natural-compare-lite.mjs";import"../_chunks/libs/extend.mjs";import"../_chunks/libs/@mantine/colors-generator.mjs";import{A as DeploymentConnectionModel,B as VIEW_FOLDERS_SEPARATOR,C as isAnyInOut,D as mergeConnections,E as isOutgoing,F as LikeC4ViewModel,G as DeploymentNodeModel,H as getViewFolderPath,I as NodeModel,J as ElementModel,K as DeploymentRelationModel,L as EdgeModel,M as Connection,N as LikeC4Model,O as sortConnectionsByBoundaryHierarchy,P as LikeC4ViewsFolder,R as RelationshipModel,S as hasSameTarget,T as isNestedConnection,U as normalizeViewPath,V as extractViewTitleFromPath,W as DeployedInstanceModel,_ as findAscendingConnections,a as isEdgeModel,b as hasSameSource,c as isNestedElementOfDeployedInstanceModel,g as differenceConnections,h as ConnectionModel,i as isDeploymentRelationModel,k as sortDeepestFirst,l as isNodeModel,m as find_exports,n as isDeploymentElementModel,o as isElementModel,p as find_exports$1,q as RelationshipsAccum,r as isDeploymentNodeModel,s as isLikeC4ViewModel,t as isDeployedInstanceModel,u as isRelationModel,v as findDeepestNestedConnection,w as isIncoming,x as hasSameSourceTarget,y as findDescendantConnections,z as LikeC4DeploymentModel}from"../_chunks/guards.mjs";export{Connection,ConnectionModel,DeployedInstanceModel,DeploymentConnectionModel,DeploymentNodeModel,DeploymentRelationModel,EdgeModel,ElementModel,LikeC4DeploymentModel,LikeC4Model,LikeC4ViewModel,LikeC4ViewsFolder,NodeModel,RelationshipModel,RelationshipsAccum,VIEW_FOLDERS_SEPARATOR,find_exports as deploymentConnection,differenceConnections,extractViewTitleFromPath,findAscendingConnections,findDeepestNestedConnection,findDescendantConnections,getViewFolderPath,hasSameSource,hasSameSourceTarget,hasSameTarget,isAnyInOut,isDeployedInstanceModel,isDeploymentElementModel,isDeploymentNodeModel,isDeploymentRelationModel,isEdgeModel,isElementModel,isIncoming,isLikeC4ViewModel,isRelationModel as isModelRelation,isRelationModel,isRelationModel as isRelationshipModel,isNestedConnection,isNestedElementOfDeployedInstanceModel,isNodeModel,isOutgoing,mergeConnections,find_exports$1 as modelConnection,normalizeViewPath,sortConnectionsByBoundaryHierarchy,sortDeepestFirst};
|
package/dist/styles/index.d.mts
CHANGED
|
@@ -1,117 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export { B as BorderStyle, z as BorderStyles, C as Color, U as CustomColor, Q as CustomColorDefinitions, h as ElementShape, D as ElementShapes, H as HexColor, L as LikeC4StylesConfig, a as LikeC4Theme, g as RelationshipArrowType, I as RelationshipArrowTypes, f as RelationshipLineType, e as ShapeSize, y as Size, x as Sizes, S as SpacingSize, d as TextSize, T as ThemeColor, J as ThemeColors, V as isCustomColor, M as isThemeColor } from '../shared/core.DC5IAaDT.mjs';
|
|
5
|
-
export { L as LikeC4Styles } from '../shared/core.CAgYpDtM.mjs';
|
|
6
|
-
import 'type-fest';
|
|
7
|
-
import '../shared/core.D00YbOhQ.mjs';
|
|
8
|
-
import '../shared/core.DB0Ue5Wx.mjs';
|
|
9
|
-
import '../types/fqnRef.mjs';
|
|
10
|
-
import '../types/expression-model.mjs';
|
|
11
|
-
import '../shared/core.BPGOjone.mjs';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Colors are taken from the styles presets of the LikeC4 (Radix Colors)
|
|
15
|
-
*/
|
|
16
|
-
declare const DefaultTagColors: string[];
|
|
17
|
-
declare function assignTagColors(tags: {
|
|
18
|
-
[kind: string]: Partial<TagSpecification>;
|
|
19
|
-
}): Record<Tag, TagSpecification>;
|
|
20
|
-
|
|
21
|
-
declare function computeColorValues(color: ColorLiteral): ThemeColorValues;
|
|
22
|
-
|
|
23
|
-
declare const styleDefaults: LikeC4StyleDefaults;
|
|
24
|
-
|
|
25
|
-
declare const defaultTheme: {
|
|
26
|
-
colors: {
|
|
27
|
-
amber: {
|
|
28
|
-
elements: ElementColorValues;
|
|
29
|
-
relationships: RelationshipColorValues;
|
|
30
|
-
};
|
|
31
|
-
blue: {
|
|
32
|
-
elements: ElementColorValues;
|
|
33
|
-
relationships: RelationshipColorValues;
|
|
34
|
-
};
|
|
35
|
-
gray: {
|
|
36
|
-
elements: ElementColorValues;
|
|
37
|
-
relationships: RelationshipColorValues;
|
|
38
|
-
};
|
|
39
|
-
slate: {
|
|
40
|
-
elements: ElementColorValues;
|
|
41
|
-
relationships: RelationshipColorValues;
|
|
42
|
-
};
|
|
43
|
-
green: {
|
|
44
|
-
elements: ElementColorValues;
|
|
45
|
-
relationships: RelationshipColorValues;
|
|
46
|
-
};
|
|
47
|
-
indigo: {
|
|
48
|
-
elements: ElementColorValues;
|
|
49
|
-
relationships: RelationshipColorValues;
|
|
50
|
-
};
|
|
51
|
-
muted: {
|
|
52
|
-
elements: ElementColorValues;
|
|
53
|
-
relationships: RelationshipColorValues;
|
|
54
|
-
};
|
|
55
|
-
primary: {
|
|
56
|
-
elements: ElementColorValues;
|
|
57
|
-
relationships: RelationshipColorValues;
|
|
58
|
-
};
|
|
59
|
-
red: {
|
|
60
|
-
elements: ElementColorValues;
|
|
61
|
-
relationships: RelationshipColorValues;
|
|
62
|
-
};
|
|
63
|
-
secondary: {
|
|
64
|
-
elements: ElementColorValues;
|
|
65
|
-
relationships: RelationshipColorValues;
|
|
66
|
-
};
|
|
67
|
-
sky: {
|
|
68
|
-
elements: ElementColorValues;
|
|
69
|
-
relationships: RelationshipColorValues;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
sizes: {
|
|
73
|
-
xs: {
|
|
74
|
-
width: number;
|
|
75
|
-
height: number;
|
|
76
|
-
};
|
|
77
|
-
sm: {
|
|
78
|
-
width: number;
|
|
79
|
-
height: number;
|
|
80
|
-
};
|
|
81
|
-
md: {
|
|
82
|
-
width: number;
|
|
83
|
-
height: number;
|
|
84
|
-
};
|
|
85
|
-
lg: {
|
|
86
|
-
width: number;
|
|
87
|
-
height: number;
|
|
88
|
-
};
|
|
89
|
-
xl: {
|
|
90
|
-
width: number;
|
|
91
|
-
height: number;
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
spacing: {
|
|
95
|
-
xs: number;
|
|
96
|
-
sm: number;
|
|
97
|
-
md: number;
|
|
98
|
-
lg: number;
|
|
99
|
-
xl: number;
|
|
100
|
-
};
|
|
101
|
-
/**
|
|
102
|
-
* Text sizes for titles
|
|
103
|
-
* https://typescale.com/
|
|
104
|
-
*
|
|
105
|
-
* Scale: 1.2
|
|
106
|
-
* Base: 16px
|
|
107
|
-
*/
|
|
108
|
-
textSizes: {
|
|
109
|
-
xs: number;
|
|
110
|
-
sm: number;
|
|
111
|
-
md: number;
|
|
112
|
-
lg: number;
|
|
113
|
-
xl: number;
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
export { ColorLiteral, DefaultTagColors, ElementColorValues, LikeC4StyleDefaults, RelationshipColorValues, ThemeColorValues, assignTagColors, computeColorValues, defaultTheme, styleDefaults };
|
|
1
|
+
import { Ar as ThemeColors, Cr as isCustomColor, Dr as ElementShapes, Er as DefaultTagColors, Or as IconPositions, Sr as ThemeColorValues, Tr as BorderStyles, _r as ShapeSize, ar as ElementColorValues, br as TextSize, cr as IconPosition, dr as LikeC4StylesConfig, er as BorderStyle, fr as LikeC4Theme, gr as RelationshipLineType, hr as RelationshipColorValues, ir as CustomColorDefinitions, kr as Sizes, lr as IconSize, mr as RelationshipArrowTypes, nr as ColorLiteral, or as ElementShape, pr as RelationshipArrowType, rr as CustomColor, sr as HexColor, tr as Color, ur as LikeC4StyleDefaults, vr as Size, wr as isThemeColor, xr as ThemeColor, yr as SpacingSize } from "../_chunks/guards.mjs";
|
|
2
|
+
import { a as assignTagColors, i as LikeC4Styles, n as styleDefaults, r as computeColorValues, t as defaultTheme } from "../_chunks/theme.mjs";
|
|
3
|
+
export { BorderStyle, BorderStyles, Color, ColorLiteral, CustomColor, CustomColorDefinitions, DefaultTagColors, ElementColorValues, ElementShape, ElementShapes, HexColor, IconPosition, IconPositions, IconSize, LikeC4StyleDefaults, LikeC4Styles, LikeC4StylesConfig, LikeC4Theme, RelationshipArrowType, RelationshipArrowTypes, RelationshipColorValues, RelationshipLineType, ShapeSize, Size, Sizes, SpacingSize, TextSize, ThemeColor, ThemeColorValues, ThemeColors, assignTagColors, computeColorValues, defaultTheme, isCustomColor, isThemeColor, styleDefaults };
|