@meta2d/core 1.0.22 → 1.0.23

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.0.22",
3
+ "version": "1.0.23",
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",
@@ -989,7 +989,7 @@ var Canvas = /** @class */ (function () {
989
989
  _this.store.data.rule &&
990
990
  !_this.store.options.disableRuleLine &&
991
991
  _this.addRuleLine(e);
992
- _this.inactive();
992
+ // this.inactive();
993
993
  break;
994
994
  case HoverType.Node:
995
995
  case HoverType.Line:
@@ -1725,7 +1725,7 @@ var Canvas = /** @class */ (function () {
1725
1725
  if (pen.children) {
1726
1726
  var pens_1 = []; // TODO: 只考虑了一级子
1727
1727
  pen.children.forEach(function (id) {
1728
- pens_1.push(_this.store.pens[id]);
1728
+ _this.store.pens[id] && pens_1.push(_this.store.pens[id]);
1729
1729
  });
1730
1730
  hoverType = _this.inPens(pt, pens_1);
1731
1731
  if (hoverType) {
@@ -3148,6 +3148,7 @@ var Canvas = /** @class */ (function () {
3148
3148
  },
3149
3149
  ],
3150
3150
  });
3151
+ this.inactive();
3151
3152
  };
3152
3153
  /**
3153
3154
  * 拖拽结束,数据更新到 active.pens