@motionscript/core 0.0.0-stage → 0.1.0-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 +5 -0
- package/LICENSE +201 -0
- package/README.md +71 -3
- package/dist/assets/asset-index.d.ts +48 -0
- package/dist/assets/asset-index.d.ts.map +1 -0
- package/dist/assets/asset-index.js +255 -0
- package/dist/assets/asset-index.js.map +1 -0
- package/dist/assets/catalog.d.ts +103 -0
- package/dist/assets/catalog.d.ts.map +1 -0
- package/dist/assets/catalog.js +78 -0
- package/dist/assets/catalog.js.map +1 -0
- package/dist/assets/errors.d.ts +32 -0
- package/dist/assets/errors.d.ts.map +1 -0
- package/dist/assets/errors.js +38 -0
- package/dist/assets/errors.js.map +1 -0
- package/dist/assets/index.d.ts +9 -0
- package/dist/assets/index.d.ts.map +1 -0
- package/dist/assets/index.js +5 -0
- package/dist/assets/index.js.map +1 -0
- package/dist/assets/manager.d.ts +67 -0
- package/dist/assets/manager.d.ts.map +1 -0
- package/dist/assets/manager.js +228 -0
- package/dist/assets/manager.js.map +1 -0
- package/dist/assets/manifest.d.ts +38 -0
- package/dist/assets/manifest.d.ts.map +1 -0
- package/dist/assets/manifest.js +2 -0
- package/dist/assets/manifest.js.map +1 -0
- package/dist/assets/record.d.ts +56 -0
- package/dist/assets/record.d.ts.map +1 -0
- package/dist/assets/record.js +2 -0
- package/dist/assets/record.js.map +1 -0
- package/dist/assets/scope.d.ts +91 -0
- package/dist/assets/scope.d.ts.map +1 -0
- package/dist/assets/scope.js +116 -0
- package/dist/assets/scope.js.map +1 -0
- package/dist/attributes/audio/filters/chain.d.ts +113 -0
- package/dist/attributes/audio/filters/chain.d.ts.map +1 -0
- package/dist/attributes/audio/filters/chain.js +104 -0
- package/dist/attributes/audio/filters/chain.js.map +1 -0
- package/dist/attributes/audio/filters/curve.d.ts +152 -0
- package/dist/attributes/audio/filters/curve.d.ts.map +1 -0
- package/dist/attributes/audio/filters/curve.js +249 -0
- package/dist/attributes/audio/filters/curve.js.map +1 -0
- package/dist/attributes/audio/filters/implementations/echo.d.ts +14 -0
- package/dist/attributes/audio/filters/implementations/echo.d.ts.map +1 -0
- package/dist/attributes/audio/filters/implementations/echo.js +11 -0
- package/dist/attributes/audio/filters/implementations/echo.js.map +1 -0
- package/dist/attributes/audio/filters/implementations/gain.d.ts +10 -0
- package/dist/attributes/audio/filters/implementations/gain.d.ts.map +1 -0
- package/dist/attributes/audio/filters/implementations/gain.js +6 -0
- package/dist/attributes/audio/filters/implementations/gain.js.map +1 -0
- package/dist/attributes/audio/filters/implementations/highpass.d.ts +12 -0
- package/dist/attributes/audio/filters/implementations/highpass.d.ts.map +1 -0
- package/dist/attributes/audio/filters/implementations/highpass.js +10 -0
- package/dist/attributes/audio/filters/implementations/highpass.js.map +1 -0
- package/dist/attributes/audio/filters/implementations/lowpass.d.ts +12 -0
- package/dist/attributes/audio/filters/implementations/lowpass.d.ts.map +1 -0
- package/dist/attributes/audio/filters/implementations/lowpass.js +10 -0
- package/dist/attributes/audio/filters/implementations/lowpass.js.map +1 -0
- package/dist/attributes/audio/filters/implementations/speed.d.ts +18 -0
- package/dist/attributes/audio/filters/implementations/speed.d.ts.map +1 -0
- package/dist/attributes/audio/filters/implementations/speed.js +6 -0
- package/dist/attributes/audio/filters/implementations/speed.js.map +1 -0
- package/dist/attributes/audio/filters/implementations/tremolo.d.ts +12 -0
- package/dist/attributes/audio/filters/implementations/tremolo.d.ts.map +1 -0
- package/dist/attributes/audio/filters/implementations/tremolo.js +10 -0
- package/dist/attributes/audio/filters/implementations/tremolo.js.map +1 -0
- package/dist/attributes/audio/filters/index.d.ts +22 -0
- package/dist/attributes/audio/filters/index.d.ts.map +1 -0
- package/dist/attributes/audio/filters/index.js +8 -0
- package/dist/attributes/audio/filters/index.js.map +1 -0
- package/dist/attributes/audio/filters/registry.d.ts +36 -0
- package/dist/attributes/audio/filters/registry.d.ts.map +1 -0
- package/dist/attributes/audio/filters/registry.js +82 -0
- package/dist/attributes/audio/filters/registry.js.map +1 -0
- package/dist/attributes/audio/filters/union.d.ts +18 -0
- package/dist/attributes/audio/filters/union.d.ts.map +1 -0
- package/dist/attributes/audio/filters/union.js +28 -0
- package/dist/attributes/audio/filters/union.js.map +1 -0
- package/dist/attributes/audio/request.d.ts +87 -0
- package/dist/attributes/audio/request.d.ts.map +1 -0
- package/dist/attributes/audio/request.js +2 -0
- package/dist/attributes/audio/request.js.map +1 -0
- package/dist/attributes/audio/schedule.d.ts +48 -0
- package/dist/attributes/audio/schedule.d.ts.map +1 -0
- package/dist/attributes/audio/schedule.js +79 -0
- package/dist/attributes/audio/schedule.js.map +1 -0
- package/dist/attributes/audio/sound.d.ts +58 -0
- package/dist/attributes/audio/sound.d.ts.map +1 -0
- package/dist/attributes/audio/sound.js +38 -0
- package/dist/attributes/audio/sound.js.map +1 -0
- package/dist/attributes/index.d.ts +24 -0
- package/dist/attributes/index.d.ts.map +1 -0
- package/dist/attributes/index.js +24 -0
- package/dist/attributes/index.js.map +1 -0
- package/dist/attributes/layout/alignment.d.ts +62 -0
- package/dist/attributes/layout/alignment.d.ts.map +1 -0
- package/dist/attributes/layout/alignment.js +64 -0
- package/dist/attributes/layout/alignment.js.map +1 -0
- package/dist/attributes/layout/index.d.ts +11 -0
- package/dist/attributes/layout/index.d.ts.map +1 -0
- package/dist/attributes/layout/index.js +7 -0
- package/dist/attributes/layout/index.js.map +1 -0
- package/dist/attributes/layout/insets.d.ts +48 -0
- package/dist/attributes/layout/insets.d.ts.map +1 -0
- package/dist/attributes/layout/insets.js +34 -0
- package/dist/attributes/layout/insets.js.map +1 -0
- package/dist/attributes/layout/matrix2d.d.ts +186 -0
- package/dist/attributes/layout/matrix2d.d.ts.map +1 -0
- package/dist/attributes/layout/matrix2d.js +321 -0
- package/dist/attributes/layout/matrix2d.js.map +1 -0
- package/dist/attributes/layout/size.d.ts +42 -0
- package/dist/attributes/layout/size.d.ts.map +1 -0
- package/dist/attributes/layout/size.js +51 -0
- package/dist/attributes/layout/size.js.map +1 -0
- package/dist/attributes/layout/space3d.d.ts +175 -0
- package/dist/attributes/layout/space3d.d.ts.map +1 -0
- package/dist/attributes/layout/space3d.js +387 -0
- package/dist/attributes/layout/space3d.js.map +1 -0
- package/dist/attributes/layout/transform3d.d.ts +47 -0
- package/dist/attributes/layout/transform3d.d.ts.map +1 -0
- package/dist/attributes/layout/transform3d.js +32 -0
- package/dist/attributes/layout/transform3d.js.map +1 -0
- package/dist/attributes/layout/vector2.d.ts +11 -0
- package/dist/attributes/layout/vector2.d.ts.map +1 -0
- package/dist/attributes/layout/vector2.js +11 -0
- package/dist/attributes/layout/vector2.js.map +1 -0
- package/dist/attributes/layout/world-transform.d.ts +37 -0
- package/dist/attributes/layout/world-transform.d.ts.map +1 -0
- package/dist/attributes/layout/world-transform.js +2 -0
- package/dist/attributes/layout/world-transform.js.map +1 -0
- package/dist/attributes/mask/boolean.d.ts +2 -0
- package/dist/attributes/mask/boolean.d.ts.map +1 -0
- package/dist/attributes/mask/boolean.js +2 -0
- package/dist/attributes/mask/boolean.js.map +1 -0
- package/dist/attributes/mask/mask.d.ts +9 -0
- package/dist/attributes/mask/mask.d.ts.map +1 -0
- package/dist/attributes/mask/mask.js +2 -0
- package/dist/attributes/mask/mask.js.map +1 -0
- package/dist/attributes/properties/decorator.d.ts +85 -0
- package/dist/attributes/properties/decorator.d.ts.map +1 -0
- package/dist/attributes/properties/decorator.js +72 -0
- package/dist/attributes/properties/decorator.js.map +1 -0
- package/dist/attributes/properties/inputs.d.ts +12 -0
- package/dist/attributes/properties/inputs.d.ts.map +1 -0
- package/dist/attributes/properties/inputs.js +7 -0
- package/dist/attributes/properties/inputs.js.map +1 -0
- package/dist/attributes/properties/typed.d.ts +206 -0
- package/dist/attributes/properties/typed.d.ts.map +1 -0
- package/dist/attributes/properties/typed.js +157 -0
- package/dist/attributes/properties/typed.js.map +1 -0
- package/dist/attributes/render3d/orbit.d.ts +116 -0
- package/dist/attributes/render3d/orbit.d.ts.map +1 -0
- package/dist/attributes/render3d/orbit.js +125 -0
- package/dist/attributes/render3d/orbit.js.map +1 -0
- package/dist/attributes/shape/corners/corner-radius.d.ts +18 -0
- package/dist/attributes/shape/corners/corner-radius.d.ts.map +1 -0
- package/dist/attributes/shape/corners/corner-radius.js +17 -0
- package/dist/attributes/shape/corners/corner-radius.js.map +1 -0
- package/dist/attributes/shape/corners/corner-style.d.ts +34 -0
- package/dist/attributes/shape/corners/corner-style.d.ts.map +1 -0
- package/dist/attributes/shape/corners/corner-style.js +21 -0
- package/dist/attributes/shape/corners/corner-style.js.map +1 -0
- package/dist/attributes/shape/corners/corners.d.ts +43 -0
- package/dist/attributes/shape/corners/corners.d.ts.map +1 -0
- package/dist/attributes/shape/corners/corners.js +70 -0
- package/dist/attributes/shape/corners/corners.js.map +1 -0
- package/dist/attributes/shape/corners/index.d.ts +8 -0
- package/dist/attributes/shape/corners/index.d.ts.map +1 -0
- package/dist/attributes/shape/corners/index.js +5 -0
- package/dist/attributes/shape/corners/index.js.map +1 -0
- package/dist/attributes/shape/effects/backdrop.d.ts +24 -0
- package/dist/attributes/shape/effects/backdrop.d.ts.map +1 -0
- package/dist/attributes/shape/effects/backdrop.js +37 -0
- package/dist/attributes/shape/effects/backdrop.js.map +1 -0
- package/dist/attributes/shape/effects/chain.d.ts +922 -0
- package/dist/attributes/shape/effects/chain.d.ts.map +1 -0
- package/dist/attributes/shape/effects/chain.js +776 -0
- package/dist/attributes/shape/effects/chain.js.map +1 -0
- package/dist/attributes/shape/effects/effect-data.d.ts +162 -0
- package/dist/attributes/shape/effects/effect-data.d.ts.map +1 -0
- package/dist/attributes/shape/effects/effect-data.js +80 -0
- package/dist/attributes/shape/effects/effect-data.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/ascii.d.ts +49 -0
- package/dist/attributes/shape/effects/implementations/ascii.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/ascii.js +38 -0
- package/dist/attributes/shape/effects/implementations/ascii.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/bit-crush.d.ts +33 -0
- package/dist/attributes/shape/effects/implementations/bit-crush.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/bit-crush.js +18 -0
- package/dist/attributes/shape/effects/implementations/bit-crush.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/block-displace.d.ts +29 -0
- package/dist/attributes/shape/effects/implementations/block-displace.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/block-displace.js +22 -0
- package/dist/attributes/shape/effects/implementations/block-displace.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/bloom.d.ts +12 -0
- package/dist/attributes/shape/effects/implementations/bloom.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/bloom.js +12 -0
- package/dist/attributes/shape/effects/implementations/bloom.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/blur.d.ts +8 -0
- package/dist/attributes/shape/effects/implementations/blur.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/blur.js +6 -0
- package/dist/attributes/shape/effects/implementations/blur.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/bulge.d.ts +14 -0
- package/dist/attributes/shape/effects/implementations/bulge.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/bulge.js +17 -0
- package/dist/attributes/shape/effects/implementations/bulge.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.d.ts +10 -0
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.js +11 -0
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/color-adjustment.d.ts +42 -0
- package/dist/attributes/shape/effects/implementations/color-adjustment.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/color-adjustment.js +27 -0
- package/dist/attributes/shape/effects/implementations/color-adjustment.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/curves.d.ts +21 -0
- package/dist/attributes/shape/effects/implementations/curves.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/curves.js +27 -0
- package/dist/attributes/shape/effects/implementations/curves.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/directional-blur.d.ts +15 -0
- package/dist/attributes/shape/effects/implementations/directional-blur.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/directional-blur.js +11 -0
- package/dist/attributes/shape/effects/implementations/directional-blur.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/displace.d.ts +48 -0
- package/dist/attributes/shape/effects/implementations/displace.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/displace.js +30 -0
- package/dist/attributes/shape/effects/implementations/displace.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/dither.d.ts +46 -0
- package/dist/attributes/shape/effects/implementations/dither.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/dither.js +23 -0
- package/dist/attributes/shape/effects/implementations/dither.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/drop-shadow.d.ts +40 -0
- package/dist/attributes/shape/effects/implementations/drop-shadow.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/drop-shadow.js +31 -0
- package/dist/attributes/shape/effects/implementations/drop-shadow.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/duotone.d.ts +21 -0
- package/dist/attributes/shape/effects/implementations/duotone.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/duotone.js +19 -0
- package/dist/attributes/shape/effects/implementations/duotone.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/edges.d.ts +27 -0
- package/dist/attributes/shape/effects/implementations/edges.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/edges.js +17 -0
- package/dist/attributes/shape/effects/implementations/edges.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/glass.d.ts +46 -0
- package/dist/attributes/shape/effects/implementations/glass.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/glass.js +25 -0
- package/dist/attributes/shape/effects/implementations/glass.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/glow.d.ts +93 -0
- package/dist/attributes/shape/effects/implementations/glow.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/glow.js +76 -0
- package/dist/attributes/shape/effects/implementations/glow.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/god-rays.d.ts +28 -0
- package/dist/attributes/shape/effects/implementations/god-rays.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/god-rays.js +26 -0
- package/dist/attributes/shape/effects/implementations/god-rays.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/grain.d.ts +29 -0
- package/dist/attributes/shape/effects/implementations/grain.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/grain.js +21 -0
- package/dist/attributes/shape/effects/implementations/grain.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/grayscale.d.ts +8 -0
- package/dist/attributes/shape/effects/implementations/grayscale.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/grayscale.js +6 -0
- package/dist/attributes/shape/effects/implementations/grayscale.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/halftone.d.ts +42 -0
- package/dist/attributes/shape/effects/implementations/halftone.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/halftone.js +19 -0
- package/dist/attributes/shape/effects/implementations/halftone.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/invert.d.ts +20 -0
- package/dist/attributes/shape/effects/implementations/invert.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/invert.js +11 -0
- package/dist/attributes/shape/effects/implementations/invert.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/kaleidoscope.d.ts +38 -0
- package/dist/attributes/shape/effects/implementations/kaleidoscope.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/kaleidoscope.js +25 -0
- package/dist/attributes/shape/effects/implementations/kaleidoscope.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/lut.d.ts +46 -0
- package/dist/attributes/shape/effects/implementations/lut.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/lut.js +21 -0
- package/dist/attributes/shape/effects/implementations/lut.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/magnify.d.ts +14 -0
- package/dist/attributes/shape/effects/implementations/magnify.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/magnify.js +17 -0
- package/dist/attributes/shape/effects/implementations/magnify.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/motion-blur.d.ts +38 -0
- package/dist/attributes/shape/effects/implementations/motion-blur.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/motion-blur.js +32 -0
- package/dist/attributes/shape/effects/implementations/motion-blur.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/oil-paint.d.ts +19 -0
- package/dist/attributes/shape/effects/implementations/oil-paint.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/oil-paint.js +12 -0
- package/dist/attributes/shape/effects/implementations/oil-paint.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/outline.d.ts +27 -0
- package/dist/attributes/shape/effects/implementations/outline.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/outline.js +20 -0
- package/dist/attributes/shape/effects/implementations/outline.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/pixelate.d.ts +25 -0
- package/dist/attributes/shape/effects/implementations/pixelate.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/pixelate.js +15 -0
- package/dist/attributes/shape/effects/implementations/pixelate.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/posterize.d.ts +17 -0
- package/dist/attributes/shape/effects/implementations/posterize.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/posterize.js +12 -0
- package/dist/attributes/shape/effects/implementations/posterize.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/progressive-blur.d.ts +56 -0
- package/dist/attributes/shape/effects/implementations/progressive-blur.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/progressive-blur.js +31 -0
- package/dist/attributes/shape/effects/implementations/progressive-blur.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/radial-blur.d.ts +31 -0
- package/dist/attributes/shape/effects/implementations/radial-blur.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/radial-blur.js +23 -0
- package/dist/attributes/shape/effects/implementations/radial-blur.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/rgb-shift.d.ts +25 -0
- package/dist/attributes/shape/effects/implementations/rgb-shift.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/rgb-shift.js +18 -0
- package/dist/attributes/shape/effects/implementations/rgb-shift.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/scanlines.d.ts +23 -0
- package/dist/attributes/shape/effects/implementations/scanlines.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/scanlines.js +21 -0
- package/dist/attributes/shape/effects/implementations/scanlines.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/scatter.d.ts +13 -0
- package/dist/attributes/shape/effects/implementations/scatter.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/scatter.js +19 -0
- package/dist/attributes/shape/effects/implementations/scatter.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/shader.d.ts +74 -0
- package/dist/attributes/shape/effects/implementations/shader.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/shader.js +42 -0
- package/dist/attributes/shape/effects/implementations/shader.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/sharpen.d.ts +21 -0
- package/dist/attributes/shape/effects/implementations/sharpen.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/sharpen.js +13 -0
- package/dist/attributes/shape/effects/implementations/sharpen.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/streak.d.ts +21 -0
- package/dist/attributes/shape/effects/implementations/streak.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/streak.js +18 -0
- package/dist/attributes/shape/effects/implementations/streak.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/texture.d.ts +28 -0
- package/dist/attributes/shape/effects/implementations/texture.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/texture.js +25 -0
- package/dist/attributes/shape/effects/implementations/texture.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/threshold.d.ts +18 -0
- package/dist/attributes/shape/effects/implementations/threshold.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/threshold.js +13 -0
- package/dist/attributes/shape/effects/implementations/threshold.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/trails.d.ts +41 -0
- package/dist/attributes/shape/effects/implementations/trails.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/trails.js +22 -0
- package/dist/attributes/shape/effects/implementations/trails.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/twirl.d.ts +25 -0
- package/dist/attributes/shape/effects/implementations/twirl.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/twirl.js +19 -0
- package/dist/attributes/shape/effects/implementations/twirl.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/vignette.d.ts +23 -0
- package/dist/attributes/shape/effects/implementations/vignette.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/vignette.js +21 -0
- package/dist/attributes/shape/effects/implementations/vignette.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/vintage.d.ts +10 -0
- package/dist/attributes/shape/effects/implementations/vintage.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/vintage.js +11 -0
- package/dist/attributes/shape/effects/implementations/vintage.js.map +1 -0
- package/dist/attributes/shape/effects/implementations/wave.d.ts +39 -0
- package/dist/attributes/shape/effects/implementations/wave.d.ts.map +1 -0
- package/dist/attributes/shape/effects/implementations/wave.js +26 -0
- package/dist/attributes/shape/effects/implementations/wave.js.map +1 -0
- package/dist/attributes/shape/effects/index.d.ts +62 -0
- package/dist/attributes/shape/effects/index.d.ts.map +1 -0
- package/dist/attributes/shape/effects/index.js +10 -0
- package/dist/attributes/shape/effects/index.js.map +1 -0
- package/dist/attributes/shape/effects/registry.d.ts +28 -0
- package/dist/attributes/shape/effects/registry.d.ts.map +1 -0
- package/dist/attributes/shape/effects/registry.js +156 -0
- package/dist/attributes/shape/effects/registry.js.map +1 -0
- package/dist/attributes/shape/effects/union.d.ts +48 -0
- package/dist/attributes/shape/effects/union.d.ts.map +1 -0
- package/dist/attributes/shape/effects/union.js +2 -0
- package/dist/attributes/shape/effects/union.js.map +1 -0
- package/dist/attributes/shape/fill/blend.d.ts +24 -0
- package/dist/attributes/shape/fill/blend.d.ts.map +1 -0
- package/dist/attributes/shape/fill/blend.js +41 -0
- package/dist/attributes/shape/fill/blend.js.map +1 -0
- package/dist/attributes/shape/fill/chain.d.ts +235 -0
- package/dist/attributes/shape/fill/chain.d.ts.map +1 -0
- package/dist/attributes/shape/fill/chain.js +249 -0
- package/dist/attributes/shape/fill/chain.js.map +1 -0
- package/dist/attributes/shape/fill/coerce.d.ts +44 -0
- package/dist/attributes/shape/fill/coerce.d.ts.map +1 -0
- package/dist/attributes/shape/fill/coerce.js +119 -0
- package/dist/attributes/shape/fill/coerce.js.map +1 -0
- package/dist/attributes/shape/fill/color/constants.d.ts +13 -0
- package/dist/attributes/shape/fill/color/constants.d.ts.map +1 -0
- package/dist/attributes/shape/fill/color/constants.js +162 -0
- package/dist/attributes/shape/fill/color/constants.js.map +1 -0
- package/dist/attributes/shape/fill/color/parser.d.ts +66 -0
- package/dist/attributes/shape/fill/color/parser.d.ts.map +1 -0
- package/dist/attributes/shape/fill/color/parser.js +293 -0
- package/dist/attributes/shape/fill/color/parser.js.map +1 -0
- package/dist/attributes/shape/fill/implementations/canvas3d.d.ts +46 -0
- package/dist/attributes/shape/fill/implementations/canvas3d.d.ts.map +1 -0
- package/dist/attributes/shape/fill/implementations/canvas3d.js +28 -0
- package/dist/attributes/shape/fill/implementations/canvas3d.js.map +1 -0
- package/dist/attributes/shape/fill/implementations/color.d.ts +17 -0
- package/dist/attributes/shape/fill/implementations/color.d.ts.map +1 -0
- package/dist/attributes/shape/fill/implementations/color.js +23 -0
- package/dist/attributes/shape/fill/implementations/color.js.map +1 -0
- package/dist/attributes/shape/fill/implementations/conic-gradient.d.ts +24 -0
- package/dist/attributes/shape/fill/implementations/conic-gradient.d.ts.map +1 -0
- package/dist/attributes/shape/fill/implementations/conic-gradient.js +32 -0
- package/dist/attributes/shape/fill/implementations/conic-gradient.js.map +1 -0
- package/dist/attributes/shape/fill/implementations/dot-grid.d.ts +41 -0
- package/dist/attributes/shape/fill/implementations/dot-grid.d.ts.map +1 -0
- package/dist/attributes/shape/fill/implementations/dot-grid.js +40 -0
- package/dist/attributes/shape/fill/implementations/dot-grid.js.map +1 -0
- package/dist/attributes/shape/fill/implementations/fractal-noise.d.ts +80 -0
- package/dist/attributes/shape/fill/implementations/fractal-noise.d.ts.map +1 -0
- package/dist/attributes/shape/fill/implementations/fractal-noise.js +75 -0
- package/dist/attributes/shape/fill/implementations/fractal-noise.js.map +1 -0
- package/dist/attributes/shape/fill/implementations/grid.d.ts +58 -0
- package/dist/attributes/shape/fill/implementations/grid.d.ts.map +1 -0
- package/dist/attributes/shape/fill/implementations/grid.js +58 -0
- package/dist/attributes/shape/fill/implementations/grid.js.map +1 -0
- package/dist/attributes/shape/fill/implementations/image.d.ts +148 -0
- package/dist/attributes/shape/fill/implementations/image.d.ts.map +1 -0
- package/dist/attributes/shape/fill/implementations/image.js +69 -0
- package/dist/attributes/shape/fill/implementations/image.js.map +1 -0
- package/dist/attributes/shape/fill/implementations/linear-gradient.d.ts +24 -0
- package/dist/attributes/shape/fill/implementations/linear-gradient.d.ts.map +1 -0
- package/dist/attributes/shape/fill/implementations/linear-gradient.js +32 -0
- package/dist/attributes/shape/fill/implementations/linear-gradient.js.map +1 -0
- package/dist/attributes/shape/fill/implementations/noise.d.ts +39 -0
- package/dist/attributes/shape/fill/implementations/noise.d.ts.map +1 -0
- package/dist/attributes/shape/fill/implementations/noise.js +37 -0
- package/dist/attributes/shape/fill/implementations/noise.js.map +1 -0
- package/dist/attributes/shape/fill/implementations/radial-gradient.d.ts +24 -0
- package/dist/attributes/shape/fill/implementations/radial-gradient.d.ts.map +1 -0
- package/dist/attributes/shape/fill/implementations/radial-gradient.js +32 -0
- package/dist/attributes/shape/fill/implementations/radial-gradient.js.map +1 -0
- package/dist/attributes/shape/fill/implementations/shader.d.ts +88 -0
- package/dist/attributes/shape/fill/implementations/shader.d.ts.map +1 -0
- package/dist/attributes/shape/fill/implementations/shader.js +75 -0
- package/dist/attributes/shape/fill/implementations/shader.js.map +1 -0
- package/dist/attributes/shape/fill/implementations/stripe.d.ts +23 -0
- package/dist/attributes/shape/fill/implementations/stripe.d.ts.map +1 -0
- package/dist/attributes/shape/fill/implementations/stripe.js +35 -0
- package/dist/attributes/shape/fill/implementations/stripe.js.map +1 -0
- package/dist/attributes/shape/fill/implementations/video.d.ts +134 -0
- package/dist/attributes/shape/fill/implementations/video.d.ts.map +1 -0
- package/dist/attributes/shape/fill/implementations/video.js +132 -0
- package/dist/attributes/shape/fill/implementations/video.js.map +1 -0
- package/dist/attributes/shape/fill/index.d.ts +26 -0
- package/dist/attributes/shape/fill/index.d.ts.map +1 -0
- package/dist/attributes/shape/fill/index.js +8 -0
- package/dist/attributes/shape/fill/index.js.map +1 -0
- package/dist/attributes/shape/fill/lerp.d.ts +15 -0
- package/dist/attributes/shape/fill/lerp.d.ts.map +1 -0
- package/dist/attributes/shape/fill/lerp.js +24 -0
- package/dist/attributes/shape/fill/lerp.js.map +1 -0
- package/dist/attributes/shape/fill/media-preset.d.ts +72 -0
- package/dist/attributes/shape/fill/media-preset.d.ts.map +1 -0
- package/dist/attributes/shape/fill/media-preset.js +63 -0
- package/dist/attributes/shape/fill/media-preset.js.map +1 -0
- package/dist/attributes/shape/fill/registry.d.ts +46 -0
- package/dist/attributes/shape/fill/registry.d.ts.map +1 -0
- package/dist/attributes/shape/fill/registry.js +155 -0
- package/dist/attributes/shape/fill/registry.js.map +1 -0
- package/dist/attributes/shape/fill/union.d.ts +57 -0
- package/dist/attributes/shape/fill/union.d.ts.map +1 -0
- package/dist/attributes/shape/fill/union.js +11 -0
- package/dist/attributes/shape/fill/union.js.map +1 -0
- package/dist/attributes/shape/filters/chain.d.ts +297 -0
- package/dist/attributes/shape/filters/chain.d.ts.map +1 -0
- package/dist/attributes/shape/filters/chain.js +313 -0
- package/dist/attributes/shape/filters/chain.js.map +1 -0
- package/dist/attributes/shape/filters/implementations/alpha.d.ts +9 -0
- package/dist/attributes/shape/filters/implementations/alpha.d.ts.map +1 -0
- package/dist/attributes/shape/filters/implementations/alpha.js +6 -0
- package/dist/attributes/shape/filters/implementations/alpha.js.map +1 -0
- package/dist/attributes/shape/filters/implementations/blur.d.ts +9 -0
- package/dist/attributes/shape/filters/implementations/blur.d.ts.map +1 -0
- package/dist/attributes/shape/filters/implementations/blur.js +6 -0
- package/dist/attributes/shape/filters/implementations/blur.js.map +1 -0
- package/dist/attributes/shape/filters/implementations/color-adjustment.d.ts +30 -0
- package/dist/attributes/shape/filters/implementations/color-adjustment.d.ts.map +1 -0
- package/dist/attributes/shape/filters/implementations/color-adjustment.js +27 -0
- package/dist/attributes/shape/filters/implementations/color-adjustment.js.map +1 -0
- package/dist/attributes/shape/filters/implementations/color-matrix.d.ts +15 -0
- package/dist/attributes/shape/filters/implementations/color-matrix.d.ts.map +1 -0
- package/dist/attributes/shape/filters/implementations/color-matrix.js +11 -0
- package/dist/attributes/shape/filters/implementations/color-matrix.js.map +1 -0
- package/dist/attributes/shape/filters/implementations/curves.d.ts +19 -0
- package/dist/attributes/shape/filters/implementations/curves.d.ts.map +1 -0
- package/dist/attributes/shape/filters/implementations/curves.js +17 -0
- package/dist/attributes/shape/filters/implementations/curves.js.map +1 -0
- package/dist/attributes/shape/filters/implementations/echo.d.ts +26 -0
- package/dist/attributes/shape/filters/implementations/echo.d.ts.map +1 -0
- package/dist/attributes/shape/filters/implementations/echo.js +16 -0
- package/dist/attributes/shape/filters/implementations/echo.js.map +1 -0
- package/dist/attributes/shape/filters/implementations/exposure.d.ts +9 -0
- package/dist/attributes/shape/filters/implementations/exposure.d.ts.map +1 -0
- package/dist/attributes/shape/filters/implementations/exposure.js +6 -0
- package/dist/attributes/shape/filters/implementations/exposure.js.map +1 -0
- package/dist/attributes/shape/filters/implementations/grayscale.d.ts +9 -0
- package/dist/attributes/shape/filters/implementations/grayscale.d.ts.map +1 -0
- package/dist/attributes/shape/filters/implementations/grayscale.js +6 -0
- package/dist/attributes/shape/filters/implementations/grayscale.js.map +1 -0
- package/dist/attributes/shape/filters/implementations/posterize-time.d.ts +15 -0
- package/dist/attributes/shape/filters/implementations/posterize-time.d.ts.map +1 -0
- package/dist/attributes/shape/filters/implementations/posterize-time.js +6 -0
- package/dist/attributes/shape/filters/implementations/posterize-time.js.map +1 -0
- package/dist/attributes/shape/filters/index.d.ts +26 -0
- package/dist/attributes/shape/filters/index.d.ts.map +1 -0
- package/dist/attributes/shape/filters/index.js +7 -0
- package/dist/attributes/shape/filters/index.js.map +1 -0
- package/dist/attributes/shape/filters/registry.d.ts +52 -0
- package/dist/attributes/shape/filters/registry.d.ts.map +1 -0
- package/dist/attributes/shape/filters/registry.js +122 -0
- package/dist/attributes/shape/filters/registry.js.map +1 -0
- package/dist/attributes/shape/filters/union.d.ts +80 -0
- package/dist/attributes/shape/filters/union.d.ts.map +1 -0
- package/dist/attributes/shape/filters/union.js +2 -0
- package/dist/attributes/shape/filters/union.js.map +1 -0
- package/dist/attributes/shape/path/anchors.d.ts +135 -0
- package/dist/attributes/shape/path/anchors.d.ts.map +1 -0
- package/dist/attributes/shape/path/anchors.js +394 -0
- package/dist/attributes/shape/path/anchors.js.map +1 -0
- package/dist/attributes/shape/path/bezier.d.ts +124 -0
- package/dist/attributes/shape/path/bezier.d.ts.map +1 -0
- package/dist/attributes/shape/path/bezier.js +333 -0
- package/dist/attributes/shape/path/bezier.js.map +1 -0
- package/dist/attributes/shape/path/index.d.ts +15 -0
- package/dist/attributes/shape/path/index.d.ts.map +1 -0
- package/dist/attributes/shape/path/index.js +14 -0
- package/dist/attributes/shape/path/index.js.map +1 -0
- package/dist/attributes/shape/path/measure.d.ts +57 -0
- package/dist/attributes/shape/path/measure.d.ts.map +1 -0
- package/dist/attributes/shape/path/measure.js +319 -0
- package/dist/attributes/shape/path/measure.js.map +1 -0
- package/dist/attributes/shape/path/morph.d.ts +48 -0
- package/dist/attributes/shape/path/morph.d.ts.map +1 -0
- package/dist/attributes/shape/path/morph.js +345 -0
- package/dist/attributes/shape/path/morph.js.map +1 -0
- package/dist/attributes/shape/path/ops.d.ts +94 -0
- package/dist/attributes/shape/path/ops.d.ts.map +1 -0
- package/dist/attributes/shape/path/ops.js +34 -0
- package/dist/attributes/shape/path/ops.js.map +1 -0
- package/dist/attributes/shape/path/types.d.ts +190 -0
- package/dist/attributes/shape/path/types.d.ts.map +1 -0
- package/dist/attributes/shape/path/types.js +3 -0
- package/dist/attributes/shape/path/types.js.map +1 -0
- package/dist/attributes/shape/path/walk.d.ts +100 -0
- package/dist/attributes/shape/path/walk.d.ts.map +1 -0
- package/dist/attributes/shape/path/walk.js +615 -0
- package/dist/attributes/shape/path/walk.js.map +1 -0
- package/dist/attributes/shape/shaders/index.d.ts +3 -0
- package/dist/attributes/shape/shaders/index.d.ts.map +1 -0
- package/dist/attributes/shape/shaders/index.js +3 -0
- package/dist/attributes/shape/shaders/index.js.map +1 -0
- package/dist/attributes/shape/shaders/pack.d.ts +162 -0
- package/dist/attributes/shape/shaders/pack.d.ts.map +1 -0
- package/dist/attributes/shape/shaders/pack.js +116 -0
- package/dist/attributes/shape/shaders/pack.js.map +1 -0
- package/dist/attributes/shape/shaders/resolve.d.ts +18 -0
- package/dist/attributes/shape/shaders/resolve.d.ts.map +1 -0
- package/dist/attributes/shape/shaders/resolve.js +137 -0
- package/dist/attributes/shape/shaders/resolve.js.map +1 -0
- package/dist/attributes/shape/shadow/index.d.ts +5 -0
- package/dist/attributes/shape/shadow/index.d.ts.map +1 -0
- package/dist/attributes/shape/shadow/index.js +2 -0
- package/dist/attributes/shape/shadow/index.js.map +1 -0
- package/dist/attributes/shape/shadow/shadow.d.ts +47 -0
- package/dist/attributes/shape/shadow/shadow.d.ts.map +1 -0
- package/dist/attributes/shape/shadow/shadow.js +53 -0
- package/dist/attributes/shape/shadow/shadow.js.map +1 -0
- package/dist/attributes/shape/sksl-uniforms.d.ts +146 -0
- package/dist/attributes/shape/sksl-uniforms.d.ts.map +1 -0
- package/dist/attributes/shape/sksl-uniforms.js +0 -0
- package/dist/attributes/shape/sksl-uniforms.js.map +1 -0
- package/dist/attributes/shape/stroke/index.d.ts +5 -0
- package/dist/attributes/shape/stroke/index.d.ts.map +1 -0
- package/dist/attributes/shape/stroke/index.js +2 -0
- package/dist/attributes/shape/stroke/index.js.map +1 -0
- package/dist/attributes/shape/stroke/stroke.d.ts +90 -0
- package/dist/attributes/shape/stroke/stroke.d.ts.map +1 -0
- package/dist/attributes/shape/stroke/stroke.js +121 -0
- package/dist/attributes/shape/stroke/stroke.js.map +1 -0
- package/dist/attributes/shared/operators.d.ts +26 -0
- package/dist/attributes/shared/operators.d.ts.map +1 -0
- package/dist/attributes/shared/operators.js +2 -0
- package/dist/attributes/shared/operators.js.map +1 -0
- package/dist/attributes/text/index.d.ts +14 -0
- package/dist/attributes/text/index.d.ts.map +1 -0
- package/dist/attributes/text/index.js +13 -0
- package/dist/attributes/text/index.js.map +1 -0
- package/dist/attributes/text/ops.d.ts +48 -0
- package/dist/attributes/text/ops.d.ts.map +1 -0
- package/dist/attributes/text/ops.js +176 -0
- package/dist/attributes/text/ops.js.map +1 -0
- package/dist/attributes/text/types.d.ts +93 -0
- package/dist/attributes/text/types.d.ts.map +1 -0
- package/dist/attributes/text/types.js +2 -0
- package/dist/attributes/text/types.js.map +1 -0
- package/dist/browser/chunks/chunk-2T3HXSC2.js +2 -0
- package/dist/browser/chunks/chunk-2T3HXSC2.js.map +7 -0
- package/dist/browser/chunks/chunk-P3XQCHDW.js +16 -0
- package/dist/browser/chunks/chunk-P3XQCHDW.js.map +7 -0
- package/dist/browser/chunks/chunk-VJQMKHGQ.js +3 -0
- package/dist/browser/chunks/chunk-VJQMKHGQ.js.map +7 -0
- package/dist/browser/component.js +2 -0
- package/dist/browser/component.js.map +7 -0
- package/dist/browser/index.js +2 -0
- package/dist/browser/index.js.map +7 -0
- package/dist/browser/jsx-jsx-dev-runtime.js +2 -0
- package/dist/browser/jsx-jsx-dev-runtime.js.map +7 -0
- package/dist/browser/jsx-jsx-runtime.js +2 -0
- package/dist/browser/jsx-jsx-runtime.js.map +7 -0
- package/dist/browser/manifest.json +13 -0
- package/dist/browser/sdk.js +2 -0
- package/dist/browser/sdk.js.map +7 -0
- package/dist/component.d.ts +28 -0
- package/dist/component.d.ts.map +1 -0
- package/dist/component.js +28 -0
- package/dist/component.js.map +1 -0
- package/dist/document/audio.d.ts +26 -0
- package/dist/document/audio.d.ts.map +1 -0
- package/dist/document/audio.js +67 -0
- package/dist/document/audio.js.map +1 -0
- package/dist/document/builtins.d.ts +21 -0
- package/dist/document/builtins.d.ts.map +1 -0
- package/dist/document/builtins.js +264 -0
- package/dist/document/builtins.js.map +1 -0
- package/dist/document/command-traits.d.ts +49 -0
- package/dist/document/command-traits.d.ts.map +1 -0
- package/dist/document/command-traits.js +252 -0
- package/dist/document/command-traits.js.map +1 -0
- package/dist/document/deny-globals.d.ts +50 -0
- package/dist/document/deny-globals.d.ts.map +1 -0
- package/dist/document/deny-globals.js +118 -0
- package/dist/document/deny-globals.js.map +1 -0
- package/dist/document/diff.d.ts +48 -0
- package/dist/document/diff.d.ts.map +1 -0
- package/dist/document/diff.js +274 -0
- package/dist/document/diff.js.map +1 -0
- package/dist/document/doc-index.d.ts +62 -0
- package/dist/document/doc-index.d.ts.map +1 -0
- package/dist/document/doc-index.js +280 -0
- package/dist/document/doc-index.js.map +1 -0
- package/dist/document/expression/compile.d.ts +7 -0
- package/dist/document/expression/compile.d.ts.map +1 -0
- package/dist/document/expression/compile.js +83 -0
- package/dist/document/expression/compile.js.map +1 -0
- package/dist/document/expression/index.d.ts +49 -0
- package/dist/document/expression/index.d.ts.map +1 -0
- package/dist/document/expression/index.js +48 -0
- package/dist/document/expression/index.js.map +1 -0
- package/dist/document/expression/ops.d.ts +33 -0
- package/dist/document/expression/ops.d.ts.map +1 -0
- package/dist/document/expression/ops.js +50 -0
- package/dist/document/expression/ops.js.map +1 -0
- package/dist/document/expression/parse.d.ts +26 -0
- package/dist/document/expression/parse.d.ts.map +1 -0
- package/dist/document/expression/parse.js +301 -0
- package/dist/document/expression/parse.js.map +1 -0
- package/dist/document/expression/refs.d.ts +22 -0
- package/dist/document/expression/refs.d.ts.map +1 -0
- package/dist/document/expression/refs.js +38 -0
- package/dist/document/expression/refs.js.map +1 -0
- package/dist/document/expression/types.d.ts +134 -0
- package/dist/document/expression/types.d.ts.map +1 -0
- package/dist/document/expression/types.js +32 -0
- package/dist/document/expression/types.js.map +1 -0
- package/dist/document/expression/walk.d.ts +32 -0
- package/dist/document/expression/walk.d.ts.map +1 -0
- package/dist/document/expression/walk.js +142 -0
- package/dist/document/expression/walk.js.map +1 -0
- package/dist/document/index.d.ts +10 -0
- package/dist/document/index.d.ts.map +1 -0
- package/dist/document/index.js +13 -0
- package/dist/document/index.js.map +1 -0
- package/dist/document/node-decorator.d.ts +61 -0
- package/dist/document/node-decorator.d.ts.map +1 -0
- package/dist/document/node-decorator.js +75 -0
- package/dist/document/node-decorator.js.map +1 -0
- package/dist/document/node-descriptor.d.ts +82 -0
- package/dist/document/node-descriptor.d.ts.map +1 -0
- package/dist/document/node-descriptor.js +2 -0
- package/dist/document/node-descriptor.js.map +1 -0
- package/dist/document/project.d.ts +91 -0
- package/dist/document/project.d.ts.map +1 -0
- package/dist/document/project.js +25 -0
- package/dist/document/project.js.map +1 -0
- package/dist/document/registry.d.ts +458 -0
- package/dist/document/registry.d.ts.map +1 -0
- package/dist/document/registry.js +443 -0
- package/dist/document/registry.js.map +1 -0
- package/dist/document/timeline-patch.d.ts +59 -0
- package/dist/document/timeline-patch.d.ts.map +1 -0
- package/dist/document/timeline-patch.js +395 -0
- package/dist/document/timeline-patch.js.map +1 -0
- package/dist/document/timeline.d.ts +339 -0
- package/dist/document/timeline.d.ts.map +1 -0
- package/dist/document/timeline.js +1177 -0
- package/dist/document/timeline.js.map +1 -0
- package/dist/document/types.d.ts +412 -0
- package/dist/document/types.d.ts.map +1 -0
- package/dist/document/types.js +146 -0
- package/dist/document/types.js.map +1 -0
- package/dist/document/validate.d.ts +52 -0
- package/dist/document/validate.d.ts.map +1 -0
- package/dist/document/validate.js +791 -0
- package/dist/document/validate.js.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -0
- package/dist/jsx/jsx-dev-runtime.d.ts +3 -0
- package/dist/jsx/jsx-dev-runtime.d.ts.map +1 -0
- package/dist/jsx/jsx-dev-runtime.js +3 -0
- package/dist/jsx/jsx-dev-runtime.js.map +1 -0
- package/dist/jsx/jsx-runtime.d.ts +19 -0
- package/dist/jsx/jsx-runtime.d.ts.map +1 -0
- package/dist/jsx/jsx-runtime.js +16 -0
- package/dist/jsx/jsx-runtime.js.map +1 -0
- package/dist/layout/bounds.d.ts +23 -0
- package/dist/layout/bounds.d.ts.map +1 -0
- package/dist/layout/bounds.js +2 -0
- package/dist/layout/bounds.js.map +1 -0
- package/dist/layout/constraints.d.ts +6 -0
- package/dist/layout/constraints.d.ts.map +1 -0
- package/dist/layout/constraints.js +2 -0
- package/dist/layout/constraints.js.map +1 -0
- package/dist/layout/flex.d.ts +31 -0
- package/dist/layout/flex.d.ts.map +1 -0
- package/dist/layout/flex.js +221 -0
- package/dist/layout/flex.js.map +1 -0
- package/dist/layout/freeform.d.ts +16 -0
- package/dist/layout/freeform.d.ts.map +1 -0
- package/dist/layout/freeform.js +29 -0
- package/dist/layout/freeform.js.map +1 -0
- package/dist/layout/grid.d.ts +18 -0
- package/dist/layout/grid.d.ts.map +1 -0
- package/dist/layout/grid.js +119 -0
- package/dist/layout/grid.js.map +1 -0
- package/dist/layout/index.d.ts +14 -0
- package/dist/layout/index.d.ts.map +1 -0
- package/dist/layout/index.js +13 -0
- package/dist/layout/index.js.map +1 -0
- package/dist/layout/item.d.ts +7 -0
- package/dist/layout/item.d.ts.map +1 -0
- package/dist/layout/item.js +17 -0
- package/dist/layout/item.js.map +1 -0
- package/dist/layout/ops.d.ts +30 -0
- package/dist/layout/ops.d.ts.map +1 -0
- package/dist/layout/ops.js +167 -0
- package/dist/layout/ops.js.map +1 -0
- package/dist/layout/types.d.ts +132 -0
- package/dist/layout/types.d.ts.map +1 -0
- package/dist/layout/types.js +2 -0
- package/dist/layout/types.js.map +1 -0
- package/dist/nodes/2d/node-lifecycle.d.ts +46 -0
- package/dist/nodes/2d/node-lifecycle.d.ts.map +1 -0
- package/dist/nodes/2d/node-lifecycle.js +264 -0
- package/dist/nodes/2d/node-lifecycle.js.map +1 -0
- package/dist/nodes/2d/node-motion.d.ts +56 -0
- package/dist/nodes/2d/node-motion.d.ts.map +1 -0
- package/dist/nodes/2d/node-motion.js +86 -0
- package/dist/nodes/2d/node-motion.js.map +1 -0
- package/dist/nodes/2d/node-render.d.ts +44 -0
- package/dist/nodes/2d/node-render.d.ts.map +1 -0
- package/dist/nodes/2d/node-render.js +80 -0
- package/dist/nodes/2d/node-render.js.map +1 -0
- package/dist/nodes/2d/node-space.d.ts +63 -0
- package/dist/nodes/2d/node-space.d.ts.map +1 -0
- package/dist/nodes/2d/node-space.js +131 -0
- package/dist/nodes/2d/node-space.js.map +1 -0
- package/dist/nodes/2d/node-transform.d.ts +55 -0
- package/dist/nodes/2d/node-transform.d.ts.map +1 -0
- package/dist/nodes/2d/node-transform.js +73 -0
- package/dist/nodes/2d/node-transform.js.map +1 -0
- package/dist/nodes/2d/node2d.d.ts +999 -0
- package/dist/nodes/2d/node2d.d.ts.map +1 -0
- package/dist/nodes/2d/node2d.js +1509 -0
- package/dist/nodes/2d/node2d.js.map +1 -0
- package/dist/nodes/2d/paint-node.d.ts +115 -0
- package/dist/nodes/2d/paint-node.d.ts.map +1 -0
- package/dist/nodes/2d/paint-node.js +190 -0
- package/dist/nodes/2d/paint-node.js.map +1 -0
- package/dist/nodes/audio/audio-bus.d.ts +28 -0
- package/dist/nodes/audio/audio-bus.d.ts.map +1 -0
- package/dist/nodes/audio/audio-bus.js +33 -0
- package/dist/nodes/audio/audio-bus.js.map +1 -0
- package/dist/nodes/audio/index.d.ts +4 -0
- package/dist/nodes/audio/index.d.ts.map +1 -0
- package/dist/nodes/audio/index.js +4 -0
- package/dist/nodes/audio/index.js.map +1 -0
- package/dist/nodes/audio/node-audio.d.ts +106 -0
- package/dist/nodes/audio/node-audio.d.ts.map +1 -0
- package/dist/nodes/audio/node-audio.js +176 -0
- package/dist/nodes/audio/node-audio.js.map +1 -0
- package/dist/nodes/audio/sound-node.d.ts +40 -0
- package/dist/nodes/audio/sound-node.d.ts.map +1 -0
- package/dist/nodes/audio/sound-node.js +68 -0
- package/dist/nodes/audio/sound-node.js.map +1 -0
- package/dist/nodes/geometry/boolean-node.d.ts +28 -0
- package/dist/nodes/geometry/boolean-node.d.ts.map +1 -0
- package/dist/nodes/geometry/boolean-node.js +81 -0
- package/dist/nodes/geometry/boolean-node.js.map +1 -0
- package/dist/nodes/geometry/bounds-shape-node.d.ts +149 -0
- package/dist/nodes/geometry/bounds-shape-node.d.ts.map +1 -0
- package/dist/nodes/geometry/bounds-shape-node.js +181 -0
- package/dist/nodes/geometry/bounds-shape-node.js.map +1 -0
- package/dist/nodes/geometry/box-path-node.d.ts +89 -0
- package/dist/nodes/geometry/box-path-node.d.ts.map +1 -0
- package/dist/nodes/geometry/box-path-node.js +116 -0
- package/dist/nodes/geometry/box-path-node.js.map +1 -0
- package/dist/nodes/geometry/dot-grid-node.d.ts +105 -0
- package/dist/nodes/geometry/dot-grid-node.d.ts.map +1 -0
- package/dist/nodes/geometry/dot-grid-node.js +142 -0
- package/dist/nodes/geometry/dot-grid-node.js.map +1 -0
- package/dist/nodes/geometry/ellipse-node.d.ts +18 -0
- package/dist/nodes/geometry/ellipse-node.d.ts.map +1 -0
- package/dist/nodes/geometry/ellipse-node.js +45 -0
- package/dist/nodes/geometry/ellipse-node.js.map +1 -0
- package/dist/nodes/geometry/grid-lines.d.ts +101 -0
- package/dist/nodes/geometry/grid-lines.d.ts.map +1 -0
- package/dist/nodes/geometry/grid-lines.js +128 -0
- package/dist/nodes/geometry/grid-lines.js.map +1 -0
- package/dist/nodes/geometry/grid-pattern-node.d.ts +58 -0
- package/dist/nodes/geometry/grid-pattern-node.d.ts.map +1 -0
- package/dist/nodes/geometry/grid-pattern-node.js +172 -0
- package/dist/nodes/geometry/grid-pattern-node.js.map +1 -0
- package/dist/nodes/geometry/group-bounds.d.ts +56 -0
- package/dist/nodes/geometry/group-bounds.d.ts.map +1 -0
- package/dist/nodes/geometry/group-bounds.js +88 -0
- package/dist/nodes/geometry/group-bounds.js.map +1 -0
- package/dist/nodes/geometry/line-grid-node.d.ts +62 -0
- package/dist/nodes/geometry/line-grid-node.d.ts.map +1 -0
- package/dist/nodes/geometry/line-grid-node.js +127 -0
- package/dist/nodes/geometry/line-grid-node.js.map +1 -0
- package/dist/nodes/geometry/line-node.d.ts +58 -0
- package/dist/nodes/geometry/line-node.d.ts.map +1 -0
- package/dist/nodes/geometry/line-node.js +123 -0
- package/dist/nodes/geometry/line-node.js.map +1 -0
- package/dist/nodes/geometry/mask-node.d.ts +33 -0
- package/dist/nodes/geometry/mask-node.d.ts.map +1 -0
- package/dist/nodes/geometry/mask-node.js +66 -0
- package/dist/nodes/geometry/mask-node.js.map +1 -0
- package/dist/nodes/geometry/path-node.d.ts +26 -0
- package/dist/nodes/geometry/path-node.d.ts.map +1 -0
- package/dist/nodes/geometry/path-node.js +52 -0
- package/dist/nodes/geometry/path-node.js.map +1 -0
- package/dist/nodes/geometry/polygon-node.d.ts +26 -0
- package/dist/nodes/geometry/polygon-node.d.ts.map +1 -0
- package/dist/nodes/geometry/polygon-node.js +47 -0
- package/dist/nodes/geometry/polygon-node.js.map +1 -0
- package/dist/nodes/geometry/polygram-node.d.ts +33 -0
- package/dist/nodes/geometry/polygram-node.d.ts.map +1 -0
- package/dist/nodes/geometry/polygram-node.js +52 -0
- package/dist/nodes/geometry/polygram-node.js.map +1 -0
- package/dist/nodes/geometry/rect-node.d.ts +38 -0
- package/dist/nodes/geometry/rect-node.d.ts.map +1 -0
- package/dist/nodes/geometry/rect-node.js +56 -0
- package/dist/nodes/geometry/rect-node.js.map +1 -0
- package/dist/nodes/geometry/shape-node.d.ts +71 -0
- package/dist/nodes/geometry/shape-node.d.ts.map +1 -0
- package/dist/nodes/geometry/shape-node.js +140 -0
- package/dist/nodes/geometry/shape-node.js.map +1 -0
- package/dist/nodes/geometry/shape-outline.d.ts +93 -0
- package/dist/nodes/geometry/shape-outline.d.ts.map +1 -0
- package/dist/nodes/geometry/shape-outline.js +481 -0
- package/dist/nodes/geometry/shape-outline.js.map +1 -0
- package/dist/nodes/geometry/viewport-pattern-node.d.ts +39 -0
- package/dist/nodes/geometry/viewport-pattern-node.d.ts.map +1 -0
- package/dist/nodes/geometry/viewport-pattern-node.js +79 -0
- package/dist/nodes/geometry/viewport-pattern-node.js.map +1 -0
- package/dist/nodes/index.d.ts +46 -0
- package/dist/nodes/index.d.ts.map +1 -0
- package/dist/nodes/index.js +54 -0
- package/dist/nodes/index.js.map +1 -0
- package/dist/nodes/layout/camera-node.d.ts +71 -0
- package/dist/nodes/layout/camera-node.d.ts.map +1 -0
- package/dist/nodes/layout/camera-node.js +118 -0
- package/dist/nodes/layout/camera-node.js.map +1 -0
- package/dist/nodes/layout/orbit-camera-node.d.ts +80 -0
- package/dist/nodes/layout/orbit-camera-node.d.ts.map +1 -0
- package/dist/nodes/layout/orbit-camera-node.js +118 -0
- package/dist/nodes/layout/orbit-camera-node.js.map +1 -0
- package/dist/nodes/layout/rotated-box.d.ts +20 -0
- package/dist/nodes/layout/rotated-box.d.ts.map +1 -0
- package/dist/nodes/layout/rotated-box.js +76 -0
- package/dist/nodes/layout/rotated-box.js.map +1 -0
- package/dist/nodes/media/video-node.d.ts +229 -0
- package/dist/nodes/media/video-node.d.ts.map +1 -0
- package/dist/nodes/media/video-node.js +348 -0
- package/dist/nodes/media/video-node.js.map +1 -0
- package/dist/nodes/node/declare-paints.d.ts +19 -0
- package/dist/nodes/node/declare-paints.d.ts.map +1 -0
- package/dist/nodes/node/declare-paints.js +27 -0
- package/dist/nodes/node/declare-paints.js.map +1 -0
- package/dist/nodes/node/node-editor-state.d.ts +53 -0
- package/dist/nodes/node/node-editor-state.d.ts.map +1 -0
- package/dist/nodes/node/node-editor-state.js +23 -0
- package/dist/nodes/node/node-editor-state.js.map +1 -0
- package/dist/nodes/node/node-reactive.d.ts +89 -0
- package/dist/nodes/node/node-reactive.d.ts.map +1 -0
- package/dist/nodes/node/node-reactive.js +135 -0
- package/dist/nodes/node/node-reactive.js.map +1 -0
- package/dist/nodes/node/node-time.d.ts +39 -0
- package/dist/nodes/node/node-time.d.ts.map +1 -0
- package/dist/nodes/node/node-time.js +14 -0
- package/dist/nodes/node/node-time.js.map +1 -0
- package/dist/nodes/node/node-walk.d.ts +46 -0
- package/dist/nodes/node/node-walk.d.ts.map +1 -0
- package/dist/nodes/node/node-walk.js +74 -0
- package/dist/nodes/node/node-walk.js.map +1 -0
- package/dist/nodes/node/node.d.ts +437 -0
- package/dist/nodes/node/node.d.ts.map +1 -0
- package/dist/nodes/node/node.js +705 -0
- package/dist/nodes/node/node.js.map +1 -0
- package/dist/nodes/node/text-defaults.d.ts +34 -0
- package/dist/nodes/node/text-defaults.d.ts.map +1 -0
- package/dist/nodes/node/text-defaults.js +39 -0
- package/dist/nodes/node/text-defaults.js.map +1 -0
- package/dist/nodes/scene/canvas2d-node.d.ts +162 -0
- package/dist/nodes/scene/canvas2d-node.d.ts.map +1 -0
- package/dist/nodes/scene/canvas2d-node.js +261 -0
- package/dist/nodes/scene/canvas2d-node.js.map +1 -0
- package/dist/nodes/scene/provider-node.d.ts +47 -0
- package/dist/nodes/scene/provider-node.d.ts.map +1 -0
- package/dist/nodes/scene/provider-node.js +63 -0
- package/dist/nodes/scene/provider-node.js.map +1 -0
- package/dist/nodes/scene/theme-provider-node.d.ts +29 -0
- package/dist/nodes/scene/theme-provider-node.d.ts.map +1 -0
- package/dist/nodes/scene/theme-provider-node.js +43 -0
- package/dist/nodes/scene/theme-provider-node.js.map +1 -0
- package/dist/nodes/text/default-text-style-node.d.ts +100 -0
- package/dist/nodes/text/default-text-style-node.d.ts.map +1 -0
- package/dist/nodes/text/default-text-style-node.js +140 -0
- package/dist/nodes/text/default-text-style-node.js.map +1 -0
- package/dist/nodes/text/number-format.d.ts +66 -0
- package/dist/nodes/text/number-format.d.ts.map +1 -0
- package/dist/nodes/text/number-format.js +227 -0
- package/dist/nodes/text/number-format.js.map +1 -0
- package/dist/nodes/text/number-node.d.ts +94 -0
- package/dist/nodes/text/number-node.d.ts.map +1 -0
- package/dist/nodes/text/number-node.js +86 -0
- package/dist/nodes/text/number-node.js.map +1 -0
- package/dist/nodes/text/number-pattern.d.ts +51 -0
- package/dist/nodes/text/number-pattern.d.ts.map +1 -0
- package/dist/nodes/text/number-pattern.js +77 -0
- package/dist/nodes/text/number-pattern.js.map +1 -0
- package/dist/nodes/text/richtext-node.d.ts +73 -0
- package/dist/nodes/text/richtext-node.d.ts.map +1 -0
- package/dist/nodes/text/richtext-node.js +144 -0
- package/dist/nodes/text/richtext-node.js.map +1 -0
- package/dist/nodes/text/text-base.d.ts +135 -0
- package/dist/nodes/text/text-base.d.ts.map +1 -0
- package/dist/nodes/text/text-base.js +504 -0
- package/dist/nodes/text/text-base.js.map +1 -0
- package/dist/nodes/text/text-node.d.ts +84 -0
- package/dist/nodes/text/text-node.d.ts.map +1 -0
- package/dist/nodes/text/text-node.js +188 -0
- package/dist/nodes/text/text-node.js.map +1 -0
- package/dist/nodes/text/text-selection.d.ts +125 -0
- package/dist/nodes/text/text-selection.d.ts.map +1 -0
- package/dist/nodes/text/text-selection.js +209 -0
- package/dist/nodes/text/text-selection.js.map +1 -0
- package/dist/nodes/three/camera-nodes.d.ts +91 -0
- package/dist/nodes/three/camera-nodes.d.ts.map +1 -0
- package/dist/nodes/three/camera-nodes.js +71 -0
- package/dist/nodes/three/camera-nodes.js.map +1 -0
- package/dist/nodes/three/canvas3d-node.d.ts +270 -0
- package/dist/nodes/three/canvas3d-node.d.ts.map +1 -0
- package/dist/nodes/three/canvas3d-node.js +438 -0
- package/dist/nodes/three/canvas3d-node.js.map +1 -0
- package/dist/nodes/three/drawable-nodes.d.ts +159 -0
- package/dist/nodes/three/drawable-nodes.d.ts.map +1 -0
- package/dist/nodes/three/drawable-nodes.js +254 -0
- package/dist/nodes/three/drawable-nodes.js.map +1 -0
- package/dist/nodes/three/environment-nodes.d.ts +100 -0
- package/dist/nodes/three/environment-nodes.d.ts.map +1 -0
- package/dist/nodes/three/environment-nodes.js +134 -0
- package/dist/nodes/three/environment-nodes.js.map +1 -0
- package/dist/nodes/three/geometry-nodes.d.ts +197 -0
- package/dist/nodes/three/geometry-nodes.d.ts.map +1 -0
- package/dist/nodes/three/geometry-nodes.js +322 -0
- package/dist/nodes/three/geometry-nodes.js.map +1 -0
- package/dist/nodes/three/grid-geometry3d.d.ts +62 -0
- package/dist/nodes/three/grid-geometry3d.d.ts.map +1 -0
- package/dist/nodes/three/grid-geometry3d.js +114 -0
- package/dist/nodes/three/grid-geometry3d.js.map +1 -0
- package/dist/nodes/three/group3d.d.ts +23 -0
- package/dist/nodes/three/group3d.d.ts.map +1 -0
- package/dist/nodes/three/group3d.js +21 -0
- package/dist/nodes/three/group3d.js.map +1 -0
- package/dist/nodes/three/light-nodes.d.ts +120 -0
- package/dist/nodes/three/light-nodes.d.ts.map +1 -0
- package/dist/nodes/three/light-nodes.js +173 -0
- package/dist/nodes/three/light-nodes.js.map +1 -0
- package/dist/nodes/three/mesh3d.d.ts +117 -0
- package/dist/nodes/three/mesh3d.d.ts.map +1 -0
- package/dist/nodes/three/mesh3d.js +147 -0
- package/dist/nodes/three/mesh3d.js.map +1 -0
- package/dist/nodes/three/node3d.d.ts +182 -0
- package/dist/nodes/three/node3d.d.ts.map +1 -0
- package/dist/nodes/three/node3d.js +287 -0
- package/dist/nodes/three/node3d.js.map +1 -0
- package/dist/platform/audio-sink.d.ts +59 -0
- package/dist/platform/audio-sink.d.ts.map +1 -0
- package/dist/platform/audio-sink.js +40 -0
- package/dist/platform/audio-sink.js.map +1 -0
- package/dist/platform/exporter.d.ts +61 -0
- package/dist/platform/exporter.d.ts.map +1 -0
- package/dist/platform/exporter.js +2 -0
- package/dist/platform/exporter.js.map +1 -0
- package/dist/platform/index.d.ts +6 -0
- package/dist/platform/index.d.ts.map +1 -0
- package/dist/platform/index.js +5 -0
- package/dist/platform/index.js.map +1 -0
- package/dist/platform/stepped-clock.d.ts +21 -0
- package/dist/platform/stepped-clock.d.ts.map +1 -0
- package/dist/platform/stepped-clock.js +23 -0
- package/dist/platform/stepped-clock.js.map +1 -0
- package/dist/platform/storage-adapter.d.ts +101 -0
- package/dist/platform/storage-adapter.d.ts.map +1 -0
- package/dist/platform/storage-adapter.js +158 -0
- package/dist/platform/storage-adapter.js.map +1 -0
- package/dist/platform/ticker.d.ts +77 -0
- package/dist/platform/ticker.d.ts.map +1 -0
- package/dist/platform/ticker.js +103 -0
- package/dist/platform/ticker.js.map +1 -0
- package/dist/project/config.d.ts +33 -0
- package/dist/project/config.d.ts.map +1 -0
- package/dist/project/config.js +2 -0
- package/dist/project/config.js.map +1 -0
- package/dist/project/index.d.ts +3 -0
- package/dist/project/index.d.ts.map +1 -0
- package/dist/project/index.js +3 -0
- package/dist/project/index.js.map +1 -0
- package/dist/project/tree.d.ts +63 -0
- package/dist/project/tree.d.ts.map +1 -0
- package/dist/project/tree.js +13 -0
- package/dist/project/tree.js.map +1 -0
- package/dist/props/host.d.ts +33 -0
- package/dist/props/host.d.ts.map +1 -0
- package/dist/props/host.js +9 -0
- package/dist/props/host.js.map +1 -0
- package/dist/props/index.d.ts +5 -0
- package/dist/props/index.d.ts.map +1 -0
- package/dist/props/index.js +3 -0
- package/dist/props/index.js.map +1 -0
- package/dist/props/observer.d.ts +31 -0
- package/dist/props/observer.d.ts.map +1 -0
- package/dist/props/observer.js +34 -0
- package/dist/props/observer.js.map +1 -0
- package/dist/props/slot.d.ts +59 -0
- package/dist/props/slot.d.ts.map +1 -0
- package/dist/props/slot.js +96 -0
- package/dist/props/slot.js.map +1 -0
- package/dist/render/canvas-render-context2d.d.ts +121 -0
- package/dist/render/canvas-render-context2d.d.ts.map +1 -0
- package/dist/render/canvas-render-context2d.js +120 -0
- package/dist/render/canvas-render-context2d.js.map +1 -0
- package/dist/render/clip-contains.d.ts +30 -0
- package/dist/render/clip-contains.d.ts.map +1 -0
- package/dist/render/clip-contains.js +300 -0
- package/dist/render/clip-contains.js.map +1 -0
- package/dist/render/clip.d.ts +83 -0
- package/dist/render/clip.d.ts.map +1 -0
- package/dist/render/clip.js +72 -0
- package/dist/render/clip.js.map +1 -0
- package/dist/render/descriptors/ellipse.d.ts +10 -0
- package/dist/render/descriptors/ellipse.d.ts.map +1 -0
- package/dist/render/descriptors/ellipse.js +23 -0
- package/dist/render/descriptors/ellipse.js.map +1 -0
- package/dist/render/descriptors/latex.d.ts +6 -0
- package/dist/render/descriptors/latex.d.ts.map +1 -0
- package/dist/render/descriptors/latex.js +2 -0
- package/dist/render/descriptors/latex.js.map +1 -0
- package/dist/render/descriptors/line.d.ts +9 -0
- package/dist/render/descriptors/line.d.ts.map +1 -0
- package/dist/render/descriptors/line.js +19 -0
- package/dist/render/descriptors/line.js.map +1 -0
- package/dist/render/descriptors/path-builder.d.ts +68 -0
- package/dist/render/descriptors/path-builder.d.ts.map +1 -0
- package/dist/render/descriptors/path-builder.js +116 -0
- package/dist/render/descriptors/path-builder.js.map +1 -0
- package/dist/render/descriptors/path.d.ts +119 -0
- package/dist/render/descriptors/path.d.ts.map +1 -0
- package/dist/render/descriptors/path.js +46 -0
- package/dist/render/descriptors/path.js.map +1 -0
- package/dist/render/descriptors/polygon.d.ts +13 -0
- package/dist/render/descriptors/polygon.d.ts.map +1 -0
- package/dist/render/descriptors/polygon.js +23 -0
- package/dist/render/descriptors/polygon.js.map +1 -0
- package/dist/render/descriptors/polygram.d.ts +14 -0
- package/dist/render/descriptors/polygram.d.ts.map +1 -0
- package/dist/render/descriptors/polygram.js +24 -0
- package/dist/render/descriptors/polygram.js.map +1 -0
- package/dist/render/descriptors/rect.d.ts +11 -0
- package/dist/render/descriptors/rect.d.ts.map +1 -0
- package/dist/render/descriptors/rect.js +22 -0
- package/dist/render/descriptors/rect.js.map +1 -0
- package/dist/render/descriptors/richtext.d.ts +13 -0
- package/dist/render/descriptors/richtext.d.ts.map +1 -0
- package/dist/render/descriptors/richtext.js +23 -0
- package/dist/render/descriptors/richtext.js.map +1 -0
- package/dist/render/descriptors/shape.d.ts +99 -0
- package/dist/render/descriptors/shape.d.ts.map +1 -0
- package/dist/render/descriptors/shape.js +112 -0
- package/dist/render/descriptors/shape.js.map +1 -0
- package/dist/render/descriptors/text.d.ts +141 -0
- package/dist/render/descriptors/text.d.ts.map +1 -0
- package/dist/render/descriptors/text.js +94 -0
- package/dist/render/descriptors/text.js.map +1 -0
- package/dist/render/descriptors/transform.d.ts +38 -0
- package/dist/render/descriptors/transform.d.ts.map +1 -0
- package/dist/render/descriptors/transform.js +18 -0
- package/dist/render/descriptors/transform.js.map +1 -0
- package/dist/render/graphics2d.d.ts +235 -0
- package/dist/render/graphics2d.d.ts.map +1 -0
- package/dist/render/graphics2d.js +245 -0
- package/dist/render/graphics2d.js.map +1 -0
- package/dist/render/index.d.ts +25 -0
- package/dist/render/index.d.ts.map +1 -0
- package/dist/render/index.js +20 -0
- package/dist/render/index.js.map +1 -0
- package/dist/render/measure-context.d.ts +44 -0
- package/dist/render/measure-context.d.ts.map +1 -0
- package/dist/render/measure-context.js +2 -0
- package/dist/render/measure-context.js.map +1 -0
- package/dist/render/null-render-context.d.ts +55 -0
- package/dist/render/null-render-context.d.ts.map +1 -0
- package/dist/render/null-render-context.js +55 -0
- package/dist/render/null-render-context.js.map +1 -0
- package/dist/render/render-context2d.d.ts +310 -0
- package/dist/render/render-context2d.d.ts.map +1 -0
- package/dist/render/render-context2d.js +2 -0
- package/dist/render/render-context2d.js.map +1 -0
- package/dist/render/surface.d.ts +37 -0
- package/dist/render/surface.d.ts.map +1 -0
- package/dist/render/surface.js +2 -0
- package/dist/render/surface.js.map +1 -0
- package/dist/render/text-defaults.d.ts +21 -0
- package/dist/render/text-defaults.d.ts.map +1 -0
- package/dist/render/text-defaults.js +120 -0
- package/dist/render/text-defaults.js.map +1 -0
- package/dist/render/text-layout.d.ts +78 -0
- package/dist/render/text-layout.d.ts.map +1 -0
- package/dist/render/text-layout.js +26 -0
- package/dist/render/text-layout.js.map +1 -0
- package/dist/render3d/bounds3d.d.ts +55 -0
- package/dist/render3d/bounds3d.d.ts.map +1 -0
- package/dist/render3d/bounds3d.js +219 -0
- package/dist/render3d/bounds3d.js.map +1 -0
- package/dist/render3d/builders.d.ts +115 -0
- package/dist/render3d/builders.d.ts.map +1 -0
- package/dist/render3d/builders.js +108 -0
- package/dist/render3d/builders.js.map +1 -0
- package/dist/render3d/camera.d.ts +93 -0
- package/dist/render3d/camera.d.ts.map +1 -0
- package/dist/render3d/camera.js +58 -0
- package/dist/render3d/camera.js.map +1 -0
- package/dist/render3d/fill3d.d.ts +75 -0
- package/dist/render3d/fill3d.d.ts.map +1 -0
- package/dist/render3d/fill3d.js +208 -0
- package/dist/render3d/fill3d.js.map +1 -0
- package/dist/render3d/geometry.d.ts +315 -0
- package/dist/render3d/geometry.d.ts.map +1 -0
- package/dist/render3d/geometry.js +123 -0
- package/dist/render3d/geometry.js.map +1 -0
- package/dist/render3d/graphics3d.d.ts +301 -0
- package/dist/render3d/graphics3d.d.ts.map +1 -0
- package/dist/render3d/graphics3d.js +338 -0
- package/dist/render3d/graphics3d.js.map +1 -0
- package/dist/render3d/index.d.ts +56 -0
- package/dist/render3d/index.d.ts.map +1 -0
- package/dist/render3d/index.js +39 -0
- package/dist/render3d/index.js.map +1 -0
- package/dist/render3d/light.d.ts +89 -0
- package/dist/render3d/light.d.ts.map +1 -0
- package/dist/render3d/light.js +2 -0
- package/dist/render3d/light.js.map +1 -0
- package/dist/render3d/material.d.ts +310 -0
- package/dist/render3d/material.d.ts.map +1 -0
- package/dist/render3d/material.js +34 -0
- package/dist/render3d/material.js.map +1 -0
- package/dist/render3d/matrix4.d.ts +111 -0
- package/dist/render3d/matrix4.d.ts.map +1 -0
- package/dist/render3d/matrix4.js +254 -0
- package/dist/render3d/matrix4.js.map +1 -0
- package/dist/render3d/render-context3d.d.ts +88 -0
- package/dist/render3d/render-context3d.d.ts.map +1 -0
- package/dist/render3d/render-context3d.js +32 -0
- package/dist/render3d/render-context3d.js.map +1 -0
- package/dist/render3d/resources.d.ts +75 -0
- package/dist/render3d/resources.d.ts.map +1 -0
- package/dist/render3d/resources.js +87 -0
- package/dist/render3d/resources.js.map +1 -0
- package/dist/render3d/rounded-box.d.ts +35 -0
- package/dist/render3d/rounded-box.d.ts.map +1 -0
- package/dist/render3d/rounded-box.js +228 -0
- package/dist/render3d/rounded-box.js.map +1 -0
- package/dist/render3d/scene-settings.d.ts +141 -0
- package/dist/render3d/scene-settings.d.ts.map +1 -0
- package/dist/render3d/scene-settings.js +9 -0
- package/dist/render3d/scene-settings.js.map +1 -0
- package/dist/render3d/scene3d.d.ts +110 -0
- package/dist/render3d/scene3d.d.ts.map +1 -0
- package/dist/render3d/scene3d.js +163 -0
- package/dist/render3d/scene3d.js.map +1 -0
- package/dist/render3d/segments.d.ts +28 -0
- package/dist/render3d/segments.d.ts.map +1 -0
- package/dist/render3d/segments.js +22 -0
- package/dist/render3d/segments.js.map +1 -0
- package/dist/render3d/texture.d.ts +178 -0
- package/dist/render3d/texture.d.ts.map +1 -0
- package/dist/render3d/texture.js +41 -0
- package/dist/render3d/texture.js.map +1 -0
- package/dist/render3d/tracking.d.ts +27 -0
- package/dist/render3d/tracking.d.ts.map +1 -0
- package/dist/render3d/tracking.js +93 -0
- package/dist/render3d/tracking.js.map +1 -0
- package/dist/render3d/transform.d.ts +103 -0
- package/dist/render3d/transform.d.ts.map +1 -0
- package/dist/render3d/transform.js +23 -0
- package/dist/render3d/transform.js.map +1 -0
- package/dist/render3d/vector3.d.ts +80 -0
- package/dist/render3d/vector3.d.ts.map +1 -0
- package/dist/render3d/vector3.js +167 -0
- package/dist/render3d/vector3.js.map +1 -0
- package/dist/render3d/walk.d.ts +35 -0
- package/dist/render3d/walk.d.ts.map +1 -0
- package/dist/render3d/walk.js +95 -0
- package/dist/render3d/walk.js.map +1 -0
- package/dist/runtime/asset-refine.d.ts +59 -0
- package/dist/runtime/asset-refine.d.ts.map +1 -0
- package/dist/runtime/asset-refine.js +556 -0
- package/dist/runtime/asset-refine.js.map +1 -0
- package/dist/runtime/asset-timeline.d.ts +150 -0
- package/dist/runtime/asset-timeline.d.ts.map +1 -0
- package/dist/runtime/asset-timeline.js +202 -0
- package/dist/runtime/asset-timeline.js.map +1 -0
- package/dist/runtime/asset-update.d.ts +87 -0
- package/dist/runtime/asset-update.d.ts.map +1 -0
- package/dist/runtime/asset-update.js +343 -0
- package/dist/runtime/asset-update.js.map +1 -0
- package/dist/runtime/audio-index.d.ts +22 -0
- package/dist/runtime/audio-index.d.ts.map +1 -0
- package/dist/runtime/audio-index.js +60 -0
- package/dist/runtime/audio-index.js.map +1 -0
- package/dist/runtime/builtin-context.d.ts +17 -0
- package/dist/runtime/builtin-context.d.ts.map +1 -0
- package/dist/runtime/builtin-context.js +17 -0
- package/dist/runtime/builtin-context.js.map +1 -0
- package/dist/runtime/clip-instance.d.ts +96 -0
- package/dist/runtime/clip-instance.d.ts.map +1 -0
- package/dist/runtime/clip-instance.js +225 -0
- package/dist/runtime/clip-instance.js.map +1 -0
- package/dist/runtime/clip-store.d.ts +157 -0
- package/dist/runtime/clip-store.d.ts.map +1 -0
- package/dist/runtime/clip-store.js +840 -0
- package/dist/runtime/clip-store.js.map +1 -0
- package/dist/runtime/engine.d.ts +169 -0
- package/dist/runtime/engine.d.ts.map +1 -0
- package/dist/runtime/engine.js +124 -0
- package/dist/runtime/engine.js.map +1 -0
- package/dist/runtime/index.d.ts +16 -0
- package/dist/runtime/index.d.ts.map +1 -0
- package/dist/runtime/index.js +16 -0
- package/dist/runtime/index.js.map +1 -0
- package/dist/runtime/node-picking.d.ts +170 -0
- package/dist/runtime/node-picking.d.ts.map +1 -0
- package/dist/runtime/node-picking.js +415 -0
- package/dist/runtime/node-picking.js.map +1 -0
- package/dist/runtime/node-picking3d.d.ts +138 -0
- package/dist/runtime/node-picking3d.d.ts.map +1 -0
- package/dist/runtime/node-picking3d.js +490 -0
- package/dist/runtime/node-picking3d.js.map +1 -0
- package/dist/runtime/placement.d.ts +42 -0
- package/dist/runtime/placement.d.ts.map +1 -0
- package/dist/runtime/placement.js +64 -0
- package/dist/runtime/placement.js.map +1 -0
- package/dist/runtime/playback-controller.d.ts +363 -0
- package/dist/runtime/playback-controller.d.ts.map +1 -0
- package/dist/runtime/playback-controller.js +957 -0
- package/dist/runtime/playback-controller.js.map +1 -0
- package/dist/runtime/playback.d.ts +35 -0
- package/dist/runtime/playback.d.ts.map +1 -0
- package/dist/runtime/playback.js +53 -0
- package/dist/runtime/playback.js.map +1 -0
- package/dist/runtime/precompisition.d.ts +24 -0
- package/dist/runtime/precompisition.d.ts.map +1 -0
- package/dist/runtime/precompisition.js +7 -0
- package/dist/runtime/precompisition.js.map +1 -0
- package/dist/runtime/project-assets.d.ts +42 -0
- package/dist/runtime/project-assets.d.ts.map +1 -0
- package/dist/runtime/project-assets.js +190 -0
- package/dist/runtime/project-assets.js.map +1 -0
- package/dist/runtime/session.d.ts +103 -0
- package/dist/runtime/session.d.ts.map +1 -0
- package/dist/runtime/session.js +174 -0
- package/dist/runtime/session.js.map +1 -0
- package/dist/runtime/settle.d.ts +19 -0
- package/dist/runtime/settle.d.ts.map +1 -0
- package/dist/runtime/settle.js +29 -0
- package/dist/runtime/settle.js.map +1 -0
- package/dist/runtime/state-evaluator.d.ts +92 -0
- package/dist/runtime/state-evaluator.d.ts.map +1 -0
- package/dist/runtime/state-evaluator.js +231 -0
- package/dist/runtime/state-evaluator.js.map +1 -0
- package/dist/runtime/text-geometry.d.ts +87 -0
- package/dist/runtime/text-geometry.d.ts.map +1 -0
- package/dist/runtime/text-geometry.js +106 -0
- package/dist/runtime/text-geometry.js.map +1 -0
- package/dist/sdk/index.d.ts +89 -0
- package/dist/sdk/index.d.ts.map +1 -0
- package/dist/sdk/index.js +181 -0
- package/dist/sdk/index.js.map +1 -0
- package/dist/tween/command-decorator.d.ts +50 -0
- package/dist/tween/command-decorator.d.ts.map +1 -0
- package/dist/tween/command-decorator.js +43 -0
- package/dist/tween/command-decorator.js.map +1 -0
- package/dist/tween/command.d.ts +74 -0
- package/dist/tween/command.d.ts.map +1 -0
- package/dist/tween/command.js +134 -0
- package/dist/tween/command.js.map +1 -0
- package/dist/tween/ease/constants.d.ts +20 -0
- package/dist/tween/ease/constants.d.ts.map +1 -0
- package/dist/tween/ease/constants.js +77 -0
- package/dist/tween/ease/constants.js.map +1 -0
- package/dist/tween/ease/curve.d.ts +47 -0
- package/dist/tween/ease/curve.d.ts.map +1 -0
- package/dist/tween/ease/curve.js +81 -0
- package/dist/tween/ease/curve.js.map +1 -0
- package/dist/tween/ease/type.d.ts +2 -0
- package/dist/tween/ease/type.d.ts.map +1 -0
- package/dist/tween/ease/type.js +2 -0
- package/dist/tween/ease/type.js.map +1 -0
- package/dist/tween/index.d.ts +11 -0
- package/dist/tween/index.d.ts.map +1 -0
- package/dist/tween/index.js +11 -0
- package/dist/tween/index.js.map +1 -0
- package/dist/tween/inert.d.ts +20 -0
- package/dist/tween/inert.d.ts.map +1 -0
- package/dist/tween/inert.js +34 -0
- package/dist/tween/inert.js.map +1 -0
- package/dist/tween/lerp.d.ts +35 -0
- package/dist/tween/lerp.d.ts.map +1 -0
- package/dist/tween/lerp.js +36 -0
- package/dist/tween/lerp.js.map +1 -0
- package/dist/tween/loop.d.ts +65 -0
- package/dist/tween/loop.d.ts.map +1 -0
- package/dist/tween/loop.js +66 -0
- package/dist/tween/loop.js.map +1 -0
- package/dist/tween/prepare.d.ts +36 -0
- package/dist/tween/prepare.d.ts.map +1 -0
- package/dist/tween/prepare.js +54 -0
- package/dist/tween/prepare.js.map +1 -0
- package/dist/tween/seekable.d.ts +70 -0
- package/dist/tween/seekable.d.ts.map +1 -0
- package/dist/tween/seekable.js +122 -0
- package/dist/tween/seekable.js.map +1 -0
- package/dist/tween/stepper.d.ts +35 -0
- package/dist/tween/stepper.d.ts.map +1 -0
- package/dist/tween/stepper.js +4 -0
- package/dist/tween/stepper.js.map +1 -0
- package/dist/tween/to-command.d.ts +16 -0
- package/dist/tween/to-command.d.ts.map +1 -0
- package/dist/tween/to-command.js +55 -0
- package/dist/tween/to-command.js.map +1 -0
- package/dist/util/clamp.d.ts +12 -0
- package/dist/util/clamp.d.ts.map +1 -0
- package/dist/util/clamp.js +16 -0
- package/dist/util/clamp.js.map +1 -0
- package/dist/util/context.d.ts +49 -0
- package/dist/util/context.d.ts.map +1 -0
- package/dist/util/context.js +38 -0
- package/dist/util/context.js.map +1 -0
- package/dist/util/csv.d.ts +42 -0
- package/dist/util/csv.d.ts.map +1 -0
- package/dist/util/csv.js +150 -0
- package/dist/util/csv.js.map +1 -0
- package/dist/util/generateList.d.ts +6 -0
- package/dist/util/generateList.d.ts.map +1 -0
- package/dist/util/generateList.js +13 -0
- package/dist/util/generateList.js.map +1 -0
- package/dist/util/index.d.ts +9 -0
- package/dist/util/index.d.ts.map +1 -0
- package/dist/util/index.js +9 -0
- package/dist/util/index.js.map +1 -0
- package/dist/util/metrics.d.ts +36 -0
- package/dist/util/metrics.d.ts.map +1 -0
- package/dist/util/metrics.js +57 -0
- package/dist/util/metrics.js.map +1 -0
- package/dist/util/random.d.ts +121 -0
- package/dist/util/random.d.ts.map +1 -0
- package/dist/util/random.js +195 -0
- package/dist/util/random.js.map +1 -0
- package/dist/util/reference.d.ts +53 -0
- package/dist/util/reference.d.ts.map +1 -0
- package/dist/util/reference.js +20 -0
- package/dist/util/reference.js.map +1 -0
- package/dist/util/scheduler.d.ts +35 -0
- package/dist/util/scheduler.d.ts.map +1 -0
- package/dist/util/scheduler.js +78 -0
- package/dist/util/scheduler.js.map +1 -0
- package/package.json +70 -3
package/CHANGELOG.md
ADDED
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,4 +1,72 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @motionscript/core
|
|
2
|
+
|
|
3
|
+
The engine-agnostic animation library at the heart of [Motion Script](https://motionscript.dev).
|
|
4
|
+
It defines what a scene is — a JSON document of nodes and commands — and how a
|
|
5
|
+
project of them evolves over time: the scene graph, props and tweens, flow
|
|
6
|
+
layout and the runtime that plays it, independent of any rendering backend and
|
|
7
|
+
with zero dependencies.
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import type { CompositionDocument } from '@motionscript/core';
|
|
11
|
+
|
|
12
|
+
// A scene is data: a tree of nodes, then commands placed at times.
|
|
13
|
+
const doc: CompositionDocument = {
|
|
14
|
+
kind: 'composition',
|
|
15
|
+
nodes: [
|
|
16
|
+
{ id: 'card', type: 'rect', parentId: null, layerOrder: 0,
|
|
17
|
+
props: { width: 400, height: 400, fill: 'white', cornerRadius: 20 } },
|
|
18
|
+
{ id: 'lens', type: 'ellipse', parentId: 'card', layerOrder: 0,
|
|
19
|
+
props: { width: 350, height: 350, fill: 'black' } },
|
|
20
|
+
],
|
|
21
|
+
commands: [
|
|
22
|
+
// Slide the lens 300px over 3 seconds.
|
|
23
|
+
{ id: 'slide', type: 'to', targetId: 'lens', at: 0, duration: 3, args: { x: 300 } },
|
|
24
|
+
],
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
A host plays it with `engine.open({ document: doc })`. A frame is a pure
|
|
29
|
+
function of its time, so a seek costs the same in either direction.
|
|
30
|
+
|
|
31
|
+
## What's in here
|
|
32
|
+
|
|
33
|
+
- **Documents**: `StillDocument`, `CompositionDocument` and `AudioDocument`, the
|
|
34
|
+
`ProjectDocument` that lays them on tracks, the validator, the expression
|
|
35
|
+
language, and the per-engine `Registry` that turns a node key into a class.
|
|
36
|
+
- **Runtime**: `Engine` and `Session`, which open a document on a platform and
|
|
37
|
+
play, seek and export it.
|
|
38
|
+
- **Nodes**: the scene graph (`Rect`, `Ellipse`, `Text`, `RichText`, `Video`,
|
|
39
|
+
paths, 3D, audio, and more) with attributes for fills, gradients, filters, and
|
|
40
|
+
SkSL shader effects. A custom node is a class registered with the engine, and
|
|
41
|
+
any document it opens can name it.
|
|
42
|
+
- **Tweens**: interpolation and easing for animating attributes over time.
|
|
43
|
+
- **Layout**: `flowOps`, the flow layout every 2D node runs on its children:
|
|
44
|
+
freeform, runs (wrapped or not) and grid.
|
|
45
|
+
- **JSX runtime**: lets a composite node build its children as TSX
|
|
46
|
+
(`./jsx/jsx-runtime`, `./jsx/jsx-dev-runtime`).
|
|
47
|
+
- **Project / render / platform / assets**: the abstractions a rendering
|
|
48
|
+
backend (such as [`@motionscript/browser`](../browser)) implements to turn a scene
|
|
49
|
+
graph into pixels, audio, and exported video.
|
|
50
|
+
|
|
51
|
+
This package has no rendering backend of its own. Pair it with
|
|
52
|
+
[`@motionscript/browser`](../browser) (Skia/CanvasKit) or build your own backend
|
|
53
|
+
against the `platform`/`render` abstractions.
|
|
54
|
+
|
|
55
|
+
## Usage
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
npm install @motionscript/core
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
See the [docs](https://motionscript.dev/docs) for the full feature set and API
|
|
62
|
+
reference.
|
|
63
|
+
|
|
64
|
+
## Development
|
|
65
|
+
|
|
66
|
+
From the monorepo root:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
pnpm --filter @motionscript/core build
|
|
70
|
+
pnpm --filter @motionscript/core test
|
|
71
|
+
```
|
|
2
72
|
|
|
3
|
-
This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
|
|
4
|
-
If no other versions are published within 30 days, this package and version will be deleted.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { AssetRecord } from "./record.js";
|
|
2
|
+
import { type AssetDecl } from "./scope.js";
|
|
3
|
+
export interface AssetSegment {
|
|
4
|
+
key: string;
|
|
5
|
+
decl: AssetDecl;
|
|
6
|
+
startFrame: number;
|
|
7
|
+
/** Inclusive. `Infinity` runs to the clip's end. */
|
|
8
|
+
endFrame: number;
|
|
9
|
+
}
|
|
10
|
+
export interface AssetDelta {
|
|
11
|
+
/** Keys whose record appeared, disappeared, or changed window or content. */
|
|
12
|
+
readonly keys: ReadonlySet<string>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* One clip's asset windows, per owner, in clip-local frames.
|
|
16
|
+
*
|
|
17
|
+
* Owners replace their segments wholesale, and a key's record — the union window
|
|
18
|
+
* over every owner that needs it — is recomputed only for the keys an update
|
|
19
|
+
* touched. The records keep today's {@link AssetRecord} shape so the manager,
|
|
20
|
+
* exporter and mixer read them unchanged.
|
|
21
|
+
*/
|
|
22
|
+
export declare class AssetIndex {
|
|
23
|
+
constructor(frameCount: number);
|
|
24
|
+
setOwner(ownerKey: string, segments: readonly AssetSegment[]): AssetDelta;
|
|
25
|
+
removeOwner(ownerKey: string): AssetDelta;
|
|
26
|
+
learn(ownerKey: string, decl: AssetDecl, frame: number): AssetDelta;
|
|
27
|
+
setFrameCount(frameCount: number): AssetDelta;
|
|
28
|
+
owners(key: string): ReadonlySet<string>;
|
|
29
|
+
/** Declared segments, then learned ones. */
|
|
30
|
+
segmentsOf(ownerKey: string): readonly AssetSegment[];
|
|
31
|
+
/** Declared segments only — what a partial re-declaration keeps the front of. */
|
|
32
|
+
declaredSegmentsOf(ownerKey: string): readonly AssetSegment[];
|
|
33
|
+
ownerKeys(): IterableIterator<string>;
|
|
34
|
+
records(): ReadonlyMap<string, AssetRecord>;
|
|
35
|
+
/** Fonts, and loaders any owner declared with `gate: "layout"`. */
|
|
36
|
+
layoutGates(): readonly AssetRecord[];
|
|
37
|
+
private _frameCount;
|
|
38
|
+
private readonly _owners;
|
|
39
|
+
private readonly _byKey;
|
|
40
|
+
private readonly _entries;
|
|
41
|
+
private readonly _records;
|
|
42
|
+
private _layoutGates;
|
|
43
|
+
private _link;
|
|
44
|
+
private _unlink;
|
|
45
|
+
private _refresh;
|
|
46
|
+
private _compute;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=asset-index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset-index.d.ts","sourceRoot":"","sources":["../../src/assets/asset-index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAEnD,MAAM,WAAW,YAAY;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,SAAS,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,oDAAoD;IACpD,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,UAAU;IACvB,6EAA6E;IAC7E,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACtC;AAeD;;;;;;;GAOG;AACH,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Owners replace their segments wholesale, and a key's record — the union window
|
|
7
|
+
* over every owner that needs it — is recomputed only for the keys an update
|
|
8
|
+
* touched. The records keep today's {@link AssetRecord} shape so the manager,
|
|
9
|
+
* exporter and mixer read them unchanged.
|
|
10
|
+
*/
|
|
11
|
+
export class AssetIndex {
|
|
12
|
+
constructor(frameCount) {
|
|
13
|
+
this._frameCount = Math.max(0, frameCount);
|
|
14
|
+
}
|
|
15
|
+
setOwner(ownerKey, segments) {
|
|
16
|
+
const touched = new Set();
|
|
17
|
+
const previous = this._owners.get(ownerKey);
|
|
18
|
+
if (previous)
|
|
19
|
+
this._unlink(ownerKey, previous, touched);
|
|
20
|
+
const next = { declared: new Map(), learned: new Map() };
|
|
21
|
+
for (const segment of segments) {
|
|
22
|
+
if (!(segment.endFrame >= segment.startFrame))
|
|
23
|
+
continue;
|
|
24
|
+
appendSegment(next.declared, { ...segment });
|
|
25
|
+
}
|
|
26
|
+
if (next.declared.size > 0) {
|
|
27
|
+
this._owners.set(ownerKey, next);
|
|
28
|
+
this._link(ownerKey, next, touched);
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
this._owners.delete(ownerKey);
|
|
32
|
+
}
|
|
33
|
+
return this._refresh(touched);
|
|
34
|
+
}
|
|
35
|
+
removeOwner(ownerKey) {
|
|
36
|
+
const previous = this._owners.get(ownerKey);
|
|
37
|
+
if (!previous)
|
|
38
|
+
return { keys: new Set() };
|
|
39
|
+
const touched = new Set();
|
|
40
|
+
this._unlink(ownerKey, previous, touched);
|
|
41
|
+
this._owners.delete(ownerKey);
|
|
42
|
+
return this._refresh(touched);
|
|
43
|
+
}
|
|
44
|
+
learn(ownerKey, decl, frame) {
|
|
45
|
+
const key = assetKey(decl);
|
|
46
|
+
let owner = this._owners.get(ownerKey);
|
|
47
|
+
if (!owner) {
|
|
48
|
+
owner = { declared: new Map(), learned: new Map() };
|
|
49
|
+
this._owners.set(ownerKey, owner);
|
|
50
|
+
}
|
|
51
|
+
const list = owner.learned.get(key) ?? [];
|
|
52
|
+
const at = list.findIndex((s) => frame >= s.startFrame - 1 && frame <= s.endFrame + 1);
|
|
53
|
+
if (at < 0) {
|
|
54
|
+
list.push({ key, decl, startFrame: frame, endFrame: frame });
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
// Replaced rather than widened in place: `segmentsOf` hands these out.
|
|
58
|
+
const hit = list[at];
|
|
59
|
+
list[at] = {
|
|
60
|
+
...hit,
|
|
61
|
+
startFrame: Math.min(hit.startFrame, frame),
|
|
62
|
+
endFrame: Math.max(hit.endFrame, frame),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
owner.learned.set(key, list);
|
|
66
|
+
let owners = this._byKey.get(key);
|
|
67
|
+
if (!owners)
|
|
68
|
+
this._byKey.set(key, (owners = new Set()));
|
|
69
|
+
owners.add(ownerKey);
|
|
70
|
+
return this._refresh(new Set([key]));
|
|
71
|
+
}
|
|
72
|
+
setFrameCount(frameCount) {
|
|
73
|
+
const next = Math.max(0, frameCount);
|
|
74
|
+
if (next === this._frameCount)
|
|
75
|
+
return { keys: new Set() };
|
|
76
|
+
this._frameCount = next;
|
|
77
|
+
return this._refresh(new Set(this._byKey.keys()));
|
|
78
|
+
}
|
|
79
|
+
owners(key) {
|
|
80
|
+
return this._byKey.get(key) ?? NO_OWNERS;
|
|
81
|
+
}
|
|
82
|
+
/** Declared segments, then learned ones. */
|
|
83
|
+
segmentsOf(ownerKey) {
|
|
84
|
+
const owner = this._owners.get(ownerKey);
|
|
85
|
+
if (!owner)
|
|
86
|
+
return [];
|
|
87
|
+
const out = [];
|
|
88
|
+
for (const list of owner.declared.values())
|
|
89
|
+
out.push(...list);
|
|
90
|
+
for (const list of owner.learned.values())
|
|
91
|
+
out.push(...list);
|
|
92
|
+
return out;
|
|
93
|
+
}
|
|
94
|
+
/** Declared segments only — what a partial re-declaration keeps the front of. */
|
|
95
|
+
declaredSegmentsOf(ownerKey) {
|
|
96
|
+
const owner = this._owners.get(ownerKey);
|
|
97
|
+
if (!owner)
|
|
98
|
+
return [];
|
|
99
|
+
const out = [];
|
|
100
|
+
for (const list of owner.declared.values())
|
|
101
|
+
out.push(...list);
|
|
102
|
+
return out;
|
|
103
|
+
}
|
|
104
|
+
ownerKeys() {
|
|
105
|
+
return this._owners.keys();
|
|
106
|
+
}
|
|
107
|
+
records() {
|
|
108
|
+
return this._records;
|
|
109
|
+
}
|
|
110
|
+
/** Fonts, and loaders any owner declared with `gate: "layout"`. */
|
|
111
|
+
layoutGates() {
|
|
112
|
+
if (this._layoutGates === null) {
|
|
113
|
+
const gates = [];
|
|
114
|
+
for (const entry of this._entries.values()) {
|
|
115
|
+
if (entry.layout)
|
|
116
|
+
gates.push(entry.record);
|
|
117
|
+
}
|
|
118
|
+
this._layoutGates = gates;
|
|
119
|
+
}
|
|
120
|
+
return this._layoutGates;
|
|
121
|
+
}
|
|
122
|
+
_frameCount;
|
|
123
|
+
_owners = new Map();
|
|
124
|
+
_byKey = new Map();
|
|
125
|
+
_entries = new Map();
|
|
126
|
+
_records = new Map();
|
|
127
|
+
_layoutGates = null;
|
|
128
|
+
_link(ownerKey, owner, touched) {
|
|
129
|
+
for (const key of owner.declared.keys()) {
|
|
130
|
+
let owners = this._byKey.get(key);
|
|
131
|
+
if (!owners)
|
|
132
|
+
this._byKey.set(key, (owners = new Set()));
|
|
133
|
+
owners.add(ownerKey);
|
|
134
|
+
touched.add(key);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
_unlink(ownerKey, owner, touched) {
|
|
138
|
+
for (const map of [owner.declared, owner.learned]) {
|
|
139
|
+
for (const key of map.keys()) {
|
|
140
|
+
const owners = this._byKey.get(key);
|
|
141
|
+
if (owners) {
|
|
142
|
+
owners.delete(ownerKey);
|
|
143
|
+
if (owners.size === 0)
|
|
144
|
+
this._byKey.delete(key);
|
|
145
|
+
}
|
|
146
|
+
touched.add(key);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
_refresh(keys) {
|
|
151
|
+
const changed = new Set();
|
|
152
|
+
for (const key of keys) {
|
|
153
|
+
const previous = this._entries.get(key);
|
|
154
|
+
const next = this._compute(key);
|
|
155
|
+
if (next === undefined) {
|
|
156
|
+
if (previous === undefined)
|
|
157
|
+
continue;
|
|
158
|
+
this._entries.delete(key);
|
|
159
|
+
this._records.delete(key);
|
|
160
|
+
}
|
|
161
|
+
else if (previous !== undefined && previous.layout === next.layout && sameRecord(previous.record, next.record)) {
|
|
162
|
+
continue;
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
this._entries.set(key, next);
|
|
166
|
+
this._records.set(key, next.record);
|
|
167
|
+
}
|
|
168
|
+
changed.add(key);
|
|
169
|
+
}
|
|
170
|
+
if (changed.size > 0)
|
|
171
|
+
this._layoutGates = null;
|
|
172
|
+
return { keys: changed };
|
|
173
|
+
}
|
|
174
|
+
_compute(key) {
|
|
175
|
+
const owners = this._byKey.get(key);
|
|
176
|
+
if (!owners)
|
|
177
|
+
return undefined;
|
|
178
|
+
const last = this._frameCount - 1;
|
|
179
|
+
let first;
|
|
180
|
+
let start = Infinity;
|
|
181
|
+
let end = -Infinity;
|
|
182
|
+
let layoutLoader = false;
|
|
183
|
+
const visit = (list) => {
|
|
184
|
+
if (!list)
|
|
185
|
+
return;
|
|
186
|
+
for (const segment of list) {
|
|
187
|
+
const from = Math.max(0, segment.startFrame);
|
|
188
|
+
const to = Math.min(last, segment.endFrame);
|
|
189
|
+
if (to < from)
|
|
190
|
+
continue;
|
|
191
|
+
// The earliest segment speaks for the key.
|
|
192
|
+
if (from < start) {
|
|
193
|
+
start = from;
|
|
194
|
+
first = segment;
|
|
195
|
+
}
|
|
196
|
+
if (to > end)
|
|
197
|
+
end = to;
|
|
198
|
+
if (segment.decl.type === "loader" && segment.decl.gate === "layout")
|
|
199
|
+
layoutLoader = true;
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
for (const ownerKey of owners) {
|
|
203
|
+
const owner = this._owners.get(ownerKey);
|
|
204
|
+
if (!owner)
|
|
205
|
+
continue;
|
|
206
|
+
visit(owner.declared.get(key));
|
|
207
|
+
visit(owner.learned.get(key));
|
|
208
|
+
}
|
|
209
|
+
if (first === undefined)
|
|
210
|
+
return undefined;
|
|
211
|
+
return {
|
|
212
|
+
record: recordOf(first.decl, start, end),
|
|
213
|
+
layout: first.decl.type === "font" || layoutLoader,
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
function appendSegment(map, segment) {
|
|
218
|
+
const list = map.get(segment.key);
|
|
219
|
+
if (list)
|
|
220
|
+
list.push(segment);
|
|
221
|
+
else
|
|
222
|
+
map.set(segment.key, [segment]);
|
|
223
|
+
}
|
|
224
|
+
function recordOf(decl, startFrame, endFrame) {
|
|
225
|
+
switch (decl.type) {
|
|
226
|
+
case "image":
|
|
227
|
+
return { type: "image", startFrame, endFrame, src: decl.src };
|
|
228
|
+
case "video":
|
|
229
|
+
return {
|
|
230
|
+
type: "video", startFrame, endFrame, src: decl.src,
|
|
231
|
+
trimStart: decl.trimStart, trimEnd: decl.trimEnd,
|
|
232
|
+
};
|
|
233
|
+
case "font":
|
|
234
|
+
return { type: "font", startFrame, endFrame, fontWeight: decl.weight, fontFamily: decl.family, src: decl.family };
|
|
235
|
+
case "loader":
|
|
236
|
+
return { type: "loader", src: decl.key, startFrame, endFrame, load: decl.load };
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
function sameRecord(a, b) {
|
|
240
|
+
if (a.type !== b.type || a.src !== b.src || a.startFrame !== b.startFrame || a.endFrame !== b.endFrame)
|
|
241
|
+
return false;
|
|
242
|
+
switch (a.type) {
|
|
243
|
+
case "video": {
|
|
244
|
+
const v = b;
|
|
245
|
+
return a.trimStart === v.trimStart && a.trimEnd === v.trimEnd;
|
|
246
|
+
}
|
|
247
|
+
case "font":
|
|
248
|
+
return a.fontWeight === b.fontWeight;
|
|
249
|
+
case "loader":
|
|
250
|
+
return a.load === b.load;
|
|
251
|
+
default:
|
|
252
|
+
return true;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
//# sourceMappingURL=asset-index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset-index.js","sourceRoot":"","sources":["../../src/assets/asset-index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAkB,MAAM,SAAS,CAAC;AA0BnD,MAAM,SAAS,GAAwB,IAAI,GAAG,EAAE,CAAC;AAEjD;;;;;;;GAOG;AACH,MAAM,OAAO,UAAU;IACnB,YAAY,UAAkB;QAC1B,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;IAC/C,CAAC;IAED,QAAQ,CAAC,QAAgB,EAAE,QAAiC;QACxD,MAAM,OAAO,GAAG,IAAI,GAAG,EAAU,CAAC;QAClC,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAC5C,IAAI,QAAQ;YAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;QAExD,MAAM,IAAI,GAAkB,EAAE,QAAQ,EAAE,IAAI,GAAG,EAAE,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,EAAE,CAAC;QACxE,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;YAC7B,IAAI,CAAC,CAAC,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,UAAU,CAAC;gBAAE,SAAS;YACxD,aAAa,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;QACjD,CAAC;QACD,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC;YACzB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;YACjC,IAAI,CAAC,KAAK,CAAC,Q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CAAC,IAAI,KAAM,CAAc,CAAC,IAAI,CAAC;QAC3C;YACI,OAAO,IAAI,CAAC;IACpB,CAAC;AACL,CAAC","sourcesContent":["import type { AssetRecord } from \"./record\";\nimport { assetKey, type AssetDecl } from \"./scope\";\n\nexport interface AssetSegment {\n key: string;\n decl: AssetDecl;\n startFrame: number;\n /** Inclusive. `Infinity` runs to the clip's end. */\n endFrame: number;\n}\n\nexport interface AssetDelta {\n /** Keys whose record appeared, disappeared, or changed window or content. */\n readonly keys: ReadonlySet<string>;\n}\n\ninterface OwnerSegments {\n declared: Map<string, AssetSegment[]>;\n /** Found missing at draw time rather than declared; cleared by the owner's next `setOwner`. */\n learned: Map<string, AssetSegment[]>;\n}\n\ninterface KeyEntry {\n record: AssetRecord;\n layout: boolean;\n}\n\nconst NO_OWNERS: ReadonlySet<string> = new Set();\n\n/**\n * One clip's asset windows, per owner, in clip-local frames.\n *\n * Owners replace their segments wholesale, and a key's record — the union window\n * over every owner that needs it — is recomputed only for the keys an update\n * touched. The records keep today's {@link AssetRecord} shape so the manager,\n * exporter and mixer read them unchanged.\n */\nexport class AssetIndex {\n constructor(frameCount: number) {\n this._frameCount = Math.max(0, frameCount);\n }\n\n setOwner(ownerKey: string, segments: readonly AssetSegment[]): AssetDelta {\n const touched = new Set<string>();\n const previous = this._owners.get(ownerKey);\n if (previous) this._unlink(ownerKey, previous, touched);\n\n const next: OwnerSegments = { declared: new Map(), learned: new Map() };\n for (const segment of segments) {\n if (!(segment.endFrame >= segment.startFrame)) continue;\n appendSegment(next.declared, { ...segment });\n }\n if (next.declared.size > 0) {\n this._owners.set(ownerKey, next);\n this._link(ownerKey, next, touched);\n } else {\n this._owners.delete(ownerKey);\n }\n return this._refresh(touched);\n }\n\n removeOwner(ownerKey: string): AssetDelta {\n const previous = this._owners.get(ownerKey);\n if (!previous) return { keys: new Set() };\n const touched = new Set<string>();\n this._unlink(ownerKey, previous, touched);\n this._owners.delete(ownerKey);\n return this._refresh(touched);\n }\n\n learn(ownerKey: string, decl: AssetDecl, frame: number): AssetDelta {\n const key = assetKey(decl);\n let owner = this._owners.get(ownerKey);\n if (!owner) {\n owner = { declared: new Map(), learned: new Map() };\n this._owners.set(ownerKey, owner);\n }\n const list = owner.learned.get(key) ?? [];\n const at = list.findIndex((s) => frame >= s.startFrame - 1 && frame <= s.endFrame + 1);\n if (at < 0) {\n list.push({ key, decl, startFrame: frame, endFrame: frame });\n } else {\n // Replaced rather than widened in place: `segmentsOf` hands these out.\n const hit = list[at];\n list[at] = {\n ...hit,\n startFrame: Math.min(hit.startFrame, frame),\n endFrame: Math.max(hit.endFrame, frame),\n };\n }\n owner.learned.set(key, list);\n let owners = this._byKey.get(key);\n if (!owners) this._byKey.set(key, (owners = new Set()));\n owners.add(ownerKey);\n return this._refresh(new Set([key]));\n }\n\n setFrameCount(frameCount: number): AssetDelta {\n const next = Math.max(0, frameCount);\n if (next === this._frameCount) return { keys: new Set() };\n this._frameCount = next;\n return this._refresh(new Set(this._byKey.keys()));\n }\n\n owners(key: string): ReadonlySet<string> {\n return this._byKey.get(key) ?? NO_OWNERS;\n }\n\n /** Declared segments, then learned ones. */\n segmentsOf(ownerKey: string): readonly AssetSegment[] {\n const owner = this._owners.get(ownerKey);\n if (!owner) return [];\n const out: AssetSegment[] = [];\n for (const list of owner.declared.values()) out.push(...list);\n for (const list of owner.learned.values()) out.push(...list);\n return out;\n }\n\n /** Declared segments only — what a partial re-declaration keeps the front of. */\n declaredSegmentsOf(ownerKey: string): readonly AssetSegment[] {\n const owner = this._owners.get(ownerKey);\n if (!owner) return [];\n const out: AssetSegment[] = [];\n for (const list of owner.declared.values()) out.push(...list);\n return out;\n }\n\n ownerKeys(): IterableIterator<string> {\n return this._owners.keys();\n }\n\n records(): ReadonlyMap<string, AssetRecord> {\n return this._records;\n }\n\n /** Fonts, and loaders any owner declared with `gate: \"layout\"`. */\n layoutGates(): readonly AssetRecord[] {\n if (this._layoutGates === null) {\n const gates: AssetRecord[] = [];\n for (const entry of this._entries.values()) {\n if (entry.layout) gates.push(entry.record);\n }\n this._layoutGates = gates;\n }\n return this._layoutGates;\n }\n\n private _frameCount: number;\n private readonly _owners = new Map<string, OwnerSegments>();\n private readonly _byKey = new Map<string, Set<string>>();\n private readonly _entries = new Map<string, KeyEntry>();\n private readonly _records = new Map<string, AssetRecord>();\n private _layoutGates: AssetRecord[] | null = null;\n\n private _link(ownerKey: string, owner: OwnerSegments, touched: Set<string>): void {\n for (const key of owner.declared.keys()) {\n let owners = this._byKey.get(key);\n if (!owners) this._byKey.set(key, (owners = new Set()));\n owners.add(ownerKey);\n touched.add(key);\n }\n }\n\n private _unlink(ownerKey: string, owner: OwnerSegments, touched: Set<string>): void {\n for (const map of [owner.declared, owner.learned]) {\n for (const key of map.keys()) {\n const owners = this._byKey.get(key);\n if (owners) {\n owners.delete(ownerKey);\n if (owners.size === 0) this._byKey.delete(key);\n }\n touched.add(key);\n }\n }\n }\n\n private _refresh(keys: ReadonlySet<string>): AssetDelta {\n const changed = new Set<string>();\n for (const key of keys) {\n const previous = this._entries.get(key);\n const next = this._compute(key);\n if (next === undefined) {\n if (previous === undefined) continue;\n this._entries.delete(key);\n this._records.delete(key);\n } else if (previous !== undefined && previous.layout === next.layout && sameRecord(previous.record, next.record)) {\n continue;\n } else {\n this._entries.set(key, next);\n this._records.set(key, next.record);\n }\n changed.add(key);\n }\n if (changed.size > 0) this._layoutGates = null;\n return { keys: changed };\n }\n\n private _compute(key: string): KeyEntry | undefined {\n const owners = this._byKey.get(key);\n if (!owners) return undefined;\n const last = this._frameCount - 1;\n let first: AssetSegment | undefined;\n let start = Infinity;\n let end = -Infinity;\n let layoutLoader = false;\n\n const visit = (list: AssetSegment[] | undefined): void => {\n if (!list) return;\n for (const segment of list) {\n const from = Math.max(0, segment.startFrame);\n const to = Math.min(last, segment.endFrame);\n if (to < from) continue;\n // The earliest segment speaks for the key.\n if (from < start) {\n start = from;\n first = segment;\n }\n if (to > end) end = to;\n if (segment.decl.type === \"loader\" && segment.decl.gate === \"layout\") layoutLoader = true;\n }\n };\n for (const ownerKey of owners) {\n const owner = this._owners.get(ownerKey);\n if (!owner) continue;\n visit(owner.declared.get(key));\n visit(owner.learned.get(key));\n }\n\n if (first === undefined) return undefined;\n return {\n record: recordOf(first.decl, start, end),\n layout: first.decl.type === \"font\" || layoutLoader,\n };\n }\n}\n\nfunction appendSegment(map: Map<string, AssetSegment[]>, segment: AssetSegment): void {\n const list = map.get(segment.key);\n if (list) list.push(segment);\n else map.set(segment.key, [segment]);\n}\n\nfunction recordOf(decl: AssetDecl, startFrame: number, endFrame: number): AssetRecord {\n switch (decl.type) {\n case \"image\":\n return { type: \"image\", startFrame, endFrame, src: decl.src };\n case \"video\":\n return {\n type: \"video\", startFrame, endFrame, src: decl.src,\n trimStart: decl.trimStart, trimEnd: decl.trimEnd,\n };\n case \"font\":\n return { type: \"font\", startFrame, endFrame, fontWeight: decl.weight, fontFamily: decl.family, src: decl.family };\n case \"loader\":\n return { type: \"loader\", src: decl.key, startFrame, endFrame, load: decl.load };\n }\n}\n\nfunction sameRecord(a: AssetRecord, b: AssetRecord): boolean {\n if (a.type !== b.type || a.src !== b.src || a.startFrame !== b.startFrame || a.endFrame !== b.endFrame) return false;\n switch (a.type) {\n case \"video\": {\n const v = b as typeof a;\n return a.trimStart === v.trimStart && a.trimEnd === v.trimEnd;\n }\n case \"font\":\n return a.fontWeight === (b as typeof a).fontWeight;\n case \"loader\":\n return a.load === (b as typeof a).load;\n default:\n return true;\n }\n}\n"]}
|