@tauri-apps/plugin-clipboard-manager 2.2.1 → 2.2.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-js/index.cjs +1 -1
- package/dist-js/index.d.ts +1 -1
- package/dist-js/index.js +1 -1
- package/package.json +1 -1
package/dist-js/index.cjs
CHANGED
|
@@ -83,7 +83,7 @@ async function writeImage(image$1) {
|
|
|
83
83
|
* import { readImage } from '@tauri-apps/plugin-clipboard-manager';
|
|
84
84
|
*
|
|
85
85
|
* const clipboardImage = await readImage();
|
|
86
|
-
* const blob = new Blob([await clipboardImage.
|
|
86
|
+
* const blob = new Blob([await clipboardImage.rgba()], { type: 'image' })
|
|
87
87
|
* const url = URL.createObjectURL(blob)
|
|
88
88
|
* ```
|
|
89
89
|
* @since 2.0.0
|
package/dist-js/index.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ declare function writeImage(image: string | Image | Uint8Array | ArrayBuffer | n
|
|
|
62
62
|
* import { readImage } from '@tauri-apps/plugin-clipboard-manager';
|
|
63
63
|
*
|
|
64
64
|
* const clipboardImage = await readImage();
|
|
65
|
-
* const blob = new Blob([await clipboardImage.
|
|
65
|
+
* const blob = new Blob([await clipboardImage.rgba()], { type: 'image' })
|
|
66
66
|
* const url = URL.createObjectURL(blob)
|
|
67
67
|
* ```
|
|
68
68
|
* @since 2.0.0
|
package/dist-js/index.js
CHANGED
|
@@ -81,7 +81,7 @@ async function writeImage(image) {
|
|
|
81
81
|
* import { readImage } from '@tauri-apps/plugin-clipboard-manager';
|
|
82
82
|
*
|
|
83
83
|
* const clipboardImage = await readImage();
|
|
84
|
-
* const blob = new Blob([await clipboardImage.
|
|
84
|
+
* const blob = new Blob([await clipboardImage.rgba()], { type: 'image' })
|
|
85
85
|
* const url = URL.createObjectURL(blob)
|
|
86
86
|
* ```
|
|
87
87
|
* @since 2.0.0
|