@motionscript/core 0.1.0-alpha.8 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/LICENSE +201 -201
- package/NOTICE +49 -49
- package/README.md +91 -91
- package/dist/assets/asset-index.js.map +1 -1
- package/dist/assets/catalog.js.map +1 -1
- package/dist/assets/errors.js.map +1 -1
- package/dist/assets/index.js.map +1 -1
- package/dist/assets/manager.js.map +1 -1
- package/dist/assets/manifest.js.map +1 -1
- package/dist/assets/record.js.map +1 -1
- package/dist/assets/scope.js.map +1 -1
- package/dist/attributes/audio/effects/chain.js.map +1 -1
- package/dist/attributes/audio/effects/implementations/echo.js.map +1 -1
- package/dist/attributes/audio/effects/implementations/gain.js.map +1 -1
- package/dist/attributes/audio/effects/implementations/highpass.js.map +1 -1
- package/dist/attributes/audio/effects/implementations/lowpass.js.map +1 -1
- package/dist/attributes/audio/effects/implementations/tremolo.js.map +1 -1
- package/dist/attributes/audio/effects/index.js.map +1 -1
- package/dist/attributes/audio/effects/registry.js.map +1 -1
- package/dist/attributes/audio/effects/union.js.map +1 -1
- package/dist/attributes/audio/ramp.js.map +1 -1
- package/dist/attributes/audio/request.js.map +1 -1
- package/dist/attributes/audio/schedule.js.map +1 -1
- package/dist/attributes/audio/sound.js.map +1 -1
- package/dist/attributes/audio/transition.js.map +1 -1
- package/dist/attributes/index.js.map +1 -1
- package/dist/attributes/layout/alignment.js.map +1 -1
- package/dist/attributes/layout/index.js.map +1 -1
- package/dist/attributes/layout/insets.js.map +1 -1
- package/dist/attributes/layout/matrix2d.js.map +1 -1
- package/dist/attributes/layout/size.js.map +1 -1
- package/dist/attributes/layout/space3d.js.map +1 -1
- package/dist/attributes/layout/transform3d.js.map +1 -1
- package/dist/attributes/layout/vector2.js.map +1 -1
- package/dist/attributes/layout/world-transform.js.map +1 -1
- package/dist/attributes/mask/boolean.js.map +1 -1
- package/dist/attributes/mask/mask.js.map +1 -1
- package/dist/attributes/properties/decorator.js.map +1 -1
- package/dist/attributes/properties/inputs.js.map +1 -1
- package/dist/attributes/properties/typed.js.map +1 -1
- 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.js.map +1 -1
- 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.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/curves.d.ts +2 -2
- 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.d.ts +2 -2
- 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.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/glow.d.ts +4 -4
- 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.d.ts +2 -2
- 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.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 +2 -2
- 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.js.map +1 -1
- package/dist/attributes/shape/effects/registry.js.map +1 -1
- package/dist/attributes/shape/effects/spec.js.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 +20 -5
- package/dist/attributes/shape/fill/color/parser.js.map +1 -1
- package/dist/attributes/shape/fill/gradient-stops.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/canvas3d.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/color.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/conic-gradient.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/dot-grid.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/fractal-noise.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/grid.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/image.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/linear-gradient.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/noise.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/radial-gradient.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/shader.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/stripe.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/video.js.map +1 -1
- package/dist/attributes/shape/fill/index.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.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.js.map +1 -1
- package/dist/attributes/shape/filters/registry.js.map +1 -1
- package/dist/attributes/shape/filters/union.js.map +1 -1
- package/dist/attributes/shape/path/anchors.js.map +1 -1
- package/dist/attributes/shape/path/bezier.js.map +1 -1
- package/dist/attributes/shape/path/index.js.map +1 -1
- package/dist/attributes/shape/path/measure.js.map +1 -1
- package/dist/attributes/shape/path/morph.js.map +1 -1
- package/dist/attributes/shape/path/ops.js.map +1 -1
- package/dist/attributes/shape/path/types.js.map +1 -1
- package/dist/attributes/shape/path/walk.js.map +1 -1
- package/dist/attributes/shape/shaders/index.js.map +1 -1
- package/dist/attributes/shape/shaders/language.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.js.map +1 -1
- package/dist/attributes/shape/stroke/stroke.js.map +1 -1
- package/dist/attributes/shared/operators.js.map +1 -1
- package/dist/attributes/text/index.js.map +1 -1
- package/dist/attributes/text/ops.js.map +1 -1
- package/dist/attributes/text/types.js.map +1 -1
- package/dist/browser/chunks/{chunk-LKUYVFU3.js → chunk-4BDLFEOC.js} +1 -1
- package/dist/browser/chunks/chunk-4BDLFEOC.js.map +7 -0
- package/dist/browser/chunks/chunk-CCGVIR4F.js +3 -0
- package/dist/browser/chunks/chunk-CCGVIR4F.js.map +7 -0
- package/dist/browser/chunks/chunk-N4WSN5WY.js +13 -0
- package/dist/browser/chunks/chunk-N4WSN5WY.js.map +7 -0
- package/dist/browser/chunks/chunk-WZSI3GSK.js +6 -0
- package/dist/browser/chunks/chunk-WZSI3GSK.js.map +7 -0
- package/dist/browser/component.js +1 -1
- package/dist/browser/experimental.js +1 -1
- package/dist/browser/experimental.js.map +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/manifest.json +1 -1
- package/dist/browser/sdk.js +1 -1
- package/dist/component.js.map +1 -1
- package/dist/components/builtins/audio/audio.js.map +1 -1
- package/dist/components/builtins/geometry/composite.js.map +1 -1
- package/dist/components/builtins/geometry/geometry.js.map +1 -1
- package/dist/components/builtins/geometry/shape-outline.js.map +1 -1
- package/dist/components/builtins/layout/layout.js.map +1 -1
- package/dist/components/builtins/media/media.js.map +1 -1
- package/dist/components/builtins/providers/providers.js.map +1 -1
- package/dist/components/builtins/text/number-format.js.map +1 -1
- package/dist/components/builtins/text/number-pattern.js.map +1 -1
- package/dist/components/builtins/text/text-defaults.js.map +1 -1
- package/dist/components/builtins/text/text-layout.js.map +1 -1
- package/dist/components/builtins/text/text.d.ts +9 -9
- package/dist/components/builtins/text/text.js.map +1 -1
- package/dist/components/builtins/three/canvas3d.js.map +1 -1
- package/dist/components/builtins/three/grid-geometry3d.js.map +1 -1
- package/dist/components/builtins/three/three.js.map +1 -1
- package/dist/components/factory/api.js.map +1 -1
- package/dist/components/factory/clip-of.js.map +1 -1
- package/dist/components/factory/commands-for.js.map +1 -1
- package/dist/components/factory/component-audio.js.map +1 -1
- package/dist/components/factory/component2d.js.map +1 -1
- package/dist/components/factory/component3d.js.map +1 -1
- package/dist/components/factory/factory.js.map +1 -1
- package/dist/components/factory/timeline.js.map +1 -1
- package/dist/components/factory/type-def.js.map +1 -1
- package/dist/components/factory/types.js.map +1 -1
- package/dist/components/factory/views.d.ts.map +1 -1
- package/dist/components/factory/views.js +41 -1
- package/dist/components/factory/views.js.map +1 -1
- package/dist/components/modules/aim.js.map +1 -1
- package/dist/components/modules/corners.js.map +1 -1
- package/dist/components/modules/flow.js.map +1 -1
- package/dist/components/modules/material.js.map +1 -1
- package/dist/components/modules/paint.js.map +1 -1
- package/dist/components/modules/shapes.js.map +1 -1
- package/dist/components/modules/text-layout.js.map +1 -1
- package/dist/components/modules/text-style.d.ts +1 -1
- package/dist/components/modules/text-style.js.map +1 -1
- package/dist/components/modules/three-entries.js.map +1 -1
- package/dist/components/modules/view3d.js.map +1 -1
- package/dist/components/trees/2d/group-bounds.js.map +1 -1
- package/dist/components/trees/2d/node-lifecycle.js.map +1 -1
- package/dist/components/trees/2d/node-motion.js.map +1 -1
- package/dist/components/trees/2d/node-render.js.map +1 -1
- package/dist/components/trees/2d/node-space.js.map +1 -1
- package/dist/components/trees/2d/node-transform.js.map +1 -1
- package/dist/components/trees/2d/node2d.js.map +1 -1
- package/dist/components/trees/audio/index.js.map +1 -1
- package/dist/components/trees/audio/node-audio.js.map +1 -1
- package/dist/components/trees/index.js.map +1 -1
- package/dist/components/trees/node/node-editor-state.js.map +1 -1
- package/dist/components/trees/node/node-reactive.d.ts +3 -4
- package/dist/components/trees/node/node-reactive.d.ts.map +1 -1
- package/dist/components/trees/node/node-reactive.js +13 -10
- package/dist/components/trees/node/node-reactive.js.map +1 -1
- package/dist/components/trees/node/node-time.js.map +1 -1
- package/dist/components/trees/node/node-walk.js.map +1 -1
- package/dist/components/trees/node/node.js.map +1 -1
- package/dist/components/trees/root/canvas2d-node.js.map +1 -1
- package/dist/components/trees/three/node3d.js.map +1 -1
- package/dist/document/audio.js.map +1 -1
- package/dist/document/builtins.js.map +1 -1
- package/dist/document/command-traits.d.ts +8 -0
- package/dist/document/command-traits.d.ts.map +1 -1
- package/dist/document/command-traits.js +17 -0
- package/dist/document/command-traits.js.map +1 -1
- package/dist/document/deny-globals.js.map +1 -1
- package/dist/document/diff.js.map +1 -1
- package/dist/document/doc-index.js.map +1 -1
- package/dist/document/expression/compile.js.map +1 -1
- package/dist/document/expression/index.js.map +1 -1
- package/dist/document/expression/ops.js.map +1 -1
- package/dist/document/expression/parse.js.map +1 -1
- package/dist/document/expression/refs.js.map +1 -1
- package/dist/document/expression/types.js.map +1 -1
- package/dist/document/expression/walk.js.map +1 -1
- package/dist/document/index.js.map +1 -1
- package/dist/document/migrate.js.map +1 -1
- package/dist/document/missing-node.js.map +1 -1
- package/dist/document/node-decorator.js.map +1 -1
- package/dist/document/node-descriptor.js.map +1 -1
- package/dist/document/placement.js.map +1 -1
- package/dist/document/project.js.map +1 -1
- package/dist/document/prop-evolution.js.map +1 -1
- package/dist/document/registry.js.map +1 -1
- package/dist/document/settled-index.d.ts +6 -0
- package/dist/document/settled-index.d.ts.map +1 -1
- package/dist/document/settled-index.js +18 -1
- package/dist/document/settled-index.js.map +1 -1
- package/dist/document/timeline-patch.js.map +1 -1
- package/dist/document/timeline.d.ts.map +1 -1
- package/dist/document/timeline.js +26 -6
- package/dist/document/timeline.js.map +1 -1
- package/dist/document/types.js.map +1 -1
- package/dist/document/validate.js.map +1 -1
- package/dist/document/vocabulary.js.map +1 -1
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/layout/bounds.js.map +1 -1
- package/dist/layout/constraints.js.map +1 -1
- package/dist/layout/flex.js.map +1 -1
- package/dist/layout/freeform.js.map +1 -1
- package/dist/layout/grid.js.map +1 -1
- package/dist/layout/index.js.map +1 -1
- package/dist/layout/item.js.map +1 -1
- package/dist/layout/ops.js.map +1 -1
- package/dist/layout/types.js.map +1 -1
- package/dist/platform/audio-sink.js.map +1 -1
- package/dist/platform/exporter.js.map +1 -1
- package/dist/platform/index.js.map +1 -1
- package/dist/platform/stepped-clock.js.map +1 -1
- package/dist/platform/storage-adapter.js.map +1 -1
- package/dist/platform/ticker.js.map +1 -1
- package/dist/project/config.js.map +1 -1
- package/dist/project/index.js.map +1 -1
- package/dist/project/tree.js.map +1 -1
- package/dist/props/host.d.ts +5 -0
- package/dist/props/host.d.ts.map +1 -1
- package/dist/props/host.js +3 -1
- package/dist/props/host.js.map +1 -1
- package/dist/props/index.js.map +1 -1
- package/dist/props/layout.d.ts +29 -0
- package/dist/props/layout.d.ts.map +1 -0
- package/dist/props/layout.js +84 -0
- package/dist/props/layout.js.map +1 -0
- package/dist/props/observer.js.map +1 -1
- package/dist/props/slot.js.map +1 -1
- package/dist/renamed-scene-names.js.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/line.js.map +1 -1
- package/dist/render/descriptors/path-builder.js.map +1 -1
- package/dist/render/descriptors/path.js.map +1 -1
- package/dist/render/descriptors/polygon.js.map +1 -1
- package/dist/render/descriptors/polygram.js.map +1 -1
- package/dist/render/descriptors/rect.js.map +1 -1
- package/dist/render/descriptors/richtext.js.map +1 -1
- package/dist/render/descriptors/shape.js.map +1 -1
- package/dist/render/descriptors/text.js.map +1 -1
- package/dist/render/descriptors/transform.js.map +1 -1
- package/dist/render/graphics2d.js.map +1 -1
- package/dist/render/index.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.js.map +1 -1
- package/dist/render/render-issue.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.js.map +1 -1
- package/dist/render3d/builders.js.map +1 -1
- package/dist/render3d/camera.js.map +1 -1
- package/dist/render3d/fill3d.js.map +1 -1
- package/dist/render3d/geometry.js.map +1 -1
- package/dist/render3d/graphics3d.js.map +1 -1
- package/dist/render3d/index.js.map +1 -1
- package/dist/render3d/inert.js.map +1 -1
- package/dist/render3d/light.js.map +1 -1
- package/dist/render3d/material.js.map +1 -1
- package/dist/render3d/matrix4.js.map +1 -1
- package/dist/render3d/render-context3d.js.map +1 -1
- package/dist/render3d/resources.js.map +1 -1
- package/dist/render3d/rounded-box.js.map +1 -1
- package/dist/render3d/scene-settings.js.map +1 -1
- package/dist/render3d/scene3d.js.map +1 -1
- package/dist/render3d/segments.js.map +1 -1
- package/dist/render3d/texture.js.map +1 -1
- package/dist/render3d/tracking.js.map +1 -1
- package/dist/render3d/transform.js.map +1 -1
- package/dist/render3d/vector3.js.map +1 -1
- package/dist/render3d/walk.js.map +1 -1
- package/dist/runtime/asset-refine.js.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.js.map +1 -1
- package/dist/runtime/clip-store.js.map +1 -1
- package/dist/runtime/engine.js.map +1 -1
- package/dist/runtime/frame-time.js.map +1 -1
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/node-picking.js.map +1 -1
- package/dist/runtime/node-picking3d.js.map +1 -1
- package/dist/runtime/placement.js.map +1 -1
- package/dist/runtime/playback-controller.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.js.map +1 -1
- package/dist/runtime/settle.js.map +1 -1
- package/dist/runtime/state-evaluator.js.map +1 -1
- package/dist/runtime/text-geometry.js.map +1 -1
- package/dist/sdk/index.js.map +1 -1
- package/dist/tween/command-decorator.js.map +1 -1
- package/dist/tween/command.js.map +1 -1
- package/dist/tween/ease/constants.js.map +1 -1
- package/dist/tween/ease/curve.js.map +1 -1
- package/dist/tween/ease/describe.js.map +1 -1
- package/dist/tween/ease/spec.js.map +1 -1
- 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.js.map +1 -1
- package/dist/tween/stepper.js.map +1 -1
- package/dist/tween/to-command.js.map +1 -1
- package/dist/util/clamp.js.map +1 -1
- package/dist/util/context.js.map +1 -1
- package/dist/util/csv.js.map +1 -1
- package/dist/util/generateList.js.map +1 -1
- package/dist/util/index.js.map +1 -1
- package/dist/util/metrics.js.map +1 -1
- package/dist/util/random.js.map +1 -1
- package/dist/util/reference.js.map +1 -1
- package/dist/util/scheduler.js.map +1 -1
- package/package.json +1 -1
- package/dist/attributes/audio/filters/chain.d.ts +0 -113
- package/dist/attributes/audio/filters/chain.d.ts.map +0 -1
- package/dist/attributes/audio/filters/chain.js +0 -104
- package/dist/attributes/audio/filters/chain.js.map +0 -1
- package/dist/attributes/audio/filters/curve.d.ts +0 -152
- package/dist/attributes/audio/filters/curve.d.ts.map +0 -1
- package/dist/attributes/audio/filters/curve.js +0 -250
- package/dist/attributes/audio/filters/curve.js.map +0 -1
- package/dist/attributes/audio/filters/implementations/echo.d.ts +0 -14
- package/dist/attributes/audio/filters/implementations/echo.d.ts.map +0 -1
- package/dist/attributes/audio/filters/implementations/echo.js +0 -11
- package/dist/attributes/audio/filters/implementations/echo.js.map +0 -1
- package/dist/attributes/audio/filters/implementations/gain.d.ts +0 -10
- package/dist/attributes/audio/filters/implementations/gain.d.ts.map +0 -1
- package/dist/attributes/audio/filters/implementations/gain.js +0 -6
- package/dist/attributes/audio/filters/implementations/gain.js.map +0 -1
- package/dist/attributes/audio/filters/implementations/highpass.d.ts +0 -12
- package/dist/attributes/audio/filters/implementations/highpass.d.ts.map +0 -1
- package/dist/attributes/audio/filters/implementations/highpass.js +0 -10
- package/dist/attributes/audio/filters/implementations/highpass.js.map +0 -1
- package/dist/attributes/audio/filters/implementations/lowpass.d.ts +0 -12
- package/dist/attributes/audio/filters/implementations/lowpass.d.ts.map +0 -1
- package/dist/attributes/audio/filters/implementations/lowpass.js +0 -10
- package/dist/attributes/audio/filters/implementations/lowpass.js.map +0 -1
- package/dist/attributes/audio/filters/implementations/speed.d.ts +0 -18
- package/dist/attributes/audio/filters/implementations/speed.d.ts.map +0 -1
- package/dist/attributes/audio/filters/implementations/speed.js +0 -6
- package/dist/attributes/audio/filters/implementations/speed.js.map +0 -1
- package/dist/attributes/audio/filters/implementations/tremolo.d.ts +0 -12
- package/dist/attributes/audio/filters/implementations/tremolo.d.ts.map +0 -1
- package/dist/attributes/audio/filters/implementations/tremolo.js +0 -10
- package/dist/attributes/audio/filters/implementations/tremolo.js.map +0 -1
- package/dist/attributes/audio/filters/index.d.ts +0 -22
- package/dist/attributes/audio/filters/index.d.ts.map +0 -1
- package/dist/attributes/audio/filters/index.js +0 -8
- package/dist/attributes/audio/filters/index.js.map +0 -1
- package/dist/attributes/audio/filters/registry.d.ts +0 -36
- package/dist/attributes/audio/filters/registry.d.ts.map +0 -1
- package/dist/attributes/audio/filters/registry.js +0 -82
- package/dist/attributes/audio/filters/registry.js.map +0 -1
- package/dist/attributes/audio/filters/union.d.ts +0 -18
- package/dist/attributes/audio/filters/union.d.ts.map +0 -1
- package/dist/attributes/audio/filters/union.js +0 -28
- package/dist/attributes/audio/filters/union.js.map +0 -1
- package/dist/attributes/shape/sksl-uniforms.d.ts +0 -146
- package/dist/attributes/shape/sksl-uniforms.d.ts.map +0 -1
- package/dist/attributes/shape/sksl-uniforms.js +0 -0
- package/dist/attributes/shape/sksl-uniforms.js.map +0 -1
- package/dist/browser/chunks/chunk-AOT33LMS.js +0 -13
- package/dist/browser/chunks/chunk-AOT33LMS.js.map +0 -7
- package/dist/browser/chunks/chunk-GKM6UZJR.js +0 -6
- package/dist/browser/chunks/chunk-GKM6UZJR.js.map +0 -7
- package/dist/browser/chunks/chunk-LKUYVFU3.js.map +0 -7
- package/dist/browser/chunks/chunk-ZRPZPWZU.js +0 -3
- package/dist/browser/chunks/chunk-ZRPZPWZU.js.map +0 -7
- package/dist/component/api.d.ts +0 -508
- package/dist/component/api.d.ts.map +0 -1
- package/dist/component/api.js +0 -4
- package/dist/component/api.js.map +0 -1
- package/dist/component/builtins/audio.d.ts +0 -26
- package/dist/component/builtins/audio.d.ts.map +0 -1
- package/dist/component/builtins/audio.js +0 -41
- package/dist/component/builtins/audio.js.map +0 -1
- package/dist/component/builtins/canvas3d.d.ts +0 -98
- package/dist/component/builtins/canvas3d.d.ts.map +0 -1
- package/dist/component/builtins/canvas3d.js +0 -21
- package/dist/component/builtins/canvas3d.js.map +0 -1
- package/dist/component/builtins/composite.d.ts +0 -56
- package/dist/component/builtins/composite.d.ts.map +0 -1
- package/dist/component/builtins/composite.js +0 -25
- package/dist/component/builtins/composite.js.map +0 -1
- package/dist/component/builtins/geometry.d.ts +0 -505
- package/dist/component/builtins/geometry.d.ts.map +0 -1
- package/dist/component/builtins/geometry.js +0 -107
- package/dist/component/builtins/geometry.js.map +0 -1
- package/dist/component/builtins/layout.d.ts +0 -88
- package/dist/component/builtins/layout.d.ts.map +0 -1
- package/dist/component/builtins/layout.js +0 -84
- package/dist/component/builtins/layout.js.map +0 -1
- package/dist/component/builtins/media.d.ts +0 -95
- package/dist/component/builtins/media.d.ts.map +0 -1
- package/dist/component/builtins/media.js +0 -149
- package/dist/component/builtins/media.js.map +0 -1
- package/dist/component/builtins/providers.d.ts +0 -23
- package/dist/component/builtins/providers.d.ts.map +0 -1
- package/dist/component/builtins/providers.js +0 -30
- package/dist/component/builtins/providers.js.map +0 -1
- package/dist/component/builtins/text.d.ts +0 -193
- package/dist/component/builtins/text.d.ts.map +0 -1
- package/dist/component/builtins/text.js +0 -113
- package/dist/component/builtins/text.js.map +0 -1
- package/dist/component/builtins/three.d.ts +0 -1085
- package/dist/component/builtins/three.d.ts.map +0 -1
- package/dist/component/builtins/three.js +0 -265
- package/dist/component/builtins/three.js.map +0 -1
- package/dist/component/clip-of.d.ts +0 -5
- package/dist/component/clip-of.d.ts.map +0 -1
- package/dist/component/clip-of.js +0 -33
- package/dist/component/clip-of.js.map +0 -1
- package/dist/component/commands-for.d.ts +0 -19
- package/dist/component/commands-for.d.ts.map +0 -1
- package/dist/component/commands-for.js +0 -5
- package/dist/component/commands-for.js.map +0 -1
- package/dist/component/component-audio.d.ts +0 -9
- package/dist/component/component-audio.d.ts.map +0 -1
- package/dist/component/component-audio.js +0 -18
- package/dist/component/component-audio.js.map +0 -1
- package/dist/component/component2d.d.ts +0 -9
- package/dist/component/component2d.d.ts.map +0 -1
- package/dist/component/component2d.js +0 -239
- package/dist/component/component2d.js.map +0 -1
- package/dist/component/component3d.d.ts +0 -9
- package/dist/component/component3d.d.ts.map +0 -1
- package/dist/component/component3d.js +0 -99
- package/dist/component/component3d.js.map +0 -1
- package/dist/component/factory.d.ts +0 -63
- package/dist/component/factory.d.ts.map +0 -1
- package/dist/component/factory.js +0 -313
- package/dist/component/factory.js.map +0 -1
- package/dist/component/modules/aim.d.ts +0 -30
- package/dist/component/modules/aim.d.ts.map +0 -1
- package/dist/component/modules/aim.js +0 -39
- package/dist/component/modules/aim.js.map +0 -1
- package/dist/component/modules/corners.d.ts +0 -13
- package/dist/component/modules/corners.d.ts.map +0 -1
- package/dist/component/modules/corners.js +0 -12
- package/dist/component/modules/corners.js.map +0 -1
- package/dist/component/modules/flow.d.ts +0 -26
- package/dist/component/modules/flow.d.ts.map +0 -1
- package/dist/component/modules/flow.js +0 -55
- package/dist/component/modules/flow.js.map +0 -1
- package/dist/component/modules/material.d.ts +0 -40
- package/dist/component/modules/material.d.ts.map +0 -1
- package/dist/component/modules/material.js +0 -75
- package/dist/component/modules/material.js.map +0 -1
- package/dist/component/modules/paint.d.ts +0 -71
- package/dist/component/modules/paint.d.ts.map +0 -1
- package/dist/component/modules/paint.js +0 -106
- package/dist/component/modules/paint.js.map +0 -1
- package/dist/component/modules/shapes.d.ts +0 -31
- package/dist/component/modules/shapes.d.ts.map +0 -1
- package/dist/component/modules/shapes.js +0 -43
- package/dist/component/modules/shapes.js.map +0 -1
- package/dist/component/modules/text-layout.d.ts +0 -26
- package/dist/component/modules/text-layout.d.ts.map +0 -1
- package/dist/component/modules/text-layout.js +0 -57
- package/dist/component/modules/text-layout.js.map +0 -1
- package/dist/component/modules/text-style.d.ts +0 -48
- package/dist/component/modules/text-style.d.ts.map +0 -1
- package/dist/component/modules/text-style.js +0 -63
- package/dist/component/modules/text-style.js.map +0 -1
- package/dist/component/modules/three-entries.d.ts +0 -23
- package/dist/component/modules/three-entries.d.ts.map +0 -1
- package/dist/component/modules/three-entries.js +0 -41
- package/dist/component/modules/three-entries.js.map +0 -1
- package/dist/component/modules/view3d.d.ts +0 -55
- package/dist/component/modules/view3d.d.ts.map +0 -1
- package/dist/component/modules/view3d.js +0 -160
- package/dist/component/modules/view3d.js.map +0 -1
- package/dist/component/timeline.d.ts +0 -22
- package/dist/component/timeline.d.ts.map +0 -1
- package/dist/component/timeline.js +0 -128
- package/dist/component/timeline.js.map +0 -1
- package/dist/component/type-def.d.ts +0 -26
- package/dist/component/type-def.d.ts.map +0 -1
- package/dist/component/type-def.js +0 -16
- package/dist/component/type-def.js.map +0 -1
- package/dist/component/types.d.ts +0 -91
- package/dist/component/types.d.ts.map +0 -1
- package/dist/component/types.js +0 -88
- package/dist/component/types.js.map +0 -1
- package/dist/component/views.d.ts +0 -121
- package/dist/component/views.d.ts.map +0 -1
- package/dist/component/views.js +0 -413
- package/dist/component/views.js.map +0 -1
- package/dist/document/withdraw.d.ts +0 -28
- package/dist/document/withdraw.d.ts.map +0 -1
- package/dist/document/withdraw.js +0 -61
- package/dist/document/withdraw.js.map +0 -1
- package/dist/jsx/jsx-dev-runtime.d.ts +0 -3
- package/dist/jsx/jsx-dev-runtime.d.ts.map +0 -1
- package/dist/jsx/jsx-dev-runtime.js +0 -3
- package/dist/jsx/jsx-dev-runtime.js.map +0 -1
- package/dist/jsx/jsx-runtime.d.ts +0 -27
- package/dist/jsx/jsx-runtime.d.ts.map +0 -1
- package/dist/jsx/jsx-runtime.js +0 -26
- package/dist/jsx/jsx-runtime.js.map +0 -1
- package/dist/nodes/2d/node-lifecycle.d.ts +0 -46
- package/dist/nodes/2d/node-lifecycle.d.ts.map +0 -1
- package/dist/nodes/2d/node-lifecycle.js +0 -264
- package/dist/nodes/2d/node-lifecycle.js.map +0 -1
- package/dist/nodes/2d/node-motion.d.ts +0 -56
- package/dist/nodes/2d/node-motion.d.ts.map +0 -1
- package/dist/nodes/2d/node-motion.js +0 -86
- package/dist/nodes/2d/node-motion.js.map +0 -1
- package/dist/nodes/2d/node-render.d.ts +0 -44
- package/dist/nodes/2d/node-render.d.ts.map +0 -1
- package/dist/nodes/2d/node-render.js +0 -80
- package/dist/nodes/2d/node-render.js.map +0 -1
- package/dist/nodes/2d/node-space.d.ts +0 -63
- package/dist/nodes/2d/node-space.d.ts.map +0 -1
- package/dist/nodes/2d/node-space.js +0 -131
- package/dist/nodes/2d/node-space.js.map +0 -1
- package/dist/nodes/2d/node-transform.d.ts +0 -55
- package/dist/nodes/2d/node-transform.d.ts.map +0 -1
- package/dist/nodes/2d/node-transform.js +0 -73
- package/dist/nodes/2d/node-transform.js.map +0 -1
- package/dist/nodes/2d/node2d.d.ts +0 -1111
- package/dist/nodes/2d/node2d.d.ts.map +0 -1
- package/dist/nodes/2d/node2d.js +0 -1665
- package/dist/nodes/2d/node2d.js.map +0 -1
- package/dist/nodes/2d/paint-node.d.ts +0 -142
- package/dist/nodes/2d/paint-node.d.ts.map +0 -1
- package/dist/nodes/2d/paint-node.js +0 -232
- package/dist/nodes/2d/paint-node.js.map +0 -1
- package/dist/nodes/audio/audio-bus.d.ts +0 -28
- package/dist/nodes/audio/audio-bus.d.ts.map +0 -1
- package/dist/nodes/audio/audio-bus.js +0 -33
- package/dist/nodes/audio/audio-bus.js.map +0 -1
- package/dist/nodes/audio/index.d.ts +0 -4
- package/dist/nodes/audio/index.d.ts.map +0 -1
- package/dist/nodes/audio/index.js +0 -2
- package/dist/nodes/audio/index.js.map +0 -1
- package/dist/nodes/audio/node-audio.d.ts +0 -107
- package/dist/nodes/audio/node-audio.d.ts.map +0 -1
- package/dist/nodes/audio/node-audio.js +0 -179
- package/dist/nodes/audio/node-audio.js.map +0 -1
- package/dist/nodes/audio/sound-node.d.ts +0 -41
- package/dist/nodes/audio/sound-node.d.ts.map +0 -1
- package/dist/nodes/audio/sound-node.js +0 -71
- package/dist/nodes/audio/sound-node.js.map +0 -1
- package/dist/nodes/geometry/boolean-node.d.ts +0 -28
- package/dist/nodes/geometry/boolean-node.d.ts.map +0 -1
- package/dist/nodes/geometry/boolean-node.js +0 -81
- package/dist/nodes/geometry/boolean-node.js.map +0 -1
- package/dist/nodes/geometry/bounds-shape-node.d.ts +0 -149
- package/dist/nodes/geometry/bounds-shape-node.d.ts.map +0 -1
- package/dist/nodes/geometry/bounds-shape-node.js +0 -181
- package/dist/nodes/geometry/bounds-shape-node.js.map +0 -1
- package/dist/nodes/geometry/box-path-node.d.ts +0 -89
- package/dist/nodes/geometry/box-path-node.d.ts.map +0 -1
- package/dist/nodes/geometry/box-path-node.js +0 -116
- package/dist/nodes/geometry/box-path-node.js.map +0 -1
- package/dist/nodes/geometry/ellipse-node.d.ts +0 -18
- package/dist/nodes/geometry/ellipse-node.d.ts.map +0 -1
- package/dist/nodes/geometry/ellipse-node.js +0 -45
- package/dist/nodes/geometry/ellipse-node.js.map +0 -1
- package/dist/nodes/geometry/group-bounds.d.ts +0 -56
- package/dist/nodes/geometry/group-bounds.d.ts.map +0 -1
- package/dist/nodes/geometry/group-bounds.js +0 -87
- package/dist/nodes/geometry/group-bounds.js.map +0 -1
- package/dist/nodes/geometry/mask-node.d.ts +0 -33
- package/dist/nodes/geometry/mask-node.d.ts.map +0 -1
- package/dist/nodes/geometry/mask-node.js +0 -66
- package/dist/nodes/geometry/mask-node.js.map +0 -1
- package/dist/nodes/geometry/path-node.d.ts +0 -26
- package/dist/nodes/geometry/path-node.d.ts.map +0 -1
- package/dist/nodes/geometry/path-node.js +0 -58
- package/dist/nodes/geometry/path-node.js.map +0 -1
- package/dist/nodes/geometry/polygon-node.d.ts +0 -26
- package/dist/nodes/geometry/polygon-node.d.ts.map +0 -1
- package/dist/nodes/geometry/polygon-node.js +0 -47
- package/dist/nodes/geometry/polygon-node.js.map +0 -1
- package/dist/nodes/geometry/polygram-node.d.ts +0 -33
- package/dist/nodes/geometry/polygram-node.d.ts.map +0 -1
- package/dist/nodes/geometry/polygram-node.js +0 -52
- package/dist/nodes/geometry/polygram-node.js.map +0 -1
- package/dist/nodes/geometry/rect-node.d.ts +0 -38
- package/dist/nodes/geometry/rect-node.d.ts.map +0 -1
- package/dist/nodes/geometry/rect-node.js +0 -56
- package/dist/nodes/geometry/rect-node.js.map +0 -1
- package/dist/nodes/geometry/shape-node.d.ts +0 -71
- package/dist/nodes/geometry/shape-node.d.ts.map +0 -1
- package/dist/nodes/geometry/shape-node.js +0 -140
- package/dist/nodes/geometry/shape-node.js.map +0 -1
- package/dist/nodes/geometry/shape-outline.d.ts +0 -93
- package/dist/nodes/geometry/shape-outline.d.ts.map +0 -1
- package/dist/nodes/geometry/shape-outline.js +0 -470
- package/dist/nodes/geometry/shape-outline.js.map +0 -1
- package/dist/nodes/index.d.ts +0 -53
- package/dist/nodes/index.d.ts.map +0 -1
- package/dist/nodes/index.js +0 -35
- package/dist/nodes/index.js.map +0 -1
- package/dist/nodes/layout/camera-node.d.ts +0 -80
- package/dist/nodes/layout/camera-node.d.ts.map +0 -1
- package/dist/nodes/layout/camera-node.js +0 -153
- package/dist/nodes/layout/camera-node.js.map +0 -1
- package/dist/nodes/layout/orbit-camera-node.d.ts +0 -80
- package/dist/nodes/layout/orbit-camera-node.d.ts.map +0 -1
- package/dist/nodes/layout/orbit-camera-node.js +0 -118
- package/dist/nodes/layout/orbit-camera-node.js.map +0 -1
- package/dist/nodes/layout/rotated-box.d.ts +0 -20
- package/dist/nodes/layout/rotated-box.d.ts.map +0 -1
- package/dist/nodes/layout/rotated-box.js +0 -76
- package/dist/nodes/layout/rotated-box.js.map +0 -1
- package/dist/nodes/media/video-node.d.ts +0 -229
- package/dist/nodes/media/video-node.d.ts.map +0 -1
- package/dist/nodes/media/video-node.js +0 -350
- package/dist/nodes/media/video-node.js.map +0 -1
- package/dist/nodes/node/declare-paints.d.ts +0 -19
- package/dist/nodes/node/declare-paints.d.ts.map +0 -1
- package/dist/nodes/node/declare-paints.js +0 -27
- package/dist/nodes/node/declare-paints.js.map +0 -1
- package/dist/nodes/node/node-editor-state.d.ts +0 -53
- package/dist/nodes/node/node-editor-state.d.ts.map +0 -1
- package/dist/nodes/node/node-editor-state.js +0 -23
- package/dist/nodes/node/node-editor-state.js.map +0 -1
- package/dist/nodes/node/node-reactive.d.ts +0 -89
- package/dist/nodes/node/node-reactive.d.ts.map +0 -1
- package/dist/nodes/node/node-reactive.js +0 -135
- package/dist/nodes/node/node-reactive.js.map +0 -1
- package/dist/nodes/node/node-time.d.ts +0 -39
- package/dist/nodes/node/node-time.d.ts.map +0 -1
- package/dist/nodes/node/node-time.js +0 -14
- package/dist/nodes/node/node-time.js.map +0 -1
- package/dist/nodes/node/node-walk.d.ts +0 -46
- package/dist/nodes/node/node-walk.d.ts.map +0 -1
- package/dist/nodes/node/node-walk.js +0 -74
- package/dist/nodes/node/node-walk.js.map +0 -1
- package/dist/nodes/node/node.d.ts +0 -445
- package/dist/nodes/node/node.d.ts.map +0 -1
- package/dist/nodes/node/node.js +0 -745
- package/dist/nodes/node/node.js.map +0 -1
- package/dist/nodes/node/text-defaults.d.ts +0 -32
- package/dist/nodes/node/text-defaults.d.ts.map +0 -1
- package/dist/nodes/node/text-defaults.js +0 -37
- package/dist/nodes/node/text-defaults.js.map +0 -1
- package/dist/nodes/root/canvas2d-node.d.ts +0 -163
- package/dist/nodes/root/canvas2d-node.d.ts.map +0 -1
- package/dist/nodes/root/canvas2d-node.js +0 -264
- package/dist/nodes/root/canvas2d-node.js.map +0 -1
- package/dist/nodes/root/provider-node.d.ts +0 -47
- package/dist/nodes/root/provider-node.d.ts.map +0 -1
- package/dist/nodes/root/provider-node.js +0 -63
- package/dist/nodes/root/provider-node.js.map +0 -1
- package/dist/nodes/root/theme-provider-node.d.ts +0 -29
- package/dist/nodes/root/theme-provider-node.d.ts.map +0 -1
- package/dist/nodes/root/theme-provider-node.js +0 -43
- package/dist/nodes/root/theme-provider-node.js.map +0 -1
- package/dist/nodes/text/default-text-style-node.d.ts +0 -103
- package/dist/nodes/text/default-text-style-node.d.ts.map +0 -1
- package/dist/nodes/text/default-text-style-node.js +0 -146
- package/dist/nodes/text/default-text-style-node.js.map +0 -1
- package/dist/nodes/text/number-format.d.ts +0 -66
- package/dist/nodes/text/number-format.d.ts.map +0 -1
- package/dist/nodes/text/number-format.js +0 -227
- package/dist/nodes/text/number-format.js.map +0 -1
- package/dist/nodes/text/number-node.d.ts +0 -94
- package/dist/nodes/text/number-node.d.ts.map +0 -1
- package/dist/nodes/text/number-node.js +0 -86
- package/dist/nodes/text/number-node.js.map +0 -1
- package/dist/nodes/text/number-pattern.d.ts +0 -51
- package/dist/nodes/text/number-pattern.d.ts.map +0 -1
- package/dist/nodes/text/number-pattern.js +0 -77
- package/dist/nodes/text/number-pattern.js.map +0 -1
- package/dist/nodes/text/richtext-node.d.ts +0 -68
- package/dist/nodes/text/richtext-node.d.ts.map +0 -1
- package/dist/nodes/text/richtext-node.js +0 -78
- package/dist/nodes/text/richtext-node.js.map +0 -1
- package/dist/nodes/text/text-base.d.ts +0 -118
- package/dist/nodes/text/text-base.d.ts.map +0 -1
- package/dist/nodes/text/text-base.js +0 -153
- package/dist/nodes/text/text-base.js.map +0 -1
- package/dist/nodes/text/text-layout.d.ts +0 -87
- package/dist/nodes/text/text-layout.d.ts.map +0 -1
- package/dist/nodes/text/text-layout.js +0 -368
- package/dist/nodes/text/text-layout.js.map +0 -1
- package/dist/nodes/text/text-node.d.ts +0 -84
- package/dist/nodes/text/text-node.d.ts.map +0 -1
- package/dist/nodes/text/text-node.js +0 -188
- package/dist/nodes/text/text-node.js.map +0 -1
- package/dist/nodes/text/text-selection.d.ts +0 -125
- package/dist/nodes/text/text-selection.d.ts.map +0 -1
- package/dist/nodes/text/text-selection.js +0 -209
- package/dist/nodes/text/text-selection.js.map +0 -1
- package/dist/nodes/three/camera-nodes.d.ts +0 -109
- package/dist/nodes/three/camera-nodes.d.ts.map +0 -1
- package/dist/nodes/three/camera-nodes.js +0 -112
- package/dist/nodes/three/camera-nodes.js.map +0 -1
- package/dist/nodes/three/canvas3d-node.d.ts +0 -295
- package/dist/nodes/three/canvas3d-node.d.ts.map +0 -1
- package/dist/nodes/three/canvas3d-node.js +0 -486
- package/dist/nodes/three/canvas3d-node.js.map +0 -1
- package/dist/nodes/three/drawable-nodes.d.ts +0 -173
- package/dist/nodes/three/drawable-nodes.d.ts.map +0 -1
- package/dist/nodes/three/drawable-nodes.js +0 -284
- package/dist/nodes/three/drawable-nodes.js.map +0 -1
- package/dist/nodes/three/environment-nodes.d.ts +0 -106
- package/dist/nodes/three/environment-nodes.d.ts.map +0 -1
- package/dist/nodes/three/environment-nodes.js +0 -134
- package/dist/nodes/three/environment-nodes.js.map +0 -1
- package/dist/nodes/three/geometry-nodes.d.ts +0 -197
- package/dist/nodes/three/geometry-nodes.d.ts.map +0 -1
- package/dist/nodes/three/geometry-nodes.js +0 -322
- package/dist/nodes/three/geometry-nodes.js.map +0 -1
- package/dist/nodes/three/grid-geometry3d.d.ts +0 -62
- package/dist/nodes/three/grid-geometry3d.d.ts.map +0 -1
- package/dist/nodes/three/grid-geometry3d.js +0 -114
- package/dist/nodes/three/grid-geometry3d.js.map +0 -1
- package/dist/nodes/three/group3d.d.ts +0 -23
- package/dist/nodes/three/group3d.d.ts.map +0 -1
- package/dist/nodes/three/group3d.js +0 -21
- package/dist/nodes/three/group3d.js.map +0 -1
- package/dist/nodes/three/light-nodes.d.ts +0 -120
- package/dist/nodes/three/light-nodes.d.ts.map +0 -1
- package/dist/nodes/three/light-nodes.js +0 -173
- package/dist/nodes/three/light-nodes.js.map +0 -1
- package/dist/nodes/three/mesh3d.d.ts +0 -117
- package/dist/nodes/three/mesh3d.d.ts.map +0 -1
- package/dist/nodes/three/mesh3d.js +0 -147
- package/dist/nodes/three/mesh3d.js.map +0 -1
- package/dist/nodes/three/node3d.d.ts +0 -230
- package/dist/nodes/three/node3d.d.ts.map +0 -1
- package/dist/nodes/three/node3d.js +0 -337
- package/dist/nodes/three/node3d.js.map +0 -1
- package/dist/render/descriptors/latex.d.ts +0 -6
- package/dist/render/descriptors/latex.d.ts.map +0 -1
- package/dist/render/descriptors/latex.js +0 -2
- package/dist/render/descriptors/latex.js.map +0 -1
- package/dist/tween/seekable.d.ts +0 -81
- package/dist/tween/seekable.d.ts.map +0 -1
- package/dist/tween/seekable.js +0 -137
- package/dist/tween/seekable.js.map +0 -1
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { PropSnapshot } from "../../props/slot.js";
|
|
2
|
-
import { PropHost } from "../../props/host.js";
|
|
3
|
-
import { EasingFunction } from "../../tween/ease/type.js";
|
|
4
|
-
import { type Command } from "../../tween/command.js";
|
|
5
|
-
import { TweenStepper } from "../../tween/stepper.js";
|
|
6
|
-
import { PropOptions } from "../../attributes/properties/decorator.js";
|
|
7
|
-
/**
|
|
8
|
-
* Companion implementation of {@link Node2D}'s property machinery and its
|
|
9
|
-
* save/restore state stack. The bodies live here as free functions over a
|
|
10
|
-
* narrow {@link ReactiveHost} so `node.ts` keeps only thin delegators (and the
|
|
11
|
-
* hot-path `set`/`_writeProp`, which stay inline on the class). Mirrors the
|
|
12
|
-
* existing `getPropSlot(host, name)` pattern in `props/host.ts`.
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* The slice of a {@link Node2D} these helpers touch: the {@link PropHost} maps
|
|
16
|
-
* plus the internal write/tween seams. `_writeProp` and `_prepareStep` remain
|
|
17
|
-
* methods on `Node2D`; the helpers call back through them so subclass behaviour
|
|
18
|
-
* and the inline hot path are preserved.
|
|
19
|
-
*/
|
|
20
|
-
/** @internal */
|
|
21
|
-
export interface ReactiveHost extends PropHost {
|
|
22
|
-
readonly id: string;
|
|
23
|
-
_writeProp(field: string, value: unknown): void;
|
|
24
|
-
_prepareStep(to: Record<string, unknown>, duration: number, easing?: EasingFunction): TweenStepper;
|
|
25
|
-
/** LIFO stack of save() snapshot layers; owned as an instance field on Node2D. */
|
|
26
|
-
_stateStack: Map<string, PropSnapshot<any>>[];
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Create the {@link PropSlot} + accessor for a freshly-declared prop and register
|
|
30
|
-
* its tween/mapper metadata. Extracted from `Node2D._registerProp`; defines the
|
|
31
|
-
* getter/setter on `host` so writes route through `host._writeProp`
|
|
32
|
-
* (mapper-aware, binding-aware).
|
|
33
|
-
*/
|
|
34
|
-
/** @internal */
|
|
35
|
-
export declare function registerProp<Int>(host: ReactiveHost, field: string, options?: PropOptions<any, Int>): void;
|
|
36
|
-
/**
|
|
37
|
-
* Apply (or re-apply) a prop's initial value plus optional tween/mapper. A first
|
|
38
|
-
* call creates the cell via {@link registerProp}; a subsequent call for the same
|
|
39
|
-
* field reuses the cell and only refines its tween/mapper (so a subclass can
|
|
40
|
-
* override a parent default without losing the cell or its bindings), then
|
|
41
|
-
* writes the value. Extracted from `Node2D.applyProp`.
|
|
42
|
-
*/
|
|
43
|
-
/** @internal */
|
|
44
|
-
export declare function applyProp<Ext, Int = Ext>(host: ReactiveHost, field: string, initial: Ext | (() => Ext) | undefined, options?: PropOptions<Ext, Int>): void;
|
|
45
|
-
/** Snapshot every registered prop's current value/binding into a plain object. */
|
|
46
|
-
/** @internal */
|
|
47
|
-
export declare function collectProperties(host: ReactiveHost): Record<string, any>;
|
|
48
|
-
/**
|
|
49
|
-
* Every declared prop of a node, captured as the value **or binding** its slot
|
|
50
|
-
* holds — see {@link Node2D.captureProps}, which is the public way to make one.
|
|
51
|
-
*
|
|
52
|
-
* Keyed by prop name. Opaque on purpose: what a slot holds is the *mapped*,
|
|
53
|
-
* internal form, and reading it out to write back through `set` is exactly the
|
|
54
|
-
* round-trip a layer exists to avoid.
|
|
55
|
-
*/
|
|
56
|
-
export type PropLayer = Map<string, PropSnapshot<any>>;
|
|
57
|
-
/** Snapshot every prop slot (value or binding) into a fresh layer. */
|
|
58
|
-
/** @internal */
|
|
59
|
-
export declare function captureLayer(host: ReactiveHost): PropLayer;
|
|
60
|
-
/** Push a snapshot of every prop slot (value or binding) onto the stack. */
|
|
61
|
-
/** @internal */
|
|
62
|
-
export declare function saveState(host: ReactiveHost): void;
|
|
63
|
-
/** Pop the top snapshot layer, or `undefined` if the stack is empty. */
|
|
64
|
-
/** @internal */
|
|
65
|
-
export declare function popState(host: ReactiveHost): PropLayer | undefined;
|
|
66
|
-
/** Instantly reapply a snapshot layer to every captured slot. */
|
|
67
|
-
/** @internal */
|
|
68
|
-
export declare function applySnapshotLayer(host: ReactiveHost, layer: PropLayer): void;
|
|
69
|
-
/**
|
|
70
|
-
* Animated restore: tween the numeric / custom-tweenable props toward their
|
|
71
|
-
* saved resolved values, then reapply the full snapshot so bindings are
|
|
72
|
-
* restored (not frozen at the tween's landing value) and non-tweened props snap.
|
|
73
|
-
*
|
|
74
|
-
* A {@link Command} rather than a generator: `_prepareStep`'s stepper already
|
|
75
|
-
* drives the tween as a pure function of elapsed time, so `driveCommand` wraps
|
|
76
|
-
* it directly and fires the snapshot reapply exactly at `t === 1` — the same
|
|
77
|
-
* "commit at the end, restore what came before below it" shape
|
|
78
|
-
* `packages/components/code`'s `runTransition` uses.
|
|
79
|
-
*
|
|
80
|
-
* `_prepareStep` is called **lazily, on the command's first evaluation**, not
|
|
81
|
-
* when this function runs — it snapshots each prop's `from` off the *live*
|
|
82
|
-
* node, and a generator's body (what this replaces) never ran a line until the
|
|
83
|
-
* caller's first `.next()` either. Building it eagerly would snapshot whatever
|
|
84
|
-
* the node happened to hold at `restore()`-call time instead of at first-drive
|
|
85
|
-
* time, which can differ if the caller does more to the node in between.
|
|
86
|
-
*/
|
|
87
|
-
/** @internal */
|
|
88
|
-
export declare function restoreAnimated(host: ReactiveHost, layer: PropLayer | undefined, duration: number, easing?: EasingFunction): Command<Record<string, never>>;
|
|
89
|
-
//# sourceMappingURL=node-reactive.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-reactive.d.ts","sourceRoot":"","sources":["../../../src/nodes/node/node-reactive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,YAAY,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAe,QAAQ,EAAW,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAgB,KAAK,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAEhE;;;;;;GAMG;AAEH;;;;;GAKG;AACH,gBAAgB;AAChB,MAAM,WAAW,YAAa,SAAQ,QAAQ;IAC1C,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IAChD,YAAY,CAAC,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,cAAc,GAAG,YAAY,CAAC;IACnG,kFAAkF;IAClF,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;CACjD;AAED;;;;;GAKG;AACH,gBAAgB;AAChB,wBAAgB,YAAY,CAAC,GAAG,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,IAAI,CAgB1G;AAED;;;;;;GAMG;AACH,gBAAgB;AAChB,wBAAgB,SAAS,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,EACpC,IAAI,EAAE,YAAY,EAClB,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,GAAG,GAAG,CAAC,MAAM,GAAG,CAAC,GAAG,SAAS,EACtC,OAAO,CAAC,EAAE,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,GAChC,IAAI,CAcN;AAED,kFAAkF;AAClF,gBAAgB;AAChB,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAQzE;AAID;;;;;;;GAOG;AACH,MAAM,MAAM,SAAS,GAAG,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;AAEvD,sEAAsE;AACtE,gBAAgB;AAChB,wBAAgB,YAAY,CAAC,IAAI,EAAE,YAAY,GAAG,SAAS,CAQ1D;AAED,4EAA4E;AAC5E,gBAAgB;AAChB,wBAAgB,SAAS,CAAC,IAAI,EAAE,YAAY,GAAG,IAAI,CAGlD;AAED,wEAAwE;AACxE,gBAAgB;AAChB,wBAAgB,QAAQ,CAAC,IAAI,EAAE,YAAY,GAAG,SAAS,GAAG,SAAS,CAElE;AAED,iEAAiE;AACjE,gBAAgB;AAChB,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,SAAS,GAAG,IAAI,CAM7E;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,gBAAgB;AAChB,wBAAgB,eAAe,CAC3B,IAAI,EAAE,YAAY,EAClB,KAAK,EAAE,SAAS,GAAG,SAAS,EAC5B,QAAQ,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,cAAc,GACxB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAkBhC"}
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { PropSlot } from "../../props/slot.js";
|
|
2
|
-
import { ensureCells } from "../../props/host.js";
|
|
3
|
-
import { driveCommand } from "../../tween/command.js";
|
|
4
|
-
/**
|
|
5
|
-
* Create the {@link PropSlot} + accessor for a freshly-declared prop and register
|
|
6
|
-
* its tween/mapper metadata. Extracted from `Node2D._registerProp`; defines the
|
|
7
|
-
* getter/setter on `host` so writes route through `host._writeProp`
|
|
8
|
-
* (mapper-aware, binding-aware).
|
|
9
|
-
*/
|
|
10
|
-
/** @internal */
|
|
11
|
-
export function registerProp(host, field, options) {
|
|
12
|
-
const slot = new PropSlot(undefined, host, field);
|
|
13
|
-
const cells = ensureCells(host);
|
|
14
|
-
cells.slots.set(field, slot);
|
|
15
|
-
if (options?.tween) {
|
|
16
|
-
(cells.tweens ??= new Map()).set(field, options.tween);
|
|
17
|
-
}
|
|
18
|
-
if (options?.mapper) {
|
|
19
|
-
(cells.mappers ??= new Map()).set(field, options.mapper);
|
|
20
|
-
}
|
|
21
|
-
Object.defineProperty(host, field, {
|
|
22
|
-
get: () => slot.get(),
|
|
23
|
-
set: (value) => host._writeProp(field, value),
|
|
24
|
-
enumerable: true,
|
|
25
|
-
configurable: true,
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Apply (or re-apply) a prop's initial value plus optional tween/mapper. A first
|
|
30
|
-
* call creates the cell via {@link registerProp}; a subsequent call for the same
|
|
31
|
-
* field reuses the cell and only refines its tween/mapper (so a subclass can
|
|
32
|
-
* override a parent default without losing the cell or its bindings), then
|
|
33
|
-
* writes the value. Extracted from `Node2D.applyProp`.
|
|
34
|
-
*/
|
|
35
|
-
/** @internal */
|
|
36
|
-
export function applyProp(host, field, initial, options) {
|
|
37
|
-
const existing = host.__cells?.slots.get(field);
|
|
38
|
-
if (!existing) {
|
|
39
|
-
registerProp(host, field, options);
|
|
40
|
-
}
|
|
41
|
-
else if (options) {
|
|
42
|
-
// Allow subclasses to refine tween/mapper on an inherited field.
|
|
43
|
-
if (options.tween) {
|
|
44
|
-
(ensureCells(host).tweens ??= new Map()).set(field, options.tween);
|
|
45
|
-
}
|
|
46
|
-
if (options.mapper) {
|
|
47
|
-
(ensureCells(host).mappers ??= new Map()).set(field, options.mapper);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
host._writeProp(field, initial);
|
|
51
|
-
}
|
|
52
|
-
/** Snapshot every registered prop's current value/binding into a plain object. */
|
|
53
|
-
/** @internal */
|
|
54
|
-
export function collectProperties(host) {
|
|
55
|
-
const result = {};
|
|
56
|
-
if (host.__cells) {
|
|
57
|
-
for (const key of host.__cells.slots.keys()) {
|
|
58
|
-
result[key] = host[key];
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
return result;
|
|
62
|
-
}
|
|
63
|
-
/** Snapshot every prop slot (value or binding) into a fresh layer. */
|
|
64
|
-
/** @internal */
|
|
65
|
-
export function captureLayer(host) {
|
|
66
|
-
const layer = new Map();
|
|
67
|
-
const slots = host.__cells?.slots;
|
|
68
|
-
if (!slots)
|
|
69
|
-
return layer;
|
|
70
|
-
for (const [key, slot] of slots) {
|
|
71
|
-
layer.set(key, slot.snapshot());
|
|
72
|
-
}
|
|
73
|
-
return layer;
|
|
74
|
-
}
|
|
75
|
-
/** Push a snapshot of every prop slot (value or binding) onto the stack. */
|
|
76
|
-
/** @internal */
|
|
77
|
-
export function saveState(host) {
|
|
78
|
-
if (!host.__cells)
|
|
79
|
-
return;
|
|
80
|
-
host._stateStack.push(captureLayer(host));
|
|
81
|
-
}
|
|
82
|
-
/** Pop the top snapshot layer, or `undefined` if the stack is empty. */
|
|
83
|
-
/** @internal */
|
|
84
|
-
export function popState(host) {
|
|
85
|
-
return host._stateStack.pop();
|
|
86
|
-
}
|
|
87
|
-
/** Instantly reapply a snapshot layer to every captured slot. */
|
|
88
|
-
/** @internal */
|
|
89
|
-
export function applySnapshotLayer(host, layer) {
|
|
90
|
-
const slots = host.__cells?.slots;
|
|
91
|
-
if (!slots)
|
|
92
|
-
return;
|
|
93
|
-
for (const [key, snap] of layer) {
|
|
94
|
-
slots.get(key)?.restoreFrom(snap);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Animated restore: tween the numeric / custom-tweenable props toward their
|
|
99
|
-
* saved resolved values, then reapply the full snapshot so bindings are
|
|
100
|
-
* restored (not frozen at the tween's landing value) and non-tweened props snap.
|
|
101
|
-
*
|
|
102
|
-
* A {@link Command} rather than a generator: `_prepareStep`'s stepper already
|
|
103
|
-
* drives the tween as a pure function of elapsed time, so `driveCommand` wraps
|
|
104
|
-
* it directly and fires the snapshot reapply exactly at `t === 1` — the same
|
|
105
|
-
* "commit at the end, restore what came before below it" shape
|
|
106
|
-
* `packages/components/code`'s `runTransition` uses.
|
|
107
|
-
*
|
|
108
|
-
* `_prepareStep` is called **lazily, on the command's first evaluation**, not
|
|
109
|
-
* when this function runs — it snapshots each prop's `from` off the *live*
|
|
110
|
-
* node, and a generator's body (what this replaces) never ran a line until the
|
|
111
|
-
* caller's first `.next()` either. Building it eagerly would snapshot whatever
|
|
112
|
-
* the node happened to hold at `restore()`-call time instead of at first-drive
|
|
113
|
-
* time, which can differ if the caller does more to the node in between.
|
|
114
|
-
*/
|
|
115
|
-
/** @internal */
|
|
116
|
-
export function restoreAnimated(host, layer, duration, easing) {
|
|
117
|
-
let stepper = null;
|
|
118
|
-
return driveCommand(duration, (t) => {
|
|
119
|
-
if (!stepper) {
|
|
120
|
-
// `to()` reads each snapshot's resolved `value` (correct even for a
|
|
121
|
-
// bound slot), so the node animates back to where it *was*.
|
|
122
|
-
const target = {};
|
|
123
|
-
if (layer) {
|
|
124
|
-
for (const [key, snap] of layer) {
|
|
125
|
-
target[key] = snap.value;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
stepper = host._prepareStep(target, duration);
|
|
129
|
-
}
|
|
130
|
-
stepper.seek(t * duration);
|
|
131
|
-
if (layer && t >= 1)
|
|
132
|
-
applySnapshotLayer(host, layer);
|
|
133
|
-
}, easing);
|
|
134
|
-
}
|
|
135
|
-
//# sourceMappingURL=node-reactive.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-reactive.js","sourceRoot":"","sources":["../../../src/nodes/node/node-reactive.ts"],"names":[],"mappings":"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","sourcesContent":["import { PropSlot, PropSnapshot } from \"@/props/slot\";\r\nimport { ensureCells, PropHost, TweenFn } from \"@/props/host\";\r\nimport { EasingFunction } from \"@/tween/ease/type\";\r\nimport { driveCommand, type Command } from \"@/tween/command\";\r\nimport { TweenStepper } from \"@/tween/stepper\";\r\nimport { PropOptions } from \"@/attributes/properties/decorator\";\r\n\r\n/**\r\n * Companion implementation of {@link Node2D}'s property machinery and its\r\n * save/restore state stack. The bodies live here as free functions over a\r\n * narrow {@link ReactiveHost} so `node.ts` keeps only thin delegators (and the\r\n * hot-path `set`/`_writeProp`, which stay inline on the class). Mirrors the\r\n * existing `getPropSlot(host, name)` pattern in `props/host.ts`.\r\n */\r\n\r\n/**\r\n * The slice of a {@link Node2D} these helpers touch: the {@link PropHost} maps\r\n * plus the internal write/tween seams. `_writeProp` and `_prepareStep` remain\r\n * methods on `Node2D`; the helpers call back through them so subclass behaviour\r\n * and the inline hot path are preserved.\r\n */\r\n/** @internal */\r\nexport interface ReactiveHost extends PropHost {\r\n readonly id: string;\r\n _writeProp(field: string, value: unknown): void;\r\n _prepareStep(to: Record<string, unknown>, duration: number, easing?: EasingFunction): TweenStepper;\r\n /** LIFO stack of save() snapshot layers; owned as an instance field on Node2D. */\r\n _stateStack: Map<string, PropSnapshot<any>>[];\r\n}\r\n\r\n/**\r\n * Create the {@link PropSlot} + accessor for a freshly-declared prop and register\r\n * its tween/mapper metadata. Extracted from `Node2D._registerProp`; defines the\r\n * getter/setter on `host` so writes route through `host._writeProp`\r\n * (mapper-aware, binding-aware).\r\n */\r\n/** @internal */\r\nexport function registerProp<Int>(host: ReactiveHost, field: string, options?: PropOptions<any, Int>): void {\r\n const slot = new PropSlot<Int>(undefined as unknown as Int, host, field);\r\n const cells = ensureCells(host);\r\n cells.slots.set(field, slot);\r\n if (options?.tween) {\r\n (cells.tweens ??= new Map()).set(field, options.tween as TweenFn<any>);\r\n }\r\n if (options?.mapper) {\r\n (cells.mappers ??= new Map()).set(field, options.mapper as (ext: any, prev?: any) => any);\r\n }\r\n Object.defineProperty(host, field, {\r\n get: () => slot.get(),\r\n set: (value: any) => host._writeProp(field, value),\r\n enumerable: true,\r\n configurable: true,\r\n });\r\n}\r\n\r\n/**\r\n * Apply (or re-apply) a prop's initial value plus optional tween/mapper. A first\r\n * call creates the cell via {@link registerProp}; a subsequent call for the same\r\n * field reuses the cell and only refines its tween/mapper (so a subclass can\r\n * override a parent default without losing the cell or its bindings), then\r\n * writes the value. Extracted from `Node2D.applyProp`.\r\n */\r\n/** @internal */\r\nexport function applyProp<Ext, Int = Ext>(\r\n host: ReactiveHost,\r\n field: string,\r\n initial: Ext | (() => Ext) | undefined,\r\n options?: PropOptions<Ext, Int>,\r\n): void {\r\n const existing = host.__cells?.slots.get(field);\r\n if (!existing) {\r\n registerProp<Int>(host, field, options);\r\n } else if (options) {\r\n // Allow subclasses to refine tween/mapper on an inherited field.\r\n if (options.tween) {\r\n (ensureCells(host).tweens ??= new Map()).set(field, options.tween as TweenFn<any>);\r\n }\r\n if (options.mapper) {\r\n (ensureCells(host).mappers ??= new Map()).set(field, options.mapper as (ext: any, prev?: any) => any);\r\n }\r\n }\r\n host._writeProp(field, initial);\r\n}\r\n\r\n/** Snapshot every registered prop's current value/binding into a plain object. */\r\n/** @internal */\r\nexport function collectProperties(host: ReactiveHost): Record<string, any> {\r\n const result: Record<string, any> = {};\r\n if (host.__cells) {\r\n for (const key of host.__cells.slots.keys()) {\r\n result[key] = (host as any)[key];\r\n }\r\n }\r\n return result;\r\n}\r\n\r\n// ---- State stack (save / restore) -----------------------------------------\r\n\r\n/**\r\n * Every declared prop of a node, captured as the value **or binding** its slot\r\n * holds — see {@link Node2D.captureProps}, which is the public way to make one.\r\n *\r\n * Keyed by prop name. Opaque on purpose: what a slot holds is the *mapped*,\r\n * internal form, and reading it out to write back through `set` is exactly the\r\n * round-trip a layer exists to avoid.\r\n */\r\nexport type PropLayer = Map<string, PropSnapshot<any>>;\r\n\r\n/** Snapshot every prop slot (value or binding) into a fresh layer. */\r\n/** @internal */\r\nexport function captureLayer(host: ReactiveHost): PropLayer {\r\n const layer: PropLayer = new Map();\r\n const slots = host.__cells?.slots;\r\n if (!slots) return layer;\r\n for (const [key, slot] of slots) {\r\n layer.set(key, slot.snapshot());\r\n }\r\n return layer;\r\n}\r\n\r\n/** Push a snapshot of every prop slot (value or binding) onto the stack. */\r\n/** @internal */\r\nexport function saveState(host: ReactiveHost): void {\r\n if (!host.__cells) return;\r\n host._stateStack.push(captureLayer(host));\r\n}\r\n\r\n/** Pop the top snapshot layer, or `undefined` if the stack is empty. */\r\n/** @internal */\r\nexport function popState(host: ReactiveHost): PropLayer | undefined {\r\n return host._stateStack.pop();\r\n}\r\n\r\n/** Instantly reapply a snapshot layer to every captured slot. */\r\n/** @internal */\r\nexport function applySnapshotLayer(host: ReactiveHost, layer: PropLayer): void {\r\n const slots = host.__cells?.slots;\r\n if (!slots) return;\r\n for (const [key, snap] of layer) {\r\n slots.get(key)?.restoreFrom(snap);\r\n }\r\n}\r\n\r\n/**\r\n * Animated restore: tween the numeric / custom-tweenable props toward their\r\n * saved resolved values, then reapply the full snapshot so bindings are\r\n * restored (not frozen at the tween's landing value) and non-tweened props snap.\r\n *\r\n * A {@link Command} rather than a generator: `_prepareStep`'s stepper already\r\n * drives the tween as a pure function of elapsed time, so `driveCommand` wraps\r\n * it directly and fires the snapshot reapply exactly at `t === 1` — the same\r\n * \"commit at the end, restore what came before below it\" shape\r\n * `packages/components/code`'s `runTransition` uses.\r\n *\r\n * `_prepareStep` is called **lazily, on the command's first evaluation**, not\r\n * when this function runs — it snapshots each prop's `from` off the *live*\r\n * node, and a generator's body (what this replaces) never ran a line until the\r\n * caller's first `.next()` either. Building it eagerly would snapshot whatever\r\n * the node happened to hold at `restore()`-call time instead of at first-drive\r\n * time, which can differ if the caller does more to the node in between.\r\n */\r\n/** @internal */\r\nexport function restoreAnimated(\r\n host: ReactiveHost,\r\n layer: PropLayer | undefined,\r\n duration: number,\r\n easing?: EasingFunction,\r\n): Command<Record<string, never>> {\r\n let stepper: TweenStepper | null = null;\r\n\r\n return driveCommand(duration, (t) => {\r\n if (!stepper) {\r\n // `to()` reads each snapshot's resolved `value` (correct even for a\r\n // bound slot), so the node animates back to where it *was*.\r\n const target: Record<string, unknown> = {};\r\n if (layer) {\r\n for (const [key, snap] of layer) {\r\n target[key] = snap.value;\r\n }\r\n }\r\n stepper = host._prepareStep(target, duration);\r\n }\r\n stepper.seek(t * duration);\r\n if (layer && t >= 1) applySnapshotLayer(host, layer);\r\n }, easing);\r\n}\r\n"]}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A node's place on the scene's clock, read via `node.time`.
|
|
3
|
-
*
|
|
4
|
-
* Advanced once per frame by `Node.attach`, and consumed by motion sampling,
|
|
5
|
-
* the render context's `elapsed`, and anything a node's own `tick()` derives
|
|
6
|
-
* from time.
|
|
7
|
-
*
|
|
8
|
-
* `creation` is seeded on the node's **first** advance rather than at
|
|
9
|
-
* construction, so `elapsed` measures how long a node has been *in the scene* —
|
|
10
|
-
* which is what an entrance animation, a video's playhead and a per-node
|
|
11
|
-
* dissolve all actually mean. A node built during the generator's third second
|
|
12
|
-
* and added then reads `elapsed === 0` on its first frame.
|
|
13
|
-
*/
|
|
14
|
-
export interface NodeTime {
|
|
15
|
-
/** Seconds since the clip started. */
|
|
16
|
-
readonly total: number;
|
|
17
|
-
/** The clip time at which this node was first advanced. */
|
|
18
|
-
readonly creation: number;
|
|
19
|
-
/** How long this node has existed: `total - creation`. */
|
|
20
|
-
readonly elapsed: number;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* The writable form the runtime advances. Nodes hand out {@link NodeTime}, which
|
|
24
|
-
* is the same shape with every field read-only.
|
|
25
|
-
*
|
|
26
|
-
* @internal
|
|
27
|
-
*/
|
|
28
|
-
export interface MutableNodeTime {
|
|
29
|
-
total: number;
|
|
30
|
-
creation: number;
|
|
31
|
-
elapsed: number;
|
|
32
|
-
/** Whether {@link advanceNodeTime} has seeded `creation` yet. */
|
|
33
|
-
started: boolean;
|
|
34
|
-
}
|
|
35
|
-
/** The zeroed holder a node keeps for its lifetime. @internal */
|
|
36
|
-
export declare function createNodeTime(): MutableNodeTime;
|
|
37
|
-
/** Advance `time` to `total` clip-seconds, seeding `creation` on first tick. @internal */
|
|
38
|
-
export declare function advanceNodeTime(time: MutableNodeTime, total: number): void;
|
|
39
|
-
//# sourceMappingURL=node-time.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-time.d.ts","sourceRoot":"","sources":["../../../src/nodes/node/node-time.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,QAAQ;IACrB,sCAAsC;IACtC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,2DAA2D;IAC3D,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,0DAA0D;IAC1D,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC5B;AAED;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,iEAAiE;IACjE,OAAO,EAAE,OAAO,CAAC;CACpB;AAED,iEAAiE;AACjE,wBAAgB,cAAc,IAAI,eAAe,CAEhD;AAED,0FAA0F;AAC1F,wBAAgB,eAAe,CAAC,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAO1E"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/** The zeroed holder a node keeps for its lifetime. @internal */
|
|
2
|
-
export function createNodeTime() {
|
|
3
|
-
return { total: 0, creation: 0, elapsed: 0, started: false };
|
|
4
|
-
}
|
|
5
|
-
/** Advance `time` to `total` clip-seconds, seeding `creation` on first tick. @internal */
|
|
6
|
-
export function advanceNodeTime(time, total) {
|
|
7
|
-
if (!time.started) {
|
|
8
|
-
time.creation = total;
|
|
9
|
-
time.started = true;
|
|
10
|
-
}
|
|
11
|
-
time.total = total;
|
|
12
|
-
time.elapsed = total - time.creation;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=node-time.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-time.js","sourceRoot":"","sources":["../../../src/nodes/node/node-time.ts"],"names":[],"mappings":"AAoCA,iEAAiE;AACjE,MAAM,UAAU,cAAc;IAC1B,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;AACjE,CAAC;AAED,0FAA0F;AAC1F,MAAM,UAAU,eAAe,CAAC,IAAqB,EAAE,KAAa;IAChE,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;QAChB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QACtB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;IACxB,CAAC;IACD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACnB,IAAI,CAAC,OAAO,GAAG,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC;AACzC,CAAC","sourcesContent":["/**\r\n * A node's place on the scene's clock, read via `node.time`.\r\n *\r\n * Advanced once per frame by `Node.attach`, and consumed by motion sampling,\r\n * the render context's `elapsed`, and anything a node's own `tick()` derives\r\n * from time.\r\n *\r\n * `creation` is seeded on the node's **first** advance rather than at\r\n * construction, so `elapsed` measures how long a node has been *in the scene* —\r\n * which is what an entrance animation, a video's playhead and a per-node\r\n * dissolve all actually mean. A node built during the generator's third second\r\n * and added then reads `elapsed === 0` on its first frame.\r\n */\r\nexport interface NodeTime {\r\n /** Seconds since the clip started. */\r\n readonly total: number;\r\n /** The clip time at which this node was first advanced. */\r\n readonly creation: number;\r\n /** How long this node has existed: `total - creation`. */\r\n readonly elapsed: number;\r\n}\r\n\r\n/**\r\n * The writable form the runtime advances. Nodes hand out {@link NodeTime}, which\r\n * is the same shape with every field read-only.\r\n *\r\n * @internal\r\n */\r\nexport interface MutableNodeTime {\r\n total: number;\r\n creation: number;\r\n elapsed: number;\r\n /** Whether {@link advanceNodeTime} has seeded `creation` yet. */\r\n started: boolean;\r\n}\r\n\r\n/** The zeroed holder a node keeps for its lifetime. @internal */\r\nexport function createNodeTime(): MutableNodeTime {\r\n return { total: 0, creation: 0, elapsed: 0, started: false };\r\n}\r\n\r\n/** Advance `time` to `total` clip-seconds, seeding `creation` on first tick. @internal */\r\nexport function advanceNodeTime(time: MutableNodeTime, total: number): void {\r\n if (!time.started) {\r\n time.creation = total;\r\n time.started = true;\r\n }\r\n time.total = total;\r\n time.elapsed = total - time.creation;\r\n}\r\n"]}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { AssetScope } from "../../assets/scope.js";
|
|
2
|
-
import type { Node } from "./node.js";
|
|
3
|
-
/**
|
|
4
|
-
* The subtree traversals the runtime drives, as free functions over a {@link Node}:
|
|
5
|
-
* what is left on `Node` is what a node *is*, and what is here is what the engine
|
|
6
|
-
* *does to* one. Every walk stops at an unmounted node — see {@link Node.mounted}.
|
|
7
|
-
*
|
|
8
|
-
* @internal
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* Declare one node's own assets — never its children's, so each node's
|
|
12
|
-
* declarations stay attributable to it.
|
|
13
|
-
*/
|
|
14
|
-
export declare function declareNode(node: Node, scope: AssetScope): void;
|
|
15
|
-
/** {@link declareNode} over `root` and every mounted descendant, in every dimension. */
|
|
16
|
-
export declare function declareTree(root: Node, scope: AssetScope): void;
|
|
17
|
-
/**
|
|
18
|
-
* Visit `root` and every mounted descendant with its structural path.
|
|
19
|
-
*
|
|
20
|
-
* Indexed over every dimension's children, so a path does not shift when a sibling
|
|
21
|
-
* of another dimension comes or goes the way a filtered `children` index would.
|
|
22
|
-
*/
|
|
23
|
-
export declare function forEachOwner(root: Node, visit: (node: Node, path: string) => void): void;
|
|
24
|
-
/**
|
|
25
|
-
* Bind `node` with `host`'s catalog, context and clock without adopting it — what a
|
|
26
|
-
* runtime passes as `AssetDeclaration`'s `bindSubtree` for a `Tex.surface` source.
|
|
27
|
-
*/
|
|
28
|
-
export declare function bindDetached(host: Node, node: Node): void;
|
|
29
|
-
/**
|
|
30
|
-
* Sample every node's derived render state (currently motion) for this frame.
|
|
31
|
-
*
|
|
32
|
-
* Normally done by `attach` as it advances the clock; this is the seam for the
|
|
33
|
-
* priming path, which needs the same state seeded without moving time (see
|
|
34
|
-
* `StateEvaluator.resetSlot`).
|
|
35
|
-
*/
|
|
36
|
-
export declare function sampleTree(node: Node): void;
|
|
37
|
-
/**
|
|
38
|
-
* Record the subtree's current positions as the motion history's previous frame,
|
|
39
|
-
* stamped `at`, deriving no velocity.
|
|
40
|
-
*
|
|
41
|
-
* The driven path calls this with the props evaluated one frame back, so the
|
|
42
|
-
* {@link sampleTree} that follows measures against the timeline rather than
|
|
43
|
-
* against wherever the playhead happened to be.
|
|
44
|
-
*/
|
|
45
|
-
export declare function primeMotionTree(node: Node, at: number): void;
|
|
46
|
-
//# sourceMappingURL=node-walk.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-walk.d.ts","sourceRoot":"","sources":["../../../src/nodes/node/node-walk.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEnC;;;;;;GAMG;AAEH;;;GAGG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,GAAG,IAAI,CAE/D;AAED,wFAAwF;AACxF,wBAAgB,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,GAAG,IAAI,CAK/D;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI,CAExF;AASD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,CAEzD;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAG3C;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI,CAG5D"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { nodePath } from "../../project/tree.js";
|
|
2
|
-
/**
|
|
3
|
-
* The subtree traversals the runtime drives, as free functions over a {@link Node}:
|
|
4
|
-
* what is left on `Node` is what a node *is*, and what is here is what the engine
|
|
5
|
-
* *does to* one. Every walk stops at an unmounted node — see {@link Node.mounted}.
|
|
6
|
-
*
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Declare one node's own assets — never its children's, so each node's
|
|
11
|
-
* declarations stay attributable to it.
|
|
12
|
-
*/
|
|
13
|
-
export function declareNode(node, scope) {
|
|
14
|
-
node.declareAssets(scope);
|
|
15
|
-
}
|
|
16
|
-
/** {@link declareNode} over `root` and every mounted descendant, in every dimension. */
|
|
17
|
-
export function declareTree(root, scope) {
|
|
18
|
-
if (!root.mounted)
|
|
19
|
-
return;
|
|
20
|
-
declareNode(root, scope);
|
|
21
|
-
const children = root._allChildren;
|
|
22
|
-
for (let i = 0; i < children.length; i++)
|
|
23
|
-
declareTree(children[i], scope);
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Visit `root` and every mounted descendant with its structural path.
|
|
27
|
-
*
|
|
28
|
-
* Indexed over every dimension's children, so a path does not shift when a sibling
|
|
29
|
-
* of another dimension comes or goes the way a filtered `children` index would.
|
|
30
|
-
*/
|
|
31
|
-
export function forEachOwner(root, visit) {
|
|
32
|
-
visitOwners(root, "", visit);
|
|
33
|
-
}
|
|
34
|
-
function visitOwners(node, path, visit) {
|
|
35
|
-
if (!node.mounted)
|
|
36
|
-
return;
|
|
37
|
-
visit(node, path);
|
|
38
|
-
const children = node._allChildren;
|
|
39
|
-
for (let i = 0; i < children.length; i++)
|
|
40
|
-
visitOwners(children[i], nodePath(path, i), visit);
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Bind `node` with `host`'s catalog, context and clock without adopting it — what a
|
|
44
|
-
* runtime passes as `AssetDeclaration`'s `bindSubtree` for a `Tex.surface` source.
|
|
45
|
-
*/
|
|
46
|
-
export function bindDetached(host, node) {
|
|
47
|
-
host.attachDetached(node);
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Sample every node's derived render state (currently motion) for this frame.
|
|
51
|
-
*
|
|
52
|
-
* Normally done by `attach` as it advances the clock; this is the seam for the
|
|
53
|
-
* priming path, which needs the same state seeded without moving time (see
|
|
54
|
-
* `StateEvaluator.resetSlot`).
|
|
55
|
-
*/
|
|
56
|
-
export function sampleTree(node) {
|
|
57
|
-
node._sample();
|
|
58
|
-
for (const child of node.children)
|
|
59
|
-
sampleTree(child);
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Record the subtree's current positions as the motion history's previous frame,
|
|
63
|
-
* stamped `at`, deriving no velocity.
|
|
64
|
-
*
|
|
65
|
-
* The driven path calls this with the props evaluated one frame back, so the
|
|
66
|
-
* {@link sampleTree} that follows measures against the timeline rather than
|
|
67
|
-
* against wherever the playhead happened to be.
|
|
68
|
-
*/
|
|
69
|
-
export function primeMotionTree(node, at) {
|
|
70
|
-
node._primeMotion(at);
|
|
71
|
-
for (const child of node.children)
|
|
72
|
-
primeMotionTree(child, at);
|
|
73
|
-
}
|
|
74
|
-
//# sourceMappingURL=node-walk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-walk.js","sourceRoot":"","sources":["../../../src/nodes/node/node-walk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAI1C;;;;;;GAMG;AAEH;;;GAGG;AACH,MAAM,UAAU,WAAW,CAAC,IAAU,EAAE,KAAiB;IACrD,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AAC9B,CAAC;AAED,wFAAwF;AACxF,MAAM,UAAU,WAAW,CAAC,IAAU,EAAE,KAAiB;IACrD,IAAI,CAAC,IAAI,CAAC,OAAO;QAAE,OAAO;IAC1B,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACzB,MAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,CAAC;IACnC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE;QAAE,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;AAC9E,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,YAAY,CAAC,IAAU,EAAE,KAAyC;IAC9E,WAAW,CAAC,IAAI,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;AACjC,CAAC;AAED,SAAS,WAAW,CAAC,IAAU,EAAE,IAAY,EAAE,KAAyC;IACpF,IAAI,CAAC,IAAI,CAAC,OAAO;QAAE,OAAO;IAC1B,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAClB,MAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,CAAC;IACnC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE;QAAE,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;AACjG,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAC,IAAU,EAAE,IAAU;IAC9C,IAAwD,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;AACnF,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,UAAU,CAAC,IAAU;IACjC,IAAI,CAAC,OAAO,EAAE,CAAC;IACf,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,QAAQ;QAAE,UAAU,CAAC,KAAK,CAAC,CAAC;AACzD,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,eAAe,CAAC,IAAU,EAAE,EAAU;IAClD,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;IACtB,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,QAAQ;QAAE,eAAe,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AAClE,CAAC","sourcesContent":["import { nodePath } from \"@/project/tree\";\r\nimport type { AssetScope } from \"@/assets/scope\";\r\nimport type { Node } from \"./node\";\r\n\r\n/**\r\n * The subtree traversals the runtime drives, as free functions over a {@link Node}:\r\n * what is left on `Node` is what a node *is*, and what is here is what the engine\r\n * *does to* one. Every walk stops at an unmounted node — see {@link Node.mounted}.\r\n *\r\n * @internal\r\n */\r\n\r\n/**\r\n * Declare one node's own assets — never its children's, so each node's\r\n * declarations stay attributable to it.\r\n */\r\nexport function declareNode(node: Node, scope: AssetScope): void {\r\n node.declareAssets(scope);\r\n}\r\n\r\n/** {@link declareNode} over `root` and every mounted descendant, in every dimension. */\r\nexport function declareTree(root: Node, scope: AssetScope): void {\r\n if (!root.mounted) return;\r\n declareNode(root, scope);\r\n const children = root._allChildren;\r\n for (let i = 0; i < children.length; i++) declareTree(children[i], scope);\r\n}\r\n\r\n/**\r\n * Visit `root` and every mounted descendant with its structural path.\r\n *\r\n * Indexed over every dimension's children, so a path does not shift when a sibling\r\n * of another dimension comes or goes the way a filtered `children` index would.\r\n */\r\nexport function forEachOwner(root: Node, visit: (node: Node, path: string) => void): void {\r\n visitOwners(root, \"\", visit);\r\n}\r\n\r\nfunction visitOwners(node: Node, path: string, visit: (node: Node, path: string) => void): void {\r\n if (!node.mounted) return;\r\n visit(node, path);\r\n const children = node._allChildren;\r\n for (let i = 0; i < children.length; i++) visitOwners(children[i], nodePath(path, i), visit);\r\n}\r\n\r\n/**\r\n * Bind `node` with `host`'s catalog, context and clock without adopting it — what a\r\n * runtime passes as `AssetDeclaration`'s `bindSubtree` for a `Tex.surface` source.\r\n */\r\nexport function bindDetached(host: Node, node: Node): void {\r\n (host as unknown as { attachDetached(node: Node): void }).attachDetached(node);\r\n}\r\n\r\n/**\r\n * Sample every node's derived render state (currently motion) for this frame.\r\n *\r\n * Normally done by `attach` as it advances the clock; this is the seam for the\r\n * priming path, which needs the same state seeded without moving time (see\r\n * `StateEvaluator.resetSlot`).\r\n */\r\nexport function sampleTree(node: Node): void {\r\n node._sample();\r\n for (const child of node.children) sampleTree(child);\r\n}\r\n\r\n/**\r\n * Record the subtree's current positions as the motion history's previous frame,\r\n * stamped `at`, deriving no velocity.\r\n *\r\n * The driven path calls this with the props evaluated one frame back, so the\r\n * {@link sampleTree} that follows measures against the timeline rather than\r\n * against wherever the playhead happened to be.\r\n */\r\nexport function primeMotionTree(node: Node, at: number): void {\r\n node._primeMotion(at);\r\n for (const child of node.children) primeMotionTree(child, at);\r\n}\r\n"]}
|