@motionscript/core 0.1.0 → 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 +10 -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 +15 -91
- 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-CCGVIR4F.js → chunk-5TDMGUXQ.js} +3 -3
- 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 +0 -2
- 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 -53
- package/dist/components/trees/node/node-reactive.d.ts.map +1 -1
- package/dist/components/trees/node/node-reactive.js +4 -33
- 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 +14 -37
- package/dist/document/command-traits.d.ts.map +1 -1
- package/dist/document/command-traits.js +22 -39
- 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 +11 -23
- package/dist/document/settled-index.d.ts.map +1 -1
- package/dist/document/settled-index.js +15 -34
- 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 +71 -275
- 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 +2 -13
- package/dist/props/host.d.ts.map +1 -1
- package/dist/props/host.js.map +1 -1
- package/dist/props/layout.d.ts +1 -12
- package/dist/props/layout.d.ts.map +1 -1
- package/dist/props/layout.js +1 -12
- package/dist/props/layout.js.map +1 -1
- 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-CCGVIR4F.js.map +0 -7
- package/dist/browser/chunks/chunk-N4WSN5WY.js +0 -13
- package/dist/browser/chunks/chunk-N4WSN5WY.js.map +0 -7
- package/dist/browser/chunks/chunk-WZSI3GSK.js +0 -6
- package/dist/browser/chunks/chunk-WZSI3GSK.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
package/dist/document/types.d.ts
CHANGED
|
@@ -2,397 +2,223 @@ import type { EaseSpec } from "../tween/ease/spec.js";
|
|
|
2
2
|
import { type LoopSpec } from "../tween/loop.js";
|
|
3
3
|
import type { Theme } from "../project/config.js";
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* tween concern and lives with the tweens (`tween/loop.ts`).
|
|
5
|
+
* A loop is stored on a {@link CommandSpec} like an {@link EaseSpec}, but its arithmetic lives with the tweens
|
|
6
|
+
* (`tween/loop.ts`).
|
|
8
7
|
*/
|
|
9
8
|
export type { LoopDirection, LoopSpec } from "../tween/loop.js";
|
|
10
9
|
/**
|
|
11
|
-
* The clip document:
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* looked like was to run frames 0..N-1. That made a whole class of host
|
|
15
|
-
* impossible — a document cannot be stored, diffed, synced or evaluated out of
|
|
16
|
-
* order when its meaning is "whatever running this code does". These types are
|
|
17
|
-
* the replacement: a clip is rows, and a frame is a pure function of them.
|
|
18
|
-
*
|
|
19
|
-
* The split between what is data and what is code is deliberate and total:
|
|
20
|
-
*
|
|
21
|
-
* - **Nodes are code.** A node type is a class registered under a string key
|
|
22
|
-
* (see `document/registry.ts`). That is the extension point — a custom node
|
|
23
|
-
* with its own `property` declarations, its own `renderSelf`, its own
|
|
24
|
-
* `command` methods — and it is where anything a JSON value cannot express
|
|
25
|
-
* (a computed lookup table, a generated point cloud) belongs.
|
|
26
|
-
* - **Documents are data.** Which nodes exist, what props they carry, and what
|
|
27
|
-
* happens to them over time are plain JSON.
|
|
28
|
-
*
|
|
29
|
-
* Everything here is JSON-serializable by construction: no functions, no class
|
|
30
|
-
* instances. A document round-trips through a file or a database column without
|
|
31
|
-
* a mapping layer.
|
|
10
|
+
* The clip document, as data: JSON-serializable by construction (no functions, no class instances), so it
|
|
11
|
+
* round-trips through a file or a database column. Nodes are code (a class registered under a string key,
|
|
12
|
+
* `document/registry.ts`, where anything JSON cannot express belongs); documents are data.
|
|
32
13
|
*/
|
|
33
14
|
/**
|
|
34
|
-
* One node
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* otherwise: a command addresses its target by `id`, and a nested tree makes
|
|
38
|
-
* "move this node under that one" a structural rewrite rather than a
|
|
39
|
-
* single-field edit. It is also the shape a relational store already wants —
|
|
40
|
-
* `parentId` is a self-referencing foreign key.
|
|
41
|
-
*
|
|
42
|
-
* The scene root is not special-cased here: it is the one row with
|
|
43
|
-
* `id: ""`, `type: "canvas2d"` and `parentId: null` — see
|
|
44
|
-
* {@link CommandSpec.targetId}.
|
|
15
|
+
* One node as a flat row, not a nested tree: a command addresses its target by `id`, and "move this under
|
|
16
|
+
* that" stays a single-field edit (`parentId` is a self-referencing foreign key). The scene root is the one
|
|
17
|
+
* row with `id: ""`, `type: "canvas2d"` and `parentId: null`.
|
|
45
18
|
*/
|
|
46
19
|
export interface NodeSpec {
|
|
47
|
-
/** Stable identity. Command targets resolve to it; it survives reordering. */
|
|
48
20
|
id: string;
|
|
49
21
|
/**
|
|
50
|
-
* Registry key of the node's class
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* children and is reported in `buildErrors` (`missing-node.ts`), so one
|
|
54
|
-
* missing component costs one node rather than the clip; `validateDocument`
|
|
55
|
-
* with a registry reports it up front.
|
|
22
|
+
* Registry key of the node's class. A key the registry lacks builds as an inert placeholder keeping the row's
|
|
23
|
+
* id, props and children, reported in `buildErrors` (`missing-node.ts`), so one missing component costs one
|
|
24
|
+
* node, not the clip.
|
|
56
25
|
*/
|
|
57
26
|
type: string;
|
|
58
27
|
/**
|
|
59
|
-
* The handle an **expression** names this node by: `"=[card.x]"` reads the
|
|
60
|
-
* `x` of the node keyed `card`. See {@link CompositionDocument} and
|
|
61
|
-
* `document/expression/`.
|
|
62
|
-
*
|
|
63
|
-
* Optional and **never generated**, unlike {@link id} — a node has one
|
|
64
|
-
* because an author wrote one, which is what makes it safe to point a
|
|
65
|
-
* formula at. Unique per document all the same: a second `card` would make
|
|
66
|
-
* `[card.x]` mean whichever row was read last. It is a *reference*, not an
|
|
67
|
-
* address — a `parentId` or a `targetId` is always an {@link id}, so there is
|
|
68
|
-
* exactly one way to say which node and one way to say which handle.
|
|
28
|
+
* The handle an **expression** names this node by: `"=[card.x]"` reads the `x` of the node keyed `card`.
|
|
69
29
|
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
30
|
+
* Optional and never generated, unlike {@link id}: a node has one because an author wrote one. Unique per
|
|
31
|
+
* document, or `[card.x]` would mean whichever row was read last. A `parentId` or `targetId` is always an
|
|
32
|
+
* {@link id}, never a key. Not a display label.
|
|
72
33
|
*/
|
|
73
34
|
key?: string;
|
|
74
|
-
/** Parent node id, or `null` for a direct child of the scene root. */
|
|
75
35
|
parentId: string | null;
|
|
76
|
-
/**
|
|
77
|
-
* Position among siblings. Load-bearing rather than cosmetic: a `row`/
|
|
78
|
-
* `column` parent lays its children out in exactly this order.
|
|
79
|
-
*/
|
|
36
|
+
/** Load-bearing: a `row`/`column` parent lays its children out in exactly this order. */
|
|
80
37
|
layerOrder: number;
|
|
81
38
|
/**
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
* diff small and lets a change to a default actually reach existing
|
|
85
|
-
* documents.
|
|
39
|
+
* **Sparse**: only what differs from the type's declared defaults, which keeps a document diff small and lets
|
|
40
|
+
* a change to a default reach existing documents.
|
|
86
41
|
*/
|
|
87
42
|
props: Record<string, unknown>;
|
|
88
43
|
}
|
|
89
44
|
/**
|
|
90
|
-
* A {@link NodeSpec} placed on a clip's clock
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
* The span is a field of the node rather than a pair of commands, so a node is
|
|
94
|
-
* the same row whether a still or a composition holds it — moving a subtree
|
|
95
|
-
* between the two is dropping or adding these two fields, never rewriting rows.
|
|
96
|
-
* Not `start`/`end`: a painted node already owns those as path-trim props.
|
|
45
|
+
* A {@link NodeSpec} placed on a clip's clock. The span is a field of the node, not a pair of commands, so a
|
|
46
|
+
* node is the same row in a still or a composition. Not `start`/`end`: a painted node owns those as path-trim
|
|
47
|
+
* props.
|
|
97
48
|
*/
|
|
98
49
|
export interface TimedNodeSpec extends NodeSpec {
|
|
99
|
-
/**
|
|
50
|
+
/** Absent is `0`. */
|
|
100
51
|
startAt?: number;
|
|
101
|
-
/**
|
|
52
|
+
/** Absent is never: it stays to the clip's end. */
|
|
102
53
|
endAt?: number;
|
|
103
54
|
}
|
|
104
55
|
/**
|
|
105
|
-
* A
|
|
56
|
+
* A named value in neither the tree nor the command list, so a change happens in one place: twelve nodes
|
|
57
|
+
* fading together are one `variableTo` and twelve props bound to `"=[fade]"`.
|
|
106
58
|
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
* `
|
|
111
|
-
*
|
|
112
|
-
* Every document kind declares them the same way, in `variables`. On a still
|
|
113
|
-
* nothing can change one, so it is a fixed value; on a composition a
|
|
114
|
-
* `variableTo`/`variableSet` command may drive it. A variable has no presence
|
|
115
|
-
* span: an expression naming one that "does not exist yet" is a broken document,
|
|
116
|
-
* so a variable holds its declared {@link value} from t=0 until a command
|
|
117
|
-
* changes it.
|
|
118
|
-
*
|
|
119
|
-
* Nothing reads a variable except an expression (`document/expression/`), and an
|
|
120
|
-
* expression can only appear in a prop — so a variable cannot read another
|
|
121
|
-
* variable, and no chain of them can cycle. A prop reading another node's prop
|
|
122
|
-
* (`[key.x]`) is the case that can, and `validate.ts` refuses it.
|
|
59
|
+
* A variable has no presence span: it holds its declared {@link value} from t=0 until a command changes it,
|
|
60
|
+
* since an expression naming one that "does not exist yet" would be a broken document. Only an expression
|
|
61
|
+
* reads a variable, and only in a prop, so variables cannot cycle; a prop reading another node's prop
|
|
62
|
+
* (`[key.x]`) can, and `validate.ts` refuses it.
|
|
123
63
|
*/
|
|
124
64
|
export interface VariableSpec {
|
|
125
|
-
/**
|
|
126
|
-
* Stable identity. Commands target it, and `[id]` in an expression names
|
|
127
|
-
* it — one key, not two, so there is nothing to keep in sync.
|
|
128
|
-
*/
|
|
65
|
+
/** Commands target it and `[id]` in an expression names it: one key, so nothing to keep in sync. */
|
|
129
66
|
id: string;
|
|
130
|
-
/** A display label for a host's UI. Expressions never see it. */
|
|
131
67
|
name?: string;
|
|
132
68
|
/**
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
* Any JSON value. A number is the common case, but a colour string, a
|
|
137
|
-
* `Vector2` or a whole fill object all work — a lone `"=[x]"` hands the
|
|
138
|
-
* value through untouched, so a variable is as expressive as the prop it
|
|
139
|
-
* drives.
|
|
69
|
+
* Any JSON value; a lone `"=[x]"` hands it through untouched. It is also the type every command that writes it
|
|
70
|
+
* is expected to produce.
|
|
140
71
|
*/
|
|
141
72
|
value: unknown;
|
|
142
73
|
/**
|
|
143
|
-
*
|
|
144
|
-
* `"
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
* Absent means `"number"` for a numeric {@link value} and `"step"` for
|
|
148
|
-
* anything else: snap at the end rather than interpolate garbage.
|
|
74
|
+
* Registry key (`"number"`, `"vector2"`, `"vector3"`, `"color"`, `"step"`, or one from `Registry.addLerp`); a
|
|
75
|
+
* command may override it per tween. Absent is `"number"` for a numeric {@link value}, else `"step"`: snap at
|
|
76
|
+
* the end rather than interpolate garbage.
|
|
149
77
|
*/
|
|
150
78
|
lerp?: string;
|
|
151
79
|
}
|
|
152
|
-
/** How a command eases, as data — resolved to an `EasingFunction` once, at compile time. */
|
|
153
80
|
export type { EaseSpec } from "../tween/ease/spec.js";
|
|
154
81
|
/**
|
|
155
|
-
* One command
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
* suspending — running `a` to completion before `b` began — which is why order
|
|
159
|
-
* of evaluation was order of execution, and why seeking backwards meant
|
|
160
|
-
* starting over. A command
|
|
161
|
-
* carries its own `at`, so:
|
|
162
|
-
*
|
|
163
|
-
* - **sequence** is `b.at === a.at + a.duration`,
|
|
164
|
-
* - **parallel** is two commands sharing an `at`,
|
|
165
|
-
* - **wait** is a gap between them.
|
|
166
|
-
*
|
|
167
|
-
* There are no `sequence`/`parallel`/`wait` primitives any more because there
|
|
168
|
-
* is nothing left for them to do. And because every command's span is declared
|
|
169
|
-
* rather than discovered, the scene's duration, its asset windows and each
|
|
170
|
-
* node's lifespan are all readable straight off the document — see
|
|
171
|
-
* `runtime/analysis.ts`.
|
|
82
|
+
* One command placed on the timeline. Sequence is `b.at === a.at + a.duration`, parallel is two commands
|
|
83
|
+
* sharing an `at`, wait is a gap. Because every span is declared rather than discovered, the scene's duration,
|
|
84
|
+
* asset windows and node lifespans are readable straight off the document (`runtime/analysis.ts`).
|
|
172
85
|
*/
|
|
173
86
|
export interface CommandSpec {
|
|
174
|
-
/** Stable identity, so a host can address and reorder one command. */
|
|
175
87
|
id: string;
|
|
176
88
|
/**
|
|
177
|
-
* Registry key
|
|
178
|
-
*
|
|
179
|
-
* `"countTo"`, …). See `document/registry.ts`. A command changes what a
|
|
180
|
-
* node holds, never whether it exists — that is its {@link TimedNodeSpec} span.
|
|
89
|
+
* Registry key: `"to"`, `"set"`, `"variableTo"`, or any `command()` method a node class exposes. A command
|
|
90
|
+
* changes what a node holds, never whether it exists; that is its {@link TimedNodeSpec} span.
|
|
181
91
|
*/
|
|
182
92
|
type: string;
|
|
183
93
|
/**
|
|
184
|
-
* The node this command acts on, or `null` for the scene root
|
|
185
|
-
*
|
|
186
|
-
* background paint and its camera (the node with `id: ""`,
|
|
187
|
-
* `type: "canvas2d"`).
|
|
94
|
+
* The node this command acts on, or `null` for the scene root (the `Canvas2D` with `id: ""`: layout frame,
|
|
95
|
+
* background paint and camera).
|
|
188
96
|
*
|
|
189
|
-
* A
|
|
190
|
-
*
|
|
191
|
-
*
|
|
192
|
-
* unique across nodes and variables so a host grouping its timeline rows by
|
|
193
|
-
* `targetId` cannot conflate the two.
|
|
97
|
+
* A variable command (`"variableTo"`, `"variableSet"`) names a {@link VariableSpec} here; the command type
|
|
98
|
+
* says which table. Ids are unique across nodes and variables so a host grouping rows by `targetId` cannot
|
|
99
|
+
* conflate the two.
|
|
194
100
|
*/
|
|
195
101
|
targetId: string | null;
|
|
196
102
|
/**
|
|
197
|
-
* Seconds
|
|
198
|
-
*
|
|
199
|
-
* Seconds rather than a frame index because a document has to survive an
|
|
200
|
-
* fps change: the same scene rendered at 30 and at 60 must be the same
|
|
201
|
-
* animation, not the same integers. Frames are derived (`at * fps`).
|
|
103
|
+
* Seconds, not frames, so the same scene at 30 and 60 fps is the same animation. Frames are derived (`at *
|
|
104
|
+
* fps`).
|
|
202
105
|
*/
|
|
203
106
|
at: number;
|
|
204
107
|
/**
|
|
205
|
-
* Seconds
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
* repeats it instead of squeezing the same motion into the same time: a
|
|
209
|
-
* two-second spin repeated three times runs for six seconds and each turn
|
|
210
|
-
* still takes two. The span is {@link commandSpan}.
|
|
108
|
+
* Seconds one pass takes. Absent or `0` is a stamp: it applies at once. One pass, not the whole span, so
|
|
109
|
+
* {@link loop}ing repeats the motion rather than squeezing it into the same time. The span is {@link
|
|
110
|
+
* commandSpan}.
|
|
211
111
|
*/
|
|
212
112
|
duration?: number;
|
|
213
|
-
/** How it eases, per pass. Absent means the command's own default. */
|
|
214
113
|
easing?: EaseSpec;
|
|
215
114
|
/**
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
* A placement field beside {@link at} and {@link duration} rather than
|
|
219
|
-
* something inside {@link args}, because repeating is not any one command's
|
|
220
|
-
* business: the runtime wraps the *built* command, so `to`, `fillTo`,
|
|
221
|
-
* `countTo` and a node's own `command()` all loop by the same code and a
|
|
222
|
-
* newly written command type gets it for free.
|
|
115
|
+
* A placement field, not part of {@link args}: the runtime wraps the built command, so every command type
|
|
116
|
+
* loops by the same code. Absent runs it once.
|
|
223
117
|
*/
|
|
224
118
|
loop?: LoopSpec;
|
|
225
119
|
/**
|
|
226
|
-
*
|
|
227
|
-
*
|
|
228
|
-
* carries its leading arguments by parameter name. Never wrapped in an extra
|
|
229
|
-
* key for a command with exactly one argument.
|
|
120
|
+
* Shape is per command type: `"to"`/`"set"`'s is the props diff, `"variableTo"`'s carries the `value`, a named
|
|
121
|
+
* command carries its leading arguments by parameter name.
|
|
230
122
|
*/
|
|
231
123
|
args: Record<string, unknown>;
|
|
232
124
|
}
|
|
233
125
|
/**
|
|
234
|
-
* A **still**: a node tree and nothing else.
|
|
235
|
-
*
|
|
236
|
-
*
|
|
237
|
-
* "an animation nobody ran" because the two are edited by different tools and
|
|
238
|
-
* validated by different rules — a still carrying a duration, or a half-applied
|
|
239
|
-
* tween, is a document that should never have been representable.
|
|
240
|
-
*
|
|
241
|
-
* The scene root — `fill`, `overlay`, `flow`, `align`, `padding`, the camera
|
|
242
|
-
* (`zoom`, `origin`, `heading`) — is not a separate field: it is the row in
|
|
243
|
-
* {@link nodes} with `id: ""` and `type: "canvas2d"`. Omitting it gets the
|
|
244
|
-
* default root.
|
|
126
|
+
* A **still**: a node tree and nothing else, one frame. Its own type because a still is edited and validated
|
|
127
|
+
* differently: one carrying a duration or a half-applied tween should not be representable. The scene root is
|
|
128
|
+
* the row in {@link nodes} with `id: ""` and `type: "canvas2d"`; omitting it gets the default root.
|
|
245
129
|
*/
|
|
246
130
|
export interface StillDocument {
|
|
247
131
|
kind: "still";
|
|
248
|
-
/**
|
|
132
|
+
/** Absent is format 0 (written before the field existed); see `migrate.ts`. */
|
|
249
133
|
formatVersion?: number;
|
|
250
|
-
/**
|
|
134
|
+
/** Order is irrelevant: `parentId`/`layerOrder` carry the structure. */
|
|
251
135
|
nodes: NodeSpec[];
|
|
252
|
-
/** Values props bind to with an expression. Fixed here — nothing on a still changes one. */
|
|
253
136
|
variables?: VariableSpec[];
|
|
254
137
|
/**
|
|
255
|
-
* Colour tokens and typography presets this clip resolves against.
|
|
256
|
-
*
|
|
257
|
-
*
|
|
258
|
-
* clip *looks like* — a lower third in a brand's palette is that document,
|
|
259
|
-
* not that document plus a setting a host remembered to pass alongside it.
|
|
260
|
-
* A project's own `theme` is the default for clips that declare none.
|
|
138
|
+
* Colour tokens and typography presets this clip resolves against. On the clip, not only the project, because
|
|
139
|
+
* a theme is part of what a clip looks like; a project's own `theme` is the default for clips that declare
|
|
140
|
+
* none.
|
|
261
141
|
*/
|
|
262
142
|
theme?: Theme;
|
|
263
143
|
}
|
|
264
144
|
/**
|
|
265
|
-
* A **composition**: a still's node tree
|
|
266
|
-
*
|
|
267
|
-
*
|
|
268
|
-
* The nodes are the same rows a still holds, each with its own span, so when a
|
|
269
|
-
* node appears is one editable field rather than an implicit consequence of
|
|
270
|
-
* where a `stage.add(...)` sat in a function body — and a subtree lifted out of
|
|
271
|
-
* a still drops in here unchanged.
|
|
272
|
-
*
|
|
273
|
-
* The scene root is the row in {@link nodes} with `id: ""` and
|
|
274
|
-
* `type: "canvas2d"`, as on a still. Omitting it gets the default root; a
|
|
275
|
-
* command targeting `null` animates it like any other node.
|
|
145
|
+
* A **composition**: a still's node tree placed in time, plus the commands that animate it. The nodes are the
|
|
146
|
+
* same rows a still holds, each with its own span. The root is the row with `id: ""` and `type: "canvas2d"`,
|
|
147
|
+
* as on a still; a command targeting `null` animates it.
|
|
276
148
|
*/
|
|
277
149
|
export interface CompositionDocument {
|
|
278
150
|
kind: "composition";
|
|
279
|
-
/**
|
|
151
|
+
/** Absent is format 0 (written before the field existed); see `migrate.ts`. */
|
|
280
152
|
formatVersion?: number;
|
|
281
|
-
/**
|
|
153
|
+
/** Order is irrelevant: `parentId`/`layerOrder` carry the structure. */
|
|
282
154
|
nodes: TimedNodeSpec[];
|
|
283
|
-
/** Values props bind to with an expression, and that `variableTo`/`variableSet` may drive. */
|
|
284
155
|
variables?: VariableSpec[];
|
|
285
|
-
/**
|
|
156
|
+
/** Order is irrelevant; `at` is the placement. */
|
|
286
157
|
commands: CommandSpec[];
|
|
287
|
-
/**
|
|
288
|
-
* Colour tokens and typography presets this clip resolves against.
|
|
289
|
-
*
|
|
290
|
-
* On the clip, not only on the project, because a theme is part of what a
|
|
291
|
-
* clip *looks like* — a lower third in a brand's palette is that document,
|
|
292
|
-
* not that document plus a setting a host remembered to pass alongside it.
|
|
293
|
-
* A project's own `theme` is the default for clips that declare none.
|
|
294
|
-
*/
|
|
158
|
+
/** Colour tokens and typography presets this clip resolves against; see {@link StillDocument.theme}. */
|
|
295
159
|
theme?: Theme;
|
|
296
160
|
/**
|
|
297
|
-
* Total
|
|
298
|
-
*
|
|
299
|
-
* almost always; set it to hold on the final frame, or to cut a scene short.
|
|
161
|
+
* Total seconds. Defaults to the last moment anything happens (a command's end, or a node's start or finite
|
|
162
|
+
* end); set it to hold the final frame or cut a scene short.
|
|
300
163
|
*/
|
|
301
164
|
duration?: number;
|
|
302
165
|
}
|
|
303
166
|
/**
|
|
304
|
-
* An **audio document**: a bus tree placed in time,
|
|
305
|
-
*
|
|
306
|
-
*
|
|
307
|
-
* The audio counterpart to {@link CompositionDocument}, and it reads the same
|
|
308
|
-
* way for the same reason — when a sound starts is its node's `startAt`, not a
|
|
309
|
-
* consequence of running something.
|
|
310
|
-
*
|
|
311
|
-
* The root is implicit, on the same convention a composition uses for its
|
|
312
|
-
* `canvas2d`: `targetId: null` on a command, and `parentId: null` on a node,
|
|
313
|
-
* name *this document's own root bus* — the row with `id: ""` and
|
|
314
|
-
* `type: "audioBus"`. Omitting it gets the default one.
|
|
315
|
-
*
|
|
316
|
-
* There is deliberately no "still" case for audio: unlike a picture, sound with
|
|
317
|
-
* no timeline is silence, so the degenerate case is not worth a document kind.
|
|
167
|
+
* An **audio document**: a bus tree placed in time, with the commands that move it. Reads like {@link
|
|
168
|
+
* CompositionDocument}. The root is implicit: `targetId: null` and `parentId: null` name the row with `id: ""`
|
|
169
|
+
* and `type: "audioBus"`. There is no still case, since sound with no timeline is silence.
|
|
318
170
|
*/
|
|
319
171
|
export interface AudioDocument {
|
|
320
172
|
kind: "audio";
|
|
321
|
-
/**
|
|
173
|
+
/** Absent is format 0 (written before the field existed); see `migrate.ts`. */
|
|
322
174
|
formatVersion?: number;
|
|
323
|
-
/** Every node, the root bus included. */
|
|
324
175
|
nodes: TimedNodeSpec[];
|
|
325
|
-
/** Values props bind to with an expression, and that `variableTo`/`variableSet` may drive. */
|
|
326
176
|
variables?: VariableSpec[];
|
|
327
|
-
/**
|
|
177
|
+
/** Order is irrelevant; `at` is the placement. */
|
|
328
178
|
commands: CommandSpec[];
|
|
329
|
-
/**
|
|
179
|
+
/** Same rule as {@link CompositionDocument}. */
|
|
330
180
|
duration?: number;
|
|
331
181
|
}
|
|
332
|
-
/** Either **visual** document kind — the two that draw. */
|
|
333
182
|
export type VisualDocument = StillDocument | CompositionDocument;
|
|
334
183
|
/**
|
|
335
|
-
*
|
|
336
|
-
*
|
|
337
|
-
*
|
|
338
|
-
* placement does not care which. A composition already carries both halves —
|
|
339
|
-
* its `canvas2d` root takes audio children as readily as visual ones — so an
|
|
340
|
-
* {@link AudioDocument} is not "the audio track kind", it is the clip you reach
|
|
341
|
-
* for when there is no picture to go with the sound.
|
|
184
|
+
* One union rather than two lists, because a track is a placement and does not care which. A composition's
|
|
185
|
+
* `canvas2d` root already takes audio children, so an {@link AudioDocument} is the clip for when there is no
|
|
186
|
+
* picture to go with the sound.
|
|
342
187
|
*/
|
|
343
188
|
export type ClipDocument = VisualDocument | AudioDocument;
|
|
344
|
-
/** Narrows a {@link VisualDocument} to a still. */
|
|
345
189
|
export declare function isStillDocument(doc: VisualDocument): doc is StillDocument;
|
|
346
|
-
/** Narrows a {@link VisualDocument} to a composition. */
|
|
347
190
|
export declare function isCompositionDocument(doc: VisualDocument): doc is CompositionDocument;
|
|
348
|
-
/** Narrows a {@link ClipDocument} to an audio document. */
|
|
349
191
|
export declare function isAudioDocument(doc: ClipDocument): doc is AudioDocument;
|
|
350
|
-
/** Narrows a {@link ClipDocument} to one that has a clock — anything but a still. */
|
|
351
192
|
export declare function hasTimeline(doc: ClipDocument): doc is CompositionDocument | AudioDocument;
|
|
352
193
|
/**
|
|
353
|
-
*
|
|
354
|
-
*
|
|
355
|
-
* one boundary its rows become a document.
|
|
194
|
+
* A real id rather than a missing one. A host storing its root under another id maps it here at the boundary
|
|
195
|
+
* where its rows become a document.
|
|
356
196
|
*/
|
|
357
197
|
export declare const ROOT_NODE_ID = "";
|
|
358
|
-
/** When a node is in the tree. `end` is `Infinity` for a node that never leaves. */
|
|
359
198
|
export interface NodeSpan {
|
|
360
199
|
start: number;
|
|
361
200
|
end: number;
|
|
362
201
|
}
|
|
363
|
-
/** A node's own span, as declared. A still's node — no span fields — is present always. */
|
|
364
202
|
export declare function nodeSpan(spec: NodeSpec | TimedNodeSpec): NodeSpan;
|
|
365
203
|
/**
|
|
366
|
-
*
|
|
367
|
-
*
|
|
368
|
-
* A child hangs off its parent, so it cannot outlive it — this is what the
|
|
369
|
-
* runtime already does, and what an editor drawing a clipped bar or a validator
|
|
370
|
-
* asking "is the target there" should read. Empty (`start >= end`) when the
|
|
371
|
-
* spans never overlap; `undefined` for an id no row declares.
|
|
204
|
+
* A node's own span intersected with every ancestor's: a child cannot outlive its parent. Empty (`start >=
|
|
205
|
+
* end`) when the spans never overlap; `undefined` for an id no row declares.
|
|
372
206
|
*/
|
|
373
207
|
export declare function effectiveSpan(nodes: readonly (NodeSpec | TimedNodeSpec)[], id: string): NodeSpan | undefined;
|
|
374
|
-
/**
|
|
375
|
-
* {@link effectiveSpan} for every row at once, each ancestor chain walked once
|
|
376
|
-
* however many descendants share it.
|
|
377
|
-
*/
|
|
208
|
+
/** {@link effectiveSpan} for every row at once, each ancestor chain walked once. */
|
|
378
209
|
export declare function effectiveSpans(nodes: readonly (NodeSpec | TimedNodeSpec)[]): Map<string, NodeSpan>;
|
|
379
210
|
/** @internal {@link effectiveSpan} over an id map a caller already holds. */
|
|
380
211
|
export declare function effectiveSpanIn(byId: ReadonlyMap<string, NodeSpec | TimedNodeSpec>, id: string): NodeSpan | undefined;
|
|
381
|
-
/**
|
|
212
|
+
/** What a timed node becomes when it lands in a still. */
|
|
382
213
|
export declare function untimed(spec: NodeSpec | TimedNodeSpec): NodeSpec;
|
|
383
214
|
/**
|
|
384
|
-
*
|
|
385
|
-
*
|
|
386
|
-
* An unlimited loop counts as **one** pass. It has no length of its own — it
|
|
387
|
-
* runs for as long as there is clip — so letting it answer here would be a
|
|
388
|
-
* command asking for a scene as long as it wants, which is a scene that can
|
|
389
|
-
* never end.
|
|
215
|
+
* One pass, or every pass of a counted loop. An unlimited loop counts as **one**: it runs for as long as there
|
|
216
|
+
* is clip, and letting it answer here would make a command ask for a scene that can never end.
|
|
390
217
|
*/
|
|
391
218
|
export declare function commandSpan(command: CommandSpec): number;
|
|
392
219
|
/**
|
|
393
|
-
*
|
|
394
|
-
*
|
|
395
|
-
* has none.
|
|
220
|
+
* Its declared `duration`, else the last moment anything happens (a command's end, a node's arrival or finite
|
|
221
|
+
* departure). A still has none.
|
|
396
222
|
*/
|
|
397
223
|
export declare function documentDuration(doc: ClipDocument): number;
|
|
398
224
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/document/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE9C
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/document/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE9C;;;GAGG;AACH,YAAY,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE5D;;;;GAIG;AAEH;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACrB,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,yFAAyF;IACzF,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAc,SAAQ,QAAQ;IAC3C,qBAAqB;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mDAAmD;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,YAAY;IACzB,oGAAoG;IACpG,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,KAAK,EAAE,OAAO,CAAC;IACf;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,YAAY,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB,EAAE,EAAE,MAAM,CAAC;IACX;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;;OAOG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjC;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,+EAA+E;IAC/E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wEAAwE;IACxE,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAC3B;;;;OAIG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;CACjB;AAED;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC,IAAI,EAAE,aAAa,CAAC;IACpB,+EAA+E;IAC/E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wEAAwE;IACxE,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAC3B,kDAAkD;IAClD,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,wGAAwG;IACxG,KAAK,CAAC,EAAE,KAAK,CAAC;IAEd;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,+EAA+E;IAC/E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAC3B,kDAAkD;IAClD,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG,mBAAmB,CAAC;AAEjE;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,cAAc,GAAG,aAAa,CAAC;AAE1D,wBAAgB,eAAe,CAAC,GAAG,EAAE,cAAc,GAAG,GAAG,IAAI,aAAa,CAEzE;AAED,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,cAAc,GAAG,GAAG,IAAI,mBAAmB,CAErF;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,YAAY,GAAG,GAAG,IAAI,aAAa,CAEvE;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,YAAY,GAAG,GAAG,IAAI,mBAAmB,GAAG,aAAa,CAEzF;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,KAAK,CAAC;AAE/B,MAAM,WAAW,QAAQ;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,QAAQ,GAAG,aAAa,GAAG,QAAQ,CAGjE;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,CAAC,QAAQ,GAAG,aAAa,CAAC,EAAE,EAAE,EAAE,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAE5G;AAED,oFAAoF;AACpF,wBAAgB,cAAc,CAAC,KAAK,EAAE,SAAS,CAAC,QAAQ,GAAG,aAAa,CAAC,EAAE,GAAG,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAwClG;AAED,6EAA6E;AAC7E,wBAAgB,eAAe,CAC3B,IAAI,EAAE,WAAW,CAAC,MAAM,EAAE,QAAQ,GAAG,aAAa,CAAC,EACnD,EAAE,EAAE,MAAM,GACX,QAAQ,GAAG,SAAS,CAetB;AAED,0DAA0D;AAC1D,wBAAgB,OAAO,CAAC,IAAI,EAAE,QAAQ,GAAG,aAAa,GAAG,QAAQ,CAGhE;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,CAIxD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,YAAY,GAAG,MAAM,CAY1D"}
|
package/dist/document/types.js
CHANGED
|
@@ -1,46 +1,33 @@
|
|
|
1
1
|
import { loopPasses } from "../tween/loop.js";
|
|
2
|
-
/** Narrows a {@link VisualDocument} to a still. */
|
|
3
2
|
export function isStillDocument(doc) {
|
|
4
3
|
return doc.kind === "still";
|
|
5
4
|
}
|
|
6
|
-
/** Narrows a {@link VisualDocument} to a composition. */
|
|
7
5
|
export function isCompositionDocument(doc) {
|
|
8
6
|
return doc.kind === "composition";
|
|
9
7
|
}
|
|
10
|
-
/** Narrows a {@link ClipDocument} to an audio document. */
|
|
11
8
|
export function isAudioDocument(doc) {
|
|
12
9
|
return doc.kind === "audio";
|
|
13
10
|
}
|
|
14
|
-
/** Narrows a {@link ClipDocument} to one that has a clock — anything but a still. */
|
|
15
11
|
export function hasTimeline(doc) {
|
|
16
12
|
return doc.kind !== "still";
|
|
17
13
|
}
|
|
18
14
|
/**
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* one boundary its rows become a document.
|
|
15
|
+
* A real id rather than a missing one. A host storing its root under another id maps it here at the boundary
|
|
16
|
+
* where its rows become a document.
|
|
22
17
|
*/
|
|
23
18
|
export const ROOT_NODE_ID = "";
|
|
24
|
-
/** A node's own span, as declared. A still's node — no span fields — is present always. */
|
|
25
19
|
export function nodeSpan(spec) {
|
|
26
20
|
const timed = spec;
|
|
27
21
|
return { start: timed.startAt ?? 0, end: timed.endAt ?? Infinity };
|
|
28
22
|
}
|
|
29
23
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* A child hangs off its parent, so it cannot outlive it — this is what the
|
|
33
|
-
* runtime already does, and what an editor drawing a clipped bar or a validator
|
|
34
|
-
* asking "is the target there" should read. Empty (`start >= end`) when the
|
|
35
|
-
* spans never overlap; `undefined` for an id no row declares.
|
|
24
|
+
* A node's own span intersected with every ancestor's: a child cannot outlive its parent. Empty (`start >=
|
|
25
|
+
* end`) when the spans never overlap; `undefined` for an id no row declares.
|
|
36
26
|
*/
|
|
37
27
|
export function effectiveSpan(nodes, id) {
|
|
38
28
|
return effectiveSpanIn(new Map(nodes.map((n) => [n.id, n])), id);
|
|
39
29
|
}
|
|
40
|
-
/**
|
|
41
|
-
* {@link effectiveSpan} for every row at once, each ancestor chain walked once
|
|
42
|
-
* however many descendants share it.
|
|
43
|
-
*/
|
|
30
|
+
/** {@link effectiveSpan} for every row at once, each ancestor chain walked once. */
|
|
44
31
|
export function effectiveSpans(nodes) {
|
|
45
32
|
const byId = new Map(nodes.map((n) => [n.id, n]));
|
|
46
33
|
const spans = new Map();
|
|
@@ -60,8 +47,9 @@ export function effectiveSpans(nodes) {
|
|
|
60
47
|
break;
|
|
61
48
|
}
|
|
62
49
|
if (inChain.has(spec.id)) {
|
|
63
|
-
|
|
64
|
-
|
|
50
|
+
/**
|
|
51
|
+
* A parent cycle has no top to fold down from; an invalid document gets the single-id answer for each member.
|
|
52
|
+
*/
|
|
65
53
|
for (const member of chain)
|
|
66
54
|
spans.set(member.id, effectiveSpanIn(byId, member.id));
|
|
67
55
|
chain.length = 0;
|
|
@@ -102,18 +90,14 @@ export function effectiveSpanIn(byId, id) {
|
|
|
102
90
|
}
|
|
103
91
|
return span;
|
|
104
92
|
}
|
|
105
|
-
/**
|
|
93
|
+
/** What a timed node becomes when it lands in a still. */
|
|
106
94
|
export function untimed(spec) {
|
|
107
95
|
const { startAt: _startAt, endAt: _endAt, ...rest } = spec;
|
|
108
96
|
return rest;
|
|
109
97
|
}
|
|
110
98
|
/**
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
* An unlimited loop counts as **one** pass. It has no length of its own — it
|
|
114
|
-
* runs for as long as there is clip — so letting it answer here would be a
|
|
115
|
-
* command asking for a scene as long as it wants, which is a scene that can
|
|
116
|
-
* never end.
|
|
99
|
+
* One pass, or every pass of a counted loop. An unlimited loop counts as **one**: it runs for as long as there
|
|
100
|
+
* is clip, and letting it answer here would make a command ask for a scene that can never end.
|
|
117
101
|
*/
|
|
118
102
|
export function commandSpan(command) {
|
|
119
103
|
const duration = command.duration ?? 0;
|
|
@@ -122,9 +106,8 @@ export function commandSpan(command) {
|
|
|
122
106
|
return duration * loopPasses(command.loop);
|
|
123
107
|
}
|
|
124
108
|
/**
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
* has none.
|
|
109
|
+
* Its declared `duration`, else the last moment anything happens (a command's end, a node's arrival or finite
|
|
110
|
+
* departure). A still has none.
|
|
128
111
|
*/
|
|
129
112
|
export function documentDuration(doc) {
|
|
130
113
|
if (!hasTimeline(doc))
|