@likec4/core 1.20.1 → 1.20.3
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/builder/index.cjs +6 -6
- package/dist/builder/index.d.cts +3 -3
- package/dist/builder/index.d.mts +3 -3
- package/dist/builder/index.d.ts +3 -3
- package/dist/builder/index.mjs +6 -6
- package/dist/compute-view/index.cjs +5 -5
- package/dist/compute-view/index.d.cts +4 -4
- package/dist/compute-view/index.d.mts +4 -4
- package/dist/compute-view/index.d.ts +4 -4
- package/dist/compute-view/index.mjs +6 -6
- package/dist/index.cjs +71 -573
- package/dist/index.d.cts +9 -133
- package/dist/index.d.mts +9 -133
- package/dist/index.d.ts +9 -133
- package/dist/index.mjs +8 -512
- package/dist/model/index.cjs +1 -1
- package/dist/model/index.d.cts +5 -5
- package/dist/model/index.d.mts +5 -5
- package/dist/model/index.d.ts +5 -5
- package/dist/model/index.mjs +1 -1
- package/dist/shared/{core.DunIMHRf.mjs → core.0PxLtLpP.mjs} +1 -1
- package/dist/shared/{core.BvdNMbcA.d.cts → core.88YY6vtF.d.mts} +2 -2
- package/dist/shared/{core.CqCTxzMY.mjs → core.BG1hfxpq.mjs} +29 -620
- package/dist/shared/{core.ByNgh-mC.d.cts → core.BIZD3l1g.d.cts} +1 -1
- package/dist/shared/{core.D74xkKkG.d.ts → core.BJfn72tj.d.cts} +5 -0
- package/dist/shared/{core.D74xkKkG.d.cts → core.BJfn72tj.d.mts} +5 -0
- package/dist/shared/{core.D74xkKkG.d.mts → core.BJfn72tj.d.ts} +5 -0
- package/dist/shared/{core.M-JWF7SS.mjs → core.Bezy7K65.mjs} +1 -1
- package/dist/shared/{core.D_Gc58Gt.d.ts → core.Bs71hdR4.d.ts} +2 -1
- package/dist/shared/{core.D6-fWbM3.d.ts → core.BtISRjMA.d.ts} +1 -1
- package/dist/shared/{core.B72vUaNB.d.cts → core.C0ygs98j.d.cts} +2 -1
- package/dist/shared/core.CCyhaU-4.mjs +14819 -0
- package/dist/shared/{core.DsoCu540.cjs → core.CKYxnFEl.cjs} +1 -1
- package/dist/shared/{core.Damrzla-.d.ts → core.CNUzoKM7.d.ts} +2 -2
- package/dist/shared/{core.sLaWHBjR.d.mts → core.CajOK_t3.d.mts} +1 -1
- package/dist/shared/{core.BdbFkE_p.d.cts → core.Cmfo_N4F.d.mts} +3 -3
- package/dist/shared/{core.jy6z2iRn.d.mts → core.CwZmAghJ.d.cts} +3 -3
- package/dist/shared/{core.ZWiGANIJ.d.ts → core.D4wZW7zR.d.ts} +3 -3
- package/dist/shared/{core.BGus30EM.cjs → core.DRfrKNT6.cjs} +48 -643
- package/dist/shared/{core.gv1bMwCC.cjs → core.Db_OTRdC.cjs} +1 -1
- package/dist/shared/{core.Dfzrh1VA.d.mts → core.DjMYkPMQ.d.mts} +2 -1
- package/dist/shared/{core.m3rCQAv6.mjs → core.El-gigOM.mjs} +1 -1
- package/dist/shared/core.FACQZmma.cjs +14874 -0
- package/dist/shared/{core.BRuJ3Wzf.d.mts → core.Lh2RFJf1.d.cts} +2 -2
- package/dist/shared/{core.B2QYWlYe.cjs → core.uxHtIZaH.cjs} +1 -1
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.d.cts +4 -4
- package/dist/types/index.d.mts +4 -4
- package/dist/types/index.d.ts +4 -4
- package/dist/types/index.mjs +1 -1
- package/dist/utils/index.cjs +6 -2
- package/dist/utils/index.d.cts +129 -145
- package/dist/utils/index.d.mts +129 -145
- package/dist/utils/index.d.ts +129 -145
- package/dist/utils/index.mjs +3 -3
- package/package.json +7 -6
- package/src/compute-view/deployment-view/clean-connections.ts +1 -1
- package/src/compute-view/deployment-view/stages/stage-final.ts +1 -1
- package/src/compute-view/element-view/__test__/fixture.ts +2 -0
- package/src/compute-view/element-view/compute.ts +1 -1
- package/src/compute-view/element-view/memory/memory.ts +3 -3
- package/src/compute-view/memory/ops.ts +1 -1
- package/src/compute-view/relationships-view/layout.ts +1 -1
- package/src/compute-view/relationships-view/utils.ts +1 -1
- package/src/compute-view/utils/applyCustomElementProperties.ts +9 -6
- package/src/compute-view/utils/applyViewRuleStyles.ts +7 -4
- package/src/index.ts +0 -8
- package/src/model/DeploymentModel.ts +1 -1
- package/src/model/LikeC4Model.ts +3 -3
- package/src/types/element.ts +7 -2
- package/src/types/expression.ts +1 -0
- package/src/utils/index.ts +2 -0
- package/src/utils/set.ts +5 -2
- package/dist/shared/core.BxvDITEI.mjs +0 -859
- package/dist/shared/core.C9DCnJh8.cjs +0 -908
- package/src/builder/Builder-style1.test-d.ts +0 -190
- package/src/builder/Builder-style2.test-d.ts +0 -175
- package/src/compute-view/utils/uniqueTags.test.ts +0 -42
- package/src/model/LikeC4Model.test-d.ts +0 -152
package/dist/index.cjs
CHANGED
|
@@ -1,515 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const compute = require('./shared/core.gv1bMwCC.cjs');
|
|
3
|
+
const chunkRAAYCPUM = require('./shared/core.CKYxnFEl.cjs');
|
|
4
|
+
const view = require('./shared/core.uxHtIZaH.cjs');
|
|
5
|
+
const model_index = require('./shared/core.DRfrKNT6.cjs');
|
|
6
|
+
const compute = require('./shared/core.Db_OTRdC.cjs');
|
|
8
7
|
const types_index = require('./types/index.cjs');
|
|
8
|
+
const object_hash = require('./shared/core.FACQZmma.cjs');
|
|
9
9
|
const utils_index = require('./utils/index.cjs');
|
|
10
10
|
|
|
11
|
-
/**
|
|
12
|
-
* Mnemonist Linked List
|
|
13
|
-
* ======================
|
|
14
|
-
*
|
|
15
|
-
* Singly linked list implementation. Uses raw JavaScript objects as nodes
|
|
16
|
-
* as benchmarks proved it was the fastest thing to do.
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
var linkedList$1;
|
|
20
|
-
var hasRequiredLinkedList;
|
|
21
|
-
|
|
22
|
-
function requireLinkedList () {
|
|
23
|
-
if (hasRequiredLinkedList) return linkedList$1;
|
|
24
|
-
hasRequiredLinkedList = 1;
|
|
25
|
-
var Iterator = model_index.requireIterator(),
|
|
26
|
-
forEach = model_index.requireForeach();
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Linked List.
|
|
30
|
-
*
|
|
31
|
-
* @constructor
|
|
32
|
-
*/
|
|
33
|
-
function LinkedList() {
|
|
34
|
-
this.clear();
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Method used to clear the list.
|
|
39
|
-
*
|
|
40
|
-
* @return {undefined}
|
|
41
|
-
*/
|
|
42
|
-
LinkedList.prototype.clear = function() {
|
|
43
|
-
|
|
44
|
-
// Properties
|
|
45
|
-
this.head = null;
|
|
46
|
-
this.tail = null;
|
|
47
|
-
this.size = 0;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Method used to get the first item of the list.
|
|
52
|
-
*
|
|
53
|
-
* @return {any}
|
|
54
|
-
*/
|
|
55
|
-
LinkedList.prototype.first = function() {
|
|
56
|
-
return this.head ? this.head.item : undefined;
|
|
57
|
-
};
|
|
58
|
-
LinkedList.prototype.peek = LinkedList.prototype.first;
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Method used to get the last item of the list.
|
|
62
|
-
*
|
|
63
|
-
* @return {any}
|
|
64
|
-
*/
|
|
65
|
-
LinkedList.prototype.last = function() {
|
|
66
|
-
return this.tail ? this.tail.item : undefined;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Method used to add an item at the end of the list.
|
|
71
|
-
*
|
|
72
|
-
* @param {any} item - The item to add.
|
|
73
|
-
* @return {number}
|
|
74
|
-
*/
|
|
75
|
-
LinkedList.prototype.push = function(item) {
|
|
76
|
-
var node = {item: item, next: null};
|
|
77
|
-
|
|
78
|
-
if (!this.head) {
|
|
79
|
-
this.head = node;
|
|
80
|
-
this.tail = node;
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
83
|
-
this.tail.next = node;
|
|
84
|
-
this.tail = node;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
this.size++;
|
|
88
|
-
|
|
89
|
-
return this.size;
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Method used to add an item at the beginning of the list.
|
|
94
|
-
*
|
|
95
|
-
* @param {any} item - The item to add.
|
|
96
|
-
* @return {number}
|
|
97
|
-
*/
|
|
98
|
-
LinkedList.prototype.unshift = function(item) {
|
|
99
|
-
var node = {item: item, next: null};
|
|
100
|
-
|
|
101
|
-
if (!this.head) {
|
|
102
|
-
this.head = node;
|
|
103
|
-
this.tail = node;
|
|
104
|
-
}
|
|
105
|
-
else {
|
|
106
|
-
if (!this.head.next)
|
|
107
|
-
this.tail = this.head;
|
|
108
|
-
node.next = this.head;
|
|
109
|
-
this.head = node;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
this.size++;
|
|
113
|
-
|
|
114
|
-
return this.size;
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Method used to retrieve & remove the first item of the list.
|
|
119
|
-
*
|
|
120
|
-
* @return {any}
|
|
121
|
-
*/
|
|
122
|
-
LinkedList.prototype.shift = function() {
|
|
123
|
-
if (!this.size)
|
|
124
|
-
return undefined;
|
|
125
|
-
|
|
126
|
-
var node = this.head;
|
|
127
|
-
|
|
128
|
-
this.head = node.next;
|
|
129
|
-
this.size--;
|
|
130
|
-
|
|
131
|
-
return node.item;
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* Method used to iterate over the list.
|
|
136
|
-
*
|
|
137
|
-
* @param {function} callback - Function to call for each item.
|
|
138
|
-
* @param {object} scope - Optional scope.
|
|
139
|
-
* @return {undefined}
|
|
140
|
-
*/
|
|
141
|
-
LinkedList.prototype.forEach = function(callback, scope) {
|
|
142
|
-
if (!this.size)
|
|
143
|
-
return;
|
|
144
|
-
|
|
145
|
-
scope = arguments.length > 1 ? scope : this;
|
|
146
|
-
|
|
147
|
-
var n = this.head,
|
|
148
|
-
i = 0;
|
|
149
|
-
|
|
150
|
-
while (n) {
|
|
151
|
-
callback.call(scope, n.item, i, this);
|
|
152
|
-
n = n.next;
|
|
153
|
-
i++;
|
|
154
|
-
}
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* Method used to convert the list into an array.
|
|
159
|
-
*
|
|
160
|
-
* @return {array}
|
|
161
|
-
*/
|
|
162
|
-
LinkedList.prototype.toArray = function() {
|
|
163
|
-
if (!this.size)
|
|
164
|
-
return [];
|
|
165
|
-
|
|
166
|
-
var array = new Array(this.size);
|
|
167
|
-
|
|
168
|
-
for (var i = 0, l = this.size, n = this.head; i < l; i++) {
|
|
169
|
-
array[i] = n.item;
|
|
170
|
-
n = n.next;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
return array;
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* Method used to create an iterator over a list's values.
|
|
178
|
-
*
|
|
179
|
-
* @return {Iterator}
|
|
180
|
-
*/
|
|
181
|
-
LinkedList.prototype.values = function() {
|
|
182
|
-
var n = this.head;
|
|
183
|
-
|
|
184
|
-
return new Iterator(function() {
|
|
185
|
-
if (!n)
|
|
186
|
-
return {
|
|
187
|
-
done: true
|
|
188
|
-
};
|
|
189
|
-
|
|
190
|
-
var value = n.item;
|
|
191
|
-
n = n.next;
|
|
192
|
-
|
|
193
|
-
return {
|
|
194
|
-
value: value,
|
|
195
|
-
done: false
|
|
196
|
-
};
|
|
197
|
-
});
|
|
198
|
-
};
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* Method used to create an iterator over a list's entries.
|
|
202
|
-
*
|
|
203
|
-
* @return {Iterator}
|
|
204
|
-
*/
|
|
205
|
-
LinkedList.prototype.entries = function() {
|
|
206
|
-
var n = this.head,
|
|
207
|
-
i = 0;
|
|
208
|
-
|
|
209
|
-
return new Iterator(function() {
|
|
210
|
-
if (!n)
|
|
211
|
-
return {
|
|
212
|
-
done: true
|
|
213
|
-
};
|
|
214
|
-
|
|
215
|
-
var value = n.item;
|
|
216
|
-
n = n.next;
|
|
217
|
-
i++;
|
|
218
|
-
|
|
219
|
-
return {
|
|
220
|
-
value: [i - 1, value],
|
|
221
|
-
done: false
|
|
222
|
-
};
|
|
223
|
-
});
|
|
224
|
-
};
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* Attaching the #.values method to Symbol.iterator if possible.
|
|
228
|
-
*/
|
|
229
|
-
if (typeof Symbol !== 'undefined')
|
|
230
|
-
LinkedList.prototype[Symbol.iterator] = LinkedList.prototype.values;
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* Convenience known methods.
|
|
234
|
-
*/
|
|
235
|
-
LinkedList.prototype.toString = function() {
|
|
236
|
-
return this.toArray().join(',');
|
|
237
|
-
};
|
|
238
|
-
|
|
239
|
-
LinkedList.prototype.toJSON = function() {
|
|
240
|
-
return this.toArray();
|
|
241
|
-
};
|
|
242
|
-
|
|
243
|
-
LinkedList.prototype.inspect = function() {
|
|
244
|
-
var array = this.toArray();
|
|
245
|
-
|
|
246
|
-
// Trick so that node displays the name of the constructor
|
|
247
|
-
Object.defineProperty(array, 'constructor', {
|
|
248
|
-
value: LinkedList,
|
|
249
|
-
enumerable: false
|
|
250
|
-
});
|
|
251
|
-
|
|
252
|
-
return array;
|
|
253
|
-
};
|
|
254
|
-
|
|
255
|
-
if (typeof Symbol !== 'undefined')
|
|
256
|
-
LinkedList.prototype[Symbol.for('nodejs.util.inspect.custom')] = LinkedList.prototype.inspect;
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* Static @.from function taking an arbitrary iterable & converting it into
|
|
260
|
-
* a list.
|
|
261
|
-
*
|
|
262
|
-
* @param {Iterable} iterable - Target iterable.
|
|
263
|
-
* @return {LinkedList}
|
|
264
|
-
*/
|
|
265
|
-
LinkedList.from = function(iterable) {
|
|
266
|
-
var list = new LinkedList();
|
|
267
|
-
|
|
268
|
-
forEach(iterable, function(value) {
|
|
269
|
-
list.push(value);
|
|
270
|
-
});
|
|
271
|
-
|
|
272
|
-
return list;
|
|
273
|
-
};
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* Exporting.
|
|
277
|
-
*/
|
|
278
|
-
linkedList$1 = LinkedList;
|
|
279
|
-
return linkedList$1;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
var linkedListExports = requireLinkedList();
|
|
283
|
-
const linkedList = /*@__PURE__*/object_hash.getDefaultExportFromCjs(linkedListExports);
|
|
284
|
-
|
|
285
|
-
/**
|
|
286
|
-
* Mnemonist Queue
|
|
287
|
-
* ================
|
|
288
|
-
*
|
|
289
|
-
* Queue implementation based on the ideas of Queue.js that seems to beat
|
|
290
|
-
* a LinkedList one in performance.
|
|
291
|
-
*/
|
|
292
|
-
|
|
293
|
-
var queue$1;
|
|
294
|
-
var hasRequiredQueue;
|
|
295
|
-
|
|
296
|
-
function requireQueue () {
|
|
297
|
-
if (hasRequiredQueue) return queue$1;
|
|
298
|
-
hasRequiredQueue = 1;
|
|
299
|
-
var Iterator = model_index.requireIterator(),
|
|
300
|
-
forEach = model_index.requireForeach();
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* Queue
|
|
304
|
-
*
|
|
305
|
-
* @constructor
|
|
306
|
-
*/
|
|
307
|
-
function Queue() {
|
|
308
|
-
this.clear();
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* Method used to clear the queue.
|
|
313
|
-
*
|
|
314
|
-
* @return {undefined}
|
|
315
|
-
*/
|
|
316
|
-
Queue.prototype.clear = function() {
|
|
317
|
-
|
|
318
|
-
// Properties
|
|
319
|
-
this.items = [];
|
|
320
|
-
this.offset = 0;
|
|
321
|
-
this.size = 0;
|
|
322
|
-
};
|
|
323
|
-
|
|
324
|
-
/**
|
|
325
|
-
* Method used to add an item to the queue.
|
|
326
|
-
*
|
|
327
|
-
* @param {any} item - Item to enqueue.
|
|
328
|
-
* @return {number}
|
|
329
|
-
*/
|
|
330
|
-
Queue.prototype.enqueue = function(item) {
|
|
331
|
-
|
|
332
|
-
this.items.push(item);
|
|
333
|
-
return ++this.size;
|
|
334
|
-
};
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* Method used to retrieve & remove the first item of the queue.
|
|
338
|
-
*
|
|
339
|
-
* @return {any}
|
|
340
|
-
*/
|
|
341
|
-
Queue.prototype.dequeue = function() {
|
|
342
|
-
if (!this.size)
|
|
343
|
-
return;
|
|
344
|
-
|
|
345
|
-
var item = this.items[this.offset];
|
|
346
|
-
|
|
347
|
-
if (++this.offset * 2 >= this.items.length) {
|
|
348
|
-
this.items = this.items.slice(this.offset);
|
|
349
|
-
this.offset = 0;
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
this.size--;
|
|
353
|
-
|
|
354
|
-
return item;
|
|
355
|
-
};
|
|
356
|
-
|
|
357
|
-
/**
|
|
358
|
-
* Method used to retrieve the first item of the queue.
|
|
359
|
-
*
|
|
360
|
-
* @return {any}
|
|
361
|
-
*/
|
|
362
|
-
Queue.prototype.peek = function() {
|
|
363
|
-
if (!this.size)
|
|
364
|
-
return;
|
|
365
|
-
|
|
366
|
-
return this.items[this.offset];
|
|
367
|
-
};
|
|
368
|
-
|
|
369
|
-
/**
|
|
370
|
-
* Method used to iterate over the queue.
|
|
371
|
-
*
|
|
372
|
-
* @param {function} callback - Function to call for each item.
|
|
373
|
-
* @param {object} scope - Optional scope.
|
|
374
|
-
* @return {undefined}
|
|
375
|
-
*/
|
|
376
|
-
Queue.prototype.forEach = function(callback, scope) {
|
|
377
|
-
scope = arguments.length > 1 ? scope : this;
|
|
378
|
-
|
|
379
|
-
for (var i = this.offset, j = 0, l = this.items.length; i < l; i++, j++)
|
|
380
|
-
callback.call(scope, this.items[i], j, this);
|
|
381
|
-
};
|
|
382
|
-
|
|
383
|
-
/*
|
|
384
|
-
* Method used to convert the queue to a JavaScript array.
|
|
385
|
-
*
|
|
386
|
-
* @return {array}
|
|
387
|
-
*/
|
|
388
|
-
Queue.prototype.toArray = function() {
|
|
389
|
-
return this.items.slice(this.offset);
|
|
390
|
-
};
|
|
391
|
-
|
|
392
|
-
/**
|
|
393
|
-
* Method used to create an iterator over a queue's values.
|
|
394
|
-
*
|
|
395
|
-
* @return {Iterator}
|
|
396
|
-
*/
|
|
397
|
-
Queue.prototype.values = function() {
|
|
398
|
-
var items = this.items,
|
|
399
|
-
i = this.offset;
|
|
400
|
-
|
|
401
|
-
return new Iterator(function() {
|
|
402
|
-
if (i >= items.length)
|
|
403
|
-
return {
|
|
404
|
-
done: true
|
|
405
|
-
};
|
|
406
|
-
|
|
407
|
-
var value = items[i];
|
|
408
|
-
i++;
|
|
409
|
-
|
|
410
|
-
return {
|
|
411
|
-
value: value,
|
|
412
|
-
done: false
|
|
413
|
-
};
|
|
414
|
-
});
|
|
415
|
-
};
|
|
416
|
-
|
|
417
|
-
/**
|
|
418
|
-
* Method used to create an iterator over a queue's entries.
|
|
419
|
-
*
|
|
420
|
-
* @return {Iterator}
|
|
421
|
-
*/
|
|
422
|
-
Queue.prototype.entries = function() {
|
|
423
|
-
var items = this.items,
|
|
424
|
-
i = this.offset,
|
|
425
|
-
j = 0;
|
|
426
|
-
|
|
427
|
-
return new Iterator(function() {
|
|
428
|
-
if (i >= items.length)
|
|
429
|
-
return {
|
|
430
|
-
done: true
|
|
431
|
-
};
|
|
432
|
-
|
|
433
|
-
var value = items[i];
|
|
434
|
-
i++;
|
|
435
|
-
|
|
436
|
-
return {
|
|
437
|
-
value: [j++, value],
|
|
438
|
-
done: false
|
|
439
|
-
};
|
|
440
|
-
});
|
|
441
|
-
};
|
|
442
|
-
|
|
443
|
-
/**
|
|
444
|
-
* Attaching the #.values method to Symbol.iterator if possible.
|
|
445
|
-
*/
|
|
446
|
-
if (typeof Symbol !== 'undefined')
|
|
447
|
-
Queue.prototype[Symbol.iterator] = Queue.prototype.values;
|
|
448
|
-
|
|
449
|
-
/**
|
|
450
|
-
* Convenience known methods.
|
|
451
|
-
*/
|
|
452
|
-
Queue.prototype.toString = function() {
|
|
453
|
-
return this.toArray().join(',');
|
|
454
|
-
};
|
|
455
|
-
|
|
456
|
-
Queue.prototype.toJSON = function() {
|
|
457
|
-
return this.toArray();
|
|
458
|
-
};
|
|
459
|
-
|
|
460
|
-
Queue.prototype.inspect = function() {
|
|
461
|
-
var array = this.toArray();
|
|
462
|
-
|
|
463
|
-
// Trick so that node displays the name of the constructor
|
|
464
|
-
Object.defineProperty(array, 'constructor', {
|
|
465
|
-
value: Queue,
|
|
466
|
-
enumerable: false
|
|
467
|
-
});
|
|
468
|
-
|
|
469
|
-
return array;
|
|
470
|
-
};
|
|
471
|
-
|
|
472
|
-
if (typeof Symbol !== 'undefined')
|
|
473
|
-
Queue.prototype[Symbol.for('nodejs.util.inspect.custom')] = Queue.prototype.inspect;
|
|
474
|
-
|
|
475
|
-
/**
|
|
476
|
-
* Static @.from function taking an arbitrary iterable & converting it into
|
|
477
|
-
* a queue.
|
|
478
|
-
*
|
|
479
|
-
* @param {Iterable} iterable - Target iterable.
|
|
480
|
-
* @return {Queue}
|
|
481
|
-
*/
|
|
482
|
-
Queue.from = function(iterable) {
|
|
483
|
-
var queue = new Queue();
|
|
484
|
-
|
|
485
|
-
forEach(iterable, function(value) {
|
|
486
|
-
queue.enqueue(value);
|
|
487
|
-
});
|
|
488
|
-
|
|
489
|
-
return queue;
|
|
490
|
-
};
|
|
491
|
-
|
|
492
|
-
/**
|
|
493
|
-
* Static @.of function taking an arbitrary number of arguments & converting it
|
|
494
|
-
* into a queue.
|
|
495
|
-
*
|
|
496
|
-
* @param {...any} args
|
|
497
|
-
* @return {Queue}
|
|
498
|
-
*/
|
|
499
|
-
Queue.of = function() {
|
|
500
|
-
return Queue.from(arguments);
|
|
501
|
-
};
|
|
502
|
-
|
|
503
|
-
/**
|
|
504
|
-
* Exporting.
|
|
505
|
-
*/
|
|
506
|
-
queue$1 = Queue;
|
|
507
|
-
return queue$1;
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
var queueExports = requireQueue();
|
|
511
|
-
const queue = /*@__PURE__*/object_hash.getDefaultExportFromCjs(queueExports);
|
|
512
|
-
|
|
513
11
|
const { min: min$4, max: max$4 } = Math;
|
|
514
12
|
|
|
515
13
|
const limit = (x, low = 0, high = 1) => {
|
|
@@ -2119,7 +1617,7 @@ function XYZ_to_OKLab(XYZ) {
|
|
|
2119
1617
|
];
|
|
2120
1618
|
const LMStoOKLab = [
|
|
2121
1619
|
[0.210454268309314, 0.7936177747023054, -0.0040720430116193],
|
|
2122
|
-
[1.9779985324311684, -2.
|
|
1620
|
+
[1.9779985324311684, -2.42859224204858, 0.450593709617411],
|
|
2123
1621
|
[0.0259040424655478, 0.7827717124575296, -0.8086757549230774]
|
|
2124
1622
|
];
|
|
2125
1623
|
|
|
@@ -2856,7 +2354,7 @@ function cubehelix (
|
|
|
2856
2354
|
const sin_a = sin$1(a);
|
|
2857
2355
|
const r = l + amp * (-0.14861 * cos_a + 1.78277 * sin_a);
|
|
2858
2356
|
const g = l + amp * (-0.29227 * cos_a - 0.90649 * sin_a);
|
|
2859
|
-
const b = l + amp * (
|
|
2357
|
+
const b = l + amp * (1.97294 * cos_a);
|
|
2860
2358
|
return chroma(clip_rgb([r * 255, g * 255, b * 255, 1]));
|
|
2861
2359
|
};
|
|
2862
2360
|
f.start = function (s) {
|
|
@@ -4174,62 +3672,18 @@ function computeColorValues(color) {
|
|
|
4174
3672
|
}
|
|
4175
3673
|
}
|
|
4176
3674
|
|
|
4177
|
-
exports.DefaultMap = model_index.DefaultMap;
|
|
4178
|
-
exports.LikeC4DeploymentModel = model_index.LikeC4DeploymentModel;
|
|
4179
|
-
exports.LikeC4Model = model_index.LikeC4Model;
|
|
4180
|
-
exports.LikeC4ViewModel = model_index.LikeC4ViewModel;
|
|
4181
|
-
exports.Stack = model_index.Stack;
|
|
4182
|
-
exports.computeView = model_index.computeView;
|
|
4183
|
-
exports.computeViews = model_index.computeViews;
|
|
4184
|
-
exports.unsafeComputeView = model_index.unsafeComputeView;
|
|
4185
|
-
exports.ancestorsFqn = object_hash.ancestorsFqn;
|
|
4186
|
-
exports.commonAncestor = object_hash.commonAncestor;
|
|
4187
|
-
exports.commonHead = object_hash.commonHead;
|
|
4188
|
-
exports.compareByFqnHierarchically = object_hash.compareByFqnHierarchically;
|
|
4189
|
-
exports.compareFqnHierarchically = object_hash.compareFqnHierarchically;
|
|
4190
|
-
exports.compareNatural = object_hash.compareNatural;
|
|
4191
|
-
exports.difference = object_hash.difference;
|
|
4192
|
-
exports.equalsSet = object_hash.equals;
|
|
4193
|
-
exports.getOrCreate = object_hash.getOrCreate;
|
|
4194
|
-
exports.hasAtLeast = object_hash.i;
|
|
4195
|
-
exports.hierarchyDistance = object_hash.hierarchyDistance;
|
|
4196
|
-
exports.hierarchyLevel = object_hash.hierarchyLevel;
|
|
4197
|
-
exports.ifilter = object_hash.ifilter;
|
|
4198
|
-
exports.ifind = object_hash.ifind;
|
|
4199
|
-
exports.iflat = object_hash.iflat;
|
|
4200
|
-
exports.imap = object_hash.imap;
|
|
4201
|
-
exports.intersection = object_hash.intersection;
|
|
4202
|
-
exports.isAncestor = object_hash.isAncestor;
|
|
4203
|
-
exports.isDescendantOf = object_hash.isDescendantOf;
|
|
4204
|
-
exports.isIterable = object_hash.isIterable;
|
|
4205
|
-
exports.isNonEmptyArray = object_hash.isNonEmptyArray;
|
|
4206
|
-
exports.isSameHierarchy = object_hash.isSameHierarchy;
|
|
4207
|
-
exports.isString = object_hash.isString;
|
|
4208
|
-
exports.isome = object_hash.isome;
|
|
4209
|
-
exports.iunique = object_hash.iunique;
|
|
4210
|
-
exports.nameFromFqn = object_hash.nameFromFqn;
|
|
4211
|
-
exports.objectHash = object_hash.objectHash;
|
|
4212
|
-
exports.parentFqn = object_hash.parentFqn;
|
|
4213
|
-
exports.sortByFqnHierarchically = object_hash.sortByFqnHierarchically;
|
|
4214
|
-
exports.sortNaturalByFqn = object_hash.sortNaturalByFqn;
|
|
4215
|
-
exports.sortParentsFirst = object_hash.sortParentsFirst;
|
|
4216
|
-
exports.stringHash = object_hash.stringHash;
|
|
4217
|
-
exports.symmetricDifference = object_hash.symmetricDifference;
|
|
4218
|
-
exports.toArray = object_hash.toArray;
|
|
4219
|
-
exports.toSet = object_hash.toSet;
|
|
4220
|
-
exports.union = object_hash.union;
|
|
4221
3675
|
exports.invariant = chunkRAAYCPUM.invariant;
|
|
4222
3676
|
exports.nonNullable = chunkRAAYCPUM.nonNullable;
|
|
4223
3677
|
exports.nonexhaustive = chunkRAAYCPUM.nonexhaustive;
|
|
4224
3678
|
exports.AsFqn = view.AsFqn;
|
|
4225
3679
|
exports.BorderStyles = view.BorderStyles;
|
|
4226
3680
|
Object.defineProperty(exports, "ComputedNode", {
|
|
4227
|
-
|
|
4228
|
-
|
|
3681
|
+
enumerable: true,
|
|
3682
|
+
get: function () { return view.ComputedNode; }
|
|
4229
3683
|
});
|
|
4230
3684
|
Object.defineProperty(exports, "ComputedView", {
|
|
4231
|
-
|
|
4232
|
-
|
|
3685
|
+
enumerable: true,
|
|
3686
|
+
get: function () { return view.ComputedView; }
|
|
4233
3687
|
});
|
|
4234
3688
|
exports.DefaultArrowType = view.DefaultArrowType;
|
|
4235
3689
|
exports.DefaultElementShape = view.DefaultElementShape;
|
|
@@ -4237,34 +3691,34 @@ exports.DefaultLineStyle = view.DefaultLineStyle;
|
|
|
4237
3691
|
exports.DefaultRelationshipColor = view.DefaultRelationshipColor;
|
|
4238
3692
|
exports.DefaultThemeColor = view.DefaultThemeColor;
|
|
4239
3693
|
Object.defineProperty(exports, "DeploymentElement", {
|
|
4240
|
-
|
|
4241
|
-
|
|
3694
|
+
enumerable: true,
|
|
3695
|
+
get: function () { return view.DeploymentElement; }
|
|
4242
3696
|
});
|
|
4243
3697
|
Object.defineProperty(exports, "DiagramNode", {
|
|
4244
|
-
|
|
4245
|
-
|
|
3698
|
+
enumerable: true,
|
|
3699
|
+
get: function () { return view.DiagramNode; }
|
|
4246
3700
|
});
|
|
4247
3701
|
Object.defineProperty(exports, "ElementKind", {
|
|
4248
|
-
|
|
4249
|
-
|
|
3702
|
+
enumerable: true,
|
|
3703
|
+
get: function () { return view.ElementKind; }
|
|
4250
3704
|
});
|
|
4251
3705
|
exports.ElementShapes = view.ElementShapes;
|
|
4252
3706
|
exports.Expr = view.expression;
|
|
4253
3707
|
Object.defineProperty(exports, "ExpressionV2", {
|
|
4254
|
-
|
|
4255
|
-
|
|
3708
|
+
enumerable: true,
|
|
3709
|
+
get: function () { return view.ExpressionV2; }
|
|
4256
3710
|
});
|
|
4257
3711
|
Object.defineProperty(exports, "FqnExpr", {
|
|
4258
|
-
|
|
4259
|
-
|
|
3712
|
+
enumerable: true,
|
|
3713
|
+
get: function () { return view.FqnExpr; }
|
|
4260
3714
|
});
|
|
4261
3715
|
Object.defineProperty(exports, "FqnRef", {
|
|
4262
|
-
|
|
4263
|
-
|
|
3716
|
+
enumerable: true,
|
|
3717
|
+
get: function () { return view.FqnRef; }
|
|
4264
3718
|
});
|
|
4265
3719
|
Object.defineProperty(exports, "RelationExpr", {
|
|
4266
|
-
|
|
4267
|
-
|
|
3720
|
+
enumerable: true,
|
|
3721
|
+
get: function () { return view.RelationExpr; }
|
|
4268
3722
|
});
|
|
4269
3723
|
exports.extractStep = view.extractStep;
|
|
4270
3724
|
exports.getBBoxCenter = view.getBBoxCenter;
|
|
@@ -4307,14 +3761,58 @@ exports.isViewRuleStyle = view.isViewRuleStyle;
|
|
|
4307
3761
|
exports.isWildcard = view.isWildcard;
|
|
4308
3762
|
exports.stepEdgeId = view.stepEdgeId;
|
|
4309
3763
|
exports.whereOperatorAsPredicate = view.whereOperatorAsPredicate;
|
|
3764
|
+
exports.LikeC4DeploymentModel = model_index.LikeC4DeploymentModel;
|
|
3765
|
+
exports.LikeC4Model = model_index.LikeC4Model;
|
|
3766
|
+
exports.LikeC4ViewModel = model_index.LikeC4ViewModel;
|
|
3767
|
+
exports.computeView = model_index.computeView;
|
|
3768
|
+
exports.computeViews = model_index.computeViews;
|
|
3769
|
+
exports.unsafeComputeView = model_index.unsafeComputeView;
|
|
4310
3770
|
exports.computeRelationshipsView = compute.computeRelationshipsView;
|
|
4311
3771
|
exports.isThemeColor = types_index.isThemeColor;
|
|
3772
|
+
exports.DefaultMap = object_hash.DefaultMap;
|
|
3773
|
+
exports.LinkedList = object_hash.linkedList;
|
|
3774
|
+
exports.Queue = object_hash.queue;
|
|
3775
|
+
exports.Stack = object_hash.Stack;
|
|
3776
|
+
exports.ancestorsFqn = object_hash.ancestorsFqn;
|
|
3777
|
+
exports.commonAncestor = object_hash.commonAncestor;
|
|
3778
|
+
exports.commonHead = object_hash.commonHead;
|
|
3779
|
+
exports.compareByFqnHierarchically = object_hash.compareByFqnHierarchically;
|
|
3780
|
+
exports.compareFqnHierarchically = object_hash.compareFqnHierarchically;
|
|
3781
|
+
exports.compareNatural = object_hash.compareNatural;
|
|
3782
|
+
exports.difference = object_hash.difference;
|
|
3783
|
+
exports.equalsSet = object_hash.equals;
|
|
3784
|
+
exports.getOrCreate = object_hash.getOrCreate;
|
|
3785
|
+
exports.hasAtLeast = object_hash.i;
|
|
3786
|
+
exports.hierarchyDistance = object_hash.hierarchyDistance;
|
|
3787
|
+
exports.hierarchyLevel = object_hash.hierarchyLevel;
|
|
3788
|
+
exports.ifilter = object_hash.ifilter;
|
|
3789
|
+
exports.ifind = object_hash.ifind;
|
|
3790
|
+
exports.iflat = object_hash.iflat;
|
|
3791
|
+
exports.imap = object_hash.imap;
|
|
3792
|
+
exports.intersection = object_hash.intersection;
|
|
3793
|
+
exports.isAncestor = object_hash.isAncestor;
|
|
3794
|
+
exports.isDescendantOf = object_hash.isDescendantOf;
|
|
3795
|
+
exports.isIterable = object_hash.isIterable;
|
|
3796
|
+
exports.isNonEmptyArray = object_hash.isNonEmptyArray;
|
|
3797
|
+
exports.isSameHierarchy = object_hash.isSameHierarchy;
|
|
3798
|
+
exports.isString = object_hash.isString;
|
|
3799
|
+
exports.isome = object_hash.isome;
|
|
3800
|
+
exports.iunique = object_hash.iunique;
|
|
3801
|
+
exports.nameFromFqn = object_hash.nameFromFqn;
|
|
3802
|
+
exports.objectHash = object_hash.objectHash;
|
|
3803
|
+
exports.parentFqn = object_hash.parentFqn;
|
|
3804
|
+
exports.sortByFqnHierarchically = object_hash.sortByFqnHierarchically;
|
|
3805
|
+
exports.sortNaturalByFqn = object_hash.sortNaturalByFqn;
|
|
3806
|
+
exports.sortParentsFirst = object_hash.sortParentsFirst;
|
|
3807
|
+
exports.stringHash = object_hash.stringHash;
|
|
3808
|
+
exports.symmetricDifference = object_hash.symmetricDifference;
|
|
3809
|
+
exports.toArray = object_hash.toArray;
|
|
3810
|
+
exports.toSet = object_hash.toSet;
|
|
3811
|
+
exports.union = object_hash.union;
|
|
4312
3812
|
exports.compareRelations = utils_index.compareRelations;
|
|
4313
3813
|
exports.delay = utils_index.delay;
|
|
4314
3814
|
exports.ireduce = utils_index.ireduce;
|
|
4315
3815
|
exports.ElementColors = ElementColors;
|
|
4316
|
-
exports.LinkedList = linkedList;
|
|
4317
|
-
exports.Queue = queue;
|
|
4318
3816
|
exports.RelationshipColors = RelationshipColors;
|
|
4319
3817
|
exports.computeColorValues = computeColorValues;
|
|
4320
3818
|
exports.defaultTheme = defaultTheme;
|