@gradio/imageeditor 0.17.1 → 0.18.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @gradio/imageeditor
2
2
 
3
+ ## 0.18.0
4
+
5
+ ### Features
6
+
7
+ - [#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!
8
+
9
+ ## 0.17.1
10
+
11
+ ### Dependency updates
12
+
13
+ - @gradio/client@1.19.1
14
+
3
15
  ## 0.17.1
4
16
 
5
17
  ### 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" | "top-right" | "bottom-left" | "bottom" | "bottom-right">;
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
  };
@@ -14,3 +14,7 @@ export interface WebcamOptions {
14
14
  mirror: boolean;
15
15
  constraints: Record<string, any>;
16
16
  }
17
+ export interface WatermarkOptions {
18
+ text: 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.17.1",
3
+ "version": "0.18.0",
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/atoms": "^0.18.1",
15
+ "@gradio/client": "^1.19.1",
14
16
  "@gradio/icons": "^0.14.0",
15
- "@gradio/client": "^1.19.0",
16
- "@gradio/statustracker": "^0.11.1",
17
17
  "@gradio/image": "^0.23.1",
18
18
  "@gradio/upload": "^0.17.1",
19
- "@gradio/atoms": "^0.18.1",
20
- "@gradio/utils": "^0.10.2"
19
+ "@gradio/utils": "^0.10.2",
20
+ "@gradio/statustracker": "^0.11.1"
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
+ text: string | Blob | null;
23
+ position:
24
+ | [number, number]
25
+ | "top-left"
26
+ | "top-right"
27
+ | "bottom-left"
28
+ | "bottom-right";
29
+ }