@workglow/tasks 0.2.17 → 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.
Files changed (192) hide show
  1. package/dist/browser.d.ts +2 -2
  2. package/dist/browser.d.ts.map +1 -1
  3. package/dist/browser.js +1636 -1287
  4. package/dist/browser.js.map +58 -26
  5. package/dist/bun.d.ts +2 -2
  6. package/dist/bun.d.ts.map +1 -1
  7. package/dist/bun.js +1382 -1318
  8. package/dist/bun.js.map +56 -26
  9. package/dist/codec.browser.d.ts +39 -0
  10. package/dist/codec.browser.d.ts.map +1 -0
  11. package/dist/codec.node.d.ts +37 -0
  12. package/dist/codec.node.d.ts.map +1 -0
  13. package/dist/common.d.ts +39 -38
  14. package/dist/common.d.ts.map +1 -1
  15. package/dist/electron.d.ts +2 -2
  16. package/dist/electron.d.ts.map +1 -1
  17. package/dist/electron.js +1382 -1318
  18. package/dist/electron.js.map +56 -26
  19. package/dist/node.d.ts +2 -2
  20. package/dist/node.d.ts.map +1 -1
  21. package/dist/node.js +1382 -1318
  22. package/dist/node.js.map +56 -26
  23. package/dist/task/image/ImageFilterTask.d.ts +24 -0
  24. package/dist/task/image/ImageFilterTask.d.ts.map +1 -0
  25. package/dist/task/image/ImageSchemas.d.ts +15 -101
  26. package/dist/task/image/ImageSchemas.d.ts.map +1 -1
  27. package/dist/task/image/blur/ImageBlurTask.d.ts +29 -0
  28. package/dist/task/image/blur/ImageBlurTask.d.ts.map +1 -0
  29. package/dist/task/image/blur/blur.cpu.d.ts +4 -0
  30. package/dist/task/image/blur/blur.cpu.d.ts.map +1 -0
  31. package/dist/task/image/blur/blur.sharp.d.ts +2 -0
  32. package/dist/task/image/blur/blur.sharp.d.ts.map +1 -0
  33. package/dist/task/image/blur/blur.webgpu.d.ts +2 -0
  34. package/dist/task/image/blur/blur.webgpu.d.ts.map +1 -0
  35. package/dist/task/image/border/ImageBorderTask.d.ts +35 -0
  36. package/dist/task/image/border/ImageBorderTask.d.ts.map +1 -0
  37. package/dist/task/image/border/border.cpu.d.ts +10 -0
  38. package/dist/task/image/border/border.cpu.d.ts.map +1 -0
  39. package/dist/task/image/border/border.sharp.d.ts +2 -0
  40. package/dist/task/image/border/border.sharp.d.ts.map +1 -0
  41. package/dist/task/image/border/border.webgpu.d.ts +2 -0
  42. package/dist/task/image/border/border.webgpu.d.ts.map +1 -0
  43. package/dist/task/image/brightness/ImageBrightnessTask.d.ts +28 -0
  44. package/dist/task/image/brightness/ImageBrightnessTask.d.ts.map +1 -0
  45. package/dist/task/image/brightness/brightness.cpu.d.ts +4 -0
  46. package/dist/task/image/brightness/brightness.cpu.d.ts.map +1 -0
  47. package/dist/task/image/brightness/brightness.sharp.d.ts +2 -0
  48. package/dist/task/image/brightness/brightness.sharp.d.ts.map +1 -0
  49. package/dist/task/image/brightness/brightness.webgpu.d.ts +2 -0
  50. package/dist/task/image/brightness/brightness.webgpu.d.ts.map +1 -0
  51. package/dist/task/image/contrast/ImageContrastTask.d.ts +28 -0
  52. package/dist/task/image/contrast/ImageContrastTask.d.ts.map +1 -0
  53. package/dist/task/image/contrast/contrast.cpu.d.ts +4 -0
  54. package/dist/task/image/contrast/contrast.cpu.d.ts.map +1 -0
  55. package/dist/task/image/contrast/contrast.sharp.d.ts +2 -0
  56. package/dist/task/image/contrast/contrast.sharp.d.ts.map +1 -0
  57. package/dist/task/image/contrast/contrast.webgpu.d.ts +2 -0
  58. package/dist/task/image/contrast/contrast.webgpu.d.ts.map +1 -0
  59. package/dist/task/image/crop/ImageCropTask.d.ts +32 -0
  60. package/dist/task/image/crop/ImageCropTask.d.ts.map +1 -0
  61. package/dist/task/image/crop/crop.cpu.d.ts +7 -0
  62. package/dist/task/image/crop/crop.cpu.d.ts.map +1 -0
  63. package/dist/task/image/crop/crop.sharp.d.ts +2 -0
  64. package/dist/task/image/crop/crop.sharp.d.ts.map +1 -0
  65. package/dist/task/image/crop/crop.webgpu.d.ts +2 -0
  66. package/dist/task/image/crop/crop.webgpu.d.ts.map +1 -0
  67. package/dist/task/image/flip/ImageFlipTask.d.ts +28 -0
  68. package/dist/task/image/flip/ImageFlipTask.d.ts.map +1 -0
  69. package/dist/task/image/flip/flip.cpu.d.ts +4 -0
  70. package/dist/task/image/flip/flip.cpu.d.ts.map +1 -0
  71. package/dist/task/image/flip/flip.sharp.d.ts +2 -0
  72. package/dist/task/image/flip/flip.sharp.d.ts.map +1 -0
  73. package/dist/task/image/flip/flip.webgpu.d.ts +2 -0
  74. package/dist/task/image/flip/flip.webgpu.d.ts.map +1 -0
  75. package/dist/task/image/grayscale/ImageGrayscaleTask.d.ts +25 -0
  76. package/dist/task/image/grayscale/ImageGrayscaleTask.d.ts.map +1 -0
  77. package/dist/task/image/grayscale/grayscale.cpu.d.ts +2 -0
  78. package/dist/task/image/grayscale/grayscale.cpu.d.ts.map +1 -0
  79. package/dist/task/image/grayscale/grayscale.sharp.d.ts +2 -0
  80. package/dist/task/image/grayscale/grayscale.sharp.d.ts.map +1 -0
  81. package/dist/task/image/grayscale/grayscale.webgpu.d.ts +2 -0
  82. package/dist/task/image/grayscale/grayscale.webgpu.d.ts.map +1 -0
  83. package/dist/task/image/imageCodecLimits.d.ts +8 -4
  84. package/dist/task/image/imageCodecLimits.d.ts.map +1 -1
  85. package/dist/task/image/invert/ImageInvertTask.d.ts +25 -0
  86. package/dist/task/image/invert/ImageInvertTask.d.ts.map +1 -0
  87. package/dist/task/image/invert/invert.cpu.d.ts +2 -0
  88. package/dist/task/image/invert/invert.cpu.d.ts.map +1 -0
  89. package/dist/task/image/invert/invert.sharp.d.ts +2 -0
  90. package/dist/task/image/invert/invert.sharp.d.ts.map +1 -0
  91. package/dist/task/image/invert/invert.webgpu.d.ts +2 -0
  92. package/dist/task/image/invert/invert.webgpu.d.ts.map +1 -0
  93. package/dist/task/image/pixelate/ImagePixelateTask.d.ts +29 -0
  94. package/dist/task/image/pixelate/ImagePixelateTask.d.ts.map +1 -0
  95. package/dist/task/image/pixelate/pixelate.cpu.d.ts +4 -0
  96. package/dist/task/image/pixelate/pixelate.cpu.d.ts.map +1 -0
  97. package/dist/task/image/pixelate/pixelate.sharp.d.ts +2 -0
  98. package/dist/task/image/pixelate/pixelate.sharp.d.ts.map +1 -0
  99. package/dist/task/image/pixelate/pixelate.webgpu.d.ts +2 -0
  100. package/dist/task/image/pixelate/pixelate.webgpu.d.ts.map +1 -0
  101. package/dist/task/image/posterize/ImagePosterizeTask.d.ts +28 -0
  102. package/dist/task/image/posterize/ImagePosterizeTask.d.ts.map +1 -0
  103. package/dist/task/image/posterize/posterize.cpu.d.ts +4 -0
  104. package/dist/task/image/posterize/posterize.cpu.d.ts.map +1 -0
  105. package/dist/task/image/posterize/posterize.webgpu.d.ts +2 -0
  106. package/dist/task/image/posterize/posterize.webgpu.d.ts.map +1 -0
  107. package/dist/task/image/resize/ImageResizeTask.d.ts +32 -0
  108. package/dist/task/image/resize/ImageResizeTask.d.ts.map +1 -0
  109. package/dist/task/image/resize/resize.cpu.d.ts +7 -0
  110. package/dist/task/image/resize/resize.cpu.d.ts.map +1 -0
  111. package/dist/task/image/resize/resize.sharp.d.ts +2 -0
  112. package/dist/task/image/resize/resize.sharp.d.ts.map +1 -0
  113. package/dist/task/image/resize/resize.webgpu.d.ts +2 -0
  114. package/dist/task/image/resize/resize.webgpu.d.ts.map +1 -0
  115. package/dist/task/image/rotate/ImageRotateTask.d.ts +29 -0
  116. package/dist/task/image/rotate/ImageRotateTask.d.ts.map +1 -0
  117. package/dist/task/image/rotate/rotate.cpu.d.ts +5 -0
  118. package/dist/task/image/rotate/rotate.cpu.d.ts.map +1 -0
  119. package/dist/task/image/rotate/rotate.sharp.d.ts +2 -0
  120. package/dist/task/image/rotate/rotate.sharp.d.ts.map +1 -0
  121. package/dist/task/image/rotate/rotate.webgpu.d.ts +2 -0
  122. package/dist/task/image/rotate/rotate.webgpu.d.ts.map +1 -0
  123. package/dist/task/image/sepia/ImageSepiaTask.d.ts +25 -0
  124. package/dist/task/image/sepia/ImageSepiaTask.d.ts.map +1 -0
  125. package/dist/task/image/sepia/sepia.cpu.d.ts +2 -0
  126. package/dist/task/image/sepia/sepia.cpu.d.ts.map +1 -0
  127. package/dist/task/image/sepia/sepia.sharp.d.ts +2 -0
  128. package/dist/task/image/sepia/sepia.sharp.d.ts.map +1 -0
  129. package/dist/task/image/sepia/sepia.webgpu.d.ts +2 -0
  130. package/dist/task/image/sepia/sepia.webgpu.d.ts.map +1 -0
  131. package/dist/task/image/{ImageTextTask.d.ts → text/ImageTextTask.d.ts} +15 -102
  132. package/dist/task/image/text/ImageTextTask.d.ts.map +1 -0
  133. package/dist/task/image/threshold/ImageThresholdTask.d.ts +28 -0
  134. package/dist/task/image/threshold/ImageThresholdTask.d.ts.map +1 -0
  135. package/dist/task/image/threshold/threshold.cpu.d.ts +4 -0
  136. package/dist/task/image/threshold/threshold.cpu.d.ts.map +1 -0
  137. package/dist/task/image/threshold/threshold.sharp.d.ts +2 -0
  138. package/dist/task/image/threshold/threshold.sharp.d.ts.map +1 -0
  139. package/dist/task/image/threshold/threshold.webgpu.d.ts +2 -0
  140. package/dist/task/image/threshold/threshold.webgpu.d.ts.map +1 -0
  141. package/dist/task/image/tint/ImageTintTask.d.ts +30 -0
  142. package/dist/task/image/tint/ImageTintTask.d.ts.map +1 -0
  143. package/dist/task/image/tint/tint.cpu.d.ts +11 -0
  144. package/dist/task/image/tint/tint.cpu.d.ts.map +1 -0
  145. package/dist/task/image/tint/tint.sharp.d.ts +2 -0
  146. package/dist/task/image/tint/tint.sharp.d.ts.map +1 -0
  147. package/dist/task/image/tint/tint.webgpu.d.ts +2 -0
  148. package/dist/task/image/tint/tint.webgpu.d.ts.map +1 -0
  149. package/dist/task/image/transparency/ImageTransparencyTask.d.ts +28 -0
  150. package/dist/task/image/transparency/ImageTransparencyTask.d.ts.map +1 -0
  151. package/dist/task/image/transparency/transparency.cpu.d.ts +4 -0
  152. package/dist/task/image/transparency/transparency.cpu.d.ts.map +1 -0
  153. package/dist/task/image/transparency/transparency.webgpu.d.ts +2 -0
  154. package/dist/task/image/transparency/transparency.webgpu.d.ts.map +1 -0
  155. package/package.json +9 -9
  156. package/dist/task/image/ImageBlurTask.d.ts +0 -248
  157. package/dist/task/image/ImageBlurTask.d.ts.map +0 -1
  158. package/dist/task/image/ImageBorderTask.d.ts +0 -328
  159. package/dist/task/image/ImageBorderTask.d.ts.map +0 -1
  160. package/dist/task/image/ImageBrightnessTask.d.ts +0 -248
  161. package/dist/task/image/ImageBrightnessTask.d.ts.map +0 -1
  162. package/dist/task/image/ImageContrastTask.d.ts +0 -248
  163. package/dist/task/image/ImageContrastTask.d.ts.map +0 -1
  164. package/dist/task/image/ImageCropTask.d.ts +0 -280
  165. package/dist/task/image/ImageCropTask.d.ts.map +0 -1
  166. package/dist/task/image/ImageFlipTask.d.ts +0 -244
  167. package/dist/task/image/ImageFlipTask.d.ts.map +0 -1
  168. package/dist/task/image/ImageGrayscaleTask.d.ts +0 -232
  169. package/dist/task/image/ImageGrayscaleTask.d.ts.map +0 -1
  170. package/dist/task/image/ImageInvertTask.d.ts +0 -232
  171. package/dist/task/image/ImageInvertTask.d.ts.map +0 -1
  172. package/dist/task/image/ImagePixelateTask.d.ts +0 -246
  173. package/dist/task/image/ImagePixelateTask.d.ts.map +0 -1
  174. package/dist/task/image/ImagePosterizeTask.d.ts +0 -248
  175. package/dist/task/image/ImagePosterizeTask.d.ts.map +0 -1
  176. package/dist/task/image/ImageResizeTask.d.ts +0 -256
  177. package/dist/task/image/ImageResizeTask.d.ts.map +0 -1
  178. package/dist/task/image/ImageRotateTask.d.ts +0 -244
  179. package/dist/task/image/ImageRotateTask.d.ts.map +0 -1
  180. package/dist/task/image/ImageSepiaTask.d.ts +0 -232
  181. package/dist/task/image/ImageSepiaTask.d.ts.map +0 -1
  182. package/dist/task/image/ImageTextTask.d.ts.map +0 -1
  183. package/dist/task/image/ImageThresholdTask.d.ts +0 -248
  184. package/dist/task/image/ImageThresholdTask.d.ts.map +0 -1
  185. package/dist/task/image/ImageTintTask.d.ts +0 -330
  186. package/dist/task/image/ImageTintTask.d.ts.map +0 -1
  187. package/dist/task/image/ImageTransparencyTask.d.ts +0 -246
  188. package/dist/task/image/ImageTransparencyTask.d.ts.map +0 -1
  189. package/dist/task/image/ImageWatermarkTask.d.ts +0 -276
  190. package/dist/task/image/ImageWatermarkTask.d.ts.map +0 -1
  191. package/dist/task/image/imageTaskIo.d.ts +0 -20
  192. package/dist/task/image/imageTaskIo.d.ts.map +0 -1
