shaders 2.2.8 → 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/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 +43787 -44329
- package/dist/react/utils/generatePresetCode.cjs +1 -13
- package/dist/react/utils/generatePresetCode.js +3 -609
- 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.js +42894 -43383
- package/dist/svelte/utils/generatePresetCode.js +3 -609
- package/dist/vue/generatePresetCode-Baa8DyZE.js +322 -0
- package/dist/vue/index.js +1 -1
- package/dist/vue/utils/generatePresetCode.js +1 -1
- package/package.json +1 -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 -31
- 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 -56
- 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/Stretch.vue.d.ts +0 -57
- package/dist/vue/components/Stretch.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-DoYZnbEH.js +0 -613
- package/dist/vue/index.d.ts +0 -56
- 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/svelte/components/{HalfTone.svelte.d.ts → Halftone.svelte.d.ts} +0 -0
|
@@ -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
|