modern-canvas 0.14.1 → 0.14.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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2750,7 +2750,7 @@ const Io = {
2750
2750
  }, Mo = {
2751
2751
  id: "image",
2752
2752
  upload: (r, e, t, s) => {
2753
- const i = e.width, o = e.height, a = r.pixelWidth ?? r.width, n = r.pixelHeight ?? r.width, l = r.sourceWidth ?? a, c = r.sourceHeight ?? l;
2753
+ const i = e.width, o = e.height, a = r.pixelWidth ?? r.width, n = r.pixelHeight ?? r.height, l = r.sourceWidth ?? a, c = r.sourceHeight ?? n;
2754
2754
  l < a || c < n ? ((i !== a || o !== n) && t.texImage2D(
2755
2755
  e.target,
2756
2756
  0,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "modern-canvas",
3
3
  "type": "module",
4
- "version": "0.14.1",
4
+ "version": "0.14.2",
5
5
  "packageManager": "pnpm@10.19.0",
6
6
  "description": "A JavaScript WebGL rendering engine. only the ESM.",
7
7
  "author": "wxm",