likec4 1.42.1 → 1.44.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/__app__/src/likec4.js +5251 -5644
- package/__app__/src/main.js +64 -46
- package/__app__/src/style.css +1 -1
- package/__app__/src/vendors.js +6533 -27430
- package/__app__/src/webcomponent.js +1 -1
- package/config/schema.json +150 -265
- package/dist/cli/index.mjs +536 -534
- package/dist/config/index.d.mts +1 -1
- package/dist/config/index.mjs +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +1 -1
- package/dist/shared/{likec4.CaOUU1HJ.d.mts → likec4.97TpL3Hf.d.mts} +10903 -2490
- package/dist/shared/{likec4.D51sTGt6.mjs → likec4.BSr9pG1Z.mjs} +2489 -2502
- package/dist/shared/{likec4.BEwUtMsL.mjs → likec4.CXaeDwoC.mjs} +1 -1
- package/dist/shared/likec4.CyRRoRaV.d.mts +4040 -0
- package/dist/shared/likec4.H8IcXBiE.mjs +177 -0
- package/dist/vite-plugin/index.d.mts +3 -3
- package/dist/vite-plugin/index.mjs +1 -1
- package/package.json +40 -39
- package/react/index.d.ts +3687 -1751
- package/react/index.js +8061 -4772
- package/dist/shared/likec4.B5Q51Z1F.mjs +0 -543
- package/dist/shared/likec4.BCSBNe4z.d.mts +0 -6808
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { LikeC4View as LikeC4View$1 } from "likec4:react";
|
|
3
3
|
import { createRoot } from "react-dom/client";
|
|
4
4
|
import { ComponentName } from "./const.js";
|
|
5
|
-
import {
|
|
5
|
+
import { dj as object, dk as literal, dl as stringbool, dm as string, dn as formatError } from "./vendors.js";
|
|
6
6
|
const propsSchema = object({
|
|
7
7
|
viewId: string().default("index"),
|
|
8
8
|
browser: stringbool().default(!0),
|
package/config/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"description": "LikeC4 project configuration",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
@@ -31,11 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"styles": {
|
|
34
|
-
"
|
|
35
|
-
{
|
|
36
|
-
"$ref": "#/definitions/StylesConfiguration"
|
|
37
|
-
}
|
|
38
|
-
]
|
|
34
|
+
"$ref": "#/$defs/StylesConfiguration"
|
|
39
35
|
},
|
|
40
36
|
"exclude": {
|
|
41
37
|
"description": "List of file patterns to exclude from the project, default is [\"**/node_modules/**\"]",
|
|
@@ -43,32 +39,28 @@
|
|
|
43
39
|
"items": {
|
|
44
40
|
"type": "string"
|
|
45
41
|
}
|
|
42
|
+
},
|
|
43
|
+
"manualLayouts": {
|
|
44
|
+
"$ref": "#/$defs/manual-layouts-config"
|
|
46
45
|
}
|
|
47
46
|
},
|
|
48
47
|
"required": [
|
|
49
48
|
"name"
|
|
50
49
|
],
|
|
51
|
-
"
|
|
50
|
+
"$defs": {
|
|
52
51
|
"StylesConfiguration": {
|
|
53
52
|
"id": "StylesConfiguration",
|
|
54
53
|
"description": "Project styles customization",
|
|
55
54
|
"type": "object",
|
|
56
55
|
"properties": {
|
|
57
56
|
"theme": {
|
|
58
|
-
"
|
|
59
|
-
{
|
|
60
|
-
"$ref": "#/definitions/ThemeCustomization"
|
|
61
|
-
}
|
|
62
|
-
]
|
|
57
|
+
"$ref": "#/$defs/ThemeCustomization"
|
|
63
58
|
},
|
|
64
59
|
"defaults": {
|
|
65
|
-
"
|
|
66
|
-
{
|
|
67
|
-
"$ref": "#/definitions/DefaultStyleValues"
|
|
68
|
-
}
|
|
69
|
-
]
|
|
60
|
+
"$ref": "#/$defs/DefaultStyleValues"
|
|
70
61
|
}
|
|
71
|
-
}
|
|
62
|
+
},
|
|
63
|
+
"additionalProperties": false
|
|
72
64
|
},
|
|
73
65
|
"ThemeCustomization": {
|
|
74
66
|
"id": "ThemeCustomization",
|
|
@@ -76,151 +68,62 @@
|
|
|
76
68
|
"type": "object",
|
|
77
69
|
"properties": {
|
|
78
70
|
"colors": {
|
|
79
|
-
"
|
|
80
|
-
{
|
|
81
|
-
"$ref": "#/definitions/ThemeColors"
|
|
82
|
-
}
|
|
83
|
-
]
|
|
71
|
+
"$ref": "#/$defs/ThemeColors"
|
|
84
72
|
},
|
|
85
73
|
"sizes": {
|
|
86
|
-
"
|
|
87
|
-
"type": "object",
|
|
88
|
-
"properties": {
|
|
89
|
-
"xs": {
|
|
90
|
-
"allOf": [
|
|
91
|
-
{
|
|
92
|
-
"$ref": "#/definitions/Dimensions"
|
|
93
|
-
}
|
|
94
|
-
]
|
|
95
|
-
},
|
|
96
|
-
"sm": {
|
|
97
|
-
"allOf": [
|
|
98
|
-
{
|
|
99
|
-
"$ref": "#/definitions/Dimensions"
|
|
100
|
-
}
|
|
101
|
-
]
|
|
102
|
-
},
|
|
103
|
-
"md": {
|
|
104
|
-
"allOf": [
|
|
105
|
-
{
|
|
106
|
-
"$ref": "#/definitions/Dimensions"
|
|
107
|
-
}
|
|
108
|
-
]
|
|
109
|
-
},
|
|
110
|
-
"lg": {
|
|
111
|
-
"allOf": [
|
|
112
|
-
{
|
|
113
|
-
"$ref": "#/definitions/Dimensions"
|
|
114
|
-
}
|
|
115
|
-
]
|
|
116
|
-
},
|
|
117
|
-
"xl": {
|
|
118
|
-
"allOf": [
|
|
119
|
-
{
|
|
120
|
-
"$ref": "#/definitions/Dimensions"
|
|
121
|
-
}
|
|
122
|
-
]
|
|
123
|
-
}
|
|
124
|
-
}
|
|
74
|
+
"$ref": "#/$defs/ThemeSizes"
|
|
125
75
|
}
|
|
126
|
-
}
|
|
76
|
+
},
|
|
77
|
+
"additionalProperties": false
|
|
127
78
|
},
|
|
128
79
|
"ThemeColors": {
|
|
129
80
|
"id": "ThemeColors",
|
|
130
|
-
"description": "Override
|
|
81
|
+
"description": "Override theme colors",
|
|
131
82
|
"anyOf": [
|
|
132
83
|
{
|
|
133
84
|
"type": "object",
|
|
134
85
|
"propertyNames": {
|
|
135
|
-
"$ref": "
|
|
86
|
+
"$ref": "#/$defs/ColorName"
|
|
136
87
|
},
|
|
137
88
|
"additionalProperties": {
|
|
138
|
-
"
|
|
139
|
-
{
|
|
140
|
-
"$ref": "#/definitions/ThemeColorValues"
|
|
141
|
-
}
|
|
142
|
-
]
|
|
89
|
+
"$ref": "#/$defs/ThemeColorValues"
|
|
143
90
|
}
|
|
144
91
|
},
|
|
145
92
|
{
|
|
146
93
|
"type": "object",
|
|
147
94
|
"properties": {
|
|
148
95
|
"amber": {
|
|
149
|
-
"
|
|
150
|
-
{
|
|
151
|
-
"$ref": "#/definitions/ThemeColorValues"
|
|
152
|
-
}
|
|
153
|
-
]
|
|
96
|
+
"$ref": "#/$defs/ThemeColorValues"
|
|
154
97
|
},
|
|
155
98
|
"blue": {
|
|
156
|
-
"
|
|
157
|
-
{
|
|
158
|
-
"$ref": "#/definitions/ThemeColorValues"
|
|
159
|
-
}
|
|
160
|
-
]
|
|
99
|
+
"$ref": "#/$defs/ThemeColorValues"
|
|
161
100
|
},
|
|
162
101
|
"gray": {
|
|
163
|
-
"
|
|
164
|
-
{
|
|
165
|
-
"$ref": "#/definitions/ThemeColorValues"
|
|
166
|
-
}
|
|
167
|
-
]
|
|
102
|
+
"$ref": "#/$defs/ThemeColorValues"
|
|
168
103
|
},
|
|
169
104
|
"slate": {
|
|
170
|
-
"
|
|
171
|
-
{
|
|
172
|
-
"$ref": "#/definitions/ThemeColorValues"
|
|
173
|
-
}
|
|
174
|
-
]
|
|
105
|
+
"$ref": "#/$defs/ThemeColorValues"
|
|
175
106
|
},
|
|
176
107
|
"green": {
|
|
177
|
-
"
|
|
178
|
-
{
|
|
179
|
-
"$ref": "#/definitions/ThemeColorValues"
|
|
180
|
-
}
|
|
181
|
-
]
|
|
108
|
+
"$ref": "#/$defs/ThemeColorValues"
|
|
182
109
|
},
|
|
183
110
|
"indigo": {
|
|
184
|
-
"
|
|
185
|
-
{
|
|
186
|
-
"$ref": "#/definitions/ThemeColorValues"
|
|
187
|
-
}
|
|
188
|
-
]
|
|
111
|
+
"$ref": "#/$defs/ThemeColorValues"
|
|
189
112
|
},
|
|
190
113
|
"muted": {
|
|
191
|
-
"
|
|
192
|
-
{
|
|
193
|
-
"$ref": "#/definitions/ThemeColorValues"
|
|
194
|
-
}
|
|
195
|
-
]
|
|
114
|
+
"$ref": "#/$defs/ThemeColorValues"
|
|
196
115
|
},
|
|
197
116
|
"primary": {
|
|
198
|
-
"
|
|
199
|
-
{
|
|
200
|
-
"$ref": "#/definitions/ThemeColorValues"
|
|
201
|
-
}
|
|
202
|
-
]
|
|
117
|
+
"$ref": "#/$defs/ThemeColorValues"
|
|
203
118
|
},
|
|
204
119
|
"red": {
|
|
205
|
-
"
|
|
206
|
-
{
|
|
207
|
-
"$ref": "#/definitions/ThemeColorValues"
|
|
208
|
-
}
|
|
209
|
-
]
|
|
120
|
+
"$ref": "#/$defs/ThemeColorValues"
|
|
210
121
|
},
|
|
211
122
|
"secondary": {
|
|
212
|
-
"
|
|
213
|
-
{
|
|
214
|
-
"$ref": "#/definitions/ThemeColorValues"
|
|
215
|
-
}
|
|
216
|
-
]
|
|
123
|
+
"$ref": "#/$defs/ThemeColorValues"
|
|
217
124
|
},
|
|
218
125
|
"sky": {
|
|
219
|
-
"
|
|
220
|
-
{
|
|
221
|
-
"$ref": "#/definitions/ThemeColorValues"
|
|
222
|
-
}
|
|
223
|
-
]
|
|
126
|
+
"$ref": "#/$defs/ThemeColorValues"
|
|
224
127
|
}
|
|
225
128
|
}
|
|
226
129
|
}
|
|
@@ -228,10 +131,9 @@
|
|
|
228
131
|
},
|
|
229
132
|
"ColorName": {
|
|
230
133
|
"id": "ColorName",
|
|
231
|
-
"description": "Color name (Theme color name or custom color name)",
|
|
232
134
|
"anyOf": [
|
|
233
135
|
{
|
|
234
|
-
"$ref": "
|
|
136
|
+
"$ref": "#/$defs/ThemeColor"
|
|
235
137
|
},
|
|
236
138
|
{
|
|
237
139
|
"type": "string",
|
|
@@ -241,7 +143,6 @@
|
|
|
241
143
|
},
|
|
242
144
|
"ThemeColor": {
|
|
243
145
|
"id": "ThemeColor",
|
|
244
|
-
"description": "Reserved theme color name",
|
|
245
146
|
"type": "string",
|
|
246
147
|
"enum": [
|
|
247
148
|
"amber",
|
|
@@ -262,36 +163,30 @@
|
|
|
262
163
|
"description": "Exact value (hex, rgb, rgba, hsl, hsla ...) or break down of specific color values",
|
|
263
164
|
"anyOf": [
|
|
264
165
|
{
|
|
265
|
-
"$ref": "
|
|
166
|
+
"$ref": "#/$defs/ColorLiteral"
|
|
266
167
|
},
|
|
267
168
|
{
|
|
268
169
|
"type": "object",
|
|
269
170
|
"properties": {
|
|
270
171
|
"elements": {
|
|
172
|
+
"description": "Element color value (or a breakdown of specific color values)",
|
|
271
173
|
"anyOf": [
|
|
272
174
|
{
|
|
273
|
-
"$ref": "
|
|
175
|
+
"$ref": "#/$defs/ColorLiteral"
|
|
274
176
|
},
|
|
275
177
|
{
|
|
276
|
-
"
|
|
277
|
-
{
|
|
278
|
-
"$ref": "#/definitions/ElementColorValues"
|
|
279
|
-
}
|
|
280
|
-
]
|
|
178
|
+
"$ref": "#/$defs/ElementColorValues"
|
|
281
179
|
}
|
|
282
180
|
]
|
|
283
181
|
},
|
|
284
182
|
"relationships": {
|
|
183
|
+
"description": "Relationship color value (or a breakdown of specific color values)",
|
|
285
184
|
"anyOf": [
|
|
286
185
|
{
|
|
287
|
-
"$ref": "
|
|
186
|
+
"$ref": "#/$defs/ColorLiteral"
|
|
288
187
|
},
|
|
289
188
|
{
|
|
290
|
-
"
|
|
291
|
-
{
|
|
292
|
-
"$ref": "#/definitions/RelationshipColorValues"
|
|
293
|
-
}
|
|
294
|
-
]
|
|
189
|
+
"$ref": "#/$defs/RelationshipColorValues"
|
|
295
190
|
}
|
|
296
191
|
]
|
|
297
192
|
}
|
|
@@ -299,7 +194,8 @@
|
|
|
299
194
|
"required": [
|
|
300
195
|
"elements",
|
|
301
196
|
"relationships"
|
|
302
|
-
]
|
|
197
|
+
],
|
|
198
|
+
"additionalProperties": false
|
|
303
199
|
}
|
|
304
200
|
]
|
|
305
201
|
},
|
|
@@ -311,40 +207,23 @@
|
|
|
311
207
|
},
|
|
312
208
|
"ElementColorValues": {
|
|
313
209
|
"id": "ElementColorValues",
|
|
314
|
-
"description": "Specific element colors",
|
|
315
210
|
"type": "object",
|
|
316
211
|
"properties": {
|
|
317
212
|
"fill": {
|
|
318
213
|
"description": "Background color",
|
|
319
|
-
"
|
|
320
|
-
{
|
|
321
|
-
"$ref": "#/definitions/ColorLiteral"
|
|
322
|
-
}
|
|
323
|
-
]
|
|
214
|
+
"$ref": "#/$defs/ColorLiteral"
|
|
324
215
|
},
|
|
325
216
|
"stroke": {
|
|
326
217
|
"description": "Stroke color (border, paths above background)",
|
|
327
|
-
"
|
|
328
|
-
{
|
|
329
|
-
"$ref": "#/definitions/ColorLiteral"
|
|
330
|
-
}
|
|
331
|
-
]
|
|
218
|
+
"$ref": "#/$defs/ColorLiteral"
|
|
332
219
|
},
|
|
333
220
|
"hiContrast": {
|
|
334
221
|
"description": "High contrast text color (title)",
|
|
335
|
-
"
|
|
336
|
-
{
|
|
337
|
-
"$ref": "#/definitions/ColorLiteral"
|
|
338
|
-
}
|
|
339
|
-
]
|
|
222
|
+
"$ref": "#/$defs/ColorLiteral"
|
|
340
223
|
},
|
|
341
224
|
"loContrast": {
|
|
342
225
|
"description": "Low contrast text color (description)",
|
|
343
|
-
"
|
|
344
|
-
{
|
|
345
|
-
"$ref": "#/definitions/ColorLiteral"
|
|
346
|
-
}
|
|
347
|
-
]
|
|
226
|
+
"$ref": "#/$defs/ColorLiteral"
|
|
348
227
|
}
|
|
349
228
|
},
|
|
350
229
|
"required": [
|
|
@@ -352,42 +231,54 @@
|
|
|
352
231
|
"stroke",
|
|
353
232
|
"hiContrast",
|
|
354
233
|
"loContrast"
|
|
355
|
-
]
|
|
234
|
+
],
|
|
235
|
+
"additionalProperties": false
|
|
356
236
|
},
|
|
357
237
|
"RelationshipColorValues": {
|
|
358
238
|
"id": "RelationshipColorValues",
|
|
359
|
-
"description": "Specefic relationship colors",
|
|
360
239
|
"type": "object",
|
|
361
240
|
"properties": {
|
|
362
241
|
"line": {
|
|
363
242
|
"description": "Line color",
|
|
364
|
-
"
|
|
365
|
-
{
|
|
366
|
-
"$ref": "#/definitions/ColorLiteral"
|
|
367
|
-
}
|
|
368
|
-
]
|
|
243
|
+
"$ref": "#/$defs/ColorLiteral"
|
|
369
244
|
},
|
|
370
245
|
"label": {
|
|
371
246
|
"description": "Label text color",
|
|
372
|
-
"
|
|
373
|
-
{
|
|
374
|
-
"$ref": "#/definitions/ColorLiteral"
|
|
375
|
-
}
|
|
376
|
-
]
|
|
247
|
+
"$ref": "#/$defs/ColorLiteral"
|
|
377
248
|
},
|
|
378
249
|
"labelBg": {
|
|
379
250
|
"description": "Label background color",
|
|
380
|
-
"
|
|
381
|
-
{
|
|
382
|
-
"$ref": "#/definitions/ColorLiteral"
|
|
383
|
-
}
|
|
384
|
-
]
|
|
251
|
+
"$ref": "#/$defs/ColorLiteral"
|
|
385
252
|
}
|
|
386
253
|
},
|
|
387
254
|
"required": [
|
|
388
255
|
"line",
|
|
389
256
|
"label"
|
|
390
|
-
]
|
|
257
|
+
],
|
|
258
|
+
"additionalProperties": false
|
|
259
|
+
},
|
|
260
|
+
"ThemeSizes": {
|
|
261
|
+
"id": "ThemeSizes",
|
|
262
|
+
"description": "Override theme sizes",
|
|
263
|
+
"type": "object",
|
|
264
|
+
"properties": {
|
|
265
|
+
"xs": {
|
|
266
|
+
"$ref": "#/$defs/Dimensions"
|
|
267
|
+
},
|
|
268
|
+
"sm": {
|
|
269
|
+
"$ref": "#/$defs/Dimensions"
|
|
270
|
+
},
|
|
271
|
+
"md": {
|
|
272
|
+
"$ref": "#/$defs/Dimensions"
|
|
273
|
+
},
|
|
274
|
+
"lg": {
|
|
275
|
+
"$ref": "#/$defs/Dimensions"
|
|
276
|
+
},
|
|
277
|
+
"xl": {
|
|
278
|
+
"$ref": "#/$defs/Dimensions"
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
"additionalProperties": false
|
|
391
282
|
},
|
|
392
283
|
"Dimensions": {
|
|
393
284
|
"id": "Dimensions",
|
|
@@ -395,16 +286,19 @@
|
|
|
395
286
|
"type": "object",
|
|
396
287
|
"properties": {
|
|
397
288
|
"width": {
|
|
398
|
-
"type": "number"
|
|
289
|
+
"type": "number",
|
|
290
|
+
"minimum": 50
|
|
399
291
|
},
|
|
400
292
|
"height": {
|
|
401
|
-
"type": "number"
|
|
293
|
+
"type": "number",
|
|
294
|
+
"minimum": 50
|
|
402
295
|
}
|
|
403
296
|
},
|
|
404
297
|
"required": [
|
|
405
298
|
"width",
|
|
406
299
|
"height"
|
|
407
|
-
]
|
|
300
|
+
],
|
|
301
|
+
"additionalProperties": false
|
|
408
302
|
},
|
|
409
303
|
"DefaultStyleValues": {
|
|
410
304
|
"id": "DefaultStyleValues",
|
|
@@ -412,104 +306,45 @@
|
|
|
412
306
|
"type": "object",
|
|
413
307
|
"properties": {
|
|
414
308
|
"color": {
|
|
415
|
-
"
|
|
416
|
-
|
|
417
|
-
"$ref": "#/definitions/ColorName"
|
|
418
|
-
}
|
|
419
|
-
]
|
|
309
|
+
"description": "Default color for elements\n(must be a valid color name from the theme)",
|
|
310
|
+
"$ref": "#/$defs/ColorName"
|
|
420
311
|
},
|
|
421
312
|
"opacity": {
|
|
422
|
-
"
|
|
423
|
-
|
|
424
|
-
"$ref": "#/definitions/Opacity"
|
|
425
|
-
}
|
|
426
|
-
]
|
|
313
|
+
"description": "Default opacity (0-100%) for elements when displayed as a group (like a container)",
|
|
314
|
+
"$ref": "#/$defs/Opacity"
|
|
427
315
|
},
|
|
428
316
|
"border": {
|
|
429
|
-
"
|
|
430
|
-
|
|
431
|
-
"$ref": "#/definitions/BorderStyle"
|
|
432
|
-
}
|
|
433
|
-
]
|
|
317
|
+
"description": "Default border style for elements when displayed as a group (like a container)",
|
|
318
|
+
"$ref": "#/$defs/BorderStyle"
|
|
434
319
|
},
|
|
435
320
|
"size": {
|
|
436
|
-
"
|
|
437
|
-
|
|
438
|
-
"$ref": "#/definitions/ElementSize"
|
|
439
|
-
}
|
|
440
|
-
]
|
|
321
|
+
"description": "Default size for elements",
|
|
322
|
+
"$ref": "#/$defs/ElementSize"
|
|
441
323
|
},
|
|
442
324
|
"shape": {
|
|
443
|
-
"
|
|
444
|
-
|
|
445
|
-
"$ref": "#/definitions/ElementShape"
|
|
446
|
-
}
|
|
447
|
-
]
|
|
325
|
+
"description": "Default shape for elements",
|
|
326
|
+
"$ref": "#/$defs/ElementShape"
|
|
448
327
|
},
|
|
449
328
|
"group": {
|
|
450
|
-
"
|
|
451
|
-
"
|
|
452
|
-
"color": {
|
|
453
|
-
"allOf": [
|
|
454
|
-
{
|
|
455
|
-
"$ref": "#/definitions/ColorName"
|
|
456
|
-
}
|
|
457
|
-
]
|
|
458
|
-
},
|
|
459
|
-
"opacity": {
|
|
460
|
-
"allOf": [
|
|
461
|
-
{
|
|
462
|
-
"$ref": "#/definitions/Opacity"
|
|
463
|
-
}
|
|
464
|
-
]
|
|
465
|
-
},
|
|
466
|
-
"border": {
|
|
467
|
-
"allOf": [
|
|
468
|
-
{
|
|
469
|
-
"$ref": "#/definitions/BorderStyle"
|
|
470
|
-
}
|
|
471
|
-
]
|
|
472
|
-
}
|
|
473
|
-
}
|
|
329
|
+
"description": "Default style values for groups",
|
|
330
|
+
"$ref": "#/$defs/GroupDefaultStyleValues"
|
|
474
331
|
},
|
|
475
332
|
"relationship": {
|
|
476
|
-
"
|
|
477
|
-
"
|
|
478
|
-
"color": {
|
|
479
|
-
"allOf": [
|
|
480
|
-
{
|
|
481
|
-
"$ref": "#/definitions/ColorName"
|
|
482
|
-
}
|
|
483
|
-
]
|
|
484
|
-
},
|
|
485
|
-
"line": {
|
|
486
|
-
"allOf": [
|
|
487
|
-
{
|
|
488
|
-
"$ref": "#/definitions/LineType"
|
|
489
|
-
}
|
|
490
|
-
]
|
|
491
|
-
},
|
|
492
|
-
"arrow": {
|
|
493
|
-
"allOf": [
|
|
494
|
-
{
|
|
495
|
-
"$ref": "#/definitions/ArrowType"
|
|
496
|
-
}
|
|
497
|
-
]
|
|
498
|
-
}
|
|
499
|
-
}
|
|
333
|
+
"description": "Default style values for relationships",
|
|
334
|
+
"$ref": "#/$defs/RelationshipDefaultStyleValues"
|
|
500
335
|
}
|
|
501
|
-
}
|
|
336
|
+
},
|
|
337
|
+
"additionalProperties": false
|
|
502
338
|
},
|
|
503
339
|
"Opacity": {
|
|
504
340
|
"id": "Opacity",
|
|
505
|
-
"description": "Opacity 0
|
|
506
|
-
"type": "
|
|
341
|
+
"description": "Opacity 0-100%",
|
|
342
|
+
"type": "integer",
|
|
507
343
|
"minimum": 0,
|
|
508
344
|
"maximum": 100
|
|
509
345
|
},
|
|
510
346
|
"BorderStyle": {
|
|
511
347
|
"id": "BorderStyle",
|
|
512
|
-
"description": "Border style",
|
|
513
348
|
"type": "string",
|
|
514
349
|
"enum": [
|
|
515
350
|
"solid",
|
|
@@ -520,7 +355,6 @@
|
|
|
520
355
|
},
|
|
521
356
|
"ElementSize": {
|
|
522
357
|
"id": "ElementSize",
|
|
523
|
-
"description": "Element size",
|
|
524
358
|
"type": "string",
|
|
525
359
|
"enum": [
|
|
526
360
|
"xs",
|
|
@@ -532,7 +366,6 @@
|
|
|
532
366
|
},
|
|
533
367
|
"ElementShape": {
|
|
534
368
|
"id": "ElementShape",
|
|
535
|
-
"description": "Element shape",
|
|
536
369
|
"type": "string",
|
|
537
370
|
"enum": [
|
|
538
371
|
"rectangle",
|
|
@@ -544,9 +377,48 @@
|
|
|
544
377
|
"queue"
|
|
545
378
|
]
|
|
546
379
|
},
|
|
380
|
+
"GroupDefaultStyleValues": {
|
|
381
|
+
"id": "GroupDefaultStyleValues",
|
|
382
|
+
"description": "Override default values for group style properties\nThese values will be used if such property is not defined",
|
|
383
|
+
"type": "object",
|
|
384
|
+
"properties": {
|
|
385
|
+
"color": {
|
|
386
|
+
"description": "Default color for groups\n(must be a valid color name from the theme)",
|
|
387
|
+
"$ref": "#/$defs/ColorName"
|
|
388
|
+
},
|
|
389
|
+
"opacity": {
|
|
390
|
+
"description": "Default opacity for groups",
|
|
391
|
+
"$ref": "#/$defs/Opacity"
|
|
392
|
+
},
|
|
393
|
+
"border": {
|
|
394
|
+
"description": "Default border for groups",
|
|
395
|
+
"$ref": "#/$defs/BorderStyle"
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
"additionalProperties": false
|
|
399
|
+
},
|
|
400
|
+
"RelationshipDefaultStyleValues": {
|
|
401
|
+
"id": "RelationshipDefaultStyleValues",
|
|
402
|
+
"description": "Override default values for relationship style properties\nThese values will be used if such property is not defined",
|
|
403
|
+
"type": "object",
|
|
404
|
+
"properties": {
|
|
405
|
+
"color": {
|
|
406
|
+
"description": "Default color for relationships\n(must be a valid color name from the theme)",
|
|
407
|
+
"$ref": "#/$defs/ColorName"
|
|
408
|
+
},
|
|
409
|
+
"line": {
|
|
410
|
+
"description": "Default line style for relationships",
|
|
411
|
+
"$ref": "#/$defs/LineType"
|
|
412
|
+
},
|
|
413
|
+
"arrow": {
|
|
414
|
+
"description": "Default arrow style for relationships",
|
|
415
|
+
"$ref": "#/$defs/ArrowType"
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
"additionalProperties": false
|
|
419
|
+
},
|
|
547
420
|
"LineType": {
|
|
548
421
|
"id": "LineType",
|
|
549
|
-
"description": "Default line type for relationships",
|
|
550
422
|
"type": "string",
|
|
551
423
|
"enum": [
|
|
552
424
|
"dashed",
|
|
@@ -556,7 +428,6 @@
|
|
|
556
428
|
},
|
|
557
429
|
"ArrowType": {
|
|
558
430
|
"id": "ArrowType",
|
|
559
|
-
"description": "Relationship arrow type",
|
|
560
431
|
"type": "string",
|
|
561
432
|
"enum": [
|
|
562
433
|
"none",
|
|
@@ -570,6 +441,20 @@
|
|
|
570
441
|
"open",
|
|
571
442
|
"vee"
|
|
572
443
|
]
|
|
444
|
+
},
|
|
445
|
+
"manual-layouts-config": {
|
|
446
|
+
"id": "manual-layouts-config",
|
|
447
|
+
"description": "Configuration for manual layouts",
|
|
448
|
+
"type": "object",
|
|
449
|
+
"properties": {
|
|
450
|
+
"outDir": {
|
|
451
|
+
"description": "Path to the directory where manual layouts will be stored, relative to the folder containing the project config",
|
|
452
|
+
"type": "string"
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
"required": [
|
|
456
|
+
"outDir"
|
|
457
|
+
]
|
|
573
458
|
}
|
|
574
459
|
}
|
|
575
460
|
}
|