umlimator 0.17.0 → 0.19.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 +47 -7
- package/lib/umlimator-all.js +3630 -347
- package/lib/umlimator.d.ts +54 -4
- package/lib/umlimator.js +302 -347
- package/lib/umlimator.schema.json +218 -9
- package/package.json +1 -1
|
@@ -419,16 +419,113 @@
|
|
|
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."
|
|
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.",
|
|
423
|
+
"examples": [
|
|
424
|
+
"uml.Class",
|
|
425
|
+
"uml.Interface",
|
|
426
|
+
"uml.Enumeration",
|
|
427
|
+
"uml.DataType",
|
|
428
|
+
"uml.PrimitiveType",
|
|
429
|
+
"uml.Package",
|
|
430
|
+
"uml.Comment",
|
|
431
|
+
"uml.InstanceSpecification"
|
|
432
|
+
]
|
|
423
433
|
},
|
|
424
434
|
"parent": {
|
|
425
|
-
"description": "Schema version 2: the element that owns it (a package, a composite state, a lane)."
|
|
435
|
+
"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."
|
|
426
436
|
},
|
|
427
437
|
"props": {
|
|
428
|
-
"description": "Schema version 2: the type's own properties."
|
|
438
|
+
"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).",
|
|
439
|
+
"anyOf": [
|
|
440
|
+
{
|
|
441
|
+
"type": "object",
|
|
442
|
+
"properties": {
|
|
443
|
+
"isAbstract": {
|
|
444
|
+
"description": "uml.Class, uml.Operation: true draws the name in italics ({abstract} in a member's text)."
|
|
445
|
+
},
|
|
446
|
+
"stereotypes": {
|
|
447
|
+
"description": "Any UML element: names drawn «in guillemets», as text (['entity'])."
|
|
448
|
+
},
|
|
449
|
+
"classifier": {
|
|
450
|
+
"description": "uml.InstanceSpecification: the name (or qualified name, sales::Order) of the classifier it is an instance of, as text; drawn name : Classifier, underlined."
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
true
|
|
455
|
+
]
|
|
429
456
|
},
|
|
430
457
|
"members": {
|
|
431
|
-
"description": "Schema version 2: owned parts, in display order (attributes, ports, regions, lanes), each a typed element."
|
|
458
|
+
"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.",
|
|
459
|
+
"anyOf": [
|
|
460
|
+
{
|
|
461
|
+
"type": "array",
|
|
462
|
+
"items": {
|
|
463
|
+
"description": "A member: { id, type, label, props }, in the same envelope as a node.",
|
|
464
|
+
"anyOf": [
|
|
465
|
+
{
|
|
466
|
+
"type": "object",
|
|
467
|
+
"properties": {
|
|
468
|
+
"id": {
|
|
469
|
+
"description": "Unique among every node, edge and member of the model."
|
|
470
|
+
},
|
|
471
|
+
"type": {
|
|
472
|
+
"description": "uml.Property, uml.Operation or uml.EnumerationLiteral in a class diagram; uml.Slot in an object diagram."
|
|
473
|
+
},
|
|
474
|
+
"label": {
|
|
475
|
+
"description": "The member's name (a slot's: the feature it gives a value); the rest of its UML text is in props."
|
|
476
|
+
},
|
|
477
|
+
"props": {
|
|
478
|
+
"description": "The member's UML text as fields: + {static} /total: Money [1] = 0.",
|
|
479
|
+
"anyOf": [
|
|
480
|
+
{
|
|
481
|
+
"type": "object",
|
|
482
|
+
"properties": {
|
|
483
|
+
"isAbstract": {
|
|
484
|
+
"description": "uml.Class, uml.Operation: true draws the name in italics ({abstract} in a member's text)."
|
|
485
|
+
},
|
|
486
|
+
"stereotypes": {
|
|
487
|
+
"description": "Any UML element: names drawn «in guillemets», as text (['entity'])."
|
|
488
|
+
},
|
|
489
|
+
"visibility": {
|
|
490
|
+
"description": "uml.Property, uml.Operation: public, private, protected or package (+ - # ~)."
|
|
491
|
+
},
|
|
492
|
+
"valueType": {
|
|
493
|
+
"description": "uml.Property, and each of an operation's parameters: its type, as text (Money, String[], Map<K, V>)."
|
|
494
|
+
},
|
|
495
|
+
"multiplicity": {
|
|
496
|
+
"description": "uml.Property: 1, *, n..m or n..* (0..1, 1..*), kept as written."
|
|
497
|
+
},
|
|
498
|
+
"default": {
|
|
499
|
+
"description": "uml.Property: its default value, as text."
|
|
500
|
+
},
|
|
501
|
+
"isStatic": {
|
|
502
|
+
"description": "uml.Property, uml.Operation: true underlines it ({static} in its text)."
|
|
503
|
+
},
|
|
504
|
+
"isDerived": {
|
|
505
|
+
"description": "uml.Property: true writes / before its name."
|
|
506
|
+
},
|
|
507
|
+
"parameters": {
|
|
508
|
+
"description": "uml.Operation: [{ name, valueType, direction }], direction in, out, inout or return."
|
|
509
|
+
},
|
|
510
|
+
"returnType": {
|
|
511
|
+
"description": "uml.Operation: its return type, as text."
|
|
512
|
+
},
|
|
513
|
+
"value": {
|
|
514
|
+
"description": "uml.Slot: its value, as text (34.00 EUR); left out, the slot is drawn by its feature's name."
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
true
|
|
519
|
+
]
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
true
|
|
524
|
+
]
|
|
525
|
+
}
|
|
526
|
+
},
|
|
527
|
+
true
|
|
528
|
+
]
|
|
432
529
|
}
|
|
433
530
|
}
|
|
434
531
|
},
|
|
@@ -717,13 +814,97 @@
|
|
|
717
814
|
"description": "When the line is used."
|
|
718
815
|
},
|
|
719
816
|
"type": {
|
|
720
|
-
"description": "Schema version 2: the element's type, <notation>.<Name> (uml.Class)."
|
|
817
|
+
"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.",
|
|
818
|
+
"examples": [
|
|
819
|
+
"uml.Association",
|
|
820
|
+
"uml.Generalization",
|
|
821
|
+
"uml.InterfaceRealization",
|
|
822
|
+
"uml.Dependency",
|
|
823
|
+
"uml.CommentLink",
|
|
824
|
+
"uml.Link",
|
|
825
|
+
"uml.PackageImport",
|
|
826
|
+
"uml.PackageMerge"
|
|
827
|
+
]
|
|
721
828
|
},
|
|
722
829
|
"parent": {
|
|
723
830
|
"description": "Schema version 2: the element that owns it (a package, a composite state, a lane)."
|
|
724
831
|
},
|
|
725
832
|
"props": {
|
|
726
|
-
"description": "Schema version 2: the type's own properties."
|
|
833
|
+
"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.",
|
|
834
|
+
"anyOf": [
|
|
835
|
+
{
|
|
836
|
+
"type": "object",
|
|
837
|
+
"properties": {
|
|
838
|
+
"ends": {
|
|
839
|
+
"description": "uml.Association: { from, to }, each end's role, multiplicity, aggregation and navigability. uml.Link: each end's role.",
|
|
840
|
+
"anyOf": [
|
|
841
|
+
{
|
|
842
|
+
"type": "object",
|
|
843
|
+
"properties": {
|
|
844
|
+
"from": {
|
|
845
|
+
"description": "One end of an association.",
|
|
846
|
+
"anyOf": [
|
|
847
|
+
{
|
|
848
|
+
"type": "object",
|
|
849
|
+
"properties": {
|
|
850
|
+
"role": {
|
|
851
|
+
"description": "The role name, drawn by the end."
|
|
852
|
+
},
|
|
853
|
+
"multiplicity": {
|
|
854
|
+
"description": "Drawn by the end: 1, *, n..m or n..*."
|
|
855
|
+
},
|
|
856
|
+
"aggregation": {
|
|
857
|
+
"description": "none, shared (a hollow diamond at this end) or composite (a filled diamond; its multiplicity at most 1)."
|
|
858
|
+
},
|
|
859
|
+
"navigable": {
|
|
860
|
+
"description": "true draws an open arrowhead at this end."
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
},
|
|
864
|
+
true
|
|
865
|
+
]
|
|
866
|
+
},
|
|
867
|
+
"to": {
|
|
868
|
+
"description": "One end of an association.",
|
|
869
|
+
"anyOf": [
|
|
870
|
+
{
|
|
871
|
+
"type": "object",
|
|
872
|
+
"properties": {
|
|
873
|
+
"role": {
|
|
874
|
+
"description": "The role name, drawn by the end."
|
|
875
|
+
},
|
|
876
|
+
"multiplicity": {
|
|
877
|
+
"description": "Drawn by the end: 1, *, n..m or n..*."
|
|
878
|
+
},
|
|
879
|
+
"aggregation": {
|
|
880
|
+
"description": "none, shared (a hollow diamond at this end) or composite (a filled diamond; its multiplicity at most 1)."
|
|
881
|
+
},
|
|
882
|
+
"navigable": {
|
|
883
|
+
"description": "true draws an open arrowhead at this end."
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
},
|
|
887
|
+
true
|
|
888
|
+
]
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
},
|
|
892
|
+
true
|
|
893
|
+
]
|
|
894
|
+
},
|
|
895
|
+
"stereotypes": {
|
|
896
|
+
"description": "Any UML element: names drawn «in guillemets», as text (['entity'])."
|
|
897
|
+
},
|
|
898
|
+
"association": {
|
|
899
|
+
"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."
|
|
900
|
+
},
|
|
901
|
+
"visibility": {
|
|
902
|
+
"description": "uml.PackageImport: public (the default, drawn «import») or private (drawn «access»)."
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
},
|
|
906
|
+
true
|
|
907
|
+
]
|
|
727
908
|
}
|
|
728
909
|
}
|
|
729
910
|
},
|
|
@@ -965,10 +1146,15 @@
|
|
|
965
1146
|
"description": "Guess a line's kind from its label's words when its edges name none (render() and layout(); the standalone page always does)."
|
|
966
1147
|
},
|
|
967
1148
|
"diagram": {
|
|
968
|
-
"description": "Schema version 2: the view's diagram type
|
|
1149
|
+
"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); a type this release does not draw is drawn as plain cards, with a warning.",
|
|
1150
|
+
"examples": [
|
|
1151
|
+
"uml.class",
|
|
1152
|
+
"uml.object",
|
|
1153
|
+
"uml.package"
|
|
1154
|
+
]
|
|
969
1155
|
},
|
|
970
1156
|
"subject": {
|
|
971
|
-
"description": "Schema version 2: the element this diagram is the inside of."
|
|
1157
|
+
"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."
|
|
972
1158
|
},
|
|
973
1159
|
"direction": {
|
|
974
1160
|
"description": "Schema version 2: a typed view's layout direction (default right). A map stays left to right."
|
|
@@ -977,7 +1163,30 @@
|
|
|
977
1163
|
"description": "Schema version 2: a skin of the diagram type (crowsfoot for er)."
|
|
978
1164
|
},
|
|
979
1165
|
"present": {
|
|
980
|
-
"description": "Schema version 2: what the layout cannot derive, per element: collapsed compartments, rows shown before +n more."
|
|
1166
|
+
"description": "Schema version 2: what the layout cannot derive, per element: collapsed compartments, rows shown before +n more.",
|
|
1167
|
+
"anyOf": [
|
|
1168
|
+
{
|
|
1169
|
+
"type": "object",
|
|
1170
|
+
"additionalProperties": {
|
|
1171
|
+
"description": "What a view shows of one element, by its id.",
|
|
1172
|
+
"anyOf": [
|
|
1173
|
+
{
|
|
1174
|
+
"type": "object",
|
|
1175
|
+
"properties": {
|
|
1176
|
+
"collapsed": {
|
|
1177
|
+
"description": "Compartments not drawn, divider and all: ['attributes', 'operations'] (an enumeration's: 'literals')."
|
|
1178
|
+
},
|
|
1179
|
+
"rows": {
|
|
1180
|
+
"description": "At most this many rows in each compartment, then \"+k more\"."
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
},
|
|
1184
|
+
true
|
|
1185
|
+
]
|
|
1186
|
+
}
|
|
1187
|
+
},
|
|
1188
|
+
true
|
|
1189
|
+
]
|
|
981
1190
|
},
|
|
982
1191
|
"fragments": {
|
|
983
1192
|
"description": "Schema version 2: a sequence view's combined fragments and interaction uses."
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "umlimator",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.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/",
|