shaders 2.2.45 → 2.2.47
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/LICENSE +17 -6
- package/README.md +4 -60
- package/dist/core/Kaleidoscope-3Kt0m_sh.js +97 -0
- package/dist/core/Mirror-CnEZ7wHa.js +84 -0
- package/dist/core/index.js +0 -25
- package/dist/core/registry.js +66 -62
- package/dist/core/renderer.d.ts +0 -1
- package/dist/core/renderer.d.ts.map +1 -1
- package/dist/core/shaderRegistry.d.ts.map +1 -1
- package/dist/core/shaders/Kaleidoscope/index.d.ts +36 -0
- package/dist/core/shaders/Kaleidoscope/index.d.ts.map +1 -0
- package/dist/core/shaders/Kaleidoscope/index.js +4 -0
- package/dist/core/shaders/LinearBlur/index.js +1 -1
- package/dist/core/shaders/LinearGradient/index.js +1 -1
- package/dist/core/shaders/Liquify/index.js +1 -1
- package/dist/core/shaders/Mirror/index.d.ts +29 -0
- package/dist/core/shaders/Mirror/index.d.ts.map +1 -0
- package/dist/core/shaders/Mirror/index.js +4 -0
- package/dist/core/shaders/Perspective/index.js +1 -1
- package/dist/core/shaders/Pixelate/index.js +1 -1
- package/dist/core/shaders/PolarCoordinates/index.js +1 -1
- package/dist/core/shaders/Posterize/index.js +1 -1
- package/dist/core/shaders/ProgressiveBlur/index.js +1 -1
- package/dist/core/shaders/RadialGradient/index.js +1 -1
- package/dist/core/shaders/RectangularCoordinates/index.js +1 -1
- package/dist/core/shaders/Ripples/index.js +1 -1
- package/dist/core/shaders/Saturation/index.js +1 -1
- package/dist/core/shaders/Sharpness/index.js +1 -1
- package/dist/core/shaders/Shatter/index.js +1 -1
- package/dist/core/shaders/SimplexNoise/index.js +1 -1
- package/dist/core/shaders/SineWave/index.js +1 -1
- package/dist/core/shaders/SolidColor/index.js +1 -1
- package/dist/core/shaders/Spherize/index.js +1 -1
- package/dist/core/shaders/Spiral/index.js +1 -1
- package/dist/core/shaders/Strands/index.js +1 -1
- package/dist/core/shaders/Stretch/index.js +1 -1
- package/dist/core/shaders/Stripes/index.js +1 -1
- package/dist/core/shaders/Swirl/index.js +1 -1
- package/dist/core/shaders/TiltShift/index.js +1 -1
- package/dist/core/shaders/Tint/index.js +1 -1
- package/dist/core/shaders/Tritone/index.js +1 -1
- package/dist/core/shaders/Twirl/index.js +1 -1
- package/dist/core/shaders/Vibrance/index.js +1 -1
- package/dist/core/shaders/WaveDistortion/index.js +1 -1
- package/dist/core/shaders/WebcamTexture/index.js +1 -1
- package/dist/core/shaders/ZoomBlur/index.js +1 -1
- package/dist/core/telemetry/collector.d.ts.map +1 -1
- package/dist/core/telemetry/environmentCollector.d.ts.map +1 -1
- package/dist/core/telemetry/index.d.ts +1 -1
- package/dist/core/telemetry/index.d.ts.map +1 -1
- package/dist/core/telemetry/index.js +28 -23
- package/dist/core/telemetry/types.d.ts +2 -8
- package/dist/core/telemetry/types.d.ts.map +1 -1
- package/dist/react/AngularBlur.js +7 -7
- package/dist/react/Ascii.js +7 -7
- package/dist/react/Beam.js +7 -7
- package/dist/react/Blob.js +7 -7
- package/dist/react/Blur.js +7 -7
- package/dist/react/BrightnessContrast.js +7 -7
- package/dist/react/Bulge.js +7 -7
- package/dist/react/CRTScreen.js +7 -7
- package/dist/react/ChannelBlur.js +7 -7
- package/dist/react/Checkerboard.js +7 -7
- package/dist/react/ChromaFlow.js +7 -7
- package/dist/react/ChromaticAberration.js +7 -7
- package/dist/react/Circle.js +7 -7
- package/dist/react/CursorTrail.js +7 -7
- package/dist/react/DiffuseBlur.js +7 -7
- package/dist/react/Dither.js +7 -7
- package/dist/react/DotGrid.js +7 -7
- package/dist/react/Duotone.js +7 -7
- package/dist/react/FilmGrain.js +7 -7
- package/dist/react/FloatingParticles.js +7 -7
- package/dist/react/GlassTiles.js +7 -7
- package/dist/react/Glow.js +7 -7
- package/dist/react/Godrays.js +7 -7
- package/dist/react/Grayscale.js +7 -7
- package/dist/react/Grid.js +7 -7
- package/dist/react/GridDistortion.js +7 -7
- package/dist/react/Group.js +7 -7
- package/dist/react/Halftone.js +7 -7
- package/dist/react/HueShift.js +7 -7
- package/dist/react/ImageTexture.js +7 -7
- package/dist/react/Invert.js +7 -7
- package/dist/react/Kaleidoscope.js +144 -0
- package/dist/react/LinearBlur.js +7 -7
- package/dist/react/LinearGradient.js +7 -7
- package/dist/react/Liquify.js +7 -7
- package/dist/react/Mirror.js +144 -0
- package/dist/react/Perspective.js +7 -7
- package/dist/react/Pixelate.js +7 -7
- package/dist/react/PolarCoordinates.js +7 -7
- package/dist/react/Posterize.js +7 -7
- package/dist/react/ProgressiveBlur.js +7 -7
- package/dist/react/RadialGradient.js +7 -7
- package/dist/react/RectangularCoordinates.js +7 -7
- package/dist/react/Ripples.js +7 -7
- package/dist/react/Saturation.js +7 -7
- package/dist/react/Shader.js +33 -21
- package/dist/react/Sharpness.js +7 -7
- package/dist/react/Shatter.js +7 -7
- package/dist/react/SimplexNoise.js +7 -7
- package/dist/react/SineWave.js +7 -7
- package/dist/react/SolidColor.js +7 -7
- package/dist/react/Spherize.js +7 -7
- package/dist/react/Spiral.js +7 -7
- package/dist/react/Strands.js +7 -7
- package/dist/react/Stretch.js +7 -7
- package/dist/react/Stripes.js +7 -7
- package/dist/react/Swirl.js +7 -7
- package/dist/react/TiltShift.js +7 -7
- package/dist/react/Tint.js +7 -7
- package/dist/react/Tritone.js +7 -7
- package/dist/react/Twirl.js +7 -7
- package/dist/react/Vibrance.js +7 -7
- package/dist/react/WaveDistortion.js +7 -7
- package/dist/react/WebcamTexture.js +7 -7
- package/dist/react/ZoomBlur.js +7 -7
- package/dist/react/components/AngularBlur.d.ts +2 -2
- package/dist/react/components/AngularBlur.d.ts.map +1 -1
- package/dist/react/components/Ascii.d.ts +2 -2
- package/dist/react/components/Ascii.d.ts.map +1 -1
- package/dist/react/components/Beam.d.ts +2 -2
- package/dist/react/components/Beam.d.ts.map +1 -1
- package/dist/react/components/Blob.d.ts +2 -2
- package/dist/react/components/Blob.d.ts.map +1 -1
- package/dist/react/components/Blur.d.ts +2 -2
- package/dist/react/components/Blur.d.ts.map +1 -1
- package/dist/react/components/BrightnessContrast.d.ts +2 -2
- package/dist/react/components/BrightnessContrast.d.ts.map +1 -1
- package/dist/react/components/Bulge.d.ts +2 -2
- package/dist/react/components/Bulge.d.ts.map +1 -1
- package/dist/react/components/CRTScreen.d.ts +2 -2
- package/dist/react/components/CRTScreen.d.ts.map +1 -1
- package/dist/react/components/ChannelBlur.d.ts +2 -2
- package/dist/react/components/ChannelBlur.d.ts.map +1 -1
- package/dist/react/components/Checkerboard.d.ts +2 -2
- package/dist/react/components/Checkerboard.d.ts.map +1 -1
- package/dist/react/components/ChromaFlow.d.ts +2 -2
- package/dist/react/components/ChromaFlow.d.ts.map +1 -1
- package/dist/react/components/ChromaticAberration.d.ts +2 -2
- package/dist/react/components/ChromaticAberration.d.ts.map +1 -1
- package/dist/react/components/Circle.d.ts +2 -2
- package/dist/react/components/Circle.d.ts.map +1 -1
- package/dist/react/components/CursorTrail.d.ts +2 -2
- package/dist/react/components/CursorTrail.d.ts.map +1 -1
- package/dist/react/components/DiffuseBlur.d.ts +2 -2
- package/dist/react/components/DiffuseBlur.d.ts.map +1 -1
- package/dist/react/components/Dither.d.ts +2 -2
- package/dist/react/components/Dither.d.ts.map +1 -1
- package/dist/react/components/DotGrid.d.ts +2 -2
- package/dist/react/components/DotGrid.d.ts.map +1 -1
- package/dist/react/components/Duotone.d.ts +2 -2
- package/dist/react/components/Duotone.d.ts.map +1 -1
- package/dist/react/components/FilmGrain.d.ts +2 -2
- package/dist/react/components/FilmGrain.d.ts.map +1 -1
- package/dist/react/components/FloatingParticles.d.ts +2 -2
- package/dist/react/components/FloatingParticles.d.ts.map +1 -1
- package/dist/react/components/GlassTiles.d.ts +2 -2
- package/dist/react/components/GlassTiles.d.ts.map +1 -1
- package/dist/react/components/Glow.d.ts +2 -2
- package/dist/react/components/Glow.d.ts.map +1 -1
- package/dist/react/components/Godrays.d.ts +2 -2
- package/dist/react/components/Godrays.d.ts.map +1 -1
- package/dist/react/components/Grayscale.d.ts +2 -2
- package/dist/react/components/Grayscale.d.ts.map +1 -1
- package/dist/react/components/Grid.d.ts +2 -2
- package/dist/react/components/Grid.d.ts.map +1 -1
- package/dist/react/components/GridDistortion.d.ts +2 -2
- package/dist/react/components/GridDistortion.d.ts.map +1 -1
- package/dist/react/components/Group.d.ts +2 -2
- package/dist/react/components/Group.d.ts.map +1 -1
- package/dist/react/components/Halftone.d.ts +2 -2
- package/dist/react/components/Halftone.d.ts.map +1 -1
- package/dist/react/components/HueShift.d.ts +2 -2
- package/dist/react/components/HueShift.d.ts.map +1 -1
- package/dist/react/components/ImageTexture.d.ts +2 -2
- package/dist/react/components/ImageTexture.d.ts.map +1 -1
- package/dist/react/components/Invert.d.ts +2 -2
- package/dist/react/components/Invert.d.ts.map +1 -1
- package/dist/react/components/Kaleidoscope.d.ts +31 -0
- package/dist/react/components/Kaleidoscope.d.ts.map +1 -0
- package/dist/react/components/LinearBlur.d.ts +2 -2
- package/dist/react/components/LinearBlur.d.ts.map +1 -1
- package/dist/react/components/LinearGradient.d.ts +2 -2
- package/dist/react/components/LinearGradient.d.ts.map +1 -1
- package/dist/react/components/Liquify.d.ts +2 -2
- package/dist/react/components/Liquify.d.ts.map +1 -1
- package/dist/react/components/Mirror.d.ts +31 -0
- package/dist/react/components/Mirror.d.ts.map +1 -0
- package/dist/react/components/Perspective.d.ts +2 -2
- package/dist/react/components/Perspective.d.ts.map +1 -1
- package/dist/react/components/Pixelate.d.ts +2 -2
- package/dist/react/components/Pixelate.d.ts.map +1 -1
- package/dist/react/components/PolarCoordinates.d.ts +2 -2
- package/dist/react/components/PolarCoordinates.d.ts.map +1 -1
- package/dist/react/components/Posterize.d.ts +2 -2
- package/dist/react/components/Posterize.d.ts.map +1 -1
- package/dist/react/components/ProgressiveBlur.d.ts +2 -2
- package/dist/react/components/ProgressiveBlur.d.ts.map +1 -1
- package/dist/react/components/RadialGradient.d.ts +2 -2
- package/dist/react/components/RadialGradient.d.ts.map +1 -1
- package/dist/react/components/RectangularCoordinates.d.ts +2 -2
- package/dist/react/components/RectangularCoordinates.d.ts.map +1 -1
- package/dist/react/components/Ripples.d.ts +2 -2
- package/dist/react/components/Ripples.d.ts.map +1 -1
- package/dist/react/components/Saturation.d.ts +2 -2
- package/dist/react/components/Saturation.d.ts.map +1 -1
- package/dist/react/components/Sharpness.d.ts +2 -2
- package/dist/react/components/Sharpness.d.ts.map +1 -1
- package/dist/react/components/Shatter.d.ts +2 -2
- package/dist/react/components/Shatter.d.ts.map +1 -1
- package/dist/react/components/SimplexNoise.d.ts +2 -2
- package/dist/react/components/SimplexNoise.d.ts.map +1 -1
- package/dist/react/components/SineWave.d.ts +2 -2
- package/dist/react/components/SineWave.d.ts.map +1 -1
- package/dist/react/components/SolidColor.d.ts +2 -2
- package/dist/react/components/SolidColor.d.ts.map +1 -1
- package/dist/react/components/Spherize.d.ts +2 -2
- package/dist/react/components/Spherize.d.ts.map +1 -1
- package/dist/react/components/Spiral.d.ts +2 -2
- package/dist/react/components/Spiral.d.ts.map +1 -1
- package/dist/react/components/Strands.d.ts +2 -2
- package/dist/react/components/Strands.d.ts.map +1 -1
- package/dist/react/components/Stretch.d.ts +2 -2
- package/dist/react/components/Stretch.d.ts.map +1 -1
- package/dist/react/components/Stripes.d.ts +2 -2
- package/dist/react/components/Stripes.d.ts.map +1 -1
- package/dist/react/components/Swirl.d.ts +2 -2
- package/dist/react/components/Swirl.d.ts.map +1 -1
- package/dist/react/components/TiltShift.d.ts +2 -2
- package/dist/react/components/TiltShift.d.ts.map +1 -1
- package/dist/react/components/Tint.d.ts +2 -2
- package/dist/react/components/Tint.d.ts.map +1 -1
- package/dist/react/components/Tritone.d.ts +2 -2
- package/dist/react/components/Tritone.d.ts.map +1 -1
- package/dist/react/components/Twirl.d.ts +2 -2
- package/dist/react/components/Twirl.d.ts.map +1 -1
- package/dist/react/components/Vibrance.d.ts +2 -2
- package/dist/react/components/Vibrance.d.ts.map +1 -1
- package/dist/react/components/WaveDistortion.d.ts +2 -2
- package/dist/react/components/WaveDistortion.d.ts.map +1 -1
- package/dist/react/components/WebcamTexture.d.ts +2 -2
- package/dist/react/components/WebcamTexture.d.ts.map +1 -1
- package/dist/react/components/ZoomBlur.d.ts +2 -2
- package/dist/react/components/ZoomBlur.d.ts.map +1 -1
- package/dist/react/engine/Shader.d.ts +9 -9
- package/dist/react/engine/Shader.d.ts.map +1 -1
- package/dist/react/engine/component.template.d.ts +2 -2
- package/dist/react/engine/component.template.d.ts.map +1 -1
- package/dist/react/index.d.ts +2 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +3 -1
- package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/react/utils/generatePresetCode.js +10 -0
- package/dist/registry.js +250 -0
- package/dist/solid/components/Kaleidoscope.d.ts +28 -0
- package/dist/solid/components/Kaleidoscope.d.ts.map +1 -0
- package/dist/solid/components/Kaleidoscope.js +148 -0
- package/dist/solid/components/Mirror.d.ts +28 -0
- package/dist/solid/components/Mirror.d.ts.map +1 -0
- package/dist/solid/components/Mirror.js +148 -0
- package/dist/solid/engine/Shader.d.ts +1 -1
- package/dist/solid/engine/Shader.d.ts.map +1 -1
- package/dist/solid/engine/Shader.js +24 -7
- package/dist/solid/index.d.ts +2 -0
- package/dist/solid/index.d.ts.map +1 -1
- package/dist/solid/index.js +68 -64
- package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/solid/utils/generatePresetCode.js +10 -0
- package/dist/svelte/components/Kaleidoscope.svelte.d.ts +19 -0
- package/dist/svelte/components/Mirror.svelte.d.ts +19 -0
- package/dist/svelte/engine/Shader.svelte.d.ts +1 -1
- package/dist/svelte/{generatePresetCode-CtXcoyI0.js → generatePresetCode-on2wdSC3.js} +10 -0
- package/dist/svelte/index.d.ts +2 -0
- package/dist/svelte/index.js +308 -73
- package/dist/svelte/utils/generatePresetCode.js +1 -1
- package/dist/vue/AngularBlur.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Ascii.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Beam.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Blob.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Blur.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/BrightnessContrast.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Bulge.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/CRTScreen.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/ChannelBlur.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Checkerboard.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/ChromaFlow.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/ChromaticAberration.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Circle.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/CursorTrail.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/DiffuseBlur.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Dither.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/DotGrid.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Duotone.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/FilmGrain.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/FloatingParticles.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/GlassTiles.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Glow.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Godrays.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Grayscale.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Grid.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/GridDistortion.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Group.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Halftone.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/HueShift.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/ImageTexture.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Invert.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Kaleidoscope.js +3 -0
- package/dist/vue/Kaleidoscope.vue_vue_type_script_setup_true_lang.js +127 -0
- package/dist/vue/LinearBlur.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/LinearGradient.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Liquify.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Mirror.js +3 -0
- package/dist/vue/Mirror.vue_vue_type_script_setup_true_lang.js +126 -0
- package/dist/vue/Perspective.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Pixelate.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/PolarCoordinates.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Posterize.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/ProgressiveBlur.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/RadialGradient.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/RectangularCoordinates.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Ripples.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Saturation.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Shader.vue_vue_type_script_setup_true_lang.js +27 -14
- package/dist/vue/Sharpness.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Shatter.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/SimplexNoise.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/SineWave.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/SolidColor.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Spherize.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Spiral.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Strands.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Stretch.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Stripes.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Swirl.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/TiltShift.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Tint.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Tritone.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Twirl.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/Vibrance.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/WaveDistortion.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/WebcamTexture.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/ZoomBlur.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/vue/components/Kaleidoscope.vue.d.ts +57 -0
- package/dist/vue/components/Kaleidoscope.vue.d.ts.map +1 -0
- package/dist/vue/components/Mirror.vue.d.ts +57 -0
- package/dist/vue/components/Mirror.vue.d.ts.map +1 -0
- package/dist/vue/engine/Shader.vue.d.ts +4 -4
- package/dist/vue/engine/Shader.vue.d.ts.map +1 -1
- package/dist/vue/index.d.ts +2 -0
- package/dist/vue/index.d.ts.map +1 -1
- package/dist/vue/index.js +3 -1
- package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/vue/utils/generatePresetCode.js +10 -0
- package/package.json +19 -4
- /package/dist/core/{LinearBlur-CfMT259a.js → LinearBlur-B-rumcdD.js} +0 -0
- /package/dist/core/{LinearGradient-Cn7w-umQ.js → LinearGradient-Al78T7WU.js} +0 -0
- /package/dist/core/{Liquify-BCkIt0A1.js → Liquify-BJgkphoQ.js} +0 -0
- /package/dist/core/{Perspective-CJOFHxEC.js → Perspective-CPhjpprG.js} +0 -0
- /package/dist/core/{Pixelate-BhNAxBsT.js → Pixelate-rlHN9jV1.js} +0 -0
- /package/dist/core/{PolarCoordinates-DLs3K__1.js → PolarCoordinates-Bfa-U0fi.js} +0 -0
- /package/dist/core/{Posterize-XoAqPWv2.js → Posterize-DDzCt2n9.js} +0 -0
- /package/dist/core/{ProgressiveBlur-BIZSnUjp.js → ProgressiveBlur-9-KRqfdm.js} +0 -0
- /package/dist/core/{RadialGradient-sQgXXXQk.js → RadialGradient-BHuQVJ4Q.js} +0 -0
- /package/dist/core/{RectangularCoordinates-CyarkXn0.js → RectangularCoordinates-CMd1Rp4Y.js} +0 -0
- /package/dist/core/{Ripples-Djjw66Bn.js → Ripples-Cil48gEl.js} +0 -0
- /package/dist/core/{Saturation-DLHW_GP6.js → Saturation-D_yZO7cz.js} +0 -0
- /package/dist/core/{Sharpness-DkGuV_dy.js → Sharpness-229T6rR0.js} +0 -0
- /package/dist/core/{Shatter-DVgj2Ea3.js → Shatter-B9tvT-jr.js} +0 -0
- /package/dist/core/{SimplexNoise-BXtLTcAr.js → SimplexNoise-YauHkNYZ.js} +0 -0
- /package/dist/core/{SineWave-BxqFasFh.js → SineWave-BEm0T7c8.js} +0 -0
- /package/dist/core/{SolidColor-DFkDBFq3.js → SolidColor-BSC8voa9.js} +0 -0
- /package/dist/core/{Spherize-DIJ4c_EG.js → Spherize-C6xkW6TJ.js} +0 -0
- /package/dist/core/{Spiral-BBtmU1Fv.js → Spiral-BY5eOKPL.js} +0 -0
- /package/dist/core/{Strands-D6UOhX0L.js → Strands-C5-TqTXW.js} +0 -0
- /package/dist/core/{Stretch-DLpz8Ofm.js → Stretch-CatYi4MC.js} +0 -0
- /package/dist/core/{Stripes-Bre3Z2m_.js → Stripes-BbNIMHDl.js} +0 -0
- /package/dist/core/{Swirl-CfsYsr4X.js → Swirl-ytfGCJTs.js} +0 -0
- /package/dist/core/{TiltShift-BPpXBzBg.js → TiltShift-CvEKlLKc.js} +0 -0
- /package/dist/core/{Tint-BazvezVn.js → Tint-PBKR7M-T.js} +0 -0
- /package/dist/core/{Tritone-w0h2ebDB.js → Tritone-D1rsE5HX.js} +0 -0
- /package/dist/core/{Twirl-dmfYS2Eo.js → Twirl-BQzDHvml.js} +0 -0
- /package/dist/core/{Vibrance-BpWyAK9W.js → Vibrance-JFvD6I5g.js} +0 -0
- /package/dist/core/{WaveDistortion-hWdvaZmT.js → WaveDistortion-D9Dox1gF.js} +0 -0
- /package/dist/core/{WebcamTexture-D4Uv7Plz.js → WebcamTexture-BnrsnuMO.js} +0 -0
- /package/dist/core/{ZoomBlur-DCI4uHOL.js → ZoomBlur-D9At8opY.js} +0 -0
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Shader Effects License Agreement (v1.
|
|
1
|
+
Shader Effects License Agreement (v1.2)
|
|
2
2
|
|
|
3
|
-
Effective Date:
|
|
3
|
+
Effective Date: January 19, 2026
|
|
4
4
|
Licensor: Shader Effects, Inc., a Delaware C-Corporation (“Shader Effects,” “we,” “us,” or “our”)
|
|
5
5
|
Product: Shaders (including all npm packages, components, presets, generated code, and the design platform at shaders.com)
|
|
6
6
|
|
|
@@ -38,12 +38,23 @@ Use Shaders technology in SaaS products, design tools, or developer frameworks w
|
|
|
38
38
|
|
|
39
39
|
Official open-source projects may use Shaders without a license key only for their promotional or documentation websites, provided Shaders is not a core or monetized part of the project.
|
|
40
40
|
|
|
41
|
-
4. Telemetry and
|
|
41
|
+
4. Telemetry and Privacy
|
|
42
42
|
|
|
43
|
-
Shaders may automatically transmit limited, anonymous usage data to Shader Effects
|
|
44
|
-
This data does not include personal information, but may include information such as the domain name, environment type (development or production), and version identifiers to verify that a valid license is in use.
|
|
43
|
+
Shaders may automatically collect and transmit limited, anonymous performance and usage data to Shader Effects' servers for the purposes of improving performance, reliability, and understanding how the library is used in production environments.
|
|
45
44
|
|
|
46
|
-
|
|
45
|
+
Data Collected:
|
|
46
|
+
- Performance metrics (frame rate, render times, component usage)
|
|
47
|
+
- Domain name where Shaders is deployed (e.g., "example.com", without URL paths)
|
|
48
|
+
- Browser family (e.g., Chrome, Firefox, Safari)
|
|
49
|
+
- Device type (mobile, tablet, or desktop)
|
|
50
|
+
- Renderer type (WebGPU or WebGL)
|
|
51
|
+
|
|
52
|
+
This data does not include personal information, IP addresses, user identifiers, or any data that can identify individual end users. Telemetry is sampled at a low rate (typically 1-5% of sessions) and respects Do Not Track browser settings.
|
|
53
|
+
|
|
54
|
+
Opt-Out:
|
|
55
|
+
You may disable telemetry collection entirely by setting the `disableTelemetry` prop on the Shader component or by configuring your environment to respect user privacy preferences. Even when enabled, telemetry will not collect data from users with Do Not Track enabled in their browser.
|
|
56
|
+
|
|
57
|
+
By using Shaders, you acknowledge and consent to this limited data collection solely for these operational purposes.
|
|
47
58
|
|
|
48
59
|
5. Right to Promote Usage
|
|
49
60
|
|
package/README.md
CHANGED
|
@@ -1,73 +1,17 @@
|
|
|
1
1
|
# Shaders
|
|
2
2
|
|
|
3
|
-
## Shader magic for modern frontends
|
|
4
|
-
|
|
5
3
|
<img alt="image" src="https://shaders.com/og.png" />
|
|
6
4
|
|
|
7
5
|
<p align="center">
|
|
8
6
|
<a href="https://www.npmjs.com/package/shaders" rel="noopener noreferrer nofollow" ><img src="https://img.shields.io/npm/v/shaders?color=0368FF&label=version" alt="npm version"></a>
|
|
9
7
|
<a href="https://www.npmjs.com/package/shaders" rel="noopener noreferrer nofollow" ><img src="https://img.shields.io/npm/dm/shaders?color=8D30FF&label=npm" alt="npm downloads per month"></a>
|
|
10
8
|
<a target="_blank" rel="noopener noreferrer nofollow" href="https://www.jsdelivr.com/package/npm/shaders"><img alt="jsDelivr hits (npm)" src="https://img.shields.io/jsdelivr/npm/hm/shaders?logo=jsdeliver&color=FF4FBA"></a>
|
|
11
|
-
<a href="https://
|
|
9
|
+
<a href="https://twitter.com/intent/user?screen_name=npm_i_shaders" target="_blank"><img alt="X (formerly Twitter) Follow" src="https://img.shields.io/twitter/follow/npm_i_shaders"></a>
|
|
12
10
|
</p>
|
|
13
11
|
|
|
14
|
-
##
|
|
15
|
-
|
|
16
|
-
Shaders is available as component libraries for Vue, React & Svelte. No matter which framework you use, you always install `npm install shaders` and then import components from the framework-specific directory, such as `shaders/vue`.
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
# Install
|
|
20
|
-
npm install shaders
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
<details>
|
|
24
|
-
<summary>Usage (Vue)</summary>
|
|
25
|
-
|
|
26
|
-
```html
|
|
27
|
-
<script>
|
|
28
|
-
import { Shader, LinearGradient } from "shaders/vue"
|
|
29
|
-
</script>
|
|
30
|
-
|
|
31
|
-
<template>
|
|
32
|
-
<Shader>
|
|
33
|
-
<LinearGradient/>
|
|
34
|
-
</Shader>
|
|
35
|
-
</template>
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
</details>
|
|
39
|
-
|
|
40
|
-
<details>
|
|
41
|
-
<summary>Usage (React)</summary>
|
|
42
|
-
|
|
43
|
-
```html
|
|
44
|
-
<script>
|
|
45
|
-
import { Shader, LinearGradient } from "shaders/react"
|
|
46
|
-
</script>
|
|
47
|
-
|
|
48
|
-
<template>
|
|
49
|
-
<Shader>
|
|
50
|
-
<LinearGradient/>
|
|
51
|
-
</Shader>
|
|
52
|
-
</template>
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
</details>
|
|
56
|
-
|
|
57
|
-
<details>
|
|
58
|
-
<summary>Usage (Svelte)</summary>
|
|
59
|
-
|
|
60
|
-
```svelte
|
|
61
|
-
<script>
|
|
62
|
-
import { Shader, LinearGradient } from "shaders/svelte"
|
|
63
|
-
</script>
|
|
64
|
-
|
|
65
|
-
<Shader>
|
|
66
|
-
<LinearGradient/>
|
|
67
|
-
</Shader>
|
|
68
|
-
```
|
|
12
|
+
## Shader Magic for Modern Frontends
|
|
69
13
|
|
|
70
|
-
|
|
14
|
+
Shaders is the component system for creative WebGPU effects in the browser. It's available as component libraries for Vue / Nuxt, React / Next, Svelte & Solid.
|
|
71
15
|
|
|
72
16
|
**Learn more and try the Design Editor at https://shaders.com**
|
|
73
17
|
|
|
@@ -75,6 +19,6 @@ npm install shaders
|
|
|
75
19
|
|
|
76
20
|
Shaders © Shader Effects, Inc.
|
|
77
21
|
|
|
78
|
-
Licensed under the Shader Effects License Agreement
|
|
22
|
+
Licensed under the [Shader Effects License Agreement](./LICENSE).
|
|
79
23
|
You may use Shaders freely for non-production or educational use.
|
|
80
24
|
A valid paid license is required for production deployment.
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { t as applyEdgeHandling } from "./edges-Bd7GP4s2.js";
|
|
2
|
+
import { o as transformEdges, s as transformPosition } from "./transformations-YbhRK-rd.js";
|
|
3
|
+
import { atan2, convertToTexture, cos, float, length, mod, screenUV, sin, vec2, vec4, viewportSize } from "three/tsl";
|
|
4
|
+
const componentDefinition = {
|
|
5
|
+
name: "Kaleidoscope",
|
|
6
|
+
category: "Distortions",
|
|
7
|
+
description: "Create a kaleidoscope effect with radial mirrored segments",
|
|
8
|
+
requiresRTT: true,
|
|
9
|
+
requiresChild: true,
|
|
10
|
+
props: {
|
|
11
|
+
center: {
|
|
12
|
+
default: {
|
|
13
|
+
x: .5,
|
|
14
|
+
y: .5
|
|
15
|
+
},
|
|
16
|
+
transform: transformPosition,
|
|
17
|
+
description: "The center point of the kaleidoscope effect",
|
|
18
|
+
ui: {
|
|
19
|
+
type: "position",
|
|
20
|
+
label: "Center"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
segments: {
|
|
24
|
+
default: 6,
|
|
25
|
+
description: "Number of radial segments in the kaleidoscope",
|
|
26
|
+
ui: {
|
|
27
|
+
type: "range",
|
|
28
|
+
min: 2,
|
|
29
|
+
max: 24,
|
|
30
|
+
step: 1,
|
|
31
|
+
label: "Segments"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
angle: {
|
|
35
|
+
default: 0,
|
|
36
|
+
description: "Rotation offset for the entire kaleidoscope pattern",
|
|
37
|
+
ui: {
|
|
38
|
+
type: "range",
|
|
39
|
+
min: 0,
|
|
40
|
+
max: 360,
|
|
41
|
+
step: 1,
|
|
42
|
+
label: "Angle"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
edges: {
|
|
46
|
+
default: "mirror",
|
|
47
|
+
description: "How to handle edges when distortion pushes content out of bounds",
|
|
48
|
+
transform: transformEdges,
|
|
49
|
+
ui: {
|
|
50
|
+
type: "select",
|
|
51
|
+
options: [
|
|
52
|
+
{
|
|
53
|
+
label: "Stretch",
|
|
54
|
+
value: "stretch"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
label: "Transparent",
|
|
58
|
+
value: "transparent"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
label: "Mirror",
|
|
62
|
+
value: "mirror"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
label: "Wrap",
|
|
66
|
+
value: "wrap"
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
label: "Edges"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
fragmentNode: ({ uniforms, childNode, onCleanup }) => {
|
|
74
|
+
if (!childNode) return vec4(0, 0, 0, 0);
|
|
75
|
+
const childTexture = convertToTexture(childNode);
|
|
76
|
+
onCleanup(() => {
|
|
77
|
+
if (childTexture?.renderTarget?.dispose) childTexture.renderTarget.dispose();
|
|
78
|
+
});
|
|
79
|
+
const aspect = viewportSize.x.div(viewportSize.y);
|
|
80
|
+
const aspectCorrectedUV = vec2(screenUV.x.mul(aspect), screenUV.y);
|
|
81
|
+
const centerPos = vec2(uniforms.center.uniform.x.mul(aspect), uniforms.center.uniform.y.oneMinus());
|
|
82
|
+
const delta = aspectCorrectedUV.sub(centerPos);
|
|
83
|
+
const radius = length(delta);
|
|
84
|
+
const currentAngle = atan2(delta.y, delta.x);
|
|
85
|
+
const rotationRad = uniforms.angle.uniform.mul(Math.PI / 180);
|
|
86
|
+
const rotatedAngle = currentAngle.add(rotationRad);
|
|
87
|
+
const segmentAngle = float(Math.PI * 2).div(uniforms.segments.uniform);
|
|
88
|
+
const wrappedAngle = mod(rotatedAngle, segmentAngle.mul(2));
|
|
89
|
+
const finalAngle = wrappedAngle.greaterThan(segmentAngle).select(segmentAngle.mul(2).sub(wrappedAngle), wrappedAngle);
|
|
90
|
+
const kaleidoscopeDelta = vec2(cos(finalAngle).mul(radius), sin(finalAngle).mul(radius));
|
|
91
|
+
const kaleidoscopePos = centerPos.add(kaleidoscopeDelta);
|
|
92
|
+
const finalUV = vec2(kaleidoscopePos.x.div(aspect), kaleidoscopePos.y);
|
|
93
|
+
return applyEdgeHandling(finalUV, childTexture.sample(finalUV), childTexture, uniforms.edges.uniform);
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
var Kaleidoscope_default = componentDefinition;
|
|
97
|
+
export { componentDefinition as n, Kaleidoscope_default as t };
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { t as applyEdgeHandling } from "./edges-Bd7GP4s2.js";
|
|
2
|
+
import { o as transformEdges, s as transformPosition } from "./transformations-YbhRK-rd.js";
|
|
3
|
+
import { convertToTexture, cos, mix, screenUV, sin, step, vec2, vec4, viewportSize } from "three/tsl";
|
|
4
|
+
const componentDefinition = {
|
|
5
|
+
name: "Mirror",
|
|
6
|
+
category: "Distortions",
|
|
7
|
+
description: "Mirror content across a line defined by center point and angle",
|
|
8
|
+
requiresRTT: true,
|
|
9
|
+
requiresChild: true,
|
|
10
|
+
props: {
|
|
11
|
+
center: {
|
|
12
|
+
default: {
|
|
13
|
+
x: .5,
|
|
14
|
+
y: .5
|
|
15
|
+
},
|
|
16
|
+
transform: transformPosition,
|
|
17
|
+
description: "The point the mirror line passes through",
|
|
18
|
+
ui: {
|
|
19
|
+
type: "position",
|
|
20
|
+
label: "Center"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
angle: {
|
|
24
|
+
default: 0,
|
|
25
|
+
description: "The angle of the mirror line in degrees",
|
|
26
|
+
ui: {
|
|
27
|
+
type: "range",
|
|
28
|
+
min: 0,
|
|
29
|
+
max: 360,
|
|
30
|
+
step: 1,
|
|
31
|
+
label: "Angle"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
edges: {
|
|
35
|
+
default: "mirror",
|
|
36
|
+
description: "How to handle edges when distortion pushes content out of bounds",
|
|
37
|
+
transform: transformEdges,
|
|
38
|
+
ui: {
|
|
39
|
+
type: "select",
|
|
40
|
+
options: [
|
|
41
|
+
{
|
|
42
|
+
label: "Stretch",
|
|
43
|
+
value: "stretch"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
label: "Transparent",
|
|
47
|
+
value: "transparent"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
label: "Mirror",
|
|
51
|
+
value: "mirror"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
label: "Wrap",
|
|
55
|
+
value: "wrap"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
label: "Edges"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
fragmentNode: ({ uniforms, childNode, onCleanup }) => {
|
|
63
|
+
if (!childNode) return vec4(0, 0, 0, 0);
|
|
64
|
+
const childTexture = convertToTexture(childNode);
|
|
65
|
+
onCleanup(() => {
|
|
66
|
+
if (childTexture?.renderTarget?.dispose) childTexture.renderTarget.dispose();
|
|
67
|
+
});
|
|
68
|
+
const aspect = viewportSize.x.div(viewportSize.y);
|
|
69
|
+
const aspectCorrectedUV = vec2(screenUV.x.mul(aspect), screenUV.y);
|
|
70
|
+
const centerPos = vec2(uniforms.center.uniform.x.mul(aspect), uniforms.center.uniform.y.oneMinus());
|
|
71
|
+
const delta = aspectCorrectedUV.sub(centerPos);
|
|
72
|
+
const angleRad = uniforms.angle.uniform.mul(Math.PI / 180);
|
|
73
|
+
const lineDirection = vec2(cos(angleRad), sin(angleRad));
|
|
74
|
+
const lineNormal = vec2(lineDirection.y.negate(), lineDirection.x);
|
|
75
|
+
const signedDistance = delta.dot(lineNormal);
|
|
76
|
+
const reflectedDelta = delta.sub(lineNormal.mul(signedDistance.mul(2)));
|
|
77
|
+
const mirroredUV = centerPos.add(reflectedDelta);
|
|
78
|
+
const finalMirroredUV = vec2(mirroredUV.x.div(aspect), mirroredUV.y);
|
|
79
|
+
const shouldMirror = step(0, signedDistance);
|
|
80
|
+
return mix(childTexture.sample(screenUV), applyEdgeHandling(finalMirroredUV, childTexture.sample(finalMirroredUV), childTexture, uniforms.edges.uniform), shouldMirror);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
var Mirror_default = componentDefinition;
|
|
84
|
+
export { componentDefinition as n, Mirror_default as t };
|
package/dist/core/index.js
CHANGED
|
@@ -508,7 +508,6 @@ function updateUniformValue(uniform$1, newValue) {
|
|
|
508
508
|
}
|
|
509
509
|
} else uniform$1.uniform.value = newValue;
|
|
510
510
|
}
|
|
511
|
-
var hasLoggedLicenseInfo = false;
|
|
512
511
|
var globalEventManager = (() => {
|
|
513
512
|
let instanceCount = 0;
|
|
514
513
|
const callbacks = /* @__PURE__ */ new Set();
|
|
@@ -569,24 +568,6 @@ var globalEventManager = (() => {
|
|
|
569
568
|
};
|
|
570
569
|
} };
|
|
571
570
|
})();
|
|
572
|
-
var isDevelopment = () => {
|
|
573
|
-
try {
|
|
574
|
-
{
|
|
575
|
-
const { MODE, DEV } = {
|
|
576
|
-
"DEV": false,
|
|
577
|
-
"MODE": "production"
|
|
578
|
-
};
|
|
579
|
-
return DEV || MODE === "development";
|
|
580
|
-
}
|
|
581
|
-
if (typeof window !== "undefined" && window.location) {
|
|
582
|
-
const hostname = window.location.hostname;
|
|
583
|
-
return hostname === "localhost" || hostname === "127.0.0.1" || hostname.endsWith(".local") || hostname.includes("dev.") || hostname.startsWith("dev-");
|
|
584
|
-
}
|
|
585
|
-
return false;
|
|
586
|
-
} catch (error) {
|
|
587
|
-
return false;
|
|
588
|
-
}
|
|
589
|
-
};
|
|
590
571
|
function shaderRenderer() {
|
|
591
572
|
let canvasElement = null;
|
|
592
573
|
let renderer;
|
|
@@ -1518,11 +1499,6 @@ function shaderRenderer() {
|
|
|
1518
1499
|
if (initializationAbortController === localAbortController) initializationAbortController = null;
|
|
1519
1500
|
}
|
|
1520
1501
|
};
|
|
1521
|
-
const showLicenseWarning = () => {
|
|
1522
|
-
if (!isDevelopment() || hasLoggedLicenseInfo) return;
|
|
1523
|
-
console.warn("Shaders is running in development mode. Please purchase a license at https://shaders.com to use it in production.");
|
|
1524
|
-
hasLoggedLicenseInfo = true;
|
|
1525
|
-
};
|
|
1526
1502
|
const cleanup = () => {
|
|
1527
1503
|
if (initializationAbortController) initializationAbortController.abort();
|
|
1528
1504
|
if (resizeObserver) {
|
|
@@ -1606,7 +1582,6 @@ function shaderRenderer() {
|
|
|
1606
1582
|
removeNode,
|
|
1607
1583
|
updateUniformValue: updateUniformValue$1,
|
|
1608
1584
|
updateNodeMetadata,
|
|
1609
|
-
showLicenseWarning,
|
|
1610
1585
|
isInitialized: () => isInitialized,
|
|
1611
1586
|
startAnimation,
|
|
1612
1587
|
stopAnimation,
|
package/dist/core/registry.js
CHANGED
|
@@ -33,37 +33,39 @@ import { n as componentDefinition$27 } from "./Halftone-Cb5yrPnj.js";
|
|
|
33
33
|
import { n as componentDefinition$28 } from "./HueShift-DQ2WgImx.js";
|
|
34
34
|
import { n as componentDefinition$29 } from "./ImageTexture-DKFb8ze3.js";
|
|
35
35
|
import { n as componentDefinition$30 } from "./Invert-w9duGaUu.js";
|
|
36
|
-
import { n as componentDefinition$31 } from "./
|
|
37
|
-
import { n as componentDefinition$32 } from "./
|
|
38
|
-
import { n as componentDefinition$33 } from "./
|
|
39
|
-
import { n as componentDefinition$34 } from "./
|
|
40
|
-
import { n as componentDefinition$35 } from "./
|
|
41
|
-
import { n as componentDefinition$36 } from "./
|
|
42
|
-
import { n as componentDefinition$37 } from "./
|
|
43
|
-
import { n as componentDefinition$38 } from "./
|
|
44
|
-
import { n as componentDefinition$39 } from "./
|
|
45
|
-
import { n as componentDefinition$40 } from "./
|
|
46
|
-
import { n as componentDefinition$41 } from "./
|
|
47
|
-
import { n as componentDefinition$42 } from "./
|
|
48
|
-
import { n as componentDefinition$43 } from "./
|
|
49
|
-
import { n as componentDefinition$44 } from "./
|
|
50
|
-
import { n as componentDefinition$45 } from "./
|
|
51
|
-
import { n as componentDefinition$46 } from "./
|
|
52
|
-
import { n as componentDefinition$47 } from "./
|
|
53
|
-
import { n as componentDefinition$48 } from "./
|
|
54
|
-
import { n as componentDefinition$49 } from "./
|
|
55
|
-
import { n as componentDefinition$50 } from "./
|
|
56
|
-
import { n as componentDefinition$51 } from "./
|
|
57
|
-
import { n as componentDefinition$52 } from "./
|
|
58
|
-
import { n as componentDefinition$53 } from "./
|
|
59
|
-
import { n as componentDefinition$54 } from "./
|
|
60
|
-
import { n as componentDefinition$55 } from "./
|
|
61
|
-
import { n as componentDefinition$56 } from "./
|
|
62
|
-
import { n as componentDefinition$57 } from "./
|
|
63
|
-
import { n as componentDefinition$58 } from "./
|
|
64
|
-
import { n as componentDefinition$59 } from "./
|
|
65
|
-
import { n as componentDefinition$60 } from "./
|
|
66
|
-
import { n as componentDefinition$61 } from "./
|
|
36
|
+
import { n as componentDefinition$31 } from "./Kaleidoscope-3Kt0m_sh.js";
|
|
37
|
+
import { n as componentDefinition$32 } from "./LinearBlur-B-rumcdD.js";
|
|
38
|
+
import { n as componentDefinition$33 } from "./LinearGradient-Al78T7WU.js";
|
|
39
|
+
import { n as componentDefinition$34 } from "./Liquify-BJgkphoQ.js";
|
|
40
|
+
import { n as componentDefinition$35 } from "./Mirror-CnEZ7wHa.js";
|
|
41
|
+
import { n as componentDefinition$36 } from "./Perspective-CPhjpprG.js";
|
|
42
|
+
import { n as componentDefinition$37 } from "./Pixelate-rlHN9jV1.js";
|
|
43
|
+
import { n as componentDefinition$38 } from "./PolarCoordinates-Bfa-U0fi.js";
|
|
44
|
+
import { n as componentDefinition$39 } from "./Posterize-DDzCt2n9.js";
|
|
45
|
+
import { n as componentDefinition$40 } from "./ProgressiveBlur-9-KRqfdm.js";
|
|
46
|
+
import { n as componentDefinition$41 } from "./RadialGradient-BHuQVJ4Q.js";
|
|
47
|
+
import { n as componentDefinition$42 } from "./RectangularCoordinates-CMd1Rp4Y.js";
|
|
48
|
+
import { n as componentDefinition$43 } from "./Ripples-Cil48gEl.js";
|
|
49
|
+
import { n as componentDefinition$44 } from "./Saturation-D_yZO7cz.js";
|
|
50
|
+
import { n as componentDefinition$45 } from "./Sharpness-229T6rR0.js";
|
|
51
|
+
import { n as componentDefinition$46 } from "./Shatter-B9tvT-jr.js";
|
|
52
|
+
import { n as componentDefinition$47 } from "./SimplexNoise-YauHkNYZ.js";
|
|
53
|
+
import { n as componentDefinition$48 } from "./SineWave-BEm0T7c8.js";
|
|
54
|
+
import { n as componentDefinition$49 } from "./SolidColor-BSC8voa9.js";
|
|
55
|
+
import { n as componentDefinition$50 } from "./Spherize-C6xkW6TJ.js";
|
|
56
|
+
import { n as componentDefinition$51 } from "./Spiral-BY5eOKPL.js";
|
|
57
|
+
import { n as componentDefinition$52 } from "./Strands-C5-TqTXW.js";
|
|
58
|
+
import { n as componentDefinition$53 } from "./Stretch-CatYi4MC.js";
|
|
59
|
+
import { n as componentDefinition$54 } from "./Stripes-BbNIMHDl.js";
|
|
60
|
+
import { n as componentDefinition$55 } from "./Swirl-ytfGCJTs.js";
|
|
61
|
+
import { n as componentDefinition$56 } from "./TiltShift-CvEKlLKc.js";
|
|
62
|
+
import { n as componentDefinition$57 } from "./Tint-PBKR7M-T.js";
|
|
63
|
+
import { n as componentDefinition$58 } from "./Tritone-D1rsE5HX.js";
|
|
64
|
+
import { n as componentDefinition$59 } from "./Twirl-BQzDHvml.js";
|
|
65
|
+
import { n as componentDefinition$60 } from "./Vibrance-JFvD6I5g.js";
|
|
66
|
+
import { n as componentDefinition$61 } from "./WaveDistortion-D9Dox1gF.js";
|
|
67
|
+
import { n as componentDefinition$62 } from "./WebcamTexture-BnrsnuMO.js";
|
|
68
|
+
import { n as componentDefinition$63 } from "./ZoomBlur-D9At8opY.js";
|
|
67
69
|
var createShaderRegistry = () => {
|
|
68
70
|
const registry = {};
|
|
69
71
|
const shaderDefinitions = {
|
|
@@ -98,37 +100,39 @@ var createShaderRegistry = () => {
|
|
|
98
100
|
HueShift: componentDefinition$28,
|
|
99
101
|
ImageTexture: componentDefinition$29,
|
|
100
102
|
Invert: componentDefinition$30,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
103
|
+
Kaleidoscope: componentDefinition$31,
|
|
104
|
+
LinearBlur: componentDefinition$32,
|
|
105
|
+
LinearGradient: componentDefinition$33,
|
|
106
|
+
Liquify: componentDefinition$34,
|
|
107
|
+
Mirror: componentDefinition$35,
|
|
108
|
+
Perspective: componentDefinition$36,
|
|
109
|
+
Pixelate: componentDefinition$37,
|
|
110
|
+
PolarCoordinates: componentDefinition$38,
|
|
111
|
+
Posterize: componentDefinition$39,
|
|
112
|
+
ProgressiveBlur: componentDefinition$40,
|
|
113
|
+
RadialGradient: componentDefinition$41,
|
|
114
|
+
RectangularCoordinates: componentDefinition$42,
|
|
115
|
+
Ripples: componentDefinition$43,
|
|
116
|
+
Saturation: componentDefinition$44,
|
|
117
|
+
Sharpness: componentDefinition$45,
|
|
118
|
+
Shatter: componentDefinition$46,
|
|
119
|
+
SimplexNoise: componentDefinition$47,
|
|
120
|
+
SineWave: componentDefinition$48,
|
|
121
|
+
SolidColor: componentDefinition$49,
|
|
122
|
+
Spherize: componentDefinition$50,
|
|
123
|
+
Spiral: componentDefinition$51,
|
|
124
|
+
Strands: componentDefinition$52,
|
|
125
|
+
Stretch: componentDefinition$53,
|
|
126
|
+
Stripes: componentDefinition$54,
|
|
127
|
+
Swirl: componentDefinition$55,
|
|
128
|
+
TiltShift: componentDefinition$56,
|
|
129
|
+
Tint: componentDefinition$57,
|
|
130
|
+
Tritone: componentDefinition$58,
|
|
131
|
+
Twirl: componentDefinition$59,
|
|
132
|
+
Vibrance: componentDefinition$60,
|
|
133
|
+
WaveDistortion: componentDefinition$61,
|
|
134
|
+
WebcamTexture: componentDefinition$62,
|
|
135
|
+
ZoomBlur: componentDefinition$63
|
|
132
136
|
};
|
|
133
137
|
Object.entries(shaderDefinitions).forEach(([fileName, def]) => {
|
|
134
138
|
const propsMetadata = {};
|
package/dist/core/renderer.d.ts
CHANGED
|
@@ -112,7 +112,6 @@ export declare function shaderRenderer(): {
|
|
|
112
112
|
removeNode: (id: string) => void;
|
|
113
113
|
updateUniformValue: (nodeId: string, uniformName: string, value: any) => void;
|
|
114
114
|
updateNodeMetadata: (nodeId: string, metadata: Partial<NodeMetadata>) => void;
|
|
115
|
-
showLicenseWarning: () => void;
|
|
116
115
|
isInitialized: () => boolean;
|
|
117
116
|
startAnimation: () => void;
|
|
118
117
|
stopAnimation: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../src/renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,KAAK,IAAI,EAMZ,MAAM,cAAc,CAAA;AAKrB,OAAO,EAAC,eAAe,EAAE,mBAAmB,EAAE,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,WAAW,EAAC,MAAM,SAAS,CAAA;AACvH,OAAO,EAAqB,gBAAgB,EAAC,MAAM,sBAAsB,CAAA;AAKzE;;GAEG;AACH,UAAU,QAAQ;IAEd;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IAErB;;OAEG;IACH,gBAAgB,EAAE,mBAAmB,CAAC,cAAc,CAAC,CAAA;IAErD;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IAEvB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAA;IAEpB;;;;OAIG;IACH,aAAa,EAAE,OAAO,CAAA;IAEtB;;OAEG;IACH,cAAc,EAAE,GAAG,CAAA;IAEnB;;OAEG;IACH,QAAQ,EAAE,YAAY,CAAA;IAEtB;;OAEG;IACH,QAAQ,EAAE,WAAW,CAAA;IAErB;;;OAGG;IACH,gBAAgB,EAAE,eAAe,EAAE,CAAA;IAEnC;;;OAGG;IACH,qBAAqB,EAAE,cAAc,EAAE,CAAA;IAEvC;;;OAGG;IACH,oBAAoB,EAAE,cAAc,EAAE,CAAA;IAEtC;;;OAGG;IACH,eAAe,EAAE,cAAc,EAAE,CAAA;IAEjC;;;OAGG;IACH,iBAAiB,CAAC,EAAE;QAChB,OAAO,EAAE,GAAG,CAAA;QACZ,OAAO,EAAE,GAAG,CAAA;QACZ,QAAQ,EAAE,GAAG,CAAA;QACb,KAAK,EAAE,GAAG,CAAA;QACV,OAAO,EAAE,GAAG,CAAA;QACZ,OAAO,EAAE,GAAG,CAAA;QACZ,KAAK,EAAE,GAAG,CAAA;QACV,WAAW,EAAE,GAAG,CAAA;KACnB,CAAA;IAED;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAE/B;AAED;;GAEG;AACH,UAAU,YAAY;IAClB,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;IAC5B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAClC;AAED;;GAEG;AACH,UAAU,iBAAiB;IACvB,MAAM,EAAE,iBAAiB,CAAA;IACzB,yBAAyB,CAAC,EAAE,OAAO,CAAA;CACtC;
|
|
1
|
+
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../src/renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,KAAK,IAAI,EAMZ,MAAM,cAAc,CAAA;AAKrB,OAAO,EAAC,eAAe,EAAE,mBAAmB,EAAE,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,WAAW,EAAC,MAAM,SAAS,CAAA;AACvH,OAAO,EAAqB,gBAAgB,EAAC,MAAM,sBAAsB,CAAA;AAKzE;;GAEG;AACH,UAAU,QAAQ;IAEd;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IAErB;;OAEG;IACH,gBAAgB,EAAE,mBAAmB,CAAC,cAAc,CAAC,CAAA;IAErD;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IAEvB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAA;IAEpB;;;;OAIG;IACH,aAAa,EAAE,OAAO,CAAA;IAEtB;;OAEG;IACH,cAAc,EAAE,GAAG,CAAA;IAEnB;;OAEG;IACH,QAAQ,EAAE,YAAY,CAAA;IAEtB;;OAEG;IACH,QAAQ,EAAE,WAAW,CAAA;IAErB;;;OAGG;IACH,gBAAgB,EAAE,eAAe,EAAE,CAAA;IAEnC;;;OAGG;IACH,qBAAqB,EAAE,cAAc,EAAE,CAAA;IAEvC;;;OAGG;IACH,oBAAoB,EAAE,cAAc,EAAE,CAAA;IAEtC;;;OAGG;IACH,eAAe,EAAE,cAAc,EAAE,CAAA;IAEjC;;;OAGG;IACH,iBAAiB,CAAC,EAAE;QAChB,OAAO,EAAE,GAAG,CAAA;QACZ,OAAO,EAAE,GAAG,CAAA;QACZ,QAAQ,EAAE,GAAG,CAAA;QACb,KAAK,EAAE,GAAG,CAAA;QACV,OAAO,EAAE,GAAG,CAAA;QACZ,OAAO,EAAE,GAAG,CAAA;QACZ,KAAK,EAAE,GAAG,CAAA;QACV,WAAW,EAAE,GAAG,CAAA;KACnB,CAAA;IAED;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAE/B;AAED;;GAEG;AACH,UAAU,YAAY;IAClB,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;IAC5B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAClC;AAED;;GAEG;AACH,UAAU,iBAAiB;IACvB,MAAM,EAAE,iBAAiB,CAAA;IACzB,yBAAyB,CAAC,EAAE,OAAO,CAAA;CACtC;AA2FD;;GAEG;AACH,wBAAgB,cAAc;wEAwmDG,iBAAiB;;uBAxrBpB,MAAM,oBAAoB,mBAAmB,CAAC,cAAc,CAAC,GAAG,IAAI,YAAY,MAAM,GAAG,IAAI,YAAY,YAAY,GAAG,IAAI,aAAY,WAAW,wBAA6B,mBAAmB,KAAG,IAAI;qBA4R5M,MAAM,KAAG,IAAI;iCA1ID,MAAM,eAAe,MAAM,SAAS,GAAG,KAAG,IAAI;iCAgC9C,MAAM,YAAY,OAAO,CAAC,YAAY,CAAC,KAAG,IAAI;;0BAqXvD,IAAI;yBAeL,IAAI;yBA/LE,OAAO,CAAC,IAAI,CAAC;+BAgKb,gBAAgB;;eA4doB,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;2BAjBrE,QAAQ,GAAG,OAAO,GAAG,IAAI;;;mCAzhDnB,MAAM,KAAG,QAAQ,EAAE;oCAuCzC,IAAI,YACF,QAAQ,UACV,MAAM,kBACE,GAAG,CAAC,MAAM,CAAC,gBACb,IAAI,KACnB,IAAI;0CAuCK,IAAI,YACF,QAAQ,KACnB,IAAI;;;;EAk+CV"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shaderRegistry.d.ts","sourceRoot":"","sources":["../src/shaderRegistry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"shaderRegistry.d.ts","sourceRoot":"","sources":["../src/shaderRegistry.ts"],"names":[],"mappings":"AAmEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAElD,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAA;IACpC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE;QAC5B,EAAE,CAAC,EAAE,GAAG,CAAA;QACR,OAAO,CAAC,EAAE,GAAG,CAAA;QACb,WAAW,CAAC,EAAE,MAAM,CAAA;KACrB,CAAC,CAAA;CACH;AAoGD,eAAO,MAAM,cAAc,qCAAyB,CAAA;AAGpD,wBAAgB,aAAa,IAAI,mBAAmB,EAAE,CAErD;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS,CAE7E;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,mBAAmB,EAAE,CAE5E;AAED,wBAAgB,mBAAmB,IAAI,MAAM,EAAE,CAG9C"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ComponentDefinition } from '../../types';
|
|
2
|
+
import { transformPosition, transformEdges } from '../../utilities/transformations';
|
|
3
|
+
|
|
4
|
+
export interface ComponentProps {
|
|
5
|
+
/**
|
|
6
|
+
* The center point of the kaleidoscope effect
|
|
7
|
+
*
|
|
8
|
+
* Accepts `{ x, y }` objects with values from 0 to 1, or CSS positions like `top center`.
|
|
9
|
+
* @default {"x":0.5,"y":0.5}
|
|
10
|
+
*/
|
|
11
|
+
center: Parameters<typeof transformPosition>[0];
|
|
12
|
+
/**
|
|
13
|
+
* Number of radial segments in the kaleidoscope
|
|
14
|
+
*
|
|
15
|
+
* Accepts a number between 2 and 24.
|
|
16
|
+
* @default 6
|
|
17
|
+
*/
|
|
18
|
+
segments: number;
|
|
19
|
+
/**
|
|
20
|
+
* Rotation offset for the entire kaleidoscope pattern
|
|
21
|
+
*
|
|
22
|
+
* Accepts a number between 0 and 360.
|
|
23
|
+
* @default 0
|
|
24
|
+
*/
|
|
25
|
+
angle: number;
|
|
26
|
+
/**
|
|
27
|
+
* How to handle edges when distortion pushes content out of bounds
|
|
28
|
+
*
|
|
29
|
+
* Accepts one of: `"stretch"`, `"transparent"`, `"mirror"`, `"wrap"`.
|
|
30
|
+
* @default "mirror"
|
|
31
|
+
*/
|
|
32
|
+
edges: Parameters<typeof transformEdges>[0];
|
|
33
|
+
}
|
|
34
|
+
export declare const componentDefinition: ComponentDefinition<ComponentProps>;
|
|
35
|
+
export default componentDefinition;
|
|
36
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/Kaleidoscope/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAIvE,OAAO,EAAC,iBAAiB,EAAE,cAAc,EAAC,MAAM,qCAAqC,CAAA;AAGrF,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAA;IAC/C,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAA;CAC9C;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,CAwGnE,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../../transformations-YbhRK-rd.js";
|
|
2
|
-
import { n as componentDefinition, t as LinearBlur_default } from "../../LinearBlur-
|
|
2
|
+
import { n as componentDefinition, t as LinearBlur_default } from "../../LinearBlur-B-rumcdD.js";
|
|
3
3
|
export { componentDefinition, LinearBlur_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../../transformations-YbhRK-rd.js";
|
|
2
2
|
import "../../colorMixing-CZPFmiT4.js";
|
|
3
|
-
import { n as componentDefinition, t as LinearGradient_default } from "../../LinearGradient-
|
|
3
|
+
import { n as componentDefinition, t as LinearGradient_default } from "../../LinearGradient-Al78T7WU.js";
|
|
4
4
|
export { componentDefinition, LinearGradient_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../../edges-Bd7GP4s2.js";
|
|
2
2
|
import "../../transformations-YbhRK-rd.js";
|
|
3
|
-
import { n as componentDefinition, t as Liquify_default } from "../../Liquify-
|
|
3
|
+
import { n as componentDefinition, t as Liquify_default } from "../../Liquify-BJgkphoQ.js";
|
|
4
4
|
export { componentDefinition, Liquify_default as default };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ComponentDefinition } from '../../types';
|
|
2
|
+
import { transformPosition, transformEdges } from '../../utilities/transformations';
|
|
3
|
+
|
|
4
|
+
export interface ComponentProps {
|
|
5
|
+
/**
|
|
6
|
+
* The point the mirror line passes through
|
|
7
|
+
*
|
|
8
|
+
* Accepts `{ x, y }` objects with values from 0 to 1, or CSS positions like `top center`.
|
|
9
|
+
* @default {"x":0.5,"y":0.5}
|
|
10
|
+
*/
|
|
11
|
+
center: Parameters<typeof transformPosition>[0];
|
|
12
|
+
/**
|
|
13
|
+
* The angle of the mirror line in degrees
|
|
14
|
+
*
|
|
15
|
+
* Accepts a number between 0 and 360.
|
|
16
|
+
* @default 0
|
|
17
|
+
*/
|
|
18
|
+
angle: number;
|
|
19
|
+
/**
|
|
20
|
+
* How to handle edges when distortion pushes content out of bounds
|
|
21
|
+
*
|
|
22
|
+
* Accepts one of: `"stretch"`, `"transparent"`, `"mirror"`, `"wrap"`.
|
|
23
|
+
* @default "mirror"
|
|
24
|
+
*/
|
|
25
|
+
edges: Parameters<typeof transformEdges>[0];
|
|
26
|
+
}
|
|
27
|
+
export declare const componentDefinition: ComponentDefinition<ComponentProps>;
|
|
28
|
+
export default componentDefinition;
|
|
29
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/Mirror/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAIvE,OAAO,EAAC,iBAAiB,EAAE,cAAc,EAAC,MAAM,qCAAqC,CAAA;AAGrF,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAA;IAC/C,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAA;CAC9C;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,CA+FnE,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../../edges-Bd7GP4s2.js";
|
|
2
2
|
import "../../transformations-YbhRK-rd.js";
|
|
3
|
-
import { n as componentDefinition, t as Perspective_default } from "../../Perspective-
|
|
3
|
+
import { n as componentDefinition, t as Perspective_default } from "../../Perspective-CPhjpprG.js";
|
|
4
4
|
export { componentDefinition, Perspective_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as componentDefinition, t as Pixelate_default } from "../../Pixelate-
|
|
1
|
+
import { n as componentDefinition, t as Pixelate_default } from "../../Pixelate-rlHN9jV1.js";
|
|
2
2
|
export { componentDefinition, Pixelate_default as default };
|