pica 10.0.0 → 10.0.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/README.md CHANGED
@@ -118,6 +118,10 @@ const resizer = createPica({
118
118
  });
119
119
  ```
120
120
 
121
+ > [!NOTE]
122
+ > For a quick look at `dist/` folder contents, see
123
+ > <https://unpkg.com/pica@latest/>.
124
+
121
125
 
122
126
  API
123
127
  ---
@@ -1,3 +1,4 @@
1
+ type MathImageBuffer = Uint8Array | Uint8ClampedArray;
1
2
  type MathResizeFilter = 'box' | 'hamming' | 'lanczos2' | 'lanczos3' | 'mks2013';
2
3
 
3
4
  type PicaFeaturesFlat = ('js' | 'wasm' | 'ww' | 'cib' | 'all')[];
@@ -26,7 +27,7 @@ interface ResizeOptions extends _ResizeOptionsCommon {
26
27
  cancelToken?: Promise<unknown>;
27
28
  }
28
29
  interface ResizeBufferOptions extends _ResizeOptionsCommon {
29
- src: Uint8Array | Uint8ClampedArray;
30
+ src: MathImageBuffer;
30
31
  width: number;
31
32
  height: number;
32
33
  toWidth: number;
package/dist/pica.es.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ type MathImageBuffer = Uint8Array | Uint8ClampedArray;
1
2
  type MathResizeFilter = 'box' | 'hamming' | 'lanczos2' | 'lanczos3' | 'mks2013';
2
3
 
3
4
  type PicaFeaturesFlat = ('js' | 'wasm' | 'ww' | 'cib' | 'all')[];
@@ -26,7 +27,7 @@ interface ResizeOptions extends _ResizeOptionsCommon {
26
27
  cancelToken?: Promise<unknown>;
27
28
  }
28
29
  interface ResizeBufferOptions extends _ResizeOptionsCommon {
29
- src: Uint8Array | Uint8ClampedArray;
30
+ src: MathImageBuffer;
30
31
  width: number;
31
32
  height: number;
32
33
  toWidth: number;