@finos/legend-extension-dsl-diagram 1.0.27 → 1.0.30
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/DiagramRenderer.d.ts +4 -1
- package/lib/DiagramRenderer.d.ts.map +1 -1
- package/lib/DiagramRenderer.js +63 -63
- package/lib/DiagramRenderer.js.map +1 -1
- package/lib/components/studio/ClassDiagramPreview.d.ts.map +1 -1
- package/lib/components/studio/ClassDiagramPreview.js +3 -1
- package/lib/components/studio/ClassDiagramPreview.js.map +1 -1
- package/lib/components/studio/DiagramEditor.d.ts.map +1 -1
- package/lib/components/studio/DiagramEditor.js +10 -9
- package/lib/components/studio/DiagramEditor.js.map +1 -1
- package/lib/graphManager/DSLDiagram_PureGraphManagerPlugin.d.ts +2 -1
- package/lib/graphManager/DSLDiagram_PureGraphManagerPlugin.d.ts.map +1 -1
- package/lib/graphManager/DSLDiagram_PureGraphManagerPlugin.js +11 -0
- package/lib/graphManager/DSLDiagram_PureGraphManagerPlugin.js.map +1 -1
- package/lib/graphManager/action/changeDetection/DSLDiagram_ObserverHelper.d.ts +34 -0
- package/lib/graphManager/action/changeDetection/DSLDiagram_ObserverHelper.d.ts.map +1 -0
- package/lib/graphManager/action/changeDetection/DSLDiagram_ObserverHelper.js +94 -0
- package/lib/graphManager/action/changeDetection/DSLDiagram_ObserverHelper.js.map +1 -0
- package/lib/helpers/DiagramHelper.d.ts +16 -1
- package/lib/helpers/DiagramHelper.d.ts.map +1 -1
- package/lib/helpers/DiagramHelper.js +90 -3
- package/lib/helpers/DiagramHelper.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.d.ts.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.js +0 -4
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.js.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.d.ts +0 -3
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.d.ts.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.js +0 -20
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.js.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.d.ts +0 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.d.ts.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.js +1 -10
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.js.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.d.ts +0 -12
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.d.ts.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.js +1 -56
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.js.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.d.ts +0 -3
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.d.ts.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.js +0 -7
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.js.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.d.ts +0 -4
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.d.ts.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.js +0 -7
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.js.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.d.ts +6 -3
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.d.ts.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.js +6 -14
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.js.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.d.ts +24 -23
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.d.ts.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.js +57 -129
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.js.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.d.ts +0 -8
- package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.d.ts.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.js +0 -19
- package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.js.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Vector.d.ts +3 -3
- package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Vector.d.ts.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Vector.js +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Vector.js.map +1 -1
- package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.d.ts.map +1 -1
- package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.js +3 -3
- package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.js.map +1 -1
- package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.js +2 -2
- package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.js.map +1 -1
- package/lib/package.json +4 -4
- package/lib/stores/studio/DSLDiagram_GraphModifierHelper.d.ts +57 -0
- package/lib/stores/studio/DSLDiagram_GraphModifierHelper.d.ts.map +1 -0
- package/lib/stores/studio/DSLDiagram_GraphModifierHelper.js +94 -0
- package/lib/stores/studio/DSLDiagram_GraphModifierHelper.js.map +1 -0
- package/lib/stores/studio/DiagramEditorState.d.ts.map +1 -1
- package/lib/stores/studio/DiagramEditorState.js +13 -10
- package/lib/stores/studio/DiagramEditorState.js.map +1 -1
- package/package.json +11 -11
- package/src/DiagramRenderer.ts +136 -72
- package/src/components/studio/ClassDiagramPreview.tsx +3 -1
- package/src/components/studio/DiagramEditor.tsx +17 -11
- package/src/graphManager/DSLDiagram_PureGraphManagerPlugin.ts +17 -0
- package/src/graphManager/action/changeDetection/DSLDiagram_ObserverHelper.ts +153 -0
- package/src/helpers/DiagramHelper.ts +126 -4
- package/src/index.ts +1 -4
- package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.ts +0 -6
- package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.ts +0 -23
- package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.ts +0 -13
- package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.ts +1 -64
- package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.ts +0 -11
- package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.ts +0 -17
- package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.ts +6 -16
- package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.ts +71 -169
- package/src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.ts +0 -21
- package/src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Vector.ts +3 -3
- package/src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.ts +6 -3
- package/src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.ts +4 -4
- package/src/stores/studio/DSLDiagram_GraphModifierHelper.ts +164 -0
- package/src/stores/studio/DiagramEditorState.ts +28 -9
- package/tsconfig.json +2 -0
@@ -0,0 +1,94 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
import { addUniqueEntry, changeEntry, deleteEntry } from '@finos/legend-shared';
|
17
|
+
import { action } from 'mobx';
|
18
|
+
import { _findOrBuildPoint, _relationshipView_simplifyPath, _relationshipView_setPath, } from '../../helpers/DiagramHelper';
|
19
|
+
import { observe_AssociationView, observe_ClassView, observe_GeneralizationView, observe_PropertyView, } from '../../graphManager/action/changeDetection/DSLDiagram_ObserverHelper';
|
20
|
+
export const diagram_setClassViews = action((diagram, val) => {
|
21
|
+
diagram.classViews = val.map(observe_ClassView);
|
22
|
+
});
|
23
|
+
export const diagram_addClassView = action((diagram, val) => {
|
24
|
+
addUniqueEntry(diagram.classViews, observe_ClassView(val));
|
25
|
+
});
|
26
|
+
export const diagram_deleteClassView = action((diagram, val) => {
|
27
|
+
deleteEntry(diagram.classViews, val);
|
28
|
+
});
|
29
|
+
export const diagram_setAssociationViews = action((diagram, val) => {
|
30
|
+
diagram.associationViews = val.map(observe_AssociationView);
|
31
|
+
});
|
32
|
+
export const diagram_deleteAssociationView = action((diagram, val) => {
|
33
|
+
deleteEntry(diagram.associationViews, val);
|
34
|
+
});
|
35
|
+
export const diagram_setGeneralizationViews = action((diagram, val) => {
|
36
|
+
diagram.generalizationViews = val.map(observe_GeneralizationView);
|
37
|
+
});
|
38
|
+
export const diagram_addGeneralizationView = action((diagram, val) => {
|
39
|
+
addUniqueEntry(diagram.generalizationViews, observe_GeneralizationView(val));
|
40
|
+
});
|
41
|
+
export const diagram_deleteGeneralizationView = action((diagram, val) => {
|
42
|
+
deleteEntry(diagram.generalizationViews, val);
|
43
|
+
});
|
44
|
+
export const diagram_setPropertyViews = action((diagram, val) => {
|
45
|
+
diagram.propertyViews = val.map(observe_PropertyView);
|
46
|
+
});
|
47
|
+
export const diagram_addPropertyView = action((diagram, val) => {
|
48
|
+
addUniqueEntry(diagram.propertyViews, observe_PropertyView(val));
|
49
|
+
});
|
50
|
+
export const diagram_deletePropertyView = action((diagram, val) => {
|
51
|
+
deleteEntry(diagram.propertyViews, val);
|
52
|
+
});
|
53
|
+
export const classView_setHideProperties = action((cv, val) => {
|
54
|
+
cv.hideProperties = val;
|
55
|
+
});
|
56
|
+
export const classView_setHideStereotypes = action((cv, val) => {
|
57
|
+
cv.hideStereotypes = val;
|
58
|
+
});
|
59
|
+
export const classView_setHideTaggedValues = action((cv, val) => {
|
60
|
+
cv.hideTaggedValues = val;
|
61
|
+
});
|
62
|
+
export const relationshipEdgeView_setOffsetX = action((r, val) => {
|
63
|
+
r.offsetX = val;
|
64
|
+
});
|
65
|
+
export const relationshipEdgeView_setOffsetY = action((r, val) => {
|
66
|
+
r.offsetY = val;
|
67
|
+
});
|
68
|
+
// To optimize performance we will not observe point (path)
|
69
|
+
export const relationshipView_changePoint = action((v, val, newVal) => {
|
70
|
+
changeEntry(v.path, val, newVal);
|
71
|
+
});
|
72
|
+
export const relationshipView_simplifyPath = action(_relationshipView_simplifyPath);
|
73
|
+
export const findOrBuildPoint = action(_findOrBuildPoint);
|
74
|
+
export const relationshipView_setPath = action(_relationshipView_setPath);
|
75
|
+
// To optimize performance we will not observe rectangle
|
76
|
+
export const positionedRectangle_setRectangle = action((pR, value) => {
|
77
|
+
pR.rectangle = value;
|
78
|
+
});
|
79
|
+
// To optimize performance we will not observe point (path)
|
80
|
+
export const positionedRectangle_setPosition = action((pR, value) => {
|
81
|
+
pR.position = value;
|
82
|
+
});
|
83
|
+
/**
|
84
|
+
* NOTE: Having `position` and `rectangle` as observables compromises the performance of diagram
|
85
|
+
* so we want to have a way to refresh the hash for change detection to pick up new hash when we resize
|
86
|
+
* the class view box or move it.
|
87
|
+
*
|
88
|
+
* We should re-consider the usefulness of this method, maybe it's more worthwhile to recompute hash
|
89
|
+
* for the whole diagram instead?
|
90
|
+
*/
|
91
|
+
export const positionedRectangle_forceRefreshHash = action((pR) => {
|
92
|
+
pR.dummyObservable = {};
|
93
|
+
});
|
94
|
+
//# sourceMappingURL=DSLDiagram_GraphModifierHelper.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DSLDiagram_GraphModifierHelper.js","sourceRoot":"","sources":["../../../src/stores/studio/DSLDiagram_GraphModifierHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAChF,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAK9B,OAAO,EACL,iBAAiB,EACjB,8BAA8B,EAC9B,yBAAyB,GAC1B,MAAM,6BAA6B,CAAC;AAOrC,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,0BAA0B,EAC1B,oBAAoB,GACrB,MAAM,qEAAqE,CAAC;AAE7E,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CACzC,CAAC,OAAgB,EAAE,GAAgB,EAAQ,EAAE;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agramEditorState.d.ts","sourceRoot":"","sources":["../../../src/stores/studio/DiagramEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAQH,OAAO,EACL,KAAK,eAAe,EAErB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAuB,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,
|
1
|
+
{"version":3,"file":"DiagramEditorState.d.ts","sourceRoot":"","sources":["../../../src/stores/studio/DiagramEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAQH,OAAO,EACL,KAAK,eAAe,EAErB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAuB,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EAOvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,WAAW,EAChB,gBAAgB,EAChB,kBAAkB,EAEnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+EAA+E,CAAC;AAC/G,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oFAAoF,CAAC;AAChH,OAAO,EAAE,OAAO,EAAE,MAAM,6EAA6E,CAAC;AAyBtG,8BAAsB,2BAA2B;IAC/C,IAAI,SAAU;IACd,WAAW,EAAE,WAAW,CAAC;IACzB,kBAAkB,EAAE,kBAAkB,CAAC;gBAGrC,WAAW,EAAE,WAAW,EACxB,kBAAkB,EAAE,kBAAkB;CAKzC;AAED,oBAAY,6BAA6B;IACvC,OAAO,YAAY;IACnB,IAAI,SAAS;CACd;AAED,qBAAa,0CAA2C,SAAQ,2BAA2B;IACzF,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,gCAAyC;gBAG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IAAI,OAAO,CAMrB;IAED,IAAI,QAAQ,IAAI,eAAe,CAK9B;IAED,IAAI,4BAA4B,IAAI,OAAO,CAE1C;IAMD,IAAI,kBAAkB,IAAI,MAAM,CAqE/B;IAED,WAAW,CAAC,GAAG,EAAE,eAAe,GAAG,IAAI;IAIvC,uBAAuB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAI3C,iBAAiB,CAAC,GAAG,EAAE,2BAA2B,GAAG,SAAS,GAAG,IAAI;IAIrE,4BAA4B,CAC1B,GAAG,EAAE,sCAAsC,GAAG,SAAS,GACtD,IAAI;IAIP,0BAA0B,CACxB,GAAG,EAAE,oCAAoC,GAAG,SAAS,GACpD,IAAI;IAIP,0BAA0B,CACxB,GAAG,EAAE,oCAAoC,GAAG,SAAS,GACpD,IAAI;IAIP,kBAAkB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAItC,uBAAuB,CAAC,GAAG,EAAE,SAAS,GAAG,SAAS,GAAG,IAAI;IAIzD,gBAAgB,IAAI,IAAI;IAIxB,aAAa,IAAI,IAAI;IAiIrB,OAAO,IAAI,IAAI;IAIf,OAAO,CAAC,yBAAyB,CAuBrB;IAEZ,SAAS,CACP,UAAU,EAAE,kBAAkB,EAC9B,WAAW,EAAE,WAAW,GACvB,kBAAkB;CAItB"}
|
@@ -17,8 +17,8 @@ import { computed, action, makeObservable, observable } from 'mobx';
|
|
17
17
|
import { guaranteeNonNullable, guaranteeType, uuid, } from '@finos/legend-shared';
|
18
18
|
import { DIAGRAM_INTERACTION_MODE, } from '../../DiagramRenderer';
|
19
19
|
import { HotkeyConfiguration, PanelDisplayState } from '@finos/legend-art';
|
20
|
-
import { GenericTypeExplicitReference, PRIMITIVE_TYPE, TYPICAL_MULTIPLICITY_TYPE, Property, GenericType, PropertyExplicitReference,
|
21
|
-
import { ClassEditorState, ElementEditorState, } from '@finos/legend-studio';
|
20
|
+
import { GenericTypeExplicitReference, PRIMITIVE_TYPE, TYPICAL_MULTIPLICITY_TYPE, Property, GenericType, PropertyExplicitReference, } from '@finos/legend-graph';
|
21
|
+
import { ClassEditorState, ElementEditorState, class_addProperty, } from '@finos/legend-studio';
|
22
22
|
import { Diagram } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram';
|
23
23
|
var DIAGRAM_EDITOR_HOTKEY;
|
24
24
|
(function (DIAGRAM_EDITOR_HOTKEY) {
|
@@ -197,20 +197,20 @@ export class DiagramEditorState extends ElementEditorState {
|
|
197
197
|
}
|
198
198
|
else if (this.renderer.mouseOverClassProperty) {
|
199
199
|
return this.isReadOnly ||
|
200
|
-
this.renderer.mouseOverClassProperty.owner
|
200
|
+
this.editorStore.graphManagerState.isElementReadOnly(this.renderer.mouseOverClassProperty.owner)
|
201
201
|
? 'diagram-editor__cursor--not-allowed'
|
202
202
|
: 'diagram-editor__cursor--text';
|
203
203
|
}
|
204
204
|
else if (this.renderer.mouseOverPropertyHolderViewLabel) {
|
205
205
|
return this.isReadOnly ||
|
206
|
-
this.renderer.mouseOverPropertyHolderViewLabel.property.value
|
207
|
-
.
|
206
|
+
this.editorStore.graphManagerState.isElementReadOnly(this.renderer.mouseOverPropertyHolderViewLabel.property.value
|
207
|
+
.owner)
|
208
208
|
? 'diagram-editor__cursor--not-allowed'
|
209
209
|
: 'diagram-editor__cursor--text';
|
210
210
|
}
|
211
211
|
else if (this.renderer.mouseOverClassName) {
|
212
212
|
return this.isReadOnly ||
|
213
|
-
this.renderer.mouseOverClassName.class.value
|
213
|
+
this.editorStore.graphManagerState.isElementReadOnly(this.renderer.mouseOverClassName.class.value)
|
214
214
|
? 'diagram-editor__cursor--not-allowed'
|
215
215
|
: 'diagram-editor__cursor--text';
|
216
216
|
}
|
@@ -270,21 +270,24 @@ export class DiagramEditorState extends ElementEditorState {
|
|
270
270
|
this.setContextMenuClassView(classView);
|
271
271
|
};
|
272
272
|
this.renderer.onClassNameDoubleClick = (classView, point) => {
|
273
|
-
if (!this.isReadOnly &&
|
273
|
+
if (!this.isReadOnly &&
|
274
|
+
!this.editorStore.graphManagerState.isElementReadOnly(classView.class.value)) {
|
274
275
|
this.setInlineClassRenamerState(new DiagramEditorInlineClassRenamerState(this, classView, point));
|
275
276
|
}
|
276
277
|
};
|
277
278
|
const editProperty = (property, point, propertyHolderView) => {
|
278
|
-
if (!this.isReadOnly &&
|
279
|
+
if (!this.isReadOnly &&
|
280
|
+
!this.editorStore.graphManagerState.isElementReadOnly(property.owner)) {
|
279
281
|
this.setInlinePropertyEditorState(new DiagramEditorInlinePropertyEditorState(this, property, point, Boolean(propertyHolderView)));
|
280
282
|
}
|
281
283
|
};
|
282
284
|
this.renderer.onClassPropertyDoubleClick = editProperty;
|
283
285
|
this.renderer.handleEditProperty = editProperty;
|
284
286
|
this.renderer.handleAddSimpleProperty = (classView) => {
|
285
|
-
if (!this.isReadOnly &&
|
287
|
+
if (!this.isReadOnly &&
|
288
|
+
!this.editorStore.graphManagerState.isElementReadOnly(classView.class.value)) {
|
286
289
|
const _class = classView.class.value;
|
287
|
-
|
290
|
+
class_addProperty(_class, new Property(`property_${_class.properties.length + 1}`, this.editorStore.graphManagerState.graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE), GenericTypeExplicitReference.create(new GenericType(this.editorStore.graphManagerState.graph.getPrimitiveType(PRIMITIVE_TYPE.STRING))), _class));
|
288
291
|
this.renderer.render();
|
289
292
|
}
|
290
293
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DiagramEditorState.js","sourceRoot":"","sources":["../../../src/stores/studio/DiagramEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,IAAI,GACL,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAC/B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ACJ,CAAC,CAAC,CAAC;IACL,CAAC;IAED,OAAO;QACL,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE,CAAC;IAClC,CAAC;IAEO,yBAAyB,GAAG,CAClC,OAAwC,EACL,EAAE,CACrC,IAAI,CAAC,WAAW,CAAC,wBAAwB,CAAC,CAAC,KAAqB,EAAQ,EAAE;QACxE;QACE,6DAA6D;QAC7D,IAAI,CAAC,WAAW,CAAC,kBAAkB,KAAK,IAAI;YAC5C,wCAAwC;YACxC,IAAI,CAAC,4BAA4B;YACjC,kEAAkE;YAClE,8EAA8E;YAC9E,mCAAmC;YACnC,IAAI,CAAC,QAAQ,CAAC,GAAG,KAAK,QAAQ,CAAC,aAAa;YAC5C,wDAAwD;YACxD,oEAAoE;YACpE,0CAA0C;YAC1C,CAAC,CAAC,QAAQ,CAAC,aAAa;gBACtB,CAAC,CAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,CACvC,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,WAAW,EAAE,CAC7C,CAAC,EACJ;YACA,OAAO,CAAC,KAAK,CAAC,CAAC;SAChB;IACH,CAAC,EAAE,KAAK,CAAC,CAAC;IAEZ,SAAS,CACP,UAA8B,EAC9B,WAAwB;QAExB,MAAM,kBAAkB,GAAG,IAAI,kBAAkB,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;QAC3E,OAAO,kBAAkB,CAAC;IAC5B,CAAC;CACF"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-extension-dsl-diagram",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.30",
|
4
4
|
"description": "Legend extension for Diagram DSL",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -31,7 +31,7 @@
|
|
31
31
|
"clean:cache": "rimraf \"build\"",
|
32
32
|
"clean:lib": "rimraf \"lib\"",
|
33
33
|
"dev": "npm-run-all --parallel dev:sass dev:ts",
|
34
|
-
"dev:sass": "sass style
|
34
|
+
"dev:sass": "sass style:lib --watch --load-path=../../node_modules/@finos/legend-art/scss",
|
35
35
|
"dev:ts": "tsc --watch --preserveWatchOutput",
|
36
36
|
"lint:js": "cross-env NODE_ENV=production eslint --cache --cache-location ./build/.eslintcache --report-unused-disable-directives --parser-options=project:\"./tsconfig.json\" \"./src/**/*.{js,ts,tsx}\"",
|
37
37
|
"publish:prepare": "node ../../scripts/release/preparePublishContent.js",
|
@@ -40,23 +40,23 @@
|
|
40
40
|
"test:watch": "jest --watch"
|
41
41
|
},
|
42
42
|
"dependencies": {
|
43
|
-
"@finos/legend-application": "2.0.
|
44
|
-
"@finos/legend-art": "0.3.
|
45
|
-
"@finos/legend-graph": "
|
46
|
-
"@finos/legend-model-storage": "0.0.
|
47
|
-
"@finos/legend-shared": "1.2.
|
48
|
-
"@finos/legend-studio": "5.1.
|
43
|
+
"@finos/legend-application": "2.0.9",
|
44
|
+
"@finos/legend-art": "0.3.14",
|
45
|
+
"@finos/legend-graph": "3.0.0",
|
46
|
+
"@finos/legend-model-storage": "0.0.27",
|
47
|
+
"@finos/legend-shared": "1.2.8",
|
48
|
+
"@finos/legend-studio": "5.1.4",
|
49
49
|
"@types/react": "17.0.43",
|
50
50
|
"mobx": "6.5.0",
|
51
51
|
"mobx-react-lite": "3.3.0",
|
52
52
|
"react": "17.0.2",
|
53
|
-
"react-dnd": "15.1.
|
53
|
+
"react-dnd": "15.1.2",
|
54
54
|
"react-dom": "17.0.2",
|
55
55
|
"react-resize-detector": "7.0.0",
|
56
56
|
"serializr": "2.0.5"
|
57
57
|
},
|
58
58
|
"devDependencies": {
|
59
|
-
"@finos/legend-dev-utils": "0.3.
|
59
|
+
"@finos/legend-dev-utils": "0.3.18",
|
60
60
|
"@testing-library/react": "12.1.4",
|
61
61
|
"cross-env": "7.0.3",
|
62
62
|
"eslint": "8.12.0",
|
@@ -64,7 +64,7 @@
|
|
64
64
|
"jest-canvas-mock": "2.3.1",
|
65
65
|
"npm-run-all": "4.1.5",
|
66
66
|
"rimraf": "3.0.2",
|
67
|
-
"sass": "1.
|
67
|
+
"sass": "1.50.0",
|
68
68
|
"typescript": "4.6.3"
|
69
69
|
},
|
70
70
|
"peerDependencies": {
|