shaders 2.3.49 → 2.3.51
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/ConcentricSpin-CLTGx_sN.js +173 -0
- package/dist/core/StudioBackground-CFjfBnWp.js +337 -0
- package/dist/core/registry.js +120 -116
- package/dist/core/shaderRegistry.d.ts.map +1 -1
- package/dist/core/shaders/CRTScreen/index.js +1 -1
- package/dist/core/shaders/ConcentricSpin/index.d.ts +64 -0
- package/dist/core/shaders/ConcentricSpin/index.d.ts.map +1 -0
- package/dist/core/shaders/ConcentricSpin/index.js +5 -0
- package/dist/core/shaders/ContourLines/index.js +1 -1
- package/dist/core/shaders/CursorTrail/index.js +1 -1
- package/dist/core/shaders/DiffuseBlur/index.js +1 -1
- package/dist/core/shaders/Dither/index.js +1 -1
- package/dist/core/shaders/DotGrid/index.js +1 -1
- package/dist/core/shaders/Duotone/index.js +1 -1
- package/dist/core/shaders/FilmGrain/index.js +1 -1
- package/dist/core/shaders/FloatingParticles/index.js +1 -1
- package/dist/core/shaders/FlowField/index.js +1 -1
- package/dist/core/shaders/GlassTiles/index.js +1 -1
- package/dist/core/shaders/Glitch/index.js +1 -1
- package/dist/core/shaders/Glow/index.js +1 -1
- package/dist/core/shaders/Godrays/index.js +1 -1
- package/dist/core/shaders/Grayscale/index.js +1 -1
- package/dist/core/shaders/Grid/index.js +1 -1
- package/dist/core/shaders/GridDistortion/index.js +1 -1
- package/dist/core/shaders/Group/index.js +1 -1
- package/dist/core/shaders/Halftone/index.js +1 -1
- package/dist/core/shaders/HueShift/index.js +1 -1
- package/dist/core/shaders/ImageTexture/index.js +1 -1
- package/dist/core/shaders/Invert/index.js +1 -1
- package/dist/core/shaders/Kaleidoscope/index.js +1 -1
- package/dist/core/shaders/LensFlare/index.js +1 -1
- 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.js +1 -1
- package/dist/core/shaders/Perspective/index.js +1 -1
- package/dist/core/shaders/Pixelate/index.js +1 -1
- package/dist/core/shaders/Plasma/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/StudioBackground/index.d.ts +141 -0
- package/dist/core/shaders/StudioBackground/index.d.ts.map +1 -0
- package/dist/core/shaders/StudioBackground/index.js +4 -0
- 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/VideoTexture/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/react/ConcentricSpin.js +164 -0
- package/dist/react/StudioBackground.js +164 -0
- package/dist/react/components/ConcentricSpin.d.ts +31 -0
- package/dist/react/components/ConcentricSpin.d.ts.map +1 -0
- package/dist/react/components/StudioBackground.d.ts +31 -0
- package/dist/react/components/StudioBackground.d.ts.map +1 -0
- 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 +43 -0
- package/dist/registry.js +687 -0
- package/dist/solid/components/ConcentricSpin.d.ts +28 -0
- package/dist/solid/components/ConcentricSpin.d.ts.map +1 -0
- package/dist/solid/components/ConcentricSpin.js +168 -0
- package/dist/solid/components/StudioBackground.d.ts +28 -0
- package/dist/solid/components/StudioBackground.d.ts.map +1 -0
- package/dist/solid/components/StudioBackground.js +168 -0
- package/dist/solid/index.d.ts +2 -0
- package/dist/solid/index.d.ts.map +1 -1
- package/dist/solid/index.js +120 -116
- package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/solid/utils/generatePresetCode.js +43 -0
- package/dist/svelte/components/ConcentricSpin.svelte.d.ts +19 -0
- package/dist/svelte/components/StudioBackground.svelte.d.ts +19 -0
- package/dist/svelte/{generatePresetCode-Bw9A9k-k.js → generatePresetCode-TDa1I3YR.js} +43 -0
- package/dist/svelte/index.d.ts +2 -0
- package/dist/svelte/index.js +515 -255
- package/dist/svelte/utils/generatePresetCode.js +1 -1
- package/dist/vue/ConcentricSpin.js +3 -0
- package/dist/vue/ConcentricSpin.vue_vue_type_script_setup_true_lang.js +151 -0
- package/dist/vue/StudioBackground.js +3 -0
- package/dist/vue/StudioBackground.vue_vue_type_script_setup_true_lang.js +162 -0
- package/dist/vue/components/ConcentricSpin.vue.d.ts +54 -0
- package/dist/vue/components/ConcentricSpin.vue.d.ts.map +1 -0
- package/dist/vue/components/StudioBackground.vue.d.ts +54 -0
- package/dist/vue/components/StudioBackground.vue.d.ts.map +1 -0
- 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 +43 -0
- package/package.json +17 -1
- /package/dist/core/{CRTScreen-BJJhBQ3D.js → CRTScreen-D6qh6DnD.js} +0 -0
- /package/dist/core/{ContourLines-NASMUR3G.js → ContourLines-Dc5J7iw5.js} +0 -0
- /package/dist/core/{CursorTrail-DT7Q3TzC.js → CursorTrail-COnyRZH9.js} +0 -0
- /package/dist/core/{DiffuseBlur-dJ8C3PKh.js → DiffuseBlur-DcV8M7hN.js} +0 -0
- /package/dist/core/{Dither-Bac0W21a.js → Dither-C-w0ugGX.js} +0 -0
- /package/dist/core/{DotGrid-Cedu_WEn.js → DotGrid-wXnfcjrM.js} +0 -0
- /package/dist/core/{Duotone-DL9vhoyo.js → Duotone-B8dYgrFR.js} +0 -0
- /package/dist/core/{FilmGrain-BzdJM5vN.js → FilmGrain-D_6m7GJ4.js} +0 -0
- /package/dist/core/{FloatingParticles-DoB1DI8t.js → FloatingParticles-YuuXeICf.js} +0 -0
- /package/dist/core/{FlowField-BZ-ZbMzR.js → FlowField-Dx2eqOcU.js} +0 -0
- /package/dist/core/{GlassTiles-BQL2Id5c.js → GlassTiles-hnt2pUQN.js} +0 -0
- /package/dist/core/{Glitch-DmF8pHjd.js → Glitch-DfPXeSlL.js} +0 -0
- /package/dist/core/{Glow-Bxpj34sE.js → Glow-CQv_dRPj.js} +0 -0
- /package/dist/core/{Godrays-DqB-88ds.js → Godrays-B_-HliEA.js} +0 -0
- /package/dist/core/{Grayscale-CAuZTuZN.js → Grayscale-DRFXhxr4.js} +0 -0
- /package/dist/core/{Grid-B6Hf5dZa.js → Grid-DKSUwEIe.js} +0 -0
- /package/dist/core/{GridDistortion-DmwIHrXF.js → GridDistortion-DahXljLX.js} +0 -0
- /package/dist/core/{Group-DYtNH5QD.js → Group-r9gMBd5y.js} +0 -0
- /package/dist/core/{Halftone-vy2WIxyN.js → Halftone-ZVjwkjaQ.js} +0 -0
- /package/dist/core/{HueShift-C4E-S49G.js → HueShift-gZlNBwNE.js} +0 -0
- /package/dist/core/{ImageTexture-B40GVvXK.js → ImageTexture-DuXMku_O.js} +0 -0
- /package/dist/core/{Invert-ec-nb8PE.js → Invert-gUjZNHF3.js} +0 -0
- /package/dist/core/{Kaleidoscope-BO3WUc5P.js → Kaleidoscope-COKZ0BDb.js} +0 -0
- /package/dist/core/{LensFlare-BoaXy9ZE.js → LensFlare-D6jy4M7G.js} +0 -0
- /package/dist/core/{LinearBlur-BHaYZoXd.js → LinearBlur-CArDQIhs.js} +0 -0
- /package/dist/core/{LinearGradient-C8nueF-8.js → LinearGradient-BkB_3gVV.js} +0 -0
- /package/dist/core/{Liquify-JsuLWWkx.js → Liquify-BrIB9ajS.js} +0 -0
- /package/dist/core/{Mirror--f1QXEID.js → Mirror-BRPYfVAr.js} +0 -0
- /package/dist/core/{Perspective-Dyj4iJMR.js → Perspective-CglPLWTZ.js} +0 -0
- /package/dist/core/{Pixelate-CzXp_BwM.js → Pixelate-CwnuDc5L.js} +0 -0
- /package/dist/core/{Plasma-FfOwR9cP.js → Plasma-CuW-GOI_.js} +0 -0
- /package/dist/core/{PolarCoordinates-CfuvmwZm.js → PolarCoordinates-9AFXKnSC.js} +0 -0
- /package/dist/core/{Posterize-IUwDieMu.js → Posterize-DU2yrydV.js} +0 -0
- /package/dist/core/{ProgressiveBlur-BTGKywKM.js → ProgressiveBlur-BXv2mob_.js} +0 -0
- /package/dist/core/{RadialGradient-DbcPAwI7.js → RadialGradient-Dd21Be-_.js} +0 -0
- /package/dist/core/{RectangularCoordinates-OOpDHjTM.js → RectangularCoordinates-DAOGnX2p.js} +0 -0
- /package/dist/core/{Ripples-CGhzc9or.js → Ripples-Nk5is8WX.js} +0 -0
- /package/dist/core/{Saturation-ssiNVXIp.js → Saturation-KoiVB92Y.js} +0 -0
- /package/dist/core/{Sharpness-B-nN0G5P.js → Sharpness-CK-zaDVc.js} +0 -0
- /package/dist/core/{Shatter-CryQHkSZ.js → Shatter-EEzkIXGb.js} +0 -0
- /package/dist/core/{SimplexNoise-B-tDGmzX.js → SimplexNoise-DKov4Yho.js} +0 -0
- /package/dist/core/{SineWave-C6MpmU6E.js → SineWave-Cy0wWKUU.js} +0 -0
- /package/dist/core/{SolidColor-BjLy2eJx.js → SolidColor-P4OKglCC.js} +0 -0
- /package/dist/core/{Spherize-Mtl4w0Lc.js → Spherize-BLEvqakM.js} +0 -0
- /package/dist/core/{Spiral-Bl67ud0b.js → Spiral-DXuKs26n.js} +0 -0
- /package/dist/core/{Strands-BNxk94tR.js → Strands-DsdASoV4.js} +0 -0
- /package/dist/core/{Stretch-DROTOuvH.js → Stretch-By8f2wmJ.js} +0 -0
- /package/dist/core/{Stripes-IMsC1G-g.js → Stripes-D8HSlP1H.js} +0 -0
- /package/dist/core/{Swirl-C9xCY4TA.js → Swirl-BIFGxHL0.js} +0 -0
- /package/dist/core/{TiltShift-CFhc4M-Z.js → TiltShift-CLMFkzBs.js} +0 -0
- /package/dist/core/{Tint-DS1FvtQc.js → Tint-NQjiXLGu.js} +0 -0
- /package/dist/core/{Tritone-CesYYNTz.js → Tritone-67eoddBF.js} +0 -0
- /package/dist/core/{Twirl-8C-m04yw.js → Twirl-ZaYAMqmq.js} +0 -0
- /package/dist/core/{Vibrance-Cbr-9ds2.js → Vibrance-DbSUuK_4.js} +0 -0
- /package/dist/core/{VideoTexture-DKnQrDkq.js → VideoTexture-lHzoN3G9.js} +0 -0
- /package/dist/core/{WaveDistortion-D-TGqE0a.js → WaveDistortion-CB6xTndT.js} +0 -0
- /package/dist/core/{WebcamTexture-C3EtpWf2.js → WebcamTexture-BJUvpMmV.js} +0 -0
- /package/dist/core/{ZoomBlur-DmMiy4FJ.js → ZoomBlur-BCClC8fw.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../transformations-CC_c-QAT.js";
|
|
2
2
|
import "../../time-BZqyVJXt.js";
|
|
3
3
|
import "../../colorMixing-Ehw-Hfs_.js";
|
|
4
|
-
import { n as componentDefinition, t as SimplexNoise_default } from "../../SimplexNoise-
|
|
4
|
+
import { n as componentDefinition, t as SimplexNoise_default } from "../../SimplexNoise-DKov4Yho.js";
|
|
5
5
|
export { componentDefinition, SimplexNoise_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../../transformations-CC_c-QAT.js";
|
|
2
2
|
import "../../time-BZqyVJXt.js";
|
|
3
|
-
import { n as componentDefinition, t as SineWave_default } from "../../SineWave-
|
|
3
|
+
import { n as componentDefinition, t as SineWave_default } from "../../SineWave-Cy0wWKUU.js";
|
|
4
4
|
export { componentDefinition, SineWave_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../../transformations-CC_c-QAT.js";
|
|
2
|
-
import { n as componentDefinition, t as SolidColor_default } from "../../SolidColor-
|
|
2
|
+
import { n as componentDefinition, t as SolidColor_default } from "../../SolidColor-P4OKglCC.js";
|
|
3
3
|
export { componentDefinition, SolidColor_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../../transformations-CC_c-QAT.js";
|
|
2
|
-
import { n as componentDefinition, t as Spherize_default } from "../../Spherize-
|
|
2
|
+
import { n as componentDefinition, t as Spherize_default } from "../../Spherize-BLEvqakM.js";
|
|
3
3
|
export { componentDefinition, Spherize_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../transformations-CC_c-QAT.js";
|
|
2
2
|
import "../../time-BZqyVJXt.js";
|
|
3
3
|
import "../../colorMixing-Ehw-Hfs_.js";
|
|
4
|
-
import { n as componentDefinition, t as Spiral_default } from "../../Spiral-
|
|
4
|
+
import { n as componentDefinition, t as Spiral_default } from "../../Spiral-DXuKs26n.js";
|
|
5
5
|
export { componentDefinition, Spiral_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../../transformations-CC_c-QAT.js";
|
|
2
2
|
import "../../time-BZqyVJXt.js";
|
|
3
|
-
import { n as componentDefinition, t as Strands_default } from "../../Strands-
|
|
3
|
+
import { n as componentDefinition, t as Strands_default } from "../../Strands-DsdASoV4.js";
|
|
4
4
|
export { componentDefinition, Strands_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../../edges-Bd7GP4s2.js";
|
|
2
2
|
import "../../transformations-CC_c-QAT.js";
|
|
3
|
-
import { n as componentDefinition, t as Stretch_default } from "../../Stretch-
|
|
3
|
+
import { n as componentDefinition, t as Stretch_default } from "../../Stretch-By8f2wmJ.js";
|
|
4
4
|
export { componentDefinition, Stretch_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../transformations-CC_c-QAT.js";
|
|
2
2
|
import "../../time-BZqyVJXt.js";
|
|
3
3
|
import "../../colorMixing-Ehw-Hfs_.js";
|
|
4
|
-
import { n as componentDefinition, t as Stripes_default } from "../../Stripes-
|
|
4
|
+
import { n as componentDefinition, t as Stripes_default } from "../../Stripes-D8HSlP1H.js";
|
|
5
5
|
export { componentDefinition, Stripes_default as default };
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { ComponentDefinition } from '../../types';
|
|
2
|
+
import { transformColor, transformPosition } from '../../utilities/transformations';
|
|
3
|
+
|
|
4
|
+
export interface ComponentProps {
|
|
5
|
+
/**
|
|
6
|
+
* Base studio surface color
|
|
7
|
+
*
|
|
8
|
+
* Accepts hex strings (`#ff0000`), RGB objects (`{ r, g, b }`), or CSS color names (`limegreen`).
|
|
9
|
+
* @default "#d8dbec"
|
|
10
|
+
*/
|
|
11
|
+
color: Parameters<typeof transformColor>[0];
|
|
12
|
+
/**
|
|
13
|
+
* Overall ambient light level
|
|
14
|
+
*
|
|
15
|
+
* Accepts a number between 0 and 100.
|
|
16
|
+
* @default 20
|
|
17
|
+
*/
|
|
18
|
+
brightness: number;
|
|
19
|
+
/**
|
|
20
|
+
* Color of the overhead key light
|
|
21
|
+
*
|
|
22
|
+
* Accepts hex strings (`#ff0000`), RGB objects (`{ r, g, b }`), or CSS color names (`limegreen`).
|
|
23
|
+
* @default "#d5e4ea"
|
|
24
|
+
*/
|
|
25
|
+
keyColor: Parameters<typeof transformColor>[0];
|
|
26
|
+
/**
|
|
27
|
+
* Intensity of the key light
|
|
28
|
+
*
|
|
29
|
+
* Accepts a number between 0 and 100.
|
|
30
|
+
* @default 40
|
|
31
|
+
*/
|
|
32
|
+
keyIntensity: number;
|
|
33
|
+
/**
|
|
34
|
+
* How diffuse the key light is
|
|
35
|
+
*
|
|
36
|
+
* Accepts a number between 0 and 100.
|
|
37
|
+
* @default 50
|
|
38
|
+
*/
|
|
39
|
+
keySoftness: number;
|
|
40
|
+
/**
|
|
41
|
+
* Color of the side fill lights
|
|
42
|
+
*
|
|
43
|
+
* Accepts hex strings (`#ff0000`), RGB objects (`{ r, g, b }`), or CSS color names (`limegreen`).
|
|
44
|
+
* @default "#d5e4ea"
|
|
45
|
+
*/
|
|
46
|
+
fillColor: Parameters<typeof transformColor>[0];
|
|
47
|
+
/**
|
|
48
|
+
* Intensity of the fill lights
|
|
49
|
+
*
|
|
50
|
+
* Accepts a number between 0 and 100.
|
|
51
|
+
* @default 10
|
|
52
|
+
*/
|
|
53
|
+
fillIntensity: number;
|
|
54
|
+
/**
|
|
55
|
+
* How diffuse the fill lights are
|
|
56
|
+
*
|
|
57
|
+
* Accepts a number between 0 and 100.
|
|
58
|
+
* @default 70
|
|
59
|
+
*/
|
|
60
|
+
fillSoftness: number;
|
|
61
|
+
/**
|
|
62
|
+
* How far apart the fill lights are from center
|
|
63
|
+
*
|
|
64
|
+
* Accepts a number between 0 and 100.
|
|
65
|
+
* @default 70
|
|
66
|
+
*/
|
|
67
|
+
fillAngle: number;
|
|
68
|
+
/**
|
|
69
|
+
* Color of the upward back wash
|
|
70
|
+
*
|
|
71
|
+
* Accepts hex strings (`#ff0000`), RGB objects (`{ r, g, b }`), or CSS color names (`limegreen`).
|
|
72
|
+
* @default "#c8d4e8"
|
|
73
|
+
*/
|
|
74
|
+
backColor: Parameters<typeof transformColor>[0];
|
|
75
|
+
/**
|
|
76
|
+
* Intensity of the back wash
|
|
77
|
+
*
|
|
78
|
+
* Accepts a number between 0 and 100.
|
|
79
|
+
* @default 20
|
|
80
|
+
*/
|
|
81
|
+
backIntensity: number;
|
|
82
|
+
/**
|
|
83
|
+
* How diffuse the back wash is
|
|
84
|
+
*
|
|
85
|
+
* Accepts a number between 0 and 100.
|
|
86
|
+
* @default 80
|
|
87
|
+
*/
|
|
88
|
+
backSoftness: number;
|
|
89
|
+
/**
|
|
90
|
+
* Where the spotlight meets the floor
|
|
91
|
+
*
|
|
92
|
+
* Accepts `{ x, y }` objects with values from 0 to 1, or CSS positions like `top center`.
|
|
93
|
+
* @default {"x":0.5,"y":0.8}
|
|
94
|
+
*/
|
|
95
|
+
center: Parameters<typeof transformPosition>[0];
|
|
96
|
+
/**
|
|
97
|
+
* How far toward the floor vs wall the spotlights aim
|
|
98
|
+
*
|
|
99
|
+
* Accepts a number between 0 and 100.
|
|
100
|
+
* @default 100
|
|
101
|
+
*/
|
|
102
|
+
lightTarget: number;
|
|
103
|
+
/**
|
|
104
|
+
* How rounded the cove is
|
|
105
|
+
*
|
|
106
|
+
* Accepts a number between 0 and 100.
|
|
107
|
+
* @default 10
|
|
108
|
+
*/
|
|
109
|
+
wallCurvature: number;
|
|
110
|
+
/**
|
|
111
|
+
* Edge darkening
|
|
112
|
+
*
|
|
113
|
+
* Accepts a number between 0 and 100.
|
|
114
|
+
* @default 0
|
|
115
|
+
*/
|
|
116
|
+
vignette: number;
|
|
117
|
+
/**
|
|
118
|
+
* Intensity of drifting ambient lights
|
|
119
|
+
*
|
|
120
|
+
* Accepts a number between 0 and 100.
|
|
121
|
+
* @default 50
|
|
122
|
+
*/
|
|
123
|
+
ambientIntensity: number;
|
|
124
|
+
/**
|
|
125
|
+
* Drift speed
|
|
126
|
+
*
|
|
127
|
+
* Accepts a number between -5 and 5.
|
|
128
|
+
* @default 2
|
|
129
|
+
*/
|
|
130
|
+
ambientSpeed: number;
|
|
131
|
+
/**
|
|
132
|
+
* Seed for ambient pattern
|
|
133
|
+
*
|
|
134
|
+
* Accepts a number between 0 and 100.
|
|
135
|
+
* @default 0
|
|
136
|
+
*/
|
|
137
|
+
seed: number;
|
|
138
|
+
}
|
|
139
|
+
export declare const componentDefinition: ComponentDefinition<ComponentProps>;
|
|
140
|
+
export default componentDefinition;
|
|
141
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/StudioBackground/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAIvE,OAAO,EAAC,cAAc,EAAE,iBAAiB,EAAC,MAAM,qCAAqC,CAAA;AAGrF,MAAM,WAAW,cAAc;IAC3B,KAAK,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAA;IAC3C,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAA;IAC9C,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAA;IAC/C,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAA;IAC/C,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAA;IAC/C,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,MAAM,CAAA;IAChB,gBAAgB,EAAE,MAAM,CAAA;IACxB,YAAY,EAAE,MAAM,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,CA0QnE,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../transformations-CC_c-QAT.js";
|
|
2
2
|
import "../../time-BZqyVJXt.js";
|
|
3
3
|
import "../../colorMixing-Ehw-Hfs_.js";
|
|
4
|
-
import { n as componentDefinition, t as Swirl_default } from "../../Swirl-
|
|
4
|
+
import { n as componentDefinition, t as Swirl_default } from "../../Swirl-BIFGxHL0.js";
|
|
5
5
|
export { componentDefinition, Swirl_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../../transformations-CC_c-QAT.js";
|
|
2
|
-
import { n as componentDefinition, t as TiltShift_default } from "../../TiltShift-
|
|
2
|
+
import { n as componentDefinition, t as TiltShift_default } from "../../TiltShift-CLMFkzBs.js";
|
|
3
3
|
export { componentDefinition, TiltShift_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../../transformations-CC_c-QAT.js";
|
|
2
|
-
import { n as componentDefinition, t as Tint_default } from "../../Tint-
|
|
2
|
+
import { n as componentDefinition, t as Tint_default } from "../../Tint-NQjiXLGu.js";
|
|
3
3
|
export { componentDefinition, Tint_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../../transformations-CC_c-QAT.js";
|
|
2
2
|
import "../../colorMixing-Ehw-Hfs_.js";
|
|
3
|
-
import { n as componentDefinition, t as Tritone_default } from "../../Tritone-
|
|
3
|
+
import { n as componentDefinition, t as Tritone_default } from "../../Tritone-67eoddBF.js";
|
|
4
4
|
export { componentDefinition, Tritone_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../../edges-Bd7GP4s2.js";
|
|
2
2
|
import "../../transformations-CC_c-QAT.js";
|
|
3
|
-
import { n as componentDefinition, t as Twirl_default } from "../../Twirl-
|
|
3
|
+
import { n as componentDefinition, t as Twirl_default } from "../../Twirl-ZaYAMqmq.js";
|
|
4
4
|
export { componentDefinition, Twirl_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as componentDefinition, t as Vibrance_default } from "../../Vibrance-
|
|
1
|
+
import { n as componentDefinition, t as Vibrance_default } from "../../Vibrance-DbSUuK_4.js";
|
|
2
2
|
export { componentDefinition, Vibrance_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as componentDefinition, t as VideoTexture_default } from "../../VideoTexture-
|
|
1
|
+
import { n as componentDefinition, t as VideoTexture_default } from "../../VideoTexture-lHzoN3G9.js";
|
|
2
2
|
export { componentDefinition, VideoTexture_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../edges-Bd7GP4s2.js";
|
|
2
2
|
import "../../transformations-CC_c-QAT.js";
|
|
3
3
|
import "../../time-BZqyVJXt.js";
|
|
4
|
-
import { n as componentDefinition, t as WaveDistortion_default } from "../../WaveDistortion-
|
|
4
|
+
import { n as componentDefinition, t as WaveDistortion_default } from "../../WaveDistortion-CB6xTndT.js";
|
|
5
5
|
export { componentDefinition, WaveDistortion_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as componentDefinition, t as WebcamTexture_default } from "../../WebcamTexture-
|
|
1
|
+
import { n as componentDefinition, t as WebcamTexture_default } from "../../WebcamTexture-BJUvpMmV.js";
|
|
2
2
|
export { componentDefinition, WebcamTexture_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../../transformations-CC_c-QAT.js";
|
|
2
|
-
import { n as componentDefinition, t as ZoomBlur_default } from "../../ZoomBlur-
|
|
2
|
+
import { n as componentDefinition, t as ZoomBlur_default } from "../../ZoomBlur-BCClC8fw.js";
|
|
3
3
|
export { componentDefinition, ZoomBlur_default as default };
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { ShaderContext } from "./Shader.js";
|
|
2
|
+
import { useContext, useEffect, useMemo, useRef } from "react";
|
|
3
|
+
import { createUniformsMap } from "../core/index.js";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { componentDefinition } from "../core/shaders/ConcentricSpin/index.js";
|
|
6
|
+
function computeEffectiveProps(props, defaultProps$1) {
|
|
7
|
+
let baseProps = { ...defaultProps$1 };
|
|
8
|
+
for (const [key, value] of Object.entries(props)) if (key !== "children" && key !== "ref" && value !== void 0) baseProps[key] = value;
|
|
9
|
+
return baseProps;
|
|
10
|
+
}
|
|
11
|
+
var MARKER_STYLE = { display: "contents" };
|
|
12
|
+
var DEFAULT_TRANSFORM = {
|
|
13
|
+
offsetX: 0,
|
|
14
|
+
offsetY: 0,
|
|
15
|
+
rotation: 0,
|
|
16
|
+
scale: 1,
|
|
17
|
+
anchorX: .5,
|
|
18
|
+
anchorY: .5,
|
|
19
|
+
edges: "transparent"
|
|
20
|
+
};
|
|
21
|
+
var defaultProps = {
|
|
22
|
+
blendMode: "normal",
|
|
23
|
+
visible: true
|
|
24
|
+
};
|
|
25
|
+
try {
|
|
26
|
+
if (componentDefinition && componentDefinition.props) Object.entries(componentDefinition.props).forEach(([key, config]) => {
|
|
27
|
+
const propConfig = config;
|
|
28
|
+
if (propConfig && typeof propConfig === "object" && "default" in propConfig) defaultProps[key] = propConfig.default;
|
|
29
|
+
});
|
|
30
|
+
} catch (e) {
|
|
31
|
+
console.warn("Error extracting default props:", e);
|
|
32
|
+
}
|
|
33
|
+
const ShaderComponent = (props) => {
|
|
34
|
+
const context = useContext(ShaderContext);
|
|
35
|
+
if (!context) throw new Error("Shader components must be used inside an <Shader> component or another shader component");
|
|
36
|
+
const { shaderParentId: parentId, shaderNodeRegister: parentRegister, shaderUniformUpdate: parentUniformUpdate, shaderMetadataUpdate: parentMetadataUpdate } = context;
|
|
37
|
+
const instanceId = useMemo(() => {
|
|
38
|
+
return props.id || Math.random().toString(36).substring(2, 10);
|
|
39
|
+
}, [props.id]);
|
|
40
|
+
const effectiveProps = useMemo(() => {
|
|
41
|
+
return computeEffectiveProps(props, defaultProps);
|
|
42
|
+
}, [props]);
|
|
43
|
+
const effectiveTransform = useMemo(() => ({
|
|
44
|
+
...DEFAULT_TRANSFORM,
|
|
45
|
+
...props.transform
|
|
46
|
+
}), [props.transform]);
|
|
47
|
+
const markerRef = useRef(null);
|
|
48
|
+
const detectedOrderRef = useRef(void 0);
|
|
49
|
+
const uniformsRef = useRef(null);
|
|
50
|
+
if (uniformsRef.current === null) uniformsRef.current = createUniformsMap(componentDefinition, effectiveProps, instanceId);
|
|
51
|
+
const childContextValue = useMemo(() => {
|
|
52
|
+
return {
|
|
53
|
+
...context,
|
|
54
|
+
shaderParentId: instanceId
|
|
55
|
+
};
|
|
56
|
+
}, [context, instanceId]);
|
|
57
|
+
useEffect(() => {
|
|
58
|
+
if (!uniformsRef.current) return;
|
|
59
|
+
try {
|
|
60
|
+
const metadata = {
|
|
61
|
+
blendMode: props.blendMode || "normal",
|
|
62
|
+
opacity: props.opacity,
|
|
63
|
+
visible: props.visible === false ? false : true,
|
|
64
|
+
id: props.id,
|
|
65
|
+
mask: props.maskSource ? {
|
|
66
|
+
source: props.maskSource,
|
|
67
|
+
type: props.maskType || "alpha"
|
|
68
|
+
} : void 0,
|
|
69
|
+
renderOrder: props.renderOrder ?? detectedOrderRef.current,
|
|
70
|
+
transform: effectiveTransform
|
|
71
|
+
};
|
|
72
|
+
parentRegister(instanceId, componentDefinition.fragmentNode, parentId, metadata, uniformsRef.current, componentDefinition);
|
|
73
|
+
return () => {
|
|
74
|
+
parentRegister(instanceId, null, null, null, null);
|
|
75
|
+
};
|
|
76
|
+
} catch (error) {
|
|
77
|
+
console.error("Error registering shader node:", error);
|
|
78
|
+
return () => {};
|
|
79
|
+
}
|
|
80
|
+
}, [
|
|
81
|
+
instanceId,
|
|
82
|
+
parentId,
|
|
83
|
+
parentRegister
|
|
84
|
+
]);
|
|
85
|
+
useEffect(() => {
|
|
86
|
+
if (props.renderOrder === void 0 && markerRef.current) {
|
|
87
|
+
const parent = markerRef.current.parentElement;
|
|
88
|
+
if (parent) {
|
|
89
|
+
const siblings = parent.querySelectorAll(":scope > [data-shader-id]");
|
|
90
|
+
const position = Array.from(siblings).indexOf(markerRef.current);
|
|
91
|
+
if (position >= 0) {
|
|
92
|
+
detectedOrderRef.current = position;
|
|
93
|
+
parentMetadataUpdate(instanceId, { renderOrder: position });
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}, []);
|
|
98
|
+
const prevPropsRef = useRef({});
|
|
99
|
+
useEffect(() => {
|
|
100
|
+
if (!uniformsRef.current) return;
|
|
101
|
+
try {
|
|
102
|
+
Object.entries(uniformsRef.current).forEach(([propName, uniformData]) => {
|
|
103
|
+
if (!uniformData || typeof uniformData !== "object") return;
|
|
104
|
+
const { uniform, transform } = uniformData;
|
|
105
|
+
if (uniform?.value !== void 0 && propName in effectiveProps) {
|
|
106
|
+
const newValue = effectiveProps[propName];
|
|
107
|
+
if (newValue !== prevPropsRef.current[propName]) {
|
|
108
|
+
parentUniformUpdate(instanceId, propName, newValue);
|
|
109
|
+
prevPropsRef.current[propName] = newValue;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
} catch (error) {
|
|
114
|
+
console.error("Error updating uniforms:", error);
|
|
115
|
+
}
|
|
116
|
+
}, [
|
|
117
|
+
effectiveProps,
|
|
118
|
+
instanceId,
|
|
119
|
+
parentUniformUpdate
|
|
120
|
+
]);
|
|
121
|
+
useEffect(() => {
|
|
122
|
+
try {
|
|
123
|
+
parentMetadataUpdate(instanceId, {
|
|
124
|
+
blendMode: props.blendMode || "normal",
|
|
125
|
+
opacity: props.opacity,
|
|
126
|
+
visible: props.visible === false ? false : true,
|
|
127
|
+
id: props.id,
|
|
128
|
+
mask: props.maskSource ? {
|
|
129
|
+
source: props.maskSource,
|
|
130
|
+
type: props.maskType || "alpha"
|
|
131
|
+
} : void 0,
|
|
132
|
+
renderOrder: props.renderOrder ?? detectedOrderRef.current,
|
|
133
|
+
transform: effectiveTransform
|
|
134
|
+
});
|
|
135
|
+
} catch (error) {
|
|
136
|
+
console.error("Error updating metadata:", error);
|
|
137
|
+
}
|
|
138
|
+
}, [
|
|
139
|
+
props.blendMode,
|
|
140
|
+
props.opacity,
|
|
141
|
+
props.visible,
|
|
142
|
+
props.maskSource,
|
|
143
|
+
props.maskType,
|
|
144
|
+
props.renderOrder,
|
|
145
|
+
props.id,
|
|
146
|
+
effectiveTransform,
|
|
147
|
+
instanceId,
|
|
148
|
+
parentMetadataUpdate
|
|
149
|
+
]);
|
|
150
|
+
if (props.ref && typeof props.ref === "function") try {
|
|
151
|
+
props.ref(null);
|
|
152
|
+
} catch (e) {}
|
|
153
|
+
return /* @__PURE__ */ jsx(ShaderContext.Provider, {
|
|
154
|
+
value: childContextValue,
|
|
155
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
156
|
+
ref: markerRef,
|
|
157
|
+
style: MARKER_STYLE,
|
|
158
|
+
"data-shader-id": instanceId,
|
|
159
|
+
children: props.children
|
|
160
|
+
})
|
|
161
|
+
});
|
|
162
|
+
};
|
|
163
|
+
var ConcentricSpin_default = ShaderComponent;
|
|
164
|
+
export { ConcentricSpin_default as default };
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { ShaderContext } from "./Shader.js";
|
|
2
|
+
import { useContext, useEffect, useMemo, useRef } from "react";
|
|
3
|
+
import { createUniformsMap } from "../core/index.js";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { componentDefinition } from "../core/shaders/StudioBackground/index.js";
|
|
6
|
+
function computeEffectiveProps(props, defaultProps$1) {
|
|
7
|
+
let baseProps = { ...defaultProps$1 };
|
|
8
|
+
for (const [key, value] of Object.entries(props)) if (key !== "children" && key !== "ref" && value !== void 0) baseProps[key] = value;
|
|
9
|
+
return baseProps;
|
|
10
|
+
}
|
|
11
|
+
var MARKER_STYLE = { display: "contents" };
|
|
12
|
+
var DEFAULT_TRANSFORM = {
|
|
13
|
+
offsetX: 0,
|
|
14
|
+
offsetY: 0,
|
|
15
|
+
rotation: 0,
|
|
16
|
+
scale: 1,
|
|
17
|
+
anchorX: .5,
|
|
18
|
+
anchorY: .5,
|
|
19
|
+
edges: "transparent"
|
|
20
|
+
};
|
|
21
|
+
var defaultProps = {
|
|
22
|
+
blendMode: "normal",
|
|
23
|
+
visible: true
|
|
24
|
+
};
|
|
25
|
+
try {
|
|
26
|
+
if (componentDefinition && componentDefinition.props) Object.entries(componentDefinition.props).forEach(([key, config]) => {
|
|
27
|
+
const propConfig = config;
|
|
28
|
+
if (propConfig && typeof propConfig === "object" && "default" in propConfig) defaultProps[key] = propConfig.default;
|
|
29
|
+
});
|
|
30
|
+
} catch (e) {
|
|
31
|
+
console.warn("Error extracting default props:", e);
|
|
32
|
+
}
|
|
33
|
+
const ShaderComponent = (props) => {
|
|
34
|
+
const context = useContext(ShaderContext);
|
|
35
|
+
if (!context) throw new Error("Shader components must be used inside an <Shader> component or another shader component");
|
|
36
|
+
const { shaderParentId: parentId, shaderNodeRegister: parentRegister, shaderUniformUpdate: parentUniformUpdate, shaderMetadataUpdate: parentMetadataUpdate } = context;
|
|
37
|
+
const instanceId = useMemo(() => {
|
|
38
|
+
return props.id || Math.random().toString(36).substring(2, 10);
|
|
39
|
+
}, [props.id]);
|
|
40
|
+
const effectiveProps = useMemo(() => {
|
|
41
|
+
return computeEffectiveProps(props, defaultProps);
|
|
42
|
+
}, [props]);
|
|
43
|
+
const effectiveTransform = useMemo(() => ({
|
|
44
|
+
...DEFAULT_TRANSFORM,
|
|
45
|
+
...props.transform
|
|
46
|
+
}), [props.transform]);
|
|
47
|
+
const markerRef = useRef(null);
|
|
48
|
+
const detectedOrderRef = useRef(void 0);
|
|
49
|
+
const uniformsRef = useRef(null);
|
|
50
|
+
if (uniformsRef.current === null) uniformsRef.current = createUniformsMap(componentDefinition, effectiveProps, instanceId);
|
|
51
|
+
const childContextValue = useMemo(() => {
|
|
52
|
+
return {
|
|
53
|
+
...context,
|
|
54
|
+
shaderParentId: instanceId
|
|
55
|
+
};
|
|
56
|
+
}, [context, instanceId]);
|
|
57
|
+
useEffect(() => {
|
|
58
|
+
if (!uniformsRef.current) return;
|
|
59
|
+
try {
|
|
60
|
+
const metadata = {
|
|
61
|
+
blendMode: props.blendMode || "normal",
|
|
62
|
+
opacity: props.opacity,
|
|
63
|
+
visible: props.visible === false ? false : true,
|
|
64
|
+
id: props.id,
|
|
65
|
+
mask: props.maskSource ? {
|
|
66
|
+
source: props.maskSource,
|
|
67
|
+
type: props.maskType || "alpha"
|
|
68
|
+
} : void 0,
|
|
69
|
+
renderOrder: props.renderOrder ?? detectedOrderRef.current,
|
|
70
|
+
transform: effectiveTransform
|
|
71
|
+
};
|
|
72
|
+
parentRegister(instanceId, componentDefinition.fragmentNode, parentId, metadata, uniformsRef.current, componentDefinition);
|
|
73
|
+
return () => {
|
|
74
|
+
parentRegister(instanceId, null, null, null, null);
|
|
75
|
+
};
|
|
76
|
+
} catch (error) {
|
|
77
|
+
console.error("Error registering shader node:", error);
|
|
78
|
+
return () => {};
|
|
79
|
+
}
|
|
80
|
+
}, [
|
|
81
|
+
instanceId,
|
|
82
|
+
parentId,
|
|
83
|
+
parentRegister
|
|
84
|
+
]);
|
|
85
|
+
useEffect(() => {
|
|
86
|
+
if (props.renderOrder === void 0 && markerRef.current) {
|
|
87
|
+
const parent = markerRef.current.parentElement;
|
|
88
|
+
if (parent) {
|
|
89
|
+
const siblings = parent.querySelectorAll(":scope > [data-shader-id]");
|
|
90
|
+
const position = Array.from(siblings).indexOf(markerRef.current);
|
|
91
|
+
if (position >= 0) {
|
|
92
|
+
detectedOrderRef.current = position;
|
|
93
|
+
parentMetadataUpdate(instanceId, { renderOrder: position });
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}, []);
|
|
98
|
+
const prevPropsRef = useRef({});
|
|
99
|
+
useEffect(() => {
|
|
100
|
+
if (!uniformsRef.current) return;
|
|
101
|
+
try {
|
|
102
|
+
Object.entries(uniformsRef.current).forEach(([propName, uniformData]) => {
|
|
103
|
+
if (!uniformData || typeof uniformData !== "object") return;
|
|
104
|
+
const { uniform, transform } = uniformData;
|
|
105
|
+
if (uniform?.value !== void 0 && propName in effectiveProps) {
|
|
106
|
+
const newValue = effectiveProps[propName];
|
|
107
|
+
if (newValue !== prevPropsRef.current[propName]) {
|
|
108
|
+
parentUniformUpdate(instanceId, propName, newValue);
|
|
109
|
+
prevPropsRef.current[propName] = newValue;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
} catch (error) {
|
|
114
|
+
console.error("Error updating uniforms:", error);
|
|
115
|
+
}
|
|
116
|
+
}, [
|
|
117
|
+
effectiveProps,
|
|
118
|
+
instanceId,
|
|
119
|
+
parentUniformUpdate
|
|
120
|
+
]);
|
|
121
|
+
useEffect(() => {
|
|
122
|
+
try {
|
|
123
|
+
parentMetadataUpdate(instanceId, {
|
|
124
|
+
blendMode: props.blendMode || "normal",
|
|
125
|
+
opacity: props.opacity,
|
|
126
|
+
visible: props.visible === false ? false : true,
|
|
127
|
+
id: props.id,
|
|
128
|
+
mask: props.maskSource ? {
|
|
129
|
+
source: props.maskSource,
|
|
130
|
+
type: props.maskType || "alpha"
|
|
131
|
+
} : void 0,
|
|
132
|
+
renderOrder: props.renderOrder ?? detectedOrderRef.current,
|
|
133
|
+
transform: effectiveTransform
|
|
134
|
+
});
|
|
135
|
+
} catch (error) {
|
|
136
|
+
console.error("Error updating metadata:", error);
|
|
137
|
+
}
|
|
138
|
+
}, [
|
|
139
|
+
props.blendMode,
|
|
140
|
+
props.opacity,
|
|
141
|
+
props.visible,
|
|
142
|
+
props.maskSource,
|
|
143
|
+
props.maskType,
|
|
144
|
+
props.renderOrder,
|
|
145
|
+
props.id,
|
|
146
|
+
effectiveTransform,
|
|
147
|
+
instanceId,
|
|
148
|
+
parentMetadataUpdate
|
|
149
|
+
]);
|
|
150
|
+
if (props.ref && typeof props.ref === "function") try {
|
|
151
|
+
props.ref(null);
|
|
152
|
+
} catch (e) {}
|
|
153
|
+
return /* @__PURE__ */ jsx(ShaderContext.Provider, {
|
|
154
|
+
value: childContextValue,
|
|
155
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
156
|
+
ref: markerRef,
|
|
157
|
+
style: MARKER_STYLE,
|
|
158
|
+
"data-shader-id": instanceId,
|
|
159
|
+
children: props.children
|
|
160
|
+
})
|
|
161
|
+
});
|
|
162
|
+
};
|
|
163
|
+
var StudioBackground_default = ShaderComponent;
|
|
164
|
+
export { StudioBackground_default as default };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BlendMode, TransformConfig } from '../../core';
|
|
3
|
+
import { ComponentProps } from '../../core/shaders/ConcentricSpin';
|
|
4
|
+
|
|
5
|
+
export type { ComponentProps };
|
|
6
|
+
/**
|
|
7
|
+
* Base props that all shader components have
|
|
8
|
+
*/
|
|
9
|
+
interface BaseShaderProps {
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
blendMode?: BlendMode;
|
|
12
|
+
opacity?: number;
|
|
13
|
+
visible?: boolean;
|
|
14
|
+
id?: string;
|
|
15
|
+
maskSource?: string;
|
|
16
|
+
maskType?: string;
|
|
17
|
+
renderOrder?: number;
|
|
18
|
+
transform?: Partial<TransformConfig>;
|
|
19
|
+
ref?: React.Ref<any>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Component-specific props that merge base props with shader-specific props
|
|
23
|
+
* Note: ComponentProps are made optional since they have defaults from the shader definition
|
|
24
|
+
*/
|
|
25
|
+
type ShaderComponentProps = BaseShaderProps & Partial<ComponentProps>;
|
|
26
|
+
/**
|
|
27
|
+
* The main React wrapper component for Shader shader nodes
|
|
28
|
+
*/
|
|
29
|
+
export declare const ShaderComponent: React.FC<ShaderComponentProps>;
|
|
30
|
+
export default ShaderComponent;
|
|
31
|
+
//# sourceMappingURL=ConcentricSpin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConcentricSpin.d.ts","sourceRoot":"","sources":["../../src/components/ConcentricSpin.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;AACtE,OAAO,EAGH,KAAK,SAAS,EAId,KAAK,eAAe,EACvB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAGvF,YAAY,EAAE,cAAc,EAAE,CAAC;AAI/B;;GAEG;AACH,UAAU,eAAe;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IACrC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;CACxB;AAED;;;GAGG;AACH,KAAK,oBAAoB,GAAG,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAwDtE;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAgL1D,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BlendMode, TransformConfig } from '../../core';
|
|
3
|
+
import { ComponentProps } from '../../core/shaders/StudioBackground';
|
|
4
|
+
|
|
5
|
+
export type { ComponentProps };
|
|
6
|
+
/**
|
|
7
|
+
* Base props that all shader components have
|
|
8
|
+
*/
|
|
9
|
+
interface BaseShaderProps {
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
blendMode?: BlendMode;
|
|
12
|
+
opacity?: number;
|
|
13
|
+
visible?: boolean;
|
|
14
|
+
id?: string;
|
|
15
|
+
maskSource?: string;
|
|
16
|
+
maskType?: string;
|
|
17
|
+
renderOrder?: number;
|
|
18
|
+
transform?: Partial<TransformConfig>;
|
|
19
|
+
ref?: React.Ref<any>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Component-specific props that merge base props with shader-specific props
|
|
23
|
+
* Note: ComponentProps are made optional since they have defaults from the shader definition
|
|
24
|
+
*/
|
|
25
|
+
type ShaderComponentProps = BaseShaderProps & Partial<ComponentProps>;
|
|
26
|
+
/**
|
|
27
|
+
* The main React wrapper component for Shader shader nodes
|
|
28
|
+
*/
|
|
29
|
+
export declare const ShaderComponent: React.FC<ShaderComponentProps>;
|
|
30
|
+
export default ShaderComponent;
|
|
31
|
+
//# sourceMappingURL=StudioBackground.d.ts.map
|