@motionscript/core 0.1.0-alpha.3 → 0.1.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +247 -0
- package/LICENSE +201 -201
- package/NOTICE +48 -0
- package/README.md +93 -72
- package/dist/assets/asset-index.js.map +1 -1
- package/dist/assets/catalog.d.ts +9 -0
- package/dist/assets/catalog.d.ts.map +1 -1
- package/dist/assets/catalog.js +11 -0
- package/dist/assets/catalog.js.map +1 -1
- package/dist/assets/errors.d.ts.map +1 -1
- package/dist/assets/errors.js +8 -3
- package/dist/assets/errors.js.map +1 -1
- package/dist/assets/index.js.map +1 -1
- package/dist/assets/manager.d.ts +26 -1
- package/dist/assets/manager.d.ts.map +1 -1
- package/dist/assets/manager.js +79 -4
- package/dist/assets/manager.js.map +1 -1
- package/dist/assets/manifest.js.map +1 -1
- package/dist/assets/record.js.map +1 -1
- package/dist/assets/scope.d.ts +3 -3
- package/dist/assets/scope.d.ts.map +1 -1
- package/dist/assets/scope.js.map +1 -1
- package/dist/attributes/audio/filters/chain.d.ts +1 -1
- package/dist/attributes/audio/filters/chain.js.map +1 -1
- package/dist/attributes/audio/filters/curve.d.ts +8 -8
- package/dist/attributes/audio/filters/curve.d.ts.map +1 -1
- package/dist/attributes/audio/filters/curve.js +20 -19
- package/dist/attributes/audio/filters/curve.js.map +1 -1
- package/dist/attributes/audio/filters/implementations/echo.js.map +1 -1
- package/dist/attributes/audio/filters/implementations/gain.js.map +1 -1
- package/dist/attributes/audio/filters/implementations/highpass.js.map +1 -1
- package/dist/attributes/audio/filters/implementations/lowpass.js.map +1 -1
- package/dist/attributes/audio/filters/implementations/speed.d.ts +2 -2
- package/dist/attributes/audio/filters/implementations/speed.js.map +1 -1
- package/dist/attributes/audio/filters/implementations/tremolo.js.map +1 -1
- package/dist/attributes/audio/filters/index.d.ts +1 -1
- package/dist/attributes/audio/filters/index.d.ts.map +1 -1
- package/dist/attributes/audio/filters/index.js +1 -1
- package/dist/attributes/audio/filters/index.js.map +1 -1
- package/dist/attributes/audio/filters/registry.js.map +1 -1
- package/dist/attributes/audio/filters/union.js.map +1 -1
- package/dist/attributes/audio/request.d.ts +17 -2
- package/dist/attributes/audio/request.d.ts.map +1 -1
- package/dist/attributes/audio/request.js.map +1 -1
- package/dist/attributes/audio/schedule.d.ts +4 -2
- package/dist/attributes/audio/schedule.d.ts.map +1 -1
- package/dist/attributes/audio/schedule.js +15 -8
- package/dist/attributes/audio/schedule.js.map +1 -1
- package/dist/attributes/audio/sound.d.ts +4 -2
- package/dist/attributes/audio/sound.d.ts.map +1 -1
- package/dist/attributes/audio/sound.js +8 -4
- package/dist/attributes/audio/sound.js.map +1 -1
- package/dist/attributes/index.js.map +1 -1
- package/dist/attributes/layout/alignment.js +1 -1
- package/dist/attributes/layout/alignment.js.map +1 -1
- package/dist/attributes/layout/index.js.map +1 -1
- package/dist/attributes/layout/insets.js.map +1 -1
- package/dist/attributes/layout/matrix2d.js.map +1 -1
- package/dist/attributes/layout/size.js.map +1 -1
- package/dist/attributes/layout/transform3d.js.map +1 -1
- package/dist/attributes/layout/vector2.js.map +1 -1
- package/dist/attributes/layout/world-transform.js.map +1 -1
- package/dist/attributes/mask/boolean.js.map +1 -1
- package/dist/attributes/mask/mask.js.map +1 -1
- package/dist/attributes/properties/decorator.d.ts +3 -1
- package/dist/attributes/properties/decorator.d.ts.map +1 -1
- package/dist/attributes/properties/decorator.js.map +1 -1
- package/dist/attributes/properties/inputs.js.map +1 -1
- package/dist/attributes/properties/typed.d.ts +9 -2
- package/dist/attributes/properties/typed.d.ts.map +1 -1
- package/dist/attributes/properties/typed.js +15 -1
- package/dist/attributes/properties/typed.js.map +1 -1
- package/dist/attributes/render3d/orbit.d.ts +8 -8
- package/dist/attributes/render3d/orbit.js +7 -7
- package/dist/attributes/render3d/orbit.js.map +1 -1
- package/dist/attributes/shape/corners/corner-radius.js.map +1 -1
- package/dist/attributes/shape/corners/corner-style.js.map +1 -1
- package/dist/attributes/shape/corners/corners.js.map +1 -1
- package/dist/attributes/shape/corners/index.js.map +1 -1
- package/dist/attributes/shape/effects/backdrop.d.ts +4 -4
- package/dist/attributes/shape/effects/backdrop.d.ts.map +1 -1
- package/dist/attributes/shape/effects/backdrop.js.map +1 -1
- package/dist/attributes/shape/effects/chain.d.ts +28 -120
- package/dist/attributes/shape/effects/chain.d.ts.map +1 -1
- package/dist/attributes/shape/effects/chain.js +16 -88
- package/dist/attributes/shape/effects/chain.js.map +1 -1
- package/dist/attributes/shape/effects/effect-data.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/ascii.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/bit-crush.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/block-displace.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/bloom.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/bulge.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/color-adjustment.d.ts +2 -2
- package/dist/attributes/shape/effects/implementations/color-adjustment.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/curves.d.ts +1 -1
- package/dist/attributes/shape/effects/implementations/curves.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/directional-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/dither.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/drop-shadow.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/duotone.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/edges.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/glass.d.ts +15 -24
- package/dist/attributes/shape/effects/implementations/glass.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/glass.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/glow.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/grain.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/grayscale.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/halftone.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/invert.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/kaleidoscope.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/lut.d.ts +1 -1
- package/dist/attributes/shape/effects/implementations/lut.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/magnify.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/motion-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/oil-paint.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/outline.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/pixelate.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/posterize.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/progressive-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/radial-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/rgb-shift.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/scanlines.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/scatter.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/shader.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/shader.js +15 -8
- package/dist/attributes/shape/effects/implementations/shader.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/sharpen.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/streak.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/threshold.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/twirl.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/vignette.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/vintage.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/wave.js.map +1 -1
- package/dist/attributes/shape/effects/index.d.ts +2 -6
- package/dist/attributes/shape/effects/index.d.ts.map +1 -1
- package/dist/attributes/shape/effects/index.js.map +1 -1
- package/dist/attributes/shape/effects/registry.d.ts +23 -6
- package/dist/attributes/shape/effects/registry.d.ts.map +1 -1
- package/dist/attributes/shape/effects/registry.js +44 -10
- package/dist/attributes/shape/effects/registry.js.map +1 -1
- package/dist/attributes/shape/effects/union.d.ts +2 -6
- package/dist/attributes/shape/effects/union.d.ts.map +1 -1
- package/dist/attributes/shape/effects/union.js.map +1 -1
- package/dist/attributes/shape/fill/blend.js.map +1 -1
- package/dist/attributes/shape/fill/chain.js.map +1 -1
- package/dist/attributes/shape/fill/coerce.js.map +1 -1
- package/dist/attributes/shape/fill/color/constants.js.map +1 -1
- package/dist/attributes/shape/fill/color/parser.d.ts.map +1 -1
- package/dist/attributes/shape/fill/color/parser.js +81 -44
- package/dist/attributes/shape/fill/color/parser.js.map +1 -1
- package/dist/attributes/shape/fill/gradient-stops.d.ts +16 -0
- package/dist/attributes/shape/fill/gradient-stops.d.ts.map +1 -0
- package/dist/attributes/shape/fill/gradient-stops.js +65 -0
- package/dist/attributes/shape/fill/gradient-stops.js.map +1 -0
- package/dist/attributes/shape/fill/implementations/canvas3d.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/color.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/conic-gradient.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/conic-gradient.js +2 -5
- package/dist/attributes/shape/fill/implementations/conic-gradient.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/dot-grid.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/fractal-noise.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/fractal-noise.js +2 -10
- package/dist/attributes/shape/fill/implementations/fractal-noise.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/grid.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/image.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/image.js +5 -4
- package/dist/attributes/shape/fill/implementations/image.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/linear-gradient.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/linear-gradient.js +2 -6
- package/dist/attributes/shape/fill/implementations/linear-gradient.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/noise.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/radial-gradient.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/radial-gradient.js +2 -5
- package/dist/attributes/shape/fill/implementations/radial-gradient.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/shader.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/stripe.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/video.js +1 -1
- package/dist/attributes/shape/fill/implementations/video.js.map +1 -1
- package/dist/attributes/shape/fill/index.js.map +1 -1
- package/dist/attributes/shape/fill/lerp.js.map +1 -1
- package/dist/attributes/shape/fill/media-preset.js.map +1 -1
- package/dist/attributes/shape/fill/registry.js.map +1 -1
- package/dist/attributes/shape/fill/union.js.map +1 -1
- package/dist/attributes/shape/filters/chain.d.ts +4 -10
- package/dist/attributes/shape/filters/chain.d.ts.map +1 -1
- package/dist/attributes/shape/filters/chain.js +1 -13
- package/dist/attributes/shape/filters/chain.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/alpha.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/blur.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/color-adjustment.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/color-matrix.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/curves.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/echo.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/exposure.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/grayscale.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/posterize-time.js.map +1 -1
- package/dist/attributes/shape/filters/index.d.ts +1 -1
- package/dist/attributes/shape/filters/index.js.map +1 -1
- package/dist/attributes/shape/filters/registry.d.ts +2 -2
- package/dist/attributes/shape/filters/registry.js +3 -3
- package/dist/attributes/shape/filters/registry.js.map +1 -1
- package/dist/attributes/shape/filters/union.d.ts +6 -7
- package/dist/attributes/shape/filters/union.d.ts.map +1 -1
- package/dist/attributes/shape/filters/union.js.map +1 -1
- package/dist/attributes/shape/path/anchors.d.ts.map +1 -1
- package/dist/attributes/shape/path/anchors.js +12 -5
- package/dist/attributes/shape/path/anchors.js.map +1 -1
- package/dist/attributes/shape/path/bezier.js.map +1 -1
- package/dist/attributes/shape/path/index.js.map +1 -1
- package/dist/attributes/shape/path/measure.js.map +1 -1
- package/dist/attributes/shape/path/morph.d.ts.map +1 -1
- package/dist/attributes/shape/path/morph.js +16 -4
- package/dist/attributes/shape/path/morph.js.map +1 -1
- package/dist/attributes/shape/path/ops.js.map +1 -1
- package/dist/attributes/shape/path/types.js.map +1 -1
- package/dist/attributes/shape/path/walk.js.map +1 -1
- package/dist/attributes/shape/shaders/index.js.map +1 -1
- package/dist/attributes/shape/shaders/pack.js.map +1 -1
- package/dist/attributes/shape/shaders/resolve.js.map +1 -1
- package/dist/attributes/shape/shadow/index.js.map +1 -1
- package/dist/attributes/shape/shadow/shadow.js.map +1 -1
- package/dist/attributes/shape/stroke/index.d.ts +2 -2
- package/dist/attributes/shape/stroke/index.d.ts.map +1 -1
- package/dist/attributes/shape/stroke/index.js +1 -1
- package/dist/attributes/shape/stroke/index.js.map +1 -1
- package/dist/attributes/shape/stroke/stroke.d.ts +27 -6
- package/dist/attributes/shape/stroke/stroke.d.ts.map +1 -1
- package/dist/attributes/shape/stroke/stroke.js +22 -2
- package/dist/attributes/shape/stroke/stroke.js.map +1 -1
- package/dist/attributes/shared/operators.js.map +1 -1
- package/dist/attributes/text/index.js.map +1 -1
- package/dist/attributes/text/ops.d.ts +6 -0
- package/dist/attributes/text/ops.d.ts.map +1 -1
- package/dist/attributes/text/ops.js +1 -0
- package/dist/attributes/text/ops.js.map +1 -1
- package/dist/attributes/text/types.js.map +1 -1
- package/dist/browser/chunks/chunk-2RIYH36X.js +3 -0
- package/dist/browser/chunks/chunk-2RIYH36X.js.map +7 -0
- package/dist/browser/chunks/chunk-DDJN3QII.js +15 -0
- package/dist/browser/chunks/chunk-DDJN3QII.js.map +7 -0
- package/dist/browser/chunks/chunk-DHB4COFY.js +2 -0
- package/dist/browser/chunks/chunk-DHB4COFY.js.map +7 -0
- package/dist/browser/chunks/chunk-EJDPYDQI.js +5 -0
- package/dist/browser/chunks/chunk-EJDPYDQI.js.map +7 -0
- package/dist/browser/chunks/chunk-SFNJRPBV.js +2 -0
- package/dist/browser/chunks/chunk-SFNJRPBV.js.map +7 -0
- package/dist/browser/chunks/chunk-XAWE4EAK.js +2 -0
- package/dist/browser/chunks/chunk-XAWE4EAK.js.map +7 -0
- package/dist/browser/component.js +1 -1
- package/dist/browser/component.js.map +4 -4
- package/dist/browser/experimental.js +2 -0
- package/dist/browser/experimental.js.map +7 -0
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +4 -4
- package/dist/browser/jsx-jsx-dev-runtime.js +1 -1
- package/dist/browser/jsx-jsx-runtime.js +1 -1
- package/dist/browser/manifest.json +4 -2
- package/dist/browser/sdk.js +1 -1
- package/dist/component/api.d.ts +508 -0
- package/dist/component/api.d.ts.map +1 -0
- package/dist/component/api.js +4 -0
- package/dist/component/api.js.map +1 -0
- package/dist/component/builtins/audio.d.ts +26 -0
- package/dist/component/builtins/audio.d.ts.map +1 -0
- package/dist/component/builtins/audio.js +41 -0
- package/dist/component/builtins/audio.js.map +1 -0
- package/dist/component/builtins/canvas3d.d.ts +98 -0
- package/dist/component/builtins/canvas3d.d.ts.map +1 -0
- package/dist/component/builtins/canvas3d.js +21 -0
- package/dist/component/builtins/canvas3d.js.map +1 -0
- package/dist/component/builtins/composite.d.ts +56 -0
- package/dist/component/builtins/composite.d.ts.map +1 -0
- package/dist/component/builtins/composite.js +25 -0
- package/dist/component/builtins/composite.js.map +1 -0
- package/dist/component/builtins/geometry.d.ts +505 -0
- package/dist/component/builtins/geometry.d.ts.map +1 -0
- package/dist/component/builtins/geometry.js +107 -0
- package/dist/component/builtins/geometry.js.map +1 -0
- package/dist/component/builtins/layout.d.ts +88 -0
- package/dist/component/builtins/layout.d.ts.map +1 -0
- package/dist/component/builtins/layout.js +84 -0
- package/dist/component/builtins/layout.js.map +1 -0
- package/dist/component/builtins/media.d.ts +95 -0
- package/dist/component/builtins/media.d.ts.map +1 -0
- package/dist/component/builtins/media.js +149 -0
- package/dist/component/builtins/media.js.map +1 -0
- package/dist/component/builtins/providers.d.ts +23 -0
- package/dist/component/builtins/providers.d.ts.map +1 -0
- package/dist/component/builtins/providers.js +30 -0
- package/dist/component/builtins/providers.js.map +1 -0
- package/dist/component/builtins/text.d.ts +193 -0
- package/dist/component/builtins/text.d.ts.map +1 -0
- package/dist/component/builtins/text.js +113 -0
- package/dist/component/builtins/text.js.map +1 -0
- package/dist/component/builtins/three.d.ts +1085 -0
- package/dist/component/builtins/three.d.ts.map +1 -0
- package/dist/component/builtins/three.js +265 -0
- package/dist/component/builtins/three.js.map +1 -0
- package/dist/component/clip-of.d.ts +5 -0
- package/dist/component/clip-of.d.ts.map +1 -0
- package/dist/component/clip-of.js +33 -0
- package/dist/component/clip-of.js.map +1 -0
- package/dist/component/commands-for.d.ts +19 -0
- package/dist/component/commands-for.d.ts.map +1 -0
- package/dist/component/commands-for.js +5 -0
- package/dist/component/commands-for.js.map +1 -0
- package/dist/component/component-audio.d.ts +9 -0
- package/dist/component/component-audio.d.ts.map +1 -0
- package/dist/component/component-audio.js +18 -0
- package/dist/component/component-audio.js.map +1 -0
- package/dist/component/component2d.d.ts +9 -0
- package/dist/component/component2d.d.ts.map +1 -0
- package/dist/component/component2d.js +239 -0
- package/dist/component/component2d.js.map +1 -0
- package/dist/component/component3d.d.ts +9 -0
- package/dist/component/component3d.d.ts.map +1 -0
- package/dist/component/component3d.js +99 -0
- package/dist/component/component3d.js.map +1 -0
- package/dist/component/factory.d.ts +63 -0
- package/dist/component/factory.d.ts.map +1 -0
- package/dist/component/factory.js +313 -0
- package/dist/component/factory.js.map +1 -0
- package/dist/component/modules/aim.d.ts +30 -0
- package/dist/component/modules/aim.d.ts.map +1 -0
- package/dist/component/modules/aim.js +39 -0
- package/dist/component/modules/aim.js.map +1 -0
- package/dist/component/modules/corners.d.ts +13 -0
- package/dist/component/modules/corners.d.ts.map +1 -0
- package/dist/component/modules/corners.js +12 -0
- package/dist/component/modules/corners.js.map +1 -0
- package/dist/component/modules/flow.d.ts +26 -0
- package/dist/component/modules/flow.d.ts.map +1 -0
- package/dist/component/modules/flow.js +55 -0
- package/dist/component/modules/flow.js.map +1 -0
- package/dist/component/modules/material.d.ts +40 -0
- package/dist/component/modules/material.d.ts.map +1 -0
- package/dist/component/modules/material.js +75 -0
- package/dist/component/modules/material.js.map +1 -0
- package/dist/component/modules/paint.d.ts +71 -0
- package/dist/component/modules/paint.d.ts.map +1 -0
- package/dist/component/modules/paint.js +106 -0
- package/dist/component/modules/paint.js.map +1 -0
- package/dist/component/modules/shapes.d.ts +31 -0
- package/dist/component/modules/shapes.d.ts.map +1 -0
- package/dist/component/modules/shapes.js +43 -0
- package/dist/component/modules/shapes.js.map +1 -0
- package/dist/component/modules/text-layout.d.ts +26 -0
- package/dist/component/modules/text-layout.d.ts.map +1 -0
- package/dist/component/modules/text-layout.js +57 -0
- package/dist/component/modules/text-layout.js.map +1 -0
- package/dist/component/modules/text-style.d.ts +48 -0
- package/dist/component/modules/text-style.d.ts.map +1 -0
- package/dist/component/modules/text-style.js +63 -0
- package/dist/component/modules/text-style.js.map +1 -0
- package/dist/component/modules/three-entries.d.ts +23 -0
- package/dist/component/modules/three-entries.d.ts.map +1 -0
- package/dist/component/modules/three-entries.js +41 -0
- package/dist/component/modules/three-entries.js.map +1 -0
- package/dist/component/modules/view3d.d.ts +55 -0
- package/dist/component/modules/view3d.d.ts.map +1 -0
- package/dist/component/modules/view3d.js +160 -0
- package/dist/component/modules/view3d.js.map +1 -0
- package/dist/component/timeline.d.ts +22 -0
- package/dist/component/timeline.d.ts.map +1 -0
- package/dist/component/timeline.js +128 -0
- package/dist/component/timeline.js.map +1 -0
- package/dist/component/type-def.d.ts +26 -0
- package/dist/component/type-def.d.ts.map +1 -0
- package/dist/component/type-def.js +16 -0
- package/dist/component/type-def.js.map +1 -0
- package/dist/component/types.d.ts +91 -0
- package/dist/component/types.d.ts.map +1 -0
- package/dist/component/types.js +88 -0
- package/dist/component/types.js.map +1 -0
- package/dist/component/views.d.ts +121 -0
- package/dist/component/views.d.ts.map +1 -0
- package/dist/component/views.js +413 -0
- package/dist/component/views.js.map +1 -0
- package/dist/component.d.ts +4 -5
- package/dist/component.d.ts.map +1 -1
- package/dist/component.js +3 -5
- package/dist/component.js.map +1 -1
- package/dist/document/audio.d.ts +10 -2
- package/dist/document/audio.d.ts.map +1 -1
- package/dist/document/audio.js +45 -4
- package/dist/document/audio.js.map +1 -1
- package/dist/document/builtins.d.ts.map +1 -1
- package/dist/document/builtins.js +15 -39
- package/dist/document/builtins.js.map +1 -1
- package/dist/document/command-traits.d.ts +1 -1
- package/dist/document/command-traits.js +16 -1
- package/dist/document/command-traits.js.map +1 -1
- package/dist/document/deny-globals.js.map +1 -1
- package/dist/document/diff.d.ts.map +1 -1
- package/dist/document/diff.js +3 -3
- package/dist/document/diff.js.map +1 -1
- package/dist/document/doc-index.d.ts +2 -2
- package/dist/document/doc-index.d.ts.map +1 -1
- package/dist/document/doc-index.js +3 -3
- package/dist/document/doc-index.js.map +1 -1
- package/dist/document/expression/compile.d.ts.map +1 -1
- package/dist/document/expression/compile.js +8 -5
- package/dist/document/expression/compile.js.map +1 -1
- package/dist/document/expression/index.js.map +1 -1
- package/dist/document/expression/ops.js +1 -1
- package/dist/document/expression/ops.js.map +1 -1
- package/dist/document/expression/parse.d.ts.map +1 -1
- package/dist/document/expression/parse.js +15 -6
- package/dist/document/expression/parse.js.map +1 -1
- package/dist/document/expression/refs.d.ts +1 -1
- package/dist/document/expression/refs.js +1 -1
- package/dist/document/expression/refs.js.map +1 -1
- package/dist/document/expression/types.js.map +1 -1
- package/dist/document/expression/walk.d.ts.map +1 -1
- package/dist/document/expression/walk.js +2 -1
- package/dist/document/expression/walk.js.map +1 -1
- package/dist/document/index.d.ts +2 -0
- package/dist/document/index.d.ts.map +1 -1
- package/dist/document/index.js +2 -0
- package/dist/document/index.js.map +1 -1
- package/dist/document/node-decorator.js.map +1 -1
- package/dist/document/node-descriptor.d.ts +25 -0
- package/dist/document/node-descriptor.d.ts.map +1 -1
- package/dist/document/node-descriptor.js.map +1 -1
- package/dist/document/placement.d.ts +70 -0
- package/dist/document/placement.d.ts.map +1 -0
- package/dist/document/placement.js +83 -0
- package/dist/document/placement.js.map +1 -0
- package/dist/document/project.d.ts +2 -2
- package/dist/document/project.d.ts.map +1 -1
- package/dist/document/project.js.map +1 -1
- package/dist/document/registry.d.ts +23 -11
- package/dist/document/registry.d.ts.map +1 -1
- package/dist/document/registry.js +46 -19
- package/dist/document/registry.js.map +1 -1
- package/dist/document/settled-index.d.ts +49 -0
- package/dist/document/settled-index.d.ts.map +1 -0
- package/dist/document/settled-index.js +247 -0
- package/dist/document/settled-index.js.map +1 -0
- package/dist/document/timeline-patch.js.map +1 -1
- package/dist/document/timeline.d.ts +100 -19
- package/dist/document/timeline.d.ts.map +1 -1
- package/dist/document/timeline.js +290 -42
- package/dist/document/timeline.js.map +1 -1
- package/dist/document/types.d.ts +12 -12
- package/dist/document/types.d.ts.map +1 -1
- package/dist/document/types.js +2 -2
- package/dist/document/types.js.map +1 -1
- package/dist/document/validate.d.ts +2 -2
- package/dist/document/validate.d.ts.map +1 -1
- package/dist/document/validate.js +37 -31
- package/dist/document/validate.js.map +1 -1
- package/dist/document/withdraw.d.ts +28 -0
- package/dist/document/withdraw.d.ts.map +1 -0
- package/dist/document/withdraw.js +61 -0
- package/dist/document/withdraw.js.map +1 -0
- package/dist/experimental.d.ts +22 -0
- package/dist/experimental.d.ts.map +1 -0
- package/dist/experimental.js +20 -0
- package/dist/experimental.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/dist/jsx/jsx-dev-runtime.js.map +1 -1
- package/dist/jsx/jsx-runtime.d.ts +9 -1
- package/dist/jsx/jsx-runtime.d.ts.map +1 -1
- package/dist/jsx/jsx-runtime.js +13 -3
- package/dist/jsx/jsx-runtime.js.map +1 -1
- package/dist/layout/bounds.d.ts +0 -1
- package/dist/layout/bounds.d.ts.map +1 -1
- package/dist/layout/bounds.js.map +1 -1
- package/dist/layout/constraints.js.map +1 -1
- package/dist/layout/flex.d.ts +4 -2
- package/dist/layout/flex.d.ts.map +1 -1
- package/dist/layout/flex.js +27 -11
- package/dist/layout/flex.js.map +1 -1
- package/dist/layout/freeform.js.map +1 -1
- package/dist/layout/grid.js.map +1 -1
- package/dist/layout/index.js.map +1 -1
- package/dist/layout/item.js.map +1 -1
- package/dist/layout/ops.d.ts +6 -0
- package/dist/layout/ops.d.ts.map +1 -1
- package/dist/layout/ops.js +6 -0
- package/dist/layout/ops.js.map +1 -1
- package/dist/layout/types.js.map +1 -1
- package/dist/nodes/2d/node-lifecycle.js.map +1 -1
- package/dist/nodes/2d/node-motion.js.map +1 -1
- package/dist/nodes/2d/node-render.d.ts +3 -3
- package/dist/nodes/2d/node-render.d.ts.map +1 -1
- package/dist/nodes/2d/node-render.js.map +1 -1
- package/dist/nodes/2d/node-transform.js.map +1 -1
- package/dist/nodes/2d/node2d.d.ts +115 -3
- package/dist/nodes/2d/node2d.d.ts.map +1 -1
- package/dist/nodes/2d/node2d.js +180 -28
- package/dist/nodes/2d/node2d.js.map +1 -1
- package/dist/nodes/2d/paint-node.d.ts +27 -0
- package/dist/nodes/2d/paint-node.d.ts.map +1 -1
- package/dist/nodes/2d/paint-node.js +42 -0
- package/dist/nodes/2d/paint-node.js.map +1 -1
- package/dist/nodes/audio/audio-bus.js.map +1 -1
- package/dist/nodes/audio/index.d.ts +2 -2
- package/dist/nodes/audio/index.d.ts.map +1 -1
- package/dist/nodes/audio/index.js +0 -2
- package/dist/nodes/audio/index.js.map +1 -1
- package/dist/nodes/audio/node-audio.js.map +1 -1
- package/dist/nodes/audio/sound-node.d.ts +4 -3
- package/dist/nodes/audio/sound-node.d.ts.map +1 -1
- package/dist/nodes/audio/sound-node.js +4 -1
- package/dist/nodes/audio/sound-node.js.map +1 -1
- package/dist/nodes/geometry/bounds-shape-node.d.ts +4 -4
- package/dist/nodes/geometry/bounds-shape-node.js +2 -2
- package/dist/nodes/geometry/bounds-shape-node.js.map +1 -1
- package/dist/nodes/geometry/box-path-node.d.ts +3 -3
- package/dist/nodes/geometry/box-path-node.js +2 -2
- package/dist/nodes/geometry/box-path-node.js.map +1 -1
- package/dist/nodes/geometry/ellipse-node.js.map +1 -1
- package/dist/nodes/geometry/group-bounds.d.ts +2 -2
- package/dist/nodes/geometry/group-bounds.d.ts.map +1 -1
- package/dist/nodes/geometry/group-bounds.js +1 -2
- package/dist/nodes/geometry/group-bounds.js.map +1 -1
- package/dist/nodes/geometry/path-node.d.ts.map +1 -1
- package/dist/nodes/geometry/path-node.js +6 -0
- package/dist/nodes/geometry/path-node.js.map +1 -1
- package/dist/nodes/geometry/polygon-node.js.map +1 -1
- package/dist/nodes/geometry/polygram-node.js.map +1 -1
- package/dist/nodes/geometry/rect-node.js.map +1 -1
- package/dist/nodes/geometry/shape-node.js.map +1 -1
- package/dist/nodes/geometry/shape-outline.d.ts +2 -2
- package/dist/nodes/geometry/shape-outline.d.ts.map +1 -1
- package/dist/nodes/geometry/shape-outline.js +2 -13
- package/dist/nodes/geometry/shape-outline.js.map +1 -1
- package/dist/nodes/index.d.ts +40 -33
- package/dist/nodes/index.d.ts.map +1 -1
- package/dist/nodes/index.js +17 -36
- package/dist/nodes/index.js.map +1 -1
- package/dist/nodes/layout/camera-node.d.ts +9 -0
- package/dist/nodes/layout/camera-node.d.ts.map +1 -1
- package/dist/nodes/layout/camera-node.js +38 -3
- package/dist/nodes/layout/camera-node.js.map +1 -1
- package/dist/nodes/layout/orbit-camera-node.d.ts +1 -1
- package/dist/nodes/layout/orbit-camera-node.js +1 -1
- package/dist/nodes/layout/orbit-camera-node.js.map +1 -1
- package/dist/nodes/layout/rotated-box.js.map +1 -1
- package/dist/nodes/media/video-node.d.ts.map +1 -1
- package/dist/nodes/media/video-node.js +2 -0
- package/dist/nodes/media/video-node.js.map +1 -1
- package/dist/nodes/node/declare-paints.js.map +1 -1
- package/dist/nodes/node/node-editor-state.js.map +1 -1
- package/dist/nodes/node/node-reactive.js.map +1 -1
- package/dist/nodes/node/node-time.d.ts +3 -3
- package/dist/nodes/node/node-time.d.ts.map +1 -1
- package/dist/nodes/node/node-time.js +1 -1
- package/dist/nodes/node/node-time.js.map +1 -1
- package/dist/nodes/node/node-walk.js.map +1 -1
- package/dist/nodes/node/node.d.ts +12 -4
- package/dist/nodes/node/node.d.ts.map +1 -1
- package/dist/nodes/node/node.js +67 -27
- package/dist/nodes/node/node.js.map +1 -1
- package/dist/nodes/node/text-defaults.d.ts +10 -12
- package/dist/nodes/node/text-defaults.d.ts.map +1 -1
- package/dist/nodes/node/text-defaults.js +10 -12
- package/dist/nodes/node/text-defaults.js.map +1 -1
- package/dist/nodes/{scene → root}/canvas2d-node.d.ts +4 -3
- package/dist/nodes/root/canvas2d-node.d.ts.map +1 -0
- package/dist/nodes/{scene → root}/canvas2d-node.js +5 -2
- package/dist/nodes/root/canvas2d-node.js.map +1 -0
- package/dist/nodes/root/provider-node.d.ts.map +1 -0
- package/dist/nodes/root/provider-node.js.map +1 -0
- package/dist/nodes/root/theme-provider-node.d.ts.map +1 -0
- package/dist/nodes/root/theme-provider-node.js.map +1 -0
- package/dist/nodes/text/default-text-style-node.d.ts +5 -2
- package/dist/nodes/text/default-text-style-node.d.ts.map +1 -1
- package/dist/nodes/text/default-text-style-node.js +10 -4
- package/dist/nodes/text/default-text-style-node.js.map +1 -1
- package/dist/nodes/text/number-format.d.ts +1 -1
- package/dist/nodes/text/number-format.js +1 -1
- package/dist/nodes/text/number-format.js.map +1 -1
- package/dist/nodes/text/number-node.js.map +1 -1
- package/dist/nodes/text/number-pattern.js.map +1 -1
- package/dist/nodes/text/richtext-node.d.ts +0 -5
- package/dist/nodes/text/richtext-node.d.ts.map +1 -1
- package/dist/nodes/text/richtext-node.js +6 -72
- package/dist/nodes/text/richtext-node.js.map +1 -1
- package/dist/nodes/text/text-base.d.ts +5 -22
- package/dist/nodes/text/text-base.d.ts.map +1 -1
- package/dist/nodes/text/text-base.js +13 -364
- package/dist/nodes/text/text-base.js.map +1 -1
- package/dist/nodes/text/text-layout.d.ts +87 -0
- package/dist/nodes/text/text-layout.d.ts.map +1 -0
- package/dist/nodes/text/text-layout.js +368 -0
- package/dist/nodes/text/text-layout.js.map +1 -0
- package/dist/nodes/text/text-node.js.map +1 -1
- package/dist/nodes/text/text-selection.js.map +1 -1
- package/dist/nodes/three/camera-nodes.d.ts +21 -3
- package/dist/nodes/three/camera-nodes.d.ts.map +1 -1
- package/dist/nodes/three/camera-nodes.js +42 -1
- package/dist/nodes/three/camera-nodes.js.map +1 -1
- package/dist/nodes/three/canvas3d-node.d.ts +32 -7
- package/dist/nodes/three/canvas3d-node.d.ts.map +1 -1
- package/dist/nodes/three/canvas3d-node.js +50 -2
- package/dist/nodes/three/canvas3d-node.js.map +1 -1
- package/dist/nodes/three/drawable-nodes.d.ts +25 -11
- package/dist/nodes/three/drawable-nodes.d.ts.map +1 -1
- package/dist/nodes/three/drawable-nodes.js +43 -13
- package/dist/nodes/three/drawable-nodes.js.map +1 -1
- package/dist/nodes/three/environment-nodes.d.ts +9 -3
- package/dist/nodes/three/environment-nodes.d.ts.map +1 -1
- package/dist/nodes/three/environment-nodes.js.map +1 -1
- package/dist/nodes/three/geometry-nodes.d.ts +2 -2
- package/dist/nodes/three/geometry-nodes.js +2 -2
- package/dist/nodes/three/geometry-nodes.js.map +1 -1
- package/dist/nodes/three/grid-geometry3d.js.map +1 -1
- package/dist/nodes/three/group3d.js.map +1 -1
- package/dist/nodes/three/light-nodes.d.ts.map +1 -1
- package/dist/nodes/three/light-nodes.js +3 -3
- package/dist/nodes/three/light-nodes.js.map +1 -1
- package/dist/nodes/three/mesh3d.js.map +1 -1
- package/dist/nodes/three/node3d.d.ts +48 -0
- package/dist/nodes/three/node3d.d.ts.map +1 -1
- package/dist/nodes/three/node3d.js +53 -3
- package/dist/nodes/three/node3d.js.map +1 -1
- package/dist/platform/audio-sink.d.ts +2 -2
- package/dist/platform/audio-sink.d.ts.map +1 -1
- package/dist/platform/audio-sink.js.map +1 -1
- package/dist/platform/exporter.d.ts +13 -8
- package/dist/platform/exporter.d.ts.map +1 -1
- package/dist/platform/exporter.js.map +1 -1
- package/dist/platform/index.d.ts +1 -1
- package/dist/platform/index.d.ts.map +1 -1
- package/dist/platform/index.js.map +1 -1
- package/dist/platform/stepped-clock.js.map +1 -1
- package/dist/platform/storage-adapter.d.ts +12 -6
- package/dist/platform/storage-adapter.d.ts.map +1 -1
- package/dist/platform/storage-adapter.js +4 -0
- package/dist/platform/storage-adapter.js.map +1 -1
- package/dist/platform/ticker.d.ts +6 -0
- package/dist/platform/ticker.d.ts.map +1 -1
- package/dist/platform/ticker.js +6 -0
- package/dist/platform/ticker.js.map +1 -1
- package/dist/project/config.js.map +1 -1
- package/dist/project/index.js.map +1 -1
- package/dist/project/tree.d.ts +3 -3
- package/dist/project/tree.d.ts.map +1 -1
- package/dist/project/tree.js.map +1 -1
- package/dist/props/host.js.map +1 -1
- package/dist/props/index.js.map +1 -1
- package/dist/props/observer.js.map +1 -1
- package/dist/props/slot.js.map +1 -1
- package/dist/renamed-scene-names.d.ts +17 -0
- package/dist/renamed-scene-names.d.ts.map +1 -0
- package/dist/renamed-scene-names.js +9 -0
- package/dist/renamed-scene-names.js.map +1 -0
- package/dist/render/canvas-render-context2d.d.ts +2 -2
- package/dist/render/canvas-render-context2d.d.ts.map +1 -1
- package/dist/render/canvas-render-context2d.js.map +1 -1
- package/dist/render/clip-contains.js.map +1 -1
- package/dist/render/clip.js.map +1 -1
- package/dist/render/descriptors/ellipse.js.map +1 -1
- package/dist/render/descriptors/latex.js.map +1 -1
- package/dist/render/descriptors/line.js.map +1 -1
- package/dist/render/descriptors/path-builder.js.map +1 -1
- package/dist/render/descriptors/path.js.map +1 -1
- package/dist/render/descriptors/polygon.js.map +1 -1
- package/dist/render/descriptors/polygram.js.map +1 -1
- package/dist/render/descriptors/rect.js.map +1 -1
- package/dist/render/descriptors/richtext.js.map +1 -1
- package/dist/render/descriptors/shape.d.ts +12 -0
- package/dist/render/descriptors/shape.d.ts.map +1 -1
- package/dist/render/descriptors/shape.js.map +1 -1
- package/dist/render/descriptors/text.d.ts +2 -2
- package/dist/render/descriptors/text.js +2 -2
- package/dist/render/descriptors/text.js.map +1 -1
- package/dist/render/descriptors/transform.d.ts +2 -2
- package/dist/render/descriptors/transform.d.ts.map +1 -1
- package/dist/render/descriptors/transform.js.map +1 -1
- package/dist/render/graphics2d.d.ts +3 -3
- package/dist/render/graphics2d.d.ts.map +1 -1
- package/dist/render/graphics2d.js +1 -1
- package/dist/render/graphics2d.js.map +1 -1
- package/dist/render/index.js.map +1 -1
- package/dist/render/measure-context.js.map +1 -1
- package/dist/render/null-render-context.js.map +1 -1
- package/dist/render/render-context2d.d.ts +2 -2
- package/dist/render/render-context2d.d.ts.map +1 -1
- package/dist/render/render-context2d.js.map +1 -1
- package/dist/render/surface.js.map +1 -1
- package/dist/render/text-defaults.js.map +1 -1
- package/dist/render/text-layout.js.map +1 -1
- package/dist/render3d/bounds3d.d.ts.map +1 -1
- package/dist/render3d/bounds3d.js +4 -2
- package/dist/render3d/bounds3d.js.map +1 -1
- package/dist/render3d/builders.js.map +1 -1
- package/dist/render3d/camera.d.ts +6 -0
- package/dist/render3d/camera.d.ts.map +1 -1
- package/dist/render3d/camera.js +5 -3
- package/dist/render3d/camera.js.map +1 -1
- package/dist/render3d/fill3d.d.ts +2 -9
- package/dist/render3d/fill3d.d.ts.map +1 -1
- package/dist/render3d/fill3d.js +2 -13
- package/dist/render3d/fill3d.js.map +1 -1
- package/dist/render3d/geometry.d.ts +8 -1
- package/dist/render3d/geometry.d.ts.map +1 -1
- package/dist/render3d/geometry.js.map +1 -1
- package/dist/render3d/graphics3d.d.ts +8 -4
- package/dist/render3d/graphics3d.d.ts.map +1 -1
- package/dist/render3d/graphics3d.js +18 -10
- package/dist/render3d/graphics3d.js.map +1 -1
- package/dist/render3d/index.d.ts +1 -1
- package/dist/render3d/index.js +1 -1
- package/dist/render3d/index.js.map +1 -1
- package/dist/render3d/inert.d.ts +14 -0
- package/dist/render3d/inert.d.ts.map +1 -0
- package/dist/render3d/inert.js +62 -0
- package/dist/render3d/inert.js.map +1 -0
- package/dist/render3d/light.js.map +1 -1
- package/dist/render3d/material.d.ts +10 -5
- package/dist/render3d/material.d.ts.map +1 -1
- package/dist/render3d/material.js.map +1 -1
- package/dist/render3d/matrix4.js.map +1 -1
- package/dist/render3d/render-context3d.js.map +1 -1
- package/dist/render3d/resources.js.map +1 -1
- package/dist/render3d/rounded-box.js.map +1 -1
- package/dist/render3d/scene-settings.d.ts +23 -4
- package/dist/render3d/scene-settings.d.ts.map +1 -1
- package/dist/render3d/scene-settings.js.map +1 -1
- package/dist/render3d/scene3d.d.ts +11 -0
- package/dist/render3d/scene3d.d.ts.map +1 -1
- package/dist/render3d/scene3d.js +39 -6
- package/dist/render3d/scene3d.js.map +1 -1
- package/dist/render3d/segments.js.map +1 -1
- package/dist/render3d/texture.d.ts +9 -0
- package/dist/render3d/texture.d.ts.map +1 -1
- package/dist/render3d/texture.js +13 -0
- package/dist/render3d/texture.js.map +1 -1
- package/dist/render3d/tracking.js.map +1 -1
- package/dist/render3d/transform.d.ts +1 -1
- package/dist/render3d/transform.js.map +1 -1
- package/dist/render3d/vector3.d.ts +18 -1
- package/dist/render3d/vector3.d.ts.map +1 -1
- package/dist/render3d/vector3.js +27 -0
- package/dist/render3d/vector3.js.map +1 -1
- package/dist/render3d/walk.d.ts +1 -1
- package/dist/render3d/walk.d.ts.map +1 -1
- package/dist/render3d/walk.js +5 -1
- package/dist/render3d/walk.js.map +1 -1
- package/dist/runtime/asset-refine.js.map +1 -1
- package/dist/runtime/asset-timeline.js.map +1 -1
- package/dist/runtime/asset-update.js.map +1 -1
- package/dist/runtime/audio-index.js.map +1 -1
- package/dist/runtime/builtin-context.js.map +1 -1
- package/dist/runtime/clip-instance.d.ts +9 -4
- package/dist/runtime/clip-instance.d.ts.map +1 -1
- package/dist/runtime/clip-instance.js +27 -9
- package/dist/runtime/clip-instance.js.map +1 -1
- package/dist/runtime/clip-store.d.ts +18 -0
- package/dist/runtime/clip-store.d.ts.map +1 -1
- package/dist/runtime/clip-store.js +97 -0
- package/dist/runtime/clip-store.js.map +1 -1
- package/dist/runtime/engine.d.ts +5 -0
- package/dist/runtime/engine.d.ts.map +1 -1
- package/dist/runtime/engine.js +2 -0
- package/dist/runtime/engine.js.map +1 -1
- package/dist/runtime/frame-time.d.ts +31 -0
- package/dist/runtime/frame-time.d.ts.map +1 -0
- package/dist/runtime/frame-time.js +29 -0
- package/dist/runtime/frame-time.js.map +1 -0
- package/dist/runtime/index.d.ts +1 -0
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +1 -0
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/node-picking.d.ts +44 -3
- package/dist/runtime/node-picking.d.ts.map +1 -1
- package/dist/runtime/node-picking.js +124 -10
- package/dist/runtime/node-picking.js.map +1 -1
- package/dist/runtime/node-picking3d.d.ts +13 -5
- package/dist/runtime/node-picking3d.d.ts.map +1 -1
- package/dist/runtime/node-picking3d.js +10 -2
- package/dist/runtime/node-picking3d.js.map +1 -1
- package/dist/runtime/placement.d.ts.map +1 -1
- package/dist/runtime/placement.js +4 -5
- package/dist/runtime/placement.js.map +1 -1
- package/dist/runtime/playback-controller.d.ts +31 -2
- package/dist/runtime/playback-controller.d.ts.map +1 -1
- package/dist/runtime/playback-controller.js +63 -6
- package/dist/runtime/playback-controller.js.map +1 -1
- package/dist/runtime/playback.js.map +1 -1
- package/dist/runtime/precompisition.js.map +1 -1
- package/dist/runtime/project-assets.js.map +1 -1
- package/dist/runtime/session.d.ts +9 -7
- package/dist/runtime/session.d.ts.map +1 -1
- package/dist/runtime/session.js +12 -4
- package/dist/runtime/session.js.map +1 -1
- package/dist/runtime/settle.js.map +1 -1
- package/dist/runtime/state-evaluator.d.ts +1 -1
- package/dist/runtime/state-evaluator.d.ts.map +1 -1
- package/dist/runtime/state-evaluator.js +4 -3
- package/dist/runtime/state-evaluator.js.map +1 -1
- package/dist/runtime/text-geometry.d.ts.map +1 -1
- package/dist/runtime/text-geometry.js +7 -3
- package/dist/runtime/text-geometry.js.map +1 -1
- package/dist/sdk/index.d.ts +50 -25
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +52 -42
- package/dist/sdk/index.js.map +1 -1
- package/dist/tween/command-decorator.d.ts +2 -0
- package/dist/tween/command-decorator.d.ts.map +1 -1
- package/dist/tween/command-decorator.js.map +1 -1
- package/dist/tween/command.d.ts +12 -0
- package/dist/tween/command.d.ts.map +1 -1
- package/dist/tween/command.js +14 -0
- package/dist/tween/command.js.map +1 -1
- package/dist/tween/ease/constants.d.ts.map +1 -1
- package/dist/tween/ease/constants.js +8 -5
- package/dist/tween/ease/constants.js.map +1 -1
- package/dist/tween/ease/curve.d.ts.map +1 -1
- package/dist/tween/ease/curve.js +4 -3
- package/dist/tween/ease/curve.js.map +1 -1
- package/dist/tween/ease/describe.d.ts +15 -0
- package/dist/tween/ease/describe.d.ts.map +1 -0
- package/dist/tween/ease/describe.js +37 -0
- package/dist/tween/ease/describe.js.map +1 -0
- package/dist/tween/ease/type.js.map +1 -1
- package/dist/tween/index.js.map +1 -1
- package/dist/tween/inert.js.map +1 -1
- package/dist/tween/lerp.js.map +1 -1
- package/dist/tween/loop.js.map +1 -1
- package/dist/tween/prepare.d.ts +3 -3
- package/dist/tween/prepare.js +3 -3
- package/dist/tween/prepare.js.map +1 -1
- package/dist/tween/seekable.d.ts +1 -1
- package/dist/tween/seekable.js.map +1 -1
- package/dist/tween/stepper.js.map +1 -1
- package/dist/tween/to-command.js.map +1 -1
- package/dist/util/clamp.js.map +1 -1
- package/dist/util/context.js.map +1 -1
- package/dist/util/csv.js.map +1 -1
- package/dist/util/generateList.js.map +1 -1
- package/dist/util/index.js.map +1 -1
- package/dist/util/metrics.d.ts +1 -1
- package/dist/util/metrics.js +1 -1
- package/dist/util/metrics.js.map +1 -1
- package/dist/util/random.js.map +1 -1
- package/dist/util/reference.js.map +1 -1
- package/dist/util/scheduler.js.map +1 -1
- package/package.json +7 -1
- package/dist/attributes/shape/effects/implementations/displace.d.ts +0 -48
- package/dist/attributes/shape/effects/implementations/displace.d.ts.map +0 -1
- package/dist/attributes/shape/effects/implementations/displace.js +0 -30
- package/dist/attributes/shape/effects/implementations/displace.js.map +0 -1
- package/dist/attributes/shape/effects/implementations/god-rays.d.ts +0 -28
- package/dist/attributes/shape/effects/implementations/god-rays.d.ts.map +0 -1
- package/dist/attributes/shape/effects/implementations/god-rays.js +0 -26
- package/dist/attributes/shape/effects/implementations/god-rays.js.map +0 -1
- package/dist/attributes/shape/effects/implementations/texture.d.ts +0 -28
- package/dist/attributes/shape/effects/implementations/texture.d.ts.map +0 -1
- package/dist/attributes/shape/effects/implementations/texture.js +0 -25
- package/dist/attributes/shape/effects/implementations/texture.js.map +0 -1
- package/dist/attributes/shape/effects/implementations/trails.d.ts +0 -41
- package/dist/attributes/shape/effects/implementations/trails.d.ts.map +0 -1
- package/dist/attributes/shape/effects/implementations/trails.js +0 -22
- package/dist/attributes/shape/effects/implementations/trails.js.map +0 -1
- package/dist/browser/chunks/chunk-2T3HXSC2.js +0 -2
- package/dist/browser/chunks/chunk-2T3HXSC2.js.map +0 -7
- package/dist/browser/chunks/chunk-KJXGRHOL.js +0 -3
- package/dist/browser/chunks/chunk-KJXGRHOL.js.map +0 -7
- package/dist/browser/chunks/chunk-TGDX2SS2.js +0 -18
- package/dist/browser/chunks/chunk-TGDX2SS2.js.map +0 -7
- package/dist/nodes/geometry/dot-grid-node.d.ts +0 -105
- package/dist/nodes/geometry/dot-grid-node.d.ts.map +0 -1
- package/dist/nodes/geometry/dot-grid-node.js +0 -142
- package/dist/nodes/geometry/dot-grid-node.js.map +0 -1
- package/dist/nodes/geometry/grid-lines.d.ts +0 -101
- package/dist/nodes/geometry/grid-lines.d.ts.map +0 -1
- package/dist/nodes/geometry/grid-lines.js +0 -128
- package/dist/nodes/geometry/grid-lines.js.map +0 -1
- package/dist/nodes/geometry/grid-pattern-node.d.ts +0 -58
- package/dist/nodes/geometry/grid-pattern-node.d.ts.map +0 -1
- package/dist/nodes/geometry/grid-pattern-node.js +0 -172
- package/dist/nodes/geometry/grid-pattern-node.js.map +0 -1
- package/dist/nodes/geometry/line-grid-node.d.ts +0 -62
- package/dist/nodes/geometry/line-grid-node.d.ts.map +0 -1
- package/dist/nodes/geometry/line-grid-node.js +0 -127
- package/dist/nodes/geometry/line-grid-node.js.map +0 -1
- package/dist/nodes/geometry/line-node.d.ts +0 -58
- package/dist/nodes/geometry/line-node.d.ts.map +0 -1
- package/dist/nodes/geometry/line-node.js +0 -123
- package/dist/nodes/geometry/line-node.js.map +0 -1
- package/dist/nodes/geometry/viewport-pattern-node.d.ts +0 -39
- package/dist/nodes/geometry/viewport-pattern-node.d.ts.map +0 -1
- package/dist/nodes/geometry/viewport-pattern-node.js +0 -79
- package/dist/nodes/geometry/viewport-pattern-node.js.map +0 -1
- package/dist/nodes/scene/canvas2d-node.d.ts.map +0 -1
- package/dist/nodes/scene/canvas2d-node.js.map +0 -1
- package/dist/nodes/scene/provider-node.d.ts.map +0 -1
- package/dist/nodes/scene/provider-node.js.map +0 -1
- package/dist/nodes/scene/theme-provider-node.d.ts.map +0 -1
- package/dist/nodes/scene/theme-provider-node.js.map +0 -1
- /package/dist/nodes/{scene → root}/provider-node.d.ts +0 -0
- /package/dist/nodes/{scene → root}/provider-node.js +0 -0
- /package/dist/nodes/{scene → root}/theme-provider-node.d.ts +0 -0
- /package/dist/nodes/{scene → root}/theme-provider-node.js +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C,EAAE,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC,CAAC,CAAC;AACP,CAAC","sourcesContent":["import { EasingFunction } from \"@/tween/ease/type\";\nimport { commandParallel, commandSequence, driveCommand, type Command } from \"@/tween/command\";\nimport { SizeConstraints } from \"@/layout/constraints\";\nimport type { Node2D, Node2DProps } from \"./node2d\";\n\n/**\n * Measure `child`'s natural size **without attaching it to `parent`** — so the\n * measurement never perturbs the parent's layout (siblings don't shift for a\n * frame). Uses the constraints + scope the parent retained from its last measure\n * pass; returns `null` if the parent hasn't been measured yet (nothing on screen\n * to reflow against), so the caller can fall back. Reads `parent.lastMeasure` —\n * internal layout state the lifecycle helpers are the\n * intended in-directory consumer of.\n */\nfunction measureDetached(parent: Node2D, child: Node2D): { width: number; height: number } | null {\n const pass = parent.lastMeasure;\n const scope = pass?.measurer;\n // The scope (text measurement) is the essential input and is only present once\n // the parent has been laid out; without it we can't size a hug child off-tree.\n if (!scope) return null;\n // The parent's own constraints bound the child; fall back to its laid-out box,\n // then to an unbounded space — a hug child shrink-wraps regardless, so a\n // generous ceiling is fine.\n const constraints: SizeConstraints = pass?.constraints ?? {\n maxWidth: parent.measuredWidth || Number.MAX_SAFE_INTEGER,\n maxHeight: parent.measuredHeight || Number.MAX_SAFE_INTEGER,\n };\n const size = child.measure(constraints, scope);\n return { width: size.width ?? 0, height: size.height ?? 0 };\n}\n\n/**\n * Companion for {@link Node2D}'s animated child-management methods. The sync\n * variants (add/remove/clear/addChildAt/\n * removeChildAt) stay inline on Node2D — each is a 3–5 line method that mutates\n * `_children`/`_parent` and calls `bindAssets`/`bindChildContext`, so there is\n * no body worth moving. These are the animated overloads, returned as\n * {@link Command}s built from `child.to(...)` composed with\n * {@link commandSequence}/{@link commandParallel} — the same choreography\n * primitives a node's own multi-step commands use.\n *\n * Each command's setup (measuring the child, collapsing it, attaching/\n * detaching/reparenting) runs **lazily, once, on the command's first\n * evaluation** rather than when the function below is called — mirroring the\n * generator these replaced, whose body didn't run a single line until the\n * caller's first `.next()`. That laziness is load-bearing: a caller often does\n * `const cmd = parent.addChildAt(child, i, dur); /* lay the parent out here *\\/\n * driveCmd(cmd)`, relying on the parent having a fresh `lastMeasure` by the time\n * the hug/fill measurement in {@link addChildAtAnimated} actually runs. Doing\n * that measurement eagerly — when this function is called, not when the\n * command is first driven — reads whatever scope the parent happened to have\n * at call time, which is often none at all.\n *\n * The container's `gap` is handled by the per-child `gapScale` prop these helpers\n * tween in parallel with the child's box (see {@link addChildAtAnimated}); the\n * flex layout (`flex.ts`) folds each child's `gapScale` into its gap budget, so\n * the gap opens/closes in lockstep with the size instead of popping. No helper\n * here needs to know the parent's axis or gap value.\n */\n\n/**\n * Fraction of an insert/remove's `duration` spent on the size + gap motion; the\n * remainder is the opacity fade. Splitting the two sequentially (grow → fade in,\n * fade out → shrink) keeps the fading child from overlapping siblings that are\n * still sliding: room is opened while it's invisible, then it fades in already in\n * place (and mirror-image on remove). The size phase gets the larger share since\n * it's the dominant motion and the fade only needs to read as a quick finish.\n */\nconst SIZE_PHASE = 0.7;\n\n/**\n * Animated `addChildAt`: insert the child at `index` **already collapsed to 0**,\n * then grow it in — fading opacity up and expanding its box from 0 → its natural\n * size so the surrounding siblings **slide over to make room** rather than\n * jumping. The mirror of {@link removeChildAtAnimated} (which pins to the\n * measured size and shrinks to 0).\n *\n * A numeric-sized axis has its target size in hand up front. A `\"hug\"`/`\"fill\"`\n * axis does not — its size is only known once laid out — so we measure the child\n * **detached** (via {@link measureDetached}, using the parent's retained\n * constraints + scope) *before* attaching it. That keeps the child out of the\n * parent's layout flow while we size it, so the siblings never see it at full\n * width for a frame — no reflow flash. The child is then added at 0 and the tween\n * grows it to that measured size. Because the tween needs *numeric* endpoints\n * (a string size only snaps, it can't interpolate), the original size token is\n * restored once the command reaches its end so the child resumes normal reflow.\n *\n * If the parent hasn't been measured yet (no retained scope — nothing is on\n * screen to reflow against), a non-numeric axis simply can't be pre-measured;\n * it falls back to its authored token and fades in without a width tween.\n */\nexport function addChildAtAnimated(\n parent: Node2D,\n child: Node2D,\n index: number,\n duration: number,\n easing?: EasingFunction,\n): Command<Record<string, never>> {\n let animation: Command<Node2DProps> | null = null;\n let isNumericW = false;\n let isNumericH = false;\n let origW: Node2DProps[\"width\"];\n let origH: Node2DProps[\"height\"];\n\n const setup = (): Command<Node2DProps> => {\n const targetOpacity = child.opacity;\n // Remember the authored size tokens so a hug/fill axis can be restored\n // after the numeric grow-in tween finishes.\n origW = child.width;\n origH = child.height;\n isNumericW = typeof origW === \"number\";\n isNumericH = typeof origH === \"number\";\n\n // Pre-measure any non-numeric axis while the child is still detached, so\n // sizing it can't shift the parent's existing children for a frame.\n const detached = isNumericW && isNumericH ? null : measureDetached(parent, child);\n\n // Resolve each axis' grow-to target: a numeric axis uses its authored\n // size; a hug/fill axis uses the detached measurement (or gives up the\n // width tween if the parent isn't measured yet).\n const tweenW = isNumericW || detached !== null;\n const tweenH = isNumericH || detached !== null;\n const targetW = isNumericW ? (origW as number) : (detached?.width ?? 0);\n const targetH = isNumericH ? (origH as number) : (detached?.height ?? 0);\n\n // Collapse the axes we can tween to 0 before inserting, so the child\n // enters taking no room and the siblings hold their positions.\n // `gapScale: 0` also suppresses the gap this child would add, so the\n // flanking gap opens from 0 rather than snapping in the instant it\n // attaches.\n child.set({\n opacity: 0,\n gapScale: 0,\n ...(tweenW ? { width: 0 } : {}),\n ...(tweenH ? { height: 0 } : {}),\n } as Partial<Node2DProps>);\n parent.addChildAt({ data: { child, index } });\n\n const sizeProps: Partial<Node2DProps> = {};\n if (tweenW) sizeProps.width = targetW;\n if (tweenH) sizeProps.height = targetH;\n // Two sequential phases so the fading-in child never overlaps siblings\n // that are still sliding: first open the box and the flanking gap\n // (opacity held at 0, so nothing is visible while the space is being\n // made), then fade the now-placed child in. `gapScale` 0 → 1 tracks the\n // size so siblings slide over continuously instead of jumping by `gap`.\n const grow = duration * SIZE_PHASE;\n const fade = duration - grow;\n return commandSequence<Node2DProps>(\n child,\n commandParallel<Node2DProps>(\n child,\n child.to({ data: sizeProps, duration: grow, easing }),\n child.to({ data: { gapScale: 1 } as Partial<Node2DProps>, duration: grow, easing }),\n ),\n child.to({ data: { opacity: targetOpacity } as Partial<Node2DProps>, duration: fade, easing }),\n );\n };\n\n return driveCommand(duration, (t) => {\n if (!animation) animation = setup();\n animation.at(t);\n if (t >= 1) {\n // Restore any hug/fill token so the child reflows naturally from\n // here on; the tween already landed the axis on its measured pixel\n // size, so this is seamless.\n const restore: Partial<Node2DProps> = {};\n if (!isNumericW) restore.width = origW;\n if (!isNumericH) restore.height = origH;\n if (!isNumericW || !isNumericH) child.set(restore as Partial<Node2DProps>);\n }\n });\n}\n\n/**\n * Animated `removeChildAt`: fade+size the child out, then detach it.\n *\n * The child stays in the tree — animating out — until the command reaches its\n * end (`t === 1`), matching the \"insert\"/\"remove\" seekability\n * `packages/components/code` established: a host asking for a time before the\n * end sees the child still present, mid-fade; only reaching the end detaches it.\n * Seeking back below the end after having reached it re-attaches the child at\n * its original index, so the animation stays a function of `t` in both\n * directions rather than a one-way commit.\n */\nexport function removeChildAtAnimated(\n parent: Node2D,\n index: number,\n duration: number,\n easing?: EasingFunction,\n): Command<Record<string, never>> {\n let child: Node2D | null = null;\n let animation: Command<Node2DProps> | null = null;\n let setupDone = false;\n\n const setup = (): void => {\n setupDone = true;\n // Out of range: nothing to animate — `child`/`animation` stay null, and\n // every apply() below becomes a no-op.\n if (index < 0 || index >= parent.children.length) return;\n child = parent.children[index];\n\n // Pin to current rendered size so the shrink reflows siblings in the\n // parent layout.\n const lw = child.measuredWidth;\n const lh = child.measuredHeight;\n child.set({ width: lw, height: lh } as Partial<Node2DProps>);\n\n // Mirror of the insert: fade the child out first (box held at full\n // size, so it doesn't overlap siblings mid-fade), then collapse the\n // box and close the gap. `gapScale` 1 → 0 tracks the shrink so the gap\n // closes continuously.\n const fade = duration * (1 - SIZE_PHASE);\n const shrink = duration - fade;\n animation = commandSequence<Node2DProps>(\n child,\n child.to({ data: { opacity: 0 } as Partial<Node2DProps>, duration: fade, easing }),\n commandParallel<Node2DProps>(\n child,\n child.to({ data: { width: 0, height: 0 } as Partial<Node2DProps>, duration: shrink, easing }),\n child.to({ data: { gapScale: 0 } as Partial<Node2DProps>, duration: shrink, easing }),\n ),\n );\n };\n\n return driveCommand(duration, (t) => {\n if (!setupDone) setup();\n if (!animation || !child) return;\n const done = t >= 1;\n if (!done && child.parent !== parent) {\n // Seeking back into the animation after it had reached the end —\n // the child is what's animating out, so put it back.\n parent.addChildAt({ data: { child, index: Math.min(index, parent.children.length) } });\n }\n animation.at(t);\n if (done) {\n parent.remove(child);\n // The child is detached now, so its 0 gapScale no longer affects any\n // layout — but the same node can be re-added later (scenes reuse\n // refs), and a plain (non-animated) addChild wouldn't reset it.\n // Restore the default so a stale 0 can't silently swallow a gap on\n // re-insert.\n child.set({ gapScale: 1 } as Partial<Node2DProps>);\n }\n });\n}\n\n/**\n * Animated `reparent`: fade+size the node out of its current parent, then\n * reparent it and fade+size it in. The handoff happens at the animation's\n * midpoint (`t === 0.5`) — seeking across it in either direction moves the node\n * between parents to match, the same bidirectional membership rule\n * {@link removeChildAtAnimated} uses.\n */\nexport function reparentAnimated(\n node: Node2D,\n newParent: Node2D,\n duration: number,\n easing?: EasingFunction,\n): Command<Record<string, never>> {\n const half = duration / 2;\n let animation: Command<Node2DProps> | null = null;\n let oldParent: Node2D | null = null;\n\n const setup = (): Command<Node2DProps> => {\n const targetOpacity = node.opacity;\n oldParent = node.parent;\n\n // Pin to current rendered size so exit shrink reflows the old parent.\n const lw = node.measuredWidth;\n const lh = node.measuredHeight;\n node.set({ width: lw, height: lh } as Partial<Node2DProps>);\n\n // Exit the old parent (fade out, then collapse the box + gap) over the\n // first half, then enter the new one (open the box + gap, then fade\n // in) over the second — one flat sequence, so evaluating any `t` walks\n // and settles every phase before it first. That is what makes the\n // *enter* tweens' `from` correct even when a driven host asks for a\n // time straight into the enter half without ever having evaluated the\n // exit half first: `commandSequence` re-settles every prior phase on\n // each call, so by the time an enter tween's `from` is lazily\n // snapshotted (its own first evaluation), the exit phase has already\n // collapsed the node to the state enter grows from.\n const exitFade = half * (1 - SIZE_PHASE);\n const exitShrink = half - exitFade;\n const enterGrow = half * SIZE_PHASE;\n const enterFade = half - enterGrow;\n return commandSequence<Node2DProps>(\n node,\n node.to({ data: { opacity: 0 } as Partial<Node2DProps>, duration: exitFade, easing }),\n commandParallel<Node2DProps>(\n node,\n node.to({ data: { width: 0, height: 0 } as Partial<Node2DProps>, duration: exitShrink, easing }),\n node.to({ data: { gapScale: 0 } as Partial<Node2DProps>, duration: exitShrink, easing }),\n ),\n commandParallel<Node2DProps>(\n node,\n node.to({ data: { width: lw, height: lh } as Partial<Node2DProps>, duration: enterGrow, easing }),\n node.to({ data: { gapScale: 1 } as Partial<Node2DProps>, duration: enterGrow, easing }),\n ),\n node.to({ data: { opacity: targetOpacity } as Partial<Node2DProps>, duration: enterFade, easing }),\n );\n };\n\n return driveCommand(duration, (t) => {\n if (!animation) animation = setup();\n const elapsed = t * duration;\n const inNewParent = elapsed >= half;\n if (inNewParent && node.parent !== newParent) {\n if (oldParent) oldParent.remove(node);\n newParent.add(node);\n } else if (!inNewParent && node.parent !== oldParent) {\n newParent.remove(node);\n if (oldParent) oldParent.add(node);\n }\n animation.at(t);\n });\n}\n"]}
|
|
1
|
+
{"version":3,"file":"node-lifecycle.js","sourceRoot":"","sources":["../../../src/nodes/2d/node-lifecycle.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,YAAY,EAAgB,MAAM,iBAAiB,CAAC;AAI/F;;;;;;;;GAQG;AACH,SAAS,eAAe,CAAC,MAAc,EAAE,KAAa;IAClD,MAAM,IAAI,GAAG,MAAM,CAAC,WAAW,CAAC;IAChC,MAAM,KAAK,GAAG,IAAI,EAAE,QAAQ,CAAC;IAC7B,+EAA+E;IAC/E,+EAA+E;IAC/E,IAAI,CAAC,KAAK;QAAE,OAAO,IAAI,CAAC;IACx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,CAC1F,EACD,IAAI,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,aAAa,EAA0B,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,CACrG,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,YAAY,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;QAChC,IAAI,CAAC,SAAS;YAAE,SAAS,GAAG,KAAK,EAAE,CAAC;QACpC,MAAM,OAAO,GAAG,CAAC,GAAG,QAAQ,CAAC;QAC7B,MAAM,WAAW,GAAG,OAAO,IAAI,IAAI,CAAC;QACpC,IAAI,WAAW,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;YAC3C,IAAI,SAAS;gBAAE,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YACtC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACxB,CAAC;aAAM,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;YACnD,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YACvB,IAAI,SAAS;gBAAE,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACvC,CAAC;QACD,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC,CAAC,CAAC;AACP,CAAC","sourcesContent":["import { EasingFunction } from \"@/tween/ease/type\";\r\nimport { commandParallel, commandSequence, driveCommand, type Command } from \"@/tween/command\";\r\nimport { SizeConstraints } from \"@/layout/constraints\";\r\nimport type { Node2D, Node2DProps } from \"./node2d\";\r\n\r\n/**\r\n * Measure `child`'s natural size **without attaching it to `parent`** — so the\r\n * measurement never perturbs the parent's layout (siblings don't shift for a\r\n * frame). Uses the constraints + scope the parent retained from its last measure\r\n * pass; returns `null` if the parent hasn't been measured yet (nothing on screen\r\n * to reflow against), so the caller can fall back. Reads `parent.lastMeasure` —\r\n * internal layout state the lifecycle helpers are the\r\n * intended in-directory consumer of.\r\n */\r\nfunction measureDetached(parent: Node2D, child: Node2D): { width: number; height: number } | null {\r\n const pass = parent.lastMeasure;\r\n const scope = pass?.measurer;\r\n // The scope (text measurement) is the essential input and is only present once\r\n // the parent has been laid out; without it we can't size a hug child off-tree.\r\n if (!scope) return null;\r\n // The parent's own constraints bound the child; fall back to its laid-out box,\r\n // then to an unbounded space — a hug child shrink-wraps regardless, so a\r\n // generous ceiling is fine.\r\n const constraints: SizeConstraints = pass?.constraints ?? {\r\n maxWidth: parent.measuredWidth || Number.MAX_SAFE_INTEGER,\r\n maxHeight: parent.measuredHeight || Number.MAX_SAFE_INTEGER,\r\n };\r\n const size = child.measure(constraints, scope);\r\n return { width: size.width ?? 0, height: size.height ?? 0 };\r\n}\r\n\r\n/**\r\n * Companion for {@link Node2D}'s animated child-management methods. The sync\r\n * variants (add/remove/clear/addChildAt/\r\n * removeChildAt) stay inline on Node2D — each is a 3–5 line method that mutates\r\n * `_children`/`_parent` and calls `bindAssets`/`bindChildContext`, so there is\r\n * no body worth moving. These are the animated overloads, returned as\r\n * {@link Command}s built from `child.to(...)` composed with\r\n * {@link commandSequence}/{@link commandParallel} — the same choreography\r\n * primitives a node's own multi-step commands use.\r\n *\r\n * Each command's setup (measuring the child, collapsing it, attaching/\r\n * detaching/reparenting) runs **lazily, once, on the command's first\r\n * evaluation** rather than when the function below is called — mirroring the\r\n * generator these replaced, whose body didn't run a single line until the\r\n * caller's first `.next()`. That laziness is load-bearing: a caller often does\r\n * `const cmd = parent.addChildAt(child, i, dur); /* lay the parent out here *\\/\r\n * driveCmd(cmd)`, relying on the parent having a fresh `lastMeasure` by the time\r\n * the hug/fill measurement in {@link addChildAtAnimated} actually runs. Doing\r\n * that measurement eagerly — when this function is called, not when the\r\n * command is first driven — reads whatever scope the parent happened to have\r\n * at call time, which is often none at all.\r\n *\r\n * The container's `gap` is handled by the per-child `gapScale` prop these helpers\r\n * tween in parallel with the child's box (see {@link addChildAtAnimated}); the\r\n * flex layout (`flex.ts`) folds each child's `gapScale` into its gap budget, so\r\n * the gap opens/closes in lockstep with the size instead of popping. No helper\r\n * here needs to know the parent's axis or gap value.\r\n */\r\n\r\n/**\r\n * Fraction of an insert/remove's `duration` spent on the size + gap motion; the\r\n * remainder is the opacity fade. Splitting the two sequentially (grow → fade in,\r\n * fade out → shrink) keeps the fading child from overlapping siblings that are\r\n * still sliding: room is opened while it's invisible, then it fades in already in\r\n * place (and mirror-image on remove). The size phase gets the larger share since\r\n * it's the dominant motion and the fade only needs to read as a quick finish.\r\n */\r\nconst SIZE_PHASE = 0.7;\r\n\r\n/**\r\n * Animated `addChildAt`: insert the child at `index` **already collapsed to 0**,\r\n * then grow it in — fading opacity up and expanding its box from 0 → its natural\r\n * size so the surrounding siblings **slide over to make room** rather than\r\n * jumping. The mirror of {@link removeChildAtAnimated} (which pins to the\r\n * measured size and shrinks to 0).\r\n *\r\n * A numeric-sized axis has its target size in hand up front. A `\"hug\"`/`\"fill\"`\r\n * axis does not — its size is only known once laid out — so we measure the child\r\n * **detached** (via {@link measureDetached}, using the parent's retained\r\n * constraints + scope) *before* attaching it. That keeps the child out of the\r\n * parent's layout flow while we size it, so the siblings never see it at full\r\n * width for a frame — no reflow flash. The child is then added at 0 and the tween\r\n * grows it to that measured size. Because the tween needs *numeric* endpoints\r\n * (a string size only snaps, it can't interpolate), the original size token is\r\n * restored once the command reaches its end so the child resumes normal reflow.\r\n *\r\n * If the parent hasn't been measured yet (no retained scope — nothing is on\r\n * screen to reflow against), a non-numeric axis simply can't be pre-measured;\r\n * it falls back to its authored token and fades in without a width tween.\r\n */\r\nexport function addChildAtAnimated(\r\n parent: Node2D,\r\n child: Node2D,\r\n index: number,\r\n duration: number,\r\n easing?: EasingFunction,\r\n): Command<Record<string, never>> {\r\n let animation: Command<Node2DProps> | null = null;\r\n let isNumericW = false;\r\n let isNumericH = false;\r\n let origW: Node2DProps[\"width\"];\r\n let origH: Node2DProps[\"height\"];\r\n\r\n const setup = (): Command<Node2DProps> => {\r\n const targetOpacity = child.opacity;\r\n // Remember the authored size tokens so a hug/fill axis can be restored\r\n // after the numeric grow-in tween finishes.\r\n origW = child.width;\r\n origH = child.height;\r\n isNumericW = typeof origW === \"number\";\r\n isNumericH = typeof origH === \"number\";\r\n\r\n // Pre-measure any non-numeric axis while the child is still detached, so\r\n // sizing it can't shift the parent's existing children for a frame.\r\n const detached = isNumericW && isNumericH ? null : measureDetached(parent, child);\r\n\r\n // Resolve each axis' grow-to target: a numeric axis uses its authored\r\n // size; a hug/fill axis uses the detached measurement (or gives up the\r\n // width tween if the parent isn't measured yet).\r\n const tweenW = isNumericW || detached !== null;\r\n const tweenH = isNumericH || detached !== null;\r\n const targetW = isNumericW ? (origW as number) : (detached?.width ?? 0);\r\n const targetH = isNumericH ? (origH as number) : (detached?.height ?? 0);\r\n\r\n // Collapse the axes we can tween to 0 before inserting, so the child\r\n // enters taking no room and the siblings hold their positions.\r\n // `gapScale: 0` also suppresses the gap this child would add, so the\r\n // flanking gap opens from 0 rather than snapping in the instant it\r\n // attaches.\r\n child.set({\r\n opacity: 0,\r\n gapScale: 0,\r\n ...(tweenW ? { width: 0 } : {}),\r\n ...(tweenH ? { height: 0 } : {}),\r\n } as Partial<Node2DProps>);\r\n parent.addChildAt({ data: { child, index } });\r\n\r\n const sizeProps: Partial<Node2DProps> = {};\r\n if (tweenW) sizeProps.width = targetW;\r\n if (tweenH) sizeProps.height = targetH;\r\n // Two sequential phases so the fading-in child never overlaps siblings\r\n // that are still sliding: first open the box and the flanking gap\r\n // (opacity held at 0, so nothing is visible while the space is being\r\n // made), then fade the now-placed child in. `gapScale` 0 → 1 tracks the\r\n // size so siblings slide over continuously instead of jumping by `gap`.\r\n const grow = duration * SIZE_PHASE;\r\n const fade = duration - grow;\r\n return commandSequence<Node2DProps>(\r\n child,\r\n commandParallel<Node2DProps>(\r\n child,\r\n child.to({ data: sizeProps, duration: grow, easing }),\r\n child.to({ data: { gapScale: 1 } as Partial<Node2DProps>, duration: grow, easing }),\r\n ),\r\n child.to({ data: { opacity: targetOpacity } as Partial<Node2DProps>, duration: fade, easing }),\r\n );\r\n };\r\n\r\n return driveCommand(duration, (t) => {\r\n if (!animation) animation = setup();\r\n animation.at(t);\r\n if (t >= 1) {\r\n // Restore any hug/fill token so the child reflows naturally from\r\n // here on; the tween already landed the axis on its measured pixel\r\n // size, so this is seamless.\r\n const restore: Partial<Node2DProps> = {};\r\n if (!isNumericW) restore.width = origW;\r\n if (!isNumericH) restore.height = origH;\r\n if (!isNumericW || !isNumericH) child.set(restore as Partial<Node2DProps>);\r\n }\r\n });\r\n}\r\n\r\n/**\r\n * Animated `removeChildAt`: fade+size the child out, then detach it.\r\n *\r\n * The child stays in the tree — animating out — until the command reaches its\r\n * end (`t === 1`), matching the \"insert\"/\"remove\" seekability\r\n * `packages/components/code` established: a host asking for a time before the\r\n * end sees the child still present, mid-fade; only reaching the end detaches it.\r\n * Seeking back below the end after having reached it re-attaches the child at\r\n * its original index, so the animation stays a function of `t` in both\r\n * directions rather than a one-way commit.\r\n */\r\nexport function removeChildAtAnimated(\r\n parent: Node2D,\r\n index: number,\r\n duration: number,\r\n easing?: EasingFunction,\r\n): Command<Record<string, never>> {\r\n let child: Node2D | null = null;\r\n let animation: Command<Node2DProps> | null = null;\r\n let setupDone = false;\r\n\r\n const setup = (): void => {\r\n setupDone = true;\r\n // Out of range: nothing to animate — `child`/`animation` stay null, and\r\n // every apply() below becomes a no-op.\r\n if (index < 0 || index >= parent.children.length) return;\r\n child = parent.children[index];\r\n\r\n // Pin to current rendered size so the shrink reflows siblings in the\r\n // parent layout.\r\n const lw = child.measuredWidth;\r\n const lh = child.measuredHeight;\r\n child.set({ width: lw, height: lh } as Partial<Node2DProps>);\r\n\r\n // Mirror of the insert: fade the child out first (box held at full\r\n // size, so it doesn't overlap siblings mid-fade), then collapse the\r\n // box and close the gap. `gapScale` 1 → 0 tracks the shrink so the gap\r\n // closes continuously.\r\n const fade = duration * (1 - SIZE_PHASE);\r\n const shrink = duration - fade;\r\n animation = commandSequence<Node2DProps>(\r\n child,\r\n child.to({ data: { opacity: 0 } as Partial<Node2DProps>, duration: fade, easing }),\r\n commandParallel<Node2DProps>(\r\n child,\r\n child.to({ data: { width: 0, height: 0 } as Partial<Node2DProps>, duration: shrink, easing }),\r\n child.to({ data: { gapScale: 0 } as Partial<Node2DProps>, duration: shrink, easing }),\r\n ),\r\n );\r\n };\r\n\r\n return driveCommand(duration, (t) => {\r\n if (!setupDone) setup();\r\n if (!animation || !child) return;\r\n const done = t >= 1;\r\n if (!done && child.parent !== parent) {\r\n // Seeking back into the animation after it had reached the end —\r\n // the child is what's animating out, so put it back.\r\n parent.addChildAt({ data: { child, index: Math.min(index, parent.children.length) } });\r\n }\r\n animation.at(t);\r\n if (done) {\r\n parent.remove(child);\r\n // The child is detached now, so its 0 gapScale no longer affects any\r\n // layout — but the same node can be re-added later (scenes reuse\r\n // refs), and a plain (non-animated) addChild wouldn't reset it.\r\n // Restore the default so a stale 0 can't silently swallow a gap on\r\n // re-insert.\r\n child.set({ gapScale: 1 } as Partial<Node2DProps>);\r\n }\r\n });\r\n}\r\n\r\n/**\r\n * Animated `reparent`: fade+size the node out of its current parent, then\r\n * reparent it and fade+size it in. The handoff happens at the animation's\r\n * midpoint (`t === 0.5`) — seeking across it in either direction moves the node\r\n * between parents to match, the same bidirectional membership rule\r\n * {@link removeChildAtAnimated} uses.\r\n */\r\nexport function reparentAnimated(\r\n node: Node2D,\r\n newParent: Node2D,\r\n duration: number,\r\n easing?: EasingFunction,\r\n): Command<Record<string, never>> {\r\n const half = duration / 2;\r\n let animation: Command<Node2DProps> | null = null;\r\n let oldParent: Node2D | null = null;\r\n\r\n const setup = (): Command<Node2DProps> => {\r\n const targetOpacity = node.opacity;\r\n oldParent = node.parent;\r\n\r\n // Pin to current rendered size so exit shrink reflows the old parent.\r\n const lw = node.measuredWidth;\r\n const lh = node.measuredHeight;\r\n node.set({ width: lw, height: lh } as Partial<Node2DProps>);\r\n\r\n // Exit the old parent (fade out, then collapse the box + gap) over the\r\n // first half, then enter the new one (open the box + gap, then fade\r\n // in) over the second — one flat sequence, so evaluating any `t` walks\r\n // and settles every phase before it first. That is what makes the\r\n // *enter* tweens' `from` correct even when a driven host asks for a\r\n // time straight into the enter half without ever having evaluated the\r\n // exit half first: `commandSequence` re-settles every prior phase on\r\n // each call, so by the time an enter tween's `from` is lazily\r\n // snapshotted (its own first evaluation), the exit phase has already\r\n // collapsed the node to the state enter grows from.\r\n const exitFade = half * (1 - SIZE_PHASE);\r\n const exitShrink = half - exitFade;\r\n const enterGrow = half * SIZE_PHASE;\r\n const enterFade = half - enterGrow;\r\n return commandSequence<Node2DProps>(\r\n node,\r\n node.to({ data: { opacity: 0 } as Partial<Node2DProps>, duration: exitFade, easing }),\r\n commandParallel<Node2DProps>(\r\n node,\r\n node.to({ data: { width: 0, height: 0 } as Partial<Node2DProps>, duration: exitShrink, easing }),\r\n node.to({ data: { gapScale: 0 } as Partial<Node2DProps>, duration: exitShrink, easing }),\r\n ),\r\n commandParallel<Node2DProps>(\r\n node,\r\n node.to({ data: { width: lw, height: lh } as Partial<Node2DProps>, duration: enterGrow, easing }),\r\n node.to({ data: { gapScale: 1 } as Partial<Node2DProps>, duration: enterGrow, easing }),\r\n ),\r\n node.to({ data: { opacity: targetOpacity } as Partial<Node2DProps>, duration: enterFade, easing }),\r\n );\r\n };\r\n\r\n return driveCommand(duration, (t) => {\r\n if (!animation) animation = setup();\r\n const elapsed = t * duration;\r\n const inNewParent = elapsed >= half;\r\n if (inNewParent && node.parent !== newParent) {\r\n if (oldParent) oldParent.remove(node);\r\n newParent.add(node);\r\n } else if (!inNewParent && node.parent !== oldParent) {\r\n newParent.remove(node);\r\n if (oldParent) oldParent.add(node);\r\n }\r\n animation.at(t);\r\n });\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-motion.js","sourceRoot":"","sources":["../../../src/nodes/2d/node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,CAAC;IACvB,OAAO,CAAC,YAAY,GAAG,QAAQ,CAAC;IAChC,OAAO,CAAC,SAAS,GAAG,KAAK,CAAC;AAC9B,CAAC","sourcesContent":["import { NodeRenderState } from \"@/render/render-context2d\";\nimport { Vector2 } from \"@/attributes/layout/vector2\";\n\n/**\n * Companion for {@link Node2D}'s clock advance and per-frame motion sampling. The\n * reactive prop reads (x/y/rotation/scale) stay in Node2D's thin `_sampleMotion`\n * wrapper; the backward-difference math lives here as a pure function over the\n * reused scratch state — no per-frame allocation (the {@link MotionHistory}\n * holder is created once per node at construction).\n */\n\n/** Largest frame delta we trust for a velocity estimate (seconds). Larger gaps (scrub/seek) read as \"unknown\". */\n/** @internal */\nexport const MAX_MOTION_DT = 0.2;\n\n/**\n * Per-node rolling history for the backward-difference velocity estimate.\n * Allocated once with the node (mirrors the reused `_renderState` scratch), then\n * mutated in place by {@link sampleMotion} each frame.\n */\n/** @internal */\nexport interface MotionHistory {\n prevPos: Vector2 | null;\n prevTime: number;\n prevRotation: number;\n prevScale: number;\n}\n\n/**\n * Record the current position as the history's previous frame, **without**\n * deriving a velocity from it.\n *\n * The seam a driven scene primes through. A generator scene walks time forward\n * one `dt` at a time, so its history is always the frame before and\n * {@link sampleMotion}'s backward difference is a property of the timeline. A\n * driven scene doesn't walk at all — it jumps straight to whatever frame is\n * asked for — so differencing against \"wherever the playhead last was\" makes\n * velocity a property of *how the viewer got here*: scrub quickly and a static\n * node smears, hold still on the same frame and it doesn't, step backward and it\n * reads zero. Priming with the position one frame earlier is what makes the\n * answer depend on the frame alone.\n */\n/** @internal */\nexport function primeMotion(\n history: MotionHistory,\n x: number,\n y: number,\n rotation: number,\n scale: number,\n at: number,\n): void {\n if (!history.prevPos) history.prevPos = { x, y };\n else { history.prevPos.x = x; history.prevPos.y = y; }\n history.prevTime = at;\n history.prevRotation = rotation;\n history.prevScale = scale;\n}\n\n/** Create the zeroed history holder a node keeps for its lifetime. */\n/** @internal */\nexport function createMotionHistory(): MotionHistory {\n return { prevPos: null, prevTime: 0, prevRotation: 0, prevScale: 1 };\n}\n\n/**\n * Compute this frame's motion (velocity/direction/speed/angular/scale) into the\n * reused `state` as a backward difference against `history`, then roll the\n * history forward. Velocity is `0`/`{0,0}` when no trustworthy delta exists —\n * the first frame, or after a non-monotonic time jump (only `0 < dt <= MAX` is\n * trusted, so a scrub that resets the clock reads as \"unknown\" rather than a\n * spurious huge velocity). `x`/`y` are the world position (y-down) the caller\n * resolved from `layoutBounds + x` / `layoutBounds - y`. Layout-dependent fields\n * (`rects`/`elapsed`) are filled in later by `beforeRender`.\n */\n/** @internal */\nexport function sampleMotion(\n state: NodeRenderState,\n history: MotionHistory,\n x: number,\n y: number,\n rotation: number,\n scale: number,\n now: number,\n): void {\n const dt = now - history.prevTime;\n const prev = history.prevPos;\n if (prev && dt > 0 && dt <= MAX_MOTION_DT) {\n const vx = (x - prev.x) / dt;\n const vy = (y - prev.y) / dt;\n state.dt = dt;\n state.velocity.x = vx;\n state.velocity.y = vy;\n state.speed = Math.hypot(vx, vy);\n state.direction = (Math.atan2(vy, vx) * 180) / Math.PI;\n state.angularVelocity = (rotation - history.prevRotation) / dt;\n state.scaleVelocity = (scale - history.prevScale) / dt;\n } else {\n state.dt = 0;\n state.velocity.x = 0;\n state.velocity.y = 0;\n state.speed = 0;\n state.direction = 0;\n state.angularVelocity = 0;\n state.scaleVelocity = 0;\n }\n\n if (!prev) history.prevPos = { x, y };\n else { prev.x = x; prev.y = y; }\n history.prevTime = now;\n history.prevRotation = rotation;\n history.prevScale = scale;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"node-motion.js","sourceRoot":"","sources":["../../../src/nodes/2d/node-motion.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,kHAAkH;AAClH,gBAAgB;AAChB,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAC;AAejC;;;;;;;;;;;;;GAaG;AACH,gBAAgB;AAChB,MAAM,UAAU,WAAW,CACvB,OAAsB,EACtB,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ion for {@link Node2D}'s clock advance and per-frame motion sampling. The\r\n * reactive prop reads (x/y/rotation/scale) stay in Node2D's thin `_sampleMotion`\r\n * wrapper; the backward-difference math lives here as a pure function over the\r\n * reused scratch state — no per-frame allocation (the {@link MotionHistory}\r\n * holder is created once per node at construction).\r\n */\r\n\r\n/** Largest frame delta we trust for a velocity estimate (seconds). Larger gaps (scrub/seek) read as \"unknown\". */\r\n/** @internal */\r\nexport const MAX_MOTION_DT = 0.2;\r\n\r\n/**\r\n * Per-node rolling history for the backward-difference velocity estimate.\r\n * Allocated once with the node (mirrors the reused `_renderState` scratch), then\r\n * mutated in place by {@link sampleMotion} each frame.\r\n */\r\n/** @internal */\r\nexport interface MotionHistory {\r\n prevPos: Vector2 | null;\r\n prevTime: number;\r\n prevRotation: number;\r\n prevScale: number;\r\n}\r\n\r\n/**\r\n * Record the current position as the history's previous frame, **without**\r\n * deriving a velocity from it.\r\n *\r\n * The seam a driven scene primes through. A generator scene walks time forward\r\n * one `dt` at a time, so its history is always the frame before and\r\n * {@link sampleMotion}'s backward difference is a property of the timeline. A\r\n * driven scene doesn't walk at all — it jumps straight to whatever frame is\r\n * asked for — so differencing against \"wherever the playhead last was\" makes\r\n * velocity a property of *how the viewer got here*: scrub quickly and a static\r\n * node smears, hold still on the same frame and it doesn't, step backward and it\r\n * reads zero. Priming with the position one frame earlier is what makes the\r\n * answer depend on the frame alone.\r\n */\r\n/** @internal */\r\nexport function primeMotion(\r\n history: MotionHistory,\r\n x: number,\r\n y: number,\r\n rotation: number,\r\n scale: number,\r\n at: number,\r\n): void {\r\n if (!history.prevPos) history.prevPos = { x, y };\r\n else { history.prevPos.x = x; history.prevPos.y = y; }\r\n history.prevTime = at;\r\n history.prevRotation = rotation;\r\n history.prevScale = scale;\r\n}\r\n\r\n/** Create the zeroed history holder a node keeps for its lifetime. */\r\n/** @internal */\r\nexport function createMotionHistory(): MotionHistory {\r\n return { prevPos: null, prevTime: 0, prevRotation: 0, prevScale: 1 };\r\n}\r\n\r\n/**\r\n * Compute this frame's motion (velocity/direction/speed/angular/scale) into the\r\n * reused `state` as a backward difference against `history`, then roll the\r\n * history forward. Velocity is `0`/`{0,0}` when no trustworthy delta exists —\r\n * the first frame, or after a non-monotonic time jump (only `0 < dt <= MAX` is\r\n * trusted, so a scrub that resets the clock reads as \"unknown\" rather than a\r\n * spurious huge velocity). `x`/`y` are the world position (y-down) the caller\r\n * resolved from `layoutBounds + x` / `layoutBounds - y`. Layout-dependent fields\r\n * (`rects`/`elapsed`) are filled in later by `beforeRender`.\r\n */\r\n/** @internal */\r\nexport function sampleMotion(\r\n state: NodeRenderState,\r\n history: MotionHistory,\r\n x: number,\r\n y: number,\r\n rotation: number,\r\n scale: number,\r\n now: number,\r\n): void {\r\n const dt = now - history.prevTime;\r\n const prev = history.prevPos;\r\n if (prev && dt > 0 && dt <= MAX_MOTION_DT) {\r\n const vx = (x - prev.x) / dt;\r\n const vy = (y - prev.y) / dt;\r\n state.dt = dt;\r\n state.velocity.x = vx;\r\n state.velocity.y = vy;\r\n state.speed = Math.hypot(vx, vy);\r\n state.direction = (Math.atan2(vy, vx) * 180) / Math.PI;\r\n state.angularVelocity = (rotation - history.prevRotation) / dt;\r\n state.scaleVelocity = (scale - history.prevScale) / dt;\r\n } else {\r\n state.dt = 0;\r\n state.velocity.x = 0;\r\n state.velocity.y = 0;\r\n state.speed = 0;\r\n state.direction = 0;\r\n state.angularVelocity = 0;\r\n state.scaleVelocity = 0;\r\n }\r\n\r\n if (!prev) history.prevPos = { x, y };\r\n else { prev.x = x; prev.y = y; }\r\n history.prevTime = now;\r\n history.prevRotation = rotation;\r\n history.prevScale = scale;\r\n}\r\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RenderContext2D, SpaceRects } from "../../render/render-context2d.js";
|
|
2
2
|
import { Clip } from "../../render/clip.js";
|
|
3
3
|
import { BoxBounds } from "../../layout/bounds.js";
|
|
4
|
-
import {
|
|
4
|
+
import { NodeEffect } from "../../attributes/shape/effects/union.js";
|
|
5
5
|
/**
|
|
6
6
|
* Companion for {@link Node2D}'s render pipeline. The orchestration that weaves the
|
|
7
7
|
* `protected` override seams (`renderContent`, `renderContentWithEffects`,
|
|
@@ -29,7 +29,7 @@ export declare function computeSpaceRects(parentRect: BoxBounds | undefined, thi
|
|
|
29
29
|
* no backdrop effects or no silhouette `clip` to confine them to.
|
|
30
30
|
*/
|
|
31
31
|
/** @internal */
|
|
32
|
-
export declare function applyBackdropEffects(ctx: RenderContext2D, effects:
|
|
32
|
+
export declare function applyBackdropEffects(ctx: RenderContext2D, effects: NodeEffect[], clip: Clip | null, width: number, height: number): void;
|
|
33
33
|
/**
|
|
34
34
|
* Run `body` inside the node's foreground effect scope and clip-path scope — the
|
|
35
35
|
* inner half of `renderContentWithEffects` (the backdrop pass is applied
|
|
@@ -40,5 +40,5 @@ export declare function applyBackdropEffects(ctx: RenderContext2D, effects: Scen
|
|
|
40
40
|
* Both scopes are balanced and skipped when empty so the begin/end calls match.
|
|
41
41
|
*/
|
|
42
42
|
/** @internal */
|
|
43
|
-
export declare function applyContentEffectScope(ctx: RenderContext2D, effects:
|
|
43
|
+
export declare function applyContentEffectScope(ctx: RenderContext2D, effects: NodeEffect[], clipPath: Clip | null, width: number, height: number, body: () => void): void;
|
|
44
44
|
//# sourceMappingURL=node-render.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-render.d.ts","sourceRoot":"","sources":["../../../src/nodes/2d/node-render.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"node-render.d.ts","sourceRoot":"","sources":["../../../src/nodes/2d/node-render.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eA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,CAAC","sourcesContent":["import { RenderContext2D, SpaceRects } from \"@/render/render-context2d\";\r\nimport { Clip } from \"@/render/clip\";\r\nimport { BoxBounds } from \"@/layout/bounds\";\r\nimport { NodeEffect } from \"@/attributes/shape/effects/union\";\r\nimport { backdropEffects, foregroundShaderEffects } from \"@/attributes/shape/effects/backdrop\";\r\n\r\n/**\r\n * Companion for {@link Node2D}'s render pipeline. The orchestration that weaves the\r\n * `protected` override seams (`renderContent`, `renderContentWithEffects`,\r\n * `renderSelf`/`renderOverlay`/`renderStroke`/`renderChildren`) stays on the\r\n * class so subclass overrides and `super.*` dispatch correctly, and\r\n * `applyTransform` stays inline (it mutates the reused `_transformScratch` per\r\n * frame). What lives here are the **pure, leaf** pieces of the pipeline that\r\n * take resolved inputs + the `ctx` — no callbacks into protected seams — so the\r\n * hot orchestration reads cleanly without the scope-bookkeeping noise.\r\n */\r\n\r\n/**\r\n * Reference rect for fills with `space:'parent'`, expressed in this node's local\r\n * space (origin = this node's positioned centre, y-down). The viewport\r\n * (`space:'global'`) is resolved by the renderer. Rotation/scale of this node\r\n * are not folded in — the rect is the axis-aligned parent box, which is what\r\n * gradients expect. Returns `{}` for a root node (no parent).\r\n */\r\n/** @internal */\r\nexport function computeSpaceRects(\r\n parentRect: BoxBounds | undefined,\r\n thisRect: BoxBounds,\r\n x: number,\r\n y: number,\r\n): SpaceRects {\r\n if (!parentRect) return {};\r\n // This node's local origin within the parent's space.\r\n const ox = thisRect.x + x;\r\n const oy = thisRect.y - y;\r\n return {\r\n parent: {\r\n left: -parentRect.width / 2 - ox,\r\n top: -parentRect.height / 2 - oy,\r\n right: parentRect.width / 2 - ox,\r\n bottom: parentRect.height / 2 - oy,\r\n },\r\n };\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 the node, clipped to its silhouette,\r\n * before the node's own content is drawn — so what's underneath is\r\n * filtered/warped while the node's own edges stay sharp. A no-op when there are\r\n * no backdrop effects or no silhouette `clip` to confine them to.\r\n */\r\n/** @internal */\r\nexport function applyBackdropEffects(\r\n ctx: RenderContext2D,\r\n effects: NodeEffect[],\r\n clip: Clip | null,\r\n width: number,\r\n height: number,\r\n): void {\r\n const backdrop = backdropEffects(effects);\r\n if (backdrop.length === 0) return;\r\n if (!clip || clip.isEmpty()) return;\r\n\r\n // Clip to the silhouette first so the backdrop passes are confined to the\r\n // node; the renderer opens its backdrop layers within that clip.\r\n ctx.beginClip(clip);\r\n ctx.beginEffects(backdrop, \"backdrop\", width, height);\r\n ctx.endEffects();\r\n ctx.endClip();\r\n}\r\n\r\n/**\r\n * Run `body` inside the node's foreground effect scope and clip-path scope — the\r\n * inner half of `renderContentWithEffects` (the backdrop pass is applied\r\n * separately, before this). Outermost-first:\r\n * 1. a `foreground` effect scope (posterize wrapping bulge) capturing everything\r\n * `body` paints, so those shader effects warp/band the lot;\r\n * 2. a `clipPath` cut through both the node's own paint and its children.\r\n * Both scopes are balanced and skipped when empty so the begin/end calls match.\r\n */\r\n/** @internal */\r\nexport function applyContentEffectScope(\r\n ctx: RenderContext2D,\r\n effects: NodeEffect[],\r\n clipPath: Clip | null,\r\n width: number,\r\n height: number,\r\n body: () => void,\r\n): void {\r\n const foreground = foregroundShaderEffects(effects);\r\n const hasForeground = foreground.length > 0;\r\n if (hasForeground) ctx.beginEffects(foreground, \"foreground\", width, height);\r\n\r\n const pathClipped = clipPath != null && !clipPath.isEmpty();\r\n if (pathClipped) ctx.beginClip(clipPath);\r\n\r\n body();\r\n\r\n if (pathClipped) ctx.endClip();\r\n if (hasForeground) ctx.endEffects();\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-transform.js","sourceRoot":"","sources":["../../../src/nodes/2d/node-transform.ts"],"names":[],"mappings":"AACA,OAAO,EAEH,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,GAEtB,MAAM,8BAA8B,CAAC;AAEtC;;;;;GAKG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Aa;IAClE,MAAM,EAAE,GAAG,CAAC,EAAU,EAAE,EAAU,EAAW,EAAE;QAC3C,MAAM,CAAC,GAAG,YAAY,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QAC7C,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC/B,CAAC,CAAC;IACF,OAAO;QACH,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;QAChB,OAAO,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC;QAC1B,QAAQ,EAAE,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;QAC1B,UAAU,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC;QAC9B,WAAW,EAAE,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC;QAC9B,SAAS,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC;QACvB,YAAY,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC;QAC3B,UAAU,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC;QACzB,WAAW,EAAE,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC;KAC5B,CAAC;AACN,CAAC","sourcesContent":["import { Vector2 } from \"@/attributes/layout/vector2\";\nimport {\n Matrix2D,\n NO_PROJECTION_3D,\n applyToPoint,\n nodeProjectedMatrix,\n type Projection3D,\n} from \"@/attributes/layout/matrix2d\";\n\n/**\n * Companion for {@link Node2D}'s transform/anchor/world-space math. The reactive\n * prop reads (x/y/rotation/scale/pivot/layoutBounds) and the parent-chain walk\n * stay in Node2D's getters; the pure geometry lives here. Reuses the matrix\n * primitives in `attributes/layout/matrix2d.ts`.\n */\n\n/**\n * Rotate a centered offset `(ox, oy)` (y-up) by `rotationDeg` (clockwise) and\n * translate by the node's `(x, y)`, giving a parent-relative anchor point. Fast\n * path for the un-rotated case. Drives the local anchor getters.\n */\n/** @internal */\nexport function rotateOffset(x: number, y: number, rotationDeg: number, ox: number, oy: number): Vector2 {\n if (rotationDeg === 0) return { x: x + ox, y: y + oy };\n const rad = (rotationDeg * Math.PI) / 180;\n const cos = Math.cos(rad);\n const sin = Math.sin(rad);\n // Canvas rotation is clockwise; in y-up space that means\n // x' = cos*ox + sin*oy, y' = -sin*ox + cos*oy.\n return {\n x: x + cos * ox + sin * oy,\n y: y - sin * ox + cos * oy,\n };\n}\n\n/**\n * This node's local transform in canvas (y-down) space, matching the matrix the\n * renderer pushes in `applyTransform`. `cx`/`cy` are the positioned centre\n * (`layoutBounds + x`, `layoutBounds - y`); `pivot` is the resolved normalised pivot.\n *\n * `projection` carries the out-of-plane half (mirrors, tilt, depth, perspective)\n * and defaults to none, in which case this is the plain six-number affine matrix\n * it has always been.\n *\n * Both consumers of a node's transform go through here — `Node2D._localMatrix`\n * (and so `worldMatrix`, `global`, and picking) and `Node2D.applyTransform` (and so\n * the renderer) — so there is one definition of the arithmetic rather than two\n * that agree by inspection. They differ in exactly one argument: the renderer\n * passes the projection and the geometry does not, because the mirrors and the\n * tilt are paint rather than shape. See `Node2D._localMatrix`.\n */\n/** @internal */\nexport function localMatrix(\n cx: number,\n cy: number,\n rotation: number,\n scale: number,\n pivot: Vector2,\n width: number,\n height: number,\n projection: Projection3D = NO_PROJECTION_3D,\n): Matrix2D {\n const pivotX = pivot.x * (width / 2);\n const pivotY = -pivot.y * (height / 2);\n return nodeProjectedMatrix(cx, cy, rotation, scale, pivotX, pivotY, projection);\n}\n\n/** The nine world-space anchor points produced by mapping centered y-up offsets through `m`. */\n/** @internal */\nexport interface WorldAnchors {\n center: Vector2;\n topLeft: Vector2;\n topRight: Vector2;\n bottomLeft: Vector2;\n bottomRight: Vector2;\n topCenter: Vector2;\n bottomCenter: Vector2;\n centerLeft: Vector2;\n centerRight: Vector2;\n}\n\n/**\n * Map this node's centered y-up offsets through the world matrix `m`, returning\n * the nine world-space anchor points (y-up). The matrix works in canvas (y-down)\n * space, so y is flipped in and back out. `halfW`/`halfH` are half the node's\n * layout size.\n */\n/** @internal */\nexport function worldAnchors(m: Matrix2D, halfW: number, halfH: number): WorldAnchors {\n const at = (ox: number, oy: number): Vector2 => {\n const p = applyToPoint(m, { x: ox, y: -oy });\n return { x: p.x, y: -p.y };\n };\n return {\n center: at(0, 0),\n topLeft: at(-halfW, halfH),\n topRight: at(halfW, halfH),\n bottomLeft: at(-halfW, -halfH),\n bottomRight: at(halfW, -halfH),\n topCenter: at(0, halfH),\n bottomCenter: at(0, -halfH),\n centerLeft: at(-halfW, 0),\n centerRight: at(halfW, 0),\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"node-transform.js","sourceRoot":"","sources":["../../../src/nodes/2d/node-transform.ts"],"names":[],"mappings":"AACA,OAAO,EAEH,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,GAEtB,MAAM,8BAA8B,CAAC;AAEtC;;;;;GAKG;AAEH;;;;GAIG;AACH,gBAAgB;AAChB,MAAM,UAAU,YAAY,CAAC,CAAS,EAAE,CAAS,EAAE,WAAmB,EAAE,EAAU,EAAE,EAAU;IAC1F,IAAI,WAAW,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC;IACvD,MAAM,GAAG,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC;IAC1C,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC1B,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC1B,yDAAyD;IACzD,+CAA+C;IAC/C,OAAO;QACH,CAAC,EAAE,CAAC,GAAG,GAAG,GAAG,EAAE,GAAG,GAAG,GAAG,EAA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,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC;QAC9B,SAAS,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC;QACvB,YAAY,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC;QAC3B,UAAU,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC;QACzB,WAAW,EAAE,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC;KAC5B,CAAC;AACN,CAAC","sourcesContent":["import { Vector2 } from \"@/attributes/layout/vector2\";\r\nimport {\r\n Matrix2D,\r\n NO_PROJECTION_3D,\r\n applyToPoint,\r\n nodeProjectedMatrix,\r\n type Projection3D,\r\n} from \"@/attributes/layout/matrix2d\";\r\n\r\n/**\r\n * Companion for {@link Node2D}'s transform/anchor/world-space math. The reactive\r\n * prop reads (x/y/rotation/scale/pivot/layoutBounds) and the parent-chain walk\r\n * stay in Node2D's getters; the pure geometry lives here. Reuses the matrix\r\n * primitives in `attributes/layout/matrix2d.ts`.\r\n */\r\n\r\n/**\r\n * Rotate a centered offset `(ox, oy)` (y-up) by `rotationDeg` (clockwise) and\r\n * translate by the node's `(x, y)`, giving a parent-relative anchor point. Fast\r\n * path for the un-rotated case. Drives the local anchor getters.\r\n */\r\n/** @internal */\r\nexport function rotateOffset(x: number, y: number, rotationDeg: number, ox: number, oy: number): Vector2 {\r\n if (rotationDeg === 0) return { x: x + ox, y: y + oy };\r\n const rad = (rotationDeg * Math.PI) / 180;\r\n const cos = Math.cos(rad);\r\n const sin = Math.sin(rad);\r\n // Canvas rotation is clockwise; in y-up space that means\r\n // x' = cos*ox + sin*oy, y' = -sin*ox + cos*oy.\r\n return {\r\n x: x + cos * ox + sin * oy,\r\n y: y - sin * ox + cos * oy,\r\n };\r\n}\r\n\r\n/**\r\n * This node's local transform in canvas (y-down) space, matching the matrix the\r\n * renderer pushes in `applyTransform`. `cx`/`cy` are the positioned centre\r\n * (`layoutBounds + x`, `layoutBounds - y`); `pivot` is the resolved normalised pivot.\r\n *\r\n * `projection` carries the out-of-plane half (mirrors, tilt, depth, perspective)\r\n * and defaults to none, in which case this is the plain six-number affine matrix\r\n * it has always been.\r\n *\r\n * Both consumers of a node's transform go through here — `Node2D._localMatrix`\r\n * (and so `worldMatrix`, `global`, and picking) and `Node2D.applyTransform` (and so\r\n * the renderer) — so there is one definition of the arithmetic rather than two\r\n * that agree by inspection. They differ in exactly one argument: the renderer\r\n * passes the projection and the geometry does not, because the mirrors and the\r\n * tilt are paint rather than shape. See `Node2D._localMatrix`.\r\n */\r\n/** @internal */\r\nexport function localMatrix(\r\n cx: number,\r\n cy: number,\r\n rotation: number,\r\n scale: number,\r\n pivot: Vector2,\r\n width: number,\r\n height: number,\r\n projection: Projection3D = NO_PROJECTION_3D,\r\n): Matrix2D {\r\n const pivotX = pivot.x * (width / 2);\r\n const pivotY = -pivot.y * (height / 2);\r\n return nodeProjectedMatrix(cx, cy, rotation, scale, pivotX, pivotY, projection);\r\n}\r\n\r\n/** The nine world-space anchor points produced by mapping centered y-up offsets through `m`. */\r\n/** @internal */\r\nexport interface WorldAnchors {\r\n center: Vector2;\r\n topLeft: Vector2;\r\n topRight: Vector2;\r\n bottomLeft: Vector2;\r\n bottomRight: Vector2;\r\n topCenter: Vector2;\r\n bottomCenter: Vector2;\r\n centerLeft: Vector2;\r\n centerRight: Vector2;\r\n}\r\n\r\n/**\r\n * Map this node's centered y-up offsets through the world matrix `m`, returning\r\n * the nine world-space anchor points (y-up). The matrix works in canvas (y-down)\r\n * space, so y is flipped in and back out. `halfW`/`halfH` are half the node's\r\n * layout size.\r\n */\r\n/** @internal */\r\nexport function worldAnchors(m: Matrix2D, halfW: number, halfH: number): WorldAnchors {\r\n const at = (ox: number, oy: number): Vector2 => {\r\n const p = applyToPoint(m, { x: ox, y: -oy });\r\n return { x: p.x, y: -p.y };\r\n };\r\n return {\r\n center: at(0, 0),\r\n topLeft: at(-halfW, halfH),\r\n topRight: at(halfW, halfH),\r\n bottomLeft: at(-halfW, -halfH),\r\n bottomRight: at(halfW, -halfH),\r\n topCenter: at(0, halfH),\r\n bottomCenter: at(0, -halfH),\r\n centerLeft: at(-halfW, 0),\r\n centerRight: at(halfW, 0),\r\n };\r\n}\r\n"]}
|
|
@@ -46,6 +46,29 @@ export interface ChildPlacement {
|
|
|
46
46
|
/** Multiplies the child's own opacity. */
|
|
47
47
|
readonly opacity: number;
|
|
48
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* A parent's own coordinates for where its children sit — the units of a graph,
|
|
51
|
+
* say. Position only: a child keeps its size, turn and scale, so a label on a
|
|
52
|
+
* plot follows the plot's range without being stretched by it.
|
|
53
|
+
*
|
|
54
|
+
* Answered by the parent ({@link Node2D._planeOf}) for the reasons a slot is,
|
|
55
|
+
* and read by the renderer, picking, `global` and `moveTo({ target })` alike.
|
|
56
|
+
*/
|
|
57
|
+
export interface ChildPlane {
|
|
58
|
+
/** A child's `x`/`y` as a pixel offset, y-up, from the centre of its layout box. */
|
|
59
|
+
toOffset(x: number, y: number): Vector2;
|
|
60
|
+
/** The inverse: the `x`/`y` that put a child at that offset. */
|
|
61
|
+
toCoords(x: number, y: number): Vector2;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* A point of a node an editor can drag to set one of its `Vector2` props: the
|
|
65
|
+
* two ends of an arrow. `at` is in the node's own frame, y-up from its origin,
|
|
66
|
+
* the frame {@link Node2D._localBounds} is in.
|
|
67
|
+
*/
|
|
68
|
+
export interface NodeHandle {
|
|
69
|
+
readonly prop: string;
|
|
70
|
+
readonly at: Vector2;
|
|
71
|
+
}
|
|
49
72
|
export { Node } from "../../nodes/node/node.js";
|
|
50
73
|
export type { NodeChildren, NodeConfig, NodeMetadata, NodeDimension, NodeProps } from "../../nodes/node/node.js";
|
|
51
74
|
export type { WorldTransform } from "../../attributes/layout/world-transform.js";
|
|
@@ -523,6 +546,51 @@ export interface Node2DProps extends NodeProps {
|
|
|
523
546
|
}> & {
|
|
524
547
|
duration: number;
|
|
525
548
|
}): Command<P>;
|
|
549
|
+
/**
|
|
550
|
+
* Animate the box: `width`, `height` and `padding`, whichever are given.
|
|
551
|
+
* A size keyword (`'fill'`, `'hug'`) snaps; a number interpolates.
|
|
552
|
+
*
|
|
553
|
+
* @example
|
|
554
|
+
* node.layoutTo({ data: { width: 640, height: 360 }, duration: 0.5 });
|
|
555
|
+
*/
|
|
556
|
+
layoutTo(args: CommandArgs<{
|
|
557
|
+
width?: SizeInput;
|
|
558
|
+
height?: SizeInput;
|
|
559
|
+
padding?: Insets;
|
|
560
|
+
}> & {
|
|
561
|
+
duration: number;
|
|
562
|
+
}): Command<P>;
|
|
563
|
+
/**
|
|
564
|
+
* Swell to `factor` times the node's size and settle back: a nudge of the
|
|
565
|
+
* eye toward it. It ends as it began, so nothing after it needs restating.
|
|
566
|
+
*
|
|
567
|
+
* @example
|
|
568
|
+
* node.pulse({ data: { factor: 1.3 }, duration: 0.6 });
|
|
569
|
+
*/
|
|
570
|
+
pulse(args: CommandArgs<{
|
|
571
|
+
factor?: number;
|
|
572
|
+
}> & {
|
|
573
|
+
duration: number;
|
|
574
|
+
}): Command<P>;
|
|
575
|
+
/**
|
|
576
|
+
* Rock about the node's own turn, `angle` degrees each way for `turns`
|
|
577
|
+
* swings, building up and dying away. It ends as it began.
|
|
578
|
+
*
|
|
579
|
+
* @example
|
|
580
|
+
* node.wiggle({ data: { angle: 10, turns: 4 }, duration: 0.8 });
|
|
581
|
+
*/
|
|
582
|
+
wiggle(args: CommandArgs<{
|
|
583
|
+
angle?: number;
|
|
584
|
+
turns?: number;
|
|
585
|
+
}> & {
|
|
586
|
+
duration: number;
|
|
587
|
+
}): Command<P>;
|
|
588
|
+
/** Animate the `effects` stack to another one. */
|
|
589
|
+
effectTo(args: CommandArgs<{
|
|
590
|
+
effects: Effect;
|
|
591
|
+
}> & {
|
|
592
|
+
duration: number;
|
|
593
|
+
}): Command<P>;
|
|
526
594
|
get measuredWidth(): number;
|
|
527
595
|
get measuredHeight(): number;
|
|
528
596
|
/** Rotate offset (ox, oy) by this node's rotation (degrees clockwise) around the node center. */
|
|
@@ -572,6 +640,41 @@ export interface Node2DProps extends NodeProps {
|
|
|
572
640
|
*/
|
|
573
641
|
/** @internal */
|
|
574
642
|
_placementOf(_child: Node2D): ChildPlacement | null;
|
|
643
|
+
/**
|
|
644
|
+
* The coordinates `child`'s `x`/`y` are in, or `null` — the default — when
|
|
645
|
+
* they are pixels. A `null` child asks for one that is not here yet: where
|
|
646
|
+
* a host would drop or paste it. See {@link ChildPlane}.
|
|
647
|
+
*/
|
|
648
|
+
/** @internal */
|
|
649
|
+
_planeOf(_child: Node2D | null): ChildPlane | null;
|
|
650
|
+
/**
|
|
651
|
+
* Where its own layout would centre a child of `size` that is not here yet,
|
|
652
|
+
* y-down from its centre, or `null` when it arranges its children in a run
|
|
653
|
+
* or a grid (the run decides) or has not laid any out.
|
|
654
|
+
*/
|
|
655
|
+
/** @internal */
|
|
656
|
+
_slotFor(size: Size2D): Vector2 | null;
|
|
657
|
+
/**
|
|
658
|
+
* Where its centre sits from the point its `x`/`y` place, in its parent's
|
|
659
|
+
* frame, y-down, at `rotation` and `scale`: what turning or scaling about an
|
|
660
|
+
* off-centre pivot adds.
|
|
661
|
+
*/
|
|
662
|
+
/** @internal */
|
|
663
|
+
_centreShift(rotation?: number, scale?: number): Vector2;
|
|
664
|
+
/** The points an editor may drag on this node, where they sit now; none by default. See {@link NodeHandle}. */
|
|
665
|
+
/** @internal */
|
|
666
|
+
_handles(): readonly NodeHandle[];
|
|
667
|
+
/** The value `prop` takes for its handle to sit at `at`, in this node's own frame; `null` when it has none. */
|
|
668
|
+
/** @internal */
|
|
669
|
+
_handleValue(_prop: string, _at: Vector2): Vector2 | null;
|
|
670
|
+
private readonly _offsetScratch;
|
|
671
|
+
/**
|
|
672
|
+
* This node's `x`/`y` as the pixel offset its parent sees. Every position
|
|
673
|
+
* read goes through here, which is what keeps paint, picking and `global`
|
|
674
|
+
* agreeing under a {@link ChildPlane}. The result is reused: read it at once.
|
|
675
|
+
*/
|
|
676
|
+
/** @internal */
|
|
677
|
+
_offset(): Vector2;
|
|
575
678
|
/**
|
|
576
679
|
* The flat part of this node's slot, as the frame its own `x`/`y` move in —
|
|
577
680
|
* the layout box's centre, turned and scaled by the slot. `null` when it has
|
|
@@ -796,9 +899,9 @@ export interface Node2DProps extends NodeProps {
|
|
|
796
899
|
*
|
|
797
900
|
* Defaults to the layout box, centred on the node, which is right for every
|
|
798
901
|
* node whose drawing fills its cell. It is a separate seam from the layout
|
|
799
|
-
* rect because for some nodes the two genuinely differ: a
|
|
800
|
-
*
|
|
801
|
-
*
|
|
902
|
+
* rect because for some nodes the two genuinely differ: a boolean group or
|
|
903
|
+
* a mask is drawn where its children's ink is, which can be both a different
|
|
904
|
+
* size *and* off-centre from its own cell. Overriding this
|
|
802
905
|
* fixes the box and the grab region together, without perturbing layout —
|
|
803
906
|
* which a `measure()` override would.
|
|
804
907
|
*
|
|
@@ -934,6 +1037,8 @@ export interface Node2DProps extends NodeProps {
|
|
|
934
1037
|
private _facesAway;
|
|
935
1038
|
/** What {@link measure} hands {@link layoutChildren} within a pass; consumed there. */
|
|
936
1039
|
private _flowMeasure;
|
|
1040
|
+
/** The content box {@link layoutChildren} last placed children in, y-down from this node's centre. */
|
|
1041
|
+
private _childBox;
|
|
937
1042
|
private _flowWarned;
|
|
938
1043
|
/**
|
|
939
1044
|
* Record this node's allocated bounds without touching children.
|
|
@@ -996,4 +1101,11 @@ export interface Node2DProps extends NodeProps {
|
|
|
996
1101
|
duration: number;
|
|
997
1102
|
}): Command<Record<string, never>>;
|
|
998
1103
|
}
|
|
1104
|
+
/** The 2D node `id` names anywhere in the tree `from` is in, or `null`. */
|
|
1105
|
+
export declare function findNode2D(from: Node, id: string): Node2D | null;
|
|
1106
|
+
/**
|
|
1107
|
+
* Where `node`'s frame sits in `host`'s, wherever each is in the tree: its
|
|
1108
|
+
* centre as an offset (y-up) from `host`'s, and its turn and scale relative to it.
|
|
1109
|
+
*/
|
|
1110
|
+
export declare function frameIn(host: Node2D, node: Node2D): Vector2 & Pick<WorldTransform, "rotation" | "scale">;
|
|
999
1111
|
//# sourceMappingURL=node2d.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node2d.d.ts","sourceRoot":"","sources":["../../../src/nodes/2d/node2d.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAQjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,SAAS,EAAgB,MAAM,+BAA+B,CAAC;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAE,IAAI,EAAE,KAAK,UAAU,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9F,OAAO,EAKH,QAAQ,EAER,KAAK,YAAY,EACpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAqB,KAAK,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAC1F,OAAO,EAAoC,KAAK,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE/G,OAAO,EAAoD,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAMjG,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAmB,eAAe,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,2BA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