@motionscript/core 0.1.0 → 0.1.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -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-3ZIUZZC7.js +13 -0
- package/dist/browser/chunks/chunk-3ZIUZZC7.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-7YOYMMXK.js +6 -0
- package/dist/browser/chunks/chunk-7YOYMMXK.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/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/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/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 +1 -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
|
@@ -16,16 +16,9 @@ const HOSTS_OF = {
|
|
|
16
16
|
audio: "Put audio nodes under an AudioBus, or directly on the scene root.",
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
19
|
-
* The dimension-agnostic base of the scene graph
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* They meet only at `Canvas3D`; mixing them anywhere else throws (see
|
|
23
|
-
* {@link acceptsChild}).
|
|
24
|
-
*
|
|
25
|
-
* Subclasses call {@link initProps} from their own constructor rather than the
|
|
26
|
-
* base doing it: a subclass's field initializers only run *after* `super()`
|
|
27
|
-
* returns, so applying `property` defaults any earlier would write into cells
|
|
28
|
-
* that don't exist yet.
|
|
19
|
+
* The dimension-agnostic base of the scene graph; where a node is and how it draws belong to {@link Node2D} /
|
|
20
|
+
* `Node3D`, which meet only at `Canvas3D` (mixing elsewhere throws, see {@link acceptsChild}). Subclasses call
|
|
21
|
+
* {@link initProps} from their own constructor: field initializers run after `super()`, so applying defaults here would write into cells that don't exist yet.
|
|
29
22
|
*/
|
|
30
23
|
export class Node {
|
|
31
24
|
/** The trees this type takes children from, answerable from the prototype as {@link dimension} is. */
|
|
@@ -33,31 +26,21 @@ export class Node {
|
|
|
33
26
|
return [this.dimension];
|
|
34
27
|
}
|
|
35
28
|
constructor(props) {
|
|
36
|
-
//
|
|
37
|
-
//
|
|
38
|
-
// application so it reflects exactly what the author passed. The object is
|
|
39
|
-
// retained by reference, so a subclass expanding prop sugar in place
|
|
40
|
-
// afterwards (`size`, `transform3D`) is reflected here too.
|
|
29
|
+
// Retained by reference before any default application, so a provider's provideContext sees exactly what the
|
|
30
|
+
// author passed and a subclass expanding sugar in place (`size`, `transform3D`) is reflected.
|
|
41
31
|
this._props = props;
|
|
42
|
-
// Neither is a property: identity
|
|
43
|
-
// business in the table `set()`, `to()` and the baseline restore walk
|
|
44
|
-
// iterate.
|
|
32
|
+
// Neither is a property: identity doesn't tween, so it stays out of the table set(), to() and the baseline restore iterate.
|
|
45
33
|
const identity = props;
|
|
46
34
|
this.key = identity?.key;
|
|
47
|
-
// Nullish, never falsy: `""` is the scene root's real id,
|
|
48
|
-
//
|
|
49
|
-
// row holding it), and a UUID in its place would have the host's tree
|
|
50
|
-
// report a root no document row mentions.
|
|
35
|
+
// Nullish, never falsy: `""` is the scene root's real id (`checkRootShape` in document/validate.ts), and a UUID
|
|
36
|
+
// in its place would give the host a root no document row mentions.
|
|
51
37
|
this.id = identity?.id ?? crypto.randomUUID();
|
|
52
38
|
}
|
|
53
39
|
/** See {@link NodeProps.key}. */
|
|
54
40
|
key;
|
|
55
41
|
_hidden = false;
|
|
56
42
|
_locked = false;
|
|
57
|
-
/**
|
|
58
|
-
* Hidden by the editor — no paint, no pick, no layout slot. See
|
|
59
|
-
* {@link NodeEditorState.hidden}.
|
|
60
|
-
*/
|
|
43
|
+
/** Hidden by the editor: no paint, no pick, no layout slot. See {@link NodeEditorState.hidden}. */
|
|
61
44
|
get hidden() {
|
|
62
45
|
return this._hidden;
|
|
63
46
|
}
|
|
@@ -65,40 +48,23 @@ export class Node {
|
|
|
65
48
|
get locked() {
|
|
66
49
|
return this._locked;
|
|
67
50
|
}
|
|
68
|
-
/**
|
|
69
|
-
* @internal — written only by `applyEditorStates`, which owns both flags for
|
|
70
|
-
* the whole tree. Not a setter pair, so a caller cannot set one and leave the
|
|
71
|
-
* other holding a previous frame's answer.
|
|
72
|
-
*/
|
|
51
|
+
/** @internal Written only by `applyEditorStates`, which owns both flags for the whole tree; not a setter pair, so one can't be set leaving the other stale. */
|
|
73
52
|
_setEditorState(hidden, locked) {
|
|
74
53
|
this._hidden = hidden;
|
|
75
54
|
this._locked = locked;
|
|
76
55
|
}
|
|
77
|
-
/**
|
|
78
|
-
* Fire the `ref` and apply every declared property, reading
|
|
79
|
-
* initial values from `props`.
|
|
80
|
-
*
|
|
81
|
-
* Called by the concrete constructor ({@link Node2D}'s, `Node3D`'s) rather
|
|
82
|
-
* than by this one, because a subclass's field initializers run *after*
|
|
83
|
-
* `super()` returns: doing this here would apply props while the cells those
|
|
84
|
-
* props write into are still `undefined`.
|
|
85
|
-
*/
|
|
56
|
+
/** Fires the `ref` and applies every declared property from `props`. Called by the concrete constructor, not this one: field initializers run after `super()`, so doing it here would write into cells that are still `undefined`. */
|
|
86
57
|
initProps(props) {
|
|
87
58
|
if (props?.ref) {
|
|
88
59
|
props.ref(this);
|
|
89
60
|
}
|
|
90
|
-
// Apply every declared property, reading initial values from props.
|
|
91
61
|
for (const meta of getPropertyMeta(this)) {
|
|
92
62
|
const propsVal = props ? props[meta.key] : undefined;
|
|
93
63
|
const initial = propsVal !== undefined ? propsVal : meta.default;
|
|
94
64
|
this.applyProp(meta.key, initial, meta.options);
|
|
95
65
|
}
|
|
96
66
|
}
|
|
97
|
-
/**
|
|
98
|
-
* Adopt the `children` prop. Called by the concrete constructor after its own
|
|
99
|
-
* defaults are in place, so a child never lands in a tree whose parent has not
|
|
100
|
-
* finished sizing itself.
|
|
101
|
-
*/
|
|
67
|
+
/** Adopts the `children` prop, after the concrete constructor's defaults are in place so a child never lands in a parent that hasn't sized itself. */
|
|
102
68
|
adoptChildrenProp(props) {
|
|
103
69
|
if (props && props.children) {
|
|
104
70
|
const raw = Array.isArray(props.children) ? props.children : [props.children];
|
|
@@ -108,16 +74,7 @@ export class Node {
|
|
|
108
74
|
this._addChildren(flat);
|
|
109
75
|
}
|
|
110
76
|
}
|
|
111
|
-
/**
|
|
112
|
-
* Whether `child` may be adopted by this node.
|
|
113
|
-
*
|
|
114
|
-
* A node holds children of its own dimension; the places the trees meet are
|
|
115
|
-
* `Canvas3D`, which takes 2D and 3D, and `Canvas2D`, which takes 2D and
|
|
116
|
-
* audio. Both partition what they accept. Rejecting the mix here rather than
|
|
117
|
-
* letting it through is deliberate: a `Box3D` parented to a `Rect` would be
|
|
118
|
-
* silently skipped by both the layout walk and the 3D walk, and would simply
|
|
119
|
-
* never appear.
|
|
120
|
-
*/
|
|
77
|
+
/** Whether `child` may be adopted. A node takes children of its own dimension; `Canvas3D` takes 2D and 3D, `Canvas2D` takes 2D and audio. Mixing elsewhere is rejected because a `Box3D` under a `Rect` would be skipped by both walks and silently never appear. */
|
|
121
78
|
acceptsChild(child) {
|
|
122
79
|
return child.dimension === this.dimension;
|
|
123
80
|
}
|
|
@@ -141,13 +98,8 @@ export class Node {
|
|
|
141
98
|
}
|
|
142
99
|
_assets = null;
|
|
143
100
|
_parent = null;
|
|
144
|
-
/**
|
|
145
|
-
* Whether this node is in a live scene tree. Gates measure/layout/render,
|
|
146
|
-
* asset declaration and every command — checked at the handful of places
|
|
147
|
-
* the framework dispatches from, not per method.
|
|
148
|
-
*/
|
|
101
|
+
/** Whether this node is in a live scene tree; gates measure/layout/render, asset declaration and every command (checked where the framework dispatches, not per method). */
|
|
149
102
|
_mounted = false;
|
|
150
|
-
/** See {@link _mounted}. */
|
|
151
103
|
get mounted() {
|
|
152
104
|
return this._mounted;
|
|
153
105
|
}
|
|
@@ -161,7 +113,6 @@ export class Node {
|
|
|
161
113
|
throw new Error("Assets not bound — this node is not attached to a scene. See Node.attach().");
|
|
162
114
|
return this._assets;
|
|
163
115
|
}
|
|
164
|
-
/** Token→value map pushed down from ancestor providers, bound by {@link attach}. */
|
|
165
116
|
_context = ContextMap.EMPTY;
|
|
166
117
|
/** True once {@link attach} has reached this node. */
|
|
167
118
|
_contextBound = false;
|
|
@@ -171,24 +122,15 @@ export class Node {
|
|
|
171
122
|
useContext(ctx) {
|
|
172
123
|
return this._context.get(ctx);
|
|
173
124
|
}
|
|
174
|
-
/** Assigned in the constructor — see {@link NodeProps.id}. */
|
|
175
125
|
id;
|
|
176
126
|
/**
|
|
177
|
-
* The slots behind this node's `property` fields
|
|
127
|
+
* The slots behind this node's `property` fields; the authoring surface is the props and `set()`/`to()`/`captureProps()`.
|
|
178
128
|
*
|
|
179
|
-
* @internal
|
|
180
|
-
* `set()`/`to()`/`captureProps()`.
|
|
129
|
+
* @internal
|
|
181
130
|
*/
|
|
182
131
|
__cells;
|
|
183
132
|
_children = [];
|
|
184
|
-
/**
|
|
185
|
-
* Flatten a constructor's raw `children` prop into the `Node` instances it
|
|
186
|
-
* contains, without mutating or adding them — the same normalisation the
|
|
187
|
-
* constructor applies before adding them, exposed standalone so
|
|
188
|
-
* {@link applyDefaultSize} overrides can inspect children's own resolved
|
|
189
|
-
* `width`/`height` *before* they're attached (children are constructed,
|
|
190
|
-
* defaults and all, before being passed in as props).
|
|
191
|
-
*/
|
|
133
|
+
/** Flattens a constructor's raw `children` prop into its `Node`s without mutating or adding them, so {@link applyDefaultSize} overrides can inspect children's resolved `width`/`height` before attachment. */
|
|
192
134
|
static flattenChildrenProp(props) {
|
|
193
135
|
const childProp = props ? props.children : undefined;
|
|
194
136
|
if (!childProp)
|
|
@@ -196,17 +138,7 @@ export class Node {
|
|
|
196
138
|
const raw = Array.isArray(childProp) ? childProp : [childProp];
|
|
197
139
|
return raw.flat(Infinity).filter((c) => c instanceof Node);
|
|
198
140
|
}
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* Declare a prop on this node. Creates a {@link PropSlot}-backed accessor
|
|
202
|
-
* for `field`, applies an initial value (callback → binding; otherwise
|
|
203
|
-
* constant), and registers optional tween/mapper metadata used by `set()`
|
|
204
|
-
* and `to()`.
|
|
205
|
-
*
|
|
206
|
-
* Subsequent calls for the same field reuse the existing slot and act as
|
|
207
|
-
* a value assignment, so subclasses can override a parent's default by
|
|
208
|
-
* calling applyProp again without losing the slot or its bindings.
|
|
209
|
-
*/
|
|
141
|
+
/** Declares a prop: creates a {@link PropSlot}-backed accessor for `field`, applies the initial value (a callback binds, otherwise constant) and registers tween/mapper metadata. A repeat call for the same field is a value assignment, so a subclass can override a parent's default without losing the slot or its bindings. */
|
|
210
142
|
applyProp(field, initial, options) {
|
|
211
143
|
applyProp(this, field, initial, options);
|
|
212
144
|
}
|
|
@@ -221,9 +153,8 @@ export class Node {
|
|
|
221
153
|
if (typeof value === "function") {
|
|
222
154
|
const extFn = value;
|
|
223
155
|
if (mapper) {
|
|
224
|
-
// A binding
|
|
225
|
-
//
|
|
226
|
-
// reaches the mapper, which holds the shape the prop's readers go through.
|
|
156
|
+
// A binding reading `undefined` (a node reference to an absent node) leaves the prop as a node built without
|
|
157
|
+
// it and skips the mapper, which holds the shape the prop's readers go through.
|
|
227
158
|
let unset;
|
|
228
159
|
slot.bind(() => {
|
|
229
160
|
const read = extFn();
|
|
@@ -243,12 +174,7 @@ export class Node {
|
|
|
243
174
|
get properties() {
|
|
244
175
|
return collectProperties(this);
|
|
245
176
|
}
|
|
246
|
-
/**
|
|
247
|
-
* This node's **class** name, for a message or a host's type column. Not an
|
|
248
|
-
* authored identity — those are {@link id} and {@link key}, and nothing in
|
|
249
|
-
* the document model is called a name any more. Nor is it the registry key a
|
|
250
|
-
* document writes in `NodeSpec.type`: a minifier is free to rename a class.
|
|
251
|
-
*/
|
|
177
|
+
/** This node's class name, for messages and a host's type column. Not an authored identity ({@link id}, {@link key}) nor the registry key in `NodeSpec.type`: a minifier may rename a class. */
|
|
252
178
|
get className() {
|
|
253
179
|
return this.constructor.name;
|
|
254
180
|
}
|
|
@@ -256,11 +182,8 @@ export class Node {
|
|
|
256
182
|
const slots = this.__cells?.slots;
|
|
257
183
|
if (!slots)
|
|
258
184
|
return;
|
|
259
|
-
// Iterate the caller's keys (usually 1
|
|
260
|
-
//
|
|
261
|
-
// a slot are written; unknown keys are ignored — which is also what
|
|
262
|
-
// lets a subclass distribute its own sugar (2D's `size`, `transform3D`)
|
|
263
|
-
// into real keys and then delegate here.
|
|
185
|
+
// Iterate the caller's keys (usually 1-3), not every registered prop (15+): set() runs in the per-frame hot path.
|
|
186
|
+
// Unknown keys are ignored, which lets a subclass distribute its sugar (2D's `size`, `transform3D`) into real keys and delegate here.
|
|
264
187
|
for (const key in props) {
|
|
265
188
|
const val = props[key];
|
|
266
189
|
if (val !== undefined && slots.has(key))
|
|
@@ -270,36 +193,18 @@ export class Node {
|
|
|
270
193
|
to(args) {
|
|
271
194
|
return toCommand(this, args.data ?? {}, args.duration, args.easing);
|
|
272
195
|
}
|
|
273
|
-
/**
|
|
274
|
-
* Build a {@link Command} from a pure function of normalized time — an
|
|
275
|
-
* animation this node can be *evaluated* at, not only run through. The pair
|
|
276
|
-
* to {@link to}, for the built-in commands whose values at `t` are not a prop
|
|
277
|
-
* list, and what a component command's timeline lowers to.
|
|
278
|
-
*
|
|
279
|
-
* Snapshot whatever the animation starts from *outside* `at`: reading a prop
|
|
280
|
-
* inside it would re-read the value the command is itself writing.
|
|
281
|
-
*/
|
|
196
|
+
/** Builds a {@link Command} from a pure function of normalized time: an animation this node can be evaluated at, not only run. The pair to {@link to}, for commands whose values at `t` aren't a prop list. Snapshot the starting state outside `at`: reading a prop inside it would re-read what the command is writing. */
|
|
282
197
|
command(at, duration = 1, easing) {
|
|
283
198
|
if (!this._mounted)
|
|
284
199
|
return inertCommand(this, duration);
|
|
285
200
|
return makeCommand(this, at, duration, easing);
|
|
286
201
|
}
|
|
287
|
-
/**
|
|
288
|
-
* Resolve a single `to()` step into a flat {@link TweenStepper} — all the
|
|
289
|
-
* per-key setup (mapper, numeric-vs-custom routing) happens once here, then
|
|
290
|
-
* `advance(dt)` is allocation-free. Used by both a chain's iterator path and
|
|
291
|
-
* the batched `parallel` path.
|
|
292
|
-
*
|
|
293
|
-
* A subclass with positional sugar of its own (2D's `size` and anchors)
|
|
294
|
-
* expands `to` in place and then delegates here.
|
|
295
|
-
*/
|
|
202
|
+
/** Resolves one `to()` step into a flat {@link TweenStepper}: per-key setup (mapper, numeric-vs-custom routing) happens once here, so `advance(dt)` is allocation-free. Used by a chain's iterator path and the batched `parallel` path. A subclass with positional sugar expands `to` in place, then delegates here. */
|
|
296
203
|
_prepareStep(to, duration, easing) {
|
|
297
204
|
if (!this._mounted)
|
|
298
205
|
return inertStepper(duration);
|
|
299
|
-
// A tween runs in stored space
|
|
300
|
-
//
|
|
301
|
-
// Writing a step through the setter would map it a second time, which only
|
|
302
|
-
// an idempotent mapper survives.
|
|
206
|
+
// A tween runs in stored space: the destination is mapped once here and every step writes a stored value as is.
|
|
207
|
+
// Writing through the setter would map twice, which only an idempotent mapper survives.
|
|
303
208
|
const numCells = [];
|
|
304
209
|
const numFrom = [];
|
|
305
210
|
const numEnd = [];
|
|
@@ -337,20 +242,15 @@ export class Node {
|
|
|
337
242
|
if (hasCustom)
|
|
338
243
|
for (const fn of customLerps)
|
|
339
244
|
fn(easedT);
|
|
340
|
-
// A discrete prop
|
|
341
|
-
//
|
|
342
|
-
// `advance` because a `seek` past the end has, by definition, reached
|
|
343
|
-
// that end — leaving it out meant `seek(duration)` and running to
|
|
344
|
-
// `duration` produced different nodes, and only the second was right.
|
|
245
|
+
// A discrete prop snaps at the end. Applied here, not only in `advance`, because a `seek` past the end has
|
|
246
|
+
// reached that end; otherwise `seek(duration)` and running to `duration` would differ.
|
|
345
247
|
if (hasSnaps && t >= 1)
|
|
346
248
|
for (const [slot, val] of stringSnaps)
|
|
347
249
|
slot.set(val);
|
|
348
250
|
};
|
|
349
251
|
let elapsed = 0;
|
|
350
252
|
return {
|
|
351
|
-
// Tracks `elapsed
|
|
352
|
-
// where the tween is. Without it, seeking forward then advancing
|
|
353
|
-
// rewound to `dt`.
|
|
253
|
+
// Tracks `elapsed` so a seek and a subsequent advance agree on where the tween is.
|
|
354
254
|
seek: (e) => {
|
|
355
255
|
elapsed = e;
|
|
356
256
|
apply(duration > 0 ? Math.min(e / duration, 1) : 1);
|
|
@@ -372,27 +272,10 @@ export class Node {
|
|
|
372
272
|
const initial = typeof declared === "function" ? declared() : declared;
|
|
373
273
|
return initial === undefined ? undefined : mapper(initial, undefined);
|
|
374
274
|
}
|
|
375
|
-
//
|
|
376
|
-
// A per-node LIFO stack of property snapshots, mirroring Motion Canvas's
|
|
377
|
-
// node.save()/restore(). `save()` pushes a snapshot of every declared prop;
|
|
378
|
-
// `restore()` pops the most recent one and either snaps to it (no duration)
|
|
379
|
-
// or tweens the numeric props back to it over `duration`.
|
|
275
|
+
// State stack (save / restore): a per-node LIFO of property snapshots, as Motion Canvas's save()/restore().
|
|
380
276
|
/** @internal LIFO stack of save() snapshot layers. Underscore-internal so the prop companion can read it; not authoring surface. */
|
|
381
277
|
_stateStack = [];
|
|
382
|
-
/**
|
|
383
|
-
* Push a snapshot of this node's current state onto its save stack.
|
|
384
|
-
*
|
|
385
|
-
* Every reactive prop (`x`, `y`, `scale`, `opacity`, `fill`, …) is captured,
|
|
386
|
-
* preserving reactive bindings — a prop bound to `() => other().x` is saved
|
|
387
|
-
* as the binding, not just its resolved value, so {@link restore} re-binds
|
|
388
|
-
* it rather than freezing the value. Calls stack: each `save()` pushes a new
|
|
389
|
-
* layer, and each {@link restore} pops the most recent one.
|
|
390
|
-
*
|
|
391
|
-
* @example
|
|
392
|
-
* node.save();
|
|
393
|
-
* node.moveTo({ data: { x: 200, y: 0 }, duration: 1 });
|
|
394
|
-
* node.restore({ duration: 1 }); // animate back to where it was saved
|
|
395
|
-
*/
|
|
278
|
+
/** Pushes a snapshot of every reactive prop onto the save stack. Bindings are saved as bindings (not resolved values), so {@link restore} re-binds them. Calls stack. */
|
|
396
279
|
save() {
|
|
397
280
|
saveState(this);
|
|
398
281
|
}
|
|
@@ -406,7 +289,6 @@ export class Node {
|
|
|
406
289
|
}
|
|
407
290
|
return restoreAnimated(this, layer, duration, args?.easing);
|
|
408
291
|
}
|
|
409
|
-
// ---- Clock ------------------------------------------------------------
|
|
410
292
|
_time = createNodeTime();
|
|
411
293
|
/** This node's place on the scene clock. See {@link NodeTime}. */
|
|
412
294
|
get time() {
|
|
@@ -415,47 +297,24 @@ export class Node {
|
|
|
415
297
|
return this._time;
|
|
416
298
|
}
|
|
417
299
|
/**
|
|
418
|
-
*
|
|
419
|
-
*
|
|
420
|
-
*
|
|
421
|
-
*
|
|
422
|
-
*
|
|
423
|
-
*
|
|
424
|
-
* Sampling happens here, not at render: this runs on every advanced frame in
|
|
425
|
-
* every playback path (forward, scrub, precomp), whereas `render` runs only
|
|
426
|
-
* for displayed frames. Sampling per-frame is what makes velocity correct on
|
|
427
|
-
* the first frame after a scrub/rewind, where sampling only at render time
|
|
428
|
-
* read zero. The advance loop runs before `generator.next()` (so audio
|
|
429
|
-
* scheduling in generator bodies reads the right time), which means x/y here
|
|
430
|
-
* still hold the previous frame's value — velocity therefore trails the
|
|
431
|
-
* rendered position by one frame. That lag is constant and identical forward
|
|
432
|
-
* vs. scrub, and imperceptible for motion blur.
|
|
300
|
+
* Advances this node's clock (not its subtree: {@link attach} already recurses) and samples its derived render
|
|
301
|
+
* state. Sampling happens here, not at render: this runs on every advanced frame in every playback path while
|
|
302
|
+
* `render` runs only for displayed ones, so velocity is right on the first frame after a scrub. It runs before
|
|
303
|
+
* `generator.next()` (so audio scheduling in generator bodies reads the right time), so x/y still hold the
|
|
304
|
+
* previous frame's value and velocity trails the rendered position by one constant frame.
|
|
433
305
|
*/
|
|
434
306
|
_advanceOwnTime(total) {
|
|
435
307
|
advanceNodeTime(this._time, total);
|
|
436
308
|
this._sample();
|
|
437
309
|
}
|
|
438
|
-
/**
|
|
439
|
-
* Sample this node's own derived render state for the current frame. Nothing
|
|
440
|
-
* to derive in the general case; {@link Node2D} samples its motion here.
|
|
441
|
-
*
|
|
442
|
-
* @internal The per-node half of `sampleTree` — a walk, not a node method.
|
|
443
|
-
*/
|
|
310
|
+
/** @internal Per-node half of `sampleTree`; nothing to derive here, {@link Node2D} samples its motion. */
|
|
444
311
|
_sample() { }
|
|
445
|
-
/**
|
|
446
|
-
* Record this node's current position as the motion history's previous
|
|
447
|
-
* frame, stamped `at`, deriving no velocity.
|
|
448
|
-
*
|
|
449
|
-
* @internal The per-node half of `primeMotionTree`.
|
|
450
|
-
*/
|
|
312
|
+
/** @internal Per-node half of `primeMotionTree`: records the current position as the motion history's previous frame at `at`, deriving no velocity. */
|
|
451
313
|
_primeMotion(at) { }
|
|
452
|
-
// ---- Attachment -------------------------------------------------------
|
|
453
314
|
/**
|
|
454
|
-
*
|
|
455
|
-
*
|
|
456
|
-
*
|
|
457
|
-
* Safe and cheap to call every frame — an unchanged catalog/context
|
|
458
|
-
* short-circuits, and {@link resolveContext} fires only on first attach.
|
|
315
|
+
* Puts this subtree into the scene: marks it mounted, binds the asset catalog and inherited context, advances its
|
|
316
|
+
* clock to `scope.time`. Cheap to call every frame: an unchanged catalog/context short-circuits and
|
|
317
|
+
* {@link resolveContext} fires only on first attach.
|
|
459
318
|
*
|
|
460
319
|
* @internal Driven by `ClipInstance` per frame, and by {@link add} for a mid-frame subtree.
|
|
461
320
|
*/
|
|
@@ -465,9 +324,7 @@ export class Node {
|
|
|
465
324
|
if (this._assets !== scope.assets)
|
|
466
325
|
this._assets = scope.assets;
|
|
467
326
|
const next = this.provideContext(scope.context);
|
|
468
|
-
// Unchanged map, already bound, and not
|
|
469
|
-
// the whole subtree already holds `next` and the walk below would be pure
|
|
470
|
-
// repetition of the context half. The time half still has to run.
|
|
327
|
+
// Unchanged map, already bound, and not the first attach: the subtree already holds `next`, so only the time half runs.
|
|
471
328
|
const contextChanged = !this._contextBound || this._context !== next;
|
|
472
329
|
if (contextChanged) {
|
|
473
330
|
this._context = next;
|
|
@@ -483,8 +340,7 @@ export class Node {
|
|
|
483
340
|
child.attach(childScope);
|
|
484
341
|
}
|
|
485
342
|
/**
|
|
486
|
-
*
|
|
487
|
-
* stay, so it can be attached elsewhere (`reparent`). {@link dispose} tears down.
|
|
343
|
+
* Takes this subtree out of the scene without tearing it down, so it can be attached elsewhere (`reparent`); {@link dispose} tears down.
|
|
488
344
|
*
|
|
489
345
|
* @internal Driven by {@link remove}/{@link clear}.
|
|
490
346
|
*/
|
|
@@ -510,57 +366,32 @@ export class Node {
|
|
|
510
366
|
if (scope)
|
|
511
367
|
child.attach(scope);
|
|
512
368
|
}
|
|
513
|
-
|
|
514
|
-
/**
|
|
515
|
-
* Apply inherited context **values** to this node, once, after it's linked
|
|
516
|
-
* into the tree and ancestor providers have resolved: a component's
|
|
517
|
-
* `inherit` entries. Runs exactly once per instance.
|
|
518
|
-
*/
|
|
369
|
+
/** Applies inherited context values once, after linking into the tree and ancestor providers resolve (a component's `inherit` entries). */
|
|
519
370
|
resolveContext(ctx) { }
|
|
520
|
-
/**
|
|
521
|
-
* The {@link ContextMap} handed to descendants: a component's `provide`
|
|
522
|
-
* adds its tokens. The base passes the parent's map through unchanged.
|
|
523
|
-
*/
|
|
371
|
+
/** The {@link ContextMap} for descendants; a component's `provide` adds tokens, the base passes the parent's through. */
|
|
524
372
|
provideContext(parent) {
|
|
525
373
|
return parent;
|
|
526
374
|
}
|
|
527
|
-
/**
|
|
528
|
-
* Bind `node`'s asset catalog, context and clock without making it a child —
|
|
529
|
-
* for a node used purely as a pixel source (`Tex.surface`), laid out on
|
|
530
|
-
* demand rather than sitting in the tree.
|
|
531
|
-
*/
|
|
375
|
+
/** Binds `node`'s asset catalog, context and clock without making it a child, for a node used as a pixel source (`Tex.surface`) and laid out on demand. */
|
|
532
376
|
attachDetached(node) {
|
|
533
377
|
const scope = this._currentScope();
|
|
534
378
|
if (scope)
|
|
535
379
|
node.attach(scope);
|
|
536
380
|
}
|
|
537
|
-
/**
|
|
538
|
-
* Declare what this node draws from its props and inherited context alone —
|
|
539
|
-
* never `layoutBounds` or the clock. The runtime records what this reads and
|
|
540
|
-
* calls it again only when one of those props is written, so anything else it
|
|
541
|
-
* depends on is a change nobody will ask about.
|
|
542
|
-
*/
|
|
381
|
+
/** Declares what this node draws from its props and inherited context alone, never `layoutBounds` or the clock: the runtime records what this reads and re-runs it only when those props are written, so any other dependency is a change nobody will ask about. */
|
|
543
382
|
declareAssets(assets) { }
|
|
544
383
|
get children() {
|
|
545
384
|
if (_observer !== null)
|
|
546
385
|
_observer.read(this._structureSlot());
|
|
547
386
|
return this._children;
|
|
548
387
|
}
|
|
549
|
-
/**
|
|
550
|
-
* Every child, both dimensions, unfiltered — unlike {@link children}, which
|
|
551
|
-
* a {@link Node2D} filters to its own kind. Used where index has to match
|
|
552
|
-
* the authored tree (picking), since filtering would renumber it.
|
|
553
|
-
*/
|
|
388
|
+
/** Every child, both dimensions, unfiltered (unlike {@link children}, which {@link Node2D} filters): for index-matching the authored tree, as picking does. */
|
|
554
389
|
get _allChildren() {
|
|
555
390
|
if (_observer !== null)
|
|
556
391
|
_observer.read(this._structureSlot());
|
|
557
392
|
return this._children;
|
|
558
393
|
}
|
|
559
|
-
/**
|
|
560
|
-
* Add children — a node, an array, or a nested mix; falsy entries
|
|
561
|
-
* (`cond && node`) are dropped. A child of the other dimension throws —
|
|
562
|
-
* see {@link acceptsChild}.
|
|
563
|
-
*/
|
|
394
|
+
/** Adds children (a node, array, or nested mix; falsy entries dropped). A child of the other dimension throws, see {@link acceptsChild}. */
|
|
564
395
|
add(child) {
|
|
565
396
|
if (child instanceof Node) {
|
|
566
397
|
this._addChild(child);
|
|
@@ -580,7 +411,6 @@ export class Node {
|
|
|
580
411
|
this._removeChild(node);
|
|
581
412
|
}
|
|
582
413
|
}
|
|
583
|
-
/** Remove every child, detaching each (see {@link remove}). */
|
|
584
414
|
clear() {
|
|
585
415
|
for (const child of this._children) {
|
|
586
416
|
if (_observer !== null)
|
|
@@ -590,15 +420,7 @@ export class Node {
|
|
|
590
420
|
}
|
|
591
421
|
this._children.length = 0;
|
|
592
422
|
}
|
|
593
|
-
/**
|
|
594
|
-
* Insert `child` at `index` among this node's children.
|
|
595
|
-
*
|
|
596
|
-
* On {@link Node} rather than {@link Node2D} because it is tree machinery —
|
|
597
|
-
* `ClipTimeline.syncPresence` reaches for it on whatever a spec's
|
|
598
|
-
* `parentId` names, which since audio joined the graph is not always a 2D
|
|
599
|
-
* node. `Node2D` overrides it for the animated insert, which measures the
|
|
600
|
-
* child off-tree and so needs a laid-out one.
|
|
601
|
-
*/
|
|
423
|
+
/** Inserts `child` at `index`. On {@link Node} because it's tree machinery (`ClipTimeline.syncPresence` calls it on whatever a spec's `parentId` names, not always 2D); `Node2D` overrides it for the animated insert, which measures the child off-tree. */
|
|
602
424
|
addChildAt(args) {
|
|
603
425
|
const { child, index } = args.data;
|
|
604
426
|
this.assertAcceptsChild(child);
|