Commit 3d017208 by wanghao

同步v3.4.7代码

parent 00c9e49d
......@@ -22,7 +22,7 @@
"classnames": "^2.3.1",
"echarts": "^5.3.2",
"lodash": "^4.17.21",
"mars3d": "^3.4.0",
"mars3d": "~3.4.0",
"monaco-editor": "^0.33.0",
"nprogress": "^0.2.0",
"react": "^18.1.0",
......
......@@ -761,6 +761,12 @@
"hasPannel": true
},
{
"name": "百度POI点查询",
"thumbnail": "query-baiduPOI.jpg",
"main": "query/baiduPOI",
"hasPannel": true
},
{
"name": "高德POI点查询",
"thumbnail": "query-gaodePOI.jpg",
"main": "query/gaodePOI",
......
This source diff could not be displayed because it is too large. You can view the blob instead.
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Columbus View (Pat. Pend.)
*
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./Matrix2-4706dd70","./ComponentDatatype-438cad2a","./RuntimeError-a977b8e0","./defaultValue-028a8a27"],function(z,b,f,o,y){"use strict";const a={SCALAR:"SCALAR",VEC2:"VEC2",VEC3:"VEC3",VEC4:"VEC4",MAT2:"MAT2",MAT3:"MAT3",MAT4:"MAT4"};a.getMathType=function(e){switch(e){case a.SCALAR:return Number;case a.VEC2:return b.Cartesian2;case a.VEC3:return b.Cartesian3;case a.VEC4:return b.Cartesian4;case a.MAT2:return b.Matrix2;case a.MAT3:return b.Matrix3;case a.MAT4:return b.Matrix4;default:throw new o.DeveloperError("attributeType is not a valid value.")}},a.getNumberOfComponents=function(e){switch(e){case a.SCALAR:return 1;case a.VEC2:return 2;case a.VEC3:return 3;case a.VEC4:case a.MAT2:return 4;case a.MAT3:return 9;case a.MAT4:return 16;default:throw new o.DeveloperError("attributeType is not a valid value.")}},a.getAttributeLocationCount=function(e){switch(e){case a.SCALAR:case a.VEC2:case a.VEC3:case a.VEC4:return 1;case a.MAT2:return 2;case a.MAT3:return 3;case a.MAT4:return 4;default:throw new o.DeveloperError("attributeType is not a valid value.")}},a.getGlslType=function(e){switch(o.Check.typeOf.string("attributeType",e),e){case a.SCALAR:return"float";case a.VEC2:return"vec2";case a.VEC3:return"vec3";case a.VEC4:return"vec4";case a.MAT2:return"mat2";case a.MAT3:return"mat3";case a.MAT4:return"mat4";default:throw new o.DeveloperError("attributeType is not a valid value.")}};var S=Object.freeze(a);const u=1/256,w=256,s={};s.octEncodeInRange=function(e,n,t){o.Check.defined("vector",e),o.Check.defined("result",t);const c=b.Cartesian3.magnitudeSquared(e);if(Math.abs(c-1)>f.CesiumMath.EPSILON6)throw new o.DeveloperError("vector must be normalized.");if(t.x=e.x/(Math.abs(e.x)+Math.abs(e.y)+Math.abs(e.z)),t.y=e.y/(Math.abs(e.x)+Math.abs(e.y)+Math.abs(e.z)),e.z<0){const d=t.x,i=t.y;t.x=(1-Math.abs(i))*f.CesiumMath.signNotZero(d),t.y=(1-Math.abs(d))*f.CesiumMath.signNotZero(i)}return t.x=f.CesiumMath.toSNorm(t.x,n),t.y=f.CesiumMath.toSNorm(t.y,n),t},s.octEncode=function(e,n){return s.octEncodeInRange(e,255,n)};const k=new b.Cartesian2,x=new Uint8Array(1);function A(e){return x[0]=e,x[0]}s.octEncodeToCartesian4=function(e,n){return s.octEncodeInRange(e,65535,k),n.x=A(k.x*u),n.y=A(k.x),n.z=A(k.y*u),n.w=A(k.y),n},s.octDecodeInRange=function(e,n,t,c){if(o.Check.defined("result",c),e<0||e>t||n<0||n>t)throw new o.DeveloperError(`x and y must be unsigned normalized integers between 0 and ${t}`);if(c.x=f.CesiumMath.fromSNorm(e,t),c.y=f.CesiumMath.fromSNorm(n,t),c.z=1-(Math.abs(c.x)+Math.abs(c.y)),c.z<0){const d=c.x;c.x=(1-Math.abs(c.y))*f.CesiumMath.signNotZero(d),c.y=(1-Math.abs(d))*f.CesiumMath.signNotZero(c.y)}return b.Cartesian3.normalize(c,c)},s.octDecode=function(e,n,t){return s.octDecodeInRange(e,n,255,t)},s.octDecodeFromCartesian4=function(e,n){o.Check.typeOf.object("encoded",e),o.Check.typeOf.object("result",n);const t=e.x,c=e.y,d=e.z,i=e.w;if(t<0||t>255||c<0||c>255||d<0||d>255||i<0||i>255)throw new o.DeveloperError("x, y, z, and w must be unsigned normalized integers between 0 and 255");const C=t*w+c,h=d*w+i;return s.octDecodeInRange(C,h,65535,n)},s.octPackFloat=function(e){return o.Check.defined("encoded",e),256*e.x+e.y};const M=new b.Cartesian2;s.octEncodeFloat=function(e){return s.octEncode(e,M),s.octPackFloat(M)},s.octDecodeFloat=function(e,n){o.Check.defined("value",e);const t=e/256,c=Math.floor(t),d=(t-c)*256;return s.octDecode(c,d,n)},s.octPack=function(e,n,t,c){o.Check.defined("v1",e),o.Check.defined("v2",n),o.Check.defined("v3",t),o.Check.defined("result",c);const d=s.octEncodeFloat(e),i=s.octEncodeFloat(n),C=s.octEncode(t,M);return c.x=65536*C.x+d,c.y=65536*C.y+i,c},s.octUnpack=function(e,n,t,c){o.Check.defined("packed",e),o.Check.defined("v1",n),o.Check.defined("v2",t),o.Check.defined("v3",c);let d=e.x/65536;const i=Math.floor(d),C=(d-i)*65536;d=e.y/65536;const h=Math.floor(d),r=(d-h)*65536;s.octDecodeFloat(C,n),s.octDecodeFloat(r,t),s.octDecode(i,h,c)},s.compressTextureCoordinates=function(e){o.Check.defined("textureCoordinates",e);const n=e.x*4095|0,t=e.y*4095|0;return 4096*n+t},s.decompressTextureCoordinates=function(e,n){o.Check.defined("compressed",e),o.Check.defined("result",n);const t=e/4096,c=Math.floor(t);return n.x=c/4095,n.y=(e-c*4096)/4095,n};function g(e){return e>>1^-(e&1)}s.zigZagDeltaDecode=function(e,n,t){o.Check.defined("uBuffer",e),o.Check.defined("vBuffer",n),o.Check.typeOf.number.equals("uBuffer.length","vBuffer.length",e.length,n.length),y.defined(t)&&o.Check.typeOf.number.equals("uBuffer.length","heightBuffer.length",e.length,t.length);const c=e.length;let d=0,i=0,C=0;for(let h=0;h<c;++h)d+=g(e[h]),i+=g(n[h]),e[h]=d,n[h]=i,y.defined(t)&&(C+=g(t[h]),t[h]=C)},s.dequantize=function(e,n,t,c){o.Check.defined("typedArray",e),o.Check.defined("componentDatatype",n),o.Check.defined("type",t),o.Check.defined("count",c);const d=S.getNumberOfComponents(t);let i;switch(n){case f.ComponentDatatype.BYTE:i=127;break;case f.ComponentDatatype.UNSIGNED_BYTE:i=255;break;case f.ComponentDatatype.SHORT:i=32767;break;case f.ComponentDatatype.UNSIGNED_SHORT:i=65535;break;case f.ComponentDatatype.INT:i=2147483647;break;case f.ComponentDatatype.UNSIGNED_INT:i=4294967295;break;default:throw new o.DeveloperError(`Cannot dequantize component datatype: ${n}`)}const C=new Float32Array(c*d);for(let h=0;h<c;h++)for(let r=0;r<d;r++){const T=h*d+r;C[T]=Math.max(e[T]/i,-1)}return C},s.decodeRGB565=function(e,n){o.Check.defined("typedArray",e);const t=e.length*3;y.defined(n)&&o.Check.typeOf.number.equals("result.length","typedArray.length * 3",n.length,t);const c=e.length;y.defined(n)||(n=new Float32Array(c*3));const d=(1<<5)-1,i=(1<<6)-1,C=1/31,h=1/63;for(let r=0;r<c;r++){const T=e[r],N=T>>11,p=T>>5&i,F=T&d,l=3*r;n[l]=N*C,n[l+1]=p*h,n[l+2]=F*C}return n},z.AttributeCompression=s});
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......@@ -22,4 +22,4 @@
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./Matrix2-c788e106","./ComponentDatatype-94a172c0","./RuntimeError-50f3c270","./defaultValue-77c08f32"],(function(t,e,n,o,a){"use strict";const c={SCALAR:"SCALAR",VEC2:"VEC2",VEC3:"VEC3",VEC4:"VEC4",MAT2:"MAT2",MAT3:"MAT3",MAT4:"MAT4",getMathType:function(t){switch(t){case c.SCALAR:return Number;case c.VEC2:return e.Cartesian2;case c.VEC3:return e.Cartesian3;case c.VEC4:return e.Cartesian4;case c.MAT2:return e.Matrix2;case c.MAT3:return e.Matrix3;case c.MAT4:return e.Matrix4}},getNumberOfComponents:function(t){switch(t){case c.SCALAR:return 1;case c.VEC2:return 2;case c.VEC3:return 3;case c.VEC4:case c.MAT2:return 4;case c.MAT3:return 9;case c.MAT4:return 16}},getAttributeLocationCount:function(t){switch(t){case c.SCALAR:case c.VEC2:case c.VEC3:case c.VEC4:return 1;case c.MAT2:return 2;case c.MAT3:return 3;case c.MAT4:return 4}},getGlslType:function(t){switch(t){case c.SCALAR:return"float";case c.VEC2:return"vec2";case c.VEC3:return"vec3";case c.VEC4:return"vec4";case c.MAT2:return"mat2";case c.MAT3:return"mat3";case c.MAT4:return"mat4"}}};var r=Object.freeze(c);const s=1/256,u={octEncodeInRange:function(t,e,o){if(o.x=t.x/(Math.abs(t.x)+Math.abs(t.y)+Math.abs(t.z)),o.y=t.y/(Math.abs(t.x)+Math.abs(t.y)+Math.abs(t.z)),t.z<0){const t=o.x,e=o.y;o.x=(1-Math.abs(e))*n.CesiumMath.signNotZero(t),o.y=(1-Math.abs(t))*n.CesiumMath.signNotZero(e)}return o.x=n.CesiumMath.toSNorm(o.x,e),o.y=n.CesiumMath.toSNorm(o.y,e),o},octEncode:function(t,e){return u.octEncodeInRange(t,255,e)}},i=new e.Cartesian2,C=new Uint8Array(1);function M(t){return C[0]=t,C[0]}u.octEncodeToCartesian4=function(t,e){return u.octEncodeInRange(t,65535,i),e.x=M(i.x*s),e.y=M(i.x),e.z=M(i.y*s),e.w=M(i.y),e},u.octDecodeInRange=function(t,o,a,c){if(c.x=n.CesiumMath.fromSNorm(t,a),c.y=n.CesiumMath.fromSNorm(o,a),c.z=1-(Math.abs(c.x)+Math.abs(c.y)),c.z<0){const t=c.x;c.x=(1-Math.abs(c.y))*n.CesiumMath.signNotZero(t),c.y=(1-Math.abs(t))*n.CesiumMath.signNotZero(c.y)}return e.Cartesian3.normalize(c,c)},u.octDecode=function(t,e,n){return u.octDecodeInRange(t,e,255,n)},u.octDecodeFromCartesian4=function(t,e){const n=256*t.x+t.y,o=256*t.z+t.w;return u.octDecodeInRange(n,o,65535,e)},u.octPackFloat=function(t){return 256*t.x+t.y};const f=new e.Cartesian2;function m(t){return t>>1^-(1&t)}u.octEncodeFloat=function(t){return u.octEncode(t,f),u.octPackFloat(f)},u.octDecodeFloat=function(t,e){const n=t/256,o=Math.floor(n),a=256*(n-o);return u.octDecode(o,a,e)},u.octPack=function(t,e,n,o){const a=u.octEncodeFloat(t),c=u.octEncodeFloat(e),r=u.octEncode(n,f);return o.x=65536*r.x+a,o.y=65536*r.y+c,o},u.octUnpack=function(t,e,n,o){let a=t.x/65536;const c=Math.floor(a),r=65536*(a-c);a=t.y/65536;const s=Math.floor(a),i=65536*(a-s);u.octDecodeFloat(r,e),u.octDecodeFloat(i,n),u.octDecode(c,s,o)},u.compressTextureCoordinates=function(t){return 4096*(4095*t.x|0)+(4095*t.y|0)},u.decompressTextureCoordinates=function(t,e){const n=t/4096,o=Math.floor(n);return e.x=o/4095,e.y=(t-4096*o)/4095,e},u.zigZagDeltaDecode=function(t,e,n){const o=t.length;let c=0,r=0,s=0;for(let u=0;u<o;++u)c+=m(t[u]),r+=m(e[u]),t[u]=c,e[u]=r,a.defined(n)&&(s+=m(n[u]),n[u]=s)},u.dequantize=function(t,e,o,a){const c=r.getNumberOfComponents(o);let s;switch(e){case n.ComponentDatatype.BYTE:s=127;break;case n.ComponentDatatype.UNSIGNED_BYTE:s=255;break;case n.ComponentDatatype.SHORT:s=32767;break;case n.ComponentDatatype.UNSIGNED_SHORT:s=65535;break;case n.ComponentDatatype.INT:s=2147483647;break;case n.ComponentDatatype.UNSIGNED_INT:s=4294967295}const u=new Float32Array(a*c);for(let e=0;e<a;e++)for(let n=0;n<c;n++){const o=e*c+n;u[o]=Math.max(t[o]/s,-1)}return u},u.decodeRGB565=function(t,e){const n=t.length;a.defined(e)||(e=new Float32Array(3*n));const o=1/31;for(let a=0;a<n;a++){const n=t[a],c=n>>11,r=n>>5&63,s=31&n,u=3*a;e[u]=c*o,e[u+1]=.015873015873015872*r,e[u+2]=s*o}return e},t.AttributeCompression=u}));
define(["exports","./Matrix2-f4a72982","./ComponentDatatype-cb7120fd","./RuntimeError-ed67c927","./defaultValue-ff4e651f"],(function(t,e,n,o,a){"use strict";const r={SCALAR:"SCALAR",VEC2:"VEC2",VEC3:"VEC3",VEC4:"VEC4",MAT2:"MAT2",MAT3:"MAT3",MAT4:"MAT4",getMathType:function(t){switch(t){case r.SCALAR:return Number;case r.VEC2:return e.Cartesian2;case r.VEC3:return e.Cartesian3;case r.VEC4:return e.Cartesian4;case r.MAT2:return e.Matrix2;case r.MAT3:return e.Matrix3;case r.MAT4:return e.Matrix4}},getNumberOfComponents:function(t){switch(t){case r.SCALAR:return 1;case r.VEC2:return 2;case r.VEC3:return 3;case r.VEC4:case r.MAT2:return 4;case r.MAT3:return 9;case r.MAT4:return 16}},getAttributeLocationCount:function(t){switch(t){case r.SCALAR:case r.VEC2:case r.VEC3:case r.VEC4:return 1;case r.MAT2:return 2;case r.MAT3:return 3;case r.MAT4:return 4}},getGlslType:function(t){switch(t){case r.SCALAR:return"float";case r.VEC2:return"vec2";case r.VEC3:return"vec3";case r.VEC4:return"vec4";case r.MAT2:return"mat2";case r.MAT3:return"mat3";case r.MAT4:return"mat4"}}};var c=Object.freeze(r);const s=1/256,u={octEncodeInRange:function(t,e,o){if(o.x=t.x/(Math.abs(t.x)+Math.abs(t.y)+Math.abs(t.z)),o.y=t.y/(Math.abs(t.x)+Math.abs(t.y)+Math.abs(t.z)),t.z<0){const t=o.x,e=o.y;o.x=(1-Math.abs(e))*n.CesiumMath.signNotZero(t),o.y=(1-Math.abs(t))*n.CesiumMath.signNotZero(e)}return o.x=n.CesiumMath.toSNorm(o.x,e),o.y=n.CesiumMath.toSNorm(o.y,e),o},octEncode:function(t,e){return u.octEncodeInRange(t,255,e)}},i=new e.Cartesian2,C=new Uint8Array(1);function f(t){return C[0]=t,C[0]}u.octEncodeToCartesian4=function(t,e){return u.octEncodeInRange(t,65535,i),e.x=f(i.x*s),e.y=f(i.x),e.z=f(i.y*s),e.w=f(i.y),e},u.octDecodeInRange=function(t,o,a,r){if(r.x=n.CesiumMath.fromSNorm(t,a),r.y=n.CesiumMath.fromSNorm(o,a),r.z=1-(Math.abs(r.x)+Math.abs(r.y)),r.z<0){const t=r.x;r.x=(1-Math.abs(r.y))*n.CesiumMath.signNotZero(t),r.y=(1-Math.abs(t))*n.CesiumMath.signNotZero(r.y)}return e.Cartesian3.normalize(r,r)},u.octDecode=function(t,e,n){return u.octDecodeInRange(t,e,255,n)},u.octDecodeFromCartesian4=function(t,e){const n=256*t.x+t.y,o=256*t.z+t.w;return u.octDecodeInRange(n,o,65535,e)},u.octPackFloat=function(t){return 256*t.x+t.y};const M=new e.Cartesian2;function m(t){return t>>1^-(1&t)}u.octEncodeFloat=function(t){return u.octEncode(t,M),u.octPackFloat(M)},u.octDecodeFloat=function(t,e){const n=t/256,o=Math.floor(n),a=256*(n-o);return u.octDecode(o,a,e)},u.octPack=function(t,e,n,o){const a=u.octEncodeFloat(t),r=u.octEncodeFloat(e),c=u.octEncode(n,M);return o.x=65536*c.x+a,o.y=65536*c.y+r,o},u.octUnpack=function(t,e,n,o){let a=t.x/65536;const r=Math.floor(a),c=65536*(a-r);a=t.y/65536;const s=Math.floor(a),i=65536*(a-s);u.octDecodeFloat(c,e),u.octDecodeFloat(i,n),u.octDecode(r,s,o)},u.compressTextureCoordinates=function(t){return 4096*(4095*t.x|0)+(4095*t.y|0)},u.decompressTextureCoordinates=function(t,e){const n=t/4096,o=Math.floor(n);return e.x=o/4095,e.y=(t-4096*o)/4095,e},u.zigZagDeltaDecode=function(t,e,n){const o=t.length;let r=0,c=0,s=0;for(let u=0;u<o;++u)r+=m(t[u]),c+=m(e[u]),t[u]=r,e[u]=c,a.defined(n)&&(s+=m(n[u]),n[u]=s)},u.dequantize=function(t,e,o,a){const r=c.getNumberOfComponents(o);let s;switch(e){case n.ComponentDatatype.BYTE:s=127;break;case n.ComponentDatatype.UNSIGNED_BYTE:s=255;break;case n.ComponentDatatype.SHORT:s=32767;break;case n.ComponentDatatype.UNSIGNED_SHORT:s=65535;break;case n.ComponentDatatype.INT:s=2147483647;break;case n.ComponentDatatype.UNSIGNED_INT:s=4294967295}const u=new Float32Array(a*r);for(let e=0;e<a;e++)for(let n=0;n<r;n++){const o=e*r+n;u[o]=Math.max(t[o]/s,-1)}return u},u.decodeRGB565=function(t,e){const n=t.length;a.defined(e)||(e=new Float32Array(3*n));const o=1/31;for(let a=0;a<n;a++){const n=t[a],r=n>>11,c=n>>5&63,s=31&n,u=3*a;e[u]=r*o,e[u+1]=.015873015873015872*c,e[u+2]=s*o}return e},t.AttributeCompression=u}));
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......@@ -22,4 +22,4 @@
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./Matrix2-c788e106","./RuntimeError-50f3c270","./defaultValue-77c08f32","./Transforms-fae4cdf7"],(function(e,n,t,i,a){"use strict";function m(e,t,a){this.minimum=n.Cartesian3.clone(i.defaultValue(e,n.Cartesian3.ZERO)),this.maximum=n.Cartesian3.clone(i.defaultValue(t,n.Cartesian3.ZERO)),a=i.defined(a)?n.Cartesian3.clone(a):n.Cartesian3.midpoint(this.minimum,this.maximum,new n.Cartesian3),this.center=a}m.fromCorners=function(e,t,a){return i.defined(a)||(a=new m),a.minimum=n.Cartesian3.clone(e,a.minimum),a.maximum=n.Cartesian3.clone(t,a.maximum),a.center=n.Cartesian3.midpoint(e,t,a.center),a},m.fromPoints=function(e,t){if(i.defined(t)||(t=new m),!i.defined(e)||0===e.length)return t.minimum=n.Cartesian3.clone(n.Cartesian3.ZERO,t.minimum),t.maximum=n.Cartesian3.clone(n.Cartesian3.ZERO,t.maximum),t.center=n.Cartesian3.clone(n.Cartesian3.ZERO,t.center),t;let a=e[0].x,r=e[0].y,s=e[0].z,u=e[0].x,c=e[0].y,o=e[0].z;const l=e.length;for(let n=1;n<l;n++){const t=e[n],i=t.x,m=t.y,l=t.z;a=Math.min(i,a),u=Math.max(i,u),r=Math.min(m,r),c=Math.max(m,c),s=Math.min(l,s),o=Math.max(l,o)}const f=t.minimum;f.x=a,f.y=r,f.z=s;const C=t.maximum;return C.x=u,C.y=c,C.z=o,t.center=n.Cartesian3.midpoint(f,C,t.center),t},m.clone=function(e,t){if(i.defined(e))return i.defined(t)?(t.minimum=n.Cartesian3.clone(e.minimum,t.minimum),t.maximum=n.Cartesian3.clone(e.maximum,t.maximum),t.center=n.Cartesian3.clone(e.center,t.center),t):new m(e.minimum,e.maximum,e.center)},m.equals=function(e,t){return e===t||i.defined(e)&&i.defined(t)&&n.Cartesian3.equals(e.center,t.center)&&n.Cartesian3.equals(e.minimum,t.minimum)&&n.Cartesian3.equals(e.maximum,t.maximum)};let r=new n.Cartesian3;m.intersectPlane=function(e,t){r=n.Cartesian3.subtract(e.maximum,e.minimum,r);const i=n.Cartesian3.multiplyByScalar(r,.5,r),m=t.normal,s=i.x*Math.abs(m.x)+i.y*Math.abs(m.y)+i.z*Math.abs(m.z),u=n.Cartesian3.dot(e.center,m)+t.distance;return u-s>0?a.Intersect.INSIDE:u+s<0?a.Intersect.OUTSIDE:a.Intersect.INTERSECTING},m.prototype.clone=function(e){return m.clone(this,e)},m.prototype.intersectPlane=function(e){return m.intersectPlane(this,e)},m.prototype.equals=function(e){return m.equals(this,e)},e.AxisAlignedBoundingBox=m}));
define(["exports","./Matrix2-f4a72982","./RuntimeError-ed67c927","./defaultValue-ff4e651f","./Transforms-e2b46a6c"],(function(e,n,t,i,a){"use strict";function m(e,t,a){this.minimum=n.Cartesian3.clone(i.defaultValue(e,n.Cartesian3.ZERO)),this.maximum=n.Cartesian3.clone(i.defaultValue(t,n.Cartesian3.ZERO)),a=i.defined(a)?n.Cartesian3.clone(a):n.Cartesian3.midpoint(this.minimum,this.maximum,new n.Cartesian3),this.center=a}m.fromCorners=function(e,t,a){return i.defined(a)||(a=new m),a.minimum=n.Cartesian3.clone(e,a.minimum),a.maximum=n.Cartesian3.clone(t,a.maximum),a.center=n.Cartesian3.midpoint(e,t,a.center),a},m.fromPoints=function(e,t){if(i.defined(t)||(t=new m),!i.defined(e)||0===e.length)return t.minimum=n.Cartesian3.clone(n.Cartesian3.ZERO,t.minimum),t.maximum=n.Cartesian3.clone(n.Cartesian3.ZERO,t.maximum),t.center=n.Cartesian3.clone(n.Cartesian3.ZERO,t.center),t;let a=e[0].x,r=e[0].y,s=e[0].z,u=e[0].x,c=e[0].y,o=e[0].z;const l=e.length;for(let n=1;n<l;n++){const t=e[n],i=t.x,m=t.y,l=t.z;a=Math.min(i,a),u=Math.max(i,u),r=Math.min(m,r),c=Math.max(m,c),s=Math.min(l,s),o=Math.max(l,o)}const f=t.minimum;f.x=a,f.y=r,f.z=s;const C=t.maximum;return C.x=u,C.y=c,C.z=o,t.center=n.Cartesian3.midpoint(f,C,t.center),t},m.clone=function(e,t){if(i.defined(e))return i.defined(t)?(t.minimum=n.Cartesian3.clone(e.minimum,t.minimum),t.maximum=n.Cartesian3.clone(e.maximum,t.maximum),t.center=n.Cartesian3.clone(e.center,t.center),t):new m(e.minimum,e.maximum,e.center)},m.equals=function(e,t){return e===t||i.defined(e)&&i.defined(t)&&n.Cartesian3.equals(e.center,t.center)&&n.Cartesian3.equals(e.minimum,t.minimum)&&n.Cartesian3.equals(e.maximum,t.maximum)};let r=new n.Cartesian3;m.intersectPlane=function(e,t){r=n.Cartesian3.subtract(e.maximum,e.minimum,r);const i=n.Cartesian3.multiplyByScalar(r,.5,r),m=t.normal,s=i.x*Math.abs(m.x)+i.y*Math.abs(m.y)+i.z*Math.abs(m.z),u=n.Cartesian3.dot(e.center,m)+t.distance;return u-s>0?a.Intersect.INSIDE:u+s<0?a.Intersect.OUTSIDE:a.Intersect.INTERSECTING},m.prototype.clone=function(e){return m.clone(this,e)},m.prototype.intersectPlane=function(e){return m.intersectPlane(this,e)},m.prototype.equals=function(e){return m.equals(this,e)},e.AxisAlignedBoundingBox=m}));
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Columbus View (Pat. Pend.)
*
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./Matrix2-4706dd70","./RuntimeError-a977b8e0","./defaultValue-028a8a27","./Transforms-66eda18c"],function(O,e,o,c,h){"use strict";function a(n,m,i){this.minimum=e.Cartesian3.clone(c.defaultValue(n,e.Cartesian3.ZERO)),this.maximum=e.Cartesian3.clone(c.defaultValue(m,e.Cartesian3.ZERO)),c.defined(i)?i=e.Cartesian3.clone(i):i=e.Cartesian3.midpoint(this.minimum,this.maximum,new e.Cartesian3),this.center=i}a.fromCorners=function(n,m,i){return o.Check.defined("minimum",n),o.Check.defined("maximum",m),c.defined(i)||(i=new a),i.minimum=e.Cartesian3.clone(n,i.minimum),i.maximum=e.Cartesian3.clone(m,i.maximum),i.center=e.Cartesian3.midpoint(n,m,i.center),i},a.fromPoints=function(n,m){if(c.defined(m)||(m=new a),!c.defined(n)||n.length===0)return m.minimum=e.Cartesian3.clone(e.Cartesian3.ZERO,m.minimum),m.maximum=e.Cartesian3.clone(e.Cartesian3.ZERO,m.maximum),m.center=e.Cartesian3.clone(e.Cartesian3.ZERO,m.center),m;let i=n[0].x,t=n[0].y,d=n[0].z,C=n[0].x,r=n[0].y,y=n[0].z;const w=n.length;for(let z=1;z<w;z++){const I=n[z],E=I.x,Z=I.y,q=I.z;i=Math.min(E,i),C=Math.max(E,C),t=Math.min(Z,t),r=Math.max(Z,r),d=Math.min(q,d),y=Math.max(q,y)}const s=m.minimum;s.x=i,s.y=t,s.z=d;const f=m.maximum;return f.x=C,f.y=r,f.z=y,m.center=e.Cartesian3.midpoint(s,f,m.center),m},a.clone=function(n,m){if(!!c.defined(n))return c.defined(m)?(m.minimum=e.Cartesian3.clone(n.minimum,m.minimum),m.maximum=e.Cartesian3.clone(n.maximum,m.maximum),m.center=e.Cartesian3.clone(n.center,m.center),m):new a(n.minimum,n.maximum,n.center)},a.equals=function(n,m){return n===m||c.defined(n)&&c.defined(m)&&e.Cartesian3.equals(n.center,m.center)&&e.Cartesian3.equals(n.minimum,m.minimum)&&e.Cartesian3.equals(n.maximum,m.maximum)};let u=new e.Cartesian3;a.intersectPlane=function(n,m){o.Check.defined("box",n),o.Check.defined("plane",m),u=e.Cartesian3.subtract(n.maximum,n.minimum,u);const i=e.Cartesian3.multiplyByScalar(u,.5,u),t=m.normal,d=i.x*Math.abs(t.x)+i.y*Math.abs(t.y)+i.z*Math.abs(t.z),C=e.Cartesian3.dot(n.center,t)+m.distance;return C-d>0?h.Intersect.INSIDE:C+d<0?h.Intersect.OUTSIDE:h.Intersect.INTERSECTING},a.prototype.clone=function(n){return a.clone(this,n)},a.prototype.intersectPlane=function(n){return a.intersectPlane(this,n)},a.prototype.equals=function(n){return a.equals(this,n)},O.AxisAlignedBoundingBox=a});
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Columbus View (Pat. Pend.)
*
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./Matrix2-4706dd70","./RuntimeError-a977b8e0","./defaultValue-028a8a27","./Transforms-66eda18c"],function(g,w,d,o,x){"use strict";function c(n,h,i,e){this.x=o.defaultValue(n,0),this.y=o.defaultValue(h,0),this.width=o.defaultValue(i,0),this.height=o.defaultValue(e,0)}c.packedLength=4,c.pack=function(n,h,i){return d.Check.typeOf.object("value",n),d.Check.defined("array",h),i=o.defaultValue(i,0),h[i++]=n.x,h[i++]=n.y,h[i++]=n.width,h[i]=n.height,h},c.unpack=function(n,h,i){return d.Check.defined("array",n),h=o.defaultValue(h,0),o.defined(i)||(i=new c),i.x=n[h++],i.y=n[h++],i.width=n[h++],i.height=n[h],i},c.fromPoints=function(n,h){if(o.defined(h)||(h=new c),!o.defined(n)||n.length===0)return h.x=0,h.y=0,h.width=0,h.height=0,h;const i=n.length;let e=n[0].x,t=n[0].y,f=n[0].x,y=n[0].y;for(let p=1;p<i;p++){const m=n[p],C=m.x,k=m.y;e=Math.min(C,e),f=Math.max(C,f),t=Math.min(k,t),y=Math.max(k,y)}return h.x=e,h.y=t,h.width=f-e,h.height=y-t,h};const b=new x.GeographicProjection,j=new w.Cartographic,O=new w.Cartographic;c.fromRectangle=function(n,h,i){if(o.defined(i)||(i=new c),!o.defined(n))return i.x=0,i.y=0,i.width=0,i.height=0,i;h=o.defaultValue(h,b);const e=h.project(w.Rectangle.southwest(n,j)),t=h.project(w.Rectangle.northeast(n,O));return w.Cartesian2.subtract(t,e,t),i.x=e.x,i.y=e.y,i.width=t.x,i.height=t.y,i},c.clone=function(n,h){if(!!o.defined(n))return o.defined(h)?(h.x=n.x,h.y=n.y,h.width=n.width,h.height=n.height,h):new c(n.x,n.y,n.width,n.height)},c.union=function(n,h,i){d.Check.typeOf.object("left",n),d.Check.typeOf.object("right",h),o.defined(i)||(i=new c);const e=Math.min(n.x,h.x),t=Math.min(n.y,h.y),f=Math.max(n.x+n.width,h.x+h.width),y=Math.max(n.y+n.height,h.y+h.height);return i.x=e,i.y=t,i.width=f-e,i.height=y-t,i},c.expand=function(n,h,i){d.Check.typeOf.object("rectangle",n),d.Check.typeOf.object("point",h),i=c.clone(n,i);const e=h.x-i.x,t=h.y-i.y;return e>i.width?i.width=e:e<0&&(i.width-=e,i.x=h.x),t>i.height?i.height=t:t<0&&(i.height-=t,i.y=h.y),i},c.intersect=function(n,h){d.Check.typeOf.object("left",n),d.Check.typeOf.object("right",h);const i=n.x,e=n.y,t=h.x,f=h.y;return i>t+h.width||i+n.width<t||e+n.height<f||e>f+h.height?x.Intersect.OUTSIDE:x.Intersect.INTERSECTING},c.equals=function(n,h){return n===h||o.defined(n)&&o.defined(h)&&n.x===h.x&&n.y===h.y&&n.width===h.width&&n.height===h.height},c.prototype.clone=function(n){return c.clone(this,n)},c.prototype.intersect=function(n){return c.intersect(this,n)},c.prototype.equals=function(n){return c.equals(this,n)},g.BoundingRectangle=c});
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......@@ -22,4 +22,4 @@
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./Matrix2-c788e106","./RuntimeError-50f3c270","./defaultValue-77c08f32","./Transforms-fae4cdf7"],(function(t,e,n,i,h){"use strict";function r(t,e,n,h){this.x=i.defaultValue(t,0),this.y=i.defaultValue(e,0),this.width=i.defaultValue(n,0),this.height=i.defaultValue(h,0)}r.packedLength=4,r.pack=function(t,e,n){return n=i.defaultValue(n,0),e[n++]=t.x,e[n++]=t.y,e[n++]=t.width,e[n]=t.height,e},r.unpack=function(t,e,n){return e=i.defaultValue(e,0),i.defined(n)||(n=new r),n.x=t[e++],n.y=t[e++],n.width=t[e++],n.height=t[e],n},r.fromPoints=function(t,e){if(i.defined(e)||(e=new r),!i.defined(t)||0===t.length)return e.x=0,e.y=0,e.width=0,e.height=0,e;const n=t.length;let h=t[0].x,u=t[0].y,d=t[0].x,a=t[0].y;for(let e=1;e<n;e++){const n=t[e],i=n.x,r=n.y;h=Math.min(i,h),d=Math.max(i,d),u=Math.min(r,u),a=Math.max(r,a)}return e.x=h,e.y=u,e.width=d-h,e.height=a-u,e};const u=new h.GeographicProjection,d=new e.Cartographic,a=new e.Cartographic;r.fromRectangle=function(t,n,h){if(i.defined(h)||(h=new r),!i.defined(t))return h.x=0,h.y=0,h.width=0,h.height=0,h;const c=(n=i.defaultValue(n,u)).project(e.Rectangle.southwest(t,d)),o=n.project(e.Rectangle.northeast(t,a));return e.Cartesian2.subtract(o,c,o),h.x=c.x,h.y=c.y,h.width=o.x,h.height=o.y,h},r.clone=function(t,e){if(i.defined(t))return i.defined(e)?(e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e):new r(t.x,t.y,t.width,t.height)},r.union=function(t,e,n){i.defined(n)||(n=new r);const h=Math.min(t.x,e.x),u=Math.min(t.y,e.y),d=Math.max(t.x+t.width,e.x+e.width),a=Math.max(t.y+t.height,e.y+e.height);return n.x=h,n.y=u,n.width=d-h,n.height=a-u,n},r.expand=function(t,e,n){n=r.clone(t,n);const i=e.x-n.x,h=e.y-n.y;return i>n.width?n.width=i:i<0&&(n.width-=i,n.x=e.x),h>n.height?n.height=h:h<0&&(n.height-=h,n.y=e.y),n},r.intersect=function(t,e){const n=t.x,i=t.y,r=e.x,u=e.y;return n>r+e.width||n+t.width<r||i+t.height<u||i>u+e.height?h.Intersect.OUTSIDE:h.Intersect.INTERSECTING},r.equals=function(t,e){return t===e||i.defined(t)&&i.defined(e)&&t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height},r.prototype.clone=function(t){return r.clone(this,t)},r.prototype.intersect=function(t){return r.intersect(this,t)},r.prototype.equals=function(t){return r.equals(this,t)},t.BoundingRectangle=r}));
define(["exports","./Matrix2-f4a72982","./RuntimeError-ed67c927","./defaultValue-ff4e651f","./Transforms-e2b46a6c"],(function(t,e,n,i,h){"use strict";function r(t,e,n,h){this.x=i.defaultValue(t,0),this.y=i.defaultValue(e,0),this.width=i.defaultValue(n,0),this.height=i.defaultValue(h,0)}r.packedLength=4,r.pack=function(t,e,n){return n=i.defaultValue(n,0),e[n++]=t.x,e[n++]=t.y,e[n++]=t.width,e[n]=t.height,e},r.unpack=function(t,e,n){return e=i.defaultValue(e,0),i.defined(n)||(n=new r),n.x=t[e++],n.y=t[e++],n.width=t[e++],n.height=t[e],n},r.fromPoints=function(t,e){if(i.defined(e)||(e=new r),!i.defined(t)||0===t.length)return e.x=0,e.y=0,e.width=0,e.height=0,e;const n=t.length;let h=t[0].x,u=t[0].y,d=t[0].x,a=t[0].y;for(let e=1;e<n;e++){const n=t[e],i=n.x,r=n.y;h=Math.min(i,h),d=Math.max(i,d),u=Math.min(r,u),a=Math.max(r,a)}return e.x=h,e.y=u,e.width=d-h,e.height=a-u,e};const u=new h.GeographicProjection,d=new e.Cartographic,a=new e.Cartographic;r.fromRectangle=function(t,n,h){if(i.defined(h)||(h=new r),!i.defined(t))return h.x=0,h.y=0,h.width=0,h.height=0,h;const o=(n=i.defaultValue(n,u)).project(e.Rectangle.southwest(t,d)),c=n.project(e.Rectangle.northeast(t,a));return e.Cartesian2.subtract(c,o,c),h.x=o.x,h.y=o.y,h.width=c.x,h.height=c.y,h},r.clone=function(t,e){if(i.defined(t))return i.defined(e)?(e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e):new r(t.x,t.y,t.width,t.height)},r.union=function(t,e,n){i.defined(n)||(n=new r);const h=Math.min(t.x,e.x),u=Math.min(t.y,e.y),d=Math.max(t.x+t.width,e.x+e.width),a=Math.max(t.y+t.height,e.y+e.height);return n.x=h,n.y=u,n.width=d-h,n.height=a-u,n},r.expand=function(t,e,n){n=r.clone(t,n);const i=e.x-n.x,h=e.y-n.y;return i>n.width?n.width=i:i<0&&(n.width-=i,n.x=e.x),h>n.height?n.height=h:h<0&&(n.height-=h,n.y=e.y),n},r.intersect=function(t,e){const n=t.x,i=t.y,r=e.x,u=e.y;return n>r+e.width||n+t.width<r||i+t.height<u||i>u+e.height?h.Intersect.OUTSIDE:h.Intersect.INTERSECTING},r.equals=function(t,e){return t===e||i.defined(t)&&i.defined(e)&&t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height},r.prototype.clone=function(t){return r.clone(this,t)},r.prototype.intersect=function(t){return r.intersect(this,t)},r.prototype.equals=function(t){return r.equals(this,t)},t.BoundingRectangle=r}));
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Columbus View (Pat. Pend.)
*
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./Transforms-66eda18c","./Matrix2-4706dd70","./RuntimeError-a977b8e0","./ComponentDatatype-438cad2a","./defaultValue-028a8a27","./GeometryAttribute-2cdece80","./GeometryAttributes-98e858da","./GeometryOffsetAttribute-116f8293","./VertexFormat-3518f543"],function(w,O,s,f,A,r,y,k,C,p){"use strict";const l=new s.Cartesian3;function c(i){i=r.defaultValue(i,r.defaultValue.EMPTY_OBJECT);const a=i.minimum,o=i.maximum;if(f.Check.typeOf.object("min",a),f.Check.typeOf.object("max",o),r.defined(i.offsetAttribute)&&i.offsetAttribute===C.GeometryOffsetAttribute.TOP)throw new f.DeveloperError("GeometryOffsetAttribute.TOP is not a supported options.offsetAttribute for this geometry.");const m=r.defaultValue(i.vertexFormat,p.VertexFormat.DEFAULT);this._minimum=s.Cartesian3.clone(a),this._maximum=s.Cartesian3.clone(o),this._vertexFormat=m,this._offsetAttribute=i.offsetAttribute,this._workerName="createBoxGeometry"}c.fromDimensions=function(i){i=r.defaultValue(i,r.defaultValue.EMPTY_OBJECT);const a=i.dimensions;f.Check.typeOf.object("dimensions",a),f.Check.typeOf.number.greaterThanOrEquals("dimensions.x",a.x,0),f.Check.typeOf.number.greaterThanOrEquals("dimensions.y",a.y,0),f.Check.typeOf.number.greaterThanOrEquals("dimensions.z",a.z,0);const o=s.Cartesian3.multiplyByScalar(a,.5,new s.Cartesian3);return new c({minimum:s.Cartesian3.negate(o,new s.Cartesian3),maximum:o,vertexFormat:i.vertexFormat,offsetAttribute:i.offsetAttribute})},c.fromAxisAlignedBoundingBox=function(i){return f.Check.typeOf.object("boundingBox",i),new c({minimum:i.minimum,maximum:i.maximum})},c.packedLength=2*s.Cartesian3.packedLength+p.VertexFormat.packedLength+1,c.pack=function(i,a,o){return f.Check.typeOf.object("value",i),f.Check.defined("array",a),o=r.defaultValue(o,0),s.Cartesian3.pack(i._minimum,a,o),s.Cartesian3.pack(i._maximum,a,o+s.Cartesian3.packedLength),p.VertexFormat.pack(i._vertexFormat,a,o+2*s.Cartesian3.packedLength),a[o+2*s.Cartesian3.packedLength+p.VertexFormat.packedLength]=r.defaultValue(i._offsetAttribute,-1),a};const h=new s.Cartesian3,b=new s.Cartesian3,z=new p.VertexFormat,x={minimum:h,maximum:b,vertexFormat:z,offsetAttribute:void 0};c.unpack=function(i,a,o){f.Check.defined("array",i),a=r.defaultValue(a,0);const m=s.Cartesian3.unpack(i,a,h),u=s.Cartesian3.unpack(i,a+s.Cartesian3.packedLength,b),n=p.VertexFormat.unpack(i,a+2*s.Cartesian3.packedLength,z),t=i[a+2*s.Cartesian3.packedLength+p.VertexFormat.packedLength];return r.defined(o)?(o._minimum=s.Cartesian3.clone(m,o._minimum),o._maximum=s.Cartesian3.clone(u,o._maximum),o._vertexFormat=p.VertexFormat.clone(n,o._vertexFormat),o._offsetAttribute=t===-1?void 0:t,o):(x.offsetAttribute=t===-1?void 0:t,new c(x))},c.createGeometry=function(i){const a=i._minimum,o=i._maximum,m=i._vertexFormat;if(s.Cartesian3.equals(a,o))return;const u=new k.GeometryAttributes;let n,t;if(m.position&&(m.st||m.normal||m.tangent||m.bitangent)){if(m.position&&(t=new Float64Array(6*4*3),t[0]=a.x,t[1]=a.y,t[2]=o.z,t[3]=o.x,t[4]=a.y,t[5]=o.z,t[6]=o.x,t[7]=o.y,t[8]=o.z,t[9]=a.x,t[10]=o.y,t[11]=o.z,t[12]=a.x,t[13]=a.y,t[14]=a.z,t[15]=o.x,t[16]=a.y,t[17]=a.z,t[18]=o.x,t[19]=o.y,t[20]=a.z,t[21]=a.x,t[22]=o.y,t[23]=a.z,t[24]=o.x,t[25]=a.y,t[26]=a.z,t[27]=o.x,t[28]=o.y,t[29]=a.z,t[30]=o.x,t[31]=o.y,t[32]=o.z,t[33]=o.x,t[34]=a.y,t[35]=o.z,t[36]=a.x,t[37]=a.y,t[38]=a.z,t[39]=a.x,t[40]=o.y,t[41]=a.z,t[42]=a.x,t[43]=o.y,t[44]=o.z,t[45]=a.x,t[46]=a.y,t[47]=o.z,t[48]=a.x,t[49]=o.y,t[50]=a.z,t[51]=o.x,t[52]=o.y,t[53]=a.z,t[54]=o.x,t[55]=o.y,t[56]=o.z,t[57]=a.x,t[58]=o.y,t[59]=o.z,t[60]=a.x,t[61]=a.y,t[62]=a.z,t[63]=o.x,t[64]=a.y,t[65]=a.z,t[66]=o.x,t[67]=a.y,t[68]=o.z,t[69]=a.x,t[70]=a.y,t[71]=o.z,u.position=new y.GeometryAttribute({componentDatatype:A.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:t})),m.normal){const e=new Float32Array(72);e[0]=0,e[1]=0,e[2]=1,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=1,e[9]=0,e[10]=0,e[11]=1,e[12]=0,e[13]=0,e[14]=-1,e[15]=0,e[16]=0,e[17]=-1,e[18]=0,e[19]=0,e[20]=-1,e[21]=0,e[22]=0,e[23]=-1,e[24]=1,e[25]=0,e[26]=0,e[27]=1,e[28]=0,e[29]=0,e[30]=1,e[31]=0,e[32]=0,e[33]=1,e[34]=0,e[35]=0,e[36]=-1,e[37]=0,e[38]=0,e[39]=-1,e[40]=0,e[41]=0,e[42]=-1,e[43]=0,e[44]=0,e[45]=-1,e[46]=0,e[47]=0,e[48]=0,e[49]=1,e[50]=0,e[51]=0,e[52]=1,e[53]=0,e[54]=0,e[55]=1,e[56]=0,e[57]=0,e[58]=1,e[59]=0,e[60]=0,e[61]=-1,e[62]=0,e[63]=0,e[64]=-1,e[65]=0,e[66]=0,e[67]=-1,e[68]=0,e[69]=0,e[70]=-1,e[71]=0,u.normal=new y.GeometryAttribute({componentDatatype:A.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:e})}if(m.st){const e=new Float32Array(48);e[0]=0,e[1]=0,e[2]=1,e[3]=0,e[4]=1,e[5]=1,e[6]=0,e[7]=1,e[8]=1,e[9]=0,e[10]=0,e[11]=0,e[12]=0,e[13]=1,e[14]=1,e[15]=1,e[16]=0,e[17]=0,e[18]=1,e[19]=0,e[20]=1,e[21]=1,e[22]=0,e[23]=1,e[24]=1,e[25]=0,e[26]=0,e[27]=0,e[28]=0,e[29]=1,e[30]=1,e[31]=1,e[32]=1,e[33]=0,e[34]=0,e[35]=0,e[36]=0,e[37]=1,e[38]=1,e[39]=1,e[40]=0,e[41]=0,e[42]=1,e[43]=0,e[44]=1,e[45]=1,e[46]=0,e[47]=1,u.st=new y.GeometryAttribute({componentDatatype:A.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:e})}if(m.tangent){const e=new Float32Array(72);e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e[6]=1,e[7]=0,e[8]=0,e[9]=1,e[10]=0,e[11]=0,e[12]=-1,e[13]=0,e[14]=0,e[15]=-1,e[16]=0,e[17]=0,e[18]=-1,e[19]=0,e[20]=0,e[21]=-1,e[22]=0,e[23]=0,e[24]=0,e[25]=1,e[26]=0,e[27]=0,e[28]=1,e[29]=0,e[30]=0,e[31]=1,e[32]=0,e[33]=0,e[34]=1,e[35]=0,e[36]=0,e[37]=-1,e[38]=0,e[39]=0,e[40]=-1,e[41]=0,e[42]=0,e[43]=-1,e[44]=0,e[45]=0,e[46]=-1,e[47]=0,e[48]=-1,e[49]=0,e[50]=0,e[51]=-1,e[52]=0,e[53]=0,e[54]=-1,e[55]=0,e[56]=0,e[57]=-1,e[58]=0,e[59]=0,e[60]=1,e[61]=0,e[62]=0,e[63]=1,e[64]=0,e[65]=0,e[66]=1,e[67]=0,e[68]=0,e[69]=1,e[70]=0,e[71]=0,u.tangent=new y.GeometryAttribute({componentDatatype:A.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:e})}if(m.bitangent){const e=new Float32Array(72);e[0]=0,e[1]=1,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=1,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=1,e[14]=0,e[15]=0,e[16]=1,e[17]=0,e[18]=0,e[19]=1,e[20]=0,e[21]=0,e[22]=1,e[23]=0,e[24]=0,e[25]=0,e[26]=1,e[27]=0,e[28]=0,e[29]=1,e[30]=0,e[31]=0,e[32]=1,e[33]=0,e[34]=0,e[35]=1,e[36]=0,e[37]=0,e[38]=1,e[39]=0,e[40]=0,e[41]=1,e[42]=0,e[43]=0,e[44]=1,e[45]=0,e[46]=0,e[47]=1,e[48]=0,e[49]=0,e[50]=1,e[51]=0,e[52]=0,e[53]=1,e[54]=0,e[55]=0,e[56]=1,e[57]=0,e[58]=0,e[59]=1,e[60]=0,e[61]=0,e[62]=1,e[63]=0,e[64]=0,e[65]=1,e[66]=0,e[67]=0,e[68]=1,e[69]=0,e[70]=0,e[71]=1,u.bitangent=new y.GeometryAttribute({componentDatatype:A.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:e})}n=new Uint16Array(6*2*3),n[0]=0,n[1]=1,n[2]=2,n[3]=0,n[4]=2,n[5]=3,n[6]=4+2,n[7]=4+1,n[8]=4+0,n[9]=4+3,n[10]=4+2,n[11]=4+0,n[12]=8+0,n[13]=8+1,n[14]=8+2,n[15]=8+0,n[16]=8+2,n[17]=8+3,n[18]=12+2,n[19]=12+1,n[20]=12+0,n[21]=12+3,n[22]=12+2,n[23]=12+0,n[24]=16+2,n[25]=16+1,n[26]=16+0,n[27]=16+3,n[28]=16+2,n[29]=16+0,n[30]=20+0,n[31]=20+1,n[32]=20+2,n[33]=20+0,n[34]=20+2,n[35]=20+3}else t=new Float64Array(8*3),t[0]=a.x,t[1]=a.y,t[2]=a.z,t[3]=o.x,t[4]=a.y,t[5]=a.z,t[6]=o.x,t[7]=o.y,t[8]=a.z,t[9]=a.x,t[10]=o.y,t[11]=a.z,t[12]=a.x,t[13]=a.y,t[14]=o.z,t[15]=o.x,t[16]=a.y,t[17]=o.z,t[18]=o.x,t[19]=o.y,t[20]=o.z,t[21]=a.x,t[22]=o.y,t[23]=o.z,u.position=new y.GeometryAttribute({componentDatatype:A.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:t}),n=new Uint16Array(6*2*3),n[0]=4,n[1]=5,n[2]=6,n[3]=4,n[4]=6,n[5]=7,n[6]=1,n[7]=0,n[8]=3,n[9]=1,n[10]=3,n[11]=2,n[12]=1,n[13]=6,n[14]=5,n[15]=1,n[16]=2,n[17]=6,n[18]=2,n[19]=3,n[20]=7,n[21]=2,n[22]=7,n[23]=6,n[24]=3,n[25]=0,n[26]=4,n[27]=3,n[28]=4,n[29]=7,n[30]=0,n[31]=1,n[32]=5,n[33]=0,n[34]=5,n[35]=4;const F=s.Cartesian3.subtract(o,a,l),_=s.Cartesian3.magnitude(F)*.5;if(r.defined(i._offsetAttribute)){const e=t.length,g=i._offsetAttribute===C.GeometryOffsetAttribute.NONE?0:1,v=new Uint8Array(e/3).fill(g);u.applyOffset=new y.GeometryAttribute({componentDatatype:A.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:v})}return new y.Geometry({attributes:u,indices:n,primitiveType:y.PrimitiveType.TRIANGLES,boundingSphere:new O.BoundingSphere(s.Cartesian3.ZERO,_),offsetAttribute:i._offsetAttribute})};let d;c.getUnitBox=function(){return r.defined(d)||(d=c.createGeometry(c.fromDimensions({dimensions:new s.Cartesian3(1,1,1),vertexFormat:p.VertexFormat.POSITION_ONLY}))),d},w.BoxGeometry=c});
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Columbus View (Pat. Pend.)
*
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./Matrix2-4706dd70","./RuntimeError-a977b8e0","./OrientedBoundingBox-1ead2ca7"],function(w,n,d,h){"use strict";const l={},z=new n.Cartesian3,x=new n.Cartesian3,B=new n.Cartesian3,P=new n.Cartesian3,b=new h.OrientedBoundingBox;l.validOutline=function(s){d.Check.defined("positions",s);const t=h.OrientedBoundingBox.fromPoints(s,b).halfAxes,o=n.Matrix3.getColumn(t,0,x),c=n.Matrix3.getColumn(t,1,B),e=n.Matrix3.getColumn(t,2,P),r=n.Cartesian3.magnitude(o),a=n.Cartesian3.magnitude(c),C=n.Cartesian3.magnitude(e);return!(r===0&&(a===0||C===0)||a===0&&C===0)},l.computeProjectTo2DArguments=function(s,i,t,o){d.Check.defined("positions",s),d.Check.defined("centerResult",i),d.Check.defined("planeAxis1Result",t),d.Check.defined("planeAxis2Result",o);const c=h.OrientedBoundingBox.fromPoints(s,b),e=c.halfAxes,r=n.Matrix3.getColumn(e,0,x),a=n.Matrix3.getColumn(e,1,B),C=n.Matrix3.getColumn(e,2,P),m=n.Cartesian3.magnitude(r),f=n.Cartesian3.magnitude(a),g=n.Cartesian3.magnitude(C),u=Math.min(m,f,g);if(m===0&&(f===0||g===0)||f===0&&g===0)return!1;let A,y;return(u===f||u===g)&&(A=r),u===m?A=a:u===g&&(y=a),(u===m||u===f)&&(y=C),n.Cartesian3.normalize(A,t),n.Cartesian3.normalize(y,o),n.Cartesian3.clone(c.center,i),!0};function p(s,i,t,o,c){const e=n.Cartesian3.subtract(s,i,z),r=n.Cartesian3.dot(t,e),a=n.Cartesian3.dot(o,e);return n.Cartesian2.fromElements(r,a,c)}l.createProjectPointsTo2DFunction=function(s,i,t){return function(o){const c=new Array(o.length);for(let e=0;e<o.length;e++)c[e]=p(o[e],s,i,t);return c}},l.createProjectPointTo2DFunction=function(s,i,t){return function(o,c){return p(o,s,i,t,c)}},w.CoplanarPolygonGeometryLibrary=l});
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......@@ -22,4 +22,4 @@
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./Matrix2-c788e106","./RuntimeError-50f3c270","./OrientedBoundingBox-917a4be5"],(function(n,t,e,r){"use strict";const i={},a=new t.Cartesian3,o=new t.Cartesian3,u=new t.Cartesian3,s=new t.Cartesian3,c=new r.OrientedBoundingBox;function C(n,e,r,i,o){const u=t.Cartesian3.subtract(n,e,a),s=t.Cartesian3.dot(r,u),c=t.Cartesian3.dot(i,u);return t.Cartesian2.fromElements(s,c,o)}i.validOutline=function(n){const e=r.OrientedBoundingBox.fromPoints(n,c).halfAxes,i=t.Matrix3.getColumn(e,0,o),a=t.Matrix3.getColumn(e,1,u),C=t.Matrix3.getColumn(e,2,s),m=t.Cartesian3.magnitude(i),g=t.Cartesian3.magnitude(a),l=t.Cartesian3.magnitude(C);return!(0===m&&(0===g||0===l)||0===g&&0===l)},i.computeProjectTo2DArguments=function(n,e,i,a){const C=r.OrientedBoundingBox.fromPoints(n,c),m=C.halfAxes,g=t.Matrix3.getColumn(m,0,o),l=t.Matrix3.getColumn(m,1,u),d=t.Matrix3.getColumn(m,2,s),f=t.Cartesian3.magnitude(g),x=t.Cartesian3.magnitude(l),B=t.Cartesian3.magnitude(d),M=Math.min(f,x,B);if(0===f&&(0===x||0===B)||0===x&&0===B)return!1;let P,w;return M!==x&&M!==B||(P=g),M===f?P=l:M===B&&(w=l),M!==f&&M!==x||(w=d),t.Cartesian3.normalize(P,i),t.Cartesian3.normalize(w,a),t.Cartesian3.clone(C.center,e),!0},i.createProjectPointsTo2DFunction=function(n,t,e){return function(r){const i=new Array(r.length);for(let a=0;a<r.length;a++)i[a]=C(r[a],n,t,e);return i}},i.createProjectPointTo2DFunction=function(n,t,e){return function(r,i){return C(r,n,t,e,i)}},n.CoplanarPolygonGeometryLibrary=i}));
define(["exports","./Matrix2-f4a72982","./RuntimeError-ed67c927","./OrientedBoundingBox-993c42bb"],(function(n,t,e,r){"use strict";const i={},a=new t.Cartesian3,o=new t.Cartesian3,u=new t.Cartesian3,s=new t.Cartesian3,c=new r.OrientedBoundingBox;function C(n,e,r,i,o){const u=t.Cartesian3.subtract(n,e,a),s=t.Cartesian3.dot(r,u),c=t.Cartesian3.dot(i,u);return t.Cartesian2.fromElements(s,c,o)}i.validOutline=function(n){const e=r.OrientedBoundingBox.fromPoints(n,c).halfAxes,i=t.Matrix3.getColumn(e,0,o),a=t.Matrix3.getColumn(e,1,u),C=t.Matrix3.getColumn(e,2,s),m=t.Cartesian3.magnitude(i),g=t.Cartesian3.magnitude(a),l=t.Cartesian3.magnitude(C);return!(0===m&&(0===g||0===l)||0===g&&0===l)},i.computeProjectTo2DArguments=function(n,e,i,a){const C=r.OrientedBoundingBox.fromPoints(n,c),m=C.halfAxes,g=t.Matrix3.getColumn(m,0,o),l=t.Matrix3.getColumn(m,1,u),d=t.Matrix3.getColumn(m,2,s),f=t.Cartesian3.magnitude(g),x=t.Cartesian3.magnitude(l),B=t.Cartesian3.magnitude(d),M=Math.min(f,x,B);if(0===f&&(0===x||0===B)||0===x&&0===B)return!1;let P,w;return M!==x&&M!==B||(P=g),M===f?P=l:M===B&&(w=l),M!==f&&M!==x||(w=d),t.Cartesian3.normalize(P,i),t.Cartesian3.normalize(w,a),t.Cartesian3.clone(C.center,e),!0},i.createProjectPointsTo2DFunction=function(n,t,e){return function(r){const i=new Array(r.length);for(let a=0;a<r.length;a++)i[a]=C(r[a],n,t,e);return i}},i.createProjectPointTo2DFunction=function(n,t,e){return function(r,i){return C(r,n,t,e,i)}},n.CoplanarPolygonGeometryLibrary=i}));
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Columbus View (Pat. Pend.)
*
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./Matrix2-4706dd70","./PolylineVolumeGeometryLibrary-c7bd0e64","./defaultValue-028a8a27","./ComponentDatatype-438cad2a","./PolylinePipeline-52ab0181","./Transforms-66eda18c"],function(_,e,m,L,U,j,b){"use strict";const q={},A=new e.Cartesian3,F=new e.Cartesian3,$=new e.Cartesian3,k=new e.Cartesian3,g=[new e.Cartesian3,new e.Cartesian3],H=new e.Cartesian3,J=new e.Cartesian3,K=new e.Cartesian3,V=new e.Cartesian3,G=new e.Cartesian3,x=new e.Cartesian3,M=new e.Cartesian3,ee=new e.Cartesian3,ne=new e.Cartesian3,se=new e.Cartesian3,W=new b.Quaternion,X=new e.Matrix3;function P(a,r,o,i,t){const C=e.Cartesian3.angleBetween(e.Cartesian3.subtract(r,a,A),e.Cartesian3.subtract(o,a,F)),d=i===m.CornerType.BEVELED?1:Math.ceil(C/U.CesiumMath.toRadians(5))+1,s=d*3,c=new Array(s);c[s-3]=o.x,c[s-2]=o.y,c[s-1]=o.z;let y;t?y=e.Matrix3.fromQuaternion(b.Quaternion.fromAxisAngle(e.Cartesian3.negate(a,A),C/d,W),X):y=e.Matrix3.fromQuaternion(b.Quaternion.fromAxisAngle(a,C/d,W),X);let n=0;r=e.Cartesian3.clone(r,A);for(let l=0;l<d;l++)r=e.Matrix3.multiplyByVector(y,r,r),c[n++]=r.x,c[n++]=r.y,c[n++]=r.z;return c}function ae(a){let r=H,o=J,i=K,t=a[1];o=e.Cartesian3.fromArray(a[1],t.length-3,o),i=e.Cartesian3.fromArray(a[0],0,i),r=e.Cartesian3.midpoint(o,i,r);const C=P(r,o,i,m.CornerType.ROUNDED,!1),d=a.length-1,s=a[d-1];t=a[d],o=e.Cartesian3.fromArray(s,s.length-3,o),i=e.Cartesian3.fromArray(t,0,i),r=e.Cartesian3.midpoint(o,i,r);const c=P(r,o,i,m.CornerType.ROUNDED,!1);return[C,c]}function Y(a,r,o,i){let t=A;return i||(r=e.Cartesian3.negate(r,r)),t=e.Cartesian3.add(a,r,t),[t.x,t.y,t.z,o.x,o.y,o.z]}function v(a,r,o,i){const t=new Array(a.length),C=new Array(a.length),d=e.Cartesian3.multiplyByScalar(r,o,A),s=e.Cartesian3.negate(d,F);let c=0,y=a.length-1;for(let n=0;n<a.length;n+=3){const l=e.Cartesian3.fromArray(a,n,$),w=e.Cartesian3.add(l,s,k);t[c++]=w.x,t[c++]=w.y,t[c++]=w.z;const f=e.Cartesian3.add(l,d,k);C[y--]=f.z,C[y--]=f.y,C[y--]=f.x}return i.push(t,C),i}q.addAttribute=function(a,r,o,i){const t=r.x,C=r.y,d=r.z;L.defined(o)&&(a[o]=t,a[o+1]=C,a[o+2]=d),L.defined(i)&&(a[i]=d,a[i-1]=C,a[i-2]=t)};const te=new e.Cartesian3,re=new e.Cartesian3;q.computePositions=function(a){const r=a.granularity,o=a.positions,i=a.ellipsoid,t=a.width/2,C=a.cornerType,d=a.saveAttributes;let s=H,c=J,y=K,n=V,l=G,w=x,f=M,u=ee,p=ne,z=se,E=[];const S=d?[]:void 0,N=d?[]:void 0;let h=o[0],T=o[1];c=e.Cartesian3.normalize(e.Cartesian3.subtract(T,h,c),c),s=i.geodeticSurfaceNormal(h,s),n=e.Cartesian3.normalize(e.Cartesian3.cross(s,c,n),n),d&&(S.push(n.x,n.y,n.z),N.push(s.x,s.y,s.z)),f=e.Cartesian3.clone(h,f),h=T,y=e.Cartesian3.negate(c,y);let B;const D=[];let Q;const oe=o.length;for(Q=1;Q<oe-1;Q++){s=i.geodeticSurfaceNormal(h,s),T=o[Q+1],c=e.Cartesian3.normalize(e.Cartesian3.subtract(T,h,c),c),l=e.Cartesian3.normalize(e.Cartesian3.add(c,y,l),l);const R=e.Cartesian3.multiplyByScalar(s,e.Cartesian3.dot(c,s),te);e.Cartesian3.subtract(c,R,R),e.Cartesian3.normalize(R,R);const O=e.Cartesian3.multiplyByScalar(s,e.Cartesian3.dot(y,s),re);if(e.Cartesian3.subtract(y,O,O),e.Cartesian3.normalize(O,O),!U.CesiumMath.equalsEpsilon(Math.abs(e.Cartesian3.dot(R,O)),1,U.CesiumMath.EPSILON7)){l=e.Cartesian3.cross(l,s,l),l=e.Cartesian3.cross(s,l,l),l=e.Cartesian3.normalize(l,l);const ce=t/Math.max(.25,e.Cartesian3.magnitude(e.Cartesian3.cross(l,y,A))),I=m.PolylineVolumeGeometryLibrary.angleIsGreaterThanPi(c,y,h,i);l=e.Cartesian3.multiplyByScalar(l,ce,l),I?(u=e.Cartesian3.add(h,l,u),z=e.Cartesian3.add(u,e.Cartesian3.multiplyByScalar(n,t,z),z),p=e.Cartesian3.add(u,e.Cartesian3.multiplyByScalar(n,t*2,p),p),g[0]=e.Cartesian3.clone(f,g[0]),g[1]=e.Cartesian3.clone(z,g[1]),B=j.PolylinePipeline.generateArc({positions:g,granularity:r,ellipsoid:i}),E=v(B,n,t,E),d&&(S.push(n.x,n.y,n.z),N.push(s.x,s.y,s.z)),w=e.Cartesian3.clone(p,w),n=e.Cartesian3.normalize(e.Cartesian3.cross(s,c,n),n),p=e.Cartesian3.add(u,e.Cartesian3.multiplyByScalar(n,t*2,p),p),f=e.Cartesian3.add(u,e.Cartesian3.multiplyByScalar(n,t,f),f),C===m.CornerType.ROUNDED||C===m.CornerType.BEVELED?D.push({leftPositions:P(u,w,p,C,I)}):D.push({leftPositions:Y(h,e.Cartesian3.negate(l,l),p,I)})):(p=e.Cartesian3.add(h,l,p),z=e.Cartesian3.add(p,e.Cartesian3.negate(e.Cartesian3.multiplyByScalar(n,t,z),z),z),u=e.Cartesian3.add(p,e.Cartesian3.negate(e.Cartesian3.multiplyByScalar(n,t*2,u),u),u),g[0]=e.Cartesian3.clone(f,g[0]),g[1]=e.Cartesian3.clone(z,g[1]),B=j.PolylinePipeline.generateArc({positions:g,granularity:r,ellipsoid:i}),E=v(B,n,t,E),d&&(S.push(n.x,n.y,n.z),N.push(s.x,s.y,s.z)),w=e.Cartesian3.clone(u,w),n=e.Cartesian3.normalize(e.Cartesian3.cross(s,c,n),n),u=e.Cartesian3.add(p,e.Cartesian3.negate(e.Cartesian3.multiplyByScalar(n,t*2,u),u),u),f=e.Cartesian3.add(p,e.Cartesian3.negate(e.Cartesian3.multiplyByScalar(n,t,f),f),f),C===m.CornerType.ROUNDED||C===m.CornerType.BEVELED?D.push({rightPositions:P(p,w,u,C,I)}):D.push({rightPositions:Y(h,l,u,I)})),y=e.Cartesian3.negate(c,y)}h=T}s=i.geodeticSurfaceNormal(h,s),g[0]=e.Cartesian3.clone(f,g[0]),g[1]=e.Cartesian3.clone(h,g[1]),B=j.PolylinePipeline.generateArc({positions:g,granularity:r,ellipsoid:i}),E=v(B,n,t,E),d&&(S.push(n.x,n.y,n.z),N.push(s.x,s.y,s.z));let Z;return C===m.CornerType.ROUNDED&&(Z=ae(E)),{positions:E,corners:D,lefts:S,normals:N,endPositions:Z}},_.CorridorGeometryLibrary=q});
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Columbus View (Pat. Pend.)
*
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./Transforms-66eda18c","./Matrix2-4706dd70","./ComponentDatatype-438cad2a","./CylinderGeometryLibrary-37f2ca9d","./defaultValue-028a8a27","./RuntimeError-a977b8e0","./GeometryAttribute-2cdece80","./GeometryAttributes-98e858da","./GeometryOffsetAttribute-116f8293","./IndexDatatype-dfa09980","./VertexFormat-3518f543"],function(j,J,d,R,W,c,v,D,H,G,K,_){"use strict";const E=new d.Cartesian2,Q=new d.Cartesian3,X=new d.Cartesian3,$=new d.Cartesian3,M=new d.Cartesian3;function C(t){t=c.defaultValue(t,c.defaultValue.EMPTY_OBJECT);const o=t.length,e=t.topRadius,w=t.bottomRadius,n=c.defaultValue(t.vertexFormat,_.VertexFormat.DEFAULT),r=c.defaultValue(t.slices,128);if(!c.defined(o))throw new v.DeveloperError("options.length must be defined.");if(!c.defined(e))throw new v.DeveloperError("options.topRadius must be defined.");if(!c.defined(w))throw new v.DeveloperError("options.bottomRadius must be defined.");if(r<3)throw new v.DeveloperError("options.slices must be greater than or equal to 3.");if(c.defined(t.offsetAttribute)&&t.offsetAttribute===G.GeometryOffsetAttribute.TOP)throw new v.DeveloperError("GeometryOffsetAttribute.TOP is not a supported options.offsetAttribute for this geometry.");this._length=o,this._topRadius=e,this._bottomRadius=w,this._vertexFormat=_.VertexFormat.clone(n),this._slices=r,this._offsetAttribute=t.offsetAttribute,this._workerName="createCylinderGeometry"}C.packedLength=_.VertexFormat.packedLength+5,C.pack=function(t,o,e){if(!c.defined(t))throw new v.DeveloperError("value is required");if(!c.defined(o))throw new v.DeveloperError("array is required");return e=c.defaultValue(e,0),_.VertexFormat.pack(t._vertexFormat,o,e),e+=_.VertexFormat.packedLength,o[e++]=t._length,o[e++]=t._topRadius,o[e++]=t._bottomRadius,o[e++]=t._slices,o[e]=c.defaultValue(t._offsetAttribute,-1),o};const x=new _.VertexFormat,S={vertexFormat:x,length:void 0,topRadius:void 0,bottomRadius:void 0,slices:void 0,offsetAttribute:void 0};C.unpack=function(t,o,e){if(!c.defined(t))throw new v.DeveloperError("array is required");o=c.defaultValue(o,0);const w=_.VertexFormat.unpack(t,o,x);o+=_.VertexFormat.packedLength;const n=t[o++],r=t[o++],b=t[o++],P=t[o++],A=t[o];return c.defined(e)?(e._vertexFormat=_.VertexFormat.clone(w,e._vertexFormat),e._length=n,e._topRadius=r,e._bottomRadius=b,e._slices=P,e._offsetAttribute=A===-1?void 0:A,e):(S.length=n,S.topRadius=r,S.bottomRadius=b,S.slices=P,S.offsetAttribute=A===-1?void 0:A,new C(S))},C.createGeometry=function(t){let o=t._length;const e=t._topRadius,w=t._bottomRadius,n=t._vertexFormat,r=t._slices;if(o<=0||e<0||w<0||e===0&&w===0)return;const b=r+r,P=r+b,A=b+b,k=W.CylinderGeometryLibrary.computePositions(o,e,w,r,!0),z=n.st?new Float32Array(A*2):void 0,m=n.normal?new Float32Array(A*3):void 0,u=n.tangent?new Float32Array(A*3):void 0,p=n.bitangent?new Float32Array(A*3):void 0;let i;const U=n.normal||n.tangent||n.bitangent;if(U){const O=n.tangent||n.bitangent;let f=0,h=0,l=0;const B=Math.atan2(w-e,o),g=Q;g.z=Math.sin(B);const Y=Math.cos(B);let y=$,F=X;for(i=0;i<r;i++){const Z=i/r*R.CesiumMath.TWO_PI,tt=Y*Math.cos(Z),et=Y*Math.sin(Z);U&&(g.x=tt,g.y=et,O&&(y=d.Cartesian3.normalize(d.Cartesian3.cross(d.Cartesian3.UNIT_Z,g,y),y)),n.normal&&(m[f++]=g.x,m[f++]=g.y,m[f++]=g.z,m[f++]=g.x,m[f++]=g.y,m[f++]=g.z),n.tangent&&(u[h++]=y.x,u[h++]=y.y,u[h++]=y.z,u[h++]=y.x,u[h++]=y.y,u[h++]=y.z),n.bitangent&&(F=d.Cartesian3.normalize(d.Cartesian3.cross(g,y,F),F),p[l++]=F.x,p[l++]=F.y,p[l++]=F.z,p[l++]=F.x,p[l++]=F.y,p[l++]=F.z))}for(i=0;i<r;i++)n.normal&&(m[f++]=0,m[f++]=0,m[f++]=-1),n.tangent&&(u[h++]=1,u[h++]=0,u[h++]=0),n.bitangent&&(p[l++]=0,p[l++]=-1,p[l++]=0);for(i=0;i<r;i++)n.normal&&(m[f++]=0,m[f++]=0,m[f++]=1),n.tangent&&(u[h++]=1,u[h++]=0,u[h++]=0),n.bitangent&&(p[l++]=0,p[l++]=1,p[l++]=0)}const I=12*r-12,s=K.IndexDatatype.createTypedArray(A,I);let a=0,T=0;for(i=0;i<r-1;i++)s[a++]=T,s[a++]=T+2,s[a++]=T+3,s[a++]=T,s[a++]=T+3,s[a++]=T+1,T+=2;for(s[a++]=b-2,s[a++]=0,s[a++]=1,s[a++]=b-2,s[a++]=1,s[a++]=b-1,i=1;i<r-1;i++)s[a++]=b+i+1,s[a++]=b+i,s[a++]=b;for(i=1;i<r-1;i++)s[a++]=P,s[a++]=P+i,s[a++]=P+i+1;let q=0;if(n.st){const O=Math.max(e,w);for(i=0;i<A;i++){const f=d.Cartesian3.fromArray(k,i*3,M);z[q++]=(f.x+O)/(2*O),z[q++]=(f.y+O)/(2*O)}}const L=new H.GeometryAttributes;n.position&&(L.position=new D.GeometryAttribute({componentDatatype:R.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:k})),n.normal&&(L.normal=new D.GeometryAttribute({componentDatatype:R.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:m})),n.tangent&&(L.tangent=new D.GeometryAttribute({componentDatatype:R.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:u})),n.bitangent&&(L.bitangent=new D.GeometryAttribute({componentDatatype:R.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:p})),n.st&&(L.st=new D.GeometryAttribute({componentDatatype:R.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:z})),E.x=o*.5,E.y=Math.max(w,e);const V=new J.BoundingSphere(d.Cartesian3.ZERO,d.Cartesian2.magnitude(E));if(c.defined(t._offsetAttribute)){o=k.length;const O=t._offsetAttribute===G.GeometryOffsetAttribute.NONE?0:1,f=new Uint8Array(o/3).fill(O);L.applyOffset=new D.GeometryAttribute({componentDatatype:R.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:f})}return new D.Geometry({attributes:L,indices:s,primitiveType:D.PrimitiveType.TRIANGLES,boundingSphere:V,offsetAttribute:t._offsetAttribute})};let N;C.getUnitCylinder=function(){return c.defined(N)||(N=C.createGeometry(new C({topRadius:1,bottomRadius:1,length:1,vertexFormat:_.VertexFormat.POSITION_ONLY}))),N},j.CylinderGeometry=C});
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......@@ -22,4 +22,4 @@
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./Transforms-fae4cdf7","./Matrix2-c788e106","./ComponentDatatype-94a172c0","./CylinderGeometryLibrary-8ab6de01","./defaultValue-77c08f32","./RuntimeError-50f3c270","./GeometryAttribute-4daab906","./GeometryAttributes-a490dcf1","./GeometryOffsetAttribute-62f885db","./IndexDatatype-33d13dff","./VertexFormat-a34558d6"],(function(t,e,n,a,o,r,i,s,u,m,c,l){"use strict";const d=new n.Cartesian2,f=new n.Cartesian3,p=new n.Cartesian3,y=new n.Cartesian3,b=new n.Cartesian3;function A(t){const e=(t=r.defaultValue(t,r.defaultValue.EMPTY_OBJECT)).length,n=t.topRadius,a=t.bottomRadius,o=r.defaultValue(t.vertexFormat,l.VertexFormat.DEFAULT),i=r.defaultValue(t.slices,128);this._length=e,this._topRadius=n,this._bottomRadius=a,this._vertexFormat=l.VertexFormat.clone(o),this._slices=i,this._offsetAttribute=t.offsetAttribute,this._workerName="createCylinderGeometry"}A.packedLength=l.VertexFormat.packedLength+5,A.pack=function(t,e,n){return n=r.defaultValue(n,0),l.VertexFormat.pack(t._vertexFormat,e,n),n+=l.VertexFormat.packedLength,e[n++]=t._length,e[n++]=t._topRadius,e[n++]=t._bottomRadius,e[n++]=t._slices,e[n]=r.defaultValue(t._offsetAttribute,-1),e};const x=new l.VertexFormat,g={vertexFormat:x,length:void 0,topRadius:void 0,bottomRadius:void 0,slices:void 0,offsetAttribute:void 0};let _;A.unpack=function(t,e,n){e=r.defaultValue(e,0);const a=l.VertexFormat.unpack(t,e,x);e+=l.VertexFormat.packedLength;const o=t[e++],i=t[e++],s=t[e++],u=t[e++],m=t[e];return r.defined(n)?(n._vertexFormat=l.VertexFormat.clone(a,n._vertexFormat),n._length=o,n._topRadius=i,n._bottomRadius=s,n._slices=u,n._offsetAttribute=-1===m?void 0:m,n):(g.length=o,g.topRadius=i,g.bottomRadius=s,g.slices=u,g.offsetAttribute=-1===m?void 0:m,new A(g))},A.createGeometry=function(t){let i=t._length;const l=t._topRadius,A=t._bottomRadius,x=t._vertexFormat,g=t._slices;if(i<=0||l<0||A<0||0===l&&0===A)return;const _=g+g,h=g+_,F=_+_,v=o.CylinderGeometryLibrary.computePositions(i,l,A,g,!0),C=x.st?new Float32Array(2*F):void 0,w=x.normal?new Float32Array(3*F):void 0,G=x.tangent?new Float32Array(3*F):void 0,R=x.bitangent?new Float32Array(3*F):void 0;let V;const D=x.normal||x.tangent||x.bitangent;if(D){const t=x.tangent||x.bitangent;let e=0,o=0,r=0;const s=Math.atan2(A-l,i),u=f;u.z=Math.sin(s);const m=Math.cos(s);let c=y,d=p;for(V=0;V<g;V++){const i=V/g*a.CesiumMath.TWO_PI,s=m*Math.cos(i),l=m*Math.sin(i);D&&(u.x=s,u.y=l,t&&(c=n.Cartesian3.normalize(n.Cartesian3.cross(n.Cartesian3.UNIT_Z,u,c),c)),x.normal&&(w[e++]=u.x,w[e++]=u.y,w[e++]=u.z,w[e++]=u.x,w[e++]=u.y,w[e++]=u.z),x.tangent&&(G[o++]=c.x,G[o++]=c.y,G[o++]=c.z,G[o++]=c.x,G[o++]=c.y,G[o++]=c.z),x.bitangent&&(d=n.Cartesian3.normalize(n.Cartesian3.cross(u,c,d),d),R[r++]=d.x,R[r++]=d.y,R[r++]=d.z,R[r++]=d.x,R[r++]=d.y,R[r++]=d.z))}for(V=0;V<g;V++)x.normal&&(w[e++]=0,w[e++]=0,w[e++]=-1),x.tangent&&(G[o++]=1,G[o++]=0,G[o++]=0),x.bitangent&&(R[r++]=0,R[r++]=-1,R[r++]=0);for(V=0;V<g;V++)x.normal&&(w[e++]=0,w[e++]=0,w[e++]=1),x.tangent&&(G[o++]=1,G[o++]=0,G[o++]=0),x.bitangent&&(R[r++]=0,R[r++]=1,R[r++]=0)}const T=12*g-12,O=c.IndexDatatype.createTypedArray(F,T);let L=0,P=0;for(V=0;V<g-1;V++)O[L++]=P,O[L++]=P+2,O[L++]=P+3,O[L++]=P,O[L++]=P+3,O[L++]=P+1,P+=2;for(O[L++]=_-2,O[L++]=0,O[L++]=1,O[L++]=_-2,O[L++]=1,O[L++]=_-1,V=1;V<g-1;V++)O[L++]=_+V+1,O[L++]=_+V,O[L++]=_;for(V=1;V<g-1;V++)O[L++]=h,O[L++]=h+V,O[L++]=h+V+1;let E=0;if(x.st){const t=Math.max(l,A);for(V=0;V<F;V++){const e=n.Cartesian3.fromArray(v,3*V,b);C[E++]=(e.x+t)/(2*t),C[E++]=(e.y+t)/(2*t)}}const M=new u.GeometryAttributes;x.position&&(M.position=new s.GeometryAttribute({componentDatatype:a.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:v})),x.normal&&(M.normal=new s.GeometryAttribute({componentDatatype:a.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:w})),x.tangent&&(M.tangent=new s.GeometryAttribute({componentDatatype:a.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:G})),x.bitangent&&(M.bitangent=new s.GeometryAttribute({componentDatatype:a.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:R})),x.st&&(M.st=new s.GeometryAttribute({componentDatatype:a.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:C})),d.x=.5*i,d.y=Math.max(A,l);const k=new e.BoundingSphere(n.Cartesian3.ZERO,n.Cartesian2.magnitude(d));if(r.defined(t._offsetAttribute)){i=v.length;const e=t._offsetAttribute===m.GeometryOffsetAttribute.NONE?0:1,n=new Uint8Array(i/3).fill(e);M.applyOffset=new s.GeometryAttribute({componentDatatype:a.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:n})}return new s.Geometry({attributes:M,indices:O,primitiveType:s.PrimitiveType.TRIANGLES,boundingSphere:k,offsetAttribute:t._offsetAttribute})},A.getUnitCylinder=function(){return r.defined(_)||(_=A.createGeometry(new A({topRadius:1,bottomRadius:1,length:1,vertexFormat:l.VertexFormat.POSITION_ONLY}))),_},t.CylinderGeometry=A}));
define(["exports","./Transforms-e2b46a6c","./Matrix2-f4a72982","./ComponentDatatype-cb7120fd","./CylinderGeometryLibrary-eb8570d0","./defaultValue-ff4e651f","./RuntimeError-ed67c927","./GeometryAttribute-7b85a4f4","./GeometryAttributes-9da88d6e","./GeometryOffsetAttribute-a6457b88","./IndexDatatype-5062f28c","./VertexFormat-a6a7080e"],(function(t,e,n,a,o,r,i,s,u,m,c,l){"use strict";const f=new n.Cartesian2,d=new n.Cartesian3,p=new n.Cartesian3,y=new n.Cartesian3,b=new n.Cartesian3;function A(t){const e=(t=r.defaultValue(t,r.defaultValue.EMPTY_OBJECT)).length,n=t.topRadius,a=t.bottomRadius,o=r.defaultValue(t.vertexFormat,l.VertexFormat.DEFAULT),i=r.defaultValue(t.slices,128);this._length=e,this._topRadius=n,this._bottomRadius=a,this._vertexFormat=l.VertexFormat.clone(o),this._slices=i,this._offsetAttribute=t.offsetAttribute,this._workerName="createCylinderGeometry"}A.packedLength=l.VertexFormat.packedLength+5,A.pack=function(t,e,n){return n=r.defaultValue(n,0),l.VertexFormat.pack(t._vertexFormat,e,n),n+=l.VertexFormat.packedLength,e[n++]=t._length,e[n++]=t._topRadius,e[n++]=t._bottomRadius,e[n++]=t._slices,e[n]=r.defaultValue(t._offsetAttribute,-1),e};const x=new l.VertexFormat,g={vertexFormat:x,length:void 0,topRadius:void 0,bottomRadius:void 0,slices:void 0,offsetAttribute:void 0};let _;A.unpack=function(t,e,n){e=r.defaultValue(e,0);const a=l.VertexFormat.unpack(t,e,x);e+=l.VertexFormat.packedLength;const o=t[e++],i=t[e++],s=t[e++],u=t[e++],m=t[e];return r.defined(n)?(n._vertexFormat=l.VertexFormat.clone(a,n._vertexFormat),n._length=o,n._topRadius=i,n._bottomRadius=s,n._slices=u,n._offsetAttribute=-1===m?void 0:m,n):(g.length=o,g.topRadius=i,g.bottomRadius=s,g.slices=u,g.offsetAttribute=-1===m?void 0:m,new A(g))},A.createGeometry=function(t){let i=t._length;const l=t._topRadius,A=t._bottomRadius,x=t._vertexFormat,g=t._slices;if(i<=0||l<0||A<0||0===l&&0===A)return;const _=g+g,h=g+_,F=_+_,v=o.CylinderGeometryLibrary.computePositions(i,l,A,g,!0),C=x.st?new Float32Array(2*F):void 0,w=x.normal?new Float32Array(3*F):void 0,G=x.tangent?new Float32Array(3*F):void 0,R=x.bitangent?new Float32Array(3*F):void 0;let V;const D=x.normal||x.tangent||x.bitangent;if(D){const t=x.tangent||x.bitangent;let e=0,o=0,r=0;const s=Math.atan2(A-l,i),u=d;u.z=Math.sin(s);const m=Math.cos(s);let c=y,f=p;for(V=0;V<g;V++){const i=V/g*a.CesiumMath.TWO_PI,s=m*Math.cos(i),l=m*Math.sin(i);D&&(u.x=s,u.y=l,t&&(c=n.Cartesian3.normalize(n.Cartesian3.cross(n.Cartesian3.UNIT_Z,u,c),c)),x.normal&&(w[e++]=u.x,w[e++]=u.y,w[e++]=u.z,w[e++]=u.x,w[e++]=u.y,w[e++]=u.z),x.tangent&&(G[o++]=c.x,G[o++]=c.y,G[o++]=c.z,G[o++]=c.x,G[o++]=c.y,G[o++]=c.z),x.bitangent&&(f=n.Cartesian3.normalize(n.Cartesian3.cross(u,c,f),f),R[r++]=f.x,R[r++]=f.y,R[r++]=f.z,R[r++]=f.x,R[r++]=f.y,R[r++]=f.z))}for(V=0;V<g;V++)x.normal&&(w[e++]=0,w[e++]=0,w[e++]=-1),x.tangent&&(G[o++]=1,G[o++]=0,G[o++]=0),x.bitangent&&(R[r++]=0,R[r++]=-1,R[r++]=0);for(V=0;V<g;V++)x.normal&&(w[e++]=0,w[e++]=0,w[e++]=1),x.tangent&&(G[o++]=1,G[o++]=0,G[o++]=0),x.bitangent&&(R[r++]=0,R[r++]=1,R[r++]=0)}const T=12*g-12,O=c.IndexDatatype.createTypedArray(F,T);let L=0,P=0;for(V=0;V<g-1;V++)O[L++]=P,O[L++]=P+2,O[L++]=P+3,O[L++]=P,O[L++]=P+3,O[L++]=P+1,P+=2;for(O[L++]=_-2,O[L++]=0,O[L++]=1,O[L++]=_-2,O[L++]=1,O[L++]=_-1,V=1;V<g-1;V++)O[L++]=_+V+1,O[L++]=_+V,O[L++]=_;for(V=1;V<g-1;V++)O[L++]=h,O[L++]=h+V,O[L++]=h+V+1;let E=0;if(x.st){const t=Math.max(l,A);for(V=0;V<F;V++){const e=n.Cartesian3.fromArray(v,3*V,b);C[E++]=(e.x+t)/(2*t),C[E++]=(e.y+t)/(2*t)}}const M=new u.GeometryAttributes;x.position&&(M.position=new s.GeometryAttribute({componentDatatype:a.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:v})),x.normal&&(M.normal=new s.GeometryAttribute({componentDatatype:a.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:w})),x.tangent&&(M.tangent=new s.GeometryAttribute({componentDatatype:a.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:G})),x.bitangent&&(M.bitangent=new s.GeometryAttribute({componentDatatype:a.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:R})),x.st&&(M.st=new s.GeometryAttribute({componentDatatype:a.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:C})),f.x=.5*i,f.y=Math.max(A,l);const k=new e.BoundingSphere(n.Cartesian3.ZERO,n.Cartesian2.magnitude(f));if(r.defined(t._offsetAttribute)){i=v.length;const e=t._offsetAttribute===m.GeometryOffsetAttribute.NONE?0:1,n=new Uint8Array(i/3).fill(e);M.applyOffset=new s.GeometryAttribute({componentDatatype:a.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:n})}return new s.Geometry({attributes:M,indices:O,primitiveType:s.PrimitiveType.TRIANGLES,boundingSphere:k,offsetAttribute:t._offsetAttribute})},A.getUnitCylinder=function(){return r.defined(_)||(_=A.createGeometry(new A({topRadius:1,bottomRadius:1,length:1,vertexFormat:l.VertexFormat.POSITION_ONLY}))),_},t.CylinderGeometry=A}));
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......@@ -23,4 +23,4 @@
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./ComponentDatatype-98788316"],function(w,G){"use strict";const m={};m.computePositions=function(I,p,b,n,c){const i=I*.5,f=-i,s=n+n,L=c?2*s:s,t=new Float64Array(L*3);let r,e=0,o=0;const y=c?s*3:0,a=c?(s+n)*3:n*3;for(r=0;r<n;r++){const u=r/n*G.CesiumMath.TWO_PI,x=Math.cos(u),C=Math.sin(u),d=x*b,h=C*b,M=x*p,O=C*p;t[o+y]=d,t[o+y+1]=h,t[o+y+2]=f,t[o+a]=M,t[o+a+1]=O,t[o+a+2]=i,o+=3,c&&(t[e++]=d,t[e++]=h,t[e++]=f,t[e++]=M,t[e++]=O,t[e++]=i)}return t},w.CylinderGeometryLibrary=m});
define(["exports","./ComponentDatatype-438cad2a"],function(w,G){"use strict";const m={};m.computePositions=function(I,p,b,n,c){const a=I*.5,f=-a,s=n+n,L=c?2*s:s,t=new Float64Array(L*3);let r,e=0,o=0;const i=c?s*3:0,y=c?(s+n)*3:n*3;for(r=0;r<n;r++){const d=r/n*G.CesiumMath.TWO_PI,u=Math.cos(d),x=Math.sin(d),C=u*b,h=x*b,M=u*p,O=x*p;t[o+i]=C,t[o+i+1]=h,t[o+i+2]=f,t[o+y]=M,t[o+y+1]=O,t[o+y+2]=a,o+=3,c&&(t[e++]=C,t[e++]=h,t[e++]=f,t[e++]=M,t[e++]=O,t[e++]=a)}return t},w.CylinderGeometryLibrary=m});
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......@@ -22,4 +22,4 @@
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./ComponentDatatype-94a172c0"],(function(t,n){"use strict";const o={computePositions:function(t,o,e,s,r){const c=.5*t,i=-c,a=s+s,u=new Float64Array(3*(r?2*a:a));let y,f=0,m=0;const p=r?3*a:0,h=r?3*(a+s):3*s;for(y=0;y<s;y++){const t=y/s*n.CesiumMath.TWO_PI,a=Math.cos(t),l=Math.sin(t),C=a*e,M=l*e,d=a*o,P=l*o;u[m+p]=C,u[m+p+1]=M,u[m+p+2]=i,u[m+h]=d,u[m+h+1]=P,u[m+h+2]=c,m+=3,r&&(u[f++]=C,u[f++]=M,u[f++]=i,u[f++]=d,u[f++]=P,u[f++]=c)}return u}};t.CylinderGeometryLibrary=o}));
define(["exports","./ComponentDatatype-cb7120fd"],(function(t,n){"use strict";const o={computePositions:function(t,o,e,s,r){const c=.5*t,i=-c,a=s+s,u=new Float64Array(3*(r?2*a:a));let f,y=0,m=0;const p=r?3*a:0,d=r?3*(a+s):3*s;for(f=0;f<s;f++){const t=f/s*n.CesiumMath.TWO_PI,a=Math.cos(t),h=Math.sin(t),l=a*e,C=h*e,M=a*o,b=h*o;u[m+p]=l,u[m+p+1]=C,u[m+p+2]=i,u[m+d]=M,u[m+d+1]=b,u[m+d+2]=c,m+=3,r&&(u[y++]=l,u[y++]=C,u[y++]=i,u[y++]=M,u[y++]=b,u[y++]=c)}return u}};t.CylinderGeometryLibrary=o}));
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......@@ -22,4 +22,4 @@
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./Matrix2-c788e106","./ComponentDatatype-94a172c0","./Transforms-fae4cdf7"],(function(t,a,e,n){"use strict";const i={},r=new a.Cartesian3,s=new a.Cartesian3,o=new n.Quaternion,l=new a.Matrix3;function c(t,e,i,c,C,y,u,m,h,x){const M=t+e;a.Cartesian3.multiplyByScalar(c,Math.cos(M),r),a.Cartesian3.multiplyByScalar(i,Math.sin(M),s),a.Cartesian3.add(r,s,r);let f=Math.cos(t);f*=f;let z=Math.sin(t);z*=z;const _=y/Math.sqrt(u*f+C*z)/m;return n.Quaternion.fromAxisAngle(r,_,o),a.Matrix3.fromQuaternion(o,l),a.Matrix3.multiplyByVector(l,h,x),a.Cartesian3.normalize(x,x),a.Cartesian3.multiplyByScalar(x,m,x),x}const C=new a.Cartesian3,y=new a.Cartesian3,u=new a.Cartesian3,m=new a.Cartesian3;i.raisePositionsToHeight=function(t,e,n){const i=e.ellipsoid,r=e.height,s=e.extrudedHeight,o=n?t.length/3*2:t.length/3,l=new Float64Array(3*o),c=t.length,h=n?c:0;for(let e=0;e<c;e+=3){const o=e+1,c=e+2,x=a.Cartesian3.fromArray(t,e,C);i.scaleToGeodeticSurface(x,x);const M=a.Cartesian3.clone(x,y),f=i.geodeticSurfaceNormal(x,m),z=a.Cartesian3.multiplyByScalar(f,r,u);a.Cartesian3.add(x,z,x),n&&(a.Cartesian3.multiplyByScalar(f,s,z),a.Cartesian3.add(M,z,M),l[e+h]=M.x,l[o+h]=M.y,l[c+h]=M.z),l[e]=x.x,l[o]=x.y,l[c]=x.z}return l};const h=new a.Cartesian3,x=new a.Cartesian3,M=new a.Cartesian3;i.computeEllipsePositions=function(t,n,i){const r=t.semiMinorAxis,s=t.semiMajorAxis,o=t.rotation,l=t.center,m=8*t.granularity,f=r*r,z=s*s,_=s*r,d=a.Cartesian3.magnitude(l),p=a.Cartesian3.normalize(l,h);let O=a.Cartesian3.cross(a.Cartesian3.UNIT_Z,l,x);O=a.Cartesian3.normalize(O,O);const w=a.Cartesian3.cross(p,O,M);let P=1+Math.ceil(e.CesiumMath.PI_OVER_TWO/m);const T=e.CesiumMath.PI_OVER_TWO/(P-1);let I=e.CesiumMath.PI_OVER_TWO-P*T;I<0&&(P-=Math.ceil(Math.abs(I)/T));const g=n?new Array(3*(P*(P+2)*2)):void 0;let E=0,V=C,A=y;const R=4*P*3;let W=R-1,S=0;const B=i?new Array(R):void 0;let Q,b,v,G,H;for(I=e.CesiumMath.PI_OVER_TWO,V=c(I,o,w,O,f,_,z,d,p,V),n&&(g[E++]=V.x,g[E++]=V.y,g[E++]=V.z),i&&(B[W--]=V.z,B[W--]=V.y,B[W--]=V.x),I=e.CesiumMath.PI_OVER_TWO-T,Q=1;Q<P+1;++Q){if(V=c(I,o,w,O,f,_,z,d,p,V),A=c(Math.PI-I,o,w,O,f,_,z,d,p,A),n){for(g[E++]=V.x,g[E++]=V.y,g[E++]=V.z,v=2*Q+2,b=1;b<v-1;++b)G=b/(v-1),H=a.Cartesian3.lerp(V,A,G,u),g[E++]=H.x,g[E++]=H.y,g[E++]=H.z;g[E++]=A.x,g[E++]=A.y,g[E++]=A.z}i&&(B[W--]=V.z,B[W--]=V.y,B[W--]=V.x,B[S++]=A.x,B[S++]=A.y,B[S++]=A.z),I=e.CesiumMath.PI_OVER_TWO-(Q+1)*T}for(Q=P;Q>1;--Q){if(I=e.CesiumMath.PI_OVER_TWO-(Q-1)*T,V=c(-I,o,w,O,f,_,z,d,p,V),A=c(I+Math.PI,o,w,O,f,_,z,d,p,A),n){for(g[E++]=V.x,g[E++]=V.y,g[E++]=V.z,v=2*(Q-1)+2,b=1;b<v-1;++b)G=b/(v-1),H=a.Cartesian3.lerp(V,A,G,u),g[E++]=H.x,g[E++]=H.y,g[E++]=H.z;g[E++]=A.x,g[E++]=A.y,g[E++]=A.z}i&&(B[W--]=V.z,B[W--]=V.y,B[W--]=V.x,B[S++]=A.x,B[S++]=A.y,B[S++]=A.z)}I=e.CesiumMath.PI_OVER_TWO,V=c(-I,o,w,O,f,_,z,d,p,V);const N={};return n&&(g[E++]=V.x,g[E++]=V.y,g[E++]=V.z,N.positions=g,N.numPts=P),i&&(B[W--]=V.z,B[W--]=V.y,B[W--]=V.x,N.outerPositions=B),N},t.EllipseGeometryLibrary=i}));
define(["exports","./Matrix2-f4a72982","./ComponentDatatype-cb7120fd","./Transforms-e2b46a6c"],(function(t,a,e,n){"use strict";const i={},r=new a.Cartesian3,s=new a.Cartesian3,o=new n.Quaternion,l=new a.Matrix3;function c(t,e,i,c,C,y,u,m,h,x){const M=t+e;a.Cartesian3.multiplyByScalar(c,Math.cos(M),r),a.Cartesian3.multiplyByScalar(i,Math.sin(M),s),a.Cartesian3.add(r,s,r);let f=Math.cos(t);f*=f;let z=Math.sin(t);z*=z;const _=y/Math.sqrt(u*f+C*z)/m;return n.Quaternion.fromAxisAngle(r,_,o),a.Matrix3.fromQuaternion(o,l),a.Matrix3.multiplyByVector(l,h,x),a.Cartesian3.normalize(x,x),a.Cartesian3.multiplyByScalar(x,m,x),x}const C=new a.Cartesian3,y=new a.Cartesian3,u=new a.Cartesian3,m=new a.Cartesian3;i.raisePositionsToHeight=function(t,e,n){const i=e.ellipsoid,r=e.height,s=e.extrudedHeight,o=n?t.length/3*2:t.length/3,l=new Float64Array(3*o),c=t.length,h=n?c:0;for(let e=0;e<c;e+=3){const o=e+1,c=e+2,x=a.Cartesian3.fromArray(t,e,C);i.scaleToGeodeticSurface(x,x);const M=a.Cartesian3.clone(x,y),f=i.geodeticSurfaceNormal(x,m),z=a.Cartesian3.multiplyByScalar(f,r,u);a.Cartesian3.add(x,z,x),n&&(a.Cartesian3.multiplyByScalar(f,s,z),a.Cartesian3.add(M,z,M),l[e+h]=M.x,l[o+h]=M.y,l[c+h]=M.z),l[e]=x.x,l[o]=x.y,l[c]=x.z}return l};const h=new a.Cartesian3,x=new a.Cartesian3,M=new a.Cartesian3;i.computeEllipsePositions=function(t,n,i){const r=t.semiMinorAxis,s=t.semiMajorAxis,o=t.rotation,l=t.center,m=8*t.granularity,f=r*r,z=s*s,_=s*r,d=a.Cartesian3.magnitude(l),p=a.Cartesian3.normalize(l,h);let O=a.Cartesian3.cross(a.Cartesian3.UNIT_Z,l,x);O=a.Cartesian3.normalize(O,O);const w=a.Cartesian3.cross(p,O,M);let P=1+Math.ceil(e.CesiumMath.PI_OVER_TWO/m);const T=e.CesiumMath.PI_OVER_TWO/(P-1);let I=e.CesiumMath.PI_OVER_TWO-P*T;I<0&&(P-=Math.ceil(Math.abs(I)/T));const g=n?new Array(3*(P*(P+2)*2)):void 0;let E=0,V=C,A=y;const R=4*P*3;let W=R-1,S=0;const B=i?new Array(R):void 0;let b,Q,v,G,H;for(I=e.CesiumMath.PI_OVER_TWO,V=c(I,o,w,O,f,_,z,d,p,V),n&&(g[E++]=V.x,g[E++]=V.y,g[E++]=V.z),i&&(B[W--]=V.z,B[W--]=V.y,B[W--]=V.x),I=e.CesiumMath.PI_OVER_TWO-T,b=1;b<P+1;++b){if(V=c(I,o,w,O,f,_,z,d,p,V),A=c(Math.PI-I,o,w,O,f,_,z,d,p,A),n){for(g[E++]=V.x,g[E++]=V.y,g[E++]=V.z,v=2*b+2,Q=1;Q<v-1;++Q)G=Q/(v-1),H=a.Cartesian3.lerp(V,A,G,u),g[E++]=H.x,g[E++]=H.y,g[E++]=H.z;g[E++]=A.x,g[E++]=A.y,g[E++]=A.z}i&&(B[W--]=V.z,B[W--]=V.y,B[W--]=V.x,B[S++]=A.x,B[S++]=A.y,B[S++]=A.z),I=e.CesiumMath.PI_OVER_TWO-(b+1)*T}for(b=P;b>1;--b){if(I=e.CesiumMath.PI_OVER_TWO-(b-1)*T,V=c(-I,o,w,O,f,_,z,d,p,V),A=c(I+Math.PI,o,w,O,f,_,z,d,p,A),n){for(g[E++]=V.x,g[E++]=V.y,g[E++]=V.z,v=2*(b-1)+2,Q=1;Q<v-1;++Q)G=Q/(v-1),H=a.Cartesian3.lerp(V,A,G,u),g[E++]=H.x,g[E++]=H.y,g[E++]=H.z;g[E++]=A.x,g[E++]=A.y,g[E++]=A.z}i&&(B[W--]=V.z,B[W--]=V.y,B[W--]=V.x,B[S++]=A.x,B[S++]=A.y,B[S++]=A.z)}I=e.CesiumMath.PI_OVER_TWO,V=c(-I,o,w,O,f,_,z,d,p,V);const N={};return n&&(g[E++]=V.x,g[E++]=V.y,g[E++]=V.z,N.positions=g,N.numPts=P),i&&(B[W--]=V.z,B[W--]=V.y,B[W--]=V.x,N.outerPositions=B),N},t.EllipseGeometryLibrary=i}));
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Columbus View (Pat. Pend.)
*
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./Matrix2-4706dd70","./ComponentDatatype-438cad2a","./Transforms-66eda18c"],function(k,t,S,j){"use strict";const N={},B=new t.Cartesian3,G=new t.Cartesian3,H=new j.Quaternion,p=new t.Matrix3;function E(u,O,_,T,A,I,R,m,d,r){const o=u+O;t.Cartesian3.multiplyByScalar(T,Math.cos(o),B),t.Cartesian3.multiplyByScalar(_,Math.sin(o),G),t.Cartesian3.add(B,G,B);let h=Math.cos(u);h=h*h;let l=Math.sin(u);l=l*l;const C=I/Math.sqrt(R*h+A*l)/m;return j.Quaternion.fromAxisAngle(B,C,H),t.Matrix3.fromQuaternion(H,p),t.Matrix3.multiplyByVector(p,d,r),t.Cartesian3.normalize(r,r),t.Cartesian3.multiplyByScalar(r,m,r),r}const x=new t.Cartesian3,U=new t.Cartesian3,Q=new t.Cartesian3,v=new t.Cartesian3;N.raisePositionsToHeight=function(u,O,_){const T=O.ellipsoid,A=O.height,I=O.extrudedHeight,R=_?u.length/3*2:u.length/3,m=new Float64Array(R*3),d=u.length,r=_?d:0;for(let o=0;o<d;o+=3){const h=o+1,l=o+2,a=t.Cartesian3.fromArray(u,o,x);T.scaleToGeodeticSurface(a,a);const C=t.Cartesian3.clone(a,U),y=T.geodeticSurfaceNormal(a,v),w=t.Cartesian3.multiplyByScalar(y,A,Q);t.Cartesian3.add(a,w,a),_&&(t.Cartesian3.multiplyByScalar(y,I,w),t.Cartesian3.add(C,w,C),m[o+r]=C.x,m[h+r]=C.y,m[l+r]=C.z),m[o]=a.x,m[h]=a.y,m[l]=a.z}return m};const J=new t.Cartesian3,K=new t.Cartesian3,X=new t.Cartesian3;N.computeEllipsePositions=function(u,O,_){const T=u.semiMinorAxis,A=u.semiMajorAxis,I=u.rotation,R=u.center,m=u.granularity*8,d=T*T,r=A*A,o=A*T,h=t.Cartesian3.magnitude(R),l=t.Cartesian3.normalize(R,J);let a=t.Cartesian3.cross(t.Cartesian3.UNIT_Z,R,K);a=t.Cartesian3.normalize(a,a);const C=t.Cartesian3.cross(l,a,X);let y=1+Math.ceil(S.CesiumMath.PI_OVER_TWO/m);const w=S.CesiumMath.PI_OVER_TWO/(y-1);let f=S.CesiumMath.PI_OVER_TWO-y*w;f<0&&(y-=Math.ceil(Math.abs(f)/w));const Y=2*(y*(y+2)),n=O?new Array(Y*3):void 0;let s=0,e=x,c=U;const Z=y*4*3;let z=Z-1,W=0;const i=_?new Array(Z):void 0;let P,V,b,q,g;for(f=S.CesiumMath.PI_OVER_TWO,e=E(f,I,C,a,d,o,r,h,l,e),O&&(n[s++]=e.x,n[s++]=e.y,n[s++]=e.z),_&&(i[z--]=e.z,i[z--]=e.y,i[z--]=e.x),f=S.CesiumMath.PI_OVER_TWO-w,P=1;P<y+1;++P){if(e=E(f,I,C,a,d,o,r,h,l,e),c=E(Math.PI-f,I,C,a,d,o,r,h,l,c),O){for(n[s++]=e.x,n[s++]=e.y,n[s++]=e.z,b=2*P+2,V=1;V<b-1;++V)q=V/(b-1),g=t.Cartesian3.lerp(e,c,q,Q),n[s++]=g.x,n[s++]=g.y,n[s++]=g.z;n[s++]=c.x,n[s++]=c.y,n[s++]=c.z}_&&(i[z--]=e.z,i[z--]=e.y,i[z--]=e.x,i[W++]=c.x,i[W++]=c.y,i[W++]=c.z),f=S.CesiumMath.PI_OVER_TWO-(P+1)*w}for(P=y;P>1;--P){if(f=S.CesiumMath.PI_OVER_TWO-(P-1)*w,e=E(-f,I,C,a,d,o,r,h,l,e),c=E(f+Math.PI,I,C,a,d,o,r,h,l,c),O){for(n[s++]=e.x,n[s++]=e.y,n[s++]=e.z,b=2*(P-1)+2,V=1;V<b-1;++V)q=V/(b-1),g=t.Cartesian3.lerp(e,c,q,Q),n[s++]=g.x,n[s++]=g.y,n[s++]=g.z;n[s++]=c.x,n[s++]=c.y,n[s++]=c.z}_&&(i[z--]=e.z,i[z--]=e.y,i[z--]=e.x,i[W++]=c.x,i[W++]=c.y,i[W++]=c.z)}f=S.CesiumMath.PI_OVER_TWO,e=E(-f,I,C,a,d,o,r,h,l,e);const L={};return O&&(n[s++]=e.x,n[s++]=e.y,n[s++]=e.z,L.positions=n,L.numPts=y),_&&(i[z--]=e.z,i[z--]=e.y,i[z--]=e.x,L.outerPositions=i),L},k.EllipseGeometryLibrary=N});
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Columbus View (Pat. Pend.)
*
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./Transforms-66eda18c","./Matrix2-4706dd70","./ComponentDatatype-438cad2a","./defaultValue-028a8a27","./RuntimeError-a977b8e0","./EllipseGeometryLibrary-5f21f480","./GeometryAttribute-2cdece80","./GeometryAttributes-98e858da","./GeometryOffsetAttribute-116f8293","./IndexDatatype-dfa09980"],function(y,O,n,A,r,_,S,E,N,D,P){"use strict";const k=new n.Cartesian3;let b=new n.Cartesian3;function T(e){const i=e.center;b=n.Cartesian3.multiplyByScalar(e.ellipsoid.geodeticSurfaceNormal(i,b),e.height,b),b=n.Cartesian3.add(i,b,b);const t=new O.BoundingSphere(b,e.semiMajorAxis),f=S.EllipseGeometryLibrary.computeEllipsePositions(e,!1,!0).outerPositions,c=new N.GeometryAttributes({position:new E.GeometryAttribute({componentDatatype:A.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:S.EllipseGeometryLibrary.raisePositionsToHeight(f,e,!1)})}),o=f.length/3,u=P.IndexDatatype.createTypedArray(o,o*2);let h=0;for(let s=0;s<o;++s)u[h++]=s,u[h++]=(s+1)%o;return{boundingSphere:t,attributes:c,indices:u}}const L=new O.BoundingSphere,C=new O.BoundingSphere;function q(e){const i=e.center,t=e.ellipsoid,f=e.semiMajorAxis;let c=n.Cartesian3.multiplyByScalar(t.geodeticSurfaceNormal(i,k),e.height,k);L.center=n.Cartesian3.add(i,c,L.center),L.radius=f,c=n.Cartesian3.multiplyByScalar(t.geodeticSurfaceNormal(i,c),e.extrudedHeight,c),C.center=n.Cartesian3.add(i,c,C.center),C.radius=f;let o=S.EllipseGeometryLibrary.computeEllipsePositions(e,!1,!0).outerPositions;const u=new N.GeometryAttributes({position:new E.GeometryAttribute({componentDatatype:A.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:S.EllipseGeometryLibrary.raisePositionsToHeight(o,e,!0)})});o=u.position.values;const h=O.BoundingSphere.union(L,C);let s=o.length/3;if(r.defined(e.offsetAttribute)){let g=new Uint8Array(s);if(e.offsetAttribute===D.GeometryOffsetAttribute.TOP)g=g.fill(1,0,s/2);else{const j=e.offsetAttribute===D.GeometryOffsetAttribute.NONE?0:1;g=g.fill(j)}u.applyOffset=new E.GeometryAttribute({componentDatatype:A.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:g})}let p=r.defaultValue(e.numberOfVerticalLines,16);p=A.CesiumMath.clamp(p,0,s/2);const l=P.IndexDatatype.createTypedArray(s,s*2+p*2);s/=2;let m=0,d;for(d=0;d<s;++d)l[m++]=d,l[m++]=(d+1)%s,l[m++]=d+s,l[m++]=(d+1)%s+s;let M;if(p>0){const g=Math.min(p,s);M=Math.round(s/g);const j=Math.min(M*p,s);for(d=0;d<j;d+=M)l[m++]=d,l[m++]=d+s}return{boundingSphere:h,attributes:u,indices:l}}function w(e){e=r.defaultValue(e,r.defaultValue.EMPTY_OBJECT);const i=e.center,t=r.defaultValue(e.ellipsoid,n.Ellipsoid.WGS84),f=e.semiMajorAxis,c=e.semiMinorAxis,o=r.defaultValue(e.granularity,A.CesiumMath.RADIANS_PER_DEGREE);if(!r.defined(i))throw new _.DeveloperError("center is required.");if(!r.defined(f))throw new _.DeveloperError("semiMajorAxis is required.");if(!r.defined(c))throw new _.DeveloperError("semiMinorAxis is required.");if(f<c)throw new _.DeveloperError("semiMajorAxis must be greater than or equal to the semiMinorAxis.");if(o<=0)throw new _.DeveloperError("granularity must be greater than zero.");const u=r.defaultValue(e.height,0),h=r.defaultValue(e.extrudedHeight,u);this._center=n.Cartesian3.clone(i),this._semiMajorAxis=f,this._semiMinorAxis=c,this._ellipsoid=n.Ellipsoid.clone(t),this._rotation=r.defaultValue(e.rotation,0),this._height=Math.max(h,u),this._granularity=o,this._extrudedHeight=Math.min(h,u),this._numberOfVerticalLines=Math.max(r.defaultValue(e.numberOfVerticalLines,16),0),this._offsetAttribute=e.offsetAttribute,this._workerName="createEllipseOutlineGeometry"}w.packedLength=n.Cartesian3.packedLength+n.Ellipsoid.packedLength+8,w.pack=function(e,i,t){if(!r.defined(e))throw new _.DeveloperError("value is required");if(!r.defined(i))throw new _.DeveloperError("array is required");return t=r.defaultValue(t,0),n.Cartesian3.pack(e._center,i,t),t+=n.Cartesian3.packedLength,n.Ellipsoid.pack(e._ellipsoid,i,t),t+=n.Ellipsoid.packedLength,i[t++]=e._semiMajorAxis,i[t++]=e._semiMinorAxis,i[t++]=e._rotation,i[t++]=e._height,i[t++]=e._granularity,i[t++]=e._extrudedHeight,i[t++]=e._numberOfVerticalLines,i[t]=r.defaultValue(e._offsetAttribute,-1),i};const B=new n.Cartesian3,H=new n.Ellipsoid,a={center:B,ellipsoid:H,semiMajorAxis:void 0,semiMinorAxis:void 0,rotation:void 0,height:void 0,granularity:void 0,extrudedHeight:void 0,numberOfVerticalLines:void 0,offsetAttribute:void 0};w.unpack=function(e,i,t){if(!r.defined(e))throw new _.DeveloperError("array is required");i=r.defaultValue(i,0);const f=n.Cartesian3.unpack(e,i,B);i+=n.Cartesian3.packedLength;const c=n.Ellipsoid.unpack(e,i,H);i+=n.Ellipsoid.packedLength;const o=e[i++],u=e[i++],h=e[i++],s=e[i++],p=e[i++],l=e[i++],m=e[i++],d=e[i];return r.defined(t)?(t._center=n.Cartesian3.clone(f,t._center),t._ellipsoid=n.Ellipsoid.clone(c,t._ellipsoid),t._semiMajorAxis=o,t._semiMinorAxis=u,t._rotation=h,t._height=s,t._granularity=p,t._extrudedHeight=l,t._numberOfVerticalLines=m,t._offsetAttribute=d===-1?void 0:d,t):(a.height=s,a.extrudedHeight=l,a.granularity=p,a.rotation=h,a.semiMajorAxis=o,a.semiMinorAxis=u,a.numberOfVerticalLines=m,a.offsetAttribute=d===-1?void 0:d,new w(a))},w.createGeometry=function(e){if(e._semiMajorAxis<=0||e._semiMinorAxis<=0)return;const i=e._height,t=e._extrudedHeight,f=!A.CesiumMath.equalsEpsilon(i,t,0,A.CesiumMath.EPSILON2);e._center=e._ellipsoid.scaleToGeodeticSurface(e._center,e._center);const c={center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,ellipsoid:e._ellipsoid,rotation:e._rotation,height:i,granularity:e._granularity,numberOfVerticalLines:e._numberOfVerticalLines};let o;if(f)c.extrudedHeight=t,c.offsetAttribute=e._offsetAttribute,o=q(c);else if(o=T(c),r.defined(e._offsetAttribute)){const u=o.attributes.position.values.length,h=e._offsetAttribute===D.GeometryOffsetAttribute.NONE?0:1,s=new Uint8Array(u/3).fill(h);o.attributes.applyOffset=new E.GeometryAttribute({componentDatatype:A.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:s})}return new E.Geometry({attributes:o.attributes,indices:o.indices,primitiveType:E.PrimitiveType.LINES,boundingSphere:o.boundingSphere,offsetAttribute:e._offsetAttribute})},y.EllipseOutlineGeometry=w});
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Columbus View (Pat. Pend.)
*
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./Matrix2-4706dd70","./RuntimeError-a977b8e0","./defaultValue-028a8a27","./ComponentDatatype-438cad2a"],function(E,f,q,T,F){"use strict";function N(n){const a=n._uSquared,t=n._ellipsoid.maximumRadius,e=n._ellipsoid.minimumRadius,_=(t-e)/t,l=Math.cos(n._startHeading),p=Math.sin(n._startHeading),h=(1-_)*Math.tan(n._start.latitude),C=1/Math.sqrt(1+h*h),y=C*h,M=Math.atan2(h,l),m=C*p,U=m*m,i=1-U,A=Math.sqrt(i),c=a/4,o=c*c,u=o*c,S=o*o,d=1+c-3*o/4+5*u/4-175*S/64,w=1-c+15*o/8-35*u/8,r=1-3*c+35*o/4,g=1-5*c,k=d*M-w*Math.sin(2*M)*c/2-r*Math.sin(4*M)*o/16-g*Math.sin(6*M)*u/48-Math.sin(8*M)*5*S/512,s=n._constants;s.a=t,s.b=e,s.f=_,s.cosineHeading=l,s.sineHeading=p,s.tanU=h,s.cosineU=C,s.sineU=y,s.sigma=M,s.sineAlpha=m,s.sineSquaredAlpha=U,s.cosineSquaredAlpha=i,s.cosineAlpha=A,s.u2Over4=c,s.u4Over16=o,s.u6Over64=u,s.u8Over256=S,s.a0=d,s.a1=w,s.a2=r,s.a3=g,s.distanceRatio=k}function J(n,a){return n*a*(4+n*(4-3*a))/16}function z(n,a,t,e,_,l,p){const h=J(n,t);return(1-h)*n*a*(e+h*_*(p+h*l*(2*p*p-1)))}function K(n,a,t,e,_,l,p){const h=(a-t)/a,C=l-e,y=Math.atan((1-h)*Math.tan(_)),M=Math.atan((1-h)*Math.tan(p)),m=Math.cos(y),U=Math.sin(y),i=Math.cos(M),A=Math.sin(M),c=m*i,o=m*A,u=U*A,S=U*i;let d=C,w=F.CesiumMath.TWO_PI,r=Math.cos(d),g=Math.sin(d),k,s,O,H,b;do{r=Math.cos(d),g=Math.sin(d);const W=o-S*r;O=Math.sqrt(i*i*g*g+W*W),s=u+c*r,k=Math.atan2(O,s);let D;O===0?(D=0,H=1):(D=c*g/O,H=1-D*D),w=d,b=s-2*u/H,isFinite(b)||(b=0),d=C+z(h,D,H,k,O,s,b)}while(Math.abs(d-w)>F.CesiumMath.EPSILON12);const v=H*(a*a-t*t)/(t*t),X=1+v*(4096+v*(v*(320-175*v)-768))/16384,L=v*(256+v*(v*(74-47*v)-128))/1024,R=b*b,Y=L*O*(b+L*(s*(2*R-1)-L*b*(4*O*O-3)*(4*R-3)/6)/4),Z=t*X*(k-Y),$=Math.atan2(i*g,o-S*r),V=Math.atan2(m*g,o*r-S);n._distance=Z,n._startHeading=$,n._endHeading=V,n._uSquared=v}const Q=new f.Cartesian3,I=new f.Cartesian3;function B(n,a,t,e){const _=f.Cartesian3.normalize(e.cartographicToCartesian(a,I),Q),l=f.Cartesian3.normalize(e.cartographicToCartesian(t,I),I);q.Check.typeOf.number.greaterThanOrEquals("value",Math.abs(Math.abs(f.Cartesian3.angleBetween(_,l))-Math.PI),.0125),K(n,e.maximumRadius,e.minimumRadius,a.longitude,a.latitude,t.longitude,t.latitude),n._start=f.Cartographic.clone(a,n._start),n._end=f.Cartographic.clone(t,n._end),n._start.height=0,n._end.height=0,N(n)}function P(n,a,t){const e=T.defaultValue(t,f.Ellipsoid.WGS84);this._ellipsoid=e,this._start=new f.Cartographic,this._end=new f.Cartographic,this._constants={},this._startHeading=void 0,this._endHeading=void 0,this._distance=void 0,this._uSquared=void 0,T.defined(n)&&T.defined(a)&&B(this,n,a,e)}Object.defineProperties(P.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},surfaceDistance:{get:function(){return q.Check.defined("distance",this._distance),this._distance}},start:{get:function(){return this._start}},end:{get:function(){return this._end}},startHeading:{get:function(){return q.Check.defined("distance",this._distance),this._startHeading}},endHeading:{get:function(){return q.Check.defined("distance",this._distance),this._endHeading}}}),P.prototype.setEndPoints=function(n,a){q.Check.defined("start",n),q.Check.defined("end",a),B(this,n,a,this._ellipsoid)},P.prototype.interpolateUsingFraction=function(n,a){return this.interpolateUsingSurfaceDistance(this._distance*n,a)},P.prototype.interpolateUsingSurfaceDistance=function(n,a){q.Check.defined("distance",this._distance);const t=this._constants,e=t.distanceRatio+n/t.b,_=Math.cos(2*e),l=Math.cos(4*e),p=Math.cos(6*e),h=Math.sin(2*e),C=Math.sin(4*e),y=Math.sin(6*e),M=Math.sin(8*e),m=e*e,U=e*m,i=t.u8Over256,A=t.u2Over4,c=t.u6Over64,o=t.u4Over16;let u=2*U*i*_/3+e*(1-A+7*o/4-15*c/4+579*i/64-(o-15*c/4+187*i/16)*_-(5*c/4-115*i/16)*l-29*i*p/16)+(A/2-o+71*c/32-85*i/16)*h+(5*o/16-5*c/4+383*i/96)*C-m*((c-11*i/2)*h+5*i*C/2)+(29*c/96-29*i/16)*y+539*i*M/1536;const S=Math.asin(Math.sin(u)*t.cosineAlpha),d=Math.atan(t.a/t.b*Math.tan(S));u=u-t.sigma;const w=Math.cos(2*t.sigma+u),r=Math.sin(u),g=Math.cos(u),k=t.cosineU*g,s=t.sineU*r,H=Math.atan2(r*t.sineHeading,k-s*t.cosineHeading)-z(t.f,t.sineAlpha,t.cosineSquaredAlpha,u,r,g,w);return T.defined(a)?(a.longitude=this._start.longitude+H,a.latitude=d,a.height=0,a):new f.Cartographic(this._start.longitude+H,d,0)},E.EllipsoidGeodesic=P});
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......@@ -22,4 +22,4 @@
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./Matrix2-c788e106","./RuntimeError-50f3c270","./defaultValue-77c08f32","./ComponentDatatype-94a172c0"],(function(t,a,i,n,e){"use strict";function s(t,a,i,n,e,s,o){const r=function(t,a){return t*a*(4+t*(4-3*a))/16}(t,i);return(1-r)*t*a*(n+r*e*(o+r*s*(2*o*o-1)))}const o=new a.Cartesian3,r=new a.Cartesian3;function h(t,i,n,h){a.Cartesian3.normalize(h.cartographicToCartesian(i,r),o),a.Cartesian3.normalize(h.cartographicToCartesian(n,r),r),function(t,a,i,n,o,r,h){const c=(a-i)/a,d=r-n,u=Math.atan((1-c)*Math.tan(o)),l=Math.atan((1-c)*Math.tan(h)),M=Math.cos(u),g=Math.sin(u),p=Math.cos(l),_=Math.sin(l),f=M*p,m=M*_,C=g*_,H=g*p;let v,O,S,q,U,A=d,R=e.CesiumMath.TWO_PI,w=Math.cos(A),b=Math.sin(A);do{w=Math.cos(A),b=Math.sin(A);const t=m-H*w;let a;S=Math.sqrt(p*p*b*b+t*t),O=C+f*w,v=Math.atan2(S,O),0===S?(a=0,q=1):(a=f*b/S,q=1-a*a),R=A,U=O-2*C/q,isFinite(U)||(U=0),A=d+s(c,a,q,v,S,O,U)}while(Math.abs(A-R)>e.CesiumMath.EPSILON12);const y=q*(a*a-i*i)/(i*i),E=y*(256+y*(y*(74-47*y)-128))/1024,x=U*U,D=i*(1+y*(4096+y*(y*(320-175*y)-768))/16384)*(v-E*S*(U+E*(O*(2*x-1)-E*U*(4*S*S-3)*(4*x-3)/6)/4)),P=Math.atan2(p*b,m-H*w),T=Math.atan2(M*b,m*w-H);t._distance=D,t._startHeading=P,t._endHeading=T,t._uSquared=y}(t,h.maximumRadius,h.minimumRadius,i.longitude,i.latitude,n.longitude,n.latitude),t._start=a.Cartographic.clone(i,t._start),t._end=a.Cartographic.clone(n,t._end),t._start.height=0,t._end.height=0,function(t){const a=t._uSquared,i=t._ellipsoid.maximumRadius,n=t._ellipsoid.minimumRadius,e=(i-n)/i,s=Math.cos(t._startHeading),o=Math.sin(t._startHeading),r=(1-e)*Math.tan(t._start.latitude),h=1/Math.sqrt(1+r*r),c=h*r,d=Math.atan2(r,s),u=h*o,l=u*u,M=1-l,g=Math.sqrt(M),p=a/4,_=p*p,f=_*p,m=_*_,C=1+p-3*_/4+5*f/4-175*m/64,H=1-p+15*_/8-35*f/8,v=1-3*p+35*_/4,O=1-5*p,S=C*d-H*Math.sin(2*d)*p/2-v*Math.sin(4*d)*_/16-O*Math.sin(6*d)*f/48-5*Math.sin(8*d)*m/512,q=t._constants;q.a=i,q.b=n,q.f=e,q.cosineHeading=s,q.sineHeading=o,q.tanU=r,q.cosineU=h,q.sineU=c,q.sigma=d,q.sineAlpha=u,q.sineSquaredAlpha=l,q.cosineSquaredAlpha=M,q.cosineAlpha=g,q.u2Over4=p,q.u4Over16=_,q.u6Over64=f,q.u8Over256=m,q.a0=C,q.a1=H,q.a2=v,q.a3=O,q.distanceRatio=S}(t)}function c(t,i,e){const s=n.defaultValue(e,a.Ellipsoid.WGS84);this._ellipsoid=s,this._start=new a.Cartographic,this._end=new a.Cartographic,this._constants={},this._startHeading=void 0,this._endHeading=void 0,this._distance=void 0,this._uSquared=void 0,n.defined(t)&&n.defined(i)&&h(this,t,i,s)}Object.defineProperties(c.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},surfaceDistance:{get:function(){return this._distance}},start:{get:function(){return this._start}},end:{get:function(){return this._end}},startHeading:{get:function(){return this._startHeading}},endHeading:{get:function(){return this._endHeading}}}),c.prototype.setEndPoints=function(t,a){h(this,t,a,this._ellipsoid)},c.prototype.interpolateUsingFraction=function(t,a){return this.interpolateUsingSurfaceDistance(this._distance*t,a)},c.prototype.interpolateUsingSurfaceDistance=function(t,i){const e=this._constants,o=e.distanceRatio+t/e.b,r=Math.cos(2*o),h=Math.cos(4*o),c=Math.cos(6*o),d=Math.sin(2*o),u=Math.sin(4*o),l=Math.sin(6*o),M=Math.sin(8*o),g=o*o,p=o*g,_=e.u8Over256,f=e.u2Over4,m=e.u6Over64,C=e.u4Over16;let H=2*p*_*r/3+o*(1-f+7*C/4-15*m/4+579*_/64-(C-15*m/4+187*_/16)*r-(5*m/4-115*_/16)*h-29*_*c/16)+(f/2-C+71*m/32-85*_/16)*d+(5*C/16-5*m/4+383*_/96)*u-g*((m-11*_/2)*d+5*_*u/2)+(29*m/96-29*_/16)*l+539*_*M/1536;const v=Math.asin(Math.sin(H)*e.cosineAlpha),O=Math.atan(e.a/e.b*Math.tan(v));H-=e.sigma;const S=Math.cos(2*e.sigma+H),q=Math.sin(H),U=Math.cos(H),A=e.cosineU*U,R=e.sineU*q,w=Math.atan2(q*e.sineHeading,A-R*e.cosineHeading)-s(e.f,e.sineAlpha,e.cosineSquaredAlpha,H,q,U,S);return n.defined(i)?(i.longitude=this._start.longitude+w,i.latitude=O,i.height=0,i):new a.Cartographic(this._start.longitude+w,O,0)},t.EllipsoidGeodesic=c}));
define(["exports","./Matrix2-f4a72982","./RuntimeError-ed67c927","./defaultValue-ff4e651f","./ComponentDatatype-cb7120fd"],(function(t,a,i,n,e){"use strict";function s(t,a,i,n,e,s,o){const r=function(t,a){return t*a*(4+t*(4-3*a))/16}(t,i);return(1-r)*t*a*(n+r*e*(o+r*s*(2*o*o-1)))}const o=new a.Cartesian3,r=new a.Cartesian3;function h(t,i,n,h){a.Cartesian3.normalize(h.cartographicToCartesian(i,r),o),a.Cartesian3.normalize(h.cartographicToCartesian(n,r),r),function(t,a,i,n,o,r,h){const c=(a-i)/a,d=r-n,u=Math.atan((1-c)*Math.tan(o)),l=Math.atan((1-c)*Math.tan(h)),M=Math.cos(u),g=Math.sin(u),p=Math.cos(l),_=Math.sin(l),f=M*p,m=M*_,C=g*_,H=g*p;let v,O,S,q,U,A=d,R=e.CesiumMath.TWO_PI,b=Math.cos(A),w=Math.sin(A);do{b=Math.cos(A),w=Math.sin(A);const t=m-H*b;let a;S=Math.sqrt(p*p*w*w+t*t),O=C+f*b,v=Math.atan2(S,O),0===S?(a=0,q=1):(a=f*w/S,q=1-a*a),R=A,U=O-2*C/q,isFinite(U)||(U=0),A=d+s(c,a,q,v,S,O,U)}while(Math.abs(A-R)>e.CesiumMath.EPSILON12);const y=q*(a*a-i*i)/(i*i),E=y*(256+y*(y*(74-47*y)-128))/1024,x=U*U,D=i*(1+y*(4096+y*(y*(320-175*y)-768))/16384)*(v-E*S*(U+E*(O*(2*x-1)-E*U*(4*S*S-3)*(4*x-3)/6)/4)),P=Math.atan2(p*w,m-H*b),T=Math.atan2(M*w,m*b-H);t._distance=D,t._startHeading=P,t._endHeading=T,t._uSquared=y}(t,h.maximumRadius,h.minimumRadius,i.longitude,i.latitude,n.longitude,n.latitude),t._start=a.Cartographic.clone(i,t._start),t._end=a.Cartographic.clone(n,t._end),t._start.height=0,t._end.height=0,function(t){const a=t._uSquared,i=t._ellipsoid.maximumRadius,n=t._ellipsoid.minimumRadius,e=(i-n)/i,s=Math.cos(t._startHeading),o=Math.sin(t._startHeading),r=(1-e)*Math.tan(t._start.latitude),h=1/Math.sqrt(1+r*r),c=h*r,d=Math.atan2(r,s),u=h*o,l=u*u,M=1-l,g=Math.sqrt(M),p=a/4,_=p*p,f=_*p,m=_*_,C=1+p-3*_/4+5*f/4-175*m/64,H=1-p+15*_/8-35*f/8,v=1-3*p+35*_/4,O=1-5*p,S=C*d-H*Math.sin(2*d)*p/2-v*Math.sin(4*d)*_/16-O*Math.sin(6*d)*f/48-5*Math.sin(8*d)*m/512,q=t._constants;q.a=i,q.b=n,q.f=e,q.cosineHeading=s,q.sineHeading=o,q.tanU=r,q.cosineU=h,q.sineU=c,q.sigma=d,q.sineAlpha=u,q.sineSquaredAlpha=l,q.cosineSquaredAlpha=M,q.cosineAlpha=g,q.u2Over4=p,q.u4Over16=_,q.u6Over64=f,q.u8Over256=m,q.a0=C,q.a1=H,q.a2=v,q.a3=O,q.distanceRatio=S}(t)}function c(t,i,e){const s=n.defaultValue(e,a.Ellipsoid.WGS84);this._ellipsoid=s,this._start=new a.Cartographic,this._end=new a.Cartographic,this._constants={},this._startHeading=void 0,this._endHeading=void 0,this._distance=void 0,this._uSquared=void 0,n.defined(t)&&n.defined(i)&&h(this,t,i,s)}Object.defineProperties(c.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},surfaceDistance:{get:function(){return this._distance}},start:{get:function(){return this._start}},end:{get:function(){return this._end}},startHeading:{get:function(){return this._startHeading}},endHeading:{get:function(){return this._endHeading}}}),c.prototype.setEndPoints=function(t,a){h(this,t,a,this._ellipsoid)},c.prototype.interpolateUsingFraction=function(t,a){return this.interpolateUsingSurfaceDistance(this._distance*t,a)},c.prototype.interpolateUsingSurfaceDistance=function(t,i){const e=this._constants,o=e.distanceRatio+t/e.b,r=Math.cos(2*o),h=Math.cos(4*o),c=Math.cos(6*o),d=Math.sin(2*o),u=Math.sin(4*o),l=Math.sin(6*o),M=Math.sin(8*o),g=o*o,p=o*g,_=e.u8Over256,f=e.u2Over4,m=e.u6Over64,C=e.u4Over16;let H=2*p*_*r/3+o*(1-f+7*C/4-15*m/4+579*_/64-(C-15*m/4+187*_/16)*r-(5*m/4-115*_/16)*h-29*_*c/16)+(f/2-C+71*m/32-85*_/16)*d+(5*C/16-5*m/4+383*_/96)*u-g*((m-11*_/2)*d+5*_*u/2)+(29*m/96-29*_/16)*l+539*_*M/1536;const v=Math.asin(Math.sin(H)*e.cosineAlpha),O=Math.atan(e.a/e.b*Math.tan(v));H-=e.sigma;const S=Math.cos(2*e.sigma+H),q=Math.sin(H),U=Math.cos(H),A=e.cosineU*U,R=e.sineU*q,b=Math.atan2(q*e.sineHeading,A-R*e.cosineHeading)-s(e.f,e.sineAlpha,e.cosineSquaredAlpha,H,q,U,S);return n.defined(i)?(i.longitude=this._start.longitude+b,i.latitude=O,i.height=0,i):new a.Cartographic(this._start.longitude+b,O,0)},t.EllipsoidGeodesic=c}));
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Columbus View (Pat. Pend.)
*
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./Transforms-66eda18c","./Matrix2-4706dd70","./ComponentDatatype-438cad2a","./defaultValue-028a8a27","./RuntimeError-a977b8e0","./GeometryAttribute-2cdece80","./GeometryAttributes-98e858da","./GeometryOffsetAttribute-116f8293","./IndexDatatype-dfa09980","./VertexFormat-3518f543"],function(de,_e,r,d,f,D,v,pe,ke,we,w){"use strict";const Pe=new r.Cartesian3,Ae=new r.Cartesian3,be=new r.Cartesian3,Oe=new r.Cartesian3,Te=new r.Cartesian3,Fe=new r.Cartesian3(1,1,1),ie=Math.cos,oe=Math.sin;function A(t){t=f.defaultValue(t,f.defaultValue.EMPTY_OBJECT);const s=f.defaultValue(t.radii,Fe),i=f.defaultValue(t.innerRadii,s),b=f.defaultValue(t.minimumClock,0),L=f.defaultValue(t.maximumClock,d.CesiumMath.TWO_PI),O=f.defaultValue(t.minimumCone,0),T=f.defaultValue(t.maximumCone,d.CesiumMath.PI),m=Math.round(f.defaultValue(t.stackPartitions,64)),l=Math.round(f.defaultValue(t.slicePartitions,64)),h=f.defaultValue(t.vertexFormat,w.VertexFormat.DEFAULT);if(l<3)throw new D.DeveloperError("options.slicePartitions cannot be less than three.");if(m<3)throw new D.DeveloperError("options.stackPartitions cannot be less than three.");this._radii=r.Cartesian3.clone(s),this._innerRadii=r.Cartesian3.clone(i),this._minimumClock=b,this._maximumClock=L,this._minimumCone=O,this._maximumCone=T,this._stackPartitions=m,this._slicePartitions=l,this._vertexFormat=w.VertexFormat.clone(h),this._offsetAttribute=t.offsetAttribute,this._workerName="createEllipsoidGeometry"}A.packedLength=2*r.Cartesian3.packedLength+w.VertexFormat.packedLength+7,A.pack=function(t,s,i){if(!f.defined(t))throw new D.DeveloperError("value is required");if(!f.defined(s))throw new D.DeveloperError("array is required");return i=f.defaultValue(i,0),r.Cartesian3.pack(t._radii,s,i),i+=r.Cartesian3.packedLength,r.Cartesian3.pack(t._innerRadii,s,i),i+=r.Cartesian3.packedLength,w.VertexFormat.pack(t._vertexFormat,s,i),i+=w.VertexFormat.packedLength,s[i++]=t._minimumClock,s[i++]=t._maximumClock,s[i++]=t._minimumCone,s[i++]=t._maximumCone,s[i++]=t._stackPartitions,s[i++]=t._slicePartitions,s[i]=f.defaultValue(t._offsetAttribute,-1),s};const se=new r.Cartesian3,ae=new r.Cartesian3,ce=new w.VertexFormat,E={radii:se,innerRadii:ae,vertexFormat:ce,minimumClock:void 0,maximumClock:void 0,minimumCone:void 0,maximumCone:void 0,stackPartitions:void 0,slicePartitions:void 0,offsetAttribute:void 0};A.unpack=function(t,s,i){if(!f.defined(t))throw new D.DeveloperError("array is required");s=f.defaultValue(s,0);const b=r.Cartesian3.unpack(t,s,se);s+=r.Cartesian3.packedLength;const L=r.Cartesian3.unpack(t,s,ae);s+=r.Cartesian3.packedLength;const O=w.VertexFormat.unpack(t,s,ce);s+=w.VertexFormat.packedLength;const T=t[s++],m=t[s++],l=t[s++],h=t[s++],e=t[s++],o=t[s++],n=t[s];return f.defined(i)?(i._radii=r.Cartesian3.clone(b,i._radii),i._innerRadii=r.Cartesian3.clone(L,i._innerRadii),i._vertexFormat=w.VertexFormat.clone(O,i._vertexFormat),i._minimumClock=T,i._maximumClock=m,i._minimumCone=l,i._maximumCone=h,i._stackPartitions=e,i._slicePartitions=o,i._offsetAttribute=n===-1?void 0:n,i):(E.minimumClock=T,E.maximumClock=m,E.minimumCone=l,E.maximumCone=h,E.stackPartitions=e,E.slicePartitions=o,E.offsetAttribute=n===-1?void 0:n,new A(E))},A.createGeometry=function(t){const s=t._radii;if(s.x<=0||s.y<=0||s.z<=0)return;const i=t._innerRadii;if(i.x<=0||i.y<=0||i.z<=0)return;const b=t._minimumClock,L=t._maximumClock,O=t._minimumCone,T=t._maximumCone,m=t._vertexFormat;let l=t._slicePartitions+1,h=t._stackPartitions+1;l=Math.round(l*Math.abs(L-b)/d.CesiumMath.TWO_PI),h=Math.round(h*Math.abs(T-O)/d.CesiumMath.PI),l<2&&(l=2),h<2&&(h=2);let e,o,n=0;const R=[O],S=[b];for(e=0;e<h;e++)R.push(O+e*(T-O)/(h-1));for(R.push(T),o=0;o<l;o++)S.push(b+o*(L-b)/(l-1));S.push(L);const u=R.length,c=S.length;let U=0,B=1;const Y=i.x!==s.x||i.y!==s.y||i.z!==s.z;let X=!1,re=!1,me=!1;Y&&(B=2,O>0&&(X=!0,U+=l-1),T<Math.PI&&(re=!0,U+=l-1),(L-b)%d.CesiumMath.TWO_PI?(me=!0,U+=(h-1)*2+1):U+=1);const P=c*u*B,F=new Float64Array(P*3),Z=new Array(P).fill(!1),fe=new Array(P).fill(!1),ue=l*h*B,ve=6*(ue+U+1-(l+h)*B),a=we.IndexDatatype.createTypedArray(ue,ve),G=m.normal?new Float32Array(P*3):void 0,j=m.tangent?new Float32Array(P*3):void 0,H=m.bitangent?new Float32Array(P*3):void 0,x=m.st?new Float32Array(P*2):void 0,W=new Array(u),K=new Array(u);for(e=0;e<u;e++)W[e]=oe(R[e]),K[e]=ie(R[e]);const Q=new Array(c),V=new Array(c);for(o=0;o<c;o++)V[o]=ie(S[o]),Q[o]=oe(S[o]);for(e=0;e<u;e++)for(o=0;o<c;o++)F[n++]=s.x*W[e]*V[o],F[n++]=s.y*W[e]*Q[o],F[n++]=s.z*K[e];let $=P/2;if(Y)for(e=0;e<u;e++)for(o=0;o<c;o++)F[n++]=i.x*W[e]*V[o],F[n++]=i.y*W[e]*Q[o],F[n++]=i.z*K[e],Z[$]=!0,e>0&&e!==u-1&&o!==0&&o!==c-1&&(fe[$]=!0),$++;n=0;let y,N;for(e=1;e<u-2;e++)for(y=e*c,N=(e+1)*c,o=1;o<c-2;o++)a[n++]=N+o,a[n++]=N+o+1,a[n++]=y+o+1,a[n++]=N+o,a[n++]=y+o+1,a[n++]=y+o;if(Y){const z=u*c;for(e=1;e<u-2;e++)for(y=z+e*c,N=z+(e+1)*c,o=1;o<c-2;o++)a[n++]=N+o,a[n++]=y+o,a[n++]=y+o+1,a[n++]=N+o,a[n++]=y+o+1,a[n++]=N+o+1}let _,C;if(Y){if(X)for(C=u*c,e=1;e<c-2;e++)a[n++]=e,a[n++]=e+1,a[n++]=C+e+1,a[n++]=e,a[n++]=C+e+1,a[n++]=C+e;if(re)for(_=u*c-c,C=u*c*B-c,e=1;e<c-2;e++)a[n++]=_+e+1,a[n++]=_+e,a[n++]=C+e,a[n++]=_+e+1,a[n++]=C+e,a[n++]=C+e+1}if(me){for(e=1;e<u-2;e++)C=c*u+c*e,_=c*e,a[n++]=C,a[n++]=_+c,a[n++]=_,a[n++]=C,a[n++]=C+c,a[n++]=_+c;for(e=1;e<u-2;e++)C=c*u+c*(e+1)-1,_=c*(e+1)-1,a[n++]=_+c,a[n++]=C,a[n++]=_,a[n++]=_+c,a[n++]=C+c,a[n++]=C}const g=new pe.GeometryAttributes;m.position&&(g.position=new v.GeometryAttribute({componentDatatype:d.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:F}));let le=0,I=0,M=0,ee=0;const Ee=P/2;let Ce;const he=r.Ellipsoid.fromCartesian3(s),Le=r.Ellipsoid.fromCartesian3(i);if(m.st||m.normal||m.tangent||m.bitangent){for(e=0;e<P;e++){Ce=Z[e]?Le:he;const z=r.Cartesian3.fromArray(F,e*3,Pe),k=Ce.geodeticSurfaceNormal(z,Ae);if(fe[e]&&r.Cartesian3.negate(k,k),m.st){const p=r.Cartesian2.negate(k,Te);x[le++]=Math.atan2(p.y,p.x)/d.CesiumMath.TWO_PI+.5,x[le++]=Math.asin(k.z)/Math.PI+.5}if(m.normal&&(G[I++]=k.x,G[I++]=k.y,G[I++]=k.z),m.tangent||m.bitangent){const p=be;let te=0,ne;if(Z[e]&&(te=Ee),!X&&e>=te&&e<te+c*2?ne=r.Cartesian3.UNIT_X:ne=r.Cartesian3.UNIT_Z,r.Cartesian3.cross(ne,k,p),r.Cartesian3.normalize(p,p),m.tangent&&(j[M++]=p.x,j[M++]=p.y,j[M++]=p.z),m.bitangent){const q=r.Cartesian3.cross(k,p,Oe);r.Cartesian3.normalize(q,q),H[ee++]=q.x,H[ee++]=q.y,H[ee++]=q.z}}}m.st&&(g.st=new v.GeometryAttribute({componentDatatype:d.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:x})),m.normal&&(g.normal=new v.GeometryAttribute({componentDatatype:d.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:G})),m.tangent&&(g.tangent=new v.GeometryAttribute({componentDatatype:d.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:j})),m.bitangent&&(g.bitangent=new v.GeometryAttribute({componentDatatype:d.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:H}))}if(f.defined(t._offsetAttribute)){const z=F.length,k=t._offsetAttribute===ke.GeometryOffsetAttribute.NONE?0:1,p=new Uint8Array(z/3).fill(k);g.applyOffset=new v.GeometryAttribute({componentDatatype:d.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:p})}return new v.Geometry({attributes:g,indices:a,primitiveType:v.PrimitiveType.TRIANGLES,boundingSphere:_e.BoundingSphere.fromEllipsoid(he),offsetAttribute:t._offsetAttribute})};let J;A.getUnitEllipsoid=function(){return f.defined(J)||(J=A.createGeometry(new A({radii:new r.Cartesian3(1,1,1),vertexFormat:w.VertexFormat.POSITION_ONLY}))),J},de.EllipsoidGeometry=A});
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Columbus View (Pat. Pend.)
*
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./Transforms-66eda18c","./Matrix2-4706dd70","./ComponentDatatype-438cad2a","./defaultValue-028a8a27","./RuntimeError-a977b8e0","./GeometryAttribute-2cdece80","./GeometryAttributes-98e858da","./GeometryOffsetAttribute-116f8293","./IndexDatatype-dfa09980"],function(H,K,u,T,f,p,q,Q,Y,X){"use strict";const Z=new u.Cartesian3(1,1,1),y=Math.cos,U=Math.sin;function D(e){e=f.defaultValue(e,f.defaultValue.EMPTY_OBJECT);const t=f.defaultValue(e.radii,Z),n=f.defaultValue(e.innerRadii,t),b=f.defaultValue(e.minimumClock,0),w=f.defaultValue(e.maximumClock,T.CesiumMath.TWO_PI),C=f.defaultValue(e.minimumCone,0),l=f.defaultValue(e.maximumCone,T.CesiumMath.PI),c=Math.round(f.defaultValue(e.stackPartitions,10)),A=Math.round(f.defaultValue(e.slicePartitions,8)),s=Math.round(f.defaultValue(e.subdivisions,128));if(c<1)throw new p.DeveloperError("options.stackPartitions cannot be less than 1");if(A<0)throw new p.DeveloperError("options.slicePartitions cannot be less than 0");if(s<0)throw new p.DeveloperError("options.subdivisions must be greater than or equal to zero.");if(f.defined(e.offsetAttribute)&&e.offsetAttribute===Y.GeometryOffsetAttribute.TOP)throw new p.DeveloperError("GeometryOffsetAttribute.TOP is not a supported options.offsetAttribute for this geometry.");this._radii=u.Cartesian3.clone(t),this._innerRadii=u.Cartesian3.clone(n),this._minimumClock=b,this._maximumClock=w,this._minimumCone=C,this._maximumCone=l,this._stackPartitions=c,this._slicePartitions=A,this._subdivisions=s,this._offsetAttribute=e.offsetAttribute,this._workerName="createEllipsoidOutlineGeometry"}D.packedLength=2*u.Cartesian3.packedLength+8,D.pack=function(e,t,n){if(!f.defined(e))throw new p.DeveloperError("value is required");if(!f.defined(t))throw new p.DeveloperError("array is required");return n=f.defaultValue(n,0),u.Cartesian3.pack(e._radii,t,n),n+=u.Cartesian3.packedLength,u.Cartesian3.pack(e._innerRadii,t,n),n+=u.Cartesian3.packedLength,t[n++]=e._minimumClock,t[n++]=e._maximumClock,t[n++]=e._minimumCone,t[n++]=e._maximumCone,t[n++]=e._stackPartitions,t[n++]=e._slicePartitions,t[n++]=e._subdivisions,t[n]=f.defaultValue(e._offsetAttribute,-1),t};const j=new u.Cartesian3,F=new u.Cartesian3,k={radii:j,innerRadii:F,minimumClock:void 0,maximumClock:void 0,minimumCone:void 0,maximumCone:void 0,stackPartitions:void 0,slicePartitions:void 0,subdivisions:void 0,offsetAttribute:void 0};D.unpack=function(e,t,n){if(!f.defined(e))throw new p.DeveloperError("array is required");t=f.defaultValue(t,0);const b=u.Cartesian3.unpack(e,t,j);t+=u.Cartesian3.packedLength;const w=u.Cartesian3.unpack(e,t,F);t+=u.Cartesian3.packedLength;const C=e[t++],l=e[t++],c=e[t++],A=e[t++],s=e[t++],r=e[t++],z=e[t++],d=e[t];return f.defined(n)?(n._radii=u.Cartesian3.clone(b,n._radii),n._innerRadii=u.Cartesian3.clone(w,n._innerRadii),n._minimumClock=C,n._maximumClock=l,n._minimumCone=c,n._maximumCone=A,n._stackPartitions=s,n._slicePartitions=r,n._subdivisions=z,n._offsetAttribute=d===-1?void 0:d,n):(k.minimumClock=C,k.maximumClock=l,k.minimumCone=c,k.maximumCone=A,k.stackPartitions=s,k.slicePartitions=r,k.subdivisions=z,k.offsetAttribute=d===-1?void 0:d,new D(k))},D.createGeometry=function(e){const t=e._radii;if(t.x<=0||t.y<=0||t.z<=0)return;const n=e._innerRadii;if(n.x<=0||n.y<=0||n.z<=0)return;const b=e._minimumClock,w=e._maximumClock,C=e._minimumCone,l=e._maximumCone,c=e._subdivisions,A=u.Ellipsoid.fromCartesian3(t);let s=e._slicePartitions+1,r=e._stackPartitions+1;s=Math.round(s*Math.abs(w-b)/T.CesiumMath.TWO_PI),r=Math.round(r*Math.abs(l-C)/T.CesiumMath.PI),s<2&&(s=2),r<2&&(r=2);let z=0,d=1;const N=n.x!==t.x||n.y!==t.y||n.z!==t.z;let J=!1,M=!1;N&&(d=2,C>0&&(J=!0,z+=s),l<Math.PI&&(M=!0,z+=s));const W=c*d*(r+s),a=new Float64Array(W*3),$=2*(W+z-(s+r)*d),h=X.IndexDatatype.createTypedArray(W,$);let i,o,L,R,m=0;const _=new Array(r),O=new Array(r);for(i=0;i<r;i++)R=C+i*(l-C)/(r-1),_[i]=U(R),O[i]=y(R);const v=new Array(c),E=new Array(c);for(i=0;i<c;i++)L=b+i*(w-b)/(c-1),v[i]=U(L),E[i]=y(L);for(i=0;i<r;i++)for(o=0;o<c;o++)a[m++]=t.x*_[i]*E[o],a[m++]=t.y*_[i]*v[o],a[m++]=t.z*O[i];if(N)for(i=0;i<r;i++)for(o=0;o<c;o++)a[m++]=n.x*_[i]*E[o],a[m++]=n.y*_[i]*v[o],a[m++]=n.z*O[i];for(_.length=c,O.length=c,i=0;i<c;i++)R=C+i*(l-C)/(c-1),_[i]=U(R),O[i]=y(R);for(v.length=s,E.length=s,i=0;i<s;i++)L=b+i*(w-b)/(s-1),v[i]=U(L),E[i]=y(L);for(i=0;i<c;i++)for(o=0;o<s;o++)a[m++]=t.x*_[i]*E[o],a[m++]=t.y*_[i]*v[o],a[m++]=t.z*O[i];if(N)for(i=0;i<c;i++)for(o=0;o<s;o++)a[m++]=n.x*_[i]*E[o],a[m++]=n.y*_[i]*v[o],a[m++]=n.z*O[i];for(m=0,i=0;i<r*d;i++){const P=i*c;for(o=0;o<c-1;o++)h[m++]=P+o,h[m++]=P+o+1}let B=r*c*d;for(i=0;i<s;i++)for(o=0;o<c-1;o++)h[m++]=B+i+o*s,h[m++]=B+i+(o+1)*s;if(N)for(B=r*c*d+s*c,i=0;i<s;i++)for(o=0;o<c-1;o++)h[m++]=B+i+o*s,h[m++]=B+i+(o+1)*s;if(N){let P=r*c*d,S=P+c*s;if(J)for(i=0;i<s;i++)h[m++]=P+i,h[m++]=S+i;if(M)for(P+=c*s-s,S+=c*s-s,i=0;i<s;i++)h[m++]=P+i,h[m++]=S+i}const G=new Q.GeometryAttributes({position:new q.GeometryAttribute({componentDatatype:T.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:a})});if(f.defined(e._offsetAttribute)){const P=a.length,S=e._offsetAttribute===Y.GeometryOffsetAttribute.NONE?0:1,V=new Uint8Array(P/3).fill(S);G.applyOffset=new q.GeometryAttribute({componentDatatype:T.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:V})}return new q.Geometry({attributes:G,indices:h,primitiveType:q.PrimitiveType.LINES,boundingSphere:K.BoundingSphere.fromEllipsoid(A),offsetAttribute:e._offsetAttribute})},H.EllipsoidOutlineGeometry=D});
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......@@ -22,4 +22,4 @@
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./Transforms-fae4cdf7","./Matrix2-c788e106","./ComponentDatatype-94a172c0","./defaultValue-77c08f32","./RuntimeError-50f3c270","./GeometryAttribute-4daab906","./GeometryAttributes-a490dcf1","./GeometryOffsetAttribute-62f885db","./IndexDatatype-33d13dff"],(function(t,i,e,n,a,o,r,s,u,m){"use strict";const f=new e.Cartesian3(1,1,1),l=Math.cos,c=Math.sin;function d(t){t=a.defaultValue(t,a.defaultValue.EMPTY_OBJECT);const i=a.defaultValue(t.radii,f),o=a.defaultValue(t.innerRadii,i),r=a.defaultValue(t.minimumClock,0),s=a.defaultValue(t.maximumClock,n.CesiumMath.TWO_PI),u=a.defaultValue(t.minimumCone,0),m=a.defaultValue(t.maximumCone,n.CesiumMath.PI),l=Math.round(a.defaultValue(t.stackPartitions,10)),c=Math.round(a.defaultValue(t.slicePartitions,8)),d=Math.round(a.defaultValue(t.subdivisions,128));this._radii=e.Cartesian3.clone(i),this._innerRadii=e.Cartesian3.clone(o),this._minimumClock=r,this._maximumClock=s,this._minimumCone=u,this._maximumCone=m,this._stackPartitions=l,this._slicePartitions=c,this._subdivisions=d,this._offsetAttribute=t.offsetAttribute,this._workerName="createEllipsoidOutlineGeometry"}d.packedLength=2*e.Cartesian3.packedLength+8,d.pack=function(t,i,n){return n=a.defaultValue(n,0),e.Cartesian3.pack(t._radii,i,n),n+=e.Cartesian3.packedLength,e.Cartesian3.pack(t._innerRadii,i,n),n+=e.Cartesian3.packedLength,i[n++]=t._minimumClock,i[n++]=t._maximumClock,i[n++]=t._minimumCone,i[n++]=t._maximumCone,i[n++]=t._stackPartitions,i[n++]=t._slicePartitions,i[n++]=t._subdivisions,i[n]=a.defaultValue(t._offsetAttribute,-1),i};const C=new e.Cartesian3,_=new e.Cartesian3,p={radii:C,innerRadii:_,minimumClock:void 0,maximumClock:void 0,minimumCone:void 0,maximumCone:void 0,stackPartitions:void 0,slicePartitions:void 0,subdivisions:void 0,offsetAttribute:void 0};d.unpack=function(t,i,n){i=a.defaultValue(i,0);const o=e.Cartesian3.unpack(t,i,C);i+=e.Cartesian3.packedLength;const r=e.Cartesian3.unpack(t,i,_);i+=e.Cartesian3.packedLength;const s=t[i++],u=t[i++],m=t[i++],f=t[i++],l=t[i++],c=t[i++],h=t[i++],y=t[i];return a.defined(n)?(n._radii=e.Cartesian3.clone(o,n._radii),n._innerRadii=e.Cartesian3.clone(r,n._innerRadii),n._minimumClock=s,n._maximumClock=u,n._minimumCone=m,n._maximumCone=f,n._stackPartitions=l,n._slicePartitions=c,n._subdivisions=h,n._offsetAttribute=-1===y?void 0:y,n):(p.minimumClock=s,p.maximumClock=u,p.minimumCone=m,p.maximumCone=f,p.stackPartitions=l,p.slicePartitions=c,p.subdivisions=h,p.offsetAttribute=-1===y?void 0:y,new d(p))},d.createGeometry=function(t){const o=t._radii;if(o.x<=0||o.y<=0||o.z<=0)return;const f=t._innerRadii;if(f.x<=0||f.y<=0||f.z<=0)return;const d=t._minimumClock,C=t._maximumClock,_=t._minimumCone,p=t._maximumCone,h=t._subdivisions,y=e.Ellipsoid.fromCartesian3(o);let k=t._slicePartitions+1,b=t._stackPartitions+1;k=Math.round(k*Math.abs(C-d)/n.CesiumMath.TWO_PI),b=Math.round(b*Math.abs(p-_)/n.CesiumMath.PI),k<2&&(k=2),b<2&&(b=2);let x=0,A=1;const P=f.x!==o.x||f.y!==o.y||f.z!==o.z;let v=!1,M=!1;P&&(A=2,_>0&&(v=!0,x+=k),p<Math.PI&&(M=!0,x+=k));const w=h*A*(b+k),V=new Float64Array(3*w),g=2*(w+x-(k+b)*A),E=m.IndexDatatype.createTypedArray(w,g);let G,O,D,I,T=0;const z=new Array(b),L=new Array(b);for(G=0;G<b;G++)I=_+G*(p-_)/(b-1),z[G]=c(I),L[G]=l(I);const R=new Array(h),N=new Array(h);for(G=0;G<h;G++)D=d+G*(C-d)/(h-1),R[G]=c(D),N[G]=l(D);for(G=0;G<b;G++)for(O=0;O<h;O++)V[T++]=o.x*z[G]*N[O],V[T++]=o.y*z[G]*R[O],V[T++]=o.z*L[G];if(P)for(G=0;G<b;G++)for(O=0;O<h;O++)V[T++]=f.x*z[G]*N[O],V[T++]=f.y*z[G]*R[O],V[T++]=f.z*L[G];for(z.length=h,L.length=h,G=0;G<h;G++)I=_+G*(p-_)/(h-1),z[G]=c(I),L[G]=l(I);for(R.length=k,N.length=k,G=0;G<k;G++)D=d+G*(C-d)/(k-1),R[G]=c(D),N[G]=l(D);for(G=0;G<h;G++)for(O=0;O<k;O++)V[T++]=o.x*z[G]*N[O],V[T++]=o.y*z[G]*R[O],V[T++]=o.z*L[G];if(P)for(G=0;G<h;G++)for(O=0;O<k;O++)V[T++]=f.x*z[G]*N[O],V[T++]=f.y*z[G]*R[O],V[T++]=f.z*L[G];for(T=0,G=0;G<b*A;G++){const t=G*h;for(O=0;O<h-1;O++)E[T++]=t+O,E[T++]=t+O+1}let B=b*h*A;for(G=0;G<k;G++)for(O=0;O<h-1;O++)E[T++]=B+G+O*k,E[T++]=B+G+(O+1)*k;if(P)for(B=b*h*A+k*h,G=0;G<k;G++)for(O=0;O<h-1;O++)E[T++]=B+G+O*k,E[T++]=B+G+(O+1)*k;if(P){let t=b*h*A,i=t+h*k;if(v)for(G=0;G<k;G++)E[T++]=t+G,E[T++]=i+G;if(M)for(t+=h*k-k,i+=h*k-k,G=0;G<k;G++)E[T++]=t+G,E[T++]=i+G}const S=new s.GeometryAttributes({position:new r.GeometryAttribute({componentDatatype:n.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:V})});if(a.defined(t._offsetAttribute)){const i=V.length,e=t._offsetAttribute===u.GeometryOffsetAttribute.NONE?0:1,a=new Uint8Array(i/3).fill(e);S.applyOffset=new r.GeometryAttribute({componentDatatype:n.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:a})}return new r.Geometry({attributes:S,indices:E,primitiveType:r.PrimitiveType.LINES,boundingSphere:i.BoundingSphere.fromEllipsoid(y),offsetAttribute:t._offsetAttribute})},t.EllipsoidOutlineGeometry=d}));
define(["exports","./Transforms-e2b46a6c","./Matrix2-f4a72982","./ComponentDatatype-cb7120fd","./defaultValue-ff4e651f","./RuntimeError-ed67c927","./GeometryAttribute-7b85a4f4","./GeometryAttributes-9da88d6e","./GeometryOffsetAttribute-a6457b88","./IndexDatatype-5062f28c"],(function(t,i,e,n,a,o,r,s,u,m){"use strict";const f=new e.Cartesian3(1,1,1),l=Math.cos,c=Math.sin;function d(t){t=a.defaultValue(t,a.defaultValue.EMPTY_OBJECT);const i=a.defaultValue(t.radii,f),o=a.defaultValue(t.innerRadii,i),r=a.defaultValue(t.minimumClock,0),s=a.defaultValue(t.maximumClock,n.CesiumMath.TWO_PI),u=a.defaultValue(t.minimumCone,0),m=a.defaultValue(t.maximumCone,n.CesiumMath.PI),l=Math.round(a.defaultValue(t.stackPartitions,10)),c=Math.round(a.defaultValue(t.slicePartitions,8)),d=Math.round(a.defaultValue(t.subdivisions,128));this._radii=e.Cartesian3.clone(i),this._innerRadii=e.Cartesian3.clone(o),this._minimumClock=r,this._maximumClock=s,this._minimumCone=u,this._maximumCone=m,this._stackPartitions=l,this._slicePartitions=c,this._subdivisions=d,this._offsetAttribute=t.offsetAttribute,this._workerName="createEllipsoidOutlineGeometry"}d.packedLength=2*e.Cartesian3.packedLength+8,d.pack=function(t,i,n){return n=a.defaultValue(n,0),e.Cartesian3.pack(t._radii,i,n),n+=e.Cartesian3.packedLength,e.Cartesian3.pack(t._innerRadii,i,n),n+=e.Cartesian3.packedLength,i[n++]=t._minimumClock,i[n++]=t._maximumClock,i[n++]=t._minimumCone,i[n++]=t._maximumCone,i[n++]=t._stackPartitions,i[n++]=t._slicePartitions,i[n++]=t._subdivisions,i[n]=a.defaultValue(t._offsetAttribute,-1),i};const C=new e.Cartesian3,_=new e.Cartesian3,p={radii:C,innerRadii:_,minimumClock:void 0,maximumClock:void 0,minimumCone:void 0,maximumCone:void 0,stackPartitions:void 0,slicePartitions:void 0,subdivisions:void 0,offsetAttribute:void 0};d.unpack=function(t,i,n){i=a.defaultValue(i,0);const o=e.Cartesian3.unpack(t,i,C);i+=e.Cartesian3.packedLength;const r=e.Cartesian3.unpack(t,i,_);i+=e.Cartesian3.packedLength;const s=t[i++],u=t[i++],m=t[i++],f=t[i++],l=t[i++],c=t[i++],h=t[i++],y=t[i];return a.defined(n)?(n._radii=e.Cartesian3.clone(o,n._radii),n._innerRadii=e.Cartesian3.clone(r,n._innerRadii),n._minimumClock=s,n._maximumClock=u,n._minimumCone=m,n._maximumCone=f,n._stackPartitions=l,n._slicePartitions=c,n._subdivisions=h,n._offsetAttribute=-1===y?void 0:y,n):(p.minimumClock=s,p.maximumClock=u,p.minimumCone=m,p.maximumCone=f,p.stackPartitions=l,p.slicePartitions=c,p.subdivisions=h,p.offsetAttribute=-1===y?void 0:y,new d(p))},d.createGeometry=function(t){const o=t._radii;if(o.x<=0||o.y<=0||o.z<=0)return;const f=t._innerRadii;if(f.x<=0||f.y<=0||f.z<=0)return;const d=t._minimumClock,C=t._maximumClock,_=t._minimumCone,p=t._maximumCone,h=t._subdivisions,y=e.Ellipsoid.fromCartesian3(o);let b=t._slicePartitions+1,k=t._stackPartitions+1;b=Math.round(b*Math.abs(C-d)/n.CesiumMath.TWO_PI),k=Math.round(k*Math.abs(p-_)/n.CesiumMath.PI),b<2&&(b=2),k<2&&(k=2);let x=0,A=1;const P=f.x!==o.x||f.y!==o.y||f.z!==o.z;let v=!1,M=!1;P&&(A=2,_>0&&(v=!0,x+=b),p<Math.PI&&(M=!0,x+=b));const w=h*A*(k+b),V=new Float64Array(3*w),g=2*(w+x-(b+k)*A),E=m.IndexDatatype.createTypedArray(w,g);let G,O,D,I,T=0;const z=new Array(k),L=new Array(k);for(G=0;G<k;G++)I=_+G*(p-_)/(k-1),z[G]=c(I),L[G]=l(I);const R=new Array(h),N=new Array(h);for(G=0;G<h;G++)D=d+G*(C-d)/(h-1),R[G]=c(D),N[G]=l(D);for(G=0;G<k;G++)for(O=0;O<h;O++)V[T++]=o.x*z[G]*N[O],V[T++]=o.y*z[G]*R[O],V[T++]=o.z*L[G];if(P)for(G=0;G<k;G++)for(O=0;O<h;O++)V[T++]=f.x*z[G]*N[O],V[T++]=f.y*z[G]*R[O],V[T++]=f.z*L[G];for(z.length=h,L.length=h,G=0;G<h;G++)I=_+G*(p-_)/(h-1),z[G]=c(I),L[G]=l(I);for(R.length=b,N.length=b,G=0;G<b;G++)D=d+G*(C-d)/(b-1),R[G]=c(D),N[G]=l(D);for(G=0;G<h;G++)for(O=0;O<b;O++)V[T++]=o.x*z[G]*N[O],V[T++]=o.y*z[G]*R[O],V[T++]=o.z*L[G];if(P)for(G=0;G<h;G++)for(O=0;O<b;O++)V[T++]=f.x*z[G]*N[O],V[T++]=f.y*z[G]*R[O],V[T++]=f.z*L[G];for(T=0,G=0;G<k*A;G++){const t=G*h;for(O=0;O<h-1;O++)E[T++]=t+O,E[T++]=t+O+1}let B=k*h*A;for(G=0;G<b;G++)for(O=0;O<h-1;O++)E[T++]=B+G+O*b,E[T++]=B+G+(O+1)*b;if(P)for(B=k*h*A+b*h,G=0;G<b;G++)for(O=0;O<h-1;O++)E[T++]=B+G+O*b,E[T++]=B+G+(O+1)*b;if(P){let t=k*h*A,i=t+h*b;if(v)for(G=0;G<b;G++)E[T++]=t+G,E[T++]=i+G;if(M)for(t+=h*b-b,i+=h*b-b,G=0;G<b;G++)E[T++]=t+G,E[T++]=i+G}const S=new s.GeometryAttributes({position:new r.GeometryAttribute({componentDatatype:n.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:V})});if(a.defined(t._offsetAttribute)){const i=V.length,e=t._offsetAttribute===u.GeometryOffsetAttribute.NONE?0:1,a=new Uint8Array(i/3).fill(e);S.applyOffset=new r.GeometryAttribute({componentDatatype:n.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:a})}return new r.Geometry({attributes:S,indices:E,primitiveType:r.PrimitiveType.LINES,boundingSphere:i.BoundingSphere.fromEllipsoid(y),offsetAttribute:t._offsetAttribute})},t.EllipsoidOutlineGeometry=d}));
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Columbus View (Pat. Pend.)
*
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./Matrix2-4706dd70","./RuntimeError-a977b8e0","./defaultValue-028a8a27","./ComponentDatatype-438cad2a"],function(w,r,P,l,e){"use strict";function E(t,s,h){if(t===0)return s*h;const i=t*t,n=i*i,a=n*i,u=a*i,d=u*i,c=d*i,o=h,M=Math.sin(2*o),g=Math.sin(4*o),f=Math.sin(6*o),_=Math.sin(8*o),S=Math.sin(10*o),T=Math.sin(12*o);return s*((1-i/4-3*n/64-5*a/256-175*u/16384-441*d/65536-4851*c/1048576)*o-(3*i/8+3*n/32+45*a/1024+105*u/4096+2205*d/131072+6237*c/524288)*M+(15*n/256+45*a/1024+525*u/16384+1575*d/65536+155925*c/8388608)*g-(35*a/3072+175*u/12288+3675*d/262144+13475*c/1048576)*f+(315*u/131072+2205*d/524288+43659*c/8388608)*_-(693*d/1310720+6237*c/5242880)*S+1001*c/8388608*T)}function v(t,s,h){const i=t/h;if(s===0)return i;const n=i*i,a=n*i,u=a*i,d=s,c=d*d,o=c*c,M=o*c,g=M*c,f=g*c,_=f*c,S=Math.sin(2*i),T=Math.cos(2*i),N=Math.sin(4*i),U=Math.cos(4*i),V=Math.sin(6*i),H=Math.cos(6*i),z=Math.sin(8*i),G=Math.cos(8*i),A=Math.sin(10*i),B=Math.cos(10*i),F=Math.sin(12*i);return i+i*c/4+7*i*o/64+15*i*M/256+579*i*g/16384+1515*i*f/65536+16837*i*_/1048576+(3*i*o/16+45*i*M/256-i*(32*n-561)*g/4096-i*(232*n-1677)*f/16384+i*(399985-90560*n+512*u)*_/5242880)*T+(21*i*M/256+483*i*g/4096-i*(224*n-1969)*f/16384-i*(33152*n-112599)*_/1048576)*U+(151*i*g/4096+4681*i*f/65536+1479*i*_/16384-453*a*_/32768)*H+(1097*i*f/65536+42783*i*_/1048576)*G+8011*i*_/1048576*B+(3*c/8+3*o/16+213*M/2048-3*n*M/64+255*g/4096-33*n*g/512+20861*f/524288-33*n*f/512+u*f/1024+28273*_/1048576-471*n*_/8192+9*u*_/4096)*S+(21*o/256+21*M/256+533*g/8192-21*n*g/512+197*f/4096-315*n*f/4096+584039*_/16777216-12517*n*_/131072+7*u*_/2048)*N+(151*M/6144+151*g/4096+5019*f/131072-453*n*f/16384+26965*_/786432-8607*n*_/131072)*V+(1097*g/131072+1097*f/65536+225797*_/10485760-1097*n*_/65536)*z+(8011*f/2621440+8011*_/1048576)*A+293393*_/251658240*F}function C(t,s){if(t===0)return Math.log(Math.tan(.5*(e.CesiumMath.PI_OVER_TWO+s)));const h=t*Math.sin(s);return Math.log(Math.tan(.5*(e.CesiumMath.PI_OVER_TWO+s)))-t/2*Math.log((1+h)/(1-h))}function W(t,s,h,i,n){const a=C(t._ellipticity,h),u=C(t._ellipticity,n);return Math.atan2(e.CesiumMath.negativePiToPi(i-s),u-a)}function k(t,s,h,i,n,a,u){const d=t._heading,c=a-i;let o=0;if(e.CesiumMath.equalsEpsilon(Math.abs(d),e.CesiumMath.PI_OVER_TWO,e.CesiumMath.EPSILON8))if(s===h)o=s*Math.cos(n)*e.CesiumMath.negativePiToPi(c);else{const M=Math.sin(n);o=s*Math.cos(n)*e.CesiumMath.negativePiToPi(c)/Math.sqrt(1-t._ellipticitySquared*M*M)}else{const M=E(t._ellipticity,s,n);o=(E(t._ellipticity,s,u)-M)/Math.cos(d)}return Math.abs(o)}const b=new r.Cartesian3,I=new r.Cartesian3;function m(t,s,h,i){const n=r.Cartesian3.normalize(i.cartographicToCartesian(s,I),b),a=r.Cartesian3.normalize(i.cartographicToCartesian(h,I),I);P.Check.typeOf.number.greaterThanOrEquals("value",Math.abs(Math.abs(r.Cartesian3.angleBetween(n,a))-Math.PI),.0125);const u=i.maximumRadius,d=i.minimumRadius,c=u*u,o=d*d;t._ellipticitySquared=(c-o)/c,t._ellipticity=Math.sqrt(t._ellipticitySquared),t._start=r.Cartographic.clone(s,t._start),t._start.height=0,t._end=r.Cartographic.clone(h,t._end),t._end.height=0,t._heading=W(t,s.longitude,s.latitude,h.longitude,h.latitude),t._distance=k(t,i.maximumRadius,i.minimumRadius,s.longitude,s.latitude,h.longitude,h.latitude)}function q(t,s,h,i,n,a){if(h===0)return r.Cartographic.clone(t,a);const u=n*n;let d,c,o;if(Math.abs(e.CesiumMath.PI_OVER_TWO-Math.abs(s))>e.CesiumMath.EPSILON8){const M=E(n,i,t.latitude),g=h*Math.cos(s),f=M+g;c=v(f,n,i);const _=C(n,t.latitude),S=C(n,c);o=Math.tan(s)*(S-_),d=e.CesiumMath.negativePiToPi(t.longitude+o)}else{c=t.latitude;let M;if(n===0)M=i*Math.cos(t.latitude);else{const g=Math.sin(t.latitude);M=i*Math.cos(t.latitude)/Math.sqrt(1-u*g*g)}o=h/M,s>0?d=e.CesiumMath.negativePiToPi(t.longitude+o):d=e.CesiumMath.negativePiToPi(t.longitude-o)}return l.defined(a)?(a.longitude=d,a.latitude=c,a.height=0,a):new r.Cartographic(d,c,0)}function O(t,s,h){const i=l.defaultValue(h,r.Ellipsoid.WGS84);this._ellipsoid=i,this._start=new r.Cartographic,this._end=new r.Cartographic,this._heading=void 0,this._distance=void 0,this._ellipticity=void 0,this._ellipticitySquared=void 0,l.defined(t)&&l.defined(s)&&m(this,t,s,i)}Object.defineProperties(O.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},surfaceDistance:{get:function(){return P.Check.defined("distance",this._distance),this._distance}},start:{get:function(){return this._start}},end:{get:function(){return this._end}},heading:{get:function(){return P.Check.defined("distance",this._distance),this._heading}}}),O.fromStartHeadingDistance=function(t,s,h,i,n){P.Check.defined("start",t),P.Check.defined("heading",s),P.Check.defined("distance",h),P.Check.typeOf.number.greaterThan("distance",h,0);const a=l.defaultValue(i,r.Ellipsoid.WGS84),u=a.maximumRadius,d=a.minimumRadius,c=u*u,o=d*d,M=Math.sqrt((c-o)/c);s=e.CesiumMath.negativePiToPi(s);const g=q(t,s,h,a.maximumRadius,M);return!l.defined(n)||l.defined(i)&&!i.equals(n.ellipsoid)?new O(t,g,a):(n.setEndPoints(t,g),n)},O.prototype.setEndPoints=function(t,s){P.Check.defined("start",t),P.Check.defined("end",s),m(this,t,s,this._ellipsoid)},O.prototype.interpolateUsingFraction=function(t,s){return this.interpolateUsingSurfaceDistance(t*this._distance,s)},O.prototype.interpolateUsingSurfaceDistance=function(t,s){if(P.Check.typeOf.number("distance",t),!l.defined(this._distance)||this._distance===0)throw new P.DeveloperError("EllipsoidRhumbLine must have distinct start and end set.");return q(this._start,this._heading,t,this._ellipsoid.maximumRadius,this._ellipticity,s)},O.prototype.findIntersectionWithLongitude=function(t,s){if(P.Check.typeOf.number("intersectionLongitude",t),!l.defined(this._distance)||this._distance===0)throw new P.DeveloperError("EllipsoidRhumbLine must have distinct start and end set.");const h=this._ellipticity,i=this._heading,n=Math.abs(i),a=this._start;if(t=e.CesiumMath.negativePiToPi(t),e.CesiumMath.equalsEpsilon(Math.abs(t),Math.PI,e.CesiumMath.EPSILON14)&&(t=e.CesiumMath.sign(a.longitude)*Math.PI),l.defined(s)||(s=new r.Cartographic),Math.abs(e.CesiumMath.PI_OVER_TWO-n)<=e.CesiumMath.EPSILON8)return s.longitude=t,s.latitude=a.latitude,s.height=0,s;if(e.CesiumMath.equalsEpsilon(Math.abs(e.CesiumMath.PI_OVER_TWO-n),e.CesiumMath.PI_OVER_TWO,e.CesiumMath.EPSILON8))return e.CesiumMath.equalsEpsilon(t,a.longitude,e.CesiumMath.EPSILON12)?void 0:(s.longitude=t,s.latitude=e.CesiumMath.PI_OVER_TWO*e.CesiumMath.sign(e.CesiumMath.PI_OVER_TWO-i),s.height=0,s);const u=a.latitude,d=h*Math.sin(u),c=Math.tan(.5*(e.CesiumMath.PI_OVER_TWO+u))*Math.exp((t-a.longitude)/Math.tan(i)),o=(1+d)/(1-d);let M=a.latitude,g;do{g=M;const f=h*Math.sin(g),_=(1+f)/(1-f);M=2*Math.atan(c*Math.pow(_/o,h/2))-e.CesiumMath.PI_OVER_TWO}while(!e.CesiumMath.equalsEpsilon(M,g,e.CesiumMath.EPSILON12));return s.longitude=t,s.latitude=M,s.height=0,s},O.prototype.findIntersectionWithLatitude=function(t,s){if(P.Check.typeOf.number("intersectionLatitude",t),!l.defined(this._distance)||this._distance===0)throw new P.DeveloperError("EllipsoidRhumbLine must have distinct start and end set.");const h=this._ellipticity,i=this._heading,n=this._start;if(e.CesiumMath.equalsEpsilon(Math.abs(i),e.CesiumMath.PI_OVER_TWO,e.CesiumMath.EPSILON8))return;const a=C(h,n.latitude),u=C(h,t),d=Math.tan(i)*(u-a),c=e.CesiumMath.negativePiToPi(n.longitude+d);return l.defined(s)?(s.longitude=c,s.latitude=t,s.height=0,s):new r.Cartographic(c,t,0)},w.EllipsoidRhumbLine=O});
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Columbus View (Pat. Pend.)
*
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./AxisAlignedBoundingBox-ca05cfa4","./Matrix2-4706dd70","./RuntimeError-a977b8e0","./defaultValue-028a8a27","./IntersectionTests-54d7f8a4","./Plane-f4cd36d8","./Transforms-66eda18c"],function(g,P,o,d,s,h,l,_){"use strict";const C=new o.Cartesian4;function a(e,n){if(d.Check.defined("origin",e),n=s.defaultValue(n,o.Ellipsoid.WGS84),e=n.scaleToGeodeticSurface(e),!s.defined(e))throw new d.DeveloperError("origin must not be at the center of the ellipsoid.");const t=_.Transforms.eastNorthUpToFixedFrame(e,n);this._ellipsoid=n,this._origin=e,this._xAxis=o.Cartesian3.fromCartesian4(o.Matrix4.getColumn(t,0,C)),this._yAxis=o.Cartesian3.fromCartesian4(o.Matrix4.getColumn(t,1,C));const i=o.Cartesian3.fromCartesian4(o.Matrix4.getColumn(t,2,C));this._plane=l.Plane.fromPointNormal(e,i)}Object.defineProperties(a.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},origin:{get:function(){return this._origin}},plane:{get:function(){return this._plane}},xAxis:{get:function(){return this._xAxis}},yAxis:{get:function(){return this._yAxis}},zAxis:{get:function(){return this._plane.normal}}});const A=new P.AxisAlignedBoundingBox;a.fromPoints=function(e,n){d.Check.defined("cartesians",e);const t=P.AxisAlignedBoundingBox.fromPoints(e,A);return new a(t.center,n)};const y=new h.Ray,p=new o.Cartesian3;a.prototype.projectPointOntoPlane=function(e,n){d.Check.defined("cartesian",e);const t=y;t.origin=e,o.Cartesian3.normalize(e,t.direction);let i=h.IntersectionTests.rayPlane(t,this._plane,p);if(s.defined(i)||(o.Cartesian3.negate(t.direction,t.direction),i=h.IntersectionTests.rayPlane(t,this._plane,p)),s.defined(i)){const c=o.Cartesian3.subtract(i,this._origin,i),r=o.Cartesian3.dot(this._xAxis,c),f=o.Cartesian3.dot(this._yAxis,c);return s.defined(n)?(n.x=r,n.y=f,n):new o.Cartesian2(r,f)}},a.prototype.projectPointsOntoPlane=function(e,n){d.Check.defined("cartesians",e),s.defined(n)||(n=[]);let t=0;const i=e.length;for(let c=0;c<i;c++){const r=this.projectPointOntoPlane(e[c],n[t]);s.defined(r)&&(n[t]=r,t++)}return n.length=t,n},a.prototype.projectPointToNearestOnPlane=function(e,n){d.Check.defined("cartesian",e),s.defined(n)||(n=new o.Cartesian2);const t=y;t.origin=e,o.Cartesian3.clone(this._plane.normal,t.direction);let i=h.IntersectionTests.rayPlane(t,this._plane,p);s.defined(i)||(o.Cartesian3.negate(t.direction,t.direction),i=h.IntersectionTests.rayPlane(t,this._plane,p));const c=o.Cartesian3.subtract(i,this._origin,i),r=o.Cartesian3.dot(this._xAxis,c),f=o.Cartesian3.dot(this._yAxis,c);return n.x=r,n.y=f,n},a.prototype.projectPointsToNearestOnPlane=function(e,n){d.Check.defined("cartesians",e),s.defined(n)||(n=[]);const t=e.length;n.length=t;for(let i=0;i<t;i++)n[i]=this.projectPointToNearestOnPlane(e[i],n[i]);return n};const m=new o.Cartesian3;a.prototype.projectPointOntoEllipsoid=function(e,n){d.Check.defined("cartesian",e),s.defined(n)||(n=new o.Cartesian3);const t=this._ellipsoid,i=this._origin,c=this._xAxis,r=this._yAxis,f=m;return o.Cartesian3.multiplyByScalar(c,e.x,f),n=o.Cartesian3.add(i,f,n),o.Cartesian3.multiplyByScalar(r,e.y,f),o.Cartesian3.add(n,f,n),t.scaleToGeocentricSurface(n,n),n},a.prototype.projectPointsOntoEllipsoid=function(e,n){d.Check.defined("cartesians",e);const t=e.length;s.defined(n)?n.length=t:n=new Array(t);for(let i=0;i<t;++i)n[i]=this.projectPointOntoEllipsoid(e[i],n[i]);return n},g.EllipsoidTangentPlane=a});
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......@@ -22,4 +22,4 @@
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./AxisAlignedBoundingBox-f7daa7b3","./Matrix2-c788e106","./RuntimeError-50f3c270","./defaultValue-77c08f32","./IntersectionTests-8b7c8657","./Plane-f81558db","./Transforms-fae4cdf7"],(function(t,n,e,i,o,r,s,a){"use strict";const l=new e.Cartesian4;function c(t,n){t=(n=o.defaultValue(n,e.Ellipsoid.WGS84)).scaleToGeodeticSurface(t);const i=a.Transforms.eastNorthUpToFixedFrame(t,n);this._ellipsoid=n,this._origin=t,this._xAxis=e.Cartesian3.fromCartesian4(e.Matrix4.getColumn(i,0,l)),this._yAxis=e.Cartesian3.fromCartesian4(e.Matrix4.getColumn(i,1,l));const r=e.Cartesian3.fromCartesian4(e.Matrix4.getColumn(i,2,l));this._plane=s.Plane.fromPointNormal(t,r)}Object.defineProperties(c.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},origin:{get:function(){return this._origin}},plane:{get:function(){return this._plane}},xAxis:{get:function(){return this._xAxis}},yAxis:{get:function(){return this._yAxis}},zAxis:{get:function(){return this._plane.normal}}});const d=new n.AxisAlignedBoundingBox;c.fromPoints=function(t,e){return new c(n.AxisAlignedBoundingBox.fromPoints(t,d).center,e)};const f=new r.Ray,p=new e.Cartesian3;c.prototype.projectPointOntoPlane=function(t,n){const i=f;i.origin=t,e.Cartesian3.normalize(t,i.direction);let s=r.IntersectionTests.rayPlane(i,this._plane,p);if(o.defined(s)||(e.Cartesian3.negate(i.direction,i.direction),s=r.IntersectionTests.rayPlane(i,this._plane,p)),o.defined(s)){const t=e.Cartesian3.subtract(s,this._origin,s),i=e.Cartesian3.dot(this._xAxis,t),r=e.Cartesian3.dot(this._yAxis,t);return o.defined(n)?(n.x=i,n.y=r,n):new e.Cartesian2(i,r)}},c.prototype.projectPointsOntoPlane=function(t,n){o.defined(n)||(n=[]);let e=0;const i=t.length;for(let r=0;r<i;r++){const i=this.projectPointOntoPlane(t[r],n[e]);o.defined(i)&&(n[e]=i,e++)}return n.length=e,n},c.prototype.projectPointToNearestOnPlane=function(t,n){o.defined(n)||(n=new e.Cartesian2);const i=f;i.origin=t,e.Cartesian3.clone(this._plane.normal,i.direction);let s=r.IntersectionTests.rayPlane(i,this._plane,p);o.defined(s)||(e.Cartesian3.negate(i.direction,i.direction),s=r.IntersectionTests.rayPlane(i,this._plane,p));const a=e.Cartesian3.subtract(s,this._origin,s),l=e.Cartesian3.dot(this._xAxis,a),c=e.Cartesian3.dot(this._yAxis,a);return n.x=l,n.y=c,n},c.prototype.projectPointsToNearestOnPlane=function(t,n){o.defined(n)||(n=[]);const e=t.length;n.length=e;for(let i=0;i<e;i++)n[i]=this.projectPointToNearestOnPlane(t[i],n[i]);return n};const u=new e.Cartesian3;c.prototype.projectPointOntoEllipsoid=function(t,n){o.defined(n)||(n=new e.Cartesian3);const i=this._ellipsoid,r=this._origin,s=this._xAxis,a=this._yAxis,l=u;return e.Cartesian3.multiplyByScalar(s,t.x,l),n=e.Cartesian3.add(r,l,n),e.Cartesian3.multiplyByScalar(a,t.y,l),e.Cartesian3.add(n,l,n),i.scaleToGeocentricSurface(n,n),n},c.prototype.projectPointsOntoEllipsoid=function(t,n){const e=t.length;o.defined(n)?n.length=e:n=new Array(e);for(let i=0;i<e;++i)n[i]=this.projectPointOntoEllipsoid(t[i],n[i]);return n},t.EllipsoidTangentPlane=c}));
define(["exports","./AxisAlignedBoundingBox-9370e41b","./Matrix2-f4a72982","./RuntimeError-ed67c927","./defaultValue-ff4e651f","./IntersectionTests-a8d45b72","./Plane-7efd9975","./Transforms-e2b46a6c"],(function(t,n,e,i,o,r,s,a){"use strict";const l=new e.Cartesian4;function c(t,n){t=(n=o.defaultValue(n,e.Ellipsoid.WGS84)).scaleToGeodeticSurface(t);const i=a.Transforms.eastNorthUpToFixedFrame(t,n);this._ellipsoid=n,this._origin=t,this._xAxis=e.Cartesian3.fromCartesian4(e.Matrix4.getColumn(i,0,l)),this._yAxis=e.Cartesian3.fromCartesian4(e.Matrix4.getColumn(i,1,l));const r=e.Cartesian3.fromCartesian4(e.Matrix4.getColumn(i,2,l));this._plane=s.Plane.fromPointNormal(t,r)}Object.defineProperties(c.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},origin:{get:function(){return this._origin}},plane:{get:function(){return this._plane}},xAxis:{get:function(){return this._xAxis}},yAxis:{get:function(){return this._yAxis}},zAxis:{get:function(){return this._plane.normal}}});const d=new n.AxisAlignedBoundingBox;c.fromPoints=function(t,e){return new c(n.AxisAlignedBoundingBox.fromPoints(t,d).center,e)};const f=new r.Ray,p=new e.Cartesian3;c.prototype.projectPointOntoPlane=function(t,n){const i=f;i.origin=t,e.Cartesian3.normalize(t,i.direction);let s=r.IntersectionTests.rayPlane(i,this._plane,p);if(o.defined(s)||(e.Cartesian3.negate(i.direction,i.direction),s=r.IntersectionTests.rayPlane(i,this._plane,p)),o.defined(s)){const t=e.Cartesian3.subtract(s,this._origin,s),i=e.Cartesian3.dot(this._xAxis,t),r=e.Cartesian3.dot(this._yAxis,t);return o.defined(n)?(n.x=i,n.y=r,n):new e.Cartesian2(i,r)}},c.prototype.projectPointsOntoPlane=function(t,n){o.defined(n)||(n=[]);let e=0;const i=t.length;for(let r=0;r<i;r++){const i=this.projectPointOntoPlane(t[r],n[e]);o.defined(i)&&(n[e]=i,e++)}return n.length=e,n},c.prototype.projectPointToNearestOnPlane=function(t,n){o.defined(n)||(n=new e.Cartesian2);const i=f;i.origin=t,e.Cartesian3.clone(this._plane.normal,i.direction);let s=r.IntersectionTests.rayPlane(i,this._plane,p);o.defined(s)||(e.Cartesian3.negate(i.direction,i.direction),s=r.IntersectionTests.rayPlane(i,this._plane,p));const a=e.Cartesian3.subtract(s,this._origin,s),l=e.Cartesian3.dot(this._xAxis,a),c=e.Cartesian3.dot(this._yAxis,a);return n.x=l,n.y=c,n},c.prototype.projectPointsToNearestOnPlane=function(t,n){o.defined(n)||(n=[]);const e=t.length;n.length=e;for(let i=0;i<e;i++)n[i]=this.projectPointToNearestOnPlane(t[i],n[i]);return n};const u=new e.Cartesian3;c.prototype.projectPointOntoEllipsoid=function(t,n){o.defined(n)||(n=new e.Cartesian3);const i=this._ellipsoid,r=this._origin,s=this._xAxis,a=this._yAxis,l=u;return e.Cartesian3.multiplyByScalar(s,t.x,l),n=e.Cartesian3.add(r,l,n),e.Cartesian3.multiplyByScalar(a,t.y,l),e.Cartesian3.add(n,l,n),i.scaleToGeocentricSurface(n,n),n},c.prototype.projectPointsOntoEllipsoid=function(t,n){const e=t.length;o.defined(n)?n.length=e:n=new Array(e);for(let i=0;i<e;++i)n[i]=this.projectPointOntoEllipsoid(t[i],n[i]);return n},t.EllipsoidTangentPlane=c}));
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Columbus View (Pat. Pend.)
*
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./Matrix2-4706dd70","./RuntimeError-a977b8e0","./defaultValue-028a8a27"],function(C,d,i,g){"use strict";function e(){this.high=d.Cartesian3.clone(d.Cartesian3.ZERO),this.low=d.Cartesian3.clone(d.Cartesian3.ZERO)}e.encode=function(n,o){i.Check.typeOf.number("value",n),g.defined(o)||(o={high:0,low:0});let h;return n>=0?(h=Math.floor(n/65536)*65536,o.high=h,o.low=n-h):(h=Math.floor(-n/65536)*65536,o.high=-h,o.low=n+h),o};const c={high:0,low:0};e.fromCartesian=function(n,o){i.Check.typeOf.object("cartesian",n),g.defined(o)||(o=new e);const h=o.high,f=o.low;return e.encode(n.x,c),h.x=c.high,f.x=c.low,e.encode(n.y,c),h.y=c.high,f.y=c.low,e.encode(n.z,c),h.z=c.high,f.z=c.low,o};const t=new e;e.writeElements=function(n,o,h){i.Check.defined("cartesianArray",o),i.Check.typeOf.number("index",h),i.Check.typeOf.number.greaterThanOrEquals("index",h,0),e.fromCartesian(n,t);const f=t.high,w=t.low;o[h]=f.x,o[h+1]=f.y,o[h+2]=f.z,o[h+3]=w.x,o[h+4]=w.y,o[h+5]=w.z},C.EncodedCartesian3=e});
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......@@ -22,4 +22,4 @@
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./Matrix2-c788e106","./RuntimeError-50f3c270","./defaultValue-77c08f32"],(function(e,n,o,i){"use strict";function t(){this.high=n.Cartesian3.clone(n.Cartesian3.ZERO),this.low=n.Cartesian3.clone(n.Cartesian3.ZERO)}t.encode=function(e,n){let o;return i.defined(n)||(n={high:0,low:0}),e>=0?(o=65536*Math.floor(e/65536),n.high=o,n.low=e-o):(o=65536*Math.floor(-e/65536),n.high=-o,n.low=e+o),n};const h={high:0,low:0};t.fromCartesian=function(e,n){i.defined(n)||(n=new t);const o=n.high,r=n.low;return t.encode(e.x,h),o.x=h.high,r.x=h.low,t.encode(e.y,h),o.y=h.high,r.y=h.low,t.encode(e.z,h),o.z=h.high,r.z=h.low,n};const r=new t;t.writeElements=function(e,n,o){t.fromCartesian(e,r);const i=r.high,h=r.low;n[o]=i.x,n[o+1]=i.y,n[o+2]=i.z,n[o+3]=h.x,n[o+4]=h.y,n[o+5]=h.z},e.EncodedCartesian3=t}));
define(["exports","./Matrix2-f4a72982","./RuntimeError-ed67c927","./defaultValue-ff4e651f"],(function(e,n,o,i){"use strict";function t(){this.high=n.Cartesian3.clone(n.Cartesian3.ZERO),this.low=n.Cartesian3.clone(n.Cartesian3.ZERO)}t.encode=function(e,n){let o;return i.defined(n)||(n={high:0,low:0}),e>=0?(o=65536*Math.floor(e/65536),n.high=o,n.low=e-o):(o=65536*Math.floor(-e/65536),n.high=-o,n.low=e+o),n};const h={high:0,low:0};t.fromCartesian=function(e,n){i.defined(n)||(n=new t);const o=n.high,r=n.low;return t.encode(e.x,h),o.x=h.high,r.x=h.low,t.encode(e.y,h),o.y=h.high,r.y=h.low,t.encode(e.z,h),o.z=h.high,r.z=h.low,n};const r=new t;t.writeElements=function(e,n,o){t.fromCartesian(e,r);const i=r.high,h=r.low;n[o]=i.x,n[o+1]=i.y,n[o+2]=i.z,n[o+3]=h.x,n[o+4]=h.y,n[o+5]=h.z},e.EncodedCartesian3=t}));
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Columbus View (Pat. Pend.)
*
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./Matrix2-4706dd70","./RuntimeError-a977b8e0","./defaultValue-028a8a27","./WebGLConstants-0ff1ce58","./Transforms-66eda18c"],function(T,e,u,s,I,S){"use strict";var d=Object.freeze({NONE:0,TRIANGLES:1,LINES:2,POLYLINES:3});const n={POINTS:I.WebGLConstants.POINTS,LINES:I.WebGLConstants.LINES,LINE_LOOP:I.WebGLConstants.LINE_LOOP,LINE_STRIP:I.WebGLConstants.LINE_STRIP,TRIANGLES:I.WebGLConstants.TRIANGLES,TRIANGLE_STRIP:I.WebGLConstants.TRIANGLE_STRIP,TRIANGLE_FAN:I.WebGLConstants.TRIANGLE_FAN};n.isLines=function(t){return t===n.LINES||t===n.LINE_LOOP||t===n.LINE_STRIP},n.isTriangles=function(t){return t===n.TRIANGLES||t===n.TRIANGLE_STRIP||t===n.TRIANGLE_FAN},n.validate=function(t){return t===n.POINTS||t===n.LINES||t===n.LINE_LOOP||t===n.LINE_STRIP||t===n.TRIANGLES||t===n.TRIANGLE_STRIP||t===n.TRIANGLE_FAN};var l=Object.freeze(n);function A(t){t=s.defaultValue(t,s.defaultValue.EMPTY_OBJECT),u.Check.typeOf.object("options.attributes",t.attributes),this.attributes=t.attributes,this.indices=t.indices,this.primitiveType=s.defaultValue(t.primitiveType,l.TRIANGLES),this.boundingSphere=t.boundingSphere,this.geometryType=s.defaultValue(t.geometryType,d.NONE),this.boundingSphereCV=t.boundingSphereCV,this.offsetAttribute=t.offsetAttribute}A.computeNumberOfVertices=function(t){u.Check.typeOf.object("geometry",t);let N=-1;for(const i in t.attributes)if(t.attributes.hasOwnProperty(i)&&s.defined(t.attributes[i])&&s.defined(t.attributes[i].values)){const a=t.attributes[i],r=a.values.length/a.componentsPerAttribute;if(N!==r&&N!==-1)throw new u.DeveloperError("All attribute lists must have the same number of attributes.");N=r}return N};const G=new e.Cartographic,O=new e.Cartesian3,w=new e.Matrix4,_=[new e.Cartographic,new e.Cartographic,new e.Cartographic],g=[new e.Cartesian2,new e.Cartesian2,new e.Cartesian2],R=[new e.Cartesian2,new e.Cartesian2,new e.Cartesian2],D=new e.Cartesian3,F=new S.Quaternion,v=new e.Matrix4,Y=new e.Matrix2;A._textureCoordinateRotationPoints=function(t,N,i,a){let r;const x=e.Rectangle.center(a,G),B=e.Cartographic.toCartesian(x,i,O),k=S.Transforms.eastNorthUpToFixedFrame(B,i,w),p=e.Matrix4.inverse(k,w),b=g,h=_;h[0].longitude=a.west,h[0].latitude=a.south,h[1].longitude=a.west,h[1].latitude=a.north,h[2].longitude=a.east,h[2].latitude=a.south;let o=D;for(r=0;r<3;r++)e.Cartographic.toCartesian(h[r],i,o),o=e.Matrix4.multiplyByPointAsVector(p,o,o),b[r].x=o.x,b[r].y=o.y;const j=S.Quaternion.fromAxisAngle(e.Cartesian3.UNIT_Z,-N,F),z=e.Matrix3.fromQuaternion(j,v),X=t.length;let m=Number.POSITIVE_INFINITY,P=Number.POSITIVE_INFINITY,L=Number.NEGATIVE_INFINITY,y=Number.NEGATIVE_INFINITY;for(r=0;r<X;r++)o=e.Matrix4.multiplyByPointAsVector(p,t[r],o),o=e.Matrix3.multiplyByVector(z,o,o),m=Math.min(m,o.x),P=Math.min(P,o.y),L=Math.max(L,o.x),y=Math.max(y,o.y);const q=e.Matrix2.fromRotation(N,Y),c=R;c[0].x=m,c[0].y=P,c[1].x=m,c[1].y=y,c[2].x=L,c[2].y=P;const f=b[0],Q=b[2].x-f.x,W=b[1].y-f.y;for(r=0;r<3;r++){const E=c[r];e.Matrix2.multiplyByVector(q,E,E),E.x=(E.x-f.x)/Q,E.y=(E.y-f.y)/W}const J=c[0],U=c[1],$=c[2],C=new Array(6);return e.Cartesian2.pack(J,C),e.Cartesian2.pack(U,C,2),e.Cartesian2.pack($,C,4),C};function V(t){if(t=s.defaultValue(t,s.defaultValue.EMPTY_OBJECT),!s.defined(t.componentDatatype))throw new u.DeveloperError("options.componentDatatype is required.");if(!s.defined(t.componentsPerAttribute))throw new u.DeveloperError("options.componentsPerAttribute is required.");if(t.componentsPerAttribute<1||t.componentsPerAttribute>4)throw new u.DeveloperError("options.componentsPerAttribute must be between 1 and 4.");if(!s.defined(t.values))throw new u.DeveloperError("options.values is required.");this.componentDatatype=t.componentDatatype,this.componentsPerAttribute=t.componentsPerAttribute,this.normalize=s.defaultValue(t.normalize,!1),this.values=t.values}T.Geometry=A,T.GeometryAttribute=V,T.GeometryType=d,T.PrimitiveType=l});
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......@@ -22,4 +22,4 @@
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./Matrix2-c788e106","./RuntimeError-50f3c270","./defaultValue-77c08f32","./WebGLConstants-cbf0dab7","./Transforms-fae4cdf7"],(function(t,e,n,a,r,i){"use strict";var o=Object.freeze({NONE:0,TRIANGLES:1,LINES:2,POLYLINES:3});const s={POINTS:r.WebGLConstants.POINTS,LINES:r.WebGLConstants.LINES,LINE_LOOP:r.WebGLConstants.LINE_LOOP,LINE_STRIP:r.WebGLConstants.LINE_STRIP,TRIANGLES:r.WebGLConstants.TRIANGLES,TRIANGLE_STRIP:r.WebGLConstants.TRIANGLE_STRIP,TRIANGLE_FAN:r.WebGLConstants.TRIANGLE_FAN,isLines:function(t){return t===s.LINES||t===s.LINE_LOOP||t===s.LINE_STRIP},isTriangles:function(t){return t===s.TRIANGLES||t===s.TRIANGLE_STRIP||t===s.TRIANGLE_FAN},validate:function(t){return t===s.POINTS||t===s.LINES||t===s.LINE_LOOP||t===s.LINE_STRIP||t===s.TRIANGLES||t===s.TRIANGLE_STRIP||t===s.TRIANGLE_FAN}};var u=Object.freeze(s);function I(t){t=a.defaultValue(t,a.defaultValue.EMPTY_OBJECT),this.attributes=t.attributes,this.indices=t.indices,this.primitiveType=a.defaultValue(t.primitiveType,u.TRIANGLES),this.boundingSphere=t.boundingSphere,this.geometryType=a.defaultValue(t.geometryType,o.NONE),this.boundingSphereCV=t.boundingSphereCV,this.offsetAttribute=t.offsetAttribute}I.computeNumberOfVertices=function(t){let e=-1;for(const n in t.attributes)if(t.attributes.hasOwnProperty(n)&&a.defined(t.attributes[n])&&a.defined(t.attributes[n].values)){const a=t.attributes[n];e=a.values.length/a.componentsPerAttribute}return e};const N=new e.Cartographic,c=new e.Cartesian3,T=new e.Matrix4,l=[new e.Cartographic,new e.Cartographic,new e.Cartographic],L=[new e.Cartesian2,new e.Cartesian2,new e.Cartesian2],f=[new e.Cartesian2,new e.Cartesian2,new e.Cartesian2],E=new e.Cartesian3,m=new i.Quaternion,p=new e.Matrix4,y=new e.Matrix2;I._textureCoordinateRotationPoints=function(t,n,a,r){let o;const s=e.Rectangle.center(r,N),u=e.Cartographic.toCartesian(s,a,c),I=i.Transforms.eastNorthUpToFixedFrame(u,a,T),b=e.Matrix4.inverse(I,T),C=L,h=l;h[0].longitude=r.west,h[0].latitude=r.south,h[1].longitude=r.west,h[1].latitude=r.north,h[2].longitude=r.east,h[2].latitude=r.south;let A=E;for(o=0;o<3;o++)e.Cartographic.toCartesian(h[o],a,A),A=e.Matrix4.multiplyByPointAsVector(b,A,A),C[o].x=A.x,C[o].y=A.y;const d=i.Quaternion.fromAxisAngle(e.Cartesian3.UNIT_Z,-n,m),x=e.Matrix3.fromQuaternion(d,p),S=t.length;let P=Number.POSITIVE_INFINITY,G=Number.POSITIVE_INFINITY,R=Number.NEGATIVE_INFINITY,_=Number.NEGATIVE_INFINITY;for(o=0;o<S;o++)A=e.Matrix4.multiplyByPointAsVector(b,t[o],A),A=e.Matrix3.multiplyByVector(x,A,A),P=Math.min(P,A.x),G=Math.min(G,A.y),R=Math.max(R,A.x),_=Math.max(_,A.y);const O=e.Matrix2.fromRotation(n,y),g=f;g[0].x=P,g[0].y=G,g[1].x=P,g[1].y=_,g[2].x=R,g[2].y=G;const w=C[0],V=C[2].x-w.x,M=C[1].y-w.y;for(o=0;o<3;o++){const t=g[o];e.Matrix2.multiplyByVector(O,t,t),t.x=(t.x-w.x)/V,t.y=(t.y-w.y)/M}const v=g[0],F=g[1],W=g[2],Y=new Array(6);return e.Cartesian2.pack(v,Y),e.Cartesian2.pack(F,Y,2),e.Cartesian2.pack(W,Y,4),Y},t.Geometry=I,t.GeometryAttribute=function(t){t=a.defaultValue(t,a.defaultValue.EMPTY_OBJECT),this.componentDatatype=t.componentDatatype,this.componentsPerAttribute=t.componentsPerAttribute,this.normalize=a.defaultValue(t.normalize,!1),this.values=t.values},t.GeometryType=o,t.PrimitiveType=u}));
define(["exports","./Matrix2-f4a72982","./RuntimeError-ed67c927","./defaultValue-ff4e651f","./WebGLConstants-dc5a5fcc","./Transforms-e2b46a6c"],(function(t,e,n,a,r,i){"use strict";var o=Object.freeze({NONE:0,TRIANGLES:1,LINES:2,POLYLINES:3});const s={POINTS:r.WebGLConstants.POINTS,LINES:r.WebGLConstants.LINES,LINE_LOOP:r.WebGLConstants.LINE_LOOP,LINE_STRIP:r.WebGLConstants.LINE_STRIP,TRIANGLES:r.WebGLConstants.TRIANGLES,TRIANGLE_STRIP:r.WebGLConstants.TRIANGLE_STRIP,TRIANGLE_FAN:r.WebGLConstants.TRIANGLE_FAN,isLines:function(t){return t===s.LINES||t===s.LINE_LOOP||t===s.LINE_STRIP},isTriangles:function(t){return t===s.TRIANGLES||t===s.TRIANGLE_STRIP||t===s.TRIANGLE_FAN},validate:function(t){return t===s.POINTS||t===s.LINES||t===s.LINE_LOOP||t===s.LINE_STRIP||t===s.TRIANGLES||t===s.TRIANGLE_STRIP||t===s.TRIANGLE_FAN}};var u=Object.freeze(s);function I(t){t=a.defaultValue(t,a.defaultValue.EMPTY_OBJECT),this.attributes=t.attributes,this.indices=t.indices,this.primitiveType=a.defaultValue(t.primitiveType,u.TRIANGLES),this.boundingSphere=t.boundingSphere,this.geometryType=a.defaultValue(t.geometryType,o.NONE),this.boundingSphereCV=t.boundingSphereCV,this.offsetAttribute=t.offsetAttribute}I.computeNumberOfVertices=function(t){let e=-1;for(const n in t.attributes)if(t.attributes.hasOwnProperty(n)&&a.defined(t.attributes[n])&&a.defined(t.attributes[n].values)){const a=t.attributes[n];e=a.values.length/a.componentsPerAttribute}return e};const N=new e.Cartographic,c=new e.Cartesian3,T=new e.Matrix4,l=[new e.Cartographic,new e.Cartographic,new e.Cartographic],L=[new e.Cartesian2,new e.Cartesian2,new e.Cartesian2],f=[new e.Cartesian2,new e.Cartesian2,new e.Cartesian2],E=new e.Cartesian3,m=new i.Quaternion,p=new e.Matrix4,y=new e.Matrix2;I._textureCoordinateRotationPoints=function(t,n,a,r){let o;const s=e.Rectangle.center(r,N),u=e.Cartographic.toCartesian(s,a,c),I=i.Transforms.eastNorthUpToFixedFrame(u,a,T),b=e.Matrix4.inverse(I,T),C=L,h=l;h[0].longitude=r.west,h[0].latitude=r.south,h[1].longitude=r.west,h[1].latitude=r.north,h[2].longitude=r.east,h[2].latitude=r.south;let A=E;for(o=0;o<3;o++)e.Cartographic.toCartesian(h[o],a,A),A=e.Matrix4.multiplyByPointAsVector(b,A,A),C[o].x=A.x,C[o].y=A.y;const d=i.Quaternion.fromAxisAngle(e.Cartesian3.UNIT_Z,-n,m),x=e.Matrix3.fromQuaternion(d,p),S=t.length;let P=Number.POSITIVE_INFINITY,G=Number.POSITIVE_INFINITY,R=Number.NEGATIVE_INFINITY,_=Number.NEGATIVE_INFINITY;for(o=0;o<S;o++)A=e.Matrix4.multiplyByPointAsVector(b,t[o],A),A=e.Matrix3.multiplyByVector(x,A,A),P=Math.min(P,A.x),G=Math.min(G,A.y),R=Math.max(R,A.x),_=Math.max(_,A.y);const O=e.Matrix2.fromRotation(n,y),g=f;g[0].x=P,g[0].y=G,g[1].x=P,g[1].y=_,g[2].x=R,g[2].y=G;const w=C[0],V=C[2].x-w.x,M=C[1].y-w.y;for(o=0;o<3;o++){const t=g[o];e.Matrix2.multiplyByVector(O,t,t),t.x=(t.x-w.x)/V,t.y=(t.y-w.y)/M}const v=g[0],F=g[1],W=g[2],Y=new Array(6);return e.Cartesian2.pack(v,Y),e.Cartesian2.pack(F,Y,2),e.Cartesian2.pack(W,Y,4),Y},t.Geometry=I,t.GeometryAttribute=function(t){t=a.defaultValue(t,a.defaultValue.EMPTY_OBJECT),this.componentDatatype=t.componentDatatype,this.componentsPerAttribute=t.componentsPerAttribute,this.normalize=a.defaultValue(t.normalize,!1),this.values=t.values},t.GeometryType=o,t.PrimitiveType=u}));
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......@@ -22,4 +22,4 @@
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./defaultValue-77c08f32"],(function(t,e){"use strict";t.GeometryAttributes=function(t){t=e.defaultValue(t,e.defaultValue.EMPTY_OBJECT),this.position=t.position,this.normal=t.normal,this.st=t.st,this.bitangent=t.bitangent,this.tangent=t.tangent,this.color=t.color}}));
define(["exports","./defaultValue-ff4e651f"],(function(t,e){"use strict";t.GeometryAttributes=function(t){t=e.defaultValue(t,e.defaultValue.EMPTY_OBJECT),this.position=t.position,this.normal=t.normal,this.st=t.st,this.bitangent=t.bitangent,this.tangent=t.tangent,this.color=t.color}}));
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......@@ -22,4 +22,4 @@
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./defaultValue-77c08f32","./RuntimeError-50f3c270","./Matrix2-c788e106"],(function(e,t,i,r){"use strict";e.GeometryInstance=function(e){e=t.defaultValue(e,t.defaultValue.EMPTY_OBJECT),this.geometry=e.geometry,this.modelMatrix=r.Matrix4.clone(t.defaultValue(e.modelMatrix,r.Matrix4.IDENTITY)),this.id=e.id,this.pickPrimitive=e.pickPrimitive,this.attributes=t.defaultValue(e.attributes,{}),this.westHemisphereGeometry=void 0,this.eastHemisphereGeometry=void 0}}));
define(["exports","./defaultValue-ff4e651f","./RuntimeError-ed67c927","./Matrix2-f4a72982"],(function(e,t,i,r){"use strict";e.GeometryInstance=function(e){e=t.defaultValue(e,t.defaultValue.EMPTY_OBJECT),this.geometry=e.geometry,this.modelMatrix=r.Matrix4.clone(t.defaultValue(e.modelMatrix,r.Matrix4.IDENTITY)),this.id=e.id,this.pickPrimitive=e.pickPrimitive,this.attributes=t.defaultValue(e.attributes,{}),this.westHemisphereGeometry=void 0,this.eastHemisphereGeometry=void 0}}));
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
*
* Copyright 2011-2022 Cesium Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Columbus View (Pat. Pend.)
*
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./defaultValue-77c08f32","./RuntimeError-50f3c270","./ComponentDatatype-94a172c0","./WebGLConstants-cbf0dab7"],(function(n,r,e,t,N){"use strict";const a={UNSIGNED_BYTE:N.WebGLConstants.UNSIGNED_BYTE,UNSIGNED_SHORT:N.WebGLConstants.UNSIGNED_SHORT,UNSIGNED_INT:N.WebGLConstants.UNSIGNED_INT,getSizeInBytes:function(n){switch(n){case a.UNSIGNED_BYTE:return Uint8Array.BYTES_PER_ELEMENT;case a.UNSIGNED_SHORT:return Uint16Array.BYTES_PER_ELEMENT;case a.UNSIGNED_INT:return Uint32Array.BYTES_PER_ELEMENT}},fromSizeInBytes:function(n){switch(n){case 2:return a.UNSIGNED_SHORT;case 4:return a.UNSIGNED_INT;case 1:return a.UNSIGNED_BYTE}},validate:function(n){return r.defined(n)&&(n===a.UNSIGNED_BYTE||n===a.UNSIGNED_SHORT||n===a.UNSIGNED_INT)},createTypedArray:function(n,r){return n>=t.CesiumMath.SIXTY_FOUR_KILOBYTES?new Uint32Array(r):new Uint16Array(r)},createTypedArrayFromArrayBuffer:function(n,r,e,N){return n>=t.CesiumMath.SIXTY_FOUR_KILOBYTES?new Uint32Array(r,e,N):new Uint16Array(r,e,N)},fromTypedArray:function(n){return n instanceof Uint8Array?a.UNSIGNED_BYTE:n instanceof Uint16Array?a.UNSIGNED_SHORT:n instanceof Uint32Array?a.UNSIGNED_INT:void 0}};var E=Object.freeze(a);n.IndexDatatype=E}));
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Columbus View (Pat. Pend.)
*
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./defaultValue-028a8a27","./RuntimeError-a977b8e0","./Matrix2-4706dd70"],function(r,t,d,i){"use strict";function m(e){if(e=t.defaultValue(e,t.defaultValue.EMPTY_OBJECT),!t.defined(e.geometry))throw new d.DeveloperError("options.geometry is required.");this.geometry=e.geometry,this.modelMatrix=i.Matrix4.clone(t.defaultValue(e.modelMatrix,i.Matrix4.IDENTITY)),this.id=e.id,this.pickPrimitive=e.pickPrimitive,this.attributes=t.defaultValue(e.attributes,{}),this.westHemisphereGeometry=void 0,this.eastHemisphereGeometry=void 0}r.GeometryInstance=m});
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
*
* Copyright 2011-2022 Cesium Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Columbus View (Pat. Pend.)
*
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./defaultValue-77c08f32"],(function(e,t){"use strict";e.combine=function e(n,o,f){f=t.defaultValue(f,!1);const r={},i=t.defined(n),a=t.defined(o);let c,s,u;if(i)for(c in n)n.hasOwnProperty(c)&&(s=n[c],a&&f&&"object"==typeof s&&o.hasOwnProperty(c)?(u=o[c],r[c]="object"==typeof u?e(s,u,f):s):r[c]=s);if(a)for(c in o)o.hasOwnProperty(c)&&!r.hasOwnProperty(c)&&(u=o[c],r[c]=u);return r}}));
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Columbus View (Pat. Pend.)
*
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports"],function(t){"use strict";var e=Object.freeze({NONE:0,TOP:1,ALL:2});t.GeometryOffsetAttribute=e});
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Columbus View (Pat. Pend.)
*
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./defaultValue-ff4e651f","./RuntimeError-ed67c927","./ComponentDatatype-cb7120fd","./WebGLConstants-dc5a5fcc"],(function(e,n,r,t,N){"use strict";const E={UNSIGNED_BYTE:N.WebGLConstants.UNSIGNED_BYTE,UNSIGNED_SHORT:N.WebGLConstants.UNSIGNED_SHORT,UNSIGNED_INT:N.WebGLConstants.UNSIGNED_INT,getSizeInBytes:function(e){switch(e){case E.UNSIGNED_BYTE:return Uint8Array.BYTES_PER_ELEMENT;case E.UNSIGNED_SHORT:return Uint16Array.BYTES_PER_ELEMENT;case E.UNSIGNED_INT:return Uint32Array.BYTES_PER_ELEMENT}},fromSizeInBytes:function(e){switch(e){case 2:return E.UNSIGNED_SHORT;case 4:return E.UNSIGNED_INT;case 1:return E.UNSIGNED_BYTE}},validate:function(e){return n.defined(e)&&(e===E.UNSIGNED_BYTE||e===E.UNSIGNED_SHORT||e===E.UNSIGNED_INT)},createTypedArray:function(e,n){return e>=t.CesiumMath.SIXTY_FOUR_KILOBYTES?new Uint32Array(n):new Uint16Array(n)},createTypedArrayFromArrayBuffer:function(e,n,r,N){return e>=t.CesiumMath.SIXTY_FOUR_KILOBYTES?new Uint32Array(n,r,N):new Uint16Array(n,r,N)},fromTypedArray:function(e){return e instanceof Uint8Array?E.UNSIGNED_BYTE:e instanceof Uint16Array?E.UNSIGNED_SHORT:e instanceof Uint32Array?E.UNSIGNED_INT:void 0}};var a=Object.freeze(E);e.IndexDatatype=a}));
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......@@ -23,4 +23,4 @@
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./defaultValue-028a8a27","./RuntimeError-a977b8e0","./ComponentDatatype-98788316","./WebGLConstants-0ff1ce58"],function(S,E,n,a,i){"use strict";const e={UNSIGNED_BYTE:i.WebGLConstants.UNSIGNED_BYTE,UNSIGNED_SHORT:i.WebGLConstants.UNSIGNED_SHORT,UNSIGNED_INT:i.WebGLConstants.UNSIGNED_INT};e.getSizeInBytes=function(r){switch(r){case e.UNSIGNED_BYTE:return Uint8Array.BYTES_PER_ELEMENT;case e.UNSIGNED_SHORT:return Uint16Array.BYTES_PER_ELEMENT;case e.UNSIGNED_INT:return Uint32Array.BYTES_PER_ELEMENT}throw new n.DeveloperError("indexDatatype is required and must be a valid IndexDatatype constant.")},e.fromSizeInBytes=function(r){switch(r){case 2:return e.UNSIGNED_SHORT;case 4:return e.UNSIGNED_INT;case 1:return e.UNSIGNED_BYTE;default:throw new n.DeveloperError("Size in bytes cannot be mapped to an IndexDatatype")}},e.validate=function(r){return E.defined(r)&&(r===e.UNSIGNED_BYTE||r===e.UNSIGNED_SHORT||r===e.UNSIGNED_INT)},e.createTypedArray=function(r,t){if(!E.defined(r))throw new n.DeveloperError("numberOfVertices is required.");return r>=a.CesiumMath.SIXTY_FOUR_KILOBYTES?new Uint32Array(t):new Uint16Array(t)},e.createTypedArrayFromArrayBuffer=function(r,t,N,I){if(!E.defined(r))throw new n.DeveloperError("numberOfVertices is required.");if(!E.defined(t))throw new n.DeveloperError("sourceArray is required.");if(!E.defined(N))throw new n.DeveloperError("byteOffset is required.");return r>=a.CesiumMath.SIXTY_FOUR_KILOBYTES?new Uint32Array(t,N,I):new Uint16Array(t,N,I)};var o=Object.freeze(e);S.IndexDatatype=o});
define(["exports","./defaultValue-028a8a27","./RuntimeError-a977b8e0","./ComponentDatatype-438cad2a","./WebGLConstants-0ff1ce58"],function(I,i,n,E,a){"use strict";const e={UNSIGNED_BYTE:a.WebGLConstants.UNSIGNED_BYTE,UNSIGNED_SHORT:a.WebGLConstants.UNSIGNED_SHORT,UNSIGNED_INT:a.WebGLConstants.UNSIGNED_INT};e.getSizeInBytes=function(r){switch(r){case e.UNSIGNED_BYTE:return Uint8Array.BYTES_PER_ELEMENT;case e.UNSIGNED_SHORT:return Uint16Array.BYTES_PER_ELEMENT;case e.UNSIGNED_INT:return Uint32Array.BYTES_PER_ELEMENT}throw new n.DeveloperError("indexDatatype is required and must be a valid IndexDatatype constant.")},e.fromSizeInBytes=function(r){switch(r){case 2:return e.UNSIGNED_SHORT;case 4:return e.UNSIGNED_INT;case 1:return e.UNSIGNED_BYTE;default:throw new n.DeveloperError("Size in bytes cannot be mapped to an IndexDatatype")}},e.validate=function(r){return i.defined(r)&&(r===e.UNSIGNED_BYTE||r===e.UNSIGNED_SHORT||r===e.UNSIGNED_INT)},e.createTypedArray=function(r,t){if(!i.defined(r))throw new n.DeveloperError("numberOfVertices is required.");return r>=E.CesiumMath.SIXTY_FOUR_KILOBYTES?new Uint32Array(t):new Uint16Array(t)},e.createTypedArrayFromArrayBuffer=function(r,t,N,o){if(!i.defined(r))throw new n.DeveloperError("numberOfVertices is required.");if(!i.defined(t))throw new n.DeveloperError("sourceArray is required.");if(!i.defined(N))throw new n.DeveloperError("byteOffset is required.");return r>=E.CesiumMath.SIXTY_FOUR_KILOBYTES?new Uint32Array(t,N,o):new Uint16Array(t,N,o)},e.fromTypedArray=function(r){if(r instanceof Uint8Array)return e.UNSIGNED_BYTE;if(r instanceof Uint16Array)return e.UNSIGNED_SHORT;if(r instanceof Uint32Array)return e.UNSIGNED_INT;throw new n.DeveloperError("array must be a Uint8Array, Uint16Array, or Uint32Array.")};var S=Object.freeze(e);I.IndexDatatype=S});
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......@@ -22,4 +22,4 @@
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./Matrix2-c788e106","./RuntimeError-50f3c270","./defaultValue-77c08f32","./ComponentDatatype-94a172c0"],(function(n,e,t,a,r){"use strict";function i(n,t){this.normal=e.Cartesian3.clone(n),this.distance=t}i.fromPointNormal=function(n,t,r){const s=-e.Cartesian3.dot(t,n);return a.defined(r)?(e.Cartesian3.clone(t,r.normal),r.distance=s,r):new i(t,s)};const s=new e.Cartesian3;i.fromCartesian4=function(n,t){const r=e.Cartesian3.fromCartesian4(n,s),o=n.w;return a.defined(t)?(e.Cartesian3.clone(r,t.normal),t.distance=o,t):new i(r,o)},i.getPointDistance=function(n,t){return e.Cartesian3.dot(n.normal,t)+n.distance};const o=new e.Cartesian3;i.projectPointOntoPlane=function(n,t,r){a.defined(r)||(r=new e.Cartesian3);const s=i.getPointDistance(n,t),c=e.Cartesian3.multiplyByScalar(n.normal,s,o);return e.Cartesian3.subtract(t,c,r)};const c=new e.Matrix4,l=new e.Cartesian4,f=new e.Cartesian3;i.transform=function(n,t,a){const r=n.normal,s=n.distance,o=e.Matrix4.inverseTranspose(t,c);let C=e.Cartesian4.fromElements(r.x,r.y,r.z,s,l);C=e.Matrix4.multiplyByVector(o,C,C);const u=e.Cartesian3.fromCartesian4(C,f);return C=e.Cartesian4.divideByScalar(C,e.Cartesian3.magnitude(u),C),i.fromCartesian4(C,a)},i.clone=function(n,t){return a.defined(t)?(e.Cartesian3.clone(n.normal,t.normal),t.distance=n.distance,t):new i(n.normal,n.distance)},i.equals=function(n,t){return n.distance===t.distance&&e.Cartesian3.equals(n.normal,t.normal)},i.ORIGIN_XY_PLANE=Object.freeze(new i(e.Cartesian3.UNIT_Z,0)),i.ORIGIN_YZ_PLANE=Object.freeze(new i(e.Cartesian3.UNIT_X,0)),i.ORIGIN_ZX_PLANE=Object.freeze(new i(e.Cartesian3.UNIT_Y,0)),n.Plane=i}));
define(["exports","./Matrix2-f4a72982","./RuntimeError-ed67c927","./defaultValue-ff4e651f","./ComponentDatatype-cb7120fd"],(function(n,e,t,a,r){"use strict";function i(n,t){this.normal=e.Cartesian3.clone(n),this.distance=t}i.fromPointNormal=function(n,t,r){const s=-e.Cartesian3.dot(t,n);return a.defined(r)?(e.Cartesian3.clone(t,r.normal),r.distance=s,r):new i(t,s)};const s=new e.Cartesian3;i.fromCartesian4=function(n,t){const r=e.Cartesian3.fromCartesian4(n,s),o=n.w;return a.defined(t)?(e.Cartesian3.clone(r,t.normal),t.distance=o,t):new i(r,o)},i.getPointDistance=function(n,t){return e.Cartesian3.dot(n.normal,t)+n.distance};const o=new e.Cartesian3;i.projectPointOntoPlane=function(n,t,r){a.defined(r)||(r=new e.Cartesian3);const s=i.getPointDistance(n,t),c=e.Cartesian3.multiplyByScalar(n.normal,s,o);return e.Cartesian3.subtract(t,c,r)};const c=new e.Matrix4,l=new e.Cartesian4,f=new e.Cartesian3;i.transform=function(n,t,a){const r=n.normal,s=n.distance,o=e.Matrix4.inverseTranspose(t,c);let d=e.Cartesian4.fromElements(r.x,r.y,r.z,s,l);d=e.Matrix4.multiplyByVector(o,d,d);const C=e.Cartesian3.fromCartesian4(d,f);return d=e.Cartesian4.divideByScalar(d,e.Cartesian3.magnitude(C),d),i.fromCartesian4(d,a)},i.clone=function(n,t){return a.defined(t)?(e.Cartesian3.clone(n.normal,t.normal),t.distance=n.distance,t):new i(n.normal,n.distance)},i.equals=function(n,t){return n.distance===t.distance&&e.Cartesian3.equals(n.normal,t.normal)},i.ORIGIN_XY_PLANE=Object.freeze(new i(e.Cartesian3.UNIT_Z,0)),i.ORIGIN_YZ_PLANE=Object.freeze(new i(e.Cartesian3.UNIT_X,0)),i.ORIGIN_ZX_PLANE=Object.freeze(new i(e.Cartesian3.UNIT_Y,0)),n.Plane=i}));
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Columbus View (Pat. Pend.)
*
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./Matrix2-4706dd70","./RuntimeError-a977b8e0","./defaultValue-028a8a27","./ComponentDatatype-438cad2a"],function(d,a,c,f,C){"use strict";function s(e,n){if(c.Check.typeOf.object("normal",e),!C.CesiumMath.equalsEpsilon(a.Cartesian3.magnitude(e),1,C.CesiumMath.EPSILON6))throw new c.DeveloperError("normal must be normalized.");c.Check.typeOf.number("distance",n),this.normal=a.Cartesian3.clone(e),this.distance=n}s.fromPointNormal=function(e,n,t){if(c.Check.typeOf.object("point",e),c.Check.typeOf.object("normal",n),!C.CesiumMath.equalsEpsilon(a.Cartesian3.magnitude(n),1,C.CesiumMath.EPSILON6))throw new c.DeveloperError("normal must be normalized.");const o=-a.Cartesian3.dot(n,e);return f.defined(t)?(a.Cartesian3.clone(n,t.normal),t.distance=o,t):new s(n,o)};const h=new a.Cartesian3;s.fromCartesian4=function(e,n){c.Check.typeOf.object("coefficients",e);const t=a.Cartesian3.fromCartesian4(e,h),o=e.w;if(!C.CesiumMath.equalsEpsilon(a.Cartesian3.magnitude(t),1,C.CesiumMath.EPSILON6))throw new c.DeveloperError("normal must be normalized.");return f.defined(n)?(a.Cartesian3.clone(t,n.normal),n.distance=o,n):new s(t,o)},s.getPointDistance=function(e,n){return c.Check.typeOf.object("plane",e),c.Check.typeOf.object("point",n),a.Cartesian3.dot(e.normal,n)+e.distance};const l=new a.Cartesian3;s.projectPointOntoPlane=function(e,n,t){c.Check.typeOf.object("plane",e),c.Check.typeOf.object("point",n),f.defined(t)||(t=new a.Cartesian3);const o=s.getPointDistance(e,n),r=a.Cartesian3.multiplyByScalar(e.normal,o,l);return a.Cartesian3.subtract(n,r,t)};const m=new a.Matrix4,O=new a.Cartesian4,b=new a.Cartesian3;s.transform=function(e,n,t){c.Check.typeOf.object("plane",e),c.Check.typeOf.object("transform",n);const o=e.normal,r=e.distance,w=a.Matrix4.inverseTranspose(n,m);let i=a.Cartesian4.fromElements(o.x,o.y,o.z,r,O);i=a.Matrix4.multiplyByVector(w,i,i);const j=a.Cartesian3.fromCartesian4(i,b);return i=a.Cartesian4.divideByScalar(i,a.Cartesian3.magnitude(j),i),s.fromCartesian4(i,t)},s.clone=function(e,n){return c.Check.typeOf.object("plane",e),f.defined(n)?(a.Cartesian3.clone(e.normal,n.normal),n.distance=e.distance,n):new s(e.normal,e.distance)},s.equals=function(e,n){return c.Check.typeOf.object("left",e),c.Check.typeOf.object("right",n),e.distance===n.distance&&a.Cartesian3.equals(e.normal,n.normal)},s.ORIGIN_XY_PLANE=Object.freeze(new s(a.Cartesian3.UNIT_Z,0)),s.ORIGIN_YZ_PLANE=Object.freeze(new s(a.Cartesian3.UNIT_X,0)),s.ORIGIN_ZX_PLANE=Object.freeze(new s(a.Cartesian3.UNIT_Y,0)),d.Plane=s});
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Columbus View (Pat. Pend.)
*
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./Matrix2-4706dd70","./defaultValue-028a8a27","./RuntimeError-a977b8e0","./EllipsoidGeodesic-0454f1c2","./EllipsoidRhumbLine-248c8a1e","./IntersectionTests-54d7f8a4","./ComponentDatatype-438cad2a","./Plane-f4cd36d8"],function(_,n,p,G,H,z,U,L,b){"use strict";const d={};d.numberOfPoints=function(s,a,r){const t=n.Cartesian3.distance(s,a);return Math.ceil(t/r)},d.numberOfPointsRhumbLine=function(s,a,r){const t=Math.pow(s.longitude-a.longitude,2)+Math.pow(s.latitude-a.latitude,2);return Math.max(1,Math.ceil(Math.sqrt(t/(r*r))))};const q=new n.Cartographic;d.extractHeights=function(s,a){const r=s.length,t=new Array(r);for(let e=0;e<r;e++){const l=s[e];t[e]=a.cartesianToCartographic(l,q).height}return t};const X=new n.Matrix4,Z=new n.Cartesian3,O=new n.Cartesian3,Y=new b.Plane(n.Cartesian3.UNIT_X,0),k=new n.Cartesian3,W=new b.Plane(n.Cartesian3.UNIT_X,0),F=new n.Cartesian3,j=new n.Cartesian3,R=[];function v(s,a,r){const t=R;t.length=s;let e;if(a===r){for(e=0;e<s;e++)t[e]=a;return t}const g=(r-a)/s;for(e=0;e<s;e++){const w=a+e*g;t[e]=w}return t}const S=new n.Cartographic,D=new n.Cartographic,T=new n.Cartesian3,N=new n.Cartesian3,J=new n.Cartesian3,I=new H.EllipsoidGeodesic;let E=new z.EllipsoidRhumbLine;function K(s,a,r,t,e,l,g,w){const c=t.scaleToGeodeticSurface(s,N),m=t.scaleToGeodeticSurface(a,J),h=d.numberOfPoints(s,a,r),f=t.cartesianToCartographic(c,S),y=t.cartesianToCartographic(m,D),u=v(h,e,l);I.setEndPoints(f,y);const P=I.surfaceDistance/h;let i=w;f.height=e;let o=t.cartographicToCartesian(f,T);n.Cartesian3.pack(o,g,i),i+=3;for(let C=1;C<h;C++){const A=I.interpolateUsingSurfaceDistance(C*P,D);A.height=u[C],o=t.cartographicToCartesian(A,T),n.Cartesian3.pack(o,g,i),i+=3}return i}function Q(s,a,r,t,e,l,g,w){const c=t.cartesianToCartographic(s,S),m=t.cartesianToCartographic(a,D),h=d.numberOfPointsRhumbLine(c,m,r);c.height=0,m.height=0;const f=v(h,e,l);E.ellipsoid.equals(t)||(E=new z.EllipsoidRhumbLine(void 0,void 0,t)),E.setEndPoints(c,m);const y=E.surfaceDistance/h;let u=w;c.height=e;let P=t.cartographicToCartesian(c,T);n.Cartesian3.pack(P,g,u),u+=3;for(let i=1;i<h;i++){const o=E.interpolateUsingSurfaceDistance(i*y,D);o.height=f[i],P=t.cartographicToCartesian(o,T),n.Cartesian3.pack(P,g,u),u+=3}return u}d.wrapLongitude=function(s,a){const r=[],t=[];if(p.defined(s)&&s.length>0){a=p.defaultValue(a,n.Matrix4.IDENTITY);const e=n.Matrix4.inverseTransformation(a,X),l=n.Matrix4.multiplyByPoint(e,n.Cartesian3.ZERO,Z),g=n.Cartesian3.normalize(n.Matrix4.multiplyByPointAsVector(e,n.Cartesian3.UNIT_Y,O),O),w=b.Plane.fromPointNormal(l,g,Y),c=n.Cartesian3.normalize(n.Matrix4.multiplyByPointAsVector(e,n.Cartesian3.UNIT_X,k),k),m=b.Plane.fromPointNormal(l,c,W);let h=1;r.push(n.Cartesian3.clone(s[0]));let f=r[0];const y=s.length;for(let u=1;u<y;++u){const P=s[u];if(b.Plane.getPointDistance(m,f)<0||b.Plane.getPointDistance(m,P)<0){const i=U.IntersectionTests.lineSegmentPlane(f,P,w,F);if(p.defined(i)){const o=n.Cartesian3.multiplyByScalar(g,5e-9,j);b.Plane.getPointDistance(w,f)<0&&n.Cartesian3.negate(o,o),r.push(n.Cartesian3.add(i,o,new n.Cartesian3)),t.push(h+1),n.Cartesian3.negate(o,o),r.push(n.Cartesian3.add(i,o,new n.Cartesian3)),h=1}}r.push(n.Cartesian3.clone(s[u])),h++,f=P}t.push(h)}return{positions:r,lengths:t}},d.generateArc=function(s){p.defined(s)||(s={});const a=s.positions;if(!p.defined(a))throw new G.DeveloperError("options.positions is required.");const r=a.length,t=p.defaultValue(s.ellipsoid,n.Ellipsoid.WGS84);let e=p.defaultValue(s.height,0);const l=Array.isArray(e);if(r<1)return[];if(r===1){const i=t.scaleToGeodeticSurface(a[0],N);if(e=l?e[0]:e,e!==0){const o=t.geodeticSurfaceNormal(i,T);n.Cartesian3.multiplyByScalar(o,e,o),n.Cartesian3.add(i,o,i)}return[i.x,i.y,i.z]}let g=s.minDistance;if(!p.defined(g)){const i=p.defaultValue(s.granularity,L.CesiumMath.RADIANS_PER_DEGREE);g=L.CesiumMath.chordLength(i,t.maximumRadius)}let w=0,c;for(c=0;c<r-1;c++)w+=d.numberOfPoints(a[c],a[c+1],g);const m=(w+1)*3,h=new Array(m);let f=0;for(c=0;c<r-1;c++){const i=a[c],o=a[c+1],C=l?e[c]:e,A=l?e[c+1]:e;f=K(i,o,g,t,C,A,h,f)}R.length=0;const y=a[r-1],u=t.cartesianToCartographic(y,S);u.height=l?e[r-1]:e;const P=t.cartographicToCartesian(u,T);return n.Cartesian3.pack(P,h,m-3),h};const B=new n.Cartographic,$=new n.Cartographic;d.generateRhumbArc=function(s){p.defined(s)||(s={});const a=s.positions;if(!p.defined(a))throw new G.DeveloperError("options.positions is required.");const r=a.length,t=p.defaultValue(s.ellipsoid,n.Ellipsoid.WGS84);let e=p.defaultValue(s.height,0);const l=Array.isArray(e);if(r<1)return[];if(r===1){const C=t.scaleToGeodeticSurface(a[0],N);if(e=l?e[0]:e,e!==0){const A=t.geodeticSurfaceNormal(C,T);n.Cartesian3.multiplyByScalar(A,e,A),n.Cartesian3.add(C,A,C)}return[C.x,C.y,C.z]}const g=p.defaultValue(s.granularity,L.CesiumMath.RADIANS_PER_DEGREE);let w=0,c,m=t.cartesianToCartographic(a[0],B),h;for(c=0;c<r-1;c++)h=t.cartesianToCartographic(a[c+1],$),w+=d.numberOfPointsRhumbLine(m,h,g),m=n.Cartographic.clone(h,B);const f=(w+1)*3,y=new Array(f);let u=0;for(c=0;c<r-1;c++){const C=a[c],A=a[c+1],V=l?e[c]:e,x=l?e[c+1]:e;u=Q(C,A,g,t,V,x,y,u)}R.length=0;const P=a[r-1],i=t.cartesianToCartographic(P,S);i.height=l?e[r-1]:e;const o=t.cartographicToCartesian(i,T);return n.Cartesian3.pack(o,y,f-3),y},d.generateCartesianArc=function(s){const a=d.generateArc(s),r=a.length/3,t=new Array(r);for(let e=0;e<r;e++)t[e]=n.Cartesian3.unpack(a,e*3);return t},d.generateCartesianRhumbArc=function(s){const a=d.generateRhumbArc(s),r=a.length/3,t=new Array(r);for(let e=0;e<r;e++)t[e]=n.Cartesian3.unpack(a,e*3);return t},_.PolylinePipeline=d});
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Columbus View (Pat. Pend.)
*
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./Matrix2-4706dd70","./EllipsoidTangentPlane-100869c1","./ComponentDatatype-438cad2a","./PolylinePipeline-52ab0181","./Transforms-66eda18c","./defaultValue-028a8a27","./RuntimeError-a977b8e0"],function(X,e,ae,Y,$,Q,J,he){"use strict";var H=Object.freeze({ROUNDED:0,MITERED:1,BEVELED:2});const re={};function P(t,a){if(!J.defined(t))throw new he.DeveloperError("identifier is required.");J.defined(re[t])||(re[t]=!0,console.warn(J.defaultValue(a,t)))}P.geometryOutlines="Entity geometry outlines are unsupported on terrain. Outlines will be disabled. To enable outlines, disable geometry terrain clamping by explicitly setting height to 0.",P.geometryZIndex="Entity geometry with zIndex are unsupported when height or extrudedHeight are defined. zIndex will be ignored",P.geometryHeightReference="Entity corridor, ellipse, polygon or rectangle with heightReference must also have a defined height. heightReference will be ignored",P.geometryExtrudedHeightReference="Entity corridor, ellipse, polygon or rectangle with extrudedHeightReference must also have a defined extrudedHeight. extrudedHeightReference will be ignored";const m=[new e.Cartesian3,new e.Cartesian3],de=new e.Cartesian3,fe=new e.Cartesian3,ye=new e.Cartesian3,ge=new e.Cartesian3,me=new e.Cartesian3,we=new e.Cartesian3,pe=new e.Cartesian3,Ee=new e.Cartesian3,Se=new e.Cartesian3,V=new e.Cartesian3,U=new e.Cartesian3,I={};let K=new e.Cartographic;function Te(t,a){const o=new Array(t.length);for(let r=0;r<t.length;r++){const n=t[r];K=a.cartesianToCartographic(n,K),o[r]=K.height,t[r]=a.scaleToGeodeticSurface(n,n)}return o}function x(t,a,o,r){const n=t[0],s=t[1],C=e.Cartesian3.angleBetween(n,s),c=Math.ceil(C/r),u=new Array(c);let l;if(a===o){for(l=0;l<c;l++)u[l]=a;return u.push(o),u}const f=(o-a)/c;for(l=1;l<c;l++){const p=a+l*f;u[l]=p}return u[0]=a,u.push(o),u}const k=new e.Cartesian3,Z=new e.Cartesian3;function Be(t,a,o,r){const n=new ae.EllipsoidTangentPlane(o,r),s=n.projectPointOntoPlane(e.Cartesian3.add(o,t,k),k),C=n.projectPointOntoPlane(e.Cartesian3.add(o,a,Z),Z),c=e.Cartesian2.angleBetween(s,C);return C.x*s.y-C.y*s.x>=0?-c:c}const be=new e.Cartesian3(-1,0,0);let D=new e.Matrix4;const ze=new e.Matrix4;let M=new e.Matrix3;const Ae=e.Matrix3.IDENTITY.clone(),Oe=new e.Cartesian3,ve=new e.Cartesian4,se=new e.Cartesian3;function O(t,a,o,r,n,s,C,c){let u=Oe,l=ve;D=Q.Transforms.eastNorthUpToFixedFrame(t,n,D),u=e.Matrix4.multiplyByPointAsVector(D,be,u),u=e.Cartesian3.normalize(u,u);const S=Be(u,a,t,n);M=e.Matrix3.fromRotationZ(S,M),se.z=s,D=e.Matrix4.multiplyTransformation(D,e.Matrix4.fromRotationTranslation(M,se,ze),D);const f=Ae;f[0]=C;for(let p=0;p<c;p++)for(let i=0;i<o.length;i+=3)l=e.Cartesian3.fromArray(o,i,l),l=e.Matrix3.multiplyByVector(f,l,l),l=e.Matrix4.multiplyByPoint(D,l,l),r.push(l.x,l.y,l.z);return r}const je=new e.Cartesian3;function ee(t,a,o,r,n,s,C){for(let c=0;c<t.length;c+=3){const u=e.Cartesian3.fromArray(t,c,je);r=O(u,a,o,r,n,s[c/3],C,1)}return r}function De(t,a){const o=t.length,r=new Array(o*6);let n=0;const s=a.x+a.width/2,C=a.y+a.height/2;let c=t[0];r[n++]=c.x-s,r[n++]=0,r[n++]=c.y-C;for(let u=1;u<o;u++){c=t[u];const l=c.x-s,S=c.y-C;r[n++]=l,r[n++]=0,r[n++]=S,r[n++]=l,r[n++]=0,r[n++]=S}return c=t[0],r[n++]=c.x-s,r[n++]=0,r[n++]=c.y-C,r}function oe(t,a){const o=t.length,r=new Array(o*3);let n=0;const s=a.x+a.width/2,C=a.y+a.height/2;for(let c=0;c<o;c++)r[n++]=t[c].x-s,r[n++]=0,r[n++]=t[c].y-C;return r}const ce=new Q.Quaternion,le=new e.Cartesian3,ie=new e.Matrix3;function Ce(t,a,o,r,n,s,C,c,u,l){const S=e.Cartesian3.angleBetween(e.Cartesian3.subtract(a,t,V),e.Cartesian3.subtract(o,t,U)),f=r===H.BEVELED?0:Math.ceil(S/Y.CesiumMath.toRadians(5));let p;n?p=e.Matrix3.fromQuaternion(Q.Quaternion.fromAxisAngle(e.Cartesian3.negate(t,V),S/(f+1),ce),ie):p=e.Matrix3.fromQuaternion(Q.Quaternion.fromAxisAngle(t,S/(f+1),ce),ie);let i,y;if(a=e.Cartesian3.clone(a,le),f>0){const j=l?2:1;for(let g=0;g<f;g++)a=e.Matrix3.multiplyByVector(p,a,a),i=e.Cartesian3.subtract(a,t,V),i=e.Cartesian3.normalize(i,i),n||(i=e.Cartesian3.negate(i,i)),y=s.scaleToGeodeticSurface(a,U),C=O(y,i,c,C,s,u,1,j)}else i=e.Cartesian3.subtract(a,t,V),i=e.Cartesian3.normalize(i,i),n||(i=e.Cartesian3.negate(i,i)),y=s.scaleToGeodeticSurface(a,U),C=O(y,i,c,C,s,u,1,1),o=e.Cartesian3.clone(o,le),i=e.Cartesian3.subtract(o,t,V),i=e.Cartesian3.normalize(i,i),n||(i=e.Cartesian3.negate(i,i)),y=s.scaleToGeodeticSurface(o,U),C=O(y,i,c,C,s,u,1,1);return C}I.removeDuplicatesFromShape=function(t){const a=t.length,o=[];for(let r=a-1,n=0;n<a;r=n++){const s=t[r],C=t[n];e.Cartesian2.equals(s,C)||o.push(C)}return o},I.angleIsGreaterThanPi=function(t,a,o,r){const n=new ae.EllipsoidTangentPlane(o,r),s=n.projectPointOntoPlane(e.Cartesian3.add(o,t,k),k),C=n.projectPointOntoPlane(e.Cartesian3.add(o,a,Z),Z);return C.x*s.y-C.y*s.x>=0};const He=new e.Cartesian3,Pe=new e.Cartesian3;I.computePositions=function(t,a,o,r,n){const s=r._ellipsoid,C=Te(t,s),c=r._granularity,u=r._cornerType,l=n?De(a,o):oe(a,o),S=n?oe(a,o):void 0,f=o.height/2,p=o.width/2;let i=t.length,y=[],j=n?[]:void 0,g=de,v=fe,d=ye,E=ge,B=me,b=we,z=pe,h=Ee,T=Se,w=t[0],N=t[1];E=s.geodeticSurfaceNormal(w,E),g=e.Cartesian3.subtract(N,w,g),g=e.Cartesian3.normalize(g,g),h=e.Cartesian3.cross(E,g,h),h=e.Cartesian3.normalize(h,h);let G=C[0],A=C[1];n&&(j=O(w,h,S,j,s,G+f,1,1)),T=e.Cartesian3.clone(w,T),w=N,v=e.Cartesian3.negate(g,v);let L,F;for(let _=1;_<i-1;_++){const ue=n?2:1;if(N=t[_+1],w.equals(N)){P("Positions are too close and are considered equivalent with rounding error.");continue}g=e.Cartesian3.subtract(N,w,g),g=e.Cartesian3.normalize(g,g),d=e.Cartesian3.add(g,v,d),d=e.Cartesian3.normalize(d,d),E=s.geodeticSurfaceNormal(w,E);const q=e.Cartesian3.multiplyByScalar(E,e.Cartesian3.dot(g,E),He);e.Cartesian3.subtract(g,q,q),e.Cartesian3.normalize(q,q);const R=e.Cartesian3.multiplyByScalar(E,e.Cartesian3.dot(v,E),Pe);if(e.Cartesian3.subtract(v,R,R),e.Cartesian3.normalize(R,R),!Y.CesiumMath.equalsEpsilon(Math.abs(e.Cartesian3.dot(q,R)),1,Y.CesiumMath.EPSILON7)){d=e.Cartesian3.cross(d,E,d),d=e.Cartesian3.cross(E,d,d),d=e.Cartesian3.normalize(d,d);const W=1/Math.max(.25,e.Cartesian3.magnitude(e.Cartesian3.cross(d,v,V))),te=I.angleIsGreaterThanPi(g,v,w,s);te?(B=e.Cartesian3.add(w,e.Cartesian3.multiplyByScalar(d,W*p,d),B),b=e.Cartesian3.add(B,e.Cartesian3.multiplyByScalar(h,p,b),b),m[0]=e.Cartesian3.clone(T,m[0]),m[1]=e.Cartesian3.clone(b,m[1]),L=x(m,G+f,A+f,c),F=$.PolylinePipeline.generateArc({positions:m,granularity:c,ellipsoid:s}),y=ee(F,h,l,y,s,L,1),h=e.Cartesian3.cross(E,g,h),h=e.Cartesian3.normalize(h,h),z=e.Cartesian3.add(B,e.Cartesian3.multiplyByScalar(h,p,z),z),u===H.ROUNDED||u===H.BEVELED?Ce(B,b,z,u,te,s,y,l,A+f,n):(d=e.Cartesian3.negate(d,d),y=O(w,d,l,y,s,A+f,W,ue)),T=e.Cartesian3.clone(z,T)):(B=e.Cartesian3.add(w,e.Cartesian3.multiplyByScalar(d,W*p,d),B),b=e.Cartesian3.add(B,e.Cartesian3.multiplyByScalar(h,-p,b),b),m[0]=e.Cartesian3.clone(T,m[0]),m[1]=e.Cartesian3.clone(b,m[1]),L=x(m,G+f,A+f,c),F=$.PolylinePipeline.generateArc({positions:m,granularity:c,ellipsoid:s}),y=ee(F,h,l,y,s,L,1),h=e.Cartesian3.cross(E,g,h),h=e.Cartesian3.normalize(h,h),z=e.Cartesian3.add(B,e.Cartesian3.multiplyByScalar(h,-p,z),z),u===H.ROUNDED||u===H.BEVELED?Ce(B,b,z,u,te,s,y,l,A+f,n):y=O(w,d,l,y,s,A+f,W,ue),T=e.Cartesian3.clone(z,T)),v=e.Cartesian3.negate(g,v)}else y=O(T,h,l,y,s,G+f,1,1),T=w;G=A,A=C[_+1],w=N}m[0]=e.Cartesian3.clone(T,m[0]),m[1]=e.Cartesian3.clone(w,m[1]),L=x(m,G+f,A+f,c),F=$.PolylinePipeline.generateArc({positions:m,granularity:c,ellipsoid:s}),y=ee(F,h,l,y,s,L,1),n&&(j=O(w,h,S,j,s,A+f,1,1)),i=y.length;const Ve=n?i+j.length:i,ne=new Float64Array(Ve);return ne.set(y),n&&ne.set(j,i),ne},X.CornerType=H,X.PolylineVolumeGeometryLibrary=I,X.oneTimeWarning=P});
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Columbus View (Pat. Pend.)
*
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./Matrix2-4706dd70","./defaultValue-028a8a27","./RuntimeError-a977b8e0","./Transforms-66eda18c","./ComponentDatatype-438cad2a"],function(x,o,O,z,Z,_){"use strict";const N=Math.cos,k=Math.sin,m=Math.sqrt,L={};L.computePosition=function(n,G,u,h,I,C,c){const i=G.radiiSquared,g=n.nwCorner,e=n.boundingRectangle;let t=g.latitude-n.granYCos*h+I*n.granXSin;const Y=N(t),f=k(t),R=i.z*f;let a=g.longitude+h*n.granYSin+I*n.granXCos;const d=Y*N(a),X=Y*k(a),w=i.x*d,P=i.y*X,M=m(w*d+P*X+R*f);if(C.x=w/M,C.y=P/M,C.z=R/M,u){const s=n.stNwCorner;O.defined(s)?(t=s.latitude-n.stGranYCos*h+I*n.stGranXSin,a=s.longitude+h*n.stGranYSin+I*n.stGranXCos,c.x=(a-n.stWest)*n.lonScalar,c.y=(t-n.stSouth)*n.latScalar):(c.x=(a-e.west)*n.lonScalar,c.y=(t-e.south)*n.latScalar)}};const B=new o.Matrix2;let r=new o.Cartesian3;const A=new o.Cartographic;let E=new o.Cartesian3;const q=new Z.GeographicProjection;function v(n,G,u,h,I,C,c){const i=Math.cos(G),g=h*i,e=u*i,t=Math.sin(G),Y=h*t,f=u*t;r=q.project(n,r),r=o.Cartesian3.subtract(r,E,r);const R=o.Matrix2.fromRotation(G,B);r=o.Matrix2.multiplyByVector(R,r,r),r=o.Cartesian3.add(r,E,r),n=q.unproject(r,n),C-=1,c-=1;const a=n.latitude,d=a+C*f,X=a-g*c,w=a-g*c+C*f,P=Math.max(a,d,X,w),M=Math.min(a,d,X,w),s=n.longitude,V=s+C*e,b=s+c*Y,j=s+c*Y+C*e,y=Math.max(s,V,b,j),W=Math.min(s,V,b,j);return{north:P,south:M,east:y,west:W,granYCos:g,granYSin:Y,granXCos:e,granXSin:f,nwCorner:n}}L.computeOptions=function(n,G,u,h,I,C,c){let i=n.east,g=n.west,e=n.north,t=n.south,Y=!1,f=!1;e===_.CesiumMath.PI_OVER_TWO&&(Y=!0),t===-_.CesiumMath.PI_OVER_TWO&&(f=!0);let R;const a=e-t;g>i?R=_.CesiumMath.TWO_PI-g+i:R=i-g;const d=Math.ceil(R/G)+1,X=Math.ceil(a/G)+1,w=R/(d-1),P=a/(X-1),M=o.Rectangle.northwest(n,C),s=o.Rectangle.center(n,A);(u!==0||h!==0)&&(s.longitude<M.longitude&&(s.longitude+=_.CesiumMath.TWO_PI),E=q.project(s,E));const V=P,b=w,j=0,y=0,W=o.Rectangle.clone(n,I),l={granYCos:V,granYSin:j,granXCos:b,granXSin:y,nwCorner:M,boundingRectangle:W,width:d,height:X,northCap:Y,southCap:f};if(u!==0){const S=v(M,u,w,P,s,d,X);if(e=S.north,t=S.south,i=S.east,g=S.west,e<-_.CesiumMath.PI_OVER_TWO||e>_.CesiumMath.PI_OVER_TWO||t<-_.CesiumMath.PI_OVER_TWO||t>_.CesiumMath.PI_OVER_TWO)throw new z.DeveloperError("Rotated rectangle is invalid. It crosses over either the north or south pole.");l.granYCos=S.granYCos,l.granYSin=S.granYSin,l.granXCos=S.granXCos,l.granXSin=S.granXSin,W.north=e,W.south=t,W.east=i,W.west=g}if(h!==0){u=u-h;const S=o.Rectangle.northwest(W,c),T=v(S,u,w,P,s,d,X);l.stGranYCos=T.granYCos,l.stGranXCos=T.granXCos,l.stGranYSin=T.granYSin,l.stGranXSin=T.granXSin,l.stNwCorner=S,l.stWest=T.west,l.stSouth=T.south}return l},x.RectangleGeometryLibrary=L});
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......@@ -22,4 +22,4 @@
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./Matrix2-c788e106","./defaultValue-77c08f32","./RuntimeError-50f3c270","./Transforms-fae4cdf7","./ComponentDatatype-94a172c0"],(function(t,n,a,e,o,r){"use strict";const s=Math.cos,i=Math.sin,c=Math.sqrt,g={computePosition:function(t,n,e,o,r,g,u){const h=n.radiiSquared,l=t.nwCorner,C=t.boundingRectangle;let S=l.latitude-t.granYCos*o+r*t.granXSin;const d=s(S),w=i(S),M=h.z*w;let f=l.longitude+o*t.granYSin+r*t.granXCos;const m=d*s(f),X=d*i(f),Y=h.x*m,p=h.y*X,x=c(Y*m+p*X+M*w);if(g.x=Y/x,g.y=p/x,g.z=M/x,e){const n=t.stNwCorner;a.defined(n)?(S=n.latitude-t.stGranYCos*o+r*t.stGranXSin,f=n.longitude+o*t.stGranYSin+r*t.stGranXCos,u.x=(f-t.stWest)*t.lonScalar,u.y=(S-t.stSouth)*t.latScalar):(u.x=(f-C.west)*t.lonScalar,u.y=(S-C.south)*t.latScalar)}}},u=new n.Matrix2;let h=new n.Cartesian3;const l=new n.Cartographic;let C=new n.Cartesian3;const S=new o.GeographicProjection;function d(t,a,e,o,r,s,i){const c=Math.cos(a),g=o*c,l=e*c,d=Math.sin(a),w=o*d,M=e*d;h=S.project(t,h),h=n.Cartesian3.subtract(h,C,h);const f=n.Matrix2.fromRotation(a,u);h=n.Matrix2.multiplyByVector(f,h,h),h=n.Cartesian3.add(h,C,h),s-=1,i-=1;const m=(t=S.unproject(h,t)).latitude,X=m+s*M,Y=m-g*i,p=m-g*i+s*M,x=Math.max(m,X,Y,p),R=Math.min(m,X,Y,p),G=t.longitude,y=G+s*l,O=G+i*w,P=G+i*w+s*l;return{north:x,south:R,east:Math.max(G,y,O,P),west:Math.min(G,y,O,P),granYCos:g,granYSin:w,granXCos:l,granXSin:M,nwCorner:t}}g.computeOptions=function(t,a,e,o,s,i,c){let g,u=t.east,h=t.west,w=t.north,M=t.south,f=!1,m=!1;w===r.CesiumMath.PI_OVER_TWO&&(f=!0),M===-r.CesiumMath.PI_OVER_TWO&&(m=!0);const X=w-M;g=h>u?r.CesiumMath.TWO_PI-h+u:u-h;const Y=Math.ceil(g/a)+1,p=Math.ceil(X/a)+1,x=g/(Y-1),R=X/(p-1),G=n.Rectangle.northwest(t,i),y=n.Rectangle.center(t,l);0===e&&0===o||(y.longitude<G.longitude&&(y.longitude+=r.CesiumMath.TWO_PI),C=S.project(y,C));const O=R,P=x,W=n.Rectangle.clone(t,s),_={granYCos:O,granYSin:0,granXCos:P,granXSin:0,nwCorner:G,boundingRectangle:W,width:Y,height:p,northCap:f,southCap:m};if(0!==e){const t=d(G,e,x,R,0,Y,p);w=t.north,M=t.south,u=t.east,h=t.west,_.granYCos=t.granYCos,_.granYSin=t.granYSin,_.granXCos=t.granXCos,_.granXSin=t.granXSin,W.north=w,W.south=M,W.east=u,W.west=h}if(0!==o){e-=o;const t=n.Rectangle.northwest(W,c),a=d(t,e,x,R,0,Y,p);_.stGranYCos=a.granYCos,_.stGranXCos=a.granXCos,_.stGranYSin=a.granYSin,_.stGranXSin=a.granXSin,_.stNwCorner=t,_.stWest=a.west,_.stSouth=a.south}return _},t.RectangleGeometryLibrary=g}));
define(["exports","./Matrix2-f4a72982","./defaultValue-ff4e651f","./RuntimeError-ed67c927","./Transforms-e2b46a6c","./ComponentDatatype-cb7120fd"],(function(t,n,a,e,o,r){"use strict";const s=Math.cos,i=Math.sin,c=Math.sqrt,g={computePosition:function(t,n,e,o,r,g,u){const h=n.radiiSquared,l=t.nwCorner,C=t.boundingRectangle;let S=l.latitude-t.granYCos*o+r*t.granXSin;const d=s(S),w=i(S),M=h.z*w;let f=l.longitude+o*t.granYSin+r*t.granXCos;const m=d*s(f),X=d*i(f),Y=h.x*m,p=h.y*X,x=c(Y*m+p*X+M*w);if(g.x=Y/x,g.y=p/x,g.z=M/x,e){const n=t.stNwCorner;a.defined(n)?(S=n.latitude-t.stGranYCos*o+r*t.stGranXSin,f=n.longitude+o*t.stGranYSin+r*t.stGranXCos,u.x=(f-t.stWest)*t.lonScalar,u.y=(S-t.stSouth)*t.latScalar):(u.x=(f-C.west)*t.lonScalar,u.y=(S-C.south)*t.latScalar)}}},u=new n.Matrix2;let h=new n.Cartesian3;const l=new n.Cartographic;let C=new n.Cartesian3;const S=new o.GeographicProjection;function d(t,a,e,o,r,s,i){const c=Math.cos(a),g=o*c,l=e*c,d=Math.sin(a),w=o*d,M=e*d;h=S.project(t,h),h=n.Cartesian3.subtract(h,C,h);const f=n.Matrix2.fromRotation(a,u);h=n.Matrix2.multiplyByVector(f,h,h),h=n.Cartesian3.add(h,C,h),s-=1,i-=1;const m=(t=S.unproject(h,t)).latitude,X=m+s*M,Y=m-g*i,p=m-g*i+s*M,x=Math.max(m,X,Y,p),R=Math.min(m,X,Y,p),G=t.longitude,y=G+s*l,O=G+i*w,b=G+i*w+s*l;return{north:x,south:R,east:Math.max(G,y,O,b),west:Math.min(G,y,O,b),granYCos:g,granYSin:w,granXCos:l,granXSin:M,nwCorner:t}}g.computeOptions=function(t,a,e,o,s,i,c){let g,u=t.east,h=t.west,w=t.north,M=t.south,f=!1,m=!1;w===r.CesiumMath.PI_OVER_TWO&&(f=!0),M===-r.CesiumMath.PI_OVER_TWO&&(m=!0);const X=w-M;g=h>u?r.CesiumMath.TWO_PI-h+u:u-h;const Y=Math.ceil(g/a)+1,p=Math.ceil(X/a)+1,x=g/(Y-1),R=X/(p-1),G=n.Rectangle.northwest(t,i),y=n.Rectangle.center(t,l);0===e&&0===o||(y.longitude<G.longitude&&(y.longitude+=r.CesiumMath.TWO_PI),C=S.project(y,C));const O=R,b=x,P=n.Rectangle.clone(t,s),W={granYCos:O,granYSin:0,granXCos:b,granXSin:0,nwCorner:G,boundingRectangle:P,width:Y,height:p,northCap:f,southCap:m};if(0!==e){const t=d(G,e,x,R,0,Y,p);w=t.north,M=t.south,u=t.east,h=t.west,W.granYCos=t.granYCos,W.granYSin=t.granYSin,W.granXCos=t.granXCos,W.granXSin=t.granXSin,P.north=w,P.south=M,P.east=u,P.west=h}if(0!==o){e-=o;const t=n.Rectangle.northwest(P,c),a=d(t,e,x,R,0,Y,p);W.stGranYCos=a.granYCos,W.stGranXCos=a.granXCos,W.stGranYSin=a.granYSin,W.stGranXSin=a.granXSin,W.stNwCorner=t,W.stWest=a.west,W.stSouth=a.south}return W},t.RectangleGeometryLibrary=g}));
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......@@ -22,4 +22,4 @@
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./defaultValue-77c08f32"],(function(t,e){"use strict";function n(t){let e;this.name="DeveloperError",this.message=t;try{throw new Error}catch(t){e=t.stack}this.stack=e}e.defined(Object.create)&&(n.prototype=Object.create(Error.prototype),n.prototype.constructor=n),n.prototype.toString=function(){let t=`${this.name}: ${this.message}`;return e.defined(this.stack)&&(t+=`\n${this.stack.toString()}`),t},n.throwInstantiationError=function(){throw new n("This function defines an interface and should not be called directly.")};const o={};function r(t,e,n){return`Expected ${n} to be typeof ${e}, actual typeof was ${t}`}function i(t){let e;this.name="RuntimeError",this.message=t;try{throw new Error}catch(t){e=t.stack}this.stack=e}o.typeOf={},o.defined=function(t,o){if(!e.defined(o))throw new n(function(t){return`${t} is required, actual value was undefined`}(t))},o.typeOf.func=function(t,e){if("function"!=typeof e)throw new n(r(typeof e,"function",t))},o.typeOf.string=function(t,e){if("string"!=typeof e)throw new n(r(typeof e,"string",t))},o.typeOf.number=function(t,e){if("number"!=typeof e)throw new n(r(typeof e,"number",t))},o.typeOf.number.lessThan=function(t,e,r){if(o.typeOf.number(t,e),e>=r)throw new n(`Expected ${t} to be less than ${r}, actual value was ${e}`)},o.typeOf.number.lessThanOrEquals=function(t,e,r){if(o.typeOf.number(t,e),e>r)throw new n(`Expected ${t} to be less than or equal to ${r}, actual value was ${e}`)},o.typeOf.number.greaterThan=function(t,e,r){if(o.typeOf.number(t,e),e<=r)throw new n(`Expected ${t} to be greater than ${r}, actual value was ${e}`)},o.typeOf.number.greaterThanOrEquals=function(t,e,r){if(o.typeOf.number(t,e),e<r)throw new n(`Expected ${t} to be greater than or equal to ${r}, actual value was ${e}`)},o.typeOf.object=function(t,e){if("object"!=typeof e)throw new n(r(typeof e,"object",t))},o.typeOf.bool=function(t,e){if("boolean"!=typeof e)throw new n(r(typeof e,"boolean",t))},o.typeOf.bigint=function(t,e){if("bigint"!=typeof e)throw new n(r(typeof e,"bigint",t))},o.typeOf.number.equals=function(t,e,r,i){if(o.typeOf.number(t,r),o.typeOf.number(e,i),r!==i)throw new n(`${t} must be equal to ${e}, the actual values are ${r} and ${i}`)},e.defined(Object.create)&&(i.prototype=Object.create(Error.prototype),i.prototype.constructor=i),i.prototype.toString=function(){let t=`${this.name}: ${this.message}`;return e.defined(this.stack)&&(t+=`\n${this.stack.toString()}`),t},t.Check=o,t.DeveloperError=n,t.RuntimeError=i}));
define(["exports","./defaultValue-ff4e651f"],(function(t,e){"use strict";function n(t){let e;this.name="DeveloperError",this.message=t;try{throw new Error}catch(t){e=t.stack}this.stack=e}e.defined(Object.create)&&(n.prototype=Object.create(Error.prototype),n.prototype.constructor=n),n.prototype.toString=function(){let t=`${this.name}: ${this.message}`;return e.defined(this.stack)&&(t+=`\n${this.stack.toString()}`),t},n.throwInstantiationError=function(){throw new n("This function defines an interface and should not be called directly.")};const o={};function r(t,e,n){return`Expected ${n} to be typeof ${e}, actual typeof was ${t}`}function f(t){let e;this.name="RuntimeError",this.message=t;try{throw new Error}catch(t){e=t.stack}this.stack=e}o.typeOf={},o.defined=function(t,o){if(!e.defined(o))throw new n(function(t){return`${t} is required, actual value was undefined`}(t))},o.typeOf.func=function(t,e){if("function"!=typeof e)throw new n(r(typeof e,"function",t))},o.typeOf.string=function(t,e){if("string"!=typeof e)throw new n(r(typeof e,"string",t))},o.typeOf.number=function(t,e){if("number"!=typeof e)throw new n(r(typeof e,"number",t))},o.typeOf.number.lessThan=function(t,e,r){if(o.typeOf.number(t,e),e>=r)throw new n(`Expected ${t} to be less than ${r}, actual value was ${e}`)},o.typeOf.number.lessThanOrEquals=function(t,e,r){if(o.typeOf.number(t,e),e>r)throw new n(`Expected ${t} to be less than or equal to ${r}, actual value was ${e}`)},o.typeOf.number.greaterThan=function(t,e,r){if(o.typeOf.number(t,e),e<=r)throw new n(`Expected ${t} to be greater than ${r}, actual value was ${e}`)},o.typeOf.number.greaterThanOrEquals=function(t,e,r){if(o.typeOf.number(t,e),e<r)throw new n(`Expected ${t} to be greater than or equal to ${r}, actual value was ${e}`)},o.typeOf.object=function(t,e){if("object"!=typeof e)throw new n(r(typeof e,"object",t))},o.typeOf.bool=function(t,e){if("boolean"!=typeof e)throw new n(r(typeof e,"boolean",t))},o.typeOf.bigint=function(t,e){if("bigint"!=typeof e)throw new n(r(typeof e,"bigint",t))},o.typeOf.number.equals=function(t,e,r,f){if(o.typeOf.number(t,r),o.typeOf.number(e,f),r!==f)throw new n(`${t} must be equal to ${e}, the actual values are ${r} and ${f}`)},e.defined(Object.create)&&(f.prototype=Object.create(Error.prototype),f.prototype.constructor=f),f.prototype.toString=function(){let t=`${this.name}: ${this.message}`;return e.defined(this.stack)&&(t+=`\n${this.stack.toString()}`),t},t.Check=o,t.DeveloperError=n,t.RuntimeError=f}));
This source diff could not be displayed because it is too large. You can view the blob instead.
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......@@ -22,4 +22,4 @@
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./defaultValue-77c08f32","./RuntimeError-50f3c270"],(function(e,t,n){"use strict";function o(e){e=t.defaultValue(e,t.defaultValue.EMPTY_OBJECT),this.position=t.defaultValue(e.position,!1),this.normal=t.defaultValue(e.normal,!1),this.st=t.defaultValue(e.st,!1),this.bitangent=t.defaultValue(e.bitangent,!1),this.tangent=t.defaultValue(e.tangent,!1),this.color=t.defaultValue(e.color,!1)}o.POSITION_ONLY=Object.freeze(new o({position:!0})),o.POSITION_AND_NORMAL=Object.freeze(new o({position:!0,normal:!0})),o.POSITION_NORMAL_AND_ST=Object.freeze(new o({position:!0,normal:!0,st:!0})),o.POSITION_AND_ST=Object.freeze(new o({position:!0,st:!0})),o.POSITION_AND_COLOR=Object.freeze(new o({position:!0,color:!0})),o.ALL=Object.freeze(new o({position:!0,normal:!0,st:!0,tangent:!0,bitangent:!0})),o.DEFAULT=o.POSITION_NORMAL_AND_ST,o.packedLength=6,o.pack=function(e,n,o){return o=t.defaultValue(o,0),n[o++]=e.position?1:0,n[o++]=e.normal?1:0,n[o++]=e.st?1:0,n[o++]=e.tangent?1:0,n[o++]=e.bitangent?1:0,n[o]=e.color?1:0,n},o.unpack=function(e,n,a){return n=t.defaultValue(n,0),t.defined(a)||(a=new o),a.position=1===e[n++],a.normal=1===e[n++],a.st=1===e[n++],a.tangent=1===e[n++],a.bitangent=1===e[n++],a.color=1===e[n],a},o.clone=function(e,n){if(t.defined(e))return t.defined(n)||(n=new o),n.position=e.position,n.normal=e.normal,n.st=e.st,n.tangent=e.tangent,n.bitangent=e.bitangent,n.color=e.color,n},e.VertexFormat=o}));
define(["exports","./defaultValue-ff4e651f","./RuntimeError-ed67c927"],(function(e,t,n){"use strict";function o(e){e=t.defaultValue(e,t.defaultValue.EMPTY_OBJECT),this.position=t.defaultValue(e.position,!1),this.normal=t.defaultValue(e.normal,!1),this.st=t.defaultValue(e.st,!1),this.bitangent=t.defaultValue(e.bitangent,!1),this.tangent=t.defaultValue(e.tangent,!1),this.color=t.defaultValue(e.color,!1)}o.POSITION_ONLY=Object.freeze(new o({position:!0})),o.POSITION_AND_NORMAL=Object.freeze(new o({position:!0,normal:!0})),o.POSITION_NORMAL_AND_ST=Object.freeze(new o({position:!0,normal:!0,st:!0})),o.POSITION_AND_ST=Object.freeze(new o({position:!0,st:!0})),o.POSITION_AND_COLOR=Object.freeze(new o({position:!0,color:!0})),o.ALL=Object.freeze(new o({position:!0,normal:!0,st:!0,tangent:!0,bitangent:!0})),o.DEFAULT=o.POSITION_NORMAL_AND_ST,o.packedLength=6,o.pack=function(e,n,o){return o=t.defaultValue(o,0),n[o++]=e.position?1:0,n[o++]=e.normal?1:0,n[o++]=e.st?1:0,n[o++]=e.tangent?1:0,n[o++]=e.bitangent?1:0,n[o]=e.color?1:0,n},o.unpack=function(e,n,a){return n=t.defaultValue(n,0),t.defined(a)||(a=new o),a.position=1===e[n++],a.normal=1===e[n++],a.st=1===e[n++],a.tangent=1===e[n++],a.bitangent=1===e[n++],a.color=1===e[n],a},o.clone=function(e,n){if(t.defined(e))return t.defined(n)||(n=new o),n.position=e.position,n.normal=e.normal,n.st=e.st,n.tangent=e.tangent,n.bitangent=e.bitangent,n.color=e.color,n},e.VertexFormat=o}));
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......@@ -22,4 +22,4 @@
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./arrayRemoveDuplicates-50333467","./Matrix2-c788e106","./defaultValue-77c08f32","./ComponentDatatype-94a172c0","./PolylinePipeline-91ecbec7"],(function(e,t,i,n,o,r){"use strict";const a={};function s(e,t){return o.CesiumMath.equalsEpsilon(e.latitude,t.latitude,o.CesiumMath.EPSILON10)&&o.CesiumMath.equalsEpsilon(e.longitude,t.longitude,o.CesiumMath.EPSILON10)}const l=new i.Cartographic,h=new i.Cartographic;const c=new Array(2),g=new Array(2),u={positions:void 0,height:void 0,granularity:void 0,ellipsoid:void 0};a.computePositions=function(e,a,p,d,y,m){const P=function(e,o,r,a){const c=(o=t.arrayRemoveDuplicates(o,i.Cartesian3.equalsEpsilon)).length;if(c<2)return;const g=n.defined(a),u=n.defined(r),p=new Array(c),d=new Array(c),y=new Array(c),m=o[0];p[0]=m;const P=e.cartesianToCartographic(m,l);u&&(P.height=r[0]),d[0]=P.height,y[0]=g?a[0]:0;let f=d[0]===y[0],A=1;for(let t=1;t<c;++t){const n=o[t],l=e.cartesianToCartographic(n,h);u&&(l.height=r[t]),f=f&&0===l.height,s(P,l)?P.height<l.height&&(d[A-1]=l.height):(p[A]=n,d[A]=l.height,y[A]=g?a[t]:0,f=f&&d[A]===y[A],i.Cartographic.clone(l,P),++A)}return f||A<2?void 0:(p.length=A,d.length=A,y.length=A,{positions:p,topHeights:d,bottomHeights:y})}(e,a,p,d);if(!n.defined(P))return;a=P.positions,p=P.topHeights,d=P.bottomHeights;const f=a.length,A=f-2;let C,w;const v=o.CesiumMath.chordLength(y,e.maximumRadius),b=u;if(b.minDistance=v,b.ellipsoid=e,m){let e,t=0;for(e=0;e<f-1;e++)t+=r.PolylinePipeline.numberOfPoints(a[e],a[e+1],v)+1;C=new Float64Array(3*t),w=new Float64Array(3*t);const i=c,n=g;b.positions=i,b.height=n;let o=0;for(e=0;e<f-1;e++){i[0]=a[e],i[1]=a[e+1],n[0]=p[e],n[1]=p[e+1];const t=r.PolylinePipeline.generateArc(b);C.set(t,o),n[0]=d[e],n[1]=d[e+1],w.set(r.PolylinePipeline.generateArc(b),o),o+=t.length}}else b.positions=a,b.height=p,C=new Float64Array(r.PolylinePipeline.generateArc(b)),b.height=d,w=new Float64Array(r.PolylinePipeline.generateArc(b));return{bottomPositions:w,topPositions:C,numCorners:A}},e.WallGeometryLibrary=a}));
define(["exports","./arrayRemoveDuplicates-cb6282cf","./Matrix2-f4a72982","./defaultValue-ff4e651f","./ComponentDatatype-cb7120fd","./PolylinePipeline-f14a929f"],(function(e,t,i,n,o,r){"use strict";const a={};function s(e,t){return o.CesiumMath.equalsEpsilon(e.latitude,t.latitude,o.CesiumMath.EPSILON10)&&o.CesiumMath.equalsEpsilon(e.longitude,t.longitude,o.CesiumMath.EPSILON10)}const l=new i.Cartographic,h=new i.Cartographic;const c=new Array(2),g=new Array(2),u={positions:void 0,height:void 0,granularity:void 0,ellipsoid:void 0};a.computePositions=function(e,a,p,f,d,y){const m=function(e,o,r,a){const c=(o=t.arrayRemoveDuplicates(o,i.Cartesian3.equalsEpsilon)).length;if(c<2)return;const g=n.defined(a),u=n.defined(r),p=new Array(c),f=new Array(c),d=new Array(c),y=o[0];p[0]=y;const m=e.cartesianToCartographic(y,l);u&&(m.height=r[0]),f[0]=m.height,d[0]=g?a[0]:0;let P=f[0]===d[0],A=1;for(let t=1;t<c;++t){const n=o[t],l=e.cartesianToCartographic(n,h);u&&(l.height=r[t]),P=P&&0===l.height,s(m,l)?m.height<l.height&&(f[A-1]=l.height):(p[A]=n,f[A]=l.height,d[A]=g?a[t]:0,P=P&&f[A]===d[A],i.Cartographic.clone(l,m),++A)}return P||A<2?void 0:(p.length=A,f.length=A,d.length=A,{positions:p,topHeights:f,bottomHeights:d})}(e,a,p,f);if(!n.defined(m))return;a=m.positions,p=m.topHeights,f=m.bottomHeights;const P=a.length,A=P-2;let C,w;const b=o.CesiumMath.chordLength(d,e.maximumRadius),v=u;if(v.minDistance=b,v.ellipsoid=e,y){let e,t=0;for(e=0;e<P-1;e++)t+=r.PolylinePipeline.numberOfPoints(a[e],a[e+1],b)+1;C=new Float64Array(3*t),w=new Float64Array(3*t);const i=c,n=g;v.positions=i,v.height=n;let o=0;for(e=0;e<P-1;e++){i[0]=a[e],i[1]=a[e+1],n[0]=p[e],n[1]=p[e+1];const t=r.PolylinePipeline.generateArc(v);C.set(t,o),n[0]=f[e],n[1]=f[e+1],w.set(r.PolylinePipeline.generateArc(v),o),o+=t.length}}else v.positions=a,v.height=p,C=new Float64Array(r.PolylinePipeline.generateArc(v)),v.height=f,w=new Float64Array(r.PolylinePipeline.generateArc(v));return{bottomPositions:w,topPositions:C,numCorners:A}},e.WallGeometryLibrary=a}));
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Columbus View (Pat. Pend.)
*
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./arrayRemoveDuplicates-ca6f0282","./Matrix2-4706dd70","./defaultValue-028a8a27","./ComponentDatatype-438cad2a","./PolylinePipeline-52ab0181"],function(v,O,b,L,y,C){"use strict";const S={};function T(a,t){return y.CesiumMath.equalsEpsilon(a.latitude,t.latitude,y.CesiumMath.EPSILON10)&&y.CesiumMath.equalsEpsilon(a.longitude,t.longitude,y.CesiumMath.EPSILON10)}const q=new b.Cartographic,w=new b.Cartographic;function F(a,t,i,h){t=O.arrayRemoveDuplicates(t,b.Cartesian3.equalsEpsilon);const f=t.length;if(f<2)return;const E=L.defined(h),d=L.defined(i),l=new Array(f),g=new Array(f),r=new Array(f),p=t[0];l[0]=p;const u=a.cartesianToCartographic(p,q);d&&(u.height=i[0]),g[0]=u.height,E?r[0]=h[0]:r[0]=0;const o=g[0],P=r[0];let e=o===P,n=1;for(let c=1;c<f;++c){const A=t[c],s=a.cartesianToCartographic(A,w);d&&(s.height=i[c]),e=e&&s.height===0,T(u,s)?u.height<s.height&&(g[n-1]=s.height):(l[n]=A,g[n]=s.height,E?r[n]=h[c]:r[n]=0,e=e&&g[n]===r[n],b.Cartographic.clone(s,u),++n)}if(!(e||n<2))return l.length=n,g.length=n,r.length=n,{positions:l,topHeights:g,bottomHeights:r}}const B=new Array(2),M=new Array(2),R={positions:void 0,height:void 0,granularity:void 0,ellipsoid:void 0};S.computePositions=function(a,t,i,h,f,E){const d=F(a,t,i,h);if(!L.defined(d))return;t=d.positions,i=d.topHeights,h=d.bottomHeights;const l=t.length,g=l-2;let r,p;const u=y.CesiumMath.chordLength(f,a.maximumRadius),o=R;if(o.minDistance=u,o.ellipsoid=a,E){let P=0,e;for(e=0;e<l-1;e++)P+=C.PolylinePipeline.numberOfPoints(t[e],t[e+1],u)+1;r=new Float64Array(P*3),p=new Float64Array(P*3);const n=B,c=M;o.positions=n,o.height=c;let A=0;for(e=0;e<l-1;e++){n[0]=t[e],n[1]=t[e+1],c[0]=i[e],c[1]=i[e+1];const s=C.PolylinePipeline.generateArc(o);r.set(s,A),c[0]=h[e],c[1]=h[e+1],p.set(C.PolylinePipeline.generateArc(o),A),A+=s.length}}else o.positions=t,o.height=i,r=new Float64Array(C.PolylinePipeline.generateArc(o)),o.height=h,p=new Float64Array(C.PolylinePipeline.generateArc(o));return{bottomPositions:p,topPositions:r,numCorners:g}},v.WallGeometryLibrary=S});
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.3
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
......@@ -22,4 +22,4 @@
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./Matrix2-c788e106","./defaultValue-77c08f32","./RuntimeError-50f3c270","./ComponentDatatype-94a172c0"],(function(t,e,i,o,a){"use strict";function r(t){this._ellipsoid=i.defaultValue(t,e.Ellipsoid.WGS84),this._semimajorAxis=this._ellipsoid.maximumRadius,this._oneOverSemimajorAxis=1/this._semimajorAxis}Object.defineProperties(r.prototype,{ellipsoid:{get:function(){return this._ellipsoid}}}),r.mercatorAngleToGeodeticLatitude=function(t){return a.CesiumMath.PI_OVER_TWO-2*Math.atan(Math.exp(-t))},r.geodeticLatitudeToMercatorAngle=function(t){t>r.MaximumLatitude?t=r.MaximumLatitude:t<-r.MaximumLatitude&&(t=-r.MaximumLatitude);const e=Math.sin(t);return.5*Math.log((1+e)/(1-e))},r.MaximumLatitude=r.mercatorAngleToGeodeticLatitude(Math.PI),r.prototype.project=function(t,o){const a=this._semimajorAxis,n=t.longitude*a,u=r.geodeticLatitudeToMercatorAngle(t.latitude)*a,d=t.height;return i.defined(o)?(o.x=n,o.y=u,o.z=d,o):new e.Cartesian3(n,u,d)},r.prototype.unproject=function(t,o){const a=this._oneOverSemimajorAxis,n=t.x*a,u=r.mercatorAngleToGeodeticLatitude(t.y*a),d=t.z;return i.defined(o)?(o.longitude=n,o.latitude=u,o.height=d,o):new e.Cartographic(n,u,d)},t.WebMercatorProjection=r}));
define(["exports","./Matrix2-f4a72982","./defaultValue-ff4e651f","./RuntimeError-ed67c927","./ComponentDatatype-cb7120fd"],(function(t,e,i,o,a){"use strict";function r(t){this._ellipsoid=i.defaultValue(t,e.Ellipsoid.WGS84),this._semimajorAxis=this._ellipsoid.maximumRadius,this._oneOverSemimajorAxis=1/this._semimajorAxis}Object.defineProperties(r.prototype,{ellipsoid:{get:function(){return this._ellipsoid}}}),r.mercatorAngleToGeodeticLatitude=function(t){return a.CesiumMath.PI_OVER_TWO-2*Math.atan(Math.exp(-t))},r.geodeticLatitudeToMercatorAngle=function(t){t>r.MaximumLatitude?t=r.MaximumLatitude:t<-r.MaximumLatitude&&(t=-r.MaximumLatitude);const e=Math.sin(t);return.5*Math.log((1+e)/(1-e))},r.MaximumLatitude=r.mercatorAngleToGeodeticLatitude(Math.PI),r.prototype.project=function(t,o){const a=this._semimajorAxis,n=t.longitude*a,u=r.geodeticLatitudeToMercatorAngle(t.latitude)*a,d=t.height;return i.defined(o)?(o.x=n,o.y=u,o.z=d,o):new e.Cartesian3(n,u,d)},r.prototype.unproject=function(t,o){const a=this._oneOverSemimajorAxis,n=t.x*a,u=r.mercatorAngleToGeodeticLatitude(t.y*a),d=t.z;return i.defined(o)?(o.longitude=n,o.latitude=u,o.height=d,o):new e.Cartographic(n,u,d)},t.WebMercatorProjection=r}));
/**
* @license
* Cesium - https://github.com/CesiumGS/cesium
* Version 1.96.6
*
* Copyright 2011-2022 Cesium Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Columbus View (Pat. Pend.)
*
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(["exports","./Matrix2-4706dd70","./defaultValue-028a8a27","./RuntimeError-a977b8e0","./ComponentDatatype-438cad2a"],function(m,s,d,c,u){"use strict";function t(e){this._ellipsoid=d.defaultValue(e,s.Ellipsoid.WGS84),this._semimajorAxis=this._ellipsoid.maximumRadius,this._oneOverSemimajorAxis=1/this._semimajorAxis}Object.defineProperties(t.prototype,{ellipsoid:{get:function(){return this._ellipsoid}}}),t.mercatorAngleToGeodeticLatitude=function(e){return u.CesiumMath.PI_OVER_TWO-2*Math.atan(Math.exp(-e))},t.geodeticLatitudeToMercatorAngle=function(e){e>t.MaximumLatitude?e=t.MaximumLatitude:e<-t.MaximumLatitude&&(e=-t.MaximumLatitude);const i=Math.sin(e);return .5*Math.log((1+i)/(1-i))},t.MaximumLatitude=t.mercatorAngleToGeodeticLatitude(Math.PI),t.prototype.project=function(e,i){const o=this._semimajorAxis,n=e.longitude*o,r=t.geodeticLatitudeToMercatorAngle(e.latitude)*o,a=e.height;return d.defined(i)?(i.x=n,i.y=r,i.z=a,i):new s.Cartesian3(n,r,a)},t.prototype.unproject=function(e,i){if(!d.defined(e))throw new c.DeveloperError("cartesian is required");const o=this._oneOverSemimajorAxis,n=e.x*o,r=t.mercatorAngleToGeodeticLatitude(e.y*o),a=e.z;return d.defined(i)?(i.longitude=n,i.latitude=r,i.height=a,i):new s.Cartographic(n,r,a)},m.WebMercatorProjection=t});
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论