@finos/legend-extension-dsl-diagram 0.1.1 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/lib/DSLDiagram_Extension.d.ts +0 -5
  3. package/lib/DSLDiagram_Extension.d.ts.map +1 -1
  4. package/lib/DSLDiagram_Extension.js +0 -12
  5. package/lib/DSLDiagram_Extension.js.map +1 -1
  6. package/lib/DiagramRenderer.d.ts.map +1 -1
  7. package/lib/DiagramRenderer.js +76 -50
  8. package/lib/DiagramRenderer.js.map +1 -1
  9. package/lib/components/studio/ClassDiagramPreview.js +1 -1
  10. package/lib/components/studio/ClassDiagramPreview.js.map +1 -1
  11. package/lib/components/studio/{DSLDiagram_StudioPlugin.d.ts → DSLDiagram_LegendStudioPlugin.d.ts} +4 -5
  12. package/lib/components/studio/DSLDiagram_LegendStudioPlugin.d.ts.map +1 -0
  13. package/lib/components/studio/{DSLDiagram_StudioPlugin.js → DSLDiagram_LegendStudioPlugin.js} +4 -7
  14. package/lib/components/studio/DSLDiagram_LegendStudioPlugin.js.map +1 -0
  15. package/lib/components/studio/{DSLDiagram_StudioPlugin_Extension.d.ts → DSLDiagram_LegendStudioPlugin_Extension.d.ts} +3 -3
  16. package/lib/components/studio/DSLDiagram_LegendStudioPlugin_Extension.d.ts.map +1 -0
  17. package/lib/components/studio/{DSLDiagram_StudioPlugin_Extension.js → DSLDiagram_LegendStudioPlugin_Extension.js} +1 -1
  18. package/lib/components/studio/DSLDiagram_LegendStudioPlugin_Extension.js.map +1 -0
  19. package/lib/components/studio/DiagramEditor.js +36 -36
  20. package/lib/components/studio/DiagramEditor.js.map +1 -1
  21. package/lib/graph/DSLDiagram_PureGraphPlugin.d.ts +1 -2
  22. package/lib/graph/DSLDiagram_PureGraphPlugin.d.ts.map +1 -1
  23. package/lib/graph/DSLDiagram_PureGraphPlugin.js +0 -3
  24. package/lib/graph/DSLDiagram_PureGraphPlugin.js.map +1 -1
  25. package/lib/graphManager/DSLDiagram_PureGraphManagerPlugin.d.ts +1 -2
  26. package/lib/graphManager/DSLDiagram_PureGraphManagerPlugin.d.ts.map +1 -1
  27. package/lib/graphManager/DSLDiagram_PureGraphManagerPlugin.js +0 -3
  28. package/lib/graphManager/DSLDiagram_PureGraphManagerPlugin.js.map +1 -1
  29. package/lib/index.css +1 -1
  30. package/lib/index.css.map +1 -1
  31. package/lib/index.d.ts +2 -1
  32. package/lib/index.d.ts.map +1 -1
  33. package/lib/index.js +2 -1
  34. package/lib/index.js.map +1 -1
  35. package/lib/models/metamodels/pure/packageableElements/diagram/RelationshipView.d.ts.map +1 -1
  36. package/lib/models/metamodels/pure/packageableElements/diagram/RelationshipView.js +3 -0
  37. package/lib/models/metamodels/pure/packageableElements/diagram/RelationshipView.js.map +1 -1
  38. package/lib/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.d.ts +1 -2
  39. package/lib/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.d.ts.map +1 -1
  40. package/lib/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.js +0 -3
  41. package/lib/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.js.map +1 -1
  42. package/lib/stores/studio/DiagramEditorState.d.ts.map +1 -1
  43. package/lib/stores/studio/DiagramEditorState.js +3 -3
  44. package/lib/stores/studio/DiagramEditorState.js.map +1 -1
  45. package/package.json +17 -18
  46. package/src/DSLDiagram_Extension.ts +0 -15
  47. package/src/DiagramRenderer.ts +94 -73
  48. package/src/components/studio/{DSLDiagram_StudioPlugin.tsx → DSLDiagram_LegendStudioPlugin.tsx} +5 -10
  49. package/src/components/studio/{DSLDiagram_StudioPlugin_Extension.tsx → DSLDiagram_LegendStudioPlugin_Extension.tsx} +3 -3
  50. package/src/components/studio/DiagramEditor.tsx +2 -2
  51. package/src/graph/DSLDiagram_PureGraphPlugin.ts +0 -5
  52. package/src/graphManager/DSLDiagram_PureGraphManagerPlugin.ts +0 -5
  53. package/src/index.ts +3 -1
  54. package/src/models/metamodels/pure/packageableElements/diagram/RelationshipView.ts +24 -14
  55. package/src/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.ts +0 -5
  56. package/src/stores/studio/DiagramEditorState.ts +3 -7
  57. package/tsconfig.json +3 -2
  58. package/tsconfig.package.json +1 -0
  59. package/lib/components/studio/DSLDiagram_StudioPlugin.d.ts.map +0 -1
  60. package/lib/components/studio/DSLDiagram_StudioPlugin.js.map +0 -1
  61. package/lib/components/studio/DSLDiagram_StudioPlugin_Extension.d.ts.map +0 -1
  62. package/lib/components/studio/DSLDiagram_StudioPlugin_Extension.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"RelationshipView.js","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/RelationshipView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAE9D,OAAO,EAAE,oBAAoB,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACtF,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAE3E;;GAEG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAC3C,IAAa,EACb,IAAe,EACf,EAAa,EACJ,EAAE;IACX,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,IAAI,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;IAE7B,OAAO,KAAK,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,C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AAE,CAAC;QACjD,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC;QAChD,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC;QAChD,IAAI,GAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE;YAC5B,OAAO,IAAI,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;SAC9B;QACD,IAAI,WAAW,EAAE;YACf,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACvB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;SACxB;QACD,OAAO,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;IACvC,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,sBAAsB,CAAC,iBAAiB;YACxC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE;YAC5B,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE;YAC1B,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC;SACzB,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -13,12 +13,11 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import type { GraphPluginManager, V1_ElementProtocolClassifierPathGetter, V1_ElementProtocolDeserializer, V1_ElementProtocolSerializer, V1_ElementTransformer, V1_PackageableElement } from '@finos/legend-graph';
