@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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node2d.js","sourceRoot":"","sources":["../../../src/nodes/2d/node2d.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAK/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACnG,OAAO,EAAE,mBAAmB,EAAiB,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC9F,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAM/F,OAAO,EAAa,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAExE,OAAO,EAAE,IAAI,EAAuD,MAAM,mBAAmB,CAAC;AAC9F,OAAO,EACH,YAAY,EACZ,SAAS,EACT,eAAe,EACf,MAAM,EAEN,QAAQ,GAEX,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAwB,MAAM,iCAAiC,CAAC;AAC1F,OAAO,EAAE,eAAe,EAAE,eAAe,EAAkC,MAAM,6BAA6B,CAAC;AAC/G,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,cAAc,EAAmB,MAAM,cAAc,CAAC;AAC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MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC;IAC1B,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;IACzB,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;IACtD,MAAM,MAAM,GAAG,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC;IAC9G,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,GAAG,OAAO,EAAE,CAAC;AAChH,CAAC","sourcesContent":["import { _observer, PropSlot } from \"@/props/slot\";\r\nimport { LAYOUT_SLOT } from \"@/props/observer\";\r\nimport { EasingFunction } from \"@/tween/ease/type\";\r\nimport { type Command, type CommandArgs } from \"@/tween/command\";\r\nimport { TweenStepper } from \"@/tween/stepper\";\r\nimport type { AssetScope } from \"@/assets/scope\";\r\nimport { AssetNotLoadedError } from \"@/assets/errors\";\r\nimport { property } from \"@/attributes/properties/decorator\";\r\nimport { effectsProperty, insetsProperty, alignmentProperty } from \"@/attributes/properties/typed\";\r\nimport { createMotionHistory, MotionHistory, sampleMotion, primeMotion } from \"./node-motion\";\r\nimport { addChildAtAnimated, removeChildAtAnimated, reparentAnimated } from \"./node-lifecycle\";\r\n\r\nimport type { NodeEffect } from \"@/attributes/shape/effects/union\";\r\nimport type { NodeBlendMode } from \"@/attributes/shape/fill/blend\";\r\nimport { BoxBounds } from \"@/layout/bounds\";\r\nimport { Vector2 } from \"@/attributes/layout/vector2\";\r\nimport { Alignment, alignmentOps } from \"@/attributes/layout/alignment\";\r\nimport type { WorldTransform } from \"@/attributes/layout/world-transform\";\r\nimport { Node, type NodeConfig, type NodeDimension, type NodeProps } from \"@/nodes/node/node\";\r\nimport {\r\n applyToPoint,\r\n facesAway,\r\n hasProjection3D,\r\n invert,\r\n Matrix2D,\r\n multiply,\r\n type Projection3D,\r\n} from \"@/attributes/layout/matrix2d\";\r\nimport { expandTransform3D, type NodeTransform3D } from \"@/attributes/layout/transform3d\";\r\nimport { multiplyAffine3, nodeSpaceMatrix, type Affine3, type SpaceCamera } from \"@/attributes/layout/space3d\";\r\nimport { localMatrix, rotateOffset, worldAnchors } from \"./node-transform\";\r\nimport { spaceChildFrame, spaceChildOrder, spaceRootFrame, type SpaceFrame } from \"./node-space\";\r\nimport {\r\n applyBackdropEffects as applyBackdropEffectsImpl,\r\n applyContentEffectScope,\r\n computeSpaceRects,\r\n} from \"./node-render\";\r\nimport { SizeConstraints } from \"@/layout/constraints\";\r\nimport { NodeRenderState, RenderContext2D, RenderPass2D, SpaceRects } from \"@/render/render-context2d\";\r\nimport { Clip } from \"@/render/clip\";\r\nimport { TransformState } from \"@/render/descriptors/transform\";\r\nimport { command } from \"@/tween/command-decorator\";\r\nimport { PathBuilder } from \"@/render/descriptors/path-builder\";\r\nimport type { PathData } from \"@/render/descriptors/path\";\r\nimport { pathOps } from \"@/attributes/shape/path/ops\";\r\nimport { Size2D, SizeInput, size2DOps, sizeInputOps } from \"@/attributes/layout/size\";\r\nimport { Effect } from \"@/attributes/shape/effects/chain\";\r\nimport { Insets, InsetsResolved, insetsOps } from \"@/attributes/layout/insets\";\r\nimport { lerpPerspective } from \"@/tween/lerp\";\r\nimport { MeasureContext2D } from \"@/render/measure-context\";\r\nimport { flowOps } from \"@/layout/ops\";\r\nimport type { FlowMeasure, FlowSettings } from \"@/layout/types\";\r\n\r\n/**\r\n * Stand-in for a node's reference rects when the context never reads them.\r\n * Shared and empty — `computeSpaceRects` returns the same shape for a node with\r\n * no parent, so consumers already handle it. See {@link Node2D.beforeRender}.\r\n */\r\nconst NO_SPACE_RECTS: SpaceRects = {};\r\n\r\n/** The node centre in the normalised `[-1, 1]` alignment space — `pivot`'s own default. */\r\nconst ORIGIN_2D: Vector2 = { x: 0, y: 0 };\r\n\r\n/**\r\n * Where a parent puts a child beyond the box it laid it out in: the turn, size,\r\n * tilt, depth and fade of a slot in an arrangement — a ring of cards, tiles on a\r\n * sphere. Applied about the box's centre and *before* the child's own\r\n * transform, so the child's `x`/`y`/`rotation`/`scale`, and every command on\r\n * them, keep working relative to the slot.\r\n *\r\n * Answered by the parent ({@link Node2D._placementOf}) rather than written onto\r\n * the child, so a child moved to another parent cannot carry a stale slot, and\r\n * read by the renderer, picking and `global` alike, so a selection box lands on\r\n * the pixels.\r\n */\r\nexport interface ChildPlacement {\r\n /** In-plane turn, degrees clockwise. */\r\n readonly rotation: number;\r\n readonly scale: number;\r\n /** Tilt, degrees — as the child's own `rotationX`/`rotationY`. */\r\n readonly rotationX: number;\r\n readonly rotationY: number;\r\n /** Push toward the viewer, px. Only a space gives it perspective. */\r\n readonly depth: number;\r\n /** Multiplies the child's own opacity. */\r\n readonly opacity: number;\r\n}\r\n\r\n/**\r\n * A parent's own coordinates for where its children sit — the units of a graph,\r\n * say. Position only: a child keeps its size, turn and scale, so a label on a\r\n * plot follows the plot's range without being stretched by it.\r\n *\r\n * Answered by the parent ({@link Node2D._planeOf}) for the reasons a slot is,\r\n * and read by the renderer, picking, `global` and `moveTo({ target })` alike.\r\n */\r\nexport interface ChildPlane {\r\n /** A child's `x`/`y` as a pixel offset, y-up, from the centre of its layout box. */\r\n toOffset(x: number, y: number): Vector2;\r\n /** The inverse: the `x`/`y` that put a child at that offset. */\r\n toCoords(x: number, y: number): Vector2;\r\n}\r\n\r\n/**\r\n * A point of a node an editor can drag to set one of its `Vector2` props: the\r\n * two ends of an arrow. `at` is in the node's own frame, y-up from its origin,\r\n * the frame {@link Node2D._localBounds} is in.\r\n */\r\nexport interface NodeHandle {\r\n readonly prop: string;\r\n readonly at: Vector2;\r\n}\r\n\r\nconst NO_HANDLES: readonly NodeHandle[] = [];\r\n\r\n// Filled per call and read synchronously by the matrix builders, like `_projectionScratch`.\r\nconst SLOT_PROJECTION: Projection3D = {\r\n rotationX: 0, rotationY: 0, rotationZ: 0, depth: 0, perspective: 0,\r\n flipHorizontal: false, flipVertical: false,\r\n};\r\n\r\nfunction slotProjection(placement: ChildPlacement): Projection3D {\r\n SLOT_PROJECTION.rotationX = placement.rotationX;\r\n SLOT_PROJECTION.rotationY = placement.rotationY;\r\n SLOT_PROJECTION.depth = placement.depth;\r\n return SLOT_PROJECTION;\r\n}\r\n\r\n/** No settings: centred freeform, which is how a plain node arranges its children. */\r\nconst DEFAULT_FLOW: FlowSettings = Object.freeze({});\r\n\r\nconst NO_CONTENT: Size2D = { width: 0, height: 0 };\r\n\r\n// WorldTransform, PropInput, and PropInputs now live in dedicated\r\n// modules (see imports above) and are re-exported below so existing\r\n// `from \".../node2d\"` imports keep resolving.\r\nexport { Node } from \"@/nodes/node/node\";\r\nexport type { NodeChildren, NodeConfig, NodeMetadata, NodeDimension, NodeProps } from \"@/nodes/node/node\";\r\nexport type { WorldTransform } from \"@/attributes/layout/world-transform\";\r\nexport type { PropInput, PropInputs } from \"@/attributes/properties/inputs\";\r\n\r\n/**\r\n * The camera props a node pushes around its children — the three inputs\r\n * `RenderContext2D.beginCamera` takes beyond the viewport rect. See\r\n * {@link Node2D._cameraScope}.\r\n */\r\n/** @internal */\r\nexport interface CameraScope {\r\n /** World point (y-up) the viewport centres on — what the camera is aimed at. */\r\n lookAt: Vector2;\r\n /** Uniform zoom factor. */\r\n zoom: number;\r\n /** Viewport rotation in degrees; the renderer applies it as `rotate(-heading)`. */\r\n heading: number;\r\n}\r\n\r\nexport interface Node2DProps extends NodeProps {\r\n x: number; // 0 is center, negative is left, positive is right\r\n y: number; // 0 is center, negative is down, positive is up\r\n width: SizeInput;\r\n height: SizeInput;\r\n /**\r\n * Per-child weight for the gap this node contributes to its parent's flex\r\n * run, `[0, 1]`. See the property's own note — set it to collapse a child\r\n * without the surrounding gap popping.\r\n */\r\n gapScale: number;\r\n /**\r\n * Sets `width` and `height` to the same value in one go. Pure sugar: at\r\n * construction time, an author-facing `size` is expanded into `width`/\r\n * `height` before either is applied. Explicit `width` or `height` takes\r\n * precedence over `size` (mirroring `padding`'s side-vs-shorthand rule),\r\n * so `{ size: 200, width: 100 }` yields `width: 100, height: 200`.\r\n * Reactive bindings and `to()`/`set()` targets both work the same as\r\n * `width`/`height` — `size: 'fill'`, `size: () => ...`, or\r\n * `node.to({ size: 300 }, 0.5)` are all valid.\r\n */\r\n size: SizeInput;\r\n scale: number;\r\n rotation: number;\r\n opacity: number;\r\n /** Layer blend mode. `'pass-through'` (default) does not isolate the node — its opacity scales each child/fill while they blend against the backdrop. Any other mode isolates the node and blends its flattened result against the backdrop. */\r\n blend: NodeBlendMode;\r\n effects: Effect;\r\n /** Inner spacing between this node's edges and its content/children. */\r\n padding: Insets;\r\n /** When true, content drawn outside this node's outline is clipped away (see {@link Node2D.clipSelf}). */\r\n clip: boolean;\r\n /**\r\n * Pivot point for rotation and scale. Either a **named alignment** (`'center'`,\r\n * `'topRight'`, `'bottomLeft'`, … — the node `align` vocabulary) or an explicit\r\n * {@link Vector2}: `(0,0)`=center, `(-1,1)`=top-left, `(1,-1)`=bottom-right. Set\r\n * automatically when an alignment *positioning* prop is used.\r\n */\r\n pivot: Alignment;\r\n\r\n // ---- Mirrors and the third dimension -----------------------------------\r\n // A node is a flat plane, and these are the CSS transform functions that\r\n // still apply to one: the two mirrors, the two out-of-plane rotations, a\r\n // push along the view axis and the perspective that makes it read as depth.\r\n // `rotation` supplies the Z axis (see `transform3D` for why there is no\r\n // `rotationZ` beside it), and every one of them turns about `pivot` — or\r\n // about `transformOrigin`, where that is set.\r\n\r\n /**\r\n * Mirror the node (and its whole subtree) across its vertical centre line.\r\n * The same thing CSS's `scaleX(-1)` is: text reads backwards, a left-pointing\r\n * arrow points right, and nothing about the node's box or its layout moves.\r\n */\r\n flipHorizontal: boolean;\r\n /** Mirror across the horizontal centre line — CSS's `scaleY(-1)`. See {@link flipHorizontal}. */\r\n flipVertical: boolean;\r\n /** Tilt about the horizontal axis, in **degrees**. Positive tips the top edge away from the viewer. */\r\n rotationX: number;\r\n /** Tilt about the vertical axis, in **degrees**. Positive swings the right edge away from the viewer. */\r\n rotationY: number;\r\n /**\r\n * In-plane rotation belonging to the 3D transform, in **degrees** clockwise —\r\n * the Z axis of the `rotateX · rotateY · rotateZ` block.\r\n *\r\n * **Not a second name for {@link rotation}.** The two are independent numbers\r\n * and editing one never moves the other. What separates them is which side of\r\n * the geometry/paint line they fall on: `rotation` turns the node's *shape*,\r\n * so its box turns with it and everything reading that box follows, while\r\n * this is part of the projection, which is paint (see `Node2D._localMatrix`).\r\n * Turning a node with `rotation` turns its selection outline; turning it with\r\n * `rotationZ` spins the picture inside a box that stays where it was.\r\n *\r\n * They compose the only way two rotations about one axis can — they add.\r\n */\r\n rotationZ: number;\r\n /**\r\n * Push along the view axis, in px — CSS's `translateZ`. Positive brings the\r\n * node toward the viewer, so it projects larger.\r\n *\r\n * **Inert without {@link perspective}.** With no perspective the projection is\r\n * parallel and z is simply dropped, exactly as in CSS: there is no viewpoint\r\n * for a thing to be nearer to.\r\n */\r\n depth: number;\r\n /**\r\n * Distance from the viewer to the plane the node sits in, in px. `0` (the\r\n * default) is no perspective at all — a parallel projection, where a tilt\r\n * squashes the node evenly rather than making its far edge recede.\r\n *\r\n * Smaller is more dramatic: the node subtends more of the field of view, so\r\n * the convergence is stronger. Somewhere around 800–1500 reads like a page\r\n * on a desk; a few hundred reads like a wide-angle lens.\r\n *\r\n * Declared per node rather than inherited from an ancestor, which is where\r\n * CSS puts it. A scene graph has no viewport element to hang it on, and a\r\n * node that carries its own is one that can be handed around, nested and\r\n * animated without its depth depending on where it was dropped.\r\n */\r\n perspective: number;\r\n /**\r\n * Whether the node still paints once it has turned past edge-on and is\r\n * showing its back — CSS's `backface-visibility`, defaulted the CSS way\r\n * (`visible`).\r\n *\r\n * Set it `false` for the card-flip: two nodes back to back, one at\r\n * `rotationY: 0` and one at `180`, each hidden exactly while the other faces\r\n * out. The test is the tilt alone (see `facesAway`) — a {@link flipHorizontal}\r\n * mirrors the node without turning it around, so it does not hide it.\r\n */\r\n backfaceVisible: boolean;\r\n /**\r\n * The point every rotation, scale and mirror turns about — CSS's\r\n * `transform-origin`, in the same `[-1, 1]` vocabulary as {@link pivot}\r\n * (a named alignment, or a {@link Vector2} where `(0,0)` is the centre).\r\n *\r\n * Unset (the default) it *is* the pivot, so a node keeps turning about\r\n * whatever its alignment positioning gave it and nothing changes. Set, it wins\r\n * for the whole transform rather than for the 3D half of it — one origin, the\r\n * way CSS has one. A second origin that only some of the rotations respected\r\n * would produce a picture nobody could predict.\r\n */\r\n transformOrigin: Alignment;\r\n /**\r\n * All of the above in one bag — construction sugar, expanded into the\r\n * individual props before anything reads them (exactly as {@link size} is\r\n * expanded into `width`/`height`), so `set()`, `to()` and reactive callbacks\r\n * all behave identically whichever form is used.\r\n *\r\n * ```ts\r\n * <Rect transform3D={{ rotationX: 45, rotationY: -17, perspective: 900 }} />\r\n * card().to({ transform3D: { rotationY: 180 } }, 0.8)\r\n * ```\r\n *\r\n * `rotationZ` is the block's own in-plane rotation and is **not** the node's\r\n * {@link rotation} under another name — see its note for what separates them.\r\n */\r\n transform3D: NodeTransform3D;\r\n\r\n // ---- Alignment-based positioning -----------------------------------------\r\n // Pass any one of these instead of (or in addition to) x/y.\r\n // The node will reactively offset itself so the named alignment lands at the\r\n // given scene-space position. Callbacks are supported and re-evaluated\r\n // whenever the referenced value or this node's layout changes.\r\n center: Vector2 | (() => Vector2);\r\n topLeft: Vector2 | (() => Vector2);\r\n topRight: Vector2 | (() => Vector2);\r\n bottomLeft: Vector2 | (() => Vector2);\r\n bottomRight: Vector2 | (() => Vector2);\r\n topCenter: Vector2 | (() => Vector2);\r\n bottomCenter: Vector2 | (() => Vector2);\r\n centerLeft: Vector2 | (() => Vector2);\r\n centerRight: Vector2 | (() => Vector2);\r\n\r\n /**\r\n * Proportional share of the free space along the parent's main axis,\r\n * relative to sibling `fill` children (like Flutter's `Expanded(flex:)`).\r\n * Only meaningful when this node fills the main axis — in a row that's\r\n * `width:'fill'`, in a column `height:'fill'`. Two siblings with `flex` 2\r\n * and 1 split the free space 2:1. Defaults to 1. Specifying `flex` without\r\n * an explicit `width`/`height` defaults both to `'fill'`.\r\n */\r\n flex: number;\r\n\r\n // ---- Grid placement (only read by a parent whose `flow` is 'grid') -------\r\n /** 1-based column index for explicit grid placement. Undefined = auto-placed. */\r\n column: number;\r\n /** 1-based row index for explicit grid placement. Undefined = auto-placed. */\r\n row: number;\r\n /** How many grid columns this child spans. Default 1. */\r\n colSpan: number;\r\n /** How many grid rows this child spans. Default 1. */\r\n rowSpan: number;\r\n}\r\n\r\n/**\r\n * Base class for all scene-graph nodes.\r\n *\r\n * Every visible or structural element in a scene extends `Node2D`. It wires\r\n * together three orthogonal systems:\r\n *\r\n * **Properties** — fields declared with `@property()` are backed by a\r\n * {@link PropSlot}, which holds either a value or a thunk. Use {@link set} to\r\n * update one or more props imperatively, or pass a callback `() => expr` to\r\n * bind the prop to a derived value, which recomputes on every read.\r\n *\r\n * **Tweening** — `to(props, duration, ease?)` returns a {@link Command}\r\n * that animates one or more props to target values over the given duration (in\r\n * seconds). It is evaluable at a time via `at(t)`. Numeric props are\r\n * interpolated; props that register a custom `tween` fn (via\r\n * `@property({ tween })`) can animate any value type. The convenience helpers\r\n * `moveTo`, `moveX`, `moveY`, `fadeTo`, `rotateTo`, and `scaleTo` wrap `to`\r\n * for the most common single-property animations.\r\n *\r\n * **Layout** — `measure()` is called top-down to resolve sizes, then\r\n * `layout()` places the node in its allocated `BoxBounds`. Children are\r\n * measured and laid out by the parent; the base class just stores the rect.\r\n *\r\n * ### Built-in visual props\r\n * | prop | default | unit / notes |\r\n * |-----------|----------|---------------------------------------|\r\n * | `x` | 0 | horizontal offset in scene pixels |\r\n * | `y` | 0 | vertical offset (positive = up) |\r\n * | `width` | `'fill'` | `SizeInput`: px, `'fill'`, `'auto'` |\r\n * | `height` | `'fill'` | same |\r\n * | `size` | — | sugar: sets `width` and `height` together |\r\n * | `scale` | 1 | uniform scale factor |\r\n * | `rotate` | 0 | degrees, clockwise |\r\n * | `opacity` | 1 | 0–1 |\r\n * | `blend` | `'pass-through'` | layer blend mode (`NodeBlendMode`) |\r\n * | `effects` | [] | post-process / blend effects |\r\n * | `padding` | 0 | inner spacing, all four edges |\r\n */export class Node2D<P extends Node2DProps = Node2DProps> extends Node<P> {\r\n get dimension(): NodeDimension { return \"2d\"; }\r\n\r\n /**\r\n * This node's parent, when that parent is itself 2D.\r\n *\r\n * A `Node2D` can only ever be adopted by another `Node2D` (see\r\n * {@link Node.acceptsChild}), so this is `null` only for a detached node or\r\n * the root — but it is typed honestly rather than cast, because the base\r\n * tree holds both dimensions.\r\n */\r\n protected get parent2D(): Node2D | null {\r\n const parent = this._parent;\r\n return parent instanceof Node2D ? parent : null;\r\n }\r\n\r\n /**\r\n * This node's parent, narrowed to the 2D tree.\r\n *\r\n * Only a `Node2D` can adopt a `Node2D` (see {@link Node.acceptsChild}), so\r\n * this never hides a real parent — it just spares every 2D caller a cast.\r\n */\r\n override get parent(): Node2D | null {\r\n if (_observer !== null) _observer.read(this._structureSlot());\r\n return this.parent2D;\r\n }\r\n\r\n /**\r\n * This node's children **in the 2D tree**.\r\n *\r\n * `Canvas3D` is the one node that holds both dimensions, and its `Node3D`\r\n * children are not part of the 2D tree — they describe a scene it paints,\r\n * not boxes it lays out — so they are reached through its own accessor\r\n * instead. Every other node's list is already 2D, and this returns the live\r\n * array untouched in that case rather than allocating a copy per read.\r\n */\r\n override get children(): Node2D[] {\r\n if (_observer !== null) _observer.read(this._structureSlot());\r\n const all = this._children;\r\n for (let i = 0; i < all.length; i++) {\r\n if (!(all[i] instanceof Node2D)) {\r\n return all.filter((c): c is Node2D => c instanceof Node2D);\r\n }\r\n }\r\n return all as Node2D[];\r\n }\r\n\r\n constructor(props?: NodeConfig<any, P>) {\r\n super(props);\r\n\r\n // Expand the `size` and `transform3D` sugar into the props they name\r\n // before anything reads either — in place, so the single object `super()`\r\n // retained as `_props` already carries the expanded values.\r\n if (props) {\r\n size2DOps.expand(props as Record<string, unknown>);\r\n expandTransform3D(props as Record<string, unknown>);\r\n }\r\n\r\n // Fires the ref, adopts the seed, and applies every `@property` default.\r\n // Deferred to here rather than run by `super()` because the cells those\r\n // props write into are this class's own fields, and a subclass's field\r\n // initializers only run once `super()` has returned.\r\n this.initProps(props);\r\n\r\n // Specifying `flex` signals intent to fill the parent's main axis, so an\r\n // unspecified width/height defaults to 'fill' (flex is a no-op on a\r\n // fixed/hug axis) and skips the has-children default below.\r\n if (props && (props as any).flex !== undefined) {\r\n if (props.width === undefined) this.applyProp(\"width\", \"fill\", { tween: sizeInputOps.lerp });\r\n if (props.height === undefined) this.applyProp(\"height\", \"fill\", { tween: sizeInputOps.lerp });\r\n } else {\r\n this.applyDefaultSize(props);\r\n }\r\n\r\n // Alignment-based positioning: validate, derive pivot, bind x/y. The pivot\r\n // and centre offset math lives in alignmentOps (shared with the\r\n // `to()` path); here we use its reactive binding form.\r\n if (props) {\r\n alignmentOps.validateProps(props as Record<string, unknown>);\r\n const alignmentKey = alignmentOps.findKey(props as Record<string, unknown>);\r\n if (alignmentKey) {\r\n const raw = (props as any)[alignmentKey] as Vector2 | (() => Vector2);\r\n const getTarget: () => Vector2 = typeof raw === 'function' ? raw : () => raw;\r\n const { pivot, x, y } = alignmentOps.bindTarget(alignmentKey, getTarget, () => this._layoutBounds.get());\r\n this._writeProp('pivot', pivot);\r\n this._writeProp('x', x);\r\n this._writeProp('y', y);\r\n }\r\n }\r\n\r\n this.adoptChildrenProp(props);\r\n }\r\n\r\n /**\r\n * The 2D half of `set()`: `size` and `transform3D` are sugar with no slot of\r\n * their own, so they are distributed into the props that do have one before\r\n * the generic write loop runs.\r\n */\r\n override set(props: { [K in keyof P]?: P[K] | (() => P[K]) }): void {\r\n // `size` has no slot of its own — it's sugar written straight to\r\n // width/height (explicit width/height in the same call still wins).\r\n const sizeVal = (props as any).size;\r\n // Same for `transform3D`, but expanded up front rather than after the\r\n // loop: its fields are real props, so distributing them into `props`\r\n // first means the generic loop writes them like any other key. Only the\r\n // present-and-an-object case allocates, which is the rare one.\r\n if ((props as any).transform3D !== undefined) {\r\n props = { ...props };\r\n expandTransform3D(props as Record<string, unknown>);\r\n }\r\n super.set(props);\r\n if (sizeVal !== undefined) {\r\n if ((props as any).width === undefined) this._writeProp('width', sizeVal);\r\n if ((props as any).height === undefined) this._writeProp('height', sizeVal);\r\n }\r\n }\r\n\r\n /**\r\n * The 2D half of `_prepareStep`: expand the positional sugar into the props\r\n * that actually have cells, then let the base resolve the step.\r\n *\r\n * `to` is mutated in place, so the base sees the expanded target — which is\r\n * why this can run entirely before `super`.\r\n */\r\n override _prepareStep(to: Partial<P>, duration: number, easing?: EasingFunction): TweenStepper {\r\n // `size` has no slot of its own — expand it into width/height targets\r\n // before anchor validation and the per-key tween setup below see it.\r\n // `transform3D` is sugar in the same way, so it expands here too and its\r\n // fields tween individually, exactly as if they had been named directly.\r\n size2DOps.expand(to as Record<string, unknown>);\r\n expandTransform3D(to as Record<string, unknown>);\r\n\r\n // `pivot`: an explicit, transient origin for *this step's* rotation and\r\n // scale — `moveTo`/`rotateTo`/`scaleTo`'s own option (see their object-form\r\n // overloads below), or just as well a bare key on a `to()` target. Not a\r\n // real prop — nothing on the node holds a value named `pivot` that a tween\r\n // interpolates — so it's read and stripped before anything else here (the\r\n // alignment validation included) ever sees it.\r\n const explicitPivot = (to as { pivot?: Alignment }).pivot;\r\n if (explicitPivot !== undefined) delete (to as { pivot?: Alignment }).pivot;\r\n\r\n alignmentOps.validateProps(to as Record<string, unknown>);\r\n\r\n // If an alignment key is in the tween target, resolve it to x/y targets and\r\n // set the transform origin (one-shot form of the shared alignment math in\r\n // alignmentOps).\r\n const alignmentKey = alignmentOps.findKey(to as Record<string, unknown>);\r\n if (alignmentKey) {\r\n const raw = (to as any)[alignmentKey] as Vector2;\r\n const { pivot, x, y } = alignmentOps.resolveTargetOnce(alignmentKey, this._layoutBounds.get(), raw);\r\n // Was `this._writeProp('pivot', pivot)`. `pivot` is the node's\r\n // *permanent* rotation/scale origin — set once, reactively, at\r\n // construction (see `alignmentOps.bindTarget`) from whichever alignment prop\r\n // positions it there. A *tween's* target used to overwrite that\r\n // permanent value with its own alignment every time one was used to\r\n // state a position, which means a `moveTo` aligned differently from\r\n // the node quietly re-pointed every rotation that ran after it.\r\n // `transformOrigin` (see its own doc) is the right prop for this\r\n // instead: it wins for the whole transform without being the node's\r\n // one true pivot. An explicit `pivot` given on this same step (via\r\n // `moveTo`/`rotateTo`/`scaleTo`'s object form) overrides the\r\n // alignment-derived value in turn — the point a position is stated\r\n // against and the point a rotation turns about are two different\r\n // questions once a step can state them separately.\r\n this._writeProp('transformOrigin', explicitPivot !== undefined ? alignmentOps.resolve(explicitPivot) : pivot);\r\n (to as any).x = x;\r\n (to as any).y = y;\r\n } else if (explicitPivot !== undefined) {\r\n this._writeProp('transformOrigin', alignmentOps.resolve(explicitPivot));\r\n }\r\n\r\n return super._prepareStep(to, duration, easing);\r\n }\r\n\r\n /**\r\n * {@link PaintNode} adds `fill`/`stroke`/`shadow` and {@link ShapeNode} `overlay`, so only a\r\n * node painting something its attributes do not describe has anything to add.\r\n */\r\n override declareAssets(assets: AssetScope): void {\r\n assets.effects(this.effects as NodeEffect[]);\r\n }\r\n\r\n /** Sample this node's own derived render state for the current frame. */\r\n override _sample(): void {\r\n this._sampleMotion();\r\n }\r\n\r\n /**\r\n * Record this node's current position as the motion history's previous\r\n * frame, stamped `at`, deriving no velocity — see the base's note.\r\n */\r\n override _primeMotion(at: number): void {\r\n const r = this.layoutBounds;\r\n const o = this._offset();\r\n primeMotion(\r\n this._motionHistory,\r\n (r?.x ?? 0) + o.x,\r\n (r?.y ?? 0) - o.y,\r\n this.rotation,\r\n this.scale,\r\n at,\r\n );\r\n }\r\n\r\n // ---- Visual properties ------------------------------------------------\r\n\r\n @property({ default: 0 }) declare x: number;\r\n @property({ default: 0 }) declare y: number;\r\n @property({ default: 'fill', tween: sizeInputOps.lerp }) declare width: SizeInput;\r\n @property({ default: 'fill', tween: sizeInputOps.lerp }) declare height: SizeInput;\r\n @property({ default: 1 }) declare scale: number;\r\n @property({ default: 0 }) declare rotation: number;\r\n @property({ default: 1 }) declare opacity: number;\r\n @property({ default: 'pass-through' }) declare blend: NodeBlendMode;\r\n @effectsProperty() declare effects: Effect;\r\n @insetsProperty() declare padding: Insets;\r\n\r\n @alignmentProperty()\r\n declare readonly pivot: Alignment;\r\n\r\n // ---- Mirrors and the third dimension -----------------------------------\r\n // See the matching entries on Node2DProps for what each one means. The\r\n // angles and depth are plain numeric cells, so they tween like x/y/rotation\r\n // do; the booleans snap at the end of a tween the way every other discrete\r\n // cell does. `perspective` is the one exception — see {@link lerpPerspective}.\r\n\r\n /** Mirror across the vertical centre line. See {@link Node2DProps.flipHorizontal}. */\r\n @property({ default: false }) declare flipHorizontal: boolean;\r\n /** Mirror across the horizontal centre line. See {@link Node2DProps.flipVertical}. */\r\n @property({ default: false }) declare flipVertical: boolean;\r\n /** Tilt about the horizontal axis, degrees. See {@link Node2DProps.rotationX}. */\r\n @property({ default: 0 }) declare rotationX: number;\r\n /** Tilt about the vertical axis, degrees. See {@link Node2DProps.rotationY}. */\r\n @property({ default: 0 }) declare rotationY: number;\r\n /** The 3D block's in-plane rotation, degrees — distinct from {@link rotation}. See {@link Node2DProps.rotationZ}. */\r\n @property({ default: 0 }) declare rotationZ: number;\r\n /** Push along the view axis, px. See {@link Node2DProps.depth}. */\r\n @property({ default: 0 }) declare depth: number;\r\n /**\r\n * Viewer distance in px; `0` is a parallel projection. See\r\n * {@link Node2DProps.perspective}.\r\n *\r\n * Tweened in reciprocal space ({@link lerpPerspective}), not linearly: the\r\n * renderer's own projection math varies with `1/perspective`, so a plain\r\n * lerp of the raw distance sweeps through the near-zero numbers next to\r\n * \"off\" and flashes an exaggerated, near-degenerate projection right at the\r\n * start of a `0 → n` tween (or the end of an `n → 0` one) before settling\r\n * to the depth actually asked for.\r\n */\r\n @property({ default: 0, tween: lerpPerspective }) declare perspective: number;\r\n /** Whether the node paints while showing its back. See {@link Node2DProps.backfaceVisible}. */\r\n @property({ default: true }) declare backfaceVisible: boolean;\r\n /**\r\n * The point the transform turns about, overriding {@link pivot}. See\r\n * {@link Node2DProps.transformOrigin}.\r\n *\r\n * `undefined` until set — that absence *is* \"follow the pivot\", which no\r\n * default value could say, since every alignment is a real point including the\r\n * centre. Same shape as the `column`/`row` cells above. Declared with the raw\r\n * decorator rather than `@alignmentProperty()` for exactly that reason: that one\r\n * folds a missing `default` back onto `'center'`.\r\n */\r\n @property<Alignment | undefined, Vector2 | undefined>({\r\n default: undefined,\r\n // `null` is unset too: a document read back from JSON has no `undefined`.\r\n mapper: (v) => (v == null ? undefined : alignmentOps.resolve(v)),\r\n // Tweening *into* an origin from \"no origin set\" starts where it ends —\r\n // there is no point to travel from, and snapping to the target's own\r\n // start is the one reading that isn't an invented one.\r\n tween: (from, to, t) => alignmentOps.lerp(from ?? to ?? ORIGIN_2D, to ?? ORIGIN_2D, t),\r\n })\r\n declare transformOrigin: Alignment | undefined;\r\n\r\n /** When true, content drawn by this node's children is clipped to its outline (see {@link clipSelf}). */\r\n @property({ default: false }) declare clip: boolean;\r\n\r\n @property({ default: 1 }) declare flex: number;\r\n /**\r\n * Per-child weight for the flex gap this node contributes to its parent's\r\n * main axis, in `[0, 1]`. Default `1` = a full gap on each side (normal\r\n * layout). Driven `0 → 1` (insert) / `1 → 0` (remove) by the animated\r\n * `addChildAt`/`removeChildAt` overloads so the surrounding gap opens/closes\r\n * in lockstep with the child's box instead of popping — see\r\n * {@link addChildAtAnimated}. Read only by flex containers off their\r\n * children.\r\n *\r\n * Rarely set by hand, but it has to be *settable*: a host collapsing a child\r\n * in place rather than removing it — which is what makes a show/hide a value\r\n * a time can produce instead of an effect that has to have run — needs the\r\n * gap to close with it. Declared on {@link Node2DProps} for that reason; it\r\n * used to be reachable only through a cast, which is why the lifecycle\r\n * helpers carry one.\r\n */\r\n @property({ default: 1 }) declare gapScale: number;\r\n @property({ default: undefined }) declare column: number | undefined;\r\n @property({ default: undefined }) declare row: number | undefined;\r\n @property({ default: 1 }) declare colSpan: number;\r\n @property({ default: 1 }) declare rowSpan: number;\r\n\r\n private readonly _layoutBounds = new PropSlot<BoxBounds>({ x: 0, y: 0, width: 0, height: 0 }, this, LAYOUT_SLOT);\r\n\r\n /**\r\n * The size limits and the measurer threaded through this node's last\r\n * {@link measure} pass.\r\n *\r\n * Retained so off-tree work can measure a not-yet-attached child *in\r\n * isolation* — the animated child-insert in `node-lifecycle.ts` needs a hug\r\n * child's natural size without putting it in this node's flow first, or the\r\n * siblings shift for a frame. Undefined until this node is first measured.\r\n *\r\n * One object rather than two loose fields, because the two are only ever\r\n * useful together and were previously reached through a\r\n * `{ constraints?; _lastScope? }` structural cast from two other modules —\r\n * a cast that would have gone on compiling through any rename.\r\n *\r\n * @internal\r\n */\r\n lastMeasure?: { constraints: SizeConstraints; measurer: MeasureContext2D };\r\n\r\n /** The constraints this node was last measured against. */\r\n protected get constraints(): SizeConstraints {\r\n return this.lastMeasure?.constraints ?? {};\r\n }\r\n\r\n /**\r\n * The box the last layout pass allocated this node: its size, and where it\r\n * sits in its parent's space (canvas y-down).\r\n *\r\n * Reactive — a read inside a binding is tracked, so a prop bound to another\r\n * node's box re-evaluates when that box moves.\r\n *\r\n * **Public, and a single member.** It used to be a `protected layoutRect`\r\n * plus a public `measuredRect` alias that existed only so the picking walk\r\n * could reach it — and, in practice, a `(node as any).layoutRect` cast in\r\n * every test that needed a box. Two names for one value, one of them\r\n * reachable only by lying to the compiler, is worse than the thing\r\n * `protected` was buying. Writing it is still {@link setLayoutBounds}, which\r\n * is where the layout engine's invariants live.\r\n */\r\n get layoutBounds(): BoxBounds { return this._layoutBounds.get(); }\r\n\r\n /**\r\n * {@link flattenChildrenProp}, narrowed to the children this node will\r\n * actually lay out — a 3D or audio child sits in the same `children` prop but\r\n * takes no part in 2D layout, so it can't inform the size defaults either.\r\n */\r\n protected static flowChildrenProp(props: { children?: unknown } | undefined): Node2D[] {\r\n return Node2D.flattenChildrenProp(props).filter((c): c is Node2D => c instanceof Node2D);\r\n }\r\n\r\n /**\r\n * True if any of `children` requests `\"fill\"` on `axis` — the signal a\r\n * container's {@link applyDefaultSize} override uses to decide whether its\r\n * own hug default on that axis would strand the child with no space to\r\n * fill into (see the {@link Rect} override).\r\n */\r\n protected static hasFillChild(children: Node2D[], axis: \"width\" | \"height\"): boolean {\r\n return children.some((c) => (axis === \"width\" ? c.width : c.height) === \"fill\");\r\n }\r\n\r\n /**\r\n * Figma-style smart default for `width`/`height`: hug-to-content when the\r\n * node is given children, fill-the-parent when it's empty — so a plain\r\n * `new Rect({ children: [...] })` shrink-wraps like a Figma auto-layout\r\n * frame, while an empty one behaves like a background/spacer. Called once\r\n * from the constructor (skipped when `flex` is set, since that already\r\n * implies 'fill'), so it's the baseline every `Node2D` gets for free.\r\n *\r\n * Subclasses with their own sizing convention (`Text` hugs single-line\r\n * text but fills when wrapping/autofit; `Path`/`RichText` always hug)\r\n * override this — typically a one-line replacement\r\n * — instead of duplicating the children-check in their constructor.\r\n */\r\n protected applyDefaultSize(props?: NodeConfig<any, P>): void {\r\n const hasChildren = Node2D.flowChildrenProp(props).length > 0;\r\n const defaultSize = hasChildren ? \"hug\" : \"fill\";\r\n if (!props || props.width === undefined) this.applyProp(\"width\", defaultSize, { tween: sizeInputOps.lerp });\r\n if (!props || props.height === undefined) this.applyProp(\"height\", defaultSize, { tween: sizeInputOps.lerp });\r\n }\r\n\r\n // ---- Motion helpers ---------------------------------------------------\r\n //\r\n // Each returns the `Command` it delegates to rather than wrapping it in\r\n // anything, because the wrapper would discard the thing worth having: a\r\n // `Command` can be *evaluated* at a time, and anything that merely advances\r\n // can only be run to one.\r\n\r\n /**\r\n * Animate `x`/`y` to the given position, along `path`, or onto another node.\r\n * `pivot` (optional) sets {@link Node2DProps.transformOrigin} — the point\r\n * later rotate/scale turn about — independent of the node's own permanent\r\n * {@link pivot}, and it carries forward like any other prop until something\r\n * restates it.\r\n *\r\n * `path` replaces the destination rather than qualifying it — stating both is\r\n * an error, since the path's own end is where the move ends — and the node\r\n * walks it by **arc length**, so easing shapes the travel rather than the\r\n * curve's parameter. Its coordinates *are* `x`/`y` values, in the same y-up\r\n * space a `PathCommand[]` is authored in library-wide: the path says where\r\n * the node is at `t`, not how far it has come from wherever the previous\r\n * command left it.\r\n *\r\n * `target` is a node id and `targetAnchor` the point of its box to land on\r\n * (centre when absent), resolved when the command is built — so moving the\r\n * target re-aims the move with nothing to re-author, and a target absent at\r\n * that moment leaves the node where it is. Like `path`, it replaces `x`/`y`.\r\n * Given a `path` as well, the path is turned and scaled about its own start\r\n * until its end lands on the target, which is exact where the two already\r\n * agree and keeps the curve's shape where the target has since moved.\r\n *\r\n * @example\r\n * node.moveTo({ data: { x: 200, y: 100, pivot: 'topRight' }, duration: 0.5 });\r\n * node.moveTo({ data: { path: new PathBuilder().arc({ width: 600, startAngle: 180, sweep: -180 }) }, duration: 2 });\r\n * node.moveTo({ data: { target: 'card', targetAnchor: 'topRight' }, duration: 1 });\r\n */\r\n @command({\r\n args: [\r\n \"x\",\r\n \"y\",\r\n { key: \"path\", kind: \"path\" },\r\n { key: \"target\", kind: \"nodeRef\" },\r\n { key: \"targetAnchor\", kind: \"alignment\" },\r\n ],\r\n })\r\n moveTo(\r\n args: CommandArgs<{\r\n x?: number;\r\n y?: number;\r\n path?: PathData | PathBuilder;\r\n target?: string;\r\n targetAnchor?: Alignment;\r\n pivot?: Alignment;\r\n }> & { duration: number },\r\n ): Command<P> {\r\n const { path, target, targetAnchor, ...destination } = args.data ?? {};\r\n const positioned = destination.x !== undefined || destination.y !== undefined;\r\n const aimed = typeof target === \"string\" && target !== \"\";\r\n if (aimed && positioned) {\r\n throw new Error(\r\n \"moveTo takes a `target` or an `x`/`y` destination, not both — the target's anchor is where the move ends.\",\r\n );\r\n }\r\n const aim = aimed ? this._pointOnNode(target, targetAnchor) : null;\r\n if (path === undefined || path === null) {\r\n return this.to({ data: { ...destination, ...aim } as Partial<P>, duration: args.duration, easing: args.easing });\r\n }\r\n if (positioned) {\r\n throw new Error(\r\n \"moveTo takes a `path` or an `x`/`y` destination, not both — the path's own end is where the move ends.\",\r\n );\r\n }\r\n const sampler = pathOps.sampler(path instanceof PathBuilder ? path.toCommands() : path);\r\n const { length } = sampler;\r\n const first = sampler.frameAt(0);\r\n const last = sampler.frameAt(length);\r\n const fit = aim && first && last ? pathOps.endFit(first, last, aim) : null;\r\n const origin = destination.pivot;\r\n return this.command<P>((t) => {\r\n const frame = sampler.frameAt(length * t);\r\n // A degenerate path has no point to be at, so the move writes\r\n // nothing rather than collapsing the node onto the origin.\r\n if (!frame) return {} as Partial<P>;\r\n const point = fit ? fit(frame) : frame;\r\n const at = { x: point.x, y: point.y } as Partial<P>;\r\n if (origin !== undefined) (at as { transformOrigin?: Alignment }).transformOrigin = origin;\r\n return at;\r\n }, args.duration, args.easing);\r\n }\r\n\r\n /** Animate `opacity` to the target value, in `[0, 1]`. */\r\n @command({ args: [\"opacity\"] })\r\n fadeTo(args: CommandArgs<{ opacity: number }> & { duration: number }): Command<P> {\r\n return this.to({ data: args.data as Partial<P>, duration: args.duration, easing: args.easing });\r\n }\r\n\r\n /**\r\n * Animate `rotation` to the target angle (degrees, clockwise). `pivot`\r\n * (optional) behaves as in {@link moveTo}.\r\n *\r\n * @example\r\n * node.rotateTo({ data: { rotation: 180, pivot: 'topRight' }, duration: 0.6 });\r\n */\r\n @command({ args: [\"rotation\"] })\r\n rotateTo(args: CommandArgs<{ rotation: number; pivot?: Alignment }> & { duration: number }): Command<P> {\r\n return this.to({ data: args.data as Partial<P>, duration: args.duration, easing: args.easing });\r\n }\r\n\r\n /**\r\n * Animate `scale` to the target factor. `pivot` (optional) behaves as in\r\n * {@link moveTo}.\r\n *\r\n * @example\r\n * node.scaleTo({ data: { scale: 2, pivot: 'topRight' }, duration: 0.4 });\r\n */\r\n @command({ args: [\"scale\"] })\r\n scaleTo(args: CommandArgs<{ scale: number; pivot?: Alignment }> & { duration: number }): Command<P> {\r\n return this.to({ data: args.data as Partial<P>, duration: args.duration, easing: args.easing });\r\n }\r\n\r\n /**\r\n * Animate the box: `width`, `height` and `padding`, whichever are given.\r\n * A size keyword (`'fill'`, `'hug'`) snaps; a number interpolates.\r\n *\r\n * @example\r\n * node.layoutTo({ data: { width: 640, height: 360 }, duration: 0.5 });\r\n */\r\n @command({ args: [{ key: \"width\", kind: \"size\" }, { key: \"height\", kind: \"size\" }, { key: \"padding\", kind: \"insets\" }] })\r\n layoutTo(args: CommandArgs<{ width?: SizeInput; height?: SizeInput; padding?: Insets }> & { duration: number }): Command<P> {\r\n return this.to({ data: _stated(args.data) as Partial<P>, duration: args.duration, easing: args.easing });\r\n }\r\n\r\n /**\r\n * Swell to `factor` times the node's size and settle back: a nudge of the\r\n * eye toward it. It ends as it began, so nothing after it needs restating.\r\n *\r\n * @example\r\n * node.pulse({ data: { factor: 1.3 }, duration: 0.6 });\r\n */\r\n @command({ args: [{ key: \"factor\", kind: \"number\", min: 0, step: 0.05, unit: \"×\", default: 1.2 }] })\r\n pulse(args: CommandArgs<{ factor?: number }> & { duration: number }): Command<P> {\r\n const rest = this.scale;\r\n const factor = args.data?.factor ?? 1.2;\r\n return this.command<P>(\r\n (t) => ({ scale: rest * (1 + (factor - 1) * Math.sin(Math.PI * t)) }) as Partial<P>,\r\n args.duration,\r\n args.easing,\r\n );\r\n }\r\n\r\n /**\r\n * Rock about the node's own turn, `angle` degrees each way for `turns`\r\n * swings, building up and dying away. It ends as it began.\r\n *\r\n * @example\r\n * node.wiggle({ data: { angle: 10, turns: 4 }, duration: 0.8 });\r\n */\r\n @command({\r\n args: [\r\n { key: \"angle\", kind: \"number\", min: 0, unit: \"°\", default: 8 },\r\n { key: \"turns\", kind: \"number\", min: 1, step: 1, default: 3 },\r\n ],\r\n })\r\n wiggle(args: CommandArgs<{ angle?: number; turns?: number }> & { duration: number }): Command<P> {\r\n const rest = this.rotation;\r\n const angle = args.data?.angle ?? 8;\r\n const turns = args.data?.turns ?? 3;\r\n return this.command<P>(\r\n (t) => ({ rotation: rest + angle * Math.sin(2 * Math.PI * turns * t) * Math.sin(Math.PI * t) }) as Partial<P>,\r\n args.duration,\r\n args.easing,\r\n );\r\n }\r\n\r\n /** Animate the `effects` stack to another one. */\r\n @command({ args: [{ key: \"effects\", kind: \"effects\" }] })\r\n effectTo(args: CommandArgs<{ effects: Effect }> & { duration: number }): Command<P> {\r\n return this.to({ data: _stated(args.data) as Partial<P>, duration: args.duration, easing: args.easing });\r\n }\r\n\r\n // ---- Layout queries ---------------------------------------------------\r\n\r\n get measuredWidth(): number {\r\n return this.layoutBounds.width;\r\n }\r\n\r\n get measuredHeight(): number {\r\n return this.layoutBounds.height;\r\n }\r\n\r\n // ---- Alignment points ----------------------------------------------------\r\n // All getters read `layoutBounds` and the x/y/rotation props, and a bound prop\r\n // recomputes on every read — so a callback built from them is always current.\r\n\r\n /** Rotate offset (ox, oy) by this node's rotation (degrees clockwise) around the node center. */\r\n private _rotateOffset(ox: number, oy: number): Vector2 {\r\n const o = this._offset();\r\n return rotateOffset(o.x, o.y, this.rotation, ox, oy);\r\n }\r\n\r\n /** Center of the node — equivalent to its x/y position (0,0 is the center of the layout cell). */\r\n get center(): Vector2 {\r\n const o = this._offset();\r\n return { x: o.x, y: o.y };\r\n }\r\n\r\n get topLeft(): Vector2 {\r\n const r = this.layoutBounds;\r\n return this._rotateOffset(-r.width / 2, r.height / 2);\r\n }\r\n\r\n get topRight(): Vector2 {\r\n const r = this.layoutBounds;\r\n return this._rotateOffset(r.width / 2, r.height / 2);\r\n }\r\n\r\n get bottomLeft(): Vector2 {\r\n const r = this.layoutBounds;\r\n return this._rotateOffset(-r.width / 2, -r.height / 2);\r\n }\r\n\r\n get bottomRight(): Vector2 {\r\n const r = this.layoutBounds;\r\n return this._rotateOffset(r.width / 2, -r.height / 2);\r\n }\r\n\r\n get topCenter(): Vector2 {\r\n const r = this.layoutBounds;\r\n return this._rotateOffset(0, r.height / 2);\r\n }\r\n\r\n get bottomCenter(): Vector2 {\r\n const r = this.layoutBounds;\r\n return this._rotateOffset(0, -r.height / 2);\r\n }\r\n\r\n get centerLeft(): Vector2 {\r\n const r = this.layoutBounds;\r\n return this._rotateOffset(-r.width / 2, 0);\r\n }\r\n\r\n get centerRight(): Vector2 {\r\n const r = this.layoutBounds;\r\n return this._rotateOffset(r.width / 2, 0);\r\n }\r\n\r\n // ---- Global (world-space) transform -----------------------------------\r\n // The local alignment getters above are relative to this node's *parent*; their\r\n // global counterparts below fold in the full ancestor chain so a node can be\r\n // aligned to another regardless of where each sits in the tree:\r\n // new Rect({ x: () => other().global.x, y: () => other().global.y })\r\n // Each read walks this node's and every ancestor's live\r\n // layout/x/y/rotation/scale/pivot props, so a binding over them stays current.\r\n\r\n /**\r\n * This node's local transform in canvas (y-down) space — position, rotation,\r\n * scale, about its origin. Composed with the parent chain by\r\n * {@link worldMatrix}, and the matrix every world-space *reading* of the node\r\n * comes from: {@link global}, `runtime/node-picking.ts`, and so any editor\r\n * overlay drawn on top of a scene.\r\n *\r\n * **It is flat, deliberately, and the renderer's is not.** A node that\r\n * mirrors or tilts ({@link Node2DProps.rotationX}, {@link Node2DProps.perspective},\r\n * {@link Node2DProps.flipHorizontal}, …) is *painted* through a projected\r\n * matrix, but goes on measuring, reporting and hit-testing as the upright\r\n * rectangle it was — see {@link applyTransform}.\r\n *\r\n * That is a choice, not an oversight. Everything that reads a node's box\r\n * reads it to put a handle on: a selection outline, a resize grip, a rotation\r\n * dial, `other.global.topRight` as an alignment target. Those all mean\r\n * something on a rectangle and stop meaning it on a trapezoid — a \"width\"\r\n * handle on a foreshortened edge does not correspond to any number, and a\r\n * corner that has swung behind the viewer has no screen position at all.\r\n * Letting the projection through would make the tilt a thing that quietly\r\n * breaks every other tool in the editor; keeping the geometry flat makes it\r\n * exactly what it looks like, a way of drawing the node.\r\n */\r\n /** @internal Composed with the camera scopes in between by `runtime/node-picking.ts`. */\r\n _localMatrix(): Matrix2D {\r\n const r = this.layoutBounds;\r\n const slot = this._slotMatrix();\r\n const { x: ox, y: oy } = this._offset();\r\n if (slot) {\r\n return multiply(slot, localMatrix(\r\n ox, -oy, this.rotation, this.scale, this._transformOrigin(),\r\n r?.width ?? 0, r?.height ?? 0,\r\n ));\r\n }\r\n const cx = (r?.x ?? 0) + ox;\r\n const cy = (r?.y ?? 0) - oy;\r\n // The accessor stores the resolved normalised pivot via the mapper.\r\n // No projection: see the note above for why a node's *geometry* stays\r\n // flat while its paint does not.\r\n return localMatrix(\r\n cx, cy, this.rotation, this.scale, this._transformOrigin(),\r\n r?.width ?? 0, r?.height ?? 0,\r\n );\r\n }\r\n\r\n /** @internal The slot {@link _placementOf} puts this node in, from its parent. */\r\n _placement(): ChildPlacement | null {\r\n return this.parent2D?._placementOf(this) ?? null;\r\n }\r\n\r\n /**\r\n * The slot this node places `child` in beyond its layout box, or `null` —\r\n * the default — when the box says it all. A layout that turns, scales or\r\n * fades each of its children answers here, and the renderer, picking and\r\n * `global` all follow. See {@link ChildPlacement}.\r\n */\r\n /** @internal */\r\n _placementOf(_child: Node2D): ChildPlacement | null {\r\n return null;\r\n }\r\n\r\n /**\r\n * The coordinates `child`'s `x`/`y` are in, or `null` — the default — when\r\n * they are pixels. A `null` child asks for one that is not here yet: where\r\n * a host would drop or paste it. See {@link ChildPlane}.\r\n */\r\n /** @internal */\r\n _planeOf(_child: Node2D | null): ChildPlane | null {\r\n return null;\r\n }\r\n\r\n /**\r\n * Where its own layout would centre a child of `size` that is not here yet,\r\n * y-down from its centre, or `null` when it arranges its children in a run\r\n * or a grid (the run decides) or has not laid any out.\r\n */\r\n /** @internal */\r\n _slotFor(size: Size2D): Vector2 | null {\r\n const inner = this._childBox;\r\n const box = inner ? flowOps.freeSlot(this.flowArrangement(), inner, size) : null;\r\n return inner && box ? { x: inner.x + box.x, y: inner.y - box.y } : null;\r\n }\r\n\r\n /**\r\n * Where its centre sits from the point its `x`/`y` place, in its parent's\r\n * frame, y-down, at `rotation` and `scale`: what turning or scaling about an\r\n * off-centre pivot adds.\r\n */\r\n /** @internal */\r\n _centreShift(rotation = this.rotation, scale = this.scale): Vector2 {\r\n const r = this.layoutBounds;\r\n const own = localMatrix(0, 0, rotation, scale, this._transformOrigin(), r?.width ?? 0, r?.height ?? 0);\r\n return applyToPoint(own, { x: 0, y: 0 });\r\n }\r\n\r\n /** The points an editor may drag on this node, where they sit now; none by default. See {@link NodeHandle}. */\r\n /** @internal */\r\n _handles(): readonly NodeHandle[] {\r\n return NO_HANDLES;\r\n }\r\n\r\n /** The value `prop` takes for its handle to sit at `at`, in this node's own frame; `null` when it has none. */\r\n /** @internal */\r\n _handleValue(_prop: string, _at: Vector2): Vector2 | null {\r\n return null;\r\n }\r\n\r\n private readonly _offsetScratch: Vector2 = { x: 0, y: 0 };\r\n\r\n /**\r\n * This node's `x`/`y` as the pixel offset its parent sees. Every position\r\n * read goes through here, which is what keeps paint, picking and `global`\r\n * agreeing under a {@link ChildPlane}. The result is reused: read it at once.\r\n */\r\n /** @internal */\r\n _offset(): Vector2 {\r\n const plane = this.parent2D?._planeOf(this);\r\n if (plane) return plane.toOffset(this.x, this.y);\r\n const o = this._offsetScratch;\r\n o.x = this.x;\r\n o.y = this.y;\r\n return o;\r\n }\r\n\r\n /**\r\n * The flat part of this node's slot, as the frame its own `x`/`y` move in —\r\n * the layout box's centre, turned and scaled by the slot. `null` when it has\r\n * no slot. With `paint`, the slot's tilt as well, which only paint sees.\r\n */\r\n /** @internal Also the plane `runtime/node-picking.ts` drags a placed node across. */\r\n _slotMatrix(paint = false): Matrix2D | null {\r\n const slot = this._placement();\r\n if (!slot) return null;\r\n const r = this.layoutBounds;\r\n return localMatrix(\r\n r?.x ?? 0, r?.y ?? 0, slot.rotation, slot.scale, ORIGIN_2D, 0, 0,\r\n paint ? slotProjection(slot) : undefined,\r\n );\r\n }\r\n\r\n /** @internal {@link _slotMatrix} in a space, where the slot's tilt and depth are geometry. */\r\n _slotAffine(): Affine3 | null {\r\n const slot = this._placement();\r\n if (!slot) return null;\r\n const r = this.layoutBounds;\r\n return nodeSpaceMatrix(r?.x ?? 0, r?.y ?? 0, slot.rotation, slot.scale, 0, 0, slotProjection(slot));\r\n }\r\n\r\n /**\r\n * The point this node's transform turns about, normalised: `transformOrigin`\r\n * where one is set, the alignment-derived `pivot` otherwise. One resolution,\r\n * read by {@link _localMatrix} and {@link applyTransform} alike.\r\n */\r\n private _transformOrigin(): Vector2 {\r\n return (this.transformOrigin as Vector2 | undefined) ?? (this.pivot as Vector2);\r\n }\r\n\r\n // Reused for the same reason `_transformScratch` is: `_localMatrix` runs once\r\n // per ancestor per `global` read, and the two functions that take a\r\n // Projection3D read it synchronously and never retain it.\r\n private readonly _projectionScratch: Projection3D = {\r\n rotationX: 0, rotationY: 0, rotationZ: 0, depth: 0, perspective: 0,\r\n flipHorizontal: false, flipVertical: false,\r\n };\r\n\r\n /**\r\n * This node's out-of-plane fields, gathered for the matrix builders — and for\r\n * the backface test. A space root overrides it, because its 3D props aim the\r\n * camera rather than turn the root.\r\n */\r\n protected _projection(): Projection3D {\r\n const p = this._projectionScratch;\r\n p.rotationX = this.rotationX;\r\n p.rotationY = this.rotationY;\r\n p.rotationZ = this.rotationZ;\r\n p.depth = this.depth;\r\n p.perspective = this.perspective;\r\n p.flipHorizontal = this.flipHorizontal;\r\n p.flipVertical = this.flipVertical;\r\n return p;\r\n }\r\n\r\n /** @internal This node's transform in its parent's 3D frame, when it is inside a space. See `node-space.ts`. */\r\n _spaceMatrix(): Affine3 {\r\n const r = this.layoutBounds;\r\n const width = r?.width ?? 0;\r\n const height = r?.height ?? 0;\r\n const origin = this._transformOrigin();\r\n const slot = this._slotAffine();\r\n const { x: ox, y: oy } = this._offset();\r\n if (slot) {\r\n return multiplyAffine3(slot, nodeSpaceMatrix(\r\n ox, -oy, this.rotation, this.scale,\r\n origin.x * (width / 2), -origin.y * (height / 2),\r\n this._projection(),\r\n ));\r\n }\r\n return nodeSpaceMatrix(\r\n (r?.x ?? 0) + ox, (r?.y ?? 0) - oy, this.rotation, this.scale,\r\n origin.x * (width / 2), -origin.y * (height / 2),\r\n this._projection(),\r\n );\r\n }\r\n\r\n /**\r\n * This node's full transform in canvas (y-down) world space — the product of\r\n * every ancestor's local matrix from the root down to this node. Walks the\r\n * live parent chain on every call, reading each node's transform props.\r\n */\r\n protected worldMatrix(): Matrix2D {\r\n const local = this._localMatrix();\r\n const parent = this.parent2D;\r\n return parent ? multiply(parent.worldMatrix(), local) : local;\r\n }\r\n\r\n /**\r\n * Resolved world-space transform — the same alignment points and metrics as the\r\n * local getters (`center`, `topRight`, `rotation`, …) but folded through the\r\n * full ancestor chain, so values are absolute scene coordinates rather than\r\n * parent-relative ones. See {@link WorldTransform}. Every field is reactive.\r\n *\r\n * @example\r\n * // Read another node's absolute corner, regardless of its parent:\r\n * const p = other.global.topRight; // world-space {x, y}\r\n *\r\n * ### Reading vs. placing\r\n * `global` is for *reading* world coordinates. `x`/`y` (and the alignment props)\r\n * are **parent-relative**, so assigning a world value to them does not by\r\n * itself place this node in world space — it offsets it from this node's own\r\n * parent. To land exactly on another node regardless of either parent,\r\n * subtract this node's parent's world contribution:\r\n *\r\n * @example\r\n * // Place this node's origin exactly on `other`, any parent:\r\n * new Rect({\r\n * x: () => other.global.x - (myParent.global.x),\r\n * y: () => other.global.y - (myParent.global.y),\r\n * });\r\n *\r\n * When both nodes share the same parent origin (e.g. both at the scene root),\r\n * `x: () => other.global.x` already lands on target with no compensation.\r\n */\r\n get global(): WorldTransform {\r\n const r = this.layoutBounds;\r\n const anchors = worldAnchors(this.worldMatrix(), (r?.width ?? 0) / 2, (r?.height ?? 0) / 2);\r\n\r\n // Accumulate ancestor rotation/scale/opacity up the chain (rotation sums,\r\n // scale and opacity multiply — all match the renderer's nested transforms\r\n // and its pass-through alpha fold).\r\n let rotation = 0;\r\n let scale = 1;\r\n let opacity = 1;\r\n for (let n: Node2D | null = this; n; n = n.parent2D) {\r\n const slot = n._placement();\r\n rotation += n.rotation + (slot?.rotation ?? 0);\r\n scale *= n.scale * (slot?.scale ?? 1);\r\n opacity *= n.opacity * (slot?.opacity ?? 1);\r\n }\r\n\r\n return {\r\n x: anchors.center.x,\r\n y: anchors.center.y,\r\n ...anchors,\r\n rotation,\r\n scale,\r\n opacity,\r\n };\r\n }\r\n\r\n /**\r\n * The `x`/`y` that put this node on `anchor` of the node `id` names, in this\r\n * tree — or `null` when there is no such 2D node here right now.\r\n */\r\n private _pointOnNode(id: string, anchor: Alignment | undefined): Vector2 | null {\r\n const target = findNode2D(this, id);\r\n if (!target) return null;\r\n\r\n const a = alignmentOps.resolve(anchor ?? \"center\");\r\n const box = target.layoutBounds;\r\n const world = applyToPoint(target.worldMatrix(), {\r\n x: a.x * ((box?.width ?? 0) / 2),\r\n y: -a.y * ((box?.height ?? 0) / 2),\r\n });\r\n const parent = this.parent2D;\r\n const toParent = parent ? invert(parent.worldMatrix()) : null;\r\n if (parent && !toParent) return null;\r\n const local = toParent ? applyToPoint(toParent, world) : world;\r\n const own = this.layoutBounds;\r\n const x = local.x - (own?.x ?? 0);\r\n const y = (own?.y ?? 0) - local.y;\r\n return parent?._planeOf(this)?.toCoords(x, y) ?? { x, y };\r\n }\r\n\r\n protected resolveSizeInput(sizeInput: SizeInput, availableSize: number, childrenSize: number): number {\r\n return sizeInputOps.resolveLayout(sizeInput, availableSize, childrenSize);\r\n }\r\n\r\n // `child` typed to the shared base because that is what JSX produces; the\r\n // guard below rejects a `Node3D` before it can land in a tree that would\r\n // never draw it. Decorated on {@link Node}, which owns the instant insert.\r\n override addChildAt(args: CommandArgs<{ child: Node; index: number }> & { duration?: undefined }): void;\r\n override addChildAt(args: CommandArgs<{ child: Node; index: number }> & { duration: number }): Command<Record<string, never>>;\r\n override addChildAt(args: CommandArgs<{ child: Node; index: number }>): void | Command<Record<string, never>> {\r\n const { child, index } = args.data as { child: Node; index: number };\r\n this.assertAcceptsChild(child);\r\n if (args.duration === undefined) {\r\n this._insertChildAt(child, index);\r\n return;\r\n }\r\n // Past the guard, so this is a 2D child: the animated insert measures it\r\n // off-tree, which only a laid-out node can do.\r\n return addChildAtAnimated(this, child as Node2D, index, args.duration, args.easing);\r\n }\r\n\r\n removeChildAt(args: CommandArgs<{ index: number }> & { duration?: undefined }): Node2D | null;\r\n removeChildAt(args: CommandArgs<{ index: number }> & { duration: number }): Command<Record<string, never>>;\r\n @command({ args: [\"index\"] })\r\n removeChildAt(args: CommandArgs<{ index: number }>): (Node2D | null) | Command<Record<string, never>> {\r\n const index = (args.data as { index: number }).index;\r\n if (args.duration === undefined) {\r\n if (index < 0 || index >= this._children.length) return null;\r\n if (_observer !== null) this._structureChanged(this._children[index]);\r\n const [removed] = this._children.splice(index, 1);\r\n if (removed) {\r\n (removed as Node2D)._parent = null;\r\n removed.detach();\r\n }\r\n return (removed as Node2D) ?? null;\r\n }\r\n return removeChildAtAnimated(this, index, args.duration, args.easing);\r\n }\r\n\r\n // ---- Rendering --------------------------------------------------------\r\n\r\n // Reused each frame so applyTransform doesn't allocate a fresh descriptor\r\n // per node per frame. ctx.transform reads it synchronously and never retains\r\n // it, so a single mutated instance is safe.\r\n private readonly _transformScratch: TransformState = {\r\n x: 0, y: 0, width: 0, height: 0,\r\n scale: 1, rotation: 0, opacity: 1, blend: 'pass-through',\r\n effects: [], pivot: { x: 0, y: 0 },\r\n };\r\n\r\n // ---- Motion sampling --------------------------------------------------\r\n // Per-node motion (velocity/direction/speed/angular/scale) is sampled once\r\n // per frame from ellapse() (see its call site) as a backward difference\r\n // against the previous frame. Sampling every advanced frame — not just\r\n // rendered ones — is what keeps velocity correct through a scrub/rewind,\r\n // which advances through frames without rendering them. Because ellapse()\r\n // runs before the frame's generator.next(), x/y here hold the *previous*\r\n // frame's value, so the velocity trails the rendered position by one frame;\r\n // the lag is constant and identical forward vs. scrub. Layout-dependent\r\n // fields (rects) can't be resolved here — layout hasn't run for advanced-\r\n // but-unrendered frames — so beforeRender() fills those in at draw time,\r\n // leaving the motion fields untouched.\r\n\r\n /** Rolling history for the backward-difference velocity estimate. Allocated once (not per frame); mutated in place by {@link _sampleMotion}. */\r\n private readonly _motionHistory: MotionHistory = createMotionHistory();\r\n\r\n /** Reused per-node state handed to `ctx.begin()` (mirrors `_transformScratch`). */\r\n private readonly _renderState: NodeRenderState = {\r\n id: this.id,\r\n rects: {},\r\n elapsed: 0,\r\n dt: 0,\r\n velocity: { x: 0, y: 0 },\r\n direction: 0,\r\n speed: 0,\r\n angularVelocity: 0,\r\n scaleVelocity: 0,\r\n };\r\n\r\n /**\r\n * Compute this frame's motion (velocity/direction/speed/angular/scale) into\r\n * {@link _renderState} as a backward difference against the previous frame,\r\n * and roll the history forward. Velocity is `0`/`{0,0}` when no trustworthy\r\n * delta exists — the first frame, or after a non-monotonic time jump (only\r\n * `0 < dt <= MAX` is trusted, so a scrub that resets the clock reads as\r\n * \"unknown\" rather than a spurious huge velocity). The world position\r\n * matches {@link applyTransform} (`layoutBounds + x`, `layoutBounds - y`,\r\n * y-down). Called via {@link sample} every frame; layout-dependent fields\r\n * (`rects`/`elapsed`) are filled in by {@link beforeRender} at draw time.\r\n */\r\n protected _sampleMotion(): void {\r\n // Resolve the reactive world position (y-down, matching applyTransform);\r\n // the backward-difference math lives in sampleMotion (no per-frame alloc).\r\n const r = this.layoutBounds;\r\n const o = this._offset();\r\n const x = (r?.x ?? 0) + o.x;\r\n const y = (r?.y ?? 0) - o.y;\r\n sampleMotion(this._renderState, this._motionHistory, x, y, this.rotation, this.scale, this._time.total);\r\n }\r\n\r\n /**\r\n * Push this node's transform (position, scale, rotate, opacity, effects).\r\n *\r\n * The decomposed fields are the whole story for a node in its own plane, and\r\n * that path is untouched: the backend translates, rotates and scales exactly\r\n * as it always has. A node that mirrors or tilts hands over a precomposed\r\n * {@link TransformState.matrix} instead, built by the same `localMatrix`\r\n * {@link _localMatrix} calls — with the out-of-plane half switched on.\r\n *\r\n * **This is the one place that half is applied.** The mirrors and the tilt\r\n * are paint, not geometry: the node goes on measuring and hit-testing as the\r\n * upright rectangle it was, and only what is drawn is projected. See\r\n * {@link _localMatrix} for why.\r\n */\r\n protected applyTransform(ctx: RenderContext2D): void {\r\n const r = this.layoutBounds;\r\n const s = this._transformScratch;\r\n const { x: ox, y: oy } = this._offset();\r\n s.x = (r?.x ?? 0) + ox;\r\n s.y = (r?.y ?? 0) - oy;\r\n s.width = r?.width ?? 0;\r\n s.height = r?.height ?? 0;\r\n s.scale = this.scale;\r\n s.rotation = this.rotation;\r\n s.opacity = this.opacity;\r\n s.blend = this.blend;\r\n s.effects = this.effects as NodeEffect[];\r\n s.pivot = this._transformOrigin();\r\n const slotOpacity = this._placement()?.opacity;\r\n if (slotOpacity !== undefined) s.opacity *= slotOpacity;\r\n const frame = this._spaceFrame;\r\n const slot = frame ? null : this._slotMatrix(true);\r\n if (frame) {\r\n s.matrix = frame.local;\r\n } else if (slot) {\r\n s.matrix = multiply(slot, localMatrix(\r\n ox, -oy, s.rotation, s.scale, s.pivot, s.width, s.height, this._projection(),\r\n ));\r\n } else {\r\n const projection = this._projection();\r\n s.matrix = hasProjection3D(projection)\r\n ? localMatrix(s.x, s.y, s.rotation, s.scale, s.pivot, s.width, s.height, projection)\r\n : undefined;\r\n }\r\n ctx.transform(s);\r\n }\r\n\r\n /**\r\n * Hook for custom nodes that draw their own content (raw `Graphics2D`\r\n * commands, etc.) without subclassing {@link ShapeNode}. Called from\r\n * {@link render} between the transform push and the children render, the same\r\n * slot `ShapeNode.renderSelf` occupies. No-op by default — drawing nothing\r\n * here doesn't change the render flow at all.\r\n */\r\n protected renderSelf(ctx: RenderContext2D): void { }\r\n\r\n /**\r\n * Paint the node's `overlay` layer — over its own fill *and* its children,\r\n * but under the stroke — clipped to the node's silhouette. Called from\r\n * {@link render} after children render and before {@link renderStroke}. No-op by\r\n * default; {@link ShapeNode} paints the resolved overlay as a fill of its\r\n * silhouette so a texture (e.g. VHS grain) sits over the whole subtree.\r\n */\r\n protected renderOverlay(ctx: RenderContext2D): void { }\r\n\r\n /**\r\n * Paint the node's stroke last — over its fill, children, and overlay.\r\n * Deferred out of {@link renderSelf} (which now draws only shadow+fill) so\r\n * the stroke frames the whole subtree and sits above any overlay. Called\r\n * from {@link render} after {@link renderOverlay}. No-op by default; {@link\r\n * ShapeNode} strokes its silhouette.\r\n */\r\n protected renderStroke(ctx: RenderContext2D): void { }\r\n\r\n /**\r\n * This node's outline as a {@link Clip} command list — the single source of\r\n * truth for every clip the node needs: its `clip` boundary (when `clip` is\r\n * true) and the silhouette its backdrop effects (backdrop-flagged filters,\r\n * magnify) are confined to. Returning `null` (the default) means the node has\r\n * no clip outline, so its children render unclipped and it gets no backdrop\r\n * effects. Nodes with a definite box (shapes via {@link ShapeNode}, layout\r\n * containers like {@link Rect}) override this to describe their geometry —\r\n * and so behave the same way for `clip` and effect area.\r\n */\r\n protected clipSelf(): Clip | null { return null; }\r\n\r\n /**\r\n * The camera scope this node pushes around its **children** (`beginCamera`),\r\n * or `null` when it pushes none. Only {@link Canvas2D} and `Camera` override\r\n * it, and each returns non-null exactly when its `renderChildren` actually\r\n * opens a camera — so a consumer can reproduce the renderer's transform *and*\r\n * its viewport clip without knowing which classes have a camera.\r\n *\r\n * Read by `runtime/node-picking.ts`: a camera is applied at render time only,\r\n * so it is not part of {@link worldMatrix}, and a node's on-screen box would\r\n * be offset without it. `@internal`.\r\n */\r\n /** @internal */\r\n _cameraScope(): CameraScope | null { return null; }\r\n\r\n /**\r\n * The camera this node opens a 2.5D space with, or `null` when it opens none.\r\n * Only a space root overrides it: its children, and theirs, are then placed\r\n * in one 3D frame and seen through this camera. See `node-space.ts`.\r\n */\r\n /** @internal */\r\n _spaceCamera(): SpaceCamera | null { return null; }\r\n\r\n /**\r\n * Whether this node hands its children on into the space it sits in. False\r\n * for a node that composites its children itself — a mask, a boolean, a\r\n * nested camera — which flattens its subtree into its own plane, where the\r\n * per-node 3D rules apply again. Picking reads it; the renderer gets the same\r\n * answer because such a node never reaches the base {@link renderChildren}.\r\n */\r\n /** @internal */\r\n _rendersChildrenInSpace(): boolean { return true; }\r\n\r\n /** @internal Set by the parent for the length of this node's render while it is inside a space. */\r\n _spaceFrame: SpaceFrame | null = null;\r\n\r\n /**\r\n * Whether the renderer confines this node's children to its own box — either\r\n * because `clip` is set *and* the node has an outline to clip to (a bare\r\n * `clip` with no {@link clipSelf} is a no-op, see {@link applyClip}), or\r\n * because it opens a camera scope, which clips to the viewport rect.\r\n *\r\n * Read by `runtime/node-picking.ts`: a point outside a confining node cannot\r\n * hit anything inside it, so the whole subtree is skipped. `@internal`.\r\n */\r\n /** @internal */\r\n _confinesChildren(): boolean {\r\n if (this._cameraScope() !== null) return true;\r\n if (!this.clip) return false;\r\n const clip = this.clipSelf();\r\n return clip !== null && !clip.isEmpty();\r\n }\r\n\r\n /**\r\n * Whether `local` — a point in this node's local space (centred on the node,\r\n * y-up, rotation and scale already removed) — is inside the node, within\r\n * `tolerance` scene units of its edge.\r\n *\r\n * The default is the layout box, which is the right answer for containers,\r\n * text, and media: their box *is* their extent. {@link ShapeNode} narrows it\r\n * to the node's declared {@link clipSelf} outline. Custom nodes that draw\r\n * their own content can override this so selection follows what they actually\r\n * paint.\r\n *\r\n * `tolerance` is grab-slop, applied outward. An editor passes its\r\n * zoom-corrected pixel slop so the grab area stays constant on screen\r\n * regardless of preview zoom.\r\n */\r\n protected hitTestSelf(local: Vector2, tolerance: number): boolean {\r\n const b = this._localBounds();\r\n return Math.abs(local.x - b.x) <= b.width / 2 + tolerance\r\n && Math.abs(local.y - b.y) <= b.height / 2 + tolerance;\r\n }\r\n\r\n /**\r\n * The extent of this node's ink in its own local space — what an editor draws\r\n * a selection box around, and the region the default {@link hitTestSelf}\r\n * grabs.\r\n *\r\n * The returned {@link BoxBounds} is **y-up and relative to the node's own\r\n * centre**: `x`/`y` are where the ink's centre sits relative to the node,\r\n * normally `(0, 0)`. That is a different space from `layoutBounds`, which is\r\n * the same type but canvas y-down and relative to the parent — see\r\n * `BoxBounds`, which deliberately does not encode a space.\r\n *\r\n * Defaults to the layout box, centred on the node, which is right for every\r\n * node whose drawing fills its cell. It is a separate seam from the layout\r\n * rect because for some nodes the two genuinely differ: a boolean group or\r\n * a mask is drawn where its children's ink is, which can be both a different\r\n * size *and* off-centre from its own cell. Overriding this\r\n * fixes the box and the grab region together, without perturbing layout —\r\n * which a `measure()` override would.\r\n *\r\n * `@internal`; override it on a custom node whose drawing is not its cell.\r\n */\r\n /** @internal */\r\n _localBounds(): BoxBounds {\r\n return { x: 0, y: 0, width: this.measuredWidth, height: this.measuredHeight };\r\n }\r\n\r\n /** @internal Dispatch seam so `node-picking.ts` can reach the protected override. */\r\n _hitTestSelf(local: Vector2, tolerance: number): boolean {\r\n return this.hitTestSelf(local, tolerance);\r\n }\r\n\r\n /**\r\n * An optional clip path that cuts through this node's *own* content **and**\r\n * its children — unlike {@link clip}, which only confines children to the\r\n * node's outline and leaves the node's own fill/stroke untouched. Returning\r\n * `null` (the default) applies no such cut. The Video node exposes\r\n * this as an author-facing `clipPath` prop so a path can carve the painted\r\n * frame and everything stacked on it as one.\r\n */\r\n protected clipPathSelf(): Clip | null { return null; }\r\n\r\n /**\r\n * Open `clipSelf()`'s outline as a clip scope, confining whatever is drawn\r\n * until the matching `ctx.endClip()` to the shape. Returns `true` when a\r\n * clip was actually opened (so the caller knows to close it) and `false`\r\n * when the node has no outline (the default).\r\n */\r\n protected applyClip(ctx: RenderContext2D): boolean {\r\n const clip = this.clipSelf();\r\n if (!clip || clip.isEmpty()) return false;\r\n ctx.beginClip(clip);\r\n return true;\r\n }\r\n\r\n /**\r\n * Apply backdrop effects (any `mode: \"backdrop\"` effect — blur, grayscale, …;\r\n * plus magnify and backdrop SkSL) beneath this node, clipped to its\r\n * silhouette, before the node's own content is drawn — so the content\r\n * underneath is filtered/warped while the node's own edges stay sharp. One\r\n * backdrop effect scope, confined to the silhouette clip, runs the lot; the\r\n * renderer routes each effect to a filter or shader pass. A no-op for nodes\r\n * without a {@link clipSelf} outline (there's no silhouette to confine to).\r\n */\r\n private applyBackdropEffects(ctx: RenderContext2D): void {\r\n const effects = this.effects as NodeEffect[];\r\n // Bail before building the silhouette. `applyBackdropEffectsImpl` returns\r\n // immediately when there are no backdrop effects, but by then `clipSelf()`\r\n // has already allocated a Clip and its op list for a node that will never\r\n // use it — and a node with no effects at all is the overwhelmingly common\r\n // case, so that allocation was pure waste on nearly every node, every frame.\r\n if (effects.length === 0) return;\r\n applyBackdropEffectsImpl(ctx, effects, this.clipSelf(), this.layoutBounds?.width ?? 0, this.layoutBounds?.height ?? 0);\r\n }\r\n\r\n /**\r\n * Run `body` (this node's own painting + children) inside the node's effect\r\n * and clip-path scopes — the shared content-rendering envelope every node\r\n * uses so effects behave identically regardless of how a node draws. The\r\n * caller is expected to have already pushed the node's transform\r\n * ({@link applyTransform}). The envelope, outermost-first:\r\n *\r\n * 1. {@link applyBackdropEffects} — filters/warps the backdrop beneath the\r\n * node, confined to its {@link clipSelf} silhouette.\r\n * 2. A `foreground` effect scope (posterize wrapping bulge) capturing\r\n * everything `body` paints, so those shader effects warp/band the lot.\r\n * 3. A {@link clipPathSelf} clip cutting through both the node's own paint\r\n * and its children.\r\n *\r\n * Nodes with a bespoke `render` (boolean, mask, …) call this with their\r\n * custom body to gain the same effect support as a standard shape, instead\r\n * of duplicating the scope bookkeeping.\r\n */\r\n protected renderContentWithEffects(ctx: RenderContext2D, body: () => void): void {\r\n this.applyBackdropEffects(ctx);\r\n applyContentEffectScope(ctx, this.effects as NodeEffect[], this.clipPathSelf(), this.layoutBounds?.width ?? 0, this.layoutBounds?.height ?? 0, body);\r\n }\r\n\r\n protected renderChildren(ctx: RenderPass2D): void {\r\n // A node opening a space of its own flattens its subtree into its own\r\n // plane, whatever space it sits in — the same answer picking's\r\n // `spaceFrameOf` gives, which asks for a camera before anything else.\r\n const camera = this._spaceCamera();\r\n if (camera) {\r\n this._renderInSpace(ctx, spaceRootFrame(this, camera));\r\n return;\r\n }\r\n const frame = this._spaceFrame;\r\n if (frame) {\r\n this._renderInSpace(ctx, frame);\r\n return;\r\n }\r\n for (const child of this._children) if (child instanceof Node2D) child.render(ctx);\r\n }\r\n\r\n /**\r\n * Paint the children placed in `frame`, far to near rather than in authored\r\n * order — each with its frame set for exactly the length of its own render,\r\n * so a node reached any other way (a mask's children, a `Tex.surface`\r\n * source) draws flat.\r\n */\r\n /** @internal A space root opens its space through this. */\r\n protected _renderInSpace(ctx: RenderPass2D, frame: SpaceFrame): void {\r\n const children: Node2D[] = [];\r\n for (const child of this._children) if (child instanceof Node2D) children.push(child);\r\n const frames = children.map((child) => spaceChildFrame(frame, child));\r\n // Order is invisible to a walk that only discovers assets.\r\n const order = ctx.drawsVisibleOnly ? spaceChildOrder(frames) : frames.map((_, i) => i);\r\n for (const i of order) {\r\n const child = children[i];\r\n child._spaceFrame = frames[i];\r\n try {\r\n child.render(ctx);\r\n } finally {\r\n child._spaceFrame = null;\r\n }\r\n }\r\n }\r\n\r\n /** Run `paint` confined to `cut` — the part of the node in front of the lens — when there is one. */\r\n private _paintInFront(ctx: RenderContext2D, cut: Clip | null, paint: () => void): void {\r\n if (!cut) {\r\n paint();\r\n return;\r\n }\r\n ctx.beginClip(cut);\r\n try {\r\n paint();\r\n } finally {\r\n ctx.endClip();\r\n }\r\n }\r\n\r\n /**\r\n * Hook run just before this node paints anything, inside its own draw scope.\r\n *\r\n * No-op by default, and safe to override without calling `super`: the scope\r\n * itself is opened by {@link render}, not here. That is the whole reason\r\n * `begin`/`end` are not on {@link RenderContext2D} — an override that forgot\r\n * to close what it opened used to leave every sibling drawn afterwards inside\r\n * this node's scope.\r\n */\r\n protected beforeRender(ctx: RenderContext2D): void { }\r\n\r\n /**\r\n * This node's per-frame render state, resolved for the scope {@link render}\r\n * is about to open.\r\n *\r\n * Motion was already sampled when the clock advanced; only the\r\n * layout-dependent fields are filled in here, where layout is current.\r\n */\r\n private renderState(ctx: RenderContext2D): NodeRenderState {\r\n const s = this._renderState;\r\n // Skipped for contexts that never resolve a `space:'parent'` fill — the\r\n // precomp pass walks every node's render every frame purely to discover\r\n // assets, and this is an object allocation per node per frame that nothing\r\n // there would ever read.\r\n s.rects = ctx.readsSpaceRects ? this._spaceRects() : NO_SPACE_RECTS;\r\n s.elapsed = this._time.elapsed;\r\n return s;\r\n }\r\n\r\n /**\r\n * Reference rects for fills with `space:'parent'`, expressed in this node's\r\n * local space (origin = this node's positioned centre, y-down to match the\r\n * canvas). The viewport (`space:'global'`) is resolved by the renderer, which\r\n * knows the surface size. Rotation/scale of this node are not folded in —\r\n * the rect is the axis-aligned parent box, which is what gradients expect.\r\n */\r\n protected _spaceRects(): SpaceRects {\r\n const o = this._offset();\r\n return computeSpaceRects(this.parent2D?.layoutBounds, this.layoutBounds, o.x, o.y);\r\n }\r\n\r\n /**\r\n * Hook run just after this node and its subtree have painted, still inside\r\n * its draw scope. No-op by default — see {@link beforeRender}.\r\n */\r\n protected afterRender(ctx: RenderContext2D): void { }\r\n\r\n /**\r\n * Draw this node and its subtree.\r\n *\r\n * **The whole pipeline, in one method.** It used to be `render` calling\r\n * `beforeRender` → `onRender` → `afterRender`, with `onRender` holding the\r\n * body — three overridable hooks stacked so that a custom node had to know\r\n * which of the three to reach for, and a subclass overriding `onRender`\r\n * silently opted out of the skip checks above it. The hooks that are worth\r\n * overriding are still here ({@link beforeRender}, {@link renderSelf},\r\n * {@link renderOverlay}, {@link renderStroke}, {@link afterRender}); what is\r\n * gone is the extra layer that only existed to hold them.\r\n *\r\n * Takes a {@link RenderPass2D} rather than a bare {@link RenderContext2D}\r\n * because opening this node's draw scope is *this* method's job — the hooks\r\n * below are handed the narrower surface, so none of them can open one.\r\n *\r\n * Ordering that is load-bearing and must not drift: `renderSelf` draws\r\n * shadow + fill only, and the stroke is deferred to {@link renderStroke} so\r\n * it frames the whole subtree; the overlay and the stroke sit *inside* the\r\n * foreground-effect / clip-path scope but *outside* the children-confine\r\n * clip.\r\n */\r\n render(ctx: RenderPass2D): void {\r\n // Not in the tree ⇒ no box, no surface, nothing to draw. Guarded here\r\n // rather than in each override, so a subclass cannot opt out of it.\r\n if (!this.mounted) return;\r\n // A subtree at zero opacity paints nothing, so on a context that only\r\n // draws what can be seen there is no reason to walk it. Not a niche case:\r\n // a chart carries a full second axis at `opacity: 0` purely to reserve a\r\n // gutter, and every cross-fade spends its first and last frames here.\r\n //\r\n // `drawsVisibleOnly` is false on the tracking walk, which must still\r\n // descend — an invisible node's font and images have to be discovered or\r\n // they will not have loaded by the time it fades in. See the flag's doc.\r\n if (ctx.drawsVisibleOnly && this.opacity * (this._placement()?.opacity ?? 1) <= 0) return;\r\n // Hidden by the editor. Same exemption as the two checks around it: the\r\n // tracking walk still descends, or a node hidden and shown again would\r\n // come back before its fonts and images had been discovered.\r\n if (ctx.drawsVisibleOnly && this.hidden) return;\r\n // A node that has turned past edge-on and declines to show its back\r\n // paints nothing either — same reasoning, same walk skipped, and the same\r\n // exemption for the tracking pass, which still has to discover the assets\r\n // of a card that is currently face-down and will be face-up in a moment.\r\n // In a space the camera decides which way a node faces, not its own tilt.\r\n const frame = this._spaceFrame;\r\n if (ctx.drawsVisibleOnly && !this.backfaceVisible && this._facesAway(frame)) return;\r\n // Edge-on or behind the lens, a node whose children lie in its own plane\r\n // has nothing anywhere to show.\r\n if (ctx.drawsVisibleOnly && frame && !frame.paints && !this._rendersChildrenInSpace()) return;\r\n\r\n try {\r\n ctx.begin(this.renderState(ctx));\r\n try {\r\n this.beforeRender(ctx);\r\n this.renderContent(ctx);\r\n this.afterRender(ctx);\r\n } finally {\r\n ctx.end();\r\n }\r\n } catch (error) {\r\n // The innermost node claims it, so the runtime can learn the segment against the node that drew.\r\n if (error instanceof AssetNotLoadedError) error.nodeId ??= this.id;\r\n throw error;\r\n }\r\n }\r\n\r\n /**\r\n * Everything this node paints: its transform, its effect envelope, its own\r\n * drawing, its children, its overlay and its stroke.\r\n *\r\n * The seam for a node whose children must not simply draw themselves —\r\n * `BooleanGroup` feeds them into a path-collection scope, `MaskGroup` splits\r\n * the first off as a mask. Overriding this replaces the body while keeping\r\n * every guard {@link render} performs above it, which is the whole reason it\r\n * is a separate method: a node that overrode the entry point instead would\r\n * quietly opt out of the mounted and visibility checks.\r\n */\r\n protected renderContent(ctx: RenderPass2D): void {\r\n this.applyTransform(ctx);\r\n const frame = this._spaceFrame;\r\n // Edge-on or behind the lens: nothing of its own to draw and no plane to\r\n // draw it on, but its children are placed by frames of their own.\r\n if (frame && !frame.paints) {\r\n this.renderChildren(ctx);\r\n return;\r\n }\r\n const cut = frame?.nearCut ?? null;\r\n this.renderContentWithEffects(ctx, () => {\r\n this._paintInFront(ctx, cut, () => this.renderSelf(ctx));\r\n // Confine children to this node's outline. Built once from clipSelf();\r\n // skipped when the node has no outline (clipped === false) so the\r\n // endClip() below stays balanced.\r\n const clipped = this.clip && this.applyClip(ctx);\r\n this.renderChildren(ctx);\r\n if (clipped) ctx.endClip();\r\n this._paintInFront(ctx, cut, () => {\r\n this.renderOverlay(ctx);\r\n this.renderStroke(ctx);\r\n });\r\n });\r\n }\r\n\r\n /** Whether the node shows its back — to the space's camera when it is in one, else by its own tilt. */\r\n private _facesAway(frame: SpaceFrame | null): boolean {\r\n if (frame) return frame.facesAway;\r\n const p = this._projection();\r\n return facesAway(p.rotationX, p.rotationY);\r\n }\r\n\r\n // ---- Layout -----------------------------------------------------------\r\n\r\n /** What {@link measure} hands {@link layoutChildren} within a pass; consumed there. */\r\n private _flowMeasure: FlowMeasure<Node2D> | null = null;\r\n\r\n /** The content box {@link layoutChildren} last placed children in, y-down from this node's centre. */\r\n private _childBox: BoxBounds | null = null;\r\n private _flowWarned = false;\r\n\r\n /**\r\n * Record this node's allocated bounds without touching children.\r\n *\r\n * Compared field by field, because every caller builds a fresh object literal,\r\n * so identity always differs — including on every frame of a node that is\r\n * simply sitting still. Skipping the write keeps the object stable for the\r\n * aliasing reason below.\r\n */\r\n protected setLayoutBounds(rect: BoxBounds): void {\r\n const current = this._layoutBounds.get();\r\n if (\r\n current.x === rect.x\r\n && current.y === rect.y\r\n && current.width === rect.width\r\n && current.height === rect.height\r\n ) return;\r\n // Stores the *new* object rather than mutating the old one in place:\r\n // `layoutBounds` is handed out by `get()` to its public reader, to\r\n // `computeSpaceRects` and to bound anchor computations, and mutating it\r\n // under them would be an aliasing change none of them could see coming.\r\n this._layoutBounds.set(rect);\r\n }\r\n\r\n /**\r\n * The children this node lays out itself — its 2D children, minus the hidden\r\n * ones. Every measure and layout pass in a container iterates *this*, not\r\n * `children`.\r\n *\r\n * Returns the live array untouched in the common case, so an ordinary tree\r\n * allocates nothing per pass.\r\n */\r\n flowChildren(): Node2D[] {\r\n const children = this._children;\r\n // Only a hidden child — or a 3D child under a `Canvas3D` — can leave the\r\n // flow, and both are rare enough to be worth checking for before\r\n // allocating.\r\n let i = 0;\r\n for (; i < children.length; i++) {\r\n const child = children[i];\r\n if (!(child instanceof Node2D) || child.hidden) break;\r\n }\r\n if (i === children.length) return children as Node2D[];\r\n // A hidden child gives up its cell *and* its gap — `display: none`, not\r\n // `visibility: hidden`. Leaving the slot would put a hole in a row\r\n // wherever someone folded a layer away.\r\n return children.filter((c): c is Node2D => c instanceof Node2D && !c.hidden);\r\n }\r\n\r\n /**\r\n * The inset children are laid out within. A node with a stroke to clear adds\r\n * the part of it that intrudes (see `ShapeNode`).\r\n */\r\n effectivePadding(): InsetsResolved {\r\n return this.padding as InsetsResolved;\r\n }\r\n\r\n /**\r\n * How this node arranges its children: centred freeform, unless a subclass\r\n * says otherwise. A container returns its own layout props; a custom node can\r\n * return a constant — `{ flow: \"horizontal\", gap: 32 }` — to lay its children\r\n * out as a row without wrapping them in a `Rect`.\r\n */\r\n protected flowArrangement(): FlowSettings {\r\n return DEFAULT_FLOW;\r\n }\r\n\r\n /** Record `rect`, then place the flow children in it — see {@link layoutChildren}. */\r\n layout(rect: BoxBounds, scope: MeasureContext2D): void {\r\n this.setLayoutBounds(rect);\r\n this.layoutChildren(rect, scope);\r\n }\r\n\r\n /**\r\n * Place the flow children in `rect`'s content box by {@link flowArrangement}.\r\n *\r\n * Reuses what {@link measure} found when the box is the one it measured in —\r\n * or, on an axis that hugs, exactly what it hugged — and measures again\r\n * otherwise: a parent laying this node out at a size it did not measure it\r\n * for would leave the children arranged for the wrong box.\r\n */\r\n protected layoutChildren(rect: BoxBounds, scope: MeasureContext2D): void {\r\n const pending = this._flowMeasure;\r\n this._flowMeasure = null;\r\n const inner = insetsOps.insetBounds(rect.width, rect.height, this.effectivePadding());\r\n this._childBox = inner;\r\n const children = this.flowChildren();\r\n if (children.length === 0) return;\r\n\r\n const settings = this.flowArrangement();\r\n const measured = pending && flowOps.reusable(pending, inner)\r\n ? pending\r\n : flowOps.measure(settings, children, {\r\n width: inner.width,\r\n height: inner.height,\r\n hugWidth: this.width === \"hug\",\r\n hugHeight: this.height === \"hug\",\r\n }, scope);\r\n\r\n // The boxes are y-up from the content box's centre; a layout rect is y-down\r\n // from this node's.\r\n const boxes = flowOps.place(measured, settings, inner);\r\n for (let i = 0; i < boxes.length; i++) {\r\n const box = boxes[i];\r\n measured.items[i].layout(\r\n { x: inner.x + box.x, y: inner.y - box.y, width: box.width, height: box.height },\r\n scope,\r\n );\r\n }\r\n\r\n if (this._flowWarned) return;\r\n const warning = flowOps.collapsedRun(measured, rect);\r\n if (warning === null) return;\r\n this._flowWarned = true;\r\n console.warn(`[motionscript] \"${this.className}\" ${warning}`);\r\n }\r\n\r\n /**\r\n * Resolve `width`/`height`, measuring the flow children by\r\n * {@link flowArrangement}: a `'hug'` axis wraps what they come to, plus this\r\n * node's padding. What it finds is kept for {@link layoutChildren}.\r\n *\r\n * Only flow children are measured: a canvas-pinned child is sized against the\r\n * canvas, so hugging it would shrink-wrap a box this node never contains.\r\n */\r\n measure(constraints: SizeConstraints, scope: MeasureContext2D): Partial<Size2D> {\r\n this.lastMeasure = { constraints, measurer: scope };\r\n const padding = this.effectivePadding();\r\n const children = this.flowChildren();\r\n if (children.length === 0) {\r\n this._flowMeasure = null;\r\n return flowOps.size(this, constraints, padding, NO_CONTENT);\r\n }\r\n const space = flowOps.contentBox(this, constraints, padding);\r\n const measured = flowOps.measure(this.flowArrangement(), children, space, scope);\r\n this._flowMeasure = measured;\r\n return flowOps.size(this, constraints, padding, measured.hug);\r\n }\r\n\r\n // ---- Reparenting ------------------------------------------------------\r\n\r\n reparent(args: CommandArgs<{ newParent: Node2D }> & { duration?: undefined }): void;\r\n reparent(args: CommandArgs<{ newParent: Node2D }> & { duration: number }): Command<Record<string, never>>;\r\n @command({ args: [\"newParent\"] })\r\n reparent(args: CommandArgs<{ newParent: Node2D }>): void | Command<Record<string, never>> {\r\n const newParent = (args.data as { newParent: Node2D }).newParent;\r\n if (args.duration === undefined) {\r\n const old = this.parent;\r\n if (old) old.remove(this);\r\n newParent.add(this);\r\n return;\r\n }\r\n return reparentAnimated(this, newParent, args.duration, args.easing);\r\n }\r\n\r\n}\r\n\r\n/** A command's `data` without the arguments a document left out, which arrive as `undefined` and must not be tweened to. */\r\nfunction _stated<T extends object>(data: T | undefined): Partial<T> {\r\n const stated: Partial<T> = {};\r\n for (const key in data) {\r\n if (data[key] !== undefined) stated[key] = data[key];\r\n }\r\n return stated;\r\n}\r\n\r\n/** The 2D node `id` names anywhere in the tree `from` is in, or `null`. */\r\nexport function findNode2D(from: Node, id: string): Node2D | null {\r\n let root = from;\r\n while (root.parent) root = root.parent;\r\n return findUnder(root, id);\r\n}\r\n\r\nfunction findUnder(at: Node, id: string): Node2D | null {\r\n if (at.id === id) return at instanceof Node2D ? at : null;\r\n for (const child of at._allChildren) {\r\n const found = findUnder(child, id);\r\n if (found) return found;\r\n }\r\n return null;\r\n}\r\n\r\n/**\r\n * Where `node`'s frame sits in `host`'s, wherever each is in the tree: its\r\n * centre as an offset (y-up) from `host`'s, and its turn and scale relative to it.\r\n */\r\nexport function frameIn(host: Node2D, node: Node2D): Vector2 & Pick<WorldTransform, \"rotation\" | \"scale\"> {\r\n const there = node.global;\r\n const here = host.global;\r\n const inverse = here.scale === 0 ? 0 : 1 / here.scale;\r\n const offset = rotateOffset(0, 0, -here.rotation, (there.x - here.x) * inverse, (there.y - here.y) * inverse);\r\n return { x: offset.x, y: offset.y, rotation: there.rotation - here.rotation, scale: there.scale * inverse };\r\n}\r\n"]}
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import type { AssetScope } from "../../assets/scope.js";
|
|
2
|
-
import { StrokeResolved, type Stroke } from "../../attributes/shape/stroke/stroke.js";
|
|
3
|
-
import { ShadowResolved, type Shadow } from "../../attributes/shape/shadow/shadow.js";
|
|
4
|
-
import { FillResolved } from "../../attributes/shape/fill/union.js";
|
|
5
|
-
import { Fill } from "../../attributes/shape/fill/chain.js";
|
|
6
|
-
import { RenderContext2D } from "../../render/render-context2d.js";
|
|
7
|
-
import { Graphics2D } from "../../render/graphics2d.js";
|
|
8
|
-
import { Vector2 } from "../../attributes/layout/vector2.js";
|
|
9
|
-
import { Node2D, Node2DProps } from "../../nodes/2d/node2d.js";
|
|
10
|
-
import { type Command, type CommandArgs } from "../../tween/command.js";
|
|
11
|
-
export interface PaintProps extends Node2DProps {
|
|
12
|
-
/**
|
|
13
|
-
* Fill layer(s). Each item can be:
|
|
14
|
-
* - A plain CSS color string → treated as a solid fill
|
|
15
|
-
* - A fill prop object (SolidFillProp, LinearGradientFillProp, …)
|
|
16
|
-
* - An already-resolved fill object
|
|
17
|
-
* - A {@link FillChain} from the `Fills` builder (e.g. `Fills.color('red')`)
|
|
18
|
-
*/
|
|
19
|
-
fill?: Fill;
|
|
20
|
-
/**
|
|
21
|
-
* Stroke layer(s): a single {@link StrokeProp}, an array of them, or an
|
|
22
|
-
* already-resolved stroke. `fill` inside each stroke accepts the same loose
|
|
23
|
-
* values as the top-level fill prop.
|
|
24
|
-
*/
|
|
25
|
-
stroke?: Stroke;
|
|
26
|
-
/**
|
|
27
|
-
* Shadow layer(s): a single {@link ShadowProp}, an array of them, or an
|
|
28
|
-
* already-resolved shadow. `fill` inside each shadow accepts the same loose
|
|
29
|
-
* values as the top-level fill prop.
|
|
30
|
-
*/
|
|
31
|
-
shadow?: Shadow;
|
|
32
|
-
start?: number;
|
|
33
|
-
end?: number;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* A {@link Node2D} with **paint slots**: fill, stroke, shadow and an outline
|
|
37
|
-
* trim, the commands that tween them, and the asset declaration they imply.
|
|
38
|
-
*
|
|
39
|
-
* Nothing about *shape* and nothing about *children* — the silhouette-shaped
|
|
40
|
-
* paint (`overlay`) and the flex/freeform/grid pass both live one level down, on
|
|
41
|
-
* {@link ShapeNode}, because both are facts about a box with an outline and a
|
|
42
|
-
* subtree inside it. What is left here is what a `Rect`, a `Text` and an
|
|
43
|
-
* out-of-tree node like `Tex` genuinely share, and it is why none of them
|
|
44
|
-
* declares a paint prop, a `*To` command or an asset walk of its own.
|
|
45
|
-
*
|
|
46
|
-
* A subclass supplies the geometry (see {@link shapeGraphics}) or overrides the
|
|
47
|
-
* paint hooks outright, which is what the text nodes do — glyphs are not a
|
|
48
|
-
* silhouette that can be filled once.
|
|
49
|
-
*/
|
|
50
|
-
export declare abstract class PaintNode<P extends PaintProps = PaintProps> extends Node2D<P> {
|
|
51
|
-
fill: Fill;
|
|
52
|
-
stroke: Stroke;
|
|
53
|
-
shadow: Shadow;
|
|
54
|
-
start: number;
|
|
55
|
-
end: number;
|
|
56
|
-
/**
|
|
57
|
-
* The node's bare silhouette as a {@link Graphics2D} with **no** paint ops.
|
|
58
|
-
* `renderSelf` appends shadow + fill and {@link renderStroke} appends the
|
|
59
|
-
* stroke; on a {@link ShapeNode} its `renderOverlay` appends the overlay too.
|
|
60
|
-
* Sharing one builder keeps each shape's geometry defined in a single place.
|
|
61
|
-
*
|
|
62
|
-
* Returns `null` for nodes that have no single fillable silhouette (text,
|
|
63
|
-
* boolean groups, grids) — those override the paint hooks themselves or opt
|
|
64
|
-
* out of the generic overlay/stroke passes.
|
|
65
|
-
*/
|
|
66
|
-
protected shapeGraphics(): Graphics2D | null;
|
|
67
|
-
/**
|
|
68
|
-
* Shadow + fill of the node's own silhouette.
|
|
69
|
-
*
|
|
70
|
-
* Hoisted here from the eight geometry subclasses that each had this exact
|
|
71
|
-
* body. A subclass whose paint differs (`Path`, `Video`) still
|
|
72
|
-
* overrides it.
|
|
73
|
-
*
|
|
74
|
-
* Each hook composes its own `Graphics2D` rather than sharing one built once:
|
|
75
|
-
* `.fill()`, `.stroke()` and `.shadow()` push onto `_ops` and return `this`,
|
|
76
|
-
* so a single silhouette handed to all three would accumulate paint ops
|
|
77
|
-
* across passes.
|
|
78
|
-
*/
|
|
79
|
-
protected renderSelf(ctx: RenderContext2D): void;
|
|
80
|
-
protected renderStroke(ctx: RenderContext2D): void;
|
|
81
|
-
/**
|
|
82
|
-
* Whether the stroke pass is the one that has to cast the node's shadow.
|
|
83
|
-
*
|
|
84
|
-
* True when nothing in the fill list can paint — an empty list, or one whose
|
|
85
|
-
* every layer is fully transparent, which is the same test
|
|
86
|
-
* `StrokeHandler.applyShadows` uses to decide there is no filled silhouette
|
|
87
|
-
* to sit the shadow under.
|
|
88
|
-
*/
|
|
89
|
-
private castsShadowFromStroke;
|
|
90
|
-
/**
|
|
91
|
-
* Every paint slot is already resolved on `this`, so what it references is read
|
|
92
|
-
* off the node rather than discovered by drawing it. A subclass painting outside
|
|
93
|
-
* these slots — `Video`, `Path`, the grids — overrides this and calls `super`.
|
|
94
|
-
*/
|
|
95
|
-
declareAssets(assets: AssetScope): void;
|
|
96
|
-
/**
|
|
97
|
-
* Shapes hit on their outline, not their box: a click in the empty corner of
|
|
98
|
-
* a star's bounding box should fall through to whatever is behind it. The
|
|
99
|
-
* outline is the very one this node already declares for clipping
|
|
100
|
-
* ({@link Node2D.clipSelf}), so what is grabbable and what is drawn can never
|
|
101
|
-
* drift. Nodes that declare no outline (Text, RichText, Path) keep the base
|
|
102
|
-
* box test, which is what selection should do for them anyway.
|
|
103
|
-
*/
|
|
104
|
-
protected hitTestSelf(local: Vector2, tolerance: number): boolean;
|
|
105
|
-
fillTo(args: CommandArgs<Fill, FillResolved[]> & {
|
|
106
|
-
duration: number;
|
|
107
|
-
}): Command<P>;
|
|
108
|
-
strokeTo(args: CommandArgs<Stroke, StrokeResolved[]> & {
|
|
109
|
-
duration: number;
|
|
110
|
-
}): Command<P>;
|
|
111
|
-
shadowTo(args: CommandArgs<Shadow, ShadowResolved[]> & {
|
|
112
|
-
duration: number;
|
|
113
|
-
}): Command<P>;
|
|
114
|
-
/**
|
|
115
|
-
* Animate how much of the outline is drawn: `start` and `end`, each a
|
|
116
|
-
* fraction of its length in `[0, 1]`, whichever are given.
|
|
117
|
-
*
|
|
118
|
-
* @example
|
|
119
|
-
* path.progressTo({ data: { end: 1 }, duration: 0.8 });
|
|
120
|
-
*/
|
|
121
|
-
progressTo(args: CommandArgs<{
|
|
122
|
-
start?: number;
|
|
123
|
-
end?: number;
|
|
124
|
-
}> & {
|
|
125
|
-
duration: number;
|
|
126
|
-
}): Command<P>;
|
|
127
|
-
/**
|
|
128
|
-
* Send a stretch of the outline along it, `portion` of its length long,
|
|
129
|
-
* from its beginning off its end. Before and after, the node draws as much
|
|
130
|
-
* of its outline as it did: one that rests with `end: 0` is only ever seen
|
|
131
|
-
* as the stretch passing.
|
|
132
|
-
*
|
|
133
|
-
* @example
|
|
134
|
-
* outline.flash({ data: { portion: 0.2 }, duration: 0.8 });
|
|
135
|
-
*/
|
|
136
|
-
flash(args: CommandArgs<{
|
|
137
|
-
portion?: number;
|
|
138
|
-
}> & {
|
|
139
|
-
duration: number;
|
|
140
|
-
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