umlimator 0.18.0 → 0.20.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.
@@ -419,7 +419,7 @@
419
419
  }
420
420
  },
421
421
  "type": {
422
- "description": "Schema version 2: the element's type, <notation>.<Name> (uml.Class). validate() checks typed fields only in a model with schemaVersion 2. The class diagram (uml.class, 0.18.0): uml.Class, uml.Interface, uml.Enumeration, uml.DataType, uml.PrimitiveType, uml.Package and uml.Comment; their members uml.Property, uml.Operation and uml.EnumerationLiteral.",
422
+ "description": "Schema version 2: the element's type, <notation>.<Name> (uml.Class). validate() checks typed fields only in a model with schemaVersion 2. The class diagram (uml.class, 0.18.0): uml.Class, uml.Interface, uml.Enumeration, uml.DataType, uml.PrimitiveType, uml.Package and uml.Comment; their members uml.Property, uml.Operation and uml.EnumerationLiteral. The object diagram (uml.object, 0.19.0): uml.InstanceSpecification and uml.Comment; an instance's members uml.Slot. The package diagram (uml.package, 0.19.0): uml.Package and the class diagram's classifiers, and uml.Comment. The sequence and communication diagrams (uml.sequence, uml.communication, 0.20.0): uml.Lifeline.",
423
423
  "examples": [
424
424
  "uml.Class",
425
425
  "uml.Interface",
@@ -427,14 +427,16 @@
427
427
  "uml.DataType",
428
428
  "uml.PrimitiveType",
429
429
  "uml.Package",
430
- "uml.Comment"
430
+ "uml.Comment",
431
+ "uml.InstanceSpecification",
432
+ "uml.Lifeline"
431
433
  ]
432
434
  },
433
435
  "parent": {
434
- "description": "Schema version 2: the element that owns it (a package, a composite state, a lane)."
436
+ "description": "Schema version 2: the element that owns it (a package, a composite state, a lane). From 0.19.0 a class, object or package view draws a shown package that owns something it shows as a box holding it."
435
437
  },
436
438
  "props": {
437
- "description": "Schema version 2: the type's own properties. The class diagram (uml.class, 0.18.0): isAbstract and stereotypes on a classifier; on a member, the fields of its UML text (docs/conformance/uml-class.md).",
439
+ "description": "Schema version 2: the type's own properties. The class diagram (uml.class, 0.18.0): isAbstract and stereotypes on a classifier; on a member, the fields of its UML text (docs/conformance/uml-class.md). The object diagram (uml.object, 0.19.0): an instance's classifier and stereotypes; a slot's value (docs/conformance/uml-object.md). The sequence and communication diagrams (uml.sequence, uml.communication, 0.20.0): a lifeline's represents, and stereotypes (actor draws «actor» over its name).",
438
440
  "anyOf": [
439
441
  {
440
442
  "type": "object",
@@ -444,6 +446,12 @@
444
446
  },
445
447
  "stereotypes": {
446
448
  "description": "Any UML element: names drawn «in guillemets», as text (['entity'])."
449
+ },
450
+ "classifier": {
451
+ "description": "uml.InstanceSpecification: the name (or qualified name, sales::Order) of the classifier it is an instance of, as text; drawn name : Classifier, underlined."
452
+ },
453
+ "represents": {
454
+ "description": "uml.Lifeline: what it is an instance of, by name, as text; drawn name : Type (docs/diagrams/risks.md M8)."
447
455
  }
448
456
  }
449
457
  },
@@ -451,7 +459,7 @@
451
459
  ]
452
460
  },
453
461
  "members": {
454
- "description": "Schema version 2: owned parts, in display order (attributes, ports, regions, lanes), each a typed element. The class diagram (uml.class, 0.18.0): a classifier's attributes (uml.Property) and operations (uml.Operation), an enumeration's literals (uml.EnumerationLiteral).",
462
+ "description": "Schema version 2: owned parts, in display order (attributes, ports, regions, lanes), each a typed element. The class diagram (uml.class, 0.18.0): a classifier's attributes (uml.Property) and operations (uml.Operation), an enumeration's literals (uml.EnumerationLiteral). The object diagram (uml.object, 0.19.0): an instance's slots (uml.Slot), each a feature = value row.",
455
463
  "anyOf": [
456
464
  {
457
465
  "type": "array",
@@ -465,10 +473,10 @@
465
473
  "description": "Unique among every node, edge and member of the model."
466
474
  },
467
475
  "type": {
468
- "description": "uml.Property, uml.Operation or uml.EnumerationLiteral in a class diagram."
476
+ "description": "uml.Property, uml.Operation or uml.EnumerationLiteral in a class diagram; uml.Slot in an object diagram."
469
477
  },
470
478
  "label": {
471
- "description": "The member's name; the rest of its UML text is in props."
479
+ "description": "The member's name (a slot's: the feature it gives a value); the rest of its UML text is in props."
472
480
  },
473
481
  "props": {
474
482
  "description": "The member's UML text as fields: + {static} /total: Money [1] = 0.",
@@ -505,6 +513,9 @@
505
513
  },
506
514
  "returnType": {
507
515
  "description": "uml.Operation: its return type, as text."
516
+ },
517
+ "value": {
518
+ "description": "uml.Slot: its value, as text (34.00 EUR); left out, the slot is drawn by its feature's name."
508
519
  }
509
520
  }
510
521
  },
