@cesium/engine 24.0.0 → 25.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (312) hide show
  1. package/Build/Workers/{chunk-NKT5K3K3.js → chunk-35H3UBIO.js} +13 -12
  2. package/Build/Workers/{chunk-5A2SW66E.js → chunk-3LSD7OOA.js} +16 -16
  3. package/Build/Workers/{chunk-HXJMS2ZI.js → chunk-3RFFPH4M.js} +1 -1
  4. package/Build/Workers/{chunk-EDXL4W76.js → chunk-3TKLDHV3.js} +2 -2
  5. package/Build/Workers/{chunk-GQUNK2XC.js → chunk-3VDDRF2E.js} +14 -14
  6. package/Build/Workers/{chunk-Q3C6VQH6.js → chunk-3XY3MVPG.js} +4 -4
  7. package/Build/Workers/{chunk-A47HVBC5.js → chunk-4GF4MVPY.js} +7 -7
  8. package/Build/Workers/{chunk-YQFTYQMZ.js → chunk-4MTRQFJP.js} +3 -2
  9. package/Build/Workers/{chunk-N65BAKSH.js → chunk-4QQXGTCE.js} +8 -8
  10. package/Build/Workers/{chunk-EV3VGO6Y.js → chunk-4XXHJI6Y.js} +17 -17
  11. package/Build/Workers/{chunk-DHKPFLSJ.js → chunk-5T6QQAJW.js} +3 -2
  12. package/Build/Workers/{chunk-UIGVOKKI.js → chunk-6SDGQI27.js} +3 -2
  13. package/Build/Workers/{chunk-ILMFADZA.js → chunk-77RL3MBD.js} +6 -5
  14. package/Build/Workers/{chunk-2N4KDHS3.js → chunk-7LSFAEWF.js} +12 -11
  15. package/Build/Workers/{chunk-44EMEGKW.js → chunk-A7A433MD.js} +5 -5
  16. package/Build/Workers/{chunk-J6AW5YHS.js → chunk-A7ZBMVFS.js} +14 -14
  17. package/Build/Workers/{chunk-XJRBB253.js → chunk-ACFFCHHZ.js} +11 -11
  18. package/Build/Workers/{chunk-MKM27KGV.js → chunk-AEAVLYPS.js} +2 -2
  19. package/Build/Workers/{chunk-7MDYBRYJ.js → chunk-AWFZHD2B.js} +4 -4
  20. package/Build/Workers/{chunk-UQU4RXLT.js → chunk-BTX2NL3P.js} +50 -45
  21. package/Build/Workers/{chunk-4TIG36AW.js → chunk-BVAIWR7O.js} +12 -12
  22. package/Build/Workers/chunk-CKQP3DSS.js +973 -0
  23. package/Build/Workers/{chunk-VLDEUTOP.js → chunk-CZ23Y3RM.js} +2 -2
  24. package/Build/Workers/{chunk-NPF7SSHZ.js → chunk-DFEI5MAV.js} +7 -7
  25. package/Build/Workers/{chunk-AJLTU6PF.js → chunk-DH26SNAB.js} +4 -1
  26. package/Build/Workers/{chunk-5GXYJQ2K.js → chunk-DYT5NR6P.js} +3 -3
  27. package/Build/Workers/{chunk-63SIWPLS.js → chunk-EZARA5FJ.js} +13 -13
  28. package/Build/Workers/{chunk-AMIHNSST.js → chunk-FIBS5S7R.js} +2 -2
  29. package/Build/Workers/{chunk-Y7HNNPNK.js → chunk-FVLVVOBQ.js} +10 -10
  30. package/Build/Workers/{chunk-XY6HMDGI.js → chunk-GL7DNVUS.js} +5 -5
  31. package/Build/Workers/{chunk-6WLHJFD3.js → chunk-GPIGURCG.js} +59 -32
  32. package/Build/Workers/{chunk-B6SCUUFP.js → chunk-H2A4USJR.js} +10 -10
  33. package/Build/Workers/chunk-HSVQATK2.js +147 -0
  34. package/Build/Workers/{chunk-72VYSVEW.js → chunk-HVMG6AG4.js} +11 -10
  35. package/Build/Workers/{chunk-LXMCPFFS.js → chunk-I3A6DXYZ.js} +4 -4
  36. package/Build/Workers/{chunk-7QRFIKWQ.js → chunk-ITD2IN7N.js} +2 -2
  37. package/Build/Workers/{chunk-RQNJD3O4.js → chunk-J3OFS2RD.js} +12 -12
  38. package/Build/Workers/{chunk-C6P4IG5P.js → chunk-J647NNZW.js} +6 -6
  39. package/Build/Workers/{chunk-7X322WP2.js → chunk-J7KQEKPK.js} +13 -13
  40. package/Build/Workers/{chunk-7O5XJTVE.js → chunk-K6NFIRFB.js} +5 -5
  41. package/Build/Workers/{chunk-AF3MU2RL.js → chunk-LH5SF3XV.js} +7 -6
  42. package/Build/Workers/{chunk-GOQBUCXH.js → chunk-ND3NTTOF.js} +708 -430
  43. package/Build/Workers/chunk-QO2CGXMP.js +2342 -0
  44. package/Build/Workers/chunk-QSDY4NS7.js +1287 -0
  45. package/Build/Workers/chunk-QXNQQYPV.js +3201 -0
  46. package/Build/Workers/{chunk-YAOZMOFL.js → chunk-ST2UWDUU.js} +5 -5
  47. package/Build/Workers/{chunk-PVV64VFW.js → chunk-TA777BGS.js} +3 -2
  48. package/Build/Workers/{chunk-ISY4EZCA.js → chunk-TAI4HLII.js} +4 -4
  49. package/Build/Workers/{chunk-JCI63T3K.js → chunk-URUCCIPS.js} +6 -6
  50. package/Build/Workers/{chunk-VMVOUQ5J.js → chunk-VQKLRBIK.js} +7 -7
  51. package/Build/Workers/{chunk-6MPGQEHA.js → chunk-WC57YYBN.js} +2 -2
  52. package/Build/Workers/{chunk-BJD6QGXZ.js → chunk-WN6P5UDH.js} +12 -12
  53. package/Build/Workers/{chunk-LIB2H534.js → chunk-WNN5D4W3.js} +12 -11
  54. package/Build/Workers/{chunk-D4EJ2NXG.js → chunk-WTQGE7Q6.js} +17 -17
  55. package/Build/Workers/{chunk-YJZGW74L.js → chunk-WUBKZFF6.js} +2213 -1349
  56. package/Build/Workers/{chunk-7TYLCBGK.js → chunk-ZAPOS52G.js} +12 -10
  57. package/Build/Workers/{chunk-6RMS4S72.js → chunk-ZCCIIBZT.js} +6 -6
  58. package/Build/Workers/combineGeometry.js +24 -24
  59. package/Build/Workers/createBoxGeometry.js +18 -18
  60. package/Build/Workers/createBoxOutlineGeometry.js +16 -16
  61. package/Build/Workers/createCircleGeometry.js +26 -26
  62. package/Build/Workers/createCircleOutlineGeometry.js +19 -19
  63. package/Build/Workers/createCoplanarPolygonGeometry.js +33 -33
  64. package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +31 -31
  65. package/Build/Workers/createCorridorGeometry.js +29 -29
  66. package/Build/Workers/createCorridorOutlineGeometry.js +28 -28
  67. package/Build/Workers/createCylinderGeometry.js +20 -20
  68. package/Build/Workers/createCylinderOutlineGeometry.js +18 -18
  69. package/Build/Workers/createEllipseGeometry.js +26 -26
  70. package/Build/Workers/createEllipseOutlineGeometry.js +19 -19
  71. package/Build/Workers/createEllipsoidGeometry.js +19 -19
  72. package/Build/Workers/createEllipsoidOutlineGeometry.js +18 -18
  73. package/Build/Workers/createFrustumGeometry.js +18 -18
  74. package/Build/Workers/createFrustumOutlineGeometry.js +18 -18
  75. package/Build/Workers/createGeometry.js +24 -24
  76. package/Build/Workers/createGroundPolylineGeometry.js +175 -118
  77. package/Build/Workers/createPlaneGeometry.js +16 -16
  78. package/Build/Workers/createPlaneOutlineGeometry.js +15 -15
  79. package/Build/Workers/createPolygonGeometry.js +32 -32
  80. package/Build/Workers/createPolygonOutlineGeometry.js +30 -30
  81. package/Build/Workers/createPolylineGeometry.js +25 -25
  82. package/Build/Workers/createPolylineVolumeGeometry.js +31 -31
  83. package/Build/Workers/createPolylineVolumeOutlineGeometry.js +27 -27
  84. package/Build/Workers/createRectangleGeometry.js +27 -27
  85. package/Build/Workers/createRectangleOutlineGeometry.js +20 -20
  86. package/Build/Workers/createSimplePolylineGeometry.js +23 -23
  87. package/Build/Workers/createSphereGeometry.js +19 -19
  88. package/Build/Workers/createSphereOutlineGeometry.js +18 -18
  89. package/Build/Workers/createTaskProcessorWorker.js +3 -3
  90. package/Build/Workers/createVectorTileClampedPolylines.js +14 -14
  91. package/Build/Workers/createVectorTileGeometries.js +24 -24
  92. package/Build/Workers/createVectorTilePoints.js +13 -13
  93. package/Build/Workers/createVectorTilePolygons.js +22 -22
  94. package/Build/Workers/createVectorTilePolylines.js +14 -14
  95. package/Build/Workers/createVerticesFromCesium3DTilesTerrain.js +25 -25
  96. package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +22 -22
  97. package/Build/Workers/createVerticesFromHeightmap.js +24 -23
  98. package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +20 -20
  99. package/Build/Workers/createWallGeometry.js +24 -24
  100. package/Build/Workers/createWallOutlineGeometry.js +23 -23
  101. package/Build/Workers/decodeDraco.js +10 -10
  102. package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
  103. package/Build/Workers/decodeI3S.js +10 -10
  104. package/Build/Workers/gaussianSplatSorter.js +4 -4
  105. package/Build/Workers/gaussianSplatTextureGenerator.js +4 -4
  106. package/Build/Workers/incrementallyBuildTerrainPicker.js +10 -10
  107. package/Build/Workers/transcodeKTX2.js +12 -9
  108. package/Build/Workers/transferTypedArrayTest.js +1 -1
  109. package/Build/Workers/upsampleQuantizedTerrainMesh.js +22 -22
  110. package/Build/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +25 -25
  111. package/Source/Core/ArcType.js +6 -1
  112. package/Source/Core/ArticulationStageType.js +5 -1
  113. package/Source/Core/AssociativeArray.js +100 -94
  114. package/Source/Core/BoundingSphere.js +1296 -1300
  115. package/Source/Core/Cartesian3.js +1 -2
  116. package/Source/Core/Cartographic.js +257 -249
  117. package/Source/Core/ClockRange.js +6 -1
  118. package/Source/Core/ClockStep.js +6 -1
  119. package/Source/Core/Color.js +844 -835
  120. package/Source/Core/ComponentDatatype.js +4 -1
  121. package/Source/Core/CornerType.js +6 -1
  122. package/Source/Core/Credit.js +121 -124
  123. package/Source/Core/Ellipsoid.js +637 -660
  124. package/Source/Core/ExtrapolationType.js +6 -1
  125. package/Source/Core/GeocodeType.js +6 -1
  126. package/Source/Core/GeographicProjection.js +74 -74
  127. package/Source/Core/GeographicTilingScheme.js +179 -198
  128. package/Source/Core/GeometryOffsetAttribute.js +7 -1
  129. package/Source/Core/GeometryType.js +7 -1
  130. package/Source/Core/HeightmapEncoding.js +6 -1
  131. package/Source/Core/Iau2006XysData.js +24 -13
  132. package/Source/Core/IndexDatatype.js +3 -1
  133. package/Source/Core/InterpolationType.js +5 -1
  134. package/Source/Core/Intersect.js +6 -1
  135. package/Source/Core/Ion.js +1 -1
  136. package/Source/Core/IonGeocodeProviderType.js +5 -1
  137. package/Source/Core/JulianDate.js +850 -848
  138. package/Source/Core/KeyboardEventModifier.js +6 -1
  139. package/Source/Core/MapProjection.js +39 -44
  140. package/Source/Core/Matrix2.js +906 -893
  141. package/Source/Core/Matrix3.js +1643 -1575
  142. package/Source/Core/Matrix4.js +2903 -2872
  143. package/Source/Core/PixelFormat.js +3 -1
  144. package/Source/Core/PrimitiveType.js +11 -1
  145. package/Source/Core/Ray.js +62 -60
  146. package/Source/Core/Rectangle.js +913 -904
  147. package/Source/Core/ReferenceFrame.js +6 -1
  148. package/Source/Core/RequestScheduler.js +8 -3
  149. package/Source/Core/RequestState.js +6 -1
  150. package/Source/Core/RequestType.js +6 -1
  151. package/Source/Core/ScreenSpaceEventType.js +6 -1
  152. package/Source/Core/TerrainQuantization.js +6 -1
  153. package/Source/Core/TilingScheme.js +100 -98
  154. package/Source/Core/TimeConstants.js +6 -1
  155. package/Source/Core/TimeStandard.js +6 -1
  156. package/Source/Core/TrackingReferenceFrame.js +6 -1
  157. package/Source/Core/Visibility.js +6 -1
  158. package/Source/Core/VulkanConstants.js +6 -1
  159. package/Source/Core/WebGLConstants.js +6 -1
  160. package/Source/Core/WebMercatorProjection.js +108 -109
  161. package/Source/Core/WebMercatorTilingScheme.js +246 -242
  162. package/Source/Core/WindingOrder.js +3 -1
  163. package/Source/DataSources/StaticGroundGeometryPerMaterialBatch.js +1 -0
  164. package/Source/DataSources/StaticGroundPolylinePerMaterialBatch.js +1 -0
  165. package/Source/DataSources/StripeOrientation.js +6 -1
  166. package/Source/Renderer/BufferUsage.js +20 -9
  167. package/Source/Renderer/Context.js +2 -29
  168. package/Source/Renderer/DrawCommand.js +435 -403
  169. package/Source/Renderer/MipmapHint.js +5 -1
  170. package/Source/Renderer/Pass.js +7 -1
  171. package/Source/Renderer/PickId.js +44 -0
  172. package/Source/Renderer/PixelDatatype.js +3 -1
  173. package/Source/Renderer/RenderbufferFormat.js +5 -1
  174. package/Source/Renderer/ShaderDestination.js +4 -1
  175. package/Source/Renderer/TextureMagnificationFilter.js +3 -1
  176. package/Source/Renderer/TextureMinificationFilter.js +3 -1
  177. package/Source/Renderer/TextureWrap.js +5 -1
  178. package/Source/Scene/AlphaMode.js +5 -1
  179. package/Source/Scene/ArcGisBaseMapType.js +6 -1
  180. package/Source/Scene/ArcGisMapService.js +1 -1
  181. package/Source/Scene/AttributeType.js +3 -1
  182. package/Source/Scene/Axis.js +3 -1
  183. package/Source/Scene/BingMapsStyle.js +6 -1
  184. package/Source/Scene/BlendEquation.js +6 -1
  185. package/Source/Scene/BlendFunction.js +6 -1
  186. package/Source/Scene/BlendOption.js +6 -1
  187. package/Source/Scene/BlendingState.js +6 -1
  188. package/Source/Scene/BufferLoader.js +0 -2
  189. package/Source/Scene/BufferPointCollection.js +4 -1
  190. package/Source/Scene/BufferPolygonCollection.js +3 -1
  191. package/Source/Scene/BufferPolylineCollection.js +3 -1
  192. package/Source/Scene/BufferPrimitiveCollection.js +140 -24
  193. package/Source/Scene/CameraEventType.js +6 -1
  194. package/Source/Scene/Cesium3DTileColorBlendMode.js +6 -1
  195. package/Source/Scene/Cesium3DTileContentState.js +6 -1
  196. package/Source/Scene/Cesium3DTileContentType.js +3 -1
  197. package/Source/Scene/Cesium3DTileFeature.js +289 -306
  198. package/Source/Scene/Cesium3DTileOptimizationHint.js +6 -1
  199. package/Source/Scene/Cesium3DTilePass.js +5 -1
  200. package/Source/Scene/Cesium3DTilePointFeature.js +433 -511
  201. package/Source/Scene/Cesium3DTileRefine.js +6 -1
  202. package/Source/Scene/Cesium3DTileVectorFeature.js +586 -0
  203. package/Source/Scene/Cesium3DTileset.js +1 -1
  204. package/Source/Scene/ClassificationType.js +3 -1
  205. package/Source/Scene/CloudType.js +3 -1
  206. package/Source/Scene/ColorBlendMode.js +4 -1
  207. package/Source/Scene/CullFace.js +6 -1
  208. package/Source/Scene/DepthFunction.js +6 -1
  209. package/Source/Scene/DynamicAtmosphereLightingType.js +3 -1
  210. package/Source/Scene/EquirectangularPanorama.js +1 -0
  211. package/Source/Scene/ExpressionNodeType.js +6 -1
  212. package/Source/Scene/GltfBufferViewLoader.js +0 -2
  213. package/Source/Scene/GltfDracoLoader.js +0 -2
  214. package/Source/Scene/GltfImageLoader.js +0 -3
  215. package/Source/Scene/GltfIndexBufferLoader.js +0 -4
  216. package/Source/Scene/GltfJsonLoader.js +0 -2
  217. package/Source/Scene/GltfLoader.js +0 -5
  218. package/Source/Scene/GltfLoaderUtil.js +14 -0
  219. package/Source/Scene/GltfSpzLoader.js +0 -2
  220. package/Source/Scene/GltfStructuralMetadataLoader.js +0 -2
  221. package/Source/Scene/GltfTextureLoader.js +0 -2
  222. package/Source/Scene/GltfVertexBufferLoader.js +0 -4
  223. package/Source/Scene/HeightReference.js +5 -1
  224. package/Source/Scene/HorizontalOrigin.js +6 -1
  225. package/Source/Scene/ImageryProvider.js +1 -1
  226. package/Source/Scene/ImageryState.js +6 -1
  227. package/Source/Scene/ImplicitSubdivisionScheme.js +3 -1
  228. package/Source/Scene/InstanceAttributeSemantic.js +3 -1
  229. package/Source/Scene/IonWorldImageryStyle.js +6 -1
  230. package/Source/Scene/JobType.js +6 -1
  231. package/Source/Scene/LabelStyle.js +6 -1
  232. package/Source/Scene/MapMode2D.js +6 -1
  233. package/Source/Scene/MetadataComponentType.js +3 -1
  234. package/Source/Scene/MetadataSchemaLoader.js +0 -2
  235. package/Source/Scene/MetadataSemantic.js +6 -2
  236. package/Source/Scene/MetadataType.js +3 -1
  237. package/Source/Scene/Model/B3dmLoader.js +0 -3
  238. package/Source/Scene/Model/CustomShaderMode.js +3 -1
  239. package/Source/Scene/Model/CustomShaderTranslucencyMode.js +5 -1
  240. package/Source/Scene/Model/EdgeVisibilityPipelineStage.js +44 -71
  241. package/Source/Scene/Model/Extensions/Gpm/PpeSource.js +5 -1
  242. package/Source/Scene/Model/Extensions/Gpm/StorageType.js +5 -1
  243. package/Source/Scene/Model/GeoJsonLoader.js +0 -2
  244. package/Source/Scene/Model/I3dmLoader.js +0 -3
  245. package/Source/Scene/Model/InstancingPipelineStage.js +1 -1
  246. package/Source/Scene/Model/LightingModel.js +5 -1
  247. package/Source/Scene/Model/MaterialPipelineStage.js +184 -3
  248. package/Source/Scene/Model/ModelReader.js +474 -3
  249. package/Source/Scene/Model/ModelRuntimePrimitive.js +2 -1
  250. package/Source/Scene/Model/ModelType.js +3 -1
  251. package/Source/Scene/Model/PntsLoader.js +4 -3
  252. package/Source/Scene/Model/StyleCommandsNeeded.js +3 -1
  253. package/Source/Scene/Model/UniformType.js +5 -1
  254. package/Source/Scene/Model/VaryingType.js +5 -1
  255. package/Source/Scene/Model/createVectorTileBuffersFromModelComponents.js +73 -28
  256. package/Source/Scene/Model/pickModel.js +94 -299
  257. package/Source/Scene/ModelAnimationLoop.js +6 -1
  258. package/Source/Scene/ModelAnimationState.js +6 -1
  259. package/Source/Scene/ModelComponents.js +8 -1
  260. package/Source/Scene/PrimitiveState.js +7 -1
  261. package/Source/Scene/QuadtreeOccluders.js +20 -15
  262. package/Source/Scene/QuadtreeTile.js +547 -541
  263. package/Source/Scene/QuadtreeTileLoadState.js +6 -1
  264. package/Source/Scene/QuadtreeTileProvider.js +159 -175
  265. package/Source/Scene/ResourceLoader.js +0 -1
  266. package/Source/Scene/ResourceLoaderState.js +7 -1
  267. package/Source/Scene/SceneMode.js +4 -1
  268. package/Source/Scene/ShadowMode.js +3 -1
  269. package/Source/Scene/SkyBox.js +1 -1
  270. package/Source/Scene/SplitDirection.js +6 -1
  271. package/Source/Scene/StencilFunction.js +6 -1
  272. package/Source/Scene/StencilOperation.js +6 -1
  273. package/Source/Scene/TerrainState.js +7 -1
  274. package/Source/Scene/TileState.js +7 -1
  275. package/Source/Scene/Tonemapper.js +5 -1
  276. package/Source/Scene/VectorGltf3DTileContent.js +72 -51
  277. package/Source/Scene/VertexAttributeSemantic.js +3 -1
  278. package/Source/Scene/VerticalOrigin.js +6 -1
  279. package/Source/Scene/VoxelBoxShape.js +12 -6
  280. package/Source/Scene/VoxelContent.js +2 -0
  281. package/Source/Scene/VoxelCylinderShape.js +39 -38
  282. package/Source/Scene/VoxelEllipsoidShape.js +46 -96
  283. package/Source/Scene/VoxelMetadataOrder.js +6 -1
  284. package/Source/Scene/VoxelProvider.js +1 -0
  285. package/Source/Scene/VoxelShapeType.js +3 -1
  286. package/Source/Scene/renderBufferPointCollection.js +17 -66
  287. package/Source/Scene/renderBufferPolygonCollection.js +21 -68
  288. package/Source/Scene/renderBufferPolylineCollection.js +22 -73
  289. package/Source/Shaders/Builtin/CzmBuiltins.js +2 -0
  290. package/Source/Shaders/Builtin/Functions/computeTextureTransform.glsl +24 -0
  291. package/Source/Shaders/Builtin/Functions/computeTextureTransform.js +25 -0
  292. package/Source/Shaders/Model/ConstantLodStageFS.glsl +60 -0
  293. package/Source/Shaders/Model/ConstantLodStageFS.js +62 -0
  294. package/Source/Shaders/Model/ConstantLodStageVS.glsl +12 -0
  295. package/Source/Shaders/Model/ConstantLodStageVS.js +13 -0
  296. package/Source/Shaders/Model/MaterialStageFS.glsl +46 -20
  297. package/Source/Shaders/Model/MaterialStageFS.js +46 -20
  298. package/Source/Shaders/Voxels/convertLocalToBoxUv.glsl +0 -1
  299. package/Source/Shaders/Voxels/convertLocalToBoxUv.js +0 -1
  300. package/Source/Shaders/Voxels/convertLocalToCylinderUv.glsl +7 -9
  301. package/Source/Shaders/Voxels/convertLocalToCylinderUv.js +7 -9
  302. package/Source/Shaders/Voxels/convertLocalToEllipsoidUv.glsl +7 -17
  303. package/Source/Shaders/Voxels/convertLocalToEllipsoidUv.js +7 -17
  304. package/Source/Widget/CesiumWidget.js +11 -4
  305. package/index.d.ts +343 -309
  306. package/index.js +443 -438
  307. package/package.json +2 -2
  308. package/Build/Workers/chunk-DVB56LG7.js +0 -114
  309. package/Build/Workers/chunk-HKUES6UG.js +0 -2357
  310. package/Build/Workers/chunk-HRHRYFHS.js +0 -940
  311. package/Build/Workers/chunk-KLPGTXS3.js +0 -642
  312. package/Build/Workers/chunk-ZBZRTRJB.js +0 -1829
