@workers-community/workers-types 4.20250823.0 → 4.20250826.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/index.d.ts +9 -0
- package/index.ts +9 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -6220,6 +6220,12 @@ interface BasicImageTransformations {
|
|
|
6220
6220
|
* breaks aspect ratio
|
|
6221
6221
|
*/
|
|
6222
6222
|
fit?: "scale-down" | "contain" | "cover" | "crop" | "pad" | "squeeze";
|
|
6223
|
+
/**
|
|
6224
|
+
* Image segmentation using artificial intelligence models. Sets pixels not
|
|
6225
|
+
* within selected segment area to transparent e.g "foreground" sets every
|
|
6226
|
+
* background pixel as transparent.
|
|
6227
|
+
*/
|
|
6228
|
+
segment?: "foreground";
|
|
6223
6229
|
/**
|
|
6224
6230
|
* When cropping with fit: "cover", this defines the side or point that should
|
|
6225
6231
|
* be left uncropped. The value is either a string
|
|
@@ -6233,6 +6239,7 @@ interface BasicImageTransformations {
|
|
|
6233
6239
|
* source image.
|
|
6234
6240
|
*/
|
|
6235
6241
|
gravity?:
|
|
6242
|
+
| "face"
|
|
6236
6243
|
| "left"
|
|
6237
6244
|
| "right"
|
|
6238
6245
|
| "top"
|
|
@@ -7459,7 +7466,9 @@ type ImageTransform = {
|
|
|
7459
7466
|
fit?: "scale-down" | "contain" | "pad" | "squeeze" | "cover" | "crop";
|
|
7460
7467
|
flip?: "h" | "v" | "hv";
|
|
7461
7468
|
gamma?: number;
|
|
7469
|
+
segment?: "foreground";
|
|
7462
7470
|
gravity?:
|
|
7471
|
+
| "face"
|
|
7463
7472
|
| "left"
|
|
7464
7473
|
| "right"
|
|
7465
7474
|
| "top"
|
package/index.ts
CHANGED
|
@@ -6235,6 +6235,12 @@ export interface BasicImageTransformations {
|
|
|
6235
6235
|
* breaks aspect ratio
|
|
6236
6236
|
*/
|
|
6237
6237
|
fit?: "scale-down" | "contain" | "cover" | "crop" | "pad" | "squeeze";
|
|
6238
|
+
/**
|
|
6239
|
+
* Image segmentation using artificial intelligence models. Sets pixels not
|
|
6240
|
+
* within selected segment area to transparent e.g "foreground" sets every
|
|
6241
|
+
* background pixel as transparent.
|
|
6242
|
+
*/
|
|
6243
|
+
segment?: "foreground";
|
|
6238
6244
|
/**
|
|
6239
6245
|
* When cropping with fit: "cover", this defines the side or point that should
|
|
6240
6246
|
* be left uncropped. The value is either a string
|
|
@@ -6248,6 +6254,7 @@ export interface BasicImageTransformations {
|
|
|
6248
6254
|
* source image.
|
|
6249
6255
|
*/
|
|
6250
6256
|
gravity?:
|
|
6257
|
+
| "face"
|
|
6251
6258
|
| "left"
|
|
6252
6259
|
| "right"
|
|
6253
6260
|
| "top"
|
|
@@ -7479,7 +7486,9 @@ export type ImageTransform = {
|
|
|
7479
7486
|
fit?: "scale-down" | "contain" | "pad" | "squeeze" | "cover" | "crop";
|
|
7480
7487
|
flip?: "h" | "v" | "hv";
|
|
7481
7488
|
gamma?: number;
|
|
7489
|
+
segment?: "foreground";
|
|
7482
7490
|
gravity?:
|
|
7491
|
+
| "face"
|
|
7483
7492
|
| "left"
|
|
7484
7493
|
| "right"
|
|
7485
7494
|
| "top"
|