modern-canvas 0.14.27 → 0.14.28

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -7882,10 +7882,10 @@ function kt(r, e) {
7882
7882
  right: w = 0,
7883
7883
  bottom: S = 0
7884
7884
  } = r.cropRect;
7885
- n.translate(-g, -v).scale(
7886
- 1 / Math.abs(1 + (g + w)),
7887
- 1 / Math.abs(1 + (v + S))
7888
- ), o = !0;
7885
+ n.scale(
7886
+ 1 - (g + w),
7887
+ 1 - (v + S)
7888
+ ).translate(g, v), o = !0;
7889
7889
  } else if (r.tile) {
7890
7890
  const {
7891
7891
  translateX: g = 0,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "modern-canvas",
3
3
  "type": "module",
4
- "version": "0.14.27",
4
+ "version": "0.14.28",
5
5
  "packageManager": "pnpm@10.19.0",
6
6
  "description": "A JavaScript WebGL rendering engine. only the ESM.",
7
7
  "author": "wxm",