@cesium/engine 9.2.0 → 10.0.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.
Files changed (220) hide show
  1. package/Build/Workers/{chunk-WOYQB5HM.js → chunk-2J3JKXCP.js} +5 -5
  2. package/Build/Workers/{chunk-IXYFH7DV.js → chunk-3WUV74WM.js} +2 -2
  3. package/Build/Workers/{chunk-3PV5HQ2R.js → chunk-4BAE4PWO.js} +6 -6
  4. package/Build/Workers/{chunk-WHDEZSAL.js → chunk-4MSUJ4I7.js} +8 -8
  5. package/Build/Workers/{chunk-ZHJDE6JN.js → chunk-4YSNMHZ4.js} +6 -6
  6. package/Build/Workers/{chunk-LZFFO4KB.js → chunk-5S7OLEPK.js} +12 -12
  7. package/Build/Workers/{chunk-GX2BWBN2.js → chunk-7XGC6YB2.js} +14 -14
  8. package/Build/Workers/{chunk-IF2OX6R4.js → chunk-AA4GZKOT.js} +1 -1
  9. package/Build/Workers/{chunk-26NE4LRW.js → chunk-AD5HBJ2F.js} +11 -8
  10. package/Build/Workers/{chunk-4RG6WOXH.js → chunk-AVI4IUWC.js} +11 -11
  11. package/Build/Workers/{chunk-3VDHTBY5.js → chunk-BCL4PHHT.js} +10 -10
  12. package/Build/Workers/{chunk-WP3LCUOE.js → chunk-BDFNKFOE.js} +13 -13
  13. package/Build/Workers/{chunk-KTZK2UDR.js → chunk-BJF5LOWE.js} +7 -7
  14. package/Build/Workers/{chunk-W4OS542B.js → chunk-C2CGMAIU.js} +13 -13
  15. package/Build/Workers/{chunk-EJZVBTX4.js → chunk-COYFZ5VA.js} +6 -6
  16. package/Build/Workers/{chunk-PHT53MCH.js → chunk-DGS5QNIO.js} +13 -13
  17. package/Build/Workers/{chunk-UYKG3UFK.js → chunk-DKVHRNFY.js} +5 -5
  18. package/Build/Workers/{chunk-7PFZ4Z7C.js → chunk-DOXCPOG4.js} +11 -9
  19. package/Build/Workers/{chunk-A5CSB5ZE.js → chunk-FXIHSF7O.js} +9 -9
  20. package/Build/Workers/{chunk-GOQEANLM.js → chunk-G3YR53LY.js} +13 -13
  21. package/Build/Workers/{chunk-7HLZRYGD.js → chunk-GR3CDLCP.js} +7 -7
  22. package/Build/Workers/{chunk-YGNQJ4YI.js → chunk-GRAT5GE7.js} +5 -5
  23. package/Build/Workers/{chunk-SC3TBKST.js → chunk-I2RC4XVN.js} +4 -4
  24. package/Build/Workers/{chunk-26XJDV3D.js → chunk-JYAHOGGL.js} +15 -15
  25. package/Build/Workers/{chunk-RRUO4QEK.js → chunk-KUN2ZA5X.js} +4 -4
  26. package/Build/Workers/{chunk-BBBTT36L.js → chunk-L6RTJ3RE.js} +14 -14
  27. package/Build/Workers/{chunk-RDR4KVPA.js → chunk-LCLJJ2MZ.js} +18 -18
  28. package/Build/Workers/{chunk-BNT2SNWU.js → chunk-LEABCTLP.js} +4 -4
  29. package/Build/Workers/{chunk-I6CW7ZE5.js → chunk-MDHQR3ZS.js} +10 -8
  30. package/Build/Workers/{chunk-ETC45PHH.js → chunk-MSKXMXJI.js} +4 -4
  31. package/Build/Workers/{chunk-QZIWFSRM.js → chunk-NTXTUNEF.js} +4 -4
  32. package/Build/Workers/{chunk-GUFV24F4.js → chunk-O3JCMSS3.js} +17 -17
  33. package/Build/Workers/{chunk-UICVDDCQ.js → chunk-OOK53QUQ.js} +1 -1
  34. package/Build/Workers/{chunk-G7IAO7CW.js → chunk-OORVMGDU.js} +7 -7
  35. package/Build/Workers/{chunk-OYP23VAL.js → chunk-PCP4YQST.js} +11 -11
  36. package/Build/Workers/{chunk-GX5LMUGZ.js → chunk-PYHLO636.js} +42 -13
  37. package/Build/Workers/{chunk-TDIGL45B.js → chunk-Q55ECN3Y.js} +1 -1
  38. package/Build/Workers/{chunk-5OK5JFDP.js → chunk-QD4KM3GO.js} +5 -5
  39. package/Build/Workers/{chunk-CVCVMOQA.js → chunk-QMLTCCYG.js} +1 -1
  40. package/Build/Workers/{chunk-AROLUUGS.js → chunk-QX5XS4LC.js} +2 -2
  41. package/Build/Workers/{chunk-TP4FFUAH.js → chunk-R6B7UCQB.js} +2 -2
  42. package/Build/Workers/{chunk-U6MTSO6A.js → chunk-RJYML24O.js} +11 -11
  43. package/Build/Workers/{chunk-DIVFF6DK.js → chunk-S3PI2KFM.js} +2 -2
  44. package/Build/Workers/{chunk-PUQR43HZ.js → chunk-STBBMQGG.js} +6 -6
  45. package/Build/Workers/{chunk-CFBGPZU6.js → chunk-SYCPRK3D.js} +10 -10
  46. package/Build/Workers/{chunk-U2LSTOMA.js → chunk-T77JILCU.js} +2 -2
  47. package/Build/Workers/{chunk-RTIT7UDN.js → chunk-TO2PVHKI.js} +2 -2
  48. package/Build/Workers/{chunk-EODIOQ35.js → chunk-VE7BFUIX.js} +1 -1
  49. package/Build/Workers/{chunk-K5F23SZO.js → chunk-VFBNELXB.js} +7 -7
  50. package/Build/Workers/{chunk-YGTWKLFY.js → chunk-VO3ACQB2.js} +19 -19
  51. package/Build/Workers/{chunk-UKJCFXVV.js → chunk-X23FRWHJ.js} +6 -6
  52. package/Build/Workers/{chunk-2TRB253J.js → chunk-XD445VDH.js} +7 -7
  53. package/Build/Workers/combineGeometry.js +22 -22
  54. package/Build/Workers/createBoxGeometry.js +16 -16
  55. package/Build/Workers/createBoxOutlineGeometry.js +14 -14
  56. package/Build/Workers/createCircleGeometry.js +29 -25
  57. package/Build/Workers/createCircleOutlineGeometry.js +17 -17
  58. package/Build/Workers/createCoplanarPolygonGeometry.js +32 -32
  59. package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +29 -29
  60. package/Build/Workers/createCorridorGeometry.js +29 -29
  61. package/Build/Workers/createCorridorOutlineGeometry.js +27 -27
  62. package/Build/Workers/createCylinderGeometry.js +18 -18
  63. package/Build/Workers/createCylinderOutlineGeometry.js +16 -16
  64. package/Build/Workers/createEllipseGeometry.js +24 -24
  65. package/Build/Workers/createEllipseOutlineGeometry.js +17 -17
  66. package/Build/Workers/createEllipsoidGeometry.js +17 -17
  67. package/Build/Workers/createEllipsoidOutlineGeometry.js +16 -16
  68. package/Build/Workers/createFrustumGeometry.js +16 -16
  69. package/Build/Workers/createFrustumOutlineGeometry.js +16 -16
  70. package/Build/Workers/createGeometry.js +22 -22
  71. package/Build/Workers/createGroundPolylineGeometry.js +24 -24
  72. package/Build/Workers/createPlaneGeometry.js +14 -14
  73. package/Build/Workers/createPlaneOutlineGeometry.js +13 -13
  74. package/Build/Workers/createPolygonGeometry.js +32 -32
  75. package/Build/Workers/createPolygonOutlineGeometry.js +29 -29
  76. package/Build/Workers/createPolylineGeometry.js +24 -24
  77. package/Build/Workers/createPolylineVolumeGeometry.js +30 -30
  78. package/Build/Workers/createPolylineVolumeOutlineGeometry.js +26 -26
  79. package/Build/Workers/createRectangleGeometry.js +27 -27
  80. package/Build/Workers/createRectangleOutlineGeometry.js +19 -19
  81. package/Build/Workers/createSimplePolylineGeometry.js +22 -22
  82. package/Build/Workers/createSphereGeometry.js +17 -17
  83. package/Build/Workers/createSphereOutlineGeometry.js +16 -16
  84. package/Build/Workers/createTaskProcessorWorker.js +3 -3
  85. package/Build/Workers/createVectorTileClampedPolylines.js +13 -13
  86. package/Build/Workers/createVectorTileGeometries.js +22 -22
  87. package/Build/Workers/createVectorTilePoints.js +12 -12
  88. package/Build/Workers/createVectorTilePolygons.js +20 -20
  89. package/Build/Workers/createVectorTilePolylines.js +13 -13
  90. package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +20 -20
  91. package/Build/Workers/createVerticesFromHeightmap.js +21 -21
  92. package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +17 -17
  93. package/Build/Workers/createWallGeometry.js +23 -23
  94. package/Build/Workers/createWallOutlineGeometry.js +22 -22
  95. package/Build/Workers/decodeDraco.js +11 -11
  96. package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
  97. package/Build/Workers/decodeI3S.js +10 -10
  98. package/Build/Workers/transcodeKTX2.js +7 -7
  99. package/Build/Workers/transferTypedArrayTest.js +1 -1
  100. package/Build/Workers/upsampleQuantizedTerrainMesh.js +20 -20
  101. package/Source/Core/ApproximateTerrainHeights.js +4 -4
  102. package/Source/Core/ArcGISTiledElevationTerrainProvider.js +12 -8
  103. package/Source/Core/BoundingRectangle.js +2 -0
  104. package/Source/Core/BoundingSphere.js +4 -2
  105. package/Source/Core/Cartesian3.js +13 -10
  106. package/Source/Core/Cartographic.js +11 -8
  107. package/Source/Core/CesiumTerrainProvider.js +3 -2
  108. package/Source/Core/CircleGeometry.js +6 -2
  109. package/Source/Core/CircleOutlineGeometry.js +1 -1
  110. package/Source/Core/CoplanarPolygonGeometry.js +3 -3
  111. package/Source/Core/CorridorGeometry.js +4 -4
  112. package/Source/Core/CorridorOutlineGeometry.js +2 -2
  113. package/Source/Core/Credit.js +3 -2
  114. package/Source/Core/CustomHeightmapTerrainProvider.js +17 -3
  115. package/Source/Core/EllipseGeometry.js +4 -4
  116. package/Source/Core/EllipseOutlineGeometry.js +2 -2
  117. package/Source/Core/Ellipsoid.js +34 -0
  118. package/Source/Core/EllipsoidGeodesic.js +2 -2
  119. package/Source/Core/EllipsoidRhumbLine.js +4 -4
  120. package/Source/Core/EllipsoidTangentPlane.js +3 -3
  121. package/Source/Core/EllipsoidTerrainProvider.js +3 -3
  122. package/Source/Core/GeographicProjection.js +4 -3
  123. package/Source/Core/GeographicTilingScheme.js +3 -3
  124. package/Source/Core/GeometryPipeline.js +2 -2
  125. package/Source/Core/GoogleEarthEnterpriseTerrainProvider.js +1 -1
  126. package/Source/Core/GoogleMaps.js +1 -1
  127. package/Source/Core/GroundPolylineGeometry.js +1 -1
  128. package/Source/Core/HeightmapTessellator.js +2 -2
  129. package/Source/Core/Ion.js +1 -1
  130. package/Source/Core/Occluder.js +3 -3
  131. package/Source/Core/OrientedBoundingBox.js +2 -2
  132. package/Source/Core/PolygonGeometry.js +4 -4
  133. package/Source/Core/PolygonGeometryLibrary.js +1 -1
  134. package/Source/Core/PolygonOutlineGeometry.js +3 -3
  135. package/Source/Core/PolygonPipeline.js +2 -2
  136. package/Source/Core/PolylineGeometry.js +2 -2
  137. package/Source/Core/PolylinePipeline.js +6 -6
  138. package/Source/Core/PolylineVolumeGeometry.js +2 -2
  139. package/Source/Core/PolylineVolumeOutlineGeometry.js +2 -2
  140. package/Source/Core/Rectangle.js +6 -6
  141. package/Source/Core/RectangleGeometry.js +6 -6
  142. package/Source/Core/RectangleGeometryLibrary.js +3 -0
  143. package/Source/Core/RectangleOutlineGeometry.js +2 -2
  144. package/Source/Core/Simon1994PlanetaryPositions.js +3 -2
  145. package/Source/Core/SimplePolylineGeometry.js +2 -2
  146. package/Source/Core/Stereographic.js +2 -2
  147. package/Source/Core/Transforms.js +17 -17
  148. package/Source/Core/VRTheWorldTerrainProvider.js +2 -2
  149. package/Source/Core/WallGeometry.js +3 -3
  150. package/Source/Core/WallOutlineGeometry.js +3 -3
  151. package/Source/Core/WebMercatorTilingScheme.js +3 -3
  152. package/Source/Core/createWorldTerrainAsync.js +2 -0
  153. package/Source/DataSources/BoxGeometryUpdater.js +2 -2
  154. package/Source/DataSources/CylinderGeometryUpdater.js +2 -2
  155. package/Source/DataSources/CzmlDataSource.js +8 -8
  156. package/Source/DataSources/EllipsoidGeometryUpdater.js +3 -3
  157. package/Source/DataSources/EntityCluster.js +1 -1
  158. package/Source/DataSources/EntityView.js +2 -2
  159. package/Source/DataSources/KmlDataSource.js +4 -4
  160. package/Source/DataSources/ModelVisualizer.js +1 -2
  161. package/Source/DataSources/PolygonGeometryUpdater.js +1 -1
  162. package/Source/DataSources/PolylineGeometryUpdater.js +3 -2
  163. package/Source/DataSources/RectangleGeometryUpdater.js +1 -1
  164. package/Source/DataSources/ScaledPositionProperty.js +2 -2
  165. package/Source/DataSources/TerrainOffsetProperty.js +3 -7
  166. package/Source/DataSources/VelocityOrientationProperty.js +2 -2
  167. package/Source/DataSources/exportKml.js +2 -2
  168. package/Source/Renderer/UniformState.js +1 -1
  169. package/Source/Scene/ArcGisMapServerImageryProvider.js +2 -2
  170. package/Source/Scene/ArcGisMapService.js +1 -1
  171. package/Source/Scene/Billboard.js +6 -4
  172. package/Source/Scene/BingMapsImageryProvider.js +1 -1
  173. package/Source/Scene/Camera.js +16 -10
  174. package/Source/Scene/Cesium3DTileset.js +1 -1
  175. package/Source/Scene/ClippingPolygon.js +2 -2
  176. package/Source/Scene/ClippingPolygonCollection.js +1 -1
  177. package/Source/Scene/CreditDisplay.js +94 -104
  178. package/Source/Scene/Globe.js +16 -13
  179. package/Source/Scene/GltfLoaderUtil.js +2 -4
  180. package/Source/Scene/GoogleEarthEnterpriseImageryProvider.js +1 -1
  181. package/Source/Scene/GoogleEarthEnterpriseMapsProvider.js +1 -1
  182. package/Source/Scene/GridImageryProvider.js +2 -2
  183. package/Source/Scene/ImageryLayerCollection.js +2 -2
  184. package/Source/Scene/MapboxImageryProvider.js +1 -1
  185. package/Source/Scene/MapboxStyleImageryProvider.js +1 -1
  186. package/Source/Scene/MetadataSemantic.js +4 -4
  187. package/Source/Scene/Model/InstancingPipelineStage.js +3 -3
  188. package/Source/Scene/Model/MaterialPipelineStage.js +49 -0
  189. package/Source/Scene/Model/Model.js +7 -4
  190. package/Source/Scene/Model/ModelSceneGraph.js +1 -1
  191. package/Source/Scene/Model/SceneMode2DPipelineStage.js +3 -3
  192. package/Source/Scene/Model/pickModel.js +2 -2
  193. package/Source/Scene/ModelComponents.js +9 -0
  194. package/Source/Scene/Picking.js +4 -13
  195. package/Source/Scene/PointPrimitive.js +5 -2
  196. package/Source/Scene/Scene.js +39 -31
  197. package/Source/Scene/SceneTransforms.js +78 -20
  198. package/Source/Scene/SceneTransitioner.js +2 -2
  199. package/Source/Scene/ScreenSpaceCameraController.js +29 -19
  200. package/Source/Scene/SkyBox.js +26 -0
  201. package/Source/Scene/Sun.js +1 -1
  202. package/Source/Shaders/Builtin/CzmBuiltins.js +2 -2
  203. package/Source/Shaders/Builtin/Functions/ellipsoidTextureCoordinates.glsl +10 -0
  204. package/Source/Shaders/Builtin/Functions/{ellipsoidWgs84TextureCoordinates.js → ellipsoidTextureCoordinates.js} +3 -3
  205. package/Source/Shaders/Builtin/Structs/materialInput.glsl +1 -1
  206. package/Source/Shaders/Builtin/Structs/materialInput.js +1 -1
  207. package/Source/Shaders/Builtin/Structs/modelMaterial.glsl +2 -0
  208. package/Source/Shaders/Builtin/Structs/modelMaterial.js +2 -0
  209. package/Source/Shaders/EllipsoidFS.glsl +1 -1
  210. package/Source/Shaders/EllipsoidFS.js +1 -1
  211. package/Source/Shaders/GlobeFS.glsl +2 -2
  212. package/Source/Shaders/GlobeFS.js +2 -2
  213. package/Source/Shaders/Model/MaterialStageFS.glsl +21 -12
  214. package/Source/Shaders/Model/MaterialStageFS.js +21 -12
  215. package/Source/Widget/CesiumWidget.css +0 -5
  216. package/Source/Widget/CesiumWidget.js +29 -28
  217. package/index.d.ts +181 -113
  218. package/index.js +208 -208
  219. package/package.json +2 -2
  220. 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 WGS84 ellipsoid is used.
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.WGS84),
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.WGS84] The ellipsoid the ellipse will be on.
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.WGS84);
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.WGS84] The ellipsoid the ellipse will be on.
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.WGS84);
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.WGS84] The ellipsoid the ellipse will be on.
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.WGS84);
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(
@@ -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.WGS84] The ellipsoid on which the geodesic lies.
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.WGS84);
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.WGS84] The ellipsoid on which the rhumb line lies.
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.WGS84);
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.WGS84] The ellipsoid on which the rhumb line lies.
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.WGS84);
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.WGS84] The ellipsoid to use.
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.WGS84);
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.WGS84] The ellipsoid to use.
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 WGS84 ellipsoid is used.
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.WGS84),
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. It
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.WGS84] The 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.WGS84);
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.WGS84] The ellipsoid whose surface is being tiled. Defaults to
20
- * the WGS84 ellipsoid.
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.WGS84);
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 WGS84 cartesians.
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 WGS84 coordinates, for a triangle approximately on the
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 WGS84 ellipsoid is used.
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-development.cesium.com/google-credit.png" alt="Google">`,
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.WGS84;
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.WGS84] The ellipsoid to which the heightmap applies.
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.WGS84);
152
+ const ellipsoid = defaultValue(options.ellipsoid, Ellipsoid.default);
153
153
 
