@anov/gis 1.7.7 → 1.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +37 -0
- package/CHANGELOG.md +95 -0
- package/README.md +297 -85
- package/dist/index.css +1 -1
- package/dist/index.js +18012 -58
- package/dist/resources/Assets/approximateTerrainHeights.json +1 -1
- package/dist/resources/ThirdParty/Workers/package.json +1 -0
- package/dist/resources/ThirdParty/Workers/zip-web-worker.js +1 -0
- package/dist/resources/ThirdParty/draco_decoder.wasm +0 -0
- package/dist/resources/ThirdParty/google-earth-dbroot-parser.js +1 -1
- package/dist/resources/ThirdParty/wasm_splats_bg.wasm +0 -0
- package/dist/resources/ThirdParty/zip-module.wasm +0 -0
- package/dist/resources/Widgets/Animation/Animation.css +127 -1
- package/dist/resources/Widgets/Animation/lighter.css +70 -1
- package/dist/resources/Widgets/BaseLayerPicker/BaseLayerPicker.css +108 -1
- package/dist/resources/Widgets/BaseLayerPicker/lighter.css +22 -1
- package/dist/resources/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +102 -1
- package/dist/resources/Widgets/CesiumInspector/CesiumInspector.css +113 -1
- package/dist/resources/Widgets/CesiumWidget/CesiumWidget.css +119 -1
- package/dist/resources/Widgets/CesiumWidget/lighter.css +14 -1
- package/dist/resources/Widgets/FullscreenButton/FullscreenButton.css +8 -1
- package/dist/resources/Widgets/Geocoder/Geocoder.css +70 -1
- package/dist/resources/Widgets/Geocoder/lighter.css +17 -1
- package/dist/resources/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +27 -0
- package/dist/resources/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/azureAerial.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/azureRoads.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/googleContour.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/googleRoadmap.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/googleSatellite.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/googleSatelliteLabels.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
- package/dist/resources/Widgets/InfoBox/InfoBox.css +92 -1
- package/dist/resources/Widgets/InfoBox/InfoBoxDescription.css +178 -1
- package/dist/resources/Widgets/NavigationHelpButton/NavigationHelpButton.css +93 -1
- package/dist/resources/Widgets/NavigationHelpButton/lighter.css +38 -1
- package/dist/resources/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +15 -1
- package/dist/resources/Widgets/ProjectionPicker/ProjectionPicker.css +38 -1
- package/dist/resources/Widgets/SceneModePicker/SceneModePicker.css +56 -1
- package/dist/resources/Widgets/SelectionIndicator/SelectionIndicator.css +20 -1
- package/dist/resources/Widgets/Timeline/Timeline.css +103 -1
- package/dist/resources/Widgets/Timeline/lighter.css +23 -1
- package/dist/resources/Widgets/VRButton/VRButton.css +8 -1
- package/dist/resources/Widgets/Viewer/Viewer.css +107 -1
- package/dist/resources/Widgets/VoxelInspector/VoxelInspector.css +16 -0
- package/dist/resources/Widgets/lighter.css +237 -1
- package/dist/resources/Widgets/lighterShared.css +46 -1
- package/dist/resources/Widgets/shared.css +103 -1
- package/dist/resources/Widgets/widgets.css +1342 -1
- package/dist/resources/Workers/chunk-2AIOP76V.js +25 -0
- package/dist/resources/Workers/chunk-37ETYCYM.js +25 -0
- package/dist/resources/Workers/chunk-3E7FIXV7.js +25 -0
- package/dist/resources/Workers/chunk-3N6OW3OY.js +25 -0
- package/dist/resources/Workers/{ArcType-de5d8777.js → chunk-3VUCSHGU.js} +2 -2
- package/dist/resources/Workers/chunk-4KY4VMEH.js +25 -0
- package/dist/resources/Workers/chunk-4WQ4VT5S.js +25 -0
- package/dist/resources/Workers/chunk-5AAMOBJK.js +25 -0
- package/dist/resources/Workers/chunk-5DGDPBQU.js +25 -0
- package/dist/resources/Workers/chunk-5VFNV3LW.js +25 -0
- package/dist/resources/Workers/chunk-5Z36UAB7.js +25 -0
- package/dist/resources/Workers/chunk-6AEO73KW.js +25 -0
- package/dist/resources/Workers/chunk-6DLS2UKD.js +25 -0
- package/dist/resources/Workers/{GeometryAttributes-734a3446.js → chunk-6EINM7EY.js} +2 -2
- package/dist/resources/Workers/chunk-6W2XFGWI.js +25 -0
- package/dist/resources/Workers/chunk-7GCQCPLT.js +25 -0
- package/dist/resources/Workers/chunk-7TN3TOVQ.js +25 -0
- package/dist/resources/Workers/chunk-A4I25VN7.js +25 -0
- package/dist/resources/Workers/{GeometryOffsetAttribute-59b14f45.js → chunk-AJH5KBOO.js} +2 -2
- package/dist/resources/Workers/chunk-AKELQO2L.js +25 -0
- package/dist/resources/Workers/chunk-ALIHIWSS.js +25 -0
- package/dist/resources/Workers/chunk-ATKJRN2G.js +25 -0
- package/dist/resources/Workers/chunk-BDWA46XV.js +25 -0
- package/dist/resources/Workers/chunk-BKIYVF74.js +25 -0
- package/dist/resources/Workers/chunk-BPABSUDY.js +25 -0
- package/dist/resources/Workers/chunk-D3TVNJ6W.js +25 -0
- package/dist/resources/Workers/chunk-DM7KUSL2.js +25 -0
- package/dist/resources/Workers/chunk-E7EKLP3B.js +25 -0
- package/dist/resources/Workers/{GeometryInstance-4bfcfe78.js → chunk-G2QPRBZU.js} +2 -2
- package/dist/resources/Workers/chunk-G3GDHHWO.js +25 -0
- package/dist/resources/Workers/chunk-G72JFEXW.js +25 -0
- package/dist/resources/Workers/chunk-IAE6APK2.js +25 -0
- package/dist/resources/Workers/chunk-IEITL4VO.js +25 -0
- package/dist/resources/Workers/chunk-LHBFSFJE.js +25 -0
- package/dist/resources/Workers/chunk-LN2UT4R3.js +25 -0
- package/dist/resources/Workers/chunk-LNJEJFV5.js +66 -0
- package/dist/resources/Workers/{defaultValue-97284df2.js → chunk-ML6MR2RA.js} +2 -2
- package/dist/resources/Workers/chunk-MOHWP7VV.js +25 -0
- package/dist/resources/Workers/chunk-NZBME2JK.js +25 -0
- package/dist/resources/Workers/chunk-P5EFSOUF.js +25 -0
- package/dist/resources/Workers/chunk-P7N43FDO.js +25 -0
- package/dist/resources/Workers/{combine-d11b1f00.js → chunk-PEDE2P3Q.js} +2 -2
- package/dist/resources/Workers/chunk-PSIOCLX7.js +25 -0
- package/dist/resources/Workers/chunk-PYMQNHFO.js +25 -0
- package/dist/resources/Workers/chunk-QJTXFT4R.js +25 -0
- package/dist/resources/Workers/chunk-QNPYEODC.js +25 -0
- package/dist/resources/Workers/chunk-QS7V5G6Y.js +25 -0
- package/dist/resources/Workers/chunk-RDX4QSUS.js +25 -0
- package/dist/resources/Workers/chunk-RESOCDYZ.js +25 -0
- package/dist/resources/Workers/chunk-SRA5MBUT.js +25 -0
- package/dist/resources/Workers/chunk-TCOMWBL2.js +25 -0
- package/dist/resources/Workers/chunk-UA7PAMQQ.js +25 -0
- package/dist/resources/Workers/chunk-W5OEMTMB.js +25 -0
- package/dist/resources/Workers/chunk-WGIRJIIK.js +25 -0
- package/dist/resources/Workers/{CylinderGeometryLibrary-24ad1484.js → chunk-XRJOFXJF.js} +2 -2
- package/dist/resources/Workers/chunk-YP4SXJYZ.js +25 -0
- package/dist/resources/Workers/chunk-Z7Q4J7AE.js +25 -0
- package/dist/resources/Workers/combineGeometry.js +2 -2
- package/dist/resources/Workers/createBoxGeometry.js +2 -2
- package/dist/resources/Workers/createBoxOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createCircleGeometry.js +2 -2
- package/dist/resources/Workers/createCircleOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createCoplanarPolygonGeometry.js +2 -2
- package/dist/resources/Workers/createCoplanarPolygonOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createCorridorGeometry.js +2 -2
- package/dist/resources/Workers/createCorridorOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createCylinderGeometry.js +2 -2
- package/dist/resources/Workers/createCylinderOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createEllipseGeometry.js +2 -2
- package/dist/resources/Workers/createEllipseOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createEllipsoidGeometry.js +2 -2
- package/dist/resources/Workers/createEllipsoidOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createFrustumGeometry.js +2 -2
- package/dist/resources/Workers/createFrustumOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createGeometry.js +2 -2
- package/dist/resources/Workers/createGroundPolylineGeometry.js +2 -2
- package/dist/resources/Workers/createPlaneGeometry.js +2 -2
- package/dist/resources/Workers/createPlaneOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createPolygonGeometry.js +2 -2
- package/dist/resources/Workers/createPolygonOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createPolylineGeometry.js +2 -2
- package/dist/resources/Workers/createPolylineVolumeGeometry.js +2 -2
- package/dist/resources/Workers/createPolylineVolumeOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createRectangleGeometry.js +2 -2
- package/dist/resources/Workers/createRectangleOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createSimplePolylineGeometry.js +2 -2
- package/dist/resources/Workers/createSphereGeometry.js +2 -2
- package/dist/resources/Workers/createSphereOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createTaskProcessorWorker.js +2 -2
- package/dist/resources/Workers/createVectorTileClampedPolylines.js +2 -2
- package/dist/resources/Workers/createVectorTileGeometries.js +2 -2
- package/dist/resources/Workers/createVectorTilePoints.js +2 -2
- package/dist/resources/Workers/createVectorTilePolygons.js +2 -2
- package/dist/resources/Workers/createVectorTilePolylines.js +2 -2
- package/dist/resources/Workers/createVerticesFromCesium3DTilesTerrain.js +25 -0
- package/dist/resources/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +2 -2
- package/dist/resources/Workers/createVerticesFromHeightmap.js +2 -4
- package/dist/resources/Workers/createVerticesFromQuantizedTerrainMesh.js +2 -2
- package/dist/resources/Workers/createWallGeometry.js +2 -2
- package/dist/resources/Workers/createWallOutlineGeometry.js +2 -2
- package/dist/resources/Workers/decodeDraco.js +2 -2
- package/dist/resources/Workers/decodeGoogleEarthEnterprisePacket.js +2 -2
- package/dist/resources/Workers/decodeI3S.js +25 -0
- package/dist/resources/Workers/gaussianSplatSorter.js +25 -0
- package/dist/resources/Workers/{_commonjsHelpers-3aae1032-65601a27.js → gaussianSplatTextureGenerator.js} +2 -2
- package/dist/resources/Workers/incrementallyBuildTerrainPicker.js +25 -0
- package/dist/resources/Workers/transcodeKTX2.js +2 -2
- package/dist/resources/Workers/transferTypedArrayTest.js +25 -1
- package/dist/resources/Workers/upsampleQuantizedTerrainMesh.js +2 -2
- package/dist/resources/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +25 -0
- package/dist/resources/static/js/viewerCesiumNavigationMixin.js +1 -1
- package/package.json +88 -84
- package/scripts/release.js +323 -0
- package/dist/resources/ThirdParty/Workers/basis_transcoder.js +0 -1
- package/dist/resources/ThirdParty/Workers/draco_decoder_nodejs.js +0 -1
- package/dist/resources/ThirdParty/Workers/pako_deflate.min.js +0 -1
- package/dist/resources/ThirdParty/Workers/pako_inflate.min.js +0 -1
- package/dist/resources/ThirdParty/Workers/z-worker-pako.js +0 -1
- package/dist/resources/Widgets/Images/ImageryProviders/esriNationalGeographic.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/esriWorldImagery.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/esriWorldStreetMap.png +0 -0
- package/dist/resources/Workers/AttributeCompression-5744d52e.js +0 -25
- package/dist/resources/Workers/AxisAlignedBoundingBox-b1c095aa.js +0 -25
- package/dist/resources/Workers/BoundingRectangle-2b0ebbdd.js +0 -25
- package/dist/resources/Workers/BoxGeometry-acd0c697.js +0 -25
- package/dist/resources/Workers/Color-c7fd1307.js +0 -25
- package/dist/resources/Workers/ComponentDatatype-e7fbe225.js +0 -25
- package/dist/resources/Workers/CoplanarPolygonGeometryLibrary-edaba606.js +0 -25
- package/dist/resources/Workers/CorridorGeometryLibrary-ab3e6481.js +0 -25
- package/dist/resources/Workers/CylinderGeometry-679e50b4.js +0 -25
- package/dist/resources/Workers/EllipseGeometry-e6f948bb.js +0 -25
- package/dist/resources/Workers/EllipseGeometryLibrary-0adcaeed.js +0 -25
- package/dist/resources/Workers/EllipseOutlineGeometry-418492dc.js +0 -25
- package/dist/resources/Workers/EllipsoidGeodesic-ed8a0e40.js +0 -25
- package/dist/resources/Workers/EllipsoidGeometry-539fb9e2.js +0 -25
- package/dist/resources/Workers/EllipsoidOutlineGeometry-6c13760b.js +0 -25
- package/dist/resources/Workers/EllipsoidRhumbLine-60f14314.js +0 -25
- package/dist/resources/Workers/EllipsoidTangentPlane-7ae496b2.js +0 -25
- package/dist/resources/Workers/EncodedCartesian3-a9a8a281.js +0 -25
- package/dist/resources/Workers/FrustumGeometry-be9b9578.js +0 -25
- package/dist/resources/Workers/GeometryAttribute-fd1d7e90.js +0 -25
- package/dist/resources/Workers/GeometryPipeline-a847e31f.js +0 -25
- package/dist/resources/Workers/IndexDatatype-65271ba3.js +0 -25
- package/dist/resources/Workers/IntersectionTests-33ace2d6.js +0 -25
- package/dist/resources/Workers/Matrix2-73789715.js +0 -25
- package/dist/resources/Workers/OrientedBoundingBox-ee3011f6.js +0 -25
- package/dist/resources/Workers/Plane-e916220d.js +0 -25
- package/dist/resources/Workers/PolygonGeometryLibrary-0f0c78d4.js +0 -25
- package/dist/resources/Workers/PolygonPipeline-00dc0c6e.js +0 -25
- package/dist/resources/Workers/PolylinePipeline-ebd42f23.js +0 -25
- package/dist/resources/Workers/PolylineVolumeGeometryLibrary-a4b92b4e.js +0 -25
- package/dist/resources/Workers/PrimitivePipeline-42d69f96.js +0 -25
- package/dist/resources/Workers/RectangleGeometryLibrary-cff60d30.js +0 -25
- package/dist/resources/Workers/RuntimeError-4f8ec8a2.js +0 -25
- package/dist/resources/Workers/TerrainEncoding-080f16eb.js +0 -25
- package/dist/resources/Workers/Transforms-d3d3b2a9.js +0 -66
- package/dist/resources/Workers/VertexFormat-9886cb81.js +0 -25
- package/dist/resources/Workers/WallGeometryLibrary-27f90b78.js +0 -25
- package/dist/resources/Workers/WebGLConstants-6da700a2.js +0 -25
- package/dist/resources/Workers/WebMercatorProjection-04ef6bc3.js +0 -25
- package/dist/resources/Workers/arrayRemoveDuplicates-6f91355d.js +0 -25
- package/dist/resources/Workers/cesiumWorkerBootstrapper.js +0 -6
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.143.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
import{a}from"./chunk-IAE6APK2.js";import{a as d}from"./chunk-3E7FIXV7.js";import{a as g,b as r}from"./chunk-NZBME2JK.js";import{e as W,f as u}from"./chunk-6DLS2UKD.js";var ve=new a,_e=new a;function Fe(e,t,r,n,i){if(!u(e))throw new g("cartesian is required.");if(!u(t))throw new g("oneOverRadii is required.");if(!u(r))throw new g("oneOverRadiiSquared is required.");if(!u(n))throw new g("centerToleranceSquared is required.");let s=e.x,o=e.y,l=e.z,c=t.x,f=t.y,p=t.z,y=s*s*c*c,h=o*o*f*f,m=l*l*p*p,O=y+h+m,b=Math.sqrt(1/O),x=a.multiplyByScalar(e,b,ve);if(O<n)return isFinite(b)?a.clone(x,i):void 0;let S=r.x,_=r.y,q=r.z,v=_e;v.x=x.x*S*2,v.y=x.y*_*2,v.z=x.z*q*2;let w,A,R,j,E,z,F,M,T,C,N,I=(1-b)*a.magnitude(e)/(.5*a.magnitude(v)),k=0;do{I-=k,R=1/(1+I*S),j=1/(1+I*_),E=1/(1+I*q),z=R*R,F=j*j,M=E*E,T=z*R,C=F*j,N=M*E,w=y*z+h*F+m*M-1,A=y*T*S+h*C*_+m*N*q,k=w/(-2*A)}while(Math.abs(w)>d.EPSILON12);return u(i)?(i.x=s*R,i.y=o*j,i.z=l*E,i):new a(s*R,o*j,l*E)}var U=Fe,h=class e{constructor(e,t,r){this.longitude=e??0,this.latitude=t??0,this.height=r??0}static fromRadians(t,n,i,a){return r.typeOf.number("longitude",t),r.typeOf.number("latitude",n),i=i??0,u(a)?(a.longitude=t,a.latitude=n,a.height=i,a):new e(t,n,i)}static fromDegrees(t,n,i,a){return r.typeOf.number("longitude",t),r.typeOf.number("latitude",n),t=d.toRadians(t),n=d.toRadians(n),e.fromRadians(t,n,i,a)}static fromCartesian(t,r,n){let i=u(r)?r.oneOverRadii:e._ellipsoidOneOverRadii,s=u(r)?r.oneOverRadiiSquared:e._ellipsoidOneOverRadiiSquared,o=u(r)?r._centerToleranceSquared:e._ellipsoidCenterToleranceSquared,l=U(t,i,s,o,Ne);if(!u(l))return;let c=a.multiplyComponents(l,s,Me);c=a.normalize(c,c);let f=a.subtract(t,l,ze),p=Math.atan2(c.y,c.x),y=Math.asin(c.z),h=d.sign(a.dot(f,t))*a.magnitude(f);return u(n)?(n.longitude=p,n.latitude=y,n.height=h,n):new e(p,y,h)}static toCartesian(e,t,n){return r.defined("cartographic",e),a.fromRadians(e.longitude,e.latitude,e.height,t,n)}static clone(t,r){if(u(t))return u(r)?(r.longitude=t.longitude,r.latitude=t.latitude,r.height=t.height,r):new e(t.longitude,t.latitude,t.height)}static equals(e,t){return e===t||u(e)&&u(t)&&e.longitude===t.longitude&&e.latitude===t.latitude&&e.height===t.height}static equalsEpsilon(e,t,r){return r=r??0,e===t||u(e)&&u(t)&&Math.abs(e.longitude-t.longitude)<=r&&Math.abs(e.latitude-t.latitude)<=r&&Math.abs(e.height-t.height)<=r}clone(t){return e.clone(this,t)}equals(t){return e.equals(this,t)}equalsEpsilon(t,r){return e.equalsEpsilon(this,t,r)}toString(){return`(${this.longitude}, ${this.latitude}, ${this.height})`}};W(h,"_ellipsoidOneOverRadii",new a(1/6378137,1/6378137,1/6356752.314245179)),W(h,"_ellipsoidOneOverRadiiSquared",new a(1/40680631590769,1/40680631590769,1/40408299984661.445)),W(h,"_ellipsoidCenterToleranceSquared",d.EPSILON1);var z=h;z.ZERO=Object.freeze(new z(0,0,0));var Me=new a,Ne=new a,ze=new a,P=z,f=class e{constructor(e,t){this.x=e??0,this.y=t??0}static fromElements(t,r,n){return u(n)?(n.x=t,n.y=r,n):new e(t,r)}static clone(t,r){if(u(t))return u(r)?(r.x=t.x,r.y=t.y,r):new e(t.x,t.y)}static pack(e,t,n){return r.typeOf.object("value",e),r.defined("array",t),n=n??0,t[n++]=e.x,t[n]=e.y,t}static unpack(t,n,i){return r.defined("array",t),n=n??0,u(i)||(i=new e),i.x=t[n++],i.y=t[n],i}static packArray(t,n){r.defined("array",t);let i=t.length,a=2*i;if(u(n)){if(!Array.isArray(n)&&n.length!==a)throw new g("If result is a typed array, it must have exactly array.length * 2 elements");n.length!==a&&(n.length=a)}else n=new Array(a);for(let r=0;r<i;++r)e.pack(t[r],n,2*r);return n}static unpackArray(t,n){if(r.defined("array",t),r.typeOf.number.greaterThanOrEquals("array.length",t.length,2),t.length%2!=0)throw new g("array length must be a multiple of 2.");let i=t.length;u(n)?n.length=i/2:n=new Array(i/2);for(let r=0;r<i;r+=2){let i=r/2;n[i]=e.unpack(t,r,n[i])}return n}static maximumComponent(e){return r.typeOf.object("cartesian",e),Math.max(e.x,e.y)}static minimumComponent(e){return r.typeOf.object("cartesian",e),Math.min(e.x,e.y)}static minimumByComponent(e,t,n){return r.typeOf.object("first",e),r.typeOf.object("second",t),r.typeOf.object("result",n),n.x=Math.min(e.x,t.x),n.y=Math.min(e.y,t.y),n}static maximumByComponent(e,t,n){return r.typeOf.object("first",e),r.typeOf.object("second",t),r.typeOf.object("result",n),n.x=Math.max(e.x,t.x),n.y=Math.max(e.y,t.y),n}static clamp(e,t,n,i){r.typeOf.object("value",e),r.typeOf.object("min",t),r.typeOf.object("max",n),r.typeOf.object("result",i);let a=d.clamp(e.x,t.x,n.x),u=d.clamp(e.y,t.y,n.y);return i.x=a,i.y=u,i}static magnitudeSquared(e){return r.typeOf.object("cartesian",e),e.x*e.x+e.y*e.y}static magnitude(t){return Math.sqrt(e.magnitudeSquared(t))}static distance(t,n){return r.typeOf.object("left",t),r.typeOf.object("right",n),e.subtract(t,n,V),e.magnitude(V)}static distanceSquared(t,n){return r.typeOf.object("left",t),r.typeOf.object("right",n),e.subtract(t,n,V),e.magnitudeSquared(V)}static normalize(t,n){r.typeOf.object("cartesian",t),r.typeOf.object("result",n);let i=e.magnitude(t);if(n.x=t.x/i,n.y=t.y/i,isNaN(n.x)||isNaN(n.y))throw new g("normalized result is not a number");return n}static dot(e,t){return r.typeOf.object("left",e),r.typeOf.object("right",t),e.x*t.x+e.y*t.y}static cross(e,t){return r.typeOf.object("left",e),r.typeOf.object("right",t),e.x*t.y-e.y*t.x}static multiplyComponents(e,t,n){return r.typeOf.object("left",e),r.typeOf.object("right",t),r.typeOf.object("result",n),n.x=e.x*t.x,n.y=e.y*t.y,n}static divideComponents(e,t,n){return r.typeOf.object("left",e),r.typeOf.object("right",t),r.typeOf.object("result",n),n.x=e.x/t.x,n.y=e.y/t.y,n}static add(e,t,n){return r.typeOf.object("left",e),r.typeOf.object("right",t),r.typeOf.object("result",n),n.x=e.x+t.x,n.y=e.y+t.y,n}static subtract(e,t,n){return r.typeOf.object("left",e),r.typeOf.object("right",t),r.typeOf.object("result",n),n.x=e.x-t.x,n.y=e.y-t.y,n}static multiplyByScalar(e,t,n){return r.typeOf.object("cartesian",e),r.typeOf.number("scalar",t),r.typeOf.object("result",n),n.x=e.x*t,n.y=e.y*t,n}static divideByScalar(e,t,n){return r.typeOf.object("cartesian",e),r.typeOf.number("scalar",t),r.typeOf.object("result",n),n.x=e.x/t,n.y=e.y/t,n}static negate(e,t){return r.typeOf.object("cartesian",e),r.typeOf.object("result",t),t.x=-e.x,t.y=-e.y,t}static abs(e,t){return r.typeOf.object("cartesian",e),r.typeOf.object("result",t),t.x=Math.abs(e.x),t.y=Math.abs(e.y),t}static lerp(t,n,i,a){return r.typeOf.object("start",t),r.typeOf.object("end",n),r.typeOf.number("t",i),r.typeOf.object("result",a),e.multiplyByScalar(n,i,he),a=e.multiplyByScalar(t,1-i,a),e.add(he,a,a)}static angleBetween(t,n){return r.typeOf.object("left",t),r.typeOf.object("right",n),e.normalize(t,Oe),e.normalize(n,ge),d.acosClamped(e.dot(Oe,ge))}static mostOrthogonalAxis(t,n){r.typeOf.object("cartesian",t),r.typeOf.object("result",n);let i=e.normalize(t,Pe);return e.abs(i,i),n=i.x<=i.y?e.clone(e.UNIT_X,n):e.clone(e.UNIT_Y,n)}static equals(e,t){return e===t||u(e)&&u(t)&&e.x===t.x&&e.y===t.y}static equalsArray(e,t,r){return e.x===t[r]&&e.y===t[r+1]}static equalsEpsilon(e,t,r,n){return e===t||u(e)&&u(t)&&d.equalsEpsilon(e.x,t.x,r,n)&&d.equalsEpsilon(e.y,t.y,r,n)}clone(t){return e.clone(this,t)}equals(t){return e.equals(this,t)}equalsEpsilon(t,r,n){return e.equalsEpsilon(this,t,r,n)}toString(){return`(${this.x}, ${this.y})`}};f.fromCartesian3=f.clone,f.fromCartesian4=f.clone,f.packedLength=2,f.fromArray=f.unpack;var V=new f,he=new f,Oe=new f,ge=new f,Pe=new f;f.ZERO=Object.freeze(new f(0,0)),f.ONE=Object.freeze(new f(1,1)),f.UNIT_X=Object.freeze(new f(1,0)),f.UNIT_Y=Object.freeze(new f(0,1));var re=f;function be(e,t,n,i){t=t??0,n=n??0,i=i??0,r.typeOf.number.greaterThanOrEquals("x",t,0),r.typeOf.number.greaterThanOrEquals("y",n,0),r.typeOf.number.greaterThanOrEquals("z",i,0),e._radii=new a(t,n,i),e._radiiSquared=new a(t*t,n*n,i*i),e._radiiToTheFourth=new a(t*t*t*t,n*n*n*n,i*i*i*i),e._oneOverRadii=new a(0===t?0:1/t,0===n?0:1/n,0===i?0:1/i),e._oneOverRadiiSquared=new a(0===t?0:1/(t*t),0===n?0:1/(n*n),0===i?0:1/(i*i)),e._minimumRadius=Math.min(t,n,i),e._maximumRadius=Math.max(t,n,i),e._centerToleranceSquared=d.EPSILON1,0!==e._radiiSquared.z&&(e._squaredXOverSquaredZ=e._radiiSquared.x/e._radiiSquared.z)}var O=class e{constructor(e,t,r){this._radii=void 0,this._radiiSquared=void 0,this._radiiToTheFourth=void 0,this._oneOverRadii=void 0,this._oneOverRadiiSquared=void 0,this._minimumRadius=void 0,this._maximumRadius=void 0,this._centerToleranceSquared=void 0,this._squaredXOverSquaredZ=void 0,be(this,e,t,r)}get radii(){return this._radii}get radiiSquared(){return this._radiiSquared}get radiiToTheFourth(){return this._radiiToTheFourth}get oneOverRadii(){return this._oneOverRadii}get oneOverRadiiSquared(){return this._oneOverRadiiSquared}get minimumRadius(){return this._minimumRadius}get maximumRadius(){return this._maximumRadius}static clone(t,r){if(!u(t))return;let n=t._radii;return u(r)?(a.clone(n,r._radii),a.clone(t._radiiSquared,r._radiiSquared),a.clone(t._radiiToTheFourth,r._radiiToTheFourth),a.clone(t._oneOverRadii,r._oneOverRadii),a.clone(t._oneOverRadiiSquared,r._oneOverRadiiSquared),r._minimumRadius=t._minimumRadius,r._maximumRadius=t._maximumRadius,r._centerToleranceSquared=t._centerToleranceSquared,r):new e(n.x,n.y,n.z)}static fromCartesian3(t,r){return u(r)||(r=new e),u(t)&&be(r,t.x,t.y,t.z),r}static get default(){return e._default}static set default(t){r.typeOf.object("value",t),e._default=t,a._ellipsoidRadiiSquared=t.radiiSquared,P._ellipsoidOneOverRadii=t.oneOverRadii,P._ellipsoidOneOverRadiiSquared=t.oneOverRadiiSquared,P._ellipsoidCenterToleranceSquared=t._centerToleranceSquared}clone(t){return e.clone(this,t)}static pack(e,t,n){return r.typeOf.object("value",e),r.defined("array",t),n=n??0,a.pack(e._radii,t,n),t}static unpack(t,n,i){r.defined("array",t),n=n??0;let u=a.unpack(t,n);return e.fromCartesian3(u,i)}geodeticSurfaceNormalCartographic(e,t){r.typeOf.object("cartographic",e);let n=e.longitude,i=e.latitude,s=Math.cos(i),o=s*Math.cos(n),l=s*Math.sin(n),c=Math.sin(i);return u(t)||(t=new a),t.x=o,t.y=l,t.z=c,a.normalize(t,t)}geodeticSurfaceNormal(e,t){if(r.typeOf.object("cartesian",e),isNaN(e.x)||isNaN(e.y)||isNaN(e.z))throw new g("cartesian has a NaN component");if(!a.equalsEpsilon(e,a.ZERO,d.EPSILON14))return u(t)||(t=new a),t=a.multiplyComponents(e,this._oneOverRadiiSquared,t),a.normalize(t,t)}cartographicToCartesian(e,t){let r=ke,n=Ie;this.geodeticSurfaceNormalCartographic(e,r),a.multiplyComponents(this._radiiSquared,r,n);let i=Math.sqrt(a.dot(r,n));return a.divideByScalar(n,i,n),a.multiplyByScalar(r,e.height,r),u(t)||(t=new a),a.add(n,r,t)}cartographicArrayToCartesianArray(e,t){r.defined("cartographics",e);let n=e.length;u(t)?t.length=n:t=new Array(n);for(let r=0;r<n;r++)t[r]=this.cartographicToCartesian(e[r],t[r]);return t}cartesianToCartographic(e,t){let r=this.scaleToGeodeticSurface(e,We);if(!u(r))return;let n=this.geodeticSurfaceNormal(r,Be),i=a.subtract(e,r,Ue),s=Math.atan2(n.y,n.x),o=Math.asin(n.z),l=d.sign(a.dot(i,e))*a.magnitude(i);return u(t)?(t.longitude=s,t.latitude=o,t.height=l,t):new P(s,o,l)}cartesianArrayToCartographicArray(e,t){r.defined("cartesians",e);let n=e.length;u(t)?t.length=n:t=new Array(n);for(let r=0;r<n;++r)t[r]=this.cartesianToCartographic(e[r],t[r]);return t}scaleToGeodeticSurface(e,t){return U(e,this._oneOverRadii,this._oneOverRadiiSquared,this._centerToleranceSquared,t)}scaleToGeocentricSurface(e,t){r.typeOf.object("cartesian",e),u(t)||(t=new a);let n=e.x,i=e.y,s=e.z,o=this._oneOverRadiiSquared,l=1/Math.sqrt(n*n*o.x+i*i*o.y+s*s*o.z);return a.multiplyByScalar(e,l,t)}transformPositionToScaledSpace(e,t){return u(t)||(t=new a),a.multiplyComponents(e,this._oneOverRadii,t)}transformPositionFromScaledSpace(e,t){return u(t)||(t=new a),a.multiplyComponents(e,this._radii,t)}equals(e){return this===e||u(e)&&a.equals(this._radii,e._radii)}toString(){return this._radii.toString()}getSurfaceNormalIntersectionWithZAxis(e,t,n){if(r.typeOf.object("position",e),!d.equalsEpsilon(this._radii.x,this._radii.y,d.EPSILON15))throw new g("Ellipsoid must be an ellipsoid of revolution (radii.x == radii.y)");r.typeOf.number.greaterThan("Ellipsoid.radii.z",this._radii.z,0),t=t??0;let i=this._squaredXOverSquaredZ;if(u(n)||(n=new a),n.x=0,n.y=0,n.z=e.z*(1-i),!(Math.abs(n.z)>=this._radii.z-t))return n}getLocalCurvature(e,t){r.typeOf.object("surfacePosition",e),u(t)||(t=new re);let n=this.getSurfaceNormalIntersectionWithZAxis(e,0,Ve),i=a.distance(e,n),s=i*(this.minimumRadius*i/this.maximumRadius**2)**2;return re.fromElements(1/i,1/s,t)}surfaceArea(e){r.typeOf.object("rectangle",e);let t=e.west,n=e.east,i=e.south,a=e.north;for(;n<t;)n+=d.TWO_PI;let u=this._radiiSquared,s=u.x,o=u.y,l=u.z,c=s*o;return xe(i,a,(function(e){let r=Math.cos(e),i=Math.sin(e);return Math.cos(e)*xe(t,n,(function(e){let t=Math.cos(e),n=Math.sin(e);return Math.sqrt(c*i*i+l*(o*t*t+s*n*n)*r*r)}))}))}};O.WGS84=Object.freeze(new O(6378137,6378137,6356752.314245179)),O.UNIT_SPHERE=Object.freeze(new O(1,1,1)),O.MOON=Object.freeze(new O(d.LUNAR_RADIUS,d.LUNAR_RADIUS,d.LUNAR_RADIUS)),O.MARS=Object.freeze(new O(3396190,3396190,3376200)),O._default=O.WGS84,O.packedLength=a.packedLength,O.prototype.geocentricSurfaceNormal=a.normalize;var ke=new a,Ie=new a,Be=new a,We=new a,Ue=new a,Ve=new a,Le=[.14887433898163,.43339539412925,.67940956829902,.86506336668898,.97390652851717,0],$e=[.29552422471475,.26926671930999,.21908636251598,.14945134915058,.066671344308684,0];function xe(e,t,n){r.typeOf.number("a",e),r.typeOf.number("b",t),r.typeOf.func("func",n);let i=.5*(t+e),a=.5*(t-e),u=0;for(let e=0;e<5;e++){let t=a*Le[e];u+=$e[e]*(n(i+t)+n(i-t))}return u*=a,u}var R,At=O,l={requestFullscreen:void 0,exitFullscreen:void 0,fullscreenEnabled:void 0,fullscreenElement:void 0,fullscreenchange:void 0,fullscreenerror:void 0},b={};Object.defineProperties(b,{element:{get:function(){if(b.supportsFullscreen())return document[l.fullscreenElement]}},changeEventName:{get:function(){if(b.supportsFullscreen())return l.fullscreenchange}},errorEventName:{get:function(){if(b.supportsFullscreen())return l.fullscreenerror}},enabled:{get:function(){if(b.supportsFullscreen())return document[l.fullscreenEnabled]}},fullscreen:{get:function(){if(b.supportsFullscreen())return null!==b.element}}}),b.supportsFullscreen=function(){if(u(R))return R;R=!1;let e=document.body;if("function"==typeof e.requestFullscreen)return l.requestFullscreen="requestFullscreen",l.exitFullscreen="exitFullscreen",l.fullscreenEnabled="fullscreenEnabled",l.fullscreenElement="fullscreenElement",l.fullscreenchange="fullscreenchange",l.fullscreenerror="fullscreenerror",R=!0;let t,r=["webkit","moz","o","ms","khtml"];for(let n=0,i=r.length;n<i;++n){let i=r[n];t=`${i}RequestFullscreen`,"function"==typeof e[t]?(l.requestFullscreen=t,R=!0):(t=`${i}RequestFullScreen`,"function"==typeof e[t]&&(l.requestFullscreen=t,R=!0)),t=`${i}ExitFullscreen`,"function"==typeof document[t]?l.exitFullscreen=t:(t=`${i}CancelFullScreen`,"function"==typeof document[t]&&(l.exitFullscreen=t)),t=`${i}FullscreenEnabled`,void 0!==document[t]?l.fullscreenEnabled=t:(t=`${i}FullScreenEnabled`,void 0!==document[t]&&(l.fullscreenEnabled=t)),t=`${i}FullscreenElement`,void 0!==document[t]?l.fullscreenElement=t:(t=`${i}FullScreenElement`,void 0!==document[t]&&(l.fullscreenElement=t)),t=`${i}fullscreenchange`,void 0!==document[`on${t}`]&&("ms"===i&&(t="MSFullscreenChange"),l.fullscreenchange=t),t=`${i}fullscreenerror`,void 0!==document[`on${t}`]&&("ms"===i&&(t="MSFullscreenError"),l.fullscreenerror=t)}return R},b.requestFullscreen=function(e,t){b.supportsFullscreen()&&e[l.requestFullscreen]({vrDisplay:t})},b.exitFullscreen=function(){b.supportsFullscreen()&&document[l.exitFullscreen]()},b._names=l;var x,L,we,$,qe,D,se,Z,je,G,de,oe,ae,ue,Ee,X,Se=b;function k(e){let t=e.split(".");for(let e=0,r=t.length;e<r;++e)t[e]=parseInt(t[e],10);return t}function ce(){if(!u(L)&&(L=!1,!Y())){let e=/ Chrome\/([\.0-9]+)/.exec(x.userAgent);null!==e&&(L=!0,we=k(e[1]))}return L}function De(){return ce()&&we}function Re(){if(!u($)&&($=!1,!ce()&&!Y()&&/ Safari\/[\.0-9]+/.test(x.userAgent))){let e=/ Version\/([\.0-9]+)/.exec(x.userAgent);null!==e&&($=!0,qe=k(e[1]))}return $}function Ze(){return Re()&&qe}function Ae(){if(!u(D)){D=!1;let e=/ AppleWebKit\/([\.0-9]+)(\+?)/.exec(x.userAgent);null!==e&&(D=!0,(se=k(e[1])).isNightly=!!e[2])}return D}function Ge(){return Ae()&&se}function Y(){if(!u(Z)){Z=!1;let e=/ Edg\/([\.0-9]+)/.exec(x.userAgent);null!==e&&(Z=!0,je=k(e[1]))}return Z}function Xe(){return Y()&&je}function Q(){if(!u(G)){G=!1;let e=/Firefox\/([\.0-9]+)/.exec(x.userAgent);null!==e&&(G=!0,de=k(e[1]))}return G}function Ye(){return u(oe)||(oe=/Windows/i.test(x.appVersion)),oe}function Qe(){return u(ae)||(ae="iPhone"===navigator.platform||"iPod"===navigator.platform||"iPad"===navigator.platform),ae}function He(){return Q()&&de}function Je(){return u(ue)||(ue=!Q()&&typeof PointerEvent<"u"&&(!u(x.pointerEnabled)||x.pointerEnabled)),ue}function Te(){if(!u(X)){let e=document.createElement("canvas");e.setAttribute("style","image-rendering: -moz-crisp-edges;image-rendering: pixelated;");let t=e.style.imageRendering;(X=u(t)&&""!==t)&&(Ee=t)}return X}function Ke(){return Te()?Ee:void 0}function y(){if(!y.initialized)throw new g("You must call FeatureDetection.supportsWebP.initialize and wait for the promise to resolve before calling FeatureDetection.supportsWebP");return y._result}x=typeof navigator<"u"?navigator:{},y._promise=void 0,y._result=void 0,y.initialize=function(){return u(y._promise)||(y._promise=new Promise((e=>{let t=new Image;t.onload=function(){y._result=t.width>0&&t.height>0,e(y._result)},t.onerror=function(){y._result=!1,e(y._result)},t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA"}))),y._promise},Object.defineProperties(y,{initialized:{get:function(){return u(y._result)}}});var M=[];typeof ArrayBuffer<"u"&&(M.push(Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array),typeof Uint8ClampedArray<"u"&&M.push(Uint8ClampedArray),typeof Uint8ClampedArray<"u"&&M.push(Uint8ClampedArray),typeof BigInt64Array<"u"&&M.push(BigInt64Array),typeof BigUint64Array<"u"&&M.push(BigUint64Array));var S={isChrome:ce,chromeVersion:De,isSafari:Re,safariVersion:Ze,isWebkit:Ae,webkitVersion:Ge,isEdge:Y,edgeVersion:Xe,isFirefox:Q,firefoxVersion:He,isWindows:Ye,isIPadOrIOS:Qe,hardwareConcurrency:x.hardwareConcurrency??3,supportsPointerEvents:Je,supportsImageRenderingPixelated:Te,supportsWebP:y,imageRenderingValue:Ke,typedArrayTypes:M,supportsBasis:function(e){return S.supportsWebAssembly()&&e.context.supportsBasis},supportsFullscreen:function(){return Se.supportsFullscreen()},supportsTypedArrays:function(){return typeof ArrayBuffer<"u"},supportsBigInt64Array:function(){return typeof BigInt64Array<"u"},supportsBigUint64Array:function(){return typeof BigUint64Array<"u"},supportsBigInt:function(){return typeof BigInt<"u"},supportsWebWorkers:function(){return typeof Worker<"u"},supportsWebAssembly:function(){return typeof WebAssembly<"u"},supportsWebgl2:function(e){return r.defined("scene",e),e.context.webgl2},supportsEsmWebWorkers:function(){return!Q()||parseInt(de)>=114}},Mt=S;export{P as a,re as b,At as c,Mt as d};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.143.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
import{a as P,c as T}from"./chunk-2AIOP76V.js";import{a as p}from"./chunk-IAE6APK2.js";import{a}from"./chunk-3E7FIXV7.js";import{a as I,b as g}from"./chunk-NZBME2JK.js";import{f as l}from"./chunk-6DLS2UKD.js";function w(t,i,e){if(0===t)return i*e;let a=t*t,n=a*a,s=n*a,l=s*a,h=l*a,u=h*a,d=e;return i*((1-a/4-3*n/64-5*s/256-175*l/16384-441*h/65536-4851*u/1048576)*d-(3*a/8+3*n/32+45*s/1024+105*l/4096+2205*h/131072+6237*u/524288)*Math.sin(2*d)+(15*n/256+45*s/1024+525*l/16384+1575*h/65536+155925*u/8388608)*Math.sin(4*d)-(35*s/3072+175*l/12288+3675*h/262144+13475*u/1048576)*Math.sin(6*d)+(315*l/131072+2205*h/524288+43659*u/8388608)*Math.sin(8*d)-(693*h/1310720+6237*u/5242880)*Math.sin(10*d)+1001*u/8388608*Math.sin(12*d))}function H(t,i,e){let a=t/e;if(0===i)return a;let n=a*a,s=n*a,l=s*a,h=i*i,u=h*h,d=u*h,o=d*h,r=o*h,c=r*h,g=Math.sin(2*a),_=Math.cos(2*a),p=Math.sin(4*a),f=Math.cos(4*a),M=Math.sin(6*a),m=Math.cos(6*a),P=Math.sin(8*a),O=Math.cos(8*a),E=Math.sin(10*a);return a+a*h/4+7*a*u/64+15*a*d/256+579*a*o/16384+1515*a*r/65536+16837*a*c/1048576+(3*a*u/16+45*a*d/256-a*(32*n-561)*o/4096-a*(232*n-1677)*r/16384+a*(399985-90560*n+512*l)*c/5242880)*_+(21*a*d/256+483*a*o/4096-a*(224*n-1969)*r/16384-a*(33152*n-112599)*c/1048576)*f+(151*a*o/4096+4681*a*r/65536+1479*a*c/16384-453*s*c/32768)*m+(1097*a*r/65536+42783*a*c/1048576)*O+8011*a*c/1048576*Math.cos(10*a)+(3*h/8+3*u/16+213*d/2048-3*n*d/64+255*o/4096-33*n*o/512+20861*r/524288-33*n*r/512+l*r/1024+28273*c/1048576-471*n*c/8192+9*l*c/4096)*g+(21*u/256+21*d/256+533*o/8192-21*n*o/512+197*r/4096-315*n*r/4096+584039*c/16777216-12517*n*c/131072+7*l*c/2048)*p+(151*d/6144+151*o/4096+5019*r/131072-453*n*r/16384+26965*c/786432-8607*n*c/131072)*M+(1097*o/131072+1097*r/65536+225797*c/10485760-1097*n*c/65536)*P+(8011*r/2621440+8011*c/1048576)*E+293393*c/251658240*Math.sin(12*a)}function O(t,i){if(0===t)return Math.log(Math.tan(.5*(a.PI_OVER_TWO+i)));let e=t*Math.sin(i);return Math.log(Math.tan(.5*(a.PI_OVER_TWO+i)))-t/2*Math.log((1+e)/(1-e))}function z(t,i,e,n,s){let l=O(t._ellipticity,e),h=O(t._ellipticity,s);return Math.atan2(a.negativePiToPi(n-i),h-l)}function k(t,i,e,n,s,l,h){let u=t._heading,d=l-n,o=0;if(a.equalsEpsilon(Math.abs(u),a.PI_OVER_TWO,a.EPSILON8))if(i===e)o=i*Math.cos(s)*a.negativePiToPi(d);else{let e=Math.sin(s);o=i*Math.cos(s)*a.negativePiToPi(d)/Math.sqrt(1-t._ellipticitySquared*e*e)}else{let e=w(t._ellipticity,i,s);o=(w(t._ellipticity,i,h)-e)/Math.cos(u)}return Math.abs(o)}var A=new p,q=new p;function y(t,i,e,a){let n=p.normalize(a.cartographicToCartesian(i,q),A),s=p.normalize(a.cartographicToCartesian(e,q),q);g.typeOf.number.greaterThanOrEquals("value",Math.abs(Math.abs(p.angleBetween(n,s))-Math.PI),.0125);let l=a.maximumRadius,h=a.minimumRadius,u=l*l,d=h*h;t._ellipticitySquared=(u-d)/u,t._ellipticity=Math.sqrt(t._ellipticitySquared),t._start=P.clone(i,t._start),t._start.height=0,t._end=P.clone(e,t._end),t._end.height=0,t._heading=z(t,i.longitude,i.latitude,e.longitude,e.latitude),t._distance=k(t,a.maximumRadius,a.minimumRadius,i.longitude,i.latitude,e.longitude,e.latitude)}function D(t,i,e,n,s,h){if(0===e)return P.clone(t,h);let u,d,o,r=s*s;if(Math.abs(a.PI_OVER_TWO-Math.abs(i))>a.EPSILON8){if(d=H(w(s,n,t.latitude)+e*Math.cos(i),s,n),Math.abs(i)<a.EPSILON10)u=a.negativePiToPi(t.longitude);else{let e=O(s,t.latitude),n=O(s,d);o=Math.tan(i)*(n-e),u=a.negativePiToPi(t.longitude+o)}}else{let l;if(d=t.latitude,0===s)l=n*Math.cos(t.latitude);else{let i=Math.sin(t.latitude);l=n*Math.cos(t.latitude)/Math.sqrt(1-r*i*i)}o=e/l,u=i>0?a.negativePiToPi(t.longitude+o):a.negativePiToPi(t.longitude-o)}return l(h)?(h.longitude=u,h.latitude=d,h.height=0,h):new P(u,d,0)}function m(t,i,e){let a=e??T.default;this._ellipsoid=a,this._start=new P,this._end=new P,this._heading=void 0,this._distance=void 0,this._ellipticity=void 0,this._ellipticitySquared=void 0,l(t)&&l(i)&&y(this,t,i,a)}Object.defineProperties(m.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},surfaceDistance:{get:function(){return g.defined("distance",this._distance),this._distance}},start:{get:function(){return this._start}},end:{get:function(){return this._end}},heading:{get:function(){return g.defined("distance",this._distance),this._heading}}}),m.fromStartHeadingDistance=function(t,i,e,n,s){g.defined("start",t),g.defined("heading",i),g.defined("distance",e),g.typeOf.number.greaterThan("distance",e,0);let h=n??T.default,u=h.maximumRadius,d=h.minimumRadius,o=u*u,r=d*d,c=Math.sqrt((o-r)/o),_=D(t,i=a.negativePiToPi(i),e,h.maximumRadius,c);return!l(s)||l(n)&&!n.equals(s.ellipsoid)?new m(t,_,h):(s.setEndPoints(t,_),s)},m.prototype.setEndPoints=function(t,i){g.defined("start",t),g.defined("end",i),y(this,t,i,this._ellipsoid)},m.prototype.interpolateUsingFraction=function(t,i){return this.interpolateUsingSurfaceDistance(t*this._distance,i)},m.prototype.interpolateUsingSurfaceDistance=function(t,i){if(g.typeOf.number("distance",t),!l(this._distance)||0===this._distance)throw new I("EllipsoidRhumbLine must have distinct start and end set.");return D(this._start,this._heading,t,this._ellipsoid.maximumRadius,this._ellipticity,i)},m.prototype.findIntersectionWithLongitude=function(t,i){if(g.typeOf.number("intersectionLongitude",t),!l(this._distance)||0===this._distance)throw new I("EllipsoidRhumbLine must have distinct start and end set.");let e=this._ellipticity,n=this._heading,s=Math.abs(n),h=this._start;if(t=a.negativePiToPi(t),a.equalsEpsilon(Math.abs(t),Math.PI,a.EPSILON14)&&(t=a.sign(h.longitude)*Math.PI),l(i)||(i=new P),Math.abs(a.PI_OVER_TWO-s)<=a.EPSILON8)return i.longitude=t,i.latitude=h.latitude,i.height=0,i;if(a.equalsEpsilon(Math.abs(a.PI_OVER_TWO-s),a.PI_OVER_TWO,a.EPSILON8))return a.equalsEpsilon(t,h.longitude,a.EPSILON12)?void 0:(i.longitude=t,i.latitude=a.PI_OVER_TWO*a.sign(a.PI_OVER_TWO-n),i.height=0,i);let u,d=h.latitude,o=e*Math.sin(d),r=Math.tan(.5*(a.PI_OVER_TWO+d))*Math.exp((t-h.longitude)/Math.tan(n)),c=(1+o)/(1-o),_=h.latitude;do{u=_;let t=e*Math.sin(u),i=(1+t)/(1-t);_=2*Math.atan(r*Math.pow(i/c,e/2))-a.PI_OVER_TWO}while(!a.equalsEpsilon(_,u,a.EPSILON12));return i.longitude=t,i.latitude=_,i.height=0,i},m.prototype.findIntersectionWithLatitude=function(t,i){if(g.typeOf.number("intersectionLatitude",t),!l(this._distance)||0===this._distance)throw new I("EllipsoidRhumbLine must have distinct start and end set.");let e=this._ellipticity,n=this._heading,s=this._start;if(a.equalsEpsilon(Math.abs(n),a.PI_OVER_TWO,a.EPSILON8))return;let h=O(e,s.latitude),u=O(e,t),d=Math.tan(n)*(u-h),o=a.negativePiToPi(s.longitude+d);return l(i)?(i.longitude=o,i.latitude=t,i.height=0,i):new P(o,t,0)};var Y=m;export{Y as a};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.143.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
import{a as n,b as a}from"./chunk-NZBME2JK.js";import{c as E,d as I,f as o}from"./chunk-6DLS2UKD.js";var d=E(((t,r)=>{var n=function(t){null==t&&(t=(new Date).getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,t.constructor==Array?this.init_by_array(t,t.length):this.init_seed(t)};n.prototype.init_seed=function(t){for(this.mt[0]=t>>>0,this.mti=1;this.mti<this.N;this.mti++){t=this.mt[this.mti-1]^this.mt[this.mti-1]>>>30;this.mt[this.mti]=(1812433253*((4294901760&t)>>>16)<<16)+1812433253*(65535&t)+this.mti,this.mt[this.mti]>>>=0}},n.prototype.init_by_array=function(t,r){var n,e,i;for(this.init_seed(19650218),n=1,e=0,i=this.N>r?this.N:r;i;i--){var o=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(1664525*((4294901760&o)>>>16)<<16)+1664525*(65535&o))+t[e]+e,this.mt[n]>>>=0,e++,++n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1),e>=r&&(e=0)}for(i=this.N-1;i;i--){o=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(1566083941*((4294901760&o)>>>16)<<16)+1566083941*(65535&o))-n,this.mt[n]>>>=0,++n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1)}this.mt[0]=2147483648},n.prototype.random_int=function(){var t,r=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var n;for(this.mti==this.N+1&&this.init_seed(5489),n=0;n<this.N-this.M;n++)t=this.mt[n]&this.UPPER_MASK|this.mt[n+1]&this.LOWER_MASK,this.mt[n]=this.mt[n+this.M]^t>>>1^r[1&t];for(;n<this.N-1;n++)t=this.mt[n]&this.UPPER_MASK|this.mt[n+1]&this.LOWER_MASK,this.mt[n]=this.mt[n+(this.M-this.N)]^t>>>1^r[1&t];t=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^t>>>1^r[1&t],this.mti=0}return t=this.mt[this.mti++],t^=t>>>11,t^=t<<7&2636928640,t^=t<<15&4022730752,(t^=t>>>18)>>>0},n.prototype.random_int31=function(){return this.random_int()>>>1},n.prototype.random_incl=function(){return this.random_int()*(1/4294967295)},n.prototype.random=function(){return this.random_int()*(1/4294967296)},n.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)},n.prototype.random_long=function(){return(67108864*(this.random_int()>>>5)+(this.random_int()>>>6))*(1/9007199254740992)},r.exports=n})),w=I(d(),1),r={EPSILON1:.1,EPSILON2:.01,EPSILON3:.001,EPSILON4:1e-4,EPSILON5:1e-5,EPSILON6:1e-6,EPSILON7:1e-7,EPSILON8:1e-8,EPSILON9:1e-9,EPSILON10:1e-10,EPSILON11:1e-11,EPSILON12:1e-12,EPSILON13:1e-13,EPSILON14:1e-14,EPSILON15:1e-15,EPSILON16:1e-16,EPSILON17:1e-17,EPSILON18:1e-18,EPSILON19:1e-19,EPSILON20:1e-20,EPSILON21:1e-21,GRAVITATIONALPARAMETER:3986004418e5,SOLAR_RADIUS:6955e5,LUNAR_RADIUS:1737400,SIXTY_FOUR_KILOBYTES:65536,FOUR_GIGABYTES:4294967296};r.sign=Math.sign??function(t){return 0===(t=+t)||t!=t?t:t>0?1:-1},r.signNotZero=function(t){return t<0?-1:1},r.toSNorm=function(t,n){return n=n??255,Math.round((.5*r.clamp(t,-1,1)+.5)*n)},r.fromSNorm=function(t,n){return n=n??255,r.clamp(t,0,n)/n*2-1},r.normalize=function(t,n,e){return 0===(e=Math.max(e-n,0))?0:r.clamp((t-n)/e,0,1)},r.sinh=Math.sinh??function(t){return(Math.exp(t)-Math.exp(-t))/2},r.cosh=Math.cosh??function(t){return(Math.exp(t)+Math.exp(-t))/2},r.lerp=function(t,r,n){return(1-n)*t+n*r},r.PI=Math.PI,r.ONE_OVER_PI=1/Math.PI,r.PI_OVER_TWO=Math.PI/2,r.PI_OVER_THREE=Math.PI/3,r.PI_OVER_FOUR=Math.PI/4,r.PI_OVER_SIX=Math.PI/6,r.THREE_PI_OVER_TWO=3*Math.PI/2,r.TWO_PI=2*Math.PI,r.ONE_OVER_TWO_PI=1/(2*Math.PI),r.RADIANS_PER_DEGREE=Math.PI/180,r.DEGREES_PER_RADIAN=180/Math.PI,r.RADIANS_PER_ARCSECOND=r.RADIANS_PER_DEGREE/3600,r.toRadians=function(t){if(!o(t))throw new n("degrees is required.");return t*r.RADIANS_PER_DEGREE},r.toDegrees=function(t){if(!o(t))throw new n("radians is required.");return t*r.DEGREES_PER_RADIAN},r.convertLongitudeRange=function(t){if(!o(t))throw new n("angle is required.");let e=r.TWO_PI,i=t-Math.floor(t/e)*e;return i<-Math.PI?i+e:i>=Math.PI?i-e:i},r.clampToLatitudeRange=function(t){if(!o(t))throw new n("angle is required.");return r.clamp(t,-1*r.PI_OVER_TWO,r.PI_OVER_TWO)},r.negativePiToPi=function(t){if(!o(t))throw new n("angle is required.");return t>=-r.PI&&t<=r.PI?t:r.zeroToTwoPi(t+r.PI)-r.PI},r.zeroToTwoPi=function(t){if(!o(t))throw new n("angle is required.");if(t>=0&&t<=r.TWO_PI)return t;let e=r.mod(t,r.TWO_PI);return Math.abs(e)<r.EPSILON14&&Math.abs(t)>r.EPSILON14?r.TWO_PI:e},r.mod=function(t,e){if(!o(t))throw new n("m is required.");if(!o(e))throw new n("n is required.");if(0===e)throw new n("divisor cannot be 0.");return r.sign(t)===r.sign(e)&&Math.abs(t)<Math.abs(e)?t:(t%e+e)%e},r.equalsEpsilon=function(t,r,e,i){if(!o(t))throw new n("left is required.");if(!o(r))throw new n("right is required.");e=e??0,i=i??e;let s=Math.abs(t-r);return s<=i||s<=e*Math.max(Math.abs(t),Math.abs(r))},r.lessThan=function(t,r,e){if(!o(t))throw new n("first is required.");if(!o(r))throw new n("second is required.");if(!o(e))throw new n("absoluteEpsilon is required.");return t-r<-e},r.lessThanOrEquals=function(t,r,e){if(!o(t))throw new n("first is required.");if(!o(r))throw new n("second is required.");if(!o(e))throw new n("absoluteEpsilon is required.");return t-r<e},r.greaterThan=function(t,r,e){if(!o(t))throw new n("first is required.");if(!o(r))throw new n("second is required.");if(!o(e))throw new n("absoluteEpsilon is required.");return t-r>e},r.greaterThanOrEquals=function(t,r,e){if(!o(t))throw new n("first is required.");if(!o(r))throw new n("second is required.");if(!o(e))throw new n("absoluteEpsilon is required.");return t-r>-e};var c=[1];r.factorial=function(t){if("number"!=typeof t||t<0)throw new n("A number greater than or equal to 0 is required.");let r=c.length;if(t>=r){let n=c[r-1];for(let e=r;e<=t;e++){let t=n*e;c.push(t),n=t}}return c[t]},r.incrementWrap=function(t,r,e){if(e=e??0,!o(t))throw new n("n is required.");if(r<=e)throw new n("maximumValue must be greater than minimumValue.");return++t>r&&(t=e),t},r.isPowerOfTwo=function(t){if("number"!=typeof t||t<0||t>4294967295)throw new n("A number between 0 and (2^32)-1 is required.");return 0!==t&&0==(t&t-1)},r.nextPowerOfTwo=function(t){if("number"!=typeof t||t<0||t>2147483648)throw new n("A number between 0 and 2^31 is required.");return--t,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,++t},r.previousPowerOfTwo=function(t){if("number"!=typeof t||t<0||t>4294967295)throw new n("A number between 0 and (2^32)-1 is required.");return t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,t=((t|=t>>32)>>>0)-(t>>>1)},r.clamp=function(t,r,n){return a.typeOf.number("value",t),a.typeOf.number("min",r),a.typeOf.number("max",n),t<r?r:t>n?n:t};var P=new w.default;r.setRandomNumberSeed=function(t){if(!o(t))throw new n("seed is required.");P=new w.default(t)},r.nextRandomNumber=function(){return P.random()},r.randomBetween=function(t,n){return r.nextRandomNumber()*(n-t)+t},r.acosClamped=function(t){if(!o(t))throw new n("value is required.");return Math.acos(r.clamp(t,-1,1))},r.asinClamped=function(t){if(!o(t))throw new n("value is required.");return Math.asin(r.clamp(t,-1,1))},r.chordLength=function(t,r){if(!o(t))throw new n("angle is required.");if(!o(r))throw new n("radius is required.");return 2*r*Math.sin(.5*t)},r.logBase=function(t,r){if(!o(t))throw new n("number is required.");if(!o(r))throw new n("base is required.");return Math.log(t)/Math.log(r)},r.cbrt=Math.cbrt??function(t){let r=Math.pow(Math.abs(t),.3333333333333333);return t<0?-r:r},r.log2=Math.log2??function(t){return Math.log(t)*Math.LOG2E},r.fog=function(t,r){let n=t*r;return 1-Math.exp(-n*n)},r.fastApproximateAtan=function(t){return a.typeOf.number("x",t),t*(-.1784*Math.abs(t)-.0663*t*t+1.0301)},r.fastApproximateAtan2=function(t,e){a.typeOf.number("x",t),a.typeOf.number("y",e);let i,o=Math.abs(t);i=Math.abs(e);let s=Math.max(o,i);i=Math.min(o,i);let h=i/s;if(isNaN(h))throw new n("either x or y must be nonzero");return o=r.fastApproximateAtan(h),o=Math.abs(e)>Math.abs(t)?r.PI_OVER_TWO-o:o,o=t<0?r.PI-o:o,o=e<0?-o:o,o};var M=r;export{M as a};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.143.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
import{a as Q}from"./chunk-PEDE2P3Q.js";import{a as N}from"./chunk-ML6MR2RA.js";import{a as _}from"./chunk-AKELQO2L.js";import{a as K}from"./chunk-4WQ4VT5S.js";import{a as H}from"./chunk-6EINM7EY.js";import{b as J,c as W,d as L}from"./chunk-A4I25VN7.js";import{c as j}from"./chunk-D3TVNJ6W.js";import{a as S}from"./chunk-ATKJRN2G.js";import{b as E}from"./chunk-2AIOP76V.js";import{a as b,c as Z}from"./chunk-IAE6APK2.js";import{a as Y}from"./chunk-3E7FIXV7.js";import{a as F}from"./chunk-NZBME2JK.js";import{f as g}from"./chunk-6DLS2UKD.js";var k=new E,ot=new b,nt=new b,it=new b,rt=new b;function O(t){let e=(t=t??Z.EMPTY_OBJECT).length,o=t.topRadius,n=t.bottomRadius,r=t.vertexFormat??_.DEFAULT,a=t.slices??128;if(!g(e))throw new F("options.length must be defined.");if(!g(o))throw new F("options.topRadius must be defined.");if(!g(n))throw new F("options.bottomRadius must be defined.");if(a<3)throw new F("options.slices must be greater than or equal to 3.");if(g(t.offsetAttribute)&&t.offsetAttribute===N.TOP)throw new F("GeometryOffsetAttribute.TOP is not a supported options.offsetAttribute for this geometry.");this._length=e,this._topRadius=o,this._bottomRadius=n,this._vertexFormat=_.clone(r),this._slices=a,this._offsetAttribute=t.offsetAttribute,this._workerName="createCylinderGeometry"}O.packedLength=_.packedLength+5,O.pack=function(t,e,o){if(!g(t))throw new F("value is required");if(!g(e))throw new F("array is required");return o=o??0,_.pack(t._vertexFormat,e,o),o+=_.packedLength,e[o++]=t._length,e[o++]=t._topRadius,e[o++]=t._bottomRadius,e[o++]=t._slices,e[o]=t._offsetAttribute??-1,e};var M,X=new _,D={vertexFormat:X,length:void 0,topRadius:void 0,bottomRadius:void 0,slices:void 0,offsetAttribute:void 0};O.unpack=function(t,e,o){if(!g(t))throw new F("array is required");e=e??0;let n=_.unpack(t,e,X);e+=_.packedLength;let r=t[e++],a=t[e++],i=t[e++],s=t[e++],u=t[e];return g(o)?(o._vertexFormat=_.clone(n,o._vertexFormat),o._length=r,o._topRadius=a,o._bottomRadius=i,o._slices=s,o._offsetAttribute=-1===u?void 0:u,o):(D.length=r,D.topRadius=a,D.bottomRadius=i,D.slices=s,D.offsetAttribute=-1===u?void 0:u,new O(D))},O.createGeometry=function(t){let e=t._length,o=t._topRadius,n=t._bottomRadius,r=t._vertexFormat,a=t._slices;if(e<=0||o<0||n<0||0===o&&0===n)return;let i,s=a+a,u=a+s,m=s+s,f=Q.computePositions(e,o,n,a,!0),p=r.st?new Float32Array(2*m):void 0,c=r.normal?new Float32Array(3*m):void 0,l=r.tangent?new Float32Array(3*m):void 0,h=r.bitangent?new Float32Array(3*m):void 0,d=r.normal||r.tangent||r.bitangent;if(d){let t=r.tangent||r.bitangent,s=0,u=0,m=0,f=Math.atan2(n-o,e),p=ot;p.z=Math.sin(f);let g=Math.cos(f),_=it,A=nt;for(i=0;i<a;i++){let e=i/a*Y.TWO_PI,o=g*Math.cos(e),n=g*Math.sin(e);d&&(p.x=o,p.y=n,t&&(_=b.normalize(b.cross(b.UNIT_Z,p,_),_)),r.normal&&(c[s++]=p.x,c[s++]=p.y,c[s++]=p.z,c[s++]=p.x,c[s++]=p.y,c[s++]=p.z),r.tangent&&(l[u++]=_.x,l[u++]=_.y,l[u++]=_.z,l[u++]=_.x,l[u++]=_.y,l[u++]=_.z),r.bitangent&&(A=b.normalize(b.cross(p,_,A),A),h[m++]=A.x,h[m++]=A.y,h[m++]=A.z,h[m++]=A.x,h[m++]=A.y,h[m++]=A.z))}for(i=0;i<a;i++)r.normal&&(c[s++]=0,c[s++]=0,c[s++]=-1),r.tangent&&(l[u++]=1,l[u++]=0,l[u++]=0),r.bitangent&&(h[m++]=0,h[m++]=-1,h[m++]=0);for(i=0;i<a;i++)r.normal&&(c[s++]=0,c[s++]=0,c[s++]=1),r.tangent&&(l[u++]=1,l[u++]=0,l[u++]=0),r.bitangent&&(h[m++]=0,h[m++]=1,h[m++]=0)}let _=12*a-12,A=K.createTypedArray(m,_),w=0,y=0;for(i=0;i<a-1;i++)A[w++]=y,A[w++]=y+2,A[w++]=y+3,A[w++]=y,A[w++]=y+3,A[w++]=y+1,y+=2;for(A[w++]=s-2,A[w++]=0,A[w++]=1,A[w++]=s-2,A[w++]=1,A[w++]=s-1,i=1;i<a-1;i++)A[w++]=s+i+1,A[w++]=s+i,A[w++]=s;for(i=1;i<a-1;i++)A[w++]=u,A[w++]=u+i,A[w++]=u+i+1;let v=0;if(r.st){let t=Math.max(o,n);for(i=0;i<m;i++){let e=b.fromArray(f,3*i,rt);p[v++]=(e.x+t)/(2*t),p[v++]=(e.y+t)/(2*t)}}let O=new H;r.position&&(O.position=new L({componentDatatype:S.DOUBLE,componentsPerAttribute:3,values:f})),r.normal&&(O.normal=new L({componentDatatype:S.FLOAT,componentsPerAttribute:3,values:c})),r.tangent&&(O.tangent=new L({componentDatatype:S.FLOAT,componentsPerAttribute:3,values:l})),r.bitangent&&(O.bitangent=new L({componentDatatype:S.FLOAT,componentsPerAttribute:3,values:h})),r.st&&(O.st=new L({componentDatatype:S.FLOAT,componentsPerAttribute:2,values:p})),k.x=.5*e,k.y=Math.max(n,o);let F=new j(b.ZERO,E.magnitude(k));if(g(t._offsetAttribute)){e=f.length;let o=t._offsetAttribute===N.NONE?0:1,n=new Uint8Array(e/3).fill(o);O.applyOffset=new L({componentDatatype:S.UNSIGNED_BYTE,componentsPerAttribute:1,values:n})}return new W({attributes:O,indices:A,primitiveType:J.TRIANGLES,boundingSphere:F,offsetAttribute:t._offsetAttribute})},O.getUnitCylinder=function(){return g(M)||(M=O.createGeometry(new O({topRadius:1,bottomRadius:1,length:1,vertexFormat:_.POSITION_ONLY}))),M};var yt=O;export{yt as a};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.143.0
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
* Portions licensed separately.
|
|
23
23
|
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
var e={OUTSIDE:-1,INTERSECTING:0,INSIDE:1};Object.freeze(e);var t=e;export{t as a};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.143.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
import{a as z}from"./chunk-D3TVNJ6W.js";import{j as I,k as b}from"./chunk-LNJEJFV5.js";import{a as O,c as L}from"./chunk-2AIOP76V.js";import{a as W}from"./chunk-IAE6APK2.js";import{a as m}from"./chunk-3E7FIXV7.js";import{a as v}from"./chunk-NZBME2JK.js";import{f as k}from"./chunk-6DLS2UKD.js";var Z=Math.cos,B=Math.sin,p=Math.sqrt,N={computePosition:function(t,n,a,r,o,s,e){let i=n.radiiSquared,l=t.nwCorner,h=t.boundingRectangle,u=l.latitude-t.granYCos*r+o*t.granXSin,g=Z(u),c=B(u),m=i.z*c,S=l.longitude+r*t.granYSin+o*t.granXCos,C=g*Z(S),d=g*B(S),w=i.x*C,f=i.y*d,O=p(w*C+f*d+m*c);if(s.x=w/O,s.y=f/O,s.z=m/O,a){let n=t.stNwCorner;k(n)?(u=n.latitude-t.stGranYCos*r+o*t.stGranXSin,S=n.longitude+r*t.stGranYSin+o*t.stGranXCos,e.x=(S-t.stWest)*t.lonScalar,e.y=(u-t.stSouth)*t.latScalar):(e.x=(S-h.west)*t.lonScalar,e.y=(u-h.south)*t.latScalar)}}},A=new b,l=new W,F=new O,j=new W,y=new z;function D(t,n,a,r,o,s,e){let i=Math.cos(n),h=r*i,u=a*i,g=Math.sin(n),c=r*g,m=a*g;y._ellipsoid=L.default,l=y.project(t,l),l=W.subtract(l,j,l);let S=b.fromRotation(n,A);l=b.multiplyByVector(S,l,l),l=W.add(l,j,l),s-=1,e-=1;let C=(t=y.unproject(l,t)).latitude,d=C+s*m,p=C-h*e,w=C-h*e+s*m,f=Math.max(C,d,p,w),O=Math.min(C,d,p,w),I=t.longitude,X=I+s*u,Y=I+e*c,_=I+e*c+s*u;return{north:f,south:O,east:Math.max(I,X,Y,_),west:Math.min(I,X,Y,_),granYCos:h,granYSin:c,granXCos:u,granXSin:m,nwCorner:t}}N.computeOptions=function(t,n,a,r,o,s,e){let i=t.east,l=t.west,h=t.north,u=t.south,g=!1,c=!1;h===m.PI_OVER_TWO&&(g=!0),u===-m.PI_OVER_TWO&&(c=!0);let S,C=h-u;S=l>i?m.TWO_PI-l+i:i-l;let d=Math.ceil(S/n)+1,p=Math.ceil(C/n)+1,w=S/(d-1),f=C/(p-1),O=I.northwest(t,s),X=I.center(t,F);(0!==a||0!==r)&&(X.longitude<O.longitude&&(X.longitude+=m.TWO_PI),y._ellipsoid=L.default,j=y.project(X,j));let W=f,Y=w,_=I.clone(t,o),M={granYCos:W,granYSin:0,granXCos:Y,granXSin:0,nwCorner:O,boundingRectangle:_,width:d,height:p,northCap:g,southCap:c};if(0!==a){let t=D(O,a,w,f,X,d,p);if(h=t.north,u=t.south,i=t.east,l=t.west,h<-m.PI_OVER_TWO||h>m.PI_OVER_TWO||u<-m.PI_OVER_TWO||u>m.PI_OVER_TWO)throw new v("Rotated rectangle is invalid. It crosses over either the north or south pole.");M.granYCos=t.granYCos,M.granYSin=t.granYSin,M.granXCos=t.granXCos,M.granXSin=t.granXSin,_.north=h,_.south=u,_.east=i,_.west=l}if(0!==r){a-=r;let t=I.northwest(_,e),n=D(t,a,w,f,X,d,p);M.stGranYCos=n.granYCos,M.stGranXCos=n.granXCos,M.stGranYSin=n.granYSin,M.stGranXSin=n.granXSin,M.stNwCorner=t,M.stWest=n.west,M.stSouth=n.south}return M};var st=N;export{st as a};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.143.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
import{a as N}from"./chunk-RDX4QSUS.js";import{a}from"./chunk-3E7FIXV7.js";import{a as t}from"./chunk-NZBME2JK.js";import{f as i}from"./chunk-6DLS2UKD.js";var r={UNSIGNED_BYTE:N.UNSIGNED_BYTE,UNSIGNED_SHORT:N.UNSIGNED_SHORT,UNSIGNED_INT:N.UNSIGNED_INT,getSizeInBytes:function(e){switch(e){case r.UNSIGNED_BYTE:return Uint8Array.BYTES_PER_ELEMENT;case r.UNSIGNED_SHORT:return Uint16Array.BYTES_PER_ELEMENT;case r.UNSIGNED_INT:return Uint32Array.BYTES_PER_ELEMENT}throw new t("indexDatatype is required and must be a valid IndexDatatype constant.")},fromSizeInBytes:function(e){switch(e){case 2:return r.UNSIGNED_SHORT;case 4:return r.UNSIGNED_INT;case 1:return r.UNSIGNED_BYTE;default:throw new t("Size in bytes cannot be mapped to an IndexDatatype")}},validate:function(e){return i(e)&&(e===r.UNSIGNED_BYTE||e===r.UNSIGNED_SHORT||e===r.UNSIGNED_INT)},createTypedArray:function(r,e){if(!i(r))throw new t("numberOfVertices is required.");return r>=a.SIXTY_FOUR_KILOBYTES?new Uint32Array(e):new Uint16Array(e)},createTypedArrayFromArrayBuffer:function(r,e,n,N){if(!i(r))throw new t("numberOfVertices is required.");if(!i(e))throw new t("sourceArray is required.");if(!i(n))throw new t("byteOffset is required.");return r>=a.SIXTY_FOUR_KILOBYTES?new Uint32Array(e,n,N):new Uint16Array(e,n,N)},fromTypedArray:function(e){if(e instanceof Uint8Array)return r.UNSIGNED_BYTE;if(e instanceof Uint16Array)return r.UNSIGNED_SHORT;if(e instanceof Uint32Array)return r.UNSIGNED_INT;throw new t("array must be a Uint8Array, Uint16Array, or Uint32Array.")}};Object.freeze(r);var u=r;export{u as a};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.143.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
import{a as l,b as d}from"./chunk-BPABSUDY.js";import{a as t}from"./chunk-IAE6APK2.js";import{a as s}from"./chunk-3E7FIXV7.js";import{a as f,b as r}from"./chunk-NZBME2JK.js";import{f as m}from"./chunk-6DLS2UKD.js";function o(e,n){if(r.typeOf.object("normal",e),!s.equalsEpsilon(t.magnitude(e),1,s.EPSILON6))throw new f("normal must be normalized.");r.typeOf.number("distance",n),this.normal=t.clone(e),this.distance=n}o.fromPointNormal=function(e,n,a){if(r.typeOf.object("point",e),r.typeOf.object("normal",n),!s.equalsEpsilon(t.magnitude(n),1,s.EPSILON6))throw new f("normal must be normalized.");let i=-t.dot(n,e);return m(a)?(t.clone(n,a.normal),a.distance=i,a):new o(n,i)};var b=new t;o.fromCartesian4=function(e,n){r.typeOf.object("coefficients",e);let a=t.fromCartesian4(e,b),i=e.w;if(!s.equalsEpsilon(t.magnitude(a),1,s.EPSILON6))throw new f("normal must be normalized.");return m(n)?(t.clone(a,n.normal),n.distance=i,n):new o(a,i)},o.getPointDistance=function(e,n){return r.typeOf.object("plane",e),r.typeOf.object("point",n),t.dot(e.normal,n)+e.distance};var y=new t;o.projectPointOntoPlane=function(e,n,a){r.typeOf.object("plane",e),r.typeOf.object("point",n),m(a)||(a=new t);let i=o.getPointDistance(e,n),s=t.multiplyByScalar(e.normal,i,y);return t.subtract(n,s,a)};var w=new d,j=new l,N=new t;o.transform=function(e,n,a){r.typeOf.object("plane",e),r.typeOf.object("transform",n);let i=e.normal,s=e.distance,c=d.inverseTranspose(n,w),m=l.fromElements(i.x,i.y,i.z,s,j);m=d.multiplyByVector(c,m,m);let f=t.fromCartesian4(m,N);return m=l.divideByScalar(m,t.magnitude(f),m),o.fromCartesian4(m,a)},o.clone=function(e,n){return r.typeOf.object("plane",e),m(n)?(t.clone(e.normal,n.normal),n.distance=e.distance,n):new o(e.normal,e.distance)},o.equals=function(e,n){return r.typeOf.object("left",e),r.typeOf.object("right",n),e.distance===n.distance&&t.equals(e.normal,n.normal)},o.ORIGIN_XY_PLANE=Object.freeze(new o(t.UNIT_Z,0)),o.ORIGIN_YZ_PLANE=Object.freeze(new o(t.UNIT_X,0)),o.ORIGIN_ZX_PLANE=Object.freeze(new o(t.UNIT_Y,0));var T=o;export{T as a};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.143.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
import{a as U}from"./chunk-LN2UT4R3.js";import{a as b}from"./chunk-QNPYEODC.js";import{a as E}from"./chunk-4WQ4VT5S.js";import{a as z}from"./chunk-6EINM7EY.js";import{c as B,d as D}from"./chunk-A4I25VN7.js";import{a as V,c as y}from"./chunk-D3TVNJ6W.js";import{b as G}from"./chunk-BPABSUDY.js";import{a as k}from"./chunk-ATKJRN2G.js";import{c as F}from"./chunk-2AIOP76V.js";import{a as M,b as I}from"./chunk-NZBME2JK.js";import{f as a}from"./chunk-6DLS2UKD.js";function v(e,t,r){e=e??0,t=t??0,r=r??0,this.value=new Float32Array([e,t,r])}Object.defineProperties(v.prototype,{componentDatatype:{get:function(){return k.FLOAT}},componentsPerAttribute:{get:function(){return 3}},normalize:{get:function(){return!1}}}),v.fromCartesian3=function(e){return I.defined("offset",e),new v(e.x,e.y,e.z)},v.toValue=function(e,t){return I.defined("offset",e),a(t)||(t=new Float32Array([e.x,e.y,e.z])),t[0]=e.x,t[1]=e.y,t[2]=e.z,t};var $=v;function J(e,t,r){let n,o=!r,i=e.length;if(!o&&i>1){let t=e[0].modelMatrix;for(n=1;n<i;++n)if(!G.equals(t,e[n].modelMatrix)){o=!0;break}}if(o)for(n=0;n<i;++n)a(e[n].geometry)&&b.transformToWorldCoordinates(e[n]);else G.multiplyTransformation(t,e[0].modelMatrix,t)}function L(e,t){let r=e.attributes,n=r.position,o=n.values.length/n.componentsPerAttribute;r.batchId=new D({componentDatatype:k.FLOAT,componentsPerAttribute:1,values:new Float32Array(o)});let i=r.batchId.values;for(let e=0;e<o;++e)i[e]=t}function K(e){let t=e.length;for(let r=0;r<t;++r){let t=e[r];a(t.geometry)?L(t.geometry,r):a(t.westHemisphereGeometry)&&a(t.eastHemisphereGeometry)&&(L(t.westHemisphereGeometry,r),L(t.eastHemisphereGeometry,r))}}function N(e){let t,r,n,o=e.instances,i=e.projection,s=e.elementIndexUintSupported,c=e.scene3DOnly,l=e.vertexCacheOptimize,u=e.compressVertices,p=e.modelMatrix,f=o.length;for(t=0;t<f;++t)if(a(o[t].geometry)){n=o[t].geometry.primitiveType;break}for(t=1;t<f;++t)if(a(o[t].geometry)&&o[t].geometry.primitiveType!==n)throw new M("All instance geometries must have the same primitiveType.");if(J(o,p,c),!c)for(t=0;t<f;++t)a(o[t].geometry)&&b.splitLongitude(o[t]);if(K(o),l)for(t=0;t<f;++t){let e=o[t];a(e.geometry)?(b.reorderForPostVertexCache(e.geometry),b.reorderForPreVertexCache(e.geometry)):a(e.westHemisphereGeometry)&&a(e.eastHemisphereGeometry)&&(b.reorderForPostVertexCache(e.westHemisphereGeometry),b.reorderForPreVertexCache(e.westHemisphereGeometry),b.reorderForPostVertexCache(e.eastHemisphereGeometry),b.reorderForPreVertexCache(e.eastHemisphereGeometry))}let m=b.combineInstances(o);for(f=m.length,t=0;t<f;++t){r=m[t];let e=r.attributes;if(c)for(let t in e)e.hasOwnProperty(t)&&e[t].componentDatatype===k.DOUBLE&&b.encodeAttribute(r,t,`${t}3DHigh`,`${t}3DLow`);else for(let t in e)if(e.hasOwnProperty(t)&&e[t].componentDatatype===k.DOUBLE){let e=`${t}3D`,n=`${t}2D`;b.projectTo2D(r,t,e,n,i),a(r.boundingSphere)&&"position"===t&&(r.boundingSphereCV=y.fromVertices(r.attributes.position2D.values)),b.encodeAttribute(r,e,`${e}High`,`${e}Low`),b.encodeAttribute(r,n,`${n}High`,`${n}Low`)}u&&b.compressVertices(r)}if(!s){let e=[];for(f=m.length,t=0;t<f;++t)r=m[t],e=e.concat(b.fitToUnsignedShortIndices(r));m=e}return m}function P(e,t,r,n){let o,i,s,c=n.length-1;if(c>=0){let e=n[c];o=e.offset+e.count,s=e.index,i=r[s].indices.length}else o=0,s=0,i=r[s].indices.length;let l=e.length;for(let c=0;c<l;++c){let l=e[c][t];if(!a(l))continue;let u=l.indices.length;o+u>i&&(o=0,i=r[++s].indices.length),n.push({index:s,offset:o,count:u}),o+=u}}function Q(e,t){let r=[];return P(e,"geometry",t,r),P(e,"westHemisphereGeometry",t,r),P(e,"eastHemisphereGeometry",t,r),r}var S={};function X(e,t){let r=e.attributes;for(let e in r)if(r.hasOwnProperty(e)){let n=r[e];a(n)&&a(n.values)&&t.push(n.values.buffer)}a(e.indices)&&t.push(e.indices.buffer)}function Y(e,t){let r=e.length;for(let n=0;n<r;++n)X(e[n],t)}function Z(e){let t=1,r=e.length;for(let n=0;n<r;n++){let r=e[n];if(++t,!a(r))continue;let o=r.attributes;t+=7+2*y.packedLength+(a(r.indices)?r.indices.length:0);for(let e in o)if(o.hasOwnProperty(e)&&a(o[e])){t+=5+o[e].values.length}}return t}function _(e,t){let r=e.length,n=new Float64Array(1+19*r),o=0;n[o++]=r;for(let t=0;t<r;t++){let r=e[t];if(G.pack(r.modelMatrix,n,o),o+=G.packedLength,a(r.attributes)&&a(r.attributes.offset)){let e=r.attributes.offset.value;n[o]=e[0],n[o+1]=e[1],n[o+2]=e[2]}o+=3}return t.push(n.buffer),n}function ee(e){let t=e,r=new Array(t[0]),n=0,o=1;for(;o<t.length;){let e,i=G.unpack(t,o);o+=G.packedLength,a(t[o])&&(e={offset:new $(t[o],t[o+1],t[o+2])}),o+=3,r[n++]={modelMatrix:i,attributes:e}}return r}function j(e){let t=e.length,r=1+(y.packedLength+1)*t,n=new Float32Array(r),o=0;n[o++]=t;for(let r=0;r<t;++r){let t=e[r];a(t)?(n[o++]=1,y.pack(e[r],n,o)):n[o++]=0,o+=y.packedLength}return n}function R(e){let t=new Array(e[0]),r=0,n=1;for(;n<e.length;)1===e[n++]&&(t[r]=y.unpack(e,n)),++r,n+=y.packedLength;return t}S.combineGeometry=function(e){let t,r,n,o,i=e.instances,s=i.length,c=!1;s>0&&(t=N(e),t.length>0&&(r=b.createAttributeLocations(t[0]),e.createPickOffsets&&(n=Q(i,t))),a(i[0].attributes)&&a(i[0].attributes.offset)&&(o=new Array(s),c=!0));let l=new Array(s),u=new Array(s);for(let e=0;e<s;++e){let t=i[e],r=t.geometry;a(r)&&(l[e]=r.boundingSphere,u[e]=r.boundingSphereCV,c&&(o[e]=t.geometry.offsetAttribute));let n=t.eastHemisphereGeometry,s=t.westHemisphereGeometry;a(n)&&a(s)&&(a(n.boundingSphere)&&a(s.boundingSphere)&&(l[e]=y.union(n.boundingSphere,s.boundingSphere)),a(n.boundingSphereCV)&&a(s.boundingSphereCV)&&(u[e]=y.union(n.boundingSphereCV,s.boundingSphereCV)))}return{geometries:t,modelMatrix:e.modelMatrix,attributeLocations:r,pickOffsets:n,offsetInstanceExtend:o,boundingSpheres:l,boundingSpheresCV:u}},S.packCreateGeometryResults=function(e,t){let r=new Float64Array(Z(e)),n=[],o={},i=e.length,s=0;r[s++]=i;for(let t=0;t<i;t++){let i=e[t],c=a(i);if(r[s++]=c?1:0,!c)continue;r[s++]=i.primitiveType,r[s++]=i.geometryType,r[s++]=i.offsetAttribute??-1;let l=a(i.boundingSphere)?1:0;r[s++]=l,l&&y.pack(i.boundingSphere,r,s),s+=y.packedLength;let u=a(i.boundingSphereCV)?1:0;r[s++]=u,u&&y.pack(i.boundingSphereCV,r,s),s+=y.packedLength;let p=i.attributes,f=[];for(let e in p)p.hasOwnProperty(e)&&a(p[e])&&(f.push(e),a(o[e])||(o[e]=n.length,n.push(e)));r[s++]=f.length;for(let e=0;e<f.length;e++){let t=f[e],n=p[t];r[s++]=o[t],r[s++]=n.componentDatatype,r[s++]=n.componentsPerAttribute,r[s++]=n.normalize?1:0,r[s++]=n.values.length,r.set(n.values,s),s+=n.values.length}let m=a(i.indices)?i.indices.length:0;r[s++]=m,m>0&&(r.set(i.indices,s),s+=m)}return t.push(r.buffer),{stringTable:n,packedData:r}},S.unpackCreateGeometryResults=function(e){let t,r=e.stringTable,n=e.packedData,o=new Array(n[0]),i=0,a=1;for(;a<n.length;){if(1!==n[a++]){o[i++]=void 0;continue}let e,s,c=n[a++],l=n[a++],u=n[a++];-1===u&&(u=void 0),1===n[a++]&&(e=y.unpack(n,a)),a+=y.packedLength,1===n[a++]&&(s=y.unpack(n,a)),a+=y.packedLength;let p,f,m,h,d=new z,g=n[a++];for(t=0;t<g;t++){let e=r[n[a++]],t=n[a++];m=n[a++];let o=0!==n[a++];p=n[a++],f=k.createTypedArray(t,p);for(let e=0;e<p;e++)f[e]=n[a++];d[e]=new D({componentDatatype:t,componentsPerAttribute:m,normalize:o,values:f})}if(p=n[a++],p>0){let e=f.length/m;for(h=E.createTypedArray(e,p),t=0;t<p;t++)h[t]=n[a++]}o[i++]=new B({primitiveType:c,geometryType:l,boundingSphere:e,boundingSphereCV:s,indices:h,attributes:d,offsetAttribute:u})}return o},S.packCombineGeometryParameters=function(e,t){let r=e.createGeometryResults,n=r.length;for(let e=0;e<n;e++)t.push(r[e].packedData.buffer);return{createGeometryResults:e.createGeometryResults,packedInstances:_(e.instances,t),ellipsoid:e.ellipsoid,isGeographic:e.projection instanceof V,elementIndexUintSupported:e.elementIndexUintSupported,scene3DOnly:e.scene3DOnly,vertexCacheOptimize:e.vertexCacheOptimize,compressVertices:e.compressVertices,modelMatrix:e.modelMatrix,createPickOffsets:e.createPickOffsets}},S.unpackCombineGeometryParameters=function(e){let t=ee(e.packedInstances),r=e.createGeometryResults,n=r.length,o=0;for(let e=0;e<n;e++){let n=S.unpackCreateGeometryResults(r[e]),i=n.length;for(let e=0;e<i;e++){let r=n[e];t[o].geometry=r,++o}}let i=F.clone(e.ellipsoid);return{instances:t,ellipsoid:i,projection:e.isGeographic?new V(i):new U(i),elementIndexUintSupported:e.elementIndexUintSupported,scene3DOnly:e.scene3DOnly,vertexCacheOptimize:e.vertexCacheOptimize,compressVertices:e.compressVertices,modelMatrix:G.clone(e.modelMatrix),createPickOffsets:e.createPickOffsets}},S.packCombineGeometryResults=function(e,t){a(e.geometries)&&Y(e.geometries,t);let r=j(e.boundingSpheres),n=j(e.boundingSpheresCV);return t.push(r.buffer,n.buffer),{geometries:e.geometries,attributeLocations:e.attributeLocations,modelMatrix:e.modelMatrix,pickOffsets:e.pickOffsets,offsetInstanceExtend:e.offsetInstanceExtend,boundingSpheres:r,boundingSpheresCV:n}},S.unpackCombineGeometryResults=function(e){return{geometries:e.geometries,attributeLocations:e.attributeLocations,modelMatrix:e.modelMatrix,pickOffsets:e.pickOffsets,offsetInstanceExtend:e.offsetInstanceExtend,boundingSpheres:R(e.boundingSpheres),boundingSpheresCV:R(e.boundingSpheresCV)}};var xe=S;export{xe as a};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.143.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
import{a as d}from"./chunk-3VUCSHGU.js";import{a as i}from"./chunk-IAE6APK2.js";import{b as a}from"./chunk-NZBME2JK.js";import{f as c}from"./chunk-6DLS2UKD.js";function t(m,n,t){this.minimum=i.clone(m??i.ZERO),this.maximum=i.clone(n??i.ZERO),t=c(t)?i.clone(t):i.midpoint(this.minimum,this.maximum,new i),this.center=t}t.fromCorners=function(m,n,e){return a.defined("minimum",m),a.defined("maximum",n),c(e)||(e=new t),e.minimum=i.clone(m,e.minimum),e.maximum=i.clone(n,e.maximum),e.center=i.midpoint(m,n,e.center),e},t.fromPoints=function(m,n){if(c(n)||(n=new t),!c(m)||0===m.length)return n.minimum=i.clone(i.ZERO,n.minimum),n.maximum=i.clone(i.ZERO,n.maximum),n.center=i.clone(i.ZERO,n.center),n;let e=m[0].x,u=m[0].y,a=m[0].z,r=m[0].x,o=m[0].y,x=m[0].z,s=m.length;for(let i=1;i<s;i++){let n=m[i],t=n.x,c=n.y,s=n.z;e=Math.min(t,e),r=Math.max(t,r),u=Math.min(c,u),o=Math.max(c,o),a=Math.min(s,a),x=Math.max(s,x)}let l=n.minimum;l.x=e,l.y=u,l.z=a;let d=n.maximum;return d.x=r,d.y=o,d.z=x,n.center=i.midpoint(l,d,n.center),n},t.clone=function(m,n){if(c(m))return c(n)?(n.minimum=i.clone(m.minimum,n.minimum),n.maximum=i.clone(m.maximum,n.maximum),n.center=i.clone(m.center,n.center),n):new t(m.minimum,m.maximum,m.center)},t.equals=function(m,n){return m===n||c(m)&&c(n)&&i.equals(m.center,n.center)&&i.equals(m.minimum,n.minimum)&&i.equals(m.maximum,n.maximum)};var y=new i;t.intersectPlane=function(m,n){a.defined("box",m),a.defined("plane",n),y=i.subtract(m.maximum,m.minimum,y);let t=i.multiplyByScalar(y,.5,y),e=n.normal,u=t.x*Math.abs(e.x)+t.y*Math.abs(e.y)+t.z*Math.abs(e.z),r=i.dot(m.center,e)+n.distance;return r-u>0?d.INSIDE:r+u<0?d.OUTSIDE:d.INTERSECTING},t.intersectAxisAlignedBoundingBox=function(i,m){return a.defined("box",i),a.defined("other",m),i.minimum.x<=m.maximum.x&&i.maximum.x>=m.minimum.x&&i.minimum.y<=m.maximum.y&&i.maximum.y>=m.minimum.y&&i.minimum.z<=m.maximum.z&&i.maximum.z>=m.minimum.z},t.prototype.clone=function(i){return t.clone(this,i)},t.prototype.intersectPlane=function(i){return t.intersectPlane(this,i)},t.prototype.intersectAxisAlignedBoundingBox=function(i){return t.intersectAxisAlignedBoundingBox(this,i)},t.prototype.equals=function(i){return t.equals(this,i)};var O=t;export{O as a};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.143.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
import{a as wt}from"./chunk-ML6MR2RA.js";import{a as C}from"./chunk-AKELQO2L.js";import{a as kt}from"./chunk-4WQ4VT5S.js";import{a as Ct}from"./chunk-6EINM7EY.js";import{b as dt,c as _t,d as N}from"./chunk-A4I25VN7.js";import{c as ht}from"./chunk-D3TVNJ6W.js";import{a as M}from"./chunk-ATKJRN2G.js";import{b as lt,c as it}from"./chunk-2AIOP76V.js";import{a as s,c as pt}from"./chunk-IAE6APK2.js";import{a as E}from"./chunk-3E7FIXV7.js";import{a as g}from"./chunk-NZBME2JK.js";import{f as v}from"./chunk-6DLS2UKD.js";var yt=new s,vt=new s,Et=new s,Mt=new s,Nt=new s,Rt=new s(1,1,1),Pt=Math.cos,At=Math.sin;function x(t){let e=(t=t??pt.EMPTY_OBJECT).radii??Rt,i=t.innerRadii??e,n=t.minimumClock??0,a=t.maximumClock??E.TWO_PI,o=t.minimumCone??0,r=t.maximumCone??E.PI,m=Math.round(t.stackPartitions??64),c=Math.round(t.slicePartitions??64),u=t.vertexFormat??C.DEFAULT;if(c<3)throw new g("options.slicePartitions cannot be less than three.");if(m<3)throw new g("options.stackPartitions cannot be less than three.");this._radii=s.clone(e),this._innerRadii=s.clone(i),this._minimumClock=n,this._maximumClock=a,this._minimumCone=o,this._maximumCone=r,this._stackPartitions=m,this._slicePartitions=c,this._vertexFormat=C.clone(u),this._offsetAttribute=t.offsetAttribute,this._workerName="createEllipsoidGeometry"}x.packedLength=2*s.packedLength+C.packedLength+7,x.pack=function(t,e,i){if(!v(t))throw new g("value is required");if(!v(e))throw new g("array is required");return i=i??0,s.pack(t._radii,e,i),i+=s.packedLength,s.pack(t._innerRadii,e,i),i+=s.packedLength,C.pack(t._vertexFormat,e,i),i+=C.packedLength,e[i++]=t._minimumClock,e[i++]=t._maximumClock,e[i++]=t._minimumCone,e[i++]=t._maximumCone,e[i++]=t._stackPartitions,e[i++]=t._slicePartitions,e[i]=t._offsetAttribute??-1,e};var ot,bt=new s,xt=new s,Ot=new C,L={radii:bt,innerRadii:xt,vertexFormat:Ot,minimumClock:void 0,maximumClock:void 0,minimumCone:void 0,maximumCone:void 0,stackPartitions:void 0,slicePartitions:void 0,offsetAttribute:void 0};x.unpack=function(t,e,i){if(!v(t))throw new g("array is required");e=e??0;let n=s.unpack(t,e,bt);e+=s.packedLength;let a=s.unpack(t,e,xt);e+=s.packedLength;let o=C.unpack(t,e,Ot);e+=C.packedLength;let r=t[e++],m=t[e++],c=t[e++],u=t[e++],l=t[e++],f=t[e++],p=t[e];return v(i)?(i._radii=s.clone(n,i._radii),i._innerRadii=s.clone(a,i._innerRadii),i._vertexFormat=C.clone(o,i._vertexFormat),i._minimumClock=r,i._maximumClock=m,i._minimumCone=c,i._maximumCone=u,i._stackPartitions=l,i._slicePartitions=f,i._offsetAttribute=-1===p?void 0:p,i):(L.minimumClock=r,L.maximumClock=m,L.minimumCone=c,L.maximumCone=u,L.stackPartitions=l,L.slicePartitions=f,L.offsetAttribute=-1===p?void 0:p,new x(L))},x.createGeometry=function(t){let e=t._radii;if(e.x<=0||e.y<=0||e.z<=0)return;let i=t._innerRadii;if(i.x<=0||i.y<=0||i.z<=0)return;let n=t._minimumClock,a=t._maximumClock,o=t._minimumCone,r=t._maximumCone,m=t._vertexFormat,c=t._slicePartitions+1,u=t._stackPartitions+1;c=Math.round(c*Math.abs(a-n)/E.TWO_PI),u=Math.round(u*Math.abs(r-o)/E.PI),c<2&&(c=2),u<2&&(u=2);let l,f,p=0,h=[o],_=[n];for(l=0;l<u;l++)h.push(o+l*(r-o)/(u-1));for(h.push(r),f=0;f<c;f++)_.push(n+f*(a-n)/(c-1));_.push(a);let d=h.length,k=_.length,x=0,A=1,w=i.x!==e.x||i.y!==e.y||i.z!==e.z,C=!1,y=!1,P=!1;w&&(A=2,o>0&&(C=!0,x+=c-1),r<Math.PI&&(y=!0,x+=c-1),(a-n)%E.TWO_PI?(P=!0,x+=2*(u-1)+1):x+=1);let g=k*d*A,b=new Float64Array(3*g),L=new Array(g).fill(!1),T=new Array(g).fill(!1),O=c*u*A,F=6*(O+x+1-(c+u)*A),I=kt.createTypedArray(O,F),R=m.normal?new Float32Array(3*g):void 0,j=m.tangent?new Float32Array(3*g):void 0,z=m.bitangent?new Float32Array(3*g):void 0,D=m.st?new Float32Array(2*g):void 0,U=new Array(d),K=new Array(d);for(l=0;l<d;l++)U[l]=At(h[l]),K[l]=Pt(h[l]);let S=new Array(k),G=new Array(k);for(f=0;f<k;f++)G[f]=Pt(_[f]),S[f]=At(_[f]);for(l=0;l<d;l++)for(f=0;f<k;f++)b[p++]=e.x*U[l]*G[f],b[p++]=e.y*U[l]*S[f],b[p++]=e.z*K[l];let W,V,B,J,Y=g/2;if(w)for(l=0;l<d;l++)for(f=0;f<k;f++)b[p++]=i.x*U[l]*G[f],b[p++]=i.y*U[l]*S[f],b[p++]=i.z*K[l],L[Y]=!0,l>0&&l!==d-1&&0!==f&&f!==k-1&&(T[Y]=!0),Y++;for(p=0,l=1;l<d-2;l++)for(W=l*k,V=(l+1)*k,f=1;f<k-2;f++)I[p++]=V+f,I[p++]=V+f+1,I[p++]=W+f+1,I[p++]=V+f,I[p++]=W+f+1,I[p++]=W+f;if(w){let t=d*k;for(l=1;l<d-2;l++)for(W=t+l*k,V=t+(l+1)*k,f=1;f<k-2;f++)I[p++]=V+f,I[p++]=W+f,I[p++]=W+f+1,I[p++]=V+f,I[p++]=W+f+1,I[p++]=V+f+1}if(w){if(C)for(J=d*k,l=1;l<k-2;l++)I[p++]=l,I[p++]=l+1,I[p++]=J+l+1,I[p++]=l,I[p++]=J+l+1,I[p++]=J+l;if(y)for(B=d*k-k,J=d*k*A-k,l=1;l<k-2;l++)I[p++]=B+l+1,I[p++]=B+l,I[p++]=J+l,I[p++]=B+l+1,I[p++]=J+l,I[p++]=J+l+1}if(P){for(l=1;l<d-2;l++)J=k*d+k*l,B=k*l,I[p++]=J,I[p++]=B+k,I[p++]=B,I[p++]=J,I[p++]=J+k,I[p++]=B+k;for(l=1;l<d-2;l++)J=k*d+k*(l+1)-1,B=k*(l+1)-1,I[p++]=B+k,I[p++]=J,I[p++]=B,I[p++]=B+k,I[p++]=J+k,I[p++]=J}let q=new Ct;m.position&&(q.position=new N({componentDatatype:M.DOUBLE,componentsPerAttribute:3,values:b}));let Q,X=0,Z=0,H=0,$=0,tt=g/2,et=it.fromCartesian3(e),nt=it.fromCartesian3(i);if(m.st||m.normal||m.tangent||m.bitangent){for(l=0;l<g;l++){Q=L[l]?nt:et;let t=s.fromArray(b,3*l,yt),e=Q.geodeticSurfaceNormal(t,vt);if(T[l]&&s.negate(e,e),m.st){let t=lt.negate(e,Nt);D[X++]=Math.atan2(t.y,t.x)/E.TWO_PI+.5,D[X++]=Math.asin(e.z)/Math.PI+.5}if(m.normal&&(R[Z++]=e.x,R[Z++]=e.y,R[Z++]=e.z),m.tangent||m.bitangent){let t,i=Et,n=0;if(L[l]&&(n=tt),t=!C&&l>=n&&l<n+2*k?s.UNIT_X:s.UNIT_Z,s.cross(t,e,i),s.normalize(i,i),m.tangent&&(j[H++]=i.x,j[H++]=i.y,j[H++]=i.z),m.bitangent){let t=s.cross(e,i,Mt);s.normalize(t,t),z[$++]=t.x,z[$++]=t.y,z[$++]=t.z}}}m.st&&(q.st=new N({componentDatatype:M.FLOAT,componentsPerAttribute:2,values:D})),m.normal&&(q.normal=new N({componentDatatype:M.FLOAT,componentsPerAttribute:3,values:R})),m.tangent&&(q.tangent=new N({componentDatatype:M.FLOAT,componentsPerAttribute:3,values:j})),m.bitangent&&(q.bitangent=new N({componentDatatype:M.FLOAT,componentsPerAttribute:3,values:z}))}if(v(t._offsetAttribute)){let e=b.length,i=t._offsetAttribute===wt.NONE?0:1,n=new Uint8Array(e/3).fill(i);q.applyOffset=new N({componentDatatype:M.UNSIGNED_BYTE,componentsPerAttribute:1,values:n})}return new _t({attributes:q,indices:I,primitiveType:dt.TRIANGLES,boundingSphere:ht.fromEllipsoid(et),offsetAttribute:t._offsetAttribute})},x.getUnitEllipsoid=function(){return v(ot)||(ot=x.createGeometry(new x({radii:new s(1,1,1),vertexFormat:C.POSITION_ONLY}))),ot};var Kt=x;export{Kt as a};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.143.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
import{a as G}from"./chunk-WGIRJIIK.js";import{a as z}from"./chunk-37ETYCYM.js";import{b as B}from"./chunk-SRA5MBUT.js";import{a as C}from"./chunk-5AAMOBJK.js";import{b as L}from"./chunk-BPABSUDY.js";import{a as D,c as I}from"./chunk-2AIOP76V.js";import{a}from"./chunk-IAE6APK2.js";import{a as S}from"./chunk-3E7FIXV7.js";import{a as x}from"./chunk-NZBME2JK.js";import{f as T}from"./chunk-6DLS2UKD.js";var p={numberOfPoints:function(e,t,r){let n=a.distance(e,t);return Math.ceil(n/r)},numberOfPointsRhumbLine:function(e,t,a){let r=Math.pow(e.longitude-t.longitude,2)+Math.pow(e.latitude-t.latitude,2);return Math.max(1,Math.ceil(Math.sqrt(r/(a*a))))}},Z=new D;p.extractHeights=function(e,t){let a=e.length,r=new Array(a);for(let n=0;n<a;n++){let a=e[n];r[n]=t.cartesianToCartographic(a,Z).height}return r};var Y=new L,V=new a,_=new a,F=new C(a.UNIT_X,0),v=new a,j=new C(a.UNIT_X,0),J=new a,K=new a,O=[];function U(e,t,a){let r,n=O;if(n.length=e,t===a){for(r=0;r<e;r++)n[r]=t;return n}let i=(a-t)/e;for(r=0;r<e;r++){let e=t+r*i;n[r]=e}return n}var N=new D,E=new D,b=new a,k=new a,Q=new a,M=new G,R=new z;function W(e,t,r,n,i,o,l,c){let s=n.scaleToGeodeticSurface(e,k),u=n.scaleToGeodeticSurface(t,Q),h=p.numberOfPoints(e,t,r),f=n.cartesianToCartographic(s,N),g=n.cartesianToCartographic(u,E),m=U(h,i,o);M.setEndPoints(f,g);let T=M.surfaceDistance/h,d=c;f.height=i;let w=n.cartographicToCartesian(f,b);a.pack(w,l,d),d+=3;for(let e=1;e<h;e++){let t=M.interpolateUsingSurfaceDistance(e*T,E);t.height=m[e],w=n.cartographicToCartesian(t,b),a.pack(w,l,d),d+=3}return d}function $(e,t,r,n,i,o,l,c){let s=n.cartesianToCartographic(e,N),u=n.cartesianToCartographic(t,E),h=p.numberOfPointsRhumbLine(s,u,r);s.height=0,u.height=0;let f=U(h,i,o);R.ellipsoid.equals(n)||(R=new z(void 0,void 0,n)),R.setEndPoints(s,u);let g=R.surfaceDistance/h,m=c;s.height=i;let T=n.cartographicToCartesian(s,b);a.pack(T,l,m),m+=3;for(let e=1;e<h;e++){let t=R.interpolateUsingSurfaceDistance(e*g,E);t.height=f[e],T=n.cartographicToCartesian(t,b),a.pack(T,l,m),m+=3}return m}p.wrapLongitude=function(e,t){let r=[],n=[];if(T(e)&&e.length>0){t=t??L.IDENTITY;let i=L.inverseTransformation(t,Y),o=L.multiplyByPoint(i,a.ZERO,V),l=a.normalize(L.multiplyByPointAsVector(i,a.UNIT_Y,_),_),c=C.fromPointNormal(o,l,F),s=a.normalize(L.multiplyByPointAsVector(i,a.UNIT_X,v),v),u=C.fromPointNormal(o,s,j),h=1;r.push(a.clone(e[0]));let p=r[0],f=e.length;for(let t=1;t<f;++t){let i=e[t];if(C.getPointDistance(u,p)<0||C.getPointDistance(u,i)<0){let e=B.lineSegmentPlane(p,i,c,J);if(T(e)){let t=a.multiplyByScalar(l,5e-9,K);C.getPointDistance(c,p)<0&&a.negate(t,t),r.push(a.add(e,t,new a)),n.push(h+1),a.negate(t,t),r.push(a.add(e,t,new a)),h=1}}r.push(a.clone(e[t])),h++,p=i}n.push(h)}return{positions:r,lengths:n}},p.generateArc=function(e){T(e)||(e={});let t=e.positions;if(!T(t))throw new x("options.positions is required.");let r=t.length,n=e.ellipsoid??I.default,i=e.height??0,o=Array.isArray(i);if(r<1)return[];if(1===r){let e=n.scaleToGeodeticSurface(t[0],k);if(i=o?i[0]:i,0!==i){let t=n.geodeticSurfaceNormal(e,b);a.multiplyByScalar(t,i,t),a.add(e,t,e)}return[e.x,e.y,e.z]}let l=e.minDistance;if(!T(l)){let t=e.granularity??S.RADIANS_PER_DEGREE;l=S.chordLength(t,n.maximumRadius)}let c,s=0;for(c=0;c<r-1;c++)s+=p.numberOfPoints(t[c],t[c+1],l);let u=3*(s+1),h=new Array(u),f=0;for(c=0;c<r-1;c++){f=W(t[c],t[c+1],l,n,o?i[c]:i,o?i[c+1]:i,h,f)}O.length=0;let g=t[r-1],m=n.cartesianToCartographic(g,N);m.height=o?i[r-1]:i;let d=n.cartographicToCartesian(m,b);return a.pack(d,h,u-3),h};var H=new D,tt=new D;p.generateRhumbArc=function(e){T(e)||(e={});let t=e.positions;if(!T(t))throw new x("options.positions is required.");let r=t.length,n=e.ellipsoid??I.default,i=e.height??0,o=Array.isArray(i);if(r<1)return[];if(1===r){let e=n.scaleToGeodeticSurface(t[0],k);if(i=o?i[0]:i,0!==i){let t=n.geodeticSurfaceNormal(e,b);a.multiplyByScalar(t,i,t),a.add(e,t,e)}return[e.x,e.y,e.z]}let l,c,s=e.granularity??S.RADIANS_PER_DEGREE,u=0,h=n.cartesianToCartographic(t[0],H);for(l=0;l<r-1;l++)c=n.cartesianToCartographic(t[l+1],tt),u+=p.numberOfPointsRhumbLine(h,c,s),h=D.clone(c,H);let f=3*(u+1),g=new Array(f),m=0;for(l=0;l<r-1;l++){m=$(t[l],t[l+1],s,n,o?i[l]:i,o?i[l+1]:i,g,m)}O.length=0;let d=t[r-1],w=n.cartesianToCartographic(d,N);w.height=o?i[r-1]:i;let A=n.cartographicToCartesian(w,b);return a.pack(A,g,f-3),g},p.generateCartesianArc=function(e){let t=p.generateArc(e),r=t.length/3,n=new Array(r);for(let e=0;e<r;e++)n[e]=a.unpack(t,3*e);return n},p.generateCartesianRhumbArc=function(e){let t=p.generateRhumbArc(e),r=t.length/3,n=new Array(r);for(let e=0;e<r;e++)n[e]=a.unpack(t,3*e);return n};var gt=p;export{gt as a};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.143.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
var i=Object.create,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,o=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,p=(e,r,o)=>r in e?t(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,b=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):e)((function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')})),g=e=>r=>{var t=e[r];if(t)return t();throw new Error("Module not found in bundle: "+r)},h=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(e){throw r=0,e}},x=(e,o,u,n)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let a of l(o))!c.call(e,a)&&a!==u&&t(e,a,{get:()=>o[a],enumerable:!(n=r(o,a))||n.enumerable});return e},j=(e,r,u)=>(u=null!=e?i(o(e)):{},x(!r&&e&&e.__esModule?u:t(u,"default",{value:e,enumerable:!0}),e)),k=(e,r,t)=>p(e,"symbol"!=typeof r?r+"":r,t);function a(e){return null!=e}var q=a;export{b as a,g as b,h as c,j as d,k as e,q as f};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.143.0
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
* Portions licensed separately.
|
|
23
23
|
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
import{c as e}from"./chunk-IAE6APK2.js";function r(t){t=t??e.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}var n=r;export{n as a};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.143.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
import{a as c}from"./chunk-IAE6APK2.js";import{b as t}from"./chunk-NZBME2JK.js";import{f as g}from"./chunk-6DLS2UKD.js";function f(){this.high=c.clone(c.ZERO),this.low=c.clone(c.ZERO)}f.encode=function(e,o){let n;return t.typeOf.number("value",e),g(o)||(o={high:0,low:0}),e>=0?(n=65536*Math.floor(e/65536),o.high=n,o.low=e-n):(n=65536*Math.floor(-e/65536),o.high=-n,o.low=e+n),o};var e={high:0,low:0};f.fromCartesian=function(o,n){t.typeOf.object("cartesian",o),g(n)||(n=new f);let r=n.high,h=n.low;return f.encode(o.x,e),r.x=e.high,h.x=e.low,f.encode(o.y,e),r.y=e.high,h.y=e.low,f.encode(o.z,e),r.z=e.high,h.z=e.low,n};var m=new f;f.writeElements=function(e,o,n){t.defined("cartesianArray",o),t.typeOf.number("index",n),t.typeOf.number.greaterThanOrEquals("index",n,0),f.fromCartesian(e,m);let r=m.high,h=m.low;o[n]=r.x,o[n+1]=r.y,o[n+2]=r.z,o[n+3]=h.x,o[n+4]=h.y,o[n+5]=h.z};var O=f;export{O as a};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.143.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
var r,u=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&u.decode();var a=null;function h(){return(null===a||0===a.byteLength)&&(a=new Uint8Array(r.memory.buffer)),a}function b(e,t){return e>>>=0,u.decode(h().subarray(e,e+t))}var o=null;function g(){return(null===o||0===o.byteLength)&&(o=new Uint32Array(r.memory.buffer)),o}function m(e,t){return e>>>=0,g().subarray(e/4,e/4+t)}var y=0;function x(e,t){let n=t(4*e.length,4)>>>0;return g().set(e,n/4),y=e.length,n}function c(e){let t=r.__wbindgen_export_0.get(e);return r.__externref_table_dealloc(e),t}function U(e,t,n,a,i){let o=r.generate_splat_texture(e,t,n,a,i);if(o[2])throw c(o[1]);return f.__wrap(o[0])}function M(e,t,n){let a=r.radix_sort_gaussians_indexes(e,t,n);if(a[2])throw c(a[1]);return c(a[0])}var w=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>r.__wbg_texturedata_free(e>>>0,1))),f=class e{static __wrap(t){t>>>=0;let n=Object.create(e.prototype);return n.__wbg_ptr=t,w.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,w.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_texturedata_free(e,0)}get data(){let e=r.texturedata_data(this.__wbg_ptr);var t=m(e[0],e[1]).slice();return r.__wbindgen_free(e[0],4*e[1],4),t}get width(){return r.texturedata_width(this.__wbg_ptr)>>>0}get height(){return r.texturedata_height(this.__wbg_ptr)>>>0}static new(t,n,a){let i=x(t,r.__wbindgen_malloc),o=y,_=r.texturedata_new(i,o,n,a);return e.__wrap(_)}};async function A(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if("application/wasm"==e.headers.get("Content-Type"))throw t;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t)}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function d(){let e={wbg:{}};return e.wbg.__wbg_buffer_609cc3eee51ed158=function(e){return e.buffer},e.wbg.__wbg_length_3b4f022188ae8db6=function(e){return e.length},e.wbg.__wbg_length_a446193dc22c12f8=function(e){return e.length},e.wbg.__wbg_new_780abee5c1739fd7=function(e){return new Float32Array(e)},e.wbg.__wbg_new_a12002a7f91c75be=function(e){return new Uint8Array(e)},e.wbg.__wbg_new_e3b321dcfef89fc7=function(e){return new Uint32Array(e)},e.wbg.__wbg_newwithbyteoffsetandlength_f1dead44d1fc7212=function(e,t,n){return new Uint32Array(e,t>>>0,n>>>0)},e.wbg.__wbg_set_10bad9bee0e9c58b=function(e,t,n){e.set(t,n>>>0)},e.wbg.__wbg_set_65595bdd868b3009=function(e,t,n){e.set(t,n>>>0)},e.wbg.__wbindgen_init_externref_table=function(){let e=r.__wbindgen_export_0,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)},e.wbg.__wbindgen_memory=function(){return r.memory},e.wbg.__wbindgen_string_new=function(e,t){return b(e,t)},e.wbg.__wbindgen_throw=function(e,t){throw new Error(b(e,t))},e}function l(e,t){return r=e.exports,W.__wbindgen_wasm_module=t,o=null,a=null,r.__wbindgen_start(),r}function O(e){if(void 0!==r)return r;typeof e<"u"&&(Object.getPrototypeOf(e)===Object.prototype?({module:e}=e):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let t=d();return e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e)),l(new WebAssembly.Instance(e,t),e)}async function W(e){if(void 0!==r)return r;typeof e<"u"&&(Object.getPrototypeOf(e)===Object.prototype?({module_or_path:e}=e):console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof e>"u"&&(e=new URL("wasm_splats_bg.wasm",import.meta.url));let t=d();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));let{instance:n,module:a}=await A(await e,t);return l(n,a)}export{U as a,M as b,O as c};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.143.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
import{a as C}from"./chunk-6AEO73KW.js";import{a as P}from"./chunk-G2QPRBZU.js";import{a as L}from"./chunk-2AIOP76V.js";import{a as O}from"./chunk-IAE6APK2.js";import{a as y}from"./chunk-3E7FIXV7.js";import{f as S}from"./chunk-6DLS2UKD.js";var T={};function b(t,e){return y.equalsEpsilon(t.latitude,e.latitude,y.EPSILON10)&&y.equalsEpsilon(t.longitude,e.longitude,y.EPSILON10)}var q=new L,v=new L;function w(t,e,i,o){let r=(e=P(e,O.equalsEpsilon)).length;if(r<2)return;let n=S(o),a=S(i),s=new Array(r),h=new Array(r),l=new Array(r),g=e[0];s[0]=g;let u=t.cartesianToCartographic(g,q);a&&(u.height=i[0]),h[0]=u.height,l[0]=n?o[0]:0;let p=h[0]===l[0],m=1;for(let g=1;g<r;++g){let r=e[g],c=t.cartesianToCartographic(r,v);a&&(c.height=i[g]),p=p&&0===c.height,b(u,c)?u.height<c.height&&(h[m-1]=c.height):(s[m]=r,h[m]=c.height,l[m]=n?o[g]:0,p=p&&h[m]===l[m],L.clone(c,u),++m)}return p||m<2?void 0:(s.length=m,h.length=m,l.length=m,{positions:s,topHeights:h,bottomHeights:l})}var D=new Array(2),F=new Array(2),B={positions:void 0,height:void 0,granularity:void 0,ellipsoid:void 0};T.computePositions=function(t,e,i,o,r,n){let a=w(t,e,i,o);if(!S(a))return;e=a.positions,i=a.topHeights,o=a.bottomHeights;let s,h,l=e.length,g=l-2,u=y.chordLength(r,t.maximumRadius),p=B;if(p.minDistance=u,p.ellipsoid=t,n){let t,r=0;for(t=0;t<l-1;t++)r+=C.numberOfPoints(e[t],e[t+1],u)+1;s=new Float64Array(3*r),h=new Float64Array(3*r);let n=D,a=F;p.positions=n,p.height=a;let g=0;for(t=0;t<l-1;t++){n[0]=e[t],n[1]=e[t+1],a[0]=i[t],a[1]=i[t+1];let r=C.generateArc(p);s.set(r,g),a[0]=o[t],a[1]=o[t+1],h.set(C.generateArc(p),g),g+=r.length}}else p.positions=e,p.height=i,s=new Float64Array(C.generateArc(p)),p.height=o,h=new Float64Array(C.generateArc(p));return{bottomPositions:h,topPositions:s,numCorners:g}};var j=T;export{j as a};
|