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/dist/svelte/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as generatePresetCode } from "./generatePresetCode-
|
|
1
|
+
import { n as generatePresetCode } from "./generatePresetCode-on2wdSC3.js";
|
|
2
2
|
import "svelte/internal/disclose-version";
|
|
3
3
|
import * as $ from "svelte/internal/client";
|
|
4
4
|
import { getContext, onDestroy, onMount, setContext } from "svelte";
|
|
@@ -34,37 +34,39 @@ import { componentDefinition as componentDefinition$27 } from "../core/shaders/H
|
|
|
34
34
|
import { componentDefinition as componentDefinition$28 } from "../core/shaders/HueShift/index.js";
|
|
35
35
|
import { componentDefinition as componentDefinition$29 } from "../core/shaders/ImageTexture/index.js";
|
|
36
36
|
import { componentDefinition as componentDefinition$30 } from "../core/shaders/Invert/index.js";
|
|
37
|
-
import { componentDefinition as componentDefinition$31 } from "../core/shaders/
|
|
38
|
-
import { componentDefinition as componentDefinition$32 } from "../core/shaders/
|
|
39
|
-
import { componentDefinition as componentDefinition$33 } from "../core/shaders/
|
|
40
|
-
import { componentDefinition as componentDefinition$34 } from "../core/shaders/
|
|
41
|
-
import { componentDefinition as componentDefinition$35 } from "../core/shaders/
|
|
42
|
-
import { componentDefinition as componentDefinition$36 } from "../core/shaders/
|
|
43
|
-
import { componentDefinition as componentDefinition$37 } from "../core/shaders/
|
|
44
|
-
import { componentDefinition as componentDefinition$38 } from "../core/shaders/
|
|
45
|
-
import { componentDefinition as componentDefinition$39 } from "../core/shaders/
|
|
46
|
-
import { componentDefinition as componentDefinition$40 } from "../core/shaders/
|
|
47
|
-
import { componentDefinition as componentDefinition$41 } from "../core/shaders/
|
|
48
|
-
import { componentDefinition as componentDefinition$42 } from "../core/shaders/
|
|
49
|
-
import { componentDefinition as componentDefinition$43 } from "../core/shaders/
|
|
50
|
-
import { componentDefinition as componentDefinition$44 } from "../core/shaders/
|
|
51
|
-
import { componentDefinition as componentDefinition$45 } from "../core/shaders/
|
|
52
|
-
import { componentDefinition as componentDefinition$46 } from "../core/shaders/
|
|
53
|
-
import { componentDefinition as componentDefinition$47 } from "../core/shaders/
|
|
54
|
-
import { componentDefinition as componentDefinition$48 } from "../core/shaders/
|
|
55
|
-
import { componentDefinition as componentDefinition$49 } from "../core/shaders/
|
|
56
|
-
import { componentDefinition as componentDefinition$50 } from "../core/shaders/
|
|
57
|
-
import { componentDefinition as componentDefinition$51 } from "../core/shaders/
|
|
58
|
-
import { componentDefinition as componentDefinition$52 } from "../core/shaders/
|
|
59
|
-
import { componentDefinition as componentDefinition$53 } from "../core/shaders/
|
|
60
|
-
import { componentDefinition as componentDefinition$54 } from "../core/shaders/
|
|
61
|
-
import { componentDefinition as componentDefinition$55 } from "../core/shaders/
|
|
62
|
-
import { componentDefinition as componentDefinition$56 } from "../core/shaders/
|
|
63
|
-
import { componentDefinition as componentDefinition$57 } from "../core/shaders/
|
|
64
|
-
import { componentDefinition as componentDefinition$58 } from "../core/shaders/
|
|
65
|
-
import { componentDefinition as componentDefinition$59 } from "../core/shaders/
|
|
66
|
-
import { componentDefinition as componentDefinition$60 } from "../core/shaders/
|
|
67
|
-
import { componentDefinition as componentDefinition$61 } from "../core/shaders/
|
|
37
|
+
import { componentDefinition as componentDefinition$31 } from "../core/shaders/Kaleidoscope/index.js";
|
|
38
|
+
import { componentDefinition as componentDefinition$32 } from "../core/shaders/LinearBlur/index.js";
|
|
39
|
+
import { componentDefinition as componentDefinition$33 } from "../core/shaders/LinearGradient/index.js";
|
|
40
|
+
import { componentDefinition as componentDefinition$34 } from "../core/shaders/Liquify/index.js";
|
|
41
|
+
import { componentDefinition as componentDefinition$35 } from "../core/shaders/Mirror/index.js";
|
|
42
|
+
import { componentDefinition as componentDefinition$36 } from "../core/shaders/Perspective/index.js";
|
|
43
|
+
import { componentDefinition as componentDefinition$37 } from "../core/shaders/Pixelate/index.js";
|
|
44
|
+
import { componentDefinition as componentDefinition$38 } from "../core/shaders/PolarCoordinates/index.js";
|
|
45
|
+
import { componentDefinition as componentDefinition$39 } from "../core/shaders/Posterize/index.js";
|
|
46
|
+
import { componentDefinition as componentDefinition$40 } from "../core/shaders/ProgressiveBlur/index.js";
|
|
47
|
+
import { componentDefinition as componentDefinition$41 } from "../core/shaders/RadialGradient/index.js";
|
|
48
|
+
import { componentDefinition as componentDefinition$42 } from "../core/shaders/RectangularCoordinates/index.js";
|
|
49
|
+
import { componentDefinition as componentDefinition$43 } from "../core/shaders/Ripples/index.js";
|
|
50
|
+
import { componentDefinition as componentDefinition$44 } from "../core/shaders/Saturation/index.js";
|
|
51
|
+
import { componentDefinition as componentDefinition$45 } from "../core/shaders/Sharpness/index.js";
|
|
52
|
+
import { componentDefinition as componentDefinition$46 } from "../core/shaders/Shatter/index.js";
|
|
53
|
+
import { componentDefinition as componentDefinition$47 } from "../core/shaders/SimplexNoise/index.js";
|
|
54
|
+
import { componentDefinition as componentDefinition$48 } from "../core/shaders/SineWave/index.js";
|
|
55
|
+
import { componentDefinition as componentDefinition$49 } from "../core/shaders/SolidColor/index.js";
|
|
56
|
+
import { componentDefinition as componentDefinition$50 } from "../core/shaders/Spherize/index.js";
|
|
57
|
+
import { componentDefinition as componentDefinition$51 } from "../core/shaders/Spiral/index.js";
|
|
58
|
+
import { componentDefinition as componentDefinition$52 } from "../core/shaders/Strands/index.js";
|
|
59
|
+
import { componentDefinition as componentDefinition$53 } from "../core/shaders/Stretch/index.js";
|
|
60
|
+
import { componentDefinition as componentDefinition$54 } from "../core/shaders/Stripes/index.js";
|
|
61
|
+
import { componentDefinition as componentDefinition$55 } from "../core/shaders/Swirl/index.js";
|
|
62
|
+
import { componentDefinition as componentDefinition$56 } from "../core/shaders/TiltShift/index.js";
|
|
63
|
+
import { componentDefinition as componentDefinition$57 } from "../core/shaders/Tint/index.js";
|
|
64
|
+
import { componentDefinition as componentDefinition$58 } from "../core/shaders/Tritone/index.js";
|
|
65
|
+
import { componentDefinition as componentDefinition$59 } from "../core/shaders/Twirl/index.js";
|
|
66
|
+
import { componentDefinition as componentDefinition$60 } from "../core/shaders/Vibrance/index.js";
|
|
67
|
+
import { componentDefinition as componentDefinition$61 } from "../core/shaders/WaveDistortion/index.js";
|
|
68
|
+
import { componentDefinition as componentDefinition$62 } from "../core/shaders/WebcamTexture/index.js";
|
|
69
|
+
import { componentDefinition as componentDefinition$63 } from "../core/shaders/ZoomBlur/index.js";
|
|
68
70
|
import { vec4 } from "three/tsl";
|
|
69
71
|
import { TelemetryCollector, isExternalUser, shouldCollectTelemetry } from "../core/telemetry/index.js";
|
|
70
72
|
function AngularBlur($$anchor, $$props) {
|
|
@@ -3477,7 +3479,7 @@ function Invert($$anchor, $$props) {
|
|
|
3477
3479
|
children?.($$anchor);
|
|
3478
3480
|
$.pop();
|
|
3479
3481
|
}
|
|
3480
|
-
function
|
|
3482
|
+
function Kaleidoscope($$anchor, $$props) {
|
|
3481
3483
|
$.push($$props, true);
|
|
3482
3484
|
const DEFAULT_TRANSFORM = {
|
|
3483
3485
|
offsetX: 0,
|
|
@@ -3587,7 +3589,7 @@ function LinearBlur($$anchor, $$props) {
|
|
|
3587
3589
|
children?.($$anchor);
|
|
3588
3590
|
$.pop();
|
|
3589
3591
|
}
|
|
3590
|
-
function
|
|
3592
|
+
function LinearBlur($$anchor, $$props) {
|
|
3591
3593
|
$.push($$props, true);
|
|
3592
3594
|
const DEFAULT_TRANSFORM = {
|
|
3593
3595
|
offsetX: 0,
|
|
@@ -3697,7 +3699,7 @@ function LinearGradient($$anchor, $$props) {
|
|
|
3697
3699
|
children?.($$anchor);
|
|
3698
3700
|
$.pop();
|
|
3699
3701
|
}
|
|
3700
|
-
function
|
|
3702
|
+
function LinearGradient($$anchor, $$props) {
|
|
3701
3703
|
$.push($$props, true);
|
|
3702
3704
|
const DEFAULT_TRANSFORM = {
|
|
3703
3705
|
offsetX: 0,
|
|
@@ -3807,7 +3809,7 @@ function Liquify($$anchor, $$props) {
|
|
|
3807
3809
|
children?.($$anchor);
|
|
3808
3810
|
$.pop();
|
|
3809
3811
|
}
|
|
3810
|
-
function
|
|
3812
|
+
function Liquify($$anchor, $$props) {
|
|
3811
3813
|
$.push($$props, true);
|
|
3812
3814
|
const DEFAULT_TRANSFORM = {
|
|
3813
3815
|
offsetX: 0,
|
|
@@ -3917,7 +3919,7 @@ function Perspective($$anchor, $$props) {
|
|
|
3917
3919
|
children?.($$anchor);
|
|
3918
3920
|
$.pop();
|
|
3919
3921
|
}
|
|
3920
|
-
function
|
|
3922
|
+
function Mirror($$anchor, $$props) {
|
|
3921
3923
|
$.push($$props, true);
|
|
3922
3924
|
const DEFAULT_TRANSFORM = {
|
|
3923
3925
|
offsetX: 0,
|
|
@@ -4027,7 +4029,7 @@ function Pixelate($$anchor, $$props) {
|
|
|
4027
4029
|
children?.($$anchor);
|
|
4028
4030
|
$.pop();
|
|
4029
4031
|
}
|
|
4030
|
-
function
|
|
4032
|
+
function Perspective($$anchor, $$props) {
|
|
4031
4033
|
$.push($$props, true);
|
|
4032
4034
|
const DEFAULT_TRANSFORM = {
|
|
4033
4035
|
offsetX: 0,
|
|
@@ -4137,7 +4139,7 @@ function PolarCoordinates($$anchor, $$props) {
|
|
|
4137
4139
|
children?.($$anchor);
|
|
4138
4140
|
$.pop();
|
|
4139
4141
|
}
|
|
4140
|
-
function
|
|
4142
|
+
function Pixelate($$anchor, $$props) {
|
|
4141
4143
|
$.push($$props, true);
|
|
4142
4144
|
const DEFAULT_TRANSFORM = {
|
|
4143
4145
|
offsetX: 0,
|
|
@@ -4247,7 +4249,7 @@ function Posterize($$anchor, $$props) {
|
|
|
4247
4249
|
children?.($$anchor);
|
|
4248
4250
|
$.pop();
|
|
4249
4251
|
}
|
|
4250
|
-
function
|
|
4252
|
+
function PolarCoordinates($$anchor, $$props) {
|
|
4251
4253
|
$.push($$props, true);
|
|
4252
4254
|
const DEFAULT_TRANSFORM = {
|
|
4253
4255
|
offsetX: 0,
|
|
@@ -4357,7 +4359,7 @@ function ProgressiveBlur($$anchor, $$props) {
|
|
|
4357
4359
|
children?.($$anchor);
|
|
4358
4360
|
$.pop();
|
|
4359
4361
|
}
|
|
4360
|
-
function
|
|
4362
|
+
function Posterize($$anchor, $$props) {
|
|
4361
4363
|
$.push($$props, true);
|
|
4362
4364
|
const DEFAULT_TRANSFORM = {
|
|
4363
4365
|
offsetX: 0,
|
|
@@ -4467,7 +4469,7 @@ function RadialGradient($$anchor, $$props) {
|
|
|
4467
4469
|
children?.($$anchor);
|
|
4468
4470
|
$.pop();
|
|
4469
4471
|
}
|
|
4470
|
-
function
|
|
4472
|
+
function ProgressiveBlur($$anchor, $$props) {
|
|
4471
4473
|
$.push($$props, true);
|
|
4472
4474
|
const DEFAULT_TRANSFORM = {
|
|
4473
4475
|
offsetX: 0,
|
|
@@ -4577,7 +4579,7 @@ function RectangularCoordinates($$anchor, $$props) {
|
|
|
4577
4579
|
children?.($$anchor);
|
|
4578
4580
|
$.pop();
|
|
4579
4581
|
}
|
|
4580
|
-
function
|
|
4582
|
+
function RadialGradient($$anchor, $$props) {
|
|
4581
4583
|
$.push($$props, true);
|
|
4582
4584
|
const DEFAULT_TRANSFORM = {
|
|
4583
4585
|
offsetX: 0,
|
|
@@ -4687,7 +4689,7 @@ function Ripples($$anchor, $$props) {
|
|
|
4687
4689
|
children?.($$anchor);
|
|
4688
4690
|
$.pop();
|
|
4689
4691
|
}
|
|
4690
|
-
function
|
|
4692
|
+
function RectangularCoordinates($$anchor, $$props) {
|
|
4691
4693
|
$.push($$props, true);
|
|
4692
4694
|
const DEFAULT_TRANSFORM = {
|
|
4693
4695
|
offsetX: 0,
|
|
@@ -4797,7 +4799,7 @@ function Saturation($$anchor, $$props) {
|
|
|
4797
4799
|
children?.($$anchor);
|
|
4798
4800
|
$.pop();
|
|
4799
4801
|
}
|
|
4800
|
-
function
|
|
4802
|
+
function Ripples($$anchor, $$props) {
|
|
4801
4803
|
$.push($$props, true);
|
|
4802
4804
|
const DEFAULT_TRANSFORM = {
|
|
4803
4805
|
offsetX: 0,
|
|
@@ -4907,7 +4909,7 @@ function Sharpness($$anchor, $$props) {
|
|
|
4907
4909
|
children?.($$anchor);
|
|
4908
4910
|
$.pop();
|
|
4909
4911
|
}
|
|
4910
|
-
function
|
|
4912
|
+
function Saturation($$anchor, $$props) {
|
|
4911
4913
|
$.push($$props, true);
|
|
4912
4914
|
const DEFAULT_TRANSFORM = {
|
|
4913
4915
|
offsetX: 0,
|
|
@@ -5017,7 +5019,7 @@ function Shatter($$anchor, $$props) {
|
|
|
5017
5019
|
children?.($$anchor);
|
|
5018
5020
|
$.pop();
|
|
5019
5021
|
}
|
|
5020
|
-
function
|
|
5022
|
+
function Sharpness($$anchor, $$props) {
|
|
5021
5023
|
$.push($$props, true);
|
|
5022
5024
|
const DEFAULT_TRANSFORM = {
|
|
5023
5025
|
offsetX: 0,
|
|
@@ -5127,7 +5129,7 @@ function SimplexNoise($$anchor, $$props) {
|
|
|
5127
5129
|
children?.($$anchor);
|
|
5128
5130
|
$.pop();
|
|
5129
5131
|
}
|
|
5130
|
-
function
|
|
5132
|
+
function Shatter($$anchor, $$props) {
|
|
5131
5133
|
$.push($$props, true);
|
|
5132
5134
|
const DEFAULT_TRANSFORM = {
|
|
5133
5135
|
offsetX: 0,
|
|
@@ -5237,7 +5239,7 @@ function SineWave($$anchor, $$props) {
|
|
|
5237
5239
|
children?.($$anchor);
|
|
5238
5240
|
$.pop();
|
|
5239
5241
|
}
|
|
5240
|
-
function
|
|
5242
|
+
function SimplexNoise($$anchor, $$props) {
|
|
5241
5243
|
$.push($$props, true);
|
|
5242
5244
|
const DEFAULT_TRANSFORM = {
|
|
5243
5245
|
offsetX: 0,
|
|
@@ -5347,7 +5349,7 @@ function SolidColor($$anchor, $$props) {
|
|
|
5347
5349
|
children?.($$anchor);
|
|
5348
5350
|
$.pop();
|
|
5349
5351
|
}
|
|
5350
|
-
function
|
|
5352
|
+
function SineWave($$anchor, $$props) {
|
|
5351
5353
|
$.push($$props, true);
|
|
5352
5354
|
const DEFAULT_TRANSFORM = {
|
|
5353
5355
|
offsetX: 0,
|
|
@@ -5457,7 +5459,7 @@ function Spherize($$anchor, $$props) {
|
|
|
5457
5459
|
children?.($$anchor);
|
|
5458
5460
|
$.pop();
|
|
5459
5461
|
}
|
|
5460
|
-
function
|
|
5462
|
+
function SolidColor($$anchor, $$props) {
|
|
5461
5463
|
$.push($$props, true);
|
|
5462
5464
|
const DEFAULT_TRANSFORM = {
|
|
5463
5465
|
offsetX: 0,
|
|
@@ -5567,7 +5569,7 @@ function Spiral($$anchor, $$props) {
|
|
|
5567
5569
|
children?.($$anchor);
|
|
5568
5570
|
$.pop();
|
|
5569
5571
|
}
|
|
5570
|
-
function
|
|
5572
|
+
function Spherize($$anchor, $$props) {
|
|
5571
5573
|
$.push($$props, true);
|
|
5572
5574
|
const DEFAULT_TRANSFORM = {
|
|
5573
5575
|
offsetX: 0,
|
|
@@ -5677,7 +5679,7 @@ function Strands($$anchor, $$props) {
|
|
|
5677
5679
|
children?.($$anchor);
|
|
5678
5680
|
$.pop();
|
|
5679
5681
|
}
|
|
5680
|
-
function
|
|
5682
|
+
function Spiral($$anchor, $$props) {
|
|
5681
5683
|
$.push($$props, true);
|
|
5682
5684
|
const DEFAULT_TRANSFORM = {
|
|
5683
5685
|
offsetX: 0,
|
|
@@ -5787,7 +5789,7 @@ function Stretch($$anchor, $$props) {
|
|
|
5787
5789
|
children?.($$anchor);
|
|
5788
5790
|
$.pop();
|
|
5789
5791
|
}
|
|
5790
|
-
function
|
|
5792
|
+
function Strands($$anchor, $$props) {
|
|
5791
5793
|
$.push($$props, true);
|
|
5792
5794
|
const DEFAULT_TRANSFORM = {
|
|
5793
5795
|
offsetX: 0,
|
|
@@ -5897,7 +5899,7 @@ function Stripes($$anchor, $$props) {
|
|
|
5897
5899
|
children?.($$anchor);
|
|
5898
5900
|
$.pop();
|
|
5899
5901
|
}
|
|
5900
|
-
function
|
|
5902
|
+
function Stretch($$anchor, $$props) {
|
|
5901
5903
|
$.push($$props, true);
|
|
5902
5904
|
const DEFAULT_TRANSFORM = {
|
|
5903
5905
|
offsetX: 0,
|
|
@@ -6007,7 +6009,7 @@ function Swirl($$anchor, $$props) {
|
|
|
6007
6009
|
children?.($$anchor);
|
|
6008
6010
|
$.pop();
|
|
6009
6011
|
}
|
|
6010
|
-
function
|
|
6012
|
+
function Stripes($$anchor, $$props) {
|
|
6011
6013
|
$.push($$props, true);
|
|
6012
6014
|
const DEFAULT_TRANSFORM = {
|
|
6013
6015
|
offsetX: 0,
|
|
@@ -6117,7 +6119,7 @@ function TiltShift($$anchor, $$props) {
|
|
|
6117
6119
|
children?.($$anchor);
|
|
6118
6120
|
$.pop();
|
|
6119
6121
|
}
|
|
6120
|
-
function
|
|
6122
|
+
function Swirl($$anchor, $$props) {
|
|
6121
6123
|
$.push($$props, true);
|
|
6122
6124
|
const DEFAULT_TRANSFORM = {
|
|
6123
6125
|
offsetX: 0,
|
|
@@ -6227,7 +6229,7 @@ function Tint($$anchor, $$props) {
|
|
|
6227
6229
|
children?.($$anchor);
|
|
6228
6230
|
$.pop();
|
|
6229
6231
|
}
|
|
6230
|
-
function
|
|
6232
|
+
function TiltShift($$anchor, $$props) {
|
|
6231
6233
|
$.push($$props, true);
|
|
6232
6234
|
const DEFAULT_TRANSFORM = {
|
|
6233
6235
|
offsetX: 0,
|
|
@@ -6337,7 +6339,7 @@ function Tritone($$anchor, $$props) {
|
|
|
6337
6339
|
children?.($$anchor);
|
|
6338
6340
|
$.pop();
|
|
6339
6341
|
}
|
|
6340
|
-
function
|
|
6342
|
+
function Tint($$anchor, $$props) {
|
|
6341
6343
|
$.push($$props, true);
|
|
6342
6344
|
const DEFAULT_TRANSFORM = {
|
|
6343
6345
|
offsetX: 0,
|
|
@@ -6447,7 +6449,7 @@ function Twirl($$anchor, $$props) {
|
|
|
6447
6449
|
children?.($$anchor);
|
|
6448
6450
|
$.pop();
|
|
6449
6451
|
}
|
|
6450
|
-
function
|
|
6452
|
+
function Tritone($$anchor, $$props) {
|
|
6451
6453
|
$.push($$props, true);
|
|
6452
6454
|
const DEFAULT_TRANSFORM = {
|
|
6453
6455
|
offsetX: 0,
|
|
@@ -6557,7 +6559,7 @@ function Vibrance($$anchor, $$props) {
|
|
|
6557
6559
|
children?.($$anchor);
|
|
6558
6560
|
$.pop();
|
|
6559
6561
|
}
|
|
6560
|
-
function
|
|
6562
|
+
function Twirl($$anchor, $$props) {
|
|
6561
6563
|
$.push($$props, true);
|
|
6562
6564
|
const DEFAULT_TRANSFORM = {
|
|
6563
6565
|
offsetX: 0,
|
|
@@ -6667,7 +6669,7 @@ function WaveDistortion($$anchor, $$props) {
|
|
|
6667
6669
|
children?.($$anchor);
|
|
6668
6670
|
$.pop();
|
|
6669
6671
|
}
|
|
6670
|
-
function
|
|
6672
|
+
function Vibrance($$anchor, $$props) {
|
|
6671
6673
|
$.push($$props, true);
|
|
6672
6674
|
const DEFAULT_TRANSFORM = {
|
|
6673
6675
|
offsetX: 0,
|
|
@@ -6777,7 +6779,7 @@ function WebcamTexture($$anchor, $$props) {
|
|
|
6777
6779
|
children?.($$anchor);
|
|
6778
6780
|
$.pop();
|
|
6779
6781
|
}
|
|
6780
|
-
function
|
|
6782
|
+
function WaveDistortion($$anchor, $$props) {
|
|
6781
6783
|
$.push($$props, true);
|
|
6782
6784
|
const DEFAULT_TRANSFORM = {
|
|
6783
6785
|
offsetX: 0,
|
|
@@ -6887,14 +6889,234 @@ function ZoomBlur($$anchor, $$props) {
|
|
|
6887
6889
|
children?.($$anchor);
|
|
6888
6890
|
$.pop();
|
|
6889
6891
|
}
|
|
6892
|
+
function WebcamTexture($$anchor, $$props) {
|
|
6893
|
+
$.push($$props, true);
|
|
6894
|
+
const DEFAULT_TRANSFORM = {
|
|
6895
|
+
offsetX: 0,
|
|
6896
|
+
offsetY: 0,
|
|
6897
|
+
rotation: 0,
|
|
6898
|
+
scale: 1,
|
|
6899
|
+
anchorX: .5,
|
|
6900
|
+
anchorY: .5,
|
|
6901
|
+
edges: "transparent"
|
|
6902
|
+
};
|
|
6903
|
+
const componentDefaults = {
|
|
6904
|
+
blendMode: "normal",
|
|
6905
|
+
renderOrder: 0,
|
|
6906
|
+
visible: true,
|
|
6907
|
+
...Object.entries(componentDefinition$62.props).reduce((acc, [key, config]) => {
|
|
6908
|
+
acc[key] = config.default;
|
|
6909
|
+
return acc;
|
|
6910
|
+
}, {})
|
|
6911
|
+
};
|
|
6912
|
+
const props = $.rest_props($$props, [
|
|
6913
|
+
"$$slots",
|
|
6914
|
+
"$$events",
|
|
6915
|
+
"$$legacy"
|
|
6916
|
+
]);
|
|
6917
|
+
const blendMode = $$props.blendMode ?? componentDefaults.blendMode;
|
|
6918
|
+
const opacity = $$props.opacity;
|
|
6919
|
+
const visible = $$props.visible ?? componentDefaults.visible;
|
|
6920
|
+
const id = $$props.id;
|
|
6921
|
+
const maskSource = $$props.maskSource;
|
|
6922
|
+
const maskType = $$props.maskType;
|
|
6923
|
+
const renderOrder = $$props.renderOrder ?? componentDefaults.renderOrder;
|
|
6924
|
+
const { children } = props;
|
|
6925
|
+
const effectiveTransform = $.derived(() => ({
|
|
6926
|
+
...DEFAULT_TRANSFORM,
|
|
6927
|
+
...$$props.transform
|
|
6928
|
+
}));
|
|
6929
|
+
const parentId = getContext("shaderParentId");
|
|
6930
|
+
if (parentId === void 0) throw new Error("Shader components must be used inside an <Shader> component or another shader component");
|
|
6931
|
+
const instanceId = id || `${componentDefinition$62.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
6932
|
+
setContext("shaderParentId", instanceId);
|
|
6933
|
+
const shaderReadyProps = $.derived(() => {
|
|
6934
|
+
let baseProps = { ...componentDefaults };
|
|
6935
|
+
for (const key in props) if (key !== "blendMode" && key !== "opacity" && key !== "visible" && key !== "id" && key !== "maskSource" && key !== "maskType" && key !== "renderOrder" && key !== "transform" && key !== "children") {
|
|
6936
|
+
const propValue = props[key];
|
|
6937
|
+
const defaultValue = componentDefaults[key];
|
|
6938
|
+
if (propValue !== void 0 && propValue !== defaultValue) baseProps[key] = propValue;
|
|
6939
|
+
}
|
|
6940
|
+
return baseProps;
|
|
6941
|
+
});
|
|
6942
|
+
const uniforms = createUniformsMap(componentDefinition$62, $.get(shaderReadyProps), instanceId);
|
|
6943
|
+
const parentRegister = getContext("shaderNodeRegister");
|
|
6944
|
+
if (parentRegister === void 0) throw new Error("Shader components must be used inside an <Shader> component or another shader component");
|
|
6945
|
+
const parentUniformUpdate = getContext("shaderUniformUpdate");
|
|
6946
|
+
if (parentUniformUpdate === void 0) throw new Error("Shader components require shaderUniformUpdate from parent");
|
|
6947
|
+
const parentMetadataUpdate = getContext("shaderMetadataUpdate");
|
|
6948
|
+
if (parentMetadataUpdate === void 0) throw new Error("Shader components require shaderMetadataUpdate from parent");
|
|
6949
|
+
let isRegistered = $.state(false);
|
|
6950
|
+
Object.entries(uniforms).forEach(([propName, { uniform, transform }]) => {
|
|
6951
|
+
$.user_effect(() => {
|
|
6952
|
+
if (!$.get(isRegistered)) return;
|
|
6953
|
+
if (uniform && uniform.value !== void 0) {
|
|
6954
|
+
const newValue = props[propName];
|
|
6955
|
+
if (newValue !== void 0) parentUniformUpdate(instanceId, propName, newValue);
|
|
6956
|
+
}
|
|
6957
|
+
});
|
|
6958
|
+
});
|
|
6959
|
+
$.user_effect(() => {
|
|
6960
|
+
if (!$.get(isRegistered)) return;
|
|
6961
|
+
parentMetadataUpdate(instanceId, {
|
|
6962
|
+
blendMode,
|
|
6963
|
+
opacity,
|
|
6964
|
+
visible: visible === false ? false : true,
|
|
6965
|
+
id,
|
|
6966
|
+
mask: maskSource ? {
|
|
6967
|
+
source: maskSource,
|
|
6968
|
+
type: maskType || "alpha"
|
|
6969
|
+
} : void 0,
|
|
6970
|
+
renderOrder,
|
|
6971
|
+
transform: $.get(effectiveTransform)
|
|
6972
|
+
});
|
|
6973
|
+
});
|
|
6974
|
+
onMount(() => {
|
|
6975
|
+
if (componentDefinition$62 && typeof componentDefinition$62.fragmentNode === "function") {
|
|
6976
|
+
parentRegister(instanceId, componentDefinition$62.fragmentNode, parentId, {
|
|
6977
|
+
blendMode,
|
|
6978
|
+
opacity,
|
|
6979
|
+
visible: visible !== false ? true : false,
|
|
6980
|
+
id,
|
|
6981
|
+
mask: maskSource ? {
|
|
6982
|
+
source: maskSource,
|
|
6983
|
+
type: maskType || "alpha"
|
|
6984
|
+
} : void 0,
|
|
6985
|
+
renderOrder,
|
|
6986
|
+
transform: $.get(effectiveTransform)
|
|
6987
|
+
}, uniforms);
|
|
6988
|
+
$.set(isRegistered, true);
|
|
6989
|
+
} else console.error("componentDefinition.fragmentNode is not a function:", {
|
|
6990
|
+
componentDefinition: componentDefinition$62,
|
|
6991
|
+
fragmentNode: componentDefinition$62?.fragmentNode,
|
|
6992
|
+
type: typeof componentDefinition$62?.fragmentNode
|
|
6993
|
+
});
|
|
6994
|
+
});
|
|
6995
|
+
onDestroy(() => {
|
|
6996
|
+
$.set(isRegistered, false);
|
|
6997
|
+
parentRegister(instanceId, null, null, null, null);
|
|
6998
|
+
});
|
|
6999
|
+
children?.($$anchor);
|
|
7000
|
+
$.pop();
|
|
7001
|
+
}
|
|
7002
|
+
function ZoomBlur($$anchor, $$props) {
|
|
7003
|
+
$.push($$props, true);
|
|
7004
|
+
const DEFAULT_TRANSFORM = {
|
|
7005
|
+
offsetX: 0,
|
|
7006
|
+
offsetY: 0,
|
|
7007
|
+
rotation: 0,
|
|
7008
|
+
scale: 1,
|
|
7009
|
+
anchorX: .5,
|
|
7010
|
+
anchorY: .5,
|
|
7011
|
+
edges: "transparent"
|
|
7012
|
+
};
|
|
7013
|
+
const componentDefaults = {
|
|
7014
|
+
blendMode: "normal",
|
|
7015
|
+
renderOrder: 0,
|
|
7016
|
+
visible: true,
|
|
7017
|
+
...Object.entries(componentDefinition$63.props).reduce((acc, [key, config]) => {
|
|
7018
|
+
acc[key] = config.default;
|
|
7019
|
+
return acc;
|
|
7020
|
+
}, {})
|
|
7021
|
+
};
|
|
7022
|
+
const props = $.rest_props($$props, [
|
|
7023
|
+
"$$slots",
|
|
7024
|
+
"$$events",
|
|
7025
|
+
"$$legacy"
|
|
7026
|
+
]);
|
|
7027
|
+
const blendMode = $$props.blendMode ?? componentDefaults.blendMode;
|
|
7028
|
+
const opacity = $$props.opacity;
|
|
7029
|
+
const visible = $$props.visible ?? componentDefaults.visible;
|
|
7030
|
+
const id = $$props.id;
|
|
7031
|
+
const maskSource = $$props.maskSource;
|
|
7032
|
+
const maskType = $$props.maskType;
|
|
7033
|
+
const renderOrder = $$props.renderOrder ?? componentDefaults.renderOrder;
|
|
7034
|
+
const { children } = props;
|
|
7035
|
+
const effectiveTransform = $.derived(() => ({
|
|
7036
|
+
...DEFAULT_TRANSFORM,
|
|
7037
|
+
...$$props.transform
|
|
7038
|
+
}));
|
|
7039
|
+
const parentId = getContext("shaderParentId");
|
|
7040
|
+
if (parentId === void 0) throw new Error("Shader components must be used inside an <Shader> component or another shader component");
|
|
7041
|
+
const instanceId = id || `${componentDefinition$63.name.toLowerCase()}_${Math.random().toString(36).substring(7)}`;
|
|
7042
|
+
setContext("shaderParentId", instanceId);
|
|
7043
|
+
const shaderReadyProps = $.derived(() => {
|
|
7044
|
+
let baseProps = { ...componentDefaults };
|
|
7045
|
+
for (const key in props) if (key !== "blendMode" && key !== "opacity" && key !== "visible" && key !== "id" && key !== "maskSource" && key !== "maskType" && key !== "renderOrder" && key !== "transform" && key !== "children") {
|
|
7046
|
+
const propValue = props[key];
|
|
7047
|
+
const defaultValue = componentDefaults[key];
|
|
7048
|
+
if (propValue !== void 0 && propValue !== defaultValue) baseProps[key] = propValue;
|
|
7049
|
+
}
|
|
7050
|
+
return baseProps;
|
|
7051
|
+
});
|
|
7052
|
+
const uniforms = createUniformsMap(componentDefinition$63, $.get(shaderReadyProps), instanceId);
|
|
7053
|
+
const parentRegister = getContext("shaderNodeRegister");
|
|
7054
|
+
if (parentRegister === void 0) throw new Error("Shader components must be used inside an <Shader> component or another shader component");
|
|
7055
|
+
const parentUniformUpdate = getContext("shaderUniformUpdate");
|
|
7056
|
+
if (parentUniformUpdate === void 0) throw new Error("Shader components require shaderUniformUpdate from parent");
|
|
7057
|
+
const parentMetadataUpdate = getContext("shaderMetadataUpdate");
|
|
7058
|
+
if (parentMetadataUpdate === void 0) throw new Error("Shader components require shaderMetadataUpdate from parent");
|
|
7059
|
+
let isRegistered = $.state(false);
|
|
7060
|
+
Object.entries(uniforms).forEach(([propName, { uniform, transform }]) => {
|
|
7061
|
+
$.user_effect(() => {
|
|
7062
|
+
if (!$.get(isRegistered)) return;
|
|
7063
|
+
if (uniform && uniform.value !== void 0) {
|
|
7064
|
+
const newValue = props[propName];
|
|
7065
|
+
if (newValue !== void 0) parentUniformUpdate(instanceId, propName, newValue);
|
|
7066
|
+
}
|
|
7067
|
+
});
|
|
7068
|
+
});
|
|
7069
|
+
$.user_effect(() => {
|
|
7070
|
+
if (!$.get(isRegistered)) return;
|
|
7071
|
+
parentMetadataUpdate(instanceId, {
|
|
7072
|
+
blendMode,
|
|
7073
|
+
opacity,
|
|
7074
|
+
visible: visible === false ? false : true,
|
|
7075
|
+
id,
|
|
7076
|
+
mask: maskSource ? {
|
|
7077
|
+
source: maskSource,
|
|
7078
|
+
type: maskType || "alpha"
|
|
7079
|
+
} : void 0,
|
|
7080
|
+
renderOrder,
|
|
7081
|
+
transform: $.get(effectiveTransform)
|
|
7082
|
+
});
|
|
7083
|
+
});
|
|
7084
|
+
onMount(() => {
|
|
7085
|
+
if (componentDefinition$63 && typeof componentDefinition$63.fragmentNode === "function") {
|
|
7086
|
+
parentRegister(instanceId, componentDefinition$63.fragmentNode, parentId, {
|
|
7087
|
+
blendMode,
|
|
7088
|
+
opacity,
|
|
7089
|
+
visible: visible !== false ? true : false,
|
|
7090
|
+
id,
|
|
7091
|
+
mask: maskSource ? {
|
|
7092
|
+
source: maskSource,
|
|
7093
|
+
type: maskType || "alpha"
|
|
7094
|
+
} : void 0,
|
|
7095
|
+
renderOrder,
|
|
7096
|
+
transform: $.get(effectiveTransform)
|
|
7097
|
+
}, uniforms);
|
|
7098
|
+
$.set(isRegistered, true);
|
|
7099
|
+
} else console.error("componentDefinition.fragmentNode is not a function:", {
|
|
7100
|
+
componentDefinition: componentDefinition$63,
|
|
7101
|
+
fragmentNode: componentDefinition$63?.fragmentNode,
|
|
7102
|
+
type: typeof componentDefinition$63?.fragmentNode
|
|
7103
|
+
});
|
|
7104
|
+
});
|
|
7105
|
+
onDestroy(() => {
|
|
7106
|
+
$.set(isRegistered, false);
|
|
7107
|
+
parentRegister(instanceId, null, null, null, null);
|
|
7108
|
+
});
|
|
7109
|
+
children?.($$anchor);
|
|
7110
|
+
$.pop();
|
|
7111
|
+
}
|
|
6890
7112
|
var root = $.from_html(`<div><canvas data-renderer="shaders" style="width: 100%; height: 100%; display: block;"></canvas> <!></div>`);
|
|
6891
7113
|
function Shader($$anchor, $$props) {
|
|
6892
7114
|
$.push($$props, true);
|
|
6893
|
-
const
|
|
7115
|
+
const disableTelemetry = $.prop($$props, "disableTelemetry", 3, false), rest = $.rest_props($$props, [
|
|
6894
7116
|
"$$slots",
|
|
6895
7117
|
"$$events",
|
|
6896
7118
|
"$$legacy",
|
|
6897
|
-
"
|
|
7119
|
+
"disableTelemetry",
|
|
6898
7120
|
"children"
|
|
6899
7121
|
]);
|
|
6900
7122
|
let containerRef;
|
|
@@ -6902,6 +7124,7 @@ function Shader($$anchor, $$props) {
|
|
|
6902
7124
|
const rootId = "shader-root-" + Math.random().toString(36).substring(7);
|
|
6903
7125
|
let rendererInstance = shaderRenderer();
|
|
6904
7126
|
let telemetryCollector = null;
|
|
7127
|
+
let telemetryStartTimeout = null;
|
|
6905
7128
|
setContext("shaderParentId", rootId);
|
|
6906
7129
|
setContext("shaderNodeRegister", (id, fragmentNodeFunc, parentId, metadata, uniforms = null) => {
|
|
6907
7130
|
if (fragmentNodeFunc === null) rendererInstance.removeNode(id);
|
|
@@ -6915,16 +7138,22 @@ function Shader($$anchor, $$props) {
|
|
|
6915
7138
|
});
|
|
6916
7139
|
let wasVisible = false;
|
|
6917
7140
|
let visibilityObserver = null;
|
|
7141
|
+
const startTelemetryWhenReady = () => {
|
|
7142
|
+
const checkRendering = () => {
|
|
7143
|
+
if (rendererInstance.getPerformanceStats().fps > 0) {
|
|
7144
|
+
telemetryCollector = new TelemetryCollector(rendererInstance);
|
|
7145
|
+
telemetryCollector.start();
|
|
7146
|
+
telemetryStartTimeout = null;
|
|
7147
|
+
} else telemetryStartTimeout = window.setTimeout(checkRendering, 500);
|
|
7148
|
+
};
|
|
7149
|
+
telemetryStartTimeout = window.setTimeout(checkRendering, 500);
|
|
7150
|
+
};
|
|
6918
7151
|
const initializeRenderer = async () => {
|
|
6919
7152
|
if (!canvasRef) return;
|
|
6920
7153
|
try {
|
|
6921
7154
|
if (!rendererInstance.isInitialized()) await rendererInstance.initialize({ canvas: canvasRef });
|
|
6922
7155
|
rendererInstance.registerNode(rootId, ({ childNode }) => childNode || vec4(0, 0, 0, 0), null, null, {});
|
|
6923
|
-
if (
|
|
6924
|
-
if (isExternalUser() && shouldCollectTelemetry()) {
|
|
6925
|
-
telemetryCollector = new TelemetryCollector(rendererInstance);
|
|
6926
|
-
telemetryCollector.start();
|
|
6927
|
-
}
|
|
7156
|
+
if (isExternalUser() && shouldCollectTelemetry(disableTelemetry()) && !telemetryCollector) startTelemetryWhenReady();
|
|
6928
7157
|
} catch (err) {
|
|
6929
7158
|
console.error("[Shader] Initialization failed:", err);
|
|
6930
7159
|
throw err;
|
|
@@ -6938,8 +7167,10 @@ function Shader($$anchor, $$props) {
|
|
|
6938
7167
|
const rect = containerRef?.getBoundingClientRect();
|
|
6939
7168
|
const isCurrentlyVisible = entry.isIntersecting && rect && rect.width > 0 && rect.height > 0;
|
|
6940
7169
|
if (isCurrentlyVisible && !wasVisible) {
|
|
6941
|
-
if (rendererInstance.isInitialized())
|
|
6942
|
-
|
|
7170
|
+
if (rendererInstance.isInitialized()) {
|
|
7171
|
+
rendererInstance.startAnimation();
|
|
7172
|
+
if (isExternalUser() && shouldCollectTelemetry(disableTelemetry()) && !telemetryCollector && !telemetryStartTimeout) startTelemetryWhenReady();
|
|
7173
|
+
} else initializeRenderer().catch(console.error);
|
|
6943
7174
|
wasVisible = true;
|
|
6944
7175
|
} else if (!isCurrentlyVisible && wasVisible) {
|
|
6945
7176
|
rendererInstance.stopAnimation();
|
|
@@ -6965,6 +7196,10 @@ function Shader($$anchor, $$props) {
|
|
|
6965
7196
|
telemetryCollector.stop();
|
|
6966
7197
|
telemetryCollector = null;
|
|
6967
7198
|
}
|
|
7199
|
+
if (telemetryStartTimeout !== null) {
|
|
7200
|
+
clearTimeout(telemetryStartTimeout);
|
|
7201
|
+
telemetryStartTimeout = null;
|
|
7202
|
+
}
|
|
6968
7203
|
if (visibilityObserver) {
|
|
6969
7204
|
visibilityObserver.disconnect();
|
|
6970
7205
|
visibilityObserver = null;
|
|
@@ -6989,4 +7224,4 @@ function Shader($$anchor, $$props) {
|
|
|
6989
7224
|
$.append($$anchor, div);
|
|
6990
7225
|
$.pop();
|
|
6991
7226
|
}
|
|
6992
|
-
export { AngularBlur, Ascii, Beam, Blob, Blur, BrightnessContrast, Bulge, CRTScreen, ChannelBlur, Checkerboard, ChromaFlow, ChromaticAberration, Circle, CursorTrail, DiffuseBlur, Dither, DotGrid, Duotone, FilmGrain, FloatingParticles, GlassTiles, Glow, Godrays, Grayscale, Grid, GridDistortion, Group, Halftone, HueShift, ImageTexture, Invert, LinearBlur, LinearGradient, Liquify, Perspective, Pixelate, PolarCoordinates, Posterize, ProgressiveBlur, RadialGradient, RectangularCoordinates, Ripples, Saturation, Shader, Sharpness, Shatter, SimplexNoise, SineWave, SolidColor, Spherize, Spiral, Strands, Stretch, Stripes, Swirl, TiltShift, Tint, Tritone, Twirl, Vibrance, WaveDistortion, WebcamTexture, ZoomBlur, generatePresetCode };
|
|
7227
|
+
export { AngularBlur, Ascii, Beam, Blob, Blur, BrightnessContrast, Bulge, CRTScreen, ChannelBlur, Checkerboard, ChromaFlow, ChromaticAberration, Circle, CursorTrail, DiffuseBlur, Dither, DotGrid, Duotone, FilmGrain, FloatingParticles, GlassTiles, Glow, Godrays, Grayscale, Grid, GridDistortion, Group, Halftone, HueShift, ImageTexture, Invert, Kaleidoscope, LinearBlur, LinearGradient, Liquify, Mirror, Perspective, Pixelate, PolarCoordinates, Posterize, ProgressiveBlur, RadialGradient, RectangularCoordinates, Ripples, Saturation, Shader, Sharpness, Shatter, SimplexNoise, SineWave, SolidColor, Spherize, Spiral, Strands, Stretch, Stripes, Swirl, TiltShift, Tint, Tritone, Twirl, Vibrance, WaveDistortion, WebcamTexture, ZoomBlur, generatePresetCode };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as generatePresetCode, t as availableComponents } from "../generatePresetCode-
|
|
1
|
+
import { n as generatePresetCode, t as availableComponents } from "../generatePresetCode-on2wdSC3.js";
|
|
2
2
|
export { availableComponents, generatePresetCode };
|