umlimator 0.20.0 → 0.22.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 +93 -34
- package/lib/umlimator-all.js +4669 -221
- package/lib/umlimator-element.js +2 -5
- package/lib/umlimator.d.ts +78 -19
- package/lib/umlimator.js +128 -168
- package/lib/umlimator.schema.json +143 -35
- package/package.json +2 -2
|
@@ -23,14 +23,6 @@
|
|
|
23
23
|
"type": "string",
|
|
24
24
|
"description": "The view shown first (default: the view with no parent)."
|
|
25
25
|
},
|
|
26
|
-
"shapes": {
|
|
27
|
-
"enum": [
|
|
28
|
-
"box",
|
|
29
|
-
"c4",
|
|
30
|
-
"uml"
|
|
31
|
-
],
|
|
32
|
-
"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)."
|
|
33
|
-
},
|
|
34
26
|
"nodes": {
|
|
35
27
|
"type": "array",
|
|
36
28
|
"items": {
|
|
@@ -311,7 +303,7 @@
|
|
|
311
303
|
"folder",
|
|
312
304
|
"node"
|
|
313
305
|
],
|
|
314
|
-
"description": "The card's own shape
|
|
306
|
+
"description": "The card's own shape (0.15.0): box, person, browser, mobile, cylinder, pipe, document, hexagon, robot, terminal, window, folder or node. Without it a map draws the card by its kind (a rounded box where no shape says more)."
|
|
315
307
|
},
|
|
316
308
|
"noSub": {
|
|
317
309
|
"type": "boolean",
|
|
@@ -319,7 +311,7 @@
|
|
|
319
311
|
},
|
|
320
312
|
"opensView": {
|
|
321
313
|
"type": "string",
|
|
322
|
-
"description": "The view the card opens. It may name a view the host loads only when it is opened."
|
|
314
|
+
"description": "The view the card opens. It may name a view the host loads only when it is opened. Schema version 2: the view a call behaviour action (an activity view), an interaction use or an inline interaction (a uml.sequence view) opens (0.21.0)."
|
|
323
315
|
},
|
|
324
316
|
"opensCount": {
|
|
325
317
|
"type": "integer",
|
|
@@ -419,7 +411,7 @@
|
|
|
419
411
|
}
|
|
420
412
|
},
|
|
421
413
|
"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. 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.",
|
|
414
|
+
"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. The use case diagram (uml.use-case, 0.21.0): uml.Actor, uml.UseCase, uml.Subject and uml.Comment; a use case's members uml.ExtensionPoint. The activity diagram (uml.activity, 0.21.0): uml.InitialNode, uml.ActivityFinalNode, uml.FlowFinalNode, uml.Action, uml.CallBehaviorAction, uml.SendSignalAction, uml.AcceptEventAction, uml.DecisionNode, uml.MergeNode, uml.ForkNode, uml.JoinNode, uml.ObjectNode, uml.DataStoreNode, uml.ActivityPartition and uml.Comment. The state machine diagram (uml.state-machine, 0.21.0): uml.State, uml.Pseudostate, uml.FinalState and uml.Comment; a state's members uml.Region and uml.InternalTransition. The interaction overview diagram (uml.interaction-overview, 0.21.0): the activity's control nodes, uml.InteractionUse, uml.Interaction (an inline interaction) and uml.Comment. The component diagram (uml.component, 0.22.0): uml.Component, uml.Interface, uml.Artifact, uml.Package and uml.Comment; a component's (or class's) members uml.Port. The deployment diagram (uml.deployment, 0.22.0): uml.Node, uml.Device, uml.ExecutionEnvironment, uml.Artifact, uml.DeploymentSpecification, uml.Component and uml.Comment. The composite structure diagram (uml.composite-structure, 0.22.0): the view's subject (a uml.Class, uml.Component or uml.Collaboration), uml.Collaboration, uml.CollaborationUse and uml.Comment; the subject's members uml.Property (its parts) and uml.Port, a collaboration's uml.Property (its roles).",
|
|
423
415
|
"examples": [
|
|
424
416
|
"uml.Class",
|
|
425
417
|
"uml.Interface",
|
|
@@ -429,14 +421,33 @@
|
|
|
429
421
|
"uml.Package",
|
|
430
422
|
"uml.Comment",
|
|
431
423
|
"uml.InstanceSpecification",
|
|
432
|
-
"uml.Lifeline"
|
|
424
|
+
"uml.Lifeline",
|
|
425
|
+
"uml.Actor",
|
|
426
|
+
"uml.UseCase",
|
|
427
|
+
"uml.Subject",
|
|
428
|
+
"uml.Action",
|
|
429
|
+
"uml.DecisionNode",
|
|
430
|
+
"uml.ActivityPartition",
|
|
431
|
+
"uml.State",
|
|
432
|
+
"uml.Pseudostate",
|
|
433
|
+
"uml.FinalState",
|
|
434
|
+
"uml.InteractionUse",
|
|
435
|
+
"uml.Interaction",
|
|
436
|
+
"uml.Component",
|
|
437
|
+
"uml.Artifact",
|
|
438
|
+
"uml.Node",
|
|
439
|
+
"uml.Device",
|
|
440
|
+
"uml.ExecutionEnvironment",
|
|
441
|
+
"uml.DeploymentSpecification",
|
|
442
|
+
"uml.Collaboration",
|
|
443
|
+
"uml.CollaborationUse"
|
|
433
444
|
]
|
|
434
445
|
},
|
|
435
446
|
"parent": {
|
|
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."
|
|
447
|
+
"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. A use case's: a subject or a package. An activity node's: its partition (lane); a partition's: the partition it is nested in. A substate's or pseudostate's: a state, or a region (a member) of one. A component's: a component (drawn nested) or a package. A node's, device's or execution environment's: one of the three (UML's nestedNode); an artifact's or deployment specification's: the target it is deployed on. A collaboration use's: the subject of its composite structure view (0.22.0)."
|
|
437
448
|
},
|
|
438
449
|
"props": {
|
|
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).",
|
|
450
|
+
"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). The state machine diagram (uml.state-machine, 0.21.0): a state's entry, do and exit, a pseudostate's kind (docs/conformance/uml-state-machine.md). The composite structure diagram (uml.composite-structure, 0.22.0): a collaboration use's collaboration (docs/conformance/uml-composite-structure.md).",
|
|
440
451
|
"anyOf": [
|
|
441
452
|
{
|
|
442
453
|
"type": "object",
|
|
@@ -452,6 +463,31 @@
|
|
|
452
463
|
},
|
|
453
464
|
"represents": {
|
|
454
465
|
"description": "uml.Lifeline: what it is an instance of, by name, as text; drawn name : Type (docs/diagrams/risks.md M8)."
|
|
466
|
+
},
|
|
467
|
+
"entry": {
|
|
468
|
+
"description": "uml.State: its entry activity, as text; drawn as the row entry / text."
|
|
469
|
+
},
|
|
470
|
+
"do": {
|
|
471
|
+
"description": "uml.State: its do activity, as text; drawn as the row do / text."
|
|
472
|
+
},
|
|
473
|
+
"exit": {
|
|
474
|
+
"description": "uml.State: its exit activity, as text; drawn as the row exit / text."
|
|
475
|
+
},
|
|
476
|
+
"kind": {
|
|
477
|
+
"description": "uml.Pseudostate: which pseudostate it is; any other is drawn as a junction, with a warning.",
|
|
478
|
+
"examples": [
|
|
479
|
+
"initial",
|
|
480
|
+
"choice",
|
|
481
|
+
"junction",
|
|
482
|
+
"fork",
|
|
483
|
+
"join",
|
|
484
|
+
"shallowHistory",
|
|
485
|
+
"deepHistory",
|
|
486
|
+
"terminate"
|
|
487
|
+
]
|
|
488
|
+
},
|
|
489
|
+
"collaboration": {
|
|
490
|
+
"description": "uml.CollaborationUse: the collaboration it uses, by label, as text; drawn name : Collaboration."
|
|
455
491
|
}
|
|
456
492
|
}
|
|
457
493
|
},
|
|
@@ -459,7 +495,7 @@
|
|
|
459
495
|
]
|
|
460
496
|
},
|
|
461
497
|
"members": {
|
|
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.",
|
|
498
|
+
"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. The use case diagram (uml.use-case, 0.21.0): a use case's extension points (uml.ExtensionPoint, by name). The state machine diagram (uml.state-machine, 0.21.0): a state's regions (uml.Region, by name) and internal transitions (uml.InternalTransition, trigger [guard] / effect). The component diagram (uml.component, 0.22.0): a component's or class's ports (uml.Port), drawn on its border. The composite structure diagram (uml.composite-structure, 0.22.0): the subject's parts (uml.Property, name : Type [multiplicity]) and ports (uml.Port); a collaboration's roles (uml.Property).",
|
|
463
499
|
"anyOf": [
|
|
464
500
|
{
|
|
465
501
|
"type": "array",
|
|
@@ -473,7 +509,7 @@
|
|
|
473
509
|
"description": "Unique among every node, edge and member of the model."
|
|
474
510
|
},
|
|
475
511
|
"type": {
|
|
476
|
-
"description": "uml.Property, uml.Operation or uml.EnumerationLiteral in a class diagram; uml.Slot in an object diagram."
|
|
512
|
+
"description": "uml.Property, uml.Operation or uml.EnumerationLiteral in a class diagram; uml.Slot in an object diagram. uml.ExtensionPoint in a use case diagram; uml.Region or uml.InternalTransition in a state machine diagram. uml.Port on a component or class (component and composite structure diagrams); uml.Property as a part or a role in a composite structure diagram (0.22.0)."
|
|
477
513
|
},
|
|
478
514
|
"label": {
|
|
479
515
|
"description": "The member's name (a slot's: the feature it gives a value); the rest of its UML text is in props."
|
|
@@ -494,7 +530,7 @@
|
|
|
494
530
|
"description": "uml.Property, uml.Operation: public, private, protected or package (+ - # ~)."
|
|
495
531
|
},
|
|
496
532
|
"valueType": {
|
|
497
|
-
"description": "uml.Property, and each of an operation's parameters: its type, as text (Money, String[], Map<K, V>)."
|
|
533
|
+
"description": "uml.Property, and each of an operation's parameters: its type, as text (Money, String[], Map<K, V>). uml.Port: its type, drawn name : Type beside it (0.22.0). A part's or role's: the class or component it is, by label (a part shows that type's ports)."
|
|
498
534
|
},
|
|
499
535
|
"multiplicity": {
|
|
500
536
|
"description": "uml.Property: 1, *, n..m or n..* (0..1, 1..*), kept as written."
|
|
@@ -516,6 +552,22 @@
|
|
|
516
552
|
},
|
|
517
553
|
"value": {
|
|
518
554
|
"description": "uml.Slot: its value, as text (34.00 EUR); left out, the slot is drawn by its feature's name."
|
|
555
|
+
},
|
|
556
|
+
"trigger": {
|
|
557
|
+
"description": "uml.InternalTransition: what triggers it, as text (a trigger list, after 30 days)."
|
|
558
|
+
},
|
|
559
|
+
"guard": {
|
|
560
|
+
"description": "uml.InternalTransition: its guard, as text, drawn [in brackets]."
|
|
561
|
+
},
|
|
562
|
+
"effect": {
|
|
563
|
+
"description": "uml.InternalTransition: its effect, as text, drawn after /."
|
|
564
|
+
},
|
|
565
|
+
"aggregation": {
|
|
566
|
+
"description": "uml.Property as a part (composite structure, 0.22.0): composite (the default) or shared, drawn dashed.",
|
|
567
|
+
"examples": [
|
|
568
|
+
"composite",
|
|
569
|
+
"shared"
|
|
570
|
+
]
|
|
519
571
|
}
|
|
520
572
|
}
|
|
521
573
|
},
|
|
@@ -560,7 +612,7 @@
|
|
|
560
612
|
"folder",
|
|
561
613
|
"node"
|
|
562
614
|
],
|
|
563
|
-
"description": "The card's own shape
|
|
615
|
+
"description": "The card's own shape (0.15.0): box, person, browser, mobile, cylinder, pipe, document, hexagon, robot, terminal, window, folder or node. Without it a map draws the card by its kind (a rounded box where no shape says more)."
|
|
564
616
|
},
|
|
565
617
|
"sublabel": {
|
|
566
618
|
"type": "string",
|
|
@@ -818,7 +870,7 @@
|
|
|
818
870
|
"description": "When the line is used."
|
|
819
871
|
},
|
|
820
872
|
"type": {
|
|
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.",
|
|
873
|
+
"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. The use case diagram (uml.use-case, 0.21.0): uml.Association (an actor and a use case), uml.Include and uml.Extend (from the including or extending use case), uml.Generalization (from the specific to the general) and uml.CommentLink. The activity diagram (uml.activity, 0.21.0): uml.ControlFlow, uml.ObjectFlow and uml.CommentLink. The state machine diagram (uml.state-machine, 0.21.0): uml.Transition and uml.CommentLink. The interaction overview diagram (uml.interaction-overview, 0.21.0): uml.ControlFlow and uml.CommentLink. The component diagram (uml.component, 0.22.0): uml.InterfaceRealization (from a component, a class or a port to the interface: a plain stem to a ball), uml.Usage (to the interface: a socket at a ball, else a dashed «use» arrow), uml.ComponentRealization (from the realizing classifier to the component), uml.Connector (props.kind assembly or delegation; from or to a port), uml.Dependency, uml.Manifestation (from an artifact) and uml.CommentLink. The deployment diagram (uml.deployment, 0.22.0): uml.Deployment (from an artifact or deployment specification to its target), uml.Manifestation, uml.CommunicationPath (between two targets), uml.Dependency and uml.CommentLink. The composite structure diagram (uml.composite-structure, 0.22.0): uml.Connector (between parts and ports; an end through a part keeps props.ends.<end>.part), uml.RoleBinding (from a part to a collaboration use; its label the role) and uml.CommentLink.",
|
|
822
874
|
"examples": [
|
|
823
875
|
"uml.Association",
|
|
824
876
|
"uml.Generalization",
|
|
@@ -829,20 +881,31 @@
|
|
|
829
881
|
"uml.PackageImport",
|
|
830
882
|
"uml.PackageMerge",
|
|
831
883
|
"uml.Message",
|
|
832
|
-
"uml.Connector"
|
|
884
|
+
"uml.Connector",
|
|
885
|
+
"uml.Include",
|
|
886
|
+
"uml.Extend",
|
|
887
|
+
"uml.ControlFlow",
|
|
888
|
+
"uml.ObjectFlow",
|
|
889
|
+
"uml.Transition",
|
|
890
|
+
"uml.Usage",
|
|
891
|
+
"uml.ComponentRealization",
|
|
892
|
+
"uml.Manifestation",
|
|
893
|
+
"uml.Deployment",
|
|
894
|
+
"uml.CommunicationPath",
|
|
895
|
+
"uml.RoleBinding"
|
|
833
896
|
]
|
|
834
897
|
},
|
|
835
898
|
"parent": {
|
|
836
899
|
"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."
|
|
837
900
|
},
|
|
838
901
|
"props": {
|
|
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.",
|
|
902
|
+
"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. The use case diagram (0.21.0): an extend's extensionPoints and condition. The activity and interaction overview diagrams (0.21.0): a flow's guard (its label is its name). The state machine diagram (0.21.0): a transition's trigger, guard and effect, drawn trigger [guard] / effect. The component diagram (0.22.0): a connector's kind (assembly or delegation). The composite structure diagram (0.22.0): a connector end's part (ends.from.part, ends.to.part), UML's partWithPort.",
|
|
840
903
|
"anyOf": [
|
|
841
904
|
{
|
|
842
905
|
"type": "object",
|
|
843
906
|
"properties": {
|
|
844
907
|
"ends": {
|
|
845
|
-
"description": "uml.Association: { from, to }, each end's role, multiplicity, aggregation and navigability. uml.Link: each end's role.",
|
|
908
|
+
"description": "uml.Association: { from, to }, each end's role, multiplicity, aggregation and navigability. uml.Link: each end's role. uml.Connector (composite structure, 0.22.0): an end through a part, { part }: the end (from or to) is a port of the part's type, reached through that part.",
|
|
846
909
|
"anyOf": [
|
|
847
910
|
{
|
|
848
911
|
"type": "object",
|
|
@@ -864,6 +927,9 @@
|
|
|
864
927
|
},
|
|
865
928
|
"navigable": {
|
|
866
929
|
"description": "true draws an open arrowhead at this end."
|
|
930
|
+
},
|
|
931
|
+
"part": {
|
|
932
|
+
"description": "uml.Connector (composite structure, 0.22.0): the part (a member id of the subject) this end's port is reached through."
|
|
867
933
|
}
|
|
868
934
|
}
|
|
869
935
|
},
|
|
@@ -887,6 +953,9 @@
|
|
|
887
953
|
},
|
|
888
954
|
"navigable": {
|
|
889
955
|
"description": "true draws an open arrowhead at this end."
|
|
956
|
+
},
|
|
957
|
+
"part": {
|
|
958
|
+
"description": "uml.Connector (composite structure, 0.22.0): the part (a member id of the subject) this end's port is reached through."
|
|
890
959
|
}
|
|
891
960
|
}
|
|
892
961
|
},
|
|
@@ -919,6 +988,28 @@
|
|
|
919
988
|
},
|
|
920
989
|
"replyTo": {
|
|
921
990
|
"description": "uml.Message, a reply: the id of the earlier call it answers, which it goes back along."
|
|
991
|
+
},
|
|
992
|
+
"extensionPoints": {
|
|
993
|
+
"description": "uml.Extend: the ids of the extension points (uml.ExtensionPoint members) of the use case it extends, at least one; drawn by name."
|
|
994
|
+
},
|
|
995
|
+
"condition": {
|
|
996
|
+
"description": "uml.Extend: when it extends, as text; drawn [in brackets] after its points."
|
|
997
|
+
},
|
|
998
|
+
"guard": {
|
|
999
|
+
"description": "uml.ControlFlow, uml.ObjectFlow, uml.Transition: its guard, as text, drawn [in brackets]; else is drawn [else]."
|
|
1000
|
+
},
|
|
1001
|
+
"trigger": {
|
|
1002
|
+
"description": "uml.Transition: what triggers it, as text (M8: no event is parsed)."
|
|
1003
|
+
},
|
|
1004
|
+
"effect": {
|
|
1005
|
+
"description": "uml.Transition: its effect, as text, drawn after /."
|
|
1006
|
+
},
|
|
1007
|
+
"kind": {
|
|
1008
|
+
"description": "uml.Connector in a component diagram (0.22.0): assembly (two components or their ports, neither inside the other) or delegation (a component's port and something inside it; an open arrow at its to end). Left out: an assembly.",
|
|
1009
|
+
"examples": [
|
|
1010
|
+
"assembly",
|
|
1011
|
+
"delegation"
|
|
1012
|
+
]
|
|
922
1013
|
}
|
|
923
1014
|
}
|
|
924
1015
|
},
|
|
@@ -1195,30 +1286,29 @@
|
|
|
1195
1286
|
"type": "boolean",
|
|
1196
1287
|
"description": "Cards 80 px tall that show their sub-line, then their chips."
|
|
1197
1288
|
},
|
|
1198
|
-
"shapes": {
|
|
1199
|
-
"enum": [
|
|
1200
|
-
"box",
|
|
1201
|
-
"c4",
|
|
1202
|
-
"uml"
|
|
1203
|
-
],
|
|
1204
|
-
"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)."
|
|
1205
|
-
},
|
|
1206
1289
|
"kindsFromLabels": {
|
|
1207
1290
|
"type": "boolean",
|
|
1208
1291
|
"description": "Guess a line's kind from its label's words when its edges name none (render() and layout(); the standalone page always does)."
|
|
1209
1292
|
},
|
|
1210
1293
|
"diagram": {
|
|
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.",
|
|
1294
|
+
"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), uml.use-case a use case diagram, uml.activity an activity diagram, uml.state-machine a state machine diagram and uml.interaction-overview an interaction overview diagram (0.21.0), uml.component a component diagram, uml.deployment a deployment diagram and uml.composite-structure a composite structure diagram (0.22.0); a type this release does not draw is drawn as plain cards, with a warning.",
|
|
1212
1295
|
"examples": [
|
|
1213
1296
|
"uml.class",
|
|
1214
1297
|
"uml.object",
|
|
1215
1298
|
"uml.package",
|
|
1216
1299
|
"uml.sequence",
|
|
1217
|
-
"uml.communication"
|
|
1300
|
+
"uml.communication",
|
|
1301
|
+
"uml.use-case",
|
|
1302
|
+
"uml.activity",
|
|
1303
|
+
"uml.state-machine",
|
|
1304
|
+
"uml.interaction-overview",
|
|
1305
|
+
"uml.component",
|
|
1306
|
+
"uml.deployment",
|
|
1307
|
+
"uml.composite-structure"
|
|
1218
1308
|
]
|
|
1219
1309
|
},
|
|
1220
1310
|
"subject": {
|
|
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."
|
|
1311
|
+
"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. In a composite structure view (0.22.0): the class, component or collaboration whose parts and ports it draws, listed in nodeIds."
|
|
1222
1312
|
},
|
|
1223
1313
|
"direction": {
|
|
1224
1314
|
"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."
|
|
@@ -1227,7 +1317,7 @@
|
|
|
1227
1317
|
"description": "Schema version 2: a skin of the diagram type (crowsfoot for er)."
|
|
1228
1318
|
},
|
|
1229
1319
|
"present": {
|
|
1230
|
-
"description": "Schema version 2: what the layout cannot derive, per element: collapsed compartments, rows shown before +n more.",
|
|
1320
|
+
"description": "Schema version 2: what the layout cannot derive, per element: collapsed compartments, rows shown before +n more. A component view's interface drawn as a ball (as: 'ball'), and a port's side (side); a port on a part, by the part's id: ports.<port>.side (0.22.0).",
|
|
1231
1321
|
"anyOf": [
|
|
1232
1322
|
{
|
|
1233
1323
|
"type": "object",
|
|
@@ -1238,10 +1328,28 @@
|
|
|
1238
1328
|
"type": "object",
|
|
1239
1329
|
"properties": {
|
|
1240
1330
|
"collapsed": {
|
|
1241
|
-
"description": "Compartments not drawn, divider and all: ['attributes', 'operations'] (an enumeration's: 'literals')."
|
|
1331
|
+
"description": "Compartments not drawn, divider and all: ['attributes', 'operations'] (an enumeration's: 'literals'); a state's: 'activities' (its entry, do and exit and internal transitions, 0.21.0)."
|
|
1242
1332
|
},
|
|
1243
1333
|
"rows": {
|
|
1244
1334
|
"description": "At most this many rows in each compartment, then \"+k more\"."
|
|
1335
|
+
},
|
|
1336
|
+
"as": {
|
|
1337
|
+
"description": "uml.Interface in a component view (0.22.0): 'ball' draws it as a ball (a 16 px circle); left out, a rectangle with «interface».",
|
|
1338
|
+
"examples": [
|
|
1339
|
+
"ball"
|
|
1340
|
+
]
|
|
1341
|
+
},
|
|
1342
|
+
"side": {
|
|
1343
|
+
"description": "uml.Port (0.22.0): the side of its owner it is drawn on; left out, the side facing most of its lines.",
|
|
1344
|
+
"examples": [
|
|
1345
|
+
"left",
|
|
1346
|
+
"right",
|
|
1347
|
+
"top",
|
|
1348
|
+
"bottom"
|
|
1349
|
+
]
|
|
1350
|
+
},
|
|
1351
|
+
"ports": {
|
|
1352
|
+
"description": "A part in a composite structure view (0.22.0): by port id, { side }, the side of the part each of its type's ports is drawn on."
|
|
1245
1353
|
}
|
|
1246
1354
|
}
|
|
1247
1355
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "umlimator",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.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/",
|
|
@@ -12,6 +12,6 @@
|
|
|
12
12
|
"./all": { "types": "./lib/umlimator.d.ts", "default": "./lib/umlimator-all.js" },
|
|
13
13
|
"./element": "./lib/umlimator-element.js", "./markdown-it": "./lib/umlimator-markdown-it.js", "./remark": "./lib/umlimator-remark.js" },
|
|
14
14
|
"files": ["lib/", "LICENSE", "THIRD_PARTY_NOTICES.md"],
|
|
15
|
-
"scripts": { "test": "node --test", "build": "node tools/build.mjs" },
|
|
15
|
+
"scripts": { "test": "node --test --test-skip-pattern=\"\\(timed\\)\" && node --test --test-concurrency=1 --test-name-pattern=\"\\(timed\\)\"", "build": "node tools/build.mjs" },
|
|
16
16
|
"engines": { "node": ">=18" }
|
|
17
17
|
}
|