pixel-data-js 0.11.0 → 0.11.1
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.dev.cjs +3 -1
- package/dist/index.dev.cjs.map +1 -1
- package/dist/index.dev.js +3 -1
- package/dist/index.dev.js.map +1 -1
- package/dist/index.prod.cjs +3 -1
- package/dist/index.prod.cjs.map +1 -1
- package/dist/index.prod.js +3 -1
- package/dist/index.prod.js.map +1 -1
- package/package.json +1 -1
- package/src/ImageData/serialization.ts +5 -2
package/dist/index.dev.cjs
CHANGED
|
@@ -1710,7 +1710,9 @@ function resizeImageData(current, newWidth, newHeight, offsetX = 0, offsetY = 0)
|
|
|
1710
1710
|
|
|
1711
1711
|
// src/ImageData/serialization.ts
|
|
1712
1712
|
function base64EncodeArrayBuffer(buffer) {
|
|
1713
|
-
const
|
|
1713
|
+
const uint8 = new Uint8Array(buffer);
|
|
1714
|
+
const decoder = new TextDecoder("latin1");
|
|
1715
|
+
const binary = decoder.decode(uint8);
|
|
1714
1716
|
return btoa(binary);
|
|
1715
1717
|
}
|
|
1716
1718
|
function base64DecodeArrayBuffer(encoded) {
|