umlimator 0.12.1 → 0.14.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 +167 -18
- package/lib/umlimator-element.d.ts +21 -0
- package/lib/umlimator-element.js +89 -0
- package/lib/umlimator-markdown-it.d.ts +6 -0
- package/lib/umlimator-markdown-it.js +33 -0
- package/lib/umlimator-remark.d.ts +4 -0
- package/lib/umlimator-remark.js +13 -0
- package/lib/umlimator-theme.css +9 -5
- package/lib/umlimator.d.ts +118 -13
- package/lib/umlimator.js +1485 -532
- package/lib/umlimator.schema.json +164 -1
- package/package.json +3 -2
|
@@ -93,6 +93,13 @@
|
|
|
93
93
|
"$ref": "#/$defs/story"
|
|
94
94
|
},
|
|
95
95
|
"description": "Narrated walk-throughs of the map: handle.play(id), the page's Stories menu, umlimator.py record."
|
|
96
|
+
},
|
|
97
|
+
"lenses": {
|
|
98
|
+
"type": "array",
|
|
99
|
+
"items": {
|
|
100
|
+
"$ref": "#/$defs/lens"
|
|
101
|
+
},
|
|
102
|
+
"description": "Saved ways to look at the map: handle.lens(id), the page's Lenses menu and #lens=<id>. A lens lights what it picks and dims the rest; it never lays the view out again."
|
|
96
103
|
}
|
|
97
104
|
},
|
|
98
105
|
"$defs": {
|
|
@@ -287,6 +294,10 @@
|
|
|
287
294
|
"minimum": 0,
|
|
288
295
|
"description": "The number on the ⤢ badge while the view it opens is not loaded."
|
|
289
296
|
},
|
|
297
|
+
"owner": {
|
|
298
|
+
"type": "string",
|
|
299
|
+
"description": "Who owns the card (a team, say): selectors pick cards by it, and a lens with color owner rings the card in its owner's tone."
|
|
300
|
+
},
|
|
290
301
|
"edited": {
|
|
291
302
|
"type": "boolean",
|
|
292
303
|
"description": "A marker on the card."
|
|
@@ -431,6 +442,10 @@
|
|
|
431
442
|
"minimum": 0,
|
|
432
443
|
"description": "The number on the ⤢ badge while the view it opens is not loaded."
|
|
433
444
|
},
|
|
445
|
+
"owner": {
|
|
446
|
+
"type": "string",
|
|
447
|
+
"description": "Who owns the card (a team, say): selectors pick cards by it, and a lens with color owner rings the card in its owner's tone."
|
|
448
|
+
},
|
|
434
449
|
"edited": {
|
|
435
450
|
"type": "boolean",
|
|
436
451
|
"description": "A marker on the card."
|
|
@@ -566,6 +581,16 @@
|
|
|
566
581
|
],
|
|
567
582
|
"description": "How much the line stands for, drawn as its width (default 1)."
|
|
568
583
|
},
|
|
584
|
+
"latency": {
|
|
585
|
+
"type": "number",
|
|
586
|
+
"minimum": 0,
|
|
587
|
+
"description": "How long the call takes, in ms: critical() sums it along a path. Not drawn."
|
|
588
|
+
},
|
|
589
|
+
"cost": {
|
|
590
|
+
"type": "number",
|
|
591
|
+
"minimum": 0,
|
|
592
|
+
"description": "What the call costs, in any unit: critical() sums it along a path. Not drawn."
|
|
593
|
+
},
|
|
569
594
|
"style": {
|
|
570
595
|
"enum": [
|
|
571
596
|
"emphasis",
|
|
@@ -900,7 +925,7 @@
|
|
|
900
925
|
"selector": {
|
|
901
926
|
"type": "object",
|
|
902
927
|
"additionalProperties": false,
|
|
903
|
-
"description": "Picks cards: every key given must hold. A line's end on a box is that box: in it, and of no kind.",
|
|
928
|
+
"description": "Picks cards: every key given must hold. A line's end on a box is that box: in it, and of no kind or owner.",
|
|
904
929
|
"properties": {
|
|
905
930
|
"id": {
|
|
906
931
|
"description": "Cards (or boxes) by id.",
|
|
@@ -947,6 +972,21 @@
|
|
|
947
972
|
}
|
|
948
973
|
]
|
|
949
974
|
},
|
|
975
|
+
"owner": {
|
|
976
|
+
"description": "Cards by owner.",
|
|
977
|
+
"anyOf": [
|
|
978
|
+
{
|
|
979
|
+
"type": "string"
|
|
980
|
+
},
|
|
981
|
+
{
|
|
982
|
+
"type": "array",
|
|
983
|
+
"items": {
|
|
984
|
+
"type": "string"
|
|
985
|
+
},
|
|
986
|
+
"minItems": 1
|
|
987
|
+
}
|
|
988
|
+
]
|
|
989
|
+
},
|
|
950
990
|
"not": {
|
|
951
991
|
"$ref": "#/$defs/selector",
|
|
952
992
|
"description": "The cards this selector does not pick."
|
|
@@ -1134,6 +1174,129 @@
|
|
|
1134
1174
|
"description": "The step's time in ms when playing (default 4000); its tour runs to its end first."
|
|
1135
1175
|
}
|
|
1136
1176
|
}
|
|
1177
|
+
},
|
|
1178
|
+
"lens": {
|
|
1179
|
+
"type": "object",
|
|
1180
|
+
"required": [
|
|
1181
|
+
"id"
|
|
1182
|
+
],
|
|
1183
|
+
"description": "A saved way to look at the map: what pick picks lit, the rest dimmed.",
|
|
1184
|
+
"properties": {
|
|
1185
|
+
"id": {
|
|
1186
|
+
"type": "string",
|
|
1187
|
+
"description": "Unique among the lenses: handle.lens(id), and #lens=<id> in a page's link."
|
|
1188
|
+
},
|
|
1189
|
+
"title": {
|
|
1190
|
+
"type": "string",
|
|
1191
|
+
"description": "The lens's name, in the Lenses menu and over its legend."
|
|
1192
|
+
},
|
|
1193
|
+
"pick": {
|
|
1194
|
+
"$ref": "#/$defs/lensSelector",
|
|
1195
|
+
"description": "What the lens lights; left out, everything."
|
|
1196
|
+
},
|
|
1197
|
+
"color": {
|
|
1198
|
+
"const": "owner",
|
|
1199
|
+
"description": "Rings each lit card in its owner's tone, with a legend."
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
},
|
|
1203
|
+
"lensSelector": {
|
|
1204
|
+
"type": "object",
|
|
1205
|
+
"additionalProperties": false,
|
|
1206
|
+
"description": "A lens's pick: a rule's selector, and line kinds. Without line, the cards it picks lit, and the lines between two of them; with line, the lines of those kinds between two cards the rest of it picks, and their ends.",
|
|
1207
|
+
"properties": {
|
|
1208
|
+
"id": {
|
|
1209
|
+
"description": "Cards (or boxes) by id.",
|
|
1210
|
+
"anyOf": [
|
|
1211
|
+
{
|
|
1212
|
+
"type": "string"
|
|
1213
|
+
},
|
|
1214
|
+
{
|
|
1215
|
+
"type": "array",
|
|
1216
|
+
"items": {
|
|
1217
|
+
"type": "string"
|
|
1218
|
+
},
|
|
1219
|
+
"minItems": 1
|
|
1220
|
+
}
|
|
1221
|
+
]
|
|
1222
|
+
},
|
|
1223
|
+
"kind": {
|
|
1224
|
+
"description": "Cards by kind, as the map draws it: \"db\" picks databases.",
|
|
1225
|
+
"anyOf": [
|
|
1226
|
+
{
|
|
1227
|
+
"$ref": "#/$defs/kind"
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
"type": "array",
|
|
1231
|
+
"items": {
|
|
1232
|
+
"$ref": "#/$defs/kind"
|
|
1233
|
+
},
|
|
1234
|
+
"minItems": 1
|
|
1235
|
+
}
|
|
1236
|
+
]
|
|
1237
|
+
},
|
|
1238
|
+
"container": {
|
|
1239
|
+
"description": "Cards in these boxes, at any depth.",
|
|
1240
|
+
"anyOf": [
|
|
1241
|
+
{
|
|
1242
|
+
"type": "string"
|
|
1243
|
+
},
|
|
1244
|
+
{
|
|
1245
|
+
"type": "array",
|
|
1246
|
+
"items": {
|
|
1247
|
+
"type": "string"
|
|
1248
|
+
},
|
|
1249
|
+
"minItems": 1
|
|
1250
|
+
}
|
|
1251
|
+
]
|
|
1252
|
+
},
|
|
1253
|
+
"owner": {
|
|
1254
|
+
"description": "Cards by owner.",
|
|
1255
|
+
"anyOf": [
|
|
1256
|
+
{
|
|
1257
|
+
"type": "string"
|
|
1258
|
+
},
|
|
1259
|
+
{
|
|
1260
|
+
"type": "array",
|
|
1261
|
+
"items": {
|
|
1262
|
+
"type": "string"
|
|
1263
|
+
},
|
|
1264
|
+
"minItems": 1
|
|
1265
|
+
}
|
|
1266
|
+
]
|
|
1267
|
+
},
|
|
1268
|
+
"line": {
|
|
1269
|
+
"description": "Lines by kind (default calls).",
|
|
1270
|
+
"anyOf": [
|
|
1271
|
+
{
|
|
1272
|
+
"enum": [
|
|
1273
|
+
"calls",
|
|
1274
|
+
"feeds",
|
|
1275
|
+
"triggers",
|
|
1276
|
+
"state",
|
|
1277
|
+
"guard"
|
|
1278
|
+
]
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
"type": "array",
|
|
1282
|
+
"items": {
|
|
1283
|
+
"enum": [
|
|
1284
|
+
"calls",
|
|
1285
|
+
"feeds",
|
|
1286
|
+
"triggers",
|
|
1287
|
+
"state",
|
|
1288
|
+
"guard"
|
|
1289
|
+
]
|
|
1290
|
+
},
|
|
1291
|
+
"minItems": 1
|
|
1292
|
+
}
|
|
1293
|
+
]
|
|
1294
|
+
},
|
|
1295
|
+
"not": {
|
|
1296
|
+
"$ref": "#/$defs/selector",
|
|
1297
|
+
"description": "The cards this selector does not pick."
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1137
1300
|
}
|
|
1138
1301
|
}
|
|
1139
1302
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "umlimator",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.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/",
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"bugs": { "url": "https://github.com/zintaen/umlimator/issues" },
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"type": "module",
|
|
11
|
-
"exports": { ".": { "types": "./lib/umlimator.d.ts", "default": "./lib/umlimator.js" }, "./theme.css": "./lib/umlimator-theme.css", "./schema.json": "./lib/umlimator.schema.json"
|
|
11
|
+
"exports": { ".": { "types": "./lib/umlimator.d.ts", "default": "./lib/umlimator.js" }, "./theme.css": "./lib/umlimator-theme.css", "./schema.json": "./lib/umlimator.schema.json",
|
|
12
|
+
"./element": "./lib/umlimator-element.js", "./markdown-it": "./lib/umlimator-markdown-it.js", "./remark": "./lib/umlimator-remark.js" },
|
|
12
13
|
"files": ["lib/", "LICENSE", "THIRD_PARTY_NOTICES.md"],
|
|
13
14
|
"scripts": { "test": "node --test" },
|
|
14
15
|
"engines": { "node": ">=18" }
|