@v1nt1248/3nclient-lib 0.2.43 → 0.2.45
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function blobFromDataURL(dataURL: string): Blob;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* resize image
|
|
3
|
-
* @param
|
|
3
|
+
* @param data {string | File | Blob} - image (base64 or File or Blob)
|
|
4
4
|
* @param targetSize {number} - target size of the smaller side of the image
|
|
5
5
|
* @return {string} (base64)
|
|
6
6
|
*/
|
|
7
|
-
export declare function resizeImage(
|
|
7
|
+
export declare function resizeImage(data: string | File | Blob, targetSize: number): Promise<string>;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './processes/deferred';
|
|
|
2
2
|
export * from './processes/sleep';
|
|
3
3
|
export * from './processes/single';
|
|
4
4
|
export * from './processes/named-procs';
|
|
5
|
+
export * from './processes/scheduler-yield';
|
|
5
6
|
export * from './processes/task-runner';
|
|
6
7
|
export * from './round';
|
|
7
8
|
export * from './get-random-id';
|
|
@@ -22,6 +23,7 @@ export * from './files/is-file-video';
|
|
|
22
23
|
export * from './files/is-file-audio';
|
|
23
24
|
export * from './files/blob-to-b64';
|
|
24
25
|
export * from './files/b64-to-blob';
|
|
26
|
+
export * from './files/blob-from-data-url';
|
|
25
27
|
export * from './files/uint8-to-data-url';
|
|
26
28
|
export * from './files/resize-image';
|
|
27
29
|
export * from './files/file-to-uint8array';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function schedulerYield(): any;
|