shaders 3.0.450 → 3.0.452
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-4jt7bNoF.js → AngularBlur-BGPN-q7Q.js} +1 -1
- package/dist/core/{Arc-DXIfbBgd.js → Arc-B3WUGG1Z.js} +2 -2
- package/dist/core/{Ascii-GDof03Ca.js → Ascii-MEJdXy2h.js} +1 -1
- package/dist/core/{Aurora-CS4vewUW.js → Aurora-BAafQuBz.js} +3 -3
- package/dist/core/{BarShift-BtnYLQ0B.js → BarShift-nVtvlHii.js} +2 -2
- package/dist/core/{BarnDoors-Dw9K-amf.js → BarnDoors-D6E5jOl2.js} +1 -1
- package/dist/core/{Beam-D_cyaMjJ.js → Beam-D7IyWHAx.js} +1 -1
- package/dist/core/{Bend-CSs5UIh8.js → Bend-RtDgo8kD.js} +1 -1
- package/dist/core/{Blob-h25zA5WH.js → Blob-DH-MnnS6.js} +2 -2
- package/dist/core/{BlockDissolve-CKN_KvLP.js → BlockDissolve-DIGuzCsR.js} +2 -2
- package/dist/core/{BlockNoise-DhKyd_F7.js → BlockNoise-Drf4_hBO.js} +5 -5
- package/dist/core/{BlueNoise-Auhzq4x5.js → BlueNoise-CEwncn_5.js} +4 -4
- package/dist/core/{Blur-CcxMqYsu.js → Blur-BbEw_oFx.js} +3 -3
- package/dist/core/{Boids-D51U46GF.js → Boids-D0-S7SI7.js} +4 -4
- package/dist/core/{BokehBlur-Cfaqbh3I.js → BokehBlur-CXBx5wog.js} +3 -3
- package/dist/core/{BrickPattern-tASwilX0.js → BrickPattern-BKuDn_RF.js} +2 -2
- package/dist/core/{BrightnessContrast-ZCKqJW7i.js → BrightnessContrast-ph33aPUw.js} +1 -1
- package/dist/core/{BrushedMetal-B6gSVB28.js → BrushedMetal-CDtIZKcg.js} +6 -6
- package/dist/core/{Bulge-dCYtWP4S.js → Bulge-fgRLH3BN.js} +1 -1
- package/dist/core/{CRTScreen-CVY1lOGL.js → CRTScreen-CSRu7VZT.js} +1 -1
- package/dist/core/{CarbonFiber-Do9EONKv.js → CarbonFiber-DXa8yomK.js} +5 -5
- package/dist/core/{Chalkboard-0hyyGnYl.js → Chalkboard-UKLkHrLB.js} +1 -1
- package/dist/core/{ChannelBlur-DcZKCKXi.js → ChannelBlur-Bfl6C2nt.js} +2 -2
- package/dist/core/{CheckerWipe-BIE62tJ1.js → CheckerWipe-DDUBzOJZ.js} +1 -1
- package/dist/core/{Checkerboard-CRnfu63u.js → Checkerboard-CjRqLaQW.js} +1 -1
- package/dist/core/{Chevron-Ld_v4z9T.js → Chevron-Bc0h2Rzv.js} +2 -2
- package/dist/core/{ChromaFlow-CTWeauIr.js → ChromaFlow-wBzMJ-PA.js} +1 -1
- package/dist/core/{ChromaticAberration-CxuOb68m.js → ChromaticAberration--78QtyKl.js} +1 -1
- package/dist/core/{Circle-XP1B5rsN.js → Circle-sKqyx9pq.js} +2 -2
- package/dist/core/{ColorWheel-CFU_OmOW.js → ColorWheel-BLgkdEmc.js} +2 -2
- package/dist/core/{CompressionArtifacts-Bc9xTdQP.js → CompressionArtifacts-C61W9yw2.js} +2 -2
- package/dist/core/{ConcentricSpin-DTJytpAk.js → ConcentricSpin-BA-pPXA5.js} +2 -2
- package/dist/core/{ConicGradient-C-4uDmQj.js → ConicGradient-DD2NOoA2.js} +2 -2
- package/dist/core/{ContourLines-C8p6f-1y.js → ContourLines-rxGkKb2q.js} +1 -1
- package/dist/core/{CornerPin-CB92kX10.js → CornerPin-CHkM91UE.js} +1 -1
- package/dist/core/{Crescent-Dk4nlG8T.js → Crescent-SDicMQui.js} +2 -2
- package/dist/core/{Cross-DsnI1U8g.js → Cross-Bv1j7D12.js} +2 -2
- package/dist/core/{Crystal-CR_sG2y7.js → Crystal-0oIYL_aS.js} +5 -5
- package/dist/core/{CurlNoise-DJ27ih0F.js → CurlNoise-BJCULaf9.js} +5 -5
- package/dist/core/{CursorRipples-CuO3sZga.js → CursorRipples-BLDfv2sS.js} +2 -2
- package/dist/core/{CursorTrail-d4xx4QpM.js → CursorTrail-ByRtE4T-.js} +3 -3
- package/dist/core/{DataMosh-BhvE-2yC.js → DataMosh-zH8BS7dt.js} +2 -2
- package/dist/core/{DiamondGradient-CtOVKrYf.js → DiamondGradient-D6_jgke5.js} +2 -2
- package/dist/core/{DiamondWipe-D-yiQBVj.js → DiamondWipe-CeJJPxX6.js} +1 -1
- package/dist/core/{DiffuseBlur-BDf-Czxz.js → DiffuseBlur-CPniI-42.js} +1 -1
- package/dist/core/{DisplacementMap-B_jf_2lj.js → DisplacementMap-CCnnAPvB.js} +1 -1
- package/dist/core/{Dither-D3P6EJU8.js → Dither-WIfj4N7O.js} +1 -1
- package/dist/core/{DotGrid-BnSVhJlh.js → DotGrid-BhzPWYK4.js} +2 -2
- package/dist/core/{DropShadow-BSKVH3n3.js → DropShadow-D-YFgaHS.js} +1 -1
- package/dist/core/{Duotone-DfjYuK2u.js → Duotone-lXgv9Fip.js} +1 -1
- package/dist/core/{Ellipse-D7_1QKaa.js → Ellipse-B1QfTjTA.js} +2 -2
- package/dist/core/{Emboss-ZiPslqzl.js → Emboss-UmDoGSQF.js} +4 -4
- package/dist/core/{Engraving-DsfkKajz.js → Engraving-CN0OrgUo.js} +2 -2
- package/dist/core/{ErosionNoise-SELArv9H.js → ErosionNoise-Wu1fxJfJ.js} +4 -4
- package/dist/core/{Exposure-A7WlTOti.js → Exposure-B5oEoUk-.js} +1 -1
- package/dist/core/{FallingLines-9PRMb_Ou.js → FallingLines-CsNVa3dc.js} +2 -2
- package/dist/core/{FilmGrain-SXzVDesw.js → FilmGrain-Br5EDq0B.js} +1 -1
- package/dist/core/{FilmStock-RK4fk4m0.js → FilmStock-BzaKrJRG.js} +3 -3
- package/dist/core/{Flip-DjoNWG4v.js → Flip-HRnCpBGd.js} +1 -1
- package/dist/core/{FloatingParticles-D7vUF5g7.js → FloatingParticles-DNGXQrHG.js} +4 -4
- package/dist/core/{FlowField-tHrXhd1b.js → FlowField-rJGiwKMI.js} +3 -3
- package/dist/core/{Flower-BfehbmmG.js → Flower-DGCyfNeJ.js} +2 -2
- package/dist/core/{FlowingGradient-BTKjkx5F.js → FlowingGradient-CD6_NVZB.js} +97 -12
- package/dist/core/{FlutedGlass-uFT7iy_9.js → FlutedGlass-CrKD5b4k.js} +2 -2
- package/dist/core/{Fog-Cu1CMATa.js → Fog-uK8ECyzk.js} +2 -2
- package/dist/core/{Form3D-D0ji-MeC.js → Form3D-DQ7SxWFV.js} +2 -2
- package/dist/core/{FractalNoise-D9HYiOdr.js → FractalNoise-DOU_jooR.js} +4 -4
- package/dist/core/{Frost-DQZZxdTk.js → Frost-BEnyt-CW.js} +6 -6
- package/dist/core/{GaborNoise-D7BP0K4g.js → GaborNoise-CMt5270_.js} +5 -5
- package/dist/core/{Glass-CzCVnGn-.js → Glass-CSJ1vRoj.js} +5 -5
- package/dist/core/{GlassTiles-DJzPPqwz.js → GlassTiles-C3w1jqsb.js} +1 -1
- package/dist/core/{Glitch-D1Dx8__X.js → Glitch-BxP1fWwQ.js} +1 -1
- package/dist/core/{Glow-Bd9_o_Kv.js → Glow-6yyCrCzW.js} +3 -3
- package/dist/core/{Godrays-DRPRWGPm.js → Godrays-DsolPk6B.js} +2 -2
- package/dist/core/{Goo-28A_pNBg.js → Goo-Db0tOvqs.js} +5 -5
- package/dist/core/{GradientMap-D8dv-1AX.js → GradientMap-BfpgWnfm.js} +1 -1
- package/dist/core/{Grayscale-BlVXBVwW.js → Grayscale-DTrRYf14.js} +1 -1
- package/dist/core/{Grid-D9vlHvs1.js → Grid-COJiaxy5.js} +1 -1
- package/dist/core/{GridDistortion-BpqDvqj6.js → GridDistortion-Du7cRxX_.js} +2 -2
- package/dist/core/{Group-bwQnJRec.js → Group-BKumfLn_.js} +1 -1
- package/dist/core/{HTMLInCanvas-gCf64ozE.js → HTMLInCanvas-CtKAkjSy.js} +1 -1
- package/dist/core/{Halftone-B_WouxiP.js → Halftone-CwWlH4Zi.js} +1 -1
- package/dist/core/{Heart-Bmt2TLNz.js → Heart-C-BeqQH8.js} +2 -2
- package/dist/core/{Heatmap-Ruef741_.js → Heatmap-D-61Tysu.js} +6 -6
- package/dist/core/{HexGrid-By9k0YuI.js → HexGrid-BxgXRDm3.js} +1 -1
- package/dist/core/{Hologram-Cf25ONOE.js → Hologram-DIgdhf5F.js} +6 -6
- package/dist/core/{Holographic-C9RzYykt.js → Holographic-BNMw20mj.js} +6 -6
- package/dist/core/{HueShift-V3gQVuIo.js → HueShift-CiG-leUg.js} +1 -1
- package/dist/core/{ImageTexture-DAUR2N5Q.js → ImageTexture-56vkFGyi.js} +2 -2
- package/dist/core/{InkFlow-DlP1gmr4.js → InkFlow-DgS686Pl.js} +2 -2
- package/dist/core/{Invert-K648khvD.js → Invert-QtF0OVwG.js} +1 -1
- package/dist/core/{IrisWipe-Clkd_5CA.js → IrisWipe-BEtEyvcI.js} +1 -1
- package/dist/core/{IsometricCubes-CzfAwpQ5.js → IsometricCubes-C87okilH.js} +1 -1
- package/dist/core/{Kaleidoscope-B9k6HkNn.js → Kaleidoscope-Ue2Atc25.js} +1 -1
- package/dist/core/{KeyFrames-DX6JFhsy.js → KeyFrames-Bb_6EmyV.js} +2 -2
- package/dist/core/LensDistortion-DxhU8nws.js +435 -0
- package/dist/core/{LensFlare-G73cvrIG.js → LensFlare-YXo4zdAn.js} +2 -2
- package/dist/core/{LightEdge-D3i7HUR9.js → LightEdge-BzESg64B.js} +6 -6
- package/dist/core/{LightLeak-B8yGreP-.js → LightLeak-BQKAeM6h.js} +3 -3
- package/dist/core/{LinearBlur-BEzNPe0e.js → LinearBlur-DaAraWV3.js} +1 -1
- package/dist/core/{LinearGradient-XjXyaoii.js → LinearGradient-CL5FnVfT.js} +2 -2
- package/dist/core/{LinearWipe-Doj9aS5n.js → LinearWipe-xR6RSzjC.js} +1 -1
- package/dist/core/{LiquidMetal-CWV_RQip.js → LiquidMetal-BRhwukdo.js} +6 -6
- package/dist/core/{Liquify-DWrgFruC.js → Liquify-p_Gz_FHr.js} +2 -2
- package/dist/core/{MagneticFilings-Co0V07-1.js → MagneticFilings-DOvxWL0a.js} +4 -4
- package/dist/core/{Marble-D13mDBvL.js → Marble-CkYRfCV8.js} +3 -3
- package/dist/core/{Mirror-DvukM_eG.js → Mirror-CxoKC1gR.js} +1 -1
- package/dist/core/{MultiPointGradient-CyK_Ty9a.js → MultiPointGradient-B4qZwcHL.js} +1 -1
- package/dist/core/{Neon-DD8qY6H9.js → Neon-C2QmSiyi.js} +4 -4
- package/dist/core/{NoiseDissolve-CeX3VO8J.js → NoiseDissolve-DaNRO71N.js} +2 -2
- package/dist/core/{ObjectTracker-BWo8H1kh.js → ObjectTracker-e4hHSKMw.js} +2 -2
- package/dist/core/{PagePeel-BL5IeBeD.js → PagePeel-DT6GI9mV.js} +1 -1
- package/dist/core/{Paper-BAq9MqtG.js → Paper-QrPBpeei.js} +2 -2
- package/dist/core/{Parallelogram-DYzFG9ci.js → Parallelogram-C_WrJLLX.js} +2 -2
- package/dist/core/{ParticleField-Bl4uztO7.js → ParticleField-B1nL_L7A.js} +4 -4
- package/dist/core/{ParticleFlow-RPxLP8HC.js → ParticleFlow-w2G9pdt5.js} +4 -4
- package/dist/core/{Particles-BDEX4Fw2.js → Particles-BsxM8Kbc.js} +6 -6
- package/dist/core/{PerlinNoise-BtXlaEd8.js → PerlinNoise-DqZj-I8R.js} +5 -5
- package/dist/core/{Perspective-CdU5nAEn.js → Perspective-BzxylO20.js} +1 -1
- package/dist/core/{PixelSort-C7TX1ClH.js → PixelSort-Dm2iMElk.js} +2 -2
- package/dist/core/{PixelThrow-DpKEZPMK.js → PixelThrow-gRTKhK8X.js} +1 -1
- package/dist/core/{Pixelate-C2OQUtqr.js → Pixelate-B8ZnTAOo.js} +1 -1
- package/dist/core/{Plasma-DLq9HroF.js → Plasma-BEub5fXm.js} +3 -3
- package/dist/core/{Plastic-C2hiOaXw.js → Plastic-DMJ99k56.js} +6 -6
- package/dist/core/{PolarCoordinates-Bumv-Hi3.js → PolarCoordinates-DOhGjR_6.js} +1 -1
- package/dist/core/{Polygon-DOpR58g4.js → Polygon-D0hD4asI.js} +2 -2
- package/dist/core/{Posterize-CVNOkDme.js → Posterize-OvT-UsAO.js} +1 -1
- package/dist/core/{Prism-CCQ1BsBL.js → Prism-DYBxTA6Z.js} +2 -2
- package/dist/core/{ProgressiveBlur-Cprr1XSE.js → ProgressiveBlur-Da5uOM1i.js} +3 -3
- package/dist/core/{RadialGradient-CsmCSySC.js → RadialGradient-o_6P-7Dn.js} +2 -2
- package/dist/core/{RadialWipe-BAnsqol4.js → RadialWipe-gmGpyKWI.js} +1 -1
- package/dist/core/{RandomBars-DdhtxO8o.js → RandomBars-CrDa3Bam.js} +2 -2
- package/dist/core/{ReactionDiffusion-Bih4xEtV.js → ReactionDiffusion-DWTCvJJu.js} +2 -2
- package/dist/core/{RectangularCoordinates-CKKA2oY1.js → RectangularCoordinates-PM_QP9Cg.js} +1 -1
- package/dist/core/{ReflectivePlane-u3Tje37M.js → ReflectivePlane-BpXGIShc.js} +3 -3
- package/dist/core/{Repeater-C-agsqBS.js → Repeater-CE4LJUbK.js} +1 -1
- package/dist/core/{Ring-Cj7bR89h.js → Ring-DObEwgX4.js} +2 -2
- package/dist/core/{RippleWipe-VL1MMd5o.js → RippleWipe-DQNw1oen.js} +1 -1
- package/dist/core/{Ripples-B88TeopS.js → Ripples-DKMqucX3.js} +2 -2
- package/dist/core/{RoundedRect-jn8_QLrT.js → RoundedRect-CFd87T89.js} +2 -2
- package/dist/core/{Saturation-dCNIhHq2.js → Saturation-BA0cEqnb.js} +1 -1
- package/dist/core/{Scratches-Dz_1Ptk0.js → Scratches-CvOYMmEB.js} +5 -5
- package/dist/core/{Sharpness-Bxq4YiRL.js → Sharpness-B25UDMka.js} +1 -1
- package/dist/core/{Shatter-DsuYUr-1.js → Shatter-BSaxWBf3.js} +2 -2
- package/dist/core/{SimplexNoise-CvalBPNF.js → SimplexNoise-X8ctCpRm.js} +4 -4
- package/dist/core/{SineWave-XPK5BsPB.js → SineWave-BZpbJLxE.js} +2 -2
- package/dist/core/{SliceWipe-gSs_VRwf.js → SliceWipe-CgUPHf9K.js} +1 -1
- package/dist/core/{Smoke-kzRXFLW9.js → Smoke-B7xEP6sH.js} +3 -3
- package/dist/core/{SmokeFill-DQZeqiwX.js → SmokeFill-B0nTuWPV.js} +5 -5
- package/dist/core/{SmokeFlow-n23YvKoI.js → SmokeFlow-B0Li2heA.js} +3 -3
- package/dist/core/{Solarize-DINiQSz1.js → Solarize-BFDNOt5j.js} +1 -1
- package/dist/core/{Spherize-BLY2eqBV.js → Spherize-B6SvuqQJ.js} +1 -1
- package/dist/core/{Spiral-CWCmvI3m.js → Spiral-CPZP_vQa.js} +2 -2
- package/dist/core/{Star-9WSeF-vW.js → Star-CcfONMfP.js} +2 -2
- package/dist/core/{Stone-CVO2Ey8i.js → Stone-4agvCnSU.js} +2 -2
- package/dist/core/{Strands-D9Sz1vX9.js → Strands-CmapxVwQ.js} +2 -2
- package/dist/core/{Stretch-DMT2Y6kN.js → Stretch-C1LWL_wK.js} +1 -1
- package/dist/core/{Stripes-DPVbOQkX.js → Stripes-EOLd6RRs.js} +2 -2
- package/dist/core/{StudioBackground-5JgYClrr.js → StudioBackground-C7jsxhTF.js} +351 -402
- package/dist/core/{SunBurst-Din5CIAU.js → SunBurst-CW8v2t1A.js} +2 -2
- package/dist/core/{Surface3D-CW2ApEgt.js → Surface3D-GduOaT4l.js} +3 -3
- package/dist/core/{Swirl-DrchXPfh.js → Swirl-DOWMWPUy.js} +2 -2
- package/dist/core/{Teardrop-CDt_XA4d.js → Teardrop-D4g6UQ84.js} +2 -2
- package/dist/core/{Text-o_dubJeo.js → Text-BcmS8Qpt.js} +2 -2
- package/dist/core/{ThinFilm-d7IlUY62.js → ThinFilm-CA62fdTo.js} +4 -4
- package/dist/core/{TiltShift-DJVcMb_M.js → TiltShift-CYsneEnY.js} +3 -3
- package/dist/core/{TimeTrail-D1Gir7BK.js → TimeTrail-UGRKixHj.js} +2 -2
- package/dist/core/{Tint-Cak_PyOJ.js → Tint-DjGTug2D.js} +1 -1
- package/dist/core/{Trapezoid-DnFhlKCD.js → Trapezoid-bgyR835g.js} +2 -2
- package/dist/core/{TriangularGrid-BE9CgVlb.js → TriangularGrid-CUSkwEhh.js} +2 -2
- package/dist/core/{Tritone-mqU9b4YZ.js → Tritone-0AbzRJ53.js} +1 -1
- package/dist/core/{Truchet-yLdaw6z4.js → Truchet-C3rl-XiI.js} +1 -1
- package/dist/core/{Twirl-SA6uh8pI.js → Twirl-CPZBpUkY.js} +1 -1
- package/dist/core/{VHS-Ch-bVeit.js → VHS-BIeq0vbY.js} +1 -1
- package/dist/core/{VenetianBlinds-CboEoPIZ.js → VenetianBlinds-sWQYWM0-.js} +1 -1
- package/dist/core/{Vesica-DmJWzk7E.js → Vesica-CG1x-_aG.js} +2 -2
- package/dist/core/{Vibrance-7rW_G3qT.js → Vibrance-gTtCSaNa.js} +1 -1
- package/dist/core/{VideoTexture-Ctk5_1F8.js → VideoTexture-DqfCv_YE.js} +1 -1
- package/dist/core/{Vignette-DXtlR5LT.js → Vignette-y7R3ujxN.js} +1 -1
- package/dist/core/{Voronoi-B0ZrQ6QO.js → Voronoi--B90OaVd.js} +2 -2
- package/dist/core/{Water-DfwGqSnM.js → Water-BvymB3Av.js} +6 -6
- package/dist/core/{Watercolor-BAShYSu7.js → Watercolor-C7vDF39A.js} +2 -2
- package/dist/core/{WaveDistortion-Cj4QBBKm.js → WaveDistortion-DMfhW-zm.js} +2 -2
- package/dist/core/{WaveletNoise-DYiU_ziD.js → WaveletNoise-CqnpQKOm.js} +5 -5
- package/dist/core/{Weave-DVefdB9i.js → Weave-CcYi9PzL.js} +1 -1
- package/dist/core/{WebcamTexture-BO9jNxcP.js → WebcamTexture-C_tF_65y.js} +2 -2
- package/dist/core/{Wool-D304TmpD.js → Wool-CpI-Xd6P.js} +2 -2
- package/dist/core/{WorleyNoise-B5FBTklZ.js → WorleyNoise-DqYFie3m.js} +2 -2
- package/dist/core/{ZoomBlur-DxySopLs.js → ZoomBlur-CSFf3Q4x.js} +1 -1
- package/dist/core/{agents-c-JjGH1b.js → agents-BuYW06Wk.js} +1 -1
- package/dist/core/{blur-DKmdsW6d.js → blur-BAqURXkj.js} +3 -3
- package/dist/core/{compute-BoeIXi0l.js → compute-DYJOCqJI.js} +1 -1
- package/dist/core/{edges-BZUKQxSE.js → edges-Dm0I-Ud7.js} +10 -10
- package/dist/core/{glass-BVqgjSPg.js → glass-ClmiwTb0.js} +8 -8
- package/dist/core/gpu/composer.d.ts +1 -0
- package/dist/core/gpu/composer.d.ts.map +1 -1
- package/dist/core/gpu/index.d.ts.map +1 -1
- package/dist/core/gpu/kit/blur.d.ts +7 -7
- package/dist/core/gpu/kit/blur.d.ts.map +1 -1
- package/dist/core/gpu/kit/effects/glass.d.ts.map +1 -1
- package/dist/core/gpu/porters.d.ts +1 -1
- package/dist/core/gpu/porters.d.ts.map +1 -1
- package/dist/core/index.js +215 -204
- package/dist/core/{media-Ds6MRfGR.js → media-_wFh8vJm.js} +1 -1
- package/dist/core/{noise-Cq0KUOSC.js → noise-C_ZfgxTN.js} +1 -1
- package/dist/core/{noiseColor-CQyzqpVZ.js → noiseColor-88y7I7KI.js} +2 -2
- package/dist/core/{noiseColor-DjCUZ_8u.js → noiseColor-Buljb-6r.js} +1 -1
- package/dist/core/{noiseStylize-fKVcJbGK.js → noiseStylize-7YW6DiP4.js} +2 -2
- package/dist/core/{porters-DogLzpKT.js → porters-DnWlc17D.js} +1 -1
- package/dist/core/presetRenderer.d.ts.map +1 -1
- package/dist/core/registry.js +205 -204
- package/dist/core/{sdf-o99ONcMJ.js → sdf-B5E-Vv1j.js} +1 -1
- package/dist/core/shaderRegistry-DwraFv9_.js +427 -0
- package/dist/core/shaderRegistry.d.ts.map +1 -1
- package/dist/core/shaders/AngularBlur/index.js +4 -4
- package/dist/core/shaders/Arc/index.js +5 -5
- package/dist/core/shaders/Ascii/index.js +4 -4
- package/dist/core/shaders/Aurora/index.js +5 -5
- package/dist/core/shaders/BarShift/index.js +4 -4
- package/dist/core/shaders/BarnDoors/index.js +4 -4
- package/dist/core/shaders/Beam/index.js +4 -4
- package/dist/core/shaders/Bend/index.js +4 -4
- package/dist/core/shaders/Blob/index.js +4 -4
- package/dist/core/shaders/BlockDissolve/index.js +5 -5
- package/dist/core/shaders/BlockNoise/index.js +7 -7
- package/dist/core/shaders/BlueNoise/index.js +7 -7
- package/dist/core/shaders/Blur/index.js +5 -5
- package/dist/core/shaders/Boids/index.js +6 -6
- package/dist/core/shaders/BokehBlur/index.js +5 -5
- package/dist/core/shaders/BrickPattern/index.js +4 -4
- package/dist/core/shaders/BrightnessContrast/index.js +4 -4
- package/dist/core/shaders/BrushedMetal/index.js +8 -8
- package/dist/core/shaders/Bulge/index.js +4 -4
- package/dist/core/shaders/CRTScreen/index.js +4 -4
- package/dist/core/shaders/CarbonFiber/index.js +8 -8
- package/dist/core/shaders/Chalkboard/index.js +4 -4
- package/dist/core/shaders/ChannelBlur/index.js +5 -5
- package/dist/core/shaders/CheckerWipe/index.js +4 -4
- package/dist/core/shaders/Checkerboard/index.js +4 -4
- package/dist/core/shaders/Chevron/index.js +4 -4
- package/dist/core/shaders/ChromaFlow/index.js +4 -4
- package/dist/core/shaders/ChromaticAberration/index.js +4 -4
- package/dist/core/shaders/Circle/index.js +5 -5
- package/dist/core/shaders/ColorWheel/index.js +4 -4
- package/dist/core/shaders/CompressionArtifacts/index.js +4 -4
- package/dist/core/shaders/ConcentricSpin/index.js +4 -4
- package/dist/core/shaders/ConicGradient/index.js +4 -4
- package/dist/core/shaders/ContourLines/index.js +4 -4
- package/dist/core/shaders/CornerPin/index.js +4 -4
- package/dist/core/shaders/Crescent/index.js +5 -5
- package/dist/core/shaders/Cross/index.js +5 -5
- package/dist/core/shaders/Crystal/index.js +8 -8
- package/dist/core/shaders/CurlNoise/index.js +7 -7
- package/dist/core/shaders/CursorRipples/index.js +4 -4
- package/dist/core/shaders/CursorTrail/index.js +4 -4
- package/dist/core/shaders/DataMosh/index.js +4 -4
- package/dist/core/shaders/DiamondGradient/index.js +4 -4
- package/dist/core/shaders/DiamondWipe/index.js +4 -4
- package/dist/core/shaders/DiffuseBlur/index.js +4 -4
- package/dist/core/shaders/DisplacementMap/index.js +4 -4
- package/dist/core/shaders/Dither/index.js +4 -4
- package/dist/core/shaders/DotGrid/index.js +4 -4
- package/dist/core/shaders/DropShadow/index.js +4 -4
- package/dist/core/shaders/Duotone/index.js +4 -4
- package/dist/core/shaders/Ellipse/index.js +5 -5
- package/dist/core/shaders/Emboss/index.js +7 -7
- package/dist/core/shaders/Engraving/index.js +5 -5
- package/dist/core/shaders/ErosionNoise/index.js +7 -7
- package/dist/core/shaders/Exposure/index.js +4 -4
- package/dist/core/shaders/FallingLines/index.js +4 -4
- package/dist/core/shaders/FilmGrain/index.js +4 -4
- package/dist/core/shaders/FilmStock/index.js +5 -5
- package/dist/core/shaders/Flip/index.js +4 -4
- package/dist/core/shaders/FloatingParticles/index.js +6 -6
- package/dist/core/shaders/FlowField/index.js +5 -5
- package/dist/core/shaders/Flower/index.js +5 -5
- package/dist/core/shaders/FlowingGradient/index.d.ts.map +1 -1
- package/dist/core/shaders/FlowingGradient/index.js +5 -5
- package/dist/core/shaders/FlutedGlass/index.js +4 -4
- package/dist/core/shaders/Fog/index.js +4 -4
- package/dist/core/shaders/Form3D/index.js +4 -4
- package/dist/core/shaders/FractalNoise/index.js +6 -6
- package/dist/core/shaders/Frost/index.js +8 -8
- package/dist/core/shaders/GaborNoise/index.js +7 -7
- package/dist/core/shaders/Glass/index.js +8 -8
- package/dist/core/shaders/GlassTiles/index.js +4 -4
- package/dist/core/shaders/Glitch/index.js +4 -4
- package/dist/core/shaders/Glow/index.js +5 -5
- package/dist/core/shaders/Godrays/index.js +4 -4
- package/dist/core/shaders/Goo/index.js +7 -7
- package/dist/core/shaders/GradientMap/index.js +4 -4
- package/dist/core/shaders/Grayscale/index.js +4 -4
- package/dist/core/shaders/Grid/index.js +4 -4
- package/dist/core/shaders/GridDistortion/index.js +4 -4
- package/dist/core/shaders/Group/index.js +4 -4
- package/dist/core/shaders/HTMLInCanvas/index.js +4 -4
- package/dist/core/shaders/Halftone/index.js +4 -4
- package/dist/core/shaders/Heart/index.js +5 -5
- package/dist/core/shaders/Heatmap/index.js +8 -8
- package/dist/core/shaders/HexGrid/index.js +4 -4
- package/dist/core/shaders/Hologram/index.js +8 -8
- package/dist/core/shaders/Holographic/index.js +8 -8
- package/dist/core/shaders/HueShift/index.js +4 -4
- package/dist/core/shaders/ImageTexture/index.js +5 -5
- package/dist/core/shaders/InkFlow/index.js +4 -4
- package/dist/core/shaders/Invert/index.js +4 -4
- package/dist/core/shaders/IrisWipe/index.js +4 -4
- package/dist/core/shaders/IsometricCubes/index.js +4 -4
- package/dist/core/shaders/Kaleidoscope/index.js +4 -4
- package/dist/core/shaders/KeyFrames/index.js +4 -4
- package/dist/core/shaders/LensDistortion/index.d.ts +123 -0
- package/dist/core/shaders/LensDistortion/index.d.ts.map +1 -0
- package/dist/core/shaders/LensDistortion/index.js +8 -0
- package/dist/core/shaders/LensFlare/index.js +4 -4
- package/dist/core/shaders/LightEdge/index.js +8 -8
- package/dist/core/shaders/LightLeak/index.js +5 -5
- package/dist/core/shaders/LinearBlur/index.js +4 -4
- package/dist/core/shaders/LinearGradient/index.js +4 -4
- package/dist/core/shaders/LinearWipe/index.js +4 -4
- package/dist/core/shaders/LiquidMetal/index.js +8 -8
- package/dist/core/shaders/Liquify/index.js +4 -4
- package/dist/core/shaders/MagneticFilings/index.js +6 -6
- package/dist/core/shaders/Marble/index.js +5 -5
- package/dist/core/shaders/Mirror/index.js +4 -4
- package/dist/core/shaders/MultiPointGradient/index.js +4 -4
- package/dist/core/shaders/Neon/index.js +6 -6
- package/dist/core/shaders/NoiseDissolve/index.js +5 -5
- package/dist/core/shaders/ObjectTracker/index.js +5 -5
- package/dist/core/shaders/PagePeel/index.js +4 -4
- package/dist/core/shaders/Paper/index.js +5 -5
- package/dist/core/shaders/Parallelogram/index.js +5 -5
- package/dist/core/shaders/ParticleField/index.js +6 -6
- package/dist/core/shaders/ParticleFlow/index.js +6 -6
- package/dist/core/shaders/Particles/index.js +8 -8
- package/dist/core/shaders/PerlinNoise/index.js +7 -7
- package/dist/core/shaders/Perspective/index.js +4 -4
- package/dist/core/shaders/PixelSort/index.js +4 -4
- package/dist/core/shaders/PixelThrow/index.js +4 -4
- package/dist/core/shaders/Pixelate/index.js +4 -4
- package/dist/core/shaders/Plasma/index.js +5 -5
- package/dist/core/shaders/Plastic/index.js +8 -8
- package/dist/core/shaders/PolarCoordinates/index.js +4 -4
- package/dist/core/shaders/Polygon/index.js +5 -5
- package/dist/core/shaders/Posterize/index.js +4 -4
- package/dist/core/shaders/Prism/index.js +4 -4
- package/dist/core/shaders/ProgressiveBlur/index.js +5 -5
- package/dist/core/shaders/RadialGradient/index.js +4 -4
- package/dist/core/shaders/RadialWipe/index.js +4 -4
- package/dist/core/shaders/RandomBars/index.js +5 -5
- package/dist/core/shaders/ReactionDiffusion/index.js +4 -4
- package/dist/core/shaders/RectangularCoordinates/index.js +4 -4
- package/dist/core/shaders/ReflectivePlane/index.js +5 -5
- package/dist/core/shaders/Repeater/index.js +4 -4
- package/dist/core/shaders/Ring/index.js +5 -5
- package/dist/core/shaders/RippleWipe/index.js +4 -4
- package/dist/core/shaders/Ripples/index.js +4 -4
- package/dist/core/shaders/RoundedRect/index.js +5 -5
- package/dist/core/shaders/Saturation/index.js +4 -4
- package/dist/core/shaders/Scratches/index.js +7 -7
- package/dist/core/shaders/Sharpness/index.js +4 -4
- package/dist/core/shaders/Shatter/index.js +4 -4
- package/dist/core/shaders/SimplexNoise/index.js +6 -6
- package/dist/core/shaders/SineWave/index.js +4 -4
- package/dist/core/shaders/SliceWipe/index.js +4 -4
- package/dist/core/shaders/Smoke/index.js +4 -4
- package/dist/core/shaders/SmokeFill/index.js +7 -7
- package/dist/core/shaders/SmokeFlow/index.js +4 -4
- package/dist/core/shaders/Solarize/index.js +4 -4
- package/dist/core/shaders/SolidColor/index.js +1 -1
- package/dist/core/shaders/Spherize/index.js +4 -4
- package/dist/core/shaders/Spiral/index.js +4 -4
- package/dist/core/shaders/Star/index.js +5 -5
- package/dist/core/shaders/Stone/index.js +4 -4
- package/dist/core/shaders/Strands/index.js +4 -4
- package/dist/core/shaders/Stretch/index.js +4 -4
- package/dist/core/shaders/Stripes/index.js +4 -4
- package/dist/core/shaders/StudioBackground/index.d.ts +1 -1
- package/dist/core/shaders/StudioBackground/index.d.ts.map +1 -1
- package/dist/core/shaders/StudioBackground/index.js +4 -4
- package/dist/core/shaders/SunBurst/index.js +4 -4
- package/dist/core/shaders/Surface3D/index.js +5 -5
- package/dist/core/shaders/Swirl/index.js +4 -4
- package/dist/core/shaders/Teardrop/index.js +5 -5
- package/dist/core/shaders/Text/index.js +5 -5
- package/dist/core/shaders/ThinFilm/index.js +6 -6
- package/dist/core/shaders/TiltShift/index.js +5 -5
- package/dist/core/shaders/TimeTrail/index.js +4 -4
- package/dist/core/shaders/Tint/index.js +4 -4
- package/dist/core/shaders/Trapezoid/index.js +5 -5
- package/dist/core/shaders/TriangularGrid/index.js +4 -4
- package/dist/core/shaders/Tritone/index.js +4 -4
- package/dist/core/shaders/Truchet/index.js +4 -4
- package/dist/core/shaders/Twirl/index.js +4 -4
- package/dist/core/shaders/VHS/index.js +4 -4
- package/dist/core/shaders/VenetianBlinds/index.js +4 -4
- package/dist/core/shaders/Vesica/index.js +5 -5
- package/dist/core/shaders/Vibrance/index.js +4 -4
- package/dist/core/shaders/VideoTexture/index.js +4 -4
- package/dist/core/shaders/Vignette/index.js +4 -4
- package/dist/core/shaders/Voronoi/index.js +4 -4
- package/dist/core/shaders/Water/index.js +8 -8
- package/dist/core/shaders/Watercolor/index.js +5 -5
- package/dist/core/shaders/WaveDistortion/index.js +4 -4
- package/dist/core/shaders/WaveletNoise/index.js +7 -7
- package/dist/core/shaders/Weave/index.js +4 -4
- package/dist/core/shaders/WebcamTexture/index.js +5 -5
- package/dist/core/shaders/Wool/index.js +4 -4
- package/dist/core/shaders/WorleyNoise/index.js +4 -4
- package/dist/core/shaders/ZoomBlur/index.js +4 -4
- package/dist/core/{shapeEffectBounds-Dg4GQ5vW.js → shapeEffectBounds-CjOvQ3n3.js} +13 -9
- package/dist/core/utilities/shapeEffectBounds.d.ts.map +1 -1
- package/dist/js/bundle.js +171 -171
- package/dist/js/createShader.js +1 -1
- package/dist/js/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/js/utils/generatePresetCode.js +27 -0
- package/dist/react/LensDistortion.js +226 -0
- package/dist/react/Preview.js +1 -0
- package/dist/react/Shader.js +1 -1
- package/dist/react/bundle.js +148 -148
- package/dist/react/components/LensDistortion.d.ts +54 -0
- package/dist/react/components/LensDistortion.d.ts.map +1 -0
- 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 +27 -0
- package/dist/registry.js +763 -125
- package/dist/solid/components/LensDistortion.d.ts +51 -0
- package/dist/solid/components/LensDistortion.d.ts.map +1 -0
- package/dist/solid/components/LensDistortion.js +232 -0
- package/dist/solid/engine/Preview.d.ts.map +1 -1
- package/dist/solid/engine/Preview.js +193 -191
- 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 +194 -192
- package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/solid/utils/generatePresetCode.js +27 -0
- package/dist/svelte/components/LensDistortion.svelte.d.ts +41 -0
- package/dist/svelte/index.d.ts +1 -0
- package/dist/svelte/index.js +2751 -2544
- package/dist/svelte/source/components/LensDistortion.svelte +365 -0
- package/dist/svelte/source/engine/Preview.svelte +2 -0
- package/dist/svelte/source/index.js +1 -0
- package/dist/svelte/utils/generatePresetCode.js +27 -0
- package/dist/vue/LensDistortion.js +3 -0
- package/dist/vue/LensDistortion.vue_vue_type_script_setup_true_lang.js +244 -0
- package/dist/vue/Preview.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/vue/Shader.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/vue/components/LensDistortion.vue.d.ts +76 -0
- package/dist/vue/components/LensDistortion.vue.d.ts.map +1 -0
- 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 +27 -0
- package/package.json +9 -1
- package/dist/core/shaderRegistry-BSrnuqx-.js +0 -425
- /package/dist/core/{SolidColor-Cu_9b_my.js → SolidColor-dYxjV0YF.js} +0 -0
- /package/dist/core/{fonts-v_F1SFl9.js → fonts-DFuXI3Hk.js} +0 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
import { BlendMode, PropDriver, TransformConfig, BoundingBoxConfig, LayoutConfig } from '../../core';
|
|
3
|
+
import { ComponentProps } from '../../core/shaders/LensDistortion';
|
|
4
|
+
export type { ComponentProps };
|
|
5
|
+
/**
|
|
6
|
+
* Base props that all shader components have
|
|
7
|
+
*/
|
|
8
|
+
interface BaseShaderProps {
|
|
9
|
+
children?: JSX.Element;
|
|
10
|
+
blendMode?: BlendMode;
|
|
11
|
+
opacity?: number;
|
|
12
|
+
visible?: boolean;
|
|
13
|
+
id?: string;
|
|
14
|
+
maskSource?: string;
|
|
15
|
+
maskType?: string;
|
|
16
|
+
renderOrder?: number;
|
|
17
|
+
transform?: Partial<TransformConfig>;
|
|
18
|
+
boundingBox?: Partial<BoundingBoxConfig>;
|
|
19
|
+
flow?: LayoutConfig;
|
|
20
|
+
absolute?: boolean;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Component-specific props that merge base props with shader-specific props
|
|
24
|
+
* Note: ComponentProps are made optional since they have defaults from the shader definition
|
|
25
|
+
*/
|
|
26
|
+
type ShaderComponentProps = BaseShaderProps & Partial<Omit<ComponentProps, 'center' | 'spread' | 'angle' | 'perspective' | 'bias' | 'count' | 'dispersion' | 'dispersionShift' | 'dispersionColor' | 'focusCenter' | 'focusEdges' | 'lensBulge' | 'lensCircle' | 'swirl' | 'noise' | 'noiseFrequency' | 'noiseOffset' | 'grainMixer' | 'grainOverlay'>> & {
|
|
27
|
+
center?: ComponentProps['center'] | PropDriver;
|
|
28
|
+
spread?: ComponentProps['spread'] | PropDriver;
|
|
29
|
+
angle?: ComponentProps['angle'] | PropDriver;
|
|
30
|
+
perspective?: ComponentProps['perspective'] | PropDriver;
|
|
31
|
+
bias?: ComponentProps['bias'] | PropDriver;
|
|
32
|
+
count?: ComponentProps['count'] | PropDriver;
|
|
33
|
+
dispersion?: ComponentProps['dispersion'] | PropDriver;
|
|
34
|
+
dispersionShift?: ComponentProps['dispersionShift'] | PropDriver;
|
|
35
|
+
dispersionColor?: ComponentProps['dispersionColor'] | PropDriver;
|
|
36
|
+
focusCenter?: ComponentProps['focusCenter'] | PropDriver;
|
|
37
|
+
focusEdges?: ComponentProps['focusEdges'] | PropDriver;
|
|
38
|
+
lensBulge?: ComponentProps['lensBulge'] | PropDriver;
|
|
39
|
+
lensCircle?: ComponentProps['lensCircle'] | PropDriver;
|
|
40
|
+
swirl?: ComponentProps['swirl'] | PropDriver;
|
|
41
|
+
noise?: ComponentProps['noise'] | PropDriver;
|
|
42
|
+
noiseFrequency?: ComponentProps['noiseFrequency'] | PropDriver;
|
|
43
|
+
noiseOffset?: ComponentProps['noiseOffset'] | PropDriver;
|
|
44
|
+
grainMixer?: ComponentProps['grainMixer'] | PropDriver;
|
|
45
|
+
grainOverlay?: ComponentProps['grainOverlay'] | PropDriver;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* The main Solid wrapper component for Shader shader nodes
|
|
49
|
+
*/
|
|
50
|
+
export default function ShaderComponent(props: ShaderComponentProps): JSX.Element;
|
|
51
|
+
//# sourceMappingURL=LensDistortion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LensDistortion.d.ts","sourceRoot":"","sources":["../../src/components/LensDistortion.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import { createComponent, memo, template, setAttribute, insert, Portal, spread, mergeProps, use } from "solid-js/web";
|
|
2
|
+
import { splitProps, createUniqueId, createMemo, createSignal, onMount, onCleanup, createEffect } from "solid-js";
|
|
3
|
+
import { resolveBoundingBox, createGpuUniformsMap } from "../../core/index.js";
|
|
4
|
+
import { setColorSpaceMode } from "../../core/utilities/transformations/index.js";
|
|
5
|
+
import { componentDefinition } from "../../core/shaders/LensDistortion/index.js";
|
|
6
|
+
import { useShaderContext, ShaderContext } from "../engine/Shader.js";
|
|
7
|
+
var _tmpl$ = /* @__PURE__ */ template(`<span style=display:contents>`), _tmpl$2 = /* @__PURE__ */ template(`<canvas>`);
|
|
8
|
+
let _experimentalWarnedOnce = false;
|
|
9
|
+
if (componentDefinition.experimental && !_experimentalWarnedOnce) {
|
|
10
|
+
_experimentalWarnedOnce = true;
|
|
11
|
+
const _e = componentDefinition.experimental;
|
|
12
|
+
console.info(`%c⚠ [Shaders] ${componentDefinition.name} is experimental: ${_e.message}`, "color: #f59e0b; font-weight: bold");
|
|
13
|
+
}
|
|
14
|
+
function isPropDriver(value) {
|
|
15
|
+
return typeof value === "object" && value !== null && "type" in value && (value.type === "map" || value.type === "mouse" || value.type === "mouse-position" || value.type === "auto-animate");
|
|
16
|
+
}
|
|
17
|
+
const DEFAULT_TRANSFORM = {
|
|
18
|
+
offsetX: 0,
|
|
19
|
+
offsetY: 0,
|
|
20
|
+
rotation: 0,
|
|
21
|
+
scale: 1,
|
|
22
|
+
anchorX: 0.5,
|
|
23
|
+
anchorY: 0.5,
|
|
24
|
+
edges: "transparent"
|
|
25
|
+
};
|
|
26
|
+
const defaultProps = {
|
|
27
|
+
blendMode: "normal",
|
|
28
|
+
visible: true
|
|
29
|
+
// opacity intentionally has no default - handled by renderer
|
|
30
|
+
// transform intentionally has no default - handled by effectiveTransform
|
|
31
|
+
};
|
|
32
|
+
try {
|
|
33
|
+
if (componentDefinition && componentDefinition.props) {
|
|
34
|
+
Object.entries(componentDefinition.props).forEach(([key, config]) => {
|
|
35
|
+
const propConfig = config;
|
|
36
|
+
if (propConfig && typeof propConfig === "object" && "default" in propConfig) {
|
|
37
|
+
defaultProps[key] = propConfig.default;
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
} catch (e) {
|
|
42
|
+
console.warn("Error extracting default props:", e);
|
|
43
|
+
}
|
|
44
|
+
function ShaderComponent(props) {
|
|
45
|
+
const [local, otherProps] = splitProps(props, ["children"]);
|
|
46
|
+
const context = useShaderContext();
|
|
47
|
+
const {
|
|
48
|
+
shaderParentId: parentId,
|
|
49
|
+
shaderNodeRegister: parentRegister,
|
|
50
|
+
shaderUniformUpdate: parentUniformUpdate,
|
|
51
|
+
shaderMetadataUpdate: parentMetadataUpdate,
|
|
52
|
+
shaderColorSpace
|
|
53
|
+
} = context;
|
|
54
|
+
const instanceId = (props.id ? props.id.replace(/[^a-zA-Z0-9_]/g, "_") : null) || createUniqueId();
|
|
55
|
+
const effectiveProps = createMemo(() => {
|
|
56
|
+
let baseProps = {
|
|
57
|
+
...defaultProps
|
|
58
|
+
};
|
|
59
|
+
for (const [key, value] of Object.entries(otherProps)) {
|
|
60
|
+
if (value !== void 0 && !isPropDriver(value)) {
|
|
61
|
+
baseProps[key] = value;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return baseProps;
|
|
65
|
+
});
|
|
66
|
+
const effectiveTransform = createMemo(() => ({
|
|
67
|
+
...DEFAULT_TRANSFORM,
|
|
68
|
+
...props.transform
|
|
69
|
+
}));
|
|
70
|
+
const effectiveBoundingBox = createMemo(() => resolveBoundingBox(props.boundingBox));
|
|
71
|
+
const mapsFromProps = createMemo(() => {
|
|
72
|
+
const maps = {};
|
|
73
|
+
for (const [key, value] of Object.entries(otherProps)) {
|
|
74
|
+
if (isPropDriver(value)) maps[key] = value;
|
|
75
|
+
}
|
|
76
|
+
return Object.keys(maps).length > 0 ? maps : void 0;
|
|
77
|
+
});
|
|
78
|
+
let uniformsMap = null;
|
|
79
|
+
const getUniformsMap = () => {
|
|
80
|
+
if (!uniformsMap) {
|
|
81
|
+
setColorSpaceMode(shaderColorSpace);
|
|
82
|
+
uniformsMap = createGpuUniformsMap(componentDefinition, effectiveProps(), instanceId);
|
|
83
|
+
}
|
|
84
|
+
return uniformsMap;
|
|
85
|
+
};
|
|
86
|
+
const childContextValue = createMemo(() => ({
|
|
87
|
+
...context,
|
|
88
|
+
shaderParentId: instanceId
|
|
89
|
+
}));
|
|
90
|
+
const isCapturesDOM = !!componentDefinition.capturesDOM;
|
|
91
|
+
let captureCanvasEl;
|
|
92
|
+
const [captureSize, setCaptureSize] = createSignal({
|
|
93
|
+
w: typeof window !== "undefined" ? Math.round(window.innerWidth * Math.min(window.devicePixelRatio, 2)) : 0,
|
|
94
|
+
h: typeof window !== "undefined" ? Math.round(window.innerHeight * Math.min(window.devicePixelRatio, 2)) : 0
|
|
95
|
+
});
|
|
96
|
+
if (isCapturesDOM) {
|
|
97
|
+
const onWinResize = () => {
|
|
98
|
+
const d = Math.min(window.devicePixelRatio, 2);
|
|
99
|
+
setCaptureSize({
|
|
100
|
+
w: Math.round(window.innerWidth * d),
|
|
101
|
+
h: Math.round(window.innerHeight * d)
|
|
102
|
+
});
|
|
103
|
+
};
|
|
104
|
+
onMount(() => window.addEventListener("resize", onWinResize));
|
|
105
|
+
onCleanup(() => window.removeEventListener("resize", onWinResize));
|
|
106
|
+
}
|
|
107
|
+
let markerRef;
|
|
108
|
+
let detectedRenderOrder = void 0;
|
|
109
|
+
let isRegistered = false;
|
|
110
|
+
onMount(() => {
|
|
111
|
+
const uniforms = getUniformsMap();
|
|
112
|
+
if (!uniforms) return;
|
|
113
|
+
try {
|
|
114
|
+
const metadata = {
|
|
115
|
+
blendMode: props.blendMode || "normal",
|
|
116
|
+
opacity: props.opacity,
|
|
117
|
+
visible: props.visible === false ? false : true,
|
|
118
|
+
id: props.id,
|
|
119
|
+
mask: props.maskSource ? {
|
|
120
|
+
source: props.maskSource,
|
|
121
|
+
type: props.maskType || "alpha"
|
|
122
|
+
} : void 0,
|
|
123
|
+
maps: mapsFromProps(),
|
|
124
|
+
renderOrder: props.renderOrder ?? detectedRenderOrder,
|
|
125
|
+
transform: effectiveTransform(),
|
|
126
|
+
boundingBox: effectiveBoundingBox(),
|
|
127
|
+
flow: props.flow,
|
|
128
|
+
absolute: props.absolute
|
|
129
|
+
};
|
|
130
|
+
parentRegister(instanceId, componentDefinition.fragment, parentId, metadata, uniforms, componentDefinition, isCapturesDOM ? captureCanvasEl : void 0);
|
|
131
|
+
isRegistered = true;
|
|
132
|
+
if (props.renderOrder === void 0 && markerRef) {
|
|
133
|
+
const parent = markerRef.parentElement;
|
|
134
|
+
if (parent) {
|
|
135
|
+
const siblings = parent.querySelectorAll(":scope > [data-shader-id]");
|
|
136
|
+
const position = Array.from(siblings).indexOf(markerRef);
|
|
137
|
+
if (position >= 0) {
|
|
138
|
+
detectedRenderOrder = position;
|
|
139
|
+
parentMetadataUpdate(instanceId, {
|
|
140
|
+
renderOrder: position
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
} catch (error) {
|
|
146
|
+
console.error("Error registering shader node:", error);
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
onCleanup(() => {
|
|
150
|
+
isRegistered = false;
|
|
151
|
+
parentRegister(instanceId, null, null, null, null);
|
|
152
|
+
});
|
|
153
|
+
createEffect(() => {
|
|
154
|
+
if (!isRegistered) return;
|
|
155
|
+
const uniforms = getUniformsMap();
|
|
156
|
+
if (!uniforms) return;
|
|
157
|
+
try {
|
|
158
|
+
const props_snapshot = effectiveProps();
|
|
159
|
+
Object.entries(uniforms).forEach(([propName, uniformData]) => {
|
|
160
|
+
if (!uniformData || typeof uniformData !== "object") return;
|
|
161
|
+
if (uniformData.value !== void 0 && propName in props_snapshot) {
|
|
162
|
+
const newValue = props_snapshot[propName];
|
|
163
|
+
parentUniformUpdate(instanceId, propName, newValue);
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
} catch (error) {
|
|
167
|
+
console.error("Error updating uniforms:", error);
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
createEffect(() => {
|
|
171
|
+
if (!isRegistered) return;
|
|
172
|
+
try {
|
|
173
|
+
const metadata = {
|
|
174
|
+
blendMode: props.blendMode || "normal",
|
|
175
|
+
opacity: props.opacity,
|
|
176
|
+
visible: props.visible === false ? false : true,
|
|
177
|
+
id: props.id,
|
|
178
|
+
mask: props.maskSource ? {
|
|
179
|
+
source: props.maskSource,
|
|
180
|
+
type: props.maskType || "alpha"
|
|
181
|
+
} : void 0,
|
|
182
|
+
maps: mapsFromProps(),
|
|
183
|
+
renderOrder: props.renderOrder ?? detectedRenderOrder,
|
|
184
|
+
transform: effectiveTransform(),
|
|
185
|
+
boundingBox: effectiveBoundingBox(),
|
|
186
|
+
flow: props.flow,
|
|
187
|
+
absolute: props.absolute
|
|
188
|
+
};
|
|
189
|
+
parentMetadataUpdate(instanceId, metadata);
|
|
190
|
+
} catch (error) {
|
|
191
|
+
console.error("Error updating metadata:", error);
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
const canUseDOM = typeof document !== "undefined" && typeof window !== "undefined";
|
|
195
|
+
return createComponent(ShaderContext.Provider, {
|
|
196
|
+
get value() {
|
|
197
|
+
return childContextValue();
|
|
198
|
+
},
|
|
199
|
+
get children() {
|
|
200
|
+
return [(() => {
|
|
201
|
+
var _el$ = _tmpl$();
|
|
202
|
+
var _ref$ = markerRef;
|
|
203
|
+
typeof _ref$ === "function" ? use(_ref$, _el$) : markerRef = _el$;
|
|
204
|
+
setAttribute(_el$, "data-shader-id", instanceId);
|
|
205
|
+
insert(_el$, () => (!isCapturesDOM || !canUseDOM) && local.children);
|
|
206
|
+
return _el$;
|
|
207
|
+
})(), memo(() => isCapturesDOM && canUseDOM && createComponent(Portal, {
|
|
208
|
+
get children() {
|
|
209
|
+
var _el$2 = _tmpl$2();
|
|
210
|
+
var _ref$2 = captureCanvasEl;
|
|
211
|
+
typeof _ref$2 === "function" ? use(_ref$2, _el$2) : captureCanvasEl = _el$2;
|
|
212
|
+
spread(_el$2, mergeProps({
|
|
213
|
+
"layoutsubtree": ""
|
|
214
|
+
}, {
|
|
215
|
+
get width() {
|
|
216
|
+
return captureSize().w;
|
|
217
|
+
},
|
|
218
|
+
get height() {
|
|
219
|
+
return captureSize().h;
|
|
220
|
+
},
|
|
221
|
+
"style": "position:fixed;inset:0;width:100vw;height:100vh;z-index:-9999"
|
|
222
|
+
}), false, true);
|
|
223
|
+
insert(_el$2, () => local.children);
|
|
224
|
+
return _el$2;
|
|
225
|
+
}
|
|
226
|
+
}))];
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
export {
|
|
231
|
+
ShaderComponent as default
|
|
232
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Preview.d.ts","sourceRoot":"","sources":["../../src/engine/Preview.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+C,KAAK,GAAG,EAAoC,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"Preview.d.ts","sourceRoot":"","sources":["../../src/engine/Preview.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+C,KAAK,GAAG,EAAoC,MAAM,UAAU,CAAA;AAkkBlH,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,KAAK,CAAC,EAAE,GAAG,CAAC,aAAa,GAAG,MAAM,CAAA;IAClC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;;;;;;;OAQG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACvC;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAID,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAK,EAAE,YAAY,eA6HlD"}
|