@tmagic/stage 1.2.0-beta.24 → 1.2.0-beta.26
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/tmagic-stage.js +5 -1
- package/dist/tmagic-stage.js.map +1 -1
- package/dist/tmagic-stage.umd.cjs +5 -1
- package/dist/tmagic-stage.umd.cjs.map +1 -1
- package/package.json +4 -4
- package/src/ActionManager.ts +1 -0
- package/src/StageCore.ts +1 -0
- package/src/StageDragResize.ts +3 -1
- package/src/types.ts +3 -0
- package/types/StageDragResize.d.ts +1 -0
- package/types/types.d.ts +3 -0
package/dist/tmagic-stage.js
CHANGED
|
@@ -745,6 +745,7 @@ class StageDragResize extends MoveableOptionsManager {
|
|
|
745
745
|
moveable;
|
|
746
746
|
dragStatus = StageDragStatus.END;
|
|
747
747
|
dragResizeHelper;
|
|
748
|
+
disabledDragStart;
|
|
748
749
|
getRenderDocument;
|
|
749
750
|
markContainerEnd;
|
|
750
751
|
delayedMarkContainer;
|
|
@@ -753,6 +754,7 @@ class StageDragResize extends MoveableOptionsManager {
|
|
|
753
754
|
this.getRenderDocument = config.getRenderDocument;
|
|
754
755
|
this.markContainerEnd = config.markContainerEnd;
|
|
755
756
|
this.delayedMarkContainer = config.delayedMarkContainer;
|
|
757
|
+
this.disabledDragStart = config.disabledDragStart;
|
|
756
758
|
this.dragResizeHelper = new DragResizeHelper({
|
|
757
759
|
container: config.container,
|
|
758
760
|
updateDragEl: config.updateDragEl
|
|
@@ -769,7 +771,7 @@ class StageDragResize extends MoveableOptionsManager {
|
|
|
769
771
|
} else {
|
|
770
772
|
this.updateMoveable(el);
|
|
771
773
|
}
|
|
772
|
-
if (event) {
|
|
774
|
+
if (event && !this.disabledDragStart) {
|
|
773
775
|
this.moveable?.dragStart(event);
|
|
774
776
|
}
|
|
775
777
|
}
|
|
@@ -1202,6 +1204,7 @@ class ActionManager extends EventEmitter {
|
|
|
1202
1204
|
this.isContainer = config.isContainer;
|
|
1203
1205
|
this.dr = new StageDragResize({
|
|
1204
1206
|
container: config.container,
|
|
1207
|
+
disabledDragStart: config.disabledDragStart,
|
|
1205
1208
|
getRootContainer: config.getRootContainer,
|
|
1206
1209
|
getRenderDocument: config.getRenderDocument,
|
|
1207
1210
|
updateDragEl: config.updateDragEl,
|
|
@@ -2087,6 +2090,7 @@ class StageCore extends EventEmitter$1 {
|
|
|
2087
2090
|
moveableOptions: config.moveableOptions,
|
|
2088
2091
|
multiMoveableOptions: config.multiMoveableOptions,
|
|
2089
2092
|
container: this.mask.content,
|
|
2093
|
+
disabledDragStart: config.disabledDragStart,
|
|
2090
2094
|
canSelect: config.canSelect,
|
|
2091
2095
|
isContainer: config.isContainer,
|
|
2092
2096
|
updateDragEl: config.updateDragEl,
|