modern-canvas 0.4.37 → 0.4.38
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.cjs +3 -3
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2557,7 +2557,7 @@ class Transform2D extends Matrix3 {
|
|
|
2557
2557
|
scale(x, y, z = 1) {
|
|
2558
2558
|
return this.premultiply(Transform2D._t2d.makeScale(x, y, z));
|
|
2559
2559
|
}
|
|
2560
|
-
makeScale(x, y,
|
|
2560
|
+
makeScale(x, y, _z = 1) {
|
|
2561
2561
|
this.set([
|
|
2562
2562
|
x,
|
|
2563
2563
|
0,
|
|
@@ -2567,7 +2567,7 @@ class Transform2D extends Matrix3 {
|
|
|
2567
2567
|
0,
|
|
2568
2568
|
0,
|
|
2569
2569
|
0,
|
|
2570
|
-
|
|
2570
|
+
1
|
|
2571
2571
|
]);
|
|
2572
2572
|
return this;
|
|
2573
2573
|
}
|
|
@@ -10201,7 +10201,7 @@ let BaseElement2D = class extends Node2D {
|
|
|
10201
10201
|
const offsetY = originY * height;
|
|
10202
10202
|
this.transform.identity().translate(-offsetX, -offsetY).scale(this.scale.x, this.scale.y).skew(this.skew.x, this.skew.y).rotate(this.rotation);
|
|
10203
10203
|
parseCSSTransform(this.style.transform, width, height, this.transform);
|
|
10204
|
-
this.transform.translate(
|
|
10204
|
+
this.transform.translate(this.position.x, this.position.y).translate(offsetX, offsetY);
|
|
10205
10205
|
}
|
|
10206
10206
|
_updateGlobalTransform() {
|
|
10207
10207
|
super._updateGlobalTransform();
|