@@ -1,6 +1,7 @@
1
1
  import WebGLConstants from "../Core/WebGLConstants.js";
2
2
 
3
3
  /**
4
+ * @enum {number}
4
5
  * @private
5
6
  */
6
7
  const MipmapHint = {
@@ -16,4 +17,7 @@ const MipmapHint = {
16
17
  );
17
18
  },
18
19
  };
19
- export default Object.freeze(MipmapHint);
20
+
21
+ Object.freeze(MipmapHint);
22
+
23
+ export default MipmapHint;
@@ -1,6 +1,9 @@
1
+ // @ts-check
2
+
1
3
  /**
2
4
  * The render pass for a command.
3
5
  *
6
+ * @enum {number}
4
7
  * @private
5
8
  */
6
9
  const Pass = {
@@ -26,4 +29,7 @@ const Pass = {
26
29
  OVERLAY: 12,
27
30
  NUMBER_OF_PASSES: 13,
28
31
  };
29
- export default Object.freeze(Pass);
32
+
33
+ Object.freeze(Pass);
34
+
35
+ export default Pass;
@@ -0,0 +1,44 @@
1
+ // @ts-check
2
+
3
+ /** @import Color from "../Core/Color.js"; */
4
+ /** @import {Destroyable} from "../Core/globalTypes.js"; */
5
+
6
+ /**
7
+ * Represents a pickable object with a unique integer ID and picking color.
8
+ *
9
+ * @implements {Destroyable}
10
+ * @ignore
11
+ */
12
+ class PickId {
13
+ /**
14
+ * @param {Map<number, object>} pickObjects
15
+ * @param {number} key
16
+ * @param {Color} color
17
+ */
18
+ constructor(pickObjects, key, color) {
19
+ this._pickObjects = pickObjects;
20
+
21
+ /** @type {number} */
22
+ this.key = key;
23
+
24
+ /** @type {Color} */
25
+ this.color = color;
26
+ }
27
+
28
+ /** @type {object} */
29
+ get object() {
30
+ return this._pickObjects.get(this.key);
31
+ }
32
+
33
+ set object(value) {
34
+ this._pickObjects.set(this.key, value);
35
+ }
36
+
37
+ /** @returns {void} */
38
+ destroy() {
39
+ this._pickObjects.delete(this.key);
40
+ return undefined;
41
+ }
42
+ }
43
+
44
+ export default PickId;
@@ -118,4 +118,6 @@ PixelDatatype.getTypedArrayConstructor = function (pixelDatatype) {
118
118
  return Uint32Array;
119
119
  };
120
120
 
121
- export default Object.freeze(PixelDatatype);
121
+ Object.freeze(PixelDatatype);
122
+
123
+ export default PixelDatatype;
@@ -1,6 +1,7 @@
1
1
  import WebGLConstants from "../Core/WebGLConstants.js";
2
2
 
3
3
  /**
4
+ * @enum {number}
4
5
  * @private
5
6
  */
6
7
  const RenderbufferFormat = {
@@ -39,4 +40,7 @@ const RenderbufferFormat = {
39
40
  return RenderbufferFormat.RGBA8;
40
41
  },
41
42
  };
42
- export default Object.freeze(RenderbufferFormat);
43
+
44
+ Object.freeze(RenderbufferFormat);
45
+
46
+ export default RenderbufferFormat;
@@ -5,6 +5,7 @@ import DeveloperError from "../Core/DeveloperError.js";
5
5
  * A bit flag describing whether a variable should be added to the
6
6
  * vertex shader, the fragment shader, or both (or none).
7
7
  *
8
+ * @enum {number}
8
9
  * @private
9
10
  */
10
11
  const ShaderDestination = {
@@ -89,4 +90,6 @@ ShaderDestination.intersection = function (...destinations) {
89
90
  return result;
90
91
  };
91
92
 
92
- export default Object.freeze(ShaderDestination);
93
+ Object.freeze(ShaderDestination);
94
+
95
+ export default ShaderDestination;
@@ -38,4 +38,6 @@ TextureMagnificationFilter.validate = function (textureMagnificationFilter) {
38
38
  );
39
39
  };
40
40
 
41
- export default Object.freeze(TextureMagnificationFilter);
41
+ Object.freeze(TextureMagnificationFilter);
42
+
43
+ export default TextureMagnificationFilter;
@@ -91,4 +91,6 @@ TextureMinificationFilter.validate = function (textureMinificationFilter) {
91
91
  );
92
92
  };
