@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,42 +1,83 @@
|
|
|
1
|
-
/** Symbol used to store
|
|
1
|
+
/** Symbol used to store property metadata on class prototypes. */
|
|
2
2
|
export const PROPERTY_META = Symbol("propertyMeta");
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* Every `property` on an instance's class, inherited included, ordered base →
|
|
5
|
+
* subclass so `initProps` applies them in declaration order. A subclass that
|
|
6
|
+
* redeclares a key replaces the inherited declaration whole — default, mapper,
|
|
7
|
+
* tween and editor — at the position the base gave it.
|
|
7
8
|
*/
|
|
8
9
|
export function getPropertyMeta(instance) {
|
|
9
|
-
|
|
10
|
+
return mostDerived(instance, PROPERTY_META);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The per-key declarations stored under `symbol` along `instance`'s prototype
|
|
14
|
+
* chain: base first, one entry per key, the most-derived declaration of each.
|
|
15
|
+
*/
|
|
16
|
+
export function mostDerived(instance, symbol) {
|
|
10
17
|
const chain = [];
|
|
11
18
|
let proto = Object.getPrototypeOf(instance);
|
|
12
19
|
while (proto && proto !== Object.prototype) {
|
|
13
20
|
chain.unshift(proto);
|
|
14
21
|
proto = Object.getPrototypeOf(proto);
|
|
15
22
|
}
|
|
16
|
-
const
|
|
23
|
+
const result = [];
|
|
24
|
+
const at = new Map();
|
|
17
25
|
for (const p of chain) {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
26
|
+
if (!Object.prototype.hasOwnProperty.call(p, symbol))
|
|
27
|
+
continue;
|
|
28
|
+
for (const m of p[symbol]) {
|
|
29
|
+
const i = at.get(m.key);
|
|
30
|
+
if (i === undefined) {
|
|
31
|
+
at.set(m.key, result.length);
|
|
32
|
+
result.push(m);
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
result[i] = m;
|
|
25
36
|
}
|
|
26
37
|
}
|
|
27
38
|
}
|
|
28
39
|
return result;
|
|
29
40
|
}
|
|
30
41
|
/**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
42
|
+
* Registers properties and commands on a node class, in the order given.
|
|
43
|
+
*
|
|
44
|
+
* Core's own base classes (`Node`, `Node2D`, `Node3D`, …) declare their props
|
|
45
|
+
* as `declare` fields and register them here, right after the class body.
|
|
46
|
+
* Order is meaningful: {@link getPropertyMeta} lists properties in
|
|
47
|
+
* registration order, which is the order `Registry.describe` hands a host's
|
|
48
|
+
* inspector, so a new entry goes where it should appear.
|
|
33
49
|
*
|
|
34
50
|
* @example
|
|
35
51
|
* ```ts
|
|
36
|
-
*
|
|
52
|
+
* class Dial extends Node2D<DialProps> {
|
|
53
|
+
* declare level: number;
|
|
54
|
+
* turn(args: CommandArgs<{ by: number }>) { … }
|
|
55
|
+
* }
|
|
56
|
+
* declareMembers(Dial, {
|
|
57
|
+
* level: property({ default: 0 }),
|
|
58
|
+
* turn: command({ args: ["by"] }),
|
|
59
|
+
* });
|
|
60
|
+
* ```
|
|
37
61
|
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
62
|
+
* Node types outside core are components (`component2d`), which do this for
|
|
63
|
+
* their `props` and `commands` themselves.
|
|
64
|
+
*/
|
|
65
|
+
export function declareMembers(ctor, members) {
|
|
66
|
+
for (const [key, register] of Object.entries(members)) {
|
|
67
|
+
register(ctor.prototype, key);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Declares a property on a `Node` subclass: applied to the prototype under the
|
|
72
|
+
* property's key, directly or through {@link declareMembers}. Redeclaring an
|
|
73
|
+
* inherited key overrides it; see {@link getPropertyMeta}.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```ts
|
|
77
|
+
* declareMembers(Glow, {
|
|
78
|
+
* radius: property({ default: 0 }),
|
|
79
|
+
* fill: property({ mapper: fillOps.resolve, tween: fillOps.lerp }),
|
|
80
|
+
* });
|
|
40
81
|
* ```
|
|
41
82
|
*
|
|
42
83
|
* The `default` value is used when the corresponding key is absent from the
|
|
@@ -44,7 +85,6 @@ export function getPropertyMeta(instance) {
|
|
|
44
85
|
* directly to `applyProp()`.
|
|
45
86
|
*/
|
|
46
87
|
export function property(opts) {
|
|
47
|
-
// Legacy decorator: (target: object, propertyKey: string | symbol) => void
|
|
48
88
|
return function (target, propertyKey) {
|
|
49
89
|
const key = propertyKey;
|
|
50
90
|
// `default`, `mapper` and `tween` drive the prop slot; everything else is
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorator.js","sourceRoot":"","sources":["../../../src/attributes/properties/decorator.ts"],"names":[],"mappings":"AA4DA,mEAAmE;AACnE,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;AAEpD;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,QAAgB;IAC5C,MAAM,MAAM,GAAmB,EAAE,CAAC;IAClC,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,IAAI,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;IAC5C,OAAO,KAAK,IAAI,KAAK,KAAK,MAAM,CAAC,SAAS,EAAE,CAAC;QACzC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACrB,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;IACzC,CAAC;IACD,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAC;IAC/B,KAAK,MAAM,CAAC,IAAI,KAAK,EAAE,CAAC;QACpB,MAAM,GAAG,GAAgC,CAAS,CAAC,aAAa,CAAC,CAAC;QAClE,IAAI,GAAG,EAAE,CAAC;YACN,KAAK,MAAM,CAAC,IAAI,GAAG,EAAE,CAAC;gBAClB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;oBACnB,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;oBAChB,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;gBACnB,CAAC;YACL,CAAC;QACL,CAAC;IACL,CAAC;IACD,OAAO,MAAM,CAAC;AAClB,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,QAAQ,CAAuB,IAI7B;IACd,2EAA2E;IAC3E,OAAO,UAAU,MAAc,EAAE,WAA4B;QACzD,MAAM,GAAG,GAAG,WAAqB,CAAC;QAClC,0EAA0E;QAC1E,wDAAwD;QACxD,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,EAAE,GAAG,IAAI,IAAI,EAAE,CAAC;QACnE,MAAM,IAAI,GAAiB;YACvB,GAAG;YACH,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,CAAC,MAAM,IAAI,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC;gBACtC,CAAC,CAAC,EAAE,MAAM,EAAE,MAAyC,EAAE,KAAK,EAAE,KAAiC,EAAE;gBACjG,CAAC,CAAC,SAAS;YACf,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,MAAwB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAClF,CAAC;QAEF,yEAAyE;QACzE,iEAAiE;QACjE,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,aAAa,CAAC,EAAE,CAAC;YAC9D,MAAc,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC;QACxC,CAAC;QACD,MAAM,IAAI,GAAoB,MAAc,CAAC,aAAa,CAAC,CAAC;QAC5D,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,EAAE,CAAC;YACjC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC;IACL,CAAC,CAAC;AACN,CAAC","sourcesContent":["import { TweenFn } from \"@/props/host\";\n\nexport interface PropOptions<Ext, Int> {\n /** Lerp the *internal* (post-mapper) value during `to()`. */\n tween?: TweenFn<Int>;\n /** Converts the external input into the internal stored value. Receives the previous internal value as the second arg when available. */\n mapper?: (ext: Ext, prev?: Int) => Int;\n}\n\n\nexport interface PropertyMeta {\n key: string;\n default?: unknown;\n options?: PropOptions<any, any>;\n /** How a host edits this prop — see {@link PropertyEditor}. */\n editor?: PropertyEditor;\n}\n\n/**\n * What a host needs to draw a control for a property.\n *\n * Declared **on the property**, because that is the thing it edits. A node type\n * used to describe its controls in a separate list — a `fields` array beside the\n * class, or a manifest beside the package — and a list of props next to a class\n * of props is the shape that drifts: rename one and nothing says the other is\n * now describing something that no longer exists.\n *\n * Nothing here is read while rendering. A frame is identical whether a prop\n * declares a range or not; this exists so an editor has one place to ask.\n */\nexport interface PropertyEditor {\n /**\n * The control to draw. Inferred when absent — a typed decorator knows its\n * own (`@colorProperty` is a colour), and a plain `@property` reads it off\n * the default's type.\n */\n kind?: string;\n /** Bounds and granularity for a numeric control. */\n min?: number;\n max?: number;\n step?: number;\n /** What the number means, for a host that labels it — `\"°\"`, `\"s\"`, `\"×\"`. */\n unit?: string;\n /** The choices, for an enum. */\n options?: readonly string[];\n /** Whether a document may tween it. Defaults to true. */\n animatable?: boolean;\n /**\n * The controls *inside* an object-valued prop.\n *\n * An axis config or a theme is one property holding several editable values,\n * and a host draws them as a group. Declaring them here keeps them attached\n * to the prop they belong to rather than flattened into a list that has to\n * name its own parent.\n */\n properties?: Record<string, PropertyEditor>;\n /** Whatever a control needs that this vocabulary does not name. */\n [option: string]: unknown;\n}\n\n/** Symbol used to store @property metadata on class prototypes. */\nexport const PROPERTY_META = Symbol(\"propertyMeta\");\n\n/**\n * Retrieve all @property() metadata for an instance's class, including\n * inherited metadata. Ordered base class → subclass so applyProp calls\n * happen in the same order as the original manual constructor calls.\n */\nexport function getPropertyMeta(instance: object): PropertyMeta[] {\n const result: PropertyMeta[] = [];\n const chain: object[] = [];\n let proto = Object.getPrototypeOf(instance);\n while (proto && proto !== Object.prototype) {\n chain.unshift(proto);\n proto = Object.getPrototypeOf(proto);\n }\n const seen = new Set<string>();\n for (const p of chain) {\n const own: PropertyMeta[] | undefined = (p as any)[PROPERTY_META];\n if (own) {\n for (const m of own) {\n if (!seen.has(m.key)) {\n seen.add(m.key);\n result.push(m);\n }\n }\n }\n }\n return result;\n}\n\n/**\n * Legacy property decorator (`experimentalDecorators: true`) that registers\n * a reactive property on a SceneNode subclass.\n *\n * @example\n * ```ts\n * @property({ default: 0 }) declare x: number;\n *\n * @property({ mapper: fillOps.resolve, tween: fillOps.lerp })\n * declare fill: FillResolved[];\n * ```\n *\n * The `default` value is used when the corresponding key is absent from the\n * constructor `props` object. The `mapper` / `tween` options are forwarded\n * directly to `applyProp()`.\n */\nexport function property<Ext = any, Int = Ext>(opts?: {\n default?: Ext;\n mapper?: (ext: Ext, prev?: Int) => Int;\n tween?: TweenFn<Int>;\n} & PropertyEditor) {\n // Legacy decorator: (target: object, propertyKey: string | symbol) => void\n return function (target: object, propertyKey: string | symbol): void {\n const key = propertyKey as string;\n // `default`, `mapper` and `tween` drive the prop slot; everything else is\n // the editor's, and is carried rather than interpreted.\n const { default: fallback, mapper, tween, ...editor } = opts ?? {};\n const meta: PropertyMeta = {\n key,\n default: fallback,\n options: (mapper != null || tween != null)\n ? { mapper: mapper as ((ext: any) => any) | undefined, tween: tween as TweenFn<any> | undefined }\n : undefined,\n ...(Object.keys(editor).length > 0 ? { editor: editor as PropertyEditor } : {}),\n };\n\n // Store metadata on the class prototype (own property so getPropertyMeta\n // can distinguish each class's own entries from inherited ones).\n if (!Object.prototype.hasOwnProperty.call(target, PROPERTY_META)) {\n (target as any)[PROPERTY_META] = [];\n }\n const list: PropertyMeta[] = (target as any)[PROPERTY_META];\n if (!list.some(m => m.key === key)) {\n list.push(meta);\n }\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"decorator.js","sourceRoot":"","sources":["../../../src/attributes/properties/decorator.ts"],"names":[],"mappings":"AA8DA,kEAAkE;AAClE,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;AAEpD;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAAC,QAAgB;IAC5C,OAAO,WAAW,CAAe,QAAQ,EAAE,aAAa,CAAC,CAAC;AAC9D,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,WAAW,CAA4B,QAAgB,EAAE,MAAc;IACnF,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,IAAI,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;IAC5C,OAAO,KAAK,IAAI,KAAK,KAAK,MAAM,CAAC,SAAS,EAAE,CAAC;QACzC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACrB,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;IACzC,CAAC;IACD,MAAM,MAAM,GAAQ,EAAE,CAAC;IACvB,MAAM,EAAE,GAAG,IAAI,GAAG,EAAkB,CAAC;IACrC,KAAK,MAAM,CAAC,IAAI,KAAK,EAAE,CAAC;QACpB,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC;YAAE,SAAS;QAC/D,KAAK,MAAM,CAAC,IAAK,CAAyB,CAAC,MAAM,CAAC,EAAE,CAAC;YACjD,MAAM,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;YACxB,IAAI,CAAC,KAAK,SAAS,EAAE,CAAC;gBAClB,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;gBAC7B,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YACnB,CAAC;iBAAM,CAAC;gBACJ,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;YAClB,CAAC;QACL,CAAC;IACL,CAAC;IACD,OAAO,MAAM,CAAC;AAClB,CAAC;AASD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,UAAU,cAAc,CAC1B,IAAO,EACP,OAAuE;IAEvE,KAAK,MAAM,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAmC,EAAE,CAAC;QACtF,QAAQ,CAAC,IAAI,CAAC,SAAmB,EAAE,GAAG,CAAC,CAAC;IAC5C,CAAC;AACL,CAAC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,QAAQ,CAAuB,IAI7B;IACd,OAAO,UAAU,MAAc,EAAE,WAA4B;QACzD,MAAM,GAAG,GAAG,WAAqB,CAAC;QAClC,0EAA0E;QAC1E,wDAAwD;QACxD,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,EAAE,GAAG,IAAI,IAAI,EAAE,CAAC;QACnE,MAAM,IAAI,GAAiB;YACvB,GAAG;YACH,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,CAAC,MAAM,IAAI,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC;gBACtC,CAAC,CAAC,EAAE,MAAM,EAAE,MAAyC,EAAE,KAAK,EAAE,KAAiC,EAAE;gBACjG,CAAC,CAAC,SAAS;YACf,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,MAAwB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAClF,CAAC;QAEF,yEAAyE;QACzE,iEAAiE;QACjE,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,aAAa,CAAC,EAAE,CAAC;YAC9D,MAAc,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC;QACxC,CAAC;QACD,MAAM,IAAI,GAAoB,MAAc,CAAC,aAAa,CAAC,CAAC;QAC5D,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,EAAE,CAAC;YACjC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC;IACL,CAAC,CAAC;AACN,CAAC","sourcesContent":["import { TweenFn } from \"@/props/host\";\n\nexport interface PropOptions<Ext, Int> {\n /** Lerp the *internal* (post-mapper) value during `to()`. Each step is stored as it returns, not mapped again, so a prop that must hold a range under an overshooting ease clamps here too. */\n tween?: TweenFn<Int>;\n /** Converts the external input into the internal stored value. Receives the previous internal value as the second arg when available. */\n mapper?: (ext: Ext, prev?: Int) => Int;\n}\n\n\nexport interface PropertyMeta {\n key: string;\n default?: unknown;\n options?: PropOptions<any, any>;\n /** How a host edits this prop — see {@link PropertyEditor}. */\n editor?: PropertyEditor;\n /** @deprecated Nothing sets it: the engine withdraws no property. Kept so a host that tests it still compiles. */\n withdrawn?: boolean;\n}\n\n/**\n * What a host needs to draw a control for a property.\n *\n * Declared **on the property**, because that is the thing it edits. A node type\n * used to describe its controls in a separate list — a `fields` array beside the\n * class, or a manifest beside the package — and a list of props next to a class\n * of props is the shape that drifts: rename one and nothing says the other is\n * now describing something that no longer exists.\n *\n * Nothing here is read while rendering. A frame is identical whether a prop\n * declares a range or not; this exists so an editor has one place to ask.\n */\nexport interface PropertyEditor {\n /**\n * The control to draw. Inferred when absent — a typed entry knows its\n * own (`Types.color` is a colour), and a plain `property` reads it off\n * the default's type.\n */\n kind?: string;\n /** Bounds and granularity for a numeric control. */\n min?: number;\n max?: number;\n step?: number;\n /** What the number means, for a host that labels it — `\"°\"`, `\"s\"`, `\"×\"`. */\n unit?: string;\n /** The choices, for an enum. */\n options?: readonly string[];\n /** Whether a document may tween it. Defaults to true. */\n animatable?: boolean;\n /**\n * The controls *inside* an object-valued prop.\n *\n * An axis config or a theme is one property holding several editable values,\n * and a host draws them as a group. Declaring them here keeps them attached\n * to the prop they belong to rather than flattened into a list that has to\n * name its own parent.\n */\n properties?: Record<string, PropertyEditor>;\n /** Whatever a control needs that this vocabulary does not name. */\n [option: string]: unknown;\n}\n\n/** Symbol used to store property metadata on class prototypes. */\nexport const PROPERTY_META = Symbol(\"propertyMeta\");\n\n/**\n * Every `property` on an instance's class, inherited included, ordered base →\n * subclass so `initProps` applies them in declaration order. A subclass that\n * redeclares a key replaces the inherited declaration whole — default, mapper,\n * tween and editor — at the position the base gave it.\n */\nexport function getPropertyMeta(instance: object): PropertyMeta[] {\n return mostDerived<PropertyMeta>(instance, PROPERTY_META);\n}\n\n/**\n * The per-key declarations stored under `symbol` along `instance`'s prototype\n * chain: base first, one entry per key, the most-derived declaration of each.\n */\nexport function mostDerived<M extends { key: string }>(instance: object, symbol: symbol): M[] {\n const chain: object[] = [];\n let proto = Object.getPrototypeOf(instance);\n while (proto && proto !== Object.prototype) {\n chain.unshift(proto);\n proto = Object.getPrototypeOf(proto);\n }\n const result: M[] = [];\n const at = new Map<string, number>();\n for (const p of chain) {\n if (!Object.prototype.hasOwnProperty.call(p, symbol)) continue;\n for (const m of (p as Record<symbol, M[]>)[symbol]) {\n const i = at.get(m.key);\n if (i === undefined) {\n at.set(m.key, result.length);\n result.push(m);\n } else {\n result[i] = m;\n }\n }\n }\n return result;\n}\n\n/**\n * A registration for one member of a node class: what `property(...)` and\n * `command(...)` return, applied to the class's prototype under the member's\n * key by {@link declareMembers}.\n */\nexport type MemberRegistration = (target: object, key: string) => void;\n\n/**\n * Registers properties and commands on a node class, in the order given.\n *\n * Core's own base classes (`Node`, `Node2D`, `Node3D`, …) declare their props\n * as `declare` fields and register them here, right after the class body.\n * Order is meaningful: {@link getPropertyMeta} lists properties in\n * registration order, which is the order `Registry.describe` hands a host's\n * inspector, so a new entry goes where it should appear.\n *\n * @example\n * ```ts\n * class Dial extends Node2D<DialProps> {\n * declare level: number;\n * turn(args: CommandArgs<{ by: number }>) { … }\n * }\n * declareMembers(Dial, {\n * level: property({ default: 0 }),\n * turn: command({ args: [\"by\"] }),\n * });\n * ```\n *\n * Node types outside core are components (`component2d`), which do this for\n * their `props` and `commands` themselves.\n */\nexport function declareMembers<C extends abstract new (...args: never[]) => object>(\n ctor: C,\n members: { [K in keyof InstanceType<C> & string]?: MemberRegistration },\n): void {\n for (const [key, register] of Object.entries(members) as [string, MemberRegistration][]) {\n register(ctor.prototype as object, key);\n }\n}\n\n/**\n * Declares a property on a `Node` subclass: applied to the prototype under the\n * property's key, directly or through {@link declareMembers}. Redeclaring an\n * inherited key overrides it; see {@link getPropertyMeta}.\n *\n * @example\n * ```ts\n * declareMembers(Glow, {\n * radius: property({ default: 0 }),\n * fill: property({ mapper: fillOps.resolve, tween: fillOps.lerp }),\n * });\n * ```\n *\n * The `default` value is used when the corresponding key is absent from the\n * constructor `props` object. The `mapper` / `tween` options are forwarded\n * directly to `applyProp()`.\n */\nexport function property<Ext = any, Int = Ext>(opts?: {\n default?: Ext;\n mapper?: (ext: Ext, prev?: Int) => Int;\n tween?: TweenFn<Int>;\n} & PropertyEditor) {\n return function (target: object, propertyKey: string | symbol): void {\n const key = propertyKey as string;\n // `default`, `mapper` and `tween` drive the prop slot; everything else is\n // the editor's, and is carried rather than interpreted.\n const { default: fallback, mapper, tween, ...editor } = opts ?? {};\n const meta: PropertyMeta = {\n key,\n default: fallback,\n options: (mapper != null || tween != null)\n ? { mapper: mapper as ((ext: any) => any) | undefined, tween: tween as TweenFn<any> | undefined }\n : undefined,\n ...(Object.keys(editor).length > 0 ? { editor: editor as PropertyEditor } : {}),\n };\n\n // Store metadata on the class prototype (own property so getPropertyMeta\n // can distinguish each class's own entries from inherited ones).\n if (!Object.prototype.hasOwnProperty.call(target, PROPERTY_META)) {\n (target as any)[PROPERTY_META] = [];\n }\n const list: PropertyMeta[] = (target as any)[PROPERTY_META];\n if (!list.some(m => m.key === key)) {\n list.push(meta);\n }\n };\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Reactive-prop input shapes. A
|
|
2
|
+
* Reactive-prop input shapes. A `property`-backed field accepts either a plain
|
|
3
3
|
* value or a `() => value` callback that binds the prop to a derived value
|
|
4
4
|
* (re-evaluated whenever its dependencies change).
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Reactive-prop input shapes. A
|
|
2
|
+
* Reactive-prop input shapes. A `property`-backed field accepts either a plain
|
|
3
3
|
* value or a `() => value` callback that binds the prop to a derived value
|
|
4
4
|
* (re-evaluated whenever its dependencies change).
|
|
5
5
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputs.js","sourceRoot":"","sources":["../../../src/attributes/properties/inputs.ts"],"names":[],"mappings":"AAAA;;;;GAIG","sourcesContent":["/**\n * Reactive-prop input shapes. A
|
|
1
|
+
{"version":3,"file":"inputs.js","sourceRoot":"","sources":["../../../src/attributes/properties/inputs.ts"],"names":[],"mappings":"AAAA;;;;GAIG","sourcesContent":["/**\n * Reactive-prop input shapes. A `property`-backed field accepts either a plain\n * value or a `() => value` callback that binds the prop to a derived value\n * (re-evaluated whenever its dependencies change).\n */\n\n/** @internal A single prop input: a constant value or a reactive callback producing it. */\nexport type PropInput<T> = T | (() => T);\n\n/** @internal Maps every key of a props object to its {@link PropInput} form. */\nexport type PropInputs<P> = {\n [K in keyof P]?: P[K] | (() => P[K]);\n};\n"]}
|
|
@@ -1,57 +1,29 @@
|
|
|
1
1
|
import { TweenFn } from "../../props/host.js";
|
|
2
2
|
import { type Fill } from "../../attributes/shape/fill/chain.js";
|
|
3
3
|
import { FillResolved } from "../../attributes/shape/fill/union.js";
|
|
4
|
-
import { Color, NormalizedColor } from "../../attributes/shape/fill/color/parser.js";
|
|
5
|
-
import { type Stroke, StrokeResolved } from "../../attributes/shape/stroke/stroke.js";
|
|
6
|
-
import { type Shadow, ShadowResolved } from "../../attributes/shape/shadow/shadow.js";
|
|
7
4
|
import { type Effect } from "../../attributes/shape/effects/chain.js";
|
|
8
|
-
import {
|
|
9
|
-
import { RectCornerRadius, CornerRadiusResolved } from "../../attributes/shape/corners/corner-radius.js";
|
|
10
|
-
import { RectCornerStyle, CornerStyleResolved } from "../../attributes/shape/corners/corner-style.js";
|
|
5
|
+
import { NodeEffect } from "../../attributes/shape/effects/union.js";
|
|
11
6
|
import { Insets, InsetsResolved } from "../../attributes/layout/insets.js";
|
|
12
7
|
import { Alignment } from "../../attributes/layout/alignment.js";
|
|
13
8
|
import { Vector2 } from "../../attributes/layout/vector2.js";
|
|
14
|
-
import { SizeInput } from "../../attributes/layout/size.js";
|
|
15
9
|
import type { FlowMode, FlowResolved } from "../../layout/types.js";
|
|
16
|
-
import { type
|
|
17
|
-
import {
|
|
18
|
-
import { type Param } from "../../attributes/audio/
|
|
19
|
-
import { type
|
|
20
|
-
import { PathData } from "../../render/descriptors/path.js";
|
|
10
|
+
import { type AudioEffectsInput } from "../../attributes/audio/effects/chain.js";
|
|
11
|
+
import { AudioEffect } from "../../attributes/audio/effects/union.js";
|
|
12
|
+
import { type Param } from "../../attributes/audio/ramp.js";
|
|
13
|
+
import { type Quaternion } from "../../render3d/vector3.js";
|
|
21
14
|
/**
|
|
22
|
-
* Attribute-typed variants of
|
|
15
|
+
* Attribute-typed variants of `property`, for the props the tree bases declare
|
|
16
|
+
* themselves (`Node2D`, `Node3D`, `NodeAudio`, the root `Canvas2D`).
|
|
23
17
|
*
|
|
24
|
-
* A rich attribute (a fill,
|
|
25
|
-
* tweenable because its
|
|
18
|
+
* A rich attribute (a fill, an effect chain, an inset) is only declarative and
|
|
19
|
+
* tweenable because its `property` carries the matching *mapper* (loose author
|
|
26
20
|
* input → resolved value) and *tween* (how the resolved value interpolates) —
|
|
27
|
-
* together, an `AttributeOps` (`attributes/shared/operators.ts`).
|
|
28
|
-
* pair
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* These decorators pre-bake each attribute's `AttributeOps`. `@fillProperty()` is
|
|
33
|
-
* exactly `@property({ default: [], mapper: fillOps.resolve, tween: fillOps.lerp })`,
|
|
34
|
-
* so everything downstream — `set()`, `to()`, `save()`/`restore()`, `() => …`
|
|
35
|
-
* bindings — behaves identically; only the declaration gets shorter.
|
|
36
|
-
*
|
|
37
|
-
* ```ts
|
|
38
|
-
* class Card extends Rect {
|
|
39
|
-
* @fillProperty({ default: "white/10" }) declare glow: Fill;
|
|
40
|
-
* @strokeProperty() declare edge: Stroke;
|
|
41
|
-
* @cornerRadiusProperty({ default: 12 }) declare notch: RectCornerRadius;
|
|
42
|
-
* }
|
|
43
|
-
*
|
|
44
|
-
* // <Card glow="red" /> · card().to({ data: { glow: Fills.linearGradient([...]) }, duration: 0.6 })
|
|
45
|
-
* ```
|
|
46
|
-
*
|
|
47
|
-
* Each takes the same options as `@property` — `default`, plus `mapper`/`tween`
|
|
48
|
-
* to override the built-in pair for a one-off case.
|
|
49
|
-
*
|
|
50
|
-
* As with `@property`, the field is declared with the **loose author-facing**
|
|
51
|
-
* type (`Fill`, not `FillResolved[]`) so assignment and reads share one type;
|
|
52
|
-
* the accessor stores the resolved value and consumers cast at the read site.
|
|
21
|
+
* together, an `AttributeOps` (`attributes/shared/operators.ts`). These pre-bake
|
|
22
|
+
* each pair: `fillProperty()` is exactly
|
|
23
|
+
* `property({ default: [], mapper: fillOps.resolve, tween: fillOps.lerp, kind: "fills" })`.
|
|
24
|
+
* A component declares the same pairs as state entries (`Types.fill`, …).
|
|
53
25
|
*/
|
|
54
|
-
|
|
26
|
+
interface AttributePropOptions<Ext, Int> {
|
|
55
27
|
/** Initial value, used when the constructor `props` object omits the key. */
|
|
56
28
|
default?: Ext;
|
|
57
29
|
/** Override the attribute's built-in external → internal mapper. */
|
|
@@ -59,57 +31,12 @@ export interface AttributePropOptions<Ext, Int> {
|
|
|
59
31
|
/** Override the attribute's built-in lerp for `to()`. */
|
|
60
32
|
tween?: TweenFn<Int>;
|
|
61
33
|
}
|
|
62
|
-
/**
|
|
63
|
-
* A fill-layer property: accepts everything the built-in `fill` prop does (a CSS
|
|
64
|
-
* string, a fill prop object, a `Fills` chain, or an array of them) and lerps
|
|
65
|
-
* layer-by-layer.
|
|
66
|
-
*
|
|
67
|
-
* Note this only makes the *property* behave like `fill`; the node still has to
|
|
68
|
-
* paint it (`ctx.draw(g.fill(this.glow as FillResolved[]))`). Assets referenced
|
|
69
|
-
* by the fill (images, videos, 3D surfaces) are discovered from that draw, so
|
|
70
|
-
* nothing extra is needed to make them load.
|
|
71
|
-
*/
|
|
34
|
+
/** A fill-layer property: a CSS string, a fill prop object, a `Fills` chain, or an array of them, lerped layer by layer. */
|
|
72
35
|
export declare const fillProperty: (opts?: (AttributePropOptions<Fill, FillResolved[]> & {
|
|
73
36
|
kind?: string;
|
|
74
37
|
}) | undefined) => (target: object, propertyKey: string | symbol) => void;
|
|
75
|
-
/** A stroke-layer property — the `stroke` prop's op set. */
|
|
76
|
-
export declare const strokeProperty: (opts?: (AttributePropOptions<Stroke, StrokeResolved[]> & {
|
|
77
|
-
kind?: string;
|
|
78
|
-
}) | undefined) => (target: object, propertyKey: string | symbol) => void;
|
|
79
|
-
/** A shadow-layer property — the `shadow` prop's op set. */
|
|
80
|
-
export declare const shadowProperty: (opts?: (AttributePropOptions<Shadow, ShadowResolved[]> & {
|
|
81
|
-
kind?: string;
|
|
82
|
-
}) | undefined) => (target: object, propertyKey: string | symbol) => void;
|
|
83
38
|
/** An effect-chain property — the `effects` prop's op set. */
|
|
84
|
-
export declare const effectsProperty: (opts?: (AttributePropOptions<Effect,
|
|
85
|
-
kind?: string;
|
|
86
|
-
}) | undefined) => (target: object, propertyKey: string | symbol) => void;
|
|
87
|
-
/**
|
|
88
|
-
* A tweenable colour property: parses CSS strings, `oklch()`, theme tokens and
|
|
89
|
-
* `"white/10"` alpha suffixes, and interpolates in normalized space.
|
|
90
|
-
*
|
|
91
|
-
* The stored value is a {@link NormalizedColor} (a `[r, g, b, a]` tuple), which
|
|
92
|
-
* is *not* a `FillProp` on its own — hand it to a fill rather than painting it
|
|
93
|
-
* directly: `g.fill(Fills.color(this.tint))` or `g.fill({ type: 'solid', color:
|
|
94
|
-
* this.tint })`. For a property that is itself a paint layer, use
|
|
95
|
-
* {@link fillProperty}.
|
|
96
|
-
*/
|
|
97
|
-
export declare const colorProperty: (opts?: (AttributePropOptions<Color, NormalizedColor> & {
|
|
98
|
-
kind?: string;
|
|
99
|
-
}) | undefined) => (target: object, propertyKey: string | symbol) => void;
|
|
100
|
-
/** A corner-radius property: uniform, per-corner or per-axis, tweened per corner. */
|
|
101
|
-
export declare const cornerRadiusProperty: (opts?: (AttributePropOptions<RectCornerRadius, CornerRadiusResolved> & {
|
|
102
|
-
kind?: string;
|
|
103
|
-
}) | undefined) => (target: object, propertyKey: string | symbol) => void;
|
|
104
|
-
/** A corner-style property (`'rounded'` / `'angled'`), per corner. */
|
|
105
|
-
export declare const cornerStyleProperty: (opts?: (AttributePropOptions<RectCornerStyle, CornerStyleResolved> & {
|
|
106
|
-
kind?: string;
|
|
107
|
-
}) | undefined) => (target: object, propertyKey: string | symbol) => void;
|
|
108
|
-
/**
|
|
109
|
-
* A path-geometry property: an SVG path string or command list, morphed between
|
|
110
|
-
* arbitrary shapes by `to()`.
|
|
111
|
-
*/
|
|
112
|
-
export declare const pathProperty: (opts?: (AttributePropOptions<PathData, PathData> & {
|
|
39
|
+
export declare const effectsProperty: (opts?: (AttributePropOptions<Effect, NodeEffect[]> & {
|
|
113
40
|
kind?: string;
|
|
114
41
|
}) | undefined) => (target: object, propertyKey: string | symbol) => void;
|
|
115
42
|
/** An edge-inset property: scalar, symmetric or per-edge, tweened per edge. */
|
|
@@ -118,14 +45,8 @@ export declare const insetsProperty: (opts?: (AttributePropOptions<Insets, Inset
|
|
|
118
45
|
}) | undefined) => (target: object, propertyKey: string | symbol) => void;
|
|
119
46
|
/**
|
|
120
47
|
* An alignment property: a named position (`'center'`, `'topLeft'`, …) resolved
|
|
121
|
-
* to a per-axis {@link Vector2} in `[-1, 1]
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
* One decorator for every "which point of this box" prop — `Node2D.pivot`, a
|
|
125
|
-
* container's `align`, an image fill's `anchor`. They previously had two
|
|
126
|
-
* decorators (`alignProperty`/`pivotProperty`) that differed only in whether the
|
|
127
|
-
* default was spelled `'center'` or `{ x: 0, y: 0 }` — the same value either side
|
|
128
|
-
* of `resolveAlignment`.
|
|
48
|
+
* to a per-axis {@link Vector2} in `[-1, 1]`, tweened as a vector so
|
|
49
|
+
* `'centerLeft' → 'centerRight'` slides.
|
|
129
50
|
*/
|
|
130
51
|
export declare const alignmentProperty: (opts?: (AttributePropOptions<Alignment, Vector2> & {
|
|
131
52
|
kind?: string;
|
|
@@ -137,45 +58,12 @@ export declare const alignmentProperty: (opts?: (AttributePropOptions<Alignment,
|
|
|
137
58
|
export declare const flowProperty: (opts?: (AttributePropOptions<FlowMode, FlowResolved> & {
|
|
138
59
|
kind?: string;
|
|
139
60
|
}) | undefined) => (target: object, propertyKey: string | symbol) => void;
|
|
140
|
-
/** A plain 2D point property, tweened component-wise. */
|
|
141
|
-
export declare const vector2Property: (opts?: (AttributePropOptions<Vector2, Vector2> & {
|
|
142
|
-
kind?: string;
|
|
143
|
-
}) | undefined) => (target: object, propertyKey: string | symbol) => void;
|
|
144
|
-
/**
|
|
145
|
-
* A size property: a pixel number or the `'fill'` / `'hug'` layout keywords,
|
|
146
|
-
* tweened the way `width`/`height` are (keywords snap; numbers interpolate).
|
|
147
|
-
*/
|
|
148
|
-
export declare const sizeProperty: (opts?: (AttributePropOptions<SizeInput, SizeInput> & {
|
|
149
|
-
kind?: string;
|
|
150
|
-
}) | undefined) => (target: object, propertyKey: string | symbol) => void;
|
|
151
|
-
/**
|
|
152
|
-
* A text property tweened with the same character-level interpolation as
|
|
153
|
-
* `Text.text`, so `to({ label })` types/untypes rather than snapping.
|
|
154
|
-
*/
|
|
155
|
-
export declare const textProperty: (opts?: (AttributePropOptions<string, string> & {
|
|
156
|
-
kind?: string;
|
|
157
|
-
}) | undefined) => (target: object, propertyKey: string | symbol) => void;
|
|
158
61
|
/**
|
|
159
|
-
* A 3D
|
|
160
|
-
*
|
|
161
|
-
* {@link
|
|
162
|
-
*
|
|
163
|
-
* The mapper is what makes `position={2}` and `position={[0, 1, 0]}` the same
|
|
164
|
-
* kind of thing, and the tween is what makes `to({ position: [0, 3, 0] })`
|
|
165
|
-
* interpolate rather than snap.
|
|
62
|
+
* A 3D point that may be unset: a node's `lookAt`. It defaults to unset (not to
|
|
63
|
+
* the origin), stays unset when a binding returns `undefined`, and tweens with
|
|
64
|
+
* `to()` — from `unset`'s reading of an unset start (see {@link lerpOptionalVector3}).
|
|
166
65
|
*/
|
|
167
|
-
export declare
|
|
168
|
-
kind?: string;
|
|
169
|
-
}) | undefined) => (target: object, propertyKey: string | symbol) => void;
|
|
170
|
-
/**
|
|
171
|
-
* A Euler rotation in **degrees**, matching 2D `rotation`.
|
|
172
|
-
*
|
|
173
|
-
* Interpolated per axis. For a tumble where that would gimbal, declare the prop
|
|
174
|
-
* with {@link quaternionProperty} instead and tween the quaternion.
|
|
175
|
-
*/
|
|
176
|
-
export declare const euler3Property: (opts?: (AttributePropOptions<Vector3Input | Euler3, Euler3> & {
|
|
177
|
-
kind?: string;
|
|
178
|
-
}) | undefined) => (target: object, propertyKey: string | symbol) => void;
|
|
66
|
+
export declare function optionalVector3Property(unset: "origin" | "snap"): (target: object, propertyKey: string | symbol) => void;
|
|
179
67
|
/** A rotation as a unit quaternion, interpolated with shortest-arc slerp. */
|
|
180
68
|
export declare const quaternionProperty: (opts?: (AttributePropOptions<Quaternion, Quaternion> & {
|
|
181
69
|
kind?: string;
|
|
@@ -185,22 +73,20 @@ export declare const quaternionProperty: (opts?: (AttributePropOptions<Quaternio
|
|
|
185
73
|
*
|
|
186
74
|
* `Param`, not `number`, because an `AudioRequest` is a schedule record built
|
|
187
75
|
* once during precomp: a per-frame prop write would be read on whichever frame
|
|
188
|
-
* happened to create the request and then never again
|
|
189
|
-
*
|
|
190
|
-
* graph as `setValueCurveAtTime` and the offline mixer identically — which is
|
|
191
|
-
* why the tween here interpolates between whole curves rather than between two
|
|
192
|
-
* numbers a frame apart.
|
|
76
|
+
* happened to create the request and then never again. A `Ramp` *is* the
|
|
77
|
+
* automation lane, which is why the tween interpolates between whole ramps.
|
|
193
78
|
*/
|
|
194
79
|
export declare const audioParamProperty: (opts?: (AttributePropOptions<Param, Param> & {
|
|
195
80
|
kind?: string;
|
|
196
81
|
}) | undefined) => (target: object, propertyKey: string | symbol) => void;
|
|
197
82
|
/**
|
|
198
|
-
* An audio
|
|
83
|
+
* An audio effect chain — the `effects` prop's op set.
|
|
199
84
|
*
|
|
200
85
|
* Without it a chain is an object-valued prop, and `Node._prepareStep` drops
|
|
201
86
|
* those silently: the tween would run its duration and write nothing.
|
|
202
87
|
*/
|
|
203
|
-
export declare const
|
|
88
|
+
export declare const audioEffectsProperty: (opts?: (AttributePropOptions<AudioEffectsInput, AudioEffect[]> & {
|
|
204
89
|
kind?: string;
|
|
205
90
|
}) | undefined) => (target: object, propertyKey: string | symbol) => void;
|
|
91
|
+
export {};
|
|
206
92
|
//# sourceMappingURL=typed.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typed.d.ts","sourceRoot":"","sources":["../../../src/attributes/properties/typed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGvC,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"typed.d.ts","sourceRoot":"","sources":["../../../src/attributes/properties/typed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGvC,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAG7D,OAAO,EAAE,KAAK,MAAM,EAAc,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAE9D,OAAO,EAAE,MAAM,EAAE,cAAc,EAAa,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAgB,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAEtD,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE7D,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAE1E,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,KAAK,KAAK,EAAiB,MAAM,yBAAyB,CAAC;AAEpE,OAAO,EAEH,KAAK,UAAU,EAClB,MAAM,oBAAoB,CAAC;AAE5B;;;;;;;;;;;GAWG;AACH,UAAU,oBAAoB,CAAC,GAAG,EAAE,GAAG;IACnC,6EAA6E;IAC7E,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,oEAAoE;IACpE,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,GAAG,KAAK,GAAG,CAAC;IACvC,yDAAyD;IACzD,KAAK,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;CACxB;AAyBD,4HAA4H;AAC5H,eAAO,MAAM,YAAY;WAVoC,MAAM;yEAUkD,CAAC;AAEtH,8DAA8D;AAC9D,eAAO,MAAM,eAAe;WAbiC,MAAM;yEAa6D,CAAC;AAEjI,+EAA+E;AAC/E,eAAO,MAAM,cAAc;WAhBkC,MAAM;yEAgB0D,CAAC;AAE9H;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;WAvB+B,MAAM;yEAuByE,CAAC;AAE7I;;;GAGG;AACH,eAAO,MAAM,YAAY;WA7BoC,MAAM;yEA6B6C,CAAC;AAEjH;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,QAAQ,GAAG,MAAM,0DAO/D;AAED,6EAA6E;AAC7E,eAAO,MAAM,kBAAkB;WA9C8B,MAAM;yEAgDlE,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB;WA1D8B,MAAM;yEA0DoD,CAAC;AAExH;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB;WAlE4B,MAAM;yEAoElE,CAAC"}
|
|
@@ -1,33 +1,18 @@
|
|
|
1
1
|
import { property } from "./decorator.js";
|
|
2
2
|
import { fillOps } from "../../attributes/shape/fill/registry.js";
|
|
3
|
-
import { colorOps } from "../../attributes/shape/fill/lerp.js";
|
|
4
|
-
import { strokeOps } from "../../attributes/shape/stroke/stroke.js";
|
|
5
|
-
import { shadowOps } from "../../attributes/shape/shadow/shadow.js";
|
|
6
3
|
import { effectsOps } from "../../attributes/shape/effects/chain.js";
|
|
7
|
-
import { cornerRadiusOps } from "../../attributes/shape/corners/corner-radius.js";
|
|
8
|
-
import { cornerStyleOps } from "../../attributes/shape/corners/corner-style.js";
|
|
9
|
-
import { pathOps } from "../../attributes/shape/path/ops.js";
|
|
10
4
|
import { insetsOps } from "../../attributes/layout/insets.js";
|
|
11
5
|
import { alignmentOps } from "../../attributes/layout/alignment.js";
|
|
12
|
-
import { vector2Ops } from "../../attributes/layout/vector2.js";
|
|
13
|
-
import { sizeInputOps } from "../../attributes/layout/size.js";
|
|
14
6
|
import { flowOps } from "../../layout/ops.js";
|
|
15
|
-
import {
|
|
16
|
-
import { audioParamOps } from "../../attributes/audio/
|
|
17
|
-
import {
|
|
18
|
-
import { vector3Ops, euler3Ops, quaternionOps, } from "../../render3d/vector3.js";
|
|
7
|
+
import { audioEffectsOps } from "../../attributes/audio/effects/registry.js";
|
|
8
|
+
import { audioParamOps } from "../../attributes/audio/ramp.js";
|
|
9
|
+
import { quaternionOps, lerpOptionalVector3, resolveOptionalVector3, } from "../../render3d/vector3.js";
|
|
19
10
|
/**
|
|
20
|
-
* Build one attribute-typed
|
|
11
|
+
* Build one attribute-typed `property` from its canonical {@link AttributeOps}.
|
|
21
12
|
*
|
|
22
13
|
* `fallback` is a factory rather than a value so array/object defaults aren't a
|
|
23
|
-
* single instance shared by every property declared through
|
|
24
|
-
*
|
|
25
|
-
* An **explicit** `default: undefined` means "this prop has no default" and is
|
|
26
|
-
* honoured as such — the key's presence is what's tested, not its value. That
|
|
27
|
-
* distinction matters for an optional attribute whose absence is meaningful: a
|
|
28
|
-
* light with no `color` must stay absent from the descriptor so the renderer's own
|
|
29
|
-
* default applies, where folding it onto the fallback would silently paint every
|
|
30
|
-
* light black.
|
|
14
|
+
* single instance shared by every property declared through it. An **explicit**
|
|
15
|
+
* `default: undefined` means "this prop has no default" and is honoured as such.
|
|
31
16
|
*/
|
|
32
17
|
function attributeProperty(fallback, mapper, tween,
|
|
33
18
|
/** The control a host draws for this attribute, when it is not the default. */
|
|
@@ -36,65 +21,19 @@ kind) {
|
|
|
36
21
|
default: opts && "default" in opts ? opts.default : fallback(),
|
|
37
22
|
mapper: opts?.mapper ?? mapper,
|
|
38
23
|
tween: opts?.tween ?? tween,
|
|
39
|
-
// A typed decorator knows what it edits, so a caller never has to
|
|
40
|
-
// say — but may, for an attribute a host draws specially.
|
|
41
24
|
...(opts?.kind ?? kind ? { kind: opts?.kind ?? kind } : {}),
|
|
42
25
|
});
|
|
43
26
|
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* A fill-layer property: accepts everything the built-in `fill` prop does (a CSS
|
|
47
|
-
* string, a fill prop object, a `Fills` chain, or an array of them) and lerps
|
|
48
|
-
* layer-by-layer.
|
|
49
|
-
*
|
|
50
|
-
* Note this only makes the *property* behave like `fill`; the node still has to
|
|
51
|
-
* paint it (`ctx.draw(g.fill(this.glow as FillResolved[]))`). Assets referenced
|
|
52
|
-
* by the fill (images, videos, 3D surfaces) are discovered from that draw, so
|
|
53
|
-
* nothing extra is needed to make them load.
|
|
54
|
-
*/
|
|
27
|
+
/** A fill-layer property: a CSS string, a fill prop object, a `Fills` chain, or an array of them, lerped layer by layer. */
|
|
55
28
|
export const fillProperty = attributeProperty(() => [], fillOps.resolve, fillOps.lerp, "fills");
|
|
56
|
-
/** A stroke-layer property — the `stroke` prop's op set. */
|
|
57
|
-
export const strokeProperty = attributeProperty(() => [], strokeOps.resolve, strokeOps.lerp, "strokes");
|
|
58
|
-
/** A shadow-layer property — the `shadow` prop's op set. */
|
|
59
|
-
export const shadowProperty = attributeProperty(() => [], shadowOps.resolve, shadowOps.lerp, "shadows");
|
|
60
29
|
/** An effect-chain property — the `effects` prop's op set. */
|
|
61
30
|
export const effectsProperty = attributeProperty(() => [], effectsOps.resolve, effectsOps.lerp, "effects");
|
|
62
|
-
/**
|
|
63
|
-
* A tweenable colour property: parses CSS strings, `oklch()`, theme tokens and
|
|
64
|
-
* `"white/10"` alpha suffixes, and interpolates in normalized space.
|
|
65
|
-
*
|
|
66
|
-
* The stored value is a {@link NormalizedColor} (a `[r, g, b, a]` tuple), which
|
|
67
|
-
* is *not* a `FillProp` on its own — hand it to a fill rather than painting it
|
|
68
|
-
* directly: `g.fill(Fills.color(this.tint))` or `g.fill({ type: 'solid', color:
|
|
69
|
-
* this.tint })`. For a property that is itself a paint layer, use
|
|
70
|
-
* {@link fillProperty}.
|
|
71
|
-
*/
|
|
72
|
-
export const colorProperty = attributeProperty(() => "black", colorOps.resolve, colorOps.lerp, "color");
|
|
73
|
-
// ---- Geometry -------------------------------------------------------------
|
|
74
|
-
/** A corner-radius property: uniform, per-corner or per-axis, tweened per corner. */
|
|
75
|
-
export const cornerRadiusProperty = attributeProperty(() => 0, cornerRadiusOps.resolve, cornerRadiusOps.lerp, "cornerRadius");
|
|
76
|
-
/** A corner-style property (`'rounded'` / `'angled'`), per corner. */
|
|
77
|
-
export const cornerStyleProperty = attributeProperty(() => "rounded", cornerStyleOps.resolve, cornerStyleOps.lerp, "cornerStyle");
|
|
78
|
-
/**
|
|
79
|
-
* A path-geometry property: an SVG path string or command list, morphed between
|
|
80
|
-
* arbitrary shapes by `to()`.
|
|
81
|
-
*/
|
|
82
|
-
// `resolve` is identity for these (no mapper is passed) so a write skips the
|
|
83
|
-
// mapper-cell indirection entirely — see `applyProp` in `node-reactive.ts`.
|
|
84
|
-
export const pathProperty = attributeProperty(() => "", undefined, pathOps.lerp, "path");
|
|
85
|
-
// ---- Layout ---------------------------------------------------------------
|
|
86
31
|
/** An edge-inset property: scalar, symmetric or per-edge, tweened per edge. */
|
|
87
32
|
export const insetsProperty = attributeProperty(() => 0, insetsOps.resolve, insetsOps.lerp, "insets");
|
|
88
33
|
/**
|
|
89
34
|
* An alignment property: a named position (`'center'`, `'topLeft'`, …) resolved
|
|
90
|
-
* to a per-axis {@link Vector2} in `[-1, 1]
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
* One decorator for every "which point of this box" prop — `Node2D.pivot`, a
|
|
94
|
-
* container's `align`, an image fill's `anchor`. They previously had two
|
|
95
|
-
* decorators (`alignProperty`/`pivotProperty`) that differed only in whether the
|
|
96
|
-
* default was spelled `'center'` or `{ x: 0, y: 0 }` — the same value either side
|
|
97
|
-
* of `resolveAlignment`.
|
|
35
|
+
* to a per-axis {@link Vector2} in `[-1, 1]`, tweened as a vector so
|
|
36
|
+
* `'centerLeft' → 'centerRight'` slides.
|
|
98
37
|
*/
|
|
99
38
|
export const alignmentProperty = attributeProperty(() => "center", alignmentOps.resolve, alignmentOps.lerp, "alignment");
|
|
100
39
|
/**
|
|
@@ -102,56 +41,35 @@ export const alignmentProperty = attributeProperty(() => "center", alignmentOps.
|
|
|
102
41
|
* restoring the prop — which is what a seek does — restores the blend with it.
|
|
103
42
|
*/
|
|
104
43
|
export const flowProperty = attributeProperty(() => "freeform", undefined, flowOps.lerp);
|
|
105
|
-
/** A plain 2D point property, tweened component-wise. */
|
|
106
|
-
export const vector2Property = attributeProperty(() => ({ x: 0, y: 0 }), undefined, vector2Ops.lerp, "vector2");
|
|
107
44
|
/**
|
|
108
|
-
* A
|
|
109
|
-
*
|
|
45
|
+
* A 3D point that may be unset: a node's `lookAt`. It defaults to unset (not to
|
|
46
|
+
* the origin), stays unset when a binding returns `undefined`, and tweens with
|
|
47
|
+
* `to()` — from `unset`'s reading of an unset start (see {@link lerpOptionalVector3}).
|
|
110
48
|
*/
|
|
111
|
-
export
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
* A 3D position or scale, from the loose {@link Vector3Input} an author writes
|
|
120
|
-
* (`[1, 2, 3]`, `{ x, y, z }`, or a scalar for "all three") to the resolved
|
|
121
|
-
* {@link Vector3} the renderer reads.
|
|
122
|
-
*
|
|
123
|
-
* The mapper is what makes `position={2}` and `position={[0, 1, 0]}` the same
|
|
124
|
-
* kind of thing, and the tween is what makes `to({ position: [0, 3, 0] })`
|
|
125
|
-
* interpolate rather than snap.
|
|
126
|
-
*/
|
|
127
|
-
export const vector3Property = attributeProperty(() => ({ x: 0, y: 0, z: 0 }), vector3Ops.resolve, vector3Ops.lerp, "vector3");
|
|
128
|
-
/**
|
|
129
|
-
* A Euler rotation in **degrees**, matching 2D `rotation`.
|
|
130
|
-
*
|
|
131
|
-
* Interpolated per axis. For a tumble where that would gimbal, declare the prop
|
|
132
|
-
* with {@link quaternionProperty} instead and tween the quaternion.
|
|
133
|
-
*/
|
|
134
|
-
export const euler3Property = attributeProperty(() => ({ x: 0, y: 0, z: 0 }), euler3Ops.resolve, euler3Ops.lerp, "euler3");
|
|
49
|
+
export function optionalVector3Property(unset) {
|
|
50
|
+
return property({
|
|
51
|
+
default: undefined,
|
|
52
|
+
mapper: resolveOptionalVector3,
|
|
53
|
+
tween: (from, to, t) => lerpOptionalVector3(from, to, t, unset),
|
|
54
|
+
kind: "vector3",
|
|
55
|
+
});
|
|
56
|
+
}
|
|
135
57
|
/** A rotation as a unit quaternion, interpolated with shortest-arc slerp. */
|
|
136
58
|
export const quaternionProperty = attributeProperty(() => ({ x: 0, y: 0, z: 0, w: 1 }), undefined, quaternionOps.lerp, "quaternion");
|
|
137
|
-
// ---- Audio ----------------------------------------------------------------
|
|
138
59
|
/**
|
|
139
60
|
* An audio level — a gain, a pan position, anything a clip or a bus schedules.
|
|
140
61
|
*
|
|
141
62
|
* `Param`, not `number`, because an `AudioRequest` is a schedule record built
|
|
142
63
|
* once during precomp: a per-frame prop write would be read on whichever frame
|
|
143
|
-
* happened to create the request and then never again
|
|
144
|
-
*
|
|
145
|
-
* graph as `setValueCurveAtTime` and the offline mixer identically — which is
|
|
146
|
-
* why the tween here interpolates between whole curves rather than between two
|
|
147
|
-
* numbers a frame apart.
|
|
64
|
+
* happened to create the request and then never again. A `Ramp` *is* the
|
|
65
|
+
* automation lane, which is why the tween interpolates between whole ramps.
|
|
148
66
|
*/
|
|
149
67
|
export const audioParamProperty = attributeProperty(() => 0, undefined, audioParamOps.lerp, "audioParam");
|
|
150
68
|
/**
|
|
151
|
-
* An audio
|
|
69
|
+
* An audio effect chain — the `effects` prop's op set.
|
|
152
70
|
*
|
|
153
71
|
* Without it a chain is an object-valued prop, and `Node._prepareStep` drops
|
|
154
72
|
* those silently: the tween would run its duration and write nothing.
|
|
155
73
|
*/
|
|
156
|
-
export const
|
|
74
|
+
export const audioEffectsProperty = attributeProperty(() => [], audioEffectsOps.resolve, audioEffectsOps.lerp, "audioEffects");
|
|
157
75
|
//# sourceMappingURL=typed.js.map
|