@@ -807,26 +818,31 @@
807
818
  "description": "When the line is used."
808
819
  },
809
820
  "type": {
810
- "description": "Schema version 2: the element's type, <notation>.<Name> (uml.Class). The class diagram (uml.class, 0.18.0): uml.Association, uml.Generalization (from the specific to the general), uml.InterfaceRealization (to the interface), uml.Dependency (from the client) and uml.CommentLink (from the comment).",
821
+ "description": "Schema version 2: the element's type, <notation>.<Name> (uml.Class). The class diagram (uml.class, 0.18.0): uml.Association, uml.Generalization (from the specific to the general), uml.InterfaceRealization (to the interface), uml.Dependency (from the client) and uml.CommentLink (from the comment). The object diagram (uml.object, 0.19.0): uml.Link and uml.CommentLink. The package diagram (uml.package, 0.19.0): uml.PackageImport and uml.PackageMerge (from the importing or merging package), uml.Dependency and uml.CommentLink. The sequence diagram (uml.sequence, 0.20.0): uml.Message, inline in its view's edges, in time order. The communication diagram (uml.communication, 0.20.0): uml.Connector and uml.Message, model lines its view lists, connectors first; only the messages' order means anything.",
811
822
  "examples": [
812
823
  "uml.Association",
813
824
  "uml.Generalization",
814
825
  "uml.InterfaceRealization",
815
826
  "uml.Dependency",
816
- "uml.CommentLink"
827
+ "uml.CommentLink",
828
+ "uml.Link",
829
+ "uml.PackageImport",
830
+ "uml.PackageMerge",
831
+ "uml.Message",
832
+ "uml.Connector"
817
833
  ]
818
834
  },
819
835
  "parent": {
820
- "description": "Schema version 2: the element that owns it (a package, a composite state, a lane)."
836
+ "description": "Schema version 2: the element that owns it (a package, a composite state, a lane). In a sequence view: the operand (uml.InteractionOperand) of one of its fragments that holds the message; none at the top level."
821
837
  },
