shaders 4.0.2 → 4.0.4
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/cli.js +2 -2
- package/dist/core/AngularBlur-CI9YxDuh.js +129 -0
- package/dist/core/{Arc-D-WnjM7T.js → Arc-DGqWR3Bd.js} +1 -1
- package/dist/core/{Ascii-BGPIwMc3.js → Ascii-CPdyy-Ce.js} +1 -1
- package/dist/core/{Aurora-DqJBPdMQ.js → Aurora-DY2TB0JW.js} +1 -1
- package/dist/core/{BarShift-BcCOweUh.js → BarShift-CgnJnCB2.js} +1 -1
- package/dist/core/{BarnDoors-B9B-AmCV.js → BarnDoors-BrftoIvA.js} +1 -1
- package/dist/core/{Beam-QG_9OS8I.js → Beam-CChBswEo.js} +1 -1
- package/dist/core/{Bend-Cy9VAowL.js → Bend-BHYjcxYe.js} +1 -1
- package/dist/core/{Blob-C3txJeW0.js → Blob-BB6VUuE3.js} +1 -1
- package/dist/core/{BlockDissolve-C1SFUys7.js → BlockDissolve-BxVJeBmh.js} +1 -1
- package/dist/core/{BlockNoise-Cm3y8hce.js → BlockNoise-BRGG5VGx.js} +2 -2
- package/dist/core/{BlueNoise-BCLObOMm.js → BlueNoise-DS6NWeuL.js} +2 -2
- package/dist/core/{Blur-Dg29SnXd.js → Blur-B6uikNMR.js} +1 -1
- package/dist/core/{Boids-rsGsPN5h.js → Boids-Bt3Vqqmj.js} +1 -1
- package/dist/core/{BokehBlur-rFSFEnb0.js → BokehBlur-CPRNbaGM.js} +15 -2
- package/dist/core/{BrickPattern-DqN6JKEN.js → BrickPattern-D8lK5t7i.js} +1 -1
- package/dist/core/{BrightnessContrast-J9fCSBiC.js → BrightnessContrast-A-MXcsJ3.js} +1 -1
- package/dist/core/{BrushedMetal-74wSZKjG.js → BrushedMetal-CwBg_OrC.js} +1 -1
- package/dist/core/{Bulge-BIk0oq8j.js → Bulge-D2DRILIE.js} +1 -1
- package/dist/core/{CRTScreen-hEH-JNRd.js → CRTScreen-DPS9lxJ2.js} +1 -1
- package/dist/core/{CarbonFiber-CZdUDvRU.js → CarbonFiber-qcPJhSIR.js} +1 -1
- package/dist/core/{Chalkboard-CClJHqvs.js → Chalkboard-Bq0qg-b5.js} +1 -1
- package/dist/core/{ChannelBlur-BEuEwQOC.js → ChannelBlur-Bm_ox1-N.js} +1 -1
- package/dist/core/{CheckerWipe-KuAWj2qg.js → CheckerWipe-B0rXlaTa.js} +1 -1
- package/dist/core/{Checkerboard-Rq9ze1W3.js → Checkerboard-DTBwkFnn.js} +1 -1
- package/dist/core/{Chevron-C1j6X2Ye.js → Chevron-D0Ocr6Wt.js} +1 -1
- package/dist/core/{ChromaFlow-BgsCUYIl.js → ChromaFlow-CD0wG8VV.js} +1 -1
- package/dist/core/{ChromaticAberration-2_4tjQ0u.js → ChromaticAberration-DZsNUXIc.js} +1 -1
- package/dist/core/{Chrome-Be3z6C5i.js → Chrome-DdeXQM4v.js} +1 -1
- package/dist/core/{Circle-e_qQI3tU.js → Circle-CpaQmHOS.js} +1 -1
- package/dist/core/{ColorWheel-s5ep1H7d.js → ColorWheel-Ciz39YtU.js} +1 -1
- package/dist/core/{CompressionArtifacts-OE9U9Qrq.js → CompressionArtifacts-BrRmzBmd.js} +1 -1
- package/dist/core/{ConcentricSpin-CLE_5yCJ.js → ConcentricSpin-kSb7VlpT.js} +1 -1
- package/dist/core/{ConicGradient-Cji2SgVO.js → ConicGradient-BUGGpeBn.js} +1 -1
- package/dist/core/{ContourLines-wpPK00cF.js → ContourLines-CAkGuO_l.js} +1 -1
- package/dist/core/{CornerPin-gYU0Uf2m.js → CornerPin-sTeTdO54.js} +1 -1
- package/dist/core/{Crescent-viNc7Unp.js → Crescent-JPQZbAgM.js} +1 -1
- package/dist/core/{Cross-DyQSsw_k.js → Cross-DPxLnAXd.js} +1 -1
- package/dist/core/{Crystal-Vjj8azWg.js → Crystal-BbLoU4xM.js} +1 -1
- package/dist/core/{CurlNoise-C7PHjDht.js → CurlNoise-BrgjFOTL.js} +2 -2
- package/dist/core/{CursorRipples-BzPPNkA3.js → CursorRipples-DIUoRojU.js} +1 -1
- package/dist/core/{CursorTrail-cBj0AuQA.js → CursorTrail-DKHkxUqL.js} +1 -1
- package/dist/core/{DataMosh-5Yr9TyVx.js → DataMosh-BZlgABHW.js} +1 -1
- package/dist/core/{DiamondGradient-DZM7HwF5.js → DiamondGradient-DGGQpuc0.js} +1 -1
- package/dist/core/{DiamondWipe-CqeT7lCt.js → DiamondWipe-D2rUDoG_.js} +1 -1
- package/dist/core/{DiffuseBlur-Y5hSDTZF.js → DiffuseBlur-BXChd2KQ.js} +16 -2
- package/dist/core/{DisplacementMap-FobRx5Ie.js → DisplacementMap-D89sVcBJ.js} +1 -1
- package/dist/core/{Dither-50rqHpt9.js → Dither-VDLOXe9H.js} +1 -1
- package/dist/core/{DotGrid-B6AGLUbR.js → DotGrid-it63myH-.js} +1 -1
- package/dist/core/{DropShadow-CEPpgatB.js → DropShadow-VzD0-Byt.js} +1 -1
- package/dist/core/{Duotone-D76Kp7Pb.js → Duotone-BroCb_su.js} +1 -1
- package/dist/core/{Ellipse-BGod1LeG.js → Ellipse-W8NyZcKM.js} +1 -1
- package/dist/core/{Emboss-DMNFb_ww.js → Emboss-DOgQmAti.js} +1 -1
- package/dist/core/{Engraving-Dj7bCATQ.js → Engraving-BE1m1Bod.js} +1 -1
- package/dist/core/{ErosionNoise-4O68wJQZ.js → ErosionNoise-zHZiriUE.js} +2 -2
- package/dist/core/{Exposure-h-vapOpj.js → Exposure-D4bDba84.js} +1 -1
- package/dist/core/{FallingLines-Dzop_89k.js → FallingLines-DPEUnSeK.js} +1 -1
- package/dist/core/{FilmGrain-Bs8PCfdf.js → FilmGrain-CdyASl8G.js} +1 -1
- package/dist/core/{FilmStock-DBjVo6rL.js → FilmStock-Bg3La848.js} +1 -1
- package/dist/core/{Flip-CfrS4KfZ.js → Flip-BtN-1Tm7.js} +1 -1
- package/dist/core/{FloatingParticles-D1R2tD2J.js → FloatingParticles-BKf0oRZt.js} +1 -1
- package/dist/core/{FlowField-Slirm5AI.js → FlowField-CjsNplw1.js} +1 -1
- package/dist/core/{Flower-Ddlut7QZ.js → Flower-DFRo3Foo.js} +1 -1
- package/dist/core/{FlowingGradient-CwIgTtbj.js → FlowingGradient-Cma6CyNn.js} +1 -1
- package/dist/core/{FlutedGlass-CMMy2GJ5.js → FlutedGlass-D4e-TR_b.js} +1 -1
- package/dist/core/{Fog-DjjUkcTZ.js → Fog-CKLqyJFd.js} +1 -1
- package/dist/core/{Form3D-DQDOHWpC.js → Form3D-DdUVksGn.js} +1 -1
- package/dist/core/{FractalNoise-BjI3IOIj.js → FractalNoise-xT6nfDL8.js} +1 -1
- package/dist/core/{Frost-CK12HnL1.js → Frost-fqtsE0VN.js} +1 -1
- package/dist/core/{GaborNoise-DKEIvvRJ.js → GaborNoise-DQx5Dmdl.js} +2 -2
- package/dist/core/{Glass-CzcOVD5Y.js → Glass-B8B3LKIr.js} +1 -1
- package/dist/core/{GlassTiles-gjhc563g.js → GlassTiles-DOoBsjL2.js} +1 -1
- package/dist/core/{Glitch-C_XAWltC.js → Glitch-CZgWlgKN.js} +1 -1
- package/dist/core/{Glow-CrYCanBI.js → Glow-CcVl6l0_.js} +1 -1
- package/dist/core/{Godrays-BBTMOVLP.js → Godrays-bPYI6IYx.js} +1 -1
- package/dist/core/{Goo-Brhjk8aS.js → Goo-LWpHTOQ9.js} +1 -1
- package/dist/core/{GradientMap-C5325QWw.js → GradientMap-DCGtaGpD.js} +1 -1
- package/dist/core/{Grayscale-dPjs-wvf.js → Grayscale-DKh1spZ5.js} +1 -1
- package/dist/core/{Grid-UjEd3O76.js → Grid-D6WroKOX.js} +1 -1
- package/dist/core/{GridDistortion-vVgYya1U.js → GridDistortion-Biq_fOA1.js} +1 -1
- package/dist/core/{Group-KVdmAi5g.js → Group-BYKXw6yw.js} +1 -1
- package/dist/core/{HTMLInCanvas-CKr2u76R.js → HTMLInCanvas-Cl7fosAr.js} +1 -1
- package/dist/core/{Halftone-pRV3TRUW.js → Halftone-B5ypTuq9.js} +1 -1
- package/dist/core/{Heart-CX7MvvHZ.js → Heart-CSpPJ77t.js} +1 -1
- package/dist/core/{Heatmap-Dn6qyd2e.js → Heatmap-DlFZVct7.js} +1 -1
- package/dist/core/{HexGrid-BIfYhkfV.js → HexGrid-ji4m18iC.js} +1 -1
- package/dist/core/{Hologram-ou27baPQ.js → Hologram-CfYQV4AY.js} +1 -1
- package/dist/core/{Holographic-CiHdBSMg.js → Holographic-eZAfsWGx.js} +1 -1
- package/dist/core/{HueShift-CG7pcXfg.js → HueShift-DRWqpyEk.js} +1 -1
- package/dist/core/{ImageTexture-BiZuU58C.js → ImageTexture-CTL2VXJa.js} +1 -1
- package/dist/core/{InkFlow-D9_L7opB.js → InkFlow-C2eoJ8E_.js} +1 -1
- package/dist/core/{Invert-CHEaiQZO.js → Invert-Cdz7BiuY.js} +1 -1
- package/dist/core/{IrisWipe-x22vOQHm.js → IrisWipe-CMftEbHA.js} +1 -1
- package/dist/core/{Irradiance-7yq2K87_.js → Irradiance-DYOzfcYd.js} +1 -1
- package/dist/core/{IsometricCubes-CkPGWr7M.js → IsometricCubes-Cf17PZKl.js} +1 -1
- package/dist/core/{Kaleidoscope-CEC5m1Ww.js → Kaleidoscope-eV3KxWC_.js} +1 -1
- package/dist/core/{KeyFrames-BMGEZsAZ.js → KeyFrames-BYXhTMvZ.js} +1 -1
- package/dist/core/{LensDistortion-DKo8PiO5.js → LensDistortion-BvHcaPAj.js} +1 -1
- package/dist/core/{LensFlare-DMS-NUtK.js → LensFlare-WftiuGke.js} +1 -1
- package/dist/core/{LightEdge-DxmnCRls.js → LightEdge-pY69-oXa.js} +1 -1
- package/dist/core/{LightLeak-yoEsZtYg.js → LightLeak-BHcmHoPq.js} +1 -1
- package/dist/core/{Line-D17XDUjO.js → Line-Dy4n9kG0.js} +1 -1
- package/dist/core/LinearBlur-BMGYoL9G.js +129 -0
- package/dist/core/{LinearGradient-DfjKG70q.js → LinearGradient-BLD0pXpY.js} +1 -1
- package/dist/core/{LinearWipe-D9CtBg6S.js → LinearWipe-NgkvKYWw.js} +1 -1
- package/dist/core/{LiquidMetal-8EG6DwV6.js → LiquidMetal-jhFloJ2w.js} +1 -1
- package/dist/core/{Liquify-BySXF1OB.js → Liquify-BHy1V26i.js} +1 -1
- package/dist/core/{MagneticFilings-DNESH3Zs.js → MagneticFilings-D4biKXSd.js} +1 -1
- package/dist/core/{Marble-C9WvdxrP.js → Marble-CxZXeCW1.js} +1 -1
- package/dist/core/{MeshGradient-d9--RXOU.js → MeshGradient-BBdSnGNG.js} +1 -1
- package/dist/core/{Mirror-1V2FF2kD.js → Mirror-Dz-2FX2p.js} +1 -1
- package/dist/core/{MultiPointGradient-cRA9ytgL.js → MultiPointGradient-CyBo3Mt7.js} +1 -1
- package/dist/core/{Nebula-BRV-q74y.js → Nebula-3XuPYIo-.js} +1 -1
- package/dist/core/{Neon-4PemK9Rj.js → Neon-CIiz8Go1.js} +1 -1
- package/dist/core/{NoiseDissolve-B7LgD46G.js → NoiseDissolve-BcKmhJWB.js} +1 -1
- package/dist/core/{ObjectTracker-CdzDxhpy.js → ObjectTracker-RiBh2YFe.js} +1 -1
- package/dist/core/{Obsidian-2J1eX9kT.js → Obsidian-CSWNH0g3.js} +1 -1
- package/dist/core/{PagePeel-D-ziraOm.js → PagePeel-DKXXJnW2.js} +1 -1
- package/dist/core/{Paper-BxzCLyzB.js → Paper-BWiPnSdk.js} +1 -1
- package/dist/core/{Parallelogram-D4OflTwn.js → Parallelogram-Bdibf18e.js} +1 -1
- package/dist/core/{ParticleField-tWNicEDO.js → ParticleField-DP2tJXxN.js} +1 -1
- package/dist/core/{ParticleFlow-BiEYFyWR.js → ParticleFlow-BxyJp6kF.js} +1 -1
- package/dist/core/{Particles-B7W4yWgo.js → Particles-CgvGZNOx.js} +1 -1
- package/dist/core/{PerlinNoise-C-irUxp9.js → PerlinNoise-BMkkfzp-.js} +2 -2
- package/dist/core/{Perspective-DlnAW-pe.js → Perspective-DS7zqsdY.js} +1 -1
- package/dist/core/{PixelSort-BBOTYuOE.js → PixelSort-DdGs1Lpj.js} +1 -1
- package/dist/core/{PixelThrow-DCJb9Lxd.js → PixelThrow-FtEE5D8Y.js} +1 -1
- package/dist/core/{Pixelate-CZdwB--K.js → Pixelate-YSpsPOUv.js} +1 -1
- package/dist/core/{Plasma-CTOQJeqy.js → Plasma-BXs3UGgs.js} +1 -1
- package/dist/core/{Plastic-DvyH9x-4.js → Plastic-B8OV6H19.js} +1 -1
- package/dist/core/{PolarCoordinates-XhdDAOD0.js → PolarCoordinates-vfm49iUU.js} +1 -1
- package/dist/core/{Polygon-CLohB-Ly.js → Polygon-fXyaW28S.js} +1 -1
- package/dist/core/{Posterize-BAQfnvmK.js → Posterize-B_zadptA.js} +1 -1
- package/dist/core/{Prism-DJVCVAXX.js → Prism-D3bKRs_2.js} +1 -1
- package/dist/core/{ProgressiveBlur-Dirva1on.js → ProgressiveBlur-CMV_hP7G.js} +31 -2
- package/dist/core/{RadialGradient-DuSKR8Ds.js → RadialGradient-CGGOtyw2.js} +1 -1
- package/dist/core/{RadialWipe-n8tON7x2.js → RadialWipe-Qak8GgIA.js} +1 -1
- package/dist/core/{RandomBars-BYouiIgQ.js → RandomBars-Cug34S8m.js} +1 -1
- package/dist/core/{ReactionDiffusion-CHDd3y2q.js → ReactionDiffusion-B2KSbRPy.js} +1 -1
- package/dist/core/{RectangularCoordinates-CYFfCawa.js → RectangularCoordinates-C4rRfUyf.js} +1 -1
- package/dist/core/{ReflectivePlane-DFTl5U9q.js → ReflectivePlane-CbY9iTWt.js} +1 -1
- package/dist/core/{Repeater-CnbzXuAe.js → Repeater-3YxvbkxY.js} +1 -1
- package/dist/core/{Ring-CGkHVSVd.js → Ring-Zofg3GkM.js} +1 -1
- package/dist/core/{RippleWipe-DLjPzY6u.js → RippleWipe-CpihXaME.js} +1 -1
- package/dist/core/{Ripples-C2tITU62.js → Ripples-BdyGWeeL.js} +1 -1
- package/dist/core/{RoundedRect-sfNTUaCY.js → RoundedRect-BjAUDa5D.js} +1 -1
- package/dist/core/Satin-yYWeplbY.js +372 -0
- package/dist/core/{Saturation-BRkifYWj.js → Saturation-qIjYNU3K.js} +1 -1
- package/dist/core/{Scratches-D87O5C2K.js → Scratches-C6Xr7JRO.js} +2 -2
- package/dist/core/{Sharpness-BGv613Zw.js → Sharpness-0-Tm5xJh.js} +1 -1
- package/dist/core/{Shatter-DuyCFU1f.js → Shatter-BWms5ZCO.js} +1 -1
- package/dist/core/{SimplexNoise-CQJvmqd-.js → SimplexNoise-BASO2QMY.js} +2 -2
- package/dist/core/{SineWave-BfOgSGMP.js → SineWave-DNry_0Lh.js} +1 -1
- package/dist/core/{SliceWipe-CD_D99sl.js → SliceWipe-BM170JUl.js} +1 -1
- package/dist/core/{Smoke-BDQYKRP1.js → Smoke-BHLwUBhz.js} +1 -1
- package/dist/core/{SmokeFill-CPnzQtQv.js → SmokeFill-CPPIQi-V.js} +1 -1
- package/dist/core/{SmokeFlow-BkPMjZq8.js → SmokeFlow-BvNcVjm6.js} +1 -1
- package/dist/core/{Solarize-DSiS32QS.js → Solarize-gkgg0wtw.js} +1 -1
- package/dist/core/{SolidColor-DEKpgy1c.js → SolidColor-Dd1vZDVk.js} +1 -1
- package/dist/core/{Sparkle-BZur6gPW.js → Sparkle-DrXTAu56.js} +1 -1
- package/dist/core/{Spherize-D9Yg4n6O.js → Spherize-CuSUrEgb.js} +1 -1
- package/dist/core/{Spiral-BCacfEpT.js → Spiral-CD2QDECd.js} +1 -1
- package/dist/core/{Star-Dnw1ihk7.js → Star-BumDeOUg.js} +1 -1
- package/dist/core/{Stone-Cje-_vAg.js → Stone-DEC9Bd4P.js} +1 -1
- package/dist/core/{Strands-CFRxS1G_.js → Strands-U8_IPQDU.js} +1 -1
- package/dist/core/{Stretch-DXVhfIqO.js → Stretch-RbG9gHTh.js} +1 -1
- package/dist/core/{Stripes-CCADWwyq.js → Stripes-80ILPa8Q.js} +1 -1
- package/dist/core/{StudioBackground-BlzYNAsu.js → StudioBackground-SFRLc09j.js} +1 -1
- package/dist/core/{SunBurst-CmWbI18r.js → SunBurst-DjNvFBRl.js} +1 -1
- package/dist/core/{Surface3D-Dmh98-0V.js → Surface3D-Bqk4Yeop.js} +1 -1
- package/dist/core/{Swirl-CzI1qSVc.js → Swirl-CnMHiJHz.js} +1 -1
- package/dist/core/{Teardrop-D24uulL0.js → Teardrop-EmqO3Sx3.js} +1 -1
- package/dist/core/{Text-CrZKvBw6.js → Text-BJsHmsCm.js} +1 -1
- package/dist/core/{ThinFilm-D7R2dt1O.js → ThinFilm-D3vXChVM.js} +1 -1
- package/dist/core/{TiltShift-AMMDZBvf.js → TiltShift-Domqy4zc.js} +31 -2
- package/dist/core/{TimeTrail-BCYDP2ep.js → TimeTrail-Do0hbdMs.js} +1 -1
- package/dist/core/{Tint-DHb5wBN5.js → Tint-CqpbM-1T.js} +1 -1
- package/dist/core/{Trapezoid-CL5Fxvq7.js → Trapezoid-BywMSCKO.js} +1 -1
- package/dist/core/{TriangularGrid-Bp-SJS-H.js → TriangularGrid-BB-qGVAE.js} +1 -1
- package/dist/core/{Tritone-C0nx7OdC.js → Tritone-DLT7D5QR.js} +1 -1
- package/dist/core/{Truchet-DCetyDaq.js → Truchet-CJRz81E8.js} +1 -1
- package/dist/core/{Twirl-D_mv9KEi.js → Twirl-DtcfYyaH.js} +1 -1
- package/dist/core/{VHS-Cp9aDjti.js → VHS-CpYqcXq6.js} +1 -1
- package/dist/core/{VenetianBlinds-DUyvaT5w.js → VenetianBlinds-BHtiUoTI.js} +1 -1
- package/dist/core/{Vesica-BpzrTPTA.js → Vesica-CG8204gz.js} +1 -1
- package/dist/core/{Vibrance-DW3J-pvW.js → Vibrance-DtpQpHSp.js} +1 -1
- package/dist/core/{VideoTexture-zoKsSrex.js → VideoTexture-DYm45n8L.js} +1 -1
- package/dist/core/{Vignette-KKbP3qdZ.js → Vignette-DEIm5mc4.js} +1 -1
- package/dist/core/{Voronoi-Bp2-U6lm.js → Voronoi-7nJncKbX.js} +1 -1
- package/dist/core/{Voxels-B3e3LHH5.js → Voxels-k2uzj3MD.js} +1 -1
- package/dist/core/{Water-CoYwvqKx.js → Water-CEVn9O9R.js} +1 -1
- package/dist/core/{Watercolor-DUNjSIN1.js → Watercolor-Cm-kAcSI.js} +1 -1
- package/dist/core/{WaveDistortion-Dp8ws0z1.js → WaveDistortion-DRzsmI4m.js} +1 -1
- package/dist/core/{Waveform-DDBLB6zu.js → Waveform-C8-Mb-ck.js} +1 -1
- package/dist/core/{WaveletNoise-CpBkzfRT.js → WaveletNoise-D-3fuI6R.js} +2 -2
- package/dist/core/{Weave-cWkvSEAy.js → Weave-DqVqtYkP.js} +1 -1
- package/dist/core/{WebcamTexture-D484SXSE.js → WebcamTexture-DPjuo0ZC.js} +1 -1
- package/dist/core/{Wool-C9L7O9fD.js → Wool-DgctZosq.js} +1 -1
- package/dist/core/{WorleyNoise-B5j5lDQZ.js → WorleyNoise-DH4396Rb.js} +1 -1
- package/dist/core/ZoomBlur-yWwweO4r.js +143 -0
- package/dist/core/docs-manifest.json +467 -131
- package/dist/core/gpu/frame.d.ts +14 -7
- package/dist/core/gpu/frame.d.ts.map +1 -1
- package/dist/core/gpu/index.d.ts.map +1 -1
- package/dist/core/gpu/kit/blur.d.ts +47 -6
- package/dist/core/gpu/kit/blur.d.ts.map +1 -1
- package/dist/core/gpu/kit/motionBlur.d.ts +88 -1
- package/dist/core/gpu/kit/motionBlur.d.ts.map +1 -1
- package/dist/core/index.js +211 -209
- package/dist/core/llms.txt +26 -5
- package/dist/core/{noiseColor-D_bPhJ4m.js → noiseColor-B6kUgUln.js} +1 -1
- package/dist/core/presetRenderer.d.ts.map +1 -1
- package/dist/core/registry.js +203 -202
- package/dist/core/shaderRegistry-C-P5WvzF.js +447 -0
- package/dist/core/shaderRegistry.d.ts.map +1 -1
- package/dist/core/shaders/AngularBlur/index.d.ts +36 -0
- package/dist/core/shaders/AngularBlur/index.d.ts.map +1 -1
- package/dist/core/shaders/AngularBlur/index.js +2 -2
- package/dist/core/shaders/Arc/index.js +2 -2
- package/dist/core/shaders/Ascii/index.js +2 -2
- package/dist/core/shaders/Aurora/index.js +2 -2
- package/dist/core/shaders/BarShift/index.js +2 -2
- package/dist/core/shaders/BarnDoors/index.js +2 -2
- package/dist/core/shaders/Beam/index.js +2 -2
- package/dist/core/shaders/Bend/index.js +2 -2
- package/dist/core/shaders/Blob/index.js +2 -2
- package/dist/core/shaders/BlockDissolve/index.js +2 -2
- package/dist/core/shaders/BlockNoise/index.js +3 -3
- package/dist/core/shaders/BlueNoise/index.js +3 -3
- package/dist/core/shaders/Blur/index.js +2 -2
- package/dist/core/shaders/Boids/index.js +2 -2
- package/dist/core/shaders/BokehBlur/index.d.ts +7 -0
- package/dist/core/shaders/BokehBlur/index.d.ts.map +1 -1
- package/dist/core/shaders/BokehBlur/index.js +2 -2
- package/dist/core/shaders/BrickPattern/index.js +2 -2
- package/dist/core/shaders/BrightnessContrast/index.js +2 -2
- package/dist/core/shaders/BrushedMetal/index.js +2 -2
- package/dist/core/shaders/Bulge/index.js +2 -2
- package/dist/core/shaders/CRTScreen/index.js +2 -2
- package/dist/core/shaders/CarbonFiber/index.js +2 -2
- package/dist/core/shaders/Chalkboard/index.js +2 -2
- package/dist/core/shaders/ChannelBlur/index.js +2 -2
- package/dist/core/shaders/CheckerWipe/index.js +2 -2
- package/dist/core/shaders/Checkerboard/index.js +2 -2
- package/dist/core/shaders/Chevron/index.js +2 -2
- package/dist/core/shaders/ChromaFlow/index.js +2 -2
- package/dist/core/shaders/ChromaticAberration/index.js +2 -2
- package/dist/core/shaders/Chrome/index.js +2 -2
- package/dist/core/shaders/Circle/index.js +2 -2
- package/dist/core/shaders/ColorWheel/index.js +2 -2
- package/dist/core/shaders/CompressionArtifacts/index.js +2 -2
- package/dist/core/shaders/ConcentricSpin/index.js +2 -2
- package/dist/core/shaders/ConicGradient/index.js +2 -2
- package/dist/core/shaders/ContourLines/index.js +2 -2
- package/dist/core/shaders/CornerPin/index.js +2 -2
- package/dist/core/shaders/Crescent/index.js +2 -2
- package/dist/core/shaders/Cross/index.js +2 -2
- package/dist/core/shaders/Crystal/index.js +2 -2
- package/dist/core/shaders/CurlNoise/index.js +3 -3
- package/dist/core/shaders/CursorRipples/index.js +2 -2
- package/dist/core/shaders/CursorTrail/index.js +2 -2
- package/dist/core/shaders/DataMosh/index.js +2 -2
- package/dist/core/shaders/DiamondGradient/index.js +2 -2
- package/dist/core/shaders/DiamondWipe/index.js +2 -2
- package/dist/core/shaders/DiffuseBlur/index.d.ts +6 -0
- package/dist/core/shaders/DiffuseBlur/index.d.ts.map +1 -1
- package/dist/core/shaders/DiffuseBlur/index.js +2 -2
- package/dist/core/shaders/DisplacementMap/index.js +2 -2
- package/dist/core/shaders/Dither/index.js +2 -2
- package/dist/core/shaders/DotGrid/index.js +2 -2
- package/dist/core/shaders/DropShadow/index.js +2 -2
- package/dist/core/shaders/Duotone/index.js +2 -2
- package/dist/core/shaders/Ellipse/index.js +2 -2
- package/dist/core/shaders/Emboss/index.js +2 -2
- package/dist/core/shaders/Engraving/index.js +2 -2
- package/dist/core/shaders/ErosionNoise/index.js +3 -3
- package/dist/core/shaders/Exposure/index.js +2 -2
- package/dist/core/shaders/FallingLines/index.js +2 -2
- package/dist/core/shaders/FilmGrain/index.js +2 -2
- package/dist/core/shaders/FilmStock/index.js +2 -2
- package/dist/core/shaders/Flip/index.js +2 -2
- package/dist/core/shaders/FloatingParticles/index.js +2 -2
- package/dist/core/shaders/FlowField/index.js +2 -2
- package/dist/core/shaders/Flower/index.js +2 -2
- package/dist/core/shaders/FlowingGradient/index.js +2 -2
- package/dist/core/shaders/FlutedGlass/index.js +2 -2
- package/dist/core/shaders/Fog/index.js +2 -2
- package/dist/core/shaders/Form3D/index.js +2 -2
- package/dist/core/shaders/FractalNoise/index.js +2 -2
- package/dist/core/shaders/Frost/index.js +2 -2
- package/dist/core/shaders/GaborNoise/index.js +3 -3
- package/dist/core/shaders/Glass/index.js +2 -2
- package/dist/core/shaders/GlassTiles/index.js +2 -2
- package/dist/core/shaders/Glitch/index.js +2 -2
- package/dist/core/shaders/Glow/index.js +2 -2
- package/dist/core/shaders/Godrays/index.js +2 -2
- package/dist/core/shaders/Goo/index.js +2 -2
- package/dist/core/shaders/GradientMap/index.js +2 -2
- package/dist/core/shaders/Grayscale/index.js +2 -2
- package/dist/core/shaders/Grid/index.js +2 -2
- package/dist/core/shaders/GridDistortion/index.js +2 -2
- package/dist/core/shaders/Group/index.js +2 -2
- package/dist/core/shaders/HTMLInCanvas/index.js +2 -2
- package/dist/core/shaders/Halftone/index.js +2 -2
- package/dist/core/shaders/Heart/index.js +2 -2
- package/dist/core/shaders/Heatmap/index.js +2 -2
- package/dist/core/shaders/HexGrid/index.js +2 -2
- package/dist/core/shaders/Hologram/index.js +2 -2
- package/dist/core/shaders/Holographic/index.js +2 -2
- package/dist/core/shaders/HueShift/index.js +2 -2
- package/dist/core/shaders/ImageTexture/index.js +2 -2
- package/dist/core/shaders/InkFlow/index.js +2 -2
- package/dist/core/shaders/Invert/index.js +2 -2
- package/dist/core/shaders/IrisWipe/index.js +2 -2
- package/dist/core/shaders/Irradiance/index.js +2 -2
- package/dist/core/shaders/IsometricCubes/index.js +2 -2
- package/dist/core/shaders/Kaleidoscope/index.js +2 -2
- package/dist/core/shaders/KeyFrames/index.js +2 -2
- package/dist/core/shaders/LensDistortion/index.js +2 -2
- package/dist/core/shaders/LensFlare/index.js +2 -2
- package/dist/core/shaders/LightEdge/index.js +2 -2
- package/dist/core/shaders/LightLeak/index.js +2 -2
- package/dist/core/shaders/Line/index.js +2 -2
- package/dist/core/shaders/LinearBlur/index.d.ts +36 -0
- package/dist/core/shaders/LinearBlur/index.d.ts.map +1 -1
- package/dist/core/shaders/LinearBlur/index.js +2 -2
- package/dist/core/shaders/LinearGradient/index.js +2 -2
- package/dist/core/shaders/LinearWipe/index.js +2 -2
- package/dist/core/shaders/LiquidMetal/index.js +2 -2
- package/dist/core/shaders/Liquify/index.js +2 -2
- package/dist/core/shaders/MagneticFilings/index.js +2 -2
- package/dist/core/shaders/Marble/index.js +2 -2
- package/dist/core/shaders/MeshGradient/index.js +2 -2
- package/dist/core/shaders/Mirror/index.js +2 -2
- package/dist/core/shaders/MultiPointGradient/index.js +2 -2
- package/dist/core/shaders/Nebula/index.js +2 -2
- package/dist/core/shaders/Neon/index.js +2 -2
- package/dist/core/shaders/NoiseDissolve/index.js +2 -2
- package/dist/core/shaders/ObjectTracker/index.js +2 -2
- package/dist/core/shaders/Obsidian/index.js +2 -2
- package/dist/core/shaders/PagePeel/index.js +2 -2
- package/dist/core/shaders/Paper/index.js +2 -2
- package/dist/core/shaders/Parallelogram/index.js +2 -2
- package/dist/core/shaders/ParticleField/index.js +2 -2
- package/dist/core/shaders/ParticleFlow/index.js +2 -2
- package/dist/core/shaders/Particles/index.js +2 -2
- package/dist/core/shaders/PerlinNoise/index.js +3 -3
- package/dist/core/shaders/Perspective/index.js +2 -2
- package/dist/core/shaders/PixelSort/index.js +2 -2
- package/dist/core/shaders/PixelThrow/index.js +2 -2
- package/dist/core/shaders/Pixelate/index.js +2 -2
- package/dist/core/shaders/Plasma/index.js +2 -2
- package/dist/core/shaders/Plastic/index.js +2 -2
- package/dist/core/shaders/PolarCoordinates/index.js +2 -2
- package/dist/core/shaders/Polygon/index.js +2 -2
- package/dist/core/shaders/Posterize/index.js +2 -2
- package/dist/core/shaders/Prism/index.js +2 -2
- package/dist/core/shaders/ProgressiveBlur/index.d.ts +14 -0
- package/dist/core/shaders/ProgressiveBlur/index.d.ts.map +1 -1
- package/dist/core/shaders/ProgressiveBlur/index.js +2 -2
- package/dist/core/shaders/RadialGradient/index.js +2 -2
- package/dist/core/shaders/RadialWipe/index.js +2 -2
- package/dist/core/shaders/RandomBars/index.js +2 -2
- package/dist/core/shaders/ReactionDiffusion/index.js +2 -2
- package/dist/core/shaders/RectangularCoordinates/index.js +2 -2
- package/dist/core/shaders/ReflectivePlane/index.js +2 -2
- package/dist/core/shaders/Repeater/index.js +2 -2
- package/dist/core/shaders/Ring/index.js +2 -2
- package/dist/core/shaders/RippleWipe/index.js +2 -2
- package/dist/core/shaders/Ripples/index.js +2 -2
- package/dist/core/shaders/RoundedRect/index.js +2 -2
- package/dist/core/shaders/Satin/index.d.ts +120 -0
- package/dist/core/shaders/Satin/index.d.ts.map +1 -0
- package/dist/core/shaders/Satin/index.js +5 -0
- package/dist/core/shaders/Saturation/index.js +2 -2
- package/dist/core/shaders/Scratches/index.js +3 -3
- package/dist/core/shaders/Sharpness/index.js +2 -2
- package/dist/core/shaders/Shatter/index.js +2 -2
- package/dist/core/shaders/SimplexNoise/index.js +3 -3
- package/dist/core/shaders/SineWave/index.js +2 -2
- package/dist/core/shaders/SliceWipe/index.js +2 -2
- package/dist/core/shaders/Smoke/index.js +2 -2
- package/dist/core/shaders/SmokeFill/index.js +2 -2
- package/dist/core/shaders/SmokeFlow/index.js +2 -2
- package/dist/core/shaders/Solarize/index.js +2 -2
- package/dist/core/shaders/SolidColor/index.js +2 -2
- package/dist/core/shaders/Sparkle/index.js +2 -2
- package/dist/core/shaders/Spherize/index.js +2 -2
- package/dist/core/shaders/Spiral/index.js +2 -2
- package/dist/core/shaders/Star/index.js +2 -2
- package/dist/core/shaders/Stone/index.js +2 -2
- package/dist/core/shaders/Strands/index.js +2 -2
- package/dist/core/shaders/Stretch/index.js +2 -2
- package/dist/core/shaders/Stripes/index.js +2 -2
- package/dist/core/shaders/StudioBackground/index.js +2 -2
- package/dist/core/shaders/SunBurst/index.js +2 -2
- package/dist/core/shaders/Surface3D/index.js +2 -2
- package/dist/core/shaders/Swirl/index.js +2 -2
- package/dist/core/shaders/Teardrop/index.js +2 -2
- package/dist/core/shaders/Text/index.js +2 -2
- package/dist/core/shaders/ThinFilm/index.js +2 -2
- package/dist/core/shaders/TiltShift/index.d.ts +14 -0
- package/dist/core/shaders/TiltShift/index.d.ts.map +1 -1
- package/dist/core/shaders/TiltShift/index.js +2 -2
- package/dist/core/shaders/TimeTrail/index.js +2 -2
- package/dist/core/shaders/Tint/index.js +2 -2
- package/dist/core/shaders/Trapezoid/index.js +2 -2
- package/dist/core/shaders/TriangularGrid/index.js +2 -2
- package/dist/core/shaders/Tritone/index.js +2 -2
- package/dist/core/shaders/Truchet/index.js +2 -2
- package/dist/core/shaders/Twirl/index.js +2 -2
- package/dist/core/shaders/VHS/index.js +2 -2
- package/dist/core/shaders/VenetianBlinds/index.js +2 -2
- package/dist/core/shaders/Vesica/index.js +2 -2
- package/dist/core/shaders/Vibrance/index.js +2 -2
- package/dist/core/shaders/VideoTexture/index.js +2 -2
- package/dist/core/shaders/Vignette/index.js +2 -2
- package/dist/core/shaders/Voronoi/index.js +2 -2
- package/dist/core/shaders/Voxels/index.js +2 -2
- package/dist/core/shaders/Water/index.js +2 -2
- package/dist/core/shaders/Watercolor/index.js +2 -2
- package/dist/core/shaders/WaveDistortion/index.js +2 -2
- package/dist/core/shaders/Waveform/index.js +2 -2
- package/dist/core/shaders/WaveletNoise/index.js +3 -3
- package/dist/core/shaders/Weave/index.js +2 -2
- package/dist/core/shaders/WebcamTexture/index.js +2 -2
- package/dist/core/shaders/Wool/index.js +2 -2
- package/dist/core/shaders/WorleyNoise/index.js +2 -2
- package/dist/core/shaders/ZoomBlur/index.d.ts +42 -0
- package/dist/core/shaders/ZoomBlur/index.d.ts.map +1 -1
- package/dist/core/shaders/ZoomBlur/index.js +2 -2
- package/dist/core/std/effects/blurs.d.ts +54 -6
- package/dist/core/std/effects/blurs.d.ts.map +1 -1
- package/dist/core/std/index.js +1 -1
- package/dist/core/std/paint/materials.d.ts +48 -2
- package/dist/core/std/paint/materials.d.ts.map +1 -1
- package/dist/core/std/paint/noise.d.ts +120 -0
- package/dist/core/std/paint/noise.d.ts.map +1 -1
- package/dist/core/{std-ClftfWpF.js → std-DcYKWFSQ.js} +4153 -916
- package/dist/js/bundle.js +89 -89
- package/dist/js/createShader.js +1 -1
- package/dist/js/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/js/utils/generatePresetCode.js +55 -7
- package/dist/react/Preview.js +1 -0
- package/dist/react/Satin.js +226 -0
- package/dist/react/Shader.js +1 -1
- package/dist/react/bundle.js +89 -89
- package/dist/react/components/AngularBlur.d.ts +7 -1
- package/dist/react/components/AngularBlur.d.ts.map +1 -1
- package/dist/react/components/DiffuseBlur.d.ts +2 -1
- package/dist/react/components/DiffuseBlur.d.ts.map +1 -1
- package/dist/react/components/LinearBlur.d.ts +7 -1
- package/dist/react/components/LinearBlur.d.ts.map +1 -1
- package/dist/react/components/Satin.d.ts +49 -0
- package/dist/react/components/Satin.d.ts.map +1 -0
- package/dist/react/components/ZoomBlur.d.ts +8 -1
- package/dist/react/components/ZoomBlur.d.ts.map +1 -1
- package/dist/react/engine/Preview.d.ts.map +1 -1
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +2 -1
- package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/react/utils/generatePresetCode.js +55 -7
- package/dist/registry.js +1248 -0
- package/dist/solid/components/AngularBlur.d.ts +7 -1
- package/dist/solid/components/AngularBlur.d.ts.map +1 -1
- package/dist/solid/components/DiffuseBlur.d.ts +2 -1
- package/dist/solid/components/DiffuseBlur.d.ts.map +1 -1
- package/dist/solid/components/LinearBlur.d.ts +7 -1
- package/dist/solid/components/LinearBlur.d.ts.map +1 -1
- package/dist/solid/components/Satin.d.ts +46 -0
- package/dist/solid/components/Satin.d.ts.map +1 -0
- package/dist/solid/components/Satin.js +232 -0
- package/dist/solid/components/ZoomBlur.d.ts +8 -1
- package/dist/solid/components/ZoomBlur.d.ts.map +1 -1
- package/dist/solid/engine/Preview.d.ts.map +1 -1
- package/dist/solid/engine/Preview.js +295 -293
- package/dist/solid/engine/Shader.js +1 -1
- package/dist/solid/index.d.ts +1 -0
- package/dist/solid/index.d.ts.map +1 -1
- package/dist/solid/index.js +114 -112
- package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/solid/utils/generatePresetCode.js +55 -7
- package/dist/svelte/components/AngularBlur.svelte.d.ts +6 -0
- package/dist/svelte/components/DiffuseBlur.svelte.d.ts +1 -0
- package/dist/svelte/components/LinearBlur.svelte.d.ts +6 -0
- package/dist/svelte/components/Satin.svelte.d.ts +36 -0
- package/dist/svelte/components/ZoomBlur.svelte.d.ts +7 -0
- package/dist/svelte/index.d.ts +1 -0
- package/dist/svelte/index.js +2500 -2293
- package/dist/svelte/source/components/AngularBlur.svelte +6 -0
- package/dist/svelte/source/components/DiffuseBlur.svelte +1 -0
- package/dist/svelte/source/components/LinearBlur.svelte +6 -0
- package/dist/svelte/source/components/Satin.svelte +360 -0
- package/dist/svelte/source/components/ZoomBlur.svelte +7 -0
- package/dist/svelte/source/engine/Preview.svelte +2 -0
- package/dist/svelte/source/index.js +1 -0
- package/dist/svelte/utils/generatePresetCode.js +55 -7
- package/dist/vue/AngularBlur.vue_vue_type_script_setup_true_lang.js +6 -0
- package/dist/vue/BokehBlur.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/vue/DiffuseBlur.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/vue/LinearBlur.vue_vue_type_script_setup_true_lang.js +6 -0
- package/dist/vue/Preview.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/vue/ProgressiveBlur.vue_vue_type_script_setup_true_lang.js +3 -1
- package/dist/vue/Satin.js +3 -0
- package/dist/vue/Satin.vue_vue_type_script_setup_true_lang.js +243 -0
- package/dist/vue/Shader.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/vue/TiltShift.vue_vue_type_script_setup_true_lang.js +3 -1
- package/dist/vue/ZoomBlur.vue_vue_type_script_setup_true_lang.js +7 -0
- package/dist/vue/components/AngularBlur.vue.d.ts +6 -0
- package/dist/vue/components/AngularBlur.vue.d.ts.map +1 -1
- package/dist/vue/components/DiffuseBlur.vue.d.ts +1 -0
- package/dist/vue/components/DiffuseBlur.vue.d.ts.map +1 -1
- package/dist/vue/components/LinearBlur.vue.d.ts +6 -0
- package/dist/vue/components/LinearBlur.vue.d.ts.map +1 -1
- package/dist/vue/components/Satin.vue.d.ts +71 -0
- package/dist/vue/components/Satin.vue.d.ts.map +1 -0
- package/dist/vue/components/ZoomBlur.vue.d.ts +7 -0
- package/dist/vue/components/ZoomBlur.vue.d.ts.map +1 -1
- package/dist/vue/index.d.ts +1 -0
- package/dist/vue/index.d.ts.map +1 -1
- package/dist/vue/index.js +2 -1
- package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/vue/utils/generatePresetCode.js +55 -7
- package/package.json +9 -1
- package/dist/core/AngularBlur-BEBs-lRR.js +0 -43
- package/dist/core/LinearBlur-CiyjPTUH.js +0 -43
- package/dist/core/ZoomBlur-bPC1dBu2.js +0 -43
- package/dist/core/shaderRegistry-BaozBFyh.js +0 -445
|
@@ -32,6 +32,12 @@
|
|
|
32
32
|
interface ExtendedComponentProps extends Partial<ComponentProps> {
|
|
33
33
|
intensity?: ComponentProps['intensity'] | PropDriver;
|
|
34
34
|
center?: ComponentProps['center'] | PropDriver;
|
|
35
|
+
dispersion?: ComponentProps['dispersion'] | PropDriver;
|
|
36
|
+
falloff?: ComponentProps['falloff'] | PropDriver;
|
|
37
|
+
focus?: ComponentProps['focus'] | PropDriver;
|
|
38
|
+
bias?: ComponentProps['bias'] | PropDriver;
|
|
39
|
+
highlights?: ComponentProps['highlights'] | PropDriver;
|
|
40
|
+
jitter?: ComponentProps['jitter'] | PropDriver;
|
|
35
41
|
blendMode?: BlendMode;
|
|
36
42
|
opacity?: number;
|
|
37
43
|
visible?: boolean;
|
|
@@ -32,6 +32,12 @@
|
|
|
32
32
|
interface ExtendedComponentProps extends Partial<ComponentProps> {
|
|
33
33
|
intensity?: ComponentProps['intensity'] | PropDriver;
|
|
34
34
|
angle?: ComponentProps['angle'] | PropDriver;
|
|
35
|
+
dispersion?: ComponentProps['dispersion'] | PropDriver;
|
|
36
|
+
falloff?: ComponentProps['falloff'] | PropDriver;
|
|
37
|
+
focus?: ComponentProps['focus'] | PropDriver;
|
|
38
|
+
bias?: ComponentProps['bias'] | PropDriver;
|
|
39
|
+
highlights?: ComponentProps['highlights'] | PropDriver;
|
|
40
|
+
jitter?: ComponentProps['jitter'] | PropDriver;
|
|
35
41
|
blendMode?: BlendMode;
|
|
36
42
|
opacity?: number;
|
|
37
43
|
visible?: boolean;
|
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { getContext, setContext, onMount, onDestroy } from 'svelte';
|
|
3
|
+
import {
|
|
4
|
+
createGpuUniformsMap,
|
|
5
|
+
resolveBoundingBox,
|
|
6
|
+
type GpuUniformsMap,
|
|
7
|
+
type BlendMode,
|
|
8
|
+
type NodeMetadata,
|
|
9
|
+
type PropConfig,
|
|
10
|
+
type MaskConfig,
|
|
11
|
+
type PropDriver,
|
|
12
|
+
type TransformConfig,
|
|
13
|
+
type BoundingBoxConfig,
|
|
14
|
+
type LayoutConfig
|
|
15
|
+
} from '../../../core/index.js';
|
|
16
|
+
import {setColorSpaceMode} from '../../../core/utilities/transformations/index.js';
|
|
17
|
+
|
|
18
|
+
// @ts-ignore - this import is replaced at build time
|
|
19
|
+
import { componentDefinition, type ComponentProps } from '../../../core/shaders/Satin/index.js';
|
|
20
|
+
|
|
21
|
+
// Warn once per page load if this is an experimental component
|
|
22
|
+
let _experimentalWarnedOnce = false;
|
|
23
|
+
if ((componentDefinition as any).experimental && !_experimentalWarnedOnce) {
|
|
24
|
+
_experimentalWarnedOnce = true;
|
|
25
|
+
const _e = (componentDefinition as any).experimental;
|
|
26
|
+
console.info(`%c⚠ [Shaders] ${componentDefinition.name} is experimental: ${_e.message}`, 'color: #f59e0b; font-weight: bold');
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Define component props including blend mode, opacity, visibility, masking, and transformation
|
|
31
|
+
*/
|
|
32
|
+
interface ExtendedComponentProps extends Partial<ComponentProps> {
|
|
33
|
+
foldDirection?: ComponentProps['foldDirection'] | PropDriver;
|
|
34
|
+
foldDepth?: ComponentProps['foldDepth'] | PropDriver;
|
|
35
|
+
foldWidth?: ComponentProps['foldWidth'] | PropDriver;
|
|
36
|
+
pinning?: ComponentProps['pinning'] | PropDriver;
|
|
37
|
+
seed?: ComponentProps['seed'] | PropDriver;
|
|
38
|
+
breeze?: ComponentProps['breeze'] | PropDriver;
|
|
39
|
+
gloss?: ComponentProps['gloss'] | PropDriver;
|
|
40
|
+
anisotropy?: ComponentProps['anisotropy'] | PropDriver;
|
|
41
|
+
bloom?: ComponentProps['bloom'] | PropDriver;
|
|
42
|
+
sheen?: ComponentProps['sheen'] | PropDriver;
|
|
43
|
+
weave?: ComponentProps['weave'] | PropDriver;
|
|
44
|
+
fiberAngle?: ComponentProps['fiberAngle'] | PropDriver;
|
|
45
|
+
lightAngle?: ComponentProps['lightAngle'] | PropDriver;
|
|
46
|
+
fill?: ComponentProps['fill'] | PropDriver;
|
|
47
|
+
blendMode?: BlendMode;
|
|
48
|
+
opacity?: number;
|
|
49
|
+
visible?: boolean;
|
|
50
|
+
id?: string;
|
|
51
|
+
maskSource?: string;
|
|
52
|
+
maskType?: string;
|
|
53
|
+
renderOrder?: number;
|
|
54
|
+
transform?: Partial<TransformConfig>;
|
|
55
|
+
boundingBox?: Partial<BoundingBoxConfig>;
|
|
56
|
+
flow?: LayoutConfig;
|
|
57
|
+
absolute?: boolean;
|
|
58
|
+
children?: import('svelte').Snippet;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
function isPropDriver(value: unknown): value is PropDriver {
|
|
62
|
+
return typeof value === 'object' && value !== null && 'type' in value &&
|
|
63
|
+
((value as any).type === 'map' || (value as any).type === 'mouse' || (value as any).type === 'mouse-position' || (value as any).type === 'auto-animate');
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Default transform configuration (optimized for zero overhead)
|
|
68
|
+
*/
|
|
69
|
+
const DEFAULT_TRANSFORM: TransformConfig = {
|
|
70
|
+
offsetX: 0,
|
|
71
|
+
offsetY: 0,
|
|
72
|
+
rotation: 0,
|
|
73
|
+
scale: 1,
|
|
74
|
+
anchorX: 0.5,
|
|
75
|
+
anchorY: 0.5,
|
|
76
|
+
edges: 'transparent'
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
// Define the component props and their default values from the shader definition
|
|
80
|
+
const componentDefaults = {
|
|
81
|
+
blendMode: 'normal' as BlendMode,
|
|
82
|
+
visible: true,
|
|
83
|
+
// opacity intentionally has no default - handled by renderer
|
|
84
|
+
// transform intentionally has no default - handled by effectiveTransform
|
|
85
|
+
...Object.entries(componentDefinition.props).reduce(
|
|
86
|
+
(acc, [key, config]) => {
|
|
87
|
+
acc[key] = (config as unknown as PropConfig<typeof config>).default;
|
|
88
|
+
return acc;
|
|
89
|
+
},
|
|
90
|
+
{} as Record<string, any>
|
|
91
|
+
)
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
// Declare props using Svelte 5's syntax
|
|
95
|
+
const props: ExtendedComponentProps = $props();
|
|
96
|
+
|
|
97
|
+
// Apply defaults manually since Svelte 5 doesn't have withDefaults equivalent
|
|
98
|
+
// Use $derived so the metadata $effect re-runs when any of these change at runtime
|
|
99
|
+
const blendMode = $derived(props.blendMode ?? componentDefaults.blendMode);
|
|
100
|
+
const opacity = $derived(props.opacity); // No default - handled by renderer
|
|
101
|
+
const visible = $derived(props.visible ?? componentDefaults.visible); // Default to true
|
|
102
|
+
const id = $derived(props.id);
|
|
103
|
+
const maskSource = $derived(props.maskSource);
|
|
104
|
+
const maskType = $derived(props.maskType);
|
|
105
|
+
const renderOrder = $derived(props.renderOrder);
|
|
106
|
+
const { children } = props;
|
|
107
|
+
|
|
108
|
+
// Collect PropDriver values from shader props into the maps metadata structure
|
|
109
|
+
const mapsFromProps = $derived.by(() => {
|
|
110
|
+
const maps: Record<string, PropDriver> = {};
|
|
111
|
+
for (const key of Object.keys(componentDefinition.props)) {
|
|
112
|
+
const val = (props as any)[key];
|
|
113
|
+
if (isPropDriver(val)) maps[key] = val as PropDriver;
|
|
114
|
+
}
|
|
115
|
+
return Object.keys(maps).length > 0 ? maps : undefined;
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Computed transform that merges user-provided values with defaults
|
|
120
|
+
*/
|
|
121
|
+
const effectiveTransform = $derived({
|
|
122
|
+
...DEFAULT_TRANSFORM,
|
|
123
|
+
...props.transform
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Effective bounding box — partial configs merge with full-frame defaults,
|
|
128
|
+
* absent stays undefined so the bbox render path is not activated
|
|
129
|
+
*/
|
|
130
|
+
const effectiveBoundingBox = $derived(resolveBoundingBox(props.boundingBox));
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* FIRST: Get the parent ID from context BEFORE setting our own context
|
|
134
|
+
*/
|
|
135
|
+
const parentId = getContext<string>('shaderParentId');
|
|
136
|
+
if (parentId === undefined) {
|
|
137
|
+
throw new Error('Shader components must be used inside an <Shader> component or another shader component');
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Use the provided ID or generate a unique identifier for this component instance
|
|
142
|
+
*/
|
|
143
|
+
const instanceId = (id ? id.replace(/[^a-zA-Z0-9_]/g, '_') : null) || Math.random().toString(36).substring(2, 10);
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* THEN: Provide our unique identifier to child components
|
|
147
|
+
*/
|
|
148
|
+
setContext('shaderParentId', instanceId);
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Creates a non-reactive object containing only props that differ from defaults
|
|
152
|
+
* This optimization prevents unnecessary GPU uniform updates for unchanged values
|
|
153
|
+
* Special props like blendMode and opacity are handled separately
|
|
154
|
+
*/
|
|
155
|
+
const shaderReadyProps = $derived.by(() => {
|
|
156
|
+
let baseProps = { ...componentDefaults };
|
|
157
|
+
|
|
158
|
+
// Only include props that differ from defaults (excluding special props and PropDrivers)
|
|
159
|
+
for (const key in props) {
|
|
160
|
+
if (key !== 'blendMode' && key !== 'opacity' && key !== 'visible' &&
|
|
161
|
+
key !== 'id' && key !== 'maskSource' && key !== 'maskType' && key !== 'renderOrder' &&
|
|
162
|
+
key !== 'transform' && key !== 'boundingBox' && key !== 'flow' && key !== 'absolute' && key !== 'children') {
|
|
163
|
+
const propValue = (props as any)[key];
|
|
164
|
+
if (isPropDriver(propValue)) continue; // PropDrivers go to metadata.maps, not uniforms
|
|
165
|
+
const defaultValue = (componentDefaults as any)[key];
|
|
166
|
+
if (propValue !== undefined && propValue !== defaultValue) {
|
|
167
|
+
(baseProps as any)[key] = propValue;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
return baseProps;
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Get the color space from the root Shader component.
|
|
176
|
+
* Used to set the global color space mode before creating uniforms.
|
|
177
|
+
*/
|
|
178
|
+
const shaderColorSpace = getContext<() => 'p3-linear' | 'srgb'>('shaderColorSpace');
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Creates the GPU uniform values map using only the changed props
|
|
182
|
+
* Set the global color space mode before creating uniforms so colors are transformed correctly
|
|
183
|
+
* Note: Intentionally captures initial value - props are immutable after initialization
|
|
184
|
+
*/
|
|
185
|
+
if (shaderColorSpace) {
|
|
186
|
+
setColorSpaceMode(shaderColorSpace());
|
|
187
|
+
}
|
|
188
|
+
// svelte-ignore state_referenced_locally
|
|
189
|
+
const uniforms: GpuUniformsMap = createGpuUniformsMap(componentDefinition, shaderReadyProps, instanceId);
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Get the node registration function from parent context
|
|
193
|
+
*/
|
|
194
|
+
const parentRegister = getContext<(id: string, fragmentNodeFunc: any, parentId: string | null, metadata: NodeMetadata | null, uniforms: GpuUniformsMap | null, componentDefinition: any, domCanvas?: HTMLCanvasElement) => void>('shaderNodeRegister');
|
|
195
|
+
if (parentRegister === undefined) {
|
|
196
|
+
throw new Error('Shader components must be used inside an <Shader> component or another shader component');
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Get the uniform update function from parent context
|
|
201
|
+
*/
|
|
202
|
+
const parentUniformUpdate = getContext<(nodeId: string, uniformName: string, value: any) => void>('shaderUniformUpdate');
|
|
203
|
+
if (parentUniformUpdate === undefined) {
|
|
204
|
+
throw new Error('Shader components require shaderUniformUpdate from parent');
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Get the metadata update function from parent context
|
|
209
|
+
*/
|
|
210
|
+
const parentMetadataUpdate = getContext<(nodeId: string, metadata: NodeMetadata) => void>('shaderMetadataUpdate');
|
|
211
|
+
if (parentMetadataUpdate === undefined) {
|
|
212
|
+
throw new Error('Shader components require shaderMetadataUpdate from parent');
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// capturesDOM — canvas layoutsubtree portal for HTMLInCanvas-style shaders
|
|
216
|
+
const isCapturesDOM = !!(componentDefinition as any).capturesDOM;
|
|
217
|
+
let captureCanvas: HTMLCanvasElement | undefined;
|
|
218
|
+
let captureW = $state(typeof window !== 'undefined' ? Math.round(window.innerWidth * Math.min(window.devicePixelRatio, 2)) : 0);
|
|
219
|
+
let captureH = $state(typeof window !== 'undefined' ? Math.round(window.innerHeight * Math.min(window.devicePixelRatio, 2)) : 0);
|
|
220
|
+
|
|
221
|
+
function teleportToBody(node: HTMLElement) {
|
|
222
|
+
document.body.appendChild(node);
|
|
223
|
+
return { destroy() { node.remove(); } };
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
if (isCapturesDOM) {
|
|
227
|
+
const onWinResize = () => {
|
|
228
|
+
const d = Math.min(window.devicePixelRatio, 2);
|
|
229
|
+
captureW = Math.round(window.innerWidth * d);
|
|
230
|
+
captureH = Math.round(window.innerHeight * d);
|
|
231
|
+
};
|
|
232
|
+
onMount(() => { window.addEventListener('resize', onWinResize); });
|
|
233
|
+
onDestroy(() => { window.removeEventListener('resize', onWinResize); });
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
// DOM marker ref for determining render order from template position
|
|
237
|
+
let orderMarker: HTMLSpanElement;
|
|
238
|
+
|
|
239
|
+
// Stores the DOM-detected render order
|
|
240
|
+
let detectedRenderOrder: number | undefined = undefined;
|
|
241
|
+
|
|
242
|
+
// Flag to track when component is registered
|
|
243
|
+
let isRegistered = $state(false);
|
|
244
|
+
|
|
245
|
+
// Setup uniform watchers with registration guard
|
|
246
|
+
Object.entries(uniforms).forEach(([propName, entry]) => {
|
|
247
|
+
$effect(() => {
|
|
248
|
+
// Only run after component is registered
|
|
249
|
+
if (!isRegistered) return;
|
|
250
|
+
|
|
251
|
+
// GPU bridge entries carry `.value` (no v1 `.uniform` node). colorStops expands into
|
|
252
|
+
// extra array fields (colorsArray/…) that aren't component props — their `props[name]`
|
|
253
|
+
// is always undefined, so the guard below skips them.
|
|
254
|
+
if (entry && entry.value !== undefined) {
|
|
255
|
+
const newValue = (props as any)[propName];
|
|
256
|
+
if (newValue !== undefined && !isPropDriver(newValue)) {
|
|
257
|
+
// Send raw value - renderer will handle transformation
|
|
258
|
+
// PropDriver values go to metadata.maps, not uniforms
|
|
259
|
+
parentUniformUpdate(instanceId, propName, newValue);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
});
|
|
263
|
+
});
|
|
264
|
+
|
|
265
|
+
// Watch blend mode, opacity, visibility, masking, transformations, and prop maps changes
|
|
266
|
+
$effect(() => {
|
|
267
|
+
// Only run after component is registered
|
|
268
|
+
if (!isRegistered) return;
|
|
269
|
+
|
|
270
|
+
const metadata: NodeMetadata = {
|
|
271
|
+
blendMode,
|
|
272
|
+
opacity,
|
|
273
|
+
visible: visible === false ? false : true,
|
|
274
|
+
id,
|
|
275
|
+
mask: maskSource ? {
|
|
276
|
+
source: maskSource,
|
|
277
|
+
type: (maskType || 'alpha') as MaskConfig['type']
|
|
278
|
+
} : undefined,
|
|
279
|
+
maps: mapsFromProps,
|
|
280
|
+
renderOrder: renderOrder ?? detectedRenderOrder,
|
|
281
|
+
transform: effectiveTransform,
|
|
282
|
+
boundingBox: effectiveBoundingBox,
|
|
283
|
+
flow: props.flow,
|
|
284
|
+
absolute: props.absolute
|
|
285
|
+
};
|
|
286
|
+
parentMetadataUpdate(instanceId, metadata);
|
|
287
|
+
});
|
|
288
|
+
|
|
289
|
+
// Register this component after mount to ensure parent is ready
|
|
290
|
+
onMount(() => {
|
|
291
|
+
// Register this component with safety check
|
|
292
|
+
if (componentDefinition && typeof componentDefinition.fragment === 'function') {
|
|
293
|
+
parentRegister(
|
|
294
|
+
instanceId,
|
|
295
|
+
componentDefinition.fragment,
|
|
296
|
+
parentId,
|
|
297
|
+
{
|
|
298
|
+
blendMode,
|
|
299
|
+
opacity,
|
|
300
|
+
visible: visible !== false ? true : false,
|
|
301
|
+
id,
|
|
302
|
+
mask: maskSource ? {
|
|
303
|
+
source: maskSource,
|
|
304
|
+
type: (maskType || 'alpha') as MaskConfig['type']
|
|
305
|
+
} as MaskConfig : undefined,
|
|
306
|
+
maps: mapsFromProps,
|
|
307
|
+
renderOrder: renderOrder ?? detectedRenderOrder,
|
|
308
|
+
transform: effectiveTransform,
|
|
309
|
+
boundingBox: effectiveBoundingBox,
|
|
310
|
+
flow: props.flow,
|
|
311
|
+
absolute: props.absolute
|
|
312
|
+
},
|
|
313
|
+
uniforms,
|
|
314
|
+
componentDefinition,
|
|
315
|
+
isCapturesDOM ? captureCanvas : undefined
|
|
316
|
+
);
|
|
317
|
+
|
|
318
|
+
// Set flag to enable effects after successful registration
|
|
319
|
+
isRegistered = true;
|
|
320
|
+
|
|
321
|
+
// Detect DOM position for correct render ordering
|
|
322
|
+
if (renderOrder === undefined && orderMarker) {
|
|
323
|
+
const parent = orderMarker.parentElement;
|
|
324
|
+
if (parent) {
|
|
325
|
+
const siblings = parent.querySelectorAll(':scope > [data-shader-id]');
|
|
326
|
+
const position = Array.from(siblings).indexOf(orderMarker);
|
|
327
|
+
if (position >= 0) {
|
|
328
|
+
detectedRenderOrder = position;
|
|
329
|
+
parentMetadataUpdate(instanceId, { renderOrder: position } as NodeMetadata);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
} else {
|
|
334
|
+
console.error('componentDefinition.fragment is not a function:', {
|
|
335
|
+
componentDefinition,
|
|
336
|
+
fragment: componentDefinition?.fragment,
|
|
337
|
+
type: typeof componentDefinition?.fragment
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
});
|
|
341
|
+
|
|
342
|
+
// Clean up node from registry when component is unmounted
|
|
343
|
+
onDestroy(() => {
|
|
344
|
+
isRegistered = false;
|
|
345
|
+
parentRegister(instanceId, null, null, null, null);
|
|
346
|
+
});
|
|
347
|
+
</script>
|
|
348
|
+
|
|
349
|
+
<span bind:this={orderMarker} style="display:contents" data-shader-id={instanceId}>
|
|
350
|
+
{#if !isCapturesDOM}
|
|
351
|
+
{@render children?.()}
|
|
352
|
+
{/if}
|
|
353
|
+
</span>
|
|
354
|
+
{#if isCapturesDOM}
|
|
355
|
+
<canvas use:teleportToBody bind:this={captureCanvas} layoutsubtree
|
|
356
|
+
width={captureW} height={captureH}
|
|
357
|
+
style="position:fixed;inset:0;width:100vw;height:100vh;z-index:-9999">
|
|
358
|
+
{@render children?.()}
|
|
359
|
+
</canvas>
|
|
360
|
+
{/if}
|
|
@@ -32,6 +32,13 @@
|
|
|
32
32
|
interface ExtendedComponentProps extends Partial<ComponentProps> {
|
|
33
33
|
intensity?: ComponentProps['intensity'] | PropDriver;
|
|
34
34
|
center?: ComponentProps['center'] | PropDriver;
|
|
35
|
+
dispersion?: ComponentProps['dispersion'] | PropDriver;
|
|
36
|
+
falloff?: ComponentProps['falloff'] | PropDriver;
|
|
37
|
+
focus?: ComponentProps['focus'] | PropDriver;
|
|
38
|
+
bias?: ComponentProps['bias'] | PropDriver;
|
|
39
|
+
highlights?: ComponentProps['highlights'] | PropDriver;
|
|
40
|
+
spiral?: ComponentProps['spiral'] | PropDriver;
|
|
41
|
+
jitter?: ComponentProps['jitter'] | PropDriver;
|
|
35
42
|
blendMode?: BlendMode;
|
|
36
43
|
opacity?: number;
|
|
37
44
|
visible?: boolean;
|
|
@@ -151,6 +151,7 @@ import Ring from '../components/Ring.svelte'
|
|
|
151
151
|
import RippleWipe from '../components/RippleWipe.svelte'
|
|
152
152
|
import Ripples from '../components/Ripples.svelte'
|
|
153
153
|
import RoundedRect from '../components/RoundedRect.svelte'
|
|
154
|
+
import Satin from '../components/Satin.svelte'
|
|
154
155
|
import Saturation from '../components/Saturation.svelte'
|
|
155
156
|
import Scratches from '../components/Scratches.svelte'
|
|
156
157
|
import Sharpness from '../components/Sharpness.svelte'
|
|
@@ -355,6 +356,7 @@ const componentMap: Record<string, any> = {
|
|
|
355
356
|
RippleWipe,
|
|
356
357
|
Ripples,
|
|
357
358
|
RoundedRect,
|
|
359
|
+
Satin,
|
|
358
360
|
Saturation,
|
|
359
361
|
Scratches,
|
|
360
362
|
Sharpness,
|
|
@@ -146,6 +146,7 @@ export { default as Ring } from './components/Ring.svelte';
|
|
|
146
146
|
export { default as RippleWipe } from './components/RippleWipe.svelte';
|
|
147
147
|
export { default as Ripples } from './components/Ripples.svelte';
|
|
148
148
|
export { default as RoundedRect } from './components/RoundedRect.svelte';
|
|
149
|
+
export { default as Satin } from './components/Satin.svelte';
|
|
149
150
|
export { default as Saturation } from './components/Saturation.svelte';
|
|
150
151
|
export { default as Scratches } from './components/Scratches.svelte';
|
|
151
152
|
export { default as Sharpness } from './components/Sharpness.svelte';
|
|
@@ -35,7 +35,13 @@ var shaderMetadata = {
|
|
|
35
35
|
"center": {
|
|
36
36
|
"x": .5,
|
|
37
37
|
"y": .5
|
|
38
|
-
}
|
|
38
|
+
},
|
|
39
|
+
"dispersion": 0,
|
|
40
|
+
"falloff": 0,
|
|
41
|
+
"focus": 0,
|
|
42
|
+
"bias": 0,
|
|
43
|
+
"highlights": 0,
|
|
44
|
+
"jitter": 0
|
|
39
45
|
},
|
|
40
46
|
"Arc": {
|
|
41
47
|
"opacity": 1,
|
|
@@ -220,7 +226,8 @@ var shaderMetadata = {
|
|
|
220
226
|
"bladeShape": "blades",
|
|
221
227
|
"bladeCount": 6,
|
|
222
228
|
"bladeRotation": 0,
|
|
223
|
-
"chromaticFringe": .2
|
|
229
|
+
"chromaticFringe": .2,
|
|
230
|
+
"catEye": 0
|
|
224
231
|
},
|
|
225
232
|
"BrickPattern": {
|
|
226
233
|
"opacity": 1,
|
|
@@ -654,7 +661,8 @@ var shaderMetadata = {
|
|
|
654
661
|
"opacity": 1,
|
|
655
662
|
"blendMode": "normal",
|
|
656
663
|
"intensity": 30,
|
|
657
|
-
"edges": "stretch"
|
|
664
|
+
"edges": "stretch",
|
|
665
|
+
"chromatic": 0
|
|
658
666
|
},
|
|
659
667
|
"DisplacementMap": {
|
|
660
668
|
"opacity": 1,
|
|
@@ -1505,7 +1513,13 @@ var shaderMetadata = {
|
|
|
1505
1513
|
"opacity": 1,
|
|
1506
1514
|
"blendMode": "normal",
|
|
1507
1515
|
"intensity": 30,
|
|
1508
|
-
"angle": 0
|
|
1516
|
+
"angle": 0,
|
|
1517
|
+
"dispersion": 0,
|
|
1518
|
+
"falloff": 0,
|
|
1519
|
+
"focus": 0,
|
|
1520
|
+
"bias": 0,
|
|
1521
|
+
"highlights": 0,
|
|
1522
|
+
"jitter": 0
|
|
1509
1523
|
},
|
|
1510
1524
|
"LinearGradient": {
|
|
1511
1525
|
"opacity": 1,
|
|
@@ -2086,7 +2100,9 @@ var shaderMetadata = {
|
|
|
2086
2100
|
"x": 0,
|
|
2087
2101
|
"y": .5
|
|
2088
2102
|
},
|
|
2089
|
-
"falloff": 1
|
|
2103
|
+
"falloff": 1,
|
|
2104
|
+
"dispersion": 0,
|
|
2105
|
+
"jitter": 0
|
|
2090
2106
|
},
|
|
2091
2107
|
"RadialGradient": {
|
|
2092
2108
|
"opacity": 1,
|
|
@@ -2267,6 +2283,28 @@ var shaderMetadata = {
|
|
|
2267
2283
|
"strokePosition": "center",
|
|
2268
2284
|
"colorSpace": "linear"
|
|
2269
2285
|
},
|
|
2286
|
+
"Satin": {
|
|
2287
|
+
"opacity": 1,
|
|
2288
|
+
"blendMode": "normal",
|
|
2289
|
+
"color": "#c92c40",
|
|
2290
|
+
"highlightColor": "#c4667b",
|
|
2291
|
+
"foldCount": 7,
|
|
2292
|
+
"foldDirection": 90,
|
|
2293
|
+
"foldDepth": .5,
|
|
2294
|
+
"foldWidth": .14,
|
|
2295
|
+
"pinning": .6,
|
|
2296
|
+
"seed": 0,
|
|
2297
|
+
"speed": 1,
|
|
2298
|
+
"breeze": .4,
|
|
2299
|
+
"gloss": .1,
|
|
2300
|
+
"anisotropy": .7,
|
|
2301
|
+
"bloom": .5,
|
|
2302
|
+
"sheen": .5,
|
|
2303
|
+
"weave": .1,
|
|
2304
|
+
"fiberAngle": 90,
|
|
2305
|
+
"lightAngle": 215,
|
|
2306
|
+
"fill": .35
|
|
2307
|
+
},
|
|
2270
2308
|
"Saturation": {
|
|
2271
2309
|
"opacity": 1,
|
|
2272
2310
|
"blendMode": "normal",
|
|
@@ -2708,7 +2746,9 @@ var shaderMetadata = {
|
|
|
2708
2746
|
"center": {
|
|
2709
2747
|
"x": .5,
|
|
2710
2748
|
"y": .5
|
|
2711
|
-
}
|
|
2749
|
+
},
|
|
2750
|
+
"dispersion": 0,
|
|
2751
|
+
"jitter": 0
|
|
2712
2752
|
},
|
|
2713
2753
|
"TimeTrail": {
|
|
2714
2754
|
"opacity": 1,
|
|
@@ -3045,7 +3085,14 @@ var shaderMetadata = {
|
|
|
3045
3085
|
"center": {
|
|
3046
3086
|
"x": .5,
|
|
3047
3087
|
"y": .5
|
|
3048
|
-
}
|
|
3088
|
+
},
|
|
3089
|
+
"dispersion": 0,
|
|
3090
|
+
"falloff": 0,
|
|
3091
|
+
"focus": 0,
|
|
3092
|
+
"bias": 0,
|
|
3093
|
+
"highlights": 0,
|
|
3094
|
+
"spiral": 0,
|
|
3095
|
+
"jitter": 0
|
|
3049
3096
|
}
|
|
3050
3097
|
};
|
|
3051
3098
|
function isPropMapValue(value) {
|
|
@@ -3348,6 +3395,7 @@ const availableComponents = [
|
|
|
3348
3395
|
"RippleWipe",
|
|
3349
3396
|
"Ripples",
|
|
3350
3397
|
"RoundedRect",
|
|
3398
|
+
"Satin",
|
|
3351
3399
|
"Saturation",
|
|
3352
3400
|
"Scratches",
|
|
3353
3401
|
"Sharpness",
|
|
@@ -9,6 +9,12 @@ var AngularBlur_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ de
|
|
|
9
9
|
props: /* @__PURE__ */ mergeDefaults({
|
|
10
10
|
intensity: {},
|
|
11
11
|
center: {},
|
|
12
|
+
dispersion: {},
|
|
13
|
+
falloff: {},
|
|
14
|
+
focus: {},
|
|
15
|
+
bias: {},
|
|
16
|
+
highlights: {},
|
|
17
|
+
jitter: {},
|
|
12
18
|
blendMode: {},
|
|
13
19
|
opacity: {},
|
|
14
20
|
visible: { type: Boolean },
|
|
@@ -9,6 +9,12 @@ var LinearBlur_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ def
|
|
|
9
9
|
props: /* @__PURE__ */ mergeDefaults({
|
|
10
10
|
intensity: {},
|
|
11
11
|
angle: {},
|
|
12
|
+
dispersion: {},
|
|
13
|
+
falloff: {},
|
|
14
|
+
focus: {},
|
|
15
|
+
bias: {},
|
|
16
|
+
highlights: {},
|
|
17
|
+
jitter: {},
|
|
12
18
|
blendMode: {},
|
|
13
19
|
opacity: {},
|
|
14
20
|
visible: { type: Boolean },
|
|
@@ -144,6 +144,7 @@ import Ring_default from "./Ring.js";
|
|
|
144
144
|
import RippleWipe_default from "./RippleWipe.js";
|
|
145
145
|
import Ripples_default from "./Ripples.js";
|
|
146
146
|
import RoundedRect_default from "./RoundedRect.js";
|
|
147
|
+
import Satin_default from "./Satin.js";
|
|
147
148
|
import Saturation_default from "./Saturation.js";
|
|
148
149
|
import Scratches_default from "./Scratches.js";
|
|
149
150
|
import Sharpness_default from "./Sharpness.js";
|
|
@@ -401,6 +402,7 @@ var Preview_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
|
|
|
401
402
|
RippleWipe: RippleWipe_default,
|
|
402
403
|
Ripples: Ripples_default,
|
|
403
404
|
RoundedRect: RoundedRect_default,
|
|
405
|
+
Satin: Satin_default,
|
|
404
406
|
Saturation: Saturation_default,
|
|
405
407
|
Scratches: Scratches_default,
|
|
406
408
|
Sharpness: Sharpness_default,
|
|
@@ -21,7 +21,9 @@ var ProgressiveBlur_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ *
|
|
|
21
21
|
transform: {},
|
|
22
22
|
boundingBox: {},
|
|
23
23
|
flow: {},
|
|
24
|
-
absolute: { type: Boolean }
|
|
24
|
+
absolute: { type: Boolean },
|
|
25
|
+
dispersion: {},
|
|
26
|
+
jitter: {}
|
|
25
27
|
}, {
|
|
26
28
|
blendMode: "normal",
|
|
27
29
|
visible: true,
|