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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. package/lib/DiagramRenderer.d.ts +4 -1
  2. package/lib/DiagramRenderer.d.ts.map +1 -1
  3. package/lib/DiagramRenderer.js +21 -23
  4. package/lib/DiagramRenderer.js.map +1 -1
  5. package/lib/components/studio/ClassDiagramPreview.d.ts.map +1 -1
  6. package/lib/components/studio/ClassDiagramPreview.js +3 -1
  7. package/lib/components/studio/ClassDiagramPreview.js.map +1 -1
  8. package/lib/components/studio/DiagramEditor.d.ts.map +1 -1
  9. package/lib/components/studio/DiagramEditor.js +8 -5
  10. package/lib/components/studio/DiagramEditor.js.map +1 -1
  11. package/lib/graphManager/DSLDiagram_PureGraphManagerPlugin.d.ts +2 -1
  12. package/lib/graphManager/DSLDiagram_PureGraphManagerPlugin.d.ts.map +1 -1
  13. package/lib/graphManager/DSLDiagram_PureGraphManagerPlugin.js +11 -0
  14. package/lib/graphManager/DSLDiagram_PureGraphManagerPlugin.js.map +1 -1
  15. package/lib/graphManager/action/changeDetection/DSLDiagram_ObserverHelper.d.ts +34 -0
  16. package/lib/graphManager/action/changeDetection/DSLDiagram_ObserverHelper.d.ts.map +1 -0
  17. package/lib/graphManager/action/changeDetection/DSLDiagram_ObserverHelper.js +94 -0
  18. package/lib/graphManager/action/changeDetection/DSLDiagram_ObserverHelper.js.map +1 -0
  19. package/lib/helpers/DiagramHelper.d.ts +16 -1
  20. package/lib/helpers/DiagramHelper.d.ts.map +1 -1
  21. package/lib/helpers/DiagramHelper.js +87 -1
  22. package/lib/helpers/DiagramHelper.js.map +1 -1
  23. package/lib/index.css +1 -1
  24. package/lib/index.d.ts +0 -1
  25. package/lib/index.d.ts.map +1 -1
  26. package/lib/index.js +0 -1
  27. package/lib/index.js.map +1 -1
  28. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.d.ts.map +1 -1
  29. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.js +0 -4
  30. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.js.map +1 -1
  31. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.d.ts.map +1 -1
  32. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.js +0 -8
  33. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.js.map +1 -1
  34. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.d.ts.map +1 -1
  35. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.js +0 -4
  36. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.js.map +1 -1
  37. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.d.ts +0 -1
  38. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.d.ts.map +1 -1
  39. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.js +0 -11
  40. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.js.map +1 -1
  41. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.d.ts +0 -3
  42. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.d.ts.map +1 -1
  43. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.js +0 -7
  44. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.js.map +1 -1
  45. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.d.ts +0 -4
  46. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.d.ts.map +1 -1
  47. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.js +0 -7
  48. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.js.map +1 -1
  49. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.d.ts +6 -1
  50. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.d.ts.map +1 -1
  51. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.js +6 -6
  52. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.js.map +1 -1
  53. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.d.ts +24 -6
  54. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.d.ts.map +1 -1
  55. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.js +58 -27
  56. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.js.map +1 -1
  57. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.d.ts.map +1 -1
  58. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.js +0 -4
  59. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.js.map +1 -1
  60. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Vector.d.ts +3 -3
  61. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Vector.d.ts.map +1 -1
  62. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Vector.js +1 -1
  63. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Vector.js.map +1 -1
  64. package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.d.ts.map +1 -1
  65. package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.js +3 -4
  66. package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.js.map +1 -1
  67. package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.js +2 -2
  68. package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.js.map +1 -1
  69. package/lib/package.json +3 -3
  70. package/lib/stores/studio/{DSLDiagram_ModifierHelper.d.ts → DSLDiagram_GraphModifierHelper.d.ts} +10 -7
  71. package/lib/stores/studio/DSLDiagram_GraphModifierHelper.d.ts.map +1 -0
  72. package/lib/stores/studio/{DSLDiagram_ModifierHelper.js → DSLDiagram_GraphModifierHelper.js} +20 -13
  73. package/lib/stores/studio/DSLDiagram_GraphModifierHelper.js.map +1 -0
  74. package/lib/stores/studio/DiagramEditorState.d.ts.map +1 -1
  75. package/lib/stores/studio/DiagramEditorState.js +10 -7
  76. package/lib/stores/studio/DiagramEditorState.js.map +1 -1
  77. package/package.json +10 -10
  78. package/src/DiagramRenderer.ts +31 -34
  79. package/src/components/studio/ClassDiagramPreview.tsx +3 -1
  80. package/src/components/studio/DiagramEditor.tsx +10 -4
  81. package/src/graphManager/DSLDiagram_PureGraphManagerPlugin.ts +17 -0
  82. package/src/graphManager/action/changeDetection/DSLDiagram_ObserverHelper.ts +153 -0
  83. package/src/helpers/DiagramHelper.ts +122 -1
  84. package/src/index.ts +0 -1
  85. package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.ts +0 -6
  86. package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.ts +0 -10
  87. package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.ts +0 -6
  88. package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.ts +0 -13
  89. package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.ts +0 -11
  90. package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.ts +0 -17
  91. package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.ts +6 -7
  92. package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.ts +77 -34
  93. package/src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.ts +0 -5
  94. package/src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Vector.ts +3 -3
  95. package/src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.ts +6 -4
  96. package/src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.ts +4 -4
  97. package/src/stores/studio/{DSLDiagram_ModifierHelper.ts → DSLDiagram_GraphModifierHelper.ts} +34 -18
  98. package/src/stores/studio/DiagramEditorState.ts +26 -7
  99. package/tsconfig.json +2 -2
  100. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GraphModifierHelper.d.ts +0 -35
  101. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GraphModifierHelper.d.ts.map +0 -1
  102. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GraphModifierHelper.js +0 -118
  103. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GraphModifierHelper.js.map +0 -1
  104. package/lib/stores/studio/DSLDiagram_ModifierHelper.d.ts.map +0 -1
  105. package/lib/stores/studio/DSLDiagram_ModifierHelper.js.map +0 -1
  106. package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GraphModifierHelper.ts +0 -165
