@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
|
@@ -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-5Z36UAB7.js";import"./chunk-ML6MR2RA.js";import{a as m}from"./chunk-AKELQO2L.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{a as s}from"./chunk-IAE6APK2.js";import"./chunk-3E7FIXV7.js";import{b as p}from"./chunk-NZBME2JK.js";import{f as c}from"./chunk-6DLS2UKD.js";function a(t){let i=t.radius??1,e={radii:new s(i,i,i),stackPartitions:t.stackPartitions,slicePartitions:t.slicePartitions,vertexFormat:t.vertexFormat};this._ellipsoidGeometry=new r(e),this._workerName="createSphereGeometry"}a.packedLength=r.packedLength,a.pack=function(t,i,e){return p.typeOf.object("value",t),r.pack(t._ellipsoidGeometry,i,e)};var l=new r,i={radius:void 0,radii:new s,vertexFormat:new m,stackPartitions:void 0,slicePartitions:void 0};a.unpack=function(t,e,o){let n=r.unpack(t,e,l);return i.vertexFormat=m.clone(n._vertexFormat,i.vertexFormat),i.stackPartitions=n._stackPartitions,i.slicePartitions=n._slicePartitions,c(o)?(s.clone(n._radii,i.radii),o._ellipsoidGeometry=new r(i),o):(i.radius=n._radii.x,new a(i))},a.createGeometry=function(t){return r.createGeometry(t._ellipsoidGeometry)};var d=a;function f(r,t){return c(t)&&(r=d.unpack(r,t)),d.createGeometry(r)}var w=f;export{w 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-PSIOCLX7.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"./chunk-2AIOP76V.js";import{a as c}from"./chunk-IAE6APK2.js";import"./chunk-3E7FIXV7.js";import{b as u}from"./chunk-NZBME2JK.js";import{f as a}from"./chunk-6DLS2UKD.js";function s(i){let s=i.radius??1,n={radii:new c(s,s,s),stackPartitions:i.stackPartitions,slicePartitions:i.slicePartitions,subdivisions:i.subdivisions};this._ellipsoidGeometry=new t(n),this._workerName="createSphereOutlineGeometry"}s.packedLength=t.packedLength,s.pack=function(i,s,n){return u.typeOf.object("value",i),t.pack(i._ellipsoidGeometry,s,n)};var l=new t,n={radius:void 0,radii:new c,stackPartitions:void 0,slicePartitions:void 0,subdivisions:void 0};s.unpack=function(i,r,o){let e=t.unpack(i,r,l);return n.stackPartitions=e._stackPartitions,n.slicePartitions=e._slicePartitions,n.subdivisions=e._subdivisions,a(o)?(c.clone(e._radii,n.radii),o._ellipsoidGeometry=new t(n),o):(n.radius=e._radii.x,new s(n))},s.createGeometry=function(i){return t.createGeometry(i._ellipsoidGeometry)};var d=s;function m(i,t){return a(t)&&(i=d.unpack(i,t)),d.createGeometry(i)}var h=m;export{h 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}from"./chunk-BKIYVF74.js";import"./chunk-6DLS2UKD.js";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 J}from"./chunk-BKIYVF74.js";import{a as Y}from"./chunk-G72JFEXW.js";import{a as B}from"./chunk-4WQ4VT5S.js";import{c as X,j as W}from"./chunk-LNJEJFV5.js";import"./chunk-BPABSUDY.js";import"./chunk-ATKJRN2G.js";import"./chunk-RDX4QSUS.js";import"./chunk-G3GDHHWO.js";import{a as k,c as _}from"./chunk-2AIOP76V.js";import{a as t}from"./chunk-IAE6APK2.js";import{a as v}from"./chunk-3E7FIXV7.js";import"./chunk-NZBME2JK.js";import"./chunk-6DLS2UKD.js";var V=32767,it=Math.cos(v.toRadians(150)),ct=new k,rt=new t;function at(e,r,s,a,n,i,o){let l=e.length,d=new Float64Array(3*l);for(let f=0;f<l;++f){let l=e[f],c=r[f],h=s[f],u=v.lerp(a.west,a.east,l/V),p=v.lerp(a.south,a.north,c/V),m=v.lerp(n,i,h/V),A=k.fromRadians(u,p,m,ct),w=o.cartographicToCartesian(A,rt);t.pack(w,d,3*f)}return d}function dt(t){let e=t.length,r=new Uint32Array(e+1),s=0;for(let a=0;a<e;++a)r[a]=s,s+=t[a];return r[e]=s,r}var lt=new k,ht=new k;function ft(t,e,r,s){let a=s.length,n=t.length,i=new Uint8Array(n),o=lt,l=ht,d=0;for(let r=0;r<a;r++){let a=s[r],n=a;for(let r=1;r<a;r++){let s=d+r,a=s-1;l.longitude=t[s],l.latitude=e[s],o.longitude=t[a],o.latitude=e[a],k.equals(l,o)&&(n--,i[a]=1)}s[r]=n,d+=a}let f=0;for(let s=0;s<n;s++)1!==i[s]&&(t[f]=t[s],e[f]=e[s],r[f]=r[s],f++)}function ot(t){let e=8*t,r=3*e,s=4*e;this.startEllipsoidNormals=new Float32Array(r),this.endEllipsoidNormals=new Float32Array(r),this.startPositionAndHeights=new Float32Array(s),this.startFaceNormalAndVertexCornerIds=new Float32Array(s),this.endPositionAndHeights=new Float32Array(s),this.endFaceNormalAndHalfWidths=new Float32Array(s),this.vertexBatchIds=new Uint16Array(e),this.indices=B.createTypedArray(e,36*t),this.vec3Offset=0,this.vec4Offset=0,this.batchIdOffset=0,this.indexOffset=0,this.volumeStartIndex=0}var Q=new t,pt=new t;function $(e,r,s,a,n){let i=t.subtract(s,r,pt),o=t.subtract(r,e,Q);return t.normalize(i,i),t.normalize(o,o),t.dot(i,o)<it&&(o=t.multiplyByScalar(o,-1,Q)),t.add(i,o,n),t.equals(n,t.ZERO)&&(n=t.subtract(e,r)),t.cross(n,a,n),t.cross(a,n,n),t.normalize(n,n),n}var st=[0,2,6,0,6,4,0,1,3,0,3,2,0,4,5,0,5,1,5,3,1,5,7,3,7,5,4,7,4,6,7,6,2,7,2,3],j=st.length,tt=new t,ut=new t,mt=new t,At=new t,Nt=new t;ot.prototype.addVolume=function(e,r,s,a,n,i,o,l,d,f){let c=t.add(r,d,tt),h=f.geodeticSurfaceNormal(c,ut);c=t.add(s,d,tt);let u,p=f.geodeticSurfaceNormal(c,At),m=$(e,r,s,h,mt),A=$(a,s,r,p,Nt),k=this.startEllipsoidNormals,w=this.endEllipsoidNormals,N=this.startPositionAndHeights,b=this.startFaceNormalAndVertexCornerIds,g=this.endPositionAndHeights,v=this.endFaceNormalAndHalfWidths,y=this.vertexBatchIds,I=this.batchIdOffset,E=this.vec3Offset,F=this.vec4Offset;for(u=0;u<8;u++)t.pack(h,k,E),t.pack(p,w,E),t.pack(r,N,F),N[F+3]=n,t.pack(s,g,F),g[F+3]=i,t.pack(m,b,F),b[F+3]=u,t.pack(A,v,F),v[F+3]=o,y[I++]=l,E+=3,F+=4;this.batchIdOffset=I,this.vec3Offset=E,this.vec4Offset=F;let x=this.indices,V=this.volumeStartIndex,P=this.indexOffset;for(u=0;u<j;u++)x[P+u]=st[u]+V;this.volumeStartIndex+=8,this.indexOffset+=j};var gt=new W,Et=new _,wt=new t,M=new t,It=new t,xt=new t,T=new t;function Pt(e,r){let s=new Uint16Array(e.positions),a=new Uint16Array(e.widths),n=new Uint32Array(e.counts),i=new Uint16Array(e.batchIds),o=gt,l=Et,d=wt,f=new Float64Array(e.packedBuffer),c=0,h=f[c++],u=f[c++];W.unpack(f,c,o),c+=W.packedLength,_.unpack(f,c,l),c+=_.packedLength,t.unpack(f,c,d);let p,m=s.length/3,A=s.subarray(0,m),k=s.subarray(m,2*m),w=s.subarray(2*m,3*m);Y.zigZagDeltaDecode(A,k,w),ft(A,k,w,n);let N=n.length,b=0;for(p=0;p<N;p++){b+=n[p]-1}let g=new ot(b),y=at(A,k,w,o,h,u,l,d);m=A.length;let I=new Float32Array(3*m);for(p=0;p<m;++p)I[3*p]=y[3*p]-d.x,I[3*p+1]=y[3*p+1]-d.y,I[3*p+2]=y[3*p+2]-d.z;let E=0,F=0;for(p=0;p<N;p++){let e=n[p]-1,r=.5*a[p],s=i[p],o=E;for(let a=0;a<e;a++){let n=t.unpack(I,E,It),i=t.unpack(I,E+3,xt),f=w[F],c=w[F+1];f=v.lerp(h,u,f/V),c=v.lerp(h,u,c/V),F++;let p=M,m=T;if(0===a){let r=o+3*e,s=t.unpack(I,r,M);if(t.equals(s,n))t.unpack(I,r-3,p);else{let e=t.subtract(n,i,M);p=t.add(e,n,M)}}else t.unpack(I,E-3,p);if(a===e-1){let e=t.unpack(I,o,T);if(t.equals(e,i))t.unpack(I,o+3,m);else{let e=t.subtract(i,n,T);m=t.add(e,i,T)}}else t.unpack(I,E+6,m);g.addVolume(p,n,i,m,f,c,r,s,d,l),E+=3}E+=3,F++}let x=g.indices;r.push(g.startEllipsoidNormals.buffer),r.push(g.endEllipsoidNormals.buffer),r.push(g.startPositionAndHeights.buffer),r.push(g.startFaceNormalAndVertexCornerIds.buffer),r.push(g.endPositionAndHeights.buffer),r.push(g.endFaceNormalAndHalfWidths.buffer),r.push(g.vertexBatchIds.buffer),r.push(x.buffer);let P={indexDatatype:2===x.BYTES_PER_ELEMENT?B.UNSIGNED_SHORT:B.UNSIGNED_INT,startEllipsoidNormals:g.startEllipsoidNormals.buffer,endEllipsoidNormals:g.endEllipsoidNormals.buffer,startPositionAndHeights:g.startPositionAndHeights.buffer,startFaceNormalAndVertexCornerIds:g.startFaceNormalAndVertexCornerIds.buffer,endPositionAndHeights:g.endPositionAndHeights.buffer,endFaceNormalAndHalfWidths:g.endFaceNormalAndHalfWidths.buffer,vertexBatchIds:g.vertexBatchIds.buffer,indices:x.buffer};if(e.keepDecodedPositions){let t=dt(n);r.push(y.buffer,t.buffer),P=X(P,{decodedPositions:y.buffer,decodedPositionOffsets:t.buffer})}return P}var Vt=J(Pt);export{Vt 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 P}from"./chunk-QJTXFT4R.js";import{a as z}from"./chunk-3N6OW3OY.js";import"./chunk-PEDE2P3Q.js";import{a as H}from"./chunk-5Z36UAB7.js";import{a as Y}from"./chunk-BKIYVF74.js";import{a as j}from"./chunk-ALIHIWSS.js";import"./chunk-ML6MR2RA.js";import"./chunk-AKELQO2L.js";import{a as W}from"./chunk-4WQ4VT5S.js";import"./chunk-6EINM7EY.js";import"./chunk-A4I25VN7.js";import{c as E}from"./chunk-D3TVNJ6W.js";import"./chunk-3VUCSHGU.js";import"./chunk-LNJEJFV5.js";import{b as d}from"./chunk-BPABSUDY.js";import"./chunk-ATKJRN2G.js";import"./chunk-RDX4QSUS.js";import"./chunk-G3GDHHWO.js";import"./chunk-2AIOP76V.js";import{a as o}from"./chunk-IAE6APK2.js";import"./chunk-3E7FIXV7.js";import"./chunk-NZBME2JK.js";import{f as l}from"./chunk-6DLS2UKD.js";function X(e){this.offset=e.offset,this.count=e.count,this.color=e.color,this.batchIds=e.batchIds}var J=X,S=new o,$=d.packedLength+o.packedLength,ee=d.packedLength+2,ne=d.packedLength+o.packedLength,te=o.packedLength+1,u={modelMatrix:new d,boundingVolume:new E};function oe(e,t){let n=t*$,r=o.unpack(e,n,S);n+=o.packedLength;let i=d.unpack(e,n,u.modelMatrix);d.multiplyByScale(i,r,i);let s=u.boundingVolume;return o.clone(o.ZERO,s.center),s.radius=Math.sqrt(3),u}function ce(e,t){let n=t*ee,r=e[n++],i=e[n++],s=o.fromElements(r,r,i,S),a=d.unpack(e,n,u.modelMatrix);d.multiplyByScale(a,s,a);let l=u.boundingVolume;return o.clone(o.ZERO,l.center),l.radius=Math.sqrt(2),u}function se(e,t){let n=t*ne,r=o.unpack(e,n,S);n+=o.packedLength;let i=d.unpack(e,n,u.modelMatrix);d.multiplyByScale(i,r,i);let s=u.boundingVolume;return o.clone(o.ZERO,s.center),s.radius=1,u}function ie(e,t){let n=t*te,r=e[n++],i=o.unpack(e,n,S),s=d.fromTranslation(i,u.modelMatrix);d.multiplyByUniformScale(s,r,s);let a=u.boundingVolume;return o.clone(o.ZERO,a.center),a.radius=1,u}var de=new o;function R(e,t,n,r,i){if(!l(t))return;let s=n.length,a=r.attributes.position.values,c=r.indices,u=e.positions,f=e.vertexBatchIds,h=e.indices,p=e.batchIds,m=e.batchTableColors,b=e.batchedIndices,k=e.indexOffsets,g=e.indexCounts,I=e.boundingVolumes,y=e.modelMatrix,x=e.center,A=e.positionOffset,j=e.batchIdIndex,w=e.indexOffset,B=e.batchedIndicesOffset;for(let e=0;e<s;++e){let r=i(t,e),s=r.modelMatrix;d.multiply(y,s,s);let l=n[e],O=a.length;for(let e=0;e<O;e+=3){let t=o.unpack(a,e,de);d.multiplyByPoint(s,t,t),o.subtract(t,x,t),o.pack(t,u,3*A+e),f[j++]=l}let L=c.length;for(let e=0;e<L;++e)h[w+e]=c[e]+A;let v=e+B;b[v]=new J({offset:w,count:L,color:P.fromRgba(m[l]),batchIds:[l]}),p[v]=l,k[v]=w,g[v]=L,I[v]=E.transform(r.boundingVolume,s),A+=O/3,w+=L}e.positionOffset=A,e.batchIdIndex=j,e.indexOffset=w,e.batchedIndicesOffset+=s}var K=new o,Q=new d;function re(e){let t=new Float64Array(e),n=0;o.unpack(t,n,K),n+=o.packedLength,d.unpack(t,n,Q)}function le(e){let t=e.length,n=0;for(let o=0;o<t;++o)n+=P.packedLength+3+e[o].batchIds.length;return n}function ae(e,t,n){let o=n.length,r=2+o*E.packedLength+1+le(t),i=new Float64Array(r),s=0;i[s++]=e,i[s++]=o;for(let e=0;e<o;++e)E.pack(n[e],i,s),s+=E.packedLength;let a=t.length;i[s++]=a;for(let e=0;e<a;++e){let n=t[e];P.pack(n.color,i,s),s+=P.packedLength,i[s++]=n.offset,i[s++]=n.count;let o=n.batchIds,r=o.length;i[s++]=r;for(let e=0;e<r;++e)i[s++]=o[e]}return i}function fe(e,t){let n=l(e.boxes)?new Float32Array(e.boxes):void 0,o=l(e.boxBatchIds)?new Uint16Array(e.boxBatchIds):void 0,r=l(e.cylinders)?new Float32Array(e.cylinders):void 0,i=l(e.cylinderBatchIds)?new Uint16Array(e.cylinderBatchIds):void 0,s=l(e.ellipsoids)?new Float32Array(e.ellipsoids):void 0,a=l(e.ellipsoidBatchIds)?new Uint16Array(e.ellipsoidBatchIds):void 0,c=l(e.spheres)?new Float32Array(e.spheres):void 0,d=l(e.sphereBatchIds)?new Uint16Array(e.sphereBatchIds):void 0,u=l(n)?o.length:0,f=l(r)?i.length:0,h=l(s)?a.length:0,p=l(c)?d.length:0,m=j.getUnitBox(),b=z.getUnitCylinder(),k=H.getUnitEllipsoid(),g=m.attributes.position.values,I=b.attributes.position.values,y=k.attributes.position.values,x=g.length*u;x+=I.length*f,x+=y.length*(h+p);let A=m.indices,E=b.indices,w=k.indices,B=A.length*u;B+=E.length*f,B+=w.length*(h+p);let O=new Float32Array(x),L=new Uint16Array(x/3),v=W.createTypedArray(x/3,B),U=u+f+h+p,S=new Uint16Array(U),V=new Array(U),M=new Uint32Array(U),P=new Uint32Array(U),T=new Array(U);re(e.packedBuffer);let F={batchTableColors:new Uint32Array(e.batchTableColors),positions:O,vertexBatchIds:L,indices:v,batchIds:S,batchedIndices:V,indexOffsets:M,indexCounts:P,boundingVolumes:T,positionOffset:0,batchIdIndex:0,indexOffset:0,batchedIndicesOffset:0,modelMatrix:Q,center:K};R(F,n,o,m,oe),R(F,r,i,b,ce),R(F,s,a,k,se),R(F,c,d,k,ie);let C=ae(v.BYTES_PER_ELEMENT,V,T);return t.push(O.buffer,L.buffer,v.buffer),t.push(S.buffer,M.buffer,P.buffer),t.push(C.buffer),{positions:O.buffer,vertexBatchIds:L.buffer,indices:v.buffer,indexOffsets:M.buffer,indexCounts:P.buffer,batchIds:S.buffer,packedBuffer:C.buffer}}var Oe=Y(fe);export{Oe 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 x}from"./chunk-BKIYVF74.js";import{a as w}from"./chunk-G72JFEXW.js";import{j as c}from"./chunk-LNJEJFV5.js";import"./chunk-BPABSUDY.js";import"./chunk-ATKJRN2G.js";import"./chunk-RDX4QSUS.js";import"./chunk-G3GDHHWO.js";import{a as l,c as p}from"./chunk-2AIOP76V.js";import{a as h}from"./chunk-IAE6APK2.js";import{a as i}from"./chunk-3E7FIXV7.js";import"./chunk-NZBME2JK.js";import"./chunk-6DLS2UKD.js";var u=32767,F=new l,L=new h,b=new c,y=new p,a={min:void 0,max:void 0};function V(r){r=new Float64Array(r);let n=0;a.min=r[n++],a.max=r[n++],c.unpack(r,n,b),n+=c.packedLength,p.unpack(r,n,y)}function z(r,n){let t=new Uint16Array(r.positions);V(r.packedBuffer);let o=b,e=y,s=a.min,p=a.max,c=t.length/3,m=t.subarray(0,c),f=t.subarray(c,2*c),k=t.subarray(2*c,3*c);w.zigZagDeltaDecode(m,f,k);let j=new Float64Array(t.length);for(let a=0;a<c;++a){let r=m[a],n=f[a],t=k[a],c=i.lerp(o.west,o.east,r/u),w=i.lerp(o.south,o.north,n/u),y=i.lerp(s,p,t/u),b=l.fromRadians(c,w,y,F),A=e.cartographicToCartesian(b,L);h.pack(A,j,3*a)}return n.push(j.buffer),{positions:j.buffer}}var G=x(z);export{G 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-QJTXFT4R.js";import{a as It}from"./chunk-BKIYVF74.js";import{a as M}from"./chunk-P5EFSOUF.js";import{a as bt}from"./chunk-G72JFEXW.js";import"./chunk-BDWA46XV.js";import"./chunk-5VFNV3LW.js";import"./chunk-SRA5MBUT.js";import"./chunk-5AAMOBJK.js";import{a as W}from"./chunk-4WQ4VT5S.js";import"./chunk-D3TVNJ6W.js";import"./chunk-3VUCSHGU.js";import{j as z}from"./chunk-LNJEJFV5.js";import"./chunk-BPABSUDY.js";import"./chunk-ATKJRN2G.js";import"./chunk-RDX4QSUS.js";import"./chunk-G3GDHHWO.js";import{a as nt,c as j}from"./chunk-2AIOP76V.js";import{a as o}from"./chunk-IAE6APK2.js";import{a as et}from"./chunk-3E7FIXV7.js";import"./chunk-NZBME2JK.js";import{f as A}from"./chunk-6DLS2UKD.js";var kt=new o,Bt=new j,Nt=new z,E={min:void 0,max:void 0,indexBytesPerElement:void 0};function Pt(t){let e=new Float64Array(t),n=0;E.indexBytesPerElement=e[n++],E.min=e[n++],E.max=e[n++],o.unpack(e,n,kt),n+=o.packedLength,j.unpack(e,n,Bt),n+=j.packedLength,z.unpack(e,n,Nt)}function Tt(t){let e=t.length,n=0;for(let r=0;r<e;++r)n+=R.packedLength+3+t[r].batchIds.length;return n}function Ct(t,e,n){let r=e.length,o=2+r*M.packedLength+1+Tt(n),a=new Float64Array(o),i=0;a[i++]=t,a[i++]=r;for(let t=0;t<r;++t)M.pack(e[t],a,i),i+=M.packedLength;let s=n.length;a[i++]=s;for(let t=0;t<s;++t){let e=n[t];R.pack(e.color,a,i),i+=R.packedLength,a[i++]=e.offset,a[i++]=e.count;let r=e.batchIds,o=r.length;a[i++]=o;for(let t=0;t<o;++t)a[i++]=r[t]}return a}var yt=32767,wt=new o,Ht=new o,St=new o,Ut=new o,Ft=new o,Lt=new nt,Mt=new z;function Rt(t,e){let n;Pt(t.packedBuffer),n=2===E.indexBytesPerElement?new Uint16Array(t.indices):new Uint32Array(t.indices);let r=new Uint16Array(t.positions),a=new Uint32Array(t.counts),i=new Uint32Array(t.indexCounts),s=new Uint32Array(t.batchIds),f=new Uint32Array(t.batchTableColors),c=new Array(a.length),h=kt,l=Bt,u=Nt,m=E.min,p=E.max,d=t.minimumHeights,k=t.maximumHeights;A(d)&&A(k)&&(d=new Float32Array(d),k=new Float32Array(k));let g,I,w,y=r.length/2,b=r.subarray(0,y),N=r.subarray(y,2*y);bt.zigZagDeltaDecode(b,N);let j=new Float64Array(3*y);for(g=0;g<y;++g){let t=b[g],e=N[g],n=et.lerp(u.west,u.east,t/yt),r=et.lerp(u.south,u.north,e/yt),a=nt.fromRadians(n,r,0,Lt),i=l.cartographicToCartesian(a,wt);o.pack(i,j,3*g)}let T=a.length,x=new Array(T),L=new Array(T),U=0,F=0;for(g=0;g<T;++g)x[g]=U,L[g]=F,U+=a[g],F+=i[g];let S=new Float32Array(3*y*2),B=new Uint16Array(2*y),O=new Uint32Array(L.length),P=new Uint32Array(i.length),V=[],D={};for(g=0;g<T;++g)w=f[g],A(D[w])?(D[w].positionLength+=a[g],D[w].indexLength+=i[g],D[w].batchIds.push(g)):D[w]={positionLength:a[g],indexLength:i[g],offset:0,indexOffset:0,batchIds:[g]};let G,J=0,C=0;for(w in D)if(D.hasOwnProperty(w)){G=D[w],G.offset=J,G.indexOffset=C;let t=2*G.positionLength,e=2*G.indexLength+6*G.positionLength;J+=t,C+=e,G.indexLength=e}let H=[];for(w in D)D.hasOwnProperty(w)&&(G=D[w],H.push({color:R.fromRgba(parseInt(w)),offset:G.indexOffset,count:G.indexLength,batchIds:G.batchIds}));for(g=0;g<T;++g){w=f[g],G=D[w];let t=G.offset,e=3*t,r=t,y=x[g],b=a[g],E=s[g],N=m,T=p;A(d)&&A(k)&&(N=d[g],T=k[g]);let U=Number.POSITIVE_INFINITY,F=Number.NEGATIVE_INFINITY,R=Number.POSITIVE_INFINITY,J=Number.NEGATIVE_INFINITY;for(I=0;I<b;++I){let t=o.unpack(j,3*y+3*I,wt);l.scaleToGeodeticSurface(t,t);let n=l.cartesianToCartographic(t,Lt),a=n.latitude,i=n.longitude;U=Math.min(a,U),F=Math.max(a,F),R=Math.min(i,R),J=Math.max(i,J);let s=l.geodeticSurfaceNormal(t,Ht),f=o.multiplyByScalar(s,N,St),c=o.add(t,f,Ut);f=o.multiplyByScalar(s,T,f);let u=o.add(t,f,Ft);o.subtract(u,h,u),o.subtract(c,h,c),o.pack(u,S,e),o.pack(c,S,e+3),B[r]=E,B[r+1]=E,e+=6,r+=2}u=Mt,u.west=R,u.east=J,u.south=U,u.north=F,c[g]=M.fromRectangle(u,m,p,l);let W=G.indexOffset,C=L[g],H=i[g];for(O[g]=W,I=0;I<H;I+=3){let e=n[C+I]-y,r=n[C+I+1]-y,o=n[C+I+2]-y;V[W++]=2*e+t,V[W++]=2*r+t,V[W++]=2*o+t,V[W++]=2*o+1+t,V[W++]=2*r+1+t,V[W++]=2*e+1+t}for(I=0;I<b;++I){let e=I,n=(I+1)%b;V[W++]=2*e+1+t,V[W++]=2*n+t,V[W++]=2*e+t,V[W++]=2*e+1+t,V[W++]=2*n+1+t,V[W++]=2*n+t}G.offset+=2*b,G.indexOffset=W,P[g]=W-O[g]}V=W.createTypedArray(S.length/3,V);let _=H.length;for(let t=0;t<_;++t){let e=H[t].batchIds,n=0,r=e.length;for(let t=0;t<r;++t)n+=P[e[t]];H[t].count=n}let Y=Ct(2===V.BYTES_PER_ELEMENT?W.UNSIGNED_SHORT:W.UNSIGNED_INT,c,H);return e.push(S.buffer,V.buffer,O.buffer,P.buffer,B.buffer,Y.buffer),{positions:S.buffer,indices:V.buffer,indexOffsets:O.buffer,indexCounts:P.buffer,batchIds:B.buffer,packedBuffer:Y.buffer}}var Jt=It(Rt);export{Jt 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 K}from"./chunk-BKIYVF74.js";import{a as G}from"./chunk-G72JFEXW.js";import{a as S}from"./chunk-4WQ4VT5S.js";import{c as B,j as R}from"./chunk-LNJEJFV5.js";import"./chunk-BPABSUDY.js";import"./chunk-ATKJRN2G.js";import"./chunk-RDX4QSUS.js";import"./chunk-G3GDHHWO.js";import{a as _,c as L}from"./chunk-2AIOP76V.js";import{a as t}from"./chunk-IAE6APK2.js";import{a as F}from"./chunk-3E7FIXV7.js";import"./chunk-NZBME2JK.js";import"./chunk-6DLS2UKD.js";var O=32767,ct=new _,rt=new t;function it(e,r,a,n,u){let o=e.length/3,s=e.subarray(0,o),f=e.subarray(o,2*o),i=e.subarray(2*o,3*o);G.zigZagDeltaDecode(s,f,i);let c=new Float64Array(e.length);for(let e=0;e<o;++e){let o=s[e],p=f[e],l=i[e],d=F.lerp(r.west,r.east,o/O),k=F.lerp(r.south,r.north,p/O),h=F.lerp(a,n,l/O),m=_.fromRadians(d,k,h,ct),b=u.cartographicToCartesian(m,rt);t.pack(b,c,3*e)}return c}var Y=it,X=new R,$=new L,j=new t,H={min:void 0,max:void 0};function at(e){e=new Float64Array(e);let r=0;H.min=e[r++],H.max=e[r++],R.unpack(e,r,X),r+=R.packedLength,L.unpack(e,r,$),r+=L.packedLength,t.unpack(e,r,j)}function ft(t){let e=t.length,r=new Uint32Array(e+1),a=0;for(let n=0;n<e;++n)r[n]=a,a+=t[n];return r[e]=a,r}var Z=new t,q=new t,J=new t,dt=new t,Q=new t;function ut(e,r){let a=new Uint16Array(e.positions),n=new Uint16Array(e.widths),u=new Uint32Array(e.counts),o=new Uint16Array(e.batchIds);at(e.packedBuffer);let s,f=X,i=$,c=j,p=H.min,l=H.max,d=Y(a,f,p,l,i),k=d.length/3,h=4*k-4,m=new Float32Array(3*h),b=new Float32Array(3*h),w=new Float32Array(3*h),A=new Float32Array(2*h),y=new Uint16Array(h),F=0,E=0,D=0,I=0,U=u.length;for(s=0;s<U;++s){let e=u[s],r=n[s],a=o[s];for(let n=0;n<e;++n){let u;if(0===n){let e=t.unpack(d,3*I,Z),r=t.unpack(d,3*(I+1),q);u=t.subtract(e,r,J),t.add(e,u,u)}else u=t.unpack(d,3*(I+n-1),J);let o,s=t.unpack(d,3*(I+n),dt);if(n===e-1){let r=t.unpack(d,3*(I+e-1),Z),a=t.unpack(d,3*(I+e-2),q);o=t.subtract(r,a,Q),t.add(r,o,o)}else o=t.unpack(d,3*(I+n+1),Q);t.subtract(u,c,u),t.subtract(s,c,s),t.subtract(o,c,o);let f=n===e-1?2:4;for(let e=0===n?2:0;e<f;++e){t.pack(s,m,F),t.pack(u,b,F),t.pack(o,w,F),F+=3;let n=e-2<0?-1:1;A[E++]=e%2*2-1,A[E++]=n*r,y[D++]=a}}I+=e}let g=S.createTypedArray(h,6*k-6),P=0,L=0;for(U=k-1,s=0;s<U;++s)g[L++]=P,g[L++]=P+2,g[L++]=P+1,g[L++]=P+1,g[L++]=P+2,g[L++]=P+3,P+=4;r.push(m.buffer,b.buffer,w.buffer),r.push(A.buffer,y.buffer,g.buffer);let N={indexDatatype:2===g.BYTES_PER_ELEMENT?S.UNSIGNED_SHORT:S.UNSIGNED_INT,currentPositions:m.buffer,previousPositions:b.buffer,nextPositions:w.buffer,expandAndWidth:A.buffer,batchIds:y.buffer,indices:g.buffer};if(e.keepDecodedPositions){let t=ft(u);r.push(d.buffer,t.buffer),N=B(N,{decodedPositions:d.buffer,decodedPositionOffsets:t.buffer})}return N}var It=K(ut);export{It as default};
|
|
@@ -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-E7EKLP3B.js";import"./chunk-W5OEMTMB.js";import"./chunk-PYMQNHFO.js";import{a as f}from"./chunk-BKIYVF74.js";import"./chunk-LN2UT4R3.js";import"./chunk-P5EFSOUF.js";import"./chunk-G72JFEXW.js";import"./chunk-BDWA46XV.js";import"./chunk-5VFNV3LW.js";import"./chunk-SRA5MBUT.js";import"./chunk-5AAMOBJK.js";import"./chunk-4WQ4VT5S.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 a(t,r){return u.createMesh(t).then((function(t){let u=t.vertices.buffer,s=t.indices.buffer,n=t.westIndicesSouthToNorth.buffer,i=t.southIndicesEastToWest.buffer,o=t.eastIndicesNorthToSouth.buffer,e=t.northIndicesWestToEast.buffer;return r.push(u,s,n,i,o,e),{verticesBuffer:u,indicesBuffer:s,vertexCountWithoutSkirts:t.vertexCountWithoutSkirts,indexCountWithoutSkirts:t.indexCountWithoutSkirts,encoding:t.encoding,westIndicesBuffer:n,southIndicesBuffer:i,eastIndicesBuffer:o,northIndicesBuffer:e}}))}var T=f(a);export{T 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 Dt,c as Gt}from"./chunk-PYMQNHFO.js";import{a as Lt}from"./chunk-BKIYVF74.js";import{a as lt}from"./chunk-LN2UT4R3.js";import{a as qt}from"./chunk-P5EFSOUF.js";import"./chunk-G72JFEXW.js";import"./chunk-BDWA46XV.js";import{a as kt}from"./chunk-5VFNV3LW.js";import"./chunk-SRA5MBUT.js";import"./chunk-5AAMOBJK.js";import{c as zt}from"./chunk-D3TVNJ6W.js";import"./chunk-3VUCSHGU.js";import{i as Ot,j as Vt}from"./chunk-LNJEJFV5.js";import{b as $}from"./chunk-BPABSUDY.js";import"./chunk-ATKJRN2G.js";import"./chunk-RDX4QSUS.js";import{a as Ht}from"./chunk-G3GDHHWO.js";import{a as N,b as wt,c as Ut}from"./chunk-2AIOP76V.js";import{a as P}from"./chunk-IAE6APK2.js";import{a as r}from"./chunk-3E7FIXV7.js";import"./chunk-NZBME2JK.js";import{f as ht}from"./chunk-6DLS2UKD.js";var $t=Uint16Array.BYTES_PER_ELEMENT,mt=Int32Array.BYTES_PER_ELEMENT,Pt=Uint32Array.BYTES_PER_ELEMENT,te=Float32Array.BYTES_PER_ELEMENT,H=Float64Array.BYTES_PER_ELEMENT;function tt(t,e,n){n=n??r;let i=t.length;for(let o=0;o<i;++o)if(n.equalsEpsilon(t[o],e,r.EPSILON12))return o;return-1}function ee(t,e){t.ellipsoid=Ut.clone(t.ellipsoid),t.rectangle=Vt.clone(t.rectangle);let n=re(t.buffer,t.relativeToCenter,t.ellipsoid,t.rectangle,t.nativeRectangle,t.exaggeration,t.exaggerationRelativeHeight,t.skirtHeight,t.includeWebMercatorT,t.negativeAltitudeExponentBias,t.negativeElevationThreshold),i=n.vertices;e.push(i.buffer);let r=n.indices;return e.push(r.buffer),{vertices:i.buffer,indices:r.buffer,numberOfAttributes:n.encoding.stride,minimumHeight:n.minimumHeight,maximumHeight:n.maximumHeight,boundingSphere3D:n.boundingSphere3D,orientedBoundingBox:n.orientedBoundingBox,occludeePointInScaledSpace:n.occludeePointInScaledSpace,encoding:n.encoding,vertexCountWithoutSkirts:n.vertexCountWithoutSkirts,indexCountWithoutSkirts:n.indexCountWithoutSkirts,westIndicesSouthToNorth:n.westIndicesSouthToNorth,southIndicesEastToWest:n.southIndicesEastToWest,eastIndicesNorthToSouth:n.eastIndicesNorthToSouth,northIndicesWestToEast:n.northIndicesWestToEast}}var u=new N,G=new P,oe=new P,ne=new P,ie=new $;function re(t,e,n,i,o,a,s,l,h,c,m){let d,g,p,I,f,E;ht(i)?(d=i.west,g=i.south,p=i.east,I=i.north,f=i.width,E=i.height):(d=r.toRadians(o.west),g=r.toRadians(o.south),p=r.toRadians(o.east),I=r.toRadians(o.north),f=r.toRadians(i.width),E=r.toRadians(i.height));let T,S,x=[g,I],w=[d,p],k=Ot.eastNorthUpToFixedFrame(e,n),A=$.inverseTransformation(k,ie);h&&(T=lt.geodeticLatitudeToMercatorAngle(g),S=1/(lt.geodeticLatitudeToMercatorAngle(I)-T));let B=1!==a,F=new DataView(t),R=Number.POSITIVE_INFINITY,b=Number.NEGATIVE_INFINITY,y=oe;y.x=Number.POSITIVE_INFINITY,y.y=Number.POSITIVE_INFINITY,y.z=Number.POSITIVE_INFINITY;let M=ne;M.x=Number.NEGATIVE_INFINITY,M.y=Number.NEGATIVE_INFINITY,M.z=Number.NEGATIVE_INFINITY;let v,j,U=0,V=0,_=0;for(j=0;j<4;++j){let t=U;v=F.getUint32(t,!0),t+=Pt;let e=r.toRadians(180*F.getFloat64(t,!0));t+=H,-1===tt(w,e)&&w.push(e);let n=r.toRadians(180*F.getFloat64(t,!0));t+=H,-1===tt(x,n)&&x.push(n),t+=2*H;let i=F.getInt32(t,!0);t+=mt,V+=i,i=F.getInt32(t,!0),_+=3*i,U+=v+Pt}let W=[],O=[],Y=new Array(V),C=new Array(V),L=new Array(V),D=h?new Array(V):[],J=B?new Array(V):[],K=new Array(_),z=[],X=[],q=[],Q=[],Z=0,et=0;for(U=0,j=0;j<4;++j){v=F.getUint32(U,!0),U+=Pt;let t=U,e=r.toRadians(180*F.getFloat64(U,!0));U+=H;let i=r.toRadians(180*F.getFloat64(U,!0));U+=H;let o=r.toRadians(180*F.getFloat64(U,!0)),a=.5*o;U+=H;let s=r.toRadians(180*F.getFloat64(U,!0)),l=.5*s;U+=H;let f=F.getInt32(U,!0);U+=mt;let E=F.getInt32(U,!0);U+=mt,U+=mt;let k=new Array(f);for(let t=0;t<f;++t){let f=e+F.getUint8(U++)*o;u.longitude=f;let E=i+F.getUint8(U++)*s;u.latitude=E;let H=F.getFloat32(U,!0);if(U+=te,0!==H&&H<m&&(H*=-Math.pow(2,c)),H*=6371010,u.height=H,-1!==tt(w,f)||-1!==tt(x,E)){let e=tt(W,u,N);if(-1!==e){k[t]=O[e];continue}W.push(N.clone(u)),O.push(Z)}k[t]=Z,Math.abs(f-d)<a?z.push({index:Z,cartographic:N.clone(u)}):Math.abs(f-p)<a?q.push({index:Z,cartographic:N.clone(u)}):Math.abs(E-g)<l?X.push({index:Z,cartographic:N.clone(u)}):Math.abs(E-I)<l&&Q.push({index:Z,cartographic:N.clone(u)}),R=Math.min(H,R),b=Math.max(H,b),L[Z]=H;let v=n.cartographicToCartesian(u);if(Y[Z]=v,h&&(D[Z]=(lt.geodeticLatitudeToMercatorAngle(E)-T)*S),B){let t=n.geodeticSurfaceNormal(v);J[Z]=t}$.multiplyByPoint(A,v,G),P.minimumByComponent(G,y,y),P.maximumByComponent(G,M,M);let j=(f-d)/(p-d);j=r.clamp(j,0,1);let V=(E-g)/(I-g);V=r.clamp(V,0,1),C[Z]=new wt(j,V),++Z}let j=3*E;for(let t=0;t<j;++t,++et)K[et]=k[F.getUint16(U,!0)],U+=$t;if(v!==U-t)throw new Ht("Invalid terrain tile.")}Y.length=Z,C.length=Z,L.length=Z,h&&(D.length=Z),B&&(J.length=Z);let nt=Z,it=et,rt={hMin:R,lastBorderPoint:void 0,skirtHeight:l,toENU:A,ellipsoid:n,minimum:y,maximum:M};z.sort((function(t,e){return e.cartographic.latitude-t.cartographic.latitude})),X.sort((function(t,e){return t.cartographic.longitude-e.cartographic.longitude})),q.sort((function(t,e){return t.cartographic.latitude-e.cartographic.latitude})),Q.sort((function(t,e){return e.cartographic.longitude-t.cartographic.longitude}));let ot=1e-5;if(gt(Y,L,C,D,J,K,rt,z,-ot*f,!0,-ot*E),gt(Y,L,C,D,J,K,rt,X,-ot*E,!1),gt(Y,L,C,D,J,K,rt,q,ot*f,!0,ot*E),gt(Y,L,C,D,J,K,rt,Q,ot*E,!1),z.length>0&&Q.length>0){let t=z[0].index,e=nt,n=Q[Q.length-1].index,i=Y.length-1;K.push(n,i,e,e,t,n)}V=Y.length;let at,ut=zt.fromPoints(Y);ht(i)&&(at=qt.fromRectangle(i,R,b,n));let st=new Dt(n).computeHorizonCullingPointPossiblyUnderEllipsoid(e,Y,R),ct=new kt(y,M,e),dt=new Gt(e,ct,rt.hMin,b,k,!1,h,B,a,s),pt=new Float32Array(V*dt.stride),It=0;for(let t=0;t<V;++t)It=dt.encode(pt,It,Y[t],C[t],L[t],void 0,D[t],J[t]);let Nt=z.map((function(t){return t.index})).reverse(),ft=X.map((function(t){return t.index})).reverse(),Et=q.map((function(t){return t.index})).reverse(),Tt=Q.map((function(t){return t.index})).reverse();return ft.unshift(Et[Et.length-1]),ft.push(Nt[0]),Tt.unshift(Nt[Nt.length-1]),Tt.push(Et[0]),{vertices:pt,indices:new Uint16Array(K),maximumHeight:b,minimumHeight:R,encoding:dt,boundingSphere3D:ut,orientedBoundingBox:at,occludeePointInScaledSpace:st,vertexCountWithoutSkirts:nt,indexCountWithoutSkirts:it,westIndicesSouthToNorth:Nt,southIndicesEastToWest:ft,eastIndicesNorthToSouth:Et,northIndicesWestToEast:Tt}}function gt(t,e,n,i,o,a,s,l,h,c,m){let d=l.length;for(let g=0;g<d;++g){let p=l[g],I=p.cartographic,f=p.index,E=t.length,T=I.longitude,S=I.latitude;S=r.clamp(S,-r.PI_OVER_TWO,r.PI_OVER_TWO);let x=I.height-s.skirtHeight;s.hMin=Math.min(s.hMin,x),N.fromRadians(T,S,x,u),c&&(u.longitude+=h),c?g===d-1?u.latitude+=m:0===g&&(u.latitude-=m):u.latitude+=h;let w=s.ellipsoid.cartographicToCartesian(u);t.push(w),e.push(x),n.push(wt.clone(n[f])),i.length>0&&i.push(i[f]),o.length>0&&o.push(o[f]),$.multiplyByPoint(s.toENU,w,G);let k=s.minimum,A=s.maximum;P.minimumByComponent(G,k,k),P.maximumByComponent(G,A,A);let B=s.lastBorderPoint;if(ht(B)){let t=B.index;a.push(t,E-1,E,E,f,t)}s.lastBorderPoint=p}}var we=Lt(ee);export{we as default};
|