@kenlify/cesium 1.128.6 → 1.128.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Build/Cesium/Cesium.js +10852 -10852
- package/Build/Cesium/Workers/{chunk-WIQ7NTEU.js → chunk-2NZERALC.js} +2 -2
- package/Build/Cesium/Workers/{chunk-4DNCARGH.js → chunk-2VBRF3F2.js} +1 -1
- package/Build/Cesium/Workers/{chunk-LYUAUOR5.js → chunk-3DP7ERYW.js} +2 -2
- package/Build/Cesium/Workers/{chunk-V3VHQKS2.js → chunk-3NKUBXWW.js} +2 -2
- package/Build/Cesium/Workers/{chunk-CXBGOSKD.js → chunk-5RVSZKA2.js} +1 -1
- package/Build/Cesium/Workers/{chunk-A7MQEE5F.js → chunk-5YXR3TYV.js} +2 -2
- package/Build/Cesium/Workers/{chunk-EDRMRHSX.js → chunk-6GTJ277S.js} +2 -2
- package/Build/Cesium/Workers/{chunk-XKFDK3CO.js → chunk-6H3MSEU7.js} +2 -2
- package/Build/Cesium/Workers/{chunk-QCTJLZKL.js → chunk-6JAGTV76.js} +2 -2
- package/Build/Cesium/Workers/{chunk-EZQLVEV3.js → chunk-6RPTYKHC.js} +2 -2
- package/Build/Cesium/Workers/{chunk-Y7AQOPU6.js → chunk-7IPJTN22.js} +2 -2
- package/Build/Cesium/Workers/{chunk-LVR5EXY4.js → chunk-A36XOREN.js} +1 -1
- package/Build/Cesium/Workers/{chunk-W2PIMWKB.js → chunk-AA73Y2D5.js} +2 -2
- package/Build/Cesium/Workers/{chunk-DZYCAJ4F.js → chunk-ALF6BNIL.js} +2 -2
- package/Build/Cesium/Workers/{chunk-EFLICM5U.js → chunk-B3LYYDBA.js} +2 -2
- package/Build/Cesium/Workers/{chunk-LD2F5BI6.js → chunk-BABMDBIJ.js} +2 -2
- package/Build/Cesium/Workers/{chunk-3JEBZM2S.js → chunk-BHJSVNN6.js} +2 -2
- package/Build/Cesium/Workers/{chunk-7O467KUQ.js → chunk-C5A4YUZG.js} +2 -2
- package/Build/Cesium/Workers/{chunk-FPVYKTY4.js → chunk-CYAHSDKX.js} +2 -2
- package/Build/Cesium/Workers/{chunk-KBDE7PSV.js → chunk-DNYDHT74.js} +2 -2
- package/Build/Cesium/Workers/{chunk-TTCJRFON.js → chunk-ETJGGBKO.js} +2 -2
- package/Build/Cesium/Workers/{chunk-CGG2M4SI.js → chunk-GB6WSJC4.js} +2 -2
- package/Build/Cesium/Workers/{chunk-D4TBWGYA.js → chunk-GKKXUORW.js} +2 -2
- package/Build/Cesium/Workers/{chunk-N72QKPJ4.js → chunk-GKOR75TD.js} +2 -2
- package/Build/Cesium/Workers/{chunk-MO3LCCNM.js → chunk-GLJGKDBC.js} +2 -2
- package/Build/Cesium/Workers/{chunk-2ISRDE64.js → chunk-H2J7REEA.js} +2 -2
- package/Build/Cesium/Workers/{chunk-2IDWVZAN.js → chunk-II5W7IOS.js} +2 -2
- package/Build/Cesium/Workers/{chunk-EPG24VSA.js → chunk-ITYWSULP.js} +2 -2
- package/Build/Cesium/Workers/{chunk-3KZ3Z3KD.js → chunk-JBMD4WFU.js} +2 -2
- package/Build/Cesium/Workers/{chunk-WYNBVN2O.js → chunk-JHF4CRWS.js} +2 -2
- package/Build/Cesium/Workers/{chunk-7SO3RTQQ.js → chunk-K2AYIELM.js} +1 -1
- package/Build/Cesium/Workers/{chunk-BEQCMQVP.js → chunk-NT6A3OGV.js} +2 -2
- package/Build/Cesium/Workers/{chunk-MMPFL62L.js → chunk-QUM4AXJH.js} +2 -2
- package/Build/Cesium/Workers/{chunk-UYCYMDYX.js → chunk-RB4QR7QF.js} +2 -2
- package/Build/Cesium/Workers/{chunk-XHPH6YXL.js → chunk-RNUBQA5Q.js} +2 -2
- package/Build/Cesium/Workers/{chunk-B234VQLM.js → chunk-SD5UNQYQ.js} +2 -2
- package/Build/Cesium/Workers/{chunk-T5NJ4W2P.js → chunk-SNAVB47Z.js} +2 -2
- package/Build/Cesium/Workers/{chunk-H7SZPZ5A.js → chunk-SQKERKCT.js} +2 -2
- package/Build/Cesium/Workers/{chunk-HSR4BO2K.js → chunk-SWXOPMPU.js} +2 -2
- package/Build/Cesium/Workers/{chunk-PPIIFYNP.js → chunk-T3JQFEMC.js} +2 -2
- package/Build/Cesium/Workers/{chunk-MUYHLIGS.js → chunk-TRWHDQGQ.js} +2 -2
- package/Build/Cesium/Workers/{chunk-SSIGH5RN.js → chunk-U32MP5Z3.js} +2 -2
- package/Build/Cesium/Workers/{chunk-YRG43VY5.js → chunk-U3TMUIV6.js} +2 -2
- package/Build/Cesium/Workers/{chunk-BE4T3LLT.js → chunk-UKRYD2UI.js} +2 -2
- package/Build/Cesium/Workers/{chunk-J4JNHGC6.js → chunk-UPGLHUYX.js} +2 -2
- package/Build/Cesium/Workers/{chunk-ABCKYWIG.js → chunk-UWSGM7IN.js} +2 -2
- package/Build/Cesium/Workers/{chunk-GSBFL2EJ.js → chunk-VB7FNE6L.js} +2 -2
- package/Build/Cesium/Workers/{chunk-SPXON7EH.js → chunk-VN2VSNIB.js} +2 -2
- package/Build/Cesium/Workers/{chunk-M6ITKSGW.js → chunk-WX45Z3TN.js} +2 -2
- package/Build/Cesium/Workers/{chunk-Q6R5ZI6D.js → chunk-ZOWVNSYN.js} +2 -2
- package/Build/Cesium/Workers/{chunk-R6RGLEMX.js → chunk-ZYZFBUMB.js} +2 -2
- package/Build/Cesium/Workers/combineGeometry.js +2 -2
- package/Build/Cesium/Workers/createBoxGeometry.js +2 -2
- package/Build/Cesium/Workers/createBoxOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createCircleGeometry.js +2 -2
- package/Build/Cesium/Workers/createCircleOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createCoplanarPolygonGeometry.js +2 -2
- package/Build/Cesium/Workers/createCoplanarPolygonOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createCorridorGeometry.js +2 -2
- package/Build/Cesium/Workers/createCorridorOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createCylinderGeometry.js +2 -2
- package/Build/Cesium/Workers/createCylinderOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createEllipseGeometry.js +2 -2
- package/Build/Cesium/Workers/createEllipseOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createEllipsoidGeometry.js +2 -2
- package/Build/Cesium/Workers/createEllipsoidOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createFrustumGeometry.js +2 -2
- package/Build/Cesium/Workers/createFrustumOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createGeometry.js +2 -2
- package/Build/Cesium/Workers/createGroundPolylineGeometry.js +2 -2
- package/Build/Cesium/Workers/createPlaneGeometry.js +2 -2
- package/Build/Cesium/Workers/createPlaneOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createPolygonGeometry.js +2 -2
- package/Build/Cesium/Workers/createPolygonOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createPolylineGeometry.js +2 -2
- package/Build/Cesium/Workers/createPolylineVolumeGeometry.js +2 -2
- package/Build/Cesium/Workers/createPolylineVolumeOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createRectangleGeometry.js +2 -2
- package/Build/Cesium/Workers/createRectangleOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createSimplePolylineGeometry.js +2 -2
- package/Build/Cesium/Workers/createSphereGeometry.js +2 -2
- package/Build/Cesium/Workers/createSphereOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createTaskProcessorWorker.js +2 -2
- package/Build/Cesium/Workers/createVectorTileClampedPolylines.js +2 -2
- package/Build/Cesium/Workers/createVectorTileGeometries.js +2 -2
- package/Build/Cesium/Workers/createVectorTilePoints.js +2 -2
- package/Build/Cesium/Workers/createVectorTilePolygons.js +2 -2
- package/Build/Cesium/Workers/createVectorTilePolylines.js +2 -2
- package/Build/Cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +2 -2
- package/Build/Cesium/Workers/createVerticesFromHeightmap.js +2 -2
- package/Build/Cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +2 -2
- package/Build/Cesium/Workers/createWallGeometry.js +2 -2
- package/Build/Cesium/Workers/createWallOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/decodeDraco.js +2 -2
- package/Build/Cesium/Workers/decodeGoogleEarthEnterprisePacket.js +2 -2
- package/Build/Cesium/Workers/decodeI3S.js +2 -2
- package/Build/Cesium/Workers/transcodeKTX2.js +2 -2
- package/Build/Cesium/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Cesium/Workers/upsampleQuantizedTerrainMesh.js +2 -2
- package/Build/Cesium/index.js +10845 -10845
- package/Source/Cesium.d.ts +6 -2
- package/Source/Cesium.js +170 -170
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.128.
|
|
4
|
+
* Version 1.128.8
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
|
-
import{a as sn}from"./chunk-
|
|
26
|
+
import{a as sn}from"./chunk-GKOR75TD.js";import{a as l}from"./chunk-5RVSZKA2.js";import{a as oe}from"./chunk-U3TMUIV6.js";import{b as on}from"./chunk-ALF6BNIL.js";import{a as Pt,c as rr,d as or,e as De}from"./chunk-A36XOREN.js";var cn=rr((it,vt)=>{var pt=(function(){var o=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return typeof __filename<"u"&&(o=o||__filename),(function(f){f=f||{};var r=typeof f<"u"?f:{},B,O;r.ready=new Promise(function(e,t){B=e,O=t});var E={},F;for(F in r)r.hasOwnProperty(F)&&(E[F]=r[F]);var m=[],D="./this.program",I=function(e,t){throw t},V=!1,G=!1,P=!1,C=!1;V=typeof window=="object",G=typeof importScripts=="function",P=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",C=!V&&!P&&!G;var d="";function j(e){return r.locateFile?r.locateFile(e,d):d+e}var J,Ae,Y,Fe,de,Se;P?(G?d=Pt("path").dirname(d)+"/":d=__dirname+"/",J=function(t,n){return de||(de=Pt("fs")),Se||(Se=Pt("path")),t=Se.normalize(t),de.readFileSync(t,n?null:"utf8")},Y=function(t){var n=J(t,!0);return n.buffer||(n=new Uint8Array(n)),Ge(n.buffer),n},process.argv.length>1&&(D=process.argv[1].replace(/\\/g,"/")),m=process.argv.slice(2),process.on("uncaughtException",function(e){if(!(e instanceof nr))throw e}),process.on("unhandledRejection",Me),I=function(e){process.exit(e)},r.inspect=function(){return"[Emscripten Module object]"}):C?(typeof read<"u"&&(J=function(t){return read(t)}),Y=function(t){var n;return typeof readbuffer=="function"?new Uint8Array(readbuffer(t)):(n=read(t,"binary"),Ge(typeof n=="object"),n)},typeof scriptArgs<"u"?m=scriptArgs:typeof arguments<"u"&&(m=arguments),typeof quit=="function"&&(I=function(e){quit(e)}),typeof print<"u"&&(typeof console>"u"&&(console={}),console.log=print,console.warn=console.error=typeof printErr<"u"?printErr:print)):(V||G)&&(G?d=self.location.href:typeof document<"u"&&document.currentScript&&(d=document.currentScript.src),o&&(d=o),d.indexOf("blob:")!==0?d=d.substr(0,d.lastIndexOf("/")+1):d="",J=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},G&&(Y=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),Ae=function(e,t,n){var _=new XMLHttpRequest;_.open("GET",e,!0),_.responseType="arraybuffer",_.onload=function(){if(_.status==200||_.status==0&&_.response){t(_.response);return}n()},_.onerror=n,_.send(null)},Fe=function(e){document.title=e});var st=r.print||console.log.bind(console),ie=r.printErr||console.warn.bind(console);for(F in E)E.hasOwnProperty(F)&&(r[F]=E[F]);E=null,r.arguments&&(m=r.arguments),r.thisProgram&&(D=r.thisProgram),r.quit&&(I=r.quit);var Et=0,we=function(e){Et=e},Oe;r.wasmBinary&&(Oe=r.wasmBinary);var On=r.noExitRuntime||!0;typeof WebAssembly!="object"&&Me("no native wasm support detected");var le,se=!1,H;function Ge(e,t){e||Me("Assertion failed: "+t)}var He=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Ne(e,t,n){for(var _=t+n,i=t;e[i]&&!(i>=_);)++i;if(i-t>16&&e.subarray&&He)return He.decode(e.subarray(t,i));for(var a="";t<i;){var c=e[t++];if(!(c&128)){a+=String.fromCharCode(c);continue}var s=e[t++]&63;if((c&224)==192){a+=String.fromCharCode((c&31)<<6|s);continue}var R=e[t++]&63;if((c&240)==224?c=(c&15)<<12|s<<6|R:c=(c&7)<<18|s<<12|R<<6|e[t++]&63,c<65536)a+=String.fromCharCode(c);else{var u=c-65536;a+=String.fromCharCode(55296|u>>10,56320|u&1023)}}return a}function Ve(e,t){return e?Ne(U,e,t):""}function Xe(e,t,n,_){if(!(_>0))return 0;for(var i=n,a=n+_-1,c=0;c<e.length;++c){var s=e.charCodeAt(c);if(s>=55296&&s<=57343){var R=e.charCodeAt(++c);s=65536+((s&1023)<<10)|R&1023}if(s<=127){if(n>=a)break;t[n++]=s}else if(s<=2047){if(n+1>=a)break;t[n++]=192|s>>6,t[n++]=128|s&63}else if(s<=65535){if(n+2>=a)break;t[n++]=224|s>>12,t[n++]=128|s>>6&63,t[n++]=128|s&63}else{if(n+3>=a)break;t[n++]=240|s>>18,t[n++]=128|s>>12&63,t[n++]=128|s>>6&63,t[n++]=128|s&63}}return t[n]=0,n-i}function Rt(e,t,n){return Xe(e,U,t,n)}function xe(e){for(var t=0,n=0;n<e.length;++n){var _=e.charCodeAt(n);_>=55296&&_<=57343&&(_=65536+((_&1023)<<10)|e.charCodeAt(++n)&1023),_<=127?++t:_<=2047?t+=2:_<=65535?t+=3:t+=4}return t}var Pe=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0;function ke(e,t){for(var n=e,_=n>>1,i=_+t/2;!(_>=i)&&Re[_];)++_;if(n=_<<1,n-e>32&&Pe)return Pe.decode(U.subarray(e,n));for(var a="",c=0;!(c>=t/2);++c){var s=ee[e+c*2>>1];if(s==0)break;a+=String.fromCharCode(s)}return a}function $e(e,t,n){if(n===void 0&&(n=2147483647),n<2)return 0;n-=2;for(var _=t,i=n<e.length*2?n/2:e.length,a=0;a<i;++a){var c=e.charCodeAt(a);ee[t>>1]=c,t+=2}return ee[t>>1]=0,t-_}function at(e){return e.length*2}function ct(e,t){for(var n=0,_="";!(n>=t/4);){var i=X[e+n*4>>2];if(i==0)break;if(++n,i>=65536){var a=i-65536;_+=String.fromCharCode(55296|a>>10,56320|a&1023)}else _+=String.fromCharCode(i)}return _}function At(e,t,n){if(n===void 0&&(n=2147483647),n<4)return 0;for(var _=t,i=_+n-4,a=0;a<e.length;++a){var c=e.charCodeAt(a);if(c>=55296&&c<=57343){var s=e.charCodeAt(++a);c=65536+((c&1023)<<10)|s&1023}if(X[t>>2]=c,t+=4,t+4>i)break}return X[t>>2]=0,t-_}function ft(e){for(var t=0,n=0;n<e.length;++n){var _=e.charCodeAt(n);_>=55296&&_<=57343&&++n,t+=4}return t}function ut(e,t){return e%t>0&&(e+=t-e%t),e}var y,g,U,ee,Re,X,q,Ut,ht;function yt(e){y=e,r.HEAP8=g=new Int8Array(e),r.HEAP16=ee=new Int16Array(e),r.HEAP32=X=new Int32Array(e),r.HEAPU8=U=new Uint8Array(e),r.HEAPU16=Re=new Uint16Array(e),r.HEAPU32=q=new Uint32Array(e),r.HEAPF32=Ut=new Float32Array(e),r.HEAPF64=ht=new Float64Array(e)}var ur=r.INITIAL_MEMORY||16777216,pe,gt=[],Lt=[],ln=[],mt=[],Mn=!1;function Kn(){if(r.preRun)for(typeof r.preRun=="function"&&(r.preRun=[r.preRun]);r.preRun.length;)dn(r.preRun.shift());We(gt)}function Bn(){Mn=!0,We(Lt)}function Cn(){We(ln)}function Fn(){if(r.postRun)for(typeof r.postRun=="function"&&(r.postRun=[r.postRun]);r.postRun.length;)Gn(r.postRun.shift());We(mt)}function dn(e){gt.unshift(e)}function Sn(e){Lt.unshift(e)}function Gn(e){mt.unshift(e)}var fe=0,Tt=null,ve=null;function Nn(e){fe++,r.monitorRunDependencies&&r.monitorRunDependencies(fe)}function Vn(e){if(fe--,r.monitorRunDependencies&&r.monitorRunDependencies(fe),fe==0&&(Tt!==null&&(clearInterval(Tt),Tt=null),ve)){var t=ve;ve=null,t()}}r.preloadedImages={},r.preloadedAudios={};function Me(e){r.onAbort&&r.onAbort(e),e+="",ie(e),se=!0,H=1,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.";var t=new WebAssembly.RuntimeError(e);throw O(t),t}function Dt(e,t){return String.prototype.startsWith?e.startsWith(t):e.indexOf(t)===0}var Pn="data:application/octet-stream;base64,";function It(e){return Dt(e,Pn)}var pn="file://";function bt(e){return Dt(e,pn)}var k="basis_transcoder.wasm";It(k)||(k=j(k));function wt(e){try{if(e==k&&Oe)return new Uint8Array(Oe);if(Y)return Y(e);throw"both async and sync fetching of the wasm failed"}catch(t){Me(t)}}function vn(){if(!Oe&&(V||G)){if(typeof fetch=="function"&&!bt(k))return fetch(k,{credentials:"same-origin"}).then(function(e){if(!e.ok)throw"failed to load wasm binary file at '"+k+"'";return e.arrayBuffer()}).catch(function(){return wt(k)});if(Ae)return new Promise(function(e,t){Ae(k,function(n){e(new Uint8Array(n))},t)})}return Promise.resolve().then(function(){return wt(k)})}function En(){var e={a:Q_};function t(c,s){var R=c.exports;r.asm=R,le=r.asm.K,yt(le.buffer),pe=r.asm.O,Sn(r.asm.L),Vn("wasm-instantiate")}Nn("wasm-instantiate");function n(c){t(c.instance)}function _(c){return vn().then(function(s){var R=WebAssembly.instantiate(s,e);return R}).then(c,function(s){ie("failed to asynchronously prepare wasm: "+s),Me(s)})}function i(){return!Oe&&typeof WebAssembly.instantiateStreaming=="function"&&!It(k)&&!bt(k)&&typeof fetch=="function"?fetch(k,{credentials:"same-origin"}).then(function(c){var s=WebAssembly.instantiateStreaming(c,e);return s.then(n,function(R){return ie("wasm streaming compile failed: "+R),ie("falling back to ArrayBuffer instantiation"),_(n)})}):_(n)}if(r.instantiateWasm)try{var a=r.instantiateWasm(e,t);return a}catch(c){return ie("Module.instantiateWasm callback failed with error: "+c),!1}return i().catch(O),{}}function We(e){for(;e.length>0;){var t=e.shift();if(typeof t=="function"){t(r);continue}var n=t.func;typeof n=="number"?t.arg===void 0?pe.get(n)():pe.get(n)(t.arg):n(t.arg===void 0?null:t.arg)}}var je={};function Ye(e){for(;e.length;){var t=e.pop(),n=e.pop();n(t)}}function Ee(e){return this.fromWireType(q[e>>2])}var Ke={},ue={},ze={},Un=48,hn=57;function qe(e){if(e===void 0)return"_unknown";e=e.replace(/[^a-zA-Z0-9_]/g,"$");var t=e.charCodeAt(0);return t>=Un&&t<=hn?"_"+e:e}function Ze(e,t){return e=qe(e),new Function("body","return function "+e+`() {
|
|
27
27
|
"use strict"; return body.apply(this, arguments);
|
|
28
28
|
};
|
|
29
29
|
`)(t)}function Ot(e,t){var n=Ze(t,function(_){this.name=t,this.message=_;var i=new Error(_).stack;i!==void 0&&(this.stack=this.toString()+`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.128.
|
|
4
|
+
* Version 1.128.8
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -23,4 +23,4 @@
|
|
|
23
23
|
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
|
-
import{a as be,b as Ne}from"./chunk-
|
|
26
|
+
import{a as be,b as Ne}from"./chunk-AA73Y2D5.js";import{a as Ae}from"./chunk-GKOR75TD.js";import{a as ue}from"./chunk-ZYZFBUMB.js";import{a as ee}from"./chunk-SWXOPMPU.js";import"./chunk-BHJSVNN6.js";import"./chunk-3DP7ERYW.js";import"./chunk-RB4QR7QF.js";import"./chunk-II5W7IOS.js";import{a as Ve}from"./chunk-BABMDBIJ.js";import{d as de}from"./chunk-6GTJ277S.js";import{h as Se}from"./chunk-NT6A3OGV.js";import"./chunk-VB7FNE6L.js";import{a as A,b as Ie,c as Z,d as Ce}from"./chunk-GKKXUORW.js";import{a as N}from"./chunk-TRWHDQGQ.js";import"./chunk-5RVSZKA2.js";import"./chunk-U3TMUIV6.js";import{a as V,b as q}from"./chunk-ALF6BNIL.js";import{e as f}from"./chunk-A36XOREN.js";var ne={};ne.clipTriangleAtAxisAlignedThreshold=function(n,h,o,i,s,e){if(!f(n))throw new V("threshold is required.");if(!f(h))throw new V("keepAbove is required.");if(!f(o))throw new V("u0 is required.");if(!f(i))throw new V("u1 is required.");if(!f(s))throw new V("u2 is required.");f(e)?e.length=0:e=[];let g,w,c;h?(g=o<n,w=i<n,c=s<n):(g=o>n,w=i>n,c=s>n);let p=g+w+c,d,u,r,l,I,C;return p===1?g?(d=(n-o)/(i-o),u=(n-o)/(s-o),e.push(1),e.push(2),u!==1&&(e.push(-1),e.push(0),e.push(2),e.push(u)),d!==1&&(e.push(-1),e.push(0),e.push(1),e.push(d))):w?(r=(n-i)/(s-i),l=(n-i)/(o-i),e.push(2),e.push(0),l!==1&&(e.push(-1),e.push(1),e.push(0),e.push(l)),r!==1&&(e.push(-1),e.push(1),e.push(2),e.push(r))):c&&(I=(n-s)/(o-s),C=(n-s)/(i-s),e.push(0),e.push(1),C!==1&&(e.push(-1),e.push(2),e.push(1),e.push(C)),I!==1&&(e.push(-1),e.push(2),e.push(0),e.push(I))):p===2?!g&&o!==n?(l=(n-i)/(o-i),I=(n-s)/(o-s),e.push(0),e.push(-1),e.push(1),e.push(0),e.push(l),e.push(-1),e.push(2),e.push(0),e.push(I)):!w&&i!==n?(C=(n-s)/(i-s),d=(n-o)/(i-o),e.push(1),e.push(-1),e.push(2),e.push(1),e.push(C),e.push(-1),e.push(0),e.push(1),e.push(d)):!c&&s!==n&&(u=(n-o)/(s-o),r=(n-i)/(s-i),e.push(2),e.push(-1),e.push(0),e.push(2),e.push(u),e.push(-1),e.push(1),e.push(2),e.push(r)):p!==3&&(e.push(0),e.push(1),e.push(2)),e};ne.computeBarycentricCoordinates=function(n,h,o,i,s,e,g,w,c){if(!f(n))throw new V("x is required.");if(!f(h))throw new V("y is required.");if(!f(o))throw new V("x1 is required.");if(!f(i))throw new V("y1 is required.");if(!f(s))throw new V("x2 is required.");if(!f(e))throw new V("y2 is required.");if(!f(g))throw new V("x3 is required.");if(!f(w))throw new V("y3 is required.");let p=o-g,d=g-s,u=e-w,r=i-w,l=1/(u*p+d*r),I=h-w,C=n-g,R=(u*C+d*I)*l,O=(-r*C+p*I)*l,W=1-R-O;return f(c)?(c.x=R,c.y=O,c.z=W,c):new A(R,O,W)};ne.computeLineSegmentLineSegmentIntersection=function(n,h,o,i,s,e,g,w,c){q.typeOf.number("x00",n),q.typeOf.number("y00",h),q.typeOf.number("x01",o),q.typeOf.number("y01",i),q.typeOf.number("x10",s),q.typeOf.number("y10",e),q.typeOf.number("x11",g),q.typeOf.number("y11",w);let p=(g-s)*(h-e)-(w-e)*(n-s),d=(o-n)*(h-e)-(i-h)*(n-s),u=(w-e)*(o-n)-(g-s)*(i-h);if(u===0)return;let r=p/u,l=d/u;if(r>=0&&r<=1&&l>=0&&l<=1)return f(c)||(c=new Z),c.x=n+r*(o-n),c.y=h+r*(i-h),c};var ie=ne;var a=32767,z=a/2|0,Me=[],ze=[],Xe=[],te=new Ie,E=new A,Ke=[],We=[],Ye=[],Le=[],_e=[],Je=new A,Qe=new de,Ze=new ue,Ge=new Z,$e=new A;function je(n,h){let o=n.isEastChild,i=n.isNorthChild,s=o?z:0,e=o?a:z,g=i?z:0,w=i?a:z,c=Ke,p=We,d=Ye,u=_e;c.length=0,p.length=0,d.length=0,u.length=0;let r=Le;r.length=0;let l={},I=n.vertices,C=n.indices;C=C.subarray(0,n.indexCountWithoutSkirts);let R=Ne.clone(n.encoding),O=R.hasVertexNormals,W=0,Y=n.vertexCountWithoutSkirts,se=n.minimumHeight,ae=n.maximumHeight,D=new Array(Y),G=new Array(Y),L=new Array(Y),F=O?new Array(Y*2):void 0,$=20,H,t,k,x,y;for(t=0,k=0;t<Y;++t,k+=2){let v=R.decodeTextureCoordinates(I,t,Ge);if(H=R.decodeHeight(I,t),x=N.clamp(v.x*a|0,0,a),y=N.clamp(v.y*a|0,0,a),L[t]=N.clamp((H-se)/(ae-se)*a|0,0,a),x<$&&(x=0),y<$&&(y=0),a-x<$&&(x=a),a-y<$&&(y=a),D[t]=x,G[t]=y,O){let Q=R.getOctEncodedNormal(I,t,$e);F[k]=Q.x,F[k+1]=Q.y}(o&&x>=z||!o&&x<=z)&&(i&&y>=z||!i&&y<=z)&&(l[t]=W,c.push(x),p.push(y),d.push(L[t]),O&&(u.push(F[k]),u.push(F[k+1])),++W)}let T=[];T.push(new m),T.push(new m),T.push(new m);let B=[];B.push(new m),B.push(new m),B.push(new m);let b,j;for(t=0;t<C.length;t+=3){let v=C[t],Q=C[t+1],Be=C[t+2],De=D[v],Fe=D[Q],ke=D[Be];T[0].initializeIndexed(D,G,L,F,v),T[1].initializeIndexed(D,G,L,F,Q),T[2].initializeIndexed(D,G,L,F,Be);let P=ie.clipTriangleAtAxisAlignedThreshold(z,o,De,Fe,ke,Me);b=0,!(b>=P.length)&&(b=B[0].initializeFromClipResult(P,b,T),!(b>=P.length)&&(b=B[1].initializeFromClipResult(P,b,T),!(b>=P.length)&&(b=B[2].initializeFromClipResult(P,b,T),j=ie.clipTriangleAtAxisAlignedThreshold(z,i,B[0].getV(),B[1].getV(),B[2].getV(),ze),Oe(c,p,d,u,r,l,j,B,O),b<P.length&&(B[2].clone(B[1]),B[2].initializeFromClipResult(P,b,T),j=ie.clipTriangleAtAxisAlignedThreshold(z,i,B[0].getV(),B[1].getV(),B[2].getV(),ze),Oe(c,p,d,u,r,l,j,B,O)))))}let He=o?-a:0,qe=i?-a:0,me=[],ge=[],le=[],we=[],U=Number.MAX_VALUE,_=-U,M=Xe;M.length=0;let re=Ce.clone(n.ellipsoid),J=Se.clone(n.childRectangle),Ee=J.north,Re=J.south,ce=J.east,xe=J.west;for(ce<xe&&(ce+=N.TWO_PI),t=0;t<c.length;++t)x=Math.round(c[t]),x<=s?(me.push(t),x=0):x>=e?(le.push(t),x=a):x=x*2+He,c[t]=x,y=Math.round(p[t]),y<=g?(ge.push(t),y=0):y>=w?(we.push(t),y=a):y=y*2+qe,p[t]=y,H=N.lerp(se,ae,d[t]/a),H<U&&(U=H),H>_&&(_=H),d[t]=H,te.longitude=N.lerp(xe,ce,x/a),te.latitude=N.lerp(Re,Ee,y/a),te.height=H,re.cartographicToCartesian(te,E),M.push(E.x),M.push(E.y),M.push(E.z);let he=de.fromVertices(M,A.ZERO,3,Qe),Ue=ue.fromRectangle(J,U,_,re,Ze),ve=new be(re).computeHorizonCullingPointFromVerticesPossiblyUnderEllipsoid(he.center,M,3,he.center,U,Je),Pe=_-U,X=new Uint16Array(c.length+p.length+d.length);for(t=0;t<c.length;++t)X[t]=c[t];let fe=c.length;for(t=0;t<p.length;++t)X[fe+t]=p[t];for(fe+=p.length,t=0;t<d.length;++t)X[fe+t]=a*(d[t]-U)/Pe;let pe=Ve.createTypedArray(c.length,r),ye;if(O){let v=new Uint8Array(u);h.push(X.buffer,pe.buffer,v.buffer),ye=v.buffer}else h.push(X.buffer,pe.buffer);return{vertices:X.buffer,encodedNormals:ye,indices:pe.buffer,minimumHeight:U,maximumHeight:_,westIndices:me,southIndices:ge,eastIndices:le,northIndices:we,boundingSphere:he,orientedBoundingBox:Ue,horizonOcclusionPoint:ve}}function m(){this.vertexBuffer=void 0,this.index=void 0,this.first=void 0,this.second=void 0,this.ratio=void 0}m.prototype.clone=function(n){return f(n)||(n=new m),n.uBuffer=this.uBuffer,n.vBuffer=this.vBuffer,n.heightBuffer=this.heightBuffer,n.normalBuffer=this.normalBuffer,n.index=this.index,n.first=this.first,n.second=this.second,n.ratio=this.ratio,n};m.prototype.initializeIndexed=function(n,h,o,i,s){this.uBuffer=n,this.vBuffer=h,this.heightBuffer=o,this.normalBuffer=i,this.index=s,this.first=void 0,this.second=void 0,this.ratio=void 0};m.prototype.initializeFromClipResult=function(n,h,o){let i=h+1;return n[h]!==-1?o[n[h]].clone(this):(this.vertexBuffer=void 0,this.index=void 0,this.first=o[n[i]],++i,this.second=o[n[i]],++i,this.ratio=n[i],++i),i};m.prototype.getKey=function(){return this.isIndexed()?this.index:JSON.stringify({first:this.first.getKey(),second:this.second.getKey(),ratio:this.ratio})};m.prototype.isIndexed=function(){return f(this.index)};m.prototype.getH=function(){return f(this.index)?this.heightBuffer[this.index]:N.lerp(this.first.getH(),this.second.getH(),this.ratio)};m.prototype.getU=function(){return f(this.index)?this.uBuffer[this.index]:N.lerp(this.first.getU(),this.second.getU(),this.ratio)};m.prototype.getV=function(){return f(this.index)?this.vBuffer[this.index]:N.lerp(this.first.getV(),this.second.getV(),this.ratio)};var K=new Z,oe=-1,en=[new A,new A],nn=[new A,new A];function Te(n,h){++oe;let o=en[oe],i=nn[oe];return o=ee.octDecode(n.first.getNormalX(),n.first.getNormalY(),o),i=ee.octDecode(n.second.getNormalX(),n.second.getNormalY(),i),E=A.lerp(o,i,n.ratio,E),A.normalize(E,E),ee.octEncode(E,h),--oe,h}m.prototype.getNormalX=function(){return f(this.index)?this.normalBuffer[this.index*2]:(K=Te(this,K),K.x)};m.prototype.getNormalY=function(){return f(this.index)?this.normalBuffer[this.index*2+1]:(K=Te(this,K),K.y)};var S=[];S.push(new m);S.push(new m);S.push(new m);S.push(new m);function Oe(n,h,o,i,s,e,g,w,c){if(g.length===0)return;let p=0,d=0;for(;d<g.length;)d=S[p++].initializeFromClipResult(g,d,w);for(let u=0;u<p;++u){let r=S[u];if(r.isIndexed())r.newIndex=e[r.index],r.uBuffer=n,r.vBuffer=h,r.heightBuffer=o,c&&(r.normalBuffer=i);else{let l=r.getKey();if(f(e[l]))r.newIndex=e[l];else{let I=n.length;n.push(r.getU()),h.push(r.getV()),o.push(r.getH()),c&&(i.push(r.getNormalX()),i.push(r.getNormalY())),r.newIndex=I,e[l]=I}}}p===3?(s.push(S[0].newIndex),s.push(S[1].newIndex),s.push(S[2].newIndex)):p===4&&(s.push(S[0].newIndex),s.push(S[1].newIndex),s.push(S[2].newIndex),s.push(S[0].newIndex),s.push(S[2].newIndex),s.push(S[3].newIndex))}var An=Ae(je);export{An as default};
|