@cesium/engine 10.1.0 → 11.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.
Files changed (845) hide show
  1. package/Build/Workers/{chunk-EB7PNZTK.js → chunk-26GA3JAM.js} +6 -5
  2. package/Build/Workers/{chunk-RZLZWKFN.js → chunk-27HUZ7SA.js} +4 -4
  3. package/Build/Workers/{chunk-A5CODJ4M.js → chunk-2ZGOQXYU.js} +6 -6
  4. package/Build/Workers/{chunk-TF776XCO.js → chunk-3Q2L65QU.js} +7 -7
  5. package/Build/Workers/{chunk-NVOABL76.js → chunk-472HQ3EH.js} +5 -5
  6. package/Build/Workers/{chunk-QX5XS4LC.js → chunk-5ODQSF26.js} +2 -2
  7. package/Build/Workers/{chunk-4YSNMHZ4.js → chunk-5OOFQLKF.js} +6 -6
  8. package/Build/Workers/{chunk-OXALEQPI.js → chunk-5PTXS2GO.js} +49 -23
  9. package/Build/Workers/{chunk-T77JILCU.js → chunk-6CHGCNMW.js} +2 -2
  10. package/Build/Workers/{chunk-FEVVHITK.js → chunk-76BYBWHP.js} +4 -4
  11. package/Build/Workers/{chunk-65MZOUNU.js → chunk-7BMOHCPM.js} +13 -13
  12. package/Build/Workers/{chunk-VE7BFUIX.js → chunk-7JO7GPJN.js} +1 -1
  13. package/Build/Workers/{chunk-5BLJ5ZM6.js → chunk-7KTQP4VB.js} +5 -5
  14. package/Build/Workers/{chunk-G5V4GPZE.js → chunk-7O373FFS.js} +8 -34
  15. package/Build/Workers/{chunk-S3PI2KFM.js → chunk-AD63PIY6.js} +2 -2
  16. package/Build/Workers/{chunk-6D66DPRV.js → chunk-BHQJ2NT7.js} +6 -6
  17. package/Build/Workers/{chunk-I2RC4XVN.js → chunk-C6YYBQXW.js} +4 -4
  18. package/Build/Workers/{chunk-X2ZQ7RJR.js → chunk-CKY7HOHV.js} +9 -9
  19. package/Build/Workers/{chunk-TO2PVHKI.js → chunk-DHYHSFFJ.js} +2 -2
  20. package/Build/Workers/{chunk-R6B7UCQB.js → chunk-DI5NGJUP.js} +2 -2
  21. package/Build/Workers/{chunk-X23FRWHJ.js → chunk-E27BLMDD.js} +7 -9
  22. package/Build/Workers/{chunk-N4QEHO3U.js → chunk-E63IIM5T.js} +1 -1
  23. package/Build/Workers/{chunk-BY3E4ONI.js → chunk-E6V6SQZW.js} +6 -6
  24. package/Build/Workers/{chunk-LSSWVB2X.js → chunk-EJZTDTUH.js} +4 -4
  25. package/Build/Workers/{chunk-XLTOBCDI.js → chunk-FDOV2LBJ.js} +7 -7
  26. package/Build/Workers/{chunk-ACRTCBN5.js → chunk-FIGIZHAQ.js} +11 -11
  27. package/Build/Workers/{chunk-4RMIRG6T.js → chunk-GESF4OXQ.js} +2 -2
  28. package/Build/Workers/{chunk-PNFHVBSF.js → chunk-GGZJN2TI.js} +16 -15
  29. package/Build/Workers/{chunk-KV4EQHK4.js → chunk-GNBFYG7F.js} +83 -79
  30. package/Build/Workers/{chunk-FOZWUH4T.js → chunk-GWCFU2SA.js} +7 -7
  31. package/Build/Workers/{chunk-Q55ECN3Y.js → chunk-I2ITFFPX.js} +1 -1
  32. package/Build/Workers/{chunk-XQI7XZHX.js → chunk-IBLIYJZR.js} +6 -6
  33. package/Build/Workers/{chunk-D2U4RI64.js → chunk-JW4FOI6M.js} +7 -7
  34. package/Build/Workers/{chunk-2J3JKXCP.js → chunk-K4GQUNB5.js} +9 -5
  35. package/Build/Workers/{chunk-POSRARY7.js → chunk-M3GMB5OP.js} +10 -10
  36. package/Build/Workers/{chunk-OOK53QUQ.js → chunk-MXIZJAPH.js} +1 -1
  37. package/Build/Workers/{chunk-OWGTMVDB.js → chunk-N5KJGGCM.js} +18 -20
  38. package/Build/Workers/{chunk-J7MQUQJY.js → chunk-NGPPMXRM.js} +12 -7
  39. package/Build/Workers/{chunk-OOMCT7OL.js → chunk-O3E4OAOE.js} +13 -13
  40. package/Build/Workers/{chunk-C3Z23UUJ.js → chunk-PGRPDNHG.js} +19 -23
  41. package/Build/Workers/{chunk-4VFBBNQ3.js → chunk-PRGYLLJT.js} +1 -1
  42. package/Build/Workers/{chunk-XZZNKIEV.js → chunk-S6MRMMQU.js} +6 -6
  43. package/Build/Workers/{chunk-76BYYG7N.js → chunk-SMDOP47J.js} +10 -10
  44. package/Build/Workers/{chunk-ZU334IDQ.js → chunk-TGONEMZO.js} +11 -11
  45. package/Build/Workers/{chunk-VRZ46QZ5.js → chunk-TKVT5GQM.js} +13 -13
  46. package/Build/Workers/{chunk-FDCLACT5.js → chunk-U72QNFOJ.js} +15 -25
  47. package/Build/Workers/{chunk-F3NDOSTZ.js → chunk-VJZB3WAV.js} +7 -7
  48. package/Build/Workers/{chunk-GPJR7MPQ.js → chunk-VU2MNO7L.js} +7 -7
  49. package/Build/Workers/{chunk-R4OIEIPE.js → chunk-XY4BATBS.js} +4 -4
  50. package/Build/Workers/{chunk-T6LPN7RI.js → chunk-YFXQECWV.js} +5 -5
  51. package/Build/Workers/{chunk-UCIPJSZX.js → chunk-YSGTGQQO.js} +14 -14
  52. package/Build/Workers/{chunk-BGE4QVG7.js → chunk-YZ733KKS.js} +12 -12
  53. package/Build/Workers/combineGeometry.js +23 -25
  54. package/Build/Workers/createBoxGeometry.js +16 -16
  55. package/Build/Workers/createBoxOutlineGeometry.js +14 -14
  56. package/Build/Workers/createCircleGeometry.js +24 -24
  57. package/Build/Workers/createCircleOutlineGeometry.js +17 -17
  58. package/Build/Workers/createCoplanarPolygonGeometry.js +31 -31
  59. package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +29 -29
  60. package/Build/Workers/createCorridorGeometry.js +27 -27
  61. package/Build/Workers/createCorridorOutlineGeometry.js +26 -26
  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 +25 -26
  71. package/Build/Workers/createGroundPolylineGeometry.js +20 -20
  72. package/Build/Workers/createPlaneGeometry.js +14 -14
  73. package/Build/Workers/createPlaneOutlineGeometry.js +13 -13
  74. package/Build/Workers/createPolygonGeometry.js +36 -40
  75. package/Build/Workers/createPolygonOutlineGeometry.js +40 -48
  76. package/Build/Workers/createPolylineGeometry.js +23 -23
  77. package/Build/Workers/createPolylineVolumeGeometry.js +32 -31
  78. package/Build/Workers/createPolylineVolumeOutlineGeometry.js +25 -25
  79. package/Build/Workers/createRectangleGeometry.js +28 -30
  80. package/Build/Workers/createRectangleOutlineGeometry.js +19 -19
  81. package/Build/Workers/createSimplePolylineGeometry.js +21 -21
  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 +22 -26
  91. package/Build/Workers/createVerticesFromHeightmap.js +26 -26
  92. package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +42 -32
  93. package/Build/Workers/createWallGeometry.js +22 -22
  94. package/Build/Workers/createWallOutlineGeometry.js +21 -21
  95. package/Build/Workers/decodeDraco.js +11 -11
  96. package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +28 -5
  97. package/Build/Workers/decodeI3S.js +10 -10
  98. package/Build/Workers/transcodeKTX2.js +19 -18
  99. package/Build/Workers/transferTypedArrayTest.js +1 -1
  100. package/Build/Workers/upsampleQuantizedTerrainMesh.js +20 -20
  101. package/Source/Core/ApproximateTerrainHeights.js +15 -15
  102. package/Source/Core/ArcGISTiledElevationTerrainProvider.js +33 -35
  103. package/Source/Core/AttributeCompression.js +12 -12
  104. package/Source/Core/AxisAlignedBoundingBox.js +2 -2
  105. package/Source/Core/BingMapsGeocoderService.js +1 -1
  106. package/Source/Core/BoundingRectangle.js +3 -3
  107. package/Source/Core/BoundingSphere.js +44 -44
  108. package/Source/Core/BoxGeometry.js +6 -6
  109. package/Source/Core/BoxOutlineGeometry.js +3 -3
  110. package/Source/Core/Cartesian2.js +7 -7
  111. package/Source/Core/Cartesian3.js +20 -20
  112. package/Source/Core/Cartesian4.js +8 -8
  113. package/Source/Core/Cartographic.js +6 -6
  114. package/Source/Core/CatmullRomSpline.js +6 -6
  115. package/Source/Core/CesiumTerrainProvider.js +66 -68
  116. package/Source/Core/Check.d.ts +3 -3
  117. package/Source/Core/Check.js +11 -11
  118. package/Source/Core/CircleGeometry.js +6 -6
  119. package/Source/Core/CircleOutlineGeometry.js +4 -4
  120. package/Source/Core/Clock.js +4 -4
  121. package/Source/Core/Color.js +11 -8
  122. package/Source/Core/ColorGeometryInstanceAttribute.js +1 -1
  123. package/Source/Core/ComponentDatatype.js +4 -4
  124. package/Source/Core/CompressedTextureBuffer.js +13 -2
  125. package/Source/Core/ConstantSpline.js +1 -1
  126. package/Source/Core/CoplanarPolygonGeometry.js +44 -41
  127. package/Source/Core/CoplanarPolygonGeometryLibrary.js +5 -5
  128. package/Source/Core/CoplanarPolygonOutlineGeometry.js +6 -6
  129. package/Source/Core/CorridorGeometry.js +77 -77
  130. package/Source/Core/CorridorGeometryLibrary.js +45 -45
  131. package/Source/Core/CorridorOutlineGeometry.js +16 -16
  132. package/Source/Core/CullingVolume.js +4 -4
  133. package/Source/Core/CustomHeightmapTerrainProvider.js +13 -13
  134. package/Source/Core/CylinderGeometry.js +8 -8
  135. package/Source/Core/CylinderGeometryLibrary.js +1 -1
  136. package/Source/Core/CylinderOutlineGeometry.js +4 -4
  137. package/Source/Core/DeveloperError.js +1 -1
  138. package/Source/Core/DistanceDisplayConditionGeometryInstanceAttribute.js +20 -21
  139. package/Source/Core/DoubleEndedPriorityQueue.js +2 -2
  140. package/Source/Core/EarthOrientationParameters.js +21 -25
  141. package/Source/Core/EarthOrientationParametersSample.js +1 -1
  142. package/Source/Core/EllipseGeometry.js +54 -55
  143. package/Source/Core/EllipseGeometryLibrary.js +12 -12
  144. package/Source/Core/EllipseOutlineGeometry.js +19 -19
  145. package/Source/Core/Ellipsoid.js +25 -33
  146. package/Source/Core/EllipsoidGeodesic.js +17 -16
  147. package/Source/Core/EllipsoidGeometry.js +9 -8
  148. package/Source/Core/EllipsoidOutlineGeometry.js +4 -4
  149. package/Source/Core/EllipsoidRhumbLine.js +33 -32
  150. package/Source/Core/EllipsoidTangentPlane.js +16 -16
  151. package/Source/Core/EllipsoidTerrainProvider.js +11 -10
  152. package/Source/Core/EllipsoidalOccluder.js +110 -130
  153. package/Source/Core/FeatureDetection.js +4 -4
  154. package/Source/Core/FrustumGeometry.js +14 -14
  155. package/Source/Core/FrustumOutlineGeometry.js +4 -4
  156. package/Source/Core/GeographicTilingScheme.js +6 -6
  157. package/Source/Core/Geometry.js +15 -17
  158. package/Source/Core/GeometryAttribute.js +4 -9
  159. package/Source/Core/GeometryAttributes.js +6 -6
  160. package/Source/Core/GeometryInstance.js +3 -4
  161. package/Source/Core/GeometryInstanceAttribute.js +1 -6
  162. package/Source/Core/GeometryPipeline.js +133 -137
  163. package/Source/Core/GoogleEarthEnterpriseMetadata.js +19 -20
  164. package/Source/Core/GoogleEarthEnterpriseTerrainData.js +25 -24
  165. package/Source/Core/GoogleEarthEnterpriseTerrainProvider.js +17 -21
  166. package/Source/Core/GoogleEarthEnterpriseTileInformation.js +2 -2
  167. package/Source/Core/GoogleMaps.js +1 -1
  168. package/Source/Core/GregorianDate.js +4 -4
  169. package/Source/Core/GroundPolylineGeometry.js +104 -104
  170. package/Source/Core/HeadingPitchRoll.js +7 -7
  171. package/Source/Core/HeightmapTerrainData.js +58 -54
  172. package/Source/Core/HeightmapTessellator.js +22 -23
  173. package/Source/Core/HermitePolynomialApproximation.js +8 -8
  174. package/Source/Core/HermiteSpline.js +11 -11
  175. package/Source/Core/HilbertOrder.js +1 -1
  176. package/Source/Core/Iau2006XysData.js +6 -6
  177. package/Source/Core/IauOrientationAxes.js +2 -2
  178. package/Source/Core/IauOrientationParameters.js +1 -1
  179. package/Source/Core/IndexDatatype.js +5 -5
  180. package/Source/Core/IntersectionTests.js +36 -78
  181. package/Source/Core/Intersections2D.js +3 -3
  182. package/Source/Core/Ion.js +1 -1
  183. package/Source/Core/IonGeocoderService.js +2 -2
  184. package/Source/Core/IonResource.js +5 -5
  185. package/Source/Core/Iso8601.js +3 -3
  186. package/Source/Core/JulianDate.js +23 -33
  187. package/Source/Core/KTX2Transcoder.js +11 -18
  188. package/Source/Core/LagrangePolynomialApproximation.js +1 -1
  189. package/Source/Core/LinearApproximation.js +4 -4
  190. package/Source/Core/LinearSpline.js +2 -2
  191. package/Source/Core/Math.js +4 -4
  192. package/Source/Core/Matrix2.js +3 -3
  193. package/Source/Core/Matrix3.js +16 -16
  194. package/Source/Core/Matrix4.js +31 -31
  195. package/Source/Core/MorphWeightSpline.js +2 -2
  196. package/Source/Core/NearFarScalar.js +1 -1
  197. package/Source/Core/Occluder.js +52 -56
  198. package/Source/Core/OpenCageGeocoderService.js +2 -2
  199. package/Source/Core/OrientedBoundingBox.js +52 -51
  200. package/Source/Core/OrthographicFrustum.js +11 -11
  201. package/Source/Core/OrthographicOffCenterFrustum.js +17 -17
  202. package/Source/Core/PeliasGeocoderService.js +1 -1
  203. package/Source/Core/PerspectiveFrustum.js +61 -55
  204. package/Source/Core/PerspectiveOffCenterFrustum.js +58 -59
  205. package/Source/Core/PinBuilder.js +1 -1
  206. package/Source/Core/PixelFormat.js +7 -21
  207. package/Source/Core/Plane.js +9 -9
  208. package/Source/Core/PlaneGeometry.js +1 -1
  209. package/Source/Core/PolygonGeometry.js +95 -94
  210. package/Source/Core/PolygonGeometryLibrary.js +49 -51
  211. package/Source/Core/PolygonOutlineGeometry.js +49 -51
  212. package/Source/Core/PolygonPipeline.js +31 -31
  213. package/Source/Core/PolylineGeometry.js +10 -10
  214. package/Source/Core/PolylinePipeline.js +25 -25
  215. package/Source/Core/PolylineVolumeGeometry.js +9 -9
  216. package/Source/Core/PolylineVolumeGeometryLibrary.js +51 -51
  217. package/Source/Core/PolylineVolumeOutlineGeometry.js +6 -6
  218. package/Source/Core/QuadraticRealPolynomial.js +1 -1
  219. package/Source/Core/QuantizedMeshTerrainData.js +28 -28
  220. package/Source/Core/QuarticRealPolynomial.js +1 -1
  221. package/Source/Core/Quaternion.js +19 -19
  222. package/Source/Core/QuaternionSpline.js +2 -2
  223. package/Source/Core/Rectangle.js +34 -13
  224. package/Source/Core/RectangleCollisionChecker.js +3 -3
  225. package/Source/Core/RectangleGeometry.js +55 -56
  226. package/Source/Core/RectangleGeometryLibrary.js +8 -8
  227. package/Source/Core/RectangleOutlineGeometry.js +20 -20
  228. package/Source/Core/RequestScheduler.js +6 -6
  229. package/Source/Core/Resource.js +24 -24
  230. package/Source/Core/S2Cell.js +16 -80
  231. package/Source/Core/ScreenSpaceEventHandler.js +54 -53
  232. package/Source/Core/Simon1994PlanetaryPositions.js +13 -13
  233. package/Source/Core/SimplePolylineGeometry.js +7 -7
  234. package/Source/Core/SphereGeometry.js +2 -2
  235. package/Source/Core/SphereOutlineGeometry.js +3 -3
  236. package/Source/Core/Spline.js +1 -1
  237. package/Source/Core/SteppedSpline.js +1 -1
  238. package/Source/Core/Stereographic.js +9 -9
  239. package/Source/Core/TaskProcessor.js +13 -13
  240. package/Source/Core/TerrainEncoding.js +33 -38
  241. package/Source/Core/TerrainMesh.js +1 -1
  242. package/Source/Core/TerrainProvider.js +12 -12
  243. package/Source/Core/TileAvailability.js +28 -28
  244. package/Source/Core/TileProviderError.js +5 -5
  245. package/Source/Core/TilingScheme.js +1 -1
  246. package/Source/Core/TimeInterval.js +4 -4
  247. package/Source/Core/TimeIntervalCollection.js +16 -15
  248. package/Source/Core/Tipsify.js +2 -2
  249. package/Source/Core/Transforms.js +52 -54
  250. package/Source/Core/TranslationRotationScale.js +1 -1
  251. package/Source/Core/TridiagonalSystemSolver.js +4 -4
  252. package/Source/Core/VRTheWorldTerrainProvider.js +28 -26
  253. package/Source/Core/VertexFormat.js +6 -6
  254. package/Source/Core/VerticalExaggeration.js +4 -4
  255. package/Source/Core/VideoSynchronizer.js +1 -1
  256. package/Source/Core/WallGeometry.js +18 -18
  257. package/Source/Core/WallGeometryLibrary.js +7 -7
  258. package/Source/Core/WallOutlineGeometry.js +8 -8
  259. package/Source/Core/WebMercatorProjection.js +5 -6
  260. package/Source/Core/WebMercatorTilingScheme.js +13 -13
  261. package/Source/Core/WireframeIndexGenerator.js +8 -8
  262. package/Source/Core/arrayRemoveDuplicates.js +1 -1
  263. package/Source/Core/buildModuleUrl.js +2 -2
  264. package/Source/Core/decodeGoogleEarthEnterpriseData.js +3 -3
  265. package/Source/Core/decodeVectorPolylinePositions.js +4 -4
  266. package/Source/Core/destroyObject.js +1 -1
  267. package/Source/Core/getJsonFromTypedArray.js +1 -1
  268. package/Source/Core/getMagic.js +1 -1
  269. package/Source/Core/loadImageFromTypedArray.js +2 -2
  270. package/Source/Core/loadKTX2.js +1 -1
  271. package/Source/Core/pointInsideTriangle.js +1 -1
  272. package/Source/Core/resizeImageToNextPowerOfTwo.js +1 -1
  273. package/Source/Core/sampleTerrain.js +7 -7
  274. package/Source/Core/sampleTerrainMostDetailed.js +7 -7
  275. package/Source/Core/scaleToGeodeticSurface.js +3 -3
  276. package/Source/Core/srgbToLinear.js +1 -1
  277. package/Source/Core/writeTextToCanvas.js +1 -1
  278. package/Source/DataSources/BillboardGraphics.js +13 -13
  279. package/Source/DataSources/BillboardVisualizer.js +24 -24
  280. package/Source/DataSources/BoxGeometryUpdater.js +33 -32
  281. package/Source/DataSources/BoxGraphics.js +3 -3
  282. package/Source/DataSources/CallbackPositionProperty.js +173 -0
  283. package/Source/DataSources/CallbackProperty.js +8 -2
  284. package/Source/DataSources/Cesium3DTilesetGraphics.js +1 -1
  285. package/Source/DataSources/Cesium3DTilesetVisualizer.js +6 -6
  286. package/Source/DataSources/CheckerboardMaterialProperty.js +9 -3
  287. package/Source/DataSources/ColorMaterialProperty.js +8 -2
  288. package/Source/DataSources/CompositeEntityCollection.js +14 -15
  289. package/Source/DataSources/CompositeMaterialProperty.js +10 -11
  290. package/Source/DataSources/CompositePositionProperty.js +11 -6
  291. package/Source/DataSources/CompositeProperty.js +7 -7
  292. package/Source/DataSources/ConstantPositionProperty.js +9 -3
  293. package/Source/DataSources/CorridorGeometryUpdater.js +61 -56
  294. package/Source/DataSources/CorridorGraphics.js +6 -6
  295. package/Source/DataSources/CylinderGeometryUpdater.js +42 -40
  296. package/Source/DataSources/CylinderGraphics.js +4 -4
  297. package/Source/DataSources/CzmlDataSource.js +365 -368
  298. package/Source/DataSources/DataSourceCollection.js +1 -1
  299. package/Source/DataSources/DataSourceDisplay.js +23 -23
  300. package/Source/DataSources/DynamicGeometryBatch.js +2 -2
  301. package/Source/DataSources/DynamicGeometryUpdater.js +14 -18
  302. package/Source/DataSources/EllipseGeometryUpdater.js +67 -63
  303. package/Source/DataSources/EllipseGraphics.js +7 -7
  304. package/Source/DataSources/EllipsoidGeometryUpdater.js +88 -86
  305. package/Source/DataSources/EllipsoidGraphics.js +5 -5
  306. package/Source/DataSources/Entity.js +14 -14
  307. package/Source/DataSources/EntityCluster.js +29 -27
  308. package/Source/DataSources/EntityCollection.js +7 -7
  309. package/Source/DataSources/EntityView.js +23 -23
  310. package/Source/DataSources/GeoJsonDataSource.js +25 -25
  311. package/Source/DataSources/GeometryUpdater.js +9 -10
  312. package/Source/DataSources/GeometryUpdaterSet.js +3 -3
  313. package/Source/DataSources/GeometryVisualizer.js +65 -71
  314. package/Source/DataSources/GpxDataSource.js +10 -10
  315. package/Source/DataSources/GridMaterialProperty.js +12 -6
  316. package/Source/DataSources/GroundGeometryUpdater.js +6 -6
  317. package/Source/DataSources/ImageMaterialProperty.js +10 -3
  318. package/Source/DataSources/KmlDataSource.js +212 -212
  319. package/Source/DataSources/LabelGraphics.js +14 -14
  320. package/Source/DataSources/LabelVisualizer.js +24 -24
  321. package/Source/DataSources/MaterialProperty.js +7 -1
  322. package/Source/DataSources/ModelGraphics.js +37 -17
  323. package/Source/DataSources/ModelVisualizer.js +41 -32
  324. package/Source/DataSources/NodeTransformationProperty.js +10 -4
  325. package/Source/DataSources/PathGraphics.js +2 -2
  326. package/Source/DataSources/PathVisualizer.js +99 -35
  327. package/Source/DataSources/PlaneGeometryUpdater.js +38 -37
  328. package/Source/DataSources/PlaneGraphics.js +2 -2
  329. package/Source/DataSources/PointGraphics.js +8 -8
  330. package/Source/DataSources/PointVisualizer.js +29 -29
  331. package/Source/DataSources/PolygonGeometryUpdater.js +68 -64
  332. package/Source/DataSources/PolygonGraphics.js +9 -9
  333. package/Source/DataSources/PolylineArrowMaterialProperty.js +8 -2
  334. package/Source/DataSources/PolylineDashMaterialProperty.js +11 -5
  335. package/Source/DataSources/PolylineGeometryUpdater.js +39 -44
  336. package/Source/DataSources/PolylineGlowMaterialProperty.js +10 -4
  337. package/Source/DataSources/PolylineGraphics.js +4 -4
  338. package/Source/DataSources/PolylineOutlineMaterialProperty.js +10 -4
  339. package/Source/DataSources/PolylineVisualizer.js +39 -43
  340. package/Source/DataSources/PolylineVolumeGeometryUpdater.js +70 -68
  341. package/Source/DataSources/PolylineVolumeGraphics.js +2 -2
  342. package/Source/DataSources/PositionProperty.js +5 -4
  343. package/Source/DataSources/PositionPropertyArray.js +10 -4
  344. package/Source/DataSources/Property.js +2 -2
  345. package/Source/DataSources/PropertyArray.js +6 -6
  346. package/Source/DataSources/PropertyBag.js +10 -9
  347. package/Source/DataSources/RectangleGeometryUpdater.js +68 -63
  348. package/Source/DataSources/RectangleGraphics.js +6 -6
  349. package/Source/DataSources/ReferenceProperty.js +13 -7
  350. package/Source/DataSources/Rotation.js +2 -2
  351. package/Source/DataSources/SampledPositionProperty.js +13 -7
  352. package/Source/DataSources/SampledProperty.js +22 -20
  353. package/Source/DataSources/ScaledPositionProperty.js +8 -2
  354. package/Source/DataSources/StaticGeometryColorBatch.js +41 -41
  355. package/Source/DataSources/StaticGeometryPerMaterialBatch.js +40 -40
  356. package/Source/DataSources/StaticGroundGeometryColorBatch.js +26 -27
  357. package/Source/DataSources/StaticGroundGeometryPerMaterialBatch.js +46 -44
  358. package/Source/DataSources/StaticGroundPolylinePerMaterialBatch.js +44 -43
  359. package/Source/DataSources/StaticOutlineGeometryBatch.js +28 -29
  360. package/Source/DataSources/StripeMaterialProperty.js +9 -3
  361. package/Source/DataSources/TerrainOffsetProperty.js +20 -11
  362. package/Source/DataSources/TimeIntervalCollectionPositionProperty.js +35 -31
  363. package/Source/DataSources/TimeIntervalCollectionProperty.js +6 -6
  364. package/Source/DataSources/VelocityOrientationProperty.js +9 -4
  365. package/Source/DataSources/VelocityVectorProperty.js +7 -9
  366. package/Source/DataSources/WallGeometryUpdater.js +25 -25
  367. package/Source/DataSources/WallGraphics.js +4 -4
  368. package/Source/DataSources/createPropertyDescriptor.js +3 -3
  369. package/Source/DataSources/exportKml.js +90 -86
  370. package/Source/DataSources/getElement.js +1 -1
  371. package/Source/DataSources/heightReferenceOnEntityPropertyChanged.js +4 -4
  372. package/Source/Renderer/AutomaticUniforms.js +3 -18
  373. package/Source/Renderer/Buffer.js +18 -18
  374. package/Source/Renderer/ClearCommand.js +1 -1
  375. package/Source/Renderer/ComputeEngine.js +1 -1
  376. package/Source/Renderer/Context.js +55 -40
  377. package/Source/Renderer/CubeMap.js +332 -354
  378. package/Source/Renderer/CubeMapFace.js +43 -65
  379. package/Source/Renderer/DrawCommand.js +50 -5
  380. package/Source/Renderer/Framebuffer.js +48 -49
  381. package/Source/Renderer/FramebufferManager.js +40 -34
  382. package/Source/Renderer/MultisampleFramebuffer.js +35 -14
  383. package/Source/Renderer/PixelDatatype.js +23 -0
  384. package/Source/Renderer/RenderState.js +36 -36
  385. package/Source/Renderer/Renderbuffer.js +3 -3
  386. package/Source/Renderer/Sampler.js +9 -15
  387. package/Source/Renderer/ShaderBuilder.js +8 -8
  388. package/Source/Renderer/ShaderCache.js +11 -15
  389. package/Source/Renderer/ShaderFunction.js +1 -1
  390. package/Source/Renderer/ShaderProgram.js +22 -15
  391. package/Source/Renderer/ShaderSource.js +40 -40
  392. package/Source/Renderer/Texture.js +455 -380
  393. package/Source/Renderer/UniformState.js +68 -80
  394. package/Source/Renderer/VertexArray.js +20 -20
  395. package/Source/Renderer/VertexArrayFacade.js +15 -16
  396. package/Source/Renderer/createUniform.js +1 -1
  397. package/Source/Renderer/createUniformArray.js +4 -4
  398. package/Source/Renderer/demodernizeShader.js +7 -5
  399. package/Source/Renderer/loadCubeMap.js +3 -8
  400. package/Source/Scene/ArcGisMapServerImageryProvider.js +39 -45
  401. package/Source/Scene/ArcGisMapService.js +4 -7
  402. package/Source/Scene/AutoExposure.js +4 -5
  403. package/Source/Scene/Axis.js +6 -6
  404. package/Source/Scene/B3dmParser.js +9 -9
  405. package/Source/Scene/BatchTable.js +7 -7
  406. package/Source/Scene/BatchTableHierarchy.js +62 -59
  407. package/Source/Scene/BatchTexture.js +2 -2
  408. package/Source/Scene/Billboard.js +45 -43
  409. package/Source/Scene/BillboardCollection.js +81 -83
  410. package/Source/Scene/BingMapsImageryProvider.js +13 -13
  411. package/Source/Scene/BoundingVolumeSemantics.js +10 -10
  412. package/Source/Scene/BoxEmitter.js +1 -1
  413. package/Source/Scene/BufferLoader.js +1 -1
  414. package/Source/Scene/Camera.js +161 -164
  415. package/Source/Scene/CameraEventAggregator.js +67 -23
  416. package/Source/Scene/CameraFlightPath.js +25 -25
  417. package/Source/Scene/Cesium3DTile.js +89 -95
  418. package/Source/Scene/Cesium3DTileBatchTable.js +61 -61
  419. package/Source/Scene/Cesium3DTileContentFactory.js +7 -7
  420. package/Source/Scene/Cesium3DTileFeature.js +1 -1
  421. package/Source/Scene/Cesium3DTileFeatureTable.js +8 -8
  422. package/Source/Scene/Cesium3DTileOptimizations.js +1 -1
  423. package/Source/Scene/Cesium3DTilePointFeature.js +11 -11
  424. package/Source/Scene/Cesium3DTileStyle.js +26 -24
  425. package/Source/Scene/Cesium3DTilesVoxelProvider.js +14 -20
  426. package/Source/Scene/Cesium3DTileset.js +81 -83
  427. package/Source/Scene/Cesium3DTilesetBaseTraversal.js +8 -16
  428. package/Source/Scene/Cesium3DTilesetCache.js +2 -2
  429. package/Source/Scene/Cesium3DTilesetHeatmap.js +5 -5
  430. package/Source/Scene/Cesium3DTilesetMetadata.js +2 -2
  431. package/Source/Scene/Cesium3DTilesetMostDetailedTraversal.js +2 -2
  432. package/Source/Scene/Cesium3DTilesetSkipTraversal.js +8 -12
  433. package/Source/Scene/Cesium3DTilesetStatistics.js +1 -1
  434. package/Source/Scene/Cesium3DTilesetTraversal.js +8 -10
  435. package/Source/Scene/ClassificationPrimitive.js +70 -69
  436. package/Source/Scene/ClippingPlaneCollection.js +39 -41
  437. package/Source/Scene/ClippingPolygon.js +8 -8
  438. package/Source/Scene/ClippingPolygonCollection.js +62 -63
  439. package/Source/Scene/CloudCollection.js +3 -10
  440. package/Source/Scene/Composite3DTileContent.js +6 -6
  441. package/Source/Scene/ConditionsExpression.js +5 -5
  442. package/Source/Scene/ContentMetadata.js +4 -4
  443. package/Source/Scene/CreditDisplay.js +8 -8
  444. package/Source/Scene/CumulusCloud.js +4 -4
  445. package/Source/Scene/DebugAppearance.js +2 -2
  446. package/Source/Scene/DebugCameraPrimitive.js +2 -2
  447. package/Source/Scene/DebugInspector.js +3 -3
  448. package/Source/Scene/DebugModelMatrixPrimitive.js +4 -4
  449. package/Source/Scene/DepthPlane.js +7 -7
  450. package/Source/Scene/DerivedCommand.js +422 -238
  451. package/Source/Scene/DiscardMissingTileImagePolicy.js +1 -1
  452. package/Source/Scene/DracoLoader.js +3 -3
  453. package/Source/Scene/EllipsoidPrimitive.js +7 -7
  454. package/Source/Scene/EllipsoidSurfaceAppearance.js +3 -3
  455. package/Source/Scene/Empty3DTileContent.js +1 -1
  456. package/Source/Scene/Expression.js +91 -91
  457. package/Source/Scene/Fog.js +8 -41
  458. package/Source/Scene/FrameRateMonitor.js +22 -22
  459. package/Source/Scene/FrameState.js +31 -0
  460. package/Source/Scene/Geometry3DTileContent.js +20 -20
  461. package/Source/Scene/GetFeatureInfoFormat.js +15 -14
  462. package/Source/Scene/Globe.js +33 -28
  463. package/Source/Scene/GlobeDepth.js +95 -66
  464. package/Source/Scene/GlobeSurfaceShaderSet.js +41 -34
  465. package/Source/Scene/GlobeSurfaceTile.js +33 -33
  466. package/Source/Scene/GlobeSurfaceTileProvider.js +132 -127
  467. package/Source/Scene/GlobeTranslucency.js +4 -4
  468. package/Source/Scene/GlobeTranslucencyFramebuffer.js +9 -9
  469. package/Source/Scene/GlobeTranslucencyState.js +53 -55
  470. package/Source/Scene/GltfBufferViewLoader.js +2 -2
  471. package/Source/Scene/GltfIndexBufferLoader.js +5 -5
  472. package/Source/Scene/GltfJsonLoader.js +2 -2
  473. package/Source/Scene/GltfLoader.js +177 -100
  474. package/Source/Scene/GltfStructuralMetadataLoader.js +9 -8
  475. package/Source/Scene/GltfTextureLoader.js +5 -5
  476. package/Source/Scene/GltfVertexBufferLoader.js +12 -13
  477. package/Source/Scene/GoogleEarthEnterpriseImageryProvider.js +9 -9
  478. package/Source/Scene/GoogleEarthEnterpriseMapsProvider.js +9 -9
  479. package/Source/Scene/GridImageryProvider.js +2 -2
  480. package/Source/Scene/GroundPolylinePrimitive.js +38 -39
  481. package/Source/Scene/GroundPrimitive.js +47 -45
  482. package/Source/Scene/GroupMetadata.js +4 -4
  483. package/Source/Scene/I3SDataProvider.js +12 -12
  484. package/Source/Scene/I3SDecoder.js +7 -8
  485. package/Source/Scene/I3SField.js +8 -8
  486. package/Source/Scene/I3SGeometry.js +14 -14
  487. package/Source/Scene/I3SLayer.js +26 -20
  488. package/Source/Scene/I3SNode.js +17 -17
  489. package/Source/Scene/I3SSublayer.js +4 -4
  490. package/Source/Scene/I3SSymbology.js +8 -8
  491. package/Source/Scene/I3dmParser.js +9 -9
  492. package/Source/Scene/ImageBasedLighting.js +58 -56
  493. package/Source/Scene/Imagery.js +3 -3
  494. package/Source/Scene/ImageryLayer.js +64 -66
  495. package/Source/Scene/ImageryLayerCollection.js +13 -15
  496. package/Source/Scene/ImageryLayerFeatureInfo.js +19 -20
  497. package/Source/Scene/ImageryProvider.js +1 -1
  498. package/Source/Scene/Implicit3DTileContent.js +34 -37
  499. package/Source/Scene/ImplicitAvailabilityBitstream.js +2 -2
  500. package/Source/Scene/ImplicitMetadataView.js +2 -2
  501. package/Source/Scene/ImplicitSubtree.js +29 -30
  502. package/Source/Scene/ImplicitSubtreeCache.js +1 -1
  503. package/Source/Scene/ImplicitSubtreeMetadata.js +5 -5
  504. package/Source/Scene/ImplicitTileCoordinates.js +11 -11
  505. package/Source/Scene/ImplicitTileset.js +2 -2
  506. package/Source/Scene/InvertClassification.js +7 -7
  507. package/Source/Scene/IonImageryProvider.js +6 -6
  508. package/Source/Scene/JobScheduler.js +4 -4
  509. package/Source/Scene/Label.js +31 -31
  510. package/Source/Scene/LabelCollection.js +17 -15
  511. package/Source/Scene/MapboxImageryProvider.js +3 -3
  512. package/Source/Scene/MapboxStyleImageryProvider.js +4 -4
  513. package/Source/Scene/Material.js +50 -29
  514. package/Source/Scene/MaterialAppearance.js +4 -4
  515. package/Source/Scene/Megatexture.js +21 -24
  516. package/Source/Scene/MetadataClassProperty.js +11 -11
  517. package/Source/Scene/MetadataComponentType.js +1 -1
  518. package/Source/Scene/MetadataEntity.js +8 -8
  519. package/Source/Scene/MetadataEnum.js +1 -1
  520. package/Source/Scene/MetadataPicking.js +305 -0
  521. package/Source/Scene/MetadataSchemaLoader.js +1 -1
  522. package/Source/Scene/MetadataTable.js +2 -2
  523. package/Source/Scene/MetadataTableProperty.js +22 -22
  524. package/Source/Scene/Model/AlphaPipelineStage.js +2 -2
  525. package/Source/Scene/Model/AtmospherePipelineStage.js +3 -3
  526. package/Source/Scene/Model/B3dmLoader.js +8 -8
  527. package/Source/Scene/Model/BatchTexturePipelineStage.js +2 -2
  528. package/Source/Scene/Model/CPUStylingPipelineStage.js +4 -4
  529. package/Source/Scene/Model/ClassificationModelDrawCommand.js +8 -8
  530. package/Source/Scene/Model/ClassificationPipelineStage.js +5 -5
  531. package/Source/Scene/Model/CustomShader.js +9 -9
  532. package/Source/Scene/Model/CustomShaderPipelineStage.js +37 -38
  533. package/Source/Scene/Model/DequantizationPipelineStage.js +5 -5
  534. package/Source/Scene/Model/Extensions/Gpm/AnchorPointDirect.js +61 -0
  535. package/Source/Scene/Model/Extensions/Gpm/AnchorPointIndirect.js +77 -0
  536. package/Source/Scene/Model/Extensions/Gpm/CorrelationGroup.js +81 -0
  537. package/Source/Scene/Model/Extensions/Gpm/GltfGpmLoader.js +248 -0
  538. package/Source/Scene/Model/Extensions/Gpm/GltfGpmLocal.js +179 -0
  539. package/Source/Scene/Model/Extensions/Gpm/GltfMeshPrimitiveGpmLoader.js +548 -0
  540. package/Source/Scene/Model/Extensions/Gpm/MeshPrimitiveGpmLocal.js +28 -0
  541. package/Source/Scene/Model/Extensions/Gpm/PpeMetadata.js +79 -0
  542. package/Source/Scene/Model/Extensions/Gpm/PpeSource.js +75 -0
  543. package/Source/Scene/Model/Extensions/Gpm/PpeTexture.js +127 -0
  544. package/Source/Scene/Model/Extensions/Gpm/Spdcf.js +103 -0
  545. package/Source/Scene/Model/Extensions/Gpm/StorageType.js +30 -0
  546. package/Source/Scene/Model/FeatureIdPipelineStage.js +40 -40
  547. package/Source/Scene/Model/GeoJsonLoader.js +17 -17
  548. package/Source/Scene/Model/GeometryPipelineStage.js +23 -24
  549. package/Source/Scene/Model/I3dmLoader.js +36 -36
  550. package/Source/Scene/Model/ImageBasedLightingPipelineStage.js +22 -30
  551. package/Source/Scene/Model/InstancingPipelineStage.js +86 -86
  552. package/Source/Scene/Model/LightingPipelineStage.js +4 -4
  553. package/Source/Scene/Model/MaterialPipelineStage.js +78 -93
  554. package/Source/Scene/Model/MetadataPickingPipelineStage.js +96 -0
  555. package/Source/Scene/Model/MetadataPipelineStage.js +39 -47
  556. package/Source/Scene/Model/Model.js +134 -54
  557. package/Source/Scene/Model/Model3DTileContent.js +32 -13
  558. package/Source/Scene/Model/ModelAnimationChannel.js +2 -2
  559. package/Source/Scene/Model/ModelAnimationCollection.js +9 -9
  560. package/Source/Scene/Model/ModelArticulation.js +2 -2
  561. package/Source/Scene/Model/ModelArticulationStage.js +4 -4
  562. package/Source/Scene/Model/ModelClippingPlanesPipelineStage.js +11 -11
  563. package/Source/Scene/Model/ModelClippingPolygonsPipelineStage.js +6 -6
  564. package/Source/Scene/Model/ModelColorPipelineStage.js +12 -13
  565. package/Source/Scene/Model/ModelDrawCommand.js +5 -5
  566. package/Source/Scene/Model/{buildDrawCommand.js → ModelDrawCommands.js} +85 -28
  567. package/Source/Scene/Model/ModelFeatureTable.js +5 -5
  568. package/Source/Scene/Model/ModelMatrixUpdateStage.js +24 -12
  569. package/Source/Scene/Model/ModelRenderResources.js +1 -1
  570. package/Source/Scene/Model/ModelRuntimeNode.js +15 -15
  571. package/Source/Scene/Model/ModelRuntimePrimitive.js +8 -5
  572. package/Source/Scene/Model/ModelSceneGraph.js +42 -43
  573. package/Source/Scene/Model/ModelSilhouettePipelineStage.js +4 -4
  574. package/Source/Scene/Model/ModelSkin.js +4 -4
  575. package/Source/Scene/Model/ModelSplitterPipelineStage.js +8 -9
  576. package/Source/Scene/Model/ModelUtility.js +5 -5
  577. package/Source/Scene/Model/MorphTargetsPipelineStage.js +18 -18
  578. package/Source/Scene/Model/NodeRenderResources.js +1 -1
  579. package/Source/Scene/Model/NodeStatisticsPipelineStage.js +1 -1
  580. package/Source/Scene/Model/PickingPipelineStage.js +5 -5
  581. package/Source/Scene/Model/PntsLoader.js +7 -7
  582. package/Source/Scene/Model/PointCloudStylingPipelineStage.js +22 -23
  583. package/Source/Scene/Model/PrimitiveOutlineGenerator.js +6 -6
  584. package/Source/Scene/Model/PrimitiveOutlinePipelineStage.js +7 -7
  585. package/Source/Scene/Model/PrimitiveRenderResources.js +3 -3
  586. package/Source/Scene/Model/PrimitiveStatisticsPipelineStage.js +1 -1
  587. package/Source/Scene/Model/SceneMode2DPipelineStage.js +23 -23
  588. package/Source/Scene/Model/SelectedFeatureIdPipelineStage.js +10 -14
  589. package/Source/Scene/Model/SkinningPipelineStage.js +5 -5
  590. package/Source/Scene/Model/StyleCommandsNeeded.js +1 -1
  591. package/Source/Scene/Model/TextureManager.js +2 -2
  592. package/Source/Scene/Model/TextureUniform.js +3 -3
  593. package/Source/Scene/Model/TilesetPipelineStage.js +2 -2
  594. package/Source/Scene/Model/VerticalExaggerationPipelineStage.js +4 -4
  595. package/Source/Scene/Model/WireframePipelineStage.js +7 -7
  596. package/Source/Scene/Model/pickModel.js +26 -26
  597. package/Source/Scene/ModelComponents.js +13 -4
  598. package/Source/Scene/Moon.js +6 -5
  599. package/Source/Scene/Multiple3DTileContent.js +15 -14
  600. package/Source/Scene/OIT.js +48 -97
  601. package/Source/Scene/OpenStreetMapImageryProvider.js +8 -7
  602. package/Source/Scene/OrderedGroundPrimitiveCollection.js +2 -2
  603. package/Source/Scene/Particle.js +3 -3
  604. package/Source/Scene/ParticleEmitter.js +1 -1
  605. package/Source/Scene/ParticleSystem.js +32 -32
  606. package/Source/Scene/PerInstanceColorAppearance.js +1 -1
  607. package/Source/Scene/PickDepth.js +16 -4
  608. package/Source/Scene/PickDepthFramebuffer.js +1 -1
  609. package/Source/Scene/PickFramebuffer.js +24 -12
  610. package/Source/Scene/PickedMetadataInfo.js +39 -0
  611. package/Source/Scene/Picking.js +270 -120
  612. package/Source/Scene/PntsParser.js +28 -28
  613. package/Source/Scene/PointCloud.js +39 -38
  614. package/Source/Scene/PointCloudEyeDomeLighting.js +6 -6
  615. package/Source/Scene/PointCloudShading.js +3 -3
  616. package/Source/Scene/PointPrimitive.js +31 -28
  617. package/Source/Scene/PointPrimitiveCollection.js +34 -33
  618. package/Source/Scene/Polyline.js +9 -9
  619. package/Source/Scene/PolylineCollection.js +55 -57
  620. package/Source/Scene/PolylineColorAppearance.js +3 -3
  621. package/Source/Scene/PolylineMaterialAppearance.js +3 -3
  622. package/Source/Scene/PostProcessStage.js +95 -115
  623. package/Source/Scene/PostProcessStageCollection.js +73 -49
  624. package/Source/Scene/PostProcessStageComposite.js +2 -2
  625. package/Source/Scene/PostProcessStageLibrary.js +30 -4
  626. package/Source/Scene/PostProcessStageTextureCache.js +10 -10
  627. package/Source/Scene/Primitive.js +93 -93
  628. package/Source/Scene/PrimitiveCollection.js +1 -1
  629. package/Source/Scene/PrimitiveLoadPlan.js +1 -1
  630. package/Source/Scene/PrimitivePipeline.js +30 -30
  631. package/Source/Scene/PropertyTable.js +5 -5
  632. package/Source/Scene/PropertyTextureProperty.js +36 -7
  633. package/Source/Scene/QuadtreePrimitive.js +56 -58
  634. package/Source/Scene/QuadtreeTile.js +4 -4
  635. package/Source/Scene/QuadtreeTileProvider.js +1 -1
  636. package/Source/Scene/ResourceCache.js +7 -7
  637. package/Source/Scene/ResourceCacheKey.js +15 -15
  638. package/Source/Scene/Scene.js +897 -677
  639. package/Source/Scene/SceneFramebuffer.js +2 -2
  640. package/Source/Scene/SceneTransforms.js +30 -92
  641. package/Source/Scene/SceneTransitioner.js +47 -47
  642. package/Source/Scene/ScreenSpaceCameraController.js +171 -157
  643. package/Source/Scene/SensorVolumePortionToDisplay.js +1 -1
  644. package/Source/Scene/ShadowMap.js +71 -72
  645. package/Source/Scene/ShadowMapShader.js +9 -9
  646. package/Source/Scene/ShadowVolumeAppearance.js +39 -39
  647. package/Source/Scene/SingleTileImageryProvider.js +3 -3
  648. package/Source/Scene/SkyAtmosphere.js +8 -8
  649. package/Source/Scene/SkyBox.js +17 -24
  650. package/Source/Scene/SpatialNode.js +13 -13
  651. package/Source/Scene/SpecularEnvironmentCubeMap.js +240 -0
  652. package/Source/Scene/SphereEmitter.js +1 -1
  653. package/Source/Scene/StructuralMetadata.js +1 -1
  654. package/Source/Scene/StyleExpression.js +1 -1
  655. package/Source/Scene/Sun.js +11 -7
  656. package/Source/Scene/SunPostProcess.js +6 -6
  657. package/Source/Scene/TerrainFillMesh.js +157 -156
  658. package/Source/Scene/TextureAtlas.js +11 -11
  659. package/Source/Scene/TileBoundingRegion.js +31 -31
  660. package/Source/Scene/TileBoundingS2Cell.js +37 -40
  661. package/Source/Scene/TileBoundingSphere.js +2 -2
  662. package/Source/Scene/TileCoordinatesImageryProvider.js +3 -3
  663. package/Source/Scene/TileImagery.js +7 -11
  664. package/Source/Scene/TileMapServiceImageryProvider.js +26 -25
  665. package/Source/Scene/TileMetadata.js +4 -4
  666. package/Source/Scene/TileOrientedBoundingBox.js +6 -6
  667. package/Source/Scene/Tileset3DTileContent.js +1 -1
  668. package/Source/Scene/TilesetMetadata.js +4 -4
  669. package/Source/Scene/TimeDynamicImagery.js +3 -3
  670. package/Source/Scene/TimeDynamicPointCloud.js +9 -9
  671. package/Source/Scene/Tonemapper.js +35 -23
  672. package/Source/Scene/TranslucentTileClassification.js +48 -58
  673. package/Source/Scene/TweenCollection.js +9 -9
  674. package/Source/Scene/UrlTemplateImageryProvider.js +23 -23
  675. package/Source/Scene/Vector3DTileClampedPolylines.js +21 -21
  676. package/Source/Scene/Vector3DTileContent.js +38 -39
  677. package/Source/Scene/Vector3DTileGeometry.js +11 -8
  678. package/Source/Scene/Vector3DTilePoints.js +18 -22
  679. package/Source/Scene/Vector3DTilePolygons.js +6 -6
  680. package/Source/Scene/Vector3DTilePolylines.js +8 -8
  681. package/Source/Scene/Vector3DTilePrimitive.js +30 -31
  682. package/Source/Scene/View.js +111 -80
  683. package/Source/Scene/VoxelBoxShape.js +34 -34
  684. package/Source/Scene/VoxelCell.js +7 -7
  685. package/Source/Scene/VoxelContent.js +1 -1
  686. package/Source/Scene/VoxelCylinderShape.js +48 -48
  687. package/Source/Scene/VoxelEllipsoidShape.js +83 -97
  688. package/Source/Scene/VoxelPrimitive.js +80 -109
  689. package/Source/Scene/VoxelRenderResources.js +13 -16
  690. package/Source/Scene/VoxelTraversal.js +41 -41
  691. package/Source/Scene/WebMapServiceImageryProvider.js +12 -12
  692. package/Source/Scene/WebMapTileServiceImageryProvider.js +8 -8
  693. package/Source/Scene/buildVoxelDrawCommands.js +10 -14
  694. package/Source/Scene/computeFlyToLocationForRectangle.js +7 -5
  695. package/Source/Scene/createBillboardPointCallback.js +2 -2
  696. package/Source/Scene/createElevationBandMaterial.js +8 -8
  697. package/Source/Scene/createGooglePhotorealistic3DTileset.js +1 -1
  698. package/Source/Scene/createOsmBuildingsAsync.js +1 -1
  699. package/Source/Scene/createTangentSpaceDebugPrimitive.js +7 -7
  700. package/Source/Scene/findContentMetadata.js +2 -2
  701. package/Source/Scene/findTileMetadata.js +2 -2
  702. package/Source/Scene/getBinaryAccessor.js +1 -1
  703. package/Source/Scene/getClipAndStyleCode.js +1 -1
  704. package/Source/Scene/getClippingFunction.js +1 -1
  705. package/Source/Scene/getMetadataClassProperty.js +43 -0
  706. package/Source/Scene/parseBatchTable.js +21 -24
  707. package/Source/Scene/parseFeatureMetadataLegacy.js +3 -3
  708. package/Source/Scene/parseStructuralMetadata.js +3 -3
  709. package/Source/Scene/processVoxelProperties.js +28 -33
  710. package/Source/Shaders/Builtin/CzmBuiltins.js +2 -2
  711. package/Source/Shaders/Builtin/Functions/packDepth.glsl +2 -2
  712. package/Source/Shaders/Builtin/Functions/packDepth.js +2 -2
  713. package/Source/Shaders/Builtin/Functions/pbrLighting.glsl +2 -2
  714. package/Source/Shaders/Builtin/Functions/pbrLighting.js +2 -2
  715. package/Source/Shaders/Builtin/Functions/pbrNeutralTonemapping.glsl +23 -0
  716. package/Source/Shaders/Builtin/Functions/pbrNeutralTonemapping.js +25 -0
  717. package/Source/Shaders/Builtin/Functions/textureCube.glsl +21 -2
  718. package/Source/Shaders/Builtin/Functions/textureCube.js +21 -2
  719. package/Source/Shaders/Builtin/Functions/unpackDepth.glsl +3 -3
  720. package/Source/Shaders/Builtin/Functions/unpackDepth.js +3 -3
  721. package/Source/Shaders/Builtin/Functions/windowToEyeCoordinates.glsl +1 -1
  722. package/Source/Shaders/Builtin/Functions/windowToEyeCoordinates.js +1 -1
  723. package/Source/Shaders/Builtin/Functions/writeLogDepth.glsl +2 -2
  724. package/Source/Shaders/Builtin/Functions/writeLogDepth.js +2 -2
  725. package/Source/Shaders/Builtin/Structs/materialInput.glsl +2 -0
  726. package/Source/Shaders/Builtin/Structs/materialInput.js +2 -0
  727. package/Source/Shaders/DepthPlaneVS.glsl +1 -1
  728. package/Source/Shaders/DepthPlaneVS.js +1 -1
  729. package/Source/Shaders/GlobeFS.glsl +10 -4
  730. package/Source/Shaders/GlobeFS.js +10 -4
  731. package/Source/Shaders/Materials/WaterMaskMaterial.glsl +15 -0
  732. package/Source/Shaders/Materials/WaterMaskMaterial.js +17 -0
  733. package/Source/Shaders/Model/AtmosphereStageFS.glsl +1 -1
  734. package/Source/Shaders/Model/AtmosphereStageFS.js +1 -1
  735. package/Source/Shaders/Model/ImageBasedLightingStageFS.glsl +40 -29
  736. package/Source/Shaders/Model/ImageBasedLightingStageFS.js +40 -29
  737. package/Source/Shaders/Model/LightingStageFS.glsl +2 -2
  738. package/Source/Shaders/Model/LightingStageFS.js +2 -2
  739. package/Source/Shaders/Model/ModelFS.glsl +26 -0
  740. package/Source/Shaders/Model/ModelFS.js +26 -0
  741. package/Source/Shaders/PostProcessStages/AcesTonemappingStage.glsl +4 -0
  742. package/Source/Shaders/PostProcessStages/AcesTonemappingStage.js +4 -0
  743. package/Source/Shaders/PostProcessStages/AmbientOcclusionGenerate.glsl +59 -59
  744. package/Source/Shaders/PostProcessStages/AmbientOcclusionGenerate.js +60 -60
  745. package/Source/Shaders/PostProcessStages/FilmicTonemapping.glsl +4 -0
  746. package/Source/Shaders/PostProcessStages/FilmicTonemapping.js +4 -0
  747. package/Source/Shaders/PostProcessStages/ModifiedReinhardTonemapping.glsl +4 -0
  748. package/Source/Shaders/PostProcessStages/ModifiedReinhardTonemapping.js +4 -0
  749. package/Source/Shaders/PostProcessStages/PbrNeutralTonemapping.glsl +25 -0
  750. package/Source/Shaders/PostProcessStages/PbrNeutralTonemapping.js +27 -0
  751. package/Source/Shaders/PostProcessStages/ReinhardTonemapping.glsl +4 -0
  752. package/Source/Shaders/PostProcessStages/ReinhardTonemapping.js +4 -0
  753. package/Source/Shaders/SkyAtmosphereFS.glsl +1 -1
  754. package/Source/Shaders/SkyAtmosphereFS.js +1 -1
  755. package/Source/Widget/CesiumWidget.js +10 -9
  756. package/Source/Workers/combineGeometry.js +3 -4
  757. package/Source/Workers/createCircleGeometry.js +2 -2
  758. package/Source/Workers/createCircleOutlineGeometry.js +2 -2
  759. package/Source/Workers/createCoplanarPolygonOutlineGeometry.js +1 -1
  760. package/Source/Workers/createCorridorOutlineGeometry.js +2 -2
  761. package/Source/Workers/createEllipsoidOutlineGeometry.js +1 -1
  762. package/Source/Workers/createGeometry.js +4 -5
  763. package/Source/Workers/createGroundPolylineGeometry.js +1 -1
  764. package/Source/Workers/createPolylineVolumeGeometry.js +2 -2
  765. package/Source/Workers/createPolylineVolumeOutlineGeometry.js +4 -4
  766. package/Source/Workers/createRectangleOutlineGeometry.js +1 -1
  767. package/Source/Workers/createSimplePolylineGeometry.js +2 -2
  768. package/Source/Workers/createTaskProcessorWorker.js +1 -1
  769. package/Source/Workers/createVectorTileClampedPolylines.js +30 -30
  770. package/Source/Workers/createVectorTileGeometries.js +18 -18
  771. package/Source/Workers/createVectorTilePoints.js +3 -3
  772. package/Source/Workers/createVectorTilePolygons.js +11 -11
  773. package/Source/Workers/createVectorTilePolylines.js +7 -7
  774. package/Source/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +29 -30
  775. package/Source/Workers/createVerticesFromQuantizedTerrainMesh.js +60 -60
  776. package/Source/Workers/decodeDraco.js +23 -23
  777. package/Source/Workers/decodeGoogleEarthEnterprisePacket.js +3 -3
  778. package/Source/Workers/decodeI3S.js +53 -53
  779. package/Source/Workers/transcodeKTX2.js +9 -9
  780. package/Source/Workers/transferTypedArrayTest.js +1 -1
  781. package/Source/Workers/upsampleQuantizedTerrainMesh.js +37 -36
  782. package/index.d.ts +620 -136
  783. package/index.js +221 -205
  784. package/package.json +3 -3
  785. package/Build/Workers/chunk-2GEAGYUY.js +0 -1477
  786. package/Build/Workers/chunk-3WUV74WM.js +0 -1800
  787. package/Build/Workers/chunk-4MSUJ4I7.js +0 -456
  788. package/Build/Workers/chunk-5KWHSZYL.js +0 -834
  789. package/Build/Workers/chunk-5O6JWQ4E.js +0 -398
  790. package/Build/Workers/chunk-6OFDHMHR.js +0 -1258
  791. package/Build/Workers/chunk-AA4GZKOT.js +0 -75
  792. package/Build/Workers/chunk-B75IEX2S.js +0 -390
  793. package/Build/Workers/chunk-BAVI3ZS2.js +0 -39
  794. package/Build/Workers/chunk-BBDZYSZB.js +0 -287
  795. package/Build/Workers/chunk-C45MU4GZ.js +0 -220
  796. package/Build/Workers/chunk-CF7P7K7E.js +0 -684
  797. package/Build/Workers/chunk-D4K27X2M.js +0 -305
  798. package/Build/Workers/chunk-DKVHRNFY.js +0 -100
  799. package/Build/Workers/chunk-ELI4BUOT.js +0 -963
  800. package/Build/Workers/chunk-FQPSOOPH.js +0 -258
  801. package/Build/Workers/chunk-GNHZH7HP.js +0 -37
  802. package/Build/Workers/chunk-GWT64LKY.js +0 -171
  803. package/Build/Workers/chunk-HGEEOMSC.js +0 -157
  804. package/Build/Workers/chunk-IUROUBPA.js +0 -300
  805. package/Build/Workers/chunk-JNLWLSTP.js +0 -476
  806. package/Build/Workers/chunk-JYQNWIQQ.js +0 -44
  807. package/Build/Workers/chunk-KUN2ZA5X.js +0 -138
  808. package/Build/Workers/chunk-LXQ5QAEJ.js +0 -196
  809. package/Build/Workers/chunk-MBZH7YZ7.js +0 -945
  810. package/Build/Workers/chunk-MKXWJTFQ.js +0 -781
  811. package/Build/Workers/chunk-MMV6TO3P.js +0 -101
  812. package/Build/Workers/chunk-MSKXMXJI.js +0 -500
  813. package/Build/Workers/chunk-OAPA2RTG.js +0 -239
  814. package/Build/Workers/chunk-OE4MCOC7.js +0 -421
  815. package/Build/Workers/chunk-OJF4RTJG.js +0 -634
  816. package/Build/Workers/chunk-OXSI7N4C.js +0 -768
  817. package/Build/Workers/chunk-PYHLO636.js +0 -2857
  818. package/Build/Workers/chunk-QD4KM3GO.js +0 -138
  819. package/Build/Workers/chunk-QMLTCCYG.js +0 -55
  820. package/Build/Workers/chunk-QYQIVZBU.js +0 -117
  821. package/Build/Workers/chunk-R3TKLC6E.js +0 -1075
  822. package/Build/Workers/chunk-R4ZEWO4I.js +0 -122
  823. package/Build/Workers/chunk-RCK55EDX.js +0 -691
  824. package/Build/Workers/chunk-RHBWXX7C.js +0 -629
  825. package/Build/Workers/chunk-SAPFXU5X.js +0 -102
  826. package/Build/Workers/chunk-TBBFDFCS.js +0 -368
  827. package/Build/Workers/chunk-TGY6H6N6.js +0 -163
  828. package/Build/Workers/chunk-UOEUCKKU.js +0 -59
  829. package/Build/Workers/chunk-VFBNELXB.js +0 -353
  830. package/Build/Workers/chunk-VYWUFRRR.js +0 -1052
  831. package/Build/Workers/chunk-WVSELU6O.js +0 -2716
  832. package/Build/Workers/chunk-X43SJLQL.js +0 -10364
  833. package/Build/Workers/chunk-XUOJCLOH.js +0 -511
  834. package/Build/Workers/chunk-YLYBLJ3Y.js +0 -73
  835. package/Build/Workers/chunk-ZEE2EIFD.js +0 -430
  836. package/Build/Workers/chunk-ZIKGV7EL.js +0 -58
  837. package/Source/Scene/OctahedralProjectedCubeMap.js +0 -444
  838. package/Source/Shaders/Builtin/Functions/sampleOctahedralProjection.glsl +0 -78
  839. package/Source/Shaders/Builtin/Functions/sampleOctahedralProjection.js +0 -80
  840. package/Source/Shaders/OctahedralProjectionAtlasFS.glsl +0 -89
  841. package/Source/Shaders/OctahedralProjectionAtlasFS.js +0 -91
  842. package/Source/Shaders/OctahedralProjectionFS.glsl +0 -14
  843. package/Source/Shaders/OctahedralProjectionFS.js +0 -16
  844. package/Source/Shaders/OctahedralProjectionVS.glsl +0 -10
  845. package/Source/Shaders/OctahedralProjectionVS.js +0 -12
