ApexPainter member
ApexPainter.batch
Published ApexPainter.batch method.
lib-next/apex-painter/main.ts (opens in a new tab)Signature
(operations: BatchOperation[], opts?: BatchChainAssetOpts) => Promise<Buffer[]>Parameters
operations
BatchOperation[]
opts?
Options
| Option | Type | Contract | Allowed values | Runtime & capabilities |
|---|---|---|---|---|
| operations | ||||
operations.configPublished operations.config option. | CanvasConfig | RequiredDefaultRequired | — | node22 · node24 · node26 |
operations.config.bgLayersPublished operations.config.bgLayers option. | BackgroundLayer[] | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.bgLayers.blendModePublished operations.config.bgLayers.blendMode option. | GlobalCompositeOperation | OptionalDefault— | 26 values"color" "color-burn" "color-dodge" "copy" "darken" "destination-atop" "destination-in" "destination-out" "destination-over" "difference" "exclusion" "hard-light" "hue" "lighten" "lighter" "luminosity" "multiply" "overlay" "saturation" "screen" "soft-light" "source-atop" "source-in" "source-out" "source-over" "xor" | node22 · node24 · node26 |
operations.config.bgLayers.opacityPublished operations.config.bgLayers.opacity option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.bgLayers.typePublished operations.config.bgLayers.type option. | "color" | RequiredDefaultRequired | "color" | node22 · node24 · node26 |
operations.config.bgLayers.valuePublished operations.config.bgLayers.value option. | string | RequiredDefaultRequired | — | node22 · node24 · node26 |
operations.config.bgLayers.alignPublished operations.config.bgLayers.align option. | AlignMode | OptionalDefault— | 9 values"center" "top" "bottom" "left" "right" "top-left" "top-right" "bottom-left" "bottom-right" | node22 · node24 · node26 |
operations.config.bgLayers.fitPublished operations.config.bgLayers.fit option. | "fill" | "contain" | "cover" | OptionalDefault— | "fill" "contain" "cover" | node22 · node24 · node26 |
operations.config.bgLayers.sourcePublished operations.config.bgLayers.source option. | string | RequiredDefaultRequired | — | node22 · node24 · node26 |
operations.config.bgLayers.repeatPublished operations.config.bgLayers.repeat option. | BackgroundPatternRepeat | OptionalDefault— | "repeat" "no-repeat" "repeat-x" "repeat-y" | node22 · node24 · node26 |
operations.config.bgLayers.patternPublished operations.config.bgLayers.pattern option. | PatternOptions | RequiredDefaultRequired | — | node22 · node24 · node26 |
operations.config.bgLayers.pattern.blendModePublished operations.config.bgLayers.pattern.blendMode option. | GlobalCompositeOperation | OptionalDefault— | 26 values"color" "color-burn" "color-dodge" "copy" "darken" "destination-atop" "destination-in" "destination-out" "destination-over" "difference" "exclusion" "hard-light" "hue" "lighten" "lighter" "luminosity" "multiply" "overlay" "saturation" "screen" "soft-light" "source-atop" "source-in" "source-out" "source-over" "xor" | node22 · node24 · node26 |
operations.config.bgLayers.pattern.colorPublished operations.config.bgLayers.pattern.color option. | string | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.bgLayers.pattern.customPatternImagePublished operations.config.bgLayers.pattern.customPatternImage option. | string | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.bgLayers.pattern.gradientPublished operations.config.bgLayers.pattern.gradient option. | GradientConfig | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.bgLayers.pattern.gradient.anglePublished operations.config.bgLayers.pattern.gradient.angle option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.bgLayers.pattern.gradient.centerXPublished operations.config.bgLayers.pattern.gradient.centerX option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.bgLayers.pattern.gradient.centerYPublished operations.config.bgLayers.pattern.gradient.centerY option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.bgLayers.pattern.gradient.colorsPublished operations.config.bgLayers.pattern.gradient.colors option. | { stop: number; color: string; }[] | RequiredDefaultRequired | — | node22 · node24 · node26 |
operations.config.bgLayers.pattern.gradient.colors.colorPublished operations.config.bgLayers.pattern.gradient.colors.color option. | string | RequiredDefaultRequired | — | node22 · node24 · node26 |
operations.config.bgLayers.pattern.gradient.colors.stopPublished operations.config.bgLayers.pattern.gradient.colors.stop option. | number | RequiredDefaultRequired | — | node22 · node24 · node26 |
operations.config.bgLayers.pattern.gradient.endRadiusPublished operations.config.bgLayers.pattern.gradient.endRadius option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.bgLayers.pattern.gradient.endXPublished operations.config.bgLayers.pattern.gradient.endX option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.bgLayers.pattern.gradient.endYPublished operations.config.bgLayers.pattern.gradient.endY option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.bgLayers.pattern.gradient.repeatPublished operations.config.bgLayers.pattern.gradient.repeat option. | "repeat" | "reflect" | "no-repeat" | OptionalDefault— | "repeat" "reflect" "no-repeat" | node22 · node24 · node26 |
operations.config.bgLayers.pattern.gradient.startAnglePublished operations.config.bgLayers.pattern.gradient.startAngle option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.bgLayers.pattern.gradient.startRadiusPublished operations.config.bgLayers.pattern.gradient.startRadius option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.bgLayers.pattern.gradient.startXPublished operations.config.bgLayers.pattern.gradient.startX option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.bgLayers.pattern.gradient.startYPublished operations.config.bgLayers.pattern.gradient.startY option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.bgLayers.pattern.gradient.typePublished operations.config.bgLayers.pattern.gradient.type option. | "linear" | "radial" | "conic" | RequiredDefaultRequired | "linear" "radial" "conic" | node22 · node24 · node26 |
operations.config.bgLayers.pattern.offsetXPublished operations.config.bgLayers.pattern.offsetX option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.bgLayers.pattern.offsetYPublished operations.config.bgLayers.pattern.offsetY option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.bgLayers.pattern.opacityPublished operations.config.bgLayers.pattern.opacity option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.bgLayers.pattern.repeatPublished operations.config.bgLayers.pattern.repeat option. | "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | OptionalDefault— | "repeat" "no-repeat" "repeat-x" "repeat-y" | node22 · node24 · node26 |
operations.config.bgLayers.pattern.rotationPublished operations.config.bgLayers.pattern.rotation option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.bgLayers.pattern.scalePublished operations.config.bgLayers.pattern.scale option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.bgLayers.pattern.secondaryColorPublished operations.config.bgLayers.pattern.secondaryColor option. | string | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.bgLayers.pattern.sizePublished operations.config.bgLayers.pattern.size option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.bgLayers.pattern.spacingPublished operations.config.bgLayers.pattern.spacing option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.bgLayers.pattern.typePublished operations.config.bgLayers.pattern.type option. | "grid" | "dots" | "diagonal" | "stripes" | "waves" | "crosses" | "hexagons" | "checkerboard" | "diamonds" | "triangles" | "stars" | "polka" | "custom" | RequiredDefaultRequired | 13 values"grid" "dots" "diagonal" "stripes" "waves" "crosses" "hexagons" "checkerboard" "diamonds" "triangles" "stars" "polka" "custom" | node22 · node24 · node26 |
operations.config.bgLayers.intensityPublished operations.config.bgLayers.intensity option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.blendModePublished operations.config.blendMode option. | GlobalCompositeOperation | OptionalDefault— | 26 values"color" "color-burn" "color-dodge" "copy" "darken" "destination-atop" "destination-in" "destination-out" "destination-over" "difference" "exclusion" "hard-light" "hue" "lighten" "lighter" "luminosity" "multiply" "overlay" "saturation" "screen" "soft-light" "source-atop" "source-in" "source-out" "source-over" "xor" | node22 · node24 · node26 |
operations.config.blurPublished operations.config.blur option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.borderPositionPublished operations.config.borderPosition option. | string | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.borderRadiusPublished operations.config.borderRadius option. | number | "circular" | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.colorBgPublished operations.config.colorBg option. | string | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.customBgPublished operations.config.customBg option. | CanvasCustomBackground | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.customBg.alignPlacement used by `contain` / `cover` when `inherit` is false. | AlignMode | OptionalDefault— | 9 values"center" "top" "bottom" "left" "right" "top-left" "top-right" "bottom-left" "bottom-right" | node22 · node24 · node26 |
operations.config.customBg.filtersImage filters applied to this background only. | ImageFilter[] | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.customBg.filters.anglePublished operations.config.customBg.filters.angle option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.customBg.filters.centerXPublished operations.config.customBg.filters.centerX option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.customBg.filters.centerYPublished operations.config.customBg.filters.centerY option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.customBg.filters.heightPublished operations.config.customBg.filters.height option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.customBg.filters.intensityPublished operations.config.customBg.filters.intensity option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.customBg.filters.levelsPublished operations.config.customBg.filters.levels option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.customBg.filters.radiusPublished operations.config.customBg.filters.radius option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.customBg.filters.sizePublished operations.config.customBg.filters.size option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.customBg.filters.typePublished operations.config.customBg.filters.type option. | "saturation" | "gaussianBlur" | "motionBlur" | "radialBlur" | "sharpen" | "noise" | "grain" | "edgeDetection" | "emboss" | "invert" | "grayscale" | "sepia" | "pixelate" | "brightness" | "contrast" | "hueShift" | "posterize" | RequiredDefaultRequired | 17 values"saturation" "gaussianBlur" "motionBlur" "radialBlur" "sharpen" "noise" "grain" "edgeDetection" "emboss" "invert" "grayscale" "sepia" "pixelate" "brightness" "contrast" "hueShift" "posterize" | node22 · node24 · node26 |
operations.config.customBg.filters.valuePublished operations.config.customBg.filters.value option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.customBg.filters.widthPublished operations.config.customBg.filters.width option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.customBg.filters.xOptional pixelate region. Omit for the whole filtered surface. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.customBg.filters.yPublished operations.config.customBg.filters.y option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.customBg.fitResize policy when `inherit` is false. | FitMode | OptionalDefault— | "fill" "contain" "cover" | node22 · node24 · node26 |
operations.config.customBg.inheritAdopt the source image dimensions as the canvas dimensions. | boolean | OptionalDefault— | false true | node22 · node24 · node26 |
operations.config.customBg.opacityBackground-image opacity, multiplied by the canvas-level opacity. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.customBg.sourcePublished operations.config.customBg.source option. | string | RequiredDefaultRequired | — | node22 · node24 · node26 |
operations.config.gradientBgPublished operations.config.gradientBg option. | gradient | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.gradientBg.colorsPublished operations.config.gradientBg.colors option. | GradientStop[] | RequiredDefaultRequired | — | node22 · node24 · node26 |
operations.config.gradientBg.colors.colorPublished operations.config.gradientBg.colors.color option. | string | RequiredDefaultRequired | — | node22 · node24 · node26 |
operations.config.gradientBg.colors.stopPublished operations.config.gradientBg.colors.stop option. | number | RequiredDefaultRequired | — | node22 · node24 · node26 |
operations.config.gradientBg.endXPublished operations.config.gradientBg.endX option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.gradientBg.endYPublished operations.config.gradientBg.endY option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.gradientBg.pivotXPublished operations.config.gradientBg.pivotX option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.gradientBg.pivotYPublished operations.config.gradientBg.pivotY option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.gradientBg.repeatPublished operations.config.gradientBg.repeat option. | "repeat" | "reflect" | "no-repeat" | OptionalDefault— | "repeat" "reflect" "no-repeat" | node22 · node24 · node26 |
operations.config.gradientBg.rotatePublished operations.config.gradientBg.rotate option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.gradientBg.startXPublished operations.config.gradientBg.startX option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.gradientBg.startYPublished operations.config.gradientBg.startY option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.gradientBg.typePublished operations.config.gradientBg.type option. | "linear" | RequiredDefaultRequired | "linear" | node22 · node24 · node26 |
operations.config.gradientBg.endRadiusPublished operations.config.gradientBg.endRadius option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.gradientBg.startRadiusPublished operations.config.gradientBg.startRadius option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.gradientBg.centerXPublished operations.config.gradientBg.centerX option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.gradientBg.centerYPublished operations.config.gradientBg.centerY option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.gradientBg.startAnglePublished operations.config.gradientBg.startAngle option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.heightPublished operations.config.height option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.noiseBgPublished operations.config.noiseBg option. | { intensity?: number; } | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.noiseBg.intensityPublished operations.config.noiseBg.intensity option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.opacityPublished operations.config.opacity option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.patternBgPublished operations.config.patternBg option. | PatternOptions | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.patternBg.blendModePublished operations.config.patternBg.blendMode option. | GlobalCompositeOperation | OptionalDefault— | 26 values"color" "color-burn" "color-dodge" "copy" "darken" "destination-atop" "destination-in" "destination-out" "destination-over" "difference" "exclusion" "hard-light" "hue" "lighten" "lighter" "luminosity" "multiply" "overlay" "saturation" "screen" "soft-light" "source-atop" "source-in" "source-out" "source-over" "xor" | node22 · node24 · node26 |
operations.config.patternBg.colorPublished operations.config.patternBg.color option. | string | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.patternBg.customPatternImagePublished operations.config.patternBg.customPatternImage option. | string | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.patternBg.gradientPublished operations.config.patternBg.gradient option. | GradientConfig | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.patternBg.gradient.anglePublished operations.config.patternBg.gradient.angle option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.patternBg.gradient.centerXPublished operations.config.patternBg.gradient.centerX option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.patternBg.gradient.centerYPublished operations.config.patternBg.gradient.centerY option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.patternBg.gradient.colorsPublished operations.config.patternBg.gradient.colors option. | { stop: number; color: string; }[] | RequiredDefaultRequired | — | node22 · node24 · node26 |
operations.config.patternBg.gradient.colors.colorPublished operations.config.patternBg.gradient.colors.color option. | string | RequiredDefaultRequired | — | node22 · node24 · node26 |
operations.config.patternBg.gradient.colors.stopPublished operations.config.patternBg.gradient.colors.stop option. | number | RequiredDefaultRequired | — | node22 · node24 · node26 |
operations.config.patternBg.gradient.endRadiusPublished operations.config.patternBg.gradient.endRadius option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.patternBg.gradient.endXPublished operations.config.patternBg.gradient.endX option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.patternBg.gradient.endYPublished operations.config.patternBg.gradient.endY option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.patternBg.gradient.repeatPublished operations.config.patternBg.gradient.repeat option. | "repeat" | "reflect" | "no-repeat" | OptionalDefault— | "repeat" "reflect" "no-repeat" | node22 · node24 · node26 |
operations.config.patternBg.gradient.startAnglePublished operations.config.patternBg.gradient.startAngle option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.patternBg.gradient.startRadiusPublished operations.config.patternBg.gradient.startRadius option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.patternBg.gradient.startXPublished operations.config.patternBg.gradient.startX option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.patternBg.gradient.startYPublished operations.config.patternBg.gradient.startY option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.patternBg.gradient.typePublished operations.config.patternBg.gradient.type option. | "linear" | "radial" | "conic" | RequiredDefaultRequired | "linear" "radial" "conic" | node22 · node24 · node26 |
operations.config.patternBg.offsetXPublished operations.config.patternBg.offsetX option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.patternBg.offsetYPublished operations.config.patternBg.offsetY option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.patternBg.opacityPublished operations.config.patternBg.opacity option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.patternBg.repeatPublished operations.config.patternBg.repeat option. | "repeat" | "no-repeat" | "repeat-x" | "repeat-y" | OptionalDefault— | "repeat" "no-repeat" "repeat-x" "repeat-y" | node22 · node24 · node26 |
operations.config.patternBg.rotationPublished operations.config.patternBg.rotation option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.patternBg.scalePublished operations.config.patternBg.scale option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.patternBg.secondaryColorPublished operations.config.patternBg.secondaryColor option. | string | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.patternBg.sizePublished operations.config.patternBg.size option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.patternBg.spacingPublished operations.config.patternBg.spacing option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.patternBg.typePublished operations.config.patternBg.type option. | "grid" | "dots" | "diagonal" | "stripes" | "waves" | "crosses" | "hexagons" | "checkerboard" | "diamonds" | "triangles" | "stars" | "polka" | "custom" | RequiredDefaultRequired | 13 values"grid" "dots" "diagonal" "stripes" "waves" "crosses" "hexagons" "checkerboard" "diamonds" "triangles" "stars" "polka" "custom" | node22 · node24 · node26 |
operations.config.rotationPublished operations.config.rotation option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.shadowPublished operations.config.shadow option. | ShadowOptions | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.shadow.blurPublished operations.config.shadow.blur option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.shadow.borderPositionPublished operations.config.shadow.borderPosition option.Deprecated | string | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.shadow.borderRadiusPublished operations.config.shadow.borderRadius option. | number | "circular" | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.shadow.colorPublished operations.config.shadow.color option. | string | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.shadow.gradientPublished operations.config.shadow.gradient option. | gradient | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.shadow.gradient.colorsPublished operations.config.shadow.gradient.colors option. | GradientStop[] | RequiredDefaultRequired | — | node22 · node24 · node26 |
operations.config.shadow.gradient.colors.colorPublished operations.config.shadow.gradient.colors.color option. | string | RequiredDefaultRequired | — | node22 · node24 · node26 |
operations.config.shadow.gradient.colors.stopPublished operations.config.shadow.gradient.colors.stop option. | number | RequiredDefaultRequired | — | node22 · node24 · node26 |
operations.config.shadow.gradient.endXPublished operations.config.shadow.gradient.endX option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.shadow.gradient.endYPublished operations.config.shadow.gradient.endY option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.shadow.gradient.pivotXPublished operations.config.shadow.gradient.pivotX option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.shadow.gradient.pivotYPublished operations.config.shadow.gradient.pivotY option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.shadow.gradient.repeatPublished operations.config.shadow.gradient.repeat option. | "repeat" | "reflect" | "no-repeat" | OptionalDefault— | "repeat" "reflect" "no-repeat" | node22 · node24 · node26 |
operations.config.shadow.gradient.rotatePublished operations.config.shadow.gradient.rotate option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.shadow.gradient.startXPublished operations.config.shadow.gradient.startX option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.shadow.gradient.startYPublished operations.config.shadow.gradient.startY option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.shadow.gradient.typePublished operations.config.shadow.gradient.type option. | "linear" | RequiredDefaultRequired | "linear" | node22 · node24 · node26 |
operations.config.shadow.gradient.endRadiusPublished operations.config.shadow.gradient.endRadius option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.shadow.gradient.startRadiusPublished operations.config.shadow.gradient.startRadius option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.shadow.gradient.centerXPublished operations.config.shadow.gradient.centerX option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.shadow.gradient.centerYPublished operations.config.shadow.gradient.centerY option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.shadow.gradient.startAnglePublished operations.config.shadow.gradient.startAngle option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.shadow.offsetXPublished operations.config.shadow.offsetX option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.shadow.offsetYPublished operations.config.shadow.offsetY option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.shadow.opacityPublished operations.config.shadow.opacity option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.shadow.roundedCornersPublished operations.config.shadow.roundedCorners option. | string | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.strokePublished operations.config.stroke option. | StrokeOptions | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.stroke.blurPublished operations.config.stroke.blur option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.stroke.borderPositionPublished operations.config.stroke.borderPosition option. | string | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.stroke.borderRadiusPublished operations.config.stroke.borderRadius option. | number | "circular" | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.stroke.colorPublished operations.config.stroke.color option. | string | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.stroke.gradientPublished operations.config.stroke.gradient option. | gradient | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.stroke.gradient.colorsPublished operations.config.stroke.gradient.colors option. | GradientStop[] | RequiredDefaultRequired | — | node22 · node24 · node26 |
operations.config.stroke.gradient.colors.colorPublished operations.config.stroke.gradient.colors.color option. | string | RequiredDefaultRequired | — | node22 · node24 · node26 |
operations.config.stroke.gradient.colors.stopPublished operations.config.stroke.gradient.colors.stop option. | number | RequiredDefaultRequired | — | node22 · node24 · node26 |
operations.config.stroke.gradient.endXPublished operations.config.stroke.gradient.endX option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.stroke.gradient.endYPublished operations.config.stroke.gradient.endY option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.stroke.gradient.pivotXPublished operations.config.stroke.gradient.pivotX option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.stroke.gradient.pivotYPublished operations.config.stroke.gradient.pivotY option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.stroke.gradient.repeatPublished operations.config.stroke.gradient.repeat option. | "repeat" | "reflect" | "no-repeat" | OptionalDefault— | "repeat" "reflect" "no-repeat" | node22 · node24 · node26 |
operations.config.stroke.gradient.rotatePublished operations.config.stroke.gradient.rotate option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.stroke.gradient.startXPublished operations.config.stroke.gradient.startX option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.stroke.gradient.startYPublished operations.config.stroke.gradient.startY option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.stroke.gradient.typePublished operations.config.stroke.gradient.type option. | "linear" | RequiredDefaultRequired | "linear" | node22 · node24 · node26 |
operations.config.stroke.gradient.endRadiusPublished operations.config.stroke.gradient.endRadius option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.stroke.gradient.startRadiusPublished operations.config.stroke.gradient.startRadius option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.stroke.gradient.centerXPublished operations.config.stroke.gradient.centerX option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.stroke.gradient.centerYPublished operations.config.stroke.gradient.centerY option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.stroke.gradient.startAnglePublished operations.config.stroke.gradient.startAngle option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.stroke.opacityPublished operations.config.stroke.opacity option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.stroke.positionPublished operations.config.stroke.position option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.stroke.roundedCornersPublished operations.config.stroke.roundedCorners option. | string | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.stroke.stylePublished operations.config.stroke.style option. | "solid" | "dashed" | "dotted" | "groove" | "ridge" | "double" | OptionalDefault— | 6 values"solid" "dashed" "dotted" "groove" "ridge" "double" | node22 · node24 · node26 |
operations.config.stroke.widthPublished operations.config.stroke.width option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.transparentBasePublished operations.config.transparentBase option. | boolean | OptionalDefault— | false true | node22 · node24 · node26 |
operations.config.videoBgPublished operations.config.videoBg option. | CanvasVideoBackground | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.videoBg.alignPlacement used by `contain` / `cover` when `inherit` is false. | AlignMode | OptionalDefault— | 9 values"center" "top" "bottom" "left" "right" "top-left" "top-right" "bottom-left" "bottom-right" | node22 · node24 · node26 |
operations.config.videoBg.autoplayPublished operations.config.videoBg.autoplay option.Deprecated | boolean | OptionalDefault— | false true | node22 · node24 · node26 |
operations.config.videoBg.filtersImage filters applied to this background only. | ImageFilter[] | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.videoBg.filters.anglePublished operations.config.videoBg.filters.angle option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.videoBg.filters.centerXPublished operations.config.videoBg.filters.centerX option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.videoBg.filters.centerYPublished operations.config.videoBg.filters.centerY option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.videoBg.filters.heightPublished operations.config.videoBg.filters.height option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.videoBg.filters.intensityPublished operations.config.videoBg.filters.intensity option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.videoBg.filters.levelsPublished operations.config.videoBg.filters.levels option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.videoBg.filters.radiusPublished operations.config.videoBg.filters.radius option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.videoBg.filters.sizePublished operations.config.videoBg.filters.size option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.videoBg.filters.typePublished operations.config.videoBg.filters.type option. | "saturation" | "gaussianBlur" | "motionBlur" | "radialBlur" | "sharpen" | "noise" | "grain" | "edgeDetection" | "emboss" | "invert" | "grayscale" | "sepia" | "pixelate" | "brightness" | "contrast" | "hueShift" | "posterize" | RequiredDefaultRequired | 17 values"saturation" "gaussianBlur" "motionBlur" "radialBlur" "sharpen" "noise" "grain" "edgeDetection" "emboss" "invert" "grayscale" "sepia" "pixelate" "brightness" "contrast" "hueShift" "posterize" | node22 · node24 · node26 |
operations.config.videoBg.filters.valuePublished operations.config.videoBg.filters.value option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.videoBg.filters.widthPublished operations.config.videoBg.filters.width option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.videoBg.filters.xOptional pixelate region. Omit for the whole filtered surface. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.videoBg.filters.yPublished operations.config.videoBg.filters.y option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.videoBg.fitResize policy when `inherit` is false. | FitMode | OptionalDefault— | "fill" "contain" "cover" | node22 · node24 · node26 |
operations.config.videoBg.formatPublished operations.config.videoBg.format option. | "jpg" | "png" | OptionalDefault— | "jpg" "png" | node22 · node24 · node26 |
operations.config.videoBg.frame1-based frame number. Mutually exclusive with `time`. Defaults to frame 1 when neither selector is provided. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.videoBg.inheritAdopt the source image dimensions as the canvas dimensions. | boolean | OptionalDefault— | false true | node22 · node24 · node26 |
operations.config.videoBg.loopPublished operations.config.videoBg.loop option.Deprecated | boolean | OptionalDefault— | false true | node22 · node24 · node26 |
operations.config.videoBg.opacityBackground-image opacity, multiplied by the canvas-level opacity. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.videoBg.qualityFFmpeg image quality value from 1 (best) through 31. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.videoBg.sourcePublished operations.config.videoBg.source option. | string | Buffer<ArrayBufferLike> | RequiredDefaultRequired | — | node22 · node24 · node26 |
operations.config.videoBg.timeTimestamp in seconds. Mutually exclusive with `frame`. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.widthPublished operations.config.width option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.xPublished operations.config.x option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.yPublished operations.config.y option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.zoomPublished operations.config.zoom option. | { scale?: number; centerX?: number; centerY?: number; } | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.zoom.centerXPublished operations.config.zoom.centerX option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.zoom.centerYPublished operations.config.zoom.centerY option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.config.zoom.scalePublished operations.config.zoom.scale option. | number | OptionalDefault— | — | node22 · node24 · node26 |
operations.typePublished operations.type option. | "canvas" | RequiredDefaultRequired | "canvas" | node22 · node24 · node26 |
| opts | ||||
opts.concurrencyPer-call concurrency, capped by runtime `limits.maxBatchConcurrency`. | number | OptionalDefault— | — | node22 · node24 · node26 |
opts.resolvePublished opts.resolve option. | AssetResolveFn | OptionalDefault— | — | node22 · node24 · node26 |
opts.resolveAssetRefsPublished opts.resolveAssetRefs option. | boolean | OptionalDefault— | false true | node22 · node24 · node26 |
opts.signalAbort stops scheduling new batch work and prevents later chain steps. | AbortSignal | OptionalDefault— | — | node22 · node24 · node26 |
operations.config
RequiredPublished operations.config option.
- Type
CanvasConfig- Default
- Required
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.bgLayers
OptionalPublished operations.config.bgLayers option.
- Type
BackgroundLayer[]- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.bgLayers.blendMode option.
- Type
GlobalCompositeOperation- Default
- —
- Allowed
26 values
"color""color-burn""color-dodge""copy""darken""destination-atop""destination-in""destination-out""destination-over""difference""exclusion""hard-light""hue""lighten""lighter""luminosity""multiply""overlay""saturation""screen""soft-light""source-atop""source-in""source-out""source-over""xor"- Runtime
- node22, node24, node26
Published operations.config.bgLayers.opacity option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.bgLayers.type
RequiredPublished operations.config.bgLayers.type option.
- Type
"color"- Default
- Required
- Allowed
"color"- Runtime
- node22, node24, node26
operations.config.bgLayers.value
RequiredPublished operations.config.bgLayers.value option.
- Type
string- Default
- Required
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.bgLayers.align
OptionalPublished operations.config.bgLayers.align option.
- Type
AlignMode- Default
- —
- Allowed
9 values
"center""top""bottom""left""right""top-left""top-right""bottom-left""bottom-right"- Runtime
- node22, node24, node26
operations.config.bgLayers.fit
OptionalPublished operations.config.bgLayers.fit option.
- Type
"fill" | "contain" | "cover"- Default
- —
- Allowed
"fill""contain""cover"- Runtime
- node22, node24, node26
Published operations.config.bgLayers.source option.
- Type
string- Default
- Required
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.bgLayers.repeat option.
- Type
BackgroundPatternRepeat- Default
- —
- Allowed
"repeat""no-repeat""repeat-x""repeat-y"- Runtime
- node22, node24, node26
Published operations.config.bgLayers.pattern option.
- Type
PatternOptions- Default
- Required
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.bgLayers.pattern.blendMode option.
- Type
GlobalCompositeOperation- Default
- —
- Allowed
26 values
"color""color-burn""color-dodge""copy""darken""destination-atop""destination-in""destination-out""destination-over""difference""exclusion""hard-light""hue""lighten""lighter""luminosity""multiply""overlay""saturation""screen""soft-light""source-atop""source-in""source-out""source-over""xor"- Runtime
- node22, node24, node26
Published operations.config.bgLayers.pattern.color option.
- Type
string- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.bgLayers.pattern.customPatternImage option.
- Type
string- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.bgLayers.pattern.gradient option.
- Type
GradientConfig- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.bgLayers.pattern.gradient.angle option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.bgLayers.pattern.gradient.centerX option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.bgLayers.pattern.gradient.centerY option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.bgLayers.pattern.gradient.colors option.
- Type
{ stop: number; color: string; }[]- Default
- Required
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.bgLayers.pattern.gradient.colors.color option.
- Type
string- Default
- Required
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.bgLayers.pattern.gradient.colors.stop option.
- Type
number- Default
- Required
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.bgLayers.pattern.gradient.endRadius option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.bgLayers.pattern.gradient.endX option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.bgLayers.pattern.gradient.endY option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.bgLayers.pattern.gradient.repeat option.
- Type
"repeat" | "reflect" | "no-repeat"- Default
- —
- Allowed
"repeat""reflect""no-repeat"- Runtime
- node22, node24, node26
Published operations.config.bgLayers.pattern.gradient.startAngle option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.bgLayers.pattern.gradient.startRadius option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.bgLayers.pattern.gradient.startX option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.bgLayers.pattern.gradient.startY option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.bgLayers.pattern.gradient.type option.
- Type
"linear" | "radial" | "conic"- Default
- Required
- Allowed
"linear""radial""conic"- Runtime
- node22, node24, node26
Published operations.config.bgLayers.pattern.offsetX option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.bgLayers.pattern.offsetY option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.bgLayers.pattern.opacity option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.bgLayers.pattern.repeat option.
- Type
"repeat" | "no-repeat" | "repeat-x" | "repeat-y"- Default
- —
- Allowed
"repeat""no-repeat""repeat-x""repeat-y"- Runtime
- node22, node24, node26
Published operations.config.bgLayers.pattern.rotation option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.bgLayers.pattern.scale option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.bgLayers.pattern.secondaryColor option.
- Type
string- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.bgLayers.pattern.size option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.bgLayers.pattern.spacing option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.bgLayers.pattern.type option.
- Type
"grid" | "dots" | "diagonal" | "stripes" | "waves" | "crosses" | "hexagons" | "checkerboard" | "diamonds" | "triangles" | "stars" | "polka" | "custom"- Default
- Required
- Allowed
13 values
"grid""dots""diagonal""stripes""waves""crosses""hexagons""checkerboard""diamonds""triangles""stars""polka""custom"- Runtime
- node22, node24, node26
Published operations.config.bgLayers.intensity option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.blendMode
OptionalPublished operations.config.blendMode option.
- Type
GlobalCompositeOperation- Default
- —
- Allowed
26 values
"color""color-burn""color-dodge""copy""darken""destination-atop""destination-in""destination-out""destination-over""difference""exclusion""hard-light""hue""lighten""lighter""luminosity""multiply""overlay""saturation""screen""soft-light""source-atop""source-in""source-out""source-over""xor"- Runtime
- node22, node24, node26
operations.config.blur
OptionalPublished operations.config.blur option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.borderPosition
OptionalPublished operations.config.borderPosition option.
- Type
string- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.borderRadius
OptionalPublished operations.config.borderRadius option.
- Type
number | "circular"- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.colorBg
OptionalPublished operations.config.colorBg option.
- Type
string- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.customBg
OptionalPublished operations.config.customBg option.
- Type
CanvasCustomBackground- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.customBg.align
OptionalPlacement used by `contain` / `cover` when `inherit` is false.
- Type
AlignMode- Default
- —
- Allowed
9 values
"center""top""bottom""left""right""top-left""top-right""bottom-left""bottom-right"- Runtime
- node22, node24, node26
Image filters applied to this background only.
- Type
ImageFilter[]- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.customBg.filters.angle option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.customBg.filters.centerX option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.customBg.filters.centerY option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.customBg.filters.height option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.customBg.filters.intensity option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.customBg.filters.levels option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.customBg.filters.radius option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.customBg.filters.size option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.customBg.filters.type option.
- Type
"saturation" | "gaussianBlur" | "motionBlur" | "radialBlur" | "sharpen" | "noise" | "grain" | "edgeDetection" | "emboss" | "invert" | "grayscale" | "sepia" | "pixelate" | "brightness" | "contrast" | "hueShift" | "posterize"- Default
- Required
- Allowed
17 values
"saturation""gaussianBlur""motionBlur""radialBlur""sharpen""noise""grain""edgeDetection""emboss""invert""grayscale""sepia""pixelate""brightness""contrast""hueShift""posterize"- Runtime
- node22, node24, node26
Published operations.config.customBg.filters.value option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.customBg.filters.width option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Optional pixelate region. Omit for the whole filtered surface.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.customBg.filters.y option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.customBg.fit
OptionalResize policy when `inherit` is false.
- Type
FitMode- Default
- —
- Allowed
"fill""contain""cover"- Runtime
- node22, node24, node26
Adopt the source image dimensions as the canvas dimensions.
- Type
boolean- Default
- —
- Allowed
falsetrue- Runtime
- node22, node24, node26
Background-image opacity, multiplied by the canvas-level opacity.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.customBg.source option.
- Type
string- Default
- Required
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.gradientBg
OptionalPublished operations.config.gradientBg option.
- Type
gradient- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.gradientBg.colors option.
- Type
GradientStop[]- Default
- Required
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.gradientBg.colors.color option.
- Type
string- Default
- Required
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.gradientBg.colors.stop option.
- Type
number- Default
- Required
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.gradientBg.endX option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.gradientBg.endY option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.gradientBg.pivotX option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.gradientBg.pivotY option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.gradientBg.repeat option.
- Type
"repeat" | "reflect" | "no-repeat"- Default
- —
- Allowed
"repeat""reflect""no-repeat"- Runtime
- node22, node24, node26
Published operations.config.gradientBg.rotate option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.gradientBg.startX option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.gradientBg.startY option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.gradientBg.type option.
- Type
"linear"- Default
- Required
- Allowed
"linear"- Runtime
- node22, node24, node26
Published operations.config.gradientBg.endRadius option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.gradientBg.startRadius option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.gradientBg.centerX option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.gradientBg.centerY option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.gradientBg.startAngle option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.height
OptionalPublished operations.config.height option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.noiseBg
OptionalPublished operations.config.noiseBg option.
- Type
{ intensity?: number; }- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.noiseBg.intensity option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.opacity
OptionalPublished operations.config.opacity option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.patternBg
OptionalPublished operations.config.patternBg option.
- Type
PatternOptions- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.patternBg.blendMode option.
- Type
GlobalCompositeOperation- Default
- —
- Allowed
26 values
"color""color-burn""color-dodge""copy""darken""destination-atop""destination-in""destination-out""destination-over""difference""exclusion""hard-light""hue""lighten""lighter""luminosity""multiply""overlay""saturation""screen""soft-light""source-atop""source-in""source-out""source-over""xor"- Runtime
- node22, node24, node26
Published operations.config.patternBg.color option.
- Type
string- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.patternBg.customPatternImage option.
- Type
string- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.patternBg.gradient option.
- Type
GradientConfig- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.patternBg.gradient.angle option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.patternBg.gradient.centerX option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.patternBg.gradient.centerY option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.patternBg.gradient.colors option.
- Type
{ stop: number; color: string; }[]- Default
- Required
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.patternBg.gradient.colors.color option.
- Type
string- Default
- Required
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.patternBg.gradient.colors.stop option.
- Type
number- Default
- Required
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.patternBg.gradient.endRadius option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.patternBg.gradient.endX option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.patternBg.gradient.endY option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.patternBg.gradient.repeat option.
- Type
"repeat" | "reflect" | "no-repeat"- Default
- —
- Allowed
"repeat""reflect""no-repeat"- Runtime
- node22, node24, node26
Published operations.config.patternBg.gradient.startAngle option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.patternBg.gradient.startRadius option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.patternBg.gradient.startX option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.patternBg.gradient.startY option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.patternBg.gradient.type option.
- Type
"linear" | "radial" | "conic"- Default
- Required
- Allowed
"linear""radial""conic"- Runtime
- node22, node24, node26
Published operations.config.patternBg.offsetX option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.patternBg.offsetY option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.patternBg.opacity option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.patternBg.repeat option.
- Type
"repeat" | "no-repeat" | "repeat-x" | "repeat-y"- Default
- —
- Allowed
"repeat""no-repeat""repeat-x""repeat-y"- Runtime
- node22, node24, node26
Published operations.config.patternBg.rotation option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.patternBg.scale option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.patternBg.secondaryColor option.
- Type
string- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.patternBg.size
OptionalPublished operations.config.patternBg.size option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.patternBg.spacing option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.patternBg.type
RequiredPublished operations.config.patternBg.type option.
- Type
"grid" | "dots" | "diagonal" | "stripes" | "waves" | "crosses" | "hexagons" | "checkerboard" | "diamonds" | "triangles" | "stars" | "polka" | "custom"- Default
- Required
- Allowed
13 values
"grid""dots""diagonal""stripes""waves""crosses""hexagons""checkerboard""diamonds""triangles""stars""polka""custom"- Runtime
- node22, node24, node26
operations.config.rotation
OptionalPublished operations.config.rotation option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.shadow
OptionalPublished operations.config.shadow option.
- Type
ShadowOptions- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.shadow.blur
OptionalPublished operations.config.shadow.blur option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.shadow.borderPosition option.
- Type
string- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.shadow.borderRadius option.
- Type
number | "circular"- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.shadow.color
OptionalPublished operations.config.shadow.color option.
- Type
string- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.shadow.gradient option.
- Type
gradient- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.shadow.gradient.colors option.
- Type
GradientStop[]- Default
- Required
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.shadow.gradient.colors.color option.
- Type
string- Default
- Required
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.shadow.gradient.colors.stop option.
- Type
number- Default
- Required
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.shadow.gradient.endX option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.shadow.gradient.endY option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.shadow.gradient.pivotX option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.shadow.gradient.pivotY option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.shadow.gradient.repeat option.
- Type
"repeat" | "reflect" | "no-repeat"- Default
- —
- Allowed
"repeat""reflect""no-repeat"- Runtime
- node22, node24, node26
Published operations.config.shadow.gradient.rotate option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.shadow.gradient.startX option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.shadow.gradient.startY option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.shadow.gradient.type option.
- Type
"linear"- Default
- Required
- Allowed
"linear"- Runtime
- node22, node24, node26
Published operations.config.shadow.gradient.endRadius option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.shadow.gradient.startRadius option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.shadow.gradient.centerX option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.shadow.gradient.centerY option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.shadow.gradient.startAngle option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.shadow.offsetX
OptionalPublished operations.config.shadow.offsetX option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.shadow.offsetY
OptionalPublished operations.config.shadow.offsetY option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.shadow.opacity
OptionalPublished operations.config.shadow.opacity option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.shadow.roundedCorners option.
- Type
string- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.stroke
OptionalPublished operations.config.stroke option.
- Type
StrokeOptions- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.stroke.blur
OptionalPublished operations.config.stroke.blur option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.stroke.borderPosition option.
- Type
string- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.stroke.borderRadius option.
- Type
number | "circular"- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.stroke.color
OptionalPublished operations.config.stroke.color option.
- Type
string- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.stroke.gradient option.
- Type
gradient- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.stroke.gradient.colors option.
- Type
GradientStop[]- Default
- Required
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.stroke.gradient.colors.color option.
- Type
string- Default
- Required
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.stroke.gradient.colors.stop option.
- Type
number- Default
- Required
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.stroke.gradient.endX option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.stroke.gradient.endY option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.stroke.gradient.pivotX option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.stroke.gradient.pivotY option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.stroke.gradient.repeat option.
- Type
"repeat" | "reflect" | "no-repeat"- Default
- —
- Allowed
"repeat""reflect""no-repeat"- Runtime
- node22, node24, node26
Published operations.config.stroke.gradient.rotate option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.stroke.gradient.startX option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.stroke.gradient.startY option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.stroke.gradient.type option.
- Type
"linear"- Default
- Required
- Allowed
"linear"- Runtime
- node22, node24, node26
Published operations.config.stroke.gradient.endRadius option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.stroke.gradient.startRadius option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.stroke.gradient.centerX option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.stroke.gradient.centerY option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.stroke.gradient.startAngle option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.stroke.opacity
OptionalPublished operations.config.stroke.opacity option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.stroke.position option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.stroke.roundedCorners option.
- Type
string- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.stroke.style
OptionalPublished operations.config.stroke.style option.
- Type
"solid" | "dashed" | "dotted" | "groove" | "ridge" | "double"- Default
- —
- Allowed
6 values
"solid""dashed""dotted""groove""ridge""double"- Runtime
- node22, node24, node26
operations.config.stroke.width
OptionalPublished operations.config.stroke.width option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.transparentBase option.
- Type
boolean- Default
- —
- Allowed
falsetrue- Runtime
- node22, node24, node26
operations.config.videoBg
OptionalPublished operations.config.videoBg option.
- Type
CanvasVideoBackground- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.videoBg.align
OptionalPlacement used by `contain` / `cover` when `inherit` is false.
- Type
AlignMode- Default
- —
- Allowed
9 values
"center""top""bottom""left""right""top-left""top-right""bottom-left""bottom-right"- Runtime
- node22, node24, node26
Published operations.config.videoBg.autoplay option.
- Type
boolean- Default
- —
- Allowed
falsetrue- Runtime
- node22, node24, node26
Image filters applied to this background only.
- Type
ImageFilter[]- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.videoBg.filters.angle option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.videoBg.filters.centerX option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.videoBg.filters.centerY option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.videoBg.filters.height option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.videoBg.filters.intensity option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.videoBg.filters.levels option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.videoBg.filters.radius option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.videoBg.filters.size option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.videoBg.filters.type option.
- Type
"saturation" | "gaussianBlur" | "motionBlur" | "radialBlur" | "sharpen" | "noise" | "grain" | "edgeDetection" | "emboss" | "invert" | "grayscale" | "sepia" | "pixelate" | "brightness" | "contrast" | "hueShift" | "posterize"- Default
- Required
- Allowed
17 values
"saturation""gaussianBlur""motionBlur""radialBlur""sharpen""noise""grain""edgeDetection""emboss""invert""grayscale""sepia""pixelate""brightness""contrast""hueShift""posterize"- Runtime
- node22, node24, node26
Published operations.config.videoBg.filters.value option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.videoBg.filters.width option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Optional pixelate region. Omit for the whole filtered surface.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Published operations.config.videoBg.filters.y option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.videoBg.fit
OptionalResize policy when `inherit` is false.
- Type
FitMode- Default
- —
- Allowed
"fill""contain""cover"- Runtime
- node22, node24, node26
operations.config.videoBg.format
OptionalPublished operations.config.videoBg.format option.
- Type
"jpg" | "png"- Default
- —
- Allowed
"jpg""png"- Runtime
- node22, node24, node26
operations.config.videoBg.frame
Optional1-based frame number. Mutually exclusive with `time`. Defaults to frame 1 when neither selector is provided.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Adopt the source image dimensions as the canvas dimensions.
- Type
boolean- Default
- —
- Allowed
falsetrue- Runtime
- node22, node24, node26
operations.config.videoBg.loop
OptionalPublished operations.config.videoBg.loop option.
- Type
boolean- Default
- —
- Allowed
falsetrue- Runtime
- node22, node24, node26
Background-image opacity, multiplied by the canvas-level opacity.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
FFmpeg image quality value from 1 (best) through 31.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.videoBg.source
RequiredPublished operations.config.videoBg.source option.
- Type
string | Buffer<ArrayBufferLike>- Default
- Required
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.videoBg.time
OptionalTimestamp in seconds. Mutually exclusive with `frame`.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.width
OptionalPublished operations.config.width option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.x
OptionalPublished operations.config.x option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.y
OptionalPublished operations.config.y option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.zoom
OptionalPublished operations.config.zoom option.
- Type
{ scale?: number; centerX?: number; centerY?: number; }- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.zoom.centerX
OptionalPublished operations.config.zoom.centerX option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.zoom.centerY
OptionalPublished operations.config.zoom.centerY option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.config.zoom.scale
OptionalPublished operations.config.zoom.scale option.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
operations.type
RequiredPublished operations.type option.
- Type
"canvas"- Default
- Required
- Allowed
"canvas"- Runtime
- node22, node24, node26
opts.concurrency
OptionalPer-call concurrency, capped by runtime `limits.maxBatchConcurrency`.
- Type
number- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
opts.resolve
OptionalPublished opts.resolve option.
- Type
AssetResolveFn- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
opts.resolveAssetRefs
OptionalPublished opts.resolveAssetRefs option.
- Type
boolean- Default
- —
- Allowed
falsetrue- Runtime
- node22, node24, node26
opts.signal
OptionalAbort stops scheduling new batch work and prevents later chain steps.
- Type
AbortSignal- Default
- —
- Allowed
- —
- Runtime
- node22, node24, node26
Types
BatchOperation[]
- variant 1
BatchOperation- variant 1
__type: { type: "canvas"; config: CanvasConfig; }- type
"canvas" - config
CanvasConfig: CanvasConfig- width?
number - height?
number - x?
number - y?
number - customBg?
CanvasCustomBackground: CanvasCustomBackground- source
string - inherit?
boolean - fit?
FitMode - align?
AlignMode - filters?
ImageFilter[] - opacity?
number
- source
- videoBg?
CanvasVideoBackground: CanvasVideoBackground- source
string | Buffer<ArrayBufferLike> - frame?
number - time?
number - format?
"jpg" | "png" - quality?
number - loop?
boolean - autoplay?
boolean - inherit?
boolean - fit?
FitMode - align?
AlignMode - filters?
ImageFilter[] - opacity?
number
- source
- colorBg?
string - gradientBg?
gradient- variant 1
{ type: "linear"; startX?: number; startY?: number; endX?: number; endY?: number; rotate?: number; pivotX?: number; pivotY?: number; repeat?: "repeat" | "reflect" | "no-repeat"; colors: GradientStop[]; } - variant 2
{ type: "radial"; startX?: number; startY?: number; startRadius?: number; endX?: number; endY?: number; endRadius?: number; rotate?: number; pivotX?: number; pivotY?: number; repeat?: "repeat" | "reflect" | "no-repeat"; colors: GradientStop[]; } - variant 3
{ type: "conic"; centerX?: number; centerY?: number; startAngle?: number; rotate?: number; pivotX?: number; pivotY?: number; colors: GradientStop[]; }
- variant 1
- patternBg?
PatternOptions: PatternOptions- type
"grid" | "dots" | "diagonal" | "stripes" | "waves" | "crosses" | "hexagons" | "checkerboard" | "diamonds" | "triangles" | "stars" | "polka" | "custom" - color?
string - secondaryColor?
string - opacity?
number - size?
number - spacing?
number - rotation?
number - customPatternImage?
string - repeat?
"repeat" | "no-repeat" | "repeat-x" | "repeat-y" - scale?
number - offsetX?
number - offsetY?
number - blendMode?
GlobalCompositeOperation - gradient?
GradientConfig
- type
- noiseBg?
__type: { intensity?: number; }- intensity?
number
- intensity?
- transparentBase?
boolean - bgLayers?
BackgroundLayer[]- variant 1
BackgroundLayer
- variant 1
- blendMode?
GlobalCompositeOperation- variant 1
"color" - variant 2
"color-burn" - variant 3
"color-dodge" - variant 4
"copy" - variant 5
"darken" - variant 6
"destination-atop" - variant 7
"destination-in" - variant 8
"destination-out" - variant 9
"destination-over" - variant 10
"difference" - variant 11
"exclusion" - variant 12
"hard-light" - variant 13
"hue" - variant 14
"lighten" - variant 15
"lighter" - variant 16
"luminosity" - variant 17
"multiply" - variant 18
"overlay" - variant 19
"saturation" - variant 20
"screen" - variant 21
"soft-light" - variant 22
"source-atop" - variant 23
"source-in" - variant 24
"source-out" - variant 25
"source-over" - variant 26
"xor"
- variant 1
- opacity?
number - blur?
number - rotation?
number - borderRadius?
number | "circular"- variant 1
number - variant 2
"circular"
- variant 1
- borderPosition?
string - zoom?
__type: { scale?: number; centerX?: number; centerY?: number; }- scale?
number - centerX?
number - centerY?
number
- scale?
- stroke?
StrokeOptions: StrokeOptions- color?
string - gradient?
gradient - width?
number - position?
number - blur?
number - opacity?
number - borderRadius?
number | "circular" - borderPosition?
string - roundedCorners?
string - style?
"solid" | "dashed" | "dotted" | "groove" | "ridge" | "double"
- color?
- shadow?
ShadowOptions: ShadowOptions- color?
string - gradient?
gradient - offsetX?
number - offsetY?
number - blur?
number - opacity?
number - borderRadius?
number | "circular" - roundedCorners?
string - borderPosition?
string
- color?
- width?
- type
- variant 2
__type: { type: "image"; config: ImageProperties | ImageProperties[]; }- type
"image" - config
ImageProperties | ImageProperties[]- variant 1
ImageProperties: ImageProperties- source
string | Buffer<ArrayBufferLike> - x
number - y
number - width?
number - height?
number - inherit?
boolean - fit?
FitMode - align?
AlignMode - rotation?
number - opacity?
number - blur?
number - blendMode?
GlobalCompositeOperation - borderRadius?
number | "circular" - borderPosition?
string - filters?
ImageFilter[] - filterIntensity?
number - filterOrder?
"pre" | "post" - mask?
{ source: string | Buffer<ArrayBufferLike>; mode?: "alpha" | "luminance" | "inverse"; } - clipPath?
{ x: number; y: number; }[] - distortion?
{ type: "perspective" | "warp" | "bulge" | "pinch"; points?: { x: number; y: number; }[]; intensity?: number; } - meshWarp?
{ gridX?: number; gridY?: number; controlPoints?: { x: number; y: number; }[][]; } - effects?
{ vignette?: { intensity: number; size: number; }; lensFlare?: { x: number; y: number; intensity: number; }; chromaticAberration?: { intensity: number; }; filmGrain?: { intensity: number; }; } - shape?
ShapeProperties - shadow?
ShadowOptions - stroke?
StrokeOptions - boxBackground?
BoxBackground
- source
- variant 2
ImageProperties[]- variant 1
ImageProperties
- variant 1
- variant 1
- type
- variant 3
__type: { type: "text"; config: TextProperties | TextProperties[]; }- type
"text" - config
TextProperties | TextProperties[]- variant 1
TextProperties: TextProperties- text
string - x
number - y
number - font?
{ size?: number; family?: string; name?: string; path?: string; } - fontSize?
number - fontFamily?
string - fontName?
string - fontPath?
string - bold?
boolean - italic?
boolean - decorations?
TextDecorations - effects?
TextEffects - underline?
TextLineDecoration - overline?
TextLineDecoration - strikethrough?
TextLineDecoration - highlight?
TextHighlightStyle - glow?
TextGlowStyle - shadow?
TextShadowStyle - layout?
TextLayout - placement?
TextPlacement - fill?
TextFill - lineHeight?
number - letterSpacing?
number - wordSpacing?
number - maxWidth?
number - maxHeight?
number - textAlign?
TextAlignMode - textBaseline?
TextBaselineMode - rotation?
number - color?
string - gradient?
gradient - opacity?
number - stroke?
TextStrokeStyle - textOnCurve?
TextCurveConfig - includeCharMetrics?
boolean - measurementCanvas?
{ width?: number; height?: number; }
- text
- variant 2
TextProperties[]- variant 1
TextProperties
- variant 1
- variant 1
- type
- variant 1
BatchChainAssetOpts: BatchChainAssetOpts
- resolveAssetRefs?
boolean - resolve?
AssetResolveFn - concurrency?
number - signal?
AbortSignal
Return value
Promise<Buffer<ArrayBufferLike>[]>
The return contract is generated from the packed declaration. Async wrappers and nullable/undefined variants remain visible in the type model.
Errors
NOT APPLICABLE — no verified errors are bound to this API.
Limits
NOT APPLICABLE — no API-specific verified limits are bound to this API.
Related APIs
No explicit related API metadata.