@finos/legend-extension-dsl-diagram 2.0.3 → 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (208) hide show
  1. package/lib/DSLDiagram_Extension.d.ts +0 -2
  2. package/lib/DSLDiagram_Extension.d.ts.map +1 -1
  3. package/lib/DSLDiagram_Extension.js +8 -9
  4. package/lib/DSLDiagram_Extension.js.map +1 -1
  5. package/lib/DiagramRenderer.d.ts +8 -8
  6. package/lib/DiagramRenderer.d.ts.map +1 -1
  7. package/lib/DiagramRenderer.js +26 -30
  8. package/lib/DiagramRenderer.js.map +1 -1
  9. package/lib/components/studio/ClassDiagramPreview.d.ts +1 -0
  10. package/lib/components/studio/ClassDiagramPreview.d.ts.map +1 -1
  11. package/lib/components/studio/ClassDiagramPreview.js +2 -2
  12. package/lib/components/studio/ClassDiagramPreview.js.map +1 -1
  13. package/lib/components/studio/DSLDiagram_LegendStudioDocumentation.d.ts +4 -14
  14. package/lib/components/studio/DSLDiagram_LegendStudioDocumentation.d.ts.map +1 -1
  15. package/lib/components/studio/DSLDiagram_LegendStudioDocumentation.js +8 -6
  16. package/lib/components/studio/DSLDiagram_LegendStudioDocumentation.js.map +1 -1
  17. package/lib/components/studio/DSLDiagram_LegendStudioPlugin.d.ts.map +1 -1
  18. package/lib/components/studio/DSLDiagram_LegendStudioPlugin.js +10 -10
  19. package/lib/components/studio/DSLDiagram_LegendStudioPlugin.js.map +1 -1
  20. package/lib/components/studio/DSLDiagram_LegendStudioPlugin_Extension.d.ts +3 -3
  21. package/lib/components/studio/DSLDiagram_LegendStudioPlugin_Extension.d.ts.map +1 -1
  22. package/lib/components/studio/DSLDiagram_TestID.js +1 -1
  23. package/lib/components/studio/DSLDiagram_TestID.js.map +1 -1
  24. package/lib/components/studio/DiagramEditor.d.ts +1 -0
  25. package/lib/components/studio/DiagramEditor.d.ts.map +1 -1
  26. package/lib/components/studio/DiagramEditor.js +5 -5
  27. package/lib/components/studio/DiagramEditor.js.map +1 -1
  28. package/lib/components/studio/InheritanceDiagramRenderer.d.ts +1 -1
  29. package/lib/components/studio/InheritanceDiagramRenderer.d.ts.map +1 -1
  30. package/lib/components/studio/InheritanceDiagramRenderer.js +3 -3
  31. package/lib/components/studio/InheritanceDiagramRenderer.js.map +1 -1
  32. package/lib/graph/DSLDiagram_PureGraphPlugin.js +2 -2
  33. package/lib/graph/DSLDiagram_PureGraphPlugin.js.map +1 -1
  34. package/lib/graphManager/DSLDiagram_GraphManagerHelper.d.ts +1 -1
  35. package/lib/graphManager/DSLDiagram_GraphManagerHelper.d.ts.map +1 -1
  36. package/lib/graphManager/DSLDiagram_GraphManagerHelper.js +1 -1
  37. package/lib/graphManager/DSLDiagram_GraphManagerHelper.js.map +1 -1
  38. package/lib/graphManager/DSLDiagram_PureGraphManagerPlugin.js +2 -2
  39. package/lib/graphManager/DSLDiagram_PureGraphManagerPlugin.js.map +1 -1
  40. package/lib/graphManager/action/changeDetection/DSLDiagram_ObserverHelper.d.ts +10 -10
  41. package/lib/graphManager/action/changeDetection/DSLDiagram_ObserverHelper.d.ts.map +1 -1
  42. package/lib/graphManager/action/changeDetection/DSLDiagram_ObserverHelper.js +1 -1
  43. package/lib/graphManager/action/changeDetection/DSLDiagram_ObserverHelper.js.map +1 -1
  44. package/lib/helpers/{DiagramHelper.d.ts → DSLDiagram_Helper.d.ts} +28 -6
  45. package/lib/helpers/DSLDiagram_Helper.d.ts.map +1 -0
  46. package/lib/helpers/{DiagramHelper.js → DSLDiagram_Helper.js} +56 -9
  47. package/lib/helpers/{DiagramHelper.js.map → DSLDiagram_Helper.js.map} +1 -1
  48. package/lib/index.css +1 -1
  49. package/lib/index.d.ts +18 -18
  50. package/lib/index.d.ts.map +1 -1
  51. package/lib/index.js +18 -18
  52. package/lib/index.js.map +1 -1
  53. package/lib/models/DSLDiagram_ModelUtils.js +1 -1
  54. package/lib/models/DSLDiagram_ModelUtils.js.map +1 -1
  55. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.d.ts +3 -3
  56. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.d.ts.map +1 -1
  57. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.js +2 -2
  58. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.js.map +1 -1
  59. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.d.ts +2 -2
  60. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.d.ts.map +1 -1
  61. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.js +4 -4
  62. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.js.map +1 -1
  63. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.d.ts +2 -2
  64. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.d.ts.map +1 -1
  65. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.d.ts +4 -4
  66. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.d.ts.map +1 -1
  67. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.js +1 -1
  68. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.js.map +1 -1
  69. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.d.ts +1 -1
  70. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.d.ts.map +1 -1
  71. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.js +2 -2
  72. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.js.map +1 -1
  73. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView.d.ts +3 -3
  74. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView.d.ts.map +1 -1
  75. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView.js +2 -2
  76. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView.js.map +1 -1
  77. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.d.ts +1 -1
  78. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.d.ts.map +1 -1
  79. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.js +2 -2
  80. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.js.map +1 -1
  81. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.d.ts +6 -6
  82. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.d.ts.map +1 -1
  83. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.js +18 -10
  84. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.js.map +1 -1
  85. package/lib/models/metamodels/pure/packageableElements/diagram/{DSLDiagram_RelationshipEdgeView.d.ts → DSLDiagram_RelationshipViewEnd.d.ts} +6 -6
  86. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipViewEnd.d.ts.map +1 -0
  87. package/lib/models/metamodels/pure/packageableElements/diagram/{DSLDiagram_RelationshipEdgeView.js → DSLDiagram_RelationshipViewEnd.js} +5 -5
  88. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipViewEnd.js.map +1 -0
  89. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point.d.ts +0 -2
  90. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point.d.ts.map +1 -1
  91. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point.js +1 -7
  92. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point.js.map +1 -1
  93. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.d.ts +3 -9
  94. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.d.ts.map +1 -1
  95. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.js +11 -22
  96. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.js.map +1 -1
  97. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle.js +1 -1
  98. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle.js.map +1 -1
  99. package/lib/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.js +6 -6
  100. package/lib/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.js.map +1 -1
  101. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_ClassView.d.ts +1 -1
  102. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_ClassView.d.ts.map +1 -1
  103. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_ClassView.js +2 -2
  104. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_ClassView.js.map +1 -1
  105. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_Diagram.d.ts +3 -3
  106. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_Diagram.d.ts.map +1 -1
  107. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_Diagram.js +1 -1
  108. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_Diagram.js.map +1 -1
  109. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_GeneralizationView.d.ts +2 -2
  110. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_GeneralizationView.d.ts.map +1 -1
  111. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_GeneralizationView.js +2 -2
  112. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_GeneralizationView.js.map +1 -1
  113. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyHolderView.d.ts +1 -1
  114. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyHolderView.d.ts.map +1 -1
  115. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyHolderView.js +2 -2
  116. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyHolderView.js.map +1 -1
  117. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyView.d.ts +1 -1
  118. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyView.d.ts.map +1 -1
  119. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyView.js +2 -2
  120. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyView.js.map +1 -1
  121. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_RelationshipView.d.ts +1 -1
  122. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_RelationshipView.d.ts.map +1 -1
  123. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_RelationshipView.js +1 -1
  124. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_RelationshipView.js.map +1 -1
  125. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Line.d.ts +1 -1
  126. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Line.d.ts.map +1 -1
  127. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Point.js +1 -1
  128. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Point.js.map +1 -1
  129. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_PositionedRectangle.d.ts +2 -2
  130. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_PositionedRectangle.d.ts.map +1 -1
  131. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_PositionedRectangle.js +1 -1
  132. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_PositionedRectangle.js.map +1 -1
  133. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Rectangle.js +1 -1
  134. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Rectangle.js.map +1 -1
  135. package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.d.ts +7 -7
  136. package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.d.ts.map +1 -1
  137. package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.js +7 -7
  138. package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.js.map +1 -1
  139. package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.d.ts +2 -2
  140. package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.d.ts.map +1 -1
  141. package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.js +7 -7
  142. package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.js.map +1 -1
  143. package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDiagram_ProtocolHelper.d.ts +1 -1
  144. package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDiagram_ProtocolHelper.d.ts.map +1 -1
  145. package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDiagram_ProtocolHelper.js +7 -7
  146. package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDiagram_ProtocolHelper.js.map +1 -1
  147. package/lib/package.json +12 -11
  148. package/lib/stores/studio/DSLDiagram_GraphModifierHelper.d.ts +12 -12
  149. package/lib/stores/studio/DSLDiagram_GraphModifierHelper.d.ts.map +1 -1
  150. package/lib/stores/studio/DSLDiagram_GraphModifierHelper.js +8 -8
  151. package/lib/stores/studio/DSLDiagram_GraphModifierHelper.js.map +1 -1
  152. package/lib/stores/studio/DiagramEditorState.d.ts +4 -4
  153. package/lib/stores/studio/DiagramEditorState.d.ts.map +1 -1
  154. package/lib/stores/studio/DiagramEditorState.js +3 -3
  155. package/lib/stores/studio/DiagramEditorState.js.map +1 -1
  156. package/package.json +19 -18
  157. package/src/DSLDiagram_Extension.ts +8 -11
  158. package/src/DiagramRenderer.ts +39 -36
  159. package/src/components/studio/ClassDiagramPreview.tsx +2 -2
  160. package/src/components/studio/DSLDiagram_LegendStudioDocumentation.ts +13 -6
  161. package/src/components/studio/DSLDiagram_LegendStudioPlugin.tsx +14 -13
  162. package/src/components/studio/DSLDiagram_LegendStudioPlugin_Extension.tsx +2 -2
  163. package/src/components/studio/DiagramEditor.tsx +6 -6
  164. package/src/components/studio/InheritanceDiagramRenderer.ts +3 -3
  165. package/src/graph/DSLDiagram_PureGraphPlugin.ts +2 -2
  166. package/src/graphManager/DSLDiagram_GraphManagerHelper.ts +1 -1
  167. package/src/graphManager/DSLDiagram_PureGraphManagerPlugin.ts +2 -2
  168. package/src/graphManager/action/changeDetection/DSLDiagram_ObserverHelper.ts +11 -11
  169. package/src/helpers/{DiagramHelper.ts → DSLDiagram_Helper.ts} +102 -11
  170. package/src/index.ts +21 -18
  171. package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.ts +4 -4
  172. package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.ts +5 -5
  173. package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.ts +2 -2
  174. package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.ts +5 -5
  175. package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.ts +2 -2
  176. package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView.ts +4 -4
  177. package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.ts +2 -2
  178. package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.ts +23 -15
  179. package/src/models/metamodels/pure/packageableElements/diagram/{DSLDiagram_RelationshipEdgeView.ts → DSLDiagram_RelationshipViewEnd.ts} +6 -5
  180. package/src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point.ts +1 -9
  181. package/src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.ts +12 -42
  182. package/src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle.ts +1 -1
  183. package/src/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.ts +6 -6
  184. package/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_ClassView.ts +2 -2
  185. package/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_Diagram.ts +4 -4
  186. package/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_GeneralizationView.ts +3 -3
  187. package/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyHolderView.ts +2 -2
  188. package/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyView.ts +2 -2
  189. package/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_RelationshipView.ts +2 -2
  190. package/src/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Line.ts +1 -1
  191. package/src/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Point.ts +1 -1
  192. package/src/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_PositionedRectangle.ts +3 -3
  193. package/src/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Rectangle.ts +1 -1
  194. package/src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.ts +13 -13
  195. package/src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.ts +13 -13
  196. package/src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDiagram_ProtocolHelper.ts +7 -7
  197. package/src/stores/studio/DSLDiagram_GraphModifierHelper.ts +22 -20
  198. package/src/stores/studio/DiagramEditorState.ts +5 -5
  199. package/tsconfig.json +5 -11
  200. package/tsconfig.package.json +1 -4
  201. package/lib/helpers/DiagramHelper.d.ts.map +0 -1
  202. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.d.ts.map +0 -1
  203. package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.js.map +0 -1
  204. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Vector.d.ts +0 -26
  205. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Vector.d.ts.map +0 -1
  206. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Vector.js +0 -37
  207. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Vector.js.map +0 -1
  208. package/src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Vector.ts +0 -44
