@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 +1 -1
- package/src/canvas/canvas.js +2 -2
- package/src/canvas/canvas.js.map +1 -1
- package/src/core.js +23 -4
- package/src/core.js.map +1 -1
- package/src/diagrams/line/line.js +6 -1
- package/src/diagrams/line/line.js.map +1 -1
- package/src/diagrams/rectangle.js +1 -0
- package/src/diagrams/rectangle.js.map +1 -1
- package/src/pen/render.js +36 -36
- package/src/pen/render.js.map +1 -1
- package/src/pen/text.js +2 -4
- package/src/pen/text.js.map +1 -1
package/package.json
CHANGED
package/src/canvas/canvas.js
CHANGED
|
@@ -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
|
|
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
|
}
|