PageSourceSearch

https://sejjjallll-power-outage-risk-dashboard.hf.space/assets/Canvas3D-BKYLRXd5.js

js sejjjallll-power-outage-risk-dashboard.hf.space collected 2026-10-03 17:23:35 UTC 1,554 bytes, 2 lines download raw bytes

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