@motionscript/core 0.1.0-alpha.9 → 0.1.1-alpha.0
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 +29 -0
- package/dist/assets/asset-index.d.ts +1 -8
- package/dist/assets/asset-index.d.ts.map +1 -1
- package/dist/assets/asset-index.js +1 -8
- package/dist/assets/asset-index.js.map +1 -1
- package/dist/assets/catalog.d.ts +10 -72
- package/dist/assets/catalog.d.ts.map +1 -1
- package/dist/assets/catalog.js +3 -29
- package/dist/assets/catalog.js.map +1 -1
- package/dist/assets/errors.d.ts +8 -20
- package/dist/assets/errors.d.ts.map +1 -1
- package/dist/assets/errors.js +8 -20
- package/dist/assets/errors.js.map +1 -1
- package/dist/assets/index.d.ts.map +1 -1
- package/dist/assets/index.js.map +1 -1
- package/dist/assets/manager.d.ts +9 -51
- package/dist/assets/manager.d.ts.map +1 -1
- package/dist/assets/manager.js +13 -78
- package/dist/assets/manager.js.map +1 -1
- package/dist/assets/record.d.ts +2 -18
- package/dist/assets/record.d.ts.map +1 -1
- package/dist/assets/record.js.map +1 -1
- package/dist/assets/scope.d.ts +3 -18
- package/dist/assets/scope.d.ts.map +1 -1
- package/dist/assets/scope.js +2 -11
- package/dist/assets/scope.js.map +1 -1
- package/dist/attributes/audio/effects/chain.d.ts +2 -12
- package/dist/attributes/audio/effects/chain.d.ts.map +1 -1
- package/dist/attributes/audio/effects/chain.js +1 -7
- package/dist/attributes/audio/effects/chain.js.map +1 -1
- package/dist/attributes/audio/effects/registry.d.ts +3 -18
- package/dist/attributes/audio/effects/registry.d.ts.map +1 -1
- package/dist/attributes/audio/effects/registry.js +4 -23
- package/dist/attributes/audio/effects/registry.js.map +1 -1
- package/dist/attributes/audio/ramp.d.ts +5 -38
- package/dist/attributes/audio/ramp.d.ts.map +1 -1
- package/dist/attributes/audio/ramp.js +3 -28
- package/dist/attributes/audio/ramp.js.map +1 -1
- package/dist/attributes/audio/request.d.ts +10 -80
- package/dist/attributes/audio/request.d.ts.map +1 -1
- package/dist/attributes/audio/request.js +1 -4
- package/dist/attributes/audio/request.js.map +1 -1
- package/dist/attributes/audio/schedule.d.ts +2 -12
- package/dist/attributes/audio/schedule.d.ts.map +1 -1
- package/dist/attributes/audio/schedule.js +2 -11
- package/dist/attributes/audio/schedule.js.map +1 -1
- package/dist/attributes/audio/sound.d.ts +2 -26
- package/dist/attributes/audio/sound.d.ts.map +1 -1
- package/dist/attributes/audio/sound.js +1 -9
- package/dist/attributes/audio/sound.js.map +1 -1
- package/dist/attributes/audio/transition.d.ts +1 -8
- package/dist/attributes/audio/transition.d.ts.map +1 -1
- package/dist/attributes/audio/transition.js.map +1 -1
- package/dist/attributes/layout/alignment.d.ts +6 -38
- package/dist/attributes/layout/alignment.d.ts.map +1 -1
- package/dist/attributes/layout/alignment.js.map +1 -1
- package/dist/attributes/layout/insets.d.ts +2 -27
- package/dist/attributes/layout/insets.d.ts.map +1 -1
- package/dist/attributes/layout/insets.js.map +1 -1
- package/dist/attributes/layout/matrix2d.d.ts +29 -114
- package/dist/attributes/layout/matrix2d.d.ts.map +1 -1
- package/dist/attributes/layout/matrix2d.js +26 -110
- package/dist/attributes/layout/matrix2d.js.map +1 -1
- package/dist/attributes/layout/size.d.ts +3 -25
- package/dist/attributes/layout/size.d.ts.map +1 -1
- package/dist/attributes/layout/size.js +2 -18
- package/dist/attributes/layout/size.js.map +1 -1
- package/dist/attributes/layout/space3d.d.ts +16 -79
- package/dist/attributes/layout/space3d.d.ts.map +1 -1
- package/dist/attributes/layout/space3d.js +17 -81
- package/dist/attributes/layout/space3d.js.map +1 -1
- package/dist/attributes/layout/transform3d.d.ts +2 -23
- package/dist/attributes/layout/transform3d.d.ts.map +1 -1
- package/dist/attributes/layout/transform3d.js +1 -7
- package/dist/attributes/layout/transform3d.js.map +1 -1
- package/dist/attributes/layout/world-transform.d.ts +2 -16
- package/dist/attributes/layout/world-transform.d.ts.map +1 -1
- package/dist/attributes/layout/world-transform.js.map +1 -1
- package/dist/attributes/properties/decorator.d.ts +13 -73
- package/dist/attributes/properties/decorator.d.ts.map +1 -1
- package/dist/attributes/properties/decorator.js +9 -40
- package/dist/attributes/properties/decorator.js.map +1 -1
- package/dist/attributes/properties/typed.d.ts +6 -45
- package/dist/attributes/properties/typed.d.ts.map +1 -1
- package/dist/attributes/properties/typed.js +6 -37
- package/dist/attributes/properties/typed.js.map +1 -1
- package/dist/attributes/render3d/orbit.d.ts +11 -83
- package/dist/attributes/render3d/orbit.d.ts.map +1 -1
- package/dist/attributes/render3d/orbit.js +10 -73
- package/dist/attributes/render3d/orbit.js.map +1 -1
- package/dist/attributes/shape/corners/corner-radius.d.ts +1 -6
- package/dist/attributes/shape/corners/corner-radius.d.ts.map +1 -1
- package/dist/attributes/shape/corners/corner-radius.js.map +1 -1
- package/dist/attributes/shape/corners/corner-style.d.ts +4 -25
- package/dist/attributes/shape/corners/corner-style.d.ts.map +1 -1
- package/dist/attributes/shape/corners/corner-style.js +2 -12
- package/dist/attributes/shape/corners/corner-style.js.map +1 -1
- package/dist/attributes/shape/corners/corners.d.ts +2 -21
- package/dist/attributes/shape/corners/corners.d.ts.map +1 -1
- package/dist/attributes/shape/corners/corners.js +2 -12
- package/dist/attributes/shape/corners/corners.js.map +1 -1
- package/dist/attributes/shape/effects/backdrop.d.ts +2 -18
- package/dist/attributes/shape/effects/backdrop.d.ts.map +1 -1
- package/dist/attributes/shape/effects/backdrop.js +3 -26
- package/dist/attributes/shape/effects/backdrop.js.map +1 -1
- package/dist/attributes/shape/effects/chain.d.ts +36 -328
- package/dist/attributes/shape/effects/chain.d.ts.map +1 -1
- package/dist/attributes/shape/effects/chain.js +24 -242
- package/dist/attributes/shape/effects/chain.js.map +1 -1
- package/dist/attributes/shape/effects/effect-data.d.ts +19 -127
- package/dist/attributes/shape/effects/effect-data.d.ts.map +1 -1
- package/dist/attributes/shape/effects/effect-data.js +6 -33
- package/dist/attributes/shape/effects/effect-data.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/ascii.d.ts +6 -26
- package/dist/attributes/shape/effects/implementations/ascii.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/ascii.js +0 -3
- package/dist/attributes/shape/effects/implementations/ascii.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/bit-crush.d.ts +2 -21
- package/dist/attributes/shape/effects/implementations/bit-crush.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/bit-crush.js +0 -1
- package/dist/attributes/shape/effects/implementations/bit-crush.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/block-displace.d.ts +1 -14
- package/dist/attributes/shape/effects/implementations/block-displace.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/block-displace.js +0 -1
- package/dist/attributes/shape/effects/implementations/block-displace.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/bloom.d.ts +0 -1
- package/dist/attributes/shape/effects/implementations/bloom.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/bloom.js +0 -1
- package/dist/attributes/shape/effects/implementations/bloom.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/blur.d.ts +0 -1
- package/dist/attributes/shape/effects/implementations/blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/blur.js +0 -1
- package/dist/attributes/shape/effects/implementations/blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/bulge.d.ts +0 -1
- package/dist/attributes/shape/effects/implementations/bulge.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/bulge.js +0 -1
- package/dist/attributes/shape/effects/implementations/bulge.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.d.ts +0 -1
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.js +0 -1
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/color-adjustment.d.ts +1 -12
- package/dist/attributes/shape/effects/implementations/color-adjustment.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/color-adjustment.js +0 -1
- package/dist/attributes/shape/effects/implementations/color-adjustment.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/curves.d.ts +1 -11
- package/dist/attributes/shape/effects/implementations/curves.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/curves.js +1 -6
- package/dist/attributes/shape/effects/implementations/curves.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/directional-blur.d.ts +0 -1
- package/dist/attributes/shape/effects/implementations/directional-blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/directional-blur.js +0 -1
- package/dist/attributes/shape/effects/implementations/directional-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/dither.d.ts +4 -35
- package/dist/attributes/shape/effects/implementations/dither.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/dither.js +1 -7
- package/dist/attributes/shape/effects/implementations/dither.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/drop-shadow.d.ts +1 -22
- package/dist/attributes/shape/effects/implementations/drop-shadow.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/drop-shadow.js +0 -1
- package/dist/attributes/shape/effects/implementations/drop-shadow.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/duotone.d.ts +1 -9
- package/dist/attributes/shape/effects/implementations/duotone.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/duotone.js +0 -1
- package/dist/attributes/shape/effects/implementations/duotone.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/edges.d.ts +2 -15
- package/dist/attributes/shape/effects/implementations/edges.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/edges.js +0 -1
- package/dist/attributes/shape/effects/implementations/edges.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/glass.d.ts +1 -14
- package/dist/attributes/shape/effects/implementations/glass.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/glass.js +0 -1
- package/dist/attributes/shape/effects/implementations/glass.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/glow.d.ts +7 -47
- package/dist/attributes/shape/effects/implementations/glow.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/glow.js +1 -9
- package/dist/attributes/shape/effects/implementations/glow.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/grain.d.ts +1 -14
- package/dist/attributes/shape/effects/implementations/grain.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/grain.js +0 -1
- package/dist/attributes/shape/effects/implementations/grain.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/grayscale.d.ts +0 -1
- package/dist/attributes/shape/effects/implementations/grayscale.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/grayscale.js +0 -1
- package/dist/attributes/shape/effects/implementations/grayscale.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/halftone.d.ts +5 -29
- package/dist/attributes/shape/effects/implementations/halftone.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/halftone.js +0 -1
- package/dist/attributes/shape/effects/implementations/halftone.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/invert.d.ts +3 -12
- package/dist/attributes/shape/effects/implementations/invert.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/invert.js +0 -1
- package/dist/attributes/shape/effects/implementations/invert.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/kaleidoscope.d.ts +2 -19
- package/dist/attributes/shape/effects/implementations/kaleidoscope.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/kaleidoscope.js +1 -5
- package/dist/attributes/shape/effects/implementations/kaleidoscope.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/lut.d.ts +11 -36
- package/dist/attributes/shape/effects/implementations/lut.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/lut.js +2 -8
- package/dist/attributes/shape/effects/implementations/lut.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/magnify.d.ts +0 -1
- package/dist/attributes/shape/effects/implementations/magnify.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/magnify.js +0 -1
- package/dist/attributes/shape/effects/implementations/magnify.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/motion-blur.d.ts +3 -17
- package/dist/attributes/shape/effects/implementations/motion-blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/motion-blur.js +2 -11
- package/dist/attributes/shape/effects/implementations/motion-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/oil-paint.d.ts +1 -12
- package/dist/attributes/shape/effects/implementations/oil-paint.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/oil-paint.js +0 -1
- package/dist/attributes/shape/effects/implementations/oil-paint.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/outline.d.ts +2 -14
- package/dist/attributes/shape/effects/implementations/outline.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/outline.js +0 -1
- package/dist/attributes/shape/effects/implementations/outline.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/pixelate.d.ts +1 -15
- package/dist/attributes/shape/effects/implementations/pixelate.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/pixelate.js +0 -1
- package/dist/attributes/shape/effects/implementations/pixelate.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/posterize.d.ts +1 -10
- package/dist/attributes/shape/effects/implementations/posterize.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/posterize.js +0 -1
- package/dist/attributes/shape/effects/implementations/posterize.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/progressive-blur.d.ts +3 -26
- package/dist/attributes/shape/effects/implementations/progressive-blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/progressive-blur.js +1 -2
- package/dist/attributes/shape/effects/implementations/progressive-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/radial-blur.d.ts +2 -16
- package/dist/attributes/shape/effects/implementations/radial-blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/radial-blur.js +0 -1
- package/dist/attributes/shape/effects/implementations/radial-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/rgb-shift.d.ts +1 -13
- package/dist/attributes/shape/effects/implementations/rgb-shift.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/rgb-shift.js +0 -1
- package/dist/attributes/shape/effects/implementations/rgb-shift.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/scanlines.d.ts +1 -8
- package/dist/attributes/shape/effects/implementations/scanlines.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/scanlines.js +0 -1
- package/dist/attributes/shape/effects/implementations/scanlines.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/scatter.d.ts +0 -1
- package/dist/attributes/shape/effects/implementations/scatter.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/scatter.js +0 -1
- package/dist/attributes/shape/effects/implementations/scatter.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/shader.d.ts +10 -53
- package/dist/attributes/shape/effects/implementations/shader.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/shader.js +2 -9
- package/dist/attributes/shape/effects/implementations/shader.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/sharpen.d.ts +1 -12
- package/dist/attributes/shape/effects/implementations/sharpen.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/sharpen.js +0 -1
- package/dist/attributes/shape/effects/implementations/sharpen.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/streak.d.ts +1 -8
- package/dist/attributes/shape/effects/implementations/streak.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/streak.js +0 -1
- package/dist/attributes/shape/effects/implementations/streak.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/threshold.d.ts +1 -9
- package/dist/attributes/shape/effects/implementations/threshold.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/threshold.js +0 -1
- package/dist/attributes/shape/effects/implementations/threshold.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/twirl.d.ts +1 -13
- package/dist/attributes/shape/effects/implementations/twirl.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/twirl.js +0 -1
- package/dist/attributes/shape/effects/implementations/twirl.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/vignette.d.ts +1 -9
- package/dist/attributes/shape/effects/implementations/vignette.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/vignette.js +0 -1
- package/dist/attributes/shape/effects/implementations/vignette.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/vintage.d.ts +0 -1
- package/dist/attributes/shape/effects/implementations/vintage.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/vintage.js +0 -1
- package/dist/attributes/shape/effects/implementations/vintage.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/wave.d.ts +3 -24
- package/dist/attributes/shape/effects/implementations/wave.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/wave.js +1 -5
- package/dist/attributes/shape/effects/implementations/wave.js.map +1 -1
- package/dist/attributes/shape/effects/registry.d.ts +6 -41
- package/dist/attributes/shape/effects/registry.d.ts.map +1 -1
- package/dist/attributes/shape/effects/registry.js +7 -45
- package/dist/attributes/shape/effects/registry.js.map +1 -1
- package/dist/attributes/shape/effects/spec.d.ts +6 -30
- package/dist/attributes/shape/effects/spec.d.ts.map +1 -1
- package/dist/attributes/shape/effects/spec.js +3 -9
- package/dist/attributes/shape/effects/spec.js.map +1 -1
- package/dist/attributes/shape/fill/blend.d.ts +1 -17
- package/dist/attributes/shape/fill/blend.d.ts.map +1 -1
- package/dist/attributes/shape/fill/blend.js +2 -15
- package/dist/attributes/shape/fill/blend.js.map +1 -1
- package/dist/attributes/shape/fill/chain.d.ts +17 -125
- package/dist/attributes/shape/fill/chain.d.ts.map +1 -1
- package/dist/attributes/shape/fill/chain.js +22 -109
- package/dist/attributes/shape/fill/chain.js.map +1 -1
- package/dist/attributes/shape/fill/coerce.d.ts +10 -35
- package/dist/attributes/shape/fill/coerce.d.ts.map +1 -1
- package/dist/attributes/shape/fill/coerce.js +12 -47
- package/dist/attributes/shape/fill/coerce.js.map +1 -1
- package/dist/attributes/shape/fill/color/parser.d.ts +10 -44
- package/dist/attributes/shape/fill/color/parser.d.ts.map +1 -1
- package/dist/attributes/shape/fill/color/parser.js +35 -96
- package/dist/attributes/shape/fill/color/parser.js.map +1 -1
- package/dist/attributes/shape/fill/gradient-stops.d.ts +1 -8
- package/dist/attributes/shape/fill/gradient-stops.d.ts.map +1 -1
- package/dist/attributes/shape/fill/gradient-stops.js +2 -13
- package/dist/attributes/shape/fill/gradient-stops.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/canvas3d.d.ts +2 -24
- package/dist/attributes/shape/fill/implementations/canvas3d.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/canvas3d.js +2 -9
- package/dist/attributes/shape/fill/implementations/canvas3d.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/dot-grid.d.ts +1 -14
- package/dist/attributes/shape/fill/implementations/dot-grid.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/dot-grid.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/fractal-noise.d.ts +5 -28
- package/dist/attributes/shape/fill/implementations/fractal-noise.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/fractal-noise.js +0 -1
- package/dist/attributes/shape/fill/implementations/fractal-noise.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/grid.d.ts +8 -21
- package/dist/attributes/shape/fill/implementations/grid.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/grid.js +2 -8
- package/dist/attributes/shape/fill/implementations/grid.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/image.d.ts +13 -79
- package/dist/attributes/shape/fill/implementations/image.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/image.js +6 -23
- package/dist/attributes/shape/fill/implementations/image.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/noise.d.ts +2 -15
- package/dist/attributes/shape/fill/implementations/noise.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/noise.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/shader.d.ts +11 -45
- package/dist/attributes/shape/fill/implementations/shader.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/shader.js +5 -17
- package/dist/attributes/shape/fill/implementations/shader.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/video.d.ts +12 -64
- package/dist/attributes/shape/fill/implementations/video.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/video.js +12 -50
- package/dist/attributes/shape/fill/implementations/video.js.map +1 -1
- package/dist/attributes/shape/fill/lerp.d.ts +2 -13
- package/dist/attributes/shape/fill/lerp.d.ts.map +1 -1
- package/dist/attributes/shape/fill/lerp.js +2 -9
- package/dist/attributes/shape/fill/lerp.js.map +1 -1
- package/dist/attributes/shape/fill/media-preset.d.ts +8 -49
- package/dist/attributes/shape/fill/media-preset.d.ts.map +1 -1
- package/dist/attributes/shape/fill/media-preset.js +8 -35
- package/dist/attributes/shape/fill/media-preset.js.map +1 -1
- package/dist/attributes/shape/fill/registry.d.ts +2 -26
- package/dist/attributes/shape/fill/registry.d.ts.map +1 -1
- package/dist/attributes/shape/fill/registry.js +5 -40
- package/dist/attributes/shape/fill/registry.js.map +1 -1
- package/dist/attributes/shape/fill/union.d.ts +6 -30
- package/dist/attributes/shape/fill/union.d.ts.map +1 -1
- package/dist/attributes/shape/fill/union.js +1 -9
- package/dist/attributes/shape/fill/union.js.map +1 -1
- package/dist/attributes/shape/filters/chain.d.ts +15 -168
- package/dist/attributes/shape/filters/chain.d.ts.map +1 -1
- package/dist/attributes/shape/filters/chain.js +8 -132
- package/dist/attributes/shape/filters/chain.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/color-matrix.d.ts +1 -7
- 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.d.ts +1 -7
- package/dist/attributes/shape/filters/implementations/curves.d.ts.map +1 -1
- package/dist/attributes/shape/filters/implementations/curves.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/echo.d.ts +1 -11
- package/dist/attributes/shape/filters/implementations/echo.d.ts.map +1 -1
- package/dist/attributes/shape/filters/implementations/echo.js.map +1 -1
- package/dist/attributes/shape/filters/index.d.ts +1 -6
- package/dist/attributes/shape/filters/index.d.ts.map +1 -1
- package/dist/attributes/shape/filters/index.js +0 -2
- package/dist/attributes/shape/filters/index.js.map +1 -1
- package/dist/attributes/shape/filters/registry.d.ts +5 -35
- package/dist/attributes/shape/filters/registry.d.ts.map +1 -1
- package/dist/attributes/shape/filters/registry.js +7 -50
- package/dist/attributes/shape/filters/registry.js.map +1 -1
- package/dist/attributes/shape/filters/union.d.ts +10 -51
- package/dist/attributes/shape/filters/union.d.ts.map +1 -1
- package/dist/attributes/shape/filters/union.js.map +1 -1
- package/dist/attributes/shape/path/anchors.d.ts +18 -106
- package/dist/attributes/shape/path/anchors.d.ts.map +1 -1
- package/dist/attributes/shape/path/anchors.js +15 -124
- package/dist/attributes/shape/path/anchors.js.map +1 -1
- package/dist/attributes/shape/path/bezier.d.ts +6 -54
- package/dist/attributes/shape/path/bezier.d.ts.map +1 -1
- package/dist/attributes/shape/path/bezier.js +10 -98
- package/dist/attributes/shape/path/bezier.js.map +1 -1
- package/dist/attributes/shape/path/index.d.ts +1 -11
- package/dist/attributes/shape/path/index.d.ts.map +1 -1
- package/dist/attributes/shape/path/index.js +1 -11
- package/dist/attributes/shape/path/index.js.map +1 -1
- package/dist/attributes/shape/path/measure.d.ts +5 -41
- package/dist/attributes/shape/path/measure.d.ts.map +1 -1
- package/dist/attributes/shape/path/measure.js +8 -57
- package/dist/attributes/shape/path/measure.js.map +1 -1
- package/dist/attributes/shape/path/morph.d.ts +4 -41
- package/dist/attributes/shape/path/morph.d.ts.map +1 -1
- package/dist/attributes/shape/path/morph.js +17 -117
- package/dist/attributes/shape/path/morph.js.map +1 -1
- package/dist/attributes/shape/path/ops.d.ts +5 -19
- package/dist/attributes/shape/path/ops.d.ts.map +1 -1
- package/dist/attributes/shape/path/ops.js.map +1 -1
- package/dist/attributes/shape/path/types.d.ts +10 -67
- package/dist/attributes/shape/path/types.d.ts.map +1 -1
- package/dist/attributes/shape/path/types.js +0 -1
- package/dist/attributes/shape/path/types.js.map +1 -1
- package/dist/attributes/shape/path/walk.d.ts +9 -63
- package/dist/attributes/shape/path/walk.d.ts.map +1 -1
- package/dist/attributes/shape/path/walk.js +21 -100
- package/dist/attributes/shape/path/walk.js.map +1 -1
- package/dist/attributes/shape/shaders/language.d.ts +2 -14
- package/dist/attributes/shape/shaders/language.d.ts.map +1 -1
- package/dist/attributes/shape/shaders/language.js +1 -8
- package/dist/attributes/shape/shaders/language.js.map +1 -1
- package/dist/attributes/shape/shaders/pack.d.ts +13 -78
- package/dist/attributes/shape/shaders/pack.d.ts.map +1 -1
- package/dist/attributes/shape/shaders/pack.js +1 -10
- package/dist/attributes/shape/shaders/pack.js.map +1 -1
- package/dist/attributes/shape/shaders/resolve.d.ts +1 -11
- package/dist/attributes/shape/shaders/resolve.d.ts.map +1 -1
- package/dist/attributes/shape/shaders/resolve.js +3 -28
- package/dist/attributes/shape/shaders/resolve.js.map +1 -1
- package/dist/attributes/shape/shaders/uniforms.d.ts +3 -24
- package/dist/attributes/shape/shaders/uniforms.d.ts.map +1 -1
- package/dist/attributes/shape/shaders/uniforms.js +0 -0
- package/dist/attributes/shape/shaders/uniforms.js.map +1 -1
- package/dist/attributes/shape/shadow/shadow.d.ts +3 -20
- package/dist/attributes/shape/shadow/shadow.d.ts.map +1 -1
- package/dist/attributes/shape/shadow/shadow.js +0 -3
- package/dist/attributes/shape/shadow/shadow.js.map +1 -1
- package/dist/attributes/shape/stroke/stroke.d.ts +9 -58
- package/dist/attributes/shape/stroke/stroke.d.ts.map +1 -1
- package/dist/attributes/shape/stroke/stroke.js +0 -6
- package/dist/attributes/shape/stroke/stroke.js.map +1 -1
- package/dist/attributes/shared/operators.d.ts +1 -8
- package/dist/attributes/shared/operators.d.ts.map +1 -1
- package/dist/attributes/shared/operators.js.map +1 -1
- package/dist/attributes/text/index.d.ts +1 -11
- package/dist/attributes/text/index.d.ts.map +1 -1
- package/dist/attributes/text/index.js +1 -11
- package/dist/attributes/text/index.js.map +1 -1
- package/dist/attributes/text/ops.d.ts +4 -30
- package/dist/attributes/text/ops.d.ts.map +1 -1
- package/dist/attributes/text/ops.js +7 -23
- package/dist/attributes/text/ops.js.map +1 -1
- package/dist/attributes/text/types.d.ts +5 -28
- package/dist/attributes/text/types.d.ts.map +1 -1
- package/dist/attributes/text/types.js.map +1 -1
- package/dist/browser/chunks/chunk-3ZIUZZC7.js +13 -0
- package/dist/browser/chunks/chunk-3ZIUZZC7.js.map +7 -0
- package/dist/browser/chunks/chunk-5TDMGUXQ.js +3 -0
- package/dist/browser/chunks/chunk-5TDMGUXQ.js.map +7 -0
- package/dist/browser/chunks/chunk-7YOYMMXK.js +6 -0
- package/dist/browser/chunks/chunk-7YOYMMXK.js.map +7 -0
- package/dist/browser/chunks/{chunk-4BDLFEOC.js → chunk-GEJEQQER.js} +1 -1
- package/dist/browser/chunks/chunk-GEJEQQER.js.map +7 -0
- package/dist/browser/component.js +1 -1
- package/dist/browser/experimental.js +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +4 -4
- package/dist/browser/manifest.json +1 -1
- package/dist/browser/sdk.js +1 -1
- package/dist/component.d.ts +3 -10
- package/dist/component.d.ts.map +1 -1
- package/dist/component.js +3 -10
- package/dist/component.js.map +1 -1
- package/dist/components/builtins/geometry/geometry.d.ts +15 -62
- package/dist/components/builtins/geometry/geometry.d.ts.map +1 -1
- package/dist/components/builtins/geometry/geometry.js.map +1 -1
- package/dist/components/builtins/geometry/shape-outline.d.ts +12 -61
- package/dist/components/builtins/geometry/shape-outline.d.ts.map +1 -1
- package/dist/components/builtins/geometry/shape-outline.js +29 -168
- package/dist/components/builtins/geometry/shape-outline.js.map +1 -1
- package/dist/components/builtins/layout/layout.d.ts +1 -14
- package/dist/components/builtins/layout/layout.d.ts.map +1 -1
- package/dist/components/builtins/layout/layout.js.map +1 -1
- package/dist/components/builtins/media/media.d.ts +11 -51
- package/dist/components/builtins/media/media.d.ts.map +1 -1
- package/dist/components/builtins/media/media.js +3 -7
- package/dist/components/builtins/media/media.js.map +1 -1
- package/dist/components/builtins/text/number-format.d.ts +14 -47
- package/dist/components/builtins/text/number-format.d.ts.map +1 -1
- package/dist/components/builtins/text/number-format.js +19 -69
- package/dist/components/builtins/text/number-format.js.map +1 -1
- package/dist/components/builtins/text/number-pattern.d.ts +3 -37
- package/dist/components/builtins/text/number-pattern.d.ts.map +1 -1
- package/dist/components/builtins/text/number-pattern.js +6 -48
- package/dist/components/builtins/text/number-pattern.js.map +1 -1
- package/dist/components/builtins/text/text-defaults.d.ts +7 -25
- package/dist/components/builtins/text/text-defaults.d.ts.map +1 -1
- package/dist/components/builtins/text/text-defaults.js +7 -25
- package/dist/components/builtins/text/text-defaults.js.map +1 -1
- package/dist/components/builtins/text/text-layout.d.ts +2 -11
- package/dist/components/builtins/text/text-layout.d.ts.map +1 -1
- package/dist/components/builtins/text/text-layout.js +7 -22
- package/dist/components/builtins/text/text-layout.js.map +1 -1
- package/dist/components/builtins/text/text.d.ts +8 -46
- package/dist/components/builtins/text/text.d.ts.map +1 -1
- package/dist/components/builtins/text/text.js.map +1 -1
- package/dist/components/builtins/three/canvas3d.d.ts +6 -51
- package/dist/components/builtins/three/canvas3d.d.ts.map +1 -1
- package/dist/components/builtins/three/canvas3d.js.map +1 -1
- package/dist/components/builtins/three/grid-geometry3d.d.ts +3 -39
- package/dist/components/builtins/three/grid-geometry3d.d.ts.map +1 -1
- package/dist/components/builtins/three/grid-geometry3d.js +8 -46
- package/dist/components/builtins/three/grid-geometry3d.js.map +1 -1
- package/dist/components/builtins/three/three.d.ts +22 -117
- package/dist/components/builtins/three/three.d.ts.map +1 -1
- package/dist/components/builtins/three/three.js +5 -17
- package/dist/components/builtins/three/three.js.map +1 -1
- package/dist/components/factory/api.d.ts.map +1 -1
- package/dist/components/factory/api.js.map +1 -1
- package/dist/components/factory/views.d.ts.map +1 -1
- package/dist/components/factory/views.js +41 -3
- package/dist/components/factory/views.js.map +1 -1
- package/dist/components/trees/2d/group-bounds.d.ts +12 -41
- package/dist/components/trees/2d/group-bounds.d.ts.map +1 -1
- package/dist/components/trees/2d/group-bounds.js +3 -22
- package/dist/components/trees/2d/group-bounds.js.map +1 -1
- package/dist/components/trees/2d/node-lifecycle.d.ts +8 -36
- package/dist/components/trees/2d/node-lifecycle.d.ts.map +1 -1
- package/dist/components/trees/2d/node-lifecycle.js +35 -127
- package/dist/components/trees/2d/node-lifecycle.js.map +1 -1
- package/dist/components/trees/2d/node-motion.d.ts +4 -36
- package/dist/components/trees/2d/node-motion.d.ts.map +1 -1
- package/dist/components/trees/2d/node-motion.js +3 -31
- package/dist/components/trees/2d/node-motion.js.map +1 -1
- package/dist/components/trees/2d/node-render.d.ts +3 -20
- package/dist/components/trees/2d/node-render.d.ts.map +1 -1
- package/dist/components/trees/2d/node-render.js +4 -23
- package/dist/components/trees/2d/node-render.js.map +1 -1
- package/dist/components/trees/2d/node-space.d.ts +4 -23
- package/dist/components/trees/2d/node-space.d.ts.map +1 -1
- package/dist/components/trees/2d/node-space.js +3 -17
- package/dist/components/trees/2d/node-space.js.map +1 -1
- package/dist/components/trees/2d/node-transform.d.ts +4 -33
- package/dist/components/trees/2d/node-transform.d.ts.map +1 -1
- package/dist/components/trees/2d/node-transform.js +4 -33
- package/dist/components/trees/2d/node-transform.js.map +1 -1
- package/dist/components/trees/2d/node2d.d.ts +112 -622
- package/dist/components/trees/2d/node2d.d.ts.map +1 -1
- package/dist/components/trees/2d/node2d.js +131 -605
- package/dist/components/trees/2d/node2d.js.map +1 -1
- package/dist/components/trees/audio/node-audio.d.ts +17 -65
- package/dist/components/trees/audio/node-audio.d.ts.map +1 -1
- package/dist/components/trees/audio/node-audio.js +18 -68
- package/dist/components/trees/audio/node-audio.js.map +1 -1
- package/dist/components/trees/node/node-editor-state.d.ts +5 -45
- package/dist/components/trees/node/node-editor-state.d.ts.map +1 -1
- package/dist/components/trees/node/node-editor-state.js +1 -13
- package/dist/components/trees/node/node-editor-state.js.map +1 -1
- package/dist/components/trees/node/node-reactive.d.ts +6 -54
- package/dist/components/trees/node/node-reactive.d.ts.map +1 -1
- package/dist/components/trees/node/node-reactive.js +13 -39
- package/dist/components/trees/node/node-reactive.js.map +1 -1
- package/dist/components/trees/node/node-time.d.ts +2 -15
- package/dist/components/trees/node/node-time.d.ts.map +1 -1
- package/dist/components/trees/node/node-time.js.map +1 -1
- package/dist/components/trees/node/node-walk.d.ts +7 -32
- package/dist/components/trees/node/node-walk.d.ts.map +1 -1
- package/dist/components/trees/node/node-walk.js +7 -32
- package/dist/components/trees/node/node-walk.js.map +1 -1
- package/dist/components/trees/node/node.d.ts +43 -248
- package/dist/components/trees/node/node.d.ts.map +1 -1
- package/dist/components/trees/node/node.js +51 -229
- package/dist/components/trees/node/node.js.map +1 -1
- package/dist/components/trees/root/canvas2d-node.d.ts +7 -60
- package/dist/components/trees/root/canvas2d-node.d.ts.map +1 -1
- package/dist/components/trees/root/canvas2d-node.js +7 -47
- package/dist/components/trees/root/canvas2d-node.js.map +1 -1
- package/dist/components/trees/three/node3d.d.ts +24 -112
- package/dist/components/trees/three/node3d.d.ts.map +1 -1
- package/dist/components/trees/three/node3d.js +22 -104
- package/dist/components/trees/three/node3d.js.map +1 -1
- package/dist/document/audio.d.ts +9 -21
- package/dist/document/audio.d.ts.map +1 -1
- package/dist/document/audio.js +13 -28
- package/dist/document/audio.js.map +1 -1
- package/dist/document/builtins.d.ts +3 -9
- package/dist/document/builtins.d.ts.map +1 -1
- package/dist/document/builtins.js +43 -89
- package/dist/document/builtins.js.map +1 -1
- package/dist/document/command-traits.d.ts +15 -30
- package/dist/document/command-traits.d.ts.map +1 -1
- package/dist/document/command-traits.js +31 -31
- package/dist/document/command-traits.js.map +1 -1
- package/dist/document/deny-globals.d.ts +9 -43
- package/dist/document/deny-globals.d.ts.map +1 -1
- package/dist/document/deny-globals.js +18 -58
- package/dist/document/deny-globals.js.map +1 -1
- package/dist/document/diff.d.ts +6 -16
- package/dist/document/diff.d.ts.map +1 -1
- package/dist/document/diff.js +5 -11
- package/dist/document/diff.js.map +1 -1
- package/dist/document/doc-index.d.ts +5 -13
- package/dist/document/doc-index.d.ts.map +1 -1
- package/dist/document/doc-index.js +0 -2
- package/dist/document/doc-index.js.map +1 -1
- package/dist/document/expression/compile.d.ts +2 -2
- package/dist/document/expression/compile.d.ts.map +1 -1
- package/dist/document/expression/compile.js +8 -18
- package/dist/document/expression/compile.js.map +1 -1
- package/dist/document/expression/index.d.ts +11 -41
- package/dist/document/expression/index.d.ts.map +1 -1
- package/dist/document/expression/index.js +11 -41
- package/dist/document/expression/index.js.map +1 -1
- package/dist/document/expression/ops.d.ts +3 -12
- package/dist/document/expression/ops.d.ts.map +1 -1
- package/dist/document/expression/ops.js +4 -20
- package/dist/document/expression/ops.js.map +1 -1
- package/dist/document/expression/parse.d.ts +4 -14
- package/dist/document/expression/parse.d.ts.map +1 -1
- package/dist/document/expression/parse.js +34 -55
- package/dist/document/expression/parse.js.map +1 -1
- package/dist/document/expression/refs.d.ts +2 -8
- package/dist/document/expression/refs.d.ts.map +1 -1
- package/dist/document/expression/refs.js +2 -6
- package/dist/document/expression/refs.js.map +1 -1
- package/dist/document/expression/types.d.ts +18 -63
- package/dist/document/expression/types.d.ts.map +1 -1
- package/dist/document/expression/types.js +4 -15
- package/dist/document/expression/types.js.map +1 -1
- package/dist/document/expression/walk.d.ts +6 -20
- package/dist/document/expression/walk.d.ts.map +1 -1
- package/dist/document/expression/walk.js +18 -44
- package/dist/document/expression/walk.js.map +1 -1
- package/dist/document/index.js +2 -3
- package/dist/document/index.js.map +1 -1
- package/dist/document/migrate.d.ts +7 -22
- package/dist/document/migrate.d.ts.map +1 -1
- package/dist/document/migrate.js +44 -15
- package/dist/document/migrate.js.map +1 -1
- package/dist/document/missing-node.d.ts +4 -11
- package/dist/document/missing-node.d.ts.map +1 -1
- package/dist/document/missing-node.js +2 -5
- package/dist/document/missing-node.js.map +1 -1
- package/dist/document/node-decorator.d.ts +12 -53
- package/dist/document/node-decorator.d.ts.map +1 -1
- package/dist/document/node-decorator.js +16 -57
- package/dist/document/node-decorator.js.map +1 -1
- package/dist/document/node-descriptor.d.ts +25 -62
- 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 +18 -41
- package/dist/document/placement.d.ts.map +1 -1
- package/dist/document/placement.js +4 -11
- package/dist/document/placement.js.map +1 -1
- package/dist/document/project.d.ts +19 -52
- package/dist/document/project.d.ts.map +1 -1
- package/dist/document/project.js +2 -6
- package/dist/document/project.js.map +1 -1
- package/dist/document/prop-evolution.d.ts +10 -20
- package/dist/document/prop-evolution.d.ts.map +1 -1
- package/dist/document/prop-evolution.js +3 -7
- package/dist/document/prop-evolution.js.map +1 -1
- package/dist/document/registry.d.ts +80 -318
- package/dist/document/registry.d.ts.map +1 -1
- package/dist/document/registry.js +43 -147
- package/dist/document/registry.js.map +1 -1
- package/dist/document/settled-index.d.ts +12 -18
- package/dist/document/settled-index.d.ts.map +1 -1
- package/dist/document/settled-index.js +29 -31
- package/dist/document/settled-index.js.map +1 -1
- package/dist/document/timeline-patch.d.ts +6 -15
- package/dist/document/timeline-patch.d.ts.map +1 -1
- package/dist/document/timeline-patch.js +12 -21
- package/dist/document/timeline-patch.js.map +1 -1
- package/dist/document/timeline.d.ts +56 -263
- package/dist/document/timeline.d.ts.map +1 -1
- package/dist/document/timeline.js +97 -281
- package/dist/document/timeline.js.map +1 -1
- package/dist/document/types.d.ts +90 -264
- package/dist/document/types.d.ts.map +1 -1
- package/dist/document/types.js +13 -30
- package/dist/document/types.js.map +1 -1
- package/dist/document/validate.d.ts +10 -40
- package/dist/document/validate.d.ts.map +1 -1
- package/dist/document/validate.js +72 -137
- package/dist/document/validate.js.map +1 -1
- package/dist/document/vocabulary.d.ts +4 -7
- package/dist/document/vocabulary.d.ts.map +1 -1
- package/dist/document/vocabulary.js +0 -1
- package/dist/document/vocabulary.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/layout/bounds.d.ts +1 -11
- package/dist/layout/bounds.d.ts.map +1 -1
- package/dist/layout/bounds.js.map +1 -1
- package/dist/layout/flex.d.ts +6 -20
- package/dist/layout/flex.d.ts.map +1 -1
- package/dist/layout/flex.js +7 -28
- package/dist/layout/flex.js.map +1 -1
- package/dist/layout/ops.d.ts +2 -11
- package/dist/layout/ops.d.ts.map +1 -1
- package/dist/layout/ops.js +2 -22
- package/dist/layout/ops.js.map +1 -1
- package/dist/layout/types.d.ts +11 -55
- package/dist/layout/types.d.ts.map +1 -1
- package/dist/layout/types.js.map +1 -1
- package/dist/platform/audio-sink.d.ts +7 -43
- package/dist/platform/audio-sink.d.ts.map +1 -1
- package/dist/platform/audio-sink.js +4 -29
- package/dist/platform/audio-sink.js.map +1 -1
- package/dist/platform/exporter.d.ts +5 -31
- package/dist/platform/exporter.d.ts.map +1 -1
- package/dist/platform/exporter.js.map +1 -1
- package/dist/platform/stepped-clock.d.ts +1 -16
- package/dist/platform/stepped-clock.d.ts.map +1 -1
- package/dist/platform/stepped-clock.js +1 -16
- package/dist/platform/stepped-clock.js.map +1 -1
- package/dist/platform/storage-adapter.d.ts +8 -68
- package/dist/platform/storage-adapter.d.ts.map +1 -1
- package/dist/platform/storage-adapter.js +8 -60
- package/dist/platform/storage-adapter.js.map +1 -1
- package/dist/platform/ticker.d.ts +11 -45
- package/dist/platform/ticker.d.ts.map +1 -1
- package/dist/platform/ticker.js +10 -37
- package/dist/platform/ticker.js.map +1 -1
- package/dist/project/config.d.ts +4 -14
- package/dist/project/config.d.ts.map +1 -1
- package/dist/project/config.js.map +1 -1
- package/dist/project/tree.d.ts +6 -35
- package/dist/project/tree.d.ts.map +1 -1
- package/dist/project/tree.js +1 -8
- package/dist/project/tree.js.map +1 -1
- package/dist/props/host.d.ts +7 -13
- package/dist/props/host.d.ts.map +1 -1
- package/dist/props/host.js +3 -1
- package/dist/props/host.js.map +1 -1
- package/dist/props/layout.d.ts +18 -0
- package/dist/props/layout.d.ts.map +1 -0
- package/dist/props/layout.js +73 -0
- package/dist/props/layout.js.map +1 -0
- package/dist/props/observer.d.ts +1 -7
- package/dist/props/observer.d.ts.map +1 -1
- package/dist/props/observer.js.map +1 -1
- package/dist/props/slot.d.ts +6 -19
- package/dist/props/slot.d.ts.map +1 -1
- package/dist/props/slot.js +5 -14
- package/dist/props/slot.js.map +1 -1
- package/dist/render/canvas-render-context2d.d.ts +8 -68
- package/dist/render/canvas-render-context2d.d.ts.map +1 -1
- package/dist/render/canvas-render-context2d.js +8 -69
- package/dist/render/canvas-render-context2d.js.map +1 -1
- package/dist/render/clip-contains.d.ts +2 -16
- package/dist/render/clip-contains.d.ts.map +1 -1
- package/dist/render/clip-contains.js +21 -82
- package/dist/render/clip-contains.js.map +1 -1
- package/dist/render/clip.d.ts +7 -25
- package/dist/render/clip.d.ts.map +1 -1
- package/dist/render/clip.js +5 -17
- package/dist/render/clip.js.map +1 -1
- package/dist/render/descriptors/ellipse.d.ts.map +1 -1
- package/dist/render/descriptors/ellipse.js +0 -1
- package/dist/render/descriptors/ellipse.js.map +1 -1
- package/dist/render/descriptors/line.d.ts.map +1 -1
- package/dist/render/descriptors/line.js +0 -1
- package/dist/render/descriptors/line.js.map +1 -1
- package/dist/render/descriptors/path-builder.d.ts +4 -32
- package/dist/render/descriptors/path-builder.d.ts.map +1 -1
- package/dist/render/descriptors/path-builder.js +3 -25
- package/dist/render/descriptors/path-builder.js.map +1 -1
- package/dist/render/descriptors/path.d.ts +1 -11
- package/dist/render/descriptors/path.d.ts.map +1 -1
- package/dist/render/descriptors/path.js +0 -1
- package/dist/render/descriptors/path.js.map +1 -1
- package/dist/render/descriptors/polygon.d.ts.map +1 -1
- package/dist/render/descriptors/polygon.js +0 -1
- package/dist/render/descriptors/polygon.js.map +1 -1
- package/dist/render/descriptors/polygram.d.ts.map +1 -1
- package/dist/render/descriptors/polygram.js +0 -1
- package/dist/render/descriptors/polygram.js.map +1 -1
- package/dist/render/descriptors/rect.d.ts.map +1 -1
- package/dist/render/descriptors/rect.js +0 -1
- package/dist/render/descriptors/rect.js.map +1 -1
- package/dist/render/descriptors/richtext.d.ts.map +1 -1
- package/dist/render/descriptors/richtext.js +0 -1
- package/dist/render/descriptors/richtext.js.map +1 -1
- package/dist/render/descriptors/shape.d.ts +17 -77
- package/dist/render/descriptors/shape.d.ts.map +1 -1
- package/dist/render/descriptors/shape.js +13 -47
- package/dist/render/descriptors/shape.js.map +1 -1
- package/dist/render/descriptors/text.d.ts +15 -94
- package/dist/render/descriptors/text.d.ts.map +1 -1
- package/dist/render/descriptors/text.js +8 -50
- package/dist/render/descriptors/text.js.map +1 -1
- package/dist/render/descriptors/transform.d.ts +5 -16
- package/dist/render/descriptors/transform.d.ts.map +1 -1
- package/dist/render/descriptors/transform.js +1 -17
- package/dist/render/descriptors/transform.js.map +1 -1
- package/dist/render/graphics2d.d.ts +24 -116
- package/dist/render/graphics2d.d.ts.map +1 -1
- package/dist/render/graphics2d.js +23 -108
- package/dist/render/graphics2d.js.map +1 -1
- package/dist/render/measure-context.d.ts +5 -29
- package/dist/render/measure-context.d.ts.map +1 -1
- package/dist/render/measure-context.js.map +1 -1
- package/dist/render/null-render-context.d.ts +2 -20
- package/dist/render/null-render-context.d.ts.map +1 -1
- package/dist/render/null-render-context.js +2 -20
- package/dist/render/null-render-context.js.map +1 -1
- package/dist/render/render-context2d.d.ts +52 -208
- package/dist/render/render-context2d.d.ts.map +1 -1
- package/dist/render/render-context2d.js.map +1 -1
- package/dist/render/surface.d.ts +2 -19
- package/dist/render/surface.d.ts.map +1 -1
- package/dist/render/surface.js.map +1 -1
- package/dist/render/text-defaults.d.ts +1 -17
- package/dist/render/text-defaults.d.ts.map +1 -1
- package/dist/render/text-defaults.js +6 -40
- package/dist/render/text-defaults.js.map +1 -1
- package/dist/render/text-layout.d.ts +12 -55
- package/dist/render/text-layout.d.ts.map +1 -1
- package/dist/render/text-layout.js +2 -16
- package/dist/render/text-layout.js.map +1 -1
- package/dist/render3d/bounds3d.d.ts +10 -32
- package/dist/render3d/bounds3d.d.ts.map +1 -1
- package/dist/render3d/bounds3d.js +2 -12
- package/dist/render3d/bounds3d.js.map +1 -1
- package/dist/render3d/builders.d.ts +8 -35
- package/dist/render3d/builders.d.ts.map +1 -1
- package/dist/render3d/builders.js +8 -35
- package/dist/render3d/builders.js.map +1 -1
- package/dist/render3d/camera.d.ts +10 -57
- package/dist/render3d/camera.d.ts.map +1 -1
- package/dist/render3d/camera.js +4 -26
- package/dist/render3d/camera.js.map +1 -1
- package/dist/render3d/fill3d.d.ts +7 -45
- package/dist/render3d/fill3d.d.ts.map +1 -1
- package/dist/render3d/fill3d.js +15 -85
- package/dist/render3d/fill3d.js.map +1 -1
- package/dist/render3d/geometry.d.ts +18 -106
- package/dist/render3d/geometry.d.ts.map +1 -1
- package/dist/render3d/geometry.js +2 -20
- package/dist/render3d/geometry.js.map +1 -1
- package/dist/render3d/graphics3d.d.ts +29 -133
- package/dist/render3d/graphics3d.d.ts.map +1 -1
- package/dist/render3d/graphics3d.js +23 -110
- package/dist/render3d/graphics3d.js.map +1 -1
- package/dist/render3d/index.d.ts +1 -16
- package/dist/render3d/index.d.ts.map +1 -1
- package/dist/render3d/index.js +1 -16
- package/dist/render3d/index.js.map +1 -1
- package/dist/render3d/inert.d.ts.map +1 -1
- package/dist/render3d/inert.js +1 -14
- package/dist/render3d/inert.js.map +1 -1
- package/dist/render3d/light.d.ts +3 -26
- package/dist/render3d/light.d.ts.map +1 -1
- package/dist/render3d/light.js.map +1 -1
- package/dist/render3d/material.d.ts +13 -87
- package/dist/render3d/material.d.ts.map +1 -1
- package/dist/render3d/material.js +2 -16
- package/dist/render3d/material.js.map +1 -1
- package/dist/render3d/matrix4.d.ts +14 -68
- package/dist/render3d/matrix4.d.ts.map +1 -1
- package/dist/render3d/matrix4.js +11 -60
- package/dist/render3d/matrix4.js.map +1 -1
- package/dist/render3d/render-context3d.d.ts +13 -51
- package/dist/render3d/render-context3d.d.ts.map +1 -1
- package/dist/render3d/render-context3d.js +9 -21
- package/dist/render3d/render-context3d.js.map +1 -1
- package/dist/render3d/resources.d.ts +9 -53
- package/dist/render3d/resources.d.ts.map +1 -1
- package/dist/render3d/resources.js +8 -48
- package/dist/render3d/resources.js.map +1 -1
- package/dist/render3d/rounded-box.d.ts +7 -21
- package/dist/render3d/rounded-box.d.ts.map +1 -1
- package/dist/render3d/rounded-box.js +7 -46
- package/dist/render3d/rounded-box.js.map +1 -1
- package/dist/render3d/scene-settings.d.ts +20 -78
- package/dist/render3d/scene-settings.d.ts.map +1 -1
- package/dist/render3d/scene-settings.js.map +1 -1
- package/dist/render3d/scene3d.d.ts +11 -53
- package/dist/render3d/scene3d.d.ts.map +1 -1
- package/dist/render3d/scene3d.js +12 -59
- package/dist/render3d/scene3d.js.map +1 -1
- package/dist/render3d/segments.d.ts +2 -25
- package/dist/render3d/segments.d.ts.map +1 -1
- package/dist/render3d/segments.js +1 -11
- package/dist/render3d/segments.js.map +1 -1
- package/dist/render3d/texture.d.ts +25 -112
- package/dist/render3d/texture.d.ts.map +1 -1
- package/dist/render3d/texture.js +3 -27
- package/dist/render3d/texture.js.map +1 -1
- package/dist/render3d/tracking.d.ts +2 -19
- package/dist/render3d/tracking.d.ts.map +1 -1
- package/dist/render3d/tracking.js +2 -19
- package/dist/render3d/tracking.js.map +1 -1
- package/dist/render3d/transform.d.ts +14 -60
- package/dist/render3d/transform.d.ts.map +1 -1
- package/dist/render3d/transform.js +0 -2
- package/dist/render3d/transform.js.map +1 -1
- package/dist/render3d/vector3.d.ts +6 -48
- package/dist/render3d/vector3.d.ts.map +1 -1
- package/dist/render3d/vector3.js +4 -38
- package/dist/render3d/vector3.js.map +1 -1
- package/dist/render3d/walk.d.ts +3 -27
- package/dist/render3d/walk.d.ts.map +1 -1
- package/dist/render3d/walk.js +5 -33
- package/dist/render3d/walk.js.map +1 -1
- package/dist/runtime/asset-refine.d.ts +34 -20
- package/dist/runtime/asset-refine.d.ts.map +1 -1
- package/dist/runtime/asset-refine.js +127 -31
- package/dist/runtime/asset-refine.js.map +1 -1
- package/dist/runtime/asset-timeline.d.ts +14 -53
- package/dist/runtime/asset-timeline.d.ts.map +1 -1
- package/dist/runtime/asset-timeline.js +6 -27
- package/dist/runtime/asset-timeline.js.map +1 -1
- package/dist/runtime/asset-update.d.ts +7 -26
- package/dist/runtime/asset-update.d.ts.map +1 -1
- package/dist/runtime/asset-update.js +6 -18
- package/dist/runtime/asset-update.js.map +1 -1
- package/dist/runtime/audio-index.d.ts +0 -2
- package/dist/runtime/audio-index.d.ts.map +1 -1
- package/dist/runtime/audio-index.js +0 -2
- package/dist/runtime/audio-index.js.map +1 -1
- package/dist/runtime/builtin-context.d.ts +3 -9
- package/dist/runtime/builtin-context.d.ts.map +1 -1
- package/dist/runtime/builtin-context.js +3 -9
- package/dist/runtime/builtin-context.js.map +1 -1
- package/dist/runtime/clip-instance.d.ts +12 -39
- package/dist/runtime/clip-instance.d.ts.map +1 -1
- package/dist/runtime/clip-instance.js +21 -45
- package/dist/runtime/clip-instance.js.map +1 -1
- package/dist/runtime/clip-store.d.ts +26 -68
- package/dist/runtime/clip-store.d.ts.map +1 -1
- package/dist/runtime/clip-store.js +47 -81
- package/dist/runtime/clip-store.js.map +1 -1
- package/dist/runtime/engine.d.ts +31 -85
- package/dist/runtime/engine.d.ts.map +1 -1
- package/dist/runtime/engine.js +16 -49
- package/dist/runtime/engine.js.map +1 -1
- package/dist/runtime/frame-time.d.ts +4 -15
- package/dist/runtime/frame-time.d.ts.map +1 -1
- package/dist/runtime/frame-time.js +5 -12
- package/dist/runtime/frame-time.js.map +1 -1
- package/dist/runtime/index.d.ts +0 -1
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +0 -1
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/node-picking.d.ts +59 -139
- package/dist/runtime/node-picking.d.ts.map +1 -1
- package/dist/runtime/node-picking.js +87 -157
- package/dist/runtime/node-picking.js.map +1 -1
- package/dist/runtime/node-picking3d.d.ts +39 -96
- package/dist/runtime/node-picking3d.d.ts.map +1 -1
- package/dist/runtime/node-picking3d.js +98 -141
- package/dist/runtime/node-picking3d.js.map +1 -1
- package/dist/runtime/placement.d.ts +8 -17
- package/dist/runtime/placement.d.ts.map +1 -1
- package/dist/runtime/placement.js +7 -16
- package/dist/runtime/placement.js.map +1 -1
- package/dist/runtime/playback-controller.d.ts +78 -207
- package/dist/runtime/playback-controller.d.ts.map +1 -1
- package/dist/runtime/playback-controller.js +111 -226
- package/dist/runtime/playback-controller.js.map +1 -1
- package/dist/runtime/playback.d.ts +6 -14
- package/dist/runtime/playback.d.ts.map +1 -1
- package/dist/runtime/playback.js +6 -14
- package/dist/runtime/playback.js.map +1 -1
- package/dist/runtime/project-assets.d.ts +6 -14
- package/dist/runtime/project-assets.d.ts.map +1 -1
- package/dist/runtime/project-assets.js +7 -16
- package/dist/runtime/project-assets.js.map +1 -1
- package/dist/runtime/session.d.ts +22 -45
- package/dist/runtime/session.d.ts.map +1 -1
- package/dist/runtime/session.js +26 -46
- package/dist/runtime/session.js.map +1 -1
- package/dist/runtime/settle.d.ts +4 -10
- package/dist/runtime/settle.d.ts.map +1 -1
- package/dist/runtime/settle.js +4 -10
- package/dist/runtime/settle.js.map +1 -1
- package/dist/runtime/state-evaluator.d.ts +15 -37
- package/dist/runtime/state-evaluator.d.ts.map +1 -1
- package/dist/runtime/state-evaluator.js +27 -44
- package/dist/runtime/state-evaluator.js.map +1 -1
- package/dist/runtime/text-geometry.d.ts +18 -47
- package/dist/runtime/text-geometry.d.ts.map +1 -1
- package/dist/runtime/text-geometry.js +13 -27
- package/dist/runtime/text-geometry.js.map +1 -1
- package/dist/sdk/index.d.ts +1 -7
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +30 -138
- package/dist/sdk/index.js.map +1 -1
- package/dist/tween/command-decorator.d.ts +6 -26
- package/dist/tween/command-decorator.d.ts.map +1 -1
- package/dist/tween/command-decorator.js +1 -6
- package/dist/tween/command-decorator.js.map +1 -1
- package/dist/tween/command.d.ts +6 -53
- package/dist/tween/command.d.ts.map +1 -1
- package/dist/tween/command.js +5 -40
- package/dist/tween/command.js.map +1 -1
- package/dist/tween/ease/curve.d.ts +2 -17
- package/dist/tween/ease/curve.d.ts.map +1 -1
- package/dist/tween/ease/curve.js +1 -6
- package/dist/tween/ease/curve.js.map +1 -1
- package/dist/tween/ease/describe.d.ts +0 -11
- package/dist/tween/ease/describe.d.ts.map +1 -1
- package/dist/tween/ease/describe.js +0 -23
- package/dist/tween/ease/describe.js.map +1 -1
- package/dist/tween/ease/spec.d.ts +2 -18
- package/dist/tween/ease/spec.d.ts.map +1 -1
- package/dist/tween/ease/spec.js.map +1 -1
- package/dist/tween/inert.d.ts +1 -14
- package/dist/tween/inert.d.ts.map +1 -1
- package/dist/tween/inert.js +1 -14
- package/dist/tween/inert.js.map +1 -1
- package/dist/tween/lerp.d.ts +2 -26
- package/dist/tween/lerp.d.ts.map +1 -1
- package/dist/tween/lerp.js +2 -26
- package/dist/tween/lerp.js.map +1 -1
- package/dist/tween/loop.d.ts +9 -50
- package/dist/tween/loop.d.ts.map +1 -1
- package/dist/tween/loop.js +6 -31
- package/dist/tween/loop.js.map +1 -1
- package/dist/tween/prepare.d.ts +2 -30
- package/dist/tween/prepare.d.ts.map +1 -1
- package/dist/tween/prepare.js +2 -30
- package/dist/tween/prepare.js.map +1 -1
- package/dist/tween/stepper.d.ts +4 -25
- package/dist/tween/stepper.d.ts.map +1 -1
- package/dist/tween/stepper.js.map +1 -1
- package/dist/tween/to-command.d.ts +1 -8
- package/dist/tween/to-command.d.ts.map +1 -1
- package/dist/tween/to-command.js +2 -25
- package/dist/tween/to-command.js.map +1 -1
- package/dist/util/context.d.ts +4 -29
- package/dist/util/context.d.ts.map +1 -1
- package/dist/util/context.js +3 -15
- package/dist/util/context.js.map +1 -1
- package/dist/util/csv.d.ts +4 -29
- package/dist/util/csv.d.ts.map +1 -1
- package/dist/util/csv.js +3 -22
- package/dist/util/csv.js.map +1 -1
- package/dist/util/metrics.d.ts +2 -26
- package/dist/util/metrics.d.ts.map +1 -1
- package/dist/util/metrics.js +2 -26
- package/dist/util/metrics.js.map +1 -1
- package/dist/util/random.d.ts +20 -87
- package/dist/util/random.d.ts.map +1 -1
- package/dist/util/random.js +20 -87
- package/dist/util/random.js.map +1 -1
- package/dist/util/reference.d.ts +6 -35
- package/dist/util/reference.d.ts.map +1 -1
- package/dist/util/reference.js +1 -4
- package/dist/util/reference.js.map +1 -1
- package/dist/util/scheduler.d.ts +6 -27
- package/dist/util/scheduler.d.ts.map +1 -1
- package/dist/util/scheduler.js +8 -35
- package/dist/util/scheduler.js.map +1 -1
- package/package.json +1 -1
- package/dist/browser/chunks/chunk-4BDLFEOC.js.map +0 -7
- package/dist/browser/chunks/chunk-7DB6BI27.js +0 -6
- package/dist/browser/chunks/chunk-7DB6BI27.js.map +0 -7
- package/dist/browser/chunks/chunk-IX53IFBD.js +0 -13
- package/dist/browser/chunks/chunk-IX53IFBD.js.map +0 -7
- package/dist/browser/chunks/chunk-Q55UPA3E.js +0 -3
- package/dist/browser/chunks/chunk-Q55UPA3E.js.map +0 -7
- package/dist/renamed-scene-names.d.ts +0 -17
- package/dist/renamed-scene-names.d.ts.map +0 -1
- package/dist/renamed-scene-names.js +0 -9
- package/dist/renamed-scene-names.js.map +0 -1
- package/dist/runtime/precompisition.d.ts +0 -24
- package/dist/runtime/precompisition.d.ts.map +0 -1
- package/dist/runtime/precompisition.js +0 -7
- package/dist/runtime/precompisition.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
var m={plain:"#.#",number:"#,##0.##",currency:"$#,##0.00",percent:"#,##0.#%"},b={prefix:"",suffix:"",grouped:!1,minInt:1,minFrac:0,maxFrac:1,percent:!1};function g(n,e){let t=!1;for(let r of n){if(r==="'"){t=!t;continue}e(r,t)}}function p(n,e){let t=!1;return g(n,(r,c)=>{r===e&&!c&&(t=!0)}),t}function d(n,e){let t="",r=!1;for(let c of n){if(c==="'"){r=!r,t+=c;continue}c===e&&!r||(t+=c)}return t}function x(n){let e="";return g(n,t=>{e+=t}),e}function N(n){let e=!1,t=-1;for(let r=0;r<n.length;r++){let c=n[r];if(c==="'"){if(e=!e,t>=0)return[t,r];continue}let o=!e&&"#0,.".includes(c);if(o&&t<0)t=r;else if(!o&&t>=0)return[t,r]}return t<0?null:[t,n.length]}function P(n){let e=N(n);if(!e)return b;let t=n.slice(e[0],e[1]),r=n.slice(0,e[0]),c=n.slice(e[1]),o=p(r,"%")||p(c,"%"),f=x(o?d(r,"%"):r),s=x(o?d(c,"%"):c),u=t.indexOf("."),i=u<0?t:t.slice(0,u),a=u<0?"":t.slice(u+1),l=(F,$)=>F.split($).length-1;return{prefix:f,suffix:o?`${s}%`:s,grouped:i.includes(","),minInt:Math.max(1,l(i,"0")),minFrac:l(a,"0"),maxFrac:a.length,percent:o}}var h=new Map;function S(n){let e=h.get(n);if(e)return e;let t=P(n);return h.set(n,t),t}function y(n){return n.replace(/\B(?=(\d{3})+(?!\d))/g,",")}function I(n,e){if(!Number.isFinite(n))return"";let t=S(e),c=(t.percent?n*100:n).toFixed(t.maxFrac),o=c.startsWith("-"),[f="0",s=""]=(o?c.slice(1):c).split("."),u=f.padStart(t.minInt,"0"),i=s;for(;i.length>t.minFrac&&i.endsWith("0");)i=i.slice(0,-1);let a=(t.grouped?y(u):u)+(i?`.${i}`:"");return`${o&&Number(c)!==0?"-":""}${t.prefix}${a}${t.suffix}`}function M(n,e){if(n==="custom"){let t=e?.trim()??"";return t===""?m.plain:t}return m[n??"plain"]??m.plain}var E=["number","currency","percent","custom"],A=10;function T(n){if(n.format==="custom")return M("custom",n.customPattern);let e=Math.min(A,Math.max(0,Math.round(n.fractionDigits))),t=n.grouped?"#,##0":"0",r=e>0?`.${"0".repeat(e)}`:"",c=`${t}${r}`;return n.format==="currency"?`${D(n.currencySymbol)}${c}`:n.format==="percent"?`${c}%`:c}function D(n){let e=n.replaceAll("'","");return e===""?"":`'${e}'`}function w(n){if(n<=0)return 1;let e=Math.pow(10,Math.floor(Math.log10(n))),t=n/e;return(t<=1?1:t<=2?2:t<=5?5:10)*e}function q(n,e,t,r){let c=t?n*.3:0,o=Math.max(0,n-c),f=Math.max(0,e-1);if(r!==void 0)return{step:r,per:Math.max(0,o-r*f),caption:c};let s=o/(1+f/5);return{step:s/5,per:s,caption:c}}export{m as a,I as b,M as c,E as d,A as e,T as f,w as g,q as h};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-GEJEQQER.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/builtins/text/number-format.ts", "../../../src/components/builtins/text/number-pattern.ts", "../../../src/util/metrics.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * How a chart writes a number down: one formatter driven by a **pattern**, with the named formats being patterns\n * too (`currency` is `$#,##0.00`), so a preset and a free-text pattern can't drift apart.\n *\n * The grammar is the spreadsheet one:\n *\n * | Pattern | 1234.5 | 0.07 |\n * | ------------ | --------- | ------ |\n * | `#,##0.##` | `1,234.5` | `0.07` |\n * | `0` | `1235` | `0` |\n * | `$#,##0.00` | `$1,234.50` | `$0.07` |\n * | `0.#%` | `123450%` | `7%` |\n * | `#,##0 kg` | `1,235 kg` | `0 kg` |\n *\n * - `0` is a digit always written, `#` one written only when needed (`0.00` pads, `0.##` trims).\n * - A `,` anywhere in the integer run turns grouping on; where it sits doesn't matter.\n * - `%` scales by 100 as well as printing (`0.07` under `0.#%` is `7%`). A column already in percent points wants\n * `#,##0'%'`: quoted, so the sign prints and nothing scales.\n * - Anything else is literal, before or after the digits. Quote it to be sure: `'#'#,##0` prints a leading hash.\n *\n * Deliberately **not** `Intl.NumberFormat`: its output is locale-dependent, and a chart is a picture with a fixed\n * layout (`1,234.50` on the author's machine and `1.234,50` on the export box is a silently different image that\n * can reflow an axis).\n */\n\n/** The named formats the inspector offers, plus the escape hatch. */\nexport type NumberFormatName = \"plain\" | \"number\" | \"currency\" | \"percent\" | \"custom\"\n\n/** The pattern behind each named format. `plain` is the historic behaviour (integers bare, else one decimal), the default so no existing chart re-labels itself. */\nexport const NUMBER_PATTERNS: Record<Exclude<NumberFormatName, \"custom\">, string> = {\n // Ungrouped on purpose: the default, so every chart already drawn keeps its labels; grouping is what `number` is for.\n plain: \"#.#\",\n number: \"#,##0.##\",\n currency: \"$#,##0.00\",\n percent: \"#,##0.#%\",\n}\n\n/** A pattern taken apart once, so formatting a tick is not a parse. */\ninterface ParsedPattern {\n prefix: string\n suffix: string\n grouped: boolean\n /** Digits always written left of the point — the count of `0`s there. */\n minInt: number\n /** Digits always written right of it. */\n minFrac: number\n /** The most that may be written right of it. */\n maxFrac: number\n /** Scale by 100 and print a `%`. */\n percent: boolean\n}\n\n/** What a pattern with no digits in it falls back to: the `plain` reading. */\nconst DEFAULT_PARSED: ParsedPattern = {\n prefix: \"\",\n suffix: \"\",\n grouped: false,\n minInt: 1,\n minFrac: 0,\n maxFrac: 1,\n percent: false,\n}\n\n/** Walk `text`, calling `visit` with each character and whether it is quoted. */\nfunction scan(text: string, visit: (ch: string, quoted: boolean) => void): void {\n let quoted = false\n for (const ch of text) {\n if (ch === \"'\") {\n quoted = !quoted\n continue\n }\n visit(ch, quoted)\n }\n}\n\n/** Does `text` hold `ch` outside quotes? */\nfunction hasBare(text: string, ch: string): boolean {\n let found = false\n scan(text, (c, quoted) => {\n if (c === ch && !quoted) found = true\n })\n return found\n}\n\n/** `text` with every unquoted `ch` dropped, quoting preserved. */\nfunction removeBare(text: string, ch: string): string {\n let out = \"\"\n let quoted = false\n for (const c of text) {\n if (c === \"'\") {\n quoted = !quoted\n out += c\n continue\n }\n if (c === ch && !quoted) continue\n out += c\n }\n return out\n}\n\n/** `text` with its quotes taken off — what actually gets printed. */\nfunction literal(text: string): string {\n let out = \"\"\n scan(text, (ch) => {\n out += ch\n })\n return out\n}\n\n/** The `[start, end)` of the pattern's digit run (the first stretch of `#0,.` outside quotes). Quote-aware, so `'#'#,##0` reads its leading hash as text rather than taking it for the number. */\nfunction digitRun(pattern: string): [number, number] | null {\n let quoted = false\n let start = -1\n for (let i = 0; i < pattern.length; i++) {\n const ch = pattern[i]\n if (ch === \"'\") {\n quoted = !quoted\n if (start >= 0) return [start, i]\n continue\n }\n const isDigit = !quoted && \"#0,.\".includes(ch)\n if (isDigit && start < 0) start = i\n else if (!isDigit && start >= 0) return [start, i]\n }\n return start < 0 ? null : [start, pattern.length]\n}\n\n/** Splits `pattern` into literal edges and a digit run: everything before is prefix, after is suffix, so `$#,##0.00`, `#,##0 kg` and `€ #,##0` work without a quoting rule for text. */\nfunction parsePattern(pattern: string): ParsedPattern {\n const run = digitRun(pattern)\n if (!run) {\n // No digits is not a number format; fall back rather than print the same literal for every tick.\n return DEFAULT_PARSED\n }\n\n const digits = pattern.slice(run[0], run[1])\n const rawPrefix = pattern.slice(0, run[0])\n const rawSuffix = pattern.slice(run[1])\n\n // An **unquoted** `%` is the percent operator; a quoted one is a sign the\n // author wants printed over data that is already in percent points.\n const percent = hasBare(rawPrefix, \"%\") || hasBare(rawSuffix, \"%\")\n const prefix = literal(percent ? removeBare(rawPrefix, \"%\") : rawPrefix)\n const suffix = literal(percent ? removeBare(rawSuffix, \"%\") : rawSuffix)\n\n const point = digits.indexOf(\".\")\n const intPart = point < 0 ? digits : digits.slice(0, point)\n const fracPart = point < 0 ? \"\" : digits.slice(point + 1)\n\n const count = (s: string, ch: string) => s.split(ch).length - 1\n\n return {\n prefix,\n suffix: percent ? `${suffix}%` : suffix,\n grouped: intPart.includes(\",\"),\n minInt: Math.max(1, count(intPart, \"0\")),\n minFrac: count(fracPart, \"0\"),\n maxFrac: fracPart.length,\n percent,\n }\n}\n\n/** Parsed patterns are reused across every tick of every frame. */\nconst cache = new Map<string, ParsedPattern>()\n\nfunction parsed(pattern: string): ParsedPattern {\n const held = cache.get(pattern)\n if (held) return held\n const next = parsePattern(pattern)\n cache.set(pattern, next)\n return next\n}\n\n/** `1234567` → `1,234,567`. Only the integer run is grouped. */\nfunction group(digits: string): string {\n return digits.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")\n}\n\n/** `value` written as `pattern` says. A non-finite value prints empty: `NaN` on an axis reads as a broken chart rather than missing data. */\nexport function formatNumber(value: number, pattern: string): string {\n if (!Number.isFinite(value)) return \"\"\n const p = parsed(pattern)\n\n const scaled = p.percent ? value * 100 : value\n const rounded = scaled.toFixed(p.maxFrac)\n // Rounding decides the sign, not the input: -0.001 at two decimals is \"0.00\", not \"-0.00\".\n const negative = rounded.startsWith(\"-\")\n const [rawInt = \"0\", rawFrac = \"\"] = (\n negative ? rounded.slice(1) : rounded\n ).split(\".\")\n\n const intDigits = rawInt.padStart(p.minInt, \"0\")\n // `#` trims, `0` pads: drop trailing zeros down to the required minimum.\n let frac = rawFrac\n while (frac.length > p.minFrac && frac.endsWith(\"0\")) frac = frac.slice(0, -1)\n\n const body = (p.grouped ? group(intDigits) : intDigits) + (frac ? `.${frac}` : \"\")\n const sign = negative && Number(rounded) !== 0 ? \"-\" : \"\"\n return `${sign}${p.prefix}${body}${p.suffix}`\n}\n\n/** The pattern a `(format, custom)` pair names. A blank custom pattern falls back to the plain one, so an axis switched to Custom is readable while being typed into. */\nexport function patternFor(\n format: NumberFormatName | undefined,\n custom: string | undefined\n): string {\n if (format === \"custom\") {\n const trimmed = custom?.trim() ?? \"\"\n return trimmed === \"\" ? NUMBER_PATTERNS.plain : trimmed\n }\n return NUMBER_PATTERNS[format ?? \"plain\"] ?? NUMBER_PATTERNS.plain\n}\n", "/** The Number node's format controls, resolved into the one pattern the app's formatter takes (`./number-format` is the single answer to \"how is a number written down\"; its docblock has the grammar). The controls compose a pattern rather than sitting beside one, so a Number node showing `$1,234.50` and an axis labelled `$#,##0.00` go through the same parser and round alike, which would drift if the node used `Intl.NumberFormat`. */\n\nimport { patternFor } from \"./number-format\";\n\n/** How a Number node writes its figure: the chart's formats minus `plain`, which exists there only to keep pre-format charts labelling as they always did. */\nexport const NUMBER_NODE_FORMATS = [\n \"number\",\n \"currency\",\n \"percent\",\n \"custom\",\n] as const\n\n/** The most decimals the panel will let a figure carry. */\nexport const MAX_FRACTION_DIGITS = 10\n\nexport interface NumberFormatOptions {\n format: string\n /** The pattern typed by hand — read only when the format is `custom`. */\n customPattern: string\n fractionDigits: number\n grouped: boolean\n /** Printed before the figure when the format is `currency`. */\n currencySymbol: string\n}\n\n/** The pattern `options` names. `custom` goes straight to {@link patternFor}, so the escape hatch is the same language as the presets. Other formats are composed here, since decimals, grouping and symbol controls would otherwise need a preset duplicated per combination. */\nexport function numberNodePattern(options: NumberFormatOptions): string {\n if (options.format === \"custom\") {\n return patternFor(\"custom\", options.customPattern)\n }\n\n const digits = Math.min(\n MAX_FRACTION_DIGITS,\n Math.max(0, Math.round(options.fractionDigits))\n )\n const integer = options.grouped ? \"#,##0\" : \"0\"\n const fraction = digits > 0 ? `.${\"0\".repeat(digits)}` : \"\"\n const body = `${integer}${fraction}`\n\n if (options.format === \"currency\") {\n return `${quoted(options.currencySymbol)}${body}`\n }\n // Bare, so the parser reads it as the percent *operator* and scales by 100 (a stored 0.42 reads \"42%\"). A sign printed\n // over data already in percent points is a custom pattern with the sign quoted.\n if (options.format === \"percent\") return `${body}%`\n return body\n}\n\n/** `symbol` as a pattern literal, quoted because an unquoted `#`, `0`, `,`, `.` or `%` in a typed symbol would read as part of the number. The quote character itself is dropped: the grammar has no escape for it. */\nfunction quoted(symbol: string): string {\n const literal = symbol.replaceAll(\"'\", \"\")\n return literal === \"\" ? \"\" : `'${literal}'`\n}\n", "/** Two numbers a component needs that belong to none of them: written for the chart family but used well outside it (a graph rounds ticks with one, a diagram divides its entrance with the other), so keeping them there would make a non-chart package depend on charts. */\n\n/** Round a raw step up to a tidy value (1/2/5 × 10ⁿ) so markers land round. */\nexport function niceStep(raw: number): number {\n if (raw <= 0) return 1\n const mag = Math.pow(10, Math.floor(Math.log10(raw)))\n const norm = raw / mag\n const nice = norm <= 1 ? 1 : norm <= 2 ? 2 : norm <= 5 ? 5 : 10\n return nice * mag\n}\n\n/** Divides an axis's staggered entrance so the whole thing fits inside `duration`. The ported components read `duration` as one marker's slide and then added stagger and a caption move, so `enter(0.8)` on five markers took ~2.2 s; an editor lays a command at its declared duration and sums those into the scene's length, so an overrun renders in the wrong place. The caption takes a fixed share off the top and the per-marker move is solved from what's left, given the stagger. */\nexport function enterBudget(\n duration: number,\n count: number,\n hasCaption: boolean,\n /** An explicit gap between markers; derived from `duration` when omitted. */\n stagger?: number\n): { step: number; per: number; caption: number } {\n // The caption lands *after* the last marker, so it needs its own slice.\n const caption = hasCaption ? duration * 0.3 : 0\n const markers = Math.max(0, duration - caption)\n const gaps = Math.max(0, count - 1)\n\n if (stagger !== undefined) {\n // An explicit gap wins; the per-marker move takes whatever is left, and\n // can't go negative on an axis with more markers than budget.\n return {\n step: stagger,\n per: Math.max(0, markers - stagger * gaps),\n caption,\n }\n }\n // Default rhythm: each gap is a fifth of a marker's own move, which is the\n // ratio the original used — solved for here rather than assumed.\n const per = markers / (1 + gaps / 5)\n return { step: per / 5, per, caption }\n}\n"],
|
|
5
|
+
"mappings": "AA6BO,IAAMA,EAAuE,CAElF,MAAO,MACP,OAAQ,WACR,SAAU,YACV,QAAS,YAmBLC,EAAgC,CACpC,OAAQ,GACR,OAAQ,GACR,QAAS,GACT,OAAQ,EACR,QAAS,EACT,QAAS,EACT,QAAS,IAIX,SAASC,EAAKC,EAAcC,EAA4C,CACtE,IAAIC,EAAS,GACb,QAAWC,KAAMH,EAAM,CACrB,GAAIG,IAA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EAAE,EACzC,OAAOC,IAAY,GAAK,GAAK,IAAIA,CAAO,GAC1C,CCjDM,SAAUC,EAASC,EAAW,CAClC,GAAIA,GAAO,EAAG,MAAO,GACrB,IAAMC,EAAM,KAAK,IAAI,GAAI,KAAK,MAAM,KAAK,MAAMD,CAAG,CAAC,CAAC,EAC9CE,EAAOF,EAAMC,EAEnB,OADaC,GAAQ,EAAI,EAAIA,GAAQ,EAAI,EAAIA,GAAQ,EAAI,EAAI,IAC/CD,CAChB,CAGM,SAAUE,EACdC,EACAC,EACAC,EAEAC,EAAgB,CAGhB,IAAMC,EAAUF,EAAaF,EAAW,GAAM,EACxCK,EAAU,KAAK,IAAI,EAAGL,EAAWI,CAAO,EACxCE,EAAO,KAAK,IAAI,EAAGL,EAAQ,CAAC,EAElC,GAAIE,IAAY,OAGd,MAAO,CACL,KAAMA,EACN,IAAK,KAAK,IAAI,EAAGE,EAAUF,EAAUG,CAAI,EACzC,QAAAF,GAKJ,IAAMG,EAAMF,GAAW,EAAIC,EAAO,GAClC,MAAO,CAAE,KAAMC,EAAM,EAAG,IAAAA,EAAK,QAAAH,CAAO,CACtC",
|
|
6
|
+
"names": ["NUMBER_PATTERNS", "DEFAULT_PARSED", "scan", "text", "visit", "quoted", "ch", "hasBare", "found", "c", "removeBare", "out", "literal", "digitRun", "pattern", "start", "i", "isDigit", "parsePattern", "run", "digits", "rawPrefix", "rawSuffix", "percent", "prefix", "suffix", "point", "intPart", "fracPart", "count", "s", "cache", "parsed", "held", "next", "group", "formatNumber", "value", "p", "rounded", "negative", "rawInt", "rawFrac", "intDigits", "frac", "body", "patternFor", "format", "custom", "trimmed", "NUMBER_NODE_FORMATS", "MAX_FRACTION_DIGITS", "numberNodePattern", "options", "patternFor", "digits", "integer", "fraction", "body", "quoted", "symbol", "literal", "niceStep", "raw", "mag", "norm", "enterBudget", "duration", "count", "hasCaption", "stagger", "caption", "markers", "gaps", "per"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as p,b as t,c as x,d as a,e as b,f as c,g as v,h as w}from"./chunks/chunk-
|
|
1
|
+
import{a as p,b as t,c as x,d as a,e as b,f as c,g as v,h as w}from"./chunks/chunk-GEJEQQER.js";import{A as q,B as s,C as u,n as o,o as r,p as e,q as f,r as m,s as d,t as g,u as h,v as i,w as j,x as k,y as l,z as n}from"./chunks/chunk-5TDMGUXQ.js";export{b as MAX_FRACTION_DIGITS,a as NUMBER_NODE_FORMATS,p as NUMBER_PATTERNS,r as STAR_DEFAULT_POINTS,o as STAR_DEFAULT_RATIO,q as cameraOrbit,w as enterBudget,t as formatNumber,m as hasShapeOutline,g as hostTextFamily,i as lerpColor3D,k as lerpCount,j as lerpFinite,v as niceStep,c as numberNodePattern,s as orbitPosition,u as orbitProps,x as patternFor,h as resolveColor3D,d as setHostTextFamily,f as shapeOutline,e as shapeOutlinePixels,n as snapFlag,l as snapValue};
|
|
2
2
|
//# sourceMappingURL=component.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ee as d,Fe as m,Ge as p,Kd as o,Ld as r,Od as s,Re as f,Sd as n,Td as t,We as _,Yd as a,ee as c,ie as x,te as i,ye as e}from"./chunks/chunk-7YOYMMXK.js";import"./chunks/chunk-5TDMGUXQ.js";var v=o,w=m,S=p,h=t,C=r,D=e;export{x as Aim,s as Corners,n as Flow,f as Material,a as Paint,c as Shapes,i as TextLayout,d as TextStyle,C as Types,_ as View3D,h as commandsFor,v as component2d,S as component3d,w as componentAudio,D as provides};
|
|
2
2
|
//# sourceMappingURL=experimental.js.map
|
package/dist/browser/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{$ as Hs,$a as Gi,$b as qa,A as cs,Aa as _i,Ab as wa,Ac as gn,B as hs,Ba as Ai,Bb as ya,Bc as xn,C as ls,Ca as Pi,Cb as _a,Cc as un,D as gs,Da as Ti,Db as Aa,Dc as wn,E as xs,Ea as Fi,Eb as Pa,Ec as yn,F as us,Fa as Li,Fb as Ta,Fc as _n,G as ws,Ga as Si,Gb as Fa,Gc as An,H as ys,Ha as Ei,Hb as La,Hc as T,I as _s,Ia as Ni,Ib as Sa,Ic as Pn,J as bs,Ja as bi,Jb as Ea,Jc as F,K as Ds,Ka as Di,Kb as Na,Kc as L,L as Ms,La as Mi,Lb as ba,Lc as l,M as Us,Ma as Ui,Mb as Da,Mc as Tn,N as Cs,Na as Ci,Nb as Ma,Nc as Fn,O as vs,Oa as vi,Ob as Ua,Oc as Ln,P as Vs,Pa as Vi,Pb as Ca,Pc as Sn,Q as Is,Qa as Ii,Qb as va,Qc as bn,R as Ws,Ra as Wi,Rb as Va,Rc as Dn,S as Ks,Sa as Ki,Sb as A,Sc as Mn,T as Rs,Ta as Ri,Tb as P,Tc as Un,U as $s,Ua as $i,Ub as Ia,V as js,Va as ji,Vb as Wa,W as Ys,Wa as Yi,Wb as Ka,X as qs,Xa as qi,Xb as Ra,Y as zs,Ya as f,Yb as $a,Z as Bs,Za as zi,Zb as ja,_ as Gs,_a as Bi,_b as Ya,a as or,aa as Js,ab as Hi,ac as za,b as sr,ba as Qs,bb as Ji,bc as Ba,c as ir,ca as Xs,cb as Qi,cc as Ga,d as ar,da as Zs,db as Xi,dc as Ha,e as nr,ea as ks,eb as Zi,ec as Ja,f as dr,fa as Os,fb as m,fc as Qa,g as pr,ga as ei,gb as ki,gc as Xa,h as fr,ha as ti,hb as Oi,hc as Za,i as mr,ia as ri,ib as ea,ic as ka,j as Vr,ja as oi,jb as ta,jc as Oa,k as Ir,ka as si,kb as ra,kc as c,l as Wr,la as ii,lb as oa,lc as h,m as Kr,ma as ai,mb as sa,mc as en,n as Ao,na as ni,nb as ia,nc as tn,o as Po,oa as di,ob as aa,oc as rn,p as To,pa as pi,pb as na,pc as on,q as Fo,qa as fi,qb as da,qc as sn,r as Do,ra as mi,rb as pa,rc as an,s as ss,sa as ci,sb as fa,sc as nn,t as is,ta as hi,tb as ma,tc as dn,u as as,ua as li,ub as ca,uc as pn,v as ns,va as gi,vb as ha,vc as fn,w as ds,wa as xi,wb as la,wc as mn,x as ps,xa as ui,xb as ga,xc as cn,y as fs,ya as wi,yb as xa,yc as hn,z as ms,za as yi,zb as ua,zc as ln}from"./chunks/chunk-IX53IFBD.js";import{$ as Ue,$a as Ct,A as ae,Aa as ot,Ab as cr,Ad as Qo,Ae as Es,B as ne,Ba as st,Bb as hr,Bd as Xo,Be as Ns,C as de,Ca as it,Cb as lr,Cc as ro,Cd as Zo,D as pe,Da as at,Db as gr,Dc as oo,Dd as ko,E as fe,Ea as nt,Eb as xr,Ed as Oo,Fa as dt,Fb as ur,Fc as so,Fd as es,G as me,Ga as pt,Gb as wr,Gc as s,H as ce,Ha as ft,Hb as yr,Hc as io,Hd as ts,I as he,Ib as _r,Ic as ao,J as le,Ja as mt,Jb as Ar,Jc as no,K as ge,Ka as ct,Kb as Pr,Kc as po,Kd as rs,L as xe,Lb as Tr,Lc as fo,Ld as os,M as ue,Ma as ht,Mb as Fr,Mc as mo,N as we,Na as yt,Nb as Lr,Nc as co,O as ye,Oa as _t,Ob as Sr,Oc as ho,P as _e,Pa as At,Pc as lo,Q as Ae,Qa as Pt,Qc as go,R as Pe,Ra as Tt,Rb as Er,Rc as xo,S as Te,Sa as Ft,Sb as Nr,T as Fe,Ta as Lt,Tb as br,U as Le,Ua as St,Ub as Dr,V as Se,Va as Et,Vb as Mr,W as Ee,Wa as Nt,Wb as Ur,Wc as uo,X as Ne,Xa as bt,Xb as Cr,Y as be,Ya as Dt,Yb as vr,Z as De,Za as Mt,_ as Me,_a as Ut,a as E,aa as Ce,ab as vt,ac as y,ad as wo,b as N,ba as ve,bb as Vt,bd as yo,c as b,ca as Ve,cb as It,cd as _o,d as U,da as Ie,db as Wt,dd as Lo,e as C,ea as We,eb as Kt,ed as So,f as v,fa as Ke,fb as Rt,fd as Eo,g as $,gd as No,h as j,ha as Re,hb as $t,hd as bo,i as Y,ia as $e,ib as jt,ic as Rr,id as Mo,j as q,ja as je,jb as Yt,jc as $r,jd as Uo,k as z,ka as Ye,kb as qt,kc as jr,kd as Co,l as B,la as qe,lb as zt,lc as Yr,ld as vo,m as G,ma as ze,mb as Bt,mc as qr,md as Vo,me as As,n as H,na as Be,nb as Gt,nc as zr,nd as Io,ne as Ps,o as J,oa as Ge,ob as Ht,oc as Br,od as Wo,oe as Ts,p as Q,pa as He,pb as Jt,pc as Gr,pd as Ko,pe as Fs,q as X,qb as Qt,qc as Hr,qd as Ro,r as Z,ra as Je,rb as Xt,rc as Jr,rd as $o,s as k,sa as Qe,sb as Zt,sc as Qr,sd as jo,t as O,ta as Xe,tb as kt,tc as Xr,td as Yo,u as ee,ua as Ze,ub as Ot,uc as Zr,ud as qo,v as te,va as ke,vb as d,vc as kr,vd as zo,w as re,wa as Oe,wb as p,wc as Or,wd as Bo,x as oe,xa as et,xb as er,xc as eo,xd as Go,y as se,ya as tt,yb as tr,yc as to,yd as Ho,ye as Ls,z as ie,za as rt,zb as rr,zc as _,zd as Jo,ze as Ss}from"./chunks/chunk-7DB6BI27.js";import{g as En,h as Nn}from"./chunks/chunk-4BDLFEOC.js";import{b as D,c as M,d as V,e as I,f as W,g as K,h as R,i as lt,j as gt,k as xt,l as ut,m as wt}from"./chunks/chunk-Q55UPA3E.js";var vn=h,Vn=c;var x={width:1920,height:1080},u=60,Rn={viewport:x,fps:u},S={image:{},video:{},audio:{},font:{}},g=class{platform;viewport;fps;constructor(e,t={}){this.platform=e,this._registry=new f({nodes:t.nodes,shaders:t.shaders,lerps:t.lerps,dynamicNodes:t.dynamicNodes,strict:t.strict}),this.viewport=t.viewport??x,this.fps=t.fps??u,this._manifest=t.manifest??S,this._exporter=e.createExporter()}get manifest(){return this._manifest}get exporter(){return this._exporter}setManifest(e){this._manifest=e;for(let t of this._manifestListeners)t(e)}open(e){return new l(this,e)}knows(e){return this._registry.hasNode(e)}get registry(){return this._registry}async registerNode(e,t){return typeof e=="string"?this._registry.addNodeFromSource(e,t):(this._registry.addNode(e,t),e)}registerShader(e,t,r){return this._registry.addShader(e,t,r)}dispose(){this._manifestListeners.clear(),this.platform.dispose?.()}_registry;_manifest;_exporter;_manifestListeners=new Set;_onManifestChange(e){return this._manifestListeners.add(e),()=>this._manifestListeners.delete(e)}};var i=class{get schedulesAudio(){return!0}setMuted(e){}setVolume(e){}dispose(){this.stop()}};var a=class{catalog;viewport;constructor(e,t){this.catalog=e,this.viewport=t}setCatalog(e){this.catalog=e}inFlightLoads=new Map;cachedAssets=new Set;isLoaded(e){return this.cachedAssets.has(e)}async loadAsset(e,t){let r=this.inFlightLoads.get(e);if(r)return r;if(this.cachedAssets.has(e))return;let o=this.runLoad(e,t);this.inFlightLoads.set(e,o);try{await o}finally{this.inFlightLoads.delete(e)}}async runLoad(e,t){let r=!0;switch(t.type){case"image":await this.loadImage(e);break;case"video":await this.loadVideo(e,t.startFrame,t.endFrame,t.trimStart,t.trimEnd);break;case"font":{let{fontFamily:o,fontWeight:w}=this.parseFontKey(e);if(r=await this.loadFont(e,o,w),!r&&this.getDecodePolicy()==="exact")throw new s("font",o,`The manifest has no font entry for "${o}", so this frame would be shaped against the fallback face and differ from the one drawn once it is described. Add the family to the manifest's font record.`);break}case"audio":break;case"loader":throw new Error("Loader records must not be routed through StorageAdapter.loadAsset");default:{let o=t;throw new Error(`Unsupported asset type: ${o.type}`)}}r&&this.cachedAssets.add(e)}parseFontKey(e){let[t,r]=e.split("@"),o=r?parseInt(r,10):400;return{fontFamily:t||e,fontWeight:isNaN(o)?400:o}}async warmPendingVideo(){return!1}setDecodePolicy(e){}getDecodePolicy(){return"interactive"}hasPendingDecodes(){return!1}async warmPendingDecodes(){return this.warmPendingVideo()}hasPendingUpgrades(){return!1}async warmPendingUpgrades(){return!1}setPlaying(e){}dispose(){this.inFlightLoads.clear(),this.cachedAssets.clear()}};var id=m,ad=d,nd=p;export{Q as ASCII_CHARSETS,Ji as AUDIO_ROOT_ID,As as AUTOFIT_PROBE_SIZE,be as AdjustmentChain,Me as Adjustments,di as AmbientLight3D,hi as AreaLight3D,P as AssetDeclaration,A as AssetManager,s as AssetNotLoadedError,h as AssetTimeline,Is as AudioBus,er as AudioEffectChain,cr as AudioEffectRegistry,tr as AudioEffects,i as AudioSink,Z as BLEND_MODES_LIST,xs as BooleanGroup,Ys as Box3D,ro as COMMAND_META,ws as Camera,li as Camera3D,Do as Canvas2D,ui as Canvas3D,rs as CanvasRenderContext2D,Zs as Capsule3D,Qs as Circle3D,uo as Clip,Ja as ClipInstance,Xa as ClipStore,m as ClipTimeline,Gs as Cone3D,to as ContextMap,Bs as Cylinder3D,Pt as DEFAULT_CAP_SCALE,Mt as DEFAULT_EASE,u as DEFAULT_FPS,Rn as DEFAULT_OUTPUT,Qa as DEFAULT_PRECOMP_BUDGET_MS,x as DEFAULT_VIEWPORT,Ui as DOCUMENT_FORMAT_VERSION,vi as DOCUMENT_MIGRATIONS,Je as DRAWABLE_KINDS,Es as DataToken,Us as DefaultTextStyle,fi as DirectionalLight3D,Ci as DocumentTooNewError,z as EFFECT_OPTION_KEYS,S as EMPTY_MANIFEST,lt as EMPTY_PATH_DATA,Ur as EMPTY_TEXT_STYLE,he as EffectChain,le as Effects,is as Ellipse,g as Engine,xi as Environment3D,Oo as ExpressionError,Os as Extrude3D,_e as FillChain,Ae as Fills,gi as Fog3D,na as Geo,$e as Graphics2D,Xe as Graphics3D,$s as Group3D,pi as HemisphereLight3D,hs as Hexagon,co as IDENTITY_QUATERNION,Ce as ImageFilters,ri as Instances3D,ei as Lathe3D,si as Line3D,Ir as MAX_SHADER_PROPERTIES,Wr as MAX_SHADER_SOURCE,Te as MINOR_WIDTH_RATIO,va as MUTABLE_MATERIAL_KEYS,T as ManifestAssetCatalog,us as MaskGroup,da as Mat,js as Mesh3D,ai as Model3D,ni as ModelView3D,Co as NODE_META,Pr as NO_PROJECTION_3D,so as Node,wo as Node2D,Uo as Node3D,Lo as NodeAudio,k as NodeBlendModes,os as NullRenderContext,Ds as NumberNode,ls as Octagon,ys as OrbitCamera,gt as PATH_UNIT_EXTENT,xt as PATH_UNIT_HALF,ps as Path,Re as PathBuilder,ds as PathShape,cs as Pentagon,zs as Plane3D,Pn as Playback,_n as PlaybackController,mi as PointLight3D,oi as Points3D,as as Polygon,ns as Polygram,ks as Polyhedron3D,vn as Precomp,y as PropSlot,Cs as Provider,Pi as ROOT_NODE_ID,Yt as RampChain,Mn as Random,ss as Rect,f as Registry,ia as RenderBackendError,Ze as RenderContext3D,Ms as RichText,ms as RightTriangle,Xs as Ring3D,_s as RotatedBox,ka as SETTLE_PASSES,Io as SHAPE_ALIGNMENT_KEYS,Va as STRUCTURAL_MATERIAL_KEYS,Oe as Scene3D,id as SceneTimeline,Dn as SeedGenerator,Ns as SeedToken,l as Session,ar as Sound,Vs as SoundNode,qs as Sphere3D,ci as SpotLight3D,ii as Sprite3D,gs as Star,Za as StateEvaluator,L as SteppedClock,a as StorageAdapter,nt as TEXTURE_KEYS,Mr as TEXT_SHAPING_KEYS,Dr as TEXT_STYLE_KEYS,pa as Tex,bs as Text,Ls as TextStyleToken,vs as ThemeProvider,Ss as ThemeToken,F as Ticker,Hs as Torus3D,Js as TorusKnot3D,fs as Triangle,ti as Tube3D,ut as UNIT_PATH_BOX,Ws as Video,De as VideoAdjustmentChain,Ue as VideoAdjustments,ve as VideoFilters,ae as WGSL_CONTRACT,Ka as __resetSchedulerForTests,Ie as alignmentOps,Fo as applyEditorStates,Aa as applyMatrix4,wr as applyToPoint,Mi as asProjectDocument,$i as assertValidDocument,Ri as assertValidProjectDocument,hr as audioEffectsOps,Ot as audioParamOps,we as backdropEffects,So as busPathOf,Eo as busPathTo,mr as busStopKey,_r as cameraMatrix,mt as canLerpFill,et as canvas3DResourceKey,it as canvas3DResourceLoader,ra as caretCount,wn as caretOffsetAt,yn as caretRangeQuads,ba as centeredBox3,nn as childPlanePointAt,bt as clamp,Dt as clamp01,Zi as clipDocument,ir as clipDurationOf,Ra as clipFrameToTime,or as clipTimeAtSource,$a as clipTimeToFrame,xn as collectBoxes,tn as collectBoxes3D,H as colorOps,Zr as commandParallel,Xr as commandSequence,Ni as commandSpan,Pa as compose4,Go as containsClip,Ho as containsOps,U as cornerRadiusOps,C as cornerStyleOps,Ma as corners3,c as createAssetTimelineProfile,eo as createContext,Vn as createPrecompProfile,bn as createRef,Rt as curveEase,Wt as curveSegmentT,It as curveSegments,ga as cylinderRadii,de as describeEffect,ko as distanceToSegment,bi as documentDuration,Vi as documentFormatVersion,Jr as driveCommand,Ct as easeIn,Vt as easeInOut,$t as easeOfSpec,vt as easeOut,pe as effectDescriptors,fe as effectSurface,Fi as effectiveSpan,Si as effectiveSpanIn,Li as effectiveSpans,nr as effectsKey,xe as effectsOps,Nn as enterBudget,kt as equalsParam,mo as euler3Ops,ua as evaluateParametric,ma as evaluateRoundedBox,es as expressionOps,Fr as facesAway,ht as fillOps,Ee as filterSurface,No as findBusById,yo as findNode2D,io as flowOps,pt as forEachTexture3D,ye as foregroundShaderEffects,_o as frameIn,ja as frameSpecAtTime,Ga as frameTime,Sn as generateList,Ca as geometryBounds3D,O as getBlendModeHash,oo as getCommandMeta,vo as getNodeDescriptor,_ as getPropSlot,vr as getPropertyMeta,K as getTypographyPreset,fn as handleValueAt,at as hasCanvas3DBackend,Le as hasFilter,Tr as hasProjection3D,Ai as hasTimeline,zt as hold,gr as identity,wa as identity4,We as insetsOps,d as integrateSpeedToClipTime,ad as integrateSpeedToSceneTime,yr as invert,_a as invert4,_i as isAudioDocument,ue as isBackdropEffect,Gr as isCommand,yi as isCompositionDocument,Ye as isDataTexture3D,Kt as isEaseCurve,aa as isFatalRenderIssue,Vr as isKnownShaderProperty,Ks as isOrbitCamera3D,An as isParentNode,Fe as isPixelFilter,Di as isProjectDocument,lr as isProjective,Bt as isRamp,Un as isSteppable,wi as isStillDocument,Tt as isStrokeMarker,Ps as isStyleOnlySegment,qe as isSurfaceTexture3D,dt as isTextureLike,b as isUniformCorners,en as isViewport3D,ie as isWgslShader,G as lerpColor,v as lerpCornerScalarStyle,N as lerpCorners,me as lerpEffect,fo as lerpEuler3,ct as lerpFill,Se as lerpFilter,Ne as lerpFilterArray,Sr as lerpLookAt,D as lerpNumber,Zt as lerpParam,M as lerpPerspective,oe as lerpUniformRecord,te as lerpUniformValue,V as lerpVector2,no as lerpVector3,Ut as linear,Ta as lookAtRotation4,Ge as looksLikeAssetPath,Qr as loopCommand,$r as loopPasses,qr as loopPhase,jr as loopRepeats,Yr as loopSpan,Qi as loweredAudioDocument,Hr as makeCommand,Ii as migrateDocument,ts as migrateNodeProps,ji as missingNodeOf,ur as multiply,ya as multiply4,Zo as nearPolyline,En as niceStep,hn as nodeAt,mn as nodeBox,cn as nodeBoxAt,pn as nodeHandlesAt,Ar as nodeLocalMatrix,Ao as nodePath,Lr as nodeProjectedMatrix,Ti as nodeSpan,un as nodeTextLayout,zi as nodeTypeIsA,lo as normalizeQuaternion,Kr as normalizeShaderPack,ee as normalizeUniforms,Ia as now,Na as orthographic4,Xt as paramKey,Bi as parentIssue,an as parentPlanePointAt,Mo as parentSpaceOf,Fn as parseCSV,tt as parseCanvas3DResourceKey,R as parseColor,Ln as parseData,wt as pathOps,Ea as perspective4,gn as pickNode,on as pickNode3D,qa as placeTracks,Hi as placementIssues,Xo as pointInPolygon,Jo as polygonVertices,Qo as polygramVertices,Or as prepareNumericCellTween,kr as prepareNumericTween,To as primeMotionTree,rn as projectNode3D,ln as projectNode3DAt,go as quaternionFromEuler,xo as quaternionOps,qt as ramp,ot as registerCanvas3DResourceLoader,rt as registerCanvas3DWarmup,Yi as registryVocabulary,sa as renderIssueKey,sn as renderMatrix,Oa as renderSettled,dn as reparentPlacementAt,Ts as requireFontFamily,X as resolveAsciiCharset,rr as resolveAudioEffects,xa as resolveBevel3D,Rs as resolveCameraPlacement,Ve as resolveChainAdjustments,ge as resolveChainEffects,Pe as resolveChainFill,E as resolveCorners,$ as resolveEffectAxis,Y as resolveEffectColor,ft as resolveFill,He as resolveFill3D,Qe as resolveMaterialShorthand3D,J as resolveMotionBlurAlignment,$o as resolvePivotPosition,Tn as resolveProjectDocument,Gt as resolveRamp,ce as resolveShaderProperties,yt as resolveShadow,la as resolveShadowOptions3D,ke as resolveShadows3D,Ro as resolveShapeAlignment,Vo as resolveShapePivot,Et as resolveStroke,At as resolveStrokeAlign,Ft as resolveStrokeCap,Lt as resolveStrokeEnd,St as resolveStrokeJoin,je as resolveSurfaceSource,ze as resolveTexture3D,ao as resolveVector3,Ke as resolveVideoTimestamp,Sa as rotationOf4,j as sameEffectAxis,q as sameEffectColor,Jt as sampleParam,Ht as sampleRamp,Po as sampleTree,fa as segmentsOf,W as setTheme,Br as settles,zr as settling,ne as shaderContractOf,ca as shadowCasts,_t as shadowOps,ha as shadowReceives,Gi as siblingIssue,Nr as size2DOps,br as sizeInputOps,ho as slerpQuaternion,sr as sourceTimeAtClip,p as sourceTimeAtClipElapsed,nd as sourceTimeAtSceneElapsed,Er as space3dOps,Ha as spanFrames,Ba as spansCovering,jt as specOfEase,Qt as staticValue,Ko as stripShapeAlignmentKeys,Nt as strokeOps,bo as structuralPathOf,Cr as textOps,Be as texture3DSource,Rr as toCommand,ea as toPathString,oa as toRenderIssue,za as totalFramesOf,Ya as trackFrameCount,Ua as transformBox3,Fa as transformMatrix4,pr as transitionGainAt,fr as transitionKey,dr as transitionSpans,xr as translation,La as translation4,se as uniformRecordsEqual,re as uniformValuesEqual,Da as unionBox3,Ei as untimed,Wi as validateDocument,Ki as validateProjectDocument,Wo as validateShapeAlignmentProps,I as vector2Ops,po as vector3Ops,qi as vocabularyBreaks,st as warmCanvas3D,B as withEffectOptions,Yo as withEllipseDescriptor,Bo as withLineDescriptor,ta as withPathDescriptor,Xi as withPlayedSounds,qo as withPolygonDescriptor,zo as withPolygramDescriptor,jo as withRectDescriptor,ki as withRichTextDescriptor,Fs as withTextDescriptor,Oi as withTransformDescriptor,Wa as yieldToScheduler};
|
|
1
|
+
import{$ as $o,$a as Ri,$b as Wa,A as io,Aa as ci,Ab as ma,Ac as pn,B as ao,Ba as gi,Bb as ca,Bc as mn,C as no,Ca as li,Cb as ga,Cc as cn,D as fo,Da as xi,Db as la,Dc as gn,E as ho,Ea as ui,Eb as xa,Ec as ln,F as po,Fa as wi,Fb as ua,Fc as w,G as mo,Ga as yi,Gb as wa,Gc as xn,H as co,Ha as _i,Hb as ya,Hc as y,I as go,Ia as Ai,Ib as _a,Ic as _,J as Fo,Ja as Fi,Jb as Aa,Jc as f,K as Lo,Ka as Li,Kb as Fa,Kc as un,L as Po,La as Pi,Lb as La,Lc as wn,M as Eo,Ma as Ei,Mb as Pa,Mc as yn,N as No,Na as Ni,Nb as Ea,Nc as _n,O as So,Oa as Si,Ob as Na,Oc as Ln,P as To,Pa as Ti,Pb as Sa,Pc as Pn,Q as bo,Qa as bi,Qb as Ta,Qc as En,R as Do,Ra as Di,Rb as x,Rc as Nn,S as Mo,Sa as Mi,Sb as u,T as Uo,Ta as Ui,Tb as ba,U as vo,Ua as vi,Ub as Da,V as Vo,Va as Vi,Vb as Ma,W as Co,Wa as Ci,Wb as Ua,X as Io,Xa as Ii,Xb as va,Y as Wo,Ya as d,Yb as Va,Z as Ko,Za as Wi,Zb as Ca,_ as Ro,_a as Ki,_b as Ia,a as Ze,aa as jo,ab as $i,ac as Ka,b as ke,ba as Yo,bb as ji,bc as Ra,c as Oe,ca as qo,cb as Yi,cc as $a,d as tr,da as zo,db as qi,dc as ja,e as er,ea as Bo,eb as zi,ec as Ya,f as rr,fa as Go,fb as Bi,fc as qa,g as sr,ga as Ho,gb as Gi,gc as za,h as or,ha as Jo,hb as Hi,hc as Ba,i as ir,ia as Qo,ib as Ji,ic as Ga,j as br,ja as Xo,jb as Qi,jc as Ha,k as Dr,ka as Zo,kb as Xi,kc as Ja,l as Mr,la as ko,lb as Zi,lc as Qa,m as Ur,ma as Oo,mb as ki,mc as Xa,n as gs,na as ti,nb as Oi,nc as Za,o as ls,oa as ei,ob as ta,oc as ka,p as xs,pa as ri,pb as ea,pc as Oa,q as us,qa as si,qb as ra,qc as tn,r as Ls,ra as oi,rb as sa,rc as en,s as Zs,sa as ii,sb as oa,sc as rn,t as ks,ta as ai,tb as ia,tc as sn,u as Os,ua as ni,ub as aa,uc as on,v as to,va as di,vb as na,vc as an,w as eo,wa as fi,wb as da,wc as nn,x as ro,xa as hi,xb as fa,xc as dn,y as so,ya as pi,yb as ha,yc as fn,z as oo,za as mi,zb as pa,zc as hn}from"./chunks/chunk-3ZIUZZC7.js";import{$ as St,$a as Te,$c as cs,A as et,Aa as kt,Ab as fr,Ac as Zr,Ad as Bs,B as rt,Ba as Ot,Bb as hr,Bd as Gs,C as st,Ca as te,Cb as pr,Cc as kr,Cd as Hs,D as ot,Da as ee,Db as mr,Dc as o,E as it,Ea as re,Eb as cr,Ec as Or,Ed as Js,Fa as se,Fb as gr,Fc as ts,G as at,Gb as lr,Gc as es,H as nt,Ha as oe,Hb as xr,Hc as rs,Hd as Qs,I as dt,Ia as ie,Ib as ur,Ic as ss,Id as Xs,J as ft,Jb as wr,Jc as os,K as ht,Ka as ae,Kb as yr,Kc as is,L as pt,La as me,Lb as _r,Lc as as,M as mt,Ma as ce,Mc as ns,N as ct,Na as ge,Nc as ds,O as gt,Oa as le,Ob as Ar,Oc as fs,P as lt,Pa as xe,Pb as Fr,Q as xt,Qa as ue,Qb as Lr,R as ut,Ra as we,Rb as Pr,S as wt,Sa as ye,Sb as Er,T as yt,Ta as _e,Tb as Nr,Tc as hs,U as _t,Ua as Ae,Ub as Sr,V as At,Va as Fe,Vb as Tr,W as Ft,Wa as Le,X as Lt,Xa as Pe,Y as Pt,Ya as Ee,Z as Et,Za as Ne,Zb as g,Zc as ps,_ as Nt,_a as Se,_c as ms,a as F,aa as Tt,ab as be,ad as ws,b as L,ba as bt,bb as De,bd as ys,c as P,ca as Dt,cb as Me,cd as _s,d as S,da as Mt,db as Ue,dd as As,e as T,ed as Fs,f as b,fa as Ut,fb as ve,fc as vr,fd as Ps,g as C,ga as vt,gb as Ve,gc as Vr,gd as Es,h as I,ha as Vt,hb as Ce,hc as Cr,hd as Ns,i as W,ia as Ct,ib as Ie,ic as Ir,id as Ss,j as K,ja as It,jb as We,jc as Wr,jd as Ts,je as lo,k as R,ka as Wt,kb as Ke,kc as Kr,kd as bs,ke as xo,l as $,la as Kt,lb as Re,lc as Rr,ld as Ds,le as uo,m as j,ma as Rt,mb as $e,mc as $r,md as Ms,n as Y,na as $t,nb as je,nc as jr,nd as Us,o as q,ob as Ye,oc as Yr,od as vs,p as z,pa as jt,pb as qe,pc as qr,pd as Vs,q as B,qa as Yt,qb as ze,qc as zr,qd as Cs,r as G,ra as qt,rb as Be,rc as Br,rd as Is,s as H,sa as zt,sb as Ge,sc as Gr,sd as Ws,t as J,ta as Bt,tb as He,tc as Hr,td as Ks,u as Q,ua as Gt,ub as Je,uc as Jr,ud as Rs,ue as wo,v as X,va as Ht,vb as Qe,vc as Qr,vd as $s,ve as yo,w as Z,wa as Jt,wb as Xe,wc as l,wd as js,we as _o,x as k,xa as Qt,xb as ar,xd as Ys,xe as Ao,y as O,ya as Xt,yb as nr,yd as qs,z as tt,za as Zt,zb as dr,zc as Xr,zd as zs}from"./chunks/chunk-7YOYMMXK.js";import{g as An,h as Fn}from"./chunks/chunk-GEJEQQER.js";import{b as E,c as N,d as D,e as M,f as U,g as v,h as V,i as ne,j as de,k as fe,l as he,m as pe}from"./chunks/chunk-5TDMGUXQ.js";var p={width:1920,height:1080},m=60,bn={viewport:p,fps:m},A={image:{},video:{},audio:{},font:{}},h=class{platform;viewport;fps;constructor(t,e={}){this.platform=t,this._registry=new d({nodes:e.nodes,shaders:e.shaders,lerps:e.lerps,dynamicNodes:e.dynamicNodes,strict:e.strict}),this.viewport=e.viewport??p,this.fps=e.fps??m,this._manifest=e.manifest??A,this._exporter=t.createExporter()}get manifest(){return this._manifest}get exporter(){return this._exporter}setManifest(t){this._manifest=t;for(let e of this._manifestListeners)e(t)}open(t){return new f(this,t)}knows(t){return this._registry.hasNode(t)}get registry(){return this._registry}async registerNode(t,e){return typeof t=="string"?this._registry.addNodeFromSource(t,e):(this._registry.addNode(t,e),t)}registerShader(t,e,r){return this._registry.addShader(t,e,r)}dispose(){this._manifestListeners.clear(),this.platform.dispose?.()}_registry;_manifest;_exporter;_manifestListeners=new Set;_onManifestChange(t){return this._manifestListeners.add(t),()=>this._manifestListeners.delete(t)}};var i=class{get schedulesAudio(){return!0}setMuted(t){}setVolume(t){}dispose(){this.stop()}};var a=class{catalog;viewport;constructor(t,e){this.catalog=t,this.viewport=e}setCatalog(t){this.catalog=t}inFlightLoads=new Map;cachedAssets=new Set;isLoaded(t){return this.cachedAssets.has(t)}async loadAsset(t,e){let r=this.inFlightLoads.get(t);if(r)return r;if(this.cachedAssets.has(t))return;let s=this.runLoad(t,e);this.inFlightLoads.set(t,s);try{await s}finally{this.inFlightLoads.delete(t)}}async runLoad(t,e){let r=!0;switch(e.type){case"image":await this.loadImage(t);break;case"video":await this.loadVideo(t,e.startFrame,e.endFrame,e.trimStart,e.trimEnd);break;case"font":{let{fontFamily:s,fontWeight:c}=this.parseFontKey(t);if(r=await this.loadFont(t,s,c),!r&&this.getDecodePolicy()==="exact")throw new o("font",s,`The manifest has no font entry for "${s}", so this frame would be shaped against the fallback face and differ from the one drawn once it is described. Add the family to the manifest's font record.`);break}case"audio":break;case"loader":throw new Error("Loader records must not be routed through StorageAdapter.loadAsset");default:{let s=e;throw new Error(`Unsupported asset type: ${s.type}`)}}r&&this.cachedAssets.add(t)}parseFontKey(t){let[e,r]=t.split("@"),s=r?parseInt(r,10):400;return{fontFamily:e||t,fontWeight:isNaN(s)?400:s}}async warmPendingVideo(){return!1}setDecodePolicy(t){}getDecodePolicy(){return"interactive"}hasPendingDecodes(){return!1}async warmPendingDecodes(){return this.warmPendingVideo()}hasPendingUpgrades(){return!1}async warmPendingUpgrades(){return!1}setPlaying(t){}dispose(){this.inFlightLoads.clear(),this.cachedAssets.clear()}};export{z as ASCII_CHARSETS,ji as AUDIO_ROOT_ID,lo as AUTOFIT_PROBE_SIZE,Pt as AdjustmentChain,Nt as Adjustments,ei as AmbientLight3D,ai as AreaLight3D,u as AssetDeclaration,x as AssetManager,o as AssetNotLoadedError,Ja as AssetTimeline,bo as AudioBus,Je as AudioEffectChain,ar as AudioEffectRegistry,Qe as AudioEffects,i as AudioSink,G as BLEND_MODES_LIST,ho as BooleanGroup,Co as Box3D,Xr as COMMAND_META,mo as Camera,ni as Camera3D,Ls as Canvas2D,hi as Canvas3D,Qs as CanvasRenderContext2D,zo as Capsule3D,Yo as Circle3D,hs as Clip,ja as ClipInstance,qa as ClipStore,Bi as ClipTimeline,Ro as Cone3D,Qr as ContextMap,Ko as Cylinder3D,le as DEFAULT_CAP_SCALE,Pe as DEFAULT_EASE,m as DEFAULT_FPS,bn as DEFAULT_OUTPUT,Ya as DEFAULT_PRECOMP_BUDGET_MS,p as DEFAULT_VIEWPORT,Ei as DOCUMENT_FORMAT_VERSION,Si as DOCUMENT_MIGRATIONS,jt as DRAWABLE_KINDS,_o as DataToken,Eo as DefaultTextStyle,si as DirectionalLight3D,Ni as DocumentTooNewError,R as EFFECT_OPTION_KEYS,A as EMPTY_MANIFEST,ne as EMPTY_PATH_DATA,Nr as EMPTY_TEXT_STYLE,dt as EffectChain,ft as Effects,ks as Ellipse,h as Engine,fi as Environment3D,Gs as ExpressionError,Go as Extrude3D,lt as FillChain,xt as Fills,di as Fog3D,ta as Geo,vt as Graphics2D,qt as Graphics3D,vo as Group3D,ri as HemisphereLight3D,ao as Hexagon,is as IDENTITY_QUATERNION,Qo as Instances3D,Ho as Lathe3D,Zo as Line3D,Dr as MAX_SHADER_PROPERTIES,Mr as MAX_SHADER_SOURCE,wt as MINOR_WIDTH_RATIO,Sa as MUTABLE_MATERIAL_KEYS,w as ManifestAssetCatalog,po as MaskGroup,ea as Mat,Vo as Mesh3D,Oo as Model3D,ti as ModelView3D,Ns as NODE_META,xr as NO_PROJECTION_3D,kr as Node,ps as Node2D,Es as Node3D,ws as NodeAudio,H as NodeBlendModes,Xs as NullRenderContext,Lo as NumberNode,no as Octagon,co as OrbitCamera,de as PATH_UNIT_EXTENT,fe as PATH_UNIT_HALF,ro as Path,Ut as PathBuilder,eo as PathShape,io as Pentagon,Wo as Plane3D,xn as Playback,ln as PlaybackController,oi as PointLight3D,Xo as Points3D,Os as Polygon,to as Polygram,Bo as Polyhedron3D,g as PropSlot,No as Provider,li as ROOT_NODE_ID,Ce as RampChain,En as Random,Zs as Rect,d as Registry,ki as RenderBackendError,zt as RenderContext3D,Po as RichText,oo as RightTriangle,qo as Ring3D,go as RotatedBox,Ba as SETTLE_PASSES,bs as SHAPE_ALIGNMENT_KEYS,Ta as STRUCTURAL_MATERIAL_KEYS,Gt as Scene3D,Pn as SeedGenerator,Ao as SeedToken,f as Session,tr as Sound,To as SoundNode,Io as Sphere3D,ii as SpotLight3D,ko as Sprite3D,fo as Star,za as StateEvaluator,_ as SteppedClock,a as StorageAdapter,te as TEXTURE_KEYS,Er as TEXT_SHAPING_KEYS,Pr as TEXT_STYLE_KEYS,ra as Tex,Fo as Text,wo as TextStyleToken,So as ThemeProvider,yo as ThemeToken,y as Ticker,$o as Torus3D,jo as TorusKnot3D,so as Triangle,Jo as Tube3D,he as UNIT_PATH_BOX,Do as Video,Et as VideoAdjustmentChain,St as VideoAdjustments,et as WGSL_CONTRACT,Ma as __resetSchedulerForTests,bt as alignmentOps,us as applyEditorStates,ga as applyMatrix4,mr as applyToPoint,Pi as asProjectDocument,vi as assertValidDocument,Ui as assertValidProjectDocument,nr as audioEffectsOps,Be as audioParamOps,ct as backdropEffects,ys as busPathOf,_s as busPathTo,ir as busStopKey,gr as cameraMatrix,oe as canLerpFill,Ht as canvas3DResourceKey,kt as canvas3DResourceLoader,Qi as caretCount,cn as caretOffsetAt,gn as caretRangeQuads,Fa as centeredBox3,en as childPlanePointAt,Fe as clamp,Le as clamp01,zi as clipDocument,Oe as clipDurationOf,Ua as clipFrameToTime,Ze as clipTimeAtSource,va as clipTimeToFrame,pn as collectBoxes,Xa as collectBoxes3D,Y as colorOps,Br as commandParallel,zr as commandSequence,Ai as commandSpan,la as compose4,Rs as containsClip,$s as containsOps,S as cornerRadiusOps,T as cornerStyleOps,Pa as corners3,Ha as createAssetTimelineProfile,Jr as createContext,Ln as createRef,Ue as curveEase,De as curveSegmentT,be as curveSegments,da as cylinderRadii,st as describeEffect,Bs as distanceToSegment,Fi as documentDuration,Ti as documentFormatVersion,Yr as driveCommand,Ne as easeIn,Te as easeInOut,ve as easeOfSpec,Se as easeOut,ot as effectDescriptors,it as effectSurface,ui as effectiveSpan,yi as effectiveSpanIn,wi as effectiveSpans,er as effectsKey,pt as effectsOps,Fn as enterBudget,ze as equalsParam,os as euler3Ops,ha as evaluateParametric,oa as evaluateRoundedBox,Hs as expressionOps,wr as facesAway,ae as fillOps,Ft as filterSurface,As as findBusById,ms as findNode2D,Or as flowOps,re as forEachTexture3D,gt as foregroundShaderEffects,cs as frameIn,Va as frameSpecAtTime,Ra as frameTime,_n as generateList,Na as geometryBounds3D,J as getBlendModeHash,Zr as getCommandMeta,Ss as getNodeDescriptor,l as getPropSlot,Tr as getPropertyMeta,v as getTypographyPreset,on as handleValueAt,Ot as hasCanvas3DBackend,_t as hasFilter,ur as hasProjection3D,gi as hasTimeline,We as hold,fr as identity,pa as identity4,Dt as insetsOps,Ge as integrateSpeedToClipTime,cr as invert,ca as invert4,ci as isAudioDocument,mt as isBackdropEffect,$r as isCommand,mi as isCompositionDocument,Ct as isDataTexture3D,Me as isEaseCurve,Oi as isFatalRenderIssue,br as isKnownShaderProperty,Mo as isOrbitCamera3D,yt as isPixelFilter,Li as isProjectDocument,dr as isProjective,Ke as isRamp,Nn as isSteppable,pi as isStillDocument,xe as isStrokeMarker,It as isSurfaceTexture3D,ee as isTextureLike,P as isUniformCorners,Qa as isViewport3D,tt as isWgslShader,j as lerpColor,b as lerpCornerScalarStyle,L as lerpCorners,at as lerpEffect,ss as lerpEuler3,ie as lerpFill,At as lerpFilter,Lt as lerpFilterArray,_r as lerpLookAt,E as lerpNumber,qe as lerpParam,N as lerpPerspective,k as lerpUniformRecord,X as lerpUniformValue,D as lerpVector2,es as lerpVector3,Ee as linear,xa as lookAtRotation4,Rt as looksLikeAssetPath,qr as loopCommand,Vr as loopPasses,Wr as loopPhase,Cr as loopRepeats,Ir as loopSpan,Yi as loweredAudioDocument,jr as makeCommand,bi as migrateDocument,Js as migrateNodeProps,Vi as missingNodeOf,pr as multiply,ma as multiply4,zs as nearPolyline,An as niceStep,dn as nodeAt,an as nodeBox,nn as nodeBoxAt,sn as nodeHandlesAt,lr as nodeLocalMatrix,gs as nodePath,yr as nodeProjectedMatrix,xi as nodeSpan,mn as nodeTextLayout,Wi as nodeTypeIsA,ns as normalizeQuaternion,Ur as normalizeShaderPack,Q as normalizeUniforms,ba as now,Aa as orthographic4,Ye as paramKey,Ki as parentIssue,tn as parentPlanePointAt,Ps as parentSpaceOf,wn as parseCSV,Jt as parseCanvas3DResourceKey,V as parseColor,yn as parseData,pe as pathOps,_a as perspective4,hn as pickNode,ka as pickNode3D,Ia as placeTracks,$i as placementIssues,qs as pointInPolygon,js as polygonVertices,Ys as polygramVertices,Hr as prepareNumericCellTween,Gr as prepareNumericTween,xs as primeMotionTree,Za as projectNode3D,fn as projectNode3DAt,ds as quaternionFromEuler,fs as quaternionOps,Ie as ramp,Xt as registerCanvas3DResourceLoader,Qt as registerCanvas3DWarmup,Ci as registryVocabulary,Zi as renderIssueKey,Oa as renderMatrix,Ga as renderSettled,rn as reparentPlacementAt,xo as requireFontFamily,B as resolveAsciiCharset,Xe as resolveAudioEffects,fa as resolveBevel3D,Uo as resolveCameraPlacement,Tt as resolveChainAdjustments,ht as resolveChainEffects,ut as resolveChainFill,F as resolveCorners,C as resolveEffectAxis,W as resolveEffectColor,se as resolveFill,$t as resolveFill3D,Yt as resolveMaterialShorthand3D,q as resolveMotionBlurAlignment,vs as resolvePivotPosition,un as resolveProjectDocument,Re as resolveRamp,nt as resolveShaderProperties,me as resolveShadow,na as resolveShadowOptions3D,Bt as resolveShadows3D,Us as resolveShapeAlignment,Ts as resolveShapePivot,_e as resolveStroke,ge as resolveStrokeAlign,ue as resolveStrokeCap,we as resolveStrokeEnd,ye as resolveStrokeJoin,Vt as resolveSurfaceSource,Wt as resolveTexture3D,ts as resolveVector3,Mt as resolveVideoTimestamp,ya as rotationOf4,I as sameEffectAxis,K as sameEffectColor,$e as sampleRamp,ls as sampleTree,sa as segmentsOf,U as setTheme,Rr as settles,Kr as settling,rt as shaderContractOf,ia as shadowCasts,ce as shadowOps,aa as shadowReceives,Ri as siblingIssue,Fr as size2DOps,Lr as sizeInputOps,as as slerpQuaternion,ke as sourceTimeAtClip,He as sourceTimeAtClipElapsed,Ar as space3dOps,$a as spanFrames,Ka as spansCovering,Ve as specOfEase,je as staticValue,Ms as stripShapeAlignmentKeys,Ae as strokeOps,Fs as structuralPathOf,Sr as textOps,Kt as texture3DSource,vr as toCommand,Hi as toPathString,Xi as toRenderIssue,Wa as totalFramesOf,Ca as trackFrameCount,Ea as transformBox3,ua as transformMatrix4,sr as transitionGainAt,or as transitionKey,rr as transitionSpans,hr as translation,wa as translation4,O as uniformRecordsEqual,Z as uniformValuesEqual,La as unionBox3,_i as untimed,Di as validateDocument,Mi as validateProjectDocument,Ds as validateShapeAlignmentProps,M as vector2Ops,rs as vector3Ops,Ii as vocabularyBreaks,Zt as warmCanvas3D,$ as withEffectOptions,Cs as withEllipseDescriptor,Ks as withLineDescriptor,Ji as withPathDescriptor,qi as withPlayedSounds,Is as withPolygonDescriptor,Ws as withPolygramDescriptor,Vs as withRectDescriptor,Gi as withRichTextDescriptor,uo as withTextDescriptor,Da as yieldToScheduler};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/runtime/
|
|
4
|
-
"sourcesContent": ["import {\n AssetTimeline,\n createAssetTimelineProfile,\n type AssetTimelineOptions,\n type AssetTimelinePhase,\n type AssetTimelineProfile,\n type AssetTimelineResult,\n type AssetTimelineTimings,\n type TrackAssets,\n type TrackAssetsProfile,\n type TrackAssetsTiming,\n} from \"./asset-timeline\";\n\n// The names this module had before it became `asset-timeline`, kept for one alpha.\n\n/** @deprecated Renamed to {@link AssetTimeline}. */\nexport const Precomp = AssetTimeline;\n/** @deprecated Renamed to {@link AssetTimeline}. */\nexport type Precomp = AssetTimeline;\n/** @deprecated Renamed to {@link AssetTimelineResult}. */\nexport type PrecompResult = AssetTimelineResult;\n/** @deprecated Renamed to {@link TrackAssets}. */\nexport type TrackPrecomp = TrackAssets;\n/** @deprecated Renamed to {@link AssetTimelineOptions}. */\nexport type PrecompOptions = AssetTimelineOptions;\n/** @deprecated Renamed to {@link AssetTimelineProfile}. */\nexport type PrecompProfile = AssetTimelineProfile;\n/** @deprecated Renamed to {@link createAssetTimelineProfile}. */\nexport const createPrecompProfile = createAssetTimelineProfile;\n/** @deprecated Renamed to {@link AssetTimelinePhase}. */\nexport type PrecompPhase = AssetTimelinePhase;\n/** @deprecated Renamed to {@link AssetTimelineTimings}. */\nexport type PrecompTimings = AssetTimelineTimings;\n/** @deprecated Renamed to {@link TrackAssetsTiming}. */\nexport type TrackPrecompTiming = TrackAssetsTiming;\n/** @deprecated Renamed to {@link TrackAssetsProfile}. */\nexport type TrackPrecompProfile = TrackAssetsProfile;\n", "import { Size2D } from \"@/attributes/layout/size\";\nimport type { Shader } from \"@/attributes/shape/shaders/pack\";\nimport { AssetCatalog } from \"@/assets/catalog\";\nimport { AssetManifest } from \"@/assets/manifest\";\nimport { Registry, type NodeConstructor, type RegistryOptions } from \"@/document/registry\";\nimport { AudioSink } from \"@/platform/audio-sink\";\nimport { Exporter } from \"@/platform/exporter\";\nimport { Ticker } from \"@/platform/ticker\";\nimport { StorageAdapter } from \"@/platform/storage-adapter\";\nimport { CanvasRenderContext2D } from \"@/render/canvas-render-context2d\";\nimport { MeasureContext2D } from \"@/render/measure-context\";\nimport { RenderSurface } from \"@/render/surface\";\nimport { OpenOptions, Session } from \"./session\";\n\n/** A render context that also owns a surface — what a `Session` mounts into. */\nexport type EngineRenderContext = CanvasRenderContext2D & RenderSurface;\n\n/** What a platform is given to build its per-session objects from. */\nexport interface PlatformDeps {\n catalog: AssetCatalog;\n viewport: Size2D;\n fps: number;\n}\n\n/**\n * How one environment supplies the pieces a `Session` runs on.\n *\n * Five of these are the seams `ControllerParams` has always declared; the sixth\n * is the {@link Exporter} port. Each is a **factory**, not an instance, because\n * a storage adapter is per-viewport (it clamps decode resolution, so a cached\n * decode made for one viewport is genuinely wrong at a larger one) while the\n * engine outlives any single session.\n *\n * The type parameter exists so a platform can hand its own factories a storage\n * adapter richer than `StorageAdapter` — a backend that needs decoded media of\n * its own — without `core` ever naming that type. Core\n * stores and forwards these; it never inspects them.\n */\nexport interface EnginePlatform<TStorage extends StorageAdapter = StorageAdapter> {\n createStorageAdapter(deps: PlatformDeps): TStorage;\n createRenderContext(storage: TStorage): EngineRenderContext;\n createMeasureContext(storage: TStorage): MeasureContext2D;\n createAudioSink(): AudioSink;\n /**\n * The clock a session plays against, or `null` when this environment has no\n * realtime playback — a headless export has no wall clock to sync to, and a\n * session there reports `playback === null` rather than faking one.\n *\n * This is the seam that separates **preview from export**, not browser from\n * server: an export is frame-stepped in either environment, because a\n * wall-clock export drifts.\n *\n * Handed the session's `audioDevice` because a clock that drives sound has\n * to share its timebase — the browser's runs on the audio device's own\n * `AudioContext`, and two independent clocks would drift against each other\n * within one session.\n */\n createTicker(fps: number, audioDevice: AudioSink): Ticker | null;\n createExporter(): Exporter;\n /** Torn down with the engine. For a platform holding a device or a process. */\n dispose?(): void;\n}\n\n/** Settings for the engine as a whole. What to render is passed to `open()`. */\nexport interface EngineOptions {\n /**\n * Node types any document opened here may name — components as an\n * array, or a record naming each key outright.\n */\n nodes?: RegistryOptions[\"nodes\"];\n /** Shader packs any document opened here may name. Plain JSON. */\n shaders?: RegistryOptions[\"shaders\"];\n /** Extra variable interpolations a document may name in `VariableSpec.lerp`. */\n lerps?: RegistryOptions[\"lerps\"];\n /** Enables `Engine.registerNode` with a source string — see `DynamicNodeConfig`. */\n dynamicNodes?: RegistryOptions[\"dynamicNodes\"];\n /** Fail a track's build on an unknown node type or command rather than building around it — see `RegistryOptions.strict`. */\n strict?: boolean;\n /**\n * Asset metadata the renderer needs *before* it loads a file — an image's\n * size, a clip's duration. Reconciled with {@link Engine.setManifest} rather\n * than rebuilt, so a manifest change keeps every decode already cached.\n */\n manifest?: AssetManifest;\n /** Viewport used when a source carries none. Defaults to 1920×1080. */\n viewport?: Size2D;\n /** Frame rate used when a source carries none. Defaults to 60. */\n fps?: number;\n}\n\nexport const DEFAULT_VIEWPORT: Size2D = { width: 1920, height: 1080 };\nexport const DEFAULT_FPS = 60;\n/** What a document renders at when neither the caller nor the document says. */\nexport const DEFAULT_OUTPUT: { viewport: Size2D; fps: number } = { viewport: DEFAULT_VIEWPORT, fps: DEFAULT_FPS };\nexport const EMPTY_MANIFEST: AssetManifest = { image: {}, video: {}, audio: {}, font: {} };\n\n/**\n * The configured environment a document runs in: what node types and shader\n * packs exist, where assets resolve from, who draws and who encodes.\n *\n * Expensive, and meant to be shared — one per app, not one per canvas. The\n * caches underneath it (registered fonts, decoded images, shaped paragraphs) are\n * the whole reason a warm engine beats a cold one, and they live here rather\n * than on a session so that a preview, a filmstrip of thumbnails and an export\n * all draw on the same ones.\n *\n * The rule for what belongs here rather than on a `Session`: **if two open\n * documents could disagree about it, it is session state.** Two documents can\n * disagree about a theme. They cannot disagree about whether `\"pulseRing\"` is a\n * registered type — one of them is simply invalid.\n */\nexport class Engine<TStorage extends StorageAdapter = StorageAdapter> {\n readonly viewport: Size2D;\n readonly fps: number;\n\n constructor(\n readonly platform: EnginePlatform<TStorage>,\n options: EngineOptions = {},\n ) {\n this._registry = new Registry({\n nodes: options.nodes,\n shaders: options.shaders,\n lerps: options.lerps,\n dynamicNodes: options.dynamicNodes,\n strict: options.strict,\n });\n this.viewport = options.viewport ?? DEFAULT_VIEWPORT;\n this.fps = options.fps ?? DEFAULT_FPS;\n this._manifest = options.manifest ?? EMPTY_MANIFEST;\n this._exporter = platform.createExporter();\n }\n\n /** The asset metadata sessions are opened against. */\n get manifest(): AssetManifest {\n return this._manifest;\n }\n\n /** How this engine's sessions turn themselves into bytes. */\n get exporter(): Exporter {\n return this._exporter;\n }\n\n /**\n * Swap in new asset metadata. Existing sessions keep every decode already\n * cached — this replaces what the *catalog* reports, not the bytes behind it.\n */\n setManifest(manifest: AssetManifest): void {\n this._manifest = manifest;\n for (const notify of this._manifestListeners) notify(manifest);\n }\n\n /**\n * Bind a document to this engine and a surface.\n *\n * Cheap: the expensive things — the renderer, registered fonts, decoded images,\n * shaped paragraphs — belong to the engine and are shared across every\n * session it opens.\n */\n open(options: OpenOptions): Session {\n return new Session(this as Engine, options);\n }\n\n /** Whether a document naming `key` can be compiled here. */\n knows(key: string): boolean {\n return this._registry.hasNode(key);\n }\n\n /**\n * Read-only introspection of this engine's node/command vocabulary — a\n * type's declared commands and each one's own `command({ args })`\n * descriptors, for a host that renders per-command UI from them (e.g.\n * which prop keys a `rotateTo` animates). Register or replace a type\n * through `registerNode`/`registerShader` instead; this getter exists for\n * reading the table those build, not for mutating it.\n */\n get registry(): Registry {\n return this._registry;\n }\n\n /**\n * Registers a node type at runtime — a class, or a TS source string\n * compiled through `dynamicNodes` (see `EngineOptions.dynamicNodes`).\n *\n * Always `async`: one calling convention whether the argument resolves\n * immediately (a class) or needs compiling first (a string).\n */\n async registerNode(\n nodeOrSource: NodeConstructor | string,\n options?: { replace?: boolean },\n ): Promise<NodeConstructor> {\n if (typeof nodeOrSource === \"string\") {\n return this._registry.addNodeFromSource(nodeOrSource, options);\n }\n this._registry.addNode(nodeOrSource, options);\n return nodeOrSource;\n }\n\n /**\n * Registers a shader pack at runtime, under an explicit key — see\n * `Registry.addShader` for why the key is never inferred from the pack.\n */\n registerShader(key: string, pack: unknown, options?: { replace?: boolean }): Shader {\n return this._registry.addShader(key, pack, options);\n }\n\n dispose(): void {\n this._manifestListeners.clear();\n this.platform.dispose?.();\n }\n\n /**\n * The node/shader/lerp vocabulary this engine's documents compile\n * against. Not part of the public surface — reach it through\n * `registerNode`/`registerShader`/`knows` instead. A `Session` (same\n * package) still reads this directly; nothing enforces that at the type\n * level, the same un-enforced convention `_onManifestChange` below\n * already uses.\n */\n readonly _registry: Registry;\n private _manifest: AssetManifest;\n private readonly _exporter: Exporter;\n /** Sessions subscribe so a `setManifest` reaches their live catalogs. */\n private readonly _manifestListeners = new Set<(m: AssetManifest) => void>();\n\n /** @internal — a `Session` registers here for the life of its catalog. */\n _onManifestChange(notify: (m: AssetManifest) => void): () => void {\n this._manifestListeners.add(notify);\n return () => this._manifestListeners.delete(notify);\n }\n}\n", "import type { AudioRequest } from \"@/attributes/audio/request\";\n\n\n/**\n * Stackable audio player driven by the AssetManager.\n *\n * The AssetManager decides which audio data is needed within the current\n * look-ahead window and pushes it in via {@link append}; the device caches the\n * decoded form, schedules the matching {@link AudioRequest}s via\n * {@link schedule}, and drives playback through {@link syncTo} on each tick.\n */\nexport abstract class AudioSink {\n /**\n * Whether pushing the audio working set to this device does anything at all.\n *\n * False for a sink that discards everything — an export, whose audio is mixed\n * offline in a single pass at the end. `AssetManager.syncAudio` runs on every\n * frame and rebuilds a `Set`, a per-request id string and a sorted signature\n * each time; against such a device every one of those calls lands on a no-op,\n * so the work is skipped rather than done and thrown away.\n */\n get schedulesAudio(): boolean {\n return true;\n }\n\n /** True if decoded data for `src` is already cached on the device. */\n abstract has(src: string): boolean;\n\n /**\n * Decode and stack `data` under `src`. Idempotent — repeat calls for an\n * already-cached `src` are no-ops.\n */\n abstract append(src: string, data: ArrayBuffer): Promise<void>;\n\n /** Drop cached audio data (and any active sources) for srcs not in `keep`. */\n abstract retain(keep: ReadonlySet<string>): void;\n\n /**\n * Set the working set of audio requests for the current look-ahead window.\n * Requests no longer present are stopped; new ones become eligible for\n * playback via {@link syncTo} as soon as their data is appended.\n */\n abstract schedule(requests: readonly AudioRequest[]): void;\n\n /**\n * Start/stop scheduled sources to match `clipTime`. Called every tick.\n * Sources whose data has not yet been appended are skipped until it is.\n */\n abstract syncTo(clipTime: number): void;\n\n abstract play(time: number, speed: number, reverse: boolean): void | Promise<void>;\n abstract stop(): void;\n\n /**\n * Mute or unmute all output. Default is a no-op for devices that produce no\n * sound (e.g. export/noop sinks).\n */\n setMuted(muted: boolean): void {}\n\n /**\n * Set the linear gain applied to all output, on top of each request's own\n * `volume`. Independent of {@link setMuted} — unmuting restores this level\n * rather than resetting to 1, so a host can hold a volume slider and a mute\n * button without the two clobbering each other.\n *\n * Default is a no-op, as for {@link setMuted}.\n */\n setVolume(volume: number): void {}\n\n dispose(): void {\n this.stop();\n }\n}\n", "import { AssetCatalog } from \"@/assets/catalog\";\nimport { AssetNotLoadedError } from \"@/assets/errors\";\nimport { AssetRecord } from \"@/assets/record\";\nimport { Size2D } from \"@/attributes/layout/size\";\n\n/**\n * How an adapter picks the resolution to decode media at, and how strict it is\n * about what it cannot load.\n *\n * `\"exact\"` — export, stills, screenshots: the level follows the current draw\n * alone, so a frame is the same pixels whatever was drawn before it on a reused\n * adapter, and a font family the manifest cannot describe is refused rather\n * than shaped against the fallback face. `\"interactive\"` — preview: reuse\n * whatever resident level is already good enough, and upgrade in the\n * background; an undescribed family draws in the fallback face until a manifest\n * describes it.\n */\nexport type DecodePolicy = \"exact\" | \"interactive\";\n\nexport abstract class StorageAdapter {\n protected catalog: AssetCatalog;\n protected viewport: Size2D;\n constructor(catalog: AssetCatalog, viewport: Size2D) {\n this.catalog = catalog;\n this.viewport = viewport;\n }\n\n /**\n * Point the adapter at a different asset catalog, keeping every decode it has\n * already cached.\n *\n * Safe because the catalog supplies *metadata* (durations, intrinsic sizes)\n * while the caches are keyed by source URL: a src the new catalog drops leaves\n * an orphaned decode, and a src it adds simply isn't cached yet. Neither is a\n * correctness problem, which is what lets a long-lived renderer take an\n * updated manifest without paying to re-decode everything still in use.\n *\n * The viewport has no such setter; a host that changes output size rebuilds\n * the adapter.\n */\n setCatalog(catalog: AssetCatalog): void {\n this.catalog = catalog;\n }\n /**\n * Every asset src whose loadXxx is currently in flight, mapped to its\n * pending promise. The render path awaits these to guarantee no draw\n * happens while a load is still resolving. Cleared on completion.\n */\n protected inFlightLoads = new Map<string, Promise<void>>();\n /** Keys of assets that have been fully loaded and are ready to use. */\n protected cachedAssets = new Set<string>();\n\n // ─── Asset loading dispatch ───────────────────────────────────────────────\n\n /** Whether `key` has finished loading and is usable now. */\n isLoaded(key: string): boolean {\n return this.cachedAssets.has(key);\n }\n\n async loadAsset(key: string, value: AssetRecord): Promise<void> {\n const existing = this.inFlightLoads.get(key);\n if (existing) return existing;\n if (this.cachedAssets.has(key)) return;\n\n const job = this.runLoad(key, value);\n this.inFlightLoads.set(key, job);\n try {\n await job;\n } finally {\n this.inFlightLoads.delete(key);\n }\n }\n\n private async runLoad(key: string, value: AssetRecord): Promise<void> {\n let loaded = true;\n switch (value.type) {\n case 'image':\n await this.loadImage(key);\n break;\n case 'video':\n await this.loadVideo(key, value.startFrame, value.endFrame, value.trimStart, value.trimEnd);\n break;\n case 'font': {\n const { fontFamily, fontWeight } = this.parseFontKey(key);\n loaded = await this.loadFont(key, fontFamily, fontWeight);\n if (!loaded && this.getDecodePolicy() === \"exact\") {\n throw new AssetNotLoadedError(\n \"font\",\n fontFamily,\n `The manifest has no font entry for \"${fontFamily}\", so this frame would be shaped against the fallback face and differ from the one drawn once it is described. Add the family to the manifest's font record.`,\n );\n }\n break;\n }\n case 'audio':\n // Audio files are loaded on-demand via fetchAudioData / syncAudio, not through loadAsset.\n break;\n case 'loader':\n // Loaders are opaque callbacks run directly by the AssetManager and\n // never dispatched through the storage adapter.\n throw new Error(\"Loader records must not be routed through StorageAdapter.loadAsset\");\n default: {\n const _exhaustive: never = value;\n throw new Error(`Unsupported asset type: ${(_exhaustive as AssetRecord).type}`);\n }\n }\n\n // Only a load that actually happened is cached. This matters for exactly\n // one case: a font family the manifest cannot describe. Caching it anyway\n // marked the family handled for the life of this adapter, so a manifest\n // that *later* described it — which is what installing a typeface does,\n // folded into the live manifest without rebuilding the controller — could\n // never load it, and the text stayed in the fallback face until something\n // else tore the adapter down.\n if (loaded) this.cachedAssets.add(key);\n }\n\n // ─── Font key parsing ─────────────────────────────────────────────────────\n\n protected parseFontKey(key: string): { fontFamily: string; fontWeight: number } {\n const [fontFamily, weightStr] = key.split('@');\n const fontWeight = weightStr ? parseInt(weightStr, 10) : 400;\n return {\n fontFamily: fontFamily || key,\n fontWeight: isNaN(fontWeight) ? 400 : fontWeight,\n };\n }\n\n // ─── Abstract load methods ────────────────────────────────────────────────\n\n /** Decode resolution follows the draw, so a load names only the source. */\n abstract loadImage(src: string): Promise<void>;\n abstract loadVideo(\n src: string,\n startFrame: number,\n endFrame: number,\n trimStart: number,\n trimEnd?: number,\n ): Promise<void>;\n abstract loadAudio(\n src: string,\n startFrame: number,\n endFrame: number,\n trimStart: number,\n trimEnd?: number,\n ): Promise<void>;\n abstract fetchAudioData(src: string): Promise<ArrayBuffer>;\n /**\n * Register every face of `fontFamily` the catalog describes.\n *\n * Returns whether the family was actually loaded. `false` means the manifest\n * has no entry for it. Not an error while previewing (an undescribed family\n * shapes against the platform fallback, which is what a system font name\n * does), but a blocking caller refuses it — see {@link DecodePolicy} — and\n * it must not be remembered as handled either way: see the note in\n * {@link runLoad}.\n */\n abstract loadFont(src: string, fontFamily: string, fontWeight: number): Promise<boolean>;\n\n // ─── Frame warming ────────────────────────────────────────────────────────\n\n /**\n * Decode any exact media frames the most recent render asked for but couldn't\n * satisfy synchronously (e.g. a video frame at a freshly-seeked timestamp),\n * and report whether there were any. A blocking caller (seek / screenshot /\n * export) renders once, awaits this, and re-renders while it returns true so\n * the frame is accurate even on a cold jump. Defaults to a no-op for adapters\n * with no time-varying media.\n */\n async warmPendingVideo(): Promise<boolean> {\n return false;\n }\n\n setDecodePolicy(policy: DecodePolicy): void {\n // no-op for adapters that decode at one resolution\n }\n\n /** Read back so a caller that borrows the adapter can restore it. */\n getDecodePolicy(): DecodePolicy {\n return \"interactive\";\n }\n\n /** Whether the most recent render left decodes that {@link warmPendingDecodes} would settle. */\n hasPendingDecodes(): boolean {\n return false;\n }\n\n /**\n * Settle what the last render could not draw acceptably under the current\n * policy — video frames, every exact image level under `\"exact\"`, a source\n * drawn with nothing resident under `\"interactive\"` — and report whether there\n * was any. See `renderSettled`.\n *\n * Defaults to {@link warmPendingVideo} so an adapter written against it keeps\n * working; that alias goes away after one release.\n */\n async warmPendingDecodes(): Promise<boolean> {\n return this.warmPendingVideo();\n }\n\n /**\n * Whether an `\"interactive\"` decode is on its way that would draw the last\n * render sharper. Not something a paint waits for: a preview shows what is\n * resident and repaints when {@link warmPendingUpgrades} reports a landing.\n */\n hasPendingUpgrades(): boolean {\n return false;\n }\n\n /** Await the upgrades {@link hasPendingUpgrades} reports; whether one landed. */\n async warmPendingUpgrades(): Promise<boolean> {\n return false;\n }\n\n /**\n * Notify the adapter whether playback is live. Time-varying media (video) uses\n * this to prefetch ahead only while playing and to quiesce on pause, so a\n * paused timeline doesn't drain a backlog of stale decodes. No-op by default.\n */\n setPlaying(playing: boolean): void {\n // no-op for adapters with no time-varying media\n }\n\n // ─── Lifecycle ────────────────────────────────────────────────────────────\n\n dispose(): void {\n this.inFlightLoads.clear();\n this.cachedAssets.clear();\n }\n}\n", "import { integrateSpeedToClipTime, sourceTimeAtClipElapsed } from './attributes/audio/ramp';\nimport type { NodeEffect } from './attributes/shape/effects/union';\nimport { ClipTimeline } from './document/timeline';\nimport type { VisualDocument } from './document/types';\n\n// The names the document API had before \"scene\" became \"clip\", kept until 1.0.\n\n/** @deprecated Renamed to {@link VisualDocument}. */\nexport type SceneDocument = VisualDocument;\n/** @deprecated Renamed to {@link ClipTimeline}. */\nexport const SceneTimeline = ClipTimeline;\n/** @deprecated Renamed to {@link ClipTimeline}. */\nexport type SceneTimeline = ClipTimeline;\n/** @deprecated Renamed to {@link NodeEffect}. */\nexport type SceneEffect = NodeEffect;\n/** @deprecated Renamed to {@link integrateSpeedToClipTime}. */\nexport const integrateSpeedToSceneTime = integrateSpeedToClipTime;\n/** @deprecated Renamed to {@link sourceTimeAtClipElapsed}. */\nexport const sourceTimeAtSceneElapsed = sourceTimeAtClipElapsed;\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["
|
|
3
|
+
"sources": ["../../src/runtime/engine.ts", "../../src/platform/audio-sink.ts", "../../src/platform/storage-adapter.ts"],
|
|
4
|
+
"sourcesContent": ["import { Size2D } from \"@/attributes/layout/size\";\nimport type { Shader } from \"@/attributes/shape/shaders/pack\";\nimport { AssetCatalog } from \"@/assets/catalog\";\nimport { AssetManifest } from \"@/assets/manifest\";\nimport { Registry, type NodeConstructor, type RegistryOptions } from \"@/document/registry\";\nimport { AudioSink } from \"@/platform/audio-sink\";\nimport { Exporter } from \"@/platform/exporter\";\nimport { Ticker } from \"@/platform/ticker\";\nimport { StorageAdapter } from \"@/platform/storage-adapter\";\nimport { CanvasRenderContext2D } from \"@/render/canvas-render-context2d\";\nimport { MeasureContext2D } from \"@/render/measure-context\";\nimport { RenderSurface } from \"@/render/surface\";\nimport { OpenOptions, Session } from \"./session\";\n\nexport type EngineRenderContext = CanvasRenderContext2D & RenderSurface;\n\nexport interface PlatformDeps {\n catalog: AssetCatalog;\n viewport: Size2D;\n fps: number;\n}\n\n/**\n * Each seam is a factory, not an instance: a storage adapter is per-viewport (it clamps decode resolution, so\n * a decode cached for one viewport is wrong at a larger one) while the engine outlives any session.\n *\n * The type parameter lets a platform hand its factories a richer storage adapter without `core` naming that\n * type; core stores and forwards these, never inspects them.\n */\nexport interface EnginePlatform<TStorage extends StorageAdapter = StorageAdapter> {\n createStorageAdapter(deps: PlatformDeps): TStorage;\n createRenderContext(storage: TStorage): EngineRenderContext;\n createMeasureContext(storage: TStorage): MeasureContext2D;\n createAudioSink(): AudioSink;\n /**\n * `null` when this environment has no realtime playback (a headless export has no wall clock): the session\n * reports `playback === null` rather than faking one.\n *\n * This seam separates preview from export, not browser from server: an export is frame-stepped in either,\n * because a wall-clock export drifts. Handed `audioDevice` because a clock that drives sound must share its\n * timebase (the browser's runs on the device's `AudioContext`).\n */\n createTicker(fps: number, audioDevice: AudioSink): Ticker | null;\n createExporter(): Exporter;\n /** Torn down with the engine. For a platform holding a device or a process. */\n dispose?(): void;\n}\n\n/** What to render is passed to `open()`. */\nexport interface EngineOptions {\n /** Components as an array, or a record naming each key outright. */\n nodes?: RegistryOptions[\"nodes\"];\n shaders?: RegistryOptions[\"shaders\"];\n lerps?: RegistryOptions[\"lerps\"];\n /** Enables `Engine.registerNode` with a source string; see `DynamicNodeConfig`. */\n dynamicNodes?: RegistryOptions[\"dynamicNodes\"];\n /** See `RegistryOptions.strict`. */\n strict?: boolean;\n /**\n * Asset metadata the renderer needs before it loads a file (an image's size, a clip's duration). Reconciled\n * with {@link Engine.setManifest} rather than rebuilt, so a change keeps every decode already cached.\n */\n manifest?: AssetManifest;\n /** Viewport used when a source carries none. Defaults to 1920×1080. */\n viewport?: Size2D;\n /** Frame rate used when a source carries none. Defaults to 60. */\n fps?: number;\n}\n\nexport const DEFAULT_VIEWPORT: Size2D = { width: 1920, height: 1080 };\nexport const DEFAULT_FPS = 60;\n/** What a document renders at when neither the caller nor the document says. */\nexport const DEFAULT_OUTPUT: { viewport: Size2D; fps: number } = { viewport: DEFAULT_VIEWPORT, fps: DEFAULT_FPS };\nexport const EMPTY_MANIFEST: AssetManifest = { image: {}, video: {}, audio: {}, font: {} };\n\n/**\n * Expensive and meant to be shared, one per app: the caches underneath it (registered fonts, decoded images,\n * shaped paragraphs) are why a warm engine beats a cold one, and live here so a preview, a filmstrip and an\n * export share them.\n *\n * What belongs here rather than on a `Session`: if two open documents could disagree about it, it is session\n * state. They can disagree about a theme; they cannot disagree about whether `\"pulseRing\"` is a registered\n * type, since one of them is simply invalid.\n */\nexport class Engine<TStorage extends StorageAdapter = StorageAdapter> {\n readonly viewport: Size2D;\n readonly fps: number;\n\n constructor(\n readonly platform: EnginePlatform<TStorage>,\n options: EngineOptions = {},\n ) {\n this._registry = new Registry({\n nodes: options.nodes,\n shaders: options.shaders,\n lerps: options.lerps,\n dynamicNodes: options.dynamicNodes,\n strict: options.strict,\n });\n this.viewport = options.viewport ?? DEFAULT_VIEWPORT;\n this.fps = options.fps ?? DEFAULT_FPS;\n this._manifest = options.manifest ?? EMPTY_MANIFEST;\n this._exporter = platform.createExporter();\n }\n\n get manifest(): AssetManifest {\n return this._manifest;\n }\n\n get exporter(): Exporter {\n return this._exporter;\n }\n\n /** Replaces what the catalog reports, not the bytes behind it, so existing sessions keep every decode. */\n setManifest(manifest: AssetManifest): void {\n this._manifest = manifest;\n for (const notify of this._manifestListeners) notify(manifest);\n }\n\n /**\n * Cheap: the renderer, fonts, decoded images and shaped paragraphs belong to the engine and are shared across\n * every session.\n */\n open(options: OpenOptions): Session {\n return new Session(this as Engine, options);\n }\n\n knows(key: string): boolean {\n return this._registry.hasNode(key);\n }\n\n /** Read-only: register or replace through `registerNode`/`registerShader`. */\n get registry(): Registry {\n return this._registry;\n }\n\n /**\n * Always `async`: one calling convention whether the argument resolves immediately (a class) or needs\n * compiling (a string).\n */\n async registerNode(\n nodeOrSource: NodeConstructor | string,\n options?: { replace?: boolean },\n ): Promise<NodeConstructor> {\n if (typeof nodeOrSource === \"string\") {\n return this._registry.addNodeFromSource(nodeOrSource, options);\n }\n this._registry.addNode(nodeOrSource, options);\n return nodeOrSource;\n }\n\n /** See `Registry.addShader` for why the key is never inferred from the pack. */\n registerShader(key: string, pack: unknown, options?: { replace?: boolean }): Shader {\n return this._registry.addShader(key, pack, options);\n }\n\n dispose(): void {\n this._manifestListeners.clear();\n this.platform.dispose?.();\n }\n\n /**\n * Not public surface; reach it through `registerNode`/`registerShader`/`knows`. A `Session` (same package)\n * reads it directly; nothing enforces that, as with `_onManifestChange`.\n */\n readonly _registry: Registry;\n private _manifest: AssetManifest;\n private readonly _exporter: Exporter;\n private readonly _manifestListeners = new Set<(m: AssetManifest) => void>();\n\n /** @internal A `Session` registers here for the life of its catalog. */\n _onManifestChange(notify: (m: AssetManifest) => void): () => void {\n this._manifestListeners.add(notify);\n return () => this._manifestListeners.delete(notify);\n }\n}\n", "import type { AudioRequest } from \"@/attributes/audio/request\";\n\n\n/** Stackable audio player driven by the AssetManager: it pushes decoded data in via {@link append}, the device schedules {@link AudioRequest}s via {@link schedule} and plays through {@link syncTo} each tick. */\nexport abstract class AudioSink {\n /** Whether pushing the audio working set does anything. False for a sink that discards everything (an export mixes offline at the end): `AssetManager.syncAudio` rebuilds a `Set`, id strings and a sorted signature every frame, so the work is skipped rather than done and thrown away. */\n get schedulesAudio(): boolean {\n return true;\n }\n\n abstract has(src: string): boolean;\n\n /** Decodes and stacks `data` under `src`; idempotent for a cached `src`. */\n abstract append(src: string, data: ArrayBuffer): Promise<void>;\n\n /** Drop cached audio data (and any active sources) for srcs not in `keep`. */\n abstract retain(keep: ReadonlySet<string>): void;\n\n /** Sets the working set for the current look-ahead window: requests no longer present stop; new ones become eligible via {@link syncTo} once their data is appended. */\n abstract schedule(requests: readonly AudioRequest[]): void;\n\n /** Starts/stops scheduled sources to match `clipTime`, every tick; sources whose data isn't appended yet are skipped. */\n abstract syncTo(clipTime: number): void;\n\n abstract play(time: number, speed: number, reverse: boolean): void | Promise<void>;\n abstract stop(): void;\n\n /** Mutes or unmutes all output. No-op by default (devices that produce no sound). */\n setMuted(muted: boolean): void {}\n\n /** Linear gain on all output, on top of each request's `volume`. Independent of {@link setMuted} (unmuting restores this level) so a host can hold a slider and a mute button. No-op by default. */\n setVolume(volume: number): void {}\n\n dispose(): void {\n this.stop();\n }\n}\n", "import { AssetCatalog } from \"@/assets/catalog\";\nimport { AssetNotLoadedError } from \"@/assets/errors\";\nimport { AssetRecord } from \"@/assets/record\";\nimport { Size2D } from \"@/attributes/layout/size\";\n\n/** How an adapter picks the decode resolution and how strict it is about what it cannot load. `\"exact\"` (export, stills): the level follows the current draw alone, so a frame is the same whatever was drawn before on a reused adapter, and an undescribed font family is refused. `\"interactive\"` (preview): reuse any resident level that is good enough, upgrade in the background, and draw an undescribed family in the fallback face. */\nexport type DecodePolicy = \"exact\" | \"interactive\";\n\nexport abstract class StorageAdapter {\n protected catalog: AssetCatalog;\n protected viewport: Size2D;\n constructor(catalog: AssetCatalog, viewport: Size2D) {\n this.catalog = catalog;\n this.viewport = viewport;\n }\n\n /** Points the adapter at a different catalog, keeping its caches. Safe because the catalog supplies only *metadata* and caches are keyed by source URL: a dropped src leaves an orphaned decode, an added one isn't cached yet. The viewport has no such setter; changing output size rebuilds the adapter. */\n setCatalog(catalog: AssetCatalog): void {\n this.catalog = catalog;\n }\n /** Every asset src whose load is in flight, with its promise; the render path awaits these so no draw happens mid-load. */\n protected inFlightLoads = new Map<string, Promise<void>>();\n /** Keys of assets that have been fully loaded and are ready to use. */\n protected cachedAssets = new Set<string>();\n\n /** Whether `key` has finished loading and is usable now. */\n isLoaded(key: string): boolean {\n return this.cachedAssets.has(key);\n }\n\n async loadAsset(key: string, value: AssetRecord): Promise<void> {\n const existing = this.inFlightLoads.get(key);\n if (existing) return existing;\n if (this.cachedAssets.has(key)) return;\n\n const job = this.runLoad(key, value);\n this.inFlightLoads.set(key, job);\n try {\n await job;\n } finally {\n this.inFlightLoads.delete(key);\n }\n }\n\n private async runLoad(key: string, value: AssetRecord): Promise<void> {\n let loaded = true;\n switch (value.type) {\n case 'image':\n await this.loadImage(key);\n break;\n case 'video':\n await this.loadVideo(key, value.startFrame, value.endFrame, value.trimStart, value.trimEnd);\n break;\n case 'font': {\n const { fontFamily, fontWeight } = this.parseFontKey(key);\n loaded = await this.loadFont(key, fontFamily, fontWeight);\n if (!loaded && this.getDecodePolicy() === \"exact\") {\n throw new AssetNotLoadedError(\n \"font\",\n fontFamily,\n `The manifest has no font entry for \"${fontFamily}\", so this frame would be shaped against the fallback face and differ from the one drawn once it is described. Add the family to the manifest's font record.`,\n );\n }\n break;\n }\n case 'audio':\n // Audio files load on demand via fetchAudioData / syncAudio, not loadAsset.\n break;\n case 'loader':\n // Loaders are opaque callbacks run directly by the AssetManager and\n // never dispatched through the storage adapter.\n throw new Error(\"Loader records must not be routed through StorageAdapter.loadAsset\");\n default: {\n const _exhaustive: never = value;\n throw new Error(`Unsupported asset type: ${(_exhaustive as AssetRecord).type}`);\n }\n }\n\n // Only a load that happened is cached: caching an undescribable font family marked it handled for this adapter's life, so a manifest that later described it (installing a typeface) could never load it.\n if (loaded) this.cachedAssets.add(key);\n }\n\n protected parseFontKey(key: string): { fontFamily: string; fontWeight: number } {\n const [fontFamily, weightStr] = key.split('@');\n const fontWeight = weightStr ? parseInt(weightStr, 10) : 400;\n return {\n fontFamily: fontFamily || key,\n fontWeight: isNaN(fontWeight) ? 400 : fontWeight,\n };\n }\n\n /** Decode resolution follows the draw, so a load names only the source. */\n abstract loadImage(src: string): Promise<void>;\n abstract loadVideo(\n src: string,\n startFrame: number,\n endFrame: number,\n trimStart: number,\n trimEnd?: number,\n ): Promise<void>;\n abstract loadAudio(\n src: string,\n startFrame: number,\n endFrame: number,\n trimStart: number,\n trimEnd?: number,\n ): Promise<void>;\n abstract fetchAudioData(src: string): Promise<ArrayBuffer>;\n /** Registers every face of `fontFamily` the catalog describes; `false` means the manifest has no entry. Not an error while previewing (the platform fallback shapes it), but a blocking caller refuses it (see {@link DecodePolicy}), and it must not be remembered as handled either way (see {@link runLoad}). */\n abstract loadFont(src: string, fontFamily: string, fontWeight: number): Promise<boolean>;\n\n /** Decodes any exact media frames the last render needed but couldn't satisfy synchronously (a video frame at a freshly-seeked time) and reports whether there were any. A blocking caller renders, awaits this, and re-renders while it returns true. No-op by default. */\n async warmPendingVideo(): Promise<boolean> {\n return false;\n }\n\n setDecodePolicy(policy: DecodePolicy): void {\n }\n\n /** Read back so a caller that borrows the adapter can restore it. */\n getDecodePolicy(): DecodePolicy {\n return \"interactive\";\n }\n\n /** Whether the most recent render left decodes that {@link warmPendingDecodes} would settle. */\n hasPendingDecodes(): boolean {\n return false;\n }\n\n /** Settles what the last render could not draw acceptably under the current policy (video frames, every exact image level under `\"exact\"`, a source drawn with nothing resident under `\"interactive\"`); reports whether there was any. Defaults to {@link warmPendingVideo} so older adapters keep working. See `renderSettled`. */\n async warmPendingDecodes(): Promise<boolean> {\n return this.warmPendingVideo();\n }\n\n /** Whether an `\"interactive\"` decode is on its way that would draw the last render sharper. A paint doesn't wait for it; a preview repaints when {@link warmPendingUpgrades} reports a landing. */\n hasPendingUpgrades(): boolean {\n return false;\n }\n\n async warmPendingUpgrades(): Promise<boolean> {\n return false;\n }\n\n /** Whether playback is live: video prefetches ahead only while playing and quiesces on pause. No-op by default. */\n setPlaying(playing: boolean): void {\n }\n\n dispose(): void {\n this.inFlightLoads.clear();\n this.cachedAssets.clear();\n }\n}\n"],
|
|
5
|
+
"mappings": "k6HAqEO,IAAMA,EAA2B,CAAE,MAAO,KAAM,OAAQ,IAAI,EACtDC,EAAc,GAEdC,GAAoD,CAAE,SAAUF,EAAkB,IAAKC,CAAW,EAClGE,EAAgC,CAAE,MAAO,CAAA,EAAI,MAAO,CAAA,EAAI,MAAO,CAAA,EAAI,KAAM,CAAA,CAAE,EAW3EC,EAAP,KAAa,CAKF,SAJJ,SACA,IAET,YACaC,EACTC,EAAyB,CAAA,EAAE,CADlB,KAAA,SAAAD,EAGT,KAAK,UAAY,IAAIE,EAAS,CAC1B,MAAOD,EAAQ,MACf,QAASA,EAAQ,QACjB,MAAOA,EAAQ,MACf,aAAcA,EAAQ,aACtB,OAAQA,EAAQ,OACnB,EACD,KAAK,SAAWA,EAAQ,UAAYN,EACpC,KAAK,IAAMM,EAAQ,KAAOL,EAC1B,KAAK,UAAYK,EAAQ,UAAYH,EACrC,KAAK,UAAYE,EAAS,eAAc,CAC5C,CAEA,IAAI,UAAQ,CACR,OAAO,KAAK,SAChB,CAEA,IAAI,UAAQ,CACR,OAAO,KAAK,SAChB,CAGA,YA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oBAAkB,CACpB,OAAO,KAAK,iBAAgB,CAChC,CAGA,oBAAkB,CACd,MAAO,EACX,CAEA,MAAM,qBAAmB,CACrB,MAAO,EACX,CAGA,WAAWC,EAAgB,CAC3B,CAEA,SAAO,CACH,KAAK,cAAc,MAAK,EACxB,KAAK,aAAa,MAAK,CAC3B",
|
|
6
|
+
"names": ["DEFAULT_VIEWPORT", "DEFAULT_FPS", "DEFAULT_OUTPUT", "EMPTY_MANIFEST", "Engine", "platform", "options", "Registry", "manifest", "notify", "Session", "key", "nodeOrSource", "pack", "AudioSink", "muted", "volume", "StorageAdapter", "catalog", "viewport", "key", "value", "existing", "job", "loaded", "fontFamily", "fontWeight", "AssetNotLoadedError", "_exhaustive", "weightStr", "policy", "playing"]
|
|
7
7
|
}
|
package/dist/browser/sdk.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{$ as
|
|
1
|
+
import{$ as lo,$a as or,A as Ie,Ac as gr,B as we,Ba as Bo,C as Le,Ca as bo,D as Fe,Da as jo,E as Me,Ea as ko,F as Be,G as je,H as ke,Ha as Go,I as Ge,Ia as _o,J as qe,Ja as zo,K as Ke,Ka as Ho,Kc as Cr,L as Qe,La as qo,Lc as Or,M as Ue,Ma as Ko,Mc as vr,N as Je,Na as Qo,Nc as Tr,O as We,Oc as Ar,P as Ye,Pa as Uo,Pc as Rr,Q as Ze,Qa as Jo,Qc as Er,R as $e,Ra as Wo,T as eo,U as to,Ua as Xo,V as ao,Va as Yo,W as no,X as so,Y as po,Ya as Zo,Z as mo,Za as $o,_ as io,_a as er,_b as dr,aa as fo,ab as rr,ba as xo,ca as co,d as H,da as Do,ea as uo,fa as ho,ga as Po,ha as So,hb as tr,ia as go,j as U,ja as Co,ka as Oo,la as vo,m as J,ma as To,oa as Ao,ob as ar,pa as Ro,pb as nr,qa as Eo,qb as sr,qc as xr,r as xe,ra as yo,rb as pr,rc as cr,s as ve,sa as No,sb as mr,sc as Dr,t as Te,ta as Vo,tb as ir,tc as ur,u as Ae,ua as Io,ub as lr,uc as hr,v as Re,va as wo,vc as Pr,w as Ee,wa as Lo,x as ye,xa as Mo,y as Ne,yb as fr,z as Ve,zc as Sr}from"./chunks/chunk-3ZIUZZC7.js";import{$ as u,$a as j,$c as de,Ac as re,Bd as ce,C as p,Cd as De,D as m,Ec as te,Ed as ue,Ee as He,Fa as E,Fc as ae,Fe as Xe,Gc as ne,Ge as oo,H as i,I as l,Ic as se,J as f,Ka as y,Kd as he,La as V,Lc as pe,Ld as Pe,Ma as I,Mc as me,Nc as ie,Ob as q,Q as d,Qb as K,Re as ro,Sd as Se,Ta as w,Tc as le,Td as ge,Ua as L,Ub as Q,Va as F,We as Fo,Y as x,Ya as M,Yd as Ce,Z as c,Za as B,_ as D,_a as b,_c as fe,a as e,ba as h,ca as P,d as r,e as t,ee as Oe,fa as S,ga as g,ha as C,ib as k,ie as be,jb as G,kb as _,mc as W,n as s,na as O,nc as X,pc as Y,qc as Z,ra as v,rc as $,sa as T,ta as A,te as _e,ua as R,uc as ee,vb as z,vc as oe,ye as ze}from"./chunks/chunk-7YOYMMXK.js";import"./chunks/chunk-GEJEQQER.js";import{b as o,d as a,h as n,m as N}from"./chunks/chunk-5TDMGUXQ.js";export{x as AdjustmentChain,D as Adjustments,be as Aim,Ao as AmbientLight3D,Vo as AreaLight3D,Ze as AudioBus,z as AudioEffects,Me as BooleanGroup,no as Box3D,je as Camera,Io as Camera3D,xe as Canvas2D,Mo as Canvas3D,Do as Capsule3D,xo as Circle3D,le as Clip,io as Cone3D,oe as ContextMap,mo as Cylinder3D,Ko as DOCUMENT_FORMAT_VERSION,Ue as DefaultTextStyle,Eo as DirectionalLight3D,Qo as DocumentTooNewError,l as EffectChain,f as Effects,Te as Ellipse,Lo as Environment3D,ce as ExpressionError,ho as Extrude3D,d as Fills,Se as Flow,wo as Fog3D,ar as Geo,g as Graphics2D,v as Graphics3D,to as Group3D,Ro as HemisphereLight3D,we as Hexagon,go as Instances3D,Po as Lathe3D,Oo as Line3D,Be as MaskGroup,nr as Mat,ro as Material,ao as Mesh3D,To as Model3D,Ke as NumberNode,Le as Octagon,ke as OrbitCamera,Ce as Paint,ye as Path,S as PathBuilder,Ee as PathShape,Ie as Pentagon,po as Plane3D,yo as PointLight3D,Co as Points3D,Ae as Polygon,Re as Polygram,uo as Polyhedron3D,Je as Provider,bo as ROOT_NODE_ID,Er as Random,ve as Rect,Zo as Registry,T as RenderContext3D,Qe as RichText,Ve as RightTriangle,co as Ring3D,Ge as RotatedBox,R as Scene3D,Rr as SeedGenerator,Oe as Shapes,H as Sound,Ye as SoundNode,so as Sphere3D,No as SpotLight3D,vo as Sprite3D,Fe as Star,sr as Tex,qe as Text,_e as TextLayout,We as ThemeProvider,lo as Torus3D,fo as TorusKnot3D,Ne as Triangle,So as Tube3D,He as Typeface,Pe as Types,$e as Video,c as VideoAdjustmentChain,u as VideoAdjustments,Fo as View3D,h as alignmentOps,qo as asProjectDocument,Xo as assertValidDocument,cr as childPlanePointAt,F as clamp,gr as collectBoxes,s as colorOps,$ as commandParallel,Z as commandSequence,_o as commandSpan,ge as commandsFor,he as component2d,oo as component3d,Xe as componentAudio,r as cornerRadiusOps,t as cornerStyleOps,ee as createContext,Ar as createRef,p as describeEffect,zo as documentDuration,Uo as documentFormatVersion,B as easeIn,j as easeInOut,b as easeOut,m as effectDescriptors,ko as effectiveSpan,fr as evaluateParametric,mr as evaluateRoundedBox,De as expressionOps,y as fillOps,fe as findNode2D,te as flowOps,de as frameIn,Tr as generateList,re as getCommandMeta,hr as handleValueAt,Bo as hasTimeline,G as hold,P as insetsOps,W as isCommand,U as isKnownShaderProperty,Ho as isProjectDocument,_ as isRamp,se as lerpEuler3,o as lerpNumber,a as lerpVector2,ne as lerpVector3,M as linear,Y as loopCommand,X as makeCommand,Jo as migrateDocument,ue as migrateNodeProps,Yo as missingNodeOf,Pr as nodeBox,ur as nodeHandlesAt,jo as nodeSpan,$o as nodeTypeIsA,me as normalizeQuaternion,J as normalizeShaderPack,er as parentIssue,xr as parentPlanePointAt,Or as parseCSV,n as parseColor,vr as parseData,N as pathOps,Sr as pickNode,dr as placeTracks,rr as placementIssues,ze as provides,ie as quaternionFromEuler,k as ramp,Dr as reparentPlacementAt,eo as resolveCameraPlacement,e as resolveCorners,E as resolveFill,O as resolveFill3D,Cr as resolveProjectDocument,i as resolveShaderProperties,V as resolveShadow,A as resolveShadows3D,w as resolveStroke,C as resolveSurfaceSource,ae as resolveVector3,pr as segmentsOf,ir as shadowCasts,I as shadowOps,lr as shadowReceives,or as siblingIssue,K as sizeInputOps,pe as slerpQuaternion,q as space3dOps,L as strokeOps,Q as textOps,tr as toPathString,Go as untimed,Wo as validateDocument};
|
|
2
2
|
//# sourceMappingURL=sdk.js.map
|
package/dist/component.d.ts
CHANGED
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* What a
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* A subpath rather than the main barrel because none of this is engine API: a
|
|
7
|
-
* scene author never reaches for it.
|
|
8
|
-
*
|
|
9
|
-
* This file is a **re-export barrel only** — everything it names lives beside
|
|
10
|
-
* whatever actually owns it (the number formatter beside the Number node, the
|
|
11
|
-
* orbit-camera lerps under `attributes/`) rather than duplicated here.
|
|
2
|
+
* What a component package built on this engine needs and cannot supply itself: number formatting, the text a
|
|
3
|
+
* host falls back to, the named shape outlines and the orbit-camera lerps. A subpath rather than the main
|
|
4
|
+
* barrel because none of it is engine API. A re-export barrel only: everything lives beside whatever owns it.
|
|
12
5
|
*/
|
|
13
6
|
export * from "./components/builtins/text/text-defaults.js";
|
|
14
7
|
export * from "./util/metrics.js";
|
package/dist/component.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../src/component.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../src/component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,0CAA0C,CAAA;AACxD,cAAc,gBAAgB,CAAA;AAC9B,cAAc,0CAA0C,CAAA;AACxD,cAAc,2CAA2C,CAAA;AACzD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,8CAA8C,CAAA"}
|
package/dist/component.js
CHANGED
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* What a
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* A subpath rather than the main barrel because none of this is engine API: a
|
|
7
|
-
* scene author never reaches for it.
|
|
8
|
-
*
|
|
9
|
-
* This file is a **re-export barrel only** — everything it names lives beside
|
|
10
|
-
* whatever actually owns it (the number formatter beside the Number node, the
|
|
11
|
-
* orbit-camera lerps under `attributes/`) rather than duplicated here.
|
|
2
|
+
* What a component package built on this engine needs and cannot supply itself: number formatting, the text a
|
|
3
|
+
* host falls back to, the named shape outlines and the orbit-camera lerps. A subpath rather than the main
|
|
4
|
+
* barrel because none of it is engine API. A re-export barrel only: everything lives beside whatever owns it.
|
|
12
5
|
*/
|
|
13
6
|
export * from "./components/builtins/text/text-defaults.js";
|
|
14
7
|
export * from "./util/metrics.js";
|
package/dist/component.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../src/component.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../src/component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,0CAA0C,CAAA;AACxD,cAAc,gBAAgB,CAAA;AAC9B,cAAc,0CAA0C,CAAA;AACxD,cAAc,2CAA2C,CAAA;AACzD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,8CAA8C,CAAA","sourcesContent":["/**\n * What a component package built on this engine needs and cannot supply itself: number formatting, the text a\n * host falls back to, the named shape outlines and the orbit-camera lerps. A subpath rather than the main\n * barrel because none of it is engine API. A re-export barrel only: everything lives beside whatever owns it.\n */\nexport * from \"@/components/builtins/text/text-defaults\"\nexport * from \"@/util/metrics\"\nexport * from \"@/components/builtins/text/number-format\"\nexport * from \"@/components/builtins/text/number-pattern\"\nexport * from \"@/attributes/render3d/orbit\"\nexport * from \"@/components/builtins/geometry/shape-outline\"\n"]}
|
|
@@ -802,36 +802,17 @@ export type Hexagon = NodeOf<typeof Hexagon>;
|
|
|
802
802
|
export type Octagon = NodeOf<typeof Octagon>;
|
|
803
803
|
export type Star = NodeOf<typeof Star>;
|
|
804
804
|
export interface PaintProps extends Node2DProps {
|
|
805
|
-
/**
|
|
806
|
-
* Fill layer(s). Each item can be:
|
|
807
|
-
* - A plain CSS color string → treated as a solid fill
|
|
808
|
-
* - A fill prop object (SolidFillProp, LinearGradientFillProp, …)
|
|
809
|
-
* - An already-resolved fill object
|
|
810
|
-
* - A {@link FillChain} from the `Fills` builder (e.g. `Fills.color('red')`)
|
|
811
|
-
*/
|
|
805
|
+
/** Fill layer(s): a CSS color string (solid), a fill prop object, an already-resolved fill, or a {@link FillChain} from `Fills`. */
|
|
812
806
|
fill?: Fill;
|
|
813
|
-
/**
|
|
814
|
-
* Stroke layer(s): a single {@link StrokeProp}, an array of them, or an
|
|
815
|
-
* already-resolved stroke. `fill` inside each stroke accepts the same loose
|
|
816
|
-
* values as the top-level fill prop.
|
|
817
|
-
*/
|
|
807
|
+
/** Stroke layer(s): a {@link StrokeProp}, an array, or already resolved; each `fill` takes the same loose values as the top-level fill. */
|
|
818
808
|
stroke?: Stroke;
|
|
819
|
-
/**
|
|
820
|
-
* Shadow layer(s): a single {@link ShadowProp}, an array of them, or an
|
|
821
|
-
* already-resolved shadow. `fill` inside each shadow accepts the same loose
|
|
822
|
-
* values as the top-level fill prop.
|
|
823
|
-
*/
|
|
809
|
+
/** Shadow layer(s): a {@link ShadowProp}, an array, or already resolved; each `fill` takes the same loose values as the top-level fill. */
|
|
824
810
|
shadow?: Shadow;
|
|
825
811
|
start?: number;
|
|
826
812
|
end?: number;
|
|
827
813
|
}
|
|
828
814
|
export interface ShapeProps extends PaintProps, FlowProps {
|
|
829
|
-
/**
|
|
830
|
-
* Overlay layer(s) — the same loose values as {@link PaintProps.fill}, but
|
|
831
|
-
* painted *over* this node's fill **and** its children (clipped to the node's
|
|
832
|
-
* silhouette) while still sitting **under** the stroke. Use for textures
|
|
833
|
-
* laid across the whole subtree, e.g. a VHS-grain image or video.
|
|
834
|
-
*/
|
|
815
|
+
/** Overlay layer(s), the same loose values as {@link PaintProps.fill}, painted over this node's fill **and** children (clipped to its silhouette) but under the stroke: e.g. a VHS-grain image or video across the subtree. */
|
|
835
816
|
overlay?: Fill;
|
|
836
817
|
}
|
|
837
818
|
export type FlexSize = number | "fill" | "hug";
|
|
@@ -857,10 +838,7 @@ export interface PolygonProps extends ShapeProps {
|
|
|
857
838
|
export interface PolygramProps extends ShapeProps {
|
|
858
839
|
/** Number of outer points. Must be ≥ 3. */
|
|
859
840
|
sides: number;
|
|
860
|
-
/**
|
|
861
|
-
* Inner-to-outer radius ratio (0–1). Controls how deeply the star points are cut.
|
|
862
|
-
* At 1 the shape degenerates into a regular polygon; lower values produce sharper points.
|
|
863
|
-
*/
|
|
841
|
+
/** Inner-to-outer radius ratio (0–1): how deeply the points are cut. At 1 it degenerates into a regular polygon. */
|
|
864
842
|
ratio: number;
|
|
865
843
|
/** Vertex rounding radius in pixels applied to both inner and outer vertices. */
|
|
866
844
|
cornerRadius: number;
|
|
@@ -868,43 +846,24 @@ export interface PolygramProps extends ShapeProps {
|
|
|
868
846
|
cornerStyle: CornerStyle;
|
|
869
847
|
}
|
|
870
848
|
export interface PathShapeProps extends ShapeProps {
|
|
871
|
-
/**
|
|
872
|
-
* The geometry, as an SVG `d` string in the node's **unit box** — see
|
|
873
|
-
* {@link PathData}.
|
|
874
|
-
*/
|
|
849
|
+
/** The geometry, as an SVG `d` string in the node's **unit box** (see {@link PathData}). */
|
|
875
850
|
data: PathData;
|
|
876
851
|
}
|
|
877
852
|
export interface PathProps extends ShapeProps {
|
|
878
853
|
data: PathData;
|
|
879
854
|
}
|
|
880
855
|
/**
|
|
881
|
-
* The named shapes
|
|
882
|
-
*
|
|
856
|
+
* The named shapes (triangle, right triangle, pentagon, hexagon, octagon, star) as engine nodes. They fill their box
|
|
857
|
+
* rather than inscribing in it like a `Polygon` (which leaves a gap under a triangle's base; see `./shape-outline`),
|
|
858
|
+
* and are separate types rather than a switch because "which shape is this" is picked once and must be visible at a
|
|
859
|
+
* glance in the layers panel.
|
|
883
860
|
*
|
|
884
|
-
*
|
|
861
|
+
* The silhouette goes to the renderer as a `path` op, not a `polygon`, so corner rounding is ours: the engine's
|
|
862
|
+
* polygon rounds the inscribed figure, and rounding a stretched one is a different arc at every vertex. The shape on
|
|
863
|
+
* screen and the one after converting to a Path node are also built by the same function.
|
|
885
864
|
*
|
|
886
|
-
*
|
|
887
|
-
*
|
|
888
|
-
* which is a good one: it's what makes a `sides` tween smooth). These fill the
|
|
889
|
-
* box instead. The two behaviours can't be one node with a switch, because
|
|
890
|
-
* "which shape is this" is the sort of thing a scene's author picks once and a
|
|
891
|
-
* reader of the layers panel needs to see at a glance — so each is a type of its
|
|
892
|
-
* own, named for what it draws.
|
|
893
|
-
*
|
|
894
|
-
* ## Why they're paths rather than polygons
|
|
895
|
-
*
|
|
896
|
-
* The silhouette is handed to the renderer as a `path` op rather than a
|
|
897
|
-
* `polygon` one, which is what lets corner rounding be *ours*: the engine's
|
|
898
|
-
* polygon geometry rounds the inscribed figure, and rounding a stretched one is
|
|
899
|
-
* a different arc at every vertex. Drawing the outline ourselves also means the
|
|
900
|
-
* shape a user is looking at and the shape they get when they start editing its
|
|
901
|
-
* points are built by the same function, so converting to a Path node changes
|
|
902
|
-
* nothing on screen.
|
|
903
|
-
*
|
|
904
|
-
* The outline is rebuilt per draw rather than cached against the box. It is a
|
|
905
|
-
* handful of trig per vertex on a shape with at most ten of them, and the
|
|
906
|
-
* alternative — a cache keyed on width, height, radius, style and the two
|
|
907
|
-
* parametric fields — costs more to keep honest than it saves.
|
|
865
|
+
* The outline is rebuilt per draw, not cached: it is a handful of trig per vertex on at most ten vertices, and a cache
|
|
866
|
+
* keyed on width, height, radius, style and the two parametric fields costs more to keep honest than it saves.
|
|
908
867
|
*/
|
|
909
868
|
export interface BoundsShapeProps extends ShapeProps {
|
|
910
869
|
/** Vertex rounding radius in pixels. */
|
|
@@ -912,10 +871,4 @@ export interface BoundsShapeProps extends ShapeProps {
|
|
|
912
871
|
/** Vertex shape: `'rounded'` (circular arc) or `'angled'` (chamfer). */
|
|
913
872
|
cornerStyle: CornerStyle;
|
|
914
873
|
}
|
|
915
|
-
export interface StarProps extends BoundsShapeProps {
|
|
916
|
-
/** How many points the star has. */
|
|
917
|
-
points: number;
|
|
918
|
-
/** Inner radius as a fraction of the outer one — how deep the points cut. */
|
|
919
|
-
ratio: number;
|
|
920
|
-
}
|
|
921
874
|
//# sourceMappingURL=geometry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geometry.d.ts","sourceRoot":"","sources":["../../../../src/components/builtins/geometry/geometry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,WAAW,EAAE,KAAK,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAGxH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAOvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2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