PageSourceSearch

https://jingwei-xu-00-eccv2026-cad-challenge.hf.space/assets/Canvas3D-CPGU_d59.js

js jingwei-xu-00-eccv2026-cad-challenge.hf.space collected 2026-10-03 17:01:26 UTC 1,715 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BVk3QIoo.js","./index-CU1DelDP.js","./index-BSZrXtnz.css"])))=>i.map(i=>d[i]);
2import{M as V,a7 as M,ac as P,Z as a,a as I,O,a2 as R,aa as f,R as g,$ as u,af as A}from"./index-CU1DelDP.js";import{d as x}from"./i18n-zlFzjs4f.js";var E=g("<canvas></canvas>");function S(h,i){V(i,!0);let c,p=R(()=>i.value.url),d,n=f(void 0),s=f(void 0),l=f(!1);M(()=>{let e=!0;return(async()=>{c=await A(()=>import("./index-BVk3QIoo.js").then(t=>t.cx),__vite__mapDeps([0,1,2]),import.meta.url);const o=await c.CreateViewerForCanvas(d,{clearColor:i.clear_color,useRightHandedSystem:!0,animationAutoPlay:!0,cameraAutoOrbit:{enabled:!1},onInitialized:t=>{u(s,t,!0)}});if(!e){o.dispose();return}u(n,o,!0),u(l,!0)})(),()=>{e=!1,u(l,!1),a(n)?.dispose(),u(n,void 0)}}),P(()=>{a(l)&&b(a(p))});function m(e,r){a(s)&&(a(s).scene.forcePointsCloud=e,a(s).scene.forceWireframe=r)}async function b(e){const r=a(n);if(r)if(e){try{await r.loadModel(e,{pluginOptions:{obj:{importVertexColors:!0}}})}catch(o){a(l)&&r===a(n)&&console.error(o);return}if(!a(l)||r!==a(n))return;i.display_mode==="point_cloud"?m(!0,!1):i.display_mode==="wireframe"?m(!1,!0):v(i.camera_position,i.zoom_speed,i.pan_speed)}else r.resetModel()}function v(e,r,o){if(!a(s))return;const t=a(s).camera;e[0]!==null&&(t.alpha=e[0]*Math.PI/180),e[1]!==null&&(t.beta=e[1]*Math.PI/180),e[2]!==null&&(t.radius=e[2]),t.lowerRadiusLimit=.1;const w=()=>{t.wheelPrecision=250/(t.radius*r),t.panningSensibility=1e4*o/t.radius};w(),t.onAfterCheckInputsObservable.add(w)}function y(){a(s)&&a(n)&&a(n).resetCamera()}var C={update_camera:v,reset_camera_position:y},_=E();return x(_,e=>d=e,()=>d),I(h,_),O(C)}export{S as default};

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.