@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state-evaluator.d.ts","sourceRoot":"","sources":["../../src/runtime/state-evaluator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAS,MAAM,oBAAoB,CAAC;AAEjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"state-evaluator.d.ts","sourceRoot":"","sources":["../../src/runtime/state-evaluator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAS,MAAM,oBAAoB,CAAC;AAEjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B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,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,OAAO,CAAc;IAC7B,OAAO,CAAC,aAAa,CAAK;IAC1B,OAAO,CAAC,eAAe,CAAgB;IACvC,gFAAgF;IAChF,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAuC;IAErE,OAAO,CAAC,SAAS;IAajB,OAAO,CAAC,OAAO;IAIf,2FAA2F;IAC3F,OAAO,CAAC,QAAQ;IAMhB,uFAAuF;IACvF,OAAO,CAAC,KAAK;IAIb;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAUpB;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;CAiBpB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { isAudioDocument } from "../document/types.js";
|
|
2
2
|
import { ClipStore } from "./clip-store.js";
|
|
3
|
-
import {
|
|
3
|
+
import { clipFrameToTime } from "./frame-time.js";
|
|
4
|
+
import { frameTime, placeTracks, spansCovering } from "./placement.js";
|
|
4
5
|
/**
|
|
5
6
|
* Puts a project's tracks into the state for a frame, then lays out and draws
|
|
6
7
|
* the ones covering it, back to front.
|
|
@@ -203,10 +204,10 @@ export class StateEvaluator {
|
|
|
203
204
|
*/
|
|
204
205
|
_evaluate(slot, localFrame) {
|
|
205
206
|
const instance = slot.instance;
|
|
206
|
-
const dt = 1
|
|
207
|
+
const dt = clipFrameToTime(1, this._scope.fps);
|
|
207
208
|
// Clamped so a frame held past the end shows where the track stops — a
|
|
208
209
|
// track can cut its clip short, and the clip goes on past the cut.
|
|
209
|
-
const time =
|
|
210
|
+
const time = frameTime(localFrame, this._scope.fps, slot.track.duration);
|
|
210
211
|
instance.attach(time, this._editorStates.get(slot.track.id));
|
|
211
212
|
const previous = Math.max(0, time - dt);
|
|
212
213
|
instance.evaluateAt(previous);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state-evaluator.js","sourceRoot":"","sources":["../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,SAAS,SAAS,CAAC,CAAkB,EAAE,CAAkB;IACrD,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM;QAAE,OAAO,KAAK,CAAC;IACxC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE;QAAE,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAAE,OAAO,KAAK,CAAC;IACnE,OAAO,IAAI,CAAC;AAChB,CAAC","sourcesContent":["import type { ProjectDocument, Track } from \"@/document/project\";\nimport { isAudioDocument } from \"@/document/types\";\nimport type { NodeEditorStates } from \"@/nodes/node/node-editor-state\";\nimport type { Canvas2D } from \"@/nodes/scene/canvas2d-node\";\nimport type { MeasureContext2D } from \"@/render/measure-context\";\nimport type { RenderPass2D } from \"@/render/render-context2d\";\nimport type { ClipInstance, RuntimeScope } from \"./clip-instance\";\nimport { ClipStore } from \"./clip-store\";\nimport { placeTracks, spansCovering, type TrackSpan } from \"./placement\";\n\n/** One track, and the tree it was last evaluated on. */\ninterface Slot {\n track: Track;\n span: TrackSpan;\n instance: ClipInstance | null;\n /** The store's generation for the track when {@link instance} was last evaluated. */\n generation: number;\n}\n\n/**\n * Puts a project's tracks into the state for a frame, then lays out and draws\n * the ones covering it, back to front.\n *\n * Trees come from a {@link ClipStore}: a track's is built the first time it\n * covers a frame — or taken as discovery left it — and thereafter only asked for\n * times, so a seek costs the same in either direction and however far. The store\n * owns them; anything it does to one (a refinement, a patch, a rebuild) moves\n * its generation, and this evaluates again. Nothing isolates overlapping\n * tracks: they composite by draw order alone, which is what lets a translucent\n * track show the one beneath it.\n */\nexport class StateEvaluator {\n /** Without `store`, the evaluator builds into one of its own. */\n constructor(project: ProjectDocument, private readonly _scope: RuntimeScope, store?: ClipStore) {\n this._owned = store === undefined;\n this._store = store ?? new ClipStore(project, _scope, { assets: false, audio: false });\n this._slots = this._slotsFor(project.tracks, new Map());\n this._currentTrackId = firstVisual(this._slots)?.track.id ?? null;\n }\n\n /** The frame on screen. {@link invalidate} drops the memo, not the position. */\n get currentFrame(): number {\n return this._currentFrame;\n }\n\n /**\n * The topmost visual track on screen — or, over a hole, the last one there\n * was. An audio clip is a canvas drawing nothing, so it is never what an\n * editor picks from.\n */\n get currentTrackId(): string | null {\n return this._currentTrackId;\n }\n\n /** {@link currentTrackId}'s tree, once built. */\n get currentCanvas(): Canvas2D | null {\n return this.currentInstance?.canvas ?? null;\n }\n\n /** {@link currentTrackId}'s clip instance, once built. */\n get currentInstance(): ClipInstance | null {\n const slot = this._slotOf(this._currentTrackId);\n if (!slot?.instance) return null;\n return slot.instance === this._store.instanceOf(slot.track.id) ? slot.instance : null;\n }\n\n /** Every track on screen, back to front. Empty over a hole. */\n get activeTrackIds(): string[] {\n return this._active.map(slot => slot.track.id);\n }\n\n /** Put every track covering `frame` into its state, building any that never has been. */\n stateAt(frame: number): void {\n if (this._disposed) return;\n const target = Math.max(0, Math.floor(frame));\n const active = this._slotsToDraw(target);\n\n // Evaluation is idempotent, so a repeat would only cost. Compared by slot\n // rather than by count: a swap can change which tracks are on screen\n // without changing how many.\n if (!this._stale && target === this._currentFrame && sameSlots(active, this._active)\n && active.every(slot => this._settled(slot))) {\n return;\n }\n\n this._active = active;\n const topmost = firstVisual([...active].reverse());\n if (topmost) this._currentTrackId = topmost.track.id;\n\n for (const slot of active) slot.instance = this._store.ensureBuilt(slot.track.id);\n for (const slot of active) {\n if (!slot.instance) continue;\n this._evaluate(slot, target - slot.span.startFrame);\n slot.generation = this._store.generationOf(slot.track.id);\n }\n\n this._currentFrame = target;\n this._stale = false;\n }\n\n layout(measurer: MeasureContext2D = this._scope.measurer): void {\n for (const slot of this._active) this._live(slot)?.layout(measurer);\n }\n\n render(pass: RenderPass2D): void {\n for (const slot of this._active) this._live(slot)?.render(pass);\n }\n\n /** Evaluate the current frame afresh on the next {@link stateAt}. */\n invalidate(): void {\n this._stale = true;\n }\n\n /**\n * Throw a track's tree away so the next {@link stateAt} builds it fresh.\n *\n * The way back to what the document says for a node nothing animates: the\n * timeline restores only what its commands write, so a value written straight\n * onto a live prop — an editor's override — survives re-evaluation.\n */\n rebuild(trackId: string | null = this._currentTrackId): void {\n if (trackId === null) return;\n this._store.rebuild(trackId);\n this._stale = true;\n }\n\n /**\n * Take a new document. The store decides what each track keeps — see\n * {@link ClipStore.setProject}; a store shared with a precomp has already\n * taken it, and taking it twice is a no-op.\n */\n setProject(next: ProjectDocument): void {\n if (this._disposed) return;\n this._store.setProject(next);\n const prior = new Map(this._slots.map(slot => [slot.track.id, slot]));\n this._slots = this._slotsFor(next.tracks, prior);\n\n const kept = new Set(this._slots);\n for (const id of this._editorStates.keys()) {\n if (!this._slotOf(id)) this._editorStates.delete(id);\n }\n\n // Keep drawing what survived until the next evaluation: a repaint can land\n // in between, and an emptied set would paint a blank frame over an edit.\n this._active = this._active.filter(slot => kept.has(slot));\n if (!this._slotOf(this._currentTrackId)) {\n this._currentTrackId = firstVisual(this._slots)?.track.id ?? null;\n }\n this._stale = true;\n }\n\n /** Hidden/locked state for one track's nodes — editor state, not authored, so it rides beside the document. */\n setEditorStates(trackId: string, states: NodeEditorStates | undefined): void {\n if (states) this._editorStates.set(trackId, states);\n else this._editorStates.delete(trackId);\n this._stale = true;\n }\n\n dispose(): void {\n this._disposed = true;\n this._active = [];\n for (const slot of this._slots) slot.instance = null;\n if (this._owned) this._store.dispose();\n }\n\n private readonly _store: ClipStore;\n private readonly _owned: boolean;\n private _slots: Slot[];\n private _active: Slot[] = [];\n private _currentFrame = 0;\n private _currentTrackId: string | null;\n /** Kept apart from the frame, so \"evaluate again\" never reads as \"frame -1\". */\n private _stale = false;\n private _disposed = false;\n private readonly _editorStates = new Map<string, NodeEditorStates>();\n\n private _slotsFor(tracks: readonly Track[], prior: ReadonlyMap<string, Slot>): Slot[] {\n const spans = placeTracks(tracks, this._scope.fps);\n return tracks.map((track, i) => {\n const old = prior.get(track.id);\n if (old) {\n old.track = track;\n old.span = spans[i];\n return old;\n }\n return { track, span: spans[i], instance: null, generation: -1 };\n });\n }\n\n private _slotOf(trackId: string | null): Slot | undefined {\n return trackId === null ? undefined : this._slots.find(slot => slot.track.id === trackId);\n }\n\n /** Whether `slot` still holds the tree the store has, in the state it was evaluated to. */\n private _settled(slot: Slot): boolean {\n const id = slot.track.id;\n if (!slot.instance) return this._store.failed(id);\n return slot.instance === this._store.instanceOf(id) && slot.generation === this._store.generationOf(id);\n }\n\n /** `slot`'s tree while the store still holds it — a released one must not be drawn. */\n private _live(slot: Slot): ClipInstance | null {\n return slot.instance && slot.instance === this._store.instanceOf(slot.track.id) ? slot.instance : null;\n }\n\n /**\n * The slots to draw at `frame`, holding the final stack past the end of the\n * project — a frame parked beyond the last one keeps showing the picture —\n * while a gap in the middle is a real hole and draws nothing.\n */\n private _slotsToDraw(frame: number): Slot[] {\n const spans = this._slots.map(slot => slot.span);\n let covering = spansCovering(spans, frame);\n if (covering.length === 0) {\n const last = Math.max(-1, ...spans.map(span => span.endFrame));\n if (frame > last && last >= 0) covering = spansCovering(spans, last);\n }\n return covering.map(span => this._slots[span.index]);\n }\n\n /**\n * Put `slot` into the state for `localFrame`.\n *\n * The track runs on its own clock, so where it sits never changes what it\n * draws. The frame before is evaluated too and stamped as motion history:\n * motion is a property of the frame, not of the seek that reached it.\n */\n private _evaluate(slot: Slot, localFrame: number): void {\n const instance = slot.instance!;\n const dt = 1 / this._scope.fps;\n // Clamped so a frame held past the end shows where the track stops — a\n // track can cut its clip short, and the clip goes on past the cut.\n const time = Math.min(localFrame * dt, slot.track.duration);\n instance.attach(time, this._editorStates.get(slot.track.id));\n\n const previous = Math.max(0, time - dt);\n instance.evaluateAt(previous);\n instance.layout();\n instance.primeMotion(previous);\n\n instance.evaluateAt(time);\n instance.layout();\n instance.sample();\n }\n}\n\nfunction firstVisual(slots: readonly Slot[]): Slot | undefined {\n return slots.find(slot => !isAudioDocument(slot.track.clip));\n}\n\nfunction sameSlots(a: readonly Slot[], b: readonly Slot[]): boolean {\n if (a.length !== b.length) return false;\n for (let i = 0; i < a.length; i++) if (a[i] !== b[i]) return false;\n return true;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"state-evaluator.js","sourceRoot":"","sources":["../../src/runtime/state-evaluator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAMnD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAkB,MAAM,aAAa,CAAC;AAWpF;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,cAAc;IAEgC;IADvD,iEAAiE;IACjE,YAAY,OAAwB,EAAmB,MAAoB,EAAE,KAAiB;QAAvC,WAAM,GAAN,MAAM,CAAc;QACvE,IAAI,CAAC,MAAM,GAAG,KAAK,KAAK,SAAS,CAAC;QAClC,IAAI,CAAC,MAAM,GAAG,KAAK,IAAI,IAAI,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;QACvF,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,GAAG,EAAE,CAAC,CAAC;QACxD,IAAI,CAAC,eAAe,GAAG,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,EAAE,IAAI,IAAI,CAAC;IACtE,CAAC;IAED,gFAAgF;IAChF,IAAI,YAAY;QACZ,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IAED;;;;OAIG;IACH,IAAI,cAAc;QACd,OAAO,IAAI,CAAC,eAAe,CAAC;IAChC,CAAC;IAED,iDAAiD;IACjD,IAAI,aAAa;QACb,OAAO,IAAI,CAAC,eAAe,EAAE,MAAM,IAA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AAC,MAAM,EAAE,CAAC;QAClB,QAAQ,CAAC,MAAM,EAAE,CAAC;IACtB,CAAC;CACJ;AAED,SAAS,WAAW,CAAC,KAAsB;IACvC,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;AACjE,CAAC;AAED,SAAS,SAAS,CAAC,CAAkB,EAAE,CAAkB;IACrD,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM;QAAE,OAAO,KAAK,CAAC;IACxC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE;QAAE,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAAE,OAAO,KAAK,CAAC;IACnE,OAAO,IAAI,CAAC;AAChB,CAAC","sourcesContent":["import type { ProjectDocument, Track } from \"@/document/project\";\nimport { isAudioDocument } from \"@/document/types\";\nimport type { NodeEditorStates } from \"@/components/trees/node/node-editor-state\";\nimport type { Canvas2D } from \"@/components/trees/root/canvas2d-node\";\nimport type { MeasureContext2D } from \"@/render/measure-context\";\nimport type { RenderPass2D } from \"@/render/render-context2d\";\nimport type { ClipInstance, RuntimeScope } from \"./clip-instance\";\nimport { ClipStore } from \"./clip-store\";\nimport { clipFrameToTime } from \"./frame-time\";\nimport { frameTime, placeTracks, spansCovering, type TrackSpan } from \"./placement\";\n\n/** One track, and the tree it was last evaluated on. */\ninterface Slot {\n track: Track;\n span: TrackSpan;\n instance: ClipInstance | null;\n /** The store's generation for the track when {@link instance} was last evaluated. */\n generation: number;\n}\n\n/**\n * Puts a project's tracks into the state for a frame, then lays out and draws\n * the ones covering it, back to front.\n *\n * Trees come from a {@link ClipStore}: a track's is built the first time it\n * covers a frame — or taken as discovery left it — and thereafter only asked for\n * times, so a seek costs the same in either direction and however far. The store\n * owns them; anything it does to one (a refinement, a patch, a rebuild) moves\n * its generation, and this evaluates again. Nothing isolates overlapping\n * tracks: they composite by draw order alone, which is what lets a translucent\n * track show the one beneath it.\n */\nexport class StateEvaluator {\n /** Without `store`, the evaluator builds into one of its own. */\n constructor(project: ProjectDocument, private readonly _scope: RuntimeScope, store?: ClipStore) {\n this._owned = store === undefined;\n this._store = store ?? new ClipStore(project, _scope, { assets: false, audio: false });\n this._slots = this._slotsFor(project.tracks, new Map());\n this._currentTrackId = firstVisual(this._slots)?.track.id ?? null;\n }\n\n /** The frame on screen. {@link invalidate} drops the memo, not the position. */\n get currentFrame(): number {\n return this._currentFrame;\n }\n\n /**\n * The topmost visual track on screen — or, over a hole, the last one there\n * was. An audio clip is a canvas drawing nothing, so it is never what an\n * editor picks from.\n */\n get currentTrackId(): string | null {\n return this._currentTrackId;\n }\n\n /** {@link currentTrackId}'s tree, once built. */\n get currentCanvas(): Canvas2D | null {\n return this.currentInstance?.canvas ?? null;\n }\n\n /** {@link currentTrackId}'s clip instance, once built. */\n get currentInstance(): ClipInstance | null {\n const slot = this._slotOf(this._currentTrackId);\n if (!slot?.instance) return null;\n return slot.instance === this._store.instanceOf(slot.track.id) ? slot.instance : null;\n }\n\n /** Every track on screen, back to front. Empty over a hole. */\n get activeTrackIds(): string[] {\n return this._active.map(slot => slot.track.id);\n }\n\n /** Put every track covering `frame` into its state, building any that never has been. */\n stateAt(frame: number): void {\n if (this._disposed) return;\n const target = Math.max(0, Math.floor(frame));\n const active = this._slotsToDraw(target);\n\n // Evaluation is idempotent, so a repeat would only cost. Compared by slot\n // rather than by count: a swap can change which tracks are on screen\n // without changing how many.\n if (!this._stale && target === this._currentFrame && sameSlots(active, this._active)\n && active.every(slot => this._settled(slot))) {\n return;\n }\n\n this._active = active;\n const topmost = firstVisual([...active].reverse());\n if (topmost) this._currentTrackId = topmost.track.id;\n\n for (const slot of active) slot.instance = this._store.ensureBuilt(slot.track.id);\n for (const slot of active) {\n if (!slot.instance) continue;\n this._evaluate(slot, target - slot.span.startFrame);\n slot.generation = this._store.generationOf(slot.track.id);\n }\n\n this._currentFrame = target;\n this._stale = false;\n }\n\n layout(measurer: MeasureContext2D = this._scope.measurer): void {\n for (const slot of this._active) this._live(slot)?.layout(measurer);\n }\n\n render(pass: RenderPass2D): void {\n for (const slot of this._active) this._live(slot)?.render(pass);\n }\n\n /** Evaluate the current frame afresh on the next {@link stateAt}. */\n invalidate(): void {\n this._stale = true;\n }\n\n /**\n * Throw a track's tree away so the next {@link stateAt} builds it fresh.\n *\n * The way back to what the document says for a node nothing animates: the\n * timeline restores only what its commands write, so a value written straight\n * onto a live prop — an editor's override — survives re-evaluation.\n */\n rebuild(trackId: string | null = this._currentTrackId): void {\n if (trackId === null) return;\n this._store.rebuild(trackId);\n this._stale = true;\n }\n\n /**\n * Take a new document. The store decides what each track keeps — see\n * {@link ClipStore.setProject}; a store shared with a precomp has already\n * taken it, and taking it twice is a no-op.\n */\n setProject(next: ProjectDocument): void {\n if (this._disposed) return;\n this._store.setProject(next);\n const prior = new Map(this._slots.map(slot => [slot.track.id, slot]));\n this._slots = this._slotsFor(next.tracks, prior);\n\n const kept = new Set(this._slots);\n for (const id of this._editorStates.keys()) {\n if (!this._slotOf(id)) this._editorStates.delete(id);\n }\n\n // Keep drawing what survived until the next evaluation: a repaint can land\n // in between, and an emptied set would paint a blank frame over an edit.\n this._active = this._active.filter(slot => kept.has(slot));\n if (!this._slotOf(this._currentTrackId)) {\n this._currentTrackId = firstVisual(this._slots)?.track.id ?? null;\n }\n this._stale = true;\n }\n\n /** Hidden/locked state for one track's nodes — editor state, not authored, so it rides beside the document. */\n setEditorStates(trackId: string, states: NodeEditorStates | undefined): void {\n if (states) this._editorStates.set(trackId, states);\n else this._editorStates.delete(trackId);\n this._stale = true;\n }\n\n dispose(): void {\n this._disposed = true;\n this._active = [];\n for (const slot of this._slots) slot.instance = null;\n if (this._owned) this._store.dispose();\n }\n\n private readonly _store: ClipStore;\n private readonly _owned: boolean;\n private _slots: Slot[];\n private _active: Slot[] = [];\n private _currentFrame = 0;\n private _currentTrackId: string | null;\n /** Kept apart from the frame, so \"evaluate again\" never reads as \"frame -1\". */\n private _stale = false;\n private _disposed = false;\n private readonly _editorStates = new Map<string, NodeEditorStates>();\n\n private _slotsFor(tracks: readonly Track[], prior: ReadonlyMap<string, Slot>): Slot[] {\n const spans = placeTracks(tracks, this._scope.fps);\n return tracks.map((track, i) => {\n const old = prior.get(track.id);\n if (old) {\n old.track = track;\n old.span = spans[i];\n return old;\n }\n return { track, span: spans[i], instance: null, generation: -1 };\n });\n }\n\n private _slotOf(trackId: string | null): Slot | undefined {\n return trackId === null ? undefined : this._slots.find(slot => slot.track.id === trackId);\n }\n\n /** Whether `slot` still holds the tree the store has, in the state it was evaluated to. */\n private _settled(slot: Slot): boolean {\n const id = slot.track.id;\n if (!slot.instance) return this._store.failed(id);\n return slot.instance === this._store.instanceOf(id) && slot.generation === this._store.generationOf(id);\n }\n\n /** `slot`'s tree while the store still holds it — a released one must not be drawn. */\n private _live(slot: Slot): ClipInstance | null {\n return slot.instance && slot.instance === this._store.instanceOf(slot.track.id) ? slot.instance : null;\n }\n\n /**\n * The slots to draw at `frame`, holding the final stack past the end of the\n * project — a frame parked beyond the last one keeps showing the picture —\n * while a gap in the middle is a real hole and draws nothing.\n */\n private _slotsToDraw(frame: number): Slot[] {\n const spans = this._slots.map(slot => slot.span);\n let covering = spansCovering(spans, frame);\n if (covering.length === 0) {\n const last = Math.max(-1, ...spans.map(span => span.endFrame));\n if (frame > last && last >= 0) covering = spansCovering(spans, last);\n }\n return covering.map(span => this._slots[span.index]);\n }\n\n /**\n * Put `slot` into the state for `localFrame`.\n *\n * The track runs on its own clock, so where it sits never changes what it\n * draws. The frame before is evaluated too and stamped as motion history:\n * motion is a property of the frame, not of the seek that reached it.\n */\n private _evaluate(slot: Slot, localFrame: number): void {\n const instance = slot.instance!;\n const dt = clipFrameToTime(1, this._scope.fps);\n // Clamped so a frame held past the end shows where the track stops — a\n // track can cut its clip short, and the clip goes on past the cut.\n const time = frameTime(localFrame, this._scope.fps, slot.track.duration);\n instance.attach(time, this._editorStates.get(slot.track.id));\n\n const previous = Math.max(0, time - dt);\n instance.evaluateAt(previous);\n instance.layout();\n instance.primeMotion(previous);\n\n instance.evaluateAt(time);\n instance.layout();\n instance.sample();\n }\n}\n\nfunction firstVisual(slots: readonly Slot[]): Slot | undefined {\n return slots.find(slot => !isAudioDocument(slot.track.clip));\n}\n\nfunction sameSlots(a: readonly Slot[], b: readonly Slot[]): boolean {\n if (a.length !== b.length) return false;\n for (let i = 0; i < a.length; i++) if (a[i] !== b[i]) return false;\n return true;\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Node2D } from "../
|
|
1
|
+
import { Node2D } from "../components/trees/2d/node2d.js";
|
|
2
2
|
import { Vector2 } from "../attributes/layout/vector2.js";
|
|
3
3
|
import { type TextBlockSource } from "../render/text-layout.js";
|
|
4
4
|
/**
|
|
@@ -12,7 +12,7 @@ import { type TextBlockSource } from "../render/text-layout.js";
|
|
|
12
12
|
* **Why the host draws it.** Anything approximating glyph positions outside the
|
|
13
13
|
* shaper — a DOM input laid over the canvas, say — drifts from the render the
|
|
14
14
|
* moment the font, the line height or the wrapping does, and CSS `line-height`
|
|
15
|
-
* and
|
|
15
|
+
* and the renderer's height multiplier are not the same quantity to begin with. Handing
|
|
16
16
|
* over the real slots means the rendered text stays the thing being edited.
|
|
17
17
|
*/
|
|
18
18
|
export interface NodeTextLayout {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-geometry.d.ts","sourceRoot":"","sources":["../../src/runtime/text-geometry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"text-geometry.d.ts","sourceRoot":"","sources":["../../src/runtime/text-geometry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAGtD,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAEtD,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAGxE;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,cAAc;IAC3B,qEAAqE;IACrE,IAAI,EAAE,MAAM,CAAC;IACb,qCAAqC;IACrC,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;;OAOG;IACH,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB;;;;OAIG;IACH,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC3C;AAED,iFAAiF;AACjF,MAAM,WAAW,SAAS;IACtB,8CAA8C;IAC9C,MAAM,EAAE,MAAM,CAAC;IACf,oDAAoD;IACpD,GAAG,EAAE,OAAO,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;CACnB;AAED,yEAAyE;AACzE,MAAM,WAAW,aAAa;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;CACvB;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAC1B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,eAAe,GACxB,cAAc,GAAG,IAAI,CAiCvB;AAED;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,cAAc,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,CAW5E;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC3B,MAAM,EAAE,cAAc,EACtB,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,MAAM,GACZ,aAAa,EAAE,CAkBjB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Text } from "../
|
|
1
|
+
import { Text } from "../components/builtins/text/text.js";
|
|
2
|
+
import { textStateOf } from "../components/modules/text-layout.js";
|
|
2
3
|
import { applyToPoint } from "../attributes/layout/matrix2d.js";
|
|
3
4
|
import { caretCount } from "../render/text-layout.js";
|
|
4
5
|
import { renderMatrix } from "./node-picking.js";
|
|
@@ -12,9 +13,11 @@ import { renderMatrix } from "./node-picking.js";
|
|
|
12
13
|
* {@link nodeBox} applies to a node's corners.
|
|
13
14
|
*/
|
|
14
15
|
export function nodeTextLayout(node, path, source) {
|
|
15
|
-
|
|
16
|
+
// A text's state is what it last drew.
|
|
17
|
+
const state = node instanceof Text ? textStateOf(node) : null;
|
|
18
|
+
if (!state)
|
|
16
19
|
return null;
|
|
17
|
-
const block = source.layoutTextBlock(
|
|
20
|
+
const block = source.layoutTextBlock(state);
|
|
18
21
|
if (!block)
|
|
19
22
|
return null;
|
|
20
23
|
const m = renderMatrix(node);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-geometry.js","sourceRoot":"","sources":["../../src/runtime/text-geometry.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAwB,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAuD9C;;;;;;;;GAQG;AACH,MAAM,UAAU,cAAc,CAC1B,IAAY,EACZ,IAAY,EACZ,MAAuB;IAEvB,IAAI,CAAC,CAAC,IAAI,YAAY,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC;IACzC,MAAM,KAAK,GAAG,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;IACxD,IAAI,CAAC,KAAK;QAAE,OAAO,IAAI,CAAC;IAExB,MAAM,CAAC,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IAC7B,0EAA0E;IAC1E,6EAA6E;IAC7E,kHAAkH;IAClH,4EAA4E;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C/B,KAAK,CAAC,IAAI,CAAC;YACP,OAAO,EAAE,IAAI,CAAC,GAAG;YACjB,QAAQ,EAAE,KAAK,CAAC,GAAG;YACnB,WAAW,EAAE,KAAK,CAAC,MAAM;YACzB,UAAU,EAAE,IAAI,CAAC,MAAM;SAC1B,CAAC,CAAC;IACP,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,gDAAgD;AAChD,SAAS,iBAAiB,CAAC,CAAU,EAAE,CAAU,EAAE,CAAU;IACzD,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACrB,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACrB,MAAM,QAAQ,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IACnC,iEAAiE;IACjE,MAAM,CAAC,GAAG,QAAQ,KAAK,CAAC;QACpB,CAAC,CAAC,CAAC;QACH,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC;IACjF,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;AAClE,CAAC","sourcesContent":["import { Node2D } from \"@/nodes/2d/node2d\";\nimport { Text } from \"@/nodes/text/text-node\";\nimport { Vector2 } from \"@/attributes/layout/vector2\";\nimport { applyToPoint } from \"@/attributes/layout/matrix2d\";\nimport { caretCount, type TextBlockSource } from \"@/render/text-layout\";\nimport { renderMatrix } from \"./node-picking\";\n\n/**\n * Where a Text node's caret slots landed on screen — the measurement a host\n * needs to draw its own text cursor and selection over the rendered glyphs.\n *\n * **Space.** Viewport space, exactly as {@link NodeBox}: origin at the viewport\n * centre, y-up, viewport units, camera folded in. A caret and the selection box\n * around it therefore come out of the same walk and cannot disagree.\n *\n * **Why the host draws it.** Anything approximating glyph positions outside the\n * shaper — a DOM input laid over the canvas, say — drifts from the render the\n * moment the font, the line height or the wrapping does, and CSS `line-height`\n * and Skia's height multiplier are not the same quantity to begin with. Handing\n * over the real slots means the rendered text stays the thing being edited.\n */\nexport interface NodeTextLayout {\n /** Structural path of the node measured, as {@link NodeBox.path}. */\n path: string;\n /** The string the slots describe. */\n text: string;\n /**\n * Every caret slot, in offset order: `carets[i]` sits before character `i`,\n * and the last sits after the final character — so there are `text.length + 1`\n * of them, and a caret offset is always a valid index.\n *\n * Each is a *segment*, not a point, because a rotated node's cursor is a\n * rotated line: draw from `top` to `bottom`.\n */\n carets: TextCaret[];\n /**\n * Line ranges over caret offsets, for Home/End and vertical arrow keys. A\n * hard line break belongs to neither line, so `lines[n].end` and\n * `lines[n + 1].start` differ by one where the break is.\n */\n lines: { start: number; end: number }[];\n}\n\n/** One caret slot: the line an editor would draw for a cursor at this offset. */\nexport interface TextCaret {\n /** Character offset this slot sits before. */\n offset: number;\n /** Top and bottom of the cursor, viewport space. */\n top: Vector2;\n bottom: Vector2;\n}\n\n/** One line's worth of a selected range, as a quad in viewport space. */\nexport interface TextRangeQuad {\n topLeft: Vector2;\n topRight: Vector2;\n bottomRight: Vector2;\n bottomLeft: Vector2;\n}\n\n/**\n * Measure `node`'s caret slots in viewport space, or `null` when it has none to\n * report — not a {@link Text}, nothing shaped yet, or a shape the caret model\n * doesn't cover (see {@link RenderContext2D.layoutTextBlock}).\n *\n * The block-local layout comes from the backend, because that is where glyphs\n * are actually positioned; everything below is the same mapping\n * {@link nodeBox} applies to a node's corners.\n */\nexport function nodeTextLayout(\n node: Node2D,\n path: string,\n source: TextBlockSource,\n): NodeTextLayout | null {\n if (!(node instanceof Text)) return null;\n const block = source.layoutTextBlock(node._textState());\n if (!block) return null;\n\n const m = renderMatrix(node);\n // The block is laid out about the node's own origin — which is also where\n // `_localBounds` centres the box, and what `verticalAlign` offsets it from —\n // so a block-local offset is a node-local one, unshifted. Block coordinates are already canvas (y-down), which is\n // the space the matrix works in, so unlike `worldAnchors` (which takes y-up\n // corner offsets) only the *result* is flipped back to y-up viewport space.\n const at = (x: number, y: number): Vector2 => {\n const p = applyToPoint(m, { x, y });\n return { x: p.x, y: -p.y };\n };\n\n const carets: TextCaret[] = new Array(caretCount(block));\n const lines: { start: number; end: number }[] = [];\n for (const line of block.lines) {\n lines.push({ start: line.start, end: line.end });\n for (let i = 0; i < line.carets.length; i++) {\n const x = line.carets[i];\n carets[line.start + i] = {\n offset: line.start + i,\n top: at(x, line.top),\n bottom: at(x, line.bottom),\n };\n }\n }\n\n return { path, text: node.text, carets, lines };\n}\n\n/**\n * The caret offset nearest `point` (viewport space) — what a click or a drag\n * over the rendered text should place the cursor at.\n *\n * Nearest *slot*, by distance to the caret segment rather than to its midpoint:\n * a click below a short first line should land on that line's nearest slot, and\n * midpoints would pull it toward whichever line's centre happened to be closer.\n * Segment distance also keeps this correct for rotated and scaled text without\n * needing a separate case, since the slots arrive already transformed.\n */\nexport function caretOffsetAt(layout: NodeTextLayout, point: Vector2): number {\n let best = 0;\n let bestDistance = Infinity;\n for (const caret of layout.carets) {\n const d = distanceToSegment(point, caret.top, caret.bottom);\n if (d < bestDistance) {\n bestDistance = d;\n best = caret.offset;\n }\n }\n return best;\n}\n\n/**\n * The quads covering `[start, end)`, one per line the range touches — what a\n * host fills to draw a selection highlight.\n *\n * Per line rather than one box for the whole range, because a range spanning a\n * line break covers two disjoint areas and a single enclosing box would paint\n * over the gap between them.\n */\nexport function caretRangeQuads(\n layout: NodeTextLayout,\n start: number,\n end: number,\n): TextRangeQuad[] {\n const from = Math.max(0, Math.min(start, end));\n const to = Math.min(layout.carets.length - 1, Math.max(start, end));\n const quads: TextRangeQuad[] = [];\n for (const line of layout.lines) {\n const a = Math.max(from, line.start);\n const b = Math.min(to, line.end);\n if (a >= b) continue; // empty on this line\n const left = layout.carets[a];\n const right = layout.carets[b];\n quads.push({\n topLeft: left.top,\n topRight: right.top,\n bottomRight: right.bottom,\n bottomLeft: left.bottom,\n });\n }\n return quads;\n}\n\n/** Distance from `p` to the segment `a`–`b`. */\nfunction distanceToSegment(p: Vector2, a: Vector2, b: Vector2): number {\n const dx = b.x - a.x;\n const dy = b.y - a.y;\n const lengthSq = dx * dx + dy * dy;\n // A degenerate segment (a zero-height line box) is just a point.\n const t = lengthSq === 0\n ? 0\n : Math.max(0, Math.min(1, ((p.x - a.x) * dx + (p.y - a.y) * dy) / lengthSq));\n return Math.hypot(p.x - (a.x + t * dx), p.y - (a.y + t * dy));\n}\n"]}
|
|
1
|
+
{"version":3,"file":"text-geometry.js","sourceRoot":"","sources":["../../src/runtime/text-geometry.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAE/D,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAwB,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAuD9C;;;;;;;;GAQG;AACH,MAAM,UAAU,cAAc,CAC1B,IAAY,EACZ,IAAY,EACZ,MAAuB;IAEvB,uCAAuC;IACvC,MAAM,KAAK,GAAG,IAAI,YAAY,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAC9D,IAAI,CAAC,KAAK;QAAE,OAAO,IAAI,CAAC;IACxB,MAAM,KAAK,G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AG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;AAClE,CAAC","sourcesContent":["import { Node2D } from \"@/components/trees/2d/node2d\";\nimport { Text } from \"@/components/builtins/text/text\";\nimport { textStateOf } from \"@/components/modules/text-layout\";\nimport { Vector2 } from \"@/attributes/layout/vector2\";\nimport { applyToPoint } from \"@/attributes/layout/matrix2d\";\nimport { caretCount, type TextBlockSource } from \"@/render/text-layout\";\nimport { renderMatrix } from \"./node-picking\";\n\n/**\n * Where a Text node's caret slots landed on screen — the measurement a host\n * needs to draw its own text cursor and selection over the rendered glyphs.\n *\n * **Space.** Viewport space, exactly as {@link NodeBox}: origin at the viewport\n * centre, y-up, viewport units, camera folded in. A caret and the selection box\n * around it therefore come out of the same walk and cannot disagree.\n *\n * **Why the host draws it.** Anything approximating glyph positions outside the\n * shaper — a DOM input laid over the canvas, say — drifts from the render the\n * moment the font, the line height or the wrapping does, and CSS `line-height`\n * and the renderer's height multiplier are not the same quantity to begin with. Handing\n * over the real slots means the rendered text stays the thing being edited.\n */\nexport interface NodeTextLayout {\n /** Structural path of the node measured, as {@link NodeBox.path}. */\n path: string;\n /** The string the slots describe. */\n text: string;\n /**\n * Every caret slot, in offset order: `carets[i]` sits before character `i`,\n * and the last sits after the final character — so there are `text.length + 1`\n * of them, and a caret offset is always a valid index.\n *\n * Each is a *segment*, not a point, because a rotated node's cursor is a\n * rotated line: draw from `top` to `bottom`.\n */\n carets: TextCaret[];\n /**\n * Line ranges over caret offsets, for Home/End and vertical arrow keys. A\n * hard line break belongs to neither line, so `lines[n].end` and\n * `lines[n + 1].start` differ by one where the break is.\n */\n lines: { start: number; end: number }[];\n}\n\n/** One caret slot: the line an editor would draw for a cursor at this offset. */\nexport interface TextCaret {\n /** Character offset this slot sits before. */\n offset: number;\n /** Top and bottom of the cursor, viewport space. */\n top: Vector2;\n bottom: Vector2;\n}\n\n/** One line's worth of a selected range, as a quad in viewport space. */\nexport interface TextRangeQuad {\n topLeft: Vector2;\n topRight: Vector2;\n bottomRight: Vector2;\n bottomLeft: Vector2;\n}\n\n/**\n * Measure `node`'s caret slots in viewport space, or `null` when it has none to\n * report — not a {@link Text}, nothing shaped yet, or a shape the caret model\n * doesn't cover (see {@link RenderContext2D.layoutTextBlock}).\n *\n * The block-local layout comes from the backend, because that is where glyphs\n * are actually positioned; everything below is the same mapping\n * {@link nodeBox} applies to a node's corners.\n */\nexport function nodeTextLayout(\n node: Node2D,\n path: string,\n source: TextBlockSource,\n): NodeTextLayout | null {\n // A text's state is what it last drew.\n const state = node instanceof Text ? textStateOf(node) : null;\n if (!state) return null;\n const block = source.layoutTextBlock(state);\n if (!block) return null;\n\n const m = renderMatrix(node);\n // The block is laid out about the node's own origin — which is also where\n // `_localBounds` centres the box, and what `verticalAlign` offsets it from —\n // so a block-local offset is a node-local one, unshifted. Block coordinates are already canvas (y-down), which is\n // the space the matrix works in, so unlike `worldAnchors` (which takes y-up\n // corner offsets) only the *result* is flipped back to y-up viewport space.\n const at = (x: number, y: number): Vector2 => {\n const p = applyToPoint(m, { x, y });\n return { x: p.x, y: -p.y };\n };\n\n const carets: TextCaret[] = new Array(caretCount(block));\n const lines: { start: number; end: number }[] = [];\n for (const line of block.lines) {\n lines.push({ start: line.start, end: line.end });\n for (let i = 0; i < line.carets.length; i++) {\n const x = line.carets[i];\n carets[line.start + i] = {\n offset: line.start + i,\n top: at(x, line.top),\n bottom: at(x, line.bottom),\n };\n }\n }\n\n return { path, text: (node as unknown as { text: string }).text, carets, lines };\n}\n\n/**\n * The caret offset nearest `point` (viewport space) — what a click or a drag\n * over the rendered text should place the cursor at.\n *\n * Nearest *slot*, by distance to the caret segment rather than to its midpoint:\n * a click below a short first line should land on that line's nearest slot, and\n * midpoints would pull it toward whichever line's centre happened to be closer.\n * Segment distance also keeps this correct for rotated and scaled text without\n * needing a separate case, since the slots arrive already transformed.\n */\nexport function caretOffsetAt(layout: NodeTextLayout, point: Vector2): number {\n let best = 0;\n let bestDistance = Infinity;\n for (const caret of layout.carets) {\n const d = distanceToSegment(point, caret.top, caret.bottom);\n if (d < bestDistance) {\n bestDistance = d;\n best = caret.offset;\n }\n }\n return best;\n}\n\n/**\n * The quads covering `[start, end)`, one per line the range touches — what a\n * host fills to draw a selection highlight.\n *\n * Per line rather than one box for the whole range, because a range spanning a\n * line break covers two disjoint areas and a single enclosing box would paint\n * over the gap between them.\n */\nexport function caretRangeQuads(\n layout: NodeTextLayout,\n start: number,\n end: number,\n): TextRangeQuad[] {\n const from = Math.max(0, Math.min(start, end));\n const to = Math.min(layout.carets.length - 1, Math.max(start, end));\n const quads: TextRangeQuad[] = [];\n for (const line of layout.lines) {\n const a = Math.max(from, line.start);\n const b = Math.min(to, line.end);\n if (a >= b) continue; // empty on this line\n const left = layout.carets[a];\n const right = layout.carets[b];\n quads.push({\n topLeft: left.top,\n topRight: right.top,\n bottomRight: right.bottom,\n bottomLeft: left.bottom,\n });\n }\n return quads;\n}\n\n/** Distance from `p` to the segment `a`–`b`. */\nfunction distanceToSegment(p: Vector2, a: Vector2, b: Vector2): number {\n const dx = b.x - a.x;\n const dy = b.y - a.y;\n const lengthSq = dx * dx + dy * dy;\n // A degenerate segment (a zero-height line box) is just a point.\n const t = lengthSq === 0\n ? 0\n : Math.max(0, Math.min(1, ((p.x - a.x) * dx + (p.y - a.y) * dy) / lengthSq));\n return Math.hypot(p.x - (a.x + t * dx), p.y - (a.y + t * dy));\n}\n"]}
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -4,48 +4,78 @@ export { resolveProjectDocument } from '../runtime/session.js';
|
|
|
4
4
|
export { placeTracks } from '../runtime/placement.js';
|
|
5
5
|
export type { TrackSpan } from '../runtime/placement.js';
|
|
6
6
|
export type { Theme, ColorTokens, Typography, TypographyPreset, } from '../project/index.js';
|
|
7
|
-
export type { NodeTime, AttachScope } from '../
|
|
8
|
-
export type { BoxBounds } from '../layout/index.js';
|
|
7
|
+
export type { NodeTime, AttachScope } from '../components/trees/index.js';
|
|
8
|
+
export type { BoxBounds, Extents } from '../layout/index.js';
|
|
9
9
|
export type { ImageMeta, VideoMeta, AudioMeta, FontMeta, AssetMeta, AssetManifest, } from '../assets/index.js';
|
|
10
|
-
export { validateDocument, assertValidDocument,
|
|
10
|
+
export { validateDocument, assertValidDocument, DOCUMENT_FORMAT_VERSION, DocumentTooNewError, documentFormatVersion, migrateDocument, migrateNodeProps, missingNodeOf, Registry, } from '../document/index.js';
|
|
11
11
|
export { normalizeShaderPack, resolveShaderProperties, isKnownShaderProperty, } from '../attributes/index.js';
|
|
12
|
-
export type { RegistryOptions, NodeTypeMap, ShaderPackMap, NodeTypeRecord, NodeCommandEntry,
|
|
12
|
+
export type { RegistryOptions, NodeTypeMap, ShaderPackMap, NodeTypeRecord, NodeCommandEntry, VisualDocument, ClipDocument, StillDocument, CompositionDocument, AudioDocument, NodeSpec, TimedNodeSpec, NodeSpan, CommandSpec, EaseSpec, LoopSpec, LoopDirection, VariableSpec, ValidationIssue, ValidationResult, ValidateOptions, DocumentChange, DocumentMigrationResult, PropMigration, PropNote, MissingNodeInfo, NodeConstructor, CommandFactory, CommandTypeEntry, VariableCommandFactory, VariableLerp, VariableTarget, } from '../document/index.js';
|
|
13
13
|
export type { Shader, FillShader, EffectShader, ShaderProperty, KnownShaderProperty, ShaderPropertyValues, } from '../attributes/index.js';
|
|
14
14
|
export { expressionOps, ExpressionError } from '../document/index.js';
|
|
15
15
|
export type { ParsedExpression, ExpressionNode, ExpressionDialect, VariableResolver, } from '../document/index.js';
|
|
16
|
-
export {
|
|
17
|
-
export
|
|
18
|
-
export {
|
|
19
|
-
export
|
|
16
|
+
export { component2d } from '../components/factory/component2d.js';
|
|
17
|
+
export { componentAudio } from '../components/factory/component-audio.js';
|
|
18
|
+
export { component3d } from '../components/factory/component3d.js';
|
|
19
|
+
export { commandsFor } from '../components/factory/commands-for.js';
|
|
20
|
+
export { Types } from '../components/factory/types.js';
|
|
21
|
+
export { provides } from '../components/factory/api.js';
|
|
22
|
+
export * as Paint from '../components/modules/paint.js';
|
|
23
|
+
export * as Flow from '../components/modules/flow.js';
|
|
24
|
+
export * as Shapes from '../components/modules/shapes.js';
|
|
25
|
+
export * as Aim from '../components/modules/aim.js';
|
|
26
|
+
export * as Typeface from '../components/modules/text-style.js';
|
|
27
|
+
export * as TextLayout from '../components/modules/text-layout.js';
|
|
28
|
+
export * as Material from '../components/modules/material.js';
|
|
29
|
+
export * as View3D from '../components/modules/view3d.js';
|
|
30
|
+
export type { Attribute, EntryOptions, NumberOptions, TextOptions } from '../components/factory/types.js';
|
|
31
|
+
export type { Box2DState, BoxAudioState, CallProps, ChildView, Children2D, Component, Element, Entry, InOf, Inputs, Loader, Measurer, MergePaint, NodeOf, NodeView, OutOf, Piece, Placement2D, Provided, SoundOptions, StateSpec, Timeline, Type, Values, Writes, Merge, BuiltNode, RenderContext2D as RenderContext, CallProps3D, Placement3DProps, Transform3DState, Handle, LayoutBox, NodeFrame, RenderContext3D as SceneContext, } from '../components/factory/api.js';
|
|
32
|
+
export type { Node, Node2D } from '../components/trees/index.js';
|
|
33
|
+
export { Canvas2D, findNode2D, frameIn, } from '../components/trees/index.js';
|
|
34
|
+
export { Provider, ThemeProvider } from '../components/builtins/providers/providers.js';
|
|
35
|
+
export type { NodeProps, Node2DProps, ChildPlacement, ChildPlane, NodeHandle, Canvas2DProps, NodeConfig, NodeChildren, NodeDimension, } from '../components/trees/index.js';
|
|
36
|
+
export type { ProviderProps, ThemeProviderProps } from '../components/builtins/providers/providers.js';
|
|
37
|
+
export { Rect, Ellipse, Path, PathShape, Polygon, Polygram, Triangle, RightTriangle, Pentagon, Hexagon, Octagon, Star, } from '../components/builtins/geometry/geometry.js';
|
|
38
|
+
export { BooleanGroup, MaskGroup } from '../components/builtins/geometry/composite.js';
|
|
39
|
+
export type { PaintProps, ShapeProps, RectProps, FlexSize, EllipseProps, PathProps, PathShapeProps, PolygonProps, PolygramProps, } from '../components/builtins/geometry/geometry.js';
|
|
40
|
+
export type { BooleanGroupProps, MaskGroupProps } from '../components/builtins/geometry/composite.js';
|
|
20
41
|
export type { BooleanOperation, MaskMode, MaskOptions, } from '../attributes/index.js';
|
|
21
|
-
export { Camera, OrbitCamera, RotatedBox, } from '../
|
|
22
|
-
export type { CameraProps, OrbitCameraProps, } from '../
|
|
23
|
-
export {
|
|
24
|
-
export type {
|
|
42
|
+
export { Camera, OrbitCamera, RotatedBox, } from '../components/builtins/layout/layout.js';
|
|
43
|
+
export type { CameraProps, OrbitCameraProps, } from '../components/builtins/layout/layout.js';
|
|
44
|
+
export { Text, RichText, NumberNode, DefaultTextStyle } from '../components/builtins/text/text.js';
|
|
45
|
+
export type { TextProps, RichTextProps, NumberProps, NumberFormat, DefaultTextStyleProps, } from '../components/builtins/text/text.js';
|
|
46
|
+
export { textOps } from '../attributes/index.js';
|
|
25
47
|
export type { TextStyle, TextAlign, VerticalAlign, TextDecoration, TextCase, TextSpan, TextRun, FontStyle, } from '../attributes/index.js';
|
|
26
|
-
export { Video
|
|
27
|
-
export type { VideoProps, } from '../
|
|
28
|
-
export { NodeAudio
|
|
29
|
-
export {
|
|
30
|
-
export
|
|
31
|
-
export type {
|
|
32
|
-
export {
|
|
48
|
+
export { Video } from '../components/builtins/media/media.js';
|
|
49
|
+
export type { VideoProps, VideoSegment, } from '../components/builtins/media/media.js';
|
|
50
|
+
export type { NodeAudio } from '../components/trees/index.js';
|
|
51
|
+
export { AudioBus, SoundNode } from '../components/builtins/audio/audio.js';
|
|
52
|
+
export { Sound, AudioEffects, ramp, hold, isRamp, } from '../attributes/index.js';
|
|
53
|
+
export type { NodeAudioProps, } from '../components/trees/index.js';
|
|
54
|
+
export type { AudioBusProps, SoundNodeProps } from '../components/builtins/audio/audio.js';
|
|
55
|
+
export type { SoundProps, AudioRequest, AudioBusStop, AudioEffect, AudioEffectsInput, AudioTransition, Param, Ramp, RampKey, } from '../attributes/index.js';
|
|
56
|
+
export { Canvas3D } from '../components/builtins/three/canvas3d.js';
|
|
57
|
+
export type { Node3D } from '../components/trees/index.js';
|
|
58
|
+
export { Group3D, Mesh3D, Box3D, Sphere3D, Plane3D, Cylinder3D, Cone3D, Torus3D, TorusKnot3D, Circle3D, Ring3D, Capsule3D, Polyhedron3D, Extrude3D, Lathe3D, Tube3D, Instances3D, Points3D, Line3D, Sprite3D, Model3D, AmbientLight3D, HemisphereLight3D, DirectionalLight3D, PointLight3D, SpotLight3D, AreaLight3D, Camera3D, Fog3D, Environment3D, } from '../components/builtins/three/three.js';
|
|
33
59
|
export { Graphics3D, Scene3D, RenderContext3D, Geo, Mat, Tex, lerpVector3, lerpEuler3, slerpQuaternion, quaternionFromEuler, normalizeQuaternion, resolveVector3, evaluateParametric, evaluateRoundedBox, resolveSurfaceSource, resolveFill3D, segmentsOf, resolveCameraPlacement, resolveShadows3D, shadowCasts, shadowReceives, } from '../render3d/index.js';
|
|
34
|
-
export type { Canvas3DProps
|
|
35
|
-
export type {
|
|
36
|
-
export {
|
|
37
|
-
export type {
|
|
60
|
+
export type { Canvas3DProps } from '../components/builtins/three/canvas3d.js';
|
|
61
|
+
export type { ChildSpace3D, Node3DProps, } from '../components/trees/index.js';
|
|
62
|
+
export type { Group3DProps, Mesh3DProps, Material3DProps, Box3DProps, Sphere3DProps, Plane3DProps, Cylinder3DProps, Cone3DProps, Torus3DProps, TorusKnot3DProps, Circle3DProps, Ring3DProps, Capsule3DProps, Polyhedron3DProps, Extrude3DProps, Lathe3DProps, Tube3DProps, Instances3DProps, Points3DProps, Line3DProps, Sprite3DProps, Model3DProps, AmbientLight3DProps, HemisphereLight3DProps, DirectionalLight3DProps, PointLight3DProps, SpotLight3DProps, AreaLight3DProps, Camera3DProps, Fog3DProps, Environment3DProps, } from '../components/builtins/three/three.js';
|
|
63
|
+
export type { Node3DRenderState, Graphics3DOp, Scene3DOp, Vector3, Vector3Input, Euler3, EulerOrder, Quaternion, Transform3D, Shadow3D, ShadowOptions3D, Faces3D, Blend3D, Shading3D, Segments3D, Sweep3D, Bevel3D, Fill3D, Geometry3D, BufferGeometry3D, Material3D, MaterialCommon3D, MeshShorthand3D, MaterialShorthand3D, Uniform3D, Texture3D, TextureOptions3D, SurfaceTexture3D, SurfaceSource3D, ResolvedSurfaceSource, LightData3D, CameraData3D, FogData3D, EnvironmentData3D, Shadows3D, ShadowSettings3D, ToneMapping3D, ToneSettings3D, PostEffect3D, LineMode3D, LineStroke3D, ModelAnimation3D, } from '../render3d/index.js';
|
|
64
|
+
export { Graphics2D, PathBuilder, Clip, toPathString, } from '../render/index.js';
|
|
65
|
+
export type { RenderContext2D, RenderPass2D, MeasureContext2D, TextBlockSource, GraphicsOp, PathData, PathCommand, PathBounds, EllipseArc, } from '../render/index.js';
|
|
38
66
|
export type { AssetScope, LoaderFn } from '../assets/index.js';
|
|
39
|
-
export { Fills, parseColor, resolveFill, fillOps, } from '../attributes/index.js';
|
|
40
|
-
export type { Fill, FillChain, FillOptions, VideoFillOptions, MediaPlacementOptions, ImageFit, ImageCrop, ImageMatrix, FillResolved, ShaderFillProp, ShaderFillResolved,
|
|
41
|
-
export { resolveStroke, strokeOps, resolveShadow, shadowOps, resolveCorners, cornerRadiusOps, cornerStyleOps, } from '../attributes/index.js';
|
|
42
|
-
export type { Stroke, StrokeProp, StrokeAlign, StrokeCap, StrokeJoin, StrokeResolved, Shadow, ShadowProp, ShadowResolved, Corners, CornerStyle, CornerStyleResolved, CornerRadiusResolved,
|
|
67
|
+
export { Fills, parseColor, resolveFill, fillOps, colorOps, } from '../attributes/index.js';
|
|
68
|
+
export type { Fill, FillChain, FillOptions, VideoFillOptions, MediaPlacementOptions, ImageFit, ImageCrop, ImageMatrix, FillResolved, ShaderFillProp, ShaderFillResolved, ShaderTexture, ShaderUniformRecord, FractalNoiseBasis, Color, NormalizedColor, BlendMode, FillSpace, } from '../attributes/index.js';
|
|
69
|
+
export { resolveStroke, strokeOps, resolveShadow, shadowOps, resolveCorners, cornerRadiusOps, cornerStyleOps, pathOps, } from '../attributes/index.js';
|
|
70
|
+
export type { PathSampler, PathAnchor, PathSubpath, VectorPath, Stroke, StrokeProp, StrokeAlign, StrokeCap, StrokeMarker, StrokeEnd, StrokeJoin, StrokeResolved, Shadow, ShadowProp, ShadowResolved, Corners, CornerStyle, CornerStyleResolved, CornerRadiusResolved, RectCornerRadius, RectCornerStyle, NodeEffect, } from '../attributes/index.js';
|
|
43
71
|
export { lerpVector2, sizeInputOps, insetsOps, alignmentOps, } from '../attributes/index.js';
|
|
44
72
|
export { flowOps } from '../layout/index.js';
|
|
45
|
-
export type { Vector2, Size2D, Insets, InsetsResolved, AlignmentKey, Alignment, } from '../attributes/index.js';
|
|
46
|
-
export type { FlowMode, GapSize, FlowResolved, FlowProps, FlowSettings, LayoutItem, FlowSpace, FlowMeasure, FlowLine, } from '../layout/index.js';
|
|
73
|
+
export type { Vector2, Size2D, Insets, InsetsProps, InsetsResolved, AlignmentKey, Alignment, } from '../attributes/index.js';
|
|
74
|
+
export type { FlowMode, GapSize, FlowResolved, FlowProps, FlowSettings, LayoutItem, FlowSpace, FlowMeasure, FlowLine, SizeConstraints, } from '../layout/index.js';
|
|
47
75
|
export { space3dOps } from '../attributes/layout/space3d.js';
|
|
48
|
-
export type { LookAt, SpaceCameraProps, SpacePoint } from '../attributes/layout/space3d.js';
|
|
76
|
+
export type { LookAt, SpaceCamera, SpaceCameraProps, SpacePoint } from '../attributes/layout/space3d.js';
|
|
77
|
+
export { describeEffect, effectDescriptors } from '../attributes/index.js';
|
|
78
|
+
export type { EffectDescriptor, EffectParamDescriptor, EffectParamKind, EffectParamUnit, EffectParamControl, EffectGroup, EffectJson, } from '../attributes/index.js';
|
|
49
79
|
export { Effects, EffectChain, Adjustments, VideoAdjustments, AdjustmentChain, VideoAdjustmentChain,
|
|
50
80
|
/** @deprecated Renamed to {@link Adjustments}. Removed in the next major. */
|
|
51
81
|
ImageFilters,
|
|
@@ -56,13 +86,13 @@ export type {
|
|
|
56
86
|
Effect, EffectMode, EffectAxis, EffectSurface, EffectOptions,
|
|
57
87
|
/** What an image fill's `preset.adjustments` accepts — one, a list, or a chain. */
|
|
58
88
|
ImageAdjustment, VideoAdjustment,
|
|
59
|
-
/** The
|
|
89
|
+
/** The node effects that also work as a media adjustment — see {@link Adjustments}. */
|
|
60
90
|
EffectAdjustment, MediaAdjustment, VideoOnlyAdjustment, } from '../attributes/index.js';
|
|
61
91
|
/**
|
|
62
92
|
* Per-builder options. Every effect builder takes exactly one argument: one of
|
|
63
93
|
* these, or the dominant scalar it wraps.
|
|
64
94
|
*/
|
|
65
|
-
export type { BlurOptions, DirectionalBlurOptions, GrayscaleOptions, PixelateOptions, BulgeOptions, MagnifyOptions, BloomOptions, VintageOptions, ChromaticAberrationOptions, InvertOptions, ScatterOptions, PosterizeOptions, MotionBlurOptions, ShaderEffectOptions, OutlineOptions, VignetteOptions, GrainOptions, SharpenOptions, EdgesOptions, ThresholdOptions, RadialBlurOptions, HalftoneOptions, DitherOptions, DuotoneOptions, CurvesOptions, ColorAdjustmentOptions, RgbShiftOptions, ScanlinesOptions, BlockDisplaceOptions, BitCrushOptions, AsciiOptions, StreakOptions, GlowOptions,
|
|
95
|
+
export type { BlurOptions, DirectionalBlurOptions, GrayscaleOptions, PixelateOptions, BulgeOptions, MagnifyOptions, BloomOptions, VintageOptions, ChromaticAberrationOptions, InvertOptions, ScatterOptions, PosterizeOptions, MotionBlurOptions, ShaderEffectOptions, OutlineOptions, VignetteOptions, GrainOptions, SharpenOptions, EdgesOptions, ThresholdOptions, RadialBlurOptions, HalftoneOptions, DitherOptions, DuotoneOptions, CurvesOptions, ColorAdjustmentOptions, RgbShiftOptions, ScanlinesOptions, BlockDisplaceOptions, BitCrushOptions, AsciiOptions, StreakOptions, GlowOptions, OilPaintOptions, WaveOptions, TwirlOptions, ProgressiveBlurOptions, KaleidoscopeOptions, GlassOptions, LutOptions, } from '../attributes/index.js';
|
|
66
96
|
/**
|
|
67
97
|
* Per-builder options for the filters that exist only as filters. Everything
|
|
68
98
|
* else on {@link Adjustments} takes the matching effect options above, minus
|
|
@@ -71,19 +101,21 @@ export type { BlurOptions, DirectionalBlurOptions, GrayscaleOptions, PixelateOpt
|
|
|
71
101
|
*/
|
|
72
102
|
export type { BlurFilterOptions, GrayscaleFilterOptions, AlphaFilterOptions, ExposureFilterOptions, ColorMatrixFilterOptions, CurvesFilterOptions, ColorAdjustmentFilterOptions, PosterizeTimeFilterOptions, VideoEchoFilterOptions, } from '../attributes/index.js';
|
|
73
103
|
/** Effect data types, for naming an effect value or building one by hand. */
|
|
74
|
-
export type { BlurEffect, DirectionalBlurEffect, GrayscaleEffect, PixelateEffect, BulgeEffect, MagnifyEffect, BloomEffect, VintageEffect, ChromaticAberrationEffect, InvertEffect, InvertChannel, ScatterEffect, PosterizeEffect, MotionBlurEffect, MotionBlurAlignment, ShaderEffect,
|
|
104
|
+
export type { BlurEffect, DirectionalBlurEffect, GrayscaleEffect, PixelateEffect, BulgeEffect, MagnifyEffect, BloomEffect, VintageEffect, ChromaticAberrationEffect, InvertEffect, InvertChannel, ScatterEffect, PosterizeEffect, MotionBlurEffect, MotionBlurAlignment, ShaderEffect, ShaderUniform, ShaderUniformValue, OutlineEffect, OutlinePosition, VignetteEffect, GrainEffect, SharpenEffect, EdgesEffect, EdgeKernel, ThresholdEffect, RadialBlurEffect, RadialBlurStyle, HalftoneEffect, HalftoneShape, HalftoneSeparation, DitherEffect, DitherMatrix, DuotoneEffect, CurvesEffect, ColorAdjustmentEffect, RgbShiftEffect, ScanlinesEffect, BlockDisplaceEffect, BitCrushEffect, BitCrushPalette, AsciiEffect, AsciiCharset, StreakEffect, GlowEffect, GlowChannel, GlowLoopStyle, GlowOriginal, GlowTint, OilPaintEffect, WaveEffect, WaveShape, TwirlEffect, ProgressiveBlurEffect, ProgressiveBlurShape, KaleidoscopeEffect, GlassEffect, LutEffect, } from '../attributes/index.js';
|
|
75
105
|
export { lerpNumber, } from '../tween/index.js';
|
|
76
106
|
export type { AnimationTarget, Steppable, TweenStepper, LerpFunction, TweenOptions, } from '../tween/index.js';
|
|
77
|
-
export {
|
|
107
|
+
export { getCommandMeta, isCommand, makeCommand, commandSequence, commandParallel, loopCommand, } from '../tween/index.js';
|
|
78
108
|
export type { Command, CommandArgs, CommandMeta, CommandOptions } from '../tween/index.js';
|
|
79
109
|
export { linear, easeIn, easeOut, easeInOut } from '../tween/index.js';
|
|
80
110
|
export type { EasingFunction, EaseParams, StandardEase } from '../tween/index.js';
|
|
81
|
-
export { property, fillProperty, strokeProperty, shadowProperty, effectsProperty, colorProperty, cornerRadiusProperty, cornerStyleProperty, pathProperty, insetsProperty, alignmentProperty, vector2Property, sizeProperty, textProperty, } from '../attributes/index.js';
|
|
82
|
-
export type { PropOptions, AttributePropOptions, } from '../attributes/index.js';
|
|
83
111
|
export { createRef, clamp, generateList, createContext, ContextMap, Random, SeedGenerator, parseCSV, parseData, } from '../util/index.js';
|
|
84
112
|
export type { Reference, RefTarget, Context, DataRecord, ParseCSVOptions, } from '../util/index.js';
|
|
85
|
-
export {
|
|
86
|
-
export type {
|
|
113
|
+
export { nodeTypeIsA, parentIssue, placementIssues, siblingIssue } from '../document/placement.js';
|
|
114
|
+
export type { PlacementIssue, PlacementOptions } from '../document/placement.js';
|
|
115
|
+
export { nodeBox, pickNode, collectBoxes, parentPlanePointAt, childPlanePointAt, reparentPlacementAt, nodeHandlesAt, handleValueAt, } from '../runtime/node-picking.js';
|
|
116
|
+
export type { NodeBox, ReparentPlacement, } from '../runtime/node-picking.js';
|
|
87
117
|
export type { NodeOverride, } from '../runtime/playback-controller.js';
|
|
88
118
|
export type { TreeState, } from '../project/index.js';
|
|
119
|
+
/** @deprecated Kept until 1.0; see `../renamed-scene-names`. */
|
|
120
|
+
export type { SceneDocument, SceneEffect } from '../renamed-scene-names.js';
|
|
89
121
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/sdk/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/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Z,cAAc,EACd,cAAc,EACd,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,mBAAmB,EACnB,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,YAAY,GACf,MAAM,eAAe,CAAC;AACvB,YAAY,EACR,WAAW,EACX,oBAAoB,GACvB,MAAM,eAAe,CAAC;AAKvB,OAAO,EACH,SAAS,EACT,KAAK,EACL,YAAY,EACZ,aAAa,EACb,UAAU,EACV,MAAM,EACN,aAAa,EACb,QAAQ,EACR,SAAS,GACZ,MAAM,SAAS,CAAC;AACjB,YAAY,EACR,SAAS,EACT,SAAS,EACT,OAAO,EACP,UAAU,EACV,eAAe,GAClB,MAAM,SAAS,CAAC;AAejB,OAAO,EACH,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,kBAAkB,GACrB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACR,OAAO,GACV,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACR,YAAY,GACf,MAAM,gCAAgC,CAAC;AACxC,YAAY,EACR,SAAS,GACZ,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAiBA,OAAO,EACH,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,QAAQ,EACR,aAAa,EACb,OAAO,EACP,YAAY,GACf,MAAM,aAAa,CAAC;AACrB,YAAY,EACR,eAAe,EACf,KAAK,GACR,MAAM,aAAa,CAAC;AAKrB,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,YAAY,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,YAAY,EACR,KAAK,EACL,WAAW,EACX,UAAU,EACV,gBAAgB,GACnB,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,QAAQ,EAA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