@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,421 @@
|
|
|
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
|
+
EllipsoidGeodesic_default
|
|
28
|
+
} from "./chunk-VFBNELXB.js";
|
|
29
|
+
import {
|
|
30
|
+
EllipsoidRhumbLine_default
|
|
31
|
+
} from "./chunk-4MSUJ4I7.js";
|
|
32
|
+
import {
|
|
33
|
+
IntersectionTests_default
|
|
34
|
+
} from "./chunk-6OFDHMHR.js";
|
|
35
|
+
import {
|
|
36
|
+
Plane_default
|
|
37
|
+
} from "./chunk-GWT64LKY.js";
|
|
38
|
+
import {
|
|
39
|
+
Matrix4_default
|
|
40
|
+
} from "./chunk-X43SJLQL.js";
|
|
41
|
+
import {
|
|
42
|
+
Cartesian3_default,
|
|
43
|
+
Cartographic_default,
|
|
44
|
+
Ellipsoid_default
|
|
45
|
+
} from "./chunk-PYHLO636.js";
|
|
46
|
+
import {
|
|
47
|
+
Math_default
|
|
48
|
+
} from "./chunk-MSKXMXJI.js";
|
|
49
|
+
import {
|
|
50
|
+
defaultValue_default
|
|
51
|
+
} from "./chunk-VE7BFUIX.js";
|
|
52
|
+
import {
|
|
53
|
+
DeveloperError_default
|
|
54
|
+
} from "./chunk-S3PI2KFM.js";
|
|
55
|
+
import {
|
|
56
|
+
defined_default
|
|
57
|
+
} from "./chunk-AA4GZKOT.js";
|
|
58
|
+
|
|
59
|
+
// packages/engine/Source/Core/PolylinePipeline.js
|
|
60
|
+
var PolylinePipeline = {};
|
|
61
|
+
PolylinePipeline.numberOfPoints = function(p0, p1, minDistance) {
|
|
62
|
+
const distance = Cartesian3_default.distance(p0, p1);
|
|
63
|
+
return Math.ceil(distance / minDistance);
|
|
64
|
+
};
|
|
65
|
+
PolylinePipeline.numberOfPointsRhumbLine = function(p0, p1, granularity) {
|
|
66
|
+
const radiansDistanceSquared = Math.pow(p0.longitude - p1.longitude, 2) + Math.pow(p0.latitude - p1.latitude, 2);
|
|
67
|
+
return Math.max(
|
|
68
|
+
1,
|
|
69
|
+
Math.ceil(Math.sqrt(radiansDistanceSquared / (granularity * granularity)))
|
|
70
|
+
);
|
|
71
|
+
};
|
|
72
|
+
var cartoScratch = new Cartographic_default();
|
|
73
|
+
PolylinePipeline.extractHeights = function(positions, ellipsoid) {
|
|
74
|
+
const length = positions.length;
|
|
75
|
+
const heights = new Array(length);
|
|
76
|
+
for (let i = 0; i < length; i++) {
|
|
77
|
+
const p = positions[i];
|
|
78
|
+
heights[i] = ellipsoid.cartesianToCartographic(p, cartoScratch).height;
|
|
79
|
+
}
|
|
80
|
+
return heights;
|
|
81
|
+
};
|
|
82
|
+
var wrapLongitudeInversMatrix = new Matrix4_default();
|
|
83
|
+
var wrapLongitudeOrigin = new Cartesian3_default();
|
|
84
|
+
var wrapLongitudeXZNormal = new Cartesian3_default();
|
|
85
|
+
var wrapLongitudeXZPlane = new Plane_default(Cartesian3_default.UNIT_X, 0);
|
|
86
|
+
var wrapLongitudeYZNormal = new Cartesian3_default();
|
|
87
|
+
var wrapLongitudeYZPlane = new Plane_default(Cartesian3_default.UNIT_X, 0);
|
|
88
|
+
var wrapLongitudeIntersection = new Cartesian3_default();
|
|
89
|
+
var wrapLongitudeOffset = new Cartesian3_default();
|
|
90
|
+
var subdivideHeightsScratchArray = [];
|
|
91
|
+
function subdivideHeights(numPoints, h0, h1) {
|
|
92
|
+
const heights = subdivideHeightsScratchArray;
|
|
93
|
+
heights.length = numPoints;
|
|
94
|
+
let i;
|
|
95
|
+
if (h0 === h1) {
|
|
96
|
+
for (i = 0; i < numPoints; i++) {
|
|
97
|
+
heights[i] = h0;
|
|
98
|
+
}
|
|
99
|
+
return heights;
|
|
100
|
+
}
|
|
101
|
+
const dHeight = h1 - h0;
|
|
102
|
+
const heightPerVertex = dHeight / numPoints;
|
|
103
|
+
for (i = 0; i < numPoints; i++) {
|
|
104
|
+
const h = h0 + i * heightPerVertex;
|
|
105
|
+
heights[i] = h;
|
|
106
|
+
}
|
|
107
|
+
return heights;
|
|
108
|
+
}
|
|
109
|
+
var carto1 = new Cartographic_default();
|
|
110
|
+
var carto2 = new Cartographic_default();
|
|
111
|
+
var cartesian = new Cartesian3_default();
|
|
112
|
+
var scaleFirst = new Cartesian3_default();
|
|
113
|
+
var scaleLast = new Cartesian3_default();
|
|
114
|
+
var ellipsoidGeodesic = new EllipsoidGeodesic_default();
|
|
115
|
+
var ellipsoidRhumb = new EllipsoidRhumbLine_default();
|
|
116
|
+
function generateCartesianArc(p0, p1, minDistance, ellipsoid, h0, h1, array, offset) {
|
|
117
|
+
const first = ellipsoid.scaleToGeodeticSurface(p0, scaleFirst);
|
|
118
|
+
const last = ellipsoid.scaleToGeodeticSurface(p1, scaleLast);
|
|
119
|
+
const numPoints = PolylinePipeline.numberOfPoints(p0, p1, minDistance);
|
|
120
|
+
const start = ellipsoid.cartesianToCartographic(first, carto1);
|
|
121
|
+
const end = ellipsoid.cartesianToCartographic(last, carto2);
|
|
122
|
+
const heights = subdivideHeights(numPoints, h0, h1);
|
|
123
|
+
ellipsoidGeodesic.setEndPoints(start, end);
|
|
124
|
+
const surfaceDistanceBetweenPoints = ellipsoidGeodesic.surfaceDistance / numPoints;
|
|
125
|
+
let index = offset;
|
|
126
|
+
start.height = h0;
|
|
127
|
+
let cart = ellipsoid.cartographicToCartesian(start, cartesian);
|
|
128
|
+
Cartesian3_default.pack(cart, array, index);
|
|
129
|
+
index += 3;
|
|
130
|
+
for (let i = 1; i < numPoints; i++) {
|
|
131
|
+
const carto = ellipsoidGeodesic.interpolateUsingSurfaceDistance(
|
|
132
|
+
i * surfaceDistanceBetweenPoints,
|
|
133
|
+
carto2
|
|
134
|
+
);
|
|
135
|
+
carto.height = heights[i];
|
|
136
|
+
cart = ellipsoid.cartographicToCartesian(carto, cartesian);
|
|
137
|
+
Cartesian3_default.pack(cart, array, index);
|
|
138
|
+
index += 3;
|
|
139
|
+
}
|
|
140
|
+
return index;
|
|
141
|
+
}
|
|
142
|
+
function generateCartesianRhumbArc(p0, p1, granularity, ellipsoid, h0, h1, array, offset) {
|
|
143
|
+
const start = ellipsoid.cartesianToCartographic(p0, carto1);
|
|
144
|
+
const end = ellipsoid.cartesianToCartographic(p1, carto2);
|
|
145
|
+
const numPoints = PolylinePipeline.numberOfPointsRhumbLine(
|
|
146
|
+
start,
|
|
147
|
+
end,
|
|
148
|
+
granularity
|
|
149
|
+
);
|
|
150
|
+
start.height = 0;
|
|
151
|
+
end.height = 0;
|
|
152
|
+
const heights = subdivideHeights(numPoints, h0, h1);
|
|
153
|
+
if (!ellipsoidRhumb.ellipsoid.equals(ellipsoid)) {
|
|
154
|
+
ellipsoidRhumb = new EllipsoidRhumbLine_default(void 0, void 0, ellipsoid);
|
|
155
|
+
}
|
|
156
|
+
ellipsoidRhumb.setEndPoints(start, end);
|
|
157
|
+
const surfaceDistanceBetweenPoints = ellipsoidRhumb.surfaceDistance / numPoints;
|
|
158
|
+
let index = offset;
|
|
159
|
+
start.height = h0;
|
|
160
|
+
let cart = ellipsoid.cartographicToCartesian(start, cartesian);
|
|
161
|
+
Cartesian3_default.pack(cart, array, index);
|
|
162
|
+
index += 3;
|
|
163
|
+
for (let i = 1; i < numPoints; i++) {
|
|
164
|
+
const carto = ellipsoidRhumb.interpolateUsingSurfaceDistance(
|
|
165
|
+
i * surfaceDistanceBetweenPoints,
|
|
166
|
+
carto2
|
|
167
|
+
);
|
|
168
|
+
carto.height = heights[i];
|
|
169
|
+
cart = ellipsoid.cartographicToCartesian(carto, cartesian);
|
|
170
|
+
Cartesian3_default.pack(cart, array, index);
|
|
171
|
+
index += 3;
|
|
172
|
+
}
|
|
173
|
+
return index;
|
|
174
|
+
}
|
|
175
|
+
PolylinePipeline.wrapLongitude = function(positions, modelMatrix) {
|
|
176
|
+
const cartesians = [];
|
|
177
|
+
const segments = [];
|
|
178
|
+
if (defined_default(positions) && positions.length > 0) {
|
|
179
|
+
modelMatrix = defaultValue_default(modelMatrix, Matrix4_default.IDENTITY);
|
|
180
|
+
const inverseModelMatrix = Matrix4_default.inverseTransformation(
|
|
181
|
+
modelMatrix,
|
|
182
|
+
wrapLongitudeInversMatrix
|
|
183
|
+
);
|
|
184
|
+
const origin = Matrix4_default.multiplyByPoint(
|
|
185
|
+
inverseModelMatrix,
|
|
186
|
+
Cartesian3_default.ZERO,
|
|
187
|
+
wrapLongitudeOrigin
|
|
188
|
+
);
|
|
189
|
+
const xzNormal = Cartesian3_default.normalize(
|
|
190
|
+
Matrix4_default.multiplyByPointAsVector(
|
|
191
|
+
inverseModelMatrix,
|
|
192
|
+
Cartesian3_default.UNIT_Y,
|
|
193
|
+
wrapLongitudeXZNormal
|
|
194
|
+
),
|
|
195
|
+
wrapLongitudeXZNormal
|
|
196
|
+
);
|
|
197
|
+
const xzPlane = Plane_default.fromPointNormal(
|
|
198
|
+
origin,
|
|
199
|
+
xzNormal,
|
|
200
|
+
wrapLongitudeXZPlane
|
|
201
|
+
);
|
|
202
|
+
const yzNormal = Cartesian3_default.normalize(
|
|
203
|
+
Matrix4_default.multiplyByPointAsVector(
|
|
204
|
+
inverseModelMatrix,
|
|
205
|
+
Cartesian3_default.UNIT_X,
|
|
206
|
+
wrapLongitudeYZNormal
|
|
207
|
+
),
|
|
208
|
+
wrapLongitudeYZNormal
|
|
209
|
+
);
|
|
210
|
+
const yzPlane = Plane_default.fromPointNormal(
|
|
211
|
+
origin,
|
|
212
|
+
yzNormal,
|
|
213
|
+
wrapLongitudeYZPlane
|
|
214
|
+
);
|
|
215
|
+
let count = 1;
|
|
216
|
+
cartesians.push(Cartesian3_default.clone(positions[0]));
|
|
217
|
+
let prev = cartesians[0];
|
|
218
|
+
const length = positions.length;
|
|
219
|
+
for (let i = 1; i < length; ++i) {
|
|
220
|
+
const cur = positions[i];
|
|
221
|
+
if (Plane_default.getPointDistance(yzPlane, prev) < 0 || Plane_default.getPointDistance(yzPlane, cur) < 0) {
|
|
222
|
+
const intersection = IntersectionTests_default.lineSegmentPlane(
|
|
223
|
+
prev,
|
|
224
|
+
cur,
|
|
225
|
+
xzPlane,
|
|
226
|
+
wrapLongitudeIntersection
|
|
227
|
+
);
|
|
228
|
+
if (defined_default(intersection)) {
|
|
229
|
+
const offset = Cartesian3_default.multiplyByScalar(
|
|
230
|
+
xzNormal,
|
|
231
|
+
5e-9,
|
|
232
|
+
wrapLongitudeOffset
|
|
233
|
+
);
|
|
234
|
+
if (Plane_default.getPointDistance(xzPlane, prev) < 0) {
|
|
235
|
+
Cartesian3_default.negate(offset, offset);
|
|
236
|
+
}
|
|
237
|
+
cartesians.push(
|
|
238
|
+
Cartesian3_default.add(intersection, offset, new Cartesian3_default())
|
|
239
|
+
);
|
|
240
|
+
segments.push(count + 1);
|
|
241
|
+
Cartesian3_default.negate(offset, offset);
|
|
242
|
+
cartesians.push(
|
|
243
|
+
Cartesian3_default.add(intersection, offset, new Cartesian3_default())
|
|
244
|
+
);
|
|
245
|
+
count = 1;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
cartesians.push(Cartesian3_default.clone(positions[i]));
|
|
249
|
+
count++;
|
|
250
|
+
prev = cur;
|
|
251
|
+
}
|
|
252
|
+
segments.push(count);
|
|
253
|
+
}
|
|
254
|
+
return {
|
|
255
|
+
positions: cartesians,
|
|
256
|
+
lengths: segments
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
PolylinePipeline.generateArc = function(options) {
|
|
260
|
+
if (!defined_default(options)) {
|
|
261
|
+
options = {};
|
|
262
|
+
}
|
|
263
|
+
const positions = options.positions;
|
|
264
|
+
if (!defined_default(positions)) {
|
|
265
|
+
throw new DeveloperError_default("options.positions is required.");
|
|
266
|
+
}
|
|
267
|
+
const length = positions.length;
|
|
268
|
+
const ellipsoid = defaultValue_default(options.ellipsoid, Ellipsoid_default.default);
|
|
269
|
+
let height = defaultValue_default(options.height, 0);
|
|
270
|
+
const hasHeightArray = Array.isArray(height);
|
|
271
|
+
if (length < 1) {
|
|
272
|
+
return [];
|
|
273
|
+
} else if (length === 1) {
|
|
274
|
+
const p = ellipsoid.scaleToGeodeticSurface(positions[0], scaleFirst);
|
|
275
|
+
height = hasHeightArray ? height[0] : height;
|
|
276
|
+
if (height !== 0) {
|
|
277
|
+
const n = ellipsoid.geodeticSurfaceNormal(p, cartesian);
|
|
278
|
+
Cartesian3_default.multiplyByScalar(n, height, n);
|
|
279
|
+
Cartesian3_default.add(p, n, p);
|
|
280
|
+
}
|
|
281
|
+
return [p.x, p.y, p.z];
|
|
282
|
+
}
|
|
283
|
+
let minDistance = options.minDistance;
|
|
284
|
+
if (!defined_default(minDistance)) {
|
|
285
|
+
const granularity = defaultValue_default(
|
|
286
|
+
options.granularity,
|
|
287
|
+
Math_default.RADIANS_PER_DEGREE
|
|
288
|
+
);
|
|
289
|
+
minDistance = Math_default.chordLength(granularity, ellipsoid.maximumRadius);
|
|
290
|
+
}
|
|
291
|
+
let numPoints = 0;
|
|
292
|
+
let i;
|
|
293
|
+
for (i = 0; i < length - 1; i++) {
|
|
294
|
+
numPoints += PolylinePipeline.numberOfPoints(
|
|
295
|
+
positions[i],
|
|
296
|
+
positions[i + 1],
|
|
297
|
+
minDistance
|
|
298
|
+
);
|
|
299
|
+
}
|
|
300
|
+
const arrayLength = (numPoints + 1) * 3;
|
|
301
|
+
const newPositions = new Array(arrayLength);
|
|
302
|
+
let offset = 0;
|
|
303
|
+
for (i = 0; i < length - 1; i++) {
|
|
304
|
+
const p0 = positions[i];
|
|
305
|
+
const p1 = positions[i + 1];
|
|
306
|
+
const h0 = hasHeightArray ? height[i] : height;
|
|
307
|
+
const h1 = hasHeightArray ? height[i + 1] : height;
|
|
308
|
+
offset = generateCartesianArc(
|
|
309
|
+
p0,
|
|
310
|
+
p1,
|
|
311
|
+
minDistance,
|
|
312
|
+
ellipsoid,
|
|
313
|
+
h0,
|
|
314
|
+
h1,
|
|
315
|
+
newPositions,
|
|
316
|
+
offset
|
|
317
|
+
);
|
|
318
|
+
}
|
|
319
|
+
subdivideHeightsScratchArray.length = 0;
|
|
320
|
+
const lastPoint = positions[length - 1];
|
|
321
|
+
const carto = ellipsoid.cartesianToCartographic(lastPoint, carto1);
|
|
322
|
+
carto.height = hasHeightArray ? height[length - 1] : height;
|
|
323
|
+
const cart = ellipsoid.cartographicToCartesian(carto, cartesian);
|
|
324
|
+
Cartesian3_default.pack(cart, newPositions, arrayLength - 3);
|
|
325
|
+
return newPositions;
|
|
326
|
+
};
|
|
327
|
+
var scratchCartographic0 = new Cartographic_default();
|
|
328
|
+
var scratchCartographic1 = new Cartographic_default();
|
|
329
|
+
PolylinePipeline.generateRhumbArc = function(options) {
|
|
330
|
+
if (!defined_default(options)) {
|
|
331
|
+
options = {};
|
|
332
|
+
}
|
|
333
|
+
const positions = options.positions;
|
|
334
|
+
if (!defined_default(positions)) {
|
|
335
|
+
throw new DeveloperError_default("options.positions is required.");
|
|
336
|
+
}
|
|
337
|
+
const length = positions.length;
|
|
338
|
+
const ellipsoid = defaultValue_default(options.ellipsoid, Ellipsoid_default.default);
|
|
339
|
+
let height = defaultValue_default(options.height, 0);
|
|
340
|
+
const hasHeightArray = Array.isArray(height);
|
|
341
|
+
if (length < 1) {
|
|
342
|
+
return [];
|
|
343
|
+
} else if (length === 1) {
|
|
344
|
+
const p = ellipsoid.scaleToGeodeticSurface(positions[0], scaleFirst);
|
|
345
|
+
height = hasHeightArray ? height[0] : height;
|
|
346
|
+
if (height !== 0) {
|
|
347
|
+
const n = ellipsoid.geodeticSurfaceNormal(p, cartesian);
|
|
348
|
+
Cartesian3_default.multiplyByScalar(n, height, n);
|
|
349
|
+
Cartesian3_default.add(p, n, p);
|
|
350
|
+
}
|
|
351
|
+
return [p.x, p.y, p.z];
|
|
352
|
+
}
|
|
353
|
+
const granularity = defaultValue_default(
|
|
354
|
+
options.granularity,
|
|
355
|
+
Math_default.RADIANS_PER_DEGREE
|
|
356
|
+
);
|
|
357
|
+
let numPoints = 0;
|
|
358
|
+
let i;
|
|
359
|
+
let c0 = ellipsoid.cartesianToCartographic(
|
|
360
|
+
positions[0],
|
|
361
|
+
scratchCartographic0
|
|
362
|
+
);
|
|
363
|
+
let c1;
|
|
364
|
+
for (i = 0; i < length - 1; i++) {
|
|
365
|
+
c1 = ellipsoid.cartesianToCartographic(
|
|
366
|
+
positions[i + 1],
|
|
367
|
+
scratchCartographic1
|
|
368
|
+
);
|
|
369
|
+
numPoints += PolylinePipeline.numberOfPointsRhumbLine(c0, c1, granularity);
|
|
370
|
+
c0 = Cartographic_default.clone(c1, scratchCartographic0);
|
|
371
|
+
}
|
|
372
|
+
const arrayLength = (numPoints + 1) * 3;
|
|
373
|
+
const newPositions = new Array(arrayLength);
|
|
374
|
+
let offset = 0;
|
|
375
|
+
for (i = 0; i < length - 1; i++) {
|
|
376
|
+
const p0 = positions[i];
|
|
377
|
+
const p1 = positions[i + 1];
|
|
378
|
+
const h0 = hasHeightArray ? height[i] : height;
|
|
379
|
+
const h1 = hasHeightArray ? height[i + 1] : height;
|
|
380
|
+
offset = generateCartesianRhumbArc(
|
|
381
|
+
p0,
|
|
382
|
+
p1,
|
|
383
|
+
granularity,
|
|
384
|
+
ellipsoid,
|
|
385
|
+
h0,
|
|
386
|
+
h1,
|
|
387
|
+
newPositions,
|
|
388
|
+
offset
|
|
389
|
+
);
|
|
390
|
+
}
|
|
391
|
+
subdivideHeightsScratchArray.length = 0;
|
|
392
|
+
const lastPoint = positions[length - 1];
|
|
393
|
+
const carto = ellipsoid.cartesianToCartographic(lastPoint, carto1);
|
|
394
|
+
carto.height = hasHeightArray ? height[length - 1] : height;
|
|
395
|
+
const cart = ellipsoid.cartographicToCartesian(carto, cartesian);
|
|
396
|
+
Cartesian3_default.pack(cart, newPositions, arrayLength - 3);
|
|
397
|
+
return newPositions;
|
|
398
|
+
};
|
|
399
|
+
PolylinePipeline.generateCartesianArc = function(options) {
|
|
400
|
+
const numberArray = PolylinePipeline.generateArc(options);
|
|
401
|
+
const size = numberArray.length / 3;
|
|
402
|
+
const newPositions = new Array(size);
|
|
403
|
+
for (let i = 0; i < size; i++) {
|
|
404
|
+
newPositions[i] = Cartesian3_default.unpack(numberArray, i * 3);
|
|
405
|
+
}
|
|
406
|
+
return newPositions;
|
|
407
|
+
};
|
|
408
|
+
PolylinePipeline.generateCartesianRhumbArc = function(options) {
|
|
409
|
+
const numberArray = PolylinePipeline.generateRhumbArc(options);
|
|
410
|
+
const size = numberArray.length / 3;
|
|
411
|
+
const newPositions = new Array(size);
|
|
412
|
+
for (let i = 0; i < size; i++) {
|
|
413
|
+
newPositions[i] = Cartesian3_default.unpack(numberArray, i * 3);
|
|
414
|
+
}
|
|
415
|
+
return newPositions;
|
|
416
|
+
};
|
|
417
|
+
var PolylinePipeline_default = PolylinePipeline;
|
|
418
|
+
|
|
419
|
+
export {
|
|
420
|
+
PolylinePipeline_default
|
|
421
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.120
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,29 +25,29 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
PrimitivePipeline_default
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-VRZ46QZ5.js";
|
|
29
29
|
import {
|
|
30
30
|
createTaskProcessorWorker_default
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-MMV6TO3P.js";
|
|
32
|
+
import "./chunk-QYQIVZBU.js";
|
|
33
|
+
import "./chunk-PNFHVBSF.js";
|
|
34
|
+
import "./chunk-J7MQUQJY.js";
|
|
35
|
+
import "./chunk-SAPFXU5X.js";
|
|
36
|
+
import "./chunk-TF776XCO.js";
|
|
37
|
+
import "./chunk-A5CODJ4M.js";
|
|
38
|
+
import "./chunk-EB7PNZTK.js";
|
|
39
|
+
import "./chunk-JYQNWIQQ.js";
|
|
40
|
+
import "./chunk-IUROUBPA.js";
|
|
41
|
+
import "./chunk-ELI4BUOT.js";
|
|
42
|
+
import "./chunk-OXALEQPI.js";
|
|
43
|
+
import "./chunk-FQPSOOPH.js";
|
|
44
|
+
import "./chunk-T6LPN7RI.js";
|
|
45
|
+
import "./chunk-R4OIEIPE.js";
|
|
46
|
+
import "./chunk-RHBWXX7C.js";
|
|
47
|
+
import "./chunk-ZIKGV7EL.js";
|
|
48
|
+
import "./chunk-BAVI3ZS2.js";
|
|
49
|
+
import "./chunk-TGY6H6N6.js";
|
|
50
|
+
import "./chunk-N4QEHO3U.js";
|
|
51
51
|
|
|
52
52
|
// packages/engine/Source/Workers/combineGeometry.js
|
|
53
53
|
function combineGeometry(packedParameters, transferableObjects) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.120
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,23 +25,23 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
BoxGeometry_default
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-ACRTCBN5.js";
|
|
29
|
+
import "./chunk-GNHZH7HP.js";
|
|
30
|
+
import "./chunk-LSSWVB2X.js";
|
|
31
|
+
import "./chunk-JYQNWIQQ.js";
|
|
32
|
+
import "./chunk-IUROUBPA.js";
|
|
33
|
+
import "./chunk-ELI4BUOT.js";
|
|
34
|
+
import "./chunk-OXALEQPI.js";
|
|
35
|
+
import "./chunk-FQPSOOPH.js";
|
|
36
|
+
import "./chunk-T6LPN7RI.js";
|
|
37
|
+
import "./chunk-R4OIEIPE.js";
|
|
38
|
+
import "./chunk-RHBWXX7C.js";
|
|
39
|
+
import "./chunk-ZIKGV7EL.js";
|
|
40
|
+
import "./chunk-BAVI3ZS2.js";
|
|
41
|
+
import "./chunk-TGY6H6N6.js";
|
|
42
42
|
import {
|
|
43
43
|
defined_default
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-N4QEHO3U.js";
|
|
45
45
|
|
|
46
46
|
// packages/engine/Source/Workers/createBoxGeometry.js
|
|
47
47
|
function createBoxGeometry(boxGeometry, offset) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.120
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,38 +25,38 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
GeometryOffsetAttribute_default
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-GNHZH7HP.js";
|
|
29
29
|
import {
|
|
30
30
|
GeometryAttributes_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-JYQNWIQQ.js";
|
|
32
32
|
import {
|
|
33
33
|
GeometryAttribute_default,
|
|
34
34
|
Geometry_default,
|
|
35
35
|
PrimitiveType_default
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-IUROUBPA.js";
|
|
37
37
|
import {
|
|
38
38
|
BoundingSphere_default
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-ELI4BUOT.js";
|
|
40
|
+
import "./chunk-OXALEQPI.js";
|
|
41
41
|
import {
|
|
42
42
|
ComponentDatatype_default
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-FQPSOOPH.js";
|
|
44
44
|
import {
|
|
45
45
|
Cartesian3_default
|
|
46
|
-
} from "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
46
|
+
} from "./chunk-T6LPN7RI.js";
|
|
47
|
+
import "./chunk-R4OIEIPE.js";
|
|
48
|
+
import "./chunk-RHBWXX7C.js";
|
|
49
|
+
import "./chunk-ZIKGV7EL.js";
|
|
50
50
|
import {
|
|
51
51
|
defaultValue_default
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-BAVI3ZS2.js";
|
|
53
53
|
import {
|
|
54
54
|
Check_default,
|
|
55
55
|
DeveloperError_default
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-TGY6H6N6.js";
|
|
57
57
|
import {
|
|
58
58
|
defined_default
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-N4QEHO3U.js";
|
|
60
60
|
|
|
61
61
|
// packages/engine/Source/Core/BoxOutlineGeometry.js
|
|
62
62
|
var diffScratch = new Cartesian3_default();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.120
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,40 +25,40 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
EllipseGeometry_default
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-R3TKLC6E.js";
|
|
29
|
+
import "./chunk-D4K27X2M.js";
|
|
30
|
+
import "./chunk-UOEUCKKU.js";
|
|
31
|
+
import "./chunk-PNFHVBSF.js";
|
|
32
|
+
import "./chunk-J7MQUQJY.js";
|
|
33
|
+
import "./chunk-SAPFXU5X.js";
|
|
34
|
+
import "./chunk-GNHZH7HP.js";
|
|
35
35
|
import {
|
|
36
36
|
VertexFormat_default
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-LSSWVB2X.js";
|
|
38
|
+
import "./chunk-TF776XCO.js";
|
|
39
|
+
import "./chunk-A5CODJ4M.js";
|
|
40
|
+
import "./chunk-EB7PNZTK.js";
|
|
41
|
+
import "./chunk-JYQNWIQQ.js";
|
|
42
|
+
import "./chunk-IUROUBPA.js";
|
|
43
|
+
import "./chunk-ELI4BUOT.js";
|
|
44
|
+
import "./chunk-OXALEQPI.js";
|
|
45
|
+
import "./chunk-FQPSOOPH.js";
|
|
46
46
|
import {
|
|
47
47
|
Cartesian3_default,
|
|
48
48
|
Ellipsoid_default
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
49
|
+
} from "./chunk-T6LPN7RI.js";
|
|
50
|
+
import "./chunk-R4OIEIPE.js";
|
|
51
|
+
import "./chunk-RHBWXX7C.js";
|
|
52
|
+
import "./chunk-ZIKGV7EL.js";
|
|
53
53
|
import {
|
|
54
54
|
defaultValue_default
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-BAVI3ZS2.js";
|
|
56
56
|
import {
|
|
57
57
|
Check_default
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-TGY6H6N6.js";
|
|
59
59
|
import {
|
|
60
60
|
defined_default
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-N4QEHO3U.js";
|
|
62
62
|
|
|
63
63
|
// packages/engine/Source/Core/CircleGeometry.js
|
|
64
64
|
function CircleGeometry(options) {
|
|
@@ -93,7 +93,7 @@ var scratchEllipseGeometry = new EllipseGeometry_default({
|
|
|
93
93
|
var scratchOptions = {
|
|
94
94
|
center: new Cartesian3_default(),
|
|
95
95
|
radius: void 0,
|
|
96
|
-
ellipsoid: Ellipsoid_default.clone(Ellipsoid_default.
|
|
96
|
+
ellipsoid: Ellipsoid_default.clone(Ellipsoid_default.default),
|
|
97
97
|
height: void 0,
|
|
98
98
|
extrudedHeight: void 0,
|
|
99
99
|
granularity: void 0,
|
|
@@ -117,6 +117,10 @@ CircleGeometry.unpack = function(array, startingIndex, result) {
|
|
|
117
117
|
ellipseGeometry._ellipsoid,
|
|
118
118
|
scratchOptions.ellipsoid
|
|
119
119
|
);
|
|
120
|
+
scratchOptions.ellipsoid = Ellipsoid_default.clone(
|
|
121
|
+
ellipseGeometry._ellipsoid,
|
|
122
|
+
scratchEllipseGeometry._ellipsoid
|
|
123
|
+
);
|
|
120
124
|
scratchOptions.height = ellipseGeometry._height;
|
|
121
125
|
scratchOptions.extrudedHeight = ellipseGeometry._extrudedHeight;
|
|
122
126
|
scratchOptions.granularity = ellipseGeometry._granularity;
|