@meta2d/core 1.0.57 → 1.0.58

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.57",
3
+ "version": "1.0.58",
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",
@@ -6215,7 +6215,7 @@ export class Canvas {
6215
6215
  : pen.textHeight * font_scale}px;`;
6216
6216
  }
6217
6217
  else {
6218
- let tem = pen.calculative.worldRect.height / scale - (pen.textTop || 0);
6218
+ let tem = pen.calculative.worldRect.height / scale;
6219
6219
  if (tem < 0) {
6220
6220
  tem = 0;
6221
6221
  }
@@ -6690,7 +6690,7 @@ export class Canvas {
6690
6690
  if (needCalcIconRectProps.includes(k)) {
6691
6691
  willCalcIconRect = true;
6692
6692
  }
6693
- if (pen.image && pen.name !== 'gif' && ['globalAlpha', 'flipY', 'flipX', 'x', 'y', 'width', 'height', 'iconWidth', 'iconHeight', 'imageRatio', 'iconLeft', 'iconTop', 'iconAlign'].includes(k)) {
6693
+ if (pen.image && pen.name !== 'gif' && ['globalAlpha', 'flipY', 'flipX', 'x', 'y', 'width', 'height', 'iconWidth', 'iconHeight', 'imageRatio', 'iconLeft', 'iconTop', 'iconAlign', 'rotate'].includes(k)) {
6694
6694
  willRenderImage = true;
6695
6695
  }
6696
6696
  }