초기 PM 소스 전체 업로드
This commit is contained in:
commit
4e33c9a02a
1769 files changed
+377797
No files matched your search
@@ -0,0 +1,2 @@
|
||||
(()=>{"use strict";var e,t={732:(e,t,a)=>{var n=a(437),o=a(922),r=a(40),i=a(24),s=a(231),c=a(728),d=a(921),l=a(92),u=a(70),p=a(702),m=a(806),h=a(494);class w{constructor(e){let t,a,n;this.mouseMoved,e.addEventListener("mousedown",e=>{t=e.offsetX,a=e.offsetY,n=Date.now()}),e.addEventListener("mouseup",e=>{const o=Math.abs(e.offsetX-t),r=Math.abs(e.offsetY-a),i=Date.now()-n;this.mouseMoved=o>5||r>5||i>500})}}let g,f,y,v,b,L,x,M,R,U,j=document.getElementById("progress-text"),k=null;function O(){y.aspect=g.clientWidth/g.clientHeight,y.updateProjectionMatrix(),v.setSize(window.innerWidth,window.innerHeight)}function C(){R&&R.update(),b.update(),v.setAnimationLoop(C),v.render(f,y)}async function S(e){await async function(){if(f)return;g=document.querySelector("#canvas"),v=new n.JeP({canvas:g,antialias:!0,powerPreference:"high-performance"}),v.setSize(window.innerWidth,window.innerHeight),v.setPixelRatio(Math.min(window.devicePixelRatio,2)),k=new n.JeP({antialias:!0,preserveDrawingBuffer:!0}),f=new o.Z58;const e=g.clientWidth/g.clientHeight;y=new o.ubm(75,e,.1,1e3),y.position.set(0,5,10);const t=new o.$p8(16777215,.6);f.add(t),b=new i.N(y,g),window.addEventListener("resize",O);const a=(new s.Y).setPath("./textures/"),r=await a.loadAsync("demonstration-research-center.hdr");r.mapping=o.wfO,f.background=r,f.backgroundBlurriness=.9,f.environment=r,r.dispose(),L=new o.tBo,x=new o.I9Y,g.addEventListener("click",D),U=new w(g),C()}(),M&&(f.remove(M),function(){M&&M.traverse(e=>{e.geometry&&e.geometry.dispose(),e.material&&(Array.isArray(e.material)?e.material.forEach(e=>{e.map&&e.map.dispose(),e.normalMap&&e.normalMap.dispose(),e.roughnessMap&&e.roughnessMap.dispose(),e.metalnessMap&&e.metalnessMap.dispose(),e.dispose()}):(e.material.map&&e.material.map.dispose(),e.material.normalMap&&e.material.normalMap.dispose(),e.material.roughnessMap&&e.material.roughnessMap.dispose(),e.material.metalnessMap&&e.material.metalnessMap.dispose(),e.material.dispose()))});window.gc&&window.gc()}(),URL.revokeObjectURL(M.userData.url));const t=e.name.split(".").pop().toLowerCase(),a=URL.createObjectURL(e);let r;try{switch(t){case"glb":case"gltf":{const t=new d.p;t.setTranscoderPath("./libs/basis/").detectSupport(v);const n=new c.Z;let o;n.setDecoderPath("./libs/draco/gltf/"),n.preload(),r=new l.B,r.setKTX2Loader(t),r.setDRACOLoader(n);try{o=await r.loadAsync(a,t=>$(t,e))}catch(e){return void URL.revokeObjectURL(a)}document.querySelector(".progress-wrap").style.display="none",M=o.scene,M.userData.url=a,f.add(M),P(y,M,b),URL.revokeObjectURL(a);break}case"obj":{let t;r=new u.L;try{t=await r.loadAsync(a,t=>$(t,e))}catch(e){return void URL.revokeObjectURL(a)}document.querySelector(".progress-wrap").style.display="none",M=t,M.userData.url=a,f.add(M),P(y,M,b),URL.revokeObjectURL(a);break}case"stl":{let t;r=new p.t;try{t=await r.loadAsync(a,t=>$(t,e))}catch(e){return void URL.revokeObjectURL(a)}document.querySelector(".progress-wrap").style.display="none";const n=new o._4j({color:11184810}),i=new o.eaF(t,n);M=i,M.userData.url={url:a},f.add(M),P(y,M,b),URL.revokeObjectURL(a);break}case"fbx":{let t;r=new m.w;try{t=await r.loadAsync(a,t=>$(t,e))}catch(e){return void URL.revokeObjectURL(a)}document.querySelector(".progress-wrap").style.display="none",M=t,M.userData.url=a,f.add(M),P(y,M,b),URL.revokeObjectURL(a);break}case"3dm":{let t;r=new h.a,r.setLibraryPath("./libs/rhino3dm/");try{t=await r.loadAsync(a,t=>$(t,e))}catch(e){URL.revokeObjectURL(a);const t=["• 웹 최적화된 GLB 포맷 또는 IFC 형식으로 변환해 보세요","• 브라우저 캐시를 삭제하고 다시 시도해보세요","• 불필요한 레이어나 객체를 제거해보세요."];return void alert(`3DM 파일 로딩 실패\n\n오류: ${e?.error?.message}\n\n해결 방법:\n${t.join("\n")}`)}document.querySelector(".progress-wrap").style.display="none",M=t,M.userData.url=a,f.add(M),P(y,M,b),URL.revokeObjectURL(a);break}default:URL.revokeObjectURL(a)}}finally{document.getElementById("schema").textContent=t.toUpperCase(),document.getElementById("schema").style.background="#6944F0",document.getElementById("file-name").textContent=function(){if(performance.memory){const e=performance.memory,t=e.usedJSHeapSize/1048576,a=e.totalJSHeapSize/1048576,n=e.jsHeapSizeLimit/1048576;return`메모리: ${t.toFixed(2)}MB / ${a.toFixed(2)}MB (한계: ${n.toFixed(2)}MB)`}}(),document.querySelector(".left-header > h2").textContent=e.name.replace(/\.[^/.]+$/,"")}}function P(e,t,a){R&&R.stop();const n=(new o.NRn).setFromObject(t).getBoundingSphere(new o.iyt),i=o.cj9.degToRad(e.fov),s=e.aspect,c=2*Math.atan(Math.tan(i/2)*s),d=Math.min(i,c),l=1.05*n.radius/Math.sin(d/2),u=(new o.Pq0).subVectors(e.position,a.target).normalize(),p=n.center.clone().addScaledVector(u,l);e.near=n.radius/100,e.far=1e3*n.radius,e.updateProjectionMatrix();const m={camX:e.position.x,camY:e.position.y,camZ:e.position.z,tgtX:a.target.x,tgtY:a.target.y,tgtZ:a.target.z},h={camX:p.x,camY:p.y,camZ:p.z,tgtX:n.center.x,tgtY:n.cLine truncated
|
||||
//# sourceMappingURL=bundle.26e9bcb072f8f12dccbf.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"bundle.26e9bcb072f8f12dccbf.js","mappings":"uBAAIA,E,6HCAG,MAAMC,EACTC,WAAAA,CAAYC,GAGR,IAAIC,EACAC,EACAC,EAJJC,KAAKC,WAMLL,EAAKM,iBAAiB,YAAaC,IAC/BN,EAAcM,EAAEC,QAChBN,EAAcK,EAAEE,QAChBN,EAAiBO,KAAKC,QAG1BX,EAAKM,iBAAiB,UAAWC,IAC7B,MAAMK,EAAOC,KAAKC,IAAIP,EAAEC,Q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AQI,QAAQ,aAAaF,EAAQE,QAAQ,OACzF,CACJ,CAzK2DC,GACnDnH,SAASmB,cAAc,qBAAqBoF,YAAcrF,EAAK8C,KAAKoD,QAAQ,YAAa,GAC7F,CAEJ,CAGA,SAAS7B,EAAkBhG,EAAQ8H,EAAQ5H,GAwBnCI,GACAA,EAAMyH,OAIV,MACMC,GADS,IAAInG,EAAAA,KAAaoG,cAAcH,GAC3BI,kBAAkB,IAAIrG,EAAAA,KAKnCsG,EAAStG,EAAAA,IAAgBuG,SAASpI,EAAOqI,KAGzCxH,EAASb,EAAOa,OAGhByH,EAAO,EAAI5I,KAAK6I,KAAK7I,KAAK8I,IAAIL,EAAO,GAAKtH,GAG1C4H,EAAe/I,KAAKwC,IAAIiG,EAAMG,GAI9BI,EADU,KACEV,EAAOW,OAAoBjJ,KAAKkJ,IAAIH,EAAe,GAG/DI,GAAM,IAAILine truncated
|
||||
@@ -0,0 +1,2 @@
|
||||
"use strict";(self.webpackChunk_3dviewer=self.webpackChunk_3dviewer||[]).push([[471],{24:(t,e,n)=>{n.d(e,{N:()=>y});var i=n(922);const r={type:"change"},s={type:"start"},a={type:"end"},o=new i.RlV,l=new i.Zcv,c=Math.cos(70*i.cj9.DEG2RAD),h=new i.Pq0,u=2*Math.PI,A=-1,d=0,p=1,f=2,g=3,m=4,_=5,v=6,E=1e-6;class y extends i.H2z{constructor(t,e=null){super(t,e),this.state=A,this.target=new i.Pq0,this.cursor=new i.Pq0,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minTargetRadius=0,this.maxTargetRadius=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.keyRotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.zoomToCursor=!1,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:i.kBv.ROTATE,MIDDLE:i.kBv.DOLLY,RIGHT:i.kBv.PAN},this.touches={ONE:i.wtR.ROTATE,TWO:i.wtR.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this._lastPosition=new i.Pq0,this._lastQuaternion=new i.PTz,this._lastTargetPosition=new i.Pq0,this._quat=(new i.PTz).setFromUnitVectors(t.up,new i.Pq0(0,1,0)),this._quatInverse=this._quat.clone().invert(),this._spherical=new i.YHV,this._sphericalDelta=new i.YHV,this._scale=1,this._panOffset=new i.Pq0,this._rotateStart=new i.I9Y,this._rotateEnd=new i.I9Y,this._rotateDelta=new i.I9Y,this._panStart=new i.I9Y,this._panEnd=new i.I9Y,this._panDelta=new i.I9Y,this._dollyStart=new i.I9Y,this._dollyEnd=new i.I9Y,this._dollyDelta=new i.I9Y,this._dollyDirection=new i.Pq0,this._mouse=new i.I9Y,this._performCursorZoom=!1,this._pointers=[],this._pointerPositions={},this._controlActive=!1,this._onPointerMove=x.bind(this),this._onPointerDown=I.bind(this),this._onPointerUp=C.bind(this),this._onContextMenu=R.bind(this),this._onMouseWheel=w.bind(this),this._onKeyDown=T.bind(this),this._onTouchStart=b.bind(this),this._onTouchMove=B.bind(this),this._onMouseDown=S.bind(this),this._onMouseMove=M.bind(this),this._interceptControlDown=D.bind(this),this._interceptControlUp=L.bind(this),null!==this.domElement&&this.connect(this.domElement),this.update()}connect(t){super.connect(t),this.domElement.addEventListener("pointerdown",this._onPointerDown),this.domElement.addEventListener("pointercancel",this._onPointerUp),this.domElement.addEventListener("contextmenu",this._onContextMenu),this.domElement.addEventListener("wheel",this._onMouseWheel,{passive:!1});this.domElement.getRootNode().addEventListener("keydown",this._interceptControlDown,{passive:!0,capture:!0}),this.domElement.style.touchAction="none"}disconnect(){this.domElement.removeEventListener("pointerdown",this._onPointerDown),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.domElement.removeEventListener("pointercancel",this._onPointerUp),this.domElement.removeEventListener("wheel",this._onMouseWheel),this.domElement.removeEventListener("contextmenu",this._onContextMenu),this.stopListenToKeyEvents();this.domElement.getRootNode().removeEventListener("keydown",this._interceptControlDown,{capture:!0}),this.domElement.style.touchAction="auto"}dispose(){this.disconnect()}getPolarAngle(){return this._spherical.phi}getAzimuthalAngle(){return this._spherical.theta}getDistance(){return this.object.position.distanceTo(this.target)}listenToKeyEvents(t){t.addEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=t}stopListenToKeyEvents(){null!==this._domElementKeyEvents&&(this._domElementKeyEvents.removeEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=null)}saveState(){this.target0.copy(this.target),this.position0.copy(this.object.position),this.zoom0=this.object.zoom}reset(){this.target.copy(this.target0),this.object.position.copy(this.position0),this.object.zoom=this.zoom0,this.object.updateProjectionMatrix(),this.dispatchEvent(r),this.update(),this.state=A}update(t=null){const e=this.object.position;h.copy(e).sub(this.target),h.applyQuaternion(this._quat),this._spherical.setFromVector3(h),this.autoRotate&&this.state===A&&this._rotateLeft(this._getAutoRotationAngle(t)),this.enableDamping?(this._spherical.theta+=this._sphericalDelta.theta*this.dampingFactor,this._spherical.phi+=this._sphericalDelta.phi*this.dampingFactor):(this._spherical.theta+=this._sphericalDelta.theta,this._spherical.phi+=this._sphericalDelta.phi);let n=this.minAzimuthAngle,s=this.maxAzimuthAngle;isFinite(n)&&isFinite(s)&&(n<-Math.PI?n+=u:n>Math.PI&&(n-=u),s<-Math.PI?s+=u:s>Math.PI&&(s-=u),this._spherical.theta=n<=s?Math.max(n,Math.min(s,this._spherical.theta)):this._spherical.theta>(n+s)/2?Math.max(n,this._spherical.theta):Math.min(s,this._spherical.theta))Line truncated
|
||||
//# sourceMappingUR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,KAAKgB,cAC3DhB,KAAK0D,WAAW0D,KAAOpH,KAAK2D,gBAAgByD,IAAMpH,KAAKgB,gBAIvDhB,KAAK0D,WAAW4D,OAAStH,KAAK2D,gBAAgB2D,MAC9CtH,KAAK0D,WAAW0D,KAAOpH,KAAK2D,gBAAgByD,KAM7C,IAAIiB,EAAMrI,KAAKa,gBACXyH,EAAMtI,KAAKc,gBAEVyH,SAAUF,IAASE,SAAUD,KAE5BD,GAAQlJ,KAAKK,GAAK6I,GAAO9I,EAAkB8I,EAAMlJ,KAAKK,KAAK6I,GAAO9I,GAElE+I,GAAQnJ,KAAKK,GAAK8I,GAAO/I,EAAkB+I,EAAMnJ,KAAKK,KAAK8I,GAAO/I,GAItES,KAAK0D,WAAW4D,MAFZe,GAAOC,EAEanJ,KAAKmJ,IAAKD,EAAKlJ,KAAKkJ,IAAKC,EAAKtI,KAAK0D,WAAW4D,QAI5CtH,KAAK0D,WAAW4D,OAAUe,EAAMC,GAAQ,EACjEnJ,KAAKmJ,IAAKD,EAAKrI,KAAK0D,WAAW4D,OAC/BnI,KAAKkJ,IAAKC,EAAKtI,KAAK0D,WAAW4D,QAOlCtH,KAAK0D,WAAW0D,IAAMjI,KAAKmJ,IAAKtI,KAAKW,cAAexB,KAAKkJ,IAAKrI,KAAKY,cAAeZ,KAAK0D,WAAW0D,MAElGpH,KAAK0D,WAAW8E,YAKY,IAAvBxI,KAAKe,cAETf,KAAKE,OAAOuI,gBAAiBzI,KAAK6D,WAAY7D,KAAKgB,eAInDhB,KAAKE,OAAOwI,IAAK1I,KAAK6D,YAKvB7D,KAAKE,OAAO8H,IAAKhI,KAAKG,QACtBH,KAAKE,OAAOLine truncated
|
||||
@@ -0,0 +1,11 @@
|
||||
/* 폰트 */
|
||||
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR&family=Protest+Riot&display=swap');
|
||||
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
|
||||
@font-face {
|
||||
font-family: 'S-CoreDream-3Light';
|
||||
src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-3Light.woff') format('woff');
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
/* 폰트적용 */
|
||||
/* * { font-family: 'Noto Sans KR', 'Protest Riot', 'Gowun Dodum', sans-serif; } */
|
||||
@@ -0,0 +1,10 @@
|
||||
/* https://velog.io/@teo/2022-CSS-Reset-%EB%8B%A4%EC%8B%9C-%EC%8D%A8%EB%B3%B4%EA%B8%B0 */
|
||||
* { margin: 0; padding: 0; font: inherit; color: inherit; }
|
||||
*, :after, :before { box-sizing: border-box; }
|
||||
:root {-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%;text-size-adjust:100%;cursor:default;line-height:1.5;overflow-wrap:break-word;word-break:break-word;tab-size:4}
|
||||
html, body { height:100%; color: #000; }
|
||||
img, picture, video, canvas, svg { display: block;max-width:100%; }
|
||||
button { background:none;border:0;cursor:pointer; }
|
||||
a { text-decoration:none }
|
||||
table { border-collapse:collapse;border-spacing:0 }
|
||||
ul, li { list-style: none; }
|
||||
@@ -0,0 +1,109 @@
|
||||
@import url('./reset.css');
|
||||
@import url('./font.css');
|
||||
|
||||
* { font-family: 'Pretendard Variable', 'Pretendard'; font-size: 14px; }
|
||||
|
||||
:root {--background-color: rgba(0, 0, 0, 0.3); --color1: #6944F0; --color2: #6944F0; --gray: rgba(255, 255, 255, 0.7); }
|
||||
|
||||
html,body { position: relative; font-size: 62.5%; }
|
||||
body { overflow: hidden; user-select: none; }
|
||||
|
||||
.wrap { display: flex; flex-direction: column; height: 100%; }
|
||||
|
||||
|
||||
/* -------------------- Main : Center -------------------- */
|
||||
#canvas { width: 100vw; height: 100vh; position: relative; overflow: hidden; }
|
||||
|
||||
.btnGroup { display: flex; gap: 10px; position: absolute; left: 460px; top: 20px; }
|
||||
.btnGroup > button { width: fit-content; font-size: 12px;}
|
||||
.btnGroup > input { width: fit-content; font-size: 12px;}
|
||||
|
||||
.left { display: flex; flex-direction: column; position: absolute; top: 14px; left: 14px; width: 420px; max-height: calc(100% - 28px); padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.5); }
|
||||
.left .side-resize { position: absolute; top: 0; right: -6px; width: 6px; height: 100%; background: none; cursor: ew-resize; }
|
||||
.left .left-header .file-info { display: flex; align-items: center;}
|
||||
.left .left-header .file-info .schema { width: fit-content; margin-right: 6px; padding: 0 4px; border-radius: 4px; color: white; background: gray; font-size: 12px; }
|
||||
.left .left-header .file-info .file-name { flex: 1; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.left .left-header h2 { font-family: 'S-CoreDream-3Light'; font-size: 18px; font-weight: bold; }
|
||||
.left .left-conts { display: flex; display: none; flex-direction: column; position: relative; overflow: auto; scrollbar-gutter: stable; margin-right: -14px; }
|
||||
|
||||
.tree-container { width: fit-content; min-width: -webkit-fill-available; background: var(--gray); user-select: none; font-size: 14px; }
|
||||
.tree { list-style: none; margin: 8px 14px; width: 100%;}
|
||||
.tree *:before { width: 14px; height: 14px; display: inline-block; }
|
||||
|
||||
.tree ul { list-style: none; margin-left: 10px; padding-left: 11px; border-left: 1px dashed #999;}
|
||||
.tree ul:first-child { margin-left: 0; padding-left: 0; border-left: 0; }
|
||||
.tree li { list-style: none; width: 100%; white-space: nowrap; }
|
||||
|
||||
.tree li > .input-caret { display: none; }
|
||||
.tree li > .label-caret { display: inline-block; width: 14px; height: 14px; margin: 0 4px; background: url('../img/arrow-plus.svg') no-repeat center center/cover; transition: all 0.2s ease; cursor: pointer; }
|
||||
.tree li > .input-caret:checked+.label-caret { background: url('../img/arrow-minus.svg') no-repeat center center/cover; transform: rotate(-360deg); }
|
||||
.tree li > div { display: inline-block; }
|
||||
.tree li > div > .ifc-type { display: inline-block; padding-left: 6px; color: gray; font-size: 14px; cursor: pointer; }
|
||||
.tree li > div > .ifc-name { display: inline-block; padding-left: 6px; font-size: 14px; }
|
||||
.tree li > div.selected { background-color: rgba(0, 123, 255, 0.2); }
|
||||
.tree li .label-caret > span { margin-left: 14px; color: #000; }
|
||||
.tree .input-caret:not(:checked)~ul { display: none; }
|
||||
|
||||
.tree li > .input-visible { display: none; }
|
||||
.tree li > .label-visible { display: inline-block; width: 14px; height: 14px; margin-left: 4px; background: url('../img/hide.svg') no-repeat center center/cover; transition: all 0.2s ease; cursor: pointer; }
|
||||
.tree li > .input-visible:checked+.label-visible { background: url('../img/show.svg') no-repeat center center/cover; transform: rotate(-360deg); }
|
||||
|
||||
.right { display: flex; flex-direction: column; position: absolute; top: 14px; right: -680px; width: 420px; max-height: calc(100% - 28px); padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.5); }
|
||||
.right .side-resize { position: absolute; top: 0; left: -6px; width: 6px; height: 100%; background: none; cursor: ew-resize; }
|
||||
|
||||
.show-right { right: 14px !important; }
|
||||
|
||||
.right .right-header h2 { font-family: 'S-CoreDream-3Light'; font-size: 18px; font-weight: bold; }
|
||||
.right .right-conts { display: flex; flex-direction: column; position: relative; overflow-y: auto; scrollbar-gutter: stable; margin-right: -14px; }
|
||||
|
||||
.accordion { margin-top: 8px;}
|
||||
.accordion .accordion-header { display: flex; height: 32px; border-left: 2px solid var(--color2); border-bottom: 1px solid rgba(0, 0, 0, 0.1); background:var(--gray); }
|
||||
.accordion .accordion-header .btn-accordion { display: flex; align-items: center; position: relative; width: 100%; padding-left: 14px; font-size: 16px; font-weight: bold; text-align: left; }
|
||||
.accordion .accordion-header .btn-accordion img { width: 16px; height: 16px; margin-right: 7px; }
|
||||
.accordion .accordion-header .btn-accordion::after { content: ""; display: inline-block; position: absolute; right: 4px; width: 16px; height: 16px; background: url('../img/caret.svg') no-repeat center center/cover; transition: all 0.2s; }
|
||||
.accordion .accordion-header .btn-accordion.collapse::after { transform: rotate(-180deg); }
|
||||
.accordion .accordion-collapse { max-height: 0; overflow: hidden; transition: all 0.2s; background:var(--gray); }
|
||||
.accordion .accordion-collapse[aria-hidden="false"] { max-height: 5000px; /* A large enough value to accommodate content */ }
|
||||
.accordion .accordion-collapse .accordion-body { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-left: 2px solid var(--color2); }
|
||||
.accordion .accordion-collapse .accordion-body .sub-title { margin-top: 7px; }
|
||||
.accordion .accordion-collapse .accordion-body .sub-title:first-child { margin-top: 0; }
|
||||
.accordion .accordion-collapse .accordion-body dl { display: flex; }
|
||||
.accordion .accordion-collapse .accordion-body dl dt { width: 40%; padding-left: 8px; color: gray; word-break: break-all; }
|
||||
.accordion .accordion-collapse .accordion-body dl dd { flex:1; padding-left: 8px; word-break: break-all; }
|
||||
|
||||
|
||||
|
||||
/* -------------------- Scrollbar -------------------- */
|
||||
.scrollbar::-webkit-scrollbar { width: 16px; }
|
||||
.scrollbar::-webkit-scrollbar-track { background-color: transparent; }
|
||||
.scrollbar::-webkit-scrollbar-thumb { background-color: gray; border-radius: 20px; border: 6px solid transparent; background-clip: content-box; min-height: 50px; }
|
||||
.scrollbar::-webkit-scrollbar-thumb:hover { background-color: var(--color1); }
|
||||
.scrollbar::-webkit-scrollbar-corner { background: transparent; }
|
||||
|
||||
|
||||
|
||||
/* -------------------- Progress -------------------- */
|
||||
.progress-wrap { display: flex; justify-content: center; align-items: center; position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
|
||||
.progress-wrap .progress-content { display: flex; flex-direction: column; align-items: center; font-family: 'Protest Riot'; font-size: 30px; }
|
||||
|
||||
.loader { display: inline-block; position: relative; width: 48px; height: 48px; }
|
||||
.loader::after, .loader::before { content: ''; position: absolute; left: 0; top: 0; width: 48px; height: 48px; border: 4px solid #FFF; box-sizing: border-box; animation: rotation 2s ease-in-out infinite; }
|
||||
.loader::after { border-color: var(--color1); animation-delay: 1s; }
|
||||
@keyframes rotation { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
|
||||
|
||||
|
||||
|
||||
/* -------------------- Modal -------------------- */
|
||||
.modal { display: none; justify-content: center; align-items: center; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.5); z-index: 1000; }
|
||||
.modal-content { position: relative; width: 90%; max-width: 500px; padding: 20px; border-radius: 8px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); animation: fadeIn 0.3s ease-out; }
|
||||
.modal-content > .modal__conts { font-size: 18px; }
|
||||
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
|
||||
|
||||
|
||||
.highlight { color:darkred; font-family: 'Protest Riot'; font-size: 18px; font-weight: bold; }
|
||||
|
||||
/* -------------------- Media query -------------------- */
|
||||
@media (max-width: 768px) {
|
||||
.left { display: none }
|
||||
.right { display: none }
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect width="20" height="20" rx="4" fill="#D9D9D9"/>
|
||||
<path d="M15.1429 11H4.85714C4.62981 11 4.4118 10.8946 4.25105 10.7071C4.09031 10.5196 4 10.2652 4 10C4 9.73478 4.09031 9.48043 4.25105 9.29289C4.4118 9.10536 4.62981 9 4.85714 9H15.1429C15.3702 9 15.5882 9.10536 15.7489 9.29289C15.9097 9.48043 16 9.73478 16 10C16 10.2652 15.9097 10.5196 15.7489 10.7071C15.5882 10.8946 15.3702 11 15.1429 11Z" fill="black"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 516 B |
@@ -0,0 +1,4 @@
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect width="20" height="20" rx="4" fill="#D9D9D9"/>
|
||||
<path d="M10 5V15M15 10H5" stroke="#292828" stroke-width="1.66667" stroke-linecap="round"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 248 B |
@@ -0,0 +1,3 @@
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M19.5276 15.6023C19.1951 15.8933 18.6897 15.8596 18.3987 15.5271L12.0008 8.2152L5.6028 15.5271C5.3119 15.8596 4.8065 15.8933 4.474 15.6023C4.1415 15.3114 4.1078 14.806 4.3987 14.4735L12.0008 5.7854L19.6028 14.4735C19.8938 14.806 19.8601 15.3114 19.5276 15.6023Z" fill="#000" fill-opacity="1.0"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 448 B |
@@ -0,0 +1,3 @@
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M4.4 17L3 15.6L8.6 10L3 4.4L4.4 3L10 8.6L15.6 3L17 4.4L11.4 10L17 15.6L15.6 17L10 11.4L4.4 17Z" fill="black"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 223 B |
@@ -0,0 +1,3 @@
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M1.66683 4.39134L2.7335 3.33301L16.6668 17.2663L15.6085 18.333L13.0418 15.7663C12.0835 16.083 11.0668 16.2497 10.0002 16.2497C5.8335 16.2497 2.27516 13.658 0.833496 9.99967C1.4085 8.53301 2.32516 7.24134 3.49183 6.21634L1.66683 4.39134ZM10.0002 7.49967C10.6632 7.49967 11.2991 7.76307 11.7679 8.23191C12.2368 8.70075 12.5002 9.33663 12.5002 9.99967C12.5006 10.2835 12.4527 10.5653 12.3585 10.833L9.16683 7.64134C9.43455 7.54716 9.71636 7.49925 10.0002 7.49967ZM10.0002 3.74967C14.1668 3.74967 17.7252 6.34134 19.1668 9.99967C18.4863 11.7271 17.3306 13.2266 15.8335 14.3247L14.6502 13.133C15.8026 12.3359 16.7321 11.2573 17.3502 9.99967C16.6765 8.62456 15.6306 7.46603 14.3313 6.6558C13.032 5.84557 11.5314 5.41614 10.0002 5.41634C9.09183 5.41634 8.20016 5.56634 7.36683 5.83301L6.0835 4.55801C7.2835 4.04134 8.6085 3.74967 10.0002 3.74967ZM2.65016 9.99967C3.32378 11.3748 4.36971 12.5333 5.66903 13.3435C6.96834 14.1538 8.46892 14.5832 10.0002 14.583C10.5752 14.583 11.1418 14.5247 11.6668 14.408L9.76683 12.4997C9.18697 12.4375 8.64585 12.1787 8.23348 11.7664C7.8211 11.354 7.56232 10.8129 7.50016 10.233L4.66683 7.39134C3.84183 8.09967 3.15016 8.98301 2.65016 9.99967Z" fill="black"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
@@ -0,0 +1,3 @@
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M10.0002 7.5C9.33712 7.5 8.70124 7.76339 8.2324 8.23223C7.76355 8.70107 7.50016 9.33696 7.50016 10C7.50016 10.663 7.76355 11.2989 8.2324 11.7678C8.70124 12.2366 9.33712 12.5 10.0002 12.5C10.6632 12.5 11.2991 12.2366 11.7679 11.7678C12.2368 11.2989 12.5002 10.663 12.5002 10C12.5002 9.33696 12.2368 8.70107 11.7679 8.23223C11.2991 7.76339 10.6632 7.5 10.0002 7.5ZM10.0002 14.1667C8.89509 14.1667 7.83529 13.7277 7.05388 12.9463C6.27248 12.1649 5.8335 11.1051 5.8335 10C5.8335 8.89493 6.27248 7.83512 7.05388 7.05372C7.83529 6.27232 8.89509 5.83333 10.0002 5.83333C11.1052 5.83333 12.165 6.27232 12.9464 7.05372C13.7278 7.83512 14.1668 8.89493 14.1668 10C14.1668 11.1051 13.7278 12.1649 12.9464 12.9463C12.165 13.7277 11.1052 14.1667 10.0002 14.1667ZM10.0002 3.75C5.8335 3.75 2.27516 6.34167 0.833496 10C2.27516 13.6583 5.8335 16.25 10.0002 16.25C14.1668 16.25 17.7252 13.6583 19.1668 10C17.7252 6.34167 14.1668 3.75 10.0002 3.75Z" fill="black"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.0 KiB |
@@ -0,0 +1,63 @@
|
||||
<!doctype html><html lang="ko"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Document</title><link rel="stylesheet" href="./css/style.css"></head><body><canvas class="canvas" id="canvas"></canvas><div class="progress-wrap"><div class="progress-content" id="progress-text"></div></div><div class="modal"><div class="modal-content"><div class="modal__conts">• 모델 파일은 <span class="highlight">300MB</span>를 초과할 경우 지원되지 않습니다<br>• 파일 크기가 클 땐 웹 최적화된 GLB포맷 또는 IFC형식으로 변환해 보세요<br></div></div></div><div class="btnGroup"></div><div class="left" id="tree"><div class="side-resize"></div><div class="left-header"><div class="file-info"><div id="schema" class="schema">Version</div><div id="file-name" class="file-name"></div></div><h2>FileName</h2></div><div class="left-conts scrollbar"><div class="tree-container" id="tree-container"><ul class="tree"><li><input type="checkbox" id="root" class="input-caret" checked="checked"> <label for="root" class="label-caret"></label> <input type="checkbox" id="root-visible" class="input-visible"> <label for="root-visible" class="label-visible"></label><div><span class="ifc-type">node-02-01</span> <span class="ifc-name">Description1111111112222222444442222222221</span></div><ul><li><input type="checkbox" id="node-01" class="input-caret"> <label for="node-01" class="label-caret"></label> <input type="checkbox" id="node-01-visible" class="input-visible"> <label for="node-01-visible" class="label-visible"></label><div><span class="ifc-type">node-01</span> <span class="ifc-name">Description1111</span></div></li><li><input type="checkbox" id="node-02" class="input-caret"> <label for="node-02" class="label-caret"></label> <input type="checkbox" id="node-02-visible" class="input-visible"> <label for="node-02-visible" class="label-visible"></label><div><span class="ifc-type">node-02</span> <span class="ifc-name">Description2</span></div><ul><li><input type="checkbox" id="node-02-01" class="input-caret"> <label for="node-02-01" class="label-caret"></label> <input type="checkbox" id="node-02-01-visible" class="input-visible"> <label for="node-02-01-visible" class="label-visible"></label><div><span class="ifc-type">node-02-01</span> <span class="ifc-name">Description2</span></div></li><li><input type="checkbox" id="node-02-02" class="input-caret"> <label for="node-02-02" class="label-caret"></label> <input type="checkbox" id="node-02-02-visible" class="input-visible"> <label for="node-02-02-visible" class="label-visible"></label><div><span class="ifc-type">node-02-02</span> <span class="ifc-name">Description2</span></div></li></ul></li><li><input type="checkbox" id="node-03"> <label for="node-03" class="label-caret"></label> <input type="checkbox" id="node-03-visible" class="input-visible"> <label for="node-03-visible" class="label-visible"></label><div>node-03<span>Description</span></div></li></ul></li></ul></div></div></div><div class="right" id="property-table"><div class="side-resize"></div><div class="right-header"><h2>PROPERTIES</h2></div><div class="right-conts scrollbar"><div class="accordion"><div class="accordion-header"><button type="button" class="btn-accordion" aria-expanded="false" aria-controls="Attributes">Attributes</button></div><div class="accordion-collapse collapse" id="Attributes" aria-hidden="true"><div class="accordion-body"></div></div></div><div class="accordion"><div class="accordion-header"><button type="button" class="btn-accordion" aria-expanded="false" aria-controls="PropertySets">Property Sets</button></div><div class="accordion-collapse collapse" id="PropertySets" aria-hidden="true"><div class="accordion-body"></div></div></div><div class="accordion"><div class="accordion-header"><button type="button" class="btn-accordion" aria-expanded="false" aria-controls="Material">Material</button></div><div class="accordion-collapse collapse" id="Material" aria-hidden="true"><div class="accordion-body"></div></div></div><div class="accordion"><div class="accordion-header"><button type="button" class="btn-accordion" aria-expanded="false" aria-controls="SpatialContainer">Spatial Container</button></div><div class="accordion-collapse collapse" id="SpatialContainer" aria-hidden="true"><div class="accordion-body"></div></div></div></div></div><script>/* -------------------- Left, Right 사이드 패널 폭 조절 -------------------- */
|
||||
const $leftResize = document.querySelector('.left .side-resize');
|
||||
const $rightResize = document.querySelector('.right .side-resize');
|
||||
const $left = document.querySelector('.left');
|
||||
const $right = document.querySelector('.right');
|
||||
|
||||
let activeResize = null; // "left" 또는 "right" 값을 가짐
|
||||
let startX = 0;
|
||||
let initialWidth = 0;
|
||||
|
||||
// 왼쪽 리사이저: 왼쪽 요소의 너비 조절
|
||||
$leftResize.addEventListener('mousedown', (event) => {
|
||||
activeResize = 'left';
|
||||
startX = event.clientX;
|
||||
initialWidth = $left.getBoundingClientRect().width;
|
||||
});
|
||||
|
||||
// 오른쪽 리사이저: 오른쪽 요소의 너비 조절
|
||||
$rightResize.addEventListener('mousedown', (event) => {
|
||||
activeResize = 'right';
|
||||
startX = event.clientX;
|
||||
initialWidth = $right.getBoundingClientRect().width;
|
||||
});
|
||||
|
||||
// 마우스 업 시, 드래그 종료
|
||||
document.addEventListener('mouseup', () => {
|
||||
activeResize = null;
|
||||
});
|
||||
|
||||
// 마우스 이동 시, 해당하는 요소의 너비 조절
|
||||
document.addEventListener('mousemove', (event) => {
|
||||
if (!activeResize) return;
|
||||
|
||||
if (activeResize === 'left') {
|
||||
// 왼쪽 요소의 경우, 오른쪽으로 드래그하면 너비 증가
|
||||
const newWidth = initialWidth + (event.clientX - startX);
|
||||
handleResize($left, newWidth);
|
||||
} else if (activeResize === 'right') {
|
||||
// 오른쪽 요소의 경우, 보통 리사이저가 왼쪽 경계에 있으므로
|
||||
// 마우스를 왼쪽으로 드래그하면 너비 증가
|
||||
const newWidth = initialWidth - (event.clientX - startX);
|
||||
handleResize($right, newWidth);
|
||||
}
|
||||
});
|
||||
|
||||
// 사이즈 조절 동작 함수 (최소, 최대값 적용)
|
||||
function handleResize(elem, newWidth) {
|
||||
if (!elem) return;
|
||||
|
||||
if (newWidth <= 300) {
|
||||
elem.style.width = '300px';
|
||||
} else if (newWidth >= 650) {
|
||||
elem.style.width = '650px';
|
||||
} else {
|
||||
elem.style.width = `${newWidth}px`;
|
||||
}
|
||||
}</script><script src="https://api.digitalarchive.work/hmCesium/lib/axios/dist/axios.js"></script><script async src="https://unpkg.com/es-module-shims@1.6.3/dist/es-module-shims.js"></script><script type="importmap">{
|
||||
"imports": {
|
||||
"three": "../node_modules/three/build/three.module.js",
|
||||
"three/addons/": "../node_modules/three/examples/jsm/",
|
||||
"@tweenjs/tween.js": "../node_modules/@tweenjs/tween.js/dist/tween.esm.js"
|
||||
}
|
||||
}</script><script defer="defer" src="./bundle.669a5fff259e4110fa12.js"></script><script defer="defer" src="./bundle.26e9bcb072f8f12dccbf.js"></script></body></html>
|
||||
@@ -0,0 +1,46 @@
|
||||
# Basis Universal GPU Texture Compression
|
||||
|
||||
Basis Universal is a "[supercompressed](http://gamma.cs.unc.edu/GST/gst.pdf)"
|
||||
GPU texture and texture video compression system that outputs a highly
|
||||
compressed intermediate file format (.basis) that can be quickly transcoded to
|
||||
a wide variety of GPU texture compression formats.
|
||||
|
||||
[GitHub](https://github.com/BinomialLLC/basis_universal)
|
||||
|
||||
## Transcoders
|
||||
|
||||
Basis Universal texture data may be used in two different file formats:
|
||||
`.basis` and `.ktx2`, where `ktx2` is a standardized wrapper around basis texture data.
|
||||
|
||||
For further documentation about the Basis compressor and transcoder, refer to
|
||||
the [Basis GitHub repository](https://github.com/BinomialLLC/basis_universal).
|
||||
|
||||
The folder contains two files required for transcoding `.basis` or `.ktx2` textures:
|
||||
|
||||
* `basis_transcoder.js` — JavaScript wrapper for the WebAssembly transcoder.
|
||||
* `basis_transcoder.wasm` — WebAssembly transcoder.
|
||||
|
||||
Both are dependencies of `KTX2Loader`:
|
||||
|
||||
```js
|
||||
const ktx2Loader = new KTX2Loader();
|
||||
ktx2Loader.setTranscoderPath( 'examples/jsm/libs/basis/' );
|
||||
ktx2Loader.detectSupport( renderer );
|
||||
ktx2Loader.load( 'diffuse.ktx2', function ( texture ) {
|
||||
|
||||
const material = new THREE.MeshStandardMaterial( { map: texture } );
|
||||
|
||||
}, function () {
|
||||
|
||||
console.log( 'onProgress' );
|
||||
|
||||
}, function ( e ) {
|
||||
|
||||
console.error( e );
|
||||
|
||||
} );
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
[Apache License 2.0](https://github.com/BinomialLLC/basis_universal/blob/master/LICENSE)
|
||||
@@ -0,0 +1 @@
|
||||
var BASIS=(()=>{var e="undefined"!=typeof document?document.currentScript?.src:void 0;return"undefined"!=typeof __filename&&(e||=__filename),function(r={}){var t,n,a,o,s=r,i=new Promise((e,r)=>{t=e,n=r}),u="object"==typeof window,l="function"==typeof importScripts,c="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,p=Object.assign({},s),d="";if(c){var f=require("fs"),h=require("path");d=__dirname+"/",o=e=>(e=H(e)?new URL(e):h.normalize(e),f.readFileSync(e)),a=(e,r=!0)=>(e=H(e)?new URL(e):h.normalize(e),new Promise((t,n)=>{f.readFile(e,r?void 0:"utf8",(e,a)=>{e?n(e):t(r?a.buffer:a)})})),!s.thisProgram&&process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2)}else(u||l)&&(l?d=self.location.href:"undefined"!=typeof document&&document.currentScript&&(d=document.currentScript.src),e&&(d=e),d=d.startsWith("blob:")?"":d.substr(0,d.replace(/[?#].*/,"").lastIndexOf("/")+1),l&&(o=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),a=e=>H(e)?new Promise((r,t)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{(200==n.status||0==n.status&&n.response)&&t(n.response),r(n.status)},n.onerror=r,n.send(null)}):fetch(e,{credentials:"same-origin"}).then(e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url))));var v,y,m=s.print||function(){}.bind(),g=s.printErr||function(){}.bind();Object.assign(s,p),p=null,s.arguments&&s.arguments,s.thisProgram&&s.thisProgram,s.quit&&s.quit,s.wasmBinary&&(v=s.wasmBinary);var $,w,T,b,C,P,A,W,_=!1;function S(){var e=y.buffer;s.HEAP8=$=new Int8Array(e),s.HEAP16=T=new Int16Array(e),s.HEAPU8=w=new Uint8Array(e),s.HEAPU16=b=new Uint16Array(e),s.HEAP32=C=new Int32Array(e),s.HEAPU32=P=new Uint32Array(e),s.HEAPF32=A=new Float32Array(e),s.HEAPF64=W=new Float64Array(e)}var F=[],j=[],E=[];function k(e){F.unshift(e)}function O(e){E.unshift(e)}var R=0,D=null,I=null;function x(e){s.onAbort?.(e),g(e="Aborted("+e+")"),_=!0,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw n(r),r}var V,U=e=>e.startsWith("data:application/octet-stream;base64,"),H=e=>e.startsWith("file://");function B(){var e,r="basis_transcoder.wasm";return U(r)?r:(e=r,s.locateFile?s.locateFile(e,d):d+e)}function M(e){if(e==V&&v)return new Uint8Array(v);if(o)return o(e);throw"both async and sync fetching of the wasm failed"}function q(e,r,t){return function(e){return v?Promise.resolve().then(()=>M(e)):a(e).then(e=>new Uint8Array(e),()=>M(e))}(e).then(e=>WebAssembly.instantiate(e,r)).then(t,e=>{g(`failed to asynchronously prepare wasm: ${e}`),x(e)})}var N=e=>{for(;e.length>0;)e.shift()(s)};s.noExitRuntime;class z{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){P[this.ptr+4>>2]=e}get_type(){return P[this.ptr+4>>2]}set_destructor(e){P[this.ptr+8>>2]=e}get_destructor(){return P[this.ptr+8>>2]}set_caught(e){e=e?1:0,$[this.ptr+12]=e}get_caught(){return 0!=$[this.ptr+12]}set_rethrown(e){e=e?1:0,$[this.ptr+13]=e}get_rethrown(){return 0!=$[this.ptr+13]}init(e,r){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(r)}set_adjusted_ptr(e){P[this.ptr+16>>2]=e}get_adjusted_ptr(){return P[this.ptr+16>>2]}get_exception_ptr(){if(kr(this.get_type()))return P[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}var L={},G=e=>{for(;e.length;){var r=e.pop();e.pop()(r)}};function X(e){return this.fromWireType(P[e>>2])}var J,K,Q,Z={},Y={},ee={},re=e=>{throw new J(e)},te=(e,r,t)=>{function n(r){var n=t(r);n.length!==e.length&&re("Mismatched type converter count");for(var a=0;a<e.length;++a)oe(e[a],n[a])}e.forEach(function(e){ee[e]=r});var a=new Array(r.length),o=[],s=0;r.forEach((e,r)=>{Y.hasOwnProperty(e)?a[r]=Y[e]:(o.push(e),Z.hasOwnProperty(e)||(Z[e]=[]),Z[e].push(()=>{a[r]=Y[e],++s===o.length&&n(a)}))}),0===o.length&&n(a)},ne=e=>{for(var r="",t=e;w[t];)r+=K[w[t++]];return r},ae=e=>{throw new Q(e)};function oe(e,r,t={}){if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");return function(e,r,t={}){var n=r.name;if(e||ae(`type "${n}" must have a positive integer typeid pointer`),Y.hasOwnProperty(e)){if(t.ignoreDuplicateRegistrations)return;ae(`Cannot register type '${n}' twice`)}if(Y[e]=r,delete ee[e],Z.hasOwnProperty(e)){var a=Z[e];delete Z[e],a.forEach(e=>e())}}(e,r,t)}var se,ie=8,ue=e=>{ae(e.$$.ptrType.registeredClass.name+" instance already deleted")},le=!1,ce=e=>{},pe=e=>{e.count.value-=1,0===e.count.value&&(e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)})(e)},de=(e,r,t)=>{if(r===t)return e;if(void 0===t.baseClass)return null;var n=de(e,r,t.baseClass);return null===n?null:t.downcast(n)},fe={},he=()=>Object.keys($e).length,ve=()=>{var e=[];for(var r in $e)$e.hasOwnProperty(r)&&e.push($e[r]);return e},ye=[],me=()=>{for(;ye.length;){var e=ye.pop();e.$$.deleteScheduled=!1,e.delete()}}Line truncated
|
||||
Binary file not shown.
@@ -0,0 +1,32 @@
|
||||
# Draco 3D Data Compression
|
||||
|
||||
Draco is an open-source library for compressing and decompressing 3D geometric meshes and point clouds. It is intended to improve the storage and transmission of 3D graphics.
|
||||
|
||||
[Website](https://google.github.io/draco/) | [GitHub](https://github.com/google/draco)
|
||||
|
||||
## Contents
|
||||
|
||||
This folder contains three utilities:
|
||||
|
||||
* `draco_decoder.js` — Emscripten-compiled decoder, compatible with any modern browser.
|
||||
* `draco_decoder.wasm` — WebAssembly decoder, compatible with newer browsers and devices.
|
||||
* `draco_wasm_wrapper.js` — JavaScript wrapper for the WASM decoder.
|
||||
|
||||
Each file is provided in two variations:
|
||||
|
||||
* **Default:** Latest stable builds, tracking the project's [master branch](https://github.com/google/draco).
|
||||
* **glTF:** Builds targeted by the [glTF mesh compression extension](https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_draco_mesh_compression), tracking the [corresponding Draco branch](https://github.com/google/draco/tree/gltf_2.0_draco_extension).
|
||||
|
||||
Either variation may be used with `DRACOLoader`:
|
||||
|
||||
```js
|
||||
var dracoLoader = new DRACOLoader();
|
||||
dracoLoader.setDecoderPath('path/to/decoders/');
|
||||
dracoLoader.setDecoderConfig({type: 'js'}); // (Optional) Override detection of WASM support.
|
||||
```
|
||||
|
||||
Further [documentation on GitHub](https://github.com/google/draco/tree/master/javascript/example#static-loading-javascript-decoder).
|
||||
|
||||
## License
|
||||
|
||||
[Apache License 2.0](https://github.com/google/draco/blob/master/LICENSE)
|
||||
@@ -0,0 +1 @@
|
||||
var DracoDecoderModule=(()=>{var r="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0;return"undefined"!=typeof __filename&&(r=r||__filename),function(e={}){var i,f,a=void 0!==e?e:{};a.ready=new Promise(function(r,e){i=r,f=e});var t=!1,b=!1;a.onRuntimeInitialized=function(){t=!0,b&&"function"==typeof a.onModuleLoaded&&a.onModuleLoaded(a)},a.onModuleParsed=function(){b=!0,t&&"function"==typeof a.onModuleLoaded&&a.onModuleLoaded(a)},a.isVersionSupported=function(r){if("string"!=typeof r)return!1;const e=r.split(".");return!(e.length<2||e.length>3)&&(1==e[0]&&e[1]>=0&&e[1]<=5||!(0!=e[0]||e[1]>10))};var A,n,o,k=Object.assign({},a),u="object"==typeof window,c="function"==typeof importScripts,s="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,_="";if(s){var l=require("fs"),p=require("path");_=c?p.dirname(_)+"/":__dirname+"/",A=(r,e)=>{var i=ar(r);return i?e?i:i.toString():(r=x(r)?new URL(r):p.normalize(r),l.readFileSync(r,e?void 0:"utf8"))},o=r=>{var e=A(r,!0);return e.buffer||(e=new Uint8Array(e)),e},n=(r,e,i)=>{var f=ar(r);f&&e(f),r=x(r)?new URL(r):p.normalize(r),l.readFile(r,function(r,f){r?i(r):e(f.buffer)})},process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),a.inspect=function(){return"[Emscripten Module object]"}}else(u||c)&&(c?_=self.location.href:"undefined"!=typeof document&&document.currentScript&&(_=document.currentScript.src),r&&(_=r),_=0!==_.indexOf("blob:")?_.substr(0,_.replace(/[?#].*/,"").lastIndexOf("/")+1):"",A=r=>{try{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.send(null),e.responseText}catch(e){var i=ar(r);if(i)return function(r){for(var e=[],i=0;i<r.length;i++){var f=r[i];f>255&&(f&=255),e.push(String.fromCharCode(f))}return e.join("")}(i);throw e}},c&&(o=r=>{try{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}catch(e){var i=ar(r);if(i)return i;throw e}}),n=(r,e,i)=>{var f=new XMLHttpRequest;f.open("GET",r,!0),f.responseType="arraybuffer",f.onload=()=>{if(200==f.status||0==f.status&&f.response)e(f.response);else{var a=ar(r);a?e(a.buffer):i()}},f.onerror=i,f.send(null)},r=>document.title=r);var y,d=a.print||function(){}.bind(),m=a.printErr||function(){}.bind();Object.assign(a,k),k=null,a.arguments&&a.arguments,a.thisProgram&&a.thisProgram,a.quit&&a.quit,a.wasmBinary&&(y=a.wasmBinary);var v,h=a.noExitRuntime||!0,R={Memory:function(r){this.buffer=new ArrayBuffer(65536*r.initial)},Module:function(r){},Instance:function(r,e){this.exports=function(r){for(var e,i=new Uint8Array(123),f=25;f>=0;--f)i[48+f]=52+f,i[65+f]=f,i[97+f]=26+f;function a(r,e,f){for(var a,t,b=0,A=e,n=f.length,o=e+(3*n>>2)-("="==f[n-2])-("="==f[n-1]);b<n;b+=4)a=i[f.charCodeAt(b+1)],t=i[f.charCodeAt(b+2)],r[A++]=i[f.charCodeAt(b)]<<2|a>>4,A<o&&(r[A++]=a<<4|t>>2),A<o&&(r[A++]=t<<6|i[f.charCodeAt(b+3)])}i[43]=62,i[47]=63;var t=new ArrayBuffer(16),b=new Int32Array(t),A=new Float32Array(t);new Float64Array(t);function n(){throw new Error("abort")}function o(r){A[2]=r}function k(r){return b[r]}function u(r,e){b[r]=e}function c(){return A[2]}return function(r){var i=r.a,f=i.a,t=f.buffer;f.grow=function(r){r|=0;var i=0|Qa(),a=i+r|0;if(i<a&&a<65536){var n=new ArrayBuffer(m(a,65536));new Int8Array(n).set(b),b=new Int8Array(n),A=new Int16Array(n),s=new Int32Array(n),_=new Uint8Array(n),l=new Uint16Array(n),p=new Uint32Array(n),y=new Float32Array(n),d=new Float64Array(n),t=n,f.buffer=t,e=_}return i};var b=new Int8Array(t),A=new Int16Array(t),s=new Int32Array(t),_=new Uint8Array(t),l=new Uint16Array(t),p=new Uint32Array(t),y=new Float32Array(t),d=new Float64Array(t),m=Math.imul,v=Math.fround,h=Math.abs,R=Math.clz32,N=Math.min,Z=Math.max,G=Math.floor,U=Math.ceil,W=(Math.trunc,Math.sqrt),V=i.b,T=i.c,D=i.d,F=i.e,B=i.f,E=i.g,Y=i.h,Q=83232,j=0;function I(r,e,i){var f,a=0,t=0,b=0,A=0,o=0,k=0,u=0,c=0,l=0,y=0,d=0,v=0,h=0,N=0,Z=0,G=0,U=0,W=0,V=0,T=0,D=0,F=0,B=0;Q=f=Q-672|0,c=s[e+8>>2],G=s[e+12>>2],a=s[e+20>>2];r:{e:{i:if(!((A=(t=s[e+16>>2])+4|0)>>>0>c>>>0&(0|(a=A>>>0<4?a+1|0:a))>=(0|G)|(0|a)>(0|G)||(a=t+s[e>>2]|0,s[r>>2]=_[0|a]|_[a+1|0]<<8|_[a+2|0]<<16|_[a+3|0]<<24,c=a=s[e+20>>2],a=(t=(A=s[e+16>>2])+4|0)>>>0<4?a+1|0:a,s[e+16>>2]=t,s[e+20>>2]=a,p[r>>2]>31||(a=c,(A=A+8|0)>>>0>(G=s[e+8>>2])>>>0&(0|(a=A>>>0<8?a+1|0:a))>=(0|(D=s[e+12>>2]))|(0|a)>(0|D)||(a=t+s[e>>2]|0,s[r+4>>2]=_[0|a]|_[a+1|0]<<8|_[a+2|0]<<16|_[a+3|0]<<24,c=a=s[e+20>>2],a=(t=(A=s[e+16>>2])+4|0)>>>0<4?a+1|0:a,s[e+16>>2]=t,s[e+20>>2]=a,a=c,(A=A+8|0)>>>0>(G=s[e+8>>2])>>>0&(0|(a=A>>>0<8?a+1|0:a))>=(0|(D=s[e+12>>2]))|(0|a)>(0|D)||(a=t+s[e>>2]|0,s[r+12>>2]=_[0|a]|_[a+1|0]<<8|_[a+2|0]<<16|_[a+3|0]<<24,c=a=s[e+20>>2],a=(t=(A=s[e+16>>2])+4|0)>>>0<4?a+1|0:a,s[e+16>>2]=t,s[e+20>>2]=a,a=s[r+20>>2],(0|(T=s[r+12>>2]))!=(0|a)&&a||(a=c,(A=A+8|0)>>>0>(G=s[e+8>>2])>>>0&(0|(a=A>>>0<8?a+1|0:a))>=(0|(D=s[e+12>>2]))|(0|a)>(0|D))))))))if(a=t+s[e>>2]|0,t=_[0|a]|_[a+1|0]<<8|_[a+2|0]<<16|_[a+3|0]<<24,s[r+16>>2]=t,A=s[e+20Line truncated
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
var DracoEncoderModule=function(e){var r=void 0!==(e=e||{})?e:{},i=!1,f=!1;r.onRuntimeInitialized=function(){i=!0,f&&"function"==typeof r.onModuleLoaded&&r.onModuleLoaded(r)},r.onModuleParsed=function(){f=!0,i&&"function"==typeof r.onModuleLoaded&&r.onModuleLoaded(r)},r.isVersionSupported=function(e){if("string"!=typeof e)return!1;const r=e.split(".");return!(r.length<2||r.length>3)&&(1==r[0]&&r[1]>=0&&r[1]<=3||!(0!=r[0]||r[1]>10))};var A,t={};for(A in r)r.hasOwnProperty(A)&&(t[A]=r[A]);r.arguments=[],r.thisProgram="./this.program",r.quit=function(e,r){throw r},r.preRun=[],r.postRun=[];var a,o,n=!1,b=!1,l=!1,c=!1;if(r.ENVIRONMENT)if("WEB"===r.ENVIRONMENT)n=!0;else if("WORKER"===r.ENVIRONMENT)b=!0;else if("NODE"===r.ENVIRONMENT)l=!0;else{if("SHELL"!==r.ENVIRONMENT)throw new Error("Module['ENVIRONMENT'] value is not valid. must be one of: WEB|WORKER|NODE|SHELL.");c=!0}else n="object"==typeof window,b="function"==typeof importScripts,l="object"==typeof process&&"function"==typeof require&&!n&&!b,c=!n&&!l&&!b;l?(r.read=function(e,r){var i;return(i=Ee(e))||(a||(a=require("fs")),o||(o=require("path")),e=o.normalize(e),i=a.readFileSync(e)),r?i:i.toString()},r.readBinary=function(e){var i=r.read(e,!0);return i.buffer||(i=new Uint8Array(i)),h(i.buffer),i},process.argv.length>1&&(r.thisProgram=process.argv[1].replace(/\\/g,"/")),r.arguments=process.argv.slice(2),process.on("uncaughtException",function(e){if(!(e instanceof yi))throw e}),process.on("unhandledRejection",function(e,r){process.exit(1)}),r.inspect=function(){return"[Emscripten Module object]"}):c?("undefined"!=typeof read&&(r.read=function(e){var r=Ee(e);return r?Re(r):read(e)}),r.readBinary=function(e){var r;return(r=Ee(e))?r:"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(h("object"==typeof(r=read(e,"binary"))),r)},"undefined"!=typeof scriptArgs?r.arguments=scriptArgs:void 0!==arguments&&(r.arguments=arguments),"function"==typeof quit&&(r.quit=function(e,r){quit(e)})):(n||b)&&(r.read=function(e){try{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.send(null),r.responseText}catch(r){var i=Ee(e);if(i)return Re(i);throw r}},b&&(r.readBinary=function(e){try{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}catch(r){var i=Ee(e);if(i)return i;throw r}}),r.readAsync=function(e,r,i){var f=new XMLHttpRequest;f.open("GET",e,!0),f.responseType="arraybuffer",f.onload=function(){if(200==f.status||0==f.status&&f.response)r(f.response);else{var A=Ee(e);A?r(A.buffer):i()}},f.onerror=i,f.send(null)},r.setWindowTitle=function(e){document.title=e});for(A in r.print="undefined"!=typeof console?function(){}.bind():"undefined"!=typeof print?print:null,r.printErr="undefined"!=typeof printErr?printErr:"undefined"!=typeof console&&function(){}.bind()||r.print,r.print=r.print,r.printErr=r.printErr,t)t.hasOwnProperty(A)&&(r[A]=t[A]);t=void 0;function u(e){h(!F);var r=G;return G=G+e+15&-16,r}function s(e){h(T);var r=W[T>>2],i=r+e+15&-16;if((W[T>>2]=i,i>=S)&&!z())return W[T>>2]=r,0;return r}function k(e,r){return r||(r=16),e=Math.ceil(e/r)*r}function d(e){switch(e){case"i1":case"i8":return 1;case"i16":return 2;case"i32":case"float":return 4;case"i64":case"double":return 8;default:if("*"===e[e.length-1])return 4;if("i"===e[0]){var r=parseInt(e.substr(1));return h(r%8==0),r/8}return 0}}new Array(0);var _=0;function h(e,r){e||Zi("Assertion failed: "+r)}function p(e,r,i,f){switch("*"===(i=i||"i8").charAt(i.length-1)&&(i="i32"),i){case"i1":case"i8":R[e|0]=r;break;case"i16":E[e>>1]=r;break;case"i32":W[e>>2]=r;break;case"i64":tempI64=[r>>>0,(tempDouble=r,+re(tempDouble)>=1?tempDouble>0?(0|Ae(+fe(tempDouble/4294967296),4294967295))>>>0:~~+ie((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],W[e>>2]=tempI64[0],W[e+4>>2]=tempI64[1];break;case"float":V[e>>2]=r;break;case"double":N[e>>3]=r;break;default:Zi("invalid type for setValue: "+i)}}function w(e,r){if(0===r||!e)return"";for(var i,f=0,A=0;f|=i=B[e+A|0],(0!=i||r)&&(A++,!r||A!=r););r||(r=A);var t="";if(f<128){for(var a,o=1024;r>0;)a=String.fromCharCode.apply(String,B.subarray(e,e+Math.min(r,o))),t=t?t+a:a,e+=o,r-=o;return t}return function(e){return y(B,e)}(e)}var v="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function y(e,r){for(var i=r;e[i];)++i;if(i-r>16&&e.subarray&&v)return v.decode(e.subarray(r,i));for(var f,A,t,a,o,n="";;){if(!(f=e[r++]))return n;if(128&f)if(A=63&e[r++],192!=(224&f))if(t=63&e[r++],224==(240&f)?f=(15&f)<<12|A<<6|t:(a=63&e[r++],240==(248&f)?f=(7&f)<<18|A<<12|t<<6|a:(o=63&e[r++],f=248==(252&f)?(3&f)<<24|A<<18|t<<12|a<<6|o:(1&f)<<30|A<<24|t<<18|a<<12|o<<6|63&e[r++])),f<65536)n+=String.fromCharCode(f);else{var b=f-65536;n+=String.fromCharCode(55296|b>>10,56320|1023&b)}else n+=String.fromCharCode((31&f)<<6|A);else n+=String.fromCharCode(f)}}function m(e,r,i,f){if(!(f>0))return 0;for(var A=i,t=i+f-1,a=0;a<e.length;++a){var o=e.charCodeAt(a);if(o>=55296&&o<=57343&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++a)),o<=127Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.arrayIteratorImpl=function(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}},$jscomp.arrayIterator=function(t){return{next:$jscomp.arrayIteratorImpl(t)}},$jscomp.makeIterator=function(t){var e="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return e?e.call(t):$jscomp.arrayIterator(t)},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.ISOLATE_POLYFILLS=!1,$jscomp.FORCE_POLYFILL_PROMISE=!1,$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1,$jscomp.getGlobal=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var e=0;e<t.length;++e){var r=t[e];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")},$jscomp.global=$jscomp.getGlobal(this),$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,r){return t==Array.prototype||t==Object.prototype||(t[e]=r.value),t},$jscomp.IS_SYMBOL_NATIVE="function"==typeof Symbol&&"symbol"==typeof Symbol("x"),$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE,$jscomp.polyfills={},$jscomp.propertyToPolyfillSymbol={},$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(t,e){var r=$jscomp.propertyToPolyfillSymbol[e];return null==r?t[e]:void 0!==(r=t[r])?r:t[e]};$jscomp.polyfill=function(t,e,r,n){e&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(t,e,r,n):$jscomp.polyfillUnisolated(t,e,r,n))},$jscomp.polyfillUnisolated=function(t,e,r,n){for(r=$jscomp.global,t=t.split("."),n=0;n<t.length-1;n++){var o=t[n];if(!(o in r))return;r=r[o]}(e=e(n=r[t=t[t.length-1]]))!=n&&null!=e&&$jscomp.defineProperty(r,t,{configurable:!0,writable:!0,value:e})},$jscomp.polyfillIsolated=function(t,e,r,n){var o=t.split(".");t=1===o.length,n=o[0],n=!t&&n in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var _=0;_<o.length-1;_++){var i=o[_];if(!(i in n))return;n=n[i]}o=o[o.length-1],null!=(e=e(r=$jscomp.IS_SYMBOL_NATIVE&&"es6"===r?n[o]:null))&&(t?$jscomp.defineProperty($jscomp.polyfills,o,{configurable:!0,writable:!0,value:e}):e!==r&&(void 0===$jscomp.propertyToPolyfillSymbol[o]&&(r=1e9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[o]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(o):$jscomp.POLYFILL_PREFIX+r+"$"+o),$jscomp.defineProperty(n,$jscomp.propertyToPolyfillSymbol[o],{configurable:!0,writable:!0,value:e})))},$jscomp.polyfill("Promise",function(t){function e(){this.batch_=null}function r(t){return t instanceof o?t:new o(function(e,r){e(t)})}if(t&&(!($jscomp.FORCE_POLYFILL_PROMISE||$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION&&void 0===$jscomp.global.PromiseRejectionEvent)||!$jscomp.global.Promise||-1===$jscomp.global.Promise.toString().indexOf("[native code]")))return t;e.prototype.asyncExecute=function(t){if(null==this.batch_){this.batch_=[];var e=this;this.asyncExecuteFunction(function(){e.executeBatch_()})}this.batch_.push(t)};var n=$jscomp.global.setTimeout;e.prototype.asyncExecuteFunction=function(t){n(t,0)},e.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var t=this.batch_;this.batch_=[];for(var e=0;e<t.length;++e){var r=t[e];t[e]=null;try{r()}catch(t){this.asyncThrow_(t)}}}this.batch_=null},e.prototype.asyncThrow_=function(t){this.asyncExecuteFunction(function(){throw t})};var o=function(t){this.state_=0,this.result_=void 0,this.onSettledCallbacks_=[],this.isRejectionHandled_=!1;var e=this.createResolveAndReject_();try{t(e.resolve,e.reject)}catch(t){e.reject(t)}};o.prototype.createResolveAndReject_=function(){function t(t){return function(n){r||(r=!0,t.call(e,n))}}var e=this,r=!1;return{resolve:t(this.resolveTo_),reject:t(this.reject_)}},o.prototype.resolveTo_=function(t){if(t===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(t instanceof o)this.settleSameAsPromise_(t);else{t:switch(typeof t){case"object":var e=null!=t;break t;case"function":e=!0;break t;default:e=!1}e?this.resolveToNonPromiseObj_(t):this.fulfill_(t)}},o.prototype.resolveToNonPromiseObj_=function(t){var e=void 0;try{e=t.then}catch(t){return void this.reject_(t)}"function"==typeof e?this.settleSameAsThenable_(e,t):this.fulfill_(t)},o.prototype.reject_=function(t){this.settle_(2,t)},o.prototype.fulfill_=function(t){this.settle_(1,t)},o.prototype.settle_=function(t,e){if(0!=this.state_)throw Error("Cannot settle("+t+", "+e+"): Promise already settled in state"+this.state_);this.state_=t,this.result_=e,2===this.state_&&this.scheduleUnhandledRejectionCheck_(),this.executeOnSettledCallbacks_()},o.prototype.scheduleUnhandledRejectionCheck_=function(){var t=this;n(function(){if(t.notifyUnhandledRejection_()){var e=$jscomp.global.console;void 0!==e&&e.error(t.result_)}},1)},o.prototype.notifyUnhandledRejection_=function(){if(this.isRejectioLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
var DracoDecoderModule=(()=>{var r="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0;return"undefined"!=typeof __filename&&(r=r||__filename),function(e={}){var i,t,f=void 0!==e?e:{};f.ready=new Promise(function(r,e){i=r,t=e});var a=!1,n=!1;f.onRuntimeInitialized=function(){a=!0,n&&"function"==typeof f.onModuleLoaded&&f.onModuleLoaded(f)},f.onModuleParsed=function(){n=!0,a&&"function"==typeof f.onModuleLoaded&&f.onModuleLoaded(f)},f.isVersionSupported=function(r){if("string"!=typeof r)return!1;const e=r.split(".");return!(e.length<2||e.length>3)&&(1==e[0]&&e[1]>=0&&e[1]<=5||!(0!=e[0]||e[1]>10))};var A,o,b,u=Object.assign({},f),c="object"==typeof window,k="function"==typeof importScripts,_="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,s="";if(_){var p=require("fs"),l=require("path");s=k?l.dirname(s)+"/":__dirname+"/",A=(r,e)=>{var i=rr(r);return i?e?i:i.toString():(r=H(r)?new URL(r):l.normalize(r),p.readFileSync(r,e?void 0:"utf8"))},b=r=>{var e=A(r,!0);return e.buffer||(e=new Uint8Array(e)),e},o=(r,e,i)=>{var t=rr(r);t&&e(t),r=H(r)?new URL(r):l.normalize(r),p.readFile(r,function(r,t){r?i(r):e(t.buffer)})},process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),f.inspect=function(){return"[Emscripten Module object]"}}else(c||k)&&(k?s=self.location.href:"undefined"!=typeof document&&document.currentScript&&(s=document.currentScript.src),r&&(s=r),s=0!==s.indexOf("blob:")?s.substr(0,s.replace(/[?#].*/,"").lastIndexOf("/")+1):"",A=r=>{try{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.send(null),e.responseText}catch(e){var i=rr(r);if(i)return function(r){for(var e=[],i=0;i<r.length;i++){var t=r[i];t>255&&(t&=255),e.push(String.fromCharCode(t))}return e.join("")}(i);throw e}},k&&(b=r=>{try{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}catch(e){var i=rr(r);if(i)return i;throw e}}),o=(r,e,i)=>{var t=new XMLHttpRequest;t.open("GET",r,!0),t.responseType="arraybuffer",t.onload=()=>{if(200==t.status||0==t.status&&t.response)e(t.response);else{var f=rr(r);f?e(f.buffer):i()}},t.onerror=i,t.send(null)},r=>document.title=r);f.print||function(){}.bind();var y,d=f.printErr||function(){}.bind();Object.assign(f,u),u=null,f.arguments&&f.arguments,f.thisProgram&&f.thisProgram,f.quit&&f.quit,f.wasmBinary&&(y=f.wasmBinary);var m,v=f.noExitRuntime||!0,h={Memory:function(r){this.buffer=new ArrayBuffer(65536*r.initial)},Module:function(r){},Instance:function(r,e){this.exports=function(r){for(var e,i=new Uint8Array(123),t=25;t>=0;--t)i[48+t]=52+t,i[65+t]=t,i[97+t]=26+t;function f(r,e,t){for(var f,a,n=0,A=e,o=t.length,b=e+(3*o>>2)-("="==t[o-2])-("="==t[o-1]);n<o;n+=4)f=i[t.charCodeAt(n+1)],a=i[t.charCodeAt(n+2)],r[A++]=i[t.charCodeAt(n)]<<2|f>>4,A<b&&(r[A++]=f<<4|a>>2),A<b&&(r[A++]=a<<6|i[t.charCodeAt(n+3)])}i[43]=62,i[47]=63;var a=new ArrayBuffer(16),n=new Int32Array(a),A=new Float32Array(a);new Float64Array(a);function o(){throw new Error("abort")}function b(r){A[2]=r}function u(r){return n[r]}return function(r){var i=r.a,t=i.a,a=t.buffer;t.grow=function(r){r|=0;var i=0|Et(),f=i+r|0;if(i<f&&f<65536){var o=new ArrayBuffer(y(f,65536));new Int8Array(o).set(n),n=new Int8Array(o),A=new Int16Array(o),c=new Int32Array(o),k=new Uint8Array(o),_=new Uint16Array(o),s=new Uint32Array(o),p=new Float32Array(o),l=new Float64Array(o),a=o,t.buffer=a,e=k}return i};var n=new Int8Array(a),A=new Int16Array(a),c=new Int32Array(a),k=new Uint8Array(a),_=new Uint16Array(a),s=new Uint32Array(a),p=new Float32Array(a),l=new Float64Array(a),y=Math.imul,d=Math.fround,m=Math.abs,v=Math.clz32,h=Math.min,R=Math.max,N=Math.floor,T=Math.ceil,V=(Math.trunc,Math.sqrt),U=i.b,W=i.c,D=i.d,G=i.e,Z=77808,E=0;function F(r,e,i,t){var f=0,a=0,A=0,o=0,b=0,u=0,p=0,l=0,d=0,m=0,v=0,h=0,R=0,N=0,T=0,V=0,U=0,W=0,D=0,G=0,E=0,F=0;if(!r)return 1;r:if(!((0|(f=c[i+20>>2]))>=(0|(v=c[i+12>>2]))&(A=c[i+16>>2])>>>0>=s[i+8>>2]|(0|f)>(0|v))){v=k[A+c[i>>2]|0],f=(A=A+1|0)?f:f+1|0,c[i+16>>2]=A,c[i+20>>2]=f;e:switch(0|v){case 0:f=r,a=e,A=t,r=0,t=0,Z=u=Z+-64|0,c[u+56>>2]=0,c[u+48>>2]=0,c[u+52>>2]=0,c[u+40>>2]=0,c[u+44>>2]=0,c[u+32>>2]=0,c[u+36>>2]=0,c[u+24>>2]=0,c[u+28>>2]=0,c[u+16>>2]=0,c[u+20>>2]=0,c[u+8>>2]=0,c[u+12>>2]=0;i:if(or(u+8|0,i)&&!(!jr(u+8|0,i)|(c[u+20>>2]?0:f))){if(bi(i,0,0),f)for(T=a<<2,V=c[u+36>>2],U=c[u+48>>2],G=c[u+24>>2],l=c[u+56>>2],b=c[u+52>>2];;){t:if(!(l>>>0>16383))for(;;){if((0|b)<=0)break t;if(b=b-1|0,c[u+52>>2]=b,l=k[b+U|0]|l<<8,c[u+56>>2]=l,!(l>>>0<16384))break}if(N=c[((r=4095&l)<<2)+G>>2],l=(y(c[(e=(N<<3)+V|0)>>2],l>>>12|0)+r|0)-c[e+4>>2]|0,c[u+56>>2]=l,(0|a)>0){if(r=0,!k[i+36|0]|N>>>0>32)break i;if(v=t+a|0,N)for(E=-2&N,F=1&N,e=c[i+32>>2],o=c[i+28>>2],R=c[i+24>>2];;){if(p=0,r=e,d=0,m=0,1!=(0|N))for(;(h=R+(r>>>3|0)|0)>>>0>=o>>>0?h=0:(h=k[0|h],e=r+1|0,c[i+32>>2]=e,h=h>>>(7&r)&1,r=e),h=h<<p|d,d=0,(W=R+(r>>>3|0)|0)>>>0<o>>>0&&(d=k[0|W],e=r+1|0,c[i+32>>2]=e,d=d>>>(7&r)&1,r=e),W=1|p,p=p+2Line truncated
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
var DracoEncoderModule=function(e){var r=void 0!==(e=e||{})?e:{},i=!1,f=!1;r.onRuntimeInitialized=function(){i=!0,f&&"function"==typeof r.onModuleLoaded&&r.onModuleLoaded(r)},r.onModuleParsed=function(){f=!0,i&&"function"==typeof r.onModuleLoaded&&r.onModuleLoaded(r)},r.isVersionSupported=function(e){if("string"!=typeof e)return!1;const r=e.split(".");return!(r.length<2||r.length>3)&&(1==r[0]&&r[1]>=0&&r[1]<=3||!(0!=r[0]||r[1]>10))};var A,a={};for(A in r)r.hasOwnProperty(A)&&(a[A]=r[A]);r.arguments=[],r.thisProgram="./this.program",r.quit=function(e,r){throw r},r.preRun=[],r.postRun=[];var t,o,n=!1,b=!1,l=!1,c=!1;if(r.ENVIRONMENT)if("WEB"===r.ENVIRONMENT)n=!0;else if("WORKER"===r.ENVIRONMENT)b=!0;else if("NODE"===r.ENVIRONMENT)l=!0;else{if("SHELL"!==r.ENVIRONMENT)throw new Error("Module['ENVIRONMENT'] value is not valid. must be one of: WEB|WORKER|NODE|SHELL.");c=!0}else n="object"==typeof window,b="function"==typeof importScripts,l="object"==typeof process&&"function"==typeof require&&!n&&!b,c=!n&&!l&&!b;l?(r.read=function(e,r){var i;return(i=Ve(e))||(t||(t=require("fs")),o||(o=require("path")),e=o.normalize(e),i=t.readFileSync(e)),r?i:i.toString()},r.readBinary=function(e){var i=r.read(e,!0);return i.buffer||(i=new Uint8Array(i)),h(i.buffer),i},process.argv.length>1&&(r.thisProgram=process.argv[1].replace(/\\/g,"/")),r.arguments=process.argv.slice(2),process.on("uncaughtException",function(e){if(!(e instanceof ni))throw e}),process.on("unhandledRejection",function(e,r){process.exit(1)}),r.inspect=function(){return"[Emscripten Module object]"}):c?("undefined"!=typeof read&&(r.read=function(e){var r=Ve(e);return r?Ze(r):read(e)}),r.readBinary=function(e){var r;return(r=Ve(e))?r:"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(h("object"==typeof(r=read(e,"binary"))),r)},"undefined"!=typeof scriptArgs?r.arguments=scriptArgs:void 0!==arguments&&(r.arguments=arguments),"function"==typeof quit&&(r.quit=function(e,r){quit(e)})):(n||b)&&(r.read=function(e){try{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.send(null),r.responseText}catch(r){var i=Ve(e);if(i)return Ze(i);throw r}},b&&(r.readBinary=function(e){try{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}catch(r){var i=Ve(e);if(i)return i;throw r}}),r.readAsync=function(e,r,i){var f=new XMLHttpRequest;f.open("GET",e,!0),f.responseType="arraybuffer",f.onload=function(){if(200==f.status||0==f.status&&f.response)r(f.response);else{var A=Ve(e);A?r(A.buffer):i()}},f.onerror=i,f.send(null)},r.setWindowTitle=function(e){document.title=e});for(A in r.print="undefined"!=typeof console?function(){}.bind():"undefined"!=typeof print?print:null,r.printErr="undefined"!=typeof printErr?printErr:"undefined"!=typeof console&&function(){}.bind()||r.print,r.print=r.print,r.printErr=r.printErr,a)a.hasOwnProperty(A)&&(r[A]=a[A]);a=void 0;function u(e){h(!F);var r=U;return U=U+e+15&-16,r}function s(e){h(I);var r=W[I>>2],i=r+e+15&-16;if((W[I>>2]=i,i>=z)&&!H())return W[I>>2]=r,0;return r}function k(e,r){return r||(r=16),e=Math.ceil(e/r)*r}function d(e){switch(e){case"i1":case"i8":return 1;case"i16":return 2;case"i32":case"float":return 4;case"i64":case"double":return 8;default:if("*"===e[e.length-1])return 4;if("i"===e[0]){var r=parseInt(e.substr(1));return h(r%8==0),r/8}return 0}}new Array(0);var _=0;function h(e,r){e||li("Assertion failed: "+r)}function w(e,r,i,f){switch("*"===(i=i||"i8").charAt(i.length-1)&&(i="i32"),i){case"i1":case"i8":Z[e|0]=r;break;case"i16":V[e>>1]=r;break;case"i32":W[e>>2]=r;break;case"i64":tempI64=[r>>>0,(tempDouble=r,+re(tempDouble)>=1?tempDouble>0?(0|Ae(+fe(tempDouble/4294967296),4294967295))>>>0:~~+ie((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],W[e>>2]=tempI64[0],W[e+4>>2]=tempI64[1];break;case"float":N[e>>2]=r;break;case"double":G[e>>3]=r;break;default:li("invalid type for setValue: "+i)}}function p(e,r){if(0===r||!e)return"";for(var i,f=0,A=0;f|=i=R[e+A|0],(0!=i||r)&&(A++,!r||A!=r););r||(r=A);var a="";if(f<128){for(var t,o=1024;r>0;)t=String.fromCharCode.apply(String,R.subarray(e,e+Math.min(r,o))),a=a?a+t:t,e+=o,r-=o;return a}return function(e){return y(R,e)}(e)}var v="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function y(e,r){for(var i=r;e[i];)++i;if(i-r>16&&e.subarray&&v)return v.decode(e.subarray(r,i));for(var f,A,a,t,o,n="";;){if(!(f=e[r++]))return n;if(128&f)if(A=63&e[r++],192!=(224&f))if(a=63&e[r++],224==(240&f)?f=(15&f)<<12|A<<6|a:(t=63&e[r++],240==(248&f)?f=(7&f)<<18|A<<12|a<<6|t:(o=63&e[r++],f=248==(252&f)?(3&f)<<24|A<<18|a<<12|t<<6|o:(1&f)<<30|A<<24|a<<18|t<<12|o<<6|63&e[r++])),f<65536)n+=String.fromCharCode(f);else{var b=f-65536;n+=String.fromCharCode(55296|b>>10,56320|1023&b)}else n+=String.fromCharCode((31&f)<<6|A);else n+=String.fromCharCode(f)}}function m(e,r,i,f){if(!(f>0))return 0;for(var A=i,a=i+f-1,t=0;t<e.length;++t){var o=e.charCodeAt(t);if(o>=55296&&o<=57343&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++t)),o<=127Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.arrayIteratorImpl=function(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}},$jscomp.arrayIterator=function(t){return{next:$jscomp.arrayIteratorImpl(t)}},$jscomp.makeIterator=function(t){var e="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return e?e.call(t):$jscomp.arrayIterator(t)},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.ISOLATE_POLYFILLS=!1,$jscomp.FORCE_POLYFILL_PROMISE=!1,$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1,$jscomp.getGlobal=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var e=0;e<t.length;++e){var r=t[e];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")},$jscomp.global=$jscomp.getGlobal(this),$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,r){return t==Array.prototype||t==Object.prototype||(t[e]=r.value),t},$jscomp.IS_SYMBOL_NATIVE="function"==typeof Symbol&&"symbol"==typeof Symbol("x"),$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE,$jscomp.polyfills={},$jscomp.propertyToPolyfillSymbol={},$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(t,e){var r=$jscomp.propertyToPolyfillSymbol[e];return null==r?t[e]:void 0!==(r=t[r])?r:t[e]};$jscomp.polyfill=function(t,e,r,n){e&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(t,e,r,n):$jscomp.polyfillUnisolated(t,e,r,n))},$jscomp.polyfillUnisolated=function(t,e,r,n){for(r=$jscomp.global,t=t.split("."),n=0;n<t.length-1;n++){var o=t[n];if(!(o in r))return;r=r[o]}(e=e(n=r[t=t[t.length-1]]))!=n&&null!=e&&$jscomp.defineProperty(r,t,{configurable:!0,writable:!0,value:e})},$jscomp.polyfillIsolated=function(t,e,r,n){var o=t.split(".");t=1===o.length,n=o[0],n=!t&&n in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var _=0;_<o.length-1;_++){var i=o[_];if(!(i in n))return;n=n[i]}o=o[o.length-1],null!=(e=e(r=$jscomp.IS_SYMBOL_NATIVE&&"es6"===r?n[o]:null))&&(t?$jscomp.defineProperty($jscomp.polyfills,o,{configurable:!0,writable:!0,value:e}):e!==r&&(void 0===$jscomp.propertyToPolyfillSymbol[o]&&(r=1e9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[o]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(o):$jscomp.POLYFILL_PREFIX+r+"$"+o),$jscomp.defineProperty(n,$jscomp.propertyToPolyfillSymbol[o],{configurable:!0,writable:!0,value:e})))},$jscomp.polyfill("Promise",function(t){function e(){this.batch_=null}function r(t){return t instanceof o?t:new o(function(e,r){e(t)})}if(t&&(!($jscomp.FORCE_POLYFILL_PROMISE||$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION&&void 0===$jscomp.global.PromiseRejectionEvent)||!$jscomp.global.Promise||-1===$jscomp.global.Promise.toString().indexOf("[native code]")))return t;e.prototype.asyncExecute=function(t){if(null==this.batch_){this.batch_=[];var e=this;this.asyncExecuteFunction(function(){e.executeBatch_()})}this.batch_.push(t)};var n=$jscomp.global.setTimeout;e.prototype.asyncExecuteFunction=function(t){n(t,0)},e.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var t=this.batch_;this.batch_=[];for(var e=0;e<t.length;++e){var r=t[e];t[e]=null;try{r()}catch(t){this.asyncThrow_(t)}}}this.batch_=null},e.prototype.asyncThrow_=function(t){this.asyncExecuteFunction(function(){throw t})};var o=function(t){this.state_=0,this.result_=void 0,this.onSettledCallbacks_=[],this.isRejectionHandled_=!1;var e=this.createResolveAndReject_();try{t(e.resolve,e.reject)}catch(t){e.reject(t)}};o.prototype.createResolveAndReject_=function(){function t(t){return function(n){r||(r=!0,t.call(e,n))}}var e=this,r=!1;return{resolve:t(this.resolveTo_),reject:t(this.reject_)}},o.prototype.resolveTo_=function(t){if(t===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(t instanceof o)this.settleSameAsPromise_(t);else{t:switch(typeof t){case"object":var e=null!=t;break t;case"function":e=!0;break t;default:e=!1}e?this.resolveToNonPromiseObj_(t):this.fulfill_(t)}},o.prototype.resolveToNonPromiseObj_=function(t){var e=void 0;try{e=t.then}catch(t){return void this.reject_(t)}"function"==typeof e?this.settleSameAsThenable_(e,t):this.fulfill_(t)},o.prototype.reject_=function(t){this.settle_(2,t)},o.prototype.fulfill_=function(t){this.settle_(1,t)},o.prototype.settle_=function(t,e){if(0!=this.state_)throw Error("Cannot settle("+t+", "+e+"): Promise already settled in state"+this.state_);this.state_=t,this.result_=e,2===this.state_&&this.scheduleUnhandledRejectionCheck_(),this.executeOnSettledCallbacks_()},o.prototype.scheduleUnhandledRejectionCheck_=function(){var t=this;n(function(){if(t.notifyUnhandledRejection_()){var e=$jscomp.global.console;void 0!==e&&e.error(t.result_)}},1)},o.prototype.notifyUnhandledRejection_=function(){if(this.isRejectioLine truncated
|
||||
@@ -0,0 +1,46 @@
|
||||
# Basis Universal GPU Texture Compression
|
||||
|
||||
Basis Universal is a "[supercompressed](http://gamma.cs.unc.edu/GST/gst.pdf)"
|
||||
GPU texture and texture video compression system that outputs a highly
|
||||
compressed intermediate file format (.basis) that can be quickly transcoded to
|
||||
a wide variety of GPU texture compression formats.
|
||||
|
||||
[GitHub](https://github.com/BinomialLLC/basis_universal)
|
||||
|
||||
## Transcoders
|
||||
|
||||
Basis Universal texture data may be used in two different file formats:
|
||||
`.basis` and `.ktx2`, where `ktx2` is a standardized wrapper around basis texture data.
|
||||
|
||||
For further documentation about the Basis compressor and transcoder, refer to
|
||||
the [Basis GitHub repository](https://github.com/BinomialLLC/basis_universal).
|
||||
|
||||
The folder contains two files required for transcoding `.basis` or `.ktx2` textures:
|
||||
|
||||
* `basis_transcoder.js` — JavaScript wrapper for the WebAssembly transcoder.
|
||||
* `basis_transcoder.wasm` — WebAssembly transcoder.
|
||||
|
||||
Both are dependencies of `KTX2Loader`:
|
||||
|
||||
```js
|
||||
const ktx2Loader = new KTX2Loader();
|
||||
ktx2Loader.setTranscoderPath( 'examples/jsm/libs/basis/' );
|
||||
ktx2Loader.detectSupport( renderer );
|
||||
ktx2Loader.load( 'diffuse.ktx2', function ( texture ) {
|
||||
|
||||
const material = new THREE.MeshStandardMaterial( { map: texture } );
|
||||
|
||||
}, function () {
|
||||
|
||||
console.log( 'onProgress' );
|
||||
|
||||
}, function ( e ) {
|
||||
|
||||
console.error( e );
|
||||
|
||||
} );
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
[Apache License 2.0](https://github.com/BinomialLLC/basis_universal/blob/master/LICENSE)
|
||||
@@ -0,0 +1 @@
|
||||
var BASIS=(()=>{var e="undefined"!=typeof document?document.currentScript?.src:void 0;return"undefined"!=typeof __filename&&(e||=__filename),function(r={}){var t,n,a,o,s=r,i=new Promise((e,r)=>{t=e,n=r}),u="object"==typeof window,l="function"==typeof importScripts,c="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,p=Object.assign({},s),d="";if(c){var f=require("fs"),h=require("path");d=__dirname+"/",o=e=>(e=H(e)?new URL(e):h.normalize(e),f.readFileSync(e)),a=(e,r=!0)=>(e=H(e)?new URL(e):h.normalize(e),new Promise((t,n)=>{f.readFile(e,r?void 0:"utf8",(e,a)=>{e?n(e):t(r?a.buffer:a)})})),!s.thisProgram&&process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2)}else(u||l)&&(l?d=self.location.href:"undefined"!=typeof document&&document.currentScript&&(d=document.currentScript.src),e&&(d=e),d=d.startsWith("blob:")?"":d.substr(0,d.replace(/[?#].*/,"").lastIndexOf("/")+1),l&&(o=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),a=e=>H(e)?new Promise((r,t)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{(200==n.status||0==n.status&&n.response)&&t(n.response),r(n.status)},n.onerror=r,n.send(null)}):fetch(e,{credentials:"same-origin"}).then(e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url))));var v,y,m=s.print||function(){}.bind(),g=s.printErr||function(){}.bind();Object.assign(s,p),p=null,s.arguments&&s.arguments,s.thisProgram&&s.thisProgram,s.quit&&s.quit,s.wasmBinary&&(v=s.wasmBinary);var $,w,T,b,C,P,A,W,_=!1;function S(){var e=y.buffer;s.HEAP8=$=new Int8Array(e),s.HEAP16=T=new Int16Array(e),s.HEAPU8=w=new Uint8Array(e),s.HEAPU16=b=new Uint16Array(e),s.HEAP32=C=new Int32Array(e),s.HEAPU32=P=new Uint32Array(e),s.HEAPF32=A=new Float32Array(e),s.HEAPF64=W=new Float64Array(e)}var F=[],j=[],E=[];function k(e){F.unshift(e)}function O(e){E.unshift(e)}var R=0,D=null,I=null;function x(e){s.onAbort?.(e),g(e="Aborted("+e+")"),_=!0,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw n(r),r}var V,U=e=>e.startsWith("data:application/octet-stream;base64,"),H=e=>e.startsWith("file://");function B(){var e,r="basis_transcoder.wasm";return U(r)?r:(e=r,s.locateFile?s.locateFile(e,d):d+e)}function M(e){if(e==V&&v)return new Uint8Array(v);if(o)return o(e);throw"both async and sync fetching of the wasm failed"}function q(e,r,t){return function(e){return v?Promise.resolve().then(()=>M(e)):a(e).then(e=>new Uint8Array(e),()=>M(e))}(e).then(e=>WebAssembly.instantiate(e,r)).then(t,e=>{g(`failed to asynchronously prepare wasm: ${e}`),x(e)})}var N=e=>{for(;e.length>0;)e.shift()(s)};s.noExitRuntime;class z{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){P[this.ptr+4>>2]=e}get_type(){return P[this.ptr+4>>2]}set_destructor(e){P[this.ptr+8>>2]=e}get_destructor(){return P[this.ptr+8>>2]}set_caught(e){e=e?1:0,$[this.ptr+12]=e}get_caught(){return 0!=$[this.ptr+12]}set_rethrown(e){e=e?1:0,$[this.ptr+13]=e}get_rethrown(){return 0!=$[this.ptr+13]}init(e,r){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(r)}set_adjusted_ptr(e){P[this.ptr+16>>2]=e}get_adjusted_ptr(){return P[this.ptr+16>>2]}get_exception_ptr(){if(kr(this.get_type()))return P[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}var L={},G=e=>{for(;e.length;){var r=e.pop();e.pop()(r)}};function X(e){return this.fromWireType(P[e>>2])}var J,K,Q,Z={},Y={},ee={},re=e=>{throw new J(e)},te=(e,r,t)=>{function n(r){var n=t(r);n.length!==e.length&&re("Mismatched type converter count");for(var a=0;a<e.length;++a)oe(e[a],n[a])}e.forEach(function(e){ee[e]=r});var a=new Array(r.length),o=[],s=0;r.forEach((e,r)=>{Y.hasOwnProperty(e)?a[r]=Y[e]:(o.push(e),Z.hasOwnProperty(e)||(Z[e]=[]),Z[e].push(()=>{a[r]=Y[e],++s===o.length&&n(a)}))}),0===o.length&&n(a)},ne=e=>{for(var r="",t=e;w[t];)r+=K[w[t++]];return r},ae=e=>{throw new Q(e)};function oe(e,r,t={}){if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");return function(e,r,t={}){var n=r.name;if(e||ae(`type "${n}" must have a positive integer typeid pointer`),Y.hasOwnProperty(e)){if(t.ignoreDuplicateRegistrations)return;ae(`Cannot register type '${n}' twice`)}if(Y[e]=r,delete ee[e],Z.hasOwnProperty(e)){var a=Z[e];delete Z[e],a.forEach(e=>e())}}(e,r,t)}var se,ie=8,ue=e=>{ae(e.$$.ptrType.registeredClass.name+" instance already deleted")},le=!1,ce=e=>{},pe=e=>{e.count.value-=1,0===e.count.value&&(e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)})(e)},de=(e,r,t)=>{if(r===t)return e;if(void 0===t.baseClass)return null;var n=de(e,r,t.baseClass);return null===n?null:t.downcast(n)},fe={},he=()=>Object.keys($e).length,ve=()=>{var e=[];for(var r in $e)$e.hasOwnProperty(r)&&e.push($e[r]);return e},ye=[],me=()=>{for(;ye.length;){var e=ye.pop();e.$$.deleteScheduled=!1,e.delete()}}Line truncated
|
||||
Binary file not shown.
@@ -0,0 +1,32 @@
|
||||
# Draco 3D Data Compression
|
||||
|
||||
Draco is an open-source library for compressing and decompressing 3D geometric meshes and point clouds. It is intended to improve the storage and transmission of 3D graphics.
|
||||
|
||||
[Website](https://google.github.io/draco/) | [GitHub](https://github.com/google/draco)
|
||||
|
||||
## Contents
|
||||
|
||||
This folder contains three utilities:
|
||||
|
||||
* `draco_decoder.js` — Emscripten-compiled decoder, compatible with any modern browser.
|
||||
* `draco_decoder.wasm` — WebAssembly decoder, compatible with newer browsers and devices.
|
||||
* `draco_wasm_wrapper.js` — JavaScript wrapper for the WASM decoder.
|
||||
|
||||
Each file is provided in two variations:
|
||||
|
||||
* **Default:** Latest stable builds, tracking the project's [master branch](https://github.com/google/draco).
|
||||
* **glTF:** Builds targeted by the [glTF mesh compression extension](https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_draco_mesh_compression), tracking the [corresponding Draco branch](https://github.com/google/draco/tree/gltf_2.0_draco_extension).
|
||||
|
||||
Either variation may be used with `DRACOLoader`:
|
||||
|
||||
```js
|
||||
var dracoLoader = new DRACOLoader();
|
||||
dracoLoader.setDecoderPath('path/to/decoders/');
|
||||
dracoLoader.setDecoderConfig({type: 'js'}); // (Optional) Override detection of WASM support.
|
||||
```
|
||||
|
||||
Further [documentation on GitHub](https://github.com/google/draco/tree/master/javascript/example#static-loading-javascript-decoder).
|
||||
|
||||
## License
|
||||
|
||||
[Apache License 2.0](https://github.com/google/draco/blob/master/LICENSE)
|
||||
@@ -0,0 +1 @@
|
||||
var DracoDecoderModule=(()=>{var r="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0;return"undefined"!=typeof __filename&&(r=r||__filename),function(e={}){var i,f,a=void 0!==e?e:{};a.ready=new Promise(function(r,e){i=r,f=e});var t=!1,b=!1;a.onRuntimeInitialized=function(){t=!0,b&&"function"==typeof a.onModuleLoaded&&a.onModuleLoaded(a)},a.onModuleParsed=function(){b=!0,t&&"function"==typeof a.onModuleLoaded&&a.onModuleLoaded(a)},a.isVersionSupported=function(r){if("string"!=typeof r)return!1;const e=r.split(".");return!(e.length<2||e.length>3)&&(1==e[0]&&e[1]>=0&&e[1]<=5||!(0!=e[0]||e[1]>10))};var A,n,o,k=Object.assign({},a),u="object"==typeof window,c="function"==typeof importScripts,s="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,_="";if(s){var l=require("fs"),p=require("path");_=c?p.dirname(_)+"/":__dirname+"/",A=(r,e)=>{var i=ar(r);return i?e?i:i.toString():(r=x(r)?new URL(r):p.normalize(r),l.readFileSync(r,e?void 0:"utf8"))},o=r=>{var e=A(r,!0);return e.buffer||(e=new Uint8Array(e)),e},n=(r,e,i)=>{var f=ar(r);f&&e(f),r=x(r)?new URL(r):p.normalize(r),l.readFile(r,function(r,f){r?i(r):e(f.buffer)})},process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),a.inspect=function(){return"[Emscripten Module object]"}}else(u||c)&&(c?_=self.location.href:"undefined"!=typeof document&&document.currentScript&&(_=document.currentScript.src),r&&(_=r),_=0!==_.indexOf("blob:")?_.substr(0,_.replace(/[?#].*/,"").lastIndexOf("/")+1):"",A=r=>{try{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.send(null),e.responseText}catch(e){var i=ar(r);if(i)return function(r){for(var e=[],i=0;i<r.length;i++){var f=r[i];f>255&&(f&=255),e.push(String.fromCharCode(f))}return e.join("")}(i);throw e}},c&&(o=r=>{try{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}catch(e){var i=ar(r);if(i)return i;throw e}}),n=(r,e,i)=>{var f=new XMLHttpRequest;f.open("GET",r,!0),f.responseType="arraybuffer",f.onload=()=>{if(200==f.status||0==f.status&&f.response)e(f.response);else{var a=ar(r);a?e(a.buffer):i()}},f.onerror=i,f.send(null)},r=>document.title=r);var y,d=a.print||function(){}.bind(),m=a.printErr||function(){}.bind();Object.assign(a,k),k=null,a.arguments&&a.arguments,a.thisProgram&&a.thisProgram,a.quit&&a.quit,a.wasmBinary&&(y=a.wasmBinary);var v,h=a.noExitRuntime||!0,R={Memory:function(r){this.buffer=new ArrayBuffer(65536*r.initial)},Module:function(r){},Instance:function(r,e){this.exports=function(r){for(var e,i=new Uint8Array(123),f=25;f>=0;--f)i[48+f]=52+f,i[65+f]=f,i[97+f]=26+f;function a(r,e,f){for(var a,t,b=0,A=e,n=f.length,o=e+(3*n>>2)-("="==f[n-2])-("="==f[n-1]);b<n;b+=4)a=i[f.charCodeAt(b+1)],t=i[f.charCodeAt(b+2)],r[A++]=i[f.charCodeAt(b)]<<2|a>>4,A<o&&(r[A++]=a<<4|t>>2),A<o&&(r[A++]=t<<6|i[f.charCodeAt(b+3)])}i[43]=62,i[47]=63;var t=new ArrayBuffer(16),b=new Int32Array(t),A=new Float32Array(t);new Float64Array(t);function n(){throw new Error("abort")}function o(r){A[2]=r}function k(r){return b[r]}function u(r,e){b[r]=e}function c(){return A[2]}return function(r){var i=r.a,f=i.a,t=f.buffer;f.grow=function(r){r|=0;var i=0|Qa(),a=i+r|0;if(i<a&&a<65536){var n=new ArrayBuffer(m(a,65536));new Int8Array(n).set(b),b=new Int8Array(n),A=new Int16Array(n),s=new Int32Array(n),_=new Uint8Array(n),l=new Uint16Array(n),p=new Uint32Array(n),y=new Float32Array(n),d=new Float64Array(n),t=n,f.buffer=t,e=_}return i};var b=new Int8Array(t),A=new Int16Array(t),s=new Int32Array(t),_=new Uint8Array(t),l=new Uint16Array(t),p=new Uint32Array(t),y=new Float32Array(t),d=new Float64Array(t),m=Math.imul,v=Math.fround,h=Math.abs,R=Math.clz32,N=Math.min,Z=Math.max,G=Math.floor,U=Math.ceil,W=(Math.trunc,Math.sqrt),V=i.b,T=i.c,D=i.d,F=i.e,B=i.f,E=i.g,Y=i.h,Q=83232,j=0;function I(r,e,i){var f,a=0,t=0,b=0,A=0,o=0,k=0,u=0,c=0,l=0,y=0,d=0,v=0,h=0,N=0,Z=0,G=0,U=0,W=0,V=0,T=0,D=0,F=0,B=0;Q=f=Q-672|0,c=s[e+8>>2],G=s[e+12>>2],a=s[e+20>>2];r:{e:{i:if(!((A=(t=s[e+16>>2])+4|0)>>>0>c>>>0&(0|(a=A>>>0<4?a+1|0:a))>=(0|G)|(0|a)>(0|G)||(a=t+s[e>>2]|0,s[r>>2]=_[0|a]|_[a+1|0]<<8|_[a+2|0]<<16|_[a+3|0]<<24,c=a=s[e+20>>2],a=(t=(A=s[e+16>>2])+4|0)>>>0<4?a+1|0:a,s[e+16>>2]=t,s[e+20>>2]=a,p[r>>2]>31||(a=c,(A=A+8|0)>>>0>(G=s[e+8>>2])>>>0&(0|(a=A>>>0<8?a+1|0:a))>=(0|(D=s[e+12>>2]))|(0|a)>(0|D)||(a=t+s[e>>2]|0,s[r+4>>2]=_[0|a]|_[a+1|0]<<8|_[a+2|0]<<16|_[a+3|0]<<24,c=a=s[e+20>>2],a=(t=(A=s[e+16>>2])+4|0)>>>0<4?a+1|0:a,s[e+16>>2]=t,s[e+20>>2]=a,a=c,(A=A+8|0)>>>0>(G=s[e+8>>2])>>>0&(0|(a=A>>>0<8?a+1|0:a))>=(0|(D=s[e+12>>2]))|(0|a)>(0|D)||(a=t+s[e>>2]|0,s[r+12>>2]=_[0|a]|_[a+1|0]<<8|_[a+2|0]<<16|_[a+3|0]<<24,c=a=s[e+20>>2],a=(t=(A=s[e+16>>2])+4|0)>>>0<4?a+1|0:a,s[e+16>>2]=t,s[e+20>>2]=a,a=s[r+20>>2],(0|(T=s[r+12>>2]))!=(0|a)&&a||(a=c,(A=A+8|0)>>>0>(G=s[e+8>>2])>>>0&(0|(a=A>>>0<8?a+1|0:a))>=(0|(D=s[e+12>>2]))|(0|a)>(0|D))))))))if(a=t+s[e>>2]|0,t=_[0|a]|_[a+1|0]<<8|_[a+2|0]<<16|_[a+3|0]<<24,s[r+16>>2]=t,A=s[e+20Line truncated
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
var DracoEncoderModule=function(e){var r=void 0!==(e=e||{})?e:{},i=!1,f=!1;r.onRuntimeInitialized=function(){i=!0,f&&"function"==typeof r.onModuleLoaded&&r.onModuleLoaded(r)},r.onModuleParsed=function(){f=!0,i&&"function"==typeof r.onModuleLoaded&&r.onModuleLoaded(r)},r.isVersionSupported=function(e){if("string"!=typeof e)return!1;const r=e.split(".");return!(r.length<2||r.length>3)&&(1==r[0]&&r[1]>=0&&r[1]<=3||!(0!=r[0]||r[1]>10))};var A,t={};for(A in r)r.hasOwnProperty(A)&&(t[A]=r[A]);r.arguments=[],r.thisProgram="./this.program",r.quit=function(e,r){throw r},r.preRun=[],r.postRun=[];var a,o,n=!1,b=!1,l=!1,c=!1;if(r.ENVIRONMENT)if("WEB"===r.ENVIRONMENT)n=!0;else if("WORKER"===r.ENVIRONMENT)b=!0;else if("NODE"===r.ENVIRONMENT)l=!0;else{if("SHELL"!==r.ENVIRONMENT)throw new Error("Module['ENVIRONMENT'] value is not valid. must be one of: WEB|WORKER|NODE|SHELL.");c=!0}else n="object"==typeof window,b="function"==typeof importScripts,l="object"==typeof process&&"function"==typeof require&&!n&&!b,c=!n&&!l&&!b;l?(r.read=function(e,r){var i;return(i=Ee(e))||(a||(a=require("fs")),o||(o=require("path")),e=o.normalize(e),i=a.readFileSync(e)),r?i:i.toString()},r.readBinary=function(e){var i=r.read(e,!0);return i.buffer||(i=new Uint8Array(i)),h(i.buffer),i},process.argv.length>1&&(r.thisProgram=process.argv[1].replace(/\\/g,"/")),r.arguments=process.argv.slice(2),process.on("uncaughtException",function(e){if(!(e instanceof yi))throw e}),process.on("unhandledRejection",function(e,r){process.exit(1)}),r.inspect=function(){return"[Emscripten Module object]"}):c?("undefined"!=typeof read&&(r.read=function(e){var r=Ee(e);return r?Re(r):read(e)}),r.readBinary=function(e){var r;return(r=Ee(e))?r:"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(h("object"==typeof(r=read(e,"binary"))),r)},"undefined"!=typeof scriptArgs?r.arguments=scriptArgs:void 0!==arguments&&(r.arguments=arguments),"function"==typeof quit&&(r.quit=function(e,r){quit(e)})):(n||b)&&(r.read=function(e){try{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.send(null),r.responseText}catch(r){var i=Ee(e);if(i)return Re(i);throw r}},b&&(r.readBinary=function(e){try{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}catch(r){var i=Ee(e);if(i)return i;throw r}}),r.readAsync=function(e,r,i){var f=new XMLHttpRequest;f.open("GET",e,!0),f.responseType="arraybuffer",f.onload=function(){if(200==f.status||0==f.status&&f.response)r(f.response);else{var A=Ee(e);A?r(A.buffer):i()}},f.onerror=i,f.send(null)},r.setWindowTitle=function(e){document.title=e});for(A in r.print="undefined"!=typeof console?function(){}.bind():"undefined"!=typeof print?print:null,r.printErr="undefined"!=typeof printErr?printErr:"undefined"!=typeof console&&function(){}.bind()||r.print,r.print=r.print,r.printErr=r.printErr,t)t.hasOwnProperty(A)&&(r[A]=t[A]);t=void 0;function u(e){h(!F);var r=G;return G=G+e+15&-16,r}function s(e){h(T);var r=W[T>>2],i=r+e+15&-16;if((W[T>>2]=i,i>=S)&&!z())return W[T>>2]=r,0;return r}function k(e,r){return r||(r=16),e=Math.ceil(e/r)*r}function d(e){switch(e){case"i1":case"i8":return 1;case"i16":return 2;case"i32":case"float":return 4;case"i64":case"double":return 8;default:if("*"===e[e.length-1])return 4;if("i"===e[0]){var r=parseInt(e.substr(1));return h(r%8==0),r/8}return 0}}new Array(0);var _=0;function h(e,r){e||Zi("Assertion failed: "+r)}function p(e,r,i,f){switch("*"===(i=i||"i8").charAt(i.length-1)&&(i="i32"),i){case"i1":case"i8":R[e|0]=r;break;case"i16":E[e>>1]=r;break;case"i32":W[e>>2]=r;break;case"i64":tempI64=[r>>>0,(tempDouble=r,+re(tempDouble)>=1?tempDouble>0?(0|Ae(+fe(tempDouble/4294967296),4294967295))>>>0:~~+ie((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],W[e>>2]=tempI64[0],W[e+4>>2]=tempI64[1];break;case"float":V[e>>2]=r;break;case"double":N[e>>3]=r;break;default:Zi("invalid type for setValue: "+i)}}function w(e,r){if(0===r||!e)return"";for(var i,f=0,A=0;f|=i=B[e+A|0],(0!=i||r)&&(A++,!r||A!=r););r||(r=A);var t="";if(f<128){for(var a,o=1024;r>0;)a=String.fromCharCode.apply(String,B.subarray(e,e+Math.min(r,o))),t=t?t+a:a,e+=o,r-=o;return t}return function(e){return y(B,e)}(e)}var v="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function y(e,r){for(var i=r;e[i];)++i;if(i-r>16&&e.subarray&&v)return v.decode(e.subarray(r,i));for(var f,A,t,a,o,n="";;){if(!(f=e[r++]))return n;if(128&f)if(A=63&e[r++],192!=(224&f))if(t=63&e[r++],224==(240&f)?f=(15&f)<<12|A<<6|t:(a=63&e[r++],240==(248&f)?f=(7&f)<<18|A<<12|t<<6|a:(o=63&e[r++],f=248==(252&f)?(3&f)<<24|A<<18|t<<12|a<<6|o:(1&f)<<30|A<<24|t<<18|a<<12|o<<6|63&e[r++])),f<65536)n+=String.fromCharCode(f);else{var b=f-65536;n+=String.fromCharCode(55296|b>>10,56320|1023&b)}else n+=String.fromCharCode((31&f)<<6|A);else n+=String.fromCharCode(f)}}function m(e,r,i,f){if(!(f>0))return 0;for(var A=i,t=i+f-1,a=0;a<e.length;++a){var o=e.charCodeAt(a);if(o>=55296&&o<=57343&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++a)),o<=127Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.arrayIteratorImpl=function(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}},$jscomp.arrayIterator=function(t){return{next:$jscomp.arrayIteratorImpl(t)}},$jscomp.makeIterator=function(t){var e="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return e?e.call(t):$jscomp.arrayIterator(t)},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.ISOLATE_POLYFILLS=!1,$jscomp.FORCE_POLYFILL_PROMISE=!1,$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1,$jscomp.getGlobal=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var e=0;e<t.length;++e){var r=t[e];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")},$jscomp.global=$jscomp.getGlobal(this),$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,r){return t==Array.prototype||t==Object.prototype||(t[e]=r.value),t},$jscomp.IS_SYMBOL_NATIVE="function"==typeof Symbol&&"symbol"==typeof Symbol("x"),$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE,$jscomp.polyfills={},$jscomp.propertyToPolyfillSymbol={},$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(t,e){var r=$jscomp.propertyToPolyfillSymbol[e];return null==r?t[e]:void 0!==(r=t[r])?r:t[e]};$jscomp.polyfill=function(t,e,r,n){e&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(t,e,r,n):$jscomp.polyfillUnisolated(t,e,r,n))},$jscomp.polyfillUnisolated=function(t,e,r,n){for(r=$jscomp.global,t=t.split("."),n=0;n<t.length-1;n++){var o=t[n];if(!(o in r))return;r=r[o]}(e=e(n=r[t=t[t.length-1]]))!=n&&null!=e&&$jscomp.defineProperty(r,t,{configurable:!0,writable:!0,value:e})},$jscomp.polyfillIsolated=function(t,e,r,n){var o=t.split(".");t=1===o.length,n=o[0],n=!t&&n in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var _=0;_<o.length-1;_++){var i=o[_];if(!(i in n))return;n=n[i]}o=o[o.length-1],null!=(e=e(r=$jscomp.IS_SYMBOL_NATIVE&&"es6"===r?n[o]:null))&&(t?$jscomp.defineProperty($jscomp.polyfills,o,{configurable:!0,writable:!0,value:e}):e!==r&&(void 0===$jscomp.propertyToPolyfillSymbol[o]&&(r=1e9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[o]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(o):$jscomp.POLYFILL_PREFIX+r+"$"+o),$jscomp.defineProperty(n,$jscomp.propertyToPolyfillSymbol[o],{configurable:!0,writable:!0,value:e})))},$jscomp.polyfill("Promise",function(t){function e(){this.batch_=null}function r(t){return t instanceof o?t:new o(function(e,r){e(t)})}if(t&&(!($jscomp.FORCE_POLYFILL_PROMISE||$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION&&void 0===$jscomp.global.PromiseRejectionEvent)||!$jscomp.global.Promise||-1===$jscomp.global.Promise.toString().indexOf("[native code]")))return t;e.prototype.asyncExecute=function(t){if(null==this.batch_){this.batch_=[];var e=this;this.asyncExecuteFunction(function(){e.executeBatch_()})}this.batch_.push(t)};var n=$jscomp.global.setTimeout;e.prototype.asyncExecuteFunction=function(t){n(t,0)},e.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var t=this.batch_;this.batch_=[];for(var e=0;e<t.length;++e){var r=t[e];t[e]=null;try{r()}catch(t){this.asyncThrow_(t)}}}this.batch_=null},e.prototype.asyncThrow_=function(t){this.asyncExecuteFunction(function(){throw t})};var o=function(t){this.state_=0,this.result_=void 0,this.onSettledCallbacks_=[],this.isRejectionHandled_=!1;var e=this.createResolveAndReject_();try{t(e.resolve,e.reject)}catch(t){e.reject(t)}};o.prototype.createResolveAndReject_=function(){function t(t){return function(n){r||(r=!0,t.call(e,n))}}var e=this,r=!1;return{resolve:t(this.resolveTo_),reject:t(this.reject_)}},o.prototype.resolveTo_=function(t){if(t===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(t instanceof o)this.settleSameAsPromise_(t);else{t:switch(typeof t){case"object":var e=null!=t;break t;case"function":e=!0;break t;default:e=!1}e?this.resolveToNonPromiseObj_(t):this.fulfill_(t)}},o.prototype.resolveToNonPromiseObj_=function(t){var e=void 0;try{e=t.then}catch(t){return void this.reject_(t)}"function"==typeof e?this.settleSameAsThenable_(e,t):this.fulfill_(t)},o.prototype.reject_=function(t){this.settle_(2,t)},o.prototype.fulfill_=function(t){this.settle_(1,t)},o.prototype.settle_=function(t,e){if(0!=this.state_)throw Error("Cannot settle("+t+", "+e+"): Promise already settled in state"+this.state_);this.state_=t,this.result_=e,2===this.state_&&this.scheduleUnhandledRejectionCheck_(),this.executeOnSettledCallbacks_()},o.prototype.scheduleUnhandledRejectionCheck_=function(){var t=this;n(function(){if(t.notifyUnhandledRejection_()){var e=$jscomp.global.console;void 0!==e&&e.error(t.result_)}},1)},o.prototype.notifyUnhandledRejection_=function(){if(this.isRejectioLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
var DracoDecoderModule=(()=>{var r="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0;return"undefined"!=typeof __filename&&(r=r||__filename),function(e={}){var i,t,f=void 0!==e?e:{};f.ready=new Promise(function(r,e){i=r,t=e});var a=!1,n=!1;f.onRuntimeInitialized=function(){a=!0,n&&"function"==typeof f.onModuleLoaded&&f.onModuleLoaded(f)},f.onModuleParsed=function(){n=!0,a&&"function"==typeof f.onModuleLoaded&&f.onModuleLoaded(f)},f.isVersionSupported=function(r){if("string"!=typeof r)return!1;const e=r.split(".");return!(e.length<2||e.length>3)&&(1==e[0]&&e[1]>=0&&e[1]<=5||!(0!=e[0]||e[1]>10))};var A,o,b,u=Object.assign({},f),c="object"==typeof window,k="function"==typeof importScripts,_="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,s="";if(_){var p=require("fs"),l=require("path");s=k?l.dirname(s)+"/":__dirname+"/",A=(r,e)=>{var i=rr(r);return i?e?i:i.toString():(r=H(r)?new URL(r):l.normalize(r),p.readFileSync(r,e?void 0:"utf8"))},b=r=>{var e=A(r,!0);return e.buffer||(e=new Uint8Array(e)),e},o=(r,e,i)=>{var t=rr(r);t&&e(t),r=H(r)?new URL(r):l.normalize(r),p.readFile(r,function(r,t){r?i(r):e(t.buffer)})},process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),f.inspect=function(){return"[Emscripten Module object]"}}else(c||k)&&(k?s=self.location.href:"undefined"!=typeof document&&document.currentScript&&(s=document.currentScript.src),r&&(s=r),s=0!==s.indexOf("blob:")?s.substr(0,s.replace(/[?#].*/,"").lastIndexOf("/")+1):"",A=r=>{try{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.send(null),e.responseText}catch(e){var i=rr(r);if(i)return function(r){for(var e=[],i=0;i<r.length;i++){var t=r[i];t>255&&(t&=255),e.push(String.fromCharCode(t))}return e.join("")}(i);throw e}},k&&(b=r=>{try{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}catch(e){var i=rr(r);if(i)return i;throw e}}),o=(r,e,i)=>{var t=new XMLHttpRequest;t.open("GET",r,!0),t.responseType="arraybuffer",t.onload=()=>{if(200==t.status||0==t.status&&t.response)e(t.response);else{var f=rr(r);f?e(f.buffer):i()}},t.onerror=i,t.send(null)},r=>document.title=r);f.print||function(){}.bind();var y,d=f.printErr||function(){}.bind();Object.assign(f,u),u=null,f.arguments&&f.arguments,f.thisProgram&&f.thisProgram,f.quit&&f.quit,f.wasmBinary&&(y=f.wasmBinary);var m,v=f.noExitRuntime||!0,h={Memory:function(r){this.buffer=new ArrayBuffer(65536*r.initial)},Module:function(r){},Instance:function(r,e){this.exports=function(r){for(var e,i=new Uint8Array(123),t=25;t>=0;--t)i[48+t]=52+t,i[65+t]=t,i[97+t]=26+t;function f(r,e,t){for(var f,a,n=0,A=e,o=t.length,b=e+(3*o>>2)-("="==t[o-2])-("="==t[o-1]);n<o;n+=4)f=i[t.charCodeAt(n+1)],a=i[t.charCodeAt(n+2)],r[A++]=i[t.charCodeAt(n)]<<2|f>>4,A<b&&(r[A++]=f<<4|a>>2),A<b&&(r[A++]=a<<6|i[t.charCodeAt(n+3)])}i[43]=62,i[47]=63;var a=new ArrayBuffer(16),n=new Int32Array(a),A=new Float32Array(a);new Float64Array(a);function o(){throw new Error("abort")}function b(r){A[2]=r}function u(r){return n[r]}return function(r){var i=r.a,t=i.a,a=t.buffer;t.grow=function(r){r|=0;var i=0|Et(),f=i+r|0;if(i<f&&f<65536){var o=new ArrayBuffer(y(f,65536));new Int8Array(o).set(n),n=new Int8Array(o),A=new Int16Array(o),c=new Int32Array(o),k=new Uint8Array(o),_=new Uint16Array(o),s=new Uint32Array(o),p=new Float32Array(o),l=new Float64Array(o),a=o,t.buffer=a,e=k}return i};var n=new Int8Array(a),A=new Int16Array(a),c=new Int32Array(a),k=new Uint8Array(a),_=new Uint16Array(a),s=new Uint32Array(a),p=new Float32Array(a),l=new Float64Array(a),y=Math.imul,d=Math.fround,m=Math.abs,v=Math.clz32,h=Math.min,R=Math.max,N=Math.floor,T=Math.ceil,V=(Math.trunc,Math.sqrt),U=i.b,W=i.c,D=i.d,G=i.e,Z=77808,E=0;function F(r,e,i,t){var f=0,a=0,A=0,o=0,b=0,u=0,p=0,l=0,d=0,m=0,v=0,h=0,R=0,N=0,T=0,V=0,U=0,W=0,D=0,G=0,E=0,F=0;if(!r)return 1;r:if(!((0|(f=c[i+20>>2]))>=(0|(v=c[i+12>>2]))&(A=c[i+16>>2])>>>0>=s[i+8>>2]|(0|f)>(0|v))){v=k[A+c[i>>2]|0],f=(A=A+1|0)?f:f+1|0,c[i+16>>2]=A,c[i+20>>2]=f;e:switch(0|v){case 0:f=r,a=e,A=t,r=0,t=0,Z=u=Z+-64|0,c[u+56>>2]=0,c[u+48>>2]=0,c[u+52>>2]=0,c[u+40>>2]=0,c[u+44>>2]=0,c[u+32>>2]=0,c[u+36>>2]=0,c[u+24>>2]=0,c[u+28>>2]=0,c[u+16>>2]=0,c[u+20>>2]=0,c[u+8>>2]=0,c[u+12>>2]=0;i:if(or(u+8|0,i)&&!(!jr(u+8|0,i)|(c[u+20>>2]?0:f))){if(bi(i,0,0),f)for(T=a<<2,V=c[u+36>>2],U=c[u+48>>2],G=c[u+24>>2],l=c[u+56>>2],b=c[u+52>>2];;){t:if(!(l>>>0>16383))for(;;){if((0|b)<=0)break t;if(b=b-1|0,c[u+52>>2]=b,l=k[b+U|0]|l<<8,c[u+56>>2]=l,!(l>>>0<16384))break}if(N=c[((r=4095&l)<<2)+G>>2],l=(y(c[(e=(N<<3)+V|0)>>2],l>>>12|0)+r|0)-c[e+4>>2]|0,c[u+56>>2]=l,(0|a)>0){if(r=0,!k[i+36|0]|N>>>0>32)break i;if(v=t+a|0,N)for(E=-2&N,F=1&N,e=c[i+32>>2],o=c[i+28>>2],R=c[i+24>>2];;){if(p=0,r=e,d=0,m=0,1!=(0|N))for(;(h=R+(r>>>3|0)|0)>>>0>=o>>>0?h=0:(h=k[0|h],e=r+1|0,c[i+32>>2]=e,h=h>>>(7&r)&1,r=e),h=h<<p|d,d=0,(W=R+(r>>>3|0)|0)>>>0<o>>>0&&(d=k[0|W],e=r+1|0,c[i+32>>2]=e,d=d>>>(7&r)&1,r=e),W=1|p,p=p+2Line truncated
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
var DracoEncoderModule=function(e){var r=void 0!==(e=e||{})?e:{},i=!1,f=!1;r.onRuntimeInitialized=function(){i=!0,f&&"function"==typeof r.onModuleLoaded&&r.onModuleLoaded(r)},r.onModuleParsed=function(){f=!0,i&&"function"==typeof r.onModuleLoaded&&r.onModuleLoaded(r)},r.isVersionSupported=function(e){if("string"!=typeof e)return!1;const r=e.split(".");return!(r.length<2||r.length>3)&&(1==r[0]&&r[1]>=0&&r[1]<=3||!(0!=r[0]||r[1]>10))};var A,a={};for(A in r)r.hasOwnProperty(A)&&(a[A]=r[A]);r.arguments=[],r.thisProgram="./this.program",r.quit=function(e,r){throw r},r.preRun=[],r.postRun=[];var t,o,n=!1,b=!1,l=!1,c=!1;if(r.ENVIRONMENT)if("WEB"===r.ENVIRONMENT)n=!0;else if("WORKER"===r.ENVIRONMENT)b=!0;else if("NODE"===r.ENVIRONMENT)l=!0;else{if("SHELL"!==r.ENVIRONMENT)throw new Error("Module['ENVIRONMENT'] value is not valid. must be one of: WEB|WORKER|NODE|SHELL.");c=!0}else n="object"==typeof window,b="function"==typeof importScripts,l="object"==typeof process&&"function"==typeof require&&!n&&!b,c=!n&&!l&&!b;l?(r.read=function(e,r){var i;return(i=Ve(e))||(t||(t=require("fs")),o||(o=require("path")),e=o.normalize(e),i=t.readFileSync(e)),r?i:i.toString()},r.readBinary=function(e){var i=r.read(e,!0);return i.buffer||(i=new Uint8Array(i)),h(i.buffer),i},process.argv.length>1&&(r.thisProgram=process.argv[1].replace(/\\/g,"/")),r.arguments=process.argv.slice(2),process.on("uncaughtException",function(e){if(!(e instanceof ni))throw e}),process.on("unhandledRejection",function(e,r){process.exit(1)}),r.inspect=function(){return"[Emscripten Module object]"}):c?("undefined"!=typeof read&&(r.read=function(e){var r=Ve(e);return r?Ze(r):read(e)}),r.readBinary=function(e){var r;return(r=Ve(e))?r:"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(h("object"==typeof(r=read(e,"binary"))),r)},"undefined"!=typeof scriptArgs?r.arguments=scriptArgs:void 0!==arguments&&(r.arguments=arguments),"function"==typeof quit&&(r.quit=function(e,r){quit(e)})):(n||b)&&(r.read=function(e){try{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.send(null),r.responseText}catch(r){var i=Ve(e);if(i)return Ze(i);throw r}},b&&(r.readBinary=function(e){try{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}catch(r){var i=Ve(e);if(i)return i;throw r}}),r.readAsync=function(e,r,i){var f=new XMLHttpRequest;f.open("GET",e,!0),f.responseType="arraybuffer",f.onload=function(){if(200==f.status||0==f.status&&f.response)r(f.response);else{var A=Ve(e);A?r(A.buffer):i()}},f.onerror=i,f.send(null)},r.setWindowTitle=function(e){document.title=e});for(A in r.print="undefined"!=typeof console?function(){}.bind():"undefined"!=typeof print?print:null,r.printErr="undefined"!=typeof printErr?printErr:"undefined"!=typeof console&&function(){}.bind()||r.print,r.print=r.print,r.printErr=r.printErr,a)a.hasOwnProperty(A)&&(r[A]=a[A]);a=void 0;function u(e){h(!F);var r=U;return U=U+e+15&-16,r}function s(e){h(I);var r=W[I>>2],i=r+e+15&-16;if((W[I>>2]=i,i>=z)&&!H())return W[I>>2]=r,0;return r}function k(e,r){return r||(r=16),e=Math.ceil(e/r)*r}function d(e){switch(e){case"i1":case"i8":return 1;case"i16":return 2;case"i32":case"float":return 4;case"i64":case"double":return 8;default:if("*"===e[e.length-1])return 4;if("i"===e[0]){var r=parseInt(e.substr(1));return h(r%8==0),r/8}return 0}}new Array(0);var _=0;function h(e,r){e||li("Assertion failed: "+r)}function w(e,r,i,f){switch("*"===(i=i||"i8").charAt(i.length-1)&&(i="i32"),i){case"i1":case"i8":Z[e|0]=r;break;case"i16":V[e>>1]=r;break;case"i32":W[e>>2]=r;break;case"i64":tempI64=[r>>>0,(tempDouble=r,+re(tempDouble)>=1?tempDouble>0?(0|Ae(+fe(tempDouble/4294967296),4294967295))>>>0:~~+ie((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],W[e>>2]=tempI64[0],W[e+4>>2]=tempI64[1];break;case"float":N[e>>2]=r;break;case"double":G[e>>3]=r;break;default:li("invalid type for setValue: "+i)}}function p(e,r){if(0===r||!e)return"";for(var i,f=0,A=0;f|=i=R[e+A|0],(0!=i||r)&&(A++,!r||A!=r););r||(r=A);var a="";if(f<128){for(var t,o=1024;r>0;)t=String.fromCharCode.apply(String,R.subarray(e,e+Math.min(r,o))),a=a?a+t:t,e+=o,r-=o;return a}return function(e){return y(R,e)}(e)}var v="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function y(e,r){for(var i=r;e[i];)++i;if(i-r>16&&e.subarray&&v)return v.decode(e.subarray(r,i));for(var f,A,a,t,o,n="";;){if(!(f=e[r++]))return n;if(128&f)if(A=63&e[r++],192!=(224&f))if(a=63&e[r++],224==(240&f)?f=(15&f)<<12|A<<6|a:(t=63&e[r++],240==(248&f)?f=(7&f)<<18|A<<12|a<<6|t:(o=63&e[r++],f=248==(252&f)?(3&f)<<24|A<<18|a<<12|t<<6|o:(1&f)<<30|A<<24|a<<18|t<<12|o<<6|63&e[r++])),f<65536)n+=String.fromCharCode(f);else{var b=f-65536;n+=String.fromCharCode(55296|b>>10,56320|1023&b)}else n+=String.fromCharCode((31&f)<<6|A);else n+=String.fromCharCode(f)}}function m(e,r,i,f){if(!(f>0))return 0;for(var A=i,a=i+f-1,t=0;t<e.length;++t){var o=e.charCodeAt(t);if(o>=55296&&o<=57343&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++t)),o<=127Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.arrayIteratorImpl=function(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}},$jscomp.arrayIterator=function(t){return{next:$jscomp.arrayIteratorImpl(t)}},$jscomp.makeIterator=function(t){var e="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return e?e.call(t):$jscomp.arrayIterator(t)},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.ISOLATE_POLYFILLS=!1,$jscomp.FORCE_POLYFILL_PROMISE=!1,$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1,$jscomp.getGlobal=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var e=0;e<t.length;++e){var r=t[e];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")},$jscomp.global=$jscomp.getGlobal(this),$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,r){return t==Array.prototype||t==Object.prototype||(t[e]=r.value),t},$jscomp.IS_SYMBOL_NATIVE="function"==typeof Symbol&&"symbol"==typeof Symbol("x"),$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE,$jscomp.polyfills={},$jscomp.propertyToPolyfillSymbol={},$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(t,e){var r=$jscomp.propertyToPolyfillSymbol[e];return null==r?t[e]:void 0!==(r=t[r])?r:t[e]};$jscomp.polyfill=function(t,e,r,n){e&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(t,e,r,n):$jscomp.polyfillUnisolated(t,e,r,n))},$jscomp.polyfillUnisolated=function(t,e,r,n){for(r=$jscomp.global,t=t.split("."),n=0;n<t.length-1;n++){var o=t[n];if(!(o in r))return;r=r[o]}(e=e(n=r[t=t[t.length-1]]))!=n&&null!=e&&$jscomp.defineProperty(r,t,{configurable:!0,writable:!0,value:e})},$jscomp.polyfillIsolated=function(t,e,r,n){var o=t.split(".");t=1===o.length,n=o[0],n=!t&&n in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var _=0;_<o.length-1;_++){var i=o[_];if(!(i in n))return;n=n[i]}o=o[o.length-1],null!=(e=e(r=$jscomp.IS_SYMBOL_NATIVE&&"es6"===r?n[o]:null))&&(t?$jscomp.defineProperty($jscomp.polyfills,o,{configurable:!0,writable:!0,value:e}):e!==r&&(void 0===$jscomp.propertyToPolyfillSymbol[o]&&(r=1e9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[o]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(o):$jscomp.POLYFILL_PREFIX+r+"$"+o),$jscomp.defineProperty(n,$jscomp.propertyToPolyfillSymbol[o],{configurable:!0,writable:!0,value:e})))},$jscomp.polyfill("Promise",function(t){function e(){this.batch_=null}function r(t){return t instanceof o?t:new o(function(e,r){e(t)})}if(t&&(!($jscomp.FORCE_POLYFILL_PROMISE||$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION&&void 0===$jscomp.global.PromiseRejectionEvent)||!$jscomp.global.Promise||-1===$jscomp.global.Promise.toString().indexOf("[native code]")))return t;e.prototype.asyncExecute=function(t){if(null==this.batch_){this.batch_=[];var e=this;this.asyncExecuteFunction(function(){e.executeBatch_()})}this.batch_.push(t)};var n=$jscomp.global.setTimeout;e.prototype.asyncExecuteFunction=function(t){n(t,0)},e.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var t=this.batch_;this.batch_=[];for(var e=0;e<t.length;++e){var r=t[e];t[e]=null;try{r()}catch(t){this.asyncThrow_(t)}}}this.batch_=null},e.prototype.asyncThrow_=function(t){this.asyncExecuteFunction(function(){throw t})};var o=function(t){this.state_=0,this.result_=void 0,this.onSettledCallbacks_=[],this.isRejectionHandled_=!1;var e=this.createResolveAndReject_();try{t(e.resolve,e.reject)}catch(t){e.reject(t)}};o.prototype.createResolveAndReject_=function(){function t(t){return function(n){r||(r=!0,t.call(e,n))}}var e=this,r=!1;return{resolve:t(this.resolveTo_),reject:t(this.reject_)}},o.prototype.resolveTo_=function(t){if(t===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(t instanceof o)this.settleSameAsPromise_(t);else{t:switch(typeof t){case"object":var e=null!=t;break t;case"function":e=!0;break t;default:e=!1}e?this.resolveToNonPromiseObj_(t):this.fulfill_(t)}},o.prototype.resolveToNonPromiseObj_=function(t){var e=void 0;try{e=t.then}catch(t){return void this.reject_(t)}"function"==typeof e?this.settleSameAsThenable_(e,t):this.fulfill_(t)},o.prototype.reject_=function(t){this.settle_(2,t)},o.prototype.fulfill_=function(t){this.settle_(1,t)},o.prototype.settle_=function(t,e){if(0!=this.state_)throw Error("Cannot settle("+t+", "+e+"): Promise already settled in state"+this.state_);this.state_=t,this.result_=e,2===this.state_&&this.scheduleUnhandledRejectionCheck_(),this.executeOnSettledCallbacks_()},o.prototype.scheduleUnhandledRejectionCheck_=function(){var t=this;n(function(){if(t.notifyUnhandledRejection_()){var e=$jscomp.global.console;void 0!==e&&e.error(t.result_)}},1)},o.prototype.notifyUnhandledRejection_=function(){if(this.isRejectioLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
var rhino3dm=(()=>{var e="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0;return"undefined"!=typeof __filename&&(e=e||__filename),function(r){var t,n,o=r||{},a=void 0!==o?o:{};a.ready=new Promise(function(e,r){t=e,n=r});var i,s,u,c=Object.assign({},a),l=[],f="./this.program",d="object"==typeof window,p="function"==typeof importScripts,h="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,m="";if(h){var v=require("fs"),w=require("path");m=p?w.dirname(m)+"/":__dirname+"/",i=(e,r)=>(e=te(e)?new URL(e):w.normalize(e),v.readFileSync(e,r?void 0:"utf8")),u=e=>{var r=i(e,!0);return r.buffer||(r=new Uint8Array(r)),r},s=(e,r,t)=>{e=te(e)?new URL(e):w.normalize(e),v.readFile(e,function(e,n){e?t(e):r(n.buffer)})},process.argv.length>1&&(f=process.argv[1].replace(/\\/g,"/")),l=process.argv.slice(2),process.on("uncaughtException",function(e){if(!(e instanceof oe))throw e}),process.on("unhandledRejection",function(e){throw e}),a.inspect=function(){return"[Emscripten Module object]"}}else(d||p)&&(p?m=self.location.href:"undefined"!=typeof document&&document.currentScript&&(m=document.currentScript.src),e&&(m=e),m=0!==m.indexOf("blob:")?m.substr(0,m.replace(/[?#].*/,"").lastIndexOf("/")+1):"",i=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.send(null),r.responseText},p&&(u=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),s=(e,r,t)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?r(n.response):t()},n.onerror=t,n.send(null)},e=>document.title=e);var y=a.print||function(){}.bind(),g=a.printErr||function(){}.bind();Object.assign(a,c),c=null,a.arguments&&(l=a.arguments),a.thisProgram&&(f=a.thisProgram),a.quit&&a.quit;var E;a.wasmBinary&&(E=a.wasmBinary);var b,_=a.noExitRuntime||!0;"object"!=typeof WebAssembly&&K("no native wasm support detected");var k=!1;function T(e,r){e||K(r)}var P,C,S,D,A,F,$,M,O="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function j(e,r,t){for(var n=r+t,o=r;e[o]&&!(o>=n);)++o;if(o-r>16&&e.buffer&&O)return O.decode(e.subarray(r,o));for(var a="";r<o;){var i=e[r++];if(128&i){var s=63&e[r++];if(192!=(224&i)){var u=63&e[r++];if((i=224==(240&i)?(15&i)<<12|s<<6|u:(7&i)<<18|s<<12|u<<6|63&e[r++])<65536)a+=String.fromCharCode(i);else{var c=i-65536;a+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else a+=String.fromCharCode((31&i)<<6|s)}else a+=String.fromCharCode(i)}return a}function x(e,r){return e?j(C,e,r):""}function N(e,r,t,n){if(!(n>0))return 0;for(var o=t,a=t+n-1,i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s>=55296&&s<=57343)s=65536+((1023&s)<<10)|1023&e.charCodeAt(++i);if(s<=127){if(t>=a)break;r[t++]=s}else if(s<=2047){if(t+1>=a)break;r[t++]=192|s>>6,r[t++]=128|63&s}else if(s<=65535){if(t+2>=a)break;r[t++]=224|s>>12,r[t++]=128|s>>6&63,r[t++]=128|63&s}else{if(t+3>=a)break;r[t++]=240|s>>18,r[t++]=128|s>>12&63,r[t++]=128|s>>6&63,r[t++]=128|63&s}}return r[t]=0,t-o}function R(e){for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n<=127?r++:n<=2047?r+=2:n>=55296&&n<=57343?(r+=4,++t):r+=3}return r}function z(){var e=b.buffer;a.HEAP8=P=new Int8Array(e),a.HEAP16=S=new Int16Array(e),a.HEAP32=A=new Int32Array(e),a.HEAPU8=C=new Uint8Array(e),a.HEAPU16=D=new Uint16Array(e),a.HEAPU32=F=new Uint32Array(e),a.HEAPF32=$=new Float32Array(e),a.HEAPF64=M=new Float64Array(e)}a.INITIAL_MEMORY;var W,B=[],U=[],L=[];function I(e){B.unshift(e)}function H(e){L.unshift(e)}var V=0,q=null,G=null;function X(e){V++,a.monitorRunDependencies&&a.monitorRunDependencies(V)}function Y(e){if(V--,a.monitorRunDependencies&&a.monitorRunDependencies(V),0==V&&(null!==q&&(clearInterval(q),q=null),G)){var r=G;G=null,r()}}function K(e){a.onAbort&&a.onAbort(e),g(e="Aborted("+e+")"),k=!0,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw n(r),r}var Z,J,Q,ee;function re(e){return e.startsWith("data:application/octet-stream;base64,")}function te(e){return e.startsWith("file://")}function ne(e){try{if(e==Z&&E)return new Uint8Array(E);if(u)return u(e);throw"both async and sync fetching of the wasm failed"}catch(e){K(e)}}function oe(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function ae(e){for(;e.length>0;)e.shift()(a)}function ie(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){F[this.ptr+4>>2]=e},this.get_type=function(){return F[this.ptr+4>>2]},this.set_destructor=function(e){F[this.ptr+8>>2]=e},this.get_destructor=function(){return F[this.ptr+8>>2]},this.set_refcount=function(e){A[this.ptr>>2]=e},this.set_caught=function(e){e=e?1:0,P[this.ptr+12|0]=e},this.get_caught=function(){return 0!=P[this.ptr+12|0]},this.set_rethrown=function(e){e=e?1:0,P[this.ptr+13|0]=e},this.get_rethrown=function(){return 0!=P[this.ptr+13|0]},this.init=function(e,r){this.set_adjusted_ptr(0),this.set_type(e),this.set_desLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
var rhino3dm=(()=>{var e=import.meta.url;return async function(r){var t,n,o=r||{},a=void 0!==o?o:{};a.ready=new Promise(function(e,r){t=e,n=r});var i,s,u,c=Object.assign({},a),l=[],f="./this.program",d="object"==typeof window,p="function"==typeof importScripts,h="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,m="";if(h){const{createRequire:e}=await import("module");var v=e(import.meta.url),w=v("fs"),y=v("path");m=p?y.dirname(m)+"/":v("url").fileURLToPath(new URL("./",import.meta.url)),i=(e,r)=>(e=ne(e)?new URL(e):y.normalize(e),w.readFileSync(e,r?void 0:"utf8")),u=e=>{var r=i(e,!0);return r.buffer||(r=new Uint8Array(r)),r},s=(e,r,t)=>{e=ne(e)?new URL(e):y.normalize(e),w.readFile(e,function(e,n){e?t(e):r(n.buffer)})},process.argv.length>1&&(f=process.argv[1].replace(/\\/g,"/")),l=process.argv.slice(2),process.on("uncaughtException",function(e){if(!(e instanceof ae))throw e}),process.on("unhandledRejection",function(e){throw e}),a.inspect=function(){return"[Emscripten Module object]"}}else(d||p)&&(p?m=self.location.href:"undefined"!=typeof document&&document.currentScript&&(m=document.currentScript.src),e&&(m=e),m=0!==m.indexOf("blob:")?m.substr(0,m.replace(/[?#].*/,"").lastIndexOf("/")+1):"",i=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.send(null),r.responseText},p&&(u=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),s=(e,r,t)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?r(n.response):t()},n.onerror=t,n.send(null)},e=>document.title=e);var g=a.print||function(){}.bind(),E=a.printErr||function(){}.bind();Object.assign(a,c),c=null,a.arguments&&(l=a.arguments),a.thisProgram&&(f=a.thisProgram),a.quit&&a.quit;var b;a.wasmBinary&&(b=a.wasmBinary);var _,k=a.noExitRuntime||!0;"object"!=typeof WebAssembly&&Z("no native wasm support detected");var T=!1;function P(e,r){e||Z(r)}var C,S,D,A,F,$,M,O,j="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function x(e,r,t){for(var n=r+t,o=r;e[o]&&!(o>=n);)++o;if(o-r>16&&e.buffer&&j)return j.decode(e.subarray(r,o));for(var a="";r<o;){var i=e[r++];if(128&i){var s=63&e[r++];if(192!=(224&i)){var u=63&e[r++];if((i=224==(240&i)?(15&i)<<12|s<<6|u:(7&i)<<18|s<<12|u<<6|63&e[r++])<65536)a+=String.fromCharCode(i);else{var c=i-65536;a+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else a+=String.fromCharCode((31&i)<<6|s)}else a+=String.fromCharCode(i)}return a}function R(e,r){return e?x(S,e,r):""}function N(e,r,t,n){if(!(n>0))return 0;for(var o=t,a=t+n-1,i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s>=55296&&s<=57343)s=65536+((1023&s)<<10)|1023&e.charCodeAt(++i);if(s<=127){if(t>=a)break;r[t++]=s}else if(s<=2047){if(t+1>=a)break;r[t++]=192|s>>6,r[t++]=128|63&s}else if(s<=65535){if(t+2>=a)break;r[t++]=224|s>>12,r[t++]=128|s>>6&63,r[t++]=128|63&s}else{if(t+3>=a)break;r[t++]=240|s>>18,r[t++]=128|s>>12&63,r[t++]=128|s>>6&63,r[t++]=128|63&s}}return r[t]=0,t-o}function z(e){for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n<=127?r++:n<=2047?r+=2:n>=55296&&n<=57343?(r+=4,++t):r+=3}return r}function U(){var e=_.buffer;a.HEAP8=C=new Int8Array(e),a.HEAP16=D=new Int16Array(e),a.HEAP32=F=new Int32Array(e),a.HEAPU8=S=new Uint8Array(e),a.HEAPU16=A=new Uint16Array(e),a.HEAPU32=$=new Uint32Array(e),a.HEAPF32=M=new Float32Array(e),a.HEAPF64=O=new Float64Array(e)}a.INITIAL_MEMORY;var W,B=[],L=[],I=[];function H(e){B.unshift(e)}function V(e){I.unshift(e)}var q=0,G=null,X=null;function Y(e){q++,a.monitorRunDependencies&&a.monitorRunDependencies(q)}function K(e){if(q--,a.monitorRunDependencies&&a.monitorRunDependencies(q),0==q&&(null!==G&&(clearInterval(G),G=null),X)){var r=X;X=null,r()}}function Z(e){a.onAbort&&a.onAbort(e),E(e="Aborted("+e+")"),T=!0,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw n(r),r}var J,Q,ee,re;function te(e){return e.startsWith("data:application/octet-stream;base64,")}function ne(e){return e.startsWith("file://")}function oe(e){try{if(e==J&&b)return new Uint8Array(b);if(u)return u(e);throw"both async and sync fetching of the wasm failed"}catch(e){Z(e)}}function ae(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function ie(e){for(;e.length>0;)e.shift()(a)}function se(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){$[this.ptr+4>>2]=e},this.get_type=function(){return $[this.ptr+4>>2]},this.set_destructor=function(e){$[this.ptr+8>>2]=e},this.get_destructor=function(){return $[this.ptr+8>>2]},this.set_refcount=function(e){F[this.ptr>>2]=e},this.set_caught=function(e){e=e?1:0,C[this.ptr+12|0]=e},this.get_caught=function(){return 0!=C[this.ptr+12|0]},this.set_rethrown=function(e){e=e?1:0,C[this.ptr+13|0]=e},this.get_rethrown=function(){return 0!=C[this.ptr+13|0]},this.init=function(e,r){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(r),this.seLine truncated
|
||||
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user