@gradio/imageeditor 0.18.0 → 0.18.2-dev.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 +14 -0
- package/Index.svelte +5 -7
- package/dist/Index.svelte +5 -7
- package/dist/Index.svelte.d.ts +3 -11
- package/dist/shared/types.d.ts +1 -1
- package/package.json +6 -6
- package/shared/types.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @gradio/imageeditor
|
|
2
2
|
|
|
3
|
+
## 0.18.2-dev.0
|
|
4
|
+
|
|
5
|
+
### Dependency updates
|
|
6
|
+
|
|
7
|
+
- @gradio/upload@0.17.2-dev.0
|
|
8
|
+
- @gradio/client@2.0.0-dev.0
|
|
9
|
+
- @gradio/image@0.23.2-dev.0
|
|
10
|
+
|
|
11
|
+
## 0.18.1
|
|
12
|
+
|
|
13
|
+
### Fixes
|
|
14
|
+
|
|
15
|
+
- [#12023](https://github.com/gradio-app/gradio/pull/12023) [`69da8c8`](https://github.com/gradio-app/gradio/commit/69da8c87653d7ea7f733a248b324051ef5bb810f) - feat: Extended the waternark positioning feature to Video. Thanks @PRIME-SV!
|
|
16
|
+
|
|
3
17
|
## 0.18.0
|
|
4
18
|
|
|
5
19
|
### Features
|
package/Index.svelte
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
};
|
|
32
32
|
export let label: string;
|
|
33
33
|
export let show_label: boolean;
|
|
34
|
-
export let
|
|
34
|
+
export let buttons: string[] | null = null;
|
|
35
35
|
export let root: string;
|
|
36
36
|
export let value_is_output = false;
|
|
37
37
|
|
|
@@ -43,7 +43,6 @@
|
|
|
43
43
|
export let scale: number | null = null;
|
|
44
44
|
export let min_width: number | undefined = undefined;
|
|
45
45
|
export let loading_status: LoadingStatus;
|
|
46
|
-
export let show_share_button = false;
|
|
47
46
|
export let sources: Source[] = [];
|
|
48
47
|
export let interactive: boolean;
|
|
49
48
|
export let placeholder: string | undefined;
|
|
@@ -57,7 +56,6 @@
|
|
|
57
56
|
};
|
|
58
57
|
export let canvas_size: [number, number];
|
|
59
58
|
export let fixed_canvas = false;
|
|
60
|
-
export let show_fullscreen_button = true;
|
|
61
59
|
export let full_history: CommandNode | null = null;
|
|
62
60
|
export let gradio: Gradio<{
|
|
63
61
|
change: never;
|
|
@@ -168,11 +166,9 @@
|
|
|
168
166
|
value={value?.composite || null}
|
|
169
167
|
{label}
|
|
170
168
|
{show_label}
|
|
171
|
-
{
|
|
169
|
+
{buttons}
|
|
172
170
|
selectable={_selectable}
|
|
173
|
-
{show_share_button}
|
|
174
171
|
i18n={gradio.i18n}
|
|
175
|
-
{show_fullscreen_button}
|
|
176
172
|
/>
|
|
177
173
|
</Block>
|
|
178
174
|
{:else}
|
|
@@ -244,7 +240,9 @@
|
|
|
244
240
|
{placeholder}
|
|
245
241
|
bind:full_history
|
|
246
242
|
{webcam_options}
|
|
247
|
-
{
|
|
243
|
+
show_download_button={buttons === null
|
|
244
|
+
? true
|
|
245
|
+
: buttons.includes("download")}
|
|
248
246
|
{theme_mode}
|
|
249
247
|
on:download_error={(e) => gradio.dispatch("error", e.detail)}
|
|
250
248
|
></InteractiveImageEditor>
|
package/dist/Index.svelte
CHANGED
|
@@ -16,7 +16,7 @@ export let value = {
|
|
|
16
16
|
};
|
|
17
17
|
export let label;
|
|
18
18
|
export let show_label;
|
|
19
|
-
export let
|
|
19
|
+
export let buttons = null;
|
|
20
20
|
export let root;
|
|
21
21
|
export let value_is_output = false;
|
|
22
22
|
export let height = 350;
|
|
@@ -26,7 +26,6 @@ export let container = true;
|
|
|
26
26
|
export let scale = null;
|
|
27
27
|
export let min_width = void 0;
|
|
28
28
|
export let loading_status;
|
|
29
|
-
export let show_share_button = false;
|
|
30
29
|
export let sources = [];
|
|
31
30
|
export let interactive;
|
|
32
31
|
export let placeholder;
|
|
@@ -38,7 +37,6 @@ export let attached_events = [];
|
|
|
38
37
|
export let server;
|
|
39
38
|
export let canvas_size;
|
|
40
39
|
export let fixed_canvas = false;
|
|
41
|
-
export let show_fullscreen_button = true;
|
|
42
40
|
export let full_history = null;
|
|
43
41
|
export let gradio;
|
|
44
42
|
export let border_region = 0;
|
|
@@ -115,11 +113,9 @@ $: normalised_layers = value?.layers?.map((layer) => new FileData(layer)) || [];
|
|
|
115
113
|
value={value?.composite || null}
|
|
116
114
|
{label}
|
|
117
115
|
{show_label}
|
|
118
|
-
{
|
|
116
|
+
{buttons}
|
|
119
117
|
selectable={_selectable}
|
|
120
|
-
{show_share_button}
|
|
121
118
|
i18n={gradio.i18n}
|
|
122
|
-
{show_fullscreen_button}
|
|
123
119
|
/>
|
|
124
120
|
</Block>
|
|
125
121
|
{:else}
|
|
@@ -191,7 +187,9 @@ $: normalised_layers = value?.layers?.map((layer) => new FileData(layer)) || [];
|
|
|
191
187
|
{placeholder}
|
|
192
188
|
bind:full_history
|
|
193
189
|
{webcam_options}
|
|
194
|
-
{
|
|
190
|
+
show_download_button={buttons === null
|
|
191
|
+
? true
|
|
192
|
+
: buttons.includes("download")}
|
|
195
193
|
{theme_mode}
|
|
196
194
|
on:download_error={(e) => gradio.dispatch("error", e.detail)}
|
|
197
195
|
></InteractiveImageEditor>
|
package/dist/Index.svelte.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ declare const __propDef: {
|
|
|
13
13
|
value?: EditorData | null;
|
|
14
14
|
label: string;
|
|
15
15
|
show_label: boolean;
|
|
16
|
-
|
|
16
|
+
buttons?: string[] | null;
|
|
17
17
|
root: string;
|
|
18
18
|
value_is_output?: boolean;
|
|
19
19
|
height?: number;
|
|
@@ -23,7 +23,6 @@ declare const __propDef: {
|
|
|
23
23
|
scale?: number | null;
|
|
24
24
|
min_width?: number | undefined;
|
|
25
25
|
loading_status: LoadingStatus;
|
|
26
|
-
show_share_button?: boolean;
|
|
27
26
|
sources?: Source[];
|
|
28
27
|
interactive: boolean;
|
|
29
28
|
placeholder: string | undefined;
|
|
@@ -37,7 +36,6 @@ declare const __propDef: {
|
|
|
37
36
|
};
|
|
38
37
|
canvas_size: [number, number];
|
|
39
38
|
fixed_canvas?: boolean;
|
|
40
|
-
show_fullscreen_button?: boolean;
|
|
41
39
|
full_history?: CommandNode | null;
|
|
42
40
|
gradio: Gradio<{
|
|
43
41
|
change: never;
|
|
@@ -93,9 +91,9 @@ export default class Index extends SvelteComponent<IndexProps, IndexEvents, Inde
|
|
|
93
91
|
get show_label(): boolean;
|
|
94
92
|
/**accessor*/
|
|
95
93
|
set show_label(_: boolean);
|
|
96
|
-
get
|
|
94
|
+
get buttons(): string[] | null | undefined;
|
|
97
95
|
/**accessor*/
|
|
98
|
-
set
|
|
96
|
+
set buttons(_: string[] | null | undefined);
|
|
99
97
|
get root(): string;
|
|
100
98
|
/**accessor*/
|
|
101
99
|
set root(_: string);
|
|
@@ -123,9 +121,6 @@ export default class Index extends SvelteComponent<IndexProps, IndexEvents, Inde
|
|
|
123
121
|
get loading_status(): LoadingStatus;
|
|
124
122
|
/**accessor*/
|
|
125
123
|
set loading_status(_: LoadingStatus);
|
|
126
|
-
get show_share_button(): boolean | undefined;
|
|
127
|
-
/**accessor*/
|
|
128
|
-
set show_share_button(_: boolean | undefined);
|
|
129
124
|
get sources(): Source[] | undefined;
|
|
130
125
|
/**accessor*/
|
|
131
126
|
set sources(_: Source[] | undefined);
|
|
@@ -163,9 +158,6 @@ export default class Index extends SvelteComponent<IndexProps, IndexEvents, Inde
|
|
|
163
158
|
get fixed_canvas(): boolean | undefined;
|
|
164
159
|
/**accessor*/
|
|
165
160
|
set fixed_canvas(_: boolean | undefined);
|
|
166
|
-
get show_fullscreen_button(): boolean | undefined;
|
|
167
|
-
/**accessor*/
|
|
168
|
-
set show_fullscreen_button(_: boolean | undefined);
|
|
169
161
|
get full_history(): CommandNode | null | undefined;
|
|
170
162
|
/**accessor*/
|
|
171
163
|
set full_history(_: CommandNode | null | undefined);
|
package/dist/shared/types.d.ts
CHANGED
|
@@ -15,6 +15,6 @@ export interface WebcamOptions {
|
|
|
15
15
|
constraints: Record<string, any>;
|
|
16
16
|
}
|
|
17
17
|
export interface WatermarkOptions {
|
|
18
|
-
|
|
18
|
+
watermark: string | Blob | null;
|
|
19
19
|
position: [number, number] | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
20
20
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradio/imageeditor",
|
|
3
|
-
"version": "0.18.0",
|
|
3
|
+
"version": "0.18.2-dev.0",
|
|
4
4
|
"description": "Gradio UI packages",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "",
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
"pixi.js": "^8.7.3",
|
|
13
13
|
"tinycolor2": "^1.6.0",
|
|
14
14
|
"@gradio/atoms": "^0.18.1",
|
|
15
|
-
"@gradio/client": "^
|
|
15
|
+
"@gradio/client": "^2.0.0-dev.0",
|
|
16
16
|
"@gradio/icons": "^0.14.0",
|
|
17
|
-
"@gradio/
|
|
18
|
-
"@gradio/
|
|
19
|
-
"@gradio/
|
|
20
|
-
"@gradio/
|
|
17
|
+
"@gradio/upload": "^0.17.2-dev.0",
|
|
18
|
+
"@gradio/image": "^0.23.2-dev.0",
|
|
19
|
+
"@gradio/statustracker": "^0.11.1",
|
|
20
|
+
"@gradio/utils": "^0.10.2"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@gradio/preview": "^0.14.0"
|