umlimator 0.13.0 → 0.15.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/README.md +54 -20
- package/lib/umlimator-element.d.ts +4 -2
- package/lib/umlimator-element.js +27 -12
- package/lib/umlimator-markdown-it.js +5 -5
- package/lib/umlimator-theme.css +6 -2
- package/lib/umlimator.d.ts +99 -11
- package/lib/umlimator.js +1281 -428
- package/lib/umlimator.schema.json +73 -0
- package/package.json +1 -1
|
@@ -20,6 +20,14 @@
|
|
|
20
20
|
"type": "string",
|
|
21
21
|
"description": "The view shown first (default: the view with no parent)."
|
|
22
22
|
},
|
|
23
|
+
"shapes": {
|
|
24
|
+
"enum": [
|
|
25
|
+
"box",
|
|
26
|
+
"c4",
|
|
27
|
+
"uml"
|
|
28
|
+
],
|
|
29
|
+
"description": "The notation every view's cards are (a view's own wins) is drawn in (0.15.0): box (every card a rounded box, the default), c4 (people, browser apps, phones, databases, queues and files as the C4 model's tools draw them) or uml (UML 2.5's actor, node, artifact, package and data store, and the component icon on a box)."
|
|
30
|
+
},
|
|
23
31
|
"nodes": {
|
|
24
32
|
"type": "array",
|
|
25
33
|
"items": {
|
|
@@ -134,6 +142,8 @@
|
|
|
134
142
|
"page",
|
|
135
143
|
"browser",
|
|
136
144
|
"app",
|
|
145
|
+
"person",
|
|
146
|
+
"mobile",
|
|
137
147
|
"api",
|
|
138
148
|
"service",
|
|
139
149
|
"server",
|
|
@@ -143,6 +153,7 @@
|
|
|
143
153
|
"cli",
|
|
144
154
|
"worker",
|
|
145
155
|
"module",
|
|
156
|
+
"package",
|
|
146
157
|
"db",
|
|
147
158
|
"store",
|
|
148
159
|
"storage",
|
|
@@ -281,6 +292,24 @@
|
|
|
281
292
|
"type": "string",
|
|
282
293
|
"description": "A logo or line icon: a name from icons/manifest.json (render() draws what the model's icons table carries)."
|
|
283
294
|
},
|
|
295
|
+
"shape": {
|
|
296
|
+
"enum": [
|
|
297
|
+
"box",
|
|
298
|
+
"person",
|
|
299
|
+
"browser",
|
|
300
|
+
"mobile",
|
|
301
|
+
"cylinder",
|
|
302
|
+
"pipe",
|
|
303
|
+
"document",
|
|
304
|
+
"hexagon",
|
|
305
|
+
"robot",
|
|
306
|
+
"terminal",
|
|
307
|
+
"window",
|
|
308
|
+
"folder",
|
|
309
|
+
"node"
|
|
310
|
+
],
|
|
311
|
+
"description": "The card's own shape, in every notation (0.15.0): box, person, browser, mobile, cylinder, pipe, document, hexagon, robot, terminal, window, folder or node. Without it the notation draws the card by its kind."
|
|
312
|
+
},
|
|
284
313
|
"noSub": {
|
|
285
314
|
"type": "boolean",
|
|
286
315
|
"description": "The name only on the card; the sub-line stays in the details panel."
|
|
@@ -399,6 +428,24 @@
|
|
|
399
428
|
"kind": {
|
|
400
429
|
"$ref": "#/$defs/kind"
|
|
401
430
|
},
|
|
431
|
+
"shape": {
|
|
432
|
+
"enum": [
|
|
433
|
+
"box",
|
|
434
|
+
"person",
|
|
435
|
+
"browser",
|
|
436
|
+
"mobile",
|
|
437
|
+
"cylinder",
|
|
438
|
+
"pipe",
|
|
439
|
+
"document",
|
|
440
|
+
"hexagon",
|
|
441
|
+
"robot",
|
|
442
|
+
"terminal",
|
|
443
|
+
"window",
|
|
444
|
+
"folder",
|
|
445
|
+
"node"
|
|
446
|
+
],
|
|
447
|
+
"description": "The card's own shape, in every notation (0.15.0): box, person, browser, mobile, cylinder, pipe, document, hexagon, robot, terminal, window, folder or node. Without it the notation draws the card by its kind."
|
|
448
|
+
},
|
|
402
449
|
"sublabel": {
|
|
403
450
|
"type": "string",
|
|
404
451
|
"description": "A line under the name."
|
|
@@ -581,6 +628,20 @@
|
|
|
581
628
|
],
|
|
582
629
|
"description": "How much the line stands for, drawn as its width (default 1)."
|
|
583
630
|
},
|
|
631
|
+
"step": {
|
|
632
|
+
"anyOf": [
|
|
633
|
+
{
|
|
634
|
+
"type": "number",
|
|
635
|
+
"minimum": 0
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"type": "string",
|
|
639
|
+
"minLength": 1,
|
|
640
|
+
"maxLength": 3
|
|
641
|
+
}
|
|
642
|
+
],
|
|
643
|
+
"description": "Its place in the order things happen: a number (2, or 2.1 for a step within step 2) or text of up to 3 characters (2a), drawn in a circle on the line in any view (a pill for 2 or 3 characters); a numbered view (render: sequence) numbers its lines in run order instead."
|
|
644
|
+
},
|
|
584
645
|
"latency": {
|
|
585
646
|
"type": "number",
|
|
586
647
|
"minimum": 0,
|
|
@@ -673,6 +734,10 @@
|
|
|
673
734
|
"$ref": "#/$defs/badge"
|
|
674
735
|
},
|
|
675
736
|
"description": "Tabs on the box's border."
|
|
737
|
+
},
|
|
738
|
+
"tone": {
|
|
739
|
+
"$ref": "#/$defs/tone",
|
|
740
|
+
"description": "A tinted region behind the box, as a badge's tone names it (--um-<tone>): the box's border is dashed and its title in the tone."
|
|
676
741
|
}
|
|
677
742
|
}
|
|
678
743
|
},
|
|
@@ -863,6 +928,14 @@
|
|
|
863
928
|
"type": "boolean",
|
|
864
929
|
"description": "Cards 80 px tall that show their sub-line, then their chips."
|
|
865
930
|
},
|
|
931
|
+
"shapes": {
|
|
932
|
+
"enum": [
|
|
933
|
+
"box",
|
|
934
|
+
"c4",
|
|
935
|
+
"uml"
|
|
936
|
+
],
|
|
937
|
+
"description": "The notation this view's cards are is drawn in (0.15.0): box (every card a rounded box, the default), c4 (people, browser apps, phones, databases, queues and files as the C4 model's tools draw them) or uml (UML 2.5's actor, node, artifact, package and data store, and the component icon on a box)."
|
|
938
|
+
},
|
|
866
939
|
"kindsFromLabels": {
|
|
867
940
|
"type": "boolean",
|
|
868
941
|
"description": "Guess a line's kind from its label's words when its edges name none (render() and layout(); the standalone page always does)."
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "umlimator",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "Embeddable, layered architecture maps: layout, orthogonal routing and an interactive canvas in one ES module.",
|
|
5
5
|
"keywords": ["architecture", "diagram", "c4", "map", "svg", "layout", "orthogonal-routing", "drill-down"],
|
|
6
6
|
"homepage": "https://zintaen.github.io/umlimator/",
|