@motionscript/core 0.1.0-alpha.0 → 0.1.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +356 -0
- package/NOTICE +49 -0
- package/README.md +29 -10
- package/dist/assets/catalog.d.ts +9 -0
- package/dist/assets/catalog.d.ts.map +1 -1
- package/dist/assets/catalog.js +11 -0
- package/dist/assets/catalog.js.map +1 -1
- package/dist/assets/errors.d.ts.map +1 -1
- package/dist/assets/errors.js +7 -3
- package/dist/assets/errors.js.map +1 -1
- package/dist/assets/manager.d.ts +26 -1
- package/dist/assets/manager.d.ts.map +1 -1
- package/dist/assets/manager.js +99 -15
- package/dist/assets/manager.js.map +1 -1
- package/dist/assets/scope.d.ts +4 -4
- package/dist/assets/scope.d.ts.map +1 -1
- package/dist/assets/scope.js +1 -1
- package/dist/assets/scope.js.map +1 -1
- package/dist/attributes/audio/effects/chain.d.ts +73 -0
- package/dist/attributes/audio/effects/chain.d.ts.map +1 -0
- package/dist/attributes/audio/effects/chain.js +67 -0
- package/dist/attributes/audio/effects/chain.js.map +1 -0
- package/dist/attributes/audio/effects/implementations/echo.d.ts +14 -0
- package/dist/attributes/audio/effects/implementations/echo.d.ts.map +1 -0
- package/dist/attributes/audio/{filters → effects}/implementations/echo.js +2 -2
- package/dist/attributes/audio/effects/implementations/echo.js.map +1 -0
- package/dist/attributes/audio/effects/implementations/gain.d.ts +10 -0
- package/dist/attributes/audio/effects/implementations/gain.d.ts.map +1 -0
- package/dist/attributes/audio/{filters → effects}/implementations/gain.js +2 -2
- package/dist/attributes/audio/effects/implementations/gain.js.map +1 -0
- package/dist/attributes/audio/effects/implementations/highpass.d.ts +12 -0
- package/dist/attributes/audio/effects/implementations/highpass.d.ts.map +1 -0
- package/dist/attributes/audio/{filters → effects}/implementations/highpass.js +2 -2
- package/dist/attributes/audio/effects/implementations/highpass.js.map +1 -0
- package/dist/attributes/audio/effects/implementations/lowpass.d.ts +12 -0
- package/dist/attributes/audio/effects/implementations/lowpass.d.ts.map +1 -0
- package/dist/attributes/audio/{filters → effects}/implementations/lowpass.js +2 -2
- package/dist/attributes/audio/effects/implementations/lowpass.js.map +1 -0
- package/dist/attributes/audio/effects/implementations/tremolo.d.ts +12 -0
- package/dist/attributes/audio/effects/implementations/tremolo.d.ts.map +1 -0
- package/dist/attributes/audio/{filters → effects}/implementations/tremolo.js +2 -2
- package/dist/attributes/audio/effects/implementations/tremolo.js.map +1 -0
- package/dist/attributes/audio/effects/index.d.ts +12 -0
- package/dist/attributes/audio/effects/index.d.ts.map +1 -0
- package/dist/attributes/audio/effects/index.js +4 -0
- package/dist/attributes/audio/effects/index.js.map +1 -0
- package/dist/attributes/audio/effects/registry.d.ts +36 -0
- package/dist/attributes/audio/effects/registry.d.ts.map +1 -0
- package/dist/attributes/audio/effects/registry.js +80 -0
- package/dist/attributes/audio/effects/registry.js.map +1 -0
- package/dist/attributes/audio/effects/union.d.ts +14 -0
- package/dist/attributes/audio/effects/union.d.ts.map +1 -0
- package/dist/attributes/audio/effects/union.js +24 -0
- package/dist/attributes/audio/effects/union.js.map +1 -0
- package/dist/attributes/audio/ramp.d.ts +103 -0
- package/dist/attributes/audio/ramp.d.ts.map +1 -0
- package/dist/attributes/audio/ramp.js +246 -0
- package/dist/attributes/audio/ramp.js.map +1 -0
- package/dist/attributes/audio/request.d.ts +52 -13
- package/dist/attributes/audio/request.d.ts.map +1 -1
- package/dist/attributes/audio/request.js +10 -1
- package/dist/attributes/audio/request.js.map +1 -1
- package/dist/attributes/audio/schedule.d.ts +26 -24
- package/dist/attributes/audio/schedule.d.ts.map +1 -1
- package/dist/attributes/audio/schedule.js +51 -30
- package/dist/attributes/audio/schedule.js.map +1 -1
- package/dist/attributes/audio/sound.d.ts +18 -13
- package/dist/attributes/audio/sound.d.ts.map +1 -1
- package/dist/attributes/audio/sound.js +13 -11
- package/dist/attributes/audio/sound.js.map +1 -1
- package/dist/attributes/audio/transition.d.ts +33 -0
- package/dist/attributes/audio/transition.d.ts.map +1 -0
- package/dist/attributes/audio/transition.js +48 -0
- package/dist/attributes/audio/transition.js.map +1 -0
- package/dist/attributes/index.d.ts +8 -8
- package/dist/attributes/index.d.ts.map +1 -1
- package/dist/attributes/index.js +7 -9
- package/dist/attributes/index.js.map +1 -1
- package/dist/attributes/layout/alignment.js +1 -1
- package/dist/attributes/layout/alignment.js.map +1 -1
- package/dist/attributes/layout/insets.d.ts +1 -1
- package/dist/attributes/layout/insets.js.map +1 -1
- package/dist/attributes/layout/matrix2d.d.ts +2 -2
- package/dist/attributes/layout/matrix2d.js.map +1 -1
- package/dist/attributes/layout/size.d.ts +1 -1
- package/dist/attributes/layout/size.js +1 -1
- package/dist/attributes/layout/size.js.map +1 -1
- package/dist/attributes/layout/space3d.js +1 -1
- package/dist/attributes/layout/space3d.js.map +1 -1
- package/dist/attributes/properties/decorator.d.ts +56 -12
- package/dist/attributes/properties/decorator.d.ts.map +1 -1
- package/dist/attributes/properties/decorator.js +59 -19
- package/dist/attributes/properties/decorator.js.map +1 -1
- package/dist/attributes/properties/inputs.d.ts +1 -1
- package/dist/attributes/properties/inputs.js +1 -1
- package/dist/attributes/properties/inputs.js.map +1 -1
- package/dist/attributes/properties/typed.d.ts +27 -141
- package/dist/attributes/properties/typed.d.ts.map +1 -1
- package/dist/attributes/properties/typed.js +24 -106
- package/dist/attributes/properties/typed.js.map +1 -1
- package/dist/attributes/render3d/orbit.d.ts +8 -8
- package/dist/attributes/render3d/orbit.js +7 -7
- package/dist/attributes/render3d/orbit.js.map +1 -1
- package/dist/attributes/shape/corners/corner-radius.d.ts +2 -3
- package/dist/attributes/shape/corners/corner-radius.d.ts.map +1 -1
- package/dist/attributes/shape/corners/corner-radius.js +2 -3
- package/dist/attributes/shape/corners/corner-radius.js.map +1 -1
- package/dist/attributes/shape/effects/backdrop.d.ts +4 -4
- package/dist/attributes/shape/effects/backdrop.d.ts.map +1 -1
- package/dist/attributes/shape/effects/backdrop.js.map +1 -1
- package/dist/attributes/shape/effects/chain.d.ts +117 -522
- package/dist/attributes/shape/effects/chain.d.ts.map +1 -1
- package/dist/attributes/shape/effects/chain.js +102 -364
- package/dist/attributes/shape/effects/chain.js.map +1 -1
- package/dist/attributes/shape/effects/effect-data.d.ts +1 -1
- package/dist/attributes/shape/effects/effect-data.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/ascii.d.ts +45 -13
- package/dist/attributes/shape/effects/implementations/ascii.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/ascii.js +29 -23
- package/dist/attributes/shape/effects/implementations/ascii.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/bit-crush.d.ts +32 -7
- package/dist/attributes/shape/effects/implementations/bit-crush.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/bit-crush.js +17 -15
- package/dist/attributes/shape/effects/implementations/bit-crush.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/block-displace.d.ts +46 -10
- package/dist/attributes/shape/effects/implementations/block-displace.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/block-displace.js +21 -19
- package/dist/attributes/shape/effects/implementations/block-displace.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/bloom.d.ts +32 -7
- package/dist/attributes/shape/effects/implementations/bloom.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/bloom.js +17 -11
- package/dist/attributes/shape/effects/implementations/bloom.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/blur.d.ts +16 -3
- package/dist/attributes/shape/effects/implementations/blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/blur.js +13 -5
- package/dist/attributes/shape/effects/implementations/blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/bulge.d.ts +28 -9
- package/dist/attributes/shape/effects/implementations/bulge.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/bulge.js +15 -14
- package/dist/attributes/shape/effects/implementations/bulge.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.d.ts +21 -5
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.js +15 -10
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/color-adjustment.d.ts +98 -28
- package/dist/attributes/shape/effects/implementations/color-adjustment.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/color-adjustment.js +29 -26
- package/dist/attributes/shape/effects/implementations/color-adjustment.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/curves.d.ts +21 -7
- package/dist/attributes/shape/effects/implementations/curves.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/curves.js +26 -23
- package/dist/attributes/shape/effects/implementations/curves.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/directional-blur.d.ts +26 -5
- package/dist/attributes/shape/effects/implementations/directional-blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/directional-blur.js +15 -10
- package/dist/attributes/shape/effects/implementations/directional-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/dither.d.ts +58 -11
- package/dist/attributes/shape/effects/implementations/dither.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/dither.js +26 -20
- package/dist/attributes/shape/effects/implementations/dither.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/drop-shadow.d.ts +47 -15
- package/dist/attributes/shape/effects/implementations/drop-shadow.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/drop-shadow.js +24 -29
- package/dist/attributes/shape/effects/implementations/drop-shadow.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/duotone.d.ts +26 -7
- package/dist/attributes/shape/effects/implementations/duotone.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/duotone.js +17 -16
- package/dist/attributes/shape/effects/implementations/duotone.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/edges.d.ts +29 -7
- package/dist/attributes/shape/effects/implementations/edges.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/edges.js +17 -14
- package/dist/attributes/shape/effects/implementations/edges.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/glass.d.ts +82 -34
- package/dist/attributes/shape/effects/implementations/glass.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/glass.js +28 -22
- package/dist/attributes/shape/effects/implementations/glass.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/glow.d.ts +149 -42
- package/dist/attributes/shape/effects/implementations/glow.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/glow.js +74 -72
- package/dist/attributes/shape/effects/implementations/glow.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/grain.d.ts +43 -11
- package/dist/attributes/shape/effects/implementations/grain.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/grain.js +21 -18
- package/dist/attributes/shape/effects/implementations/grain.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/grayscale.d.ts +17 -3
- package/dist/attributes/shape/effects/implementations/grayscale.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/grayscale.js +13 -5
- package/dist/attributes/shape/effects/implementations/grayscale.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/halftone.d.ts +40 -9
- package/dist/attributes/shape/effects/implementations/halftone.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/halftone.js +20 -16
- package/dist/attributes/shape/effects/implementations/halftone.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/invert.d.ts +23 -5
- package/dist/attributes/shape/effects/implementations/invert.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/invert.js +15 -10
- package/dist/attributes/shape/effects/implementations/invert.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/kaleidoscope.d.ts +57 -18
- package/dist/attributes/shape/effects/implementations/kaleidoscope.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/kaleidoscope.js +25 -22
- package/dist/attributes/shape/effects/implementations/kaleidoscope.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/lut.d.ts +35 -8
- package/dist/attributes/shape/effects/implementations/lut.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/lut.js +20 -16
- package/dist/attributes/shape/effects/implementations/lut.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/magnify.d.ts +27 -9
- package/dist/attributes/shape/effects/implementations/magnify.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/magnify.js +17 -14
- package/dist/attributes/shape/effects/implementations/magnify.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/motion-blur.d.ts +54 -19
- package/dist/attributes/shape/effects/implementations/motion-blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/motion-blur.js +42 -20
- package/dist/attributes/shape/effects/implementations/motion-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/oil-paint.d.ts +17 -3
- package/dist/attributes/shape/effects/implementations/oil-paint.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/oil-paint.js +13 -9
- package/dist/attributes/shape/effects/implementations/oil-paint.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/outline.d.ts +28 -8
- package/dist/attributes/shape/effects/implementations/outline.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/outline.js +18 -17
- package/dist/attributes/shape/effects/implementations/outline.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/pixelate.d.ts +25 -6
- package/dist/attributes/shape/effects/implementations/pixelate.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/pixelate.js +16 -14
- package/dist/attributes/shape/effects/implementations/pixelate.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/posterize.d.ts +14 -3
- package/dist/attributes/shape/effects/implementations/posterize.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/posterize.js +13 -9
- package/dist/attributes/shape/effects/implementations/posterize.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/progressive-blur.d.ts +91 -26
- package/dist/attributes/shape/effects/implementations/progressive-blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/progressive-blur.js +27 -28
- package/dist/attributes/shape/effects/implementations/progressive-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/radial-blur.d.ts +49 -10
- package/dist/attributes/shape/effects/implementations/radial-blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/radial-blur.js +19 -20
- package/dist/attributes/shape/effects/implementations/radial-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/rgb-shift.d.ts +36 -6
- package/dist/attributes/shape/effects/implementations/rgb-shift.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/rgb-shift.js +16 -15
- package/dist/attributes/shape/effects/implementations/rgb-shift.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/scanlines.d.ts +52 -11
- package/dist/attributes/shape/effects/implementations/scanlines.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/scanlines.js +21 -18
- package/dist/attributes/shape/effects/implementations/scanlines.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/scatter.d.ts +23 -9
- package/dist/attributes/shape/effects/implementations/scatter.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/scatter.js +15 -12
- package/dist/attributes/shape/effects/implementations/scatter.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/shader.d.ts +90 -34
- package/dist/attributes/shape/effects/implementations/shader.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/shader.js +57 -34
- package/dist/attributes/shape/effects/implementations/shader.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/sharpen.d.ts +23 -5
- package/dist/attributes/shape/effects/implementations/sharpen.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/sharpen.js +16 -11
- package/dist/attributes/shape/effects/implementations/sharpen.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/streak.d.ts +40 -9
- package/dist/attributes/shape/effects/implementations/streak.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/streak.js +19 -16
- package/dist/attributes/shape/effects/implementations/streak.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/threshold.d.ts +24 -5
- package/dist/attributes/shape/effects/implementations/threshold.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/threshold.js +17 -11
- package/dist/attributes/shape/effects/implementations/threshold.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/twirl.d.ts +35 -8
- package/dist/attributes/shape/effects/implementations/twirl.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/twirl.js +17 -16
- package/dist/attributes/shape/effects/implementations/twirl.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/vignette.d.ts +37 -7
- package/dist/attributes/shape/effects/implementations/vignette.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/vignette.js +19 -18
- package/dist/attributes/shape/effects/implementations/vignette.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/vintage.d.ts +24 -5
- package/dist/attributes/shape/effects/implementations/vintage.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/vintage.js +15 -10
- package/dist/attributes/shape/effects/implementations/vintage.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/wave.d.ts +61 -14
- package/dist/attributes/shape/effects/implementations/wave.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/wave.js +26 -23
- package/dist/attributes/shape/effects/implementations/wave.js.map +1 -1
- package/dist/attributes/shape/effects/index.d.ts +6 -8
- package/dist/attributes/shape/effects/index.d.ts.map +1 -1
- package/dist/attributes/shape/effects/index.js +1 -1
- package/dist/attributes/shape/effects/index.js.map +1 -1
- package/dist/attributes/shape/effects/registry.d.ts +34 -6
- package/dist/attributes/shape/effects/registry.d.ts.map +1 -1
- package/dist/attributes/shape/effects/registry.js +157 -112
- package/dist/attributes/shape/effects/registry.js.map +1 -1
- package/dist/attributes/shape/effects/spec.d.ts +229 -0
- package/dist/attributes/shape/effects/spec.d.ts.map +1 -0
- package/dist/attributes/shape/effects/spec.js +178 -0
- package/dist/attributes/shape/effects/spec.js.map +1 -0
- package/dist/attributes/shape/effects/union.d.ts +2 -6
- package/dist/attributes/shape/effects/union.d.ts.map +1 -1
- package/dist/attributes/shape/effects/union.js.map +1 -1
- package/dist/attributes/shape/fill/chain.d.ts +7 -9
- package/dist/attributes/shape/fill/chain.d.ts.map +1 -1
- package/dist/attributes/shape/fill/chain.js +9 -11
- package/dist/attributes/shape/fill/chain.js.map +1 -1
- package/dist/attributes/shape/fill/color/parser.d.ts +1 -1
- package/dist/attributes/shape/fill/color/parser.d.ts.map +1 -1
- package/dist/attributes/shape/fill/color/parser.js +102 -50
- package/dist/attributes/shape/fill/color/parser.js.map +1 -1
- package/dist/attributes/shape/fill/gradient-stops.d.ts +16 -0
- package/dist/attributes/shape/fill/gradient-stops.d.ts.map +1 -0
- package/dist/attributes/shape/fill/gradient-stops.js +65 -0
- package/dist/attributes/shape/fill/gradient-stops.js.map +1 -0
- package/dist/attributes/shape/fill/implementations/canvas3d.d.ts +2 -2
- package/dist/attributes/shape/fill/implementations/canvas3d.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/conic-gradient.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/conic-gradient.js +2 -5
- package/dist/attributes/shape/fill/implementations/conic-gradient.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/fractal-noise.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/fractal-noise.js +2 -10
- package/dist/attributes/shape/fill/implementations/fractal-noise.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/image.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/image.js +5 -4
- package/dist/attributes/shape/fill/implementations/image.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/linear-gradient.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/linear-gradient.js +2 -6
- package/dist/attributes/shape/fill/implementations/linear-gradient.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/radial-gradient.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/radial-gradient.js +2 -5
- package/dist/attributes/shape/fill/implementations/radial-gradient.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/shader.d.ts +28 -27
- package/dist/attributes/shape/fill/implementations/shader.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/shader.js +20 -14
- package/dist/attributes/shape/fill/implementations/shader.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/video.d.ts +1 -1
- package/dist/attributes/shape/fill/implementations/video.js +2 -2
- package/dist/attributes/shape/fill/implementations/video.js.map +1 -1
- package/dist/attributes/shape/fill/index.d.ts +1 -1
- package/dist/attributes/shape/fill/index.d.ts.map +1 -1
- package/dist/attributes/shape/fill/index.js.map +1 -1
- package/dist/attributes/shape/fill/lerp.d.ts +9 -1
- package/dist/attributes/shape/fill/lerp.d.ts.map +1 -1
- package/dist/attributes/shape/fill/lerp.js +12 -1
- package/dist/attributes/shape/fill/lerp.js.map +1 -1
- package/dist/attributes/shape/fill/registry.d.ts +1 -2
- package/dist/attributes/shape/fill/registry.d.ts.map +1 -1
- package/dist/attributes/shape/fill/registry.js +1 -2
- package/dist/attributes/shape/fill/registry.js.map +1 -1
- package/dist/attributes/shape/filters/chain.d.ts +7 -17
- package/dist/attributes/shape/filters/chain.d.ts.map +1 -1
- package/dist/attributes/shape/filters/chain.js +3 -19
- package/dist/attributes/shape/filters/chain.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/color-matrix.d.ts +2 -2
- package/dist/attributes/shape/filters/implementations/color-matrix.d.ts.map +1 -1
- package/dist/attributes/shape/filters/implementations/color-matrix.js.map +1 -1
- package/dist/attributes/shape/filters/index.d.ts +1 -1
- package/dist/attributes/shape/filters/index.js.map +1 -1
- package/dist/attributes/shape/filters/registry.d.ts +3 -3
- package/dist/attributes/shape/filters/registry.d.ts.map +1 -1
- package/dist/attributes/shape/filters/registry.js +6 -6
- package/dist/attributes/shape/filters/registry.js.map +1 -1
- package/dist/attributes/shape/filters/union.d.ts +12 -13
- package/dist/attributes/shape/filters/union.d.ts.map +1 -1
- package/dist/attributes/shape/filters/union.js.map +1 -1
- package/dist/attributes/shape/path/anchors.d.ts.map +1 -1
- package/dist/attributes/shape/path/anchors.js +12 -5
- package/dist/attributes/shape/path/anchors.js.map +1 -1
- package/dist/attributes/shape/path/morph.d.ts.map +1 -1
- package/dist/attributes/shape/path/morph.js +16 -4
- package/dist/attributes/shape/path/morph.js.map +1 -1
- package/dist/attributes/shape/path/ops.d.ts +1 -2
- package/dist/attributes/shape/path/ops.d.ts.map +1 -1
- package/dist/attributes/shape/path/ops.js.map +1 -1
- package/dist/attributes/shape/shaders/index.d.ts +2 -0
- package/dist/attributes/shape/shaders/index.d.ts.map +1 -1
- package/dist/attributes/shape/shaders/index.js +2 -0
- package/dist/attributes/shape/shaders/index.js.map +1 -1
- package/dist/attributes/shape/shaders/language.d.ts +26 -0
- package/dist/attributes/shape/shaders/language.d.ts.map +1 -0
- package/dist/attributes/shape/shaders/language.js +20 -0
- package/dist/attributes/shape/shaders/language.js.map +1 -0
- package/dist/attributes/shape/shaders/pack.d.ts +25 -11
- package/dist/attributes/shape/shaders/pack.d.ts.map +1 -1
- package/dist/attributes/shape/shaders/pack.js +9 -4
- package/dist/attributes/shape/shaders/pack.js.map +1 -1
- package/dist/attributes/shape/shaders/resolve.d.ts +4 -5
- package/dist/attributes/shape/shaders/resolve.d.ts.map +1 -1
- package/dist/attributes/shape/shaders/resolve.js +3 -6
- package/dist/attributes/shape/shaders/resolve.js.map +1 -1
- package/dist/attributes/shape/shaders/uniforms.d.ts +41 -0
- package/dist/attributes/shape/shaders/uniforms.d.ts.map +1 -0
- package/dist/attributes/shape/shaders/uniforms.js +0 -0
- package/dist/attributes/shape/shaders/uniforms.js.map +1 -0
- package/dist/attributes/shape/stroke/index.d.ts +2 -2
- package/dist/attributes/shape/stroke/index.d.ts.map +1 -1
- package/dist/attributes/shape/stroke/index.js +1 -1
- package/dist/attributes/shape/stroke/index.js.map +1 -1
- package/dist/attributes/shape/stroke/stroke.d.ts +27 -6
- package/dist/attributes/shape/stroke/stroke.d.ts.map +1 -1
- package/dist/attributes/shape/stroke/stroke.js +22 -2
- package/dist/attributes/shape/stroke/stroke.js.map +1 -1
- package/dist/attributes/shared/operators.d.ts +2 -2
- package/dist/attributes/shared/operators.js.map +1 -1
- package/dist/attributes/text/ops.d.ts +6 -0
- package/dist/attributes/text/ops.d.ts.map +1 -1
- package/dist/attributes/text/ops.js +1 -0
- package/dist/attributes/text/ops.js.map +1 -1
- package/dist/attributes/text/types.d.ts +2 -3
- package/dist/attributes/text/types.d.ts.map +1 -1
- package/dist/attributes/text/types.js.map +1 -1
- package/dist/browser/chunks/chunk-4BDLFEOC.js +2 -0
- package/dist/browser/chunks/chunk-4BDLFEOC.js.map +7 -0
- package/dist/browser/chunks/chunk-CCGVIR4F.js +3 -0
- package/dist/browser/chunks/chunk-CCGVIR4F.js.map +7 -0
- package/dist/browser/chunks/chunk-N4WSN5WY.js +13 -0
- package/dist/browser/chunks/chunk-N4WSN5WY.js.map +7 -0
- package/dist/browser/chunks/chunk-WZSI3GSK.js +6 -0
- package/dist/browser/chunks/chunk-WZSI3GSK.js.map +7 -0
- package/dist/browser/component.js +1 -1
- package/dist/browser/component.js.map +4 -4
- package/dist/browser/experimental.js +2 -0
- package/dist/browser/experimental.js.map +7 -0
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +4 -4
- package/dist/browser/manifest.json +5 -5
- package/dist/browser/sdk.js +1 -1
- package/dist/component.d.ts +10 -19
- package/dist/component.d.ts.map +1 -1
- package/dist/component.js +10 -19
- package/dist/component.js.map +1 -1
- package/dist/components/builtins/audio/audio.d.ts +62 -0
- package/dist/components/builtins/audio/audio.d.ts.map +1 -0
- package/dist/components/builtins/audio/audio.js +38 -0
- package/dist/components/builtins/audio/audio.js.map +1 -0
- package/dist/components/builtins/geometry/composite.d.ts +93 -0
- package/dist/components/builtins/geometry/composite.d.ts.map +1 -0
- package/dist/components/builtins/geometry/composite.js +25 -0
- package/dist/components/builtins/geometry/composite.js.map +1 -0
- package/dist/components/builtins/geometry/geometry.d.ts +921 -0
- package/dist/components/builtins/geometry/geometry.d.ts.map +1 -0
- package/dist/components/builtins/geometry/geometry.js +107 -0
- package/dist/components/builtins/geometry/geometry.js.map +1 -0
- package/dist/{nodes → components/builtins}/geometry/shape-outline.d.ts +5 -5
- package/dist/components/builtins/geometry/shape-outline.d.ts.map +1 -0
- package/dist/{nodes → components/builtins}/geometry/shape-outline.js +4 -15
- package/dist/components/builtins/geometry/shape-outline.js.map +1 -0
- package/dist/components/builtins/layout/layout.d.ts +186 -0
- package/dist/components/builtins/layout/layout.d.ts.map +1 -0
- package/dist/components/builtins/layout/layout.js +84 -0
- package/dist/components/builtins/layout/layout.js.map +1 -0
- package/dist/components/builtins/media/media.d.ts +240 -0
- package/dist/components/builtins/media/media.d.ts.map +1 -0
- package/dist/components/builtins/media/media.js +143 -0
- package/dist/components/builtins/media/media.js.map +1 -0
- package/dist/components/builtins/providers/providers.d.ts +47 -0
- package/dist/components/builtins/providers/providers.d.ts.map +1 -0
- package/dist/components/builtins/providers/providers.js +30 -0
- package/dist/components/builtins/providers/providers.js.map +1 -0
- package/dist/{nodes → components/builtins}/text/number-format.d.ts +1 -1
- package/dist/components/builtins/text/number-format.d.ts.map +1 -0
- package/dist/{nodes → components/builtins}/text/number-format.js +1 -1
- package/dist/components/builtins/text/number-format.js.map +1 -0
- package/dist/components/builtins/text/number-pattern.d.ts.map +1 -0
- package/dist/components/builtins/text/number-pattern.js.map +1 -0
- package/dist/{nodes/node → components/builtins/text}/text-defaults.d.ts +10 -12
- package/dist/components/builtins/text/text-defaults.d.ts.map +1 -0
- package/dist/{nodes/node → components/builtins/text}/text-defaults.js +10 -12
- package/dist/components/builtins/text/text-defaults.js.map +1 -0
- package/dist/components/builtins/text/text-layout.d.ts +82 -0
- package/dist/components/builtins/text/text-layout.d.ts.map +1 -0
- package/dist/components/builtins/text/text-layout.js +331 -0
- package/dist/components/builtins/text/text-layout.js.map +1 -0
- package/dist/components/builtins/text/text.d.ts +409 -0
- package/dist/components/builtins/text/text.d.ts.map +1 -0
- package/dist/components/builtins/text/text.js +116 -0
- package/dist/components/builtins/text/text.js.map +1 -0
- package/dist/components/builtins/three/canvas3d.d.ts +245 -0
- package/dist/components/builtins/three/canvas3d.d.ts.map +1 -0
- package/dist/components/builtins/three/canvas3d.js +21 -0
- package/dist/components/builtins/three/canvas3d.js.map +1 -0
- package/dist/{nodes → components/builtins}/three/grid-geometry3d.d.ts +2 -2
- package/dist/components/builtins/three/grid-geometry3d.d.ts.map +1 -0
- package/dist/{nodes → components/builtins}/three/grid-geometry3d.js +1 -1
- package/dist/components/builtins/three/grid-geometry3d.js.map +1 -0
- package/dist/components/builtins/three/three.d.ts +1889 -0
- package/dist/components/builtins/three/three.d.ts.map +1 -0
- package/dist/components/builtins/three/three.js +305 -0
- package/dist/components/builtins/three/three.js.map +1 -0
- package/dist/components/factory/api.d.ts +543 -0
- package/dist/components/factory/api.d.ts.map +1 -0
- package/dist/components/factory/api.js +4 -0
- package/dist/components/factory/api.js.map +1 -0
- package/dist/components/factory/clip-of.d.ts +5 -0
- package/dist/components/factory/clip-of.d.ts.map +1 -0
- package/dist/components/factory/clip-of.js +33 -0
- package/dist/components/factory/clip-of.js.map +1 -0
- package/dist/components/factory/commands-for.d.ts +19 -0
- package/dist/components/factory/commands-for.d.ts.map +1 -0
- package/dist/components/factory/commands-for.js +5 -0
- package/dist/components/factory/commands-for.js.map +1 -0
- package/dist/components/factory/component-audio.d.ts +9 -0
- package/dist/components/factory/component-audio.d.ts.map +1 -0
- package/dist/components/factory/component-audio.js +18 -0
- package/dist/components/factory/component-audio.js.map +1 -0
- package/dist/components/factory/component2d.d.ts +8 -0
- package/dist/components/factory/component2d.d.ts.map +1 -0
- package/dist/components/factory/component2d.js +240 -0
- package/dist/components/factory/component2d.js.map +1 -0
- package/dist/components/factory/component3d.d.ts +9 -0
- package/dist/components/factory/component3d.d.ts.map +1 -0
- package/dist/components/factory/component3d.js +107 -0
- package/dist/components/factory/component3d.js.map +1 -0
- package/dist/components/factory/factory.d.ts +66 -0
- package/dist/components/factory/factory.d.ts.map +1 -0
- package/dist/components/factory/factory.js +347 -0
- package/dist/components/factory/factory.js.map +1 -0
- package/dist/components/factory/timeline.d.ts +22 -0
- package/dist/components/factory/timeline.d.ts.map +1 -0
- package/dist/components/factory/timeline.js +128 -0
- package/dist/components/factory/timeline.js.map +1 -0
- package/dist/components/factory/type-def.d.ts +26 -0
- package/dist/components/factory/type-def.d.ts.map +1 -0
- package/dist/components/factory/type-def.js +16 -0
- package/dist/components/factory/type-def.js.map +1 -0
- package/dist/components/factory/types.d.ts +91 -0
- package/dist/components/factory/types.d.ts.map +1 -0
- package/dist/components/factory/types.js +88 -0
- package/dist/components/factory/types.js.map +1 -0
- package/dist/components/factory/views.d.ts +121 -0
- package/dist/components/factory/views.d.ts.map +1 -0
- package/dist/components/factory/views.js +453 -0
- package/dist/components/factory/views.js.map +1 -0
- package/dist/components/modules/aim.d.ts +30 -0
- package/dist/components/modules/aim.d.ts.map +1 -0
- package/dist/components/modules/aim.js +39 -0
- package/dist/components/modules/aim.js.map +1 -0
- package/dist/components/modules/corners.d.ts +13 -0
- package/dist/components/modules/corners.d.ts.map +1 -0
- package/dist/components/modules/corners.js +12 -0
- package/dist/components/modules/corners.js.map +1 -0
- package/dist/components/modules/flow.d.ts +26 -0
- package/dist/components/modules/flow.d.ts.map +1 -0
- package/dist/components/modules/flow.js +57 -0
- package/dist/components/modules/flow.js.map +1 -0
- package/dist/components/modules/material.d.ts +40 -0
- package/dist/components/modules/material.d.ts.map +1 -0
- package/dist/components/modules/material.js +75 -0
- package/dist/components/modules/material.js.map +1 -0
- package/dist/components/modules/paint.d.ts +71 -0
- package/dist/components/modules/paint.d.ts.map +1 -0
- package/dist/components/modules/paint.js +106 -0
- package/dist/components/modules/paint.js.map +1 -0
- package/dist/components/modules/shapes.d.ts +31 -0
- package/dist/components/modules/shapes.d.ts.map +1 -0
- package/dist/components/modules/shapes.js +43 -0
- package/dist/components/modules/shapes.js.map +1 -0
- package/dist/components/modules/text-layout.d.ts +26 -0
- package/dist/components/modules/text-layout.d.ts.map +1 -0
- package/dist/components/modules/text-layout.js +57 -0
- package/dist/components/modules/text-layout.js.map +1 -0
- package/dist/components/modules/text-style.d.ts +48 -0
- package/dist/components/modules/text-style.d.ts.map +1 -0
- package/dist/components/modules/text-style.js +63 -0
- package/dist/components/modules/text-style.js.map +1 -0
- package/dist/components/modules/three-entries.d.ts +23 -0
- package/dist/components/modules/three-entries.d.ts.map +1 -0
- package/dist/components/modules/three-entries.js +41 -0
- package/dist/components/modules/three-entries.js.map +1 -0
- package/dist/components/modules/view3d.d.ts +59 -0
- package/dist/components/modules/view3d.d.ts.map +1 -0
- package/dist/components/modules/view3d.js +171 -0
- package/dist/components/modules/view3d.js.map +1 -0
- package/dist/{nodes/geometry → components/trees/2d}/group-bounds.d.ts +4 -4
- package/dist/components/trees/2d/group-bounds.d.ts.map +1 -0
- package/dist/{nodes/geometry → components/trees/2d}/group-bounds.js +3 -4
- package/dist/components/trees/2d/group-bounds.js.map +1 -0
- package/dist/{nodes → components/trees}/2d/node-lifecycle.d.ts +2 -2
- package/dist/components/trees/2d/node-lifecycle.d.ts.map +1 -0
- package/dist/{nodes → components/trees}/2d/node-lifecycle.js +1 -1
- package/dist/components/trees/2d/node-lifecycle.js.map +1 -0
- package/dist/{nodes → components/trees}/2d/node-motion.d.ts +3 -3
- package/dist/components/trees/2d/node-motion.d.ts.map +1 -0
- package/dist/{nodes → components/trees}/2d/node-motion.js +1 -1
- package/dist/components/trees/2d/node-motion.js.map +1 -0
- package/dist/components/trees/2d/node-render.d.ts +36 -0
- package/dist/components/trees/2d/node-render.d.ts.map +1 -0
- package/dist/{nodes → components/trees}/2d/node-render.js +10 -23
- package/dist/components/trees/2d/node-render.js.map +1 -0
- package/dist/{nodes → components/trees}/2d/node-space.d.ts +3 -3
- package/dist/components/trees/2d/node-space.d.ts.map +1 -0
- package/dist/{nodes → components/trees}/2d/node-space.js +4 -4
- package/dist/components/trees/2d/node-space.js.map +1 -0
- package/dist/{nodes → components/trees}/2d/node-transform.d.ts +2 -2
- package/dist/components/trees/2d/node-transform.d.ts.map +1 -0
- package/dist/{nodes → components/trees}/2d/node-transform.js +1 -1
- package/dist/components/trees/2d/node-transform.js.map +1 -0
- package/dist/{nodes → components/trees}/2d/node2d.d.ts +206 -185
- package/dist/components/trees/2d/node2d.d.ts.map +1 -0
- package/dist/{nodes → components/trees}/2d/node2d.js +296 -324
- package/dist/components/trees/2d/node2d.js.map +1 -0
- package/dist/components/trees/audio/index.d.ts +2 -0
- package/dist/components/trees/audio/index.d.ts.map +1 -0
- package/dist/components/trees/audio/index.js +2 -0
- package/dist/components/trees/audio/index.js.map +1 -0
- package/dist/{nodes → components/trees}/audio/node-audio.d.ts +25 -15
- package/dist/components/trees/audio/node-audio.d.ts.map +1 -0
- package/dist/{nodes → components/trees}/audio/node-audio.js +30 -35
- package/dist/components/trees/audio/node-audio.js.map +1 -0
- package/dist/components/trees/index.d.ts +10 -0
- package/dist/components/trees/index.d.ts.map +1 -0
- package/dist/components/trees/index.js +14 -0
- package/dist/components/trees/index.js.map +1 -0
- package/dist/components/trees/node/node-editor-state.d.ts.map +1 -0
- package/dist/components/trees/node/node-editor-state.js.map +1 -0
- package/dist/{nodes → components/trees}/node/node-reactive.d.ts +9 -10
- package/dist/components/trees/node/node-reactive.d.ts.map +1 -0
- package/dist/{nodes → components/trees}/node/node-reactive.js +16 -13
- package/dist/components/trees/node/node-reactive.js.map +1 -0
- package/dist/{nodes → components/trees}/node/node-time.d.ts +3 -3
- package/dist/components/trees/node/node-time.d.ts.map +1 -0
- package/dist/{nodes → components/trees}/node/node-time.js +1 -1
- package/dist/components/trees/node/node-time.js.map +1 -0
- package/dist/{nodes → components/trees}/node/node-walk.d.ts +1 -1
- package/dist/components/trees/node/node-walk.d.ts.map +1 -0
- package/dist/{nodes → components/trees}/node/node-walk.js +1 -1
- package/dist/components/trees/node/node-walk.js.map +1 -0
- package/dist/{nodes → components/trees}/node/node.d.ts +46 -82
- package/dist/components/trees/node/node.d.ts.map +1 -0
- package/dist/{nodes → components/trees}/node/node.js +89 -114
- package/dist/components/trees/node/node.js.map +1 -0
- package/dist/{nodes/scene → components/trees/root}/canvas2d-node.d.ts +16 -15
- package/dist/components/trees/root/canvas2d-node.d.ts.map +1 -0
- package/dist/{nodes/scene → components/trees/root}/canvas2d-node.js +40 -85
- package/dist/components/trees/root/canvas2d-node.js.map +1 -0
- package/dist/{nodes → components/trees}/three/node3d.d.ts +65 -25
- package/dist/components/trees/three/node3d.d.ts.map +1 -0
- package/dist/{nodes → components/trees}/three/node3d.js +78 -76
- package/dist/components/trees/three/node3d.js.map +1 -0
- package/dist/document/audio.d.ts +10 -2
- package/dist/document/audio.d.ts.map +1 -1
- package/dist/document/audio.js +45 -4
- package/dist/document/audio.js.map +1 -1
- package/dist/document/builtins.d.ts.map +1 -1
- package/dist/document/builtins.js +18 -42
- package/dist/document/builtins.js.map +1 -1
- package/dist/document/command-traits.d.ts +23 -5
- package/dist/document/command-traits.d.ts.map +1 -1
- package/dist/document/command-traits.js +72 -10
- package/dist/document/command-traits.js.map +1 -1
- package/dist/document/deny-globals.d.ts +2 -2
- package/dist/document/deny-globals.js +2 -2
- package/dist/document/deny-globals.js.map +1 -1
- package/dist/document/diff.d.ts.map +1 -1
- package/dist/document/diff.js +3 -3
- package/dist/document/diff.js.map +1 -1
- package/dist/document/doc-index.d.ts +2 -2
- package/dist/document/doc-index.d.ts.map +1 -1
- package/dist/document/doc-index.js +3 -3
- package/dist/document/doc-index.js.map +1 -1
- package/dist/document/expression/compile.d.ts.map +1 -1
- package/dist/document/expression/compile.js +8 -5
- package/dist/document/expression/compile.js.map +1 -1
- package/dist/document/expression/index.d.ts +1 -1
- package/dist/document/expression/index.js +1 -1
- package/dist/document/expression/index.js.map +1 -1
- package/dist/document/expression/ops.js +2 -2
- package/dist/document/expression/ops.js.map +1 -1
- package/dist/document/expression/parse.d.ts.map +1 -1
- package/dist/document/expression/parse.js +15 -6
- package/dist/document/expression/parse.js.map +1 -1
- package/dist/document/expression/refs.d.ts +1 -1
- package/dist/document/expression/refs.js +1 -1
- package/dist/document/expression/refs.js.map +1 -1
- package/dist/document/expression/walk.d.ts.map +1 -1
- package/dist/document/expression/walk.js +2 -1
- package/dist/document/expression/walk.js.map +1 -1
- package/dist/document/index.d.ts +10 -1
- package/dist/document/index.d.ts.map +1 -1
- package/dist/document/index.js +6 -1
- package/dist/document/index.js.map +1 -1
- package/dist/document/migrate.d.ts +70 -0
- package/dist/document/migrate.d.ts.map +1 -0
- package/dist/document/migrate.js +202 -0
- package/dist/document/migrate.js.map +1 -0
- package/dist/document/missing-node.d.ts +27 -0
- package/dist/document/missing-node.d.ts.map +1 -0
- package/dist/document/missing-node.js +48 -0
- package/dist/document/missing-node.js.map +1 -0
- package/dist/document/node-decorator.d.ts +14 -10
- package/dist/document/node-decorator.d.ts.map +1 -1
- package/dist/document/node-decorator.js +14 -10
- package/dist/document/node-decorator.js.map +1 -1
- package/dist/document/node-descriptor.d.ts +32 -3
- package/dist/document/node-descriptor.d.ts.map +1 -1
- package/dist/document/node-descriptor.js.map +1 -1
- package/dist/document/placement.d.ts +71 -0
- package/dist/document/placement.d.ts.map +1 -0
- package/dist/document/placement.js +83 -0
- package/dist/document/placement.js.map +1 -0
- package/dist/document/project.d.ts +4 -2
- package/dist/document/project.d.ts.map +1 -1
- package/dist/document/project.js +1 -0
- package/dist/document/project.js.map +1 -1
- package/dist/document/prop-evolution.d.ts +51 -0
- package/dist/document/prop-evolution.d.ts.map +1 -0
- package/dist/document/prop-evolution.js +83 -0
- package/dist/document/prop-evolution.js.map +1 -0
- package/dist/document/registry.d.ts +71 -44
- package/dist/document/registry.d.ts.map +1 -1
- package/dist/document/registry.js +94 -35
- package/dist/document/registry.js.map +1 -1
- package/dist/document/settled-index.d.ts +57 -0
- package/dist/document/settled-index.d.ts.map +1 -0
- package/dist/document/settled-index.js +264 -0
- package/dist/document/settled-index.js.map +1 -0
- package/dist/document/timeline-patch.d.ts +4 -0
- package/dist/document/timeline-patch.d.ts.map +1 -1
- package/dist/document/timeline-patch.js +28 -3
- package/dist/document/timeline-patch.js.map +1 -1
- package/dist/document/timeline.d.ts +145 -20
- package/dist/document/timeline.d.ts.map +1 -1
- package/dist/document/timeline.js +478 -80
- package/dist/document/timeline.js.map +1 -1
- package/dist/document/types.d.ts +30 -44
- package/dist/document/types.d.ts.map +1 -1
- package/dist/document/types.js +2 -2
- package/dist/document/types.js.map +1 -1
- package/dist/document/validate.d.ts +20 -8
- package/dist/document/validate.d.ts.map +1 -1
- package/dist/document/validate.js +195 -52
- package/dist/document/validate.js.map +1 -1
- package/dist/document/vocabulary.d.ts +28 -0
- package/dist/document/vocabulary.d.ts.map +1 -0
- package/dist/document/vocabulary.js +42 -0
- package/dist/document/vocabulary.js.map +1 -0
- package/dist/experimental.d.ts +82 -0
- package/dist/experimental.d.ts.map +1 -0
- package/dist/experimental.js +34 -0
- package/dist/experimental.js.map +1 -0
- package/dist/index.d.ts +11 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/dist/layout/bounds.d.ts +0 -1
- package/dist/layout/bounds.d.ts.map +1 -1
- package/dist/layout/bounds.js.map +1 -1
- package/dist/layout/flex.d.ts +4 -2
- package/dist/layout/flex.d.ts.map +1 -1
- package/dist/layout/flex.js +27 -11
- package/dist/layout/flex.js.map +1 -1
- package/dist/layout/ops.d.ts +6 -0
- package/dist/layout/ops.d.ts.map +1 -1
- package/dist/layout/ops.js +6 -0
- package/dist/layout/ops.js.map +1 -1
- package/dist/layout/types.d.ts +1 -1
- package/dist/layout/types.js.map +1 -1
- package/dist/platform/audio-sink.d.ts +2 -2
- package/dist/platform/audio-sink.d.ts.map +1 -1
- package/dist/platform/audio-sink.js.map +1 -1
- package/dist/platform/exporter.d.ts +26 -8
- package/dist/platform/exporter.d.ts.map +1 -1
- package/dist/platform/exporter.js.map +1 -1
- package/dist/platform/index.d.ts +1 -1
- package/dist/platform/index.d.ts.map +1 -1
- package/dist/platform/index.js.map +1 -1
- package/dist/platform/storage-adapter.d.ts +12 -6
- package/dist/platform/storage-adapter.d.ts.map +1 -1
- package/dist/platform/storage-adapter.js +4 -0
- package/dist/platform/storage-adapter.js.map +1 -1
- package/dist/platform/ticker.d.ts +6 -0
- package/dist/platform/ticker.d.ts.map +1 -1
- package/dist/platform/ticker.js +6 -0
- package/dist/platform/ticker.js.map +1 -1
- package/dist/project/tree.d.ts +3 -3
- package/dist/project/tree.d.ts.map +1 -1
- package/dist/project/tree.js.map +1 -1
- package/dist/props/host.d.ts +6 -1
- package/dist/props/host.d.ts.map +1 -1
- package/dist/props/host.js +3 -1
- package/dist/props/host.js.map +1 -1
- package/dist/props/layout.d.ts +29 -0
- package/dist/props/layout.d.ts.map +1 -0
- package/dist/props/layout.js +84 -0
- package/dist/props/layout.js.map +1 -0
- package/dist/props/slot.d.ts +1 -1
- package/dist/props/slot.js +1 -1
- package/dist/props/slot.js.map +1 -1
- package/dist/renamed-scene-names.d.ts +17 -0
- package/dist/renamed-scene-names.d.ts.map +1 -0
- package/dist/renamed-scene-names.js +9 -0
- package/dist/renamed-scene-names.js.map +1 -0
- package/dist/render/canvas-render-context2d.d.ts +19 -3
- package/dist/render/canvas-render-context2d.d.ts.map +1 -1
- package/dist/render/canvas-render-context2d.js +20 -0
- package/dist/render/canvas-render-context2d.js.map +1 -1
- package/dist/render/clip-contains.js +1 -1
- package/dist/render/clip-contains.js.map +1 -1
- package/dist/render/clip.d.ts +1 -1
- package/dist/render/clip.js +1 -1
- package/dist/render/clip.js.map +1 -1
- package/dist/render/descriptors/rect.js.map +1 -1
- package/dist/render/descriptors/shape.d.ts +12 -0
- package/dist/render/descriptors/shape.d.ts.map +1 -1
- package/dist/render/descriptors/shape.js.map +1 -1
- package/dist/render/descriptors/text.d.ts +15 -9
- package/dist/render/descriptors/text.d.ts.map +1 -1
- package/dist/render/descriptors/text.js +11 -5
- package/dist/render/descriptors/text.js.map +1 -1
- package/dist/render/descriptors/transform.d.ts +2 -2
- package/dist/render/descriptors/transform.d.ts.map +1 -1
- package/dist/render/descriptors/transform.js.map +1 -1
- package/dist/render/graphics2d.d.ts +3 -3
- package/dist/render/graphics2d.d.ts.map +1 -1
- package/dist/render/graphics2d.js +1 -1
- package/dist/render/graphics2d.js.map +1 -1
- package/dist/render/index.d.ts +2 -0
- package/dist/render/index.d.ts.map +1 -1
- package/dist/render/index.js +1 -0
- package/dist/render/index.js.map +1 -1
- package/dist/render/render-context2d.d.ts +8 -8
- package/dist/render/render-context2d.d.ts.map +1 -1
- package/dist/render/render-context2d.js.map +1 -1
- package/dist/render/render-issue.d.ts +39 -0
- package/dist/render/render-issue.d.ts.map +1 -0
- package/dist/render/render-issue.js +29 -0
- package/dist/render/render-issue.js.map +1 -0
- package/dist/render/surface.d.ts +2 -2
- package/dist/render/surface.js.map +1 -1
- package/dist/render3d/bounds3d.d.ts.map +1 -1
- package/dist/render3d/bounds3d.js +4 -2
- package/dist/render3d/bounds3d.js.map +1 -1
- package/dist/render3d/builders.d.ts +1 -1
- package/dist/render3d/builders.js +1 -1
- package/dist/render3d/builders.js.map +1 -1
- package/dist/render3d/camera.d.ts +6 -0
- package/dist/render3d/camera.d.ts.map +1 -1
- package/dist/render3d/camera.js +5 -3
- package/dist/render3d/camera.js.map +1 -1
- package/dist/render3d/fill3d.d.ts +2 -9
- package/dist/render3d/fill3d.d.ts.map +1 -1
- package/dist/render3d/fill3d.js +2 -13
- package/dist/render3d/fill3d.js.map +1 -1
- package/dist/render3d/geometry.d.ts +8 -1
- package/dist/render3d/geometry.d.ts.map +1 -1
- package/dist/render3d/geometry.js.map +1 -1
- package/dist/render3d/graphics3d.d.ts +21 -23
- package/dist/render3d/graphics3d.d.ts.map +1 -1
- package/dist/render3d/graphics3d.js +85 -34
- package/dist/render3d/graphics3d.js.map +1 -1
- package/dist/render3d/index.d.ts +1 -1
- package/dist/render3d/index.js +1 -1
- package/dist/render3d/index.js.map +1 -1
- package/dist/render3d/inert.d.ts +14 -0
- package/dist/render3d/inert.d.ts.map +1 -0
- package/dist/render3d/inert.js +62 -0
- package/dist/render3d/inert.js.map +1 -0
- package/dist/render3d/material.d.ts +10 -5
- package/dist/render3d/material.d.ts.map +1 -1
- package/dist/render3d/material.js.map +1 -1
- package/dist/render3d/resources.d.ts +2 -2
- package/dist/render3d/resources.js +2 -2
- package/dist/render3d/resources.js.map +1 -1
- package/dist/render3d/scene-settings.d.ts +23 -4
- package/dist/render3d/scene-settings.d.ts.map +1 -1
- package/dist/render3d/scene-settings.js.map +1 -1
- package/dist/render3d/scene3d.d.ts +12 -1
- package/dist/render3d/scene3d.d.ts.map +1 -1
- package/dist/render3d/scene3d.js +40 -7
- package/dist/render3d/scene3d.js.map +1 -1
- package/dist/render3d/texture.d.ts +11 -2
- package/dist/render3d/texture.d.ts.map +1 -1
- package/dist/render3d/texture.js +13 -0
- package/dist/render3d/texture.js.map +1 -1
- package/dist/render3d/transform.d.ts +1 -1
- package/dist/render3d/transform.js.map +1 -1
- package/dist/render3d/vector3.d.ts +20 -3
- package/dist/render3d/vector3.d.ts.map +1 -1
- package/dist/render3d/vector3.js +29 -2
- package/dist/render3d/vector3.js.map +1 -1
- package/dist/render3d/walk.d.ts +1 -1
- package/dist/render3d/walk.d.ts.map +1 -1
- package/dist/render3d/walk.js +5 -1
- package/dist/render3d/walk.js.map +1 -1
- package/dist/runtime/asset-refine.d.ts +1 -1
- package/dist/runtime/asset-refine.d.ts.map +1 -1
- package/dist/runtime/asset-refine.js +3 -2
- package/dist/runtime/asset-refine.js.map +1 -1
- package/dist/runtime/asset-timeline.d.ts +10 -0
- package/dist/runtime/asset-timeline.d.ts.map +1 -1
- package/dist/runtime/asset-timeline.js.map +1 -1
- package/dist/runtime/asset-update.d.ts.map +1 -1
- package/dist/runtime/asset-update.js +8 -1
- package/dist/runtime/asset-update.js.map +1 -1
- package/dist/runtime/audio-index.d.ts +0 -11
- package/dist/runtime/audio-index.d.ts.map +1 -1
- package/dist/runtime/audio-index.js +0 -19
- package/dist/runtime/audio-index.js.map +1 -1
- package/dist/runtime/clip-instance.d.ts +13 -6
- package/dist/runtime/clip-instance.d.ts.map +1 -1
- package/dist/runtime/clip-instance.js +34 -12
- package/dist/runtime/clip-instance.js.map +1 -1
- package/dist/runtime/clip-store.d.ts +20 -3
- package/dist/runtime/clip-store.d.ts.map +1 -1
- package/dist/runtime/clip-store.js +132 -27
- package/dist/runtime/clip-store.js.map +1 -1
- package/dist/runtime/engine.d.ts +13 -6
- package/dist/runtime/engine.d.ts.map +1 -1
- package/dist/runtime/engine.js +6 -3
- package/dist/runtime/engine.js.map +1 -1
- package/dist/runtime/frame-time.d.ts +31 -0
- package/dist/runtime/frame-time.d.ts.map +1 -0
- package/dist/runtime/frame-time.js +29 -0
- package/dist/runtime/frame-time.js.map +1 -0
- package/dist/runtime/index.d.ts +1 -0
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +1 -0
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/node-picking.d.ts +45 -4
- package/dist/runtime/node-picking.d.ts.map +1 -1
- package/dist/runtime/node-picking.js +127 -13
- package/dist/runtime/node-picking.js.map +1 -1
- package/dist/runtime/node-picking3d.d.ts +14 -6
- package/dist/runtime/node-picking3d.d.ts.map +1 -1
- package/dist/runtime/node-picking3d.js +10 -2
- package/dist/runtime/node-picking3d.js.map +1 -1
- package/dist/runtime/placement.d.ts.map +1 -1
- package/dist/runtime/placement.js +4 -5
- package/dist/runtime/placement.js.map +1 -1
- package/dist/runtime/playback-controller.d.ts +32 -3
- package/dist/runtime/playback-controller.d.ts.map +1 -1
- package/dist/runtime/playback-controller.js +78 -11
- package/dist/runtime/playback-controller.js.map +1 -1
- package/dist/runtime/session.d.ts +16 -10
- package/dist/runtime/session.d.ts.map +1 -1
- package/dist/runtime/session.js +23 -8
- package/dist/runtime/session.js.map +1 -1
- package/dist/runtime/state-evaluator.d.ts +2 -2
- package/dist/runtime/state-evaluator.d.ts.map +1 -1
- package/dist/runtime/state-evaluator.js +4 -3
- package/dist/runtime/state-evaluator.js.map +1 -1
- package/dist/runtime/text-geometry.d.ts +2 -2
- package/dist/runtime/text-geometry.d.ts.map +1 -1
- package/dist/runtime/text-geometry.js +6 -3
- package/dist/runtime/text-geometry.js.map +1 -1
- package/dist/sdk/index.d.ts +70 -38
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +71 -46
- package/dist/sdk/index.js.map +1 -1
- package/dist/tween/command-decorator.d.ts +21 -8
- package/dist/tween/command-decorator.d.ts.map +1 -1
- package/dist/tween/command-decorator.js +12 -23
- package/dist/tween/command-decorator.js.map +1 -1
- package/dist/tween/command.d.ts +13 -1
- package/dist/tween/command.d.ts.map +1 -1
- package/dist/tween/command.js +14 -0
- package/dist/tween/command.js.map +1 -1
- package/dist/tween/ease/constants.d.ts.map +1 -1
- package/dist/tween/ease/constants.js +8 -5
- package/dist/tween/ease/constants.js.map +1 -1
- package/dist/tween/ease/curve.d.ts.map +1 -1
- package/dist/tween/ease/curve.js +4 -3
- package/dist/tween/ease/curve.js.map +1 -1
- package/dist/tween/ease/describe.d.ts +17 -0
- package/dist/tween/ease/describe.d.ts.map +1 -0
- package/dist/tween/ease/describe.js +41 -0
- package/dist/tween/ease/describe.js.map +1 -0
- package/dist/tween/ease/spec.d.ts +31 -0
- package/dist/tween/ease/spec.d.ts.map +1 -0
- package/dist/tween/ease/spec.js +51 -0
- package/dist/tween/ease/spec.js.map +1 -0
- package/dist/tween/index.d.ts +3 -1
- package/dist/tween/index.d.ts.map +1 -1
- package/dist/tween/index.js +2 -1
- package/dist/tween/index.js.map +1 -1
- package/dist/tween/loop.d.ts +1 -1
- package/dist/tween/loop.js +1 -1
- package/dist/tween/loop.js.map +1 -1
- package/dist/tween/prepare.d.ts +3 -3
- package/dist/tween/prepare.js +3 -3
- package/dist/tween/prepare.js.map +1 -1
- package/dist/util/metrics.d.ts +1 -1
- package/dist/util/metrics.js +1 -1
- package/dist/util/metrics.js.map +1 -1
- package/dist/util/reference.d.ts +6 -6
- package/dist/util/reference.js.map +1 -1
- package/package.json +8 -10
- package/dist/attributes/audio/filters/chain.d.ts +0 -113
- package/dist/attributes/audio/filters/chain.d.ts.map +0 -1
- package/dist/attributes/audio/filters/chain.js +0 -104
- package/dist/attributes/audio/filters/chain.js.map +0 -1
- package/dist/attributes/audio/filters/curve.d.ts +0 -152
- package/dist/attributes/audio/filters/curve.d.ts.map +0 -1
- package/dist/attributes/audio/filters/curve.js +0 -249
- package/dist/attributes/audio/filters/curve.js.map +0 -1
- package/dist/attributes/audio/filters/implementations/echo.d.ts +0 -14
- package/dist/attributes/audio/filters/implementations/echo.d.ts.map +0 -1
- package/dist/attributes/audio/filters/implementations/echo.js.map +0 -1
- package/dist/attributes/audio/filters/implementations/gain.d.ts +0 -10
- package/dist/attributes/audio/filters/implementations/gain.d.ts.map +0 -1
- package/dist/attributes/audio/filters/implementations/gain.js.map +0 -1
- package/dist/attributes/audio/filters/implementations/highpass.d.ts +0 -12
- package/dist/attributes/audio/filters/implementations/highpass.d.ts.map +0 -1
- package/dist/attributes/audio/filters/implementations/highpass.js.map +0 -1
- package/dist/attributes/audio/filters/implementations/lowpass.d.ts +0 -12
- package/dist/attributes/audio/filters/implementations/lowpass.d.ts.map +0 -1
- package/dist/attributes/audio/filters/implementations/lowpass.js.map +0 -1
- package/dist/attributes/audio/filters/implementations/speed.d.ts +0 -18
- package/dist/attributes/audio/filters/implementations/speed.d.ts.map +0 -1
- package/dist/attributes/audio/filters/implementations/speed.js +0 -6
- package/dist/attributes/audio/filters/implementations/speed.js.map +0 -1
- package/dist/attributes/audio/filters/implementations/tremolo.d.ts +0 -12
- package/dist/attributes/audio/filters/implementations/tremolo.d.ts.map +0 -1
- package/dist/attributes/audio/filters/implementations/tremolo.js.map +0 -1
- package/dist/attributes/audio/filters/index.d.ts +0 -22
- package/dist/attributes/audio/filters/index.d.ts.map +0 -1
- package/dist/attributes/audio/filters/index.js +0 -8
- package/dist/attributes/audio/filters/index.js.map +0 -1
- package/dist/attributes/audio/filters/registry.d.ts +0 -36
- package/dist/attributes/audio/filters/registry.d.ts.map +0 -1
- package/dist/attributes/audio/filters/registry.js +0 -82
- package/dist/attributes/audio/filters/registry.js.map +0 -1
- package/dist/attributes/audio/filters/union.d.ts +0 -18
- package/dist/attributes/audio/filters/union.d.ts.map +0 -1
- package/dist/attributes/audio/filters/union.js +0 -28
- package/dist/attributes/audio/filters/union.js.map +0 -1
- package/dist/attributes/shape/effects/implementations/displace.d.ts +0 -48
- package/dist/attributes/shape/effects/implementations/displace.d.ts.map +0 -1
- package/dist/attributes/shape/effects/implementations/displace.js +0 -30
- package/dist/attributes/shape/effects/implementations/displace.js.map +0 -1
- package/dist/attributes/shape/effects/implementations/god-rays.d.ts +0 -28
- package/dist/attributes/shape/effects/implementations/god-rays.d.ts.map +0 -1
- package/dist/attributes/shape/effects/implementations/god-rays.js +0 -26
- package/dist/attributes/shape/effects/implementations/god-rays.js.map +0 -1
- package/dist/attributes/shape/effects/implementations/texture.d.ts +0 -28
- package/dist/attributes/shape/effects/implementations/texture.d.ts.map +0 -1
- package/dist/attributes/shape/effects/implementations/texture.js +0 -25
- package/dist/attributes/shape/effects/implementations/texture.js.map +0 -1
- package/dist/attributes/shape/effects/implementations/trails.d.ts +0 -41
- package/dist/attributes/shape/effects/implementations/trails.d.ts.map +0 -1
- package/dist/attributes/shape/effects/implementations/trails.js +0 -22
- package/dist/attributes/shape/effects/implementations/trails.js.map +0 -1
- package/dist/attributes/shape/sksl-uniforms.d.ts +0 -146
- package/dist/attributes/shape/sksl-uniforms.d.ts.map +0 -1
- package/dist/attributes/shape/sksl-uniforms.js +0 -0
- package/dist/attributes/shape/sksl-uniforms.js.map +0 -1
- package/dist/browser/chunks/chunk-2T3HXSC2.js +0 -2
- package/dist/browser/chunks/chunk-2T3HXSC2.js.map +0 -7
- package/dist/browser/chunks/chunk-P3XQCHDW.js +0 -16
- package/dist/browser/chunks/chunk-P3XQCHDW.js.map +0 -7
- package/dist/browser/chunks/chunk-VJQMKHGQ.js +0 -3
- package/dist/browser/chunks/chunk-VJQMKHGQ.js.map +0 -7
- package/dist/browser/jsx-jsx-dev-runtime.js +0 -2
- package/dist/browser/jsx-jsx-dev-runtime.js.map +0 -7
- package/dist/browser/jsx-jsx-runtime.js +0 -2
- package/dist/browser/jsx-jsx-runtime.js.map +0 -7
- package/dist/jsx/jsx-dev-runtime.d.ts +0 -3
- package/dist/jsx/jsx-dev-runtime.d.ts.map +0 -1
- package/dist/jsx/jsx-dev-runtime.js +0 -3
- package/dist/jsx/jsx-dev-runtime.js.map +0 -1
- package/dist/jsx/jsx-runtime.d.ts +0 -19
- package/dist/jsx/jsx-runtime.d.ts.map +0 -1
- package/dist/jsx/jsx-runtime.js +0 -16
- package/dist/jsx/jsx-runtime.js.map +0 -1
- package/dist/nodes/2d/node-lifecycle.d.ts.map +0 -1
- package/dist/nodes/2d/node-lifecycle.js.map +0 -1
- package/dist/nodes/2d/node-motion.d.ts.map +0 -1
- package/dist/nodes/2d/node-motion.js.map +0 -1
- package/dist/nodes/2d/node-render.d.ts +0 -44
- package/dist/nodes/2d/node-render.d.ts.map +0 -1
- package/dist/nodes/2d/node-render.js.map +0 -1
- package/dist/nodes/2d/node-space.d.ts.map +0 -1
- package/dist/nodes/2d/node-space.js.map +0 -1
- package/dist/nodes/2d/node-transform.d.ts.map +0 -1
- package/dist/nodes/2d/node-transform.js.map +0 -1
- package/dist/nodes/2d/node2d.d.ts.map +0 -1
- package/dist/nodes/2d/node2d.js.map +0 -1
- package/dist/nodes/2d/paint-node.d.ts +0 -115
- package/dist/nodes/2d/paint-node.d.ts.map +0 -1
- package/dist/nodes/2d/paint-node.js +0 -190
- package/dist/nodes/2d/paint-node.js.map +0 -1
- package/dist/nodes/audio/audio-bus.d.ts +0 -28
- package/dist/nodes/audio/audio-bus.d.ts.map +0 -1
- package/dist/nodes/audio/audio-bus.js +0 -33
- package/dist/nodes/audio/audio-bus.js.map +0 -1
- package/dist/nodes/audio/index.d.ts +0 -4
- package/dist/nodes/audio/index.d.ts.map +0 -1
- package/dist/nodes/audio/index.js +0 -4
- package/dist/nodes/audio/index.js.map +0 -1
- package/dist/nodes/audio/node-audio.d.ts.map +0 -1
- package/dist/nodes/audio/node-audio.js.map +0 -1
- package/dist/nodes/audio/sound-node.d.ts +0 -40
- package/dist/nodes/audio/sound-node.d.ts.map +0 -1
- package/dist/nodes/audio/sound-node.js +0 -68
- package/dist/nodes/audio/sound-node.js.map +0 -1
- package/dist/nodes/geometry/boolean-node.d.ts +0 -28
- package/dist/nodes/geometry/boolean-node.d.ts.map +0 -1
- package/dist/nodes/geometry/boolean-node.js +0 -81
- package/dist/nodes/geometry/boolean-node.js.map +0 -1
- package/dist/nodes/geometry/bounds-shape-node.d.ts +0 -149
- package/dist/nodes/geometry/bounds-shape-node.d.ts.map +0 -1
- package/dist/nodes/geometry/bounds-shape-node.js +0 -181
- package/dist/nodes/geometry/bounds-shape-node.js.map +0 -1
- package/dist/nodes/geometry/box-path-node.d.ts +0 -89
- package/dist/nodes/geometry/box-path-node.d.ts.map +0 -1
- package/dist/nodes/geometry/box-path-node.js +0 -116
- package/dist/nodes/geometry/box-path-node.js.map +0 -1
- package/dist/nodes/geometry/dot-grid-node.d.ts +0 -105
- package/dist/nodes/geometry/dot-grid-node.d.ts.map +0 -1
- package/dist/nodes/geometry/dot-grid-node.js +0 -142
- package/dist/nodes/geometry/dot-grid-node.js.map +0 -1
- package/dist/nodes/geometry/ellipse-node.d.ts +0 -18
- package/dist/nodes/geometry/ellipse-node.d.ts.map +0 -1
- package/dist/nodes/geometry/ellipse-node.js +0 -45
- package/dist/nodes/geometry/ellipse-node.js.map +0 -1
- package/dist/nodes/geometry/grid-lines.d.ts +0 -101
- package/dist/nodes/geometry/grid-lines.d.ts.map +0 -1
- package/dist/nodes/geometry/grid-lines.js +0 -128
- package/dist/nodes/geometry/grid-lines.js.map +0 -1
- package/dist/nodes/geometry/grid-pattern-node.d.ts +0 -58
- package/dist/nodes/geometry/grid-pattern-node.d.ts.map +0 -1
- package/dist/nodes/geometry/grid-pattern-node.js +0 -172
- package/dist/nodes/geometry/grid-pattern-node.js.map +0 -1
- package/dist/nodes/geometry/group-bounds.d.ts.map +0 -1
- package/dist/nodes/geometry/group-bounds.js.map +0 -1
- package/dist/nodes/geometry/line-grid-node.d.ts +0 -62
- package/dist/nodes/geometry/line-grid-node.d.ts.map +0 -1
- package/dist/nodes/geometry/line-grid-node.js +0 -127
- package/dist/nodes/geometry/line-grid-node.js.map +0 -1
- package/dist/nodes/geometry/line-node.d.ts +0 -58
- package/dist/nodes/geometry/line-node.d.ts.map +0 -1
- package/dist/nodes/geometry/line-node.js +0 -123
- package/dist/nodes/geometry/line-node.js.map +0 -1
- package/dist/nodes/geometry/mask-node.d.ts +0 -33
- package/dist/nodes/geometry/mask-node.d.ts.map +0 -1
- package/dist/nodes/geometry/mask-node.js +0 -66
- package/dist/nodes/geometry/mask-node.js.map +0 -1
- package/dist/nodes/geometry/path-node.d.ts +0 -26
- package/dist/nodes/geometry/path-node.d.ts.map +0 -1
- package/dist/nodes/geometry/path-node.js +0 -52
- package/dist/nodes/geometry/path-node.js.map +0 -1
- package/dist/nodes/geometry/polygon-node.d.ts +0 -26
- package/dist/nodes/geometry/polygon-node.d.ts.map +0 -1
- package/dist/nodes/geometry/polygon-node.js +0 -47
- package/dist/nodes/geometry/polygon-node.js.map +0 -1
- package/dist/nodes/geometry/polygram-node.d.ts +0 -33
- package/dist/nodes/geometry/polygram-node.d.ts.map +0 -1
- package/dist/nodes/geometry/polygram-node.js +0 -52
- package/dist/nodes/geometry/polygram-node.js.map +0 -1
- package/dist/nodes/geometry/rect-node.d.ts +0 -38
- package/dist/nodes/geometry/rect-node.d.ts.map +0 -1
- package/dist/nodes/geometry/rect-node.js +0 -56
- package/dist/nodes/geometry/rect-node.js.map +0 -1
- package/dist/nodes/geometry/shape-node.d.ts +0 -71
- package/dist/nodes/geometry/shape-node.d.ts.map +0 -1
- package/dist/nodes/geometry/shape-node.js +0 -140
- package/dist/nodes/geometry/shape-node.js.map +0 -1
- package/dist/nodes/geometry/shape-outline.d.ts.map +0 -1
- package/dist/nodes/geometry/shape-outline.js.map +0 -1
- package/dist/nodes/geometry/viewport-pattern-node.d.ts +0 -39
- package/dist/nodes/geometry/viewport-pattern-node.d.ts.map +0 -1
- package/dist/nodes/geometry/viewport-pattern-node.js +0 -79
- package/dist/nodes/geometry/viewport-pattern-node.js.map +0 -1
- package/dist/nodes/index.d.ts +0 -46
- package/dist/nodes/index.d.ts.map +0 -1
- package/dist/nodes/index.js +0 -54
- package/dist/nodes/index.js.map +0 -1
- package/dist/nodes/layout/camera-node.d.ts +0 -71
- package/dist/nodes/layout/camera-node.d.ts.map +0 -1
- package/dist/nodes/layout/camera-node.js +0 -118
- package/dist/nodes/layout/camera-node.js.map +0 -1
- package/dist/nodes/layout/orbit-camera-node.d.ts +0 -80
- package/dist/nodes/layout/orbit-camera-node.d.ts.map +0 -1
- package/dist/nodes/layout/orbit-camera-node.js +0 -118
- package/dist/nodes/layout/orbit-camera-node.js.map +0 -1
- package/dist/nodes/layout/rotated-box.d.ts +0 -20
- package/dist/nodes/layout/rotated-box.d.ts.map +0 -1
- package/dist/nodes/layout/rotated-box.js +0 -76
- package/dist/nodes/layout/rotated-box.js.map +0 -1
- package/dist/nodes/media/video-node.d.ts +0 -229
- package/dist/nodes/media/video-node.d.ts.map +0 -1
- package/dist/nodes/media/video-node.js +0 -348
- package/dist/nodes/media/video-node.js.map +0 -1
- package/dist/nodes/node/declare-paints.d.ts +0 -19
- package/dist/nodes/node/declare-paints.d.ts.map +0 -1
- package/dist/nodes/node/declare-paints.js +0 -27
- package/dist/nodes/node/declare-paints.js.map +0 -1
- package/dist/nodes/node/node-editor-state.d.ts.map +0 -1
- package/dist/nodes/node/node-editor-state.js.map +0 -1
- package/dist/nodes/node/node-reactive.d.ts.map +0 -1
- package/dist/nodes/node/node-reactive.js.map +0 -1
- package/dist/nodes/node/node-time.d.ts.map +0 -1
- package/dist/nodes/node/node-time.js.map +0 -1
- package/dist/nodes/node/node-walk.d.ts.map +0 -1
- package/dist/nodes/node/node-walk.js.map +0 -1
- package/dist/nodes/node/node.d.ts.map +0 -1
- package/dist/nodes/node/node.js.map +0 -1
- package/dist/nodes/node/text-defaults.d.ts.map +0 -1
- package/dist/nodes/node/text-defaults.js.map +0 -1
- package/dist/nodes/scene/canvas2d-node.d.ts.map +0 -1
- package/dist/nodes/scene/canvas2d-node.js.map +0 -1
- package/dist/nodes/scene/provider-node.d.ts +0 -47
- package/dist/nodes/scene/provider-node.d.ts.map +0 -1
- package/dist/nodes/scene/provider-node.js +0 -63
- package/dist/nodes/scene/provider-node.js.map +0 -1
- package/dist/nodes/scene/theme-provider-node.d.ts +0 -29
- package/dist/nodes/scene/theme-provider-node.d.ts.map +0 -1
- package/dist/nodes/scene/theme-provider-node.js +0 -43
- package/dist/nodes/scene/theme-provider-node.js.map +0 -1
- package/dist/nodes/text/default-text-style-node.d.ts +0 -100
- package/dist/nodes/text/default-text-style-node.d.ts.map +0 -1
- package/dist/nodes/text/default-text-style-node.js +0 -140
- package/dist/nodes/text/default-text-style-node.js.map +0 -1
- package/dist/nodes/text/number-format.d.ts.map +0 -1
- package/dist/nodes/text/number-format.js.map +0 -1
- package/dist/nodes/text/number-node.d.ts +0 -94
- package/dist/nodes/text/number-node.d.ts.map +0 -1
- package/dist/nodes/text/number-node.js +0 -86
- package/dist/nodes/text/number-node.js.map +0 -1
- package/dist/nodes/text/number-pattern.d.ts.map +0 -1
- package/dist/nodes/text/number-pattern.js.map +0 -1
- package/dist/nodes/text/richtext-node.d.ts +0 -73
- package/dist/nodes/text/richtext-node.d.ts.map +0 -1
- package/dist/nodes/text/richtext-node.js +0 -144
- package/dist/nodes/text/richtext-node.js.map +0 -1
- package/dist/nodes/text/text-base.d.ts +0 -135
- package/dist/nodes/text/text-base.d.ts.map +0 -1
- package/dist/nodes/text/text-base.js +0 -504
- package/dist/nodes/text/text-base.js.map +0 -1
- package/dist/nodes/text/text-node.d.ts +0 -84
- package/dist/nodes/text/text-node.d.ts.map +0 -1
- package/dist/nodes/text/text-node.js +0 -188
- package/dist/nodes/text/text-node.js.map +0 -1
- package/dist/nodes/text/text-selection.d.ts +0 -125
- package/dist/nodes/text/text-selection.d.ts.map +0 -1
- package/dist/nodes/text/text-selection.js +0 -209
- package/dist/nodes/text/text-selection.js.map +0 -1
- package/dist/nodes/three/camera-nodes.d.ts +0 -91
- package/dist/nodes/three/camera-nodes.d.ts.map +0 -1
- package/dist/nodes/three/camera-nodes.js +0 -71
- package/dist/nodes/three/camera-nodes.js.map +0 -1
- package/dist/nodes/three/canvas3d-node.d.ts +0 -270
- package/dist/nodes/three/canvas3d-node.d.ts.map +0 -1
- package/dist/nodes/three/canvas3d-node.js +0 -438
- package/dist/nodes/three/canvas3d-node.js.map +0 -1
- package/dist/nodes/three/drawable-nodes.d.ts +0 -159
- package/dist/nodes/three/drawable-nodes.d.ts.map +0 -1
- package/dist/nodes/three/drawable-nodes.js +0 -254
- package/dist/nodes/three/drawable-nodes.js.map +0 -1
- package/dist/nodes/three/environment-nodes.d.ts +0 -100
- package/dist/nodes/three/environment-nodes.d.ts.map +0 -1
- package/dist/nodes/three/environment-nodes.js +0 -134
- package/dist/nodes/three/environment-nodes.js.map +0 -1
- package/dist/nodes/three/geometry-nodes.d.ts +0 -197
- package/dist/nodes/three/geometry-nodes.d.ts.map +0 -1
- package/dist/nodes/three/geometry-nodes.js +0 -322
- package/dist/nodes/three/geometry-nodes.js.map +0 -1
- package/dist/nodes/three/grid-geometry3d.d.ts.map +0 -1
- package/dist/nodes/three/grid-geometry3d.js.map +0 -1
- package/dist/nodes/three/group3d.d.ts +0 -23
- package/dist/nodes/three/group3d.d.ts.map +0 -1
- package/dist/nodes/three/group3d.js +0 -21
- package/dist/nodes/three/group3d.js.map +0 -1
- package/dist/nodes/three/light-nodes.d.ts +0 -120
- package/dist/nodes/three/light-nodes.d.ts.map +0 -1
- package/dist/nodes/three/light-nodes.js +0 -173
- package/dist/nodes/three/light-nodes.js.map +0 -1
- package/dist/nodes/three/mesh3d.d.ts +0 -117
- package/dist/nodes/three/mesh3d.d.ts.map +0 -1
- package/dist/nodes/three/mesh3d.js +0 -147
- package/dist/nodes/three/mesh3d.js.map +0 -1
- package/dist/nodes/three/node3d.d.ts.map +0 -1
- package/dist/nodes/three/node3d.js.map +0 -1
- package/dist/render/descriptors/latex.d.ts +0 -6
- package/dist/render/descriptors/latex.d.ts.map +0 -1
- package/dist/render/descriptors/latex.js +0 -2
- package/dist/render/descriptors/latex.js.map +0 -1
- package/dist/tween/seekable.d.ts +0 -70
- package/dist/tween/seekable.d.ts.map +0 -1
- package/dist/tween/seekable.js +0 -122
- package/dist/tween/seekable.js.map +0 -1
- /package/dist/{nodes → components/builtins}/text/number-pattern.d.ts +0 -0
- /package/dist/{nodes → components/builtins}/text/number-pattern.js +0 -0
- /package/dist/{nodes → components/trees}/node/node-editor-state.d.ts +0 -0
- /package/dist/{nodes → components/trees}/node/node-editor-state.js +0 -0
|
@@ -1,322 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { property } from "../../attributes/properties/decorator.js";
|
|
8
|
-
import { Mesh3D } from "./mesh3d.js";
|
|
9
|
-
/**
|
|
10
|
-
* Gather the set parameters off a node into a geometry descriptor.
|
|
11
|
-
*
|
|
12
|
-
* Reads through the prop accessors, so every parameter is live and a `to()` on
|
|
13
|
-
* one rebuilds the geometry on the next frame.
|
|
14
|
-
*/
|
|
15
|
-
function geometryFrom(type, node, keys) {
|
|
16
|
-
const out = { type };
|
|
17
|
-
for (const key of keys) {
|
|
18
|
-
const value = node[key];
|
|
19
|
-
if (value !== undefined)
|
|
20
|
-
out[key] = value;
|
|
21
|
-
}
|
|
22
|
-
return out;
|
|
23
|
-
}
|
|
24
|
-
/** The two sweep props every partially-revolvable shape carries. */
|
|
25
|
-
const SWEEP_KEYS = ["startAngle", "sweep"];
|
|
26
|
-
const BOX_KEYS = ["width", "height", "depth", "cornerRadius", "segments"];
|
|
27
|
-
/**
|
|
28
|
-
* A box — and, with `cornerRadius`, the rounded box that most of a designed 3D
|
|
29
|
-
* scene is made of. Same prop name and same meaning as `Rect`'s.
|
|
30
|
-
*/
|
|
31
|
-
export class Box3D extends Mesh3D {
|
|
32
|
-
buildGeometry() {
|
|
33
|
-
return geometryFrom("box", this, BOX_KEYS);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
__decorate([
|
|
37
|
-
property({ default: undefined })
|
|
38
|
-
], Box3D.prototype, "width", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
property({ default: undefined })
|
|
41
|
-
], Box3D.prototype, "height", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
property({ default: undefined })
|
|
44
|
-
], Box3D.prototype, "depth", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
property({ default: undefined })
|
|
47
|
-
], Box3D.prototype, "cornerRadius", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
property({ default: undefined })
|
|
50
|
-
], Box3D.prototype, "segments", void 0);
|
|
51
|
-
const SPHERE_KEYS = ["radius", "segments", "startLatitude", "latitudeSweep", ...SWEEP_KEYS];
|
|
52
|
-
/** A sphere. `segments` is `[longitude, latitude]`. */
|
|
53
|
-
export class Sphere3D extends Mesh3D {
|
|
54
|
-
buildGeometry() {
|
|
55
|
-
return geometryFrom("sphere", this, SPHERE_KEYS);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
__decorate([
|
|
59
|
-
property({ default: undefined })
|
|
60
|
-
], Sphere3D.prototype, "radius", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
property({ default: undefined })
|
|
63
|
-
], Sphere3D.prototype, "segments", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
property({ default: undefined })
|
|
66
|
-
], Sphere3D.prototype, "startAngle", void 0);
|
|
67
|
-
__decorate([
|
|
68
|
-
property({ default: undefined })
|
|
69
|
-
], Sphere3D.prototype, "sweep", void 0);
|
|
70
|
-
__decorate([
|
|
71
|
-
property({ default: undefined })
|
|
72
|
-
], Sphere3D.prototype, "startLatitude", void 0);
|
|
73
|
-
__decorate([
|
|
74
|
-
property({ default: undefined })
|
|
75
|
-
], Sphere3D.prototype, "latitudeSweep", void 0);
|
|
76
|
-
const PLANE_KEYS = ["width", "height", "segments"];
|
|
77
|
-
/** A flat quad. `segments` is `[width, height]`. */
|
|
78
|
-
export class Plane3D extends Mesh3D {
|
|
79
|
-
buildGeometry() {
|
|
80
|
-
return geometryFrom("plane", this, PLANE_KEYS);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
__decorate([
|
|
84
|
-
property({ default: undefined })
|
|
85
|
-
], Plane3D.prototype, "width", void 0);
|
|
86
|
-
__decorate([
|
|
87
|
-
property({ default: undefined })
|
|
88
|
-
], Plane3D.prototype, "height", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
property({ default: undefined })
|
|
91
|
-
], Plane3D.prototype, "segments", void 0);
|
|
92
|
-
const CYLINDER_KEYS = ["radius", "height", "segments", "capped", ...SWEEP_KEYS];
|
|
93
|
-
/**
|
|
94
|
-
* A cylinder, or any tapered tube: `radius={[top, bottom]}`. `segments` is
|
|
95
|
-
* `[radial, height]`.
|
|
96
|
-
*/
|
|
97
|
-
export class Cylinder3D extends Mesh3D {
|
|
98
|
-
buildGeometry() {
|
|
99
|
-
return geometryFrom("cylinder", this, CYLINDER_KEYS);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
__decorate([
|
|
103
|
-
property({ default: undefined })
|
|
104
|
-
], Cylinder3D.prototype, "radius", void 0);
|
|
105
|
-
__decorate([
|
|
106
|
-
property({ default: undefined })
|
|
107
|
-
], Cylinder3D.prototype, "height", void 0);
|
|
108
|
-
__decorate([
|
|
109
|
-
property({ default: undefined })
|
|
110
|
-
], Cylinder3D.prototype, "segments", void 0);
|
|
111
|
-
__decorate([
|
|
112
|
-
property({ default: undefined })
|
|
113
|
-
], Cylinder3D.prototype, "capped", void 0);
|
|
114
|
-
__decorate([
|
|
115
|
-
property({ default: undefined })
|
|
116
|
-
], Cylinder3D.prototype, "startAngle", void 0);
|
|
117
|
-
__decorate([
|
|
118
|
-
property({ default: undefined })
|
|
119
|
-
], Cylinder3D.prototype, "sweep", void 0);
|
|
120
|
-
const CONE_KEYS = ["radius", "height", "segments", "capped", ...SWEEP_KEYS];
|
|
121
|
-
/** A cone. `segments` is `[radial, height]`. */
|
|
122
|
-
export class Cone3D extends Mesh3D {
|
|
123
|
-
buildGeometry() {
|
|
124
|
-
return geometryFrom("cone", this, CONE_KEYS);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
__decorate([
|
|
128
|
-
property({ default: undefined })
|
|
129
|
-
], Cone3D.prototype, "radius", void 0);
|
|
130
|
-
__decorate([
|
|
131
|
-
property({ default: undefined })
|
|
132
|
-
], Cone3D.prototype, "height", void 0);
|
|
133
|
-
__decorate([
|
|
134
|
-
property({ default: undefined })
|
|
135
|
-
], Cone3D.prototype, "segments", void 0);
|
|
136
|
-
__decorate([
|
|
137
|
-
property({ default: undefined })
|
|
138
|
-
], Cone3D.prototype, "capped", void 0);
|
|
139
|
-
__decorate([
|
|
140
|
-
property({ default: undefined })
|
|
141
|
-
], Cone3D.prototype, "startAngle", void 0);
|
|
142
|
-
__decorate([
|
|
143
|
-
property({ default: undefined })
|
|
144
|
-
], Cone3D.prototype, "sweep", void 0);
|
|
145
|
-
const TORUS_KEYS = ["radius", "thickness", "segments", ...SWEEP_KEYS];
|
|
146
|
-
/** A ring. `thickness` is the strand; `segments` is `[radial, tubular]`. */
|
|
147
|
-
export class Torus3D extends Mesh3D {
|
|
148
|
-
buildGeometry() {
|
|
149
|
-
return geometryFrom("torus", this, TORUS_KEYS);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
__decorate([
|
|
153
|
-
property({ default: undefined })
|
|
154
|
-
], Torus3D.prototype, "radius", void 0);
|
|
155
|
-
__decorate([
|
|
156
|
-
property({ default: undefined })
|
|
157
|
-
], Torus3D.prototype, "thickness", void 0);
|
|
158
|
-
__decorate([
|
|
159
|
-
property({ default: undefined })
|
|
160
|
-
], Torus3D.prototype, "segments", void 0);
|
|
161
|
-
__decorate([
|
|
162
|
-
property({ default: undefined })
|
|
163
|
-
], Torus3D.prototype, "startAngle", void 0);
|
|
164
|
-
__decorate([
|
|
165
|
-
property({ default: undefined })
|
|
166
|
-
], Torus3D.prototype, "sweep", void 0);
|
|
167
|
-
const TORUS_KNOT_KEYS = ["radius", "thickness", "segments", "windings"];
|
|
168
|
-
/** A knotted ring. `windings` is `[p, q]`; `segments` is `[tubular, radial]`. */
|
|
169
|
-
export class TorusKnot3D extends Mesh3D {
|
|
170
|
-
buildGeometry() {
|
|
171
|
-
return geometryFrom("torusKnot", this, TORUS_KNOT_KEYS);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
__decorate([
|
|
175
|
-
property({ default: undefined })
|
|
176
|
-
], TorusKnot3D.prototype, "radius", void 0);
|
|
177
|
-
__decorate([
|
|
178
|
-
property({ default: undefined })
|
|
179
|
-
], TorusKnot3D.prototype, "thickness", void 0);
|
|
180
|
-
__decorate([
|
|
181
|
-
property({ default: undefined })
|
|
182
|
-
], TorusKnot3D.prototype, "segments", void 0);
|
|
183
|
-
__decorate([
|
|
184
|
-
property({ default: undefined })
|
|
185
|
-
], TorusKnot3D.prototype, "windings", void 0);
|
|
186
|
-
const CIRCLE_KEYS = ["radius", "segments", ...SWEEP_KEYS];
|
|
187
|
-
/** A flat disc, or a pie slice via `startAngle`/`sweep` — exactly as `Ellipse`. */
|
|
188
|
-
export class Circle3D extends Mesh3D {
|
|
189
|
-
buildGeometry() {
|
|
190
|
-
return geometryFrom("circle", this, CIRCLE_KEYS);
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
__decorate([
|
|
194
|
-
property({ default: undefined })
|
|
195
|
-
], Circle3D.prototype, "radius", void 0);
|
|
196
|
-
__decorate([
|
|
197
|
-
property({ default: undefined })
|
|
198
|
-
], Circle3D.prototype, "segments", void 0);
|
|
199
|
-
__decorate([
|
|
200
|
-
property({ default: undefined })
|
|
201
|
-
], Circle3D.prototype, "startAngle", void 0);
|
|
202
|
-
__decorate([
|
|
203
|
-
property({ default: undefined })
|
|
204
|
-
], Circle3D.prototype, "sweep", void 0);
|
|
205
|
-
const RING_KEYS = ["radius", "innerRadius", "segments", ...SWEEP_KEYS];
|
|
206
|
-
/** A flat annulus. `radius` is the outer edge; `segments` is `[around, radial]`. */
|
|
207
|
-
export class Ring3D extends Mesh3D {
|
|
208
|
-
buildGeometry() {
|
|
209
|
-
return geometryFrom("ring", this, RING_KEYS);
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
__decorate([
|
|
213
|
-
property({ default: undefined })
|
|
214
|
-
], Ring3D.prototype, "radius", void 0);
|
|
215
|
-
__decorate([
|
|
216
|
-
property({ default: undefined })
|
|
217
|
-
], Ring3D.prototype, "innerRadius", void 0);
|
|
218
|
-
__decorate([
|
|
219
|
-
property({ default: undefined })
|
|
220
|
-
], Ring3D.prototype, "segments", void 0);
|
|
221
|
-
__decorate([
|
|
222
|
-
property({ default: undefined })
|
|
223
|
-
], Ring3D.prototype, "startAngle", void 0);
|
|
224
|
-
__decorate([
|
|
225
|
-
property({ default: undefined })
|
|
226
|
-
], Ring3D.prototype, "sweep", void 0);
|
|
227
|
-
const CAPSULE_KEYS = ["radius", "height", "segments"];
|
|
228
|
-
/** A pill. `height` is the straight mid-section; `segments` is `[radial, cap]`. */
|
|
229
|
-
export class Capsule3D extends Mesh3D {
|
|
230
|
-
buildGeometry() {
|
|
231
|
-
return geometryFrom("capsule", this, CAPSULE_KEYS);
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
__decorate([
|
|
235
|
-
property({ default: undefined })
|
|
236
|
-
], Capsule3D.prototype, "radius", void 0);
|
|
237
|
-
__decorate([
|
|
238
|
-
property({ default: undefined })
|
|
239
|
-
], Capsule3D.prototype, "height", void 0);
|
|
240
|
-
__decorate([
|
|
241
|
-
property({ default: undefined })
|
|
242
|
-
], Capsule3D.prototype, "segments", void 0);
|
|
243
|
-
const POLYHEDRON_KEYS = ["shape", "radius", "segments"];
|
|
244
|
-
/** A platonic solid. `segments` subdivides it toward a sphere. */
|
|
245
|
-
export class Polyhedron3D extends Mesh3D {
|
|
246
|
-
buildGeometry() {
|
|
247
|
-
return geometryFrom("polyhedron", this, POLYHEDRON_KEYS);
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
__decorate([
|
|
251
|
-
property({ default: "icosahedron" })
|
|
252
|
-
], Polyhedron3D.prototype, "shape", void 0);
|
|
253
|
-
__decorate([
|
|
254
|
-
property({ default: undefined })
|
|
255
|
-
], Polyhedron3D.prototype, "radius", void 0);
|
|
256
|
-
__decorate([
|
|
257
|
-
property({ default: undefined })
|
|
258
|
-
], Polyhedron3D.prototype, "segments", void 0);
|
|
259
|
-
const EXTRUDE_KEYS = ["path", "depth", "segments", "bevel"];
|
|
260
|
-
/**
|
|
261
|
-
* A 2D outline swept into a solid. `path` takes the same value the 2D `Path`
|
|
262
|
-
* node's own `path` prop does — same name, same vocabulary.
|
|
263
|
-
*/
|
|
264
|
-
export class Extrude3D extends Mesh3D {
|
|
265
|
-
buildGeometry() {
|
|
266
|
-
return geometryFrom("extrude", this, EXTRUDE_KEYS);
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
__decorate([
|
|
270
|
-
property({ default: undefined })
|
|
271
|
-
], Extrude3D.prototype, "path", void 0);
|
|
272
|
-
__decorate([
|
|
273
|
-
property({ default: undefined })
|
|
274
|
-
], Extrude3D.prototype, "depth", void 0);
|
|
275
|
-
__decorate([
|
|
276
|
-
property({ default: undefined })
|
|
277
|
-
], Extrude3D.prototype, "segments", void 0);
|
|
278
|
-
__decorate([
|
|
279
|
-
property({ default: undefined })
|
|
280
|
-
], Extrude3D.prototype, "bevel", void 0);
|
|
281
|
-
const LATHE_KEYS = ["points", "segments", ...SWEEP_KEYS];
|
|
282
|
-
/** A profile revolved about Y — vases, bowls, turned shapes. */
|
|
283
|
-
export class Lathe3D extends Mesh3D {
|
|
284
|
-
buildGeometry() {
|
|
285
|
-
return geometryFrom("lathe", this, LATHE_KEYS);
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
__decorate([
|
|
289
|
-
property({ default: undefined })
|
|
290
|
-
], Lathe3D.prototype, "points", void 0);
|
|
291
|
-
__decorate([
|
|
292
|
-
property({ default: undefined })
|
|
293
|
-
], Lathe3D.prototype, "segments", void 0);
|
|
294
|
-
__decorate([
|
|
295
|
-
property({ default: undefined })
|
|
296
|
-
], Lathe3D.prototype, "startAngle", void 0);
|
|
297
|
-
__decorate([
|
|
298
|
-
property({ default: undefined })
|
|
299
|
-
], Lathe3D.prototype, "sweep", void 0);
|
|
300
|
-
const TUBE_KEYS = ["points", "radius", "segments", "closed"];
|
|
301
|
-
/**
|
|
302
|
-
* A circular cross-section swept along a curve. `closed` joins the ends, the
|
|
303
|
-
* same prop the 2D `Line` node carries; `segments` is `[along, around]`.
|
|
304
|
-
*/
|
|
305
|
-
export class Tube3D extends Mesh3D {
|
|
306
|
-
buildGeometry() {
|
|
307
|
-
return geometryFrom("tube", this, TUBE_KEYS);
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
__decorate([
|
|
311
|
-
property({ default: undefined })
|
|
312
|
-
], Tube3D.prototype, "points", void 0);
|
|
313
|
-
__decorate([
|
|
314
|
-
property({ default: undefined })
|
|
315
|
-
], Tube3D.prototype, "radius", void 0);
|
|
316
|
-
__decorate([
|
|
317
|
-
property({ default: undefined })
|
|
318
|
-
], Tube3D.prototype, "segments", void 0);
|
|
319
|
-
__decorate([
|
|
320
|
-
property({ default: undefined })
|
|
321
|
-
], Tube3D.prototype, "closed", void 0);
|
|
322
|
-
//# sourceMappingURL=geometry-nodes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"geometry-nodes.js","sourceRoot":"","sources":["../../../src/nodes/three/geometry-nodes.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAW7D,OAAO,EAAE,MAAM,EAAoB,MAAM,UAAU,CAAC;AAiCpD;;;;;GAKG;AACH,SAAS,YAAY,CAAC,IAAwB,EAAE,IAAY,EAAE,IAAuB;IACjF,MAAM,GAAG,GAA4B,EAAE,IAAI,EAAE,CAAC;IAC9C,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACrB,MAAM,KAAK,GAAI,IAAgC,CAAC,GAAG,CAAC,CAAC;QACrD,IAAI,KAAK,KAAK,SAAS;YAAE,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IAC9C,CAAC;IACD,OAAO,GAA4B,CAAC;AACxC,CAAC;AAED,oEAAoE;AACpE,MAAM,UAAU,GAAG,CAAC,YAAY,EAAE,OAAO,CAAU,CAAC;AAMpD,MAAM,QAAQ,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAE,UAAU,CAAU,CAAC;AAEnF;;;GAGG;AACH,MAAM,OAAO,KAAyC,SAAQ,MAAS;IAOhD,aAAa;QAC5B,OAAO,YAAY,CAAC,KAAK,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC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AAqD;AAC5C;IAAzC,QAAQ,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;sCAAoC;AAC3B;IAAzC,QAAQ,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;wCAA0C;AACjC;IAAzC,QAAQ,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;sCAAqC","sourcesContent":["import { property } from \"@/attributes/properties/decorator\";\nimport type { PathBuilder } from \"@/render/descriptors/path-builder\";\nimport type { PathData } from \"@/render/descriptors/path\";\nimport type {\n Bevel3D, BoxGeometry3D, CapsuleGeometry3D, CircleGeometry3D, ConeGeometry3D,\n CylinderGeometry3D, ExtrudeGeometry3D, Geometry3D, LatheGeometry3D,\n PlaneGeometry3D, PolyhedronGeometry3D, RingGeometry3D, SphereGeometry3D,\n TorusGeometry3D, TorusKnotGeometry3D, TubeGeometry3D,\n} from \"@/render3d/geometry\";\nimport type { Segments3D } from \"@/render3d/segments\";\nimport type { Vector3Input } from \"@/render3d/vector3\";\nimport { Mesh3D, type Mesh3DProps } from \"./mesh3d\";\n\n/**\n * The geometry nodes: one per shape `Graphics3D` has sugar for, so a scene reads\n * as a tree of things rather than as a builder chain.\n *\n * <Box3D width={2} cornerRadius={0.15} fill=\"tomato\" roughness={0.3} />\n * <Torus3D radius={1.4} thickness={0.08} position={[3, 0, 0]} />\n *\n * Each is a {@link Mesh3D}, so it carries the whole material vocabulary and the\n * whole `Node3D` transform. The only thing a subclass adds is its geometry's own\n * parameters — every one optional, so an unset parameter stays *absent* from the\n * descriptor and the renderer's own default applies rather than one invented here.\n *\n * ── Two names, everywhere ─────────────────────────────────────────────────────\n * Subdivision is always `segments` (a number, or a per-axis tuple whose order\n * each shape documents), replacing the ten spellings three has for it. A partial\n * revolution is always `startAngle` + `sweep` in degrees — the pair `Ellipse` has\n * used since the beginning — replacing `thetaStart`, `thetaLength`, `phiStart`,\n * `phiLength` and `arc`.\n *\n * A shape without sugar (a buffer, a parametric surface, a loaded model's mesh)\n * goes through the base directly: `<Mesh3D geometry={Geo.parametric({ … })} />`.\n *\n * **Geometry parameters are expensive to animate.** Three's geometries are\n * immutable, so tweening `radius` reallocates the mesh every frame. Tween\n * `scale` (or one of `scaleX`/`scaleY`/`scaleZ`) instead — those are in-place\n * writes on the object's matrix.\n */\n\n/** Params of a geometry descriptor, minus its discriminant. */\ntype ParamsOf<G extends { type: string }> = Omit<G, \"type\">;\n\n/**\n * Gather the set parameters off a node into a geometry descriptor.\n *\n * Reads through the prop accessors, so every parameter is live and a `to()` on\n * one rebuilds the geometry on the next frame.\n */\nfunction geometryFrom(type: Geometry3D[\"type\"], node: object, keys: readonly string[]): Geometry3D {\n const out: Record<string, unknown> = { type };\n for (const key of keys) {\n const value = (node as Record<string, unknown>)[key];\n if (value !== undefined) out[key] = value;\n }\n return out as unknown as Geometry3D;\n}\n\n/** The two sweep props every partially-revolvable shape carries. */\nconst SWEEP_KEYS = [\"startAngle\", \"sweep\"] as const;\n\n// ─── box ─────────────────────────────────────────────────────────────────────\n\nexport interface Box3DProps extends Mesh3DProps, Partial<ParamsOf<BoxGeometry3D>> { }\n\nconst BOX_KEYS = [\"width\", \"height\", \"depth\", \"cornerRadius\", \"segments\"] as const;\n\n/**\n * A box — and, with `cornerRadius`, the rounded box that most of a designed 3D\n * scene is made of. Same prop name and same meaning as `Rect`'s.\n */\nexport class Box3D<P extends Box3DProps = Box3DProps> extends Mesh3D<P> {\n @property({ default: undefined }) declare width: number | undefined;\n @property({ default: undefined }) declare height: number | undefined;\n @property({ default: undefined }) declare depth: number | undefined;\n @property({ default: undefined }) declare cornerRadius: number | undefined;\n @property({ default: undefined }) declare segments: Segments3D | undefined;\n\n protected override buildGeometry(): Geometry3D {\n return geometryFrom(\"box\", this, BOX_KEYS);\n }\n}\n\n// ─── sphere ──────────────────────────────────────────────────────────────────\n\nexport interface Sphere3DProps extends Mesh3DProps, Partial<ParamsOf<SphereGeometry3D>> { }\n\nconst SPHERE_KEYS = [\"radius\", \"segments\", \"startLatitude\", \"latitudeSweep\", ...SWEEP_KEYS] as const;\n\n/** A sphere. `segments` is `[longitude, latitude]`. */\nexport class Sphere3D<P extends Sphere3DProps = Sphere3DProps> extends Mesh3D<P> {\n @property({ default: undefined }) declare radius: number | undefined;\n @property({ default: undefined }) declare segments: Segments3D | undefined;\n @property({ default: undefined }) declare startAngle: number | undefined;\n @property({ default: undefined }) declare sweep: number | undefined;\n @property({ default: undefined }) declare startLatitude: number | undefined;\n @property({ default: undefined }) declare latitudeSweep: number | undefined;\n\n protected override buildGeometry(): Geometry3D {\n return geometryFrom(\"sphere\", this, SPHERE_KEYS);\n }\n}\n\n// ─── plane ───────────────────────────────────────────────────────────────────\n\nexport interface Plane3DProps extends Mesh3DProps, Partial<ParamsOf<PlaneGeometry3D>> { }\n\nconst PLANE_KEYS = [\"width\", \"height\", \"segments\"] as const;\n\n/** A flat quad. `segments` is `[width, height]`. */\nexport class Plane3D<P extends Plane3DProps = Plane3DProps> extends Mesh3D<P> {\n @property({ default: undefined }) declare width: number | undefined;\n @property({ default: undefined }) declare height: number | undefined;\n @property({ default: undefined }) declare segments: Segments3D | undefined;\n\n protected override buildGeometry(): Geometry3D {\n return geometryFrom(\"plane\", this, PLANE_KEYS);\n }\n}\n\n// ─── cylinder ────────────────────────────────────────────────────────────────\n\nexport interface Cylinder3DProps extends Mesh3DProps, Partial<ParamsOf<CylinderGeometry3D>> { }\n\nconst CYLINDER_KEYS = [\"radius\", \"height\", \"segments\", \"capped\", ...SWEEP_KEYS] as const;\n\n/**\n * A cylinder, or any tapered tube: `radius={[top, bottom]}`. `segments` is\n * `[radial, height]`.\n */\nexport class Cylinder3D<P extends Cylinder3DProps = Cylinder3DProps> extends Mesh3D<P> {\n @property({ default: undefined }) declare radius: number | readonly [number, number] | undefined;\n @property({ default: undefined }) declare height: number | undefined;\n @property({ default: undefined }) declare segments: Segments3D | undefined;\n @property({ default: undefined }) declare capped: boolean | undefined;\n @property({ default: undefined }) declare startAngle: number | undefined;\n @property({ default: undefined }) declare sweep: number | undefined;\n\n protected override buildGeometry(): Geometry3D {\n return geometryFrom(\"cylinder\", this, CYLINDER_KEYS);\n }\n}\n\n// ─── cone ────────────────────────────────────────────────────────────────────\n\nexport interface Cone3DProps extends Mesh3DProps, Partial<ParamsOf<ConeGeometry3D>> { }\n\nconst CONE_KEYS = [\"radius\", \"height\", \"segments\", \"capped\", ...SWEEP_KEYS] as const;\n\n/** A cone. `segments` is `[radial, height]`. */\nexport class Cone3D<P extends Cone3DProps = Cone3DProps> extends Mesh3D<P> {\n @property({ default: undefined }) declare radius: number | undefined;\n @property({ default: undefined }) declare height: number | undefined;\n @property({ default: undefined }) declare segments: Segments3D | undefined;\n @property({ default: undefined }) declare capped: boolean | undefined;\n @property({ default: undefined }) declare startAngle: number | undefined;\n @property({ default: undefined }) declare sweep: number | undefined;\n\n protected override buildGeometry(): Geometry3D {\n return geometryFrom(\"cone\", this, CONE_KEYS);\n }\n}\n\n// ─── torus ───────────────────────────────────────────────────────────────────\n\nexport interface Torus3DProps extends Mesh3DProps, Partial<ParamsOf<TorusGeometry3D>> { }\n\nconst TORUS_KEYS = [\"radius\", \"thickness\", \"segments\", ...SWEEP_KEYS] as const;\n\n/** A ring. `thickness` is the strand; `segments` is `[radial, tubular]`. */\nexport class Torus3D<P extends Torus3DProps = Torus3DProps> extends Mesh3D<P> {\n @property({ default: undefined }) declare radius: number | undefined;\n @property({ default: undefined }) declare thickness: number | undefined;\n @property({ default: undefined }) declare segments: Segments3D | undefined;\n @property({ default: undefined }) declare startAngle: number | undefined;\n @property({ default: undefined }) declare sweep: number | undefined;\n\n protected override buildGeometry(): Geometry3D {\n return geometryFrom(\"torus\", this, TORUS_KEYS);\n }\n}\n\n// ─── torus knot ──────────────────────────────────────────────────────────────\n\nexport interface TorusKnot3DProps extends Mesh3DProps, Partial<ParamsOf<TorusKnotGeometry3D>> { }\n\nconst TORUS_KNOT_KEYS = [\"radius\", \"thickness\", \"segments\", \"windings\"] as const;\n\n/** A knotted ring. `windings` is `[p, q]`; `segments` is `[tubular, radial]`. */\nexport class TorusKnot3D<P extends TorusKnot3DProps = TorusKnot3DProps> extends Mesh3D<P> {\n @property({ default: undefined }) declare radius: number | undefined;\n @property({ default: undefined }) declare thickness: number | undefined;\n @property({ default: undefined }) declare segments: Segments3D | undefined;\n @property({ default: undefined }) declare windings: readonly [number, number] | undefined;\n\n protected override buildGeometry(): Geometry3D {\n return geometryFrom(\"torusKnot\", this, TORUS_KNOT_KEYS);\n }\n}\n\n// ─── circle ──────────────────────────────────────────────────────────────────\n\nexport interface Circle3DProps extends Mesh3DProps, Partial<ParamsOf<CircleGeometry3D>> { }\n\nconst CIRCLE_KEYS = [\"radius\", \"segments\", ...SWEEP_KEYS] as const;\n\n/** A flat disc, or a pie slice via `startAngle`/`sweep` — exactly as `Ellipse`. */\nexport class Circle3D<P extends Circle3DProps = Circle3DProps> extends Mesh3D<P> {\n @property({ default: undefined }) declare radius: number | undefined;\n @property({ default: undefined }) declare segments: Segments3D | undefined;\n @property({ default: undefined }) declare startAngle: number | undefined;\n @property({ default: undefined }) declare sweep: number | undefined;\n\n protected override buildGeometry(): Geometry3D {\n return geometryFrom(\"circle\", this, CIRCLE_KEYS);\n }\n}\n\n// ─── ring ────────────────────────────────────────────────────────────────────\n\nexport interface Ring3DProps extends Mesh3DProps, Partial<ParamsOf<RingGeometry3D>> { }\n\nconst RING_KEYS = [\"radius\", \"innerRadius\", \"segments\", ...SWEEP_KEYS] as const;\n\n/** A flat annulus. `radius` is the outer edge; `segments` is `[around, radial]`. */\nexport class Ring3D<P extends Ring3DProps = Ring3DProps> extends Mesh3D<P> {\n @property({ default: undefined }) declare radius: number | undefined;\n @property({ default: undefined }) declare innerRadius: number | undefined;\n @property({ default: undefined }) declare segments: Segments3D | undefined;\n @property({ default: undefined }) declare startAngle: number | undefined;\n @property({ default: undefined }) declare sweep: number | undefined;\n\n protected override buildGeometry(): Geometry3D {\n return geometryFrom(\"ring\", this, RING_KEYS);\n }\n}\n\n// ─── capsule ─────────────────────────────────────────────────────────────────\n\nexport interface Capsule3DProps extends Mesh3DProps, Partial<ParamsOf<CapsuleGeometry3D>> { }\n\nconst CAPSULE_KEYS = [\"radius\", \"height\", \"segments\"] as const;\n\n/** A pill. `height` is the straight mid-section; `segments` is `[radial, cap]`. */\nexport class Capsule3D<P extends Capsule3DProps = Capsule3DProps> extends Mesh3D<P> {\n @property({ default: undefined }) declare radius: number | undefined;\n @property({ default: undefined }) declare height: number | undefined;\n @property({ default: undefined }) declare segments: Segments3D | undefined;\n\n protected override buildGeometry(): Geometry3D {\n return geometryFrom(\"capsule\", this, CAPSULE_KEYS);\n }\n}\n\n// ─── polyhedron ──────────────────────────────────────────────────────────────\n\nexport interface Polyhedron3DProps extends Mesh3DProps, Partial<ParamsOf<PolyhedronGeometry3D>> { }\n\nconst POLYHEDRON_KEYS = [\"shape\", \"radius\", \"segments\"] as const;\n\n/** A platonic solid. `segments` subdivides it toward a sphere. */\nexport class Polyhedron3D<P extends Polyhedron3DProps = Polyhedron3DProps> extends Mesh3D<P> {\n @property({ default: \"icosahedron\" }) declare shape: PolyhedronGeometry3D[\"shape\"];\n @property({ default: undefined }) declare radius: number | undefined;\n @property({ default: undefined }) declare segments: Segments3D | undefined;\n\n protected override buildGeometry(): Geometry3D {\n return geometryFrom(\"polyhedron\", this, POLYHEDRON_KEYS);\n }\n}\n\n// ─── extrude ─────────────────────────────────────────────────────────────────\n\nexport interface Extrude3DProps extends Mesh3DProps, Partial<ParamsOf<ExtrudeGeometry3D>> { }\n\nconst EXTRUDE_KEYS = [\"path\", \"depth\", \"segments\", \"bevel\"] as const;\n\n/**\n * A 2D outline swept into a solid. `path` takes the same value the 2D `Path`\n * node's own `path` prop does — same name, same vocabulary.\n */\nexport class Extrude3D<P extends Extrude3DProps = Extrude3DProps> extends Mesh3D<P> {\n @property({ default: undefined }) declare path: PathData | PathBuilder | undefined;\n @property({ default: undefined }) declare depth: number | undefined;\n @property({ default: undefined }) declare segments: Segments3D | undefined;\n @property({ default: undefined }) declare bevel: number | Bevel3D | undefined;\n\n protected override buildGeometry(): Geometry3D {\n return geometryFrom(\"extrude\", this, EXTRUDE_KEYS);\n }\n}\n\n// ─── lathe ───────────────────────────────────────────────────────────────────\n\nexport interface Lathe3DProps extends Mesh3DProps, Partial<ParamsOf<LatheGeometry3D>> { }\n\nconst LATHE_KEYS = [\"points\", \"segments\", ...SWEEP_KEYS] as const;\n\n/** A profile revolved about Y — vases, bowls, turned shapes. */\nexport class Lathe3D<P extends Lathe3DProps = Lathe3DProps> extends Mesh3D<P> {\n @property({ default: undefined }) declare points: readonly Vector3Input[] | undefined;\n @property({ default: undefined }) declare segments: Segments3D | undefined;\n @property({ default: undefined }) declare startAngle: number | undefined;\n @property({ default: undefined }) declare sweep: number | undefined;\n\n protected override buildGeometry(): Geometry3D {\n return geometryFrom(\"lathe\", this, LATHE_KEYS);\n }\n}\n\n// ─── tube ────────────────────────────────────────────────────────────────────\n\nexport interface Tube3DProps extends Mesh3DProps, Partial<ParamsOf<TubeGeometry3D>> { }\n\nconst TUBE_KEYS = [\"points\", \"radius\", \"segments\", \"closed\"] as const;\n\n/**\n * A circular cross-section swept along a curve. `closed` joins the ends, the\n * same prop the 2D `Line` node carries; `segments` is `[along, around]`.\n */\nexport class Tube3D<P extends Tube3DProps = Tube3DProps> extends Mesh3D<P> {\n @property({ default: undefined }) declare points: readonly Vector3Input[] | undefined;\n @property({ default: undefined }) declare radius: number | undefined;\n @property({ default: undefined }) declare segments: Segments3D | undefined;\n @property({ default: undefined }) declare closed: boolean | undefined;\n\n protected override buildGeometry(): Geometry3D {\n return geometryFrom(\"tube\", this, TUBE_KEYS);\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"grid-geometry3d.d.ts","sourceRoot":"","sources":["../../../src/nodes/three/grid-geometry3d.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAA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AAC,CAAC,EAAE,CAAC,QAAQ,GAAG,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAA;IAChE,OAAO,CAAC,GAAG,CAAC,CAAA;AACd,CAAC;AAED,iFAAiF;AACjF,SAAS,SAAS,CAChB,GAAa,EACb,IAAuC,EACvC,MAAyC,EACzC,CAAS;IAET,GAAG,CAAC,IAAI,CACN,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EACnC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EACnC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CACpC,CAAA;AACH,CAAC;AAED;;;;;;;GAOG;AACH,SAAS,GAAG,CAAC,KAAY;IACvB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,cAAc,CAAC,KAAK,CAAC,CAAA;IACvC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,CAAA;AAC5D,CAAC;AAED,wEAAwE;AACxE,SAAS,YAAY,CAAC,OAAe;IACnC,OAAO,OAAO,GAAG,OAAO;QACtB,CAAC,CAAC,OAAO,GAAG,YAAY;QACxB,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,GAAG,YAAY,GAAG,YAAY,EAAE,GAAG,CAAC,CAAA;AAC1D,CAAC","sourcesContent":["import type { BufferGeometry3D } from \"@/render3d/geometry\";\nimport type { Color } from \"@/attributes/shape/fill/color/parser\";\n\nimport { resolveColor3D } from \"@/attributes/render3d/orbit\"\n\n/** How the ground plane is drawn — the fields the Canvas 3D's schema states. */\nexport interface Grid3DOptions {\n /** Total extent of the grid, in scene units. It spans `±size / 2` on both axes. */\n size: number\n /** How many cells across. One minor line per cell boundary. */\n divisions: number\n /** Every Nth minor line is drawn in {@link majorColor} instead. */\n majorEvery: number\n minorColor: Color\n majorColor: Color\n /** The line through `z = 0`. Red by convention, in every 3D tool there is. */\n axisXColor: Color\n /** The line through `x = 0`. Blue by the same convention. */\n axisZColor: Color\n /** Whether to draw the two axis lines at all. */\n showAxes: boolean\n /**\n * What the far edge fades into — the colour behind the grid.\n *\n * Fading is done by lerping each vertex's *colour* toward this rather than by\n * dropping its alpha, because a vertex colour is RGB and there is nowhere to\n * put a per-vertex alpha in the descriptor (see {@link BufferGeometry3D}). Over\n * an opaque background the two are indistinguishable, and this one costs no\n * blending and no sort order.\n *\n * A {@link Color} rather than a string, because it is read off the node's fill\n * stack now — see `Canvas3DView.fadeColor` — and a resolved paint holds its\n * colour as a normalized tuple.\n */\n fadeTo: Color\n /**\n * How much of the way to the edge the fade has finished, in `[0, 1]`.\n *\n * `0` disables it. Distance is measured radially from the origin rather than\n * per-axis, so the grid dissolves into a disc — which is what stops the four\n * corners from staying visible long after the edges have gone, and is why the\n * horizon in a viewport reads as a horizon rather than as a square table.\n */\n fade: number\n}\n\n/**\n * The ground plane, as one buffer of line segments.\n *\n * **One geometry, not three.** The minor lines, the major lines and the two axes\n * differ only in colour, and colour is a vertex attribute — so drawing them as\n * three ops with three materials would be three draw calls, three cache entries\n * and three chances for the sort order to put an axis under the grid it is\n * supposed to sit in. Baking the colour per vertex makes it one op with\n * `vertexColors: true` on a single unlit material, which is also the only way to\n * get the distance fade at all: it varies *along* each line, and a material's\n * colour is uniform across the primitive it paints.\n *\n * The returned arrays are freshly allocated, so the caller is expected to cache\n * them — see {@link Canvas3DView}, which does, and marks the result\n * `staticData` on the strength of it. Rebuilding this every frame would be\n * ~10k floats of allocation and a full re-upload for a picture that only changes\n * when somebody edits a field.\n */\nexport function gridGeometry3D(options: Grid3DOptions): BufferGeometry3D {\n const { size, divisions, majorEvery, showAxes, fade } = options\n\n const half = size / 2\n const step = size / divisions\n const minor = rgb(options.minorColor)\n const major = rgb(options.majorColor)\n const axisX = rgb(options.axisXColor)\n const axisZ = rgb(options.axisZColor)\n const fadeTo = rgb(options.fadeTo)\n\n const position: number[] = []\n const color: number[] = []\n\n /** One segment, with each end faded by its own distance from the origin. */\n const segment = (\n ax: number,\n az: number,\n bx: number,\n bz: number,\n tint: readonly [number, number, number]\n ): void => {\n // y is a hair above zero for the axes only — see the call sites. Everything\n // here is the same plane otherwise.\n position.push(ax, 0, az, bx, 0, bz)\n pushFaded(color, tint, fadeTo, fadeAt(ax, az, half, fade))\n pushFaded(color, tint, fadeTo, fadeAt(bx, bz, half, fade))\n }\n\n for (let i = 0; i <= divisions; i++) {\n const offset = -half + i * step\n // The index counted from the centre line, so \"every Nth\" is symmetrical\n // about the origin rather than about the grid's far corner — otherwise the\n // major lines drift off-centre on an odd division count.\n const fromCentre = Math.abs(i - divisions / 2)\n const isCentre = Math.abs(offset) < step / 2\n // The centre lines are the axes' own, so they are skipped here when the axes\n // are being drawn and left as ordinary major lines when they are not.\n if (isCentre && showAxes) continue\n\n const tint =\n Number.isInteger(fromCentre) && fromCentre % majorEvery === 0\n ? major\n : minor\n\n segment(offset, -half, offset, half, tint)\n segment(-half, offset, half, offset, tint)\n }\n\n if (showAxes) {\n // The X axis runs along x with z pinned at 0, and vice versa. Same plane as\n // the grid: they replace the two centre lines rather than sitting over them,\n // so there is nothing to z-fight with.\n segment(-half, 0, half, 0, axisX)\n segment(0, -half, 0, half, axisZ)\n }\n\n return {\n type: \"buffer\",\n position: new Float32Array(position),\n color: new Float32Array(color),\n // Nothing here is lit — a grid is emissive by nature — so there are no\n // normals to derive and asking for them would be a wasted pass.\n computeNormals: false,\n // True only because the caller caches: see this module's note.\n staticData: true,\n }\n}\n\n/**\n * How faded a point is, in `[0, 1]`, where 1 is fully the background.\n *\n * Squared falloff rather than linear, because a linear ramp over a plane seen at\n * a shallow angle reads as a hard edge — most of the ramp is compressed into the\n * last few pixels before the horizon. The square spends more of its range near\n * the camera, where the perspective is stretching it back out.\n */\nfunction fadeAt(\n x: number,\n z: number,\n half: number,\n fade: number\n): number {\n if (fade <= 0) return 0\n const distance = Math.hypot(x, z) / half\n const start = 1 - fade\n if (distance <= start) return 0\n const t = Math.min(1, (distance - start) / Math.max(fade, 1e-6))\n return t * t\n}\n\n/** Push one vertex colour, lerped `t` of the way from `tint` toward `fadeTo`. */\nfunction pushFaded(\n out: number[],\n tint: readonly [number, number, number],\n fadeTo: readonly [number, number, number],\n t: number\n): void {\n out.push(\n tint[0] + (fadeTo[0] - tint[0]) * t,\n tint[1] + (fadeTo[1] - tint[1]) * t,\n tint[2] + (fadeTo[2] - tint[2]) * t\n )\n}\n\n/**\n * A colour as the linear RGB triple a vertex attribute holds.\n *\n * `resolveColor3D` gives normalized sRGB; three reads vertex colours as\n * **linear**, so each channel is converted. Skipping this is the classic\n * washed-out-grid bug: an sRGB 0.16 uploaded as linear paints at about 0.4,\n * which is why a grid that should whisper ends up shouting.\n */\nfunction rgb(value: Color): [number, number, number] {\n const [r, g, b] = resolveColor3D(value)\n return [srgbToLinear(r), srgbToLinear(g), srgbToLinear(b)]\n}\n\n/** The sRGB transfer function, inverted. three's own `SRGBToLinear`. */\nfunction srgbToLinear(channel: number): number {\n return channel < 0.04045\n ? channel * 0.0773993808\n : Math.pow(channel * 0.9478672986 + 0.0521327014, 2.4)\n}\n"]}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { Node3DProps } from "./node3d.js";
|
|
2
|
-
import { Node3D } from "./node3d.js";
|
|
3
|
-
export type Group3DProps = Node3DProps;
|
|
4
|
-
/**
|
|
5
|
-
* A transform with children and nothing of its own to draw — the 3D `<Rect>` that
|
|
6
|
-
* only groups.
|
|
7
|
-
*
|
|
8
|
-
* Move, rotate or scale it and everything under it follows, which is what makes a
|
|
9
|
-
* rig animatable as one thing:
|
|
10
|
-
*
|
|
11
|
-
* <Group3D ref={rig} position={[0, 1, 0]}>
|
|
12
|
-
* <Box3D width={2} />
|
|
13
|
-
* <Sphere3D radius={0.8} position={[3, 0, 0]} />
|
|
14
|
-
* </Group3D>
|
|
15
|
-
*
|
|
16
|
-
* rig().to({ data: { rotation: [0, 360, 0] }, duration: 2 });
|
|
17
|
-
*
|
|
18
|
-
* `Node3D` already draws nothing by default, so this adds no behaviour — it
|
|
19
|
-
* exists to be named for what it is at the call site.
|
|
20
|
-
*/
|
|
21
|
-
export declare class Group3D<P extends Group3DProps = Group3DProps> extends Node3D<P> {
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=group3d.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"group3d.d.ts","sourceRoot":"","sources":["../../../src/nodes/three/group3d.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC;AAEvC;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,OAAO,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY,CAAE,SAAQ,MAAM,CAAC,CAAC,CAAC;CAAI"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Node3D } from "./node3d.js";
|
|
2
|
-
/**
|
|
3
|
-
* A transform with children and nothing of its own to draw — the 3D `<Rect>` that
|
|
4
|
-
* only groups.
|
|
5
|
-
*
|
|
6
|
-
* Move, rotate or scale it and everything under it follows, which is what makes a
|
|
7
|
-
* rig animatable as one thing:
|
|
8
|
-
*
|
|
9
|
-
* <Group3D ref={rig} position={[0, 1, 0]}>
|
|
10
|
-
* <Box3D width={2} />
|
|
11
|
-
* <Sphere3D radius={0.8} position={[3, 0, 0]} />
|
|
12
|
-
* </Group3D>
|
|
13
|
-
*
|
|
14
|
-
* rig().to({ data: { rotation: [0, 360, 0] }, duration: 2 });
|
|
15
|
-
*
|
|
16
|
-
* `Node3D` already draws nothing by default, so this adds no behaviour — it
|
|
17
|
-
* exists to be named for what it is at the call site.
|
|
18
|
-
*/
|
|
19
|
-
export class Group3D extends Node3D {
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=group3d.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"group3d.js","sourceRoot":"","sources":["../../../src/nodes/three/group3d.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,OAAO,OAA+C,SAAQ,MAAS;CAAI","sourcesContent":["import type { Node3DProps } from \"./node3d\";\nimport { Node3D } from \"./node3d\";\n\nexport type Group3DProps = Node3DProps;\n\n/**\n * A transform with children and nothing of its own to draw — the 3D `<Rect>` that\n * only groups.\n *\n * Move, rotate or scale it and everything under it follows, which is what makes a\n * rig animatable as one thing:\n *\n * <Group3D ref={rig} position={[0, 1, 0]}>\n * <Box3D width={2} />\n * <Sphere3D radius={0.8} position={[3, 0, 0]} />\n * </Group3D>\n *\n * rig().to({ data: { rotation: [0, 360, 0] }, duration: 2 });\n *\n * `Node3D` already draws nothing by default, so this adds no behaviour — it\n * exists to be named for what it is at the call site.\n */\nexport class Group3D<P extends Group3DProps = Group3DProps> extends Node3D<P> { }\n"]}
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import type { Color } from "../../attributes/shape/fill/color/parser.js";
|
|
2
|
-
import type { AmbientLightData3D, AreaLightData3D, DirectionalLightData3D, HemisphereLightData3D, LightData3D, PointLightData3D, SpotLightData3D } from "../../render3d/light.js";
|
|
3
|
-
import type { RenderContext3D } from "../../render3d/render-context3d.js";
|
|
4
|
-
import { Node3D, type Node3DProps } from "./node3d.js";
|
|
5
|
-
import type { NodeConfig } from "../../nodes/node/node.js";
|
|
6
|
-
/**
|
|
7
|
-
* The light nodes.
|
|
8
|
-
*
|
|
9
|
-
* A light is a thing in the scene with a position, so it is a `Node3D` like any
|
|
10
|
-
* other — it can sit inside a `Group3D` and be carried by it, be held by a ref,
|
|
11
|
-
* and have its `intensity` or `color` tweened:
|
|
12
|
-
*
|
|
13
|
-
* <DirectionalLight3D ref={key} intensity={2.4} position={[4, 6, 3]} shadow />
|
|
14
|
-
* key().to({ data: { intensity: 0.2 }, duration: 1 });
|
|
15
|
-
*
|
|
16
|
-
* `AmbientLight3D` and `HemisphereLight3D` have no position — they light the
|
|
17
|
-
* whole scene evenly — but are still nodes, so they read the same way in a tree.
|
|
18
|
-
*
|
|
19
|
-
* ── Intensity is one scale ────────────────────────────────────────────────────
|
|
20
|
-
* A point or spot light's `intensity` means the same thing a directional light's
|
|
21
|
-
* does: 1 is a normal light. three measures the first two in candela and the
|
|
22
|
-
* third in lux, which is physically correct and is why scenes ended up written
|
|
23
|
-
* with `intensity={2.4}` beside `intensity={40}`. The renderer converts.
|
|
24
|
-
*/
|
|
25
|
-
/** Params of a light descriptor, minus its discriminant. */
|
|
26
|
-
type ParamsOf<L extends {
|
|
27
|
-
type: string;
|
|
28
|
-
}> = Omit<L, "type" | "shadow">;
|
|
29
|
-
/** Shared base: every light draws itself by declaring itself to the context. */
|
|
30
|
-
declare abstract class Light3DNode<P extends Node3DProps> extends Node3D<P> {
|
|
31
|
-
/** The descriptor this node contributes. */
|
|
32
|
-
protected abstract buildLight(): LightData3D;
|
|
33
|
-
/** Loads nothing — and recording `renderSelf` would make every light prop a dependency. */
|
|
34
|
-
declareAssets(): void;
|
|
35
|
-
protected renderSelf(ctx: RenderContext3D): void;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* A light that can cast a shadow map.
|
|
39
|
-
*
|
|
40
|
-
* `shadow` is the {@link Shadow3D} every node carries, and it defaults to `true`
|
|
41
|
-
* there because that is right for a *mesh* — turning shadows on should make
|
|
42
|
-
* meshes cast and receive without tagging each one. A light is the other half of
|
|
43
|
-
* that trade: every light casting is N shadow maps, and a point light's is six
|
|
44
|
-
* faces. So the default is flipped here, in the constructor rather than by
|
|
45
|
-
* redeclaring the prop, because the property registry keeps the base class's
|
|
46
|
-
* metadata for a key and a subclass decorator would be silently ignored.
|
|
47
|
-
*/
|
|
48
|
-
declare abstract class ShadowCastingLight3D<P extends Node3DProps> extends Light3DNode<P> {
|
|
49
|
-
constructor(props?: NodeConfig<any, P>);
|
|
50
|
-
}
|
|
51
|
-
export interface AmbientLight3DProps extends Node3DProps, Partial<ParamsOf<AmbientLightData3D>> {
|
|
52
|
-
}
|
|
53
|
-
/** Flat, directionless fill light. The cheapest way to stop shadows being black. */
|
|
54
|
-
export declare class AmbientLight3D<P extends AmbientLight3DProps = AmbientLight3DProps> extends Light3DNode<P> {
|
|
55
|
-
color: Color | undefined;
|
|
56
|
-
intensity: number | undefined;
|
|
57
|
-
protected buildLight(): LightData3D;
|
|
58
|
-
}
|
|
59
|
-
export interface HemisphereLight3DProps extends Node3DProps, Partial<ParamsOf<HemisphereLightData3D>> {
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Sky-to-ground gradient fill — ambient light with a sense of up.
|
|
63
|
-
*
|
|
64
|
-
* The two colours are `sky` and `ground`. They were `color` and `groundColor`,
|
|
65
|
-
* and the node's `color` was silently dropped: the descriptor and the renderer
|
|
66
|
-
* both read `skyColor`, which nothing ever wrote.
|
|
67
|
-
*/
|
|
68
|
-
export declare class HemisphereLight3D<P extends HemisphereLight3DProps = HemisphereLight3DProps> extends Light3DNode<P> {
|
|
69
|
-
sky: Color | undefined;
|
|
70
|
-
ground: Color | undefined;
|
|
71
|
-
intensity: number | undefined;
|
|
72
|
-
protected buildLight(): LightData3D;
|
|
73
|
-
}
|
|
74
|
-
export interface DirectionalLight3DProps extends Node3DProps, Partial<ParamsOf<DirectionalLightData3D>> {
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Parallel rays from a direction — the sun. Its `position` sets the direction it
|
|
78
|
-
* shines *from*, toward `target` (the origin by default).
|
|
79
|
-
*/
|
|
80
|
-
export declare class DirectionalLight3D<P extends DirectionalLight3DProps = DirectionalLight3DProps> extends ShadowCastingLight3D<P> {
|
|
81
|
-
color: Color | undefined;
|
|
82
|
-
intensity: number | undefined;
|
|
83
|
-
target: DirectionalLightData3D["target"];
|
|
84
|
-
protected buildLight(): LightData3D;
|
|
85
|
-
}
|
|
86
|
-
export interface PointLight3DProps extends Node3DProps, Partial<ParamsOf<PointLightData3D>> {
|
|
87
|
-
}
|
|
88
|
-
/** A bulb: light radiating from a point, falling off with distance. */
|
|
89
|
-
export declare class PointLight3D<P extends PointLight3DProps = PointLight3DProps> extends ShadowCastingLight3D<P> {
|
|
90
|
-
color: Color | undefined;
|
|
91
|
-
intensity: number | undefined;
|
|
92
|
-
distance: number | undefined;
|
|
93
|
-
decay: number | undefined;
|
|
94
|
-
protected buildLight(): LightData3D;
|
|
95
|
-
}
|
|
96
|
-
export interface SpotLight3DProps extends Node3DProps, Partial<ParamsOf<SpotLightData3D>> {
|
|
97
|
-
}
|
|
98
|
-
/** A cone of light. `angle` is the cone half-angle, in **degrees**. */
|
|
99
|
-
export declare class SpotLight3D<P extends SpotLight3DProps = SpotLight3DProps> extends ShadowCastingLight3D<P> {
|
|
100
|
-
color: Color | undefined;
|
|
101
|
-
intensity: number | undefined;
|
|
102
|
-
distance: number | undefined;
|
|
103
|
-
angle: number | undefined;
|
|
104
|
-
penumbra: number | undefined;
|
|
105
|
-
decay: number | undefined;
|
|
106
|
-
target: SpotLightData3D["target"];
|
|
107
|
-
protected buildLight(): LightData3D;
|
|
108
|
-
}
|
|
109
|
-
export interface AreaLight3DProps extends Node3DProps, Partial<ParamsOf<AreaLightData3D>> {
|
|
110
|
-
}
|
|
111
|
-
/** A glowing rectangle — a softbox. Lights `standard`/`physical` materials only. */
|
|
112
|
-
export declare class AreaLight3D<P extends AreaLight3DProps = AreaLight3DProps> extends Light3DNode<P> {
|
|
113
|
-
color: Color | undefined;
|
|
114
|
-
intensity: number | undefined;
|
|
115
|
-
width: number | undefined;
|
|
116
|
-
height: number | undefined;
|
|
117
|
-
protected buildLight(): LightData3D;
|
|
118
|
-
}
|
|
119
|
-
export {};
|
|
120
|
-
//# sourceMappingURL=light-nodes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"light-nodes.d.ts","sourceRoot":"","sources":["../../../src/nodes/three/light-nodes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAClE,OAAO,KAAK,EACR,kBAAkB,EAAE,eAAe,EAAE,sBAAsB,EAC3D,qBAAqB,EAAE,WAAW,EAAE,gBAAgB,EAAE,eAAe,EACxE,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAEnE,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;;;;;;;;;;;;;;;;;GAkBG;AAEH,4DAA4D;AAG5D,KAAK,QAAQ,CAAC,CAAC,SAAS;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,IAAI,IAAI,CAAC,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC,CAAC;AAiBvE,gFAAgF;AAChF,uBAAe,WAAW,CAAC,CAAC,SAAS,WAAW,CAAE,SAAQ,MAAM,CAAC,CAAC,CAAC;IAC/D,4CAA4C;IAC5C,SAAS,CAAC,QAAQ,CAAC,UAAU,IAAI,WAAW;IAE5C,2FAA2F;IAClF,aAAa,IAAI,IAAI;cAEX,UAAU,CAAC,GAAG,EAAE,eAAe,GAAG,IAAI;CAG5D;AAED;;;;;;;;;;GAUG;AACH,uBAAe,oBAAoB,CAAC,CAAC,SAAS,WAAW,CAAE,SAAQ,WAAW,C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