@finos/legend-extension-dsl-diagram 1.0.29 → 1.0.32
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 +21 -23
- 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 +8 -5
- 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 +87 -1
- package/lib/helpers/DiagramHelper.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -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.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.js +0 -8
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.js.map +1 -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 +0 -4
- 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 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.d.ts.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.js +0 -11
- 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 -1
- 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 -6
- 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 -6
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.d.ts.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.js +58 -27
- 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.map +1 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.js +0 -4
- 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 -4
- 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 +3 -3
- package/lib/stores/studio/{DSLDiagram_ModifierHelper.d.ts → DSLDiagram_GraphModifierHelper.d.ts} +10 -7
- package/lib/stores/studio/DSLDiagram_GraphModifierHelper.d.ts.map +1 -0
- package/lib/stores/studio/{DSLDiagram_ModifierHelper.js → DSLDiagram_GraphModifierHelper.js} +20 -13
- 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 +10 -7
- package/lib/stores/studio/DiagramEditorState.js.map +1 -1
- package/package.json +10 -10
- package/src/DiagramRenderer.ts +31 -34
- package/src/components/studio/ClassDiagramPreview.tsx +3 -1
- package/src/components/studio/DiagramEditor.tsx +10 -4
- package/src/graphManager/DSLDiagram_PureGraphManagerPlugin.ts +17 -0
- package/src/graphManager/action/changeDetection/DSLDiagram_ObserverHelper.ts +153 -0
- package/src/helpers/DiagramHelper.ts +122 -1
- package/src/index.ts +0 -1
- package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.ts +0 -6
- package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.ts +0 -10
- package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.ts +0 -6
- package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.ts +0 -13
- 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 -7
- package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.ts +77 -34
- package/src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.ts +0 -5
- 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 -4
- package/src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.ts +4 -4
- package/src/stores/studio/{DSLDiagram_ModifierHelper.ts → DSLDiagram_GraphModifierHelper.ts} +34 -18
- package/src/stores/studio/DiagramEditorState.ts +26 -7
- package/tsconfig.json +2 -2
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GraphModifierHelper.d.ts +0 -35
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GraphModifierHelper.d.ts.map +0 -1
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GraphModifierHelper.js +0 -118
- package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GraphModifierHelper.js.map +0 -1
- package/lib/stores/studio/DSLDiagram_ModifierHelper.d.ts.map +0 -1
- package/lib/stores/studio/DSLDiagram_ModifierHelper.js.map +0 -1
- package/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GraphModifierHelper.ts +0 -165
package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DSLDiagram_AssociationView.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
1
|
+
{"version":3,"file":"DSLDiagram_AssociationView.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,OAAO,KAAK,EACV,WAAW,EACX,2BAA2B,EAC3B,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AAE7B,qBAAa,eAAgB,SAAQ,kBAAmB,YAAW,QAAQ;IACzE,WAAW,EAAE,2BAA2B,CAAC,WAAW,CAAC,CAAC;gBAGpD,KAAK,EAAE,OAAO,EACd,WAAW,EAAE,2BAA2B,CAAC,WAAW,CAAC,EACrD,QAAQ,EAAE,iBAAiB,EAC3B,IAAI,EAAE,SAAS,EACf,EAAE,EAAE,SAAS;IAMf,IAAa,QAAQ,IAAI,MAAM,CAM9B;CACF"}
|
package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.js
CHANGED
@@ -13,7 +13,6 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { computed, makeObservable } from 'mobx';
|
17
16
|
import { hashArray } from '@finos/legend-shared';
|
18
17
|
import { PropertyHolderView } from './DSLDiagram_PropertyHolderView';
|
19
18
|
import { DIAGRAM_HASH_STRUCTURE } from '../../../../DSLDiagram_ModelUtils';
|
@@ -21,9 +20,6 @@ export class AssociationView extends PropertyHolderView {
|
|
21
20
|
association;
|
22
21
|
constructor(owner, association, property, from, to) {
|
23
22
|
super(owner, property, from, to);
|
24
|
-
makeObservable(this, {
|
25
|
-
hashCode: computed,
|
26
|
-
});
|
27
23
|
this.association = association;
|
28
24
|
}
|
29
25
|
get hashCode() {
|
package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DSLDiagram_AssociationView.js","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"DSLDiagram_AssociationView.js","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAiB,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAGrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAO3E,MAAM,OAAO,eAAgB,SAAQ,kBAAkB;IACrD,WAAW,CAA2C;IAEtD,YACE,KAAc,EACd,WAAqD,EACrD,QAA2B,EAC3B,IAAe,EACf,EAAa;QAEb,KAAK,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;QACjC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAED,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,sBAAsB,CAAC,gBAAgB;YACvC,KAAK,CAAC,QAAQ;YACd,IAAI,CAAC,WAAW,CAAC,SAAS;SAC3B,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DSLDiagram_ClassView.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
1
|
+
{"version":3,"file":"DSLDiagram_ClassView.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAGhF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,OAAO,KAAK,EAAE,KAAK,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAE9E,qBAAa,SAAU,SAAQ,mBAAoB,YAAW,QAAQ;IACpE,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,2BAA2B,CAAC,KAAK,CAAC,CAAC;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACrC,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACvC,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;gBAGpC,KAAK,EAAE,OAAO,EACd,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,2BAA2B,CAAC,KAAK,CAAC;IAQ5C,IAAa,QAAQ,IAAI,MAAM,CAU9B;CACF"}
|
@@ -13,7 +13,6 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { computed, observable, makeObservable } from 'mobx';
|
17
16
|
import { hashArray } from '@finos/legend-shared';
|
18
17
|
import { PositionedRectangle } from './geometry/DSLDiagram_PositionedRectangle';
|
19
18
|
import { Rectangle } from './geometry/DSLDiagram_Rectangle';
|
@@ -28,13 +27,6 @@ export class ClassView extends PositionedRectangle {
|
|
28
27
|
hideStereotypes;
|
29
28
|
constructor(owner, id, _class) {
|
30
29
|
super(new Point(0, 0), new Rectangle(0, 0));
|
31
|
-
makeObservable(this, {
|
32
|
-
id: observable,
|
33
|
-
hideProperties: observable,
|
34
|
-
hideTaggedValues: observable,
|
35
|
-
hideStereotypes: observable,
|
36
|
-
hashCode: computed,
|
37
|
-
});
|
38
30
|
this.owner = owner;
|
39
31
|
this.id = id;
|
40
32
|
this.class = _class;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DSLDiagram_ClassView.js","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"DSLDiagram_ClassView.js","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAiB,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAEpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAG3E,MAAM,OAAO,SAAU,SAAQ,mBAAmB;IAChD,KAAK,CAAU;IACf,KAAK,CAAqC;IAC1C,EAAE,CAAS;IACX,cAAc,CAAuB;IACrC,gBAAgB,CAAuB;IACvC,eAAe,CAAuB;IAEtC,YACE,KAAc,EACd,EAAU,EACV,MAA0C;QAE1C,KAAK,CAAC,IAAI,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QAC5C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC;IACtB,CAAC;IAED,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,sBAAsB,CAAC,UAAU;YACjC,KAAK,CAAC,QAAQ;YACd,IAAI,CAAC,EAAE;YACP,IAAI,CAAC,KAAK,CAAC,SAAS;YACpB,IAAI,CAAC,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAE;YACrC,IAAI,CAAC,gBAAgB,EAAE,QAAQ,EAAE,IAAI,EAAE;YACvC,IAAI,CAAC,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;CACF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DSLDiagram_ClassViewReference.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
1
|
+
{"version":3,"file":"DSLDiagram_ClassViewReference.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EACL,mCAAmC,EACnC,kBAAkB,EAClB,KAAK,mCAAmC,EACxC,KAAK,2BAA2B,EACjC,MAAM,qBAAqB,CAAC;AAE7B,8BAAsB,kBAAmB,SAAQ,kBAAkB;IACjE,SAAkB,cAAc,EAAE,2BAA2B,CAAC,OAAO,CAAC,CAAC;IACvE,KAAK,EAAE,SAAS,CAAC;IAEjB,SAAS,aACP,cAAc,EAAE,2BAA2B,CAAC,OAAO,CAAC,EACpD,KAAK,EAAE,SAAS;CAMnB;AAED,qBAAa,0BAA2B,SAAQ,kBAAkB;IAChE,SAAkB,cAAc,EAAE,mCAAmC,CAAC,OAAO,CAAC,CAAC;IAE/E,OAAO;IAQP,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,0BAA0B;CAG5D;AAED,qBAAa,0BAA2B,SAAQ,kBAAkB;IAChE,SAAkB,cAAc,EAAE,mCAAmC,CAAC,OAAO,CAAC,CAAC;IAE/E,OAAO;IAQP,MAAM,CAAC,MAAM,CACX,cAAc,EAAE,mCAAmC,CAAC,OAAO,CAAC,EAC5D,KAAK,EAAE,SAAS,GACf,0BAA0B;CAG9B"}
|
package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.js
CHANGED
@@ -13,16 +13,12 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { observable, makeObservable } from 'mobx';
|
17
16
|
import { PackageableElementExplicitReference, ReferenceWithOwner, } from '@finos/legend-graph';
|
18
17
|
export class ClassViewReference extends ReferenceWithOwner {
|
19
18
|
ownerReference;
|
20
19
|
value;
|
21
20
|
constructor(ownerReference, value) {
|
22
21
|
super(ownerReference);
|
23
|
-
makeObservable(this, {
|
24
|
-
value: observable,
|
25
|
-
});
|
26
22
|
this.ownerReference = ownerReference;
|
27
23
|
this.value = value;
|
28
24
|
}
|
package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DSLDiagram_ClassViewReference.js","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
1
|
+
{"version":3,"file":"DSLDiagram_ClassViewReference.js","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EACL,mCAAmC,EACnC,kBAAkB,GAGnB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,OAAgB,kBAAmB,SAAQ,kBAAkB;IAC/C,cAAc,CAAuC;IACvE,KAAK,CAAY;IAEjB,YACE,cAAoD,EACpD,KAAgB;QAEhB,KAAK,CAAC,cAAc,CAAC,CAAC;QACtB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF;AAED,MAAM,OAAO,0BAA2B,SAAQ,kBAAkB;IAC9C,cAAc,CAA+C;IAE/E,YAAoB,KAAgB;QAClC,MAAM,cAAc,GAAG,mCAAmC,CAAC,MAAM,CAC/D,KAAK,CAAC,KAAK,CACZ,CAAC;QACF,KAAK,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;QAC7B,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;IACvC,CAAC;IAED,MAAM,CAAC,MAAM,CAAC,KAAgB;QAC5B,OAAO,IAAI,0BAA0B,CAAC,KAAK,CAAC,CAAC;IAC/C,CAAC;CACF;AAED,MAAM,OAAO,0BAA2B,SAAQ,kBAAkB;IAC9C,cAAc,CAA+C;IAE/E,YACE,cAA4D,EAC5D,KAAgB;QAEhB,KAAK,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;QAC7B,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;IACvC,CAAC;IAED,MAAM,CAAC,MAAM,CACX,cAA4D,EAC5D,KAAgB;QAEhB,OAAO,IAAI,0BAA0B,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;IAC/D,CAAC;CACF"}
|
@@ -24,7 +24,6 @@ export declare class Diagram extends PackageableElement implements Hashable {
|
|
24
24
|
associationViews: AssociationView[];
|
25
25
|
generalizationViews: GeneralizationView[];
|
26
26
|
propertyViews: PropertyView[];
|
27
|
-
constructor(name: string);
|
28
27
|
protected get _elementHashCode(): string;
|
29
28
|
accept_PackageableElementVisitor<T>(visitor: PackageableElementVisitor<T>): T;
|
30
29
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DSLDiagram_Diagram.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
1
|
+
{"version":3,"file":"DSLDiagram_Diagram.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EACL,KAAK,yBAAyB,EAC9B,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAG7B,qBAAa,OAAQ,SAAQ,kBAAmB,YAAW,QAAQ;IACjE,UAAU,EAAE,SAAS,EAAE,CAAM;IAC7B,gBAAgB,EAAE,eAAe,EAAE,CAAM;IACzC,mBAAmB,EAAE,kBAAkB,EAAE,CAAM;IAC/C,aAAa,EAAE,YAAY,EAAE,CAAM;IAEnC,cAAuB,gBAAgB,IAAI,MAAM,CAShD;IAED,gCAAgC,CAAC,CAAC,EAChC,OAAO,EAAE,yBAAyB,CAAC,CAAC,CAAC,GACpC,CAAC;CAGL"}
|
@@ -13,7 +13,6 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { observable, makeObservable, override } from 'mobx';
|
17
16
|
import { hashArray } from '@finos/legend-shared';
|
18
17
|
import { PackageableElement, } from '@finos/legend-graph';
|
19
18
|
import { DIAGRAM_HASH_STRUCTURE } from '../../../../DSLDiagram_ModelUtils';
|
@@ -22,16 +21,6 @@ export class Diagram extends PackageableElement {
|
|
22
21
|
associationViews = [];
|
23
22
|
generalizationViews = [];
|
24
23
|
propertyViews = [];
|
25
|
-
constructor(name) {
|
26
|
-
super(name);
|
27
|
-
makeObservable(this, {
|
28
|
-
classViews: observable,
|
29
|
-
associationViews: observable,
|
30
|
-
generalizationViews: observable,
|
31
|
-
propertyViews: observable,
|
32
|
-
_elementHashCode: override,
|
33
|
-
});
|
34
|
-
}
|
35
24
|
get _elementHashCode() {
|
36
25
|
return hashArray([
|
37
26
|
DIAGRAM_HASH_STRUCTURE.DIAGRAM,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DSLDiagram_Diagram.js","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"DSLDiagram_Diagram.js","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAiB,MAAM,sBAAsB,CAAC;AAKhE,OAAO,EAEL,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,MAAM,OAAO,OAAQ,SAAQ,kBAAkB;IAC7C,UAAU,GAAgB,EAAE,CAAC;IAC7B,gBAAgB,GAAsB,EAAE,CAAC;IACzC,mBAAmB,GAAyB,EAAE,CAAC;IAC/C,aAAa,GAAmB,EAAE,CAAC;IAEnC,IAAuB,gBAAgB;QACrC,OAAO,SAAS,CAAC;YACf,sBAAsB,CAAC,OAAO;YAC9B,IAAI,CAAC,IAAI;YACT,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC;YAC1B,0BAA0B;YAC1B,SAAS,CAAC,IAAI,CAAC,mBAAmB,CAAC;YACnC,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC;SAC9B,CAAC,CAAC;IACL,CAAC;IAED,gCAAgC,CAC9B,OAAqC;QAErC,OAAO,OAAO,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;CACF"}
|
package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.d.ts
CHANGED
@@ -15,10 +15,7 @@
|
|
15
15
|
*/
|
16
16
|
import { type Hashable } from '@finos/legend-shared';
|
17
17
|
import { RelationshipView } from './DSLDiagram_RelationshipView';
|
18
|
-
import type { Diagram } from './DSLDiagram_Diagram';
|
19
|
-
import type { ClassView } from './DSLDiagram_ClassView';
|
20
18
|
export declare class GeneralizationView extends RelationshipView implements Hashable {
|
21
|
-
constructor(owner: Diagram, from: ClassView, to: ClassView);
|
22
19
|
get hashCode(): string;
|
23
20
|
}
|
24
21
|
//# sourceMappingURL=DSLDiagram_GeneralizationView.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DSLDiagram_GeneralizationView.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
1
|
+
{"version":3,"file":"DSLDiagram_GeneralizationView.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,qBAAa,kBAAmB,SAAQ,gBAAiB,YAAW,QAAQ;IAC1E,IAAa,QAAQ,IAAI,MAAM,CAK9B;CACF"}
|
package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.js
CHANGED
@@ -13,17 +13,10 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { computed, makeObservable } from 'mobx';
|
17
16
|
import { hashArray } from '@finos/legend-shared';
|
18
17
|
import { RelationshipView } from './DSLDiagram_RelationshipView';
|
19
18
|
import { DIAGRAM_HASH_STRUCTURE } from '../../../../DSLDiagram_ModelUtils';
|
20
19
|
export class GeneralizationView extends RelationshipView {
|
21
|
-
constructor(owner, from, to) {
|
22
|
-
super(owner, from, to);
|
23
|
-
makeObservable(this, {
|
24
|
-
hashCode: computed,
|
25
|
-
});
|
26
|
-
}
|
27
20
|
get hashCode() {
|
28
21
|
return hashArray([
|
29
22
|
DIAGRAM_HASH_STRUCTURE.GENERALIZATION_VIEW,
|
package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DSLDiagram_GeneralizationView.js","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"DSLDiagram_GeneralizationView.js","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAiB,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,MAAM,OAAO,kBAAmB,SAAQ,gBAAgB;IACtD,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,sBAAsB,CAAC,mBAAmB;YAC1C,KAAK,CAAC,QAAQ;SACf,CAAC,CAAC;IACL,CAAC;CACF"}
|
@@ -15,11 +15,7 @@
|
|
15
15
|
*/
|
16
16
|
import { type Hashable } from '@finos/legend-shared';
|
17
17
|
import { PropertyHolderView } from './DSLDiagram_PropertyHolderView';
|
18
|
-
import type { Diagram } from './DSLDiagram_Diagram';
|
19
|
-
import type { ClassView } from './DSLDiagram_ClassView';
|
20
|
-
import type { PropertyReference } from '@finos/legend-graph';
|
21
18
|
export declare class PropertyView extends PropertyHolderView implements Hashable {
|
22
|
-
constructor(owner: Diagram, property: PropertyReference, from: ClassView, to: ClassView);
|
23
19
|
get hashCode(): string;
|
24
20
|
}
|
25
21
|
//# sourceMappingURL=DSLDiagram_PropertyView.d.ts.map
|
package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DSLDiagram_PropertyView.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
1
|
+
{"version":3,"file":"DSLDiagram_PropertyView.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAGrE,qBAAa,YAAa,SAAQ,kBAAmB,YAAW,QAAQ;IACtE,IAAa,QAAQ,IAAI,MAAM,CAE9B;CACF"}
|
@@ -13,17 +13,10 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { computed, makeObservable } from 'mobx';
|
17
16
|
import { hashArray } from '@finos/legend-shared';
|
18
17
|
import { PropertyHolderView } from './DSLDiagram_PropertyHolderView';
|
19
18
|
import { DIAGRAM_HASH_STRUCTURE } from '../../../../DSLDiagram_ModelUtils';
|
20
19
|
export class PropertyView extends PropertyHolderView {
|
21
|
-
constructor(owner, property, from, to) {
|
22
|
-
super(owner, property, from, to);
|
23
|
-
makeObservable(this, {
|
24
|
-
hashCode: computed,
|
25
|
-
});
|
26
|
-
}
|
27
20
|
get hashCode() {
|
28
21
|
return hashArray([DIAGRAM_HASH_STRUCTURE.PROPERTY_VIEW, super.hashCode]);
|
29
22
|
}
|
package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DSLDiagram_PropertyView.js","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"DSLDiagram_PropertyView.js","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAiB,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,MAAM,OAAO,YAAa,SAAQ,kBAAkB;IAClD,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC,CAAC,sBAAsB,CAAC,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC3E,CAAC;CACF"}
|
package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.d.ts
CHANGED
@@ -14,8 +14,13 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
import type { ClassViewReference } from './DSLDiagram_ClassViewReference';
|
17
|
-
export declare class
|
17
|
+
export declare class RelationshipEdgeView {
|
18
18
|
classView: ClassViewReference;
|
19
|
+
/**
|
20
|
+
* Offsets from the center of the class view.
|
21
|
+
*
|
22
|
+
* These offsets can be used to compute the end points of relationship views.
|
23
|
+
*/
|
19
24
|
offsetX?: number | undefined;
|
20
25
|
offsetY?: number | undefined;
|
21
26
|
constructor(classView: ClassViewReference);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DSLDiagram_RelationshipEdgeView.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
1
|
+
{"version":3,"file":"DSLDiagram_RelationshipEdgeView.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAE1E,qBAAa,oBAAoB;IAC/B,SAAS,EAAE,kBAAkB,CAAC;IAC9B;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;gBAEjB,SAAS,EAAE,kBAAkB;CAG1C"}
|
package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.js
CHANGED
@@ -13,16 +13,16 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
|
17
|
-
export class RelationShipEdgeView {
|
16
|
+
export class RelationshipEdgeView {
|
18
17
|
classView;
|
18
|
+
/**
|
19
|
+
* Offsets from the center of the class view.
|
20
|
+
*
|
21
|
+
* These offsets can be used to compute the end points of relationship views.
|
22
|
+
*/
|
19
23
|
offsetX;
|
20
24
|
offsetY;
|
21
25
|
constructor(classView) {
|
22
|
-
makeObservable(this, {
|
23
|
-
offsetX: observable,
|
24
|
-
offsetY: observable,
|
25
|
-
});
|
26
26
|
this.classView = classView;
|
27
27
|
}
|
28
28
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DSLDiagram_RelationshipEdgeView.js","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
1
|
+
{"version":3,"file":"DSLDiagram_RelationshipEdgeView.js","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,MAAM,OAAO,oBAAoB;IAC/B,SAAS,CAAqB;IAC9B;;;;OAIG;IACH,OAAO,CAAsB;IAC7B,OAAO,CAAsB;IAE7B,YAAY,SAA6B;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;CACF"}
|
package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.d.ts
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
import { type Hashable } from '@finos/legend-shared';
|
17
|
-
import {
|
17
|
+
import { RelationshipEdgeView } from './DSLDiagram_RelationshipEdgeView';
|
18
18
|
import { Point } from './geometry/DSLDiagram_Point';
|
19
19
|
import type { ClassView } from './DSLDiagram_ClassView';
|
20
20
|
import type { Diagram } from './DSLDiagram_Diagram';
|
@@ -22,21 +22,39 @@ export declare class RelationshipView implements Hashable {
|
|
22
22
|
owner: Diagram;
|
23
23
|
from: RelationshipEdgeView;
|
24
24
|
to: RelationshipEdgeView;
|
25
|
+
/**
|
26
|
+
* NOTE: Unlike in the protocol model, we don't store the end points in the path but only store the
|
27
|
+
* offsets of that point from the center of the end/start classviews. The main purpose here is to
|
28
|
+
* make less error. We don't need to bother maintaining these points in the path. They are
|
29
|
+
* auto-managed. Even if an erroneous path is set (e.g. an empty list of points), this logic
|
30
|
+
* that we have will rectify that and create a sensible path.
|
31
|
+
*
|
32
|
+
* In exchange, this logic is a little complicated, we have tried to document as much about it as we could
|
33
|
+
* but the logic is not straight forward. Perhaps, we could simplify this in the future.
|
34
|
+
*/
|
25
35
|
path: Point[];
|
26
36
|
constructor(owner: Diagram, from: ClassView, to: ClassView);
|
27
37
|
/**
|
28
|
-
*
|
38
|
+
* Calculate the end points of the edge using offset, otherwise, use the center
|
39
|
+
*/
|
40
|
+
private computeEdgeEndpoint;
|
41
|
+
/**
|
42
|
+
* Compute the full path for the relationship view (including the ends even if these
|
43
|
+
* ends lie inside of the classviews)
|
44
|
+
*
|
45
|
+
* Notice here that the end points are recomputed every time, as such
|
29
46
|
* `path` only stores point that matters to the edge but are not end points
|
30
47
|
*/
|
31
48
|
buildFullPath(allowChange?: boolean): Point[];
|
32
49
|
/**
|
33
|
-
*
|
50
|
+
* For a path, only keep **at most** 1 point at each end that lies inside the class view.
|
51
|
+
* If there is no inside points, none of kept, so the path only contains outside points.
|
34
52
|
*/
|
35
|
-
|
53
|
+
static pruneUnnecessaryInsidePoints: (path: Point[], from: ClassView, to: ClassView) => Point[];
|
36
54
|
/**
|
37
|
-
*
|
55
|
+
* This method will compute the full path from the offset within class view for serialization and persistence purpose
|
38
56
|
*/
|
39
|
-
|
57
|
+
get pathForSerialization(): Point[];
|
40
58
|
get hashCode(): string;
|
41
59
|
}
|
42
60
|
//# sourceMappingURL=DSLDiagram_RelationshipView.d.ts.map
|
package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DSLDiagram_RelationshipView.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
1
|
+
{"version":3,"file":"DSLDiagram_RelationshipView.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAIpD,qBAAa,gBAAiB,YAAW,QAAQ;IAC/C,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,oBAAoB,CAAC;IAC3B,EAAE,EAAE,oBAAoB,CAAC;IACzB;;;;;;;;;OASG;IACH,IAAI,EAAE,KAAK,EAAE,CAAM;gBAEP,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS;IAQ1D;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAkB3B;;;;;;OAMG;IACH,aAAa,CAAC,WAAW,UAAO,GAAG,KAAK,EAAE;IAQ1C;;;OAGG;IACH,MAAM,CAAC,4BAA4B,SAC3B,KAAK,EAAE,QACP,SAAS,MACX,SAAS,KACZ,KAAK,EAAE,CA6BR;IAEF;;OAEG;IACH,IAAI,oBAAoB,IAAI,KAAK,EAAE,CAMlC;IAED,IAAI,QAAQ,IAAI,MAAM,CAOrB;CACF"}
|
package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.js
CHANGED
@@ -13,46 +13,31 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { observable, computed, makeObservable } from 'mobx';
|
17
16
|
import { hashArray } from '@finos/legend-shared';
|
18
|
-
import {
|
17
|
+
import { RelationshipEdgeView } from './DSLDiagram_RelationshipEdgeView';
|
19
18
|
import { Point } from './geometry/DSLDiagram_Point';
|
20
19
|
import { ClassViewExplicitReference } from './DSLDiagram_ClassViewReference';
|
21
20
|
import { DIAGRAM_HASH_STRUCTURE } from '../../../../DSLDiagram_ModelUtils';
|
22
|
-
import { _relationView_manageInsidePointsDynamically } from './DSLDiagram_GraphModifierHelper';
|
23
21
|
export class RelationshipView {
|
24
22
|
owner;
|
25
23
|
from;
|
26
24
|
to;
|
27
|
-
|
28
|
-
|
25
|
+
/**
|
26
|
+
* NOTE: Unlike in the protocol model, we don't store the end points in the path but only store the
|
27
|
+
* offsets of that point from the center of the end/start classviews. The main purpose here is to
|
28
|
+
* make less error. We don't need to bother maintaining these points in the path. They are
|
29
|
+
* auto-managed. Even if an erroneous path is set (e.g. an empty list of points), this logic
|
30
|
+
* that we have will rectify that and create a sensible path.
|
31
|
+
*
|
32
|
+
* In exchange, this logic is a little complicated, we have tried to document as much about it as we could
|
33
|
+
* but the logic is not straight forward. Perhaps, we could simplify this in the future.
|
34
|
+
*/
|
29
35
|
path = [];
|
30
36
|
constructor(owner, from, to) {
|
31
|
-
makeObservable(this, {
|
32
|
-
path: observable,
|
33
|
-
fullPath: computed,
|
34
|
-
});
|
35
37
|
this.owner = owner;
|
36
38
|
this.from = new RelationshipEdgeView(ClassViewExplicitReference.create(from));
|
37
39
|
this.to = new RelationshipEdgeView(ClassViewExplicitReference.create(to));
|
38
40
|
}
|
39
|
-
/**
|
40
|
-
* Compute the full path for an edge, but notice here that the end points are recomputed every time, as such
|
41
|
-
* `path` only stores point that matters to the edge but are not end points
|
42
|
-
*/
|
43
|
-
buildFullPath(allowChange = true) {
|
44
|
-
return [
|
45
|
-
this.computeEdgeEndpoint(this.from, allowChange),
|
46
|
-
...this.path,
|
47
|
-
this.computeEdgeEndpoint(this.to, allowChange),
|
48
|
-
];
|
49
|
-
}
|
50
|
-
/**
|
51
|
-
* This method will compute the full path from the offset within class view for persistence purpose
|
52
|
-
*/
|
53
|
-
get fullPath() {
|
54
|
-
return _relationView_manageInsidePointsDynamically(this.buildFullPath(), this.from.classView.value, this.to.classView.value);
|
55
|
-
}
|
56
41
|
/**
|
57
42
|
* Calculate the end points of the edge using offset, otherwise, use the center
|
58
43
|
*/
|
@@ -70,12 +55,58 @@ export class RelationshipView {
|
|
70
55
|
}
|
71
56
|
return new Point(center.x, center.y);
|
72
57
|
}
|
58
|
+
/**
|
59
|
+
* Compute the full path for the relationship view (including the ends even if these
|
60
|
+
* ends lie inside of the classviews)
|
61
|
+
*
|
62
|
+
* Notice here that the end points are recomputed every time, as such
|
63
|
+
* `path` only stores point that matters to the edge but are not end points
|
64
|
+
*/
|
65
|
+
buildFullPath(allowChange = true) {
|
66
|
+
return [
|
67
|
+
this.computeEdgeEndpoint(this.from, allowChange),
|
68
|
+
...this.path,
|
69
|
+
this.computeEdgeEndpoint(this.to, allowChange),
|
70
|
+
];
|
71
|
+
}
|
72
|
+
/**
|
73
|
+
* For a path, only keep **at most** 1 point at each end that lies inside the class view.
|
74
|
+
* If there is no inside points, none of kept, so the path only contains outside points.
|
75
|
+
*/
|
76
|
+
static pruneUnnecessaryInsidePoints = (path, from, to) => {
|
77
|
+
if (!path.length) {
|
78
|
+
return [];
|
79
|
+
}
|
80
|
+
let start = 0;
|
81
|
+
let startPoint = path[start];
|
82
|
+
while (start < path.length - 1 &&
|
83
|
+
from.contains(startPoint.x, startPoint.y)) {
|
84
|
+
start++;
|
85
|
+
startPoint = path[start];
|
86
|
+
}
|
87
|
+
// NOTE: due to the usage path, we could make sure `end > start`, but maybe this
|
88
|
+
// is an improvement to be done
|
89
|
+
let end = path.length - 1;
|
90
|
+
let endPoint = path[end];
|
91
|
+
while (end > 0 && to.contains(endPoint.x, endPoint.y)) {
|
92
|
+
end--;
|
93
|
+
endPoint = path[end];
|
94
|
+
}
|
95
|
+
// NOTE: slice upper bound is exclusive, hence the +2 instead of +1
|
96
|
+
return path.slice(start - 1, end + 2);
|
97
|
+
};
|
98
|
+
/**
|
99
|
+
* This method will compute the full path from the offset within class view for serialization and persistence purpose
|
100
|
+
*/
|
101
|
+
get pathForSerialization() {
|
102
|
+
return RelationshipView.pruneUnnecessaryInsidePoints(this.buildFullPath(), this.from.classView.value, this.to.classView.value);
|
103
|
+
}
|
73
104
|
get hashCode() {
|
74
105
|
return hashArray([
|
75
106
|
DIAGRAM_HASH_STRUCTURE.RELATIONSHIP_VIEW,
|
76
107
|
this.from.classView.value.id,
|
77
108
|
this.to.classView.value.id,
|
78
|
-
hashArray(this.
|
109
|
+
hashArray(this.pathForSerialization),
|
79
110
|
]);
|
80
111
|
}
|
81
112
|
}
|
package/lib/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DSLDiagram_RelationshipView.js","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"DSLDiagram_RelationshipView.js","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAiB,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAGpD,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,MAAM,OAAO,gBAAgB;IAC3B,KAAK,CAAU;IACf,IAAI,CAAuB;IAC3B,EAAE,CAAuB;IACzB;;;;;;;;;OASG;IACH,IAAI,GAAY,EAAE,CAAC;IAEnB,YAAY,KAAc,EAAE,IAAe,EAAE,EAAa;QACxD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,oBAAoB,CAClC,0BAA0B,CAAC,MAAM,CAAC,IAAI,CAAC,CACxC,CAAC;QACF,IAAI,CAAC,EAAE,GAAG,IAAI,oBAAoB,CAAC,0BAA0B,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;IAC5E,CAAC;IAED;;OAEG;IACK,mBAAmB,CACzB,QAA8B,EAC9B,WAAW,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pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
1
|
+
{"version":3,"file":"DSLDiagram_PositionedRectangle.d.ts","sourceRoot":"","sources":["../../../../../../../src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGnD,qBAAa,mBAAoB,YAAW,QAAQ;IAClD,QAAQ,EAAE,KAAK,CAAC;IAChB,SAAS,EAAE,SAAS,CAAC;IACrB,eAAe,KAAM;gBAET,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS;IAKjD,SAAS,QAAO,KAAK,CAIjB;IACJ,MAAM,QAAO,KAAK,CAId;IAEJ;;OAEG;IACH,yBAAyB,IAAI,mBAAmB;IAUhD,WAAW,CAAC,QAAQ,EAAE,mBAAmB,GAAG,OAAO;IAmBnD,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO;IAUvC,YAAY,CAAC,GAAG,EAAE,mBAAmB,GAAG,mBAAmB;IAiB3D,IAAI,QAAQ,IAAI,MAAM,CAOrB;CACF"}
|
@@ -13,7 +13,6 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { observable, makeObservable } from 'mobx';
|
17
16
|
import { hashArray } from '@finos/legend-shared';
|
18
17
|
import { Point } from './DSLDiagram_Point';
|
19
18
|
import { Rectangle } from './DSLDiagram_Rectangle';
|
@@ -23,9 +22,6 @@ export class PositionedRectangle {
|
|
23
22
|
rectangle;
|
24
23
|
dummyObservable = {};
|
25
24
|
constructor(position, rectangle) {
|
26
|
-
makeObservable(this, {
|
27
|
-
dummyObservable: observable,
|
28
|
-
});
|
29
25
|
this.position = position;
|
30
26
|
this.rectangle = rectangle;
|
31
27
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DSLDiagram_PositionedRectangle.js","sourceRoot":"","sources":["../../../../../../../src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"DSLDiagram_PositionedRectangle.js","sourceRoot":"","sources":["../../../../../../../src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAiB,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAE9E,MAAM,OAAO,mBAAmB;IAC9B,QAAQ,CAAQ;IAChB,SAAS,CAAY;IACrB,eAAe,GAAG,EAAE,CAAC;IAErB,YAAY,QAAe,EAAE,SAAoB;QAC/C,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;IAED,SAAS,GAAG,GAAU,EAAE,CACtB,IAAI,KAAK,CACP,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,EACtC,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CACxC,CAAC;IACJ,MAAM,GAAG,GAAU,EAAE,CACnB,IAAI,KAAK,CACP,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,IAAI,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OAAO,MAAM,CAAC;IAChB,CAAC;IAED,IAAI,QAAQ;QACV,IAAI,CAAC,eAAe,CAAC,CAAC,qDAAqD;QAC3E,OAAO,SAAS,CAAC;YACf,sBAAsB,CAAC,oBAAoB;YAC3C,IAAI,CAAC,QAAQ;YACb,IAAI,CAAC,SAAS;SACf,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Vector.d.ts
CHANGED
@@ -15,11 +15,11 @@
|
|
15
15
|
*/
|
16
16
|
import type { Point } from './DSLDiagram_Point';
|
17
17
|
export declare class Vector {
|
18
|
-
x: number;
|
19
|
-
y: number;
|
18
|
+
readonly x: number;
|
19
|
+
readonly y: number;
|
20
20
|
constructor(x: number, y: number);
|
21
21
|
static fromPoints(a: Point, b: Point): Vector;
|
22
|
-
|
22
|
+
unit(): Vector;
|
23
23
|
normal(other: Vector): Vector;
|
24
24
|
dotProduct(other: Vector): number;
|
25
25
|
}
|
package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Vector.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DSLDiagram_Vector.d.ts","sourceRoot":"","sources":["../../../../../../../src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Vector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEhD,qBAAa,MAAM;IACjB,CAAC,EAAE,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"DSLDiagram_Vector.d.ts","sourceRoot":"","sources":["../../../../../../../src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Vector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEhD,qBAAa,MAAM;IACjB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;gBAEP,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAKhC,MAAM,CAAC,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,GAAG,MAAM;IAI7C,IAAI,IAAI,MAAM;IAKd,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAI7B,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;CAGlC"}
|
package/lib/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Vector.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DSLDiagram_Vector.js","sourceRoot":"","sources":["../../../../../../../src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Vector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,MAAM,OAAO,MAAM;
|
1
|
+
{"version":3,"file":"DSLDiagram_Vector.js","sourceRoot":"","sources":["../../../../../../../src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Vector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,MAAM,OAAO,MAAM;IACR,CAAC,CAAS;IACV,CAAC,CAAS;IAEnB,YAAY,CAAS,EAAE,CAAS;QAC9B,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,CAAQ,EAAE,CAAQ;QAClC,OAAO,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1C,CAAC;IAED,IAAI;QACF,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QAC1D,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IAClD,CAAC;IAED,MAAM,CAAC,KAAa;QAClB,OAAO,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3D,CAAC;IAED,UAAU,CAAC,KAAa;QACtB,OAAO,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC;IAC7C,CAAC;CACF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"V1_DSLDiagram_GraphBuilderHelper.d.ts","sourceRoot":"","sources":["../../../../../../../src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EACV,mCAAmC,EACnC,sBAAsB,EACvB,MAAM,qBAAqB,CAAC;AAM7B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+EAA+E,CAAC;AAC7G,OAAO,EAAE,SAAS,EAAE,MAAM,iFAAiF,CAAC;AAG5G,OAAO,EAAE,YAAY,EAAE,MAAM,oFAAoF,CAAC;AAClH,OAAO,EAAE,kBAAkB,EAAE,MAAM,0FAA0F,CAAC;AAC9H,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iEAAiE,CAAC;AAGpG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oEAAoE,CAAC;AAC1G,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0EAA0E,CAAC;
|
1
|
+
{"version":3,"file":"V1_DSLDiagram_GraphBuilderHelper.d.ts","sourceRoot":"","sources":["../../../../../../../src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EACV,mCAAmC,EACnC,sBAAsB,EACvB,MAAM,qBAAqB,CAAC;AAM7B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+EAA+E,CAAC;AAC7G,OAAO,EAAE,SAAS,EAAE,MAAM,iFAAiF,CAAC;AAG5G,OAAO,EAAE,YAAY,EAAE,MAAM,oFAAoF,CAAC;AAClH,OAAO,EAAE,kBAAkB,EAAE,MAAM,0FAA0F,CAAC;AAC9H,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iEAAiE,CAAC;AAGpG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oEAAoE,CAAC;AAC1G,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0EAA0E,CAAC;AAwBtH,eAAO,MAAM,iBAAiB,cACjB,YAAY,WACd,sBAAsB,WACtB,OAAO,KACf,SA4BF,CAAC;AAEF,eAAO,MAAM,oBAAoB,iBACjB,eAAe,WACpB,sBAAsB,WACtB,OAAO,KACf,YAwBF,CAAC;AAEF,eAAO,MAAM,0BAA0B,uBACjB,qBAAqB,WAChC,OAAO,KACf,kBAqBF,CAAC;AAEF,eAAO,MAAM,iBAAiB,SACtB,MAAM,WACH,sBAAsB,KAC9B,oCAAoC,OAAO,CAG3C,CAAC"}
|