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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. package/lib/DiagramRenderer.d.ts +1 -1
  2. package/lib/DiagramRenderer.d.ts.map +1 -1
  3. package/lib/DiagramRenderer.js +52 -51
  4. package/lib/DiagramRenderer.js.map +1 -1
  5. package/lib/components/studio/DiagramEditor.d.ts.map +1 -1
  6. package/lib/components/studio/DiagramEditor.js +4 -3
  7. package/lib/components/studio/DiagramEditor.js.map +1 -1
  8. package/lib/helpers/DiagramHelper.d.ts.map +1 -1
  9. package/lib/helpers/DiagramHelper.js +4 -3
  10. package/lib/helpers/DiagramHelper.js.map +1 -1
  11. package/lib/index.css +1 -1
  12. package/lib/index.d.ts +2 -1
  13. package/lib/index.d.ts.map +1 -1
  14. package/lib/index.js +2 -1
  15. package/lib/index.js.map +1 -1
  16. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.d.ts +0 -3
  17. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.d.ts.map +1 -1
  18. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.js +1 -13
  19. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.js.map +1 -1
  20. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.d.ts +0 -1
  21. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.d.ts.map +1 -1
  22. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.js +1 -6
  23. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.js.map +1 -1
  24. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.d.ts +0 -11
  25. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.d.ts.map +1 -1
  26. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.js +2 -46
  27. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.js.map +1 -1
  28. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GraphModifierHelper.d.ts +35 -0
  29. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GraphModifierHelper.d.ts.map +1 -0
  30. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GraphModifierHelper.js +118 -0
  31. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GraphModifierHelper.js.map +1 -0
  32. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.d.ts +0 -2
  33. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.d.ts.map +1 -1
  34. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.js +1 -9
  35. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.js.map +1 -1
  36. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.d.ts +0 -17
  37. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.d.ts.map +1 -1
  38. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.js +6 -109
  39. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.js.map +1 -1
  40. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.d.ts +0 -8
  41. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.d.ts.map +1 -1
  42. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.js +1 -16
  43. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.js.map +1 -1
  44. package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.d.ts.map +1 -1
  45. package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.js +3 -2
  46. package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.js.map +1 -1
  47. package/lib/package.json +4 -4
  48. package/lib/stores/studio/DSLDiagram_ModifierHelper.d.ts +54 -0
  49. package/lib/stores/studio/DSLDiagram_ModifierHelper.d.ts.map +1 -0
  50. package/lib/stores/studio/DSLDiagram_ModifierHelper.js +87 -0
  51. package/lib/stores/studio/DSLDiagram_ModifierHelper.js.map +1 -0
  52. package/package.json +10 -10
  53. package/src/DiagramRenderer.ts +122 -54
  54. package/src/components/studio/DiagramEditor.tsx +8 -3
  55. package/src/helpers/DiagramHelper.ts +4 -3
  56. package/src/index.ts +2 -4
  57. package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.ts +1 -14
  58. package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.ts +1 -7
  59. package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.ts +2 -52
  60. package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GraphModifierHelper.ts +165 -0
  61. package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.ts +1 -10
  62. package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.ts +6 -147
  63. package/src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.ts +1 -17
  64. package/src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.ts +3 -2
  65. package/src/stores/studio/DSLDiagram_ModifierHelper.ts +148 -0
  66. package/tsconfig.json +2 -0
