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
package/dist/registry.js
CHANGED
|
@@ -5187,6 +5187,164 @@ export const shaderRegistry = [
|
|
|
5187
5187
|
}
|
|
5188
5188
|
}
|
|
5189
5189
|
},
|
|
5190
|
+
{
|
|
5191
|
+
"name": "Stretch",
|
|
5192
|
+
"category": "Distortions",
|
|
5193
|
+
"description": "Stretch content towards a direction from a center point",
|
|
5194
|
+
"fileName": "Stretch",
|
|
5195
|
+
"requiresChild": true,
|
|
5196
|
+
"definition": {
|
|
5197
|
+
"name": "Stretch",
|
|
5198
|
+
"category": "Distortions",
|
|
5199
|
+
"description": "Stretch content towards a direction from a center point",
|
|
5200
|
+
"requiresRTT": true,
|
|
5201
|
+
"requiresChild": true,
|
|
5202
|
+
"props": {
|
|
5203
|
+
"center": {
|
|
5204
|
+
"default": {
|
|
5205
|
+
"x": 0.5,
|
|
5206
|
+
"y": 0.5
|
|
5207
|
+
},
|
|
5208
|
+
"description": "The center point of the stretch effect",
|
|
5209
|
+
"ui": {
|
|
5210
|
+
"type": "position",
|
|
5211
|
+
"label": "Center"
|
|
5212
|
+
}
|
|
5213
|
+
},
|
|
5214
|
+
"strength": {
|
|
5215
|
+
"default": 1,
|
|
5216
|
+
"description": "The intensity of the stretch effect",
|
|
5217
|
+
"ui": {
|
|
5218
|
+
"type": "range",
|
|
5219
|
+
"min": 0,
|
|
5220
|
+
"max": 1,
|
|
5221
|
+
"step": 0.01,
|
|
5222
|
+
"label": "Strength"
|
|
5223
|
+
}
|
|
5224
|
+
},
|
|
5225
|
+
"angle": {
|
|
5226
|
+
"default": 0,
|
|
5227
|
+
"description": "The direction of the stretch in degrees",
|
|
5228
|
+
"ui": {
|
|
5229
|
+
"type": "range",
|
|
5230
|
+
"min": 0,
|
|
5231
|
+
"max": 360,
|
|
5232
|
+
"step": 1,
|
|
5233
|
+
"label": "Angle"
|
|
5234
|
+
}
|
|
5235
|
+
},
|
|
5236
|
+
"falloff": {
|
|
5237
|
+
"default": 0,
|
|
5238
|
+
"description": "Controls the sharpness of the transition (0 = sharp edge, 1 = gradual transition)",
|
|
5239
|
+
"ui": {
|
|
5240
|
+
"type": "range",
|
|
5241
|
+
"min": 0,
|
|
5242
|
+
"max": 1,
|
|
5243
|
+
"step": 0.01,
|
|
5244
|
+
"label": "Falloff"
|
|
5245
|
+
}
|
|
5246
|
+
},
|
|
5247
|
+
"edges": {
|
|
5248
|
+
"default": "stretch",
|
|
5249
|
+
"description": "How to handle edges when distortion pushes content out of bounds",
|
|
5250
|
+
"ui": {
|
|
5251
|
+
"type": "select",
|
|
5252
|
+
"options": [
|
|
5253
|
+
{
|
|
5254
|
+
"label": "Stretch",
|
|
5255
|
+
"value": "stretch"
|
|
5256
|
+
},
|
|
5257
|
+
{
|
|
5258
|
+
"label": "Transparent",
|
|
5259
|
+
"value": "transparent"
|
|
5260
|
+
},
|
|
5261
|
+
{
|
|
5262
|
+
"label": "Mirror",
|
|
5263
|
+
"value": "mirror"
|
|
5264
|
+
},
|
|
5265
|
+
{
|
|
5266
|
+
"label": "Wrap",
|
|
5267
|
+
"value": "wrap"
|
|
5268
|
+
}
|
|
5269
|
+
],
|
|
5270
|
+
"label": "Edges"
|
|
5271
|
+
}
|
|
5272
|
+
}
|
|
5273
|
+
}
|
|
5274
|
+
},
|
|
5275
|
+
"propsMetadata": {
|
|
5276
|
+
"center": {
|
|
5277
|
+
"ui": {
|
|
5278
|
+
"type": "position",
|
|
5279
|
+
"label": "Center"
|
|
5280
|
+
},
|
|
5281
|
+
"default": {
|
|
5282
|
+
"x": 0.5,
|
|
5283
|
+
"y": 0.5
|
|
5284
|
+
},
|
|
5285
|
+
"description": "The center point of the stretch effect"
|
|
5286
|
+
},
|
|
5287
|
+
"strength": {
|
|
5288
|
+
"ui": {
|
|
5289
|
+
"type": "range",
|
|
5290
|
+
"min": 0,
|
|
5291
|
+
"max": 1,
|
|
5292
|
+
"step": 0.01,
|
|
5293
|
+
"label": "Strength"
|
|
5294
|
+
},
|
|
5295
|
+
"default": 1,
|
|
5296
|
+
"description": "The intensity of the stretch effect"
|
|
5297
|
+
},
|
|
5298
|
+
"angle": {
|
|
5299
|
+
"ui": {
|
|
5300
|
+
"type": "range",
|
|
5301
|
+
"min": 0,
|
|
5302
|
+
"max": 360,
|
|
5303
|
+
"step": 1,
|
|
5304
|
+
"label": "Angle"
|
|
5305
|
+
},
|
|
5306
|
+
"default": 0,
|
|
5307
|
+
"description": "The direction of the stretch in degrees"
|
|
5308
|
+
},
|
|
5309
|
+
"falloff": {
|
|
5310
|
+
"ui": {
|
|
5311
|
+
"type": "range",
|
|
5312
|
+
"min": 0,
|
|
5313
|
+
"max": 1,
|
|
5314
|
+
"step": 0.01,
|
|
5315
|
+
"label": "Falloff"
|
|
5316
|
+
},
|
|
5317
|
+
"default": 0,
|
|
5318
|
+
"description": "Controls the sharpness of the transition (0 = sharp edge, 1 = gradual transition)"
|
|
5319
|
+
},
|
|
5320
|
+
"edges": {
|
|
5321
|
+
"ui": {
|
|
5322
|
+
"type": "select",
|
|
5323
|
+
"options": [
|
|
5324
|
+
{
|
|
5325
|
+
"label": "Stretch",
|
|
5326
|
+
"value": "stretch"
|
|
5327
|
+
},
|
|
5328
|
+
{
|
|
5329
|
+
"label": "Transparent",
|
|
5330
|
+
"value": "transparent"
|
|
5331
|
+
},
|
|
5332
|
+
{
|
|
5333
|
+
"label": "Mirror",
|
|
5334
|
+
"value": "mirror"
|
|
5335
|
+
},
|
|
5336
|
+
{
|
|
5337
|
+
"label": "Wrap",
|
|
5338
|
+
"value": "wrap"
|
|
5339
|
+
}
|
|
5340
|
+
],
|
|
5341
|
+
"label": "Edges"
|
|
5342
|
+
},
|
|
5343
|
+
"default": "stretch",
|
|
5344
|
+
"description": "How to handle edges when distortion pushes content out of bounds"
|
|
5345
|
+
}
|
|
5346
|
+
}
|
|
5347
|
+
},
|
|
5190
5348
|
{
|
|
5191
5349
|
"name": "Swirl",
|
|
5192
5350
|
"category": "Base Layers",
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { type BlendMode } from 'shaders/core';
|
|
1
|
+
import { type BlendMode, type TransformConfig } from 'shaders/core';
|
|
2
2
|
import { type ComponentProps } from 'shaders/core/Stretch';
|
|
3
3
|
/**
|
|
4
|
-
* Define component props including blend mode, opacity, and
|
|
4
|
+
* Define component props including blend mode, opacity, visibility, masking, and transformation
|
|
5
5
|
*/
|
|
6
6
|
interface ExtendedComponentProps extends Partial<ComponentProps> {
|
|
7
7
|
blendMode?: BlendMode;
|
|
8
8
|
opacity?: number;
|
|
9
|
+
visible?: boolean;
|
|
9
10
|
id?: string;
|
|
10
11
|
maskSource?: string;
|
|
11
12
|
maskType?: string;
|
|
12
13
|
renderOrder?: number;
|
|
14
|
+
transform?: Partial<TransformConfig>;
|
|
13
15
|
children?: import('svelte').Snippet;
|
|
14
16
|
}
|
|
15
17
|
declare const Stretch: import("svelte").Component<ExtendedComponentProps, {}, "">;
|
|
@@ -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
|
+
};
|
package/dist/{react/utils/generatePresetCode.d.ts → svelte/generatePresetCode.template.d.ts}
RENAMED
|
@@ -8,6 +8,5 @@ interface PresetConfig {
|
|
|
8
8
|
components: ComponentConfig[];
|
|
9
9
|
}
|
|
10
10
|
export declare function generatePresetCode(preset: PresetConfig): string;
|
|
11
|
-
export declare const availableComponents:
|
|
11
|
+
export declare const availableComponents: any[];
|
|
12
12
|
export {};
|
|
13
|
-
//# sourceMappingURL=generatePresetCode.d.ts.map
|
package/dist/svelte/index.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ export { default as SineWave } from './components/SineWave.svelte';
|
|
|
43
43
|
export { default as SolidColor } from './components/SolidColor.svelte';
|
|
44
44
|
export { default as Spiral } from './components/Spiral.svelte';
|
|
45
45
|
export { default as Strands } from './components/Strands.svelte';
|
|
46
|
+
export { default as Stretch } from './components/Stretch.svelte';
|
|
46
47
|
export { default as Swirl } from './components/Swirl.svelte';
|
|
47
48
|
export { default as TiltShift } from './components/TiltShift.svelte';
|
|
48
49
|
export { default as Tritone } from './components/Tritone.svelte';
|