PageSourceSearch

https://faptap.net/assets/ThreeJS.vue_vue_type_script_setup_true_lang.af0f9bd6.js

js faptap.net collected 2026-09-25 22:12:27 UTC 1,419 bytes, 1 lines download raw bytes

1import{W as w,S as g,a as b,O as S,A as _,D as C,M as L,C as M,b as x}from"./vendor-threejs.ada2e648.js";import{d as z,b as v,L as k,a4 as B,w as P,f as R,i as W,v as y}from"./index.16ba4ea0.js";const E=z({__name:"ThreeJS",props:{ballPosition:Number},setup(p){const f=p,l=v(null),e=v(null);let s=null,t=null,a=null;return k(()=>{if(l.value&&e.value){let n=function(){t.render(i,a),requestAnimationFrame(n)};t=new w({canvas:l.value,antialias:!0}),t.setPixelRatio(window.devicePixelRatio),t.setSize(e.value.clientWidth,e.value.clientHeight),t.setClearColor(1579035),t.outputColorSpace=g;const i=new b,o=e.value.clientWidth/e.value.clientHeight;a=new S(-100*o/2,100*o/2,100/2,-100/2,.1,1e3),a.position.set(0,0,150);const m=new _(16777215,.5);i.add(m);const r=new C(16777215,1);r.position.set(0,1,1).normalize(),i.add(r),s=new L(new M(3,64),new x({color:16776960,flatShading:!0})),i.add(s),n();const c=()=>{if(e.value&&t&&a){const u=e.value.clientWidth,d=e.value.clientHeight;t.setSize(u,d);const h=u/d;a.left=-100*h/2,a.right=100*h/2,a.updateProjectionMatrix()}};window.addEventListener("resize",c),B(()=>{window.removeEventListener("resize",c)})}}),P(()=>f.ballPosition,n=>{s&&(s.position.y=-47+n/100*94)}),(n,i)=>(y(),R("div",{ref_key:"parentDiv",ref:e,class:"w-full h-full block relative mx-auto"},[W("canvas",{id:"c",ref_key:"canvas",ref:l,class:"absolute inset-0 !h-full !w-full"},null,512)],512))}});export{E as _};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.