@@ -319,7 +319,7 @@ function isZipFile(blob) {
319
319
  const reader = new FileReader();
320
320
  reader.addEventListener("load", function () {
321
321
  deferred.resolve(
322
- new DataView(reader.result).getUint32(0, false) === 0x504b0304
322
+ new DataView(reader.result).getUint32(0, false) === 0x504b0304,
323
323
  );
324
324
  });
325
325
  reader.addEventListener("error", function () {
@@ -391,24 +391,24 @@ function removeDuplicateNamespaces(text) {
391
391
  }
392
392
 
393
393
  function loadXmlFromZip(entry, uriResolver) {
394
- return Promise.resolve(entry.getData(new zip.TextWriter())).then(function (
395
- text
396
- ) {
397
- text = insertNamespaces(text);
398
- text = removeDuplicateNamespaces(text);
399
- uriResolver.kml = parser.parseFromString(text, "application/xml");
400
- });
394
+ return Promise.resolve(entry.getData(new zip.TextWriter())).then(
395
+ function (text) {
396
+ text = insertNamespaces(text);
397
+ text = removeDuplicateNamespaces(text);
398
+ uriResolver.kml = parser.parseFromString(text, "application/xml");
399
+ },
400
+ );
401
401
  }
402
402
 
403
403
  function loadDataUriFromZip(entry, uriResolver) {
404
404
  const mimeType = defaultValue(
405
405
  MimeTypes.detectFromFilename(entry.filename),
406
- "application/octet-stream"
406
+ "application/octet-stream",
407
407
  );
408
408
  return Promise.resolve(entry.getData(new zip.Data64URIWriter(mimeType))).then(
409
409
  function (dataUri) {
410
410
  uriResolver[entry.filename] = dataUri;
411
- }
411
+ },
412
412
  );
413
413
  }
414
414
 
@@ -720,7 +720,7 @@ function queryColorValue(node, tagName, namespace) {
720
720
  }
721
721
  return parseColorString(
722
722
  value,
723
- queryStringValue(node, "colorMode", namespace) === "random"
723
+ queryStringValue(node, "colorMode", namespace) === "random",
724
724
  );
725
725
  }
726
726
 
@@ -743,7 +743,7 @@ function processTimeStamp(featureNode) {
743
743
  new TimeInterval({
744
744
  start: when,
745
745
  stop: Iso8601.MAXIMUM_VALUE,
746
- })
746
+ }),
747
747
  );
