@meta2d/core 1.0.44 → 1.0.45

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.44",
3
+ "version": "1.0.45",
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",
@@ -6861,7 +6861,7 @@ var Canvas = /** @class */ (function () {
6861
6861
  }
6862
6862
  };
6863
6863
  Canvas.prototype.updateValue = function (pen, data) {
6864
- var _a, _b, _c, _d, _e;
6864
+ var _a, _b, _c, _d, _e, _f;
6865
6865
  var penRect = this.getPenRect(pen);
6866
6866
  var oldName = pen.name;
6867
6867
  Object.assign(pen, data);
@@ -7002,9 +7002,9 @@ var Canvas = /** @class */ (function () {
7002
7002
  this.canvasImage.init();
7003
7003
  }
7004
7004
  }
7005
- else {
7006
- this.initImageCanvas([pen]);
7007
- }
7005
+ // else {
7006
+ // this.initImageCanvas([pen]);
7007
+ // }
7008
7008
  // if (data.template !== undefined || pen.template) {
7009
7009
  // this.initTemplateCanvas([pen]);
7010
7010
  // }
@@ -7013,7 +7013,7 @@ var Canvas = /** @class */ (function () {
7013
7013
  this.initTemplateCanvas([pen]);
7014
7014
  }
7015
7015
  if (data.zIndex !== undefined) {
7016
- pen.calculative.singleton.div &&
7016
+ ((_f = pen.calculative.singleton) === null || _f === void 0 ? void 0 : _f.div) &&
7017
7017
  setElemPosition(pen, pen.calculative.singleton.div);
7018
7018
  }
7019
7019
  };