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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/lib/DiagramRenderer.d.ts +6 -6
  3. package/lib/DiagramRenderer.d.ts.map +1 -1
  4. package/lib/DiagramRenderer.js +27 -16
  5. package/lib/DiagramRenderer.js.map +1 -1
  6. package/lib/components/studio/ClassDiagramPreview.d.ts +1 -0
  7. package/lib/components/studio/ClassDiagramPreview.d.ts.map +1 -1
  8. package/lib/components/studio/DSLDiagram_LegendStudioPlugin.d.ts +1 -2
  9. package/lib/components/studio/DSLDiagram_LegendStudioPlugin.d.ts.map +1 -1
  10. package/lib/components/studio/DSLDiagram_LegendStudioPlugin.js +1 -1
  11. package/lib/components/studio/DSLDiagram_LegendStudioPlugin.js.map +1 -1
  12. package/lib/components/studio/DiagramEditor.d.ts +1 -0
  13. package/lib/components/studio/DiagramEditor.d.ts.map +1 -1
  14. package/lib/components/studio/DiagramEditor.js +13 -15
  15. package/lib/components/studio/DiagramEditor.js.map +1 -1
  16. package/lib/components/studio/InheritanceDiagramRenderer.d.ts +1 -1
  17. package/lib/components/studio/InheritanceDiagramRenderer.d.ts.map +1 -1
  18. package/lib/components/studio/InheritanceDiagramRenderer.js +1 -1
  19. package/lib/components/studio/InheritanceDiagramRenderer.js.map +1 -1
  20. package/lib/graph/DSLDiagram_PureGraphPlugin.d.ts +1 -2
  21. package/lib/graph/DSLDiagram_PureGraphPlugin.d.ts.map +1 -1
  22. package/lib/graph/DSLDiagram_PureGraphPlugin.js +1 -1
  23. package/lib/graph/DSLDiagram_PureGraphPlugin.js.map +1 -1
  24. package/lib/graphManager/DSLDiagram_PureGraphManagerPlugin.d.ts +1 -2
  25. package/lib/graphManager/DSLDiagram_PureGraphManagerPlugin.d.ts.map +1 -1
  26. package/lib/graphManager/DSLDiagram_PureGraphManagerPlugin.js +1 -1
  27. package/lib/graphManager/DSLDiagram_PureGraphManagerPlugin.js.map +1 -1
  28. package/lib/index.css +1 -1
  29. package/lib/models/metamodels/pure/packageableElements/diagram/AssociationView.d.ts +1 -1
  30. package/lib/models/metamodels/pure/packageableElements/diagram/AssociationView.d.ts.map +1 -1
  31. package/lib/models/metamodels/pure/packageableElements/diagram/AssociationView.js.map +1 -1
  32. package/lib/models/metamodels/pure/packageableElements/diagram/ClassView.d.ts +1 -1
  33. package/lib/models/metamodels/pure/packageableElements/diagram/ClassView.d.ts.map +1 -1
  34. package/lib/models/metamodels/pure/packageableElements/diagram/ClassView.js.map +1 -1
  35. package/lib/models/metamodels/pure/packageableElements/diagram/ClassViewReference.d.ts +1 -2
  36. package/lib/models/metamodels/pure/packageableElements/diagram/ClassViewReference.d.ts.map +1 -1
  37. package/lib/models/metamodels/pure/packageableElements/diagram/ClassViewReference.js.map +1 -1
  38. package/lib/models/metamodels/pure/packageableElements/diagram/Diagram.d.ts +2 -3
  39. package/lib/models/metamodels/pure/packageableElements/diagram/Diagram.d.ts.map +1 -1
  40. package/lib/models/metamodels/pure/packageableElements/diagram/Diagram.js +2 -2
  41. package/lib/models/metamodels/pure/packageableElements/diagram/Diagram.js.map +1 -1
  42. package/lib/models/metamodels/pure/packageableElements/diagram/GeneralizationView.d.ts +1 -1
  43. package/lib/models/metamodels/pure/packageableElements/diagram/GeneralizationView.d.ts.map +1 -1
  44. package/lib/models/metamodels/pure/packageableElements/diagram/GeneralizationView.js.map +1 -1
  45. package/lib/models/metamodels/pure/packageableElements/diagram/PropertyHolderView.d.ts +1 -1
  46. package/lib/models/metamodels/pure/packageableElements/diagram/PropertyHolderView.d.ts.map +1 -1
  47. package/lib/models/metamodels/pure/packageableElements/diagram/PropertyHolderView.js.map +1 -1
  48. package/lib/models/metamodels/pure/packageableElements/diagram/PropertyView.d.ts +1 -1
  49. package/lib/models/metamodels/pure/packageableElements/diagram/PropertyView.d.ts.map +1 -1
  50. package/lib/models/metamodels/pure/packageableElements/diagram/PropertyView.js.map +1 -1
  51. package/lib/models/metamodels/pure/packageableElements/diagram/RelationshipView.d.ts +1 -1
  52. package/lib/models/metamodels/pure/packageableElements/diagram/RelationshipView.d.ts.map +1 -1
  53. package/lib/models/metamodels/pure/packageableElements/diagram/RelationshipView.js.map +1 -1
  54. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/Point.d.ts +1 -1
  55. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/Point.d.ts.map +1 -1
  56. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/Point.js.map +1 -1
  57. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/PositionedRectangle.d.ts +1 -1
  58. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/PositionedRectangle.d.ts.map +1 -1
  59. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/PositionedRectangle.js.map +1 -1
  60. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/Rectangle.d.ts +1 -1
  61. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/Rectangle.d.ts.map +1 -1
  62. package/lib/models/metamodels/pure/packageableElements/diagram/geometry/Rectangle.js.map +1 -1
  63. package/lib/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.d.ts +1 -2
  64. package/lib/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.d.ts.map +1 -1
  65. package/lib/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.js.map +1 -1
  66. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_ClassView.d.ts +1 -1
  67. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_ClassView.d.ts.map +1 -1
  68. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_ClassView.js.map +1 -1
  69. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_Diagram.d.ts +2 -3
  70. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_Diagram.d.ts.map +1 -1
  71. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_Diagram.js +1 -1
  72. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_Diagram.js.map +1 -1
  73. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_GeneralizationView.d.ts +1 -1
  74. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_GeneralizationView.d.ts.map +1 -1
  75. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_GeneralizationView.js.map +1 -1
  76. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_PropertyHolderView.d.ts +1 -1
  77. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_PropertyHolderView.d.ts.map +1 -1
  78. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_PropertyHolderView.js.map +1 -1
  79. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_PropertyView.d.ts +1 -1
  80. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_PropertyView.d.ts.map +1 -1
  81. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_PropertyView.js.map +1 -1
  82. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_RelationshipView.d.ts +1 -1
  83. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_RelationshipView.d.ts.map +1 -1
  84. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_RelationshipView.js.map +1 -1
  85. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_Point.d.ts +1 -1
  86. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_Point.d.ts.map +1 -1
  87. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_Point.js.map +1 -1
  88. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_PositionedRectangle.d.ts +1 -1
  89. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_PositionedRectangle.d.ts.map +1 -1
  90. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_PositionedRectangle.js.map +1 -1
  91. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_Rectangle.d.ts +1 -1
  92. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_Rectangle.d.ts.map +1 -1
  93. package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_Rectangle.js.map +1 -1
  94. package/lib/stores/studio/DiagramEditorState.d.ts +3 -4
  95. package/lib/stores/studio/DiagramEditorState.d.ts.map +1 -1
  96. package/lib/stores/studio/DiagramEditorState.js +5 -3
  97. package/lib/stores/studio/DiagramEditorState.js.map +1 -1
  98. package/package.json +20 -20
  99. package/src/DiagramRenderer.ts +54 -29
  100. package/src/components/studio/DSLDiagram_LegendStudioPlugin.tsx +15 -15
  101. package/src/components/studio/DiagramEditor.tsx +34 -34
  102. package/src/components/studio/InheritanceDiagramRenderer.ts +4 -2
  103. package/src/graph/DSLDiagram_PureGraphPlugin.ts +5 -5
  104. package/src/graphManager/DSLDiagram_PureGraphManagerPlugin.ts +4 -4
  105. package/src/models/metamodels/pure/packageableElements/diagram/AssociationView.ts +1 -2
  106. package/src/models/metamodels/pure/packageableElements/diagram/ClassView.ts +1 -2
  107. package/src/models/metamodels/pure/packageableElements/diagram/ClassViewReference.ts +2 -4
  108. package/src/models/metamodels/pure/packageableElements/diagram/Diagram.ts +10 -4
  109. package/src/models/metamodels/pure/packageableElements/diagram/GeneralizationView.ts +1 -2
  110. package/src/models/metamodels/pure/packageableElements/diagram/PropertyHolderView.ts +1 -2
  111. package/src/models/metamodels/pure/packageableElements/diagram/PropertyView.ts +1 -2
  112. package/src/models/metamodels/pure/packageableElements/diagram/RelationshipView.ts +1 -2
  113. package/src/models/metamodels/pure/packageableElements/diagram/geometry/Point.ts +1 -2
  114. package/src/models/metamodels/pure/packageableElements/diagram/geometry/PositionedRectangle.ts +1 -2
  115. package/src/models/metamodels/pure/packageableElements/diagram/geometry/Rectangle.ts +1 -2
  116. package/src/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.ts +9 -12
  117. package/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_ClassView.ts +1 -2
  118. package/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_Diagram.ts +5 -4
  119. package/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_GeneralizationView.ts +1 -2
  120. package/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_PropertyHolderView.ts +1 -2
  121. package/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_PropertyView.ts +1 -2
  122. package/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_RelationshipView.ts +1 -2
  123. package/src/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_Point.ts +1 -2
  124. package/src/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_PositionedRectangle.ts +1 -2
  125. package/src/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_Rectangle.ts +1 -2
  126. package/src/stores/studio/DiagramEditorState.ts +15 -10
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @finos/legend-extension-dsl-diagram
2
2
 
