@motionscript/core 0.1.0-alpha.6 → 0.1.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/NOTICE +15 -14
- package/README.md +5 -7
- package/dist/assets/errors.js +4 -5
- package/dist/assets/errors.js.map +1 -1
- package/dist/assets/manager.d.ts.map +1 -1
- package/dist/assets/manager.js +7 -5
- package/dist/assets/manager.js.map +1 -1
- package/dist/assets/scope.d.ts +1 -1
- 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/effects/implementations/echo.js +11 -0
- package/dist/attributes/audio/effects/implementations/echo.js.map +1 -0
- package/dist/attributes/audio/effects/implementations/gain.d.ts +10 -0
- package/dist/attributes/audio/effects/implementations/gain.d.ts.map +1 -0
- package/dist/attributes/audio/effects/implementations/gain.js +6 -0
- package/dist/attributes/audio/effects/implementations/gain.js.map +1 -0
- package/dist/attributes/audio/effects/implementations/highpass.d.ts +12 -0
- package/dist/attributes/audio/effects/implementations/highpass.d.ts.map +1 -0
- package/dist/attributes/audio/effects/implementations/highpass.js +10 -0
- package/dist/attributes/audio/effects/implementations/highpass.js.map +1 -0
- package/dist/attributes/audio/effects/implementations/lowpass.d.ts +12 -0
- package/dist/attributes/audio/effects/implementations/lowpass.d.ts.map +1 -0
- package/dist/attributes/audio/effects/implementations/lowpass.js +10 -0
- package/dist/attributes/audio/effects/implementations/lowpass.js.map +1 -0
- package/dist/attributes/audio/effects/implementations/tremolo.d.ts +12 -0
- package/dist/attributes/audio/effects/implementations/tremolo.d.ts.map +1 -0
- package/dist/attributes/audio/effects/implementations/tremolo.js +10 -0
- package/dist/attributes/audio/effects/implementations/tremolo.js.map +1 -0
- package/dist/attributes/audio/effects/index.d.ts +12 -0
- package/dist/attributes/audio/effects/index.d.ts.map +1 -0
- package/dist/attributes/audio/effects/index.js +4 -0
- package/dist/attributes/audio/effects/index.js.map +1 -0
- package/dist/attributes/audio/effects/registry.d.ts +36 -0
- package/dist/attributes/audio/effects/registry.d.ts.map +1 -0
- package/dist/attributes/audio/effects/registry.js +80 -0
- package/dist/attributes/audio/effects/registry.js.map +1 -0
- package/dist/attributes/audio/effects/union.d.ts +14 -0
- package/dist/attributes/audio/effects/union.d.ts.map +1 -0
- package/dist/attributes/audio/effects/union.js +24 -0
- package/dist/attributes/audio/effects/union.js.map +1 -0
- package/dist/attributes/audio/ramp.d.ts +103 -0
- package/dist/attributes/audio/ramp.d.ts.map +1 -0
- package/dist/attributes/audio/ramp.js +246 -0
- package/dist/attributes/audio/ramp.js.map +1 -0
- package/dist/attributes/audio/request.d.ts +24 -13
- package/dist/attributes/audio/request.d.ts.map +1 -1
- package/dist/attributes/audio/request.js +4 -3
- package/dist/attributes/audio/request.js.map +1 -1
- package/dist/attributes/audio/schedule.d.ts +24 -31
- package/dist/attributes/audio/schedule.d.ts.map +1 -1
- package/dist/attributes/audio/schedule.js +42 -28
- package/dist/attributes/audio/schedule.js.map +1 -1
- package/dist/attributes/audio/sound.d.ts +15 -12
- package/dist/attributes/audio/sound.d.ts.map +1 -1
- package/dist/attributes/audio/sound.js +8 -10
- package/dist/attributes/audio/sound.js.map +1 -1
- package/dist/attributes/audio/transition.d.ts +33 -0
- package/dist/attributes/audio/transition.d.ts.map +1 -0
- package/dist/attributes/audio/transition.js +48 -0
- package/dist/attributes/audio/transition.js.map +1 -0
- package/dist/attributes/index.d.ts +7 -8
- package/dist/attributes/index.d.ts.map +1 -1
- package/dist/attributes/index.js +6 -9
- package/dist/attributes/index.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 +44 -11
- package/dist/attributes/properties/decorator.d.ts.map +1 -1
- package/dist/attributes/properties/decorator.js +37 -9
- 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 +24 -145
- package/dist/attributes/properties/typed.d.ts.map +1 -1
- package/dist/attributes/properties/typed.js +16 -112
- package/dist/attributes/properties/typed.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/chain.d.ts +96 -409
- package/dist/attributes/shape/effects/chain.d.ts.map +1 -1
- package/dist/attributes/shape/effects/chain.js +93 -283
- package/dist/attributes/shape/effects/chain.js.map +1 -1
- package/dist/attributes/shape/effects/effect-data.d.ts +1 -1
- package/dist/attributes/shape/effects/effect-data.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/ascii.d.ts +45 -13
- package/dist/attributes/shape/effects/implementations/ascii.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/ascii.js +29 -23
- package/dist/attributes/shape/effects/implementations/ascii.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/bit-crush.d.ts +32 -7
- package/dist/attributes/shape/effects/implementations/bit-crush.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/bit-crush.js +17 -15
- package/dist/attributes/shape/effects/implementations/bit-crush.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/block-displace.d.ts +46 -10
- package/dist/attributes/shape/effects/implementations/block-displace.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/block-displace.js +21 -19
- package/dist/attributes/shape/effects/implementations/block-displace.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/bloom.d.ts +32 -7
- package/dist/attributes/shape/effects/implementations/bloom.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/bloom.js +17 -11
- package/dist/attributes/shape/effects/implementations/bloom.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/blur.d.ts +16 -3
- package/dist/attributes/shape/effects/implementations/blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/blur.js +13 -5
- package/dist/attributes/shape/effects/implementations/blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/bulge.d.ts +28 -9
- package/dist/attributes/shape/effects/implementations/bulge.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/bulge.js +15 -14
- package/dist/attributes/shape/effects/implementations/bulge.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.d.ts +21 -5
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.js +15 -10
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/color-adjustment.d.ts +96 -26
- package/dist/attributes/shape/effects/implementations/color-adjustment.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/color-adjustment.js +29 -26
- package/dist/attributes/shape/effects/implementations/color-adjustment.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/curves.d.ts +20 -6
- package/dist/attributes/shape/effects/implementations/curves.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/curves.js +26 -23
- package/dist/attributes/shape/effects/implementations/curves.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/directional-blur.d.ts +26 -5
- package/dist/attributes/shape/effects/implementations/directional-blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/directional-blur.js +15 -10
- package/dist/attributes/shape/effects/implementations/directional-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/dither.d.ts +58 -11
- package/dist/attributes/shape/effects/implementations/dither.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/dither.js +26 -20
- package/dist/attributes/shape/effects/implementations/dither.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/drop-shadow.d.ts +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 +76 -19
- package/dist/attributes/shape/effects/implementations/glass.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/glass.js +28 -22
- package/dist/attributes/shape/effects/implementations/glass.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/glow.d.ts +149 -42
- package/dist/attributes/shape/effects/implementations/glow.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/glow.js +74 -72
- package/dist/attributes/shape/effects/implementations/glow.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/grain.d.ts +43 -11
- package/dist/attributes/shape/effects/implementations/grain.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/grain.js +21 -18
- package/dist/attributes/shape/effects/implementations/grain.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/grayscale.d.ts +17 -3
- package/dist/attributes/shape/effects/implementations/grayscale.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/grayscale.js +13 -5
- package/dist/attributes/shape/effects/implementations/grayscale.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/halftone.d.ts +40 -9
- package/dist/attributes/shape/effects/implementations/halftone.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/halftone.js +20 -16
- package/dist/attributes/shape/effects/implementations/halftone.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/invert.d.ts +23 -5
- package/dist/attributes/shape/effects/implementations/invert.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/invert.js +15 -10
- package/dist/attributes/shape/effects/implementations/invert.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/kaleidoscope.d.ts +57 -18
- package/dist/attributes/shape/effects/implementations/kaleidoscope.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/kaleidoscope.js +25 -22
- package/dist/attributes/shape/effects/implementations/kaleidoscope.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/lut.d.ts +34 -7
- package/dist/attributes/shape/effects/implementations/lut.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/lut.js +20 -16
- package/dist/attributes/shape/effects/implementations/lut.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/magnify.d.ts +27 -9
- package/dist/attributes/shape/effects/implementations/magnify.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/magnify.js +17 -14
- package/dist/attributes/shape/effects/implementations/magnify.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/motion-blur.d.ts +54 -19
- package/dist/attributes/shape/effects/implementations/motion-blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/motion-blur.js +42 -20
- package/dist/attributes/shape/effects/implementations/motion-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/oil-paint.d.ts +17 -3
- package/dist/attributes/shape/effects/implementations/oil-paint.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/oil-paint.js +13 -9
- package/dist/attributes/shape/effects/implementations/oil-paint.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/outline.d.ts +28 -8
- package/dist/attributes/shape/effects/implementations/outline.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/outline.js +18 -17
- package/dist/attributes/shape/effects/implementations/outline.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/pixelate.d.ts +25 -6
- package/dist/attributes/shape/effects/implementations/pixelate.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/pixelate.js +16 -14
- package/dist/attributes/shape/effects/implementations/pixelate.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/posterize.d.ts +14 -3
- package/dist/attributes/shape/effects/implementations/posterize.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/posterize.js +13 -9
- package/dist/attributes/shape/effects/implementations/posterize.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/progressive-blur.d.ts +91 -26
- package/dist/attributes/shape/effects/implementations/progressive-blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/progressive-blur.js +27 -28
- package/dist/attributes/shape/effects/implementations/progressive-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/radial-blur.d.ts +49 -10
- package/dist/attributes/shape/effects/implementations/radial-blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/radial-blur.js +19 -20
- package/dist/attributes/shape/effects/implementations/radial-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/rgb-shift.d.ts +36 -6
- package/dist/attributes/shape/effects/implementations/rgb-shift.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/rgb-shift.js +16 -15
- package/dist/attributes/shape/effects/implementations/rgb-shift.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/scanlines.d.ts +52 -11
- package/dist/attributes/shape/effects/implementations/scanlines.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/scanlines.js +21 -18
- package/dist/attributes/shape/effects/implementations/scanlines.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/scatter.d.ts +23 -9
- package/dist/attributes/shape/effects/implementations/scatter.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/scatter.js +15 -12
- package/dist/attributes/shape/effects/implementations/scatter.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/shader.d.ts +90 -34
- package/dist/attributes/shape/effects/implementations/shader.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/shader.js +42 -26
- package/dist/attributes/shape/effects/implementations/shader.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/sharpen.d.ts +23 -5
- package/dist/attributes/shape/effects/implementations/sharpen.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/sharpen.js +16 -11
- package/dist/attributes/shape/effects/implementations/sharpen.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/streak.d.ts +40 -9
- package/dist/attributes/shape/effects/implementations/streak.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/streak.js +19 -16
- package/dist/attributes/shape/effects/implementations/streak.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/threshold.d.ts +24 -5
- package/dist/attributes/shape/effects/implementations/threshold.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/threshold.js +17 -11
- package/dist/attributes/shape/effects/implementations/threshold.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/twirl.d.ts +35 -8
- package/dist/attributes/shape/effects/implementations/twirl.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/twirl.js +17 -16
- package/dist/attributes/shape/effects/implementations/twirl.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/vignette.d.ts +37 -7
- package/dist/attributes/shape/effects/implementations/vignette.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/vignette.js +19 -18
- package/dist/attributes/shape/effects/implementations/vignette.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/vintage.d.ts +24 -5
- package/dist/attributes/shape/effects/implementations/vintage.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/vintage.js +15 -10
- package/dist/attributes/shape/effects/implementations/vintage.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/wave.d.ts +61 -14
- package/dist/attributes/shape/effects/implementations/wave.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/wave.js +26 -23
- package/dist/attributes/shape/effects/implementations/wave.js.map +1 -1
- package/dist/attributes/shape/effects/index.d.ts +4 -2
- package/dist/attributes/shape/effects/index.d.ts.map +1 -1
- package/dist/attributes/shape/effects/index.js +1 -1
- package/dist/attributes/shape/effects/index.js.map +1 -1
- package/dist/attributes/shape/effects/registry.d.ts +11 -0
- package/dist/attributes/shape/effects/registry.d.ts.map +1 -1
- package/dist/attributes/shape/effects/registry.js +113 -102
- package/dist/attributes/shape/effects/registry.js.map +1 -1
- package/dist/attributes/shape/effects/spec.d.ts +229 -0
- package/dist/attributes/shape/effects/spec.d.ts.map +1 -0
- package/dist/attributes/shape/effects/spec.js +178 -0
- package/dist/attributes/shape/effects/spec.js.map +1 -0
- package/dist/attributes/shape/fill/chain.d.ts +7 -9
- package/dist/attributes/shape/fill/chain.d.ts.map +1 -1
- package/dist/attributes/shape/fill/chain.js +9 -11
- package/dist/attributes/shape/fill/chain.js.map +1 -1
- package/dist/attributes/shape/fill/color/parser.d.ts +1 -1
- package/dist/attributes/shape/fill/color/parser.js +1 -1
- package/dist/attributes/shape/fill/color/parser.js.map +1 -1
- 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/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 +1 -1
- 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 +1 -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 +3 -7
- package/dist/attributes/shape/filters/chain.d.ts.map +1 -1
- package/dist/attributes/shape/filters/chain.js +2 -6
- package/dist/attributes/shape/filters/chain.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/color-matrix.d.ts +2 -2
- package/dist/attributes/shape/filters/implementations/color-matrix.d.ts.map +1 -1
- package/dist/attributes/shape/filters/implementations/color-matrix.js.map +1 -1
- package/dist/attributes/shape/filters/registry.d.ts +1 -1
- package/dist/attributes/shape/filters/registry.d.ts.map +1 -1
- package/dist/attributes/shape/filters/registry.js +3 -3
- package/dist/attributes/shape/filters/registry.js.map +1 -1
- package/dist/attributes/shape/filters/union.d.ts +6 -6
- 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/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/shared/operators.d.ts +2 -2
- package/dist/attributes/shared/operators.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-AOT33LMS.js +13 -0
- package/dist/browser/chunks/chunk-AOT33LMS.js.map +7 -0
- package/dist/browser/chunks/chunk-GKM6UZJR.js +6 -0
- package/dist/browser/chunks/chunk-GKM6UZJR.js.map +7 -0
- package/dist/browser/chunks/chunk-LKUYVFU3.js +2 -0
- package/dist/browser/chunks/{chunk-DHB4COFY.js.map → chunk-LKUYVFU3.js.map} +4 -4
- package/dist/browser/chunks/chunk-ZRPZPWZU.js +3 -0
- package/dist/browser/chunks/chunk-ZRPZPWZU.js.map +7 -0
- package/dist/browser/component.js +1 -1
- package/dist/browser/component.js.map +4 -4
- package/dist/browser/experimental.js +1 -1
- package/dist/browser/experimental.js.map +4 -4
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +4 -4
- package/dist/browser/manifest.json +2 -4
- package/dist/browser/sdk.js +1 -1
- package/dist/component.d.ts +10 -18
- package/dist/component.d.ts.map +1 -1
- package/dist/component.js +10 -17
- 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/components/builtins/geometry/shape-outline.d.ts +93 -0
- package/dist/components/builtins/geometry/shape-outline.d.ts.map +1 -0
- package/dist/components/builtins/geometry/shape-outline.js +470 -0
- 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/components/builtins/text/number-format.d.ts +66 -0
- package/dist/components/builtins/text/number-format.d.ts.map +1 -0
- package/dist/components/builtins/text/number-format.js +227 -0
- package/dist/components/builtins/text/number-format.js.map +1 -0
- package/dist/components/builtins/text/number-pattern.d.ts +51 -0
- package/dist/components/builtins/text/number-pattern.d.ts.map +1 -0
- package/dist/components/builtins/text/number-pattern.js +77 -0
- package/dist/components/builtins/text/number-pattern.js.map +1 -0
- package/dist/components/builtins/text/text-defaults.d.ts +32 -0
- package/dist/components/builtins/text/text-defaults.d.ts.map +1 -0
- package/dist/components/builtins/text/text-defaults.js +37 -0
- 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/components/builtins/three/grid-geometry3d.d.ts +62 -0
- package/dist/components/builtins/three/grid-geometry3d.d.ts.map +1 -0
- package/dist/components/builtins/three/grid-geometry3d.js +114 -0
- 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 +413 -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/components/trees/2d/group-bounds.d.ts +56 -0
- package/dist/components/trees/2d/group-bounds.d.ts.map +1 -0
- package/dist/components/trees/2d/group-bounds.js +87 -0
- package/dist/components/trees/2d/group-bounds.js.map +1 -0
- package/dist/components/trees/2d/node-lifecycle.d.ts +46 -0
- package/dist/components/trees/2d/node-lifecycle.d.ts.map +1 -0
- package/dist/components/trees/2d/node-lifecycle.js +264 -0
- package/dist/components/trees/2d/node-lifecycle.js.map +1 -0
- package/dist/components/trees/2d/node-motion.d.ts +56 -0
- package/dist/components/trees/2d/node-motion.d.ts.map +1 -0
- package/dist/components/trees/2d/node-motion.js +86 -0
- 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/components/trees/2d/node-render.js +67 -0
- package/dist/components/trees/2d/node-render.js.map +1 -0
- package/dist/components/trees/2d/node-space.d.ts +63 -0
- package/dist/components/trees/2d/node-space.d.ts.map +1 -0
- package/dist/components/trees/2d/node-space.js +131 -0
- package/dist/components/trees/2d/node-space.js.map +1 -0
- package/dist/components/trees/2d/node-transform.d.ts +55 -0
- package/dist/components/trees/2d/node-transform.d.ts.map +1 -0
- package/dist/components/trees/2d/node-transform.js +73 -0
- package/dist/components/trees/2d/node-transform.js.map +1 -0
- package/dist/components/trees/2d/node2d.d.ts +1020 -0
- package/dist/components/trees/2d/node2d.d.ts.map +1 -0
- package/dist/components/trees/2d/node2d.js +1481 -0
- 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/components/trees/audio/node-audio.d.ts +116 -0
- package/dist/components/trees/audio/node-audio.d.ts.map +1 -0
- package/dist/components/trees/audio/node-audio.js +171 -0
- 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 +53 -0
- package/dist/components/trees/node/node-editor-state.d.ts.map +1 -0
- package/dist/components/trees/node/node-editor-state.js +23 -0
- package/dist/components/trees/node/node-editor-state.js.map +1 -0
- package/dist/components/trees/node/node-reactive.d.ts +89 -0
- package/dist/components/trees/node/node-reactive.d.ts.map +1 -0
- package/dist/components/trees/node/node-reactive.js +135 -0
- package/dist/components/trees/node/node-reactive.js.map +1 -0
- package/dist/components/trees/node/node-time.d.ts +39 -0
- package/dist/components/trees/node/node-time.d.ts.map +1 -0
- package/dist/components/trees/node/node-time.js +14 -0
- package/dist/components/trees/node/node-time.js.map +1 -0
- package/dist/components/trees/node/node-walk.d.ts +46 -0
- package/dist/components/trees/node/node-walk.d.ts.map +1 -0
- package/dist/components/trees/node/node-walk.js +74 -0
- package/dist/components/trees/node/node-walk.js.map +1 -0
- package/dist/components/trees/node/node.d.ts +401 -0
- package/dist/components/trees/node/node.d.ts.map +1 -0
- package/dist/components/trees/node/node.js +680 -0
- package/dist/components/trees/node/node.js.map +1 -0
- package/dist/components/trees/root/canvas2d-node.d.ts +163 -0
- package/dist/components/trees/root/canvas2d-node.d.ts.map +1 -0
- package/dist/components/trees/root/canvas2d-node.js +216 -0
- package/dist/components/trees/root/canvas2d-node.js.map +1 -0
- package/dist/components/trees/three/node3d.d.ts +222 -0
- package/dist/components/trees/three/node3d.d.ts.map +1 -0
- package/dist/components/trees/three/node3d.js +289 -0
- package/dist/components/trees/three/node3d.js.map +1 -0
- package/dist/document/builtins.js +13 -13
- package/dist/document/builtins.js.map +1 -1
- package/dist/document/command-traits.d.ts +14 -4
- package/dist/document/command-traits.d.ts.map +1 -1
- package/dist/document/command-traits.js +35 -7
- 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/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 +1 -1
- package/dist/document/expression/ops.js.map +1 -1
- package/dist/document/index.d.ts +9 -2
- package/dist/document/index.d.ts.map +1 -1
- package/dist/document/index.js +5 -2
- 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 +7 -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 +2 -1
- package/dist/document/placement.d.ts.map +1 -1
- package/dist/document/placement.js.map +1 -1
- package/dist/document/project.d.ts +2 -0
- package/dist/document/project.d.ts.map +1 -1
- package/dist/document/project.js +1 -0
- package/dist/document/project.js.map +1 -1
- package/dist/document/prop-evolution.d.ts +51 -0
- package/dist/document/prop-evolution.d.ts.map +1 -0
- package/dist/document/prop-evolution.js +83 -0
- package/dist/document/prop-evolution.js.map +1 -0
- package/dist/document/registry.d.ts +39 -25
- package/dist/document/registry.d.ts.map +1 -1
- package/dist/document/registry.js +41 -21
- package/dist/document/registry.js.map +1 -1
- package/dist/document/settled-index.d.ts +2 -0
- package/dist/document/settled-index.d.ts.map +1 -1
- package/dist/document/settled-index.js +5 -5
- package/dist/document/settled-index.js.map +1 -1
- package/dist/document/timeline-patch.d.ts +4 -0
- package/dist/document/timeline-patch.d.ts.map +1 -1
- package/dist/document/timeline-patch.js +28 -3
- package/dist/document/timeline-patch.js.map +1 -1
- package/dist/document/timeline.d.ts +48 -4
- package/dist/document/timeline.d.ts.map +1 -1
- package/dist/document/timeline.js +174 -44
- package/dist/document/timeline.js.map +1 -1
- package/dist/document/types.d.ts +18 -32
- package/dist/document/types.d.ts.map +1 -1
- package/dist/document/types.js.map +1 -1
- package/dist/document/validate.d.ts +18 -6
- package/dist/document/validate.d.ts.map +1 -1
- package/dist/document/validate.js +158 -21
- package/dist/document/validate.js.map +1 -1
- package/dist/document/vocabulary.d.ts +28 -0
- package/dist/document/vocabulary.d.ts.map +1 -0
- package/dist/document/vocabulary.js +42 -0
- package/dist/document/vocabulary.js.map +1 -0
- package/dist/experimental.d.ts +79 -19
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +31 -17
- package/dist/experimental.js.map +1 -1
- package/dist/index.d.ts +10 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -11
- package/dist/index.js.map +1 -1
- package/dist/layout/types.d.ts +1 -1
- package/dist/layout/types.js.map +1 -1
- package/dist/platform/exporter.d.ts +13 -0
- package/dist/platform/exporter.d.ts.map +1 -1
- package/dist/platform/exporter.js.map +1 -1
- package/dist/props/host.d.ts +1 -1
- package/dist/props/host.js.map +1 -1
- 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 +1 -1
- package/dist/renamed-scene-names.d.ts.map +1 -1
- package/dist/renamed-scene-names.js +1 -1
- package/dist/renamed-scene-names.js.map +1 -1
- package/dist/render/canvas-render-context2d.d.ts +9 -0
- package/dist/render/canvas-render-context2d.d.ts.map +1 -1
- package/dist/render/canvas-render-context2d.js +10 -0
- package/dist/render/canvas-render-context2d.js.map +1 -1
- package/dist/render/clip-contains.js +1 -1
- package/dist/render/clip-contains.js.map +1 -1
- package/dist/render/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/text.d.ts +13 -7
- package/dist/render/descriptors/text.d.ts.map +1 -1
- package/dist/render/descriptors/text.js +9 -3
- package/dist/render/descriptors/text.js.map +1 -1
- package/dist/render/index.d.ts +2 -0
- package/dist/render/index.d.ts.map +1 -1
- package/dist/render/index.js +1 -0
- package/dist/render/index.js.map +1 -1
- package/dist/render/render-context2d.d.ts +3 -3
- 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/builders.d.ts +1 -1
- package/dist/render3d/builders.js +1 -1
- package/dist/render3d/builders.js.map +1 -1
- package/dist/render3d/graphics3d.d.ts +13 -19
- package/dist/render3d/graphics3d.d.ts.map +1 -1
- package/dist/render3d/graphics3d.js +67 -24
- package/dist/render3d/graphics3d.js.map +1 -1
- package/dist/render3d/scene3d.d.ts +1 -1
- package/dist/render3d/scene3d.js +1 -1
- package/dist/render3d/scene3d.js.map +1 -1
- package/dist/render3d/texture.d.ts +2 -2
- package/dist/render3d/texture.d.ts.map +1 -1
- package/dist/render3d/texture.js.map +1 -1
- package/dist/render3d/vector3.d.ts +2 -2
- package/dist/render3d/vector3.js +2 -2
- package/dist/render3d/vector3.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 -25
- package/dist/runtime/audio-index.js.map +1 -1
- package/dist/runtime/clip-instance.d.ts +6 -4
- package/dist/runtime/clip-instance.d.ts.map +1 -1
- package/dist/runtime/clip-instance.js +8 -4
- package/dist/runtime/clip-instance.js.map +1 -1
- package/dist/runtime/clip-store.d.ts +2 -3
- package/dist/runtime/clip-store.d.ts.map +1 -1
- package/dist/runtime/clip-store.js +34 -37
- package/dist/runtime/clip-store.js.map +1 -1
- package/dist/runtime/engine.d.ts +8 -6
- package/dist/runtime/engine.d.ts.map +1 -1
- package/dist/runtime/engine.js +4 -3
- package/dist/runtime/engine.js.map +1 -1
- package/dist/runtime/node-picking.d.ts +2 -2
- package/dist/runtime/node-picking.d.ts.map +1 -1
- package/dist/runtime/node-picking.js +3 -3
- package/dist/runtime/node-picking.js.map +1 -1
- package/dist/runtime/node-picking3d.d.ts +2 -2
- package/dist/runtime/node-picking3d.d.ts.map +1 -1
- package/dist/runtime/node-picking3d.js +1 -1
- package/dist/runtime/node-picking3d.js.map +1 -1
- package/dist/runtime/playback-controller.d.ts +2 -2
- package/dist/runtime/playback-controller.d.ts.map +1 -1
- package/dist/runtime/playback-controller.js +15 -5
- package/dist/runtime/playback-controller.js.map +1 -1
- package/dist/runtime/session.d.ts +7 -3
- package/dist/runtime/session.d.ts.map +1 -1
- package/dist/runtime/session.js +11 -4
- package/dist/runtime/session.js.map +1 -1
- package/dist/runtime/state-evaluator.d.ts +2 -2
- package/dist/runtime/state-evaluator.d.ts.map +1 -1
- 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 +4 -5
- package/dist/runtime/text-geometry.js.map +1 -1
- package/dist/sdk/index.d.ts +50 -44
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +35 -29
- package/dist/sdk/index.js.map +1 -1
- package/dist/tween/command-decorator.d.ts +14 -9
- package/dist/tween/command-decorator.d.ts.map +1 -1
- package/dist/tween/command-decorator.js +3 -2
- package/dist/tween/command-decorator.js.map +1 -1
- package/dist/tween/command.d.ts +1 -1
- package/dist/tween/command.js.map +1 -1
- package/dist/tween/ease/describe.d.ts +2 -0
- package/dist/tween/ease/describe.d.ts.map +1 -1
- package/dist/tween/ease/describe.js +4 -0
- package/dist/tween/ease/describe.js.map +1 -1
- package/dist/tween/ease/spec.d.ts +31 -0
- package/dist/tween/ease/spec.d.ts.map +1 -0
- package/dist/tween/ease/spec.js +51 -0
- package/dist/tween/ease/spec.js.map +1 -0
- package/dist/tween/index.d.ts +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/util/reference.d.ts +6 -6
- package/dist/util/reference.js.map +1 -1
- package/package.json +3 -11
- package/dist/browser/chunks/chunk-2RIYH36X.js +0 -3
- package/dist/browser/chunks/chunk-2RIYH36X.js.map +0 -7
- package/dist/browser/chunks/chunk-DDJN3QII.js +0 -15
- package/dist/browser/chunks/chunk-DDJN3QII.js.map +0 -7
- package/dist/browser/chunks/chunk-DHB4COFY.js +0 -2
- package/dist/browser/chunks/chunk-EJDPYDQI.js +0 -5
- package/dist/browser/chunks/chunk-EJDPYDQI.js.map +0 -7
- package/dist/browser/chunks/chunk-SFNJRPBV.js +0 -2
- package/dist/browser/chunks/chunk-SFNJRPBV.js.map +0 -7
- package/dist/browser/chunks/chunk-XAWE4EAK.js +0 -2
- package/dist/browser/chunks/chunk-XAWE4EAK.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
|
@@ -1 +1 @@
|
|
|
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,c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AAE,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\";\r\nimport { isAudioDocument } from \"@/document/types\";\r\nimport type { NodeEditorStates } from \"@/nodes/node/node-editor-state\";\r\nimport type { Canvas2D } from \"@/nodes/root/canvas2d-node\";\r\nimport type { MeasureContext2D } from \"@/render/measure-context\";\r\nimport type { RenderPass2D } from \"@/render/render-context2d\";\r\nimport type { ClipInstance, RuntimeScope } from \"./clip-instance\";\r\nimport { ClipStore } from \"./clip-store\";\r\nimport { clipFrameToTime } from \"./frame-time\";\r\nimport { frameTime, placeTracks, spansCovering, type TrackSpan } from \"./placement\";\r\n\r\n/** One track, and the tree it was last evaluated on. */\r\ninterface Slot {\r\n track: Track;\r\n span: TrackSpan;\r\n instance: ClipInstance | null;\r\n /** The store's generation for the track when {@link instance} was last evaluated. */\r\n generation: number;\r\n}\r\n\r\n/**\r\n * Puts a project's tracks into the state for a frame, then lays out and draws\r\n * the ones covering it, back to front.\r\n *\r\n * Trees come from a {@link ClipStore}: a track's is built the first time it\r\n * covers a frame — or taken as discovery left it — and thereafter only asked for\r\n * times, so a seek costs the same in either direction and however far. The store\r\n * owns them; anything it does to one (a refinement, a patch, a rebuild) moves\r\n * its generation, and this evaluates again. Nothing isolates overlapping\r\n * tracks: they composite by draw order alone, which is what lets a translucent\r\n * track show the one beneath it.\r\n */\r\nexport class StateEvaluator {\r\n /** Without `store`, the evaluator builds into one of its own. */\r\n constructor(project: ProjectDocument, private readonly _scope: RuntimeScope, store?: ClipStore) {\r\n this._owned = store === undefined;\r\n this._store = store ?? new ClipStore(project, _scope, { assets: false, audio: false });\r\n this._slots = this._slotsFor(project.tracks, new Map());\r\n this._currentTrackId = firstVisual(this._slots)?.track.id ?? null;\r\n }\r\n\r\n /** The frame on screen. {@link invalidate} drops the memo, not the position. */\r\n get currentFrame(): number {\r\n return this._currentFrame;\r\n }\r\n\r\n /**\r\n * The topmost visual track on screen — or, over a hole, the last one there\r\n * was. An audio clip is a canvas drawing nothing, so it is never what an\r\n * editor picks from.\r\n */\r\n get currentTrackId(): string | null {\r\n return this._currentTrackId;\r\n }\r\n\r\n /** {@link currentTrackId}'s tree, once built. */\r\n get currentCanvas(): Canvas2D | null {\r\n return this.currentInstance?.canvas ?? null;\r\n }\r\n\r\n /** {@link currentTrackId}'s clip instance, once built. */\r\n get currentInstance(): ClipInstance | null {\r\n const slot = this._slotOf(this._currentTrackId);\r\n if (!slot?.instance) return null;\r\n return slot.instance === this._store.instanceOf(slot.track.id) ? slot.instance : null;\r\n }\r\n\r\n /** Every track on screen, back to front. Empty over a hole. */\r\n get activeTrackIds(): string[] {\r\n return this._active.map(slot => slot.track.id);\r\n }\r\n\r\n /** Put every track covering `frame` into its state, building any that never has been. */\r\n stateAt(frame: number): void {\r\n if (this._disposed) return;\r\n const target = Math.max(0, Math.floor(frame));\r\n const active = this._slotsToDraw(target);\r\n\r\n // Evaluation is idempotent, so a repeat would only cost. Compared by slot\r\n // rather than by count: a swap can change which tracks are on screen\r\n // without changing how many.\r\n if (!this._stale && target === this._currentFrame && sameSlots(active, this._active)\r\n && active.every(slot => this._settled(slot))) {\r\n return;\r\n }\r\n\r\n this._active = active;\r\n const topmost = firstVisual([...active].reverse());\r\n if (topmost) this._currentTrackId = topmost.track.id;\r\n\r\n for (const slot of active) slot.instance = this._store.ensureBuilt(slot.track.id);\r\n for (const slot of active) {\r\n if (!slot.instance) continue;\r\n this._evaluate(slot, target - slot.span.startFrame);\r\n slot.generation = this._store.generationOf(slot.track.id);\r\n }\r\n\r\n this._currentFrame = target;\r\n this._stale = false;\r\n }\r\n\r\n layout(measurer: MeasureContext2D = this._scope.measurer): void {\r\n for (const slot of this._active) this._live(slot)?.layout(measurer);\r\n }\r\n\r\n render(pass: RenderPass2D): void {\r\n for (const slot of this._active) this._live(slot)?.render(pass);\r\n }\r\n\r\n /** Evaluate the current frame afresh on the next {@link stateAt}. */\r\n invalidate(): void {\r\n this._stale = true;\r\n }\r\n\r\n /**\r\n * Throw a track's tree away so the next {@link stateAt} builds it fresh.\r\n *\r\n * The way back to what the document says for a node nothing animates: the\r\n * timeline restores only what its commands write, so a value written straight\r\n * onto a live prop — an editor's override — survives re-evaluation.\r\n */\r\n rebuild(trackId: string | null = this._currentTrackId): void {\r\n if (trackId === null) return;\r\n this._store.rebuild(trackId);\r\n this._stale = true;\r\n }\r\n\r\n /**\r\n * Take a new document. The store decides what each track keeps — see\r\n * {@link ClipStore.setProject}; a store shared with a precomp has already\r\n * taken it, and taking it twice is a no-op.\r\n */\r\n setProject(next: ProjectDocument): void {\r\n if (this._disposed) return;\r\n this._store.setProject(next);\r\n const prior = new Map(this._slots.map(slot => [slot.track.id, slot]));\r\n this._slots = this._slotsFor(next.tracks, prior);\r\n\r\n const kept = new Set(this._slots);\r\n for (const id of this._editorStates.keys()) {\r\n if (!this._slotOf(id)) this._editorStates.delete(id);\r\n }\r\n\r\n // Keep drawing what survived until the next evaluation: a repaint can land\r\n // in between, and an emptied set would paint a blank frame over an edit.\r\n this._active = this._active.filter(slot => kept.has(slot));\r\n if (!this._slotOf(this._currentTrackId)) {\r\n this._currentTrackId = firstVisual(this._slots)?.track.id ?? null;\r\n }\r\n this._stale = true;\r\n }\r\n\r\n /** Hidden/locked state for one track's nodes — editor state, not authored, so it rides beside the document. */\r\n setEditorStates(trackId: string, states: NodeEditorStates | undefined): void {\r\n if (states) this._editorStates.set(trackId, states);\r\n else this._editorStates.delete(trackId);\r\n this._stale = true;\r\n }\r\n\r\n dispose(): void {\r\n this._disposed = true;\r\n this._active = [];\r\n for (const slot of this._slots) slot.instance = null;\r\n if (this._owned) this._store.dispose();\r\n }\r\n\r\n private readonly _store: ClipStore;\r\n private readonly _owned: boolean;\r\n private _slots: Slot[];\r\n private _active: Slot[] = [];\r\n private _currentFrame = 0;\r\n private _currentTrackId: string | null;\r\n /** Kept apart from the frame, so \"evaluate again\" never reads as \"frame -1\". */\r\n private _stale = false;\r\n private _disposed = false;\r\n private readonly _editorStates = new Map<string, NodeEditorStates>();\r\n\r\n private _slotsFor(tracks: readonly Track[], prior: ReadonlyMap<string, Slot>): Slot[] {\r\n const spans = placeTracks(tracks, this._scope.fps);\r\n return tracks.map((track, i) => {\r\n const old = prior.get(track.id);\r\n if (old) {\r\n old.track = track;\r\n old.span = spans[i];\r\n return old;\r\n }\r\n return { track, span: spans[i], instance: null, generation: -1 };\r\n });\r\n }\r\n\r\n private _slotOf(trackId: string | null): Slot | undefined {\r\n return trackId === null ? undefined : this._slots.find(slot => slot.track.id === trackId);\r\n }\r\n\r\n /** Whether `slot` still holds the tree the store has, in the state it was evaluated to. */\r\n private _settled(slot: Slot): boolean {\r\n const id = slot.track.id;\r\n if (!slot.instance) return this._store.failed(id);\r\n return slot.instance === this._store.instanceOf(id) && slot.generation === this._store.generationOf(id);\r\n }\r\n\r\n /** `slot`'s tree while the store still holds it — a released one must not be drawn. */\r\n private _live(slot: Slot): ClipInstance | null {\r\n return slot.instance && slot.instance === this._store.instanceOf(slot.track.id) ? slot.instance : null;\r\n }\r\n\r\n /**\r\n * The slots to draw at `frame`, holding the final stack past the end of the\r\n * project — a frame parked beyond the last one keeps showing the picture —\r\n * while a gap in the middle is a real hole and draws nothing.\r\n */\r\n private _slotsToDraw(frame: number): Slot[] {\r\n const spans = this._slots.map(slot => slot.span);\r\n let covering = spansCovering(spans, frame);\r\n if (covering.length === 0) {\r\n const last = Math.max(-1, ...spans.map(span => span.endFrame));\r\n if (frame > last && last >= 0) covering = spansCovering(spans, last);\r\n }\r\n return covering.map(span => this._slots[span.index]);\r\n }\r\n\r\n /**\r\n * Put `slot` into the state for `localFrame`.\r\n *\r\n * The track runs on its own clock, so where it sits never changes what it\r\n * draws. The frame before is evaluated too and stamped as motion history:\r\n * motion is a property of the frame, not of the seek that reached it.\r\n */\r\n private _evaluate(slot: Slot, localFrame: number): void {\r\n const instance = slot.instance!;\r\n const dt = clipFrameToTime(1, this._scope.fps);\r\n // Clamped so a frame held past the end shows where the track stops — a\r\n // track can cut its clip short, and the clip goes on past the cut.\r\n const time = frameTime(localFrame, this._scope.fps, slot.track.duration);\r\n instance.attach(time, this._editorStates.get(slot.track.id));\r\n\r\n const previous = Math.max(0, time - dt);\r\n instance.evaluateAt(previous);\r\n instance.layout();\r\n instance.primeMotion(previous);\r\n\r\n instance.evaluateAt(time);\r\n instance.layout();\r\n instance.sample();\r\n }\r\n}\r\n\r\nfunction firstVisual(slots: readonly Slot[]): Slot | undefined {\r\n return slots.find(slot => !isAudioDocument(slot.track.clip));\r\n}\r\n\r\nfunction sameSlots(a: readonly Slot[], b: readonly Slot[]): boolean {\r\n if (a.length !== b.length) return false;\r\n for (let i = 0; i < a.length; i++) if (a[i] !== b[i]) return false;\r\n return true;\r\n}\r\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,IA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AK,CAAC,QAAQ,CAAC,CAAC;QACzE,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;QAE7D,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,GAAG,EAAE,CAAC,CAAC;QACxC,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;QAC9B,QAAQ,CAAC,MAAM,EAAE,CAAC;QAClB,QAAQ,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QAE/B,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QAC1B,QAAQ,CAAC,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\";\r\nimport { isAudioDocument } from \"@/document/types\";\r\nimport type { NodeEditorStates } from \"@/components/trees/node/node-editor-state\";\r\nimport type { Canvas2D } from \"@/components/trees/root/canvas2d-node\";\r\nimport type { MeasureContext2D } from \"@/render/measure-context\";\r\nimport type { RenderPass2D } from \"@/render/render-context2d\";\r\nimport type { ClipInstance, RuntimeScope } from \"./clip-instance\";\r\nimport { ClipStore } from \"./clip-store\";\r\nimport { clipFrameToTime } from \"./frame-time\";\r\nimport { frameTime, placeTracks, spansCovering, type TrackSpan } from \"./placement\";\r\n\r\n/** One track, and the tree it was last evaluated on. */\r\ninterface Slot {\r\n track: Track;\r\n span: TrackSpan;\r\n instance: ClipInstance | null;\r\n /** The store's generation for the track when {@link instance} was last evaluated. */\r\n generation: number;\r\n}\r\n\r\n/**\r\n * Puts a project's tracks into the state for a frame, then lays out and draws\r\n * the ones covering it, back to front.\r\n *\r\n * Trees come from a {@link ClipStore}: a track's is built the first time it\r\n * covers a frame — or taken as discovery left it — and thereafter only asked for\r\n * times, so a seek costs the same in either direction and however far. The store\r\n * owns them; anything it does to one (a refinement, a patch, a rebuild) moves\r\n * its generation, and this evaluates again. Nothing isolates overlapping\r\n * tracks: they composite by draw order alone, which is what lets a translucent\r\n * track show the one beneath it.\r\n */\r\nexport class StateEvaluator {\r\n /** Without `store`, the evaluator builds into one of its own. */\r\n constructor(project: ProjectDocument, private readonly _scope: RuntimeScope, store?: ClipStore) {\r\n this._owned = store === undefined;\r\n this._store = store ?? new ClipStore(project, _scope, { assets: false, audio: false });\r\n this._slots = this._slotsFor(project.tracks, new Map());\r\n this._currentTrackId = firstVisual(this._slots)?.track.id ?? null;\r\n }\r\n\r\n /** The frame on screen. {@link invalidate} drops the memo, not the position. */\r\n get currentFrame(): number {\r\n return this._currentFrame;\r\n }\r\n\r\n /**\r\n * The topmost visual track on screen — or, over a hole, the last one there\r\n * was. An audio clip is a canvas drawing nothing, so it is never what an\r\n * editor picks from.\r\n */\r\n get currentTrackId(): string | null {\r\n return this._currentTrackId;\r\n }\r\n\r\n /** {@link currentTrackId}'s tree, once built. */\r\n get currentCanvas(): Canvas2D | null {\r\n return this.currentInstance?.canvas ?? null;\r\n }\r\n\r\n /** {@link currentTrackId}'s clip instance, once built. */\r\n get currentInstance(): ClipInstance | null {\r\n const slot = this._slotOf(this._currentTrackId);\r\n if (!slot?.instance) return null;\r\n return slot.instance === this._store.instanceOf(slot.track.id) ? slot.instance : null;\r\n }\r\n\r\n /** Every track on screen, back to front. Empty over a hole. */\r\n get activeTrackIds(): string[] {\r\n return this._active.map(slot => slot.track.id);\r\n }\r\n\r\n /** Put every track covering `frame` into its state, building any that never has been. */\r\n stateAt(frame: number): void {\r\n if (this._disposed) return;\r\n const target = Math.max(0, Math.floor(frame));\r\n const active = this._slotsToDraw(target);\r\n\r\n // Evaluation is idempotent, so a repeat would only cost. Compared by slot\r\n // rather than by count: a swap can change which tracks are on screen\r\n // without changing how many.\r\n if (!this._stale && target === this._currentFrame && sameSlots(active, this._active)\r\n && active.every(slot => this._settled(slot))) {\r\n return;\r\n }\r\n\r\n this._active = active;\r\n const topmost = firstVisual([...active].reverse());\r\n if (topmost) this._currentTrackId = topmost.track.id;\r\n\r\n for (const slot of active) slot.instance = this._store.ensureBuilt(slot.track.id);\r\n for (const slot of active) {\r\n if (!slot.instance) continue;\r\n this._evaluate(slot, target - slot.span.startFrame);\r\n slot.generation = this._store.generationOf(slot.track.id);\r\n }\r\n\r\n this._currentFrame = target;\r\n this._stale = false;\r\n }\r\n\r\n layout(measurer: MeasureContext2D = this._scope.measurer): void {\r\n for (const slot of this._active) this._live(slot)?.layout(measurer);\r\n }\r\n\r\n render(pass: RenderPass2D): void {\r\n for (const slot of this._active) this._live(slot)?.render(pass);\r\n }\r\n\r\n /** Evaluate the current frame afresh on the next {@link stateAt}. */\r\n invalidate(): void {\r\n this._stale = true;\r\n }\r\n\r\n /**\r\n * Throw a track's tree away so the next {@link stateAt} builds it fresh.\r\n *\r\n * The way back to what the document says for a node nothing animates: the\r\n * timeline restores only what its commands write, so a value written straight\r\n * onto a live prop — an editor's override — survives re-evaluation.\r\n */\r\n rebuild(trackId: string | null = this._currentTrackId): void {\r\n if (trackId === null) return;\r\n this._store.rebuild(trackId);\r\n this._stale = true;\r\n }\r\n\r\n /**\r\n * Take a new document. The store decides what each track keeps — see\r\n * {@link ClipStore.setProject}; a store shared with a precomp has already\r\n * taken it, and taking it twice is a no-op.\r\n */\r\n setProject(next: ProjectDocument): void {\r\n if (this._disposed) return;\r\n this._store.setProject(next);\r\n const prior = new Map(this._slots.map(slot => [slot.track.id, slot]));\r\n this._slots = this._slotsFor(next.tracks, prior);\r\n\r\n const kept = new Set(this._slots);\r\n for (const id of this._editorStates.keys()) {\r\n if (!this._slotOf(id)) this._editorStates.delete(id);\r\n }\r\n\r\n // Keep drawing what survived until the next evaluation: a repaint can land\r\n // in between, and an emptied set would paint a blank frame over an edit.\r\n this._active = this._active.filter(slot => kept.has(slot));\r\n if (!this._slotOf(this._currentTrackId)) {\r\n this._currentTrackId = firstVisual(this._slots)?.track.id ?? null;\r\n }\r\n this._stale = true;\r\n }\r\n\r\n /** Hidden/locked state for one track's nodes — editor state, not authored, so it rides beside the document. */\r\n setEditorStates(trackId: string, states: NodeEditorStates | undefined): void {\r\n if (states) this._editorStates.set(trackId, states);\r\n else this._editorStates.delete(trackId);\r\n this._stale = true;\r\n }\r\n\r\n dispose(): void {\r\n this._disposed = true;\r\n this._active = [];\r\n for (const slot of this._slots) slot.instance = null;\r\n if (this._owned) this._store.dispose();\r\n }\r\n\r\n private readonly _store: ClipStore;\r\n private readonly _owned: boolean;\r\n private _slots: Slot[];\r\n private _active: Slot[] = [];\r\n private _currentFrame = 0;\r\n private _currentTrackId: string | null;\r\n /** Kept apart from the frame, so \"evaluate again\" never reads as \"frame -1\". */\r\n private _stale = false;\r\n private _disposed = false;\r\n private readonly _editorStates = new Map<string, NodeEditorStates>();\r\n\r\n private _slotsFor(tracks: readonly Track[], prior: ReadonlyMap<string, Slot>): Slot[] {\r\n const spans = placeTracks(tracks, this._scope.fps);\r\n return tracks.map((track, i) => {\r\n const old = prior.get(track.id);\r\n if (old) {\r\n old.track = track;\r\n old.span = spans[i];\r\n return old;\r\n }\r\n return { track, span: spans[i], instance: null, generation: -1 };\r\n });\r\n }\r\n\r\n private _slotOf(trackId: string | null): Slot | undefined {\r\n return trackId === null ? undefined : this._slots.find(slot => slot.track.id === trackId);\r\n }\r\n\r\n /** Whether `slot` still holds the tree the store has, in the state it was evaluated to. */\r\n private _settled(slot: Slot): boolean {\r\n const id = slot.track.id;\r\n if (!slot.instance) return this._store.failed(id);\r\n return slot.instance === this._store.instanceOf(id) && slot.generation === this._store.generationOf(id);\r\n }\r\n\r\n /** `slot`'s tree while the store still holds it — a released one must not be drawn. */\r\n private _live(slot: Slot): ClipInstance | null {\r\n return slot.instance && slot.instance === this._store.instanceOf(slot.track.id) ? slot.instance : null;\r\n }\r\n\r\n /**\r\n * The slots to draw at `frame`, holding the final stack past the end of the\r\n * project — a frame parked beyond the last one keeps showing the picture —\r\n * while a gap in the middle is a real hole and draws nothing.\r\n */\r\n private _slotsToDraw(frame: number): Slot[] {\r\n const spans = this._slots.map(slot => slot.span);\r\n let covering = spansCovering(spans, frame);\r\n if (covering.length === 0) {\r\n const last = Math.max(-1, ...spans.map(span => span.endFrame));\r\n if (frame > last && last >= 0) covering = spansCovering(spans, last);\r\n }\r\n return covering.map(span => this._slots[span.index]);\r\n }\r\n\r\n /**\r\n * Put `slot` into the state for `localFrame`.\r\n *\r\n * The track runs on its own clock, so where it sits never changes what it\r\n * draws. The frame before is evaluated too and stamped as motion history:\r\n * motion is a property of the frame, not of the seek that reached it.\r\n */\r\n private _evaluate(slot: Slot, localFrame: number): void {\r\n const instance = slot.instance!;\r\n const dt = clipFrameToTime(1, this._scope.fps);\r\n // Clamped so a frame held past the end shows where the track stops — a\r\n // track can cut its clip short, and the clip goes on past the cut.\r\n const time = frameTime(localFrame, this._scope.fps, slot.track.duration);\r\n instance.attach(time, this._editorStates.get(slot.track.id));\r\n\r\n const previous = Math.max(0, time - dt);\r\n instance.evaluateAt(previous);\r\n instance.layout();\r\n instance.primeMotion(previous);\r\n\r\n instance.evaluateAt(time);\r\n instance.layout();\r\n instance.sample();\r\n }\r\n}\r\n\r\nfunction firstVisual(slots: readonly Slot[]): Slot | undefined {\r\n return slots.find(slot => !isAudioDocument(slot.track.clip));\r\n}\r\n\r\nfunction sameSlots(a: readonly Slot[], b: readonly Slot[]): boolean {\r\n if (a.length !== b.length) return false;\r\n for (let i = 0; i < a.length; i++) if (a[i] !== b[i]) return false;\r\n return true;\r\n}\r\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,6 +1,5 @@
|
|
|
1
|
-
import { Text
|
|
2
|
-
import {
|
|
3
|
-
import { textStateOf } from "../component/modules/text-layout.js";
|
|
1
|
+
import { Text } from "../components/builtins/text/text.js";
|
|
2
|
+
import { textStateOf } from "../components/modules/text-layout.js";
|
|
4
3
|
import { applyToPoint } from "../attributes/layout/matrix2d.js";
|
|
5
4
|
import { caretCount } from "../render/text-layout.js";
|
|
6
5
|
import { renderMatrix } from "./node-picking.js";
|
|
@@ -14,8 +13,8 @@ import { renderMatrix } from "./node-picking.js";
|
|
|
14
13
|
* {@link nodeBox} applies to a node's corners.
|
|
15
14
|
*/
|
|
16
15
|
export function nodeTextLayout(node, path, source) {
|
|
17
|
-
//
|
|
18
|
-
const state = node instanceof
|
|
16
|
+
// A text's state is what it last drew.
|
|
17
|
+
const state = node instanceof Text ? textStateOf(node) : null;
|
|
19
18
|
if (!state)
|
|
20
19
|
return null;
|
|
21
20
|
const block = source.layoutTextBlock(state);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-geometry.js","sourceRoot":"","sources":["../../src/runtime/text-geometry.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAE9D,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,iFAAiF;IACjF,MAAM,KAAK,GAAG,IAAI,YAAY,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,IAAI,YAAY,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAC9G,IAAI,CAAC,KAAK;QAAE,OAAO,IAAI,CAAC;IACxB,MAAM,KAAK,GAAG,MAAM,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;IAC5C,IAAI,CAAC,KAAK;QAAE,OAAO,IAAI,CAAC;IAExB,MAAM,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es/2d/node2d\";\r\nimport { Text as TextClass } from \"@/nodes/text/text-node\";\r\nimport { Text } from \"@/component/builtins/text\";\r\nimport { textStateOf } from \"@/component/modules/text-layout\";\r\nimport { Vector2 } from \"@/attributes/layout/vector2\";\r\nimport { applyToPoint } from \"@/attributes/layout/matrix2d\";\r\nimport { caretCount, type TextBlockSource } from \"@/render/text-layout\";\r\nimport { renderMatrix } from \"./node-picking\";\r\n\r\n/**\r\n * Where a Text node's caret slots landed on screen — the measurement a host\r\n * needs to draw its own text cursor and selection over the rendered glyphs.\r\n *\r\n * **Space.** Viewport space, exactly as {@link NodeBox}: origin at the viewport\r\n * centre, y-up, viewport units, camera folded in. A caret and the selection box\r\n * around it therefore come out of the same walk and cannot disagree.\r\n *\r\n * **Why the host draws it.** Anything approximating glyph positions outside the\r\n * shaper — a DOM input laid over the canvas, say — drifts from the render the\r\n * moment the font, the line height or the wrapping does, and CSS `line-height`\r\n * and Skia's height multiplier are not the same quantity to begin with. Handing\r\n * over the real slots means the rendered text stays the thing being edited.\r\n */\r\nexport interface NodeTextLayout {\r\n /** Structural path of the node measured, as {@link NodeBox.path}. */\r\n path: string;\r\n /** The string the slots describe. */\r\n text: string;\r\n /**\r\n * Every caret slot, in offset order: `carets[i]` sits before character `i`,\r\n * and the last sits after the final character — so there are `text.length + 1`\r\n * of them, and a caret offset is always a valid index.\r\n *\r\n * Each is a *segment*, not a point, because a rotated node's cursor is a\r\n * rotated line: draw from `top` to `bottom`.\r\n */\r\n carets: TextCaret[];\r\n /**\r\n * Line ranges over caret offsets, for Home/End and vertical arrow keys. A\r\n * hard line break belongs to neither line, so `lines[n].end` and\r\n * `lines[n + 1].start` differ by one where the break is.\r\n */\r\n lines: { start: number; end: number }[];\r\n}\r\n\r\n/** One caret slot: the line an editor would draw for a cursor at this offset. */\r\nexport interface TextCaret {\r\n /** Character offset this slot sits before. */\r\n offset: number;\r\n /** Top and bottom of the cursor, viewport space. */\r\n top: Vector2;\r\n bottom: Vector2;\r\n}\r\n\r\n/** One line's worth of a selected range, as a quad in viewport space. */\r\nexport interface TextRangeQuad {\r\n topLeft: Vector2;\r\n topRight: Vector2;\r\n bottomRight: Vector2;\r\n bottomLeft: Vector2;\r\n}\r\n\r\n/**\r\n * Measure `node`'s caret slots in viewport space, or `null` when it has none to\r\n * report — not a {@link Text}, nothing shaped yet, or a shape the caret model\r\n * doesn't cover (see {@link RenderContext2D.layoutTextBlock}).\r\n *\r\n * The block-local layout comes from the backend, because that is where glyphs\r\n * are actually positioned; everything below is the same mapping\r\n * {@link nodeBox} applies to a node's corners.\r\n */\r\nexport function nodeTextLayout(\r\n node: Node2D,\r\n path: string,\r\n source: TextBlockSource,\r\n): NodeTextLayout | null {\r\n // The class until the seal, and the component, whose state is what it last drew.\r\n const state = node instanceof TextClass ? node._textState() : node instanceof Text ? textStateOf(node) : null;\r\n if (!state) return null;\r\n const block = source.layoutTextBlock(state);\r\n if (!block) return null;\r\n\r\n const m = renderMatrix(node);\r\n // The block is laid out about the node's own origin — which is also where\r\n // `_localBounds` centres the box, and what `verticalAlign` offsets it from —\r\n // so a block-local offset is a node-local one, unshifted. Block coordinates are already canvas (y-down), which is\r\n // the space the matrix works in, so unlike `worldAnchors` (which takes y-up\r\n // corner offsets) only the *result* is flipped back to y-up viewport space.\r\n const at = (x: number, y: number): Vector2 => {\r\n const p = applyToPoint(m, { x, y });\r\n return { x: p.x, y: -p.y };\r\n };\r\n\r\n const carets: TextCaret[] = new Array(caretCount(block));\r\n const lines: { start: number; end: number }[] = [];\r\n for (const line of block.lines) {\r\n lines.push({ start: line.start, end: line.end });\r\n for (let i = 0; i < line.carets.length; i++) {\r\n const x = line.carets[i];\r\n carets[line.start + i] = {\r\n offset: line.start + i,\r\n top: at(x, line.top),\r\n bottom: at(x, line.bottom),\r\n };\r\n }\r\n }\r\n\r\n return { path, text: (node as unknown as { text: string }).text, carets, lines };\r\n}\r\n\r\n/**\r\n * The caret offset nearest `point` (viewport space) — what a click or a drag\r\n * over the rendered text should place the cursor at.\r\n *\r\n * Nearest *slot*, by distance to the caret segment rather than to its midpoint:\r\n * a click below a short first line should land on that line's nearest slot, and\r\n * midpoints would pull it toward whichever line's centre happened to be closer.\r\n * Segment distance also keeps this correct for rotated and scaled text without\r\n * needing a separate case, since the slots arrive already transformed.\r\n */\r\nexport function caretOffsetAt(layout: NodeTextLayout, point: Vector2): number {\r\n let best = 0;\r\n let bestDistance = Infinity;\r\n for (const caret of layout.carets) {\r\n const d = distanceToSegment(point, caret.top, caret.bottom);\r\n if (d < bestDistance) {\r\n bestDistance = d;\r\n best = caret.offset;\r\n }\r\n }\r\n return best;\r\n}\r\n\r\n/**\r\n * The quads covering `[start, end)`, one per line the range touches — what a\r\n * host fills to draw a selection highlight.\r\n *\r\n * Per line rather than one box for the whole range, because a range spanning a\r\n * line break covers two disjoint areas and a single enclosing box would paint\r\n * over the gap between them.\r\n */\r\nexport function caretRangeQuads(\r\n layout: NodeTextLayout,\r\n start: number,\r\n end: number,\r\n): TextRangeQuad[] {\r\n const from = Math.max(0, Math.min(start, end));\r\n const to = Math.min(layout.carets.length - 1, Math.max(start, end));\r\n const quads: TextRangeQuad[] = [];\r\n for (const line of layout.lines) {\r\n const a = Math.max(from, line.start);\r\n const b = Math.min(to, line.end);\r\n if (a >= b) continue; // empty on this line\r\n const left = layout.carets[a];\r\n const right = layout.carets[b];\r\n quads.push({\r\n topLeft: left.top,\r\n topRight: right.top,\r\n bottomRight: right.bottom,\r\n bottomLeft: left.bottom,\r\n });\r\n }\r\n return quads;\r\n}\r\n\r\n/** Distance from `p` to the segment `a`–`b`. */\r\nfunction distanceToSegment(p: Vector2, a: Vector2, b: Vector2): number {\r\n const dx = b.x - a.x;\r\n const dy = b.y - a.y;\r\n const lengthSq = dx * dx + dy * dy;\r\n // A degenerate segment (a zero-height line box) is just a point.\r\n const t = lengthSq === 0\r\n ? 0\r\n : Math.max(0, Math.min(1, ((p.x - a.x) * dx + (p.y - a.y) * dy) / lengthSq));\r\n return Math.hypot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AC,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 \"@/components/trees/2d/node2d\";\r\nimport { Text } from \"@/components/builtins/text/text\";\r\nimport { textStateOf } from \"@/components/modules/text-layout\";\r\nimport { Vector2 } from \"@/attributes/layout/vector2\";\r\nimport { applyToPoint } from \"@/attributes/layout/matrix2d\";\r\nimport { caretCount, type TextBlockSource } from \"@/render/text-layout\";\r\nimport { renderMatrix } from \"./node-picking\";\r\n\r\n/**\r\n * Where a Text node's caret slots landed on screen — the measurement a host\r\n * needs to draw its own text cursor and selection over the rendered glyphs.\r\n *\r\n * **Space.** Viewport space, exactly as {@link NodeBox}: origin at the viewport\r\n * centre, y-up, viewport units, camera folded in. A caret and the selection box\r\n * around it therefore come out of the same walk and cannot disagree.\r\n *\r\n * **Why the host draws it.** Anything approximating glyph positions outside the\r\n * shaper — a DOM input laid over the canvas, say — drifts from the render the\r\n * moment the font, the line height or the wrapping does, and CSS `line-height`\r\n * and the renderer's height multiplier are not the same quantity to begin with. Handing\r\n * over the real slots means the rendered text stays the thing being edited.\r\n */\r\nexport interface NodeTextLayout {\r\n /** Structural path of the node measured, as {@link NodeBox.path}. */\r\n path: string;\r\n /** The string the slots describe. */\r\n text: string;\r\n /**\r\n * Every caret slot, in offset order: `carets[i]` sits before character `i`,\r\n * and the last sits after the final character — so there are `text.length + 1`\r\n * of them, and a caret offset is always a valid index.\r\n *\r\n * Each is a *segment*, not a point, because a rotated node's cursor is a\r\n * rotated line: draw from `top` to `bottom`.\r\n */\r\n carets: TextCaret[];\r\n /**\r\n * Line ranges over caret offsets, for Home/End and vertical arrow keys. A\r\n * hard line break belongs to neither line, so `lines[n].end` and\r\n * `lines[n + 1].start` differ by one where the break is.\r\n */\r\n lines: { start: number; end: number }[];\r\n}\r\n\r\n/** One caret slot: the line an editor would draw for a cursor at this offset. */\r\nexport interface TextCaret {\r\n /** Character offset this slot sits before. */\r\n offset: number;\r\n /** Top and bottom of the cursor, viewport space. */\r\n top: Vector2;\r\n bottom: Vector2;\r\n}\r\n\r\n/** One line's worth of a selected range, as a quad in viewport space. */\r\nexport interface TextRangeQuad {\r\n topLeft: Vector2;\r\n topRight: Vector2;\r\n bottomRight: Vector2;\r\n bottomLeft: Vector2;\r\n}\r\n\r\n/**\r\n * Measure `node`'s caret slots in viewport space, or `null` when it has none to\r\n * report — not a {@link Text}, nothing shaped yet, or a shape the caret model\r\n * doesn't cover (see {@link RenderContext2D.layoutTextBlock}).\r\n *\r\n * The block-local layout comes from the backend, because that is where glyphs\r\n * are actually positioned; everything below is the same mapping\r\n * {@link nodeBox} applies to a node's corners.\r\n */\r\nexport function nodeTextLayout(\r\n node: Node2D,\r\n path: string,\r\n source: TextBlockSource,\r\n): NodeTextLayout | null {\r\n // A text's state is what it last drew.\r\n const state = node instanceof Text ? textStateOf(node) : null;\r\n if (!state) return null;\r\n const block = source.layoutTextBlock(state);\r\n if (!block) return null;\r\n\r\n const m = renderMatrix(node);\r\n // The block is laid out about the node's own origin — which is also where\r\n // `_localBounds` centres the box, and what `verticalAlign` offsets it from —\r\n // so a block-local offset is a node-local one, unshifted. Block coordinates are already canvas (y-down), which is\r\n // the space the matrix works in, so unlike `worldAnchors` (which takes y-up\r\n // corner offsets) only the *result* is flipped back to y-up viewport space.\r\n const at = (x: number, y: number): Vector2 => {\r\n const p = applyToPoint(m, { x, y });\r\n return { x: p.x, y: -p.y };\r\n };\r\n\r\n const carets: TextCaret[] = new Array(caretCount(block));\r\n const lines: { start: number; end: number }[] = [];\r\n for (const line of block.lines) {\r\n lines.push({ start: line.start, end: line.end });\r\n for (let i = 0; i < line.carets.length; i++) {\r\n const x = line.carets[i];\r\n carets[line.start + i] = {\r\n offset: line.start + i,\r\n top: at(x, line.top),\r\n bottom: at(x, line.bottom),\r\n };\r\n }\r\n }\r\n\r\n return { path, text: (node as unknown as { text: string }).text, carets, lines };\r\n}\r\n\r\n/**\r\n * The caret offset nearest `point` (viewport space) — what a click or a drag\r\n * over the rendered text should place the cursor at.\r\n *\r\n * Nearest *slot*, by distance to the caret segment rather than to its midpoint:\r\n * a click below a short first line should land on that line's nearest slot, and\r\n * midpoints would pull it toward whichever line's centre happened to be closer.\r\n * Segment distance also keeps this correct for rotated and scaled text without\r\n * needing a separate case, since the slots arrive already transformed.\r\n */\r\nexport function caretOffsetAt(layout: NodeTextLayout, point: Vector2): number {\r\n let best = 0;\r\n let bestDistance = Infinity;\r\n for (const caret of layout.carets) {\r\n const d = distanceToSegment(point, caret.top, caret.bottom);\r\n if (d < bestDistance) {\r\n bestDistance = d;\r\n best = caret.offset;\r\n }\r\n }\r\n return best;\r\n}\r\n\r\n/**\r\n * The quads covering `[start, end)`, one per line the range touches — what a\r\n * host fills to draw a selection highlight.\r\n *\r\n * Per line rather than one box for the whole range, because a range spanning a\r\n * line break covers two disjoint areas and a single enclosing box would paint\r\n * over the gap between them.\r\n */\r\nexport function caretRangeQuads(\r\n layout: NodeTextLayout,\r\n start: number,\r\n end: number,\r\n): TextRangeQuad[] {\r\n const from = Math.max(0, Math.min(start, end));\r\n const to = Math.min(layout.carets.length - 1, Math.max(start, end));\r\n const quads: TextRangeQuad[] = [];\r\n for (const line of layout.lines) {\r\n const a = Math.max(from, line.start);\r\n const b = Math.min(to, line.end);\r\n if (a >= b) continue; // empty on this line\r\n const left = layout.carets[a];\r\n const right = layout.carets[b];\r\n quads.push({\r\n topLeft: left.top,\r\n topRight: right.top,\r\n bottomRight: right.bottom,\r\n bottomLeft: left.bottom,\r\n });\r\n }\r\n return quads;\r\n}\r\n\r\n/** Distance from `p` to the segment `a`–`b`. */\r\nfunction distanceToSegment(p: Vector2, a: Vector2, b: Vector2): number {\r\n const dx = b.x - a.x;\r\n const dy = b.y - a.y;\r\n const lengthSq = dx * dx + dy * dy;\r\n // A degenerate segment (a zero-height line box) is just a point.\r\n const t = lengthSq === 0\r\n ? 0\r\n : Math.max(0, Math.min(1, ((p.x - a.x) * dx + (p.y - a.y) * dy) / lengthSq));\r\n return Math.hypot(p.x - (a.x + t * dx), p.y - (a.y + t * dy));\r\n}\r\n"]}
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -4,64 +4,68 @@ 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 '../
|
|
7
|
+
export type { NodeTime, AttachScope } from '../components/trees/index.js';
|
|
8
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, Registry, } from '../document/index.js';
|
|
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, VisualDocument, ClipDocument, StillDocument, CompositionDocument, AudioDocument, NodeSpec, TimedNodeSpec, NodeSpan, CommandSpec, EaseSpec, LoopSpec, LoopDirection, VariableSpec, ValidationIssue, ValidationResult, NodeConstructor, CommandFactory, CommandTypeEntry, VariableCommandFactory, VariableLerp, VariableTarget, } from '../document/index.js';
|
|
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 { component2d } from '../
|
|
17
|
-
export { componentAudio } from '../
|
|
18
|
-
export { component3d } from '../
|
|
19
|
-
export { commandsFor } from '../
|
|
20
|
-
export { Types } from '../
|
|
21
|
-
export { provides } from '../
|
|
22
|
-
export * as Paint from '../
|
|
23
|
-
export * as Flow from '../
|
|
24
|
-
export * as Shapes from '../
|
|
25
|
-
export * as Aim from '../
|
|
26
|
-
export * as Typeface from '../
|
|
27
|
-
export * as TextLayout from '../
|
|
28
|
-
export * as Material from '../
|
|
29
|
-
export * as View3D from '../
|
|
30
|
-
export type { Attribute, EntryOptions, NumberOptions, TextOptions } from '../
|
|
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, RenderContext2D as RenderContext, CallProps3D, Placement3DProps, Transform3DState, Handle, LayoutBox, NodeFrame, RenderContext3D as SceneContext, } from '../
|
|
32
|
-
export type { Node, Node2D } from '../
|
|
33
|
-
export { Canvas2D, findNode2D, frameIn, } from '../
|
|
34
|
-
export { Provider, ThemeProvider } from '../
|
|
35
|
-
export type { NodeProps, Node2DProps, ChildPlacement, ChildPlane, NodeHandle, Canvas2DProps, NodeConfig, NodeChildren, NodeDimension,
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
38
|
-
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';
|
|
39
41
|
export type { BooleanOperation, MaskMode, MaskOptions, } from '../attributes/index.js';
|
|
40
|
-
export { Camera, OrbitCamera, RotatedBox, } from '../
|
|
41
|
-
export type { CameraProps, OrbitCameraProps, } from '../
|
|
42
|
-
export { Text, RichText, NumberNode, DefaultTextStyle } from '../
|
|
43
|
-
export {
|
|
44
|
-
export type { TextProps, RichTextProps, NumberProps, NumberFormat, DefaultTextStyleProps, TextSelectionProps, TextRange, SelectionOverrides, } from '../nodes/index.js';
|
|
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';
|
|
45
46
|
export { textOps } from '../attributes/index.js';
|
|
46
47
|
export type { TextStyle, TextAlign, VerticalAlign, TextDecoration, TextCase, TextSpan, TextRun, FontStyle, } from '../attributes/index.js';
|
|
47
|
-
export { Video } from '../
|
|
48
|
-
export type { VideoProps, VideoSegment, } from '../
|
|
49
|
-
export type { NodeAudio } from '../
|
|
50
|
-
export { AudioBus, SoundNode } from '../
|
|
51
|
-
export { Sound,
|
|
52
|
-
export type { NodeAudioProps,
|
|
53
|
-
export type {
|
|
54
|
-
export {
|
|
55
|
-
export
|
|
56
|
-
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';
|
|
57
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';
|
|
58
|
-
export type { Canvas3DProps
|
|
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';
|
|
59
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';
|
|
60
64
|
export { Graphics2D, PathBuilder, Clip, toPathString, } from '../render/index.js';
|
|
61
65
|
export type { RenderContext2D, RenderPass2D, MeasureContext2D, TextBlockSource, GraphicsOp, PathData, PathCommand, PathBounds, EllipseArc, } from '../render/index.js';
|
|
62
66
|
export type { AssetScope, LoaderFn } from '../assets/index.js';
|
|
63
67
|
export { Fills, parseColor, resolveFill, fillOps, colorOps, } from '../attributes/index.js';
|
|
64
|
-
export type { Fill, FillChain, FillOptions, VideoFillOptions, MediaPlacementOptions, ImageFit, ImageCrop, ImageMatrix, FillResolved, ShaderFillProp, ShaderFillResolved,
|
|
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';
|
|
65
69
|
export { resolveStroke, strokeOps, resolveShadow, shadowOps, resolveCorners, cornerRadiusOps, cornerStyleOps, pathOps, } from '../attributes/index.js';
|
|
66
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';
|
|
67
71
|
export { lerpVector2, sizeInputOps, insetsOps, alignmentOps, } from '../attributes/index.js';
|
|
@@ -70,6 +74,8 @@ export type { Vector2, Size2D, Insets, InsetsProps, InsetsResolved, AlignmentKey
|
|
|
70
74
|
export type { FlowMode, GapSize, FlowResolved, FlowProps, FlowSettings, LayoutItem, FlowSpace, FlowMeasure, FlowLine, SizeConstraints, } from '../layout/index.js';
|
|
71
75
|
export { space3dOps } from '../attributes/layout/space3d.js';
|
|
72
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';
|
|
73
79
|
export { Effects, EffectChain, Adjustments, VideoAdjustments, AdjustmentChain, VideoAdjustmentChain,
|
|
74
80
|
/** @deprecated Renamed to {@link Adjustments}. Removed in the next major. */
|
|
75
81
|
ImageFilters,
|
|
@@ -95,7 +101,7 @@ export type { BlurOptions, DirectionalBlurOptions, GrayscaleOptions, PixelateOpt
|
|
|
95
101
|
*/
|
|
96
102
|
export type { BlurFilterOptions, GrayscaleFilterOptions, AlphaFilterOptions, ExposureFilterOptions, ColorMatrixFilterOptions, CurvesFilterOptions, ColorAdjustmentFilterOptions, PosterizeTimeFilterOptions, VideoEchoFilterOptions, } from '../attributes/index.js';
|
|
97
103
|
/** Effect data types, for naming an effect value or building one by hand. */
|
|
98
|
-
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';
|
|
99
105
|
export { lerpNumber, } from '../tween/index.js';
|
|
100
106
|
export type { AnimationTarget, Steppable, TweenStepper, LerpFunction, TweenOptions, } from '../tween/index.js';
|
|
101
107
|
export { getCommandMeta, isCommand, makeCommand, commandSequence, commandParallel, loopCommand, } from '../tween/index.js';
|
package/dist/sdk/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACtD,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASpD,YAAY,EACR,SAAS,EACT,SAAS,EACT,S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alB,OAAO,EACH,cAAc,EACd,SAAS,EACT,WAAW,EACX,eAAe,EACf,eAAe,EACf,WAAW,GACd,MAAM,UAAU,CAAC;AAClB,YAAY,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAKlF,OAAO,EACH,MAAM,EACN,MAAM,EACN,OAAO,EACP,SAAS,EACZ,MAAM,UAAU,CAAC;AAClB,YAAY,EACR,cAAc,EACd,UAAU,EACV,YAAY,EACf,MAAM,UAAU,CAAC;AAKlB,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,EAAE,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAChG,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9E,OAAO,EACH,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACb,aAAa,GAChB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACR,OAAO,EACP,iBAAiB,GACpB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACR,YAAY,GACf,MAAM,gCAAgC,CAAC;AACxC,YAAY,EACR,SAAS,GACZ,MAAM,YAAY,CAAC;AACpB,gEAAgE;AAChE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC"}
|
package/dist/sdk/index.js
CHANGED
|
@@ -30,6 +30,9 @@ export { placeTracks } from '../runtime/placement.js';
|
|
|
30
30
|
// what happens to them over time.
|
|
31
31
|
// =============================================================
|
|
32
32
|
export { validateDocument, assertValidDocument,
|
|
33
|
+
// Saved documents carry the format they were written in; these bring one
|
|
34
|
+
// forward, and a host rewriting stored node rows calls `migrateNodeProps`.
|
|
35
|
+
DOCUMENT_FORMAT_VERSION, DocumentTooNewError, documentFormatVersion, migrateDocument, migrateNodeProps, missingNodeOf,
|
|
33
36
|
// The code half of the model, as one object an engine owns. Not a
|
|
34
37
|
// singleton: what a document can name is a property of the registry
|
|
35
38
|
// compiling it, so two engines in one process disagree freely.
|
|
@@ -47,59 +50,57 @@ export { expressionOps, ExpressionError } from '../document/index.js';
|
|
|
47
50
|
// A component is one object literal: `key`, `state`, `commands`, `children`
|
|
48
51
|
// and its tree's own fields (`measure`/`layout`/`render` for 2D). Behaviour is
|
|
49
52
|
// spread in from modules (`...Paint.state`, `...Paint.commands`) and their
|
|
50
|
-
// helpers called (`Paint.draw`, `Flow.measure`). See
|
|
51
|
-
//
|
|
52
|
-
|
|
53
|
-
export {
|
|
54
|
-
export {
|
|
55
|
-
export {
|
|
56
|
-
export {
|
|
57
|
-
export {
|
|
58
|
-
export
|
|
59
|
-
export * as
|
|
60
|
-
export * as
|
|
61
|
-
export * as
|
|
62
|
-
export * as Aim from '../component/modules/aim.js';
|
|
53
|
+
// helpers called (`Paint.draw`, `Flow.measure`). See `packages/core/docs/why.md#node-types-are-factory-specs-not-decorated-classes`.
|
|
54
|
+
// =============================================================
|
|
55
|
+
export { component2d } from '../components/factory/component2d.js';
|
|
56
|
+
export { componentAudio } from '../components/factory/component-audio.js';
|
|
57
|
+
export { component3d } from '../components/factory/component3d.js';
|
|
58
|
+
export { commandsFor } from '../components/factory/commands-for.js';
|
|
59
|
+
export { Types } from '../components/factory/types.js';
|
|
60
|
+
export { provides } from '../components/factory/api.js';
|
|
61
|
+
export * as Paint from '../components/modules/paint.js';
|
|
62
|
+
export * as Flow from '../components/modules/flow.js';
|
|
63
|
+
export * as Shapes from '../components/modules/shapes.js';
|
|
64
|
+
export * as Aim from '../components/modules/aim.js';
|
|
63
65
|
// The face text is set in: its entries inherit from the nearest provider.
|
|
64
|
-
export * as Typeface from '../
|
|
65
|
-
export * as TextLayout from '../
|
|
66
|
+
export * as Typeface from '../components/modules/text-style.js';
|
|
67
|
+
export * as TextLayout from '../components/modules/text-layout.js';
|
|
66
68
|
// A mesh's surface: the material entries, and the mesh drawn with them.
|
|
67
|
-
export * as Material from '../
|
|
69
|
+
export * as Material from '../components/modules/material.js';
|
|
68
70
|
// A viewport onto 3D children: the default camera and lights, the grid, the render settings.
|
|
69
|
-
export * as View3D from '../
|
|
71
|
+
export * as View3D from '../components/modules/view3d.js';
|
|
70
72
|
export {
|
|
71
73
|
// A clip's root container: layout frame, background paint and camera in
|
|
72
74
|
// one node. Every track builds into one sized to the viewport.
|
|
73
75
|
Canvas2D,
|
|
74
76
|
// Reaching another node by the id a `nodeRef` prop holds, and reading where it sits.
|
|
75
|
-
findNode2D, frameIn, } from '../
|
|
76
|
-
export { Provider, ThemeProvider } from '../
|
|
77
|
+
findNode2D, frameIn, } from '../components/trees/index.js';
|
|
78
|
+
export { Provider, ThemeProvider } from '../components/builtins/providers/providers.js';
|
|
77
79
|
// =============================================================
|
|
78
80
|
// Nodes — Geometry
|
|
79
81
|
// =============================================================
|
|
80
82
|
export { Rect, Ellipse, Path,
|
|
81
83
|
// The document's `"path"`: its `data` is in the unit space of its own box,
|
|
82
84
|
// where `Path` draws its `d` at face value.
|
|
83
|
-
PathShape, Polygon, Polygram, Triangle, RightTriangle, Pentagon, Hexagon, Octagon, Star, } from '../
|
|
84
|
-
export { BooleanGroup, MaskGroup } from '../
|
|
85
|
+
PathShape, Polygon, Polygram, Triangle, RightTriangle, Pentagon, Hexagon, Octagon, Star, } from '../components/builtins/geometry/geometry.js';
|
|
86
|
+
export { BooleanGroup, MaskGroup } from '../components/builtins/geometry/composite.js';
|
|
85
87
|
// =============================================================
|
|
86
88
|
// Nodes — Layout
|
|
87
89
|
// =============================================================
|
|
88
90
|
export { Camera,
|
|
89
91
|
// The stage's 2.5D camera for one subtree: its children orbited in depth.
|
|
90
|
-
OrbitCamera, RotatedBox, } from '../
|
|
92
|
+
OrbitCamera, RotatedBox, } from '../components/builtins/layout/layout.js';
|
|
91
93
|
// =============================================================
|
|
92
94
|
// Nodes — Text
|
|
93
95
|
// =============================================================
|
|
94
|
-
export { Text, RichText, NumberNode, DefaultTextStyle } from '../
|
|
95
|
-
export { TextSelection } from '../nodes/index.js';
|
|
96
|
+
export { Text, RichText, NumberNode, DefaultTextStyle } from '../components/builtins/text/text.js';
|
|
96
97
|
export { textOps } from '../attributes/index.js';
|
|
97
98
|
// =============================================================
|
|
98
99
|
// Nodes — Media
|
|
99
100
|
// =============================================================
|
|
100
|
-
export { Video } from '../
|
|
101
|
-
export { AudioBus, SoundNode } from '../
|
|
102
|
-
export { Sound,
|
|
101
|
+
export { Video } from '../components/builtins/media/media.js';
|
|
102
|
+
export { AudioBus, SoundNode } from '../components/builtins/audio/audio.js';
|
|
103
|
+
export { Sound, AudioEffects, ramp, hold, isRamp, } from '../attributes/index.js';
|
|
103
104
|
// =============================================================
|
|
104
105
|
// 3D — the Canvas3D node and the Graphics3D API
|
|
105
106
|
// =============================================================
|
|
@@ -108,9 +109,9 @@ export { Sound, AudioFilters, ramp, hold, fadeIn, fadeOut, isCurve, } from '../a
|
|
|
108
109
|
// are what make a Vector3/Euler/Quaternion prop interpolate rather than snap.
|
|
109
110
|
// `Surface2D` is the 2D→3D bridge: a child of `Canvas3D` whose 2D content is
|
|
110
111
|
// rasterized offscreen and bound to a material by `Tex.surface(name)`.
|
|
111
|
-
export { Canvas3D } from '../
|
|
112
|
+
export { Canvas3D } from '../components/builtins/three/canvas3d.js';
|
|
112
113
|
// The 3D scene graph: components, each placed by its transform.
|
|
113
|
-
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 '../
|
|
114
|
+
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';
|
|
114
115
|
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';
|
|
115
116
|
// =============================================================
|
|
116
117
|
// Rendering — Graphics2D builder, RenderContext2D & asset declaration
|
|
@@ -148,7 +149,12 @@ export { flowOps } from '../layout/index.js';
|
|
|
148
149
|
export { space3dOps } from '../attributes/layout/space3d.js';
|
|
149
150
|
// =============================================================
|
|
150
151
|
// Effects & Media Adjustments
|
|
152
|
+
//
|
|
153
|
+
// `describeEffect` / `effectDescriptors` describe each built-in effect's
|
|
154
|
+
// fields (kind, default, range, unit, inspector hints) as plain JSON, so a
|
|
155
|
+
// host builds its effect UI from the engine rather than a copy of it.
|
|
151
156
|
// =============================================================
|
|
157
|
+
export { describeEffect, effectDescriptors } from '../attributes/index.js';
|
|
152
158
|
export { Effects, EffectChain, Adjustments, VideoAdjustments, AdjustmentChain, VideoAdjustmentChain,
|
|
153
159
|
/** @deprecated Renamed to {@link Adjustments}. Removed in the next major. */
|
|
154
160
|
ImageFilters,
|