@finos/legend-extension-dsl-diagram 4.1.6 → 5.0.1
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.js +10 -10
- 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 +12 -12
- 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
@@ -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
|
)
|
@@ -716,7 +716,7 @@ const DiagramEditorOverlay = observer(
|
|
716
716
|
},
|
717
717
|
);
|
718
718
|
|
719
|
-
const
|
719
|
+
const DiagramEditorInlineClassRenamerContent = observer(
|
720
720
|
(props: {
|
721
721
|
inlineClassRenamerState: DiagramEditorInlineClassRenamerState;
|
722
722
|
}) => {
|
@@ -823,7 +823,7 @@ const DiagramEditorInlineClassRenamer = observer(
|
|
823
823
|
>
|
824
824
|
<div className="diagram-editor__inline-class-creator__container">
|
825
825
|
{inlineClassRenamerState && (
|
826
|
-
<
|
826
|
+
<DiagramEditorInlineClassRenamerContent
|
827
827
|
inlineClassRenamerState={inlineClassRenamerState}
|
828
828
|
/>
|
829
829
|
)}
|
@@ -833,7 +833,7 @@ const DiagramEditorInlineClassRenamer = observer(
|
|
833
833
|
},
|
834
834
|
);
|
835
835
|
|
836
|
-
const
|
836
|
+
const DiagramEditorInlineClassCreatorContent = observer(
|
837
837
|
(props: {
|
838
838
|
inlineClassCreatorState: DiagramEditorInlineClassCreatorState;
|
839
839
|
}) => {
|
@@ -953,7 +953,7 @@ const DiagramEditorInlineClassCreator = observer(
|
|
953
953
|
>
|
954
954
|
<div className="diagram-editor__inline-class-creator__container">
|
955
955
|
{inlineClassCreatorState && (
|
956
|
-
<
|
956
|
+
<DiagramEditorInlineClassCreatorContent
|
957
957
|
inlineClassCreatorState={inlineClassCreatorState}
|
958
958
|
/>
|
959
959
|
)}
|
@@ -1028,7 +1028,7 @@ const DiagramEditorInlinePropertyMultiplicityEditor = observer(
|
|
1028
1028
|
},
|
1029
1029
|
);
|
1030
1030
|
|
1031
|
-
const
|
1031
|
+
const DiagramEditorInlinePropertyEditorContent = observer(
|
1032
1032
|
(props: {
|
1033
1033
|
inlinePropertyEditorState: DiagramEditorInlinePropertyEditorState;
|
1034
1034
|
}) => {
|
@@ -1157,7 +1157,7 @@ const DiagramEditorInlinePropertyEditor = observer(
|
|
1157
1157
|
>
|
1158
1158
|
<div className="diagram-editor__inline-property-editor__container">
|
1159
1159
|
{inlinePropertyEditorState && (
|
1160
|
-
<
|
1160
|
+
<DiagramEditorInlinePropertyEditorContent
|
1161
1161
|
inlinePropertyEditorState={inlinePropertyEditorState}
|
1162
1162
|
/>
|
1163
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';
|
File without changes
|
package/src/index.ts
CHANGED
@@ -15,8 +15,8 @@
|
|
15
15
|
*/
|
16
16
|
|
17
17
|
export * from './DSLDiagram_Extension.js';
|
18
|
-
export {
|
19
|
-
export * from './components/studio/
|
18
|
+
export { DSLDiagram_LegendStudioApplicationPlugin } from './components/studio/DSLDiagram_LegendStudioApplicationPlugin.js';
|
19
|
+
export * from './components/studio/DSLDiagram_LegendStudioApplicationPlugin_Extension.js';
|
20
20
|
|
21
21
|
export { DiagramEditorState } from './stores/studio/DiagramEditorState.js';
|
22
22
|
|
@@ -25,17 +25,17 @@ export {
|
|
25
25
|
DIAGRAM_INTERACTION_MODE,
|
26
26
|
} from './DiagramRenderer.js';
|
27
27
|
|
28
|
-
export { Diagram } from './
|
29
|
-
export { ClassView } from './
|
30
|
-
export { RelationshipView } from './
|
31
|
-
export { PropertyHolderView } from './
|
32
|
-
export { PropertyView } from './
|
33
|
-
export { AssociationView } from './
|
34
|
-
export { GeneralizationView } from './
|
35
|
-
export { Point } from './
|
36
|
-
export { Rectangle } from './
|
37
|
-
export { PositionedRectangle } from './
|
28
|
+
export { Diagram } from './graph/metamodel/pure/packageableElements/diagram/DSLDiagram_Diagram.js';
|
29
|
+
export { ClassView } from './graph/metamodel/pure/packageableElements/diagram/DSLDiagram_ClassView.js';
|
30
|
+
export { RelationshipView } from './graph/metamodel/pure/packageableElements/diagram/DSLDiagram_RelationshipView.js';
|
31
|
+
export { PropertyHolderView } from './graph/metamodel/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView.js';
|
32
|
+
export { PropertyView } from './graph/metamodel/pure/packageableElements/diagram/DSLDiagram_PropertyView.js';
|
33
|
+
export { AssociationView } from './graph/metamodel/pure/packageableElements/diagram/DSLDiagram_AssociationView.js';
|
34
|
+
export { GeneralizationView } from './graph/metamodel/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.js';
|
35
|
+
export { Point } from './graph/metamodel/pure/packageableElements/diagram/geometry/DSLDiagram_Point.js';
|
36
|
+
export { Rectangle } from './graph/metamodel/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle.js';
|
37
|
+
export { PositionedRectangle } from './graph/metamodel/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.js';
|
38
38
|
|
39
|
-
export * from './helpers/DSLDiagram_Helper.js';
|
39
|
+
export * from './graph/helpers/DSLDiagram_Helper.js';
|
40
40
|
export * from './graphManager/DSLDiagram_GraphManagerHelper.js';
|
41
|
-
export { V1_DSLDiagram_PackageableElementPointerType } from './
|
41
|
+
export { V1_DSLDiagram_PackageableElementPointerType } from './graphManager/protocol/pure/DSLDiagram_PureProtocolProcessorPlugin.js';
|
@@ -16,21 +16,21 @@
|
|
16
16
|
|
17
17
|
import { addUniqueEntry, changeEntry, deleteEntry } from '@finos/legend-shared';
|
18
18
|
import { action } from 'mobx';
|
19
|
-
import type { AssociationView } from '../../
|
20
|
-
import type { ClassView } from '../../
|
21
|
-
import type { Diagram } from '../../
|
22
|
-
import type { GeneralizationView } from '../../
|
19
|
+
import type { AssociationView } from '../../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_AssociationView.js';
|
20
|
+
import type { ClassView } from '../../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_ClassView.js';
|
21
|
+
import type { Diagram } from '../../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_Diagram.js';
|
22
|
+
import type { GeneralizationView } from '../../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.js';
|
23
23
|
import {
|
24
24
|
_findOrBuildPoint,
|
25
25
|
_relationshipView_simplifyPath,
|
26
26
|
_relationshipView_setPath,
|
27
|
-
} from '../../helpers/DSLDiagram_Helper.js';
|
28
|
-
import type { PropertyView } from '../../
|
29
|
-
import type { RelationshipViewEnd } from '../../
|
30
|
-
import type { RelationshipView } from '../../
|
31
|
-
import type { Point } from '../../
|
32
|
-
import type { PositionedRectangle } from '../../
|
33
|
-
import type { Rectangle } from '../../
|
27
|
+
} from '../../graph/helpers/DSLDiagram_Helper.js';
|
28
|
+
import type { PropertyView } from '../../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_PropertyView.js';
|
29
|
+
import type { RelationshipViewEnd } from '../../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_RelationshipViewEnd.js';
|
30
|
+
import type { RelationshipView } from '../../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_RelationshipView.js';
|
31
|
+
import type { Point } from '../../graph/metamodel/pure/packageableElements/diagram/geometry/DSLDiagram_Point.js';
|
32
|
+
import type { PositionedRectangle } from '../../graph/metamodel/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.js';
|
33
|
+
import type { Rectangle } from '../../graph/metamodel/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle.js';
|
34
34
|
import {
|
35
35
|
observe_AssociationView,
|
36
36
|
observe_ClassView,
|
@@ -42,11 +42,11 @@ import {
|
|
42
42
|
ClassEditorState,
|
43
43
|
ElementEditorState,
|
44
44
|
class_addProperty,
|
45
|
-
} from '@finos/legend-studio';
|
46
|
-
import type { ClassView } from '../../
|
47
|
-
import type { Point } from '../../
|
48
|
-
import { Diagram } from '../../
|
49
|
-
import type { PropertyHolderView } from '../../
|
45
|
+
} from '@finos/legend-application-studio';
|
46
|
+
import type { ClassView } from '../../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_ClassView.js';
|
47
|
+
import type { Point } from '../../graph/metamodel/pure/packageableElements/diagram/geometry/DSLDiagram_Point.js';
|
48
|
+
import { Diagram } from '../../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_Diagram.js';
|
49
|
+
import type { PropertyHolderView } from '../../graph/metamodel/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView.js';
|
50
50
|
|
51
51
|
enum DIAGRAM_EDITOR_HOTKEY {
|
52
52
|
RECENTER = 'RECENTER',
|