@motionscript/core 0.1.0-alpha.7 → 0.1.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/NOTICE +15 -14
- package/README.md +4 -4
- package/dist/assets/manager.d.ts.map +1 -1
- package/dist/assets/manager.js +7 -5
- package/dist/assets/manager.js.map +1 -1
- package/dist/attributes/audio/effects/chain.d.ts +73 -0
- package/dist/attributes/audio/effects/chain.d.ts.map +1 -0
- package/dist/attributes/audio/effects/chain.js +67 -0
- package/dist/attributes/audio/effects/chain.js.map +1 -0
- package/dist/attributes/audio/effects/implementations/echo.d.ts +14 -0
- package/dist/attributes/audio/effects/implementations/echo.d.ts.map +1 -0
- package/dist/attributes/audio/effects/implementations/echo.js +11 -0
- package/dist/attributes/audio/effects/implementations/echo.js.map +1 -0
- package/dist/attributes/audio/effects/implementations/gain.d.ts +10 -0
- package/dist/attributes/audio/effects/implementations/gain.d.ts.map +1 -0
- package/dist/attributes/audio/effects/implementations/gain.js +6 -0
- package/dist/attributes/audio/effects/implementations/gain.js.map +1 -0
- package/dist/attributes/audio/effects/implementations/highpass.d.ts +12 -0
- package/dist/attributes/audio/effects/implementations/highpass.d.ts.map +1 -0
- package/dist/attributes/audio/effects/implementations/highpass.js +10 -0
- package/dist/attributes/audio/effects/implementations/highpass.js.map +1 -0
- package/dist/attributes/audio/effects/implementations/lowpass.d.ts +12 -0
- package/dist/attributes/audio/effects/implementations/lowpass.d.ts.map +1 -0
- package/dist/attributes/audio/effects/implementations/lowpass.js +10 -0
- package/dist/attributes/audio/effects/implementations/lowpass.js.map +1 -0
- package/dist/attributes/audio/effects/implementations/tremolo.d.ts +12 -0
- package/dist/attributes/audio/effects/implementations/tremolo.d.ts.map +1 -0
- package/dist/attributes/audio/effects/implementations/tremolo.js +10 -0
- package/dist/attributes/audio/effects/implementations/tremolo.js.map +1 -0
- package/dist/attributes/audio/effects/index.d.ts +12 -0
- package/dist/attributes/audio/effects/index.d.ts.map +1 -0
- package/dist/attributes/audio/effects/index.js +4 -0
- package/dist/attributes/audio/effects/index.js.map +1 -0
- package/dist/attributes/audio/effects/registry.d.ts +36 -0
- package/dist/attributes/audio/effects/registry.d.ts.map +1 -0
- package/dist/attributes/audio/effects/registry.js +80 -0
- package/dist/attributes/audio/effects/registry.js.map +1 -0
- package/dist/attributes/audio/effects/union.d.ts +14 -0
- package/dist/attributes/audio/effects/union.d.ts.map +1 -0
- package/dist/attributes/audio/effects/union.js +24 -0
- package/dist/attributes/audio/effects/union.js.map +1 -0
- package/dist/attributes/audio/ramp.d.ts +103 -0
- package/dist/attributes/audio/ramp.d.ts.map +1 -0
- package/dist/attributes/audio/ramp.js +246 -0
- package/dist/attributes/audio/ramp.js.map +1 -0
- package/dist/attributes/audio/request.d.ts +24 -13
- package/dist/attributes/audio/request.d.ts.map +1 -1
- package/dist/attributes/audio/request.js +4 -3
- package/dist/attributes/audio/request.js.map +1 -1
- package/dist/attributes/audio/schedule.d.ts +21 -13
- package/dist/attributes/audio/schedule.d.ts.map +1 -1
- package/dist/attributes/audio/schedule.js +42 -28
- package/dist/attributes/audio/schedule.js.map +1 -1
- package/dist/attributes/audio/sound.d.ts +15 -12
- package/dist/attributes/audio/sound.d.ts.map +1 -1
- package/dist/attributes/audio/sound.js +8 -10
- package/dist/attributes/audio/sound.js.map +1 -1
- package/dist/attributes/audio/transition.d.ts +33 -0
- package/dist/attributes/audio/transition.d.ts.map +1 -0
- package/dist/attributes/audio/transition.js +48 -0
- package/dist/attributes/audio/transition.js.map +1 -0
- package/dist/attributes/index.d.ts +4 -3
- package/dist/attributes/index.d.ts.map +1 -1
- package/dist/attributes/index.js +4 -7
- package/dist/attributes/index.js.map +1 -1
- package/dist/attributes/layout/matrix2d.d.ts +2 -2
- package/dist/attributes/layout/matrix2d.js.map +1 -1
- package/dist/attributes/layout/space3d.js +1 -1
- package/dist/attributes/layout/space3d.js.map +1 -1
- package/dist/attributes/properties/typed.d.ts +7 -7
- package/dist/attributes/properties/typed.d.ts.map +1 -1
- package/dist/attributes/properties/typed.js +6 -6
- package/dist/attributes/properties/typed.js.map +1 -1
- package/dist/attributes/shape/corners/corner-radius.d.ts +1 -2
- package/dist/attributes/shape/corners/corner-radius.d.ts.map +1 -1
- package/dist/attributes/shape/corners/corner-radius.js +1 -2
- package/dist/attributes/shape/corners/corner-radius.js.map +1 -1
- package/dist/attributes/shape/effects/chain.d.ts +96 -409
- package/dist/attributes/shape/effects/chain.d.ts.map +1 -1
- package/dist/attributes/shape/effects/chain.js +93 -283
- package/dist/attributes/shape/effects/chain.js.map +1 -1
- package/dist/attributes/shape/effects/effect-data.d.ts +1 -1
- package/dist/attributes/shape/effects/effect-data.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/ascii.d.ts +45 -13
- package/dist/attributes/shape/effects/implementations/ascii.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/ascii.js +29 -23
- package/dist/attributes/shape/effects/implementations/ascii.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/bit-crush.d.ts +32 -7
- package/dist/attributes/shape/effects/implementations/bit-crush.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/bit-crush.js +17 -15
- package/dist/attributes/shape/effects/implementations/bit-crush.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/block-displace.d.ts +46 -10
- package/dist/attributes/shape/effects/implementations/block-displace.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/block-displace.js +21 -19
- package/dist/attributes/shape/effects/implementations/block-displace.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/bloom.d.ts +32 -7
- package/dist/attributes/shape/effects/implementations/bloom.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/bloom.js +17 -11
- package/dist/attributes/shape/effects/implementations/bloom.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/blur.d.ts +16 -3
- package/dist/attributes/shape/effects/implementations/blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/blur.js +13 -5
- package/dist/attributes/shape/effects/implementations/blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/bulge.d.ts +28 -9
- package/dist/attributes/shape/effects/implementations/bulge.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/bulge.js +15 -14
- package/dist/attributes/shape/effects/implementations/bulge.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.d.ts +21 -5
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.js +15 -10
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/color-adjustment.d.ts +96 -26
- package/dist/attributes/shape/effects/implementations/color-adjustment.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/color-adjustment.js +29 -26
- package/dist/attributes/shape/effects/implementations/color-adjustment.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/curves.d.ts +20 -6
- package/dist/attributes/shape/effects/implementations/curves.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/curves.js +26 -23
- package/dist/attributes/shape/effects/implementations/curves.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/directional-blur.d.ts +26 -5
- package/dist/attributes/shape/effects/implementations/directional-blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/directional-blur.js +15 -10
- package/dist/attributes/shape/effects/implementations/directional-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/dither.d.ts +58 -11
- package/dist/attributes/shape/effects/implementations/dither.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/dither.js +26 -20
- package/dist/attributes/shape/effects/implementations/dither.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/drop-shadow.d.ts +46 -14
- package/dist/attributes/shape/effects/implementations/drop-shadow.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/drop-shadow.js +24 -29
- package/dist/attributes/shape/effects/implementations/drop-shadow.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/duotone.d.ts +26 -7
- package/dist/attributes/shape/effects/implementations/duotone.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/duotone.js +17 -16
- package/dist/attributes/shape/effects/implementations/duotone.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/edges.d.ts +29 -7
- package/dist/attributes/shape/effects/implementations/edges.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/edges.js +17 -14
- package/dist/attributes/shape/effects/implementations/edges.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/glass.d.ts +76 -19
- package/dist/attributes/shape/effects/implementations/glass.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/glass.js +28 -22
- package/dist/attributes/shape/effects/implementations/glass.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/glow.d.ts +149 -42
- package/dist/attributes/shape/effects/implementations/glow.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/glow.js +74 -72
- package/dist/attributes/shape/effects/implementations/glow.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/grain.d.ts +43 -11
- package/dist/attributes/shape/effects/implementations/grain.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/grain.js +21 -18
- package/dist/attributes/shape/effects/implementations/grain.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/grayscale.d.ts +17 -3
- package/dist/attributes/shape/effects/implementations/grayscale.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/grayscale.js +13 -5
- package/dist/attributes/shape/effects/implementations/grayscale.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/halftone.d.ts +40 -9
- package/dist/attributes/shape/effects/implementations/halftone.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/halftone.js +20 -16
- package/dist/attributes/shape/effects/implementations/halftone.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/invert.d.ts +23 -5
- package/dist/attributes/shape/effects/implementations/invert.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/invert.js +15 -10
- package/dist/attributes/shape/effects/implementations/invert.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/kaleidoscope.d.ts +57 -18
- package/dist/attributes/shape/effects/implementations/kaleidoscope.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/kaleidoscope.js +25 -22
- package/dist/attributes/shape/effects/implementations/kaleidoscope.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/lut.d.ts +34 -7
- package/dist/attributes/shape/effects/implementations/lut.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/lut.js +20 -16
- package/dist/attributes/shape/effects/implementations/lut.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/magnify.d.ts +27 -9
- package/dist/attributes/shape/effects/implementations/magnify.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/magnify.js +17 -14
- package/dist/attributes/shape/effects/implementations/magnify.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/motion-blur.d.ts +54 -19
- package/dist/attributes/shape/effects/implementations/motion-blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/motion-blur.js +42 -20
- package/dist/attributes/shape/effects/implementations/motion-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/oil-paint.d.ts +17 -3
- package/dist/attributes/shape/effects/implementations/oil-paint.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/oil-paint.js +13 -9
- package/dist/attributes/shape/effects/implementations/oil-paint.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/outline.d.ts +28 -8
- package/dist/attributes/shape/effects/implementations/outline.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/outline.js +18 -17
- package/dist/attributes/shape/effects/implementations/outline.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/pixelate.d.ts +25 -6
- package/dist/attributes/shape/effects/implementations/pixelate.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/pixelate.js +16 -14
- package/dist/attributes/shape/effects/implementations/pixelate.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/posterize.d.ts +14 -3
- package/dist/attributes/shape/effects/implementations/posterize.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/posterize.js +13 -9
- package/dist/attributes/shape/effects/implementations/posterize.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/progressive-blur.d.ts +91 -26
- package/dist/attributes/shape/effects/implementations/progressive-blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/progressive-blur.js +27 -28
- package/dist/attributes/shape/effects/implementations/progressive-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/radial-blur.d.ts +49 -10
- package/dist/attributes/shape/effects/implementations/radial-blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/radial-blur.js +19 -20
- package/dist/attributes/shape/effects/implementations/radial-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/rgb-shift.d.ts +36 -6
- package/dist/attributes/shape/effects/implementations/rgb-shift.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/rgb-shift.js +16 -15
- package/dist/attributes/shape/effects/implementations/rgb-shift.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/scanlines.d.ts +52 -11
- package/dist/attributes/shape/effects/implementations/scanlines.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/scanlines.js +21 -18
- package/dist/attributes/shape/effects/implementations/scanlines.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/scatter.d.ts +23 -9
- package/dist/attributes/shape/effects/implementations/scatter.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/scatter.js +15 -12
- package/dist/attributes/shape/effects/implementations/scatter.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/shader.d.ts +90 -34
- package/dist/attributes/shape/effects/implementations/shader.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/shader.js +42 -26
- package/dist/attributes/shape/effects/implementations/shader.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/sharpen.d.ts +23 -5
- package/dist/attributes/shape/effects/implementations/sharpen.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/sharpen.js +16 -11
- package/dist/attributes/shape/effects/implementations/sharpen.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/streak.d.ts +40 -9
- package/dist/attributes/shape/effects/implementations/streak.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/streak.js +19 -16
- package/dist/attributes/shape/effects/implementations/streak.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/threshold.d.ts +24 -5
- package/dist/attributes/shape/effects/implementations/threshold.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/threshold.js +17 -11
- package/dist/attributes/shape/effects/implementations/threshold.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/twirl.d.ts +35 -8
- package/dist/attributes/shape/effects/implementations/twirl.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/twirl.js +17 -16
- package/dist/attributes/shape/effects/implementations/twirl.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/vignette.d.ts +37 -7
- package/dist/attributes/shape/effects/implementations/vignette.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/vignette.js +19 -18
- package/dist/attributes/shape/effects/implementations/vignette.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/vintage.d.ts +24 -5
- package/dist/attributes/shape/effects/implementations/vintage.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/vintage.js +15 -10
- package/dist/attributes/shape/effects/implementations/vintage.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/wave.d.ts +61 -14
- package/dist/attributes/shape/effects/implementations/wave.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/wave.js +26 -23
- package/dist/attributes/shape/effects/implementations/wave.js.map +1 -1
- package/dist/attributes/shape/effects/index.d.ts +4 -2
- package/dist/attributes/shape/effects/index.d.ts.map +1 -1
- package/dist/attributes/shape/effects/index.js +1 -1
- package/dist/attributes/shape/effects/index.js.map +1 -1
- package/dist/attributes/shape/effects/registry.d.ts +11 -0
- package/dist/attributes/shape/effects/registry.d.ts.map +1 -1
- package/dist/attributes/shape/effects/registry.js +113 -102
- package/dist/attributes/shape/effects/registry.js.map +1 -1
- package/dist/attributes/shape/effects/spec.d.ts +229 -0
- package/dist/attributes/shape/effects/spec.d.ts.map +1 -0
- package/dist/attributes/shape/effects/spec.js +178 -0
- package/dist/attributes/shape/effects/spec.js.map +1 -0
- package/dist/attributes/shape/fill/chain.d.ts +7 -9
- package/dist/attributes/shape/fill/chain.d.ts.map +1 -1
- package/dist/attributes/shape/fill/chain.js +9 -11
- package/dist/attributes/shape/fill/chain.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/shader.d.ts +27 -26
- package/dist/attributes/shape/fill/implementations/shader.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/shader.js +20 -14
- package/dist/attributes/shape/fill/implementations/shader.js.map +1 -1
- package/dist/attributes/shape/fill/index.d.ts +1 -1
- package/dist/attributes/shape/fill/index.d.ts.map +1 -1
- package/dist/attributes/shape/fill/index.js.map +1 -1
- package/dist/attributes/shape/fill/registry.d.ts +1 -2
- package/dist/attributes/shape/fill/registry.d.ts.map +1 -1
- package/dist/attributes/shape/fill/registry.js +1 -2
- package/dist/attributes/shape/fill/registry.js.map +1 -1
- package/dist/attributes/shape/filters/chain.d.ts +2 -6
- package/dist/attributes/shape/filters/chain.d.ts.map +1 -1
- package/dist/attributes/shape/filters/chain.js +1 -5
- package/dist/attributes/shape/filters/chain.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/color-matrix.d.ts +2 -2
- package/dist/attributes/shape/filters/implementations/color-matrix.d.ts.map +1 -1
- package/dist/attributes/shape/filters/implementations/color-matrix.js.map +1 -1
- package/dist/attributes/shape/filters/registry.d.ts +1 -1
- package/dist/attributes/shape/filters/registry.d.ts.map +1 -1
- package/dist/attributes/shape/filters/registry.js +3 -3
- package/dist/attributes/shape/filters/registry.js.map +1 -1
- package/dist/attributes/shape/filters/union.d.ts +2 -3
- package/dist/attributes/shape/filters/union.d.ts.map +1 -1
- package/dist/attributes/shape/filters/union.js.map +1 -1
- package/dist/attributes/shape/shaders/index.d.ts +2 -0
- package/dist/attributes/shape/shaders/index.d.ts.map +1 -1
- package/dist/attributes/shape/shaders/index.js +2 -0
- package/dist/attributes/shape/shaders/index.js.map +1 -1
- package/dist/attributes/shape/shaders/language.d.ts +26 -0
- package/dist/attributes/shape/shaders/language.d.ts.map +1 -0
- package/dist/attributes/shape/shaders/language.js +20 -0
- package/dist/attributes/shape/shaders/language.js.map +1 -0
- package/dist/attributes/shape/shaders/pack.d.ts +25 -11
- package/dist/attributes/shape/shaders/pack.d.ts.map +1 -1
- package/dist/attributes/shape/shaders/pack.js +9 -4
- package/dist/attributes/shape/shaders/pack.js.map +1 -1
- package/dist/attributes/shape/shaders/resolve.d.ts +4 -5
- package/dist/attributes/shape/shaders/resolve.d.ts.map +1 -1
- package/dist/attributes/shape/shaders/resolve.js +3 -6
- package/dist/attributes/shape/shaders/resolve.js.map +1 -1
- package/dist/attributes/shape/shaders/uniforms.d.ts +41 -0
- package/dist/attributes/shape/shaders/uniforms.d.ts.map +1 -0
- package/dist/attributes/shape/shaders/uniforms.js +0 -0
- package/dist/attributes/shape/shaders/uniforms.js.map +1 -0
- package/dist/browser/chunks/chunk-AOT33LMS.js +13 -0
- package/dist/browser/chunks/chunk-AOT33LMS.js.map +7 -0
- package/dist/browser/chunks/chunk-GKM6UZJR.js +6 -0
- package/dist/browser/chunks/chunk-GKM6UZJR.js.map +7 -0
- package/dist/browser/experimental.js +1 -1
- package/dist/browser/experimental.js.map +4 -4
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +2 -2
- package/dist/browser/manifest.json +1 -1
- package/dist/browser/sdk.js +1 -1
- package/dist/components/builtins/audio/audio.d.ts +14 -5
- package/dist/components/builtins/audio/audio.d.ts.map +1 -1
- package/dist/components/builtins/audio/audio.js +10 -13
- package/dist/components/builtins/audio/audio.js.map +1 -1
- package/dist/components/builtins/geometry/composite.d.ts +3 -3
- package/dist/components/builtins/media/media.d.ts +7 -7
- package/dist/components/builtins/media/media.d.ts.map +1 -1
- package/dist/components/builtins/media/media.js +4 -10
- package/dist/components/builtins/media/media.js.map +1 -1
- package/dist/components/builtins/text/text.d.ts +12 -12
- package/dist/components/builtins/text/text.d.ts.map +1 -1
- package/dist/components/builtins/text/text.js +3 -0
- package/dist/components/builtins/text/text.js.map +1 -1
- package/dist/components/factory/api.d.ts +38 -11
- package/dist/components/factory/api.d.ts.map +1 -1
- package/dist/components/factory/api.js.map +1 -1
- package/dist/components/factory/component3d.d.ts.map +1 -1
- package/dist/components/factory/component3d.js +11 -3
- package/dist/components/factory/component3d.js.map +1 -1
- package/dist/components/factory/factory.d.ts +3 -0
- package/dist/components/factory/factory.d.ts.map +1 -1
- package/dist/components/factory/factory.js +39 -5
- package/dist/components/factory/factory.js.map +1 -1
- package/dist/components/modules/text-style.d.ts +1 -1
- package/dist/components/trees/2d/node-render.d.ts +1 -1
- package/dist/components/trees/2d/node-render.js +1 -1
- package/dist/components/trees/2d/node-render.js.map +1 -1
- package/dist/components/trees/2d/node2d.d.ts +1 -1
- package/dist/components/trees/2d/node2d.js +1 -1
- package/dist/components/trees/2d/node2d.js.map +1 -1
- package/dist/components/trees/audio/node-audio.d.ts +16 -9
- package/dist/components/trees/audio/node-audio.d.ts.map +1 -1
- package/dist/components/trees/audio/node-audio.js +15 -11
- package/dist/components/trees/audio/node-audio.js.map +1 -1
- package/dist/document/command-traits.d.ts +12 -2
- package/dist/document/command-traits.d.ts.map +1 -1
- package/dist/document/command-traits.js +34 -6
- package/dist/document/command-traits.js.map +1 -1
- package/dist/document/index.d.ts +8 -0
- package/dist/document/index.d.ts.map +1 -1
- package/dist/document/index.js +4 -0
- package/dist/document/index.js.map +1 -1
- package/dist/document/migrate.d.ts +70 -0
- package/dist/document/migrate.d.ts.map +1 -0
- package/dist/document/migrate.js +202 -0
- package/dist/document/migrate.js.map +1 -0
- package/dist/document/missing-node.d.ts +27 -0
- package/dist/document/missing-node.d.ts.map +1 -0
- package/dist/document/missing-node.js +48 -0
- package/dist/document/missing-node.js.map +1 -0
- package/dist/document/node-descriptor.d.ts +4 -0
- package/dist/document/node-descriptor.d.ts.map +1 -1
- package/dist/document/node-descriptor.js.map +1 -1
- package/dist/document/placement.d.ts +2 -1
- package/dist/document/placement.d.ts.map +1 -1
- package/dist/document/placement.js.map +1 -1
- package/dist/document/project.d.ts +2 -0
- package/dist/document/project.d.ts.map +1 -1
- package/dist/document/project.js +1 -0
- package/dist/document/project.js.map +1 -1
- package/dist/document/prop-evolution.d.ts +51 -0
- package/dist/document/prop-evolution.d.ts.map +1 -0
- package/dist/document/prop-evolution.js +83 -0
- package/dist/document/prop-evolution.js.map +1 -0
- package/dist/document/registry.d.ts +16 -0
- package/dist/document/registry.d.ts.map +1 -1
- package/dist/document/registry.js +30 -4
- package/dist/document/registry.js.map +1 -1
- package/dist/document/settled-index.d.ts +2 -0
- package/dist/document/settled-index.d.ts.map +1 -1
- package/dist/document/settled-index.js +5 -5
- package/dist/document/settled-index.js.map +1 -1
- package/dist/document/timeline-patch.d.ts +4 -0
- package/dist/document/timeline-patch.d.ts.map +1 -1
- package/dist/document/timeline-patch.js +28 -3
- package/dist/document/timeline-patch.js.map +1 -1
- package/dist/document/timeline.d.ts +45 -1
- package/dist/document/timeline.d.ts.map +1 -1
- package/dist/document/timeline.js +172 -42
- package/dist/document/timeline.js.map +1 -1
- package/dist/document/types.d.ts +14 -28
- package/dist/document/types.d.ts.map +1 -1
- package/dist/document/types.js.map +1 -1
- package/dist/document/validate.d.ts +17 -5
- package/dist/document/validate.d.ts.map +1 -1
- package/dist/document/validate.js +158 -21
- package/dist/document/validate.js.map +1 -1
- package/dist/document/vocabulary.d.ts +28 -0
- package/dist/document/vocabulary.d.ts.map +1 -0
- package/dist/document/vocabulary.js +42 -0
- package/dist/document/vocabulary.js.map +1 -0
- package/dist/experimental.d.ts +68 -8
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +22 -8
- package/dist/experimental.js.map +1 -1
- package/dist/platform/exporter.d.ts +13 -0
- package/dist/platform/exporter.d.ts.map +1 -1
- package/dist/platform/exporter.js.map +1 -1
- package/dist/renamed-scene-names.d.ts +1 -1
- package/dist/renamed-scene-names.d.ts.map +1 -1
- package/dist/renamed-scene-names.js +1 -1
- package/dist/renamed-scene-names.js.map +1 -1
- package/dist/render/canvas-render-context2d.d.ts +9 -0
- package/dist/render/canvas-render-context2d.d.ts.map +1 -1
- package/dist/render/canvas-render-context2d.js +10 -0
- package/dist/render/canvas-render-context2d.js.map +1 -1
- package/dist/render/clip-contains.js +1 -1
- package/dist/render/clip-contains.js.map +1 -1
- package/dist/render/descriptors/text.d.ts +2 -2
- package/dist/render/descriptors/text.js +2 -2
- package/dist/render/descriptors/text.js.map +1 -1
- package/dist/render/index.d.ts +2 -0
- package/dist/render/index.d.ts.map +1 -1
- package/dist/render/index.js +1 -0
- package/dist/render/index.js.map +1 -1
- package/dist/render/render-context2d.d.ts +1 -1
- package/dist/render/render-context2d.js.map +1 -1
- package/dist/render/render-issue.d.ts +39 -0
- package/dist/render/render-issue.d.ts.map +1 -0
- package/dist/render/render-issue.js +29 -0
- package/dist/render/render-issue.js.map +1 -0
- package/dist/render/surface.d.ts +2 -2
- package/dist/render/surface.js.map +1 -1
- package/dist/render3d/graphics3d.d.ts.map +1 -1
- package/dist/render3d/graphics3d.js +54 -5
- package/dist/render3d/graphics3d.js.map +1 -1
- package/dist/runtime/asset-refine.js +2 -1
- package/dist/runtime/asset-refine.js.map +1 -1
- package/dist/runtime/asset-timeline.d.ts +10 -0
- package/dist/runtime/asset-timeline.d.ts.map +1 -1
- package/dist/runtime/asset-timeline.js.map +1 -1
- package/dist/runtime/asset-update.d.ts.map +1 -1
- package/dist/runtime/asset-update.js +7 -0
- package/dist/runtime/asset-update.js.map +1 -1
- package/dist/runtime/clip-instance.d.ts +3 -1
- package/dist/runtime/clip-instance.d.ts.map +1 -1
- package/dist/runtime/clip-instance.js +4 -0
- package/dist/runtime/clip-instance.js.map +1 -1
- package/dist/runtime/clip-store.d.ts.map +1 -1
- package/dist/runtime/clip-store.js +17 -2
- package/dist/runtime/clip-store.js.map +1 -1
- package/dist/runtime/engine.d.ts +5 -3
- package/dist/runtime/engine.d.ts.map +1 -1
- package/dist/runtime/engine.js +2 -1
- package/dist/runtime/engine.js.map +1 -1
- package/dist/runtime/playback-controller.d.ts.map +1 -1
- package/dist/runtime/playback-controller.js +14 -4
- package/dist/runtime/playback-controller.js.map +1 -1
- package/dist/runtime/session.d.ts +7 -3
- package/dist/runtime/session.d.ts.map +1 -1
- package/dist/runtime/session.js +11 -4
- package/dist/runtime/session.js.map +1 -1
- package/dist/runtime/text-geometry.d.ts +1 -1
- package/dist/runtime/text-geometry.js.map +1 -1
- package/dist/sdk/index.d.ts +8 -6
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +10 -3
- package/dist/sdk/index.js.map +1 -1
- package/dist/tween/command-decorator.d.ts +7 -0
- package/dist/tween/command-decorator.d.ts.map +1 -1
- package/dist/tween/command-decorator.js +1 -0
- package/dist/tween/command-decorator.js.map +1 -1
- package/dist/tween/ease/describe.d.ts +2 -0
- package/dist/tween/ease/describe.d.ts.map +1 -1
- package/dist/tween/ease/describe.js +4 -0
- package/dist/tween/ease/describe.js.map +1 -1
- package/dist/tween/ease/spec.d.ts +31 -0
- package/dist/tween/ease/spec.d.ts.map +1 -0
- package/dist/tween/ease/spec.js +51 -0
- package/dist/tween/ease/spec.js.map +1 -0
- package/dist/tween/index.d.ts +1 -0
- package/dist/tween/index.d.ts.map +1 -1
- package/dist/tween/index.js +1 -0
- package/dist/tween/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/browser/chunks/chunk-D4FSTPML.js +0 -14
- package/dist/browser/chunks/chunk-D4FSTPML.js.map +0 -7
- package/dist/browser/chunks/chunk-RTNATFWX.js +0 -5
- package/dist/browser/chunks/chunk-RTNATFWX.js.map +0 -7
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ModedEffect, EffectData } from "../effect-data.js";
|
|
2
|
+
import { type EffectFields } from "../spec.js";
|
|
2
3
|
/**
|
|
3
4
|
* A fixed hardware palette to snap colours to.
|
|
4
5
|
*
|
|
@@ -20,14 +21,38 @@ export type BitCrushPalette = "none" | "gameboy" | "cga" | "nes";
|
|
|
20
21
|
* Pairs naturally with `dither`: quantize here, and let an ordered dither carry
|
|
21
22
|
* the error so gradients survive the palette cut.
|
|
22
23
|
*/
|
|
23
|
-
export interface BitCrushEffect extends ModedEffect {
|
|
24
|
+
export interface BitCrushEffect extends ModedEffect, EffectFields<typeof bitCrushSpec.params> {
|
|
24
25
|
type: "bitCrush";
|
|
25
|
-
/** Bits per channel when `palette` is `'none'` (1–8). */
|
|
26
|
-
bits: number;
|
|
27
|
-
/** Fixed palette to snap to, or `'none'` to use `bits`. */
|
|
28
|
-
palette: BitCrushPalette;
|
|
29
|
-
/** 0–1 blend between the original colour and the crushed one. */
|
|
30
|
-
amount: number;
|
|
31
26
|
}
|
|
27
|
+
/** The {@link BitCrushEffect} spec: its parameters, defaults and ranges. */
|
|
28
|
+
export declare const bitCrushSpec: import("../spec.js").EffectSpec<"bitCrush", {
|
|
29
|
+
/** Bits per channel when `palette` is `'none'`, 1–8. */
|
|
30
|
+
readonly bits: import("../spec.js").EffectParamDef<number, number> & NoInfer<{
|
|
31
|
+
readonly default: 3;
|
|
32
|
+
readonly min: 1;
|
|
33
|
+
readonly max: 8;
|
|
34
|
+
readonly step: 1;
|
|
35
|
+
readonly inline: true;
|
|
36
|
+
}> & {
|
|
37
|
+
kind: "number";
|
|
38
|
+
};
|
|
39
|
+
/** Fixed hardware palette to snap to. A halfway palette is meaningless, so it cuts. */
|
|
40
|
+
readonly palette: import("../spec.js").EffectParamDef<"none" | "gameboy" | "cga" | "nes", "none" | "gameboy" | "cga" | "nes"> & NoInfer<{
|
|
41
|
+
readonly default: "none";
|
|
42
|
+
readonly optionsLabel: "bitCrushPalette";
|
|
43
|
+
}> & {
|
|
44
|
+
kind: "enum";
|
|
45
|
+
options: readonly ("none" | "gameboy" | "cga" | "nes")[];
|
|
46
|
+
};
|
|
47
|
+
/** 0–1 blend between original and crushed. */
|
|
48
|
+
readonly amount: import("../spec.js").EffectParamDef<number, number> & NoInfer<{
|
|
49
|
+
readonly default: 1;
|
|
50
|
+
readonly min: 0;
|
|
51
|
+
readonly max: 1;
|
|
52
|
+
readonly control: "slider";
|
|
53
|
+
}> & {
|
|
54
|
+
kind: "number";
|
|
55
|
+
};
|
|
56
|
+
}>;
|
|
32
57
|
export declare const bitCrushEffect: EffectData<BitCrushEffect>;
|
|
33
58
|
//# sourceMappingURL=bit-crush.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bit-crush.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/bit-crush.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bit-crush.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/bit-crush.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAqC,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAE/E;;;;;;;GAOG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,SAAS,GAAG,KAAK,GAAG,KAAK,CAAC;AAEjE;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,cAAe,SAAQ,WAAW,EAAE,YAAY,CAAC,OAAO,YAAY,CAAC,MAAM,CAAC;IACzF,IAAI,EAAE,UAAU,CAAC;CACpB;AAED,4EAA4E;AAC5E,eAAO,MAAM,YAAY;IAQjB,wDAAwD;;;;;;;;;;IAExD,uFAAuF;;;;;;;;IAEvF,8CAA8C;;;;;;;;;EAGpD,CAAC;AAEH,eAAO,MAAM,cAAc,EAAE,UAAU,CAAC,cAAc,CAA8B,CAAC"}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// A halfway palette is meaningless — snap, and let `amount` carry the fade.
|
|
7
|
-
palette: t < 0.5 ? from.palette : to.palette,
|
|
8
|
-
amount: lerpNumber(from.amount, to.amount, t),
|
|
9
|
-
mode: t < 0.5 ? from.mode : to.mode,
|
|
10
|
-
}),
|
|
11
|
-
equals: (a, b) => a.bits === b.bits &&
|
|
12
|
-
a.palette === b.palette &&
|
|
13
|
-
a.amount === b.amount &&
|
|
14
|
-
a.mode === b.mode,
|
|
1
|
+
import { defineEffect, effectDataOf, param } from "../spec.js";
|
|
2
|
+
/** The {@link BitCrushEffect} spec: its parameters, defaults and ranges. */
|
|
3
|
+
export const bitCrushSpec = defineEffect({
|
|
4
|
+
type: "bitCrush",
|
|
5
|
+
group: "stylize",
|
|
15
6
|
// A palette search is per-pixel non-linear; no LUT colour filter in this build.
|
|
16
7
|
surface: "shader",
|
|
17
|
-
|
|
8
|
+
scalar: "bits",
|
|
9
|
+
neutral: { amount: 0 },
|
|
10
|
+
params: {
|
|
11
|
+
/** Bits per channel when `palette` is `'none'`, 1–8. */
|
|
12
|
+
bits: param.number({ default: 3, min: 1, max: 8, step: 1, inline: true }),
|
|
13
|
+
/** Fixed hardware palette to snap to. A halfway palette is meaningless, so it cuts. */
|
|
14
|
+
palette: param.choice(["none", "gameboy", "cga", "nes"], { default: "none", optionsLabel: "bitCrushPalette" }),
|
|
15
|
+
/** 0–1 blend between original and crushed. */
|
|
16
|
+
amount: param.number({ default: 1, min: 0, max: 1, control: "slider" }),
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
export const bitCrushEffect = effectDataOf(bitCrushSpec);
|
|
18
20
|
//# sourceMappingURL=bit-crush.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bit-crush.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/bit-crush.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bit-crush.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/bit-crush.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AA4B/E,4EAA4E;AAC5E,MAAM,CAAC,MAAM,YAAY,GAAG,YAAY,CAAC;IACrC,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,SAAS;IAChB,gFAAgF;IAChF,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,MAAM;IACd,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;IACtB,MAAM,EAAE;QACJ,wDAAwD;QACxD,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACzE,uFAAuF;QACvF,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,CAA6B,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,iBAAiB,EAAE,CAAC;QAC1I,8CAA8C;QAC9C,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;KAC1E;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,cAAc,GAA+B,YAAY,CAAC,YAAY,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\r\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\r\n\r\n/**\r\n * A fixed hardware palette to snap colours to.\r\n *\r\n * - `'none'` — no palette; quantize each channel to `bits` instead.\r\n * - `'gameboy'` — the DMG's four greens.\r\n * - `'cga'` — IBM CGA palette 1 high-intensity (black, cyan, magenta, white).\r\n * - `'nes'` — a representative 16-colour cut of the NES master palette.\r\n */\r\nexport type BitCrushPalette = \"none\" | \"gameboy\" | \"cga\" | \"nes\";\r\n\r\n/**\r\n * Colour-depth reduction: either quantize each channel to `bits`, or snap every\r\n * pixel to its nearest entry in a fixed hardware palette.\r\n *\r\n * The distinction from `posterize` and `dither` is *which* colours survive.\r\n * Posterize keeps an evenly-spaced grid per channel; this can instead force an\r\n * arbitrary, uneven, historically-specific set — which is what actually makes\r\n * something look like a Game Boy rather than merely low-colour.\r\n *\r\n * Pairs naturally with `dither`: quantize here, and let an ordered dither carry\r\n * the error so gradients survive the palette cut.\r\n */\r\nexport interface BitCrushEffect extends ModedEffect, EffectFields<typeof bitCrushSpec.params> {\r\n type: \"bitCrush\";\r\n}\r\n\r\n/** The {@link BitCrushEffect} spec: its parameters, defaults and ranges. */\r\nexport const bitCrushSpec = defineEffect({\r\n type: \"bitCrush\",\r\n group: \"stylize\",\r\n // A palette search is per-pixel non-linear; no LUT colour filter in this build.\r\n surface: \"shader\",\r\n scalar: \"bits\",\r\n neutral: { amount: 0 },\r\n params: {\r\n /** Bits per channel when `palette` is `'none'`, 1–8. */\r\n bits: param.number({ default: 3, min: 1, max: 8, step: 1, inline: true }),\r\n /** Fixed hardware palette to snap to. A halfway palette is meaningless, so it cuts. */\r\n palette: param.choice([\"none\", \"gameboy\", \"cga\", \"nes\"] satisfies BitCrushPalette[], { default: \"none\", optionsLabel: \"bitCrushPalette\" }),\r\n /** 0–1 blend between original and crushed. */\r\n amount: param.number({ default: 1, min: 0, max: 1, control: \"slider\" }),\r\n },\r\n});\r\n\r\nexport const bitCrushEffect: EffectData<BitCrushEffect> = effectDataOf(bitCrushSpec);\r\n"]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { ModedEffect, EffectData
|
|
1
|
+
import type { ModedEffect, EffectData } from "../effect-data.js";
|
|
2
|
+
import { type EffectFields } from "../spec.js";
|
|
2
3
|
/**
|
|
3
4
|
* Datamosh-style tearing: the content is cut into bands and each band is
|
|
4
5
|
* displaced by a random amount.
|
|
@@ -12,18 +13,53 @@ import type { ModedEffect, EffectData, EffectAxis } from "../effect-data.js";
|
|
|
12
13
|
* glitch jump between distinct states rather than sliding smoothly, which is
|
|
13
14
|
* what makes it read as digital.
|
|
14
15
|
*/
|
|
15
|
-
export interface BlockDisplaceEffect extends ModedEffect {
|
|
16
|
+
export interface BlockDisplaceEffect extends ModedEffect, EffectFields<typeof blockDisplaceSpec.params> {
|
|
16
17
|
type: "blockDisplace";
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
}
|
|
19
|
+
/** The {@link BlockDisplaceEffect} spec: its parameters, defaults and ranges. */
|
|
20
|
+
export declare const blockDisplaceSpec: import("../spec.js").EffectSpec<"blockDisplace", {
|
|
21
|
+
/** Maximum displacement in px. */
|
|
22
|
+
readonly amount: import("../spec.js").EffectParamDef<number, number> & NoInfer<{
|
|
23
|
+
readonly default: 20;
|
|
24
|
+
readonly min: 0;
|
|
25
|
+
readonly unit: "px";
|
|
26
|
+
readonly inline: true;
|
|
27
|
+
}> & {
|
|
28
|
+
kind: "number";
|
|
29
|
+
};
|
|
19
30
|
/** Band thickness in px. */
|
|
20
|
-
size: number
|
|
31
|
+
readonly size: import("../spec.js").EffectParamDef<number, number> & NoInfer<{
|
|
32
|
+
readonly default: 16;
|
|
33
|
+
readonly min: 1;
|
|
34
|
+
readonly unit: "px";
|
|
35
|
+
readonly label: "bandSize";
|
|
36
|
+
}> & {
|
|
37
|
+
kind: "number";
|
|
38
|
+
};
|
|
21
39
|
/** 0–1 fraction of bands that move at all. */
|
|
22
|
-
density: number
|
|
40
|
+
readonly density: import("../spec.js").EffectParamDef<number, number> & NoInfer<{
|
|
41
|
+
readonly default: 0.3;
|
|
42
|
+
readonly min: 0;
|
|
43
|
+
readonly max: 1;
|
|
44
|
+
readonly control: "slider";
|
|
45
|
+
}> & {
|
|
46
|
+
kind: "number";
|
|
47
|
+
};
|
|
23
48
|
/** Random field offset — step it to jump between glitch states. */
|
|
24
|
-
seed: number
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
49
|
+
readonly seed: import("../spec.js").EffectParamDef<number, number> & NoInfer<{
|
|
50
|
+
readonly default: 0;
|
|
51
|
+
readonly step: 1;
|
|
52
|
+
}> & {
|
|
53
|
+
kind: "number";
|
|
54
|
+
};
|
|
55
|
+
/** Which way bands slide. */
|
|
56
|
+
readonly axis: import("../spec.js").EffectParamDef<import("../index.js").EffectAxis, import("../index.js").EffectAxis> & NoInfer<{
|
|
57
|
+
readonly default: "x";
|
|
58
|
+
readonly label: "direction";
|
|
59
|
+
readonly optionsLabel: "effectAxis";
|
|
60
|
+
}> & {
|
|
61
|
+
kind: "axis";
|
|
62
|
+
};
|
|
63
|
+
}>;
|
|
28
64
|
export declare const blockDisplaceEffect: EffectData<BlockDisplaceEffect>;
|
|
29
65
|
//# sourceMappingURL=block-displace.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-displace.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/block-displace.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"block-displace.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/block-displace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAqC,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAE/E;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,mBAAoB,SAAQ,WAAW,EAAE,YAAY,CAAC,OAAO,iBAAiB,CAAC,MAAM,CAAC;IACnG,IAAI,EAAE,eAAe,CAAC;CACzB;AAED,iFAAiF;AACjF,eAAO,MAAM,iBAAiB;IAQtB,kCAAkC;;;;;;;;;IAElC,4BAA4B;;;;;;;;;IAE5B,8CAA8C;;;;;;;;;IAE9C,mEAAmE;;;;;;;IAEnE,6BAA6B;;;;;;;;EAGnC,CAAC;AAEH,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,mBAAmB,CAAmC,CAAC"}
|
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
amount: lerpNumber(from.amount, to.amount, t),
|
|
7
|
-
size: lerpNumber(from.size, to.size, t),
|
|
8
|
-
density: lerpNumber(from.density, to.density, t),
|
|
9
|
-
seed: lerpNumber(from.seed, to.seed, t),
|
|
10
|
-
axis: t < 0.5 ? from.axis : to.axis,
|
|
11
|
-
mode: t < 0.5 ? from.mode : to.mode,
|
|
12
|
-
}),
|
|
13
|
-
equals: (a, b) => a.amount === b.amount &&
|
|
14
|
-
a.size === b.size &&
|
|
15
|
-
a.density === b.density &&
|
|
16
|
-
a.seed === b.seed &&
|
|
17
|
-
sameEffectAxis(a.axis, b.axis) &&
|
|
18
|
-
a.mode === b.mode,
|
|
1
|
+
import { defineEffect, effectDataOf, param } from "../spec.js";
|
|
2
|
+
/** The {@link BlockDisplaceEffect} spec: its parameters, defaults and ranges. */
|
|
3
|
+
export const blockDisplaceSpec = defineEffect({
|
|
4
|
+
type: "blockDisplace",
|
|
5
|
+
group: "glitch",
|
|
19
6
|
// Resamples the source at a displaced position.
|
|
20
7
|
surface: "shader",
|
|
21
|
-
|
|
8
|
+
scalar: "amount",
|
|
9
|
+
neutral: { amount: 0 },
|
|
10
|
+
params: {
|
|
11
|
+
/** Maximum displacement in px. */
|
|
12
|
+
amount: param.number({ default: 20, min: 0, unit: "px", inline: true }),
|
|
13
|
+
/** Band thickness in px. */
|
|
14
|
+
size: param.number({ default: 16, min: 1, unit: "px", label: "bandSize" }),
|
|
15
|
+
/** 0–1 fraction of bands that move at all. */
|
|
16
|
+
density: param.number({ default: 0.3, min: 0, max: 1, control: "slider" }),
|
|
17
|
+
/** Random field offset — step it to jump between glitch states. */
|
|
18
|
+
seed: param.number({ default: 0, step: 1 }),
|
|
19
|
+
/** Which way bands slide. */
|
|
20
|
+
axis: param.axis({ default: "x", label: "direction", optionsLabel: "effectAxis" }),
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
export const blockDisplaceEffect = effectDataOf(blockDisplaceSpec);
|
|
22
24
|
//# sourceMappingURL=block-displace.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-displace.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/block-displace.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"block-displace.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/block-displace.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAmB/E,iFAAiF;AACjF,MAAM,CAAC,MAAM,iBAAiB,GAAG,YAAY,CAAC;IAC1C,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE,QAAQ;IACf,gDAAgD;IAChD,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;IACtB,MAAM,EAAE;QACJ,kCAAkC;QAClC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACvE,4BAA4B;QAC5B,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC;QAC1E,8CAA8C;QAC9C,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;QAC1E,mEAAmE;QACnE,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;QAC3C,6BAA6B;QAC7B,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC;KACrF;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAoC,YAAY,CAAC,iBAAiB,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\r\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\r\n\r\n/**\r\n * Datamosh-style tearing: the content is cut into bands and each band is\r\n * displaced by a random amount.\r\n *\r\n * `density` is what separates this from noise — only that fraction of bands\r\n * move at all, so the image stays readable and the tear reads as a fault rather\r\n * than as static. Turn it to 1 and every band shifts.\r\n *\r\n * The displacement is a pure function of the band index and `seed`, so a frame\r\n * always re-renders identically. Animate `seed` (in whole steps) to make the\r\n * glitch jump between distinct states rather than sliding smoothly, which is\r\n * what makes it read as digital.\r\n */\r\nexport interface BlockDisplaceEffect extends ModedEffect, EffectFields<typeof blockDisplaceSpec.params> {\r\n type: \"blockDisplace\";\r\n}\r\n\r\n/** The {@link BlockDisplaceEffect} spec: its parameters, defaults and ranges. */\r\nexport const blockDisplaceSpec = defineEffect({\r\n type: \"blockDisplace\",\r\n group: \"glitch\",\r\n // Resamples the source at a displaced position.\r\n surface: \"shader\",\r\n scalar: \"amount\",\r\n neutral: { amount: 0 },\r\n params: {\r\n /** Maximum displacement in px. */\r\n amount: param.number({ default: 20, min: 0, unit: \"px\", inline: true }),\r\n /** Band thickness in px. */\r\n size: param.number({ default: 16, min: 1, unit: \"px\", label: \"bandSize\" }),\r\n /** 0–1 fraction of bands that move at all. */\r\n density: param.number({ default: 0.3, min: 0, max: 1, control: \"slider\" }),\r\n /** Random field offset — step it to jump between glitch states. */\r\n seed: param.number({ default: 0, step: 1 }),\r\n /** Which way bands slide. */\r\n axis: param.axis({ default: \"x\", label: \"direction\", optionsLabel: \"effectAxis\" }),\r\n },\r\n});\r\n\r\nexport const blockDisplaceEffect: EffectData<BlockDisplaceEffect> = effectDataOf(blockDisplaceSpec);\r\n"]}
|
|
@@ -1,12 +1,37 @@
|
|
|
1
1
|
import type { ModedEffect, EffectData } from "../effect-data.js";
|
|
2
|
-
|
|
2
|
+
import { type EffectFields } from "../spec.js";
|
|
3
|
+
export interface BloomEffect extends ModedEffect, EffectFields<typeof bloomSpec.params> {
|
|
3
4
|
type: "bloom";
|
|
4
|
-
/** 0–1: luminance cutoff — pixels below this threshold don't contribute to the bloom. */
|
|
5
|
-
threshold: number;
|
|
6
|
-
/** Blur spread radius in pixels. */
|
|
7
|
-
radius: number;
|
|
8
|
-
/** Additive multiplier for the bloom pass (default 1). */
|
|
9
|
-
intensity: number;
|
|
10
5
|
}
|
|
6
|
+
/** The {@link BloomEffect} spec: its parameters, defaults and ranges. */
|
|
7
|
+
export declare const bloomSpec: import("../spec.js").EffectSpec<"bloom", {
|
|
8
|
+
/** 0–1 luminance cutoff — only pixels brighter than this bloom. */
|
|
9
|
+
readonly threshold: import("../spec.js").EffectParamDef<number, number> & NoInfer<{
|
|
10
|
+
readonly default: 0.7;
|
|
11
|
+
readonly min: 0;
|
|
12
|
+
readonly max: 1;
|
|
13
|
+
readonly control: "slider";
|
|
14
|
+
}> & {
|
|
15
|
+
kind: "number";
|
|
16
|
+
};
|
|
17
|
+
/** Spread in pixels. */
|
|
18
|
+
readonly radius: import("../spec.js").EffectParamDef<number, number> & NoInfer<{
|
|
19
|
+
readonly default: 12;
|
|
20
|
+
readonly min: 0;
|
|
21
|
+
readonly unit: "px";
|
|
22
|
+
}> & {
|
|
23
|
+
kind: "number";
|
|
24
|
+
};
|
|
25
|
+
/** Additive multiplier for the bloom pass. */
|
|
26
|
+
readonly intensity: import("../spec.js").EffectParamDef<number, number> & NoInfer<{
|
|
27
|
+
readonly default: 1;
|
|
28
|
+
readonly min: 0;
|
|
29
|
+
readonly max: 3;
|
|
30
|
+
readonly control: "slider";
|
|
31
|
+
readonly inline: true;
|
|
32
|
+
}> & {
|
|
33
|
+
kind: "number";
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
11
36
|
export declare const bloomEffect: EffectData<BloomEffect>;
|
|
12
37
|
//# sourceMappingURL=bloom.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bloom.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/bloom.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bloom.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/bloom.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAqC,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAE/E,MAAM,WAAW,WAAY,SAAQ,WAAW,EAAE,YAAY,CAAC,OAAO,SAAS,CAAC,MAAM,CAAC;IACnF,IAAI,EAAE,OAAO,CAAC;CACjB;AAED,yEAAyE;AACzE,eAAO,MAAM,SAAS;IAMd,mEAAmE;;;;;;;;;IAEnE,wBAAwB;;;;;;;;IAExB,8CAA8C;;;;;;;;;;EAGpD,CAAC;AAEH,eAAO,MAAM,WAAW,EAAE,UAAU,CAAC,WAAW,CAA2B,CAAC"}
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { defineEffect, effectDataOf, param } from "../spec.js";
|
|
2
|
+
/** The {@link BloomEffect} spec: its parameters, defaults and ranges. */
|
|
3
|
+
export const bloomSpec = defineEffect({
|
|
4
|
+
type: "bloom",
|
|
5
|
+
group: "light",
|
|
6
|
+
scalar: "intensity",
|
|
7
|
+
neutral: { intensity: 0 },
|
|
8
|
+
params: {
|
|
9
|
+
/** 0–1 luminance cutoff — only pixels brighter than this bloom. */
|
|
10
|
+
threshold: param.number({ default: 0.7, min: 0, max: 1, control: "slider" }),
|
|
11
|
+
/** Spread in pixels. */
|
|
12
|
+
radius: param.number({ default: 12, min: 0, unit: "px" }),
|
|
13
|
+
/** Additive multiplier for the bloom pass. */
|
|
14
|
+
intensity: param.number({ default: 1, min: 0, max: 3, control: "slider", inline: true }),
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
export const bloomEffect = effectDataOf(bloomSpec);
|
|
12
18
|
//# sourceMappingURL=bloom.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bloom.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/bloom.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bloom.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/bloom.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAM/E,yEAAyE;AACzE,MAAM,CAAC,MAAM,SAAS,GAAG,YAAY,CAAC;IAClC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,WAAW;IACnB,OAAO,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE;IACzB,MAAM,EAAE;QACJ,mEAAmE;QACnE,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;QAC5E,wBAAwB;QACxB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QACzD,8CAA8C;QAC9C,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;KAC3F;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAA4B,YAAY,CAAC,SAAS,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\r\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\r\n\r\nexport interface BloomEffect extends ModedEffect, EffectFields<typeof bloomSpec.params> {\r\n type: \"bloom\";\r\n}\r\n\r\n/** The {@link BloomEffect} spec: its parameters, defaults and ranges. */\r\nexport const bloomSpec = defineEffect({\r\n type: \"bloom\",\r\n group: \"light\",\r\n scalar: \"intensity\",\r\n neutral: { intensity: 0 },\r\n params: {\r\n /** 0–1 luminance cutoff — only pixels brighter than this bloom. */\r\n threshold: param.number({ default: 0.7, min: 0, max: 1, control: \"slider\" }),\r\n /** Spread in pixels. */\r\n radius: param.number({ default: 12, min: 0, unit: \"px\" }),\r\n /** Additive multiplier for the bloom pass. */\r\n intensity: param.number({ default: 1, min: 0, max: 3, control: \"slider\", inline: true }),\r\n },\r\n});\r\n\r\nexport const bloomEffect: EffectData<BloomEffect> = effectDataOf(bloomSpec);\r\n"]}
|
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
import type { ModedEffect, EffectData } from "../effect-data.js";
|
|
2
|
-
|
|
2
|
+
import { type EffectFields } from "../spec.js";
|
|
3
|
+
export interface BlurEffect extends ModedEffect, EffectFields<typeof blurSpec.params> {
|
|
3
4
|
type: "blur";
|
|
4
|
-
/** Blur spread in pixels. */
|
|
5
|
-
radius: number;
|
|
6
5
|
}
|
|
6
|
+
/** The {@link BlurEffect} spec: its parameters, defaults and ranges. */
|
|
7
|
+
export declare const blurSpec: import("../spec.js").EffectSpec<"blur", {
|
|
8
|
+
/** Blur spread in pixels. */
|
|
9
|
+
readonly radius: import("../spec.js").EffectParamDef<number, number> & NoInfer<{
|
|
10
|
+
readonly default: 0;
|
|
11
|
+
readonly required: true;
|
|
12
|
+
readonly min: 0;
|
|
13
|
+
readonly unit: "px";
|
|
14
|
+
readonly inline: true;
|
|
15
|
+
readonly initial: 4;
|
|
16
|
+
}> & {
|
|
17
|
+
kind: "number";
|
|
18
|
+
};
|
|
19
|
+
}>;
|
|
7
20
|
export declare const blurEffect: EffectData<BlurEffect>;
|
|
8
21
|
//# sourceMappingURL=blur.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blur.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/blur.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"blur.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/blur.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAqC,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAE/E,MAAM,WAAW,UAAW,SAAQ,WAAW,EAAE,YAAY,CAAC,OAAO,QAAQ,CAAC,MAAM,CAAC;IACjF,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,wEAAwE;AACxE,eAAO,MAAM,QAAQ;IAMb,6BAA6B;;;;;;;;;;;EAGnC,CAAC;AAEH,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,UAAU,CAA0B,CAAC"}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { defineEffect, effectDataOf, param } from "../spec.js";
|
|
2
|
+
/** The {@link BlurEffect} spec: its parameters, defaults and ranges. */
|
|
3
|
+
export const blurSpec = defineEffect({
|
|
4
|
+
type: "blur",
|
|
5
|
+
group: "blur",
|
|
6
|
+
scalar: "radius",
|
|
7
|
+
neutral: { radius: 0 },
|
|
8
|
+
params: {
|
|
9
|
+
/** Blur spread in pixels. */
|
|
10
|
+
radius: param.number({ default: 0, required: true, min: 0, unit: "px", inline: true, initial: 4 }),
|
|
11
|
+
},
|
|
12
|
+
});
|
|
13
|
+
export const blurEffect = effectDataOf(blurSpec);
|
|
6
14
|
//# sourceMappingURL=blur.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blur.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/blur.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"blur.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/blur.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAM/E,wEAAwE;AACxE,MAAM,CAAC,MAAM,QAAQ,GAAG,YAAY,CAAC;IACjC,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;IACtB,MAAM,EAAE;QACJ,6BAA6B;QAC7B,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;KACrG;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,UAAU,GAA2B,YAAY,CAAC,QAAQ,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\r\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\r\n\r\nexport interface BlurEffect extends ModedEffect, EffectFields<typeof blurSpec.params> {\r\n type: \"blur\";\r\n}\r\n\r\n/** The {@link BlurEffect} spec: its parameters, defaults and ranges. */\r\nexport const blurSpec = defineEffect({\r\n type: \"blur\",\r\n group: \"blur\",\r\n scalar: \"radius\",\r\n neutral: { radius: 0 },\r\n params: {\r\n /** Blur spread in pixels. */\r\n radius: param.number({ default: 0, required: true, min: 0, unit: \"px\", inline: true, initial: 4 }),\r\n },\r\n});\r\n\r\nexport const blurEffect: EffectData<BlurEffect> = effectDataOf(blurSpec);\r\n"]}
|
|
@@ -1,14 +1,33 @@
|
|
|
1
|
-
import { Vector2 } from "../../../../attributes/layout/vector2.js";
|
|
2
1
|
import type { ModedEffect, EffectData } from "../effect-data.js";
|
|
3
|
-
|
|
2
|
+
import { type EffectFields } from "../spec.js";
|
|
3
|
+
export interface BulgeEffect extends ModedEffect, EffectFields<typeof bulgeSpec.params> {
|
|
4
4
|
type: "bulge";
|
|
5
|
-
/**
|
|
6
|
-
* Distortion amount: positive bulges the centre outward (barrel), negative
|
|
7
|
-
* pinches it inward (pincushion). Edges stay pinned. Sensible range ≈ −1…1.
|
|
8
|
-
*/
|
|
9
|
-
strength: number;
|
|
10
|
-
/** Lens centre in 0–1 normalised layer coordinates ({ x: 0.5, y: 0.5 } = middle). */
|
|
11
|
-
center: Vector2;
|
|
12
5
|
}
|
|
6
|
+
/** The {@link BulgeEffect} spec: its parameters, defaults and ranges. */
|
|
7
|
+
export declare const bulgeSpec: import("../spec.js").EffectSpec<"bulge", {
|
|
8
|
+
/** Positive bulges (barrel), negative pinches (pincushion). Range ≈ −1…1. */
|
|
9
|
+
readonly strength: import("../spec.js").EffectParamDef<number, number> & NoInfer<{
|
|
10
|
+
readonly default: 0;
|
|
11
|
+
readonly required: true;
|
|
12
|
+
readonly min: -1;
|
|
13
|
+
readonly max: 1;
|
|
14
|
+
readonly control: "slider";
|
|
15
|
+
readonly inline: true;
|
|
16
|
+
readonly initial: 0.5;
|
|
17
|
+
}> & {
|
|
18
|
+
kind: "number";
|
|
19
|
+
};
|
|
20
|
+
/** Lens centre in 0–1 layer coords. */
|
|
21
|
+
readonly center: import("../spec.js").EffectParamDef<import("../../../index.js").Vector2, import("../../../index.js").Vector2> & NoInfer<{
|
|
22
|
+
readonly default: import("../../../index.js").Vector2;
|
|
23
|
+
readonly min: 0;
|
|
24
|
+
readonly max: 1;
|
|
25
|
+
readonly step: 0.01;
|
|
26
|
+
readonly unit: "normalized";
|
|
27
|
+
readonly label: "lensCenter";
|
|
28
|
+
}> & {
|
|
29
|
+
kind: "vec2";
|
|
30
|
+
};
|
|
31
|
+
}>;
|
|
13
32
|
export declare const bulgeEffect: EffectData<BulgeEffect>;
|
|
14
33
|
//# sourceMappingURL=bulge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulge.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/bulge.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"bulge.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/bulge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAA6C,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvF,MAAM,WAAW,WAAY,SAAQ,WAAW,EAAE,YAAY,CAAC,OAAO,SAAS,CAAC,MAAM,CAAC;IACnF,IAAI,EAAE,OAAO,CAAC;CACjB;AAED,yEAAyE;AACzE,eAAO,MAAM,SAAS;IAQd,6EAA6E;;;;;;;;;;;;IAE7E,uCAAuC;;;;;;;;;;;EAG7C,CAAC;AAEH,eAAO,MAAM,WAAW,EAAE,UAAU,CAAC,WAAW,CAA2B,CAAC"}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
strength: lerpNumber(from.strength, to.strength, t),
|
|
7
|
-
center: lerpVector2(from.center, to.center, t),
|
|
8
|
-
mode: t < 0.5 ? from.mode : to.mode,
|
|
9
|
-
}),
|
|
10
|
-
equals: (a, b) => a.strength === b.strength &&
|
|
11
|
-
a.center.x === b.center.x &&
|
|
12
|
-
a.center.y === b.center.y &&
|
|
13
|
-
a.mode === b.mode,
|
|
1
|
+
import { CENTER, defineEffect, effectDataOf, param } from "../spec.js";
|
|
2
|
+
/** The {@link BulgeEffect} spec: its parameters, defaults and ranges. */
|
|
3
|
+
export const bulgeSpec = defineEffect({
|
|
4
|
+
type: "bulge",
|
|
5
|
+
group: "distort",
|
|
14
6
|
// Warps its source: samples a displaced texel per fragment.
|
|
15
7
|
surface: "shader",
|
|
16
|
-
|
|
8
|
+
scalar: "strength",
|
|
9
|
+
neutral: { strength: 0 },
|
|
10
|
+
params: {
|
|
11
|
+
/** Positive bulges (barrel), negative pinches (pincushion). Range ≈ −1…1. */
|
|
12
|
+
strength: param.number({ default: 0, required: true, min: -1, max: 1, control: "slider", inline: true, initial: 0.5 }),
|
|
13
|
+
/** Lens centre in 0–1 layer coords. */
|
|
14
|
+
center: param.vec2({ default: CENTER, min: 0, max: 1, step: 0.01, unit: "normalized", label: "lensCenter" }),
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
export const bulgeEffect = effectDataOf(bulgeSpec);
|
|
17
18
|
//# sourceMappingURL=bulge.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulge.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/bulge.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bulge.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/bulge.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAMvF,yEAAyE;AACzE,MAAM,CAAC,MAAM,SAAS,GAAG,YAAY,CAAC;IAClC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,SAAS;IAChB,4DAA4D;IAC5D,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,UAAU;IAClB,OAAO,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE;IACxB,MAAM,EAAE;QACJ,6EAA6E;QAC7E,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC;QACtH,uCAAuC;QACvC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC;KAC/G;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAA4B,YAAY,CAAC,SAAS,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\r\nimport { CENTER, defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\r\n\r\nexport interface BulgeEffect extends ModedEffect, EffectFields<typeof bulgeSpec.params> {\r\n type: \"bulge\";\r\n}\r\n\r\n/** The {@link BulgeEffect} spec: its parameters, defaults and ranges. */\r\nexport const bulgeSpec = defineEffect({\r\n type: \"bulge\",\r\n group: \"distort\",\r\n // Warps its source: samples a displaced texel per fragment.\r\n surface: \"shader\",\r\n scalar: \"strength\",\r\n neutral: { strength: 0 },\r\n params: {\r\n /** Positive bulges (barrel), negative pinches (pincushion). Range ≈ −1…1. */\r\n strength: param.number({ default: 0, required: true, min: -1, max: 1, control: \"slider\", inline: true, initial: 0.5 }),\r\n /** Lens centre in 0–1 layer coords. */\r\n center: param.vec2({ default: CENTER, min: 0, max: 1, step: 0.01, unit: \"normalized\", label: \"lensCenter\" }),\r\n },\r\n});\r\n\r\nexport const bulgeEffect: EffectData<BulgeEffect> = effectDataOf(bulgeSpec);\r\n"]}
|
|
@@ -1,10 +1,26 @@
|
|
|
1
1
|
import type { ModedEffect, EffectData } from "../effect-data.js";
|
|
2
|
-
|
|
2
|
+
import { type EffectFields } from "../spec.js";
|
|
3
|
+
export interface ChromaticAberrationEffect extends ModedEffect, EffectFields<typeof chromaticAberrationSpec.params> {
|
|
3
4
|
type: "chromaticAberration";
|
|
4
|
-
/** Pixel offset distance for the R/B channel fringe. */
|
|
5
|
-
amount: number;
|
|
6
|
-
/** Angle in degrees — 0 = horizontal split (R left, B right). */
|
|
7
|
-
angle: number;
|
|
8
5
|
}
|
|
6
|
+
/** The {@link ChromaticAberrationEffect} spec: its parameters, defaults and ranges. */
|
|
7
|
+
export declare const chromaticAberrationSpec: import("../spec.js").EffectSpec<"chromaticAberration", {
|
|
8
|
+
/** Pixel offset distance for the R/B fringe. */
|
|
9
|
+
readonly amount: import("../spec.js").EffectParamDef<number, number> & NoInfer<{
|
|
10
|
+
readonly default: 4;
|
|
11
|
+
readonly min: 0;
|
|
12
|
+
readonly unit: "px";
|
|
13
|
+
readonly inline: true;
|
|
14
|
+
}> & {
|
|
15
|
+
kind: "number";
|
|
16
|
+
};
|
|
17
|
+
/** Fringe axis in degrees — 0 = horizontal, R right / B left. */
|
|
18
|
+
readonly angle: import("../spec.js").EffectParamDef<number, number> & NoInfer<{
|
|
19
|
+
readonly default: 0;
|
|
20
|
+
readonly unit: "deg";
|
|
21
|
+
}> & {
|
|
22
|
+
kind: "number";
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
9
25
|
export declare const chromaticAberrationEffect: EffectData<ChromaticAberrationEffect>;
|
|
10
26
|
//# sourceMappingURL=chromatic-aberration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chromatic-aberration.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/chromatic-aberration.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chromatic-aberration.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/chromatic-aberration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAqC,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAE/E,MAAM,WAAW,yBAA0B,SAAQ,WAAW,EAAE,YAAY,CAAC,OAAO,uBAAuB,CAAC,MAAM,CAAC;IAC/G,IAAI,EAAE,qBAAqB,CAAC;CAC/B;AAED,uFAAuF;AACvF,eAAO,MAAM,uBAAuB;IAM5B,gDAAgD;;;;;;;;;IAEhD,iEAAiE;;;;;;;EAGvE,CAAC;AAEH,eAAO,MAAM,yBAAyB,EAAE,UAAU,CAAC,yBAAyB,CAAyC,CAAC"}
|