@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":"blur.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/blur.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAM/E,
|
|
1
|
+
{"version":3,"file":"blur.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/blur.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAM/E,MAAM,CAAC,MAAM,QAAQ,GAAG,YAAY,CAAC;IACjC,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;IACtB,MAAM,EAAE;QACJ,6BAA6B;QAC7B,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;KACrG;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,UAAU,GAA2B,YAAY,CAAC,QAAQ,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\nexport interface BlurEffect extends ModedEffect, EffectFields<typeof blurSpec.params> {\n type: \"blur\";\n}\n\nexport const blurSpec = defineEffect({\n type: \"blur\",\n group: \"blur\",\n scalar: \"radius\",\n neutral: { radius: 0 },\n params: {\n /** Blur spread in pixels. */\n radius: param.number({ default: 0, required: true, min: 0, unit: \"px\", inline: true, initial: 4 }),\n },\n});\n\nexport const blurEffect: EffectData<BlurEffect> = effectDataOf(blurSpec);\n"]}
|
|
@@ -3,7 +3,6 @@ import { type EffectFields } from "../spec.js";
|
|
|
3
3
|
export interface BulgeEffect extends ModedEffect, EffectFields<typeof bulgeSpec.params> {
|
|
4
4
|
type: "bulge";
|
|
5
5
|
}
|
|
6
|
-
/** The {@link BulgeEffect} spec: its parameters, defaults and ranges. */
|
|
7
6
|
export declare const bulgeSpec: import("../spec.js").EffectSpec<"bulge", {
|
|
8
7
|
/** Positive bulges (barrel), negative pinches (pincushion). Range ≈ −1…1. */
|
|
9
8
|
readonly strength: import("../spec.js").EffectParamDef<number, number> & NoInfer<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulge.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/bulge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAA6C,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvF,MAAM,WAAW,WAAY,SAAQ,WAAW,EAAE,YAAY,CAAC,OAAO,SAAS,CAAC,MAAM,CAAC;IACnF,IAAI,EAAE,OAAO,CAAC;CACjB;AAED,
|
|
1
|
+
{"version":3,"file":"bulge.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/bulge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAA6C,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvF,MAAM,WAAW,WAAY,SAAQ,WAAW,EAAE,YAAY,CAAC,OAAO,SAAS,CAAC,MAAM,CAAC;IACnF,IAAI,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,SAAS;IAQd,6EAA6E;;;;;;;;;;;;IAE7E,uCAAuC;;;;;;;;;;;EAG7C,CAAC;AAEH,eAAO,MAAM,WAAW,EAAE,UAAU,CAAC,WAAW,CAA2B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulge.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/bulge.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAMvF,
|
|
1
|
+
{"version":3,"file":"bulge.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/bulge.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAMvF,MAAM,CAAC,MAAM,SAAS,GAAG,YAAY,CAAC;IAClC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,SAAS;IAChB,4DAA4D;IAC5D,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,UAAU;IAClB,OAAO,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE;IACxB,MAAM,EAAE;QACJ,6EAA6E;QAC7E,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC;QACtH,uCAAuC;QACvC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC;KAC/G;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAA4B,YAAY,CAAC,SAAS,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\nimport { CENTER, defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\nexport interface BulgeEffect extends ModedEffect, EffectFields<typeof bulgeSpec.params> {\n type: \"bulge\";\n}\n\nexport const bulgeSpec = defineEffect({\n type: \"bulge\",\n group: \"distort\",\n // Warps its source: samples a displaced texel per fragment.\n surface: \"shader\",\n scalar: \"strength\",\n neutral: { strength: 0 },\n params: {\n /** Positive bulges (barrel), negative pinches (pincushion). Range ≈ −1…1. */\n strength: param.number({ default: 0, required: true, min: -1, max: 1, control: \"slider\", inline: true, initial: 0.5 }),\n /** Lens centre in 0–1 layer coords. */\n center: param.vec2({ default: CENTER, min: 0, max: 1, step: 0.01, unit: \"normalized\", label: \"lensCenter\" }),\n },\n});\n\nexport const bulgeEffect: EffectData<BulgeEffect> = effectDataOf(bulgeSpec);\n"]}
|
|
@@ -3,7 +3,6 @@ import { type EffectFields } from "../spec.js";
|
|
|
3
3
|
export interface ChromaticAberrationEffect extends ModedEffect, EffectFields<typeof chromaticAberrationSpec.params> {
|
|
4
4
|
type: "chromaticAberration";
|
|
5
5
|
}
|
|
6
|
-
/** The {@link ChromaticAberrationEffect} spec: its parameters, defaults and ranges. */
|
|
7
6
|
export declare const chromaticAberrationSpec: import("../spec.js").EffectSpec<"chromaticAberration", {
|
|
8
7
|
/** Pixel offset distance for the R/B fringe. */
|
|
9
8
|
readonly amount: import("../spec.js").EffectParamDef<number, number> & NoInfer<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chromatic-aberration.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/chromatic-aberration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAqC,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAE/E,MAAM,WAAW,yBAA0B,SAAQ,WAAW,EAAE,YAAY,CAAC,OAAO,uBAAuB,CAAC,MAAM,CAAC;IAC/G,IAAI,EAAE,qBAAqB,CAAC;CAC/B;AAED,
|
|
1
|
+
{"version":3,"file":"chromatic-aberration.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/chromatic-aberration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAqC,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAE/E,MAAM,WAAW,yBAA0B,SAAQ,WAAW,EAAE,YAAY,CAAC,OAAO,uBAAuB,CAAC,MAAM,CAAC;IAC/G,IAAI,EAAE,qBAAqB,CAAC;CAC/B;AAED,eAAO,MAAM,uBAAuB;IAM5B,gDAAgD;;;;;;;;;IAEhD,iEAAiE;;;;;;;EAGvE,CAAC;AAEH,eAAO,MAAM,yBAAyB,EAAE,UAAU,CAAC,yBAAyB,CAAyC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chromatic-aberration.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/chromatic-aberration.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAM/E,
|
|
1
|
+
{"version":3,"file":"chromatic-aberration.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/chromatic-aberration.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAM/E,MAAM,CAAC,MAAM,uBAAuB,GAAG,YAAY,CAAC;IAChD,IAAI,EAAE,qBAAqB;IAC3B,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;IACtB,MAAM,EAAE;QACJ,gDAAgD;QAChD,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACtE,iEAAiE;QACjE,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;KACnD;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAA0C,YAAY,CAAC,uBAAuB,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\nexport interface ChromaticAberrationEffect extends ModedEffect, EffectFields<typeof chromaticAberrationSpec.params> {\n type: \"chromaticAberration\";\n}\n\nexport const chromaticAberrationSpec = defineEffect({\n type: \"chromaticAberration\",\n group: \"glitch\",\n scalar: \"amount\",\n neutral: { amount: 0 },\n params: {\n /** Pixel offset distance for the R/B fringe. */\n amount: param.number({ default: 4, min: 0, unit: \"px\", inline: true }),\n /** Fringe axis in degrees — 0 = horizontal, R right / B left. */\n angle: param.number({ default: 0, unit: \"deg\" }),\n },\n});\n\nexport const chromaticAberrationEffect: EffectData<ChromaticAberrationEffect> = effectDataOf(chromaticAberrationSpec);\n"]}
|
|
@@ -1,20 +1,9 @@
|
|
|
1
1
|
import type { ModedEffect, EffectData } from "../effect-data.js";
|
|
2
2
|
import { type EffectFields } from "../spec.js";
|
|
3
|
-
/**
|
|
4
|
-
* Photographic tonal and colour adjustments as a **node effect** — the grading
|
|
5
|
-
* panel `Adjustments.colorAdjustment` gives an image fill, now available on any
|
|
6
|
-
* node. All fields are optional and default to neutral.
|
|
7
|
-
*
|
|
8
|
-
* Shares its type name and renderer handler with `ColorAdjustmentFilter` (the
|
|
9
|
-
* media-fill filter) with one deliberate difference: no `vignette` field. That
|
|
10
|
-
* knob was never implemented on the filter — a vignette needs each pixel's
|
|
11
|
-
* position, which a colour matrix does not have — so the node effect leaves it
|
|
12
|
-
* out and `Effects.vignette()` provides the real thing.
|
|
13
|
-
*/
|
|
3
|
+
/** Photographic tonal and colour adjustments as a **node effect** (the grading panel `Adjustments.colorAdjustment` gives an image fill); all fields optional and neutral by default. Shares its type name and renderer handler with `ColorAdjustmentFilter` except for `vignette`, which a colour matrix cannot do (it needs each pixel's position): use `Effects.vignette()`. */
|
|
14
4
|
export interface ColorAdjustmentEffect extends ModedEffect, EffectFields<typeof colorAdjustmentSpec.params> {
|
|
15
5
|
type: "colorAdjustment";
|
|
16
6
|
}
|
|
17
|
-
/** The {@link ColorAdjustmentEffect} spec: its parameters, defaults and ranges. */
|
|
18
7
|
export declare const colorAdjustmentSpec: import("../spec.js").EffectSpec<"colorAdjustment", {
|
|
19
8
|
/** −1…1, additive. */
|
|
20
9
|
readonly brightness: import("../spec.js").EffectParamDef<number, number> & NoInfer<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color-adjustment.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/color-adjustment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAqC,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAE/E
|
|
1
|
+
{"version":3,"file":"color-adjustment.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/color-adjustment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAqC,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAE/E,kXAAkX;AAClX,MAAM,WAAW,qBAAsB,SAAQ,WAAW,EAAE,YAAY,CAAC,OAAO,mBAAmB,CAAC,MAAM,CAAC;IACvG,IAAI,EAAE,iBAAiB,CAAC;CAC3B;AAED,eAAO,MAAM,mBAAmB;IAMxB,sBAAsB;;;;;;;;;;;IAEtB,2CAA2C;;;;;;;;;;IAE3C,2BAA2B;;;;;;;;;;IAE3B,+BAA+B;;;;;;;;;IAE/B,sDAAsD;;;;;;;;;;IAEtD,2CAA2C;;;;;;;;;;IAE3C,6CAA6C;;;;;;;;;;IAE7C,0BAA0B;;;;;;;;;;IAE1B,8BAA8B;;;;;;;;;;;EAGpC,CAAC;AAEH,eAAO,MAAM,qBAAqB,EAAE,UAAU,CAAC,qBAAqB,CAAqC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color-adjustment.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/color-adjustment.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"color-adjustment.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/color-adjustment.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAO/E,MAAM,CAAC,MAAM,mBAAmB,GAAG,YAAY,CAAC;IAC5C,IAAI,EAAE,iBAAiB;IACvB,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE;IACvD,kEAAkE;IAClE,MAAM,EAAE;QACJ,sBAAsB;QACtB,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QAC1G,2CAA2C;QAC3C,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;QACzF,2BAA2B;QAC3B,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;QAC3F,+BAA+B;QAC/B,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QAC9E,sDAAsD;QACtD,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;QAC1F,2CAA2C;QAC3C,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;QACzF,6CAA6C;QAC7C,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;QAC5F,0BAA0B;QAC1B,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;QAC7F,8BAA8B;QAC9B,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC;KAC9G;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAsC,YAAY,CAAC,mBAAmB,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\n/** Photographic tonal and colour adjustments as a **node effect** (the grading panel `Adjustments.colorAdjustment` gives an image fill); all fields optional and neutral by default. Shares its type name and renderer handler with `ColorAdjustmentFilter` except for `vignette`, which a colour matrix cannot do (it needs each pixel's position): use `Effects.vignette()`. */\nexport interface ColorAdjustmentEffect extends ModedEffect, EffectFields<typeof colorAdjustmentSpec.params> {\n type: \"colorAdjustment\";\n}\n\nexport const colorAdjustmentSpec = defineEffect({\n type: \"colorAdjustment\",\n group: \"color\",\n neutral: { contrast: 1, saturation: 1, temperature: 0 },\n // Every field is optional; `default` is what an absent one means.\n params: {\n /** −1…1, additive. */\n brightness: param.number({ default: 0, optional: true, min: -1, max: 1, control: \"slider\", inline: true }),\n /** 0…2, multiplicative around mid-grey. */\n contrast: param.number({ default: 1, optional: true, min: 0, max: 2, control: \"slider\" }),\n /** 0…3, multiplicative. */\n saturation: param.number({ default: 1, optional: true, min: 0, max: 3, control: \"slider\" }),\n /** Hue rotation in degrees. */\n hue: param.number({ default: 0, optional: true, unit: \"deg\", control: \"hue\" }),\n /** −1…1, saturation weighted toward muted colours. */\n vibrance: param.number({ default: 0, optional: true, min: -1, max: 1, control: \"slider\" }),\n /** −1…1, lifts or crushes the dark end. */\n shadows: param.number({ default: 0, optional: true, min: -1, max: 1, control: \"slider\" }),\n /** −1…1, lifts or crushes the bright end. */\n highlights: param.number({ default: 0, optional: true, min: -1, max: 1, control: \"slider\" }),\n /** −1…1, cool to warm. */\n temperature: param.number({ default: 0, optional: true, min: -1, max: 1, control: \"slider\" }),\n /** −1…1, green to magenta. */\n tint: param.number({ default: 0, optional: true, min: -1, max: 1, control: \"slider\", label: \"tintAmount\" }),\n },\n});\n\nexport const colorAdjustmentEffect: EffectData<ColorAdjustmentEffect> = effectDataOf(colorAdjustmentSpec);\n"]}
|
|
@@ -1,19 +1,9 @@
|
|
|
1
1
|
import type { ModedEffect, EffectData } from "../effect-data.js";
|
|
2
2
|
import { type EffectFields } from "../spec.js";
|
|
3
|
-
/**
|
|
4
|
-
* Tone curve as a **node effect** — the same adjustment `Adjustments.curves`
|
|
5
|
-
* applies to a photo, now available on any node, so a group of shapes or a text
|
|
6
|
-
* block can be graded the same way.
|
|
7
|
-
*
|
|
8
|
-
* Shares its type name, fields and renderer handler with {@link CurvesFilter}
|
|
9
|
-
* (the media-fill filter); the only difference is the `mode` flag every scene
|
|
10
|
-
* effect carries. Keeping them one implementation is deliberate — a curve should
|
|
11
|
-
* not mean two different things depending on what it is attached to.
|
|
12
|
-
*/
|
|
3
|
+
/** Tone curve as a **node effect**, the same adjustment `Adjustments.curves` applies to a photo. Shares type name, fields and renderer handler with {@link CurvesFilter} (they differ only by the `mode` flag), so a curve doesn't mean two things depending on what it is attached to. */
|
|
13
4
|
export interface CurvesEffect extends ModedEffect, EffectFields<typeof curvesSpec.params> {
|
|
14
5
|
type: "curves";
|
|
15
6
|
}
|
|
16
|
-
/** The {@link CurvesEffect} spec: its parameters, defaults and ranges. */
|
|
17
7
|
export declare const curvesSpec: import("../spec.js").EffectSpec<"curves", {
|
|
18
8
|
/** Curve control points as `[input, output]` pairs in 0–1. Move pairwise, as `curvesFilter.lerp`. */
|
|
19
9
|
readonly points: import("../spec.js").EffectParamDef<[number, number][], [number, number][]> & NoInfer<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"curves.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/curves.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE9D,OAAO,EAAqC,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAE/E
|
|
1
|
+
{"version":3,"file":"curves.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/curves.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE9D,OAAO,EAAqC,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAE/E,2RAA2R;AAC3R,MAAM,WAAW,YAAa,SAAQ,WAAW,EAAE,YAAY,CAAC,OAAO,UAAU,CAAC,MAAM,CAAC;IACrF,IAAI,EAAE,QAAQ,CAAC;CAClB;AAED,eAAO,MAAM,UAAU;IAOf,qGAAqG;;;;;;;IAUrG,gGAAgG;;;;;;;;EAGtG,CAAC;AAEH,eAAO,MAAM,YAAY,EAAE,UAAU,CAAC,YAAY,CAA4B,CAAC"}
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import { lerpNumber } from "../../../../tween/lerp.js";
|
|
2
2
|
import { defineEffect, effectDataOf, param } from "../spec.js";
|
|
3
|
-
/** The {@link CurvesEffect} spec: its parameters, defaults and ranges. */
|
|
4
3
|
export const curvesSpec = defineEffect({
|
|
5
4
|
type: "curves",
|
|
6
5
|
group: "color",
|
|
7
|
-
// A curve is a *lookup*,
|
|
8
|
-
// by construction and a curve is authored for its bends. Evaluating it per
|
|
9
|
-
// pixel needs the source as a shader it can read — the same reason `lut` is a
|
|
10
|
-
// shader scope, and the same trade: exact, at the cost of a pass. See the
|
|
11
|
-
// renderer's `curvesEffectHandler` for what that means for ordering.
|
|
6
|
+
// A curve is a *lookup*, which an affine colour matrix cannot express, so evaluating it per pixel needs the source as a readable shader (as `lut`): exact, at the cost of a pass. See the renderer's `curvesEffectHandler` for ordering.
|
|
12
7
|
surface: "shader",
|
|
13
8
|
neutral: { points: [[0, 0], [1, 1]] },
|
|
14
9
|
params: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"curves.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/curves.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"curves.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/curves.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAO/E,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,CAAC;IACnC,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,OAAO;IACd,yOAAyO;IACzO,OAAO,EAAE,QAAQ;IACjB,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE;IACrC,MAAM,EAAE;QACJ,qGAAqG;QACrG,MAAM,EAAE,KAAK,CAAC,EAAE,EAAsB,CAAC;YACnC,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;gBAC1C,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;gBACjC,OAAO,CAAC,UAAU,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAqB,CAAC;YAC5E,CAAC,CAAC;YACF,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;SACxG,CAAC;QACF,gGAAgG;QAChG,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAA2B,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;KACnH;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,YAAY,GAA6B,YAAY,CAAC,UAAU,CAAC,CAAC","sourcesContent":["import { lerpNumber } from \"@/tween/lerp\";\nimport type { ModedEffect, EffectData } from \"../effect-data\";\nimport type { CurvesChannel } from \"../../filters/implementations/curves\";\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\n/** Tone curve as a **node effect**, the same adjustment `Adjustments.curves` applies to a photo. Shares type name, fields and renderer handler with {@link CurvesFilter} (they differ only by the `mode` flag), so a curve doesn't mean two things depending on what it is attached to. */\nexport interface CurvesEffect extends ModedEffect, EffectFields<typeof curvesSpec.params> {\n type: \"curves\";\n}\n\nexport const curvesSpec = defineEffect({\n type: \"curves\",\n group: \"color\",\n // A curve is a *lookup*, which an affine colour matrix cannot express, so evaluating it per pixel needs the source as a readable shader (as `lut`): exact, at the cost of a pass. See the renderer's `curvesEffectHandler` for ordering.\n surface: \"shader\",\n neutral: { points: [[0, 0], [1, 1]] },\n params: {\n /** Curve control points as `[input, output]` pairs in 0–1. Move pairwise, as `curvesFilter.lerp`. */\n points: param.of<[number, number][]>()({\n kind: \"points\",\n required: true,\n lerp: (from, to, t) => from.map(([x, y], i) => {\n const [tx, ty] = to[i] ?? [x, y];\n return [lerpNumber(x, tx, t), lerpNumber(y, ty, t)] as [number, number];\n }),\n equals: (a, b) => a.length === b.length && a.every(([x, y], i) => x === b[i]?.[0] && y === b[i]?.[1]),\n }),\n /** Channel(s) the curve applies to. An intermediate channel name is meaningless, so it cuts. */\n channel: param.choice([\"rgb\", \"r\", \"g\", \"b\", \"a\"] satisfies CurvesChannel[], { default: \"rgb\", optional: true }),\n },\n});\n\nexport const curvesEffect: EffectData<CurvesEffect> = effectDataOf(curvesSpec);\n"]}
|
|
@@ -8,7 +8,6 @@ import { type EffectFields } from "../spec.js";
|
|
|
8
8
|
export interface DirectionalBlurEffect extends ModedEffect, EffectFields<typeof directionalBlurSpec.params> {
|
|
9
9
|
type: "directionalBlur";
|
|
10
10
|
}
|
|
11
|
-
/** The {@link DirectionalBlurEffect} spec: its parameters, defaults and ranges. */
|
|
12
11
|
export declare const directionalBlurSpec: import("../spec.js").EffectSpec<"directionalBlur", {
|
|
13
12
|
/** Smear length in pixels along `angle`. */
|
|
14
13
|
readonly radius: import("../spec.js").EffectParamDef<number, number> & NoInfer<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directional-blur.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/directional-blur.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAqC,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAE/E;;;;GAIG;AACH,MAAM,WAAW,qBAAsB,SAAQ,WAAW,EAAE,YAAY,CAAC,OAAO,mBAAmB,CAAC,MAAM,CAAC;IACvG,IAAI,EAAE,iBAAiB,CAAC;CAC3B;AAED,
|
|
1
|
+
{"version":3,"file":"directional-blur.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/directional-blur.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAqC,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAE/E;;;;GAIG;AACH,MAAM,WAAW,qBAAsB,SAAQ,WAAW,EAAE,YAAY,CAAC,OAAO,mBAAmB,CAAC,MAAM,CAAC;IACvG,IAAI,EAAE,iBAAiB,CAAC;CAC3B;AAED,eAAO,MAAM,mBAAmB;IAMxB,4CAA4C;;;;;;;;;;;;;IAE5C,6DAA6D;;;;;;;;EAGnE,CAAC;AAEH,eAAO,MAAM,qBAAqB,EAAE,UAAU,CAAC,qBAAqB,CAAqC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directional-blur.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/directional-blur.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAW/E,
|
|
1
|
+
{"version":3,"file":"directional-blur.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/directional-blur.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAW/E,MAAM,CAAC,MAAM,mBAAmB,GAAG,YAAY,CAAC;IAC5C,IAAI,EAAE,iBAAiB;IACvB,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;IACtB,MAAM,EAAE;QACJ,4CAA4C;QAC5C,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;QAC9H,6DAA6D;QAC7D,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;KAC7D;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAsC,YAAY,CAAC,mBAAmB,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\n/**\n * Motion-blur-style directional (linear) blur. Unlike {@link BlurEffect}, which\n * blurs uniformly in all directions, this smears the node's own content along a\n * single axis.\n */\nexport interface DirectionalBlurEffect extends ModedEffect, EffectFields<typeof directionalBlurSpec.params> {\n type: \"directionalBlur\";\n}\n\nexport const directionalBlurSpec = defineEffect({\n type: \"directionalBlur\",\n group: \"blur\",\n scalar: \"radius\",\n neutral: { radius: 0 },\n params: {\n /** Smear length in pixels along `angle`. */\n radius: param.number({ default: 0, required: true, min: 0, unit: \"px\", label: \"length\", inline: true, order: 1, initial: 10 }),\n /** Smear axis in degrees — 0 = horizontal, 90 = vertical. */\n angle: param.number({ default: 0, unit: \"deg\", order: 0 }),\n },\n});\n\nexport const directionalBlurEffect: EffectData<DirectionalBlurEffect> = effectDataOf(directionalBlurSpec);\n"]}
|
|
@@ -1,39 +1,13 @@
|
|
|
1
1
|
import type { ModedEffect, EffectData } from "../effect-data.js";
|
|
2
2
|
import { type EffectFields } from "../spec.js";
|
|
3
|
-
/**
|
|
4
|
-
* Size of the Bayer threshold matrix: 2×2, 4×4 or 8×8. Bigger matrices carry
|
|
5
|
-
* more distinct threshold levels, so the pattern is finer and the apparent tonal
|
|
6
|
-
* range wider — 2 is a blunt checkerboard, 8 the smooth classic ordered dither.
|
|
7
|
-
*/
|
|
3
|
+
/** Size of the Bayer threshold matrix (2×2, 4×4, 8×8): bigger carries more threshold levels, a finer pattern and wider apparent tonal range. */
|
|
8
4
|
export type DitherMatrix = 2 | 4 | 8;
|
|
9
|
-
/**
|
|
10
|
-
* Where a pixel's threshold comes from.
|
|
11
|
-
*
|
|
12
|
-
* - `'bayer'` — the recursive ordered matrix. Its lattice *is* the look: the
|
|
13
|
-
* crosshatch is visible at every density, which is what reads as 8-bit and
|
|
14
|
-
* what makes it beat against the pixel grid at some `scale`s.
|
|
15
|
-
* - `'blue'` — a void-and-cluster blue-noise field. Every density stays
|
|
16
|
-
* homogeneous, so the tone is reproduced with no lattice and no moiré. Pick
|
|
17
|
-
* this when the dither should be texture rather than pattern.
|
|
18
|
-
*
|
|
19
|
-
* `matrix` only applies to `'bayer'`.
|
|
20
|
-
*/
|
|
5
|
+
/** Where a pixel's threshold comes from: `'bayer'` (the ordered matrix; its lattice *is* the look, a visible crosshatch that can beat against the pixel grid at some `scale`s) or `'blue'` (void-and-cluster blue noise: homogeneous at every density, no lattice or moiré; texture rather than pattern). `matrix` only applies to `'bayer'`. */
|
|
21
6
|
export type DitherNoise = 'bayer' | 'blue';
|
|
22
|
-
/**
|
|
23
|
-
* Ordered dithering — quantize the image to `levels` tones per channel, but
|
|
24
|
-
* offset each pixel's rounding by a threshold pattern first. The error is traded
|
|
25
|
-
* for texture instead of banding, which is how 8-bit hardware faked gradients.
|
|
26
|
-
*
|
|
27
|
-
* `noise` picks which pattern: the classic Bayer matrix (visible crosshatch, the
|
|
28
|
-
* retro look) or blue noise (no visible structure at any density).
|
|
29
|
-
*
|
|
30
|
-
* Contrast with `posterize`, which quantizes with no threshold pattern and so
|
|
31
|
-
* produces flat bands.
|
|
32
|
-
*/
|
|
7
|
+
/** Ordered dithering: quantize to `levels` tones per channel after offsetting each pixel's rounding by a threshold pattern, trading banding for texture (how 8-bit hardware faked gradients). Unlike `posterize`, which has no pattern and so makes flat bands. */
|
|
33
8
|
export interface DitherEffect extends ModedEffect, EffectFields<typeof ditherSpec.params> {
|
|
34
9
|
type: "dither";
|
|
35
10
|
}
|
|
36
|
-
/** The {@link DitherEffect} spec: its parameters, defaults and ranges. */
|
|
37
11
|
export declare const ditherSpec: import("../spec.js").EffectSpec<"dither", {
|
|
38
12
|
/** Output tones per channel, ≥ 2. */
|
|
39
13
|
readonly levels: import("../spec.js").EffectParamDef<number, number> & NoInfer<{
|
|
@@ -73,12 +47,7 @@ export declare const ditherSpec: import("../spec.js").EffectSpec<"dither", {
|
|
|
73
47
|
}> & {
|
|
74
48
|
kind: "boolean";
|
|
75
49
|
};
|
|
76
|
-
/**
|
|
77
|
-
* Threshold pattern. `'bayer'` is the classic ordered matrix — a visible
|
|
78
|
-
* crosshatch, the retro look, which can beat against the pixel grid at
|
|
79
|
-
* some `scale`s. `'blue'` is a void-and-cluster blue-noise field: same
|
|
80
|
-
* tone reproduction, no lattice, no moiré.
|
|
81
|
-
*/
|
|
50
|
+
/** Threshold pattern; see {@link DitherNoise}. */
|
|
82
51
|
readonly noise: import("../spec.js").EffectParamDef<"blue" | "bayer", "blue" | "bayer"> & NoInfer<{
|
|
83
52
|
readonly default: "bayer";
|
|
84
53
|
readonly label: "ditherNoise";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dither.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/dither.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAqC,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAE/E
|
|
1
|
+
{"version":3,"file":"dither.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/dither.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAqC,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAE/E,gJAAgJ;AAChJ,MAAM,MAAM,YAAY,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAErC,iVAAiV;AACjV,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,CAAC;AAE3C,mQAAmQ;AACnQ,MAAM,WAAW,YAAa,SAAQ,WAAW,EAAE,YAAY,CAAC,OAAO,UAAU,CAAC,MAAM,CAAC;IACrF,IAAI,EAAE,QAAQ,CAAC;CAClB;AAED,eAAO,MAAM,UAAU;IAQf,qCAAqC;;;;;;;;;;;IAErC,2DAA2D;;;;;;;;;IAE3D,mCAAmC;;;;;;;;;;;IAEnC,2CAA2C;;;;;;;IAE3C,kDAAkD;;;;;;;;;;EAGxD,CAAC;AAEH,eAAO,MAAM,YAAY,EAAE,UAAU,CAAC,YAAY,CAA4B,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { defineEffect, effectDataOf, param } from "../spec.js";
|
|
2
|
-
/** The {@link DitherEffect} spec: its parameters, defaults and ranges. */
|
|
3
2
|
export const ditherSpec = defineEffect({
|
|
4
3
|
type: "dither",
|
|
5
4
|
group: "stylize",
|
|
@@ -16,12 +15,7 @@ export const ditherSpec = defineEffect({
|
|
|
16
15
|
scale: param.number({ default: 1, min: 1, step: 1, unit: "px", label: "cellSize", order: 3 }),
|
|
17
16
|
/** Dither luminance to black and white. */
|
|
18
17
|
monochrome: param.boolean({ default: false, order: 4 }),
|
|
19
|
-
/**
|
|
20
|
-
* Threshold pattern. `'bayer'` is the classic ordered matrix — a visible
|
|
21
|
-
* crosshatch, the retro look, which can beat against the pixel grid at
|
|
22
|
-
* some `scale`s. `'blue'` is a void-and-cluster blue-noise field: same
|
|
23
|
-
* tone reproduction, no lattice, no moiré.
|
|
24
|
-
*/
|
|
18
|
+
/** Threshold pattern; see {@link DitherNoise}. */
|
|
25
19
|
noise: param.choice(["bayer", "blue"], { default: "bayer", label: "ditherNoise", optionsLabel: "ditherNoise", order: 1 }),
|
|
26
20
|
},
|
|
27
21
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dither.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/dither.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"dither.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/dither.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAa/E,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,CAAC;IACnC,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,SAAS;IAChB,gEAAgE;IAChE,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE;IACxB,MAAM,EAAE;QACJ,qCAAqC;QACrC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QACtF,2DAA2D;QAC3D,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAA0B,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,YAAY,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QAChH,mCAAmC;QACnC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QAC7F,2CAA2C;QAC3C,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QACvD,kDAAkD;QAClD,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,MAAM,CAAyB,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;KACpJ;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,YAAY,GAA6B,YAAY,CAAC,UAAU,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\n/** Size of the Bayer threshold matrix (2×2, 4×4, 8×8): bigger carries more threshold levels, a finer pattern and wider apparent tonal range. */\nexport type DitherMatrix = 2 | 4 | 8;\n\n/** Where a pixel's threshold comes from: `'bayer'` (the ordered matrix; its lattice *is* the look, a visible crosshatch that can beat against the pixel grid at some `scale`s) or `'blue'` (void-and-cluster blue noise: homogeneous at every density, no lattice or moiré; texture rather than pattern). `matrix` only applies to `'bayer'`. */\nexport type DitherNoise = 'bayer' | 'blue';\n\n/** Ordered dithering: quantize to `levels` tones per channel after offsetting each pixel's rounding by a threshold pattern, trading banding for texture (how 8-bit hardware faked gradients). Unlike `posterize`, which has no pattern and so makes flat bands. */\nexport interface DitherEffect extends ModedEffect, EffectFields<typeof ditherSpec.params> {\n type: \"dither\";\n}\n\nexport const ditherSpec = defineEffect({\n type: \"dither\",\n group: \"stylize\",\n // The threshold depends on the pixel's position in the pattern.\n surface: \"shader\",\n scalar: \"levels\",\n neutral: { levels: 255 },\n params: {\n /** Output tones per channel, ≥ 2. */\n levels: param.number({ default: 2, min: 2, max: 32, step: 1, inline: true, order: 0 }),\n /** Bayer matrix size. Ignored when `noise` is `'blue'`. */\n matrix: param.choice([2, 4, 8] satisfies DitherMatrix[], { default: 4, optionsLabel: \"ditherMatrix\", order: 2 }),\n /** Pattern cell size in pixels. */\n scale: param.number({ default: 1, min: 1, step: 1, unit: \"px\", label: \"cellSize\", order: 3 }),\n /** Dither luminance to black and white. */\n monochrome: param.boolean({ default: false, order: 4 }),\n /** Threshold pattern; see {@link DitherNoise}. */\n noise: param.choice([\"bayer\", \"blue\"] satisfies DitherNoise[], { default: \"bayer\", label: \"ditherNoise\", optionsLabel: \"ditherNoise\", order: 1 }),\n },\n});\n\nexport const ditherEffect: EffectData<DitherEffect> = effectDataOf(ditherSpec);\n"]}
|
|
@@ -1,30 +1,9 @@
|
|
|
1
1
|
import type { ModedEffect, EffectData } from "../effect-data.js";
|
|
2
2
|
import { type EffectFields } from "../spec.js";
|
|
3
|
-
/**
|
|
4
|
-
* A shadow cast from the node's **alpha silhouette** rather than from its
|
|
5
|
-
* geometry — the drop shadow that a `shadow` prop can't give you when the shape
|
|
6
|
-
* on screen isn't the shape of the path.
|
|
7
|
-
*
|
|
8
|
-
* A shape's `shadow` fills the node's own outline with the shadow colour and
|
|
9
|
-
* blurs it, which is exactly right for a rect, an ellipse or a star. It is
|
|
10
|
-
* exactly wrong for anything whose visible form comes from *pixels*: a cut-out
|
|
11
|
-
* PNG, a video with an alpha channel, a line of text, a whole subtree. All of
|
|
12
|
-
* those cast a blurred **rectangle**, because the rectangle is what their path
|
|
13
|
-
* is — and on a cut-out subject that reads as a bug rather than as a shadow.
|
|
14
|
-
*
|
|
15
|
-
* So this one is computed from what the node actually drew. Same relationship
|
|
16
|
-
* to `shadow` that {@link OutlineEffect} has to `stroke`: the geometry version
|
|
17
|
-
* is cheaper and sharper where the path *is* the picture, and this one is the
|
|
18
|
-
* answer everywhere else.
|
|
19
|
-
*
|
|
20
|
-
* Offsets are in the scene's own axes — a positive `y` lifts the shadow upward,
|
|
21
|
-
* matching `ShadowProp.offset` rather than the y-down device space the shader
|
|
22
|
-
* runs in, so the two kinds of shadow move the same way under the same numbers.
|
|
23
|
-
*/
|
|
3
|
+
/** A shadow cast from the node's **alpha silhouette** rather than its geometry. A shape's `shadow` fills the node's outline, right for a rect or star but wrong for anything whose form comes from *pixels* (a cut-out PNG, alpha video, text, a subtree), which would cast a blurred rectangle. Computed from what the node drew, as {@link OutlineEffect} is to `stroke`. Offsets are in scene axes (positive `y` lifts the shadow), matching `ShadowProp.offset`, not the shader's y-down device space. */
|
|
24
4
|
export interface DropShadowEffect extends ModedEffect, EffectFields<typeof dropShadowSpec.params> {
|
|
25
5
|
type: "dropShadow";
|
|
26
6
|
}
|
|
27
|
-
/** The {@link DropShadowEffect} spec: its parameters, defaults and ranges. */
|
|
28
7
|
export declare const dropShadowSpec: import("../spec.js").EffectSpec<"dropShadow", {
|
|
29
8
|
/** Horizontal displacement in pixels. */
|
|
30
9
|
readonly offsetX: import("../spec.js").EffectParamDef<number, number> & NoInfer<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drop-shadow.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/drop-shadow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAqC,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAE/E
|
|
1
|
+
{"version":3,"file":"drop-shadow.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/drop-shadow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAqC,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAE/E,8eAA8e;AAC9e,MAAM,WAAW,gBAAiB,SAAQ,WAAW,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC,MAAM,CAAC;IAC7F,IAAI,EAAE,YAAY,CAAC;CACtB;AAED,eAAO,MAAM,cAAc;IAUnB,yCAAyC;;;;;;;;IAEzC,8DAA8D;;;;;;;;IAE9D,sDAAsD;;;;;;;;;;IAEtD,uDAAuD;;;;;;;;;IAEvD,qBAAqB;;;;;;EAG3B,CAAC;AAEH,eAAO,MAAM,gBAAgB,EAAE,UAAU,CAAC,gBAAgB,CAAgC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drop-shadow.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/drop-shadow.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"drop-shadow.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/drop-shadow.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAO/E,MAAM,CAAC,MAAM,cAAc,GAAG,YAAY,CAAC;IACvC,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,SAAS;IAChB,OAAO,EAAE,QAAQ;IACjB,2DAA2D;IAC3D,MAAM,EAAE,MAAM;IACd,MAAM,EAAE,YAAY;IACpB,6EAA6E;IAC7E,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE;IACvD,MAAM,EAAE;QACJ,yCAAyC;QACzC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;QACnE,8DAA8D;QAC9D,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;QACpE,sDAAsD;QACtD,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QAC1F,uDAAuD;QACvD,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,cAAc,EAAE,CAAC;QAC/E,qBAAqB;QACrB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;KAC3C;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAiC,YAAY,CAAC,cAAc,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\n/** A shadow cast from the node's **alpha silhouette** rather than its geometry. A shape's `shadow` fills the node's outline, right for a rect or star but wrong for anything whose form comes from *pixels* (a cut-out PNG, alpha video, text, a subtree), which would cast a blurred rectangle. Computed from what the node drew, as {@link OutlineEffect} is to `stroke`. Offsets are in scene axes (positive `y` lifts the shadow), matching `ShadowProp.offset`, not the shader's y-down device space. */\nexport interface DropShadowEffect extends ModedEffect, EffectFields<typeof dropShadowSpec.params> {\n type: \"dropShadow\";\n}\n\nexport const dropShadowSpec = defineEffect({\n type: \"dropShadow\",\n group: \"stylize\",\n surface: \"shader\",\n // Softness is the knob a shadow is usually reached for by.\n scalar: \"blur\",\n onlyOn: \"foreground\",\n // Nowhere to fall, no softness and no growth: nothing of it is ever visible.\n neutral: { offsetX: 0, offsetY: 0, blur: 0, spread: 0 },\n params: {\n /** Horizontal displacement in pixels. */\n offsetX: param.number({ default: 0, unit: \"px\", label: \"shadowX\" }),\n /** Vertical displacement in pixels, positive being upward. */\n offsetY: param.number({ default: -8, unit: \"px\", label: \"shadowY\" }),\n /** Softness in pixels, on a `blur` effect's scale. */\n blur: param.number({ default: 16, min: 0, unit: \"px\", label: \"shadowBlur\", inline: true }),\n /** Grows the silhouette before blurring, in pixels. */\n spread: param.number({ default: 0, min: 0, unit: \"px\", label: \"shadowSpread\" }),\n /** Shadow colour. */\n color: param.color({ default: \"black\" }),\n },\n});\n\nexport const dropShadowEffect: EffectData<DropShadowEffect> = effectDataOf(dropShadowSpec);\n"]}
|
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
import type { ModedEffect, EffectData } from "../effect-data.js";
|
|
2
2
|
import { type EffectFields } from "../spec.js";
|
|
3
|
-
/**
|
|
4
|
-
* Duotone / gradient map — remap the content's luminance onto a two-colour ramp,
|
|
5
|
-
* so black becomes `shadows`, white becomes `highlights`, and everything between
|
|
6
|
-
* interpolates. Chroma in the source is discarded; only its brightness survives.
|
|
7
|
-
*
|
|
8
|
-
* The editorial two-colour treatment (Spotify covers, risograph posters) and the
|
|
9
|
-
* general "tint a photo to brand colours" tool, both from one pair of colours.
|
|
10
|
-
*/
|
|
3
|
+
/** Duotone / gradient map: the content's luminance remapped onto a two-colour ramp (black becomes `shadows`, white `highlights`); source chroma is discarded. */
|
|
11
4
|
export interface DuotoneEffect extends ModedEffect, EffectFields<typeof duotoneSpec.params> {
|
|
12
5
|
type: "duotone";
|
|
13
6
|
}
|
|
14
|
-
/** The {@link DuotoneEffect} spec: its parameters, defaults and ranges. */
|
|
15
7
|
export declare const duotoneSpec: import("../spec.js").EffectSpec<"duotone", {
|
|
16
8
|
/** 0–1 blend from the original colours to the full ramp. */
|
|
17
9
|
readonly amount: import("../spec.js").EffectParamDef<number, number> & NoInfer<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"duotone.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/duotone.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAqC,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAE/E
|
|
1
|
+
{"version":3,"file":"duotone.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/duotone.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAqC,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAE/E,iKAAiK;AACjK,MAAM,WAAW,aAAc,SAAQ,WAAW,EAAE,YAAY,CAAC,OAAO,WAAW,CAAC,MAAM,CAAC;IACvF,IAAI,EAAE,SAAS,CAAC;CACnB;AAED,eAAO,MAAM,WAAW;IAQhB,4DAA4D;;;;;;;;;;IAE5D,uCAAuC;;;;;;IAEvC,yCAAyC;;;;;;EAG/C,CAAC;AAEH,eAAO,MAAM,aAAa,EAAE,UAAU,CAAC,aAAa,CAA6B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"duotone.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/duotone.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"duotone.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/duotone.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAO/E,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC;IACpC,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,OAAO;IACd,4EAA4E;IAC5E,wEAAwE;IACxE,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;IACtB,MAAM,EAAE;QACJ,4DAA4D;QAC5D,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACrF,uCAAuC;QACvC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;QAC1C,yCAAyC;QACzC,UAAU,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;KAChD;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,aAAa,GAA8B,YAAY,CAAC,WAAW,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\n/** Duotone / gradient map: the content's luminance remapped onto a two-colour ramp (black becomes `shadows`, white `highlights`); source chroma is discarded. */\nexport interface DuotoneEffect extends ModedEffect, EffectFields<typeof duotoneSpec.params> {\n type: \"duotone\";\n}\n\nexport const duotoneSpec = defineEffect({\n type: \"duotone\",\n group: \"color\",\n // A luminance ramp is a plain affine colour transform, so it composes as an\n // ImageFilter (the default surface) rather than needing a shader scope.\n scalar: \"amount\",\n neutral: { amount: 0 },\n params: {\n /** 0–1 blend from the original colours to the full ramp. */\n amount: param.number({ default: 1, min: 0, max: 1, control: \"slider\", inline: true }),\n /** Colour the darkest tones map to. */\n shadows: param.color({ default: \"black\" }),\n /** Colour the brightest tones map to. */\n highlights: param.color({ default: \"white\" }),\n },\n});\n\nexport const duotoneEffect: EffectData<DuotoneEffect> = effectDataOf(duotoneSpec);\n"]}
|
|
@@ -1,24 +1,11 @@
|
|
|
1
1
|
import type { ModedEffect, EffectData } from "../effect-data.js";
|
|
2
2
|
import { type EffectFields } from "../spec.js";
|
|
3
|
-
/**
|
|
4
|
-
* Which convolution kernel detects the edges.
|
|
5
|
-
*
|
|
6
|
-
* - `"sobel"` — gradient magnitude with a centre-weighted 3×3 pair. The default:
|
|
7
|
-
* thick, smooth, noise-tolerant edges.
|
|
8
|
-
* - `"prewitt"` — the same gradient pair without the centre weighting. Slightly
|
|
9
|
-
* thinner and more literal, noisier on gradients.
|
|
10
|
-
* - `"laplacian"` — second derivative in one pass. Finest lines, picks up texture
|
|
11
|
-
* the gradient operators smooth over.
|
|
12
|
-
*/
|
|
3
|
+
/** Which convolution kernel detects edges: `"sobel"` (default; thick, smooth, noise-tolerant), `"prewitt"` (no centre weighting: slightly thinner, noisier on gradients), `"laplacian"` (second derivative in one pass: finest lines, picks up texture the gradients smooth over). */
|
|
13
4
|
export type EdgeKernel = "sobel" | "prewitt" | "laplacian";
|
|
14
|
-
/**
|
|
15
|
-
* Edge detection — replaces the content with the magnitude of its own gradient,
|
|
16
|
-
* so flat areas go black and boundaries light up.
|
|
17
|
-
*/
|
|
5
|
+
/** Edge detection: replaces the content with the magnitude of its own gradient, so flat areas go black and boundaries light up. */
|
|
18
6
|
export interface EdgesEffect extends ModedEffect, EffectFields<typeof edgesSpec.params> {
|
|
19
7
|
type: "edges";
|
|
20
8
|
}
|
|
21
|
-
/** The {@link EdgesEffect} spec: its parameters, defaults and ranges. */
|
|
22
9
|
export declare const edgesSpec: import("../spec.js").EffectSpec<"edges", {
|
|
23
10
|
/** Multiplier on the detected gradient. */
|
|
24
11
|
readonly strength: import("../spec.js").EffectParamDef<number, number> & NoInfer<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edges.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/edges.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAqC,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAE/E
|
|
1
|
+
{"version":3,"file":"edges.d.ts","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/edges.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAqC,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAE/E,sRAAsR;AACtR,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,WAAW,CAAC;AAE3D,mIAAmI;AACnI,MAAM,WAAW,WAAY,SAAQ,WAAW,EAAE,YAAY,CAAC,OAAO,SAAS,CAAC,MAAM,CAAC;IACnF,IAAI,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,SAAS;IAQd,2CAA2C;;;;;;;;;;IAE3C,4CAA4C;;;;;;;;IAE5C,sDAAsD;;;;;;EAG5D,CAAC;AAEH,eAAO,MAAM,WAAW,EAAE,UAAU,CAAC,WAAW,CAA2B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edges.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/edges.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"edges.js","sourceRoot":"","sources":["../../../../../src/attributes/shape/effects/implementations/edges.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AAU/E,MAAM,CAAC,MAAM,SAAS,GAAG,YAAY,CAAC;IAClC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,SAAS;IAChB,iCAAiC;IACjC,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,UAAU;IAClB,OAAO,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE;IACxB,MAAM,EAAE;QACJ,2CAA2C;QAC3C,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACvF,4CAA4C;QAC5C,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,SAAS,EAAE,WAAW,CAAwB,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC;QAChI,sDAAsD;QACtD,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;KAC7C;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAA4B,YAAY,CAAC,SAAS,CAAC,CAAC","sourcesContent":["import type { ModedEffect, EffectData } from \"../effect-data\";\nimport { defineEffect, effectDataOf, param, type EffectFields } from \"../spec\";\n\n/** Which convolution kernel detects edges: `\"sobel\"` (default; thick, smooth, noise-tolerant), `\"prewitt\"` (no centre weighting: slightly thinner, noisier on gradients), `\"laplacian\"` (second derivative in one pass: finest lines, picks up texture the gradients smooth over). */\nexport type EdgeKernel = \"sobel\" | \"prewitt\" | \"laplacian\";\n\n/** Edge detection: replaces the content with the magnitude of its own gradient, so flat areas go black and boundaries light up. */\nexport interface EdgesEffect extends ModedEffect, EffectFields<typeof edgesSpec.params> {\n type: \"edges\";\n}\n\nexport const edgesSpec = defineEffect({\n type: \"edges\",\n group: \"stylize\",\n // Convolves a 3×3 neighbourhood.\n surface: \"shader\",\n scalar: \"strength\",\n neutral: { strength: 0 },\n params: {\n /** Multiplier on the detected gradient. */\n strength: param.number({ default: 1, min: 0, max: 4, control: \"slider\", inline: true }),\n /** Which operator measures the gradient. */\n kernel: param.choice([\"sobel\", \"prewitt\", \"laplacian\"] satisfies EdgeKernel[], { default: \"sobel\", optionsLabel: \"edgeKernel\" }),\n /** Detect per RGB channel instead of on luminance. */\n colored: param.boolean({ default: false }),\n },\n});\n\nexport const edgesEffect: EffectData<EdgesEffect> = effectDataOf(edgesSpec);\n"]}
|
|
@@ -1,22 +1,9 @@
|
|
|
1
1
|
import type { ModedEffect, EffectData } from "../effect-data.js";
|
|
2
2
|
import { type EffectFields } from "../spec.js";
|
|
3
|
-
/**
|
|
4
|
-
* Figma's Glass: the backdrop seen through a slab of glass whose edge curves
|
|
5
|
-
* down to the node's outline — refracted, split into a spectrum at the curve,
|
|
6
|
-
* optionally frosted, with a rim of light.
|
|
7
|
-
*
|
|
8
|
-
* The fields are Figma's own, in Figma's units, so values copied from a Figma
|
|
9
|
-
* file render the same: `depth` and `frost` are px, `lightAngle` is degrees
|
|
10
|
-
* clockwise from the top, and the rest are 0–100 amounts.
|
|
11
|
-
*
|
|
12
|
-
* Glass only has meaning on the **backdrop** — there is nothing to refract in a
|
|
13
|
-
* node's own paint — so `Effects.glass()` defaults `mode` to `'backdrop'` and the
|
|
14
|
-
* renderer's handler serves that target only.
|
|
15
|
-
*/
|
|
3
|
+
/** Figma's Glass: the backdrop seen through a slab whose edge curves down to the node's outline, refracted, split into a spectrum, optionally frosted, with a rim of light. Fields and units are Figma's (`depth`/`frost` px, `lightAngle` degrees clockwise from the top, the rest 0–100), so copied values render the same. Only meaningful on the **backdrop** (nothing to refract in a node's own paint), so `Effects.glass()` defaults `mode` to `'backdrop'`. */
|
|
16
4
|
export interface GlassEffect extends ModedEffect, EffectFields<typeof glassSpec.params> {
|
|
17
5
|
type: "glass";
|
|
18
6
|
}
|
|
19
|
-
/** The {@link GlassEffect} spec: its parameters, defaults and ranges. */
|
|
20
7
|
export declare const glassSpec: import("../spec.js").EffectSpec<"glass", {
|
|
21
8
|
/** Where the light comes from, in degrees clockwise from the top. */
|
|
22
9
|
readonly lightAngle: import("../spec.js").EffectParamDef<number, number> & NoInfer<{
|