822
838
  "props": {
823
- "description": "Schema version 2: the type's own properties. The class diagram (uml.class, 0.18.0): an association's ends, and stereotypes on any line («use» on a dependency).",
839
+ "description": "Schema version 2: the type's own properties. The class diagram (uml.class, 0.18.0): an association's ends, and stereotypes on any line («use» on a dependency). The object diagram (uml.object, 0.19.0): a link's association and the roles at its ends. The package diagram (uml.package, 0.19.0): a package import's visibility. The sequence and communication diagrams (0.20.0): a message's sort and replyTo.",
824
840
  "anyOf": [
825
841
  {
826
842
  "type": "object",
827
843
  "properties": {
828
844
  "ends": {
829
- "description": "uml.Association: { from, to }, each end's role, multiplicity, aggregation and navigability.",
845
+ "description": "uml.Association: { from, to }, each end's role, multiplicity, aggregation and navigability. uml.Link: each end's role.",
830
846
  "anyOf": [
831
847
  {
832
848
  "type": "object",
@@ -884,6 +900,25 @@
884
900
  },
885
901
  "stereotypes": {
886
902
  "description": "Any UML element: names drawn «in guillemets», as text (['entity'])."
903
+ },
904
+ "association": {
905
+ "description": "uml.Link: the name of the association it is an instance of, as text; drawn on the line when the link has no label."
906
+ },
907
+ "visibility": {
908
+ "description": "uml.PackageImport: public (the default, drawn «import») or private (drawn «access»)."
909
+ },
910
+ "sort": {
911
+ "description": "uml.Message: call (the default), async, reply, create or delete; any other is drawn as a call, with a warning.",
912
+ "examples": [
913
+ "call",
914
+ "async",
915
+ "reply",
916
+ "create",
917
+ "delete"
918
+ ]
919
+ },
920
+ "replyTo": {
921
+ "description": "uml.Message, a reply: the id of the earlier call it answers, which it goes back along."
887
922
  }
888
923
  }
889
924
  },
@@ -969,7 +1004,7 @@
969
1004
  },
970
1005
  "edges": {
971
1006
  "type": "array",
972
- "description": "The lines this view draws: model line ids or lines of its own. Default: every model line between its cards; [] draws none.",
1007
+ "description": "The lines this view draws: model line ids or lines of its own. Default: every model line between its cards; [] draws none. In a sequence view (uml.sequence, 0.20.0): its occurrences in time order, each message and interaction use inline, a fragment's operand by operand.",
973
1008
  "items": {
974
1009
  "anyOf": [
975
1010
  {
@@ -977,6 +1012,49 @@
977
1012
  },
978
1013
  {
979
1014
  "$ref": "#/$defs/edge"
1015
+ },
1016
+ {
1017
+ "type": "object",
1018
+ "required": [
1019
+ "id",
1020
+ "type"
1021
+ ],
1022
+ "properties": {
1023
+ "type": {
1024
+ "const": "uml.InteractionUse"
1025
+ },
1026
+ "label": {
1027
+ "description": "The interaction it refers to, by name."
1028
+ },
1029
+ "parent": {
1030
+ "description": "The operand (uml.InteractionOperand) that holds it; none at the top level."
1031
+ },
1032
+ "props": {
1033
+ "properties": {
1034
+ "covers": {
1035
+ "description": "The ids of the lifelines it spans, next to each other in the view's nodeIds."
1036
+ },
1037
+ "refersTo": {
1038
+ "description": "The id of the view it refers to."
1039
+ }
1040
+ }
1041
+ }
1042
+ },
1043
+ "not": {
1044
+ "anyOf": [
1045
+ {
1046
+ "required": [
1047
+ "from"
1048
+ ]
1049
+ },
1050
+ {
1051
+ "required": [
1052
+ "to"
1053
+ ]
1054
+ }
1055
+ ]
1056
+ },
1057
+ "description": "Schema version 2: an occurrence of a sequence view that is not a line: an interaction use (uml.InteractionUse), its label the interaction it refers to, props.covers the lifelines it spans (next to each other in nodeIds), props.refersTo a view's id, parent its operand."
980
1058
  }
981
1059
  ]
982
1060
  }
@@ -1130,16 +1208,20 @@
1130
1208
  "description": "Guess a line's kind from its label's words when its edges name none (render() and layout(); the standalone page always does)."
1131
1209
  },
1132
1210
  "diagram": {
1133
- "description": "Schema version 2: the view's diagram type; without it the view is a map. uml.class draws a class diagram (0.18.0, lib/umlimator-all.js); a type this release does not draw is drawn as plain cards, with a warning.",
1211
+ "description": "Schema version 2: the view's diagram type; without it the view is a map. uml.class draws a class diagram (0.18.0, lib/umlimator-all.js), uml.object an object diagram and uml.package a package diagram (0.19.0), uml.sequence a sequence diagram and uml.communication a communication diagram (0.20.0); a type this release does not draw is drawn as plain cards, with a warning.",
1134
1212
  "examples": [
1135
- "uml.class"
1213
+ "uml.class",
1214
+ "uml.object",
1215
+ "uml.package",
1216
+ "uml.sequence",
1217
+ "uml.communication"
1136
1218
  ]
1137
1219
  },
1138
1220
  "subject": {
1139
- "description": "Schema version 2: the element this diagram is the inside of."
1221
+ "description": "Schema version 2: the element this diagram is the inside of. In a class, object or package view, the package names are qualified from (sales::Order without sales:: in a view of sales); not drawn unless the view lists it."
1140
1222
  },
1141
1223
  "direction": {
1142
- "description": "Schema version 2: a typed view's layout direction (default right). A map stays left to right."
1224
+ "description": "Schema version 2: a typed view's layout direction (default right). A map stays left to right. A sequence view is always down; another direction is a warning."
1143
1225
  },
1144
1226
  "notation": {
1145
1227
  "description": "Schema version 2: a skin of the diagram type (crowsfoot for er)."
@@ -1171,7 +1253,48 @@
1171
1253
  ]
1172
1254
  },
1173
1255
  "fragments": {
1174
- "description": "Schema version 2: a sequence view's combined fragments and interaction uses."
1256
+ "description": "Schema version 2: a sequence view's combined fragments (uml.CombinedFragment, props.operator alt, opt, loop, par or break), outermost first; each one's members are its operands (uml.InteractionOperand, label the guard) in order, and its parent is the operand that holds it (uml.sequence, 0.20.0).",
1257
+ "items": {
1258
+ "properties": {
1259
+ "type": {
1260
+ "examples": [
1261
+ "uml.CombinedFragment"
1262
+ ]
1263
+ },
1264
+ "parent": {
1265
+ "description": "The operand (uml.InteractionOperand) that holds it; none at the top level."
1266
+ },
1267
+ "props": {
1268
+ "properties": {
1269
+ "operator": {
1270
+ "description": "The fragment's operator; any other is a warning.",
1271
+ "examples": [
1272
+ "alt",
1273
+ "opt",
1274
+ "loop",
1275
+ "par",
1276
+ "break"
1277
+ ]
1278
+ }
1279
+ }
1280
+ },
1281
+ "members": {
1282
+ "description": "Its operands, in order.",
1283
+ "items": {
1284
+ "properties": {
1285
+ "type": {
1286
+ "examples": [
1287
+ "uml.InteractionOperand"
1288
+ ]
1289
+ },
1290
+ "label": {
1291
+ "description": "The operand's guard."
1292
+ }
1293
+ }
1294
+ }
1295
+ }
1296
+ }
1297
+ }
1175
1298
  },
1176
1299
  "timeline": {
1177
1300
  "description": "Schema version 2: a timing view's unit, changes and constraints."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umlimator",
3
- "version": "0.18.0",
3
+ "version": "0.20.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/",