@@ -14,9 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { AbstractPreset } from '@finos/legend-shared';
17
- import type { GraphPluginManager } from '@finos/legend-graph';
18
17
  export declare class DSLDiagram_GraphPreset extends AbstractPreset {
19
18
  constructor();
20
- install(pluginManager: GraphPluginManager): void;
21
19
  }
22
20
  //# sourceMappingURL=DSLDiagram_Extension.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DSLDiagram_Extension.d.ts","sourceRoot":"","sources":["../src/DSLDiagram_Extension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAGtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAG9D,qBAAa,sBAAuB,SAAQ,cAAc;;IAKxD,OAAO,CAAC,aAAa,EAAE,kBAAkB,GAAG,IAAI;CAKjD"}
1
+ {"version":3,"file":"DSLDiagram_Extension.d.ts","sourceRoot":"","sources":["../src/DSLDiagram_Extension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAKtD,qBAAa,sBAAuB,SAAQ,cAAc;;CAQzD"}
@@ -15,17 +15,16 @@
15
15
  */
16
16
  import packageJson from '../package.json';
17
17
  import { AbstractPreset } from '@finos/legend-shared';
18
- import { DSLDiagram_PureGraphManagerPlugin } from './graphManager/DSLDiagram_PureGraphManagerPlugin';
19
- import { DSLDiagram_PureProtocolProcessorPlugin } from './models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin';
20
- import { DSLDiagram_PureGraphPlugin } from './graph/DSLDiagram_PureGraphPlugin';
18
+ import { DSLDiagram_PureGraphManagerPlugin } from './graphManager/DSLDiagram_PureGraphManagerPlugin.js';
19
+ import { DSLDiagram_PureProtocolProcessorPlugin } from './models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.js';
20
+ import { DSLDiagram_PureGraphPlugin } from './graph/DSLDiagram_PureGraphPlugin.js';
21
21
  export class DSLDiagram_GraphPreset extends AbstractPreset {
22
22
  constructor() {
23
- super(packageJson.extensions.graphPreset, packageJson.version);
24
- }
25
- install(pluginManager) {
26
- new DSLDiagram_PureGraphPlugin().install(pluginManager);
27
- new DSLDiagram_PureGraphManagerPlugin().install(pluginManager);
28
- new DSLDiagram_PureProtocolProcessorPlugin().install(pluginManager);
23
+ super(packageJson.extensions.graphPreset, packageJson.version, [
24
+ new DSLDiagram_PureGraphPlugin(),
25
+ new DSLDiagram_PureGraphManagerPlugin(),
26
+ new DSLDiagram_PureProtocolProcessorPlugin(),
27
+ ]);
29
28
  }
30
29
  }
31
30
  //# sourceMappingURL=DSLDiagram_Extension.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DSLDiagram_Extension.js","sourceRoot":"","sources":["../src/DSLDiagram_Extension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,iCAAiC,EAAE,MAAM,kDAAkD,CAAC;AACrG,OAAO,EAAE,sCAAsC,EAAE,MAAM,gEAAgE,CAAC;AAExH,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAEhF,MAAM,OAAO,sBAAuB,SAAQ,cAAc;IACxD;QACE,KAAK,CAAC,WAAW,CAAC,UAAU,CAAC,WAAW,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACjE,CAAC;IAED,OAAO,CAAC,aAAiC;QACvC,IAAI,0BAA0B,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;QACxD,IAAI,iCAAiC,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;QAC/D,IAAI,sCAAsC,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IACtE,CAAC;CACF"}
1
+ {"version":3,"file":"DSLDiagram_Extension.js","sourceRoot":"","sources":["../src/DSLDiagram_Extension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,iCAAiC,EAAE,MAAM,qDAAqD,CAAC;AACxG,OAAO,EAAE,sCAAsC,EAAE,MAAM,mEAAmE,CAAC;AAC3H,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AAEnF,MAAM,OAAO,sBAAuB,SAAQ,cAAc;IACxD;QACE,KAAK,CAAC,WAAW,CAAC,UAAU,CAAC,WAAW,EAAE,WAAW,CAAC,OAAO,EAAE;YAC7D,IAAI,0BAA0B,EAAE;YAChC,IAAI,iCAAiC,EAAE;YACvC,IAAI,sCAAsC,EAAE;SAC7C,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -14,14 +14,14 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { type AbstractProperty, Class } from '@finos/legend-graph';
17
- import type { Diagram } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram';
18
- import { Rectangle } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle';
19
- import { Point } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point';
20
- import { PositionedRectangle } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle';
21
- import { ClassView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView';
22
- import type { PropertyHolderView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView';
23
- import { GeneralizationView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView';
24
- import { RelationshipView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView';
17
+ import type { Diagram } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.js';
18
+ import { Rectangle } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle.js';
19
+ import { Point } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point.js';
20
+ import { PositionedRectangle } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.js';
21
+ import { ClassView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.js';
22
+ import type { PropertyHolderView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView.js';
23
+ import { GeneralizationView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.js';
24
+ import { RelationshipView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.js';
25
25
  export declare enum DIAGRAM_INTERACTION_MODE {
26
26
  LAYOUT = 0,
27
27
  PAN = 1,
@@ -1 +1 @@
1
- {"version":3,"file":"DiagramRenderer.d.ts","sourceRoot":"","sources":["../src/DiagramRenderer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAYH,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,EAcN,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yEAAyE,CAAC;AACvG,OAAO,EAAE,SAAS,EAAE,MAAM,oFAAoF,CAAC;AAC/G,OAAO,EAAE,KAAK,EAAE,MAAM,gFAAgF,CAAC;AACvG,OAAO,EAAE,mBAAmB,EAAE,MAAM,8FAA8F,CAAC;AACnI,OAAO,EAAE,SAAS,EAAE,MAAM,2EAA2E,CAAC;AACtG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oFAAoF,CAAC;AAC7H,OAAO,EAAE,kBAAkB,EAAE,MAAM,oFAAoF,CAAC;AACxH,OAAO,EAAE,gBAAgB,EAAE,MAAM,kFAAkF,CAAC;AA+BpH,oBAAY,wBAAwB;IAClC,MAAM,IAAA;IACN,GAAG,IAAA;IACH,OAAO,IAAA;IACP,QAAQ,IAAA;IACR,gBAAgB,IAAA;IAChB,SAAS,IAAA;CACV;AAED,oBAAY,8BAA8B;IAExC,QAAQ,IAAA;IACR,WAAW,IAAA;IACX,IAAI,IAAA;CACL;AAID,eAAO,MAAM,mBAAmB,UAE/B,CAAC;AAKF,qBAAa,eAAe;IAC1B,OAAO,EAAE,OAAO,CAAC;IAEjB,UAAU,EAAE,OAAO,CAAC;IAEpB,GAAG,EA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AAO,EAChB,oBAAoB,EAAE,OAAO,EAC7B,SAAS,EAAE,OAAO,GACjB,CAAC,SAAS,EAAE,EAAE,kBAAkB,EAAE,CAAC;CAmGvC"}
@@ -16,17 +16,17 @@
16
16
  import { uuid, noop, getNullableFirstElement, UnsupportedOperationError, IllegalStateError, guaranteeNonNullable, findLast, uniqBy, } from '@finos/legend-shared';
17
17
  import { Class, Enumeration, PrimitiveType, DerivedProperty, PackageableElementExplicitReference, PropertyExplicitReference, GenericTypeExplicitReference, GenericType, Property, Multiplicity, getAllSuperclasses, getAllOwnClassProperties, generateMultiplicityString, getRawGenericType, } from '@finos/legend-graph';
18
18
  import { action, makeObservable, observable } from 'mobx';
19
- import { Rectangle } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle';
20
- import { Point } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point';
21
- import { PositionedRectangle } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle';
22
- import { ClassView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView';
23
- import { GeneralizationView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView';
24
- import { RelationshipView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView';
25
- import { PropertyView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView';
26
- import { getElementPosition } from './helpers/DiagramHelper';
27
- import { AssociationView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView';
19
+ import { Rectangle } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle.js';
20
+ import { Point } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point.js';
21
+ import { PositionedRectangle } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.js';
22
+ import { ClassView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.js';
23
+ import { GeneralizationView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.js';
24
+ import { RelationshipView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.js';
25
+ import { PropertyView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.js';
26
+ import { boxContains, buildBottomRightCornerBox, getBottomRightCornerPoint, getElementPosition, rotatePointX, rotatePointY, } from './helpers/DSLDiagram_Helper.js';
27
+ import { AssociationView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.js';
28
28
  import { class_addProperty, class_addSuperType } from '@finos/legend-studio';
29
- import { classView_setHideProperties, classView_setHideStereotypes, classView_setHideTaggedValues, diagram_addClassView, diagram_addGeneralizationView, diagram_addPropertyView, diagram_deleteAssociationView, diagram_deleteClassView, diagram_deleteGeneralizationView, diagram_deletePropertyView, diagram_setAssociationViews, diagram_setClassViews, diagram_setGeneralizationViews, diagram_setPropertyViews, findOrBuildPoint, positionedRectangle_forceRefreshHash, positionedRectangle_setPosition, positionedRectangle_setRectangle, relationshipEdgeView_setOffsetX, relationshipEdgeView_setOffsetY, relationshipView_changePoint, relationshipView_simplifyPath, relationshipView_setPath, } from './stores/studio/DSLDiagram_GraphModifierHelper';
29
+ import { classView_setHideProperties, classView_setHideStereotypes, classView_setHideTaggedValues, diagram_addClassView, diagram_addGeneralizationView, diagram_addPropertyView, diagram_deleteAssociationView, diagram_deleteClassView, diagram_deleteGeneralizationView, diagram_deletePropertyView, diagram_setAssociationViews, diagram_setClassViews, diagram_setGeneralizationViews, diagram_setPropertyViews, findOrBuildPoint, positionedRectangle_forceRefreshHash, positionedRectangle_setPosition, positionedRectangle_setRectangle, relationshipEdgeView_setOffsetX, relationshipEdgeView_setOffsetY, relationshipView_changePoint, relationshipView_simplifyPath, relationshipView_setPath, } from './stores/studio/DSLDiagram_GraphModifierHelper.js';
30
30
  export var DIAGRAM_INTERACTION_MODE;
31
31
  (function (DIAGRAM_INTERACTION_MODE) {
32
32
  DIAGRAM_INTERACTION_MODE[DIAGRAM_INTERACTION_MODE["LAYOUT"] = 0] = "LAYOUT";
@@ -35,14 +35,14 @@ export var DIAGRAM_INTERACTION_MODE;
35
35
  DIAGRAM_INTERACTION_MODE[DIAGRAM_INTERACTION_MODE["ZOOM_OUT"] = 3] = "ZOOM_OUT";
36
36
  DIAGRAM_INTERACTION_MODE[DIAGRAM_INTERACTION_MODE["ADD_RELATIONSHIP"] = 4] = "ADD_RELATIONSHIP";
37
37
  DIAGRAM_INTERACTION_MODE[DIAGRAM_INTERACTION_MODE["ADD_CLASS"] = 5] = "ADD_CLASS";
38
- })(DIAGRAM_INTERACTION_MODE || (DIAGRAM_INTERACTION_MODE = {}));
38
+ })(DIAGRAM_INTERACTION_MODE = DIAGRAM_INTERACTION_MODE || (DIAGRAM_INTERACTION_MODE = {}));
39
39
  export var DIAGRAM_RELATIONSHIP_EDIT_MODE;
40
40
  (function (DIAGRAM_RELATIONSHIP_EDIT_MODE) {
41
41
  // ASSOCIATION,
42
42
  DIAGRAM_RELATIONSHIP_EDIT_MODE[DIAGRAM_RELATIONSHIP_EDIT_MODE["PROPERTY"] = 0] = "PROPERTY";
43
43
  DIAGRAM_RELATIONSHIP_EDIT_MODE[DIAGRAM_RELATIONSHIP_EDIT_MODE["INHERITANCE"] = 1] = "INHERITANCE";
44
44
  DIAGRAM_RELATIONSHIP_EDIT_MODE[DIAGRAM_RELATIONSHIP_EDIT_MODE["NONE"] = 2] = "NONE";
45
- })(DIAGRAM_RELATIONSHIP_EDIT_MODE || (DIAGRAM_RELATIONSHIP_EDIT_MODE = {}));
45
+ })(DIAGRAM_RELATIONSHIP_EDIT_MODE = DIAGRAM_RELATIONSHIP_EDIT_MODE || (DIAGRAM_RELATIONSHIP_EDIT_MODE = {}));
46
46
  const MIN_ZOOM_LEVEL = 0.05; // 5%
47
47
  const FIT_ZOOM_PADDING = 10;
48
48
  export const DIAGRAM_ZOOM_LEVELS = [
@@ -515,8 +515,8 @@ export class DiagramRenderer {
515
515
  fullPath[fullPath.length - 2], fullPath[fullPath.length - 1], relationshipView.to.classView.value, relationshipView.property.value, false);
516
516
  minX = Math.min(minX, box.position.x);
517
517
  minY = Math.min(minY, box.position.y);
518
- maxX = Math.max(maxX, box.edgePoint().x);
519
- maxY = Math.max(maxY, box.edgePoint().y);
518
+ maxX = Math.max(maxX, getBottomRightCornerPoint(box).x);
519
+ maxY = Math.max(maxY, getBottomRightCornerPoint(box).y);
520
520
  }
521
521
  // if (relationshipView.from.name) {
522
522
  // var box = this.displayText(fullPath[1], fullPath[0], relationshipView.from.classView, relationshipView.property, this.ctx);
@@ -1321,24 +1321,24 @@ export class DiagramRenderer {
1321
1321
  angle = endX >= startX ? angle : angle + Math.PI;
1322
1322
  this.ctx.beginPath();
1323
1323
  this.ctx.moveTo(resultX +
1324
- (this.screenOffset.x + this.triangle[0].rotateX(angle)) *
1324
+ (this.screenOffset.x + rotatePointX(this.triangle[0], angle)) *
1325
1325
  this.zoom, resultY +
1326
- (this.screenOffset.y + this.triangle[0].rotateY(angle)) *
1326
+ (this.screenOffset.y + rotatePointY(this.triangle[0], angle)) *
1327
1327
  this.zoom);
1328
1328
  this.ctx.lineTo(resultX +
1329
- (this.screenOffset.x + this.triangle[1].rotateX(angle)) *
1329
+ (this.screenOffset.x + rotatePointX(this.triangle[1], angle)) *
1330
1330
  this.zoom, resultY +
1331
- (this.screenOffset.y + this.triangle[1].rotateY(angle)) *
1331
+ (this.screenOffset.y + rotatePointY(this.triangle[1], angle)) *
1332
1332
  this.zoom);
1333
1333
  this.ctx.lineTo(resultX +
1334
- (this.screenOffset.x + this.triangle[2].rotateX(angle)) *
1334
+ (this.screenOffset.x + rotatePointX(this.triangle[2], angle)) *
1335
1335
  this.zoom, resultY +
1336
- (this.screenOffset.y + this.triangle[2].rotateY(angle)) *
1336
+ (this.screenOffset.y + rotatePointY(this.triangle[2], angle)) *
1337
1337
  this.zoom);
1338
1338
  this.ctx.lineTo(resultX +
1339
- (this.screenOffset.x + this.triangle[0].rotateX(angle)) *
1339
+ (this.screenOffset.x + rotatePointX(this.triangle[0], angle)) *
1340
1340
  this.zoom, resultY +
1341
- (this.screenOffset.y + this.triangle[0].rotateY(angle)) *
1341
+ (this.screenOffset.y + rotatePointY(this.triangle[0], angle)) *
1342
1342
  this.zoom);
1343
1343
  this.ctx.fillStyle = this.generalizationViewInheritanceTriangeFillColor;
1344
1344
  this.ctx.fill();
@@ -1697,9 +1697,7 @@ export class DiagramRenderer {
1697
1697
  // NOTE: Traverse backwards the class views to preserve z-index buffer
1698
1698
  for (let i = this.diagram.classViews.length - 1; i >= 0; i--) {
1699
1699
  const targetClassView = this.diagram.classViews[i];
1700
- if (targetClassView
1701
- .buildBottomRightCornerBox()
1702
- .contains(eventPointInModelCoordinate.x, eventPointInModelCoordinate.y)) {
1700
+ if (buildBottomRightCornerBox(targetClassView).contains(eventPointInModelCoordinate.x, eventPointInModelCoordinate.y)) {
1703
1701
  this.setSelectedClasses([]);
1704
1702
  this.setSelectedClassCorner(this.diagram.classViews[i]);
1705
1703
  if (!this.isReadOnly) {
@@ -1934,8 +1932,8 @@ export class DiagramRenderer {
1934
1932
  : this.selectionStart.y + selectionBoxHeight), new Rectangle(Math.abs(selectionBoxWidth), Math.abs(selectionBoxHeight)));
1935
1933
  this.setSelectedClasses([]);
1936
1934
  for (const classView of this.diagram.classViews) {
1937
- if (this.selection.boxContains(classView) ||
1938
- classView.boxContains(this.selection)) {
1935
+ if (boxContains(this.selection, classView) ||
1936
+ boxContains(classView, this.selection)) {
1939
1937
  this.setSelectedClasses([...this.selectedClasses, classView]);
1940
1938
  }
1941
1939
  }
@@ -1974,9 +1972,7 @@ export class DiagramRenderer {
1974
1972
  if (classView.contains(eventPointInModelCoordinate.x, eventPointInModelCoordinate.y)) {
1975
1973
  this.setMouseOverClassView(classView);
1976
1974
  // Check hover class corner
1977
- if (classView
1978
- .buildBottomRightCornerBox()
1979
- .contains(eventPointInModelCoordinate.x, eventPointInModelCoordinate.y)) {
1975
+ if (buildBottomRightCornerBox(classView).contains(eventPointInModelCoordinate.x, eventPointInModelCoordinate.y)) {
1980
1976
  this.setMouseOverClassCorner(classView);
1981
1977
  }
1982
1978
  // TODO: we probably should make this a shared function so we don't need to maintain