@finos/legend-extension-dsl-diagram 2.0.3 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/DSLDiagram_Extension.d.ts +0 -2
- package/lib/DSLDiagram_Extension.d.ts.map +1 -1
- package/lib/DSLDiagram_Extension.js +8 -9
- package/lib/DSLDiagram_Extension.js.map +1 -1
- package/lib/DiagramRenderer.d.ts +8 -8
- package/lib/DiagramRenderer.d.ts.map +1 -1
- package/lib/DiagramRenderer.js +26 -30
- package/lib/DiagramRenderer.js.map +1 -1
- package/lib/components/studio/ClassDiagramPreview.js +2 -2
- package/lib/components/studio/ClassDiagramPreview.js.map +1 -1
- package/lib/components/studio/DSLDiagram_LegendStudioDocumentation.d.ts +4 -14
- package/lib/components/studio/DSLDiagram_LegendStudioDocumentation.d.ts.map +1 -1
- package/lib/components/studio/DSLDiagram_LegendStudioDocumentation.js +8 -6
- package/lib/components/studio/DSLDiagram_LegendStudioDocumentation.js.map +1 -1
- package/lib/components/studio/DSLDiagram_LegendStudioPlugin.d.ts.map +1 -1
- package/lib/components/studio/DSLDiagram_LegendStudioPlugin.js +10 -10
- package/lib/components/studio/DSLDiagram_LegendStudioPlugin.js.map +1 -1
- package/lib/components/studio/DSLDiagram_LegendStudioPlugin_Extension.d.ts +3 -3
- package/lib/components/studio/DSLDiagram_LegendStudioPlugin_Extension.d.ts.map +1 -1
- package/lib/components/studio/DSLDiagram_TestID.js +1 -1
- package/lib/components/studio/DSLDiagram_TestID.js.map +1 -1
- package/lib/components/studio/DiagramEditor.js +5 -5
- package/lib/components/studio/DiagramEditor.js.map +1 -1
- package/lib/components/studio/InheritanceDiagramRenderer.d.ts +1 -1
- package/lib/components/studio/InheritanceDiagramRenderer.d.ts.map +1 -1
- package/lib/components/studio/InheritanceDiagramRenderer.js +3 -3
- package/lib/components/studio/InheritanceDiagramRenderer.js.map +1 -1
- package/lib/graph/DSLDiagram_PureGraphPlugin.js +2 -2
- package/lib/graph/DSLDiagram_PureGraphPlugin.js.map +1 -1
- package/lib/graphManager/DSLDiagram_GraphManagerHelper.d.ts +1 -1
- package/lib/graphManager/DSLDiagram_GraphManagerHelper.d.ts.map +1 -1
- package/lib/graphManager/DSLDiagram_GraphManagerHelper.js +1 -1
- package/lib/graphManager/DSLDiagram_GraphManagerHelper.js.map +1 -1
- package/lib/graphManager/DSLDiagram_PureGraphManagerPlugin.js +2 -2
- package/lib/graphManager/DSLDiagram_PureGraphManagerPlugin.js.map +1 -1
- package/lib/graphManager/action/changeDetection/DSLDiagram_ObserverHelper.d.ts +9 -9
- package/lib/graphManager/action/changeDetection/DSLDiagram_ObserverHelper.d.ts.map +1 -1
- package/lib/graphManager/action/changeDetection/DSLDiagram_ObserverHelper.js +1 -1
- package/lib/graphManager/action/changeDetection/DSLDiagram_ObserverHelper.js.map +1 -1
- package/lib/helpers/{DiagramHelper.d.ts → DSLDiagram_Helper.d.ts} +28 -6
- package/lib/helpers/DSLDiagram_Helper.d.ts.map +1 -0
- package/lib/helpers/{DiagramHelper.js → DSLDiagram_Helper.js} +56 -9
- package/lib/helpers/{DiagramHelper.js.map → DSLDiagram_Helper.js.map} +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +18 -18
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +18 -18
- package/lib/index.js.map +1 -1
- package/lib/models/DSLDiagram_ModelUtils.js +1 -1
- package/lib/models/DSLDiagram_ModelUtils.js.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.d.ts +3 -3
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.d.ts.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.js +2 -2
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.js.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.d.ts +2 -2
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.d.ts.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.js +4 -4
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.js.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.d.ts +2 -2
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.d.ts.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.d.ts +4 -4
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.d.ts.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.js +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.js.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.d.ts +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.d.ts.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.js +2 -2
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.js.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView.d.ts +3 -3
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView.d.ts.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView.js +2 -2
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView.js.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.d.ts +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.d.ts.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.js +2 -2
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.js.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.d.ts +4 -4
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.d.ts.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.js +3 -3
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.js.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.d.ts +4 -4
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.d.ts.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.js +16 -8
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.js.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point.d.ts +0 -2
- package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point.d.ts.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point.js +1 -7
- package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point.js.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.d.ts +3 -9
- package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.d.ts.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.js +11 -22
- package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.js.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle.js +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle.js.map +1 -1
- package/lib/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.js +6 -6
- package/lib/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.js.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_ClassView.d.ts +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_ClassView.d.ts.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_ClassView.js +2 -2
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_ClassView.js.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_Diagram.d.ts +3 -3
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_Diagram.d.ts.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_Diagram.js +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_Diagram.js.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_GeneralizationView.d.ts +2 -2
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_GeneralizationView.d.ts.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_GeneralizationView.js +2 -2
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_GeneralizationView.js.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyHolderView.d.ts +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyHolderView.d.ts.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyHolderView.js +2 -2
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyHolderView.js.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyView.d.ts +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyView.d.ts.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyView.js +2 -2
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyView.js.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_RelationshipView.d.ts +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_RelationshipView.d.ts.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_RelationshipView.js +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_RelationshipView.js.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Line.d.ts +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Line.d.ts.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Point.js +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Point.js.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_PositionedRectangle.d.ts +2 -2
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_PositionedRectangle.d.ts.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_PositionedRectangle.js +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_PositionedRectangle.js.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Rectangle.js +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Rectangle.js.map +1 -1
- package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.d.ts +7 -7
- package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.d.ts.map +1 -1
- package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.js +7 -7
- package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.js.map +1 -1
- package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.d.ts +2 -2
- package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.d.ts.map +1 -1
- package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.js +7 -7
- package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.js.map +1 -1
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDiagram_ProtocolHelper.d.ts +1 -1
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDiagram_ProtocolHelper.d.ts.map +1 -1
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDiagram_ProtocolHelper.js +7 -7
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDiagram_ProtocolHelper.js.map +1 -1
- package/lib/package.json +10 -9
- package/lib/stores/studio/DSLDiagram_GraphModifierHelper.d.ts +10 -10
- package/lib/stores/studio/DSLDiagram_GraphModifierHelper.d.ts.map +1 -1
- package/lib/stores/studio/DSLDiagram_GraphModifierHelper.js +8 -8
- package/lib/stores/studio/DSLDiagram_GraphModifierHelper.js.map +1 -1
- package/lib/stores/studio/DiagramEditorState.d.ts +4 -4
- package/lib/stores/studio/DiagramEditorState.d.ts.map +1 -1
- package/lib/stores/studio/DiagramEditorState.js +3 -3
- package/lib/stores/studio/DiagramEditorState.js.map +1 -1
- package/package.json +17 -16
- package/src/DSLDiagram_Extension.ts +8 -11
- package/src/DiagramRenderer.ts +39 -36
- package/src/components/studio/ClassDiagramPreview.tsx +2 -2
- package/src/components/studio/DSLDiagram_LegendStudioDocumentation.ts +13 -6
- package/src/components/studio/DSLDiagram_LegendStudioPlugin.tsx +14 -13
- package/src/components/studio/DSLDiagram_LegendStudioPlugin_Extension.tsx +2 -2
- package/src/components/studio/DiagramEditor.tsx +6 -6
- package/src/components/studio/InheritanceDiagramRenderer.ts +3 -3
- package/src/graph/DSLDiagram_PureGraphPlugin.ts +2 -2
- package/src/graphManager/DSLDiagram_GraphManagerHelper.ts +1 -1
- package/src/graphManager/DSLDiagram_PureGraphManagerPlugin.ts +2 -2
- package/src/graphManager/action/changeDetection/DSLDiagram_ObserverHelper.ts +10 -10
- package/src/helpers/{DiagramHelper.ts → DSLDiagram_Helper.ts} +102 -11
- package/src/index.ts +21 -18
- package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.ts +4 -4
- package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.ts +5 -5
- package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.ts +2 -2
- package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.ts +5 -5
- package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.ts +2 -2
- package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView.ts +4 -4
- package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.ts +2 -2
- package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.ts +5 -4
- package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.ts +18 -10
- package/src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point.ts +1 -9
- package/src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.ts +12 -42
- package/src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle.ts +1 -1
- package/src/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.ts +6 -6
- package/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_ClassView.ts +2 -2
- package/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_Diagram.ts +4 -4
- package/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_GeneralizationView.ts +3 -3
- package/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyHolderView.ts +2 -2
- package/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyView.ts +2 -2
- package/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_RelationshipView.ts +2 -2
- package/src/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Line.ts +1 -1
- package/src/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Point.ts +1 -1
- package/src/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_PositionedRectangle.ts +3 -3
- package/src/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Rectangle.ts +1 -1
- package/src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.ts +13 -13
- package/src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.ts +12 -12
- package/src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDiagram_ProtocolHelper.ts +7 -7
- package/src/stores/studio/DSLDiagram_GraphModifierHelper.ts +20 -18
- package/src/stores/studio/DiagramEditorState.ts +5 -5
- package/tsconfig.json +4 -10
- package/tsconfig.package.json +1 -4
- package/lib/helpers/DiagramHelper.d.ts.map +0 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Vector.d.ts +0 -26
- package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Vector.d.ts.map +0 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Vector.js +0 -37
- package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Vector.js.map +0 -1
- package/src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Vector.ts +0 -44
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"V1_DSLDiagram_TransformerHelper.d.ts","sourceRoot":"","sources":["../../../../../../../src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM
|
1
|
+
{"version":3,"file":"V1_DSLDiagram_TransformerHelper.d.ts","sourceRoot":"","sources":["../../../../../../../src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kFAAkF,CAAC;AAMhH,OAAO,EAAE,UAAU,EAAE,MAAM,kEAAkE,CAAC;AAkE9F,eAAO,MAAM,mBAAmB,YAAa,OAAO,KAAG,UAStD,CAAC"}
|
package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.js
CHANGED
@@ -13,13 +13,13 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { V1_Point } from '../../model/packageableElements/diagram/geometry/V1_DSLDiagram_Point';
|
17
|
-
import { V1_ClassView } from '../../model/packageableElements/diagram/V1_DSLDiagram_ClassView';
|
18
|
-
import { V1_Diagram } from '../../model/packageableElements/diagram/V1_DSLDiagram_Diagram';
|
19
|
-
import { V1_GeneralizationView } from '../../model/packageableElements/diagram/V1_DSLDiagram_GeneralizationView';
|
20
|
-
import { V1_Line } from '../../model/packageableElements/diagram/geometry/V1_DSLDiagram_Line';
|
21
|
-
import { V1_Rectangle } from '../../model/packageableElements/diagram/geometry/V1_DSLDiagram_Rectangle';
|
22
|
-
import { V1_PropertyView } from '../../model/packageableElements/diagram/V1_DSLDiagram_PropertyView';
|
16
|
+
import { V1_Point } from '../../model/packageableElements/diagram/geometry/V1_DSLDiagram_Point.js';
|
17
|
+
import { V1_ClassView } from '../../model/packageableElements/diagram/V1_DSLDiagram_ClassView.js';
|
18
|
+
import { V1_Diagram } from '../../model/packageableElements/diagram/V1_DSLDiagram_Diagram.js';
|
19
|
+
import { V1_GeneralizationView } from '../../model/packageableElements/diagram/V1_DSLDiagram_GeneralizationView.js';
|
20
|
+
import { V1_Line } from '../../model/packageableElements/diagram/geometry/V1_DSLDiagram_Line.js';
|
21
|
+
import { V1_Rectangle } from '../../model/packageableElements/diagram/geometry/V1_DSLDiagram_Rectangle.js';
|
22
|
+
import { V1_PropertyView } from '../../model/packageableElements/diagram/V1_DSLDiagram_PropertyView.js';
|
23
23
|
import { V1_initPackageableElement, V1_transformElementReference, V1_transformPropertyReference, } from '@finos/legend-graph';
|
24
24
|
const relationshipEdgeViewTransformer = (value) => value.classView.value.id;
|
25
25
|
const createRectangle = (height, width) => {
|
package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"V1_DSLDiagram_TransformerHelper.js","sourceRoot":"","sources":["../../../../../../../src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"V1_DSLDiagram_TransformerHelper.js","sourceRoot":"","sources":["../../../../../../../src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,OAAO,EAAE,QAAQ,EAAE,MAAM,yEAAyE,CAAC;AACnG,OAAO,EAAE,YAAY,EAAE,MAAM,oEAAoE,CAAC;AAClG,OAAO,EAAE,UAAU,EAAE,MAAM,kEAAkE,CAAC;AAC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,CACxB,CAAC;IACF,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,OAAgB,EAAc,EAAE;IAClE,MAAM,OAAO,GAAG,IAAI,UAAU,EAAE,CAAC;IACjC,yBAAyB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC5C,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;IAChE,OAAO,CAAC,mBAAmB,GAAG,OAAO,CAAC,mBAAmB,CAAC,GAAG,CAC3D,uBAAuB,CACxB,CAAC;IACF,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;IACzE,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"}
|
package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDiagram_ProtocolHelper.d.ts
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { V1_Diagram } from '../../model/packageableElements/diagram/V1_DSLDiagram_Diagram';
|
16
|
+
import { V1_Diagram } from '../../model/packageableElements/diagram/V1_DSLDiagram_Diagram.js';
|
17
17
|
export declare const V1_DIAGRAM_ELEMENT_PROTOCOL_TYPE = "diagram";
|
18
18
|
export declare const V1_diagramModelSchema: import("serializr").ModelSchema<V1_Diagram>;
|
19
19
|
//# sourceMappingURL=V1_DSLDiagram_ProtocolHelper.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"V1_DSLDiagram_ProtocolHelper.d.ts","sourceRoot":"","sources":["../../../../../../../src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDiagram_ProtocolHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAQH,OAAO,EAAE,UAAU,EAAE,MAAM
|
1
|
+
{"version":3,"file":"V1_DSLDiagram_ProtocolHelper.d.ts","sourceRoot":"","sources":["../../../../../../../src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDiagram_ProtocolHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAQH,OAAO,EAAE,UAAU,EAAE,MAAM,kEAAkE,CAAC;AAQ9F,eAAO,MAAM,gCAAgC,YAAY,CAAC;AAuC1D,eAAO,MAAM,qBAAqB,6CAOhC,CAAC"}
|
package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDiagram_ProtocolHelper.js
CHANGED
@@ -15,13 +15,13 @@
|
|
15
15
|
*/
|
16
16
|
import { createModelSchema, list, optional, primitive } from 'serializr';
|
17
17
|
import { usingConstantValueSchema, usingModelSchema, } from '@finos/legend-shared';
|
18
|
-
import { V1_ClassView } from '../../model/packageableElements/diagram/V1_DSLDiagram_ClassView';
|
19
|
-
import { V1_Diagram } from '../../model/packageableElements/diagram/V1_DSLDiagram_Diagram';
|
20
|
-
import { V1_Point } from '../../model/packageableElements/diagram/geometry/V1_DSLDiagram_Point';
|
21
|
-
import { V1_Rectangle } from '../../model/packageableElements/diagram/geometry/V1_DSLDiagram_Rectangle';
|
22
|
-
import { V1_Line } from '../../model/packageableElements/diagram/geometry/V1_DSLDiagram_Line';
|
23
|
-
import { V1_PropertyView } from '../../model/packageableElements/diagram/V1_DSLDiagram_PropertyView';
|
24
|
-
import { V1_GeneralizationView } from '../../model/packageableElements/diagram/V1_DSLDiagram_GeneralizationView';
|
18
|
+
import { V1_ClassView } from '../../model/packageableElements/diagram/V1_DSLDiagram_ClassView.js';
|
19
|
+
import { V1_Diagram } from '../../model/packageableElements/diagram/V1_DSLDiagram_Diagram.js';
|
20
|
+
import { V1_Point } from '../../model/packageableElements/diagram/geometry/V1_DSLDiagram_Point.js';
|
21
|
+
import { V1_Rectangle } from '../../model/packageableElements/diagram/geometry/V1_DSLDiagram_Rectangle.js';
|
22
|
+
import { V1_Line } from '../../model/packageableElements/diagram/geometry/V1_DSLDiagram_Line.js';
|
23
|
+
import { V1_PropertyView } from '../../model/packageableElements/diagram/V1_DSLDiagram_PropertyView.js';
|
24
|
+
import { V1_GeneralizationView } from '../../model/packageableElements/diagram/V1_DSLDiagram_GeneralizationView.js';
|
25
25
|
import { V1_propertyPointerModelSchema } from '@finos/legend-graph';
|
26
26
|
export const V1_DIAGRAM_ELEMENT_PROTOCOL_TYPE = 'diagram';
|
27
27
|
const pointModelSchema = createModelSchema(V1_Point, {
|
package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDiagram_ProtocolHelper.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"V1_DSLDiagram_ProtocolHelper.js","sourceRoot":"","sources":["../../../../../../../src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDiagram_ProtocolHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACzE,OAAO,EACL,wBAAwB,EACxB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"V1_DSLDiagram_ProtocolHelper.js","sourceRoot":"","sources":["../../../../../../../src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDiagram_ProtocolHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACzE,OAAO,EACL,wBAAwB,EACxB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,oEAAoE,CAAC;AAClG,OAAO,EAAE,UAAU,EAAE,MAAM,kEAAkE,CAAC;AAC9F,OAAO,EAAE,QAAQ,EAAE,MAAM,yE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A6B,CAAC;IACzD,UAAU,EAAE,SAAS,EAAE;IACvB,UAAU,EAAE,SAAS,EAAE;CACxB,CAAC,CAAC;AAEH,MAAM,6BAA6B,GAAG,iBAAiB,CAAC,qBAAqB,EAAE;IAC7E,IAAI,EAAE,gBAAgB,CAAC,eAAe,CAAC;IACvC,UAAU,EAAE,SAAS,EAAE;IACvB,UAAU,EAAE,SAAS,EAAE;CACxB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG,iBAAiB,CAAC,UAAU,EAAE;IACjE,KAAK,EAAE,wBAAwB,CAAC,gCAAgC,CAAC;IACjE,UAAU,EAAE,IAAI,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;IACxD,mBAAmB,EAAE,IAAI,CAAC,gBAAgB,CAAC,6BAA6B,CAAC,CAAC;IAC1E,IAAI,EAAE,SAAS,EAAE;IACjB,OAAO,EAAE,SAAS,EAAE;IACpB,aAAa,EAAE,IAAI,CAAC,gBAAgB,CAAC,uBAAuB,CAAC,CAAC;CAC/D,CAAC,CAAC"}
|
package/lib/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-extension-dsl-diagram",
|
3
|
-
"version": "
|
3
|
+
"version": "3.0.0",
|
4
4
|
"description": "Legend extension for Diagram DSL",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -49,26 +49,27 @@
|
|
49
49
|
"@finos/legend-model-storage": "workspace:*",
|
50
50
|
"@finos/legend-shared": "workspace:*",
|
51
51
|
"@finos/legend-studio": "workspace:*",
|
52
|
-
"@types/react": "18.0.
|
53
|
-
"mobx": "6.
|
52
|
+
"@types/react": "18.0.12",
|
53
|
+
"mobx": "6.6.0",
|
54
54
|
"mobx-react-lite": "3.4.0",
|
55
55
|
"react": "18.1.0",
|
56
56
|
"react-dnd": "16.0.1",
|
57
57
|
"react-dom": "18.1.0",
|
58
|
-
"react-resize-detector": "7.
|
58
|
+
"react-resize-detector": "7.1.1",
|
59
59
|
"serializr": "2.0.5"
|
60
60
|
},
|
61
61
|
"devDependencies": {
|
62
62
|
"@finos/legend-dev-utils": "workspace:*",
|
63
|
-
"@
|
63
|
+
"@jest/globals": "28.1.1",
|
64
|
+
"@testing-library/react": "13.3.0",
|
64
65
|
"cross-env": "7.0.3",
|
65
|
-
"eslint": "8.
|
66
|
-
"jest": "28.1.
|
66
|
+
"eslint": "8.17.0",
|
67
|
+
"jest": "28.1.1",
|
67
68
|
"jest-canvas-mock": "2.4.0",
|
68
69
|
"npm-run-all": "4.1.5",
|
69
70
|
"rimraf": "3.0.2",
|
70
|
-
"sass": "1.
|
71
|
-
"typescript": "4.
|
71
|
+
"sass": "1.52.3",
|
72
|
+
"typescript": "4.7.3"
|
72
73
|
},
|
73
74
|
"peerDependencies": {
|
74
75
|
"react": "^18.0.0"
|
@@ -13,16 +13,16 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import type { AssociationView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView';
|
17
|
-
import type { ClassView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView';
|
18
|
-
import type { Diagram } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram';
|
19
|
-
import type { GeneralizationView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView';
|
20
|
-
import type { PropertyView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView';
|
21
|
-
import type { RelationshipEdgeView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView';
|
22
|
-
import type { RelationshipView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView';
|
23
|
-
import type { Point } from '../../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point';
|
24
|
-
import type { PositionedRectangle } from '../../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle';
|
25
|
-
import type { Rectangle } from '../../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle';
|
16
|
+
import type { AssociationView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.js';
|
17
|
+
import type { ClassView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.js';
|
18
|
+
import type { Diagram } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.js';
|
19
|
+
import type { GeneralizationView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.js';
|
20
|
+
import type { PropertyView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.js';
|
21
|
+
import type { RelationshipEdgeView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.js';
|
22
|
+
import type { RelationshipView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.js';
|
23
|
+
import type { Point } from '../../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point.js';
|
24
|
+
import type { PositionedRectangle } from '../../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.js';
|
25
|
+
import type { Rectangle } from '../../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle.js';
|
26
26
|
export declare const diagram_setClassViews: (diagram: Diagram, val: ClassView[]) => void;
|
27
27
|
export declare const diagram_addClassView: (diagram: Diagram, val: ClassView) => void;
|
28
28
|
export declare const diagram_deleteClassView: (diagram: Diagram, val: ClassView) => void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DSLDiagram_GraphModifierHelper.d.ts","sourceRoot":"","sources":["../../../src/stores/studio/DSLDiagram_GraphModifierHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"DSLDiagram_GraphModifierHelper.d.ts","sourceRo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,KAAG,IAG9C,CAAC;AACF,eAAO,MAAM,wBAAwB,YACzB,OAAO,OAAO,YAAY,EAAE,KAAG,IAG1C,CAAC;AACF,eAAO,MAAM,uBAAuB,YACxB,OAAO,OAAO,YAAY,KAAG,IAGxC,CAAC;AACF,eAAO,MAAM,0BAA0B,YAC3B,OAAO,OAAO,YAAY,KAAG,IAGxC,CAAC;AAEF,eAAO,MAAM,2BAA2B,OACjC,SAAS,OAAO,OAAO,KAAG,IAGhC,CAAC;AACF,eAAO,MAAM,4BAA4B,OAClC,SAAS,OAAO,OAAO,KAAG,IAGhC,CAAC;AACF,eAAO,MAAM,6BAA6B,OACnC,SAAS,OAAO,OAAO,KAAG,IAGhC,CAAC;AACF,eAAO,MAAM,+BAA+B,MACtC,oBAAoB,OAAO,MAAM,KAAG,IAGzC,CAAC;AACF,eAAO,MAAM,+BAA+B,MACtC,oBAAoB,OAAO,MAAM,KAAG,IAGzC,CAAC;AAGF,eAAO,MAAM,4BAA4B,MACnC,gBAAgB,OAAO,KAAK,UAAU,KAAK,KAAG,IAGnD,CAAC;AAEF,eAAO,MAAM,6BAA6B,8CAEzC,CAAC;AAEF,eAAO,MAAM,gBAAgB,qHAA4B,CAAC;AAC1D,eAAO,MAAM,wBAAwB,4DAAoC,CAAC;AAG1E,eAAO,MAAM,gCAAgC,OACtC,mBAAmB,SAAS,SAAS,KAAG,IAG9C,CAAC;AAGF,eAAO,MAAM,+BAA+B,OACrC,mBAAmB,SAAS,KAAK,KAAG,IAG1C,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,oCAAoC,OAC1C,mBAAmB,KAAG,IAG5B,CAAC"}
|
@@ -15,8 +15,8 @@
|
|
15
15
|
*/
|
16
16
|
import { addUniqueEntry, changeEntry, deleteEntry } from '@finos/legend-shared';
|
17
17
|
import { action } from 'mobx';
|
18
|
-
import { _findOrBuildPoint, _relationshipView_simplifyPath, _relationshipView_setPath, } from '../../helpers/
|
19
|
-
import { observe_AssociationView, observe_ClassView, observe_GeneralizationView, observe_PropertyView, } from '../../graphManager/action/changeDetection/DSLDiagram_ObserverHelper';
|
18
|
+
import { _findOrBuildPoint, _relationshipView_simplifyPath, _relationshipView_setPath, } from '../../helpers/DSLDiagram_Helper.js';
|
19
|
+
import { observe_AssociationView, observe_ClassView, observe_GeneralizationView, observe_PropertyView, } from '../../graphManager/action/changeDetection/DSLDiagram_ObserverHelper.js';
|
20
20
|
export const diagram_setClassViews = action((diagram, val) => {
|
21
21
|
diagram.classViews = val.map(observe_ClassView);
|
22
22
|
});
|
@@ -60,23 +60,23 @@ export const classView_setHideTaggedValues = action((cv, val) => {
|
|
60
60
|
cv.hideTaggedValues = val;
|
61
61
|
});
|
62
62
|
export const relationshipEdgeView_setOffsetX = action((r, val) => {
|
63
|
-
r.
|
63
|
+
r._offsetX = val;
|
64
64
|
});
|
65
65
|
export const relationshipEdgeView_setOffsetY = action((r, val) => {
|
66
|
-
r.
|
66
|
+
r._offsetY = val;
|
67
67
|
});
|
68
|
-
// To optimize performance we will not observe point (path)
|
68
|
+
// NOTE: To optimize performance, for now, we will not observe point (path)
|
69
69
|
export const relationshipView_changePoint = action((v, val, newVal) => {
|
70
70
|
changeEntry(v.path, val, newVal);
|
71
71
|
});
|
72
72
|
export const relationshipView_simplifyPath = action(_relationshipView_simplifyPath);
|
73
73
|
export const findOrBuildPoint = action(_findOrBuildPoint);
|
74
74
|
export const relationshipView_setPath = action(_relationshipView_setPath);
|
75
|
-
// To optimize performance we will not observe rectangle
|
75
|
+
// NOTE: To optimize performance, for now, we will not observe rectangle
|
76
76
|
export const positionedRectangle_setRectangle = action((pR, value) => {
|
77
77
|
pR.rectangle = value;
|
78
78
|
});
|
79
|
-
// To optimize performance we will not observe point (path)
|
79
|
+
// NOTE: To optimize performance, for now, we will not observe point (path)
|
80
80
|
export const positionedRectangle_setPosition = action((pR, value) => {
|
81
81
|
pR.position = value;
|
82
82
|
});
|
@@ -89,6 +89,6 @@ export const positionedRectangle_setPosition = action((pR, value) => {
|
|
89
89
|
* for the whole diagram instead?
|
90
90
|
*/
|
91
91
|
export const positionedRectangle_forceRefreshHash = action((pR) => {
|
92
|
-
pR.
|
92
|
+
pR._dummyObservable = {};
|
93
93
|
});
|
94
94
|
//# sourceMappingURL=DSLDiagram_GraphModifierHelper.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DSLDiagram_GraphModifierHelper.js","sourceRoot":"","sources":["../../../src/stores/studio/DSLDiagram_GraphModifierHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAChF,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAK9B,OAAO,EACL,iBAAiB,EACjB,8BAA8B,EAC9B,yBAAyB,GAC1B,MAAM,
|
1
|
+
{"version":3,"file":"DSLDiagram_GraphModifierHelper.js","sourceRoot":"","sources":["../../../src/stores/studio/DSLDiagram_GraphModifierHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAChF,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAK9B,OAAO,EACL,iBAAiB,EACjB,8BAA8B,EAC9B,yBAAyB,GAC1B,MAAM,oCAAoC,CAAC;AAO5C,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,0BAA0B,EAC1B,oBAAoB,GACrB,MAAM,wEAAwE,CAAC;AAEhF,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CACzC,CAAC,OAAgB,EAAE,GAAgB,EAAQ,EAAE;IAC3C,OAAO,CAAC,UAAU,GAAG,GAAG,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;AAClD,CAAC,CACF,CAAC;AACF,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CACxC,CAAC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,CAAC,CAAuB,EAAE,GAAW,EAAQ,EAAE;IAC7C,CAAC,CAAC,QAAQ,GAAG,GAAG,CAAC;AACnB,CAAC,CACF,CAAC;AAEF,2EAA2E;AAC3E,MAAM,CAAC,MAAM,4BAA4B,GAAG,MAAM,CAChD,CAAC,CAAmB,EAAE,GAAU,EAAE,MAAa,EAAQ,EAAE;IACvD,WAAW,CAAC,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC;AACnC,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG,MAAM,CACjD,8BAA8B,CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAC1D,MAAM,CAAC,MAAM,wBAAwB,GAAG,MAAM,CAAC,yBAAyB,CAAC,CAAC;AAE1E,wEAAwE;AACxE,MAAM,CAAC,MAAM,gCAAgC,GAAG,MAAM,CACpD,CAAC,EAAuB,EAAE,KAAgB,EAAQ,EAAE;IAClD,EAAE,CAAC,SAAS,GAAG,KAAK,CAAC;AACvB,CAAC,CACF,CAAC;AAEF,2EAA2E;AAC3E,MAAM,CAAC,MAAM,+BAA+B,GAAG,MAAM,CACnD,CAAC,EAAuB,EAAE,KAAY,EAAQ,EAAE;IAC9C,EAAE,CAAC,QAAQ,GAAG,KAAK,CAAC;AACtB,CAAC,CACF,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAG,MAAM,CACxD,CAAC,EAAuB,EAAQ,EAAE;IAChC,EAAE,CAAC,gBAAgB,GAAG,EAAE,CAAC;AAC3B,CAAC,CACF,CAAC"}
|
@@ -13,13 +13,13 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { type DiagramRenderer } from '../../DiagramRenderer';
|
16
|
+
import { type DiagramRenderer } from '../../DiagramRenderer.js';
|
17
17
|
import { PanelDisplayState } from '@finos/legend-art';
|
18
18
|
import { type PackageableElement, type AbstractProperty, type PropertyReference } from '@finos/legend-graph';
|
19
19
|
import { type EditorStore, ClassEditorState, ElementEditorState } from '@finos/legend-studio';
|
20
|
-
import type { ClassView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView';
|
21
|
-
import type { Point } from '../../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point';
|
22
|
-
import { Diagram } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram';
|
20
|
+
import type { ClassView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.js';
|
21
|
+
import type { Point } from '../../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point.js';
|
22
|
+
import { Diagram } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.js';
|
23
23
|
export declare abstract class DiagramEditorSidePanelState {
|
24
24
|
readonly uuid: string;
|
25
25
|
editorStore: EditorStore;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DiagramEditorState.d.ts","sourceRoot":"","sources":["../../../src/stores/studio/DiagramEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AASH,OAAO,EACL,KAAK,eAAe,EAErB,MAAM,
|
1
|
+
{"version":3,"file":"DiagramEditorState.d.ts","sourceRoot":"","sources":["../../../src/stores/studio/DiagramEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AASH,OAAO,EACL,KAAK,eAAe,EAErB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAuB,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EAOvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,WAAW,EAChB,gBAAgB,EAChB,kBAAkB,EAEnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,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yB,CAuBrB;IAEZ,SAAS,CACP,UAAU,EAAE,kBAAkB,EAC9B,WAAW,EAAE,WAAW,GACvB,kBAAkB;CAItB"}
|
@@ -15,11 +15,11 @@
|
|
15
15
|
*/
|
16
16
|
import { computed, action, makeObservable, observable } from 'mobx';
|
17
17
|
import { guaranteeNonNullable, guaranteeType, isType, uuid, } from '@finos/legend-shared';
|
18
|
-
import { DIAGRAM_INTERACTION_MODE, } from '../../DiagramRenderer';
|
18
|
+
import { DIAGRAM_INTERACTION_MODE, } from '../../DiagramRenderer.js';
|
19
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
21
|
import { ClassEditorState, ElementEditorState, class_addProperty, } from '@finos/legend-studio';
|
22
|
-
import { Diagram } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram';
|
22
|
+
import { Diagram } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.js';
|
23
23
|
var DIAGRAM_EDITOR_HOTKEY;
|
24
24
|
(function (DIAGRAM_EDITOR_HOTKEY) {
|
25
25
|
DIAGRAM_EDITOR_HOTKEY["RECENTER"] = "RECENTER";
|
@@ -54,7 +54,7 @@ export var DIAGRAM_EDITOR_SIDE_PANEL_TAB;
|
|
54
54
|
(function (DIAGRAM_EDITOR_SIDE_PANEL_TAB) {
|
55
55
|
DIAGRAM_EDITOR_SIDE_PANEL_TAB["ELEMENT"] = "ELEMENT";
|
56
56
|
DIAGRAM_EDITOR_SIDE_PANEL_TAB["VIEW"] = "VIEW";
|
57
|
-
})(DIAGRAM_EDITOR_SIDE_PANEL_TAB || (DIAGRAM_EDITOR_SIDE_PANEL_TAB = {}));
|
57
|
+
})(DIAGRAM_EDITOR_SIDE_PANEL_TAB = DIAGRAM_EDITOR_SIDE_PANEL_TAB || (DIAGRAM_EDITOR_SIDE_PANEL_TAB = {}));
|
58
58
|
export class DiagramEditorClassViewEditorSidePanelState extends DiagramEditorSidePanelState {
|
59
59
|
classEditorState;
|
60
60
|
classView;
|
@@ -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,MAAM,EACN,IAAI,GACL,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAIL,4BAA4B,EAC5B,cAAc,EACd,yBAAyB,EACzB,QAAQ,EACR,WAAW,EACX,yBAAyB,GAC1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,OAAO,EAAE,MAAM,6EAA6E,CAAC;AAGtG,IAAK,qBASJ;AATD,WAAK,qBAAqB;IACxB,8CAAqB,CAAA;IACrB,wDAA+B,CAAA;IAC/B,wDAA+B,CAAA;IAC/B,sDAA6B,CAAA;IAC7B,gEAAuC,CAAA;IACvC,sEAA6C,CAAA;IAC7C,gDAAuB,CAAA;IACvB,0DAAiC,CAAA;AACnC,CAAC,EATI,qBAAqB,KAArB,qBAAqB,QASzB;AAED,MAAM,yBAAyB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC9C,CAAC,qBAAqB,CAAC,QAAQ,CAAC,EAAE,GAAG;IACrC,CAAC,qBAAqB,CAAC,aAAa,CAAC,EAAE,GAAG;IAC1C,CAAC,qBAAqB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AG,KAAK,QAAQ,CAAC,aAAa;YAC5C,wDAAwD;YACxD,oEAAoE;YACpE,0CAA0C;YAC1C,CAAC,CAAC,QAAQ,CAAC,aAAa;gBACtB,CAAC,CAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,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": "
|
3
|
+
"version": "3.0.0",
|
4
4
|
"description": "Legend extension for Diagram DSL",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -43,32 +43,33 @@
|
|
43
43
|
"test:watch": "jest --watch"
|
44
44
|
},
|
45
45
|
"dependencies": {
|
46
|
-
"@finos/legend-application": "
|
47
|
-
"@finos/legend-art": "
|
48
|
-
"@finos/legend-graph": "
|
49
|
-
"@finos/legend-model-storage": "
|
50
|
-
"@finos/legend-shared": "
|
51
|
-
"@finos/legend-studio": "
|
52
|
-
"@types/react": "18.0.
|
53
|
-
"mobx": "6.
|
46
|
+
"@finos/legend-application": "4.0.0",
|
47
|
+
"@finos/legend-art": "2.0.0",
|
48
|
+
"@finos/legend-graph": "8.0.0",
|
49
|
+
"@finos/legend-model-storage": "2.0.0",
|
50
|
+
"@finos/legend-shared": "3.0.0",
|
51
|
+
"@finos/legend-studio": "10.0.0",
|
52
|
+
"@types/react": "18.0.12",
|
53
|
+
"mobx": "6.6.0",
|
54
54
|
"mobx-react-lite": "3.4.0",
|
55
55
|
"react": "18.1.0",
|
56
56
|
"react-dnd": "16.0.1",
|
57
57
|
"react-dom": "18.1.0",
|
58
|
-
"react-resize-detector": "7.
|
58
|
+
"react-resize-detector": "7.1.1",
|
59
59
|
"serializr": "2.0.5"
|
60
60
|
},
|
61
61
|
"devDependencies": {
|
62
|
-
"@finos/legend-dev-utils": "
|
63
|
-
"@
|
62
|
+
"@finos/legend-dev-utils": "2.0.0",
|
63
|
+
"@jest/globals": "28.1.1",
|
64
|
+
"@testing-library/react": "13.3.0",
|
64
65
|
"cross-env": "7.0.3",
|
65
|
-
"eslint": "8.
|
66
|
-
"jest": "28.1.
|
66
|
+
"eslint": "8.17.0",
|
67
|
+
"jest": "28.1.1",
|
67
68
|
"jest-canvas-mock": "2.4.0",
|
68
69
|
"npm-run-all": "4.1.5",
|
69
70
|
"rimraf": "3.0.2",
|
70
|
-
"sass": "1.
|
71
|
-
"typescript": "4.
|
71
|
+
"sass": "1.52.3",
|
72
|
+
"typescript": "4.7.3"
|
72
73
|
},
|
73
74
|
"peerDependencies": {
|
74
75
|
"react": "^18.0.0"
|
@@ -16,19 +16,16 @@
|
|
16
16
|
|
17
17
|
import packageJson from '../package.json';
|
18
18
|
import { AbstractPreset } from '@finos/legend-shared';
|
19
|
-
import { DSLDiagram_PureGraphManagerPlugin } from './graphManager/DSLDiagram_PureGraphManagerPlugin';
|
20
|
-
import { DSLDiagram_PureProtocolProcessorPlugin } from './models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin';
|
21
|
-
import
|
22
|
-
import { DSLDiagram_PureGraphPlugin } from './graph/DSLDiagram_PureGraphPlugin';
|
19
|
+
import { DSLDiagram_PureGraphManagerPlugin } from './graphManager/DSLDiagram_PureGraphManagerPlugin.js';
|
20
|
+
import { DSLDiagram_PureProtocolProcessorPlugin } from './models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.js';
|
21
|
+
import { DSLDiagram_PureGraphPlugin } from './graph/DSLDiagram_PureGraphPlugin.js';
|
23
22
|
|
24
23
|
export class DSLDiagram_GraphPreset extends AbstractPreset {
|
25
24
|
constructor() {
|
26
|
-
super(packageJson.extensions.graphPreset, packageJson.version
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
new DSLDiagram_PureGraphManagerPlugin().install(pluginManager);
|
32
|
-
new DSLDiagram_PureProtocolProcessorPlugin().install(pluginManager);
|
25
|
+
super(packageJson.extensions.graphPreset, packageJson.version, [
|
26
|
+
new DSLDiagram_PureGraphPlugin(),
|
27
|
+
new DSLDiagram_PureGraphManagerPlugin(),
|
28
|
+
new DSLDiagram_PureProtocolProcessorPlugin(),
|
29
|
+
]);
|
33
30
|
}
|
34
31
|
}
|
package/src/DiagramRenderer.ts
CHANGED
@@ -42,17 +42,24 @@ import {
|
|
42
42
|
getRawGenericType,
|
43
43
|
} from '@finos/legend-graph';
|
44
44
|
import { action, makeObservable, observable } from 'mobx';
|
45
|
-
import type { Diagram } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram';
|
46
|
-
import { Rectangle } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle';
|
47
|
-
import { Point } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point';
|
48
|
-
import { PositionedRectangle } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle';
|
49
|
-
import { ClassView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView';
|
50
|
-
import type { PropertyHolderView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView';
|
51
|
-
import { GeneralizationView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView';
|
52
|
-
import { RelationshipView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView';
|
53
|
-
import { PropertyView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView';
|
54
|
-
import {
|
55
|
-
|
45
|
+
import type { Diagram } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.js';
|
46
|
+
import { Rectangle } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle.js';
|
47
|
+
import { Point } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point.js';
|
48
|
+
import { PositionedRectangle } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.js';
|
49
|
+
import { ClassView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.js';
|
50
|
+
import type { PropertyHolderView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView.js';
|
51
|
+
import { GeneralizationView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.js';
|
52
|
+
import { RelationshipView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.js';
|
53
|
+
import { PropertyView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.js';
|
54
|
+
import {
|
55
|
+
boxContains,
|
56
|
+
buildBottomRightCornerBox,
|
57
|
+
getBottomRightCornerPoint,
|
58
|
+
getElementPosition,
|
59
|
+
rotatePointX,
|
60
|
+
rotatePointY,
|
61
|
+
} from './helpers/DSLDiagram_Helper.js';
|
62
|
+
import { AssociationView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.js';
|
56
63
|
import { class_addProperty, class_addSuperType } from '@finos/legend-studio';
|
57
64
|
import {
|
58
65
|
classView_setHideProperties,
|
@@ -78,7 +85,7 @@ import {
|
|
78
85
|
relationshipView_changePoint,
|
79
86
|
relationshipView_simplifyPath,
|
80
87
|
relationshipView_setPath,
|
81
|
-
} from './stores/studio/DSLDiagram_GraphModifierHelper';
|
88
|
+
} from './stores/studio/DSLDiagram_GraphModifierHelper.js';
|
82
89
|
|
83
90
|
export enum DIAGRAM_INTERACTION_MODE {
|
84
91
|
LAYOUT,
|
@@ -766,8 +773,8 @@ export class DiagramRenderer {
|
|
766
773
|
);
|
767
774
|
minX = Math.min(minX, box.position.x);
|
768
775
|
minY = Math.min(minY, box.position.y);
|
769
|
-
maxX = Math.max(maxX, box
|
770
|
-
maxY = Math.max(maxY, box
|
776
|
+
maxX = Math.max(maxX, getBottomRightCornerPoint(box).x);
|
777
|
+
maxY = Math.max(maxY, getBottomRightCornerPoint(box).y);
|
771
778
|
}
|
772
779
|
// if (relationshipView.from.name) {
|
773
780
|
// var box = this.displayText(fullPath[1], fullPath[0], relationshipView.from.classView, relationshipView.property, this.ctx);
|
@@ -2014,34 +2021,34 @@ export class DiagramRenderer {
|
|
2014
2021
|
this.ctx.beginPath();
|
2015
2022
|
this.ctx.moveTo(
|
2016
2023
|
resultX +
|
2017
|
-
(this.screenOffset.x + (this.triangle[0] as Point
|
2024
|
+
(this.screenOffset.x + rotatePointX(this.triangle[0] as Point, angle)) *
|
2018
2025
|
this.zoom,
|
2019
2026
|
resultY +
|
2020
|
-
(this.screenOffset.y + (this.triangle[0] as Point
|
2027
|
+
(this.screenOffset.y + rotatePointY(this.triangle[0] as Point, angle)) *
|
2021
2028
|
this.zoom,
|
2022
2029
|
);
|
2023
2030
|
this.ctx.lineTo(
|
2024
2031
|
resultX +
|
2025
|
-
(this.screenOffset.x + (this.triangle[1] as Point
|
2032
|
+
(this.screenOffset.x + rotatePointX(this.triangle[1] as Point, angle)) *
|
2026
2033
|
this.zoom,
|
2027
2034
|
resultY +
|
2028
|
-
(this.screenOffset.y + (this.triangle[1] as Point
|
2035
|
+
(this.screenOffset.y + rotatePointY(this.triangle[1] as Point, angle)) *
|
2029
2036
|
this.zoom,
|
2030
2037
|
);
|
2031
2038
|
this.ctx.lineTo(
|
2032
2039
|
resultX +
|
2033
|
-
(this.screenOffset.x + (this.triangle[2] as Point
|
2040
|
+
(this.screenOffset.x + rotatePointX(this.triangle[2] as Point, angle)) *
|
2034
2041
|
this.zoom,
|
2035
2042
|
resultY +
|
2036
|
-
(this.screenOffset.y + (this.triangle[2] as Point
|
2043
|
+
(this.screenOffset.y + rotatePointY(this.triangle[2] as Point, angle)) *
|
2037
2044
|
this.zoom,
|
2038
2045
|
);
|
2039
2046
|
this.ctx.lineTo(
|
2040
2047
|
resultX +
|
2041
|
-
(this.screenOffset.x + (this.triangle[0] as Point
|
2048
|
+
(this.screenOffset.x + rotatePointX(this.triangle[0] as Point, angle)) *
|
2042
2049
|
this.zoom,
|
2043
2050
|
resultY +
|
2044
|
-
(this.screenOffset.y + (this.triangle[0] as Point
|
2051
|
+
(this.screenOffset.y + rotatePointY(this.triangle[0] as Point, angle)) *
|
2045
2052
|
this.zoom,
|
2046
2053
|
);
|
2047
2054
|
this.ctx.fillStyle = this.generalizationViewInheritanceTriangeFillColor;
|
@@ -2637,12 +2644,10 @@ export class DiagramRenderer {
|
|
2637
2644
|
for (let i = this.diagram.classViews.length - 1; i >= 0; i--) {
|
2638
2645
|
const targetClassView = this.diagram.classViews[i] as ClassView;
|
2639
2646
|
if (
|
2640
|
-
targetClassView
|
2641
|
-
.
|
2642
|
-
.
|
2643
|
-
|
2644
|
-
eventPointInModelCoordinate.y,
|
2645
|
-
)
|
2647
|
+
buildBottomRightCornerBox(targetClassView).contains(
|
2648
|
+
eventPointInModelCoordinate.x,
|
2649
|
+
eventPointInModelCoordinate.y,
|
2650
|
+
)
|
2646
2651
|
) {
|
2647
2652
|
this.setSelectedClasses([]);
|
2648
2653
|
this.setSelectedClassCorner(this.diagram.classViews[i]);
|
@@ -3004,8 +3009,8 @@ export class DiagramRenderer {
|
|
3004
3009
|
this.setSelectedClasses([]);
|
3005
3010
|
for (const classView of this.diagram.classViews) {
|
3006
3011
|
if (
|
3007
|
-
this.selection
|
3008
|
-
|
3012
|
+
boxContains(this.selection, classView) ||
|
3013
|
+
boxContains(classView, this.selection)
|
3009
3014
|
) {
|
3010
3015
|
this.setSelectedClasses([...this.selectedClasses, classView]);
|
3011
3016
|
}
|
@@ -3065,12 +3070,10 @@ export class DiagramRenderer {
|
|
3065
3070
|
|
3066
3071
|
// Check hover class corner
|
3067
3072
|
if (
|
3068
|
-
classView
|
3069
|
-
.
|
3070
|
-
.
|
3071
|
-
|
3072
|
-
eventPointInModelCoordinate.y,
|
3073
|
-
)
|
3073
|
+
buildBottomRightCornerBox(classView).contains(
|
3074
|
+
eventPointInModelCoordinate.x,
|
3075
|
+
eventPointInModelCoordinate.y,
|
3076
|
+
)
|
3074
3077
|
) {
|
3075
3078
|
this.setMouseOverClassCorner(classView);
|
3076
3079
|
}
|