@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spec.js","sourceRoot":"","sources":["../../../../src/attributes/shape/effects/spec.ts"],"names":[],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AO,EAAE,IAAI,CAAC,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAE,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE;YAChH,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC;YAC/C,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QACxD,CAAC,CAAC,CAAC,CAAmC;QACtC,MAAM;KACT,CAAC;IACF,IAAI,IAAI,CAAC,MAAM;QAAE,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;IAC1C,IAAI,IAAI,CAAC,WAAW;QAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;IACzD,IAAI,IAAI,CAAC,MAAM;QAAE,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;IAC1C,OAAO,GAAG,CAAC;AACf,CAAC","sourcesContent":["import { lerpNumber } from \"@/tween/lerp\";\nimport { lerpVector2, type Vector2 } from \"@/attributes/layout/vector2\";\nimport { lerpColor } from \"@/attributes/shape/fill/lerp\";\nimport type { Color } from \"@/attributes/shape/fill/color/parser\";\nimport type { AssetScope } from \"@/assets/scope\";\nimport type { EffectAxis, EffectData, EffectMode, EffectOptions, EffectSurface, ModedEffect } from \"./effect-data\";\nimport { resolveEffectColor, sameEffectAxis, sameEffectColor, scalarOptions, withEffectOptions } from \"./effect-data\";\n\n/**\n * How a parameter's value is shaped, which decides its default interpolation,\n * equality and how a renderer encodes it into a uniform.\n */\nexport type EffectParamKind =\n | \"number\"\n | \"color\"\n | \"vec2\"\n | \"enum\"\n | \"boolean\"\n | \"axis\"\n | \"text\"\n | \"colors\"\n | \"numbers\"\n | \"points\"\n | \"table\"\n | \"uniforms\";\n\n/** What a number measures, for a host's units and a renderer's scaling. */\nexport type EffectParamUnit = \"px\" | \"deg\" | \"percent\" | \"factor\" | \"normalized\";\n\n/** The picker family an effect is listed under. */\nexport type EffectGroup = \"blur\" | \"light\" | \"color\" | \"stylize\" | \"distort\" | \"glitch\";\n\n/** The control an inspector should draw for a parameter. */\nexport type EffectParamControl = \"number\" | \"slider\" | \"angle\" | \"hue\" | \"segmented\" | \"select\" | \"text\" | \"color\" | \"point\" | \"toggle\";\n\n/** Per-parameter inspector hints. None of them changes what the effect does. */\nexport interface EffectParamHints {\n /** i18n leaf for the field's label; defaults to the parameter name. */\n readonly label?: string;\n readonly control?: EffectParamControl;\n /** Shown on the effect's row beside its name (one per effect). */\n readonly inline?: boolean;\n /** Inspector position; defaults to the declaration order. */\n readonly order?: number;\n /** For an angle: where 0° points (the bearing turns clockwise). Defaults to `\"right\"`. */\n readonly zero?: \"right\" | \"top\";\n /** i18n group for an enum's option labels. */\n readonly optionsLabel?: string;\n /** Not offered as a field: the value a fresh effect carries is kept as is. */\n readonly hidden?: boolean;\n /** Where a freshly inserted effect starts, when the builder default would show nothing. */\n readonly initial?: unknown;\n}\n\n/** Interpolates one parameter. `from`/`to` are the whole effects, for parameters that depend on a sibling. */\nexport type EffectParamLerp<T> = (a: T, b: T, t: number, from: Record<string, unknown>, to: Record<string, unknown>) => T;\n\n/**\n * One parameter of a built-in effect: a stored field of the effect object.\n *\n * `T` is the stored type, `In` what a builder accepts for it (`normalize` maps\n * one to the other: a bare number for a per-axis count, say). Only the\n * serialisable fields reach {@link EffectDescriptor}.\n */\nexport interface EffectParamDef<T = unknown, In = T> extends EffectParamHints {\n readonly kind: EffectParamKind;\n /** What the builder writes when the option is omitted (an input, before `normalize`). */\n readonly default?: In;\n /** The stored field may be absent (`colorAdjustment`'s fields, `curves.channel`). */\n readonly optional?: boolean;\n /** The builder's options type requires it. */\n readonly required?: boolean;\n readonly min?: number;\n readonly max?: number;\n readonly step?: number;\n readonly unit?: EffectParamUnit;\n /** An enum's values, in the order a renderer indexes them. */\n readonly options?: readonly (string | number)[];\n readonly normalize?: (input: In) => T;\n /** `\"step\"` switches at the midpoint; omitted uses the kind's interpolation. */\n readonly lerp?: \"step\" | EffectParamLerp<T>;\n readonly equals?: (a: T, b: T) => boolean;\n /** Type carrier only; never set. */\n readonly __type?: [T, In];\n}\n\n/** An effect's parameters, by stored field name, in builder (and stored-key) order. */\nexport type EffectParamTable = Readonly<Record<string, EffectParamDef<any, any>>>;\n\n/**\n * The declarative definition of a built-in effect: its parameters (types,\n * defaults, ranges, inspector hints) plus the behaviour that has to stay code.\n * Core's types, builder defaults, `lerp`/`equals` and the host-facing\n * {@link EffectDescriptor} are derived from it, and the renderers bind their\n * shader uniforms to its parameter names.\n */\nexport interface EffectSpec<T extends string = string, P extends EffectParamTable = EffectParamTable> {\n readonly type: T;\n readonly params: P;\n readonly group: EffectGroup;\n /** The option a bare number passed to the builder sets. */\n readonly scalar?: string;\n /** The builder's `mode` when none is given. */\n readonly defaultMode?: EffectMode;\n /** The one layer the effect does anything on. */\n readonly onlyOn?: EffectMode;\n /** Builder options at which the effect draws nothing, or `null` when it has none. */\n readonly neutral: Readonly<Record<string, unknown>> | null;\n readonly surface?: EffectData<any>[\"surface\"];\n readonly resolve?: (effect: any) => any;\n readonly declare?: (effect: any, assets: AssetScope) => void;\n /** Wraps or replaces the derived interpolation, which it is handed as `derived`. */\n readonly lerp?: (from: any, to: any, t: number, derived: (from: any, to: any, t: number) => any) => any;\n readonly equals?: (a: any, b: any) => boolean;\n}\n\ntype ParamValue<D> = D extends { readonly __type?: [infer T, unknown] } ? T : never;\ntype ParamInput<D> = D extends { readonly __type?: [unknown, infer I] } ? I : never;\ntype IsOptional<D> = D extends { readonly optional: true } ? true : false;\ntype IsRequired<D> = D extends { readonly required: true } ? true : false;\n\n/** The stored fields an effect's parameters describe. */\nexport type EffectFields<P extends EffectParamTable> = {\n -readonly [K in keyof P as IsOptional<P[K]> extends true ? never : K]: ParamValue<P[K]>;\n} & {\n -readonly [K in keyof P as IsOptional<P[K]> extends true ? K : never]?: ParamValue<P[K]>;\n};\n\n/** A builder's options for an effect: every parameter as input, plus `mode`/`clip`. */\nexport type EffectOptionsOf<P extends EffectParamTable> = {\n -readonly [K in keyof P as IsRequired<P[K]> extends true ? K : never]: ParamInput<P[K]>;\n} & {\n -readonly [K in keyof P as IsRequired<P[K]> extends true ? never : K]?: ParamInput<P[K]>;\n} & EffectOptions;\n\n/** The effect object a spec describes. */\nexport type EffectOf<S extends EffectSpec> = { type: S[\"type\"] } & ModedEffect & EffectFields<S[\"params\"]>;\n\n/** Declares a built-in effect; see {@link EffectSpec}. */\nexport function defineEffect<const T extends string, const P extends EffectParamTable>(\n spec: EffectSpec<T, P>,\n): EffectSpec<T, P> {\n return spec;\n}\n\n/** The middle of the layer, every centre option's default. Shared, as it always was. */\nexport const CENTER: Vector2 = { x: 0.5, y: 0.5 };\n\ntype Options<T, In = T> = Omit<EffectParamDef<T, In>, \"kind\" | \"__type\" | \"options\" | \"normalize\" | \"lerp\" | \"equals\">;\n// Kept out of the inferred options so a lambda here is typed by its parameter.\ntype Behaviour<T> = Pick<EffectParamDef<T>, \"lerp\" | \"equals\">;\n\n/** Parameter constructors for {@link defineEffect}. */\nexport const param = {\n number<const O extends Options<number>>(o: O & Behaviour<number> & { normalize?: (input: number) => number }): EffectParamDef<number> & NoInfer<O> & { kind: \"number\" } {\n return { kind: \"number\", ...o };\n },\n color<const O extends Options<Color>>(o: O & Behaviour<Color>): EffectParamDef<Color> & NoInfer<O> & { kind: \"color\" } {\n return { kind: \"color\", ...o };\n },\n /** A point or per-axis pair. `fromNumber` lets the builder take a bare number for it. */\n vec2<const O extends Options<Vector2, number | Vector2> & { fromNumber?: \"both\" | \"y\" }>(\n o: O & Behaviour<Vector2>,\n ): EffectParamDef<Vector2, O extends { fromNumber: string } ? number | Vector2 : Vector2> & NoInfer<O> & { kind: \"vec2\" } {\n const normalize = o.fromNumber === undefined\n ? undefined\n : o.fromNumber === \"both\"\n ? (v: number | Vector2) => (typeof v === \"number\" ? { x: v, y: v } : v)\n : (v: number | Vector2) => (typeof v === \"number\" ? { x: 0, y: v } : v);\n return { kind: \"vec2\", ...(normalize ? { normalize } : {}), ...o } as never;\n },\n choice<const V extends string | number, const O extends Options<V>>(\n options: readonly V[],\n o: O & Behaviour<V>,\n ): EffectParamDef<V> & NoInfer<O> & { kind: \"enum\"; options: readonly V[] } {\n return { kind: \"enum\", options, lerp: \"step\", ...o };\n },\n boolean<const O extends Options<boolean>>(o: O & Behaviour<boolean>): EffectParamDef<boolean> & NoInfer<O> & { kind: \"boolean\" } {\n return { kind: \"boolean\", lerp: \"step\", ...o };\n },\n axis<const O extends Options<EffectAxis>>(o: O & Behaviour<EffectAxis>): EffectParamDef<EffectAxis> & NoInfer<O> & { kind: \"axis\" } {\n return { kind: \"axis\", lerp: \"step\", ...o };\n },\n text<V extends string = string, const O extends Options<V> = Options<V>>(o: O & Behaviour<V>): EffectParamDef<V> & NoInfer<O> & { kind: \"text\" } {\n return { kind: \"text\", lerp: \"step\", ...o };\n },\n /**\n * A parameter of stored type `T` that no generic kind covers, curried so\n * `T` is given and the options inferred: `param.of<Color[]>()({ kind: \"colors\", … })`.\n * It steps and compares by `===` unless given `lerp`/`equals`.\n */\n of<T>() {\n return <const O extends Options<T> & { kind: EffectParamKind }>(o: O & Behaviour<T>): EffectParamDef<T> & NoInfer<O> =>\n ({ lerp: \"step\", ...o }) as never;\n },\n};\n\nconst step = <T>(a: T, b: T, t: number): T => (t < 0.5 ? a : b);\nconst same = (a: unknown, b: unknown) => a === b;\nconst sameVector = (a: Vector2, b: Vector2) => a.x === b.x && a.y === b.y;\n\nconst KIND_LERP: Partial<Record<EffectParamKind, EffectParamLerp<any>>> = {\n number: lerpNumber,\n color: (a: Color, b: Color, t) => lerpColor(resolveEffectColor(a), resolveEffectColor(b), t),\n vec2: lerpVector2,\n};\n\nconst KIND_EQUALS: Partial<Record<EffectParamKind, (a: any, b: any) => boolean>> = {\n color: sameEffectColor,\n vec2: sameVector,\n axis: sameEffectAxis,\n};\n\nfunction paramLerp(def: EffectParamDef<any, any>): EffectParamLerp<unknown> {\n if (typeof def.lerp === \"function\") return def.lerp;\n const kind = def.lerp === \"step\" ? undefined : KIND_LERP[def.kind];\n if (!kind) return step;\n // An absent optional field tweens from what it means when absent.\n if (def.optional && def.default !== undefined) {\n const fallback = def.default;\n return (a, b, t, from, to) => kind(a ?? fallback, b ?? fallback, t, from, to);\n }\n return kind;\n}\n\n/** The derived `EffectData` of a spec: generic per-kind `lerp`/`equals` unless the spec gives its own. */\nexport function effectDataOf<S extends EffectSpec>(spec: S): EffectData<EffectOf<S>> {\n const entries = Object.entries(spec.params);\n const lerps = entries.map(([name, def]) => [name, paramLerp(def)] as const);\n const equals = entries.map(([name, def]) => [name, def.equals ?? KIND_EQUALS[def.kind] ?? same] as const);\n const derived = (from: EffectOf<S>, to: EffectOf<S>, t: number): EffectOf<S> => {\n const out: Record<string, unknown> = { type: spec.type };\n const f = from as unknown as Record<string, unknown>;\n const g = to as unknown as Record<string, unknown>;\n for (const [name, lerp] of lerps) out[name] = lerp(f[name], g[name], t, f, g);\n return out as EffectOf<S>;\n };\n const custom = spec.lerp;\n const data: EffectData<EffectOf<S>> = {\n lerp: custom ? (from, to, t) => custom(from, to, t, derived) : derived,\n equals: spec.equals ?? ((a, b) => {\n const x = a as unknown as Record<string, unknown>;\n const y = b as unknown as Record<string, unknown>;\n return equals.every(([name, eq]) => eq(x[name], y[name]));\n }),\n };\n if (spec.surface !== undefined) data.surface = spec.surface;\n if (spec.resolve) data.resolve = spec.resolve;\n if (spec.declare) data.declare = spec.declare;\n return data;\n}\n\n// Arrays are copied so editing one effect's list never reaches another's;\n// objects (a centre point) are shared, as they always were.\nconst copyDefault = (value: unknown) => (Array.isArray(value) ? [...value] : value);\n\n/**\n * Builds an effect from builder input: the scalar shorthand, then each\n * parameter's option or default (normalised), then `mode`/`clip`.\n */\nexport function buildEffect<S extends EffectSpec>(\n spec: S,\n arg: number | EffectOptionsOf<S[\"params\"]> | undefined,\n): EffectOf<S> {\n const o = (spec.scalar\n ? scalarOptions(arg as number | Record<string, unknown> | undefined, spec.scalar as never)\n : (arg ?? {})) as Record<string, unknown> & EffectOptions;\n const out: Record<string, unknown> = { type: spec.type };\n for (const [name, def] of Object.entries(spec.params)) {\n const value = o[name] ?? copyDefault(def.default);\n if (value === undefined) continue;\n out[name] = def.normalize ? def.normalize(value) : value;\n }\n const options = spec.defaultMode && o.mode === undefined ? { ...o, mode: spec.defaultMode } : o;\n return withEffectOptions(out, options) as unknown as EffectOf<S>;\n}\n\n/** A JSON value — what every field of an {@link EffectDescriptor} is made of. */\nexport type EffectJson = string | number | boolean | null | EffectJson[] | { [key: string]: EffectJson };\n\n/** One parameter of an {@link EffectDescriptor}. */\nexport interface EffectParamDescriptor {\n /** The stored field it writes. */\n name: string;\n kind: EffectParamKind;\n /** What the builder writes when it is omitted, as stored (colours as authored). */\n default?: EffectJson;\n /** The builder's options require it. */\n required?: boolean;\n /** The stored field may be absent. */\n optional?: boolean;\n min?: number;\n max?: number;\n step?: number;\n unit?: EffectParamUnit;\n options?: (string | number)[];\n /** Tweens continuously (false: switches at the midpoint). */\n animatable: boolean;\n /** i18n leaf for the label; the name unless the spec says otherwise. */\n label: string;\n control?: EffectParamControl;\n inline?: boolean;\n /** Inspector position. */\n order: number;\n zero?: \"right\" | \"top\";\n optionsLabel?: string;\n hidden?: boolean;\n initial?: EffectJson;\n}\n\n/**\n * A built-in effect, described for a host: what its fields are, their kinds,\n * defaults and ranges, and how an inspector should lay them out. Plain JSON, so\n * it can be shipped to a UI as is.\n */\nexport interface EffectDescriptor {\n type: string;\n group: EffectGroup;\n /** `\"dynamic\"`: depends on the effect's `mode` (the user shader). */\n surface: EffectSurface | \"dynamic\";\n scalar?: string;\n defaultMode?: EffectMode;\n onlyOn?: EffectMode;\n /** Stored fields at which it draws nothing (the rest at their defaults); `null` when it has none. */\n neutral: { [key: string]: EffectJson } | null;\n /** In stored-key order; sort by `order` for the inspector's. */\n params: EffectParamDescriptor[];\n}\n\nconst json = (value: unknown): EffectJson | undefined =>\n value === undefined ? undefined : (JSON.parse(JSON.stringify(value)) as EffectJson);\n\n/** The serialisable {@link EffectDescriptor} of a spec. */\nexport function describeSpec(spec: EffectSpec): EffectDescriptor {\n const params = Object.entries(spec.params).map(([name, def], index): EffectParamDescriptor => {\n const stored = def.default !== undefined && def.normalize ? def.normalize(def.default) : def.default;\n const out: EffectParamDescriptor = {\n name,\n kind: def.kind,\n animatable: def.lerp !== \"step\",\n label: def.label ?? name,\n order: def.order ?? index,\n };\n const optional = {\n default: json(stored),\n required: def.required,\n optional: def.optional,\n min: def.min,\n max: def.max,\n step: def.step,\n unit: def.unit,\n options: def.options ? [...def.options] : undefined,\n control: def.control,\n inline: def.inline,\n zero: def.zero,\n optionsLabel: def.optionsLabel,\n hidden: def.hidden,\n initial: json(def.initial),\n };\n for (const [key, value] of Object.entries(optional)) {\n if (value !== undefined) (out as unknown as Record<string, unknown>)[key] = value;\n }\n return out;\n });\n const out: EffectDescriptor = {\n type: spec.type,\n group: spec.group,\n surface: typeof spec.surface === \"function\" ? \"dynamic\" : (spec.surface ?? \"filter\"),\n neutral: spec.neutral === null ? null : (json(Object.fromEntries(Object.entries(spec.neutral).map(([name, value]) => {\n const normalize = spec.params[name]?.normalize;\n return [name, normalize ? normalize(value) : value];\n }))) as { [key: string]: EffectJson }),\n params,\n };\n if (spec.scalar) out.scalar = spec.scalar;\n if (spec.defaultMode) out.defaultMode = spec.defaultMode;\n if (spec.onlyOn) out.onlyOn = spec.onlyOn;\n return out;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"spec.js","sourceRoot":"","sources":["../../../../src/attributes/shape/effects/spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;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AI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE;YAChH,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC;YAC/C,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QACxD,CAAC,CAAC,CAAC,CAAmC;QACtC,MAAM;KACT,CAAC;IACF,IAAI,IAAI,CAAC,MAAM;QAAE,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;IAC1C,IAAI,IAAI,CAAC,WAAW;QAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;IACzD,IAAI,IAAI,CAAC,MAAM;QAAE,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;IAC1C,OAAO,GAAG,CAAC;AACf,CAAC","sourcesContent":["import { lerpNumber } from \"@/tween/lerp\";\nimport { lerpVector2, type Vector2 } from \"@/attributes/layout/vector2\";\nimport { lerpColor } from \"@/attributes/shape/fill/lerp\";\nimport type { Color } from \"@/attributes/shape/fill/color/parser\";\nimport type { AssetScope } from \"@/assets/scope\";\nimport type { EffectAxis, EffectData, EffectMode, EffectOptions, EffectSurface, ModedEffect } from \"./effect-data\";\nimport { resolveEffectColor, sameEffectAxis, sameEffectColor, scalarOptions, withEffectOptions } from \"./effect-data\";\n\n/** How a parameter's value is shaped: its default interpolation, equality and uniform encoding. */\nexport type EffectParamKind =\n | \"number\"\n | \"color\"\n | \"vec2\"\n | \"enum\"\n | \"boolean\"\n | \"axis\"\n | \"text\"\n | \"colors\"\n | \"numbers\"\n | \"points\"\n | \"table\"\n | \"uniforms\";\n\n/** What a number measures, for a host's units and a renderer's scaling. */\nexport type EffectParamUnit = \"px\" | \"deg\" | \"percent\" | \"factor\" | \"normalized\";\n\n/** The picker family an effect is listed under. */\nexport type EffectGroup = \"blur\" | \"light\" | \"color\" | \"stylize\" | \"distort\" | \"glitch\";\n\n/** The control an inspector should draw for a parameter. */\nexport type EffectParamControl = \"number\" | \"slider\" | \"angle\" | \"hue\" | \"segmented\" | \"select\" | \"text\" | \"color\" | \"point\" | \"toggle\";\n\n/** Per-parameter inspector hints. None of them changes what the effect does. */\nexport interface EffectParamHints {\n /** i18n leaf for the field's label; defaults to the parameter name. */\n readonly label?: string;\n readonly control?: EffectParamControl;\n /** Shown on the effect's row beside its name (one per effect). */\n readonly inline?: boolean;\n /** Inspector position; defaults to the declaration order. */\n readonly order?: number;\n /** For an angle: where 0° points (the bearing turns clockwise). Defaults to `\"right\"`. */\n readonly zero?: \"right\" | \"top\";\n /** i18n group for an enum's option labels. */\n readonly optionsLabel?: string;\n /** Not offered as a field: the value a fresh effect carries is kept as is. */\n readonly hidden?: boolean;\n /** Where a freshly inserted effect starts, when the builder default would show nothing. */\n readonly initial?: unknown;\n}\n\n/** Interpolates one parameter. `from`/`to` are the whole effects, for parameters that depend on a sibling. */\nexport type EffectParamLerp<T> = (a: T, b: T, t: number, from: Record<string, unknown>, to: Record<string, unknown>) => T;\n\n/** One parameter of a built-in effect: a stored field. `T` is the stored type, `In` what a builder accepts (`normalize` maps one to the other); only the serialisable fields reach {@link EffectDescriptor}. */\nexport interface EffectParamDef<T = unknown, In = T> extends EffectParamHints {\n readonly kind: EffectParamKind;\n /** What the builder writes when the option is omitted (an input, before `normalize`). */\n readonly default?: In;\n /** The stored field may be absent (`colorAdjustment`'s fields, `curves.channel`). */\n readonly optional?: boolean;\n /** The builder's options type requires it. */\n readonly required?: boolean;\n readonly min?: number;\n readonly max?: number;\n readonly step?: number;\n readonly unit?: EffectParamUnit;\n /** An enum's values, in the order a renderer indexes them. */\n readonly options?: readonly (string | number)[];\n readonly normalize?: (input: In) => T;\n /** `\"step\"` switches at the midpoint; omitted uses the kind's interpolation. */\n readonly lerp?: \"step\" | EffectParamLerp<T>;\n readonly equals?: (a: T, b: T) => boolean;\n /** Type carrier only; never set. */\n readonly __type?: [T, In];\n}\n\n/** An effect's parameters, by stored field name, in builder (and stored-key) order. */\nexport type EffectParamTable = Readonly<Record<string, EffectParamDef<any, any>>>;\n\n/** The declarative definition of a built-in effect: its parameters plus the behaviour that has to stay code. Core's types, builder defaults, `lerp`/`equals` and the host-facing {@link EffectDescriptor} derive from it, and renderers bind shader uniforms to its parameter names. */\nexport interface EffectSpec<T extends string = string, P extends EffectParamTable = EffectParamTable> {\n readonly type: T;\n readonly params: P;\n readonly group: EffectGroup;\n /** The option a bare number passed to the builder sets. */\n readonly scalar?: string;\n /** The builder's `mode` when none is given. */\n readonly defaultMode?: EffectMode;\n /** The one layer the effect does anything on. */\n readonly onlyOn?: EffectMode;\n /** Builder options at which the effect draws nothing, or `null` when it has none. */\n readonly neutral: Readonly<Record<string, unknown>> | null;\n readonly surface?: EffectData<any>[\"surface\"];\n readonly resolve?: (effect: any) => any;\n readonly declare?: (effect: any, assets: AssetScope) => void;\n /** Wraps or replaces the derived interpolation, which it is handed as `derived`. */\n readonly lerp?: (from: any, to: any, t: number, derived: (from: any, to: any, t: number) => any) => any;\n readonly equals?: (a: any, b: any) => boolean;\n}\n\ntype ParamValue<D> = D extends { readonly __type?: [infer T, unknown] } ? T : never;\ntype ParamInput<D> = D extends { readonly __type?: [unknown, infer I] } ? I : never;\ntype IsOptional<D> = D extends { readonly optional: true } ? true : false;\ntype IsRequired<D> = D extends { readonly required: true } ? true : false;\n\n/** The stored fields an effect's parameters describe. */\nexport type EffectFields<P extends EffectParamTable> = {\n -readonly [K in keyof P as IsOptional<P[K]> extends true ? never : K]: ParamValue<P[K]>;\n} & {\n -readonly [K in keyof P as IsOptional<P[K]> extends true ? K : never]?: ParamValue<P[K]>;\n};\n\n/** A builder's options for an effect: every parameter as input, plus `mode`/`clip`. */\nexport type EffectOptionsOf<P extends EffectParamTable> = {\n -readonly [K in keyof P as IsRequired<P[K]> extends true ? K : never]: ParamInput<P[K]>;\n} & {\n -readonly [K in keyof P as IsRequired<P[K]> extends true ? never : K]?: ParamInput<P[K]>;\n} & EffectOptions;\n\n/** The effect object a spec describes. */\nexport type EffectOf<S extends EffectSpec> = { type: S[\"type\"] } & ModedEffect & EffectFields<S[\"params\"]>;\n\nexport function defineEffect<const T extends string, const P extends EffectParamTable>(\n spec: EffectSpec<T, P>,\n): EffectSpec<T, P> {\n return spec;\n}\n\n/** The middle of the layer, every centre option's default. */\nexport const CENTER: Vector2 = { x: 0.5, y: 0.5 };\n\ntype Options<T, In = T> = Omit<EffectParamDef<T, In>, \"kind\" | \"__type\" | \"options\" | \"normalize\" | \"lerp\" | \"equals\">;\n// Kept out of the inferred options so a lambda here is typed by its parameter.\ntype Behaviour<T> = Pick<EffectParamDef<T>, \"lerp\" | \"equals\">;\n\n/** Parameter constructors for {@link defineEffect}. */\nexport const param = {\n number<const O extends Options<number>>(o: O & Behaviour<number> & { normalize?: (input: number) => number }): EffectParamDef<number> & NoInfer<O> & { kind: \"number\" } {\n return { kind: \"number\", ...o };\n },\n color<const O extends Options<Color>>(o: O & Behaviour<Color>): EffectParamDef<Color> & NoInfer<O> & { kind: \"color\" } {\n return { kind: \"color\", ...o };\n },\n /** A point or per-axis pair. `fromNumber` lets the builder take a bare number for it. */\n vec2<const O extends Options<Vector2, number | Vector2> & { fromNumber?: \"both\" | \"y\" }>(\n o: O & Behaviour<Vector2>,\n ): EffectParamDef<Vector2, O extends { fromNumber: string } ? number | Vector2 : Vector2> & NoInfer<O> & { kind: \"vec2\" } {\n const normalize = o.fromNumber === undefined\n ? undefined\n : o.fromNumber === \"both\"\n ? (v: number | Vector2) => (typeof v === \"number\" ? { x: v, y: v } : v)\n : (v: number | Vector2) => (typeof v === \"number\" ? { x: 0, y: v } : v);\n return { kind: \"vec2\", ...(normalize ? { normalize } : {}), ...o } as never;\n },\n choice<const V extends string | number, const O extends Options<V>>(\n options: readonly V[],\n o: O & Behaviour<V>,\n ): EffectParamDef<V> & NoInfer<O> & { kind: \"enum\"; options: readonly V[] } {\n return { kind: \"enum\", options, lerp: \"step\", ...o };\n },\n boolean<const O extends Options<boolean>>(o: O & Behaviour<boolean>): EffectParamDef<boolean> & NoInfer<O> & { kind: \"boolean\" } {\n return { kind: \"boolean\", lerp: \"step\", ...o };\n },\n axis<const O extends Options<EffectAxis>>(o: O & Behaviour<EffectAxis>): EffectParamDef<EffectAxis> & NoInfer<O> & { kind: \"axis\" } {\n return { kind: \"axis\", lerp: \"step\", ...o };\n },\n text<V extends string = string, const O extends Options<V> = Options<V>>(o: O & Behaviour<V>): EffectParamDef<V> & NoInfer<O> & { kind: \"text\" } {\n return { kind: \"text\", lerp: \"step\", ...o };\n },\n /** A parameter of stored type `T` no generic kind covers, curried so `T` is given and options inferred: `param.of<Color[]>()({ kind: \"colors\", … })`. Steps and compares by `===` unless given `lerp`/`equals`. */\n of<T>() {\n return <const O extends Options<T> & { kind: EffectParamKind }>(o: O & Behaviour<T>): EffectParamDef<T> & NoInfer<O> =>\n ({ lerp: \"step\", ...o }) as never;\n },\n};\n\nconst step = <T>(a: T, b: T, t: number): T => (t < 0.5 ? a : b);\nconst same = (a: unknown, b: unknown) => a === b;\nconst sameVector = (a: Vector2, b: Vector2) => a.x === b.x && a.y === b.y;\n\nconst KIND_LERP: Partial<Record<EffectParamKind, EffectParamLerp<any>>> = {\n number: lerpNumber,\n color: (a: Color, b: Color, t) => lerpColor(resolveEffectColor(a), resolveEffectColor(b), t),\n vec2: lerpVector2,\n};\n\nconst KIND_EQUALS: Partial<Record<EffectParamKind, (a: any, b: any) => boolean>> = {\n color: sameEffectColor,\n vec2: sameVector,\n axis: sameEffectAxis,\n};\n\nfunction paramLerp(def: EffectParamDef<any, any>): EffectParamLerp<unknown> {\n if (typeof def.lerp === \"function\") return def.lerp;\n const kind = def.lerp === \"step\" ? undefined : KIND_LERP[def.kind];\n if (!kind) return step;\n // An absent optional field tweens from what it means when absent.\n if (def.optional && def.default !== undefined) {\n const fallback = def.default;\n return (a, b, t, from, to) => kind(a ?? fallback, b ?? fallback, t, from, to);\n }\n return kind;\n}\n\n/** The derived `EffectData` of a spec: generic per-kind `lerp`/`equals` unless the spec gives its own. */\nexport function effectDataOf<S extends EffectSpec>(spec: S): EffectData<EffectOf<S>> {\n const entries = Object.entries(spec.params);\n const lerps = entries.map(([name, def]) => [name, paramLerp(def)] as const);\n const equals = entries.map(([name, def]) => [name, def.equals ?? KIND_EQUALS[def.kind] ?? same] as const);\n const derived = (from: EffectOf<S>, to: EffectOf<S>, t: number): EffectOf<S> => {\n const out: Record<string, unknown> = { type: spec.type };\n const f = from as unknown as Record<string, unknown>;\n const g = to as unknown as Record<string, unknown>;\n for (const [name, lerp] of lerps) out[name] = lerp(f[name], g[name], t, f, g);\n return out as EffectOf<S>;\n };\n const custom = spec.lerp;\n const data: EffectData<EffectOf<S>> = {\n lerp: custom ? (from, to, t) => custom(from, to, t, derived) : derived,\n equals: spec.equals ?? ((a, b) => {\n const x = a as unknown as Record<string, unknown>;\n const y = b as unknown as Record<string, unknown>;\n return equals.every(([name, eq]) => eq(x[name], y[name]));\n }),\n };\n if (spec.surface !== undefined) data.surface = spec.surface;\n if (spec.resolve) data.resolve = spec.resolve;\n if (spec.declare) data.declare = spec.declare;\n return data;\n}\n\n// Arrays are copied so editing one effect's list never reaches another's; objects (a centre point) are shared.\nconst copyDefault = (value: unknown) => (Array.isArray(value) ? [...value] : value);\n\n/**\n * Builds an effect from builder input: the scalar shorthand, then each\n * parameter's option or default (normalised), then `mode`/`clip`.\n */\nexport function buildEffect<S extends EffectSpec>(\n spec: S,\n arg: number | EffectOptionsOf<S[\"params\"]> | undefined,\n): EffectOf<S> {\n const o = (spec.scalar\n ? scalarOptions(arg as number | Record<string, unknown> | undefined, spec.scalar as never)\n : (arg ?? {})) as Record<string, unknown> & EffectOptions;\n const out: Record<string, unknown> = { type: spec.type };\n for (const [name, def] of Object.entries(spec.params)) {\n const value = o[name] ?? copyDefault(def.default);\n if (value === undefined) continue;\n out[name] = def.normalize ? def.normalize(value) : value;\n }\n const options = spec.defaultMode && o.mode === undefined ? { ...o, mode: spec.defaultMode } : o;\n return withEffectOptions(out, options) as unknown as EffectOf<S>;\n}\n\n/** A JSON value — what every field of an {@link EffectDescriptor} is made of. */\nexport type EffectJson = string | number | boolean | null | EffectJson[] | { [key: string]: EffectJson };\n\n/** One parameter of an {@link EffectDescriptor}. */\nexport interface EffectParamDescriptor {\n /** The stored field it writes. */\n name: string;\n kind: EffectParamKind;\n /** What the builder writes when it is omitted, as stored (colours as authored). */\n default?: EffectJson;\n /** The builder's options require it. */\n required?: boolean;\n /** The stored field may be absent. */\n optional?: boolean;\n min?: number;\n max?: number;\n step?: number;\n unit?: EffectParamUnit;\n options?: (string | number)[];\n /** Tweens continuously (false: switches at the midpoint). */\n animatable: boolean;\n /** i18n leaf for the label; the name unless the spec says otherwise. */\n label: string;\n control?: EffectParamControl;\n inline?: boolean;\n /** Inspector position. */\n order: number;\n zero?: \"right\" | \"top\";\n optionsLabel?: string;\n hidden?: boolean;\n initial?: EffectJson;\n}\n\n/** A built-in effect described for a host (fields, kinds, defaults, ranges, inspector layout) as plain JSON, shippable to a UI as is. */\nexport interface EffectDescriptor {\n type: string;\n group: EffectGroup;\n /** `\"dynamic\"`: depends on the effect's `mode` (the user shader). */\n surface: EffectSurface | \"dynamic\";\n scalar?: string;\n defaultMode?: EffectMode;\n onlyOn?: EffectMode;\n /** Stored fields at which it draws nothing (the rest at their defaults); `null` when it has none. */\n neutral: { [key: string]: EffectJson } | null;\n /** In stored-key order; sort by `order` for the inspector's. */\n params: EffectParamDescriptor[];\n}\n\nconst json = (value: unknown): EffectJson | undefined =>\n value === undefined ? undefined : (JSON.parse(JSON.stringify(value)) as EffectJson);\n\n/** The serialisable {@link EffectDescriptor} of a spec. */\nexport function describeSpec(spec: EffectSpec): EffectDescriptor {\n const params = Object.entries(spec.params).map(([name, def], index): EffectParamDescriptor => {\n const stored = def.default !== undefined && def.normalize ? def.normalize(def.default) : def.default;\n const out: EffectParamDescriptor = {\n name,\n kind: def.kind,\n animatable: def.lerp !== \"step\",\n label: def.label ?? name,\n order: def.order ?? index,\n };\n const optional = {\n default: json(stored),\n required: def.required,\n optional: def.optional,\n min: def.min,\n max: def.max,\n step: def.step,\n unit: def.unit,\n options: def.options ? [...def.options] : undefined,\n control: def.control,\n inline: def.inline,\n zero: def.zero,\n optionsLabel: def.optionsLabel,\n hidden: def.hidden,\n initial: json(def.initial),\n };\n for (const [key, value] of Object.entries(optional)) {\n if (value !== undefined) (out as unknown as Record<string, unknown>)[key] = value;\n }\n return out;\n });\n const out: EffectDescriptor = {\n type: spec.type,\n group: spec.group,\n surface: typeof spec.surface === \"function\" ? \"dynamic\" : (spec.surface ?? \"filter\"),\n neutral: spec.neutral === null ? null : (json(Object.fromEntries(Object.entries(spec.neutral).map(([name, value]) => {\n const normalize = spec.params[name]?.normalize;\n return [name, normalize ? normalize(value) : value];\n }))) as { [key: string]: EffectJson }),\n params,\n };\n if (spec.scalar) out.scalar = spec.scalar;\n if (spec.defaultMode) out.defaultMode = spec.defaultMode;\n if (spec.onlyOn) out.onlyOn = spec.onlyOn;\n return out;\n}\n"]}
|
|
@@ -1,24 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Blend mode definitions.
|
|
3
|
-
*
|
|
4
|
-
* Mirrors the CSS `mix-blend-mode` keyword set. The renderer maps each string
|
|
5
|
-
* to an integer hash for fast uniform uploads.
|
|
6
|
-
*/
|
|
7
1
|
/** Every supported blend mode, in hash-index order. */
|
|
8
2
|
export declare const BlendModes: readonly ["multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "normal"];
|
|
9
|
-
/** CSS `mix-blend-mode` keyword — derived from {@link BlendModes}. */
|
|
10
3
|
export type BlendMode = typeof BlendModes[number];
|
|
11
|
-
/**
|
|
12
|
-
* Blend modes a node/layer can carry. Adds Figma's `pass-through` to the fill
|
|
13
|
-
* {@link BlendMode} set. `pass-through` (the node default) means the layer is
|
|
14
|
-
* *not* isolated: its opacity scales each child/fill's contribution while those
|
|
15
|
-
* children still blend directly against the backdrop. Any other value isolates
|
|
16
|
-
* the node — its children flatten into a group that then blends against the
|
|
17
|
-
* backdrop with the chosen mode. Fills never accept `pass-through`.
|
|
18
|
-
*/
|
|
4
|
+
/** Blend modes a node/layer can carry: the fill {@link BlendMode} set plus Figma's `pass-through` (the node default), where the layer is *not* isolated: its opacity scales each child/fill's contribution while they blend directly against the backdrop. Any other value isolates the node, flattening its children into a group that blends with the chosen mode. Fills never accept `pass-through`. */
|
|
19
5
|
export declare const NodeBlendModes: readonly ["multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "normal", "pass-through"];
|
|
20
|
-
/** Layer blend mode — {@link BlendMode} plus `pass-through`. Node2D-only. */
|
|
21
6
|
export type NodeBlendMode = typeof NodeBlendModes[number];
|
|
22
|
-
/** Returns the integer hash for a blend mode, used as a shader uniform. */
|
|
23
7
|
export declare function getBlendModeHash(blend: BlendMode): number;
|
|
24
8
|
//# sourceMappingURL=blend.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blend.d.ts","sourceRoot":"","sources":["../../../../src/attributes/shape/fill/blend.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"blend.d.ts","sourceRoot":"","sources":["../../../../src/attributes/shape/fill/blend.ts"],"names":[],"mappings":"AAEA,uDAAuD;AACvD,eAAO,MAAM,UAAU,2MAiBb,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC;AAElD,2YAA2Y;AAC3Y,eAAO,MAAM,cAAc,2NAA2C,CAAC;AAEvE,MAAM,MAAM,aAAa,GAAG,OAAO,cAAc,CAAC,MAAM,CAAC,CAAC;AAQ1D,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,CAEzD"}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Blend mode definitions.
|
|
3
|
-
*
|
|
4
|
-
* Mirrors the CSS `mix-blend-mode` keyword set. The renderer maps each string
|
|
5
|
-
* to an integer hash for fast uniform uploads.
|
|
6
|
-
*/
|
|
1
|
+
// Mirrors CSS `mix-blend-mode`; the renderer maps each string to an integer hash for fast uniform uploads.
|
|
7
2
|
/** Every supported blend mode, in hash-index order. */
|
|
8
3
|
export const BlendModes = [
|
|
9
4
|
"multiply",
|
|
@@ -23,18 +18,10 @@ export const BlendModes = [
|
|
|
23
18
|
"luminosity",
|
|
24
19
|
"normal"
|
|
25
20
|
];
|
|
26
|
-
/**
|
|
27
|
-
* Blend modes a node/layer can carry. Adds Figma's `pass-through` to the fill
|
|
28
|
-
* {@link BlendMode} set. `pass-through` (the node default) means the layer is
|
|
29
|
-
* *not* isolated: its opacity scales each child/fill's contribution while those
|
|
30
|
-
* children still blend directly against the backdrop. Any other value isolates
|
|
31
|
-
* the node — its children flatten into a group that then blends against the
|
|
32
|
-
* backdrop with the chosen mode. Fills never accept `pass-through`.
|
|
33
|
-
*/
|
|
21
|
+
/** Blend modes a node/layer can carry: the fill {@link BlendMode} set plus Figma's `pass-through` (the node default), where the layer is *not* isolated: its opacity scales each child/fill's contribution while they blend directly against the backdrop. Any other value isolates the node, flattening its children into a group that blends with the chosen mode. Fills never accept `pass-through`. */
|
|
34
22
|
export const NodeBlendModes = [...BlendModes, "pass-through"];
|
|
35
23
|
// Pre-built reverse lookup so getBlendModeHash is O(1).
|
|
36
24
|
const BLEND_MODE_HASH = Object.fromEntries(BlendModes.map((mode, i) => [mode, i]));
|
|
37
|
-
/** Returns the integer hash for a blend mode, used as a shader uniform. */
|
|
38
25
|
export function getBlendModeHash(blend) {
|
|
39
26
|
return BLEND_MODE_HASH[blend];
|
|
40
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blend.js","sourceRoot":"","sources":["../../../../src/attributes/shape/fill/blend.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"blend.js","sourceRoot":"","sources":["../../../../src/attributes/shape/fill/blend.ts"],"names":[],"mappings":"AAAA,2GAA2G;AAE3G,uDAAuD;AACvD,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB,UAAU;IACV,QAAQ;IACR,SAAS;IACT,QAAQ;IACR,SAAS;IACT,aAAa;IACb,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,WAAW;IACX,KAAK;IACL,YAAY;IACZ,OAAO;IACP,YAAY;IACZ,QAAQ;CACF,CAAC;AAIX,2YAA2Y;AAC3Y,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,GAAG,UAAU,EAAE,cAAc,CAAU,CAAC;AAIvE,wDAAwD;AACxD,MAAM,eAAe,GACjB,MAAM,CAAC,WAAW,CACd,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CACZ,CAAC;AAEnC,MAAM,UAAU,gBAAgB,CAAC,KAAgB;IAC7C,OAAO,eAAe,CAAC,KAAK,CAAC,CAAC;AAClC,CAAC","sourcesContent":["// Mirrors CSS `mix-blend-mode`; the renderer maps each string to an integer hash for fast uniform uploads.\n\n/** Every supported blend mode, in hash-index order. */\nexport const BlendModes = [\n \"multiply\",\n \"screen\",\n \"overlay\",\n \"darken\",\n \"lighten\",\n \"color-dodge\",\n \"color-burn\",\n \"hard-light\",\n \"soft-light\",\n \"difference\",\n \"exclusion\",\n \"hue\",\n \"saturation\",\n \"color\",\n \"luminosity\",\n \"normal\"\n] as const;\n\nexport type BlendMode = typeof BlendModes[number];\n\n/** Blend modes a node/layer can carry: the fill {@link BlendMode} set plus Figma's `pass-through` (the node default), where the layer is *not* isolated: its opacity scales each child/fill's contribution while they blend directly against the backdrop. Any other value isolates the node, flattening its children into a group that blends with the chosen mode. Fills never accept `pass-through`. */\nexport const NodeBlendModes = [...BlendModes, \"pass-through\"] as const;\n\nexport type NodeBlendMode = typeof NodeBlendModes[number];\n\n// Pre-built reverse lookup so getBlendModeHash is O(1).\nconst BLEND_MODE_HASH: Record<BlendMode, number> =\n Object.fromEntries(\n BlendModes.map((mode, i) => [mode, i])\n ) as Record<BlendMode, number>;\n\nexport function getBlendModeHash(blend: BlendMode): number {\n return BLEND_MODE_HASH[blend];\n}\n"]}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Color } from "./color/parser.js";
|
|
2
2
|
import type { BlendMode } from "./blend.js";
|
|
3
3
|
import type { Vector2 } from "../../../attributes/layout/vector2.js";
|
|
4
|
-
import type { ImageAdjustment, VideoAdjustment } from "../filters/chain.js";
|
|
5
4
|
import type { MediaPresetProp, VideoPresetProp } from "./media-preset.js";
|
|
6
5
|
import type { FillProp, FillResolved, FillSpace } from "./union.js";
|
|
7
6
|
import { type ShaderPropertyValues } from "../shaders/resolve.js";
|
|
@@ -30,13 +29,7 @@ export interface MediaPlacementOptions {
|
|
|
30
29
|
export interface VideoFillOptions extends FillOptions, MediaPlacementOptions {
|
|
31
30
|
/** The grade laid over the footage — an adjustment chain plus a 0–1 mix. */
|
|
32
31
|
preset?: VideoPresetProp;
|
|
33
|
-
/**
|
|
34
|
-
filters?: VideoAdjustment;
|
|
35
|
-
/**
|
|
36
|
-
* Explicit source time to paint, in seconds. Omit it and the clip plays by
|
|
37
|
-
* itself, timed from the moment the node painting it appeared — set it only
|
|
38
|
-
* to drive the playhead yourself (`null` hands the playhead back).
|
|
39
|
-
*/
|
|
32
|
+
/** Explicit source time in seconds. Omit and the clip plays by itself from when the node appeared; set only to drive the playhead yourself (`null` hands it back). */
|
|
40
33
|
timestamp?: number | null;
|
|
41
34
|
/** Whether playback advances with the node's clock. Defaults to `true`. */
|
|
42
35
|
playing?: boolean;
|
|
@@ -48,65 +41,33 @@ export interface VideoFillOptions extends FillOptions, MediaPlacementOptions {
|
|
|
48
41
|
loop?: 'forward' | 'reverse' | 'none';
|
|
49
42
|
duration?: number;
|
|
50
43
|
}
|
|
51
|
-
/**
|
|
52
|
-
* Cross-cutting options shared by every fill layer. These map onto the
|
|
53
|
-
* `opacity` / `blend` fields each fill prop already accepts, plus the
|
|
54
|
-
* `space` directive carried generically by the registry.
|
|
55
|
-
*/
|
|
44
|
+
/** Cross-cutting options for every fill layer: the `opacity` / `blend` fields each fill prop accepts, plus the registry's generic `space` directive. */
|
|
56
45
|
export interface FillOptions {
|
|
57
46
|
opacity?: number;
|
|
58
47
|
blend?: BlendMode;
|
|
59
48
|
space?: FillSpace;
|
|
60
49
|
}
|
|
61
|
-
/**
|
|
62
|
-
* Immutable, chainable list of fill layers.
|
|
63
|
-
*
|
|
64
|
-
* Each builder method returns a new `FillChain` with the layer appended, so
|
|
65
|
-
* chains are safe to share and branch — mirroring {@link EffectChain}.
|
|
66
|
-
*
|
|
67
|
-
* @example
|
|
68
|
-
* const bg = Fills.image('./background.jpg', { blend: 'overlay', opacity: 0.2 })
|
|
69
|
-
* .color('red', { opacity: 0.3 });
|
|
70
|
-
* node.fill = bg; // assign directly
|
|
71
|
-
* node.fill = [...bg, 'white']; // spread into an array
|
|
72
|
-
*/
|
|
50
|
+
/** Immutable, chainable list of fill layers; each builder returns a new chain, so chains can be shared and branched. */
|
|
73
51
|
export declare class FillChain {
|
|
74
52
|
list: FillProp[];
|
|
75
53
|
constructor(list?: FillProp[]);
|
|
76
|
-
/** Append a solid color fill. A CSS string or normalized `[r,g,b,a]`. */
|
|
77
54
|
color(color: Color, options?: FillOptions): FillChain;
|
|
78
|
-
/**
|
|
79
|
-
* Append an image fill from `src`.
|
|
80
|
-
*
|
|
81
|
-
* @example
|
|
82
|
-
* Fills.image('./city.jpg', { zoom: 1.4, anchor: 'topCenter', crop: { bottom: 0.2 } })
|
|
83
|
-
*/
|
|
84
55
|
image(src: string, options?: FillOptions & MediaPlacementOptions & {
|
|
85
56
|
/** The grade laid over the picture — an adjustment chain plus a 0–1 mix. */
|
|
86
57
|
preset?: MediaPresetProp;
|
|
87
|
-
/** @deprecated Moved to `preset.adjustments`. Removed in the next major. */
|
|
88
|
-
filters?: ImageAdjustment;
|
|
89
58
|
}): FillChain;
|
|
90
|
-
/**
|
|
91
|
-
* Append a video fill from `src`. Plays by default: its source timestamp is
|
|
92
|
-
* derived as it paints, from how long the node carrying the fill has
|
|
93
|
-
* existed — so the clip runs wherever the fill is used (fill, overlay,
|
|
94
|
-
* stroke, shadow, a custom node's `Graphics2D`) with nothing to advance.
|
|
95
|
-
*/
|
|
59
|
+
/** Plays by default: the source timestamp is derived as it paints, from how long the carrying node has existed, so the clip runs wherever the fill is used with nothing to advance. */
|
|
96
60
|
video(src: string, options?: VideoFillOptions): FillChain;
|
|
97
|
-
/** Append a linear gradient between `colors`. */
|
|
98
61
|
linearGradient(colors: Color[], options?: FillOptions & {
|
|
99
62
|
stops?: number[];
|
|
100
63
|
start?: Vector2;
|
|
101
64
|
end?: Vector2;
|
|
102
65
|
}): FillChain;
|
|
103
|
-
/** Append a radial gradient between `colors`. */
|
|
104
66
|
radialGradient(colors: Color[], options?: FillOptions & {
|
|
105
67
|
stops?: number[];
|
|
106
68
|
center?: Vector2;
|
|
107
69
|
radius?: number;
|
|
108
70
|
}): FillChain;
|
|
109
|
-
/** Append a conic gradient between `colors`. */
|
|
110
71
|
conicGradient(colors: Color[], options?: FillOptions & {
|
|
111
72
|
stops?: number[];
|
|
112
73
|
center?: Vector2;
|
|
@@ -119,27 +80,13 @@ export declare class FillChain {
|
|
|
119
80
|
color?: Color;
|
|
120
81
|
seed?: number;
|
|
121
82
|
}): FillChain;
|
|
122
|
-
/**
|
|
123
|
-
* Append a fractal (fBm) noise fill — a continuous field rather than the
|
|
124
|
-
* speckle {@link noise} paints. Cloud, marble, smoke, terrain, plasma.
|
|
125
|
-
*
|
|
126
|
-
* Tween `offset` to travel through the field (it flows); tween `seed` to
|
|
127
|
-
* shift to a different field entirely (it churns).
|
|
128
|
-
*/
|
|
83
|
+
/** A continuous field (cloud, marble, smoke), unlike the speckle of {@link noise}. Tween `offset` to flow through it, `seed` to churn to a different field. */
|
|
129
84
|
fractalNoise(options?: FillOptions & Omit<FractalNoiseFillProp, 'type' | 'opacity' | 'blend'>): FillChain;
|
|
130
85
|
/**
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
* uniforms as `struct Params`, read as `u.<name>`. It returns
|
|
136
|
-
* **premultiplied** rgba, without folding `opacity` in (the layer's opacity is
|
|
137
|
-
* already applied, so applying it twice squares it). Uniforms are keyed by
|
|
138
|
-
* their declared name, so order is irrelevant.
|
|
139
|
-
*
|
|
140
|
-
* Keep `source` constant — it is the compile-cache key, so it snaps at a
|
|
141
|
-
* tween's midpoint and rebuilding it per frame compiles a program per frame.
|
|
142
|
-
* Everything that changes belongs in a uniform, which is an in-place write.
|
|
86
|
+
* Custom shader fill. The WGSL `source` defines `fn fill(in: FillIn) -> vec4f` and declares uniforms as
|
|
87
|
+
* `struct Params`, read as `u.<name>`. It returns **premultiplied** rgba without folding `opacity` in (already
|
|
88
|
+
* applied; doing it twice squares it). Keep `source` constant: it is the compile-cache key, so it snaps at a
|
|
89
|
+
* tween's midpoint and rebuilding it per frame compiles a program per frame. Changing values belong in uniforms.
|
|
143
90
|
*
|
|
144
91
|
* @example
|
|
145
92
|
* Fills.shader(GLOW, { uniforms: { amount: 0.6 } })
|
|
@@ -147,87 +94,32 @@ export declare class FillChain {
|
|
|
147
94
|
shader(source: string | FillShader, options?: FillOptions & Omit<ShaderFillProp, 'type' | 'source' | 'language' | 'opacity' | 'blend' | 'shaderId'> & {
|
|
148
95
|
values?: ShaderPropertyValues;
|
|
149
96
|
}): FillChain;
|
|
150
|
-
/** Append a stripe (hatch) fill. */
|
|
151
97
|
stripe(options?: FillOptions & {
|
|
152
98
|
gap?: number;
|
|
153
99
|
strokeWidth?: number;
|
|
154
100
|
angle?: number;
|
|
155
101
|
color?: Color;
|
|
156
102
|
}): FillChain;
|
|
157
|
-
/**
|
|
158
|
-
* Append a dot-grid fill — a lattice of dots at a pixel pitch.
|
|
159
|
-
*
|
|
160
|
-
* Tween `offset` to drift the field under a shape that isn't moving; tween
|
|
161
|
-
* `spacing` or `radius` to breathe it.
|
|
162
|
-
*
|
|
163
|
-
* @example
|
|
164
|
-
* Fills.dotGrid({ radius: 1.5, spacing: 24, color: 'muted' })
|
|
165
|
-
*/
|
|
103
|
+
/** Lattice of dots at a pixel pitch. Tween `offset` to drift the field under a still shape. */
|
|
166
104
|
dotGrid(options?: FillOptions & Omit<DotGridFillProp, 'type' | 'opacity' | 'blend'>): FillChain;
|
|
167
|
-
/**
|
|
168
|
-
* Append a grid fill — ruled lines dividing the shape into cells, with an
|
|
169
|
-
* optional finer ruling nested inside each one.
|
|
170
|
-
*
|
|
171
|
-
* Sized in divisions of the shape rather than in px (unlike {@link dotGrid}),
|
|
172
|
-
* so it holds its structure as the shape resizes.
|
|
173
|
-
*
|
|
174
|
-
* @example
|
|
175
|
-
* Fills.grid({ divisions: 8, subdivisions: 4, color: 'border' })
|
|
176
|
-
*/
|
|
105
|
+
/** Ruled lines dividing the shape into cells, optionally with a finer ruling inside. Sized in divisions rather than px (unlike {@link dotGrid}), so it holds its structure as the shape resizes. */
|
|
177
106
|
grid(options?: FillOptions & Omit<GridFillProp, 'type' | 'opacity' | 'blend'>): FillChain;
|
|
178
107
|
/**
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
* comes from where the value is produced (a `renderSelf`, or a `() => …`
|
|
183
|
-
* reactive binding), like every other fill.
|
|
184
|
-
*
|
|
185
|
-
* Note two same-type 3D layers hard-cut rather than cross-fading, because a
|
|
186
|
-
* command list has no meaningful in-between. To dissolve between two scenes,
|
|
187
|
-
* stack them and tween their opacities in opposite directions.
|
|
108
|
+
* A 3D scene painted through the shape's own path. Takes a **built** {@link Scene3D}, never a builder; freshness
|
|
109
|
+
* comes from where the value is produced (a `renderSelf`, or a `() => …` binding). Two same-type 3D layers
|
|
110
|
+
* hard-cut rather than cross-fading (a command list has no in-between): stack them and tween opacities instead.
|
|
188
111
|
*/
|
|
189
112
|
canvas3D(scene: Scene3D, options?: FillOptions & {
|
|
190
113
|
maxPixelRatio?: number;
|
|
191
114
|
antialias?: boolean;
|
|
192
115
|
}): FillChain;
|
|
193
|
-
/** Allows spreading the chain into an array: `[...Fills.color('red')]`. */
|
|
194
116
|
[Symbol.iterator](): Generator<FillProp, void, unknown>;
|
|
195
|
-
/** Serializes to the raw fill array so frameworks that call `toJSON` get a plain value. */
|
|
196
117
|
toJSON(): FillProp[];
|
|
197
118
|
}
|
|
198
|
-
/**
|
|
199
|
-
* Accepted shapes for a node's `fill` prop.
|
|
200
|
-
*
|
|
201
|
-
* Can be a single fill, a `FillChain` builder result, an already-resolved
|
|
202
|
-
* {@link FillResolved}, or an array mixing any of these (each chain contributes
|
|
203
|
-
* all its layers in place):
|
|
204
|
-
*
|
|
205
|
-
* 'red' // plain CSS color
|
|
206
|
-
* Fills.image('bg.jpg') // chain
|
|
207
|
-
* ['#e8c584', Fills.image('bg.jpg')]
|
|
208
|
-
* ['#e8c584', ...Fills.image('bg.jpg')]
|
|
209
|
-
* resolvedFills // FillResolved[] passes through
|
|
210
|
-
*/
|
|
119
|
+
/** Accepted shapes for a node's `fill`: a single fill, a `FillChain`, an already-resolved {@link FillResolved}, or an array mixing these (chains contribute their layers in place). */
|
|
211
120
|
export type Fill = FillProp | FillResolved | FillChain | (FillProp | FillResolved | FillChain)[];
|
|
212
|
-
/**
|
|
213
|
-
* Entry point for building fill chains fluently.
|
|
214
|
-
*
|
|
215
|
-
* An empty {@link FillChain}, so `Fills.image(src)` *is* `new FillChain().image(src)`
|
|
216
|
-
* — every builder's signature and documentation has one definition, on the
|
|
217
|
-
* class, which is what an editor shows when you hover `Fills.image`. The chain
|
|
218
|
-
* is immutable (each builder returns a new one), so sharing one empty instance
|
|
219
|
-
* as the entry point is safe.
|
|
220
|
-
*
|
|
221
|
-
* @example
|
|
222
|
-
* node.fill = Fills.image('./bg.jpg', { opacity: 0.2 }).color('red', { opacity: 0.3 });
|
|
223
|
-
*/
|
|
121
|
+
/** An empty {@link FillChain}: `Fills.image(src)` *is* `new FillChain().image(src)`, so builders are documented once, on the class. Chains are immutable, so sharing one instance is safe. */
|
|
224
122
|
export declare const Fills: FillChain;
|
|
225
|
-
/**
|
|
226
|
-
* Normalises any {@link Fill} value to a plain `FillProp[]`.
|
|
227
|
-
* Used by `resolveFillArray` before resolving to the renderer shape.
|
|
228
|
-
*
|
|
229
|
-
* Already-resolved fills (`FillResolved`) structurally satisfy `FillProp`, so
|
|
230
|
-
* they pass straight through and `resolveFill` re-normalises them idempotently.
|
|
231
|
-
*/
|
|
123
|
+
/** Normalises any {@link Fill} to `FillProp[]`. Already-resolved fills structurally satisfy `FillProp` and pass through (`resolveFill` re-normalises idempotently). */
|
|
232
124
|
export declare function resolveChainFill(fill: Fill | undefined): FillProp[];
|
|
233
125
|
//# sourceMappingURL=chain.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chain.d.ts","sourceRoot":"","sources":["../../../../src/attributes/shape/fill/chain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"chain.d.ts","sourceRoot":"","sources":["../../../../src/attributes/shape/fill/chain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MA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