@gradio/imageeditor 0.17.1 → 0.18.1
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 +18 -0
- package/dist/shared/Anchor.svelte.d.ts +1 -1
- package/dist/shared/types.d.ts +4 -0
- package/package.json +5 -5
- package/shared/types.ts +10 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @gradio/imageeditor
|
|
2
2
|
|
|
3
|
+
## 0.18.1
|
|
4
|
+
|
|
5
|
+
### Fixes
|
|
6
|
+
|
|
7
|
+
- [#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!
|
|
8
|
+
|
|
9
|
+
## 0.18.0
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
- [#12004](https://github.com/gradio-app/gradio/pull/12004) [`09b7111`](https://github.com/gradio-app/gradio/commit/09b71110717d65dd0f885c90f1e455a944d65a14) - Add ability to position watermark relative to watermarked content. Thanks @PRIME-SV!
|
|
14
|
+
|
|
15
|
+
## 0.17.1
|
|
16
|
+
|
|
17
|
+
### Dependency updates
|
|
18
|
+
|
|
19
|
+
- @gradio/client@1.19.1
|
|
20
|
+
|
|
3
21
|
## 0.17.1
|
|
4
22
|
|
|
5
23
|
### Fixes
|
|
@@ -2,7 +2,7 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: Record<string, never>;
|
|
4
4
|
events: {
|
|
5
|
-
position: CustomEvent<"center" | "left" | "right" | "top-left" | "top" | "
|
|
5
|
+
position: CustomEvent<"center" | "left" | "right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom">;
|
|
6
6
|
} & {
|
|
7
7
|
[evt: string]: CustomEvent<any>;
|
|
8
8
|
};
|
package/dist/shared/types.d.ts
CHANGED
|
@@ -14,3 +14,7 @@ export interface WebcamOptions {
|
|
|
14
14
|
mirror: boolean;
|
|
15
15
|
constraints: Record<string, any>;
|
|
16
16
|
}
|
|
17
|
+
export interface WatermarkOptions {
|
|
18
|
+
watermark: string | Blob | null;
|
|
19
|
+
position: [number, number] | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
20
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradio/imageeditor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.1",
|
|
4
4
|
"description": "Gradio UI packages",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "",
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
"pixi-filters": "^6.1.0",
|
|
12
12
|
"pixi.js": "^8.7.3",
|
|
13
13
|
"tinycolor2": "^1.6.0",
|
|
14
|
-
"@gradio/
|
|
15
|
-
"@gradio/
|
|
14
|
+
"@gradio/client": "^1.19.1",
|
|
15
|
+
"@gradio/atoms": "^0.18.1",
|
|
16
16
|
"@gradio/statustracker": "^0.11.1",
|
|
17
17
|
"@gradio/image": "^0.23.1",
|
|
18
18
|
"@gradio/upload": "^0.17.1",
|
|
19
|
-
"@gradio/
|
|
20
|
-
"@gradio/
|
|
19
|
+
"@gradio/utils": "^0.10.2",
|
|
20
|
+
"@gradio/icons": "^0.14.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@gradio/preview": "^0.14.0"
|
package/shared/types.ts
CHANGED
|
@@ -17,3 +17,13 @@ export interface WebcamOptions {
|
|
|
17
17
|
mirror: boolean;
|
|
18
18
|
constraints: Record<string, any>;
|
|
19
19
|
}
|
|
20
|
+
|
|
21
|
+
export interface WatermarkOptions {
|
|
22
|
+
watermark: string | Blob | null;
|
|
23
|
+
position:
|
|
24
|
+
| [number, number]
|
|
25
|
+
| "top-left"
|
|
26
|
+
| "top-right"
|
|
27
|
+
| "bottom-left"
|
|
28
|
+
| "bottom-right";
|
|
29
|
+
}
|