748
748
  return result;
749
749
  }
@@ -776,7 +776,7 @@ function processTimeSpan(featureNode) {
776
776
  new TimeInterval({
777
777
  start: beginDate,
778
778
  stop: endDate,
779
- })
779
+ }),
780
780
  );
781
781
  } else if (defined(beginDate)) {
782
782
  result = new TimeIntervalCollection();
@@ -784,7 +784,7 @@ function processTimeSpan(featureNode) {
784
784
  new TimeInterval({
785
785
  start: beginDate,
786
786
  stop: Iso8601.MAXIMUM_VALUE,
787
- })
787
+ }),
788
788
  );
789
789
  } else if (defined(endDate)) {
790
790
  result = new TimeIntervalCollection();
@@ -792,7 +792,7 @@ function processTimeSpan(featureNode) {
792
792
  new TimeInterval({
793
793
  start: Iso8601.MINIMUM_VALUE,
794
794
  stop: endDate,
795
- })
795
+ }),
796
796
  );
797
797
  }
798
798
 
@@ -807,13 +807,13 @@ function createDefaultBillboard() {
807
807
  BILLBOARD_NEAR_DISTANCE,
808
808
  BILLBOARD_NEAR_RATIO,
809
809
  BILLBOARD_FAR_DISTANCE,
810
- BILLBOARD_FAR_RATIO
810
+ BILLBOARD_FAR_RATIO,
811
811
  );
