shaders 2.2.6 → 2.2.9
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/dist/core/Stretch-C8iYAgNS.js +104 -0
- package/dist/core/index.js +170 -168
- package/dist/core/shaderRegistry.d.ts.map +1 -1
- package/dist/core/shaders/Stretch/index.d.ts +45 -0
- package/dist/core/shaders/Stretch/index.d.ts.map +1 -0
- package/dist/core/shaders/Stretch/index.js +8 -0
- package/dist/core/shaders/Swirl/index.js +1 -1
- package/dist/core/shaders/TiltShift/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/ZoomBlur/index.js +1 -1
- package/dist/react/generatePresetCode-CbulNGo3.js +316 -0
- package/dist/react/generatePresetCode-ClK4i9O1.cjs +13 -0
- package/dist/react/index.cjs +398 -409
- package/dist/react/index.js +43985 -44301
- package/dist/react/utils/generatePresetCode.cjs +1 -13
- package/dist/react/utils/generatePresetCode.js +3 -596
- package/dist/registry.js +158 -0
- package/dist/svelte/components/Stretch.svelte.d.ts +4 -2
- package/dist/svelte/generatePresetCode-CbulNGo3.js +316 -0
- package/dist/{react/utils/generatePresetCode.d.ts → svelte/generatePresetCode.template.d.ts} +1 -2
- package/dist/svelte/index.d.ts +1 -0
- package/dist/svelte/index.js +43952 -44257
- package/dist/svelte/utils/generatePresetCode.js +3 -596
- package/dist/vue/generatePresetCode-Baa8DyZE.js +322 -0
- package/dist/vue/index.js +10152 -9953
- package/dist/vue/utils/generatePresetCode.js +1 -1
- package/package.json +6 -1
- package/dist/react/codegen.d.ts +0 -1
- package/dist/react/components/AngularBlur.d.ts +0 -31
- package/dist/react/components/AngularBlur.d.ts.map +0 -1
- package/dist/react/components/Ascii.d.ts +0 -31
- package/dist/react/components/Ascii.d.ts.map +0 -1
- package/dist/react/components/Blob.d.ts +0 -31
- package/dist/react/components/Blob.d.ts.map +0 -1
- package/dist/react/components/Blur.d.ts +0 -31
- package/dist/react/components/Blur.d.ts.map +0 -1
- package/dist/react/components/Bulge.d.ts +0 -31
- package/dist/react/components/Bulge.d.ts.map +0 -1
- package/dist/react/components/CRTScreen.d.ts +0 -31
- package/dist/react/components/CRTScreen.d.ts.map +0 -1
- package/dist/react/components/ChannelBlur.d.ts +0 -31
- package/dist/react/components/ChannelBlur.d.ts.map +0 -1
- package/dist/react/components/Checkerboard.d.ts +0 -31
- package/dist/react/components/Checkerboard.d.ts.map +0 -1
- package/dist/react/components/ChromaFlow.d.ts +0 -31
- package/dist/react/components/ChromaFlow.d.ts.map +0 -1
- package/dist/react/components/ChromaticAberration.d.ts +0 -31
- package/dist/react/components/ChromaticAberration.d.ts.map +0 -1
- package/dist/react/components/Circle.d.ts +0 -31
- package/dist/react/components/Circle.d.ts.map +0 -1
- package/dist/react/components/ColorMapping.d.ts +0 -29
- package/dist/react/components/ColorMapping.d.ts.map +0 -1
- package/dist/react/components/CursorTrail.d.ts +0 -31
- package/dist/react/components/CursorTrail.d.ts.map +0 -1
- package/dist/react/components/DiffuseBlur.d.ts +0 -31
- package/dist/react/components/DiffuseBlur.d.ts.map +0 -1
- package/dist/react/components/Dither.d.ts +0 -31
- package/dist/react/components/Dither.d.ts.map +0 -1
- package/dist/react/components/DotGrid.d.ts +0 -31
- package/dist/react/components/DotGrid.d.ts.map +0 -1
- package/dist/react/components/Duotone.d.ts +0 -31
- package/dist/react/components/Duotone.d.ts.map +0 -1
- package/dist/react/components/Exposure.d.ts +0 -29
- package/dist/react/components/Exposure.d.ts.map +0 -1
- package/dist/react/components/FilmGrain.d.ts +0 -31
- package/dist/react/components/FilmGrain.d.ts.map +0 -1
- package/dist/react/components/FloatingParticles.d.ts +0 -31
- package/dist/react/components/FloatingParticles.d.ts.map +0 -1
- package/dist/react/components/Glass.d.ts +0 -31
- package/dist/react/components/Glass.d.ts.map +0 -1
- package/dist/react/components/GlassTiles.d.ts +0 -31
- package/dist/react/components/GlassTiles.d.ts.map +0 -1
- package/dist/react/components/Glitch.d.ts +0 -29
- package/dist/react/components/Glitch.d.ts.map +0 -1
- package/dist/react/components/Glow.d.ts +0 -31
- package/dist/react/components/Glow.d.ts.map +0 -1
- package/dist/react/components/Godrays.d.ts +0 -31
- package/dist/react/components/Godrays.d.ts.map +0 -1
- package/dist/react/components/Grayscale.d.ts +0 -31
- package/dist/react/components/Grayscale.d.ts.map +0 -1
- package/dist/react/components/Grid.d.ts +0 -31
- package/dist/react/components/Grid.d.ts.map +0 -1
- package/dist/react/components/GridDistortion.d.ts +0 -31
- package/dist/react/components/GridDistortion.d.ts.map +0 -1
- package/dist/react/components/Group.d.ts +0 -31
- package/dist/react/components/Group.d.ts.map +0 -1
- package/dist/react/components/Halftone.d.ts +0 -31
- package/dist/react/components/Halftone.d.ts.map +0 -1
- package/dist/react/components/HueShift.d.ts +0 -31
- package/dist/react/components/HueShift.d.ts.map +0 -1
- package/dist/react/components/ImageTexture.d.ts +0 -31
- package/dist/react/components/ImageTexture.d.ts.map +0 -1
- package/dist/react/components/Invert.d.ts +0 -31
- package/dist/react/components/Invert.d.ts.map +0 -1
- package/dist/react/components/LinearBlur.d.ts +0 -31
- package/dist/react/components/LinearBlur.d.ts.map +0 -1
- package/dist/react/components/LinearGradient.d.ts +0 -31
- package/dist/react/components/LinearGradient.d.ts.map +0 -1
- package/dist/react/components/Liquify.d.ts +0 -31
- package/dist/react/components/Liquify.d.ts.map +0 -1
- package/dist/react/components/Mirror.d.ts +0 -29
- package/dist/react/components/Mirror.d.ts.map +0 -1
- package/dist/react/components/PerlinNoise.d.ts +0 -29
- package/dist/react/components/PerlinNoise.d.ts.map +0 -1
- package/dist/react/components/Pixelate.d.ts +0 -31
- package/dist/react/components/Pixelate.d.ts.map +0 -1
- package/dist/react/components/PolarCoordinates.d.ts +0 -31
- package/dist/react/components/PolarCoordinates.d.ts.map +0 -1
- package/dist/react/components/Posterize.d.ts +0 -31
- package/dist/react/components/Posterize.d.ts.map +0 -1
- package/dist/react/components/ProgressiveBlur.d.ts +0 -31
- package/dist/react/components/ProgressiveBlur.d.ts.map +0 -1
- package/dist/react/components/RadialBlur.d.ts +0 -29
- package/dist/react/components/RadialBlur.d.ts.map +0 -1
- package/dist/react/components/RadialGradient.d.ts +0 -31
- package/dist/react/components/RadialGradient.d.ts.map +0 -1
- package/dist/react/components/RectangularCoordinates.d.ts +0 -31
- package/dist/react/components/RectangularCoordinates.d.ts.map +0 -1
- package/dist/react/components/Ripples.d.ts +0 -31
- package/dist/react/components/Ripples.d.ts.map +0 -1
- package/dist/react/components/Saturation.d.ts +0 -31
- package/dist/react/components/Saturation.d.ts.map +0 -1
- package/dist/react/components/SimplexNoise.d.ts +0 -31
- package/dist/react/components/SimplexNoise.d.ts.map +0 -1
- package/dist/react/components/SineWave.d.ts +0 -31
- package/dist/react/components/SineWave.d.ts.map +0 -1
- package/dist/react/components/SolidColor.d.ts +0 -31
- package/dist/react/components/SolidColor.d.ts.map +0 -1
- package/dist/react/components/Spiral.d.ts +0 -31
- package/dist/react/components/Spiral.d.ts.map +0 -1
- package/dist/react/components/Strands.d.ts +0 -31
- package/dist/react/components/Strands.d.ts.map +0 -1
- package/dist/react/components/Stretch.d.ts +0 -29
- package/dist/react/components/Stretch.d.ts.map +0 -1
- package/dist/react/components/Swirl.d.ts +0 -31
- package/dist/react/components/Swirl.d.ts.map +0 -1
- package/dist/react/components/TiltShift.d.ts +0 -31
- package/dist/react/components/TiltShift.d.ts.map +0 -1
- package/dist/react/components/Tint.d.ts +0 -29
- package/dist/react/components/Tint.d.ts.map +0 -1
- package/dist/react/components/Tritone.d.ts +0 -31
- package/dist/react/components/Tritone.d.ts.map +0 -1
- package/dist/react/components/Twirl.d.ts +0 -31
- package/dist/react/components/Twirl.d.ts.map +0 -1
- package/dist/react/components/VCR.d.ts +0 -29
- package/dist/react/components/VCR.d.ts.map +0 -1
- package/dist/react/components/Vibrance.d.ts +0 -31
- package/dist/react/components/Vibrance.d.ts.map +0 -1
- package/dist/react/components/Vignette.d.ts +0 -29
- package/dist/react/components/Vignette.d.ts.map +0 -1
- package/dist/react/components/Voronoi.d.ts +0 -29
- package/dist/react/components/Voronoi.d.ts.map +0 -1
- package/dist/react/components/WaveDistortion.d.ts +0 -31
- package/dist/react/components/WaveDistortion.d.ts.map +0 -1
- package/dist/react/components/ZoomBlur.d.ts +0 -31
- package/dist/react/components/ZoomBlur.d.ts.map +0 -1
- package/dist/react/index.d.ts +0 -55
- package/dist/react/index.d.ts.map +0 -1
- package/dist/react/utils/generatePresetCode.d.ts.map +0 -1
- package/dist/svelte/components/ColorMapping.svelte.d.ts +0 -17
- package/dist/svelte/components/Exposure.svelte.d.ts +0 -17
- package/dist/svelte/components/Glass.svelte.d.ts +0 -19
- package/dist/svelte/components/Glitch.svelte.d.ts +0 -17
- package/dist/svelte/components/Mirror.svelte.d.ts +0 -17
- package/dist/svelte/components/PerlinNoise.svelte.d.ts +0 -17
- package/dist/svelte/components/RadialBlur.svelte.d.ts +0 -17
- package/dist/svelte/components/Tint.svelte.d.ts +0 -17
- package/dist/svelte/components/VCR.svelte.d.ts +0 -17
- package/dist/svelte/components/Vignette.svelte.d.ts +0 -17
- package/dist/svelte/components/Voronoi.svelte.d.ts +0 -17
- package/dist/vue/codegen.d.ts +0 -1
- package/dist/vue/components/AngularBlur.vue.d.ts +0 -57
- package/dist/vue/components/AngularBlur.vue.d.ts.map +0 -1
- package/dist/vue/components/Ascii.vue.d.ts +0 -57
- package/dist/vue/components/Ascii.vue.d.ts.map +0 -1
- package/dist/vue/components/Blob.vue.d.ts +0 -57
- package/dist/vue/components/Blob.vue.d.ts.map +0 -1
- package/dist/vue/components/Blur.vue.d.ts +0 -57
- package/dist/vue/components/Blur.vue.d.ts.map +0 -1
- package/dist/vue/components/Bulge.vue.d.ts +0 -57
- package/dist/vue/components/Bulge.vue.d.ts.map +0 -1
- package/dist/vue/components/CRTScreen.vue.d.ts +0 -57
- package/dist/vue/components/CRTScreen.vue.d.ts.map +0 -1
- package/dist/vue/components/ChannelBlur.vue.d.ts +0 -57
- package/dist/vue/components/ChannelBlur.vue.d.ts.map +0 -1
- package/dist/vue/components/Checkerboard.vue.d.ts +0 -57
- package/dist/vue/components/Checkerboard.vue.d.ts.map +0 -1
- package/dist/vue/components/ChromaFlow.vue.d.ts +0 -57
- package/dist/vue/components/ChromaFlow.vue.d.ts.map +0 -1
- package/dist/vue/components/ChromaticAberration.vue.d.ts +0 -57
- package/dist/vue/components/ChromaticAberration.vue.d.ts.map +0 -1
- package/dist/vue/components/Circle.vue.d.ts +0 -57
- package/dist/vue/components/Circle.vue.d.ts.map +0 -1
- package/dist/vue/components/CursorTrail.vue.d.ts +0 -57
- package/dist/vue/components/CursorTrail.vue.d.ts.map +0 -1
- package/dist/vue/components/DiffuseBlur.vue.d.ts +0 -57
- package/dist/vue/components/DiffuseBlur.vue.d.ts.map +0 -1
- package/dist/vue/components/Dither.vue.d.ts +0 -57
- package/dist/vue/components/Dither.vue.d.ts.map +0 -1
- package/dist/vue/components/DotGrid.vue.d.ts +0 -57
- package/dist/vue/components/DotGrid.vue.d.ts.map +0 -1
- package/dist/vue/components/Duotone.vue.d.ts +0 -57
- package/dist/vue/components/Duotone.vue.d.ts.map +0 -1
- package/dist/vue/components/FilmGrain.vue.d.ts +0 -57
- package/dist/vue/components/FilmGrain.vue.d.ts.map +0 -1
- package/dist/vue/components/FloatingParticles.vue.d.ts +0 -57
- package/dist/vue/components/FloatingParticles.vue.d.ts.map +0 -1
- package/dist/vue/components/GlassTiles.vue.d.ts +0 -57
- package/dist/vue/components/GlassTiles.vue.d.ts.map +0 -1
- package/dist/vue/components/Glow.vue.d.ts +0 -57
- package/dist/vue/components/Glow.vue.d.ts.map +0 -1
- package/dist/vue/components/Godrays.vue.d.ts +0 -57
- package/dist/vue/components/Godrays.vue.d.ts.map +0 -1
- package/dist/vue/components/Grayscale.vue.d.ts +0 -57
- package/dist/vue/components/Grayscale.vue.d.ts.map +0 -1
- package/dist/vue/components/Grid.vue.d.ts +0 -57
- package/dist/vue/components/Grid.vue.d.ts.map +0 -1
- package/dist/vue/components/GridDistortion.vue.d.ts +0 -57
- package/dist/vue/components/GridDistortion.vue.d.ts.map +0 -1
- package/dist/vue/components/Group.vue.d.ts +0 -57
- package/dist/vue/components/Group.vue.d.ts.map +0 -1
- package/dist/vue/components/HalfTone.vue.d.ts +0 -57
- package/dist/vue/components/HalfTone.vue.d.ts.map +0 -1
- package/dist/vue/components/HueShift.vue.d.ts +0 -57
- package/dist/vue/components/HueShift.vue.d.ts.map +0 -1
- package/dist/vue/components/ImageTexture.vue.d.ts +0 -57
- package/dist/vue/components/ImageTexture.vue.d.ts.map +0 -1
- package/dist/vue/components/Invert.vue.d.ts +0 -57
- package/dist/vue/components/Invert.vue.d.ts.map +0 -1
- package/dist/vue/components/LinearBlur.vue.d.ts +0 -57
- package/dist/vue/components/LinearBlur.vue.d.ts.map +0 -1
- package/dist/vue/components/LinearGradient.vue.d.ts +0 -57
- package/dist/vue/components/LinearGradient.vue.d.ts.map +0 -1
- package/dist/vue/components/Liquify.vue.d.ts +0 -57
- package/dist/vue/components/Liquify.vue.d.ts.map +0 -1
- package/dist/vue/components/Pixelate.vue.d.ts +0 -57
- package/dist/vue/components/Pixelate.vue.d.ts.map +0 -1
- package/dist/vue/components/PolarCoordinates.vue.d.ts +0 -57
- package/dist/vue/components/PolarCoordinates.vue.d.ts.map +0 -1
- package/dist/vue/components/Posterize.vue.d.ts +0 -57
- package/dist/vue/components/Posterize.vue.d.ts.map +0 -1
- package/dist/vue/components/ProgressiveBlur.vue.d.ts +0 -57
- package/dist/vue/components/ProgressiveBlur.vue.d.ts.map +0 -1
- package/dist/vue/components/RadialGradient.vue.d.ts +0 -57
- package/dist/vue/components/RadialGradient.vue.d.ts.map +0 -1
- package/dist/vue/components/RectangularCoordinates.vue.d.ts +0 -57
- package/dist/vue/components/RectangularCoordinates.vue.d.ts.map +0 -1
- package/dist/vue/components/Ripples.vue.d.ts +0 -57
- package/dist/vue/components/Ripples.vue.d.ts.map +0 -1
- package/dist/vue/components/Saturation.vue.d.ts +0 -57
- package/dist/vue/components/Saturation.vue.d.ts.map +0 -1
- package/dist/vue/components/SimplexNoise.vue.d.ts +0 -57
- package/dist/vue/components/SimplexNoise.vue.d.ts.map +0 -1
- package/dist/vue/components/SineWave.vue.d.ts +0 -57
- package/dist/vue/components/SineWave.vue.d.ts.map +0 -1
- package/dist/vue/components/SolidColor.vue.d.ts +0 -57
- package/dist/vue/components/SolidColor.vue.d.ts.map +0 -1
- package/dist/vue/components/Spiral.vue.d.ts +0 -57
- package/dist/vue/components/Spiral.vue.d.ts.map +0 -1
- package/dist/vue/components/Strands.vue.d.ts +0 -57
- package/dist/vue/components/Strands.vue.d.ts.map +0 -1
- package/dist/vue/components/Swirl.vue.d.ts +0 -57
- package/dist/vue/components/Swirl.vue.d.ts.map +0 -1
- package/dist/vue/components/TiltShift.vue.d.ts +0 -57
- package/dist/vue/components/TiltShift.vue.d.ts.map +0 -1
- package/dist/vue/components/Tritone.vue.d.ts +0 -57
- package/dist/vue/components/Tritone.vue.d.ts.map +0 -1
- package/dist/vue/components/Twirl.vue.d.ts +0 -57
- package/dist/vue/components/Twirl.vue.d.ts.map +0 -1
- package/dist/vue/components/Vibrance.vue.d.ts +0 -57
- package/dist/vue/components/Vibrance.vue.d.ts.map +0 -1
- package/dist/vue/components/WaveDistortion.vue.d.ts +0 -57
- package/dist/vue/components/WaveDistortion.vue.d.ts.map +0 -1
- package/dist/vue/components/ZoomBlur.vue.d.ts +0 -57
- package/dist/vue/components/ZoomBlur.vue.d.ts.map +0 -1
- package/dist/vue/generatePresetCode-D4V6rBae.js +0 -600
- package/dist/vue/index.d.ts +0 -55
- package/dist/vue/index.d.ts.map +0 -1
- package/dist/vue/utils/generatePresetCode.d.ts +0 -13
- package/dist/vue/utils/generatePresetCode.d.ts.map +0 -1
- /package/dist/core/{Swirl-BoveqtNV.js → Swirl-BpMwkNcm.js} +0 -0
- /package/dist/core/{TiltShift-D53azmRe.js → TiltShift-D31nakFq.js} +0 -0
- /package/dist/core/{Tritone-Cg1rX-hL.js → Tritone-Dx48G3b1.js} +0 -0
- /package/dist/core/{Twirl-raO5pe5X.js → Twirl-ng6pwyl2.js} +0 -0
- /package/dist/core/{Vibrance-DtekSkcz.js → Vibrance-D0ArL0qp.js} +0 -0
- /package/dist/core/{WaveDistortion-C65qO_cZ.js → WaveDistortion-DGKrpUdb.js} +0 -0
- /package/dist/core/{ZoomBlur-B97ZjhXe.js → ZoomBlur-uQyy5yko.js} +0 -0
- /package/dist/svelte/components/{HalfTone.svelte.d.ts → Halftone.svelte.d.ts} +0 -0
|
@@ -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":"AAwDA,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;AAyFD,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,45 @@
|
|
|
1
|
+
import { ComponentDefinition } from '../../types';
|
|
2
|
+
|
|
3
|
+
export interface ComponentProps {
|
|
4
|
+
/**
|
|
5
|
+
* The center point of the stretch effect
|
|
6
|
+
*
|
|
7
|
+
* Accepts `{ x, y }` objects with values from 0 to 1, or CSS positions like `top center`.
|
|
8
|
+
* @default {"x":0.5,"y":0.5}
|
|
9
|
+
*/
|
|
10
|
+
center: {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
} | string;
|
|
14
|
+
/**
|
|
15
|
+
* The intensity of the stretch effect
|
|
16
|
+
*
|
|
17
|
+
* Accepts a number between 0 and 1.
|
|
18
|
+
* @default 1
|
|
19
|
+
*/
|
|
20
|
+
strength: number;
|
|
21
|
+
/**
|
|
22
|
+
* The direction of the stretch in degrees
|
|
23
|
+
*
|
|
24
|
+
* Accepts a number between 0 and 360.
|
|
25
|
+
* @default 0
|
|
26
|
+
*/
|
|
27
|
+
angle: number;
|
|
28
|
+
/**
|
|
29
|
+
* Controls the sharpness of the transition (0 = sharp edge, 1 = gradual transition)
|
|
30
|
+
*
|
|
31
|
+
* Accepts a number between 0 and 1.
|
|
32
|
+
* @default 0
|
|
33
|
+
*/
|
|
34
|
+
falloff: number;
|
|
35
|
+
/**
|
|
36
|
+
* How to handle edges when distortion pushes content out of bounds
|
|
37
|
+
*
|
|
38
|
+
* Accepts one of: `"stretch"`, `"transparent"`, `"mirror"`, `"wrap"`.
|
|
39
|
+
* @default "stretch"
|
|
40
|
+
*/
|
|
41
|
+
edges: string;
|
|
42
|
+
}
|
|
43
|
+
export declare const componentDefinition: ComponentDefinition<ComponentProps>;
|
|
44
|
+
export default componentDefinition;
|
|
45
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/Stretch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAwC,MAAM,iBAAiB,CAAA;AAO1F,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAC,GAAG,MAAM,CAAA;IACvC,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,CAkLnE,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -2,7 +2,7 @@ import "../../three.tsl-BqgDcRt9.js";
|
|
|
2
2
|
import "../../time-5uQ65blS.js";
|
|
3
3
|
import "../../transformations-DBjTkQ5b.js";
|
|
4
4
|
import "../../colorMixing-DPZ-Td4U.js";
|
|
5
|
-
import { n as p, t as a } from "../../Swirl-
|
|
5
|
+
import { n as p, t as a } from "../../Swirl-BpMwkNcm.js";
|
|
6
6
|
export {
|
|
7
7
|
p as componentDefinition,
|
|
8
8
|
a as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../three.tsl-BqgDcRt9.js";
|
|
2
2
|
import "../../transformations-DBjTkQ5b.js";
|
|
3
3
|
import "../../colorMixing-DPZ-Td4U.js";
|
|
4
|
-
import { n as e, t as m } from "../../Tritone-
|
|
4
|
+
import { n as e, t as m } from "../../Tritone-Dx48G3b1.js";
|
|
5
5
|
export {
|
|
6
6
|
e as componentDefinition,
|
|
7
7
|
m as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../three.tsl-BqgDcRt9.js";
|
|
2
2
|
import "../../edges-B-tVdqcI.js";
|
|
3
3
|
import "../../transformations-DBjTkQ5b.js";
|
|
4
|
-
import { n as m, t as p } from "../../Twirl-
|
|
4
|
+
import { n as m, t as p } from "../../Twirl-ng6pwyl2.js";
|
|
5
5
|
export {
|
|
6
6
|
m as componentDefinition,
|
|
7
7
|
p as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../three.tsl-BqgDcRt9.js";
|
|
2
2
|
import "../../TSLBase-BFMvTOak.js";
|
|
3
3
|
import "../../ColorAdjustment-CKwpE_4M.js";
|
|
4
|
-
import { n as a, t as e } from "../../Vibrance-
|
|
4
|
+
import { n as a, t as e } from "../../Vibrance-D0ArL0qp.js";
|
|
5
5
|
export {
|
|
6
6
|
a as componentDefinition,
|
|
7
7
|
e as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../three.tsl-BqgDcRt9.js";
|
|
2
2
|
import "../../edges-B-tVdqcI.js";
|
|
3
3
|
import "../../transformations-DBjTkQ5b.js";
|
|
4
|
-
import { n as a, t as e } from "../../WaveDistortion-
|
|
4
|
+
import { n as a, t as e } from "../../WaveDistortion-DGKrpUdb.js";
|
|
5
5
|
export {
|
|
6
6
|
a as componentDefinition,
|
|
7
7
|
e as default
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
var p = {
|
|
2
|
+
AngularBlur: {
|
|
3
|
+
opacity: 1,
|
|
4
|
+
blendMode: "normal"
|
|
5
|
+
},
|
|
6
|
+
Ascii: {
|
|
7
|
+
opacity: 1,
|
|
8
|
+
blendMode: "normal"
|
|
9
|
+
},
|
|
10
|
+
Blob: {
|
|
11
|
+
opacity: 1,
|
|
12
|
+
blendMode: "normal"
|
|
13
|
+
},
|
|
14
|
+
Blur: {
|
|
15
|
+
opacity: 1,
|
|
16
|
+
blendMode: "normal"
|
|
17
|
+
},
|
|
18
|
+
Bulge: {
|
|
19
|
+
opacity: 1,
|
|
20
|
+
blendMode: "normal"
|
|
21
|
+
},
|
|
22
|
+
CRTScreen: {
|
|
23
|
+
opacity: 1,
|
|
24
|
+
blendMode: "normal"
|
|
25
|
+
},
|
|
26
|
+
ChannelBlur: {
|
|
27
|
+
opacity: 1,
|
|
28
|
+
blendMode: "normal"
|
|
29
|
+
},
|
|
30
|
+
Checkerboard: {
|
|
31
|
+
opacity: 1,
|
|
32
|
+
blendMode: "normal"
|
|
33
|
+
},
|
|
34
|
+
ChromaFlow: {
|
|
35
|
+
opacity: 1,
|
|
36
|
+
blendMode: "normal"
|
|
37
|
+
},
|
|
38
|
+
ChromaticAberration: {
|
|
39
|
+
opacity: 1,
|
|
40
|
+
blendMode: "normal"
|
|
41
|
+
},
|
|
42
|
+
Circle: {
|
|
43
|
+
opacity: 1,
|
|
44
|
+
blendMode: "normal"
|
|
45
|
+
},
|
|
46
|
+
CursorTrail: {
|
|
47
|
+
opacity: 1,
|
|
48
|
+
blendMode: "normal"
|
|
49
|
+
},
|
|
50
|
+
DiffuseBlur: {
|
|
51
|
+
opacity: 1,
|
|
52
|
+
blendMode: "normal"
|
|
53
|
+
},
|
|
54
|
+
Dither: {
|
|
55
|
+
opacity: 1,
|
|
56
|
+
blendMode: "normal"
|
|
57
|
+
},
|
|
58
|
+
DotGrid: {
|
|
59
|
+
opacity: 1,
|
|
60
|
+
blendMode: "normal"
|
|
61
|
+
},
|
|
62
|
+
Duotone: {
|
|
63
|
+
opacity: 1,
|
|
64
|
+
blendMode: "normal"
|
|
65
|
+
},
|
|
66
|
+
FilmGrain: {
|
|
67
|
+
opacity: 1,
|
|
68
|
+
blendMode: "normal"
|
|
69
|
+
},
|
|
70
|
+
FloatingParticles: {
|
|
71
|
+
opacity: 1,
|
|
72
|
+
blendMode: "normal"
|
|
73
|
+
},
|
|
74
|
+
GlassTiles: {
|
|
75
|
+
opacity: 1,
|
|
76
|
+
blendMode: "normal"
|
|
77
|
+
},
|
|
78
|
+
Glow: {
|
|
79
|
+
opacity: 1,
|
|
80
|
+
blendMode: "normal"
|
|
81
|
+
},
|
|
82
|
+
Godrays: {
|
|
83
|
+
opacity: 1,
|
|
84
|
+
blendMode: "normal"
|
|
85
|
+
},
|
|
86
|
+
Grayscale: {
|
|
87
|
+
opacity: 1,
|
|
88
|
+
blendMode: "normal"
|
|
89
|
+
},
|
|
90
|
+
Grid: {
|
|
91
|
+
opacity: 1,
|
|
92
|
+
blendMode: "normal"
|
|
93
|
+
},
|
|
94
|
+
GridDistortion: {
|
|
95
|
+
opacity: 1,
|
|
96
|
+
blendMode: "normal"
|
|
97
|
+
},
|
|
98
|
+
Group: {
|
|
99
|
+
opacity: 1,
|
|
100
|
+
blendMode: "normal"
|
|
101
|
+
},
|
|
102
|
+
Halftone: {
|
|
103
|
+
opacity: 1,
|
|
104
|
+
blendMode: "normal"
|
|
105
|
+
},
|
|
106
|
+
HueShift: {
|
|
107
|
+
opacity: 1,
|
|
108
|
+
blendMode: "normal"
|
|
109
|
+
},
|
|
110
|
+
ImageTexture: {
|
|
111
|
+
opacity: 1,
|
|
112
|
+
blendMode: "normal"
|
|
113
|
+
},
|
|
114
|
+
Invert: {
|
|
115
|
+
opacity: 1,
|
|
116
|
+
blendMode: "normal"
|
|
117
|
+
},
|
|
118
|
+
LinearBlur: {
|
|
119
|
+
opacity: 1,
|
|
120
|
+
blendMode: "normal"
|
|
121
|
+
},
|
|
122
|
+
LinearGradient: {
|
|
123
|
+
opacity: 1,
|
|
124
|
+
blendMode: "normal"
|
|
125
|
+
},
|
|
126
|
+
Liquify: {
|
|
127
|
+
opacity: 1,
|
|
128
|
+
blendMode: "normal"
|
|
129
|
+
},
|
|
130
|
+
Pixelate: {
|
|
131
|
+
opacity: 1,
|
|
132
|
+
blendMode: "normal"
|
|
133
|
+
},
|
|
134
|
+
PolarCoordinates: {
|
|
135
|
+
opacity: 1,
|
|
136
|
+
blendMode: "normal"
|
|
137
|
+
},
|
|
138
|
+
Posterize: {
|
|
139
|
+
opacity: 1,
|
|
140
|
+
blendMode: "normal"
|
|
141
|
+
},
|
|
142
|
+
ProgressiveBlur: {
|
|
143
|
+
opacity: 1,
|
|
144
|
+
blendMode: "normal"
|
|
145
|
+
},
|
|
146
|
+
RadialGradient: {
|
|
147
|
+
opacity: 1,
|
|
148
|
+
blendMode: "normal"
|
|
149
|
+
},
|
|
150
|
+
RectangularCoordinates: {
|
|
151
|
+
opacity: 1,
|
|
152
|
+
blendMode: "normal"
|
|
153
|
+
},
|
|
154
|
+
Ripples: {
|
|
155
|
+
opacity: 1,
|
|
156
|
+
blendMode: "normal"
|
|
157
|
+
},
|
|
158
|
+
Saturation: {
|
|
159
|
+
opacity: 1,
|
|
160
|
+
blendMode: "normal"
|
|
161
|
+
},
|
|
162
|
+
SimplexNoise: {
|
|
163
|
+
opacity: 1,
|
|
164
|
+
blendMode: "normal"
|
|
165
|
+
},
|
|
166
|
+
SineWave: {
|
|
167
|
+
opacity: 1,
|
|
168
|
+
blendMode: "normal"
|
|
169
|
+
},
|
|
170
|
+
SolidColor: {
|
|
171
|
+
opacity: 1,
|
|
172
|
+
blendMode: "normal"
|
|
173
|
+
},
|
|
174
|
+
Spiral: {
|
|
175
|
+
opacity: 1,
|
|
176
|
+
blendMode: "normal"
|
|
177
|
+
},
|
|
178
|
+
Strands: {
|
|
179
|
+
opacity: 1,
|
|
180
|
+
blendMode: "normal"
|
|
181
|
+
},
|
|
182
|
+
Stretch: {
|
|
183
|
+
opacity: 1,
|
|
184
|
+
blendMode: "normal"
|
|
185
|
+
},
|
|
186
|
+
Swirl: {
|
|
187
|
+
opacity: 1,
|
|
188
|
+
blendMode: "normal"
|
|
189
|
+
},
|
|
190
|
+
TiltShift: {
|
|
191
|
+
opacity: 1,
|
|
192
|
+
blendMode: "normal"
|
|
193
|
+
},
|
|
194
|
+
Tritone: {
|
|
195
|
+
opacity: 1,
|
|
196
|
+
blendMode: "normal"
|
|
197
|
+
},
|
|
198
|
+
Twirl: {
|
|
199
|
+
opacity: 1,
|
|
200
|
+
blendMode: "normal"
|
|
201
|
+
},
|
|
202
|
+
Vibrance: {
|
|
203
|
+
opacity: 1,
|
|
204
|
+
blendMode: "normal"
|
|
205
|
+
},
|
|
206
|
+
WaveDistortion: {
|
|
207
|
+
opacity: 1,
|
|
208
|
+
blendMode: "normal"
|
|
209
|
+
},
|
|
210
|
+
ZoomBlur: {
|
|
211
|
+
opacity: 1,
|
|
212
|
+
blendMode: "normal"
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
function c(l, t, e = " ") {
|
|
216
|
+
return Object.entries(l).filter(([o, r]) => {
|
|
217
|
+
const n = p[t] || {};
|
|
218
|
+
if (n.hasOwnProperty(o)) {
|
|
219
|
+
const a = n[o];
|
|
220
|
+
return typeof r == "object" && typeof a == "object" ? JSON.stringify(r) !== JSON.stringify(a) : r !== a;
|
|
221
|
+
}
|
|
222
|
+
return !(o === "opacity" && r === 1 || o === "blendMode" && r === "normal");
|
|
223
|
+
}).map(([o, r]) => typeof r == "string" ? `${o}="${r}"` : typeof r == "object" ? `${o}={${JSON.stringify(r)}}` : `${o}={${r}}`).join(`
|
|
224
|
+
` + e + " ");
|
|
225
|
+
}
|
|
226
|
+
function s(l, t) {
|
|
227
|
+
const e = [];
|
|
228
|
+
function o(r) {
|
|
229
|
+
for (const n of r)
|
|
230
|
+
e.push(n), n.children && o(n.children);
|
|
231
|
+
}
|
|
232
|
+
return o(t), e.some((r) => r.props?.maskSource === l);
|
|
233
|
+
}
|
|
234
|
+
function m(l) {
|
|
235
|
+
const t = (e, o = " ") => {
|
|
236
|
+
const r = e.props ? c(e.props, e.type, o) : "";
|
|
237
|
+
let n = "";
|
|
238
|
+
e.id && s(e.id, l.components) && (n = `id="${e.id}"`);
|
|
239
|
+
const a = [n, r].filter(Boolean).join(`
|
|
240
|
+
` + o + " ");
|
|
241
|
+
if (e.children && e.children.length > 0) {
|
|
242
|
+
const i = e.children.map((d) => t(d, o + " ")).join(`
|
|
243
|
+
`);
|
|
244
|
+
return a ? `${o}<${e.type}
|
|
245
|
+
${o} ${a}>
|
|
246
|
+
${i}
|
|
247
|
+
${o}</${e.type}>` : `${o}<${e.type}>
|
|
248
|
+
${i}
|
|
249
|
+
${o}</${e.type}>`;
|
|
250
|
+
} else return a ? `${o}<${e.type}
|
|
251
|
+
${o} ${a} />` : `${o}<${e.type} />`;
|
|
252
|
+
};
|
|
253
|
+
return `<Shader>
|
|
254
|
+
${l.components.map((e) => t(e)).join(`
|
|
255
|
+
`)}
|
|
256
|
+
</Shader>`;
|
|
257
|
+
}
|
|
258
|
+
const y = [
|
|
259
|
+
"AngularBlur",
|
|
260
|
+
"Ascii",
|
|
261
|
+
"Blob",
|
|
262
|
+
"Blur",
|
|
263
|
+
"Bulge",
|
|
264
|
+
"CRTScreen",
|
|
265
|
+
"ChannelBlur",
|
|
266
|
+
"Checkerboard",
|
|
267
|
+
"ChromaFlow",
|
|
268
|
+
"ChromaticAberration",
|
|
269
|
+
"Circle",
|
|
270
|
+
"CursorTrail",
|
|
271
|
+
"DiffuseBlur",
|
|
272
|
+
"Dither",
|
|
273
|
+
"DotGrid",
|
|
274
|
+
"Duotone",
|
|
275
|
+
"FilmGrain",
|
|
276
|
+
"FloatingParticles",
|
|
277
|
+
"GlassTiles",
|
|
278
|
+
"Glow",
|
|
279
|
+
"Godrays",
|
|
280
|
+
"Grayscale",
|
|
281
|
+
"Grid",
|
|
282
|
+
"GridDistortion",
|
|
283
|
+
"Group",
|
|
284
|
+
"Halftone",
|
|
285
|
+
"HueShift",
|
|
286
|
+
"ImageTexture",
|
|
287
|
+
"Invert",
|
|
288
|
+
"LinearBlur",
|
|
289
|
+
"LinearGradient",
|
|
290
|
+
"Liquify",
|
|
291
|
+
"Pixelate",
|
|
292
|
+
"PolarCoordinates",
|
|
293
|
+
"Posterize",
|
|
294
|
+
"ProgressiveBlur",
|
|
295
|
+
"RadialGradient",
|
|
296
|
+
"RectangularCoordinates",
|
|
297
|
+
"Ripples",
|
|
298
|
+
"Saturation",
|
|
299
|
+
"SimplexNoise",
|
|
300
|
+
"SineWave",
|
|
301
|
+
"SolidColor",
|
|
302
|
+
"Spiral",
|
|
303
|
+
"Strands",
|
|
304
|
+
"Stretch",
|
|
305
|
+
"Swirl",
|
|
306
|
+
"TiltShift",
|
|
307
|
+
"Tritone",
|
|
308
|
+
"Twirl",
|
|
309
|
+
"Vibrance",
|
|
310
|
+
"WaveDistortion",
|
|
311
|
+
"ZoomBlur"
|
|
312
|
+
];
|
|
313
|
+
export {
|
|
314
|
+
m as n,
|
|
315
|
+
y as t
|
|
316
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
var p={AngularBlur:{opacity:1,blendMode:"normal"},Ascii:{opacity:1,blendMode:"normal"},Blob:{opacity:1,blendMode:"normal"},Blur:{opacity:1,blendMode:"normal"},Bulge:{opacity:1,blendMode:"normal"},CRTScreen:{opacity:1,blendMode:"normal"},ChannelBlur:{opacity:1,blendMode:"normal"},Checkerboard:{opacity:1,blendMode:"normal"},ChromaFlow:{opacity:1,blendMode:"normal"},ChromaticAberration:{opacity:1,blendMode:"normal"},Circle:{opacity:1,blendMode:"normal"},CursorTrail:{opacity:1,blendMode:"normal"},DiffuseBlur:{opacity:1,blendMode:"normal"},Dither:{opacity:1,blendMode:"normal"},DotGrid:{opacity:1,blendMode:"normal"},Duotone:{opacity:1,blendMode:"normal"},FilmGrain:{opacity:1,blendMode:"normal"},FloatingParticles:{opacity:1,blendMode:"normal"},GlassTiles:{opacity:1,blendMode:"normal"},Glow:{opacity:1,blendMode:"normal"},Godrays:{opacity:1,blendMode:"normal"},Grayscale:{opacity:1,blendMode:"normal"},Grid:{opacity:1,blendMode:"normal"},GridDistortion:{opacity:1,blendMode:"normal"},Group:{opacity:1,blendMode:"normal"},Halftone:{opacity:1,blendMode:"normal"},HueShift:{opacity:1,blendMode:"normal"},ImageTexture:{opacity:1,blendMode:"normal"},Invert:{opacity:1,blendMode:"normal"},LinearBlur:{opacity:1,blendMode:"normal"},LinearGradient:{opacity:1,blendMode:"normal"},Liquify:{opacity:1,blendMode:"normal"},Pixelate:{opacity:1,blendMode:"normal"},PolarCoordinates:{opacity:1,blendMode:"normal"},Posterize:{opacity:1,blendMode:"normal"},ProgressiveBlur:{opacity:1,blendMode:"normal"},RadialGradient:{opacity:1,blendMode:"normal"},RectangularCoordinates:{opacity:1,blendMode:"normal"},Ripples:{opacity:1,blendMode:"normal"},Saturation:{opacity:1,blendMode:"normal"},SimplexNoise:{opacity:1,blendMode:"normal"},SineWave:{opacity:1,blendMode:"normal"},SolidColor:{opacity:1,blendMode:"normal"},Spiral:{opacity:1,blendMode:"normal"},Strands:{opacity:1,blendMode:"normal"},Stretch:{opacity:1,blendMode:"normal"},Swirl:{opacity:1,blendMode:"normal"},TiltShift:{opacity:1,blendMode:"normal"},Tritone:{opacity:1,blendMode:"normal"},Twirl:{opacity:1,blendMode:"normal"},Vibrance:{opacity:1,blendMode:"normal"},WaveDistortion:{opacity:1,blendMode:"normal"},ZoomBlur:{opacity:1,blendMode:"normal"}};function c(t,l,o=" "){return Object.entries(t).filter(([e,r])=>{const n=p[l]||{};if(n.hasOwnProperty(e)){const a=n[e];return typeof r=="object"&&typeof a=="object"?JSON.stringify(r)!==JSON.stringify(a):r!==a}return!(e==="opacity"&&r===1||e==="blendMode"&&r==="normal")}).map(([e,r])=>typeof r=="string"?`${e}="${r}"`:typeof r=="object"?`${e}={${JSON.stringify(r)}}`:`${e}={${r}}`).join(`
|
|
2
|
+
`+o+" ")}function m(t,l){const o=[];function e(r){for(const n of r)o.push(n),n.children&&e(n.children)}return e(l),o.some(r=>r.props?.maskSource===t)}function s(t){const l=(o,e=" ")=>{const r=o.props?c(o.props,o.type,e):"";let n="";o.id&&m(o.id,t.components)&&(n=`id="${o.id}"`);const a=[n,r].filter(Boolean).join(`
|
|
3
|
+
`+e+" ");if(o.children&&o.children.length>0){const i=o.children.map(d=>l(d,e+" ")).join(`
|
|
4
|
+
`);return a?`${e}<${o.type}
|
|
5
|
+
${e} ${a}>
|
|
6
|
+
${i}
|
|
7
|
+
${e}</${o.type}>`:`${e}<${o.type}>
|
|
8
|
+
${i}
|
|
9
|
+
${e}</${o.type}>`}else return a?`${e}<${o.type}
|
|
10
|
+
${e} ${a} />`:`${e}<${o.type} />`};return`<Shader>
|
|
11
|
+
${t.components.map(o=>l(o)).join(`
|
|
12
|
+
`)}
|
|
13
|
+
</Shader>`}const b=["AngularBlur","Ascii","Blob","Blur","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","Pixelate","PolarCoordinates","Posterize","ProgressiveBlur","RadialGradient","RectangularCoordinates","Ripples","Saturation","SimplexNoise","SineWave","SolidColor","Spiral","Strands","Stretch","Swirl","TiltShift","Tritone","Twirl","Vibrance","WaveDistortion","ZoomBlur"];Object.defineProperty(exports,"availableComponents",{enumerable:!0,get:function(){return b}});Object.defineProperty(exports,"generatePresetCode",{enumerable:!0,get:function(){return s}});
|