@motionscript/core 0.1.0-alpha.0 → 0.1.0-alpha.10
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 +356 -0
- package/NOTICE +49 -0
- package/README.md +29 -10
- package/dist/assets/catalog.d.ts +9 -0
- package/dist/assets/catalog.d.ts.map +1 -1
- package/dist/assets/catalog.js +11 -0
- package/dist/assets/catalog.js.map +1 -1
- package/dist/assets/errors.d.ts.map +1 -1
- package/dist/assets/errors.js +7 -3
- package/dist/assets/errors.js.map +1 -1
- package/dist/assets/manager.d.ts +26 -1
- package/dist/assets/manager.d.ts.map +1 -1
- package/dist/assets/manager.js +99 -15
- package/dist/assets/manager.js.map +1 -1
- package/dist/assets/scope.d.ts +4 -4
- package/dist/assets/scope.d.ts.map +1 -1
- package/dist/assets/scope.js +1 -1
- package/dist/assets/scope.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/{filters → effects}/implementations/echo.js +2 -2
- 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/{filters → effects}/implementations/gain.js +2 -2
- 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/{filters → effects}/implementations/highpass.js +2 -2
- 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/{filters → effects}/implementations/lowpass.js +2 -2
- 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/{filters → effects}/implementations/tremolo.js +2 -2
- 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 +52 -13
- package/dist/attributes/audio/request.d.ts.map +1 -1
- package/dist/attributes/audio/request.js +10 -1
- package/dist/attributes/audio/request.js.map +1 -1
- package/dist/attributes/audio/schedule.d.ts +26 -24
- package/dist/attributes/audio/schedule.d.ts.map +1 -1
- package/dist/attributes/audio/schedule.js +51 -30
- package/dist/attributes/audio/schedule.js.map +1 -1
- package/dist/attributes/audio/sound.d.ts +18 -13
- package/dist/attributes/audio/sound.d.ts.map +1 -1
- package/dist/attributes/audio/sound.js +13 -11
- 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 +8 -8
- package/dist/attributes/index.d.ts.map +1 -1
- package/dist/attributes/index.js +7 -9
- package/dist/attributes/index.js.map +1 -1
- package/dist/attributes/layout/alignment.js +1 -1
- package/dist/attributes/layout/alignment.js.map +1 -1
- package/dist/attributes/layout/insets.d.ts +1 -1
- package/dist/attributes/layout/insets.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/size.d.ts +1 -1
- package/dist/attributes/layout/size.js +1 -1
- package/dist/attributes/layout/size.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/decorator.d.ts +56 -12
- package/dist/attributes/properties/decorator.d.ts.map +1 -1
- package/dist/attributes/properties/decorator.js +59 -19
- package/dist/attributes/properties/decorator.js.map +1 -1
- package/dist/attributes/properties/inputs.d.ts +1 -1
- package/dist/attributes/properties/inputs.js +1 -1
- package/dist/attributes/properties/inputs.js.map +1 -1
- package/dist/attributes/properties/typed.d.ts +27 -141
- package/dist/attributes/properties/typed.d.ts.map +1 -1
- package/dist/attributes/properties/typed.js +24 -106
- package/dist/attributes/properties/typed.js.map +1 -1
- package/dist/attributes/render3d/orbit.d.ts +8 -8
- package/dist/attributes/render3d/orbit.js +7 -7
- package/dist/attributes/render3d/orbit.js.map +1 -1
- package/dist/attributes/shape/corners/corner-radius.d.ts +2 -3
- package/dist/attributes/shape/corners/corner-radius.d.ts.map +1 -1
- package/dist/attributes/shape/corners/corner-radius.js +2 -3
- package/dist/attributes/shape/corners/corner-radius.js.map +1 -1
- package/dist/attributes/shape/effects/backdrop.d.ts +4 -4
- package/dist/attributes/shape/effects/backdrop.d.ts.map +1 -1
- package/dist/attributes/shape/effects/backdrop.js.map +1 -1
- package/dist/attributes/shape/effects/chain.d.ts +117 -522
- package/dist/attributes/shape/effects/chain.d.ts.map +1 -1
- package/dist/attributes/shape/effects/chain.js +102 -364
- 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 +98 -28
- 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 +21 -7
- 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 +47 -15
- 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 +82 -34
- 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 +35 -8
- 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 +57 -34
- 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 +6 -8
- 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 +34 -6
- package/dist/attributes/shape/effects/registry.d.ts.map +1 -1
- package/dist/attributes/shape/effects/registry.js +157 -112
- 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/effects/union.d.ts +2 -6
- package/dist/attributes/shape/effects/union.d.ts.map +1 -1
- package/dist/attributes/shape/effects/union.js.map +1 -1
- 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/color/parser.d.ts +1 -1
- package/dist/attributes/shape/fill/color/parser.d.ts.map +1 -1
- package/dist/attributes/shape/fill/color/parser.js +102 -50
- package/dist/attributes/shape/fill/color/parser.js.map +1 -1
- package/dist/attributes/shape/fill/gradient-stops.d.ts +16 -0
- package/dist/attributes/shape/fill/gradient-stops.d.ts.map +1 -0
- package/dist/attributes/shape/fill/gradient-stops.js +65 -0
- package/dist/attributes/shape/fill/gradient-stops.js.map +1 -0
- package/dist/attributes/shape/fill/implementations/canvas3d.d.ts +2 -2
- package/dist/attributes/shape/fill/implementations/canvas3d.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/conic-gradient.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/conic-gradient.js +2 -5
- package/dist/attributes/shape/fill/implementations/conic-gradient.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/fractal-noise.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/fractal-noise.js +2 -10
- package/dist/attributes/shape/fill/implementations/fractal-noise.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/image.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/image.js +5 -4
- package/dist/attributes/shape/fill/implementations/image.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/linear-gradient.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/linear-gradient.js +2 -6
- package/dist/attributes/shape/fill/implementations/linear-gradient.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/radial-gradient.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/radial-gradient.js +2 -5
- package/dist/attributes/shape/fill/implementations/radial-gradient.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/shader.d.ts +28 -27
- 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/implementations/video.d.ts +1 -1
- package/dist/attributes/shape/fill/implementations/video.js +2 -2
- package/dist/attributes/shape/fill/implementations/video.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/lerp.d.ts +9 -1
- package/dist/attributes/shape/fill/lerp.d.ts.map +1 -1
- package/dist/attributes/shape/fill/lerp.js +12 -1
- package/dist/attributes/shape/fill/lerp.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 +7 -17
- package/dist/attributes/shape/filters/chain.d.ts.map +1 -1
- package/dist/attributes/shape/filters/chain.js +3 -19
- 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/index.d.ts +1 -1
- package/dist/attributes/shape/filters/index.js.map +1 -1
- package/dist/attributes/shape/filters/registry.d.ts +3 -3
- package/dist/attributes/shape/filters/registry.d.ts.map +1 -1
- package/dist/attributes/shape/filters/registry.js +6 -6
- package/dist/attributes/shape/filters/registry.js.map +1 -1
- package/dist/attributes/shape/filters/union.d.ts +12 -13
- 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/path/anchors.d.ts.map +1 -1
- package/dist/attributes/shape/path/anchors.js +12 -5
- package/dist/attributes/shape/path/anchors.js.map +1 -1
- package/dist/attributes/shape/path/morph.d.ts.map +1 -1
- package/dist/attributes/shape/path/morph.js +16 -4
- package/dist/attributes/shape/path/morph.js.map +1 -1
- package/dist/attributes/shape/path/ops.d.ts +1 -2
- package/dist/attributes/shape/path/ops.d.ts.map +1 -1
- package/dist/attributes/shape/path/ops.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/attributes/shape/stroke/index.d.ts +2 -2
- package/dist/attributes/shape/stroke/index.d.ts.map +1 -1
- package/dist/attributes/shape/stroke/index.js +1 -1
- package/dist/attributes/shape/stroke/index.js.map +1 -1
- package/dist/attributes/shape/stroke/stroke.d.ts +27 -6
- package/dist/attributes/shape/stroke/stroke.d.ts.map +1 -1
- package/dist/attributes/shape/stroke/stroke.js +22 -2
- package/dist/attributes/shape/stroke/stroke.js.map +1 -1
- package/dist/attributes/shared/operators.d.ts +2 -2
- package/dist/attributes/shared/operators.js.map +1 -1
- package/dist/attributes/text/ops.d.ts +6 -0
- package/dist/attributes/text/ops.d.ts.map +1 -1
- package/dist/attributes/text/ops.js +1 -0
- package/dist/attributes/text/ops.js.map +1 -1
- package/dist/attributes/text/types.d.ts +2 -3
- package/dist/attributes/text/types.d.ts.map +1 -1
- package/dist/attributes/text/types.js.map +1 -1
- package/dist/browser/chunks/chunk-4BDLFEOC.js +2 -0
- package/dist/browser/chunks/chunk-4BDLFEOC.js.map +7 -0
- package/dist/browser/chunks/chunk-CCGVIR4F.js +3 -0
- package/dist/browser/chunks/chunk-CCGVIR4F.js.map +7 -0
- package/dist/browser/chunks/chunk-N4WSN5WY.js +13 -0
- package/dist/browser/chunks/chunk-N4WSN5WY.js.map +7 -0
- package/dist/browser/chunks/chunk-WZSI3GSK.js +6 -0
- package/dist/browser/chunks/chunk-WZSI3GSK.js.map +7 -0
- package/dist/browser/component.js +1 -1
- package/dist/browser/component.js.map +4 -4
- package/dist/browser/experimental.js +2 -0
- package/dist/browser/experimental.js.map +7 -0
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +4 -4
- package/dist/browser/manifest.json +5 -5
- package/dist/browser/sdk.js +1 -1
- package/dist/component.d.ts +10 -19
- package/dist/component.d.ts.map +1 -1
- package/dist/component.js +10 -19
- package/dist/component.js.map +1 -1
- package/dist/components/builtins/audio/audio.d.ts +62 -0
- package/dist/components/builtins/audio/audio.d.ts.map +1 -0
- package/dist/components/builtins/audio/audio.js +38 -0
- package/dist/components/builtins/audio/audio.js.map +1 -0
- package/dist/components/builtins/geometry/composite.d.ts +93 -0
- package/dist/components/builtins/geometry/composite.d.ts.map +1 -0
- package/dist/components/builtins/geometry/composite.js +25 -0
- package/dist/components/builtins/geometry/composite.js.map +1 -0
- package/dist/components/builtins/geometry/geometry.d.ts +921 -0
- package/dist/components/builtins/geometry/geometry.d.ts.map +1 -0
- package/dist/components/builtins/geometry/geometry.js +107 -0
- package/dist/components/builtins/geometry/geometry.js.map +1 -0
- package/dist/{nodes → components/builtins}/geometry/shape-outline.d.ts +5 -5
- package/dist/components/builtins/geometry/shape-outline.d.ts.map +1 -0
- package/dist/{nodes → components/builtins}/geometry/shape-outline.js +4 -15
- package/dist/components/builtins/geometry/shape-outline.js.map +1 -0
- package/dist/components/builtins/layout/layout.d.ts +186 -0
- package/dist/components/builtins/layout/layout.d.ts.map +1 -0
- package/dist/components/builtins/layout/layout.js +84 -0
- package/dist/components/builtins/layout/layout.js.map +1 -0
- package/dist/components/builtins/media/media.d.ts +240 -0
- package/dist/components/builtins/media/media.d.ts.map +1 -0
- package/dist/components/builtins/media/media.js +143 -0
- package/dist/components/builtins/media/media.js.map +1 -0
- package/dist/components/builtins/providers/providers.d.ts +47 -0
- package/dist/components/builtins/providers/providers.d.ts.map +1 -0
- package/dist/components/builtins/providers/providers.js +30 -0
- package/dist/components/builtins/providers/providers.js.map +1 -0
- package/dist/{nodes → components/builtins}/text/number-format.d.ts +1 -1
- package/dist/components/builtins/text/number-format.d.ts.map +1 -0
- package/dist/{nodes → components/builtins}/text/number-format.js +1 -1
- package/dist/components/builtins/text/number-format.js.map +1 -0
- package/dist/components/builtins/text/number-pattern.d.ts.map +1 -0
- package/dist/components/builtins/text/number-pattern.js.map +1 -0
- package/dist/{nodes/node → components/builtins/text}/text-defaults.d.ts +10 -12
- package/dist/components/builtins/text/text-defaults.d.ts.map +1 -0
- package/dist/{nodes/node → components/builtins/text}/text-defaults.js +10 -12
- package/dist/components/builtins/text/text-defaults.js.map +1 -0
- package/dist/components/builtins/text/text-layout.d.ts +82 -0
- package/dist/components/builtins/text/text-layout.d.ts.map +1 -0
- package/dist/components/builtins/text/text-layout.js +331 -0
- package/dist/components/builtins/text/text-layout.js.map +1 -0
- package/dist/components/builtins/text/text.d.ts +409 -0
- package/dist/components/builtins/text/text.d.ts.map +1 -0
- package/dist/components/builtins/text/text.js +116 -0
- package/dist/components/builtins/text/text.js.map +1 -0
- package/dist/components/builtins/three/canvas3d.d.ts +245 -0
- package/dist/components/builtins/three/canvas3d.d.ts.map +1 -0
- package/dist/components/builtins/three/canvas3d.js +21 -0
- package/dist/components/builtins/three/canvas3d.js.map +1 -0
- package/dist/{nodes → components/builtins}/three/grid-geometry3d.d.ts +2 -2
- package/dist/components/builtins/three/grid-geometry3d.d.ts.map +1 -0
- package/dist/{nodes → components/builtins}/three/grid-geometry3d.js +1 -1
- package/dist/components/builtins/three/grid-geometry3d.js.map +1 -0
- package/dist/components/builtins/three/three.d.ts +1889 -0
- package/dist/components/builtins/three/three.d.ts.map +1 -0
- package/dist/components/builtins/three/three.js +305 -0
- package/dist/components/builtins/three/three.js.map +1 -0
- package/dist/components/factory/api.d.ts +543 -0
- package/dist/components/factory/api.d.ts.map +1 -0
- package/dist/components/factory/api.js +4 -0
- package/dist/components/factory/api.js.map +1 -0
- package/dist/components/factory/clip-of.d.ts +5 -0
- package/dist/components/factory/clip-of.d.ts.map +1 -0
- package/dist/components/factory/clip-of.js +33 -0
- package/dist/components/factory/clip-of.js.map +1 -0
- package/dist/components/factory/commands-for.d.ts +19 -0
- package/dist/components/factory/commands-for.d.ts.map +1 -0
- package/dist/components/factory/commands-for.js +5 -0
- package/dist/components/factory/commands-for.js.map +1 -0
- package/dist/components/factory/component-audio.d.ts +9 -0
- package/dist/components/factory/component-audio.d.ts.map +1 -0
- package/dist/components/factory/component-audio.js +18 -0
- package/dist/components/factory/component-audio.js.map +1 -0
- package/dist/components/factory/component2d.d.ts +8 -0
- package/dist/components/factory/component2d.d.ts.map +1 -0
- package/dist/components/factory/component2d.js +240 -0
- package/dist/components/factory/component2d.js.map +1 -0
- package/dist/components/factory/component3d.d.ts +9 -0
- package/dist/components/factory/component3d.d.ts.map +1 -0
- package/dist/components/factory/component3d.js +107 -0
- package/dist/components/factory/component3d.js.map +1 -0
- package/dist/components/factory/factory.d.ts +66 -0
- package/dist/components/factory/factory.d.ts.map +1 -0
- package/dist/components/factory/factory.js +347 -0
- package/dist/components/factory/factory.js.map +1 -0
- package/dist/components/factory/timeline.d.ts +22 -0
- package/dist/components/factory/timeline.d.ts.map +1 -0
- package/dist/components/factory/timeline.js +128 -0
- package/dist/components/factory/timeline.js.map +1 -0
- package/dist/components/factory/type-def.d.ts +26 -0
- package/dist/components/factory/type-def.d.ts.map +1 -0
- package/dist/components/factory/type-def.js +16 -0
- package/dist/components/factory/type-def.js.map +1 -0
- package/dist/components/factory/types.d.ts +91 -0
- package/dist/components/factory/types.d.ts.map +1 -0
- package/dist/components/factory/types.js +88 -0
- package/dist/components/factory/types.js.map +1 -0
- package/dist/components/factory/views.d.ts +121 -0
- package/dist/components/factory/views.d.ts.map +1 -0
- package/dist/components/factory/views.js +453 -0
- package/dist/components/factory/views.js.map +1 -0
- package/dist/components/modules/aim.d.ts +30 -0
- package/dist/components/modules/aim.d.ts.map +1 -0
- package/dist/components/modules/aim.js +39 -0
- package/dist/components/modules/aim.js.map +1 -0
- package/dist/components/modules/corners.d.ts +13 -0
- package/dist/components/modules/corners.d.ts.map +1 -0
- package/dist/components/modules/corners.js +12 -0
- package/dist/components/modules/corners.js.map +1 -0
- package/dist/components/modules/flow.d.ts +26 -0
- package/dist/components/modules/flow.d.ts.map +1 -0
- package/dist/components/modules/flow.js +57 -0
- package/dist/components/modules/flow.js.map +1 -0
- package/dist/components/modules/material.d.ts +40 -0
- package/dist/components/modules/material.d.ts.map +1 -0
- package/dist/components/modules/material.js +75 -0
- package/dist/components/modules/material.js.map +1 -0
- package/dist/components/modules/paint.d.ts +71 -0
- package/dist/components/modules/paint.d.ts.map +1 -0
- package/dist/components/modules/paint.js +106 -0
- package/dist/components/modules/paint.js.map +1 -0
- package/dist/components/modules/shapes.d.ts +31 -0
- package/dist/components/modules/shapes.d.ts.map +1 -0
- package/dist/components/modules/shapes.js +43 -0
- package/dist/components/modules/shapes.js.map +1 -0
- package/dist/components/modules/text-layout.d.ts +26 -0
- package/dist/components/modules/text-layout.d.ts.map +1 -0
- package/dist/components/modules/text-layout.js +57 -0
- package/dist/components/modules/text-layout.js.map +1 -0
- package/dist/components/modules/text-style.d.ts +48 -0
- package/dist/components/modules/text-style.d.ts.map +1 -0
- package/dist/components/modules/text-style.js +63 -0
- package/dist/components/modules/text-style.js.map +1 -0
- package/dist/components/modules/three-entries.d.ts +23 -0
- package/dist/components/modules/three-entries.d.ts.map +1 -0
- package/dist/components/modules/three-entries.js +41 -0
- package/dist/components/modules/three-entries.js.map +1 -0
- package/dist/components/modules/view3d.d.ts +59 -0
- package/dist/components/modules/view3d.d.ts.map +1 -0
- package/dist/components/modules/view3d.js +171 -0
- package/dist/components/modules/view3d.js.map +1 -0
- package/dist/{nodes/geometry → components/trees/2d}/group-bounds.d.ts +4 -4
- package/dist/components/trees/2d/group-bounds.d.ts.map +1 -0
- package/dist/{nodes/geometry → components/trees/2d}/group-bounds.js +3 -4
- package/dist/components/trees/2d/group-bounds.js.map +1 -0
- package/dist/{nodes → components/trees}/2d/node-lifecycle.d.ts +2 -2
- package/dist/components/trees/2d/node-lifecycle.d.ts.map +1 -0
- package/dist/{nodes → components/trees}/2d/node-lifecycle.js +1 -1
- package/dist/components/trees/2d/node-lifecycle.js.map +1 -0
- package/dist/{nodes → components/trees}/2d/node-motion.d.ts +3 -3
- package/dist/components/trees/2d/node-motion.d.ts.map +1 -0
- package/dist/{nodes → components/trees}/2d/node-motion.js +1 -1
- package/dist/components/trees/2d/node-motion.js.map +1 -0
- package/dist/components/trees/2d/node-render.d.ts +36 -0
- package/dist/components/trees/2d/node-render.d.ts.map +1 -0
- package/dist/{nodes → components/trees}/2d/node-render.js +10 -23
- package/dist/components/trees/2d/node-render.js.map +1 -0
- package/dist/{nodes → components/trees}/2d/node-space.d.ts +3 -3
- package/dist/components/trees/2d/node-space.d.ts.map +1 -0
- package/dist/{nodes → components/trees}/2d/node-space.js +4 -4
- package/dist/components/trees/2d/node-space.js.map +1 -0
- package/dist/{nodes → components/trees}/2d/node-transform.d.ts +2 -2
- package/dist/components/trees/2d/node-transform.d.ts.map +1 -0
- package/dist/{nodes → components/trees}/2d/node-transform.js +1 -1
- package/dist/components/trees/2d/node-transform.js.map +1 -0
- package/dist/{nodes → components/trees}/2d/node2d.d.ts +206 -185
- package/dist/components/trees/2d/node2d.d.ts.map +1 -0
- package/dist/{nodes → components/trees}/2d/node2d.js +296 -324
- package/dist/components/trees/2d/node2d.js.map +1 -0
- package/dist/components/trees/audio/index.d.ts +2 -0
- package/dist/components/trees/audio/index.d.ts.map +1 -0
- package/dist/components/trees/audio/index.js +2 -0
- package/dist/components/trees/audio/index.js.map +1 -0
- package/dist/{nodes → components/trees}/audio/node-audio.d.ts +25 -15
- package/dist/components/trees/audio/node-audio.d.ts.map +1 -0
- package/dist/{nodes → components/trees}/audio/node-audio.js +30 -35
- package/dist/components/trees/audio/node-audio.js.map +1 -0
- package/dist/components/trees/index.d.ts +10 -0
- package/dist/components/trees/index.d.ts.map +1 -0
- package/dist/components/trees/index.js +14 -0
- package/dist/components/trees/index.js.map +1 -0
- package/dist/components/trees/node/node-editor-state.d.ts.map +1 -0
- package/dist/components/trees/node/node-editor-state.js.map +1 -0
- package/dist/{nodes → components/trees}/node/node-reactive.d.ts +9 -10
- package/dist/components/trees/node/node-reactive.d.ts.map +1 -0
- package/dist/{nodes → components/trees}/node/node-reactive.js +16 -13
- package/dist/components/trees/node/node-reactive.js.map +1 -0
- package/dist/{nodes → components/trees}/node/node-time.d.ts +3 -3
- package/dist/components/trees/node/node-time.d.ts.map +1 -0
- package/dist/{nodes → components/trees}/node/node-time.js +1 -1
- package/dist/components/trees/node/node-time.js.map +1 -0
- package/dist/{nodes → components/trees}/node/node-walk.d.ts +1 -1
- package/dist/components/trees/node/node-walk.d.ts.map +1 -0
- package/dist/{nodes → components/trees}/node/node-walk.js +1 -1
- package/dist/components/trees/node/node-walk.js.map +1 -0
- package/dist/{nodes → components/trees}/node/node.d.ts +46 -82
- package/dist/components/trees/node/node.d.ts.map +1 -0
- package/dist/{nodes → components/trees}/node/node.js +89 -114
- package/dist/components/trees/node/node.js.map +1 -0
- package/dist/{nodes/scene → components/trees/root}/canvas2d-node.d.ts +16 -15
- package/dist/components/trees/root/canvas2d-node.d.ts.map +1 -0
- package/dist/{nodes/scene → components/trees/root}/canvas2d-node.js +40 -85
- package/dist/components/trees/root/canvas2d-node.js.map +1 -0
- package/dist/{nodes → components/trees}/three/node3d.d.ts +65 -25
- package/dist/components/trees/three/node3d.d.ts.map +1 -0
- package/dist/{nodes → components/trees}/three/node3d.js +78 -76
- package/dist/components/trees/three/node3d.js.map +1 -0
- package/dist/document/audio.d.ts +10 -2
- package/dist/document/audio.d.ts.map +1 -1
- package/dist/document/audio.js +45 -4
- package/dist/document/audio.js.map +1 -1
- package/dist/document/builtins.d.ts.map +1 -1
- package/dist/document/builtins.js +18 -42
- package/dist/document/builtins.js.map +1 -1
- package/dist/document/command-traits.d.ts +23 -5
- package/dist/document/command-traits.d.ts.map +1 -1
- package/dist/document/command-traits.js +72 -10
- package/dist/document/command-traits.js.map +1 -1
- package/dist/document/deny-globals.d.ts +2 -2
- package/dist/document/deny-globals.js +2 -2
- package/dist/document/deny-globals.js.map +1 -1
- package/dist/document/diff.d.ts.map +1 -1
- package/dist/document/diff.js +3 -3
- package/dist/document/diff.js.map +1 -1
- package/dist/document/doc-index.d.ts +2 -2
- package/dist/document/doc-index.d.ts.map +1 -1
- package/dist/document/doc-index.js +3 -3
- package/dist/document/doc-index.js.map +1 -1
- package/dist/document/expression/compile.d.ts.map +1 -1
- package/dist/document/expression/compile.js +8 -5
- package/dist/document/expression/compile.js.map +1 -1
- package/dist/document/expression/index.d.ts +1 -1
- package/dist/document/expression/index.js +1 -1
- package/dist/document/expression/index.js.map +1 -1
- package/dist/document/expression/ops.js +2 -2
- package/dist/document/expression/ops.js.map +1 -1
- package/dist/document/expression/parse.d.ts.map +1 -1
- package/dist/document/expression/parse.js +15 -6
- package/dist/document/expression/parse.js.map +1 -1
- package/dist/document/expression/refs.d.ts +1 -1
- package/dist/document/expression/refs.js +1 -1
- package/dist/document/expression/refs.js.map +1 -1
- package/dist/document/expression/walk.d.ts.map +1 -1
- package/dist/document/expression/walk.js +2 -1
- package/dist/document/expression/walk.js.map +1 -1
- package/dist/document/index.d.ts +10 -1
- package/dist/document/index.d.ts.map +1 -1
- package/dist/document/index.js +6 -1
- 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-decorator.d.ts +14 -10
- package/dist/document/node-decorator.d.ts.map +1 -1
- package/dist/document/node-decorator.js +14 -10
- package/dist/document/node-decorator.js.map +1 -1
- package/dist/document/node-descriptor.d.ts +32 -3
- 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 +71 -0
- package/dist/document/placement.d.ts.map +1 -0
- package/dist/document/placement.js +83 -0
- package/dist/document/placement.js.map +1 -0
- package/dist/document/project.d.ts +4 -2
- 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 +71 -44
- package/dist/document/registry.d.ts.map +1 -1
- package/dist/document/registry.js +94 -35
- package/dist/document/registry.js.map +1 -1
- package/dist/document/settled-index.d.ts +57 -0
- package/dist/document/settled-index.d.ts.map +1 -0
- package/dist/document/settled-index.js +264 -0
- package/dist/document/settled-index.js.map +1 -0
- 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 +145 -20
- package/dist/document/timeline.d.ts.map +1 -1
- package/dist/document/timeline.js +478 -80
- package/dist/document/timeline.js.map +1 -1
- package/dist/document/types.d.ts +30 -44
- package/dist/document/types.d.ts.map +1 -1
- package/dist/document/types.js +2 -2
- package/dist/document/types.js.map +1 -1
- package/dist/document/validate.d.ts +20 -8
- package/dist/document/validate.d.ts.map +1 -1
- package/dist/document/validate.js +195 -52
- 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 +82 -0
- package/dist/experimental.d.ts.map +1 -0
- package/dist/experimental.js +34 -0
- package/dist/experimental.js.map +1 -0
- package/dist/index.d.ts +11 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/dist/layout/bounds.d.ts +0 -1
- package/dist/layout/bounds.d.ts.map +1 -1
- package/dist/layout/bounds.js.map +1 -1
- package/dist/layout/flex.d.ts +4 -2
- package/dist/layout/flex.d.ts.map +1 -1
- package/dist/layout/flex.js +27 -11
- package/dist/layout/flex.js.map +1 -1
- package/dist/layout/ops.d.ts +6 -0
- package/dist/layout/ops.d.ts.map +1 -1
- package/dist/layout/ops.js +6 -0
- package/dist/layout/ops.js.map +1 -1
- package/dist/layout/types.d.ts +1 -1
- package/dist/layout/types.js.map +1 -1
- package/dist/platform/audio-sink.d.ts +2 -2
- package/dist/platform/audio-sink.d.ts.map +1 -1
- package/dist/platform/audio-sink.js.map +1 -1
- package/dist/platform/exporter.d.ts +26 -8
- package/dist/platform/exporter.d.ts.map +1 -1
- package/dist/platform/exporter.js.map +1 -1
- package/dist/platform/index.d.ts +1 -1
- package/dist/platform/index.d.ts.map +1 -1
- package/dist/platform/index.js.map +1 -1
- package/dist/platform/storage-adapter.d.ts +12 -6
- package/dist/platform/storage-adapter.d.ts.map +1 -1
- package/dist/platform/storage-adapter.js +4 -0
- package/dist/platform/storage-adapter.js.map +1 -1
- package/dist/platform/ticker.d.ts +6 -0
- package/dist/platform/ticker.d.ts.map +1 -1
- package/dist/platform/ticker.js +6 -0
- package/dist/platform/ticker.js.map +1 -1
- package/dist/project/tree.d.ts +3 -3
- package/dist/project/tree.d.ts.map +1 -1
- package/dist/project/tree.js.map +1 -1
- package/dist/props/host.d.ts +6 -1
- package/dist/props/host.d.ts.map +1 -1
- package/dist/props/host.js +3 -1
- package/dist/props/host.js.map +1 -1
- package/dist/props/layout.d.ts +29 -0
- package/dist/props/layout.d.ts.map +1 -0
- package/dist/props/layout.js +84 -0
- package/dist/props/layout.js.map +1 -0
- package/dist/props/slot.d.ts +1 -1
- package/dist/props/slot.js +1 -1
- package/dist/props/slot.js.map +1 -1
- package/dist/renamed-scene-names.d.ts +17 -0
- package/dist/renamed-scene-names.d.ts.map +1 -0
- package/dist/renamed-scene-names.js +9 -0
- package/dist/renamed-scene-names.js.map +1 -0
- package/dist/render/canvas-render-context2d.d.ts +19 -3
- package/dist/render/canvas-render-context2d.d.ts.map +1 -1
- package/dist/render/canvas-render-context2d.js +20 -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/clip.d.ts +1 -1
- package/dist/render/clip.js +1 -1
- package/dist/render/clip.js.map +1 -1
- package/dist/render/descriptors/rect.js.map +1 -1
- package/dist/render/descriptors/shape.d.ts +12 -0
- package/dist/render/descriptors/shape.d.ts.map +1 -1
- package/dist/render/descriptors/shape.js.map +1 -1
- package/dist/render/descriptors/text.d.ts +15 -9
- package/dist/render/descriptors/text.d.ts.map +1 -1
- package/dist/render/descriptors/text.js +11 -5
- package/dist/render/descriptors/text.js.map +1 -1
- package/dist/render/descriptors/transform.d.ts +2 -2
- package/dist/render/descriptors/transform.d.ts.map +1 -1
- package/dist/render/descriptors/transform.js.map +1 -1
- package/dist/render/graphics2d.d.ts +3 -3
- package/dist/render/graphics2d.d.ts.map +1 -1
- package/dist/render/graphics2d.js +1 -1
- package/dist/render/graphics2d.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 +8 -8
- package/dist/render/render-context2d.d.ts.map +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/bounds3d.d.ts.map +1 -1
- package/dist/render3d/bounds3d.js +4 -2
- package/dist/render3d/bounds3d.js.map +1 -1
- package/dist/render3d/builders.d.ts +1 -1
- package/dist/render3d/builders.js +1 -1
- package/dist/render3d/builders.js.map +1 -1
- package/dist/render3d/camera.d.ts +6 -0
- package/dist/render3d/camera.d.ts.map +1 -1
- package/dist/render3d/camera.js +5 -3
- package/dist/render3d/camera.js.map +1 -1
- package/dist/render3d/fill3d.d.ts +2 -9
- package/dist/render3d/fill3d.d.ts.map +1 -1
- package/dist/render3d/fill3d.js +2 -13
- package/dist/render3d/fill3d.js.map +1 -1
- package/dist/render3d/geometry.d.ts +8 -1
- package/dist/render3d/geometry.d.ts.map +1 -1
- package/dist/render3d/geometry.js.map +1 -1
- package/dist/render3d/graphics3d.d.ts +21 -23
- package/dist/render3d/graphics3d.d.ts.map +1 -1
- package/dist/render3d/graphics3d.js +85 -34
- package/dist/render3d/graphics3d.js.map +1 -1
- package/dist/render3d/index.d.ts +1 -1
- package/dist/render3d/index.js +1 -1
- package/dist/render3d/index.js.map +1 -1
- package/dist/render3d/inert.d.ts +14 -0
- package/dist/render3d/inert.d.ts.map +1 -0
- package/dist/render3d/inert.js +62 -0
- package/dist/render3d/inert.js.map +1 -0
- package/dist/render3d/material.d.ts +10 -5
- package/dist/render3d/material.d.ts.map +1 -1
- package/dist/render3d/material.js.map +1 -1
- package/dist/render3d/resources.d.ts +2 -2
- package/dist/render3d/resources.js +2 -2
- package/dist/render3d/resources.js.map +1 -1
- package/dist/render3d/scene-settings.d.ts +23 -4
- package/dist/render3d/scene-settings.d.ts.map +1 -1
- package/dist/render3d/scene-settings.js.map +1 -1
- package/dist/render3d/scene3d.d.ts +12 -1
- package/dist/render3d/scene3d.d.ts.map +1 -1
- package/dist/render3d/scene3d.js +40 -7
- package/dist/render3d/scene3d.js.map +1 -1
- package/dist/render3d/texture.d.ts +11 -2
- package/dist/render3d/texture.d.ts.map +1 -1
- package/dist/render3d/texture.js +13 -0
- package/dist/render3d/texture.js.map +1 -1
- package/dist/render3d/transform.d.ts +1 -1
- package/dist/render3d/transform.js.map +1 -1
- package/dist/render3d/vector3.d.ts +20 -3
- package/dist/render3d/vector3.d.ts.map +1 -1
- package/dist/render3d/vector3.js +29 -2
- package/dist/render3d/vector3.js.map +1 -1
- package/dist/render3d/walk.d.ts +1 -1
- package/dist/render3d/walk.d.ts.map +1 -1
- package/dist/render3d/walk.js +5 -1
- package/dist/render3d/walk.js.map +1 -1
- package/dist/runtime/asset-refine.d.ts +1 -1
- package/dist/runtime/asset-refine.d.ts.map +1 -1
- package/dist/runtime/asset-refine.js +3 -2
- 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 +8 -1
- package/dist/runtime/asset-update.js.map +1 -1
- package/dist/runtime/audio-index.d.ts +0 -11
- package/dist/runtime/audio-index.d.ts.map +1 -1
- package/dist/runtime/audio-index.js +0 -19
- package/dist/runtime/audio-index.js.map +1 -1
- package/dist/runtime/clip-instance.d.ts +13 -6
- package/dist/runtime/clip-instance.d.ts.map +1 -1
- package/dist/runtime/clip-instance.js +34 -12
- package/dist/runtime/clip-instance.js.map +1 -1
- package/dist/runtime/clip-store.d.ts +20 -3
- package/dist/runtime/clip-store.d.ts.map +1 -1
- package/dist/runtime/clip-store.js +132 -27
- package/dist/runtime/clip-store.js.map +1 -1
- package/dist/runtime/engine.d.ts +13 -6
- package/dist/runtime/engine.d.ts.map +1 -1
- package/dist/runtime/engine.js +6 -3
- package/dist/runtime/engine.js.map +1 -1
- package/dist/runtime/frame-time.d.ts +31 -0
- package/dist/runtime/frame-time.d.ts.map +1 -0
- package/dist/runtime/frame-time.js +29 -0
- package/dist/runtime/frame-time.js.map +1 -0
- package/dist/runtime/index.d.ts +1 -0
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +1 -0
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/node-picking.d.ts +45 -4
- package/dist/runtime/node-picking.d.ts.map +1 -1
- package/dist/runtime/node-picking.js +127 -13
- package/dist/runtime/node-picking.js.map +1 -1
- package/dist/runtime/node-picking3d.d.ts +14 -6
- package/dist/runtime/node-picking3d.d.ts.map +1 -1
- package/dist/runtime/node-picking3d.js +10 -2
- package/dist/runtime/node-picking3d.js.map +1 -1
- package/dist/runtime/placement.d.ts.map +1 -1
- package/dist/runtime/placement.js +4 -5
- package/dist/runtime/placement.js.map +1 -1
- package/dist/runtime/playback-controller.d.ts +32 -3
- package/dist/runtime/playback-controller.d.ts.map +1 -1
- package/dist/runtime/playback-controller.js +78 -11
- package/dist/runtime/playback-controller.js.map +1 -1
- package/dist/runtime/session.d.ts +16 -10
- package/dist/runtime/session.d.ts.map +1 -1
- package/dist/runtime/session.js +23 -8
- package/dist/runtime/session.js.map +1 -1
- package/dist/runtime/state-evaluator.d.ts +2 -2
- package/dist/runtime/state-evaluator.d.ts.map +1 -1
- package/dist/runtime/state-evaluator.js +4 -3
- package/dist/runtime/state-evaluator.js.map +1 -1
- package/dist/runtime/text-geometry.d.ts +2 -2
- package/dist/runtime/text-geometry.d.ts.map +1 -1
- package/dist/runtime/text-geometry.js +6 -3
- package/dist/runtime/text-geometry.js.map +1 -1
- package/dist/sdk/index.d.ts +70 -38
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +71 -46
- package/dist/sdk/index.js.map +1 -1
- package/dist/tween/command-decorator.d.ts +21 -8
- package/dist/tween/command-decorator.d.ts.map +1 -1
- package/dist/tween/command-decorator.js +12 -23
- package/dist/tween/command-decorator.js.map +1 -1
- package/dist/tween/command.d.ts +13 -1
- package/dist/tween/command.d.ts.map +1 -1
- package/dist/tween/command.js +14 -0
- package/dist/tween/command.js.map +1 -1
- package/dist/tween/ease/constants.d.ts.map +1 -1
- package/dist/tween/ease/constants.js +8 -5
- package/dist/tween/ease/constants.js.map +1 -1
- package/dist/tween/ease/curve.d.ts.map +1 -1
- package/dist/tween/ease/curve.js +4 -3
- package/dist/tween/ease/curve.js.map +1 -1
- package/dist/tween/ease/describe.d.ts +17 -0
- package/dist/tween/ease/describe.d.ts.map +1 -0
- package/dist/tween/ease/describe.js +41 -0
- package/dist/tween/ease/describe.js.map +1 -0
- 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 +3 -1
- package/dist/tween/index.d.ts.map +1 -1
- package/dist/tween/index.js +2 -1
- package/dist/tween/index.js.map +1 -1
- package/dist/tween/loop.d.ts +1 -1
- package/dist/tween/loop.js +1 -1
- package/dist/tween/loop.js.map +1 -1
- package/dist/tween/prepare.d.ts +3 -3
- package/dist/tween/prepare.js +3 -3
- package/dist/tween/prepare.js.map +1 -1
- package/dist/util/metrics.d.ts +1 -1
- package/dist/util/metrics.js +1 -1
- package/dist/util/metrics.js.map +1 -1
- package/dist/util/reference.d.ts +6 -6
- package/dist/util/reference.js.map +1 -1
- package/package.json +8 -10
- package/dist/attributes/audio/filters/chain.d.ts +0 -113
- package/dist/attributes/audio/filters/chain.d.ts.map +0 -1
- package/dist/attributes/audio/filters/chain.js +0 -104
- package/dist/attributes/audio/filters/chain.js.map +0 -1
- package/dist/attributes/audio/filters/curve.d.ts +0 -152
- package/dist/attributes/audio/filters/curve.d.ts.map +0 -1
- package/dist/attributes/audio/filters/curve.js +0 -249
- package/dist/attributes/audio/filters/curve.js.map +0 -1
- package/dist/attributes/audio/filters/implementations/echo.d.ts +0 -14
- package/dist/attributes/audio/filters/implementations/echo.d.ts.map +0 -1
- package/dist/attributes/audio/filters/implementations/echo.js.map +0 -1
- package/dist/attributes/audio/filters/implementations/gain.d.ts +0 -10
- package/dist/attributes/audio/filters/implementations/gain.d.ts.map +0 -1
- package/dist/attributes/audio/filters/implementations/gain.js.map +0 -1
- package/dist/attributes/audio/filters/implementations/highpass.d.ts +0 -12
- package/dist/attributes/audio/filters/implementations/highpass.d.ts.map +0 -1
- package/dist/attributes/audio/filters/implementations/highpass.js.map +0 -1
- package/dist/attributes/audio/filters/implementations/lowpass.d.ts +0 -12
- package/dist/attributes/audio/filters/implementations/lowpass.d.ts.map +0 -1
- package/dist/attributes/audio/filters/implementations/lowpass.js.map +0 -1
- package/dist/attributes/audio/filters/implementations/speed.d.ts +0 -18
- package/dist/attributes/audio/filters/implementations/speed.d.ts.map +0 -1
- package/dist/attributes/audio/filters/implementations/speed.js +0 -6
- package/dist/attributes/audio/filters/implementations/speed.js.map +0 -1
- package/dist/attributes/audio/filters/implementations/tremolo.d.ts +0 -12
- package/dist/attributes/audio/filters/implementations/tremolo.d.ts.map +0 -1
- package/dist/attributes/audio/filters/implementations/tremolo.js.map +0 -1
- package/dist/attributes/audio/filters/index.d.ts +0 -22
- package/dist/attributes/audio/filters/index.d.ts.map +0 -1
- package/dist/attributes/audio/filters/index.js +0 -8
- package/dist/attributes/audio/filters/index.js.map +0 -1
- package/dist/attributes/audio/filters/registry.d.ts +0 -36
- package/dist/attributes/audio/filters/registry.d.ts.map +0 -1
- package/dist/attributes/audio/filters/registry.js +0 -82
- package/dist/attributes/audio/filters/registry.js.map +0 -1
- package/dist/attributes/audio/filters/union.d.ts +0 -18
- package/dist/attributes/audio/filters/union.d.ts.map +0 -1
- package/dist/attributes/audio/filters/union.js +0 -28
- package/dist/attributes/audio/filters/union.js.map +0 -1
- package/dist/attributes/shape/effects/implementations/displace.d.ts +0 -48
- package/dist/attributes/shape/effects/implementations/displace.d.ts.map +0 -1
- package/dist/attributes/shape/effects/implementations/displace.js +0 -30
- package/dist/attributes/shape/effects/implementations/displace.js.map +0 -1
- package/dist/attributes/shape/effects/implementations/god-rays.d.ts +0 -28
- package/dist/attributes/shape/effects/implementations/god-rays.d.ts.map +0 -1
- package/dist/attributes/shape/effects/implementations/god-rays.js +0 -26
- package/dist/attributes/shape/effects/implementations/god-rays.js.map +0 -1
- package/dist/attributes/shape/effects/implementations/texture.d.ts +0 -28
- package/dist/attributes/shape/effects/implementations/texture.d.ts.map +0 -1
- package/dist/attributes/shape/effects/implementations/texture.js +0 -25
- package/dist/attributes/shape/effects/implementations/texture.js.map +0 -1
- package/dist/attributes/shape/effects/implementations/trails.d.ts +0 -41
- package/dist/attributes/shape/effects/implementations/trails.d.ts.map +0 -1
- package/dist/attributes/shape/effects/implementations/trails.js +0 -22
- package/dist/attributes/shape/effects/implementations/trails.js.map +0 -1
- package/dist/attributes/shape/sksl-uniforms.d.ts +0 -146
- package/dist/attributes/shape/sksl-uniforms.d.ts.map +0 -1
- package/dist/attributes/shape/sksl-uniforms.js +0 -0
- package/dist/attributes/shape/sksl-uniforms.js.map +0 -1
- package/dist/browser/chunks/chunk-2T3HXSC2.js +0 -2
- package/dist/browser/chunks/chunk-2T3HXSC2.js.map +0 -7
- package/dist/browser/chunks/chunk-P3XQCHDW.js +0 -16
- package/dist/browser/chunks/chunk-P3XQCHDW.js.map +0 -7
- package/dist/browser/chunks/chunk-VJQMKHGQ.js +0 -3
- package/dist/browser/chunks/chunk-VJQMKHGQ.js.map +0 -7
- package/dist/browser/jsx-jsx-dev-runtime.js +0 -2
- package/dist/browser/jsx-jsx-dev-runtime.js.map +0 -7
- package/dist/browser/jsx-jsx-runtime.js +0 -2
- package/dist/browser/jsx-jsx-runtime.js.map +0 -7
- package/dist/jsx/jsx-dev-runtime.d.ts +0 -3
- package/dist/jsx/jsx-dev-runtime.d.ts.map +0 -1
- package/dist/jsx/jsx-dev-runtime.js +0 -3
- package/dist/jsx/jsx-dev-runtime.js.map +0 -1
- package/dist/jsx/jsx-runtime.d.ts +0 -19
- package/dist/jsx/jsx-runtime.d.ts.map +0 -1
- package/dist/jsx/jsx-runtime.js +0 -16
- package/dist/jsx/jsx-runtime.js.map +0 -1
- package/dist/nodes/2d/node-lifecycle.d.ts.map +0 -1
- package/dist/nodes/2d/node-lifecycle.js.map +0 -1
- package/dist/nodes/2d/node-motion.d.ts.map +0 -1
- package/dist/nodes/2d/node-motion.js.map +0 -1
- package/dist/nodes/2d/node-render.d.ts +0 -44
- package/dist/nodes/2d/node-render.d.ts.map +0 -1
- package/dist/nodes/2d/node-render.js.map +0 -1
- package/dist/nodes/2d/node-space.d.ts.map +0 -1
- package/dist/nodes/2d/node-space.js.map +0 -1
- package/dist/nodes/2d/node-transform.d.ts.map +0 -1
- package/dist/nodes/2d/node-transform.js.map +0 -1
- package/dist/nodes/2d/node2d.d.ts.map +0 -1
- package/dist/nodes/2d/node2d.js.map +0 -1
- package/dist/nodes/2d/paint-node.d.ts +0 -115
- package/dist/nodes/2d/paint-node.d.ts.map +0 -1
- package/dist/nodes/2d/paint-node.js +0 -190
- package/dist/nodes/2d/paint-node.js.map +0 -1
- package/dist/nodes/audio/audio-bus.d.ts +0 -28
- package/dist/nodes/audio/audio-bus.d.ts.map +0 -1
- package/dist/nodes/audio/audio-bus.js +0 -33
- package/dist/nodes/audio/audio-bus.js.map +0 -1
- package/dist/nodes/audio/index.d.ts +0 -4
- package/dist/nodes/audio/index.d.ts.map +0 -1
- package/dist/nodes/audio/index.js +0 -4
- package/dist/nodes/audio/index.js.map +0 -1
- package/dist/nodes/audio/node-audio.d.ts.map +0 -1
- package/dist/nodes/audio/node-audio.js.map +0 -1
- package/dist/nodes/audio/sound-node.d.ts +0 -40
- package/dist/nodes/audio/sound-node.d.ts.map +0 -1
- package/dist/nodes/audio/sound-node.js +0 -68
- package/dist/nodes/audio/sound-node.js.map +0 -1
- package/dist/nodes/geometry/boolean-node.d.ts +0 -28
- package/dist/nodes/geometry/boolean-node.d.ts.map +0 -1
- package/dist/nodes/geometry/boolean-node.js +0 -81
- package/dist/nodes/geometry/boolean-node.js.map +0 -1
- package/dist/nodes/geometry/bounds-shape-node.d.ts +0 -149
- package/dist/nodes/geometry/bounds-shape-node.d.ts.map +0 -1
- package/dist/nodes/geometry/bounds-shape-node.js +0 -181
- package/dist/nodes/geometry/bounds-shape-node.js.map +0 -1
- package/dist/nodes/geometry/box-path-node.d.ts +0 -89
- package/dist/nodes/geometry/box-path-node.d.ts.map +0 -1
- package/dist/nodes/geometry/box-path-node.js +0 -116
- package/dist/nodes/geometry/box-path-node.js.map +0 -1
- package/dist/nodes/geometry/dot-grid-node.d.ts +0 -105
- package/dist/nodes/geometry/dot-grid-node.d.ts.map +0 -1
- package/dist/nodes/geometry/dot-grid-node.js +0 -142
- package/dist/nodes/geometry/dot-grid-node.js.map +0 -1
- package/dist/nodes/geometry/ellipse-node.d.ts +0 -18
- package/dist/nodes/geometry/ellipse-node.d.ts.map +0 -1
- package/dist/nodes/geometry/ellipse-node.js +0 -45
- package/dist/nodes/geometry/ellipse-node.js.map +0 -1
- package/dist/nodes/geometry/grid-lines.d.ts +0 -101
- package/dist/nodes/geometry/grid-lines.d.ts.map +0 -1
- package/dist/nodes/geometry/grid-lines.js +0 -128
- package/dist/nodes/geometry/grid-lines.js.map +0 -1
- package/dist/nodes/geometry/grid-pattern-node.d.ts +0 -58
- package/dist/nodes/geometry/grid-pattern-node.d.ts.map +0 -1
- package/dist/nodes/geometry/grid-pattern-node.js +0 -172
- package/dist/nodes/geometry/grid-pattern-node.js.map +0 -1
- package/dist/nodes/geometry/group-bounds.d.ts.map +0 -1
- package/dist/nodes/geometry/group-bounds.js.map +0 -1
- package/dist/nodes/geometry/line-grid-node.d.ts +0 -62
- package/dist/nodes/geometry/line-grid-node.d.ts.map +0 -1
- package/dist/nodes/geometry/line-grid-node.js +0 -127
- package/dist/nodes/geometry/line-grid-node.js.map +0 -1
- package/dist/nodes/geometry/line-node.d.ts +0 -58
- package/dist/nodes/geometry/line-node.d.ts.map +0 -1
- package/dist/nodes/geometry/line-node.js +0 -123
- package/dist/nodes/geometry/line-node.js.map +0 -1
- package/dist/nodes/geometry/mask-node.d.ts +0 -33
- package/dist/nodes/geometry/mask-node.d.ts.map +0 -1
- package/dist/nodes/geometry/mask-node.js +0 -66
- package/dist/nodes/geometry/mask-node.js.map +0 -1
- package/dist/nodes/geometry/path-node.d.ts +0 -26
- package/dist/nodes/geometry/path-node.d.ts.map +0 -1
- package/dist/nodes/geometry/path-node.js +0 -52
- package/dist/nodes/geometry/path-node.js.map +0 -1
- package/dist/nodes/geometry/polygon-node.d.ts +0 -26
- package/dist/nodes/geometry/polygon-node.d.ts.map +0 -1
- package/dist/nodes/geometry/polygon-node.js +0 -47
- package/dist/nodes/geometry/polygon-node.js.map +0 -1
- package/dist/nodes/geometry/polygram-node.d.ts +0 -33
- package/dist/nodes/geometry/polygram-node.d.ts.map +0 -1
- package/dist/nodes/geometry/polygram-node.js +0 -52
- package/dist/nodes/geometry/polygram-node.js.map +0 -1
- package/dist/nodes/geometry/rect-node.d.ts +0 -38
- package/dist/nodes/geometry/rect-node.d.ts.map +0 -1
- package/dist/nodes/geometry/rect-node.js +0 -56
- package/dist/nodes/geometry/rect-node.js.map +0 -1
- package/dist/nodes/geometry/shape-node.d.ts +0 -71
- package/dist/nodes/geometry/shape-node.d.ts.map +0 -1
- package/dist/nodes/geometry/shape-node.js +0 -140
- package/dist/nodes/geometry/shape-node.js.map +0 -1
- package/dist/nodes/geometry/shape-outline.d.ts.map +0 -1
- package/dist/nodes/geometry/shape-outline.js.map +0 -1
- package/dist/nodes/geometry/viewport-pattern-node.d.ts +0 -39
- package/dist/nodes/geometry/viewport-pattern-node.d.ts.map +0 -1
- package/dist/nodes/geometry/viewport-pattern-node.js +0 -79
- package/dist/nodes/geometry/viewport-pattern-node.js.map +0 -1
- package/dist/nodes/index.d.ts +0 -46
- package/dist/nodes/index.d.ts.map +0 -1
- package/dist/nodes/index.js +0 -54
- package/dist/nodes/index.js.map +0 -1
- package/dist/nodes/layout/camera-node.d.ts +0 -71
- package/dist/nodes/layout/camera-node.d.ts.map +0 -1
- package/dist/nodes/layout/camera-node.js +0 -118
- package/dist/nodes/layout/camera-node.js.map +0 -1
- package/dist/nodes/layout/orbit-camera-node.d.ts +0 -80
- package/dist/nodes/layout/orbit-camera-node.d.ts.map +0 -1
- package/dist/nodes/layout/orbit-camera-node.js +0 -118
- package/dist/nodes/layout/orbit-camera-node.js.map +0 -1
- package/dist/nodes/layout/rotated-box.d.ts +0 -20
- package/dist/nodes/layout/rotated-box.d.ts.map +0 -1
- package/dist/nodes/layout/rotated-box.js +0 -76
- package/dist/nodes/layout/rotated-box.js.map +0 -1
- package/dist/nodes/media/video-node.d.ts +0 -229
- package/dist/nodes/media/video-node.d.ts.map +0 -1
- package/dist/nodes/media/video-node.js +0 -348
- package/dist/nodes/media/video-node.js.map +0 -1
- package/dist/nodes/node/declare-paints.d.ts +0 -19
- package/dist/nodes/node/declare-paints.d.ts.map +0 -1
- package/dist/nodes/node/declare-paints.js +0 -27
- package/dist/nodes/node/declare-paints.js.map +0 -1
- package/dist/nodes/node/node-editor-state.d.ts.map +0 -1
- package/dist/nodes/node/node-editor-state.js.map +0 -1
- package/dist/nodes/node/node-reactive.d.ts.map +0 -1
- package/dist/nodes/node/node-reactive.js.map +0 -1
- package/dist/nodes/node/node-time.d.ts.map +0 -1
- package/dist/nodes/node/node-time.js.map +0 -1
- package/dist/nodes/node/node-walk.d.ts.map +0 -1
- package/dist/nodes/node/node-walk.js.map +0 -1
- package/dist/nodes/node/node.d.ts.map +0 -1
- package/dist/nodes/node/node.js.map +0 -1
- package/dist/nodes/node/text-defaults.d.ts.map +0 -1
- package/dist/nodes/node/text-defaults.js.map +0 -1
- package/dist/nodes/scene/canvas2d-node.d.ts.map +0 -1
- package/dist/nodes/scene/canvas2d-node.js.map +0 -1
- package/dist/nodes/scene/provider-node.d.ts +0 -47
- package/dist/nodes/scene/provider-node.d.ts.map +0 -1
- package/dist/nodes/scene/provider-node.js +0 -63
- package/dist/nodes/scene/provider-node.js.map +0 -1
- package/dist/nodes/scene/theme-provider-node.d.ts +0 -29
- package/dist/nodes/scene/theme-provider-node.d.ts.map +0 -1
- package/dist/nodes/scene/theme-provider-node.js +0 -43
- package/dist/nodes/scene/theme-provider-node.js.map +0 -1
- package/dist/nodes/text/default-text-style-node.d.ts +0 -100
- package/dist/nodes/text/default-text-style-node.d.ts.map +0 -1
- package/dist/nodes/text/default-text-style-node.js +0 -140
- package/dist/nodes/text/default-text-style-node.js.map +0 -1
- package/dist/nodes/text/number-format.d.ts.map +0 -1
- package/dist/nodes/text/number-format.js.map +0 -1
- package/dist/nodes/text/number-node.d.ts +0 -94
- package/dist/nodes/text/number-node.d.ts.map +0 -1
- package/dist/nodes/text/number-node.js +0 -86
- package/dist/nodes/text/number-node.js.map +0 -1
- package/dist/nodes/text/number-pattern.d.ts.map +0 -1
- package/dist/nodes/text/number-pattern.js.map +0 -1
- package/dist/nodes/text/richtext-node.d.ts +0 -73
- package/dist/nodes/text/richtext-node.d.ts.map +0 -1
- package/dist/nodes/text/richtext-node.js +0 -144
- package/dist/nodes/text/richtext-node.js.map +0 -1
- package/dist/nodes/text/text-base.d.ts +0 -135
- package/dist/nodes/text/text-base.d.ts.map +0 -1
- package/dist/nodes/text/text-base.js +0 -504
- package/dist/nodes/text/text-base.js.map +0 -1
- package/dist/nodes/text/text-node.d.ts +0 -84
- package/dist/nodes/text/text-node.d.ts.map +0 -1
- package/dist/nodes/text/text-node.js +0 -188
- package/dist/nodes/text/text-node.js.map +0 -1
- package/dist/nodes/text/text-selection.d.ts +0 -125
- package/dist/nodes/text/text-selection.d.ts.map +0 -1
- package/dist/nodes/text/text-selection.js +0 -209
- package/dist/nodes/text/text-selection.js.map +0 -1
- package/dist/nodes/three/camera-nodes.d.ts +0 -91
- package/dist/nodes/three/camera-nodes.d.ts.map +0 -1
- package/dist/nodes/three/camera-nodes.js +0 -71
- package/dist/nodes/three/camera-nodes.js.map +0 -1
- package/dist/nodes/three/canvas3d-node.d.ts +0 -270
- package/dist/nodes/three/canvas3d-node.d.ts.map +0 -1
- package/dist/nodes/three/canvas3d-node.js +0 -438
- package/dist/nodes/three/canvas3d-node.js.map +0 -1
- package/dist/nodes/three/drawable-nodes.d.ts +0 -159
- package/dist/nodes/three/drawable-nodes.d.ts.map +0 -1
- package/dist/nodes/three/drawable-nodes.js +0 -254
- package/dist/nodes/three/drawable-nodes.js.map +0 -1
- package/dist/nodes/three/environment-nodes.d.ts +0 -100
- package/dist/nodes/three/environment-nodes.d.ts.map +0 -1
- package/dist/nodes/three/environment-nodes.js +0 -134
- package/dist/nodes/three/environment-nodes.js.map +0 -1
- package/dist/nodes/three/geometry-nodes.d.ts +0 -197
- package/dist/nodes/three/geometry-nodes.d.ts.map +0 -1
- package/dist/nodes/three/geometry-nodes.js +0 -322
- package/dist/nodes/three/geometry-nodes.js.map +0 -1
- package/dist/nodes/three/grid-geometry3d.d.ts.map +0 -1
- package/dist/nodes/three/grid-geometry3d.js.map +0 -1
- package/dist/nodes/three/group3d.d.ts +0 -23
- package/dist/nodes/three/group3d.d.ts.map +0 -1
- package/dist/nodes/three/group3d.js +0 -21
- package/dist/nodes/three/group3d.js.map +0 -1
- package/dist/nodes/three/light-nodes.d.ts +0 -120
- package/dist/nodes/three/light-nodes.d.ts.map +0 -1
- package/dist/nodes/three/light-nodes.js +0 -173
- package/dist/nodes/three/light-nodes.js.map +0 -1
- package/dist/nodes/three/mesh3d.d.ts +0 -117
- package/dist/nodes/three/mesh3d.d.ts.map +0 -1
- package/dist/nodes/three/mesh3d.js +0 -147
- package/dist/nodes/three/mesh3d.js.map +0 -1
- package/dist/nodes/three/node3d.d.ts.map +0 -1
- package/dist/nodes/three/node3d.js.map +0 -1
- package/dist/render/descriptors/latex.d.ts +0 -6
- package/dist/render/descriptors/latex.d.ts.map +0 -1
- package/dist/render/descriptors/latex.js +0 -2
- package/dist/render/descriptors/latex.js.map +0 -1
- package/dist/tween/seekable.d.ts +0 -70
- package/dist/tween/seekable.d.ts.map +0 -1
- package/dist/tween/seekable.js +0 -122
- package/dist/tween/seekable.js.map +0 -1
- /package/dist/{nodes → components/builtins}/text/number-pattern.d.ts +0 -0
- /package/dist/{nodes → components/builtins}/text/number-pattern.js +0 -0
- /package/dist/{nodes → components/trees}/node/node-editor-state.d.ts +0 -0
- /package/dist/{nodes → components/trees}/node/node-editor-state.js +0 -0
|
@@ -1,27 +1,51 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { Vector2 } from "../../../attributes/layout/vector2.js";
|
|
1
|
+
import { NodeEffect } from "./union.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 { DisplaceChannel } from "./implementations/displace.js";
|
|
23
|
-
import type { WaveShape } from "./implementations/wave.js";
|
|
24
|
-
import type { ProgressiveBlurShape } from "./implementations/progressive-blur.js";
|
|
25
49
|
/**
|
|
26
50
|
* Every effect builder takes **exactly one argument**: an options object
|
|
27
51
|
* carrying all of that effect's data. Builders with one dominant animated
|
|
@@ -35,115 +59,48 @@ import type { ProgressiveBlurShape } from "./implementations/progressive-blur.js
|
|
|
35
59
|
* `center` always a 0–1 normalised point, `axis` always an {@link EffectAxis}.
|
|
36
60
|
*/
|
|
37
61
|
/** Gaussian blur. Scalar shorthand sets `radius`. */
|
|
38
|
-
export
|
|
39
|
-
/** Blur spread in pixels. */
|
|
40
|
-
radius: number;
|
|
41
|
-
}
|
|
62
|
+
export type BlurOptions = EffectOptionsOf<typeof blurSpec.params>;
|
|
42
63
|
/** Directional (linear) blur. Scalar shorthand sets `radius`. */
|
|
43
|
-
export
|
|
44
|
-
/** Smear length in pixels along `angle`. */
|
|
45
|
-
radius: number;
|
|
46
|
-
/** Smear axis in degrees — 0 = horizontal, 90 = vertical (default 0). */
|
|
47
|
-
angle?: number;
|
|
48
|
-
}
|
|
64
|
+
export type DirectionalBlurOptions = EffectOptionsOf<typeof directionalBlurSpec.params>;
|
|
49
65
|
/** Desaturation. Scalar shorthand sets `amount`. */
|
|
50
|
-
export
|
|
51
|
-
/** 0–1: 0 = original, 1 = fully desaturated. */
|
|
52
|
-
amount: number;
|
|
53
|
-
}
|
|
66
|
+
export type GrayscaleOptions = EffectOptionsOf<typeof grayscaleSpec.params>;
|
|
54
67
|
/**
|
|
55
68
|
* After Effects-style Mosaic. Scalar shorthand sets `blocks` on both axes.
|
|
56
69
|
*
|
|
57
70
|
* `blocks` is the *number of blocks* across the node, so a count equal to the
|
|
58
71
|
* node's pixel size on that axis is pristine and lower counts are coarser.
|
|
59
72
|
*/
|
|
60
|
-
export
|
|
61
|
-
/** Block count — a number for both axes, or per-axis via `{ x, y }`. */
|
|
62
|
-
blocks: number | Vector2;
|
|
63
|
-
/** AE "Sharp Colors": solid blocks (true, the default) vs. smoothly blended. */
|
|
64
|
-
sharpColors?: boolean;
|
|
65
|
-
}
|
|
73
|
+
export type PixelateOptions = EffectOptionsOf<typeof pixelateSpec.params>;
|
|
66
74
|
/** Bulge / pinch lens over the node's content, or the backdrop. Scalar shorthand sets `strength`. */
|
|
67
|
-
export
|
|
68
|
-
/** Positive bulges (barrel), negative pinches (pincushion). Range ≈ −1…1. */
|
|
69
|
-
strength: number;
|
|
70
|
-
/** Lens centre in 0–1 layer coords (default middle). */
|
|
71
|
-
center?: Vector2;
|
|
72
|
-
}
|
|
75
|
+
export type BulgeOptions = EffectOptionsOf<typeof bulgeSpec.params>;
|
|
73
76
|
/** Magnifier lens over the backdrop. Scalar shorthand sets `scale`. */
|
|
74
|
-
export
|
|
75
|
-
/** Magnification factor — 1 = none, 2 = 2×, 0.5 = zoomed out (default 2). */
|
|
76
|
-
scale?: number;
|
|
77
|
-
/** Magnify centre in 0–1 layer coords (default middle). */
|
|
78
|
-
center?: Vector2;
|
|
79
|
-
}
|
|
77
|
+
export type MagnifyOptions = EffectOptionsOf<typeof magnifySpec.params>;
|
|
80
78
|
/** Bloom (glow). Scalar shorthand sets `intensity`. */
|
|
81
|
-
export
|
|
82
|
-
/** Additive multiplier for the bloom pass (default 1). */
|
|
83
|
-
intensity?: number;
|
|
84
|
-
/** 0–1 luminance cutoff — only pixels brighter than this bloom (default 0.7). */
|
|
85
|
-
threshold?: number;
|
|
86
|
-
/** Spread in pixels (default 12). */
|
|
87
|
-
radius?: number;
|
|
88
|
-
}
|
|
79
|
+
export type BloomOptions = EffectOptionsOf<typeof bloomSpec.params>;
|
|
89
80
|
/** Vintage / film-look colour grading. Scalar shorthand sets `amount`. */
|
|
90
|
-
export
|
|
91
|
-
/** 0–1: 0 = original, 1 = full sepia + desaturate (default 1). */
|
|
92
|
-
amount?: number;
|
|
93
|
-
/** −1…1: negative = cool/cyan tint, positive = warm/amber (default 0.2). */
|
|
94
|
-
warmth?: number;
|
|
95
|
-
}
|
|
81
|
+
export type VintageOptions = EffectOptionsOf<typeof vintageSpec.params>;
|
|
96
82
|
/** Lens-dispersion colour fringing. Scalar shorthand sets `amount`. */
|
|
97
|
-
export
|
|
98
|
-
/** Pixel offset distance for the R/B fringe (default 4). */
|
|
99
|
-
amount?: number;
|
|
100
|
-
/** Fringe axis in degrees — 0 = horizontal, R right / B left (default 0). */
|
|
101
|
-
angle?: number;
|
|
102
|
-
}
|
|
83
|
+
export type ChromaticAberrationOptions = EffectOptionsOf<typeof chromaticAberrationSpec.params>;
|
|
103
84
|
/** Colour invert. Scalar shorthand sets `strength`. */
|
|
104
|
-
export
|
|
105
|
-
/** 0–1: blend from original (0) to fully inverted (1) (default 1). */
|
|
106
|
-
strength?: number;
|
|
107
|
-
/** Which channel / colour component to invert (default `'rgba'`). */
|
|
108
|
-
channel?: InvertChannel;
|
|
109
|
-
}
|
|
85
|
+
export type InvertOptions = EffectOptionsOf<typeof invertSpec.params>;
|
|
110
86
|
/** Per-pixel random jitter. Scalar shorthand sets `strength`. */
|
|
111
|
-
export
|
|
112
|
-
/** Maximum random pixel displacement (default 10). */
|
|
113
|
-
strength?: number;
|
|
114
|
-
/** Axis pixels are scattered along (default `'both'`). */
|
|
115
|
-
axis?: EffectAxis;
|
|
116
|
-
}
|
|
87
|
+
export type ScatterOptions = EffectOptionsOf<typeof scatterSpec.params>;
|
|
117
88
|
/** Colour banding. Scalar shorthand sets `levels`. */
|
|
118
|
-
export
|
|
119
|
-
/** Number of brightness levels per channel (≥ 2, default 4). */
|
|
120
|
-
levels?: number;
|
|
121
|
-
}
|
|
89
|
+
export type PosterizeOptions = EffectOptionsOf<typeof posterizeSpec.params>;
|
|
122
90
|
/** Velocity-driven motion blur. Scalar shorthand sets `length`. */
|
|
123
|
-
export
|
|
124
|
-
/** Shutter "openness" as a percent; 100 ≈ 360° (default 50). */
|
|
125
|
-
length?: number;
|
|
126
|
-
/** Shutter phase: `'behind'` | `'centered'` | `'ahead'` | −1…1 (default `'centered'`). */
|
|
127
|
-
alignment?: MotionBlurAlignment;
|
|
128
|
-
/** Renderer quality hint; higher switches to multi-tap accumulation (default 16). */
|
|
129
|
-
samples?: number;
|
|
130
|
-
/** Blur-length multiplier (default 1). */
|
|
131
|
-
strength?: number;
|
|
132
|
-
/** Per-axis velocity scale (default `'both'`). */
|
|
133
|
-
axis?: EffectAxis;
|
|
134
|
-
}
|
|
91
|
+
export type MotionBlurOptions = EffectOptionsOf<typeof motionBlurSpec.params>;
|
|
135
92
|
/**
|
|
136
93
|
* A custom shader. `mode` selects the path:
|
|
137
94
|
*
|
|
138
|
-
* - `'foreground'` (the default) —
|
|
139
|
-
*
|
|
140
|
-
* - `'backdrop'` —
|
|
141
|
-
*
|
|
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.
|
|
142
99
|
*/
|
|
143
100
|
export interface ShaderEffectOptions extends EffectOptions {
|
|
144
101
|
/**
|
|
145
|
-
*
|
|
146
|
-
* values it publishes.
|
|
102
|
+
* The WGSL program, or a registered
|
|
103
|
+
* **shader pack** — a program plus the editable values it publishes.
|
|
147
104
|
*
|
|
148
105
|
* A pack resolves to plain uniforms here, so nothing below this builder
|
|
149
106
|
* knows one exists; what survives into the document is the resolved record
|
|
@@ -164,46 +121,21 @@ export interface ShaderEffectOptions extends EffectOptions {
|
|
|
164
121
|
* The positional `[{ name, value }]` array still works; both are bound by
|
|
165
122
|
* name now, so the array's order no longer means anything.
|
|
166
123
|
*/
|
|
167
|
-
uniforms?:
|
|
168
|
-
/** 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. */
|
|
169
126
|
blendMode?: BlendMode;
|
|
127
|
+
/** How far past the node's box (logical px) a WGSL effect may draw. Default 0. */
|
|
128
|
+
reach?: number;
|
|
170
129
|
}
|
|
171
130
|
/** Coloured band around the node's silhouette. Scalar shorthand sets `width`. */
|
|
172
|
-
export
|
|
173
|
-
/** Band thickness in pixels (default 4). */
|
|
174
|
-
width?: number;
|
|
175
|
-
/** Band colour (default `'black'`). */
|
|
176
|
-
color?: Color;
|
|
177
|
-
/** Which side of the edge the band grows from (default `'outside'`). */
|
|
178
|
-
position?: OutlinePosition;
|
|
179
|
-
}
|
|
131
|
+
export type OutlineOptions = EffectOptionsOf<typeof outlineSpec.params>;
|
|
180
132
|
/**
|
|
181
133
|
* A shadow cast from the node's silhouette. Scalar shorthand sets `blur`, since
|
|
182
134
|
* softness is the knob a shadow is usually reached for by.
|
|
183
135
|
*/
|
|
184
|
-
export
|
|
185
|
-
/** Horizontal displacement in pixels (default 0). */
|
|
186
|
-
offsetX?: number;
|
|
187
|
-
/** Vertical displacement in pixels, positive being upward (default -8). */
|
|
188
|
-
offsetY?: number;
|
|
189
|
-
/** Softness in pixels, on a `blur` effect's scale (default 16). */
|
|
190
|
-
blur?: number;
|
|
191
|
-
/** Grows the silhouette before blurring, in pixels (default 0). */
|
|
192
|
-
spread?: number;
|
|
193
|
-
/** Shadow colour (default `'black'`). */
|
|
194
|
-
color?: Color;
|
|
195
|
-
}
|
|
136
|
+
export type DropShadowOptions = EffectOptionsOf<typeof dropShadowSpec.params>;
|
|
196
137
|
/** Darkened edges / lens falloff. Scalar shorthand sets `amount`. */
|
|
197
|
-
export
|
|
198
|
-
/** 0–1 tint strength at the edge (default 0.5). */
|
|
199
|
-
amount?: number;
|
|
200
|
-
/** 0–1 normalised radius where the falloff starts (default 0.75). */
|
|
201
|
-
radius?: number;
|
|
202
|
-
/** 0–1 ramp width; 0 is a hard ring (default 0.5). */
|
|
203
|
-
softness?: number;
|
|
204
|
-
/** Tint colour (default `'black'`). */
|
|
205
|
-
color?: Color;
|
|
206
|
-
}
|
|
138
|
+
export type VignetteOptions = EffectOptionsOf<typeof vignetteSpec.params>;
|
|
207
139
|
/** Film grain. Scalar shorthand sets `amount`. */
|
|
208
140
|
/**
|
|
209
141
|
* A 3D colour lookup table — see {@link LutEffect} for the table's layout and
|
|
@@ -212,108 +144,24 @@ export interface VignetteOptions extends EffectOptions {
|
|
|
212
144
|
* No scalar shorthand: the dominant argument is a whole cube, and a builder that
|
|
213
145
|
* took `Effects.lut(table)` would still need the size beside it to read it.
|
|
214
146
|
*/
|
|
215
|
-
export
|
|
216
|
-
|
|
217
|
-
table: Float32Array;
|
|
218
|
-
/** Entries per axis. */
|
|
219
|
-
size: number;
|
|
220
|
-
/** 0–1 mix against the ungraded colour (default 1 — the full look). */
|
|
221
|
-
amount?: number;
|
|
222
|
-
}
|
|
223
|
-
export interface GrainOptions extends EffectOptions {
|
|
224
|
-
/** 0–1 noise amplitude (default 0.25). */
|
|
225
|
-
amount?: number;
|
|
226
|
-
/** Grain cell size in pixels (default 1). */
|
|
227
|
-
size?: number;
|
|
228
|
-
/** Random field offset — animate it for frame-locked shimmer (default 0). */
|
|
229
|
-
seed?: number;
|
|
230
|
-
/** Re-seed every frame from elapsed time (default false). */
|
|
231
|
-
animated?: boolean;
|
|
232
|
-
/** Per-channel colour speckle instead of luminance noise (default false). */
|
|
233
|
-
colored?: boolean;
|
|
234
|
-
}
|
|
147
|
+
export type LutOptions = EffectOptionsOf<typeof lutSpec.params>;
|
|
148
|
+
export type GrainOptions = EffectOptionsOf<typeof grainSpec.params>;
|
|
235
149
|
/** Unsharp-mask sharpen. Scalar shorthand sets `amount`. */
|
|
236
|
-
export
|
|
237
|
-
/** Edge-contrast boost (default 1). */
|
|
238
|
-
amount?: number;
|
|
239
|
-
/** Radius of the blurred reference, in pixels (default 1). */
|
|
240
|
-
radius?: number;
|
|
241
|
-
}
|
|
150
|
+
export type SharpenOptions = EffectOptionsOf<typeof sharpenSpec.params>;
|
|
242
151
|
/** Edge detection. Scalar shorthand sets `strength`. */
|
|
243
|
-
export
|
|
244
|
-
/** Multiplier on the detected gradient (default 1). */
|
|
245
|
-
strength?: number;
|
|
246
|
-
/** Which operator measures the gradient (default `'sobel'`). */
|
|
247
|
-
kernel?: EdgeKernel;
|
|
248
|
-
/** Detect per RGB channel instead of on luminance (default false). */
|
|
249
|
-
colored?: boolean;
|
|
250
|
-
}
|
|
152
|
+
export type EdgesOptions = EffectOptionsOf<typeof edgesSpec.params>;
|
|
251
153
|
/** Two-tone luminance cut. Scalar shorthand sets `level`. */
|
|
252
|
-
export
|
|
253
|
-
/** 0–1 cut point (default 0.5). */
|
|
254
|
-
level?: number;
|
|
255
|
-
/** 0–1 ramp width around the cut (default 0.05 — just enough to anti-alias). */
|
|
256
|
-
smoothness?: number;
|
|
257
|
-
}
|
|
154
|
+
export type ThresholdOptions = EffectOptionsOf<typeof thresholdSpec.params>;
|
|
258
155
|
/** Zoom / spin blur about a point. Scalar shorthand sets `amount`. */
|
|
259
|
-
export
|
|
260
|
-
/** Smear length, 0–1 (default 0.5). */
|
|
261
|
-
amount?: number;
|
|
262
|
-
/** Radial rush (`'zoom'`) or rotational streak (`'spin'`) (default `'zoom'`). */
|
|
263
|
-
style?: RadialBlurStyle;
|
|
264
|
-
/** Blur centre in 0–1 layer coords (default middle). */
|
|
265
|
-
center?: Vector2;
|
|
266
|
-
/** Taps averaged per pixel (default 16, max 32). */
|
|
267
|
-
samples?: number;
|
|
268
|
-
}
|
|
156
|
+
export type RadialBlurOptions = EffectOptionsOf<typeof radialBlurSpec.params>;
|
|
269
157
|
/** Halftone print screen. Scalar shorthand sets `size`. */
|
|
270
|
-
export
|
|
271
|
-
/** Cell pitch in pixels (default 8). */
|
|
272
|
-
size?: number;
|
|
273
|
-
/** Screen rotation in degrees (default 45). */
|
|
274
|
-
angle?: number;
|
|
275
|
-
/** Mark drawn per cell (default `'dot'`). */
|
|
276
|
-
shape?: HalftoneShape;
|
|
277
|
-
/** Plates to screen into (default `'mono'`). */
|
|
278
|
-
separation?: HalftoneSeparation;
|
|
279
|
-
}
|
|
158
|
+
export type HalftoneOptions = EffectOptionsOf<typeof halftoneSpec.params>;
|
|
280
159
|
/** Ordered (Bayer) dithering. Scalar shorthand sets `levels`. */
|
|
281
|
-
export
|
|
282
|
-
/** Output tones per channel, ≥ 2 (default 2). */
|
|
283
|
-
levels?: number;
|
|
284
|
-
/**
|
|
285
|
-
* Threshold pattern (default `'bayer'`).
|
|
286
|
-
*
|
|
287
|
-
* `'bayer'` is the classic ordered matrix — a visible crosshatch, which is
|
|
288
|
-
* the retro look and also what can beat against the pixel grid at some
|
|
289
|
-
* `scale`s. `'blue'` is a void-and-cluster blue-noise field: same tone
|
|
290
|
-
* reproduction, no lattice, no moiré. Reach for `'blue'` when the dither
|
|
291
|
-
* should read as texture rather than as pattern.
|
|
292
|
-
*/
|
|
293
|
-
noise?: DitherNoise;
|
|
294
|
-
/** Bayer matrix size (default 4). Ignored when `noise` is `'blue'`. */
|
|
295
|
-
matrix?: DitherMatrix;
|
|
296
|
-
/** Pattern cell size in pixels (default 1). */
|
|
297
|
-
scale?: number;
|
|
298
|
-
/** Dither luminance to black and white (default false). */
|
|
299
|
-
monochrome?: boolean;
|
|
300
|
-
}
|
|
160
|
+
export type DitherOptions = EffectOptionsOf<typeof ditherSpec.params>;
|
|
301
161
|
/** Two-colour luminance ramp. Scalar shorthand sets `amount`. */
|
|
302
|
-
export
|
|
303
|
-
/** 0–1 blend from the original colours to the full ramp (default 1). */
|
|
304
|
-
amount?: number;
|
|
305
|
-
/** Colour the darkest tones map to (default `'black'`). */
|
|
306
|
-
shadows?: Color;
|
|
307
|
-
/** Colour the brightest tones map to (default `'white'`). */
|
|
308
|
-
highlights?: Color;
|
|
309
|
-
}
|
|
162
|
+
export type DuotoneOptions = EffectOptionsOf<typeof duotoneSpec.params>;
|
|
310
163
|
/** Tone curve through control points. */
|
|
311
|
-
export
|
|
312
|
-
/** Curve control points as `[input, output]` pairs in 0–1. */
|
|
313
|
-
points: [number, number][];
|
|
314
|
-
/** Channel(s) the curve applies to (default `'rgb'`). */
|
|
315
|
-
channel?: CurvesChannel;
|
|
316
|
-
}
|
|
164
|
+
export type CurvesOptions = EffectOptionsOf<typeof curvesSpec.params>;
|
|
317
165
|
/** Photographic grading. Every field is optional and defaults to neutral. */
|
|
318
166
|
export type ColorAdjustmentOptions = Omit<ColorAdjustmentEffect, 'type'> & EffectOptions;
|
|
319
167
|
/**
|
|
@@ -321,68 +169,18 @@ export type ColorAdjustmentOptions = Omit<ColorAdjustmentEffect, 'type'> & Effec
|
|
|
321
169
|
* blue apart horizontally by that many pixels and leaves green put — the
|
|
322
170
|
* everyday case. Name `red`/`green`/`blue` for full control.
|
|
323
171
|
*/
|
|
324
|
-
export
|
|
325
|
-
/** 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. */
|
|
326
174
|
amount?: number;
|
|
327
|
-
|
|
328
|
-
red?: Vector2;
|
|
329
|
-
/** Green plane offset in px. */
|
|
330
|
-
green?: Vector2;
|
|
331
|
-
/** Blue plane offset in px. Overrides `amount` for this channel. */
|
|
332
|
-
blue?: Vector2;
|
|
333
|
-
}
|
|
175
|
+
};
|
|
334
176
|
/** CRT scanlines. Scalar shorthand sets `darkness`. */
|
|
335
|
-
export
|
|
336
|
-
/** 0–1 how far the bands darken (default 0.5). */
|
|
337
|
-
darkness?: number;
|
|
338
|
-
/** Distance between band centres in px (default 4). */
|
|
339
|
-
spacing?: number;
|
|
340
|
-
/** 0–1 share of each period the dark band covers (default 0.5). */
|
|
341
|
-
thickness?: number;
|
|
342
|
-
/** Band offset in px — animate to roll the pattern (default 0). */
|
|
343
|
-
offset?: number;
|
|
344
|
-
/** Band angle in degrees; 0 = horizontal (default 0). */
|
|
345
|
-
angle?: number;
|
|
346
|
-
}
|
|
177
|
+
export type ScanlinesOptions = EffectOptionsOf<typeof scanlinesSpec.params>;
|
|
347
178
|
/** Datamosh-style band tearing. Scalar shorthand sets `amount`. */
|
|
348
|
-
export
|
|
349
|
-
/** Maximum displacement in px (default 20). */
|
|
350
|
-
amount?: number;
|
|
351
|
-
/** Band thickness in px (default 16). */
|
|
352
|
-
size?: number;
|
|
353
|
-
/** 0–1 fraction of bands that move at all (default 0.3). */
|
|
354
|
-
density?: number;
|
|
355
|
-
/** Random field offset — step it to jump between glitch states (default 0). */
|
|
356
|
-
seed?: number;
|
|
357
|
-
/** Which way bands slide (default `'x'`). */
|
|
358
|
-
axis?: EffectAxis;
|
|
359
|
-
}
|
|
179
|
+
export type BlockDisplaceOptions = EffectOptionsOf<typeof blockDisplaceSpec.params>;
|
|
360
180
|
/** ASCII art from a glyph grid. Scalar shorthand sets `size`. */
|
|
361
|
-
export
|
|
362
|
-
/** Cell size in pixels — the width of one character (default 12). */
|
|
363
|
-
size?: number;
|
|
364
|
-
/** A named ramp, or a custom string ordered most-ink-first (default `'standard'`). */
|
|
365
|
-
charset?: AsciiCharset | string;
|
|
366
|
-
/** Family the glyphs are baked in; a monospace face reads best (default `'monospace'`). */
|
|
367
|
-
fontFamily?: string;
|
|
368
|
-
/** Glyph colour when `colored` is false (default `'white'`). */
|
|
369
|
-
ink?: Color;
|
|
370
|
-
/** Colour behind the glyphs (default `'black'`; use `'transparent'` to overlay). */
|
|
371
|
-
background?: Color;
|
|
372
|
-
/** Tint each glyph with its own cell's colour instead of using `ink` (default false). */
|
|
373
|
-
colored?: boolean;
|
|
374
|
-
}
|
|
181
|
+
export type AsciiOptions = EffectOptionsOf<typeof asciiSpec.params>;
|
|
375
182
|
/** Anamorphic glare — a bright pass smeared along one axis. Scalar shorthand sets `intensity`. */
|
|
376
|
-
export
|
|
377
|
-
/** Additive multiplier for the streak pass (default 1). */
|
|
378
|
-
intensity?: number;
|
|
379
|
-
/** 0–1 luminance cutoff (default 0.7). */
|
|
380
|
-
threshold?: number;
|
|
381
|
-
/** Smear length in pixels (default 120). */
|
|
382
|
-
length?: number;
|
|
383
|
-
/** Smear axis in degrees; 0 = horizontal (default 0). */
|
|
384
|
-
angle?: number;
|
|
385
|
-
}
|
|
183
|
+
export type StreakOptions = EffectOptionsOf<typeof streakSpec.params>;
|
|
386
184
|
/**
|
|
387
185
|
* A glow — bright (or opaque) areas spread outward and composited back, with
|
|
388
186
|
* optional recolouring. Scalar shorthand sets `intensity`.
|
|
@@ -390,202 +188,37 @@ export interface StreakOptions extends EffectOptions {
|
|
|
390
188
|
* Unlike `bloom`, this spreads past the node's own box, chooses how the source
|
|
391
189
|
* composites against it, and can be coloured through a ramp.
|
|
392
190
|
*/
|
|
393
|
-
export
|
|
394
|
-
/** Additive multiplier for the glow pass (default 1). */
|
|
395
|
-
intensity?: number;
|
|
396
|
-
/** What decides a pixel's glow strength (default `'luminance'`). */
|
|
397
|
-
channel?: GlowChannel;
|
|
398
|
-
/** 0-1 luminance cutoff; read only when `channel` is `'luminance'` (default 0.5). */
|
|
399
|
-
threshold?: number;
|
|
400
|
-
/** Spread distance in pixels (default 25). */
|
|
401
|
-
radius?: number;
|
|
402
|
-
/** Dilation applied before the blur, in pixels — gives the glow a solid core (default 0). */
|
|
403
|
-
spread?: number;
|
|
404
|
-
/** Which way the glow spreads; `'x'`/`'y'` give anamorphic streaks (default `'both'`). */
|
|
405
|
-
axis?: EffectAxis;
|
|
406
|
-
/** Where the source layer sits relative to the glow (default `'behind'`). */
|
|
407
|
-
original?: GlowOriginal;
|
|
408
|
-
/** How the glow merges with the layer (default `'screen'`). */
|
|
409
|
-
blend?: BlendMode;
|
|
410
|
-
/** What the glow is coloured with (default `'none'`). */
|
|
411
|
-
tint?: GlowTint;
|
|
412
|
-
/** The glow's colour when `tint` is `'solid'` (default `'white'`). */
|
|
413
|
-
color?: Color;
|
|
414
|
-
/** Ramp colours when `tint` is `'ramp'`, parallel to `stops`. */
|
|
415
|
-
colors?: Color[];
|
|
416
|
-
/** Each ramp colour's position, 0-1 ascending (default evenly spaced). */
|
|
417
|
-
stops?: number[];
|
|
418
|
-
/** How the ramp repeats past one pass (default `'mirror'`). */
|
|
419
|
-
loopStyle?: GlowLoopStyle;
|
|
420
|
-
/** Ramp traversals across the glow's strength range (default 1). */
|
|
421
|
-
cycles?: number;
|
|
422
|
-
/** Offset along the ramp in degrees of one cycle; animate to move colour (default 0). */
|
|
423
|
-
phase?: number;
|
|
424
|
-
}
|
|
425
|
-
/** Light streaming from a point. Scalar shorthand sets `intensity`. */
|
|
426
|
-
export interface GodRaysOptions extends EffectOptions {
|
|
427
|
-
/** Additive multiplier for the ray pass (default 1). */
|
|
428
|
-
intensity?: number;
|
|
429
|
-
/** 0–1 luminance cutoff (default 0.6). */
|
|
430
|
-
threshold?: number;
|
|
431
|
-
/** Ray reach as a fraction of the distance to `center` (default 0.6). */
|
|
432
|
-
length?: number;
|
|
433
|
-
/** Light source in 0–1 layer coords (default middle). */
|
|
434
|
-
center?: Vector2;
|
|
435
|
-
/** Per-step falloff; below 1 the rays fade with distance (default 0.96). */
|
|
436
|
-
decay?: number;
|
|
437
|
-
/** Taps marched per pixel, 4–48 (default 32). */
|
|
438
|
-
samples?: number;
|
|
439
|
-
}
|
|
440
|
-
/** Image overlay for material looks. Scalar shorthand sets `amount`. */
|
|
441
|
-
export interface TextureOptions extends EffectOptions {
|
|
442
|
-
/** Image path, resolved like an image fill's `src`. */
|
|
443
|
-
src: string;
|
|
444
|
-
/** 0–1 blend strength (default 1). */
|
|
445
|
-
amount?: number;
|
|
446
|
-
/** How it composites (default `'multiply'`). */
|
|
447
|
-
blend?: BlendMode;
|
|
448
|
-
/** 1 covers the node once; 2 tiles it at half size (default 1). */
|
|
449
|
-
scale?: number;
|
|
450
|
-
/** Rotation in degrees (default 0). */
|
|
451
|
-
angle?: number;
|
|
452
|
-
}
|
|
191
|
+
export type GlowOptions = EffectOptionsOf<typeof glowSpec.params>;
|
|
453
192
|
/** Kuwahara brushwork. Scalar shorthand sets `radius`. */
|
|
454
|
-
export
|
|
455
|
-
/** Window radius in pixels — brush size, capped at 6 (default 3). */
|
|
456
|
-
radius?: number;
|
|
457
|
-
}
|
|
458
|
-
/**
|
|
459
|
-
* Displacement map. Scalar shorthand sets `amount` on both axes.
|
|
460
|
-
*
|
|
461
|
-
* `mode: 'backdrop'` displaces what is painted beneath the node instead — i.e.
|
|
462
|
-
* refraction through the node's silhouette.
|
|
463
|
-
*/
|
|
464
|
-
export interface DisplaceOptions extends EffectOptions {
|
|
465
|
-
/** Map image path, resolved like an image fill's `src`. */
|
|
466
|
-
src: string;
|
|
467
|
-
/** Displacement in px — a number for both axes, or per-axis via `{ x, y }` (default 20). */
|
|
468
|
-
amount?: number | Vector2;
|
|
469
|
-
/** Which channels of the map are read (default `'rg'`). */
|
|
470
|
-
channel?: DisplaceChannel;
|
|
471
|
-
/** The map value meaning "don't move" (default 0.5, what signed maps use). */
|
|
472
|
-
midpoint?: number;
|
|
473
|
-
/** 1 covers the node once; 2 tiles it at half size (default 1). */
|
|
474
|
-
scale?: number;
|
|
475
|
-
/** Map rotation in degrees (default 0). */
|
|
476
|
-
angle?: number;
|
|
477
|
-
}
|
|
193
|
+
export type OilPaintOptions = EffectOptionsOf<typeof oilPaintSpec.params>;
|
|
478
194
|
/** Sine warp. Scalar shorthand sets `amplitude` on the Y axis — the everyday ripple. */
|
|
479
|
-
export
|
|
480
|
-
/** Peak displacement in px — a number (Y only), or per-axis via `{ x, y }` (default 20). */
|
|
481
|
-
amplitude?: number | Vector2;
|
|
482
|
-
/** Distance between crests in px (default 120). */
|
|
483
|
-
wavelength?: number;
|
|
484
|
-
/** Phase in degrees; tween over 360 for one seamless loop (default 0). */
|
|
485
|
-
phase?: number;
|
|
486
|
-
/** Parallel bands or concentric rings (default `'linear'`). */
|
|
487
|
-
shape?: WaveShape;
|
|
488
|
-
/** Direction the crests advance along, in degrees (default 0). `'linear'` only. */
|
|
489
|
-
angle?: number;
|
|
490
|
-
/** Ring origin in 0–1 layer coords (default middle). `'radial'` only. */
|
|
491
|
-
center?: Vector2;
|
|
492
|
-
}
|
|
195
|
+
export type WaveOptions = EffectOptionsOf<typeof waveSpec.params>;
|
|
493
196
|
/** Twirl / swirl vortex. Scalar shorthand sets `angle`. */
|
|
494
|
-
export
|
|
495
|
-
/** Rotation at the centre in degrees (default 180). */
|
|
496
|
-
angle?: number;
|
|
497
|
-
/** 0–1 radius of influence (default 1 — the whole node). */
|
|
498
|
-
radius?: number;
|
|
499
|
-
/** Vortex centre in 0–1 layer coords (default middle). */
|
|
500
|
-
center?: Vector2;
|
|
501
|
-
}
|
|
197
|
+
export type TwirlOptions = EffectOptionsOf<typeof twirlSpec.params>;
|
|
502
198
|
/**
|
|
503
199
|
* Blur that ramps across the node. Scalar shorthand sets `radius`.
|
|
504
200
|
*
|
|
505
201
|
* `mode: 'backdrop'` gives the frosted panel whose blur fades out rather than
|
|
506
202
|
* ending at a hard edge.
|
|
507
203
|
*/
|
|
508
|
-
export
|
|
509
|
-
/** Blur spread in px at the far end of the ramp (default 24). */
|
|
510
|
-
radius?: number;
|
|
511
|
-
/** Blur spread in px at the near end of the ramp (default 0, i.e. sharp). */
|
|
512
|
-
startRadius?: number;
|
|
513
|
-
/** Ramp layout (default `'linear'`). */
|
|
514
|
-
shape?: ProgressiveBlurShape;
|
|
515
|
-
/** 0–1 where the blur starts building (default 0). */
|
|
516
|
-
start?: number;
|
|
517
|
-
/** 0–1 where it reaches `radius` (default 1). */
|
|
518
|
-
end?: number;
|
|
519
|
-
/** Ramp direction in degrees; 0 = left-to-right (default 90, i.e. downward). */
|
|
520
|
-
angle?: number;
|
|
521
|
-
/** Ramp origin in 0–1 layer coords (default middle). `'radial'` only. */
|
|
522
|
-
center?: Vector2;
|
|
523
|
-
/** Taps averaged at full radius, 2–32 (default 20). */
|
|
524
|
-
samples?: number;
|
|
525
|
-
}
|
|
204
|
+
export type ProgressiveBlurOptions = EffectOptionsOf<typeof progressiveBlurSpec.params>;
|
|
526
205
|
/** Mirrored wedges around a point. Scalar shorthand sets `segments`. */
|
|
527
|
-
export
|
|
528
|
-
/** Number of mirrored wedges; below 2 is a no-op (default 6). */
|
|
529
|
-
segments?: number;
|
|
530
|
-
/** Rotation of the pattern in degrees — animate to sweep the source (default 0). */
|
|
531
|
-
angle?: number;
|
|
532
|
-
/** Fold origin in 0–1 layer coords (default middle). */
|
|
533
|
-
center?: Vector2;
|
|
534
|
-
/** Radial offset of the sampled wedge (default 0). */
|
|
535
|
-
offset?: number;
|
|
536
|
-
/** 0–1 blend from the original to the folded pattern — the handle to ramp it on (default 1). */
|
|
537
|
-
amount?: number;
|
|
538
|
-
}
|
|
539
|
-
/** Motion trails from past frames. Scalar shorthand sets `echoes`. */
|
|
540
|
-
export interface TrailsOptions extends EffectOptions {
|
|
541
|
-
/** Past-frame taps drawn behind the current frame (default 6). */
|
|
542
|
-
echoes?: number;
|
|
543
|
-
/** Delay between taps in seconds (default 1 / 24). */
|
|
544
|
-
delay?: number;
|
|
545
|
-
/** Per-tap alpha multiplier (default 0.72). */
|
|
546
|
-
decay?: number;
|
|
547
|
-
/** How the taps composite (default `'screen'`). */
|
|
548
|
-
blend?: BlendMode;
|
|
549
|
-
}
|
|
206
|
+
export type KaleidoscopeOptions = EffectOptionsOf<typeof kaleidoscopeSpec.params>;
|
|
550
207
|
/**
|
|
551
|
-
*
|
|
208
|
+
* Figma's Glass over the backdrop. Scalar shorthand sets `refraction`.
|
|
552
209
|
*
|
|
553
|
-
*
|
|
554
|
-
*
|
|
555
|
-
*
|
|
556
|
-
* the light to `0°` at full intensity, matching Figma's own defaults, so a bare
|
|
557
|
-
* `Effects.glass()` is the effect as a designer coming from Figma expects it.
|
|
210
|
+
* Figma's fields, units and defaults (light `-45°` at 80, refraction 80, depth
|
|
211
|
+
* 20 px, dispersion 50, frost 4, splay 0), so a bare `Effects.glass()` is the
|
|
212
|
+
* glass Figma adds and values copied from a Figma file render the same.
|
|
558
213
|
*
|
|
559
214
|
* Defaults to `{ mode: 'backdrop' }`; there is nothing to refract in a node's
|
|
560
215
|
* own paint, so the foreground is a no-op.
|
|
561
216
|
*/
|
|
562
|
-
export
|
|
563
|
-
/** Direction the light arrives from, in degrees clockwise from the right (default 0). */
|
|
564
|
-
lightAngle?: number;
|
|
565
|
-
/** 0–100 brightness of the specular rim (default 100). */
|
|
566
|
-
lightIntensity?: number;
|
|
567
|
-
/** 0–100 sideways pull along the edge normal (default 100). */
|
|
568
|
-
refraction?: number;
|
|
569
|
-
/** 0–100 how far inward the bevel reaches (default 100). */
|
|
570
|
-
depth?: number;
|
|
571
|
-
/** 0–100 spread between the R/G/B samples (default 100). */
|
|
572
|
-
dispersion?: number;
|
|
573
|
-
/** 0–100 blend toward a blurred backdrop (default 100). */
|
|
574
|
-
frost?: number;
|
|
575
|
-
/** 0–100 spread of the highlight — 0 a glint, 100 a rim wash (default 100). */
|
|
576
|
-
splay?: number;
|
|
577
|
-
}
|
|
217
|
+
export type GlassOptions = EffectOptionsOf<typeof glassSpec.params>;
|
|
578
218
|
/** Colour-depth reduction. Scalar shorthand sets `bits`. */
|
|
579
|
-
export
|
|
580
|
-
/** Bits per channel when `palette` is `'none'`, 1–8 (default 3). */
|
|
581
|
-
bits?: number;
|
|
582
|
-
/** Fixed hardware palette to snap to (default `'none'`). */
|
|
583
|
-
palette?: BitCrushPalette;
|
|
584
|
-
/** 0–1 blend between original and crushed (default 1). */
|
|
585
|
-
amount?: number;
|
|
586
|
-
}
|
|
219
|
+
export type BitCrushOptions = EffectOptionsOf<typeof bitCrushSpec.params>;
|
|
587
220
|
/**
|
|
588
|
-
* Immutable, chainable list of
|
|
221
|
+
* Immutable, chainable list of node effects.
|
|
589
222
|
*
|
|
590
223
|
* Each builder method returns a new `EffectChain` with the effect appended,
|
|
591
224
|
* so chains are safe to share and branch.
|
|
@@ -596,8 +229,8 @@ export interface BitCrushOptions extends EffectOptions {
|
|
|
596
229
|
* node.effects = [...fx, { type: 'pixelate', ... }]; // spread into array
|
|
597
230
|
*/
|
|
598
231
|
export declare class EffectChain {
|
|
599
|
-
list:
|
|
600
|
-
constructor(list?:
|
|
232
|
+
list: NodeEffect[];
|
|
233
|
+
constructor(list?: NodeEffect[]);
|
|
601
234
|
private append;
|
|
602
235
|
/**
|
|
603
236
|
* Append a Gaussian blur. Pass `{ mode: "backdrop" }` to blur the content
|
|
@@ -773,15 +406,6 @@ export declare class EffectChain {
|
|
|
773
406
|
* the node instead of over a solid field.
|
|
774
407
|
*/
|
|
775
408
|
ascii(options?: number | AsciiOptions): EffectChain;
|
|
776
|
-
/**
|
|
777
|
-
* Append an image overlay — paper grain, canvas weave, fabric. The image is
|
|
778
|
-
* yours: drop it in the project's `public/` folder and name it the way an
|
|
779
|
-
* image fill would.
|
|
780
|
-
*
|
|
781
|
-
* A missing or not-yet-loaded image makes the effect a no-op, so a wrong
|
|
782
|
-
* path costs you the texture and nothing else.
|
|
783
|
-
*/
|
|
784
|
-
texture(options: TextureOptions): EffectChain;
|
|
785
409
|
/**
|
|
786
410
|
* Append Kuwahara brushwork — averages within a region but never across an
|
|
787
411
|
* edge, so flat areas smooth into strokes while boundaries stay crisp.
|
|
@@ -805,33 +429,11 @@ export declare class EffectChain {
|
|
|
805
429
|
*/
|
|
806
430
|
glow(options?: number | GlowOptions): EffectChain;
|
|
807
431
|
/**
|
|
808
|
-
* Append
|
|
809
|
-
*
|
|
810
|
-
|
|
811
|
-
godRays(options?: number | GodRaysOptions): EffectChain;
|
|
812
|
-
/**
|
|
813
|
-
* Append a custom SkSL shader. `mode` picks the layer it runs on — a
|
|
814
|
-
* foreground overlay blended with `blendMode`, or a backdrop shader that
|
|
815
|
-
* resamples `uniform shader u_backdrop`.
|
|
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'`).
|
|
816
435
|
*/
|
|
817
436
|
shader(options: ShaderEffectOptions): EffectChain;
|
|
818
|
-
/**
|
|
819
|
-
* @deprecated Use {@link EffectChain.shader}. `sksl` named the dialect; the
|
|
820
|
-
* effect is named for the paint it is the sibling of. Takes the source in
|
|
821
|
-
* `shader` rather than `source`, as it always did.
|
|
822
|
-
*/
|
|
823
|
-
sksl(options: Omit<ShaderEffectOptions, "source"> & {
|
|
824
|
-
shader: string;
|
|
825
|
-
}): EffectChain;
|
|
826
|
-
/**
|
|
827
|
-
* Append a displacement map — the content resampled at a position pushed
|
|
828
|
-
* around by a second image, rather than recoloured.
|
|
829
|
-
*
|
|
830
|
-
* With `{ mode: 'backdrop' }` the displacement runs on what is painted
|
|
831
|
-
* beneath the node and is clipped to its silhouette, which is refraction:
|
|
832
|
-
* the scene bends through the shape while the shape's own edges stay sharp.
|
|
833
|
-
*/
|
|
834
|
-
displace(options: DisplaceOptions): EffectChain;
|
|
835
437
|
/**
|
|
836
438
|
* Append a sine warp. Tween `phase` over 360 to make the wave travel — it
|
|
837
439
|
* wraps, so a linear tween loops seamlessly.
|
|
@@ -855,35 +457,28 @@ export declare class EffectChain {
|
|
|
855
457
|
*/
|
|
856
458
|
kaleidoscope(options?: number | KaleidoscopeOptions): EffectChain;
|
|
857
459
|
/**
|
|
858
|
-
* Append
|
|
859
|
-
*
|
|
860
|
-
* and refills after a backwards scrub; see {@link TrailsEffect}.
|
|
861
|
-
*/
|
|
862
|
-
trails(options?: number | TrailsOptions): EffectChain;
|
|
863
|
-
/**
|
|
864
|
-
* Append bevelled glass — the backdrop refracted, dispersed and frosted
|
|
865
|
-
* through the node's silhouette, with a specular rim along the bevel.
|
|
460
|
+
* Append Figma's Glass — the backdrop refracted, dispersed and frosted
|
|
461
|
+
* through a curved edge on the node's outline, with a rim of light.
|
|
866
462
|
*
|
|
867
463
|
* Like `magnify`, this reads what is painted *beneath* the node and is
|
|
868
|
-
* clipped to its outline, so the shape's own edges stay sharp.
|
|
869
|
-
*
|
|
870
|
-
*
|
|
871
|
-
* equally.
|
|
464
|
+
* clipped to its outline, so the shape's own edges stay sharp. It needs no
|
|
465
|
+
* map: the curve is derived from the outline itself, so it follows a
|
|
466
|
+
* rounded rect, an ellipse, a hand-drawn path or text equally.
|
|
872
467
|
*
|
|
873
468
|
* Defaults to `{ mode: 'backdrop' }`; pass `mode` explicitly to override.
|
|
874
469
|
*/
|
|
875
470
|
glass(options?: number | GlassOptions): EffectChain;
|
|
876
471
|
/** Allows spreading the chain into an array: `[...Effects.blur(5)]`. */
|
|
877
|
-
[Symbol.iterator](): Generator<
|
|
472
|
+
[Symbol.iterator](): Generator<NodeEffect, void, unknown>;
|
|
878
473
|
/** Serializes to the raw effect array so frameworks that call `toJSON` get a plain value. */
|
|
879
|
-
toJSON():
|
|
474
|
+
toJSON(): NodeEffect[];
|
|
880
475
|
}
|
|
881
476
|
/**
|
|
882
477
|
* Accepted shapes for a node's `effects` prop.
|
|
883
478
|
*
|
|
884
|
-
* Mirrors {@link Fill}: a single {@link
|
|
479
|
+
* Mirrors {@link Fill}: a single {@link NodeEffect}, an `EffectChain` builder
|
|
885
480
|
* result, or an array mixing effects and chains (each chain contributes all its
|
|
886
|
-
* effects in place). Already-resolved effects are themselves `
|
|
481
|
+
* effects in place). Already-resolved effects are themselves `NodeEffect`s, so
|
|
887
482
|
* a node's read-back `effects` can be assigned straight back.
|
|
888
483
|
*
|
|
889
484
|
* Effects.blur(8) // chain
|
|
@@ -891,7 +486,7 @@ export declare class EffectChain {
|
|
|
891
486
|
* [Effects.blur(8), { type: 'invert' }] // mixed array
|
|
892
487
|
* [...Effects.blur(8), grayscaleEffect]
|
|
893
488
|
*/
|
|
894
|
-
export type Effect =
|
|
489
|
+
export type Effect = NodeEffect | EffectChain | (NodeEffect | EffectChain)[];
|
|
895
490
|
/**
|
|
896
491
|
* Entry point for building effect chains fluently.
|
|
897
492
|
*
|
|
@@ -909,14 +504,14 @@ export type Effect = SceneEffect | EffectChain | (SceneEffect | EffectChain)[];
|
|
|
909
504
|
*/
|
|
910
505
|
export declare const Effects: EffectChain;
|
|
911
506
|
/**
|
|
912
|
-
* Normalises any {@link Effect} value to a plain `
|
|
507
|
+
* Normalises any {@link Effect} value to a plain `NodeEffect[]`.
|
|
913
508
|
* Used internally when reading props before rendering or interpolation.
|
|
914
509
|
*
|
|
915
510
|
* Chains used as array elements are flattened so each contributes its effects
|
|
916
511
|
* in place: `[Effects.blur(8), grayscaleEffect]` — as is the plain array a chain
|
|
917
512
|
* serializes to, which is how that value reads back out of a stored document.
|
|
918
513
|
*/
|
|
919
|
-
export declare function resolveChainEffects(effects: Effect | undefined):
|
|
514
|
+
export declare function resolveChainEffects(effects: Effect | undefined): NodeEffect[];
|
|
920
515
|
/** The effect-chain attribute's op set — the `effects` prop's resolve/lerp pair. */
|
|
921
|
-
export declare const effectsOps: AttributeOps<Effect,
|
|
516
|
+
export declare const effectsOps: AttributeOps<Effect, NodeEffect[]>;
|
|
922
517
|
//# sourceMappingURL=chain.d.ts.map
|