@gradio/imageeditor 0.2.2 → 0.3.0
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/CHANGELOG.md +13 -1
- package/Example.svelte +4 -1
- package/package.json +6 -6
- package/shared/tools/Sources.svelte +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @gradio/imageeditor
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
### Fixes
|
|
6
|
+
|
|
7
|
+
- [#6933](https://github.com/gradio-app/gradio/pull/6933) [`9cefd2e`](https://github.com/gradio-app/gradio/commit/9cefd2e90a1d0cc4d3e4e953fc5b9b1a7afb68dd) - Refactor examples so they accept data in the same format as is returned by function, rename `.as_example()` to `.process_example()`. Thanks [@abidlabs](https://github.com/abidlabs)!
|
|
8
|
+
|
|
9
|
+
## 0.2.3
|
|
10
|
+
|
|
11
|
+
### Fixes
|
|
12
|
+
|
|
13
|
+
- [#6885](https://github.com/gradio-app/gradio/pull/6885) [`640b7fe`](https://github.com/gradio-app/gradio/commit/640b7fe05276e11720b4341cadf088491395e53d) - Fix issue with Webcam Recording. Thanks [@dawoodkhan82](https://github.com/dawoodkhan82)!
|
|
14
|
+
|
|
3
15
|
## 0.2.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -127,4 +139,4 @@ Thanks [@pngwn](https://github.com/pngwn)!
|
|
|
127
139
|
|
|
128
140
|
- [#6502](https://github.com/gradio-app/gradio/pull/6502) [`070f71c93`](https://github.com/gradio-app/gradio/commit/070f71c933d846ce8e2fe11cdd9bc0f3f897f29f) - Ensure image editor crop and draw cursor works as expected when the scroll position changes. Thanks [@pngwn](https://github.com/pngwn)!
|
|
129
141
|
|
|
130
|
-
# @gradio/image
|
|
142
|
+
# @gradio/image
|
package/Example.svelte
CHANGED
|
@@ -14,7 +14,10 @@
|
|
|
14
14
|
class:gallery={type === "gallery"}
|
|
15
15
|
class:selected
|
|
16
16
|
>
|
|
17
|
-
<Image
|
|
17
|
+
<Image
|
|
18
|
+
src={samples_dir + (value.composite?.path || value.background?.path)}
|
|
19
|
+
alt=""
|
|
20
|
+
/>
|
|
18
21
|
</div>
|
|
19
22
|
|
|
20
23
|
<style>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradio/imageeditor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Gradio UI packages",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "",
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
"pixi.js": "^7.3.2",
|
|
12
12
|
"tinycolor2": "^1.6.0",
|
|
13
13
|
"@gradio/atoms": "^0.4.1",
|
|
14
|
+
"@gradio/statustracker": "^0.4.3",
|
|
15
|
+
"@gradio/client": "^0.10.1",
|
|
16
|
+
"@gradio/image": "^0.7.0",
|
|
14
17
|
"@gradio/icons": "^0.3.2",
|
|
15
|
-
"@gradio/client": "^0.10.0",
|
|
16
|
-
"@gradio/image": "^0.6.0",
|
|
17
|
-
"@gradio/upload": "^0.5.8",
|
|
18
18
|
"@gradio/utils": "^0.2.0",
|
|
19
|
-
"@gradio/
|
|
20
|
-
"@gradio/wasm": "^0.
|
|
19
|
+
"@gradio/upload": "^0.6.1",
|
|
20
|
+
"@gradio/wasm": "^0.5.0"
|
|
21
21
|
},
|
|
22
22
|
"main_changeset": true,
|
|
23
23
|
"main": "./Index.svelte",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
function handle_upload(e: CustomEvent<Blob>): void {
|
|
83
|
+
function handle_upload(e: CustomEvent<Blob | any>): void {
|
|
84
84
|
const file_data = e.detail;
|
|
85
85
|
background = file_data;
|
|
86
86
|
active_mode = null;
|
|
@@ -180,6 +180,7 @@
|
|
|
180
180
|
>
|
|
181
181
|
<div class="modal-inner">
|
|
182
182
|
<Webcam
|
|
183
|
+
{root}
|
|
183
184
|
on:capture={handle_upload}
|
|
184
185
|
on:error
|
|
185
186
|
on:drag
|