@cesium/engine 9.2.0 → 10.1.0
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/Build/Workers/{chunk-GOQEANLM.js → chunk-2GEAGYUY.js} +13 -13
- package/Build/Workers/{chunk-WOYQB5HM.js → chunk-2J3JKXCP.js} +5 -5
- package/Build/Workers/{chunk-IXYFH7DV.js → chunk-3WUV74WM.js} +2 -2
- package/Build/Workers/{chunk-WHDEZSAL.js → chunk-4MSUJ4I7.js} +8 -8
- package/Build/Workers/chunk-4RMIRG6T.js +1800 -0
- package/Build/Workers/{chunk-CVCVMOQA.js → chunk-4VFBBNQ3.js} +1 -1
- package/Build/Workers/{chunk-ZHJDE6JN.js → chunk-4YSNMHZ4.js} +6 -6
- package/Build/Workers/{chunk-YGNQJ4YI.js → chunk-5BLJ5ZM6.js} +5 -5
- package/Build/Workers/{chunk-4RG6WOXH.js → chunk-5KWHSZYL.js} +11 -11
- package/Build/Workers/{chunk-BBBTT36L.js → chunk-5O6JWQ4E.js} +14 -14
- package/Build/Workers/{chunk-GX2BWBN2.js → chunk-65MZOUNU.js} +14 -14
- package/Build/Workers/{chunk-K5F23SZO.js → chunk-6D66DPRV.js} +7 -7
- package/Build/Workers/{chunk-2TRB253J.js → chunk-6OFDHMHR.js} +7 -7
- package/Build/Workers/{chunk-U6MTSO6A.js → chunk-76BYYG7N.js} +424 -449
- package/Build/Workers/{chunk-3PV5HQ2R.js → chunk-A5CODJ4M.js} +6 -6
- package/Build/Workers/{chunk-IF2OX6R4.js → chunk-AA4GZKOT.js} +1 -1
- package/Build/Workers/{chunk-OYP23VAL.js → chunk-ACRTCBN5.js} +11 -11
- package/Build/Workers/chunk-B75IEX2S.js +390 -0
- package/Build/Workers/{chunk-EODIOQ35.js → chunk-BAVI3ZS2.js} +1 -1
- package/Build/Workers/{chunk-CFBGPZU6.js → chunk-BBDZYSZB.js} +10 -10
- package/Build/Workers/{chunk-LZFFO4KB.js → chunk-BGE4QVG7.js} +12 -12
- package/Build/Workers/chunk-BY3E4ONI.js +456 -0
- package/Build/Workers/{chunk-RDR4KVPA.js → chunk-C3Z23UUJ.js} +18 -18
- package/Build/Workers/{chunk-I6CW7ZE5.js → chunk-C45MU4GZ.js} +10 -8
- package/Build/Workers/chunk-CF7P7K7E.js +684 -0
- package/Build/Workers/{chunk-KTZK2UDR.js → chunk-D2U4RI64.js} +7 -7
- package/Build/Workers/{chunk-QZIWFSRM.js → chunk-D4K27X2M.js} +4 -4
- package/Build/Workers/{chunk-UYKG3UFK.js → chunk-DKVHRNFY.js} +5 -5
- package/Build/Workers/{chunk-5OK5JFDP.js → chunk-EB7PNZTK.js} +5 -5
- package/Build/Workers/{chunk-7PFZ4Z7C.js → chunk-ELI4BUOT.js} +11 -9
- package/Build/Workers/chunk-F3NDOSTZ.js +963 -0
- package/Build/Workers/{chunk-3VDHTBY5.js → chunk-FDCLACT5.js} +10 -10
- package/Build/Workers/{chunk-BNT2SNWU.js → chunk-FEVVHITK.js} +4 -4
- package/Build/Workers/{chunk-7HLZRYGD.js → chunk-FOZWUH4T.js} +7 -7
- package/Build/Workers/chunk-FQPSOOPH.js +258 -0
- package/Build/Workers/{chunk-A5CSB5ZE.js → chunk-G5V4GPZE.js} +9 -9
- package/Build/Workers/{chunk-TDIGL45B.js → chunk-GNHZH7HP.js} +1 -1
- package/Build/Workers/{chunk-26NE4LRW.js → chunk-GPJR7MPQ.js} +11 -8
- package/Build/Workers/chunk-GWT64LKY.js +171 -0
- package/Build/Workers/{chunk-PUQR43HZ.js → chunk-HGEEOMSC.js} +6 -6
- package/Build/Workers/{chunk-SC3TBKST.js → chunk-I2RC4XVN.js} +4 -4
- package/Build/Workers/chunk-IUROUBPA.js +300 -0
- package/Build/Workers/{chunk-G7IAO7CW.js → chunk-J7MQUQJY.js} +7 -7
- package/Build/Workers/chunk-JNLWLSTP.js +476 -0
- package/Build/Workers/{chunk-TP4FFUAH.js → chunk-JYQNWIQQ.js} +2 -2
- package/Build/Workers/{chunk-RRUO4QEK.js → chunk-KUN2ZA5X.js} +4 -4
- package/Build/Workers/chunk-KV4EQHK4.js +1477 -0
- package/Build/Workers/chunk-LSSWVB2X.js +138 -0
- package/Build/Workers/{chunk-EJZVBTX4.js → chunk-LXQ5QAEJ.js} +6 -6
- package/Build/Workers/chunk-MBZH7YZ7.js +945 -0
- package/Build/Workers/{chunk-WP3LCUOE.js → chunk-MKXWJTFQ.js} +13 -13
- package/Build/Workers/{chunk-AROLUUGS.js → chunk-MMV6TO3P.js} +2 -2
- package/Build/Workers/{chunk-ETC45PHH.js → chunk-MSKXMXJI.js} +4 -4
- package/Build/Workers/chunk-N4QEHO3U.js +75 -0
- package/Build/Workers/chunk-NVOABL76.js +100 -0
- package/Build/Workers/chunk-OAPA2RTG.js +239 -0
- package/Build/Workers/{chunk-PHT53MCH.js → chunk-OE4MCOC7.js} +13 -13
- package/Build/Workers/chunk-OJF4RTJG.js +634 -0
- package/Build/Workers/{chunk-UICVDDCQ.js → chunk-OOK53QUQ.js} +1 -1
- package/Build/Workers/{chunk-W4OS542B.js → chunk-OOMCT7OL.js} +13 -13
- package/Build/Workers/{chunk-YGTWKLFY.js → chunk-OWGTMVDB.js} +19 -19
- package/Build/Workers/{chunk-GUFV24F4.js → chunk-OXALEQPI.js} +61 -17
- package/Build/Workers/chunk-OXSI7N4C.js +768 -0
- package/Build/Workers/{chunk-26XJDV3D.js → chunk-PNFHVBSF.js} +15 -15
- package/Build/Workers/chunk-POSRARY7.js +834 -0
- package/Build/Workers/{chunk-GX5LMUGZ.js → chunk-PYHLO636.js} +42 -13
- package/Build/Workers/chunk-Q55ECN3Y.js +37 -0
- package/Build/Workers/chunk-QD4KM3GO.js +138 -0
- package/Build/Workers/chunk-QMLTCCYG.js +55 -0
- package/Build/Workers/chunk-QX5XS4LC.js +101 -0
- package/Build/Workers/{chunk-UKJCFXVV.js → chunk-QYQIVZBU.js} +6 -6
- package/Build/Workers/chunk-R3TKLC6E.js +1075 -0
- package/Build/Workers/chunk-R4OIEIPE.js +500 -0
- package/Build/Workers/chunk-R4ZEWO4I.js +122 -0
- package/Build/Workers/chunk-R6B7UCQB.js +44 -0
- package/Build/Workers/chunk-RCK55EDX.js +691 -0
- package/Build/Workers/chunk-RHBWXX7C.js +629 -0
- package/Build/Workers/chunk-RZLZWKFN.js +305 -0
- package/Build/Workers/{chunk-DIVFF6DK.js → chunk-S3PI2KFM.js} +2 -2
- package/Build/Workers/chunk-SAPFXU5X.js +102 -0
- package/Build/Workers/chunk-T6LPN7RI.js +2857 -0
- package/Build/Workers/{chunk-U2LSTOMA.js → chunk-T77JILCU.js} +2 -2
- package/Build/Workers/chunk-TBBFDFCS.js +368 -0
- package/Build/Workers/chunk-TF776XCO.js +1258 -0
- package/Build/Workers/chunk-TGY6H6N6.js +163 -0
- package/Build/Workers/{chunk-RTIT7UDN.js → chunk-TO2PVHKI.js} +2 -2
- package/Build/Workers/chunk-UCIPJSZX.js +398 -0
- package/Build/Workers/chunk-UOEUCKKU.js +59 -0
- package/Build/Workers/chunk-VE7BFUIX.js +39 -0
- package/Build/Workers/chunk-VFBNELXB.js +353 -0
- package/Build/Workers/chunk-VRZ46QZ5.js +781 -0
- package/Build/Workers/chunk-VYWUFRRR.js +1052 -0
- package/Build/Workers/chunk-WVSELU6O.js +2716 -0
- package/Build/Workers/chunk-X23FRWHJ.js +117 -0
- package/Build/Workers/chunk-X2ZQ7RJR.js +287 -0
- package/Build/Workers/chunk-X43SJLQL.js +10364 -0
- package/Build/Workers/chunk-XLTOBCDI.js +220 -0
- package/Build/Workers/chunk-XQI7XZHX.js +196 -0
- package/Build/Workers/chunk-XUOJCLOH.js +511 -0
- package/Build/Workers/chunk-XZZNKIEV.js +157 -0
- package/Build/Workers/chunk-YLYBLJ3Y.js +73 -0
- package/Build/Workers/chunk-ZEE2EIFD.js +430 -0
- package/Build/Workers/chunk-ZIKGV7EL.js +58 -0
- package/Build/Workers/chunk-ZU334IDQ.js +421 -0
- package/Build/Workers/combineGeometry.js +22 -22
- package/Build/Workers/createBoxGeometry.js +16 -16
- package/Build/Workers/createBoxOutlineGeometry.js +14 -14
- package/Build/Workers/createCircleGeometry.js +29 -25
- package/Build/Workers/createCircleOutlineGeometry.js +17 -17
- package/Build/Workers/createCoplanarPolygonGeometry.js +32 -32
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +29 -29
- package/Build/Workers/createCorridorGeometry.js +29 -29
- package/Build/Workers/createCorridorOutlineGeometry.js +27 -27
- package/Build/Workers/createCylinderGeometry.js +18 -18
- package/Build/Workers/createCylinderOutlineGeometry.js +16 -16
- package/Build/Workers/createEllipseGeometry.js +24 -24
- package/Build/Workers/createEllipseOutlineGeometry.js +17 -17
- package/Build/Workers/createEllipsoidGeometry.js +17 -17
- package/Build/Workers/createEllipsoidOutlineGeometry.js +16 -16
- package/Build/Workers/createFrustumGeometry.js +16 -16
- package/Build/Workers/createFrustumOutlineGeometry.js +16 -16
- package/Build/Workers/createGeometry.js +22 -22
- package/Build/Workers/createGroundPolylineGeometry.js +24 -24
- package/Build/Workers/createPlaneGeometry.js +14 -14
- package/Build/Workers/createPlaneOutlineGeometry.js +13 -13
- package/Build/Workers/createPolygonGeometry.js +32 -32
- package/Build/Workers/createPolygonOutlineGeometry.js +29 -29
- package/Build/Workers/createPolylineGeometry.js +24 -24
- package/Build/Workers/createPolylineVolumeGeometry.js +30 -30
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +26 -26
- package/Build/Workers/createRectangleGeometry.js +27 -27
- package/Build/Workers/createRectangleOutlineGeometry.js +19 -19
- package/Build/Workers/createSimplePolylineGeometry.js +22 -22
- package/Build/Workers/createSphereGeometry.js +17 -17
- package/Build/Workers/createSphereOutlineGeometry.js +16 -16
- package/Build/Workers/createTaskProcessorWorker.js +3 -3
- package/Build/Workers/createVectorTileClampedPolylines.js +13 -13
- package/Build/Workers/createVectorTileGeometries.js +22 -22
- package/Build/Workers/createVectorTilePoints.js +12 -12
- package/Build/Workers/createVectorTilePolygons.js +20 -20
- package/Build/Workers/createVectorTilePolylines.js +13 -13
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +20 -20
- package/Build/Workers/createVerticesFromHeightmap.js +21 -21
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +17 -17
- package/Build/Workers/createWallGeometry.js +23 -23
- package/Build/Workers/createWallOutlineGeometry.js +22 -22
- package/Build/Workers/decodeDraco.js +11 -11
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
- package/Build/Workers/decodeI3S.js +10 -10
- package/Build/Workers/transcodeKTX2.js +8 -11
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +20 -20
- package/Source/Core/ApproximateTerrainHeights.js +4 -4
- package/Source/Core/ArcGISTiledElevationTerrainProvider.js +12 -8
- package/Source/Core/BoundingRectangle.js +2 -0
- package/Source/Core/BoundingSphere.js +4 -2
- package/Source/Core/Cartesian3.js +13 -10
- package/Source/Core/Cartographic.js +11 -8
- package/Source/Core/CesiumTerrainProvider.js +3 -2
- package/Source/Core/CircleGeometry.js +6 -2
- package/Source/Core/CircleOutlineGeometry.js +1 -1
- package/Source/Core/CoplanarPolygonGeometry.js +3 -3
- package/Source/Core/CorridorGeometry.js +4 -4
- package/Source/Core/CorridorOutlineGeometry.js +2 -2
- package/Source/Core/Credit.js +3 -2
- package/Source/Core/CustomHeightmapTerrainProvider.js +17 -3
- package/Source/Core/EllipseGeometry.js +4 -4
- package/Source/Core/EllipseOutlineGeometry.js +2 -2
- package/Source/Core/Ellipsoid.js +34 -0
- package/Source/Core/EllipsoidGeodesic.js +2 -2
- package/Source/Core/EllipsoidRhumbLine.js +4 -4
- package/Source/Core/EllipsoidTangentPlane.js +3 -3
- package/Source/Core/EllipsoidTerrainProvider.js +3 -3
- package/Source/Core/GeographicProjection.js +4 -3
- package/Source/Core/GeographicTilingScheme.js +3 -3
- package/Source/Core/GeometryPipeline.js +2 -2
- package/Source/Core/GoogleEarthEnterpriseTerrainProvider.js +1 -1
- package/Source/Core/GoogleMaps.js +1 -1
- package/Source/Core/GroundPolylineGeometry.js +1 -1
- package/Source/Core/HeightmapTessellator.js +2 -2
- package/Source/Core/Ion.js +1 -1
- package/Source/Core/Occluder.js +3 -3
- package/Source/Core/OrientedBoundingBox.js +2 -2
- package/Source/Core/PolygonGeometry.js +4 -4
- package/Source/Core/PolygonGeometryLibrary.js +1 -1
- package/Source/Core/PolygonOutlineGeometry.js +3 -3
- package/Source/Core/PolygonPipeline.js +2 -2
- package/Source/Core/PolylineGeometry.js +2 -2
- package/Source/Core/PolylinePipeline.js +6 -6
- package/Source/Core/PolylineVolumeGeometry.js +2 -2
- package/Source/Core/PolylineVolumeOutlineGeometry.js +2 -2
- package/Source/Core/Rectangle.js +6 -6
- package/Source/Core/RectangleGeometry.js +6 -6
- package/Source/Core/RectangleGeometryLibrary.js +3 -0
- package/Source/Core/RectangleOutlineGeometry.js +2 -2
- package/Source/Core/Simon1994PlanetaryPositions.js +4 -2
- package/Source/Core/SimplePolylineGeometry.js +2 -2
- package/Source/Core/Stereographic.js +2 -2
- package/Source/Core/Transforms.js +154 -19
- package/Source/Core/VRTheWorldTerrainProvider.js +2 -2
- package/Source/Core/WallGeometry.js +3 -3
- package/Source/Core/WallOutlineGeometry.js +3 -3
- package/Source/Core/WebMercatorTilingScheme.js +3 -3
- package/Source/Core/createWorldTerrainAsync.js +2 -0
- package/Source/DataSources/BillboardGraphics.js +16 -0
- package/Source/DataSources/BillboardVisualizer.js +7 -0
- package/Source/DataSources/BoxGeometryUpdater.js +2 -2
- package/Source/DataSources/CylinderGeometryUpdater.js +2 -2
- package/Source/DataSources/CzmlDataSource.js +8 -8
- package/Source/DataSources/EllipsoidGeometryUpdater.js +3 -3
- package/Source/DataSources/EntityCluster.js +1 -1
- package/Source/DataSources/EntityView.js +2 -2
- package/Source/DataSources/KmlDataSource.js +4 -4
- package/Source/DataSources/ModelVisualizer.js +1 -2
- package/Source/DataSources/PathVisualizer.js +4 -4
- package/Source/DataSources/PointGraphics.js +17 -0
- package/Source/DataSources/PointVisualizer.js +12 -0
- package/Source/DataSources/PolygonGeometryUpdater.js +1 -1
- package/Source/DataSources/PolylineGeometryUpdater.js +3 -2
- package/Source/DataSources/PositionProperty.js +4 -7
- package/Source/DataSources/RectangleGeometryUpdater.js +1 -1
- package/Source/DataSources/ScaledPositionProperty.js +2 -2
- package/Source/DataSources/TerrainOffsetProperty.js +3 -7
- package/Source/DataSources/VelocityOrientationProperty.js +2 -2
- package/Source/DataSources/exportKml.js +2 -2
- package/Source/Renderer/AutomaticUniforms.js +1 -1
- package/Source/Renderer/UniformState.js +6 -12
- package/Source/Scene/ArcGisMapServerImageryProvider.js +2 -2
- package/Source/Scene/ArcGisMapService.js +1 -1
- package/Source/Scene/Billboard.js +35 -6
- package/Source/Scene/BillboardCollection.js +49 -0
- package/Source/Scene/BingMapsImageryProvider.js +11 -2
- package/Source/Scene/Camera.js +16 -10
- package/Source/Scene/Cesium3DTileset.js +1 -1
- package/Source/Scene/ClippingPolygon.js +2 -2
- package/Source/Scene/ClippingPolygonCollection.js +1 -1
- package/Source/Scene/CreditDisplay.js +94 -104
- package/Source/Scene/Globe.js +16 -13
- package/Source/Scene/GltfLoaderUtil.js +2 -4
- package/Source/Scene/GoogleEarthEnterpriseImageryProvider.js +1 -1
- package/Source/Scene/GoogleEarthEnterpriseMapsProvider.js +1 -1
- package/Source/Scene/GridImageryProvider.js +2 -2
- package/Source/Scene/ImageBasedLighting.js +2 -2
- package/Source/Scene/ImageryLayerCollection.js +2 -2
- package/Source/Scene/MapboxImageryProvider.js +1 -1
- package/Source/Scene/MapboxStyleImageryProvider.js +1 -1
- package/Source/Scene/MetadataSemantic.js +4 -4
- package/Source/Scene/Model/InstancingPipelineStage.js +3 -3
- package/Source/Scene/Model/MaterialPipelineStage.js +49 -0
- package/Source/Scene/Model/Model.js +8 -5
- package/Source/Scene/Model/ModelSceneGraph.js +1 -1
- package/Source/Scene/Model/SceneMode2DPipelineStage.js +3 -3
- package/Source/Scene/Model/pickModel.js +2 -2
- package/Source/Scene/ModelComponents.js +9 -0
- package/Source/Scene/OctahedralProjectedCubeMap.js +5 -6
- package/Source/Scene/Picking.js +4 -13
- package/Source/Scene/PointPrimitive.js +33 -4
- package/Source/Scene/PointPrimitiveCollection.js +22 -9
- package/Source/Scene/Scene.js +39 -31
- package/Source/Scene/SceneTransforms.js +78 -20
- package/Source/Scene/SceneTransitioner.js +2 -2
- package/Source/Scene/ScreenSpaceCameraController.js +29 -19
- package/Source/Scene/SkyBox.js +26 -0
- package/Source/Scene/Sun.js +1 -1
- package/Source/Shaders/BillboardCollectionFS.glsl +4 -0
- package/Source/Shaders/BillboardCollectionFS.js +4 -0
- package/Source/Shaders/BillboardCollectionVS.glsl +3 -1
- package/Source/Shaders/BillboardCollectionVS.js +3 -1
- package/Source/Shaders/BrdfLutGeneratorFS.glsl +30 -13
- package/Source/Shaders/BrdfLutGeneratorFS.js +30 -13
- package/Source/Shaders/Builtin/CzmBuiltins.js +2 -2
- package/Source/Shaders/Builtin/Functions/ellipsoidTextureCoordinates.glsl +10 -0
- package/Source/Shaders/Builtin/Functions/{ellipsoidWgs84TextureCoordinates.js → ellipsoidTextureCoordinates.js} +3 -3
- package/Source/Shaders/Builtin/Functions/pbrLighting.glsl +40 -39
- package/Source/Shaders/Builtin/Functions/pbrLighting.js +40 -39
- package/Source/Shaders/Builtin/Functions/sampleOctahedralProjection.glsl +1 -1
- package/Source/Shaders/Builtin/Functions/sampleOctahedralProjection.js +1 -1
- package/Source/Shaders/Builtin/Structs/materialInput.glsl +1 -1
- package/Source/Shaders/Builtin/Structs/materialInput.js +1 -1
- package/Source/Shaders/Builtin/Structs/modelMaterial.glsl +2 -0
- package/Source/Shaders/Builtin/Structs/modelMaterial.js +2 -0
- package/Source/Shaders/EllipsoidFS.glsl +1 -1
- package/Source/Shaders/EllipsoidFS.js +1 -1
- package/Source/Shaders/GlobeFS.glsl +2 -2
- package/Source/Shaders/GlobeFS.js +2 -2
- package/Source/Shaders/Model/ImageBasedLightingStageFS.glsl +23 -23
- package/Source/Shaders/Model/ImageBasedLightingStageFS.js +23 -23
- package/Source/Shaders/Model/LightingStageFS.glsl +6 -5
- package/Source/Shaders/Model/LightingStageFS.js +6 -5
- package/Source/Shaders/Model/MaterialStageFS.glsl +31 -26
- package/Source/Shaders/Model/MaterialStageFS.js +31 -26
- package/Source/Shaders/PointPrimitiveCollectionFS.glsl +4 -0
- package/Source/Shaders/PointPrimitiveCollectionFS.js +4 -0
- package/Source/Shaders/PointPrimitiveCollectionVS.glsl +9 -7
- package/Source/Shaders/PointPrimitiveCollectionVS.js +9 -7
- package/Source/Widget/CesiumWidget.css +0 -5
- package/Source/Widget/CesiumWidget.js +29 -28
- package/index.d.ts +254 -117
- package/index.js +45 -45
- package/package.json +4 -4
- package/Source/Shaders/Builtin/Functions/ellipsoidWgs84TextureCoordinates.glsl +0 -10
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.120
|
|
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
|
+
|
|
26
|
+
import {
|
|
27
|
+
GeographicProjection_default,
|
|
28
|
+
Intersect_default
|
|
29
|
+
} from "./chunk-ELI4BUOT.js";
|
|
30
|
+
import {
|
|
31
|
+
Rectangle_default
|
|
32
|
+
} from "./chunk-OXALEQPI.js";
|
|
33
|
+
import {
|
|
34
|
+
Cartesian2_default,
|
|
35
|
+
Cartographic_default,
|
|
36
|
+
Ellipsoid_default
|
|
37
|
+
} from "./chunk-T6LPN7RI.js";
|
|
38
|
+
import {
|
|
39
|
+
defaultValue_default
|
|
40
|
+
} from "./chunk-BAVI3ZS2.js";
|
|
41
|
+
import {
|
|
42
|
+
Check_default
|
|
43
|
+
} from "./chunk-TGY6H6N6.js";
|
|
44
|
+
import {
|
|
45
|
+
defined_default
|
|
46
|
+
} from "./chunk-N4QEHO3U.js";
|
|
47
|
+
|
|
48
|
+
// packages/engine/Source/Core/BoundingRectangle.js
|
|
49
|
+
function BoundingRectangle(x, y, width, height) {
|
|
50
|
+
this.x = defaultValue_default(x, 0);
|
|
51
|
+
this.y = defaultValue_default(y, 0);
|
|
52
|
+
this.width = defaultValue_default(width, 0);
|
|
53
|
+
this.height = defaultValue_default(height, 0);
|
|
54
|
+
}
|
|
55
|
+
BoundingRectangle.packedLength = 4;
|
|
56
|
+
BoundingRectangle.pack = function(value, array, startingIndex) {
|
|
57
|
+
Check_default.typeOf.object("value", value);
|
|
58
|
+
Check_default.defined("array", array);
|
|
59
|
+
startingIndex = defaultValue_default(startingIndex, 0);
|
|
60
|
+
array[startingIndex++] = value.x;
|
|
61
|
+
array[startingIndex++] = value.y;
|
|
62
|
+
array[startingIndex++] = value.width;
|
|
63
|
+
array[startingIndex] = value.height;
|
|
64
|
+
return array;
|
|
65
|
+
};
|
|
66
|
+
BoundingRectangle.unpack = function(array, startingIndex, result) {
|
|
67
|
+
Check_default.defined("array", array);
|
|
68
|
+
startingIndex = defaultValue_default(startingIndex, 0);
|
|
69
|
+
if (!defined_default(result)) {
|
|
70
|
+
result = new BoundingRectangle();
|
|
71
|
+
}
|
|
72
|
+
result.x = array[startingIndex++];
|
|
73
|
+
result.y = array[startingIndex++];
|
|
74
|
+
result.width = array[startingIndex++];
|
|
75
|
+
result.height = array[startingIndex];
|
|
76
|
+
return result;
|
|
77
|
+
};
|
|
78
|
+
BoundingRectangle.fromPoints = function(positions, result) {
|
|
79
|
+
if (!defined_default(result)) {
|
|
80
|
+
result = new BoundingRectangle();
|
|
81
|
+
}
|
|
82
|
+
if (!defined_default(positions) || positions.length === 0) {
|
|
83
|
+
result.x = 0;
|
|
84
|
+
result.y = 0;
|
|
85
|
+
result.width = 0;
|
|
86
|
+
result.height = 0;
|
|
87
|
+
return result;
|
|
88
|
+
}
|
|
89
|
+
const length = positions.length;
|
|
90
|
+
let minimumX = positions[0].x;
|
|
91
|
+
let minimumY = positions[0].y;
|
|
92
|
+
let maximumX = positions[0].x;
|
|
93
|
+
let maximumY = positions[0].y;
|
|
94
|
+
for (let i = 1; i < length; i++) {
|
|
95
|
+
const p = positions[i];
|
|
96
|
+
const x = p.x;
|
|
97
|
+
const y = p.y;
|
|
98
|
+
minimumX = Math.min(x, minimumX);
|
|
99
|
+
maximumX = Math.max(x, maximumX);
|
|
100
|
+
minimumY = Math.min(y, minimumY);
|
|
101
|
+
maximumY = Math.max(y, maximumY);
|
|
102
|
+
}
|
|
103
|
+
result.x = minimumX;
|
|
104
|
+
result.y = minimumY;
|
|
105
|
+
result.width = maximumX - minimumX;
|
|
106
|
+
result.height = maximumY - minimumY;
|
|
107
|
+
return result;
|
|
108
|
+
};
|
|
109
|
+
var defaultProjection = new GeographicProjection_default();
|
|
110
|
+
var fromRectangleLowerLeft = new Cartographic_default();
|
|
111
|
+
var fromRectangleUpperRight = new Cartographic_default();
|
|
112
|
+
BoundingRectangle.fromRectangle = function(rectangle, projection, result) {
|
|
113
|
+
if (!defined_default(result)) {
|
|
114
|
+
result = new BoundingRectangle();
|
|
115
|
+
}
|
|
116
|
+
if (!defined_default(rectangle)) {
|
|
117
|
+
result.x = 0;
|
|
118
|
+
result.y = 0;
|
|
119
|
+
result.width = 0;
|
|
120
|
+
result.height = 0;
|
|
121
|
+
return result;
|
|
122
|
+
}
|
|
123
|
+
defaultProjection._ellipsoid = Ellipsoid_default.default;
|
|
124
|
+
projection = defaultValue_default(projection, defaultProjection);
|
|
125
|
+
const lowerLeft = projection.project(
|
|
126
|
+
Rectangle_default.southwest(rectangle, fromRectangleLowerLeft)
|
|
127
|
+
);
|
|
128
|
+
const upperRight = projection.project(
|
|
129
|
+
Rectangle_default.northeast(rectangle, fromRectangleUpperRight)
|
|
130
|
+
);
|
|
131
|
+
Cartesian2_default.subtract(upperRight, lowerLeft, upperRight);
|
|
132
|
+
result.x = lowerLeft.x;
|
|
133
|
+
result.y = lowerLeft.y;
|
|
134
|
+
result.width = upperRight.x;
|
|
135
|
+
result.height = upperRight.y;
|
|
136
|
+
return result;
|
|
137
|
+
};
|
|
138
|
+
BoundingRectangle.clone = function(rectangle, result) {
|
|
139
|
+
if (!defined_default(rectangle)) {
|
|
140
|
+
return void 0;
|
|
141
|
+
}
|
|
142
|
+
if (!defined_default(result)) {
|
|
143
|
+
return new BoundingRectangle(
|
|
144
|
+
rectangle.x,
|
|
145
|
+
rectangle.y,
|
|
146
|
+
rectangle.width,
|
|
147
|
+
rectangle.height
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
result.x = rectangle.x;
|
|
151
|
+
result.y = rectangle.y;
|
|
152
|
+
result.width = rectangle.width;
|
|
153
|
+
result.height = rectangle.height;
|
|
154
|
+
return result;
|
|
155
|
+
};
|
|
156
|
+
BoundingRectangle.union = function(left, right, result) {
|
|
157
|
+
Check_default.typeOf.object("left", left);
|
|
158
|
+
Check_default.typeOf.object("right", right);
|
|
159
|
+
if (!defined_default(result)) {
|
|
160
|
+
result = new BoundingRectangle();
|
|
161
|
+
}
|
|
162
|
+
const lowerLeftX = Math.min(left.x, right.x);
|
|
163
|
+
const lowerLeftY = Math.min(left.y, right.y);
|
|
164
|
+
const upperRightX = Math.max(left.x + left.width, right.x + right.width);
|
|
165
|
+
const upperRightY = Math.max(left.y + left.height, right.y + right.height);
|
|
166
|
+
result.x = lowerLeftX;
|
|
167
|
+
result.y = lowerLeftY;
|
|
168
|
+
result.width = upperRightX - lowerLeftX;
|
|
169
|
+
result.height = upperRightY - lowerLeftY;
|
|
170
|
+
return result;
|
|
171
|
+
};
|
|
172
|
+
BoundingRectangle.expand = function(rectangle, point, result) {
|
|
173
|
+
Check_default.typeOf.object("rectangle", rectangle);
|
|
174
|
+
Check_default.typeOf.object("point", point);
|
|
175
|
+
result = BoundingRectangle.clone(rectangle, result);
|
|
176
|
+
const width = point.x - result.x;
|
|
177
|
+
const height = point.y - result.y;
|
|
178
|
+
if (width > result.width) {
|
|
179
|
+
result.width = width;
|
|
180
|
+
} else if (width < 0) {
|
|
181
|
+
result.width -= width;
|
|
182
|
+
result.x = point.x;
|
|
183
|
+
}
|
|
184
|
+
if (height > result.height) {
|
|
185
|
+
result.height = height;
|
|
186
|
+
} else if (height < 0) {
|
|
187
|
+
result.height -= height;
|
|
188
|
+
result.y = point.y;
|
|
189
|
+
}
|
|
190
|
+
return result;
|
|
191
|
+
};
|
|
192
|
+
BoundingRectangle.intersect = function(left, right) {
|
|
193
|
+
Check_default.typeOf.object("left", left);
|
|
194
|
+
Check_default.typeOf.object("right", right);
|
|
195
|
+
const leftX = left.x;
|
|
196
|
+
const leftY = left.y;
|
|
197
|
+
const rightX = right.x;
|
|
198
|
+
const rightY = right.y;
|
|
199
|
+
if (!(leftX > rightX + right.width || leftX + left.width < rightX || leftY + left.height < rightY || leftY > rightY + right.height)) {
|
|
200
|
+
return Intersect_default.INTERSECTING;
|
|
201
|
+
}
|
|
202
|
+
return Intersect_default.OUTSIDE;
|
|
203
|
+
};
|
|
204
|
+
BoundingRectangle.equals = function(left, right) {
|
|
205
|
+
return left === right || defined_default(left) && defined_default(right) && left.x === right.x && left.y === right.y && left.width === right.width && left.height === right.height;
|
|
206
|
+
};
|
|
207
|
+
BoundingRectangle.prototype.clone = function(result) {
|
|
208
|
+
return BoundingRectangle.clone(this, result);
|
|
209
|
+
};
|
|
210
|
+
BoundingRectangle.prototype.intersect = function(right) {
|
|
211
|
+
return BoundingRectangle.intersect(this, right);
|
|
212
|
+
};
|
|
213
|
+
BoundingRectangle.prototype.equals = function(right) {
|
|
214
|
+
return BoundingRectangle.equals(this, right);
|
|
215
|
+
};
|
|
216
|
+
var BoundingRectangle_default = BoundingRectangle;
|
|
217
|
+
|
|
218
|
+
export {
|
|
219
|
+
BoundingRectangle_default
|
|
220
|
+
};
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.119
|
|
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
|
+
|
|
26
|
+
import {
|
|
27
|
+
PolylinePipeline_default
|
|
28
|
+
} from "./chunk-ZU334IDQ.js";
|
|
29
|
+
import {
|
|
30
|
+
arrayRemoveDuplicates_default
|
|
31
|
+
} from "./chunk-DKVHRNFY.js";
|
|
32
|
+
import {
|
|
33
|
+
Cartesian3_default,
|
|
34
|
+
Cartographic_default
|
|
35
|
+
} from "./chunk-PYHLO636.js";
|
|
36
|
+
import {
|
|
37
|
+
Math_default
|
|
38
|
+
} from "./chunk-MSKXMXJI.js";
|
|
39
|
+
import {
|
|
40
|
+
defined_default
|
|
41
|
+
} from "./chunk-AA4GZKOT.js";
|
|
42
|
+
|
|
43
|
+
// packages/engine/Source/Core/WallGeometryLibrary.js
|
|
44
|
+
var WallGeometryLibrary = {};
|
|
45
|
+
function latLonEquals(c0, c1) {
|
|
46
|
+
return Math_default.equalsEpsilon(c0.latitude, c1.latitude, Math_default.EPSILON10) && Math_default.equalsEpsilon(c0.longitude, c1.longitude, Math_default.EPSILON10);
|
|
47
|
+
}
|
|
48
|
+
var scratchCartographic1 = new Cartographic_default();
|
|
49
|
+
var scratchCartographic2 = new Cartographic_default();
|
|
50
|
+
function removeDuplicates(ellipsoid, positions, topHeights, bottomHeights) {
|
|
51
|
+
positions = arrayRemoveDuplicates_default(positions, Cartesian3_default.equalsEpsilon);
|
|
52
|
+
const length = positions.length;
|
|
53
|
+
if (length < 2) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
const hasBottomHeights = defined_default(bottomHeights);
|
|
57
|
+
const hasTopHeights = defined_default(topHeights);
|
|
58
|
+
const cleanedPositions = new Array(length);
|
|
59
|
+
const cleanedTopHeights = new Array(length);
|
|
60
|
+
const cleanedBottomHeights = new Array(length);
|
|
61
|
+
const v0 = positions[0];
|
|
62
|
+
cleanedPositions[0] = v0;
|
|
63
|
+
const c0 = ellipsoid.cartesianToCartographic(v0, scratchCartographic1);
|
|
64
|
+
if (hasTopHeights) {
|
|
65
|
+
c0.height = topHeights[0];
|
|
66
|
+
}
|
|
67
|
+
cleanedTopHeights[0] = c0.height;
|
|
68
|
+
if (hasBottomHeights) {
|
|
69
|
+
cleanedBottomHeights[0] = bottomHeights[0];
|
|
70
|
+
} else {
|
|
71
|
+
cleanedBottomHeights[0] = 0;
|
|
72
|
+
}
|
|
73
|
+
const startTopHeight = cleanedTopHeights[0];
|
|
74
|
+
const startBottomHeight = cleanedBottomHeights[0];
|
|
75
|
+
let hasAllSameHeights = startTopHeight === startBottomHeight;
|
|
76
|
+
let index = 1;
|
|
77
|
+
for (let i = 1; i < length; ++i) {
|
|
78
|
+
const v1 = positions[i];
|
|
79
|
+
const c1 = ellipsoid.cartesianToCartographic(v1, scratchCartographic2);
|
|
80
|
+
if (hasTopHeights) {
|
|
81
|
+
c1.height = topHeights[i];
|
|
82
|
+
}
|
|
83
|
+
hasAllSameHeights = hasAllSameHeights && c1.height === 0;
|
|
84
|
+
if (!latLonEquals(c0, c1)) {
|
|
85
|
+
cleanedPositions[index] = v1;
|
|
86
|
+
cleanedTopHeights[index] = c1.height;
|
|
87
|
+
if (hasBottomHeights) {
|
|
88
|
+
cleanedBottomHeights[index] = bottomHeights[i];
|
|
89
|
+
} else {
|
|
90
|
+
cleanedBottomHeights[index] = 0;
|
|
91
|
+
}
|
|
92
|
+
hasAllSameHeights = hasAllSameHeights && cleanedTopHeights[index] === cleanedBottomHeights[index];
|
|
93
|
+
Cartographic_default.clone(c1, c0);
|
|
94
|
+
++index;
|
|
95
|
+
} else if (c0.height < c1.height) {
|
|
96
|
+
cleanedTopHeights[index - 1] = c1.height;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
if (hasAllSameHeights || index < 2) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
cleanedPositions.length = index;
|
|
103
|
+
cleanedTopHeights.length = index;
|
|
104
|
+
cleanedBottomHeights.length = index;
|
|
105
|
+
return {
|
|
106
|
+
positions: cleanedPositions,
|
|
107
|
+
topHeights: cleanedTopHeights,
|
|
108
|
+
bottomHeights: cleanedBottomHeights
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
var positionsArrayScratch = new Array(2);
|
|
112
|
+
var heightsArrayScratch = new Array(2);
|
|
113
|
+
var generateArcOptionsScratch = {
|
|
114
|
+
positions: void 0,
|
|
115
|
+
height: void 0,
|
|
116
|
+
granularity: void 0,
|
|
117
|
+
ellipsoid: void 0
|
|
118
|
+
};
|
|
119
|
+
WallGeometryLibrary.computePositions = function(ellipsoid, wallPositions, maximumHeights, minimumHeights, granularity, duplicateCorners) {
|
|
120
|
+
const o = removeDuplicates(
|
|
121
|
+
ellipsoid,
|
|
122
|
+
wallPositions,
|
|
123
|
+
maximumHeights,
|
|
124
|
+
minimumHeights
|
|
125
|
+
);
|
|
126
|
+
if (!defined_default(o)) {
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
wallPositions = o.positions;
|
|
130
|
+
maximumHeights = o.topHeights;
|
|
131
|
+
minimumHeights = o.bottomHeights;
|
|
132
|
+
const length = wallPositions.length;
|
|
133
|
+
const numCorners = length - 2;
|
|
134
|
+
let topPositions;
|
|
135
|
+
let bottomPositions;
|
|
136
|
+
const minDistance = Math_default.chordLength(
|
|
137
|
+
granularity,
|
|
138
|
+
ellipsoid.maximumRadius
|
|
139
|
+
);
|
|
140
|
+
const generateArcOptions = generateArcOptionsScratch;
|
|
141
|
+
generateArcOptions.minDistance = minDistance;
|
|
142
|
+
generateArcOptions.ellipsoid = ellipsoid;
|
|
143
|
+
if (duplicateCorners) {
|
|
144
|
+
let count = 0;
|
|
145
|
+
let i;
|
|
146
|
+
for (i = 0; i < length - 1; i++) {
|
|
147
|
+
count += PolylinePipeline_default.numberOfPoints(
|
|
148
|
+
wallPositions[i],
|
|
149
|
+
wallPositions[i + 1],
|
|
150
|
+
minDistance
|
|
151
|
+
) + 1;
|
|
152
|
+
}
|
|
153
|
+
topPositions = new Float64Array(count * 3);
|
|
154
|
+
bottomPositions = new Float64Array(count * 3);
|
|
155
|
+
const generateArcPositions = positionsArrayScratch;
|
|
156
|
+
const generateArcHeights = heightsArrayScratch;
|
|
157
|
+
generateArcOptions.positions = generateArcPositions;
|
|
158
|
+
generateArcOptions.height = generateArcHeights;
|
|
159
|
+
let offset = 0;
|
|
160
|
+
for (i = 0; i < length - 1; i++) {
|
|
161
|
+
generateArcPositions[0] = wallPositions[i];
|
|
162
|
+
generateArcPositions[1] = wallPositions[i + 1];
|
|
163
|
+
generateArcHeights[0] = maximumHeights[i];
|
|
164
|
+
generateArcHeights[1] = maximumHeights[i + 1];
|
|
165
|
+
const pos = PolylinePipeline_default.generateArc(generateArcOptions);
|
|
166
|
+
topPositions.set(pos, offset);
|
|
167
|
+
generateArcHeights[0] = minimumHeights[i];
|
|
168
|
+
generateArcHeights[1] = minimumHeights[i + 1];
|
|
169
|
+
bottomPositions.set(
|
|
170
|
+
PolylinePipeline_default.generateArc(generateArcOptions),
|
|
171
|
+
offset
|
|
172
|
+
);
|
|
173
|
+
offset += pos.length;
|
|
174
|
+
}
|
|
175
|
+
} else {
|
|
176
|
+
generateArcOptions.positions = wallPositions;
|
|
177
|
+
generateArcOptions.height = maximumHeights;
|
|
178
|
+
topPositions = new Float64Array(
|
|
179
|
+
PolylinePipeline_default.generateArc(generateArcOptions)
|
|
180
|
+
);
|
|
181
|
+
generateArcOptions.height = minimumHeights;
|
|
182
|
+
bottomPositions = new Float64Array(
|
|
183
|
+
PolylinePipeline_default.generateArc(generateArcOptions)
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
return {
|
|
187
|
+
bottomPositions,
|
|
188
|
+
topPositions,
|
|
189
|
+
numCorners
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
var WallGeometryLibrary_default = WallGeometryLibrary;
|
|
193
|
+
|
|
194
|
+
export {
|
|
195
|
+
WallGeometryLibrary_default
|
|
196
|
+
};
|