mirror of
https://gitee.com/ice-gl/icegl-three-vue-tres.git
synced 2025-04-05 06:22:43 +08:00
2 lines
11 KiB
JavaScript
2 lines
11 KiB
JavaScript
import{P as t}from"./tweakpane.yHWGBmom1725416517797.js";import{$ as n,d as e}from"./@tresjs.5lh7VmqZ1725416517797.js";import{d as s,j as r,_ as o,r as i,w as c,o as a,E as u,L as l,aj as p,ak as f,e as h,f as d,g,u as y}from"./@vue._6MD2XyK1725416517797.js";import{a6 as x,a0 as I,C as b}from"./three.VTQVqxMx1725416517797.js";import"./@vueuse.L-salR9N1725416517797.js";const m=z;!function(t,n){const e=z,s=S();for(;;)try{if(341015===parseInt(e(117))/1*(-parseInt(e(164))/2)+parseInt(e(167))/3*(-parseInt(e(139))/4)+-parseInt(e(151))/5*(parseInt(e(142))/6)+parseInt(e(154))/7*(-parseInt(e(131))/8)+-parseInt(e(152))/9*(parseInt(e(141))/10)+parseInt(e(119))/11*(-parseInt(e(179))/12)+-parseInt(e(136))/13*(-parseInt(e(132))/14))break;s.push(s.shift())}catch(r){s.push(s.shift())}}();const w=function(){let t=!0;return function(n,e){const s=t?function(){if(e){const t=e.apply(n,arguments);return e=null,t}}:function(){};return t=!1,s}}();!function(){w(this,(function(){const t=z,n=new RegExp("function *\\( *\\)"),e=new RegExp(t(176),"i"),s=Z(t(149));n[t(186)](s+t(137))&&e[t(186)](s+t(183))?Z():s("0")}))()}();const T=function(){let t=!0;return function(n,e){const s=t?function(){if(e){const t=e.apply(n,arguments);return e=null,t}}:function(){};return t=!1,s}}();function _(t,n){return Math[z(168)]()*(n-t)+t}function v(t,n){const e=z;return Math[e(125)](t+Math[e(168)]()*(n-t+1))}T(void 0,(function(){const t=z;let n;try{n=Function(t(172)+'{}.constructor("return this")( ));')()}catch(r){n=window}const e=n.console=n[t(185)]||{},s=[t(175),t(160),t(120),t(138),t(191),t(134),t(144)];for(let o=0;o<s[t(123)];o++){const n=T[t(189)][t(126)][t(133)](T),r=s[o],i=e[r]||n;n.__proto__=T[t(133)](T),n.toString=i[t(118)].bind(i),e[r]=n}}))();let j=0,k=0,M=null;let A=0;const E=[];let R=10;class C{constructor(){const t=z;this[t(180)]=[],this.rspeed=_(1,2),this[t(121)]=v(10,30),this.x=j/2+1,this.y=k/2+1,this[t(188)]={x:j/2,y:k/2},this.dist=0,this[t(159)]=0,this[t(127)]=A/5,this[t(192)]=1,this[t(147)](),this[t(146)]()}step(t){const n=z;this[n(182)]=this[n(165)]*R,this.x+=Math[n(122)](this[n(159)])*this[n(182)],this.y+=Math[n(145)](this.angle)*this[n(182)],this[n(146)](),this.dist<this[n(182)]&&(this.x=this[n(188)].x,this.y=this[n(188)].y,this[n(178)]()),this[n(180)][n(128)]({x:this.x,y:this.y}),this[n(180)][n(123)]>this[n(121)]&&this.path[n(130)](),this[n(192)]-=.001,this[n(192)]<=0&&(this[n(180)]=null,E[n(161)](t,1))}[m(146)](){const t=m,n=this[t(188)].x-this.x,e=this[t(188)].y-this.y;this[t(124)]=Math[t(181)](n*n+e*e)}[m(147)](){const t=m,n=this[t(188)].x-this.x,e=this[t(188)].y-this.y;this[t(159)]=Math[t(155)](e,n)}[m(178)](){const t=m;switch(v(0,3)){case 0:this[t(188)].y=this.y-30;break;case 1:this[t(188)].x=this.x+30;break;case 2:this[t(188)].y=this.y+30;break;case 3:this.target.x=this.x-30}this.updateAngle()}[m(143)](){const t=m;M.beginPath();const n=_(0,10);for(let s=0,r=this[t(180)][t(123)];s<r;s++)M[t(0===s?177:156)](this[t(180)][s].x+_(-n,n),this[t(180)][s].y+_(-n,n));let e=this[t(127)];e=30,M[t(187)]="hsla("+_(0,30)+t(148)+this[t(192)]/3+")",M[t(150)]=_(.1,2),M.stroke()}}function z(t,n){const e=S();return(z=function(t,n){return e[t-=117]})(t,n)}function S(){const t=["lineWidth","5kEdTld","414JgfNTi","action","48398mCIqsZ","atan2","lineTo","string","apply","angle","warn","splice","gger","step","314xebIgu","rspeed","debu","120045ulxWrV","random","globalCompositeOperation","lighter","translate","return (function() ","hsla(0, 0%, 10%, 0.1)","save","log","\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)","moveTo","changeTarget","7346424BobMFG","path","sqrt","speed","input","destination-out","console","test","strokeStyle","target","constructor","restore","exception","life","2092sAnKnv","toString","11vhUGkf","info","count","cos","length","dist","floor","prototype","hue","push","fillRect","shift","376HRJhOg","33057094LYTBWw","bind","table","counter","13RgZAvW","chain","error","4jkkjVn","fillStyle","71270vHAinY","2320470jgcNpm","draw","trace","sin","updateDist","updateAngle",", 0%, 80%, ","init"];return(S=function(){return t})()}const G=()=>{A%10==0&&E.push(new C),function(){const t=m;let n=E[t(123)];for(;n--;)E[n][t(163)](n)}(),function(){const t=m;M[t(169)]=t(184),M[t(140)]=t(173),M[t(129)](0,0,j,k),M.globalCompositeOperation=t(170)}(),function(){const t=m;M[t(174)](),M.translate(j/2,k/2),M[t(171)](-j/2,-k/2);let n=E.length;for(;n--;)E[n].draw(n);M[t(190)]()}(),A++};function Z(t){function n(t){const e=z;if(typeof t===e(157))return function(t){}.constructor("while (true) {}")[e(158)](e(135));1!==(""+t/t)[e(123)]||t%20==0?function(){return!0}[e(189)](e(166)+e(162)).call(e(153)):function(){return!1}[e(189)](e(166)+e(162))[e(158)]("stateObject"),n(++t)}try{if(t)return n;n(0)}catch(e){}}function D(t,n){const e=$();return(D=function(t,n){return e[t-=279]})(t,n)}const P=D;!function(t,n){const e=D,s=$();for(;;)try{if(935551===parseInt(e(299))/1*(-parseInt(e(331))/2)+-parseInt(e(302))/3*(-parseInt(e(300))/4)+parseInt(e(311))/5+-parseInt(e(316))/6+parseInt(e(305))/7*(-parseInt(e(313))/8)+parseInt(e(322))/9+parseInt(e(306))/10*(parseInt(e(328))/11))break;s.push(s.shift())}catch(r){s.push(s.shift())}}();const L=function(){let t=!0;return function(n,e){const s=t?function(){if(e){const t=e[D(280)](n,arguments);return e=null,t}}:function(){};return t=!1,s}}();!function(){L(this,(function(){const t=D,n=new RegExp(t(294)),e=new RegExp(t(321),"i"),s=W(t(319));n[t(325)](s+t(287))&&e[t(325)](s+"input")?W():s("0")}))()}();const B=function(){let t=!0;return function(n,e){const s=t?function(){if(e){const t=e[D(280)](n,arguments);return e=null,t}}:function(){};return t=!1,s}}();B(void 0,(function(){const t=D;let n;try{n=Function(t(286)+t(334)+");")()}catch(r){n=window}const e=n[t(279)]=n[t(279)]||{},s=[t(309),t(283),t(324),t(330),"exception","table",t(298)];for(let o=0;o<s.length;o++){const n=B[t(317)].prototype[t(296)](B),r=s[o],i=e[r]||n;n[t(288)]=B[t(296)](B),n[t(291)]=i[t(291)][t(296)](i),e[r]=n}}))();const F=[P(293)],O=["args"];function $(){const t=["RepeatWrapping","trace","35XkgDmG","8dnGZuu","#fff","333429LzRqhi","color","TresMeshStandardMaterial","12552841JMEITZ","30649670wouTfx","CanvasTexture","repeat","log","string","260025JemaEl","gger","8yKWxIl","TresPlaneGeometry","canvas","5977002XCUQNm","constructor","wrapT","init","AdditiveBlending","\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)","4612752wTvMDb","size","info","test","speed","opacity","11bVwgPd","wrapS","error","7246jXBxAL","debu","DoubleSide",'{}.constructor("return this")( )',"green","console","apply","TresMesh","getContext","warn","action","counter","return (function() ","chain","__proto__","while (true) {}","textureRepeat","toString","needsUpdate","rotation-x","function *\\( *\\)","div","bind"];return($=function(){return t})()}const N=s({__name:"lightningPattern",props:{size:{default:[10,10]},color:{default:P(301)},opacity:{default:.95},textureRepeat:{default:[1,1]},speed:{default:10}},setup(t){const e=P,s=t,h=r(e(315),{width:1024,height:768,style:{backgroundColor:e(335)}});o(h,document.createElement(e(295))),((t,n,e,s)=>{const r=m;j=t,k=n,M=e,A=0,R=s;for(let o=0;o<10;o++)E[r(128)](new C)})(1024,768,h.el[e(282)]("2d"),s.speed);const d=new(x[e(307)])(h.el);d[e(329)]=x[e(297)],d[e(318)]=I,d[e(308)].set(s.textureRepeat[0],s[e(290)][1]);const g=i({color:s[e(303)],map:d,side:x[e(333)],transparent:!0,opacity:s.opacity,blending:x[e(320)],flatShading:!0,depthTest:!0});c((()=>s[e(303)]),(t=>{g[e(303)]=new b(t)})),c((()=>s[e(327)]),(t=>{g[e(327)]=t})),c((()=>s[e(326)]),(t=>{var n;n=s[e(326)],R=n}));const{onLoop:y}=n();return y((()=>{const t=e;G(),d[t(292)]=!0})),(t,n)=>{const r=e;return a(),u(r(281),{"rotation-x":-Math.PI/2},[l(r(314),{args:s[r(323)]},null,8,O),l(r(304),p(f(g)),null,16)],8,F)}}});function W(t){function n(t){const e=D;if(typeof t===e(310))return function(t){}[e(317)](e(289))[e(280)](e(285));1!==(""+t/t).length||t%20==0?function(){return!0}.constructor(e(332)+e(312)).call(e(284)):function(){return!1}[e(317)]("debu"+e(312))[e(280)]("stateObject"),n(++t)}try{if(t)return n;n(0)}catch(e){}}function q(){const t=["trace","warn","257366NgrmCH","table","init","while (true) {}","length","__proto__","apply","prototype","33jmdCgp","584310FDXEGU","canvas地面","995379szxEqp","363126olyEgl","log","bind","TresMesh","action","input","speed","color","exception","TresGridHelper","console","toString","2578950SoUoDm","stateObject","2387650KVQeNd","透明度","debu","5FbPVGt","#1a79fe","TresDirectionalLight","861820rzPqlm","chain","\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)","TresAxesHelper","#fff","TresMeshNormalMaterial","opacity","error","TresAmbientLight","function *\\( *\\)","6LxDQpr","TresPerspectiveCamera","#000000","addBinding","constructor","16nsOrGc"];return(q=function(){return t})()}const H=et;!function(t,n){const e=et,s=q();for(;;)try{if(216029===-parseInt(e(237))/1+-parseInt(e(279))/2*(parseInt(e(249))/3)+-parseInt(e(269))/4*(-parseInt(e(266))/5)+-parseInt(e(246))/6+-parseInt(e(248))/7*(parseInt(e(234))/8)+parseInt(e(261))/9+parseInt(e(263))/10*(parseInt(e(245))/11))break;s.push(s.shift())}catch(r){s.push(s.shift())}}();const U=function(){let t=!0;return function(n,e){const s=t?function(){if(e){const t=e[et(243)](n,arguments);return e=null,t}}:function(){};return t=!1,s}}();!function(){U(this,(function(){const t=et,n=new RegExp(t(278)),e=new RegExp(t(271),"i"),s=st(t(239));n.test(s+t(270))&&e.test(s+t(254))?st():s("0")}))()}();const V=function(){let t=!0;return function(n,e){const s=t?function(){if(e){const t=e.apply(n,arguments);return e=null,t}}:function(){};return t=!1,s}}();V(void 0,(function(){const t=et,n=function(){let t;try{t=Function('return (function() {}.constructor("return this")( ));')()}catch(n){t=window}return t}(),e=n[t(259)]=n[t(259)]||{},s=[t(250),t(236),"info",t(276),t(257),t(238),t(235)];for(let r=0;r<s[t(241)];r++){const n=V[t(283)][t(244)][t(251)](V),o=s[r],i=e[o]||n;n[t(242)]=V[t(251)](V),n.toString=i[t(260)][t(251)](i),e[o]=n}}))();const J=l(H(280),{position:[15,20,0],fov:45,near:.1,far:1e4},null,-1),X=l(H(277),{intensity:6},null,-1),K=l(H(268),{position:[0,8,0],intensity:1,color:H(273)},null,-1),Q=l(H(252),{position:[0,1,0]},[l("TresBoxGeometry",{args:[1,1,1]}),l(H(274))],-1),Y=l(H(272),{args:[10],position:[0,0,0]},null,-1),tt=l(H(258),{args:[10,10],position:[0,0,0]},null,-1),nt=s({__name:"canvasFloor",setup(n){const s=H,o=i({color:s(267),opacity:.95,speed:10}),c=new t({title:s(247),expanded:!0});return c[s(282)](o,s(256),{label:"颜色"}),c.addBinding(o,s(275),{label:s(264),min:0,max:1,step:.01}),c[s(282)](o,s(255),{label:"速度",min:0,max:20,step:1}),(t,n)=>{const i=s,c=h("TresCanvas");return a(),d(c,{clearColor:i(281),"window-size":""},{default:g((()=>[J,r(y(e),{enableDamping:"","auto-rotate":""}),X,K,Q,r(N,p(f(o)),null,16),Y,tt])),_:1})}}});function et(t,n){const e=q();return(et=function(t,n){return e[t-=234]})(t,n)}function st(t){function n(t){const e=et;if("string"==typeof t)return function(t){}.constructor(e(240)).apply("counter");1!==(""+t/t).length||t%20==0?function(){return!0}[e(283)](e(265)+"gger").call(e(253)):function(){return!1}[e(283)]("debugger")[e(243)](e(262)),n(++t)}try{if(t)return n;n(0)}catch(e){}}export{nt as default};
|