812
812
  billboard.pixelOffsetScaleByDistance = new NearFarScalar(
813
813
  BILLBOARD_NEAR_DISTANCE,
814
814
  BILLBOARD_NEAR_RATIO,
815
815
  BILLBOARD_FAR_DISTANCE,
816
- BILLBOARD_FAR_RATIO
816
+ BILLBOARD_FAR_RATIO,
817
817
  );
818
818
  return billboard;
819
819
  }
@@ -840,7 +840,7 @@ function getIconHref(
840
840
  dataSource,
841
841
  sourceResource,
842
842
  uriResolver,
843
- canRefresh
843
+ canRefresh,
844
844
  ) {
845
845
  let href = queryStringValue(iconNode, "href", namespaces.kml);
846
846
  if (!defined(href) || href.length === 0) {
@@ -866,28 +866,28 @@ function getIconHref(
866
866
  const refreshMode = queryStringValue(
867
867
  iconNode,
868
868
  "refreshMode",
869
- namespaces.kml
869
+ namespaces.kml,
870
870
  );
871
871
  const viewRefreshMode = queryStringValue(
872
872
  iconNode,
873
873
  "viewRefreshMode",
874
- namespaces.kml
874
+ namespaces.kml,
875
875
  );
876
876
  if (refreshMode === "onInterval" || refreshMode === "onExpire") {
877
877
  oneTimeWarning(
878
878
  `kml-refreshMode-${refreshMode}`,
879
- `KML - Unsupported Icon refreshMode: ${refreshMode}`
879
+ `KML - Unsupported Icon refreshMode: ${refreshMode}`,
880
880
  );
881
881
  } else if (viewRefreshMode === "onStop" || viewRefreshMode === "onRegion") {
882
882
  oneTimeWarning(
883
883
  `kml-refreshMode-${viewRefreshMode}`,
884
- `KML - Unsupported Icon viewRefreshMode: ${viewRefreshMode}`
884
+ `KML - Unsupported Icon viewRefreshMode: ${viewRefreshMode}`,
885
885
  );
886
886
  }
887
887
 
888
888
  const viewBoundScale = defaultValue(
889
889
  queryStringValue(iconNode, "viewBoundScale", namespaces.kml),
890
- 1.0
890
+ 1.0,
891
891
  );
892
892
  const defaultViewFormat =
893
893
  viewRefreshMode === "onStop"
@@ -895,7 +895,7 @@ function getIconHref(
895
895
  : "";
896
896
  const viewFormat = defaultValue(
897
897
  queryStringValue(iconNode, "viewFormat", namespaces.kml),
898
- defaultViewFormat
898
+ defaultViewFormat,
899
899
  );
900
900
  const httpQuery = queryStringValue(iconNode, "httpQuery", namespaces.kml);
901
901
  if (defined(viewFormat)) {
@@ -912,7 +912,7 @@ function getIconHref(
912
912
  dataSource.canvas,
913
913
  viewBoundScale,
914
914
  dataSource._lastCameraView.bbox,
915
- ellipsoid
915
+ ellipsoid,
916
916
  );
917
917
 
918
918
  return hrefResource;
@@ -926,7 +926,7 @@ function processBillboardIcon(
926
926
  node,
927
927
  targetEntity,
928
928
  sourceResource,
929
- uriResolver
929
+ uriResolver,
930
930
  ) {
931
931
  let scale = queryNumericValue(node, "scale", namespaces.kml);
932
932
  const heading = queryNumericValue(node, "heading", namespaces.kml);
@@ -938,7 +938,7 @@ function processBillboardIcon(
938
938
  dataSource,
939
939
  sourceResource,
940
940
  uriResolver,
941
- false
941
+ false,
942
942
  );
943
943
 
944
944
  // If icon tags are present but blank, we do not want to show an icon
@@ -1019,7 +1019,7 @@ function applyStyle(
1019
1019
  styleNode,
1020
1020
  targetEntity,
1021
1021
  sourceResource,
1022
- uriResolver
1022
+ uriResolver,
1023
1023
  ) {
1024
1024
  for (let i = 0, len = styleNode.childNodes.length; i < len; i++) {
1025
1025
  const node = styleNode.childNodes.item(i);
@@ -1029,7 +1029,7 @@ function applyStyle(
1029
1029
  node,
1030
1030
  targetEntity,
1031
1031
  sourceResource,
1032
- uriResolver
1032
+ uriResolver,
1033
1033
  );
1034
1034
  } else if (node.localName === "LabelStyle") {
1035
1035
  let label = targetEntity.label;
@@ -1039,11 +1039,11 @@ function applyStyle(
1039
1039
  }
1040
1040
  label.scale = defaultValue(
1041
1041
  queryNumericValue(node, "scale", namespaces.kml),
1042
- label.scale
1042
+ label.scale,
1043
1043
  );
1044
1044
  label.fillColor = defaultValue(
1045
1045
  queryColorValue(node, "color", namespaces.kml),
1046
- label.fillColor
1046
+ label.fillColor,
1047
1047
  );
1048
1048
  label.text = targetEntity.name;
1049
1049
  } else if (node.localName === "LineStyle") {
@@ -1057,25 +1057,25 @@ function applyStyle(
1057
1057
  if (defined(queryColorValue(node, "outerColor", namespaces.gx))) {
1058
1058
  oneTimeWarning(
1059
1059
  "kml-gx:outerColor",
1060
- "KML - gx:outerColor is not supported in a LineStyle"
1060
+ "KML - gx:outerColor is not supported in a LineStyle",
1061
1061
  );
1062
1062
  }
1063
1063
  if (defined(queryNumericValue(node, "outerWidth", namespaces.gx))) {
1064
1064
  oneTimeWarning(
1065
1065
  "kml-gx:outerWidth",
1066
- "KML - gx:outerWidth is not supported in a LineStyle"
1066
+ "KML - gx:outerWidth is not supported in a LineStyle",
1067
1067
  );
1068
1068
  }
1069
1069
  if (defined(queryNumericValue(node, "physicalWidth", namespaces.gx))) {
1070
1070
  oneTimeWarning(
1071
1071
  "kml-gx:physicalWidth",
1072
- "KML - gx:physicalWidth is not supported in a LineStyle"
1072
+ "KML - gx:physicalWidth is not supported in a LineStyle",
1073
1073
  );
1074
1074
  }
1075
1075
  if (defined(queryBooleanValue(node, "labelVisibility", namespaces.gx))) {
1076
1076
  oneTimeWarning(
1077
1077
  "kml-gx:labelVisibility",
1078
- "KML - gx:labelVisibility is not supported in a LineStyle"
1078
+ "KML - gx:labelVisibility is not supported in a LineStyle",
1079
1079
  );
1080
1080
  }
1081
1081
  } else if (node.localName === "PolyStyle") {
@@ -1086,24 +1086,24 @@ function applyStyle(
1086
1086
  }
1087
1087
  polygon.material = defaultValue(
1088
1088
  queryColorValue(node, "color", namespaces.kml),
1089
- polygon.material
1089
+ polygon.material,
1090
1090
  );
1091
1091
  polygon.fill = defaultValue(
1092
1092
  queryBooleanValue(node, "fill", namespaces.kml),
1093
- polygon.fill
1093
+ polygon.fill,
1094
1094
  );
1095
1095
  polygon.outline = defaultValue(
1096
1096
  queryBooleanValue(node, "outline", namespaces.kml),
1097
- polygon.outline
1097
+ polygon.outline,
1098
1098
  );
1099
1099
  } else if (node.localName === "BalloonStyle") {
1100
1100
  const bgColor = defaultValue(
1101
1101
  parseColorString(queryStringValue(node, "bgColor", namespaces.kml)),
1102
- Color.WHITE
1102
+ Color.WHITE,
1103
1103
  );
1104
1104
  const textColor = defaultValue(
1105
1105
  parseColorString(queryStringValue(node, "textColor", namespaces.kml)),
1106
- Color.BLACK
1106
+ Color.BLACK,
1107
1107
  );
1108
1108
  const text = queryStringValue(node, "text", namespaces.kml);
1109
1109
 
@@ -1119,12 +1119,12 @@ function applyStyle(
1119
1119
  const listItemType = queryStringValue(
1120
1120
  node,
1121
1121
  "listItemType",
1122
- namespaces.kml
1122
+ namespaces.kml,
1123
1123
  );
1124
1124
  if (listItemType === "radioFolder" || listItemType === "checkOffOnly") {
1125
1125
  oneTimeWarning(
1126
1126
  `kml-listStyle-${listItemType}`,
1127
- `KML - Unsupported ListStyle with listItemType: ${listItemType}`
1127
+ `KML - Unsupported ListStyle with listItemType: ${listItemType}`,
1128
1128
  );
1129
1129
  }
1130
1130
  }
@@ -1137,7 +1137,7 @@ function computeFinalStyle(
1137
1137
  placeMark,
1138
1138
  styleCollection,
1139
1139
  sourceResource,
1140
- uriResolver
1140
+ uriResolver,
1141
1141
  ) {
1142
1142
  const result = new Entity();
1143
1143
  let styleEntity;
@@ -1161,7 +1161,7 @@ function computeFinalStyle(
1161
1161
  inlineStyleNode,
1162
1162
  result,
1163
1163
  sourceResource,
1164
- uriResolver
1164
+ uriResolver,
1165
1165
  );
1166
1166
  } else {
1167
1167
  // StyleMap
@@ -1186,7 +1186,7 @@ function computeFinalStyle(
1186
1186
  } else {
1187
1187
  oneTimeWarning(
1188
1188
  `kml-styleMap-${key}`,
1189
- `KML - Unsupported StyleMap key: ${key}`
1189
+ `KML - Unsupported StyleMap key: ${key}`,
1190
1190
  );
1191
1191
  }
1192
1192
  }
@@ -1236,7 +1236,7 @@ function processStyles(
1236
1236
  styleCollection,
1237
1237
  sourceResource,
1238
1238
  isExternal,
1239
- uriResolver
1239
+ uriResolver,
1240
1240
  ) {
1241
1241
  let i;
1242
1242
  let id;
@@ -1264,7 +1264,7 @@ function processStyles(
1264
1264
  node,
1265
1265
  styleEntity,
1266
1266
  sourceResource,
1267
- uriResolver
1267
+ uriResolver,
1268
1268
  );
1269
1269
  }
1270
1270
  }
@@ -1311,14 +1311,14 @@ function processStyles(
1311
1311
  node,
1312
1312
  styleEntity,
1313
1313
  sourceResource,
1314
- uriResolver
1314
+ uriResolver,
1315
1315
  );
1316
1316
  }
1317
1317
  }
1318
1318
  } else {
1319
1319
  oneTimeWarning(
1320
1320
  `kml-styleMap-${key}`,
1321
- `KML - Unsupported StyleMap key: ${key}`
1321
+ `KML - Unsupported StyleMap key: ${key}`,
1322
1322
  );
1323
1323
  }
1324
1324
  }
@@ -1344,7 +1344,7 @@ function processStyles(
1344
1344
  });
1345
1345
 
1346
1346
  promises.push(
1347
- processExternalStyles(dataSource, resource, styleCollection)
1347
+ processExternalStyles(dataSource, resource, styleCollection),
1348
1348
  );
1349
1349
  }
1350
1350
  }
@@ -1386,7 +1386,7 @@ function heightReferenceFromAltitudeMode(altitudeMode, gxAltitudeMode) {
1386
1386
  if (gxAltitudeMode === "clampToSeaFloor") {
1387
1387
  oneTimeWarning(
1388
1388
  "kml-gx:altitudeMode-clampToSeaFloor",
1389
- "KML - <gx:altitudeMode>:clampToSeaFloor is currently not supported, using <kml:altitudeMode>:clampToGround."
1389
+ "KML - <gx:altitudeMode>:clampToSeaFloor is currently not supported, using <kml:altitudeMode>:clampToGround.",
1390
1390
  );
1391
1391
  return HeightReference.CLAMP_TO_GROUND;
1392
1392
  }
@@ -1394,7 +1394,7 @@ function heightReferenceFromAltitudeMode(altitudeMode, gxAltitudeMode) {
1394
1394
  if (gxAltitudeMode === "relativeToSeaFloor") {
1395
1395
  oneTimeWarning(
1396
1396
  "kml-gx:altitudeMode-relativeToSeaFloor",
1397
- "KML - <gx:altitudeMode>:relativeToSeaFloor is currently not supported, using <kml:altitudeMode>:relativeToGround."
1397
+ "KML - <gx:altitudeMode>:relativeToSeaFloor is currently not supported, using <kml:altitudeMode>:relativeToGround.",
1398
1398
  );
1399
1399
  return HeightReference.RELATIVE_TO_GROUND;
1400
1400
  }
@@ -1402,12 +1402,12 @@ function heightReferenceFromAltitudeMode(altitudeMode, gxAltitudeMode) {
1402
1402
  if (defined(altitudeMode)) {
1403
1403
  oneTimeWarning(
1404
1404
  "kml-altitudeMode-unknown",
1405
- `KML - Unknown <kml:altitudeMode>:${altitudeMode}, using <kml:altitudeMode>:CLAMP_TO_GROUND.`
1405
+ `KML - Unknown <kml:altitudeMode>:${altitudeMode}, using <kml:altitudeMode>:CLAMP_TO_GROUND.`,
1406
1406
  );
1407
1407
  } else {
1408
1408
  oneTimeWarning(
1409
1409
  "kml-gx:altitudeMode-unknown",
1410
- `KML - Unknown <gx:altitudeMode>:${gxAltitudeMode}, using <kml:altitudeMode>:CLAMP_TO_GROUND.`
1410
+ `KML - Unknown <gx:altitudeMode>:${gxAltitudeMode}, using <kml:altitudeMode>:CLAMP_TO_GROUND.`,
1411
1411
  );
1412
1412
  }
1413
1413
 
@@ -1418,7 +1418,7 @@ function heightReferenceFromAltitudeMode(altitudeMode, gxAltitudeMode) {
1418
1418
  function createPositionPropertyFromAltitudeMode(
1419
1419
  property,
1420
1420
  altitudeMode,
1421
- gxAltitudeMode
1421
+ gxAltitudeMode,
1422
1422
  ) {
1423
1423
  if (
1424
1424
  gxAltitudeMode === "relativeToSeaFloor" ||
@@ -1437,8 +1437,8 @@ function createPositionPropertyFromAltitudeMode(
1437
1437
  "kml-altitudeMode-unknown",
1438
1438
  `KML - Unknown altitudeMode: ${defaultValue(
1439
1439
  altitudeMode,
1440
- gxAltitudeMode
1441
- )}`
1440
+ gxAltitudeMode,
1441
+ )}`,
1442
1442
  );
1443
1443
  }
1444
1444
 
@@ -1450,7 +1450,7 @@ function createPositionPropertyArrayFromAltitudeMode(
1450
1450
  properties,
1451
1451
  altitudeMode,
1452
1452
  gxAltitudeMode,
1453
- ellipsoid
1453
+ ellipsoid,
1454
1454
  ) {
1455
1455
  if (!defined(properties)) {
1456
1456
  return undefined;
@@ -1473,8 +1473,8 @@ function createPositionPropertyArrayFromAltitudeMode(
1473
1473
  "kml-altitudeMode-unknown",
1474
1474
  `KML - Unknown altitudeMode: ${defaultValue(
1475
1475
  altitudeMode,
1476
- gxAltitudeMode
1477
- )}`
1476
+ gxAltitudeMode,
1477
+ )}`,
1478
1478
  );
1479
1479
  }
1480
1480
 
@@ -1491,7 +1491,7 @@ function processPositionGraphics(
1491
1491
  dataSource,
1492
1492
  entity,
1493
1493
  styleEntity,
1494
- heightReference
1494
+ heightReference,
1495
1495
  ) {
1496
1496
  let label = entity.label;
1497
1497
  if (!defined(label)) {
@@ -1558,22 +1558,22 @@ function processPoint(
1558
1558
  entityCollection,
1559
1559
  geometryNode,
1560
1560
  entity,
1561
- styleEntity
1561
+ styleEntity,
1562
1562
  ) {
1563
1563
  const coordinatesString = queryStringValue(
1564
1564
  geometryNode,
1565
1565
  "coordinates",
1566
- namespaces.kml
1566
+ namespaces.kml,
1567
1567
  );
1568
1568
  const altitudeMode = queryStringValue(
1569
1569
  geometryNode,
1570
1570
  "altitudeMode",
1571
- namespaces.kml
1571
+ namespaces.kml,
1572
1572
  );
1573
1573
  const gxAltitudeMode = queryStringValue(
1574
1574
  geometryNode,
1575
1575
  "altitudeMode",
1576
- namespaces.gx
1576
+ namespaces.gx,
1577
1577
  );
1578
1578
  const extrude = queryBooleanValue(geometryNode, "extrude", namespaces.kml);
1579
1579
  const ellipsoid = dataSource._ellipsoid;
@@ -1584,7 +1584,7 @@ function processPoint(
1584
1584
  dataSource,
1585
1585
  entity,
1586
1586
  styleEntity,
1587
- heightReferenceFromAltitudeMode(altitudeMode, gxAltitudeMode)
1587
+ heightReferenceFromAltitudeMode(altitudeMode, gxAltitudeMode),
1588
1588
  );
1589
1589
 
1590
1590
  if (extrude && isExtrudable(altitudeMode, gxAltitudeMode)) {
@@ -1599,28 +1599,28 @@ function processLineStringOrLinearRing(
1599
1599
  entityCollection,
1600
1600
  geometryNode,
1601
1601
  entity,
1602
- styleEntity
1602
+ styleEntity,
1603
1603
  ) {
1604
1604
  const coordinatesNode = queryFirstNode(
1605
1605
  geometryNode,
1606
1606
  "coordinates",
1607
- namespaces.kml
1607
+ namespaces.kml,
1608
1608
  );
1609
1609
  const altitudeMode = queryStringValue(
1610
1610
  geometryNode,
1611
1611
  "altitudeMode",
1612
- namespaces.kml
1612
+ namespaces.kml,
1613
1613
  );
1614
1614
  const gxAltitudeMode = queryStringValue(
1615
1615
  geometryNode,
1616
1616
  "altitudeMode",
1617
- namespaces.gx
1617
+ namespaces.gx,
1618
1618
  );
1619
1619
  const extrude = queryBooleanValue(geometryNode, "extrude", namespaces.kml);
1620
1620
  const tessellate = queryBooleanValue(
1621
1621
  geometryNode,
1622
1622
  "tessellate",
1623
- namespaces.kml
1623
+ namespaces.kml,
1624
1624
  );
1625
1625
  const canExtrude = isExtrudable(altitudeMode, gxAltitudeMode);
1626
1626
  const zIndex = queryNumericValue(geometryNode, "drawOrder", namespaces.gx);
@@ -1670,13 +1670,13 @@ function processLineStringOrLinearRing(
1670
1670
  if (defined(zIndex)) {
1671
1671
  oneTimeWarning(
1672
1672
  "kml-gx:drawOrder",
1673
- "KML - gx:drawOrder is not supported in LineStrings when clampToGround is false"
1673
+ "KML - gx:drawOrder is not supported in LineStrings when clampToGround is false",
1674
1674
  );
1675
1675
  }
1676
1676
  if (dataSource._clampToGround && !tessellate) {
1677
1677
  oneTimeWarning(
1678
1678
  "kml-line-tesselate",
1679
- "Ignoring clampToGround for KML lines without the tessellate flag."
1679
+ "Ignoring clampToGround for KML lines without the tessellate flag.",
1680
1680
  );
1681
1681
  }
1682
1682
 
@@ -1686,7 +1686,7 @@ function processLineStringOrLinearRing(
1686
1686
  coordinates,
1687
1687
  altitudeMode,
1688
1688
  gxAltitudeMode,
1689
- ellipsoid
1689
+ ellipsoid,
1690
1690
  );
1691
1691
  if (!tessellate || canExtrude) {
1692
1692
  polyline.arcType = ArcType.NONE;
@@ -1701,22 +1701,22 @@ function processPolygon(
1701
1701
  entityCollection,
1702
1702
  geometryNode,
1703
1703
  entity,
1704
- styleEntity
1704
+ styleEntity,
1705
1705
  ) {
1706
1706
  const outerBoundaryIsNode = queryFirstNode(
1707
1707
  geometryNode,
1708
1708
  "outerBoundaryIs",
1709
- namespaces.kml
1709
+ namespaces.kml,
1710
1710
  );
1711
1711
  let linearRingNode = queryFirstNode(
1712
1712
  outerBoundaryIsNode,
1713
1713
  "LinearRing",
1714
- namespaces.kml
1714
+ namespaces.kml,
1715
1715
  );
1716
1716
  let coordinatesNode = queryFirstNode(
1717
1717
  linearRingNode,
1718
1718
  "coordinates",
1719
- namespaces.kml
1719
+ namespaces.kml,
1720
1720
  );
1721
1721
  const ellipsoid = dataSource._ellipsoid;
1722
1722
  let coordinates = readCoordinates(coordinatesNode, ellipsoid);
@@ -1724,12 +1724,12 @@ function processPolygon(
1724
1724
  const altitudeMode = queryStringValue(
1725
1725
  geometryNode,
1726
1726
  "altitudeMode",
1727
- namespaces.kml
1727
+ namespaces.kml,
1728
1728
  );
1729
1729
  const gxAltitudeMode = queryStringValue(
1730
1730
  geometryNode,
1731
1731
  "altitudeMode",
1732
- namespaces.gx
1732
+ namespaces.gx,
1733
1733
  );
1734
1734
  const canExtrude = isExtrudable(altitudeMode, gxAltitudeMode);
1735
1735
 
@@ -1758,19 +1758,19 @@ function processPolygon(
1758
1758
  const innerBoundaryIsNodes = queryChildNodes(
1759
1759
  geometryNode,
1760
1760
  "innerBoundaryIs",
1761
- namespaces.kml
1761
+ namespaces.kml,
1762
1762
  );
1763
1763
  for (let j = 0; j < innerBoundaryIsNodes.length; j++) {
1764
1764
  linearRingNode = queryChildNodes(
1765
1765
  innerBoundaryIsNodes[j],
1766
1766
  "LinearRing",
1767
- namespaces.kml
1767
+ namespaces.kml,
1768
1768
  );
1769
1769
  for (let k = 0; k < linearRingNode.length; k++) {
1770
1770
  coordinatesNode = queryFirstNode(
1771
1771
  linearRingNode[k],
1772
1772
  "coordinates",
1773
- namespaces.kml
1773
+ namespaces.kml,
1774
1774
  );
1775
1775
  coordinates = readCoordinates(coordinatesNode, ellipsoid);
1776
1776
  if (defined(coordinates)) {
@@ -1789,17 +1789,17 @@ function processTrack(
1789
1789
  entityCollection,
1790
1790
  geometryNode,
1791
1791
  entity,
1792
- styleEntity
1792
+ styleEntity,
1793
1793
  ) {
1794
1794
  const altitudeMode = queryStringValue(
1795
1795
  geometryNode,
1796
1796
  "altitudeMode",
1797
- namespaces.kml
1797
+ namespaces.kml,
1798
1798
  );
1799
1799
  const gxAltitudeMode = queryStringValue(
1800
1800
  geometryNode,
1801
1801
  "altitudeMode",
1802
- namespaces.gx
1802
+ namespaces.gx,
1803
1803
  );
1804
1804
  const coordNodes = queryChildNodes(geometryNode, "coord", namespaces.gx);
1805
1805
  const angleNodes = queryChildNodes(geometryNode, "angles", namespaces.gx);
@@ -1811,7 +1811,7 @@ function processTrack(
1811
1811
  if (angleNodes.length > 0) {
1812
1812
  oneTimeWarning(
1813
1813
  "kml-gx:angles",
1814
- "KML - gx:angles are not supported in gx:Tracks"
1814
+ "KML - gx:angles are not supported in gx:Tracks",
1815
1815
  );
1816
1816
  }
1817
1817
 
@@ -1830,7 +1830,7 @@ function processTrack(
1830
1830
  dataSource,
1831
1831
  entity,
1832
1832
  styleEntity,
1833
- heightReferenceFromAltitudeMode(altitudeMode, gxAltitudeMode)
1833
+ heightReferenceFromAltitudeMode(altitudeMode, gxAltitudeMode),
1834
1834
  );
1835
1835
  processPathGraphics(entity, styleEntity);
1836
1836
 
@@ -1841,7 +1841,7 @@ function processTrack(
1841
1841
  new TimeInterval({
1842
1842
  start: times[0],
1843
1843
  stop: times[times.length - 1],
1844
- })
1844
+ }),
1845
1845
  );
1846
1846
  }
1847
1847
 
@@ -1861,7 +1861,7 @@ function addToMultiTrack(
1861
1861
  extrude,
1862
1862
  altitudeMode,
1863
1863
  gxAltitudeMode,
1864
- includeEndPoints
1864
+ includeEndPoints,
1865
1865
  ) {
1866
1866
  const start = times[0];
1867
1867
  const stop = times[times.length - 1];
@@ -1878,9 +1878,9 @@ function addToMultiTrack(
1878
1878
  data: createPositionPropertyFromAltitudeMode(
1879
1879
  data,
1880
1880
  altitudeMode,
1881
- gxAltitudeMode
1881
+ gxAltitudeMode,
1882
1882
  ),
1883
- })
1883
+ }),
1884
1884
  );
1885
1885
  availability.addInterval(
1886
1886
  new TimeInterval({
@@ -1888,7 +1888,7 @@ function addToMultiTrack(
1888
1888
  stop: stop,
1889
1889
  isStartIncluded: includeEndPoints,
1890
1890
  isStopIncluded: includeEndPoints,
1891
- })
1891
+ }),
1892
1892
  );
1893
1893
  dropShowProperty.intervals.addInterval(
1894
1894
  new TimeInterval({
@@ -1897,7 +1897,7 @@ function addToMultiTrack(
1897
1897
  isStartIncluded: includeEndPoints,
1898
1898
  isStopIncluded: includeEndPoints,
1899
1899
  data: extrude,
1900
- })
1900
+ }),
1901
1901
  );
1902
1902
  }
1903
1903
 
@@ -1906,7 +1906,7 @@ function processMultiTrack(
1906
1906
  entityCollection,
1907
1907
  geometryNode,
1908
1908
  entity,
1909
- styleEntity
1909
+ styleEntity,
1910
1910
  ) {
1911
1911
  // Multitrack options do not work in GE as detailed in the spec,
1912
1912
  // rather than altitudeMode being at the MultiTrack level,
@@ -1915,7 +1915,7 @@ function processMultiTrack(
1915
1915
  const interpolate = queryBooleanValue(
1916
1916
  geometryNode,
1917
1917
  "interpolate",
1918
- namespaces.gx
1918
+ namespaces.gx,
1919
1919
  );
1920
1920
  const trackNodes = queryChildNodes(geometryNode, "Track", namespaces.gx);
1921
1921
 
@@ -1934,12 +1934,12 @@ function processMultiTrack(
1934
1934
  const altitudeMode = queryStringValue(
1935
1935
  trackNode,
1936
1936
  "altitudeMode",
1937
- namespaces.kml
1937
+ namespaces.kml,
1938
1938
  );
1939
1939
  const gxAltitudeMode = queryStringValue(
1940
1940
  trackNode,
1941
1941
  "altitudeMode",
1942
- namespaces.gx
1942
+ namespaces.gx,
1943
1943
  );
1944
1944
  const canExtrude = isExtrudable(altitudeMode, gxAltitudeMode);
1945
1945
  const extrude = queryBooleanValue(trackNode, "extrude", namespaces.kml);
@@ -1969,7 +1969,7 @@ function processMultiTrack(
1969
1969
  false,
1970
1970
  "absolute",
1971
1971
  undefined,
1972
- false
1972
+ false,
1973
1973
  );
1974
1974
  }
1975
1975
  lastStop = times[length - 1];
@@ -1985,7 +1985,7 @@ function processMultiTrack(
1985
1985
  canExtrude && extrude,
1986
1986
  altitudeMode,
1987
1987
  gxAltitudeMode,
1988
- true
1988
+ true,
1989
1989
  );
1990
1990
  needDropLine = needDropLine || (canExtrude && extrude);
1991
1991
  }
@@ -2019,7 +2019,7 @@ function processMultiGeometry(
2019
2019
  geometryNode,
2020
2020
  entity,
2021
2021
  styleEntity,
2022
- context
2022
+ context,
2023
2023
  ) {
2024
2024
  const childNodes = geometryNode.childNodes;
2025
2025
  let hasGeometry = false;
@@ -2039,7 +2039,7 @@ function processMultiGeometry(
2039
2039
  entityCollection,
2040
2040
  childNode,
2041
2041
  childEntity,
2042
- styleEntity
2042
+ styleEntity,
2043
2043
  )
2044
2044
  ) {
2045
2045
  hasGeometry = true;
@@ -2055,11 +2055,11 @@ function processUnsupportedGeometry(
2055
2055
  entityCollection,
2056
2056
  geometryNode,
2057
2057
  entity,
2058
- styleEntity
2058
+ styleEntity,
2059
2059
  ) {
2060
2060
  oneTimeWarning(
2061
2061
  "kml-unsupportedGeometry",
2062
- `KML - Unsupported geometry: ${geometryNode.localName}`
2062
+ `KML - Unsupported geometry: ${geometryNode.localName}`,
2063
2063
  );
2064
2064
  return false;
2065
2065
  }
@@ -2077,7 +2077,7 @@ function processExtendedData(node, entity) {
2077
2077
  if (defined(queryStringAttribute(extendedDataNode, "xmlns:prefix"))) {
2078
2078
  oneTimeWarning(
2079
2079
  "kml-extendedData",
2080
- "KML - ExtendedData with xmlns:prefix is unsupported"
2080
+ "KML - ExtendedData with xmlns:prefix is unsupported",
2081
2081
  );
2082
2082
  }
2083
2083
 
@@ -2093,7 +2093,7 @@ function processExtendedData(node, entity) {
2093
2093
  displayName: queryStringValue(
2094
2094
  dataNode,
2095
2095
  "displayName",
2096
- namespaces.kml
2096
+ namespaces.kml,
2097
2097
  ),
2098
2098
  value: queryStringValue(dataNode, "value", namespaces.kml),
2099
2099
  };
@@ -2113,7 +2113,7 @@ function processDescription(
2113
2113
  entity,
2114
2114
  styleEntity,
2115
2115
  uriResolver,
2116
- sourceResource
2116
+ sourceResource,
2117
2117
  ) {
2118
2118
  let i;
2119
2119
  let key;
@@ -2125,7 +2125,7 @@ function processDescription(
2125
2125
 
2126
2126
  const balloonStyle = defaultValue(
2127
2127
  entity.balloonStyle,
2128
- styleEntity.balloonStyle
2128
+ styleEntity.balloonStyle,
2129
2129
  );
2130
2130
 
2131
2131
  let background = Color.WHITE;
@@ -2181,7 +2181,7 @@ function processDescription(
2181
2181
  value = extendedData[key];
2182
2182
  text += `<tr><th>${defaultValue(
2183
2183
  value.displayName,
2184
- key
2184
+ key,
2185
2185
  )}</th><td>${defaultValue(value.value, "")}</td></tr>`;
2186
2186
  }
2187
2187
  text += "</tbody></table>";
@@ -2258,7 +2258,7 @@ function processFeature(dataSource, featureNode, processingData) {
2258
2258
  const entity = createEntity(
2259
2259
  featureNode,
2260
2260
  entityCollection,
2261
- processingData.context
2261
+ processingData.context,
2262
2262
  );
2263
2263
  const kmlData = entity.kml;
2264
2264
  const styleEntity = computeFinalStyle(
@@ -2266,7 +2266,7 @@ function processFeature(dataSource, featureNode, processingData) {
2266
2266
  featureNode,
2267
2267
  processingData.styleCollection,
2268
2268
  sourceResource,
2269
- uriResolver
2269
+ uriResolver,
2270
2270
  );
2271
2271
 
2272
2272
  const name = queryStringValue(featureNode, "name", namespaces.kml);
@@ -2292,7 +2292,7 @@ function processFeature(dataSource, featureNode, processingData) {
2292
2292
  const visibility = queryBooleanValue(
2293
2293
  featureNode,
2294
2294
  "visibility",
2295
- namespaces.kml
2295
+ namespaces.kml,
2296
2296
  );
2297
2297
  entity.show = ancestryIsVisible(parent) && defaultValue(visibility, true);
2298
2298
  //const open = queryBooleanValue(featureNode, 'open', namespaces.kml);
@@ -2316,7 +2316,7 @@ function processFeature(dataSource, featureNode, processingData) {
2316
2316
  kmlData.phoneNumber = queryStringValue(
2317
2317
  featureNode,
2318
2318
  "phoneNumber",
2319
- namespaces.kml
2319
+ namespaces.kml,
2320
2320
  );
2321
2321
  kmlData.snippet = queryStringValue(featureNode, "Snippet", namespaces.kml);
2322
2322
 
@@ -2326,7 +2326,7 @@ function processFeature(dataSource, featureNode, processingData) {
2326
2326
  entity,
2327
2327
  styleEntity,
2328
2328
  uriResolver,
2329
- sourceResource
2329
+ sourceResource,
2330
2330
  );
2331
2331
 
2332
2332
  const ellipsoid = dataSource._ellipsoid;
@@ -2359,7 +2359,7 @@ function processPlacemark(
2359
2359
  dataSource,
2360
2360
  placemark,
2361
2361
  processingData,
2362
- deferredLoading
2362
+ deferredLoading,
2363
2363
  ) {
2364
2364
  const r = processFeature(dataSource, placemark, processingData);
2365
2365
  const entity = r.entity;
@@ -2379,7 +2379,7 @@ function processPlacemark(
2379
2379
  childNode,
2380
2380
  entity,
2381
2381
  styleEntity,
2382
- entity.id
2382
+ entity.id,
2383
2383
  );
2384
2384
  hasGeometry = true;
2385
2385
  }
@@ -2417,7 +2417,7 @@ function processTour(dataSource, node, processingData, deferredLoading) {
2417
2417
  playlistNodeProcessor(tour, entryNode, ellipsoid);
2418
2418
  } else {
2419
2419
  console.log(
2420
- `Unknown KML Tour playlist entry type ${entryNode.localName}`
2420
+ `Unknown KML Tour playlist entry type ${entryNode.localName}`,
2421
2421
  );
2422
2422
  }
2423
2423
  }
@@ -2456,28 +2456,28 @@ function processCamera(featureNode, entity, ellipsoid) {
2456
2456
  if (defined(camera)) {
2457
2457
  const lon = defaultValue(
2458
2458
  queryNumericValue(camera, "longitude", namespaces.kml),
2459
- 0.0
2459
+ 0.0,
2460
2460
  );
2461
2461
  const lat = defaultValue(
2462
2462
  queryNumericValue(camera, "latitude", namespaces.kml),
2463
- 0.0
2463
+ 0.0,
2464
2464
  );
2465
2465
  const altitude = defaultValue(
2466
2466
  queryNumericValue(camera, "altitude", namespaces.kml),
2467
- 0.0
2467
+ 0.0,
2468
2468
  );
2469
2469
 
2470
2470
  const heading = defaultValue(
2471
2471
  queryNumericValue(camera, "heading", namespaces.kml),
2472
- 0.0
2472
+ 0.0,
2473
2473
  );
2474
2474
  const tilt = defaultValue(
2475
2475
  queryNumericValue(camera, "tilt", namespaces.kml),
2476
- 0.0
2476
+ 0.0,
2477
2477
  );
2478
2478
  const roll = defaultValue(
2479
2479
  queryNumericValue(camera, "roll", namespaces.kml),
2480
- 0.0
2480
+ 0.0,
2481
2481
  );
2482
2482
 
2483
2483
  const position = Cartesian3.fromDegrees(lon, lat, altitude, ellipsoid);
@@ -2492,21 +2492,21 @@ function processLookAt(featureNode, entity, ellipsoid) {
2492
2492
  if (defined(lookAt)) {
2493
2493
  const lon = defaultValue(
2494
2494
  queryNumericValue(lookAt, "longitude", namespaces.kml),
2495
- 0.0
2495
+ 0.0,
2496
2496
  );
2497
2497
  const lat = defaultValue(
2498
2498
  queryNumericValue(lookAt, "latitude", namespaces.kml),
2499
- 0.0
2499
+ 0.0,
2500
2500
  );
2501
2501
  const altitude = defaultValue(
2502
2502
  queryNumericValue(lookAt, "altitude", namespaces.kml),
2503
- 0.0
2503
+ 0.0,
2504
2504
  );
2505
2505
  let heading = queryNumericValue(lookAt, "heading", namespaces.kml);
2506
2506
  let tilt = queryNumericValue(lookAt, "tilt", namespaces.kml);
2507
2507
  const range = defaultValue(
2508
2508
  queryNumericValue(lookAt, "range", namespaces.kml),
2509
- 0.0
2509
+ 0.0,
2510
2510
  );
2511
2511
 
2512
2512
  tilt = CesiumMath.toRadians(defaultValue(tilt, 0.0));
@@ -2515,7 +2515,7 @@ function processLookAt(featureNode, entity, ellipsoid) {
2515
2515
  const hpr = new HeadingPitchRange(
2516
2516
  heading,
2517
2517
  tilt - CesiumMath.PI_OVER_TWO,
2518
- range
2518
+ range,
2519
2519
  );
2520
2520
  const viewPoint = Cartesian3.fromDegrees(lon, lat, altitude, ellipsoid);
2521
2521
 
@@ -2527,7 +2527,7 @@ function processScreenOverlay(
2527
2527
  dataSource,
2528
2528
  screenOverlayNode,
2529
2529
  processingData,
2530
- deferredLoading
2530
+ deferredLoading,
2531
2531
  ) {
2532
2532
  const screenOverlay = processingData.screenOverlayContainer;
2533
2533
  if (!defined(screenOverlay)) {
@@ -2543,7 +2543,7 @@ function processScreenOverlay(
2543
2543
  dataSource,
2544
2544
  sourceResource,
2545
2545
  uriResolver,
2546
- false
2546
+ false,
2547
2547
  );
2548
2548
 
2549
2549
  if (!defined(icon)) {
@@ -2560,12 +2560,12 @@ function processScreenOverlay(
2560
2560
  const screenXY = queryFirstNode(
2561
2561
  screenOverlayNode,
2562
2562
  "screenXY",
2563
- namespaces.kml
2563
+ namespaces.kml,
2564
2564
  );
2565
2565
  const overlayXY = queryFirstNode(
2566
2566
  screenOverlayNode,
2567
2567
  "overlayXY",
2568
- namespaces.kml
2568
+ namespaces.kml,
2569
2569
  );
2570
2570
  const size = queryFirstNode(screenOverlayNode, "size", namespaces.kml);
2571
2571
 
@@ -2642,7 +2642,7 @@ function processScreenOverlay(
2642
2642
  if (defined(x)) {
2643
2643
  if (xUnit === "fraction") {
2644
2644
  xStyle = `${"left: " + "calc("}${Math.floor(
2645
- x * 100
2645
+ x * 100,
2646
2646
  )}% - ${xOrigin}px)`;
2647
2647
  } else if (xUnit === "pixels") {
2648
2648
  xStyle = `left: ${x - xOrigin}px`;
@@ -2656,7 +2656,7 @@ function processScreenOverlay(
2656
2656
  if (defined(y)) {
2657
2657
  if (yUnit === "fraction") {
2658
2658
  yStyle = `${"bottom: " + "calc("}${Math.floor(
2659
- y * 100
2659
+ y * 100,
2660
2660
  )}% - ${yOrigin}px)`;
2661
2661
  } else if (yUnit === "pixels") {
2662
2662
  yStyle = `bottom: ${y - yOrigin}px`;
@@ -2678,7 +2678,7 @@ function processGroundOverlay(
2678
2678
  dataSource,
2679
2679
  groundOverlay,
2680
2680
  processingData,
2681
- deferredLoading
2681
+ deferredLoading,
2682
2682
  ) {
2683
2683
  const r = processFeature(dataSource, groundOverlay, processingData);
2684
2684
  const entity = r.entity;
@@ -2689,7 +2689,7 @@ function processGroundOverlay(
2689
2689
  const ellipsoid = dataSource._ellipsoid;
2690
2690
  const positions = readCoordinates(
2691
2691
  queryFirstNode(groundOverlay, "LatLonQuad", namespaces.gx),
2692
- ellipsoid
2692
+ ellipsoid,
2693
2693
  );
2694
2694
  const zIndex = queryNumericValue(groundOverlay, "drawOrder", namespaces.kml);
2695
2695
  if (defined(positions)) {
@@ -2706,7 +2706,7 @@ function processGroundOverlay(
2706
2706
  const latLonBox = queryFirstNode(
2707
2707
  groundOverlay,
2708
2708
  "LatLonBox",
2709
- namespaces.kml
2709
+ namespaces.kml,
2710
2710
  );
2711
2711
  if (defined(latLonBox)) {
2712
2712
  let west = queryNumericValue(latLonBox, "west", namespaces.kml);
@@ -2743,13 +2743,13 @@ function processGroundOverlay(
2743
2743
  dataSource,
2744
2744
  processingData.sourceResource,
2745
2745
  processingData.uriResolver,
2746
- true
2746
+ true,
2747
2747
  );
2748
2748
  if (defined(href)) {
2749
2749
  if (isLatLonQuad) {
2750
2750
  oneTimeWarning(
2751
2751
  "kml-gx:LatLonQuad",
2752
- "KML - gx:LatLonQuad Icon does not support texture projection."
2752
+ "KML - gx:LatLonQuad Icon does not support texture projection.",
2753
2753
  );
2754
2754
  }
2755
2755
  const x = queryNumericValue(iconNode, "x", namespaces.gx);
@@ -2760,7 +2760,7 @@ function processGroundOverlay(
2760
2760
  if (defined(x) || defined(y) || defined(w) || defined(h)) {
2761
2761
  oneTimeWarning(
2762
2762
  "kml-groundOverlay-xywh",
2763
- "KML - gx:x, gx:y, gx:w, gx:h aren't supported for GroundOverlays"
2763
+ "KML - gx:x, gx:y, gx:w, gx:h aren't supported for GroundOverlays",
2764
2764
  );
2765
2765
  }
2766
2766
 
@@ -2768,7 +2768,7 @@ function processGroundOverlay(
2768
2768
  geometry.material.color = queryColorValue(
2769
2769
  groundOverlay,
2770
2770
  "color",
2771
- namespaces.kml
2771
+ namespaces.kml,
2772
2772
  );
2773
2773
  geometry.material.transparent = true;
2774
2774
  } else {
@@ -2778,7 +2778,7 @@ function processGroundOverlay(
2778
2778
  let altitudeMode = queryStringValue(
2779
2779
  groundOverlay,
2780
2780
  "altitudeMode",
2781
- namespaces.kml
2781
+ namespaces.kml,
2782
2782
  );
2783
2783
 
2784
2784
  if (defined(altitudeMode)) {
@@ -2787,13 +2787,13 @@ function processGroundOverlay(
2787
2787
  geometry.height = queryNumericValue(
2788
2788
  groundOverlay,
2789
2789
  "altitude",
2790
- namespaces.kml
2790
+ namespaces.kml,
2791
2791
  );
2792
2792
  geometry.zIndex = undefined;
2793
2793
  } else if (altitudeMode !== "clampToGround") {
2794
2794
  oneTimeWarning(
2795
2795
  "kml-altitudeMode-unknown",
2796
- `KML - Unknown altitudeMode: ${altitudeMode}`
2796
+ `KML - Unknown altitudeMode: ${altitudeMode}`,
2797
2797
  );
2798
2798
  }
2799
2799
  // else just use the default of 0 until we support 'clampToGround'
@@ -2801,28 +2801,28 @@ function processGroundOverlay(
2801
2801
  altitudeMode = queryStringValue(
2802
2802
  groundOverlay,
2803
2803
  "altitudeMode",
2804
- namespaces.gx
2804
+ namespaces.gx,
2805
2805
  );
2806
2806
  if (altitudeMode === "relativeToSeaFloor") {
2807
2807
  oneTimeWarning(
2808
2808
  "kml-altitudeMode-relativeToSeaFloor",
2809
- "KML - altitudeMode relativeToSeaFloor is currently not supported, treating as absolute."
2809
+ "KML - altitudeMode relativeToSeaFloor is currently not supported, treating as absolute.",
2810
2810
  );
2811
2811
  geometry.height = queryNumericValue(
2812
2812
  groundOverlay,
2813
2813
  "altitude",
2814
- namespaces.kml
2814
+ namespaces.kml,
2815
2815
  );
2816
2816
  geometry.zIndex = undefined;
2817
2817
  } else if (altitudeMode === "clampToSeaFloor") {
2818
2818
  oneTimeWarning(
2819
2819
  "kml-altitudeMode-clampToSeaFloor",
2820
- "KML - altitudeMode clampToSeaFloor is currently not supported, treating as clampToGround."
2820
+ "KML - altitudeMode clampToSeaFloor is currently not supported, treating as clampToGround.",
2821
2821
  );
2822
2822
  } else if (defined(altitudeMode)) {
2823
2823
  oneTimeWarning(
2824
2824
  "kml-altitudeMode-unknown",
2825
- `KML - Unknown altitudeMode: ${altitudeMode}`
2825
+ `KML - Unknown altitudeMode: ${altitudeMode}`,
2826
2826
  );
2827
2827
  }
2828
2828
  }
@@ -2832,7 +2832,7 @@ function processUnsupportedFeature(
2832
2832
  dataSource,
2833
2833
  node,
2834
2834
  processingData,
2835
- deferredLoading
2835
+ deferredLoading,
2836
2836
  ) {
2837
2837
  dataSource._unsupportedNode.raiseEvent(
2838
2838
  dataSource,
@@ -2841,11 +2841,11 @@ function processUnsupportedFeature(
2841
2841
  processingData.entityCollection,
2842
2842
  processingData.styleCollection,
2843
2843
  processingData.sourceResource,
2844
- processingData.uriResolver
2844
+ processingData.uriResolver,
2845
2845
  );
2846
2846
  oneTimeWarning(
2847
2847
  `kml-unsupportedFeature-${node.nodeName}`,
2848
- `KML - Unsupported feature: ${node.nodeName}`
2848
+ `KML - Unsupported feature: ${node.nodeName}`,
2849
2849
  );
2850
2850
  }
2851
2851
 
@@ -2879,7 +2879,7 @@ function processNetworkLinkQueryString(
2879
2879
  canvas,
2880
2880
  viewBoundScale,
2881
2881
  bbox,
2882
- ellipsoid
2882
+ ellipsoid,
2883
2883
  ) {
2884
2884
  function fixLatitude(value) {
2885
2885
  if (value < -CesiumMath.PI_OVER_TWO) {
@@ -2916,14 +2916,14 @@ function processNetworkLinkQueryString(
2916
2916
  centerCartesian = camera.pickEllipsoid(
2917
2917
  scratchCartesian2,
2918
2918
  ellipsoid,
2919
- scratchCartesian3
2919
+ scratchCartesian3,
2920
2920
  );
2921
2921
  }
2922
2922
 
2923
2923
  if (defined(centerCartesian)) {
2924
2924
  centerCartographic = ellipsoid.cartesianToCartographic(
2925
2925
  centerCartesian,
2926
- scratchCartographic
2926
+ scratchCartographic,
2927
2927
  );
2928
2928
  } else {
2929
2929
  centerCartographic = Rectangle.center(bbox, scratchCartographic);
@@ -2940,25 +2940,25 @@ function processNetworkLinkQueryString(
2940
2940
  fixLongitude(centerCartographic.longitude - newHalfWidth),
2941
2941
  fixLatitude(centerCartographic.latitude - newHalfHeight),
2942
2942
  fixLongitude(centerCartographic.longitude + newHalfWidth),
2943
- fixLatitude(centerCartographic.latitude + newHalfHeight)
2943
+ fixLatitude(centerCartographic.latitude + newHalfHeight),
2944
2944
  );
2945
2945
  }
2946
2946
 
2947
2947
  queryString = queryString.replace(
2948
2948
  "[bboxWest]",
2949
- CesiumMath.toDegrees(bbox.west).toString()
2949
+ CesiumMath.toDegrees(bbox.west).toString(),
2950
2950
  );
2951
2951
  queryString = queryString.replace(
2952
2952
  "[bboxSouth]",
2953
- CesiumMath.toDegrees(bbox.south).toString()
2953
+ CesiumMath.toDegrees(bbox.south).toString(),
2954
2954
  );
2955
2955
  queryString = queryString.replace(
2956
2956
  "[bboxEast]",
2957
- CesiumMath.toDegrees(bbox.east).toString()
2957
+ CesiumMath.toDegrees(bbox.east).toString(),
2958
2958
  );
2959
2959
  queryString = queryString.replace(
2960
2960
  "[bboxNorth]",
2961
- CesiumMath.toDegrees(bbox.north).toString()
2961
+ CesiumMath.toDegrees(bbox.north).toString(),
2962
2962
  );
2963
2963
 
2964
2964
  const lon = CesiumMath.toDegrees(centerCartographic.longitude).toString();
@@ -2967,35 +2967,35 @@ function processNetworkLinkQueryString(
2967
2967
  queryString = queryString.replace("[lookatLat]", lat);
2968
2968
  queryString = queryString.replace(
2969
2969
  "[lookatTilt]",
2970
- CesiumMath.toDegrees(camera.pitch).toString()
2970
+ CesiumMath.toDegrees(camera.pitch).toString(),
2971
2971
  );
2972
2972
  queryString = queryString.replace(
2973
2973
  "[lookatHeading]",
2974
- CesiumMath.toDegrees(camera.heading).toString()
2974
+ CesiumMath.toDegrees(camera.heading).toString(),
2975
2975
  );
2976
2976
  queryString = queryString.replace(
2977
2977
  "[lookatRange]",
2978
- Cartesian3.distance(camera.positionWC, centerCartesian)
2978
+ Cartesian3.distance(camera.positionWC, centerCartesian),
2979
2979
  );
2980
2980
  queryString = queryString.replace("[lookatTerrainLon]", lon);
2981
2981
  queryString = queryString.replace("[lookatTerrainLat]", lat);
2982
2982
  queryString = queryString.replace(
2983
2983
  "[lookatTerrainAlt]",
2984
- centerCartographic.height.toString()
2984
+ centerCartographic.height.toString(),
2985
2985
  );
2986
2986
 
2987
2987
  ellipsoid.cartesianToCartographic(camera.positionWC, scratchCartographic);
2988
2988
  queryString = queryString.replace(
2989
2989
  "[cameraLon]",
2990
- CesiumMath.toDegrees(scratchCartographic.longitude).toString()
2990
+ CesiumMath.toDegrees(scratchCartographic.longitude).toString(),
2991
2991
  );
2992
2992
  queryString = queryString.replace(
2993
2993
  "[cameraLat]",
2994
- CesiumMath.toDegrees(scratchCartographic.latitude).toString()
2994
+ CesiumMath.toDegrees(scratchCartographic.latitude).toString(),
2995
2995
  );
2996
2996
  queryString = queryString.replace(
2997
2997
  "[cameraAlt]",
2998
- CesiumMath.toDegrees(scratchCartographic.height).toString()
2998
+ CesiumMath.toDegrees(scratchCartographic.height).toString(),
2999
2999
  );
3000
3000
 
3001
3001
  const frustum = camera.frustum;
@@ -3087,18 +3087,18 @@ function processNetworkLink(dataSource, node, processingData, deferredLoading) {
3087
3087
  viewRefreshMode = queryStringValue(
3088
3088
  link,
3089
3089
  "viewRefreshMode",
3090
- namespaces.kml
3090
+ namespaces.kml,
3091
3091
  );
3092
3092
  if (viewRefreshMode === "onRegion") {
3093
3093
  oneTimeWarning(
3094
3094
  "kml-refrehMode-onRegion",
3095
- "KML - Unsupported viewRefreshMode: onRegion"
3095
+ "KML - Unsupported viewRefreshMode: onRegion",
3096
3096
  );
3097
3097
  return;
3098
3098
  }
3099
3099
  viewBoundScale = defaultValue(
3100
3100
  queryStringValue(link, "viewBoundScale", namespaces.kml),
3101
- 1.0
3101
+ 1.0,
3102
3102
  );
3103
3103
  const defaultViewFormat =
3104
3104
  viewRefreshMode === "onStop"
@@ -3106,7 +3106,7 @@ function processNetworkLink(dataSource, node, processingData, deferredLoading) {
3106
3106
  : "";
3107
3107
  const viewFormat = defaultValue(
3108
3108
  queryStringValue(link, "viewFormat", namespaces.kml),
3109
- defaultViewFormat
3109
+ defaultViewFormat,
3110
3110
  );
3111
3111
  const httpQuery = queryStringValue(link, "httpQuery", namespaces.kml);
3112
3112
  if (defined(viewFormat)) {
@@ -3123,7 +3123,7 @@ function processNetworkLink(dataSource, node, processingData, deferredLoading) {
3123
3123
  dataSource.canvas,
3124
3124
  viewBoundScale,
3125
3125
  dataSource._lastCameraView.bbox,
3126
- ellipsoid
3126
+ ellipsoid,
3127
3127
  );
3128
3128
  }
3129
3129
 
@@ -3154,11 +3154,11 @@ function processNetworkLink(dataSource, node, processingData, deferredLoading) {
3154
3154
  const refreshMode = queryStringValue(
3155
3155
  link,
3156
3156
  "refreshMode",
3157
- namespaces.kml
3157
+ namespaces.kml,
3158
3158
  );
3159
3159
  let refreshInterval = defaultValue(
3160
3160
  queryNumericValue(link, "refreshInterval", namespaces.kml),
3161
- 0
3161
+ 0,
3162
3162
  );
3163
3163
  if (
3164
3164
  (refreshMode === "onInterval" && refreshInterval > 0) ||
@@ -3168,7 +3168,7 @@ function processNetworkLink(dataSource, node, processingData, deferredLoading) {
3168
3168
  const networkLinkControl = queryFirstNode(
3169
3169
  rootElement,
3170
3170
  "NetworkLinkControl",
3171
- namespaces.kml
3171
+ namespaces.kml,
3172
3172
  );
3173
3173
  const hasNetworkLinkControl = defined(networkLinkControl);
3174
3174
 
@@ -3192,18 +3192,18 @@ function processNetworkLink(dataSource, node, processingData, deferredLoading) {
3192
3192
  queryStringValue(
3193
3193
  networkLinkControl,
3194
3194
  "cookie",
3195
- namespaces.kml
3195
+ namespaces.kml,
3196
3196
  ),
3197
- ""
3198
- )
3197
+ "",
3198
+ ),
3199
3199
  );
3200
3200
  minRefreshPeriod = defaultValue(
3201
3201
  queryNumericValue(
3202
3202
  networkLinkControl,
3203
3203
  "minRefreshPeriod",
3204
- namespaces.kml
3204
+ namespaces.kml,
3205
3205
  ),
3206
- 0
3206
+ 0,
3207
3207
  );
3208
3208
  }
3209
3209
 
@@ -3219,7 +3219,7 @@ function processNetworkLink(dataSource, node, processingData, deferredLoading) {
3219
3219
  expires = queryStringValue(
3220
3220
  networkLinkControl,
3221
3221
  "expires",
3222
- namespaces.kml
3222
+ namespaces.kml,
3223
3223
  );
3224
3224
  }
3225
3225
  if (defined(expires)) {
@@ -3234,13 +3234,13 @@ function processNetworkLink(dataSource, node, processingData, deferredLoading) {
3234
3234
  } catch (e) {
3235
3235
  oneTimeWarning(
3236
3236
  "kml-refreshMode-onInterval-onExpire",
3237
- "KML - NetworkLinkControl expires is not a valid date"
3237
+ "KML - NetworkLinkControl expires is not a valid date",
3238
3238
  );
3239
3239
  }
3240
3240
  } else {
3241
3241
  oneTimeWarning(
3242
3242
  "kml-refreshMode-onExpire",
3243
- "KML - refreshMode of onExpire requires the NetworkLinkControl to have an expires element"
3243
+ "KML - refreshMode of onExpire requires the NetworkLinkControl to have an expires element",
3244
3244
  );
3245
3245
  }
3246
3246
  } else if (defined(dataSource.camera)) {
@@ -3248,12 +3248,12 @@ function processNetworkLink(dataSource, node, processingData, deferredLoading) {
3248
3248
  networkLinkInfo.refreshMode = RefreshMode.STOP;
3249
3249
  networkLinkInfo.time = defaultValue(
3250
3250
  queryNumericValue(link, "viewRefreshTime", namespaces.kml),
3251
- 0
3251
+ 0,
3252
3252
  );
3253
3253
  } else {
3254
3254
  oneTimeWarning(
3255
3255
  "kml-refrehMode-onStop-noCamera",
3256
- "A NetworkLink with viewRefreshMode=onStop requires the `camera` property to be defined."
3256
+ "A NetworkLink with viewRefreshMode=onStop requires the `camera` property to be defined.",
3257
3257
  );
3258
3258
  }
3259
3259
 
@@ -3282,7 +3282,7 @@ function processFeatureNode(dataSource, node, processingData, deferredLoading) {
3282
3282
  dataSource,
3283
3283
  node,
3284
3284
  processingData,
3285
- deferredLoading
3285
+ deferredLoading,
3286
3286
  );
3287
3287
  }
3288
3288
 
@@ -3293,7 +3293,7 @@ function loadKml(
3293
3293
  sourceResource,
3294
3294
  uriResolver,
3295
3295
  screenOverlayContainer,
3296
- context
3296
+ context,
3297
3297
  ) {
3298
3298
  entityCollection.removeAll();
3299
3299
 
@@ -3321,8 +3321,8 @@ function loadKml(
3321
3321
  styleCollection,
3322
3322
  sourceResource,
3323
3323
  false,
3324
- uriResolver
3325
- )
3324
+ uriResolver,
3325
+ ),
3326
3326
  ).then(function () {
3327
3327
  let element = kml.documentElement;
3328
3328
  if (element.localName === "kml") {
@@ -3361,7 +3361,7 @@ function loadKmz(
3361
3361
  entityCollection,
3362
3362
  blob,
3363
3363
  sourceResource,
3364
- screenOverlayContainer
3364
+ screenOverlayContainer,
3365
3365
  ) {
3366
3366
  const zWorkerUrl = buildModuleUrl("ThirdParty/Workers/z-worker-pako.js");
3367
3367
  zip.configure({
@@ -3415,7 +3415,7 @@ function loadKmz(
3415
3415
  uriResolver.kml,
3416
3416
  sourceResource,
3417
3417
  uriResolver,
3418
- screenOverlayContainer
3418
+ screenOverlayContainer,
3419
3419
  );
3420
3420
  });
3421
3421
  });
@@ -3463,7 +3463,7 @@ function load(dataSource, entityCollection, data, options) {
3463
3463
  entityCollection,
3464
3464
  dataToLoad,
3465
3465
  sourceUri,
3466
- screenOverlayContainer
3466
+ screenOverlayContainer,
3467
3467
  );
3468
3468
  }
3469
3469
  return readBlobAsText(dataToLoad).then(function (text) {
@@ -3512,7 +3512,7 @@ function load(dataSource, entityCollection, data, options) {
3512
3512
  sourceUri,
3513
3513
  uriResolver,
3514
3514
  screenOverlayContainer,
3515
- context
3515
+ context,
3516
3516
  );
3517
3517
  });
3518
3518
  });
@@ -3524,7 +3524,7 @@ function load(dataSource, entityCollection, data, options) {
3524
3524
  sourceUri,
3525
3525
  uriResolver,
3526
3526
  screenOverlayContainer,
3527
- context
3527
+ context,
3528
3528
  );
3529
3529
  })
3530
3530
  .catch(function (error) {
@@ -3892,8 +3892,8 @@ KmlDataSource.prototype.load = function (data, options) {
3892
3892
  clock.multiplier = Math.round(
3893
3893
  Math.min(
3894
3894
  Math.max(JulianDate.secondsDifference(stop, start) / 60, 1),
3895
- 3.15569e7
3896
- )
3895
+ 3.15569e7,
3896
+ ),
3897
3897
  );
3898
3898
  }
3899
3899
 
@@ -3953,7 +3953,7 @@ function getNetworkLinkUpdateCallback(
3953
3953
  networkLink,
3954
3954
  newEntityCollection,
3955
3955
  networkLinks,
3956
- processedHref
3956
+ processedHref,
3957
3957
  ) {
3958
3958
  return function (rootElement) {
3959
3959
  if (!networkLinks.contains(networkLink.id)) {
@@ -3965,7 +3965,7 @@ function getNetworkLinkUpdateCallback(
3965
3965
  const networkLinkControl = queryFirstNode(
3966
3966
  rootElement,
3967
3967
  "NetworkLinkControl",
3968
- namespaces.kml
3968
+ namespaces.kml,
3969
3969
  );
3970
3970
  const hasNetworkLinkControl = defined(networkLinkControl);
3971
3971
 
@@ -3976,7 +3976,7 @@ function getNetworkLinkUpdateCallback(
3976
3976
  ) {
3977
3977
  oneTimeWarning(
3978
3978
  "kml-networkLinkControl-update",
3979
- "KML - NetworkLinkControl updates aren't supported."
3979
+ "KML - NetworkLinkControl updates aren't supported.",
3980
3980
  );
3981
3981
  networkLink.updating = false;
3982
3982
  networkLinks.remove(networkLink.id);
@@ -3985,16 +3985,16 @@ function getNetworkLinkUpdateCallback(
3985
3985
  networkLink.cookie = queryToObject(
3986
3986
  defaultValue(
3987
3987
  queryStringValue(networkLinkControl, "cookie", namespaces.kml),
3988
- ""
3989
- )
3988
+ "",
3989
+ ),
3990
3990
  );
3991
3991
  minRefreshPeriod = defaultValue(
3992
3992
  queryNumericValue(
3993
3993
  networkLinkControl,
3994
3994
  "minRefreshPeriod",
3995
- namespaces.kml
3995
+ namespaces.kml,
3996
3996
  ),
3997
- 0
3997
+ 0,
3998
3998
  );
3999
3999
  }
4000
4000
 
@@ -4010,7 +4010,7 @@ function getNetworkLinkUpdateCallback(
4010
4010
  expires = queryStringValue(
4011
4011
  networkLinkControl,
4012
4012
  "expires",
4013
- namespaces.kml
4013
+ namespaces.kml,
4014
4014
  );
4015
4015
  }
4016
4016
  if (defined(expires)) {
@@ -4024,14 +4024,14 @@ function getNetworkLinkUpdateCallback(
4024
4024
  } catch (e) {
4025
4025
  oneTimeWarning(
4026
4026
  "kml-networkLinkControl-expires",
4027
- "KML - NetworkLinkControl expires is not a valid date"
4027
+ "KML - NetworkLinkControl expires is not a valid date",
4028
4028
  );
4029
4029
  remove = true;
4030
4030
  }
4031
4031
  } else {
4032
4032
  oneTimeWarning(
4033
4033
  "kml-refreshMode-onExpire",
4034
- "KML - refreshMode of onExpire requires the NetworkLinkControl to have an expires element"
4034
+ "KML - refreshMode of onExpire requires the NetworkLinkControl to have an expires element",
4035
4035
  );
4036
4036
  remove = true;
4037
4037
  }
@@ -4102,7 +4102,7 @@ function getNetworkLinkUpdateCallback(
4102
4102
  networkLink.needsUpdate = false;
4103
4103
  dataSource._refresh.raiseEvent(
4104
4104
  dataSource,
4105
- processedHref.getUrlComponent(true)
4105
+ processedHref.getUrlComponent(true),
4106
4106
  );
4107
4107
  };
4108
4108
  }
@@ -4144,11 +4144,11 @@ KmlDataSource.prototype.update = function (time) {
4144
4144
  !(
4145
4145
  camera.positionWC.equalsEpsilon(
4146
4146
  lastCameraView.position,
4147
- CesiumMath.EPSILON7
4147
+ CesiumMath.EPSILON7,
4148
4148
  ) &&
4149
4149
  camera.directionWC.equalsEpsilon(
4150
4150
  lastCameraView.direction,
4151
- CesiumMath.EPSILON7
4151
+ CesiumMath.EPSILON7,
4152
4152
  ) &&
4153
4153
  camera.upWC.equalsEpsilon(lastCameraView.up, CesiumMath.EPSILON7)
4154
4154
  )
@@ -4211,7 +4211,7 @@ KmlDataSource.prototype.update = function (time) {
4211
4211
  that.canvas,
4212
4212
  networkLink.viewBoundScale,
4213
4213
  lastCameraView.bbox,
4214
- ellipsoid
4214
+ ellipsoid,
4215
4215
  );
4216
4216
 
4217
4217
  load(that, newEntityCollection, href, {
@@ -4223,8 +4223,8 @@ KmlDataSource.prototype.update = function (time) {
4223
4223
  networkLink,
4224
4224
  newEntityCollection,
4225
4225
  newNetworkLinks,
4226
- href
4227
- )
4226
+ href,
4227
+ ),
4228
4228
  )
4229
4229
  .catch(function (error) {
4230
4230
  const msg = `NetworkLink ${networkLink.href} refresh failed: ${error}`;