@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,249 +0,0 @@
|
|
|
1
|
-
import { linear } from "../../../tween/ease/constants.js";
|
|
2
|
-
import { lerpNumber } from "../../../tween/lerp.js";
|
|
3
|
-
const DEFAULT_EASE = linear();
|
|
4
|
-
/** Portable, immutable, fluent automation curve for one numeric param. */
|
|
5
|
-
export class Curve {
|
|
6
|
-
segments;
|
|
7
|
-
constructor(segments = []) {
|
|
8
|
-
this.segments = segments;
|
|
9
|
-
}
|
|
10
|
-
/** Append a ramp from `from` to `to` over `duration` seconds. */
|
|
11
|
-
ramp(from, to, duration, opts) {
|
|
12
|
-
return new Curve([...this.segments, { from, to, duration, ease: opts?.ease }]);
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Append a hold. With `duration` it sustains for that many seconds; bare
|
|
16
|
-
* `hold()` stretches to fill whatever time is left in the middle of the clip
|
|
17
|
-
* (only one auto-fill hold is allowed per curve).
|
|
18
|
-
*/
|
|
19
|
-
hold(duration) {
|
|
20
|
-
return new Curve([...this.segments, { duration }]);
|
|
21
|
-
}
|
|
22
|
-
/** Append a fade from 0 up over `duration` seconds, anchored at the clip start. */
|
|
23
|
-
fadeIn(duration, opts) {
|
|
24
|
-
return new Curve([...this.segments, { from: 0, to: 1, duration, ease: opts?.ease }]);
|
|
25
|
-
}
|
|
26
|
-
/** Append a fade down to 0 over `duration` seconds, anchored to the clip end. */
|
|
27
|
-
fadeOut(duration, opts) {
|
|
28
|
-
return new Curve([...this.segments, { to: 0, duration, ease: opts?.ease }]);
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Resolve relative segments into absolute (clip-relative) keyframes once the
|
|
32
|
-
* clip's duration is known.
|
|
33
|
-
*
|
|
34
|
-
* - Explicit segment durations are summed; a single bare `hold()` absorbs the
|
|
35
|
-
* leftover `clipDuration - sumOfExplicit` so fade-in/hold/fade-out auto-sizes.
|
|
36
|
-
* - The final segment's end lands exactly at `clipDuration` (end-anchor), which
|
|
37
|
-
* is what makes `fadeOut` "the last N seconds" without naming an anchor.
|
|
38
|
-
* - If explicit durations exceed `clipDuration`, the schedule is clamped to the
|
|
39
|
-
* clip (later segments may be squeezed to zero) and a dev warning is logged.
|
|
40
|
-
*
|
|
41
|
-
* @param defaultValue value used for an unresolved first `from` (the param's natural value).
|
|
42
|
-
*/
|
|
43
|
-
resolve(clipDuration, defaultValue) {
|
|
44
|
-
const segs = this.segments;
|
|
45
|
-
if (segs.length === 0)
|
|
46
|
-
return [];
|
|
47
|
-
// Guard a non-finite/negative clip length so a degenerate duration can never
|
|
48
|
-
// propagate NaN/Infinity into resolved keyframes (and then into AudioParams).
|
|
49
|
-
const clip = Number.isFinite(clipDuration) && clipDuration > 0 ? clipDuration : 0;
|
|
50
|
-
// Sum explicit durations; find a single auto-fill hold (duration undefined).
|
|
51
|
-
let explicit = 0;
|
|
52
|
-
let autoFillCount = 0;
|
|
53
|
-
for (const s of segs) {
|
|
54
|
-
if (s.duration === undefined)
|
|
55
|
-
autoFillCount++;
|
|
56
|
-
else
|
|
57
|
-
explicit += Math.max(0, s.duration);
|
|
58
|
-
}
|
|
59
|
-
if (autoFillCount > 1 && process.env.NODE_ENV !== "production") {
|
|
60
|
-
console.warn(`[motion-script] Curve has ${autoFillCount} auto-fill hold()s; only the first absorbs leftover time, the rest are zero-length.`);
|
|
61
|
-
}
|
|
62
|
-
if (explicit > clip && process.env.NODE_ENV !== "production") {
|
|
63
|
-
console.warn(`[motion-script] Curve segments total ${explicit.toFixed(3)}s but the clip is only ${clip.toFixed(3)}s; clamping to the clip.`);
|
|
64
|
-
}
|
|
65
|
-
const slack = Math.max(0, clip - explicit);
|
|
66
|
-
// Where does the slack go so the LAST segment always lands on the clip end?
|
|
67
|
-
// - An explicit auto-fill hold() owns it (its index absorbs `slack`).
|
|
68
|
-
// - Otherwise insert it implicitly just before the final segment, so a
|
|
69
|
-
// trailing fadeOut/ramp is end-anchored ("the last N seconds") without the
|
|
70
|
-
// author having to type hold(). With no slack, nothing is inserted.
|
|
71
|
-
const autoFillIndex = autoFillCount > 0
|
|
72
|
-
? segs.findIndex((s) => s.duration === undefined)
|
|
73
|
-
: (slack > 0 ? segs.length - 1 : -1);
|
|
74
|
-
const out = [];
|
|
75
|
-
let cursor = 0;
|
|
76
|
-
let prevValue = defaultValue;
|
|
77
|
-
for (let i = 0; i < segs.length; i++) {
|
|
78
|
-
const s = segs[i];
|
|
79
|
-
// Insert the implicit end-anchoring gap before the final segment.
|
|
80
|
-
if (autoFillCount === 0 && i === autoFillIndex && slack > 0) {
|
|
81
|
-
const gapStart = Math.min(cursor, clip);
|
|
82
|
-
const gapEnd = Math.min(cursor + slack, clip);
|
|
83
|
-
out.push({ startTime: gapStart, endTime: gapEnd, from: prevValue, to: prevValue, ease: DEFAULT_EASE, isLinear: true });
|
|
84
|
-
cursor += slack;
|
|
85
|
-
}
|
|
86
|
-
let dur;
|
|
87
|
-
if (s.duration === undefined) {
|
|
88
|
-
// Only the first auto-fill hold absorbs slack; any extras are zero.
|
|
89
|
-
dur = i === autoFillIndex ? slack : 0;
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
dur = Math.max(0, s.duration);
|
|
93
|
-
}
|
|
94
|
-
const from = s.from ?? prevValue;
|
|
95
|
-
// `to === undefined` is a hold: stay at `from`.
|
|
96
|
-
const to = s.to ?? from;
|
|
97
|
-
const startTime = Math.min(cursor, clip);
|
|
98
|
-
const endTime = Math.min(cursor + dur, clip);
|
|
99
|
-
const ease = s.ease ?? DEFAULT_EASE;
|
|
100
|
-
out.push({ startTime, endTime, from, to, ease, isLinear: ease === DEFAULT_EASE });
|
|
101
|
-
cursor += dur;
|
|
102
|
-
prevValue = to;
|
|
103
|
-
}
|
|
104
|
-
return out;
|
|
105
|
-
}
|
|
106
|
-
/** Sample the curve's value at relative time `t` seconds (for a known clip duration). */
|
|
107
|
-
sampleAt(t, clipDuration, defaultValue) {
|
|
108
|
-
const resolved = this.resolve(clipDuration, defaultValue);
|
|
109
|
-
if (resolved.length === 0)
|
|
110
|
-
return defaultValue;
|
|
111
|
-
if (t <= resolved[0].startTime)
|
|
112
|
-
return resolved[0].from;
|
|
113
|
-
for (const seg of resolved) {
|
|
114
|
-
if (t >= seg.startTime && t <= seg.endTime) {
|
|
115
|
-
const span = seg.endTime - seg.startTime;
|
|
116
|
-
const local = span > 0 ? (t - seg.startTime) / span : 1;
|
|
117
|
-
return lerpNumber(seg.from, seg.to, seg.ease(local));
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
return resolved[resolved.length - 1].to;
|
|
121
|
-
}
|
|
122
|
-
/** The curve's value at t=0 — its constant fallback for static contexts. */
|
|
123
|
-
staticValue(defaultValue) {
|
|
124
|
-
const first = this.segments[0];
|
|
125
|
-
return first?.from ?? defaultValue;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
// ─── Free-function constructors (each returns a one-segment Curve, so they chain) ─
|
|
129
|
-
/** A ramp from `from` to `to` over `duration` seconds. */
|
|
130
|
-
export function ramp(from, to, duration, opts) {
|
|
131
|
-
return new Curve().ramp(from, to, duration, opts);
|
|
132
|
-
}
|
|
133
|
-
/** A hold; bare `hold()` auto-fills the middle of the clip. */
|
|
134
|
-
export function hold(duration) {
|
|
135
|
-
return new Curve().hold(duration);
|
|
136
|
-
}
|
|
137
|
-
/** A fade from 0 up over `duration` seconds, anchored at the clip start. */
|
|
138
|
-
export function fadeIn(duration, opts) {
|
|
139
|
-
return new Curve().fadeIn(duration, opts);
|
|
140
|
-
}
|
|
141
|
-
/** A fade down to 0 over `duration` seconds, anchored to the clip end. */
|
|
142
|
-
export function fadeOut(duration, opts) {
|
|
143
|
-
return new Curve().fadeOut(duration, opts);
|
|
144
|
-
}
|
|
145
|
-
/** Type guard: is this param a time-varying curve? */
|
|
146
|
-
export function isCurve(p) {
|
|
147
|
-
return p instanceof Curve;
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* The constant value of a param for static contexts (the number itself, or a
|
|
151
|
-
* curve's t=0 value). Used wherever a single representative number is needed
|
|
152
|
-
* (e.g. timeline math, equality fast paths).
|
|
153
|
-
*/
|
|
154
|
-
export function staticValue(p, fallback = 0) {
|
|
155
|
-
return isCurve(p) ? p.staticValue(fallback) : p;
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* Deterministic string key for a param, including a curve's full segment shape.
|
|
159
|
-
* Used to detect when a filter param actually changed (so playback re-schedules
|
|
160
|
-
* the source) — two curves with identical segments produce the same key.
|
|
161
|
-
*/
|
|
162
|
-
export function paramKey(p) {
|
|
163
|
-
if (p === undefined)
|
|
164
|
-
return "_";
|
|
165
|
-
if (!isCurve(p))
|
|
166
|
-
return String(p);
|
|
167
|
-
return "c[" + p.segments.map((s) => `${s.from ?? "_"},${s.to ?? "_"},${s.duration ?? "_"},${s.ease?.name ?? "lin"}`).join(";") + "]";
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* Interpolate between two params at progress `t`. Two numbers lerp; if either is
|
|
171
|
-
* a curve, hard-cut at t=0.5 (curve↔curve interpolation is out of scope — this
|
|
172
|
-
* only affects crossfades between two *different* filter chains, which is rare).
|
|
173
|
-
*/
|
|
174
|
-
export function lerpParam(from, to, t) {
|
|
175
|
-
if (typeof from === "number" && typeof to === "number")
|
|
176
|
-
return lerpNumber(from, to, t);
|
|
177
|
-
return t < 0.5 ? from : to;
|
|
178
|
-
}
|
|
179
|
-
/** The audio-param attribute's op set: resolve is the identity, lerp hard-cuts
|
|
180
|
-
* between curves (numbers lerp) — see {@link lerpParam}. */
|
|
181
|
-
export const audioParamOps = {
|
|
182
|
-
resolve: (value) => value,
|
|
183
|
-
lerp: lerpParam,
|
|
184
|
-
};
|
|
185
|
-
/** Param equality: numeric compare, or reference identity for curves. */
|
|
186
|
-
export function equalsParam(a, b) {
|
|
187
|
-
if (a === b)
|
|
188
|
-
return true;
|
|
189
|
-
if (typeof a === "number" && typeof b === "number")
|
|
190
|
-
return a === b;
|
|
191
|
-
// Curves: reference identity (portable curves are shared values, not rebuilt
|
|
192
|
-
// per-frame). Structural equality is unnecessary for the equals() fast path.
|
|
193
|
-
return false;
|
|
194
|
-
}
|
|
195
|
-
// ─── Speed integration (shared by core timeline math and the renderer) ──────────
|
|
196
|
-
/** Default sampling step (seconds) for numeric speed integration. */
|
|
197
|
-
const INTEGRATION_STEP = 0.001;
|
|
198
|
-
/**
|
|
199
|
-
* Scene-time duration consumed by playing the source under a (possibly time-varying)
|
|
200
|
-
* speed curve: `∫₀^upper 1/speed(τ) dτ`.
|
|
201
|
-
*
|
|
202
|
-
* The speed curve is authored over the **full** `sourceLength` (its segment times
|
|
203
|
-
* are seconds from the clip's source start), so it is always resolved against
|
|
204
|
-
* `sourceLength`; `upper` is just the integration bound (defaults to the whole
|
|
205
|
-
* source). A slower instant (speed < 1) consumes *more* scene time. Sampled at
|
|
206
|
-
* {@link INTEGRATION_STEP}; speed is clamped to a tiny positive floor so a
|
|
207
|
-
* zero/negative speed can't blow up the integral.
|
|
208
|
-
*
|
|
209
|
-
* Use this in BOTH the core scene-duration math and the cross-scene end resolution
|
|
210
|
-
* so the timeline reserves exactly the span the renderer plays.
|
|
211
|
-
*/
|
|
212
|
-
export function integrateSpeedToSceneTime(speed, sourceLength, upper = sourceLength, step = INTEGRATION_STEP) {
|
|
213
|
-
const end = Math.min(upper, sourceLength);
|
|
214
|
-
if (end <= 0)
|
|
215
|
-
return 0;
|
|
216
|
-
let sceneTime = 0;
|
|
217
|
-
for (let tau = 0; tau < end; tau += step) {
|
|
218
|
-
const dt = Math.min(step, end - tau);
|
|
219
|
-
const v = Math.max(1e-6, speed.sampleAt(tau + dt / 2, sourceLength, 1));
|
|
220
|
-
sceneTime += dt / v;
|
|
221
|
-
}
|
|
222
|
-
return sceneTime;
|
|
223
|
-
}
|
|
224
|
-
/**
|
|
225
|
-
* Inverse of {@link integrateSpeedToSceneTime}: the source-time offset reached
|
|
226
|
-
* after `sceneElapsed` seconds of scene time under the speed curve. This is what a
|
|
227
|
-
* mid-clip seek needs to compute the correct buffer offset for a speed-curved clip.
|
|
228
|
-
* The curve is always resolved against the full `sourceLength`.
|
|
229
|
-
*/
|
|
230
|
-
export function sourceTimeAtSceneElapsed(speed, sourceLength, sceneElapsed, step = INTEGRATION_STEP) {
|
|
231
|
-
if (sceneElapsed <= 0)
|
|
232
|
-
return 0;
|
|
233
|
-
let scene = 0;
|
|
234
|
-
let tau = 0;
|
|
235
|
-
while (tau < sourceLength) {
|
|
236
|
-
const dt = Math.min(step, sourceLength - tau);
|
|
237
|
-
const v = Math.max(1e-6, speed.sampleAt(tau + dt / 2, sourceLength, 1));
|
|
238
|
-
const sceneStep = dt / v;
|
|
239
|
-
if (scene + sceneStep >= sceneElapsed) {
|
|
240
|
-
// Linear interpolation within this step for sub-step accuracy.
|
|
241
|
-
const frac = sceneStep > 0 ? (sceneElapsed - scene) / sceneStep : 0;
|
|
242
|
-
return tau + dt * frac;
|
|
243
|
-
}
|
|
244
|
-
scene += sceneStep;
|
|
245
|
-
tau += dt;
|
|
246
|
-
}
|
|
247
|
-
return sourceLength;
|
|
248
|
-
}
|
|
249
|
-
//# sourceMappingURL=curve.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"curve.js","sourceRoot":"","sources":["../../../../src/attributes/audio/filters/curve.ts"],"names":[],"mappings":"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","sourcesContent":["import { EasingFunction } from \"@/tween/ease/type\";\nimport { linear } from \"@/tween/ease/constants\";\nimport { lerpNumber } from \"@/tween/lerp\";\nimport type { AttributeOps } from \"@/attributes/shared/operators\";\n\nconst DEFAULT_EASE = linear();\n\n/**\n * Time-varying automation for a single numeric filter param.\n *\n * A {@link Curve} is a portable, immutable list of {@link CurveSegment}s described\n * in **relative** time (seconds from the clip's start, with the final segment\n * anchored to the clip's end). It references no absolute scene time and no\n * external signal, so the same curve can be applied to any clip of any length:\n *\n * @example\n * const swell = ramp(0, 1, 0.5).hold().ramp(1, 0, 1); // up | auto-hold | down\n * AudioFilters.volume(swell).speed(swell); // reusable across params and clips\n *\n * Segments chain fluently (`ramp().hold().ramp()`) — that *is* sequencing; there\n * is intentionally no `seq`/`par`. Parallelism is just multiple filters in a chain.\n */\n\n/** A single automation segment in relative time. */\nexport interface CurveSegment {\n /**\n * Start value. `undefined` means \"continue from the previous segment's end\"\n * (or, for the first segment, the param's natural/current value — see\n * {@link fadeIn}, which leaves `from` resolved to 0 explicitly).\n */\n from?: number;\n /** End value. `undefined` for a hold (stays at the resolved `from`). */\n to?: number;\n /**\n * Length in **seconds**. `undefined` only for a bare {@link hold} that\n * auto-fills the remaining middle of the clip.\n */\n duration?: number;\n /** Segment easing; defaults to {@link linear}. */\n ease?: EasingFunction;\n}\n\n/** A segment resolved against a concrete clip duration: absolute relative-time keyframe pair. */\nexport interface ResolvedSegment {\n /** Segment start, seconds from clip start. */\n startTime: number;\n /** Segment end, seconds from clip start. */\n endTime: number;\n from: number;\n to: number;\n ease: EasingFunction;\n /** True when `ease` is the identity {@link linear} — lets the renderer use a cheap `linearRamp`. */\n isLinear: boolean;\n}\n\n/** Portable, immutable, fluent automation curve for one numeric param. */\nexport class Curve {\n constructor(public readonly segments: readonly CurveSegment[] = []) { }\n\n /** Append a ramp from `from` to `to` over `duration` seconds. */\n ramp(from: number, to: number, duration: number, opts?: { ease?: EasingFunction }): Curve {\n return new Curve([...this.segments, { from, to, duration, ease: opts?.ease }]);\n }\n\n /**\n * Append a hold. With `duration` it sustains for that many seconds; bare\n * `hold()` stretches to fill whatever time is left in the middle of the clip\n * (only one auto-fill hold is allowed per curve).\n */\n hold(duration?: number): Curve {\n return new Curve([...this.segments, { duration }]);\n }\n\n /** Append a fade from 0 up over `duration` seconds, anchored at the clip start. */\n fadeIn(duration: number, opts?: { ease?: EasingFunction }): Curve {\n return new Curve([...this.segments, { from: 0, to: 1, duration, ease: opts?.ease }]);\n }\n\n /** Append a fade down to 0 over `duration` seconds, anchored to the clip end. */\n fadeOut(duration: number, opts?: { ease?: EasingFunction }): Curve {\n return new Curve([...this.segments, { to: 0, duration, ease: opts?.ease }]);\n }\n\n /**\n * Resolve relative segments into absolute (clip-relative) keyframes once the\n * clip's duration is known.\n *\n * - Explicit segment durations are summed; a single bare `hold()` absorbs the\n * leftover `clipDuration - sumOfExplicit` so fade-in/hold/fade-out auto-sizes.\n * - The final segment's end lands exactly at `clipDuration` (end-anchor), which\n * is what makes `fadeOut` \"the last N seconds\" without naming an anchor.\n * - If explicit durations exceed `clipDuration`, the schedule is clamped to the\n * clip (later segments may be squeezed to zero) and a dev warning is logged.\n *\n * @param defaultValue value used for an unresolved first `from` (the param's natural value).\n */\n resolve(clipDuration: number, defaultValue: number): ResolvedSegment[] {\n const segs = this.segments;\n if (segs.length === 0) return [];\n\n // Guard a non-finite/negative clip length so a degenerate duration can never\n // propagate NaN/Infinity into resolved keyframes (and then into AudioParams).\n const clip = Number.isFinite(clipDuration) && clipDuration > 0 ? clipDuration : 0;\n\n // Sum explicit durations; find a single auto-fill hold (duration undefined).\n let explicit = 0;\n let autoFillCount = 0;\n for (const s of segs) {\n if (s.duration === undefined) autoFillCount++;\n else explicit += Math.max(0, s.duration);\n }\n if (autoFillCount > 1 && process.env.NODE_ENV !== \"production\") {\n console.warn(\n `[motion-script] Curve has ${autoFillCount} auto-fill hold()s; only the first absorbs leftover time, the rest are zero-length.`,\n );\n }\n if (explicit > clip && process.env.NODE_ENV !== \"production\") {\n console.warn(\n `[motion-script] Curve segments total ${explicit.toFixed(3)}s but the clip is only ${clip.toFixed(3)}s; clamping to the clip.`,\n );\n }\n\n const slack = Math.max(0, clip - explicit);\n\n // Where does the slack go so the LAST segment always lands on the clip end?\n // - An explicit auto-fill hold() owns it (its index absorbs `slack`).\n // - Otherwise insert it implicitly just before the final segment, so a\n // trailing fadeOut/ramp is end-anchored (\"the last N seconds\") without the\n // author having to type hold(). With no slack, nothing is inserted.\n const autoFillIndex = autoFillCount > 0\n ? segs.findIndex((s) => s.duration === undefined)\n : (slack > 0 ? segs.length - 1 : -1);\n\n const out: ResolvedSegment[] = [];\n let cursor = 0;\n let prevValue = defaultValue;\n\n for (let i = 0; i < segs.length; i++) {\n const s = segs[i];\n\n // Insert the implicit end-anchoring gap before the final segment.\n if (autoFillCount === 0 && i === autoFillIndex && slack > 0) {\n const gapStart = Math.min(cursor, clip);\n const gapEnd = Math.min(cursor + slack, clip);\n out.push({ startTime: gapStart, endTime: gapEnd, from: prevValue, to: prevValue, ease: DEFAULT_EASE, isLinear: true });\n cursor += slack;\n }\n\n let dur: number;\n if (s.duration === undefined) {\n // Only the first auto-fill hold absorbs slack; any extras are zero.\n dur = i === autoFillIndex ? slack : 0;\n } else {\n dur = Math.max(0, s.duration);\n }\n\n const from = s.from ?? prevValue;\n // `to === undefined` is a hold: stay at `from`.\n const to = s.to ?? from;\n\n const startTime = Math.min(cursor, clip);\n const endTime = Math.min(cursor + dur, clip);\n const ease = s.ease ?? DEFAULT_EASE;\n out.push({ startTime, endTime, from, to, ease, isLinear: ease === DEFAULT_EASE });\n\n cursor += dur;\n prevValue = to;\n }\n\n return out;\n }\n\n /** Sample the curve's value at relative time `t` seconds (for a known clip duration). */\n sampleAt(t: number, clipDuration: number, defaultValue: number): number {\n const resolved = this.resolve(clipDuration, defaultValue);\n if (resolved.length === 0) return defaultValue;\n if (t <= resolved[0].startTime) return resolved[0].from;\n for (const seg of resolved) {\n if (t >= seg.startTime && t <= seg.endTime) {\n const span = seg.endTime - seg.startTime;\n const local = span > 0 ? (t - seg.startTime) / span : 1;\n return lerpNumber(seg.from, seg.to, seg.ease(local));\n }\n }\n return resolved[resolved.length - 1].to;\n }\n\n /** The curve's value at t=0 — its constant fallback for static contexts. */\n staticValue(defaultValue: number): number {\n const first = this.segments[0];\n return first?.from ?? defaultValue;\n }\n}\n\n// ─── Free-function constructors (each returns a one-segment Curve, so they chain) ─\n\n/** A ramp from `from` to `to` over `duration` seconds. */\nexport function ramp(from: number, to: number, duration: number, opts?: { ease?: EasingFunction }): Curve {\n return new Curve().ramp(from, to, duration, opts);\n}\n\n/** A hold; bare `hold()` auto-fills the middle of the clip. */\nexport function hold(duration?: number): Curve {\n return new Curve().hold(duration);\n}\n\n/** A fade from 0 up over `duration` seconds, anchored at the clip start. */\nexport function fadeIn(duration: number, opts?: { ease?: EasingFunction }): Curve {\n return new Curve().fadeIn(duration, opts);\n}\n\n/** A fade down to 0 over `duration` seconds, anchored to the clip end. */\nexport function fadeOut(duration: number, opts?: { ease?: EasingFunction }): Curve {\n return new Curve().fadeOut(duration, opts);\n}\n\n// ─── Param type & helpers ──────────────────────────────────────────────────────\n\n/** A filter param: a constant number, or a time-varying {@link Curve}. */\nexport type Param = number | Curve;\n\n/** Type guard: is this param a time-varying curve? */\nexport function isCurve(p: Param | undefined): p is Curve {\n return p instanceof Curve;\n}\n\n/**\n * The constant value of a param for static contexts (the number itself, or a\n * curve's t=0 value). Used wherever a single representative number is needed\n * (e.g. timeline math, equality fast paths).\n */\nexport function staticValue(p: Param, fallback = 0): number {\n return isCurve(p) ? p.staticValue(fallback) : p;\n}\n\n/**\n * Deterministic string key for a param, including a curve's full segment shape.\n * Used to detect when a filter param actually changed (so playback re-schedules\n * the source) — two curves with identical segments produce the same key.\n */\nexport function paramKey(p: Param | undefined): string {\n if (p === undefined) return \"_\";\n if (!isCurve(p)) return String(p);\n return \"c[\" + p.segments.map((s) =>\n `${s.from ?? \"_\"},${s.to ?? \"_\"},${s.duration ?? \"_\"},${s.ease?.name ?? \"lin\"}`,\n ).join(\";\") + \"]\";\n}\n\n/**\n * Interpolate between two params at progress `t`. Two numbers lerp; if either is\n * a curve, hard-cut at t=0.5 (curve↔curve interpolation is out of scope — this\n * only affects crossfades between two *different* filter chains, which is rare).\n */\nexport function lerpParam(from: Param, to: Param, t: number): Param {\n if (typeof from === \"number\" && typeof to === \"number\") return lerpNumber(from, to, t);\n return t < 0.5 ? from : to;\n}\n\n/** The audio-param attribute's op set: resolve is the identity, lerp hard-cuts\n * between curves (numbers lerp) — see {@link lerpParam}. */\nexport const audioParamOps: AttributeOps<Param, Param> = {\n resolve: (value) => value,\n lerp: lerpParam,\n};\n\n/** Param equality: numeric compare, or reference identity for curves. */\nexport function equalsParam(a: Param | undefined, b: Param | undefined): boolean {\n if (a === b) return true;\n if (typeof a === \"number\" && typeof b === \"number\") return a === b;\n // Curves: reference identity (portable curves are shared values, not rebuilt\n // per-frame). Structural equality is unnecessary for the equals() fast path.\n return false;\n}\n\n// ─── Speed integration (shared by core timeline math and the renderer) ──────────\n\n/** Default sampling step (seconds) for numeric speed integration. */\nconst INTEGRATION_STEP = 0.001;\n\n/**\n * Scene-time duration consumed by playing the source under a (possibly time-varying)\n * speed curve: `∫₀^upper 1/speed(τ) dτ`.\n *\n * The speed curve is authored over the **full** `sourceLength` (its segment times\n * are seconds from the clip's source start), so it is always resolved against\n * `sourceLength`; `upper` is just the integration bound (defaults to the whole\n * source). A slower instant (speed < 1) consumes *more* scene time. Sampled at\n * {@link INTEGRATION_STEP}; speed is clamped to a tiny positive floor so a\n * zero/negative speed can't blow up the integral.\n *\n * Use this in BOTH the core scene-duration math and the cross-scene end resolution\n * so the timeline reserves exactly the span the renderer plays.\n */\nexport function integrateSpeedToSceneTime(\n speed: Curve,\n sourceLength: number,\n upper: number = sourceLength,\n step = INTEGRATION_STEP,\n): number {\n const end = Math.min(upper, sourceLength);\n if (end <= 0) return 0;\n let sceneTime = 0;\n for (let tau = 0; tau < end; tau += step) {\n const dt = Math.min(step, end - tau);\n const v = Math.max(1e-6, speed.sampleAt(tau + dt / 2, sourceLength, 1));\n sceneTime += dt / v;\n }\n return sceneTime;\n}\n\n/**\n * Inverse of {@link integrateSpeedToSceneTime}: the source-time offset reached\n * after `sceneElapsed` seconds of scene time under the speed curve. This is what a\n * mid-clip seek needs to compute the correct buffer offset for a speed-curved clip.\n * The curve is always resolved against the full `sourceLength`.\n */\nexport function sourceTimeAtSceneElapsed(\n speed: Curve,\n sourceLength: number,\n sceneElapsed: number,\n step = INTEGRATION_STEP,\n): number {\n if (sceneElapsed <= 0) return 0;\n let scene = 0;\n let tau = 0;\n while (tau < sourceLength) {\n const dt = Math.min(step, sourceLength - tau);\n const v = Math.max(1e-6, speed.sampleAt(tau + dt / 2, sourceLength, 1));\n const sceneStep = dt / v;\n if (scene + sceneStep >= sceneElapsed) {\n // Linear interpolation within this step for sub-step accuracy.\n const frac = sceneStep > 0 ? (sceneElapsed - scene) / sceneStep : 0;\n return tau + dt * frac;\n }\n scene += sceneStep;\n tau += dt;\n }\n return sourceLength;\n}\n"]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { AudioFilterData } from "../registry.js";
|
|
2
|
-
import { Param } from "../curve.js";
|
|
3
|
-
/** Adds a delayed, fading repeat of the signal (a feedback echo / simple delay). */
|
|
4
|
-
export interface EchoFilter {
|
|
5
|
-
type: 'echo';
|
|
6
|
-
/** Delay before the first repeat, in seconds. May be a time-varying curve. */
|
|
7
|
-
delay: Param;
|
|
8
|
-
/** Feedback amount, 0–<1. Each repeat is scaled by this; higher = more repeats. May be a time-varying curve. */
|
|
9
|
-
feedback: Param;
|
|
10
|
-
/** Wet/dry mix, 0–1. 0 = dry only, 1 = full wet. Default 0.5. May be a time-varying curve. */
|
|
11
|
-
mix?: Param;
|
|
12
|
-
}
|
|
13
|
-
export declare const echoFilter: AudioFilterData<EchoFilter>;
|
|
14
|
-
//# sourceMappingURL=echo.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"echo.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/audio/filters/implementations/echo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,KAAK,EAA0B,MAAM,UAAU,CAAC;AAEzD,oFAAoF;AACpF,MAAM,WAAW,UAAU;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,8EAA8E;IAC9E,KAAK,EAAE,KAAK,CAAC;IACb,gHAAgH;IAChH,QAAQ,EAAE,KAAK,CAAC;IAChB,8FAA8F;IAC9F,GAAG,CAAC,EAAE,KAAK,CAAC;CACf;AAED,eAAO,MAAM,UAAU,EAAE,eAAe,CAAC,UAAU,CASlD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"echo.js","sourceRoot":"","sources":["../../../../../src/attributes/audio/filters/implementations/echo.ts"],"names":[],"mappings":"AACA,OAAO,EAAS,SAAS,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAazD,MAAM,CAAC,MAAM,UAAU,GAAgC;IACnD,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QACpB,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC;QACzC,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC;QAClD,GAAG,EAAE,SAAS,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,EAAE,EAAE,CAAC,GAAG,IAAI,GAAG,EAAE,CAAC,CAAC;KACpD,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CACb,WAAW,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,EAAE,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC;CACtH,CAAC","sourcesContent":["import type { AudioFilterData } from \"../registry\";\nimport { Param, lerpParam, equalsParam } from \"../curve\";\n\n/** Adds a delayed, fading repeat of the signal (a feedback echo / simple delay). */\nexport interface EchoFilter {\n type: 'echo';\n /** Delay before the first repeat, in seconds. May be a time-varying curve. */\n delay: Param;\n /** Feedback amount, 0–<1. Each repeat is scaled by this; higher = more repeats. May be a time-varying curve. */\n feedback: Param;\n /** Wet/dry mix, 0–1. 0 = dry only, 1 = full wet. Default 0.5. May be a time-varying curve. */\n mix?: Param;\n}\n\nexport const echoFilter: AudioFilterData<EchoFilter> = {\n lerp: (from, to, t) => ({\n type: \"echo\",\n delay: lerpParam(from.delay, to.delay, t),\n feedback: lerpParam(from.feedback, to.feedback, t),\n mix: lerpParam(from.mix ?? 0.5, to.mix ?? 0.5, t),\n }),\n equals: (a, b) =>\n equalsParam(a.delay, b.delay) && equalsParam(a.feedback, b.feedback) && equalsParam(a.mix ?? 0.5, b.mix ?? 0.5),\n};\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { AudioFilterData } from "../registry.js";
|
|
2
|
-
import { Param } from "../curve.js";
|
|
3
|
-
/** Scales the clip's amplitude by a linear factor. */
|
|
4
|
-
export interface GainFilter {
|
|
5
|
-
type: 'gain';
|
|
6
|
-
/** Linear gain multiplier. 1 = unchanged, 0 = silent, >1 = louder. May be a time-varying curve. */
|
|
7
|
-
value: Param;
|
|
8
|
-
}
|
|
9
|
-
export declare const gainFilter: AudioFilterData<GainFilter>;
|
|
10
|
-
//# sourceMappingURL=gain.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gain.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/audio/filters/implementations/gain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,KAAK,EAA0B,MAAM,UAAU,CAAC;AAEzD,sDAAsD;AACtD,MAAM,WAAW,UAAU;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,mGAAmG;IACnG,KAAK,EAAE,KAAK,CAAC;CAChB;AAED,eAAO,MAAM,UAAU,EAAE,eAAe,CAAC,UAAU,CAGlD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gain.js","sourceRoot":"","sources":["../../../../../src/attributes/audio/filters/implementations/gain.ts"],"names":[],"mappings":"AACA,OAAO,EAAS,SAAS,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AASzD,MAAM,CAAC,MAAM,UAAU,GAAgC;IACnD,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC;IACpF,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC;CAClD,CAAC","sourcesContent":["import type { AudioFilterData } from \"../registry\";\nimport { Param, lerpParam, equalsParam } from \"../curve\";\n\n/** Scales the clip's amplitude by a linear factor. */\nexport interface GainFilter {\n type: 'gain';\n /** Linear gain multiplier. 1 = unchanged, 0 = silent, >1 = louder. May be a time-varying curve. */\n value: Param;\n}\n\nexport const gainFilter: AudioFilterData<GainFilter> = {\n lerp: (from, to, t) => ({ type: \"gain\", value: lerpParam(from.value, to.value, t) }),\n equals: (a, b) => equalsParam(a.value, b.value),\n};\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { AudioFilterData } from "../registry.js";
|
|
2
|
-
import { Param } from "../curve.js";
|
|
3
|
-
/** Attenuates frequencies below `frequency`, passing the highs through. */
|
|
4
|
-
export interface HighPassFilter {
|
|
5
|
-
type: 'highpass';
|
|
6
|
-
/** Cutoff frequency in Hz. Content below this is rolled off. May be a time-varying curve. */
|
|
7
|
-
frequency: Param;
|
|
8
|
-
/** Resonance (Q) at the cutoff. Default 1. May be a time-varying curve. */
|
|
9
|
-
q?: Param;
|
|
10
|
-
}
|
|
11
|
-
export declare const highPassFilter: AudioFilterData<HighPassFilter>;
|
|
12
|
-
//# sourceMappingURL=highpass.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"highpass.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/audio/filters/implementations/highpass.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,KAAK,EAA0B,MAAM,UAAU,CAAC;AAEzD,2EAA2E;AAC3E,MAAM,WAAW,cAAc;IAC3B,IAAI,EAAE,UAAU,CAAC;IACjB,6FAA6F;IAC7F,SAAS,EAAE,KAAK,CAAC;IACjB,2EAA2E;IAC3E,CAAC,CAAC,EAAE,KAAK,CAAC;CACb;AAED,eAAO,MAAM,cAAc,EAAE,eAAe,CAAC,cAAc,CAO1D,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"highpass.js","sourceRoot":"","sources":["../../../../../src/attributes/audio/filters/implementations/highpass.ts"],"names":[],"mappings":"AACA,OAAO,EAAS,SAAS,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAWzD,MAAM,CAAC,MAAM,cAAc,GAAoC;IAC3D,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QACpB,IAAI,EAAE,UAAU;QAChB,SAAS,EAAE,SAAS,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,EAAE,CAAC,CAAC;QACrD,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;KAC1C,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;CAC7F,CAAC","sourcesContent":["import type { AudioFilterData } from \"../registry\";\nimport { Param, lerpParam, equalsParam } from \"../curve\";\n\n/** Attenuates frequencies below `frequency`, passing the highs through. */\nexport interface HighPassFilter {\n type: 'highpass';\n /** Cutoff frequency in Hz. Content below this is rolled off. May be a time-varying curve. */\n frequency: Param;\n /** Resonance (Q) at the cutoff. Default 1. May be a time-varying curve. */\n q?: Param;\n}\n\nexport const highPassFilter: AudioFilterData<HighPassFilter> = {\n lerp: (from, to, t) => ({\n type: \"highpass\",\n frequency: lerpParam(from.frequency, to.frequency, t),\n q: lerpParam(from.q ?? 1, to.q ?? 1, t),\n }),\n equals: (a, b) => equalsParam(a.frequency, b.frequency) && equalsParam(a.q ?? 1, b.q ?? 1),\n};\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { AudioFilterData } from "../registry.js";
|
|
2
|
-
import { Param } from "../curve.js";
|
|
3
|
-
/** Attenuates frequencies above `frequency`, passing the lows through. */
|
|
4
|
-
export interface LowPassFilter {
|
|
5
|
-
type: 'lowpass';
|
|
6
|
-
/** Cutoff frequency in Hz. Content above this is rolled off. May be a time-varying curve. */
|
|
7
|
-
frequency: Param;
|
|
8
|
-
/** Resonance (Q) at the cutoff. Default 1. May be a time-varying curve. */
|
|
9
|
-
q?: Param;
|
|
10
|
-
}
|
|
11
|
-
export declare const lowPassFilter: AudioFilterData<LowPassFilter>;
|
|
12
|
-
//# sourceMappingURL=lowpass.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lowpass.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/audio/filters/implementations/lowpass.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,KAAK,EAA0B,MAAM,UAAU,CAAC;AAEzD,0EAA0E;AAC1E,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,SAAS,CAAC;IAChB,6FAA6F;IAC7F,SAAS,EAAE,KAAK,CAAC;IACjB,2EAA2E;IAC3E,CAAC,CAAC,EAAE,KAAK,CAAC;CACb;AAED,eAAO,MAAM,aAAa,EAAE,eAAe,CAAC,aAAa,CAOxD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lowpass.js","sourceRoot":"","sources":["../../../../../src/attributes/audio/filters/implementations/lowpass.ts"],"names":[],"mappings":"AACA,OAAO,EAAS,SAAS,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAWzD,MAAM,CAAC,MAAM,aAAa,GAAmC;IACzD,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QACpB,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,SAAS,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,EAAE,CAAC,CAAC;QACrD,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;KAC1C,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;CAC7F,CAAC","sourcesContent":["import type { AudioFilterData } from \"../registry\";\nimport { Param, lerpParam, equalsParam } from \"../curve\";\n\n/** Attenuates frequencies above `frequency`, passing the lows through. */\nexport interface LowPassFilter {\n type: 'lowpass';\n /** Cutoff frequency in Hz. Content above this is rolled off. May be a time-varying curve. */\n frequency: Param;\n /** Resonance (Q) at the cutoff. Default 1. May be a time-varying curve. */\n q?: Param;\n}\n\nexport const lowPassFilter: AudioFilterData<LowPassFilter> = {\n lerp: (from, to, t) => ({\n type: \"lowpass\",\n frequency: lerpParam(from.frequency, to.frequency, t),\n q: lerpParam(from.q ?? 1, to.q ?? 1, t),\n }),\n equals: (a, b) => equalsParam(a.frequency, b.frequency) && equalsParam(a.q ?? 1, b.q ?? 1),\n};\n"]}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { AudioFilterData } from "../registry.js";
|
|
2
|
-
import { Param } from "../curve.js";
|
|
3
|
-
/**
|
|
4
|
-
* Changes the clip's playback rate. Because Web Audio resamples on rate change,
|
|
5
|
-
* this alters both speed *and* pitch (the classic chipmunk / slow-mo effect) and
|
|
6
|
-
* the clip occupies less/more time on the timeline accordingly.
|
|
7
|
-
*
|
|
8
|
-
* `value` may be a time-varying curve; when it is, the clip's scene-time length is
|
|
9
|
-
* the integral `∫ 1/speed(τ) dτ` rather than a simple division (see
|
|
10
|
-
* `integrateSpeedToSceneTime` in `../curve`).
|
|
11
|
-
*/
|
|
12
|
-
export interface SpeedFilter {
|
|
13
|
-
type: 'speed';
|
|
14
|
-
/** Playback-rate multiplier. 1 = unchanged, 2 = twice as fast, 0.5 = half speed. May be a time-varying curve. */
|
|
15
|
-
value: Param;
|
|
16
|
-
}
|
|
17
|
-
export declare const speedFilter: AudioFilterData<SpeedFilter>;
|
|
18
|
-
//# sourceMappingURL=speed.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"speed.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/audio/filters/implementations/speed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,KAAK,EAA0B,MAAM,UAAU,CAAC;AAEzD;;;;;;;;GAQG;AACH,MAAM,WAAW,WAAW;IACxB,IAAI,EAAE,OAAO,CAAC;IACd,iHAAiH;IACjH,KAAK,EAAE,KAAK,CAAC;CAChB;AAED,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,WAAW,CAGpD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"speed.js","sourceRoot":"","sources":["../../../../../src/attributes/audio/filters/implementations/speed.ts"],"names":[],"mappings":"AACA,OAAO,EAAS,SAAS,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAiBzD,MAAM,CAAC,MAAM,WAAW,GAAiC;IACrD,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC;IACrF,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC;CAClD,CAAC","sourcesContent":["import type { AudioFilterData } from \"../registry\";\nimport { Param, lerpParam, equalsParam } from \"../curve\";\n\n/**\n * Changes the clip's playback rate. Because Web Audio resamples on rate change,\n * this alters both speed *and* pitch (the classic chipmunk / slow-mo effect) and\n * the clip occupies less/more time on the timeline accordingly.\n *\n * `value` may be a time-varying curve; when it is, the clip's scene-time length is\n * the integral `∫ 1/speed(τ) dτ` rather than a simple division (see\n * `integrateSpeedToSceneTime` in `../curve`).\n */\nexport interface SpeedFilter {\n type: 'speed';\n /** Playback-rate multiplier. 1 = unchanged, 2 = twice as fast, 0.5 = half speed. May be a time-varying curve. */\n value: Param;\n}\n\nexport const speedFilter: AudioFilterData<SpeedFilter> = {\n lerp: (from, to, t) => ({ type: \"speed\", value: lerpParam(from.value, to.value, t) }),\n equals: (a, b) => equalsParam(a.value, b.value),\n};\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { AudioFilterData } from "../registry.js";
|
|
2
|
-
import { Param } from "../curve.js";
|
|
3
|
-
/** Modulates the clip's amplitude with a low-frequency oscillator for a wobble effect. */
|
|
4
|
-
export interface TremoloFilter {
|
|
5
|
-
type: 'tremolo';
|
|
6
|
-
/** Modulation rate in Hz (how fast the volume pulses). May be a time-varying curve. */
|
|
7
|
-
rate: Param;
|
|
8
|
-
/** Modulation depth, 0–1. 0 = no effect, 1 = full dips to silence. May be a time-varying curve. */
|
|
9
|
-
depth: Param;
|
|
10
|
-
}
|
|
11
|
-
export declare const tremoloFilter: AudioFilterData<TremoloFilter>;
|
|
12
|
-
//# sourceMappingURL=tremolo.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tremolo.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/audio/filters/implementations/tremolo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,KAAK,EAA0B,MAAM,UAAU,CAAC;AAEzD,0FAA0F;AAC1F,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,SAAS,CAAC;IAChB,uFAAuF;IACvF,IAAI,EAAE,KAAK,CAAC;IACZ,mGAAmG;IACnG,KAAK,EAAE,KAAK,CAAC;CAChB;AAED,eAAO,MAAM,aAAa,EAAE,eAAe,CAAC,aAAa,CAOxD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tremolo.js","sourceRoot":"","sources":["../../../../../src/attributes/audio/filters/implementations/tremolo.ts"],"names":[],"mappings":"AACA,OAAO,EAAS,SAAS,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAWzD,MAAM,CAAC,MAAM,aAAa,GAAmC;IACzD,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QACpB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;QACtC,KAAK,EAAE,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC;KAC5C,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC;CACjF,CAAC","sourcesContent":["import type { AudioFilterData } from \"../registry\";\nimport { Param, lerpParam, equalsParam } from \"../curve\";\n\n/** Modulates the clip's amplitude with a low-frequency oscillator for a wobble effect. */\nexport interface TremoloFilter {\n type: 'tremolo';\n /** Modulation rate in Hz (how fast the volume pulses). May be a time-varying curve. */\n rate: Param;\n /** Modulation depth, 0–1. 0 = no effect, 1 = full dips to silence. May be a time-varying curve. */\n depth: Param;\n}\n\nexport const tremoloFilter: AudioFilterData<TremoloFilter> = {\n lerp: (from, to, t) => ({\n type: \"tremolo\",\n rate: lerpParam(from.rate, to.rate, t),\n depth: lerpParam(from.depth, to.depth, t),\n }),\n equals: (a, b) => equalsParam(a.rate, b.rate) && equalsParam(a.depth, b.depth),\n};\n"]}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/** Audio-filter data types for each built-in filter. */
|
|
2
|
-
export type { GainFilter } from './implementations/gain.js';
|
|
3
|
-
export type { HighPassFilter } from './implementations/highpass.js';
|
|
4
|
-
export type { LowPassFilter } from './implementations/lowpass.js';
|
|
5
|
-
export type { TremoloFilter } from './implementations/tremolo.js';
|
|
6
|
-
export type { SpeedFilter } from './implementations/speed.js';
|
|
7
|
-
export type { EchoFilter } from './implementations/echo.js';
|
|
8
|
-
/** Chainable filter builder API, chain class, and loose author-facing union type. */
|
|
9
|
-
export { AudioFilters, AudioFilterChain, resolveAudioFilters } from './chain.js';
|
|
10
|
-
export type { AudioFilter } from './chain.js';
|
|
11
|
-
/** Per-builder options. Each builder takes one of these, or its dominant `Param`. */
|
|
12
|
-
export type { GainFilterOptions, HighPassFilterOptions, LowPassFilterOptions, TremoloFilterOptions, SpeedFilterOptions, EchoFilterOptions, } from './chain.js';
|
|
13
|
-
/** Time-varying param curves: builders, the Curve type, and param helpers. */
|
|
14
|
-
export { Curve, ramp, hold, fadeIn, fadeOut, isCurve, staticValue, lerpParam, equalsParam, integrateSpeedToSceneTime, sourceTimeAtSceneElapsed, audioParamOps, } from './curve.js';
|
|
15
|
-
export type { Param, CurveSegment, ResolvedSegment } from './curve.js';
|
|
16
|
-
/** Union of all concrete audio-filter types accepted by sounds. */
|
|
17
|
-
export type { AudioFilterItem } from './union.js';
|
|
18
|
-
export { filtersKey } from './union.js';
|
|
19
|
-
/** Interpolation/equality registry and contract. */
|
|
20
|
-
export { AudioFilterRegistry, audioFiltersOps } from './registry.js';
|
|
21
|
-
export type { AudioFilterData } from './registry.js';
|
|
22
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/attributes/audio/filters/index.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,YAAY,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,YAAY,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,YAAY,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,YAAY,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,YAAY,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,YAAY,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,qFAAqF;AACrF,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAC9E,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,qFAAqF;AACrF,YAAY,EACR,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,GACpB,MAAM,SAAS,CAAC;AAEjB,8EAA8E;AAC9E,OAAO,EACH,KAAK,EACL,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,OAAO,EACP,OAAO,EACP,WAAW,EACX,SAAS,EACT,WAAW,EACX,yBAAyB,EACzB,wBAAwB,EACxB,aAAa,GAChB,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAEpE,mEAAmE;AACnE,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,oDAAoD;AACpD,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAClE,YAAY,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/** Chainable filter builder API, chain class, and loose author-facing union type. */
|
|
2
|
-
export { AudioFilters, AudioFilterChain, resolveAudioFilters } from './chain.js';
|
|
3
|
-
/** Time-varying param curves: builders, the Curve type, and param helpers. */
|
|
4
|
-
export { Curve, ramp, hold, fadeIn, fadeOut, isCurve, staticValue, lerpParam, equalsParam, integrateSpeedToSceneTime, sourceTimeAtSceneElapsed, audioParamOps, } from './curve.js';
|
|
5
|
-
export { filtersKey } from './union.js';
|
|
6
|
-
/** Interpolation/equality registry and contract. */
|
|
7
|
-
export { AudioFilterRegistry, audioFiltersOps } from './registry.js';
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/attributes/audio/filters/index.ts"],"names":[],"mappings":"AAQA,qFAAqF;AACrF,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAa9E,8EAA8E;AAC9E,OAAO,EACH,KAAK,EACL,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,OAAO,EACP,OAAO,EACP,WAAW,EACX,SAAS,EACT,WAAW,EACX,yBAAyB,EACzB,wBAAwB,EACxB,aAAa,GAChB,MAAM,SAAS,CAAC;AAKjB,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,oDAAoD;AACpD,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC","sourcesContent":["/** Audio-filter data types for each built-in filter. */\nexport type { GainFilter } from './implementations/gain';\nexport type { HighPassFilter } from './implementations/highpass';\nexport type { LowPassFilter } from './implementations/lowpass';\nexport type { TremoloFilter } from './implementations/tremolo';\nexport type { SpeedFilter } from './implementations/speed';\nexport type { EchoFilter } from './implementations/echo';\n\n/** Chainable filter builder API, chain class, and loose author-facing union type. */\nexport { AudioFilters, AudioFilterChain, resolveAudioFilters } from './chain';\nexport type { AudioFilter } from './chain';\n\n/** Per-builder options. Each builder takes one of these, or its dominant `Param`. */\nexport type {\n GainFilterOptions,\n HighPassFilterOptions,\n LowPassFilterOptions,\n TremoloFilterOptions,\n SpeedFilterOptions,\n EchoFilterOptions,\n} from './chain';\n\n/** Time-varying param curves: builders, the Curve type, and param helpers. */\nexport {\n Curve,\n ramp,\n hold,\n fadeIn,\n fadeOut,\n isCurve,\n staticValue,\n lerpParam,\n equalsParam,\n integrateSpeedToSceneTime,\n sourceTimeAtSceneElapsed,\n audioParamOps,\n} from './curve';\nexport type { Param, CurveSegment, ResolvedSegment } from './curve';\n\n/** Union of all concrete audio-filter types accepted by sounds. */\nexport type { AudioFilterItem } from './union';\nexport { filtersKey } from './union';\n\n/** Interpolation/equality registry and contract. */\nexport { AudioFilterRegistry, audioFiltersOps } from './registry';\nexport type { AudioFilterData } from './registry';\n"]}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { AudioFilterItem } from "../../../attributes/audio/filters/union.js";
|
|
2
|
-
import { type AudioFilter } from "../../../attributes/audio/filters/chain.js";
|
|
3
|
-
import type { AttributeOps } from "../../../attributes/shared/operators.js";
|
|
4
|
-
/** Interpolation and equality contract every registered audio filter must implement. */
|
|
5
|
-
export interface AudioFilterData<T extends AudioFilterItem> {
|
|
6
|
-
/** Return a new filter linearly interpolated between `from` and `to` at progress `t` (0–1). */
|
|
7
|
-
lerp(from: T, to: T, t: number): T;
|
|
8
|
-
/** Return true when both filters are audibly identical (used to skip redundant work). */
|
|
9
|
-
equals(a: T, b: T): boolean;
|
|
10
|
-
}
|
|
11
|
-
/** Central registry that maps audio-filter type strings to their `AudioFilterData` handlers. */
|
|
12
|
-
export declare class AudioFilterRegistry {
|
|
13
|
-
private static registry;
|
|
14
|
-
/**
|
|
15
|
-
* Register a filter type.
|
|
16
|
-
* Throws if the same `type` key is registered more than once to catch accidental double-imports.
|
|
17
|
-
*/
|
|
18
|
-
static register<T extends AudioFilterItem>(type: string, data: AudioFilterData<T>): void;
|
|
19
|
-
/** Look up the `AudioFilterData` for a given type key, or `undefined` if not registered. */
|
|
20
|
-
static get(type: string): AudioFilterData<AudioFilterItem> | undefined;
|
|
21
|
-
/** Return true when a filter type has been registered. */
|
|
22
|
-
static has(type: string): boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Interpolate between two individual filters at progress `t`.
|
|
25
|
-
* Falls back to a hard cut at t = 0.5 when the types differ or are unregistered.
|
|
26
|
-
*/
|
|
27
|
-
static lerp(from: AudioFilterItem, to: AudioFilterItem, t: number): AudioFilterItem;
|
|
28
|
-
/**
|
|
29
|
-
* Interpolate between two filter arrays of potentially different lengths.
|
|
30
|
-
* Indices present in only one array are kept as-is; matched indices are lerped pairwise.
|
|
31
|
-
*/
|
|
32
|
-
static lerpArray(from: AudioFilterItem[], to: AudioFilterItem[], t: number): AudioFilterItem[];
|
|
33
|
-
}
|
|
34
|
-
/** The audio-filter-chain attribute's op set — the `filters` prop's resolve/lerp pair. */
|
|
35
|
-
export declare const audioFiltersOps: AttributeOps<AudioFilter, AudioFilterItem[]>;
|
|
36
|
-
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../src/attributes/audio/filters/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,KAAK,WAAW,EAAuB,MAAM,kCAAkC,CAAC;AACzF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAQlE,wFAAwF;AACxF,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,eAAe;IACtD,+FAA+F;IAC/F,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;IACnC,yFAAyF;IACzF,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC;CAC/B;AAkBD,gGAAgG;AAChG,qBAAa,mBAAmB;IAC5B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAErB;IAEF;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,CAAC,SAAS,eAAe,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,IAAI;IAOxF,4FAA4F;IAC5F,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,CAAC,eAAe,CAAC,GAAG,SAAS;IAItE,0DAA0D;IAC1D,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAIjC;;;OAGG;IACH,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,eAAe,EAAE,EAAE,EAAE,eAAe,EAAE,CAAC,EAAE,MAAM,GAAG,eAAe;IAMnF;;;OAGG;IACH,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,eAAe,EAAE,EAAE,EAAE,EAAE,eAAe,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,eAAe,EAAE;CAgBjG;AAED,0FAA0F;AAC1F,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,WAAW,EAAE,eAAe,EAAE,CAGxE,CAAC"}
|