@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
|
@@ -35,9 +35,9 @@ import TerrainProvider from "./TerrainProvider.js";
|
|
|
35
35
|
* @param {TilingScheme} [options.tilingScheme] The tiling scheme specifying how the ellipsoidal
|
|
36
36
|
* surface is broken into tiles. If this parameter is not provided, a {@link GeographicTilingScheme}
|
|
37
37
|
* is used.
|
|
38
|
-
* @param {Ellipsoid} [options.ellipsoid] The ellipsoid. If the tilingScheme is specified,
|
|
38
|
+
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.default] The ellipsoid. If the tilingScheme is specified,
|
|
39
39
|
* this parameter is ignored and the tiling scheme's ellipsoid is used instead. If neither
|
|
40
|
-
* parameter is specified, the
|
|
40
|
+
* parameter is specified, the default ellipsoid is used.
|
|
41
41
|
* @param {Credit|string} [options.credit] A credit for the data source, which is displayed on the canvas.
|
|
42
42
|
*
|
|
43
43
|
* @example
|
|
@@ -67,7 +67,7 @@ function CustomHeightmapTerrainProvider(options) {
|
|
|
67
67
|
this._tilingScheme = options.tilingScheme;
|
|
68
68
|
if (!defined(this._tilingScheme)) {
|
|
69
69
|
this._tilingScheme = new GeographicTilingScheme({
|
|
70
|
-
ellipsoid: defaultValue(options.ellipsoid, Ellipsoid.
|
|
70
|
+
ellipsoid: defaultValue(options.ellipsoid, Ellipsoid.default),
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
|
|
@@ -160,6 +160,20 @@ Object.defineProperties(CustomHeightmapTerrainProvider.prototype, {
|
|
|
160
160
|
},
|
|
161
161
|
},
|
|
162
162
|
|
|
163
|
+
/**
|
|
164
|
+
* Gets an object that can be used to determine availability of terrain from this provider, such as
|
|
165
|
+
* at points and in rectangles. This property may be undefined if availability
|
|
166
|
+
* information is not available.
|
|
167
|
+
* @memberof CustomHeightmapTerrainProvider.prototype
|
|
168
|
+
* @type {TileAvailability}
|
|
169
|
+
* @readonly
|
|
170
|
+
*/
|
|
171
|
+
availability: {
|
|
172
|
+
get: function () {
|
|
173
|
+
return undefined;
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
|
|
163
177
|
/**
|
|
164
178
|
* Gets the number of columns per heightmap tile.
|
|
165
179
|
* @memberof CustomHeightmapTerrainProvider.prototype
|
|
@@ -892,7 +892,7 @@ function computeRectangle(
|
|
|
892
892
|
* @param {Cartesian3} options.center The ellipse's center point in the fixed frame.
|
|
893
893
|
* @param {number} options.semiMajorAxis The length of the ellipse's semi-major axis in meters.
|
|
894
894
|
* @param {number} options.semiMinorAxis The length of the ellipse's semi-minor axis in meters.
|
|
895
|
-
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.
|
|
895
|
+
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.default] The ellipsoid the ellipse will be on.
|
|
896
896
|
* @param {number} [options.height=0.0] The distance in meters between the ellipse and the ellipsoid surface.
|
|
897
897
|
* @param {number} [options.extrudedHeight] The distance in meters between the ellipse's extruded face and the ellipsoid surface.
|
|
898
898
|
* @param {number} [options.rotation=0.0] The angle of rotation counter-clockwise from north.
|
|
@@ -921,7 +921,7 @@ function EllipseGeometry(options) {
|
|
|
921
921
|
options = defaultValue(options, defaultValue.EMPTY_OBJECT);
|
|
922
922
|
|
|
923
923
|
const center = options.center;
|
|
924
|
-
const ellipsoid = defaultValue(options.ellipsoid, Ellipsoid.
|
|
924
|
+
const ellipsoid = defaultValue(options.ellipsoid, Ellipsoid.default);
|
|
925
925
|
const semiMajorAxis = options.semiMajorAxis;
|
|
926
926
|
const semiMinorAxis = options.semiMinorAxis;
|
|
927
927
|
const granularity = defaultValue(
|
|
@@ -1109,7 +1109,7 @@ EllipseGeometry.unpack = function (array, startingIndex, result) {
|
|
|
1109
1109
|
* @param {Cartesian3} options.center The ellipse's center point in the fixed frame.
|
|
1110
1110
|
* @param {number} options.semiMajorAxis The length of the ellipse's semi-major axis in meters.
|
|
1111
1111
|
* @param {number} options.semiMinorAxis The length of the ellipse's semi-minor axis in meters.
|
|
1112
|
-
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.
|
|
1112
|
+
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.default] The ellipsoid the ellipse will be on.
|
|
1113
1113
|
* @param {number} [options.rotation=0.0] The angle of rotation counter-clockwise from north.
|
|
1114
1114
|
* @param {number} [options.granularity=CesiumMath.RADIANS_PER_DEGREE] The angular distance between points on the ellipse in radians.
|
|
1115
1115
|
* @param {Rectangle} [result] An object in which to store the result
|
|
@@ -1120,7 +1120,7 @@ EllipseGeometry.computeRectangle = function (options, result) {
|
|
|
1120
1120
|
options = defaultValue(options, defaultValue.EMPTY_OBJECT);
|
|
1121
1121
|
|
|
1122
1122
|
const center = options.center;
|
|
1123
|
-
const ellipsoid = defaultValue(options.ellipsoid, Ellipsoid.
|
|
1123
|
+
const ellipsoid = defaultValue(options.ellipsoid, Ellipsoid.default);
|
|
1124
1124
|
const semiMajorAxis = options.semiMajorAxis;
|
|
1125
1125
|
const semiMinorAxis = options.semiMinorAxis;
|
|
1126
1126
|
const granularity = defaultValue(
|
|
@@ -188,7 +188,7 @@ function computeExtrudedEllipse(options) {
|
|
|
188
188
|
* @param {Cartesian3} options.center The ellipse's center point in the fixed frame.
|
|
189
189
|
* @param {number} options.semiMajorAxis The length of the ellipse's semi-major axis in meters.
|
|
190
190
|
* @param {number} options.semiMinorAxis The length of the ellipse's semi-minor axis in meters.
|
|
191
|
-
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.
|
|
191
|
+
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.default] The ellipsoid the ellipse will be on.
|
|
192
192
|
* @param {number} [options.height=0.0] The distance in meters between the ellipse and the ellipsoid surface.
|
|
193
193
|
* @param {number} [options.extrudedHeight] The distance in meters between the ellipse's extruded face and the ellipsoid surface.
|
|
194
194
|
* @param {number} [options.rotation=0.0] The angle from north (counter-clockwise) in radians.
|
|
@@ -214,7 +214,7 @@ function EllipseOutlineGeometry(options) {
|
|
|
214
214
|
options = defaultValue(options, defaultValue.EMPTY_OBJECT);
|
|
215
215
|
|
|
216
216
|
const center = options.center;
|
|
217
|
-
const ellipsoid = defaultValue(options.ellipsoid, Ellipsoid.
|
|
217
|
+
const ellipsoid = defaultValue(options.ellipsoid, Ellipsoid.default);
|
|
218
218
|
const semiMajorAxis = options.semiMajorAxis;
|
|
219
219
|
const semiMinorAxis = options.semiMinorAxis;
|
|
220
220
|
const granularity = defaultValue(
|
package/Source/Core/Ellipsoid.js
CHANGED
|
@@ -255,6 +255,40 @@ Ellipsoid.MOON = Object.freeze(
|
|
|
255
255
|
)
|
|
256
256
|
);
|
|
257
257
|
|
|
258
|
+
Ellipsoid._default = Ellipsoid.WGS84;
|
|
259
|
+
Object.defineProperties(Ellipsoid, {
|
|
260
|
+
/**
|
|
261
|
+
* The default ellipsoid used when not otherwise specified.
|
|
262
|
+
* @memberof Ellipsoid
|
|
263
|
+
* @type {Ellipsoid}
|
|
264
|
+
* @example
|
|
265
|
+
* Cesium.Ellipsoid.default = Cesium.Ellipsoid.MOON;
|
|
266
|
+
*
|
|
267
|
+
* // Apollo 11 landing site
|
|
268
|
+
* const position = Cesium.Cartesian3.fromRadians(
|
|
269
|
+
* 0.67416,
|
|
270
|
+
* 23.47315,
|
|
271
|
+
* );
|
|
272
|
+
*/
|
|
273
|
+
default: {
|
|
274
|
+
get: function () {
|
|
275
|
+
return Ellipsoid._default;
|
|
276
|
+
},
|
|
277
|
+
set: function (value) {
|
|
278
|
+
//>>includeStart('debug', pragmas.debug);
|
|
279
|
+
Check.typeOf.object("value", value);
|
|
280
|
+
//>>includeEnd('debug');
|
|
281
|
+
|
|
282
|
+
Ellipsoid._default = value;
|
|
283
|
+
Cartesian3._ellipsoidRadiiSquared = value.radiiSquared;
|
|
284
|
+
Cartographic._ellipsoidOneOverRadii = value.oneOverRadii;
|
|
285
|
+
Cartographic._ellipsoidOneOverRadiiSquared = value.oneOverRadiiSquared;
|
|
286
|
+
Cartographic._ellipsoidCenterToleranceSquared =
|
|
287
|
+
value._centerToleranceSquared;
|
|
288
|
+
},
|
|
289
|
+
},
|
|
290
|
+
});
|
|
291
|
+
|
|
258
292
|
/**
|
|
259
293
|
* Duplicates an Ellipsoid instance.
|
|
260
294
|
*
|
|
@@ -280,10 +280,10 @@ function computeProperties(ellipsoidGeodesic, start, end, ellipsoid) {
|
|
|
280
280
|
*
|
|
281
281
|
* @param {Cartographic} [start] The initial planetodetic point on the path.
|
|
282
282
|
* @param {Cartographic} [end] The final planetodetic point on the path.
|
|
283
|
-
* @param {Ellipsoid} [ellipsoid=Ellipsoid.
|
|
283
|
+
* @param {Ellipsoid} [ellipsoid=Ellipsoid.default] The ellipsoid on which the geodesic lies.
|
|
284
284
|
*/
|
|
285
285
|
function EllipsoidGeodesic(start, end, ellipsoid) {
|
|
286
|
-
const e = defaultValue(ellipsoid, Ellipsoid.
|
|
286
|
+
const e = defaultValue(ellipsoid, Ellipsoid.default);
|
|
287
287
|
this._ellipsoid = e;
|
|
288
288
|
this._start = new Cartographic();
|
|
289
289
|
this._end = new Cartographic();
|
|
@@ -385,12 +385,12 @@ function interpolateUsingSurfaceDistance(
|
|
|
385
385
|
*
|
|
386
386
|
* @param {Cartographic} [start] The initial planetodetic point on the path.
|
|
387
387
|
* @param {Cartographic} [end] The final planetodetic point on the path.
|
|
388
|
-
* @param {Ellipsoid} [ellipsoid=Ellipsoid.
|
|
388
|
+
* @param {Ellipsoid} [ellipsoid=Ellipsoid.default] The ellipsoid on which the rhumb line lies.
|
|
389
389
|
*
|
|
390
390
|
* @exception {DeveloperError} angle between start and end must be at least 0.0125 radians.
|
|
391
391
|
*/
|
|
392
392
|
function EllipsoidRhumbLine(start, end, ellipsoid) {
|
|
393
|
-
const e = defaultValue(ellipsoid, Ellipsoid.
|
|
393
|
+
const e = defaultValue(ellipsoid, Ellipsoid.default);
|
|
394
394
|
this._ellipsoid = e;
|
|
395
395
|
this._start = new Cartographic();
|
|
396
396
|
this._end = new Cartographic();
|
|
@@ -481,7 +481,7 @@ Object.defineProperties(EllipsoidRhumbLine.prototype, {
|
|
|
481
481
|
* @param {Cartographic} start The initial planetodetic point on the path.
|
|
482
482
|
* @param {number} heading The heading in radians.
|
|
483
483
|
* @param {number} distance The rhumb line distance between the start and end point.
|
|
484
|
-
* @param {Ellipsoid} [ellipsoid=Ellipsoid.
|
|
484
|
+
* @param {Ellipsoid} [ellipsoid=Ellipsoid.default] The ellipsoid on which the rhumb line lies.
|
|
485
485
|
* @param {EllipsoidRhumbLine} [result] The object in which to store the result.
|
|
486
486
|
* @returns {EllipsoidRhumbLine} The EllipsoidRhumbLine object.
|
|
487
487
|
*/
|
|
@@ -499,7 +499,7 @@ EllipsoidRhumbLine.fromStartHeadingDistance = function (
|
|
|
499
499
|
Check.typeOf.number.greaterThan("distance", distance, 0.0);
|
|
500
500
|
//>>includeEnd('debug');
|
|
501
501
|
|
|
502
|
-
const e = defaultValue(ellipsoid, Ellipsoid.
|
|
502
|
+
const e = defaultValue(ellipsoid, Ellipsoid.default);
|
|
503
503
|
const major = e.maximumRadius;
|
|
504
504
|
const minor = e.minimumRadius;
|
|
505
505
|
const majorSquared = major * major;
|
|
@@ -22,7 +22,7 @@ const scratchCart4 = new Cartesian4();
|
|
|
22
22
|
* @constructor
|
|
23
23
|
*
|
|
24
24
|
* @param {Cartesian3} origin The point on the surface of the ellipsoid where the tangent plane touches.
|
|
25
|
-
* @param {Ellipsoid} [ellipsoid=Ellipsoid.
|
|
25
|
+
* @param {Ellipsoid} [ellipsoid=Ellipsoid.default] The ellipsoid to use.
|
|
26
26
|
*
|
|
27
27
|
* @exception {DeveloperError} origin must not be at the center of the ellipsoid.
|
|
28
28
|
*/
|
|
@@ -31,7 +31,7 @@ function EllipsoidTangentPlane(origin, ellipsoid) {
|
|
|
31
31
|
Check.defined("origin", origin);
|
|
32
32
|
//>>includeEnd('debug');
|
|
33
33
|
|
|
34
|
-
ellipsoid = defaultValue(ellipsoid, Ellipsoid.
|
|
34
|
+
ellipsoid = defaultValue(ellipsoid, Ellipsoid.default);
|
|
35
35
|
origin = ellipsoid.scaleToGeodeticSurface(origin);
|
|
36
36
|
|
|
37
37
|
//>>includeStart('debug', pragmas.debug);
|
|
@@ -136,7 +136,7 @@ const tmp = new AxisAlignedBoundingBox();
|
|
|
136
136
|
* point of the provided Cartesians.
|
|
137
137
|
*
|
|
138
138
|
* @param {Cartesian3[]} cartesians The list of positions surrounding the center point.
|
|
139
|
-
* @param {Ellipsoid} [ellipsoid=Ellipsoid.
|
|
139
|
+
* @param {Ellipsoid} [ellipsoid=Ellipsoid.default] The ellipsoid to use.
|
|
140
140
|
* @returns {EllipsoidTangentPlane} The new instance of EllipsoidTangentPlane.
|
|
141
141
|
*/
|
|
142
142
|
EllipsoidTangentPlane.fromPoints = function (cartesians, ellipsoid) {
|
|
@@ -17,9 +17,9 @@ import TerrainProvider from "./TerrainProvider.js";
|
|
|
17
17
|
* @param {TilingScheme} [options.tilingScheme] The tiling scheme specifying how the ellipsoidal
|
|
18
18
|
* surface is broken into tiles. If this parameter is not provided, a {@link GeographicTilingScheme}
|
|
19
19
|
* is used.
|
|
20
|
-
* @param {Ellipsoid} [options.ellipsoid] The ellipsoid. If the tilingScheme is specified,
|
|
20
|
+
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.default] The ellipsoid. If the tilingScheme is specified,
|
|
21
21
|
* this parameter is ignored and the tiling scheme's ellipsoid is used instead. If neither
|
|
22
|
-
* parameter is specified, the
|
|
22
|
+
* parameter is specified, the default ellipsoid is used.
|
|
23
23
|
*
|
|
24
24
|
* @see TerrainProvider
|
|
25
25
|
*/
|
|
@@ -29,7 +29,7 @@ function EllipsoidTerrainProvider(options) {
|
|
|
29
29
|
this._tilingScheme = options.tilingScheme;
|
|
30
30
|
if (!defined(this._tilingScheme)) {
|
|
31
31
|
this._tilingScheme = new GeographicTilingScheme({
|
|
32
|
-
ellipsoid: defaultValue(options.ellipsoid, Ellipsoid.
|
|
32
|
+
ellipsoid: defaultValue(options.ellipsoid, Ellipsoid.default),
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -8,18 +8,18 @@ import Ellipsoid from "./Ellipsoid.js";
|
|
|
8
8
|
/**
|
|
9
9
|
* A simple map projection where longitude and latitude are linearly mapped to X and Y by multiplying
|
|
10
10
|
* them by the {@link Ellipsoid#maximumRadius}. This projection
|
|
11
|
-
* is commonly known as geographic, equirectangular, equidistant cylindrical, or plate carrée.
|
|
11
|
+
* is commonly known as geographic, equirectangular, equidistant cylindrical, or plate carrée. When using the WGS84 ellipsoid, it
|
|
12
12
|
* is also known as EPSG:4326.
|
|
13
13
|
*
|
|
14
14
|
* @alias GeographicProjection
|
|
15
15
|
* @constructor
|
|
16
16
|
*
|
|
17
|
-
* @param {Ellipsoid} [ellipsoid=Ellipsoid.
|
|
17
|
+
* @param {Ellipsoid} [ellipsoid=Ellipsoid.default] The ellipsoid.
|
|
18
18
|
*
|
|
19
19
|
* @see WebMercatorProjection
|
|
20
20
|
*/
|
|
21
21
|
function GeographicProjection(ellipsoid) {
|
|
22
|
-
this._ellipsoid = defaultValue(ellipsoid, Ellipsoid.
|
|
22
|
+
this._ellipsoid = defaultValue(ellipsoid, Ellipsoid.default);
|
|
23
23
|
this._semimajorAxis = this._ellipsoid.maximumRadius;
|
|
24
24
|
this._oneOverSemimajorAxis = 1.0 / this._semimajorAxis;
|
|
25
25
|
}
|
|
@@ -102,4 +102,5 @@ GeographicProjection.prototype.unproject = function (cartesian, result) {
|
|
|
102
102
|
result.height = height;
|
|
103
103
|
return result;
|
|
104
104
|
};
|
|
105
|
+
|
|
105
106
|
export default GeographicProjection;
|
|
@@ -16,8 +16,8 @@ import Rectangle from "./Rectangle.js";
|
|
|
16
16
|
* @constructor
|
|
17
17
|
*
|
|
18
18
|
* @param {object} [options] Object with the following properties:
|
|
19
|
-
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.
|
|
20
|
-
* the
|
|
19
|
+
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.default] The ellipsoid whose surface is being tiled. Defaults to
|
|
20
|
+
* the default ellipsoid.
|
|
21
21
|
* @param {Rectangle} [options.rectangle=Rectangle.MAX_VALUE] The rectangle, in radians, covered by the tiling scheme.
|
|
22
22
|
* @param {number} [options.numberOfLevelZeroTilesX=2] The number of tiles in the X direction at level zero of
|
|
23
23
|
* the tile tree.
|
|
@@ -27,7 +27,7 @@ import Rectangle from "./Rectangle.js";
|
|
|
27
27
|
function GeographicTilingScheme(options) {
|
|
28
28
|
options = defaultValue(options, defaultValue.EMPTY_OBJECT);
|
|
29
29
|
|
|
30
|
-
this._ellipsoid = defaultValue(options.ellipsoid, Ellipsoid.
|
|
30
|
+
this._ellipsoid = defaultValue(options.ellipsoid, Ellipsoid.default);
|
|
31
31
|
this._rectangle = defaultValue(options.rectangle, Rectangle.MAX_VALUE);
|
|
32
32
|
this._projection = new GeographicProjection(this._ellipsoid);
|
|
33
33
|
this._numberOfLevelZeroTilesX = defaultValue(
|
|
@@ -687,7 +687,7 @@ GeometryPipeline.projectTo2D = function (
|
|
|
687
687
|
projectedValues[index++] = projectedLonLat.z;
|
|
688
688
|
}
|
|
689
689
|
|
|
690
|
-
// Rename original cartesians to
|
|
690
|
+
// Rename original cartesians to ellipsoid cartesians.
|
|
691
691
|
geometry.attributes[attributeName3D] = attribute;
|
|
692
692
|
|
|
693
693
|
// Replace original cartesians with 2D projected cartesians
|
|
@@ -1902,7 +1902,7 @@ const splitTriangleResult = {
|
|
|
1902
1902
|
};
|
|
1903
1903
|
|
|
1904
1904
|
function splitTriangle(p0, p1, p2) {
|
|
1905
|
-
// In
|
|
1905
|
+
// In ellipsoid coordinates, for a triangle approximately on the
|
|
1906
1906
|
// ellipsoid to cross the IDL, first it needs to be on the
|
|
1907
1907
|
// negative side of the plane x = 0.
|
|
1908
1908
|
if (p0.x >= 0.0 || p1.x >= 0.0 || p2.x >= 0.0) {
|
|
@@ -69,7 +69,7 @@ TerrainCache.prototype.tidy = function () {
|
|
|
69
69
|
*
|
|
70
70
|
* Initialization options for GoogleEarthEnterpriseTerrainProvider constructor
|
|
71
71
|
*
|
|
72
|
-
* @property {Ellipsoid} [ellipsoid] The ellipsoid. If not specified, the
|
|
72
|
+
* @property {Ellipsoid} [ellipsoid=Ellipsoid.default] The ellipsoid. If not specified, the default ellipsoid is used.
|
|
73
73
|
* @property {Credit|string} [credit] A credit for the data source, which is displayed on the canvas.
|
|
74
74
|
*/
|
|
75
75
|
|
|
@@ -33,7 +33,7 @@ GoogleMaps.mapTilesApiEndpoint = new Resource({
|
|
|
33
33
|
|
|
34
34
|
GoogleMaps.getDefaultCredit = function () {
|
|
35
35
|
return new Credit(
|
|
36
|
-
`<img src="https://assets.ion
|
|
36
|
+
`<img src="https://assets.ion.cesium.com/google-credit.png" style="vertical-align: -5px" alt="Google">`,
|
|
37
37
|
true
|
|
38
38
|
);
|
|
39
39
|
};
|
|
@@ -121,7 +121,7 @@ function GroundPolylineGeometry(options) {
|
|
|
121
121
|
*/
|
|
122
122
|
this.arcType = defaultValue(options.arcType, ArcType.GEODESIC);
|
|
123
123
|
|
|
124
|
-
this._ellipsoid = Ellipsoid.
|
|
124
|
+
this._ellipsoid = Ellipsoid.default;
|
|
125
125
|
|
|
126
126
|
// MapProjections can't be packed, so store the index to a known MapProjection.
|
|
127
127
|
this._projectionIndex = 0;
|
|
@@ -62,7 +62,7 @@ const maximumScratch = new Cartesian3();
|
|
|
62
62
|
* @param {boolean} [options.isGeographic=true] True if the heightmap uses a {@link GeographicProjection}, or false if it uses
|
|
63
63
|
* a {@link WebMercatorProjection}.
|
|
64
64
|
* @param {Cartesian3} [options.relativeToCenter=Cartesian3.ZERO] The positions will be computed as <code>Cartesian3.subtract(worldPosition, relativeToCenter)</code>.
|
|
65
|
-
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.
|
|
65
|
+
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.default] The ellipsoid to which the heightmap applies.
|
|
66
66
|
* @param {object} [options.structure] An object describing the structure of the height data.
|
|
67
67
|
* @param {number} [options.structure.heightScale=1.0] The factor by which to multiply height samples in order to obtain
|
|
68
68
|
* the height above the heightOffset, in meters. The heightOffset is added to the resulting
|
|
@@ -149,7 +149,7 @@ HeightmapTessellator.computeVertices = function (options) {
|
|
|
149
149
|
const hasSkirts = skirtHeight > 0.0;
|
|
150
150
|
|
|
151
151
|
const isGeographic = defaultValue(options.isGeographic, true);
|
|
152
|
-
const ellipsoid = defaultValue(options.ellipsoid, Ellipsoid.
|
|
152
|
+
const ellipsoid = defaultValue(options.ellipsoid, Ellipsoid.default);
|
|
153
153
|
|
|
154
154
|
const oneOverGlobeSemimajorAxis = 1.0 / ellipsoid.maximumRadius;
|
|
155
155
|
|
package/Source/Core/Ion.js
CHANGED
|
@@ -4,7 +4,7 @@ import Resource from "./Resource.js";
|
|
|
4
4
|
|
|
5
5
|
let defaultTokenCredit;
|
|
6
6
|
const defaultAccessToken =
|
|
7
|
-
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.
|
|
7
|
+
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIxY2UxZDdkOS02YTJkLTQ2Y2EtYmMxNS03ZDI2NWQ1NzUzMjAiLCJpZCI6MjU5LCJpYXQiOjE3MjI1Mjg0MTl9.IMe1VGs-5blTCJJA1y76M8WNixMgms2C87kIkXQVcww";
|
|
8
8
|
/**
|
|
9
9
|
* Default settings for accessing the Cesium ion API.
|
|
10
10
|
*
|
package/Source/Core/Occluder.js
CHANGED
|
@@ -499,7 +499,7 @@ const computeOccludeePointFromRectangleScratch = [];
|
|
|
499
499
|
* Computes a point that can be used as the occludee position to the visibility functions from a rectangle.
|
|
500
500
|
*
|
|
501
501
|
* @param {Rectangle} rectangle The rectangle used to create a bounding sphere.
|
|
502
|
-
* @param {Ellipsoid} [ellipsoid=Ellipsoid.
|
|
502
|
+
* @param {Ellipsoid} [ellipsoid=Ellipsoid.default] The ellipsoid used to determine positions of the rectangle.
|
|
503
503
|
* @returns {object} An object containing two attributes: <code>occludeePoint</code> and <code>valid</code>
|
|
504
504
|
* which is a boolean value.
|
|
505
505
|
*/
|
|
@@ -510,7 +510,7 @@ Occluder.computeOccludeePointFromRectangle = function (rectangle, ellipsoid) {
|
|
|
510
510
|
}
|
|
511
511
|
//>>includeEnd('debug');
|
|
512
512
|
|
|
513
|
-
ellipsoid = defaultValue(ellipsoid, Ellipsoid.
|
|
513
|
+
ellipsoid = defaultValue(ellipsoid, Ellipsoid.default);
|
|
514
514
|
const positions = Rectangle.subsample(
|
|
515
515
|
rectangle,
|
|
516
516
|
ellipsoid,
|
|
@@ -519,7 +519,7 @@ Occluder.computeOccludeePointFromRectangle = function (rectangle, ellipsoid) {
|
|
|
519
519
|
);
|
|
520
520
|
const bs = BoundingSphere.fromPoints(positions);
|
|
521
521
|
|
|
522
|
-
//
|
|
522
|
+
// Assumes the ellipsoid is centered at the origin
|
|
523
523
|
const ellipsoidCenter = Cartesian3.ZERO;
|
|
524
524
|
if (!Cartesian3.equals(ellipsoidCenter, bs.center)) {
|
|
525
525
|
return Occluder.computeOccludeePoint(
|
|
@@ -332,7 +332,7 @@ const scratchPlane = new Plane(Cartesian3.UNIT_X, 0.0);
|
|
|
332
332
|
* @param {Rectangle} rectangle The cartographic rectangle on the surface of the ellipsoid.
|
|
333
333
|
* @param {number} [minimumHeight=0.0] The minimum height (elevation) within the tile.
|
|
334
334
|
* @param {number} [maximumHeight=0.0] The maximum height (elevation) within the tile.
|
|
335
|
-
* @param {Ellipsoid} [ellipsoid=Ellipsoid.
|
|
335
|
+
* @param {Ellipsoid} [ellipsoid=Ellipsoid.default] The ellipsoid on which the rectangle is defined.
|
|
336
336
|
* @param {OrientedBoundingBox} [result] The object onto which to store the result.
|
|
337
337
|
* @returns {OrientedBoundingBox} The modified result parameter or a new OrientedBoundingBox instance if none was provided.
|
|
338
338
|
*
|
|
@@ -373,7 +373,7 @@ OrientedBoundingBox.fromRectangle = function (
|
|
|
373
373
|
|
|
374
374
|
minimumHeight = defaultValue(minimumHeight, 0.0);
|
|
375
375
|
maximumHeight = defaultValue(maximumHeight, 0.0);
|
|
376
|
-
ellipsoid = defaultValue(ellipsoid, Ellipsoid.
|
|
376
|
+
ellipsoid = defaultValue(ellipsoid, Ellipsoid.default);
|
|
377
377
|
|
|
378
378
|
let minX, maxX, minY, maxY, minZ, maxZ, plane;
|
|
379
379
|
|
|
@@ -585,7 +585,7 @@ function createGeometryFromPositionsExtruded(
|
|
|
585
585
|
* @param {number} [options.extrudedHeight] The distance in meters between the polygon's extruded face and the ellipsoid surface.
|
|
586
586
|
* @param {VertexFormat} [options.vertexFormat=VertexFormat.DEFAULT] The vertex attributes to be computed.
|
|
587
587
|
* @param {number} [options.stRotation=0.0] The rotation of the texture coordinates, in radians. A positive rotation is counter-clockwise.
|
|
588
|
-
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.
|
|
588
|
+
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.default] The ellipsoid to be used as a reference.
|
|
589
589
|
* @param {number} [options.granularity=CesiumMath.RADIANS_PER_DEGREE] The distance, in radians, between each latitude and longitude. Determines the number of positions in the buffer.
|
|
590
590
|
* @param {boolean} [options.perPositionHeight=false] Use the height of options.positions for each position instead of using options.height to determine the height.
|
|
591
591
|
* @param {boolean} [options.closeTop=true] When false, leaves off the top of an extruded polygon open.
|
|
@@ -691,7 +691,7 @@ function PolygonGeometry(options) {
|
|
|
691
691
|
|
|
692
692
|
const polygonHierarchy = options.polygonHierarchy;
|
|
693
693
|
const vertexFormat = defaultValue(options.vertexFormat, VertexFormat.DEFAULT);
|
|
694
|
-
const ellipsoid = defaultValue(options.ellipsoid, Ellipsoid.
|
|
694
|
+
const ellipsoid = defaultValue(options.ellipsoid, Ellipsoid.default);
|
|
695
695
|
const granularity = defaultValue(
|
|
696
696
|
options.granularity,
|
|
697
697
|
CesiumMath.RADIANS_PER_DEGREE
|
|
@@ -759,7 +759,7 @@ function PolygonGeometry(options) {
|
|
|
759
759
|
* @param {number} [options.extrudedHeight] The height of the polygon extrusion.
|
|
760
760
|
* @param {VertexFormat} [options.vertexFormat=VertexFormat.DEFAULT] The vertex attributes to be computed.
|
|
761
761
|
* @param {number} [options.stRotation=0.0] The rotation of the texture coordinates, in radians. A positive rotation is counter-clockwise.
|
|
762
|
-
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.
|
|
762
|
+
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.default] The ellipsoid to be used as a reference.
|
|
763
763
|
* @param {number} [options.granularity=CesiumMath.RADIANS_PER_DEGREE] The distance, in radians, between each latitude and longitude. Determines the number of positions in the buffer.
|
|
764
764
|
* @param {boolean} [options.perPositionHeight=false] Use the height of options.positions for each position instead of using options.height to determine the height.
|
|
765
765
|
* @param {boolean} [options.closeTop=true] When false, leaves off the top of an extruded polygon open.
|
|
@@ -1040,7 +1040,7 @@ const polygon = {
|
|
|
1040
1040
|
* Computes a rectangle which encloses the polygon defined by the list of positions, including cases over the international date line and the poles.
|
|
1041
1041
|
*
|
|
1042
1042
|
* @param {Cartesian3[]} positions A linear ring defining the outer boundary of the polygon.
|
|
1043
|
-
* @param {Ellipsoid} [ellipsoid=Ellipsoid.
|
|
1043
|
+
* @param {Ellipsoid} [ellipsoid=Ellipsoid.default] The ellipsoid to be used as a reference.
|
|
1044
1044
|
* @param {ArcType} [arcType=ArcType.GEODESIC] The type of line the polygon edges must follow. Valid options are {@link ArcType.GEODESIC} and {@link ArcType.RHUMB}.
|
|
1045
1045
|
* @param {Rectangle} [result] An object in which to store the result.
|
|
1046
1046
|
*
|
|
@@ -362,7 +362,7 @@ PolygonGeometryLibrary.scaleToGeodeticHeightExtruded = function (
|
|
|
362
362
|
ellipsoid,
|
|
363
363
|
perPositionHeight
|
|
364
364
|
) {
|
|
365
|
-
ellipsoid = defaultValue(ellipsoid, Ellipsoid.
|
|
365
|
+
ellipsoid = defaultValue(ellipsoid, Ellipsoid.default);
|
|
366
366
|
|
|
367
367
|
const n1 = scaleToGeodeticHeightN1;
|
|
368
368
|
let n2 = scaleToGeodeticHeightN2;
|
|
@@ -273,7 +273,7 @@ function createGeometryFromPositionsExtruded(
|
|
|
273
273
|
* @param {number} [options.height=0.0] The distance in meters between the polygon and the ellipsoid surface.
|
|
274
274
|
* @param {number} [options.extrudedHeight] The distance in meters between the polygon's extruded face and the ellipsoid surface.
|
|
275
275
|
* @param {VertexFormat} [options.vertexFormat=VertexFormat.DEFAULT] The vertex attributes to be computed.
|
|
276
|
-
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.
|
|
276
|
+
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.default] The ellipsoid to be used as a reference.
|
|
277
277
|
* @param {number} [options.granularity=CesiumMath.RADIANS_PER_DEGREE] The distance, in radians, between each latitude and longitude. Determines the number of positions in the buffer.
|
|
278
278
|
* @param {boolean} [options.perPositionHeight=false] Use the height of options.positions for each position instead of using options.height to determine the height.
|
|
279
279
|
* @param {ArcType} [options.arcType=ArcType.GEODESIC] The type of path the outline must follow. Valid options are {@link ArcType.GEODESIC} and {@link ArcType.RHUMB}.
|
|
@@ -370,7 +370,7 @@ function PolygonOutlineGeometry(options) {
|
|
|
370
370
|
//>>includeEnd('debug');
|
|
371
371
|
|
|
372
372
|
const polygonHierarchy = options.polygonHierarchy;
|
|
373
|
-
const ellipsoid = defaultValue(options.ellipsoid, Ellipsoid.
|
|
373
|
+
const ellipsoid = defaultValue(options.ellipsoid, Ellipsoid.default);
|
|
374
374
|
const granularity = defaultValue(
|
|
375
375
|
options.granularity,
|
|
376
376
|
CesiumMath.RADIANS_PER_DEGREE
|
|
@@ -518,7 +518,7 @@ PolygonOutlineGeometry.unpack = function (array, startingIndex, result) {
|
|
|
518
518
|
* @param {Cartesian3[]} options.positions An array of positions that defined the corner points of the polygon.
|
|
519
519
|
* @param {number} [options.height=0.0] The height of the polygon.
|
|
520
520
|
* @param {number} [options.extrudedHeight] The height of the polygon extrusion.
|
|
521
|
-
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.
|
|
521
|
+
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.default] The ellipsoid to be used as a reference.
|
|
522
522
|
* @param {number} [options.granularity=CesiumMath.RADIANS_PER_DEGREE] The distance, in radians, between each latitude and longitude. Determines the number of positions in the buffer.
|
|
523
523
|
* @param {boolean} [options.perPositionHeight=false] Use the height of options.positions for each position instead of using options.height to determine the height.
|
|
524
524
|
* @param {ArcType} [options.arcType=ArcType.GEODESIC] The type of path the outline must follow. Valid options are {@link LinkType.GEODESIC} and {@link ArcType.RHUMB}.
|
|
@@ -587,7 +587,7 @@ PolygonPipeline.computeRhumbLineSubdivision = function (
|
|
|
587
587
|
*
|
|
588
588
|
* @param {number[]} positions The array of numbers representing the positions to be scaled
|
|
589
589
|
* @param {number} [height=0.0] The desired height to add to the positions
|
|
590
|
-
* @param {Ellipsoid} [ellipsoid=Ellipsoid.
|
|
590
|
+
* @param {Ellipsoid} [ellipsoid=Ellipsoid.default] The ellipsoid on which the positions lie.
|
|
591
591
|
* @param {boolean} [scaleToSurface=true] <code>true</code> if the positions need to be scaled to the surface before the height is added.
|
|
592
592
|
* @returns {number[]} The input array of positions, scaled to height
|
|
593
593
|
*/
|
|
@@ -597,7 +597,7 @@ PolygonPipeline.scaleToGeodeticHeight = function (
|
|
|
597
597
|
ellipsoid,
|
|
598
598
|
scaleToSurface
|
|
599
599
|
) {
|
|
600
|
-
ellipsoid = defaultValue(ellipsoid, Ellipsoid.
|
|
600
|
+
ellipsoid = defaultValue(ellipsoid, Ellipsoid.default);
|
|
601
601
|
|
|
602
602
|
let n = scaleToGeodeticHeightN;
|
|
603
603
|
let p = scaleToGeodeticHeightP;
|
|
@@ -75,7 +75,7 @@ function interpolateColors(p0, p1, color0, color1, numPoints) {
|
|
|
75
75
|
* @param {ArcType} [options.arcType=ArcType.GEODESIC] The type of line the polyline segments must follow.
|
|
76
76
|
* @param {number} [options.granularity=CesiumMath.RADIANS_PER_DEGREE] The distance, in radians, between each latitude and longitude if options.arcType is not ArcType.NONE. Determines the number of positions in the buffer.
|
|
77
77
|
* @param {VertexFormat} [options.vertexFormat=VertexFormat.DEFAULT] The vertex attributes to be computed.
|
|
78
|
-
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.
|
|
78
|
+
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.default] The ellipsoid to be used as a reference.
|
|
79
79
|
*
|
|
80
80
|
* @exception {DeveloperError} At least two positions are required.
|
|
81
81
|
* @exception {DeveloperError} width must be greater than or equal to one.
|
|
@@ -134,7 +134,7 @@ function PolylineGeometry(options) {
|
|
|
134
134
|
CesiumMath.RADIANS_PER_DEGREE
|
|
135
135
|
);
|
|
136
136
|
this._ellipsoid = Ellipsoid.clone(
|
|
137
|
-
defaultValue(options.ellipsoid, Ellipsoid.
|
|
137
|
+
defaultValue(options.ellipsoid, Ellipsoid.default)
|
|
138
138
|
);
|
|
139
139
|
this._workerName = "createPolylineGeometry";
|
|
140
140
|
|
|
@@ -311,7 +311,7 @@ PolylinePipeline.wrapLongitude = function (positions, modelMatrix) {
|
|
|
311
311
|
* @param {Cartesian3[]} options.positions The array of type {Cartesian3} representing positions.
|
|
312
312
|
* @param {number|number[]} [options.height=0.0] A number or array of numbers representing the heights of each position.
|
|
313
313
|
* @param {number} [options.granularity = CesiumMath.RADIANS_PER_DEGREE] The distance, in radians, between each latitude and longitude. Determines the number of positions in the buffer.
|
|
314
|
-
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.
|
|
314
|
+
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.default] The ellipsoid on which the positions lie.
|
|
315
315
|
* @returns {number[]} A new array of positions of type {number} that have been subdivided and raised to the surface of the ellipsoid.
|
|
316
316
|
*
|
|
317
317
|
* @example
|
|
@@ -337,7 +337,7 @@ PolylinePipeline.generateArc = function (options) {
|
|
|
337
337
|
//>>includeEnd('debug');
|
|
338
338
|
|
|
339
339
|
const length = positions.length;
|
|
340
|
-
const ellipsoid = defaultValue(options.ellipsoid, Ellipsoid.
|
|
340
|
+
const ellipsoid = defaultValue(options.ellipsoid, Ellipsoid.default);
|
|
341
341
|
let height = defaultValue(options.height, 0);
|
|
342
342
|
const hasHeightArray = Array.isArray(height);
|
|
343
343
|
|
|
@@ -418,7 +418,7 @@ const scratchCartographic1 = new Cartographic();
|
|
|
418
418
|
* @param {Cartesian3[]} options.positions The array of type {Cartesian3} representing positions.
|
|
419
419
|
* @param {number|number[]} [options.height=0.0] A number or array of numbers representing the heights of each position.
|
|
420
420
|
* @param {number} [options.granularity = CesiumMath.RADIANS_PER_DEGREE] The distance, in radians, between each latitude and longitude. Determines the number of positions in the buffer.
|
|
421
|
-
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.
|
|
421
|
+
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.default] The ellipsoid on which the positions lie.
|
|
422
422
|
* @returns {number[]} A new array of positions of type {number} that have been subdivided and raised to the surface of the ellipsoid.
|
|
423
423
|
*
|
|
424
424
|
* @example
|
|
@@ -444,7 +444,7 @@ PolylinePipeline.generateRhumbArc = function (options) {
|
|
|
444
444
|
//>>includeEnd('debug');
|
|
445
445
|
|
|
446
446
|
const length = positions.length;
|
|
447
|
-
const ellipsoid = defaultValue(options.ellipsoid, Ellipsoid.
|
|
447
|
+
const ellipsoid = defaultValue(options.ellipsoid, Ellipsoid.default);
|
|
448
448
|
let height = defaultValue(options.height, 0);
|
|
449
449
|
const hasHeightArray = Array.isArray(height);
|
|
450
450
|
|
|
@@ -524,7 +524,7 @@ PolylinePipeline.generateRhumbArc = function (options) {
|
|
|
524
524
|
* @param {Cartesian3[]} options.positions The array of type {Cartesian3} representing positions.
|
|
525
525
|
* @param {number|number[]} [options.height=0.0] A number or array of numbers representing the heights of each position.
|
|
526
526
|
* @param {number} [options.granularity = CesiumMath.RADIANS_PER_DEGREE] The distance, in radians, between each latitude and longitude. Determines the number of positions in the buffer.
|
|
527
|
-
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.
|
|
527
|
+
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.default] The ellipsoid on which the positions lie.
|
|
528
528
|
* @returns {Cartesian3[]} A new array of cartesian3 positions that have been subdivided and raised to the surface of the ellipsoid.
|
|
529
529
|
*
|
|
530
530
|
* @example
|
|
@@ -554,7 +554,7 @@ PolylinePipeline.generateCartesianArc = function (options) {
|
|
|
554
554
|
* @param {Cartesian3[]} options.positions The array of type {Cartesian3} representing positions.
|
|
555
555
|
* @param {number|number[]} [options.height=0.0] A number or array of numbers representing the heights of each position.
|
|
556
556
|
* @param {number} [options.granularity = CesiumMath.RADIANS_PER_DEGREE] The distance, in radians, between each latitude and longitude. Determines the number of positions in the buffer.
|
|
557
|
-
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.
|
|
557
|
+
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.default] The ellipsoid on which the positions lie.
|
|
558
558
|
* @returns {Cartesian3[]} A new array of cartesian3 positions that have been subdivided and raised to the surface of the ellipsoid.
|
|
559
559
|
*
|
|
560
560
|
* @example
|
|
@@ -178,7 +178,7 @@ function computeAttributes(
|
|
|
178
178
|
* @param {object} options Object with the following properties:
|
|
179
179
|
* @param {Cartesian3[]} options.polylinePositions An array of {@link Cartesian3} positions that define the center of the polyline volume.
|
|
180
180
|
* @param {Cartesian2[]} options.shapePositions An array of {@link Cartesian2} positions that define the shape to be extruded along the polyline
|
|
181
|
-
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.
|
|
181
|
+
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.default] The ellipsoid to be used as a reference.
|
|
182
182
|
* @param {number} [options.granularity=CesiumMath.RADIANS_PER_DEGREE] The distance, in radians, between each latitude and longitude. Determines the number of positions in the buffer.
|
|
183
183
|
* @param {VertexFormat} [options.vertexFormat=VertexFormat.DEFAULT] The vertex attributes to be computed.
|
|
184
184
|
* @param {CornerType} [options.cornerType=CornerType.ROUNDED] Determines the style of the corners.
|
|
@@ -223,7 +223,7 @@ function PolylineVolumeGeometry(options) {
|
|
|
223
223
|
this._positions = positions;
|
|
224
224
|
this._shape = shape;
|
|
225
225
|
this._ellipsoid = Ellipsoid.clone(
|
|
226
|
-
defaultValue(options.ellipsoid, Ellipsoid.
|
|
226
|
+
defaultValue(options.ellipsoid, Ellipsoid.default)
|
|
227
227
|
);
|
|
228
228
|
this._cornerType = defaultValue(options.cornerType, CornerType.ROUNDED);
|
|
229
229
|
this._vertexFormat = VertexFormat.clone(
|
|
@@ -83,7 +83,7 @@ function computeAttributes(positions, shape) {
|
|
|
83
83
|
* @param {object} options Object with the following properties:
|
|
84
84
|
* @param {Cartesian3[]} options.polylinePositions An array of positions that define the center of the polyline volume.
|
|
85
85
|
* @param {Cartesian2[]} options.shapePositions An array of positions that define the shape to be extruded along the polyline
|
|
86
|
-
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.
|
|
86
|
+
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.default] The ellipsoid to be used as a reference.
|
|
87
87
|
* @param {number} [options.granularity=CesiumMath.RADIANS_PER_DEGREE] The distance, in radians, between each latitude and longitude. Determines the number of positions in the buffer.
|
|
88
88
|
* @param {CornerType} [options.cornerType=CornerType.ROUNDED] Determines the style of the corners.
|
|
89
89
|
*
|
|
@@ -124,7 +124,7 @@ function PolylineVolumeOutlineGeometry(options) {
|
|
|
124
124
|
this._positions = positions;
|
|
125
125
|
this._shape = shape;
|
|
126
126
|
this._ellipsoid = Ellipsoid.clone(
|
|
127
|
-
defaultValue(options.ellipsoid, Ellipsoid.
|
|
127
|
+
defaultValue(options.ellipsoid, Ellipsoid.default)
|
|
128
128
|
);
|
|
129
129
|
this._cornerType = defaultValue(options.cornerType, CornerType.ROUNDED);
|
|
130
130
|
this._granularity = defaultValue(
|