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.
- package/dist/index.js +1 -1
- 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.
|
|
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,
|