93
93
 
94
- export default Object.freeze(TextureMinificationFilter);
94
+ Object.freeze(TextureMinificationFilter);
95
+
96
+ export default TextureMinificationFilter;
@@ -1,6 +1,7 @@
1
1
  import WebGLConstants from "../Core/WebGLConstants.js";
2
2
 
3
3
  /**
4
+ * @enum {number}
4
5
  * @private
5
6
  */
6
7
  const TextureWrap = {
@@ -16,4 +17,7 @@ const TextureWrap = {
16
17
  );
17
18
  },
18
19
  };
19
- export default Object.freeze(TextureWrap);
20
+
21
+ Object.freeze(TextureWrap);
22
+
23
+ export default TextureWrap;
@@ -1,3 +1,5 @@
1
+ // @ts-check
2
+
1
3
  /**
2
4
  * The alpha rendering mode of the material.
3
5
  *
@@ -30,4 +32,6 @@ const AlphaMode = {
30
32
  BLEND: "BLEND",
31
33
  };
32
34
 
33
- export default Object.freeze(AlphaMode);
35
+ Object.freeze(AlphaMode);
36
+
37
+ export default AlphaMode;
@@ -1,3 +1,5 @@
1
+ // @ts-check
2
+
1
3
  /**
2
4
  * ArcGisBaseMapType enumerates the ArcGIS image tile layers that are supported by default.
3
5
  *
@@ -9,4 +11,7 @@ const ArcGisBaseMapType = {
9
11
  OCEANS: 2,
10
12
  HILLSHADE: 3,
11
13
  };
12
- export default Object.freeze(ArcGisBaseMapType);
14
+
15
+ Object.freeze(ArcGisBaseMapType);
16
+
17
+ export default ArcGisBaseMapType;
@@ -4,7 +4,7 @@ import Resource from "../Core/Resource.js";
4
4
 
5
5
  let defaultTokenCredit;
6
6
  const defaultAccessToken =
7
- "AAPTaUFUfciXgT4YKNZew9lUqpQ..yIoArbcKGeWnsxrcf8Sk9LLcQN1dML2469i9e8v1mZyMILiwWzGR3sxU2vr8L749gvuB4ERujd1vMmNwfZTbCPPaJ1vtts4rXZ3DZEhW9L3GKH6KRRfqXy77cdjc7mg3iIVkWEg8yhReRsNIyw-nlzduhCipHDMwkkx-GmOxnsNYE-0CE2uEB9Mm8b6UppjohI1tn864yN1vLTJMP1vCRFD2b0uyE0vqzx-cE12TppkVQQ4Ry9apOVC3AT1_oO2ZY8gh";
7
+ "AAPTarorp_WgBbyDABMqDfNsSWg..ykf3buvvbFduVL73NrRrnqBR8lO4ndPrO94nF7-3rfUWF5n3sbUe2Xe0d4rhAGa-sOTDpE-AI5kom4O4ixK3QFkTnjaGpFtDOxyrPXZUj1vRmsZAaIMZlzC5TWfBDr-RYeD9NCRMq8JwaP2Fp9blpXTqYVCWpENJLiCJ3pUlQ7XSrnJYNlPwph4B3k1FAK_j3DTlLDd2xbHwcMRbVYq8iJqt7vGuWHw3otSkmltdnNAgMaVQ366Rf0YUAT1_Hbd2aXK9";
8
8
  /**
9
9
  * Default options for accessing the ArcGIS image tile service.
10
10
  *
@@ -197,4 +197,6 @@ AttributeType.getGlslType = function (attributeType) {
197
197
  }
198
198
  };
199
199
 
200
- export default Object.freeze(AttributeType);
200
+ Object.freeze(AttributeType);
201
+
202
+ export default AttributeType;
@@ -113,4 +113,6 @@ Axis.fromName = function (name) {
113
113
  return Axis[name];
114
114
  };
115
115
 
116
- export default Object.freeze(Axis);
116
+ Object.freeze(Axis);
117
+
118
+ export default Axis;
@@ -1,3 +1,5 @@
1
+ // @ts-check
2
+
1
3
  /**
2
4
  * The types of imagery provided by Bing Maps.
3
5
  *
@@ -90,4 +92,7 @@ const BingMapsStyle = {
90
92
  */
