@meta2d/core 1.1.18 → 1.1.19
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/package.json +1 -1
- package/src/canvas/canvas.js +9 -0
- package/src/canvas/canvas.js.map +1 -1
- package/src/diagrams/iframe.js +1 -1
- package/src/diagrams/iframe.js.map +1 -1
- package/src/options.js +1 -1
- package/src/options.js.map +1 -1
package/package.json
CHANGED
package/src/canvas/canvas.js
CHANGED
|
@@ -1961,6 +1961,15 @@ export class Canvas {
|
|
|
1961
1961
|
if (this.mouseRight === MouseRight.Down) {
|
|
1962
1962
|
this.mouseRight = MouseRight.Translate;
|
|
1963
1963
|
}
|
|
1964
|
+
const activePen = this.store.active[0];
|
|
1965
|
+
if (activePen &&
|
|
1966
|
+
this.store.data.locked &&
|
|
1967
|
+
(activePen.locked === undefined ||
|
|
1968
|
+
activePen.locked < LockState.DisableMove)) {
|
|
1969
|
+
// 图元鼠标按下后移动交互
|
|
1970
|
+
activePen?.onMouseMove?.(activePen, this.mousePos);
|
|
1971
|
+
return;
|
|
1972
|
+
}
|
|
1964
1973
|
// Translate
|
|
1965
1974
|
if (this.store.data.locked === LockState.DisableEdit ||
|
|
1966
1975
|
this.store.data.locked === LockState.DisableScale ||
|