154
154
  const oneOverGlobeSemimajorAxis = 1.0 / ellipsoid.maximumRadius;
155
155
 
@@ -4,7 +4,7 @@ import Resource from "./Resource.js";
4
4
 
5
5
  let defaultTokenCredit;
6
6
  const defaultAccessToken =
7
- "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI0YjhlOGM0Yy0xNzcwLTQwNWEtODk4Yy0xMGJkODg4MTA5ZGEiLCJpZCI6MjU5LCJpYXQiOjE3MTc0MzM4NjB9.VwBpSnRTNdg_G6uvU-JNsRNcSOCDMKW_j3Nl5E7wfwg";
7
+ "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIyYTI3ZDMxOS1mODc4LTQ5NzktOGUzNy04OTA0ZGI5MmM1NGIiLCJpZCI6MjU5LCJpYXQiOjE3MTk4NDM5OTN9.FDHD-mZOIAzA9J_kzOz6AkKK2PHzl2yoMbFqbpsfH6Q";
8
8
  /**
9
9
  * Default settings for accessing the Cesium ion API.
10
10
  *
@@ -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.WGS84] The ellipsoid used to determine positions of the rectangle.
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.WGS84);
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
- // TODO: get correct ellipsoid center
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.WGS84] The ellipsoid on which the rectangle is defined.
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.WGS84);
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.WGS84] The ellipsoid to be used as a reference.
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.WGS84);
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.WGS84] The ellipsoid to be used as a reference.
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.WGS84] The ellipsoid to be used as a reference.
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.WGS84);
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.WGS84] The ellipsoid to be used as a reference.
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.WGS84);
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.WGS84] The ellipsoid to be used as a reference.
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.WGS84] The ellipsoid on which the positions lie.
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.WGS84);
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.WGS84] The ellipsoid to be used as a reference.
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.WGS84)
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.WGS84] The ellipsoid on which the positions lie.
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.WGS84);
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.WGS84] The ellipsoid on which the positions lie.
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.WGS84);
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.WGS84] The ellipsoid on which the positions lie.
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.WGS84] The ellipsoid on which the positions lie.
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.WGS84] The ellipsoid to be used as a reference.
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.WGS84)
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.WGS84] The ellipsoid to be used as a reference.
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.WGS84)
127
+ defaultValue(options.ellipsoid, Ellipsoid.default)
128
128
  );
129
129
  this._cornerType = defaultValue(options.cornerType, CornerType.ROUNDED);
130
130
  this._granularity = defaultValue(