@finos/legend-extension-dsl-diagram 1.0.26 → 1.0.29

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. package/lib/DiagramRenderer.d.ts +1 -1
  2. package/lib/DiagramRenderer.d.ts.map +1 -1
  3. package/lib/DiagramRenderer.js +56 -54
  4. package/lib/DiagramRenderer.js.map +1 -1
  5. package/lib/components/studio/ClassDiagramPreview.d.ts +1 -0
  6. package/lib/components/studio/ClassDiagramPreview.d.ts.map +1 -1
  7. package/lib/components/studio/DiagramEditor.d.ts +1 -0
  8. package/lib/components/studio/DiagramEditor.d.ts.map +1 -1
  9. package/lib/components/studio/DiagramEditor.js +10 -9
  10. package/lib/components/studio/DiagramEditor.js.map +1 -1
  11. package/lib/helpers/DiagramHelper.d.ts.map +1 -1
  12. package/lib/helpers/DiagramHelper.js +4 -3
  13. package/lib/helpers/DiagramHelper.js.map +1 -1
  14. package/lib/index.css +1 -1
  15. package/lib/index.d.ts +2 -1
  16. package/lib/index.d.ts.map +1 -1
  17. package/lib/index.js +2 -1
  18. package/lib/index.js.map +1 -1
  19. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.d.ts +0 -3
  20. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.d.ts.map +1 -1
  21. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.js +1 -13
  22. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.js.map +1 -1
  23. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.d.ts +0 -1
  24. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.d.ts.map +1 -1
  25. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.js +2 -7
  26. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.js.map +1 -1
  27. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.d.ts +0 -11
  28. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.d.ts.map +1 -1
  29. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.js +2 -46
  30. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.js.map +1 -1
  31. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GraphModifierHelper.d.ts +35 -0
  32. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GraphModifierHelper.d.ts.map +1 -0
  33. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GraphModifierHelper.js +118 -0
  34. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GraphModifierHelper.js.map +1 -0
  35. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.d.ts +0 -2
  36. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.d.ts.map +1 -1
  37. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.js +1 -9
  38. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.js.map +1 -1
  39. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.d.ts +0 -17
  40. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.d.ts.map +1 -1
  41. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.js +6 -109
  42. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.js.map +1 -1
  43. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.d.ts +0 -8
  44. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.d.ts.map +1 -1
  45. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.js +1 -16
  46. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.js.map +1 -1
  47. package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.d.ts.map +1 -1
  48. package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.js +3 -2
  49. package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.js.map +1 -1
  50. package/lib/package.json +4 -4
  51. package/lib/stores/studio/DSLDiagram_ModifierHelper.d.ts +54 -0
  52. package/lib/stores/studio/DSLDiagram_ModifierHelper.d.ts.map +1 -0
  53. package/lib/stores/studio/DSLDiagram_ModifierHelper.js +87 -0
  54. package/lib/stores/studio/DSLDiagram_ModifierHelper.js.map +1 -0
  55. package/lib/stores/studio/DiagramEditorState.d.ts.map +1 -1
  56. package/lib/stores/studio/DiagramEditorState.js +3 -3
  57. package/lib/stores/studio/DiagramEditorState.js.map +1 -1
  58. package/package.json +10 -10
  59. package/src/DiagramRenderer.ts +125 -58
  60. package/src/components/studio/DiagramEditor.tsx +16 -11
  61. package/src/helpers/DiagramHelper.ts +4 -3
  62. package/src/index.ts +2 -4
  63. package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.ts +1 -14
  64. package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.ts +1 -8
  65. package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.ts +2 -52
  66. package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GraphModifierHelper.ts +165 -0
  67. package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.ts +1 -10
  68. package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.ts +6 -147
  69. package/src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.ts +1 -17
  70. package/src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.ts +3 -2
  71. package/src/stores/studio/DSLDiagram_ModifierHelper.ts +148 -0
  72. package/src/stores/studio/DiagramEditorState.ts +2 -2
  73. package/tsconfig.json +2 -0
