@effing/canvas 0.30.0 → 0.30.2
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/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2748,7 +2748,8 @@ async function drawNode(ctx, node, parentX, parentY, debug, emojiStyle, imageCac
|
|
|
2748
2748
|
const opacity = style.opacity ?? 1;
|
|
2749
2749
|
if (opacity <= 0) return;
|
|
2750
2750
|
const scaleInfo = style.transform ? extractScale(style.transform) : null;
|
|
2751
|
-
|
|
2751
|
+
const hasOtherTransforms = scaleInfo !== null && scaleInfo.remaining.length > 0;
|
|
2752
|
+
if (scaleInfo && (scaleInfo.sx !== 1 || scaleInfo.sy !== 1) && !hasOtherTransforms) {
|
|
2752
2753
|
const sx = scaleInfo.sx;
|
|
2753
2754
|
const sy = scaleInfo.sy;
|
|
2754
2755
|
const transformWithoutScale = scaleInfo.remaining;
|