91
93
  COLLINS_BART: "CollinsBart",
92
94
  };
93
- export default Object.freeze(BingMapsStyle);
95
+
96
+ Object.freeze(BingMapsStyle);
97
+
98
+ export default BingMapsStyle;
@@ -1,3 +1,5 @@
1
+ // @ts-check
2
+
1
3
  import WebGLConstants from "../Core/WebGLConstants.js";
2
4
 
3
5
  /**
@@ -50,4 +52,7 @@ const BlendEquation = {
50
52
  */
51
53
  MAX: WebGLConstants.MAX,
52
54
  };
53
- export default Object.freeze(BlendEquation);
55
+
56
+ Object.freeze(BlendEquation);
57
+
58
+ export default BlendEquation;
@@ -1,3 +1,5 @@
1
+ // @ts-check
2
+
1
3
  import WebGLConstants from "../Core/WebGLConstants.js";
2
4
 
3
5
  /**
@@ -126,4 +128,7 @@ const BlendFunction = {
126
128
  */
127
129
  SOURCE_ALPHA_SATURATE: WebGLConstants.SRC_ALPHA_SATURATE,
128
130
  };
129
- export default Object.freeze(BlendFunction);
131
+
132
+ Object.freeze(BlendFunction);
133
+
134
+ export default BlendFunction;
@@ -1,3 +1,5 @@
1
+ // @ts-check
2
+
1
3
  /**
2
4
  * Determines how opaque and translucent parts of billboards, points, and labels are blended with the scene.
3
5
  *
@@ -25,4 +27,7 @@ const BlendOption = {
25
27
  */
