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.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, z = 1) {
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
- z
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(offsetX + this.position.x, offsetY + this.position.y);
10204
+ this.transform.translate(this.position.x, this.position.y).translate(offsetX, offsetY);
10205
10205
  }
10206
10206
  _updateGlobalTransform() {
10207
10207
  super._updateGlobalTransform();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "modern-canvas",
3
3
  "type": "module",
4
- "version": "0.4.37",
4
+ "version": "0.4.38",
5
5
  "packageManager": "pnpm@9.15.1",
6
6
  "description": "A JavaScript WebGL rendering engine.",
7
7
  "author": "wxm",