@@ -1 +1 @@
1
- {"version":3,"file":"ClassDiagramPreview.d.ts","sourceRoot":"","sources":["../../../src/components/studio/ClassDiagramPreview.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAMH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAIjD,eAAO,MAAM,mBAAmB,WAAoB;IAAE,MAAM,EAAE,KAAK,CAAA;CAAE;;CAiEnE,CAAC"}
1
+ {"version":3,"file":"ClassDiagramPreview.d.ts","sourceRoot":"","sources":["../../../src/components/studio/ClassDiagramPreview.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAMH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAKjD,eAAO,MAAM,mBAAmB,WAAoB;IAAE,MAAM,EAAE,KAAK,CAAA;CAAE;;CAkEnE,CAAC"}
@@ -20,10 +20,12 @@ import { observer } from 'mobx-react-lite';
20
20
  import { useApplicationStore } from '@finos/legend-application';
21
21
  import { InheritanceDiagramRenderer } from './InheritanceDiagramRenderer';
22
22
  import { DSL_DIAGRAM_TEST_ID } from './DSLDiagram_TestID';
23
+ import { useEditorStore } from '@finos/legend-studio';
23
24
  export const ClassDiagramPreview = observer((props) => {
24
25
  const { _class } = props;
25
26
  const applicationStore = useApplicationStore();
26
- const classHash = _class.isReadOnly
27
+ const editorStore = useEditorStore();
28
+ const classHash = editorStore.graphManagerState.isElementReadOnly(_class)
27
29
  ? undefined
28
30
  : applicationStore.notifyAndReturnAlternativeOnError(() => _class.hashCode, undefined); // attempting to read the hashCode of immutable element will throw an error
29
31
  const [diagramRenderer, setDiagramRenderer] = useState();
@@ -1 +1 @@
1
- {"version":3,"file":"ClassDiagramPreview.js","sourceRoot":"","sources":["../../../src/components/studio/ClassDiagramPreview.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1D,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CAAC,CAAC,KAAwB,EAAE,EAAE;IACvE,MAAM,EAAE,MAAM,EAAE,GA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,CAAC,MAAM,EAAE,CAAC;YACzB,eAAe,CAAC,YAAY,EAAE,CAAC;SAChC;IACH,CAAC,EAAE,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,CAAC;IAE9B,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,eAAe,EAAE;YACnB,eAAe,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;YAClC,eAAe,CAAC,MAAM,EAAE,CAAC;YACzB,eAAe,CAAC,YAAY,EAAE,CAAC;SAChC;IACH,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,eAAe,CAAC,CAAC,CAAC;IAEzC,OAAO,CACL,cACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAC,+BAA+B,iBAC5B,mBAAmB,CAAC,qBAAqB,YAEtD,cACE,GAAG,EAAE,MAAM,EACX,SAAS,EAAC,gBAAgB,EAC1B,QAAQ,EAAE,CAAC,EACX,aAAa,EAAE,CAAC,KAAK,EAAQ,EAAE,CAAC,KAAK,CAAC,cAAc,EAAE,GACtD,GACE,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DiagramEditor.d.ts","sourceRoot":"","sources":["../../../src/components/studio/DiagramEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAyxCH,eAAO,MAAM,aAAa;;CAmDxB,CAAC"}
1
+ {"version":3,"file":"DiagramEditor.d.ts","sourceRoot":"","sources":["../../../src/components/studio/DiagramEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AA+xCH,eAAO,MAAM,aAAa;;CAmDxB,CAAC"}
@@ -28,7 +28,7 @@ import { useApplicationStore, } from '@finos/legend-application';
28
28
  import { ClassFormEditor, CORE_DND_TYPE, ElementDragSource, useEditorStore, property_setName, property_setGenericType, property_setMultiplicity, package_addElement, } from '@finos/legend-studio';
29
29
  import { cleanUpDeadReferencesInDiagram } from '../../helpers/DiagramHelper';
30
30
  import { Point } from '../../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point';
31
- import { classView_setHideProperties, classView_setHideStereotypes, classView_setHideTaggedValues, } from '../../stores/studio/DSLDiagram_ModifierHelper';
31
+ import { classView_setHideProperties, classView_setHideStereotypes, classView_setHideTaggedValues, } from '../../stores/studio/DSLDiagram_GraphModifierHelper';
32
32
  const DiagramEditorContextMenu = observer(forwardRef(function DiagramEditorContextMenu(props, ref) {
33
33
  const { diagramEditorState } = props;
34
34
  const editorStore = useEditorStore();
@@ -205,6 +205,7 @@ const DiagramEditorInlineClassRenamer = observer((props) => {
205
205
  const DiagramEditorInlineClassCreatorInner = observer((props) => {
206
206
  const { inlineClassCreatorState } = props;
207
207
  const editorStore = useEditorStore();
208
+ const applicationStore = useApplicationStore();
208
209
  const diagramEditorState = inlineClassCreatorState.diagramEditorState;
209
210
  const isReadOnly = diagramEditorState.isReadOnly;
210
211
  const [path, setPath] = useState(`${diagramEditorState.diagram.package
@@ -224,18 +225,20 @@ const DiagramEditorInlineClassCreatorInner = observer((props) => {
224
225
  ? `Class already existed`
225
226
  : undefined;
226
227
  const canCreateClass = isClassPathNonEmpty && isNotTopLevelClass && isValidPath && isClassUnique;
227
- const close = (event) => {
228
+ const createClass = async (event) => {
228
229
  event.preventDefault();
229
230
  if (canCreateClass) {
230
231
  diagramEditorState.setInlineClassCreatorState(undefined);
231
232
  const [packagePath, name] = resolvePackagePathAndElementName(path);
232
233
  const _class = new Class(name);
233
- package_addElement(editorStore.graphManagerState.graph.getOrCreatePackage(packagePath), _class);
234
- editorStore.graphManagerState.graph.addElement(_class);
235
- editorStore.explorerTreeState.reprocess();
234
+ package_addElement(editorStore.graphManagerState.graph.getOrCreatePackage(packagePath), _class, editorStore.changeDetectionState.observerContext);
235
+ await flowResult(editorStore.addElement(_class, false));
236
236
  diagramEditorState.renderer.addClassView(_class, inlineClassCreatorState.point);
237
237
  }
238
238
  };
239
+ const close = (event) => {
240
+ createClass(event).catch(applicationStore.alertUnhandledError);
241
+ };
239
242
  const pathInputRef = useRef(null);
240
243
  const changePath = (event) => setPath(event.target.value);
241
244
  useEffect(() => {
@@ -1 +1 @@
1
- {"version":3,"file":"DiagramEditor.js","sourceRoot":"","sources":["../../../src/components/studio/DiagramEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,MAAM,EACN,QAAQ,EACR,SAAS,EACT,WAAW,EACX,QAAQ,EACR,UAAU,GACX,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAA0B,OAAO,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,eAAe,EACf,wBAAwB,EACxB,8BAA8B,EAC9B,mBAAmB,GACpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAIL,6BAA6B,EAC7B,0CAA0C,EAC1C,kBAAkB,GACnB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAEL,WAAW,EACX,gCAAgC,EAChC,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,IAAI,EACJ,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,QAAQ,EACR,UAAU,EACV,mBAAmB,EACnB,sBAAsB,EACtB,cAAc,EACd,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,QAAQ,EACR,cAAc,EACd,WAAW,EACX,YAAY,EACZ,UAAU,EACV,WAAW,EACX,MAAM,GACP,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,KAAK,EACL,eAAe,EACf,QAAQ,EACR,YAAY,EACZ,sBAAsB,EACtB,qBAAqB,EACrB,WAAW,EACX,UAAU,EACV,eAAe,EACf,qBAAqB,EACrB,gCAAgC,GACjC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,oBAAoB,EAC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,CAAiB,IAAI,CAAC,CAAC;IACtD,MAAM,kBAAkB,GAAG,GAAS,EAAE,CAAC,kBAAkB,CAAC,gBAAgB,EAAE,CAAC;IAE7E,OAAO,CACL,eAAK,SAAS,EAAC,gBAAgB,aAC7B,cAAK,SAAS,EAAC,wBAAwB,YACpC,kBAAkB,CAAC,4BAA4B,IAAI,CAClD,KAAC,mBAAmB,IAAC,kBAAkB,EAAE,kBAAkB,GAAI,CAChE,GACG,EACN,eAAK,SAAS,EAAC,yBAAyB,aACrC,kBAAkB,CAAC,4BAA4B,IAAI,CAClD,KAAC,oBAAoB,IAAC,kBAAkB,EAAE,kBAAkB,GAAI,CACjE,EACD,MAAC,WAAW,IACV,SAAS,EAAC,uBAAuB,EACjC,OAAO,EACL,KAAC,wBAAwB,IAAC,kBAAkB,EAAE,kBAAkB,GAAI,EAEtE,QAAQ,EAAE,CAAC,kBAAkB,CAAC,eAAe,EAC7C,SAAS,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,EAC3B,OAAO,EAAE,kBAAkB,aAE1B,kBAAkB,CAAC,4BAA4B,IAAI,CAClD,KAAC,sBAAsB,IAAC,kBAAkB,EAAE,kBAAkB,GAAI,CACnE,EACD,KAAC,0BAA0B,IACzB,kBAAkB,EAAE,kBAAkB,EACtC,GAAG,EAAE,gBAAgB,GACrB,EACD,kBAAkB,CAAC,4BAA4B,IAAI,CAClD,8BACE,KAAC,iCAAiC,IAChC,kBAAkB,EAAE,kBAAkB,GACtC,EACF,KAAC,+BAA+B,IAC9B,kBAAkB,EAAE,kBAAkB,GACtC,EACF,KAAC,+BAA+B,IAC9B,kBAAkB,EAAE,kBAAkB,GACtC,IACD,CACJ,IACW,IACV,IACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"DiagramEditor.js","sourceRoot":"","sources":["../../../src/components/studio/DiagramEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,MAAM,EACN,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,MAAM,kBAAkB,GAAG,GAAS,EAAE,CAAC,kBAAkB,CAAC,gBAAgB,EAAE,CAAC;IAE7E,OAAO,CACL,eAAK,SAAS,EAAC,gBAAgB,aAC7B,cAAK,SAAS,EAAC,wBAAwB,YACpC,kBAAkB,CAAC,4BAA4B,IAAI,CAClD,KAAC,mBAAmB,IAAC,kBAAkB,EAAE,kBAAkB,GAAI,CAChE,GACG,EACN,eAAK,SAAS,EAAC,yBAAyB,aACrC,kBAAkB,CAAC,4BAA4B,IAAI,CAClD,KAAC,oBAAoB,IAAC,kBAAkB,EAAE,kBAAkB,GAAI,CACjE,EACD,MAAC,WAAW,IACV,SAAS,EAAC,uBAAuB,EACjC,OAAO,EACL,KAAC,wBAAwB,IAAC,kBAAkB,EAAE,kBAAkB,GAAI,EAEtE,QAAQ,EAAE,CAAC,kBAAkB,CAAC,eAAe,EAC7C,SAAS,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,EAC3B,OAAO,EAAE,kBAAkB,aAE1B,kBAAkB,CAAC,4BAA4B,IAAI,CAClD,KAAC,sBAAsB,IAAC,kBAAkB,EAAE,kBAAkB,GAAI,CACnE,EACD,KAAC,0BAA0B,IACzB,kBAAkB,EAAE,kBAAkB,EACtC,GAAG,EAAE,gBAAgB,GACrB,EACD,kBAAkB,CAAC,4BAA4B,IAAI,CAClD,8BACE,KAAC,iCAAiC,IAChC,kBAAkB,EAAE,kBAAkB,GACtC,EACF,KAAC,+BAA+B,IAC9B,kBAAkB,EAAE,kBAAkB,GACtC,EACF,KAAC,+BAA+B,IAC9B,kBAAkB,EAAE,kBAAkB,GACtC,IACD,CACJ,IACW,IACV,IACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -13,11 +13,12 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { PureGraphManagerPlugin, type PureGrammarElementLabeler } from '@finos/legend-graph';
16
+ import { PureGraphManagerPlugin, type ElementObserver, type PureGrammarElementLabeler } from '@finos/legend-graph';
17
17
  export declare class DSLDiagram_PureGraphManagerPlugin extends PureGraphManagerPlugin {
18
18
  constructor();
19
19
  getExtraPureGrammarParserNames(): string[];
20
20
  getExtraPureGrammarKeywords(): string[];
21
21
  getExtraPureGrammarElementLabelers(): PureGrammarElementLabeler[];
22
+ getExtraElementObservers(): ElementObserver[];
22
23
  }
23
24
  //# sourceMappingURL=DSLDiagram_PureGraphManagerPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DSLDiagram_PureGraphManagerPlugin.d.ts","sourceRoot":"","sources":["../../src/graphManager/DSLDiagram_PureGraphManagerPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,sBAAsB,EAEtB,KAAK,yBAAyB,EAC/B,MAAM,qBAAqB,CAAC;AAM7B,qBAAa,iCAAkC,SAAQ,sBAAsB;;IAKlE,8BAA8B,IAAI,MAAM,EAAE;IAI1C,2BAA2B,IAAI,MAAM,EAAE;IAIvC,kCAAkC,IAAI,yBAAyB,EAAE;CAU3E"}
1
+ {"version":3,"file":"DSLDiagram_PureGraphManagerPlugin.d.ts","sourceRoot":"","sources":["../../src/graphManager/DSLDiagram_PureGraphManagerPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,sBAAsB,EAEtB,KAAK,eAAe,EAEpB,KAAK,yBAAyB,EAC/B,MAAM,qBAAqB,CAAC;AAO7B,qBAAa,iCAAkC,SAAQ,sBAAsB;;IAKlE,8BAA8B,IAAI,MAAM,EAAE;IAI1C,2BAA2B,IAAI,MAAM,EAAE;IAIvC,kCAAkC,IAAI,yBAAyB,EAAE;IAWjE,wBAAwB,IAAI,eAAe,EAAE;CAavD"}
@@ -16,6 +16,7 @@
16
16
  import packageJson from '../../package.json';
17
17
  import { PureGraphManagerPlugin, } from '@finos/legend-graph';
18
18
  import { Diagram } from '../models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram';
19
+ import { observe_Diagram } from './action/changeDetection/DSLDiagram_ObserverHelper';
19
20
  const PURE_GRAMMAR_DIAGRAM_PARSER_NAME = 'Diagram';
20
21
  const PURE_GRAMMAR_DIAGRAM_ELEMENT_TYPE_LABEL = 'Diagram';
21
22
  export class DSLDiagram_PureGraphManagerPlugin extends PureGraphManagerPlugin {
@@ -38,5 +39,15 @@ export class DSLDiagram_PureGraphManagerPlugin extends PureGraphManagerPlugin {
38
39
  },
39
40
  ];
40
41
  }
42
+ getExtraElementObservers() {
43
+ return [
44
+ (element, context) => {
45
+ if (element instanceof Diagram) {
46
+ return observe_Diagram(element);
47
+ }
48
+ return undefined;
49
+ },
50
+ ];
51
+ }
41
52
  }
42
53
  //# sourceMappingURL=DSLDiagram_PureGraphManagerPlugin.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DSLDiagram_PureGraphManagerPlugin.js","sourceRoot":"","sources":["../../src/graphManager/DSLDiagram_PureGraphManagerPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EACL,sBAAsB,GAGvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,0EAA0E,CAAC;AAEnG,MAAM,gCAAgC,GAAG,SAAS,CAAC;AACnD,MAAM,uCAAuC,GAAG,SAAS,CAAC;AAE1D,MAAM,OAAO,iCAAkC,SAAQ,sBAAsB;IAC3E;QACE,KAAK,CAAC,WAAW,CAAC,UAAU,CAAC,sBAAsB,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC5E,CAAC;IAEQ,8BAA8B;QACrC,OAAO,CAAC,gCAAgC,CAAC,CAAC;IAC5C,CAAC;IAEQ,2BAA2B;QAClC,OAAO,CAAC,uCAAuC,CAAC,CAAC;IACnD,CAAC;IAEQ,kCAAkC;QACzC,OAAO;YACL,CAAC,OAA2B,EAAsB,EAAE;gBAClD,IAAI,OAAO,YAAY,OAAO,EAAE;oBAC9B,OAAO,uCAAuC,CAAC;iBAChD;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"DSLDiagram_PureGraphManagerPlugin.js","sourceRoot":"","sources":["../../src/graphManager/DSLDiagram_PureGraphManagerPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EACL,sBAAsB,GAKvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,0EAA0E,CAAC;AACnG,OAAO,EAAE,eAAe,EAAE,MAAM,oDAAoD,CAAC;AAErF,MAAM,gCAAgC,GAAG,SAAS,CAAC;AACnD,MAAM,uCAAuC,GAAG,SAAS,CAAC;AAE1D,MAAM,OAAO,iCAAkC,SAAQ,sBAAsB;IAC3E;QACE,KAAK,CAAC,WAAW,CAAC,UAAU,CAAC,sBAAsB,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC5E,CAAC;IAEQ,8BAA8B;QACrC,OAAO,CAAC,gCAAgC,CAAC,CAAC;IAC5C,CAAC;IAEQ,2BAA2B;QAClC,OAAO,CAAC,uCAAuC,CAAC,CAAC;IACnD,CAAC;IAEQ,kCAAkC;QACzC,OAAO;YACL,CAAC,OAA2B,EAAsB,EAAE;gBAClD,IAAI,OAAO,YAAY,OAAO,EAAE;oBAC9B,OAAO,uCAAuC,CAAC;iBAChD;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;IAEQ,wBAAwB;QAC/B,OAAO;YACL,CACE,OAA2B,EAC3B,OAAwB,EACQ,EAAE;gBAClC,IAAI,OAAO,YAAY,OAAO,EAAE;oBAC9B,OAAO,eAAe,CAAC,OAAO,CAAC,CAAC;iBACjC;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,34 @@
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 { AssociationView } from '../../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView';
17
+ import type { ClassView } from '../../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView';
18
+ import type { ClassViewReference } from '../../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference';
19
+ import type { Diagram } from '../../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram';
20
+ import type { GeneralizationView } from '../../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView';
21
+ import type { PropertyView } from '../../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView';
22
+ import type { RelationshipEdgeView } from '../../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView';
23
+ import type { RelationshipView } from '../../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView';
24
+ import type { PositionedRectangle } from '../../../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle';
25
+ export declare const observe_PositionedRectangle: (metamodel: PositionedRectangle) => PositionedRectangle;
26
+ export declare const observe_ClassViewReference: (metamodel: ClassViewReference) => ClassViewReference;
27
+ export declare const observe_ClassView: (metamodel: ClassView) => ClassView;
28
+ export declare const observe_RelationShipEdgeView: (metamodel: RelationshipEdgeView) => RelationshipEdgeView;
29
+ export declare const observe_RelationshipView: (metamodel: RelationshipView) => RelationshipView;
30
+ export declare const observe_GeneralizationView: (metamodel: GeneralizationView) => GeneralizationView;
31
+ export declare const observe_AssociationView: (metamodel: AssociationView) => AssociationView;
32
+ export declare const observe_PropertyView: (metamodel: PropertyView) => PropertyView;
33
+ export declare const observe_Diagram: (metamodel: Diagram) => Diagram;
34
+ //# sourceMappingURL=DSLDiagram_ObserverHelper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DSLDiagram_ObserverHelper.d.ts","sourceRoot":"","sources":["../../../../src/graphManager/action/changeDetection/DSLDiagram_ObserverHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AASH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wFAAwF,CAAC;AAC9H,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kFAAkF,CAAC;AAClH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2FAA2F,CAAC;AACpI,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gFAAgF,CAAC;AAC9G,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2FAA2F,CAAC;AACpI,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qFAAqF,CAAC;AACxH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6FAA6F,CAAC;AACxI,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yFAAyF,CAAC;AAChI,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qGAAqG,CAAC;AAE/I,eAAO,MAAM,2BAA2B,yDAKvC,CAAC;AAEF,eAAO,MAAM,0BAA0B,uDAUtC,CAAC;AAEF,eAAO,MAAM,iBAAiB,qCAgB7B,CAAC;AAEF,eAAO,MAAM,4BAA4B,2DAMxC,CAAC;AAEF,eAAO,MAAM,wBAAwB,mDAcpC,CAAC;AAEF,eAAO,MAAM,0BAA0B,uDAUtC,CAAC;AAEF,eAAO,MAAM,uBAAuB,iDAanC,CAAC;AAEF,eAAO,MAAM,oBAAoB,2CAYhC,CAAC;AAEF,eAAO,MAAM,eAAe,iCAiB1B,CAAC"}
@@ -0,0 +1,94 @@
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 { observe_Abstract_PackageableElement, observe_PackageableElementReference, observe_PropertyReference, skipObserved, } from '@finos/legend-graph';
17
+ import { computed, makeObservable, observable, override } from 'mobx';
18
+ export const observe_PositionedRectangle = skipObserved((metamodel) => makeObservable(metamodel, {
19
+ dummyObservable: observable,
20
+ }));
21
+ export const observe_ClassViewReference = skipObserved((metamodel) => {
22
+ makeObservable(metamodel, {
23
+ value: observable,
24
+ });
25
+ observe_PackageableElementReference(metamodel.ownerReference);
26
+ return metamodel;
27
+ });
28
+ export const observe_ClassView = skipObserved((metamodel) => {
29
+ observe_PositionedRectangle(metamodel);
30
+ makeObservable(metamodel, {
31
+ id: observable,
32
+ hideProperties: observable,
33
+ hideTaggedValues: observable,
34
+ hideStereotypes: observable,
35
+ hashCode: computed,
36
+ });
37
+ observe_PackageableElementReference(metamodel.class);
38
+ return metamodel;
39
+ });
40
+ export const observe_RelationShipEdgeView = skipObserved((metamodel) => {
41
+ observe_ClassViewReference(metamodel.classView);
42
+ return metamodel;
43
+ });
44
+ export const observe_RelationshipView = skipObserved((metamodel) => {
45
+ makeObservable(metamodel, {
46
+ // NOTE: to optimize performance for diagram, we have made classview's position and rectangle non-observable
47
+ // if we want to further optimize, perhaps we can also remove observability from path
48
+ path: observable,
49
+ pathForSerialization: computed,
50
+ });
51
+ observe_RelationShipEdgeView(metamodel.from);
52
+ observe_RelationShipEdgeView(metamodel.to);
53
+ return metamodel;
54
+ });
55
+ export const observe_GeneralizationView = skipObserved((metamodel) => {
56
+ observe_RelationshipView(metamodel);
57
+ makeObservable(metamodel, {
58
+ hashCode: computed,
59
+ });
60
+ return metamodel;
61
+ });
62
+ export const observe_AssociationView = skipObserved((metamodel) => {
63
+ observe_RelationshipView(metamodel);
64
+ makeObservable(metamodel, {
65
+ hashCode: computed,
66
+ });
67
+ observe_PropertyReference(metamodel.property);
68
+ observe_PackageableElementReference(metamodel.association);
69
+ return metamodel;
70
+ });
71
+ export const observe_PropertyView = skipObserved((metamodel) => {
72
+ observe_RelationshipView(metamodel);
73
+ makeObservable(metamodel, {
74
+ hashCode: computed,
75
+ });
76
+ observe_PropertyReference(metamodel.property);
77
+ return metamodel;
78
+ });
79
+ export const observe_Diagram = skipObserved((metamodel) => {
80
+ observe_Abstract_PackageableElement(metamodel);
81
+ makeObservable(metamodel, {
82
+ classViews: observable,
83
+ associationViews: observable,
84
+ generalizationViews: observable,
85
+ propertyViews: observable,
86
+ _elementHashCode: override,
87
+ });
88
+ metamodel.classViews.forEach(observe_ClassView);
89
+ metamodel.associationViews.forEach(observe_AssociationView);
90
+ metamodel.generalizationViews.forEach(observe_GeneralizationView);
91
+ metamodel.propertyViews.forEach(observe_PropertyView);
92
+ return metamodel;
93
+ });
94
+ //# sourceMappingURL=DSLDiagram_ObserverHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DSLDiagram_ObserverHelper.js","sourceRoot":"","sources":["../../../../src/graphManager/action/changeDetection/DSLDiagram_ObserverHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,mCAAmC,EACnC,mCAAmC,EACnC,yBAAyB,EACzB,YAAY,GACb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAWtE,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,QAAQ;KAC3B,CAAC,CAAC;IAEH,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAChD,SAAS,CAAC,gBAAgB,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAC5D,SAAS,CAAC,mBAAmB,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAC;IAClE,SAAS,CAAC,aAAa,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAEtD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC,CAAC"}
@@ -13,14 +13,29 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import { RelationshipView } from '../models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView';
17
+ import { Point } from '../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point';
16
18
  import type { PureModel } from '@finos/legend-graph';
17
19
  import type { ClassView } from '../models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView';
18
20
  import type { Diagram } from '../models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram';
19
- import { Point } from '../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point';
20
21
  /**
21
22
  * Get absolute position of element on the screen by recursively walking up element tree
22
23
  */
23
24
  export declare const getElementPosition: (element: HTMLElement) => Point;
24
25
  export declare const getClassView: (diagram: Diagram, sourceViewId: string) => ClassView | undefined;
25
26
  export declare const cleanUpDeadReferencesInDiagram: (diagram: Diagram, graph: PureModel) => void;
27
+ export declare const _relationshipView_setPath: (relationshipView: RelationshipView, val: Point[]) => void;
28
+ /**
29
+ * Simplify the path.
30
+ *
31
+ * Flatten the path if the angle is wide enough between 3 consecutive points
32
+ * Also remove unnecessary inside points
33
+ */
34
+ export declare const _relationshipView_simplifyPath: (relationshipView: RelationshipView) => void;
35
+ /**
36
+ * Based on the location, find the point on the path that matches or create new point
37
+ * (within a threshold of proximity) from the coordinate and put this in the path array
38
+ * so it doesn't look too weird
39
+ */
40
+ export declare const _findOrBuildPoint: (relationshipView: RelationshipView, x: number, y: number, zoom: number, allowChange: boolean) => Point | undefined;
26
41
  //# sourceMappingURL=DiagramHelper.d.ts.map
@@ -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;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"}
1
+ {"version":3,"file":"DiagramHelper.d.ts","sourceRoot":"","sources":["../../src/helpers/DiagramHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,mFAAmF,CAAC;AACrH,OAAO,EAAE,KAAK,EAAE,MAAM,iFAAiF,CAAC;AAExG,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;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;AAEF,eAAO,MAAM,yBAAyB,qBAClB,gBAAgB,OAC7B,KAAK,EAAE,KACX,IAEF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,qBACvB,gBAAgB,KACjC,IA8CF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,qBACV,gBAAgB,KAC/B,MAAM,KACN,MAAM,QACH,MAAM,eACC,OAAO,KACnB,KAAK,GAAG,SA2CV,CAAC"}
@@ -13,8 +13,10 @@
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
+ import { RelationshipView } from '../models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView';
17
17
  import { Point } from '../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point';
18
+ import { Vector } from '../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Vector';
19
+ import { deleteEntry } from '@finos/legend-shared';
18
20
  /**
19
21
  * Get absolute position of element on the screen by recursively walking up element tree
20
22
  */
@@ -49,4 +51,88 @@ export const cleanUpDeadReferencesInDiagram = (diagram, graph) => {
49
51
  });
50
52
  generalizationViewsToRemove.forEach((g) => deleteEntry(diagram.generalizationViews, g));
51
53
  };
54
+ export const _relationshipView_setPath = (relationshipView, val) => {
55
+ relationshipView.path = val;
56
+ };
57
+ /**
58
+ * Simplify the path.
59
+ *
60
+ * Flatten the path if the angle is wide enough between 3 consecutive points
61
+ * Also remove unnecessary inside points
62
+ */
63
+ export const _relationshipView_simplifyPath = (relationshipView) => {
64
+ const fullPath = relationshipView.buildFullPath();
65
+ // NOTE: this method here will `swallow` up points inside of the boxes
66
+ const newPath = RelationshipView.pruneUnnecessaryInsidePoints(fullPath, relationshipView.from.classView.value, relationshipView.to.classView.value);
67
+ // recompute the offset point from center inside of `from` and `to` classviews.
68
+ // for each, we first check if `manageInsidePointsDynamically` removes any points from the full path
69
+ // if it does we will update the offset
70
+ if (newPath[0] !== fullPath[0]) {
71
+ const center = relationshipView.from.classView.value.center();
72
+ relationshipView.from.offsetX = newPath[0].x - center.x;
73
+ relationshipView.from.offsetY = newPath[0].y - center.y;
74
+ }
75
+ if (newPath[newPath.length - 1] !== fullPath[fullPath.length - 1]) {
76
+ const center = relationshipView.to.classView.value.center();
77
+ relationshipView.to.offsetX =
78
+ newPath[newPath.length - 1].x - center.x;
79
+ relationshipView.to.offsetY =
80
+ newPath[newPath.length - 1].y - center.y;
81
+ }
82
+ // find the point which can be flattened due to its wide angle
83
+ const result = [];
84
+ for (let i = 0; i < newPath.length - 2; i++) {
85
+ const v1 = Vector.fromPoints(newPath[i + 1], newPath[i]).unit();
86
+ const v2 = Vector.fromPoints(newPath[i + 1], newPath[i + 2]).unit();
87
+ const dot = v1.dotProduct(v2);
88
+ const angle = (Math.acos(dot) * 180) / Math.PI;
89
+ if (Math.abs(angle - 180) > 5) {
90
+ result.push(newPath[i + 1]);
91
+ }
92
+ }
93
+ // NOTE: this new path does not contain the 2 end points
94
+ _relationshipView_setPath(relationshipView, result);
95
+ };
96
+ /**
97
+ * Based on the location, find the point on the path that matches or create new point
98
+ * (within a threshold of proximity) from the coordinate and put this in the path array
99
+ * so it doesn't look too weird
100
+ */
101
+ export const _findOrBuildPoint = (relationshipView, x, y, zoom, allowChange) => {
102
+ for (const pt of relationshipView.path) {
103
+ if (Math.sqrt((x - pt.x) * (x - pt.x) + (y - pt.y) * (y - pt.y)) <
104
+ 10 / zoom) {
105
+ return pt;
106
+ }
107
+ }
108
+ const fullPath = relationshipView.buildFullPath(allowChange);
109
+ const newPath = [];
110
+ let point;
111
+ for (let i = 0; i < fullPath.length - 1; i++) {
112
+ const a = fullPath[i];
113
+ const b = fullPath[i + 1];
114
+ const u = new Vector(a.x, a.y).normal(new Vector(b.x, b.y)).unit();
115
+ const v = Vector.fromPoints(a, new Point(x, y));
116
+ // if the selection point is not too far from the segment
117
+ // of the path, create a new point and make it part of the path
118
+ if (Math.abs(u.dotProduct(v)) < 5 / zoom) {
119
+ const lx = (a.x < b.x ? a.x : b.x) - 5 / zoom;
120
+ const hx = (a.x < b.x ? b.x : a.x) + 5 / zoom;
121
+ const ly = (a.y < b.y ? a.y : b.y) - 5 / zoom;
122
+ const hy = (a.y < b.y ? b.y : a.y) + 5 / zoom;
123
+ if (lx <= x && x <= hx && ly <= y && y <= hy) {
124
+ point = new Point(x, y);
125
+ newPath.push(point);
126
+ }
127
+ }
128
+ if (i < fullPath.length - 2) {
129
+ newPath.push(fullPath[i + 1]);
130
+ }
131
+ }
132
+ if (point && allowChange) {
133
+ // NOTE: this new path does not contain the 2 end points
134
+ _relationshipView_setPath(relationshipView, newPath);
135
+ }
136
+ return point;
137
+ };
52
138
  //# sourceMappingURL=DiagramHelper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DiagramHelper.js","sourceRoot":"","sources":["../../src/helpers/DiagramHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGnD,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,OAAO,GAAG,OAAO,CAAC,YAA2B,CAAC;KAC/C;IACD,OAAO,IAAI,KAAK,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;AACzC,CA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AAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;YAE9C,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE;gBAC5C,KAAK,GAAG,IAAI,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;gBACxB,OAAO,CAAC,IAAI,CAAC,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,wDAAwD;QACxD,yBAAyB,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;KACtD;IACD,OAAO,KAAK,CAAC;AACf,CAAC,CAAC"}
package/lib/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-extension-dsl-diagram v1.0.29
1
+ /** @license @finos/legend-extension-dsl-diagram v1.0.32
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
@@ -21,7 +21,6 @@ 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
23
  export { RelationshipView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView';
24
- export { _relationView_manageInsidePointsDynamically } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_GraphModifierHelper';
25
24
  export { PropertyHolderView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView';
26
25
  export { PropertyView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView';
27
26
  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,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"}
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,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
@@ -21,7 +21,6 @@ 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
23
  export { RelationshipView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView';
24
- export { _relationView_manageInsidePointsDynamically } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_GraphModifierHelper';
25
24
  export { PropertyHolderView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView';
26
25
  export { PropertyView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView';
27
26
  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,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"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE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