@motionscript/core 0.1.0-alpha.7 → 0.1.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/NOTICE +15 -14
- package/README.md +4 -4
- package/dist/assets/manager.d.ts.map +1 -1
- package/dist/assets/manager.js +7 -5
- package/dist/assets/manager.js.map +1 -1
- package/dist/attributes/audio/effects/chain.d.ts +73 -0
- package/dist/attributes/audio/effects/chain.d.ts.map +1 -0
- package/dist/attributes/audio/effects/chain.js +67 -0
- package/dist/attributes/audio/effects/chain.js.map +1 -0
- package/dist/attributes/audio/effects/implementations/echo.d.ts +14 -0
- package/dist/attributes/audio/effects/implementations/echo.d.ts.map +1 -0
- package/dist/attributes/audio/effects/implementations/echo.js +11 -0
- package/dist/attributes/audio/effects/implementations/echo.js.map +1 -0
- package/dist/attributes/audio/effects/implementations/gain.d.ts +10 -0
- package/dist/attributes/audio/effects/implementations/gain.d.ts.map +1 -0
- package/dist/attributes/audio/effects/implementations/gain.js +6 -0
- package/dist/attributes/audio/effects/implementations/gain.js.map +1 -0
- package/dist/attributes/audio/effects/implementations/highpass.d.ts +12 -0
- package/dist/attributes/audio/effects/implementations/highpass.d.ts.map +1 -0
- package/dist/attributes/audio/effects/implementations/highpass.js +10 -0
- package/dist/attributes/audio/effects/implementations/highpass.js.map +1 -0
- package/dist/attributes/audio/effects/implementations/lowpass.d.ts +12 -0
- package/dist/attributes/audio/effects/implementations/lowpass.d.ts.map +1 -0
- package/dist/attributes/audio/effects/implementations/lowpass.js +10 -0
- package/dist/attributes/audio/effects/implementations/lowpass.js.map +1 -0
- package/dist/attributes/audio/effects/implementations/tremolo.d.ts +12 -0
- package/dist/attributes/audio/effects/implementations/tremolo.d.ts.map +1 -0
- package/dist/attributes/audio/effects/implementations/tremolo.js +10 -0
- package/dist/attributes/audio/effects/implementations/tremolo.js.map +1 -0
- package/dist/attributes/audio/effects/index.d.ts +12 -0
- package/dist/attributes/audio/effects/index.d.ts.map +1 -0
- package/dist/attributes/audio/effects/index.js +4 -0
- package/dist/attributes/audio/effects/index.js.map +1 -0
- package/dist/attributes/audio/effects/registry.d.ts +36 -0
- package/dist/attributes/audio/effects/registry.d.ts.map +1 -0
- package/dist/attributes/audio/effects/registry.js +80 -0
- package/dist/attributes/audio/effects/registry.js.map +1 -0
- package/dist/attributes/audio/effects/union.d.ts +14 -0
- package/dist/attributes/audio/effects/union.d.ts.map +1 -0
- package/dist/attributes/audio/effects/union.js +24 -0
- package/dist/attributes/audio/effects/union.js.map +1 -0
- package/dist/attributes/audio/ramp.d.ts +103 -0
- package/dist/attributes/audio/ramp.d.ts.map +1 -0
- package/dist/attributes/audio/ramp.js +246 -0
- package/dist/attributes/audio/ramp.js.map +1 -0
- package/dist/attributes/audio/request.d.ts +24 -13
- package/dist/attributes/audio/request.d.ts.map +1 -1
- package/dist/attributes/audio/request.js +4 -3
- package/dist/attributes/audio/request.js.map +1 -1
- package/dist/attributes/audio/schedule.d.ts +21 -13
- package/dist/attributes/audio/schedule.d.ts.map +1 -1
- package/dist/attributes/audio/schedule.js +42 -28
- package/dist/attributes/audio/schedule.js.map +1 -1
- package/dist/attributes/audio/sound.d.ts +15 -12
- package/dist/attributes/audio/sound.d.ts.map +1 -1
- package/dist/attributes/audio/sound.js +8 -10
- package/dist/attributes/audio/sound.js.map +1 -1
- package/dist/attributes/audio/transition.d.ts +33 -0
- package/dist/attributes/audio/transition.d.ts.map +1 -0
- package/dist/attributes/audio/transition.js +48 -0
- package/dist/attributes/audio/transition.js.map +1 -0
- package/dist/attributes/index.d.ts +4 -3
- package/dist/attributes/index.d.ts.map +1 -1
- package/dist/attributes/index.js +4 -7
- package/dist/attributes/index.js.map +1 -1
- package/dist/attributes/layout/matrix2d.d.ts +2 -2
- package/dist/attributes/layout/matrix2d.js.map +1 -1
- package/dist/attributes/layout/space3d.js +1 -1
- package/dist/attributes/layout/space3d.js.map +1 -1
- package/dist/attributes/properties/typed.d.ts +7 -7
- package/dist/attributes/properties/typed.d.ts.map +1 -1
- package/dist/attributes/properties/typed.js +6 -6
- package/dist/attributes/properties/typed.js.map +1 -1
- package/dist/attributes/shape/corners/corner-radius.d.ts +1 -2
- package/dist/attributes/shape/corners/corner-radius.d.ts.map +1 -1
- package/dist/attributes/shape/corners/corner-radius.js +1 -2
- package/dist/attributes/shape/corners/corner-radius.js.map +1 -1
- package/dist/attributes/shape/effects/chain.d.ts +96 -409
- package/dist/attributes/shape/effects/chain.d.ts.map +1 -1
- package/dist/attributes/shape/effects/chain.js +93 -283
- package/dist/attributes/shape/effects/chain.js.map +1 -1
- package/dist/attributes/shape/effects/effect-data.d.ts +1 -1
- package/dist/attributes/shape/effects/effect-data.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/ascii.d.ts +45 -13
- package/dist/attributes/shape/effects/implementations/ascii.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/ascii.js +29 -23
- package/dist/attributes/shape/effects/implementations/ascii.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/bit-crush.d.ts +32 -7
- package/dist/attributes/shape/effects/implementations/bit-crush.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/bit-crush.js +17 -15
- package/dist/attributes/shape/effects/implementations/bit-crush.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/block-displace.d.ts +46 -10
- package/dist/attributes/shape/effects/implementations/block-displace.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/block-displace.js +21 -19
- package/dist/attributes/shape/effects/implementations/block-displace.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/bloom.d.ts +32 -7
- package/dist/attributes/shape/effects/implementations/bloom.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/bloom.js +17 -11
- package/dist/attributes/shape/effects/implementations/bloom.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/blur.d.ts +16 -3
- package/dist/attributes/shape/effects/implementations/blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/blur.js +13 -5
- package/dist/attributes/shape/effects/implementations/blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/bulge.d.ts +28 -9
- package/dist/attributes/shape/effects/implementations/bulge.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/bulge.js +15 -14
- package/dist/attributes/shape/effects/implementations/bulge.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.d.ts +21 -5
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.js +15 -10
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/color-adjustment.d.ts +96 -26
- package/dist/attributes/shape/effects/implementations/color-adjustment.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/color-adjustment.js +29 -26
- package/dist/attributes/shape/effects/implementations/color-adjustment.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/curves.d.ts +20 -6
- package/dist/attributes/shape/effects/implementations/curves.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/curves.js +26 -23
- package/dist/attributes/shape/effects/implementations/curves.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/directional-blur.d.ts +26 -5
- package/dist/attributes/shape/effects/implementations/directional-blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/directional-blur.js +15 -10
- package/dist/attributes/shape/effects/implementations/directional-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/dither.d.ts +58 -11
- package/dist/attributes/shape/effects/implementations/dither.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/dither.js +26 -20
- package/dist/attributes/shape/effects/implementations/dither.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/drop-shadow.d.ts +46 -14
- package/dist/attributes/shape/effects/implementations/drop-shadow.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/drop-shadow.js +24 -29
- package/dist/attributes/shape/effects/implementations/drop-shadow.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/duotone.d.ts +26 -7
- package/dist/attributes/shape/effects/implementations/duotone.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/duotone.js +17 -16
- package/dist/attributes/shape/effects/implementations/duotone.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/edges.d.ts +29 -7
- package/dist/attributes/shape/effects/implementations/edges.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/edges.js +17 -14
- package/dist/attributes/shape/effects/implementations/edges.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/glass.d.ts +76 -19
- package/dist/attributes/shape/effects/implementations/glass.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/glass.js +28 -22
- package/dist/attributes/shape/effects/implementations/glass.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/glow.d.ts +149 -42
- package/dist/attributes/shape/effects/implementations/glow.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/glow.js +74 -72
- package/dist/attributes/shape/effects/implementations/glow.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/grain.d.ts +43 -11
- package/dist/attributes/shape/effects/implementations/grain.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/grain.js +21 -18
- package/dist/attributes/shape/effects/implementations/grain.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/grayscale.d.ts +17 -3
- package/dist/attributes/shape/effects/implementations/grayscale.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/grayscale.js +13 -5
- package/dist/attributes/shape/effects/implementations/grayscale.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/halftone.d.ts +40 -9
- package/dist/attributes/shape/effects/implementations/halftone.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/halftone.js +20 -16
- package/dist/attributes/shape/effects/implementations/halftone.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/invert.d.ts +23 -5
- package/dist/attributes/shape/effects/implementations/invert.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/invert.js +15 -10
- package/dist/attributes/shape/effects/implementations/invert.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/kaleidoscope.d.ts +57 -18
- package/dist/attributes/shape/effects/implementations/kaleidoscope.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/kaleidoscope.js +25 -22
- package/dist/attributes/shape/effects/implementations/kaleidoscope.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/lut.d.ts +34 -7
- package/dist/attributes/shape/effects/implementations/lut.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/lut.js +20 -16
- package/dist/attributes/shape/effects/implementations/lut.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/magnify.d.ts +27 -9
- package/dist/attributes/shape/effects/implementations/magnify.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/magnify.js +17 -14
- package/dist/attributes/shape/effects/implementations/magnify.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/motion-blur.d.ts +54 -19
- package/dist/attributes/shape/effects/implementations/motion-blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/motion-blur.js +42 -20
- package/dist/attributes/shape/effects/implementations/motion-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/oil-paint.d.ts +17 -3
- package/dist/attributes/shape/effects/implementations/oil-paint.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/oil-paint.js +13 -9
- package/dist/attributes/shape/effects/implementations/oil-paint.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/outline.d.ts +28 -8
- package/dist/attributes/shape/effects/implementations/outline.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/outline.js +18 -17
- package/dist/attributes/shape/effects/implementations/outline.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/pixelate.d.ts +25 -6
- package/dist/attributes/shape/effects/implementations/pixelate.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/pixelate.js +16 -14
- package/dist/attributes/shape/effects/implementations/pixelate.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/posterize.d.ts +14 -3
- package/dist/attributes/shape/effects/implementations/posterize.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/posterize.js +13 -9
- package/dist/attributes/shape/effects/implementations/posterize.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/progressive-blur.d.ts +91 -26
- package/dist/attributes/shape/effects/implementations/progressive-blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/progressive-blur.js +27 -28
- package/dist/attributes/shape/effects/implementations/progressive-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/radial-blur.d.ts +49 -10
- package/dist/attributes/shape/effects/implementations/radial-blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/radial-blur.js +19 -20
- package/dist/attributes/shape/effects/implementations/radial-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/rgb-shift.d.ts +36 -6
- package/dist/attributes/shape/effects/implementations/rgb-shift.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/rgb-shift.js +16 -15
- package/dist/attributes/shape/effects/implementations/rgb-shift.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/scanlines.d.ts +52 -11
- package/dist/attributes/shape/effects/implementations/scanlines.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/scanlines.js +21 -18
- package/dist/attributes/shape/effects/implementations/scanlines.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/scatter.d.ts +23 -9
- package/dist/attributes/shape/effects/implementations/scatter.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/scatter.js +15 -12
- package/dist/attributes/shape/effects/implementations/scatter.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/shader.d.ts +90 -34
- package/dist/attributes/shape/effects/implementations/shader.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/shader.js +42 -26
- package/dist/attributes/shape/effects/implementations/shader.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/sharpen.d.ts +23 -5
- package/dist/attributes/shape/effects/implementations/sharpen.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/sharpen.js +16 -11
- package/dist/attributes/shape/effects/implementations/sharpen.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/streak.d.ts +40 -9
- package/dist/attributes/shape/effects/implementations/streak.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/streak.js +19 -16
- package/dist/attributes/shape/effects/implementations/streak.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/threshold.d.ts +24 -5
- package/dist/attributes/shape/effects/implementations/threshold.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/threshold.js +17 -11
- package/dist/attributes/shape/effects/implementations/threshold.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/twirl.d.ts +35 -8
- package/dist/attributes/shape/effects/implementations/twirl.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/twirl.js +17 -16
- package/dist/attributes/shape/effects/implementations/twirl.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/vignette.d.ts +37 -7
- package/dist/attributes/shape/effects/implementations/vignette.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/vignette.js +19 -18
- package/dist/attributes/shape/effects/implementations/vignette.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/vintage.d.ts +24 -5
- package/dist/attributes/shape/effects/implementations/vintage.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/vintage.js +15 -10
- package/dist/attributes/shape/effects/implementations/vintage.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/wave.d.ts +61 -14
- package/dist/attributes/shape/effects/implementations/wave.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/wave.js +26 -23
- package/dist/attributes/shape/effects/implementations/wave.js.map +1 -1
- package/dist/attributes/shape/effects/index.d.ts +4 -2
- package/dist/attributes/shape/effects/index.d.ts.map +1 -1
- package/dist/attributes/shape/effects/index.js +1 -1
- package/dist/attributes/shape/effects/index.js.map +1 -1
- package/dist/attributes/shape/effects/registry.d.ts +11 -0
- package/dist/attributes/shape/effects/registry.d.ts.map +1 -1
- package/dist/attributes/shape/effects/registry.js +113 -102
- package/dist/attributes/shape/effects/registry.js.map +1 -1
- package/dist/attributes/shape/effects/spec.d.ts +229 -0
- package/dist/attributes/shape/effects/spec.d.ts.map +1 -0
- package/dist/attributes/shape/effects/spec.js +178 -0
- package/dist/attributes/shape/effects/spec.js.map +1 -0
- package/dist/attributes/shape/fill/chain.d.ts +7 -9
- package/dist/attributes/shape/fill/chain.d.ts.map +1 -1
- package/dist/attributes/shape/fill/chain.js +9 -11
- package/dist/attributes/shape/fill/chain.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/shader.d.ts +27 -26
- package/dist/attributes/shape/fill/implementations/shader.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/shader.js +20 -14
- package/dist/attributes/shape/fill/implementations/shader.js.map +1 -1
- package/dist/attributes/shape/fill/index.d.ts +1 -1
- package/dist/attributes/shape/fill/index.d.ts.map +1 -1
- package/dist/attributes/shape/fill/index.js.map +1 -1
- package/dist/attributes/shape/fill/registry.d.ts +1 -2
- package/dist/attributes/shape/fill/registry.d.ts.map +1 -1
- package/dist/attributes/shape/fill/registry.js +1 -2
- package/dist/attributes/shape/fill/registry.js.map +1 -1
- package/dist/attributes/shape/filters/chain.d.ts +2 -6
- package/dist/attributes/shape/filters/chain.d.ts.map +1 -1
- package/dist/attributes/shape/filters/chain.js +1 -5
- package/dist/attributes/shape/filters/chain.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/color-matrix.d.ts +2 -2
- package/dist/attributes/shape/filters/implementations/color-matrix.d.ts.map +1 -1
- package/dist/attributes/shape/filters/implementations/color-matrix.js.map +1 -1
- package/dist/attributes/shape/filters/registry.d.ts +1 -1
- package/dist/attributes/shape/filters/registry.d.ts.map +1 -1
- package/dist/attributes/shape/filters/registry.js +3 -3
- package/dist/attributes/shape/filters/registry.js.map +1 -1
- package/dist/attributes/shape/filters/union.d.ts +2 -3
- package/dist/attributes/shape/filters/union.d.ts.map +1 -1
- package/dist/attributes/shape/filters/union.js.map +1 -1
- package/dist/attributes/shape/shaders/index.d.ts +2 -0
- package/dist/attributes/shape/shaders/index.d.ts.map +1 -1
- package/dist/attributes/shape/shaders/index.js +2 -0
- package/dist/attributes/shape/shaders/index.js.map +1 -1
- package/dist/attributes/shape/shaders/language.d.ts +26 -0
- package/dist/attributes/shape/shaders/language.d.ts.map +1 -0
- package/dist/attributes/shape/shaders/language.js +20 -0
- package/dist/attributes/shape/shaders/language.js.map +1 -0
- package/dist/attributes/shape/shaders/pack.d.ts +25 -11
- package/dist/attributes/shape/shaders/pack.d.ts.map +1 -1
- package/dist/attributes/shape/shaders/pack.js +9 -4
- package/dist/attributes/shape/shaders/pack.js.map +1 -1
- package/dist/attributes/shape/shaders/resolve.d.ts +4 -5
- package/dist/attributes/shape/shaders/resolve.d.ts.map +1 -1
- package/dist/attributes/shape/shaders/resolve.js +3 -6
- package/dist/attributes/shape/shaders/resolve.js.map +1 -1
- package/dist/attributes/shape/shaders/uniforms.d.ts +41 -0
- package/dist/attributes/shape/shaders/uniforms.d.ts.map +1 -0
- package/dist/attributes/shape/shaders/uniforms.js +0 -0
- package/dist/attributes/shape/shaders/uniforms.js.map +1 -0
- package/dist/browser/chunks/chunk-AOT33LMS.js +13 -0
- package/dist/browser/chunks/chunk-AOT33LMS.js.map +7 -0
- package/dist/browser/chunks/chunk-GKM6UZJR.js +6 -0
- package/dist/browser/chunks/chunk-GKM6UZJR.js.map +7 -0
- package/dist/browser/experimental.js +1 -1
- package/dist/browser/experimental.js.map +4 -4
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +2 -2
- package/dist/browser/manifest.json +1 -1
- package/dist/browser/sdk.js +1 -1
- package/dist/components/builtins/audio/audio.d.ts +14 -5
- package/dist/components/builtins/audio/audio.d.ts.map +1 -1
- package/dist/components/builtins/audio/audio.js +10 -13
- package/dist/components/builtins/audio/audio.js.map +1 -1
- package/dist/components/builtins/geometry/composite.d.ts +3 -3
- package/dist/components/builtins/media/media.d.ts +7 -7
- package/dist/components/builtins/media/media.d.ts.map +1 -1
- package/dist/components/builtins/media/media.js +4 -10
- package/dist/components/builtins/media/media.js.map +1 -1
- package/dist/components/builtins/text/text.d.ts +12 -12
- package/dist/components/builtins/text/text.d.ts.map +1 -1
- package/dist/components/builtins/text/text.js +3 -0
- package/dist/components/builtins/text/text.js.map +1 -1
- package/dist/components/factory/api.d.ts +38 -11
- package/dist/components/factory/api.d.ts.map +1 -1
- package/dist/components/factory/api.js.map +1 -1
- package/dist/components/factory/component3d.d.ts.map +1 -1
- package/dist/components/factory/component3d.js +11 -3
- package/dist/components/factory/component3d.js.map +1 -1
- package/dist/components/factory/factory.d.ts +3 -0
- package/dist/components/factory/factory.d.ts.map +1 -1
- package/dist/components/factory/factory.js +39 -5
- package/dist/components/factory/factory.js.map +1 -1
- package/dist/components/modules/text-style.d.ts +1 -1
- package/dist/components/trees/2d/node-render.d.ts +1 -1
- package/dist/components/trees/2d/node-render.js +1 -1
- package/dist/components/trees/2d/node-render.js.map +1 -1
- package/dist/components/trees/2d/node2d.d.ts +1 -1
- package/dist/components/trees/2d/node2d.js +1 -1
- package/dist/components/trees/2d/node2d.js.map +1 -1
- package/dist/components/trees/audio/node-audio.d.ts +16 -9
- package/dist/components/trees/audio/node-audio.d.ts.map +1 -1
- package/dist/components/trees/audio/node-audio.js +15 -11
- package/dist/components/trees/audio/node-audio.js.map +1 -1
- package/dist/document/command-traits.d.ts +12 -2
- package/dist/document/command-traits.d.ts.map +1 -1
- package/dist/document/command-traits.js +34 -6
- package/dist/document/command-traits.js.map +1 -1
- package/dist/document/index.d.ts +8 -0
- package/dist/document/index.d.ts.map +1 -1
- package/dist/document/index.js +4 -0
- package/dist/document/index.js.map +1 -1
- package/dist/document/migrate.d.ts +70 -0
- package/dist/document/migrate.d.ts.map +1 -0
- package/dist/document/migrate.js +202 -0
- package/dist/document/migrate.js.map +1 -0
- package/dist/document/missing-node.d.ts +27 -0
- package/dist/document/missing-node.d.ts.map +1 -0
- package/dist/document/missing-node.js +48 -0
- package/dist/document/missing-node.js.map +1 -0
- package/dist/document/node-descriptor.d.ts +4 -0
- package/dist/document/node-descriptor.d.ts.map +1 -1
- package/dist/document/node-descriptor.js.map +1 -1
- package/dist/document/placement.d.ts +2 -1
- package/dist/document/placement.d.ts.map +1 -1
- package/dist/document/placement.js.map +1 -1
- package/dist/document/project.d.ts +2 -0
- package/dist/document/project.d.ts.map +1 -1
- package/dist/document/project.js +1 -0
- package/dist/document/project.js.map +1 -1
- package/dist/document/prop-evolution.d.ts +51 -0
- package/dist/document/prop-evolution.d.ts.map +1 -0
- package/dist/document/prop-evolution.js +83 -0
- package/dist/document/prop-evolution.js.map +1 -0
- package/dist/document/registry.d.ts +16 -0
- package/dist/document/registry.d.ts.map +1 -1
- package/dist/document/registry.js +30 -4
- package/dist/document/registry.js.map +1 -1
- package/dist/document/settled-index.d.ts +2 -0
- package/dist/document/settled-index.d.ts.map +1 -1
- package/dist/document/settled-index.js +5 -5
- package/dist/document/settled-index.js.map +1 -1
- package/dist/document/timeline-patch.d.ts +4 -0
- package/dist/document/timeline-patch.d.ts.map +1 -1
- package/dist/document/timeline-patch.js +28 -3
- package/dist/document/timeline-patch.js.map +1 -1
- package/dist/document/timeline.d.ts +45 -1
- package/dist/document/timeline.d.ts.map +1 -1
- package/dist/document/timeline.js +172 -42
- package/dist/document/timeline.js.map +1 -1
- package/dist/document/types.d.ts +14 -28
- package/dist/document/types.d.ts.map +1 -1
- package/dist/document/types.js.map +1 -1
- package/dist/document/validate.d.ts +17 -5
- package/dist/document/validate.d.ts.map +1 -1
- package/dist/document/validate.js +158 -21
- package/dist/document/validate.js.map +1 -1
- package/dist/document/vocabulary.d.ts +28 -0
- package/dist/document/vocabulary.d.ts.map +1 -0
- package/dist/document/vocabulary.js +42 -0
- package/dist/document/vocabulary.js.map +1 -0
- package/dist/experimental.d.ts +68 -8
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +22 -8
- package/dist/experimental.js.map +1 -1
- package/dist/platform/exporter.d.ts +13 -0
- package/dist/platform/exporter.d.ts.map +1 -1
- package/dist/platform/exporter.js.map +1 -1
- package/dist/renamed-scene-names.d.ts +1 -1
- package/dist/renamed-scene-names.d.ts.map +1 -1
- package/dist/renamed-scene-names.js +1 -1
- package/dist/renamed-scene-names.js.map +1 -1
- package/dist/render/canvas-render-context2d.d.ts +9 -0
- package/dist/render/canvas-render-context2d.d.ts.map +1 -1
- package/dist/render/canvas-render-context2d.js +10 -0
- package/dist/render/canvas-render-context2d.js.map +1 -1
- package/dist/render/clip-contains.js +1 -1
- package/dist/render/clip-contains.js.map +1 -1
- package/dist/render/descriptors/text.d.ts +2 -2
- package/dist/render/descriptors/text.js +2 -2
- package/dist/render/descriptors/text.js.map +1 -1
- package/dist/render/index.d.ts +2 -0
- package/dist/render/index.d.ts.map +1 -1
- package/dist/render/index.js +1 -0
- package/dist/render/index.js.map +1 -1
- package/dist/render/render-context2d.d.ts +1 -1
- package/dist/render/render-context2d.js.map +1 -1
- package/dist/render/render-issue.d.ts +39 -0
- package/dist/render/render-issue.d.ts.map +1 -0
- package/dist/render/render-issue.js +29 -0
- package/dist/render/render-issue.js.map +1 -0
- package/dist/render/surface.d.ts +2 -2
- package/dist/render/surface.js.map +1 -1
- package/dist/render3d/graphics3d.d.ts.map +1 -1
- package/dist/render3d/graphics3d.js +54 -5
- package/dist/render3d/graphics3d.js.map +1 -1
- package/dist/runtime/asset-refine.js +2 -1
- package/dist/runtime/asset-refine.js.map +1 -1
- package/dist/runtime/asset-timeline.d.ts +10 -0
- package/dist/runtime/asset-timeline.d.ts.map +1 -1
- package/dist/runtime/asset-timeline.js.map +1 -1
- package/dist/runtime/asset-update.d.ts.map +1 -1
- package/dist/runtime/asset-update.js +7 -0
- package/dist/runtime/asset-update.js.map +1 -1
- package/dist/runtime/clip-instance.d.ts +3 -1
- package/dist/runtime/clip-instance.d.ts.map +1 -1
- package/dist/runtime/clip-instance.js +4 -0
- package/dist/runtime/clip-instance.js.map +1 -1
- package/dist/runtime/clip-store.d.ts.map +1 -1
- package/dist/runtime/clip-store.js +17 -2
- package/dist/runtime/clip-store.js.map +1 -1
- package/dist/runtime/engine.d.ts +5 -3
- package/dist/runtime/engine.d.ts.map +1 -1
- package/dist/runtime/engine.js +2 -1
- package/dist/runtime/engine.js.map +1 -1
- package/dist/runtime/playback-controller.d.ts.map +1 -1
- package/dist/runtime/playback-controller.js +14 -4
- package/dist/runtime/playback-controller.js.map +1 -1
- package/dist/runtime/session.d.ts +7 -3
- package/dist/runtime/session.d.ts.map +1 -1
- package/dist/runtime/session.js +11 -4
- package/dist/runtime/session.js.map +1 -1
- package/dist/runtime/text-geometry.d.ts +1 -1
- package/dist/runtime/text-geometry.js.map +1 -1
- package/dist/sdk/index.d.ts +8 -6
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +10 -3
- package/dist/sdk/index.js.map +1 -1
- package/dist/tween/command-decorator.d.ts +7 -0
- package/dist/tween/command-decorator.d.ts.map +1 -1
- package/dist/tween/command-decorator.js +1 -0
- package/dist/tween/command-decorator.js.map +1 -1
- package/dist/tween/ease/describe.d.ts +2 -0
- package/dist/tween/ease/describe.d.ts.map +1 -1
- package/dist/tween/ease/describe.js +4 -0
- package/dist/tween/ease/describe.js.map +1 -1
- package/dist/tween/ease/spec.d.ts +31 -0
- package/dist/tween/ease/spec.d.ts.map +1 -0
- package/dist/tween/ease/spec.js +51 -0
- package/dist/tween/ease/spec.js.map +1 -0
- package/dist/tween/index.d.ts +1 -0
- package/dist/tween/index.d.ts.map +1 -1
- package/dist/tween/index.js +1 -0
- package/dist/tween/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/browser/chunks/chunk-D4FSTPML.js +0 -14
- package/dist/browser/chunks/chunk-D4FSTPML.js.map +0 -7
- package/dist/browser/chunks/chunk-RTNATFWX.js +0 -5
- package/dist/browser/chunks/chunk-RTNATFWX.js.map +0 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"corner-radius.js","sourceRoot":"","sources":["../../../../src/attributes/shape/corners/corner-radius.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAyB,cAAc,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAajG
|
|
1
|
+
{"version":3,"file":"corner-radius.js","sourceRoot":"","sources":["../../../../src/attributes/shape/corners/corner-radius.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAyB,cAAc,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAajG;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAoB;IAC5C,6EAA6E;IAC7E,qEAAqE;IACrE,OAAO,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC,cAAc,CAAC,KAA6B,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAe,EAAE,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAC;IACnI,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,UAAU,CAAC;IAC3D,cAAc,EAAE,CAAC,KAAK,EAAmB,EAAE,CAAC,OAAO,KAAK,KAAK,QAAQ;IACrE,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,gBAAgB,CAAC,KAAK,CAAC;IAC7C,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,KAAK,CAAC;CACtH,CAAC","sourcesContent":["import { lerpNumber } from \"@/tween/lerp\";\r\nimport type { CornerRadiusOps } from \"@/attributes/shared/operators\";\r\nimport { Corners, CornersInput, resolveCorners, lerpCorners, isUniformCorners } from \"./corners\";\r\n\r\n/** Per-corner border radius values, all fully resolved to numbers. */\r\nexport type CornerRadiusResolved = Corners<number>;\r\n\r\n/**\r\n * Accepted corner radius input for a Rect: a single number applies uniformly to\r\n * all corners; an object overrides corners individually (`{ topLeft, … }`) or by\r\n * axis (`{ top, bottom }` / `{ left, right }`). An already-resolved value passes\r\n * through. Unspecified corners fall back to a previous value or 0 when resolved.\r\n */\r\nexport type RectCornerRadius = CornersInput<number> | CornerRadiusResolved;\r\n\r\n/**\r\n * The corner-radius attribute's op set: `resolve`/`lerp` for `Shapes.corners`,\r\n * plus the uniform/zero checks a renderer needs to pick a cheap draw path.\r\n */\r\nexport const cornerRadiusOps: CornerRadiusOps = {\r\n // A resolved value is structurally a full per-corner `CornersInput<number>`,\r\n // so pin T=number and let resolveCorners re-resolve it idempotently.\r\n resolve: (value, previous) => resolveCorners(value as CornersInput<number>, 0, previous, (v): v is number => typeof v === \"number\"),\r\n lerp: (from, to, t) => lerpCorners(from, to, t, lerpNumber),\r\n isUniformInput: (value): value is number => typeof value === \"number\",\r\n isUniform: (value) => isUniformCorners(value),\r\n isZero: (value) => value.topLeft === 0 && value.topRight === 0 && value.bottomLeft === 0 && value.bottomRight === 0,\r\n};\r\n"]}
|
|
@@ -1,26 +1,51 @@
|
|
|
1
1
|
import { NodeEffect } from "./union.js";
|
|
2
|
-
import type { Vector2 } from "../../../attributes/layout/vector2.js";
|
|
3
2
|
import type { BlendMode } from "../fill/blend.js";
|
|
4
|
-
import type {
|
|
5
|
-
import
|
|
3
|
+
import type { EffectOptions } from "./effect-data.js";
|
|
4
|
+
import { type EffectOptionsOf } from "./spec.js";
|
|
5
|
+
import { blurSpec } from "./implementations/blur.js";
|
|
6
|
+
import { directionalBlurSpec } from "./implementations/directional-blur.js";
|
|
7
|
+
import { grayscaleSpec } from "./implementations/grayscale.js";
|
|
8
|
+
import { pixelateSpec } from "./implementations/pixelate.js";
|
|
9
|
+
import { bulgeSpec } from "./implementations/bulge.js";
|
|
10
|
+
import { magnifySpec } from "./implementations/magnify.js";
|
|
11
|
+
import { bloomSpec } from "./implementations/bloom.js";
|
|
12
|
+
import { vintageSpec } from "./implementations/vintage.js";
|
|
13
|
+
import { chromaticAberrationSpec } from "./implementations/chromatic-aberration.js";
|
|
14
|
+
import { invertSpec } from "./implementations/invert.js";
|
|
15
|
+
import { scatterSpec } from "./implementations/scatter.js";
|
|
16
|
+
import { posterizeSpec } from "./implementations/posterize.js";
|
|
17
|
+
import { motionBlurSpec } from "./implementations/motion-blur.js";
|
|
18
|
+
import { outlineSpec } from "./implementations/outline.js";
|
|
19
|
+
import { dropShadowSpec } from "./implementations/drop-shadow.js";
|
|
20
|
+
import { vignetteSpec } from "./implementations/vignette.js";
|
|
21
|
+
import { lutSpec } from "./implementations/lut.js";
|
|
22
|
+
import { grainSpec } from "./implementations/grain.js";
|
|
23
|
+
import { sharpenSpec } from "./implementations/sharpen.js";
|
|
24
|
+
import { edgesSpec } from "./implementations/edges.js";
|
|
25
|
+
import { thresholdSpec } from "./implementations/threshold.js";
|
|
26
|
+
import { radialBlurSpec } from "./implementations/radial-blur.js";
|
|
27
|
+
import { halftoneSpec } from "./implementations/halftone.js";
|
|
28
|
+
import { ditherSpec } from "./implementations/dither.js";
|
|
29
|
+
import { duotoneSpec } from "./implementations/duotone.js";
|
|
30
|
+
import { curvesSpec } from "./implementations/curves.js";
|
|
31
|
+
import { rgbShiftSpec } from "./implementations/rgb-shift.js";
|
|
32
|
+
import { scanlinesSpec } from "./implementations/scanlines.js";
|
|
33
|
+
import { blockDisplaceSpec } from "./implementations/block-displace.js";
|
|
34
|
+
import { bitCrushSpec } from "./implementations/bit-crush.js";
|
|
35
|
+
import { asciiSpec } from "./implementations/ascii.js";
|
|
36
|
+
import { oilPaintSpec } from "./implementations/oil-paint.js";
|
|
37
|
+
import { streakSpec } from "./implementations/streak.js";
|
|
38
|
+
import { glowSpec } from "./implementations/glow.js";
|
|
39
|
+
import { waveSpec } from "./implementations/wave.js";
|
|
40
|
+
import { twirlSpec } from "./implementations/twirl.js";
|
|
41
|
+
import { progressiveBlurSpec } from "./implementations/progressive-blur.js";
|
|
42
|
+
import { kaleidoscopeSpec } from "./implementations/kaleidoscope.js";
|
|
43
|
+
import { glassSpec } from "./implementations/glass.js";
|
|
6
44
|
import type { AttributeOps } from "../../../attributes/shared/operators.js";
|
|
45
|
+
import { type ShaderUniform, type ShaderUniformRecord } from "../shaders/uniforms.js";
|
|
7
46
|
import { type ShaderPropertyValues } from "../shaders/resolve.js";
|
|
8
47
|
import type { EffectShader } from "../shaders/pack.js";
|
|
9
|
-
import type { InvertChannel } from "./implementations/invert.js";
|
|
10
|
-
import type { MotionBlurAlignment } from "./implementations/motion-blur.js";
|
|
11
|
-
import type { SkSLUniform, SkSLUniformRecord } from "./implementations/shader.js";
|
|
12
|
-
import type { OutlinePosition } from "./implementations/outline.js";
|
|
13
|
-
import type { EdgeKernel } from "./implementations/edges.js";
|
|
14
|
-
import type { GlowChannel, GlowLoopStyle, GlowOriginal, GlowTint } from "./implementations/glow.js";
|
|
15
|
-
import type { RadialBlurStyle } from "./implementations/radial-blur.js";
|
|
16
|
-
import type { HalftoneShape, HalftoneSeparation } from "./implementations/halftone.js";
|
|
17
|
-
import type { DitherMatrix, DitherNoise } from "./implementations/dither.js";
|
|
18
48
|
import type { ColorAdjustmentEffect } from "./implementations/color-adjustment.js";
|
|
19
|
-
import type { CurvesChannel } from "../filters/implementations/curves.js";
|
|
20
|
-
import type { BitCrushPalette } from "./implementations/bit-crush.js";
|
|
21
|
-
import type { AsciiCharset } from "./implementations/ascii.js";
|
|
22
|
-
import type { WaveShape } from "./implementations/wave.js";
|
|
23
|
-
import type { ProgressiveBlurShape } from "./implementations/progressive-blur.js";
|
|
24
49
|
/**
|
|
25
50
|
* Every effect builder takes **exactly one argument**: an options object
|
|
26
51
|
* carrying all of that effect's data. Builders with one dominant animated
|
|
@@ -34,115 +59,48 @@ import type { ProgressiveBlurShape } from "./implementations/progressive-blur.js
|
|
|
34
59
|
* `center` always a 0–1 normalised point, `axis` always an {@link EffectAxis}.
|
|
35
60
|
*/
|
|
36
61
|
/** Gaussian blur. Scalar shorthand sets `radius`. */
|
|
37
|
-
export
|
|
38
|
-
/** Blur spread in pixels. */
|
|
39
|
-
radius: number;
|
|
40
|
-
}
|
|
62
|
+
export type BlurOptions = EffectOptionsOf<typeof blurSpec.params>;
|
|
41
63
|
/** Directional (linear) blur. Scalar shorthand sets `radius`. */
|
|
42
|
-
export
|
|
43
|
-
/** Smear length in pixels along `angle`. */
|
|
44
|
-
radius: number;
|
|
45
|
-
/** Smear axis in degrees — 0 = horizontal, 90 = vertical (default 0). */
|
|
46
|
-
angle?: number;
|
|
47
|
-
}
|
|
64
|
+
export type DirectionalBlurOptions = EffectOptionsOf<typeof directionalBlurSpec.params>;
|
|
48
65
|
/** Desaturation. Scalar shorthand sets `amount`. */
|
|
49
|
-
export
|
|
50
|
-
/** 0–1: 0 = original, 1 = fully desaturated. */
|
|
51
|
-
amount: number;
|
|
52
|
-
}
|
|
66
|
+
export type GrayscaleOptions = EffectOptionsOf<typeof grayscaleSpec.params>;
|
|
53
67
|
/**
|
|
54
68
|
* After Effects-style Mosaic. Scalar shorthand sets `blocks` on both axes.
|
|
55
69
|
*
|
|
56
70
|
* `blocks` is the *number of blocks* across the node, so a count equal to the
|
|
57
71
|
* node's pixel size on that axis is pristine and lower counts are coarser.
|
|
58
72
|
*/
|
|
59
|
-
export
|
|
60
|
-
/** Block count — a number for both axes, or per-axis via `{ x, y }`. */
|
|
61
|
-
blocks: number | Vector2;
|
|
62
|
-
/** AE "Sharp Colors": solid blocks (true, the default) vs. smoothly blended. */
|
|
63
|
-
sharpColors?: boolean;
|
|
64
|
-
}
|
|
73
|
+
export type PixelateOptions = EffectOptionsOf<typeof pixelateSpec.params>;
|
|
65
74
|
/** Bulge / pinch lens over the node's content, or the backdrop. Scalar shorthand sets `strength`. */
|
|
66
|
-
export
|
|
67
|
-
/** Positive bulges (barrel), negative pinches (pincushion). Range ≈ −1…1. */
|
|
68
|
-
strength: number;
|
|
69
|
-
/** Lens centre in 0–1 layer coords (default middle). */
|
|
70
|
-
center?: Vector2;
|
|
71
|
-
}
|
|
75
|
+
export type BulgeOptions = EffectOptionsOf<typeof bulgeSpec.params>;
|
|
72
76
|
/** Magnifier lens over the backdrop. Scalar shorthand sets `scale`. */
|
|
73
|
-
export
|
|
74
|
-
/** Magnification factor — 1 = none, 2 = 2×, 0.5 = zoomed out (default 2). */
|
|
75
|
-
scale?: number;
|
|
76
|
-
/** Magnify centre in 0–1 layer coords (default middle). */
|
|
77
|
-
center?: Vector2;
|
|
78
|
-
}
|
|
77
|
+
export type MagnifyOptions = EffectOptionsOf<typeof magnifySpec.params>;
|
|
79
78
|
/** Bloom (glow). Scalar shorthand sets `intensity`. */
|
|
80
|
-
export
|
|
81
|
-
/** Additive multiplier for the bloom pass (default 1). */
|
|
82
|
-
intensity?: number;
|
|
83
|
-
/** 0–1 luminance cutoff — only pixels brighter than this bloom (default 0.7). */
|
|
84
|
-
threshold?: number;
|
|
85
|
-
/** Spread in pixels (default 12). */
|
|
86
|
-
radius?: number;
|
|
87
|
-
}
|
|
79
|
+
export type BloomOptions = EffectOptionsOf<typeof bloomSpec.params>;
|
|
88
80
|
/** Vintage / film-look colour grading. Scalar shorthand sets `amount`. */
|
|
89
|
-
export
|
|
90
|
-
/** 0–1: 0 = original, 1 = full sepia + desaturate (default 1). */
|
|
91
|
-
amount?: number;
|
|
92
|
-
/** −1…1: negative = cool/cyan tint, positive = warm/amber (default 0.2). */
|
|
93
|
-
warmth?: number;
|
|
94
|
-
}
|
|
81
|
+
export type VintageOptions = EffectOptionsOf<typeof vintageSpec.params>;
|
|
95
82
|
/** Lens-dispersion colour fringing. Scalar shorthand sets `amount`. */
|
|
96
|
-
export
|
|
97
|
-
/** Pixel offset distance for the R/B fringe (default 4). */
|
|
98
|
-
amount?: number;
|
|
99
|
-
/** Fringe axis in degrees — 0 = horizontal, R right / B left (default 0). */
|
|
100
|
-
angle?: number;
|
|
101
|
-
}
|
|
83
|
+
export type ChromaticAberrationOptions = EffectOptionsOf<typeof chromaticAberrationSpec.params>;
|
|
102
84
|
/** Colour invert. Scalar shorthand sets `strength`. */
|
|
103
|
-
export
|
|
104
|
-
/** 0–1: blend from original (0) to fully inverted (1) (default 1). */
|
|
105
|
-
strength?: number;
|
|
106
|
-
/** Which channel / colour component to invert (default `'rgba'`). */
|
|
107
|
-
channel?: InvertChannel;
|
|
108
|
-
}
|
|
85
|
+
export type InvertOptions = EffectOptionsOf<typeof invertSpec.params>;
|
|
109
86
|
/** Per-pixel random jitter. Scalar shorthand sets `strength`. */
|
|
110
|
-
export
|
|
111
|
-
/** Maximum random pixel displacement (default 10). */
|
|
112
|
-
strength?: number;
|
|
113
|
-
/** Axis pixels are scattered along (default `'both'`). */
|
|
114
|
-
axis?: EffectAxis;
|
|
115
|
-
}
|
|
87
|
+
export type ScatterOptions = EffectOptionsOf<typeof scatterSpec.params>;
|
|
116
88
|
/** Colour banding. Scalar shorthand sets `levels`. */
|
|
117
|
-
export
|
|
118
|
-
/** Number of brightness levels per channel (≥ 2, default 4). */
|
|
119
|
-
levels?: number;
|
|
120
|
-
}
|
|
89
|
+
export type PosterizeOptions = EffectOptionsOf<typeof posterizeSpec.params>;
|
|
121
90
|
/** Velocity-driven motion blur. Scalar shorthand sets `length`. */
|
|
122
|
-
export
|
|
123
|
-
/** Shutter "openness" as a percent; 100 ≈ 360° (default 50). */
|
|
124
|
-
length?: number;
|
|
125
|
-
/** Shutter phase: `'behind'` | `'centered'` | `'ahead'` | −1…1 (default `'centered'`). */
|
|
126
|
-
alignment?: MotionBlurAlignment;
|
|
127
|
-
/** Renderer quality hint; higher switches to multi-tap accumulation (default 16). */
|
|
128
|
-
samples?: number;
|
|
129
|
-
/** Blur-length multiplier (default 1). */
|
|
130
|
-
strength?: number;
|
|
131
|
-
/** Per-axis velocity scale (default `'both'`). */
|
|
132
|
-
axis?: EffectAxis;
|
|
133
|
-
}
|
|
91
|
+
export type MotionBlurOptions = EffectOptionsOf<typeof motionBlurSpec.params>;
|
|
134
92
|
/**
|
|
135
93
|
* A custom shader. `mode` selects the path:
|
|
136
94
|
*
|
|
137
|
-
* - `'foreground'` (the default) —
|
|
138
|
-
*
|
|
139
|
-
* - `'backdrop'` —
|
|
140
|
-
*
|
|
95
|
+
* - `'foreground'` (the default) — `sample_src` reads the node's layer; the output
|
|
96
|
+
* replaces it, or composites onto it with `blendMode`.
|
|
97
|
+
* - `'backdrop'` — `sample_src` reads a snapshot of what is painted beneath the
|
|
98
|
+
* node. `blendMode` is unused.
|
|
141
99
|
*/
|
|
142
100
|
export interface ShaderEffectOptions extends EffectOptions {
|
|
143
101
|
/**
|
|
144
|
-
*
|
|
145
|
-
* values it publishes.
|
|
102
|
+
* The WGSL program, or a registered
|
|
103
|
+
* **shader pack** — a program plus the editable values it publishes.
|
|
146
104
|
*
|
|
147
105
|
* A pack resolves to plain uniforms here, so nothing below this builder
|
|
148
106
|
* knows one exists; what survives into the document is the resolved record
|
|
@@ -163,46 +121,21 @@ export interface ShaderEffectOptions extends EffectOptions {
|
|
|
163
121
|
* The positional `[{ name, value }]` array still works; both are bound by
|
|
164
122
|
* name now, so the array's order no longer means anything.
|
|
165
123
|
*/
|
|
166
|
-
uniforms?:
|
|
167
|
-
/** How a foreground shader composites onto the layer
|
|
124
|
+
uniforms?: ShaderUniformRecord | ShaderUniform[];
|
|
125
|
+
/** How a foreground shader composites onto the layer; its output replaces the layer when absent. */
|
|
168
126
|
blendMode?: BlendMode;
|
|
127
|
+
/** How far past the node's box (logical px) a WGSL effect may draw. Default 0. */
|
|
128
|
+
reach?: number;
|
|
169
129
|
}
|
|
170
130
|
/** Coloured band around the node's silhouette. Scalar shorthand sets `width`. */
|
|
171
|
-
export
|
|
172
|
-
/** Band thickness in pixels (default 4). */
|
|
173
|
-
width?: number;
|
|
174
|
-
/** Band colour (default `'black'`). */
|
|
175
|
-
color?: Color;
|
|
176
|
-
/** Which side of the edge the band grows from (default `'outside'`). */
|
|
177
|
-
position?: OutlinePosition;
|
|
178
|
-
}
|
|
131
|
+
export type OutlineOptions = EffectOptionsOf<typeof outlineSpec.params>;
|
|
179
132
|
/**
|
|
180
133
|
* A shadow cast from the node's silhouette. Scalar shorthand sets `blur`, since
|
|
181
134
|
* softness is the knob a shadow is usually reached for by.
|
|
182
135
|
*/
|
|
183
|
-
export
|
|
184
|
-
/** Horizontal displacement in pixels (default 0). */
|
|
185
|
-
offsetX?: number;
|
|
186
|
-
/** Vertical displacement in pixels, positive being upward (default -8). */
|
|
187
|
-
offsetY?: number;
|
|
188
|
-
/** Softness in pixels, on a `blur` effect's scale (default 16). */
|
|
189
|
-
blur?: number;
|
|
190
|
-
/** Grows the silhouette before blurring, in pixels (default 0). */
|
|
191
|
-
spread?: number;
|
|
192
|
-
/** Shadow colour (default `'black'`). */
|
|
193
|
-
color?: Color;
|
|
194
|
-
}
|
|
136
|
+
export type DropShadowOptions = EffectOptionsOf<typeof dropShadowSpec.params>;
|
|
195
137
|
/** Darkened edges / lens falloff. Scalar shorthand sets `amount`. */
|
|
196
|
-
export
|
|
197
|
-
/** 0–1 tint strength at the edge (default 0.5). */
|
|
198
|
-
amount?: number;
|
|
199
|
-
/** 0–1 normalised radius where the falloff starts (default 0.75). */
|
|
200
|
-
radius?: number;
|
|
201
|
-
/** 0–1 ramp width; 0 is a hard ring (default 0.5). */
|
|
202
|
-
softness?: number;
|
|
203
|
-
/** Tint colour (default `'black'`). */
|
|
204
|
-
color?: Color;
|
|
205
|
-
}
|
|
138
|
+
export type VignetteOptions = EffectOptionsOf<typeof vignetteSpec.params>;
|
|
206
139
|
/** Film grain. Scalar shorthand sets `amount`. */
|
|
207
140
|
/**
|
|
208
141
|
* A 3D colour lookup table — see {@link LutEffect} for the table's layout and
|
|
@@ -211,108 +144,24 @@ export interface VignetteOptions extends EffectOptions {
|
|
|
211
144
|
* No scalar shorthand: the dominant argument is a whole cube, and a builder that
|
|
212
145
|
* took `Effects.lut(table)` would still need the size beside it to read it.
|
|
213
146
|
*/
|
|
214
|
-
export
|
|
215
|
-
|
|
216
|
-
table: Float32Array;
|
|
217
|
-
/** Entries per axis. */
|
|
218
|
-
size: number;
|
|
219
|
-
/** 0–1 mix against the ungraded colour (default 1 — the full look). */
|
|
220
|
-
amount?: number;
|
|
221
|
-
}
|
|
222
|
-
export interface GrainOptions extends EffectOptions {
|
|
223
|
-
/** 0–1 noise amplitude (default 0.25). */
|
|
224
|
-
amount?: number;
|
|
225
|
-
/** Grain cell size in pixels (default 1). */
|
|
226
|
-
size?: number;
|
|
227
|
-
/** Random field offset — animate it for frame-locked shimmer (default 0). */
|
|
228
|
-
seed?: number;
|
|
229
|
-
/** Re-seed every frame from elapsed time (default false). */
|
|
230
|
-
animated?: boolean;
|
|
231
|
-
/** Per-channel colour speckle instead of luminance noise (default false). */
|
|
232
|
-
colored?: boolean;
|
|
233
|
-
}
|
|
147
|
+
export type LutOptions = EffectOptionsOf<typeof lutSpec.params>;
|
|
148
|
+
export type GrainOptions = EffectOptionsOf<typeof grainSpec.params>;
|
|
234
149
|
/** Unsharp-mask sharpen. Scalar shorthand sets `amount`. */
|
|
235
|
-
export
|
|
236
|
-
/** Edge-contrast boost (default 1). */
|
|
237
|
-
amount?: number;
|
|
238
|
-
/** Radius of the blurred reference, in pixels (default 1). */
|
|
239
|
-
radius?: number;
|
|
240
|
-
}
|
|
150
|
+
export type SharpenOptions = EffectOptionsOf<typeof sharpenSpec.params>;
|
|
241
151
|
/** Edge detection. Scalar shorthand sets `strength`. */
|
|
242
|
-
export
|
|
243
|
-
/** Multiplier on the detected gradient (default 1). */
|
|
244
|
-
strength?: number;
|
|
245
|
-
/** Which operator measures the gradient (default `'sobel'`). */
|
|
246
|
-
kernel?: EdgeKernel;
|
|
247
|
-
/** Detect per RGB channel instead of on luminance (default false). */
|
|
248
|
-
colored?: boolean;
|
|
249
|
-
}
|
|
152
|
+
export type EdgesOptions = EffectOptionsOf<typeof edgesSpec.params>;
|
|
250
153
|
/** Two-tone luminance cut. Scalar shorthand sets `level`. */
|
|
251
|
-
export
|
|
252
|
-
/** 0–1 cut point (default 0.5). */
|
|
253
|
-
level?: number;
|
|
254
|
-
/** 0–1 ramp width around the cut (default 0.05 — just enough to anti-alias). */
|
|
255
|
-
smoothness?: number;
|
|
256
|
-
}
|
|
154
|
+
export type ThresholdOptions = EffectOptionsOf<typeof thresholdSpec.params>;
|
|
257
155
|
/** Zoom / spin blur about a point. Scalar shorthand sets `amount`. */
|
|
258
|
-
export
|
|
259
|
-
/** Smear length, 0–1 (default 0.5). */
|
|
260
|
-
amount?: number;
|
|
261
|
-
/** Radial rush (`'zoom'`) or rotational streak (`'spin'`) (default `'zoom'`). */
|
|
262
|
-
style?: RadialBlurStyle;
|
|
263
|
-
/** Blur centre in 0–1 layer coords (default middle). */
|
|
264
|
-
center?: Vector2;
|
|
265
|
-
/** Taps averaged per pixel (default 16, max 32). */
|
|
266
|
-
samples?: number;
|
|
267
|
-
}
|
|
156
|
+
export type RadialBlurOptions = EffectOptionsOf<typeof radialBlurSpec.params>;
|
|
268
157
|
/** Halftone print screen. Scalar shorthand sets `size`. */
|
|
269
|
-
export
|
|
270
|
-
/** Cell pitch in pixels (default 8). */
|
|
271
|
-
size?: number;
|
|
272
|
-
/** Screen rotation in degrees (default 45). */
|
|
273
|
-
angle?: number;
|
|
274
|
-
/** Mark drawn per cell (default `'dot'`). */
|
|
275
|
-
shape?: HalftoneShape;
|
|
276
|
-
/** Plates to screen into (default `'mono'`). */
|
|
277
|
-
separation?: HalftoneSeparation;
|
|
278
|
-
}
|
|
158
|
+
export type HalftoneOptions = EffectOptionsOf<typeof halftoneSpec.params>;
|
|
279
159
|
/** Ordered (Bayer) dithering. Scalar shorthand sets `levels`. */
|
|
280
|
-
export
|
|
281
|
-
/** Output tones per channel, ≥ 2 (default 2). */
|
|
282
|
-
levels?: number;
|
|
283
|
-
/**
|
|
284
|
-
* Threshold pattern (default `'bayer'`).
|
|
285
|
-
*
|
|
286
|
-
* `'bayer'` is the classic ordered matrix — a visible crosshatch, which is
|
|
287
|
-
* the retro look and also what can beat against the pixel grid at some
|
|
288
|
-
* `scale`s. `'blue'` is a void-and-cluster blue-noise field: same tone
|
|
289
|
-
* reproduction, no lattice, no moiré. Reach for `'blue'` when the dither
|
|
290
|
-
* should read as texture rather than as pattern.
|
|
291
|
-
*/
|
|
292
|
-
noise?: DitherNoise;
|
|
293
|
-
/** Bayer matrix size (default 4). Ignored when `noise` is `'blue'`. */
|
|
294
|
-
matrix?: DitherMatrix;
|
|
295
|
-
/** Pattern cell size in pixels (default 1). */
|
|
296
|
-
scale?: number;
|
|
297
|
-
/** Dither luminance to black and white (default false). */
|
|
298
|
-
monochrome?: boolean;
|
|
299
|
-
}
|
|
160
|
+
export type DitherOptions = EffectOptionsOf<typeof ditherSpec.params>;
|
|
300
161
|
/** Two-colour luminance ramp. Scalar shorthand sets `amount`. */
|
|
301
|
-
export
|
|
302
|
-
/** 0–1 blend from the original colours to the full ramp (default 1). */
|
|
303
|
-
amount?: number;
|
|
304
|
-
/** Colour the darkest tones map to (default `'black'`). */
|
|
305
|
-
shadows?: Color;
|
|
306
|
-
/** Colour the brightest tones map to (default `'white'`). */
|
|
307
|
-
highlights?: Color;
|
|
308
|
-
}
|
|
162
|
+
export type DuotoneOptions = EffectOptionsOf<typeof duotoneSpec.params>;
|
|
309
163
|
/** Tone curve through control points. */
|
|
310
|
-
export
|
|
311
|
-
/** Curve control points as `[input, output]` pairs in 0–1. */
|
|
312
|
-
points: [number, number][];
|
|
313
|
-
/** Channel(s) the curve applies to (default `'rgb'`). */
|
|
314
|
-
channel?: CurvesChannel;
|
|
315
|
-
}
|
|
164
|
+
export type CurvesOptions = EffectOptionsOf<typeof curvesSpec.params>;
|
|
316
165
|
/** Photographic grading. Every field is optional and defaults to neutral. */
|
|
317
166
|
export type ColorAdjustmentOptions = Omit<ColorAdjustmentEffect, 'type'> & EffectOptions;
|
|
318
167
|
/**
|
|
@@ -320,68 +169,18 @@ export type ColorAdjustmentOptions = Omit<ColorAdjustmentEffect, 'type'> & Effec
|
|
|
320
169
|
* blue apart horizontally by that many pixels and leaves green put — the
|
|
321
170
|
* everyday case. Name `red`/`green`/`blue` for full control.
|
|
322
171
|
*/
|
|
323
|
-
export
|
|
324
|
-
/** Shorthand: ±px horizontal spread of red vs. blue (default 4). */
|
|
172
|
+
export type RgbShiftOptions = EffectOptionsOf<typeof rgbShiftSpec.params> & {
|
|
173
|
+
/** Shorthand: ±px horizontal spread of red vs. blue (default 4); `red`/`blue` override it. */
|
|
325
174
|
amount?: number;
|
|
326
|
-
|
|
327
|
-
red?: Vector2;
|
|
328
|
-
/** Green plane offset in px. */
|
|
329
|
-
green?: Vector2;
|
|
330
|
-
/** Blue plane offset in px. Overrides `amount` for this channel. */
|
|
331
|
-
blue?: Vector2;
|
|
332
|
-
}
|
|
175
|
+
};
|
|
333
176
|
/** CRT scanlines. Scalar shorthand sets `darkness`. */
|
|
334
|
-
export
|
|
335
|
-
/** 0–1 how far the bands darken (default 0.5). */
|
|
336
|
-
darkness?: number;
|
|
337
|
-
/** Distance between band centres in px (default 4). */
|
|
338
|
-
spacing?: number;
|
|
339
|
-
/** 0–1 share of each period the dark band covers (default 0.5). */
|
|
340
|
-
thickness?: number;
|
|
341
|
-
/** Band offset in px — animate to roll the pattern (default 0). */
|
|
342
|
-
offset?: number;
|
|
343
|
-
/** Band angle in degrees; 0 = horizontal (default 0). */
|
|
344
|
-
angle?: number;
|
|
345
|
-
}
|
|
177
|
+
export type ScanlinesOptions = EffectOptionsOf<typeof scanlinesSpec.params>;
|
|
346
178
|
/** Datamosh-style band tearing. Scalar shorthand sets `amount`. */
|
|
347
|
-
export
|
|
348
|
-
/** Maximum displacement in px (default 20). */
|
|
349
|
-
amount?: number;
|
|
350
|
-
/** Band thickness in px (default 16). */
|
|
351
|
-
size?: number;
|
|
352
|
-
/** 0–1 fraction of bands that move at all (default 0.3). */
|
|
353
|
-
density?: number;
|
|
354
|
-
/** Random field offset — step it to jump between glitch states (default 0). */
|
|
355
|
-
seed?: number;
|
|
356
|
-
/** Which way bands slide (default `'x'`). */
|
|
357
|
-
axis?: EffectAxis;
|
|
358
|
-
}
|
|
179
|
+
export type BlockDisplaceOptions = EffectOptionsOf<typeof blockDisplaceSpec.params>;
|
|
359
180
|
/** ASCII art from a glyph grid. Scalar shorthand sets `size`. */
|
|
360
|
-
export
|
|
361
|
-
/** Cell size in pixels — the width of one character (default 12). */
|
|
362
|
-
size?: number;
|
|
363
|
-
/** A named ramp, or a custom string ordered most-ink-first (default `'standard'`). */
|
|
364
|
-
charset?: AsciiCharset | string;
|
|
365
|
-
/** Family the glyphs are baked in; a monospace face reads best (default `'monospace'`). */
|
|
366
|
-
fontFamily?: string;
|
|
367
|
-
/** Glyph colour when `colored` is false (default `'white'`). */
|
|
368
|
-
ink?: Color;
|
|
369
|
-
/** Colour behind the glyphs (default `'black'`; use `'transparent'` to overlay). */
|
|
370
|
-
background?: Color;
|
|
371
|
-
/** Tint each glyph with its own cell's colour instead of using `ink` (default false). */
|
|
372
|
-
colored?: boolean;
|
|
373
|
-
}
|
|
181
|
+
export type AsciiOptions = EffectOptionsOf<typeof asciiSpec.params>;
|
|
374
182
|
/** Anamorphic glare — a bright pass smeared along one axis. Scalar shorthand sets `intensity`. */
|
|
375
|
-
export
|
|
376
|
-
/** Additive multiplier for the streak pass (default 1). */
|
|
377
|
-
intensity?: number;
|
|
378
|
-
/** 0–1 luminance cutoff (default 0.7). */
|
|
379
|
-
threshold?: number;
|
|
380
|
-
/** Smear length in pixels (default 120). */
|
|
381
|
-
length?: number;
|
|
382
|
-
/** Smear axis in degrees; 0 = horizontal (default 0). */
|
|
383
|
-
angle?: number;
|
|
384
|
-
}
|
|
183
|
+
export type StreakOptions = EffectOptionsOf<typeof streakSpec.params>;
|
|
385
184
|
/**
|
|
386
185
|
* A glow — bright (or opaque) areas spread outward and composited back, with
|
|
387
186
|
* optional recolouring. Scalar shorthand sets `intensity`.
|
|
@@ -389,104 +188,22 @@ export interface StreakOptions extends EffectOptions {
|
|
|
389
188
|
* Unlike `bloom`, this spreads past the node's own box, chooses how the source
|
|
390
189
|
* composites against it, and can be coloured through a ramp.
|
|
391
190
|
*/
|
|
392
|
-
export
|
|
393
|
-
/** Additive multiplier for the glow pass (default 1). */
|
|
394
|
-
intensity?: number;
|
|
395
|
-
/** What decides a pixel's glow strength (default `'luminance'`). */
|
|
396
|
-
channel?: GlowChannel;
|
|
397
|
-
/** 0-1 luminance cutoff; read only when `channel` is `'luminance'` (default 0.5). */
|
|
398
|
-
threshold?: number;
|
|
399
|
-
/** Spread distance in pixels (default 25). */
|
|
400
|
-
radius?: number;
|
|
401
|
-
/** Dilation applied before the blur, in pixels — gives the glow a solid core (default 0). */
|
|
402
|
-
spread?: number;
|
|
403
|
-
/** Which way the glow spreads; `'x'`/`'y'` give anamorphic streaks (default `'both'`). */
|
|
404
|
-
axis?: EffectAxis;
|
|
405
|
-
/** Where the source layer sits relative to the glow (default `'behind'`). */
|
|
406
|
-
original?: GlowOriginal;
|
|
407
|
-
/** How the glow merges with the layer (default `'screen'`). */
|
|
408
|
-
blend?: BlendMode;
|
|
409
|
-
/** What the glow is coloured with (default `'none'`). */
|
|
410
|
-
tint?: GlowTint;
|
|
411
|
-
/** The glow's colour when `tint` is `'solid'` (default `'white'`). */
|
|
412
|
-
color?: Color;
|
|
413
|
-
/** Ramp colours when `tint` is `'ramp'`, parallel to `stops`. */
|
|
414
|
-
colors?: Color[];
|
|
415
|
-
/** Each ramp colour's position, 0-1 ascending (default evenly spaced). */
|
|
416
|
-
stops?: number[];
|
|
417
|
-
/** How the ramp repeats past one pass (default `'mirror'`). */
|
|
418
|
-
loopStyle?: GlowLoopStyle;
|
|
419
|
-
/** Ramp traversals across the glow's strength range (default 1). */
|
|
420
|
-
cycles?: number;
|
|
421
|
-
/** Offset along the ramp in degrees of one cycle; animate to move colour (default 0). */
|
|
422
|
-
phase?: number;
|
|
423
|
-
}
|
|
191
|
+
export type GlowOptions = EffectOptionsOf<typeof glowSpec.params>;
|
|
424
192
|
/** Kuwahara brushwork. Scalar shorthand sets `radius`. */
|
|
425
|
-
export
|
|
426
|
-
/** Window radius in pixels — brush size, capped at 6 (default 3). */
|
|
427
|
-
radius?: number;
|
|
428
|
-
}
|
|
193
|
+
export type OilPaintOptions = EffectOptionsOf<typeof oilPaintSpec.params>;
|
|
429
194
|
/** Sine warp. Scalar shorthand sets `amplitude` on the Y axis — the everyday ripple. */
|
|
430
|
-
export
|
|
431
|
-
/** Peak displacement in px — a number (Y only), or per-axis via `{ x, y }` (default 20). */
|
|
432
|
-
amplitude?: number | Vector2;
|
|
433
|
-
/** Distance between crests in px (default 120). */
|
|
434
|
-
wavelength?: number;
|
|
435
|
-
/** Phase in degrees; tween over 360 for one seamless loop (default 0). */
|
|
436
|
-
phase?: number;
|
|
437
|
-
/** Parallel bands or concentric rings (default `'linear'`). */
|
|
438
|
-
shape?: WaveShape;
|
|
439
|
-
/** Direction the crests advance along, in degrees (default 0). `'linear'` only. */
|
|
440
|
-
angle?: number;
|
|
441
|
-
/** Ring origin in 0–1 layer coords (default middle). `'radial'` only. */
|
|
442
|
-
center?: Vector2;
|
|
443
|
-
}
|
|
195
|
+
export type WaveOptions = EffectOptionsOf<typeof waveSpec.params>;
|
|
444
196
|
/** Twirl / swirl vortex. Scalar shorthand sets `angle`. */
|
|
445
|
-
export
|
|
446
|
-
/** Rotation at the centre in degrees (default 180). */
|
|
447
|
-
angle?: number;
|
|
448
|
-
/** 0–1 radius of influence (default 1 — the whole node). */
|
|
449
|
-
radius?: number;
|
|
450
|
-
/** Vortex centre in 0–1 layer coords (default middle). */
|
|
451
|
-
center?: Vector2;
|
|
452
|
-
}
|
|
197
|
+
export type TwirlOptions = EffectOptionsOf<typeof twirlSpec.params>;
|
|
453
198
|
/**
|
|
454
199
|
* Blur that ramps across the node. Scalar shorthand sets `radius`.
|
|
455
200
|
*
|
|
456
201
|
* `mode: 'backdrop'` gives the frosted panel whose blur fades out rather than
|
|
457
202
|
* ending at a hard edge.
|
|
458
203
|
*/
|
|
459
|
-
export
|
|
460
|
-
/** Blur spread in px at the far end of the ramp (default 24). */
|
|
461
|
-
radius?: number;
|
|
462
|
-
/** Blur spread in px at the near end of the ramp (default 0, i.e. sharp). */
|
|
463
|
-
startRadius?: number;
|
|
464
|
-
/** Ramp layout (default `'linear'`). */
|
|
465
|
-
shape?: ProgressiveBlurShape;
|
|
466
|
-
/** 0–1 where the blur starts building (default 0). */
|
|
467
|
-
start?: number;
|
|
468
|
-
/** 0–1 where it reaches `radius` (default 1). */
|
|
469
|
-
end?: number;
|
|
470
|
-
/** Ramp direction in degrees; 0 = left-to-right (default 90, i.e. downward). */
|
|
471
|
-
angle?: number;
|
|
472
|
-
/** Ramp origin in 0–1 layer coords (default middle). `'radial'` only. */
|
|
473
|
-
center?: Vector2;
|
|
474
|
-
/** Taps averaged at full radius, 2–32 (default 20). */
|
|
475
|
-
samples?: number;
|
|
476
|
-
}
|
|
204
|
+
export type ProgressiveBlurOptions = EffectOptionsOf<typeof progressiveBlurSpec.params>;
|
|
477
205
|
/** Mirrored wedges around a point. Scalar shorthand sets `segments`. */
|
|
478
|
-
export
|
|
479
|
-
/** Number of mirrored wedges; below 2 is a no-op (default 6). */
|
|
480
|
-
segments?: number;
|
|
481
|
-
/** Rotation of the pattern in degrees — animate to sweep the source (default 0). */
|
|
482
|
-
angle?: number;
|
|
483
|
-
/** Fold origin in 0–1 layer coords (default middle). */
|
|
484
|
-
center?: Vector2;
|
|
485
|
-
/** Radial offset of the sampled wedge (default 0). */
|
|
486
|
-
offset?: number;
|
|
487
|
-
/** 0–1 blend from the original to the folded pattern — the handle to ramp it on (default 1). */
|
|
488
|
-
amount?: number;
|
|
489
|
-
}
|
|
206
|
+
export type KaleidoscopeOptions = EffectOptionsOf<typeof kaleidoscopeSpec.params>;
|
|
490
207
|
/**
|
|
491
208
|
* Figma's Glass over the backdrop. Scalar shorthand sets `refraction`.
|
|
492
209
|
*
|
|
@@ -497,31 +214,9 @@ export interface KaleidoscopeOptions extends EffectOptions {
|
|
|
497
214
|
* Defaults to `{ mode: 'backdrop' }`; there is nothing to refract in a node's
|
|
498
215
|
* own paint, so the foreground is a no-op.
|
|
499
216
|
*/
|
|
500
|
-
export
|
|
501
|
-
/** Where the light comes from, in degrees clockwise from the top (default -45, top left). */
|
|
502
|
-
lightAngle?: number;
|
|
503
|
-
/** 0–100 brightness of the light (default 80). */
|
|
504
|
-
lightIntensity?: number;
|
|
505
|
-
/** 0–100 how strongly the curved edge bends the backdrop (default 80). */
|
|
506
|
-
refraction?: number;
|
|
507
|
-
/** How far the curved edge reaches in from the outline, px (default 20). */
|
|
508
|
-
depth?: number;
|
|
509
|
-
/** 0–100 spectral split along the curved edge (default 50). */
|
|
510
|
-
dispersion?: number;
|
|
511
|
-
/** Backdrop blur radius, px (default 4). */
|
|
512
|
-
frost?: number;
|
|
513
|
-
/** 0–100 how far the projected light spreads in from the rim (default 0). */
|
|
514
|
-
splay?: number;
|
|
515
|
-
}
|
|
217
|
+
export type GlassOptions = EffectOptionsOf<typeof glassSpec.params>;
|
|
516
218
|
/** Colour-depth reduction. Scalar shorthand sets `bits`. */
|
|
517
|
-
export
|
|
518
|
-
/** Bits per channel when `palette` is `'none'`, 1–8 (default 3). */
|
|
519
|
-
bits?: number;
|
|
520
|
-
/** Fixed hardware palette to snap to (default `'none'`). */
|
|
521
|
-
palette?: BitCrushPalette;
|
|
522
|
-
/** 0–1 blend between original and crushed (default 1). */
|
|
523
|
-
amount?: number;
|
|
524
|
-
}
|
|
219
|
+
export type BitCrushOptions = EffectOptionsOf<typeof bitCrushSpec.params>;
|
|
525
220
|
/**
|
|
526
221
|
* Immutable, chainable list of node effects.
|
|
527
222
|
*
|
|
@@ -734,19 +429,11 @@ export declare class EffectChain {
|
|
|
734
429
|
*/
|
|
735
430
|
glow(options?: number | GlowOptions): EffectChain;
|
|
736
431
|
/**
|
|
737
|
-
* Append a custom
|
|
738
|
-
*
|
|
739
|
-
*
|
|
432
|
+
* Append a custom WGSL shader. `mode` picks the layer it runs on, which
|
|
433
|
+
* `sample_src` reads: the node's own layer, or what is painted beneath it
|
|
434
|
+
* (`'backdrop'`).
|
|
740
435
|
*/
|
|
741
436
|
shader(options: ShaderEffectOptions): EffectChain;
|
|
742
|
-
/**
|
|
743
|
-
* @deprecated Use {@link EffectChain.shader}. `sksl` named the dialect; the
|
|
744
|
-
* effect is named for the paint it is the sibling of. Takes the source in
|
|
745
|
-
* `shader` rather than `source`, as it always did.
|
|
746
|
-
*/
|
|
747
|
-
sksl(options: Omit<ShaderEffectOptions, "source"> & {
|
|
748
|
-
shader: string;
|
|
749
|
-
}): EffectChain;
|
|
750
437
|
/**
|
|
751
438
|
* Append a sine warp. Tween `phase` over 360 to make the wave travel — it
|
|
752
439
|
* wraps, so a linear tween loops seamlessly.
|