shaders 2.3.51 → 2.3.53
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/Aurora-BDnL1XdK.js +233 -0
- package/dist/core/CursorRipples-Dn_rE8nA.js +177 -0
- package/dist/core/registry.js +144 -140
- package/dist/core/shaderRegistry.d.ts.map +1 -1
- package/dist/core/shaders/Aurora/index.d.ts +99 -0
- package/dist/core/shaders/Aurora/index.d.ts.map +1 -0
- package/dist/core/shaders/Aurora/index.js +5 -0
- package/dist/core/shaders/Beam/index.js +1 -1
- package/dist/core/shaders/Blob/index.js +1 -1
- package/dist/core/shaders/Blur/index.js +1 -1
- package/dist/core/shaders/BrightnessContrast/index.js +1 -1
- package/dist/core/shaders/Bulge/index.js +1 -1
- package/dist/core/shaders/CRTScreen/index.js +1 -1
- package/dist/core/shaders/ChannelBlur/index.js +1 -1
- package/dist/core/shaders/Checkerboard/index.js +1 -1
- package/dist/core/shaders/ChromaFlow/index.js +1 -1
- package/dist/core/shaders/ChromaticAberration/index.js +1 -1
- package/dist/core/shaders/Circle/index.js +1 -1
- package/dist/core/shaders/ConcentricSpin/index.js +1 -1
- package/dist/core/shaders/ContourLines/index.js +1 -1
- package/dist/core/shaders/CursorRipples/index.d.ts +42 -0
- package/dist/core/shaders/CursorRipples/index.d.ts.map +1 -0
- package/dist/core/shaders/CursorRipples/index.js +4 -0
- 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.js +1 -1
- package/dist/core/shaders/Swirl/index.js +1 -1
- package/dist/core/shaders/TiltShift/index.js +1 -1
- package/dist/core/shaders/Tint/index.js +1 -1
- package/dist/core/shaders/Tritone/index.js +1 -1
- package/dist/core/shaders/Twirl/index.js +1 -1
- package/dist/core/shaders/Vibrance/index.js +1 -1
- package/dist/core/shaders/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/Aurora.js +164 -0
- package/dist/react/CursorRipples.js +164 -0
- package/dist/react/components/Aurora.d.ts +31 -0
- package/dist/react/components/Aurora.d.ts.map +1 -0
- package/dist/react/components/CursorRipples.d.ts +31 -0
- package/dist/react/components/CursorRipples.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 +31 -0
- package/dist/registry.js +499 -0
- package/dist/solid/components/Aurora.d.ts +28 -0
- package/dist/solid/components/Aurora.d.ts.map +1 -0
- package/dist/solid/components/Aurora.js +168 -0
- package/dist/solid/components/CursorRipples.d.ts +28 -0
- package/dist/solid/components/CursorRipples.d.ts.map +1 -0
- package/dist/solid/components/CursorRipples.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 +146 -142
- package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/solid/utils/generatePresetCode.js +31 -0
- package/dist/svelte/components/Aurora.svelte.d.ts +19 -0
- package/dist/svelte/components/CursorRipples.svelte.d.ts +19 -0
- package/dist/svelte/{generatePresetCode-TDa1I3YR.js → generatePresetCode-DN-iUvZN.js} +31 -0
- package/dist/svelte/index.d.ts +2 -0
- package/dist/svelte/index.js +545 -285
- package/dist/svelte/utils/generatePresetCode.js +1 -1
- package/dist/vue/Aurora.js +3 -0
- package/dist/vue/Aurora.vue_vue_type_script_setup_true_lang.js +156 -0
- package/dist/vue/CursorRipples.js +3 -0
- package/dist/vue/CursorRipples.vue_vue_type_script_setup_true_lang.js +148 -0
- package/dist/vue/components/Aurora.vue.d.ts +54 -0
- package/dist/vue/components/Aurora.vue.d.ts.map +1 -0
- package/dist/vue/components/CursorRipples.vue.d.ts +54 -0
- package/dist/vue/components/CursorRipples.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 +31 -0
- package/package.json +17 -1
- /package/dist/core/{Beam-BBbjVQDP.js → Beam-CyRoRQEj.js} +0 -0
- /package/dist/core/{Blob-DeD9KRj-.js → Blob-BgN4aVOR.js} +0 -0
- /package/dist/core/{Blur-Brqgsz7y.js → Blur-NNElJwzj.js} +0 -0
- /package/dist/core/{BrightnessContrast-DSePKfxC.js → BrightnessContrast-FdkKMaQQ.js} +0 -0
- /package/dist/core/{Bulge-D2OwcL23.js → Bulge-Ca9hW7y4.js} +0 -0
- /package/dist/core/{CRTScreen-D6qh6DnD.js → CRTScreen-BHKDJ9_0.js} +0 -0
- /package/dist/core/{ChannelBlur-BKo9uGaB.js → ChannelBlur-A0r5Gx_y.js} +0 -0
- /package/dist/core/{Checkerboard-ChbG4nPC.js → Checkerboard-XJh_tV6B.js} +0 -0
- /package/dist/core/{ChromaFlow-DyqU1igx.js → ChromaFlow-Cc647Knw.js} +0 -0
- /package/dist/core/{ChromaticAberration-9nlFN2h0.js → ChromaticAberration-CYvju_kr.js} +0 -0
- /package/dist/core/{Circle-DSQ_9vPx.js → Circle-C9DYXDnD.js} +0 -0
- /package/dist/core/{ConcentricSpin-CLTGx_sN.js → ConcentricSpin-CnuAW_6I.js} +0 -0
- /package/dist/core/{ContourLines-Dc5J7iw5.js → ContourLines-DJ0R9q6Y.js} +0 -0
- /package/dist/core/{CursorTrail-COnyRZH9.js → CursorTrail-DD4YxAqo.js} +0 -0
- /package/dist/core/{DiffuseBlur-DcV8M7hN.js → DiffuseBlur-GlibDd8O.js} +0 -0
- /package/dist/core/{Dither-C-w0ugGX.js → Dither-BOWyA2dp.js} +0 -0
- /package/dist/core/{DotGrid-wXnfcjrM.js → DotGrid-Cm-wz6WU.js} +0 -0
- /package/dist/core/{Duotone-B8dYgrFR.js → Duotone-C8mRw_1e.js} +0 -0
- /package/dist/core/{FilmGrain-D_6m7GJ4.js → FilmGrain-BzD2zoUK.js} +0 -0
- /package/dist/core/{FloatingParticles-YuuXeICf.js → FloatingParticles-GkVY1twT.js} +0 -0
- /package/dist/core/{FlowField-Dx2eqOcU.js → FlowField-S_LXjhaN.js} +0 -0
- /package/dist/core/{GlassTiles-hnt2pUQN.js → GlassTiles--hbefQlc.js} +0 -0
- /package/dist/core/{Glitch-DfPXeSlL.js → Glitch-lbgQYebN.js} +0 -0
- /package/dist/core/{Glow-CQv_dRPj.js → Glow-DM9zbhbr.js} +0 -0
- /package/dist/core/{Godrays-B_-HliEA.js → Godrays-DVo1ikUR.js} +0 -0
- /package/dist/core/{Grayscale-DRFXhxr4.js → Grayscale-CRYK8foe.js} +0 -0
- /package/dist/core/{Grid-DKSUwEIe.js → Grid-BmYSb6Ur.js} +0 -0
- /package/dist/core/{GridDistortion-DahXljLX.js → GridDistortion-PNU8pi2I.js} +0 -0
- /package/dist/core/{Group-r9gMBd5y.js → Group-D-QMn-Co.js} +0 -0
- /package/dist/core/{Halftone-ZVjwkjaQ.js → Halftone-BlY2LuT8.js} +0 -0
- /package/dist/core/{HueShift-gZlNBwNE.js → HueShift-p4t6HfqE.js} +0 -0
- /package/dist/core/{ImageTexture-DuXMku_O.js → ImageTexture-BAOtuVAy.js} +0 -0
- /package/dist/core/{Invert-gUjZNHF3.js → Invert-oYct5uwC.js} +0 -0
- /package/dist/core/{Kaleidoscope-COKZ0BDb.js → Kaleidoscope-BXKsOJl2.js} +0 -0
- /package/dist/core/{LensFlare-D6jy4M7G.js → LensFlare-BWl8PWjv.js} +0 -0
- /package/dist/core/{LinearBlur-CArDQIhs.js → LinearBlur-gV1sIMuQ.js} +0 -0
- /package/dist/core/{LinearGradient-BkB_3gVV.js → LinearGradient-C5kz9RSs.js} +0 -0
- /package/dist/core/{Liquify-BrIB9ajS.js → Liquify-CtUvuV0S.js} +0 -0
- /package/dist/core/{Mirror-BRPYfVAr.js → Mirror-C3Bn9m7T.js} +0 -0
- /package/dist/core/{Perspective-CglPLWTZ.js → Perspective-NsMXVWAS.js} +0 -0
- /package/dist/core/{Pixelate-CwnuDc5L.js → Pixelate-C-LbtIjf.js} +0 -0
- /package/dist/core/{Plasma-CuW-GOI_.js → Plasma-Dr516u2H.js} +0 -0
- /package/dist/core/{PolarCoordinates-9AFXKnSC.js → PolarCoordinates-HVxz9oX-.js} +0 -0
- /package/dist/core/{Posterize-DU2yrydV.js → Posterize-DbPe3f5d.js} +0 -0
- /package/dist/core/{ProgressiveBlur-BXv2mob_.js → ProgressiveBlur-Cf2pKf8U.js} +0 -0
- /package/dist/core/{RadialGradient-Dd21Be-_.js → RadialGradient-Bel2cjwV.js} +0 -0
- /package/dist/core/{RectangularCoordinates-DAOGnX2p.js → RectangularCoordinates-BfeH7Mp6.js} +0 -0
- /package/dist/core/{Ripples-Nk5is8WX.js → Ripples-DBqbjqb_.js} +0 -0
- /package/dist/core/{Saturation-KoiVB92Y.js → Saturation-4L5KnzYg.js} +0 -0
- /package/dist/core/{Sharpness-CK-zaDVc.js → Sharpness-C5h9h3NY.js} +0 -0
- /package/dist/core/{Shatter-EEzkIXGb.js → Shatter-BDTHZrbz.js} +0 -0
- /package/dist/core/{SimplexNoise-DKov4Yho.js → SimplexNoise-DU-QPbwp.js} +0 -0
- /package/dist/core/{SineWave-Cy0wWKUU.js → SineWave-CsoVJf9C.js} +0 -0
- /package/dist/core/{SolidColor-P4OKglCC.js → SolidColor-BOK2t0JT.js} +0 -0
- /package/dist/core/{Spherize-BLEvqakM.js → Spherize-BxUTtFAg.js} +0 -0
- /package/dist/core/{Spiral-DXuKs26n.js → Spiral-DVURsiiQ.js} +0 -0
- /package/dist/core/{Strands-DsdASoV4.js → Strands-C2l4JaUt.js} +0 -0
- /package/dist/core/{Stretch-By8f2wmJ.js → Stretch-uSJDtqi2.js} +0 -0
- /package/dist/core/{Stripes-D8HSlP1H.js → Stripes-IFl3of9w.js} +0 -0
- /package/dist/core/{StudioBackground-CFjfBnWp.js → StudioBackground-DbBGv5fk.js} +0 -0
- /package/dist/core/{Swirl-BIFGxHL0.js → Swirl-C16tmwEg.js} +0 -0
- /package/dist/core/{TiltShift-CLMFkzBs.js → TiltShift-C5t3YMVT.js} +0 -0
- /package/dist/core/{Tint-NQjiXLGu.js → Tint-VTnDmiKF.js} +0 -0
- /package/dist/core/{Tritone-67eoddBF.js → Tritone-v6z_O967.js} +0 -0
- /package/dist/core/{Twirl-ZaYAMqmq.js → Twirl-BWpsT8iI.js} +0 -0
- /package/dist/core/{Vibrance-DbSUuK_4.js → Vibrance-C_DSuzwf.js} +0 -0
- /package/dist/core/{VideoTexture-lHzoN3G9.js → VideoTexture-OrpXuUNQ.js} +0 -0
- /package/dist/core/{WaveDistortion-CB6xTndT.js → WaveDistortion-BAxVvc8B.js} +0 -0
- /package/dist/core/{WebcamTexture-BJUvpMmV.js → WebcamTexture-D2CHXtkO.js} +0 -0
- /package/dist/core/{ZoomBlur-BCClC8fw.js → ZoomBlur-D--sEenn.js} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as componentDefinition, t as Glow_default } from "../../Glow-
|
|
1
|
+
import { n as componentDefinition, t as Glow_default } from "../../Glow-DM9zbhbr.js";
|
|
2
2
|
export { componentDefinition, Glow_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 Godrays_default } from "../../Godrays-
|
|
3
|
+
import { n as componentDefinition, t as Godrays_default } from "../../Godrays-DVo1ikUR.js";
|
|
4
4
|
export { componentDefinition, Godrays_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as componentDefinition, t as Grayscale_default } from "../../Grayscale-
|
|
1
|
+
import { n as componentDefinition, t as Grayscale_default } from "../../Grayscale-CRYK8foe.js";
|
|
2
2
|
export { componentDefinition, Grayscale_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../../transformations-CC_c-QAT.js";
|
|
2
|
-
import { n as componentDefinition, t as Grid_default } from "../../Grid-
|
|
2
|
+
import { n as componentDefinition, t as Grid_default } from "../../Grid-BmYSb6Ur.js";
|
|
3
3
|
export { componentDefinition, Grid_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 GridDistortion_default } from "../../GridDistortion-
|
|
3
|
+
import { n as componentDefinition, t as GridDistortion_default } from "../../GridDistortion-PNU8pi2I.js";
|
|
4
4
|
export { componentDefinition, GridDistortion_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as componentDefinition, t as Group_default } from "../../Group-
|
|
1
|
+
import { n as componentDefinition, t as Group_default } from "../../Group-D-QMn-Co.js";
|
|
2
2
|
export { componentDefinition, Group_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../../transformations-CC_c-QAT.js";
|
|
2
|
-
import { n as componentDefinition, t as Halftone_default } from "../../Halftone-
|
|
2
|
+
import { n as componentDefinition, t as Halftone_default } from "../../Halftone-BlY2LuT8.js";
|
|
3
3
|
export { componentDefinition, Halftone_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as componentDefinition, t as HueShift_default } from "../../HueShift-
|
|
1
|
+
import { n as componentDefinition, t as HueShift_default } from "../../HueShift-p4t6HfqE.js";
|
|
2
2
|
export { componentDefinition, HueShift_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as componentDefinition, t as ImageTexture_default } from "../../ImageTexture-
|
|
1
|
+
import { n as componentDefinition, t as ImageTexture_default } from "../../ImageTexture-BAOtuVAy.js";
|
|
2
2
|
export { componentDefinition, ImageTexture_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as componentDefinition, t as Invert_default } from "../../Invert-
|
|
1
|
+
import { n as componentDefinition, t as Invert_default } from "../../Invert-oYct5uwC.js";
|
|
2
2
|
export { componentDefinition, Invert_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 Kaleidoscope_default } from "../../Kaleidoscope-
|
|
3
|
+
import { n as componentDefinition, t as Kaleidoscope_default } from "../../Kaleidoscope-BXKsOJl2.js";
|
|
4
4
|
export { componentDefinition, Kaleidoscope_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 LensFlare_default } from "../../LensFlare-
|
|
3
|
+
import { n as componentDefinition, t as LensFlare_default } from "../../LensFlare-BWl8PWjv.js";
|
|
4
4
|
export { componentDefinition, LensFlare_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../../transformations-CC_c-QAT.js";
|
|
2
|
-
import { n as componentDefinition, t as LinearBlur_default } from "../../LinearBlur-
|
|
2
|
+
import { n as componentDefinition, t as LinearBlur_default } from "../../LinearBlur-gV1sIMuQ.js";
|
|
3
3
|
export { componentDefinition, LinearBlur_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 LinearGradient_default } from "../../LinearGradient-
|
|
3
|
+
import { n as componentDefinition, t as LinearGradient_default } from "../../LinearGradient-C5kz9RSs.js";
|
|
4
4
|
export { componentDefinition, LinearGradient_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 Liquify_default } from "../../Liquify-
|
|
3
|
+
import { n as componentDefinition, t as Liquify_default } from "../../Liquify-CtUvuV0S.js";
|
|
4
4
|
export { componentDefinition, Liquify_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 Mirror_default } from "../../Mirror-
|
|
3
|
+
import { n as componentDefinition, t as Mirror_default } from "../../Mirror-C3Bn9m7T.js";
|
|
4
4
|
export { componentDefinition, Mirror_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 Perspective_default } from "../../Perspective-
|
|
3
|
+
import { n as componentDefinition, t as Perspective_default } from "../../Perspective-NsMXVWAS.js";
|
|
4
4
|
export { componentDefinition, Perspective_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as componentDefinition, t as Pixelate_default } from "../../Pixelate-
|
|
1
|
+
import { n as componentDefinition, t as Pixelate_default } from "../../Pixelate-C-LbtIjf.js";
|
|
2
2
|
export { componentDefinition, Pixelate_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 Plasma_default } from "../../Plasma-
|
|
4
|
+
import { n as componentDefinition, t as Plasma_default } from "../../Plasma-Dr516u2H.js";
|
|
5
5
|
export { componentDefinition, Plasma_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 PolarCoordinates_default } from "../../PolarCoordinates-
|
|
3
|
+
import { n as componentDefinition, t as PolarCoordinates_default } from "../../PolarCoordinates-HVxz9oX-.js";
|
|
4
4
|
export { componentDefinition, PolarCoordinates_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as componentDefinition, t as Posterize_default } from "../../Posterize-
|
|
1
|
+
import { n as componentDefinition, t as Posterize_default } from "../../Posterize-DbPe3f5d.js";
|
|
2
2
|
export { componentDefinition, Posterize_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../../transformations-CC_c-QAT.js";
|
|
2
|
-
import { n as componentDefinition, t as ProgressiveBlur_default } from "../../ProgressiveBlur-
|
|
2
|
+
import { n as componentDefinition, t as ProgressiveBlur_default } from "../../ProgressiveBlur-Cf2pKf8U.js";
|
|
3
3
|
export { componentDefinition, ProgressiveBlur_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 RadialGradient_default } from "../../RadialGradient-
|
|
3
|
+
import { n as componentDefinition, t as RadialGradient_default } from "../../RadialGradient-Bel2cjwV.js";
|
|
4
4
|
export { componentDefinition, RadialGradient_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 RectangularCoordinates_default } from "../../RectangularCoordinates-
|
|
3
|
+
import { n as componentDefinition, t as RectangularCoordinates_default } from "../../RectangularCoordinates-BfeH7Mp6.js";
|
|
4
4
|
export { componentDefinition, RectangularCoordinates_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 Ripples_default } from "../../Ripples-
|
|
4
|
+
import { n as componentDefinition, t as Ripples_default } from "../../Ripples-DBqbjqb_.js";
|
|
5
5
|
export { componentDefinition, Ripples_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as componentDefinition, t as Saturation_default } from "../../Saturation-
|
|
1
|
+
import { n as componentDefinition, t as Saturation_default } from "../../Saturation-4L5KnzYg.js";
|
|
2
2
|
export { componentDefinition, Saturation_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as componentDefinition, t as Sharpness_default } from "../../Sharpness-
|
|
1
|
+
import { n as componentDefinition, t as Sharpness_default } from "../../Sharpness-C5h9h3NY.js";
|
|
2
2
|
export { componentDefinition, Sharpness_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 Shatter_default } from "../../Shatter-
|
|
3
|
+
import { n as componentDefinition, t as Shatter_default } from "../../Shatter-BDTHZrbz.js";
|
|
4
4
|
export { componentDefinition, Shatter_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 SimplexNoise_default } from "../../SimplexNoise-
|
|
4
|
+
import { n as componentDefinition, t as SimplexNoise_default } from "../../SimplexNoise-DU-QPbwp.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-CsoVJf9C.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-BOK2t0JT.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-BxUTtFAg.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-DVURsiiQ.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-C2l4JaUt.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-uSJDtqi2.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-IFl3of9w.js";
|
|
5
5
|
export { componentDefinition, Stripes_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 StudioBackground_default } from "../../StudioBackground-
|
|
3
|
+
import { n as componentDefinition, t as StudioBackground_default } from "../../StudioBackground-DbBGv5fk.js";
|
|
4
4
|
export { componentDefinition, StudioBackground_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 Swirl_default } from "../../Swirl-
|
|
4
|
+
import { n as componentDefinition, t as Swirl_default } from "../../Swirl-C16tmwEg.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-C5t3YMVT.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-VTnDmiKF.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-v6z_O967.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-BWpsT8iI.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-C_DSuzwf.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-OrpXuUNQ.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-BAxVvc8B.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-D2CHXtkO.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-D--sEenn.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/Aurora/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 Aurora_default = ShaderComponent;
|
|
164
|
+
export { Aurora_default as default };
|