@motionscript/core 0.1.0-alpha.3 → 0.1.0-alpha.6
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 +247 -0
- package/LICENSE +201 -201
- package/NOTICE +48 -0
- package/README.md +93 -72
- package/dist/assets/asset-index.js.map +1 -1
- package/dist/assets/catalog.d.ts +9 -0
- package/dist/assets/catalog.d.ts.map +1 -1
- package/dist/assets/catalog.js +11 -0
- package/dist/assets/catalog.js.map +1 -1
- package/dist/assets/errors.d.ts.map +1 -1
- package/dist/assets/errors.js +8 -3
- package/dist/assets/errors.js.map +1 -1
- package/dist/assets/index.js.map +1 -1
- package/dist/assets/manager.d.ts +26 -1
- package/dist/assets/manager.d.ts.map +1 -1
- package/dist/assets/manager.js +79 -4
- package/dist/assets/manager.js.map +1 -1
- package/dist/assets/manifest.js.map +1 -1
- package/dist/assets/record.js.map +1 -1
- package/dist/assets/scope.d.ts +3 -3
- package/dist/assets/scope.d.ts.map +1 -1
- package/dist/assets/scope.js.map +1 -1
- package/dist/attributes/audio/filters/chain.d.ts +1 -1
- package/dist/attributes/audio/filters/chain.js.map +1 -1
- package/dist/attributes/audio/filters/curve.d.ts +8 -8
- package/dist/attributes/audio/filters/curve.d.ts.map +1 -1
- package/dist/attributes/audio/filters/curve.js +20 -19
- package/dist/attributes/audio/filters/curve.js.map +1 -1
- package/dist/attributes/audio/filters/implementations/echo.js.map +1 -1
- package/dist/attributes/audio/filters/implementations/gain.js.map +1 -1
- package/dist/attributes/audio/filters/implementations/highpass.js.map +1 -1
- package/dist/attributes/audio/filters/implementations/lowpass.js.map +1 -1
- package/dist/attributes/audio/filters/implementations/speed.d.ts +2 -2
- package/dist/attributes/audio/filters/implementations/speed.js.map +1 -1
- package/dist/attributes/audio/filters/implementations/tremolo.js.map +1 -1
- package/dist/attributes/audio/filters/index.d.ts +1 -1
- package/dist/attributes/audio/filters/index.d.ts.map +1 -1
- package/dist/attributes/audio/filters/index.js +1 -1
- package/dist/attributes/audio/filters/index.js.map +1 -1
- package/dist/attributes/audio/filters/registry.js.map +1 -1
- package/dist/attributes/audio/filters/union.js.map +1 -1
- package/dist/attributes/audio/request.d.ts +17 -2
- package/dist/attributes/audio/request.d.ts.map +1 -1
- package/dist/attributes/audio/request.js.map +1 -1
- package/dist/attributes/audio/schedule.d.ts +4 -2
- package/dist/attributes/audio/schedule.d.ts.map +1 -1
- package/dist/attributes/audio/schedule.js +15 -8
- package/dist/attributes/audio/schedule.js.map +1 -1
- package/dist/attributes/audio/sound.d.ts +4 -2
- package/dist/attributes/audio/sound.d.ts.map +1 -1
- package/dist/attributes/audio/sound.js +8 -4
- package/dist/attributes/audio/sound.js.map +1 -1
- package/dist/attributes/index.js.map +1 -1
- package/dist/attributes/layout/alignment.js +1 -1
- package/dist/attributes/layout/alignment.js.map +1 -1
- package/dist/attributes/layout/index.js.map +1 -1
- package/dist/attributes/layout/insets.js.map +1 -1
- package/dist/attributes/layout/matrix2d.js.map +1 -1
- package/dist/attributes/layout/size.js.map +1 -1
- package/dist/attributes/layout/transform3d.js.map +1 -1
- package/dist/attributes/layout/vector2.js.map +1 -1
- package/dist/attributes/layout/world-transform.js.map +1 -1
- package/dist/attributes/mask/boolean.js.map +1 -1
- package/dist/attributes/mask/mask.js.map +1 -1
- package/dist/attributes/properties/decorator.d.ts +3 -1
- package/dist/attributes/properties/decorator.d.ts.map +1 -1
- package/dist/attributes/properties/decorator.js.map +1 -1
- package/dist/attributes/properties/inputs.js.map +1 -1
- package/dist/attributes/properties/typed.d.ts +9 -2
- package/dist/attributes/properties/typed.d.ts.map +1 -1
- package/dist/attributes/properties/typed.js +15 -1
- package/dist/attributes/properties/typed.js.map +1 -1
- package/dist/attributes/render3d/orbit.d.ts +8 -8
- package/dist/attributes/render3d/orbit.js +7 -7
- package/dist/attributes/render3d/orbit.js.map +1 -1
- package/dist/attributes/shape/corners/corner-radius.js.map +1 -1
- package/dist/attributes/shape/corners/corner-style.js.map +1 -1
- package/dist/attributes/shape/corners/corners.js.map +1 -1
- package/dist/attributes/shape/corners/index.js.map +1 -1
- package/dist/attributes/shape/effects/backdrop.d.ts +4 -4
- package/dist/attributes/shape/effects/backdrop.d.ts.map +1 -1
- package/dist/attributes/shape/effects/backdrop.js.map +1 -1
- package/dist/attributes/shape/effects/chain.d.ts +28 -120
- package/dist/attributes/shape/effects/chain.d.ts.map +1 -1
- package/dist/attributes/shape/effects/chain.js +16 -88
- package/dist/attributes/shape/effects/chain.js.map +1 -1
- package/dist/attributes/shape/effects/effect-data.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/ascii.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/bit-crush.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/block-displace.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/bloom.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/bulge.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/color-adjustment.d.ts +2 -2
- package/dist/attributes/shape/effects/implementations/color-adjustment.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/curves.d.ts +1 -1
- package/dist/attributes/shape/effects/implementations/curves.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/directional-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/dither.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/drop-shadow.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/duotone.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/edges.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/glass.d.ts +15 -24
- package/dist/attributes/shape/effects/implementations/glass.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/glass.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/glow.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/grain.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/grayscale.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/halftone.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/invert.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/kaleidoscope.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/lut.d.ts +1 -1
- package/dist/attributes/shape/effects/implementations/lut.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/magnify.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/motion-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/oil-paint.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/outline.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/pixelate.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/posterize.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/progressive-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/radial-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/rgb-shift.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/scanlines.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/scatter.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/shader.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/shader.js +15 -8
- package/dist/attributes/shape/effects/implementations/shader.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/sharpen.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/streak.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/threshold.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/twirl.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/vignette.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/vintage.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/wave.js.map +1 -1
- package/dist/attributes/shape/effects/index.d.ts +2 -6
- package/dist/attributes/shape/effects/index.d.ts.map +1 -1
- package/dist/attributes/shape/effects/index.js.map +1 -1
- package/dist/attributes/shape/effects/registry.d.ts +23 -6
- package/dist/attributes/shape/effects/registry.d.ts.map +1 -1
- package/dist/attributes/shape/effects/registry.js +44 -10
- package/dist/attributes/shape/effects/registry.js.map +1 -1
- package/dist/attributes/shape/effects/union.d.ts +2 -6
- package/dist/attributes/shape/effects/union.d.ts.map +1 -1
- package/dist/attributes/shape/effects/union.js.map +1 -1
- package/dist/attributes/shape/fill/blend.js.map +1 -1
- package/dist/attributes/shape/fill/chain.js.map +1 -1
- package/dist/attributes/shape/fill/coerce.js.map +1 -1
- package/dist/attributes/shape/fill/color/constants.js.map +1 -1
- package/dist/attributes/shape/fill/color/parser.d.ts.map +1 -1
- package/dist/attributes/shape/fill/color/parser.js +81 -44
- package/dist/attributes/shape/fill/color/parser.js.map +1 -1
- package/dist/attributes/shape/fill/gradient-stops.d.ts +16 -0
- package/dist/attributes/shape/fill/gradient-stops.d.ts.map +1 -0
- package/dist/attributes/shape/fill/gradient-stops.js +65 -0
- package/dist/attributes/shape/fill/gradient-stops.js.map +1 -0
- package/dist/attributes/shape/fill/implementations/canvas3d.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/color.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/conic-gradient.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/conic-gradient.js +2 -5
- package/dist/attributes/shape/fill/implementations/conic-gradient.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/dot-grid.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/fractal-noise.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/fractal-noise.js +2 -10
- package/dist/attributes/shape/fill/implementations/fractal-noise.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/grid.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/image.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/image.js +5 -4
- package/dist/attributes/shape/fill/implementations/image.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/linear-gradient.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/linear-gradient.js +2 -6
- package/dist/attributes/shape/fill/implementations/linear-gradient.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/noise.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/radial-gradient.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/radial-gradient.js +2 -5
- package/dist/attributes/shape/fill/implementations/radial-gradient.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/shader.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/stripe.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/video.js +1 -1
- package/dist/attributes/shape/fill/implementations/video.js.map +1 -1
- package/dist/attributes/shape/fill/index.js.map +1 -1
- package/dist/attributes/shape/fill/lerp.js.map +1 -1
- package/dist/attributes/shape/fill/media-preset.js.map +1 -1
- package/dist/attributes/shape/fill/registry.js.map +1 -1
- package/dist/attributes/shape/fill/union.js.map +1 -1
- package/dist/attributes/shape/filters/chain.d.ts +4 -10
- package/dist/attributes/shape/filters/chain.d.ts.map +1 -1
- package/dist/attributes/shape/filters/chain.js +1 -13
- package/dist/attributes/shape/filters/chain.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/alpha.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/blur.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/color-adjustment.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/color-matrix.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/curves.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/echo.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/exposure.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/grayscale.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/posterize-time.js.map +1 -1
- package/dist/attributes/shape/filters/index.d.ts +1 -1
- package/dist/attributes/shape/filters/index.js.map +1 -1
- package/dist/attributes/shape/filters/registry.d.ts +2 -2
- package/dist/attributes/shape/filters/registry.js +3 -3
- package/dist/attributes/shape/filters/registry.js.map +1 -1
- package/dist/attributes/shape/filters/union.d.ts +6 -7
- package/dist/attributes/shape/filters/union.d.ts.map +1 -1
- package/dist/attributes/shape/filters/union.js.map +1 -1
- package/dist/attributes/shape/path/anchors.d.ts.map +1 -1
- package/dist/attributes/shape/path/anchors.js +12 -5
- package/dist/attributes/shape/path/anchors.js.map +1 -1
- package/dist/attributes/shape/path/bezier.js.map +1 -1
- package/dist/attributes/shape/path/index.js.map +1 -1
- package/dist/attributes/shape/path/measure.js.map +1 -1
- package/dist/attributes/shape/path/morph.d.ts.map +1 -1
- package/dist/attributes/shape/path/morph.js +16 -4
- package/dist/attributes/shape/path/morph.js.map +1 -1
- package/dist/attributes/shape/path/ops.js.map +1 -1
- package/dist/attributes/shape/path/types.js.map +1 -1
- package/dist/attributes/shape/path/walk.js.map +1 -1
- package/dist/attributes/shape/shaders/index.js.map +1 -1
- package/dist/attributes/shape/shaders/pack.js.map +1 -1
- package/dist/attributes/shape/shaders/resolve.js.map +1 -1
- package/dist/attributes/shape/shadow/index.js.map +1 -1
- package/dist/attributes/shape/shadow/shadow.js.map +1 -1
- package/dist/attributes/shape/stroke/index.d.ts +2 -2
- package/dist/attributes/shape/stroke/index.d.ts.map +1 -1
- package/dist/attributes/shape/stroke/index.js +1 -1
- package/dist/attributes/shape/stroke/index.js.map +1 -1
- package/dist/attributes/shape/stroke/stroke.d.ts +27 -6
- package/dist/attributes/shape/stroke/stroke.d.ts.map +1 -1
- package/dist/attributes/shape/stroke/stroke.js +22 -2
- package/dist/attributes/shape/stroke/stroke.js.map +1 -1
- package/dist/attributes/shared/operators.js.map +1 -1
- package/dist/attributes/text/index.js.map +1 -1
- package/dist/attributes/text/ops.d.ts +6 -0
- package/dist/attributes/text/ops.d.ts.map +1 -1
- package/dist/attributes/text/ops.js +1 -0
- package/dist/attributes/text/ops.js.map +1 -1
- package/dist/attributes/text/types.js.map +1 -1
- package/dist/browser/chunks/chunk-2RIYH36X.js +3 -0
- package/dist/browser/chunks/chunk-2RIYH36X.js.map +7 -0
- package/dist/browser/chunks/chunk-DDJN3QII.js +15 -0
- package/dist/browser/chunks/chunk-DDJN3QII.js.map +7 -0
- package/dist/browser/chunks/chunk-DHB4COFY.js +2 -0
- package/dist/browser/chunks/chunk-DHB4COFY.js.map +7 -0
- package/dist/browser/chunks/chunk-EJDPYDQI.js +5 -0
- package/dist/browser/chunks/chunk-EJDPYDQI.js.map +7 -0
- package/dist/browser/chunks/chunk-SFNJRPBV.js +2 -0
- package/dist/browser/chunks/chunk-SFNJRPBV.js.map +7 -0
- package/dist/browser/chunks/chunk-XAWE4EAK.js +2 -0
- package/dist/browser/chunks/chunk-XAWE4EAK.js.map +7 -0
- package/dist/browser/component.js +1 -1
- package/dist/browser/component.js.map +4 -4
- package/dist/browser/experimental.js +2 -0
- package/dist/browser/experimental.js.map +7 -0
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +4 -4
- package/dist/browser/jsx-jsx-dev-runtime.js +1 -1
- package/dist/browser/jsx-jsx-runtime.js +1 -1
- package/dist/browser/manifest.json +4 -2
- package/dist/browser/sdk.js +1 -1
- package/dist/component/api.d.ts +508 -0
- package/dist/component/api.d.ts.map +1 -0
- package/dist/component/api.js +4 -0
- package/dist/component/api.js.map +1 -0
- package/dist/component/builtins/audio.d.ts +26 -0
- package/dist/component/builtins/audio.d.ts.map +1 -0
- package/dist/component/builtins/audio.js +41 -0
- package/dist/component/builtins/audio.js.map +1 -0
- package/dist/component/builtins/canvas3d.d.ts +98 -0
- package/dist/component/builtins/canvas3d.d.ts.map +1 -0
- package/dist/component/builtins/canvas3d.js +21 -0
- package/dist/component/builtins/canvas3d.js.map +1 -0
- package/dist/component/builtins/composite.d.ts +56 -0
- package/dist/component/builtins/composite.d.ts.map +1 -0
- package/dist/component/builtins/composite.js +25 -0
- package/dist/component/builtins/composite.js.map +1 -0
- package/dist/component/builtins/geometry.d.ts +505 -0
- package/dist/component/builtins/geometry.d.ts.map +1 -0
- package/dist/component/builtins/geometry.js +107 -0
- package/dist/component/builtins/geometry.js.map +1 -0
- package/dist/component/builtins/layout.d.ts +88 -0
- package/dist/component/builtins/layout.d.ts.map +1 -0
- package/dist/component/builtins/layout.js +84 -0
- package/dist/component/builtins/layout.js.map +1 -0
- package/dist/component/builtins/media.d.ts +95 -0
- package/dist/component/builtins/media.d.ts.map +1 -0
- package/dist/component/builtins/media.js +149 -0
- package/dist/component/builtins/media.js.map +1 -0
- package/dist/component/builtins/providers.d.ts +23 -0
- package/dist/component/builtins/providers.d.ts.map +1 -0
- package/dist/component/builtins/providers.js +30 -0
- package/dist/component/builtins/providers.js.map +1 -0
- package/dist/component/builtins/text.d.ts +193 -0
- package/dist/component/builtins/text.d.ts.map +1 -0
- package/dist/component/builtins/text.js +113 -0
- package/dist/component/builtins/text.js.map +1 -0
- package/dist/component/builtins/three.d.ts +1085 -0
- package/dist/component/builtins/three.d.ts.map +1 -0
- package/dist/component/builtins/three.js +265 -0
- package/dist/component/builtins/three.js.map +1 -0
- package/dist/component/clip-of.d.ts +5 -0
- package/dist/component/clip-of.d.ts.map +1 -0
- package/dist/component/clip-of.js +33 -0
- package/dist/component/clip-of.js.map +1 -0
- package/dist/component/commands-for.d.ts +19 -0
- package/dist/component/commands-for.d.ts.map +1 -0
- package/dist/component/commands-for.js +5 -0
- package/dist/component/commands-for.js.map +1 -0
- package/dist/component/component-audio.d.ts +9 -0
- package/dist/component/component-audio.d.ts.map +1 -0
- package/dist/component/component-audio.js +18 -0
- package/dist/component/component-audio.js.map +1 -0
- package/dist/component/component2d.d.ts +9 -0
- package/dist/component/component2d.d.ts.map +1 -0
- package/dist/component/component2d.js +239 -0
- package/dist/component/component2d.js.map +1 -0
- package/dist/component/component3d.d.ts +9 -0
- package/dist/component/component3d.d.ts.map +1 -0
- package/dist/component/component3d.js +99 -0
- package/dist/component/component3d.js.map +1 -0
- package/dist/component/factory.d.ts +63 -0
- package/dist/component/factory.d.ts.map +1 -0
- package/dist/component/factory.js +313 -0
- package/dist/component/factory.js.map +1 -0
- package/dist/component/modules/aim.d.ts +30 -0
- package/dist/component/modules/aim.d.ts.map +1 -0
- package/dist/component/modules/aim.js +39 -0
- package/dist/component/modules/aim.js.map +1 -0
- package/dist/component/modules/corners.d.ts +13 -0
- package/dist/component/modules/corners.d.ts.map +1 -0
- package/dist/component/modules/corners.js +12 -0
- package/dist/component/modules/corners.js.map +1 -0
- package/dist/component/modules/flow.d.ts +26 -0
- package/dist/component/modules/flow.d.ts.map +1 -0
- package/dist/component/modules/flow.js +55 -0
- package/dist/component/modules/flow.js.map +1 -0
- package/dist/component/modules/material.d.ts +40 -0
- package/dist/component/modules/material.d.ts.map +1 -0
- package/dist/component/modules/material.js +75 -0
- package/dist/component/modules/material.js.map +1 -0
- package/dist/component/modules/paint.d.ts +71 -0
- package/dist/component/modules/paint.d.ts.map +1 -0
- package/dist/component/modules/paint.js +106 -0
- package/dist/component/modules/paint.js.map +1 -0
- package/dist/component/modules/shapes.d.ts +31 -0
- package/dist/component/modules/shapes.d.ts.map +1 -0
- package/dist/component/modules/shapes.js +43 -0
- package/dist/component/modules/shapes.js.map +1 -0
- package/dist/component/modules/text-layout.d.ts +26 -0
- package/dist/component/modules/text-layout.d.ts.map +1 -0
- package/dist/component/modules/text-layout.js +57 -0
- package/dist/component/modules/text-layout.js.map +1 -0
- package/dist/component/modules/text-style.d.ts +48 -0
- package/dist/component/modules/text-style.d.ts.map +1 -0
- package/dist/component/modules/text-style.js +63 -0
- package/dist/component/modules/text-style.js.map +1 -0
- package/dist/component/modules/three-entries.d.ts +23 -0
- package/dist/component/modules/three-entries.d.ts.map +1 -0
- package/dist/component/modules/three-entries.js +41 -0
- package/dist/component/modules/three-entries.js.map +1 -0
- package/dist/component/modules/view3d.d.ts +55 -0
- package/dist/component/modules/view3d.d.ts.map +1 -0
- package/dist/component/modules/view3d.js +160 -0
- package/dist/component/modules/view3d.js.map +1 -0
- package/dist/component/timeline.d.ts +22 -0
- package/dist/component/timeline.d.ts.map +1 -0
- package/dist/component/timeline.js +128 -0
- package/dist/component/timeline.js.map +1 -0
- package/dist/component/type-def.d.ts +26 -0
- package/dist/component/type-def.d.ts.map +1 -0
- package/dist/component/type-def.js +16 -0
- package/dist/component/type-def.js.map +1 -0
- package/dist/component/types.d.ts +91 -0
- package/dist/component/types.d.ts.map +1 -0
- package/dist/component/types.js +88 -0
- package/dist/component/types.js.map +1 -0
- package/dist/component/views.d.ts +121 -0
- package/dist/component/views.d.ts.map +1 -0
- package/dist/component/views.js +413 -0
- package/dist/component/views.js.map +1 -0
- package/dist/component.d.ts +4 -5
- package/dist/component.d.ts.map +1 -1
- package/dist/component.js +3 -5
- package/dist/component.js.map +1 -1
- package/dist/document/audio.d.ts +10 -2
- package/dist/document/audio.d.ts.map +1 -1
- package/dist/document/audio.js +45 -4
- package/dist/document/audio.js.map +1 -1
- package/dist/document/builtins.d.ts.map +1 -1
- package/dist/document/builtins.js +15 -39
- package/dist/document/builtins.js.map +1 -1
- package/dist/document/command-traits.d.ts +1 -1
- package/dist/document/command-traits.js +16 -1
- package/dist/document/command-traits.js.map +1 -1
- package/dist/document/deny-globals.js.map +1 -1
- package/dist/document/diff.d.ts.map +1 -1
- package/dist/document/diff.js +3 -3
- package/dist/document/diff.js.map +1 -1
- package/dist/document/doc-index.d.ts +2 -2
- package/dist/document/doc-index.d.ts.map +1 -1
- package/dist/document/doc-index.js +3 -3
- package/dist/document/doc-index.js.map +1 -1
- package/dist/document/expression/compile.d.ts.map +1 -1
- package/dist/document/expression/compile.js +8 -5
- package/dist/document/expression/compile.js.map +1 -1
- package/dist/document/expression/index.js.map +1 -1
- package/dist/document/expression/ops.js +1 -1
- package/dist/document/expression/ops.js.map +1 -1
- package/dist/document/expression/parse.d.ts.map +1 -1
- package/dist/document/expression/parse.js +15 -6
- package/dist/document/expression/parse.js.map +1 -1
- package/dist/document/expression/refs.d.ts +1 -1
- package/dist/document/expression/refs.js +1 -1
- package/dist/document/expression/refs.js.map +1 -1
- package/dist/document/expression/types.js.map +1 -1
- package/dist/document/expression/walk.d.ts.map +1 -1
- package/dist/document/expression/walk.js +2 -1
- package/dist/document/expression/walk.js.map +1 -1
- package/dist/document/index.d.ts +2 -0
- package/dist/document/index.d.ts.map +1 -1
- package/dist/document/index.js +2 -0
- package/dist/document/index.js.map +1 -1
- package/dist/document/node-decorator.js.map +1 -1
- package/dist/document/node-descriptor.d.ts +25 -0
- package/dist/document/node-descriptor.d.ts.map +1 -1
- package/dist/document/node-descriptor.js.map +1 -1
- package/dist/document/placement.d.ts +70 -0
- package/dist/document/placement.d.ts.map +1 -0
- package/dist/document/placement.js +83 -0
- package/dist/document/placement.js.map +1 -0
- package/dist/document/project.d.ts +2 -2
- package/dist/document/project.d.ts.map +1 -1
- package/dist/document/project.js.map +1 -1
- package/dist/document/registry.d.ts +23 -11
- package/dist/document/registry.d.ts.map +1 -1
- package/dist/document/registry.js +46 -19
- package/dist/document/registry.js.map +1 -1
- package/dist/document/settled-index.d.ts +49 -0
- package/dist/document/settled-index.d.ts.map +1 -0
- package/dist/document/settled-index.js +247 -0
- package/dist/document/settled-index.js.map +1 -0
- package/dist/document/timeline-patch.js.map +1 -1
- package/dist/document/timeline.d.ts +100 -19
- package/dist/document/timeline.d.ts.map +1 -1
- package/dist/document/timeline.js +290 -42
- package/dist/document/timeline.js.map +1 -1
- package/dist/document/types.d.ts +12 -12
- package/dist/document/types.d.ts.map +1 -1
- package/dist/document/types.js +2 -2
- package/dist/document/types.js.map +1 -1
- package/dist/document/validate.d.ts +2 -2
- package/dist/document/validate.d.ts.map +1 -1
- package/dist/document/validate.js +37 -31
- package/dist/document/validate.js.map +1 -1
- package/dist/document/withdraw.d.ts +28 -0
- package/dist/document/withdraw.d.ts.map +1 -0
- package/dist/document/withdraw.js +61 -0
- package/dist/document/withdraw.js.map +1 -0
- package/dist/experimental.d.ts +22 -0
- package/dist/experimental.d.ts.map +1 -0
- package/dist/experimental.js +20 -0
- package/dist/experimental.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/dist/jsx/jsx-dev-runtime.js.map +1 -1
- package/dist/jsx/jsx-runtime.d.ts +9 -1
- package/dist/jsx/jsx-runtime.d.ts.map +1 -1
- package/dist/jsx/jsx-runtime.js +13 -3
- package/dist/jsx/jsx-runtime.js.map +1 -1
- package/dist/layout/bounds.d.ts +0 -1
- package/dist/layout/bounds.d.ts.map +1 -1
- package/dist/layout/bounds.js.map +1 -1
- package/dist/layout/constraints.js.map +1 -1
- package/dist/layout/flex.d.ts +4 -2
- package/dist/layout/flex.d.ts.map +1 -1
- package/dist/layout/flex.js +27 -11
- package/dist/layout/flex.js.map +1 -1
- package/dist/layout/freeform.js.map +1 -1
- package/dist/layout/grid.js.map +1 -1
- package/dist/layout/index.js.map +1 -1
- package/dist/layout/item.js.map +1 -1
- package/dist/layout/ops.d.ts +6 -0
- package/dist/layout/ops.d.ts.map +1 -1
- package/dist/layout/ops.js +6 -0
- package/dist/layout/ops.js.map +1 -1
- package/dist/layout/types.js.map +1 -1
- package/dist/nodes/2d/node-lifecycle.js.map +1 -1
- package/dist/nodes/2d/node-motion.js.map +1 -1
- package/dist/nodes/2d/node-render.d.ts +3 -3
- package/dist/nodes/2d/node-render.d.ts.map +1 -1
- package/dist/nodes/2d/node-render.js.map +1 -1
- package/dist/nodes/2d/node-transform.js.map +1 -1
- package/dist/nodes/2d/node2d.d.ts +115 -3
- package/dist/nodes/2d/node2d.d.ts.map +1 -1
- package/dist/nodes/2d/node2d.js +180 -28
- package/dist/nodes/2d/node2d.js.map +1 -1
- package/dist/nodes/2d/paint-node.d.ts +27 -0
- package/dist/nodes/2d/paint-node.d.ts.map +1 -1
- package/dist/nodes/2d/paint-node.js +42 -0
- package/dist/nodes/2d/paint-node.js.map +1 -1
- package/dist/nodes/audio/audio-bus.js.map +1 -1
- package/dist/nodes/audio/index.d.ts +2 -2
- package/dist/nodes/audio/index.d.ts.map +1 -1
- package/dist/nodes/audio/index.js +0 -2
- package/dist/nodes/audio/index.js.map +1 -1
- package/dist/nodes/audio/node-audio.js.map +1 -1
- package/dist/nodes/audio/sound-node.d.ts +4 -3
- package/dist/nodes/audio/sound-node.d.ts.map +1 -1
- package/dist/nodes/audio/sound-node.js +4 -1
- package/dist/nodes/audio/sound-node.js.map +1 -1
- package/dist/nodes/geometry/bounds-shape-node.d.ts +4 -4
- package/dist/nodes/geometry/bounds-shape-node.js +2 -2
- package/dist/nodes/geometry/bounds-shape-node.js.map +1 -1
- package/dist/nodes/geometry/box-path-node.d.ts +3 -3
- package/dist/nodes/geometry/box-path-node.js +2 -2
- package/dist/nodes/geometry/box-path-node.js.map +1 -1
- package/dist/nodes/geometry/ellipse-node.js.map +1 -1
- package/dist/nodes/geometry/group-bounds.d.ts +2 -2
- package/dist/nodes/geometry/group-bounds.d.ts.map +1 -1
- package/dist/nodes/geometry/group-bounds.js +1 -2
- package/dist/nodes/geometry/group-bounds.js.map +1 -1
- package/dist/nodes/geometry/path-node.d.ts.map +1 -1
- package/dist/nodes/geometry/path-node.js +6 -0
- package/dist/nodes/geometry/path-node.js.map +1 -1
- package/dist/nodes/geometry/polygon-node.js.map +1 -1
- package/dist/nodes/geometry/polygram-node.js.map +1 -1
- package/dist/nodes/geometry/rect-node.js.map +1 -1
- package/dist/nodes/geometry/shape-node.js.map +1 -1
- package/dist/nodes/geometry/shape-outline.d.ts +2 -2
- package/dist/nodes/geometry/shape-outline.d.ts.map +1 -1
- package/dist/nodes/geometry/shape-outline.js +2 -13
- package/dist/nodes/geometry/shape-outline.js.map +1 -1
- package/dist/nodes/index.d.ts +40 -33
- package/dist/nodes/index.d.ts.map +1 -1
- package/dist/nodes/index.js +17 -36
- package/dist/nodes/index.js.map +1 -1
- package/dist/nodes/layout/camera-node.d.ts +9 -0
- package/dist/nodes/layout/camera-node.d.ts.map +1 -1
- package/dist/nodes/layout/camera-node.js +38 -3
- package/dist/nodes/layout/camera-node.js.map +1 -1
- package/dist/nodes/layout/orbit-camera-node.d.ts +1 -1
- package/dist/nodes/layout/orbit-camera-node.js +1 -1
- package/dist/nodes/layout/orbit-camera-node.js.map +1 -1
- package/dist/nodes/layout/rotated-box.js.map +1 -1
- package/dist/nodes/media/video-node.d.ts.map +1 -1
- package/dist/nodes/media/video-node.js +2 -0
- package/dist/nodes/media/video-node.js.map +1 -1
- package/dist/nodes/node/declare-paints.js.map +1 -1
- package/dist/nodes/node/node-editor-state.js.map +1 -1
- package/dist/nodes/node/node-reactive.js.map +1 -1
- package/dist/nodes/node/node-time.d.ts +3 -3
- package/dist/nodes/node/node-time.d.ts.map +1 -1
- package/dist/nodes/node/node-time.js +1 -1
- package/dist/nodes/node/node-time.js.map +1 -1
- package/dist/nodes/node/node-walk.js.map +1 -1
- package/dist/nodes/node/node.d.ts +12 -4
- package/dist/nodes/node/node.d.ts.map +1 -1
- package/dist/nodes/node/node.js +67 -27
- package/dist/nodes/node/node.js.map +1 -1
- package/dist/nodes/node/text-defaults.d.ts +10 -12
- package/dist/nodes/node/text-defaults.d.ts.map +1 -1
- package/dist/nodes/node/text-defaults.js +10 -12
- package/dist/nodes/node/text-defaults.js.map +1 -1
- package/dist/nodes/{scene → root}/canvas2d-node.d.ts +4 -3
- package/dist/nodes/root/canvas2d-node.d.ts.map +1 -0
- package/dist/nodes/{scene → root}/canvas2d-node.js +5 -2
- package/dist/nodes/root/canvas2d-node.js.map +1 -0
- package/dist/nodes/root/provider-node.d.ts.map +1 -0
- package/dist/nodes/root/provider-node.js.map +1 -0
- package/dist/nodes/root/theme-provider-node.d.ts.map +1 -0
- package/dist/nodes/root/theme-provider-node.js.map +1 -0
- package/dist/nodes/text/default-text-style-node.d.ts +5 -2
- package/dist/nodes/text/default-text-style-node.d.ts.map +1 -1
- package/dist/nodes/text/default-text-style-node.js +10 -4
- package/dist/nodes/text/default-text-style-node.js.map +1 -1
- package/dist/nodes/text/number-format.d.ts +1 -1
- package/dist/nodes/text/number-format.js +1 -1
- package/dist/nodes/text/number-format.js.map +1 -1
- package/dist/nodes/text/number-node.js.map +1 -1
- package/dist/nodes/text/number-pattern.js.map +1 -1
- package/dist/nodes/text/richtext-node.d.ts +0 -5
- package/dist/nodes/text/richtext-node.d.ts.map +1 -1
- package/dist/nodes/text/richtext-node.js +6 -72
- package/dist/nodes/text/richtext-node.js.map +1 -1
- package/dist/nodes/text/text-base.d.ts +5 -22
- package/dist/nodes/text/text-base.d.ts.map +1 -1
- package/dist/nodes/text/text-base.js +13 -364
- package/dist/nodes/text/text-base.js.map +1 -1
- package/dist/nodes/text/text-layout.d.ts +87 -0
- package/dist/nodes/text/text-layout.d.ts.map +1 -0
- package/dist/nodes/text/text-layout.js +368 -0
- package/dist/nodes/text/text-layout.js.map +1 -0
- package/dist/nodes/text/text-node.js.map +1 -1
- package/dist/nodes/text/text-selection.js.map +1 -1
- package/dist/nodes/three/camera-nodes.d.ts +21 -3
- package/dist/nodes/three/camera-nodes.d.ts.map +1 -1
- package/dist/nodes/three/camera-nodes.js +42 -1
- package/dist/nodes/three/camera-nodes.js.map +1 -1
- package/dist/nodes/three/canvas3d-node.d.ts +32 -7
- package/dist/nodes/three/canvas3d-node.d.ts.map +1 -1
- package/dist/nodes/three/canvas3d-node.js +50 -2
- package/dist/nodes/three/canvas3d-node.js.map +1 -1
- package/dist/nodes/three/drawable-nodes.d.ts +25 -11
- package/dist/nodes/three/drawable-nodes.d.ts.map +1 -1
- package/dist/nodes/three/drawable-nodes.js +43 -13
- package/dist/nodes/three/drawable-nodes.js.map +1 -1
- package/dist/nodes/three/environment-nodes.d.ts +9 -3
- package/dist/nodes/three/environment-nodes.d.ts.map +1 -1
- package/dist/nodes/three/environment-nodes.js.map +1 -1
- package/dist/nodes/three/geometry-nodes.d.ts +2 -2
- package/dist/nodes/three/geometry-nodes.js +2 -2
- package/dist/nodes/three/geometry-nodes.js.map +1 -1
- package/dist/nodes/three/grid-geometry3d.js.map +1 -1
- package/dist/nodes/three/group3d.js.map +1 -1
- package/dist/nodes/three/light-nodes.d.ts.map +1 -1
- package/dist/nodes/three/light-nodes.js +3 -3
- package/dist/nodes/three/light-nodes.js.map +1 -1
- package/dist/nodes/three/mesh3d.js.map +1 -1
- package/dist/nodes/three/node3d.d.ts +48 -0
- package/dist/nodes/three/node3d.d.ts.map +1 -1
- package/dist/nodes/three/node3d.js +53 -3
- package/dist/nodes/three/node3d.js.map +1 -1
- package/dist/platform/audio-sink.d.ts +2 -2
- package/dist/platform/audio-sink.d.ts.map +1 -1
- package/dist/platform/audio-sink.js.map +1 -1
- package/dist/platform/exporter.d.ts +13 -8
- package/dist/platform/exporter.d.ts.map +1 -1
- package/dist/platform/exporter.js.map +1 -1
- package/dist/platform/index.d.ts +1 -1
- package/dist/platform/index.d.ts.map +1 -1
- package/dist/platform/index.js.map +1 -1
- package/dist/platform/stepped-clock.js.map +1 -1
- package/dist/platform/storage-adapter.d.ts +12 -6
- package/dist/platform/storage-adapter.d.ts.map +1 -1
- package/dist/platform/storage-adapter.js +4 -0
- package/dist/platform/storage-adapter.js.map +1 -1
- package/dist/platform/ticker.d.ts +6 -0
- package/dist/platform/ticker.d.ts.map +1 -1
- package/dist/platform/ticker.js +6 -0
- package/dist/platform/ticker.js.map +1 -1
- package/dist/project/config.js.map +1 -1
- package/dist/project/index.js.map +1 -1
- package/dist/project/tree.d.ts +3 -3
- package/dist/project/tree.d.ts.map +1 -1
- package/dist/project/tree.js.map +1 -1
- package/dist/props/host.js.map +1 -1
- package/dist/props/index.js.map +1 -1
- package/dist/props/observer.js.map +1 -1
- package/dist/props/slot.js.map +1 -1
- package/dist/renamed-scene-names.d.ts +17 -0
- package/dist/renamed-scene-names.d.ts.map +1 -0
- package/dist/renamed-scene-names.js +9 -0
- package/dist/renamed-scene-names.js.map +1 -0
- package/dist/render/canvas-render-context2d.d.ts +2 -2
- package/dist/render/canvas-render-context2d.d.ts.map +1 -1
- package/dist/render/canvas-render-context2d.js.map +1 -1
- package/dist/render/clip-contains.js.map +1 -1
- package/dist/render/clip.js.map +1 -1
- package/dist/render/descriptors/ellipse.js.map +1 -1
- package/dist/render/descriptors/latex.js.map +1 -1
- package/dist/render/descriptors/line.js.map +1 -1
- package/dist/render/descriptors/path-builder.js.map +1 -1
- package/dist/render/descriptors/path.js.map +1 -1
- package/dist/render/descriptors/polygon.js.map +1 -1
- package/dist/render/descriptors/polygram.js.map +1 -1
- package/dist/render/descriptors/rect.js.map +1 -1
- package/dist/render/descriptors/richtext.js.map +1 -1
- package/dist/render/descriptors/shape.d.ts +12 -0
- package/dist/render/descriptors/shape.d.ts.map +1 -1
- package/dist/render/descriptors/shape.js.map +1 -1
- package/dist/render/descriptors/text.d.ts +2 -2
- package/dist/render/descriptors/text.js +2 -2
- package/dist/render/descriptors/text.js.map +1 -1
- package/dist/render/descriptors/transform.d.ts +2 -2
- package/dist/render/descriptors/transform.d.ts.map +1 -1
- package/dist/render/descriptors/transform.js.map +1 -1
- package/dist/render/graphics2d.d.ts +3 -3
- package/dist/render/graphics2d.d.ts.map +1 -1
- package/dist/render/graphics2d.js +1 -1
- package/dist/render/graphics2d.js.map +1 -1
- package/dist/render/index.js.map +1 -1
- package/dist/render/measure-context.js.map +1 -1
- package/dist/render/null-render-context.js.map +1 -1
- package/dist/render/render-context2d.d.ts +2 -2
- package/dist/render/render-context2d.d.ts.map +1 -1
- package/dist/render/render-context2d.js.map +1 -1
- package/dist/render/surface.js.map +1 -1
- package/dist/render/text-defaults.js.map +1 -1
- package/dist/render/text-layout.js.map +1 -1
- package/dist/render3d/bounds3d.d.ts.map +1 -1
- package/dist/render3d/bounds3d.js +4 -2
- package/dist/render3d/bounds3d.js.map +1 -1
- package/dist/render3d/builders.js.map +1 -1
- package/dist/render3d/camera.d.ts +6 -0
- package/dist/render3d/camera.d.ts.map +1 -1
- package/dist/render3d/camera.js +5 -3
- package/dist/render3d/camera.js.map +1 -1
- package/dist/render3d/fill3d.d.ts +2 -9
- package/dist/render3d/fill3d.d.ts.map +1 -1
- package/dist/render3d/fill3d.js +2 -13
- package/dist/render3d/fill3d.js.map +1 -1
- package/dist/render3d/geometry.d.ts +8 -1
- package/dist/render3d/geometry.d.ts.map +1 -1
- package/dist/render3d/geometry.js.map +1 -1
- package/dist/render3d/graphics3d.d.ts +8 -4
- package/dist/render3d/graphics3d.d.ts.map +1 -1
- package/dist/render3d/graphics3d.js +18 -10
- package/dist/render3d/graphics3d.js.map +1 -1
- package/dist/render3d/index.d.ts +1 -1
- package/dist/render3d/index.js +1 -1
- package/dist/render3d/index.js.map +1 -1
- package/dist/render3d/inert.d.ts +14 -0
- package/dist/render3d/inert.d.ts.map +1 -0
- package/dist/render3d/inert.js +62 -0
- package/dist/render3d/inert.js.map +1 -0
- package/dist/render3d/light.js.map +1 -1
- package/dist/render3d/material.d.ts +10 -5
- package/dist/render3d/material.d.ts.map +1 -1
- package/dist/render3d/material.js.map +1 -1
- package/dist/render3d/matrix4.js.map +1 -1
- package/dist/render3d/render-context3d.js.map +1 -1
- package/dist/render3d/resources.js.map +1 -1
- package/dist/render3d/rounded-box.js.map +1 -1
- package/dist/render3d/scene-settings.d.ts +23 -4
- package/dist/render3d/scene-settings.d.ts.map +1 -1
- package/dist/render3d/scene-settings.js.map +1 -1
- package/dist/render3d/scene3d.d.ts +11 -0
- package/dist/render3d/scene3d.d.ts.map +1 -1
- package/dist/render3d/scene3d.js +39 -6
- package/dist/render3d/scene3d.js.map +1 -1
- package/dist/render3d/segments.js.map +1 -1
- package/dist/render3d/texture.d.ts +9 -0
- package/dist/render3d/texture.d.ts.map +1 -1
- package/dist/render3d/texture.js +13 -0
- package/dist/render3d/texture.js.map +1 -1
- package/dist/render3d/tracking.js.map +1 -1
- package/dist/render3d/transform.d.ts +1 -1
- package/dist/render3d/transform.js.map +1 -1
- package/dist/render3d/vector3.d.ts +18 -1
- package/dist/render3d/vector3.d.ts.map +1 -1
- package/dist/render3d/vector3.js +27 -0
- package/dist/render3d/vector3.js.map +1 -1
- package/dist/render3d/walk.d.ts +1 -1
- package/dist/render3d/walk.d.ts.map +1 -1
- package/dist/render3d/walk.js +5 -1
- package/dist/render3d/walk.js.map +1 -1
- package/dist/runtime/asset-refine.js.map +1 -1
- package/dist/runtime/asset-timeline.js.map +1 -1
- package/dist/runtime/asset-update.js.map +1 -1
- package/dist/runtime/audio-index.js.map +1 -1
- package/dist/runtime/builtin-context.js.map +1 -1
- package/dist/runtime/clip-instance.d.ts +9 -4
- package/dist/runtime/clip-instance.d.ts.map +1 -1
- package/dist/runtime/clip-instance.js +27 -9
- package/dist/runtime/clip-instance.js.map +1 -1
- package/dist/runtime/clip-store.d.ts +18 -0
- package/dist/runtime/clip-store.d.ts.map +1 -1
- package/dist/runtime/clip-store.js +97 -0
- package/dist/runtime/clip-store.js.map +1 -1
- package/dist/runtime/engine.d.ts +5 -0
- package/dist/runtime/engine.d.ts.map +1 -1
- package/dist/runtime/engine.js +2 -0
- package/dist/runtime/engine.js.map +1 -1
- package/dist/runtime/frame-time.d.ts +31 -0
- package/dist/runtime/frame-time.d.ts.map +1 -0
- package/dist/runtime/frame-time.js +29 -0
- package/dist/runtime/frame-time.js.map +1 -0
- package/dist/runtime/index.d.ts +1 -0
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +1 -0
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/node-picking.d.ts +44 -3
- package/dist/runtime/node-picking.d.ts.map +1 -1
- package/dist/runtime/node-picking.js +124 -10
- package/dist/runtime/node-picking.js.map +1 -1
- package/dist/runtime/node-picking3d.d.ts +13 -5
- package/dist/runtime/node-picking3d.d.ts.map +1 -1
- package/dist/runtime/node-picking3d.js +10 -2
- package/dist/runtime/node-picking3d.js.map +1 -1
- package/dist/runtime/placement.d.ts.map +1 -1
- package/dist/runtime/placement.js +4 -5
- package/dist/runtime/placement.js.map +1 -1
- package/dist/runtime/playback-controller.d.ts +31 -2
- package/dist/runtime/playback-controller.d.ts.map +1 -1
- package/dist/runtime/playback-controller.js +63 -6
- package/dist/runtime/playback-controller.js.map +1 -1
- package/dist/runtime/playback.js.map +1 -1
- package/dist/runtime/precompisition.js.map +1 -1
- package/dist/runtime/project-assets.js.map +1 -1
- package/dist/runtime/session.d.ts +9 -7
- package/dist/runtime/session.d.ts.map +1 -1
- package/dist/runtime/session.js +12 -4
- package/dist/runtime/session.js.map +1 -1
- package/dist/runtime/settle.js.map +1 -1
- package/dist/runtime/state-evaluator.d.ts +1 -1
- package/dist/runtime/state-evaluator.d.ts.map +1 -1
- package/dist/runtime/state-evaluator.js +4 -3
- package/dist/runtime/state-evaluator.js.map +1 -1
- package/dist/runtime/text-geometry.d.ts.map +1 -1
- package/dist/runtime/text-geometry.js +7 -3
- package/dist/runtime/text-geometry.js.map +1 -1
- package/dist/sdk/index.d.ts +50 -25
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +52 -42
- package/dist/sdk/index.js.map +1 -1
- package/dist/tween/command-decorator.d.ts +2 -0
- package/dist/tween/command-decorator.d.ts.map +1 -1
- package/dist/tween/command-decorator.js.map +1 -1
- package/dist/tween/command.d.ts +12 -0
- package/dist/tween/command.d.ts.map +1 -1
- package/dist/tween/command.js +14 -0
- package/dist/tween/command.js.map +1 -1
- package/dist/tween/ease/constants.d.ts.map +1 -1
- package/dist/tween/ease/constants.js +8 -5
- package/dist/tween/ease/constants.js.map +1 -1
- package/dist/tween/ease/curve.d.ts.map +1 -1
- package/dist/tween/ease/curve.js +4 -3
- package/dist/tween/ease/curve.js.map +1 -1
- package/dist/tween/ease/describe.d.ts +15 -0
- package/dist/tween/ease/describe.d.ts.map +1 -0
- package/dist/tween/ease/describe.js +37 -0
- package/dist/tween/ease/describe.js.map +1 -0
- package/dist/tween/ease/type.js.map +1 -1
- package/dist/tween/index.js.map +1 -1
- package/dist/tween/inert.js.map +1 -1
- package/dist/tween/lerp.js.map +1 -1
- package/dist/tween/loop.js.map +1 -1
- package/dist/tween/prepare.d.ts +3 -3
- package/dist/tween/prepare.js +3 -3
- package/dist/tween/prepare.js.map +1 -1
- package/dist/tween/seekable.d.ts +1 -1
- package/dist/tween/seekable.js.map +1 -1
- package/dist/tween/stepper.js.map +1 -1
- package/dist/tween/to-command.js.map +1 -1
- package/dist/util/clamp.js.map +1 -1
- package/dist/util/context.js.map +1 -1
- package/dist/util/csv.js.map +1 -1
- package/dist/util/generateList.js.map +1 -1
- package/dist/util/index.js.map +1 -1
- package/dist/util/metrics.d.ts +1 -1
- package/dist/util/metrics.js +1 -1
- package/dist/util/metrics.js.map +1 -1
- package/dist/util/random.js.map +1 -1
- package/dist/util/reference.js.map +1 -1
- package/dist/util/scheduler.js.map +1 -1
- package/package.json +7 -1
- package/dist/attributes/shape/effects/implementations/displace.d.ts +0 -48
- package/dist/attributes/shape/effects/implementations/displace.d.ts.map +0 -1
- package/dist/attributes/shape/effects/implementations/displace.js +0 -30
- package/dist/attributes/shape/effects/implementations/displace.js.map +0 -1
- package/dist/attributes/shape/effects/implementations/god-rays.d.ts +0 -28
- package/dist/attributes/shape/effects/implementations/god-rays.d.ts.map +0 -1
- package/dist/attributes/shape/effects/implementations/god-rays.js +0 -26
- package/dist/attributes/shape/effects/implementations/god-rays.js.map +0 -1
- package/dist/attributes/shape/effects/implementations/texture.d.ts +0 -28
- package/dist/attributes/shape/effects/implementations/texture.d.ts.map +0 -1
- package/dist/attributes/shape/effects/implementations/texture.js +0 -25
- package/dist/attributes/shape/effects/implementations/texture.js.map +0 -1
- package/dist/attributes/shape/effects/implementations/trails.d.ts +0 -41
- package/dist/attributes/shape/effects/implementations/trails.d.ts.map +0 -1
- package/dist/attributes/shape/effects/implementations/trails.js +0 -22
- package/dist/attributes/shape/effects/implementations/trails.js.map +0 -1
- package/dist/browser/chunks/chunk-2T3HXSC2.js +0 -2
- package/dist/browser/chunks/chunk-2T3HXSC2.js.map +0 -7
- package/dist/browser/chunks/chunk-KJXGRHOL.js +0 -3
- package/dist/browser/chunks/chunk-KJXGRHOL.js.map +0 -7
- package/dist/browser/chunks/chunk-TGDX2SS2.js +0 -18
- package/dist/browser/chunks/chunk-TGDX2SS2.js.map +0 -7
- package/dist/nodes/geometry/dot-grid-node.d.ts +0 -105
- package/dist/nodes/geometry/dot-grid-node.d.ts.map +0 -1
- package/dist/nodes/geometry/dot-grid-node.js +0 -142
- package/dist/nodes/geometry/dot-grid-node.js.map +0 -1
- package/dist/nodes/geometry/grid-lines.d.ts +0 -101
- package/dist/nodes/geometry/grid-lines.d.ts.map +0 -1
- package/dist/nodes/geometry/grid-lines.js +0 -128
- package/dist/nodes/geometry/grid-lines.js.map +0 -1
- package/dist/nodes/geometry/grid-pattern-node.d.ts +0 -58
- package/dist/nodes/geometry/grid-pattern-node.d.ts.map +0 -1
- package/dist/nodes/geometry/grid-pattern-node.js +0 -172
- package/dist/nodes/geometry/grid-pattern-node.js.map +0 -1
- package/dist/nodes/geometry/line-grid-node.d.ts +0 -62
- package/dist/nodes/geometry/line-grid-node.d.ts.map +0 -1
- package/dist/nodes/geometry/line-grid-node.js +0 -127
- package/dist/nodes/geometry/line-grid-node.js.map +0 -1
- package/dist/nodes/geometry/line-node.d.ts +0 -58
- package/dist/nodes/geometry/line-node.d.ts.map +0 -1
- package/dist/nodes/geometry/line-node.js +0 -123
- package/dist/nodes/geometry/line-node.js.map +0 -1
- package/dist/nodes/geometry/viewport-pattern-node.d.ts +0 -39
- package/dist/nodes/geometry/viewport-pattern-node.d.ts.map +0 -1
- package/dist/nodes/geometry/viewport-pattern-node.js +0 -79
- package/dist/nodes/geometry/viewport-pattern-node.js.map +0 -1
- package/dist/nodes/scene/canvas2d-node.d.ts.map +0 -1
- package/dist/nodes/scene/canvas2d-node.js.map +0 -1
- package/dist/nodes/scene/provider-node.d.ts.map +0 -1
- package/dist/nodes/scene/provider-node.js.map +0 -1
- package/dist/nodes/scene/theme-provider-node.d.ts.map +0 -1
- package/dist/nodes/scene/theme-provider-node.js.map +0 -1
- /package/dist/nodes/{scene → root}/provider-node.d.ts +0 -0
- /package/dist/nodes/{scene → root}/provider-node.js +0 -0
- /package/dist/nodes/{scene → root}/theme-provider-node.d.ts +0 -0
- /package/dist/nodes/{scene → root}/theme-provider-node.js +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function o(n,e,t){if(n===i){let r=e?.children??[];return Array.isArray(r)?r:[r]}if(typeof n=="function")return t===void 0||e?.key!==void 0?new n(e):new n({...e,key:String(t)});throw new Error("JSX element must be a Node class (e.g. <Rect />)")}var f=o,i=Symbol.for("motion.fragment");export{o as a,f as b,i as c};
|
|
2
|
+
//# sourceMappingURL=chunk-SFNJRPBV.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/jsx/jsx-runtime.ts"],
|
|
4
|
+
"sourcesContent": ["import type { Node } from \"@/nodes/node/node\";\r\nimport type { Reference } from \"../util/reference\";\r\n\r\n/**\r\n * The automatic JSX runtime's element factory.\r\n *\r\n * TypeScript lowers a `key` attribute to the third argument, not into `props`:\r\n * `<Rect key=\"card\" />` becomes `jsx(Rect, {}, \"card\")`. It is written to the\r\n * node's `key` unless `props` already carries one, so the spread form\r\n * (`<Rect {...{ key: \"card\" }} />`) means the same thing.\r\n */\r\nexport function jsx(type: any, props: any, key?: string | number) {\r\n // Fragment support\r\n if (type === Fragment) {\r\n const children = props?.children ?? [];\r\n // Wrap single child in array if it's not already an array\r\n return Array.isArray(children) ? children : [children];\r\n }\r\n\r\n // Class-based node\r\n if (typeof type === \"function\") {\r\n if (key === undefined || props?.key !== undefined) return new type(props);\r\n return new type({ ...props, key: String(key) });\r\n }\r\n\r\n throw new Error(\r\n \"JSX element must be a Node class (e.g. <Rect />)\"\r\n );\r\n}\r\n\r\nexport const jsxs = jsx;\r\nexport const Fragment = Symbol.for(\"motion.fragment\");\r\n\r\nexport namespace JSX {\r\n // The dimension-agnostic base, so both trees are valid JSX. Which children a\r\n // node will actually accept is a runtime check (`Node.acceptsChild`) rather\r\n // than a type-level one: `children` is one prop shared by every node, and\r\n // splitting JSX by dimension would mean two runtimes for one syntax.\r\n export type Element = Node;\r\n export interface ElementClass extends Node<any> { }\r\n export interface ElementChildrenAttribute { children: {} }\r\n export interface IntrinsicAttributes { ref?: Reference<any> }\r\n export interface IntrinsicElements { }\r\n}\r\n"],
|
|
5
|
+
"mappings": "AAWM,SAAUA,EAAIC,EAAWC,EAAYC,EAAqB,CAE5D,GAAIF,IAASG,EAAU,CACnB,IAAMC,EAAWH,GAAO,UAAY,CAAA,EAEpC,OAAO,MAAM,QAAQG,CAAQ,EAAIA,EAAW,CAACA,CAAQ,CACzD,CAGA,GAAI,OAAOJ,GAAS,WAChB,OAAIE,IAAQ,QAAaD,GAAO,MAAQ,OAAkB,IAAID,EAAKC,CAAK,EACjE,IAAID,EAAK,CAAE,GAAGC,EAAO,IAAK,OAAOC,CAAG,CAAC,CAAE,EAGlD,MAAM,IAAI,MACN,kDAAkD,CAE1D,CAEO,IAAMG,EAAON,EACPI,EAAW,OAAO,IAAI,iBAAiB",
|
|
6
|
+
"names": ["jsx", "type", "props", "key", "Fragment", "children", "jsxs"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a as z,b as B,c as D,d as E,e as F,f as G,g as H,h as I,i as J,j as K}from"./chunks/chunk-DHB4COFY.js";import{A as h,B as k,C as M,D as S,E as v,F as _,G as g,H as q,I as C,J as y,K as A,L as b,M as j,N as w}from"./chunks/chunk-2RIYH36X.js";import"./chunks/chunk-XAWE4EAK.js";function u(e,t){return{offset:e,part:t}}function x(e){return{duration:e,_stepper:()=>{let n=0;return{seek:r=>{n=r},advance:r=>(n+=r,n>=e)}}}}function d(...e){let t=0;return c(e.map(n=>{let r=u(t,n);return t+=n.duration,r}))}function l(...e){return c(e.map(t=>u(0,t)))}function c(e){let t=e.reduce((r,p)=>Math.max(r,p.offset+p.part.duration),0);return{duration:t,_stepper:()=>{let r=e.map(o=>o.part._stepper()),p=0,m=o=>{for(let a=0;a<e.length;a++){let{offset:s,part:f}=e[a],i=Math.min(Math.max(o-s,0),f.duration);r[a].seek(i)}};return{seek:o=>{p=o,m(o)},advance:o=>(p+=o,m(p),p>=t)}}}}export{F as MAX_FRACTION_DIGITS,E as NUMBER_NODE_FORMATS,z as NUMBER_PATTERNS,k as STAR_DEFAULT_POINTS,h as STAR_DEFAULT_RATIO,u as at,b as cameraOrbit,K as enterBudget,B as formatNumber,v as hasShapeOutline,x as hold,I as hostTextFamily,g as lerpColor3D,C as lerpCount,q as lerpFinite,J as niceStep,G as numberNodePattern,j as orbitPosition,w as orbitProps,D as patternFor,_ as resolveColor3D,d as sequence,H as setHostTextFamily,S as shapeOutline,M as shapeOutlinePixels,A as snapFlag,y as snapValue,l as together};
|
|
2
2
|
//# sourceMappingURL=component.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/tween/seekable.ts"
|
|
4
|
-
"sourcesContent": ["import { driveCommand, type Command } from \"./command\"\nimport type { Steppable, TweenStepper } from \"./stepper\"\n\n/**\n * Choreography that can be **asked** what it looks like at a time.\n *\n * A node's entrance is usually a stagger: markers landing one after another, a\n * caption following them, a legend after that. Written as a generator — `yield*\n * parallel(...)` over per-item `wait` + `to` — the offsets exist only while it\n * runs, so the only way to know what it looks like 0.4s in is to run it from\n * zero. That is what makes a chart scene fall back to replay-based scrubbing.\n *\n * The offsets are static, though. Nothing about a stagger needs to be discovered\n * by running it. {@link compose} keeps the same parts at the same offsets and\n * hands back something seekable, so a host can jump straight to a time.\n *\n * Each part writes to **its own node**, which is why this is not\n * `commandSequence
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["at", "offset", "part", "hold", "seconds", "elapsed", "s", "dt", "sequence", "parts", "cursor", "compose", "placed", "together", "
|
|
3
|
+
"sources": ["../../src/tween/seekable.ts"],
|
|
4
|
+
"sourcesContent": ["import { driveCommand, type Command } from \"./command\"\r\nimport type { Steppable, TweenStepper } from \"./stepper\"\r\n\r\n/**\r\n * Choreography that can be **asked** what it looks like at a time.\r\n *\r\n * A node's entrance is usually a stagger: markers landing one after another, a\r\n * caption following them, a legend after that. Written as a generator — `yield*\r\n * parallel(...)` over per-item `wait` + `to` — the offsets exist only while it\r\n * runs, so the only way to know what it looks like 0.4s in is to run it from\r\n * zero. That is what makes a chart scene fall back to replay-based scrubbing.\r\n *\r\n * The offsets are static, though. Nothing about a stagger needs to be discovered\r\n * by running it. {@link compose} keeps the same parts at the same offsets and\r\n * hands back something seekable, so a host can jump straight to a time.\r\n *\r\n * Each part writes to **its own node**, which is why this is not\r\n * `commandSequence`: that composes one node's props by\r\n * merging `Partial<P>`, and an axis entrance is a dozen nodes moving at once\r\n * with nothing to merge. Composing steppers instead lets each part write where\r\n * it already writes.\r\n */\r\n\r\n/** Something seekable that knows how long it runs. */\r\nexport interface Seekable extends Steppable {\r\n readonly duration: number\r\n}\r\n\r\n/** A part, and how far into the composite it starts. */\r\nexport interface Placed {\r\n offset: number\r\n part: Seekable\r\n}\r\n\r\n/** Sugar for {@link compose}: `at(0.2, node.to(...))`. */\r\nexport function at(offset: number, part: Seekable): Placed {\r\n return { offset, part }\r\n}\r\n\r\n/**\r\n * A part that writes nothing for `seconds` — the seekable `wait`.\r\n *\r\n * What the no-op branch of a command returns. A command's duration is the slot\r\n * the timeline lays out for it and the length its parallel siblings are timed\r\n * against, so a call that happens to have nothing to do still has to take its\r\n * time; returning something shorter would pull the rest of the scene forward.\r\n */\r\nexport function hold(seconds: number): Seekable {\r\n const makeStepper = (): TweenStepper => {\r\n let elapsed = 0\r\n return {\r\n seek: (s: number) => {\r\n elapsed = s\r\n },\r\n advance: (dt: number): boolean => {\r\n elapsed += dt\r\n return elapsed >= seconds\r\n },\r\n }\r\n }\r\n\r\n return {\r\n duration: seconds,\r\n _stepper: makeStepper,\r\n }\r\n}\r\n\r\n/** Run `parts` end to end, each starting where the previous one finished. */\r\nexport function sequence(...parts: Seekable[]): Seekable {\r\n let cursor = 0\r\n return compose(\r\n parts.map((part) => {\r\n const placed = at(cursor, part)\r\n cursor += part.duration\r\n return placed\r\n })\r\n )\r\n}\r\n\r\n/** Run `parts` together, all starting at the composite's own start. */\r\nexport function together(...parts: Seekable[]): Seekable {\r\n return compose(parts.map((part) => at(0, part)))\r\n}\r\n\r\n/**\r\n * A seekable `tween`: calls `apply(t)` with `t` running 0 → 1 over `seconds`.\r\n *\r\n * The escape hatch for state a `to` cannot reach — a plain field, an array\r\n * element, anything that is not one of the node's own reactive props. That is\r\n * most of what the chart commands were using `tween()` for, and `tween()` is a\r\n * generator, so it was also most of what kept them un-drivable.\r\n *\r\n * `apply` **must be a pure function of `t`**. It is called for any `t`, in any\r\n * order, more than once for the same value, and — unlike a generator's body — it\r\n * is not run once per frame in sequence. Accumulating into what it writes (`x +=\r\n * …`) rather than assigning from `t` is the one way to misuse this, and it will\r\n * look right playing forwards and drift the moment anything scrubs.\r\n */\r\nexport function drive(\r\n seconds: number,\r\n apply: (t: number) => void\r\n): Seekable {\r\n const at = (elapsed: number): void => {\r\n apply(seconds > 0 ? Math.min(Math.max(elapsed / seconds, 0), 1) : 1)\r\n }\r\n\r\n const makeStepper = (): TweenStepper => {\r\n let elapsed = 0\r\n return {\r\n seek: (s: number) => {\r\n elapsed = s\r\n at(s)\r\n },\r\n advance: (dt: number): boolean => {\r\n elapsed += dt\r\n at(elapsed)\r\n return elapsed >= seconds\r\n },\r\n }\r\n }\r\n\r\n return {\r\n duration: seconds,\r\n _stepper: makeStepper,\r\n }\r\n}\r\n\r\n/**\r\n * `part` as the {@link Command} a `@command()` method returns, which is what a\r\n * document's timeline evaluates: a `Seekable` has no `at`.\r\n *\r\n * `duration` is the slot the command was given. A part that ends sooner holds its\r\n * last frame for the rest of it, and one that runs longer is played faster, so\r\n * the command's end is always the part's end — the state the next command on the\r\n * node is built against. The part is prepared here, when the command is built.\r\n */\r\nexport function asCommand(\r\n part: Seekable,\r\n duration: number = part.duration\r\n): Command<Record<string, never>> {\r\n const stepper = part._stepper()\r\n const span = Math.max(duration, part.duration)\r\n return driveCommand(duration, (t) => stepper.seek(t * span))\r\n}\r\n\r\n/**\r\n * Combine placed parts into one seekable whole.\r\n *\r\n * Every part is seeked on every evaluation, not just the ones that have started:\r\n * a part still ahead of the playhead is held at its own zero, which is the state\r\n * it was prepared against and therefore the state that should precede it.\r\n * Skipping it would leave whatever a *later* evaluation wrote sitting there when\r\n * the playhead came back.\r\n */\r\nexport function compose(parts: Placed[]): Seekable {\r\n const duration = parts.reduce(\r\n (max, p) => Math.max(max, p.offset + p.part.duration),\r\n 0\r\n )\r\n\r\n const makeStepper = (): TweenStepper => {\r\n // Prepared once. Preparing is what snapshots each part's `from` off its live\r\n // node, so doing it per seek would make the answer depend on where the\r\n // playhead came from rather than on the time asked for.\r\n const steppers = parts.map((p) => p.part._stepper())\r\n let elapsed = 0\r\n\r\n const applyAt = (seconds: number): void => {\r\n for (let i = 0; i < parts.length; i++) {\r\n const { offset, part } = parts[i]\r\n const local = Math.min(Math.max(seconds - offset, 0), part.duration)\r\n steppers[i].seek(local)\r\n }\r\n }\r\n\r\n return {\r\n seek: (seconds: number) => {\r\n elapsed = seconds\r\n applyAt(seconds)\r\n },\r\n advance: (dt: number): boolean => {\r\n elapsed += dt\r\n applyAt(elapsed)\r\n return elapsed >= duration\r\n },\r\n }\r\n }\r\n\r\n return {\r\n duration,\r\n _stepper: makeStepper,\r\n }\r\n}\r\n"],
|
|
5
|
+
"mappings": "2RAmCM,SAAUA,EAAGC,EAAgBC,EAAc,CAC/C,MAAO,CAAE,OAAAD,EAAQ,KAAAC,CAAI,CACvB,CAUM,SAAUC,EAAKC,EAAe,CAclC,MAAO,CACL,SAAUA,EACV,SAfkB,IAAmB,CACrC,IAAIC,EAAU,EACd,MAAO,CACL,KAAOC,GAAa,CAClBD,EAAUC,CACZ,EACA,QAAUC,IACRF,GAAWE,EACJF,GAAWD,GAGxB,EAMF,CAGM,SAAUI,KAAYC,EAAiB,CAC3C,IAAIC,EAAS,EACb,OAAOC,EACLF,EAAM,IAAKP,GAAQ,CACjB,IAAMU,EAASZ,EAAGU,EAAQR,CAAI,EAC9B,OAAAQ,GAAUR,EAAK,SACRU,CACT,CAAC,CAAC,CAEN,CAGM,SAAUC,KAAYJ,EAAiB,CAC3C,OAAOE,EAAQF,EAAM,IAAKP,GAASF,EAAG,EAAGE,CAAI,CAAC,CAAC,CACjD,CAwEM,SAAUY,EAAQC,EAAe,CACrC,IAAMC,EAAWD,EAAM,OACrB,CAACE,EAAK,IAAM,KAAK,IAAIA,EAAK,EAAE,OAAS,EAAE,KAAK,QAAQ,EACpD,CAAC,EA+BH,MAAO,CACL,SAAAD,EACA,SA9BkB,IAAmB,CAIrC,IAAME,EAAWH,EAAM,IAAKI,GAAMA,EAAE,KAAK,SAAQ,CAAE,EAC/CC,EAAU,EAERC,EAAWC,GAAyB,CACxC,QAASC,EAAI,EAAGA,EAAIR,EAAM,OAAQQ,IAAK,CACrC,GAAM,CAAE,OAAAC,EAAQ,KAAAC,CAAI,EAAKV,EAAMQ,CAAC,EAC1BG,EAAQ,KAAK,IAAI,KAAK,IAAIJ,EAAUE,EAAQ,CAAC,EAAGC,EAAK,QAAQ,EACnEP,EAASK,CAAC,EAAE,KAAKG,CAAK,CACxB,CACF,EAEA,MAAO,CACL,KAAOJ,GAAmB,CACxBF,EAAUE,EACVD,EAAQC,CAAO,CACjB,EACA,QAAUK,IACRP,GAAWO,EACXN,EAAQD,CAAO,EACRA,GAAWJ,GAGxB,EAMF",
|
|
6
|
+
"names": ["at", "offset", "part", "hold", "seconds", "elapsed", "s", "dt", "sequence", "parts", "cursor", "compose", "placed", "together", "compose", "parts", "duration", "max", "steppers", "p", "elapsed", "applyAt", "seconds", "i", "offset", "part", "local", "dt"]
|
|
7
7
|
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Id as o,Ie as c,Jd as r,Md as e,Ne as l,Qd as t,Rd as m,Wd as p,ce as x,ge as a,oe as f,pe as s,ve as n,we as i,xe as d}from"./chunks/chunk-EJDPYDQI.js";import"./chunks/chunk-2RIYH36X.js";import"./chunks/chunk-XAWE4EAK.js";export{a as Aim,e as Corners,t as Flow,c as Material,p as Paint,x as Shapes,f as TextLayout,n as TextStyle,r as Types,l as View3D,m as commandsFor,o as component2d,d as component3d,i as componentAudio,s as provides};
|
|
2
|
+
//# sourceMappingURL=experimental.js.map
|
package/dist/browser/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{$ as be,$a as Wt,$b as Wr,$c as zs,$d as Bo,$e as zi,$f as p,A as se,Aa as st,Ab as hr,Ac as us,Ad as wo,Ae as wi,Af as ua,Ag as cn,B as oe,Ba as ot,Bb as fr,Bc as ws,Bd as yo,Be as yi,Bf as wa,Bg as mn,C as ie,Ca as it,Cb as cr,Cc as ys,Cd as _o,Ce as _i,Cf as ya,D as ae,Da as at,Db as mr,Dc as _s,Dd as Ao,De as Ai,Df as _a,E as ne,Ea as nt,Eb as lr,Ec as As,Ed as Fo,Ee as Fi,Ef as Aa,F as de,Fa as dt,Fb as gr,Fc as Fs,Fd as Po,Fe as Pi,Ff as Fa,G as pe,Ga as pt,Gb as xr,Gc as Ps,Gd as Lo,Ge as Li,Gf as Pa,H as he,Ha as gt,Hb as ur,Hc as Ls,Hd as So,He as Si,Hf as La,I as fe,Ia as xt,Ib as wr,Ic as Ss,Id as No,Ie as Ni,If as Sa,J as ce,Ja as ut,Jb as yr,Jc as Ns,Jd as Eo,Je as Ei,Jf as x,K as me,Ka as wt,Kb as _r,Kc as Es,Kd as Mo,Ke as Mi,Kf as u,L as le,La as yt,Lb as Ar,Lc as Ms,Ld as To,Le as Ti,Lf as Na,M as ge,Ma as _t,Mb as Fr,Mc as Ts,Md as bo,Me as bi,Mf as Ea,N as xe,Na as At,Nb as Pr,Nc as bs,Nd as Do,Ne as Di,Nf as Ma,O as ue,Oa as Lt,Ob as Lr,Oc as Ds,Od as vo,Oe as vi,Of as Ta,P as we,Pa as St,Pb as Sr,Pc as vs,Pd as Uo,Pe as Ui,Pf as ba,Q as ye,Qa as Nt,Qb as Nr,Qc as Us,Qd as Vo,Qe as Vi,Qf as Da,R as _e,Ra as Et,Rb as Er,Rc as Vs,Rd as Co,Re as Ci,Rf as va,S as Ae,Sa as Mt,Sb as Mr,Sc as Cs,Sd as Io,Se as n,Sf as Ua,T as Fe,Ta as Tt,Tb as Tr,Tc as Is,Td as Wo,Te as Ii,Tf as Va,U as Pe,Ua as bt,Ub as br,Uc as Ws,Ud as Ko,Ue as Wi,Uf as Ca,V as Le,Va as Dt,Vb as Dr,Vc as Ks,Vd as Ro,Ve as Ki,Vf as Ia,W as Se,Wa as vt,Wb as vr,Wc as Rs,Wd as jo,We as Ri,Wf as Wa,X as Ne,Xa as Ut,Xb as Ur,Xc as js,Xd as Yo,Xe as ji,Xf as Ka,Y as Ee,Ya as Vt,Yb as Vr,Yc as Ys,Yd as $o,Ye as Yi,Yf as Ra,Z as Me,Za as Ct,Zb as Cr,Zc as $s,Zd as qo,Ze as $i,Zf as ja,_ as Te,_a as It,_b as Ir,_c as qs,_d as zo,_e as qi,_f as d,a as L,aa as De,ab as Kt,ac as Kr,ad as Bs,ae as Go,af as Bi,ag as Ya,b as S,ba as ve,bb as Rt,bc as Rr,bd as Gs,be as Ho,bf as Gi,bg as $a,c as N,ca as Ue,cb as jt,cc as jr,cd as Hs,ce as Jo,cf as Hi,cg as qa,d as T,da as Ve,db as Yt,dc as Yr,dd as Js,de as Qo,df as Ji,dg as za,e as b,ea as Ce,eb as $t,ec as $r,ed as Qs,ee as Xo,ef as Qi,eg as Ba,f as D,fa as Ie,fb as qt,fc as qr,fd as Xs,fe as Zo,ff as Xi,fg as Ga,g as W,ga as We,gb as zt,gc as zr,gd as Zs,ge as ko,gf as Zi,gg as Ha,h as K,ha as Ke,hb as Bt,hc as m,hd as ks,he as Oo,hf as ki,hg as Ja,i as R,ia as Re,ib as Gt,ic as Br,id as Os,ie as ei,if as Oi,ig as Qa,j,ja as je,jb as Ht,jc as rs,jd as eo,je as ti,jf as ea,jg as Xa,k as Y,ka as Ye,kb as Jt,kc as ss,kd as to,ke as ri,kf as ta,kg as Za,l as $,la as $e,lb as Qt,lc as os,ld as ro,le as si,lf as ra,lg as ka,m as q,ma as qe,mb as Xt,mc as is,md as so,me as oi,mf as sa,mg as Oa,n as z,na as ze,nb as Zt,nc as l,nd as oo,ne as ii,nf as oa,ng as en,o as B,oa as Be,ob as kt,oc as as,od as io,oe as ai,of as ia,og as tn,p as G,pa as Ge,pb as Ot,pc as ns,pd as ao,pe as ni,pf as aa,pg as rn,q as H,qa as He,qb as er,qc as ds,qd as no,qe as di,qf as na,qg as w,r as J,ra as Je,rb as tr,rc as ps,rd as po,re as pi,rf as da,rg as sn,s as Q,sa as Qe,sb as rr,sc as g,sd as ho,se as hi,sf as pa,sg as y,t as X,ta as Xe,tb as sr,tc as hs,td as fo,te as fi,tf as ha,tg as _,u as Z,ua as Ze,ub as or,uc as fs,ud as co,ue as ci,uf as fa,ug as h,v as k,va as ke,vb as ir,vc as cs,vd as mo,ve as mi,vf as ca,vg as on,w as O,wa as Oe,wb as ar,wc as ms,wd as lo,we as li,wf as ma,wg as an,x as ee,xa as et,xb as nr,xc as ls,xd as go,xe as gi,xf as la,xg as nn,y as te,ya as tt,yb as dr,yc as gs,yd as xo,ye as xi,yf as ga,yg as dn,z as re,za as rt,zb as pr,zc as xs,zd as uo,ze as ui,zf as xa,zg as fn}from"./chunks/chunk-TGDX2SS2.js";import{U as pn,V as hn,a as E,b as M,c as v,d as U,e as V,f as C,g as I,h as ht,i as ft,j as ct,k as mt,l as lt,m as Ft,n as Pt,o as Gr,p as Hr,q as Jr,r as Qr,s as Xr,t as Zr,u as kr,v as Or,w as es,x as ts}from"./chunks/chunk-KJXGRHOL.js";import{a as ln,b as gn,c as xn}from"./chunks/chunk-2T3HXSC2.js";var wn=p,yn=d;var A={width:1920,height:1080},F=60,P={image:{},video:{},audio:{},font:{}},f=class{platform;viewport;fps;constructor(e,t={}){this.platform=e,this._registry=new n({nodes:t.nodes,shaders:t.shaders,lerps:t.lerps,dynamicNodes:t.dynamicNodes}),this.viewport=t.viewport??A,this.fps=t.fps??F,this._manifest=t.manifest??P,this._exporter=e.createExporter()}get manifest(){return this._manifest}get exporter(){return this._exporter}setManifest(e){this._manifest=e;for(let t of this._manifestListeners)t(e)}open(e){return new h(this,e)}knows(e){return this._registry.hasNode(e)}get registry(){return this._registry}async registerNode(e,t){return typeof e=="string"?this._registry.addNodeFromSource(e,t):(this._registry.addNode(e,t),e)}registerShader(e,t,r){return this._registry.addShader(e,t,r)}dispose(){this._manifestListeners.clear(),this.platform.dispose?.()}_registry;_manifest;_exporter;_manifestListeners=new Set;_onManifestChange(e){return this._manifestListeners.add(e),()=>this._manifestListeners.delete(e)}};var i=class{get schedulesAudio(){return!0}setMuted(e){}setVolume(e){}dispose(){this.stop()}};var a=class{catalog;viewport;constructor(e,t){this.catalog=e,this.viewport=t}setCatalog(e){this.catalog=e}inFlightLoads=new Map;cachedAssets=new Set;isLoaded(e){return this.cachedAssets.has(e)}async loadAsset(e,t){let r=this.inFlightLoads.get(e);if(r)return r;if(this.cachedAssets.has(e))return;let s=this.runLoad(e,t);this.inFlightLoads.set(e,s);try{await s}finally{this.inFlightLoads.delete(e)}}async runLoad(e,t){let r=!0;switch(t.type){case"image":await this.loadImage(e);break;case"video":await this.loadVideo(e,t.startFrame,t.endFrame,t.trimStart,t.trimEnd);break;case"font":{let{fontFamily:s,fontWeight:c}=this.parseFontKey(e);r=await this.loadFont(e,s,c);break}case"audio":break;case"loader":throw new Error("Loader records must not be routed through StorageAdapter.loadAsset");default:{let s=t;throw new Error(`Unsupported asset type: ${s.type}`)}}r&&this.cachedAssets.add(e)}parseFontKey(e){let[t,r]=e.split("@"),s=r?parseInt(r,10):400;return{fontFamily:t||e,fontWeight:isNaN(s)?400:s}}async warmPendingVideo(){return!1}setDecodePolicy(e){}getDecodePolicy(){return"interactive"}hasPendingDecodes(){return!1}async warmPendingDecodes(){return this.warmPendingVideo()}hasPendingUpgrades(){return!1}async warmPendingUpgrades(){return!1}setPlaying(e){}dispose(){this.inFlightLoads.clear(),this.cachedAssets.clear()}};function In(o){return typeof o?._stepper=="function"}export{G as ASCII_CHARSETS,Ii as AUDIO_ROOT_ID,yo as AUTOFIT_PROBE_SIZE,Se as AdjustmentChain,Ee as Adjustments,Oo as AmbientLight3D,oi as AreaLight3D,u as AssetDeclaration,x as AssetManager,g as AssetNotLoadedError,p as AssetTimeline,Mo as AudioBus,Yt as AudioFilterChain,Ht as AudioFilterRegistry,$t as AudioFilters,i as AudioSink,me as BLEND_MODES_LIST,zs as BooleanGroup,ao as BoundsShape,Uo as Box3D,as as COMMAND_META,$s as Camera,ii as Camera3D,js as Canvas2D,di as Canvas3D,Gi as CanvasRenderContext2D,$o as Capsule3D,jo as Circle3D,hs as Clip,Ca as ClipInstance,Wa as ClipStore,Wo as Cone3D,is as ContextMap,Tt as Curve,Io as Cylinder3D,Lt as DEFAULT_EASE,F as DEFAULT_FPS,Ia as DEFAULT_PRECOMP_BUDGET_MS,A as DEFAULT_VIEWPORT,Re as DRAWABLE_KINDS,Qs as DataToken,ks as DefaultTextStyle,ti as DirectionalLight3D,xo as DotGrid,Y as EFFECT_OPTION_KEYS,P as EMPTY_MANIFEST,ht as EMPTY_PATH_DATA,mr as EMPTY_TEXT_STYLE,ae as EffectChain,ne as Effects,to as Ellipse,f as Engine,ni as Environment3D,Pi as ExpressionError,zo as Extrude3D,xe as FillChain,ue as Fills,ai as Fog3D,xn as Fragment,Qi as Geo,Ie as Graphics2D,Ye as Graphics3D,wo as GridPattern,Do as Group3D,ei as HemisphereLight3D,fo as Hexagon,Pr as IDENTITY_QUATERNION,Te as ImageFilters,Ho as Instances3D,Bo as Lathe3D,ro as Line,Qo as Line3D,go as LineGrid,$r as MAX_SHADER_PROPERTIES,qr as MAX_SHADER_SOURCE,ye as MINOR_WIDTH_RATIO,Fa as MUTABLE_MATERIAL_KEYS,w as ManifestAssetCatalog,Bs as MaskGroup,Xi as Mat,vo as Mesh3D,Zo as Model3D,ko as ModelView3D,Ui as NODE_META,sr as NO_PROJECTION_3D,ps as Node,fs as Node2D,bo as Node3D,Cs as NodeAudio,le as NodeBlendModes,Ji as NullRenderContext,So as NumberNode,co as Octagon,qs as OrbitCamera,ft as PATH_UNIT_EXTENT,ct as PATH_UNIT_HALF,bs as PaintNode,so as Path,Ce as PathBuilder,lo as PathShape,ho as Pentagon,Co as Plane3D,sn as Playback,tn as PlaybackController,ri as PointLight3D,Jo as Points3D,oo as Polygon,io as Polygram,qo as Polyhedron3D,wn as Precomp,m as PropSlot,Gs as Provider,mi as ROOT_NODE_ID,mn as Random,eo as Rect,n as Registry,$e as RenderContext3D,Po as RichText,po as RightTriangle,Yo as Ring3D,No as RotatedBox,Ra as SETTLE_PASSES,ms as SHAPE_ALIGNMENT_KEYS,Pa as STRUCTURAL_MATERIAL_KEYS,ze as Scene3D,Ki as SceneTimeline,cn as SeedGenerator,Xs as SeedToken,h as Session,Ys as ShapeNode,zt as Sound,To as SoundNode,Vo as Sphere3D,si as SpotLight3D,Xo as Sprite3D,mo as Star,Ka as StateEvaluator,_ as SteppedClock,a as StorageAdapter,st as TEXTURE_KEYS,cr as TEXT_SHAPING_KEYS,fr as TEXT_STYLE_KEYS,Zi as Tex,Lo as Text,Fo as TextBase,_o as TextSelection,Hs as TextStyleToken,Zs as ThemeProvider,Js as ThemeToken,y as Ticker,Ko as Torus3D,Ro as TorusKnot3D,no as Triangle,Go as Tube3D,mt as UNIT_PATH_BOX,Eo as Video,Ne as VideoAdjustmentChain,Me as VideoAdjustments,be as VideoFilters,uo as ViewportPattern,Ma as __resetSchedulerForTests,ve as alignmentOps,Wr as alignmentProperty,Vs as applyEditorStates,pa as applyMatrix4,Os as applyTextDefaults,Ot as applyToPoint,Fi as asProjectDocument,vi as assertValidDocument,Di as assertValidProjectDocument,Jt as audioFiltersOps,Wt as audioParamOps,fe as backdropEffects,Is as busPathOf,Ws as busPathTo,Gt as busStopKey,tr as cameraMatrix,nt as canLerpFill,Xe as canvas3DResourceKey,tt as canvas3DResourceLoader,Hi as caretCount,Oa as caretOffsetAt,en as caretRangeQuads,ua as centeredBox3,Ft as clamp,Pt as clamp01,Za as collectBoxes,Ya as collectBoxes3D,B as colorOps,vr as colorProperty,ds as command,ts as commandParallel,es as commandSequence,yi as commandSpan,ha as compose4,Ps as containsClip,Ls as containsOps,te as coordsMatrix,T as cornerRadiusOps,Ur as cornerRadiusProperty,b as cornerStyleOps,Vr as cornerStyleProperty,ya as corners3,d as createAssetTimelineProfile,os as createContext,yn as createPrecompProfile,fn as createRef,Mi as curveEase,Ni as curveSegmentT,Si as curveSegments,sa as cylinderRadii,O as describeUniforms,Ts as distanceToSegment,_i as documentDuration,kr as driveCommand,Nt as easeIn,Mt as easeInOut,Et as easeOut,se as effectSurface,gi as effectiveSpan,ui as effectiveSpanIn,xi as effectiveSpans,pe as effectsOps,Dr as effectsProperty,hn as enterBudget,Kt as equalsParam,Fr as euler3Ops,ia as evaluateParametric,Oi as evaluateRoundedBox,Li as expressionOps,ir as facesAway,vt as fadeIn,Ut as fadeOut,pt as fillOps,Mr as fillProperty,Pe as filterSurface,Bt as filtersKey,Ks as findBusById,ur as flowOps,it as forEachTexture3D,ce as foregroundShaderEffects,Ua as frameTime,dn as generateList,Aa as geometryBounds3D,ge as getBlendModeHash,ns as getCommandMeta,Ci as getNodeDescriptor,l as getPropSlot,gr as getPropertyMeta,C as getTypographyPreset,rt as hasCanvas3DBackend,Ae as hasFilter,or as hasProjection3D,ci as hasTimeline,Dt as hold,Xt as identity,aa as identity4,Ue as insetsOps,Ir as insetsProperty,Rt as integrateSpeedToSceneTime,er as invert,da as invert4,fi as isAudioDocument,he as isBackdropEffect,Xr as isCommand,hi as isCompositionDocument,Vt as isCurve,Ge as isDataTexture3D,Ei as isEaseCurve,Yr as isKnownShaderProperty,La as isOrbitCamera3D,rn as isParentNode,_e as isPixelFilter,Ai as isProjectDocument,Qt as isProjective,In as isSteppable,pi as isStillDocument,Ri as isStyleOnlySegment,He as isSurfaceTexture3D,ot as isTextureLike,N as isUniformCorners,ln as jsx,gn as jsxs,z as lerpColor,D as lerpCornerScalarStyle,S as lerpCorners,oe as lerpEffect,Ar as lerpEuler3,dt as lerpFill,Fe as lerpFilter,Le as lerpFilterArray,nr as lerpLookAt,E as lerpNumber,It as lerpParam,M as lerpPerspective,Z as lerpUniformRecord,Q as lerpUniformValue,v as lerpVector2,yr as lerpVector3,St as linear,fa as lookAtRotation4,Ke as looksLikeAssetPath,Or as loopCommand,Gr as loopPasses,Qr as loopPhase,Hr as loopRepeats,Jr as loopSpan,Wi as loweredAudioDocument,Zr as makeCommand,kt as multiply,na as multiply4,Ms as nearPolyline,pn as niceStep,Vi as node,Ja as nodeAt,Ga as nodeBox,Ha as nodeBoxAt,rr as nodeLocalMatrix,Ds as nodePath,ar as nodeProjectedMatrix,li as nodeSpan,ka as nodeTextLayout,Sr as normalizeQuaternion,Ao as normalizeRanges,zr as normalizeShaderPack,J as normalizeUniforms,Na as now,xa as orthographic4,Ba as parentPlanePointAt,an as parseCSV,Ze as parseCanvas3DResourceKey,I as parseColor,nn as parseData,re as parseShaderChildren,lt as pathOps,Cr as pathProperty,ga as perspective4,Xa as pickNode,qa as pickNode3D,ba as placeTracks,Es as pointInPolygon,Ss as polygonVertices,Ns as polygramVertices,ss as prepareNumericCellTween,rs as prepareNumericTween,Us as primeMotionTree,$a as projectNode3D,Qa as projectNode3DAt,xr as property,Nr as quaternionFromEuler,Er as quaternionOps,bt as ramp,Oe as registerCanvas3DResourceLoader,ke as registerCanvas3DWarmup,za as renderMatrix,ja as renderSettled,ji as requireFontFamily,H as resolveAsciiCharset,qt as resolveAudioFilters,oa as resolveBevel3D,Sa as resolveCameraPlacement,De as resolveChainAdjustments,de as resolveChainEffects,we as resolveChainFill,L as resolveCorners,W as resolveEffectAxis,R as resolveEffectColor,at as resolveFill,We as resolveFill3D,je as resolveMaterialShorthand3D,q as resolveMotionBlurAlignment,us as resolvePivotPosition,on as resolveProjectDocument,ie as resolveShaderProperties,gt as resolveShadow,ra as resolveShadowOptions3D,qe as resolveShadows3D,xs as resolveShapeAlignment,cs as resolveShapePivot,_t as resolveStroke,ut as resolveStrokeAlign,wt as resolveStrokeCap,yt as resolveStrokeJoin,Be as resolveSurfaceSource,Je as resolveTexture3D,wr as resolveVector3,Ve as resolveVideoTimestamp,la as rotationOf4,K as sameEffectAxis,j as sameEffectColor,vs as sampleTree,ki as segmentsOf,V as setTheme,ea as shadowCasts,xt as shadowOps,br as shadowProperty,ta as shadowReceives,pr as size2DOps,hr as sizeInputOps,Rr as sizeProperty,Lr as slerpQuaternion,jt as sourceTimeAtSceneElapsed,dr as space3dOps,Va as spanFrames,va as spansCovering,Ct as staticValue,gs as stripShapeAlignmentKeys,At as strokeOps,Tr as strokeProperty,Rs as structuralPathOf,lr as textOps,jr as textProperty,Qe as texture3DSource,Br as toCommand,zi as toPathString,Da as totalFramesOf,Ta as trackFrameCount,_a as transformBox3,ca as transformMatrix4,Zt as translation,ma as translation4,k as uniformRecordsEqual,X as uniformValuesEqual,wa as unionBox3,wi as untimed,Ti as validateDocument,bi as validateProjectDocument,ls as validateShapeAlignmentProps,U as vector2Ops,Kr as vector2Property,_r as vector3Ops,et as warmCanvas3D,$ as withEffectOptions,ys as withEllipseDescriptor,Fs as withLineDescriptor,Bi as withPathDescriptor,_s as withPolygonDescriptor,As as withPolygramDescriptor,ws as withRectDescriptor,$i as withRichTextDescriptor,Yi as withTextDescriptor,qi as withTransformDescriptor,ee as writeUniforms,Ea as yieldToScheduler};
|
|
1
|
+
import{$ as ei,$a as en,$b as C,A as _s,Aa as Si,Ab as En,Ac as Pa,B as Ts,Ba as Mi,Bb as Sn,Bc as Ta,C as Ls,Ca as bi,Cb as Mn,Cc as La,D as Fs,Da as Ni,Db as bn,Dc as Fa,E as Ds,Ea as Di,Eb as Nn,Ec as Ea,F as Cs,Fa as Ci,Fb as Dn,Fc as Sa,G as Os,Ga as Oi,Gb as Cn,Gc as Ma,H as Us,Ha as Ui,Hb as On,Hc as ba,I as vs,Ia as vi,Ib as Un,Ic as Na,J as $s,Ja as $i,Jb as vn,Jc as Da,K as js,Ka as ji,Kb as $n,Kc as Ca,L as Vs,La as Vi,Lb as jn,Lc as Oa,M as Is,Ma as Ii,Mb as Vn,Mc as Ua,N as Rs,Na as Ri,Nb as In,Nc as va,O as Ws,Oa as Wi,Ob as Rn,Oc as $a,P as ks,Pa as ki,Pb as Wn,Pc as O,Q as Ks,Qa as Ki,Qb as kn,Qc as ja,R as Ys,Ra as Yi,Rb as Kn,Rc as U,S as qs,Sa as qi,Sb as Yn,Sc as v,T as zs,Ta as zi,Tb as qn,Tc as T,U as Bs,Ua as Bi,Ub as zn,Uc as Va,V as Gs,Va as Gi,Vb as Bn,Vc as Ia,W as Hs,Wa as Hi,Wb as Gn,Wc as Ra,X as Js,Xa as Ji,Xb as Hn,Xc as Wa,Y as Qs,Ya as Qi,Yb as Jn,Yc as Ya,Z as Xs,Za as Xi,Zb as Qn,Zc as qa,_ as Zs,_a as Zi,_b as D,_c as za,a as Ee,aa as ti,ab as tn,ac as Xn,b as Se,ba as ri,bb as rn,bc as Zn,c as Me,ca as oi,cb as on,cc as ea,d as sr,da as si,db as sn,dc as ta,e as ir,ea as ii,eb as nn,ec as ra,f as nr,fa as ni,fb as y,fc as oa,g as eo,ga as ai,gb as an,gc as sa,h as to,ha as pi,hb as pn,hc as ia,i as ro,ia as fi,ib as fn,ic as na,j as oo,ja as di,jb as dn,jc as aa,k as zo,ka as ci,kb as cn,kc as pa,l as Bo,la as mi,lb as mn,lc as fa,m as Go,ma as hi,mb as hn,mc as da,n as Ho,na as li,nb as ln,nc as ca,o as Jo,oa as gi,ob as _,oc as ma,p as rs,pa as xi,pb as gn,pc as ha,q as as,qa as ui,qb as xn,qc as la,r as ps,ra as wi,rb as un,rc as ga,s as fs,sa as yi,sb as wn,sc as A,t as ds,ta as _i,tb as yn,tc as P,u as cs,ua as Ai,ub as _n,uc as xa,v as ms,va as Pi,vb as An,vc as ua,w as hs,wa as Ti,wb as Pn,wc as wa,x as ls,xa as Li,xb as Tn,xc as ya,y as gs,ya as Fi,yb as Ln,yc as _a,z as ys,za as Ei,zb as Fn,zc as Aa}from"./chunks/chunk-DDJN3QII.js";import{$ as qe,$a as zt,$b as kr,$c as jo,A as xe,Aa as xt,Ab as yr,Ac as N,Ba as ut,Bb as _r,Bd as Es,C as ue,Ca as wt,Cb as Ar,Cd as Ss,D as we,Dc as c,Dd as Ms,E as ye,Ea as yt,Ec as w,F as _e,Fb as Pr,Fc as Po,Fd as bs,G as Ae,Ga as _t,Gb as Tr,Gc as To,Gd as Ns,H as Pe,Ha as At,Hb as Lr,Hc as m,I as Te,Ib as Fr,J as Le,Ja as Pt,Jb as Er,Jc as Lo,K as Fe,Ka as Mt,Kb as Sr,L as be,La as bt,Lb as Mr,M as Ne,Ma as Nt,Mb as d,N as De,Na as Dt,Nb as u,O as Ce,Oa as Ct,Ob as br,P as Oe,Pa as Ot,Pb as Nr,Pc as Fo,Q as Ue,Qa as Ut,Qb as Dr,Qc as Eo,R as ve,Ra as vt,Rb as Cr,Rc as So,S as $e,Sa as $t,Sb as Or,Sc as Mo,T as je,Ta as jt,Tb as Ur,Tc as bo,U as Ve,Ub as vr,Uc as No,V as Ie,Va as Rt,Vb as $r,Vc as Do,W as Re,Wa as Wt,Wb as jr,Wc as Co,X as We,Xa as kt,Xb as Vr,Xc as Oo,Y as ke,Ya as Kt,Yb as Ir,Yc as Uo,Z as Ke,Za as Yt,Zb as Rr,Zc as vo,_ as Ye,_a as qt,_b as Wr,_c as $o,a as j,aa as ze,ab as Bt,ac as Kr,ad as Vo,b as V,ba as Be,bb as Gt,bc as Yr,bd as Io,c as I,cb as Ht,cc as qr,cd as Ro,d as k,da as Ge,db as Jt,dc as zr,dd as Wo,e as K,ea as He,eb as Qt,ec as Br,ed as ko,f as Y,fa as Je,fc as Gr,fd as Ko,g as J,ga as Qe,gb as Xt,gc as Hr,gd as Yo,h as Q,ha as Xe,hb as Zt,hc as Jr,hd as qo,i as X,ia as Ze,ib as er,id as Qo,j as Z,ja as et,jb as g,jc as Qr,jd as Xo,k as ee,ka as tt,kb as x,kc as Xr,kd as Zo,l as te,la as rt,lb as tr,lc as Zr,ld as es,m as re,mb as rr,md as ts,n as oe,na as ot,nb as or,nc as b,nd as os,o as se,oa as st,ob as ar,od as ss,p as ie,pa as it,pb as pr,pd as is,q as ne,qa as nt,qb as fr,qd as ns,r as ae,ra as at,rb as dr,rd as xs,s as pe,sa as pt,sb as cr,sd as us,t as fe,ta as ft,tb as mr,td as ws,u as de,ua as dt,ub as hr,v as ce,va as ct,vb as lr,vc as so,w as me,wa as mt,wb as gr,wc as wo,x as he,xa as ht,xb as xr,xc as yo,y as le,ya as lt,yb as ur,yc as _o,yd as As,z as ge,za as gt,zb as wr,zc as Ao,zd as Ps}from"./chunks/chunk-EJDPYDQI.js";import{i as ka,j as Ka}from"./chunks/chunk-DHB4COFY.js";import{a as R,b as W,c as q,d as z,e as B,f as G,g as H,h as Tt,i as Lt,j as Ft,k as Et,l as St,m as Vt,n as It,o as io,p as no,q as ao,r as po,s as fo,t as co,u as mo,v as ho,w as lo,x as go,y as xo,z as uo}from"./chunks/chunk-2RIYH36X.js";import{a as Ba,b as Ga,c as Ha}from"./chunks/chunk-SFNJRPBV.js";import"./chunks/chunk-XAWE4EAK.js";function Xa(...o){return function(e){let t=e.prototype,r=Object.create(Object.getPrototypeOf(t)),s=u(r),n=w(r);for(let i of o){if(L(t,d,i)||L(t,c,i))throw new Error(`${e.name} both declares and withdraws "${i}".`);let a=s.find(f=>f.key===i),p=n.find(f=>f.key===i);if(!a&&!p)throw new Error(`${e.name} withdraws "${i}", which it does not inherit.`);a&&F(t,d).push({...a,withdrawn:!0}),p&&F(t,c).push({...p,withdrawn:!0})}return e}}function L(o,e,t){return Object.prototype.hasOwnProperty.call(o,e)?o[e].some(r=>r.key===t&&!r.withdrawn):!1}function F(o,e){return Object.prototype.hasOwnProperty.call(o,e)||(o[e]=[]),o[e]}var tp=P,rp=A;var S={width:1920,height:1080},M=60,np={viewport:S,fps:M},$={image:{},video:{},audio:{},font:{}},E=class{platform;viewport;fps;constructor(e,t={}){this.platform=e,this._registry=new y({nodes:t.nodes,shaders:t.shaders,lerps:t.lerps,dynamicNodes:t.dynamicNodes}),this.viewport=t.viewport??S,this.fps=t.fps??M,this._manifest=t.manifest??$,this._exporter=e.createExporter()}get manifest(){return this._manifest}get exporter(){return this._exporter}setManifest(e){this._manifest=e;for(let t of this._manifestListeners)t(e)}open(e){return new T(this,e)}knows(e){return this._registry.hasNode(e)}get registry(){return this._registry}async registerNode(e,t){return typeof e=="string"?this._registry.addNodeFromSource(e,t):(this._registry.addNode(e,t),e)}registerShader(e,t,r){return this._registry.addShader(e,t,r)}dispose(){this._manifestListeners.clear(),this.platform.dispose?.()}_registry;_manifest;_exporter;_manifestListeners=new Set;_onManifestChange(e){return this._manifestListeners.add(e),()=>this._manifestListeners.delete(e)}};var h=class{get schedulesAudio(){return!0}setMuted(e){}setVolume(e){}dispose(){this.stop()}};var l=class{catalog;viewport;constructor(e,t){this.catalog=e,this.viewport=t}setCatalog(e){this.catalog=e}inFlightLoads=new Map;cachedAssets=new Set;isLoaded(e){return this.cachedAssets.has(e)}async loadAsset(e,t){let r=this.inFlightLoads.get(e);if(r)return r;if(this.cachedAssets.has(e))return;let s=this.runLoad(e,t);this.inFlightLoads.set(e,s);try{await s}finally{this.inFlightLoads.delete(e)}}async runLoad(e,t){let r=!0;switch(t.type){case"image":await this.loadImage(e);break;case"video":await this.loadVideo(e,t.startFrame,t.endFrame,t.trimStart,t.trimEnd);break;case"font":{let{fontFamily:s,fontWeight:n}=this.parseFontKey(e);if(r=await this.loadFont(e,s,n),!r&&this.getDecodePolicy()==="exact")throw new m("font",s,`The manifest has no font entry for "${s}", so this frame would be shaped against the fallback face and differ from the one drawn once it is described. Add the family to the manifest's font record.`);break}case"audio":break;case"loader":throw new Error("Loader records must not be routed through StorageAdapter.loadAsset");default:{let s=t;throw new Error(`Unsupported asset type: ${s.type}`)}}r&&this.cachedAssets.add(e)}parseFontKey(e){let[t,r]=e.split("@"),s=r?parseInt(r,10):400;return{fontFamily:t||e,fontWeight:isNaN(s)?400:s}}async warmPendingVideo(){return!1}setDecodePolicy(e){}getDecodePolicy(){return"interactive"}hasPendingDecodes(){return!1}async warmPendingDecodes(){return this.warmPendingVideo()}hasPendingUpgrades(){return!1}async warmPendingUpgrades(){return!1}setPlaying(e){}dispose(){this.inFlightLoads.clear(),this.cachedAssets.clear()}};function Ap(o){return typeof o?._stepper=="function"}var Mp=_,bp=g,Np=x;export{ie as ASCII_CHARSETS,cn as AUDIO_ROOT_ID,xs as AUTOFIT_PROBE_SIZE,Ve as AdjustmentChain,Re as Adjustments,Ei as AmbientLight3D,Di as AreaLight3D,C as AssetDeclaration,D as AssetManager,m as AssetNotLoadedError,P as AssetTimeline,ti as AudioBus,tr as AudioFilterChain,ar as AudioFilterRegistry,rr as AudioFilters,h as AudioSink,Ee as BLEND_MODES_LIST,Ks as BooleanGroup,ls as BoundsShape,ai as Box3D,c as COMMAND_META,qs as Camera,Ci as Camera3D,rs as Canvas2D,vi as Canvas3D,Fs as Canvas3DBase,bs as CanvasRenderContext2D,xi as Capsule3D,li as Circle3D,Lo as Clip,da as ClipInstance,ma as ClipStore,_ as ClipTimeline,ci as Cone3D,Ao as ContextMap,qt as Curve,di as Cylinder3D,Dt as DEFAULT_CAP_SCALE,Rt as DEFAULT_EASE,M as DEFAULT_FPS,np as DEFAULT_OUTPUT,ca as DEFAULT_PRECOMP_BUDGET_MS,S as DEFAULT_VIEWPORT,ot as DRAWABLE_KINDS,is as DataToken,Qs as DefaultTextStyle,Mi as DirectionalLight3D,ee as EFFECT_OPTION_KEYS,$ as EMPTY_MANIFEST,Tt as EMPTY_PATH_DATA,Sr as EMPTY_TEXT_STYLE,ye as EffectChain,_e as Effects,Cs as Ellipse,ds as EllipseBase,E as Engine,Ui as Environment3D,Ji as ExpressionError,wi as Extrude3D,be as FillChain,Ne as Fills,Oi as Fog3D,Ha as Fragment,Tn as Geo,He as Graphics2D,it as Graphics3D,ii as Group3D,Si as HemisphereLight3D,Rs as Hexagon,$r as IDENTITY_QUATERNION,ke as ImageFilters,Ai as Instances3D,yi as Lathe3D,Ti as Line3D,to as MAX_SHADER_PROPERTIES,ro as MAX_SHADER_SOURCE,Ce as MINOR_WIDTH_RATIO,Jn as MUTABLE_MATERIAL_KEYS,O as ManifestAssetCatalog,Ys as MaskGroup,Ln as Mat,ni as Mesh3D,Ts as Mesh3DBase,Fi as Model3D,Ls as ModelView3D,Es as NODE_META,ur as NO_PROJECTION_3D,To as Node,Fo as Node2D,Ps as Node3D,Qo as NodeAudio,Se as NodeBlendModes,Ns as NullRenderContext,Hs as NumberNode,Ws as Octagon,zs as OrbitCamera,Lt as PATH_UNIT_EXTENT,Ft as PATH_UNIT_HALF,zo as PaintNode,$s as Path,cs as PathBase,Ge as PathBuilder,vs as PathShape,gs as PathShapeBase,Is as Pentagon,fi as Plane3D,ja as Playback,va as PlaybackController,bi as PointLight3D,Pi as Points3D,Os as Polygon,ms as PolygonBase,Us as Polygram,hs as PolygramBase,ui as Polyhedron3D,tp as Precomp,b as PropSlot,Xs as Provider,Ri as ROOT_NODE_ID,za as Random,Ds as Rect,fs as RectBase,y as Registry,nt as RenderContext3D,Js as RichText,Vs as RightTriangle,gi as Ring3D,Bs as RotatedBox,la as SETTLE_PASSES,bo as SHAPE_ALIGNMENT_KEYS,Qn as STRUCTURAL_MATERIAL_KEYS,pt as Scene3D,Mp as SceneTimeline,qa as SeedGenerator,ns as SeedToken,T as Session,ps as ShapeNode,sr as Sound,ei as SoundNode,pi as Sphere3D,Ni as SpotLight3D,Li as Sprite3D,ks as Star,ha as StateEvaluator,v as SteppedClock,l as StorageAdapter,xt as TEXTURE_KEYS,Er as TEXT_SHAPING_KEYS,Fr as TEXT_STYLE_KEYS,Fn as Tex,Gs as Text,ys as TextBase,us as TextSelection,os as TextStyleToken,Zs as ThemeProvider,ss as ThemeToken,U as Ticker,mi as Torus3D,hi as TorusKnot3D,js as Triangle,_i as Tube3D,Et as UNIT_PATH_BOX,ri as Video,Ie as VideoAdjustmentChain,We as VideoAdjustments,_s as VideoBase,Ke as VideoFilters,ea as __resetSchedulerForTests,qe as alignmentOps,Jr as alignmentProperty,Jo as applyEditorStates,jn as applyMatrix4,as as applyTextDefaults,hr as applyToPoint,Hi as asProjectDocument,nn as assertValidDocument,sn as assertValidProjectDocument,pr as audioFiltersOps,Zt as audioParamOps,Le as backdropEffects,Xo as busPathOf,Zo as busPathTo,nr as busStopKey,gr as cameraMatrix,_t as canLerpFill,ft as canvas3DResourceKey,lt as canvas3DResourceLoader,Pn as caretCount,Oa as caretOffsetAt,Ua as caretRangeQuads,qn as centeredBox3,Pa as childPlanePointAt,Vt as clamp,It as clamp01,ln as clipDocument,ta as clipFrameToTime,ra as clipTimeToFrame,Da as collectBoxes,ua as collectBoxes3D,se as colorOps,qr as colorProperty,Po as command,uo as commandParallel,xo as commandSequence,zi as commandSpan,Vn as compose4,Io as containsClip,Ro as containsOps,le as coordsMatrix,k as cornerRadiusOps,zr as cornerRadiusProperty,K as cornerStyleOps,Br as cornerStyleProperty,Bn as corners3,A as createAssetTimelineProfile,_o as createContext,rp as createPrecompProfile,Ya as createRef,tn as curveEase,Zi as curveSegmentT,Xi as curveSegments,Dn as cylinderRadii,me as describeUniforms,qo as distanceToSegment,Bi as documentDuration,lo as driveCommand,kt as easeIn,Yt as easeInOut,Kt as easeOut,xe as effectSurface,ki as effectiveSpan,Yi as effectiveSpanIn,Ki as effectiveSpans,Pe as effectsOps,Yr as effectsProperty,Ka as enterBudget,er as equalsParam,vr as euler3Ops,On as evaluateParametric,Sn as evaluateRoundedBox,Qi as expressionOps,yr as facesAway,Gt as fadeIn,Ht as fadeOut,Pt as fillOps,Wr as fillProperty,$e as filterSurface,ir as filtersKey,es as findBusById,Eo as findNode2D,Nr as flowOps,wt as forEachTexture3D,Fe as foregroundShaderEffects,So as frameIn,oa as frameSpecAtTime,pa as frameTime,Wa as generateList,Hn as geometryBounds3D,Me as getBlendModeHash,w as getCommandMeta,Ms as getNodeDescriptor,N as getPropSlot,u as getPropertyMeta,G as getTypographyPreset,Fa as handleValueAt,gt as hasCanvas3DBackend,Ue as hasFilter,wr as hasProjection3D,Ii as hasTimeline,Bt as hold,dr as identity,Un as identity4,ze as insetsOps,Hr as insetsProperty,g as integrateSpeedToClipTime,bp as integrateSpeedToSceneTime,lr as invert,$n as invert4,Vi as isAudioDocument,Te as isBackdropEffect,mo as isCommand,ji as isCompositionDocument,Jt as isCurve,Qe as isDataTexture3D,en as isEaseCurve,eo as isKnownShaderProperty,oi as isOrbitCamera3D,$a as isParentNode,Oe as isPixelFilter,Gi as isProjectDocument,fr as isProjective,Ap as isSteppable,$i as isStillDocument,Ct as isStrokeMarker,gn as isStyleOnlySegment,Xe as isSurfaceTexture3D,ut as isTextureLike,I as isUniformCorners,xa as isViewport3D,Ba as jsx,Ga as jsxs,oe as lerpColor,Y as lerpCornerScalarStyle,V as lerpCorners,ue as lerpEffect,Ur as lerpEuler3,At as lerpFill,ve as lerpFilter,je as lerpFilterArray,Ar as lerpLookAt,R as lerpNumber,Xt as lerpParam,W as lerpPerspective,de as lerpUniformRecord,pe as lerpUniformValue,q as lerpVector2,Cr as lerpVector3,Wt as linear,In as lookAtRotation4,tt as looksLikeAssetPath,go as loopCommand,io as loopPasses,po as loopPhase,no as loopRepeats,ao as loopSpan,mn as loweredAudioDocument,ho as makeCommand,mr as multiply,vn as multiply4,Yo as nearPolyline,ka as niceStep,Ss as node,Ma as nodeAt,Ea as nodeBox,Sa as nodeBoxAt,La as nodeHandlesAt,xr as nodeLocalMatrix,Bo as nodePath,_r as nodeProjectedMatrix,Wi as nodeSpan,Ca as nodeTextLayout,an as nodeTypeIsA,Vr as normalizeQuaternion,ws as normalizeRanges,oo as normalizeShaderPack,ae as normalizeUniforms,Xn as now,Yn as orthographic4,pn as parentIssue,Aa as parentPlanePointAt,As as parentSpaceOf,Ia as parseCSV,dt as parseCanvas3DResourceKey,H as parseColor,Ra as parseData,ge as parseShaderChildren,St as pathOps,Gr as pathProperty,Kn as perspective4,Na as pickNode,ya as pickNode3D,ia as placeTracks,dn as placementIssues,Ko as pointInPolygon,Wo as polygonVertices,ko as polygramVertices,yo as prepareNumericCellTween,wo as prepareNumericTween,Ho as primeMotionTree,wa as projectNode3D,ba as projectNode3DAt,br as property,Ir as quaternionFromEuler,Rr as quaternionOps,zt as ramp,mt as registerCanvas3DResourceLoader,ct as registerCanvas3DWarmup,_a as renderMatrix,ga as renderSettled,Ta as reparentPlacementAt,xn as requireFontFamily,ne as resolveAsciiCharset,or as resolveAudioFilters,Cn as resolveBevel3D,si as resolveCameraPlacement,Ye as resolveChainAdjustments,Ae as resolveChainEffects,De as resolveChainFill,j as resolveCorners,J as resolveEffectAxis,X as resolveEffectColor,yt as resolveFill,rt as resolveFill3D,st as resolveMaterialShorthand3D,re as resolveMotionBlurAlignment,Oo as resolvePivotPosition,Va as resolveProjectDocument,we as resolveShaderProperties,Mt as resolveShadow,Nn as resolveShadowOptions3D,at as resolveShadows3D,Co as resolveShapeAlignment,Mo as resolveShapePivot,$t as resolveStroke,Nt as resolveStrokeAlign,Ot as resolveStrokeCap,Ut as resolveStrokeEnd,vt as resolveStrokeJoin,Je as resolveSurfaceSource,Ze as resolveTexture3D,Dr as resolveVector3,Be as resolveVideoTimestamp,kn as rotationOf4,Q as sameEffectAxis,Z as sameEffectColor,Go as sampleTree,En as segmentsOf,B as setTheme,co as settles,fo as settling,Mn as shadowCasts,bt as shadowOps,Kr as shadowProperty,bn as shadowReceives,fn as siblingIssue,Tr as size2DOps,Lr as sizeInputOps,Xr as sizeProperty,jr as slerpQuaternion,x as sourceTimeAtClipElapsed,Np as sourceTimeAtSceneElapsed,Pr as space3dOps,fa as spanFrames,aa as spansCovering,Qt as staticValue,Do as stripShapeAlignmentKeys,jt as strokeOps,kr as strokeProperty,ts as structuralPathOf,Mr as textOps,Zr as textProperty,et as texture3DSource,so as toCommand,_n as toPathString,na as totalFramesOf,sa as trackFrameCount,Gn as transformBox3,Rn as transformMatrix4,cr as translation,Wn as translation4,ce as uniformRecordsEqual,fe as uniformValuesEqual,zn as unionBox3,qi as untimed,rn as validateDocument,on as validateProjectDocument,No as validateShapeAlignmentProps,z as vector2Ops,Qr as vector2Property,Or as vector3Ops,ht as warmCanvas3D,te as withEffectOptions,vo as withEllipseDescriptor,Vo as withLineDescriptor,An as withPathDescriptor,hn as withPlayedSounds,$o as withPolygonDescriptor,jo as withPolygramDescriptor,Uo as withRectDescriptor,wn as withRichTextDescriptor,un as withTextDescriptor,yn as withTransformDescriptor,Xa as withdraw,he as writeUniforms,Zn as yieldToScheduler};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/runtime/precompisition.ts", "../../src/runtime/engine.ts", "../../src/platform/audio-sink.ts", "../../src/platform/storage-adapter.ts", "../../src/tween/stepper.ts"],
|
|
4
|
-
"sourcesContent": ["import {\n AssetTimeline,\n createAssetTimelineProfile,\n type AssetTimelineOptions,\n type AssetTimelinePhase,\n type AssetTimelineProfile,\n type AssetTimelineResult,\n type AssetTimelineTimings,\n type TrackAssets,\n type TrackAssetsProfile,\n type TrackAssetsTiming,\n} from \"./asset-timeline\";\n\n// The names this module had before it became `asset-timeline`, kept for one alpha.\n\n/** @deprecated Renamed to {@link AssetTimeline}. */\nexport const Precomp = AssetTimeline;\n/** @deprecated Renamed to {@link AssetTimeline}. */\nexport type Precomp = AssetTimeline;\n/** @deprecated Renamed to {@link AssetTimelineResult}. */\nexport type PrecompResult = AssetTimelineResult;\n/** @deprecated Renamed to {@link TrackAssets}. */\nexport type TrackPrecomp = TrackAssets;\n/** @deprecated Renamed to {@link AssetTimelineOptions}. */\nexport type PrecompOptions = AssetTimelineOptions;\n/** @deprecated Renamed to {@link AssetTimelineProfile}. */\nexport type PrecompProfile = AssetTimelineProfile;\n/** @deprecated Renamed to {@link createAssetTimelineProfile}. */\nexport const createPrecompProfile = createAssetTimelineProfile;\n/** @deprecated Renamed to {@link AssetTimelinePhase}. */\nexport type PrecompPhase = AssetTimelinePhase;\n/** @deprecated Renamed to {@link AssetTimelineTimings}. */\nexport type PrecompTimings = AssetTimelineTimings;\n/** @deprecated Renamed to {@link TrackAssetsTiming}. */\nexport type TrackPrecompTiming = TrackAssetsTiming;\n/** @deprecated Renamed to {@link TrackAssetsProfile}. */\nexport type TrackPrecompProfile = TrackAssetsProfile;\n", "import { Size2D } from \"@/attributes/layout/size\";\nimport type { Shader } from \"@/attributes/shape/shaders/pack\";\nimport { AssetCatalog } from \"@/assets/catalog\";\nimport { AssetManifest } from \"@/assets/manifest\";\nimport { Registry, type NodeConstructor, type RegistryOptions } from \"@/document/registry\";\nimport { AudioSink } from \"@/platform/audio-sink\";\nimport { Exporter } from \"@/platform/exporter\";\nimport { Ticker } from \"@/platform/ticker\";\nimport { StorageAdapter } from \"@/platform/storage-adapter\";\nimport { CanvasRenderContext2D } from \"@/render/canvas-render-context2d\";\nimport { MeasureContext2D } from \"@/render/measure-context\";\nimport { RenderSurface } from \"@/render/surface\";\nimport { OpenOptions, Session } from \"./session\";\n\n/** A render context that also owns a surface — what a `Session` mounts into. */\nexport type EngineRenderContext = CanvasRenderContext2D & RenderSurface;\n\n/** What a platform is given to build its per-session objects from. */\nexport interface PlatformDeps {\n catalog: AssetCatalog;\n viewport: Size2D;\n fps: number;\n}\n\n/**\n * How one environment supplies the pieces a `Session` runs on.\n *\n * Five of these are the seams `ControllerParams` has always declared; the sixth\n * is the {@link Exporter} port. Each is a **factory**, not an instance, because\n * a storage adapter is per-viewport (it clamps decode resolution, so a cached\n * decode made for one viewport is genuinely wrong at a larger one) while the\n * engine outlives any single session.\n *\n * The type parameter exists so a platform can hand its own factories a storage\n * adapter richer than `StorageAdapter` — `skia-render` requires\n * `StorageAdapter & SkiaAssets` — without `core` ever naming that type. Core\n * stores and forwards these; it never inspects them.\n */\nexport interface EnginePlatform<TStorage extends StorageAdapter = StorageAdapter> {\n createStorageAdapter(deps: PlatformDeps): TStorage;\n createRenderContext(storage: TStorage): EngineRenderContext;\n createMeasureContext(storage: TStorage): MeasureContext2D;\n createAudioSink(): AudioSink;\n /**\n * The clock a session plays against, or `null` when this environment has no\n * realtime playback — a headless export has no wall clock to sync to, and a\n * session there reports `playback === null` rather than faking one.\n *\n * This is the seam that separates **preview from export**, not browser from\n * server: an export is frame-stepped in either environment, because a\n * wall-clock export drifts.\n *\n * Handed the session's `audioDevice` because a clock that drives sound has\n * to share its timebase — the browser's runs on the audio device's own\n * `AudioContext`, and two independent clocks would drift against each other\n * within one session.\n */\n createTicker(fps: number, audioDevice: AudioSink): Ticker | null;\n createExporter(): Exporter;\n /** Torn down with the engine. For a platform holding a device or a process. */\n dispose?(): void;\n}\n\n/** Settings for the engine as a whole. What to render is passed to `open()`. */\nexport interface EngineOptions {\n /**\n * Node types any document opened here may name — decorated classes as an\n * array, or a record naming each key outright.\n */\n nodes?: RegistryOptions[\"nodes\"];\n /** Shader packs any document opened here may name. Plain JSON. */\n shaders?: RegistryOptions[\"shaders\"];\n /** Extra variable interpolations a document may name in `VariableSpec.lerp`. */\n lerps?: RegistryOptions[\"lerps\"];\n /** Enables `Engine.registerNode` with a source string — see `DynamicNodeConfig`. */\n dynamicNodes?: RegistryOptions[\"dynamicNodes\"];\n /**\n * Asset metadata the renderer needs *before* it loads a file — an image's\n * size, a clip's duration. Reconciled with {@link Engine.setManifest} rather\n * than rebuilt, so a manifest change keeps every decode already cached.\n */\n manifest?: AssetManifest;\n /** Viewport used when a source carries none. Defaults to 1920×1080. */\n viewport?: Size2D;\n /** Frame rate used when a source carries none. Defaults to 60. */\n fps?: number;\n}\n\nexport const DEFAULT_VIEWPORT: Size2D = { width: 1920, height: 1080 };\nexport const DEFAULT_FPS = 60;\nexport const EMPTY_MANIFEST: AssetManifest = { image: {}, video: {}, audio: {}, font: {} };\n\n/**\n * The configured environment a document runs in: what node types and shader\n * packs exist, where assets resolve from, who draws and who encodes.\n *\n * Expensive, and meant to be shared — one per app, not one per canvas. The\n * caches underneath it (registered fonts, decoded images, shaped paragraphs) are\n * the whole reason a warm engine beats a cold one, and they live here rather\n * than on a session so that a preview, a filmstrip of thumbnails and an export\n * all draw on the same ones.\n *\n * The rule for what belongs here rather than on a `Session`: **if two open\n * documents could disagree about it, it is session state.** Two documents can\n * disagree about a theme. They cannot disagree about whether `\"pulseRing\"` is a\n * registered type — one of them is simply invalid.\n */\nexport class Engine<TStorage extends StorageAdapter = StorageAdapter> {\n readonly viewport: Size2D;\n readonly fps: number;\n\n constructor(\n readonly platform: EnginePlatform<TStorage>,\n options: EngineOptions = {},\n ) {\n this._registry = new Registry({\n nodes: options.nodes,\n shaders: options.shaders,\n lerps: options.lerps,\n dynamicNodes: options.dynamicNodes,\n });\n this.viewport = options.viewport ?? DEFAULT_VIEWPORT;\n this.fps = options.fps ?? DEFAULT_FPS;\n this._manifest = options.manifest ?? EMPTY_MANIFEST;\n this._exporter = platform.createExporter();\n }\n\n /** The asset metadata sessions are opened against. */\n get manifest(): AssetManifest {\n return this._manifest;\n }\n\n /** How this engine's sessions turn themselves into bytes. */\n get exporter(): Exporter {\n return this._exporter;\n }\n\n /**\n * Swap in new asset metadata. Existing sessions keep every decode already\n * cached — this replaces what the *catalog* reports, not the bytes behind it.\n */\n setManifest(manifest: AssetManifest): void {\n this._manifest = manifest;\n for (const notify of this._manifestListeners) notify(manifest);\n }\n\n /**\n * Bind a document to this engine and a surface.\n *\n * Cheap: the expensive things — CanvasKit, registered fonts, decoded images,\n * shaped paragraphs — belong to the engine and are shared across every\n * session it opens.\n */\n open(options: OpenOptions): Session {\n return new Session(this as Engine, options);\n }\n\n /** Whether a document naming `key` can be compiled here. */\n knows(key: string): boolean {\n return this._registry.hasNode(key);\n }\n\n /**\n * Read-only introspection of this engine's node/command vocabulary — a\n * type's declared commands and each one's own `@command({ args })`\n * descriptors, for a host that renders per-command UI from them (e.g.\n * which prop keys a `rotateTo` animates). Register or replace a type\n * through `registerNode`/`registerShader` instead; this getter exists for\n * reading the table those build, not for mutating it.\n */\n get registry(): Registry {\n return this._registry;\n }\n\n /**\n * Registers a node type at runtime — a class, or a TS/JSX source string\n * compiled through `dynamicNodes` (see `EngineOptions.dynamicNodes`).\n *\n * Always `async`: one calling convention whether the argument resolves\n * immediately (a class) or needs compiling first (a string).\n */\n async registerNode(\n nodeOrSource: NodeConstructor | string,\n options?: { replace?: boolean },\n ): Promise<NodeConstructor> {\n if (typeof nodeOrSource === \"string\") {\n return this._registry.addNodeFromSource(nodeOrSource, options);\n }\n this._registry.addNode(nodeOrSource, options);\n return nodeOrSource;\n }\n\n /**\n * Registers a shader pack at runtime, under an explicit key — see\n * `Registry.addShader` for why the key is never inferred from the pack.\n */\n registerShader(key: string, pack: unknown, options?: { replace?: boolean }): Shader {\n return this._registry.addShader(key, pack, options);\n }\n\n dispose(): void {\n this._manifestListeners.clear();\n this.platform.dispose?.();\n }\n\n /**\n * The node/shader/lerp vocabulary this engine's documents compile\n * against. Not part of the public surface — reach it through\n * `registerNode`/`registerShader`/`knows` instead. A `Session` (same\n * package) still reads this directly; nothing enforces that at the type\n * level, the same un-enforced convention `_onManifestChange` below\n * already uses.\n */\n readonly _registry: Registry;\n private _manifest: AssetManifest;\n private readonly _exporter: Exporter;\n /** Sessions subscribe so a `setManifest` reaches their live catalogs. */\n private readonly _manifestListeners = new Set<(m: AssetManifest) => void>();\n\n /** @internal — a `Session` registers here for the life of its catalog. */\n _onManifestChange(notify: (m: AssetManifest) => void): () => void {\n this._manifestListeners.add(notify);\n return () => this._manifestListeners.delete(notify);\n }\n}\n", "import type { AudioRequest } from \"@/attributes/audio/request\";\n\n\n/**\n * Stackable audio player driven by the AssetManager.\n *\n * The AssetManager decides which audio data is needed within the current\n * look-ahead window and pushes it in via {@link append}; the device caches the\n * decoded form, schedules the matching {@link AudioRequest}s via\n * {@link schedule}, and drives playback through {@link syncTo} on each tick.\n */\nexport abstract class AudioSink {\n /**\n * Whether pushing the audio working set to this device does anything at all.\n *\n * False for a sink that discards everything — an export, whose audio is mixed\n * offline in a single pass at the end. `AssetManager.syncAudio` runs on every\n * frame and rebuilds a `Set`, a per-request id string and a sorted signature\n * each time; against such a device every one of those calls lands on a no-op,\n * so the work is skipped rather than done and thrown away.\n */\n get schedulesAudio(): boolean {\n return true;\n }\n\n /** True if decoded data for `src` is already cached on the device. */\n abstract has(src: string): boolean;\n\n /**\n * Decode and stack `data` under `src`. Idempotent — repeat calls for an\n * already-cached `src` are no-ops.\n */\n abstract append(src: string, data: ArrayBuffer): Promise<void>;\n\n /** Drop cached audio data (and any active sources) for srcs not in `keep`. */\n abstract retain(keep: ReadonlySet<string>): void;\n\n /**\n * Set the working set of audio requests for the current look-ahead window.\n * Requests no longer present are stopped; new ones become eligible for\n * playback via {@link syncTo} as soon as their data is appended.\n */\n abstract schedule(requests: readonly AudioRequest[]): void;\n\n /**\n * Start/stop scheduled sources to match `sceneTime`. Called every tick.\n * Sources whose data has not yet been appended are skipped until it is.\n */\n abstract syncTo(sceneTime: number): void;\n\n abstract play(time: number, speed: number, reverse: boolean): void | Promise<void>;\n abstract stop(): void;\n\n /**\n * Mute or unmute all output. Default is a no-op for devices that produce no\n * sound (e.g. export/noop sinks).\n */\n setMuted(muted: boolean): void {}\n\n /**\n * Set the linear gain applied to all output, on top of each request's own\n * `volume`. Independent of {@link setMuted} — unmuting restores this level\n * rather than resetting to 1, so a host can hold a volume slider and a mute\n * button without the two clobbering each other.\n *\n * Default is a no-op, as for {@link setMuted}.\n */\n setVolume(volume: number): void {}\n\n dispose(): void {\n this.stop();\n }\n}\n", "import { AssetCatalog } from \"@/assets/catalog\";\nimport { AssetRecord } from \"@/assets/record\";\nimport { Size2D } from \"@/attributes/layout/size\";\n\n/**\n * How an adapter picks the resolution to decode media at.\n *\n * `\"exact\"` — export, stills, screenshots: the level follows the current draw\n * alone, so a frame is the same pixels whatever was drawn before it on a reused\n * adapter. `\"interactive\"` — preview: reuse whatever resident level is already\n * good enough, and upgrade in the background.\n */\nexport type DecodePolicy = \"exact\" | \"interactive\";\n\nexport abstract class StorageAdapter {\n protected catalog: AssetCatalog;\n protected viewport: Size2D;\n constructor(catalog: AssetCatalog, viewport: Size2D) {\n this.catalog = catalog;\n this.viewport = viewport;\n }\n\n /**\n * Point the adapter at a different asset catalog, keeping every decode it has\n * already cached.\n *\n * Safe because the catalog supplies *metadata* (durations, intrinsic sizes)\n * while the caches are keyed by source URL: a src the new catalog drops leaves\n * an orphaned decode, and a src it adds simply isn't cached yet. Neither is a\n * correctness problem, which is what lets a long-lived renderer take an\n * updated manifest without paying to re-decode everything still in use.\n *\n * The viewport has no such setter; a host that changes output size rebuilds\n * the adapter.\n */\n setCatalog(catalog: AssetCatalog): void {\n this.catalog = catalog;\n }\n /**\n * Every asset src whose loadXxx is currently in flight, mapped to its\n * pending promise. The render path awaits these to guarantee no draw\n * happens while a load is still resolving. Cleared on completion.\n */\n protected inFlightLoads = new Map<string, Promise<void>>();\n /** Keys of assets that have been fully loaded and are ready to use. */\n protected cachedAssets = new Set<string>();\n\n // ─── Asset loading dispatch ───────────────────────────────────────────────\n\n /** Whether `key` has finished loading and is usable now. */\n isLoaded(key: string): boolean {\n return this.cachedAssets.has(key);\n }\n\n async loadAsset(key: string, value: AssetRecord): Promise<void> {\n const existing = this.inFlightLoads.get(key);\n if (existing) return existing;\n if (this.cachedAssets.has(key)) return;\n\n const job = this.runLoad(key, value);\n this.inFlightLoads.set(key, job);\n try {\n await job;\n } finally {\n this.inFlightLoads.delete(key);\n }\n }\n\n private async runLoad(key: string, value: AssetRecord): Promise<void> {\n let loaded = true;\n switch (value.type) {\n case 'image':\n await this.loadImage(key);\n break;\n case 'video':\n await this.loadVideo(key, value.startFrame, value.endFrame, value.trimStart, value.trimEnd);\n break;\n case 'font': {\n const { fontFamily, fontWeight } = this.parseFontKey(key);\n loaded = await this.loadFont(key, fontFamily, fontWeight);\n break;\n }\n case 'audio':\n // Audio files are loaded on-demand via fetchAudioData / syncAudio, not through loadAsset.\n break;\n case 'loader':\n // Loaders are opaque callbacks run directly by the AssetManager and\n // never dispatched through the storage adapter.\n throw new Error(\"Loader records must not be routed through StorageAdapter.loadAsset\");\n default: {\n const _exhaustive: never = value;\n throw new Error(`Unsupported asset type: ${(_exhaustive as AssetRecord).type}`);\n }\n }\n\n // Only a load that actually happened is cached. This matters for exactly\n // one case: a font family the manifest cannot describe. Caching it anyway\n // marked the family handled for the life of this adapter, so a manifest\n // that *later* described it — which is what installing a typeface does,\n // folded into the live manifest without rebuilding the controller — could\n // never load it, and the text stayed in the fallback face until something\n // else tore the adapter down.\n if (loaded) this.cachedAssets.add(key);\n }\n\n // ─── Font key parsing ─────────────────────────────────────────────────────\n\n protected parseFontKey(key: string): { fontFamily: string; fontWeight: number } {\n const [fontFamily, weightStr] = key.split('@');\n const fontWeight = weightStr ? parseInt(weightStr, 10) : 400;\n return {\n fontFamily: fontFamily || key,\n fontWeight: isNaN(fontWeight) ? 400 : fontWeight,\n };\n }\n\n // ─── Abstract load methods ────────────────────────────────────────────────\n\n /** Decode resolution follows the draw, so a load names only the source. */\n abstract loadImage(src: string): Promise<void>;\n abstract loadVideo(\n src: string,\n startFrame: number,\n endFrame: number,\n trimStart: number,\n trimEnd?: number,\n ): Promise<void>;\n abstract loadAudio(\n src: string,\n startFrame: number,\n endFrame: number,\n trimStart: number,\n trimEnd?: number,\n ): Promise<void>;\n abstract fetchAudioData(src: string): Promise<ArrayBuffer>;\n /**\n * Register every face of `fontFamily` the catalog describes.\n *\n * Returns whether the family was actually loaded. `false` means the manifest\n * has no entry for it — not an error (an undescribed family shapes against\n * the platform fallback, which is what a system font name does), but it must\n * not be remembered as handled: see the note in {@link runLoad}.\n */\n abstract loadFont(src: string, fontFamily: string, fontWeight: number): Promise<boolean>;\n\n // ─── Frame warming ────────────────────────────────────────────────────────\n\n /**\n * Decode any exact media frames the most recent render asked for but couldn't\n * satisfy synchronously (e.g. a video frame at a freshly-seeked timestamp),\n * and report whether there were any. A blocking caller (seek / screenshot /\n * export) renders once, awaits this, and re-renders while it returns true so\n * the frame is accurate even on a cold jump. Defaults to a no-op for adapters\n * with no time-varying media.\n */\n async warmPendingVideo(): Promise<boolean> {\n return false;\n }\n\n setDecodePolicy(policy: DecodePolicy): void {\n // no-op for adapters that decode at one resolution\n }\n\n /** Read back so a caller that borrows the adapter can restore it. */\n getDecodePolicy(): DecodePolicy {\n return \"interactive\";\n }\n\n /** Whether the most recent render left decodes that {@link warmPendingDecodes} would settle. */\n hasPendingDecodes(): boolean {\n return false;\n }\n\n /**\n * Settle what the last render could not draw acceptably under the current\n * policy — video frames, every exact image level under `\"exact\"`, a source\n * drawn with nothing resident under `\"interactive\"` — and report whether there\n * was any. See `renderSettled`.\n *\n * Defaults to {@link warmPendingVideo} so an adapter written against it keeps\n * working; that alias goes away after one release.\n */\n async warmPendingDecodes(): Promise<boolean> {\n return this.warmPendingVideo();\n }\n\n /**\n * Whether an `\"interactive\"` decode is on its way that would draw the last\n * render sharper. Not something a paint waits for: a preview shows what is\n * resident and repaints when {@link warmPendingUpgrades} reports a landing.\n */\n hasPendingUpgrades(): boolean {\n return false;\n }\n\n /** Await the upgrades {@link hasPendingUpgrades} reports; whether one landed. */\n async warmPendingUpgrades(): Promise<boolean> {\n return false;\n }\n\n /**\n * Notify the adapter whether playback is live. Time-varying media (video) uses\n * this to prefetch ahead only while playing and to quiesce on pause, so a\n * paused timeline doesn't drain a backlog of stale decodes. No-op by default.\n */\n setPlaying(playing: boolean): void {\n // no-op for adapters with no time-varying media\n }\n\n // ─── Lifecycle ────────────────────────────────────────────────────────────\n\n dispose(): void {\n this.inFlightLoads.clear();\n this.cachedAssets.clear();\n }\n}\n", "/**\n * A flat animation driver. `advance(dt)` moves the animation forward by `dt`\n * seconds and returns `true` once it has completed (and applied its final\n * value). It must be primed at t=0 before the first `advance` so the starting\n * frame is correct — callers apply the initial value via `seek(0)`.\n *\n * `seek(elapsed)` is the absolute-time half, and is what a {@link Command}'s\n * `at` is built on: a stepper can be asked for any time, in any order, which is\n * what lets a timeline evaluate a frame without having played the ones before\n * it.\n */\n/** @internal */\nexport interface TweenStepper {\n /**\n * Jump to the value corresponding to `elapsed` seconds from the start.\n * Call with `0` to prime the stepper before the first {@link advance}.\n */\n seek(elapsed: number): void;\n /**\n * Advance the animation by `dt` seconds.\n * @returns `true` when the animation has finished and its final value has\n * been applied; `false` if it is still running.\n */\n advance(dt: number): boolean;\n}\n\n/**\n * Implemented by anything that can produce a {@link TweenStepper} — a\n * {@link Command}, and anything a host drives directly.\n */\nexport interface Steppable {\n /** Return a fresh stepper for a single playthrough of this animation. */\n _stepper(): TweenStepper;\n}\n\nexport function isSteppable(x: unknown): x is Steppable {\n return typeof (x as Steppable)?._stepper === \"function\";\n}\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["Precomp", "AssetTimeline", "createPrecompProfile", "createAssetTimelineProfile", "DEFAULT_VIEWPORT", "DEFAULT_FPS", "EMPTY_MANIFEST", "Engine", "platform", "options", "Registry", "manifest", "notify", "Session", "key", "nodeOrSource", "pack", "AudioSink", "muted", "volume", "StorageAdapter", "catalog", "viewport", "key", "value", "existing", "job", "loaded", "fontFamily", "fontWeight", "_exhaustive", "weightStr", "policy", "playing", "isSteppable", "x"]
|
|
3
|
+
"sources": ["../../src/document/withdraw.ts", "../../src/runtime/precompisition.ts", "../../src/runtime/engine.ts", "../../src/platform/audio-sink.ts", "../../src/platform/storage-adapter.ts", "../../src/tween/stepper.ts", "../../src/renamed-scene-names.ts"],
|
|
4
|
+
"sourcesContent": ["import { getPropertyMeta, PROPERTY_META, type PropertyMeta } from \"@/attributes/properties/decorator\";\r\nimport { COMMAND_META, getCommandMeta, type CommandMeta } from \"@/tween/command-decorator\";\r\n\r\n/**\r\n * Withdraw properties and commands a node class inherits and has no use for.\r\n *\r\n * A class takes everything its base declares, and a general base declares a\r\n * lot: every `PaintNode` has a fill, a stroke, an outline trim and the commands\r\n * that tween them. A specialised node built on one — a plot that is only ever a\r\n * line, a formula that writes itself on rather than trimming its outline — would\r\n * otherwise offer controls that draw something meaningless or nothing at all.\r\n *\r\n * ```ts\r\n * @withdraw(\"fill\", \"fillTo\")\r\n * export class FunctionPlot extends Mark<FunctionPlotProps> { … }\r\n * ```\r\n *\r\n * A withdrawn property is not described to a host (`Registry.describe`) and\r\n * holds its declared default whatever is written to it, so the base's code that\r\n * reads it keeps working and a stored document that still sets it builds. A\r\n * withdrawn command is not published (`commandKeys`, `node(key).commands`) but\r\n * still dispatches, so a stored document naming one builds too; what it writes\r\n * is withdrawn with it, so it does nothing.\r\n *\r\n * Both are inherited like any declaration, and a subclass that declares the key\r\n * again (`@property`, `@command`) takes it back.\r\n *\r\n * Throws on a key the class does not inherit, and on one it declares itself.\r\n */\r\nexport function withdraw(...keys: string[]) {\r\n return function <T extends abstract new (...args: never[]) => object>(ctor: T): T {\r\n const proto = ctor.prototype as Record<symbol, unknown>;\r\n const parent = Object.create(Object.getPrototypeOf(proto) as object) as object;\r\n const props = getPropertyMeta(parent);\r\n const commands = getCommandMeta(parent);\r\n for (const key of keys) {\r\n if (declaresOwn(proto, PROPERTY_META, key) || declaresOwn(proto, COMMAND_META, key)) {\r\n throw new Error(`${ctor.name} both declares and withdraws \"${key}\".`);\r\n }\r\n const prop = props.find((meta) => meta.key === key);\r\n const command = commands.find((meta) => meta.key === key);\r\n if (!prop && !command) throw new Error(`${ctor.name} withdraws \"${key}\", which it does not inherit.`);\r\n if (prop) ownList<PropertyMeta>(proto, PROPERTY_META).push({ ...prop, withdrawn: true });\r\n if (command) ownList<CommandMeta>(proto, COMMAND_META).push({ ...command, withdrawn: true });\r\n }\r\n return ctor;\r\n };\r\n}\r\n\r\nfunction declaresOwn(proto: Record<symbol, unknown>, symbol: symbol, key: string): boolean {\r\n if (!Object.prototype.hasOwnProperty.call(proto, symbol)) return false;\r\n return (proto[symbol] as { key: string; withdrawn?: boolean }[]).some((meta) => meta.key === key && !meta.withdrawn);\r\n}\r\n\r\nfunction ownList<M>(proto: Record<symbol, unknown>, symbol: symbol): M[] {\r\n if (!Object.prototype.hasOwnProperty.call(proto, symbol)) proto[symbol] = [];\r\n return proto[symbol] as M[];\r\n}\r\n", "import {\r\n AssetTimeline,\r\n createAssetTimelineProfile,\r\n type AssetTimelineOptions,\r\n type AssetTimelinePhase,\r\n type AssetTimelineProfile,\r\n type AssetTimelineResult,\r\n type AssetTimelineTimings,\r\n type TrackAssets,\r\n type TrackAssetsProfile,\r\n type TrackAssetsTiming,\r\n} from \"./asset-timeline\";\r\n\r\n// The names this module had before it became `asset-timeline`, kept for one alpha.\r\n\r\n/** @deprecated Renamed to {@link AssetTimeline}. */\r\nexport const Precomp = AssetTimeline;\r\n/** @deprecated Renamed to {@link AssetTimeline}. */\r\nexport type Precomp = AssetTimeline;\r\n/** @deprecated Renamed to {@link AssetTimelineResult}. */\r\nexport type PrecompResult = AssetTimelineResult;\r\n/** @deprecated Renamed to {@link TrackAssets}. */\r\nexport type TrackPrecomp = TrackAssets;\r\n/** @deprecated Renamed to {@link AssetTimelineOptions}. */\r\nexport type PrecompOptions = AssetTimelineOptions;\r\n/** @deprecated Renamed to {@link AssetTimelineProfile}. */\r\nexport type PrecompProfile = AssetTimelineProfile;\r\n/** @deprecated Renamed to {@link createAssetTimelineProfile}. */\r\nexport const createPrecompProfile = createAssetTimelineProfile;\r\n/** @deprecated Renamed to {@link AssetTimelinePhase}. */\r\nexport type PrecompPhase = AssetTimelinePhase;\r\n/** @deprecated Renamed to {@link AssetTimelineTimings}. */\r\nexport type PrecompTimings = AssetTimelineTimings;\r\n/** @deprecated Renamed to {@link TrackAssetsTiming}. */\r\nexport type TrackPrecompTiming = TrackAssetsTiming;\r\n/** @deprecated Renamed to {@link TrackAssetsProfile}. */\r\nexport type TrackPrecompProfile = TrackAssetsProfile;\r\n", "import { Size2D } from \"@/attributes/layout/size\";\r\nimport type { Shader } from \"@/attributes/shape/shaders/pack\";\r\nimport { AssetCatalog } from \"@/assets/catalog\";\r\nimport { AssetManifest } from \"@/assets/manifest\";\r\nimport { Registry, type NodeConstructor, type RegistryOptions } from \"@/document/registry\";\r\nimport { AudioSink } from \"@/platform/audio-sink\";\r\nimport { Exporter } from \"@/platform/exporter\";\r\nimport { Ticker } from \"@/platform/ticker\";\r\nimport { StorageAdapter } from \"@/platform/storage-adapter\";\r\nimport { CanvasRenderContext2D } from \"@/render/canvas-render-context2d\";\r\nimport { MeasureContext2D } from \"@/render/measure-context\";\r\nimport { RenderSurface } from \"@/render/surface\";\r\nimport { OpenOptions, Session } from \"./session\";\r\n\r\n/** A render context that also owns a surface — what a `Session` mounts into. */\r\nexport type EngineRenderContext = CanvasRenderContext2D & RenderSurface;\r\n\r\n/** What a platform is given to build its per-session objects from. */\r\nexport interface PlatformDeps {\r\n catalog: AssetCatalog;\r\n viewport: Size2D;\r\n fps: number;\r\n}\r\n\r\n/**\r\n * How one environment supplies the pieces a `Session` runs on.\r\n *\r\n * Five of these are the seams `ControllerParams` has always declared; the sixth\r\n * is the {@link Exporter} port. Each is a **factory**, not an instance, because\r\n * a storage adapter is per-viewport (it clamps decode resolution, so a cached\r\n * decode made for one viewport is genuinely wrong at a larger one) while the\r\n * engine outlives any single session.\r\n *\r\n * The type parameter exists so a platform can hand its own factories a storage\r\n * adapter richer than `StorageAdapter` — `skia-render` requires\r\n * `StorageAdapter & SkiaAssets` — without `core` ever naming that type. Core\r\n * stores and forwards these; it never inspects them.\r\n */\r\nexport interface EnginePlatform<TStorage extends StorageAdapter = StorageAdapter> {\r\n createStorageAdapter(deps: PlatformDeps): TStorage;\r\n createRenderContext(storage: TStorage): EngineRenderContext;\r\n createMeasureContext(storage: TStorage): MeasureContext2D;\r\n createAudioSink(): AudioSink;\r\n /**\r\n * The clock a session plays against, or `null` when this environment has no\r\n * realtime playback — a headless export has no wall clock to sync to, and a\r\n * session there reports `playback === null` rather than faking one.\r\n *\r\n * This is the seam that separates **preview from export**, not browser from\r\n * server: an export is frame-stepped in either environment, because a\r\n * wall-clock export drifts.\r\n *\r\n * Handed the session's `audioDevice` because a clock that drives sound has\r\n * to share its timebase — the browser's runs on the audio device's own\r\n * `AudioContext`, and two independent clocks would drift against each other\r\n * within one session.\r\n */\r\n createTicker(fps: number, audioDevice: AudioSink): Ticker | null;\r\n createExporter(): Exporter;\r\n /** Torn down with the engine. For a platform holding a device or a process. */\r\n dispose?(): void;\r\n}\r\n\r\n/** Settings for the engine as a whole. What to render is passed to `open()`. */\r\nexport interface EngineOptions {\r\n /**\r\n * Node types any document opened here may name — decorated classes as an\r\n * array, or a record naming each key outright.\r\n */\r\n nodes?: RegistryOptions[\"nodes\"];\r\n /** Shader packs any document opened here may name. Plain JSON. */\r\n shaders?: RegistryOptions[\"shaders\"];\r\n /** Extra variable interpolations a document may name in `VariableSpec.lerp`. */\r\n lerps?: RegistryOptions[\"lerps\"];\r\n /** Enables `Engine.registerNode` with a source string — see `DynamicNodeConfig`. */\r\n dynamicNodes?: RegistryOptions[\"dynamicNodes\"];\r\n /**\r\n * Asset metadata the renderer needs *before* it loads a file — an image's\r\n * size, a clip's duration. Reconciled with {@link Engine.setManifest} rather\r\n * than rebuilt, so a manifest change keeps every decode already cached.\r\n */\r\n manifest?: AssetManifest;\r\n /** Viewport used when a source carries none. Defaults to 1920×1080. */\r\n viewport?: Size2D;\r\n /** Frame rate used when a source carries none. Defaults to 60. */\r\n fps?: number;\r\n}\r\n\r\nexport const DEFAULT_VIEWPORT: Size2D = { width: 1920, height: 1080 };\r\nexport const DEFAULT_FPS = 60;\r\n/** What a document renders at when neither the caller nor the document says. */\r\nexport const DEFAULT_OUTPUT: { viewport: Size2D; fps: number } = { viewport: DEFAULT_VIEWPORT, fps: DEFAULT_FPS };\r\nexport const EMPTY_MANIFEST: AssetManifest = { image: {}, video: {}, audio: {}, font: {} };\r\n\r\n/**\r\n * The configured environment a document runs in: what node types and shader\r\n * packs exist, where assets resolve from, who draws and who encodes.\r\n *\r\n * Expensive, and meant to be shared — one per app, not one per canvas. The\r\n * caches underneath it (registered fonts, decoded images, shaped paragraphs) are\r\n * the whole reason a warm engine beats a cold one, and they live here rather\r\n * than on a session so that a preview, a filmstrip of thumbnails and an export\r\n * all draw on the same ones.\r\n *\r\n * The rule for what belongs here rather than on a `Session`: **if two open\r\n * documents could disagree about it, it is session state.** Two documents can\r\n * disagree about a theme. They cannot disagree about whether `\"pulseRing\"` is a\r\n * registered type — one of them is simply invalid.\r\n */\r\nexport class Engine<TStorage extends StorageAdapter = StorageAdapter> {\r\n readonly viewport: Size2D;\r\n readonly fps: number;\r\n\r\n constructor(\r\n readonly platform: EnginePlatform<TStorage>,\r\n options: EngineOptions = {},\r\n ) {\r\n this._registry = new Registry({\r\n nodes: options.nodes,\r\n shaders: options.shaders,\r\n lerps: options.lerps,\r\n dynamicNodes: options.dynamicNodes,\r\n });\r\n this.viewport = options.viewport ?? DEFAULT_VIEWPORT;\r\n this.fps = options.fps ?? DEFAULT_FPS;\r\n this._manifest = options.manifest ?? EMPTY_MANIFEST;\r\n this._exporter = platform.createExporter();\r\n }\r\n\r\n /** The asset metadata sessions are opened against. */\r\n get manifest(): AssetManifest {\r\n return this._manifest;\r\n }\r\n\r\n /** How this engine's sessions turn themselves into bytes. */\r\n get exporter(): Exporter {\r\n return this._exporter;\r\n }\r\n\r\n /**\r\n * Swap in new asset metadata. Existing sessions keep every decode already\r\n * cached — this replaces what the *catalog* reports, not the bytes behind it.\r\n */\r\n setManifest(manifest: AssetManifest): void {\r\n this._manifest = manifest;\r\n for (const notify of this._manifestListeners) notify(manifest);\r\n }\r\n\r\n /**\r\n * Bind a document to this engine and a surface.\r\n *\r\n * Cheap: the expensive things — CanvasKit, registered fonts, decoded images,\r\n * shaped paragraphs — belong to the engine and are shared across every\r\n * session it opens.\r\n */\r\n open(options: OpenOptions): Session {\r\n return new Session(this as Engine, options);\r\n }\r\n\r\n /** Whether a document naming `key` can be compiled here. */\r\n knows(key: string): boolean {\r\n return this._registry.hasNode(key);\r\n }\r\n\r\n /**\r\n * Read-only introspection of this engine's node/command vocabulary — a\r\n * type's declared commands and each one's own `@command({ args })`\r\n * descriptors, for a host that renders per-command UI from them (e.g.\r\n * which prop keys a `rotateTo` animates). Register or replace a type\r\n * through `registerNode`/`registerShader` instead; this getter exists for\r\n * reading the table those build, not for mutating it.\r\n */\r\n get registry(): Registry {\r\n return this._registry;\r\n }\r\n\r\n /**\r\n * Registers a node type at runtime — a class, or a TS/JSX source string\r\n * compiled through `dynamicNodes` (see `EngineOptions.dynamicNodes`).\r\n *\r\n * Always `async`: one calling convention whether the argument resolves\r\n * immediately (a class) or needs compiling first (a string).\r\n */\r\n async registerNode(\r\n nodeOrSource: NodeConstructor | string,\r\n options?: { replace?: boolean },\r\n ): Promise<NodeConstructor> {\r\n if (typeof nodeOrSource === \"string\") {\r\n return this._registry.addNodeFromSource(nodeOrSource, options);\r\n }\r\n this._registry.addNode(nodeOrSource, options);\r\n return nodeOrSource;\r\n }\r\n\r\n /**\r\n * Registers a shader pack at runtime, under an explicit key — see\r\n * `Registry.addShader` for why the key is never inferred from the pack.\r\n */\r\n registerShader(key: string, pack: unknown, options?: { replace?: boolean }): Shader {\r\n return this._registry.addShader(key, pack, options);\r\n }\r\n\r\n dispose(): void {\r\n this._manifestListeners.clear();\r\n this.platform.dispose?.();\r\n }\r\n\r\n /**\r\n * The node/shader/lerp vocabulary this engine's documents compile\r\n * against. Not part of the public surface — reach it through\r\n * `registerNode`/`registerShader`/`knows` instead. A `Session` (same\r\n * package) still reads this directly; nothing enforces that at the type\r\n * level, the same un-enforced convention `_onManifestChange` below\r\n * already uses.\r\n */\r\n readonly _registry: Registry;\r\n private _manifest: AssetManifest;\r\n private readonly _exporter: Exporter;\r\n /** Sessions subscribe so a `setManifest` reaches their live catalogs. */\r\n private readonly _manifestListeners = new Set<(m: AssetManifest) => void>();\r\n\r\n /** @internal — a `Session` registers here for the life of its catalog. */\r\n _onManifestChange(notify: (m: AssetManifest) => void): () => void {\r\n this._manifestListeners.add(notify);\r\n return () => this._manifestListeners.delete(notify);\r\n }\r\n}\r\n", "import type { AudioRequest } from \"@/attributes/audio/request\";\r\n\r\n\r\n/**\r\n * Stackable audio player driven by the AssetManager.\r\n *\r\n * The AssetManager decides which audio data is needed within the current\r\n * look-ahead window and pushes it in via {@link append}; the device caches the\r\n * decoded form, schedules the matching {@link AudioRequest}s via\r\n * {@link schedule}, and drives playback through {@link syncTo} on each tick.\r\n */\r\nexport abstract class AudioSink {\r\n /**\r\n * Whether pushing the audio working set to this device does anything at all.\r\n *\r\n * False for a sink that discards everything — an export, whose audio is mixed\r\n * offline in a single pass at the end. `AssetManager.syncAudio` runs on every\r\n * frame and rebuilds a `Set`, a per-request id string and a sorted signature\r\n * each time; against such a device every one of those calls lands on a no-op,\r\n * so the work is skipped rather than done and thrown away.\r\n */\r\n get schedulesAudio(): boolean {\r\n return true;\r\n }\r\n\r\n /** True if decoded data for `src` is already cached on the device. */\r\n abstract has(src: string): boolean;\r\n\r\n /**\r\n * Decode and stack `data` under `src`. Idempotent — repeat calls for an\r\n * already-cached `src` are no-ops.\r\n */\r\n abstract append(src: string, data: ArrayBuffer): Promise<void>;\r\n\r\n /** Drop cached audio data (and any active sources) for srcs not in `keep`. */\r\n abstract retain(keep: ReadonlySet<string>): void;\r\n\r\n /**\r\n * Set the working set of audio requests for the current look-ahead window.\r\n * Requests no longer present are stopped; new ones become eligible for\r\n * playback via {@link syncTo} as soon as their data is appended.\r\n */\r\n abstract schedule(requests: readonly AudioRequest[]): void;\r\n\r\n /**\r\n * Start/stop scheduled sources to match `clipTime`. Called every tick.\r\n * Sources whose data has not yet been appended are skipped until it is.\r\n */\r\n abstract syncTo(clipTime: number): void;\r\n\r\n abstract play(time: number, speed: number, reverse: boolean): void | Promise<void>;\r\n abstract stop(): void;\r\n\r\n /**\r\n * Mute or unmute all output. Default is a no-op for devices that produce no\r\n * sound (e.g. export/noop sinks).\r\n */\r\n setMuted(muted: boolean): void {}\r\n\r\n /**\r\n * Set the linear gain applied to all output, on top of each request's own\r\n * `volume`. Independent of {@link setMuted} — unmuting restores this level\r\n * rather than resetting to 1, so a host can hold a volume slider and a mute\r\n * button without the two clobbering each other.\r\n *\r\n * Default is a no-op, as for {@link setMuted}.\r\n */\r\n setVolume(volume: number): void {}\r\n\r\n dispose(): void {\r\n this.stop();\r\n }\r\n}\r\n", "import { AssetCatalog } from \"@/assets/catalog\";\r\nimport { AssetNotLoadedError } from \"@/assets/errors\";\r\nimport { AssetRecord } from \"@/assets/record\";\r\nimport { Size2D } from \"@/attributes/layout/size\";\r\n\r\n/**\r\n * How an adapter picks the resolution to decode media at, and how strict it is\r\n * about what it cannot load.\r\n *\r\n * `\"exact\"` — export, stills, screenshots: the level follows the current draw\r\n * alone, so a frame is the same pixels whatever was drawn before it on a reused\r\n * adapter, and a font family the manifest cannot describe is refused rather\r\n * than shaped against the fallback face. `\"interactive\"` — preview: reuse\r\n * whatever resident level is already good enough, and upgrade in the\r\n * background; an undescribed family draws in the fallback face until a manifest\r\n * describes it.\r\n */\r\nexport type DecodePolicy = \"exact\" | \"interactive\";\r\n\r\nexport abstract class StorageAdapter {\r\n protected catalog: AssetCatalog;\r\n protected viewport: Size2D;\r\n constructor(catalog: AssetCatalog, viewport: Size2D) {\r\n this.catalog = catalog;\r\n this.viewport = viewport;\r\n }\r\n\r\n /**\r\n * Point the adapter at a different asset catalog, keeping every decode it has\r\n * already cached.\r\n *\r\n * Safe because the catalog supplies *metadata* (durations, intrinsic sizes)\r\n * while the caches are keyed by source URL: a src the new catalog drops leaves\r\n * an orphaned decode, and a src it adds simply isn't cached yet. Neither is a\r\n * correctness problem, which is what lets a long-lived renderer take an\r\n * updated manifest without paying to re-decode everything still in use.\r\n *\r\n * The viewport has no such setter; a host that changes output size rebuilds\r\n * the adapter.\r\n */\r\n setCatalog(catalog: AssetCatalog): void {\r\n this.catalog = catalog;\r\n }\r\n /**\r\n * Every asset src whose loadXxx is currently in flight, mapped to its\r\n * pending promise. The render path awaits these to guarantee no draw\r\n * happens while a load is still resolving. Cleared on completion.\r\n */\r\n protected inFlightLoads = new Map<string, Promise<void>>();\r\n /** Keys of assets that have been fully loaded and are ready to use. */\r\n protected cachedAssets = new Set<string>();\r\n\r\n // ─── Asset loading dispatch ───────────────────────────────────────────────\r\n\r\n /** Whether `key` has finished loading and is usable now. */\r\n isLoaded(key: string): boolean {\r\n return this.cachedAssets.has(key);\r\n }\r\n\r\n async loadAsset(key: string, value: AssetRecord): Promise<void> {\r\n const existing = this.inFlightLoads.get(key);\r\n if (existing) return existing;\r\n if (this.cachedAssets.has(key)) return;\r\n\r\n const job = this.runLoad(key, value);\r\n this.inFlightLoads.set(key, job);\r\n try {\r\n await job;\r\n } finally {\r\n this.inFlightLoads.delete(key);\r\n }\r\n }\r\n\r\n private async runLoad(key: string, value: AssetRecord): Promise<void> {\r\n let loaded = true;\r\n switch (value.type) {\r\n case 'image':\r\n await this.loadImage(key);\r\n break;\r\n case 'video':\r\n await this.loadVideo(key, value.startFrame, value.endFrame, value.trimStart, value.trimEnd);\r\n break;\r\n case 'font': {\r\n const { fontFamily, fontWeight } = this.parseFontKey(key);\r\n loaded = await this.loadFont(key, fontFamily, fontWeight);\r\n if (!loaded && this.getDecodePolicy() === \"exact\") {\r\n throw new AssetNotLoadedError(\r\n \"font\",\r\n fontFamily,\r\n `The manifest has no font entry for \"${fontFamily}\", so this frame would be shaped against the fallback face and differ from the one drawn once it is described. Add the family to the manifest's font record.`,\r\n );\r\n }\r\n break;\r\n }\r\n case 'audio':\r\n // Audio files are loaded on-demand via fetchAudioData / syncAudio, not through loadAsset.\r\n break;\r\n case 'loader':\r\n // Loaders are opaque callbacks run directly by the AssetManager and\r\n // never dispatched through the storage adapter.\r\n throw new Error(\"Loader records must not be routed through StorageAdapter.loadAsset\");\r\n default: {\r\n const _exhaustive: never = value;\r\n throw new Error(`Unsupported asset type: ${(_exhaustive as AssetRecord).type}`);\r\n }\r\n }\r\n\r\n // Only a load that actually happened is cached. This matters for exactly\r\n // one case: a font family the manifest cannot describe. Caching it anyway\r\n // marked the family handled for the life of this adapter, so a manifest\r\n // that *later* described it — which is what installing a typeface does,\r\n // folded into the live manifest without rebuilding the controller — could\r\n // never load it, and the text stayed in the fallback face until something\r\n // else tore the adapter down.\r\n if (loaded) this.cachedAssets.add(key);\r\n }\r\n\r\n // ─── Font key parsing ─────────────────────────────────────────────────────\r\n\r\n protected parseFontKey(key: string): { fontFamily: string; fontWeight: number } {\r\n const [fontFamily, weightStr] = key.split('@');\r\n const fontWeight = weightStr ? parseInt(weightStr, 10) : 400;\r\n return {\r\n fontFamily: fontFamily || key,\r\n fontWeight: isNaN(fontWeight) ? 400 : fontWeight,\r\n };\r\n }\r\n\r\n // ─── Abstract load methods ────────────────────────────────────────────────\r\n\r\n /** Decode resolution follows the draw, so a load names only the source. */\r\n abstract loadImage(src: string): Promise<void>;\r\n abstract loadVideo(\r\n src: string,\r\n startFrame: number,\r\n endFrame: number,\r\n trimStart: number,\r\n trimEnd?: number,\r\n ): Promise<void>;\r\n abstract loadAudio(\r\n src: string,\r\n startFrame: number,\r\n endFrame: number,\r\n trimStart: number,\r\n trimEnd?: number,\r\n ): Promise<void>;\r\n abstract fetchAudioData(src: string): Promise<ArrayBuffer>;\r\n /**\r\n * Register every face of `fontFamily` the catalog describes.\r\n *\r\n * Returns whether the family was actually loaded. `false` means the manifest\r\n * has no entry for it. Not an error while previewing (an undescribed family\r\n * shapes against the platform fallback, which is what a system font name\r\n * does), but a blocking caller refuses it — see {@link DecodePolicy} — and\r\n * it must not be remembered as handled either way: see the note in\r\n * {@link runLoad}.\r\n */\r\n abstract loadFont(src: string, fontFamily: string, fontWeight: number): Promise<boolean>;\r\n\r\n // ─── Frame warming ────────────────────────────────────────────────────────\r\n\r\n /**\r\n * Decode any exact media frames the most recent render asked for but couldn't\r\n * satisfy synchronously (e.g. a video frame at a freshly-seeked timestamp),\r\n * and report whether there were any. A blocking caller (seek / screenshot /\r\n * export) renders once, awaits this, and re-renders while it returns true so\r\n * the frame is accurate even on a cold jump. Defaults to a no-op for adapters\r\n * with no time-varying media.\r\n */\r\n async warmPendingVideo(): Promise<boolean> {\r\n return false;\r\n }\r\n\r\n setDecodePolicy(policy: DecodePolicy): void {\r\n // no-op for adapters that decode at one resolution\r\n }\r\n\r\n /** Read back so a caller that borrows the adapter can restore it. */\r\n getDecodePolicy(): DecodePolicy {\r\n return \"interactive\";\r\n }\r\n\r\n /** Whether the most recent render left decodes that {@link warmPendingDecodes} would settle. */\r\n hasPendingDecodes(): boolean {\r\n return false;\r\n }\r\n\r\n /**\r\n * Settle what the last render could not draw acceptably under the current\r\n * policy — video frames, every exact image level under `\"exact\"`, a source\r\n * drawn with nothing resident under `\"interactive\"` — and report whether there\r\n * was any. See `renderSettled`.\r\n *\r\n * Defaults to {@link warmPendingVideo} so an adapter written against it keeps\r\n * working; that alias goes away after one release.\r\n */\r\n async warmPendingDecodes(): Promise<boolean> {\r\n return this.warmPendingVideo();\r\n }\r\n\r\n /**\r\n * Whether an `\"interactive\"` decode is on its way that would draw the last\r\n * render sharper. Not something a paint waits for: a preview shows what is\r\n * resident and repaints when {@link warmPendingUpgrades} reports a landing.\r\n */\r\n hasPendingUpgrades(): boolean {\r\n return false;\r\n }\r\n\r\n /** Await the upgrades {@link hasPendingUpgrades} reports; whether one landed. */\r\n async warmPendingUpgrades(): Promise<boolean> {\r\n return false;\r\n }\r\n\r\n /**\r\n * Notify the adapter whether playback is live. Time-varying media (video) uses\r\n * this to prefetch ahead only while playing and to quiesce on pause, so a\r\n * paused timeline doesn't drain a backlog of stale decodes. No-op by default.\r\n */\r\n setPlaying(playing: boolean): void {\r\n // no-op for adapters with no time-varying media\r\n }\r\n\r\n // ─── Lifecycle ────────────────────────────────────────────────────────────\r\n\r\n dispose(): void {\r\n this.inFlightLoads.clear();\r\n this.cachedAssets.clear();\r\n }\r\n}\r\n", "/**\r\n * A flat animation driver. `advance(dt)` moves the animation forward by `dt`\r\n * seconds and returns `true` once it has completed (and applied its final\r\n * value). It must be primed at t=0 before the first `advance` so the starting\r\n * frame is correct — callers apply the initial value via `seek(0)`.\r\n *\r\n * `seek(elapsed)` is the absolute-time half, and is what a {@link Command}'s\r\n * `at` is built on: a stepper can be asked for any time, in any order, which is\r\n * what lets a timeline evaluate a frame without having played the ones before\r\n * it.\r\n */\r\n/** @internal */\r\nexport interface TweenStepper {\r\n /**\r\n * Jump to the value corresponding to `elapsed` seconds from the start.\r\n * Call with `0` to prime the stepper before the first {@link advance}.\r\n */\r\n seek(elapsed: number): void;\r\n /**\r\n * Advance the animation by `dt` seconds.\r\n * @returns `true` when the animation has finished and its final value has\r\n * been applied; `false` if it is still running.\r\n */\r\n advance(dt: number): boolean;\r\n}\r\n\r\n/**\r\n * Implemented by anything that can produce a {@link TweenStepper} — a\r\n * {@link Command}, and anything a host drives directly.\r\n */\r\nexport interface Steppable {\r\n /** Return a fresh stepper for a single playthrough of this animation. */\r\n _stepper(): TweenStepper;\r\n}\r\n\r\nexport function isSteppable(x: unknown): x is Steppable {\r\n return typeof (x as Steppable)?._stepper === \"function\";\r\n}\r\n", "import { integrateSpeedToClipTime, sourceTimeAtClipElapsed } from './attributes/audio/filters/curve';\r\nimport type { NodeEffect } from './attributes/shape/effects/union';\r\nimport { ClipTimeline } from './document/timeline';\r\nimport type { VisualDocument } from './document/types';\r\n\r\n// The names the document API had before \"scene\" became \"clip\", kept until 1.0.\r\n\r\n/** @deprecated Renamed to {@link VisualDocument}. */\r\nexport type SceneDocument = VisualDocument;\r\n/** @deprecated Renamed to {@link ClipTimeline}. */\r\nexport const SceneTimeline = ClipTimeline;\r\n/** @deprecated Renamed to {@link ClipTimeline}. */\r\nexport type SceneTimeline = ClipTimeline;\r\n/** @deprecated Renamed to {@link NodeEffect}. */\r\nexport type SceneEffect = NodeEffect;\r\n/** @deprecated Renamed to {@link integrateSpeedToClipTime}. */\r\nexport const integrateSpeedToSceneTime = integrateSpeedToClipTime;\r\n/** @deprecated Renamed to {@link sourceTimeAtClipElapsed}. */\r\nexport const sourceTimeAtSceneElapsed = sourceTimeAtClipElapsed;\r\n"],
|
|
5
|
+
"mappings": "2nIA6BM,SAAUA,MAAYC,EAAc,CACtC,OAAO,SAA+DC,EAAO,CACzE,IAAMC,EAAQD,EAAK,UACbE,EAAS,OAAO,OAAO,OAAO,eAAeD,CAAK,CAAW,EAC7DE,EAAQC,EAAgBF,CAAM,EAC9BG,EAAWC,EAAeJ,CAAM,EACtC,QAAWK,KAAOR,EAAM,CACpB,GAAIS,EAAYP,EAAOQ,EAAeF,CAAG,GAAKC,EAAYP,EAAOS,EAAcH,CAAG,EAC9E,MAAM,IAAI,MAAM,GAAGP,EAAK,IAAI,iCAAiCO,CAAG,IAAI,EAExE,IAAMI,EAAOR,EAAM,KAAMS,GAASA,EAAK,MAAQL,CAAG,EAC5CM,EAAUR,EAAS,KAAMO,GAASA,EAAK,MAAQL,CAAG,EACxD,GAAI,CAACI,GAAQ,CAACE,EAAS,MAAM,IAAI,MAAM,GAAGb,EAAK,IAAI,eAAeO,CAAG,+BAA+B,EAChGI,GAAMG,EAAsBb,EAAOQ,CAAa,EAAE,KAAK,CAAE,GAAGE,EAAM,UAAW,EAAI,CAAE,EACnFE,GAASC,EAAqBb,EAAOS,CAAY,EAAE,KAAK,CAAE,GAAGG,EAAS,UAAW,EAAI,CAAE,CAC/F,CACA,OAAOb,CACX,CACJ,CAEA,SAASQ,EAAYP,EAAgCc,EAAgBR,EAAW,CAC5E,OAAK,OAAO,UAAU,eAAe,KAAKN,EAAOc,CAAM,EAC/Cd,EAAMc,CAAM,EAA6C,KAAMH,GAASA,EAAK,MAAQL,GAAO,CAACK,EAAK,SAAS,EADlD,EAErE,CAEA,SAASE,EAAWb,EAAgCc,EAAc,CAC9D,OAAK,OAAO,UAAU,eAAe,KAAKd,EAAOc,CAAM,IAAGd,EAAMc,CAAM,EAAI,CAAA,GACnEd,EAAMc,CAAM,CACvB,CCzCO,IAAMC,GAAUC,EAYVC,GAAuBC,EC4D7B,IAAMC,EAA2B,CAAE,MAAO,KAAM,OAAQ,IAAI,EACtDC,EAAc,GAEdC,GAAoD,CAAE,SAAUF,EAAkB,IAAKC,CAAW,EAClGE,EAAgC,CAAE,MAAO,CAAA,EAAI,MAAO,CAAA,EAAI,MAAO,CAAA,EAAI,KAAM,CAAA,CAAE,EAiB3EC,EAAP,KAAa,CAKF,SAJJ,SACA,IAET,YACaC,EACTC,EAAyB,CAAA,EAAE,CADlB,KAAA,SAAAD,EAGT,KAAK,UAAY,IAAIE,EAAS,CAC1B,MAAOD,EAAQ,MACf,QAASA,EAAQ,QACjB,MAAOA,EAAQ,MACf,aAAcA,EAAQ,aACzB,EACD,KAAK,SAAWA,EAAQ,UAAYN,EACpC,KAAK,IAAMM,EAAQ,KAAOL,EAC1B,KAAK,UAAYK,EAAQ,UAAYH,EACrC,KAAK,UAAYE,EAAS,eAAc,CAC5C,CAGA,IAAI,UAAQ,CACR,OAAO,KAAK,SAChB,CAGA,IAAI,UAAQ,CACR,OAAO,KAAK,SAChB,CAMA,YAAYG,EAAuB,CAC/B,KAAK,UAAYA,EACjB,QAAWC,KAAU,KAAK,mBAAoBA,EAAOD,CAAQ,CACjE,CASA,KAAKF,EAAoB,CACrB,OAAO,IAAII,EAAQ,KAAgBJ,CAAO,CAC9C,CAGA,MAAMK,EAAW,CACb,OAAO,KAAK,UAAU,QAAQA,CAAG,CACrC,CAUA,IAAI,UAAQ,CACR,OAAO,KAAK,SAChB,CASA,MAAM,aACFC,EACAN,EAA+B,CAE/B,OAAI,OAAOM,GAAiB,SACjB,KAAK,UAAU,kBAAkBA,EAAcN,CAAO,GAEjE,KAAK,UAAU,QAAQM,EAAcN,CAAO,EACrCM,EACX,CAMA,eAAeD,EAAaE,EAAeP,EAA+B,CACtE,OAAO,KAAK,UAAU,UAAUK,EAAKE,EAAMP,CAAO,CACtD,CAEA,SAAO,CACH,KAAK,mBAAmB,MAAK,EAC7B,KAAK,SAAS,UAAS,CAC3B,CAUS,UACD,UACS,UAEA,mBAAqB,IAAI,IAG1C,kBAAkBG,EAAkC,CAChD,YAAK,mBAAmB,IAAIA,CAAM,EAC3B,IAAM,KAAK,mBAAmB,OAAOA,CAAM,CACtD,GCtNE,IAAgBK,EAAhB,KAAyB,CAU3B,IAAI,gBAAc,CACd,MAAO,EACX,CAkCA,SAASC,EAAc,CAAS,CAUhC,UAAUC,EAAc,CAAS,CAEjC,SAAO,CACH,KAAK,KAAI,CACb,GCpDE,IAAgBC,EAAhB,KAA8B,CACtB,QACA,SACV,YAAYC,EAAuBC,EAAgB,CAC/C,KAAK,QAAUD,EACf,KAAK,SAAWC,CACpB,CAeA,WAAWD,EAAqB,CAC5B,KAAK,QAAUA,CACnB,CAMU,cAAgB,IAAI,IAEpB,aAAe,IAAI,IAK7B,SAASE,EAAW,CAChB,OAAO,KAAK,aAAa,IAAIA,CAAG,CACpC,CAEA,MAAM,UAAUA,EAAaC,EAAkB,CAC3C,IAAMC,EAAW,KAAK,cAAc,IAAIF,CAAG,EAC3C,GAAIE,EAAU,OAAOA,EACrB,GAAI,KAAK,aAAa,IAAIF,CAAG,EAAG,OAEhC,IAAMG,EAAM,KAAK,QAAQH,EAAKC,CAAK,EACnC,KAAK,cAAc,IAAID,EAAKG,CAAG,EAC/B,GAAI,CACA,MAAMA,CACV,SACI,KAAK,cAAc,OAAOH,CAAG,CACjC,CACJ,CAEQ,MAAM,QAAQA,EAAaC,EAAkB,CACjD,IAAIG,EAAS,GACb,OAAQH,EAAM,KAAM,CAChB,IAAK,QACD,MAAM,KAAK,UAAUD,CAAG,EACxB,MACJ,IAAK,QACD,MAAM,KAAK,UAAUA,EAAKC,EAAM,WAAYA,EAAM,SAAUA,EAAM,UAAWA,EAAM,OAAO,EAC1F,MACJ,IAAK,OAAQ,CACT,GAAM,CAAE,WAAAI,EAAY,WAAAC,CAAU,EAAK,KAAK,aAAaN,CAAG,EAExD,GADAI,EAAS,MAAM,KAAK,SAASJ,EAAKK,EAAYC,CAAU,EACpD,CAACF,GAAU,KAAK,gBAAe,IAAO,QACtC,MAAM,IAAIG,EACN,OACAF,EACA,uCAAuCA,CAAU,8JAA8J,EAGvN,KACJ,CACA,IAAK,QAED,MACJ,IAAK,SAGD,MAAM,IAAI,MAAM,oEAAoE,EACxF,QAAS,CACL,IAAMG,EAAqBP,EAC3B,MAAM,IAAI,MAAM,2BAA4BO,EAA4B,IAAI,EAAE,CAClF,CACJ,CASIJ,GAAQ,KAAK,aAAa,IAAIJ,CAAG,CACzC,CAIU,aAAaA,EAAW,CAC9B,GAAM,CAACK,EAAYI,CAAS,EAAIT,EAAI,MAAM,GAAG,EACvCM,EAAaG,EAAY,SAASA,EAAW,EAAE,EAAI,IACzD,MAAO,CACH,WAAYJ,GAAcL,EAC1B,WAAY,MAAMM,CAAU,EAAI,IAAMA,EAE9C,CA2CA,MAAM,kBAAgB,CAClB,MAAO,EACX,CAEA,gBAAgBI,EAAoB,CAEpC,CAGA,iBAAe,CACX,MAAO,aACX,CAGA,mBAAiB,CACb,MAAO,EACX,CAWA,MAAM,oBAAkB,CACpB,OAAO,KAAK,iBAAgB,CAChC,CAOA,oBAAkB,CACd,MAAO,EACX,CAGA,MAAM,qBAAmB,CACrB,MAAO,EACX,CAOA,WAAWC,EAAgB,CAE3B,CAIA,SAAO,CACH,KAAK,cAAc,MAAK,EACxB,KAAK,aAAa,MAAK,CAC3B,GCjME,SAAUC,GAAYC,EAAU,CAClC,OAAO,OAAQA,GAAiB,UAAa,UACjD,CC3BO,IAAMC,GAAgBC,EAMhBC,GAA4BC,EAE5BC,GAA2BC",
|
|
6
|
+
"names": ["withdraw", "keys", "ctor", "proto", "parent", "props", "getPropertyMeta", "commands", "getCommandMeta", "key", "declaresOwn", "PROPERTY_META", "COMMAND_META", "prop", "meta", "command", "ownList", "symbol", "Precomp", "AssetTimeline", "createPrecompProfile", "createAssetTimelineProfile", "DEFAULT_VIEWPORT", "DEFAULT_FPS", "DEFAULT_OUTPUT", "EMPTY_MANIFEST", "Engine", "platform", "options", "Registry", "manifest", "notify", "Session", "key", "nodeOrSource", "pack", "AudioSink", "muted", "volume", "StorageAdapter", "catalog", "viewport", "key", "value", "existing", "job", "loaded", "fontFamily", "fontWeight", "AssetNotLoadedError", "_exhaustive", "weightStr", "policy", "playing", "isSteppable", "x", "SceneTimeline", "ClipTimeline", "integrateSpeedToSceneTime", "integrateSpeedToClipTime", "sourceTimeAtSceneElapsed", "sourceTimeAtClipElapsed"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r,c as m}from"./chunks/chunk-
|
|
1
|
+
import{a as r,c as m}from"./chunks/chunk-SFNJRPBV.js";import"./chunks/chunk-XAWE4EAK.js";export{m as Fragment,r as jsxDEV};
|
|
2
2
|
//# sourceMappingURL=jsx-jsx-dev-runtime.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c}from"./chunks/chunk-
|
|
1
|
+
import{a,b,c}from"./chunks/chunk-SFNJRPBV.js";import"./chunks/chunk-XAWE4EAK.js";export{c as Fragment,a as jsx,b as jsxs};
|
|
2
2
|
//# sourceMappingURL=jsx-jsx-runtime.js.map
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@motionscript/core",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.6",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": "dist/browser/index.js",
|
|
6
|
+
"./experimental": "dist/browser/experimental.js",
|
|
6
7
|
"./component": "dist/browser/component.js",
|
|
7
8
|
"./sdk": "dist/browser/sdk.js",
|
|
8
9
|
"./jsx/jsx-runtime": "dist/browser/jsx-jsx-runtime.js",
|
|
9
10
|
"./jsx/jsx-dev-runtime": "dist/browser/jsx-jsx-dev-runtime.js"
|
|
10
11
|
},
|
|
11
12
|
"peers": [],
|
|
12
|
-
"assets": {}
|
|
13
|
+
"assets": {},
|
|
14
|
+
"thirdParty": []
|
|
13
15
|
}
|
package/dist/browser/sdk.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{$ as
|
|
1
|
+
import{$ as Ye,Aa as Ro,Ab as ar,Ac as dr,Ba as yo,Bb as nr,Bc as xr,Ca as Io,Cb as sr,Cc as fr,Da as Vo,Db as pr,Dc as cr,E as Oe,Ea as Eo,Ec as ur,F as Te,Fa as Fo,G as Ae,Ga as Lo,H as Re,Ha as wo,Hb as mr,I as ye,Ia as jo,Ic as Dr,J as Ie,Jc as hr,K as Ve,L as Ee,M as Fe,Ma as ko,N as Le,Na as Go,O as we,Oa as Mo,P as Be,Pa as No,Q as je,R as ke,S as Me,Sa as bo,T as Ne,Ta as zo,U as be,Ua as Ho,Uc as Pr,V as Ke,Va as qo,Vc as Sr,W as Qe,Wa as Ko,Wc as Cr,X as _e,Xa as Qo,Xc as gr,Y as Je,Ya as _o,Yc as vr,Z as Ue,Zc as Or,_ as We,_c as Tr,aa as Ze,ba as $e,bb as Jo,d as Q,da as eo,ea as to,eb as Uo,fa as ao,fb as Wo,g as re,ga as no,gb as Xo,ha as so,hb as Yo,hc as ir,ia as po,ib as Zo,j as te,ja as mo,jb as $o,ka as io,la as lo,ma as xo,na as fo,oa as co,p as ue,pa as uo,qa as Do,ra as ho,sa as Po,ta as So,ua as Co,ub as er,va as go,wa as vo,xa as Oo,xb as or,ya as To,yb as rr,za as Ao,zb as tr,zc as lr}from"./chunks/chunk-DDJN3QII.js";import{$ as h,$a as N,D as p,E as m,Ea as y,Ec as de,F as i,Fb as _,Hb as J,Id as he,Ie as ro,Ja as I,Jc as xe,Jd as Pe,Ka as E,La as F,Lb as U,M as l,Ne as Bo,Pb as W,Qb as X,Qc as fe,Qd as Se,Rb as Y,Rc as ce,Rd as Ce,Sa as L,Ta as w,Tb as Z,U as d,V as x,W as f,Wa as j,Wb as $,Wd as ge,X as c,Xa as k,Xb as ee,Y as u,Ya as G,Yb as oe,Z as D,Za as M,a as e,aa as P,ab as b,bb as z,cb as H,ce as ve,d as r,da as S,db as q,e as t,ea as C,fa as g,ge as Ge,la as v,mb as K,o as s,oe as ze,pa as O,pe as He,qa as T,ra as A,sa as R,sd as De,ve as qe,we as Xe,xe as oo,yc as ie,zc as le}from"./chunks/chunk-EJDPYDQI.js";import"./chunks/chunk-DHB4COFY.js";import{a as o,c as a,g as n,l as V,m as B,u as ae,v as ne,x as se,y as pe,z as me}from"./chunks/chunk-2RIYH36X.js";import"./chunks/chunk-XAWE4EAK.js";export{d as AdjustmentChain,f as Adjustments,Ge as Aim,Ao as AmbientLight3D,Eo as AreaLight3D,Ze as AudioBus,K as AudioFilters,je as BooleanGroup,no as Box3D,Me as Camera,Fo as Camera3D,ue as Canvas2D,jo as Canvas3D,uo as Capsule3D,fo as Circle3D,xe as Clip,io as Cone3D,le as ContextMap,mo as Cylinder3D,Je as DefaultTextStyle,yo as DirectionalLight3D,m as EffectChain,i as Effects,Te as Ellipse,wo as Environment3D,Qo as ExpressionError,ho as Extrude3D,l as Fills,Se as Flow,Lo as Fog3D,or as Geo,C as Graphics2D,O as Graphics3D,to as Group3D,Ro as HemisphereLight3D,Le as Hexagon,u as ImageFilters,Co as Instances3D,Po as Lathe3D,vo as Line3D,ke as MaskGroup,rr as Mat,ro as Material,ao as Mesh3D,To as Model3D,Qe as NumberNode,we as Octagon,Ne as OrbitCamera,ge as Paint,Ie as Path,S as PathBuilder,ye as PathShape,Fe as Pentagon,po as Plane3D,Io as PointLight3D,go as Points3D,Ae as Polygon,Re as Polygram,Do as Polyhedron3D,Ue as Provider,Go as ROOT_NODE_ID,Tr as Random,Oe as Rect,Wo as Registry,T as RenderContext3D,_e as RichText,Ee as RightTriangle,co as Ring3D,be as RotatedBox,R as Scene3D,Or as SeedGenerator,ve as Shapes,Q as Sound,Ye as SoundNode,so as Sphere3D,Vo as SpotLight3D,Oo as Sprite3D,Be as Star,tr as Tex,Ke as Text,ze as TextLayout,De as TextSelection,We as ThemeProvider,lo as Torus3D,xo as TorusKnot3D,Ve as Triangle,So as Tube3D,qe as Typeface,Pe as Types,$e as Video,x as VideoAdjustmentChain,c as VideoAdjustments,D as VideoFilters,Bo as View3D,h as alignmentOps,Ko as asProjectDocument,Uo as assertValidDocument,dr as childPlanePointAt,B as clamp,hr as collectBoxes,s as colorOps,me as commandParallel,pe as commandSequence,zo as commandSpan,Ce as commandsFor,he as component2d,oo as component3d,Xe as componentAudio,r as cornerRadiusOps,t as cornerStyleOps,ie as createContext,vr as createRef,Ho as documentDuration,k as easeIn,M as easeInOut,G as easeOut,No as effectiveSpan,mr as evaluateParametric,nr as evaluateRoundedBox,_o as expressionOps,z as fadeIn,H as fadeOut,I as fillOps,fe as findNode2D,W as flowOps,ce as frameIn,gr as generateList,de as getCommandMeta,cr as handleValueAt,ko as hasTimeline,b as hold,P as insetsOps,ae as isCommand,q as isCurve,re as isKnownShaderProperty,qo as isProjectDocument,Z as lerpEuler3,o as lerpNumber,a as lerpVector2,Y as lerpVector3,j as linear,se as loopCommand,ne as makeCommand,ur as nodeBox,fr as nodeHandlesAt,Mo as nodeSpan,Xo as nodeTypeIsA,ee as normalizeQuaternion,te as normalizeShaderPack,Yo as parentIssue,lr as parentPlanePointAt,Sr as parseCSV,n as parseColor,Cr as parseData,V as pathOps,Dr as pickNode,ir as placeTracks,$o as placementIssues,He as provides,oe as quaternionFromEuler,N as ramp,xr as reparentPlacementAt,eo as resolveCameraPlacement,e as resolveCorners,y as resolveFill,v as resolveFill3D,Pr as resolveProjectDocument,p as resolveShaderProperties,E as resolveShadow,A as resolveShadows3D,L as resolveStroke,g as resolveSurfaceSource,X as resolveVector3,ar as segmentsOf,sr as shadowCasts,F as shadowOps,pr as shadowReceives,Zo as siblingIssue,J as sizeInputOps,$ as slerpQuaternion,_ as space3dOps,w as strokeOps,U as textOps,er as toPathString,bo as untimed,Jo as validateDocument};
|
|
2
2
|
//# sourceMappingURL=sdk.js.map
|