reykit 1.0.136 → 1.0.137
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 +2089 -2079
- package/dist/src/image.d.ts +8 -2
- package/dist/src/window.d.ts +8 -2
- package/package.json +1 -1
package/dist/src/image.d.ts
CHANGED
|
@@ -5,12 +5,18 @@
|
|
|
5
5
|
* @Explain : Image methods.
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Generate and browser open qrcode file.
|
|
9
|
+
*
|
|
10
|
+
* @param text - QRCode Text.
|
|
11
|
+
*/
|
|
12
|
+
export declare function openQrcode(text: string): Promise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* Generate and browser download qrcode file.
|
|
9
15
|
*
|
|
10
16
|
* @param text - QRCode Text.
|
|
11
17
|
* @param fileName - File name.
|
|
12
18
|
*/
|
|
13
|
-
export declare function downloadQrcode(text: string, fileName
|
|
19
|
+
export declare function downloadQrcode(text: string, fileName: string): Promise<void>;
|
|
14
20
|
/**
|
|
15
21
|
* Set qrcode URL to element `src` attribute.
|
|
16
22
|
*
|
package/dist/src/window.d.ts
CHANGED
|
@@ -65,10 +65,16 @@ export declare class Storager<Data extends Record<string, any>> {
|
|
|
65
65
|
*/
|
|
66
66
|
toggle<K extends KeyByValue<Data, boolean>>(key: K): void;
|
|
67
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* Browser open file from blob data.
|
|
70
|
+
*
|
|
71
|
+
* @param obj - Data or URL of with data.
|
|
72
|
+
*/
|
|
73
|
+
export declare function openFile(obj: Blob | string): void;
|
|
68
74
|
/**
|
|
69
75
|
* Browser download file from blob data.
|
|
70
76
|
*
|
|
71
|
-
* @param obj - Data or
|
|
77
|
+
* @param obj - Data or URL of with data.
|
|
72
78
|
* @param fileName - File name.
|
|
73
79
|
*/
|
|
74
|
-
export declare function downloadFile(obj: Blob | string, fileName
|
|
80
|
+
export declare function downloadFile(obj: Blob | string, fileName: string): void;
|