26
28
  OPAQUE_AND_TRANSLUCENT: 2,
27
29
  };
28
- export default Object.freeze(BlendOption);
30
+
31
+ Object.freeze(BlendOption);
32
+
33
+ export default BlendOption;
@@ -1,3 +1,5 @@
1
+ // @ts-check
2
+
1
3
  import BlendEquation from "./BlendEquation.js";
2
4
  import BlendFunction from "./BlendFunction.js";
3
5
 
@@ -70,4 +72,7 @@ const BlendingState = {
70
72
  functionDestinationAlpha: BlendFunction.ONE,
71
73
  }),
72
74
  };
73
- export default Object.freeze(BlendingState);
75
+
76
+ Object.freeze(BlendingState);
77
+
78
+ export default BlendingState;
@@ -47,7 +47,6 @@ class BufferLoader extends ResourceLoader {
47
47
  /**
48
48
  * The cache key of the resource.
49
49
  *
50
- * @memberof BufferLoader.prototype
51
50
  *
52
51
  * @type {string}
53
52
  * @readonly
@@ -60,7 +59,6 @@ class BufferLoader extends ResourceLoader {
60
59
  /**
61
60
  * The typed array containing the embedded buffer contents.
62
61
  *
63
- * @memberof BufferLoader.prototype
64
62
  *
65
63
  * @type {Uint8Array}
66
64
  * @readonly
@@ -12,9 +12,11 @@ import BufferPointMaterial from "./BufferPointMaterial.js";
12
12
 
13
13
  /**
14
14
  * @typedef {object} BufferPointOptions
15
- * @property {Matrix4} [options.modelMatrix=Matrix4.IDENTITY] Transforms geometry from model to world coordinates.
15
+ * @property {Matrix4} [modelMatrix=Matrix4.IDENTITY] Transforms geometry from model to world coordinates.
16
16
  * @property {boolean} [show=true]
17
17
  * @property {BufferPointMaterial} [material=BufferPointMaterial.DEFAULT_MATERIAL]
18
+ * @property {number} [featureId]
19
+ * @property {object} [pickObject]
18
20
  * @property {Cartesian3} [position=Cartesian3.ZERO]
19
21
  * @experimental This feature is not final and is subject to change without Cesium's standard deprecation policy.
20
22
  */
@@ -56,6 +58,7 @@ class BufferPointCollection extends BufferPrimitiveCollection {
56
58
  * @param {number} [options.primitiveCountMax=BufferPrimitiveCollection.DEFAULT_CAPACITY]
57
59
  * @param {boolean} [options.show=true]
58
60
  * @param {boolean} [options.debugShowBoundingVolume=false]
61
+ * @param {boolean} [options.allowPicking=false]
59
62
  */
60
63
  constructor(options = Frozen.EMPTY_OBJECT) {
61
64
  super({ ...options, vertexCountMax: options.primitiveCountMax });
@@ -18,9 +18,11 @@ const { ERR_CAPACITY } = BufferPrimitiveCollection.Error;
18
18
 
19
19
  /**
20
20
  * @typedef {object} BufferPolygonOptions
21
- * @property {Matrix4} [options.modelMatrix=Matrix4.IDENTITY] Transforms geometry from model to world coordinates.
21
+ * @property {Matrix4} [modelMatrix=Matrix4.IDENTITY] Transforms geometry from model to world coordinates.
22
22
  * @property {boolean} [show=true]
23
23
  * @property {BufferPolygonMaterial} [material=BufferPolygonMaterial.DEFAULT_MATERIAL]
24
+ * @property {number} [featureId]
25
+ * @property {object} [pickObject]
24
26
  * @property {TypedArray} [positions]
25
27
  * @property {TypedArray} [holes]
26
28
  * @property {TypedArray} [triangles]
@@ -12,9 +12,11 @@ import BufferPolylineMaterial from "./BufferPolylineMaterial.js";
12
12
 
13
13
  /**
14
14
  * @typedef {object} BufferPolylineOptions
15
- * @property {Matrix4} [options.modelMatrix=Matrix4.IDENTITY] Transforms geometry from model to world coordinates.
15
+ * @property {Matrix4} [modelMatrix=Matrix4.IDENTITY] Transforms geometry from model to world coordinates.
16
16
  * @property {boolean} [show=true]
17
17
  * @property {BufferPolylineMaterial} [material=BufferPolylineMaterial.DEFAULT_MATERIAL]
18
+ * @property {number} [featureId]
19
+ * @property {object} [pickObject]
18
20
  * @property {TypedArray} [positions]
19
21
  * @experimental This feature is not final and is subject to change without Cesium's standard deprecation policy.
20
22
  */
@@ -9,15 +9,23 @@ import assert from "../Core/assert.js";
9
9
  import ComponentDatatype from "../Core/ComponentDatatype.js";
10
10
  import defined from "../Core/defined.js";
11
11
  import Check from "../Core/Check.js";
12
+ import SceneMode from "./SceneMode.js";
13
+ import oneTimeWarning from "../Core/oneTimeWarning.js";
12
14
 
13
15
  /** @import { Destroyable, TypedArray, TypedArrayConstructor } from "../Core/globalTypes.js"; */
16
+ /** @import Context from "../Renderer/Context.js"; */
17
+ /** @import FrameState from "./FrameState.js"; */
14
18
  /** @import BufferPrimitive from "./BufferPrimitive.js"; */
15
19
  /** @import BufferPrimitiveMaterial from "./BufferPrimitiveMaterial.js"; */
20
+ /** @import PickId from "../Renderer/PickId.js"; */
16
21
 
17
22
  /**
18
23
  * @typedef {object} BufferPrimitiveOptions
24
+ * @property {Matrix4} [modelMatrix=Matrix4.IDENTITY] Transforms geometry from model to world coordinates.
19
25
  * @property {boolean} [show=true]
20
26
  * @property {BufferPrimitiveMaterial} [material]
27
+ * @property {number} [featureId]
28
+ * @property {object} [pickObject]
21
29
  * @experimental This feature is not final and is subject to change without Cesium's standard deprecation policy.
22
30
  */
23
31
 
@@ -40,19 +48,6 @@ import Check from "../Core/Check.js";
40
48
  * @see BufferPolygonCollection
41
49
  */
42
50
  class BufferPrimitiveCollection {
43
- /**
44
- * Default capacity of buffers on new collections. A quantity of elements:
45
- * number of vertices in the vertex buffer, primitives in the primitive
46
- * buffer, etc. This value is arbitrary, and collections cannot be resized,
47
- * so specific per-buffer capacities should be provided in the collection
48
- * constructor when available.
49
- *
50
- * @type {number}
51
- * @readonly
52
- * @static
53
- */
54
- static DEFAULT_CAPACITY = 1024;
55
-
56
51
  /** @ignore */
57
52
  static Error = {
58
53
  ERR_RESIZE: "BufferPrimitive range cannot be resized after initialization.",
@@ -91,25 +86,26 @@ class BufferPrimitiveCollection {
91
86
  this.show = options.show ?? true;
92
87
 
93
88
  /**
94
- * Transforms geometry from model to world coordinates.
95
89
  * @type {Matrix4}
96
90
  * @default Matrix4.IDENTITY
91
+ * @readonly
92
+ * @protected
97
93
  */
98
- this.modelMatrix = Matrix4.clone(options.modelMatrix ?? Matrix4.IDENTITY);
94
+ this._modelMatrix = Matrix4.clone(options.modelMatrix ?? Matrix4.IDENTITY);
99
95
 
100
96
  /**
101
- * Local bounding volume for all primitives in the collection, including both
102
- * shown and hidden primitives.
103
97
  * @type {BoundingSphere}
98
+ * @readonly
99
+ * @protected
104
100
  */
105
- this.boundingVolume = new BoundingSphere();
101
+ this._boundingVolume = new BoundingSphere();
106
102
 
107
103
  /**
108
- * World bounding volume for all primitives in the collection, including both
109
- * shown and hidden primitives.
110
104
  * @type {BoundingSphere}
105
+ * @readonly
106
+ * @protected
111
107
  */
112
- this.boundingVolumeWC = new BoundingSphere();
108
+ this._boundingVolumeWC = new BoundingSphere();
113
109
 
114
110
  /**
115
111
  * When <code>true</code>, primitives are pickable with {@link Scene#pick}.
@@ -121,6 +117,20 @@ class BufferPrimitiveCollection {
121
117
  */
122
118
  this._allowPicking = options.allowPicking ?? false;
123
119
 
120
+ /**
121
+ * @type {Map<Context, PickId[]>}
122
+ * @readonly
123
+ * @ignore
124
+ */
125
+ this._pickIds = new Map();
126
+
127
+ /**
128
+ * @type {object[]}
129
+ * @readonly
130
+ * @ignore
131
+ */
132
+ this._pickObjects = [];
133
+
124
134
  /**
125
135
  * This property is for debugging only; it is not for production use nor is it optimized.
126
136
  * <p>
@@ -203,7 +213,6 @@ class BufferPrimitiveCollection {
203
213
 
204
214
  this._allocatePrimitiveBuffer();
205
215
  this._allocatePositionBuffer(
206
- // @ts-expect-error Requires https://github.com/CesiumGS/cesium/pull/13203.
207
216
  options.positionDatatype ?? ComponentDatatype.DOUBLE,
208
217
  );
209
218
  this._allocateMaterialBuffer();
@@ -292,6 +301,14 @@ class BufferPrimitiveCollection {
292
301
 
293
302
  /** Destroys collection and its GPU resources. */
294
303
  destroy() {
304
+ this._pickObjects.length = 0;
305
+
306
+ for (const contextPickIds of this._pickIds.values()) {
307
+ for (const pickId of contextPickIds) {
308
+ pickId.destroy();
309
+ }
310
+ }
311
+
295
312
  if (defined(this._renderContext)) {
296
313
  this._renderContext.destroy();
297
314
  this._renderContext = undefined;
@@ -479,6 +496,46 @@ class BufferPrimitiveCollection {
479
496
  this._dirtyBoundingVolume = false;
480
497
  }
481
498
 
499
+ /**
500
+ * Updates PickIds for the given context.
501
+ * @param {Context} context
502
+ * @protected
503
+ * @ignore
504
+ */
505
+ _updatePickIds(context) {
506
+ let pickIds = this._pickIds.get(context);
507
+ if (pickIds && pickIds.length === this._primitiveCount) {
508
+ return;
509
+ }
510
+
511
+ if (!pickIds) {
512
+ pickIds = [];
513
+ this._pickIds.set(context, pickIds);
514
+ }
515
+
516
+ const collection = this;
517
+ const PrimitiveClass = this._getPrimitiveClass();
518
+ const primitive = new PrimitiveClass();
519
+
520
+ // Fill in missing PickIDs for recently-added primitives.
521
+ for (let i = pickIds.length, il = this._primitiveCount; i < il; i++) {
522
+ this.get(i, primitive);
523
+
524
+ const pickObject = this._pickObjects[i] || {
525
+ collection: this,
526
+ index: i,
527
+ get primitive() {
528
+ // Cannot reuse primitives; scene.drillPick() appends to a list.
529
+ return collection.get(i, new PrimitiveClass());
530
+ },
531
+ };
532
+
533
+ const pickId = context.createPickId(pickObject);
534
+ primitive._pickId = pickId.key;
535
+ pickIds.push(pickId);
536
+ }
537
+ }
538
+
482
539
  /////////////////////////////////////////////////////////////////////////////
483
540
  // PRIMITIVE LIFECYCLE
484
541
 
@@ -532,13 +589,19 @@ class BufferPrimitiveCollection {
532
589
  //>>includeEnd('debug');
533
590
 
534
591
  const MaterialClass = this._getMaterialClass();
592
+ const index = this._primitiveCount++;
535
593
 
536
- result = this.get(this._primitiveCount++, result);
537
- result.featureId = this._primitiveCount - 1;
594
+ result = this.get(index, result);
595
+ result.featureId = options.featureId ?? index;
538
596
  result.show = options.show ?? true;
539
597
  result.setMaterial(options.material ?? MaterialClass.DEFAULT_MATERIAL);
540
598
  result._pickId = 0; // unset
541
599
  result._dirty = true;
600
+
601
+ if (defined(options.pickObject)) {
602
+ this._pickObjects[index] = options.pickObject;
603
+ }
604
+
542
605
  return result;
543
606
  }
544
607
 
@@ -572,9 +635,19 @@ class BufferPrimitiveCollection {
572
635
 
573
636
  /** @param {object} frameState */
574
637
  update(frameState) {
638
+ if (/** @type {FrameState} */ (frameState).mode !== SceneMode.SCENE3D) {
639
+ oneTimeWarning(
640
+ "bufferprim-scenemode",
641
+ "BufferPrimitiveCollection requires SceneMode.SCENE3D.",
642
+ );
643
+ }
644
+
575
645
  if (this._dirtyBoundingVolume) {
576
646
  this._updateBoundingVolume();
577
647
  }
648
+ if (this._allowPicking && this._dirtyCount > 0) {
649
+ this._updatePickIds(/** @type {FrameState} */ (frameState).context);
650
+ }
578
651
  }
579
652
 
580
653
  /////////////////////////////////////////////////////////////////////////////
@@ -640,6 +713,36 @@ class BufferPrimitiveCollection {
640
713
  return this._positionCountMax;
641
714
  }
642
715
 
716
+ /**
717
+ * Transforms geometry from model to world coordinates.
718
+ * @type {Matrix4}
719
+ * @default Matrix4.IDENTITY
720
+ * @readonly
721
+ */
722
+ get modelMatrix() {
723
+ return this._modelMatrix;
724
+ }
725
+
726
+ /**
727
+ * Local bounding volume for all primitives in the collection, including both
728
+ * shown and hidden primitives.
729
+ * @type {BoundingSphere}
730
+ * @readonly
731
+ */
732
+ get boundingVolume() {
733
+ return this._boundingVolume;
734
+ }
735
+
736
+ /**
737
+ * World bounding volume for all primitives in the collection, including both
738
+ * shown and hidden primitives.
739
+ * @type {BoundingSphere}
740
+ * @readonly
741
+ */
742
+ get boundingVolumeWC() {
743
+ return this._boundingVolumeWC;
744
+ }
745
+
643
746
  /////////////////////////////////////////////////////////////////////////////
644
747
  // UTILS
645
748
 
@@ -699,4 +802,17 @@ class BufferPrimitiveCollection {
699
802
  }
700
803
  }
701
804
 
805
+ /**
806
+ * Default capacity of buffers on new collections. A quantity of elements:
807
+ * number of vertices in the vertex buffer, primitives in the primitive
808
+ * buffer, etc. This value is arbitrary, and collections cannot be resized,
809
+ * so specific per-buffer capacities should be provided in the collection
810
+ * constructor when available.
811
+ *
812
+ * @type {number}
813
+ * @static
814
+ * @constant
815
+ */
816
+ BufferPrimitiveCollection.DEFAULT_CAPACITY = 1024;
817
+
702
818
  export default BufferPrimitiveCollection;
@@ -1,3 +1,5 @@
1
+ // @ts-check
2
+
1
3
  /**
2
4
  * Enumerates the available input for interacting with the camera.
3
5
  *
@@ -44,4 +46,7 @@ const CameraEventType = {
44
46
  */
45
47
  PINCH: 4,
46
48
  };
47
- export default Object.freeze(CameraEventType);
49
+
50
+ Object.freeze(CameraEventType);
51
+
52
+ export default CameraEventType;
@@ -1,3 +1,5 @@
1
+ // @ts-check
2
+
1
3
  /**
2
4
  * Defines how per-feature colors set from the Cesium API or declarative styling blend with the source colors from
3
5
  * the original feature, e.g. glTF material or per-point color in the tile.
@@ -49,4 +51,7 @@ const Cesium3DTileColorBlendMode = {
49
51
  */
50
52
  MIX: 2,
51
53
  };
52
- export default Object.freeze(Cesium3DTileColorBlendMode);
54
+
55
+ Object.freeze(Cesium3DTileColorBlendMode);
56
+
57
+ export default Cesium3DTileColorBlendMode;
@@ -1,3 +1,5 @@
1
+ // @ts-check
2
+
1
3
  /**
2
4
  * @private
3
5
  */
@@ -9,4 +11,7 @@ const Cesium3DTileContentState = {
9
11
  EXPIRED: 4, // Is expired and will be unloaded once new content is loaded.
10
12
  FAILED: 5, // Request failed.
11
13
  };
12
- export default Object.freeze(Cesium3DTileContentState);
14
+
15
+ Object.freeze(Cesium3DTileContentState);
16
+
17
+ export default Cesium3DTileContentState;
@@ -176,4 +176,6 @@ Cesium3DTileContentType.isBinaryFormat = function (contentType) {
176
176
  }
177
177
  };
178
178
 
179
- export default Object.freeze(Cesium3DTileContentType);
179
+ Object.freeze(Cesium3DTileContentType);
180
+
181
+ export default Cesium3DTileContentType;