16
+ import type { V1_ElementProtocolClassifierPathGetter, V1_ElementProtocolDeserializer, V1_ElementProtocolSerializer, V1_ElementTransformer, V1_PackageableElement } from '@finos/legend-graph';
17
17
  import { PureProtocolProcessorPlugin, V1_ElementBuilder } from '@finos/legend-graph';
18
18
  export declare const V1_DSLDiagram_PackageableElementPointerType = "DIAGRAM";
19
19
  export declare class DSLDiagram_PureProtocolProcessorPlugin extends PureProtocolProcessorPlugin {
20
20
  constructor();
21
- install(pluginManager: GraphPluginManager): void;
22
21
  V1_getExtraElementBuilders(): V1_ElementBuilder<V1_PackageableElement>[];
23
22
  V1_getExtraElementClassifierPathGetters(): V1_ElementProtocolClassifierPathGetter[];
24
23
  V1_getExtraElementProtocolSerializers(): V1_ElementProtocolSerializer[];
@@ -1 +1 @@
1
- {"version":3,"file":"DSLDiagram_PureProtocolProcessorPlugin.d.ts","sourceRoot":"","sources":["../../../../src/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,OAAO,KAAK,EACV,kBAAkB,EAElB,sCAAsC,EACtC,8BAA8B,EAC9B,4BAA4B,EAC5B,qBAAqB,EAGrB,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,2BAA2B,EAC3B,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AAa7B,eAAO,MAAM,2CAA2C,YAAY,CAAC;AAErE,qBAAa,sCAAuC,SAAQ,2BAA2B;;IAQrF,OAAO,CAAC,aAAa,EAAE,kBAAkB,GAAG,IAAI;IAIvC,0BAA0B,IAAI,iBAAiB,CAAC,qBAAqB,CAAC,EAAE;IAgDxE,uCAAuC,IAAI,sCAAsC,EAAE;IAWnF,qCAAqC,IAAI,4BAA4B,EAAE;IAcvE,uCAAuC,IAAI,8BAA8B,EAAE;IAc3E,8BAA8B,IAAI,qBAAqB,EAAE;IAczD,gCAAgC,IAAI,MAAM,EAAE;CAOtD"}
1
+ {"version":3,"file":"DSLDiagram_PureProtocolProcessorPlugin.d.ts","sourceRoot":"","sources":["../../../../src/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,OAAO,KAAK,EAEV,sCAAsC,EACtC,8BAA8B,EAC9B,4BAA4B,EAC5B,qBAAqB,EAGrB,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,2BAA2B,EAC3B,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AAa7B,eAAO,MAAM,2CAA2C,YAAY,CAAC;AAErE,qBAAa,sCAAuC,SAAQ,2BAA2B;;IAQ5E,0BAA0B,IAAI,iBAAiB,CAAC,qBAAqB,CAAC,EAAE;IAgDxE,uCAAuC,IAAI,sCAAsC,EAAE;IAWnF,qCAAqC,IAAI,4BAA4B,EAAE;IAcvE,uCAAuC,IAAI,8BAA8B,EAAE;IAc3E,8BAA8B,IAAI,qBAAqB,EAAE;IAczD,gCAAgC,IAAI,MAAM,EAAE;CAOtD"}
@@ -29,9 +29,6 @@ export class DSLDiagram_PureProtocolProcessorPlugin extends PureProtocolProcesso
29
29
  constructor() {
30
30
  super(packageJson.extensions.pureProtocolProcessorPlugin, packageJson.version);
31
31
  }
32
- install(pluginManager) {
33
- pluginManager.registerPureProtocolProcessorPlugin(this);
34
- }
35
32
  V1_getExtraElementBuilders() {
36
33
  return [
37
34
  new V1_ElementBuilder({
@@ -1 +1 @@
1
- {"version":3,"file":"DSLDiagram_PureProtocolProcessorPlugin.js","sourceRoot":"","sources":["../../../../src/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,mDAAmD,CAAC;AAE/E,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EACL,qBAAqB,EACrB,gCAAgC,GACjC,MAAM,+DAA+D,CAAC;AAYvE,OAAO,EACL,2BAA2B,EAC3B,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,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,CAAC,CAAC;iBACjD;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;IAEQ,8BAA8B;QACrC,OAAO;YACL,CACE,SAA6B,EAC7B,OAAmC,EACA,EAAE;gBACrC,IAAI,SAAS,YAAY,OAAO,EAAE;oBAChC,OAAO,mBAAmB,CAAC,SAAS,CAAC,CAAC;iBACvC;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;IAEQ,gCAAgC;QACvC,OAAO;YACL,wBAAwB;YACxB,6BAA6B;YAC7B,6BAA6B;SAC9B,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"DSLDiagram_PureProtocolProcessorPlugin.js","sourceRoot":"","sources":["../../../../src/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,mDAAmD,CAAC;AAE/E,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EACL,qBAAqB,EACrB,gCAAgC,GACjC,MAAM,+DAA+D,CAAC;AAWvE,OAAO,EACL,2BAA2B,EAC3B,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,MAAM,+DAA+D,CAAC;AACpG,OAAO,EAAE,OAAO,EAAE,MAAM,2DAA2D,CAAC;AACpF,OAAO,EAAE,UAAU,EAAE,MAAM,qDAAqD,CAAC;AACjF,OAAO,EACL,iBAAiB,EACjB,0BAA0B,EAC1B,oBAAoB,GACrB,MAAM,gEAAgE,CAAC;AAExE,MAAM,+BAA+B,GACnC,yCAAyC,CAAC;AAE5C,MAAM,CAAC,MAAM,2CAA2C,GAAG,SAAS,CAAC;AAErE,MAAM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CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"DiagramEditorState.d.ts","sourceRoot":"","sources":["../../../src/stores/studio/DiagramEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAQH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EACV,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AAS7B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EACL,gBAAgB,EAEhB,kBAAkB,EACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oEAAoE,CAAC;AACpG,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yEAAyE,CAAC;AACrG,OAAO,EAAE,OAAO,EAAE,MAAM,kEAAkE,CAAC;AAyB3F,8BAAsB,2BAA2B;IAC/C,IAAI,SAAU;IACd,WAAW,EAAE,WAAW,CAAC;IACzB,kBAAkB,EAAE,kBAAkB,CAAC;gBAGrC,WAAW,EAAE,WAAW,EACxB,kBAAkB,EAAE,kBAAkB;CAKzC;AAED,oBAAY,6BAA6B;IACvC,OAAO,YAAY;IACnB,IAAI,SAAS;CACd;AAED,qBAAa,0CAA2C,SAAQ,2BAA2B;IACzF,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,gCAAyC;gBAGlD,WAAW,EAAE,WAAW,EACxB,kBAAkB,EAAE,kBAAkB,EACtC,SAAS,EAAE,SAAS;IAoBtB,cAAc,CAAC,GAAG,EAAE,6BAA6B,GAAG,IAAI;CAGzD;AAED,qBAAa,oCAAoC;IAC/C,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,KAAK,EAAE,KAAK,CAAC;gBAED,kBAAkB,EAAE,kBAA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ACzD,yBAAyB,CAAC,EACtB,sCAAsC,GACtC,SAAS,CAAC;IACd,uBAAuB,CAAC,EAAE,oCAAoC,GAAG,SAAS,CAAC;IAC3E,uBAAuB,CAAC,EAAE,oCAAoC,GAAG,SAAS,CAAC;IAC3E,eAAe,UAAS;IACxB,oBAAoB,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;gBAEjC,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,kBAAkB;IA4BjE,IAAI,OAAO,IAAI,OAAO,CAMrB;IAED,IAAI,QAAQ,IAAI,eAAe,CAK9B;IAED,IAAI,4BAA4B,IAAI,OAAO,CAE1C;IAMD,IAAI,kBAAkB,IAAI,MAAM,CA+D/B;IAED,WAAW,CAAC,GAAG,EAAE,eAAe,GAAG,IAAI;IAIvC,uBAAuB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAI3C,iBAAiB,CAAC,GAAG,EAAE,2BAA2B,GAAG,SAAS,GAAG,IAAI;IAIrE,4BAA4B,CAC1B,GAAG,EAAE,sCAAsC,GAAG,SAAS,GACtD,IAAI;IAIP,0BAA0B,CACxB,GAAG,EAAE,oCAAoC,GAAG,SAAS,GACpD,IAAI;IAIP,0BAA0B,CACxB,GAAG,EAAE,oCAAoC,GAAG,SAAS,GACpD,IAAI;IAIP,kBAAkB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAItC,uBAAuB,CAAC,GAAG,EAAE,SAAS,GAAG,SAAS,GAAG,IAAI;IAIzD,gBAAgB,IAAI,IAAI;IAIxB,aAAa,IAAI,IAAI;IAiHrB,OAAO,IAAI,IAAI;IAIf,OAAO,CAAC,yBAAyB,CAuBrB;IAEZ,SAAS,CACP,UAAU,EAAE,kBAAkB,EAC9B,WAAW,EAAE,WAAW,GACvB,kBAAkB;CAItB"}
@@ -16,9 +16,9 @@
16
16
  import { computed, action, makeObservable, observable } from 'mobx';
17
17
  import { guaranteeNonNullable, guaranteeType, uuid, } from '@finos/legend-shared';
18
18
  import { DIAGRAM_INTERACTION_MODE } from '../../DiagramRenderer';
19
- import { PanelDisplayState } from '@finos/legend-art';
19
+ import { HotkeyConfiguration, PanelDisplayState } from '@finos/legend-art';
20
20
  import { GenericTypeExplicitReference, PRIMITIVE_TYPE, TYPICAL_MULTIPLICITY_TYPE, Property, GenericType, PropertyExplicitReference, } from '@finos/legend-graph';
21
- import { ClassEditorState, EditorHotkey, ElementEditorState, } from '@finos/legend-studio';
21
+ import { ClassEditorState, ElementEditorState } from '@finos/legend-studio';
22
22
  import { Diagram } from '../../models/metamodels/pure/packageableElements/diagram/Diagram';
23
23
  var DIAGRAM_EDITOR_HOTKEY;
24
24
  (function (DIAGRAM_EDITOR_HOTKEY) {
@@ -306,7 +306,7 @@ export class DiagramEditorState extends ElementEditorState {
306
306
  DIAGRAM_EDITOR_HOTKEY.ADD_CLASS,
307
307
  DIAGRAM_EDITOR_HOTKEY.EJECT_PROPERTY,
308
308
  ].forEach((key) => {
309
- this.editorStore.addHotKey(new EditorHotkey(key, [DIAGRAM_EDITOR_HOTKEY_MAP[key]], this.createDiagramHotKeyAction((event) => {
309
+ this.editorStore.addHotKey(new HotkeyConfiguration(key, [DIAGRAM_EDITOR_HOTKEY_MAP[key]], this.createDiagramHotKeyAction((event) => {
310
310
  if (event) {
311
311
  this.renderer.keydown(event);
312
312
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DiagramEditorState.js","sourceRoot":"","sources":["../../../src/stores/studio/DiagramEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,IAAI,GACL,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAMtD,OAAO,EACL,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CAAC,CAAC,QAAQ,CACvC,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,WAAW,EAAE,CAC7C,CAAC,EACJ;YACA,OAAO,CAAC,KAAK,CAAC,CAAC;SAChB;IACH,CAAC,EAAE,KAAK,CAAC,CAAC;IAEZ,SAAS,CACP,UAA8B,EAC9B,WAAwB;QAExB,MAAM,kBAAkB,GAAG,IAAI,kBAAkB,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;QAC3E,OAAO,kBAAkB,CAAC;IAC5B,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-extension-dsl-diagram",
3
- "version": "0.1.1",
3
+ "version": "1.0.3",
4
4
  "description": "Legend extension for Diagram DSL",
5
5
  "keywords": [
6
6
  "legend",
@@ -25,11 +25,11 @@
25
25
  "types": "lib/index.d.ts",
26
26
  "scripts": {
27
27
  "build": "yarn clean && yarn build:sass && yarn build:tsc",
28
- "build:sass": "cross-env INIT_CWD=$INIT_CWD sass ./style/index.scss ./lib/index.css --style=compressed && node ../../scripts/copyright/addBundledCodeCopyrightHeader.js ./lib/index.css",
28
+ "build:sass": "cross-env INIT_CWD=$INIT_CWD node ../../scripts/workflow/buildSass.js",
29
29
  "build:tsc": "tsc --project ./tsconfig.build.json",
30
30
  "clean": "rimraf \"lib\" \"build\"",
31
31
  "dev": "npm-run-all --parallel dev:sass dev:tsc",
32
- "dev:sass": "sass ./style/index.scss ./lib/index.css --watch",
32
+ "dev:sass": "sass style lib --watch --load-path=../../node_modules/@finos/legend-art/scss",
33
33
  "dev:tsc": "tsc --watch --preserveWatchOutput",
34
34
  "lint:js": "cross-env NODE_ENV=production eslint --cache --cache-location ./build/.eslintcache --report-unused-disable-directives --parser-options=project:\"./tsconfig.json\" \"./src/**/*.{js,ts,tsx}\"",
35
35
  "publish:prepare": "node ../../scripts/release/preparePublishContent.js",
@@ -38,16 +38,16 @@
38
38
  "test:watch": "jest --watch"
39
39
  },
40
40
  "dependencies": {
41
- "@finos/legend-application": "0.1.1",
42
- "@finos/legend-art": "0.1.0",
43
- "@finos/legend-graph": "0.2.1",
44
- "@finos/legend-model-storage": "0.0.7",
45
- "@finos/legend-shared": "0.0.7",
46
- "@finos/legend-studio": "0.4.1",
41
+ "@finos/legend-application": "1.0.0",
42
+ "@finos/legend-art": "0.2.0",
43
+ "@finos/legend-graph": "0.3.0",
44
+ "@finos/legend-model-storage": "0.0.10",
45
+ "@finos/legend-shared": "1.0.0",
46
+ "@finos/legend-studio": "2.1.0",
47
47
  "@material-ui/core": "4.12.3",
48
- "@types/react": "17.0.33",
49
- "mobx": "6.3.5",
50
- "mobx-react-lite": "3.2.1",
48
+ "@types/react": "17.0.37",
49
+ "mobx": "6.3.8",
50
+ "mobx-react-lite": "3.2.2",
51
51
  "react": "17.0.2",
52
52
  "react-dnd": "14.0.4",
53
53
  "react-dom": "17.0.2",
@@ -56,16 +56,16 @@
56
56
  "serializr": "2.0.5"
57
57
  },
58
58
  "devDependencies": {
59
- "@finos/legend-dev-utils": "0.1.1",
59
+ "@finos/legend-dev-utils": "0.3.0",
60
60
  "@testing-library/react": "12.1.2",
61
61
  "cross-env": "7.0.3",
62
- "eslint": "8.1.0",
63
- "jest": "27.3.1",
62
+ "eslint": "8.3.0",
63
+ "jest": "27.4.3",
64
64
  "jest-canvas-mock": "2.3.1",
65
65
  "npm-run-all": "4.1.5",
66
66
  "rimraf": "3.0.2",
67
- "sass": "1.43.4",
68
- "typescript": "4.4.4"
67
+ "sass": "1.44.0",
68
+ "typescript": "4.5.2"
69
69
  },
70
70
  "peerDependencies": {
71
71
  "react": "^17.0.0"
@@ -78,7 +78,6 @@
78
78
  "pureProtocolProcessorPlugin": "@finos/legend-graph-plugin-dsl-diagram-pure-protocol-processor",
79
79
  "pureGraphManagerPlugin": "@finos/legend-graph-plugin-dsl-diagram-pure-graph-manager",
80
80
  "pureGraphPlugin": "@finos/legend-graph-plugin-dsl-diagram-pure-graph",
81
- "studioPreset": "@finos/legend-studio-preset-dsl-diagram",
82
81
  "studioPlugin": "@finos/legend-studio-plugin-dsl-diagram"
83
82
  }
84
83
  }
@@ -19,8 +19,6 @@ import { AbstractPreset } from '@finos/legend-shared';
19
19
  import { DSLDiagram_PureGraphManagerPlugin } from './graphManager/DSLDiagram_PureGraphManagerPlugin';
20
20
  import { DSLDiagram_PureProtocolProcessorPlugin } from './models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin';
21
21
  import type { GraphPluginManager } from '@finos/legend-graph';
22
- import type { StudioPluginManager } from '@finos/legend-studio';
23
- import { DSLDiagram_StudioPlugin } from './components/studio/DSLDiagram_StudioPlugin';
24
22
  import { DSLDiagram_PureGraphPlugin } from './graph/DSLDiagram_PureGraphPlugin';
25
23
 
26
24
  export class DSLDiagram_GraphPreset extends AbstractPreset {
@@ -34,16 +32,3 @@ export class DSLDiagram_GraphPreset extends AbstractPreset {
34
32
  new DSLDiagram_PureProtocolProcessorPlugin().install(pluginManager);
35
33
  }
36
34
  }
37
-
38
- export class DSLDiagram_StudioPreset extends AbstractPreset {
39
- constructor() {
40
- super(packageJson.extensions.studioPreset, packageJson.version);
41
- }
42
-
43
- install(pluginManager: StudioPluginManager): void {
44
- new DSLDiagram_StudioPlugin().install(pluginManager);
45
- new DSLDiagram_PureGraphPlugin().install(pluginManager);
46
- new DSLDiagram_PureGraphManagerPlugin().install(pluginManager);
47
- new DSLDiagram_PureProtocolProcessorPlugin().install(pluginManager);
48
- }
49
- }
@@ -686,14 +686,11 @@ export class DiagramRenderer {
686
686
 
687
687
  private manageVirtualScreen(): void {
688
688
  if (this.diagram.classViews.length) {
689
- let minX = this.diagram.classViews[0].position.x;
690
- let minY = this.diagram.classViews[0].position.y;
691
- let maxX =
692
- this.diagram.classViews[0].position.x +
693
- this.diagram.classViews[0].rectangle.width;
694
- let maxY =
695
- this.diagram.classViews[0].position.y +
696
- this.diagram.classViews[0].rectangle.height;
689
+ const firstClassView = guaranteeNonNullable(this.diagram.classViews[0]);
690
+ let minX = firstClassView.position.x;
691
+ let minY = firstClassView.position.y;
692
+ let maxX = firstClassView.position.x + firstClassView.rectangle.width;
693
+ let maxY = firstClassView.position.y + firstClassView.rectangle.height;
697
694
  for (const classView of this.diagram.classViews) {
698
695
  minX = Math.min(minX, classView.position.x);
699
696
  minY = Math.min(minY, classView.position.y);
@@ -717,8 +714,10 @@ export class DiagramRenderer {
717
714
  );
718
715
  if (relationshipView instanceof PropertyView) {
719
716
  const box = this.drawLinePropertyText(
720
- fullPath[fullPath.length - 2],
721
- fullPath[fullPath.length - 1],
717
+ // NOTE: by the way we compute the full path, it would guarantee
718
+ // to always have at least 2 points
719
+ fullPath[fullPath.length - 2] as Point,
720
+ fullPath[fullPath.length - 1] as Point,
722
721
  relationshipView.to.classView.value,
723
722
  relationshipView.property.value,
724
723
  false,
@@ -1786,8 +1785,10 @@ export class DiagramRenderer {
1786
1785
  // const toProperty = asso instanceof.property ? asso.property : asso.association.properties[1];
1787
1786
  const toProperty = propertyView.property.value;
1788
1787
  this.drawLinePropertyText(
1789
- fullPath[fullPath.length - 2],
1790
- fullPath[fullPath.length - 1],
1788
+ // NOTE: by the way we compute the full path, it would guarantee
1789
+ // to always have at least 2 points
1790
+ fullPath[fullPath.length - 2] as Point,
1791
+ fullPath[fullPath.length - 1] as Point,
1791
1792
  propertyView.to.classView.value,
1792
1793
  toProperty,
1793
1794
  false,
@@ -1872,10 +1873,12 @@ export class DiagramRenderer {
1872
1873
  inheritance.from.classView.value,
1873
1874
  inheritance.to.classView.value,
1874
1875
  );
1875
- const startX = fullPath[fullPath.length - 2].x;
1876
- const startY = fullPath[fullPath.length - 2].y;
1877
- const endX = fullPath[fullPath.length - 1].x;
1878
- const endY = fullPath[fullPath.length - 1].y;
1876
+ // NOTE: by the way we compute the full path, it would guarantee
1877
+ // to always have at least 2 points
1878
+ const startX = (fullPath[fullPath.length - 2] as Point).x;
1879
+ const startY = (fullPath[fullPath.length - 2] as Point).y;
1880
+ const endX = (fullPath[fullPath.length - 1] as Point).x;
1881
+ const endY = (fullPath[fullPath.length - 1] as Point).y;
1879
1882
  let resultX = 0;
1880
1883
  let resultY = 0;
1881
1884
  if (endY > startY) {
@@ -1960,27 +1963,35 @@ export class DiagramRenderer {
1960
1963
  this.ctx.beginPath();
1961
1964
  this.ctx.moveTo(
1962
1965
  resultX +
1963
- (this.screenOffset.x + this.triangle[0].rotateX(angle)) * this.zoom,
1966
+ (this.screenOffset.x + (this.triangle[0] as Point).rotateX(angle)) *
1967
+ this.zoom,
1964
1968
  resultY +
1965
- (this.screenOffset.y + this.triangle[0].rotateY(angle)) * this.zoom,
1969
+ (this.screenOffset.y + (this.triangle[0] as Point).rotateY(angle)) *
1970
+ this.zoom,
1966
1971
  );
1967
1972
  this.ctx.lineTo(
1968
1973
  resultX +
1969
- (this.screenOffset.x + this.triangle[1].rotateX(angle)) * this.zoom,
1974
+ (this.screenOffset.x + (this.triangle[1] as Point).rotateX(angle)) *
1975
+ this.zoom,
1970
1976
  resultY +
1971
- (this.screenOffset.y + this.triangle[1].rotateY(angle)) * this.zoom,
1977
+ (this.screenOffset.y + (this.triangle[1] as Point).rotateY(angle)) *
1978
+ this.zoom,
1972
1979
  );
1973
1980
  this.ctx.lineTo(
1974
1981
  resultX +
1975
- (this.screenOffset.x + this.triangle[2].rotateX(angle)) * this.zoom,
1982
+ (this.screenOffset.x + (this.triangle[2] as Point).rotateX(angle)) *
1983
+ this.zoom,
1976
1984
  resultY +
1977
- (this.screenOffset.y + this.triangle[2].rotateY(angle)) * this.zoom,
1985
+ (this.screenOffset.y + (this.triangle[2] as Point).rotateY(angle)) *
1986
+ this.zoom,
1978
1987
  );
1979
1988
  this.ctx.lineTo(
1980
1989
  resultX +
1981
- (this.screenOffset.x + this.triangle[0].rotateX(angle)) * this.zoom,
1990
+ (this.screenOffset.x + (this.triangle[0] as Point).rotateX(angle)) *
1991
+ this.zoom,
1982
1992
  resultY +
1983
- (this.screenOffset.y + this.triangle[0].rotateY(angle)) * this.zoom,
1993
+ (this.screenOffset.y + (this.triangle[0] as Point).rotateY(angle)) *
1994
+ this.zoom,
1984
1995
  );
1985
1996
  this.ctx.fillStyle = this.generalizationViewInheritanceTriangeFillColor;
1986
1997
  this.ctx.fill();
@@ -2099,13 +2110,13 @@ export class DiagramRenderer {
2099
2110
  this.selectedPropertyOrAssociation.property.value,
2100
2111
  this.selectedPoint ??
2101
2112
  (this.selectedPropertyOrAssociation.path.length
2102
- ? this.selectedPropertyOrAssociation.path[0]
2113
+ ? (this.selectedPropertyOrAssociation.path[0] as Point)
2103
2114
  : this.selectedPropertyOrAssociation.from.classView.value.center()),
2104
2115
  this.selectedPropertyOrAssociation,
2105
2116
  );
2106
2117
  e.preventDefault();
2107
2118
  } else if (this.selectedClasses.length === 1) {
2108
- this.handleEditClassView(this.selectedClasses[0]);
2119
+ this.handleEditClassView(this.selectedClasses[0] as ClassView);
2109
2120
  }
2110
2121
  }
2111
2122
 
@@ -2212,7 +2223,7 @@ export class DiagramRenderer {
2212
2223
  // Add a new simple property to selected class
2213
2224
  else if (e.altKey && 'ArrowDown' === e.code) {
2214
2225
  if (!this.isReadOnly && this.selectedClasses.length === 1) {
2215
- this.handleAddSimpleProperty(this.selectedClasses[0]);
2226
+ this.handleAddSimpleProperty(this.selectedClasses[0] as ClassView);
2216
2227
  }
2217
2228
  }
2218
2229
 
@@ -2333,11 +2344,11 @@ export class DiagramRenderer {
2333
2344
  let nextZoomLevel: number;
2334
2345
  // NOTE: below the smallest recommended zoom level, we will start decrement by 10
2335
2346
  // and increment by 100 beyond the largest recommended zoom level.
2336
- if (currentZoomLevel <= DIAGRAM_ZOOM_LEVELS[0] - 10) {
2347
+ if (currentZoomLevel <= (DIAGRAM_ZOOM_LEVELS[0] as number) - 10) {
2337
2348
  nextZoomLevel = Math.floor(currentZoomLevel / 10) * 10 + 10;
2338
2349
  } else if (
2339
2350
  currentZoomLevel >=
2340
- DIAGRAM_ZOOM_LEVELS[DIAGRAM_ZOOM_LEVELS.length - 1]
2351
+ (DIAGRAM_ZOOM_LEVELS[DIAGRAM_ZOOM_LEVELS.length - 1] as number)
2341
2352
  ) {
2342
2353
  nextZoomLevel = Math.floor(currentZoomLevel / 100) * 100 + 100;
2343
2354
  } else {
@@ -2353,11 +2364,12 @@ export class DiagramRenderer {
2353
2364
  case DIAGRAM_INTERACTION_MODE.ZOOM_OUT: {
2354
2365
  const currentZoomLevel = Math.round(this.zoom * 100);
2355
2366
  let nextZoomLevel: number;
2356
- if (currentZoomLevel <= DIAGRAM_ZOOM_LEVELS[0]) {
2367
+ if (currentZoomLevel <= (DIAGRAM_ZOOM_LEVELS[0] as number)) {
2357
2368
  nextZoomLevel = Math.ceil(currentZoomLevel / 10) * 10 - 10;
2358
2369
  } else if (
2359
2370
  currentZoomLevel >=
2360
- DIAGRAM_ZOOM_LEVELS[DIAGRAM_ZOOM_LEVELS.length - 1] + 100
2371
+ (DIAGRAM_ZOOM_LEVELS[DIAGRAM_ZOOM_LEVELS.length - 1] as number) +
2372
+ 100
2361
2373
  ) {
2362
2374
  nextZoomLevel = Math.ceil(currentZoomLevel / 100) * 100 - 100;
2363
2375
  } else {
@@ -2382,17 +2394,17 @@ export class DiagramRenderer {
2382
2394
  this.eventCoordinateToCanvasCoordinate(new Point(e.x, e.y)),
2383
2395
  );
2384
2396
  for (let i = this.diagram.classViews.length - 1; i >= 0; i--) {
2397
+ const targetClassView = this.diagram.classViews[i] as ClassView;
2398
+
2385
2399
  if (
2386
- this.diagram.classViews[i].contains(
2400
+ targetClassView.contains(
2387
2401
  eventPointInModelCoordinate.x,
2388
2402
  eventPointInModelCoordinate.y,
2389
2403
  )
2390
2404
  ) {
2391
- const targetClassView = this.diagram.classViews[i];
2392
-
2393
2405
  const gview = this.handleAddRelationship(
2394
2406
  this.startClassView,
2395
- this.diagram.classViews[i],
2407
+ targetClassView,
2396
2408
  );
2397
2409
 
2398
2410
  if (gview) {
@@ -2540,8 +2552,9 @@ export class DiagramRenderer {
2540
2552
  // Check if the selection lies within the bottom right corner box of a box (so we can do resize of box here)
2541
2553
  // NOTE: Traverse backwards the class views to preserve z-index buffer
2542
2554
  for (let i = this.diagram.classViews.length - 1; i >= 0; i--) {
2555
+ const targetClassView = this.diagram.classViews[i] as ClassView;
2543
2556
  if (
2544
- this.diagram.classViews[i]
2557
+ targetClassView
2545
2558
  .buildBottomRightCornerBox()
2546
2559
  .contains(
2547
2560
  eventPointInModelCoordinate.x,
@@ -2577,24 +2590,24 @@ export class DiagramRenderer {
2577
2590
  let anyClassesSelected = false;
2578
2591
  // Traverse backwards the class views to preserve z-index buffer
2579
2592
  for (let i = this.diagram.classViews.length - 1; i >= 0; i--) {
2593
+ const targetClassView = this.diagram.classViews[i] as ClassView;
2580
2594
  if (
2581
- this.diagram.classViews[i].contains(
2595
+ targetClassView.contains(
2582
2596
  eventPointInModelCoordinate.x,
2583
2597
  eventPointInModelCoordinate.y,
2584
2598
  )
2585
2599
  ) {
2586
2600
  if (
2587
2601
  this.selectedClasses.length === 0 ||
2588
- this.selectedClasses.indexOf(this.diagram.classViews[i]) ===
2589
- -1
2602
+ this.selectedClasses.indexOf(targetClassView) === -1
2590
2603
  ) {
2591
- this.setSelectedClasses([this.diagram.classViews[i]]);
2604
+ this.setSelectedClasses([targetClassView]);
2592
2605
  }
2593
2606
  if (!this.isReadOnly) {
2594
2607
  // Bring the class view to front
2595
2608
  this.diagram.setClassViews(
2596
2609
  this.reorderDiagramDomain(
2597
- this.selectedClasses[0],
2610
+ this.selectedClasses[0] as ClassView,
2598
2611
  this.diagram,
2599
2612
  ),
2600
2613
  );
@@ -2690,13 +2703,14 @@ export class DiagramRenderer {
2690
2703
  this.setSelectionStart(eventPointInModelCoordinate);
2691
2704
  this.startClassView = undefined;
2692
2705
  for (let i = this.diagram.classViews.length - 1; i >= 0; i--) {
2706
+ const targetClassView = this.diagram.classViews[i] as ClassView;
2693
2707
  if (
2694
- this.diagram.classViews[i].contains(
2708
+ targetClassView.contains(
2695
2709
  eventPointInModelCoordinate.x,
2696
2710
  eventPointInModelCoordinate.y,
2697
2711
  )
2698
2712
  ) {
2699
- this.startClassView = this.diagram.classViews[i];
2713
+ this.startClassView = targetClassView;
2700
2714
  }
2701
2715
  }
2702
2716
  if (!this.startClassView) {
@@ -3067,8 +3081,10 @@ export class DiagramRenderer {
3067
3081
  propertyHolderView.to.classView.value,
3068
3082
  );
3069
3083
  const propertyInfoBox = this.drawLinePropertyText(
3070
- fullPath[fullPath.length - 2],
3071
- fullPath[fullPath.length - 1],
3084
+ // NOTE: by the way we compute the full path, it would guarantee
3085
+ // to always have at least 2 points
3086
+ fullPath[fullPath.length - 2] as Point,
3087
+ fullPath[fullPath.length - 1] as Point,
3072
3088
  propertyHolderView.to.classView.value,
3073
3089
  propertyHolderView.property.value,
3074
3090
  false,
@@ -3137,44 +3153,49 @@ export class DiagramRenderer {
3137
3153
  positionInitialClass: boolean,
3138
3154
  superType: boolean,
3139
3155
  ): [ClassView[], GeneralizationView[]] {
3140
- //Offsets
3156
+ // Offsets
3141
3157
  const spaceY = 30;
3142
3158
  const spaceX = 10;
3143
3159
 
3144
3160
  classViewLevels.reverse();
3145
3161
 
3146
- const classViews = classViewLevels.flatMap((level, currentLevelIndex) => {
3162
+ const classViews = classViewLevels.flatMap((levels, currentLevelIndex) => {
3147
3163
  // Get the bounding box of the precedent level
3148
3164
  let precedentTotalWidth = 0;
3149
3165
  let precedentTotalHeight = 0;
3150
3166
  let precedentX = 0;
3151
3167
  let precedentY = 0;
3152
3168
  if (currentLevelIndex > 0) {
3153
- const precedentByX = [...classViewLevels[currentLevelIndex - 1]].sort(
3154
- (a, b) => a.position.x - b.position.x,
3155
- );
3156
- precedentX = precedentByX[0].position.x;
3157
- precedentTotalWidth =
3158
- precedentByX[precedentByX.length - 1].position.x +
3159
- precedentByX[precedentByX.length - 1].rectangle.width -
3160
- precedentByX[0].position.x;
3161
-
3162
- const precedentByY = [...classViewLevels[currentLevelIndex - 1]].sort(
3163
- (a, b) => a.position.y - b.position.y,
3164
- );
3165
- precedentY = precedentByY[0].position.y;
3166
- precedentTotalHeight =
3167
- precedentByY[precedentByY.length - 1].position.y +
3168
- precedentByY[precedentByY.length - 1].rectangle.height -
3169
- precedentByY[0].position.y;
3169
+ const precedent = classViewLevels[currentLevelIndex - 1] as ClassView[];
3170
+ if (precedent.length) {
3171
+ const precedentByX = [...precedent].sort(
3172
+ (a, b) => a.position.x - b.position.x,
3173
+ );
3174
+ precedentX = (precedentByX[0] as ClassView).position.x;
3175
+ precedentTotalWidth =
3176
+ (precedentByX[precedentByX.length - 1] as ClassView).position.x +
3177
+ (precedentByX[precedentByX.length - 1] as ClassView).rectangle
3178
+ .width -
3179
+ (precedentByX[0] as ClassView).position.x;
3180
+
3181
+ const precedentByY = [...precedent].sort(
3182
+ (a, b) => a.position.y - b.position.y,
3183
+ );
3184
+ precedentY = (precedentByY[0] as ClassView).position.y;
3185
+ precedentTotalHeight =
3186
+ (precedentByY[precedentByY.length - 1] as ClassView).position.y +
3187
+ (precedentByY[precedentByY.length - 1] as ClassView).rectangle
3188
+ .height -
3189
+ (precedentByY[0] as ClassView).position.y;
3190
+ }
3170
3191
  }
3171
3192
 
3172
3193
  // Get the bounding box of current Level
3173
3194
  const maxHeight = Math.max(
3174
- ...level.map((classView) => classView.rectangle.height),
3195
+ ...levels.map((classView) => classView.rectangle.height),
3175
3196
  );
3176
3197
 
3177
- const totalWidth = level
3198
+ const totalWidth = levels
3178
3199
  .map((classView) => classView.rectangle.width)
3179
3200
  .reduce((a, b) => a + b + spaceX);
3180
3201
 
@@ -3186,10 +3207,10 @@ export class DiagramRenderer {
3186
3207
 
3187
3208
  // Set layout of current level
3188
3209
  if (positionInitialClass || currentLevelIndex > 0) {
3189
- level[0].setPosition(new Point(startX, currentLevelY));
3190
- level.forEach((view, index) => {
3191
- if (index > 0) {
3192
- const precedent = level[index - 1];
3210
+ (levels[0] as ClassView).setPosition(new Point(startX, currentLevelY));
3211
+ levels.forEach((view, idx) => {
3212
+ if (idx > 0) {
3213
+ const precedent = levels[idx - 1] as ClassView;
3193
3214
  view.setPosition(
3194
3215
  new Point(
3195
3216
  precedent.position.x + precedent.rectangle.width + spaceX,
@@ -3199,16 +3220,16 @@ export class DiagramRenderer {
3199
3220
  }
3200
3221
  });
3201
3222
  }
3202
- return level;
3223
+ return levels;
3203
3224
  });
3204
3225
 
3205
3226
  const generalizationViews = (
3206
3227
  superType ? classViewLevels : classViewLevels.reverse()
3207
3228
  )
3208
3229
  .slice(0, classViewLevels.length - 1)
3209
- .flatMap((level, i) =>
3230
+ .flatMap((level, idx) =>
3210
3231
  level.flatMap((fromClassView) =>
3211
- classViewLevels[i + 1].flatMap((toClassView) => {
3232
+ (classViewLevels[idx + 1] as ClassView[]).flatMap((toClassView) => {
3212
3233
  if (
3213
3234
  fromClassView.class.value.generalizations
3214
3235
  .map((g) => g.value.rawType)