3
+ ## 1.0.8
4
+
5
+ ## 1.0.7
6
+
7
+ ## 1.0.6
8
+
9
+ ### Patch Changes
10
+
11
+ - [#738](https://github.com/finos/legend-studio/pull/738) [`2f239197`](https://github.com/finos/legend-studio/commit/2f23919725f3b103ab2208f26bdbb482ef40186b) ([@akphi](https://github.com/akphi)) - Make the `onDoubleClick` event handlers optional: when they are not set, we nolonger call `noop()` but actually will ignore the events.
12
+
13
+ ## 1.0.5
14
+
15
+ ## 1.0.4
16
+
3
17
  ## 1.0.3
4
18
 
5
19
  ## 1.0.2
@@ -13,8 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import type { AbstractProperty } from '@finos/legend-graph';
17
- import { Class } from '@finos/legend-graph';
16
+ import { type AbstractProperty, Class } from '@finos/legend-graph';
18
17
  import type { Diagram } from './models/metamodels/pure/packageableElements/diagram/Diagram';
19
18
  import { Rectangle } from './models/metamodels/pure/packageableElements/diagram/geometry/Rectangle';
20
19
  import { Point } from './models/metamodels/pure/packageableElements/diagram/geometry/Point';
@@ -22,7 +21,7 @@ import { PositionedRectangle } from './models/metamodels/pure/packageableElement
22
21
  import { ClassView } from './models/metamodels/pure/packageableElements/diagram/ClassView';
23
22
  import type { PropertyHolderView } from './models/metamodels/pure/packageableElements/diagram/PropertyHolderView';
24
23
  import { GeneralizationView } from './models/metamodels/pure/packageableElements/diagram/GeneralizationView';
25
- import type { RelationshipView } from './models/metamodels/pure/packageableElements/diagram/RelationshipView';
24
+ import { type RelationshipView } from './models/metamodels/pure/packageableElements/diagram/RelationshipView';
26
25
  export declare enum DIAGRAM_INTERACTION_MODE {
27
26
  LAYOUT = 0,
28
27
  PAN = 1,
@@ -145,9 +144,10 @@ export declare class DiagramRenderer {
145
144
  positionBeforeLastMove: Point;
146
145
  onAddClassViewClick: (point: Point) => void;
147
146
  onClassViewRightClick: (classView: ClassView, point: Point) => void;
148
- onBackgroundDoubleClick: (point: Point) => void;
149
- onClassViewDoubleClick: (classView: ClassView, point: Point) => void;
150
- onClassNameDoubleClick: (classView: ClassView, point: Point) => void;
147
+ onBackgroundDoubleClick?: ((point: Point) => void) | undefined;
148
+ onClassViewDoubleClick?: ((classView: ClassView, point: Point) => void) | undefined;
149
+ onClassNameDoubleClick?: ((classView: ClassView, point: Point) => void) | undefined;
150
+ onClassPropertyDoubleClick?: ((property: AbstractProperty, point: Point, propertyHolderView: PropertyHolderView | undefined) => void) | undefined;
151
151
  handleEditClassView: (classView: ClassView) => void;
152
152
  handleEditProperty: (property: AbstractProperty, point: Point, propertyHolderView: PropertyHolderView | undefined) => void;
153
153
  handleAddSimpleProperty: (classView: ClassView) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"DiagramRenderer.d.ts","sourceRoot":"","sources":["../src/DiagramRenderer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAYH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAC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CAAC,oBAAoB;IAY5B,OAAO,CAAC,6BAA6B;IAqBrC,OAAO,CAAC,CAAC,EAAE,aAAa,GAAG,IAAI;IAiR/B,OAAO,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI;IAsJ5B,aAAa,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI;IAwElC,SAAS,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI;IAqO9B,UAAU,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI;IAO/B,SAAS,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI;IA6V9B,kBAAkB,CAChB,UAAU,EAAE,SAAS,EAAE,EACvB,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,MAAM,EACpB,eAAe,EAAE,MAAM,GACtB,SAAS,EAAE,EAAE;IAoChB,cAAc,CACZ,eAAe,EAAE,SAAS,EAAE,EAAE,EAC9B,OAAO,EAAE,OAAO,EAChB,oBAAoB,EAAE,OAAO,EAC7B,SAAS,EAAE,OAAO,GACjB,CAAC,SAAS,EAAE,EAAE,kBAAkB,EAAE,CAAC;CA+FvC"}
@@ -21,7 +21,7 @@ import { Point } from './models/metamodels/pure/packageableElements/diagram/geom
21
21
  import { PositionedRectangle } from './models/metamodels/pure/packageableElements/diagram/geometry/PositionedRectangle';
22
22
  import { ClassView } from './models/metamodels/pure/packageableElements/diagram/ClassView';
23
23
  import { GeneralizationView } from './models/metamodels/pure/packageableElements/diagram/GeneralizationView';
24
- import { manageInsidePointsDynamically } from './models/metamodels/pure/packageableElements/diagram/RelationshipView';
24
+ import { manageInsidePointsDynamically, } from './models/metamodels/pure/packageableElements/diagram/RelationshipView';
25
25
  import { PropertyView } from './models/metamodels/pure/packageableElements/diagram/PropertyView';
26
26
  import { getElementPosition } from './helpers/DiagramHelper';
27
27
  import { AssociationView } from './models/metamodels/pure/packageableElements/diagram/AssociationView';
@@ -168,9 +168,10 @@ export class DiagramRenderer {
168
168
  // interactions
169
169
  onAddClassViewClick = noop();
170
170
  onClassViewRightClick = noop();
171
- onBackgroundDoubleClick = noop();
172
- onClassViewDoubleClick = noop();
173
- onClassNameDoubleClick = noop();
171
+ onBackgroundDoubleClick;
172
+ onClassViewDoubleClick;
173
+ onClassNameDoubleClick;
174
+ onClassPropertyDoubleClick;
174
175
  handleEditClassView = noop();
175
176
  handleEditProperty = noop();
176
177
  handleAddSimpleProperty = noop();
@@ -420,9 +421,9 @@ export class DiagramRenderer {
420
421
  // Do not allow creating self-inheritance
421
422
  startClassView.class.value !== targetClassView.class.value &&
422
423
  // Avoid creating inhertance that already existed
423
- !startClassView.class.value.allSuperClasses.includes(targetClassView.class.value) &&
424
+ !startClassView.class.value.allSuperclasses.includes(targetClassView.class.value) &&
424
425
  // Avoid loop (might be expensive)
425
- !targetClassView.class.value.allSuperClasses.includes(startClassView.class.value)) {
426
+ !targetClassView.class.value.allSuperclasses.includes(startClassView.class.value)) {
426
427
  startClassView.class.value.addSuperType(GenericTypeExplicitReference.create(new GenericType(targetClassView.class.value)));
427
428
  }
428
429
  // only add an inheritance relationship view if the start class
@@ -1522,7 +1523,7 @@ export class DiagramRenderer {
1522
1523
  }
1523
1524
  // Add subtypes of selected classes to the diagram
1524
1525
  else if ('ArrowDown' === e.key) {
1525
- const views = uniqBy(this.selectedClasses.flatMap((x) => x.class.value._subClasses.flatMap((c) => new ClassView(this.diagram, uuid(), PackageableElementExplicitReference.create(c)))), (cv) => cv.class.value);
1526
+ const views = uniqBy(this.selectedClasses.flatMap((x) => x.class.value.subclasses.flatMap((c) => new ClassView(this.diagram, uuid(), PackageableElementExplicitReference.create(c)))), (cv) => cv.class.value);
1526
1527
  if (views.length > 0) {
1527
1528
  views.forEach((classView) => this.ensureClassViewMeetMinDimensions(classView));
1528
1529
  const res = this.layoutTaxonomy([views, this.selectedClasses], this.diagram, false, false);
@@ -1637,27 +1638,37 @@ export class DiagramRenderer {
1637
1638
  const eventPointInModelCoordinate = this.canvasCoordinateToModelCoordinate(this.eventCoordinateToCanvasCoordinate(new Point(e.x, e.y)));
1638
1639
  // Check double click on class property
1639
1640
  if (this.mouseOverClassProperty) {
1640
- this.handleEditProperty(this.mouseOverClassProperty, eventPointInModelCoordinate, undefined);
1641
- return;
1641
+ if (this.onClassPropertyDoubleClick) {
1642
+ this.onClassPropertyDoubleClick(this.mouseOverClassProperty, eventPointInModelCoordinate, undefined);
1643
+ return;
1644
+ }
1642
1645
  }
1643
1646
  // Check double click on class name
1644
1647
  if (this.mouseOverClassName) {
1645
- this.onClassNameDoubleClick(this.mouseOverClassName, eventPointInModelCoordinate);
1646
- return;
1648
+ if (this.onClassNameDoubleClick) {
1649
+ this.onClassNameDoubleClick(this.mouseOverClassName, eventPointInModelCoordinate);
1650
+ return;
1651
+ }
1647
1652
  }
1648
1653
  // Check double click on class view
1649
1654
  const selectedClass = this.diagram.classViews.find((classView) => classView.contains(eventPointInModelCoordinate.x, eventPointInModelCoordinate.y));
1650
1655
  if (selectedClass) {
1651
- this.onClassViewDoubleClick(selectedClass, eventPointInModelCoordinate);
1652
- return;
1656
+ if (this.onClassViewDoubleClick) {
1657
+ this.onClassViewDoubleClick(selectedClass, eventPointInModelCoordinate);
1658
+ return;
1659
+ }
1653
1660
  }
1654
1661
  // Check double click on line property label
1655
1662
  if (this.mouseOverPropertyHolderViewLabel) {
1656
- this.handleEditProperty(this.mouseOverPropertyHolderViewLabel.property.value, eventPointInModelCoordinate, this.mouseOverPropertyHolderViewLabel);
1657
- return;
1663
+ if (this.onClassPropertyDoubleClick) {
1664
+ this.onClassPropertyDoubleClick(this.mouseOverPropertyHolderViewLabel.property.value, eventPointInModelCoordinate, this.mouseOverPropertyHolderViewLabel);
1665
+ return;
1666
+ }
1658
1667
  }
1659
1668
  // Check double click on background
1660
- this.onBackgroundDoubleClick(eventPointInModelCoordinate);
1669
+ if (this.onBackgroundDoubleClick) {
1670
+ this.onBackgroundDoubleClick(eventPointInModelCoordinate);
1671
+ }
1661
1672
  return;
1662
1673
  }
1663
1674
  mousedown(e) {