@finos/legend-extension-dsl-diagram 4.1.5 → 5.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 +1 -1
- package/lib/DSLDiagram_Extension.d.ts.map +1 -1
- package/lib/DSLDiagram_Extension.js +3 -3
- 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 +10 -10
- package/lib/DiagramRenderer.js.map +1 -1
- package/lib/components/studio/ClassDiagramPreview.js +1 -1
- package/lib/components/studio/ClassDiagramPreview.js.map +1 -1
- package/lib/components/studio/{DSLDiagram_LegendStudioPlugin.d.ts → DSLDiagram_LegendStudioApplicationPlugin.d.ts} +3 -3
- package/lib/components/studio/DSLDiagram_LegendStudioApplicationPlugin.d.ts.map +1 -0
- package/lib/components/studio/{DSLDiagram_LegendStudioPlugin.js → DSLDiagram_LegendStudioApplicationPlugin.js} +5 -5
- package/lib/components/studio/DSLDiagram_LegendStudioApplicationPlugin.js.map +1 -0
- package/lib/components/studio/{DSLDiagram_LegendStudioPlugin_Extension.d.ts → DSLDiagram_LegendStudioApplicationPlugin_Extension.d.ts} +4 -4
- package/lib/components/studio/DSLDiagram_LegendStudioApplicationPlugin_Extension.d.ts.map +1 -0
- package/lib/components/studio/{DSLDiagram_LegendStudioPlugin_Extension.js → DSLDiagram_LegendStudioApplicationPlugin_Extension.js} +1 -1
- package/lib/components/studio/DSLDiagram_LegendStudioApplicationPlugin_Extension.js.map +1 -0
- package/lib/components/studio/DiagramEditor.d.ts.map +1 -1
- package/lib/components/studio/DiagramEditor.js +12 -11
- package/lib/components/studio/DiagramEditor.js.map +1 -1
- package/lib/components/studio/InheritanceDiagramRenderer.js +2 -2
- package/lib/components/studio/InheritanceDiagramRenderer.js.map +1 -1
- package/lib/{models/DSLDiagram_ModelUtils.d.ts → graph/DSLDiagram_HashUtils.d.ts} +1 -1
- package/lib/graph/DSLDiagram_HashUtils.d.ts.map +1 -0
- package/lib/{models/DSLDiagram_ModelUtils.js → graph/DSLDiagram_HashUtils.js} +1 -1
- package/lib/graph/DSLDiagram_HashUtils.js.map +1 -0
- package/lib/graph/DSLDiagram_PureGraphPlugin.js +2 -2
- package/lib/graph/DSLDiagram_PureGraphPlugin.js.map +1 -1
- package/lib/{helpers → graph/helpers}/DSLDiagram_Helper.d.ts +5 -5
- package/lib/graph/helpers/DSLDiagram_Helper.d.ts.map +1 -0
- package/lib/{helpers → graph/helpers}/DSLDiagram_Helper.js +4 -4
- package/lib/graph/helpers/DSLDiagram_Helper.js.map +1 -0
- package/lib/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/DSLDiagram_AssociationView.d.ts +0 -0
- package/lib/graph/metamodel/pure/packageableElements/diagram/DSLDiagram_AssociationView.d.ts.map +1 -0
- package/lib/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/DSLDiagram_AssociationView.js +1 -1
- package/lib/graph/metamodel/pure/packageableElements/diagram/DSLDiagram_AssociationView.js.map +1 -0
- package/lib/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/DSLDiagram_ClassView.d.ts +0 -0
- package/lib/graph/metamodel/pure/packageableElements/diagram/DSLDiagram_ClassView.d.ts.map +1 -0
- package/lib/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/DSLDiagram_ClassView.js +1 -1
- package/lib/graph/metamodel/pure/packageableElements/diagram/DSLDiagram_ClassView.js.map +1 -0
- package/lib/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.d.ts +0 -0
- package/lib/graph/metamodel/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.d.ts.map +1 -0
- package/lib/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.js +0 -0
- package/lib/graph/metamodel/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.js.map +1 -0
- package/lib/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/DSLDiagram_Diagram.d.ts +0 -0
- package/lib/graph/metamodel/pure/packageableElements/diagram/DSLDiagram_Diagram.d.ts.map +1 -0
- package/lib/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/DSLDiagram_Diagram.js +1 -1
- package/lib/graph/metamodel/pure/packageableElements/diagram/DSLDiagram_Diagram.js.map +1 -0
- package/lib/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.d.ts +0 -0
- package/lib/graph/metamodel/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.d.ts.map +1 -0
- package/lib/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.js +1 -1
- package/lib/graph/metamodel/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.js.map +1 -0
- package/lib/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView.d.ts +0 -0
- package/lib/graph/metamodel/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView.d.ts.map +1 -0
- package/lib/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView.js +1 -1
- package/lib/graph/metamodel/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView.js.map +1 -0
- package/lib/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/DSLDiagram_PropertyView.d.ts +0 -0
- package/lib/graph/metamodel/pure/packageableElements/diagram/DSLDiagram_PropertyView.d.ts.map +1 -0
- package/lib/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/DSLDiagram_PropertyView.js +1 -1
- package/lib/graph/metamodel/pure/packageableElements/diagram/DSLDiagram_PropertyView.js.map +1 -0
- package/lib/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/DSLDiagram_RelationshipView.d.ts +0 -0
- package/lib/graph/metamodel/pure/packageableElements/diagram/DSLDiagram_RelationshipView.d.ts.map +1 -0
- package/lib/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/DSLDiagram_RelationshipView.js +1 -1
- package/lib/graph/metamodel/pure/packageableElements/diagram/DSLDiagram_RelationshipView.js.map +1 -0
- package/lib/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/DSLDiagram_RelationshipViewEnd.d.ts +0 -0
- package/lib/graph/metamodel/pure/packageableElements/diagram/DSLDiagram_RelationshipViewEnd.d.ts.map +1 -0
- package/lib/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/DSLDiagram_RelationshipViewEnd.js +0 -0
- package/lib/graph/metamodel/pure/packageableElements/diagram/DSLDiagram_RelationshipViewEnd.js.map +1 -0
- package/lib/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/geometry/DSLDiagram_Point.d.ts +0 -0
- package/lib/graph/metamodel/pure/packageableElements/diagram/geometry/DSLDiagram_Point.d.ts.map +1 -0
- package/lib/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/geometry/DSLDiagram_Point.js +1 -1
- package/lib/graph/metamodel/pure/packageableElements/diagram/geometry/DSLDiagram_Point.js.map +1 -0
- package/lib/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.d.ts +0 -0
- package/lib/graph/metamodel/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.d.ts.map +1 -0
- package/lib/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.js +1 -1
- package/lib/graph/metamodel/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.js.map +1 -0
- package/lib/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle.d.ts +0 -0
- package/lib/graph/metamodel/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle.d.ts.map +1 -0
- package/lib/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle.js +1 -1
- package/lib/graph/metamodel/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle.js.map +1 -0
- 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 +1 -1
- 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/{models/protocols → graphManager/protocol}/pure/DSLDiagram_PureProtocolProcessorPlugin.d.ts +0 -0
- package/lib/graphManager/protocol/pure/DSLDiagram_PureProtocolProcessorPlugin.d.ts.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/DSLDiagram_PureProtocolProcessorPlugin.js +2 -2
- package/lib/graphManager/protocol/pure/DSLDiagram_PureProtocolProcessorPlugin.js.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_ClassView.d.ts +0 -0
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_ClassView.d.ts.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_ClassView.js +1 -1
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_ClassView.js.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_Diagram.d.ts +0 -0
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_Diagram.d.ts.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_Diagram.js +1 -1
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_Diagram.js.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_GeneralizationView.d.ts +0 -0
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_GeneralizationView.d.ts.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_GeneralizationView.js +1 -1
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_GeneralizationView.js.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyHolderView.d.ts +0 -0
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyHolderView.d.ts.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyHolderView.js +1 -1
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyHolderView.js.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyView.d.ts +0 -0
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyView.d.ts.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyView.js +1 -1
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyView.js.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_RelationshipView.d.ts +0 -0
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_RelationshipView.d.ts.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_RelationshipView.js +1 -1
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_RelationshipView.js.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Line.d.ts +0 -0
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Line.d.ts.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Line.js +0 -0
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Line.js.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Point.d.ts +0 -0
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Point.d.ts.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Point.js +1 -1
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Point.js.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_PositionedRectangle.d.ts +0 -0
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_PositionedRectangle.d.ts.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_PositionedRectangle.js +1 -1
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_PositionedRectangle.js.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Rectangle.d.ts +0 -0
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Rectangle.d.ts.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Rectangle.js +1 -1
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Rectangle.js.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.d.ts +4 -4
- package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.d.ts.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.js +7 -7
- package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.js.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.d.ts +1 -1
- package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.d.ts.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.js +0 -0
- package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.js.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/transformation/pureProtocol/V1_DSLDiagram_ProtocolHelper.d.ts +0 -0
- package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSLDiagram_ProtocolHelper.d.ts.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/transformation/pureProtocol/V1_DSLDiagram_ProtocolHelper.js +0 -0
- package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSLDiagram_ProtocolHelper.js.map +1 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +14 -14
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +14 -14
- package/lib/index.js.map +1 -1
- package/lib/package.json +12 -12
- 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 +1 -1
- 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 +2 -2
- package/lib/stores/studio/DiagramEditorState.js.map +1 -1
- package/package.json +17 -17
- package/src/DSLDiagram_Extension.ts +3 -3
- package/src/DiagramRenderer.ts +15 -12
- package/src/components/studio/ClassDiagramPreview.tsx +1 -1
- package/src/components/studio/{DSLDiagram_LegendStudioPlugin.tsx → DSLDiagram_LegendStudioApplicationPlugin.tsx} +11 -11
- package/src/components/studio/{DSLDiagram_LegendStudioPlugin_Extension.tsx → DSLDiagram_LegendStudioApplicationPlugin_Extension.tsx} +4 -4
- package/src/components/studio/DiagramEditor.tsx +13 -14
- package/src/components/studio/InheritanceDiagramRenderer.ts +2 -2
- package/src/{models/DSLDiagram_ModelUtils.ts → graph/DSLDiagram_HashUtils.ts} +0 -0
- package/src/graph/DSLDiagram_PureGraphPlugin.ts +2 -2
- package/src/{helpers → graph/helpers}/DSLDiagram_Helper.ts +6 -6
- package/src/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/DSLDiagram_AssociationView.ts +1 -1
- package/src/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/DSLDiagram_ClassView.ts +1 -1
- package/src/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.ts +0 -0
- package/src/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/DSLDiagram_Diagram.ts +1 -1
- package/src/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.ts +1 -1
- package/src/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView.ts +1 -1
- package/src/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/DSLDiagram_PropertyView.ts +1 -1
- package/src/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/DSLDiagram_RelationshipView.ts +1 -1
- package/src/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/DSLDiagram_RelationshipViewEnd.ts +0 -0
- package/src/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/geometry/DSLDiagram_Point.ts +1 -1
- package/src/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.ts +1 -1
- package/src/{models/metamodels → graph/metamodel}/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle.ts +1 -1
- package/src/graphManager/DSLDiagram_GraphManagerHelper.ts +1 -1
- package/src/graphManager/DSLDiagram_PureGraphManagerPlugin.ts +1 -1
- package/src/graphManager/action/changeDetection/DSLDiagram_ObserverHelper.ts +9 -9
- package/src/{models/protocols → graphManager/protocol}/pure/DSLDiagram_PureProtocolProcessorPlugin.ts +2 -2
- package/src/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_ClassView.ts +1 -1
- package/src/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_Diagram.ts +1 -1
- package/src/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_GeneralizationView.ts +1 -1
- package/src/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyHolderView.ts +1 -1
- package/src/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyView.ts +1 -1
- package/src/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_RelationshipView.ts +1 -1
- package/src/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Line.ts +0 -0
- package/src/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Point.ts +1 -1
- package/src/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_PositionedRectangle.ts +1 -1
- package/src/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Rectangle.ts +1 -1
- package/src/{models/protocols → graphManager/protocol}/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.ts +8 -8
- package/src/{models/protocols → graphManager/protocol}/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.ts +5 -5
- package/src/{models/protocols → graphManager/protocol}/pure/v1/transformation/pureProtocol/V1_DSLDiagram_ProtocolHelper.ts +0 -0
- package/src/index.ts +14 -14
- package/src/stores/studio/DSLDiagram_GraphModifierHelper.ts +11 -11
- package/src/stores/studio/DiagramEditorState.ts +5 -5
- package/tsconfig.json +30 -30
- package/lib/components/studio/DSLDiagram_LegendStudioPlugin.d.ts.map +0 -1
- package/lib/components/studio/DSLDiagram_LegendStudioPlugin.js.map +0 -1
- package/lib/components/studio/DSLDiagram_LegendStudioPlugin_Extension.d.ts.map +0 -1
- package/lib/components/studio/DSLDiagram_LegendStudioPlugin_Extension.js.map +0 -1
- package/lib/helpers/DSLDiagram_Helper.d.ts.map +0 -1
- package/lib/helpers/DSLDiagram_Helper.js.map +0 -1
- package/lib/models/DSLDiagram_ModelUtils.d.ts.map +0 -1
- package/lib/models/DSLDiagram_ModelUtils.js.map +0 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.d.ts.map +0 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.js.map +0 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.d.ts.map +0 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.js.map +0 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.d.ts.map +0 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.js.map +0 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.d.ts.map +0 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.js.map +0 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.d.ts.map +0 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.js.map +0 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView.d.ts.map +0 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView.js.map +0 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.d.ts.map +0 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.js.map +0 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.d.ts.map +0 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.js.map +0 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipViewEnd.d.ts.map +0 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipViewEnd.js.map +0 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point.d.ts.map +0 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point.js.map +0 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.d.ts.map +0 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.js.map +0 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle.d.ts.map +0 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle.js.map +0 -1
- package/lib/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.d.ts.map +0 -1
- package/lib/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.js.map +0 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_ClassView.d.ts.map +0 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_ClassView.js.map +0 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_Diagram.d.ts.map +0 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_Diagram.js.map +0 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_GeneralizationView.d.ts.map +0 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_GeneralizationView.js.map +0 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyHolderView.d.ts.map +0 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyHolderView.js.map +0 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyView.d.ts.map +0 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyView.js.map +0 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_RelationshipView.d.ts.map +0 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_RelationshipView.js.map +0 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Line.d.ts.map +0 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Line.js.map +0 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Point.d.ts.map +0 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Point.js.map +0 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_PositionedRectangle.d.ts.map +0 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_PositionedRectangle.js.map +0 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Rectangle.d.ts.map +0 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Rectangle.js.map +0 -1
- package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.d.ts.map +0 -1
- package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.js.map +0 -1
- package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.d.ts.map +0 -1
- package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.js.map +0 -1
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDiagram_ProtocolHelper.d.ts.map +0 -1
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDiagram_ProtocolHelper.js.map +0 -1
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
import packageJson from '../../../package.json';
|
18
18
|
import {
|
19
|
-
|
19
|
+
LegendStudioApplicationPlugin,
|
20
20
|
type NewElementFromStateCreator,
|
21
21
|
type EditorStore,
|
22
22
|
type ElementEditorState,
|
@@ -25,7 +25,7 @@ import {
|
|
25
25
|
type ElementProjectExplorerDnDTypeGetter,
|
26
26
|
type ElementIconGetter,
|
27
27
|
type ElementEditorRenderer,
|
28
|
-
type
|
28
|
+
type DSL_LegendStudioApplicationPlugin_Extension,
|
29
29
|
type NewElementState,
|
30
30
|
type ElementEditorPostDeleteAction,
|
31
31
|
type ElementEditorPostRenameAction,
|
@@ -35,10 +35,10 @@ import {
|
|
35
35
|
type PureGrammarParserKeywordSuggestionGetter,
|
36
36
|
type PureGrammarTextSuggestion,
|
37
37
|
type PureGrammarParserElementSnippetSuggestionsGetter,
|
38
|
-
} from '@finos/legend-studio';
|
38
|
+
} from '@finos/legend-application-studio';
|
39
39
|
import { ShapesIcon } from '@finos/legend-art';
|
40
40
|
import type { Class, PackageableElement } from '@finos/legend-graph';
|
41
|
-
import { Diagram } from '../../
|
41
|
+
import { Diagram } from '../../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_Diagram.js';
|
42
42
|
import { DiagramEditorState } from '../../stores/studio/DiagramEditorState.js';
|
43
43
|
import { DiagramEditor } from './DiagramEditor.js';
|
44
44
|
import { ClassDiagramPreview } from './ClassDiagramPreview.js';
|
@@ -53,18 +53,18 @@ import {
|
|
53
53
|
getDiagramSnippetWithOneClassView,
|
54
54
|
getDiagramSnippetWithPropertyView,
|
55
55
|
} from './DSLDiagram_CodeSnippets.js';
|
56
|
-
import type {
|
56
|
+
import type { DocumentationEntry } from '@finos/legend-application';
|
57
57
|
import { DSL_DIAGRAM_LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../stores/studio/DSLDiagram_LegendStudioApplicationNavigationContext.js';
|
58
58
|
|
59
59
|
const DIAGRAM_ELEMENT_TYPE = 'DIAGRAM';
|
60
60
|
const DIAGRAM_ELEMENT_PROJECT_EXPLORER_DND_TYPE = 'PROJECT_EXPLORER_DIAGRAM';
|
61
61
|
|
62
|
-
export class
|
63
|
-
extends
|
64
|
-
implements
|
62
|
+
export class DSLDiagram_LegendStudioApplicationPlugin
|
63
|
+
extends LegendStudioApplicationPlugin
|
64
|
+
implements DSL_LegendStudioApplicationPlugin_Extension
|
65
65
|
{
|
66
66
|
constructor() {
|
67
|
-
super(packageJson.extensions.
|
67
|
+
super(packageJson.extensions.applicationStudioPlugin, packageJson.version);
|
68
68
|
}
|
69
69
|
|
70
70
|
override getExtraRequiredDocumentationKeys(): string[] {
|
@@ -201,7 +201,7 @@ export class DSLDiagram_LegendStudioPlugin
|
|
201
201
|
editorStore: EditorStore,
|
202
202
|
parserKeyword: string,
|
203
203
|
elementKeyword: string,
|
204
|
-
):
|
204
|
+
): DocumentationEntry | undefined => {
|
205
205
|
if (parserKeyword === PURE_GRAMMAR_DIAGRAM_PARSER_NAME) {
|
206
206
|
if (elementKeyword === PURE_GRAMMAR_DIAGRAM_ELEMENT_TYPE_LABEL) {
|
207
207
|
return editorStore.applicationStore.documentationService.getDocEntry(
|
@@ -219,7 +219,7 @@ export class DSLDiagram_LegendStudioPlugin
|
|
219
219
|
(
|
220
220
|
editorStore: EditorStore,
|
221
221
|
parserKeyword: string,
|
222
|
-
):
|
222
|
+
): DocumentationEntry | undefined => {
|
223
223
|
if (parserKeyword === PURE_GRAMMAR_DIAGRAM_PARSER_NAME) {
|
224
224
|
return editorStore.applicationStore.documentationService.getDocEntry(
|
225
225
|
DSL_DIAGRAM_LEGEND_STUDIO_DOCUMENTATION_KEY.GRAMMAR_PARSER,
|
@@ -14,8 +14,8 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
|
17
|
-
import type {
|
18
|
-
import type { ClassView } from '../../
|
17
|
+
import type { DSL_LegendStudioApplicationPlugin_Extension } from '@finos/legend-application-studio';
|
18
|
+
import type { ClassView } from '../../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_ClassView.js';
|
19
19
|
import type { DiagramEditorState } from '../../stores/studio/DiagramEditorState.js';
|
20
20
|
|
21
21
|
export type ClassViewContextMenuItemRendererConfiguration = {
|
@@ -26,8 +26,8 @@ export type ClassViewContextMenuItemRendererConfiguration = {
|
|
26
26
|
) => React.ReactNode | undefined;
|
27
27
|
};
|
28
28
|
|
29
|
-
export interface
|
30
|
-
extends
|
29
|
+
export interface DSLDiagram_LegendStudioApplicationPlugin_Extension
|
30
|
+
extends DSL_LegendStudioApplicationPlugin_Extension {
|
31
31
|
/**
|
32
32
|
* Get the list of items to be rendered in the context menu of a class view.
|
33
33
|
*/
|
@@ -113,10 +113,10 @@ import {
|
|
113
113
|
property_setName,
|
114
114
|
property_setGenericType,
|
115
115
|
property_setMultiplicity,
|
116
|
-
} from '@finos/legend-studio';
|
117
|
-
import { cleanUpDeadReferencesInDiagram } from '../../helpers/DSLDiagram_Helper.js';
|
118
|
-
import { Point } from '../../
|
119
|
-
import type {
|
116
|
+
} from '@finos/legend-application-studio';
|
117
|
+
import { cleanUpDeadReferencesInDiagram } from '../../graph/helpers/DSLDiagram_Helper.js';
|
118
|
+
import { Point } from '../../graph/metamodel/pure/packageableElements/diagram/geometry/DSLDiagram_Point.js';
|
119
|
+
import type { DSLDiagram_LegendStudioApplicationPlugin_Extension } from './DSLDiagram_LegendStudioApplicationPlugin_Extension.js';
|
120
120
|
import {
|
121
121
|
classView_setHideProperties,
|
122
122
|
classView_setHideStereotypes,
|
@@ -136,11 +136,11 @@ const DiagramEditorContextMenu = observer(
|
|
136
136
|
const extraClassViewContextMenuItems =
|
137
137
|
diagramEditorState.contextMenuClassView
|
138
138
|
? editorStore.pluginManager
|
139
|
-
.
|
139
|
+
.getApplicationPlugins()
|
140
140
|
.flatMap(
|
141
141
|
(plugin) =>
|
142
142
|
(
|
143
|
-
plugin as
|
143
|
+
plugin as DSLDiagram_LegendStudioApplicationPlugin_Extension
|
144
144
|
).getExtraClassViewContextMenuItemRendererConfigurations?.() ??
|
145
145
|
[],
|
146
146
|
)
|
@@ -694,11 +694,10 @@ const DiagramEditorOverlay = observer(
|
|
694
694
|
{
|
695
695
|
classes: ['diagram-editor__overlay__panel'],
|
696
696
|
onStopResize: resizeSidePanel,
|
697
|
+
size: diagramEditorState.sidePanelDisplayState.size,
|
697
698
|
},
|
698
699
|
)}
|
699
|
-
flex={0}
|
700
700
|
direction={-1}
|
701
|
-
size={diagramEditorState.sidePanelDisplayState.size}
|
702
701
|
>
|
703
702
|
<div className="panel diagram-editor__side-panel">
|
704
703
|
{sidePanelState instanceof
|
@@ -717,7 +716,7 @@ const DiagramEditorOverlay = observer(
|
|
717
716
|
},
|
718
717
|
);
|
719
718
|
|
720
|
-
const
|
719
|
+
const DiagramEditorInlineClassRenamerContent = observer(
|
721
720
|
(props: {
|
722
721
|
inlineClassRenamerState: DiagramEditorInlineClassRenamerState;
|
723
722
|
}) => {
|
@@ -824,7 +823,7 @@ const DiagramEditorInlineClassRenamer = observer(
|
|
824
823
|
>
|
825
824
|
<div className="diagram-editor__inline-class-creator__container">
|
826
825
|
{inlineClassRenamerState && (
|
827
|
-
<
|
826
|
+
<DiagramEditorInlineClassRenamerContent
|
828
827
|
inlineClassRenamerState={inlineClassRenamerState}
|
829
828
|
/>
|
830
829
|
)}
|
@@ -834,7 +833,7 @@ const DiagramEditorInlineClassRenamer = observer(
|
|
834
833
|
},
|
835
834
|
);
|
836
835
|
|
837
|
-
const
|
836
|
+
const DiagramEditorInlineClassCreatorContent = observer(
|
838
837
|
(props: {
|
839
838
|
inlineClassCreatorState: DiagramEditorInlineClassCreatorState;
|
840
839
|
}) => {
|
@@ -954,7 +953,7 @@ const DiagramEditorInlineClassCreator = observer(
|
|
954
953
|
>
|
955
954
|
<div className="diagram-editor__inline-class-creator__container">
|
956
955
|
{inlineClassCreatorState && (
|
957
|
-
<
|
956
|
+
<DiagramEditorInlineClassCreatorContent
|
958
957
|
inlineClassCreatorState={inlineClassCreatorState}
|
959
958
|
/>
|
960
959
|
)}
|
@@ -1029,7 +1028,7 @@ const DiagramEditorInlinePropertyMultiplicityEditor = observer(
|
|
1029
1028
|
},
|
1030
1029
|
);
|
1031
1030
|
|
1032
|
-
const
|
1031
|
+
const DiagramEditorInlinePropertyEditorContent = observer(
|
1033
1032
|
(props: {
|
1034
1033
|
inlinePropertyEditorState: DiagramEditorInlinePropertyEditorState;
|
1035
1034
|
}) => {
|
@@ -1158,7 +1157,7 @@ const DiagramEditorInlinePropertyEditor = observer(
|
|
1158
1157
|
>
|
1159
1158
|
<div className="diagram-editor__inline-property-editor__container">
|
1160
1159
|
{inlinePropertyEditorState && (
|
1161
|
-
<
|
1160
|
+
<DiagramEditorInlinePropertyEditorContent
|
1162
1161
|
inlinePropertyEditorState={inlinePropertyEditorState}
|
1163
1162
|
/>
|
1164
1163
|
)}
|
@@ -20,8 +20,8 @@ import {
|
|
20
20
|
type Class,
|
21
21
|
PackageableElementExplicitReference,
|
22
22
|
} from '@finos/legend-graph';
|
23
|
-
import { Diagram } from '../../
|
24
|
-
import { ClassView } from '../../
|
23
|
+
import { Diagram } from '../../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_Diagram.js';
|
24
|
+
import { ClassView } from '../../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_ClassView.js';
|
25
25
|
|
26
26
|
export class InheritanceDiagramRenderer extends DiagramRenderer {
|
27
27
|
constructor(div: HTMLDivElement, _class: Class) {
|
File without changes
|
@@ -22,8 +22,8 @@ import {
|
|
22
22
|
type PackageableElement,
|
23
23
|
type PureModel,
|
24
24
|
} from '@finos/legend-graph';
|
25
|
-
import { Diagram } from '../
|
26
|
-
import { cleanUpDeadReferencesInDiagram } from '../helpers/DSLDiagram_Helper.js';
|
25
|
+
import { Diagram } from '../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_Diagram.js';
|
26
|
+
import { cleanUpDeadReferencesInDiagram } from '../graph/helpers/DSLDiagram_Helper.js';
|
27
27
|
|
28
28
|
export class DSLDiagram_PureGraphPlugin extends PureGraphPlugin {
|
29
29
|
constructor() {
|
@@ -14,18 +14,18 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
|
17
|
-
import { RelationshipView } from '../
|
18
|
-
import { Point } from '../
|
17
|
+
import { RelationshipView } from '../metamodel/pure/packageableElements/diagram/DSLDiagram_RelationshipView.js';
|
18
|
+
import { Point } from '../metamodel/pure/packageableElements/diagram/geometry/DSLDiagram_Point.js';
|
19
19
|
import {
|
20
20
|
type PureModel,
|
21
21
|
Class,
|
22
22
|
getAllOwnClassProperties,
|
23
23
|
} from '@finos/legend-graph';
|
24
24
|
import { deleteEntry } from '@finos/legend-shared';
|
25
|
-
import type { ClassView } from '../
|
26
|
-
import type { Diagram } from '../
|
27
|
-
import { PositionedRectangle } from '../
|
28
|
-
import { Rectangle } from '../
|
25
|
+
import type { ClassView } from '../metamodel/pure/packageableElements/diagram/DSLDiagram_ClassView.js';
|
26
|
+
import type { Diagram } from '../metamodel/pure/packageableElements/diagram/DSLDiagram_Diagram.js';
|
27
|
+
import { PositionedRectangle } from '../metamodel/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.js';
|
28
|
+
import { Rectangle } from '../metamodel/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle.js';
|
29
29
|
|
30
30
|
export class Vector {
|
31
31
|
readonly x: number;
|
@@ -18,7 +18,7 @@ import { hashArray, type Hashable } from '@finos/legend-shared';
|
|
18
18
|
import { PropertyHolderView } from './DSLDiagram_PropertyHolderView.js';
|
19
19
|
import type { ClassView } from './DSLDiagram_ClassView.js';
|
20
20
|
import type { Diagram } from './DSLDiagram_Diagram.js';
|
21
|
-
import { DIAGRAM_HASH_STRUCTURE } from '../../../../
|
21
|
+
import { DIAGRAM_HASH_STRUCTURE } from '../../../../DSLDiagram_HashUtils.js';
|
22
22
|
import type {
|
23
23
|
Association,
|
24
24
|
PackageableElementReference,
|
@@ -19,7 +19,7 @@ import { PositionedRectangle } from './geometry/DSLDiagram_PositionedRectangle.j
|
|
19
19
|
import { Rectangle } from './geometry/DSLDiagram_Rectangle.js';
|
20
20
|
import { Point } from './geometry/DSLDiagram_Point.js';
|
21
21
|
import type { Diagram } from './DSLDiagram_Diagram.js';
|
22
|
-
import { DIAGRAM_HASH_STRUCTURE } from '../../../../
|
22
|
+
import { DIAGRAM_HASH_STRUCTURE } from '../../../../DSLDiagram_HashUtils.js';
|
23
23
|
import type { Class, PackageableElementReference } from '@finos/legend-graph';
|
24
24
|
|
25
25
|
export class ClassView extends PositionedRectangle implements Hashable {
|
File without changes
|
@@ -23,7 +23,7 @@ import {
|
|
23
23
|
type PackageableElementVisitor,
|
24
24
|
PackageableElement,
|
25
25
|
} from '@finos/legend-graph';
|
26
|
-
import { DIAGRAM_HASH_STRUCTURE } from '../../../../
|
26
|
+
import { DIAGRAM_HASH_STRUCTURE } from '../../../../DSLDiagram_HashUtils.js';
|
27
27
|
|
28
28
|
export class Diagram extends PackageableElement implements Hashable {
|
29
29
|
classViews: ClassView[] = [];
|
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
import { hashArray, type Hashable } from '@finos/legend-shared';
|
18
18
|
import { RelationshipView } from './DSLDiagram_RelationshipView.js';
|
19
|
-
import { DIAGRAM_HASH_STRUCTURE } from '../../../../
|
19
|
+
import { DIAGRAM_HASH_STRUCTURE } from '../../../../DSLDiagram_HashUtils.js';
|
20
20
|
|
21
21
|
export class GeneralizationView extends RelationshipView implements Hashable {
|
22
22
|
override get hashCode(): string {
|
@@ -19,7 +19,7 @@ import { RelationshipView } from './DSLDiagram_RelationshipView.js';
|
|
19
19
|
import type { ClassView } from './DSLDiagram_ClassView.js';
|
20
20
|
import type { Diagram } from './DSLDiagram_Diagram.js';
|
21
21
|
import type { PropertyReference } from '@finos/legend-graph';
|
22
|
-
import { DIAGRAM_HASH_STRUCTURE } from '../../../../
|
22
|
+
import { DIAGRAM_HASH_STRUCTURE } from '../../../../DSLDiagram_HashUtils.js';
|
23
23
|
|
24
24
|
export class PropertyHolderView extends RelationshipView implements Hashable {
|
25
25
|
property: PropertyReference;
|
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
import { hashArray, type Hashable } from '@finos/legend-shared';
|
18
18
|
import { PropertyHolderView } from './DSLDiagram_PropertyHolderView.js';
|
19
|
-
import { DIAGRAM_HASH_STRUCTURE } from '../../../../
|
19
|
+
import { DIAGRAM_HASH_STRUCTURE } from '../../../../DSLDiagram_HashUtils.js';
|
20
20
|
|
21
21
|
export class PropertyView extends PropertyHolderView implements Hashable {
|
22
22
|
override get hashCode(): string {
|
@@ -20,7 +20,7 @@ import { Point } from './geometry/DSLDiagram_Point.js';
|
|
20
20
|
import type { ClassView } from './DSLDiagram_ClassView.js';
|
21
21
|
import type { Diagram } from './DSLDiagram_Diagram.js';
|
22
22
|
import { ClassViewExplicitReference } from './DSLDiagram_ClassViewReference.js';
|
23
|
-
import { DIAGRAM_HASH_STRUCTURE } from '../../../../
|
23
|
+
import { DIAGRAM_HASH_STRUCTURE } from '../../../../DSLDiagram_HashUtils.js';
|
24
24
|
|
25
25
|
export class RelationshipView implements Hashable {
|
26
26
|
readonly _OWNER: Diagram;
|
File without changes
|
@@ -15,7 +15,7 @@
|
|
15
15
|
*/
|
16
16
|
|
17
17
|
import { hashArray, type Hashable } from '@finos/legend-shared';
|
18
|
-
import { DIAGRAM_HASH_STRUCTURE } from '../../../../../
|
18
|
+
import { DIAGRAM_HASH_STRUCTURE } from '../../../../../DSLDiagram_HashUtils.js';
|
19
19
|
|
20
20
|
export class Point implements Hashable {
|
21
21
|
readonly x: number;
|
@@ -17,7 +17,7 @@
|
|
17
17
|
import { hashArray, type Hashable } from '@finos/legend-shared';
|
18
18
|
import { Point } from './DSLDiagram_Point.js';
|
19
19
|
import { Rectangle } from './DSLDiagram_Rectangle.js';
|
20
|
-
import { DIAGRAM_HASH_STRUCTURE } from '../../../../../
|
20
|
+
import { DIAGRAM_HASH_STRUCTURE } from '../../../../../DSLDiagram_HashUtils.js';
|
21
21
|
|
22
22
|
export class PositionedRectangle implements Hashable {
|
23
23
|
_dummyObservable = {};
|
@@ -15,7 +15,7 @@
|
|
15
15
|
*/
|
16
16
|
|
17
17
|
import { hashArray, type Hashable } from '@finos/legend-shared';
|
18
|
-
import { DIAGRAM_HASH_STRUCTURE } from '../../../../../
|
18
|
+
import { DIAGRAM_HASH_STRUCTURE } from '../../../../../DSLDiagram_HashUtils.js';
|
19
19
|
|
20
20
|
export class Rectangle implements Hashable {
|
21
21
|
readonly width: number;
|
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
import type { BasicModel, PureModel } from '@finos/legend-graph';
|
18
18
|
import { guaranteeNonNullable } from '@finos/legend-shared';
|
19
|
-
import { Diagram } from '../
|
19
|
+
import { Diagram } from '../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_Diagram.js';
|
20
20
|
|
21
21
|
export const getDiagram = (path: string, graph: PureModel): Diagram =>
|
22
22
|
graph.getExtensionElement(path, Diagram, `Can't find diagram '${path}'`);
|
@@ -22,7 +22,7 @@ import {
|
|
22
22
|
type PackageableElement,
|
23
23
|
type PureGrammarElementLabeler,
|
24
24
|
} from '@finos/legend-graph';
|
25
|
-
import { Diagram } from '../
|
25
|
+
import { Diagram } from '../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_Diagram.js';
|
26
26
|
import { observe_Diagram } from './action/changeDetection/DSLDiagram_ObserverHelper.js';
|
27
27
|
|
28
28
|
export const PURE_GRAMMAR_DIAGRAM_PARSER_NAME = 'Diagram';
|
@@ -21,15 +21,15 @@ import {
|
|
21
21
|
skipObserved,
|
22
22
|
} from '@finos/legend-graph';
|
23
23
|
import { computed, makeObservable, observable, override } from 'mobx';
|
24
|
-
import type { AssociationView } from '../../../
|
25
|
-
import type { ClassView } from '../../../
|
26
|
-
import type { ClassViewReference } from '../../../
|
27
|
-
import type { Diagram } from '../../../
|
28
|
-
import type { GeneralizationView } from '../../../
|
29
|
-
import type { PropertyView } from '../../../
|
30
|
-
import type { RelationshipViewEnd } from '../../../
|
31
|
-
import type { RelationshipView } from '../../../
|
32
|
-
import type { PositionedRectangle } from '../../../
|
24
|
+
import type { AssociationView } from '../../../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_AssociationView.js';
|
25
|
+
import type { ClassView } from '../../../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_ClassView.js';
|
26
|
+
import type { ClassViewReference } from '../../../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.js';
|
27
|
+
import type { Diagram } from '../../../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_Diagram.js';
|
28
|
+
import type { GeneralizationView } from '../../../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.js';
|
29
|
+
import type { PropertyView } from '../../../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_PropertyView.js';
|
30
|
+
import type { RelationshipViewEnd } from '../../../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_RelationshipViewEnd.js';
|
31
|
+
import type { RelationshipView } from '../../../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_RelationshipView.js';
|
32
|
+
import type { PositionedRectangle } from '../../../graph/metamodel/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.js';
|
33
33
|
|
34
34
|
export const observe_PositionedRectangle = skipObserved(
|
35
35
|
(metamodel: PositionedRectangle): PositionedRectangle =>
|
@@ -36,8 +36,8 @@ import {
|
|
36
36
|
V1_buildFullPath,
|
37
37
|
} from '@finos/legend-graph';
|
38
38
|
import { V1_transformDiagram } from './v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.js';
|
39
|
-
import { Diagram } from '
|
40
|
-
import { getOwnDiagram } from '
|
39
|
+
import { Diagram } from '../../../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_Diagram.js';
|
40
|
+
import { getOwnDiagram } from '../../DSLDiagram_GraphManagerHelper.js';
|
41
41
|
import {
|
42
42
|
V1_buildClassView,
|
43
43
|
V1_buildGeneralizationView,
|
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
import { hashArray, type Hashable } from '@finos/legend-shared';
|
18
18
|
import { V1_PositionedRectangle } from './geometry/V1_DSLDiagram_PositionedRectangle.js';
|
19
|
-
import { DIAGRAM_HASH_STRUCTURE } from '
|
19
|
+
import { DIAGRAM_HASH_STRUCTURE } from '../../../../../../../graph/DSLDiagram_HashUtils.js';
|
20
20
|
|
21
21
|
export class V1_ClassView extends V1_PositionedRectangle implements Hashable {
|
22
22
|
id!: string;
|
@@ -22,7 +22,7 @@ import {
|
|
22
22
|
type V1_PackageableElementVisitor,
|
23
23
|
V1_PackageableElement,
|
24
24
|
} from '@finos/legend-graph';
|
25
|
-
import { DIAGRAM_HASH_STRUCTURE } from '
|
25
|
+
import { DIAGRAM_HASH_STRUCTURE } from '../../../../../../../graph/DSLDiagram_HashUtils.js';
|
26
26
|
|
27
27
|
export class V1_Diagram extends V1_PackageableElement implements Hashable {
|
28
28
|
classViews: V1_ClassView[] = [];
|
@@ -17,7 +17,7 @@
|
|
17
17
|
import { hashArray, type Hashable } from '@finos/legend-shared';
|
18
18
|
import { V1_RelationshipView } from './V1_DSLDiagram_RelationshipView.js';
|
19
19
|
import type { V1_Line } from './geometry/V1_DSLDiagram_Line.js';
|
20
|
-
import { DIAGRAM_HASH_STRUCTURE } from '
|
20
|
+
import { DIAGRAM_HASH_STRUCTURE } from '../../../../../../../graph/DSLDiagram_HashUtils.js';
|
21
21
|
|
22
22
|
export class V1_GeneralizationView
|
23
23
|
extends V1_RelationshipView
|
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
import { hashArray, type Hashable } from '@finos/legend-shared';
|
18
18
|
import { V1_RelationshipView } from './V1_DSLDiagram_RelationshipView.js';
|
19
|
-
import { DIAGRAM_HASH_STRUCTURE } from '
|
19
|
+
import { DIAGRAM_HASH_STRUCTURE } from '../../../../../../../graph/DSLDiagram_HashUtils.js';
|
20
20
|
import type { V1_PropertyPointer } from '@finos/legend-graph';
|
21
21
|
|
22
22
|
export class V1_PropertyHolderView
|
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
import { hashArray, type Hashable } from '@finos/legend-shared';
|
18
18
|
import { V1_PropertyHolderView } from './V1_DSLDiagram_PropertyHolderView.js';
|
19
|
-
import { DIAGRAM_HASH_STRUCTURE } from '
|
19
|
+
import { DIAGRAM_HASH_STRUCTURE } from '../../../../../../../graph/DSLDiagram_HashUtils.js';
|
20
20
|
import type { V1_PropertyPointer } from '@finos/legend-graph';
|
21
21
|
|
22
22
|
export class V1_PropertyView extends V1_PropertyHolderView implements Hashable {
|
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
import { hashArray, type Hashable } from '@finos/legend-shared';
|
18
18
|
import type { V1_Line } from './geometry/V1_DSLDiagram_Line.js';
|
19
|
-
import { DIAGRAM_HASH_STRUCTURE } from '
|
19
|
+
import { DIAGRAM_HASH_STRUCTURE } from '../../../../../../../graph/DSLDiagram_HashUtils.js';
|
20
20
|
|
21
21
|
export class V1_RelationshipView implements Hashable {
|
22
22
|
sourceView!: string;
|
File without changes
|
@@ -15,7 +15,7 @@
|
|
15
15
|
*/
|
16
16
|
|
17
17
|
import { hashArray, type Hashable } from '@finos/legend-shared';
|
18
|
-
import { DIAGRAM_HASH_STRUCTURE } from '
|
18
|
+
import { DIAGRAM_HASH_STRUCTURE } from '../../../../../../../../graph/DSLDiagram_HashUtils.js';
|
19
19
|
|
20
20
|
export class V1_Point implements Hashable {
|
21
21
|
x!: number;
|
@@ -17,7 +17,7 @@
|
|
17
17
|
import { hashArray, type Hashable } from '@finos/legend-shared';
|
18
18
|
import type { V1_Point } from './V1_DSLDiagram_Point.js';
|
19
19
|
import type { V1_Rectangle } from './V1_DSLDiagram_Rectangle.js';
|
20
|
-
import { DIAGRAM_HASH_STRUCTURE } from '
|
20
|
+
import { DIAGRAM_HASH_STRUCTURE } from '../../../../../../../../graph/DSLDiagram_HashUtils.js';
|
21
21
|
|
22
22
|
export class V1_PositionedRectangle implements Hashable {
|
23
23
|
rectangle!: V1_Rectangle;
|
@@ -15,7 +15,7 @@
|
|
15
15
|
*/
|
16
16
|
|
17
17
|
import { hashArray, type Hashable } from '@finos/legend-shared';
|
18
|
-
import { DIAGRAM_HASH_STRUCTURE } from '
|
18
|
+
import { DIAGRAM_HASH_STRUCTURE } from '../../../../../../../../graph/DSLDiagram_HashUtils.js';
|
19
19
|
|
20
20
|
export class V1_Rectangle implements Hashable {
|
21
21
|
width!: number;
|
@@ -14,7 +14,7 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
|
17
|
-
import { getDiagram } from '
|
17
|
+
import { getDiagram } from '../../../../../DSLDiagram_GraphManagerHelper.js';
|
18
18
|
import type {
|
19
19
|
PackageableElementImplicitReference,
|
20
20
|
V1_GraphBuilderContext,
|
@@ -24,12 +24,12 @@ import {
|
|
24
24
|
assertNonNullable,
|
25
25
|
guaranteeNonNullable,
|
26
26
|
} from '@finos/legend-shared';
|
27
|
-
import type { Diagram } from '
|
28
|
-
import { ClassView } from '
|
29
|
-
import { Point } from '
|
30
|
-
import { Rectangle } from '
|
31
|
-
import { PropertyView } from '
|
32
|
-
import { GeneralizationView } from '
|
27
|
+
import type { Diagram } from '../../../../../../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_Diagram.js';
|
28
|
+
import { ClassView } from '../../../../../../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_ClassView.js';
|
29
|
+
import { Point } from '../../../../../../graph/metamodel/pure/packageableElements/diagram/geometry/DSLDiagram_Point.js';
|
30
|
+
import { Rectangle } from '../../../../../../graph/metamodel/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle.js';
|
31
|
+
import { PropertyView } from '../../../../../../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_PropertyView.js';
|
32
|
+
import { GeneralizationView } from '../../../../../../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.js';
|
33
33
|
import type { V1_ClassView } from '../../model/packageableElements/diagram/V1_DSLDiagram_ClassView.js';
|
34
34
|
import type { V1_Point } from '../../model/packageableElements/diagram/geometry/V1_DSLDiagram_Point.js';
|
35
35
|
import type { V1_Rectangle } from '../../model/packageableElements/diagram/geometry/V1_DSLDiagram_Rectangle.js';
|
@@ -38,7 +38,7 @@ import type { V1_GeneralizationView } from '../../model/packageableElements/diag
|
|
38
38
|
import {
|
39
39
|
getClassView,
|
40
40
|
_relationshipView_simplifyPath,
|
41
|
-
} from '../../../../../../helpers/DSLDiagram_Helper.js';
|
41
|
+
} from '../../../../../../graph/helpers/DSLDiagram_Helper.js';
|
42
42
|
|
43
43
|
const buildPoint = (point: V1_Point): Point => {
|
44
44
|
const x = guaranteeNonNullable(point.x, `Point 'x' coordinate is missing`);
|
@@ -14,11 +14,11 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
|
17
|
-
import type { ClassView } from '
|
18
|
-
import type { Diagram } from '
|
19
|
-
import type { GeneralizationView } from '
|
20
|
-
import type { PropertyView } from '
|
21
|
-
import type { RelationshipViewEnd } from '
|
17
|
+
import type { ClassView } from '../../../../../../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_ClassView.js';
|
18
|
+
import type { Diagram } from '../../../../../../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_Diagram.js';
|
19
|
+
import type { GeneralizationView } from '../../../../../../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.js';
|
20
|
+
import type { PropertyView } from '../../../../../../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_PropertyView.js';
|
21
|
+
import type { RelationshipViewEnd } from '../../../../../../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_RelationshipViewEnd.js';
|
22
22
|
import { V1_Point } from '../../model/packageableElements/diagram/geometry/V1_DSLDiagram_Point.js';
|
23
23
|
import { V1_ClassView } from '../../model/packageableElements/diagram/V1_DSLDiagram_ClassView.js';
|
24
24
|
import { V1_Diagram } from '../../model/packageableElements/diagram/V1_DSLDiagram_Diagram.js';
|