@@ -1 +1 @@
1
- {"version":3,"file":"DiagramHelper.d.ts","sourceRoot":"","sources":["../../src/helpers/DiagramHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4EAA4E,CAAC;AAC5G,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0EAA0E,CAAC;AACxG,OAAO,EAAE,KAAK,EAAE,MAAM,iFAAiF,CAAC;AAExG;;GAEG;AACH,eAAO,MAAM,kBAAkB,YAAa,WAAW,KAAG,KASzD,CAAC;AAEF,eAAO,MAAM,YAAY,YACd,OAAO,gBACF,MAAM,KACnB,SAAS,GAAG,SACwD,CAAC;AAExE,eAAO,MAAM,8BAA8B,YAChC,OAAO,SACT,SAAS,KACf,IAkCF,CAAC"}
1
+ {"version":3,"file":"DiagramHelper.d.ts","sourceRoot":"","sources":["../../src/helpers/DiagramHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4EAA4E,CAAC;AAC5G,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0EAA0E,CAAC;AACxG,OAAO,EAAE,KAAK,EAAE,MAAM,iFAAiF,CAAC;AAExG;;GAEG;AACH,eAAO,MAAM,kBAAkB,YAAa,WAAW,KAAG,KASzD,CAAC;AAEF,eAAO,MAAM,YAAY,YACd,OAAO,gBACF,MAAM,KACnB,SAAS,GAAG,SACwD,CAAC;AAExE,eAAO,MAAM,8BAA8B,YAChC,OAAO,SACT,SAAS,KACf,IAkCF,CAAC"}
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import { deleteEntry } from '@finos/legend-shared';
16
17
  import { Point } from '../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point';
17
18
  /**
18
19
  * Get absolute position of element on the screen by recursively walking up element tree
@@ -33,10 +34,10 @@ export const cleanUpDeadReferencesInDiagram = (diagram, graph) => {
33
34
  const propertyViewsToRemove = diagram.propertyViews.filter((propertyView) => !propertyView.property.ownerReference.value.properties
34
35
  .map((property) => property.name)
35
36
  .includes(propertyView.property.value.name));
36
- propertyViewsToRemove.forEach((propertyView) => diagram.deletePropertyView(propertyView));
37
+ propertyViewsToRemove.forEach((propertyView) => deleteEntry(diagram.propertyViews, propertyView));
37
38
  // Fix orphan class views
38
39
  const classViewsToRemove = diagram.classViews.filter((cv) => !graph.getNullableClass(cv.class.value.path));
39
- classViewsToRemove.forEach((cw) => diagram.deleteClassView(cw));
40
+ classViewsToRemove.forEach((cw) => deleteEntry(diagram.classViews, cw));
40
41
  // Fix orphan gneralization views
41
42
  const generalizationViewsToRemove = diagram.generalizationViews.filter((g) => {
42
43
  const srcClass = g.from.classView.value.class.value;
@@ -46,6 +47,6 @@ export const cleanUpDeadReferencesInDiagram = (diagram, graph) => {
46
47
  srcClass.generalizations.filter((c) => c.value.rawType === targetClass)
47
48
  .length === 0);
48
49
  });
49
- generalizationViewsToRemove.forEach((g) => diagram.deleteGeneralizationView(g));
50
+ generalizationViewsToRemove.forEach((g) => deleteEntry(diagram.generalizationViews, g));
50
51
  };
51
52
  //# sourceMappingURL=DiagramHelper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DiagramHelper.js","sourceRoot":"","sources":["../../src/helpers/DiagramHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,OAAO,EAAE,KAAK,EAAE,MAAM,iFAAiF,CAAC;AAExG;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,OAAoB,EAAS,EAAE;IAChE,IAAI,SAAS,GAAG,CAAC,CAAC;IAClB,IAAI,SAAS,GAAG,CAAC,CAAC;IAClB,OAAO,OAAO,CAAC,YAAY,EAAE;QAC3B,SAAS,IAAI,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;QAC1E,SAAS,IAAI,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;QACvE,O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E,CAAC,CAAC,EAAE,EAAE;QACJ,MAAM,QAAQ,GAAG,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC;QACpD,MAAM,WAAW,GAAG,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC;QACrD,OAAO,CACL,CAAC,KAAK,CAAC,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC;YACtC,CAAC,KAAK,CAAC,gBAAgB,CAAC,WAAW,CAAC,IAAI,CAAC;YACzC,QAAQ,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,WAAW,CAAC;iBACpE,MAAM,KAAK,CAAC,CAChB,CAAC;IACJ,CAAC,CACF,CAAC;IACF,2BAA2B,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CACxC,WAAW,CAAC,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAAC,CAC5C,CAAC;AACJ,CAAC,CAAC"}
package/lib/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-extension-dsl-diagram v1.0.28
1
+ /** @license @finos/legend-extension-dsl-diagram v1.0.29
2
2
  * Copyright (c) 2020-present, Goldman Sachs
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
package/lib/index.d.ts CHANGED
@@ -20,7 +20,8 @@ export { DiagramEditorState } from './stores/studio/DiagramEditorState';
20
20
  export { DiagramRenderer, DIAGRAM_INTERACTION_MODE } from './DiagramRenderer';
21
21
  export { Diagram } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram';
22
22
  export { ClassView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView';
23
- export { RelationshipView, manageInsidePointsDynamically, } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView';
23
+ export { RelationshipView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView';
24
+ export { _relationView_manageInsidePointsDynamically } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_GraphModifierHelper';
24
25
  export { PropertyHolderView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView';
25
26
  export { PropertyView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView';
26
27
  export { AssociationView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,6BAA6B,EAAE,MAAM,mDAAmD,CAAC;AAClG,cAAc,6DAA6D,CAAC;AAE5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAExE,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAE9E,OAAO,EAAE,OAAO,EAAE,MAAM,yEAAyE,CAAC;AAClG,OAAO,EAAE,SAAS,EAAE,MAAM,2EAA2E,CAAC;AACtG,OAAO,EACL,gBAAgB,EAChB,6BAA6B,GAC9B,MAAM,kFAAkF,CAAC;AAC1F,OAAO,EAAE,kBAAkB,EAAE,MAAM,oFAAoF,CAAC;AACxH,OAAO,EAAE,YAAY,EAAE,MAAM,8EAA8E,CAAC;AAC5G,OAAO,EAAE,eAAe,EAAE,MAAM,iFAAiF,CAAC;AAClH,OAAO,EAAE,kBAAkB,EAAE,MAAM,oFAAoF,CAAC;AACxH,OAAO,EAAE,KAAK,EAAE,MAAM,gFAAgF,CAAC;AACvG,OAAO,EAAE,SAAS,EAAE,MAAM,oFAAoF,CAAC;AAC/G,OAAO,EAAE,mBAAmB,EAAE,MAAM,8FAA8F,CAAC;AAEnI,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,2CAA2C,EAAE,MAAM,gEAAgE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,6BAA6B,EAAE,MAAM,mDAAmD,CAAC;AAClG,cAAc,6DAA6D,CAAC;AAE5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAExE,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAE9E,OAAO,EAAE,OAAO,EAAE,MAAM,yEAAyE,CAAC;AAClG,OAAO,EAAE,SAAS,EAAE,MAAM,2EAA2E,CAAC;AACtG,OAAO,EAAE,gBAAgB,EAAE,MAAM,kFAAkF,CAAC;AACpH,OAAO,EAAE,2CAA2C,EAAE,MAAM,qFAAqF,CAAC;AAClJ,OAAO,EAAE,kBAAkB,EAAE,MAAM,oFAAoF,CAAC;AACxH,OAAO,EAAE,YAAY,EAAE,MAAM,8EAA8E,CAAC;AAC5G,OAAO,EAAE,eAAe,EAAE,MAAM,iFAAiF,CAAC;AAClH,OAAO,EAAE,kBAAkB,EAAE,MAAM,oFAAoF,CAAC;AACxH,OAAO,EAAE,KAAK,EAAE,MAAM,gFAAgF,CAAC;AACvG,OAAO,EAAE,SAAS,EAAE,MAAM,oFAAoF,CAAC;AAC/G,OAAO,EAAE,mBAAmB,EAAE,MAAM,8FAA8F,CAAC;AAEnI,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,2CAA2C,EAAE,MAAM,gEAAgE,CAAC"}
package/lib/index.js CHANGED
@@ -20,7 +20,8 @@ export { DiagramEditorState } from './stores/studio/DiagramEditorState';
20
20
  export { DiagramRenderer, DIAGRAM_INTERACTION_MODE } from './DiagramRenderer';
21
21
  export { Diagram } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram';
22
22
  export { ClassView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView';
23
- export { RelationshipView, manageInsidePointsDynamically, } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView';
23
+ export { RelationshipView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView';
24
+ export { _relationView_manageInsidePointsDynamically } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_GraphModifierHelper';
24
25
  export { PropertyHolderView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView';
25
26
  export { PropertyView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView';
26
27
  export { AssociationView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView';
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,6BAA6B,EAAE,MAAM,mDAAmD,CAAC;AAClG,cAAc,6DAA6D,CAAC;AAE5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAExE,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAE9E,OAAO,EAAE,OAAO,EAAE,MAAM,yEAAyE,CAAC;AAClG,OAAO,EAAE,SAAS,EAAE,MAAM,2EAA2E,CAAC;AACtG,OAAO,EACL,gBAAgB,EAChB,6BAA6B,GAC9B,MAAM,kFAAkF,CAAC;AAC1F,OAAO,EAAE,kBAAkB,EAAE,MAAM,oFAAoF,CAAC;AACxH,OAAO,EAAE,YAAY,EAAE,MAAM,8EAA8E,CAAC;AAC5G,OAAO,EAAE,eAAe,EAAE,MAAM,iFAAiF,CAAC;AAClH,OAAO,EAAE,kBAAkB,EAAE,MAAM,oFAAoF,CAAC;AACxH,OAAO,EAAE,KAAK,EAAE,MAAM,gFAAgF,CAAC;AACvG,OAAO,EAAE,SAAS,EAAE,MAAM,oFAAoF,CAAC;AAC/G,OAAO,EAAE,mBAAmB,EAAE,MAAM,8FAA8F,CAAC;AAEnI,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,2CAA2C,EAAE,MAAM,gEAAgE,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,6BAA6B,EAAE,MAAM,mDAAmD,CAAC;AAClG,cAAc,6DAA6D,CAAC;AAE5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAExE,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAE9E,OAAO,EAAE,OAAO,EAAE,MAAM,yEAAyE,CAAC;AAClG,OAAO,EAAE,SAAS,EAAE,MAAM,2EAA2E,CAAC;AACtG,OAAO,EAAE,gBAAgB,EAAE,MAAM,kFAAkF,CAAC;AACpH,OAAO,EAAE,2CAA2C,EAAE,MAAM,qFAAqF,CAAC;AAClJ,OAAO,EAAE,kBAAkB,EAAE,MAAM,oFAAoF,CAAC;AACxH,OAAO,EAAE,YAAY,EAAE,MAAM,8EAA8E,CAAC;AAC5G,OAAO,EAAE,eAAe,EAAE,MAAM,iFAAiF,CAAC;AAClH,OAAO,EAAE,kBAAkB,EAAE,MAAM,oFAAoF,CAAC;AACxH,OAAO,EAAE,KAAK,EAAE,MAAM,gFAAgF,CAAC;AACvG,OAAO,EAAE,SAAS,EAAE,MAAM,oFAAoF,CAAC;AAC/G,OAAO,EAAE,mBAAmB,EAAE,MAAM,8FAA8F,CAAC;AAEnI,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,2CAA2C,EAAE,MAAM,gEAAgE,CAAC"}
@@ -25,9 +25,6 @@ export declare class ClassView extends PositionedRectangle implements Hashable {
25
25
  hideTaggedValues?: boolean | undefined;
26
26
  hideStereotypes?: boolean | undefined;
27
27
  constructor(owner: Diagram, id: string, _class: PackageableElementReference<Class>);
28
- setHideProperties(val: boolean): void;
29
- setHideStereotypes(val: boolean): void;
30
- setHideTaggedValues(val: boolean): void;
31
28
  get hashCode(): string;
32
29
  }
33
30
  //# sourceMappingURL=DSLDiagram_ClassView.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DSLDiagram_ClassView.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAGhF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,OAAO,KAAK,EAAE,KAAK,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAE9E,qBAAa,SAAU,SAAQ,mBAAoB,YAAW,QAAQ;IACpE,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,2BAA2B,CAAC,KAAK,CAAC,CAAC;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACrC,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACvC,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;gBAGpC,KAAK,EAAE,OAAO,EACd,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,2BAA2B,CAAC,KAAK,CAAC;IAoB5C,iBAAiB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAGrC,kBAAkB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAGtC,mBAAmB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAIvC,IAAa,QAAQ,IAAI,MAAM,CAU9B;CACF"}
1
+ {"version":3,"file":"DSLDiagram_ClassView.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAGhF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,OAAO,KAAK,EAAE,KAAK,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAE9E,qBAAa,SAAU,SAAQ,mBAAoB,YAAW,QAAQ;IACpE,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,2BAA2B,CAAC,KAAK,CAAC,CAAC;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACrC,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACvC,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;gBAGpC,KAAK,EAAE,OAAO,EACd,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,2BAA2B,CAAC,KAAK,CAAC;IAiB5C,IAAa,QAAQ,IAAI,MAAM,CAU9B;CACF"}
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { computed, observable, action, makeObservable } from 'mobx';
16
+ import { computed, observable, makeObservable } from 'mobx';
17
17
  import { hashArray } from '@finos/legend-shared';
18
18
  import { PositionedRectangle } from './geometry/DSLDiagram_PositionedRectangle';
19
19
  import { Rectangle } from './geometry/DSLDiagram_Rectangle';
@@ -33,24 +33,12 @@ export class ClassView extends PositionedRectangle {
33
33
  hideProperties: observable,
34
34
  hideTaggedValues: observable,
35
35
  hideStereotypes: observable,
36
- setHideProperties: action,
37
- setHideStereotypes: action,
38
- setHideTaggedValues: action,
39
36
  hashCode: computed,
40
37
  });
41
38
  this.owner = owner;
42
39
  this.id = id;
43
40
  this.class = _class;
44
41
  }
45
- setHideProperties(val) {
46
- this.hideProperties = val;
47
- }
48
- setHideStereotypes(val) {
49
- this.hideStereotypes = val;
50
- }
51
- setHideTaggedValues(val) {
52
- this.hideTaggedValues = val;
53
- }
54
42
  get hashCode() {
55
43
  return hashArray([
56
44
  DIAGRAM_HASH_STRUCTURE.CLASS_VIEW,
@@ -1 +1 @@
1
- {"version":3,"file":"DSLDiagram_ClassView.js","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAAE,SAAS,EAAiB,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAEpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAG3E,MAAM,OAAO,SAAU,SAAQ,mBAAmB;IAChD,KAAK,CAAU;IACf,KAAK,CAAqC;IAC1C,EAAE,CAAS;IACX,cAAc,CAAuB;IACrC,gBAAgB,CAAuB;IACvC,eAAe,CAAuB;IAEtC,YACE,KAAc,EACd,EAAU,EACV,MAA0C;QAE1C,KAAK,CAAC,IAAI,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QAE5C,cAAc,CAAC,IAAI,EAAE;YACnB,EAAE,EAAE,UAAU;YACd,cAAc,EAAE,UAAU;YAC1B,gBAAgB,EAAE,UAAU;YAC5B,eAAe,EAAE,UAAU;YAC3B,iBAAiB,EAAE,MAAM;YACzB,kBAAkB,EAAE,MAAM;YAC1B,mBAAmB,EAAE,MAAM;YAC3B,QAAQ,EAAE,QAAQ;SACnB,CAAC,CAAC;QAEH,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC;IACtB,CAAC;IAED,iBAAiB,CAAC,GAAY;QAC5B,IAAI,CAAC,cAAc,GAAG,GAAG,CAAC;IAC5B,CAAC;IACD,kBAAkB,CAAC,GAAY;QAC7B,IAAI,CAAC,eAAe,GAAG,GAAG,CAAC;IAC7B,CAAC;IACD,mBAAmB,CAAC,GAAY;QAC9B,IAAI,CAAC,gBAAgB,GAAG,GAAG,CAAC;IAC9B,CAAC;IAED,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,sBAAsB,CAAC,UAAU;YACjC,KAAK,CAAC,QAAQ;YACd,IAAI,CAAC,EAAE;YACP,IAAI,CAAC,KAAK,CAAC,SAAS;YACpB,IAAI,CAAC,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAE;YACrC,IAAI,CAAC,gBAAgB,EAAE,QAAQ,EAAE,IAAI,EAAE;YACvC,IAAI,CAAC,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"DSLDiagram_ClassView.js","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAiB,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAEpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAG3E,MAAM,OAAO,SAAU,SAAQ,mBAAmB;IAChD,KAAK,CAAU;IACf,KAAK,CAAqC;IAC1C,EAAE,CAAS;IACX,cAAc,CAAuB;IACrC,gBAAgB,CAAuB;IACvC,eAAe,CAAuB;IAEtC,YACE,KAAc,EACd,EAAU,EACV,MAA0C;QAE1C,KAAK,CAAC,IAAI,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QAE5C,cAAc,CAAC,IAAI,EAAE;YACnB,EAAE,EAAE,UAAU;YACd,cAAc,EAAE,UAAU;YAC1B,gBAAgB,EAAE,UAAU;YAC5B,eAAe,EAAE,UAAU;YAC3B,QAAQ,EAAE,QAAQ;SACnB,CAAC,CAAC;QAEH,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC;IACtB,CAAC;IAED,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,sBAAsB,CAAC,UAAU;YACjC,KAAK,CAAC,QAAQ;YACd,IAAI,CAAC,EAAE;YACP,IAAI,CAAC,KAAK,CAAC,SAAS;YACpB,IAAI,CAAC,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAE;YACrC,IAAI,CAAC,gBAAgB,EAAE,QAAQ,EAAE,IAAI,EAAE;YACvC,IAAI,CAAC,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -20,7 +20,6 @@ export declare abstract class ClassViewReference extends ReferenceWithOwner {
20
20
  readonly ownerReference: PackageableElementReference<Diagram>;
21
21
  value: ClassView;
22
22
  protected constructor(ownerReference: PackageableElementReference<Diagram>, value: ClassView);
23
- setValue(value: ClassView): void;
24
23
  }
25
24
  export declare class ClassViewExplicitReference extends ClassViewReference {
26
25
  readonly ownerReference: PackageableElementExplicitReference<Diagram>;
@@ -1 +1 @@
1
- {"version":3,"file":"DSLDiagram_ClassViewReference.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EACL,mCAAmC,EACnC,kBAAkB,EAClB,KAAK,mCAAmC,EACxC,KAAK,2BAA2B,EACjC,MAAM,qBAAqB,CAAC;AAE7B,8BAAsB,kBAAmB,SAAQ,kBAAkB;IACjE,SAAkB,cAAc,EAAE,2BAA2B,CAAC,OAAO,CAAC,CAAC;IACvE,KAAK,EAAE,SAAS,CAAC;IAEjB,SAAS,aACP,cAAc,EAAE,2BAA2B,CAAC,OAAO,CAAC,EACpD,KAAK,EAAE,SAAS;IAalB,QAAQ,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;CAIjC;AAED,qBAAa,0BAA2B,SAAQ,kBAAkB;IAChE,SAAkB,cAAc,EAAE,mCAAmC,CAAC,OAAO,CAAC,CAAC;IAE/E,OAAO;IAQP,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,0BAA0B;CAG5D;AAED,qBAAa,0BAA2B,SAAQ,kBAAkB;IAChE,SAAkB,cAAc,EAAE,mCAAmC,CAAC,OAAO,CAAC,CAAC;IAE/E,OAAO;IAQP,MAAM,CAAC,MAAM,CACX,cAAc,EAAE,mCAAmC,CAAC,OAAO,CAAC,EAC5D,KAAK,EAAE,SAAS,GACf,0BAA0B;CAG9B"}
1
+ {"version":3,"file":"DSLDiagram_ClassViewReference.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EACL,mCAAmC,EACnC,kBAAkB,EAClB,KAAK,mCAAmC,EACxC,KAAK,2BAA2B,EACjC,MAAM,qBAAqB,CAAC;AAE7B,8BAAsB,kBAAmB,SAAQ,kBAAkB;IACjE,SAAkB,cAAc,EAAE,2BAA2B,CAAC,OAAO,CAAC,CAAC;IACvE,KAAK,EAAE,SAAS,CAAC;IAEjB,SAAS,aACP,cAAc,EAAE,2BAA2B,CAAC,OAAO,CAAC,EACpD,KAAK,EAAE,SAAS;CAWnB;AAED,qBAAa,0BAA2B,SAAQ,kBAAkB;IAChE,SAAkB,cAAc,EAAE,mCAAmC,CAAC,OAAO,CAAC,CAAC;IAE/E,OAAO;IAQP,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,0BAA0B;CAG5D;AAED,qBAAa,0BAA2B,SAAQ,kBAAkB;IAChE,SAAkB,cAAc,EAAE,mCAAmC,CAAC,OAAO,CAAC,CAAC;IAE/E,OAAO;IAQP,MAAM,CAAC,MAAM,CACX,cAAc,EAAE,mCAAmC,CAAC,OAAO,CAAC,EAC5D,KAAK,EAAE,SAAS,GACf,0BAA0B;CAG9B"}
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { observable, action, makeObservable } from 'mobx';
16
+ import { observable, makeObservable } from 'mobx';
17
17
  import { PackageableElementExplicitReference, ReferenceWithOwner, } from '@finos/legend-graph';
18
18
  export class ClassViewReference extends ReferenceWithOwner {
19
19
  ownerReference;
@@ -22,15 +22,10 @@ export class ClassViewReference extends ReferenceWithOwner {
22
22
  super(ownerReference);
23
23
  makeObservable(this, {
24
24
  value: observable,
25
- setValue: action,
26
25
  });
27
26
  this.ownerReference = ownerReference;
28
27
  this.value = value;
29
28
  }
30
- setValue(value) {
31
- this.value = value;
32
- this.ownerReference.value = value.owner;
33
- }
34
29
  }
35
30
  export class ClassViewExplicitReference extends ClassViewReference {
36
31
  ownerReference;
@@ -1 +1 @@
1
- {"version":3,"file":"DSLDiagram_ClassViewReference.js","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAG1D,OAAO,EACL,mCAAmC,EACnC,kBAAkB,GAGnB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,OAAgB,kBAAmB,SAAQ,kBAAkB;IAC/C,cAAc,CAAuC;IACvE,KAAK,CAAY;IAEjB,YACE,cAAoD,EACpD,KAAgB;QAEhB,KAAK,CAAC,cAAc,CAAC,CAAC;QAEtB,cAAc,CAAC,IAAI,EAAE;YACnB,KAAK,EAAE,UAAU;YACjB,QAAQ,EAAE,MAAM;SACjB,CAAC,CAAC;QAEH,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED,QAAQ,CAAC,KAAgB;QACvB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,cAAc,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;IAC1C,CAAC;CACF;AAED,MAAM,OAAO,0BAA2B,SAAQ,kBAAkB;IAC9C,cAAc,CAA+C;IAE/E,YAAoB,KAAgB;QAClC,MAAM,cAAc,GAAG,mCAAmC,CAAC,MAAM,CAC/D,KAAK,CAAC,KAAK,CACZ,CAAC;QACF,KAAK,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;QAC7B,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;IACvC,CAAC;IAED,MAAM,CAAC,MAAM,CAAC,KAAgB;QAC5B,OAAO,IAAI,0BAA0B,CAAC,KAAK,CAAC,CAAC;IAC/C,CAAC;CACF;AAED,MAAM,OAAO,0BAA2B,SAAQ,kBAAkB;IAC9C,cAAc,CAA+C;IAE/E,YACE,cAA4D,EAC5D,KAAgB;QAEhB,KAAK,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;QAC7B,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;IACvC,CAAC;IAED,MAAM,CAAC,MAAM,CACX,cAA4D,EAC5D,KAAgB;QAEhB,OAAO,IAAI,0BAA0B,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;IAC/D,CAAC;CACF"}
1
+ {"version":3,"file":"DSLDiagram_ClassViewReference.js","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAGlD,OAAO,EACL,mCAAmC,EACnC,kBAAkB,GAGnB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,OAAgB,kBAAmB,SAAQ,kBAAkB;IAC/C,cAAc,CAAuC;IACvE,KAAK,CAAY;IAEjB,YACE,cAAoD,EACpD,KAAgB;QAEhB,KAAK,CAAC,cAAc,CAAC,CAAC;QAEtB,cAAc,CAAC,IAAI,EAAE;YACnB,KAAK,EAAE,UAAU;SAClB,CAAC,CAAC;QAEH,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF;AAED,MAAM,OAAO,0BAA2B,SAAQ,kBAAkB;IAC9C,cAAc,CAA+C;IAE/E,YAAoB,KAAgB;QAClC,MAAM,cAAc,GAAG,mCAAmC,CAAC,MAAM,CAC/D,KAAK,CAAC,KAAK,CACZ,CAAC;QACF,KAAK,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;QAC7B,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;IACvC,CAAC;IAED,MAAM,CAAC,MAAM,CAAC,KAAgB;QAC5B,OAAO,IAAI,0BAA0B,CAAC,KAAK,CAAC,CAAC;IAC/C,CAAC;CACF;AAED,MAAM,OAAO,0BAA2B,SAAQ,kBAAkB;IAC9C,cAAc,CAA+C;IAE/E,YACE,cAA4D,EAC5D,KAAgB;QAEhB,KAAK,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;QAC7B,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;IACvC,CAAC;IAED,MAAM,CAAC,MAAM,CACX,cAA4D,EAC5D,KAAgB;QAEhB,OAAO,IAAI,0BAA0B,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;IAC/D,CAAC;CACF"}
@@ -25,17 +25,6 @@ export declare class Diagram extends PackageableElement implements Hashable {
25
25
  generalizationViews: GeneralizationView[];
26
26
  propertyViews: PropertyView[];
27
27
  constructor(name: string);
28
- setClassViews(val: ClassView[]): void;
29
- addClassView(val: ClassView): void;
30
- deleteClassView(val: ClassView): void;
31
- setAssociationViews(val: AssociationView[]): void;
32
- deleteAssociationView(val: AssociationView): void;
33
- setGeneralizationViews(val: GeneralizationView[]): void;
34
- addGeneralizationView(val: GeneralizationView): void;
35
- deleteGeneralizationView(val: GeneralizationView): void;
36
- setPropertyViews(val: PropertyView[]): void;
37
- addPropertyView(val: PropertyView): void;
38
- deletePropertyView(val: PropertyView): void;
39
28
  protected get _elementHashCode(): string;
40
29
  accept_PackageableElementVisitor<T>(visitor: PackageableElementVisitor<T>): T;
41
30
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DSLDiagram_Diagram.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAIL,KAAK,QAAQ,E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AAE,yBAAyB,CAAC,CAAC,CAAC,GACpC,CAAC;CAGL"}
1
+ {"version":3,"file":"DSLDiagram_Diagram.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EACL,KAAK,yBAAyB,EAC9B,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAG7B,qBAAa,OAAQ,SAAQ,kBAAmB,YAAW,QAAQ;IACjE,UAAU,EAAE,SAAS,EAAE,CAAM;IAC7B,gBAAgB,EAAE,eAAe,EAAE,CAAM;IACzC,mBAAmB,EAAE,kBAAkB,EAAE,CAAM;IAC/C,aAAa,EAAE,YAAY,EAAE,CAAM;gBAEvB,IAAI,EAAE,MAAM;IAYxB,cAAuB,gBAAgB,IAAI,MAAM,CAShD;IAED,gCAAgC,CAAC,CAAC,EAChC,OAAO,EAAE,yBAAyB,CAAC,CAAC,CAAC,GACpC,CAAC;CAGL"}
@@ -13,8 +13,8 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { observable, action, makeObservable, override } from 'mobx';
17
- import { hashArray, addUniqueEntry, deleteEntry, } from '@finos/legend-shared';
16
+ import { observable, makeObservable, override } from 'mobx';
17
+ import { hashArray } from '@finos/legend-shared';
18
18
  import { PackageableElement, } from '@finos/legend-graph';
19
19
  import { DIAGRAM_HASH_STRUCTURE } from '../../../../DSLDiagram_ModelUtils';
20
20
  export class Diagram extends PackageableElement {
@@ -29,53 +29,9 @@ export class Diagram extends PackageableElement {
29
29
  associationViews: observable,
30
30
  generalizationViews: observable,
31
31
  propertyViews: observable,
32
- setClassViews: action,
33
- addClassView: action,
34
- deleteClassView: action,
35
- setAssociationViews: action,
36
- deleteAssociationView: action,
37
- setGeneralizationViews: action,
38
- addGeneralizationView: action,
39
- deleteGeneralizationView: action,
40
- setPropertyViews: action,
41
- addPropertyView: action,
42
- deletePropertyView: action,
43
32
  _elementHashCode: override,
44
33
  });
45
34
  }
46
- setClassViews(val) {
47
- this.classViews = val;
48
- }
49
- addClassView(val) {
50
- addUniqueEntry(this.classViews, val);
51
- }
52
- deleteClassView(val) {
53
- deleteEntry(this.classViews, val);
54
- }
55
- setAssociationViews(val) {
56
- this.associationViews = val;
57
- }
58
- deleteAssociationView(val) {
59
- deleteEntry(this.associationViews, val);
60
- }
61
- setGeneralizationViews(val) {
62
- this.generalizationViews = val;
63
- }
64
- addGeneralizationView(val) {
65
- addUniqueEntry(this.generalizationViews, val);
66
- }
67
- deleteGeneralizationView(val) {
68
- deleteEntry(this.generalizationViews, val);
69
- }
70
- setPropertyViews(val) {
71
- this.propertyViews = val;
72
- }
73
- addPropertyView(val) {
74
- addUniqueEntry(this.propertyViews, val);
75
- }
76
- deletePropertyView(val) {
77
- deleteEntry(this.propertyViews, val);
78
- }
79
35
  get _elementHashCode() {
80
36
  return hashArray([
81
37
  DIAGRAM_HASH_STRUCTURE.DIAGRAM,
@@ -1 +1 @@
1
- {"version":3,"file":"DSLDiagram_Diagram.js","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EACL,SAAS,EACT,cAAc,EACd,WAAW,GAEZ,MAAM,sBAAsB,CAA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C,gBAAgB,EAAE,GAAG,CAAC,CAAC;IAC1C,CAAC;IACD,sBAAsB,CAAC,GAAyB;QAC9C,IAAI,CAAC,mBAAmB,GAAG,GAAG,CAAC;IACjC,CAAC;IACD,qBAAqB,CAAC,GAAuB;QAC3C,cAAc,CAAC,IAAI,CAAC,mBAAmB,EAAE,GAAG,CAAC,CAAC;IAChD,CAAC;IACD,wBAAwB,CAAC,GAAuB;QAC9C,WAAW,CAAC,IAAI,CAAC,mBAAmB,EAAE,GAAG,CAAC,CAAC;IAC7C,CAAC;IACD,gBAAgB,CAAC,GAAmB;QAClC,IAAI,CAAC,aAAa,GAAG,GAAG,CAAC;IAC3B,CAAC;IACD,eAAe,CAAC,GAAiB;QAC/B,cAAc,CAAC,IAAI,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC;IAC1C,CAAC;IACD,kBAAkB,CAAC,GAAiB;QAClC,WAAW,CAAC,IAAI,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC;IACvC,CAAC;IAED,IAAuB,gBAAgB;QACrC,OAAO,SAAS,CAAC;YACf,sBAAsB,CAAC,OAAO;YAC9B,IAAI,CAAC,IAAI;YACT,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC;YAC1B,0BAA0B;YAC1B,SAAS,CAAC,IAAI,CAAC,mBAAmB,CAAC;YACnC,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC;SAC9B,CAAC,CAAC;IACL,CAAC;IAED,gCAAgC,CAC9B,OAAqC;QAErC,OAAO,OAAO,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;CACF"}
1
+ {"version":3,"file":"DSLDiagram_Diagram.js","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAiB,MAAM,sBAAsB,CAAC;AAKhE,OAAO,EAEL,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,MAAM,OAAO,OAAQ,SAAQ,kBAAkB;IAC7C,UAAU,GAAgB,EAAE,CAAC;IAC7B,gBAAgB,GAAsB,EAAE,CAAC;IACzC,mBAAmB,GAAyB,EAAE,CAAC;IAC/C,aAAa,GAAmB,EAAE,CAAC;IAEnC,YAAY,IAAY;QACtB,KAAK,CAAC,IAAI,CAAC,CAAC;QAEZ,cAAc,CAA8B,IAAI,EAAE;YAChD,UAAU,EAAE,UAAU;YACtB,gBAAgB,EAAE,UAAU;YAC5B,mBAAmB,EAAE,UAAU;YAC/B,aAAa,EAAE,UAAU;YACzB,gBAAgB,EAAE,QAAQ;SAC3B,CAAC,CAAC;IACL,CAAC;IAED,IAAuB,gBAAgB;QACrC,OAAO,SAAS,CAAC;YACf,sBAAsB,CAAC,OAAO;YAC9B,IAAI,CAAC,IAAI;YACT,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC;YAC1B,0BAA0B;YAC1B,SAAS,CAAC,IAAI,CAAC,mBAAmB,CAAC;YACnC,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC;SAC9B,CAAC,CAAC;IACL,CAAC;IAED,gCAAgC,CAC9B,OAAqC;QAErC,OAAO,OAAO,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;CACF"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { ClassView } from './DSLDiagram_ClassView';
17
+ import type { RelationshipView } from './DSLDiagram_RelationshipView';
18
+ import { Point } from './geometry/DSLDiagram_Point';
19
+ export declare const _relationView_setPath: (relationView: RelationshipView, val: Point[]) => void;
20
+ /**
21
+ * For a path, only counts the points which lie outside of the 2 class views
22
+ */
23
+ export declare const _relationView_manageInsidePointsDynamically: (path: Point[], from: ClassView, to: ClassView) => Point[];
24
+ /**
25
+ * Flatten the path if the angle is wide enough
26
+ * Also `swallow` points in path which lie inside of the rectangle of a view
27
+ */
28
+ export declare const _relationView_possiblyFlattenPath: (relationView: RelationshipView) => void;
29
+ /**
30
+ * Based on the location, find the point on the path that matches or create new point
31
+ * (within a threshold of proximity) from the coordinate and put this in the path array
32
+ * so it doesn't look too weird
33
+ */
34
+ export declare const _findOrBuildPoint: (relationView: RelationshipView, x: number, y: number, zoom: number, allowChange?: boolean) => Point | undefined;
35
+ //# sourceMappingURL=DSLDiagram_GraphModifierHelper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DSLDiagram_GraphModifierHelper.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GraphModifierHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAGpD,eAAO,MAAM,qBAAqB,iBAClB,gBAAgB,OACzB,KAAK,EAAE,KACX,IAEF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,2CAA2C,SAChD,KAAK,EAAE,QACP,SAAS,MACX,SAAS,KACZ,KAAK,EAsBP,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iCAAiC,iBAC9B,gBAAgB,KAC7B,IA8CF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,iBACd,gBAAgB,KAC3B,MAAM,KACN,MAAM,QACH,MAAM,4BAEX,KAAK,GAAG,SAwCV,CAAC"}
@@ -0,0 +1,118 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Point } from './geometry/DSLDiagram_Point';
17
+ import { Vector } from './geometry/DSLDiagram_Vector';
18
+ export const _relationView_setPath = (relationView, val) => {
19
+ relationView.path = val;
20
+ };
21
+ /**
22
+ * For a path, only counts the points which lie outside of the 2 class views
23
+ */
24
+ export const _relationView_manageInsidePointsDynamically = (path, from, to) => {
25
+ if (!path.length) {
26
+ return [];
27
+ }
28
+ let start = 0;
29
+ let startPoint = path[start];
30
+ while (start < path.length - 1 && from.contains(startPoint.x, startPoint.y)) {
31
+ start++;
32
+ startPoint = path[start];
33
+ }
34
+ let end = path.length - 1;
35
+ let endPoint = path[end];
36
+ while (end > 0 && to.contains(endPoint.x, endPoint.y)) {
37
+ end--;
38
+ endPoint = path[end];
39
+ }
40
+ return path.slice(start - 1, end + 2);
41
+ };
42
+ /**
43
+ * Flatten the path if the angle is wide enough
44
+ * Also `swallow` points in path which lie inside of the rectangle of a view
45
+ */
46
+ export const _relationView_possiblyFlattenPath = (relationView) => {
47
+ const fullPath = relationView.buildFullPath();
48
+ // NOTE: this method here will `swallow` up points inside of the boxes
49
+ const newPath = _relationView_manageInsidePointsDynamically(fullPath, relationView.from.classView.value, relationView.to.classView.value);
50
+ // recompute the offset point from center inside of `from` and `to` classviews.
51
+ // for each, we first check if `manageInsidePointsDynamically` removes any points from the full path
52
+ // if it does we will update the offset
53
+ if (newPath[0] !== fullPath[0]) {
54
+ const center = relationView.from.classView.value.center();
55
+ relationView.from.offsetX = newPath[0].x - center.x;
56
+ relationView.from.offsetY = newPath[0].y - center.y;
57
+ }
58
+ if (newPath[newPath.length - 1] !== fullPath[fullPath.length - 1]) {
59
+ const center = relationView.to.classView.value.center();
60
+ relationView.to.offsetX =
61
+ newPath[newPath.length - 1].x - center.x;
62
+ relationView.to.offsetY =
63
+ newPath[newPath.length - 1].y - center.y;
64
+ }
65
+ // find the point which can be flattened due to its wide angle
66
+ const result = [];
67
+ for (let i = 0; i < newPath.length - 2; i++) {
68
+ const v1 = Vector.fromPoints(newPath[i + 1], newPath[i]).norm();
69
+ const v2 = Vector.fromPoints(newPath[i + 1], newPath[i + 2]).norm();
70
+ const dot = v1.dotProduct(v2);
71
+ const angle = (Math.acos(dot) * 180) / Math.PI;
72
+ if (Math.abs(angle - 180) > 5) {
73
+ result.push(newPath[i + 1]);
74
+ }
75
+ }
76
+ // here's where we will modify the path, i.e. swallow inside points if we have to
77
+ _relationView_setPath(relationView, result);
78
+ };
79
+ /**
80
+ * Based on the location, find the point on the path that matches or create new point
81
+ * (within a threshold of proximity) from the coordinate and put this in the path array
82
+ * so it doesn't look too weird
83
+ */
84
+ export const _findOrBuildPoint = (relationView, x, y, zoom, allowChange = true) => {
85
+ for (const pt of relationView.path) {
86
+ if (Math.sqrt((x - pt.x) * (x - pt.x) + (y - pt.y) * (y - pt.y)) <
87
+ 10 / zoom) {
88
+ return pt;
89
+ }
90
+ }
91
+ const fullPath = relationView.buildFullPath(allowChange);
92
+ const newPath = [];
93
+ let point;
94
+ for (let i = 0; i < fullPath.length - 1; i++) {
95
+ const a = fullPath[i];
96
+ const b = fullPath[i + 1];
97
+ const n = new Vector(a.x, a.y).normal(new Vector(b.x, b.y)).norm();
98
+ const v = Vector.fromPoints(a, new Point(x, y));
99
+ if (Math.abs(n.dotProduct(v)) < 5 / zoom) {
100
+ const lx = (a.x < b.x ? a.x : b.x) - 5 / zoom;
101
+ const hx = (a.x < b.x ? b.x : a.x) + 5 / zoom;
102
+ const ly = (a.y < b.y ? a.y : b.y) - 5 / zoom;
103
+ const hy = (a.y < b.y ? b.y : a.y) + 5 / zoom;
104
+ if (lx <= x && x <= hx && ly <= y && y <= hy) {
105
+ point = new Point(x, y);
106
+ newPath.push(point);
107
+ }
108
+ }
109
+ if (i < fullPath.length - 2) {
110
+ newPath.push(fullPath[i + 1]);
111
+ }
112
+ }
113
+ if (point && allowChange) {
114
+ _relationView_setPath(relationView, newPath);
115
+ }
116
+ return point;
117
+ };
118
+ //# sourceMappingURL=DSLDiagram_GraphModifierHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DSLDiagram_GraphModifierHelper.js","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GraphModifierHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAEtD,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,YAA8B,EAC9B,GAAY,EACN,EAAE;IACR,YAAY,CAAC,IAAI,GAAG,GAAG,CAAC;AAC1B,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,2CAA2C,GAAG,CACzD,IAAa,EACb,IAAe,EACf,EAAa,EACJ,EAAE;IACX,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;QAChB,OAAO,EAAE,CAAC;KACX;IAED,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,IAAI,UAAU,GAAG,IAAI,CAAC,KAAK,CAAU,CAAC;IAEtC,OAAO,KAAK,GAAG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AAC,KAAK,CAAC,CAAC;aACrB;SACF;QAED,IAAI,CAAC,GAAG,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;YAC3B,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAU,CAAC,CAAC;SACxC;KACF;IACD,IAAI,KAAK,IAAI,WAAW,EAAE;QACxB,qBAAqB,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;KAC9C;IACD,OAAO,KAAK,CAAC;AACf,CAAC,CAAC"}
@@ -19,7 +19,5 @@ export declare class RelationShipEdgeView {
19
19
  offsetX?: number | undefined;
20
20
  offsetY?: number | undefined;
21
21
  constructor(classView: ClassViewReference);
22
- setOffsetX(val: number): void;
23
- setOffsetY(val: number): void;
24
22
  }
25
23
  //# sourceMappingURL=DSLDiagram_RelationshipEdgeView.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DSLDiagram_RelationshipEdgeView.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAE1E,qBAAa,oBAAoB;IAC/B,SAAS,EAAE,kBAAkB,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;gBAEjB,SAAS,EAAE,kBAAkB;IAWzC,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAG7B,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;CAG9B"}
1
+ {"version":3,"file":"DSLDiagram_RelationshipEdgeView.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAE1E,qBAAa,oBAAoB;IAC/B,SAAS,EAAE,kBAAkB,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;gBAEjB,SAAS,EAAE,kBAAkB;CAQ1C"}
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { observable, action, makeObservable } from 'mobx';
16
+ import { observable, makeObservable } from 'mobx';
17
17
  export class RelationShipEdgeView {
18
18
  classView;
19
19
  offsetX;
@@ -22,16 +22,8 @@ export class RelationShipEdgeView {
22
22
  makeObservable(this, {
23
23
  offsetX: observable,
24
24
  offsetY: observable,
25
- setOffsetX: action,
26
- setOffsetY: action,
27
25
  });
28
26
  this.classView = classView;
29
27
  }
30
- setOffsetX(val) {
31
- this.offsetX = val;
32
- }
33
- setOffsetY(val) {
34
- this.offsetY = val;
35
- }
36
28
  }
37
29
  //# sourceMappingURL=DSLDiagram_RelationshipEdgeView.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DSLDiagram_RelationshipEdgeView.js","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAG1D,MAAM,OAAO,oBAAoB;IAC/B,SAAS,CAAqB;IAC9B,OAAO,CAAsB;IAC7B,OAAO,CAAsB;IAE7B,YAAY,SAA6B;QACvC,cAAc,CAAC,IAAI,EAAE;YACnB,OAAO,EAAE,UAAU;YACnB,OAAO,EAAE,UAAU;YACnB,UAAU,EAAE,MAAM;YAClB,UAAU,EAAE,MAAM;SACnB,CAAC,CAAC;QAEH,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;IAED,UAAU,CAAC,GAAW;QACpB,IAAI,CAAC,OAAO,GAAG,GAAG,CAAC;IACrB,CAAC;IACD,UAAU,CAAC,GAAW;QACpB,IAAI,CAAC,OAAO,GAAG,GAAG,CAAC;IACrB,CAAC;CACF"}
1
+ {"version":3,"file":"DSLDiagram_RelationshipEdgeView.js","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAGlD,MAAM,OAAO,oBAAoB;IAC/B,SAAS,CAAqB;IAC9B,OAAO,CAAsB;IAC7B,OAAO,CAAsB;IAE7B,YAAY,SAA6B;QACvC,cAAc,CAAC,IAAI,EAAE;YACnB,OAAO,EAAE,UAAU;YACnB,OAAO,EAAE,UAAU;SACpB,CAAC,CAAC;QAEH,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;CACF"}
@@ -18,18 +18,12 @@ import { RelationShipEdgeView as RelationshipEdgeView } from './DSLDiagram_Relat
18
18
  import { Point } from './geometry/DSLDiagram_Point';
19
19
  import type { ClassView } from './DSLDiagram_ClassView';
20
20
  import type { Diagram } from './DSLDiagram_Diagram';
21
- /**
22
- * For a path, only counts the points which lie outside of the 2 class views
23
- */
24
- export declare const manageInsidePointsDynamically: (path: Point[], from: ClassView, to: ClassView) => Point[];
25
21
  export declare class RelationshipView implements Hashable {
26
22
  owner: Diagram;
27
23
  from: RelationshipEdgeView;
28
24
  to: RelationshipEdgeView;
29
25
  path: Point[];
30
26
  constructor(owner: Diagram, from: ClassView, to: ClassView);
31
- setPath(val: Point[]): void;
32
- changePoint(val: Point, newVal: Point): void;
33
27
  /**
34
28
  * Compute the full path for an edge, but notice here that the end points are recomputed every time, as such
35
29
  * `path` only stores point that matters to the edge but are not end points
@@ -39,17 +33,6 @@ export declare class RelationshipView implements Hashable {
39
33
  * This method will compute the full path from the offset within class view for persistence purpose
40
34
  */
41
35
  get fullPath(): Point[];
42
- /**
43
- * Flatten the path if the angle is wide enough
44
- * Also `swallow` points in path which lie inside of the rectangle of a view
45
- */
46
- possiblyFlattenPath(): void;
47
- /**
48
- * Based on the location, find the point on the path that matches or create new point
49
- * (within a threshold of proximity) from the coordinate and put this in the path array
50
- * so it doesn't look too weird
51
- */
52
- findOrBuildPoint(x: number, y: number, zoom: number, allowChange?: boolean): Point | undefined;
53
36
  /**
54
37
  * Calculate the end points of the edge using offset, otherwise, use the center
55
38
  */
@@ -1 +1 @@
1
- {"version":3,"file":"DSLDiagram_RelationshipView.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAA0B,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAE,oBAAoB,IAAI,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACjG,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAIpD;;GAEG;AACH,eAAO,MAAM,6BAA6B,SAClC,KAAK,EAAE,QACP,SAAS,MACX,SAAS,KACZ,KAAK,EAsBP,CAAC;AAEF,qBAAa,gBAAiB,YAAW,QAAQ;IAC/C,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,oBAAoB,CAAC;IAC3B,EAAE,EAAE,oBAAoB,CAAC;IAGzB,IAAI,EAAE,KAAK,EAAE,CAAM;gBAEP,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS;IAe1D,OAAO,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,IAAI;IAG3B,WAAW,CAAC,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,GAAG,IAAI;IAI5C;;;OAGG;IACH,aAAa,CAAC,WAAW,UAAO,GAAG,KAAK,EAAE;IAQ1C;;OAEG;IACH,IAAI,QAAQ,IAAI,KAAK,EAAE,CAMtB;IAED;;;OAGG;IACH,mBAAmB,IAAI,IAAI;IA6C3B;;;;OAIG;IACH,gBAAgB,CACd,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,IAAI,EAAE,MAAM,EACZ,WAAW,UAAO,GACjB,KAAK,GAAG,SAAS;IA0CpB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAkB3B,IAAI,QAAQ,IAAI,MAAM,CAOrB;CACF"}
1
+ {"version":3,"file":"DSLDiagram_RelationshipView.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,oBAAoB,IAAI,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACjG,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAKpD,qBAAa,gBAAiB,YAAW,QAAQ;IAC/C,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,oBAAoB,CAAC;IAC3B,EAAE,EAAE,oBAAoB,CAAC;IAGzB,IAAI,EAAE,KAAK,EAAE,CAAM;gBAEP,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS;IAa1D;;;OAGG;IACH,aAAa,CAAC,WAAW,UAAO,GAAG,KAAK,EAAE;IAQ1C;;OAEG;IACH,IAAI,QAAQ,IAAI,KAAK,EAAE,CAMtB;IAED;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAkB3B,IAAI,QAAQ,IAAI,MAAM,CAOrB;CACF"}