@motionscript/core 0.1.0 → 0.1.1-alpha.1
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 +16 -0
- package/dist/assets/asset-index.d.ts +1 -8
- package/dist/assets/asset-index.d.ts.map +1 -1
- package/dist/assets/asset-index.js +1 -8
- package/dist/assets/asset-index.js.map +1 -1
- package/dist/assets/catalog.d.ts +10 -72
- package/dist/assets/catalog.d.ts.map +1 -1
- package/dist/assets/catalog.js +3 -29
- package/dist/assets/catalog.js.map +1 -1
- package/dist/assets/errors.d.ts +8 -20
- package/dist/assets/errors.d.ts.map +1 -1
- package/dist/assets/errors.js +8 -20
- package/dist/assets/errors.js.map +1 -1
- package/dist/assets/index.d.ts.map +1 -1
- package/dist/assets/index.js.map +1 -1
- package/dist/assets/manager.d.ts +9 -51
- package/dist/assets/manager.d.ts.map +1 -1
- package/dist/assets/manager.js +13 -78
- package/dist/assets/manager.js.map +1 -1
- package/dist/assets/record.d.ts +2 -18
- package/dist/assets/record.d.ts.map +1 -1
- package/dist/assets/record.js.map +1 -1
- package/dist/assets/scope.d.ts +3 -18
- package/dist/assets/scope.d.ts.map +1 -1
- package/dist/assets/scope.js +2 -11
- package/dist/assets/scope.js.map +1 -1
- package/dist/attributes/audio/effects/chain.d.ts +2 -12
- package/dist/attributes/audio/effects/chain.d.ts.map +1 -1
- package/dist/attributes/audio/effects/chain.js +1 -7
- package/dist/attributes/audio/effects/chain.js.map +1 -1
- package/dist/attributes/audio/effects/registry.d.ts +3 -18
- package/dist/attributes/audio/effects/registry.d.ts.map +1 -1
- package/dist/attributes/audio/effects/registry.js +4 -23
- package/dist/attributes/audio/effects/registry.js.map +1 -1
- package/dist/attributes/audio/ramp.d.ts +5 -38
- package/dist/attributes/audio/ramp.d.ts.map +1 -1
- package/dist/attributes/audio/ramp.js +3 -28
- package/dist/attributes/audio/ramp.js.map +1 -1
- package/dist/attributes/audio/request.d.ts +10 -80
- package/dist/attributes/audio/request.d.ts.map +1 -1
- package/dist/attributes/audio/request.js +1 -4
- package/dist/attributes/audio/request.js.map +1 -1
- package/dist/attributes/audio/schedule.d.ts +2 -12
- package/dist/attributes/audio/schedule.d.ts.map +1 -1
- package/dist/attributes/audio/schedule.js +2 -11
- package/dist/attributes/audio/schedule.js.map +1 -1
- package/dist/attributes/audio/sound.d.ts +2 -26
- package/dist/attributes/audio/sound.d.ts.map +1 -1
- package/dist/attributes/audio/sound.js +1 -9
- package/dist/attributes/audio/sound.js.map +1 -1
- package/dist/attributes/audio/transition.d.ts +1 -8
- package/dist/attributes/audio/transition.d.ts.map +1 -1
- package/dist/attributes/audio/transition.js.map +1 -1
- package/dist/attributes/layout/alignment.d.ts +6 -38
- package/dist/attributes/layout/alignment.d.ts.map +1 -1
- package/dist/attributes/layout/alignment.js.map +1 -1
- package/dist/attributes/layout/insets.d.ts +2 -27
- package/dist/attributes/layout/insets.d.ts.map +1 -1
- package/dist/attributes/layout/insets.js.map +1 -1
- package/dist/attributes/layout/matrix2d.d.ts +29 -114
- package/dist/attributes/layout/matrix2d.d.ts.map +1 -1
- package/dist/attributes/layout/matrix2d.js +26 -110
- package/dist/attributes/layout/matrix2d.js.map +1 -1
- package/dist/attributes/layout/size.d.ts +3 -25
- package/dist/attributes/layout/size.d.ts.map +1 -1
- package/dist/attributes/layout/size.js +2 -18
- package/dist/attributes/layout/size.js.map +1 -1
- package/dist/attributes/layout/space3d.d.ts +16 -79
- package/dist/attributes/layout/space3d.d.ts.map +1 -1
- package/dist/attributes/layout/space3d.js +17 -81
- package/dist/attributes/layout/space3d.js.map +1 -1
- package/dist/attributes/layout/transform3d.d.ts +2 -23
- package/dist/attributes/layout/transform3d.d.ts.map +1 -1
- package/dist/attributes/layout/transform3d.js +1 -7
- package/dist/attributes/layout/transform3d.js.map +1 -1
- package/dist/attributes/layout/world-transform.d.ts +2 -16
- package/dist/attributes/layout/world-transform.d.ts.map +1 -1
- package/dist/attributes/layout/world-transform.js.map +1 -1
- package/dist/attributes/properties/decorator.d.ts +13 -73
- package/dist/attributes/properties/decorator.d.ts.map +1 -1
- package/dist/attributes/properties/decorator.js +9 -40
- package/dist/attributes/properties/decorator.js.map +1 -1
- package/dist/attributes/properties/typed.d.ts +6 -45
- package/dist/attributes/properties/typed.d.ts.map +1 -1
- package/dist/attributes/properties/typed.js +6 -37
- package/dist/attributes/properties/typed.js.map +1 -1
- package/dist/attributes/render3d/orbit.d.ts +11 -83
- package/dist/attributes/render3d/orbit.d.ts.map +1 -1
- package/dist/attributes/render3d/orbit.js +10 -73
- package/dist/attributes/render3d/orbit.js.map +1 -1
- package/dist/attributes/shape/corners/corner-radius.d.ts +1 -6
- package/dist/attributes/shape/corners/corner-radius.d.ts.map +1 -1
- package/dist/attributes/shape/corners/corner-radius.js.map +1 -1
- package/dist/attributes/shape/corners/corner-style.d.ts +4 -25
- package/dist/attributes/shape/corners/corner-style.d.ts.map +1 -1
- package/dist/attributes/shape/corners/corner-style.js +2 -12
- package/dist/attributes/shape/corners/corner-style.js.map +1 -1
- package/dist/attributes/shape/corners/corners.d.ts +2 -21
- package/dist/attributes/shape/corners/corners.d.ts.map +1 -1
- package/dist/attributes/shape/corners/corners.js +2 -12
- package/dist/attributes/shape/corners/corners.js.map +1 -1
- package/dist/attributes/shape/effects/backdrop.d.ts +2 -18
- package/dist/attributes/shape/effects/backdrop.d.ts.map +1 -1
- package/dist/attributes/shape/effects/backdrop.js +3 -26
- package/dist/attributes/shape/effects/backdrop.js.map +1 -1
- package/dist/attributes/shape/effects/chain.d.ts +36 -328
- package/dist/attributes/shape/effects/chain.d.ts.map +1 -1
- package/dist/attributes/shape/effects/chain.js +24 -242
- package/dist/attributes/shape/effects/chain.js.map +1 -1
- package/dist/attributes/shape/effects/effect-data.d.ts +19 -127
- package/dist/attributes/shape/effects/effect-data.d.ts.map +1 -1
- package/dist/attributes/shape/effects/effect-data.js +6 -33
- package/dist/attributes/shape/effects/effect-data.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/ascii.d.ts +6 -26
- package/dist/attributes/shape/effects/implementations/ascii.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/ascii.js +0 -3
- package/dist/attributes/shape/effects/implementations/ascii.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/bit-crush.d.ts +2 -21
- package/dist/attributes/shape/effects/implementations/bit-crush.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/bit-crush.js +0 -1
- package/dist/attributes/shape/effects/implementations/bit-crush.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/block-displace.d.ts +1 -14
- package/dist/attributes/shape/effects/implementations/block-displace.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/block-displace.js +0 -1
- package/dist/attributes/shape/effects/implementations/block-displace.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/bloom.d.ts +0 -1
- package/dist/attributes/shape/effects/implementations/bloom.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/bloom.js +0 -1
- package/dist/attributes/shape/effects/implementations/bloom.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/blur.d.ts +0 -1
- package/dist/attributes/shape/effects/implementations/blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/blur.js +0 -1
- package/dist/attributes/shape/effects/implementations/blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/bulge.d.ts +0 -1
- package/dist/attributes/shape/effects/implementations/bulge.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/bulge.js +0 -1
- package/dist/attributes/shape/effects/implementations/bulge.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.d.ts +0 -1
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.js +0 -1
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/color-adjustment.d.ts +1 -12
- package/dist/attributes/shape/effects/implementations/color-adjustment.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/color-adjustment.js +0 -1
- package/dist/attributes/shape/effects/implementations/color-adjustment.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/curves.d.ts +1 -11
- package/dist/attributes/shape/effects/implementations/curves.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/curves.js +1 -6
- package/dist/attributes/shape/effects/implementations/curves.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/directional-blur.d.ts +0 -1
- package/dist/attributes/shape/effects/implementations/directional-blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/directional-blur.js +0 -1
- package/dist/attributes/shape/effects/implementations/directional-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/dither.d.ts +4 -35
- package/dist/attributes/shape/effects/implementations/dither.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/dither.js +1 -7
- package/dist/attributes/shape/effects/implementations/dither.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/drop-shadow.d.ts +1 -22
- package/dist/attributes/shape/effects/implementations/drop-shadow.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/drop-shadow.js +0 -1
- package/dist/attributes/shape/effects/implementations/drop-shadow.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/duotone.d.ts +1 -9
- package/dist/attributes/shape/effects/implementations/duotone.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/duotone.js +0 -1
- package/dist/attributes/shape/effects/implementations/duotone.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/edges.d.ts +2 -15
- package/dist/attributes/shape/effects/implementations/edges.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/edges.js +0 -1
- package/dist/attributes/shape/effects/implementations/edges.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/glass.d.ts +1 -14
- package/dist/attributes/shape/effects/implementations/glass.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/glass.js +0 -1
- package/dist/attributes/shape/effects/implementations/glass.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/glow.d.ts +7 -47
- package/dist/attributes/shape/effects/implementations/glow.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/glow.js +1 -9
- package/dist/attributes/shape/effects/implementations/glow.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/grain.d.ts +1 -14
- package/dist/attributes/shape/effects/implementations/grain.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/grain.js +0 -1
- package/dist/attributes/shape/effects/implementations/grain.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/grayscale.d.ts +0 -1
- package/dist/attributes/shape/effects/implementations/grayscale.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/grayscale.js +0 -1
- package/dist/attributes/shape/effects/implementations/grayscale.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/halftone.d.ts +5 -29
- package/dist/attributes/shape/effects/implementations/halftone.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/halftone.js +0 -1
- package/dist/attributes/shape/effects/implementations/halftone.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/invert.d.ts +3 -12
- package/dist/attributes/shape/effects/implementations/invert.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/invert.js +0 -1
- package/dist/attributes/shape/effects/implementations/invert.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/kaleidoscope.d.ts +2 -19
- package/dist/attributes/shape/effects/implementations/kaleidoscope.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/kaleidoscope.js +1 -5
- package/dist/attributes/shape/effects/implementations/kaleidoscope.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/lut.d.ts +11 -36
- package/dist/attributes/shape/effects/implementations/lut.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/lut.js +2 -8
- package/dist/attributes/shape/effects/implementations/lut.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/magnify.d.ts +0 -1
- package/dist/attributes/shape/effects/implementations/magnify.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/magnify.js +0 -1
- package/dist/attributes/shape/effects/implementations/magnify.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/motion-blur.d.ts +3 -17
- package/dist/attributes/shape/effects/implementations/motion-blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/motion-blur.js +2 -11
- package/dist/attributes/shape/effects/implementations/motion-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/oil-paint.d.ts +1 -12
- package/dist/attributes/shape/effects/implementations/oil-paint.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/oil-paint.js +0 -1
- package/dist/attributes/shape/effects/implementations/oil-paint.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/outline.d.ts +2 -14
- package/dist/attributes/shape/effects/implementations/outline.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/outline.js +0 -1
- package/dist/attributes/shape/effects/implementations/outline.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/pixelate.d.ts +1 -15
- package/dist/attributes/shape/effects/implementations/pixelate.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/pixelate.js +0 -1
- package/dist/attributes/shape/effects/implementations/pixelate.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/posterize.d.ts +1 -10
- package/dist/attributes/shape/effects/implementations/posterize.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/posterize.js +0 -1
- package/dist/attributes/shape/effects/implementations/posterize.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/progressive-blur.d.ts +3 -26
- package/dist/attributes/shape/effects/implementations/progressive-blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/progressive-blur.js +1 -2
- package/dist/attributes/shape/effects/implementations/progressive-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/radial-blur.d.ts +2 -16
- package/dist/attributes/shape/effects/implementations/radial-blur.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/radial-blur.js +0 -1
- package/dist/attributes/shape/effects/implementations/radial-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/rgb-shift.d.ts +1 -13
- package/dist/attributes/shape/effects/implementations/rgb-shift.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/rgb-shift.js +0 -1
- package/dist/attributes/shape/effects/implementations/rgb-shift.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/scanlines.d.ts +1 -8
- package/dist/attributes/shape/effects/implementations/scanlines.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/scanlines.js +0 -1
- package/dist/attributes/shape/effects/implementations/scanlines.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/scatter.d.ts +0 -1
- package/dist/attributes/shape/effects/implementations/scatter.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/scatter.js +0 -1
- package/dist/attributes/shape/effects/implementations/scatter.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/shader.d.ts +10 -53
- package/dist/attributes/shape/effects/implementations/shader.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/shader.js +2 -9
- package/dist/attributes/shape/effects/implementations/shader.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/sharpen.d.ts +1 -12
- package/dist/attributes/shape/effects/implementations/sharpen.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/sharpen.js +0 -1
- package/dist/attributes/shape/effects/implementations/sharpen.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/streak.d.ts +1 -8
- package/dist/attributes/shape/effects/implementations/streak.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/streak.js +0 -1
- package/dist/attributes/shape/effects/implementations/streak.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/threshold.d.ts +1 -9
- package/dist/attributes/shape/effects/implementations/threshold.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/threshold.js +0 -1
- package/dist/attributes/shape/effects/implementations/threshold.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/twirl.d.ts +1 -13
- package/dist/attributes/shape/effects/implementations/twirl.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/twirl.js +0 -1
- package/dist/attributes/shape/effects/implementations/twirl.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/vignette.d.ts +1 -9
- package/dist/attributes/shape/effects/implementations/vignette.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/vignette.js +0 -1
- package/dist/attributes/shape/effects/implementations/vignette.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/vintage.d.ts +0 -1
- package/dist/attributes/shape/effects/implementations/vintage.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/vintage.js +0 -1
- package/dist/attributes/shape/effects/implementations/vintage.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/wave.d.ts +3 -24
- package/dist/attributes/shape/effects/implementations/wave.d.ts.map +1 -1
- package/dist/attributes/shape/effects/implementations/wave.js +1 -5
- package/dist/attributes/shape/effects/implementations/wave.js.map +1 -1
- package/dist/attributes/shape/effects/registry.d.ts +6 -41
- package/dist/attributes/shape/effects/registry.d.ts.map +1 -1
- package/dist/attributes/shape/effects/registry.js +7 -45
- package/dist/attributes/shape/effects/registry.js.map +1 -1
- package/dist/attributes/shape/effects/spec.d.ts +6 -30
- package/dist/attributes/shape/effects/spec.d.ts.map +1 -1
- package/dist/attributes/shape/effects/spec.js +3 -9
- package/dist/attributes/shape/effects/spec.js.map +1 -1
- package/dist/attributes/shape/fill/blend.d.ts +1 -17
- package/dist/attributes/shape/fill/blend.d.ts.map +1 -1
- package/dist/attributes/shape/fill/blend.js +2 -15
- package/dist/attributes/shape/fill/blend.js.map +1 -1
- package/dist/attributes/shape/fill/chain.d.ts +17 -125
- package/dist/attributes/shape/fill/chain.d.ts.map +1 -1
- package/dist/attributes/shape/fill/chain.js +22 -109
- package/dist/attributes/shape/fill/chain.js.map +1 -1
- package/dist/attributes/shape/fill/coerce.d.ts +10 -35
- package/dist/attributes/shape/fill/coerce.d.ts.map +1 -1
- package/dist/attributes/shape/fill/coerce.js +12 -47
- package/dist/attributes/shape/fill/coerce.js.map +1 -1
- package/dist/attributes/shape/fill/color/parser.d.ts +10 -44
- package/dist/attributes/shape/fill/color/parser.d.ts.map +1 -1
- package/dist/attributes/shape/fill/color/parser.js +15 -91
- package/dist/attributes/shape/fill/color/parser.js.map +1 -1
- package/dist/attributes/shape/fill/gradient-stops.d.ts +1 -8
- package/dist/attributes/shape/fill/gradient-stops.d.ts.map +1 -1
- package/dist/attributes/shape/fill/gradient-stops.js +2 -13
- package/dist/attributes/shape/fill/gradient-stops.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/canvas3d.d.ts +2 -24
- package/dist/attributes/shape/fill/implementations/canvas3d.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/canvas3d.js +2 -9
- package/dist/attributes/shape/fill/implementations/canvas3d.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/dot-grid.d.ts +1 -14
- package/dist/attributes/shape/fill/implementations/dot-grid.d.ts.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 +5 -28
- package/dist/attributes/shape/fill/implementations/fractal-noise.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/fractal-noise.js +0 -1
- package/dist/attributes/shape/fill/implementations/fractal-noise.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/grid.d.ts +8 -21
- package/dist/attributes/shape/fill/implementations/grid.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/grid.js +2 -8
- package/dist/attributes/shape/fill/implementations/grid.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/image.d.ts +13 -79
- package/dist/attributes/shape/fill/implementations/image.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/image.js +6 -23
- package/dist/attributes/shape/fill/implementations/image.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/noise.d.ts +2 -15
- package/dist/attributes/shape/fill/implementations/noise.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/noise.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/shader.d.ts +11 -45
- package/dist/attributes/shape/fill/implementations/shader.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/shader.js +5 -17
- package/dist/attributes/shape/fill/implementations/shader.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/video.d.ts +12 -64
- package/dist/attributes/shape/fill/implementations/video.d.ts.map +1 -1
- package/dist/attributes/shape/fill/implementations/video.js +12 -50
- package/dist/attributes/shape/fill/implementations/video.js.map +1 -1
- package/dist/attributes/shape/fill/lerp.d.ts +2 -13
- package/dist/attributes/shape/fill/lerp.d.ts.map +1 -1
- package/dist/attributes/shape/fill/lerp.js +2 -9
- package/dist/attributes/shape/fill/lerp.js.map +1 -1
- package/dist/attributes/shape/fill/media-preset.d.ts +8 -49
- package/dist/attributes/shape/fill/media-preset.d.ts.map +1 -1
- package/dist/attributes/shape/fill/media-preset.js +8 -35
- package/dist/attributes/shape/fill/media-preset.js.map +1 -1
- package/dist/attributes/shape/fill/registry.d.ts +2 -26
- package/dist/attributes/shape/fill/registry.d.ts.map +1 -1
- package/dist/attributes/shape/fill/registry.js +5 -40
- package/dist/attributes/shape/fill/registry.js.map +1 -1
- package/dist/attributes/shape/fill/union.d.ts +6 -30
- package/dist/attributes/shape/fill/union.d.ts.map +1 -1
- package/dist/attributes/shape/fill/union.js +1 -9
- package/dist/attributes/shape/fill/union.js.map +1 -1
- package/dist/attributes/shape/filters/chain.d.ts +15 -168
- package/dist/attributes/shape/filters/chain.d.ts.map +1 -1
- package/dist/attributes/shape/filters/chain.js +8 -132
- package/dist/attributes/shape/filters/chain.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/color-matrix.d.ts +1 -7
- package/dist/attributes/shape/filters/implementations/color-matrix.d.ts.map +1 -1
- package/dist/attributes/shape/filters/implementations/color-matrix.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/curves.d.ts +1 -7
- package/dist/attributes/shape/filters/implementations/curves.d.ts.map +1 -1
- package/dist/attributes/shape/filters/implementations/curves.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/echo.d.ts +1 -11
- package/dist/attributes/shape/filters/implementations/echo.d.ts.map +1 -1
- package/dist/attributes/shape/filters/implementations/echo.js.map +1 -1
- package/dist/attributes/shape/filters/index.d.ts +1 -6
- package/dist/attributes/shape/filters/index.d.ts.map +1 -1
- package/dist/attributes/shape/filters/index.js +0 -2
- package/dist/attributes/shape/filters/index.js.map +1 -1
- package/dist/attributes/shape/filters/registry.d.ts +5 -35
- package/dist/attributes/shape/filters/registry.d.ts.map +1 -1
- package/dist/attributes/shape/filters/registry.js +7 -50
- package/dist/attributes/shape/filters/registry.js.map +1 -1
- package/dist/attributes/shape/filters/union.d.ts +10 -51
- 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 +18 -106
- package/dist/attributes/shape/path/anchors.d.ts.map +1 -1
- package/dist/attributes/shape/path/anchors.js +15 -124
- package/dist/attributes/shape/path/anchors.js.map +1 -1
- package/dist/attributes/shape/path/bezier.d.ts +6 -54
- package/dist/attributes/shape/path/bezier.d.ts.map +1 -1
- package/dist/attributes/shape/path/bezier.js +10 -98
- package/dist/attributes/shape/path/bezier.js.map +1 -1
- package/dist/attributes/shape/path/index.d.ts +1 -11
- package/dist/attributes/shape/path/index.d.ts.map +1 -1
- package/dist/attributes/shape/path/index.js +1 -11
- package/dist/attributes/shape/path/index.js.map +1 -1
- package/dist/attributes/shape/path/measure.d.ts +5 -41
- package/dist/attributes/shape/path/measure.d.ts.map +1 -1
- package/dist/attributes/shape/path/measure.js +8 -57
- package/dist/attributes/shape/path/measure.js.map +1 -1
- package/dist/attributes/shape/path/morph.d.ts +4 -41
- package/dist/attributes/shape/path/morph.d.ts.map +1 -1
- package/dist/attributes/shape/path/morph.js +17 -117
- package/dist/attributes/shape/path/morph.js.map +1 -1
- package/dist/attributes/shape/path/ops.d.ts +5 -19
- package/dist/attributes/shape/path/ops.d.ts.map +1 -1
- package/dist/attributes/shape/path/ops.js.map +1 -1
- package/dist/attributes/shape/path/types.d.ts +10 -67
- package/dist/attributes/shape/path/types.d.ts.map +1 -1
- package/dist/attributes/shape/path/types.js +0 -1
- package/dist/attributes/shape/path/types.js.map +1 -1
- package/dist/attributes/shape/path/walk.d.ts +9 -63
- package/dist/attributes/shape/path/walk.d.ts.map +1 -1
- package/dist/attributes/shape/path/walk.js +21 -100
- package/dist/attributes/shape/path/walk.js.map +1 -1
- package/dist/attributes/shape/shaders/language.d.ts +2 -14
- package/dist/attributes/shape/shaders/language.d.ts.map +1 -1
- package/dist/attributes/shape/shaders/language.js +1 -8
- package/dist/attributes/shape/shaders/language.js.map +1 -1
- package/dist/attributes/shape/shaders/pack.d.ts +13 -78
- package/dist/attributes/shape/shaders/pack.d.ts.map +1 -1
- package/dist/attributes/shape/shaders/pack.js +1 -10
- package/dist/attributes/shape/shaders/pack.js.map +1 -1
- package/dist/attributes/shape/shaders/resolve.d.ts +1 -11
- package/dist/attributes/shape/shaders/resolve.d.ts.map +1 -1
- package/dist/attributes/shape/shaders/resolve.js +3 -28
- package/dist/attributes/shape/shaders/resolve.js.map +1 -1
- package/dist/attributes/shape/shaders/uniforms.d.ts +3 -24
- package/dist/attributes/shape/shaders/uniforms.d.ts.map +1 -1
- package/dist/attributes/shape/shaders/uniforms.js +0 -0
- package/dist/attributes/shape/shaders/uniforms.js.map +1 -1
- package/dist/attributes/shape/shadow/shadow.d.ts +3 -20
- package/dist/attributes/shape/shadow/shadow.d.ts.map +1 -1
- package/dist/attributes/shape/shadow/shadow.js +0 -3
- package/dist/attributes/shape/shadow/shadow.js.map +1 -1
- package/dist/attributes/shape/stroke/stroke.d.ts +9 -58
- package/dist/attributes/shape/stroke/stroke.d.ts.map +1 -1
- package/dist/attributes/shape/stroke/stroke.js +0 -6
- package/dist/attributes/shape/stroke/stroke.js.map +1 -1
- package/dist/attributes/shared/operators.d.ts +1 -8
- package/dist/attributes/shared/operators.d.ts.map +1 -1
- package/dist/attributes/shared/operators.js.map +1 -1
- package/dist/attributes/text/index.d.ts +1 -11
- package/dist/attributes/text/index.d.ts.map +1 -1
- package/dist/attributes/text/index.js +1 -11
- package/dist/attributes/text/index.js.map +1 -1
- package/dist/attributes/text/ops.d.ts +4 -30
- package/dist/attributes/text/ops.d.ts.map +1 -1
- package/dist/attributes/text/ops.js +7 -23
- package/dist/attributes/text/ops.js.map +1 -1
- package/dist/attributes/text/types.d.ts +5 -28
- package/dist/attributes/text/types.d.ts.map +1 -1
- package/dist/attributes/text/types.js.map +1 -1
- package/dist/browser/chunks/chunk-5GLXFSCC.js +13 -0
- package/dist/browser/chunks/chunk-5GLXFSCC.js.map +7 -0
- package/dist/browser/chunks/{chunk-CCGVIR4F.js → chunk-5TDMGUXQ.js} +3 -3
- package/dist/browser/chunks/chunk-5TDMGUXQ.js.map +7 -0
- package/dist/browser/chunks/{chunk-4BDLFEOC.js → chunk-GEJEQQER.js} +1 -1
- package/dist/browser/chunks/chunk-GEJEQQER.js.map +7 -0
- package/dist/browser/chunks/chunk-MNMIIGNE.js +6 -0
- package/dist/browser/chunks/chunk-MNMIIGNE.js.map +7 -0
- package/dist/browser/component.js +1 -1
- package/dist/browser/experimental.js +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +4 -4
- package/dist/browser/manifest.json +1 -1
- package/dist/browser/sdk.js +1 -1
- package/dist/component.d.ts +3 -10
- package/dist/component.d.ts.map +1 -1
- package/dist/component.js +3 -10
- package/dist/component.js.map +1 -1
- package/dist/components/builtins/geometry/geometry.d.ts +15 -62
- package/dist/components/builtins/geometry/geometry.d.ts.map +1 -1
- package/dist/components/builtins/geometry/geometry.js.map +1 -1
- package/dist/components/builtins/geometry/shape-outline.d.ts +12 -61
- package/dist/components/builtins/geometry/shape-outline.d.ts.map +1 -1
- package/dist/components/builtins/geometry/shape-outline.js +29 -168
- package/dist/components/builtins/geometry/shape-outline.js.map +1 -1
- package/dist/components/builtins/layout/layout.d.ts +1 -14
- package/dist/components/builtins/layout/layout.d.ts.map +1 -1
- package/dist/components/builtins/layout/layout.js.map +1 -1
- package/dist/components/builtins/media/media.d.ts +11 -51
- package/dist/components/builtins/media/media.d.ts.map +1 -1
- package/dist/components/builtins/media/media.js +3 -7
- package/dist/components/builtins/media/media.js.map +1 -1
- package/dist/components/builtins/text/number-format.d.ts +14 -47
- package/dist/components/builtins/text/number-format.d.ts.map +1 -1
- package/dist/components/builtins/text/number-format.js +19 -69
- package/dist/components/builtins/text/number-format.js.map +1 -1
- package/dist/components/builtins/text/number-pattern.d.ts +3 -37
- package/dist/components/builtins/text/number-pattern.d.ts.map +1 -1
- package/dist/components/builtins/text/number-pattern.js +6 -48
- package/dist/components/builtins/text/number-pattern.js.map +1 -1
- package/dist/components/builtins/text/text-defaults.d.ts +7 -25
- package/dist/components/builtins/text/text-defaults.d.ts.map +1 -1
- package/dist/components/builtins/text/text-defaults.js +7 -25
- package/dist/components/builtins/text/text-defaults.js.map +1 -1
- package/dist/components/builtins/text/text-layout.d.ts +2 -11
- package/dist/components/builtins/text/text-layout.d.ts.map +1 -1
- package/dist/components/builtins/text/text-layout.js +7 -22
- package/dist/components/builtins/text/text-layout.js.map +1 -1
- package/dist/components/builtins/text/text.d.ts +8 -46
- package/dist/components/builtins/text/text.d.ts.map +1 -1
- package/dist/components/builtins/text/text.js.map +1 -1
- package/dist/components/builtins/three/canvas3d.d.ts +6 -51
- package/dist/components/builtins/three/canvas3d.d.ts.map +1 -1
- package/dist/components/builtins/three/canvas3d.js.map +1 -1
- package/dist/components/builtins/three/grid-geometry3d.d.ts +3 -39
- package/dist/components/builtins/three/grid-geometry3d.d.ts.map +1 -1
- package/dist/components/builtins/three/grid-geometry3d.js +8 -46
- package/dist/components/builtins/three/grid-geometry3d.js.map +1 -1
- package/dist/components/builtins/three/three.d.ts +22 -117
- package/dist/components/builtins/three/three.d.ts.map +1 -1
- package/dist/components/builtins/three/three.js +5 -17
- package/dist/components/builtins/three/three.js.map +1 -1
- package/dist/components/factory/api.d.ts.map +1 -1
- package/dist/components/factory/api.js.map +1 -1
- package/dist/components/factory/style.d.ts +38 -0
- package/dist/components/factory/style.d.ts.map +1 -0
- package/dist/components/factory/style.js +104 -0
- package/dist/components/factory/style.js.map +1 -0
- package/dist/components/factory/types.d.ts +9 -0
- package/dist/components/factory/types.d.ts.map +1 -1
- package/dist/components/factory/types.js +11 -0
- package/dist/components/factory/types.js.map +1 -1
- package/dist/components/factory/views.d.ts.map +1 -1
- package/dist/components/factory/views.js +0 -2
- package/dist/components/factory/views.js.map +1 -1
- package/dist/components/trees/2d/group-bounds.d.ts +12 -41
- package/dist/components/trees/2d/group-bounds.d.ts.map +1 -1
- package/dist/components/trees/2d/group-bounds.js +3 -22
- package/dist/components/trees/2d/group-bounds.js.map +1 -1
- package/dist/components/trees/2d/node-lifecycle.d.ts +8 -36
- package/dist/components/trees/2d/node-lifecycle.d.ts.map +1 -1
- package/dist/components/trees/2d/node-lifecycle.js +35 -127
- package/dist/components/trees/2d/node-lifecycle.js.map +1 -1
- package/dist/components/trees/2d/node-motion.d.ts +4 -36
- package/dist/components/trees/2d/node-motion.d.ts.map +1 -1
- package/dist/components/trees/2d/node-motion.js +3 -31
- package/dist/components/trees/2d/node-motion.js.map +1 -1
- package/dist/components/trees/2d/node-render.d.ts +3 -20
- package/dist/components/trees/2d/node-render.d.ts.map +1 -1
- package/dist/components/trees/2d/node-render.js +4 -23
- package/dist/components/trees/2d/node-render.js.map +1 -1
- package/dist/components/trees/2d/node-space.d.ts +4 -23
- package/dist/components/trees/2d/node-space.d.ts.map +1 -1
- package/dist/components/trees/2d/node-space.js +3 -17
- package/dist/components/trees/2d/node-space.js.map +1 -1
- package/dist/components/trees/2d/node-transform.d.ts +4 -33
- package/dist/components/trees/2d/node-transform.d.ts.map +1 -1
- package/dist/components/trees/2d/node-transform.js +4 -33
- package/dist/components/trees/2d/node-transform.js.map +1 -1
- package/dist/components/trees/2d/node2d.d.ts +112 -622
- package/dist/components/trees/2d/node2d.d.ts.map +1 -1
- package/dist/components/trees/2d/node2d.js +131 -605
- package/dist/components/trees/2d/node2d.js.map +1 -1
- package/dist/components/trees/audio/node-audio.d.ts +17 -65
- package/dist/components/trees/audio/node-audio.d.ts.map +1 -1
- package/dist/components/trees/audio/node-audio.js +18 -68
- package/dist/components/trees/audio/node-audio.js.map +1 -1
- package/dist/components/trees/node/node-editor-state.d.ts +5 -45
- package/dist/components/trees/node/node-editor-state.d.ts.map +1 -1
- package/dist/components/trees/node/node-editor-state.js +1 -13
- package/dist/components/trees/node/node-editor-state.js.map +1 -1
- package/dist/components/trees/node/node-reactive.d.ts +6 -53
- package/dist/components/trees/node/node-reactive.d.ts.map +1 -1
- package/dist/components/trees/node/node-reactive.js +4 -33
- package/dist/components/trees/node/node-reactive.js.map +1 -1
- package/dist/components/trees/node/node-time.d.ts +2 -15
- package/dist/components/trees/node/node-time.d.ts.map +1 -1
- package/dist/components/trees/node/node-time.js.map +1 -1
- package/dist/components/trees/node/node-walk.d.ts +7 -32
- package/dist/components/trees/node/node-walk.d.ts.map +1 -1
- package/dist/components/trees/node/node-walk.js +7 -32
- package/dist/components/trees/node/node-walk.js.map +1 -1
- package/dist/components/trees/node/node.d.ts +43 -248
- package/dist/components/trees/node/node.d.ts.map +1 -1
- package/dist/components/trees/node/node.js +51 -229
- package/dist/components/trees/node/node.js.map +1 -1
- package/dist/components/trees/root/canvas2d-node.d.ts +7 -60
- package/dist/components/trees/root/canvas2d-node.d.ts.map +1 -1
- package/dist/components/trees/root/canvas2d-node.js +7 -47
- package/dist/components/trees/root/canvas2d-node.js.map +1 -1
- package/dist/components/trees/three/node3d.d.ts +24 -112
- package/dist/components/trees/three/node3d.d.ts.map +1 -1
- package/dist/components/trees/three/node3d.js +22 -104
- package/dist/components/trees/three/node3d.js.map +1 -1
- package/dist/document/audio.d.ts +9 -21
- package/dist/document/audio.d.ts.map +1 -1
- package/dist/document/audio.js +13 -28
- package/dist/document/audio.js.map +1 -1
- package/dist/document/builtins.d.ts +3 -9
- package/dist/document/builtins.d.ts.map +1 -1
- package/dist/document/builtins.js +43 -89
- package/dist/document/builtins.js.map +1 -1
- package/dist/document/command-traits.d.ts +14 -37
- package/dist/document/command-traits.d.ts.map +1 -1
- package/dist/document/command-traits.js +22 -39
- package/dist/document/command-traits.js.map +1 -1
- package/dist/document/deny-globals.d.ts +9 -43
- package/dist/document/deny-globals.d.ts.map +1 -1
- package/dist/document/deny-globals.js +18 -58
- package/dist/document/deny-globals.js.map +1 -1
- package/dist/document/diff.d.ts +6 -16
- package/dist/document/diff.d.ts.map +1 -1
- package/dist/document/diff.js +5 -11
- package/dist/document/diff.js.map +1 -1
- package/dist/document/doc-index.d.ts +5 -13
- package/dist/document/doc-index.d.ts.map +1 -1
- package/dist/document/doc-index.js +0 -2
- package/dist/document/doc-index.js.map +1 -1
- package/dist/document/expression/compile.d.ts +2 -2
- package/dist/document/expression/compile.d.ts.map +1 -1
- package/dist/document/expression/compile.js +8 -18
- package/dist/document/expression/compile.js.map +1 -1
- package/dist/document/expression/index.d.ts +11 -41
- package/dist/document/expression/index.d.ts.map +1 -1
- package/dist/document/expression/index.js +11 -41
- package/dist/document/expression/index.js.map +1 -1
- package/dist/document/expression/ops.d.ts +3 -12
- package/dist/document/expression/ops.d.ts.map +1 -1
- package/dist/document/expression/ops.js +4 -20
- package/dist/document/expression/ops.js.map +1 -1
- package/dist/document/expression/parse.d.ts +4 -14
- package/dist/document/expression/parse.d.ts.map +1 -1
- package/dist/document/expression/parse.js +34 -55
- package/dist/document/expression/parse.js.map +1 -1
- package/dist/document/expression/refs.d.ts +2 -8
- package/dist/document/expression/refs.d.ts.map +1 -1
- package/dist/document/expression/refs.js +2 -6
- package/dist/document/expression/refs.js.map +1 -1
- package/dist/document/expression/types.d.ts +18 -63
- package/dist/document/expression/types.d.ts.map +1 -1
- package/dist/document/expression/types.js +4 -15
- package/dist/document/expression/types.js.map +1 -1
- package/dist/document/expression/walk.d.ts +6 -20
- package/dist/document/expression/walk.d.ts.map +1 -1
- package/dist/document/expression/walk.js +18 -44
- package/dist/document/expression/walk.js.map +1 -1
- package/dist/document/index.js +2 -3
- package/dist/document/index.js.map +1 -1
- package/dist/document/migrate.d.ts +7 -22
- package/dist/document/migrate.d.ts.map +1 -1
- package/dist/document/migrate.js +44 -15
- package/dist/document/migrate.js.map +1 -1
- package/dist/document/missing-node.d.ts +4 -11
- package/dist/document/missing-node.d.ts.map +1 -1
- package/dist/document/missing-node.js +2 -5
- package/dist/document/missing-node.js.map +1 -1
- package/dist/document/node-decorator.d.ts +12 -53
- package/dist/document/node-decorator.d.ts.map +1 -1
- package/dist/document/node-decorator.js +16 -57
- package/dist/document/node-decorator.js.map +1 -1
- package/dist/document/node-descriptor.d.ts +25 -62
- 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 +18 -41
- package/dist/document/placement.d.ts.map +1 -1
- package/dist/document/placement.js +4 -11
- package/dist/document/placement.js.map +1 -1
- package/dist/document/project.d.ts +19 -52
- package/dist/document/project.d.ts.map +1 -1
- package/dist/document/project.js +2 -6
- package/dist/document/project.js.map +1 -1
- package/dist/document/prop-evolution.d.ts +10 -20
- package/dist/document/prop-evolution.d.ts.map +1 -1
- package/dist/document/prop-evolution.js +3 -7
- package/dist/document/prop-evolution.js.map +1 -1
- package/dist/document/registry.d.ts +80 -318
- package/dist/document/registry.d.ts.map +1 -1
- package/dist/document/registry.js +43 -147
- package/dist/document/registry.js.map +1 -1
- package/dist/document/settled-index.d.ts +11 -23
- package/dist/document/settled-index.d.ts.map +1 -1
- package/dist/document/settled-index.js +15 -34
- package/dist/document/settled-index.js.map +1 -1
- package/dist/document/timeline-patch.d.ts +6 -15
- package/dist/document/timeline-patch.d.ts.map +1 -1
- package/dist/document/timeline-patch.js +12 -21
- package/dist/document/timeline-patch.js.map +1 -1
- package/dist/document/timeline.d.ts +56 -263
- package/dist/document/timeline.d.ts.map +1 -1
- package/dist/document/timeline.js +71 -275
- package/dist/document/timeline.js.map +1 -1
- package/dist/document/types.d.ts +90 -264
- package/dist/document/types.d.ts.map +1 -1
- package/dist/document/types.js +13 -30
- package/dist/document/types.js.map +1 -1
- package/dist/document/validate.d.ts +10 -40
- package/dist/document/validate.d.ts.map +1 -1
- package/dist/document/validate.js +72 -137
- package/dist/document/validate.js.map +1 -1
- package/dist/document/vocabulary.d.ts +4 -7
- package/dist/document/vocabulary.d.ts.map +1 -1
- package/dist/document/vocabulary.js +0 -1
- package/dist/document/vocabulary.js.map +1 -1
- package/dist/experimental.d.ts +2 -0
- package/dist/experimental.d.ts.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/layout/bounds.d.ts +1 -11
- package/dist/layout/bounds.d.ts.map +1 -1
- package/dist/layout/bounds.js.map +1 -1
- package/dist/layout/flex.d.ts +6 -20
- package/dist/layout/flex.d.ts.map +1 -1
- package/dist/layout/flex.js +7 -28
- package/dist/layout/flex.js.map +1 -1
- package/dist/layout/ops.d.ts +2 -11
- package/dist/layout/ops.d.ts.map +1 -1
- package/dist/layout/ops.js +2 -22
- package/dist/layout/ops.js.map +1 -1
- package/dist/layout/types.d.ts +11 -55
- package/dist/layout/types.d.ts.map +1 -1
- package/dist/layout/types.js.map +1 -1
- package/dist/platform/audio-sink.d.ts +7 -43
- package/dist/platform/audio-sink.d.ts.map +1 -1
- package/dist/platform/audio-sink.js +4 -29
- package/dist/platform/audio-sink.js.map +1 -1
- package/dist/platform/exporter.d.ts +5 -31
- package/dist/platform/exporter.d.ts.map +1 -1
- package/dist/platform/exporter.js.map +1 -1
- package/dist/platform/stepped-clock.d.ts +1 -16
- package/dist/platform/stepped-clock.d.ts.map +1 -1
- package/dist/platform/stepped-clock.js +1 -16
- package/dist/platform/stepped-clock.js.map +1 -1
- package/dist/platform/storage-adapter.d.ts +8 -68
- package/dist/platform/storage-adapter.d.ts.map +1 -1
- package/dist/platform/storage-adapter.js +8 -60
- package/dist/platform/storage-adapter.js.map +1 -1
- package/dist/platform/ticker.d.ts +11 -45
- package/dist/platform/ticker.d.ts.map +1 -1
- package/dist/platform/ticker.js +10 -37
- package/dist/platform/ticker.js.map +1 -1
- package/dist/project/config.d.ts +4 -14
- package/dist/project/config.d.ts.map +1 -1
- package/dist/project/config.js.map +1 -1
- package/dist/project/tree.d.ts +6 -35
- package/dist/project/tree.d.ts.map +1 -1
- package/dist/project/tree.js +1 -8
- package/dist/project/tree.js.map +1 -1
- package/dist/props/host.d.ts +2 -13
- package/dist/props/host.d.ts.map +1 -1
- package/dist/props/host.js.map +1 -1
- package/dist/props/layout.d.ts +1 -12
- package/dist/props/layout.d.ts.map +1 -1
- package/dist/props/layout.js +1 -12
- package/dist/props/layout.js.map +1 -1
- package/dist/props/observer.d.ts +1 -7
- package/dist/props/observer.d.ts.map +1 -1
- package/dist/props/observer.js.map +1 -1
- package/dist/props/slot.d.ts +6 -19
- package/dist/props/slot.d.ts.map +1 -1
- package/dist/props/slot.js +5 -14
- package/dist/props/slot.js.map +1 -1
- package/dist/render/canvas-render-context2d.d.ts +8 -68
- package/dist/render/canvas-render-context2d.d.ts.map +1 -1
- package/dist/render/canvas-render-context2d.js +8 -69
- package/dist/render/canvas-render-context2d.js.map +1 -1
- package/dist/render/clip-contains.d.ts +2 -16
- package/dist/render/clip-contains.d.ts.map +1 -1
- package/dist/render/clip-contains.js +21 -82
- package/dist/render/clip-contains.js.map +1 -1
- package/dist/render/clip.d.ts +7 -25
- package/dist/render/clip.d.ts.map +1 -1
- package/dist/render/clip.js +5 -17
- package/dist/render/clip.js.map +1 -1
- package/dist/render/descriptors/ellipse.d.ts.map +1 -1
- package/dist/render/descriptors/ellipse.js +0 -1
- package/dist/render/descriptors/ellipse.js.map +1 -1
- package/dist/render/descriptors/line.d.ts.map +1 -1
- package/dist/render/descriptors/line.js +0 -1
- package/dist/render/descriptors/line.js.map +1 -1
- package/dist/render/descriptors/path-builder.d.ts +4 -32
- package/dist/render/descriptors/path-builder.d.ts.map +1 -1
- package/dist/render/descriptors/path-builder.js +3 -25
- package/dist/render/descriptors/path-builder.js.map +1 -1
- package/dist/render/descriptors/path.d.ts +1 -11
- package/dist/render/descriptors/path.d.ts.map +1 -1
- package/dist/render/descriptors/path.js +0 -1
- package/dist/render/descriptors/path.js.map +1 -1
- package/dist/render/descriptors/polygon.d.ts.map +1 -1
- package/dist/render/descriptors/polygon.js +0 -1
- package/dist/render/descriptors/polygon.js.map +1 -1
- package/dist/render/descriptors/polygram.d.ts.map +1 -1
- package/dist/render/descriptors/polygram.js +0 -1
- package/dist/render/descriptors/polygram.js.map +1 -1
- package/dist/render/descriptors/rect.d.ts.map +1 -1
- package/dist/render/descriptors/rect.js +0 -1
- package/dist/render/descriptors/rect.js.map +1 -1
- package/dist/render/descriptors/richtext.d.ts.map +1 -1
- package/dist/render/descriptors/richtext.js +0 -1
- package/dist/render/descriptors/richtext.js.map +1 -1
- package/dist/render/descriptors/shape.d.ts +17 -77
- package/dist/render/descriptors/shape.d.ts.map +1 -1
- package/dist/render/descriptors/shape.js +13 -47
- package/dist/render/descriptors/shape.js.map +1 -1
- package/dist/render/descriptors/text.d.ts +15 -94
- package/dist/render/descriptors/text.d.ts.map +1 -1
- package/dist/render/descriptors/text.js +8 -50
- package/dist/render/descriptors/text.js.map +1 -1
- package/dist/render/descriptors/transform.d.ts +5 -16
- package/dist/render/descriptors/transform.d.ts.map +1 -1
- package/dist/render/descriptors/transform.js +1 -17
- package/dist/render/descriptors/transform.js.map +1 -1
- package/dist/render/graphics2d.d.ts +24 -116
- package/dist/render/graphics2d.d.ts.map +1 -1
- package/dist/render/graphics2d.js +23 -108
- package/dist/render/graphics2d.js.map +1 -1
- package/dist/render/measure-context.d.ts +5 -29
- package/dist/render/measure-context.d.ts.map +1 -1
- package/dist/render/measure-context.js.map +1 -1
- package/dist/render/null-render-context.d.ts +2 -20
- package/dist/render/null-render-context.d.ts.map +1 -1
- package/dist/render/null-render-context.js +2 -20
- package/dist/render/null-render-context.js.map +1 -1
- package/dist/render/render-context2d.d.ts +52 -208
- package/dist/render/render-context2d.d.ts.map +1 -1
- package/dist/render/render-context2d.js.map +1 -1
- package/dist/render/surface.d.ts +2 -19
- package/dist/render/surface.d.ts.map +1 -1
- package/dist/render/surface.js.map +1 -1
- package/dist/render/text-defaults.d.ts +1 -17
- package/dist/render/text-defaults.d.ts.map +1 -1
- package/dist/render/text-defaults.js +6 -40
- package/dist/render/text-defaults.js.map +1 -1
- package/dist/render/text-layout.d.ts +12 -55
- package/dist/render/text-layout.d.ts.map +1 -1
- package/dist/render/text-layout.js +2 -16
- package/dist/render/text-layout.js.map +1 -1
- package/dist/render3d/bounds3d.d.ts +10 -32
- package/dist/render3d/bounds3d.d.ts.map +1 -1
- package/dist/render3d/bounds3d.js +2 -12
- package/dist/render3d/bounds3d.js.map +1 -1
- package/dist/render3d/builders.d.ts +8 -35
- package/dist/render3d/builders.d.ts.map +1 -1
- package/dist/render3d/builders.js +8 -35
- package/dist/render3d/builders.js.map +1 -1
- package/dist/render3d/camera.d.ts +10 -57
- package/dist/render3d/camera.d.ts.map +1 -1
- package/dist/render3d/camera.js +4 -26
- package/dist/render3d/camera.js.map +1 -1
- package/dist/render3d/fill3d.d.ts +7 -45
- package/dist/render3d/fill3d.d.ts.map +1 -1
- package/dist/render3d/fill3d.js +15 -85
- package/dist/render3d/fill3d.js.map +1 -1
- package/dist/render3d/geometry.d.ts +18 -106
- package/dist/render3d/geometry.d.ts.map +1 -1
- package/dist/render3d/geometry.js +2 -20
- package/dist/render3d/geometry.js.map +1 -1
- package/dist/render3d/graphics3d.d.ts +29 -133
- package/dist/render3d/graphics3d.d.ts.map +1 -1
- package/dist/render3d/graphics3d.js +23 -110
- package/dist/render3d/graphics3d.js.map +1 -1
- package/dist/render3d/index.d.ts +1 -16
- package/dist/render3d/index.d.ts.map +1 -1
- package/dist/render3d/index.js +1 -16
- package/dist/render3d/index.js.map +1 -1
- package/dist/render3d/inert.d.ts.map +1 -1
- package/dist/render3d/inert.js +1 -14
- package/dist/render3d/inert.js.map +1 -1
- package/dist/render3d/light.d.ts +3 -26
- package/dist/render3d/light.d.ts.map +1 -1
- package/dist/render3d/light.js.map +1 -1
- package/dist/render3d/material.d.ts +13 -87
- package/dist/render3d/material.d.ts.map +1 -1
- package/dist/render3d/material.js +2 -16
- package/dist/render3d/material.js.map +1 -1
- package/dist/render3d/matrix4.d.ts +14 -68
- package/dist/render3d/matrix4.d.ts.map +1 -1
- package/dist/render3d/matrix4.js +11 -60
- package/dist/render3d/matrix4.js.map +1 -1
- package/dist/render3d/render-context3d.d.ts +13 -51
- package/dist/render3d/render-context3d.d.ts.map +1 -1
- package/dist/render3d/render-context3d.js +9 -21
- package/dist/render3d/render-context3d.js.map +1 -1
- package/dist/render3d/resources.d.ts +9 -53
- package/dist/render3d/resources.d.ts.map +1 -1
- package/dist/render3d/resources.js +8 -48
- package/dist/render3d/resources.js.map +1 -1
- package/dist/render3d/rounded-box.d.ts +7 -21
- package/dist/render3d/rounded-box.d.ts.map +1 -1
- package/dist/render3d/rounded-box.js +7 -46
- package/dist/render3d/rounded-box.js.map +1 -1
- package/dist/render3d/scene-settings.d.ts +20 -78
- 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 -53
- package/dist/render3d/scene3d.d.ts.map +1 -1
- package/dist/render3d/scene3d.js +12 -59
- package/dist/render3d/scene3d.js.map +1 -1
- package/dist/render3d/segments.d.ts +2 -25
- package/dist/render3d/segments.d.ts.map +1 -1
- package/dist/render3d/segments.js +1 -11
- package/dist/render3d/segments.js.map +1 -1
- package/dist/render3d/texture.d.ts +25 -112
- package/dist/render3d/texture.d.ts.map +1 -1
- package/dist/render3d/texture.js +3 -27
- package/dist/render3d/texture.js.map +1 -1
- package/dist/render3d/tracking.d.ts +2 -19
- package/dist/render3d/tracking.d.ts.map +1 -1
- package/dist/render3d/tracking.js +2 -19
- package/dist/render3d/tracking.js.map +1 -1
- package/dist/render3d/transform.d.ts +14 -60
- package/dist/render3d/transform.d.ts.map +1 -1
- package/dist/render3d/transform.js +0 -2
- package/dist/render3d/transform.js.map +1 -1
- package/dist/render3d/vector3.d.ts +6 -48
- package/dist/render3d/vector3.d.ts.map +1 -1
- package/dist/render3d/vector3.js +4 -38
- package/dist/render3d/vector3.js.map +1 -1
- package/dist/render3d/walk.d.ts +3 -27
- package/dist/render3d/walk.d.ts.map +1 -1
- package/dist/render3d/walk.js +5 -33
- package/dist/render3d/walk.js.map +1 -1
- package/dist/runtime/asset-refine.d.ts +34 -20
- package/dist/runtime/asset-refine.d.ts.map +1 -1
- package/dist/runtime/asset-refine.js +127 -31
- package/dist/runtime/asset-refine.js.map +1 -1
- package/dist/runtime/asset-timeline.d.ts +14 -53
- package/dist/runtime/asset-timeline.d.ts.map +1 -1
- package/dist/runtime/asset-timeline.js +6 -27
- package/dist/runtime/asset-timeline.js.map +1 -1
- package/dist/runtime/asset-update.d.ts +7 -26
- package/dist/runtime/asset-update.d.ts.map +1 -1
- package/dist/runtime/asset-update.js +6 -18
- package/dist/runtime/asset-update.js.map +1 -1
- package/dist/runtime/audio-index.d.ts +0 -2
- package/dist/runtime/audio-index.d.ts.map +1 -1
- package/dist/runtime/audio-index.js +0 -2
- package/dist/runtime/audio-index.js.map +1 -1
- package/dist/runtime/builtin-context.d.ts +3 -9
- package/dist/runtime/builtin-context.d.ts.map +1 -1
- package/dist/runtime/builtin-context.js +3 -9
- package/dist/runtime/builtin-context.js.map +1 -1
- package/dist/runtime/clip-instance.d.ts +12 -39
- package/dist/runtime/clip-instance.d.ts.map +1 -1
- package/dist/runtime/clip-instance.js +21 -45
- package/dist/runtime/clip-instance.js.map +1 -1
- package/dist/runtime/clip-store.d.ts +26 -68
- package/dist/runtime/clip-store.d.ts.map +1 -1
- package/dist/runtime/clip-store.js +47 -81
- package/dist/runtime/clip-store.js.map +1 -1
- package/dist/runtime/engine.d.ts +31 -85
- package/dist/runtime/engine.d.ts.map +1 -1
- package/dist/runtime/engine.js +16 -49
- package/dist/runtime/engine.js.map +1 -1
- package/dist/runtime/frame-time.d.ts +4 -15
- package/dist/runtime/frame-time.d.ts.map +1 -1
- package/dist/runtime/frame-time.js +5 -12
- package/dist/runtime/frame-time.js.map +1 -1
- package/dist/runtime/index.d.ts +0 -1
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +0 -1
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/node-picking.d.ts +59 -139
- package/dist/runtime/node-picking.d.ts.map +1 -1
- package/dist/runtime/node-picking.js +87 -157
- package/dist/runtime/node-picking.js.map +1 -1
- package/dist/runtime/node-picking3d.d.ts +39 -96
- package/dist/runtime/node-picking3d.d.ts.map +1 -1
- package/dist/runtime/node-picking3d.js +98 -141
- package/dist/runtime/node-picking3d.js.map +1 -1
- package/dist/runtime/placement.d.ts +8 -17
- package/dist/runtime/placement.d.ts.map +1 -1
- package/dist/runtime/placement.js +7 -16
- package/dist/runtime/placement.js.map +1 -1
- package/dist/runtime/playback-controller.d.ts +78 -207
- package/dist/runtime/playback-controller.d.ts.map +1 -1
- package/dist/runtime/playback-controller.js +111 -226
- package/dist/runtime/playback-controller.js.map +1 -1
- package/dist/runtime/playback.d.ts +6 -14
- package/dist/runtime/playback.d.ts.map +1 -1
- package/dist/runtime/playback.js +6 -14
- package/dist/runtime/playback.js.map +1 -1
- package/dist/runtime/project-assets.d.ts +6 -14
- package/dist/runtime/project-assets.d.ts.map +1 -1
- package/dist/runtime/project-assets.js +7 -16
- package/dist/runtime/project-assets.js.map +1 -1
- package/dist/runtime/session.d.ts +22 -45
- package/dist/runtime/session.d.ts.map +1 -1
- package/dist/runtime/session.js +26 -46
- package/dist/runtime/session.js.map +1 -1
- package/dist/runtime/settle.d.ts +4 -10
- package/dist/runtime/settle.d.ts.map +1 -1
- package/dist/runtime/settle.js +4 -10
- package/dist/runtime/settle.js.map +1 -1
- package/dist/runtime/state-evaluator.d.ts +15 -37
- package/dist/runtime/state-evaluator.d.ts.map +1 -1
- package/dist/runtime/state-evaluator.js +27 -44
- package/dist/runtime/state-evaluator.js.map +1 -1
- package/dist/runtime/text-geometry.d.ts +18 -47
- package/dist/runtime/text-geometry.d.ts.map +1 -1
- package/dist/runtime/text-geometry.js +13 -27
- package/dist/runtime/text-geometry.js.map +1 -1
- package/dist/sdk/index.d.ts +2 -7
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +30 -138
- package/dist/sdk/index.js.map +1 -1
- package/dist/tween/command-decorator.d.ts +6 -26
- package/dist/tween/command-decorator.d.ts.map +1 -1
- package/dist/tween/command-decorator.js +1 -6
- package/dist/tween/command-decorator.js.map +1 -1
- package/dist/tween/command.d.ts +6 -53
- package/dist/tween/command.d.ts.map +1 -1
- package/dist/tween/command.js +5 -40
- package/dist/tween/command.js.map +1 -1
- package/dist/tween/ease/curve.d.ts +2 -17
- package/dist/tween/ease/curve.d.ts.map +1 -1
- package/dist/tween/ease/curve.js +1 -6
- package/dist/tween/ease/curve.js.map +1 -1
- package/dist/tween/ease/describe.d.ts +0 -11
- package/dist/tween/ease/describe.d.ts.map +1 -1
- package/dist/tween/ease/describe.js +0 -23
- package/dist/tween/ease/describe.js.map +1 -1
- package/dist/tween/ease/spec.d.ts +2 -18
- package/dist/tween/ease/spec.d.ts.map +1 -1
- package/dist/tween/ease/spec.js.map +1 -1
- package/dist/tween/inert.d.ts +1 -14
- package/dist/tween/inert.d.ts.map +1 -1
- package/dist/tween/inert.js +1 -14
- package/dist/tween/inert.js.map +1 -1
- package/dist/tween/lerp.d.ts +2 -26
- package/dist/tween/lerp.d.ts.map +1 -1
- package/dist/tween/lerp.js +2 -26
- package/dist/tween/lerp.js.map +1 -1
- package/dist/tween/loop.d.ts +9 -50
- package/dist/tween/loop.d.ts.map +1 -1
- package/dist/tween/loop.js +6 -31
- package/dist/tween/loop.js.map +1 -1
- package/dist/tween/prepare.d.ts +2 -30
- package/dist/tween/prepare.d.ts.map +1 -1
- package/dist/tween/prepare.js +2 -30
- package/dist/tween/prepare.js.map +1 -1
- package/dist/tween/stepper.d.ts +4 -25
- package/dist/tween/stepper.d.ts.map +1 -1
- package/dist/tween/stepper.js.map +1 -1
- package/dist/tween/to-command.d.ts +1 -8
- package/dist/tween/to-command.d.ts.map +1 -1
- package/dist/tween/to-command.js +2 -25
- package/dist/tween/to-command.js.map +1 -1
- package/dist/util/context.d.ts +4 -29
- package/dist/util/context.d.ts.map +1 -1
- package/dist/util/context.js +3 -15
- package/dist/util/context.js.map +1 -1
- package/dist/util/csv.d.ts +4 -29
- package/dist/util/csv.d.ts.map +1 -1
- package/dist/util/csv.js +3 -22
- package/dist/util/csv.js.map +1 -1
- package/dist/util/metrics.d.ts +2 -26
- package/dist/util/metrics.d.ts.map +1 -1
- package/dist/util/metrics.js +2 -26
- package/dist/util/metrics.js.map +1 -1
- package/dist/util/random.d.ts +20 -87
- package/dist/util/random.d.ts.map +1 -1
- package/dist/util/random.js +20 -87
- package/dist/util/random.js.map +1 -1
- package/dist/util/reference.d.ts +6 -35
- package/dist/util/reference.d.ts.map +1 -1
- package/dist/util/reference.js +1 -4
- package/dist/util/reference.js.map +1 -1
- package/dist/util/scheduler.d.ts +6 -27
- package/dist/util/scheduler.d.ts.map +1 -1
- package/dist/util/scheduler.js +8 -35
- package/dist/util/scheduler.js.map +1 -1
- package/package.json +1 -1
- package/dist/browser/chunks/chunk-4BDLFEOC.js.map +0 -7
- package/dist/browser/chunks/chunk-CCGVIR4F.js.map +0 -7
- package/dist/browser/chunks/chunk-N4WSN5WY.js +0 -13
- package/dist/browser/chunks/chunk-N4WSN5WY.js.map +0 -7
- package/dist/browser/chunks/chunk-WZSI3GSK.js +0 -6
- package/dist/browser/chunks/chunk-WZSI3GSK.js.map +0 -7
- package/dist/renamed-scene-names.d.ts +0 -17
- package/dist/renamed-scene-names.d.ts.map +0 -1
- package/dist/renamed-scene-names.js +0 -9
- package/dist/renamed-scene-names.js.map +0 -1
- package/dist/runtime/precompisition.d.ts +0 -24
- package/dist/runtime/precompisition.d.ts.map +0 -1
- package/dist/runtime/precompisition.js +0 -7
- package/dist/runtime/precompisition.js.map +0 -1
|
@@ -23,16 +23,10 @@ import { Insets, InsetsResolved } from "../../../attributes/layout/insets.js";
|
|
|
23
23
|
import { MeasureContext2D } from "../../../render/measure-context.js";
|
|
24
24
|
import type { FlowSettings } from "../../../layout/types.js";
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* them, keep working relative to the slot.
|
|
31
|
-
*
|
|
32
|
-
* Answered by the parent ({@link Node2D._placementOf}) rather than written onto
|
|
33
|
-
* the child, so a child moved to another parent cannot carry a stale slot, and
|
|
34
|
-
* read by the renderer, picking and `global` alike, so a selection box lands on
|
|
35
|
-
* the pixels.
|
|
26
|
+
* A slot's turn, size, tilt, depth and fade in a parent's arrangement (a ring of cards, tiles on a
|
|
27
|
+
* sphere). Applied about the box centre and before the child's own transform, so the child's
|
|
28
|
+
* `x`/`y`/`rotation`/`scale` and their commands stay relative to the slot. Answered by the parent
|
|
29
|
+
* ({@link Node2D._placementOf}) rather than stored on the child, so a reparented child can't carry a stale slot.
|
|
36
30
|
*/
|
|
37
31
|
export interface ChildPlacement {
|
|
38
32
|
/** In-plane turn, degrees clockwise. */
|
|
@@ -47,23 +41,17 @@ export interface ChildPlacement {
|
|
|
47
41
|
readonly opacity: number;
|
|
48
42
|
}
|
|
49
43
|
/**
|
|
50
|
-
* A parent's own coordinates for where its children sit
|
|
51
|
-
*
|
|
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.
|
|
44
|
+
* A parent's own coordinates for where its children sit (graph units, say). Position only: a child
|
|
45
|
+
* keeps its size, turn and scale. Answered by the parent ({@link Node2D._planeOf}), like a slot.
|
|
56
46
|
*/
|
|
57
47
|
export interface ChildPlane {
|
|
58
48
|
/** A child's `x`/`y` as a pixel offset, y-up, from the centre of its layout box. */
|
|
59
49
|
toOffset(x: number, y: number): Vector2;
|
|
60
|
-
/** The inverse: the `x`/`y` that put a child at that offset. */
|
|
61
50
|
toCoords(x: number, y: number): Vector2;
|
|
62
51
|
}
|
|
63
52
|
/**
|
|
64
|
-
* A point
|
|
65
|
-
*
|
|
66
|
-
* the frame {@link Node2D._localBounds} is in.
|
|
53
|
+
* A point an editor can drag to set one of the node's `Vector2` props. `at` is in the node's own
|
|
54
|
+
* frame, y-up from its origin, the frame {@link Node2D._localBounds} is in.
|
|
67
55
|
*/
|
|
68
56
|
export interface NodeHandle {
|
|
69
57
|
readonly prop: string;
|
|
@@ -78,16 +66,10 @@ export { Node } from "../../../components/trees/node/node.js";
|
|
|
78
66
|
export type { NodeChildren, NodeConfig, NodeMetadata, NodeDimension, NodeProps } from "../../../components/trees/node/node.js";
|
|
79
67
|
export type { WorldTransform } from "../../../attributes/layout/world-transform.js";
|
|
80
68
|
export type { PropInput, PropInputs } from "../../../attributes/properties/inputs.js";
|
|
81
|
-
/**
|
|
82
|
-
* The camera props a node pushes around its children — the three inputs
|
|
83
|
-
* `RenderContext2D.beginCamera` takes beyond the viewport rect. See
|
|
84
|
-
* {@link Node2D._cameraScope}.
|
|
85
|
-
*/
|
|
86
69
|
/** @internal */
|
|
87
70
|
export interface CameraScope {
|
|
88
71
|
/** World point (y-up) the viewport centres on — what the camera is aimed at. */
|
|
89
72
|
lookAt: Vector2;
|
|
90
|
-
/** Uniform zoom factor. */
|
|
91
73
|
zoom: number;
|
|
92
74
|
/** Viewport rotation in degrees; the renderer applies it as `rotate(-heading)`. */
|
|
93
75
|
heading: number;
|
|
@@ -97,22 +79,9 @@ export interface Node2DProps extends NodeProps {
|
|
|
97
79
|
y: number;
|
|
98
80
|
width: SizeInput;
|
|
99
81
|
height: SizeInput;
|
|
100
|
-
/**
|
|
101
|
-
* Per-child weight for the gap this node contributes to its parent's flex
|
|
102
|
-
* run, `[0, 1]`. See the property's own note — set it to collapse a child
|
|
103
|
-
* without the surrounding gap popping.
|
|
104
|
-
*/
|
|
82
|
+
/** Weight `[0, 1]` for the gap this child contributes to its parent's flex run; collapse a child without the gap popping. */
|
|
105
83
|
gapScale: number;
|
|
106
|
-
/**
|
|
107
|
-
* Sets `width` and `height` to the same value in one go. Pure sugar: at
|
|
108
|
-
* construction time, an author-facing `size` is expanded into `width`/
|
|
109
|
-
* `height` before either is applied. Explicit `width` or `height` takes
|
|
110
|
-
* precedence over `size` (mirroring `padding`'s side-vs-shorthand rule),
|
|
111
|
-
* so `{ size: 200, width: 100 }` yields `width: 100, height: 200`.
|
|
112
|
-
* Reactive bindings and `to()`/`set()` targets both work the same as
|
|
113
|
-
* `width`/`height` — `size: 'fill'`, `size: () => ...`, or
|
|
114
|
-
* `node.to({ size: 300 }, 0.5)` are all valid.
|
|
115
|
-
*/
|
|
84
|
+
/** Sugar for `width` and `height`; an explicit `width` or `height` wins (`{ size: 200, width: 100 }` is 100 by 200). */
|
|
116
85
|
size: SizeInput;
|
|
117
86
|
scale: number;
|
|
118
87
|
rotation: number;
|
|
@@ -120,22 +89,15 @@ export interface Node2DProps extends NodeProps {
|
|
|
120
89
|
/** Layer blend mode. `'pass-through'` (default) does not isolate the node — its opacity scales each child/fill while they blend against the backdrop. Any other mode isolates the node and blends its flattened result against the backdrop. */
|
|
121
90
|
blend: NodeBlendMode;
|
|
122
91
|
effects: Effect;
|
|
123
|
-
/** Inner spacing between this node's edges and its content/children. */
|
|
124
92
|
padding: Insets;
|
|
125
93
|
/** When true, content drawn outside this node's outline is clipped away (see {@link Node2D.clipSelf}). */
|
|
126
94
|
clip: boolean;
|
|
127
95
|
/**
|
|
128
|
-
* Pivot
|
|
129
|
-
*
|
|
130
|
-
* {@link Vector2}: `(0,0)`=center, `(-1,1)`=top-left, `(1,-1)`=bottom-right. Set
|
|
131
|
-
* automatically when an alignment *positioning* prop is used.
|
|
96
|
+
* Pivot for rotation and scale: a named alignment (`'center'`, `'topRight'`, ...) or a normalised
|
|
97
|
+
* {@link Vector2} (`(0,0)` centre, `(-1,1)` top-left). Set automatically when an alignment positioning prop is used.
|
|
132
98
|
*/
|
|
133
99
|
pivot: Alignment;
|
|
134
|
-
/**
|
|
135
|
-
* Mirror the node (and its whole subtree) across its vertical centre line.
|
|
136
|
-
* The same thing CSS's `scaleX(-1)` is: text reads backwards, a left-pointing
|
|
137
|
-
* arrow points right, and nothing about the node's box or its layout moves.
|
|
138
|
-
*/
|
|
100
|
+
/** Mirror across the vertical centre line (CSS `scaleX(-1)`); the box and layout don't move. */
|
|
139
101
|
flipHorizontal: boolean;
|
|
140
102
|
/** Mirror across the horizontal centre line — CSS's `scaleY(-1)`. See {@link flipHorizontal}. */
|
|
141
103
|
flipVertical: boolean;
|
|
@@ -144,81 +106,25 @@ export interface Node2DProps extends NodeProps {
|
|
|
144
106
|
/** Tilt about the vertical axis, in **degrees**. Positive swings the right edge away from the viewer. */
|
|
145
107
|
rotationY: number;
|
|
146
108
|
/**
|
|
147
|
-
* In-plane rotation
|
|
148
|
-
* the
|
|
149
|
-
*
|
|
150
|
-
* **Not a second name for {@link rotation}.** The two are independent numbers
|
|
151
|
-
* and editing one never moves the other. What separates them is which side of
|
|
152
|
-
* the geometry/paint line they fall on: `rotation` turns the node's *shape*,
|
|
153
|
-
* so its box turns with it and everything reading that box follows, while
|
|
154
|
-
* this is part of the projection, which is paint (see `Node2D._localMatrix`).
|
|
155
|
-
* Turning a node with `rotation` turns its selection outline; turning it with
|
|
156
|
-
* `rotationZ` spins the picture inside a box that stays where it was.
|
|
157
|
-
*
|
|
158
|
-
* They compose the only way two rotations about one axis can — they add.
|
|
109
|
+
* In-plane rotation of the 3D transform, degrees clockwise. Independent of {@link rotation}, which
|
|
110
|
+
* turns the node's shape (box and selection outline); this is paint-only and spins the picture inside a
|
|
111
|
+
* box that stays put. They add.
|
|
159
112
|
*/
|
|
160
113
|
rotationZ: number;
|
|
161
|
-
/**
|
|
162
|
-
* Push along the view axis, in px — CSS's `translateZ`. Positive brings the
|
|
163
|
-
* node toward the viewer, so it projects larger.
|
|
164
|
-
*
|
|
165
|
-
* **Inert without {@link perspective}.** With no perspective the projection is
|
|
166
|
-
* parallel and z is simply dropped, exactly as in CSS: there is no viewpoint
|
|
167
|
-
* for a thing to be nearer to.
|
|
168
|
-
*/
|
|
114
|
+
/** Push along the view axis, px (CSS `translateZ`); positive is toward the viewer. Inert without {@link perspective}. */
|
|
169
115
|
depth: number;
|
|
170
116
|
/**
|
|
171
|
-
* Distance from the viewer to the
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
* Smaller is more dramatic: the node subtends more of the field of view, so
|
|
176
|
-
* the convergence is stronger. Somewhere around 800–1500 reads like a page
|
|
177
|
-
* on a desk; a few hundred reads like a wide-angle lens.
|
|
178
|
-
*
|
|
179
|
-
* Declared per node rather than inherited from an ancestor, which is where
|
|
180
|
-
* CSS puts it. A scene graph has no viewport element to hang it on, and a
|
|
181
|
-
* node that carries its own is one that can be handed around, nested and
|
|
182
|
-
* animated without its depth depending on where it was dropped.
|
|
117
|
+
* Distance from the viewer to the node's plane, px. `0` (default) is a parallel projection: a tilt
|
|
118
|
+
* squashes evenly instead of receding. Smaller is more dramatic (~800-1500 reads like a page on a desk).
|
|
119
|
+
* Per node, not inherited as in CSS: a scene graph has no viewport element, and a node carrying its own
|
|
120
|
+
* can be nested and animated without its depth depending on where it was dropped.
|
|
183
121
|
*/
|
|
184
122
|
perspective: number;
|
|
185
|
-
/**
|
|
186
|
-
* Whether the node still paints once it has turned past edge-on and is
|
|
187
|
-
* showing its back — CSS's `backface-visibility`, defaulted the CSS way
|
|
188
|
-
* (`visible`).
|
|
189
|
-
*
|
|
190
|
-
* Set it `false` for the card-flip: two nodes back to back, one at
|
|
191
|
-
* `rotationY: 0` and one at `180`, each hidden exactly while the other faces
|
|
192
|
-
* out. The test is the tilt alone (see `facesAway`) — a {@link flipHorizontal}
|
|
193
|
-
* mirrors the node without turning it around, so it does not hide it.
|
|
194
|
-
*/
|
|
123
|
+
/** Whether the node paints once turned past edge-on (CSS `backface-visibility`, default visible); `false` gives the card flip. Decided by tilt alone (see `facesAway`), so {@link flipHorizontal} doesn't hide it. */
|
|
195
124
|
backfaceVisible: boolean;
|
|
196
|
-
/**
|
|
197
|
-
* The point every rotation, scale and mirror turns about — CSS's
|
|
198
|
-
* `transform-origin`, in the same `[-1, 1]` vocabulary as {@link pivot}
|
|
199
|
-
* (a named alignment, or a {@link Vector2} where `(0,0)` is the centre).
|
|
200
|
-
*
|
|
201
|
-
* Unset (the default) it *is* the pivot, so a node keeps turning about
|
|
202
|
-
* whatever its alignment positioning gave it and nothing changes. Set, it wins
|
|
203
|
-
* for the whole transform rather than for the 3D half of it — one origin, the
|
|
204
|
-
* way CSS has one. A second origin that only some of the rotations respected
|
|
205
|
-
* would produce a picture nobody could predict.
|
|
206
|
-
*/
|
|
125
|
+
/** Origin every rotation, scale and mirror turns about (CSS `transform-origin`), same vocabulary as {@link pivot}. Unset it is the pivot; set it wins for the whole transform, so there is one origin as in CSS. */
|
|
207
126
|
transformOrigin: Alignment;
|
|
208
|
-
/**
|
|
209
|
-
* All of the above in one bag — construction sugar, expanded into the
|
|
210
|
-
* individual props before anything reads them (exactly as {@link size} is
|
|
211
|
-
* expanded into `width`/`height`), so `set()`, `to()` and reactive callbacks
|
|
212
|
-
* all behave identically whichever form is used.
|
|
213
|
-
*
|
|
214
|
-
* ```ts
|
|
215
|
-
* Rect({ transform3D: { rotationX: 45, rotationY: -17, perspective: 900 } })
|
|
216
|
-
* card().to({ transform3D: { rotationY: 180 } }, 0.8)
|
|
217
|
-
* ```
|
|
218
|
-
*
|
|
219
|
-
* `rotationZ` is the block's own in-plane rotation and is **not** the node's
|
|
220
|
-
* {@link rotation} under another name — see its note for what separates them.
|
|
221
|
-
*/
|
|
127
|
+
/** The 3D props in one bag: construction sugar expanded into the individual props before anything reads them, like {@link size}. Its `rotationZ` is not {@link rotation}. */
|
|
222
128
|
transform3D: NodeTransform3D;
|
|
223
129
|
center: Vector2 | (() => Vector2);
|
|
224
130
|
topLeft: Vector2 | (() => Vector2);
|
|
@@ -229,14 +135,7 @@ export interface Node2DProps extends NodeProps {
|
|
|
229
135
|
bottomCenter: Vector2 | (() => Vector2);
|
|
230
136
|
centerLeft: Vector2 | (() => Vector2);
|
|
231
137
|
centerRight: Vector2 | (() => Vector2);
|
|
232
|
-
/**
|
|
233
|
-
* Proportional share of the free space along the parent's main axis,
|
|
234
|
-
* relative to sibling `fill` children (like Flutter's `Expanded(flex:)`).
|
|
235
|
-
* Only meaningful when this node fills the main axis — in a row that's
|
|
236
|
-
* `width:'fill'`, in a column `height:'fill'`. Two siblings with `flex` 2
|
|
237
|
-
* and 1 split the free space 2:1. Defaults to 1. Specifying `flex` without
|
|
238
|
-
* an explicit `width`/`height` defaults both to `'fill'`.
|
|
239
|
-
*/
|
|
138
|
+
/** Share of free main-axis space relative to sibling `fill` children (Flutter's `Expanded(flex:)`), default 1. Setting it without `width`/`height` defaults both to `'fill'`. */
|
|
240
139
|
flex: number;
|
|
241
140
|
/** 1-based column index for explicit grid placement. Undefined = auto-placed. */
|
|
242
141
|
column: number;
|
|
@@ -248,92 +147,26 @@ export interface Node2DProps extends NodeProps {
|
|
|
248
147
|
rowSpan: number;
|
|
249
148
|
}
|
|
250
149
|
/**
|
|
251
|
-
* The 2D tree's base: what every `component2d` lowers onto, and the scene root
|
|
252
|
-
*
|
|
253
|
-
*
|
|
254
|
-
* **Properties** — each declared prop is backed by a {@link PropSlot}, which
|
|
255
|
-
* holds either a value or a thunk. {@link set} updates props imperatively, and
|
|
256
|
-
* a callback `() => expr` binds one to a derived value.
|
|
257
|
-
*
|
|
258
|
-
* **Tweening** — `to({ data, duration, easing })` returns a {@link Command}
|
|
259
|
-
* that animates props to target values, evaluable at a time via `at(t)`.
|
|
260
|
-
* `moveTo`, `fadeTo`, `rotateTo`, `scaleTo` and the rest wrap it.
|
|
261
|
-
*
|
|
262
|
-
* **Layout** — `measure()` is called top-down to resolve sizes, then
|
|
263
|
-
* `layout()` places the node in its allocated `BoxBounds` and its children in
|
|
264
|
-
* its content box.
|
|
265
|
-
*
|
|
266
|
-
* ### Built-in visual props
|
|
267
|
-
* | prop | default | unit / notes |
|
|
268
|
-
* |-----------|----------|---------------------------------------|
|
|
269
|
-
* | `x` | 0 | horizontal offset in scene pixels |
|
|
270
|
-
* | `y` | 0 | vertical offset (positive = up) |
|
|
271
|
-
* | `width` | `'fill'` | `SizeInput`: px, `'fill'`, `'auto'` |
|
|
272
|
-
* | `height` | `'fill'` | same |
|
|
273
|
-
* | `size` | — | sugar: sets `width` and `height` together |
|
|
274
|
-
* | `scale` | 1 | uniform scale factor |
|
|
275
|
-
* | `rotate` | 0 | degrees, clockwise |
|
|
276
|
-
* | `opacity` | 1 | 0–1 |
|
|
277
|
-
* | `blend` | `'pass-through'` | layer blend mode (`NodeBlendMode`) |
|
|
278
|
-
* | `effects` | [] | post-process / blend effects |
|
|
279
|
-
* | `padding` | 0 | inner spacing, all four edges |
|
|
150
|
+
* The 2D tree's base: what every `component2d` lowers onto, and the scene root ({@link Canvas2D}).
|
|
151
|
+
* Props are {@link PropSlot}-backed (a value or a thunk); `to()` returns a {@link Command}; `measure()`
|
|
152
|
+
* runs top-down, then `layout()` places the node and its children.
|
|
280
153
|
*/
|
|
281
154
|
export declare class Node2D<P extends Node2DProps = Node2DProps> extends Node<P> {
|
|
282
155
|
get dimension(): NodeDimension;
|
|
283
|
-
/**
|
|
284
|
-
* This node's parent, when that parent is itself 2D.
|
|
285
|
-
*
|
|
286
|
-
* A `Node2D` can only ever be adopted by another `Node2D` (see
|
|
287
|
-
* {@link Node.acceptsChild}), so this is `null` only for a detached node or
|
|
288
|
-
* the root — but it is typed honestly rather than cast, because the base
|
|
289
|
-
* tree holds both dimensions.
|
|
290
|
-
*/
|
|
156
|
+
/** Null only for a detached node or the root; the base tree holds both dimensions, so this is typed rather than cast. */
|
|
291
157
|
protected get parent2D(): Node2D | null;
|
|
292
|
-
/**
|
|
293
|
-
* This node's parent, narrowed to the 2D tree.
|
|
294
|
-
*
|
|
295
|
-
* Only a `Node2D` can adopt a `Node2D` (see {@link Node.acceptsChild}), so
|
|
296
|
-
* this never hides a real parent — it just spares every 2D caller a cast.
|
|
297
|
-
*/
|
|
158
|
+
/** Narrowed to the 2D tree: only a `Node2D` can adopt a `Node2D` (see {@link Node.acceptsChild}). */
|
|
298
159
|
get parent(): Node2D | null;
|
|
299
|
-
/**
|
|
300
|
-
* This node's children **in the 2D tree**.
|
|
301
|
-
*
|
|
302
|
-
* `Canvas3D` is the one node that holds both dimensions, and its `Node3D`
|
|
303
|
-
* children are not part of the 2D tree — they describe a scene it paints,
|
|
304
|
-
* not boxes it lays out — so they are reached through its own accessor
|
|
305
|
-
* instead. Every other node's list is already 2D, and this returns the live
|
|
306
|
-
* array untouched in that case rather than allocating a copy per read.
|
|
307
|
-
*/
|
|
160
|
+
/** Children in the 2D tree. `Canvas3D` also holds `Node3D` children outside it (reached through its own accessor); otherwise the live array is returned uncopied. */
|
|
308
161
|
get children(): Node2D[];
|
|
309
162
|
constructor(props?: NodeConfig<any, P>);
|
|
310
|
-
/**
|
|
311
|
-
* The 2D half of `set()`: `size` and `transform3D` are sugar with no slot of
|
|
312
|
-
* their own, so they are distributed into the props that do have one before
|
|
313
|
-
* the generic write loop runs.
|
|
314
|
-
*/
|
|
315
163
|
set(props: {
|
|
316
164
|
[K in keyof P]?: P[K] | (() => P[K]);
|
|
317
165
|
}): void;
|
|
318
|
-
/**
|
|
319
|
-
* The 2D half of `_prepareStep`: expand the positional sugar into the props
|
|
320
|
-
* that actually have cells, then let the base resolve the step.
|
|
321
|
-
*
|
|
322
|
-
* `to` is mutated in place, so the base sees the expanded target — which is
|
|
323
|
-
* why this can run entirely before `super`.
|
|
324
|
-
*/
|
|
325
166
|
_prepareStep(to: Partial<P>, duration: number, easing?: EasingFunction): TweenStepper;
|
|
326
|
-
/**
|
|
327
|
-
* A component's paint entries declare themselves, so only a node painting
|
|
328
|
-
* something its attributes do not describe has anything to add.
|
|
329
|
-
*/
|
|
167
|
+
/** Effects are the only assets a bare node declares; component paint entries declare their own. */
|
|
330
168
|
declareAssets(assets: AssetScope): void;
|
|
331
|
-
/** Sample this node's own derived render state for the current frame. */
|
|
332
169
|
_sample(): void;
|
|
333
|
-
/**
|
|
334
|
-
* Record this node's current position as the motion history's previous
|
|
335
|
-
* frame, stamped `at`, deriving no velocity — see the base's note.
|
|
336
|
-
*/
|
|
337
170
|
_primeMotion(at: number): void;
|
|
338
171
|
x: number;
|
|
339
172
|
y: number;
|
|
@@ -346,62 +179,25 @@ export declare class Node2D<P extends Node2DProps = Node2DProps> extends Node<P>
|
|
|
346
179
|
effects: Effect;
|
|
347
180
|
padding: Insets;
|
|
348
181
|
readonly pivot: Alignment;
|
|
349
|
-
/** Mirror across the vertical centre line. See {@link Node2DProps.flipHorizontal}. */
|
|
350
182
|
flipHorizontal: boolean;
|
|
351
|
-
/** Mirror across the horizontal centre line. See {@link Node2DProps.flipVertical}. */
|
|
352
183
|
flipVertical: boolean;
|
|
353
|
-
/** Tilt about the horizontal axis, degrees. See {@link Node2DProps.rotationX}. */
|
|
354
184
|
rotationX: number;
|
|
355
|
-
/** Tilt about the vertical axis, degrees. See {@link Node2DProps.rotationY}. */
|
|
356
185
|
rotationY: number;
|
|
357
186
|
/** The 3D block's in-plane rotation, degrees — distinct from {@link rotation}. See {@link Node2DProps.rotationZ}. */
|
|
358
187
|
rotationZ: number;
|
|
359
|
-
/** Push along the view axis, px. See {@link Node2DProps.depth}. */
|
|
360
188
|
depth: number;
|
|
361
|
-
/**
|
|
362
|
-
* Viewer distance in px; `0` is a parallel projection. See
|
|
363
|
-
* {@link Node2DProps.perspective}.
|
|
364
|
-
*
|
|
365
|
-
* Tweened in reciprocal space ({@link lerpPerspective}), not linearly: the
|
|
366
|
-
* renderer's own projection math varies with `1/perspective`, so a plain
|
|
367
|
-
* lerp of the raw distance sweeps through the near-zero numbers next to
|
|
368
|
-
* "off" and flashes an exaggerated, near-degenerate projection right at the
|
|
369
|
-
* start of a `0 → n` tween (or the end of an `n → 0` one) before settling
|
|
370
|
-
* to the depth actually asked for.
|
|
371
|
-
*/
|
|
189
|
+
/** Tweened in reciprocal space ({@link lerpPerspective}): the projection varies with `1/perspective`, so a linear lerp flashes a near-degenerate projection at the start of a `0 -> n` tween. */
|
|
372
190
|
perspective: number;
|
|
373
|
-
/** Whether the node paints while showing its back. See {@link Node2DProps.backfaceVisible}. */
|
|
374
191
|
backfaceVisible: boolean;
|
|
375
192
|
/**
|
|
376
|
-
*
|
|
377
|
-
*
|
|
378
|
-
*
|
|
379
|
-
* `undefined` until set — that absence *is* "follow the pivot", which no
|
|
380
|
-
* default value could say, since every alignment is a real point including the
|
|
381
|
-
* centre. Same shape as the `column`/`row` cells above. Declared with a plain
|
|
382
|
-
* `property` rather than `alignmentProperty()` for exactly that reason: that one
|
|
383
|
-
* folds a missing `default` back onto `'center'`.
|
|
193
|
+
* `undefined` means "follow the pivot", which no default could say since every alignment is a real point.
|
|
194
|
+
* Hence a plain `property`, not `alignmentProperty()` (which folds a missing default to `'center'`).
|
|
384
195
|
*/
|
|
385
196
|
transformOrigin: Alignment | undefined;
|
|
386
197
|
/** When true, content drawn by this node's children is clipped to its outline (see {@link clipSelf}). */
|
|
387
198
|
clip: boolean;
|
|
388
199
|
flex: number;
|
|
389
|
-
/**
|
|
390
|
-
* Per-child weight for the flex gap this node contributes to its parent's
|
|
391
|
-
* main axis, in `[0, 1]`. Default `1` = a full gap on each side (normal
|
|
392
|
-
* layout). Driven `0 → 1` (insert) / `1 → 0` (remove) by the animated
|
|
393
|
-
* `addChildAt`/`removeChildAt` overloads so the surrounding gap opens/closes
|
|
394
|
-
* in lockstep with the child's box instead of popping — see
|
|
395
|
-
* {@link addChildAtAnimated}. Read only by flex containers off their
|
|
396
|
-
* children.
|
|
397
|
-
*
|
|
398
|
-
* Rarely set by hand, but it has to be *settable*: a host collapsing a child
|
|
399
|
-
* in place rather than removing it — which is what makes a show/hide a value
|
|
400
|
-
* a time can produce instead of an effect that has to have run — needs the
|
|
401
|
-
* gap to close with it. Declared on {@link Node2DProps} for that reason; it
|
|
402
|
-
* used to be reachable only through a cast, which is why the lifecycle
|
|
403
|
-
* helpers carry one.
|
|
404
|
-
*/
|
|
200
|
+
/** Flex gap weight `[0, 1]`, default 1. The animated `addChildAt`/`removeChildAt` drive it so the gap opens and closes with the child's box (see {@link addChildAtAnimated}); settable so a host can collapse a child in place. */
|
|
405
201
|
gapScale: number;
|
|
406
202
|
column: number | undefined;
|
|
407
203
|
row: number | undefined;
|
|
@@ -409,18 +205,8 @@ export declare class Node2D<P extends Node2DProps = Node2DProps> extends Node<P>
|
|
|
409
205
|
rowSpan: number;
|
|
410
206
|
private readonly _layoutBounds;
|
|
411
207
|
/**
|
|
412
|
-
*
|
|
413
|
-
*
|
|
414
|
-
*
|
|
415
|
-
* Retained so off-tree work can measure a not-yet-attached child *in
|
|
416
|
-
* isolation* — the animated child-insert in `node-lifecycle.ts` needs a hug
|
|
417
|
-
* child's natural size without putting it in this node's flow first, or the
|
|
418
|
-
* siblings shift for a frame. Undefined until this node is first measured.
|
|
419
|
-
*
|
|
420
|
-
* One object rather than two loose fields, because the two are only ever
|
|
421
|
-
* useful together and were previously reached through a
|
|
422
|
-
* `{ constraints?; _lastScope? }` structural cast from two other modules —
|
|
423
|
-
* a cast that would have gone on compiling through any rename.
|
|
208
|
+
* Limits and measurer from the last {@link measure} pass, so off-tree work (the animated child-insert in
|
|
209
|
+
* `node-lifecycle.ts`) can size a detached hug child without shifting siblings. Undefined until measured.
|
|
424
210
|
*
|
|
425
211
|
* @internal
|
|
426
212
|
*/
|
|
@@ -428,65 +214,24 @@ export declare class Node2D<P extends Node2DProps = Node2DProps> extends Node<P>
|
|
|
428
214
|
constraints: SizeConstraints;
|
|
429
215
|
measurer: MeasureContext2D;
|
|
430
216
|
};
|
|
431
|
-
/**
|
|
432
|
-
* The box the last layout pass allocated this node: its size, and where it
|
|
433
|
-
* sits in its parent's space (canvas y-down).
|
|
434
|
-
*
|
|
435
|
-
* Reactive — a read inside a binding is tracked, so a prop bound to another
|
|
436
|
-
* node's box re-evaluates when that box moves.
|
|
437
|
-
*
|
|
438
|
-
* **Public, and a single member.** It used to be a `protected layoutRect`
|
|
439
|
-
* plus a public `measuredRect` alias that existed only so the picking walk
|
|
440
|
-
* could reach it — and, in practice, a `(node as any).layoutRect` cast in
|
|
441
|
-
* every test that needed a box. Two names for one value, one of them
|
|
442
|
-
* reachable only by lying to the compiler, is worse than the thing
|
|
443
|
-
* `protected` was buying. Writing it is still {@link setLayoutBounds}, which
|
|
444
|
-
* is where the layout engine's invariants live.
|
|
445
|
-
*/
|
|
217
|
+
/** The box the last layout pass allocated: size, and position in the parent's space (canvas y-down). Reactive. Written only via {@link setLayoutBounds}, where the layout invariants live. */
|
|
446
218
|
get layoutBounds(): BoxBounds;
|
|
447
|
-
/**
|
|
448
|
-
* {@link flattenChildrenProp}, narrowed to the children this node will
|
|
449
|
-
* actually lay out — a 3D or audio child sits in the same `children` prop but
|
|
450
|
-
* takes no part in 2D layout, so it can't inform the size defaults either.
|
|
451
|
-
*/
|
|
219
|
+
/** {@link flattenChildrenProp} narrowed to children that take part in 2D layout (not 3D or audio). */
|
|
452
220
|
protected static flowChildrenProp(props: {
|
|
453
221
|
children?: unknown;
|
|
454
222
|
} | undefined): Node2D[];
|
|
455
|
-
/**
|
|
456
|
-
* True if any of `children` requests `"fill"` on `axis` — the signal a
|
|
457
|
-
* component's size default reads to decide whether hugging on that axis
|
|
458
|
-
* would strand the child with no space to fill into.
|
|
459
|
-
*/
|
|
223
|
+
/** True if any child requests `"fill"` on `axis`, so a size default can avoid hugging a child that would have nothing to fill. */
|
|
460
224
|
protected static hasFillChild(children: Node2D[], axis: "width" | "height"): boolean;
|
|
461
|
-
/**
|
|
462
|
-
* Default for `width`/`height`: hug-to-content when the node is given
|
|
463
|
-
* children, fill-the-parent when it's empty. Called once from the
|
|
464
|
-
* constructor (skipped when `flex` is set, since that already implies
|
|
465
|
-
* 'fill'); `component2d` replaces it with the component rule.
|
|
466
|
-
*/
|
|
225
|
+
/** Hug when given children, fill when empty. Skipped when `flex` is set (implies `'fill'`); `component2d` replaces it with the component rule. */
|
|
467
226
|
protected applyDefaultSize(props?: NodeConfig<any, P>): void;
|
|
468
227
|
/**
|
|
469
|
-
* Animate `x`/`y` to
|
|
470
|
-
*
|
|
471
|
-
* later rotate/scale turn about — independent of the node's own permanent
|
|
472
|
-
* {@link pivot}, and it carries forward like any other prop until something
|
|
473
|
-
* restates it.
|
|
228
|
+
* Animate `x`/`y` to a position, along `path`, or onto another node. `pivot` sets
|
|
229
|
+
* {@link Node2DProps.transformOrigin} (carried forward until restated), not the permanent {@link pivot}.
|
|
474
230
|
*
|
|
475
|
-
* `path` replaces the destination
|
|
476
|
-
*
|
|
477
|
-
*
|
|
478
|
-
*
|
|
479
|
-
* space a `PathCommand[]` is authored in library-wide: the path says where
|
|
480
|
-
* the node is at `t`, not how far it has come from wherever the previous
|
|
481
|
-
* command left it.
|
|
482
|
-
*
|
|
483
|
-
* `target` is a node id and `targetAnchor` the point of its box to land on
|
|
484
|
-
* (centre when absent), resolved when the command is built — so moving the
|
|
485
|
-
* target re-aims the move with nothing to re-author, and a target absent at
|
|
486
|
-
* that moment leaves the node where it is. Like `path`, it replaces `x`/`y`.
|
|
487
|
-
* Given a `path` as well, the path is turned and scaled about its own start
|
|
488
|
-
* until its end lands on the target, which is exact where the two already
|
|
489
|
-
* agree and keeps the curve's shape where the target has since moved.
|
|
231
|
+
* `path` or `target` replaces the `x`/`y` destination (stating both is an error). A path is walked by arc
|
|
232
|
+
* length and its coordinates are `x`/`y` values in the library-wide y-up space. `target` is a node id and
|
|
233
|
+
* `targetAnchor` the point of its box (centre when absent), resolved when the command is built; an absent
|
|
234
|
+
* target leaves the node in place. With both, the path is turned and scaled about its start until its end lands on the target.
|
|
490
235
|
*
|
|
491
236
|
* @example
|
|
492
237
|
* node.moveTo({ data: { x: 200, y: 100, pivot: 'topRight' }, duration: 0.5 });
|
|
@@ -503,45 +248,26 @@ export declare class Node2D<P extends Node2DProps = Node2DProps> extends Node<P>
|
|
|
503
248
|
}> & {
|
|
504
249
|
duration: number;
|
|
505
250
|
}): Command<P>;
|
|
506
|
-
/** Animate `opacity` to the target value, in `[0, 1]`. */
|
|
507
251
|
fadeTo(args: CommandArgs<{
|
|
508
252
|
opacity: number;
|
|
509
253
|
}> & {
|
|
510
254
|
duration: number;
|
|
511
255
|
}): Command<P>;
|
|
512
|
-
/**
|
|
513
|
-
* Animate `rotation` to the target angle (degrees, clockwise). `pivot`
|
|
514
|
-
* (optional) behaves as in {@link moveTo}.
|
|
515
|
-
*
|
|
516
|
-
* @example
|
|
517
|
-
* node.rotateTo({ data: { rotation: 180, pivot: 'topRight' }, duration: 0.6 });
|
|
518
|
-
*/
|
|
256
|
+
/** Animate `rotation` (degrees, clockwise); `pivot` behaves as in {@link moveTo}. */
|
|
519
257
|
rotateTo(args: CommandArgs<{
|
|
520
258
|
rotation: number;
|
|
521
259
|
pivot?: Alignment;
|
|
522
260
|
}> & {
|
|
523
261
|
duration: number;
|
|
524
262
|
}): Command<P>;
|
|
525
|
-
/**
|
|
526
|
-
* Animate `scale` to the target factor. `pivot` (optional) behaves as in
|
|
527
|
-
* {@link moveTo}.
|
|
528
|
-
*
|
|
529
|
-
* @example
|
|
530
|
-
* node.scaleTo({ data: { scale: 2, pivot: 'topRight' }, duration: 0.4 });
|
|
531
|
-
*/
|
|
263
|
+
/** Animate `scale`; `pivot` behaves as in {@link moveTo}. */
|
|
532
264
|
scaleTo(args: CommandArgs<{
|
|
533
265
|
scale: number;
|
|
534
266
|
pivot?: Alignment;
|
|
535
267
|
}> & {
|
|
536
268
|
duration: number;
|
|
537
269
|
}): Command<P>;
|
|
538
|
-
/**
|
|
539
|
-
* Animate the box: `width`, `height` and `padding`, whichever are given.
|
|
540
|
-
* A size keyword (`'fill'`, `'hug'`) snaps; a number interpolates.
|
|
541
|
-
*
|
|
542
|
-
* @example
|
|
543
|
-
* node.layoutTo({ data: { width: 640, height: 360 }, duration: 0.5 });
|
|
544
|
-
*/
|
|
270
|
+
/** Animate `width`, `height` and `padding`, whichever are given. A size keyword (`'fill'`, `'hug'`) snaps; a number interpolates. */
|
|
545
271
|
layoutTo(args: CommandArgs<{
|
|
546
272
|
width?: SizeInput;
|
|
547
273
|
height?: SizeInput;
|
|
@@ -549,32 +275,19 @@ export declare class Node2D<P extends Node2DProps = Node2DProps> extends Node<P>
|
|
|
549
275
|
}> & {
|
|
550
276
|
duration: number;
|
|
551
277
|
}): Command<P>;
|
|
552
|
-
/**
|
|
553
|
-
* Swell to `factor` times the node's size and settle back: a nudge of the
|
|
554
|
-
* eye toward it. It ends as it began, so nothing after it needs restating.
|
|
555
|
-
*
|
|
556
|
-
* @example
|
|
557
|
-
* node.pulse({ data: { factor: 1.3 }, duration: 0.6 });
|
|
558
|
-
*/
|
|
278
|
+
/** Swell to `factor` times the size and settle back; ends as it began. */
|
|
559
279
|
pulse(args: CommandArgs<{
|
|
560
280
|
factor?: number;
|
|
561
281
|
}> & {
|
|
562
282
|
duration: number;
|
|
563
283
|
}): Command<P>;
|
|
564
|
-
/**
|
|
565
|
-
* Rock about the node's own turn, `angle` degrees each way for `turns`
|
|
566
|
-
* swings, building up and dying away. It ends as it began.
|
|
567
|
-
*
|
|
568
|
-
* @example
|
|
569
|
-
* node.wiggle({ data: { angle: 10, turns: 4 }, duration: 0.8 });
|
|
570
|
-
*/
|
|
284
|
+
/** Rock about the node's own turn, `angle` degrees each way for `turns` swings, building up and dying away; ends as it began. */
|
|
571
285
|
wiggle(args: CommandArgs<{
|
|
572
286
|
angle?: number;
|
|
573
287
|
turns?: number;
|
|
574
288
|
}> & {
|
|
575
289
|
duration: number;
|
|
576
290
|
}): Command<P>;
|
|
577
|
-
/** Animate the `effects` stack to another one. */
|
|
578
291
|
effectTo(args: CommandArgs<{
|
|
579
292
|
effects: Effect;
|
|
580
293
|
}> & {
|
|
@@ -595,59 +308,30 @@ export declare class Node2D<P extends Node2DProps = Node2DProps> extends Node<P>
|
|
|
595
308
|
get centerLeft(): Vector2;
|
|
596
309
|
get centerRight(): Vector2;
|
|
597
310
|
/**
|
|
598
|
-
* This node's local transform in canvas (y-down) space
|
|
599
|
-
*
|
|
600
|
-
* {@link worldMatrix}, and the matrix every world-space *reading* of the node
|
|
601
|
-
* comes from: {@link global}, `runtime/node-picking.ts`, and so any editor
|
|
602
|
-
* overlay drawn on top of a scene.
|
|
603
|
-
*
|
|
604
|
-
* **It is flat, deliberately, and the renderer's is not.** A node that
|
|
605
|
-
* mirrors or tilts ({@link Node2DProps.rotationX}, {@link Node2DProps.perspective},
|
|
606
|
-
* {@link Node2DProps.flipHorizontal}, …) is *painted* through a projected
|
|
607
|
-
* matrix, but goes on measuring, reporting and hit-testing as the upright
|
|
608
|
-
* rectangle it was — see {@link applyTransform}.
|
|
311
|
+
* This node's local transform in canvas (y-down) space; {@link worldMatrix} composes it up the chain, and
|
|
312
|
+
* every world-space reading comes from it ({@link global}, `runtime/node-picking.ts`, editor overlays).
|
|
609
313
|
*
|
|
610
|
-
*
|
|
611
|
-
*
|
|
612
|
-
*
|
|
613
|
-
* something on a rectangle and stop meaning it on a trapezoid — a "width"
|
|
614
|
-
* handle on a foreshortened edge does not correspond to any number, and a
|
|
615
|
-
* corner that has swung behind the viewer has no screen position at all.
|
|
616
|
-
* Letting the projection through would make the tilt a thing that quietly
|
|
617
|
-
* breaks every other tool in the editor; keeping the geometry flat makes it
|
|
618
|
-
* exactly what it looks like, a way of drawing the node.
|
|
314
|
+
* Deliberately flat: a node that mirrors or tilts is painted through a projected matrix (see
|
|
315
|
+
* {@link applyTransform}) but measures and hit-tests as its upright rectangle, because handles, outlines and
|
|
316
|
+
* alignment targets mean nothing on a trapezoid (a foreshortened "width" edge, a corner behind the viewer).
|
|
619
317
|
*/
|
|
620
318
|
/** @internal Composed with the camera scopes in between by `runtime/node-picking.ts`. */
|
|
621
319
|
_localMatrix(): Matrix2D;
|
|
622
320
|
/** @internal The slot {@link _placementOf} puts this node in, from its parent. */
|
|
623
321
|
_placement(): ChildPlacement | null;
|
|
624
|
-
/**
|
|
625
|
-
* The slot this node places `child` in beyond its layout box, or `null` —
|
|
626
|
-
* the default — when the box says it all. A layout that turns, scales or
|
|
627
|
-
* fades each of its children answers here, and the renderer, picking and
|
|
628
|
-
* `global` all follow. See {@link ChildPlacement}.
|
|
629
|
-
*/
|
|
322
|
+
/** The slot this node places `child` in beyond its layout box, or `null` when the box says it all. The renderer, picking and `global` follow it. See {@link ChildPlacement}. */
|
|
630
323
|
/** @internal */
|
|
631
324
|
_placementOf(_child: Node2D): ChildPlacement | null;
|
|
632
|
-
/**
|
|
633
|
-
* The coordinates `child`'s `x`/`y` are in, or `null` — the default — when
|
|
634
|
-
* they are pixels. A `null` child asks for one that is not here yet: where
|
|
635
|
-
* a host would drop or paste it. See {@link ChildPlane}.
|
|
636
|
-
*/
|
|
325
|
+
/** The coordinates `child`'s `x`/`y` are in, or `null` for pixels. A `null` child asks for a not-yet-added one (where a host would drop or paste it). See {@link ChildPlane}. */
|
|
637
326
|
/** @internal */
|
|
638
327
|
_planeOf(_child: Node2D | null): ChildPlane | null;
|
|
639
328
|
/**
|
|
640
|
-
* Where its own layout would centre a child of `size
|
|
641
|
-
*
|
|
642
|
-
* or a grid (the run decides) or has not laid any out.
|
|
329
|
+
* Where its own layout would centre a not-yet-added child of `size`, y-down from its centre; `null` when it
|
|
330
|
+
* arranges children in a run or grid (the run decides) or has laid none out.
|
|
643
331
|
*/
|
|
644
332
|
/** @internal */
|
|
645
333
|
_slotFor(size: Size2D): Vector2 | null;
|
|
646
|
-
/**
|
|
647
|
-
* Where its centre sits from the point its `x`/`y` place, in its parent's
|
|
648
|
-
* frame, y-down, at `rotation` and `scale`: what turning or scaling about an
|
|
649
|
-
* off-centre pivot adds.
|
|
650
|
-
*/
|
|
334
|
+
/** Where its centre sits from the point `x`/`y` place, in the parent's frame (y-down), at `rotation` and `scale`: what turning about an off-centre pivot adds. */
|
|
651
335
|
/** @internal */
|
|
652
336
|
_centreShift(rotation?: number, scale?: number): Vector2;
|
|
653
337
|
/** The points an editor may drag on this node, where they sit now; none by default. See {@link NodeHandle}. */
|
|
@@ -657,75 +341,35 @@ export declare class Node2D<P extends Node2DProps = Node2DProps> extends Node<P>
|
|
|
657
341
|
/** @internal */
|
|
658
342
|
_handleValue(_prop: string, _at: Vector2): Vector2 | null;
|
|
659
343
|
private readonly _offsetScratch;
|
|
660
|
-
/**
|
|
661
|
-
* This node's `x`/`y` as the pixel offset its parent sees. Every position
|
|
662
|
-
* read goes through here, which is what keeps paint, picking and `global`
|
|
663
|
-
* agreeing under a {@link ChildPlane}. The result is reused: read it at once.
|
|
664
|
-
*/
|
|
344
|
+
/** `x`/`y` as the pixel offset the parent sees; every position read goes through here so paint, picking and `global` agree under a {@link ChildPlane}. The result is reused: read it at once. */
|
|
665
345
|
/** @internal */
|
|
666
346
|
_offset(): Vector2;
|
|
667
347
|
/**
|
|
668
|
-
* The flat part of this node's slot
|
|
669
|
-
*
|
|
670
|
-
* no slot. With `paint`, the slot's tilt as well, which only paint sees.
|
|
348
|
+
* The flat part of this node's slot: the layout box's centre turned and scaled by the slot, or `null` with
|
|
349
|
+
* no slot. With `paint`, also the slot's tilt, which only paint sees.
|
|
671
350
|
*/
|
|
672
351
|
/** @internal Also the plane `runtime/node-picking.ts` drags a placed node across. */
|
|
673
352
|
_slotMatrix(paint?: boolean): Matrix2D | null;
|
|
674
353
|
/** @internal {@link _slotMatrix} in a space, where the slot's tilt and depth are geometry. */
|
|
675
354
|
_slotAffine(): Affine3 | null;
|
|
676
|
-
/**
|
|
677
|
-
* The point this node's transform turns about, normalised: `transformOrigin`
|
|
678
|
-
* where one is set, the alignment-derived `pivot` otherwise. One resolution,
|
|
679
|
-
* read by {@link _localMatrix} and {@link applyTransform} alike.
|
|
680
|
-
*/
|
|
355
|
+
/** `transformOrigin` where set, else the alignment-derived `pivot`; read by {@link _localMatrix} and {@link applyTransform} alike. */
|
|
681
356
|
private _transformOrigin;
|
|
682
357
|
private readonly _projectionScratch;
|
|
683
|
-
/**
|
|
684
|
-
* This node's out-of-plane fields, gathered for the matrix builders — and for
|
|
685
|
-
* the backface test. A space root overrides it, because its 3D props aim the
|
|
686
|
-
* camera rather than turn the root.
|
|
687
|
-
*/
|
|
358
|
+
/** Out-of-plane fields for the matrix builders and the backface test. A space root overrides it: its 3D props aim the camera rather than turn the root. */
|
|
688
359
|
protected _projection(): Projection3D;
|
|
689
360
|
/** @internal This node's transform in its parent's 3D frame, when it is inside a space. See `node-space.ts`. */
|
|
690
361
|
_spaceMatrix(): Affine3;
|
|
691
|
-
/**
|
|
692
|
-
* This node's full transform in canvas (y-down) world space — the product of
|
|
693
|
-
* every ancestor's local matrix from the root down to this node. Walks the
|
|
694
|
-
* live parent chain on every call, reading each node's transform props.
|
|
695
|
-
*/
|
|
362
|
+
/** Product of every ancestor's local matrix, root down; walks the live parent chain per call. */
|
|
696
363
|
protected worldMatrix(): Matrix2D;
|
|
697
364
|
/**
|
|
698
|
-
*
|
|
699
|
-
*
|
|
700
|
-
* full ancestor chain, so values are absolute scene coordinates rather than
|
|
701
|
-
* parent-relative ones. See {@link WorldTransform}. Every field is reactive.
|
|
702
|
-
*
|
|
703
|
-
* @example
|
|
704
|
-
* // Read another node's absolute corner, regardless of its parent:
|
|
705
|
-
* const p = other.global.topRight; // world-space {x, y}
|
|
706
|
-
*
|
|
707
|
-
* ### Reading vs. placing
|
|
708
|
-
* `global` is for *reading* world coordinates. `x`/`y` (and the alignment props)
|
|
709
|
-
* are **parent-relative**, so assigning a world value to them does not by
|
|
710
|
-
* itself place this node in world space — it offsets it from this node's own
|
|
711
|
-
* parent. To land exactly on another node regardless of either parent,
|
|
712
|
-
* subtract this node's parent's world contribution:
|
|
365
|
+
* Absolute scene coordinates for the alignment points and metrics, folded through the ancestor chain; every
|
|
366
|
+
* field is reactive. See {@link WorldTransform}.
|
|
713
367
|
*
|
|
714
|
-
*
|
|
715
|
-
*
|
|
716
|
-
* new Rect({
|
|
717
|
-
* x: () => other.global.x - (myParent.global.x),
|
|
718
|
-
* y: () => other.global.y - (myParent.global.y),
|
|
719
|
-
* });
|
|
720
|
-
*
|
|
721
|
-
* When both nodes share the same parent origin (e.g. both at the scene root),
|
|
722
|
-
* `x: () => other.global.x` already lands on target with no compensation.
|
|
368
|
+
* For reading only: `x`/`y` are parent-relative, so landing on `other` under a different parent needs
|
|
369
|
+
* `x: () => other.global.x - myParent.global.x` (a shared parent origin needs no compensation).
|
|
723
370
|
*/
|
|
724
371
|
get global(): WorldTransform;
|
|
725
|
-
/**
|
|
726
|
-
* The `x`/`y` that put this node on `anchor` of the node `id` names, in this
|
|
727
|
-
* tree — or `null` when there is no such 2D node here right now.
|
|
728
|
-
*/
|
|
372
|
+
/** The `x`/`y` that put this node on `anchor` of node `id`, or `null` if no such 2D node is here right now. */
|
|
729
373
|
private _pointOnNode;
|
|
730
374
|
addChildAt(args: CommandArgs<{
|
|
731
375
|
child: Node;
|
|
@@ -750,254 +394,103 @@ export declare class Node2D<P extends Node2DProps = Node2DProps> extends Node<P>
|
|
|
750
394
|
duration: number;
|
|
751
395
|
}): Command<Record<string, never>>;
|
|
752
396
|
private readonly _transformScratch;
|
|
753
|
-
/**
|
|
397
|
+
/** Allocated once; mutated in place by {@link _sampleMotion}. */
|
|
754
398
|
private readonly _motionHistory;
|
|
755
399
|
/** Reused per-node state handed to `ctx.begin()` (mirrors `_transformScratch`). */
|
|
756
400
|
private readonly _renderState;
|
|
757
401
|
/**
|
|
758
|
-
*
|
|
759
|
-
*
|
|
760
|
-
*
|
|
761
|
-
*
|
|
762
|
-
* `0 < dt <= MAX` is trusted, so a scrub that resets the clock reads as
|
|
763
|
-
* "unknown" rather than a spurious huge velocity). The world position
|
|
764
|
-
* matches {@link applyTransform} (`layoutBounds + x`, `layoutBounds - y`,
|
|
765
|
-
* y-down). Called via {@link _sample} every frame; layout-dependent fields
|
|
766
|
-
* (`rects`/`elapsed`) are filled in by {@link renderState} at draw time.
|
|
402
|
+
* Computes motion into {@link _renderState} as a backward difference against the previous frame, then rolls the
|
|
403
|
+
* history. Velocity is zero when no trustworthy delta exists (first frame, or a non-monotonic time jump: only
|
|
404
|
+
* `0 < dt <= MAX` is trusted, so a scrub doesn't read as a huge velocity). World position matches
|
|
405
|
+
* {@link applyTransform} (y-down).
|
|
767
406
|
*/
|
|
768
407
|
protected _sampleMotion(): void;
|
|
769
408
|
/**
|
|
770
|
-
*
|
|
771
|
-
*
|
|
772
|
-
*
|
|
773
|
-
* that path is untouched: the backend translates, rotates and scales exactly
|
|
774
|
-
* as it always has. A node that mirrors or tilts hands over a precomposed
|
|
775
|
-
* {@link TransformState.matrix} instead, built by the same `localMatrix`
|
|
776
|
-
* {@link _localMatrix} calls — with the out-of-plane half switched on.
|
|
777
|
-
*
|
|
778
|
-
* **This is the one place that half is applied.** The mirrors and the tilt
|
|
779
|
-
* are paint, not geometry: the node goes on measuring and hit-testing as the
|
|
780
|
-
* upright rectangle it was, and only what is drawn is projected. See
|
|
781
|
-
* {@link _localMatrix} for why.
|
|
409
|
+
* Pushes this node's transform. A node in its own plane passes the decomposed fields; one that mirrors or tilts
|
|
410
|
+
* passes a precomposed {@link TransformState.matrix}. This is the one place the out-of-plane half is applied:
|
|
411
|
+
* mirrors and tilt are paint, not geometry (see {@link _localMatrix}).
|
|
782
412
|
*/
|
|
783
413
|
protected applyTransform(ctx: RenderContext2D): void;
|
|
784
414
|
/** What the node paints under its children, between the transform push and the children render: the root's fill. */
|
|
785
415
|
protected renderSelf(ctx: RenderContext2D): void;
|
|
786
416
|
/** What the node paints over its children, clipped to its silhouette: the root's overlay. */
|
|
787
417
|
protected renderOverlay(ctx: RenderContext2D): void;
|
|
788
|
-
/**
|
|
789
|
-
* This node's outline as a {@link Clip}: the boundary `clip` confines its
|
|
790
|
-
* children to, and the silhouette its backdrop effects are confined to.
|
|
791
|
-
* `null` (the default) is no outline, so its children render unclipped and
|
|
792
|
-
* it gets no backdrop effects. A component answers with the shape its
|
|
793
|
-
* `render` paints.
|
|
794
|
-
*/
|
|
418
|
+
/** Outline as a {@link Clip}: confines children when `clip` is set and bounds backdrop effects. `null` (default) is no outline. A component answers with the shape its `render` paints. */
|
|
795
419
|
protected clipSelf(): Clip | null;
|
|
796
420
|
/**
|
|
797
|
-
* The camera scope this node
|
|
798
|
-
*
|
|
799
|
-
* `
|
|
800
|
-
* opens one — so a consumer can reproduce the renderer's transform *and* its
|
|
801
|
-
* viewport clip without knowing which types have a camera.
|
|
802
|
-
*
|
|
803
|
-
* Read by `runtime/node-picking.ts`: a camera is applied at render time only,
|
|
804
|
-
* so it is not part of {@link worldMatrix}, and a node's on-screen box would
|
|
805
|
-
* be offset without it. `@internal`.
|
|
421
|
+
* The camera scope pushed around this node's children (`beginCamera`), or `null`; non-null exactly when the node
|
|
422
|
+
* opens one, so a consumer can reproduce the renderer's transform and viewport clip. Read by
|
|
423
|
+
* `runtime/node-picking.ts`: a camera applies at render time only, so it isn't part of {@link worldMatrix}.
|
|
806
424
|
*/
|
|
807
425
|
/** @internal */
|
|
808
426
|
_cameraScope(): CameraScope | null;
|
|
809
|
-
/**
|
|
810
|
-
* The camera this node opens a 2.5D space with, or `null` when it opens none.
|
|
811
|
-
* Only a space root overrides it: its children, and theirs, are then placed
|
|
812
|
-
* in one 3D frame and seen through this camera. See `node-space.ts`.
|
|
813
|
-
*/
|
|
427
|
+
/** The camera this node opens a 2.5D space with, or `null`; only a space root overrides it. See `node-space.ts`. */
|
|
814
428
|
/** @internal */
|
|
815
429
|
_spaceCamera(): SpaceCamera | null;
|
|
816
|
-
/**
|
|
817
|
-
* Whether this node hands its children on into the space it sits in. False
|
|
818
|
-
* for a node that composites its children itself — a mask, a boolean, a
|
|
819
|
-
* nested camera — which flattens its subtree into its own plane, where the
|
|
820
|
-
* per-node 3D rules apply again. Picking reads it; the renderer gets the same
|
|
821
|
-
* answer because such a node never reaches the base {@link renderChildren}.
|
|
822
|
-
*/
|
|
430
|
+
/** Whether children pass on into the space this node sits in. False for a node that composites its children itself (mask, boolean, nested camera), flattening them into its own plane. Picking reads it; the renderer agrees because such a node never reaches the base {@link renderChildren}. */
|
|
823
431
|
/** @internal */
|
|
824
432
|
_rendersChildrenInSpace(): boolean;
|
|
825
433
|
/** @internal Set by the parent for the length of this node's render while it is inside a space. */
|
|
826
434
|
_spaceFrame: SpaceFrame | null;
|
|
827
|
-
/**
|
|
828
|
-
* Whether the renderer confines this node's children to its own box — either
|
|
829
|
-
* because `clip` is set *and* the node has an outline to clip to (a bare
|
|
830
|
-
* `clip` with no {@link clipSelf} is a no-op, see {@link applyClip}), or
|
|
831
|
-
* because it opens a camera scope, which clips to the viewport rect.
|
|
832
|
-
*
|
|
833
|
-
* Read by `runtime/node-picking.ts`: a point outside a confining node cannot
|
|
834
|
-
* hit anything inside it, so the whole subtree is skipped. `@internal`.
|
|
835
|
-
*/
|
|
435
|
+
/** Whether the renderer confines children to this node's box: `clip` set with an outline to clip to (a bare `clip` without {@link clipSelf} is a no-op, see {@link applyClip}), or a camera scope clipping to the viewport. Picking skips a whole subtree outside a confining node. */
|
|
836
436
|
/** @internal */
|
|
837
437
|
_confinesChildren(): boolean;
|
|
838
438
|
/**
|
|
839
|
-
* Whether `local`
|
|
840
|
-
*
|
|
841
|
-
*
|
|
842
|
-
*
|
|
843
|
-
* The default is the layout box, which is the right answer for containers,
|
|
844
|
-
* text, and media: their box *is* their extent. A component narrows it to
|
|
845
|
-
* the outline its `render` paints.
|
|
846
|
-
*
|
|
847
|
-
* `tolerance` is grab-slop, applied outward. An editor passes its
|
|
848
|
-
* zoom-corrected pixel slop so the grab area stays constant on screen
|
|
849
|
-
* regardless of preview zoom.
|
|
439
|
+
* Whether `local` (node-centred, y-up, rotation and scale removed) is inside the node within `tolerance` scene
|
|
440
|
+
* units of its edge, applied outward as grab-slop (an editor passes a zoom-corrected value). Defaults to the
|
|
441
|
+
* layout box; a component narrows it to the outline its `render` paints.
|
|
850
442
|
*/
|
|
851
443
|
protected hitTestSelf(local: Vector2, tolerance: number): boolean;
|
|
852
444
|
/**
|
|
853
|
-
*
|
|
854
|
-
*
|
|
855
|
-
*
|
|
856
|
-
*
|
|
857
|
-
* The returned {@link BoxBounds} is **y-up and relative to the node's own
|
|
858
|
-
* centre**: `x`/`y` are where the ink's centre sits relative to the node,
|
|
859
|
-
* normally `(0, 0)`. That is a different space from `layoutBounds`, which is
|
|
860
|
-
* the same type but canvas y-down and relative to the parent — see
|
|
861
|
-
* `BoxBounds`, which deliberately does not encode a space.
|
|
862
|
-
*
|
|
863
|
-
* Defaults to the layout box, centred on the node, which is right for every
|
|
864
|
-
* node whose drawing fills its cell. It is a separate seam from the layout
|
|
865
|
-
* rect because for some nodes the two genuinely differ: a boolean group or
|
|
866
|
-
* a mask is drawn where its children's ink is, which can be both a different
|
|
867
|
-
* size *and* off-centre from its own cell. A component's `bounds` answers
|
|
868
|
-
* here, fixing the box and the grab region together without perturbing layout.
|
|
445
|
+
* Extent of the node's ink in its own space, **y-up and relative to the node's centre** (unlike `layoutBounds`,
|
|
446
|
+
* canvas y-down relative to the parent): what an editor boxes and the default {@link hitTestSelf} grabs.
|
|
447
|
+
* Defaults to the layout box. Separate from the layout rect because a boolean group or mask draws where its
|
|
448
|
+
* children's ink is, possibly off-centre; a component's `bounds` answers here without perturbing layout.
|
|
869
449
|
*/
|
|
870
450
|
/** @internal */
|
|
871
451
|
_localBounds(): BoxBounds;
|
|
872
452
|
/** @internal Dispatch seam so `node-picking.ts` can reach the protected override. */
|
|
873
453
|
_hitTestSelf(local: Vector2, tolerance: number): boolean;
|
|
874
|
-
/**
|
|
875
|
-
* Open `clipSelf()`'s outline as a clip scope, confining whatever is drawn
|
|
876
|
-
* until the matching `ctx.endClip()` to the shape. Returns `true` when a
|
|
877
|
-
* clip was actually opened (so the caller knows to close it) and `false`
|
|
878
|
-
* when the node has no outline (the default).
|
|
879
|
-
*/
|
|
454
|
+
/** Opens `clipSelf()`'s outline as a clip scope; returns whether one was opened (so the caller closes it). */
|
|
880
455
|
protected applyClip(ctx: RenderContext2D): boolean;
|
|
881
|
-
/**
|
|
882
|
-
* Apply backdrop effects (any `mode: "backdrop"` effect — blur, grayscale, …;
|
|
883
|
-
* plus magnify and backdrop shader) beneath this node, clipped to its
|
|
884
|
-
* silhouette, before the node's own content is drawn — so the content
|
|
885
|
-
* underneath is filtered/warped while the node's own edges stay sharp. One
|
|
886
|
-
* backdrop effect scope, confined to the silhouette clip, runs the lot; the
|
|
887
|
-
* renderer routes each effect to a filter or shader pass. A no-op for nodes
|
|
888
|
-
* without a {@link clipSelf} outline (there's no silhouette to confine to).
|
|
889
|
-
*/
|
|
456
|
+
/** Backdrop effects (blur, magnify, backdrop shader, ...) beneath the node, confined to its silhouette, so content underneath is filtered while the node's own edges stay sharp. One scope runs them all; no-op without a {@link clipSelf} outline. */
|
|
890
457
|
private applyBackdropEffects;
|
|
891
|
-
/**
|
|
892
|
-
* Run `body` (this node's own painting + children) inside the node's effect
|
|
893
|
-
* scopes, so effects behave identically however a node draws. The caller
|
|
894
|
-
* has already pushed the node's transform ({@link applyTransform}).
|
|
895
|
-
* Outermost-first: {@link applyBackdropEffects} beneath the node, confined
|
|
896
|
-
* to its {@link clipSelf} silhouette, then a `foreground` effect scope
|
|
897
|
-
* capturing everything `body` paints.
|
|
898
|
-
*/
|
|
458
|
+
/** Runs `body` (own painting + children) inside the effect scopes, outermost first: {@link applyBackdropEffects} beneath the node, then a `foreground` scope capturing everything `body` paints. The caller has already pushed {@link applyTransform}. */
|
|
899
459
|
protected renderContentWithEffects(ctx: RenderContext2D, body: () => void): void;
|
|
900
460
|
protected renderChildren(ctx: RenderPass2D): void;
|
|
901
|
-
/**
|
|
902
|
-
* Paint the children placed in `frame`, far to near rather than in authored
|
|
903
|
-
* order — each with its frame set for exactly the length of its own render,
|
|
904
|
-
* so a node reached any other way (a mask's children, a `Tex.surface`
|
|
905
|
-
* source) draws flat.
|
|
906
|
-
*/
|
|
461
|
+
/** Paints children placed in `frame` far to near, each with its frame set only for its own render, so a node reached any other way (a mask's children, a `Tex.surface` source) draws flat. */
|
|
907
462
|
/** @internal A space root opens its space through this. */
|
|
908
463
|
protected _renderInSpace(ctx: RenderPass2D, frame: SpaceFrame): void;
|
|
909
464
|
/** Run `paint` confined to `cut` — the part of the node in front of the lens — when there is one. */
|
|
910
465
|
private _paintInFront;
|
|
911
|
-
/**
|
|
912
|
-
* This node's per-frame render state, resolved for the scope {@link render}
|
|
913
|
-
* is about to open.
|
|
914
|
-
*
|
|
915
|
-
* Motion was already sampled when the clock advanced; only the
|
|
916
|
-
* layout-dependent fields are filled in here, where layout is current.
|
|
917
|
-
*/
|
|
466
|
+
/** Per-frame render state for the scope {@link render} opens. Motion was sampled when the clock advanced; only layout-dependent fields are filled here. */
|
|
918
467
|
private renderState;
|
|
919
|
-
/**
|
|
920
|
-
* Reference rects for fills with `space:'parent'`, expressed in this node's
|
|
921
|
-
* local space (origin = this node's positioned centre, y-down to match the
|
|
922
|
-
* canvas). The viewport (`space:'global'`) is resolved by the renderer, which
|
|
923
|
-
* knows the surface size. Rotation/scale of this node are not folded in —
|
|
924
|
-
* the rect is the axis-aligned parent box, which is what gradients expect.
|
|
925
|
-
*/
|
|
468
|
+
/** Reference rects for `space:'parent'` fills, in this node's local space (origin at its positioned centre, y-down). The viewport (`space:'global'`) is the renderer's job. This node's rotation/scale aren't folded in: the rect is the axis-aligned parent box, which gradients expect. */
|
|
926
469
|
protected _spaceRects(): SpaceRects;
|
|
927
|
-
/**
|
|
928
|
-
* Draw this node and its subtree: the skip checks, then this node's draw
|
|
929
|
-
* scope around {@link renderContent}.
|
|
930
|
-
*
|
|
931
|
-
* Takes a {@link RenderPass2D} rather than a bare {@link RenderContext2D}
|
|
932
|
-
* because opening this node's draw scope is *this* method's job; what it
|
|
933
|
-
* calls is handed the narrower surface, so nothing below can open one.
|
|
934
|
-
*/
|
|
470
|
+
/** Draws this node and its subtree: skip checks, then this node's draw scope around {@link renderContent}. Takes a {@link RenderPass2D} because opening the scope is this method's job; callees get the narrower surface so nothing below can open one. */
|
|
935
471
|
render(ctx: RenderPass2D): void;
|
|
936
|
-
/**
|
|
937
|
-
* Everything this node paints: its transform, its effect envelope, its own
|
|
938
|
-
* drawing, its children and its overlay. A component's `render` replaces it,
|
|
939
|
-
* keeping every guard {@link render} performs above it.
|
|
940
|
-
*/
|
|
472
|
+
/** Everything this node paints: transform, effect envelope, own drawing, children, overlay. A component's `render` replaces it, keeping every guard {@link render} performs above it. */
|
|
941
473
|
protected renderContent(ctx: RenderPass2D): void;
|
|
942
474
|
/** Whether the node shows its back — to the space's camera when it is in one, else by its own tilt. */
|
|
943
475
|
private _facesAway;
|
|
944
476
|
/** What {@link measure} hands {@link layoutChildren} within a pass; consumed there. */
|
|
945
477
|
private _flowMeasure;
|
|
946
|
-
/**
|
|
947
|
-
* The content box its children were last placed in, y-down from this
|
|
948
|
-
* node's centre, and the flow that placed them: what {@link _slotFor}
|
|
949
|
-
* answers from. A component's flow layout records it too (`Flow.layout`).
|
|
950
|
-
*/
|
|
478
|
+
/** The content box children were last placed in (y-down from this node's centre) and the flow that placed them; what {@link _slotFor} answers from. A component's flow layout records it too (`Flow.layout`). */
|
|
951
479
|
/** @internal */
|
|
952
480
|
_childSpace: ChildSpace | null;
|
|
953
481
|
private _flowWarned;
|
|
954
|
-
/**
|
|
955
|
-
* Record this node's allocated bounds without touching children.
|
|
956
|
-
*
|
|
957
|
-
* Compared field by field, because every caller builds a fresh object literal,
|
|
958
|
-
* so identity always differs — including on every frame of a node that is
|
|
959
|
-
* simply sitting still. Skipping the write keeps the object stable for the
|
|
960
|
-
* aliasing reason below.
|
|
961
|
-
*/
|
|
482
|
+
/** Records the allocated bounds without touching children. Compared field by field (callers build fresh literals, so identity always differs, even for a node sitting still) to keep the object stable for the aliasing reason below. */
|
|
962
483
|
protected setLayoutBounds(rect: BoxBounds): void;
|
|
963
|
-
/**
|
|
964
|
-
* The children this node lays out itself — its 2D children, minus the hidden
|
|
965
|
-
* ones. Every measure and layout pass in a container iterates *this*, not
|
|
966
|
-
* `children`.
|
|
967
|
-
*
|
|
968
|
-
* Returns the live array untouched in the common case, so an ordinary tree
|
|
969
|
-
* allocates nothing per pass.
|
|
970
|
-
*/
|
|
484
|
+
/** Children this node lays out itself: its 2D children minus hidden ones. Measure and layout iterate this, not `children`. Returns the live array when nothing is filtered, so an ordinary tree allocates nothing per pass. */
|
|
971
485
|
flowChildren(): Node2D[];
|
|
972
|
-
/**
|
|
973
|
-
* The inset children are laid out within. A node with a stroke to clear adds
|
|
974
|
-
* the part of it that intrudes (see `Paint.inset`).
|
|
975
|
-
*/
|
|
486
|
+
/** The inset children are laid out within; a node with a stroke to clear adds the part that intrudes (see `Paint.inset`). */
|
|
976
487
|
effectivePadding(): InsetsResolved;
|
|
977
|
-
/**
|
|
978
|
-
* How this node arranges its children: centred freeform. The root answers
|
|
979
|
-
* with its own layout props; a component lays its children out with `Flow`.
|
|
980
|
-
*/
|
|
488
|
+
/** Centred freeform by default. The root answers with its layout props; a component lays children out with `Flow`. */
|
|
981
489
|
protected flowArrangement(): FlowSettings;
|
|
982
|
-
/** Record `rect`, then place the flow children in it — see {@link layoutChildren}. */
|
|
983
490
|
layout(rect: BoxBounds, scope: MeasureContext2D): void;
|
|
984
|
-
/**
|
|
985
|
-
* Place the flow children in `rect`'s content box by {@link flowArrangement}.
|
|
986
|
-
*
|
|
987
|
-
* Reuses what {@link measure} found when the box is the one it measured in —
|
|
988
|
-
* or, on an axis that hugs, exactly what it hugged — and measures again
|
|
989
|
-
* otherwise: a parent laying this node out at a size it did not measure it
|
|
990
|
-
* for would leave the children arranged for the wrong box.
|
|
991
|
-
*/
|
|
491
|
+
/** Places flow children in `rect`'s content box by {@link flowArrangement}. Reuses {@link measure}'s result when the box is the one it measured in (or exactly what an axis hugged), else re-measures: a box the node wasn't measured for would leave the children arranged wrong. */
|
|
992
492
|
protected layoutChildren(rect: BoxBounds, scope: MeasureContext2D): void;
|
|
993
|
-
/**
|
|
994
|
-
* Resolve `width`/`height`, measuring the flow children by
|
|
995
|
-
* {@link flowArrangement}: a `'hug'` axis wraps what they come to, plus this
|
|
996
|
-
* node's padding. What it finds is kept for {@link layoutChildren}.
|
|
997
|
-
*
|
|
998
|
-
* Only flow children are measured: a canvas-pinned child is sized against the
|
|
999
|
-
* canvas, so hugging it would shrink-wrap a box this node never contains.
|
|
1000
|
-
*/
|
|
493
|
+
/** Resolves `width`/`height`: a `'hug'` axis wraps the flow children (by {@link flowArrangement}) plus padding; the result is kept for {@link layoutChildren}. Only flow children are measured: a canvas-pinned child is sized against the canvas, so hugging it would wrap a box this node never contains. */
|
|
1001
494
|
measure(constraints: SizeConstraints, scope: MeasureContext2D): Partial<Size2D>;
|
|
1002
495
|
reparent(args: CommandArgs<{
|
|
1003
496
|
newParent: Node2D;
|
|
@@ -1012,9 +505,6 @@ export declare class Node2D<P extends Node2DProps = Node2DProps> extends Node<P>
|
|
|
1012
505
|
}
|
|
1013
506
|
/** The 2D node `id` names anywhere in the tree `from` is in, or `null`. */
|
|
1014
507
|
export declare function findNode2D(from: Node, id: string): Node2D | null;
|
|
1015
|
-
/**
|
|
1016
|
-
* Where `node`'s frame sits in `host`'s, wherever each is in the tree: its
|
|
1017
|
-
* centre as an offset (y-up) from `host`'s, and its turn and scale relative to it.
|
|
1018
|
-
*/
|
|
508
|
+
/** Where `node`'s frame sits in `host`'s: its centre as a y-up offset, and its turn and scale relative to it. */
|
|
1019
509
|
export declare function frameIn(host: Node2D, node: Node2D): Vector2 & Pick<WorldTransform, "rotation" | "scale">;
|
|
1020
510
|
//# sourceMappingURL=node2d.d.ts.map
|