@anov/gis 1.7.6 → 1.8.4
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 +82 -0
- package/README.md +338 -127
- 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 +13 -13
- 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 as ct}from"./chunk-37ETYCYM.js";import{b as xt,c as ht,d as et}from"./chunk-A4I25VN7.js";import{a as tt}from"./chunk-ATKJRN2G.js";import{a as ft}from"./chunk-RDX4QSUS.js";import{a as Y,b as g,c as gt}from"./chunk-2AIOP76V.js";import{a as h}from"./chunk-IAE6APK2.js";import{a as X}from"./chunk-3E7FIXV7.js";import{b as A}from"./chunk-NZBME2JK.js";import{f as F}from"./chunk-6DLS2UKD.js";var nt={CLOCKWISE:ft.CW,COUNTER_CLOCKWISE:ft.CCW,validate:function(t){return t===nt.CLOCKWISE||t===nt.COUNTER_CLOCKWISE}};Object.freeze(nt);var at=nt;function mt(t,e,n=2){let r,i,a,u=e&&e.length,l=u?e[0]*n:t.length,x=wt(t,0,l,n,!0),o=[];if(!x||x.next===x.prev)return o;if(u&&(x=It(t,e,x,n)),t.length>80*n){r=t[0],i=t[1];let e=r,u=i;for(let a=n;a<l;a+=n){let n=t[a],l=t[a+1];n<r&&(r=n),l<i&&(i=l),n>e&&(e=n),l>u&&(u=l)}a=Math.max(e-r,u-i),a=0!==a?32767/a:0}return it(x,o,n,r,i,a,0),o}function wt(t,e,n,r,i){let a;if(i===Vt(t,e,n,r)>0)for(let i=e;i<n;i+=r)a=vt(i/r|0,t[i],t[i+1],a);else for(let i=n-r;i>=e;i-=r)a=vt(i/r|0,t[i],t[i+1],a);return a&&K(a,a.next)&&(st(a),a=a.next),a}function N(t,e){if(!t)return t;e||(e=t);let n,r=t;do{if(n=!1,r.steiner||!K(r,r.next)&&0!==w(r.prev,r,r.next))r=r.next;else{if(st(r),r=e=r.prev,r===r.next)break;n=!0}}while(n||r!==e);return e}function it(t,e,n,r,i,a,u){if(!t)return;!u&&a&&Nt(t,r,i,a);let l=t;for(;t.prev!==t.next;){let x=t.prev,o=t.next;if(a?Rt(t,r,i,a):Pt(t))e.push(x.i,t.i,o.i),st(t),t=o.next,l=o.next;else if((t=o)===l){u?1===u?it(t=zt(N(t),e),e,n,r,i,a,2):2===u&&Bt(t,e,n,r,i,a):it(N(t),e,n,r,i,a,1);break}}}function Pt(t){let e=t.prev,n=t,r=t.next;if(w(e,n,r)>=0)return!1;let i=e.x,a=n.x,u=r.x,l=e.y,x=n.y,o=r.y,h=Math.min(i,a,u),p=Math.min(l,x,o),y=Math.max(i,a,u),s=Math.max(l,x,o),f=r.next;for(;f!==e;){if(f.x>=h&&f.x<=y&&f.y>=p&&f.y<=s&&rt(i,l,a,x,u,o,f.x,f.y)&&w(f.prev,f,f.next)>=0)return!1;f=f.next}return!0}function Rt(t,e,n,r){let i=t.prev,a=t,u=t.next;if(w(i,a,u)>=0)return!1;let l=i.x,x=a.x,o=u.x,h=i.y,p=a.y,y=u.y,s=Math.min(l,x,o),f=Math.min(h,p,y),c=Math.max(l,x,o),m=Math.max(h,p,y),d=pt(s,f,e,n,r),g=pt(c,m,e,n,r),v=t.prevZ,A=t.nextZ;for(;v&&v.z>=d&&A&&A.z<=g;){if(v.x>=s&&v.x<=c&&v.y>=f&&v.y<=m&&v!==i&&v!==u&&rt(l,h,x,p,o,y,v.x,v.y)&&w(v.prev,v,v.next)>=0||(v=v.prevZ,A.x>=s&&A.x<=c&&A.y>=f&&A.y<=m&&A!==i&&A!==u&&rt(l,h,x,p,o,y,A.x,A.y)&&w(A.prev,A,A.next)>=0))return!1;A=A.nextZ}for(;v&&v.z>=d;){if(v.x>=s&&v.x<=c&&v.y>=f&&v.y<=m&&v!==i&&v!==u&&rt(l,h,x,p,o,y,v.x,v.y)&&w(v.prev,v,v.next)>=0)return!1;v=v.prevZ}for(;A&&A.z<=g;){if(A.x>=s&&A.x<=c&&A.y>=f&&A.y<=m&&A!==i&&A!==u&&rt(l,h,x,p,o,y,A.x,A.y)&&w(A.prev,A,A.next)>=0)return!1;A=A.nextZ}return!0}function zt(t,e){let n=t;do{let r=n.prev,i=n.next.next;!K(r,i)&&bt(r,n,n.next,i)&&ot(r,i)&&ot(i,r)&&(e.push(r.i,n.i,i.i),st(n),st(n.next),n=t=i),n=n.next}while(n!==t);return N(n)}function Bt(t,e,n,r,i,a){let u=t;do{let t=u.next.next;for(;t!==u.prev;){if(u.i!==t.i&&_t(u,t)){let l=Mt(u,t);return u=N(u,u.next),l=N(l,l.next),it(u,e,n,r,i,a,0),void it(l,e,n,r,i,a,0)}t=t.next}u=u.next}while(u!==t)}function It(t,e,n,r){let i=[];for(let n=0,a=e.length;n<a;n++){let u=wt(t,e[n]*r,n<a-1?e[n+1]*r:t.length,r,!1);u===u.next&&(u.steiner=!0),i.push(Ut(u))}i.sort(Wt);for(let t=0;t<i.length;t++)n=$t(i[t],n);return n}function Wt(t,e){let n=t.x-e.x;if(0===n&&(n=t.y-e.y,0===n)){n=(t.next.y-t.y)/(t.next.x-t.x)-(e.next.y-e.y)/(e.next.x-e.x)}return n}function $t(t,e){let n=Gt(t,e);if(!n)return e;let r=Mt(n,t);return N(r,r.next),N(n,n.next)}function Gt(t,e){let n,r=e,i=t.x,a=t.y,u=-1/0;if(K(t,r))return r;do{if(K(t,r.next))return r.next;if(a<=r.y&&a>=r.next.y&&r.next.y!==r.y){let t=r.x+(a-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(t<=i&&t>u&&(u=t,n=r.x<r.next.x?r:r.next,t===i))return n}r=r.next}while(r!==e);if(!n)return null;let l=n,x=n.x,o=n.y,h=1/0;r=n;do{if(i>=r.x&&r.x>=x&&i!==r.x&&St(a<o?i:u,a,x,o,a<o?u:i,a,r.x,r.y)){let e=Math.abs(a-r.y)/(i-r.x);ot(r,t)&&(e<h||e===h&&(r.x>n.x||r.x===n.x&&Ht(n,r)))&&(n=r,h=e)}r=r.next}while(r!==l);return n}function Ht(t,e){return w(t.prev,t,e.prev)<0&&w(e.next,t,t.next)<0}function Nt(t,e,n,r){let i=t;do{0===i.z&&(i.z=pt(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,kt(i)}function kt(t){let e,n=1;do{let r,i=t;t=null;let a=null;for(e=0;i;){e++;let u=i,l=0;for(let t=0;t<n&&(l++,u=u.nextZ,u);t++);let x=n;for(;l>0||x>0&&u;)0!==l&&(0===x||!u||i.z<=u.z)?(r=i,i=i.nextZ,l--):(r=u,u=u.nextZ,x--),a?a.nextZ=r:t=r,r.prevZ=a,a=r;i=u}a.nextZ=null,n*=2}while(e>1);return t}function pt(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-r)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function Ut(t){let e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function St(t,e,n,r,i,a,u,l){return(i-u)*(e-l)>=(t-u)*(a-l)&&(t-u)*(r-l)>=(n-u)*(e-l)&&(n-u)*(a-l)>=(i-u)*(r-l)}function rt(t,e,n,r,i,a,u,l){return!(t===u&&e===l)&&St(t,e,n,r,i,a,u,l)}function _t(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!Kt(t,e)&&(ot(t,e)&&ot(e,t)&&jt(t,e)&&(w(t.prev,t,e.prev)||w(t,e.prev,e))||K(t,e)&&w(t.prev,t,t.next)>0&&w(e.prev,e,e.next)>0)}function w(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function K(t,e){return t.x===e.x&&t.y===e.y}function bt(t,e,n,r){let i=lt(w(t,e,n)),a=lt(w(t,e,r)),u=lt(w(n,r,t)),l=lt(w(n,r,e));return!!(i!==a&&u!==l||0===i&&ut(t,n,e)||0===a&&ut(t,r,e)||0===u&&ut(n,t,r)||0===l&&ut(n,e,r))}function ut(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function lt(t){return t>0?1:t<0?-1:0}function Kt(t,e){let n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&bt(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}function ot(t,e){return w(t.prev,t,t.next)<0?w(t,e,t.next)>=0&&w(t,t.prev,e)>=0:w(t,e,t.prev)<0||w(t,t.next,e)<0}function jt(t,e){let n=t,r=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do{n.y>a!=n.next.y>a&&n.next.y!==n.y&&i<(n.next.x-n.x)*(a-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}function Mt(t,e){let n=yt(t.i,t.x,t.y),r=yt(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,a.next=r,r.prev=a,r}function vt(t,e,n,r){let i=yt(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function st(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function yt(t,e,n){return{i:t,x:e,y:n,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function Vt(t,e,n,r){let i=0;for(let a=e,u=n-r;a<n;a+=r)i+=(t[u]-t[a])*(t[a+1]+t[u+1]),u=a;return i}var qt=new h,Jt=new h,B={computeArea2D:function(t){A.defined("positions",t),A.typeOf.number.greaterThanOrEquals("positions.length",t.length,3);let e=t.length,n=0;for(let r=e-1,i=0;i<e;r=i++){let e=t[r],a=t[i];n+=e.x*a.y-a.x*e.y}return.5*n},computeWindingOrder2D:function(t){return B.computeArea2D(t)>0?at.COUNTER_CLOCKWISE:at.CLOCKWISE},triangulate:function(t,e){return A.defined("positions",t),mt(g.packArray(t),e,2)}},Tt=new h,Ot=new h,Zt=new h,At=new h,Ct=new h,Et=new h,R=new h,Lt=new g,Ft=new g,Dt=new g,j=new g;B.computeSubdivision=function(t,e,n,r,i){i=i??X.RADIANS_PER_DEGREE;let a=F(r);A.typeOf.object("ellipsoid",t),A.defined("positions",e),A.defined("indices",n),A.typeOf.number.greaterThanOrEquals("indices.length",n.length,3),A.typeOf.number.equals("indices.length % 3","0",n.length%3,0),A.typeOf.number.greaterThan("granularity",i,0);let u,l=n.slice(0),x=e.length,o=new Array(3*x),p=new Array(2*x),y=0,s=0;for(u=0;u<x;u++){let t=e[u];if(o[y++]=t.x,o[y++]=t.y,o[y++]=t.z,a){let t=r[u];p[s++]=t.x,p[s++]=t.y}}let f=[],c={},m=t.maximumRadius,d=X.chordLength(i,m),v=d*d;for(;l.length>0;){let t,e,n,r=l.pop(),i=l.pop(),x=l.pop(),y=h.fromArray(o,3*x,Tt),s=h.fromArray(o,3*i,Ot),d=h.fromArray(o,3*r,Zt);a&&(t=g.fromArray(p,2*x,Lt),e=g.fromArray(p,2*i,Ft),n=g.fromArray(p,2*r,Dt));let w,A,S,b=h.multiplyByScalar(h.normalize(y,At),m,At),E=h.multiplyByScalar(h.normalize(s,Ct),m,Ct),M=h.multiplyByScalar(h.normalize(d,Et),m,Et),O=h.magnitudeSquared(h.subtract(b,E,R)),Z=h.magnitudeSquared(h.subtract(E,M,R)),C=h.magnitudeSquared(h.subtract(M,b,R)),z=Math.max(O,Z,C);z>v?O===z?(w=`${Math.min(x,i)} ${Math.max(x,i)}`,u=c[w],F(u)||(A=h.add(y,s,R),h.multiplyByScalar(A,.5,A),o.push(A.x,A.y,A.z),u=o.length/3-1,c[w]=u,a&&(S=g.add(t,e,j),g.multiplyByScalar(S,.5,S),p.push(S.x,S.y))),l.push(x,u,r),l.push(u,i,r)):Z===z?(w=`${Math.min(i,r)} ${Math.max(i,r)}`,u=c[w],F(u)||(A=h.add(s,d,R),h.multiplyByScalar(A,.5,A),o.push(A.x,A.y,A.z),u=o.length/3-1,c[w]=u,a&&(S=g.add(e,n,j),g.multiplyByScalar(S,.5,S),p.push(S.x,S.y))),l.push(i,u,x),l.push(u,r,x)):C===z&&(w=`${Math.min(r,x)} ${Math.max(r,x)}`,u=c[w],F(u)||(A=h.add(d,y,R),h.multiplyByScalar(A,.5,A),o.push(A.x,A.y,A.z),u=o.length/3-1,c[w]=u,a&&(S=g.add(n,t,j),g.multiplyByScalar(S,.5,S),p.push(S.x,S.y))),l.push(r,u,i),l.push(u,x,i)):(f.push(x),f.push(i),f.push(r))}let w={attributes:{position:new et({componentDatatype:tt.DOUBLE,componentsPerAttribute:3,values:o})},indices:f,primitiveType:xt.TRIANGLES};return a&&(w.attributes.st=new et({componentDatatype:tt.FLOAT,componentsPerAttribute:2,values:p})),new ht(w)};var Qt=new Y,Xt=new Y,Yt=new Y,dt=new Y;B.computeRhumbLineSubdivision=function(t,e,n,r,i){i=i??X.RADIANS_PER_DEGREE;let a=F(r);A.typeOf.object("ellipsoid",t),A.defined("positions",e),A.defined("indices",n),A.typeOf.number.greaterThanOrEquals("indices.length",n.length,3),A.typeOf.number.equals("indices.length % 3","0",n.length%3,0),A.typeOf.number.greaterThan("granularity",i,0);let u,l=n.slice(0),x=e.length,o=new Array(3*x),p=new Array(2*x),y=0,s=0;for(u=0;u<x;u++){let t=e[u];if(o[y++]=t.x,o[y++]=t.y,o[y++]=t.z,a){let t=r[u];p[s++]=t.x,p[s++]=t.y}}let f=[],c={},m=t.maximumRadius,d=X.chordLength(i,m),v=new ct(void 0,void 0,t),w=new ct(void 0,void 0,t),S=new ct(void 0,void 0,t);for(;l.length>0;){let e,n,r,i=l.pop(),x=l.pop(),y=l.pop(),s=h.fromArray(o,3*y,Tt),m=h.fromArray(o,3*x,Ot),A=h.fromArray(o,3*i,Zt);a&&(e=g.fromArray(p,2*y,Lt),n=g.fromArray(p,2*x,Ft),r=g.fromArray(p,2*i,Dt));let b=t.cartesianToCartographic(s,Qt),E=t.cartesianToCartographic(m,Xt),M=t.cartesianToCartographic(A,Yt);v.setEndPoints(b,E);let O=v.surfaceDistance;w.setEndPoints(E,M);let Z=w.surfaceDistance;S.setEndPoints(M,b);let C,z,B,T,D,N=S.surfaceDistance,K=Math.max(O,Z,N);K>d?O===K?(C=`${Math.min(y,x)} ${Math.max(y,x)}`,u=c[C],F(u)||(z=v.interpolateUsingFraction(.5,dt),B=.5*(b.height+E.height),T=h.fromRadians(z.longitude,z.latitude,B,t,R),o.push(T.x,T.y,T.z),u=o.length/3-1,c[C]=u,a&&(D=g.add(e,n,j),g.multiplyByScalar(D,.5,D),p.push(D.x,D.y))),l.push(y,u,i),l.push(u,x,i)):Z===K?(C=`${Math.min(x,i)} ${Math.max(x,i)}`,u=c[C],F(u)||(z=w.interpolateUsingFraction(.5,dt),B=.5*(E.height+M.height),T=h.fromRadians(z.longitude,z.latitude,B,t,R),o.push(T.x,T.y,T.z),u=o.length/3-1,c[C]=u,a&&(D=g.add(n,r,j),g.multiplyByScalar(D,.5,D),p.push(D.x,D.y))),l.push(x,u,y),l.push(u,i,y)):N===K&&(C=`${Math.min(i,y)} ${Math.max(i,y)}`,u=c[C],F(u)||(z=S.interpolateUsingFraction(.5,dt),B=.5*(M.height+b.height),T=h.fromRadians(z.longitude,z.latitude,B,t,R),o.push(T.x,T.y,T.z),u=o.length/3-1,c[C]=u,a&&(D=g.add(r,e,j),g.multiplyByScalar(D,.5,D),p.push(D.x,D.y))),l.push(i,u,x),l.push(u,y,x)):(f.push(y),f.push(x),f.push(i))}let b={attributes:{position:new et({componentDatatype:tt.DOUBLE,componentsPerAttribute:3,values:o})},indices:f,primitiveType:xt.TRIANGLES};return a&&(b.attributes.st=new et({componentDatatype:tt.FLOAT,componentsPerAttribute:2,values:p})),new ht(b)},B.scaleToGeodeticHeight=function(t,e,n,r){n=n??gt.default;let i=qt,a=Jt;if(e=e??0,r=r??!0,F(t)){let u=t.length;for(let l=0;l<u;l+=3)h.fromArray(t,l,a),r&&(a=n.scaleToGeodeticSurface(a,a)),0!==e&&(i=n.geodeticSurfaceNormal(a,i),h.multiplyByScalar(i,e,i),h.add(a,i,a)),t[l]=a.x,t[l+1]=a.y,t[l+2]=a.z}return t};var de=B;export{at as a,de as b};
|
|
@@ -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-D3TVNJ6W.js";import{a as d}from"./chunk-3VUCSHGU.js";import{j as x}from"./chunk-LNJEJFV5.js";import{a as p,b as M,c as O}from"./chunk-2AIOP76V.js";import{b as m}from"./chunk-NZBME2JK.js";import{f}from"./chunk-6DLS2UKD.js";function n(t,n,e,h){this.x=t??0,this.y=n??0,this.width=e??0,this.height=h??0}n.packedLength=4,n.pack=function(t,n,e){return m.typeOf.object("value",t),m.defined("array",n),e=e??0,n[e++]=t.x,n[e++]=t.y,n[e++]=t.width,n[e]=t.height,n},n.unpack=function(t,e,h){return m.defined("array",t),e=e??0,f(h)||(h=new n),h.x=t[e++],h.y=t[e++],h.width=t[e++],h.height=t[e],h},n.fromPoints=function(t,e){if(f(e)||(e=new n),!f(t)||0===t.length)return e.x=0,e.y=0,e.width=0,e.height=0,e;let h=t.length,i=t[0].x,r=t[0].y,o=t[0].x,a=t[0].y;for(let n=1;n<h;n++){let e=t[n],h=e.x,f=e.y;i=Math.min(h,i),o=Math.max(h,o),r=Math.min(f,r),a=Math.max(f,a)}return e.x=i,e.y=r,e.width=o-i,e.height=a-r,e};var L=new g,X=new p,Y=new p;n.fromRectangle=function(t,e,h){if(f(h)||(h=new n),!f(t))return h.x=0,h.y=0,h.width=0,h.height=0,h;L._ellipsoid=O.default;let i=(e=e??L).project(x.southwest(t,X)),r=e.project(x.northeast(t,Y));return M.subtract(r,i,r),h.x=i.x,h.y=i.y,h.width=r.x,h.height=r.y,h},n.clone=function(t,e){if(f(t))return f(e)?(e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e):new n(t.x,t.y,t.width,t.height)},n.union=function(t,e,h){m.typeOf.object("left",t),m.typeOf.object("right",e),f(h)||(h=new n);let i=Math.min(t.x,e.x),r=Math.min(t.y,e.y),o=Math.max(t.x+t.width,e.x+e.width),a=Math.max(t.y+t.height,e.y+e.height);return h.x=i,h.y=r,h.width=o-i,h.height=a-r,h},n.expand=function(t,e,h){m.typeOf.object("rectangle",t),m.typeOf.object("point",e),h=n.clone(t,h);let i=e.x-h.x,r=e.y-h.y;return i>h.width?h.width=i:i<0&&(h.width-=i,h.x=e.x),r>h.height?h.height=r:r<0&&(h.height-=r,h.y=e.y),h},n.intersect=function(t,n){m.typeOf.object("left",t),m.typeOf.object("right",n);let e=t.x,h=t.y,i=n.x,r=n.y;return e>i+n.width||e+t.width<i||h+t.height<r||h>r+n.height?d.OUTSIDE:d.INTERSECTING},n.equals=function(t,n){return t===n||f(t)&&f(n)&&t.x===n.x&&t.y===n.y&&t.width===n.width&&t.height===n.height},n.prototype.clone=function(t){return n.clone(this,t)},n.prototype.intersect=function(t){return n.intersect(this,t)},n.prototype.equals=function(t){return n.equals(this,t)};var S=n;export{S 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 k}from"./chunk-4WQ4VT5S.js";import{a as T}from"./chunk-3E7FIXV7.js";import{a as d}from"./chunk-NZBME2JK.js";import{f as E}from"./chunk-6DLS2UKD.js";function a(){d.throwInstantiationError()}Object.defineProperties(a.prototype,{errorEvent:{get:d.throwInstantiationError},credit:{get:d.throwInstantiationError},tilingScheme:{get:d.throwInstantiationError},hasWaterMask:{get:d.throwInstantiationError},hasVertexNormals:{get:d.throwInstantiationError},availability:{get:d.throwInstantiationError}});var b=[];a.getRegularGridIndices=function(t,e){if(t*e>=T.FOUR_GIGABYTES)throw new d("The total number of vertices (width * height) must be less than 4,294,967,296.");let r=b[t];E(r)||(b[t]=r=[]);let n=r[e];return E(n)||(n=t*e<T.SIXTY_FOUR_KILOBYTES?r[e]=new Uint16Array((t-1)*(e-1)*6):r[e]=new Uint32Array((t-1)*(e-1)*6),v(t,e,n,0)),n};var N=[];a.getRegularGridIndicesAndEdgeIndices=function(t,e){if(t*e>=T.FOUR_GIGABYTES)throw new d("The total number of vertices (width * height) must be less than 4,294,967,296.");let r=N[t];E(r)||(N[t]=r=[]);let n=r[e];if(!E(n)){let o=a.getRegularGridIndices(t,e),i=w(t,e),s=i.westIndicesSouthToNorth,h=i.southIndicesEastToWest,d=i.eastIndicesNorthToSouth,u=i.northIndicesWestToEast;n=r[e]={indices:o,westIndicesSouthToNorth:s,southIndicesEastToWest:h,eastIndicesNorthToSouth:d,northIndicesWestToEast:u}}return n};var R=[];function w(t,e){let r,n=new Array(e),o=new Array(t),i=new Array(e),a=new Array(t);for(r=0;r<t;++r)a[r]=r,o[r]=t*e-1-r;for(r=0;r<e;++r)i[r]=(r+1)*t-1,n[r]=(e-r-1)*t;return{westIndicesSouthToNorth:n,southIndicesEastToWest:o,eastIndicesNorthToSouth:i,northIndicesWestToEast:a}}function v(t,e,r,n){let o=0;for(let i=0;i<e-1;++i){for(let e=0;e<t-1;++e){let e=o,i=e+t,a=i+1,s=e+1;r[n++]=e,r[n++]=i,r[n++]=s,r[n++]=s,r[n++]=i,r[n++]=a,++o}++o}}function p(t,e,r,n){let o=t[0],i=t.length;for(let a=1;a<i;++a){let i=t[a];r[n++]=o,r[n++]=i,r[n++]=e,r[n++]=e,r[n++]=i,r[n++]=e+1,o=i,++e}return n}a.getRegularGridAndSkirtIndicesAndEdgeIndices=function(t,e){if(t*e>=T.FOUR_GIGABYTES)throw new d("The total number of vertices (width * height) must be less than 4,294,967,296.");let r=R[t];E(r)||(R[t]=r=[]);let n=r[e];if(!E(n)){let o=t*e,i=(t-1)*(e-1)*6,s=2*t+2*e,h=o+s,d=i+6*Math.max(0,s-4),u=w(t,e),l=u.westIndicesSouthToNorth,c=u.southIndicesEastToWest,I=u.eastIndicesNorthToSouth,g=u.northIndicesWestToEast,E=k.createTypedArray(h,d);v(t,e,E,0),a.addSkirtIndices(l,c,I,g,o,E,i),n=r[e]={indices:E,westIndicesSouthToNorth:l,southIndicesEastToWest:c,eastIndicesNorthToSouth:I,northIndicesWestToEast:g,indexCountWithoutSkirts:i}}return n},a.getSkirtVertexCount=function(t,e,r,n){return t.length+e.length+r.length+n.length},a.getSkirtIndexCount=function(t){return 2*(t-4)*3},a.getSkirtIndexCountWithFilledCorners=function(t){return 3*(2*(t-4)+4)},a.addSkirtIndices=function(t,e,r,n,o,i,a){let s=o;a=p(t,s,i,a),s+=t.length,a=p(e,s,i,a),s+=e.length,a=p(r,s,i,a),s+=r.length,p(n,s,i,a)},a.addSkirtIndicesWithFilledCorners=function(t,e,r,n,o,i,s){a.addSkirtIndices(t,e,r,n,o,i,s);let h=a.getSkirtVertexCount(t,e,r,n),d=s+a.getSkirtIndexCount(h),u=t[0],l=n[0],c=r[0],I=e[0],g=o,E=g+t.length-1,T=E+1,w=T+e.length-1,f=w+1,m=f+r.length-1,S=m+1,p=S+n.length-1;i[d+0]=u,i[d+1]=g,i[d+2]=w,i[d+3]=I,i[d+4]=T,i[d+5]=m,i[d+6]=c,i[d+7]=f,i[d+8]=p,i[d+9]=l,i[d+10]=S,i[d+11]=E},a.heightmapTerrainQuality=.25,a.getEstimatedLevelZeroGeometricErrorForAHeightmap=function(t,e,r){return 2*t.maximumRadius*Math.PI*a.heightmapTerrainQuality/(e*r)},a.prototype.requestTileGeometry=d.throwInstantiationError,a.prototype.getLevelMaximumGeometricError=d.throwInstantiationError,a.prototype.getTileDataAvailable=d.throwInstantiationError,a.prototype.loadTileDataAvailability=d.throwInstantiationError;var M=a;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 P,c as B}from"./chunk-2AIOP76V.js";import{a as y}from"./chunk-IAE6APK2.js";import{a as L}from"./chunk-3E7FIXV7.js";import{b as q}from"./chunk-NZBME2JK.js";import{f as T}from"./chunk-6DLS2UKD.js";function X(t){let a=t._uSquared,i=t._ellipsoid.maximumRadius,n=t._ellipsoid.minimumRadius,e=(i-n)/i,s=Math.cos(t._startHeading),h=Math.sin(t._startHeading),r=(1-e)*Math.tan(t._start.latitude),o=1/Math.sqrt(1+r*r),d=o*r,u=Math.atan2(r,s),c=o*h,l=c*c,M=1-l,_=Math.sqrt(M),g=a/4,f=g*g,p=f*g,m=f*f,q=1+g-3*f/4+5*p/4-175*m/64,v=1-g+15*f/8-35*p/8,H=1-3*g+35*f/4,O=1-5*g,P=q*u-v*Math.sin(2*u)*g/2-H*Math.sin(4*u)*f/16-O*Math.sin(6*u)*p/48-5*Math.sin(8*u)*m/512,E=t._constants;E.a=i,E.b=n,E.f=e,E.cosineHeading=s,E.sineHeading=h,E.tanU=r,E.cosineU=o,E.sineU=d,E.sigma=u,E.sineAlpha=c,E.sineSquaredAlpha=l,E.cosineSquaredAlpha=M,E.cosineAlpha=_,E.u2Over4=g,E.u4Over16=f,E.u6Over64=p,E.u8Over256=m,E.a0=q,E.a1=v,E.a2=H,E.a3=O,E.distanceRatio=P}function Y(t,a){return t*a*(4+t*(4-3*a))/16}function k(t,a,i,n,e,s,h){let r=Y(t,i);return(1-r)*t*a*(n+r*e*(h+r*s*(2*h*h-1)))}function Z(t,a,i,n,e,s,h){let r,o,d,u,c,l=(a-i)/a,M=s-n,_=Math.atan((1-l)*Math.tan(e)),g=Math.atan((1-l)*Math.tan(h)),f=Math.cos(_),p=Math.sin(_),m=Math.cos(g),q=Math.sin(g),v=f*m,H=f*q,O=p*q,P=p*m,E=M,y=L.TWO_PI,A=Math.cos(E),S=Math.sin(E);do{A=Math.cos(E),S=Math.sin(E);let t,a=H-P*A;d=Math.sqrt(m*m*S*S+a*a),o=O+v*A,r=Math.atan2(d,o),0===d?(t=0,u=1):(t=v*S/d,u=1-t*t),y=E,c=o-2*O/u,isFinite(c)||(c=0),E=M+k(l,t,u,r,d,o,c)}while(Math.abs(E-y)>L.EPSILON12);let b=u*(a*a-i*i)/(i*i),U=b*(256+b*(b*(74-47*b)-128))/1024,T=c*c,w=i*(1+b*(4096+b*(b*(320-175*b)-768))/16384)*(r-U*d*(c+U*(o*(2*T-1)-U*c*(4*d*d-3)*(4*T-3)/6)/4)),x=Math.atan2(m*S,H-P*A),j=Math.atan2(f*S,H*A-P);t._distance=w,t._startHeading=x,t._endHeading=j,t._uSquared=b}var $=new y,x=new y;function N(t,a,i,n){let e=y.normalize(n.cartographicToCartesian(a,x),$),s=y.normalize(n.cartographicToCartesian(i,x),x);q.typeOf.number.greaterThanOrEquals("value",Math.abs(Math.abs(y.angleBetween(e,s))-Math.PI),.0125),Z(t,n.maximumRadius,n.minimumRadius,a.longitude,a.latitude,i.longitude,i.latitude),t._start=P.clone(a,t._start),t._end=P.clone(i,t._end),t._start.height=0,t._end.height=0,X(t)}function E(t,a,i){let n=i??B.default;this._ellipsoid=n,this._start=new P,this._end=new P,this._constants={},this._startHeading=void 0,this._endHeading=void 0,this._distance=void 0,this._uSquared=void 0,T(t)&&T(a)&&N(this,t,a,n)}Object.defineProperties(E.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},surfaceDistance:{get:function(){return q.defined("distance",this._distance),this._distance}},start:{get:function(){return this._start}},end:{get:function(){return this._end}},startHeading:{get:function(){return q.defined("distance",this._distance),this._startHeading}},endHeading:{get:function(){return q.defined("distance",this._distance),this._endHeading}}}),E.prototype.setEndPoints=function(t,a){q.defined("start",t),q.defined("end",a),N(this,t,a,this._ellipsoid)},E.prototype.interpolateUsingFraction=function(t,a){return this.interpolateUsingSurfaceDistance(this._distance*t,a)},E.prototype.interpolateUsingSurfaceDistance=function(t,a){q.defined("distance",this._distance);let i=this._constants,n=i.distanceRatio+t/i.b,e=Math.cos(2*n),s=Math.cos(4*n),h=Math.cos(6*n),r=Math.sin(2*n),o=Math.sin(4*n),d=Math.sin(6*n),u=Math.sin(8*n),c=n*n,l=n*c,M=i.u8Over256,_=i.u2Over4,g=i.u6Over64,f=i.u4Over16,p=2*l*M*e/3+n*(1-_+7*f/4-15*g/4+579*M/64-(f-15*g/4+187*M/16)*e-(5*g/4-115*M/16)*s-29*M*h/16)+(_/2-f+71*g/32-85*M/16)*r+(5*f/16-5*g/4+383*M/96)*o-c*((g-11*M/2)*r+5*M*o/2)+(29*g/96-29*M/16)*d+539*M*u/1536,m=Math.asin(Math.sin(p)*i.cosineAlpha),v=Math.atan(i.a/i.b*Math.tan(m));p-=i.sigma;let H=Math.cos(2*i.sigma+p),O=Math.sin(p),E=Math.cos(p),y=i.cosineU*E,A=i.sineU*O,S=Math.atan2(O*i.sineHeading,y-A*i.cosineHeading)-k(i.f,i.sineAlpha,i.cosineSquaredAlpha,p,O,E,H);return T(a)?(a.longitude=this._start.longitude+S,a.latitude=v,a.height=0,a):new P(this._start.longitude+S,v,0)};var et=E;export{et 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
|
+
import{b as r}from"./chunk-BPABSUDY.js";import{c as m}from"./chunk-IAE6APK2.js";import{a as i}from"./chunk-NZBME2JK.js";import{f as t}from"./chunk-6DLS2UKD.js";function d(e){if(e=e??m.EMPTY_OBJECT,!t(e.geometry))throw new i("options.geometry is required.");this.geometry=e.geometry,this.modelMatrix=r.clone(e.modelMatrix??r.IDENTITY),this.id=e.id,this.pickPrimitive=e.pickPrimitive,this.attributes=e.attributes??{},this.westHemisphereGeometry=void 0,this.eastHemisphereGeometry=void 0}var a=d;export{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,c as q}from"./chunk-LHBFSFJE.js";import{a as U}from"./chunk-6AEO73KW.js";import{h as I}from"./chunk-LNJEJFV5.js";import{a as e,b as C}from"./chunk-IAE6APK2.js";import{a as O}from"./chunk-3E7FIXV7.js";import{f as j}from"./chunk-6DLS2UKD.js";var G={},B=new e,J=new e,_=new e,v=new e,g=[new e,new e],K=new e,W=new e,X=new e,$=new e,ee=new e,te=new e,ne=new e,oe=new e,re=new e,se=new e,F=new I,k=new C;function V(t,a,r,n,l){let o,i=e.angleBetween(e.subtract(a,t,B),e.subtract(r,t,J)),s=n===z.BEVELED?1:Math.ceil(i/O.toRadians(5))+1,c=3*s,u=new Array(c);u[c-3]=r.x,u[c-2]=r.y,u[c-1]=r.z,o=l?C.fromQuaternion(I.fromAxisAngle(e.negate(t,B),i/s,F),k):C.fromQuaternion(I.fromAxisAngle(t,i/s,F),k);let y=0;a=e.clone(a,B);for(let e=0;e<s;e++)a=C.multiplyByVector(o,a,a),u[y++]=a.x,u[y++]=a.y,u[y++]=a.z;return u}function ae(t){let a=K,r=W,n=X,l=t[1];r=e.fromArray(t[1],l.length-3,r),n=e.fromArray(t[0],0,n),a=e.midpoint(r,n,a);let o=V(a,r,n,z.ROUNDED,!1),i=t.length-1,s=t[i-1];return l=t[i],r=e.fromArray(s,s.length-3,r),n=e.fromArray(l,0,n),a=e.midpoint(r,n,a),[o,V(a,r,n,z.ROUNDED,!1)]}function H(t,a,r,n){let l=B;return n||(a=e.negate(a,a)),l=e.add(t,a,l),[l.x,l.y,l.z,r.x,r.y,r.z]}function T(t,a,r,n){let l=new Array(t.length),o=new Array(t.length),i=e.multiplyByScalar(a,r,B),s=e.negate(i,J),c=0,u=t.length-1;for(let a=0;a<t.length;a+=3){let r=e.fromArray(t,a,_),n=e.add(r,s,v);l[c++]=n.x,l[c++]=n.y,l[c++]=n.z;let y=e.add(r,i,v);o[u--]=y.z,o[u--]=y.y,o[u--]=y.x}return n.push(l,o),n}G.addAttribute=function(e,t,a,r){let n=t.x,l=t.y,o=t.z;j(a)&&(e[a]=n,e[a+1]=l,e[a+2]=o),j(r)&&(e[r]=o,e[r-1]=l,e[r-2]=n)};var le=new e,ce=new e;G.computePositions=function(t){let a=t.granularity,r=t.positions,n=t.ellipsoid,l=t.width/2,o=t.cornerType,i=t.saveAttributes,s=K,c=W,u=X,y=$,m=ee,d=te,p=ne,h=oe,f=re,w=se,E=[],A=i?[]:void 0,x=i?[]:void 0,S=r[0],D=r[1];c=e.normalize(e.subtract(D,S,c),c),s=n.geodeticSurfaceNormal(S,s),y=e.normalize(e.cross(s,c,y),y),i&&(A.push(y.x,y.y,y.z),x.push(s.x,s.y,s.z)),p=e.clone(S,p),S=D,u=e.negate(c,u);let b,N,j,k=[],v=r.length;for(N=1;N<v-1;N++){s=n.geodeticSurfaceNormal(S,s),D=r[N+1],c=e.normalize(e.subtract(D,S,c),c);let t=e.multiplyByScalar(s,e.dot(c,s),le);e.subtract(c,t,t),e.normalize(t,t);let j=e.multiplyByScalar(s,e.dot(u,s),ce);if(e.subtract(u,j,j),e.normalize(j,j),!O.equalsEpsilon(Math.abs(e.dot(t,j)),1,O.EPSILON7)){m=e.normalize(e.add(c,u,m),m),m=e.cross(m,s,m),m=e.cross(s,m,m),m=e.normalize(m,m);let t=l/Math.max(.25,e.magnitude(e.cross(m,u,B))),r=q.angleIsGreaterThanPi(c,u,S,n);m=e.multiplyByScalar(m,t,m),r?(h=e.add(S,m,h),w=e.add(h,e.multiplyByScalar(y,l,w),w),f=e.add(h,e.multiplyByScalar(y,2*l,f),f),g[0]=e.clone(p,g[0]),g[1]=e.clone(w,g[1]),b=U.generateArc({positions:g,granularity:a,ellipsoid:n}),E=T(b,y,l,E),i&&(A.push(y.x,y.y,y.z),x.push(s.x,s.y,s.z)),d=e.clone(f,d),y=e.normalize(e.cross(s,c,y),y),f=e.add(h,e.multiplyByScalar(y,2*l,f),f),p=e.add(h,e.multiplyByScalar(y,l,p),p),o===z.ROUNDED||o===z.BEVELED?k.push({leftPositions:V(h,d,f,o,r)}):k.push({leftPositions:H(S,e.negate(m,m),f,r)})):(f=e.add(S,m,f),w=e.add(f,e.negate(e.multiplyByScalar(y,l,w),w),w),h=e.add(f,e.negate(e.multiplyByScalar(y,2*l,h),h),h),g[0]=e.clone(p,g[0]),g[1]=e.clone(w,g[1]),b=U.generateArc({positions:g,granularity:a,ellipsoid:n}),E=T(b,y,l,E),i&&(A.push(y.x,y.y,y.z),x.push(s.x,s.y,s.z)),d=e.clone(h,d),y=e.normalize(e.cross(s,c,y),y),h=e.add(f,e.negate(e.multiplyByScalar(y,2*l,h),h),h),p=e.add(f,e.negate(e.multiplyByScalar(y,l,p),p),p),o===z.ROUNDED||o===z.BEVELED?k.push({rightPositions:V(f,d,h,o,r)}):k.push({rightPositions:H(S,m,h,r)})),u=e.negate(c,u)}S=D}return s=n.geodeticSurfaceNormal(S,s),g[0]=e.clone(p,g[0]),g[1]=e.clone(S,g[1]),b=U.generateArc({positions:g,granularity:a,ellipsoid:n}),E=T(b,y,l,E),i&&(A.push(y.x,y.y,y.z),x.push(s.x,s.y,s.z)),o===z.ROUNDED&&(j=ae(E)),{positions:E,corners:k,lefts:A,normals:x,endPositions:j}};var we=G;export{we 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-AKELQO2L.js";import{a as Q}from"./chunk-5AAMOBJK.js";import{a as ae}from"./chunk-6EINM7EY.js";import{b as oe,c as re,d as J}from"./chunk-A4I25VN7.js";import{c as ie}from"./chunk-D3TVNJ6W.js";import{a as E}from"./chunk-3VUCSHGU.js";import{h as D}from"./chunk-LNJEJFV5.js";import{a as C,b as F}from"./chunk-BPABSUDY.js";import{a as H}from"./chunk-ATKJRN2G.js";import{a as r,b as G,c as A}from"./chunk-IAE6APK2.js";import{a as O}from"./chunk-3E7FIXV7.js";import{a as w,b}from"./chunk-NZBME2JK.js";import{f as a}from"./chunk-6DLS2UKD.js";function R(t){this.planes=t??[]}var X=[new r,new r,new r];r.clone(r.UNIT_X,X[0]),r.clone(r.UNIT_Y,X[1]),r.clone(r.UNIT_Z,X[2]);var j=new r,de=new r,fe=new Q(new r(1,0,0),0);R.fromBoundingSphere=function(t,e){if(!a(t))throw new w("boundingSphere is required.");a(e)||(e=new R);let i=X.length,n=e.planes;n.length=2*i;let o=t.center,s=t.radius,f=0;for(let t=0;t<i;++t){let e=X[t],i=n[f],u=n[f+1];a(i)||(i=n[f]=new C),a(u)||(u=n[f+1]=new C),r.multiplyByScalar(e,-s,j),r.add(o,j,j),i.x=e.x,i.y=e.y,i.z=e.z,i.w=-r.dot(e,j),r.multiplyByScalar(e,s,j),r.add(o,j,j),u.x=-e.x,u.y=-e.y,u.z=-e.z,u.w=-r.dot(r.negate(e,de),j),f+=2}return e},R.prototype.computeVisibility=function(t){if(!a(t))throw new w("boundingVolume is required.");let e=this.planes,r=!1;for(let i=0,a=e.length;i<a;++i){let a=t.intersectPlane(Q.fromCartesian4(e[i],fe));if(a===E.OUTSIDE)return E.OUTSIDE;a===E.INTERSECTING&&(r=!0)}return r?E.INTERSECTING:E.INSIDE},R.prototype.computeVisibilityWithPlaneMask=function(t,e){if(!a(t))throw new w("boundingVolume is required.");if(!a(e))throw new w("parentPlaneMask is required.");if(e===R.MASK_OUTSIDE||e===R.MASK_INSIDE)return e;let r=R.MASK_INSIDE,i=this.planes;for(let a=0,n=i.length;a<n;++a){let n=a<31?1<<a:0;if(a<31&&0==(e&n))continue;let o=t.intersectPlane(Q.fromCartesian4(i[a],fe));if(o===E.OUTSIDE)return R.MASK_OUTSIDE;o===E.INTERSECTING&&(r|=n)}return r},R.MASK_OUTSIDE=4294967295,R.MASK_INSIDE=0,R.MASK_INDETERMINATE=2147483647;var $=R;function M(t){t=t??A.EMPTY_OBJECT,this.left=t.left,this._left=void 0,this.right=t.right,this._right=void 0,this.top=t.top,this._top=void 0,this.bottom=t.bottom,this._bottom=void 0,this.near=t.near??1,this._near=this.near,this.far=t.far??5e8,this._far=this.far,this._cullingVolume=new $,this._orthographicMatrix=new F}function ce(t){if(!(a(t.right)&&a(t.left)&&a(t.top)&&a(t.bottom)&&a(t.near)&&a(t.far)))throw new w("right, left, top, bottom, near, or far parameters are not set.");if(t.top!==t._top||t.bottom!==t._bottom||t.left!==t._left||t.right!==t._right||t.near!==t._near||t.far!==t._far){if(t.left>t.right)throw new w("right must be greater than left.");if(t.bottom>t.top)throw new w("top must be greater than bottom.");if(t.near<=0||t.near>t.far)throw new w("near must be greater than zero and less than far.");t._left=t.left,t._right=t.right,t._top=t.top,t._bottom=t.bottom,t._near=t.near,t._far=t.far,t._orthographicMatrix=F.computeOrthographicOffCenter(t.left,t.right,t.bottom,t.top,t.near,t.far,t._orthographicMatrix)}}Object.defineProperties(M.prototype,{projectionMatrix:{get:function(){return ce(this),this._orthographicMatrix}}});var me=new r,ye=new r,ge=new r,ee=new r;M.prototype.computeCullingVolume=function(t,e,i){if(!a(t))throw new w("position is required.");if(!a(e))throw new w("direction is required.");if(!a(i))throw new w("up is required.");let n=this._cullingVolume.planes,o=this.top,s=this.bottom,f=this.right,u=this.left,h=this.near,p=this.far,l=r.cross(e,i,me);r.normalize(l,l);let c=ye;r.multiplyByScalar(e,h,c),r.add(t,c,c);let m=ge;r.multiplyByScalar(l,u,m),r.add(c,m,m);let d=n[0];return a(d)||(d=n[0]=new C),d.x=l.x,d.y=l.y,d.z=l.z,d.w=-r.dot(l,m),r.multiplyByScalar(l,f,m),r.add(c,m,m),d=n[1],a(d)||(d=n[1]=new C),d.x=-l.x,d.y=-l.y,d.z=-l.z,d.w=-r.dot(r.negate(l,ee),m),r.multiplyByScalar(i,s,m),r.add(c,m,m),d=n[2],a(d)||(d=n[2]=new C),d.x=i.x,d.y=i.y,d.z=i.z,d.w=-r.dot(i,m),r.multiplyByScalar(i,o,m),r.add(c,m,m),d=n[3],a(d)||(d=n[3]=new C),d.x=-i.x,d.y=-i.y,d.z=-i.z,d.w=-r.dot(r.negate(i,ee),m),d=n[4],a(d)||(d=n[4]=new C),d.x=e.x,d.y=e.y,d.z=e.z,d.w=-r.dot(e,c),r.multiplyByScalar(e,p,m),r.add(t,m,m),d=n[5],a(d)||(d=n[5]=new C),d.x=-e.x,d.y=-e.y,d.z=-e.z,d.w=-r.dot(r.negate(e,ee),m),this._cullingVolume},M.prototype.getPixelDimensions=function(t,e,r,i,n){if(ce(this),!a(t)||!a(e))throw new w("Both drawingBufferWidth and drawingBufferHeight are required.");if(t<=0)throw new w("drawingBufferWidth must be greater than zero.");if(e<=0)throw new w("drawingBufferHeight must be greater than zero.");if(!a(r))throw new w("distance is required.");if(!a(i))throw new w("pixelRatio is required.");if(i<=0)throw new w("pixelRatio must be greater than zero.");if(!a(n))throw new w("A result object is required.");let o=i*(this.right-this.left)/t,s=i*(this.top-this.bottom)/e;return n.x=o,n.y=s,n},M.prototype.clone=function(t){return a(t)||(t=new M),t.left=this.left,t.right=this.right,t.top=this.top,t.bottom=this.bottom,t.near=this.near,t.far=this.far,t._left=void 0,t._right=void 0,t._top=void 0,t._bottom=void 0,t._near=void 0,t._far=void 0,t},M.prototype.equals=function(t){return a(t)&&t instanceof M&&this.right===t.right&&this.left===t.left&&this.top===t.top&&this.bottom===t.bottom&&this.near===t.near&&this.far===t.far},M.prototype.equalsEpsilon=function(t,e,r){return t===this||a(t)&&t instanceof M&&O.equalsEpsilon(this.right,t.right,e,r)&&O.equalsEpsilon(this.left,t.left,e,r)&&O.equalsEpsilon(this.top,t.top,e,r)&&O.equalsEpsilon(this.bottom,t.bottom,e,r)&&O.equalsEpsilon(this.near,t.near,e,r)&&O.equalsEpsilon(this.far,t.far,e,r)};var he=M;function x(t){t=t??A.EMPTY_OBJECT,this._offCenterFrustum=new he,this.width=t.width,this._width=void 0,this.aspectRatio=t.aspectRatio,this._aspectRatio=void 0,this.near=t.near??1,this._near=this.near,this.far=t.far??5e8,this._far=this.far}function B(t){if(!(a(t.width)&&a(t.aspectRatio)&&a(t.near)&&a(t.far)))throw new w("width, aspectRatio, near, or far parameters are not set.");let e=t._offCenterFrustum;if(t.width!==t._width||t.aspectRatio!==t._aspectRatio||t.near!==t._near||t.far!==t._far){if(t.aspectRatio<0)throw new w("aspectRatio must be positive.");if(t.near<0||t.near>t.far)throw new w("near must be greater than zero and less than far.");t._aspectRatio=t.aspectRatio,t._width=t.width,t._near=t.near,t._far=t.far;let r=1/t.aspectRatio;e.right=.5*t.width,e.left=-e.right,e.top=r*e.right,e.bottom=-e.top,e.near=t.near,e.far=t.far}}x.packedLength=4,x.pack=function(t,e,r){return b.typeOf.object("value",t),b.defined("array",e),r=r??0,e[r++]=t.width,e[r++]=t.aspectRatio,e[r++]=t.near,e[r]=t.far,e},x.unpack=function(t,e,r){return b.defined("array",t),e=e??0,a(r)||(r=new x),r.width=t[e++],r.aspectRatio=t[e++],r.near=t[e++],r.far=t[e],r},Object.defineProperties(x.prototype,{projectionMatrix:{get:function(){return B(this),this._offCenterFrustum.projectionMatrix}},offCenterFrustum:{get:function(){return B(this),this._offCenterFrustum}}}),x.prototype.computeCullingVolume=function(t,e,r){return B(this),this._offCenterFrustum.computeCullingVolume(t,e,r)},x.prototype.getPixelDimensions=function(t,e,r,i,a){return B(this),this._offCenterFrustum.getPixelDimensions(t,e,r,i,a)},x.prototype.clone=function(t){return a(t)||(t=new x),t.aspectRatio=this.aspectRatio,t.width=this.width,t.near=this.near,t.far=this.far,t._aspectRatio=void 0,t._width=void 0,t._near=void 0,t._far=void 0,this._offCenterFrustum.clone(t._offCenterFrustum),t},x.prototype.equals=function(t){return!!(a(t)&&t instanceof x)&&(B(this),B(t),this.width===t.width&&this.aspectRatio===t.aspectRatio&&this._offCenterFrustum.equals(t._offCenterFrustum))},x.prototype.equalsEpsilon=function(t,e,r){return!!(a(t)&&t instanceof x)&&(B(this),B(t),O.equalsEpsilon(this.width,t.width,e,r)&&O.equalsEpsilon(this.aspectRatio,t.aspectRatio,e,r)&&this._offCenterFrustum.equalsEpsilon(t._offCenterFrustum,e,r))};var V=x;function k(t){t=t??A.EMPTY_OBJECT,this.left=t.left,this._left=void 0,this.right=t.right,this._right=void 0,this.top=t.top,this._top=void 0,this.bottom=t.bottom,this._bottom=void 0,this.near=t.near??1,this._near=this.near,this.far=t.far??5e8,this._far=this.far,this._cullingVolume=new $,this._perspectiveMatrix=new F,this._infinitePerspective=new F}function te(t){if(!(a(t.right)&&a(t.left)&&a(t.top)&&a(t.bottom)&&a(t.near)&&a(t.far)))throw new w("right, left, top, bottom, near, or far parameters are not set.");let{top:e,bottom:r,right:i,left:n,near:o,far:s}=t;if(e!==t._top||r!==t._bottom||n!==t._left||i!==t._right||o!==t._near||s!==t._far){if(t.near<=0||t.near>t.far)throw new w("near must be greater than zero and less than far.");t._left=n,t._right=i,t._top=e,t._bottom=r,t._near=o,t._far=s,t._perspectiveMatrix=F.computePerspectiveOffCenter(n,i,r,e,o,s,t._perspectiveMatrix),t._infinitePerspective=F.computeInfinitePerspectiveOffCenter(n,i,r,e,o,t._infinitePerspective)}}Object.defineProperties(k.prototype,{projectionMatrix:{get:function(){return te(this),this._perspectiveMatrix}},infiniteProjectionMatrix:{get:function(){return te(this),this._infinitePerspective}}});var Ce=new r,be=new r,Oe=new r,Fe=new r;k.prototype.computeCullingVolume=function(t,e,i){if(!a(t))throw new w("position is required.");if(!a(e))throw new w("direction is required.");if(!a(i))throw new w("up is required.");let n=this._cullingVolume.planes,o=this.top,s=this.bottom,f=this.right,u=this.left,h=this.near,p=this.far,l=r.cross(e,i,Ce),c=be;r.multiplyByScalar(e,h,c),r.add(t,c,c);let m=Oe;r.multiplyByScalar(e,p,m),r.add(t,m,m);let d=Fe;r.multiplyByScalar(l,u,d),r.add(c,d,d),r.subtract(d,t,d),r.normalize(d,d),r.cross(d,i,d),r.normalize(d,d);let _=n[0];return a(_)||(_=n[0]=new C),_.x=d.x,_.y=d.y,_.z=d.z,_.w=-r.dot(d,t),r.multiplyByScalar(l,f,d),r.add(c,d,d),r.subtract(d,t,d),r.cross(i,d,d),r.normalize(d,d),_=n[1],a(_)||(_=n[1]=new C),_.x=d.x,_.y=d.y,_.z=d.z,_.w=-r.dot(d,t),r.multiplyByScalar(i,s,d),r.add(c,d,d),r.subtract(d,t,d),r.cross(l,d,d),r.normalize(d,d),_=n[2],a(_)||(_=n[2]=new C),_.x=d.x,_.y=d.y,_.z=d.z,_.w=-r.dot(d,t),r.multiplyByScalar(i,o,d),r.add(c,d,d),r.subtract(d,t,d),r.cross(d,l,d),r.normalize(d,d),_=n[3],a(_)||(_=n[3]=new C),_.x=d.x,_.y=d.y,_.z=d.z,_.w=-r.dot(d,t),_=n[4],a(_)||(_=n[4]=new C),_.x=e.x,_.y=e.y,_.z=e.z,_.w=-r.dot(e,c),r.negate(e,d),_=n[5],a(_)||(_=n[5]=new C),_.x=d.x,_.y=d.y,_.z=d.z,_.w=-r.dot(d,m),this._cullingVolume},k.prototype.getPixelDimensions=function(t,e,r,i,n){if(te(this),!a(t)||!a(e))throw new w("Both drawingBufferWidth and drawingBufferHeight are required.");if(t<=0)throw new w("drawingBufferWidth must be greater than zero.");if(e<=0)throw new w("drawingBufferHeight must be greater than zero.");if(!a(r))throw new w("distance is required.");if(!a(i))throw new w("pixelRatio is required");if(i<=0)throw new w("pixelRatio must be greater than zero.");if(!a(n))throw new w("A result object is required.");let o=1/this.near,s=this.top*o,f=2*i*r*s/e;s=this.right*o;let u=2*i*r*s/t;return n.x=u,n.y=f,n},k.prototype.clone=function(t){return a(t)||(t=new k),t.right=this.right,t.left=this.left,t.top=this.top,t.bottom=this.bottom,t.near=this.near,t.far=this.far,t._left=void 0,t._right=void 0,t._top=void 0,t._bottom=void 0,t._near=void 0,t._far=void 0,t},k.prototype.equals=function(t){return a(t)&&t instanceof k&&this.right===t.right&&this.left===t.left&&this.top===t.top&&this.bottom===t.bottom&&this.near===t.near&&this.far===t.far},k.prototype.equalsEpsilon=function(t,e,r){return t===this||a(t)&&t instanceof k&&O.equalsEpsilon(this.right,t.right,e,r)&&O.equalsEpsilon(this.left,t.left,e,r)&&O.equalsEpsilon(this.top,t.top,e,r)&&O.equalsEpsilon(this.bottom,t.bottom,e,r)&&O.equalsEpsilon(this.near,t.near,e,r)&&O.equalsEpsilon(this.far,t.far,e,r)};var se=k;function v(t){t=t??A.EMPTY_OBJECT,this._offCenterFrustum=new se,this.fov=t.fov,this._fov=void 0,this._fovy=void 0,this._sseDenominator=void 0,this.aspectRatio=t.aspectRatio,this._aspectRatio=void 0,this.near=t.near??1,this._near=this.near,this.far=t.far??5e8,this._far=this.far,this.xOffset=t.xOffset??0,this._xOffset=this.xOffset,this.yOffset=t.yOffset??0,this._yOffset=this.yOffset}function T(t){if(!(a(t.fov)&&a(t.aspectRatio)&&a(t.near)&&a(t.far)))throw new w("fov, aspectRatio, near, or far parameters are not set.");if(t.fov===t._fov&&t.aspectRatio===t._aspectRatio&&t.near===t._near&&t.far===t._far&&t.xOffset===t._xOffset&&t.yOffset===t._yOffset)return;if(b.typeOf.number.greaterThanOrEquals("fov",t.fov,0),b.typeOf.number.lessThan("fov",t.fov,Math.PI),b.typeOf.number.greaterThanOrEquals("aspectRatio",t.aspectRatio,0),b.typeOf.number.greaterThanOrEquals("near",t.near,0),t.near>t.far)throw new w("near must be less than far.");t._aspectRatio=t.aspectRatio,t._fov=t.fov,t._fovy=t.aspectRatio<=1?t.fov:2*Math.atan(Math.tan(.5*t.fov)/t.aspectRatio),t._near=t.near,t._far=t.far,t._sseDenominator=2*Math.tan(.5*t._fovy),t._xOffset=t.xOffset,t._yOffset=t.yOffset;let e=t._offCenterFrustum;e.top=t.near*Math.tan(.5*t._fovy),e.bottom=-e.top,e.right=t.aspectRatio*e.top,e.left=-e.right,e.near=t.near,e.far=t.far,e.right+=t.xOffset,e.left+=t.xOffset,e.top+=t.yOffset,e.bottom+=t.yOffset}v.packedLength=6,v.pack=function(t,e,r){return b.typeOf.object("value",t),b.defined("array",e),r=r??0,e[r++]=t.fov,e[r++]=t.aspectRatio,e[r++]=t.near,e[r++]=t.far,e[r++]=t.xOffset,e[r]=t.yOffset,e},v.unpack=function(t,e,r){return b.defined("array",t),e=e??0,a(r)||(r=new v),r.fov=t[e++],r.aspectRatio=t[e++],r.near=t[e++],r.far=t[e++],r.xOffset=t[e++],r.yOffset=t[e],r},Object.defineProperties(v.prototype,{projectionMatrix:{get:function(){return T(this),this._offCenterFrustum.projectionMatrix}},infiniteProjectionMatrix:{get:function(){return T(this),this._offCenterFrustum.infiniteProjectionMatrix}},fovy:{get:function(){return T(this),this._fovy}},sseDenominator:{get:function(){return T(this),this._sseDenominator}},offCenterFrustum:{get:function(){return T(this),this._offCenterFrustum}}}),v.prototype.computeCullingVolume=function(t,e,r){return T(this),this._offCenterFrustum.computeCullingVolume(t,e,r)},v.prototype.getPixelDimensions=function(t,e,r,i,a){return T(this),this._offCenterFrustum.getPixelDimensions(t,e,r,i,a)},v.prototype.clone=function(t){return a(t)||(t=new v),t.aspectRatio=this.aspectRatio,t.fov=this.fov,t.near=this.near,t.far=this.far,t._aspectRatio=void 0,t._fov=void 0,t._near=void 0,t._far=void 0,this._offCenterFrustum.clone(t._offCenterFrustum),t},v.prototype.equals=function(t){return!!(a(t)&&t instanceof v)&&(T(this),T(t),this.fov===t.fov&&this.aspectRatio===t.aspectRatio&&this._offCenterFrustum.equals(t._offCenterFrustum))},v.prototype.equalsEpsilon=function(t,e,r){return!!(a(t)&&t instanceof v)&&(T(this),T(t),O.equalsEpsilon(this.fov,t.fov,e,r)&&O.equalsEpsilon(this.aspectRatio,t.aspectRatio,e,r)&&this._offCenterFrustum.equalsEpsilon(t._offCenterFrustum,e,r))};var L=v,I=0,Pe=1;function u(t){b.typeOf.object("options",t),b.typeOf.object("options.frustum",t.frustum),b.typeOf.object("options.origin",t.origin),b.typeOf.object("options.orientation",t.orientation);let e,i,a=t.frustum,n=t.orientation,o=t.origin,s=t.vertexFormat??N.DEFAULT,f=t._drawNearPlane??!0;a instanceof L?(e=I,i=L.packedLength):a instanceof V&&(e=Pe,i=V.packedLength),this._frustumType=e,this._frustum=a.clone(),this._origin=r.clone(o),this._orientation=D.clone(n),this._drawNearPlane=f,this._vertexFormat=s,this._workerName="createFrustumGeometry",this.packedLength=2+i+r.packedLength+D.packedLength+N.packedLength}u.pack=function(t,e,i){b.typeOf.object("value",t),b.defined("array",e),i=i??0;let a=t._frustumType,n=t._frustum;return e[i++]=a,a===I?(L.pack(n,e,i),i+=L.packedLength):(V.pack(n,e,i),i+=V.packedLength),r.pack(t._origin,e,i),i+=r.packedLength,D.pack(t._orientation,e,i),i+=D.packedLength,N.pack(t._vertexFormat,e,i),e[i+=N.packedLength]=t._drawNearPlane?1:0,e};var ze=new L,xe=new V,ve=new D,Re=new r,Te=new N;function W(t,e,r,i,n,o,s,f){let u=t/3*2;for(let n=0;n<4;++n)a(e)&&(e[t]=o.x,e[t+1]=o.y,e[t+2]=o.z),a(r)&&(r[t]=s.x,r[t+1]=s.y,r[t+2]=s.z),a(i)&&(i[t]=f.x,i[t+1]=f.y,i[t+2]=f.z),t+=3;n[u]=0,n[u+1]=0,n[u+2]=1,n[u+3]=0,n[u+4]=1,n[u+5]=1,n[u+6]=0,n[u+7]=1}u.unpack=function(t,e,i){b.defined("array",t),e=e??0;let n,o=t[e++];o===I?(n=L.unpack(t,e,ze),e+=L.packedLength):(n=V.unpack(t,e,xe),e+=V.packedLength);let s=r.unpack(t,e,Re);e+=r.packedLength;let f=D.unpack(t,e,ve);e+=D.packedLength;let h=N.unpack(t,e,Te),p=1===t[e+=N.packedLength];if(!a(i))return new u({frustum:n,origin:s,orientation:f,vertexFormat:h,_drawNearPlane:p});let l=o===i._frustumType?i._frustum:void 0;return i._frustum=n.clone(l),i._frustumType=o,i._origin=r.clone(s,i._origin),i._orientation=D.clone(f,i._orientation),i._vertexFormat=N.clone(h,i._vertexFormat),i._drawNearPlane=p,i};var qe=new G,Me=new F,ne=new F,pe=new r,le=new r,we=new r,ke=new r,Se=new r,De=new r,U=new Array(3),Z=new Array(4);Z[0]=new C(-1,-1,1,1),Z[1]=new C(1,-1,1,1),Z[2]=new C(1,1,1,1),Z[3]=new C(-1,1,1,1);var _e=new Array(4);for(let t=0;t<4;++t)_e[t]=new C;u._computeNearFarPlanes=function(t,e,i,n,o,s,f,u){let h=G.fromQuaternion(e,qe),p=s??pe,l=f??le,c=u??we;p=G.getColumn(h,0,p),l=G.getColumn(h,1,l),c=G.getColumn(h,2,c),r.normalize(p,p),r.normalize(l,l),r.normalize(c,c),r.negate(p,p);let w,m,d=F.computeView(t,c,l,p,Me),_=n.projectionMatrix;if(i===I){let t=F.multiply(_,d,ne);m=F.inverse(t,ne)}else w=F.inverseTransformation(d,ne);a(m)?(U[0]=n.near,U[1]=n.far):(U[0]=0,U[1]=n.near,U[2]=n.far);for(let e=0;e<2;++e)for(let i=0;i<4;++i){let s=C.clone(Z[i],_e[i]);if(a(m)){s=F.multiplyByVector(m,s,s);let i=1/s.w;r.multiplyByScalar(s,i,s),r.subtract(s,t,s),r.normalize(s,s);let a=r.dot(c,s);r.multiplyByScalar(s,U[e]/a,s),r.add(s,t,s)}else{let t=n.offCenterFrustum;a(t)&&(n=t);let r=U[e],i=U[e+1];s.x=.5*(s.x*(n.right-n.left)+n.left+n.right),s.y=.5*(s.y*(n.top-n.bottom)+n.bottom+n.top),s.z=.5*(s.z*(r-i)-r-i),s.w=1,F.multiplyByVector(w,s,s)}o[12*e+3*i]=s.x,o[12*e+3*i+1]=s.y,o[12*e+3*i+2]=s.z}},u.createGeometry=function(t){let e=t._frustumType,i=t._frustum,n=t._origin,o=t._orientation,s=t._drawNearPlane,f=t._vertexFormat,h=s?6:5,p=new Float64Array(72);u._computeNearFarPlanes(n,o,e,i,p);let l=24;p[l]=p[12],p[l+1]=p[13],p[l+2]=p[14],p[l+3]=p[0],p[l+4]=p[1],p[l+5]=p[2],p[l+6]=p[9],p[l+7]=p[10],p[l+8]=p[11],p[l+9]=p[21],p[l+10]=p[22],p[l+11]=p[23],l+=12,p[l]=p[15],p[l+1]=p[16],p[l+2]=p[17],p[l+3]=p[3],p[l+4]=p[4],p[l+5]=p[5],p[l+6]=p[0],p[l+7]=p[1],p[l+8]=p[2],p[l+9]=p[12],p[l+10]=p[13],p[l+11]=p[14],l+=12,p[l]=p[3],p[l+1]=p[4],p[l+2]=p[5],p[l+3]=p[15],p[l+4]=p[16],p[l+5]=p[17],p[l+6]=p[18],p[l+7]=p[19],p[l+8]=p[20],p[l+9]=p[6],p[l+10]=p[7],p[l+11]=p[8],l+=12,p[l]=p[6],p[l+1]=p[7],p[l+2]=p[8],p[l+3]=p[18],p[l+4]=p[19],p[l+5]=p[20],p[l+6]=p[21],p[l+7]=p[22],p[l+8]=p[23],p[l+9]=p[9],p[l+10]=p[10],p[l+11]=p[11],s||(p=p.subarray(12));let c=new ae({position:new J({componentDatatype:H.DOUBLE,componentsPerAttribute:3,values:p})});if(a(f.normal)||a(f.tangent)||a(f.bitangent)||a(f.st)){let t=a(f.normal)?new Float32Array(12*h):void 0,e=a(f.tangent)?new Float32Array(12*h):void 0,i=a(f.bitangent)?new Float32Array(12*h):void 0,n=a(f.st)?new Float32Array(8*h):void 0,o=pe,u=le,p=we,w=r.negate(o,ke),m=r.negate(u,Se),d=r.negate(p,De);l=0,s&&(W(l,t,e,i,n,d,o,u),l+=12),W(l,t,e,i,n,p,w,u),l+=12,W(l,t,e,i,n,w,d,u),l+=12,W(l,t,e,i,n,m,d,w),l+=12,W(l,t,e,i,n,o,p,u),l+=12,W(l,t,e,i,n,u,p,w),a(t)&&(c.normal=new J({componentDatatype:H.FLOAT,componentsPerAttribute:3,values:t})),a(e)&&(c.tangent=new J({componentDatatype:H.FLOAT,componentsPerAttribute:3,values:e})),a(i)&&(c.bitangent=new J({componentDatatype:H.FLOAT,componentsPerAttribute:3,values:i})),a(n)&&(c.st=new J({componentDatatype:H.FLOAT,componentsPerAttribute:2,values:n}))}let w=new Uint16Array(6*h);for(let t=0;t<h;++t){let e=6*t,r=4*t;w[e]=r,w[e+1]=r+1,w[e+2]=r+2,w[e+3]=r,w[e+4]=r+2,w[e+5]=r+3}return new re({attributes:c,indices:w,primitiveType:oe.TRIANGLES,boundingSphere:ie.fromVertices(p)})};var Et=u;export{V as a,L as b,Et as c};
|
|
@@ -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{a as e}from"./chunk-5DGDPBQU.js";import{a as r}from"./chunk-BKIYVF74.js";import"./chunk-LN2UT4R3.js";import"./chunk-QNPYEODC.js";import"./chunk-G72JFEXW.js";import"./chunk-6W2XFGWI.js";import"./chunk-SRA5MBUT.js";import"./chunk-5AAMOBJK.js";import"./chunk-4WQ4VT5S.js";import"./chunk-6EINM7EY.js";import"./chunk-A4I25VN7.js";import"./chunk-D3TVNJ6W.js";import"./chunk-3VUCSHGU.js";import"./chunk-LNJEJFV5.js";import"./chunk-BPABSUDY.js";import"./chunk-ATKJRN2G.js";import"./chunk-RDX4QSUS.js";import"./chunk-G3GDHHWO.js";import"./chunk-2AIOP76V.js";import"./chunk-IAE6APK2.js";import"./chunk-3E7FIXV7.js";import"./chunk-NZBME2JK.js";import"./chunk-6DLS2UKD.js";function n(r,o){let t=e.unpackCombineGeometryParameters(r),m=e.combineGeometry(t);return e.packCombineGeometryResults(m,o)}var c=r(n);export{c as default};
|
|
@@ -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{a as r}from"./chunk-ALIHIWSS.js";import"./chunk-ML6MR2RA.js";import"./chunk-AKELQO2L.js";import"./chunk-6EINM7EY.js";import"./chunk-A4I25VN7.js";import"./chunk-D3TVNJ6W.js";import"./chunk-3VUCSHGU.js";import"./chunk-LNJEJFV5.js";import"./chunk-BPABSUDY.js";import"./chunk-ATKJRN2G.js";import"./chunk-RDX4QSUS.js";import"./chunk-G3GDHHWO.js";import"./chunk-2AIOP76V.js";import"./chunk-IAE6APK2.js";import"./chunk-3E7FIXV7.js";import"./chunk-NZBME2JK.js";import{f as o}from"./chunk-6DLS2UKD.js";function i(t,n){return o(n)&&(t=r.unpack(t,n)),r.createGeometry(t)}var a=i;export{a as default};
|
|
@@ -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{a as d}from"./chunk-ML6MR2RA.js";import{a as l}from"./chunk-6EINM7EY.js";import{b as O,c as h,d as p}from"./chunk-A4I25VN7.js";import{c as A}from"./chunk-D3TVNJ6W.js";import"./chunk-3VUCSHGU.js";import"./chunk-LNJEJFV5.js";import"./chunk-BPABSUDY.js";import{a}from"./chunk-ATKJRN2G.js";import"./chunk-RDX4QSUS.js";import"./chunk-G3GDHHWO.js";import"./chunk-2AIOP76V.js";import{a as m,c as s}from"./chunk-IAE6APK2.js";import"./chunk-3E7FIXV7.js";import{a as b,b as r}from"./chunk-NZBME2JK.js";import{f as c}from"./chunk-6DLS2UKD.js";var g=new m;function f(t){let e=(t=t??s.EMPTY_OBJECT).minimum,n=t.maximum;if(r.typeOf.object("min",e),r.typeOf.object("max",n),c(t.offsetAttribute)&&t.offsetAttribute===d.TOP)throw new b("GeometryOffsetAttribute.TOP is not a supported options.offsetAttribute for this geometry.");this._min=m.clone(e),this._max=m.clone(n),this._offsetAttribute=t.offsetAttribute,this._workerName="createBoxOutlineGeometry"}f.fromDimensions=function(t){let e=(t=t??s.EMPTY_OBJECT).dimensions;r.typeOf.object("dimensions",e),r.typeOf.number.greaterThanOrEquals("dimensions.x",e.x,0),r.typeOf.number.greaterThanOrEquals("dimensions.y",e.y,0),r.typeOf.number.greaterThanOrEquals("dimensions.z",e.z,0);let n=m.multiplyByScalar(e,.5,new m);return new f({minimum:m.negate(n,new m),maximum:n,offsetAttribute:t.offsetAttribute})},f.fromAxisAlignedBoundingBox=function(t){return r.typeOf.object("boundindBox",t),new f({minimum:t.minimum,maximum:t.maximum})},f.packedLength=2*m.packedLength+1,f.pack=function(t,e,n){return r.typeOf.object("value",t),r.defined("array",e),n=n??0,m.pack(t._min,e,n),m.pack(t._max,e,n+m.packedLength),e[n+2*m.packedLength]=t._offsetAttribute??-1,e};var w=new m,x=new m,_={minimum:w,maximum:x,offsetAttribute:void 0};f.unpack=function(t,e,n){r.defined("array",t),e=e??0;let i=m.unpack(t,e,w),o=m.unpack(t,e+m.packedLength,x),a=t[e+2*m.packedLength];return c(n)?(n._min=m.clone(i,n._min),n._max=m.clone(o,n._max),n._offsetAttribute=-1===a?void 0:a,n):(_.offsetAttribute=-1===a?void 0:a,new f(_))},f.createGeometry=function(t){let e=t._min,n=t._max;if(m.equals(e,n))return;let r=new l,i=new Uint16Array(24),o=new Float64Array(24);o[0]=e.x,o[1]=e.y,o[2]=e.z,o[3]=n.x,o[4]=e.y,o[5]=e.z,o[6]=n.x,o[7]=n.y,o[8]=e.z,o[9]=e.x,o[10]=n.y,o[11]=e.z,o[12]=e.x,o[13]=e.y,o[14]=n.z,o[15]=n.x,o[16]=e.y,o[17]=n.z,o[18]=n.x,o[19]=n.y,o[20]=n.z,o[21]=e.x,o[22]=n.y,o[23]=n.z,r.position=new p({componentDatatype:a.DOUBLE,componentsPerAttribute:3,values:o}),i[0]=4,i[1]=5,i[2]=5,i[3]=6,i[4]=6,i[5]=7,i[6]=7,i[7]=4,i[8]=0,i[9]=1,i[10]=1,i[11]=2,i[12]=2,i[13]=3,i[14]=3,i[15]=0,i[16]=0,i[17]=4,i[18]=1,i[19]=5,i[20]=2,i[21]=6,i[22]=3,i[23]=7;let u=m.subtract(n,e,g),s=.5*m.magnitude(u);if(c(t._offsetAttribute)){let e=o.length,n=t._offsetAttribute===d.NONE?0:1,m=new Uint8Array(e/3).fill(n);r.applyOffset=new p({componentDatatype:a.UNSIGNED_BYTE,componentsPerAttribute:1,values:m})}return new h({attributes:r,indices:i,primitiveType:O.LINES,boundingSphere:new A(m.ZERO,s),offsetAttribute:t._offsetAttribute})};var y=f;function L(t,e){return c(e)&&(t=y.unpack(t,e)),y.createGeometry(t)}var V=L;export{V as default};
|
|
@@ -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{a as l}from"./chunk-DM7KUSL2.js";import"./chunk-P7N43FDO.js";import"./chunk-XRJOFXJF.js";import"./chunk-QNPYEODC.js";import"./chunk-G72JFEXW.js";import"./chunk-6W2XFGWI.js";import"./chunk-ML6MR2RA.js";import{a as m}from"./chunk-AKELQO2L.js";import"./chunk-SRA5MBUT.js";import"./chunk-5AAMOBJK.js";import"./chunk-4WQ4VT5S.js";import"./chunk-6EINM7EY.js";import"./chunk-A4I25VN7.js";import"./chunk-D3TVNJ6W.js";import"./chunk-3VUCSHGU.js";import"./chunk-LNJEJFV5.js";import"./chunk-BPABSUDY.js";import"./chunk-ATKJRN2G.js";import"./chunk-RDX4QSUS.js";import"./chunk-G3GDHHWO.js";import{c as s}from"./chunk-2AIOP76V.js";import{a,c as _}from"./chunk-IAE6APK2.js";import"./chunk-3E7FIXV7.js";import{b as p}from"./chunk-NZBME2JK.js";import{f as d}from"./chunk-6DLS2UKD.js";function n(e){let t=(e=e??_.EMPTY_OBJECT).radius;p.typeOf.number("radius",t);let i={center:e.center,semiMajorAxis:t,semiMinorAxis:t,ellipsoid:e.ellipsoid,height:e.height,extrudedHeight:e.extrudedHeight,granularity:e.granularity,vertexFormat:e.vertexFormat,stRotation:e.stRotation,shadowVolume:e.shadowVolume};this._ellipseGeometry=new l(i),this._workerName="createCircleGeometry"}n.packedLength=l.packedLength,n.pack=function(e,t,i){return p.typeOf.object("value",e),l.pack(e._ellipseGeometry,t,i)};var h=new l({center:new a,semiMajorAxis:1,semiMinorAxis:1}),t={center:new a,radius:void 0,ellipsoid:s.clone(s.default),height:void 0,extrudedHeight:void 0,granularity:void 0,vertexFormat:new m,stRotation:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0,shadowVolume:void 0};n.unpack=function(e,i,o){let r=l.unpack(e,i,h);return t.center=a.clone(r._center,t.center),t.ellipsoid=s.clone(r._ellipsoid,t.ellipsoid),t.ellipsoid=s.clone(r._ellipsoid,h._ellipsoid),t.height=r._height,t.extrudedHeight=r._extrudedHeight,t.granularity=r._granularity,t.vertexFormat=m.clone(r._vertexFormat,t.vertexFormat),t.stRotation=r._stRotation,t.shadowVolume=r._shadowVolume,d(o)?(t.semiMajorAxis=r._semiMajorAxis,t.semiMinorAxis=r._semiMinorAxis,o._ellipseGeometry=new l(t),o):(t.radius=r._semiMajorAxis,new n(t))},n.createGeometry=function(e){return l.createGeometry(e._ellipseGeometry)},n.createShadowVolume=function(e,t,i){let o=e._ellipseGeometry._granularity,r=e._ellipseGeometry._ellipsoid,s=t(o,r),l=i(o,r);return new n({center:e._ellipseGeometry._center,radius:e._ellipseGeometry._semiMajorAxis,ellipsoid:r,stRotation:e._ellipseGeometry._stRotation,granularity:o,extrudedHeight:s,height:l,vertexFormat:m.POSITION_ONLY,shadowVolume:!0})},Object.defineProperties(n.prototype,{rectangle:{get:function(){return this._ellipseGeometry.rectangle}},textureCoordinateRotationPoints:{get:function(){return this._ellipseGeometry.textureCoordinateRotationPoints}}});var c=n;function g(e,t){return d(t)&&(e=c.unpack(e,t)),e._ellipseGeometry._center=a.clone(e._ellipseGeometry._center),e._ellipseGeometry._ellipsoid=s.clone(e._ellipseGeometry._ellipsoid),c.createGeometry(e)}var V=g;export{V as default};
|
|
@@ -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{a as n}from"./chunk-QS7V5G6Y.js";import"./chunk-P7N43FDO.js";import"./chunk-ML6MR2RA.js";import"./chunk-4WQ4VT5S.js";import"./chunk-6EINM7EY.js";import"./chunk-A4I25VN7.js";import"./chunk-D3TVNJ6W.js";import"./chunk-3VUCSHGU.js";import"./chunk-LNJEJFV5.js";import"./chunk-BPABSUDY.js";import"./chunk-ATKJRN2G.js";import"./chunk-RDX4QSUS.js";import"./chunk-G3GDHHWO.js";import{c as s}from"./chunk-2AIOP76V.js";import{a as o,c}from"./chunk-IAE6APK2.js";import"./chunk-3E7FIXV7.js";import{b as d}from"./chunk-NZBME2JK.js";import{f as a}from"./chunk-6DLS2UKD.js";function m(e){let i=(e=e??c.EMPTY_OBJECT).radius;d.typeOf.number("radius",i);let r={center:e.center,semiMajorAxis:i,semiMinorAxis:i,ellipsoid:e.ellipsoid,height:e.height,extrudedHeight:e.extrudedHeight,granularity:e.granularity,numberOfVerticalLines:e.numberOfVerticalLines};this._ellipseGeometry=new n(r),this._workerName="createCircleOutlineGeometry"}m.packedLength=n.packedLength,m.pack=function(e,i,r){return d.typeOf.object("value",e),n.pack(e._ellipseGeometry,i,r)};var p=new n({center:new o,semiMajorAxis:1,semiMinorAxis:1}),i={center:new o,radius:void 0,ellipsoid:s.clone(s.UNIT_SPHERE),height:void 0,extrudedHeight:void 0,granularity:void 0,numberOfVerticalLines:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0};m.unpack=function(e,r,t){let c=n.unpack(e,r,p);return i.center=o.clone(c._center,i.center),i.ellipsoid=s.clone(c._ellipsoid,i.ellipsoid),i.height=c._height,i.extrudedHeight=c._extrudedHeight,i.granularity=c._granularity,i.numberOfVerticalLines=c._numberOfVerticalLines,a(t)?(i.semiMajorAxis=c._semiMajorAxis,i.semiMinorAxis=c._semiMinorAxis,t._ellipseGeometry=new n(i),t):(i.radius=c._semiMajorAxis,new m(i))},m.createGeometry=function(e){return n.createGeometry(e._ellipseGeometry)};var u=m;function f(e,i){return a(i)&&(e=u.unpack(e,i)),e._ellipseGeometry._center=o.clone(e._ellipseGeometry._center),e._ellipseGeometry._ellipsoid=s.clone(e._ellipseGeometry._ellipsoid),u.createGeometry(e)}var E=f;export{E as default};
|
|
@@ -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{a as et}from"./chunk-UA7PAMQQ.js";import{a as Q}from"./chunk-MOHWP7VV.js";import"./chunk-P5EFSOUF.js";import{a as u}from"./chunk-IEITL4VO.js";import"./chunk-AJH5KBOO.js";import{a as I}from"./chunk-XRJOFXJF.js";import{a as $}from"./chunk-QNPYEODC.js";import"./chunk-G72JFEXW.js";import"./chunk-6W2XFGWI.js";import{a as f}from"./chunk-AKELQO2L.js";import"./chunk-BDWA46XV.js";import"./chunk-5VFNV3LW.js";import{b as ot}from"./chunk-TCOMWBL2.js";import{a as tt}from"./chunk-G2QPRBZU.js";import"./chunk-37ETYCYM.js";import"./chunk-SRA5MBUT.js";import"./chunk-5AAMOBJK.js";import{a as J}from"./chunk-4WQ4VT5S.js";import{a as X}from"./chunk-6EINM7EY.js";import{b as W,c as Y,d as z}from"./chunk-A4I25VN7.js";import{c as K}from"./chunk-D3TVNJ6W.js";import"./chunk-3VUCSHGU.js";import{h as q}from"./chunk-LNJEJFV5.js";import"./chunk-BPABSUDY.js";import{a as B}from"./chunk-ATKJRN2G.js";import"./chunk-RDX4QSUS.js";import"./chunk-G3GDHHWO.js";import{b as H,c as m}from"./chunk-2AIOP76V.js";import{a as i,b as g,c as U}from"./chunk-IAE6APK2.js";import{a as V}from"./chunk-3E7FIXV7.js";import{b as G}from"./chunk-NZBME2JK.js";import{f as d}from"./chunk-6DLS2UKD.js";var st=new i,at=new et,pt=new H,lt=new H,mt=new i,ft=new i,ut=new i,M=new i,yt=new i,ht=new i,nt=new q,dt=new g,gt=new g,Pt=new i;function wt(t,e,n,o,r,a,s,c,p){let l=t.positions,u=ot.triangulate(t.positions2D,t.holes);u.length<3&&(u=[0,1,2]);let m=J.createTypedArray(l.length,u.length);m.set(u);let h=dt;if(0!==o){let t=q.fromAxisAngle(s,o,nt);if(h=g.fromQuaternion(t,h),e.tangent||e.bitangent){t=q.fromAxisAngle(s,-o,nt);let n=g.fromQuaternion(t,gt);c=i.normalize(g.multiplyByVector(n,c,c),c),e.bitangent&&(p=i.normalize(i.cross(s,c,p),p))}}else h=g.clone(g.IDENTITY,h);let y=lt;e.st&&(y.x=n.x,y.y=n.y);let f=l.length,k=3*f,A=new Float64Array(k),x=e.normal?new Float32Array(k):void 0,j=e.tangent?new Float32Array(k):void 0,w=e.bitangent?new Float32Array(k):void 0,P=e.st?new Float32Array(2*f):void 0,F=0,v=0,b=0,_=0,T=0;for(let t=0;t<f;t++){let o=l[t];if(A[F++]=o.x,A[F++]=o.y,A[F++]=o.z,e.st)if(d(r)&&r.positions.length===f)P[T++]=r.positions[t].x,P[T++]=r.positions[t].y;else{let t=a(g.multiplyByVector(h,o,st),pt);H.subtract(t,y,t);let e=V.clamp(t.x/n.width,0,1),i=V.clamp(t.y/n.height,0,1);P[T++]=e,P[T++]=i}e.normal&&(x[v++]=s.x,x[v++]=s.y,x[v++]=s.z),e.tangent&&(j[_++]=c.x,j[_++]=c.y,j[_++]=c.z),e.bitangent&&(w[b++]=p.x,w[b++]=p.y,w[b++]=p.z)}let E=new X;return e.position&&(E.position=new z({componentDatatype:B.DOUBLE,componentsPerAttribute:3,values:A})),e.normal&&(E.normal=new z({componentDatatype:B.FLOAT,componentsPerAttribute:3,values:x})),e.tangent&&(E.tangent=new z({componentDatatype:B.FLOAT,componentsPerAttribute:3,values:j})),e.bitangent&&(E.bitangent=new z({componentDatatype:B.FLOAT,componentsPerAttribute:3,values:w})),e.st&&(E.st=new z({componentDatatype:B.FLOAT,componentsPerAttribute:2,values:P})),new Y({attributes:E,indices:m,primitiveType:W.TRIANGLES})}function x(t){let e=(t=t??U.EMPTY_OBJECT).polygonHierarchy,n=t.textureCoordinates;G.defined("options.polygonHierarchy",e);let o=t.vertexFormat??f.DEFAULT;this._vertexFormat=f.clone(o),this._polygonHierarchy=e,this._stRotation=t.stRotation??0,this._ellipsoid=m.clone(t.ellipsoid??m.default),this._workerName="createCoplanarPolygonGeometry",this._textureCoordinates=n,this.packedLength=u.computeHierarchyPackedLength(e,i)+f.packedLength+m.packedLength+(d(n)?u.computeHierarchyPackedLength(n,H):1)+2}x.fromPositions=function(t){return t=t??U.EMPTY_OBJECT,G.defined("options.positions",t.positions),new x({polygonHierarchy:{positions:t.positions},vertexFormat:t.vertexFormat,stRotation:t.stRotation,ellipsoid:t.ellipsoid,textureCoordinates:t.textureCoordinates})},x.pack=function(t,e,n){return G.typeOf.object("value",t),G.defined("array",e),n=n??0,n=u.packPolygonHierarchy(t._polygonHierarchy,e,n,i),m.pack(t._ellipsoid,e,n),n+=m.packedLength,f.pack(t._vertexFormat,e,n),n+=f.packedLength,e[n++]=t._stRotation,d(t._textureCoordinates)?n=u.packPolygonHierarchy(t._textureCoordinates,e,n,H):e[n++]=-1,e[n++]=t.packedLength,e};var _t=m.clone(m.UNIT_SPHERE),At=new f,bt={polygonHierarchy:{}};x.unpack=function(t,e,n){G.defined("array",t),e=e??0;let o=u.unpackPolygonHierarchy(t,e,i);e=o.startingIndex,delete o.startingIndex;let r=m.unpack(t,e,_t);e+=m.packedLength;let a=f.unpack(t,e,At);e+=f.packedLength;let s=t[e++],c=-1===t[e]?void 0:u.unpackPolygonHierarchy(t,e,H);d(c)?(e=c.startingIndex,delete c.startingIndex):e++;let p=t[e++];return d(n)||(n=new x(bt)),n._polygonHierarchy=o,n._ellipsoid=m.clone(r,n._ellipsoid),n._vertexFormat=f.clone(a,n._vertexFormat),n._stRotation=s,n._textureCoordinates=c,n.packedLength=p,n},x.createGeometry=function(t){let e=t._vertexFormat,n=t._polygonHierarchy,o=t._stRotation,r=t._textureCoordinates,a=d(r),s=n.positions;if(s=tt(s,i.equalsEpsilon,!0),s.length<3)return;let c=mt,p=ft,l=ut,m=yt,h=ht;if(!Q.computeProjectTo2DArguments(s,M,m,h))return;if(c=i.cross(m,h,c),c=i.normalize(c,c),!i.equalsEpsilon(M,i.ZERO,V.EPSILON6)){let e=t._ellipsoid.geodeticSurfaceNormal(M,Pt);i.dot(c,e)<0&&(c=i.negate(c,c),m=i.negate(m,m))}let g=Q.createProjectPointsTo2DFunction(M,m,h),y=Q.createProjectPointTo2DFunction(M,m,h);e.tangent&&(p=i.clone(m,p)),e.bitangent&&(l=i.clone(h,l));let f=u.polygonsFromHierarchy(n,a,g,!1),k=f.hierarchy,A=f.polygons,x=a?u.polygonsFromHierarchy(r,!0,(function(t){return t}),!1).polygons:void 0;if(0===k.length)return;s=k[0].outerRing;let j=K.fromPoints(s),w=u.computeBoundingRectangle(c,y,s,o,at),P=[];for(let t=0;t<A.length;t++){let n=new I({geometry:wt(A[t],e,w,o,a?x[t]:void 0,y,c,p,l)});P.push(n)}let F=$.combineInstances(P)[0];F.attributes.position.values=new Float64Array(F.attributes.position.values),F.indices=J.createTypedArray(F.attributes.position.values.length/3,F.indices);let v=F.attributes;return e.position||delete v.position,new Y({attributes:v,indices:F.indices,primitiveType:F.primitiveType,boundingSphere:j})};var Z=x;function kt(t,e){return d(e)&&(t=Z.unpack(t,e)),Z.createGeometry(t)}var Xt=kt;export{Xt as default};
|
|
@@ -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{a as T}from"./chunk-MOHWP7VV.js";import"./chunk-P5EFSOUF.js";import{a as l}from"./chunk-IEITL4VO.js";import"./chunk-AJH5KBOO.js";import{a as G}from"./chunk-XRJOFXJF.js";import{a as C}from"./chunk-QNPYEODC.js";import"./chunk-G72JFEXW.js";import"./chunk-6W2XFGWI.js";import"./chunk-BDWA46XV.js";import"./chunk-5VFNV3LW.js";import"./chunk-TCOMWBL2.js";import{a as L}from"./chunk-G2QPRBZU.js";import"./chunk-37ETYCYM.js";import"./chunk-SRA5MBUT.js";import"./chunk-5AAMOBJK.js";import{a as w}from"./chunk-4WQ4VT5S.js";import{a as O}from"./chunk-6EINM7EY.js";import{b,c as d,d as k}from"./chunk-A4I25VN7.js";import{c as P}from"./chunk-D3TVNJ6W.js";import"./chunk-3VUCSHGU.js";import"./chunk-LNJEJFV5.js";import"./chunk-BPABSUDY.js";import{a as H}from"./chunk-ATKJRN2G.js";import"./chunk-RDX4QSUS.js";import"./chunk-G3GDHHWO.js";import{c as g}from"./chunk-2AIOP76V.js";import{a as y,c as u}from"./chunk-IAE6APK2.js";import"./chunk-3E7FIXV7.js";import{b as m}from"./chunk-NZBME2JK.js";import{f}from"./chunk-6DLS2UKD.js";function E(r){let t=r.length,o=new Float64Array(3*t),e=w.createTypedArray(t,2*t),n=0,i=0;for(let s=0;s<t;s++){let c=r[s];o[n++]=c.x,o[n++]=c.y,o[n++]=c.z,e[i++]=s,e[i++]=(s+1)%t}let s=new O({position:new k({componentDatatype:H.DOUBLE,componentsPerAttribute:3,values:o})});return new d({attributes:s,indices:e,primitiveType:b.LINES})}function c(r){let t=(r=r??u.EMPTY_OBJECT).polygonHierarchy;m.defined("options.polygonHierarchy",t),this._polygonHierarchy=t,this._workerName="createCoplanarPolygonOutlineGeometry",this.packedLength=l.computeHierarchyPackedLength(t,y)+1}c.fromPositions=function(r){return r=r??u.EMPTY_OBJECT,m.defined("options.positions",r.positions),new c({polygonHierarchy:{positions:r.positions}})},c.pack=function(r,t,o){return m.typeOf.object("value",r),m.defined("array",t),o=o??0,t[o=l.packPolygonHierarchy(r._polygonHierarchy,t,o,y)]=r.packedLength,t};var v={polygonHierarchy:{}};c.unpack=function(r,t,o){m.defined("array",r),t=t??0;let e=l.unpackPolygonHierarchy(r,t,y);t=e.startingIndex,delete e.startingIndex;let n=r[t];return f(o)||(o=new c(v)),o._polygonHierarchy=e,o.packedLength=n,o},c.createGeometry=function(r){let t=r._polygonHierarchy,o=t.positions;if(o=L(o,y.equalsEpsilon,!0),o.length<3||!T.validOutline(o))return;let e=l.polygonOutlinesFromHierarchy(t,!1);if(0===e.length)return;let n=[];for(let r=0;r<e.length;r++){let t=new G({geometry:E(e[r])});n.push(t)}let i=C.combineInstances(n)[0],s=P.fromPoints(t.positions);return new d({attributes:i.attributes,indices:i.indices,primitiveType:i.primitiveType,boundingSphere:s})};var h=c;function A(r,t){return f(t)&&(r=h.unpack(r,t)),r._ellipsoid=g.clone(r._ellipsoid),h.createGeometry(r)}var Z=A;export{Z as default};
|