@mx-sose-front/mx-sose-graph 1.1.6 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -104
- package/dist/index.esm.js +72 -372
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/InteractionLayer.vue +3 -93
- package/src/store/graphStore.ts +50 -232
- package/src/utils/containers.ts +2 -4
- package/src/utils/drag.ts +8 -48
- package/src/utils/keyboardUtils.ts +11 -25
- package/src/utils/shapeOps/shapeOps.ts +25 -69
- package/src/view/graph.vue +2 -4
package/dist/index.d.ts
CHANGED
|
@@ -368,13 +368,6 @@ declare type Padding = number | {
|
|
|
368
368
|
left: number;
|
|
369
369
|
};
|
|
370
370
|
|
|
371
|
-
declare type Rect = {
|
|
372
|
-
x: number;
|
|
373
|
-
y: number;
|
|
374
|
-
width: number;
|
|
375
|
-
height: number;
|
|
376
|
-
};
|
|
377
|
-
|
|
378
371
|
declare interface scenarioMenu {
|
|
379
372
|
[key: string]: any;
|
|
380
373
|
}
|
|
@@ -1494,38 +1487,6 @@ parentChildMap: ComputedRef<Map<string, string[]>>;
|
|
|
1494
1487
|
shapeMap: ComputedRef<Map<string, Shape>>;
|
|
1495
1488
|
marqueeShapes: ComputedRef<Shape[]>;
|
|
1496
1489
|
ghostShadow: ComputedRef<Shape[]>;
|
|
1497
|
-
dragDescendantsSnapshot: Ref<Map<string, {
|
|
1498
|
-
id: string;
|
|
1499
|
-
x: number;
|
|
1500
|
-
y: number;
|
|
1501
|
-
width: number;
|
|
1502
|
-
height: number;
|
|
1503
|
-
}[]> & Omit<Map<string, {
|
|
1504
|
-
id: string;
|
|
1505
|
-
x: number;
|
|
1506
|
-
y: number;
|
|
1507
|
-
width: number;
|
|
1508
|
-
height: number;
|
|
1509
|
-
}[]>, keyof Map<any, any>>, Map<string, {
|
|
1510
|
-
id: string;
|
|
1511
|
-
x: number;
|
|
1512
|
-
y: number;
|
|
1513
|
-
width: number;
|
|
1514
|
-
height: number;
|
|
1515
|
-
}[]> | (Map<string, {
|
|
1516
|
-
id: string;
|
|
1517
|
-
x: number;
|
|
1518
|
-
y: number;
|
|
1519
|
-
width: number;
|
|
1520
|
-
height: number;
|
|
1521
|
-
}[]> & Omit<Map<string, {
|
|
1522
|
-
id: string;
|
|
1523
|
-
x: number;
|
|
1524
|
-
y: number;
|
|
1525
|
-
width: number;
|
|
1526
|
-
height: number;
|
|
1527
|
-
}[]>, keyof Map<any, any>>)>;
|
|
1528
|
-
dragBase: Ref<Record<string, Rect>, Record<string, Rect>>;
|
|
1529
1490
|
scales: Ref<Record<string, number>, Record<string, number>>;
|
|
1530
1491
|
activeDiagramId: Ref<string | null, string | null>;
|
|
1531
1492
|
currentScale: ComputedRef<number>;
|
|
@@ -1748,7 +1709,7 @@ setIsMouseInGraphView: (isIn: boolean) => void;
|
|
|
1748
1709
|
setCutShapeIds: (ids: string[]) => void;
|
|
1749
1710
|
clearCutShapeIds: () => void;
|
|
1750
1711
|
setCopiedShapesCount: (count: number) => void;
|
|
1751
|
-
}, "taggedValueLabels" | "shapes" | "selectedShape" | "pendingNestedIds" | "diagramTitle" | "isDragging" | "draggingShapeId" | "dragOffset" | "diagrams" | "selectedIds" | "hoverContainerId" | "hoverNestable" | "currentDiagramId" | "canDropOnCanvas" | "canOperate" | "cutShapeIds" | "copiedShapesCount" | "packagesTypes" | "classMetaTypes" | "ownerRequiredShapeKeys" | "pinsTypes" | "portsTypes" | "
|
|
1712
|
+
}, "taggedValueLabels" | "shapes" | "selectedShape" | "pendingNestedIds" | "diagramTitle" | "isDragging" | "draggingShapeId" | "dragOffset" | "diagrams" | "selectedIds" | "hoverContainerId" | "hoverNestable" | "currentDiagramId" | "canDropOnCanvas" | "canOperate" | "cutShapeIds" | "copiedShapesCount" | "packagesTypes" | "classMetaTypes" | "ownerRequiredShapeKeys" | "pinsTypes" | "portsTypes" | "scales" | "activeDiagramId" | "museInGraphView" | "connectMode" | "externalCreatingId">, Pick<{
|
|
1752
1713
|
shapes: Ref<{
|
|
1753
1714
|
id: string;
|
|
1754
1715
|
diagramId: string;
|
|
@@ -2776,38 +2737,6 @@ parentChildMap: ComputedRef<Map<string, string[]>>;
|
|
|
2776
2737
|
shapeMap: ComputedRef<Map<string, Shape>>;
|
|
2777
2738
|
marqueeShapes: ComputedRef<Shape[]>;
|
|
2778
2739
|
ghostShadow: ComputedRef<Shape[]>;
|
|
2779
|
-
dragDescendantsSnapshot: Ref<Map<string, {
|
|
2780
|
-
id: string;
|
|
2781
|
-
x: number;
|
|
2782
|
-
y: number;
|
|
2783
|
-
width: number;
|
|
2784
|
-
height: number;
|
|
2785
|
-
}[]> & Omit<Map<string, {
|
|
2786
|
-
id: string;
|
|
2787
|
-
x: number;
|
|
2788
|
-
y: number;
|
|
2789
|
-
width: number;
|
|
2790
|
-
height: number;
|
|
2791
|
-
}[]>, keyof Map<any, any>>, Map<string, {
|
|
2792
|
-
id: string;
|
|
2793
|
-
x: number;
|
|
2794
|
-
y: number;
|
|
2795
|
-
width: number;
|
|
2796
|
-
height: number;
|
|
2797
|
-
}[]> | (Map<string, {
|
|
2798
|
-
id: string;
|
|
2799
|
-
x: number;
|
|
2800
|
-
y: number;
|
|
2801
|
-
width: number;
|
|
2802
|
-
height: number;
|
|
2803
|
-
}[]> & Omit<Map<string, {
|
|
2804
|
-
id: string;
|
|
2805
|
-
x: number;
|
|
2806
|
-
y: number;
|
|
2807
|
-
width: number;
|
|
2808
|
-
height: number;
|
|
2809
|
-
}[]>, keyof Map<any, any>>)>;
|
|
2810
|
-
dragBase: Ref<Record<string, Rect>, Record<string, Rect>>;
|
|
2811
2740
|
scales: Ref<Record<string, number>, Record<string, number>>;
|
|
2812
2741
|
activeDiagramId: Ref<string | null, string | null>;
|
|
2813
2742
|
currentScale: ComputedRef<number>;
|
|
@@ -4058,38 +3987,6 @@ parentChildMap: ComputedRef<Map<string, string[]>>;
|
|
|
4058
3987
|
shapeMap: ComputedRef<Map<string, Shape>>;
|
|
4059
3988
|
marqueeShapes: ComputedRef<Shape[]>;
|
|
4060
3989
|
ghostShadow: ComputedRef<Shape[]>;
|
|
4061
|
-
dragDescendantsSnapshot: Ref<Map<string, {
|
|
4062
|
-
id: string;
|
|
4063
|
-
x: number;
|
|
4064
|
-
y: number;
|
|
4065
|
-
width: number;
|
|
4066
|
-
height: number;
|
|
4067
|
-
}[]> & Omit<Map<string, {
|
|
4068
|
-
id: string;
|
|
4069
|
-
x: number;
|
|
4070
|
-
y: number;
|
|
4071
|
-
width: number;
|
|
4072
|
-
height: number;
|
|
4073
|
-
}[]>, keyof Map<any, any>>, Map<string, {
|
|
4074
|
-
id: string;
|
|
4075
|
-
x: number;
|
|
4076
|
-
y: number;
|
|
4077
|
-
width: number;
|
|
4078
|
-
height: number;
|
|
4079
|
-
}[]> | (Map<string, {
|
|
4080
|
-
id: string;
|
|
4081
|
-
x: number;
|
|
4082
|
-
y: number;
|
|
4083
|
-
width: number;
|
|
4084
|
-
height: number;
|
|
4085
|
-
}[]> & Omit<Map<string, {
|
|
4086
|
-
id: string;
|
|
4087
|
-
x: number;
|
|
4088
|
-
y: number;
|
|
4089
|
-
width: number;
|
|
4090
|
-
height: number;
|
|
4091
|
-
}[]>, keyof Map<any, any>>)>;
|
|
4092
|
-
dragBase: Ref<Record<string, Rect>, Record<string, Rect>>;
|
|
4093
3990
|
scales: Ref<Record<string, number>, Record<string, number>>;
|
|
4094
3991
|
activeDiagramId: Ref<string | null, string | null>;
|
|
4095
3992
|
currentScale: ComputedRef<number>;
|