@@ -1,248 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import { CreateWorkflow, IExecuteContext, IExecutePreviewContext, 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 threshold: {
57
- readonly type: "integer";
58
- readonly title: "Threshold";
59
- readonly description: "Threshold value (0-255)";
60
- readonly minimum: 0;
61
- readonly maximum: 255;
62
- readonly default: 128;
63
- };
64
- };
65
- readonly required: readonly ["image"];
66
- readonly additionalProperties: false;
67
- };
68
- declare const outputSchema: {
69
- readonly type: "object";
70
- readonly properties: {
71
- readonly image: {
72
- readonly oneOf: readonly [{
73
- readonly type: "object";
74
- readonly properties: {
75
- readonly data: {
76
- readonly type: "array";
77
- readonly items: {
78
- readonly type: "number";
79
- readonly format: "Uint8Clamped";
80
- };
81
- readonly format: "Uint8ClampedArray";
82
- readonly title: "Data";
83
- readonly description: "Pixel data of the image";
84
- };
85
- readonly width: {
86
- readonly type: "integer";
87
- readonly minimum: 1;
88
- readonly title: "Width";
89
- readonly description: "Width in pixels";
90
- };
91
- readonly height: {
92
- readonly type: "integer";
93
- readonly minimum: 1;
94
- readonly title: "Height";
95
- readonly description: "Height in pixels";
96
- };
97
- readonly channels: {
98
- readonly type: "integer";
99
- readonly enum: readonly [1, 3, 4];
100
- readonly title: "Channels";
101
- readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
102
- };
103
- };
104
- readonly additionalProperties: false;
105
- readonly required: readonly ["data", "width", "height", "channels"];
106
- readonly format: "image:ImageBinary";
107
- readonly title: "Image";
108
- readonly description: "Raw pixel image data";
109
- }, {
110
- readonly type: "string";
111
- readonly format: "image:data-uri";
112
- readonly title: string;
113
- readonly description: string;
114
- }];
115
- };
116
- };
117
- readonly required: readonly ["image"];
118
- readonly additionalProperties: false;
119
- };
120
- export type ImageThresholdTaskInput = ImageFromSchema<typeof inputSchema>;
121
- export type ImageThresholdTaskOutput = ImageFromSchema<typeof outputSchema>;
122
- export declare class ImageThresholdTask<Input extends ImageThresholdTaskInput = ImageThresholdTaskInput, Output extends ImageThresholdTaskOutput = ImageThresholdTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
123
- static readonly type = "ImageThresholdTask";
124
- static readonly category = "Image";
125
- static title: string;
126
- static description: string;
127
- static inputSchema(): {
128
- readonly type: "object";
129
- readonly properties: {
130
- readonly image: {
131
- readonly oneOf: readonly [{
132
- readonly type: "object";
133
- readonly properties: {
134
- readonly data: {
135
- readonly type: "array";
136
- readonly items: {
137
- readonly type: "number";
138
- readonly format: "Uint8Clamped";
139
- };
140
- readonly format: "Uint8ClampedArray";
141
- readonly title: "Data";
142
- readonly description: "Pixel data of the image";
143
- };
144
- readonly width: {
145
- readonly type: "integer";
146
- readonly minimum: 1;
147
- readonly title: "Width";
148
- readonly description: "Width in pixels";
149
- };
150
- readonly height: {
151
- readonly type: "integer";
152
- readonly minimum: 1;
153
- readonly title: "Height";
154
- readonly description: "Height in pixels";
155
- };
156
- readonly channels: {
157
- readonly type: "integer";
158
- readonly enum: readonly [1, 3, 4];
159
- readonly title: "Channels";
160
- readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
161
- };
162
- };
163
- readonly additionalProperties: false;
164
- readonly required: readonly ["data", "width", "height", "channels"];
165
- readonly format: "image:ImageBinary";
166
- readonly title: "Image";
167
- readonly description: "Raw pixel image data";
168
- }, {
169
- readonly type: "string";
170
- readonly format: "image:data-uri";
171
- readonly title: string;
172
- readonly description: string;
173
- }];
174
- };
175
- readonly threshold: {
176
- readonly type: "integer";
177
- readonly title: "Threshold";
178
- readonly description: "Threshold value (0-255)";
179
- readonly minimum: 0;
180
- readonly maximum: 255;
181
- readonly default: 128;
182
- };
183
- };
184
- readonly required: readonly ["image"];
185
- readonly additionalProperties: false;
186
- };
187
- static outputSchema(): {
188
- readonly type: "object";
189
- readonly properties: {
190
- readonly image: {
191
- readonly oneOf: readonly [{
192
- readonly type: "object";
193
- readonly properties: {
194
- readonly data: {
195
- readonly type: "array";
196
- readonly items: {
197
- readonly type: "number";
198
- readonly format: "Uint8Clamped";
199
- };
200
- readonly format: "Uint8ClampedArray";
201
- readonly title: "Data";
202
- readonly description: "Pixel data of the image";
203
- };
204
- readonly width: {
205
- readonly type: "integer";
206
- readonly minimum: 1;
207
- readonly title: "Width";
208
- readonly description: "Width in pixels";
209
- };
210
- readonly height: {
211
- readonly type: "integer";
212
- readonly minimum: 1;
213
- readonly title: "Height";
214
- readonly description: "Height in pixels";
215
- };
216
- readonly channels: {
217
- readonly type: "integer";
218
- readonly enum: readonly [1, 3, 4];
219
- readonly title: "Channels";
220
- readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
221
- };
222
- };
223
- readonly additionalProperties: false;
224
- readonly required: readonly ["data", "width", "height", "channels"];
225
- readonly format: "image:ImageBinary";
226
- readonly title: "Image";
227
- readonly description: "Raw pixel image data";
228
- }, {
229
- readonly type: "string";
230
- readonly format: "image:data-uri";
231
- readonly title: string;
232
- readonly description: string;
233
- }];
234
- };
235
- };
236
- readonly required: readonly ["image"];
237
- readonly additionalProperties: false;
238
- };
239
- execute(input: Input, _context: IExecuteContext): Promise<Output | undefined>;
240
- executePreview(input: Input, _context: IExecutePreviewContext): Promise<Output | undefined>;
241
- }
242
- declare module "@workglow/task-graph" {
243
- interface Workflow {
244
- imageThreshold: CreateWorkflow<ImageThresholdTaskInput, ImageThresholdTaskOutput, TaskConfig>;
245
- }
246
- }
247
- export {};
248
- //# sourceMappingURL=ImageThresholdTask.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ImageThresholdTask.d.ts","sourceRoot":"","sources":["../../../src/task/image/ImageThresholdTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,IAAI,EACJ,UAAU,EAEX,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAA8B,eAAe,EAAE,MAAM,gBAAgB,CAAC;AA0B7E,QAAA,MAAM,WAAW;mBACT,QAAQ;;iBAEZ,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBACL,SA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GAAG,SAAS,CAAC,CAE3F;IAEc,cAAc,CAC3B,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,sBAAsB,GAC/B,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAE7B;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"}
@@ -1,330 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import { CreateWorkflow, IExecuteContext, IExecutePreviewContext, 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 color: {
57
- readonly oneOf: readonly [{
58
- readonly type: "object";
59
- readonly properties: {
60
- readonly r: {
61
- readonly type: "integer";
62
- readonly minimum: 0;
63
- readonly maximum: 255;
64
- readonly title: "Red";
65
- };
66
- readonly g: {
67
- readonly type: "integer";
68
- readonly minimum: 0;
69
- readonly maximum: 255;
70
- readonly title: "Green";
71
- };
72
- readonly b: {
73
- readonly type: "integer";
74
- readonly minimum: 0;
75
- readonly maximum: 255;
76
- readonly title: "Blue";
77
- };
78
- readonly a: {
79
- readonly type: "integer";
80
- readonly minimum: 0;
81
- readonly maximum: 255;
82
- readonly title: "Alpha";
83
- readonly default: 255;
84
- };
85
- };
86
- readonly required: readonly ["r", "g", "b"];
87
- readonly format: "color";
88
- readonly additionalProperties: false;
89
- }, {
90
- readonly type: "string";
91
- readonly format: "color";
92
- readonly pattern: "^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$";
93
- readonly title: "Color (hex)";
94
- readonly description: "Color as a `#RRGGBB[AA]` or `#RGB[A]` hex string";
95
- }];
96
- };
97
- readonly amount: {
98
- readonly type: "number";
99
- readonly title: "Amount";
100
- readonly description: "Tint strength (0.0 = no tint, 1.0 = full tint color)";
101
- readonly minimum: 0;
102
- readonly maximum: 1;
103
- readonly default: 0.5;
104
- };
105
- };
106
- readonly required: readonly ["image", "color"];
107
- readonly additionalProperties: false;
108
- };
109
- declare const outputSchema: {
110
- readonly type: "object";
111
- readonly properties: {
112
- readonly image: {
113
- readonly oneOf: readonly [{
114
- readonly type: "object";
115
- readonly properties: {
116
- readonly data: {
117
- readonly type: "array";
118
- readonly items: {
119
- readonly type: "number";
120
- readonly format: "Uint8Clamped";
121
- };
122
- readonly format: "Uint8ClampedArray";
123
- readonly title: "Data";
124
- readonly description: "Pixel data of the image";
125
- };
126
- readonly width: {
127
- readonly type: "integer";
128
- readonly minimum: 1;
129
- readonly title: "Width";
130
- readonly description: "Width in pixels";
131
- };
132
- readonly height: {
133
- readonly type: "integer";
134
- readonly minimum: 1;
135
- readonly title: "Height";
136
- readonly description: "Height in pixels";
137
- };
138
- readonly channels: {
139
- readonly type: "integer";
140
- readonly enum: readonly [1, 3, 4];
141
- readonly title: "Channels";
142
- readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
143
- };
144
- };
145
- readonly additionalProperties: false;
146
- readonly required: readonly ["data", "width", "height", "channels"];
147
- readonly format: "image:ImageBinary";
148
- readonly title: "Image";
149
- readonly description: "Raw pixel image data";
150
- }, {
151
- readonly type: "string";
152
- readonly format: "image:data-uri";
153
- readonly title: string;
154
- readonly description: string;
155
- }];
156
- };
157
- };
158
- readonly required: readonly ["image"];
159
- readonly additionalProperties: false;
160
- };
161
- export type ImageTintTaskInput = ImageFromSchema<typeof inputSchema>;
162
- export type ImageTintTaskOutput = ImageFromSchema<typeof outputSchema>;
163
- export declare class ImageTintTask<Input extends ImageTintTaskInput = ImageTintTaskInput, Output extends ImageTintTaskOutput = ImageTintTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
164
- static readonly type = "ImageTintTask";
165
- static readonly category = "Image";
166
- static title: string;
167
- static description: string;
168
- static inputSchema(): {
169
- readonly type: "object";
170
- readonly properties: {
171
- readonly image: {
172
- readonly oneOf: readonly [{
173
- readonly type: "object";
174
- readonly properties: {
175
- readonly data: {
176
- readonly type: "array";
177
- readonly items: {
178
- readonly type: "number";
179
- readonly format: "Uint8Clamped";
180
- };
181
- readonly format: "Uint8ClampedArray";
182
- readonly title: "Data";
183
- readonly description: "Pixel data of the image";
184
- };
185
- readonly width: {
186
- readonly type: "integer";
187
- readonly minimum: 1;
188
- readonly title: "Width";
189
- readonly description: "Width in pixels";
190
- };
191
- readonly height: {
192
- readonly type: "integer";
193
- readonly minimum: 1;
194
- readonly title: "Height";
195
- readonly description: "Height in pixels";
196
- };
197
- readonly channels: {
198
- readonly type: "integer";
199
- readonly enum: readonly [1, 3, 4];
200
- readonly title: "Channels";
201
- readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
202
- };
203
- };
204
- readonly additionalProperties: false;
205
- readonly required: readonly ["data", "width", "height", "channels"];
206
- readonly format: "image:ImageBinary";
207
- readonly title: "Image";
208
- readonly description: "Raw pixel image data";
209
- }, {
210
- readonly type: "string";
211
- readonly format: "image:data-uri";
212
- readonly title: string;
213
- readonly description: string;
214
- }];
215
- };
216
- readonly color: {
217
- readonly oneOf: readonly [{
218
- readonly type: "object";
219
- readonly properties: {
220
- readonly r: {
221
- readonly type: "integer";
222
- readonly minimum: 0;
223
- readonly maximum: 255;
224
- readonly title: "Red";
225
- };
226
- readonly g: {
227
- readonly type: "integer";
228
- readonly minimum: 0;
229
- readonly maximum: 255;
230
- readonly title: "Green";
231
- };
232
- readonly b: {
233
- readonly type: "integer";
234
- readonly minimum: 0;
235
- readonly maximum: 255;
236
- readonly title: "Blue";
237
- };
238
- readonly a: {
239
- readonly type: "integer";
240
- readonly minimum: 0;
241
- readonly maximum: 255;
242
- readonly title: "Alpha";
243
- readonly default: 255;
244
- };
245
- };
246
- readonly required: readonly ["r", "g", "b"];
247
- readonly format: "color";
248
- readonly additionalProperties: false;
249
- }, {
250
- readonly type: "string";
251
- readonly format: "color";
252
- readonly pattern: "^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$";
253
- readonly title: "Color (hex)";
254
- readonly description: "Color as a `#RRGGBB[AA]` or `#RGB[A]` hex string";
255
- }];
256
- };
257
- readonly amount: {
258
- readonly type: "number";
259
- readonly title: "Amount";
260
- readonly description: "Tint strength (0.0 = no tint, 1.0 = full tint color)";
261
- readonly minimum: 0;
262
- readonly maximum: 1;
263
- readonly default: 0.5;
264
- };
265
- };
266
- readonly required: readonly ["image", "color"];
267
- readonly additionalProperties: false;
268
- };
269
- static outputSchema(): {
270
- readonly type: "object";
271
- readonly properties: {
272
- readonly image: {
273
- readonly oneOf: readonly [{
274
- readonly type: "object";
275
- readonly properties: {
276
- readonly data: {
277
- readonly type: "array";
278
- readonly items: {
279
- readonly type: "number";
280
- readonly format: "Uint8Clamped";
281
- };
282
- readonly format: "Uint8ClampedArray";
283
- readonly title: "Data";
284
- readonly description: "Pixel data of the image";
285
- };
286
- readonly width: {
287
- readonly type: "integer";
288
- readonly minimum: 1;
289
- readonly title: "Width";
290
- readonly description: "Width in pixels";
291
- };
292
- readonly height: {
293
- readonly type: "integer";
294
- readonly minimum: 1;
295
- readonly title: "Height";
296
- readonly description: "Height in pixels";
297
- };
298
- readonly channels: {
299
- readonly type: "integer";
300
- readonly enum: readonly [1, 3, 4];
301
- readonly title: "Channels";
302
- readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
303
- };
304
- };
305
- readonly additionalProperties: false;
306
- readonly required: readonly ["data", "width", "height", "channels"];
307
- readonly format: "image:ImageBinary";
308
- readonly title: "Image";
309
- readonly description: "Raw pixel image data";
310
- }, {
311
- readonly type: "string";
312
- readonly format: "image:data-uri";
313
- readonly title: string;
314
- readonly description: string;
315
- }];
316
- };
317
- };
318
- readonly required: readonly ["image"];
319
- readonly additionalProperties: false;
320
- };
321
- execute(input: Input, _context: IExecuteContext): Promise<Output | undefined>;
322
- executePreview(input: Input, _context: IExecutePreviewContext): Promise<Output | undefined>;
323
- }
324
- declare module "@workglow/task-graph" {
325
- interface Workflow {
326
- imageTint: CreateWorkflow<ImageTintTaskInput, ImageTintTaskOutput, TaskConfig>;
327
- }
328
- }
329
- export {};
330
- //# sourceMappingURL=ImageTintTask.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ImageTintTask.d.ts","sourceRoot":"","sources":["../../../src/task/image/ImageTintTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,IAAI,EACJ,UAAU,EAEX,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAgD,eAAe,EAAE,MAAM,gBAAgB,CAAC;AA4C/F,QAAA,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