@workglow/tasks 0.2.16 → 0.2.18
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/README.md +10 -9
- package/dist/browser.d.ts +2 -2
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +1924 -1363
- package/dist/browser.js.map +79 -47
- package/dist/bun.d.ts +2 -2
- package/dist/bun.d.ts.map +1 -1
- package/dist/bun.js +1604 -1328
- package/dist/bun.js.map +77 -47
- package/dist/codec.browser.d.ts +39 -0
- package/dist/codec.browser.d.ts.map +1 -0
- package/dist/codec.node.d.ts +37 -0
- package/dist/codec.node.d.ts.map +1 -0
- package/dist/common.d.ts +39 -38
- package/dist/common.d.ts.map +1 -1
- package/dist/electron.d.ts +2 -2
- package/dist/electron.d.ts.map +1 -1
- package/dist/electron.js +1604 -1328
- package/dist/electron.js.map +77 -47
- package/dist/node.d.ts +2 -2
- package/dist/node.d.ts.map +1 -1
- package/dist/node.js +1604 -1328
- package/dist/node.js.map +77 -47
- package/dist/task/ArrayTask.d.ts +4 -5
- package/dist/task/ArrayTask.d.ts.map +1 -1
- package/dist/task/DateFormatTask.d.ts +3 -2
- package/dist/task/DateFormatTask.d.ts.map +1 -1
- package/dist/task/DebugLogTask.d.ts +2 -1
- package/dist/task/DebugLogTask.d.ts.map +1 -1
- package/dist/task/InputTask.d.ts +2 -1
- package/dist/task/InputTask.d.ts.map +1 -1
- package/dist/task/JavaScriptTask.d.ts +4 -1
- package/dist/task/JavaScriptTask.d.ts.map +1 -1
- package/dist/task/JsonPathTask.d.ts +3 -2
- package/dist/task/JsonPathTask.d.ts.map +1 -1
- package/dist/task/LambdaTask.d.ts +7 -6
- package/dist/task/LambdaTask.d.ts.map +1 -1
- package/dist/task/OutputTask.d.ts +2 -1
- package/dist/task/OutputTask.d.ts.map +1 -1
- package/dist/task/RegexTask.d.ts +3 -2
- package/dist/task/RegexTask.d.ts.map +1 -1
- package/dist/task/SplitTask.d.ts +3 -2
- package/dist/task/SplitTask.d.ts.map +1 -1
- package/dist/task/TemplateTask.d.ts +3 -2
- package/dist/task/TemplateTask.d.ts.map +1 -1
- package/dist/task/image/ImageFilterTask.d.ts +24 -0
- package/dist/task/image/ImageFilterTask.d.ts.map +1 -0
- package/dist/task/image/ImageSchemas.d.ts +15 -101
- package/dist/task/image/ImageSchemas.d.ts.map +1 -1
- package/dist/task/image/blur/ImageBlurTask.d.ts +29 -0
- package/dist/task/image/blur/ImageBlurTask.d.ts.map +1 -0
- package/dist/task/image/blur/blur.cpu.d.ts +4 -0
- package/dist/task/image/blur/blur.cpu.d.ts.map +1 -0
- package/dist/task/image/blur/blur.sharp.d.ts +2 -0
- package/dist/task/image/blur/blur.sharp.d.ts.map +1 -0
- package/dist/task/image/blur/blur.webgpu.d.ts +2 -0
- package/dist/task/image/blur/blur.webgpu.d.ts.map +1 -0
- package/dist/task/image/border/ImageBorderTask.d.ts +35 -0
- package/dist/task/image/border/ImageBorderTask.d.ts.map +1 -0
- package/dist/task/image/border/border.cpu.d.ts +10 -0
- package/dist/task/image/border/border.cpu.d.ts.map +1 -0
- package/dist/task/image/border/border.sharp.d.ts +2 -0
- package/dist/task/image/border/border.sharp.d.ts.map +1 -0
- package/dist/task/image/border/border.webgpu.d.ts +2 -0
- package/dist/task/image/border/border.webgpu.d.ts.map +1 -0
- package/dist/task/image/brightness/ImageBrightnessTask.d.ts +28 -0
- package/dist/task/image/brightness/ImageBrightnessTask.d.ts.map +1 -0
- package/dist/task/image/brightness/brightness.cpu.d.ts +4 -0
- package/dist/task/image/brightness/brightness.cpu.d.ts.map +1 -0
- package/dist/task/image/brightness/brightness.sharp.d.ts +2 -0
- package/dist/task/image/brightness/brightness.sharp.d.ts.map +1 -0
- package/dist/task/image/brightness/brightness.webgpu.d.ts +2 -0
- package/dist/task/image/brightness/brightness.webgpu.d.ts.map +1 -0
- package/dist/task/image/contrast/ImageContrastTask.d.ts +28 -0
- package/dist/task/image/contrast/ImageContrastTask.d.ts.map +1 -0
- package/dist/task/image/contrast/contrast.cpu.d.ts +4 -0
- package/dist/task/image/contrast/contrast.cpu.d.ts.map +1 -0
- package/dist/task/image/contrast/contrast.sharp.d.ts +2 -0
- package/dist/task/image/contrast/contrast.sharp.d.ts.map +1 -0
- package/dist/task/image/contrast/contrast.webgpu.d.ts +2 -0
- package/dist/task/image/contrast/contrast.webgpu.d.ts.map +1 -0
- package/dist/task/image/crop/ImageCropTask.d.ts +32 -0
- package/dist/task/image/crop/ImageCropTask.d.ts.map +1 -0
- package/dist/task/image/crop/crop.cpu.d.ts +7 -0
- package/dist/task/image/crop/crop.cpu.d.ts.map +1 -0
- package/dist/task/image/crop/crop.sharp.d.ts +2 -0
- package/dist/task/image/crop/crop.sharp.d.ts.map +1 -0
- package/dist/task/image/crop/crop.webgpu.d.ts +2 -0
- package/dist/task/image/crop/crop.webgpu.d.ts.map +1 -0
- package/dist/task/image/flip/ImageFlipTask.d.ts +28 -0
- package/dist/task/image/flip/ImageFlipTask.d.ts.map +1 -0
- package/dist/task/image/flip/flip.cpu.d.ts +4 -0
- package/dist/task/image/flip/flip.cpu.d.ts.map +1 -0
- package/dist/task/image/flip/flip.sharp.d.ts +2 -0
- package/dist/task/image/flip/flip.sharp.d.ts.map +1 -0
- package/dist/task/image/flip/flip.webgpu.d.ts +2 -0
- package/dist/task/image/flip/flip.webgpu.d.ts.map +1 -0
- package/dist/task/image/grayscale/ImageGrayscaleTask.d.ts +25 -0
- package/dist/task/image/grayscale/ImageGrayscaleTask.d.ts.map +1 -0
- package/dist/task/image/grayscale/grayscale.cpu.d.ts +2 -0
- package/dist/task/image/grayscale/grayscale.cpu.d.ts.map +1 -0
- package/dist/task/image/grayscale/grayscale.sharp.d.ts +2 -0
- package/dist/task/image/grayscale/grayscale.sharp.d.ts.map +1 -0
- package/dist/task/image/grayscale/grayscale.webgpu.d.ts +2 -0
- package/dist/task/image/grayscale/grayscale.webgpu.d.ts.map +1 -0
- package/dist/task/image/imageCodecLimits.d.ts +8 -4
- package/dist/task/image/imageCodecLimits.d.ts.map +1 -1
- package/dist/task/image/invert/ImageInvertTask.d.ts +25 -0
- package/dist/task/image/invert/ImageInvertTask.d.ts.map +1 -0
- package/dist/task/image/invert/invert.cpu.d.ts +2 -0
- package/dist/task/image/invert/invert.cpu.d.ts.map +1 -0
- package/dist/task/image/invert/invert.sharp.d.ts +2 -0
- package/dist/task/image/invert/invert.sharp.d.ts.map +1 -0
- package/dist/task/image/invert/invert.webgpu.d.ts +2 -0
- package/dist/task/image/invert/invert.webgpu.d.ts.map +1 -0
- package/dist/task/image/pixelate/ImagePixelateTask.d.ts +29 -0
- package/dist/task/image/pixelate/ImagePixelateTask.d.ts.map +1 -0
- package/dist/task/image/pixelate/pixelate.cpu.d.ts +4 -0
- package/dist/task/image/pixelate/pixelate.cpu.d.ts.map +1 -0
- package/dist/task/image/pixelate/pixelate.sharp.d.ts +2 -0
- package/dist/task/image/pixelate/pixelate.sharp.d.ts.map +1 -0
- package/dist/task/image/pixelate/pixelate.webgpu.d.ts +2 -0
- package/dist/task/image/pixelate/pixelate.webgpu.d.ts.map +1 -0
- package/dist/task/image/posterize/ImagePosterizeTask.d.ts +28 -0
- package/dist/task/image/posterize/ImagePosterizeTask.d.ts.map +1 -0
- package/dist/task/image/posterize/posterize.cpu.d.ts +4 -0
- package/dist/task/image/posterize/posterize.cpu.d.ts.map +1 -0
- package/dist/task/image/posterize/posterize.webgpu.d.ts +2 -0
- package/dist/task/image/posterize/posterize.webgpu.d.ts.map +1 -0
- package/dist/task/image/resize/ImageResizeTask.d.ts +32 -0
- package/dist/task/image/resize/ImageResizeTask.d.ts.map +1 -0
- package/dist/task/image/resize/resize.cpu.d.ts +7 -0
- package/dist/task/image/resize/resize.cpu.d.ts.map +1 -0
- package/dist/task/image/resize/resize.sharp.d.ts +2 -0
- package/dist/task/image/resize/resize.sharp.d.ts.map +1 -0
- package/dist/task/image/resize/resize.webgpu.d.ts +2 -0
- package/dist/task/image/resize/resize.webgpu.d.ts.map +1 -0
- package/dist/task/image/rotate/ImageRotateTask.d.ts +29 -0
- package/dist/task/image/rotate/ImageRotateTask.d.ts.map +1 -0
- package/dist/task/image/rotate/rotate.cpu.d.ts +5 -0
- package/dist/task/image/rotate/rotate.cpu.d.ts.map +1 -0
- package/dist/task/image/rotate/rotate.sharp.d.ts +2 -0
- package/dist/task/image/rotate/rotate.sharp.d.ts.map +1 -0
- package/dist/task/image/rotate/rotate.webgpu.d.ts +2 -0
- package/dist/task/image/rotate/rotate.webgpu.d.ts.map +1 -0
- package/dist/task/image/sepia/ImageSepiaTask.d.ts +25 -0
- package/dist/task/image/sepia/ImageSepiaTask.d.ts.map +1 -0
- package/dist/task/image/sepia/sepia.cpu.d.ts +2 -0
- package/dist/task/image/sepia/sepia.cpu.d.ts.map +1 -0
- package/dist/task/image/sepia/sepia.sharp.d.ts +2 -0
- package/dist/task/image/sepia/sepia.sharp.d.ts.map +1 -0
- package/dist/task/image/sepia/sepia.webgpu.d.ts +2 -0
- package/dist/task/image/sepia/sepia.webgpu.d.ts.map +1 -0
- package/dist/task/image/{ImageTextTask.d.ts → text/ImageTextTask.d.ts} +18 -104
- package/dist/task/image/text/ImageTextTask.d.ts.map +1 -0
- package/dist/task/image/threshold/ImageThresholdTask.d.ts +28 -0
- package/dist/task/image/threshold/ImageThresholdTask.d.ts.map +1 -0
- package/dist/task/image/threshold/threshold.cpu.d.ts +4 -0
- package/dist/task/image/threshold/threshold.cpu.d.ts.map +1 -0
- package/dist/task/image/threshold/threshold.sharp.d.ts +2 -0
- package/dist/task/image/threshold/threshold.sharp.d.ts.map +1 -0
- package/dist/task/image/threshold/threshold.webgpu.d.ts +2 -0
- package/dist/task/image/threshold/threshold.webgpu.d.ts.map +1 -0
- package/dist/task/image/tint/ImageTintTask.d.ts +30 -0
- package/dist/task/image/tint/ImageTintTask.d.ts.map +1 -0
- package/dist/task/image/tint/tint.cpu.d.ts +11 -0
- package/dist/task/image/tint/tint.cpu.d.ts.map +1 -0
- package/dist/task/image/tint/tint.sharp.d.ts +2 -0
- package/dist/task/image/tint/tint.sharp.d.ts.map +1 -0
- package/dist/task/image/tint/tint.webgpu.d.ts +2 -0
- package/dist/task/image/tint/tint.webgpu.d.ts.map +1 -0
- package/dist/task/image/transparency/ImageTransparencyTask.d.ts +28 -0
- package/dist/task/image/transparency/ImageTransparencyTask.d.ts.map +1 -0
- package/dist/task/image/transparency/transparency.cpu.d.ts +4 -0
- package/dist/task/image/transparency/transparency.cpu.d.ts.map +1 -0
- package/dist/task/image/transparency/transparency.webgpu.d.ts +2 -0
- package/dist/task/image/transparency/transparency.webgpu.d.ts.map +1 -0
- package/dist/task/string/StringConcatTask.d.ts +3 -2
- package/dist/task/string/StringConcatTask.d.ts.map +1 -1
- package/dist/task/string/StringIncludesTask.d.ts +3 -2
- package/dist/task/string/StringIncludesTask.d.ts.map +1 -1
- package/dist/task/string/StringJoinTask.d.ts +3 -2
- package/dist/task/string/StringJoinTask.d.ts.map +1 -1
- package/dist/task/string/StringLengthTask.d.ts +3 -2
- package/dist/task/string/StringLengthTask.d.ts.map +1 -1
- package/dist/task/string/StringLowerCaseTask.d.ts +3 -2
- package/dist/task/string/StringLowerCaseTask.d.ts.map +1 -1
- package/dist/task/string/StringReplaceTask.d.ts +3 -2
- package/dist/task/string/StringReplaceTask.d.ts.map +1 -1
- package/dist/task/string/StringSliceTask.d.ts +3 -2
- package/dist/task/string/StringSliceTask.d.ts.map +1 -1
- package/dist/task/string/StringTemplateTask.d.ts +3 -2
- package/dist/task/string/StringTemplateTask.d.ts.map +1 -1
- package/dist/task/string/StringTrimTask.d.ts +3 -2
- package/dist/task/string/StringTrimTask.d.ts.map +1 -1
- package/dist/task/string/StringUpperCaseTask.d.ts +3 -2
- package/dist/task/string/StringUpperCaseTask.d.ts.map +1 -1
- package/package.json +9 -9
- package/dist/task/image/ImageBlurTask.d.ts +0 -247
- package/dist/task/image/ImageBlurTask.d.ts.map +0 -1
- package/dist/task/image/ImageBorderTask.d.ts +0 -327
- package/dist/task/image/ImageBorderTask.d.ts.map +0 -1
- package/dist/task/image/ImageBrightnessTask.d.ts +0 -247
- package/dist/task/image/ImageBrightnessTask.d.ts.map +0 -1
- package/dist/task/image/ImageContrastTask.d.ts +0 -247
- package/dist/task/image/ImageContrastTask.d.ts.map +0 -1
- package/dist/task/image/ImageCropTask.d.ts +0 -279
- package/dist/task/image/ImageCropTask.d.ts.map +0 -1
- package/dist/task/image/ImageFlipTask.d.ts +0 -243
- package/dist/task/image/ImageFlipTask.d.ts.map +0 -1
- package/dist/task/image/ImageGrayscaleTask.d.ts +0 -231
- package/dist/task/image/ImageGrayscaleTask.d.ts.map +0 -1
- package/dist/task/image/ImageInvertTask.d.ts +0 -231
- package/dist/task/image/ImageInvertTask.d.ts.map +0 -1
- package/dist/task/image/ImagePixelateTask.d.ts +0 -245
- package/dist/task/image/ImagePixelateTask.d.ts.map +0 -1
- package/dist/task/image/ImagePosterizeTask.d.ts +0 -247
- package/dist/task/image/ImagePosterizeTask.d.ts.map +0 -1
- package/dist/task/image/ImageResizeTask.d.ts +0 -255
- package/dist/task/image/ImageResizeTask.d.ts.map +0 -1
- package/dist/task/image/ImageRotateTask.d.ts +0 -243
- package/dist/task/image/ImageRotateTask.d.ts.map +0 -1
- package/dist/task/image/ImageSepiaTask.d.ts +0 -231
- package/dist/task/image/ImageSepiaTask.d.ts.map +0 -1
- package/dist/task/image/ImageTextTask.d.ts.map +0 -1
- package/dist/task/image/ImageThresholdTask.d.ts +0 -247
- package/dist/task/image/ImageThresholdTask.d.ts.map +0 -1
- package/dist/task/image/ImageTintTask.d.ts +0 -329
- package/dist/task/image/ImageTintTask.d.ts.map +0 -1
- package/dist/task/image/ImageTransparencyTask.d.ts +0 -245
- package/dist/task/image/ImageTransparencyTask.d.ts.map +0 -1
- package/dist/task/image/ImageWatermarkTask.d.ts +0 -275
- package/dist/task/image/ImageWatermarkTask.d.ts.map +0 -1
- package/dist/task/image/imageTaskIo.d.ts +0 -20
- package/dist/task/image/imageTaskIo.d.ts.map +0 -1
|
@@ -1,243 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { CreateWorkflow, IExecuteReactiveContext, Task, TaskConfig } from "@workglow/task-graph";
|
|
7
|
-
import { ImageFromSchema } from "./ImageSchemas";
|
|
8
|
-
declare const inputSchema: {
|
|
9
|
-
readonly type: "object";
|
|
10
|
-
readonly properties: {
|
|
11
|
-
readonly image: {
|
|
12
|
-
readonly oneOf: readonly [{
|
|
13
|
-
readonly type: "object";
|
|
14
|
-
readonly properties: {
|
|
15
|
-
readonly data: {
|
|
16
|
-
readonly type: "array";
|
|
17
|
-
readonly items: {
|
|
18
|
-
readonly type: "number";
|
|
19
|
-
readonly format: "Uint8Clamped";
|
|
20
|
-
};
|
|
21
|
-
readonly format: "Uint8ClampedArray";
|
|
22
|
-
readonly title: "Data";
|
|
23
|
-
readonly description: "Pixel data of the image";
|
|
24
|
-
};
|
|
25
|
-
readonly width: {
|
|
26
|
-
readonly type: "integer";
|
|
27
|
-
readonly minimum: 1;
|
|
28
|
-
readonly title: "Width";
|
|
29
|
-
readonly description: "Width in pixels";
|
|
30
|
-
};
|
|
31
|
-
readonly height: {
|
|
32
|
-
readonly type: "integer";
|
|
33
|
-
readonly minimum: 1;
|
|
34
|
-
readonly title: "Height";
|
|
35
|
-
readonly description: "Height in pixels";
|
|
36
|
-
};
|
|
37
|
-
readonly channels: {
|
|
38
|
-
readonly type: "integer";
|
|
39
|
-
readonly enum: readonly [1, 3, 4];
|
|
40
|
-
readonly title: "Channels";
|
|
41
|
-
readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
readonly additionalProperties: false;
|
|
45
|
-
readonly required: readonly ["data", "width", "height", "channels"];
|
|
46
|
-
readonly format: "image:ImageBinary";
|
|
47
|
-
readonly title: "Image";
|
|
48
|
-
readonly description: "Raw pixel image data";
|
|
49
|
-
}, {
|
|
50
|
-
readonly type: "string";
|
|
51
|
-
readonly format: "image:data-uri";
|
|
52
|
-
readonly title: string;
|
|
53
|
-
readonly description: string;
|
|
54
|
-
}];
|
|
55
|
-
};
|
|
56
|
-
readonly direction: {
|
|
57
|
-
readonly type: "string";
|
|
58
|
-
readonly enum: readonly ["horizontal", "vertical"];
|
|
59
|
-
readonly title: "Direction";
|
|
60
|
-
readonly description: "Flip direction";
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
readonly required: readonly ["image", "direction"];
|
|
64
|
-
readonly additionalProperties: false;
|
|
65
|
-
};
|
|
66
|
-
declare const outputSchema: {
|
|
67
|
-
readonly type: "object";
|
|
68
|
-
readonly properties: {
|
|
69
|
-
readonly image: {
|
|
70
|
-
readonly oneOf: readonly [{
|
|
71
|
-
readonly type: "object";
|
|
72
|
-
readonly properties: {
|
|
73
|
-
readonly data: {
|
|
74
|
-
readonly type: "array";
|
|
75
|
-
readonly items: {
|
|
76
|
-
readonly type: "number";
|
|
77
|
-
readonly format: "Uint8Clamped";
|
|
78
|
-
};
|
|
79
|
-
readonly format: "Uint8ClampedArray";
|
|
80
|
-
readonly title: "Data";
|
|
81
|
-
readonly description: "Pixel data of the image";
|
|
82
|
-
};
|
|
83
|
-
readonly width: {
|
|
84
|
-
readonly type: "integer";
|
|
85
|
-
readonly minimum: 1;
|
|
86
|
-
readonly title: "Width";
|
|
87
|
-
readonly description: "Width in pixels";
|
|
88
|
-
};
|
|
89
|
-
readonly height: {
|
|
90
|
-
readonly type: "integer";
|
|
91
|
-
readonly minimum: 1;
|
|
92
|
-
readonly title: "Height";
|
|
93
|
-
readonly description: "Height in pixels";
|
|
94
|
-
};
|
|
95
|
-
readonly channels: {
|
|
96
|
-
readonly type: "integer";
|
|
97
|
-
readonly enum: readonly [1, 3, 4];
|
|
98
|
-
readonly title: "Channels";
|
|
99
|
-
readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
readonly additionalProperties: false;
|
|
103
|
-
readonly required: readonly ["data", "width", "height", "channels"];
|
|
104
|
-
readonly format: "image:ImageBinary";
|
|
105
|
-
readonly title: "Image";
|
|
106
|
-
readonly description: "Raw pixel image data";
|
|
107
|
-
}, {
|
|
108
|
-
readonly type: "string";
|
|
109
|
-
readonly format: "image:data-uri";
|
|
110
|
-
readonly title: string;
|
|
111
|
-
readonly description: string;
|
|
112
|
-
}];
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
readonly required: readonly ["image"];
|
|
116
|
-
readonly additionalProperties: false;
|
|
117
|
-
};
|
|
118
|
-
export type ImageFlipTaskInput = ImageFromSchema<typeof inputSchema>;
|
|
119
|
-
export type ImageFlipTaskOutput = ImageFromSchema<typeof outputSchema>;
|
|
120
|
-
export declare class ImageFlipTask<Input extends ImageFlipTaskInput = ImageFlipTaskInput, Output extends ImageFlipTaskOutput = ImageFlipTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
|
|
121
|
-
static readonly type = "ImageFlipTask";
|
|
122
|
-
static readonly category = "Image";
|
|
123
|
-
static title: string;
|
|
124
|
-
static description: string;
|
|
125
|
-
static inputSchema(): {
|
|
126
|
-
readonly type: "object";
|
|
127
|
-
readonly properties: {
|
|
128
|
-
readonly image: {
|
|
129
|
-
readonly oneOf: readonly [{
|
|
130
|
-
readonly type: "object";
|
|
131
|
-
readonly properties: {
|
|
132
|
-
readonly data: {
|
|
133
|
-
readonly type: "array";
|
|
134
|
-
readonly items: {
|
|
135
|
-
readonly type: "number";
|
|
136
|
-
readonly format: "Uint8Clamped";
|
|
137
|
-
};
|
|
138
|
-
readonly format: "Uint8ClampedArray";
|
|
139
|
-
readonly title: "Data";
|
|
140
|
-
readonly description: "Pixel data of the image";
|
|
141
|
-
};
|
|
142
|
-
readonly width: {
|
|
143
|
-
readonly type: "integer";
|
|
144
|
-
readonly minimum: 1;
|
|
145
|
-
readonly title: "Width";
|
|
146
|
-
readonly description: "Width in pixels";
|
|
147
|
-
};
|
|
148
|
-
readonly height: {
|
|
149
|
-
readonly type: "integer";
|
|
150
|
-
readonly minimum: 1;
|
|
151
|
-
readonly title: "Height";
|
|
152
|
-
readonly description: "Height in pixels";
|
|
153
|
-
};
|
|
154
|
-
readonly channels: {
|
|
155
|
-
readonly type: "integer";
|
|
156
|
-
readonly enum: readonly [1, 3, 4];
|
|
157
|
-
readonly title: "Channels";
|
|
158
|
-
readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
|
|
159
|
-
};
|
|
160
|
-
};
|
|
161
|
-
readonly additionalProperties: false;
|
|
162
|
-
readonly required: readonly ["data", "width", "height", "channels"];
|
|
163
|
-
readonly format: "image:ImageBinary";
|
|
164
|
-
readonly title: "Image";
|
|
165
|
-
readonly description: "Raw pixel image data";
|
|
166
|
-
}, {
|
|
167
|
-
readonly type: "string";
|
|
168
|
-
readonly format: "image:data-uri";
|
|
169
|
-
readonly title: string;
|
|
170
|
-
readonly description: string;
|
|
171
|
-
}];
|
|
172
|
-
};
|
|
173
|
-
readonly direction: {
|
|
174
|
-
readonly type: "string";
|
|
175
|
-
readonly enum: readonly ["horizontal", "vertical"];
|
|
176
|
-
readonly title: "Direction";
|
|
177
|
-
readonly description: "Flip direction";
|
|
178
|
-
};
|
|
179
|
-
};
|
|
180
|
-
readonly required: readonly ["image", "direction"];
|
|
181
|
-
readonly additionalProperties: false;
|
|
182
|
-
};
|
|
183
|
-
static outputSchema(): {
|
|
184
|
-
readonly type: "object";
|
|
185
|
-
readonly properties: {
|
|
186
|
-
readonly image: {
|
|
187
|
-
readonly oneOf: readonly [{
|
|
188
|
-
readonly type: "object";
|
|
189
|
-
readonly properties: {
|
|
190
|
-
readonly data: {
|
|
191
|
-
readonly type: "array";
|
|
192
|
-
readonly items: {
|
|
193
|
-
readonly type: "number";
|
|
194
|
-
readonly format: "Uint8Clamped";
|
|
195
|
-
};
|
|
196
|
-
readonly format: "Uint8ClampedArray";
|
|
197
|
-
readonly title: "Data";
|
|
198
|
-
readonly description: "Pixel data of the image";
|
|
199
|
-
};
|
|
200
|
-
readonly width: {
|
|
201
|
-
readonly type: "integer";
|
|
202
|
-
readonly minimum: 1;
|
|
203
|
-
readonly title: "Width";
|
|
204
|
-
readonly description: "Width in pixels";
|
|
205
|
-
};
|
|
206
|
-
readonly height: {
|
|
207
|
-
readonly type: "integer";
|
|
208
|
-
readonly minimum: 1;
|
|
209
|
-
readonly title: "Height";
|
|
210
|
-
readonly description: "Height in pixels";
|
|
211
|
-
};
|
|
212
|
-
readonly channels: {
|
|
213
|
-
readonly type: "integer";
|
|
214
|
-
readonly enum: readonly [1, 3, 4];
|
|
215
|
-
readonly title: "Channels";
|
|
216
|
-
readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
|
|
217
|
-
};
|
|
218
|
-
};
|
|
219
|
-
readonly additionalProperties: false;
|
|
220
|
-
readonly required: readonly ["data", "width", "height", "channels"];
|
|
221
|
-
readonly format: "image:ImageBinary";
|
|
222
|
-
readonly title: "Image";
|
|
223
|
-
readonly description: "Raw pixel image data";
|
|
224
|
-
}, {
|
|
225
|
-
readonly type: "string";
|
|
226
|
-
readonly format: "image:data-uri";
|
|
227
|
-
readonly title: string;
|
|
228
|
-
readonly description: string;
|
|
229
|
-
}];
|
|
230
|
-
};
|
|
231
|
-
};
|
|
232
|
-
readonly required: readonly ["image"];
|
|
233
|
-
readonly additionalProperties: false;
|
|
234
|
-
};
|
|
235
|
-
executeReactive(input: Input, _output: Output, _context: IExecuteReactiveContext): Promise<Output>;
|
|
236
|
-
}
|
|
237
|
-
declare module "@workglow/task-graph" {
|
|
238
|
-
interface Workflow {
|
|
239
|
-
imageFlip: CreateWorkflow<ImageFlipTaskInput, ImageFlipTaskOutput, TaskConfig>;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
export {};
|
|
243
|
-
//# sourceMappingURL=ImageFlipTask.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ImageFlipTask.d.ts","sourceRoot":"","sources":["../../../src/task/image/ImageFlipTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,IAAI,EACJ,UAAU,EAEX,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAA8B,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAG7E,QAAA,MAAM,WAAW;mBACT,QAAQ;;iBAEZ,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBACL,SAAS;qBACP,IAAI,EAAE,QAAQ;qBACd,IAAI;qBACJ,KAAK,EAAE,WAAW;qBAClB,WAAW,EAAE,gBAAgB;;;;;CAKA,CAAC;AAEpC,QAAA,MAAM,YAAY;mBACV,QAAQ;;iBAEZ,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI0B,CAAC;AAEpC,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,OAAO,WAAW,CAAC,CAAC;AACrE,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,OAAO,YAAY,CAAC,CAAC;AAEvE,qBAAa,aAAa,CACxB,KAAK,SAAS,kBAAkB,GAAG,kBAAkB,EACrD,MAAM,SAAS,mBAAmB,GAAG,mBAAmB,EACxD,MAAM,SAAS,UAAU,GAAG,UAAU,CACtC,SAAQ,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;IACnC,gBAAyB,IAAI,mBAAmB;IAChD,gBAAyB,QAAQ,WAAW;IAC5C,OAAuB,KAAK,SAAgB;IAC5C,OAAuB,WAAW,SAA+C;IAEjF,OAAgB,WAAW;uBApCrB,QAAQ;;qBAEZ,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBACL,SAAS;yBACP,IAAI,EAAE,QAAQ;yBACd,IAAI;yBACJ,KAAK,EAAE,WAAW;yBAClB,WAAW,EAAE,gBAAgB;;;;;MA+BhC;IAED,OAAgB,YAAY;uBAzBtB,QAAQ;;qBAEZ,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyBN;IAEc,eAAe,CAC5B,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,uBAAuB,GAChC,OAAO,CAAC,MAAM,CAAC,CA4BjB;CACF;AAED,OAAO,QAAQ,sBAAsB,CAAC,CAAC;IACrC,UAAU,QAAQ;QAChB,SAAS,EAAE,cAAc,CAAC,kBAAkB,EAAE,mBAAmB,EAAE,UAAU,CAAC,CAAC;KAChF;CACF"}
|
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { CreateWorkflow, IExecuteReactiveContext, Task, TaskConfig } from "@workglow/task-graph";
|
|
7
|
-
import { ImageFromSchema } from "./ImageSchemas";
|
|
8
|
-
declare const inputSchema: {
|
|
9
|
-
readonly type: "object";
|
|
10
|
-
readonly properties: {
|
|
11
|
-
readonly image: {
|
|
12
|
-
readonly oneOf: readonly [{
|
|
13
|
-
readonly type: "object";
|
|
14
|
-
readonly properties: {
|
|
15
|
-
readonly data: {
|
|
16
|
-
readonly type: "array";
|
|
17
|
-
readonly items: {
|
|
18
|
-
readonly type: "number";
|
|
19
|
-
readonly format: "Uint8Clamped";
|
|
20
|
-
};
|
|
21
|
-
readonly format: "Uint8ClampedArray";
|
|
22
|
-
readonly title: "Data";
|
|
23
|
-
readonly description: "Pixel data of the image";
|
|
24
|
-
};
|
|
25
|
-
readonly width: {
|
|
26
|
-
readonly type: "integer";
|
|
27
|
-
readonly minimum: 1;
|
|
28
|
-
readonly title: "Width";
|
|
29
|
-
readonly description: "Width in pixels";
|
|
30
|
-
};
|
|
31
|
-
readonly height: {
|
|
32
|
-
readonly type: "integer";
|
|
33
|
-
readonly minimum: 1;
|
|
34
|
-
readonly title: "Height";
|
|
35
|
-
readonly description: "Height in pixels";
|
|
36
|
-
};
|
|
37
|
-
readonly channels: {
|
|
38
|
-
readonly type: "integer";
|
|
39
|
-
readonly enum: readonly [1, 3, 4];
|
|
40
|
-
readonly title: "Channels";
|
|
41
|
-
readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
readonly additionalProperties: false;
|
|
45
|
-
readonly required: readonly ["data", "width", "height", "channels"];
|
|
46
|
-
readonly format: "image:ImageBinary";
|
|
47
|
-
readonly title: "Image";
|
|
48
|
-
readonly description: "Raw pixel image data";
|
|
49
|
-
}, {
|
|
50
|
-
readonly type: "string";
|
|
51
|
-
readonly format: "image:data-uri";
|
|
52
|
-
readonly title: string;
|
|
53
|
-
readonly description: string;
|
|
54
|
-
}];
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
readonly required: readonly ["image"];
|
|
58
|
-
readonly additionalProperties: false;
|
|
59
|
-
};
|
|
60
|
-
declare const outputSchema: {
|
|
61
|
-
readonly type: "object";
|
|
62
|
-
readonly properties: {
|
|
63
|
-
readonly image: {
|
|
64
|
-
readonly oneOf: readonly [{
|
|
65
|
-
readonly type: "object";
|
|
66
|
-
readonly properties: {
|
|
67
|
-
readonly data: {
|
|
68
|
-
readonly type: "array";
|
|
69
|
-
readonly items: {
|
|
70
|
-
readonly type: "number";
|
|
71
|
-
readonly format: "Uint8Clamped";
|
|
72
|
-
};
|
|
73
|
-
readonly format: "Uint8ClampedArray";
|
|
74
|
-
readonly title: "Data";
|
|
75
|
-
readonly description: "Pixel data of the image";
|
|
76
|
-
};
|
|
77
|
-
readonly width: {
|
|
78
|
-
readonly type: "integer";
|
|
79
|
-
readonly minimum: 1;
|
|
80
|
-
readonly title: "Width";
|
|
81
|
-
readonly description: "Width in pixels";
|
|
82
|
-
};
|
|
83
|
-
readonly height: {
|
|
84
|
-
readonly type: "integer";
|
|
85
|
-
readonly minimum: 1;
|
|
86
|
-
readonly title: "Height";
|
|
87
|
-
readonly description: "Height in pixels";
|
|
88
|
-
};
|
|
89
|
-
readonly channels: {
|
|
90
|
-
readonly type: "integer";
|
|
91
|
-
readonly enum: readonly [1, 3, 4];
|
|
92
|
-
readonly title: "Channels";
|
|
93
|
-
readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
readonly additionalProperties: false;
|
|
97
|
-
readonly required: readonly ["data", "width", "height", "channels"];
|
|
98
|
-
readonly format: "image:ImageBinary";
|
|
99
|
-
readonly title: "Image";
|
|
100
|
-
readonly description: "Raw pixel image data";
|
|
101
|
-
}, {
|
|
102
|
-
readonly type: "string";
|
|
103
|
-
readonly format: "image:data-uri";
|
|
104
|
-
readonly title: string;
|
|
105
|
-
readonly description: string;
|
|
106
|
-
}];
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
readonly required: readonly ["image"];
|
|
110
|
-
readonly additionalProperties: false;
|
|
111
|
-
};
|
|
112
|
-
export type ImageGrayscaleTaskInput = ImageFromSchema<typeof inputSchema>;
|
|
113
|
-
export type ImageGrayscaleTaskOutput = ImageFromSchema<typeof outputSchema>;
|
|
114
|
-
export declare class ImageGrayscaleTask<Input extends ImageGrayscaleTaskInput = ImageGrayscaleTaskInput, Output extends ImageGrayscaleTaskOutput = ImageGrayscaleTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
|
|
115
|
-
static readonly type = "ImageGrayscaleTask";
|
|
116
|
-
static readonly category = "Image";
|
|
117
|
-
static title: string;
|
|
118
|
-
static description: string;
|
|
119
|
-
static inputSchema(): {
|
|
120
|
-
readonly type: "object";
|
|
121
|
-
readonly properties: {
|
|
122
|
-
readonly image: {
|
|
123
|
-
readonly oneOf: readonly [{
|
|
124
|
-
readonly type: "object";
|
|
125
|
-
readonly properties: {
|
|
126
|
-
readonly data: {
|
|
127
|
-
readonly type: "array";
|
|
128
|
-
readonly items: {
|
|
129
|
-
readonly type: "number";
|
|
130
|
-
readonly format: "Uint8Clamped";
|
|
131
|
-
};
|
|
132
|
-
readonly format: "Uint8ClampedArray";
|
|
133
|
-
readonly title: "Data";
|
|
134
|
-
readonly description: "Pixel data of the image";
|
|
135
|
-
};
|
|
136
|
-
readonly width: {
|
|
137
|
-
readonly type: "integer";
|
|
138
|
-
readonly minimum: 1;
|
|
139
|
-
readonly title: "Width";
|
|
140
|
-
readonly description: "Width in pixels";
|
|
141
|
-
};
|
|
142
|
-
readonly height: {
|
|
143
|
-
readonly type: "integer";
|
|
144
|
-
readonly minimum: 1;
|
|
145
|
-
readonly title: "Height";
|
|
146
|
-
readonly description: "Height in pixels";
|
|
147
|
-
};
|
|
148
|
-
readonly channels: {
|
|
149
|
-
readonly type: "integer";
|
|
150
|
-
readonly enum: readonly [1, 3, 4];
|
|
151
|
-
readonly title: "Channels";
|
|
152
|
-
readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
|
|
153
|
-
};
|
|
154
|
-
};
|
|
155
|
-
readonly additionalProperties: false;
|
|
156
|
-
readonly required: readonly ["data", "width", "height", "channels"];
|
|
157
|
-
readonly format: "image:ImageBinary";
|
|
158
|
-
readonly title: "Image";
|
|
159
|
-
readonly description: "Raw pixel image data";
|
|
160
|
-
}, {
|
|
161
|
-
readonly type: "string";
|
|
162
|
-
readonly format: "image:data-uri";
|
|
163
|
-
readonly title: string;
|
|
164
|
-
readonly description: string;
|
|
165
|
-
}];
|
|
166
|
-
};
|
|
167
|
-
};
|
|
168
|
-
readonly required: readonly ["image"];
|
|
169
|
-
readonly additionalProperties: false;
|
|
170
|
-
};
|
|
171
|
-
static outputSchema(): {
|
|
172
|
-
readonly type: "object";
|
|
173
|
-
readonly properties: {
|
|
174
|
-
readonly image: {
|
|
175
|
-
readonly oneOf: readonly [{
|
|
176
|
-
readonly type: "object";
|
|
177
|
-
readonly properties: {
|
|
178
|
-
readonly data: {
|
|
179
|
-
readonly type: "array";
|
|
180
|
-
readonly items: {
|
|
181
|
-
readonly type: "number";
|
|
182
|
-
readonly format: "Uint8Clamped";
|
|
183
|
-
};
|
|
184
|
-
readonly format: "Uint8ClampedArray";
|
|
185
|
-
readonly title: "Data";
|
|
186
|
-
readonly description: "Pixel data of the image";
|
|
187
|
-
};
|
|
188
|
-
readonly width: {
|
|
189
|
-
readonly type: "integer";
|
|
190
|
-
readonly minimum: 1;
|
|
191
|
-
readonly title: "Width";
|
|
192
|
-
readonly description: "Width in pixels";
|
|
193
|
-
};
|
|
194
|
-
readonly height: {
|
|
195
|
-
readonly type: "integer";
|
|
196
|
-
readonly minimum: 1;
|
|
197
|
-
readonly title: "Height";
|
|
198
|
-
readonly description: "Height in pixels";
|
|
199
|
-
};
|
|
200
|
-
readonly channels: {
|
|
201
|
-
readonly type: "integer";
|
|
202
|
-
readonly enum: readonly [1, 3, 4];
|
|
203
|
-
readonly title: "Channels";
|
|
204
|
-
readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
|
|
205
|
-
};
|
|
206
|
-
};
|
|
207
|
-
readonly additionalProperties: false;
|
|
208
|
-
readonly required: readonly ["data", "width", "height", "channels"];
|
|
209
|
-
readonly format: "image:ImageBinary";
|
|
210
|
-
readonly title: "Image";
|
|
211
|
-
readonly description: "Raw pixel image data";
|
|
212
|
-
}, {
|
|
213
|
-
readonly type: "string";
|
|
214
|
-
readonly format: "image:data-uri";
|
|
215
|
-
readonly title: string;
|
|
216
|
-
readonly description: string;
|
|
217
|
-
}];
|
|
218
|
-
};
|
|
219
|
-
};
|
|
220
|
-
readonly required: readonly ["image"];
|
|
221
|
-
readonly additionalProperties: false;
|
|
222
|
-
};
|
|
223
|
-
executeReactive(input: Input, _output: Output, _context: IExecuteReactiveContext): Promise<Output>;
|
|
224
|
-
}
|
|
225
|
-
declare module "@workglow/task-graph" {
|
|
226
|
-
interface Workflow {
|
|
227
|
-
imageGrayscale: CreateWorkflow<ImageGrayscaleTaskInput, ImageGrayscaleTaskOutput, TaskConfig>;
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
export {};
|
|
231
|
-
//# sourceMappingURL=ImageGrayscaleTask.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ImageGrayscaleTask.d.ts","sourceRoot":"","sources":["../../../src/task/image/ImageGrayscaleTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,IAAI,EACJ,UAAU,EAEX,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAA8B,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAG7E,QAAA,MAAM,WAAW;mBACT,QAAQ;;iBAEZ,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI0B,CAAC;AAEpC,QAAA,MAAM,YAAY;mBACV,QAAQ;;iBAEZ,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI0B,CAAC;AAEpC,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC,OAAO,WAAW,CAAC,CAAC;AAC1E,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAC,OAAO,YAAY,CAAC,CAAC;AAE5E,qBAAa,kBAAkB,CAC7B,KAAK,SAAS,uBAAuB,GAAG,uBAAuB,EAC/D,MAAM,SAAS,wBAAwB,GAAG,wBAAwB,EAClE,MAAM,SAAS,UAAU,GAAG,UAAU,CACtC,SAAQ,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;IACnC,gBAAyB,IAAI,wBAAwB;IACrD,gBAAyB,QAAQ,WAAW;IAC5C,OAAuB,KAAK,SAAe;IAC3C,OAAuB,WAAW,SAAoD;IAEtF,OAAgB,WAAW;uBA9BrB,QAAQ;;qBAEZ,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8BN;IAED,OAAgB,YAAY;uBAzBtB,QAAQ;;qBAEZ,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyBN;IAEc,eAAe,CAC5B,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,uBAAuB,GAChC,OAAO,CAAC,MAAM,CAAC,CAmBjB;CACF;AAED,OAAO,QAAQ,sBAAsB,CAAC,CAAC;IACrC,UAAU,QAAQ;QAChB,cAAc,EAAE,cAAc,CAAC,uBAAuB,EAAE,wBAAwB,EAAE,UAAU,CAAC,CAAC;KAC/F;CACF"}
|