@motionscript/core 0.1.0-alpha.7 → 0.1.0-alpha.9
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 +12 -0
- package/LICENSE +201 -201
- package/NOTICE +49 -48
- package/README.md +91 -91
- package/dist/assets/asset-index.js.map +1 -1
- package/dist/assets/catalog.js.map +1 -1
- package/dist/assets/errors.js.map +1 -1
- package/dist/assets/index.js.map +1 -1
- package/dist/assets/manager.d.ts.map +1 -1
- package/dist/assets/manager.js +7 -5
- package/dist/assets/manager.js.map +1 -1
- package/dist/assets/manifest.js.map +1 -1
- package/dist/assets/record.js.map +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 +24 -13
- package/dist/attributes/audio/request.d.ts.map +1 -1
- package/dist/attributes/audio/request.js +4 -3
- package/dist/attributes/audio/request.js.map +1 -1
- package/dist/attributes/audio/schedule.d.ts +21 -13
- package/dist/attributes/audio/schedule.d.ts.map +1 -1
- package/dist/attributes/audio/schedule.js +42 -28
- package/dist/attributes/audio/schedule.js.map +1 -1
- package/dist/attributes/audio/sound.d.ts +15 -12
- package/dist/attributes/audio/sound.d.ts.map +1 -1
- package/dist/attributes/audio/sound.js +8 -10
- package/dist/attributes/audio/sound.js.map +1 -1
- package/dist/attributes/audio/transition.d.ts +33 -0
- package/dist/attributes/audio/transition.d.ts.map +1 -0
- package/dist/attributes/audio/transition.js +48 -0
- package/dist/attributes/audio/transition.js.map +1 -0
- package/dist/attributes/index.d.ts +4 -3
- package/dist/attributes/index.d.ts.map +1 -1
- package/dist/attributes/index.js +4 -7
- package/dist/attributes/index.js.map +1 -1
- package/dist/attributes/layout/alignment.js.map +1 -1
- package/dist/attributes/layout/index.js.map +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.js.map +1 -1
- package/dist/attributes/layout/space3d.js +1 -1
- package/dist/attributes/layout/space3d.js.map +1 -1
- package/dist/attributes/layout/transform3d.js.map +1 -1
- package/dist/attributes/layout/vector2.js.map +1 -1
- package/dist/attributes/layout/world-transform.js.map +1 -1
- package/dist/attributes/mask/boolean.js.map +1 -1
- package/dist/attributes/mask/mask.js.map +1 -1
- package/dist/attributes/properties/decorator.js.map +1 -1
- package/dist/attributes/properties/inputs.js.map +1 -1
- package/dist/attributes/properties/typed.d.ts +7 -7
- package/dist/attributes/properties/typed.d.ts.map +1 -1
- package/dist/attributes/properties/typed.js +6 -6
- package/dist/attributes/properties/typed.js.map +1 -1
- package/dist/attributes/render3d/orbit.js.map +1 -1
- package/dist/attributes/shape/corners/corner-radius.d.ts +1 -2
- package/dist/attributes/shape/corners/corner-radius.d.ts.map +1 -1
- package/dist/attributes/shape/corners/corner-radius.js +1 -2
- package/dist/attributes/shape/corners/corner-radius.js.map +1 -1
- package/dist/attributes/shape/corners/corner-style.js.map +1 -1
- package/dist/attributes/shape/corners/corners.js.map +1 -1
- package/dist/attributes/shape/corners/index.js.map +1 -1
- package/dist/attributes/shape/effects/backdrop.js.map +1 -1
- package/dist/attributes/shape/effects/chain.d.ts +96 -409
- package/dist/attributes/shape/effects/chain.d.ts.map +1 -1
- package/dist/attributes/shape/effects/chain.js +93 -283
- package/dist/attributes/shape/effects/chain.js.map +1 -1
- package/dist/attributes/shape/effects/effect-data.d.ts +1 -1
- package/dist/attributes/shape/effects/effect-data.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/ascii.d.ts +45 -13
- package/dist/attributes/shape/effects/implementations/ascii.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/ascii.js +29 -23
- package/dist/attributes/shape/effects/implementations/ascii.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/bit-crush.d.ts +32 -7
- package/dist/attributes/shape/effects/implementations/bit-crush.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/bit-crush.js +17 -15
- package/dist/attributes/shape/effects/implementations/bit-crush.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/block-displace.d.ts +46 -10
- package/dist/attributes/shape/effects/implementations/block-displace.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/block-displace.js +21 -19
- package/dist/attributes/shape/effects/implementations/block-displace.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/bloom.d.ts +32 -7
- package/dist/attributes/shape/effects/implementations/bloom.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/bloom.js +17 -11
- package/dist/attributes/shape/effects/implementations/bloom.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/blur.d.ts +16 -3
- package/dist/attributes/shape/effects/implementations/blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/blur.js +13 -5
- package/dist/attributes/shape/effects/implementations/blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/bulge.d.ts +28 -9
- package/dist/attributes/shape/effects/implementations/bulge.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/bulge.js +15 -14
- package/dist/attributes/shape/effects/implementations/bulge.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.d.ts +21 -5
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.js +15 -10
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/color-adjustment.d.ts +96 -26
- package/dist/attributes/shape/effects/implementations/color-adjustment.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/color-adjustment.js +29 -26
- package/dist/attributes/shape/effects/implementations/color-adjustment.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/curves.d.ts +20 -6
- package/dist/attributes/shape/effects/implementations/curves.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/curves.js +26 -23
- package/dist/attributes/shape/effects/implementations/curves.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/directional-blur.d.ts +26 -5
- package/dist/attributes/shape/effects/implementations/directional-blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/directional-blur.js +15 -10
- package/dist/attributes/shape/effects/implementations/directional-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/dither.d.ts +58 -11
- package/dist/attributes/shape/effects/implementations/dither.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/dither.js +26 -20
- package/dist/attributes/shape/effects/implementations/dither.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/drop-shadow.d.ts +46 -14
- package/dist/attributes/shape/effects/implementations/drop-shadow.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/drop-shadow.js +24 -29
- package/dist/attributes/shape/effects/implementations/drop-shadow.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/duotone.d.ts +26 -7
- package/dist/attributes/shape/effects/implementations/duotone.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/duotone.js +17 -16
- package/dist/attributes/shape/effects/implementations/duotone.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/edges.d.ts +29 -7
- package/dist/attributes/shape/effects/implementations/edges.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/edges.js +17 -14
- package/dist/attributes/shape/effects/implementations/edges.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/glass.d.ts +76 -19
- package/dist/attributes/shape/effects/implementations/glass.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/glass.js +28 -22
- package/dist/attributes/shape/effects/implementations/glass.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/glow.d.ts +149 -42
- package/dist/attributes/shape/effects/implementations/glow.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/glow.js +74 -72
- package/dist/attributes/shape/effects/implementations/glow.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/grain.d.ts +43 -11
- package/dist/attributes/shape/effects/implementations/grain.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/grain.js +21 -18
- package/dist/attributes/shape/effects/implementations/grain.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/grayscale.d.ts +17 -3
- package/dist/attributes/shape/effects/implementations/grayscale.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/grayscale.js +13 -5
- package/dist/attributes/shape/effects/implementations/grayscale.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/halftone.d.ts +40 -9
- package/dist/attributes/shape/effects/implementations/halftone.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/halftone.js +20 -16
- package/dist/attributes/shape/effects/implementations/halftone.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/invert.d.ts +23 -5
- package/dist/attributes/shape/effects/implementations/invert.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/invert.js +15 -10
- package/dist/attributes/shape/effects/implementations/invert.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/kaleidoscope.d.ts +57 -18
- package/dist/attributes/shape/effects/implementations/kaleidoscope.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/kaleidoscope.js +25 -22
- package/dist/attributes/shape/effects/implementations/kaleidoscope.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/lut.d.ts +34 -7
- package/dist/attributes/shape/effects/implementations/lut.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/lut.js +20 -16
- package/dist/attributes/shape/effects/implementations/lut.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/magnify.d.ts +27 -9
- package/dist/attributes/shape/effects/implementations/magnify.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/magnify.js +17 -14
- package/dist/attributes/shape/effects/implementations/magnify.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/motion-blur.d.ts +54 -19
- package/dist/attributes/shape/effects/implementations/motion-blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/motion-blur.js +42 -20
- package/dist/attributes/shape/effects/implementations/motion-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/oil-paint.d.ts +17 -3
- package/dist/attributes/shape/effects/implementations/oil-paint.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/oil-paint.js +13 -9
- package/dist/attributes/shape/effects/implementations/oil-paint.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/outline.d.ts +28 -8
- package/dist/attributes/shape/effects/implementations/outline.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/outline.js +18 -17
- package/dist/attributes/shape/effects/implementations/outline.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/pixelate.d.ts +25 -6
- package/dist/attributes/shape/effects/implementations/pixelate.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/pixelate.js +16 -14
- package/dist/attributes/shape/effects/implementations/pixelate.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/posterize.d.ts +14 -3
- package/dist/attributes/shape/effects/implementations/posterize.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/posterize.js +13 -9
- package/dist/attributes/shape/effects/implementations/posterize.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/progressive-blur.d.ts +91 -26
- package/dist/attributes/shape/effects/implementations/progressive-blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/progressive-blur.js +27 -28
- package/dist/attributes/shape/effects/implementations/progressive-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/radial-blur.d.ts +49 -10
- package/dist/attributes/shape/effects/implementations/radial-blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/radial-blur.js +19 -20
- package/dist/attributes/shape/effects/implementations/radial-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/rgb-shift.d.ts +36 -6
- package/dist/attributes/shape/effects/implementations/rgb-shift.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/rgb-shift.js +16 -15
- package/dist/attributes/shape/effects/implementations/rgb-shift.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/scanlines.d.ts +52 -11
- package/dist/attributes/shape/effects/implementations/scanlines.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/scanlines.js +21 -18
- package/dist/attributes/shape/effects/implementations/scanlines.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/scatter.d.ts +23 -9
- package/dist/attributes/shape/effects/implementations/scatter.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/scatter.js +15 -12
- package/dist/attributes/shape/effects/implementations/scatter.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/shader.d.ts +90 -34
- package/dist/attributes/shape/effects/implementations/shader.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/shader.js +42 -26
- package/dist/attributes/shape/effects/implementations/shader.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/sharpen.d.ts +23 -5
- package/dist/attributes/shape/effects/implementations/sharpen.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/sharpen.js +16 -11
- package/dist/attributes/shape/effects/implementations/sharpen.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/streak.d.ts +40 -9
- package/dist/attributes/shape/effects/implementations/streak.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/streak.js +19 -16
- package/dist/attributes/shape/effects/implementations/streak.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/threshold.d.ts +24 -5
- package/dist/attributes/shape/effects/implementations/threshold.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/threshold.js +17 -11
- package/dist/attributes/shape/effects/implementations/threshold.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/twirl.d.ts +35 -8
- package/dist/attributes/shape/effects/implementations/twirl.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/twirl.js +17 -16
- package/dist/attributes/shape/effects/implementations/twirl.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/vignette.d.ts +37 -7
- package/dist/attributes/shape/effects/implementations/vignette.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/vignette.js +19 -18
- package/dist/attributes/shape/effects/implementations/vignette.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/vintage.d.ts +24 -5
- package/dist/attributes/shape/effects/implementations/vintage.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/vintage.js +15 -10
- package/dist/attributes/shape/effects/implementations/vintage.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/wave.d.ts +61 -14
- package/dist/attributes/shape/effects/implementations/wave.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/wave.js +26 -23
- package/dist/attributes/shape/effects/implementations/wave.js.map +1 -1
- package/dist/attributes/shape/effects/index.d.ts +4 -2
- package/dist/attributes/shape/effects/index.d.ts.map +1 -1
- package/dist/attributes/shape/effects/index.js +1 -1
- package/dist/attributes/shape/effects/index.js.map +1 -1
- package/dist/attributes/shape/effects/registry.d.ts +11 -0
- package/dist/attributes/shape/effects/registry.d.ts.map +1 -1
- package/dist/attributes/shape/effects/registry.js +113 -102
- package/dist/attributes/shape/effects/registry.js.map +1 -1
- package/dist/attributes/shape/effects/spec.d.ts +229 -0
- package/dist/attributes/shape/effects/spec.d.ts.map +1 -0
- package/dist/attributes/shape/effects/spec.js +178 -0
- package/dist/attributes/shape/effects/spec.js.map +1 -0
- package/dist/attributes/shape/effects/union.js.map +1 -1
- package/dist/attributes/shape/fill/blend.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/coerce.js.map +1 -1
- package/dist/attributes/shape/fill/color/constants.js.map +1 -1
- package/dist/attributes/shape/fill/color/parser.js.map +1 -1
- package/dist/attributes/shape/fill/gradient-stops.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/canvas3d.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/color.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/conic-gradient.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/dot-grid.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/fractal-noise.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/grid.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/image.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/linear-gradient.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/noise.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/radial-gradient.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/shader.d.ts +27 -26
- package/dist/attributes/shape/fill/implementations/shader.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/shader.js +20 -14
- package/dist/attributes/shape/fill/implementations/shader.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/stripe.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/video.js.map +1 -1
- package/dist/attributes/shape/fill/index.d.ts +1 -1
- package/dist/attributes/shape/fill/index.d.ts.map +1 -1
- package/dist/attributes/shape/fill/index.js.map +1 -1
- package/dist/attributes/shape/fill/lerp.js.map +1 -1
- package/dist/attributes/shape/fill/media-preset.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/fill/union.js.map +1 -1
- package/dist/attributes/shape/filters/chain.d.ts +2 -6
- package/dist/attributes/shape/filters/chain.d.ts.map +1 -1
- package/dist/attributes/shape/filters/chain.js +1 -5
- package/dist/attributes/shape/filters/chain.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/alpha.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/blur.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/color-adjustment.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/implementations/curves.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/echo.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/exposure.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/grayscale.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/posterize-time.js.map +1 -1
- package/dist/attributes/shape/filters/index.js.map +1 -1
- package/dist/attributes/shape/filters/registry.d.ts +1 -1
- package/dist/attributes/shape/filters/registry.d.ts.map +1 -1
- package/dist/attributes/shape/filters/registry.js +3 -3
- package/dist/attributes/shape/filters/registry.js.map +1 -1
- package/dist/attributes/shape/filters/union.d.ts +2 -3
- package/dist/attributes/shape/filters/union.d.ts.map +1 -1
- package/dist/attributes/shape/filters/union.js.map +1 -1
- package/dist/attributes/shape/path/anchors.js.map +1 -1
- package/dist/attributes/shape/path/bezier.js.map +1 -1
- package/dist/attributes/shape/path/index.js.map +1 -1
- package/dist/attributes/shape/path/measure.js.map +1 -1
- package/dist/attributes/shape/path/morph.js.map +1 -1
- package/dist/attributes/shape/path/ops.js.map +1 -1
- package/dist/attributes/shape/path/types.js.map +1 -1
- package/dist/attributes/shape/path/walk.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/shadow/index.js.map +1 -1
- package/dist/attributes/shape/shadow/shadow.js.map +1 -1
- package/dist/attributes/shape/stroke/index.js.map +1 -1
- package/dist/attributes/shape/stroke/stroke.js.map +1 -1
- package/dist/attributes/shared/operators.js.map +1 -1
- package/dist/attributes/text/index.js.map +1 -1
- package/dist/attributes/text/ops.js.map +1 -1
- package/dist/attributes/text/types.js.map +1 -1
- package/dist/browser/chunks/{chunk-LKUYVFU3.js → chunk-4BDLFEOC.js} +1 -1
- package/dist/browser/chunks/chunk-4BDLFEOC.js.map +7 -0
- package/dist/browser/chunks/chunk-7DB6BI27.js +6 -0
- package/dist/browser/chunks/chunk-7DB6BI27.js.map +7 -0
- package/dist/browser/chunks/chunk-IX53IFBD.js +13 -0
- package/dist/browser/chunks/chunk-IX53IFBD.js.map +7 -0
- package/dist/browser/chunks/{chunk-ZRPZPWZU.js → chunk-Q55UPA3E.js} +1 -1
- package/dist/browser/chunks/chunk-Q55UPA3E.js.map +7 -0
- package/dist/browser/component.js +1 -1
- package/dist/browser/experimental.js +1 -1
- package/dist/browser/experimental.js.map +4 -4
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +2 -2
- package/dist/browser/manifest.json +1 -1
- package/dist/browser/sdk.js +1 -1
- package/dist/component.js.map +1 -1
- package/dist/components/builtins/audio/audio.d.ts +14 -5
- package/dist/components/builtins/audio/audio.d.ts.map +1 -1
- package/dist/components/builtins/audio/audio.js +10 -13
- package/dist/components/builtins/audio/audio.js.map +1 -1
- package/dist/components/builtins/geometry/composite.d.ts +3 -3
- package/dist/components/builtins/geometry/composite.js.map +1 -1
- package/dist/components/builtins/geometry/geometry.js.map +1 -1
- package/dist/components/builtins/geometry/shape-outline.js.map +1 -1
- package/dist/components/builtins/layout/layout.js.map +1 -1
- package/dist/components/builtins/media/media.d.ts +7 -7
- package/dist/components/builtins/media/media.d.ts.map +1 -1
- package/dist/components/builtins/media/media.js +4 -10
- package/dist/components/builtins/media/media.js.map +1 -1
- package/dist/components/builtins/providers/providers.js.map +1 -1
- package/dist/components/builtins/text/number-format.js.map +1 -1
- package/dist/components/builtins/text/number-pattern.js.map +1 -1
- package/dist/components/builtins/text/text-defaults.js.map +1 -1
- package/dist/components/builtins/text/text-layout.js.map +1 -1
- package/dist/components/builtins/text/text.d.ts +9 -9
- package/dist/components/builtins/text/text.d.ts.map +1 -1
- package/dist/components/builtins/text/text.js +3 -0
- package/dist/components/builtins/text/text.js.map +1 -1
- package/dist/components/builtins/three/canvas3d.js.map +1 -1
- package/dist/components/builtins/three/grid-geometry3d.js.map +1 -1
- package/dist/components/builtins/three/three.js.map +1 -1
- package/dist/components/factory/api.d.ts +38 -11
- package/dist/components/factory/api.d.ts.map +1 -1
- package/dist/components/factory/api.js.map +1 -1
- package/dist/components/factory/clip-of.js.map +1 -1
- package/dist/components/factory/commands-for.js.map +1 -1
- package/dist/components/factory/component-audio.js.map +1 -1
- package/dist/components/factory/component2d.js.map +1 -1
- package/dist/components/factory/component3d.d.ts.map +1 -1
- package/dist/components/factory/component3d.js +11 -3
- package/dist/components/factory/component3d.js.map +1 -1
- package/dist/components/factory/factory.d.ts +3 -0
- package/dist/components/factory/factory.d.ts.map +1 -1
- package/dist/components/factory/factory.js +39 -5
- package/dist/components/factory/factory.js.map +1 -1
- package/dist/components/factory/timeline.js.map +1 -1
- package/dist/components/factory/type-def.js.map +1 -1
- package/dist/components/factory/types.js.map +1 -1
- package/dist/components/factory/views.js.map +1 -1
- package/dist/components/modules/aim.js.map +1 -1
- package/dist/components/modules/corners.js.map +1 -1
- package/dist/components/modules/flow.js.map +1 -1
- package/dist/components/modules/material.js.map +1 -1
- package/dist/components/modules/paint.js.map +1 -1
- package/dist/components/modules/shapes.js.map +1 -1
- package/dist/components/modules/text-layout.js.map +1 -1
- package/dist/components/modules/text-style.js.map +1 -1
- package/dist/components/modules/three-entries.js.map +1 -1
- package/dist/components/modules/view3d.js.map +1 -1
- package/dist/components/trees/2d/group-bounds.js.map +1 -1
- package/dist/components/trees/2d/node-lifecycle.js.map +1 -1
- package/dist/components/trees/2d/node-motion.js.map +1 -1
- package/dist/components/trees/2d/node-render.d.ts +1 -1
- package/dist/components/trees/2d/node-render.js +1 -1
- package/dist/components/trees/2d/node-render.js.map +1 -1
- package/dist/components/trees/2d/node-space.js.map +1 -1
- package/dist/components/trees/2d/node-transform.js.map +1 -1
- package/dist/components/trees/2d/node2d.d.ts +1 -1
- package/dist/components/trees/2d/node2d.js +1 -1
- package/dist/components/trees/2d/node2d.js.map +1 -1
- package/dist/components/trees/audio/index.js.map +1 -1
- package/dist/components/trees/audio/node-audio.d.ts +16 -9
- package/dist/components/trees/audio/node-audio.d.ts.map +1 -1
- package/dist/components/trees/audio/node-audio.js +15 -11
- package/dist/components/trees/audio/node-audio.js.map +1 -1
- package/dist/components/trees/index.js.map +1 -1
- package/dist/components/trees/node/node-editor-state.js.map +1 -1
- package/dist/components/trees/node/node-reactive.js.map +1 -1
- package/dist/components/trees/node/node-time.js.map +1 -1
- package/dist/components/trees/node/node-walk.js.map +1 -1
- package/dist/components/trees/node/node.js.map +1 -1
- package/dist/components/trees/root/canvas2d-node.js.map +1 -1
- package/dist/components/trees/three/node3d.js.map +1 -1
- package/dist/document/audio.js.map +1 -1
- package/dist/document/builtins.js.map +1 -1
- package/dist/document/command-traits.d.ts +12 -2
- package/dist/document/command-traits.d.ts.map +1 -1
- package/dist/document/command-traits.js +34 -6
- package/dist/document/command-traits.js.map +1 -1
- package/dist/document/deny-globals.js.map +1 -1
- package/dist/document/diff.js.map +1 -1
- package/dist/document/doc-index.js.map +1 -1
- package/dist/document/expression/compile.js.map +1 -1
- package/dist/document/expression/index.js.map +1 -1
- package/dist/document/expression/ops.js.map +1 -1
- package/dist/document/expression/parse.js.map +1 -1
- package/dist/document/expression/refs.js.map +1 -1
- package/dist/document/expression/types.js.map +1 -1
- package/dist/document/expression/walk.js.map +1 -1
- package/dist/document/index.d.ts +8 -0
- package/dist/document/index.d.ts.map +1 -1
- package/dist/document/index.js +4 -0
- package/dist/document/index.js.map +1 -1
- package/dist/document/migrate.d.ts +70 -0
- package/dist/document/migrate.d.ts.map +1 -0
- package/dist/document/migrate.js +202 -0
- package/dist/document/migrate.js.map +1 -0
- package/dist/document/missing-node.d.ts +27 -0
- package/dist/document/missing-node.d.ts.map +1 -0
- package/dist/document/missing-node.js +48 -0
- package/dist/document/missing-node.js.map +1 -0
- package/dist/document/node-decorator.js.map +1 -1
- package/dist/document/node-descriptor.d.ts +4 -0
- package/dist/document/node-descriptor.d.ts.map +1 -1
- package/dist/document/node-descriptor.js.map +1 -1
- package/dist/document/placement.d.ts +2 -1
- package/dist/document/placement.d.ts.map +1 -1
- package/dist/document/placement.js.map +1 -1
- package/dist/document/project.d.ts +2 -0
- package/dist/document/project.d.ts.map +1 -1
- package/dist/document/project.js +1 -0
- package/dist/document/project.js.map +1 -1
- package/dist/document/prop-evolution.d.ts +51 -0
- package/dist/document/prop-evolution.d.ts.map +1 -0
- package/dist/document/prop-evolution.js +83 -0
- package/dist/document/prop-evolution.js.map +1 -0
- package/dist/document/registry.d.ts +16 -0
- package/dist/document/registry.d.ts.map +1 -1
- package/dist/document/registry.js +30 -4
- package/dist/document/registry.js.map +1 -1
- package/dist/document/settled-index.d.ts +2 -0
- package/dist/document/settled-index.d.ts.map +1 -1
- package/dist/document/settled-index.js +5 -5
- package/dist/document/settled-index.js.map +1 -1
- package/dist/document/timeline-patch.d.ts +4 -0
- package/dist/document/timeline-patch.d.ts.map +1 -1
- package/dist/document/timeline-patch.js +28 -3
- package/dist/document/timeline-patch.js.map +1 -1
- package/dist/document/timeline.d.ts +45 -1
- package/dist/document/timeline.d.ts.map +1 -1
- package/dist/document/timeline.js +172 -42
- package/dist/document/timeline.js.map +1 -1
- package/dist/document/types.d.ts +14 -28
- package/dist/document/types.d.ts.map +1 -1
- package/dist/document/types.js.map +1 -1
- package/dist/document/validate.d.ts +17 -5
- package/dist/document/validate.d.ts.map +1 -1
- package/dist/document/validate.js +158 -21
- package/dist/document/validate.js.map +1 -1
- package/dist/document/vocabulary.d.ts +28 -0
- package/dist/document/vocabulary.d.ts.map +1 -0
- package/dist/document/vocabulary.js +42 -0
- package/dist/document/vocabulary.js.map +1 -0
- package/dist/experimental.d.ts +68 -8
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +22 -8
- package/dist/experimental.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/layout/bounds.js.map +1 -1
- package/dist/layout/constraints.js.map +1 -1
- package/dist/layout/flex.js.map +1 -1
- package/dist/layout/freeform.js.map +1 -1
- package/dist/layout/grid.js.map +1 -1
- package/dist/layout/index.js.map +1 -1
- package/dist/layout/item.js.map +1 -1
- package/dist/layout/ops.js.map +1 -1
- package/dist/layout/types.js.map +1 -1
- package/dist/platform/audio-sink.js.map +1 -1
- package/dist/platform/exporter.d.ts +13 -0
- package/dist/platform/exporter.d.ts.map +1 -1
- package/dist/platform/exporter.js.map +1 -1
- package/dist/platform/index.js.map +1 -1
- package/dist/platform/stepped-clock.js.map +1 -1
- package/dist/platform/storage-adapter.js.map +1 -1
- package/dist/platform/ticker.js.map +1 -1
- package/dist/project/config.js.map +1 -1
- package/dist/project/index.js.map +1 -1
- package/dist/project/tree.js.map +1 -1
- package/dist/props/host.js.map +1 -1
- package/dist/props/index.js.map +1 -1
- package/dist/props/observer.js.map +1 -1
- package/dist/props/slot.js.map +1 -1
- package/dist/renamed-scene-names.d.ts +1 -1
- package/dist/renamed-scene-names.d.ts.map +1 -1
- package/dist/renamed-scene-names.js +1 -1
- package/dist/renamed-scene-names.js.map +1 -1
- package/dist/render/canvas-render-context2d.d.ts +9 -0
- package/dist/render/canvas-render-context2d.d.ts.map +1 -1
- package/dist/render/canvas-render-context2d.js +10 -0
- package/dist/render/canvas-render-context2d.js.map +1 -1
- package/dist/render/clip-contains.js +1 -1
- package/dist/render/clip-contains.js.map +1 -1
- package/dist/render/clip.js.map +1 -1
- package/dist/render/descriptors/ellipse.js.map +1 -1
- package/dist/render/descriptors/line.js.map +1 -1
- package/dist/render/descriptors/path-builder.js.map +1 -1
- package/dist/render/descriptors/path.js.map +1 -1
- package/dist/render/descriptors/polygon.js.map +1 -1
- package/dist/render/descriptors/polygram.js.map +1 -1
- package/dist/render/descriptors/rect.js.map +1 -1
- package/dist/render/descriptors/richtext.js.map +1 -1
- package/dist/render/descriptors/shape.js.map +1 -1
- package/dist/render/descriptors/text.d.ts +2 -2
- package/dist/render/descriptors/text.js +2 -2
- package/dist/render/descriptors/text.js.map +1 -1
- package/dist/render/descriptors/transform.js.map +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/measure-context.js.map +1 -1
- package/dist/render/null-render-context.js.map +1 -1
- package/dist/render/render-context2d.d.ts +1 -1
- package/dist/render/render-context2d.js.map +1 -1
- package/dist/render/render-issue.d.ts +39 -0
- package/dist/render/render-issue.d.ts.map +1 -0
- package/dist/render/render-issue.js +29 -0
- package/dist/render/render-issue.js.map +1 -0
- package/dist/render/surface.d.ts +2 -2
- package/dist/render/surface.js.map +1 -1
- package/dist/render/text-defaults.js.map +1 -1
- package/dist/render/text-layout.js.map +1 -1
- package/dist/render3d/bounds3d.js.map +1 -1
- package/dist/render3d/builders.js.map +1 -1
- package/dist/render3d/camera.js.map +1 -1
- package/dist/render3d/fill3d.js.map +1 -1
- package/dist/render3d/geometry.js.map +1 -1
- package/dist/render3d/graphics3d.d.ts.map +1 -1
- package/dist/render3d/graphics3d.js +54 -5
- package/dist/render3d/graphics3d.js.map +1 -1
- package/dist/render3d/index.js.map +1 -1
- package/dist/render3d/inert.js.map +1 -1
- package/dist/render3d/light.js.map +1 -1
- package/dist/render3d/material.js.map +1 -1
- package/dist/render3d/matrix4.js.map +1 -1
- package/dist/render3d/render-context3d.js.map +1 -1
- package/dist/render3d/resources.js.map +1 -1
- package/dist/render3d/rounded-box.js.map +1 -1
- package/dist/render3d/scene-settings.js.map +1 -1
- package/dist/render3d/scene3d.js.map +1 -1
- package/dist/render3d/segments.js.map +1 -1
- package/dist/render3d/texture.js.map +1 -1
- package/dist/render3d/tracking.js.map +1 -1
- package/dist/render3d/transform.js.map +1 -1
- package/dist/render3d/vector3.js.map +1 -1
- package/dist/render3d/walk.js.map +1 -1
- package/dist/runtime/asset-refine.js +2 -1
- package/dist/runtime/asset-refine.js.map +1 -1
- package/dist/runtime/asset-timeline.d.ts +10 -0
- package/dist/runtime/asset-timeline.d.ts.map +1 -1
- package/dist/runtime/asset-timeline.js.map +1 -1
- package/dist/runtime/asset-update.d.ts.map +1 -1
- package/dist/runtime/asset-update.js +7 -0
- package/dist/runtime/asset-update.js.map +1 -1
- package/dist/runtime/audio-index.js.map +1 -1
- package/dist/runtime/builtin-context.js.map +1 -1
- package/dist/runtime/clip-instance.d.ts +3 -1
- package/dist/runtime/clip-instance.d.ts.map +1 -1
- package/dist/runtime/clip-instance.js +4 -0
- package/dist/runtime/clip-instance.js.map +1 -1
- package/dist/runtime/clip-store.d.ts.map +1 -1
- package/dist/runtime/clip-store.js +17 -2
- package/dist/runtime/clip-store.js.map +1 -1
- package/dist/runtime/engine.d.ts +5 -3
- package/dist/runtime/engine.d.ts.map +1 -1
- package/dist/runtime/engine.js +2 -1
- package/dist/runtime/engine.js.map +1 -1
- package/dist/runtime/frame-time.js.map +1 -1
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/node-picking.js.map +1 -1
- package/dist/runtime/node-picking3d.js.map +1 -1
- package/dist/runtime/placement.js.map +1 -1
- package/dist/runtime/playback-controller.d.ts.map +1 -1
- package/dist/runtime/playback-controller.js +14 -4
- package/dist/runtime/playback-controller.js.map +1 -1
- package/dist/runtime/playback.js.map +1 -1
- package/dist/runtime/precompisition.js.map +1 -1
- package/dist/runtime/project-assets.js.map +1 -1
- package/dist/runtime/session.d.ts +7 -3
- package/dist/runtime/session.d.ts.map +1 -1
- package/dist/runtime/session.js +11 -4
- package/dist/runtime/session.js.map +1 -1
- package/dist/runtime/settle.js.map +1 -1
- package/dist/runtime/state-evaluator.js.map +1 -1
- package/dist/runtime/text-geometry.d.ts +1 -1
- package/dist/runtime/text-geometry.js.map +1 -1
- package/dist/sdk/index.d.ts +8 -6
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +10 -3
- package/dist/sdk/index.js.map +1 -1
- package/dist/tween/command-decorator.d.ts +7 -0
- package/dist/tween/command-decorator.d.ts.map +1 -1
- package/dist/tween/command-decorator.js +1 -0
- package/dist/tween/command-decorator.js.map +1 -1
- package/dist/tween/command.js.map +1 -1
- package/dist/tween/ease/constants.js.map +1 -1
- package/dist/tween/ease/curve.js.map +1 -1
- package/dist/tween/ease/describe.d.ts +2 -0
- package/dist/tween/ease/describe.d.ts.map +1 -1
- package/dist/tween/ease/describe.js +4 -0
- package/dist/tween/ease/describe.js.map +1 -1
- package/dist/tween/ease/spec.d.ts +31 -0
- package/dist/tween/ease/spec.d.ts.map +1 -0
- package/dist/tween/ease/spec.js +51 -0
- package/dist/tween/ease/spec.js.map +1 -0
- package/dist/tween/ease/type.js.map +1 -1
- package/dist/tween/index.d.ts +1 -0
- package/dist/tween/index.d.ts.map +1 -1
- package/dist/tween/index.js +1 -0
- package/dist/tween/index.js.map +1 -1
- package/dist/tween/inert.js.map +1 -1
- package/dist/tween/lerp.js.map +1 -1
- package/dist/tween/loop.js.map +1 -1
- package/dist/tween/prepare.js.map +1 -1
- package/dist/tween/stepper.js.map +1 -1
- package/dist/tween/to-command.js.map +1 -1
- package/dist/util/clamp.js.map +1 -1
- package/dist/util/context.js.map +1 -1
- package/dist/util/csv.js.map +1 -1
- package/dist/util/generateList.js.map +1 -1
- package/dist/util/index.js.map +1 -1
- package/dist/util/metrics.js.map +1 -1
- package/dist/util/random.js.map +1 -1
- package/dist/util/reference.js.map +1 -1
- package/dist/util/scheduler.js.map +1 -1
- package/package.json +2 -2
- 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 -250
- 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/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-D4FSTPML.js +0 -14
- package/dist/browser/chunks/chunk-D4FSTPML.js.map +0 -7
- package/dist/browser/chunks/chunk-LKUYVFU3.js.map +0 -7
- package/dist/browser/chunks/chunk-RTNATFWX.js +0 -5
- package/dist/browser/chunks/chunk-RTNATFWX.js.map +0 -7
- package/dist/browser/chunks/chunk-ZRPZPWZU.js.map +0 -7
- package/dist/component/api.d.ts +0 -508
- package/dist/component/api.d.ts.map +0 -1
- package/dist/component/api.js +0 -4
- package/dist/component/api.js.map +0 -1
- package/dist/component/builtins/audio.d.ts +0 -26
- package/dist/component/builtins/audio.d.ts.map +0 -1
- package/dist/component/builtins/audio.js +0 -41
- package/dist/component/builtins/audio.js.map +0 -1
- package/dist/component/builtins/canvas3d.d.ts +0 -98
- package/dist/component/builtins/canvas3d.d.ts.map +0 -1
- package/dist/component/builtins/canvas3d.js +0 -21
- package/dist/component/builtins/canvas3d.js.map +0 -1
- package/dist/component/builtins/composite.d.ts +0 -56
- package/dist/component/builtins/composite.d.ts.map +0 -1
- package/dist/component/builtins/composite.js +0 -25
- package/dist/component/builtins/composite.js.map +0 -1
- package/dist/component/builtins/geometry.d.ts +0 -505
- package/dist/component/builtins/geometry.d.ts.map +0 -1
- package/dist/component/builtins/geometry.js +0 -107
- package/dist/component/builtins/geometry.js.map +0 -1
- package/dist/component/builtins/layout.d.ts +0 -88
- package/dist/component/builtins/layout.d.ts.map +0 -1
- package/dist/component/builtins/layout.js +0 -84
- package/dist/component/builtins/layout.js.map +0 -1
- package/dist/component/builtins/media.d.ts +0 -95
- package/dist/component/builtins/media.d.ts.map +0 -1
- package/dist/component/builtins/media.js +0 -149
- package/dist/component/builtins/media.js.map +0 -1
- package/dist/component/builtins/providers.d.ts +0 -23
- package/dist/component/builtins/providers.d.ts.map +0 -1
- package/dist/component/builtins/providers.js +0 -30
- package/dist/component/builtins/providers.js.map +0 -1
- package/dist/component/builtins/text.d.ts +0 -193
- package/dist/component/builtins/text.d.ts.map +0 -1
- package/dist/component/builtins/text.js +0 -113
- package/dist/component/builtins/text.js.map +0 -1
- package/dist/component/builtins/three.d.ts +0 -1085
- package/dist/component/builtins/three.d.ts.map +0 -1
- package/dist/component/builtins/three.js +0 -265
- package/dist/component/builtins/three.js.map +0 -1
- package/dist/component/clip-of.d.ts +0 -5
- package/dist/component/clip-of.d.ts.map +0 -1
- package/dist/component/clip-of.js +0 -33
- package/dist/component/clip-of.js.map +0 -1
- package/dist/component/commands-for.d.ts +0 -19
- package/dist/component/commands-for.d.ts.map +0 -1
- package/dist/component/commands-for.js +0 -5
- package/dist/component/commands-for.js.map +0 -1
- package/dist/component/component-audio.d.ts +0 -9
- package/dist/component/component-audio.d.ts.map +0 -1
- package/dist/component/component-audio.js +0 -18
- package/dist/component/component-audio.js.map +0 -1
- package/dist/component/component2d.d.ts +0 -9
- package/dist/component/component2d.d.ts.map +0 -1
- package/dist/component/component2d.js +0 -239
- package/dist/component/component2d.js.map +0 -1
- package/dist/component/component3d.d.ts +0 -9
- package/dist/component/component3d.d.ts.map +0 -1
- package/dist/component/component3d.js +0 -99
- package/dist/component/component3d.js.map +0 -1
- package/dist/component/factory.d.ts +0 -63
- package/dist/component/factory.d.ts.map +0 -1
- package/dist/component/factory.js +0 -313
- package/dist/component/factory.js.map +0 -1
- package/dist/component/modules/aim.d.ts +0 -30
- package/dist/component/modules/aim.d.ts.map +0 -1
- package/dist/component/modules/aim.js +0 -39
- package/dist/component/modules/aim.js.map +0 -1
- package/dist/component/modules/corners.d.ts +0 -13
- package/dist/component/modules/corners.d.ts.map +0 -1
- package/dist/component/modules/corners.js +0 -12
- package/dist/component/modules/corners.js.map +0 -1
- package/dist/component/modules/flow.d.ts +0 -26
- package/dist/component/modules/flow.d.ts.map +0 -1
- package/dist/component/modules/flow.js +0 -55
- package/dist/component/modules/flow.js.map +0 -1
- package/dist/component/modules/material.d.ts +0 -40
- package/dist/component/modules/material.d.ts.map +0 -1
- package/dist/component/modules/material.js +0 -75
- package/dist/component/modules/material.js.map +0 -1
- package/dist/component/modules/paint.d.ts +0 -71
- package/dist/component/modules/paint.d.ts.map +0 -1
- package/dist/component/modules/paint.js +0 -106
- package/dist/component/modules/paint.js.map +0 -1
- package/dist/component/modules/shapes.d.ts +0 -31
- package/dist/component/modules/shapes.d.ts.map +0 -1
- package/dist/component/modules/shapes.js +0 -43
- package/dist/component/modules/shapes.js.map +0 -1
- package/dist/component/modules/text-layout.d.ts +0 -26
- package/dist/component/modules/text-layout.d.ts.map +0 -1
- package/dist/component/modules/text-layout.js +0 -57
- package/dist/component/modules/text-layout.js.map +0 -1
- package/dist/component/modules/text-style.d.ts +0 -48
- package/dist/component/modules/text-style.d.ts.map +0 -1
- package/dist/component/modules/text-style.js +0 -63
- package/dist/component/modules/text-style.js.map +0 -1
- package/dist/component/modules/three-entries.d.ts +0 -23
- package/dist/component/modules/three-entries.d.ts.map +0 -1
- package/dist/component/modules/three-entries.js +0 -41
- package/dist/component/modules/three-entries.js.map +0 -1
- package/dist/component/modules/view3d.d.ts +0 -55
- package/dist/component/modules/view3d.d.ts.map +0 -1
- package/dist/component/modules/view3d.js +0 -160
- package/dist/component/modules/view3d.js.map +0 -1
- package/dist/component/timeline.d.ts +0 -22
- package/dist/component/timeline.d.ts.map +0 -1
- package/dist/component/timeline.js +0 -128
- package/dist/component/timeline.js.map +0 -1
- package/dist/component/type-def.d.ts +0 -26
- package/dist/component/type-def.d.ts.map +0 -1
- package/dist/component/type-def.js +0 -16
- package/dist/component/type-def.js.map +0 -1
- package/dist/component/types.d.ts +0 -91
- package/dist/component/types.d.ts.map +0 -1
- package/dist/component/types.js +0 -88
- package/dist/component/types.js.map +0 -1
- package/dist/component/views.d.ts +0 -121
- package/dist/component/views.d.ts.map +0 -1
- package/dist/component/views.js +0 -413
- package/dist/component/views.js.map +0 -1
- package/dist/document/withdraw.d.ts +0 -28
- package/dist/document/withdraw.d.ts.map +0 -1
- package/dist/document/withdraw.js +0 -61
- package/dist/document/withdraw.js.map +0 -1
- 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 -27
- package/dist/jsx/jsx-runtime.d.ts.map +0 -1
- package/dist/jsx/jsx-runtime.js +0 -26
- package/dist/jsx/jsx-runtime.js.map +0 -1
- package/dist/nodes/2d/node-lifecycle.d.ts +0 -46
- package/dist/nodes/2d/node-lifecycle.d.ts.map +0 -1
- package/dist/nodes/2d/node-lifecycle.js +0 -264
- package/dist/nodes/2d/node-lifecycle.js.map +0 -1
- package/dist/nodes/2d/node-motion.d.ts +0 -56
- package/dist/nodes/2d/node-motion.d.ts.map +0 -1
- package/dist/nodes/2d/node-motion.js +0 -86
- 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 +0 -80
- package/dist/nodes/2d/node-render.js.map +0 -1
- package/dist/nodes/2d/node-space.d.ts +0 -63
- package/dist/nodes/2d/node-space.d.ts.map +0 -1
- package/dist/nodes/2d/node-space.js +0 -131
- package/dist/nodes/2d/node-space.js.map +0 -1
- package/dist/nodes/2d/node-transform.d.ts +0 -55
- package/dist/nodes/2d/node-transform.d.ts.map +0 -1
- package/dist/nodes/2d/node-transform.js +0 -73
- package/dist/nodes/2d/node-transform.js.map +0 -1
- package/dist/nodes/2d/node2d.d.ts +0 -1111
- package/dist/nodes/2d/node2d.d.ts.map +0 -1
- package/dist/nodes/2d/node2d.js +0 -1665
- package/dist/nodes/2d/node2d.js.map +0 -1
- package/dist/nodes/2d/paint-node.d.ts +0 -142
- package/dist/nodes/2d/paint-node.d.ts.map +0 -1
- package/dist/nodes/2d/paint-node.js +0 -232
- 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 -2
- package/dist/nodes/audio/index.js.map +0 -1
- package/dist/nodes/audio/node-audio.d.ts +0 -107
- package/dist/nodes/audio/node-audio.d.ts.map +0 -1
- package/dist/nodes/audio/node-audio.js +0 -179
- package/dist/nodes/audio/node-audio.js.map +0 -1
- package/dist/nodes/audio/sound-node.d.ts +0 -41
- package/dist/nodes/audio/sound-node.d.ts.map +0 -1
- package/dist/nodes/audio/sound-node.js +0 -71
- 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/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/group-bounds.d.ts +0 -56
- package/dist/nodes/geometry/group-bounds.d.ts.map +0 -1
- package/dist/nodes/geometry/group-bounds.js +0 -87
- package/dist/nodes/geometry/group-bounds.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 -58
- 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 +0 -93
- package/dist/nodes/geometry/shape-outline.d.ts.map +0 -1
- package/dist/nodes/geometry/shape-outline.js +0 -470
- package/dist/nodes/geometry/shape-outline.js.map +0 -1
- package/dist/nodes/index.d.ts +0 -53
- package/dist/nodes/index.d.ts.map +0 -1
- package/dist/nodes/index.js +0 -35
- package/dist/nodes/index.js.map +0 -1
- package/dist/nodes/layout/camera-node.d.ts +0 -80
- package/dist/nodes/layout/camera-node.d.ts.map +0 -1
- package/dist/nodes/layout/camera-node.js +0 -153
- 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 -350
- 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 +0 -53
- package/dist/nodes/node/node-editor-state.d.ts.map +0 -1
- package/dist/nodes/node/node-editor-state.js +0 -23
- package/dist/nodes/node/node-editor-state.js.map +0 -1
- package/dist/nodes/node/node-reactive.d.ts +0 -89
- package/dist/nodes/node/node-reactive.d.ts.map +0 -1
- package/dist/nodes/node/node-reactive.js +0 -135
- package/dist/nodes/node/node-reactive.js.map +0 -1
- package/dist/nodes/node/node-time.d.ts +0 -39
- package/dist/nodes/node/node-time.d.ts.map +0 -1
- package/dist/nodes/node/node-time.js +0 -14
- package/dist/nodes/node/node-time.js.map +0 -1
- package/dist/nodes/node/node-walk.d.ts +0 -46
- package/dist/nodes/node/node-walk.d.ts.map +0 -1
- package/dist/nodes/node/node-walk.js +0 -74
- package/dist/nodes/node/node-walk.js.map +0 -1
- package/dist/nodes/node/node.d.ts +0 -445
- package/dist/nodes/node/node.d.ts.map +0 -1
- package/dist/nodes/node/node.js +0 -745
- package/dist/nodes/node/node.js.map +0 -1
- package/dist/nodes/node/text-defaults.d.ts +0 -32
- package/dist/nodes/node/text-defaults.d.ts.map +0 -1
- package/dist/nodes/node/text-defaults.js +0 -37
- package/dist/nodes/node/text-defaults.js.map +0 -1
- package/dist/nodes/root/canvas2d-node.d.ts +0 -163
- package/dist/nodes/root/canvas2d-node.d.ts.map +0 -1
- package/dist/nodes/root/canvas2d-node.js +0 -264
- package/dist/nodes/root/canvas2d-node.js.map +0 -1
- package/dist/nodes/root/provider-node.d.ts +0 -47
- package/dist/nodes/root/provider-node.d.ts.map +0 -1
- package/dist/nodes/root/provider-node.js +0 -63
- package/dist/nodes/root/provider-node.js.map +0 -1
- package/dist/nodes/root/theme-provider-node.d.ts +0 -29
- package/dist/nodes/root/theme-provider-node.d.ts.map +0 -1
- package/dist/nodes/root/theme-provider-node.js +0 -43
- package/dist/nodes/root/theme-provider-node.js.map +0 -1
- package/dist/nodes/text/default-text-style-node.d.ts +0 -103
- package/dist/nodes/text/default-text-style-node.d.ts.map +0 -1
- package/dist/nodes/text/default-text-style-node.js +0 -146
- package/dist/nodes/text/default-text-style-node.js.map +0 -1
- package/dist/nodes/text/number-format.d.ts +0 -66
- package/dist/nodes/text/number-format.d.ts.map +0 -1
- package/dist/nodes/text/number-format.js +0 -227
- 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 +0 -51
- package/dist/nodes/text/number-pattern.d.ts.map +0 -1
- package/dist/nodes/text/number-pattern.js +0 -77
- package/dist/nodes/text/number-pattern.js.map +0 -1
- package/dist/nodes/text/richtext-node.d.ts +0 -68
- package/dist/nodes/text/richtext-node.d.ts.map +0 -1
- package/dist/nodes/text/richtext-node.js +0 -78
- package/dist/nodes/text/richtext-node.js.map +0 -1
- package/dist/nodes/text/text-base.d.ts +0 -118
- package/dist/nodes/text/text-base.d.ts.map +0 -1
- package/dist/nodes/text/text-base.js +0 -153
- package/dist/nodes/text/text-base.js.map +0 -1
- package/dist/nodes/text/text-layout.d.ts +0 -87
- package/dist/nodes/text/text-layout.d.ts.map +0 -1
- package/dist/nodes/text/text-layout.js +0 -368
- package/dist/nodes/text/text-layout.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 -109
- package/dist/nodes/three/camera-nodes.d.ts.map +0 -1
- package/dist/nodes/three/camera-nodes.js +0 -112
- package/dist/nodes/three/camera-nodes.js.map +0 -1
- package/dist/nodes/three/canvas3d-node.d.ts +0 -295
- package/dist/nodes/three/canvas3d-node.d.ts.map +0 -1
- package/dist/nodes/three/canvas3d-node.js +0 -486
- package/dist/nodes/three/canvas3d-node.js.map +0 -1
- package/dist/nodes/three/drawable-nodes.d.ts +0 -173
- package/dist/nodes/three/drawable-nodes.d.ts.map +0 -1
- package/dist/nodes/three/drawable-nodes.js +0 -284
- package/dist/nodes/three/drawable-nodes.js.map +0 -1
- package/dist/nodes/three/environment-nodes.d.ts +0 -106
- 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 +0 -62
- package/dist/nodes/three/grid-geometry3d.d.ts.map +0 -1
- package/dist/nodes/three/grid-geometry3d.js +0 -114
- 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 +0 -230
- package/dist/nodes/three/node3d.d.ts.map +0 -1
- package/dist/nodes/three/node3d.js +0 -337
- 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 -81
- package/dist/tween/seekable.d.ts.map +0 -1
- package/dist/tween/seekable.js +0 -137
- package/dist/tween/seekable.js.map +0 -1
|
@@ -1,470 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The silhouette of every shape type, as a {@link VectorPath}.
|
|
3
|
-
*
|
|
4
|
-
* One module, two callers with the same question asked at different scales:
|
|
5
|
-
*
|
|
6
|
-
* - The **shape node classes** (`nodes/shapes`) draw their outline every frame
|
|
7
|
-
* from their laid-out box, so they ask in pixels.
|
|
8
|
-
* - The **path editor** converts a shape into an editable Path node the moment
|
|
9
|
-
* somebody moves one of its points, so it asks in the unit box the Path node
|
|
10
|
-
* stores its geometry in (see `./vector-path`).
|
|
11
|
-
*
|
|
12
|
-
* Sharing the definition is what makes that conversion invisible: a triangle
|
|
13
|
-
* that becomes a path is the *same* triangle, down to the rounding on its
|
|
14
|
-
* corners, rather than a fresh approximation of one.
|
|
15
|
-
*
|
|
16
|
-
* ## Why these shapes exist at all
|
|
17
|
-
*
|
|
18
|
-
* The engine's `Polygon` inscribes its n-gon in the node's box — the vertices
|
|
19
|
-
* sit on the box's inscribed ellipse — which is what makes a `sides` tween
|
|
20
|
-
* smooth: every vertex count is the same circle sampled differently, so a
|
|
21
|
-
* triangle morphing into a square doesn't lurch. The cost is that a triangle
|
|
22
|
-
* *doesn't touch the bottom of its own bounds*, because the two base vertices
|
|
23
|
-
* sit at 30° below the horizontal rather than on the ellipse's lowest point.
|
|
24
|
-
* Figma's polygon does exactly the same thing for exactly the same reason.
|
|
25
|
-
*
|
|
26
|
-
* That is right for a shape you intend to animate and wrong for a shape you
|
|
27
|
-
* intend to *be a triangle*. So the parametric `polygon`/`polygram` keep the
|
|
28
|
-
* inscribed geometry, and the named shapes here are stretched to fill their box
|
|
29
|
-
* — the vertices are computed on the circle exactly as before, then their
|
|
30
|
-
* bounding box is mapped onto the node's. Same silhouette, no gap.
|
|
31
|
-
*
|
|
32
|
-
* Everything here works in **y-down** coordinates, the convention the stored
|
|
33
|
-
* `d` string uses. The node classes flip once on the way to the renderer, whose
|
|
34
|
-
* local space is y-up.
|
|
35
|
-
*/
|
|
36
|
-
import { distance } from "../../attributes/shape/path/bezier.js";
|
|
37
|
-
import { pathOps } from "../../attributes/shape/path/ops.js";
|
|
38
|
-
/**
|
|
39
|
-
* The named shapes' vertex counts and how far they're turned from "a vertex at
|
|
40
|
-
* the top".
|
|
41
|
-
*
|
|
42
|
-
* Pointy-top is the regular polygon's natural orientation and the one every icon
|
|
43
|
-
* set draws a pentagon and a hexagon in. The octagon is the exception, and it is
|
|
44
|
-
* not a matter of taste: an octagon with a vertex at the top reads as a rotated
|
|
45
|
-
* stop sign, because a stop sign is the only octagon most people have ever
|
|
46
|
-
* looked at and it has a flat top. Half a step turns it into that one.
|
|
47
|
-
*/
|
|
48
|
-
const NAMED_POLYGONS = {
|
|
49
|
-
pentagon: { sides: 5, turn: 0 },
|
|
50
|
-
hexagon: { sides: 6, turn: 0 },
|
|
51
|
-
octagon: { sides: 8, turn: Math.PI / 8 },
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* A star's default point depth: the classic five-pointed star, where the inner
|
|
55
|
-
* vertices sit where the extended edges of a pentagram cross.
|
|
56
|
-
*
|
|
57
|
-
* Not the polygram node's 50%, and deliberately so. The parametric polygram
|
|
58
|
-
* opens at a round number because it is a *control* you are expected to move;
|
|
59
|
-
* this node exists for the person who wanted a star and got a geometry lesson,
|
|
60
|
-
* so it opens on the star they were picturing.
|
|
61
|
-
*/
|
|
62
|
-
export const STAR_DEFAULT_RATIO = 0.382;
|
|
63
|
-
/** The default number of points on a Star node. */
|
|
64
|
-
export const STAR_DEFAULT_POINTS = 5;
|
|
65
|
-
/**
|
|
66
|
-
* The shape's outline in **pixel** space: centred on the origin, spanning
|
|
67
|
-
* `width` × `height`, y-down.
|
|
68
|
-
*
|
|
69
|
-
* Returns an empty path for a degenerate box, which draws nothing rather than
|
|
70
|
-
* producing NaN coordinates the renderer would have to cope with.
|
|
71
|
-
*/
|
|
72
|
-
export function shapeOutlinePixels(kind, options) {
|
|
73
|
-
const { width, height } = options;
|
|
74
|
-
if (!(width > 0) || !(height > 0))
|
|
75
|
-
return [];
|
|
76
|
-
switch (kind) {
|
|
77
|
-
case "rect":
|
|
78
|
-
return [rectOutline(width, height, options)];
|
|
79
|
-
case "ellipse":
|
|
80
|
-
return ellipseOutline(width, height, options);
|
|
81
|
-
case "triangle":
|
|
82
|
-
return [
|
|
83
|
-
polygonOutline([
|
|
84
|
-
{ x: 0, y: -height / 2 },
|
|
85
|
-
{ x: width / 2, y: height / 2 },
|
|
86
|
-
{ x: -width / 2, y: height / 2 },
|
|
87
|
-
], options),
|
|
88
|
-
];
|
|
89
|
-
case "rightTriangle":
|
|
90
|
-
return [
|
|
91
|
-
polygonOutline([
|
|
92
|
-
{ x: -width / 2, y: -height / 2 },
|
|
93
|
-
{ x: width / 2, y: height / 2 },
|
|
94
|
-
{ x: -width / 2, y: height / 2 },
|
|
95
|
-
], options),
|
|
96
|
-
];
|
|
97
|
-
case "polygon":
|
|
98
|
-
// The parametric one: inscribed, *not* stretched — see the module note.
|
|
99
|
-
return [
|
|
100
|
-
polygonOutline(regularVertices(sidesOf(options, 5), 0, width / 2, height / 2), options),
|
|
101
|
-
];
|
|
102
|
-
case "polygram":
|
|
103
|
-
return [
|
|
104
|
-
polygonOutline(starVertices(sidesOf(options, 5), clamp01(options.ratio ?? 0.5), width / 2, height / 2), options),
|
|
105
|
-
];
|
|
106
|
-
case "star":
|
|
107
|
-
return [
|
|
108
|
-
polygonOutline(fillBox(starVertices(sidesOf(options, STAR_DEFAULT_POINTS), clamp01(options.ratio ?? STAR_DEFAULT_RATIO), 1, 1), width, height), options),
|
|
109
|
-
];
|
|
110
|
-
default: {
|
|
111
|
-
const named = NAMED_POLYGONS[kind];
|
|
112
|
-
if (!named)
|
|
113
|
-
return [];
|
|
114
|
-
return [
|
|
115
|
-
polygonOutline(fillBox(regularVertices(named.sides, named.turn, 1, 1), width, height), options),
|
|
116
|
-
];
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* The same outline in the **unit box** a Path node stores — pixels divided by
|
|
122
|
-
* the node's own size, so the geometry is a fraction of the box rather than a
|
|
123
|
-
* count of pixels inside it.
|
|
124
|
-
*
|
|
125
|
-
* This is what a shape→path conversion writes. Dividing at the end rather than
|
|
126
|
-
* computing in unit space throughout is what keeps a corner radius circular: a
|
|
127
|
-
* 20px corner on a 400×200 node is 0.05 × 0.1 of the box, and only comes back
|
|
128
|
-
* out round because the renderer multiplies by the same two numbers.
|
|
129
|
-
*/
|
|
130
|
-
export function shapeOutline(kind, options) {
|
|
131
|
-
const { width, height } = options;
|
|
132
|
-
const pixels = shapeOutlinePixels(kind, options);
|
|
133
|
-
if (!(width > 0) || !(height > 0))
|
|
134
|
-
return pixels;
|
|
135
|
-
return pathOps.map(pixels, (p) => ({ x: p.x / width, y: p.y / height }));
|
|
136
|
-
}
|
|
137
|
-
/** Whether this module knows how to draw a type — i.e. whether it can be edited as a path. */
|
|
138
|
-
export function hasShapeOutline(kind) {
|
|
139
|
-
return OUTLINE_KINDS.has(kind);
|
|
140
|
-
}
|
|
141
|
-
const OUTLINE_KINDS = new Set([
|
|
142
|
-
"rect",
|
|
143
|
-
"ellipse",
|
|
144
|
-
"polygon",
|
|
145
|
-
"polygram",
|
|
146
|
-
"triangle",
|
|
147
|
-
"rightTriangle",
|
|
148
|
-
"pentagon",
|
|
149
|
-
"hexagon",
|
|
150
|
-
"octagon",
|
|
151
|
-
"star",
|
|
152
|
-
]);
|
|
153
|
-
// ── Building blocks ────────────────────────────────────────────────────────
|
|
154
|
-
function corner(point) {
|
|
155
|
-
return { point, inHandle: null, outHandle: null };
|
|
156
|
-
}
|
|
157
|
-
function sidesOf(options, fallback) {
|
|
158
|
-
return Math.max(3, Math.round(options.sides ?? fallback));
|
|
159
|
-
}
|
|
160
|
-
function clamp01(value) {
|
|
161
|
-
return Math.max(0, Math.min(1, value));
|
|
162
|
-
}
|
|
163
|
-
/**
|
|
164
|
-
* The vertices of a regular n-gon on the ellipse `rx` × `ry`, starting at the
|
|
165
|
-
* top and stepping clockwise — the same order and the same first vertex
|
|
166
|
-
* The engine's own `polygonVertices` uses, so a converted `polygon` keeps its
|
|
167
|
-
* points in the order the author has been looking at.
|
|
168
|
-
*
|
|
169
|
-
* `turn` rotates the whole figure; see {@link NAMED_POLYGONS}.
|
|
170
|
-
*/
|
|
171
|
-
function regularVertices(sides, turn, rx, ry) {
|
|
172
|
-
const step = (2 * Math.PI) / sides;
|
|
173
|
-
const out = [];
|
|
174
|
-
for (let i = 0; i < sides; i++) {
|
|
175
|
-
// −π/2 is straight up in y-down coordinates.
|
|
176
|
-
const a = -Math.PI / 2 + turn + i * step;
|
|
177
|
-
out.push({ x: rx * Math.cos(a), y: ry * Math.sin(a) });
|
|
178
|
-
}
|
|
179
|
-
return out;
|
|
180
|
-
}
|
|
181
|
-
/** Outer and inner vertices alternating — a star with `points` points. */
|
|
182
|
-
function starVertices(points, ratio, rx, ry) {
|
|
183
|
-
const step = Math.PI / points;
|
|
184
|
-
const out = [];
|
|
185
|
-
for (let i = 0; i < points * 2; i++) {
|
|
186
|
-
const a = -Math.PI / 2 + i * step;
|
|
187
|
-
const k = i % 2 === 0 ? 1 : ratio;
|
|
188
|
-
out.push({ x: rx * k * Math.cos(a), y: ry * k * Math.sin(a) });
|
|
189
|
-
}
|
|
190
|
-
return out;
|
|
191
|
-
}
|
|
192
|
-
/**
|
|
193
|
-
* Stretches a vertex ring so its bounding box *is* the node's box.
|
|
194
|
-
*
|
|
195
|
-
* The one line that separates a shape from its parametric sibling. Everything
|
|
196
|
-
* before it is the inscribed figure; this maps that figure's own extent onto the
|
|
197
|
-
* box, so the flat base of a triangle lands on the bottom edge and a pentagon's
|
|
198
|
-
* two lower vertices land on the left and right ones.
|
|
199
|
-
*
|
|
200
|
-
* A ring with no extent on an axis (which no shape here produces, but a
|
|
201
|
-
* `sides: 3` star with ratio 0 comes close) keeps that axis rather than dividing
|
|
202
|
-
* by zero.
|
|
203
|
-
*/
|
|
204
|
-
function fillBox(points, width, height) {
|
|
205
|
-
if (points.length === 0)
|
|
206
|
-
return points;
|
|
207
|
-
let minX = Infinity;
|
|
208
|
-
let minY = Infinity;
|
|
209
|
-
let maxX = -Infinity;
|
|
210
|
-
let maxY = -Infinity;
|
|
211
|
-
for (const p of points) {
|
|
212
|
-
if (p.x < minX)
|
|
213
|
-
minX = p.x;
|
|
214
|
-
if (p.x > maxX)
|
|
215
|
-
maxX = p.x;
|
|
216
|
-
if (p.y < minY)
|
|
217
|
-
minY = p.y;
|
|
218
|
-
if (p.y > maxY)
|
|
219
|
-
maxY = p.y;
|
|
220
|
-
}
|
|
221
|
-
const spanX = maxX - minX;
|
|
222
|
-
const spanY = maxY - minY;
|
|
223
|
-
const kx = spanX > 1e-9 ? width / spanX : 1;
|
|
224
|
-
const ky = spanY > 1e-9 ? height / spanY : 1;
|
|
225
|
-
const cx = (minX + maxX) / 2;
|
|
226
|
-
const cy = (minY + maxY) / 2;
|
|
227
|
-
return points.map((p) => ({ x: (p.x - cx) * kx, y: (p.y - cy) * ky }));
|
|
228
|
-
}
|
|
229
|
-
// ── Corners ────────────────────────────────────────────────────────────────
|
|
230
|
-
/**
|
|
231
|
-
* The cubic control-point offset that approximates a circular arc, as a
|
|
232
|
-
* fraction of the distance from the tangent point to the corner.
|
|
233
|
-
*
|
|
234
|
-
* `k = (4/3)·tan(φ/4) / tan(φ/2)`, where φ is the arc's central angle. The
|
|
235
|
-
* familiar 0.5523 is this at φ = 90°; a shallow corner needs less and a sharp
|
|
236
|
-
* one needs more, which is why the constant can't simply be hard-coded — a
|
|
237
|
-
* five-pointed star's inner vertices turn through nearly 180°, where 0.5523
|
|
238
|
-
* would visibly flatten the curve.
|
|
239
|
-
*/
|
|
240
|
-
function arcHandleRatio(sweep) {
|
|
241
|
-
const half = sweep / 2;
|
|
242
|
-
if (Math.abs(half) < 1e-6)
|
|
243
|
-
return 0;
|
|
244
|
-
return ((4 / 3) * Math.tan(sweep / 4)) / Math.tan(half);
|
|
245
|
-
}
|
|
246
|
-
/**
|
|
247
|
-
* A closed ring of vertices as a subpath, with each corner rounded or chamfered
|
|
248
|
-
* by `cornerRadius`.
|
|
249
|
-
*
|
|
250
|
-
* The radius is clamped per corner to half of each adjacent edge, so a large
|
|
251
|
-
* radius on a small shape rounds it as far as it can go instead of turning the
|
|
252
|
-
* outline inside out. A radius of zero (or a `cornerStyle` of neither kind)
|
|
253
|
-
* returns the plain polygon, which is the common case and costs nothing.
|
|
254
|
-
*/
|
|
255
|
-
function polygonOutline(points, options) {
|
|
256
|
-
const radius = uniformRadius(options.cornerRadius);
|
|
257
|
-
if (points.length < 3 || radius <= 0) {
|
|
258
|
-
return { anchors: points.map(corner), closed: true };
|
|
259
|
-
}
|
|
260
|
-
const style = options.cornerStyle ?? "rounded";
|
|
261
|
-
const anchors = [];
|
|
262
|
-
for (let i = 0; i < points.length; i++) {
|
|
263
|
-
const c = points[i];
|
|
264
|
-
const prev = points[(i - 1 + points.length) % points.length];
|
|
265
|
-
const next = points[(i + 1) % points.length];
|
|
266
|
-
const toPrev = direction(c, prev);
|
|
267
|
-
const toNext = direction(c, next);
|
|
268
|
-
if (!toPrev || !toNext) {
|
|
269
|
-
anchors.push(corner(c));
|
|
270
|
-
continue;
|
|
271
|
-
}
|
|
272
|
-
// The interior angle at this vertex, and the arc that replaces it.
|
|
273
|
-
const cosine = Math.max(-1, Math.min(1, toPrev.x * toNext.x + toPrev.y * toNext.y));
|
|
274
|
-
const interior = Math.acos(cosine);
|
|
275
|
-
// A vertex where the two edges double back on themselves has no corner to
|
|
276
|
-
// round; leaving it sharp is the only honest answer.
|
|
277
|
-
if (interior < 1e-6 || Math.PI - interior < 1e-6) {
|
|
278
|
-
anchors.push(corner(c));
|
|
279
|
-
continue;
|
|
280
|
-
}
|
|
281
|
-
// How far back along each edge the arc starts. Never more than half the
|
|
282
|
-
// edge, so two adjacent corners can't overlap.
|
|
283
|
-
const tangent = Math.min(radius / Math.tan(interior / 2), distance(c, prev) / 2, distance(c, next) / 2);
|
|
284
|
-
const a = { x: c.x + toPrev.x * tangent, y: c.y + toPrev.y * tangent };
|
|
285
|
-
const b = { x: c.x + toNext.x * tangent, y: c.y + toNext.y * tangent };
|
|
286
|
-
if (style === "angled") {
|
|
287
|
-
// A chamfer: the same two tangent points, joined by a straight line.
|
|
288
|
-
anchors.push(corner(a), corner(b));
|
|
289
|
-
continue;
|
|
290
|
-
}
|
|
291
|
-
const k = arcHandleRatio(Math.PI - interior);
|
|
292
|
-
anchors.push({ point: a, inHandle: null, outHandle: { x: a.x + (c.x - a.x) * k, y: a.y + (c.y - a.y) * k } }, { point: b, inHandle: { x: b.x + (c.x - b.x) * k, y: b.y + (c.y - b.y) * k }, outHandle: null });
|
|
293
|
-
}
|
|
294
|
-
return { anchors, closed: true };
|
|
295
|
-
}
|
|
296
|
-
/** The unit vector from `from` towards `to`, or null when they coincide. */
|
|
297
|
-
function direction(from, to) {
|
|
298
|
-
const dx = to.x - from.x;
|
|
299
|
-
const dy = to.y - from.y;
|
|
300
|
-
const len = Math.hypot(dx, dy);
|
|
301
|
-
if (len < 1e-9)
|
|
302
|
-
return null;
|
|
303
|
-
return { x: dx / len, y: dy / len };
|
|
304
|
-
}
|
|
305
|
-
/**
|
|
306
|
-
* A single radius from whichever shape the value arrived in.
|
|
307
|
-
*
|
|
308
|
-
* A per-corner value only means anything on a rect, which builds its outline
|
|
309
|
-
* corner by corner below; every other shape takes the smallest of the four, so
|
|
310
|
-
* converting a rect with mixed corners into a polygon can't silently invent a
|
|
311
|
-
* radius bigger than any the author set.
|
|
312
|
-
*/
|
|
313
|
-
function uniformRadius(value) {
|
|
314
|
-
if (value === undefined)
|
|
315
|
-
return 0;
|
|
316
|
-
if (typeof value === "number")
|
|
317
|
-
return Math.max(0, value);
|
|
318
|
-
return Math.max(0, Math.min(value.topLeft, value.topRight, value.bottomLeft, value.bottomRight));
|
|
319
|
-
}
|
|
320
|
-
// ── Rect ───────────────────────────────────────────────────────────────────
|
|
321
|
-
/**
|
|
322
|
-
* A rectangle, with each corner carrying its own radius.
|
|
323
|
-
*
|
|
324
|
-
* Written out rather than routed through {@link polygonOutline} because a rect
|
|
325
|
-
* is the one shape whose corners are *individually* set, and because its right
|
|
326
|
-
* angles make the arc exact: the tangent length equals the radius and the handle
|
|
327
|
-
* ratio is the familiar 0.5523, with no trigonometry involved.
|
|
328
|
-
*/
|
|
329
|
-
function rectOutline(width, height, options) {
|
|
330
|
-
const radii = perCornerRadii(options.cornerRadius, width, height);
|
|
331
|
-
const style = options.cornerStyle ?? "rounded";
|
|
332
|
-
const x = width / 2;
|
|
333
|
-
const y = height / 2;
|
|
334
|
-
const k = arcHandleRatio(Math.PI / 2);
|
|
335
|
-
const anchors = [];
|
|
336
|
-
/**
|
|
337
|
-
* One corner, walking clockwise from the top-left: `at` is the sharp corner,
|
|
338
|
-
* `from`/`to` the directions the outline arrives and leaves along.
|
|
339
|
-
*/
|
|
340
|
-
const push = (at, incoming, outgoing, r) => {
|
|
341
|
-
if (r <= 0) {
|
|
342
|
-
anchors.push(corner(at));
|
|
343
|
-
return;
|
|
344
|
-
}
|
|
345
|
-
const a = { x: at.x - incoming.x * r, y: at.y - incoming.y * r };
|
|
346
|
-
const b = { x: at.x + outgoing.x * r, y: at.y + outgoing.y * r };
|
|
347
|
-
if (style === "angled") {
|
|
348
|
-
anchors.push(corner(a), corner(b));
|
|
349
|
-
return;
|
|
350
|
-
}
|
|
351
|
-
anchors.push({ point: a, inHandle: null, outHandle: { x: a.x + (at.x - a.x) * k, y: a.y + (at.y - a.y) * k } }, { point: b, inHandle: { x: b.x + (at.x - b.x) * k, y: b.y + (at.y - b.y) * k }, outHandle: null });
|
|
352
|
-
};
|
|
353
|
-
const right = { x: 1, y: 0 };
|
|
354
|
-
const down = { x: 0, y: 1 };
|
|
355
|
-
const left = { x: -1, y: 0 };
|
|
356
|
-
const up = { x: 0, y: -1 };
|
|
357
|
-
// Clockwise, and the *incoming* direction is the one the walk is travelling
|
|
358
|
-
// when it reaches the corner — not the edge it is about to leave along. The
|
|
359
|
-
// loop closes back into the top-left from the bottom-left, so it arrives there
|
|
360
|
-
// heading **up**; `down` put that corner's first anchor a radius *above* the
|
|
361
|
-
// rectangle and drew the arc back into the box, which is the reversed top-left
|
|
362
|
-
// corner you get on any rounded rect converted to a path.
|
|
363
|
-
push({ x: -x, y: -y }, up, right, radii.topLeft);
|
|
364
|
-
push({ x, y: -y }, right, down, radii.topRight);
|
|
365
|
-
push({ x, y }, down, left, radii.bottomRight);
|
|
366
|
-
push({ x: -x, y }, left, up, radii.bottomLeft);
|
|
367
|
-
return { anchors, closed: true };
|
|
368
|
-
}
|
|
369
|
-
/** The four radii, clamped so opposite corners on an edge can't overlap. */
|
|
370
|
-
function perCornerRadii(value, width, height) {
|
|
371
|
-
const raw = value === undefined
|
|
372
|
-
? { topLeft: 0, topRight: 0, bottomLeft: 0, bottomRight: 0 }
|
|
373
|
-
: typeof value === "number"
|
|
374
|
-
? {
|
|
375
|
-
topLeft: value,
|
|
376
|
-
topRight: value,
|
|
377
|
-
bottomLeft: value,
|
|
378
|
-
bottomRight: value,
|
|
379
|
-
}
|
|
380
|
-
: value;
|
|
381
|
-
const cap = Math.min(width, height) / 2;
|
|
382
|
-
return {
|
|
383
|
-
topLeft: Math.max(0, Math.min(raw.topLeft, cap)),
|
|
384
|
-
topRight: Math.max(0, Math.min(raw.topRight, cap)),
|
|
385
|
-
bottomLeft: Math.max(0, Math.min(raw.bottomLeft, cap)),
|
|
386
|
-
bottomRight: Math.max(0, Math.min(raw.bottomRight, cap)),
|
|
387
|
-
};
|
|
388
|
-
}
|
|
389
|
-
// ── Ellipse ────────────────────────────────────────────────────────────────
|
|
390
|
-
/**
|
|
391
|
-
* The ellipse family: a full oval, an arc (`sweep` under 360°), a ring
|
|
392
|
-
* (`ratio` above 0), and the wedge the two make together.
|
|
393
|
-
*
|
|
394
|
-
* The arc is emitted as cubics rather than as an SVG `A` command, and that is
|
|
395
|
-
* the whole reason this is worth writing out. A Path node's geometry is stored
|
|
396
|
-
* as a fraction of its box and multiplied back by the box's *two* dimensions —
|
|
397
|
-
* so an arc, whose parameters describe a circle rather than a set of points,
|
|
398
|
-
* would come out of a non-uniform resize as a different curve rather than a
|
|
399
|
-
* stretched one. Cubics survive that transform exactly.
|
|
400
|
-
*/
|
|
401
|
-
function ellipseOutline(width, height, options) {
|
|
402
|
-
const rx = width / 2;
|
|
403
|
-
const ry = height / 2;
|
|
404
|
-
const inner = clamp01(options.ratio ?? 0);
|
|
405
|
-
const sweep = Math.max(0, Math.min(360, options.sweep ?? 360));
|
|
406
|
-
if (sweep <= 0)
|
|
407
|
-
return [];
|
|
408
|
-
// A full oval with no hole is the common case: one closed ring.
|
|
409
|
-
const full = sweep >= 360;
|
|
410
|
-
// Degrees clockwise from twelve o'clock, matching the appearance schema's
|
|
411
|
-
// `startAngle` — which is measured the way a clock face is, not the way
|
|
412
|
-
// `Math.atan2` is.
|
|
413
|
-
const from = ((options.startAngle ?? 0) - 90) * (Math.PI / 180);
|
|
414
|
-
const to = from + sweep * (Math.PI / 180);
|
|
415
|
-
if (full && inner <= 0) {
|
|
416
|
-
return [{ anchors: arcAnchors(rx, ry, from, to, true), closed: true }];
|
|
417
|
-
}
|
|
418
|
-
if (full) {
|
|
419
|
-
// A ring: two closed rings, the inner one wound the other way so the
|
|
420
|
-
// even-odd fill leaves a hole.
|
|
421
|
-
return [
|
|
422
|
-
{ anchors: arcAnchors(rx, ry, from, to, true), closed: true },
|
|
423
|
-
{ anchors: arcAnchors(rx * inner, ry * inner, to, from, true), closed: true },
|
|
424
|
-
];
|
|
425
|
-
}
|
|
426
|
-
// An arc, closed back on itself: out along the outer edge, back along the
|
|
427
|
-
// inner one (or through the centre, when there is no hole).
|
|
428
|
-
const outer = arcAnchors(rx, ry, from, to, false);
|
|
429
|
-
const back = inner > 0
|
|
430
|
-
? arcAnchors(rx * inner, ry * inner, to, from, false)
|
|
431
|
-
: [corner({ x: 0, y: 0 })];
|
|
432
|
-
return [{ anchors: [...outer, ...back], closed: true }];
|
|
433
|
-
}
|
|
434
|
-
/**
|
|
435
|
-
* An elliptical arc as a run of anchors, split into segments of at most 90° —
|
|
436
|
-
* the span a single cubic approximates to within a fraction of a pixel.
|
|
437
|
-
*
|
|
438
|
-
* `whole` drops the duplicated final anchor, for the case where the arc closes
|
|
439
|
-
* back on its own start.
|
|
440
|
-
*/
|
|
441
|
-
function arcAnchors(rx, ry, from, to, whole) {
|
|
442
|
-
const total = to - from;
|
|
443
|
-
const steps = Math.max(1, Math.ceil(Math.abs(total) / (Math.PI / 2)));
|
|
444
|
-
const step = total / steps;
|
|
445
|
-
// The classic elliptical-arc approximation: each control point sits α along
|
|
446
|
-
// the curve's own tangent, with α = (4/3)·tan(Δ/4) for a segment spanning Δ.
|
|
447
|
-
// Signed with the step, so a clockwise arc bulges the right way.
|
|
448
|
-
const alpha = (4 / 3) * Math.tan(step / 4);
|
|
449
|
-
const anchors = [];
|
|
450
|
-
for (let i = 0; i <= steps; i++) {
|
|
451
|
-
const a = from + step * i;
|
|
452
|
-
const point = { x: rx * Math.cos(a), y: ry * Math.sin(a) };
|
|
453
|
-
// d/da of the point — the arc's tangent at this angle.
|
|
454
|
-
const tangent = { x: -rx * Math.sin(a), y: ry * Math.cos(a) };
|
|
455
|
-
const offset = { x: tangent.x * alpha, y: tangent.y * alpha };
|
|
456
|
-
anchors.push({
|
|
457
|
-
point,
|
|
458
|
-
inHandle: i === 0 ? null : { x: point.x - offset.x, y: point.y - offset.y },
|
|
459
|
-
outHandle: i === steps ? null : { x: point.x + offset.x, y: point.y + offset.y },
|
|
460
|
-
});
|
|
461
|
-
}
|
|
462
|
-
if (whole && anchors.length > 1) {
|
|
463
|
-
// The arc came back to where it started; fold the duplicate into the first
|
|
464
|
-
// anchor so the ring has one anchor per corner rather than two stacked.
|
|
465
|
-
const last = anchors.pop();
|
|
466
|
-
anchors[0].inHandle = last.inHandle;
|
|
467
|
-
}
|
|
468
|
-
return anchors;
|
|
469
|
-
}
|
|
470
|
-
//# sourceMappingURL=shape-outline.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shape-outline.js","sourceRoot":"","sources":["../../../src/nodes/geometry/shape-outline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAKH,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAA;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AAoCrD;;;;;;;;;GASG;AACH,MAAM,cAAc,GAAoD;IACtE,QAAQ,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE;IAC/B,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE;IAC9B,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,GAAG,CAAC,EAAE;CACzC,CAAA;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,CAAA;AAEvC,mDAAmD;AACnD,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAA;AAEpC;;;;;;GAMG;AACH,MAAM,UAAU,kBAAkB,CAChC,IAAsB,EACtB,OAA4B;IAE5B,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAA;IACjC,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,C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AC,EAAE,CAAC,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAA;QAC7D,MAAM,MAAM,GAAG,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC,GAAG,KAAK,EAAE,CAAA;QAC7D,OAAO,CAAC,IAAI,CAAC;YACX,KAAK;YACL,QAAQ,EACN,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,EAAE;YACnE,SAAS,EACP,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,EAAE;SACxE,CAAC,CAAA;IACJ,CAAC;IAED,IAAI,KAAK,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAChC,2EAA2E;QAC3E,wEAAwE;QACxE,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAG,CAAA;QAC3B,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAA;IACrC,CAAC;IACD,OAAO,OAAO,CAAA;AAChB,CAAC","sourcesContent":["/**\r\n * The silhouette of every shape type, as a {@link VectorPath}.\r\n *\r\n * One module, two callers with the same question asked at different scales:\r\n *\r\n * - The **shape node classes** (`nodes/shapes`) draw their outline every frame\r\n * from their laid-out box, so they ask in pixels.\r\n * - The **path editor** converts a shape into an editable Path node the moment\r\n * somebody moves one of its points, so it asks in the unit box the Path node\r\n * stores its geometry in (see `./vector-path`).\r\n *\r\n * Sharing the definition is what makes that conversion invisible: a triangle\r\n * that becomes a path is the *same* triangle, down to the rounding on its\r\n * corners, rather than a fresh approximation of one.\r\n *\r\n * ## Why these shapes exist at all\r\n *\r\n * The engine's `Polygon` inscribes its n-gon in the node's box — the vertices\r\n * sit on the box's inscribed ellipse — which is what makes a `sides` tween\r\n * smooth: every vertex count is the same circle sampled differently, so a\r\n * triangle morphing into a square doesn't lurch. The cost is that a triangle\r\n * *doesn't touch the bottom of its own bounds*, because the two base vertices\r\n * sit at 30° below the horizontal rather than on the ellipse's lowest point.\r\n * Figma's polygon does exactly the same thing for exactly the same reason.\r\n *\r\n * That is right for a shape you intend to animate and wrong for a shape you\r\n * intend to *be a triangle*. So the parametric `polygon`/`polygram` keep the\r\n * inscribed geometry, and the named shapes here are stretched to fill their box\r\n * — the vertices are computed on the circle exactly as before, then their\r\n * bounding box is mapped onto the node's. Same silhouette, no gap.\r\n *\r\n * Everything here works in **y-down** coordinates, the convention the stored\r\n * `d` string uses. The node classes flip once on the way to the renderer, whose\r\n * local space is y-up.\r\n */\r\n\r\nimport type { CornerRadiusResolved } from \"@/attributes/shape/corners/corner-radius\";\r\nimport type { CornerStyle } from \"@/attributes/shape/corners/corner-style\";\r\nimport type { Vector2 } from \"@/attributes/layout/vector2\";\r\nimport { distance } from \"@/attributes/shape/path/bezier\"\r\nimport { pathOps } from \"@/attributes/shape/path/ops\"\r\nimport type { PathAnchor, PathSubpath, VectorPath } from \"@/attributes/shape/path/types\";\r\n\r\n/** The shape types this module can draw an outline for. */\r\nexport type ShapeOutlineKind =\r\n | \"rect\"\r\n | \"ellipse\"\r\n | \"polygon\"\r\n | \"polygram\"\r\n | \"triangle\"\r\n | \"rightTriangle\"\r\n | \"pentagon\"\r\n | \"hexagon\"\r\n | \"octagon\"\r\n | \"star\"\r\n\r\n/** Everything an outline can depend on. Unstated fields take the schema's default. */\r\nexport interface ShapeOutlineOptions {\r\n /** The node's box, in pixels. */\r\n width: number\r\n height: number\r\n /** Vertex/corner rounding, in pixels. Ignored by the shapes that have no corners. */\r\n cornerRadius?: number | CornerRadiusResolved\r\n cornerStyle?: CornerStyle\r\n /** Vertex count — `polygon`/`polygram`'s `sides`, `star`'s number of points. */\r\n sides?: number\r\n /**\r\n * The inner radius as a fraction of the outer one: a polygram's or star's\r\n * point depth, and an ellipse's donut hole.\r\n */\r\n ratio?: number\r\n /** The ellipse's arc, in degrees. */\r\n startAngle?: number\r\n sweep?: number\r\n}\r\n\r\n/**\r\n * The named shapes' vertex counts and how far they're turned from \"a vertex at\r\n * the top\".\r\n *\r\n * Pointy-top is the regular polygon's natural orientation and the one every icon\r\n * set draws a pentagon and a hexagon in. The octagon is the exception, and it is\r\n * not a matter of taste: an octagon with a vertex at the top reads as a rotated\r\n * stop sign, because a stop sign is the only octagon most people have ever\r\n * looked at and it has a flat top. Half a step turns it into that one.\r\n */\r\nconst NAMED_POLYGONS: Record<string, { sides: number; turn: number }> = {\r\n pentagon: { sides: 5, turn: 0 },\r\n hexagon: { sides: 6, turn: 0 },\r\n octagon: { sides: 8, turn: Math.PI / 8 },\r\n}\r\n\r\n/**\r\n * A star's default point depth: the classic five-pointed star, where the inner\r\n * vertices sit where the extended edges of a pentagram cross.\r\n *\r\n * Not the polygram node's 50%, and deliberately so. The parametric polygram\r\n * opens at a round number because it is a *control* you are expected to move;\r\n * this node exists for the person who wanted a star and got a geometry lesson,\r\n * so it opens on the star they were picturing.\r\n */\r\nexport const STAR_DEFAULT_RATIO = 0.382\r\n\r\n/** The default number of points on a Star node. */\r\nexport const STAR_DEFAULT_POINTS = 5\r\n\r\n/**\r\n * The shape's outline in **pixel** space: centred on the origin, spanning\r\n * `width` × `height`, y-down.\r\n *\r\n * Returns an empty path for a degenerate box, which draws nothing rather than\r\n * producing NaN coordinates the renderer would have to cope with.\r\n */\r\nexport function shapeOutlinePixels(\r\n kind: ShapeOutlineKind,\r\n options: ShapeOutlineOptions\r\n): VectorPath {\r\n const { width, height } = options\r\n if (!(width > 0) || !(height > 0)) return []\r\n\r\n switch (kind) {\r\n case \"rect\":\r\n return [rectOutline(width, height, options)]\r\n case \"ellipse\":\r\n return ellipseOutline(width, height, options)\r\n case \"triangle\":\r\n return [\r\n polygonOutline(\r\n [\r\n { x: 0, y: -height / 2 },\r\n { x: width / 2, y: height / 2 },\r\n { x: -width / 2, y: height / 2 },\r\n ],\r\n options\r\n ),\r\n ]\r\n case \"rightTriangle\":\r\n return [\r\n polygonOutline(\r\n [\r\n { x: -width / 2, y: -height / 2 },\r\n { x: width / 2, y: height / 2 },\r\n { x: -width / 2, y: height / 2 },\r\n ],\r\n options\r\n ),\r\n ]\r\n case \"polygon\":\r\n // The parametric one: inscribed, *not* stretched — see the module note.\r\n return [\r\n polygonOutline(\r\n regularVertices(sidesOf(options, 5), 0, width / 2, height / 2),\r\n options\r\n ),\r\n ]\r\n case \"polygram\":\r\n return [\r\n polygonOutline(\r\n starVertices(\r\n sidesOf(options, 5),\r\n clamp01(options.ratio ?? 0.5),\r\n width / 2,\r\n height / 2\r\n ),\r\n options\r\n ),\r\n ]\r\n case \"star\":\r\n return [\r\n polygonOutline(\r\n fillBox(\r\n starVertices(\r\n sidesOf(options, STAR_DEFAULT_POINTS),\r\n clamp01(options.ratio ?? STAR_DEFAULT_RATIO),\r\n 1,\r\n 1\r\n ),\r\n width,\r\n height\r\n ),\r\n options\r\n ),\r\n ]\r\n default: {\r\n const named = NAMED_POLYGONS[kind]\r\n if (!named) return []\r\n return [\r\n polygonOutline(\r\n fillBox(regularVertices(named.sides, named.turn, 1, 1), width, height),\r\n options\r\n ),\r\n ]\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * The same outline in the **unit box** a Path node stores — pixels divided by\r\n * the node's own size, so the geometry is a fraction of the box rather than a\r\n * count of pixels inside it.\r\n *\r\n * This is what a shape→path conversion writes. Dividing at the end rather than\r\n * computing in unit space throughout is what keeps a corner radius circular: a\r\n * 20px corner on a 400×200 node is 0.05 × 0.1 of the box, and only comes back\r\n * out round because the renderer multiplies by the same two numbers.\r\n */\r\nexport function shapeOutline(\r\n kind: ShapeOutlineKind,\r\n options: ShapeOutlineOptions\r\n): VectorPath {\r\n const { width, height } = options\r\n const pixels = shapeOutlinePixels(kind, options)\r\n if (!(width > 0) || !(height > 0)) return pixels\r\n return pathOps.map(pixels, (p) => ({ x: p.x / width, y: p.y / height }))\r\n}\r\n\r\n/** Whether this module knows how to draw a type — i.e. whether it can be edited as a path. */\r\nexport function hasShapeOutline(kind: string): kind is ShapeOutlineKind {\r\n return OUTLINE_KINDS.has(kind)\r\n}\r\n\r\nconst OUTLINE_KINDS: ReadonlySet<string> = new Set<ShapeOutlineKind>([\r\n \"rect\",\r\n \"ellipse\",\r\n \"polygon\",\r\n \"polygram\",\r\n \"triangle\",\r\n \"rightTriangle\",\r\n \"pentagon\",\r\n \"hexagon\",\r\n \"octagon\",\r\n \"star\",\r\n])\r\n\r\n// ── Building blocks ────────────────────────────────────────────────────────\r\n\r\nfunction corner(point: Vector2): PathAnchor {\r\n return { point, inHandle: null, outHandle: null }\r\n}\r\n\r\nfunction sidesOf(options: ShapeOutlineOptions, fallback: number): number {\r\n return Math.max(3, Math.round(options.sides ?? fallback))\r\n}\r\n\r\nfunction clamp01(value: number): number {\r\n return Math.max(0, Math.min(1, value))\r\n}\r\n\r\n\r\n/**\r\n * The vertices of a regular n-gon on the ellipse `rx` × `ry`, starting at the\r\n * top and stepping clockwise — the same order and the same first vertex\r\n * The engine's own `polygonVertices` uses, so a converted `polygon` keeps its\r\n * points in the order the author has been looking at.\r\n *\r\n * `turn` rotates the whole figure; see {@link NAMED_POLYGONS}.\r\n */\r\nfunction regularVertices(\r\n sides: number,\r\n turn: number,\r\n rx: number,\r\n ry: number\r\n): Vector2[] {\r\n const step = (2 * Math.PI) / sides\r\n const out: Vector2[] = []\r\n for (let i = 0; i < sides; i++) {\r\n // −π/2 is straight up in y-down coordinates.\r\n const a = -Math.PI / 2 + turn + i * step\r\n out.push({ x: rx * Math.cos(a), y: ry * Math.sin(a) })\r\n }\r\n return out\r\n}\r\n\r\n/** Outer and inner vertices alternating — a star with `points` points. */\r\nfunction starVertices(\r\n points: number,\r\n ratio: number,\r\n rx: number,\r\n ry: number\r\n): Vector2[] {\r\n const step = Math.PI / points\r\n const out: Vector2[] = []\r\n for (let i = 0; i < points * 2; i++) {\r\n const a = -Math.PI / 2 + i * step\r\n const k = i % 2 === 0 ? 1 : ratio\r\n out.push({ x: rx * k * Math.cos(a), y: ry * k * Math.sin(a) })\r\n }\r\n return out\r\n}\r\n\r\n/**\r\n * Stretches a vertex ring so its bounding box *is* the node's box.\r\n *\r\n * The one line that separates a shape from its parametric sibling. Everything\r\n * before it is the inscribed figure; this maps that figure's own extent onto the\r\n * box, so the flat base of a triangle lands on the bottom edge and a pentagon's\r\n * two lower vertices land on the left and right ones.\r\n *\r\n * A ring with no extent on an axis (which no shape here produces, but a\r\n * `sides: 3` star with ratio 0 comes close) keeps that axis rather than dividing\r\n * by zero.\r\n */\r\nfunction fillBox(points: Vector2[], width: number, height: number): Vector2[] {\r\n if (points.length === 0) return points\r\n let minX = Infinity\r\n let minY = Infinity\r\n let maxX = -Infinity\r\n let maxY = -Infinity\r\n for (const p of points) {\r\n if (p.x < minX) minX = p.x\r\n if (p.x > maxX) maxX = p.x\r\n if (p.y < minY) minY = p.y\r\n if (p.y > maxY) maxY = p.y\r\n }\r\n const spanX = maxX - minX\r\n const spanY = maxY - minY\r\n const kx = spanX > 1e-9 ? width / spanX : 1\r\n const ky = spanY > 1e-9 ? height / spanY : 1\r\n const cx = (minX + maxX) / 2\r\n const cy = (minY + maxY) / 2\r\n return points.map((p) => ({ x: (p.x - cx) * kx, y: (p.y - cy) * ky }))\r\n}\r\n\r\n// ── Corners ────────────────────────────────────────────────────────────────\r\n\r\n/**\r\n * The cubic control-point offset that approximates a circular arc, as a\r\n * fraction of the distance from the tangent point to the corner.\r\n *\r\n * `k = (4/3)·tan(φ/4) / tan(φ/2)`, where φ is the arc's central angle. The\r\n * familiar 0.5523 is this at φ = 90°; a shallow corner needs less and a sharp\r\n * one needs more, which is why the constant can't simply be hard-coded — a\r\n * five-pointed star's inner vertices turn through nearly 180°, where 0.5523\r\n * would visibly flatten the curve.\r\n */\r\nfunction arcHandleRatio(sweep: number): number {\r\n const half = sweep / 2\r\n if (Math.abs(half) < 1e-6) return 0\r\n return ((4 / 3) * Math.tan(sweep / 4)) / Math.tan(half)\r\n}\r\n\r\n/**\r\n * A closed ring of vertices as a subpath, with each corner rounded or chamfered\r\n * by `cornerRadius`.\r\n *\r\n * The radius is clamped per corner to half of each adjacent edge, so a large\r\n * radius on a small shape rounds it as far as it can go instead of turning the\r\n * outline inside out. A radius of zero (or a `cornerStyle` of neither kind)\r\n * returns the plain polygon, which is the common case and costs nothing.\r\n */\r\nfunction polygonOutline(\r\n points: Vector2[],\r\n options: ShapeOutlineOptions\r\n): PathSubpath {\r\n const radius = uniformRadius(options.cornerRadius)\r\n if (points.length < 3 || radius <= 0) {\r\n return { anchors: points.map(corner), closed: true }\r\n }\r\n const style = options.cornerStyle ?? \"rounded\"\r\n\r\n const anchors: PathAnchor[] = []\r\n for (let i = 0; i < points.length; i++) {\r\n const c = points[i]\r\n const prev = points[(i - 1 + points.length) % points.length]\r\n const next = points[(i + 1) % points.length]\r\n\r\n const toPrev = direction(c, prev)\r\n const toNext = direction(c, next)\r\n if (!toPrev || !toNext) {\r\n anchors.push(corner(c))\r\n continue\r\n }\r\n\r\n // The interior angle at this vertex, and the arc that replaces it.\r\n const cosine = Math.max(-1, Math.min(1, toPrev.x * toNext.x + toPrev.y * toNext.y))\r\n const interior = Math.acos(cosine)\r\n // A vertex where the two edges double back on themselves has no corner to\r\n // round; leaving it sharp is the only honest answer.\r\n if (interior < 1e-6 || Math.PI - interior < 1e-6) {\r\n anchors.push(corner(c))\r\n continue\r\n }\r\n\r\n // How far back along each edge the arc starts. Never more than half the\r\n // edge, so two adjacent corners can't overlap.\r\n const tangent = Math.min(\r\n radius / Math.tan(interior / 2),\r\n distance(c, prev) / 2,\r\n distance(c, next) / 2\r\n )\r\n const a = { x: c.x + toPrev.x * tangent, y: c.y + toPrev.y * tangent }\r\n const b = { x: c.x + toNext.x * tangent, y: c.y + toNext.y * tangent }\r\n\r\n if (style === \"angled\") {\r\n // A chamfer: the same two tangent points, joined by a straight line.\r\n anchors.push(corner(a), corner(b))\r\n continue\r\n }\r\n\r\n const k = arcHandleRatio(Math.PI - interior)\r\n anchors.push(\r\n { point: a, inHandle: null, outHandle: { x: a.x + (c.x - a.x) * k, y: a.y + (c.y - a.y) * k } },\r\n { point: b, inHandle: { x: b.x + (c.x - b.x) * k, y: b.y + (c.y - b.y) * k }, outHandle: null }\r\n )\r\n }\r\n return { anchors, closed: true }\r\n}\r\n\r\n/** The unit vector from `from` towards `to`, or null when they coincide. */\r\nfunction direction(from: Vector2, to: Vector2): Vector2 | null {\r\n const dx = to.x - from.x\r\n const dy = to.y - from.y\r\n const len = Math.hypot(dx, dy)\r\n if (len < 1e-9) return null\r\n return { x: dx / len, y: dy / len }\r\n}\r\n\r\n\r\n/**\r\n * A single radius from whichever shape the value arrived in.\r\n *\r\n * A per-corner value only means anything on a rect, which builds its outline\r\n * corner by corner below; every other shape takes the smallest of the four, so\r\n * converting a rect with mixed corners into a polygon can't silently invent a\r\n * radius bigger than any the author set.\r\n */\r\nfunction uniformRadius(value: number | CornerRadiusResolved | undefined): number {\r\n if (value === undefined) return 0\r\n if (typeof value === \"number\") return Math.max(0, value)\r\n return Math.max(\r\n 0,\r\n Math.min(value.topLeft, value.topRight, value.bottomLeft, value.bottomRight)\r\n )\r\n}\r\n\r\n// ── Rect ───────────────────────────────────────────────────────────────────\r\n\r\n/**\r\n * A rectangle, with each corner carrying its own radius.\r\n *\r\n * Written out rather than routed through {@link polygonOutline} because a rect\r\n * is the one shape whose corners are *individually* set, and because its right\r\n * angles make the arc exact: the tangent length equals the radius and the handle\r\n * ratio is the familiar 0.5523, with no trigonometry involved.\r\n */\r\nfunction rectOutline(\r\n width: number,\r\n height: number,\r\n options: ShapeOutlineOptions\r\n): PathSubpath {\r\n const radii = perCornerRadii(options.cornerRadius, width, height)\r\n const style = options.cornerStyle ?? \"rounded\"\r\n const x = width / 2\r\n const y = height / 2\r\n const k = arcHandleRatio(Math.PI / 2)\r\n\r\n const anchors: PathAnchor[] = []\r\n /**\r\n * One corner, walking clockwise from the top-left: `at` is the sharp corner,\r\n * `from`/`to` the directions the outline arrives and leaves along.\r\n */\r\n const push = (\r\n at: Vector2,\r\n incoming: Vector2,\r\n outgoing: Vector2,\r\n r: number\r\n ) => {\r\n if (r <= 0) {\r\n anchors.push(corner(at))\r\n return\r\n }\r\n const a = { x: at.x - incoming.x * r, y: at.y - incoming.y * r }\r\n const b = { x: at.x + outgoing.x * r, y: at.y + outgoing.y * r }\r\n if (style === \"angled\") {\r\n anchors.push(corner(a), corner(b))\r\n return\r\n }\r\n anchors.push(\r\n { point: a, inHandle: null, outHandle: { x: a.x + (at.x - a.x) * k, y: a.y + (at.y - a.y) * k } },\r\n { point: b, inHandle: { x: b.x + (at.x - b.x) * k, y: b.y + (at.y - b.y) * k }, outHandle: null }\r\n )\r\n }\r\n\r\n const right = { x: 1, y: 0 }\r\n const down = { x: 0, y: 1 }\r\n const left = { x: -1, y: 0 }\r\n const up = { x: 0, y: -1 }\r\n // Clockwise, and the *incoming* direction is the one the walk is travelling\r\n // when it reaches the corner — not the edge it is about to leave along. The\r\n // loop closes back into the top-left from the bottom-left, so it arrives there\r\n // heading **up**; `down` put that corner's first anchor a radius *above* the\r\n // rectangle and drew the arc back into the box, which is the reversed top-left\r\n // corner you get on any rounded rect converted to a path.\r\n push({ x: -x, y: -y }, up, right, radii.topLeft)\r\n push({ x, y: -y }, right, down, radii.topRight)\r\n push({ x, y }, down, left, radii.bottomRight)\r\n push({ x: -x, y }, left, up, radii.bottomLeft)\r\n return { anchors, closed: true }\r\n}\r\n\r\n/** The four radii, clamped so opposite corners on an edge can't overlap. */\r\nfunction perCornerRadii(\r\n value: number | CornerRadiusResolved | undefined,\r\n width: number,\r\n height: number\r\n): CornerRadiusResolved {\r\n const raw: CornerRadiusResolved =\r\n value === undefined\r\n ? { topLeft: 0, topRight: 0, bottomLeft: 0, bottomRight: 0 }\r\n : typeof value === \"number\"\r\n ? {\r\n topLeft: value,\r\n topRight: value,\r\n bottomLeft: value,\r\n bottomRight: value,\r\n }\r\n : value\r\n const cap = Math.min(width, height) / 2\r\n return {\r\n topLeft: Math.max(0, Math.min(raw.topLeft, cap)),\r\n topRight: Math.max(0, Math.min(raw.topRight, cap)),\r\n bottomLeft: Math.max(0, Math.min(raw.bottomLeft, cap)),\r\n bottomRight: Math.max(0, Math.min(raw.bottomRight, cap)),\r\n }\r\n}\r\n\r\n// ── Ellipse ────────────────────────────────────────────────────────────────\r\n\r\n/**\r\n * The ellipse family: a full oval, an arc (`sweep` under 360°), a ring\r\n * (`ratio` above 0), and the wedge the two make together.\r\n *\r\n * The arc is emitted as cubics rather than as an SVG `A` command, and that is\r\n * the whole reason this is worth writing out. A Path node's geometry is stored\r\n * as a fraction of its box and multiplied back by the box's *two* dimensions —\r\n * so an arc, whose parameters describe a circle rather than a set of points,\r\n * would come out of a non-uniform resize as a different curve rather than a\r\n * stretched one. Cubics survive that transform exactly.\r\n */\r\nfunction ellipseOutline(\r\n width: number,\r\n height: number,\r\n options: ShapeOutlineOptions\r\n): VectorPath {\r\n const rx = width / 2\r\n const ry = height / 2\r\n const inner = clamp01(options.ratio ?? 0)\r\n const sweep = Math.max(0, Math.min(360, options.sweep ?? 360))\r\n if (sweep <= 0) return []\r\n\r\n // A full oval with no hole is the common case: one closed ring.\r\n const full = sweep >= 360\r\n // Degrees clockwise from twelve o'clock, matching the appearance schema's\r\n // `startAngle` — which is measured the way a clock face is, not the way\r\n // `Math.atan2` is.\r\n const from = ((options.startAngle ?? 0) - 90) * (Math.PI / 180)\r\n const to = from + sweep * (Math.PI / 180)\r\n\r\n if (full && inner <= 0) {\r\n return [{ anchors: arcAnchors(rx, ry, from, to, true), closed: true }]\r\n }\r\n if (full) {\r\n // A ring: two closed rings, the inner one wound the other way so the\r\n // even-odd fill leaves a hole.\r\n return [\r\n { anchors: arcAnchors(rx, ry, from, to, true), closed: true },\r\n { anchors: arcAnchors(rx * inner, ry * inner, to, from, true), closed: true },\r\n ]\r\n }\r\n\r\n // An arc, closed back on itself: out along the outer edge, back along the\r\n // inner one (or through the centre, when there is no hole).\r\n const outer = arcAnchors(rx, ry, from, to, false)\r\n const back =\r\n inner > 0\r\n ? arcAnchors(rx * inner, ry * inner, to, from, false)\r\n : [corner({ x: 0, y: 0 })]\r\n return [{ anchors: [...outer, ...back], closed: true }]\r\n}\r\n\r\n/**\r\n * An elliptical arc as a run of anchors, split into segments of at most 90° —\r\n * the span a single cubic approximates to within a fraction of a pixel.\r\n *\r\n * `whole` drops the duplicated final anchor, for the case where the arc closes\r\n * back on its own start.\r\n */\r\nfunction arcAnchors(\r\n rx: number,\r\n ry: number,\r\n from: number,\r\n to: number,\r\n whole: boolean\r\n): PathAnchor[] {\r\n const total = to - from\r\n const steps = Math.max(1, Math.ceil(Math.abs(total) / (Math.PI / 2)))\r\n const step = total / steps\r\n // The classic elliptical-arc approximation: each control point sits α along\r\n // the curve's own tangent, with α = (4/3)·tan(Δ/4) for a segment spanning Δ.\r\n // Signed with the step, so a clockwise arc bulges the right way.\r\n const alpha = (4 / 3) * Math.tan(step / 4)\r\n\r\n const anchors: PathAnchor[] = []\r\n for (let i = 0; i <= steps; i++) {\r\n const a = from + step * i\r\n const point = { x: rx * Math.cos(a), y: ry * Math.sin(a) }\r\n // d/da of the point — the arc's tangent at this angle.\r\n const tangent = { x: -rx * Math.sin(a), y: ry * Math.cos(a) }\r\n const offset = { x: tangent.x * alpha, y: tangent.y * alpha }\r\n anchors.push({\r\n point,\r\n inHandle:\r\n i === 0 ? null : { x: point.x - offset.x, y: point.y - offset.y },\r\n outHandle:\r\n i === steps ? null : { x: point.x + offset.x, y: point.y + offset.y },\r\n })\r\n }\r\n\r\n if (whole && anchors.length > 1) {\r\n // The arc came back to where it started; fold the duplicate into the first\r\n // anchor so the ring has one anchor per corner rather than two stacked.\r\n const last = anchors.pop()!\r\n anchors[0].inHandle = last.inHandle\r\n }\r\n return anchors\r\n}\r\n"]}
|
package/dist/nodes/index.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
export * from "./node/node.js";
|
|
2
|
-
export * from "./2d/node2d.js";
|
|
3
|
-
export * from "./2d/paint-node.js";
|
|
4
|
-
export type { NodeTime } from "./node/node-time.js";
|
|
5
|
-
/** @internal */ export { primeMotionTree, sampleTree } from "./node/node-walk.js";
|
|
6
|
-
export { applyEditorStates } from "./node/node-editor-state.js";
|
|
7
|
-
export type { NodeEditorState, NodeEditorStates } from "./node/node-editor-state.js";
|
|
8
|
-
export * from "./root/canvas2d-node.js";
|
|
9
|
-
export type { CameraProps } from "./layout/camera-node.js";
|
|
10
|
-
export type { OrbitCameraProps } from "./layout/orbit-camera-node.js";
|
|
11
|
-
export type { BooleanGroupProps } from "./geometry/boolean-node.js";
|
|
12
|
-
export type { MaskGroupProps } from "./geometry/mask-node.js";
|
|
13
|
-
export type { ProviderProps } from "./root/provider-node.js";
|
|
14
|
-
export type { ThemeProviderProps } from "./root/theme-provider-node.js";
|
|
15
|
-
export { applyTextDefaults } from "./text/default-text-style-node.js";
|
|
16
|
-
export type { DefaultTextStyleProps } from "./text/default-text-style-node.js";
|
|
17
|
-
export * from "./geometry/shape-node.js";
|
|
18
|
-
export { Rect as RectBase } from "./geometry/rect-node.js";
|
|
19
|
-
export type { RectProps, FlexSize, FlowMode, GapSize } from "./geometry/rect-node.js";
|
|
20
|
-
export { Ellipse as EllipseBase } from "./geometry/ellipse-node.js";
|
|
21
|
-
export type { EllipseProps } from "./geometry/ellipse-node.js";
|
|
22
|
-
export { Path as PathBase } from "./geometry/path-node.js";
|
|
23
|
-
export type { PathProps } from "./geometry/path-node.js";
|
|
24
|
-
export { Polygon as PolygonBase } from "./geometry/polygon-node.js";
|
|
25
|
-
export type { PolygonProps } from "./geometry/polygon-node.js";
|
|
26
|
-
export { Polygram as PolygramBase } from "./geometry/polygram-node.js";
|
|
27
|
-
export type { PolygramProps } from "./geometry/polygram-node.js";
|
|
28
|
-
export { BoundsShape } from "./geometry/bounds-shape-node.js";
|
|
29
|
-
export type { BoundsShapeProps, StarProps } from "./geometry/bounds-shape-node.js";
|
|
30
|
-
export { PathShape as PathShapeBase } from "./geometry/box-path-node.js";
|
|
31
|
-
export type { PathShapeProps } from "./geometry/box-path-node.js";
|
|
32
|
-
export * from "./text/text-base.js";
|
|
33
|
-
export type { RichTextProps } from "./text/richtext-node.js";
|
|
34
|
-
export type { TextProps } from "./text/text-node.js";
|
|
35
|
-
export type { NumberFormat, NumberProps } from "./text/number-node.js";
|
|
36
|
-
export * from "./text/text-selection.js";
|
|
37
|
-
export type { RotatedBoxProps } from "./layout/rotated-box.js";
|
|
38
|
-
export { Video as VideoBase } from "./media/video-node.js";
|
|
39
|
-
export type { VideoProps, VideoSegment } from "./media/video-node.js";
|
|
40
|
-
export * from "./audio/index.js";
|
|
41
|
-
export * from "./three/node3d.js";
|
|
42
|
-
export type { Group3DProps } from "./three/group3d.js";
|
|
43
|
-
export { Mesh3D as Mesh3DBase } from "./three/mesh3d.js";
|
|
44
|
-
export type { Material3DProps, Mesh3DProps } from "./three/mesh3d.js";
|
|
45
|
-
export type { Box3DProps, Sphere3DProps, Plane3DProps, Cylinder3DProps, Cone3DProps, Torus3DProps, TorusKnot3DProps, Circle3DProps, Ring3DProps, Capsule3DProps, Polyhedron3DProps, Extrude3DProps, Lathe3DProps, Tube3DProps } from "./three/geometry-nodes.js";
|
|
46
|
-
export { ModelView3D } from "./three/drawable-nodes.js";
|
|
47
|
-
export type { Instances3DProps, Points3DProps, Line3DProps, Sprite3DProps, Model3DProps, ModelView3DProps } from "./three/drawable-nodes.js";
|
|
48
|
-
export type { AmbientLight3DProps, HemisphereLight3DProps, DirectionalLight3DProps, PointLight3DProps, SpotLight3DProps, AreaLight3DProps } from "./three/light-nodes.js";
|
|
49
|
-
export type { Camera3DProps } from "./three/camera-nodes.js";
|
|
50
|
-
export type { Fog3DProps, Environment3DProps } from "./three/environment-nodes.js";
|
|
51
|
-
export { Canvas3D as Canvas3DBase } from "./three/canvas3d-node.js";
|
|
52
|
-
export type { Canvas3DProps } from "./three/canvas3d-node.js";
|
|
53
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/nodes/index.ts"],"names":[],"mappings":"AAGA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAE5B,cAAc,iBAAiB,CAAC;AAChC,YAAY,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGjD,gBAAgB,CAAC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAClF,cAAc,sBAAsB,CAAC;AACrC,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,YAAY,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACnE,YAAY,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,YAAY,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,YAAY,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAI5E,cAAc,uBAAuB,CAAC;AACtC,O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