@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meta2d/core",
3
- "version": "1.1.18",
3
+ "version": "1.1.19",
4
4
  "description": "@meta2d/core: Powerful, Beautiful, Simple, Open - Web-Based 2D At Its Best .",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -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 ||