Add ImageOpsRoto: bezier, ellipse, rectangle and freehand shapes with add/subtract/intersect, feather/expand, keyframe animation and a live-preview editor. Raise preview canvas sizes and enable high-quality smoothing. Update node-count tests. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
58 lines
1.2 KiB
JavaScript
58 lines
1.2 KiB
JavaScript
import { initOpsConstants } from "../constants.js";
|
|
import { comp, composite, merge } from "./blend.js";
|
|
import { cameraShake, cornerPin, crop, cropGeneric, cropReformat, cropStitch, distort, flipRotate, pad, padOut, resize, spherize, transform } from "./geometry.js";
|
|
import { channelApply, imageOpsMask } from "./masks.js";
|
|
import { constant, draw, drawMask, grain, keyer, noise, ramp, stitch, text } from "./procedural.js";
|
|
import { roto } from "./roto.js";
|
|
import { channelMerge, channelSplit } from "./video.js";
|
|
import { colorAjust, colorCorrect, blur, channel, levels, hueSat, invert, clamp, sharpen, edgeDetect, glow, lumaKey, desaturate } from "./color.js";
|
|
initOpsConstants();
|
|
const ops = {
|
|
crop,
|
|
cropStitch,
|
|
padOut,
|
|
cornerPin,
|
|
cropGeneric,
|
|
transform,
|
|
cameraShake,
|
|
grain,
|
|
text,
|
|
keyer,
|
|
cropReformat,
|
|
merge,
|
|
resize,
|
|
pad,
|
|
flipRotate,
|
|
composite,
|
|
stitch,
|
|
channelSplit,
|
|
channelMerge,
|
|
channelApply,
|
|
comp,
|
|
distort,
|
|
spherize,
|
|
constant,
|
|
ramp,
|
|
noise,
|
|
draw,
|
|
drawMask,
|
|
imageOpsMask,
|
|
colorAjust,
|
|
colorCorrect,
|
|
blur,
|
|
channel,
|
|
levels,
|
|
hueSat,
|
|
invert,
|
|
clamp,
|
|
sharpen,
|
|
edgeDetect,
|
|
glow,
|
|
lumaKey,
|
|
desaturate,
|
|
roto
|
|
};
|
|
export {
|
|
ops
|
|
};
|