样式优化
@ -1 +1 @@
|
||||
define(["./createTaskProcessorWorker","./pako_inflate-f73548c4","./CompressedTextureBuffer-290a1ff4","./when-b60132fc","./PixelFormat-9345f1c7","./RuntimeError-4a5c8994","./S3MPixelFormat-4f2b7689","./WebGLConstants-4ae0db90"],(function(e,r,t,n,a,i,f,E){"use strict";var u,o,s=1,_=2,c={};c[0]=a.PixelFormat.RGB_DXT1,c[s]=a.PixelFormat.RGBA_DXT3,c[_]=a.PixelFormat.RGBA_DXT5;var d,T=0;function l(e){var r=e.data,f=r.byteLength,E=new Uint8Array(r,e.offset),s=d._malloc(f);!function(e,r,t,n){var a,i=t/4,f=n%4,E=new Uint32Array(e.buffer,0,(n-f)/4),u=new Uint32Array(r.buffer);for(a=0;a<E.length;a++)u[i+a]=E[a];for(a=n-f;a<n;a++)r[t+a]=e[a]}(E,d.HEAPU8,s,f);var _=d._crn_get_dxt_format(s,f),l=c[_];if(!n.defined(l))throw new i.RuntimeError("Unsupported compressed format.");var m,y=d._crn_get_levels(s,f),U=d._crn_get_width(s,f),p=d._crn_get_height(s,f),A=0;for(m=0;m<y;++m)A+=a.PixelFormat.compressedTextureSizeInBytes(l,U>>m,p>>m);if(T<A&&(n.defined(u)&&d._free(u),u=d._malloc(A),o=new Uint8Array(d.HEAPU8.buffer,u,A),T=A),d._crn_decompress(s,f,u,A,0,y),d._free(s),n.defaultValue(e.bMipMap,!1)){var B=o.slice(0,A);return new t.CompressedTextureBuffer(l,U,p,B)}var w=a.PixelFormat.compressedTextureSizeInBytes(l,U,p),P=o.subarray(0,w),g=new Uint8Array(w);return g.set(P,0),new t.CompressedTextureBuffer(l,U,p,g)}function m(e){var r=new DataView(e),t=0,n=r.getUint32(t,!0);t+=Uint32Array.BYTES_PER_ELEMENT;var a=r.getUint32(t,!0);t+=Uint32Array.BYTES_PER_ELEMENT;var i=r.getUint32(t,!0);t+=Uint32Array.BYTES_PER_ELEMENT;var f=r.getUint32(t,!0);t+=Uint32Array.BYTES_PER_ELEMENT;var E=r.getUint32(t,!0);t+=Uint32Array.BYTES_PER_ELEMENT;var u=l({data:e.slice(t,t+E)}).bufferView,o=new ArrayBuffer(t+u.byteLength),s=new Uint8Array(o),_=new Uint32Array(o);return t=0,_[0]=n,t+=Uint32Array.BYTES_PER_ELEMENT,_[1]=a,t+=Uint32Array.BYTES_PER_ELEMENT,_[2]=i,t+=Uint32Array.BYTES_PER_ELEMENT,_[3]=f,t+=Uint32Array.BYTES_PER_ELEMENT,_[4]=u.byteLength,t+=Uint32Array.BYTES_PER_ELEMENT,s.set(u,t),o}function y(e,t){for(var n=e.data,a=[],i=0;i<n.length;i++){var E,u=n[i];try{var o=new Uint8Array(u.zipBuffer);E=r.pako.inflate(o).buffer,new DataView(E).getUint32(0,!0)===f.S3MPixelFormat.CRN_DXT5&&(E=m(E)),t.push(E),a.push({unzipBuffer:E,name:u.name})}catch(r){u.unzipLength===u.zippedLength&&(E=u.zipBuffer.buffer,e.isCRN&&(E=m(E)),t.push(E),a.push({unzipBuffer:E,name:u.name}));continue}}return{data:a}}function U(){self.onmessage=e(y),self.postMessage(!0)}return function(e){var r=e.data.webAssemblyConfig;if(n.defined(r))return require([r.modulePath],(function(e){n.defined(r.wasmBinaryFile)?(n.defined(e)||(e=self.Module),d=e,U()):(d=e,U())}))}}));
|
||||
define(["./createTaskProcessorWorker","./pako_inflate-f73548c4","./CompressedTextureBuffer-290a1ff4","./when-b60132fc","./PixelFormat-fd637eac","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90"],(function(e,r,t,n,a,i,f){"use strict";var E,u,s=1,o=2,_={};_[0]=a.PixelFormat.RGB_DXT1,_[s]=a.PixelFormat.RGBA_DXT3,_[o]=a.PixelFormat.RGBA_DXT5;var d,c=0;function T(e){var r=e.data,f=r.byteLength,s=new Uint8Array(r,e.offset),o=d._malloc(f);!function(e,r,t,n){var a,i=t/4,f=n%4,E=new Uint32Array(e.buffer,0,(n-f)/4),u=new Uint32Array(r.buffer);for(a=0;a<E.length;a++)u[i+a]=E[a];for(a=n-f;a<n;a++)r[t+a]=e[a]}(s,d.HEAPU8,o,f);var T=d._crn_get_dxt_format(o,f),y=_[T];if(!n.defined(y))throw new i.RuntimeError("Unsupported compressed format.");var l,m=d._crn_get_levels(o,f),U=d._crn_get_width(o,f),p=d._crn_get_height(o,f),A=0;for(l=0;l<m;++l)A+=a.PixelFormat.compressedTextureSizeInBytes(y,U>>l,p>>l);if(c<A&&(n.defined(E)&&d._free(E),E=d._malloc(A),u=new Uint8Array(d.HEAPU8.buffer,E,A),c=A),d._crn_decompress(o,f,E,A,0,m),d._free(o),n.defaultValue(e.bMipMap,!1)){var B=u.slice(0,A);return new t.CompressedTextureBuffer(y,U,p,B)}var g=a.PixelFormat.compressedTextureSizeInBytes(y,U,p),w=u.subarray(0,g),P=new Uint8Array(g);return P.set(w,0),new t.CompressedTextureBuffer(y,U,p,P)}function y(e){var r=new DataView(e),t=0,n=r.getUint32(t,!0);t+=Uint32Array.BYTES_PER_ELEMENT;var a=r.getUint32(t,!0);t+=Uint32Array.BYTES_PER_ELEMENT;var i=r.getUint32(t,!0);t+=Uint32Array.BYTES_PER_ELEMENT;var f=r.getUint32(t,!0);t+=Uint32Array.BYTES_PER_ELEMENT;var E=r.getUint32(t,!0);t+=Uint32Array.BYTES_PER_ELEMENT;var u=T({data:e.slice(t,t+E)}).bufferView,s=new ArrayBuffer(t+u.byteLength),o=new Uint8Array(s),_=new Uint32Array(s);return t=0,_[0]=n,t+=Uint32Array.BYTES_PER_ELEMENT,_[1]=a,t+=Uint32Array.BYTES_PER_ELEMENT,_[2]=i,t+=Uint32Array.BYTES_PER_ELEMENT,_[3]=f,t+=Uint32Array.BYTES_PER_ELEMENT,_[4]=u.byteLength,t+=Uint32Array.BYTES_PER_ELEMENT,o.set(u,t),s}function l(e,t){for(var n=e.data,a=[],i=0;i<n.length;i++){var f,E=n[i];try{var u=new Uint8Array(E.zipBuffer);f=r.pako.inflate(u).buffer,e.isCRN&&(f=y(f)),t.push(f),a.push({unzipBuffer:f,name:E.name})}catch(r){E.unzipLength===E.zippedLength&&(f=E.zipBuffer.buffer,e.isCRN&&(f=y(f)),t.push(f),a.push({unzipBuffer:f,name:E.name}));continue}}return{data:a}}function m(){self.onmessage=e(l),self.postMessage(!0)}return function(e){var r=e.data.webAssemblyConfig;if(n.defined(r))return require([r.modulePath],(function(e){n.defined(r.wasmBinaryFile)?(n.defined(e)||(e=self.Module),d=e,m()):(d=e,m())}))}}));
|
||||
|
||||
@ -1 +1 @@
|
||||
define(["./PrimitivePipeline-580026be","./createTaskProcessorWorker","./buildModuleUrl-8958744c","./Cartographic-3309dd0d","./Check-7b2a090c","./when-b60132fc","./Math-119be1a3","./Cartesian2-47311507","./FeatureDetection-806b12f0","./Cartesian4-3ca25aab","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Event-16a2dfbf","./ComponentDatatype-c140a87d","./GeometryAttribute-06a41648","./GeometryAttributes-252e9929","./GeometryPipeline-44c6c124","./AttributeCompression-90851096","./EncodedCartesian3-f1396b05","./IndexDatatype-8a5eead4","./IntersectionTests-a793ed08","./Plane-a3d8b3d2","./WebMercatorProjection-01b1b5e7"],(function(e,t,i,r,a,n,o,c,b,s,m,d,u,P,p,l,C,f,y,G,v,k,h){"use strict";return t((function(t,i){var r=e.PrimitivePipeline.unpackCombineGeometryParameters(t),a=e.PrimitivePipeline.combineGeometry(r);return e.PrimitivePipeline.packCombineGeometryResults(a,i)}))}));
|
||||
define(["./PrimitivePipeline-3b9da2a6","./createTaskProcessorWorker","./buildModuleUrl-4e1b81e7","./Cartographic-3309dd0d","./Check-7b2a090c","./when-b60132fc","./Math-119be1a3","./Cartesian2-47311507","./PrimitiveType-a54dc62f","./Cartesian4-3ca25aab","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Event-16a2dfbf","./ComponentDatatype-c140a87d","./GeometryAttribute-3a88ba31","./FeatureDetection-c3b71206","./GeometryAttributes-252e9929","./GeometryPipeline-9d1ef0b6","./AttributeCompression-90851096","./EncodedCartesian3-f1396b05","./IndexDatatype-8a5eead4","./IntersectionTests-7386ffbf","./Plane-7ae8294c","./WebMercatorProjection-01b1b5e7"],(function(e,t,i,r,a,n,o,b,c,s,m,d,u,P,p,f,l,C,y,v,G,k,h,A){"use strict";return t((function(t,i){var r=e.PrimitivePipeline.unpackCombineGeometryParameters(t),a=e.PrimitivePipeline.combineGeometry(r);return e.PrimitivePipeline.packCombineGeometryResults(a,i)}))}));
|
||||
|
||||
@ -1 +1 @@
|
||||
define(["./BoxGeometry-6818d648","./when-b60132fc","./arrayFill-4513d7ad","./Check-7b2a090c","./buildModuleUrl-8958744c","./Cartographic-3309dd0d","./Math-119be1a3","./Cartesian2-47311507","./FeatureDetection-806b12f0","./Cartesian4-3ca25aab","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Event-16a2dfbf","./ComponentDatatype-c140a87d","./GeometryAttribute-06a41648","./GeometryAttributes-252e9929","./GeometryOffsetAttribute-fbeb6f1a","./VertexFormat-6446fca0"],(function(e,t,a,r,o,n,c,i,b,d,f,u,m,y,s,G,C,l){"use strict";return function(a,r){return t.defined(r)&&(a=e.BoxGeometry.unpack(a,r)),e.BoxGeometry.createGeometry(a)}}));
|
||||
define(["./BoxGeometry-96a5dbc5","./when-b60132fc","./arrayFill-4513d7ad","./Check-7b2a090c","./buildModuleUrl-4e1b81e7","./Cartographic-3309dd0d","./Math-119be1a3","./Cartesian2-47311507","./PrimitiveType-a54dc62f","./Cartesian4-3ca25aab","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Event-16a2dfbf","./ComponentDatatype-c140a87d","./GeometryAttribute-3a88ba31","./FeatureDetection-c3b71206","./GeometryAttributes-252e9929","./GeometryOffsetAttribute-fbeb6f1a","./VertexFormat-6446fca0"],(function(e,t,a,r,o,n,i,b,c,d,f,u,m,y,s,G,C,l,p){"use strict";return function(a,r){return t.defined(r)&&(a=e.BoxGeometry.unpack(a,r)),e.BoxGeometry.createGeometry(a)}}));
|
||||
|
||||
@ -1 +1 @@
|
||||
define(["./arrayFill-4513d7ad","./buildModuleUrl-8958744c","./Cartographic-3309dd0d","./Check-7b2a090c","./ComponentDatatype-c140a87d","./when-b60132fc","./GeometryAttribute-06a41648","./GeometryAttributes-252e9929","./GeometryOffsetAttribute-fbeb6f1a","./FeatureDetection-806b12f0","./Cartesian2-47311507","./Math-119be1a3","./Event-16a2dfbf","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Cartesian4-3ca25aab"],(function(e,t,a,n,i,r,u,o,m,s,f,c,d,l,b,p){"use strict";var y=new a.Cartesian3;function C(e){var t=(e=r.defaultValue(e,r.defaultValue.EMPTY_OBJECT)).minimum,n=e.maximum;this._min=a.Cartesian3.clone(t),this._max=a.Cartesian3.clone(n),this._offsetAttribute=e.offsetAttribute,this._workerName="createBoxOutlineGeometry"}C.fromDimensions=function(e){var t=(e=r.defaultValue(e,r.defaultValue.EMPTY_OBJECT)).dimensions,n=a.Cartesian3.multiplyByScalar(t,.5,new a.Cartesian3);return new C({minimum:a.Cartesian3.negate(n,new a.Cartesian3),maximum:n,offsetAttribute:e.offsetAttribute})},C.fromAxisAlignedBoundingBox=function(e){return new C({minimum:e.minimum,maximum:e.maximum})},C.packedLength=2*a.Cartesian3.packedLength+1,C.pack=function(e,t,n){return n=r.defaultValue(n,0),a.Cartesian3.pack(e._min,t,n),a.Cartesian3.pack(e._max,t,n+a.Cartesian3.packedLength),t[n+2*a.Cartesian3.packedLength]=r.defaultValue(e._offsetAttribute,-1),t};var A=new a.Cartesian3,x=new a.Cartesian3,_={minimum:A,maximum:x,offsetAttribute:void 0};return C.unpack=function(e,t,n){t=r.defaultValue(t,0);var i=a.Cartesian3.unpack(e,t,A),u=a.Cartesian3.unpack(e,t+a.Cartesian3.packedLength,x),o=e[t+2*a.Cartesian3.packedLength];return r.defined(n)?(n._min=a.Cartesian3.clone(i,n._min),n._max=a.Cartesian3.clone(u,n._max),n._offsetAttribute=-1===o?void 0:o,n):(_.offsetAttribute=-1===o?void 0:o,new C(_))},C.createGeometry=function(n){var f=n._min,c=n._max;if(!a.Cartesian3.equals(f,c)){var d=new o.GeometryAttributes,l=new Uint16Array(24),b=new Float64Array(24);b[0]=f.x,b[1]=f.y,b[2]=f.z,b[3]=c.x,b[4]=f.y,b[5]=f.z,b[6]=c.x,b[7]=c.y,b[8]=f.z,b[9]=f.x,b[10]=c.y,b[11]=f.z,b[12]=f.x,b[13]=f.y,b[14]=c.z,b[15]=c.x,b[16]=f.y,b[17]=c.z,b[18]=c.x,b[19]=c.y,b[20]=c.z,b[21]=f.x,b[22]=c.y,b[23]=c.z,d.position=new u.GeometryAttribute({componentDatatype:i.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:b}),l[0]=4,l[1]=5,l[2]=5,l[3]=6,l[4]=6,l[5]=7,l[6]=7,l[7]=4,l[8]=0,l[9]=1,l[10]=1,l[11]=2,l[12]=2,l[13]=3,l[14]=3,l[15]=0,l[16]=0,l[17]=4,l[18]=1,l[19]=5,l[20]=2,l[21]=6,l[22]=3,l[23]=7;var p=a.Cartesian3.subtract(c,f,y),C=.5*a.Cartesian3.magnitude(p);if(r.defined(n._offsetAttribute)){var A=b.length,x=new Uint8Array(A/3),_=n._offsetAttribute===m.GeometryOffsetAttribute.NONE?0:1;e.arrayFill(x,_),d.applyOffset=new u.GeometryAttribute({componentDatatype:i.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:x})}return new u.Geometry({attributes:d,indices:l,primitiveType:s.PrimitiveType.LINES,boundingSphere:new t.BoundingSphere(a.Cartesian3.ZERO,C),offsetAttribute:n._offsetAttribute})}},function(e,t){return r.defined(t)&&(e=C.unpack(e,t)),C.createGeometry(e)}}));
|
||||
define(["./arrayFill-4513d7ad","./buildModuleUrl-4e1b81e7","./Cartographic-3309dd0d","./Check-7b2a090c","./ComponentDatatype-c140a87d","./when-b60132fc","./GeometryAttribute-3a88ba31","./GeometryAttributes-252e9929","./GeometryOffsetAttribute-fbeb6f1a","./PrimitiveType-a54dc62f","./Cartesian2-47311507","./Math-119be1a3","./Event-16a2dfbf","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./FeatureDetection-c3b71206","./Cartesian4-3ca25aab"],(function(e,t,a,n,i,r,u,o,m,s,f,c,d,b,l,p,y){"use strict";var C=new a.Cartesian3;function A(e){var t=(e=r.defaultValue(e,r.defaultValue.EMPTY_OBJECT)).minimum,n=e.maximum;this._min=a.Cartesian3.clone(t),this._max=a.Cartesian3.clone(n),this._offsetAttribute=e.offsetAttribute,this._workerName="createBoxOutlineGeometry"}A.fromDimensions=function(e){var t=(e=r.defaultValue(e,r.defaultValue.EMPTY_OBJECT)).dimensions,n=a.Cartesian3.multiplyByScalar(t,.5,new a.Cartesian3);return new A({minimum:a.Cartesian3.negate(n,new a.Cartesian3),maximum:n,offsetAttribute:e.offsetAttribute})},A.fromAxisAlignedBoundingBox=function(e){return new A({minimum:e.minimum,maximum:e.maximum})},A.packedLength=2*a.Cartesian3.packedLength+1,A.pack=function(e,t,n){return n=r.defaultValue(n,0),a.Cartesian3.pack(e._min,t,n),a.Cartesian3.pack(e._max,t,n+a.Cartesian3.packedLength),t[n+2*a.Cartesian3.packedLength]=r.defaultValue(e._offsetAttribute,-1),t};var x=new a.Cartesian3,_=new a.Cartesian3,v={minimum:x,maximum:_,offsetAttribute:void 0};return A.unpack=function(e,t,n){t=r.defaultValue(t,0);var i=a.Cartesian3.unpack(e,t,x),u=a.Cartesian3.unpack(e,t+a.Cartesian3.packedLength,_),o=e[t+2*a.Cartesian3.packedLength];return r.defined(n)?(n._min=a.Cartesian3.clone(i,n._min),n._max=a.Cartesian3.clone(u,n._max),n._offsetAttribute=-1===o?void 0:o,n):(v.offsetAttribute=-1===o?void 0:o,new A(v))},A.createGeometry=function(n){var f=n._min,c=n._max;if(!a.Cartesian3.equals(f,c)){var d=new o.GeometryAttributes,b=new Uint16Array(24),l=new Float64Array(24);l[0]=f.x,l[1]=f.y,l[2]=f.z,l[3]=c.x,l[4]=f.y,l[5]=f.z,l[6]=c.x,l[7]=c.y,l[8]=f.z,l[9]=f.x,l[10]=c.y,l[11]=f.z,l[12]=f.x,l[13]=f.y,l[14]=c.z,l[15]=c.x,l[16]=f.y,l[17]=c.z,l[18]=c.x,l[19]=c.y,l[20]=c.z,l[21]=f.x,l[22]=c.y,l[23]=c.z,d.position=new u.GeometryAttribute({componentDatatype:i.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:l}),b[0]=4,b[1]=5,b[2]=5,b[3]=6,b[4]=6,b[5]=7,b[6]=7,b[7]=4,b[8]=0,b[9]=1,b[10]=1,b[11]=2,b[12]=2,b[13]=3,b[14]=3,b[15]=0,b[16]=0,b[17]=4,b[18]=1,b[19]=5,b[20]=2,b[21]=6,b[22]=3,b[23]=7;var p=a.Cartesian3.subtract(c,f,C),y=.5*a.Cartesian3.magnitude(p);if(r.defined(n._offsetAttribute)){var A=l.length,x=new Uint8Array(A/3),_=n._offsetAttribute===m.GeometryOffsetAttribute.NONE?0:1;e.arrayFill(x,_),d.applyOffset=new u.GeometryAttribute({componentDatatype:i.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:x})}return new u.Geometry({attributes:d,indices:b,primitiveType:s.PrimitiveType.LINES,boundingSphere:new t.BoundingSphere(a.Cartesian3.ZERO,y),offsetAttribute:n._offsetAttribute})}},function(e,t){return r.defined(t)&&(e=A.unpack(e,t)),A.createGeometry(e)}}));
|
||||
|
||||
@ -1 +1 @@
|
||||
define(["./Cartographic-3309dd0d","./Check-7b2a090c","./when-b60132fc","./EllipseGeometry-462fe80a","./Cartesian2-47311507","./VertexFormat-6446fca0","./Math-119be1a3","./arrayFill-4513d7ad","./buildModuleUrl-8958744c","./FeatureDetection-806b12f0","./Cartesian4-3ca25aab","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Event-16a2dfbf","./ComponentDatatype-c140a87d","./EllipseGeometryLibrary-79deae95","./GeometryAttribute-06a41648","./GeometryAttributes-252e9929","./GeometryInstance-6bd4503d","./GeometryOffsetAttribute-fbeb6f1a","./GeometryPipeline-44c6c124","./AttributeCompression-90851096","./EncodedCartesian3-f1396b05","./IndexDatatype-8a5eead4","./IntersectionTests-a793ed08","./Plane-a3d8b3d2"],(function(e,t,i,r,o,a,n,l,s,d,m,u,c,p,y,_,h,G,x,f,g,b,v,E,w,A){"use strict";function C(e){var t=(e=i.defaultValue(e,i.defaultValue.EMPTY_OBJECT)).radius,o={center:e.center,semiMajorAxis:t,semiMinorAxis:t,ellipsoid:e.ellipsoid,height:e.height,extrudedHeight:e.extrudedHeight,granularity:e.granularity,vertexFormat:e.vertexFormat,stRotation:e.stRotation,shadowVolume:e.shadowVolume};this._ellipseGeometry=new r.EllipseGeometry(o),this._workerName="createCircleGeometry"}C.packedLength=r.EllipseGeometry.packedLength,C.pack=function(e,t,i){return r.EllipseGeometry.pack(e._ellipseGeometry,t,i)};var M=new r.EllipseGeometry({center:new e.Cartesian3,semiMajorAxis:1,semiMinorAxis:1}),F={center:new e.Cartesian3,radius:void 0,ellipsoid:o.Ellipsoid.clone(o.Ellipsoid.UNIT_SPHERE),height:void 0,extrudedHeight:void 0,granularity:void 0,vertexFormat:new a.VertexFormat,stRotation:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0,shadowVolume:void 0};return C.unpack=function(t,n,l){var s=r.EllipseGeometry.unpack(t,n,M);return F.center=e.Cartesian3.clone(s._center,F.center),F.ellipsoid=o.Ellipsoid.clone(s._ellipsoid,F.ellipsoid),F.height=s._height,F.extrudedHeight=s._extrudedHeight,F.granularity=s._granularity,F.vertexFormat=a.VertexFormat.clone(s._vertexFormat,F.vertexFormat),F.stRotation=s._stRotation,F.shadowVolume=s._shadowVolume,i.defined(l)?(F.semiMajorAxis=s._semiMajorAxis,F.semiMinorAxis=s._semiMinorAxis,l._ellipseGeometry=new r.EllipseGeometry(F),l):(F.radius=s._semiMajorAxis,new C(F))},C.createGeometry=function(e){return r.EllipseGeometry.createGeometry(e._ellipseGeometry)},C.createShadowVolume=function(e,t,i){var r=e._ellipseGeometry._granularity,o=e._ellipseGeometry._ellipsoid,n=t(r,o),l=i(r,o);return new C({center:e._ellipseGeometry._center,radius:e._ellipseGeometry._semiMajorAxis,ellipsoid:o,stRotation:e._ellipseGeometry._stRotation,granularity:r,extrudedHeight:n,height:l,vertexFormat:a.VertexFormat.POSITION_ONLY,shadowVolume:!0})},Object.defineProperties(C.prototype,{rectangle:{get:function(){return this._ellipseGeometry.rectangle}},textureCoordinateRotationPoints:{get:function(){return this._ellipseGeometry.textureCoordinateRotationPoints}}}),function(t,r){return i.defined(r)&&(t=C.unpack(t,r)),t._ellipseGeometry._center=e.Cartesian3.clone(t._ellipseGeometry._center),t._ellipseGeometry._ellipsoid=o.Ellipsoid.clone(t._ellipseGeometry._ellipsoid),C.createGeometry(t)}}));
|
||||
define(["./Cartographic-3309dd0d","./Check-7b2a090c","./when-b60132fc","./EllipseGeometry-56e329a6","./Cartesian2-47311507","./VertexFormat-6446fca0","./Math-119be1a3","./arrayFill-4513d7ad","./buildModuleUrl-4e1b81e7","./PrimitiveType-a54dc62f","./Cartesian4-3ca25aab","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Event-16a2dfbf","./ComponentDatatype-c140a87d","./EllipseGeometryLibrary-96261ee5","./GeometryAttribute-3a88ba31","./FeatureDetection-c3b71206","./GeometryAttributes-252e9929","./GeometryInstance-68aae013","./GeometryOffsetAttribute-fbeb6f1a","./GeometryPipeline-9d1ef0b6","./AttributeCompression-90851096","./EncodedCartesian3-f1396b05","./IndexDatatype-8a5eead4","./IntersectionTests-7386ffbf","./Plane-7ae8294c"],(function(e,t,i,r,o,a,n,l,s,d,m,u,c,p,y,_,h,G,x,f,g,b,v,E,w,A,C){"use strict";function M(e){var t=(e=i.defaultValue(e,i.defaultValue.EMPTY_OBJECT)).radius,o={center:e.center,semiMajorAxis:t,semiMinorAxis:t,ellipsoid:e.ellipsoid,height:e.height,extrudedHeight:e.extrudedHeight,granularity:e.granularity,vertexFormat:e.vertexFormat,stRotation:e.stRotation,shadowVolume:e.shadowVolume};this._ellipseGeometry=new r.EllipseGeometry(o),this._workerName="createCircleGeometry"}M.packedLength=r.EllipseGeometry.packedLength,M.pack=function(e,t,i){return r.EllipseGeometry.pack(e._ellipseGeometry,t,i)};var F=new r.EllipseGeometry({center:new e.Cartesian3,semiMajorAxis:1,semiMinorAxis:1}),V={center:new e.Cartesian3,radius:void 0,ellipsoid:o.Ellipsoid.clone(o.Ellipsoid.UNIT_SPHERE),height:void 0,extrudedHeight:void 0,granularity:void 0,vertexFormat:new a.VertexFormat,stRotation:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0,shadowVolume:void 0};return M.unpack=function(t,n,l){var s=r.EllipseGeometry.unpack(t,n,F);return V.center=e.Cartesian3.clone(s._center,V.center),V.ellipsoid=o.Ellipsoid.clone(s._ellipsoid,V.ellipsoid),V.height=s._height,V.extrudedHeight=s._extrudedHeight,V.granularity=s._granularity,V.vertexFormat=a.VertexFormat.clone(s._vertexFormat,V.vertexFormat),V.stRotation=s._stRotation,V.shadowVolume=s._shadowVolume,i.defined(l)?(V.semiMajorAxis=s._semiMajorAxis,V.semiMinorAxis=s._semiMinorAxis,l._ellipseGeometry=new r.EllipseGeometry(V),l):(V.radius=s._semiMajorAxis,new M(V))},M.createGeometry=function(e){return r.EllipseGeometry.createGeometry(e._ellipseGeometry)},M.createShadowVolume=function(e,t,i){var r=e._ellipseGeometry._granularity,o=e._ellipseGeometry._ellipsoid,n=t(r,o),l=i(r,o);return new M({center:e._ellipseGeometry._center,radius:e._ellipseGeometry._semiMajorAxis,ellipsoid:o,stRotation:e._ellipseGeometry._stRotation,granularity:r,extrudedHeight:n,height:l,vertexFormat:a.VertexFormat.POSITION_ONLY,shadowVolume:!0})},Object.defineProperties(M.prototype,{rectangle:{get:function(){return this._ellipseGeometry.rectangle}},textureCoordinateRotationPoints:{get:function(){return this._ellipseGeometry.textureCoordinateRotationPoints}}}),function(t,r){return i.defined(r)&&(t=M.unpack(t,r)),t._ellipseGeometry._center=e.Cartesian3.clone(t._ellipseGeometry._center),t._ellipseGeometry._ellipsoid=o.Ellipsoid.clone(t._ellipseGeometry._ellipsoid),M.createGeometry(t)}}));
|
||||
|
||||
@ -1 +1 @@
|
||||
define(["./Cartographic-3309dd0d","./Check-7b2a090c","./when-b60132fc","./EllipseOutlineGeometry-2d607e3a","./Cartesian2-47311507","./Math-119be1a3","./arrayFill-4513d7ad","./buildModuleUrl-8958744c","./FeatureDetection-806b12f0","./Cartesian4-3ca25aab","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Event-16a2dfbf","./ComponentDatatype-c140a87d","./EllipseGeometryLibrary-79deae95","./GeometryAttribute-06a41648","./GeometryAttributes-252e9929","./GeometryOffsetAttribute-fbeb6f1a","./IndexDatatype-8a5eead4"],(function(e,i,t,r,l,n,a,o,s,d,u,c,m,p,y,G,f,_,h){"use strict";function b(e){var i=(e=t.defaultValue(e,t.defaultValue.EMPTY_OBJECT)).radius,l={center:e.center,semiMajorAxis:i,semiMinorAxis:i,ellipsoid:e.ellipsoid,height:e.height,extrudedHeight:e.extrudedHeight,granularity:e.granularity,numberOfVerticalLines:e.numberOfVerticalLines};this._ellipseGeometry=new r.EllipseOutlineGeometry(l),this._workerName="createCircleOutlineGeometry"}b.packedLength=r.EllipseOutlineGeometry.packedLength,b.pack=function(e,i,t){return r.EllipseOutlineGeometry.pack(e._ellipseGeometry,i,t)};var E=new r.EllipseOutlineGeometry({center:new e.Cartesian3,semiMajorAxis:1,semiMinorAxis:1}),g={center:new e.Cartesian3,radius:void 0,ellipsoid:l.Ellipsoid.clone(l.Ellipsoid.UNIT_SPHERE),height:void 0,extrudedHeight:void 0,granularity:void 0,numberOfVerticalLines:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0};return b.unpack=function(i,n,a){var o=r.EllipseOutlineGeometry.unpack(i,n,E);return g.center=e.Cartesian3.clone(o._center,g.center),g.ellipsoid=l.Ellipsoid.clone(o._ellipsoid,g.ellipsoid),g.height=o._height,g.extrudedHeight=o._extrudedHeight,g.granularity=o._granularity,g.numberOfVerticalLines=o._numberOfVerticalLines,t.defined(a)?(g.semiMajorAxis=o._semiMajorAxis,g.semiMinorAxis=o._semiMinorAxis,a._ellipseGeometry=new r.EllipseOutlineGeometry(g),a):(g.radius=o._semiMajorAxis,new b(g))},b.createGeometry=function(e){return r.EllipseOutlineGeometry.createGeometry(e._ellipseGeometry)},function(i,r){return t.defined(r)&&(i=b.unpack(i,r)),i._ellipseGeometry._center=e.Cartesian3.clone(i._ellipseGeometry._center),i._ellipseGeometry._ellipsoid=l.Ellipsoid.clone(i._ellipseGeometry._ellipsoid),b.createGeometry(i)}}));
|
||||
define(["./Cartographic-3309dd0d","./Check-7b2a090c","./when-b60132fc","./EllipseOutlineGeometry-4e6de759","./Cartesian2-47311507","./Math-119be1a3","./arrayFill-4513d7ad","./buildModuleUrl-4e1b81e7","./PrimitiveType-a54dc62f","./Cartesian4-3ca25aab","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Event-16a2dfbf","./ComponentDatatype-c140a87d","./EllipseGeometryLibrary-96261ee5","./GeometryAttribute-3a88ba31","./FeatureDetection-c3b71206","./GeometryAttributes-252e9929","./GeometryOffsetAttribute-fbeb6f1a","./IndexDatatype-8a5eead4"],(function(e,i,t,r,l,n,a,o,s,d,u,c,m,p,y,G,f,_,h,b){"use strict";function E(e){var i=(e=t.defaultValue(e,t.defaultValue.EMPTY_OBJECT)).radius,l={center:e.center,semiMajorAxis:i,semiMinorAxis:i,ellipsoid:e.ellipsoid,height:e.height,extrudedHeight:e.extrudedHeight,granularity:e.granularity,numberOfVerticalLines:e.numberOfVerticalLines};this._ellipseGeometry=new r.EllipseOutlineGeometry(l),this._workerName="createCircleOutlineGeometry"}E.packedLength=r.EllipseOutlineGeometry.packedLength,E.pack=function(e,i,t){return r.EllipseOutlineGeometry.pack(e._ellipseGeometry,i,t)};var g=new r.EllipseOutlineGeometry({center:new e.Cartesian3,semiMajorAxis:1,semiMinorAxis:1}),x={center:new e.Cartesian3,radius:void 0,ellipsoid:l.Ellipsoid.clone(l.Ellipsoid.UNIT_SPHERE),height:void 0,extrudedHeight:void 0,granularity:void 0,numberOfVerticalLines:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0};return E.unpack=function(i,n,a){var o=r.EllipseOutlineGeometry.unpack(i,n,g);return x.center=e.Cartesian3.clone(o._center,x.center),x.ellipsoid=l.Ellipsoid.clone(o._ellipsoid,x.ellipsoid),x.height=o._height,x.extrudedHeight=o._extrudedHeight,x.granularity=o._granularity,x.numberOfVerticalLines=o._numberOfVerticalLines,t.defined(a)?(x.semiMajorAxis=o._semiMajorAxis,x.semiMinorAxis=o._semiMinorAxis,a._ellipseGeometry=new r.EllipseOutlineGeometry(x),a):(x.radius=o._semiMajorAxis,new E(x))},E.createGeometry=function(e){return r.EllipseOutlineGeometry.createGeometry(e._ellipseGeometry)},function(i,r){return t.defined(r)&&(i=E.unpack(i,r)),i._ellipseGeometry._center=e.Cartesian3.clone(i._ellipseGeometry._center),i._ellipseGeometry._ellipsoid=l.Ellipsoid.clone(i._ellipseGeometry._ellipsoid),E.createGeometry(i)}}));
|
||||
|
||||
@ -1 +1 @@
|
||||
define(["./arrayRemoveDuplicates-d2f048c5","./buildModuleUrl-8958744c","./Cartographic-3309dd0d","./Check-7b2a090c","./ComponentDatatype-c140a87d","./CoplanarPolygonGeometryLibrary-b4bff604","./when-b60132fc","./GeometryAttribute-06a41648","./GeometryAttributes-252e9929","./GeometryInstance-6bd4503d","./GeometryPipeline-44c6c124","./IndexDatatype-8a5eead4","./PolygonGeometryLibrary-208ca427","./FeatureDetection-806b12f0","./Cartesian2-47311507","./Math-119be1a3","./Event-16a2dfbf","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./OrientedBoundingBox-08964f84","./Cartesian4-3ca25aab","./EllipsoidTangentPlane-ce9a1fbb","./IntersectionTests-a793ed08","./Plane-a3d8b3d2","./PolygonPipeline-d328cdf1","./earcut-2.2.1-20c8012f","./EllipsoidRhumbLine-ed1a6bf4","./AttributeCompression-90851096","./EncodedCartesian3-f1396b05","./ArcType-29cf2197"],(function(e,t,r,n,a,o,i,y,l,c,p,u,s,d,m,f,b,g,h,P,v,G,C,L,E,T,k,H,w,A){"use strict";function D(e){for(var t=e.length,r=new Float64Array(3*t),n=u.IndexDatatype.createTypedArray(t,2*t),o=0,i=0,c=0;c<t;c++){var p=e[c];r[o++]=p.x,r[o++]=p.y,r[o++]=p.z,n[i++]=c,n[i++]=(c+1)%t}var s=new l.GeometryAttributes({position:new y.GeometryAttribute({componentDatatype:a.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:r})});return new y.Geometry({attributes:s,indices:n,primitiveType:d.PrimitiveType.LINES})}function I(e){var t=(e=i.defaultValue(e,i.defaultValue.EMPTY_OBJECT)).polygonHierarchy;this._polygonHierarchy=t,this._workerName="createCoplanarPolygonOutlineGeometry",this.packedLength=s.PolygonGeometryLibrary.computeHierarchyPackedLength(t)+1}I.fromPositions=function(e){return new I({polygonHierarchy:{positions:(e=i.defaultValue(e,i.defaultValue.EMPTY_OBJECT)).positions}})},I.pack=function(e,t,r){return r=i.defaultValue(r,0),t[r=s.PolygonGeometryLibrary.packPolygonHierarchy(e._polygonHierarchy,t,r)]=e.packedLength,t};var _={polygonHierarchy:{}};return I.unpack=function(e,t,r){t=i.defaultValue(t,0);var n=s.PolygonGeometryLibrary.unpackPolygonHierarchy(e,t);t=n.startingIndex,delete n.startingIndex;var a=e[t];return i.defined(r)||(r=new I(_)),r._polygonHierarchy=n,r.packedLength=a,r},I.createGeometry=function(n){var a=n._polygonHierarchy,i=a.positions;if(!((i=e.arrayRemoveDuplicates(i,r.Cartesian3.equalsEpsilon,!0)).length<3)&&o.CoplanarPolygonGeometryLibrary.validOutline(i)){var l=s.PolygonGeometryLibrary.polygonOutlinesFromHierarchy(a,!1);if(0!==l.length){for(var u=[],d=0;d<l.length;d++){var m=new c.GeometryInstance({geometry:D(l[d])});u.push(m)}var f=p.GeometryPipeline.combineInstances(u)[0],b=t.BoundingSphere.fromPoints(a.positions);return new y.Geometry({attributes:f.attributes,indices:f.indices,primitiveType:f.primitiveType,boundingSphere:b})}}},function(e,t){return i.defined(t)&&(e=I.unpack(e,t)),e._ellipsoid=m.Ellipsoid.clone(e._ellipsoid),I.createGeometry(e)}}));
|
||||
define(["./arrayRemoveDuplicates-d2f048c5","./buildModuleUrl-4e1b81e7","./Cartographic-3309dd0d","./Check-7b2a090c","./ComponentDatatype-c140a87d","./CoplanarPolygonGeometryLibrary-e9907932","./when-b60132fc","./GeometryAttribute-3a88ba31","./GeometryAttributes-252e9929","./GeometryInstance-68aae013","./GeometryPipeline-9d1ef0b6","./IndexDatatype-8a5eead4","./PolygonGeometryLibrary-92af6f1e","./PrimitiveType-a54dc62f","./Cartesian2-47311507","./Math-119be1a3","./Event-16a2dfbf","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./OrientedBoundingBox-87d59c2a","./Cartesian4-3ca25aab","./EllipsoidTangentPlane-edb321d3","./IntersectionTests-7386ffbf","./Plane-7ae8294c","./PolygonPipeline-660e1625","./earcut-2.2.1-20c8012f","./EllipsoidRhumbLine-ed1a6bf4","./FeatureDetection-c3b71206","./AttributeCompression-90851096","./EncodedCartesian3-f1396b05","./ArcType-29cf2197"],(function(e,t,r,n,a,o,i,y,l,c,p,u,s,d,m,f,b,g,h,P,v,G,C,L,E,T,k,H,w,A,D){"use strict";function I(e){for(var t=e.length,r=new Float64Array(3*t),n=u.IndexDatatype.createTypedArray(t,2*t),o=0,i=0,c=0;c<t;c++){var p=e[c];r[o++]=p.x,r[o++]=p.y,r[o++]=p.z,n[i++]=c,n[i++]=(c+1)%t}var s=new l.GeometryAttributes({position:new y.GeometryAttribute({componentDatatype:a.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:r})});return new y.Geometry({attributes:s,indices:n,primitiveType:d.PrimitiveType.LINES})}function _(e){var t=(e=i.defaultValue(e,i.defaultValue.EMPTY_OBJECT)).polygonHierarchy;this._polygonHierarchy=t,this._workerName="createCoplanarPolygonOutlineGeometry",this.packedLength=s.PolygonGeometryLibrary.computeHierarchyPackedLength(t)+1}_.fromPositions=function(e){return new _({polygonHierarchy:{positions:(e=i.defaultValue(e,i.defaultValue.EMPTY_OBJECT)).positions}})},_.pack=function(e,t,r){return r=i.defaultValue(r,0),t[r=s.PolygonGeometryLibrary.packPolygonHierarchy(e._polygonHierarchy,t,r)]=e.packedLength,t};var O={polygonHierarchy:{}};return _.unpack=function(e,t,r){t=i.defaultValue(t,0);var n=s.PolygonGeometryLibrary.unpackPolygonHierarchy(e,t);t=n.startingIndex,delete n.startingIndex;var a=e[t];return i.defined(r)||(r=new _(O)),r._polygonHierarchy=n,r.packedLength=a,r},_.createGeometry=function(n){var a=n._polygonHierarchy,i=a.positions;if(!((i=e.arrayRemoveDuplicates(i,r.Cartesian3.equalsEpsilon,!0)).length<3)&&o.CoplanarPolygonGeometryLibrary.validOutline(i)){var l=s.PolygonGeometryLibrary.polygonOutlinesFromHierarchy(a,!1);if(0!==l.length){for(var u=[],d=0;d<l.length;d++){var m=new c.GeometryInstance({geometry:I(l[d])});u.push(m)}var f=p.GeometryPipeline.combineInstances(u)[0],b=t.BoundingSphere.fromPoints(a.positions);return new y.Geometry({attributes:f.attributes,indices:f.indices,primitiveType:f.primitiveType,boundingSphere:b})}}},function(e,t){return i.defined(t)&&(e=_.unpack(e,t)),e._ellipsoid=m.Ellipsoid.clone(e._ellipsoid),_.createGeometry(e)}}));
|
||||
|
||||
@ -1 +1 @@
|
||||
define(["./CylinderGeometry-f1f6b038","./when-b60132fc","./arrayFill-4513d7ad","./Check-7b2a090c","./buildModuleUrl-8958744c","./Cartographic-3309dd0d","./Math-119be1a3","./Cartesian2-47311507","./FeatureDetection-806b12f0","./Cartesian4-3ca25aab","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Event-16a2dfbf","./ComponentDatatype-c140a87d","./CylinderGeometryLibrary-aa453214","./GeometryAttribute-06a41648","./GeometryAttributes-252e9929","./GeometryOffsetAttribute-fbeb6f1a","./IndexDatatype-8a5eead4","./VertexFormat-6446fca0"],(function(e,t,a,r,n,i,d,o,b,y,c,f,u,m,C,l,G,s,p,h){"use strict";return function(a,r){return t.defined(r)&&(a=e.CylinderGeometry.unpack(a,r)),e.CylinderGeometry.createGeometry(a)}}));
|
||||
define(["./CylinderGeometry-5c5fc56f","./when-b60132fc","./arrayFill-4513d7ad","./Check-7b2a090c","./buildModuleUrl-4e1b81e7","./Cartographic-3309dd0d","./Math-119be1a3","./Cartesian2-47311507","./PrimitiveType-a54dc62f","./Cartesian4-3ca25aab","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Event-16a2dfbf","./ComponentDatatype-c140a87d","./CylinderGeometryLibrary-aa453214","./GeometryAttribute-3a88ba31","./FeatureDetection-c3b71206","./GeometryAttributes-252e9929","./GeometryOffsetAttribute-fbeb6f1a","./IndexDatatype-8a5eead4","./VertexFormat-6446fca0"],(function(e,t,a,r,n,i,d,c,o,b,y,f,u,m,C,l,G,s,p,h,A){"use strict";return function(a,r){return t.defined(r)&&(a=e.CylinderGeometry.unpack(a,r)),e.CylinderGeometry.createGeometry(a)}}));
|
||||
|
||||
@ -1 +1 @@
|
||||
define(["./arrayFill-4513d7ad","./buildModuleUrl-8958744c","./Cartesian2-47311507","./Cartographic-3309dd0d","./Check-7b2a090c","./ComponentDatatype-c140a87d","./CylinderGeometryLibrary-aa453214","./when-b60132fc","./GeometryAttribute-06a41648","./GeometryAttributes-252e9929","./GeometryOffsetAttribute-fbeb6f1a","./IndexDatatype-8a5eead4","./FeatureDetection-806b12f0","./Math-119be1a3","./Event-16a2dfbf","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Cartesian4-3ca25aab"],(function(t,e,a,i,r,n,o,u,s,f,d,l,b,c,m,p,y,_){"use strict";var h=new a.Cartesian2;function v(t){var e=(t=u.defaultValue(t,u.defaultValue.EMPTY_OBJECT)).length,a=t.topRadius,i=t.bottomRadius,r=u.defaultValue(t.slices,128),n=Math.max(u.defaultValue(t.numberOfVerticalLines,16),0);this._length=e,this._topRadius=a,this._bottomRadius=i,this._slices=r,this._numberOfVerticalLines=n,this._offsetAttribute=t.offsetAttribute,this._workerName="createCylinderOutlineGeometry"}v.packedLength=6,v.pack=function(t,e,a){return a=u.defaultValue(a,0),e[a++]=t._length,e[a++]=t._topRadius,e[a++]=t._bottomRadius,e[a++]=t._slices,e[a++]=t._numberOfVerticalLines,e[a]=u.defaultValue(t._offsetAttribute,-1),e};var A={length:void 0,topRadius:void 0,bottomRadius:void 0,slices:void 0,numberOfVerticalLines:void 0,offsetAttribute:void 0};return v.unpack=function(t,e,a){e=u.defaultValue(e,0);var i=t[e++],r=t[e++],n=t[e++],o=t[e++],s=t[e++],f=t[e];return u.defined(a)?(a._length=i,a._topRadius=r,a._bottomRadius=n,a._slices=o,a._numberOfVerticalLines=s,a._offsetAttribute=-1===f?void 0:f,a):(A.length=i,A.topRadius=r,A.bottomRadius=n,A.slices=o,A.numberOfVerticalLines=s,A.offsetAttribute=-1===f?void 0:f,new v(A))},v.createGeometry=function(r){var c=r._length,m=r._topRadius,p=r._bottomRadius,y=r._slices,_=r._numberOfVerticalLines;if(!(c<=0||m<0||p<0||0===m&&0===p)){var v,A=2*y,R=o.CylinderGeometryLibrary.computePositions(c,m,p,y,!1),C=2*y;if(_>0){var G=Math.min(_,y);v=Math.round(y/G),C+=G}var O,V=l.IndexDatatype.createTypedArray(A,2*C),g=0;for(O=0;O<y-1;O++)V[g++]=O,V[g++]=O+1,V[g++]=O+y,V[g++]=O+1+y;if(V[g++]=y-1,V[g++]=0,V[g++]=y+y-1,V[g++]=y,_>0)for(O=0;O<y;O+=v)V[g++]=O,V[g++]=O+y;var L=new f.GeometryAttributes;L.position=new s.GeometryAttribute({componentDatatype:n.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:R}),h.x=.5*c,h.y=Math.max(p,m);var w=new e.BoundingSphere(i.Cartesian3.ZERO,a.Cartesian2.magnitude(h));if(u.defined(r._offsetAttribute)){c=R.length;var D=new Uint8Array(c/3),E=r._offsetAttribute===d.GeometryOffsetAttribute.NONE?0:1;t.arrayFill(D,E),L.applyOffset=new s.GeometryAttribute({componentDatatype:n.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:D})}return new s.Geometry({attributes:L,indices:V,primitiveType:b.PrimitiveType.LINES,boundingSphere:w,offsetAttribute:r._offsetAttribute})}},function(t,e){return u.defined(e)&&(t=v.unpack(t,e)),v.createGeometry(t)}}));
|
||||
define(["./arrayFill-4513d7ad","./buildModuleUrl-4e1b81e7","./Cartesian2-47311507","./Cartographic-3309dd0d","./Check-7b2a090c","./ComponentDatatype-c140a87d","./CylinderGeometryLibrary-aa453214","./when-b60132fc","./GeometryAttribute-3a88ba31","./GeometryAttributes-252e9929","./GeometryOffsetAttribute-fbeb6f1a","./IndexDatatype-8a5eead4","./PrimitiveType-a54dc62f","./Math-119be1a3","./Event-16a2dfbf","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./FeatureDetection-c3b71206","./Cartesian4-3ca25aab"],(function(e,t,i,a,r,n,o,u,s,f,d,b,l,c,m,p,y,_,h){"use strict";var v=new i.Cartesian2;function A(e){var t=(e=u.defaultValue(e,u.defaultValue.EMPTY_OBJECT)).length,i=e.topRadius,a=e.bottomRadius,r=u.defaultValue(e.slices,128),n=Math.max(u.defaultValue(e.numberOfVerticalLines,16),0);this._length=t,this._topRadius=i,this._bottomRadius=a,this._slices=r,this._numberOfVerticalLines=n,this._offsetAttribute=e.offsetAttribute,this._workerName="createCylinderOutlineGeometry"}A.packedLength=6,A.pack=function(e,t,i){return i=u.defaultValue(i,0),t[i++]=e._length,t[i++]=e._topRadius,t[i++]=e._bottomRadius,t[i++]=e._slices,t[i++]=e._numberOfVerticalLines,t[i]=u.defaultValue(e._offsetAttribute,-1),t};var R={length:void 0,topRadius:void 0,bottomRadius:void 0,slices:void 0,numberOfVerticalLines:void 0,offsetAttribute:void 0};return A.unpack=function(e,t,i){t=u.defaultValue(t,0);var a=e[t++],r=e[t++],n=e[t++],o=e[t++],s=e[t++],f=e[t];return u.defined(i)?(i._length=a,i._topRadius=r,i._bottomRadius=n,i._slices=o,i._numberOfVerticalLines=s,i._offsetAttribute=-1===f?void 0:f,i):(R.length=a,R.topRadius=r,R.bottomRadius=n,R.slices=o,R.numberOfVerticalLines=s,R.offsetAttribute=-1===f?void 0:f,new A(R))},A.createGeometry=function(r){var c=r._length,m=r._topRadius,p=r._bottomRadius,y=r._slices,_=r._numberOfVerticalLines;if(!(c<=0||m<0||p<0||0===m&&0===p)){var h,A=2*y,R=o.CylinderGeometryLibrary.computePositions(c,m,p,y,!1),C=2*y;if(_>0){var G=Math.min(_,y);h=Math.round(y/G),C+=G}var O,V=b.IndexDatatype.createTypedArray(A,2*C),g=0;for(O=0;O<y-1;O++)V[g++]=O,V[g++]=O+1,V[g++]=O+y,V[g++]=O+1+y;if(V[g++]=y-1,V[g++]=0,V[g++]=y+y-1,V[g++]=y,_>0)for(O=0;O<y;O+=h)V[g++]=O,V[g++]=O+y;var L=new f.GeometryAttributes;L.position=new s.GeometryAttribute({componentDatatype:n.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:R}),v.x=.5*c,v.y=Math.max(p,m);var w=new t.BoundingSphere(a.Cartesian3.ZERO,i.Cartesian2.magnitude(v));if(u.defined(r._offsetAttribute)){c=R.length;var D=new Uint8Array(c/3),E=r._offsetAttribute===d.GeometryOffsetAttribute.NONE?0:1;e.arrayFill(D,E),L.applyOffset=new s.GeometryAttribute({componentDatatype:n.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:D})}return new s.Geometry({attributes:L,indices:V,primitiveType:l.PrimitiveType.LINES,boundingSphere:w,offsetAttribute:r._offsetAttribute})}},function(e,t){return u.defined(t)&&(e=A.unpack(e,t)),A.createGeometry(e)}}));
|
||||
|
||||
@ -1 +1 @@
|
||||
define(["./Cartographic-3309dd0d","./when-b60132fc","./EllipseGeometry-462fe80a","./Cartesian2-47311507","./Check-7b2a090c","./Math-119be1a3","./arrayFill-4513d7ad","./buildModuleUrl-8958744c","./FeatureDetection-806b12f0","./Cartesian4-3ca25aab","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Event-16a2dfbf","./ComponentDatatype-c140a87d","./EllipseGeometryLibrary-79deae95","./GeometryAttribute-06a41648","./GeometryAttributes-252e9929","./GeometryInstance-6bd4503d","./GeometryOffsetAttribute-fbeb6f1a","./GeometryPipeline-44c6c124","./AttributeCompression-90851096","./EncodedCartesian3-f1396b05","./IndexDatatype-8a5eead4","./IntersectionTests-a793ed08","./Plane-a3d8b3d2","./VertexFormat-6446fca0"],(function(e,t,a,r,n,i,o,d,c,l,s,b,f,m,p,u,y,G,C,E,h,A,_,D,F,I){"use strict";return function(n,i){return t.defined(i)&&(n=a.EllipseGeometry.unpack(n,i)),n._center=e.Cartesian3.clone(n._center),n._ellipsoid=r.Ellipsoid.clone(n._ellipsoid),a.EllipseGeometry.createGeometry(n)}}));
|
||||
define(["./Cartographic-3309dd0d","./when-b60132fc","./EllipseGeometry-56e329a6","./Cartesian2-47311507","./Check-7b2a090c","./Math-119be1a3","./arrayFill-4513d7ad","./buildModuleUrl-4e1b81e7","./PrimitiveType-a54dc62f","./Cartesian4-3ca25aab","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Event-16a2dfbf","./ComponentDatatype-c140a87d","./EllipseGeometryLibrary-96261ee5","./GeometryAttribute-3a88ba31","./FeatureDetection-c3b71206","./GeometryAttributes-252e9929","./GeometryInstance-68aae013","./GeometryOffsetAttribute-fbeb6f1a","./GeometryPipeline-9d1ef0b6","./AttributeCompression-90851096","./EncodedCartesian3-f1396b05","./IndexDatatype-8a5eead4","./IntersectionTests-7386ffbf","./Plane-7ae8294c","./VertexFormat-6446fca0"],(function(e,t,a,r,i,n,o,c,l,s,d,b,f,m,p,y,u,G,C,E,h,A,_,D,F,I,P){"use strict";return function(i,n){return t.defined(n)&&(i=a.EllipseGeometry.unpack(i,n)),i._center=e.Cartesian3.clone(i._center),i._ellipsoid=r.Ellipsoid.clone(i._ellipsoid),a.EllipseGeometry.createGeometry(i)}}));
|
||||
|
||||
@ -1 +1 @@
|
||||
define(["./Cartographic-3309dd0d","./when-b60132fc","./EllipseOutlineGeometry-2d607e3a","./Cartesian2-47311507","./Check-7b2a090c","./Math-119be1a3","./arrayFill-4513d7ad","./buildModuleUrl-8958744c","./FeatureDetection-806b12f0","./Cartesian4-3ca25aab","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Event-16a2dfbf","./ComponentDatatype-c140a87d","./EllipseGeometryLibrary-79deae95","./GeometryAttribute-06a41648","./GeometryAttributes-252e9929","./GeometryOffsetAttribute-fbeb6f1a","./IndexDatatype-8a5eead4"],(function(e,t,a,r,i,n,l,o,d,c,s,u,b,f,p,y,m,G,C){"use strict";return function(i,n){return t.defined(n)&&(i=a.EllipseOutlineGeometry.unpack(i,n)),i._center=e.Cartesian3.clone(i._center),i._ellipsoid=r.Ellipsoid.clone(i._ellipsoid),a.EllipseOutlineGeometry.createGeometry(i)}}));
|
||||
define(["./Cartographic-3309dd0d","./when-b60132fc","./EllipseOutlineGeometry-4e6de759","./Cartesian2-47311507","./Check-7b2a090c","./Math-119be1a3","./arrayFill-4513d7ad","./buildModuleUrl-4e1b81e7","./PrimitiveType-a54dc62f","./Cartesian4-3ca25aab","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Event-16a2dfbf","./ComponentDatatype-c140a87d","./EllipseGeometryLibrary-96261ee5","./GeometryAttribute-3a88ba31","./FeatureDetection-c3b71206","./GeometryAttributes-252e9929","./GeometryOffsetAttribute-fbeb6f1a","./IndexDatatype-8a5eead4"],(function(e,t,a,r,i,n,l,o,d,c,b,s,u,p,y,f,m,G,C,E){"use strict";return function(i,n){return t.defined(n)&&(i=a.EllipseOutlineGeometry.unpack(i,n)),i._center=e.Cartesian3.clone(i._center),i._ellipsoid=r.Ellipsoid.clone(i._ellipsoid),a.EllipseOutlineGeometry.createGeometry(i)}}));
|
||||
|
||||
@ -1 +1 @@
|
||||
define(["./when-b60132fc","./EllipsoidGeometry-77f654e8","./arrayFill-4513d7ad","./Check-7b2a090c","./buildModuleUrl-8958744c","./Cartographic-3309dd0d","./Math-119be1a3","./Cartesian2-47311507","./FeatureDetection-806b12f0","./Cartesian4-3ca25aab","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Event-16a2dfbf","./ComponentDatatype-c140a87d","./GeometryAttribute-06a41648","./GeometryAttributes-252e9929","./GeometryOffsetAttribute-fbeb6f1a","./IndexDatatype-8a5eead4","./VertexFormat-6446fca0"],(function(e,t,a,r,i,n,o,d,c,b,f,u,l,s,m,y,p,G,C){"use strict";return function(a,r){return e.defined(r)&&(a=t.EllipsoidGeometry.unpack(a,r)),t.EllipsoidGeometry.createGeometry(a)}}));
|
||||
define(["./when-b60132fc","./EllipsoidGeometry-be29e04c","./arrayFill-4513d7ad","./Check-7b2a090c","./buildModuleUrl-4e1b81e7","./Cartographic-3309dd0d","./Math-119be1a3","./Cartesian2-47311507","./PrimitiveType-a54dc62f","./Cartesian4-3ca25aab","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Event-16a2dfbf","./ComponentDatatype-c140a87d","./GeometryAttribute-3a88ba31","./FeatureDetection-c3b71206","./GeometryAttributes-252e9929","./GeometryOffsetAttribute-fbeb6f1a","./IndexDatatype-8a5eead4","./VertexFormat-6446fca0"],(function(e,t,a,r,i,n,o,d,b,c,f,u,l,m,s,y,p,G,C,E){"use strict";return function(a,r){return e.defined(r)&&(a=t.EllipsoidGeometry.unpack(a,r)),t.EllipsoidGeometry.createGeometry(a)}}));
|
||||
|
||||
@ -1 +1 @@
|
||||
define(["./when-b60132fc","./EllipsoidOutlineGeometry-6312b9fc","./arrayFill-4513d7ad","./Check-7b2a090c","./buildModuleUrl-8958744c","./Cartographic-3309dd0d","./Math-119be1a3","./Cartesian2-47311507","./FeatureDetection-806b12f0","./Cartesian4-3ca25aab","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Event-16a2dfbf","./ComponentDatatype-c140a87d","./GeometryAttribute-06a41648","./GeometryAttributes-252e9929","./GeometryOffsetAttribute-fbeb6f1a","./IndexDatatype-8a5eead4"],(function(e,t,a,r,i,n,o,d,u,b,c,f,l,s,y,m,p,G){"use strict";return function(a,r){return e.defined(a.buffer)&&(a=t.EllipsoidOutlineGeometry.unpack(a,r)),t.EllipsoidOutlineGeometry.createGeometry(a)}}));
|
||||
define(["./when-b60132fc","./EllipsoidOutlineGeometry-7e6fabdb","./arrayFill-4513d7ad","./Check-7b2a090c","./buildModuleUrl-4e1b81e7","./Cartographic-3309dd0d","./Math-119be1a3","./Cartesian2-47311507","./PrimitiveType-a54dc62f","./Cartesian4-3ca25aab","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Event-16a2dfbf","./ComponentDatatype-c140a87d","./GeometryAttribute-3a88ba31","./FeatureDetection-c3b71206","./GeometryAttributes-252e9929","./GeometryOffsetAttribute-fbeb6f1a","./IndexDatatype-8a5eead4"],(function(e,t,a,r,i,n,d,b,o,u,c,f,l,s,y,m,p,G,C){"use strict";return function(a,r){return e.defined(a.buffer)&&(a=t.EllipsoidOutlineGeometry.unpack(a,r)),t.EllipsoidOutlineGeometry.createGeometry(a)}}));
|
||||
|
||||
@ -1 +1 @@
|
||||
define(["./when-b60132fc","./FrustumGeometry-d53e50fb","./buildModuleUrl-8958744c","./Cartographic-3309dd0d","./Check-7b2a090c","./Math-119be1a3","./Cartesian2-47311507","./FeatureDetection-806b12f0","./Cartesian4-3ca25aab","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Event-16a2dfbf","./ComponentDatatype-c140a87d","./GeometryAttribute-06a41648","./GeometryAttributes-252e9929","./Plane-a3d8b3d2","./VertexFormat-6446fca0"],(function(e,t,r,a,n,u,o,c,d,b,i,m,f,s,y,G,C){"use strict";return function(r,a){return e.defined(a)&&(r=t.FrustumGeometry.unpack(r,a)),t.FrustumGeometry.createGeometry(r)}}));
|
||||
define(["./when-b60132fc","./FrustumGeometry-9d84ae9b","./buildModuleUrl-4e1b81e7","./Cartographic-3309dd0d","./Check-7b2a090c","./Math-119be1a3","./Cartesian2-47311507","./PrimitiveType-a54dc62f","./Cartesian4-3ca25aab","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Event-16a2dfbf","./ComponentDatatype-c140a87d","./GeometryAttribute-3a88ba31","./FeatureDetection-c3b71206","./GeometryAttributes-252e9929","./Plane-7ae8294c","./VertexFormat-6446fca0"],(function(e,t,a,r,n,u,c,i,o,b,d,m,s,f,y,G,C,p){"use strict";return function(a,r){return e.defined(r)&&(a=t.FrustumGeometry.unpack(a,r)),t.FrustumGeometry.createGeometry(a)}}));
|
||||
|
||||
@ -1 +1 @@
|
||||
define(["./when-b60132fc","./buildModuleUrl-8958744c","./Cartographic-3309dd0d","./Check-7b2a090c","./ComponentDatatype-c140a87d","./FrustumGeometry-d53e50fb","./GeometryAttribute-06a41648","./GeometryAttributes-252e9929","./FeatureDetection-806b12f0","./Cartesian2-47311507","./Math-119be1a3","./Event-16a2dfbf","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Cartesian4-3ca25aab","./Plane-a3d8b3d2","./VertexFormat-6446fca0"],(function(e,t,r,a,n,i,u,o,c,s,p,m,d,h,f,g,_){"use strict";function k(t){var a,n,o=t.frustum,c=t.orientation,s=t.origin,p=e.defaultValue(t._drawNearPlane,!0);o instanceof i.PerspectiveFrustum?(a=0,n=i.PerspectiveFrustum.packedLength):o instanceof i.OrthographicFrustum&&(a=1,n=i.OrthographicFrustum.packedLength),this._frustumType=a,this._frustum=o.clone(),this._origin=r.Cartesian3.clone(s),this._orientation=u.Quaternion.clone(c),this._drawNearPlane=p,this._workerName="createFrustumOutlineGeometry",this.packedLength=2+n+r.Cartesian3.packedLength+u.Quaternion.packedLength}k.pack=function(t,a,n){n=e.defaultValue(n,0);var o=t._frustumType,c=t._frustum;return a[n++]=o,0===o?(i.PerspectiveFrustum.pack(c,a,n),n+=i.PerspectiveFrustum.packedLength):(i.OrthographicFrustum.pack(c,a,n),n+=i.OrthographicFrustum.packedLength),r.Cartesian3.pack(t._origin,a,n),n+=r.Cartesian3.packedLength,u.Quaternion.pack(t._orientation,a,n),a[n+=u.Quaternion.packedLength]=t._drawNearPlane?1:0,a};var l=new i.PerspectiveFrustum,y=new i.OrthographicFrustum,v=new u.Quaternion,F=new r.Cartesian3;return k.unpack=function(t,a,n){a=e.defaultValue(a,0);var o,c=t[a++];0===c?(o=i.PerspectiveFrustum.unpack(t,a,l),a+=i.PerspectiveFrustum.packedLength):(o=i.OrthographicFrustum.unpack(t,a,y),a+=i.OrthographicFrustum.packedLength);var s=r.Cartesian3.unpack(t,a,F);a+=r.Cartesian3.packedLength;var p=u.Quaternion.unpack(t,a,v),m=1===t[a+=u.Quaternion.packedLength];if(!e.defined(n))return new k({frustum:o,origin:s,orientation:p,_drawNearPlane:m});var d=c===n._frustumType?n._frustum:void 0;return n._frustum=o.clone(d),n._frustumType=c,n._origin=r.Cartesian3.clone(s,n._origin),n._orientation=u.Quaternion.clone(p,n._orientation),n._drawNearPlane=m,n},k.createGeometry=function(e){var r=e._frustumType,a=e._frustum,s=e._origin,p=e._orientation,m=e._drawNearPlane,d=new Float64Array(24);i.FrustumGeometry._computeNearFarPlanes(s,p,r,a,d);for(var h,f,g=new o.GeometryAttributes({position:new u.GeometryAttribute({componentDatatype:n.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:d})}),_=m?2:1,k=new Uint16Array(8*(_+1)),l=m?0:1;l<2;++l)f=4*l,k[h=m?8*l:0]=f,k[h+1]=f+1,k[h+2]=f+1,k[h+3]=f+2,k[h+4]=f+2,k[h+5]=f+3,k[h+6]=f+3,k[h+7]=f;for(l=0;l<2;++l)f=4*l,k[h=8*(_+l)]=f,k[h+1]=f+4,k[h+2]=f+1,k[h+3]=f+5,k[h+4]=f+2,k[h+5]=f+6,k[h+6]=f+3,k[h+7]=f+7;return new u.Geometry({attributes:g,indices:k,primitiveType:c.PrimitiveType.LINES,boundingSphere:t.BoundingSphere.fromVertices(d)})},function(t,r){return e.defined(r)&&(t=k.unpack(t,r)),k.createGeometry(t)}}));
|
||||
define(["./when-b60132fc","./buildModuleUrl-4e1b81e7","./Cartographic-3309dd0d","./Check-7b2a090c","./ComponentDatatype-c140a87d","./FrustumGeometry-9d84ae9b","./GeometryAttribute-3a88ba31","./GeometryAttributes-252e9929","./PrimitiveType-a54dc62f","./Cartesian2-47311507","./Math-119be1a3","./Event-16a2dfbf","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Cartesian4-3ca25aab","./Plane-7ae8294c","./VertexFormat-6446fca0","./FeatureDetection-c3b71206"],(function(e,t,r,a,n,i,u,o,c,s,p,m,d,h,f,g,_,k){"use strict";function l(t){var a,n,o=t.frustum,c=t.orientation,s=t.origin,p=e.defaultValue(t._drawNearPlane,!0);o instanceof i.PerspectiveFrustum?(a=0,n=i.PerspectiveFrustum.packedLength):o instanceof i.OrthographicFrustum&&(a=1,n=i.OrthographicFrustum.packedLength),this._frustumType=a,this._frustum=o.clone(),this._origin=r.Cartesian3.clone(s),this._orientation=u.Quaternion.clone(c),this._drawNearPlane=p,this._workerName="createFrustumOutlineGeometry",this.packedLength=2+n+r.Cartesian3.packedLength+u.Quaternion.packedLength}l.pack=function(t,a,n){n=e.defaultValue(n,0);var o=t._frustumType,c=t._frustum;return a[n++]=o,0===o?(i.PerspectiveFrustum.pack(c,a,n),n+=i.PerspectiveFrustum.packedLength):(i.OrthographicFrustum.pack(c,a,n),n+=i.OrthographicFrustum.packedLength),r.Cartesian3.pack(t._origin,a,n),n+=r.Cartesian3.packedLength,u.Quaternion.pack(t._orientation,a,n),a[n+=u.Quaternion.packedLength]=t._drawNearPlane?1:0,a};var y=new i.PerspectiveFrustum,v=new i.OrthographicFrustum,F=new u.Quaternion,b=new r.Cartesian3;return l.unpack=function(t,a,n){a=e.defaultValue(a,0);var o,c=t[a++];0===c?(o=i.PerspectiveFrustum.unpack(t,a,y),a+=i.PerspectiveFrustum.packedLength):(o=i.OrthographicFrustum.unpack(t,a,v),a+=i.OrthographicFrustum.packedLength);var s=r.Cartesian3.unpack(t,a,b);a+=r.Cartesian3.packedLength;var p=u.Quaternion.unpack(t,a,F),m=1===t[a+=u.Quaternion.packedLength];if(!e.defined(n))return new l({frustum:o,origin:s,orientation:p,_drawNearPlane:m});var d=c===n._frustumType?n._frustum:void 0;return n._frustum=o.clone(d),n._frustumType=c,n._origin=r.Cartesian3.clone(s,n._origin),n._orientation=u.Quaternion.clone(p,n._orientation),n._drawNearPlane=m,n},l.createGeometry=function(e){var r=e._frustumType,a=e._frustum,s=e._origin,p=e._orientation,m=e._drawNearPlane,d=new Float64Array(24);i.FrustumGeometry._computeNearFarPlanes(s,p,r,a,d);for(var h,f,g=new o.GeometryAttributes({position:new u.GeometryAttribute({componentDatatype:n.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:d})}),_=m?2:1,k=new Uint16Array(8*(_+1)),l=m?0:1;l<2;++l)f=4*l,k[h=m?8*l:0]=f,k[h+1]=f+1,k[h+2]=f+1,k[h+3]=f+2,k[h+4]=f+2,k[h+5]=f+3,k[h+6]=f+3,k[h+7]=f;for(l=0;l<2;++l)f=4*l,k[h=8*(_+l)]=f,k[h+1]=f+4,k[h+2]=f+1,k[h+3]=f+5,k[h+4]=f+2,k[h+5]=f+6,k[h+6]=f+3,k[h+7]=f+7;return new u.Geometry({attributes:g,indices:k,primitiveType:c.PrimitiveType.LINES,boundingSphere:t.BoundingSphere.fromVertices(d)})},function(t,r){return e.defined(r)&&(t=l.unpack(t,r)),l.createGeometry(t)}}));
|
||||
|
||||
@ -1 +1 @@
|
||||
define(["./when-b60132fc","./PrimitivePipeline-580026be","./createTaskProcessorWorker","./buildModuleUrl-8958744c","./Cartographic-3309dd0d","./Check-7b2a090c","./Math-119be1a3","./Cartesian2-47311507","./FeatureDetection-806b12f0","./Cartesian4-3ca25aab","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Event-16a2dfbf","./ComponentDatatype-c140a87d","./GeometryAttribute-06a41648","./GeometryAttributes-252e9929","./GeometryPipeline-44c6c124","./AttributeCompression-90851096","./EncodedCartesian3-f1396b05","./IndexDatatype-8a5eead4","./IntersectionTests-a793ed08","./Plane-a3d8b3d2","./WebMercatorProjection-01b1b5e7"],(function(e,r,t,a,n,i,o,s,c,u,d,b,f,l,m,p,y,C,v,P,k,h,G){"use strict";var W={};function A(r){var t=W[r];return e.defined(t)||("object"==typeof exports?W[t]=t=require("Workers/"+r):require(["Workers/"+r],(function(e){W[t=e]=e}))),t}return t((function(t,a){for(var n=t.subTasks,i=n.length,o=new Array(i),s=0;s<i;s++){var c=n[s],u=c.geometry,d=c.moduleName;if(e.defined(d)){var b=A(d);o[s]=b(u,c.offset)}else o[s]=u}return e.when.all(o,(function(e){return r.PrimitivePipeline.packCreateGeometryResults(e,a)}))}))}));
|
||||
define(["./when-b60132fc","./PrimitivePipeline-3b9da2a6","./createTaskProcessorWorker","./buildModuleUrl-4e1b81e7","./Cartographic-3309dd0d","./Check-7b2a090c","./Math-119be1a3","./Cartesian2-47311507","./PrimitiveType-a54dc62f","./Cartesian4-3ca25aab","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Event-16a2dfbf","./ComponentDatatype-c140a87d","./GeometryAttribute-3a88ba31","./FeatureDetection-c3b71206","./GeometryAttributes-252e9929","./GeometryPipeline-9d1ef0b6","./AttributeCompression-90851096","./EncodedCartesian3-f1396b05","./IndexDatatype-8a5eead4","./IntersectionTests-7386ffbf","./Plane-7ae8294c","./WebMercatorProjection-01b1b5e7"],(function(e,r,t,a,n,i,o,s,c,b,f,u,d,l,m,p,y,v,C,P,k,h,G,W){"use strict";var A={};function T(r){var t=A[r];return e.defined(t)||("object"==typeof exports?A[t]=t=require("Workers/"+r):require(["Workers/"+r],(function(e){A[t=e]=e}))),t}return t((function(t,a){for(var n=t.subTasks,i=n.length,o=new Array(i),s=0;s<i;s++){var c=n[s],b=c.geometry,f=c.moduleName;if(e.defined(f)){var u=T(f);o[s]=u(b,c.offset)}else o[s]=b}return e.when.all(o,(function(e){return r.PrimitivePipeline.packCreateGeometryResults(e,a)}))}))}));
|
||||
|
||||
@ -1 +1 @@
|
||||
define(["./when-b60132fc","./buildModuleUrl-8958744c","./Cartographic-3309dd0d","./Check-7b2a090c","./ComponentDatatype-c140a87d","./GeometryAttribute-06a41648","./GeometryAttributes-252e9929","./FeatureDetection-806b12f0","./VertexFormat-6446fca0","./Cartesian2-47311507","./Math-119be1a3","./Event-16a2dfbf","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Cartesian4-3ca25aab"],(function(e,t,a,r,n,o,i,u,m,p,c,y,s,l,b){"use strict";function A(t){t=e.defaultValue(t,e.defaultValue.EMPTY_OBJECT);var a=e.defaultValue(t.vertexFormat,m.VertexFormat.DEFAULT);this._vertexFormat=a,this._workerName="createPlaneGeometry"}A.packedLength=m.VertexFormat.packedLength,A.pack=function(t,a,r){return r=e.defaultValue(r,0),m.VertexFormat.pack(t._vertexFormat,a,r),a};var F=new m.VertexFormat,f={vertexFormat:F};A.unpack=function(t,a,r){a=e.defaultValue(a,0);var n=m.VertexFormat.unpack(t,a,F);return e.defined(r)?(r._vertexFormat=m.VertexFormat.clone(n,r._vertexFormat),r):new A(f)};var v=new a.Cartesian3(-.5,-.5,0),d=new a.Cartesian3(.5,.5,0);return A.createGeometry=function(e){var r,m,p=e._vertexFormat,c=new i.GeometryAttributes;if(p.position){if((m=new Float64Array(12))[0]=v.x,m[1]=v.y,m[2]=0,m[3]=d.x,m[4]=v.y,m[5]=0,m[6]=d.x,m[7]=d.y,m[8]=0,m[9]=v.x,m[10]=d.y,m[11]=0,c.position=new o.GeometryAttribute({componentDatatype:n.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:m}),p.normal){var y=new Float32Array(12);y[0]=0,y[1]=0,y[2]=1,y[3]=0,y[4]=0,y[5]=1,y[6]=0,y[7]=0,y[8]=1,y[9]=0,y[10]=0,y[11]=1,c.normal=new o.GeometryAttribute({componentDatatype:n.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:y})}if(p.st){var s=new Float32Array(8);s[0]=0,s[1]=0,s[2]=1,s[3]=0,s[4]=1,s[5]=1,s[6]=0,s[7]=1,c.st=new o.GeometryAttribute({componentDatatype:n.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:s})}if(p.tangent){var l=new Float32Array(12);l[0]=1,l[1]=0,l[2]=0,l[3]=1,l[4]=0,l[5]=0,l[6]=1,l[7]=0,l[8]=0,l[9]=1,l[10]=0,l[11]=0,c.tangent=new o.GeometryAttribute({componentDatatype:n.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:l})}if(p.bitangent){var b=new Float32Array(12);b[0]=0,b[1]=1,b[2]=0,b[3]=0,b[4]=1,b[5]=0,b[6]=0,b[7]=1,b[8]=0,b[9]=0,b[10]=1,b[11]=0,c.bitangent=new o.GeometryAttribute({componentDatatype:n.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:b})}(r=new Uint16Array(6))[0]=0,r[1]=1,r[2]=2,r[3]=0,r[4]=2,r[5]=3}return new o.Geometry({attributes:c,indices:r,primitiveType:u.PrimitiveType.TRIANGLES,boundingSphere:new t.BoundingSphere(a.Cartesian3.ZERO,Math.sqrt(2))})},function(t,a){return e.defined(a)&&(t=A.unpack(t,a)),A.createGeometry(t)}}));
|
||||
define(["./when-b60132fc","./buildModuleUrl-4e1b81e7","./Cartographic-3309dd0d","./Check-7b2a090c","./ComponentDatatype-c140a87d","./GeometryAttribute-3a88ba31","./GeometryAttributes-252e9929","./PrimitiveType-a54dc62f","./VertexFormat-6446fca0","./Cartesian2-47311507","./Math-119be1a3","./Event-16a2dfbf","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./FeatureDetection-c3b71206","./Cartesian4-3ca25aab"],(function(e,t,a,r,n,o,i,u,m,p,c,y,s,b,l,v){"use strict";function A(t){t=e.defaultValue(t,e.defaultValue.EMPTY_OBJECT);var a=e.defaultValue(t.vertexFormat,m.VertexFormat.DEFAULT);this._vertexFormat=a,this._workerName="createPlaneGeometry"}A.packedLength=m.VertexFormat.packedLength,A.pack=function(t,a,r){return r=e.defaultValue(r,0),m.VertexFormat.pack(t._vertexFormat,a,r),a};var F=new m.VertexFormat,d={vertexFormat:F};A.unpack=function(t,a,r){a=e.defaultValue(a,0);var n=m.VertexFormat.unpack(t,a,F);return e.defined(r)?(r._vertexFormat=m.VertexFormat.clone(n,r._vertexFormat),r):new A(d)};var f=new a.Cartesian3(-.5,-.5,0),w=new a.Cartesian3(.5,.5,0);return A.createGeometry=function(e){var r,m,p=e._vertexFormat,c=new i.GeometryAttributes;if(p.position){if((m=new Float64Array(12))[0]=f.x,m[1]=f.y,m[2]=0,m[3]=w.x,m[4]=f.y,m[5]=0,m[6]=w.x,m[7]=w.y,m[8]=0,m[9]=f.x,m[10]=w.y,m[11]=0,c.position=new o.GeometryAttribute({componentDatatype:n.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:m}),p.normal){var y=new Float32Array(12);y[0]=0,y[1]=0,y[2]=1,y[3]=0,y[4]=0,y[5]=1,y[6]=0,y[7]=0,y[8]=1,y[9]=0,y[10]=0,y[11]=1,c.normal=new o.GeometryAttribute({componentDatatype:n.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:y})}if(p.st){var s=new Float32Array(8);s[0]=0,s[1]=0,s[2]=1,s[3]=0,s[4]=1,s[5]=1,s[6]=0,s[7]=1,c.st=new o.GeometryAttribute({componentDatatype:n.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:s})}if(p.tangent){var b=new Float32Array(12);b[0]=1,b[1]=0,b[2]=0,b[3]=1,b[4]=0,b[5]=0,b[6]=1,b[7]=0,b[8]=0,b[9]=1,b[10]=0,b[11]=0,c.tangent=new o.GeometryAttribute({componentDatatype:n.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:b})}if(p.bitangent){var l=new Float32Array(12);l[0]=0,l[1]=1,l[2]=0,l[3]=0,l[4]=1,l[5]=0,l[6]=0,l[7]=1,l[8]=0,l[9]=0,l[10]=1,l[11]=0,c.bitangent=new o.GeometryAttribute({componentDatatype:n.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:l})}(r=new Uint16Array(6))[0]=0,r[1]=1,r[2]=2,r[3]=0,r[4]=2,r[5]=3}return new o.Geometry({attributes:c,indices:r,primitiveType:u.PrimitiveType.TRIANGLES,boundingSphere:new t.BoundingSphere(a.Cartesian3.ZERO,Math.sqrt(2))})},function(t,a){return e.defined(a)&&(t=A.unpack(t,a)),A.createGeometry(t)}}));
|
||||
|
||||
@ -1 +1 @@
|
||||
define(["./when-b60132fc","./buildModuleUrl-8958744c","./Cartographic-3309dd0d","./Check-7b2a090c","./ComponentDatatype-c140a87d","./GeometryAttribute-06a41648","./GeometryAttributes-252e9929","./FeatureDetection-806b12f0","./Cartesian2-47311507","./Math-119be1a3","./Event-16a2dfbf","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Cartesian4-3ca25aab"],(function(e,t,n,r,a,i,o,u,c,y,p,s,d,b){"use strict";function m(){this._workerName="createPlaneOutlineGeometry"}m.packedLength=0,m.pack=function(e,t){return t},m.unpack=function(t,n,r){return e.defined(r)?r:new m};var f=new n.Cartesian3(-.5,-.5,0),w=new n.Cartesian3(.5,.5,0);return m.createGeometry=function(){var e=new o.GeometryAttributes,r=new Uint16Array(8),c=new Float64Array(12);return c[0]=f.x,c[1]=f.y,c[2]=f.z,c[3]=w.x,c[4]=f.y,c[5]=f.z,c[6]=w.x,c[7]=w.y,c[8]=f.z,c[9]=f.x,c[10]=w.y,c[11]=f.z,e.position=new i.GeometryAttribute({componentDatatype:a.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:c}),r[0]=0,r[1]=1,r[2]=1,r[3]=2,r[4]=2,r[5]=3,r[6]=3,r[7]=0,new i.Geometry({attributes:e,indices:r,primitiveType:u.PrimitiveType.LINES,boundingSphere:new t.BoundingSphere(n.Cartesian3.ZERO,Math.sqrt(2))})},function(t,n){return e.defined(n)&&(t=m.unpack(t,n)),m.createGeometry(t)}}));
|
||||
define(["./when-b60132fc","./buildModuleUrl-4e1b81e7","./Cartographic-3309dd0d","./Check-7b2a090c","./ComponentDatatype-c140a87d","./GeometryAttribute-3a88ba31","./GeometryAttributes-252e9929","./PrimitiveType-a54dc62f","./Cartesian2-47311507","./Math-119be1a3","./Event-16a2dfbf","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./FeatureDetection-c3b71206","./Cartesian4-3ca25aab"],(function(e,t,n,r,a,i,o,u,c,y,p,b,d,s,m){"use strict";function f(){this._workerName="createPlaneOutlineGeometry"}f.packedLength=0,f.pack=function(e,t){return t},f.unpack=function(t,n,r){return e.defined(r)?r:new f};var w=new n.Cartesian3(-.5,-.5,0),C=new n.Cartesian3(.5,.5,0);return f.createGeometry=function(){var e=new o.GeometryAttributes,r=new Uint16Array(8),c=new Float64Array(12);return c[0]=w.x,c[1]=w.y,c[2]=w.z,c[3]=C.x,c[4]=w.y,c[5]=w.z,c[6]=C.x,c[7]=C.y,c[8]=w.z,c[9]=w.x,c[10]=C.y,c[11]=w.z,e.position=new i.GeometryAttribute({componentDatatype:a.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:c}),r[0]=0,r[1]=1,r[2]=1,r[3]=2,r[4]=2,r[5]=3,r[6]=3,r[7]=0,new i.Geometry({attributes:e,indices:r,primitiveType:u.PrimitiveType.LINES,boundingSphere:new t.BoundingSphere(n.Cartesian3.ZERO,Math.sqrt(2))})},function(t,n){return e.defined(n)&&(t=f.unpack(t,n)),f.createGeometry(t)}}));
|
||||
|
||||
@ -1 +1 @@
|
||||
define(["./when-b60132fc","./Cartesian2-47311507","./arrayRemoveDuplicates-d2f048c5","./BoundingRectangle-1f901ba8","./buildModuleUrl-8958744c","./Cartographic-3309dd0d","./ComponentDatatype-c140a87d","./PolylineVolumeGeometryLibrary-33fe7c53","./Check-7b2a090c","./GeometryAttribute-06a41648","./GeometryAttributes-252e9929","./IndexDatatype-8a5eead4","./Math-119be1a3","./PolygonPipeline-d328cdf1","./FeatureDetection-806b12f0","./Event-16a2dfbf","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Cartesian4-3ca25aab","./EllipsoidTangentPlane-ce9a1fbb","./IntersectionTests-a793ed08","./Plane-a3d8b3d2","./PolylinePipeline-3454449c","./EllipsoidGeodesic-0f19ac62","./EllipsoidRhumbLine-ed1a6bf4","./earcut-2.2.1-20c8012f"],(function(e,i,a,t,n,r,o,l,s,p,d,c,u,y,h,f,g,m,v,E,b,P,_,C,k,L){"use strict";function D(a){var t=(a=e.defaultValue(a,e.defaultValue.EMPTY_OBJECT)).polylinePositions,n=a.shapePositions;this._positions=t,this._shape=n,this._ellipsoid=i.Ellipsoid.clone(e.defaultValue(a.ellipsoid,i.Ellipsoid.WGS84)),this._cornerType=e.defaultValue(a.cornerType,l.CornerType.ROUNDED),this._granularity=e.defaultValue(a.granularity,u.CesiumMath.RADIANS_PER_DEGREE),this._workerName="createPolylineVolumeOutlineGeometry";var o=1+t.length*r.Cartesian3.packedLength;o+=1+n.length*i.Cartesian2.packedLength,this.packedLength=o+i.Ellipsoid.packedLength+2}D.pack=function(a,t,n){var o;n=e.defaultValue(n,0);var l=a._positions,s=l.length;for(t[n++]=s,o=0;o<s;++o,n+=r.Cartesian3.packedLength)r.Cartesian3.pack(l[o],t,n);var p=a._shape;for(s=p.length,t[n++]=s,o=0;o<s;++o,n+=i.Cartesian2.packedLength)i.Cartesian2.pack(p[o],t,n);return i.Ellipsoid.pack(a._ellipsoid,t,n),n+=i.Ellipsoid.packedLength,t[n++]=a._cornerType,t[n]=a._granularity,t};var T=i.Ellipsoid.clone(i.Ellipsoid.UNIT_SPHERE),G={polylinePositions:void 0,shapePositions:void 0,ellipsoid:T,height:void 0,cornerType:void 0,granularity:void 0};D.unpack=function(a,t,n){var o;t=e.defaultValue(t,0);var l=a[t++],s=new Array(l);for(o=0;o<l;++o,t+=r.Cartesian3.packedLength)s[o]=r.Cartesian3.unpack(a,t);l=a[t++];var p=new Array(l);for(o=0;o<l;++o,t+=i.Cartesian2.packedLength)p[o]=i.Cartesian2.unpack(a,t);var d=i.Ellipsoid.unpack(a,t,T);t+=i.Ellipsoid.packedLength;var c=a[t++],u=a[t];return e.defined(n)?(n._positions=s,n._shape=p,n._ellipsoid=i.Ellipsoid.clone(d,n._ellipsoid),n._cornerType=c,n._granularity=u,n):(G.polylinePositions=s,G.shapePositions=p,G.cornerType=c,G.granularity=u,new D(G))};var R=new t.BoundingRectangle;return D.createGeometry=function(e){var i=e._positions,s=a.arrayRemoveDuplicates(i,r.Cartesian3.equalsEpsilon),u=e._shape;if(u=l.PolylineVolumeGeometryLibrary.removeDuplicatesFromShape(u),!(s.length<2||u.length<3)){y.PolygonPipeline.computeWindingOrder2D(u)===y.WindingOrder.CLOCKWISE&&u.reverse();var f=t.BoundingRectangle.fromPoints(u,R);return function(e,i){var a=new d.GeometryAttributes;a.position=new p.GeometryAttribute({componentDatatype:o.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:e});var t,r,l=i.length,s=a.position.values.length/3,u=e.length/3/l,y=c.IndexDatatype.createTypedArray(s,2*l*(u+1)),f=0,g=(t=0)*l;for(r=0;r<l-1;r++)y[f++]=r+g,y[f++]=r+g+1;for(y[f++]=l-1+g,y[f++]=g,g=(t=u-1)*l,r=0;r<l-1;r++)y[f++]=r+g,y[f++]=r+g+1;for(y[f++]=l-1+g,y[f++]=g,t=0;t<u-1;t++){var m=l*t,v=m+l;for(r=0;r<l;r++)y[f++]=r+m,y[f++]=r+v}return new p.Geometry({attributes:a,indices:c.IndexDatatype.createTypedArray(s,y),boundingSphere:n.BoundingSphere.fromVertices(e),primitiveType:h.PrimitiveType.LINES})}(l.PolylineVolumeGeometryLibrary.computePositions(s,u,f,e,!1),u)}},function(a,t){return e.defined(t)&&(a=D.unpack(a,t)),a._ellipsoid=i.Ellipsoid.clone(a._ellipsoid),D.createGeometry(a)}}));
|
||||
define(["./when-b60132fc","./Cartesian2-47311507","./arrayRemoveDuplicates-d2f048c5","./BoundingRectangle-3ed8ca6d","./buildModuleUrl-4e1b81e7","./Cartographic-3309dd0d","./ComponentDatatype-c140a87d","./PolylineVolumeGeometryLibrary-9eff1196","./Check-7b2a090c","./GeometryAttribute-3a88ba31","./GeometryAttributes-252e9929","./IndexDatatype-8a5eead4","./Math-119be1a3","./PolygonPipeline-660e1625","./PrimitiveType-a54dc62f","./Event-16a2dfbf","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Cartesian4-3ca25aab","./EllipsoidTangentPlane-edb321d3","./IntersectionTests-7386ffbf","./Plane-7ae8294c","./PolylinePipeline-2fe9092e","./EllipsoidGeodesic-0f19ac62","./EllipsoidRhumbLine-ed1a6bf4","./FeatureDetection-c3b71206","./earcut-2.2.1-20c8012f"],(function(e,i,a,t,n,r,o,l,s,p,d,c,u,y,h,f,g,m,v,E,P,b,_,C,k,L,T){"use strict";function D(a){var t=(a=e.defaultValue(a,e.defaultValue.EMPTY_OBJECT)).polylinePositions,n=a.shapePositions;this._positions=t,this._shape=n,this._ellipsoid=i.Ellipsoid.clone(e.defaultValue(a.ellipsoid,i.Ellipsoid.WGS84)),this._cornerType=e.defaultValue(a.cornerType,l.CornerType.ROUNDED),this._granularity=e.defaultValue(a.granularity,u.CesiumMath.RADIANS_PER_DEGREE),this._workerName="createPolylineVolumeOutlineGeometry";var o=1+t.length*r.Cartesian3.packedLength;o+=1+n.length*i.Cartesian2.packedLength,this.packedLength=o+i.Ellipsoid.packedLength+2}D.pack=function(a,t,n){var o;n=e.defaultValue(n,0);var l=a._positions,s=l.length;for(t[n++]=s,o=0;o<s;++o,n+=r.Cartesian3.packedLength)r.Cartesian3.pack(l[o],t,n);var p=a._shape;for(s=p.length,t[n++]=s,o=0;o<s;++o,n+=i.Cartesian2.packedLength)i.Cartesian2.pack(p[o],t,n);return i.Ellipsoid.pack(a._ellipsoid,t,n),n+=i.Ellipsoid.packedLength,t[n++]=a._cornerType,t[n]=a._granularity,t};var G=i.Ellipsoid.clone(i.Ellipsoid.UNIT_SPHERE),R={polylinePositions:void 0,shapePositions:void 0,ellipsoid:G,height:void 0,cornerType:void 0,granularity:void 0};D.unpack=function(a,t,n){var o;t=e.defaultValue(t,0);var l=a[t++],s=new Array(l);for(o=0;o<l;++o,t+=r.Cartesian3.packedLength)s[o]=r.Cartesian3.unpack(a,t);l=a[t++];var p=new Array(l);for(o=0;o<l;++o,t+=i.Cartesian2.packedLength)p[o]=i.Cartesian2.unpack(a,t);var d=i.Ellipsoid.unpack(a,t,G);t+=i.Ellipsoid.packedLength;var c=a[t++],u=a[t];return e.defined(n)?(n._positions=s,n._shape=p,n._ellipsoid=i.Ellipsoid.clone(d,n._ellipsoid),n._cornerType=c,n._granularity=u,n):(R.polylinePositions=s,R.shapePositions=p,R.cornerType=c,R.granularity=u,new D(R))};var V=new t.BoundingRectangle;return D.createGeometry=function(e){var i=e._positions,s=a.arrayRemoveDuplicates(i,r.Cartesian3.equalsEpsilon),u=e._shape;if(u=l.PolylineVolumeGeometryLibrary.removeDuplicatesFromShape(u),!(s.length<2||u.length<3)){y.PolygonPipeline.computeWindingOrder2D(u)===y.WindingOrder.CLOCKWISE&&u.reverse();var f=t.BoundingRectangle.fromPoints(u,V);return function(e,i){var a=new d.GeometryAttributes;a.position=new p.GeometryAttribute({componentDatatype:o.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:e});var t,r,l=i.length,s=a.position.values.length/3,u=e.length/3/l,y=c.IndexDatatype.createTypedArray(s,2*l*(u+1)),f=0,g=(t=0)*l;for(r=0;r<l-1;r++)y[f++]=r+g,y[f++]=r+g+1;for(y[f++]=l-1+g,y[f++]=g,g=(t=u-1)*l,r=0;r<l-1;r++)y[f++]=r+g,y[f++]=r+g+1;for(y[f++]=l-1+g,y[f++]=g,t=0;t<u-1;t++){var m=l*t,v=m+l;for(r=0;r<l;r++)y[f++]=r+m,y[f++]=r+v}return new p.Geometry({attributes:a,indices:c.IndexDatatype.createTypedArray(s,y),boundingSphere:n.BoundingSphere.fromVertices(e),primitiveType:h.PrimitiveType.LINES})}(l.PolylineVolumeGeometryLibrary.computePositions(s,u,f,e,!1),u)}},function(a,t){return e.defined(t)&&(a=D.unpack(a,t)),a._ellipsoid=i.Ellipsoid.clone(a._ellipsoid),D.createGeometry(a)}}));
|
||||
|
||||
@ -1 +1 @@
|
||||
define(["./when-b60132fc","./Cartographic-3309dd0d","./Check-7b2a090c","./EllipsoidGeometry-77f654e8","./VertexFormat-6446fca0","./Math-119be1a3","./arrayFill-4513d7ad","./buildModuleUrl-8958744c","./Cartesian2-47311507","./FeatureDetection-806b12f0","./Cartesian4-3ca25aab","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Event-16a2dfbf","./ComponentDatatype-c140a87d","./GeometryAttribute-06a41648","./GeometryAttributes-252e9929","./GeometryOffsetAttribute-fbeb6f1a","./IndexDatatype-8a5eead4"],(function(e,t,r,i,a,o,n,s,d,c,l,m,u,p,y,f,G,b,k){"use strict";function v(r){var a=e.defaultValue(r.radius,1),o={radii:new t.Cartesian3(a,a,a),stackPartitions:r.stackPartitions,slicePartitions:r.slicePartitions,vertexFormat:r.vertexFormat};this._ellipsoidGeometry=new i.EllipsoidGeometry(o),this._workerName="createSphereGeometry"}v.packedLength=i.EllipsoidGeometry.packedLength,v.pack=function(e,t,r){return i.EllipsoidGeometry.pack(e._ellipsoidGeometry,t,r)};var x=new i.EllipsoidGeometry,F={radius:void 0,radii:new t.Cartesian3,vertexFormat:new a.VertexFormat,stackPartitions:void 0,slicePartitions:void 0};return v.unpack=function(r,o,n){var s=i.EllipsoidGeometry.unpack(r,o,x);return F.vertexFormat=a.VertexFormat.clone(s._vertexFormat,F.vertexFormat),F.stackPartitions=s._stackPartitions,F.slicePartitions=s._slicePartitions,e.defined(n)?(t.Cartesian3.clone(s._radii,F.radii),n._ellipsoidGeometry=new i.EllipsoidGeometry(F),n):(F.radius=s._radii.x,new v(F))},v.createGeometry=function(e){return i.EllipsoidGeometry.createGeometry(e._ellipsoidGeometry)},function(t,r){return e.defined(r)&&(t=v.unpack(t,r)),v.createGeometry(t)}}));
|
||||
define(["./when-b60132fc","./Cartographic-3309dd0d","./Check-7b2a090c","./EllipsoidGeometry-be29e04c","./VertexFormat-6446fca0","./Math-119be1a3","./arrayFill-4513d7ad","./buildModuleUrl-4e1b81e7","./Cartesian2-47311507","./PrimitiveType-a54dc62f","./Cartesian4-3ca25aab","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Event-16a2dfbf","./ComponentDatatype-c140a87d","./GeometryAttribute-3a88ba31","./FeatureDetection-c3b71206","./GeometryAttributes-252e9929","./GeometryOffsetAttribute-fbeb6f1a","./IndexDatatype-8a5eead4"],(function(e,t,r,i,a,o,n,s,d,c,l,m,u,p,y,G,f,b,k,v){"use strict";function x(r){var a=e.defaultValue(r.radius,1),o={radii:new t.Cartesian3(a,a,a),stackPartitions:r.stackPartitions,slicePartitions:r.slicePartitions,vertexFormat:r.vertexFormat};this._ellipsoidGeometry=new i.EllipsoidGeometry(o),this._workerName="createSphereGeometry"}x.packedLength=i.EllipsoidGeometry.packedLength,x.pack=function(e,t,r){return i.EllipsoidGeometry.pack(e._ellipsoidGeometry,t,r)};var F=new i.EllipsoidGeometry,P={radius:void 0,radii:new t.Cartesian3,vertexFormat:new a.VertexFormat,stackPartitions:void 0,slicePartitions:void 0};return x.unpack=function(r,o,n){var s=i.EllipsoidGeometry.unpack(r,o,F);return P.vertexFormat=a.VertexFormat.clone(s._vertexFormat,P.vertexFormat),P.stackPartitions=s._stackPartitions,P.slicePartitions=s._slicePartitions,e.defined(n)?(t.Cartesian3.clone(s._radii,P.radii),n._ellipsoidGeometry=new i.EllipsoidGeometry(P),n):(P.radius=s._radii.x,new x(P))},x.createGeometry=function(e){return i.EllipsoidGeometry.createGeometry(e._ellipsoidGeometry)},function(t,r){return e.defined(r)&&(t=x.unpack(t,r)),x.createGeometry(t)}}));
|
||||
|
||||
@ -1 +1 @@
|
||||
define(["./when-b60132fc","./Cartographic-3309dd0d","./Check-7b2a090c","./EllipsoidOutlineGeometry-6312b9fc","./Math-119be1a3","./arrayFill-4513d7ad","./buildModuleUrl-8958744c","./Cartesian2-47311507","./FeatureDetection-806b12f0","./Cartesian4-3ca25aab","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Event-16a2dfbf","./ComponentDatatype-c140a87d","./GeometryAttribute-06a41648","./GeometryAttributes-252e9929","./GeometryOffsetAttribute-fbeb6f1a","./IndexDatatype-8a5eead4"],(function(e,i,t,a,r,n,o,s,d,l,u,c,p,m,y,b,G,f){"use strict";function k(t){var r=e.defaultValue(t.radius,1),n={radii:new i.Cartesian3(r,r,r),stackPartitions:t.stackPartitions,slicePartitions:t.slicePartitions,subdivisions:t.subdivisions};this._ellipsoidGeometry=new a.EllipsoidOutlineGeometry(n),this._workerName="createSphereOutlineGeometry"}k.packedLength=a.EllipsoidOutlineGeometry.packedLength,k.pack=function(e,i,t){return a.EllipsoidOutlineGeometry.pack(e._ellipsoidGeometry,i,t)};var v=new a.EllipsoidOutlineGeometry,E={radius:void 0,radii:new i.Cartesian3,stackPartitions:void 0,slicePartitions:void 0,subdivisions:void 0};return k.unpack=function(t,r,n){var o=a.EllipsoidOutlineGeometry.unpack(t,r,v);return E.stackPartitions=o._stackPartitions,E.slicePartitions=o._slicePartitions,E.subdivisions=o._subdivisions,e.defined(n)?(i.Cartesian3.clone(o._radii,E.radii),n._ellipsoidGeometry=new a.EllipsoidOutlineGeometry(E),n):(E.radius=o._radii.x,new k(E))},k.createGeometry=function(e){return a.EllipsoidOutlineGeometry.createGeometry(e._ellipsoidGeometry)},function(i,t){return e.defined(t)&&(i=k.unpack(i,t)),k.createGeometry(i)}}));
|
||||
define(["./when-b60132fc","./Cartographic-3309dd0d","./Check-7b2a090c","./EllipsoidOutlineGeometry-7e6fabdb","./Math-119be1a3","./arrayFill-4513d7ad","./buildModuleUrl-4e1b81e7","./Cartesian2-47311507","./PrimitiveType-a54dc62f","./Cartesian4-3ca25aab","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Event-16a2dfbf","./ComponentDatatype-c140a87d","./GeometryAttribute-3a88ba31","./FeatureDetection-c3b71206","./GeometryAttributes-252e9929","./GeometryOffsetAttribute-fbeb6f1a","./IndexDatatype-8a5eead4"],(function(e,i,t,a,r,n,o,s,d,l,u,c,p,b,m,y,G,f,k){"use strict";function v(t){var r=e.defaultValue(t.radius,1),n={radii:new i.Cartesian3(r,r,r),stackPartitions:t.stackPartitions,slicePartitions:t.slicePartitions,subdivisions:t.subdivisions};this._ellipsoidGeometry=new a.EllipsoidOutlineGeometry(n),this._workerName="createSphereOutlineGeometry"}v.packedLength=a.EllipsoidOutlineGeometry.packedLength,v.pack=function(e,i,t){return a.EllipsoidOutlineGeometry.pack(e._ellipsoidGeometry,i,t)};var P=new a.EllipsoidOutlineGeometry,E={radius:void 0,radii:new i.Cartesian3,stackPartitions:void 0,slicePartitions:void 0,subdivisions:void 0};return v.unpack=function(t,r,n){var o=a.EllipsoidOutlineGeometry.unpack(t,r,P);return E.stackPartitions=o._stackPartitions,E.slicePartitions=o._slicePartitions,E.subdivisions=o._subdivisions,e.defined(n)?(i.Cartesian3.clone(o._radii,E.radii),n._ellipsoidGeometry=new a.EllipsoidOutlineGeometry(E),n):(E.radius=o._radii.x,new v(E))},v.createGeometry=function(e){return a.EllipsoidOutlineGeometry.createGeometry(e._ellipsoidGeometry)},function(i,t){return e.defined(t)&&(i=v.unpack(i,t)),v.createGeometry(i)}}));
|
||||
|
||||
@ -1 +1 @@
|
||||
define(["./when-b60132fc","./Cartesian2-47311507","./buildModuleUrl-8958744c","./Cartographic-3309dd0d","./ComponentDatatype-c140a87d","./Check-7b2a090c","./GeometryAttribute-06a41648","./GeometryAttributes-252e9929","./IndexDatatype-8a5eead4","./Math-119be1a3","./FeatureDetection-806b12f0","./WallGeometryLibrary-b3b432bb","./Event-16a2dfbf","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Cartesian4-3ca25aab","./arrayRemoveDuplicates-d2f048c5","./PolylinePipeline-3454449c","./EllipsoidGeodesic-0f19ac62","./EllipsoidRhumbLine-ed1a6bf4","./IntersectionTests-a793ed08","./Plane-a3d8b3d2"],(function(e,i,t,a,n,r,o,s,l,d,m,u,p,f,c,h,g,y,v,E,_,b){"use strict";var C=new a.Cartesian3,H=new a.Cartesian3;function A(t){var n=(t=e.defaultValue(t,e.defaultValue.EMPTY_OBJECT)).positions,r=t.maximumHeights,o=t.minimumHeights,s=e.defaultValue(t.granularity,d.CesiumMath.RADIANS_PER_DEGREE),l=e.defaultValue(t.ellipsoid,i.Ellipsoid.WGS84);this._positions=n,this._minimumHeights=o,this._maximumHeights=r,this._granularity=s,this._ellipsoid=i.Ellipsoid.clone(l),this._workerName="createWallOutlineGeometry";var m=1+n.length*a.Cartesian3.packedLength+2;e.defined(o)&&(m+=o.length),e.defined(r)&&(m+=r.length),this.packedLength=m+i.Ellipsoid.packedLength+1}A.pack=function(t,n,r){var o;r=e.defaultValue(r,0);var s=t._positions,l=s.length;for(n[r++]=l,o=0;o<l;++o,r+=a.Cartesian3.packedLength)a.Cartesian3.pack(s[o],n,r);var d=t._minimumHeights;if(l=e.defined(d)?d.length:0,n[r++]=l,e.defined(d))for(o=0;o<l;++o)n[r++]=d[o];var m=t._maximumHeights;if(l=e.defined(m)?m.length:0,n[r++]=l,e.defined(m))for(o=0;o<l;++o)n[r++]=m[o];return i.Ellipsoid.pack(t._ellipsoid,n,r),n[r+=i.Ellipsoid.packedLength]=t._granularity,n};var k=i.Ellipsoid.clone(i.Ellipsoid.UNIT_SPHERE),w={positions:void 0,minimumHeights:void 0,maximumHeights:void 0,ellipsoid:k,granularity:void 0};return A.unpack=function(t,n,r){var o;n=e.defaultValue(n,0);var s,l,d=t[n++],m=new Array(d);for(o=0;o<d;++o,n+=a.Cartesian3.packedLength)m[o]=a.Cartesian3.unpack(t,n);if((d=t[n++])>0)for(s=new Array(d),o=0;o<d;++o)s[o]=t[n++];if((d=t[n++])>0)for(l=new Array(d),o=0;o<d;++o)l[o]=t[n++];var u=i.Ellipsoid.unpack(t,n,k),p=t[n+=i.Ellipsoid.packedLength];return e.defined(r)?(r._positions=m,r._minimumHeights=s,r._maximumHeights=l,r._ellipsoid=i.Ellipsoid.clone(u,r._ellipsoid),r._granularity=p,r):(w.positions=m,w.minimumHeights=s,w.maximumHeights=l,w.granularity=p,new A(w))},A.fromConstantHeights=function(i){var t,a,n=(i=e.defaultValue(i,e.defaultValue.EMPTY_OBJECT)).positions,r=i.minimumHeight,o=i.maximumHeight,s=e.defined(r),l=e.defined(o);if(s||l){var d=n.length;t=s?new Array(d):void 0,a=l?new Array(d):void 0;for(var m=0;m<d;++m)s&&(t[m]=r),l&&(a[m]=o)}return new A({positions:n,maximumHeights:a,minimumHeights:t,ellipsoid:i.ellipsoid})},A.createGeometry=function(i){var r=i._positions,p=i._minimumHeights,f=i._maximumHeights,c=i._granularity,h=i._ellipsoid,g=u.WallGeometryLibrary.computePositions(h,r,f,p,c,!1);if(e.defined(g)){var y,v=g.pos.bottomPositions,E=g.pos.topPositions,_=E.length,b=2*_,A=new Float64Array(b),k=0;for(_/=3,y=0;y<_;++y){var w=3*y,G=a.Cartesian3.fromArray(E,w,C),L=a.Cartesian3.fromArray(v,w,H);A[k++]=L.x,A[k++]=L.y,A[k++]=L.z,A[k++]=G.x,A[k++]=G.y,A[k++]=G.z}var x=new s.GeometryAttributes({position:new o.GeometryAttribute({componentDatatype:n.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:A})}),P=b/3;b=2*P-4+P;var D=l.IndexDatatype.createTypedArray(P,b),T=0;for(y=0;y<P-2;y+=2){var V=y,I=y+2,R=a.Cartesian3.fromArray(A,3*V,C),S=a.Cartesian3.fromArray(A,3*I,H);if(!a.Cartesian3.equalsEpsilon(R,S,d.CesiumMath.EPSILON10)){var M=y+1,N=y+3;D[T++]=M,D[T++]=V,D[T++]=M,D[T++]=N,D[T++]=V,D[T++]=I}}return D[T++]=P-2,D[T++]=P-1,new o.Geometry({attributes:x,indices:D,primitiveType:m.PrimitiveType.LINES,boundingSphere:new t.BoundingSphere.fromVertices(A)})}},function(t,a){return e.defined(a)&&(t=A.unpack(t,a)),t._ellipsoid=i.Ellipsoid.clone(t._ellipsoid),A.createGeometry(t)}}));
|
||||
define(["./when-b60132fc","./Cartesian2-47311507","./buildModuleUrl-4e1b81e7","./Cartographic-3309dd0d","./ComponentDatatype-c140a87d","./Check-7b2a090c","./GeometryAttribute-3a88ba31","./GeometryAttributes-252e9929","./IndexDatatype-8a5eead4","./Math-119be1a3","./PrimitiveType-a54dc62f","./WallGeometryLibrary-81096bc7","./Event-16a2dfbf","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./FeatureDetection-c3b71206","./Cartesian4-3ca25aab","./arrayRemoveDuplicates-d2f048c5","./PolylinePipeline-2fe9092e","./EllipsoidGeodesic-0f19ac62","./EllipsoidRhumbLine-ed1a6bf4","./IntersectionTests-7386ffbf","./Plane-7ae8294c"],(function(e,i,t,a,n,r,o,s,l,d,m,u,p,f,c,h,g,y,v,E,_,b,C){"use strict";var H=new a.Cartesian3,A=new a.Cartesian3;function k(t){var n=(t=e.defaultValue(t,e.defaultValue.EMPTY_OBJECT)).positions,r=t.maximumHeights,o=t.minimumHeights,s=e.defaultValue(t.granularity,d.CesiumMath.RADIANS_PER_DEGREE),l=e.defaultValue(t.ellipsoid,i.Ellipsoid.WGS84);this._positions=n,this._minimumHeights=o,this._maximumHeights=r,this._granularity=s,this._ellipsoid=i.Ellipsoid.clone(l),this._workerName="createWallOutlineGeometry";var m=1+n.length*a.Cartesian3.packedLength+2;e.defined(o)&&(m+=o.length),e.defined(r)&&(m+=r.length),this.packedLength=m+i.Ellipsoid.packedLength+1}k.pack=function(t,n,r){var o;r=e.defaultValue(r,0);var s=t._positions,l=s.length;for(n[r++]=l,o=0;o<l;++o,r+=a.Cartesian3.packedLength)a.Cartesian3.pack(s[o],n,r);var d=t._minimumHeights;if(l=e.defined(d)?d.length:0,n[r++]=l,e.defined(d))for(o=0;o<l;++o)n[r++]=d[o];var m=t._maximumHeights;if(l=e.defined(m)?m.length:0,n[r++]=l,e.defined(m))for(o=0;o<l;++o)n[r++]=m[o];return i.Ellipsoid.pack(t._ellipsoid,n,r),n[r+=i.Ellipsoid.packedLength]=t._granularity,n};var w=i.Ellipsoid.clone(i.Ellipsoid.UNIT_SPHERE),G={positions:void 0,minimumHeights:void 0,maximumHeights:void 0,ellipsoid:w,granularity:void 0};return k.unpack=function(t,n,r){var o;n=e.defaultValue(n,0);var s,l,d=t[n++],m=new Array(d);for(o=0;o<d;++o,n+=a.Cartesian3.packedLength)m[o]=a.Cartesian3.unpack(t,n);if((d=t[n++])>0)for(s=new Array(d),o=0;o<d;++o)s[o]=t[n++];if((d=t[n++])>0)for(l=new Array(d),o=0;o<d;++o)l[o]=t[n++];var u=i.Ellipsoid.unpack(t,n,w),p=t[n+=i.Ellipsoid.packedLength];return e.defined(r)?(r._positions=m,r._minimumHeights=s,r._maximumHeights=l,r._ellipsoid=i.Ellipsoid.clone(u,r._ellipsoid),r._granularity=p,r):(G.positions=m,G.minimumHeights=s,G.maximumHeights=l,G.granularity=p,new k(G))},k.fromConstantHeights=function(i){var t,a,n=(i=e.defaultValue(i,e.defaultValue.EMPTY_OBJECT)).positions,r=i.minimumHeight,o=i.maximumHeight,s=e.defined(r),l=e.defined(o);if(s||l){var d=n.length;t=s?new Array(d):void 0,a=l?new Array(d):void 0;for(var m=0;m<d;++m)s&&(t[m]=r),l&&(a[m]=o)}return new k({positions:n,maximumHeights:a,minimumHeights:t,ellipsoid:i.ellipsoid})},k.createGeometry=function(i){var r=i._positions,p=i._minimumHeights,f=i._maximumHeights,c=i._granularity,h=i._ellipsoid,g=u.WallGeometryLibrary.computePositions(h,r,f,p,c,!1);if(e.defined(g)){var y,v=g.pos.bottomPositions,E=g.pos.topPositions,_=E.length,b=2*_,C=new Float64Array(b),k=0;for(_/=3,y=0;y<_;++y){var w=3*y,G=a.Cartesian3.fromArray(E,w,H),L=a.Cartesian3.fromArray(v,w,A);C[k++]=L.x,C[k++]=L.y,C[k++]=L.z,C[k++]=G.x,C[k++]=G.y,C[k++]=G.z}var P=new s.GeometryAttributes({position:new o.GeometryAttribute({componentDatatype:n.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:C})}),x=b/3;b=2*x-4+x;var D=l.IndexDatatype.createTypedArray(x,b),T=0;for(y=0;y<x-2;y+=2){var V=y,I=y+2,R=a.Cartesian3.fromArray(C,3*V,H),S=a.Cartesian3.fromArray(C,3*I,A);if(!a.Cartesian3.equalsEpsilon(R,S,d.CesiumMath.EPSILON10)){var M=y+1,N=y+3;D[T++]=M,D[T++]=V,D[T++]=M,D[T++]=N,D[T++]=V,D[T++]=I}}return D[T++]=x-2,D[T++]=x-1,new o.Geometry({attributes:P,indices:D,primitiveType:m.PrimitiveType.LINES,boundingSphere:new t.BoundingSphere.fromVertices(C)})}},function(t,a){return e.defined(a)&&(t=k.unpack(t,a)),t._ellipsoid=i.Ellipsoid.clone(t._ellipsoid),k.createGeometry(t)}}));
|
||||
|
||||
@ -1 +1 @@
|
||||
define(["./createTaskProcessorWorker","./when-b60132fc","./RuntimeError-4a5c8994","./getStringFromTypedArray-c37342c0","./Event-16a2dfbf","./Check-7b2a090c"],(function(e,t,r,i,s,n){"use strict";var a,f=1,o=3;function u(e,r,i){this._url=e,this._maximumActiveTasks=t.defaultValue(i.maximumActiveTasks,100),this._activeTasks=0,this._deferreds={},this._nextID=0,this._event=r,this._enableHeartCheck=t.defaultValue(i.enableHeartCheck,!1),this._heartTimeOut=t.defaultValue(i.heartTimeOut,1e4),this._createWS(r)}function c(e,r,i,s){var n;return-1!==r.indexOf("extratiles=")?(s.extratiles=!0,n={id:e,binaryType:t.defaultValue(i,"blob"),tileName:r.substring(0,r.indexOf("?")),extraTiles:r.substring(r.indexOf("extratiles=")+11)}):(s.extratiles=!1,n={id:e,binaryType:t.defaultValue(i,"blob"),tileName:r}),JSON.stringify(n)}return u.prototype.scheduleTask=function(e,r){var i=this;if(!this.isOpened()){var s=t.when.defer();return this._event.addEventListener((function(t){if(t===f){++i._activeTasks;var n=i,a=n._nextID++;n._deferreds[a]=s,s.binaryType=r;var o=c(a,e,r,s);n._ws.send(o)}})),s.promise}if(!(this._activeTasks>=this._maximumActiveTasks)){++this._activeTasks;var n=this,a=n._nextID++;s=t.when.defer();n._deferreds[a]=s,s.binaryType=r;var o=c(a,e,r,s);return n._ws.send(o),s.promise}},u.prototype._createWS=function(e){this._ws=new WebSocket(this._url),this._ws.binaryType="arraybuffer";var s=this;this._ws.onopen=function(){e.raiseEvent(f)},this._ws.onclose=function(){e.raiseEvent(o)},this._ws.onerror=function(){error=new r.RuntimeError("open failure"),e.raiseEvent(error)},this._ws.onmessage=function(e){!function(e,r){if(r instanceof ArrayBuffer){--e._activeTasks;var s=new DataView(r).getInt32(0,!0);if(!t.defined(s))return;var n=e._deferreds,a=n[s];if(t.defined(a)){if("blob"===a.binaryType)4===r.byteLength?a.reject(404):a.resolve(new Blob([r.slice(4,r.byteLength)]));else if("arraybuffer"===a.binaryType)if(4===r.byteLength)a.reject(404);else{var f=r.slice(4,r.byteLength);a.extratiles?a.progress(f):a.resolve(f)}else{r=r.slice(4,r.byteLength);var o=new Uint8Array(r),u=i.getStringFromTypedArray(o);if("json"===a.binaryType){var c=JSON.parse(u);a.resolve(c)}else a.resolve(u)}!0!==a.extratiles&&delete n[s]}}}(s,e.data)}},u.prototype.isOpened=function(){return this._ws&&this._ws.readyState===f},u.prototype.close=function(){this._ws.close()},e((function(e,r){var i=e.data;if("init"==i)return a=new u(e.scpUrl,new s.Event,{}),!0;var n=t.when.defer(),f=e.dataType;if(t.defined(a)){var o=a.scheduleTask(i,f);if(!t.defined(o))return o;o.then((function(e){n.resolve(e)})).otherwise((function(e){n.reject(e)}))}return n.promise}))}));
|
||||
define(["./createTaskProcessorWorker","./when-b60132fc","./RuntimeError-4a5c8994","./getStringFromTypedArray-c37342c0","./Event-16a2dfbf","./Check-7b2a090c"],(function(e,t,r,i,s,n){"use strict";var a,f=1,o=3;function u(e,r,i){this._url=e,this._maximumActiveTasks=t.defaultValue(i.maximumActiveTasks,100),this._activeTasks=0,this._deferreds={},this._nextID=0,this._event=r,this._enableHeartCheck=t.defaultValue(i.enableHeartCheck,!1),this._heartTimeOut=t.defaultValue(i.heartTimeOut,1e4),this._createWS(r)}function c(e,r,i,s){var n;return-1!==r.indexOf("extratiles=")?(s.extratiles=!0,n={id:e,binaryType:t.defaultValue(i,"blob"),tileName:r.substring(0,r.indexOf("?")),extraTiles:r.substring(r.indexOf("extratiles=")+11)}):(s.extratiles=!1,n={id:e,binaryType:t.defaultValue(i,"blob"),tileName:r}),JSON.stringify(n)}return u.prototype.scheduleTask=function(e,r){var i=this;if(!this.isOpened()){var s=t.when.defer();return this._event.addEventListener((function(t){if(t===f){++i._activeTasks;var n=i,a=n._nextID++;n._deferreds[a]=s,s.binaryType=r;var o=c(a,e,r,s);n._ws.send(o),n._ws.send(o)}})),s.promise}if(!(this._activeTasks>=this._maximumActiveTasks)){++this._activeTasks;var n=this,a=n._nextID++;s=t.when.defer();n._deferreds[a]=s,s.binaryType=r;var o=c(a,e,r,s);return n._ws.send(o),s.promise}},u.prototype._createWS=function(e){this._ws=new WebSocket(this._url),this._ws.binaryType="arraybuffer";var s=this;this._ws.onopen=function(){e.raiseEvent(f)},this._ws.onclose=function(){e.raiseEvent(o)},this._ws.onerror=function(){error=new r.RuntimeError("open failure"),e.raiseEvent(error)},this._ws.onmessage=function(e){!function(e,r){if(r instanceof ArrayBuffer){--e._activeTasks;var s=new DataView(r).getInt32(0,!0);if(!t.defined(s))return;var n=e._deferreds,a=n[s];if(t.defined(a)){if("blob"===a.binaryType)4===r.byteLength?a.reject(404):a.resolve(new Blob([r.slice(4,r.byteLength)]));else if("arraybuffer"===a.binaryType)if(4===r.byteLength)a.reject(404);else{var f=r.slice(4,r.byteLength);a.extratiles?a.progress(f):a.resolve(f)}else{r=r.slice(4,r.byteLength);var o=new Uint8Array(r),u=i.getStringFromTypedArray(o);if("json"===a.binaryType){var c=JSON.parse(u);a.resolve(c)}else a.resolve(u)}!0!==a.extratiles&&delete n[s]}}}(s,e.data)}},u.prototype.isOpened=function(){return this._ws&&this._ws.readyState===f},u.prototype.close=function(){this._ws.close()},e((function(e,r){var i=e.data;if("init"==i)return a=new u(e.scpUrl,new s.Event,{}),!0;var n=t.when.defer(),f=e.dataType;if(t.defined(a)){var o=a.scheduleTask(i,f);if(!t.defined(o))return o;o.then((function(e){n.resolve(e)})).otherwise((function(e){n.reject(e)}))}return n.promise}))}));
|
||||
|
||||
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 6.0 KiB |
|
After Width: | Height: | Size: 113 KiB |
|
After Width: | Height: | Size: 175 KiB |
|
After Width: | Height: | Size: 7.8 KiB |
|
After Width: | Height: | Size: 371 KiB |
|
After Width: | Height: | Size: 120 KiB |