@meta2d/core 1.0.29 → 1.0.30

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.29",
3
+ "version": "1.0.30",
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",
@@ -1441,8 +1441,8 @@ var Canvas = /** @class */ (function () {
1441
1441
  // 只存在一个缓存图元
1442
1442
  if (_this.addCaches.length === 1) {
1443
1443
  var target = _this.addCaches[0];
1444
- target.width = _this.dragRect.width;
1445
- target.height = _this.dragRect.height;
1444
+ target.width = _this.dragRect.width / _this.store.data.scale;
1445
+ target.height = _this.dragRect.height / _this.store.data.scale;
1446
1446
  e.x = (_this.dragRect.x + _this.dragRect.ex) / 2;
1447
1447
  e.y = (_this.dragRect.y + _this.dragRect.ey) / 2;
1448
1448
  }
@@ -2775,7 +2775,9 @@ var Canvas = /** @class */ (function () {
2775
2775
  _this.store.hover = undefined;
2776
2776
  }
2777
2777
  _this.render();
2778
- if (e.toElement !== _this.tooltip.box) {
2778
+ if (e.toElement !== _this.tooltip.box &&
2779
+ e.toElement !== _this.tooltip.arrowUp &&
2780
+ e.toElement !== _this.tooltip.arrowDown) {
2779
2781
  _this.tooltip.hide();
2780
2782
  _this.store.lastHover = undefined;
2781
2783
  }