@@ -1 +1 @@
1
- {"version":3,"file":"DiagramEditorState.d.ts","sourceRoot":"","sources":["../../../src/stores/studio/DiagramEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAQH,OAAO,EACL,KAAK,eAAe,EAErB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAuB,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EAQvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,WAAW,EAChB,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+EAA+E,CAAC;AAC/G,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oFAAoF,CAAC;AAChH,OAAO,EAAE,OAAO,EAAE,MAAM,6EAA6E,CAAC;AAyBtG,8BAAsB,2BAA2B;IAC/C,IAAI,SAAU;IACd,WAAW,EAAE,WAAW,CAAC;IACzB,kBAAkB,EAAE,kBAAkB,CAAC;gBAGrC,WAAW,EAAE,WAAW,EACxB,kBAAkB,EAAE,kBAAkB;CAKzC;AAED,oBAAY,6BAA6B;IACvC,OAAO,YAAY;IACnB,IAAI,SAAS;CACd;AAED,qBAAa,0CAA2C,SAAQ,2BAA2B;IACzF,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,gCAAyC;gBAGlD,WAAW,EAAE,WAAW,EACxB,kBAAkB,EAAE,kBAAkB,EACtC,SAAS,EAAE,SAAS;IAoBtB,cAAc,CAAC,GAAG,EAAE,6BAA6B,GAAG,IAAI;CAGzD;AAED,qBAAa,oCAAoC;IAC/C,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,KAAK,EAAE,K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AS,CAAC;IACzD,yBAAyB,CAAC,EACtB,sCAAsC,GACtC,SAAS,CAAC;IACd,uBAAuB,CAAC,EAAE,oCAAoC,GAAG,SAAS,CAAC;IAC3E,uBAAuB,CAAC,EAAE,oCAAoC,GAAG,SAAS,CAAC;IAC3E,eAAe,UAAS;IACxB,oBAAoB,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;gBAEjC,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,kBAAkB;IA4BjE,IAAI,OAAO,IAAI,OAAO,CAMrB;IAED,IAAI,QAAQ,IAAI,eAAe,CAK9B;IAED,IAAI,4BAA4B,IAAI,OAAO,CAE1C;IAMD,IAAI,kBAAkB,IAAI,MAAM,CA+D/B;IAED,WAAW,CAAC,GAAG,EAAE,eAAe,GAAG,IAAI;IAIvC,uBAAuB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAI3C,iBAAiB,CAAC,GAAG,EAAE,2BAA2B,GAAG,SAAS,GAAG,IAAI;IAIrE,4BAA4B,CAC1B,GAAG,EAAE,sCAAsC,GAAG,SAAS,GACtD,IAAI;IAIP,0BAA0B,CACxB,GAAG,EAAE,oCAAoC,GAAG,SAAS,GACpD,IAAI;IAIP,0BAA0B,CACxB,GAAG,EAAE,oCAAoC,GAAG,SAAS,GACpD,IAAI;IAIP,kBAAkB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAItC,uBAAuB,CAAC,GAAG,EAAE,SAAS,GAAG,SAAS,GAAG,IAAI;IAIzD,gBAAgB,IAAI,IAAI;IAIxB,aAAa,IAAI,IAAI;IAoHrB,OAAO,IAAI,IAAI;IAIf,OAAO,CAAC,yBAAyB,CAuBrB;IAEZ,SAAS,CACP,UAAU,EAAE,kBAAkB,EAC9B,WAAW,EAAE,WAAW,GACvB,kBAAkB;CAItB"}
@@ -17,8 +17,8 @@ import { computed, action, makeObservable, observable } from 'mobx';
17
17
  import { guaranteeNonNullable, guaranteeType, uuid, } from '@finos/legend-shared';
18
18
  import { DIAGRAM_INTERACTION_MODE, } from '../../DiagramRenderer';
19
19
  import { HotkeyConfiguration, PanelDisplayState } from '@finos/legend-art';
20
- import { GenericTypeExplicitReference, PRIMITIVE_TYPE, TYPICAL_MULTIPLICITY_TYPE, Property, GenericType, PropertyExplicitReference, addClassProperty, } from '@finos/legend-graph';
21
- import { ClassEditorState, ElementEditorState, } from '@finos/legend-studio';
20
+ import { GenericTypeExplicitReference, PRIMITIVE_TYPE, TYPICAL_MULTIPLICITY_TYPE, Property, GenericType, PropertyExplicitReference, } from '@finos/legend-graph';
21
+ import { ClassEditorState, ElementEditorState, class_addProperty, } from '@finos/legend-studio';
22
22
  import { Diagram } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram';
23
23
  var DIAGRAM_EDITOR_HOTKEY;
24
24
  (function (DIAGRAM_EDITOR_HOTKEY) {
@@ -284,7 +284,7 @@ export class DiagramEditorState extends ElementEditorState {
284
284
  this.renderer.handleAddSimpleProperty = (classView) => {
285
285
  if (!this.isReadOnly && !classView.class.value.isReadOnly) {
286
286
  const _class = classView.class.value;
287
- addClassProperty(_class, new Property(`property_${_class.properties.length + 1}`, this.editorStore.graphManagerState.graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE), GenericTypeExplicitReference.create(new GenericType(this.editorStore.graphManagerState.graph.getPrimitiveType(PRIMITIVE_TYPE.STRING))), _class));
287
+ class_addProperty(_class, new Property(`property_${_class.properties.length + 1}`, this.editorStore.graphManagerState.graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE), GenericTypeExplicitReference.create(new GenericType(this.editorStore.graphManagerState.graph.getPrimitiveType(PRIMITIVE_TYPE.STRING))), _class));
288
288
  this.renderer.render();
289
289
  }
290
290
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DiagramEditorState.js","sourceRoot":"","sources":["../../../src/stores/studio/DiagramEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,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YAAY,EAAE,CAAC;IAClC,CAAC;IAEO,yBAAyB,GAAG,CAClC,OAAwC,EACL,EAAE,CACrC,IAAI,CAAC,WAAW,CAAC,wBAAwB,CAAC,CAAC,KAAqB,EAAQ,EAAE;QACxE;QACE,6DAA6D;QAC7D,IAAI,CAAC,WAAW,CAAC,kBAAkB,KAAK,IAAI;YAC5C,wCAAwC;YACxC,IAAI,CAAC,4BAA4B;YACjC,kEAAkE;YAClE,8EAA8E;YAC9E,mCAAmC;YACnC,IAAI,CAAC,QAAQ,CAAC,GAAG,KAAK,QAAQ,CAAC,aAAa;YAC5C,wDAAwD;YACxD,oEAAoE;YACpE,0CAA0C;YAC1C,CAAC,CAAC,QAAQ,CAAC,aAAa;gBACtB,CAAC,CAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,CACvC,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,WAAW,EAAE,CAC7C,CAAC,EACJ;YACA,OAAO,CAAC,KAAK,CAAC,CAAC;SAChB;IACH,CAAC,EAAE,KAAK,CAAC,CAAC;IAEZ,SAAS,CACP,UAA8B,EAC9B,WAAwB;QAExB,MAAM,kBAAkB,GAAG,IAAI,kBAAkB,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;QAC3E,OAAO,kBAAkB,CAAC;IAC5B,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-extension-dsl-diagram",
3
- "version": "1.0.26",
3
+ "version": "1.0.29",
4
4
  "description": "Legend extension for Diagram DSL",
5
5
  "keywords": [
6
6
  "legend",
@@ -31,7 +31,7 @@
31
31
  "clean:cache": "rimraf \"build\"",
32
32
  "clean:lib": "rimraf \"lib\"",
33
33
  "dev": "npm-run-all --parallel dev:sass dev:ts",
34
- "dev:sass": "sass style lib --watch --load-path=../../node_modules/@finos/legend-art/scss",
34
+ "dev:sass": "sass style:lib --watch --load-path=../../node_modules/@finos/legend-art/scss",
35
35
  "dev:ts": "tsc --watch --preserveWatchOutput",
36
36
  "lint:js": "cross-env NODE_ENV=production eslint --cache --cache-location ./build/.eslintcache --report-unused-disable-directives --parser-options=project:\"./tsconfig.json\" \"./src/**/*.{js,ts,tsx}\"",
37
37
  "publish:prepare": "node ../../scripts/release/preparePublishContent.js",
@@ -40,23 +40,23 @@
40
40
  "test:watch": "jest --watch"
41
41
  },
42
42
  "dependencies": {
43
- "@finos/legend-application": "2.0.5",
44
- "@finos/legend-art": "0.3.12",
45
- "@finos/legend-graph": "2.1.0",
46
- "@finos/legend-model-storage": "0.0.25",
43
+ "@finos/legend-application": "2.0.8",
44
+ "@finos/legend-art": "0.3.13",
45
+ "@finos/legend-graph": "2.1.3",
46
+ "@finos/legend-model-storage": "0.0.26",
47
47
  "@finos/legend-shared": "1.2.7",
48
- "@finos/legend-studio": "5.1.0",
48
+ "@finos/legend-studio": "5.1.3",
49
49
  "@types/react": "17.0.43",
50
50
  "mobx": "6.5.0",
51
51
  "mobx-react-lite": "3.3.0",
52
52
  "react": "17.0.2",
53
- "react-dnd": "15.1.1",
53
+ "react-dnd": "15.1.2",
54
54
  "react-dom": "17.0.2",
55
55
  "react-resize-detector": "7.0.0",
56
56
  "serializr": "2.0.5"
57
57
  },
58
58
  "devDependencies": {
59
- "@finos/legend-dev-utils": "0.3.16",
59
+ "@finos/legend-dev-utils": "0.3.17",
60
60
  "@testing-library/react": "12.1.4",
61
61
  "cross-env": "7.0.3",
62
62
  "eslint": "8.12.0",
@@ -64,7 +64,7 @@
64
64
  "jest-canvas-mock": "2.3.1",
65
65
  "npm-run-all": "4.1.5",
66
66
  "rimraf": "3.0.2",
67
- "sass": "1.49.9",
67
+ "sass": "1.49.11",
68
68
  "typescript": "4.6.3"
69
69
  },
70
70
  "peerDependencies": {
@@ -36,8 +36,6 @@ import {
36
36
  GenericType,
37
37
  Property,
38
38
  Multiplicity,
39
- addClassProperty,
40
- addClassSuperType,
41
39
  } from '@finos/legend-graph';
42
40
  import { action, makeObservable, observable } from 'mobx';
43
41
  import type { Diagram } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram';
@@ -47,13 +45,37 @@ import { PositionedRectangle } from './models/metamodels/pure/packageableElement
47
45
  import { ClassView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView';
48
46
  import type { PropertyHolderView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView';
49
47
  import { GeneralizationView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView';
50
- import {
51
- type RelationshipView,
52
- manageInsidePointsDynamically,
53
- } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView';
48
+ import type { RelationshipView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView';
54
49
  import { PropertyView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView';
55
50
  import { getElementPosition } from './helpers/DiagramHelper';
56
51
  import { AssociationView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView';
52
+ import { class_addProperty, class_addSuperType } from '@finos/legend-studio';
53
+ import {
54
+ classView_setHideProperties,
55
+ classView_setHideStereotypes,
56
+ classView_setHideTaggedValues,
57
+ diagram_addClassView,
58
+ diagram_addGeneralizationView,
59
+ diagram_addPropertyView,
60
+ diagram_deleteAssociationView,
61
+ diagram_deleteClassView,
62
+ diagram_deleteGeneralizationView,
63
+ diagram_deletePropertyView,
64
+ diagram_setAssociationViews,
65
+ diagram_setClassViews,
66
+ diagram_setGeneralizationViews,
67
+ diagram_setPropertyViews,
68
+ findOrBuildPoint,
69
+ positionedRectangle_forceRefreshHash,
70
+ positionedRectangle_setPosition,
71
+ positionedRectangle_setRectangle,
72
+ relationShipEdgeView_setOffsetX,
73
+ relationShipEdgeView_setOffsetY,
74
+ relationshipView_changePoint,
75
+ relationView_possiblyFlattenPath,
76
+ relationView_setPath,
77
+ } from './stores/studio/DSLDiagram_ModifierHelper';
78
+ import { _relationView_manageInsidePointsDynamically } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_GraphModifierHelper';
57
79
 
58
80
  export enum DIAGRAM_INTERACTION_MODE {
59
81
  LAYOUT,
@@ -582,7 +604,7 @@ export class DiagramRenderer {
582
604
  startClassView.class.value,
583
605
  )
584
606
  ) {
585
- addClassSuperType(
607
+ class_addSuperType(
586
608
  startClassView.class.value,
587
609
  GenericTypeExplicitReference.create(
588
610
  new GenericType(targetClassView.class.value),
@@ -602,7 +624,7 @@ export class DiagramRenderer {
602
624
  startClassView,
603
625
  targetClassView,
604
626
  );
605
- this.diagram.addGeneralizationView(gview);
627
+ diagram_addGeneralizationView(this.diagram, gview);
606
628
  return gview;
607
629
  }
608
630
  return undefined;
@@ -622,7 +644,7 @@ export class DiagramRenderer {
622
644
  ),
623
645
  startClassView.class.value,
624
646
  );
625
- addClassProperty(startClassView.class.value, property);
647
+ class_addProperty(startClassView.class.value, property);
626
648
  // only create property view if the classviews are different
627
649
  // else we end up with a weird rendering where the property view
628
650
  // is not targetable
@@ -633,7 +655,7 @@ export class DiagramRenderer {
633
655
  startClassView,
634
656
  targetClassView,
635
657
  );
636
- this.diagram.addPropertyView(pView);
658
+ diagram_addPropertyView(this.diagram, pView);
637
659
  return pView;
638
660
  }
639
661
  return undefined;
@@ -725,7 +747,7 @@ export class DiagramRenderer {
725
747
  .concat(this.diagram.propertyViews);
726
748
  for (const relationshipView of relationshipViews) {
727
749
  let fullPath = relationshipView.buildFullPath();
728
- fullPath = manageInsidePointsDynamically(
750
+ fullPath = _relationView_manageInsidePointsDynamically(
729
751
  fullPath,
730
752
  relationshipView.from.classView.value,
731
753
  relationshipView.to.classView.value,
@@ -861,7 +883,8 @@ export class DiagramRenderer {
861
883
  id,
862
884
  PackageableElementExplicitReference.create(addedClass),
863
885
  );
864
- newClassView.setPosition(
886
+ positionedRectangle_setPosition(
887
+ newClassView,
865
888
  classViewModelCoordinate ??
866
889
  this.canvasCoordinateToModelCoordinate(
867
890
  new Point(
@@ -872,10 +895,10 @@ export class DiagramRenderer {
872
895
  ),
873
896
  ),
874
897
  );
875
- this.diagram.addClassView(newClassView);
898
+ diagram_addClassView(this.diagram, newClassView);
876
899
  // Refresh hash since ClassView position is not observable
877
900
  // NOTE: here we refresh after adding the class view to the diagram, that way the diagram hash is refreshed
878
- newClassView.forceRefreshHash();
901
+ positionedRectangle_forceRefreshHash(newClassView);
879
902
  this.diagram.classViews
880
903
  .filter((classView) => classView.class.value !== addedClass)
881
904
  .forEach((classView) => {
@@ -886,7 +909,8 @@ export class DiagramRenderer {
886
909
  .map((generalization) => generalization.value.rawType)
887
910
  .includes(_class)
888
911
  ) {
889
- this.diagram.addGeneralizationView(
912
+ diagram_addGeneralizationView(
913
+ this.diagram,
890
914
  new GeneralizationView(this.diagram, newClassView, classView),
891
915
  );
892
916
  }
@@ -895,14 +919,18 @@ export class DiagramRenderer {
895
919
  .map((generalization) => generalization.value.rawType)
896
920
  .includes(addedClass)
897
921
  ) {
898
- this.diagram.addGeneralizationView(
922
+ diagram_addGeneralizationView(
923
+ this.diagram,
924
+
899
925
  new GeneralizationView(this.diagram, classView, newClassView),
900
926
  );
901
927
  }
902
928
  // Add property view
903
929
  addedClass.getAllOwnedProperties().forEach((property) => {
904
930
  if (property.genericType.value.rawType === _class) {
905
- this.diagram.addPropertyView(
931
+ diagram_addPropertyView(
932
+ this.diagram,
933
+
906
934
  new PropertyView(
907
935
  this.diagram,
908
936
  PropertyExplicitReference.create(property),
@@ -914,7 +942,8 @@ export class DiagramRenderer {
914
942
  });
915
943
  _class.getAllOwnedProperties().forEach((property) => {
916
944
  if (property.genericType.value.rawType === addedClass) {
917
- this.diagram.addPropertyView(
945
+ diagram_addPropertyView(
946
+ this.diagram,
918
947
  new PropertyView(
919
948
  this.diagram,
920
949
  PropertyExplicitReference.create(property),
@@ -1453,7 +1482,7 @@ export class DiagramRenderer {
1453
1482
  classView.rectangle.height > classMinHeight
1454
1483
  ? classView.rectangle.height
1455
1484
  : classMinHeight;
1456
- classView.setRectangle(new Rectangle(width, height));
1485
+ positionedRectangle_setRectangle(classView, new Rectangle(width, height));
1457
1486
  }
1458
1487
  }
1459
1488
 
@@ -1631,7 +1660,7 @@ export class DiagramRenderer {
1631
1660
  // NOTE: force hash reload when we redraw class view; this would help with cases where
1632
1661
  // we auto add new properties to the class view, causing the box to expand, hence we need
1633
1662
  // to recompute hash
1634
- classView.forceRefreshHash();
1663
+ positionedRectangle_forceRefreshHash(classView);
1635
1664
  }
1636
1665
 
1637
1666
  private drawLinePropertyNameAndMultiplicity(
@@ -1795,7 +1824,7 @@ export class DiagramRenderer {
1795
1824
 
1796
1825
  private drawPropertyOrAssociation(propertyView: PropertyView): void {
1797
1826
  let fullPath = propertyView.buildFullPath();
1798
- fullPath = manageInsidePointsDynamically(
1827
+ fullPath = _relationView_manageInsidePointsDynamically(
1799
1828
  fullPath,
1800
1829
  propertyView.from.classView.value,
1801
1830
  propertyView.to.classView.value,
@@ -1886,7 +1915,7 @@ export class DiagramRenderer {
1886
1915
  private drawInheritance(inheritance: GeneralizationView): void {
1887
1916
  const rect = inheritance.to.classView.value.rectangle;
1888
1917
  let fullPath = inheritance.buildFullPath();
1889
- fullPath = manageInsidePointsDynamically(
1918
+ fullPath = _relationView_manageInsidePointsDynamically(
1890
1919
  fullPath,
1891
1920
  inheritance.from.classView.value,
1892
1921
  inheritance.to.classView.value,
@@ -2044,7 +2073,8 @@ export class DiagramRenderer {
2044
2073
  selectedClasses.indexOf(assoView.from.classView.value) !== -1 &&
2045
2074
  selectedClasses.indexOf(assoView.to.classView.value) !== -1
2046
2075
  ) {
2047
- assoView.setPath(
2076
+ relationView_setPath(
2077
+ assoView,
2048
2078
  assoView.path.map(
2049
2079
  (point) =>
2050
2080
  new Point(point.x - newMovingDeltaX, point.y - newMovingDeltaY),
@@ -2059,8 +2089,10 @@ export class DiagramRenderer {
2059
2089
  if ('Delete' === e.key) {
2060
2090
  if (!this.isReadOnly) {
2061
2091
  this.selectedClasses.forEach((classView) => {
2062
- this.diagram.deleteClassView(classView);
2063
- this.diagram.setAssociationViews(
2092
+ diagram_deleteClassView(this.diagram, classView);
2093
+ diagram_setAssociationViews(
2094
+ this.diagram,
2095
+
2064
2096
  this.diagram.associationViews.filter(
2065
2097
  (associationView) =>
2066
2098
  !(
@@ -2069,7 +2101,9 @@ export class DiagramRenderer {
2069
2101
  ),
2070
2102
  ),
2071
2103
  );
2072
- this.diagram.setGeneralizationViews(
2104
+ diagram_setGeneralizationViews(
2105
+ this.diagram,
2106
+
2073
2107
  this.diagram.generalizationViews.filter(
2074
2108
  (generalizationView) =>
2075
2109
  !(
@@ -2078,7 +2112,9 @@ export class DiagramRenderer {
2078
2112
  ),
2079
2113
  ),
2080
2114
  );
2081
- this.diagram.setPropertyViews(
2115
+ diagram_setPropertyViews(
2116
+ this.diagram,
2117
+
2082
2118
  this.diagram.propertyViews.filter(
2083
2119
  (propertyView) =>
2084
2120
  !(
@@ -2089,11 +2125,16 @@ export class DiagramRenderer {
2089
2125
  );
2090
2126
  });
2091
2127
  if (this.selectedPropertyOrAssociation instanceof AssociationView) {
2092
- this.diagram.deleteAssociationView(
2128
+ diagram_deleteAssociationView(
2129
+ this.diagram,
2130
+
2093
2131
  this.selectedPropertyOrAssociation,
2094
2132
  );
2095
2133
  } else if (this.selectedPropertyOrAssociation instanceof PropertyView) {
2096
- this.diagram.deletePropertyView(this.selectedPropertyOrAssociation);
2134
+ diagram_deletePropertyView(
2135
+ this.diagram,
2136
+ this.selectedPropertyOrAssociation,
2137
+ );
2097
2138
  }
2098
2139
  if (this.selectedInheritance) {
2099
2140
  if (
@@ -2102,7 +2143,10 @@ export class DiagramRenderer {
2102
2143
  generalizationView === this.selectedInheritance,
2103
2144
  )
2104
2145
  ) {
2105
- this.diagram.deleteGeneralizationView(this.selectedInheritance);
2146
+ diagram_deleteGeneralizationView(
2147
+ this.diagram,
2148
+ this.selectedInheritance,
2149
+ );
2106
2150
  }
2107
2151
  }
2108
2152
  this.selectedClasses = [];
@@ -2209,7 +2253,7 @@ export class DiagramRenderer {
2209
2253
  if (!this.isReadOnly) {
2210
2254
  if (this.selectedClasses.length !== 0) {
2211
2255
  this.selectedClasses.forEach((classView) => {
2212
- classView.setHideProperties(!classView.hideProperties);
2256
+ classView_setHideProperties(classView, !classView.hideProperties);
2213
2257
  });
2214
2258
  this.drawScreen();
2215
2259
  }
@@ -2220,7 +2264,7 @@ export class DiagramRenderer {
2220
2264
  if (!this.isReadOnly) {
2221
2265
  if (this.selectedClasses.length !== 0) {
2222
2266
  this.selectedClasses.forEach((classView) => {
2223
- classView.setHideStereotypes(!classView.hideStereotypes);
2267
+ classView_setHideStereotypes(classView, !classView.hideStereotypes);
2224
2268
  });
2225
2269
  this.drawScreen();
2226
2270
  }
@@ -2231,7 +2275,10 @@ export class DiagramRenderer {
2231
2275
  if (!this.isReadOnly) {
2232
2276
  if (this.selectedClasses.length !== 0) {
2233
2277
  this.selectedClasses.forEach((classView) => {
2234
- classView.setHideTaggedValues(!classView.hideTaggedValues);
2278
+ classView_setHideTaggedValues(
2279
+ classView,
2280
+ !classView.hideTaggedValues,
2281
+ );
2235
2282
  });
2236
2283
  this.drawScreen();
2237
2284
  }
@@ -2286,8 +2333,8 @@ export class DiagramRenderer {
2286
2333
  1,
2287
2334
  );
2288
2335
  const res = this.layoutTaxonomy(views, this.diagram, false, true);
2289
- res[0].forEach((cv) => this.diagram.addClassView(cv));
2290
- res[1].forEach((gv) => this.diagram.addGeneralizationView(gv));
2336
+ res[0].forEach((cv) => diagram_addClassView(this.diagram, cv));
2337
+ res[1].forEach((gv) => diagram_addGeneralizationView(this.diagram, gv));
2291
2338
 
2292
2339
  this.drawScreen();
2293
2340
  }
@@ -2319,8 +2366,8 @@ export class DiagramRenderer {
2319
2366
  false,
2320
2367
  false,
2321
2368
  );
2322
- res[0].forEach((cv) => this.diagram.addClassView(cv));
2323
- res[1].forEach((gv) => this.diagram.addGeneralizationView(gv));
2369
+ res[0].forEach((cv) => diagram_addClassView(this.diagram, cv));
2370
+ res[1].forEach((gv) => diagram_addGeneralizationView(this.diagram, gv));
2324
2371
  }
2325
2372
 
2326
2373
  this.drawScreen();
@@ -2332,13 +2379,13 @@ export class DiagramRenderer {
2332
2379
  switch (this.interactionMode) {
2333
2380
  case DIAGRAM_INTERACTION_MODE.LAYOUT: {
2334
2381
  this.diagram.generalizationViews.forEach((generalizationView) =>
2335
- generalizationView.possiblyFlattenPath(),
2382
+ relationView_possiblyFlattenPath(generalizationView),
2336
2383
  );
2337
2384
  this.diagram.associationViews.forEach((associationView) =>
2338
- associationView.possiblyFlattenPath(),
2385
+ relationView_possiblyFlattenPath(associationView),
2339
2386
  );
2340
2387
  this.diagram.propertyViews.forEach((propertyView) =>
2341
- propertyView.possiblyFlattenPath(),
2388
+ relationView_possiblyFlattenPath(propertyView),
2342
2389
  );
2343
2390
  break;
2344
2391
  }
@@ -2426,28 +2473,32 @@ export class DiagramRenderer {
2426
2473
  );
2427
2474
 
2428
2475
  if (gview) {
2429
- gview.from.setOffsetX(
2476
+ relationShipEdgeView_setOffsetX(
2477
+ gview.from,
2430
2478
  -(
2431
2479
  this.startClassView.position.x +
2432
2480
  this.startClassView.rectangle.width / 2 -
2433
2481
  this.selectionStart.x
2434
2482
  ),
2435
2483
  );
2436
- gview.from.setOffsetY(
2484
+ relationShipEdgeView_setOffsetY(
2485
+ gview.from,
2437
2486
  -(
2438
2487
  this.startClassView.position.y +
2439
2488
  this.startClassView.rectangle.height / 2 -
2440
2489
  this.selectionStart.y
2441
2490
  ),
2442
2491
  );
2443
- gview.to.setOffsetX(
2492
+ relationShipEdgeView_setOffsetX(
2493
+ gview.to,
2444
2494
  -(
2445
2495
  targetClassView.position.x +
2446
2496
  targetClassView.rectangle.width / 2 -
2447
2497
  eventPointInModelCoordinate.x
2448
2498
  ),
2449
2499
  );
2450
- gview.to.setOffsetY(
2500
+ relationShipEdgeView_setOffsetY(
2501
+ gview.to,
2451
2502
  -(
2452
2503
  targetClassView.position.y +
2453
2504
  targetClassView.rectangle.height / 2 -
@@ -2592,7 +2643,8 @@ export class DiagramRenderer {
2592
2643
  this.setSelectedClassCorner(this.diagram.classViews[i]);
2593
2644
  if (!this.isReadOnly) {
2594
2645
  // Bring the class view to front
2595
- this.diagram.setClassViews(
2646
+ diagram_setClassViews(
2647
+ this.diagram,
2596
2648
  this.reorderDiagramDomain(
2597
2649
  guaranteeNonNullable(this.selectedClassCorner),
2598
2650
  this.diagram,
@@ -2632,7 +2684,9 @@ export class DiagramRenderer {
2632
2684
  }
2633
2685
  if (!this.isReadOnly) {
2634
2686
  // Bring the class view to front
2635
- this.diagram.setClassViews(
2687
+ diagram_setClassViews(
2688
+ this.diagram,
2689
+
2636
2690
  this.reorderDiagramDomain(
2637
2691
  this.selectedClasses[0] as ClassView,
2638
2692
  this.diagram,
@@ -2670,7 +2724,8 @@ export class DiagramRenderer {
2670
2724
  // check for selection of inheritance view
2671
2725
  for (const generalizationView of this.diagram
2672
2726
  .generalizationViews) {
2673
- const val = generalizationView.findOrBuildPoint(
2727
+ const val = findOrBuildPoint(
2728
+ generalizationView,
2674
2729
  eventPointInModelCoordinate.x,
2675
2730
  eventPointInModelCoordinate.y,
2676
2731
  this.zoom,
@@ -2686,7 +2741,8 @@ export class DiagramRenderer {
2686
2741
  // check for selection of association view
2687
2742
  if (!this.selectedPoint) {
2688
2743
  for (const associationView of this.diagram.associationViews) {
2689
- const val = associationView.findOrBuildPoint(
2744
+ const val = findOrBuildPoint(
2745
+ associationView,
2690
2746
  eventPointInModelCoordinate.x,
2691
2747
  eventPointInModelCoordinate.y,
2692
2748
  this.zoom,
@@ -2703,7 +2759,8 @@ export class DiagramRenderer {
2703
2759
  // check for selection of property view
2704
2760
  if (!this.selectedPoint) {
2705
2761
  for (const propertyView of this.diagram.propertyViews) {
2706
- const val = propertyView.findOrBuildPoint(
2762
+ const val = findOrBuildPoint(
2763
+ propertyView,
2707
2764
  eventPointInModelCoordinate.x,
2708
2765
  eventPointInModelCoordinate.y,
2709
2766
  this.zoom,
@@ -2811,7 +2868,8 @@ export class DiagramRenderer {
2811
2868
  // Resize class view
2812
2869
  if (this.selectedClassCorner) {
2813
2870
  // Make sure width and height are in range!
2814
- this.selectedClassCorner.setRectangle(
2871
+ positionedRectangle_setRectangle(
2872
+ this.selectedClassCorner,
2815
2873
  new Rectangle(
2816
2874
  eventPointInModelCoordinate.x -
2817
2875
  this.selectedClassCorner.position.x,
@@ -2820,7 +2878,7 @@ export class DiagramRenderer {
2820
2878
  ),
2821
2879
  );
2822
2880
  // Refresh hash since ClassView rectangle is not observable
2823
- this.selectedClassCorner.forceRefreshHash();
2881
+ positionedRectangle_forceRefreshHash(this.selectedClassCorner);
2824
2882
  this.drawClassView(this.selectedClassCorner);
2825
2883
  this.drawScreen();
2826
2884
  }
@@ -2847,9 +2905,12 @@ export class DiagramRenderer {
2847
2905
  (this.clickY - selectedClassOldPosition.oldPos.y);
2848
2906
  newMovingDeltaX = selectedClass.position.x - newMovingX;
2849
2907
  newMovingDeltaY = selectedClass.position.y - newMovingY;
2850
- selectedClass.setPosition(new Point(newMovingX, newMovingY));
2908
+ positionedRectangle_setPosition(
2909
+ selectedClass,
2910
+ new Point(newMovingX, newMovingY),
2911
+ );
2851
2912
  // Refresh hash since ClassView position is not observable
2852
- selectedClass.forceRefreshHash();
2913
+ positionedRectangle_forceRefreshHash(selectedClass);
2853
2914
  }
2854
2915
  });
2855
2916
  this.potentiallyShiftRelationships(
@@ -2877,12 +2938,14 @@ export class DiagramRenderer {
2877
2938
  // Change line (add a new point to the line)
2878
2939
  if (this.selectedPoint) {
2879
2940
  if (this.selectedPropertyOrAssociation) {
2880
- this.selectedPropertyOrAssociation.changePoint(
2941
+ relationshipView_changePoint(
2942
+ this.selectedPropertyOrAssociation,
2881
2943
  this.selectedPoint,
2882
2944
  eventPointInModelCoordinate,
2883
2945
  );
2884
2946
  } else if (this.selectedInheritance) {
2885
- this.selectedInheritance.changePoint(
2947
+ relationshipView_changePoint(
2948
+ this.selectedInheritance,
2886
2949
  this.selectedPoint,
2887
2950
  eventPointInModelCoordinate,
2888
2951
  );
@@ -3102,7 +3165,7 @@ export class DiagramRenderer {
3102
3165
  ];
3103
3166
  for (const propertyHolderView of propertyHolderViews) {
3104
3167
  let fullPath = propertyHolderView.buildFullPath();
3105
- fullPath = manageInsidePointsDynamically(
3168
+ fullPath = _relationView_manageInsidePointsDynamically(
3106
3169
  fullPath,
3107
3170
  propertyHolderView.from.classView.value,
3108
3171
  propertyHolderView.to.classView.value,
@@ -3234,11 +3297,15 @@ export class DiagramRenderer {
3234
3297
 
3235
3298
  // Set layout of current level
3236
3299
  if (positionInitialClass || currentLevelIndex > 0) {
3237
- (levels[0] as ClassView).setPosition(new Point(startX, currentLevelY));
3300
+ positionedRectangle_setPosition(
3301
+ levels[0] as ClassView,
3302
+ new Point(startX, currentLevelY),
3303
+ );
3238
3304
  levels.forEach((view, idx) => {
3239
3305
  if (idx > 0) {
3240
3306
  const precedent = levels[idx - 1] as ClassView;
3241
- view.setPosition(
3307
+ positionedRectangle_setPosition(
3308
+ view,
3242
3309
  new Point(
3243
3310
  precedent.position.x + precedent.rectangle.width + spaceX,
3244
3311
  currentLevelY,