blog/maps/snow.min.js.map

1 line
8.6 KiB
Plaintext
Raw Normal View History

2024-11-25 08:05:21 +00:00
{"version":3,"sources":["snow.js"],"names":["_document$getElementB","snowConf","isSnowing","requestAnimationFrame","window","mozRequestAnimationFrame","webkitRequestAnimationFrame","msRequestAnimationFrame","callback","setTimeout","canvas","document","getElementById","ctx","getContext","flakeCount","mX","mY","flakes","width","innerWidth","height","innerHeight","snow","clearRect","minDist","i","flake","x","y","x2","y2","dist","Math","sqrt","xcomp","ycomp","deltaV","velX","velY","speed","cos","step","stepSize","fillStyle","opacity","reset","beginPath","arc","size","PI","fill","floor","random","startSnow","push","angle","addEventListener","e","clientX","clientY","localStorage","setItem","classList","add","removeItem","remove","_window$kr","getItem","kr","notMobile","init"],"mappings":"AAAA,cAAA,WAAK,IAAAA,EAEGC,EACY,IADZA,EAES,IAFTA,EAGO,gBAHPA,EAIM,EAJNA,EAKO,GALPA,EAMS,GANTA,EAOU,GAIVC,GAAY,EAEVC,EAAwBC,OAAOD,uBAAyBC,OAAOC,0BAA4BD,OAAOE,6BAA+BF,OAAOG,yBAA2B,SAASC,GAAUJ,OAAOK,WAAWD,EAAU,IAAK,KAC7NJ,OAAOD,sBAAwBA,EAC/B,IAAMO,EAASC,SAASC,eAAe,QACjCC,EAAMH,EAAOI,WAAW,MACxBC,EAAad,EACfe,GAAM,IAAKC,GAAM,IACjBC,EAAS,GACbR,EAAOS,MAAQf,OAAOgB,WACtBV,EAAOW,OAASjB,OAAOkB,YACvB,IAAMC,EAAO,SAAPA,IACF,GAAKrB,EAAL,CAKAW,EAAIW,UAAU,EAAG,EAAGd,EAAOS,MAAOT,EAAOW,QAGzC,IADA,IAAMI,EAAUxB,EACPyB,EAAI,EAAGA,EAAIX,EAAYW,IAAI,CAChC,IAAIC,EAAQT,EAAOQ,GACbE,EAAIZ,EAAIa,EAAIZ,EACZa,EAAKH,EAAMC,EAAGG,EAAKJ,EAAME,EACzBG,EAAOC,KAAKC,MAAMN,EAAIE,IAAKF,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S,OAC1CU,EAAUI,KAAKmB,MAAMnB,KAAKoB,SAAS3C,EAAOW,QAC1C4B,EAAyB,EAAdhB,KAAKoB,SAAcpD,EAC9BuC,EAAyB,EAAdP,KAAKoB,SAAcpD,EAC9B4C,EAAyB,GAAdZ,KAAKoB,SAAgBpD,EACtCiB,EAAOqC,KAAK,CACRf,MAAOA,EACPF,KAAM,EAAGC,KAAMC,EACfZ,EAAGA,EAAGC,EAAGA,EACToB,KAAMA,EACNN,SAAWV,KAAKoB,SAAY,GAAKpD,EACjCyC,KAAM,EACNc,MAAO,IACPX,QAASA,IAIjBtB,KAGJZ,SAAS8C,iBAAiB,aAAa,SAACC,GAAK1C,EAAK0C,EAAEC,QAAS1C,EAAKyC,EAAEE,WAEpExD,OAAOqD,iBAAiB,UAAS,WAAK/C,EAAOS,MAAQf,OAAOgB,WAAYV,EAAOW,OAASjB,OAAOkB,eAE/F,QAAAtB,EAAAW,SAASC,eAAe,sBAAxB,IAAAZ,GAAAA,EAAwCyD,iBAAiB,SAAS,WAE1DvD,GAEAO,YAAW,WAEPP,GAAY,IACb,KACH2D,aAAaC,QAAQ,mBAAmB,GACxCpD,EAAOqD,UAAUC,IAAI,cAGrB9D,GAAY,EACZ2D,aAAaI,WAAW,mBACxBvD,EAAOqD,UAAUG,OAAO,YAExBZ,QAvDK,WAAM,IAAAa,EAGf,GADmE,OAA5CN,aAAaO,QAAQ,qBACG,KAAzB,QAAAD,EAAA/D,OAAOiE,UAAP,IAAAF,OAAA,EAAAA,EAAWG,WAI7B,OAFApE,GAAY,OACZQ,EAAOqD,UAAUC,IAAI,YAIzBV,IAkDJiB,GAzIJ","file":"../js/snow.min.js","sourcesContent":["(()=>{\r\n // 设置雪花参数\r\n let snowConf = {\r\n flakeCount: 100,\r\n minDist: 150,\r\n color: \"255, 255, 255\",\r\n size: 2,\r\n speed: 0.5,\r\n opacity: 0.3,\r\n stepsize: .5,\r\n };\r\n\r\n // 记录下雪状态\r\n let isSnowing = true;\r\n\r\n const requestAnimationFrame = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame || function(callback){window.setTimeout(callback, 1000/60);};\r\n window.requestAnimationFrame = requestAnimationFrame;\r\n const canvas = document.getElementById(\"snow\");\r\n const ctx = canv