@cesium/engine 13.1.0 → 15.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 (183) hide show
  1. package/Build/Workers/{chunk-APCS5YJI.js → chunk-25TOENEE.js} +7 -7
  2. package/Build/Workers/{chunk-FNCXBBCF.js → chunk-2AVIUB5H.js} +2 -2
  3. package/Build/Workers/{chunk-OZTFRHA2.js → chunk-3JZGPJMZ.js} +6 -6
  4. package/Build/Workers/{chunk-5JY4LYO3.js → chunk-3LHBH4TC.js} +7 -7
  5. package/Build/Workers/{chunk-MGABCOOH.js → chunk-3LZF23RY.js} +6 -6
  6. package/Build/Workers/{chunk-AXYZUG4N.js → chunk-5S2B46UQ.js} +1 -1
  7. package/Build/Workers/{chunk-2SRHVCFD.js → chunk-67ONR44K.js} +6 -6
  8. package/Build/Workers/{chunk-PBJQFLKS.js → chunk-6EDBC234.js} +11 -11
  9. package/Build/Workers/{chunk-GSLKQJM2.js → chunk-6EV4VOET.js} +10 -10
  10. package/Build/Workers/{chunk-OGRXNUR2.js → chunk-7ITUZTFH.js} +1 -1
  11. package/Build/Workers/{chunk-IP7F2MVW.js → chunk-ARVZCY6X.js} +7 -7
  12. package/Build/Workers/{chunk-EYZFEJX3.js → chunk-B2UQN3DH.js} +6 -6
  13. package/Build/Workers/{chunk-WE4KF4AM.js → chunk-B2Y4ZS6X.js} +9 -9
  14. package/Build/Workers/{chunk-DWIKWWEE.js → chunk-BD2TPFGC.js} +5 -5
  15. package/Build/Workers/{chunk-5ICYLS6B.js → chunk-CHX2K5AC.js} +10 -10
  16. package/Build/Workers/{chunk-NQDKNE7V.js → chunk-CJGVEABL.js} +13 -13
  17. package/Build/Workers/{chunk-B34JXFHF.js → chunk-DYJHEP3B.js} +5 -5
  18. package/Build/Workers/{chunk-J7BMSSY7.js → chunk-E3H7AVMK.js} +13 -13
  19. package/Build/Workers/{chunk-TOHDFUJM.js → chunk-EZNAJPP5.js} +4 -4
  20. package/Build/Workers/{chunk-K62EHZFT.js → chunk-F7ZI463G.js} +15 -15
  21. package/Build/Workers/{chunk-EJ5DT5BP.js → chunk-FMZ5CX6V.js} +1 -1
  22. package/Build/Workers/{chunk-OARMSJUU.js → chunk-FRAWHNSR.js} +2 -2
  23. package/Build/Workers/{chunk-S3UM4OKP.js → chunk-GGV2XJHE.js} +7 -7
  24. package/Build/Workers/{chunk-SAKQO5NX.js → chunk-GK4QU6QI.js} +2 -2
  25. package/Build/Workers/{chunk-LFUFGHL3.js → chunk-HYPB7FAV.js} +10 -10
  26. package/Build/Workers/{chunk-3SCCWLZS.js → chunk-I4HO2ED2.js} +9 -9
  27. package/Build/Workers/{chunk-K6SQV4IS.js → chunk-IGINOLDX.js} +6 -6
  28. package/Build/Workers/{chunk-IXNXKVOB.js → chunk-ISQSYLZY.js} +4 -4
  29. package/Build/Workers/{chunk-PM76TX2X.js → chunk-JZAMRL5I.js} +6 -6
  30. package/Build/Workers/{chunk-CBE4HRBH.js → chunk-K5G2WELR.js} +7 -7
  31. package/Build/Workers/{chunk-EHGQQA7C.js → chunk-L5SO4Y5V.js} +1 -1
  32. package/Build/Workers/{chunk-M2AA2ARJ.js → chunk-LCMJQVIF.js} +11 -11
  33. package/Build/Workers/{chunk-HI73PIPQ.js → chunk-MWJW37I7.js} +2 -2
  34. package/Build/Workers/{chunk-WAJNX74N.js → chunk-NAGMYRDW.js} +27 -20
  35. package/Build/Workers/{chunk-WUIDEXAN.js → chunk-OYO6TKMU.js} +7 -7
  36. package/Build/Workers/{chunk-YVGU235V.js → chunk-PUTA3AE2.js} +4 -4
  37. package/Build/Workers/{chunk-ZWSWJYJP.js → chunk-Q5BHMNKU.js} +13 -13
  38. package/Build/Workers/{chunk-LQT2ZK7D.js → chunk-QTEX3Y4V.js} +17 -17
  39. package/Build/Workers/{chunk-UBAHTE4Q.js → chunk-QZKN2RXM.js} +1 -1
  40. package/Build/Workers/{chunk-T34EOLFR.js → chunk-RO2Z3LCR.js} +14 -14
  41. package/Build/Workers/{chunk-PTFIVVLX.js → chunk-RRN6LRDX.js} +12 -12
  42. package/Build/Workers/{chunk-B6IJY6AN.js → chunk-SLIA3GQP.js} +7 -7
  43. package/Build/Workers/{chunk-GIOZHX7U.js → chunk-TFCOEX3W.js} +2 -2
  44. package/Build/Workers/{chunk-KRVALCCI.js → chunk-TU6ZXHVU.js} +5 -5
  45. package/Build/Workers/{chunk-54I6VSRP.js → chunk-VJ2PDF64.js} +6 -6
  46. package/Build/Workers/{chunk-BMFWWTD7.js → chunk-VMVPONIV.js} +5 -5
  47. package/Build/Workers/{chunk-CNPP6TQ2.js → chunk-WPXU45PH.js} +4 -4
  48. package/Build/Workers/{chunk-2ONAV62A.js → chunk-XDHM4G3P.js} +7 -7
  49. package/Build/Workers/{chunk-KO232FLP.js → chunk-XED3RXKO.js} +2 -2
  50. package/Build/Workers/{chunk-5I3LPAS7.js → chunk-YNYCGTQH.js} +5 -5
  51. package/Build/Workers/{chunk-THDHWSEJ.js → chunk-Z4SI54EB.js} +4 -4
  52. package/Build/Workers/{chunk-R2KGFZBA.js → chunk-ZVDLC3T4.js} +13 -13
  53. package/Build/Workers/combineGeometry.js +22 -22
  54. package/Build/Workers/createBoxGeometry.js +16 -16
  55. package/Build/Workers/createBoxOutlineGeometry.js +14 -14
  56. package/Build/Workers/createCircleGeometry.js +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 +22 -22
  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 +30 -30
  75. package/Build/Workers/createPolygonOutlineGeometry.js +28 -28
  76. package/Build/Workers/createPolylineGeometry.js +23 -23
  77. package/Build/Workers/createPolylineVolumeGeometry.js +29 -29
  78. package/Build/Workers/createPolylineVolumeOutlineGeometry.js +25 -25
  79. package/Build/Workers/createRectangleGeometry.js +25 -25
  80. package/Build/Workers/createRectangleOutlineGeometry.js +18 -18
  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 +20 -20
  91. package/Build/Workers/createVerticesFromHeightmap.js +20 -20
  92. package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +17 -17
  93. package/Build/Workers/createWallGeometry.js +22 -22
  94. package/Build/Workers/createWallOutlineGeometry.js +21 -21
  95. package/Build/Workers/decodeDraco.js +15 -14
  96. package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
  97. package/Build/Workers/decodeI3S.js +10 -10
  98. package/Build/Workers/transcodeKTX2.js +50 -43
  99. package/Build/Workers/transferTypedArrayTest.js +1 -1
  100. package/Build/Workers/upsampleQuantizedTerrainMesh.js +20 -20
  101. package/Source/Core/Color.js +3 -3
  102. package/Source/Core/Credit.js +3 -3
  103. package/Source/Core/DistanceDisplayCondition.js +3 -3
  104. package/Source/Core/EllipsoidRhumbLine.js +1 -1
  105. package/Source/Core/Ion.js +1 -1
  106. package/Source/Core/OrientedBoundingBox.js +2 -2
  107. package/Source/Core/PolygonGeometryLibrary.js +26 -4
  108. package/Source/Core/Spherical.js +3 -3
  109. package/Source/Core/TexturePacker.js +166 -0
  110. package/Source/Core/writeTextToCanvas.js +0 -1
  111. package/Source/DataSources/BillboardVisualizer.js +3 -3
  112. package/Source/DataSources/BoundingSphereState.js +3 -3
  113. package/Source/DataSources/DataSourceClock.js +1 -1
  114. package/Source/DataSources/DataSourceDisplay.js +5 -2
  115. package/Source/DataSources/EntityCluster.js +44 -19
  116. package/Source/Renderer/AutomaticUniforms.js +2 -2
  117. package/Source/Renderer/Context.js +0 -4
  118. package/Source/Renderer/Texture.js +6 -5
  119. package/Source/Renderer/TextureAtlas.js +802 -0
  120. package/Source/Scene/ArcGisMapService.js +1 -1
  121. package/Source/Scene/Billboard.js +87 -142
  122. package/Source/Scene/BillboardCollection.js +132 -202
  123. package/Source/Scene/BillboardLoadState.js +44 -0
  124. package/Source/Scene/BillboardTexture.js +348 -0
  125. package/Source/Scene/Camera.js +2 -2
  126. package/Source/Scene/Cesium3DTile.js +56 -28
  127. package/Source/Scene/Cesium3DTilesVoxelProvider.js +403 -132
  128. package/Source/Scene/Cesium3DTilesetStatistics.js +0 -1
  129. package/Source/Scene/ClippingPolygon.js +2 -2
  130. package/Source/Scene/Expression.js +1 -0
  131. package/Source/Scene/GltfDracoLoader.js +45 -0
  132. package/Source/Scene/GltfIndexBufferLoader.js +5 -0
  133. package/Source/Scene/GltfLoader.js +22 -9
  134. package/Source/Scene/GltfVertexBufferLoader.js +13 -0
  135. package/Source/Scene/ITwinData.js +47 -1
  136. package/Source/Scene/ImageryLayer.js +1 -1
  137. package/Source/Scene/ImplicitSubtree.js +2 -0
  138. package/Source/Scene/KeyframeNode.js +16 -2
  139. package/Source/Scene/Label.js +1 -1
  140. package/Source/Scene/LabelCollection.js +212 -193
  141. package/Source/Scene/Megatexture.js +145 -81
  142. package/Source/Scene/Model/CustomShader.js +0 -2
  143. package/Source/Scene/Model/Model.js +1 -1
  144. package/Source/Scene/Model/ModelUtility.js +5 -1
  145. package/Source/Scene/Multiple3DTileContent.js +21 -8
  146. package/Source/Scene/PointPrimitive.js +1 -1
  147. package/Source/Scene/ResourceCache.js +17 -1
  148. package/Source/Scene/Scene.js +39 -15
  149. package/Source/Scene/ScreenSpaceCameraController.js +0 -8
  150. package/Source/Scene/SpatialNode.js +4 -11
  151. package/Source/Scene/Vector3DTilePoints.js +2 -5
  152. package/Source/Scene/VoxelBoxShape.js +12 -5
  153. package/Source/Scene/VoxelCell.js +6 -5
  154. package/Source/Scene/VoxelContent.js +171 -107
  155. package/Source/Scene/VoxelCylinderShape.js +65 -58
  156. package/Source/Scene/VoxelEllipsoidShape.js +15 -5
  157. package/Source/Scene/VoxelMetadataOrder.js +12 -0
  158. package/Source/Scene/VoxelPrimitive.js +245 -53
  159. package/Source/Scene/VoxelProvider.js +44 -29
  160. package/Source/Scene/VoxelRenderResources.js +30 -7
  161. package/Source/Scene/VoxelShape.js +10 -3
  162. package/Source/Scene/VoxelTraversal.js +326 -166
  163. package/Source/Scene/WebMapTileServiceImageryProvider.js +2 -2
  164. package/Source/Scene/createGooglePhotorealistic3DTileset.js +5 -8
  165. package/Source/Scene/processVoxelProperties.js +3 -0
  166. package/Source/Shaders/GlobeFS.glsl +10 -1
  167. package/Source/Shaders/GlobeFS.js +10 -1
  168. package/Source/Shaders/PolylineCommon.glsl +1 -1
  169. package/Source/Shaders/PolylineCommon.js +1 -1
  170. package/Source/Shaders/Voxels/Megatexture.glsl +4 -16
  171. package/Source/Shaders/Voxels/Megatexture.js +4 -16
  172. package/Source/Shaders/Voxels/Octree.glsl +44 -7
  173. package/Source/Shaders/Voxels/Octree.js +44 -7
  174. package/Source/Shaders/Voxels/VoxelFS.glsl +9 -15
  175. package/Source/Shaders/Voxels/VoxelFS.js +9 -15
  176. package/Source/Shaders/Voxels/convertUvToCylinder.glsl +15 -15
  177. package/Source/Shaders/Voxels/convertUvToCylinder.js +15 -15
  178. package/Source/Widget/CesiumWidget.js +16 -10
  179. package/Source/Workers/decodeDraco.js +4 -4
  180. package/index.d.ts +321 -110
  181. package/index.js +209 -205
  182. package/package.json +2 -2
  183. package/Source/Scene/TextureAtlas.js +0 -558
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.125
4
+ * Version 1.127
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,49 +25,49 @@
25
25
 
26
26
  import {
27
27
  WallGeometryLibrary_default
28
- } from "./chunk-EYZFEJX3.js";
29
- import "./chunk-M2AA2ARJ.js";
30
- import "./chunk-54I6VSRP.js";
31
- import "./chunk-5I3LPAS7.js";
32
- import "./chunk-MGABCOOH.js";
33
- import "./chunk-APCS5YJI.js";
34
- import "./chunk-OZTFRHA2.js";
28
+ } from "./chunk-B2UQN3DH.js";
29
+ import "./chunk-LCMJQVIF.js";
30
+ import "./chunk-VJ2PDF64.js";
31
+ import "./chunk-YNYCGTQH.js";
32
+ import "./chunk-3LZF23RY.js";
33
+ import "./chunk-25TOENEE.js";
34
+ import "./chunk-3JZGPJMZ.js";
35
35
  import {
36
36
  IndexDatatype_default
37
- } from "./chunk-BMFWWTD7.js";
37
+ } from "./chunk-VMVPONIV.js";
38
38
  import {
39
39
  GeometryAttributes_default
40
- } from "./chunk-KO232FLP.js";
40
+ } from "./chunk-XED3RXKO.js";
41
41
  import {
42
42
  GeometryAttribute_default,
43
43
  Geometry_default,
44
44
  PrimitiveType_default
45
- } from "./chunk-CBE4HRBH.js";
45
+ } from "./chunk-K5G2WELR.js";
46
46
  import {
47
47
  BoundingSphere_default
48
- } from "./chunk-B6IJY6AN.js";
49
- import "./chunk-2ONAV62A.js";
48
+ } from "./chunk-SLIA3GQP.js";
49
+ import "./chunk-XDHM4G3P.js";
50
50
  import {
51
51
  ComponentDatatype_default
52
- } from "./chunk-B34JXFHF.js";
52
+ } from "./chunk-DYJHEP3B.js";
53
53
  import {
54
54
  Cartesian3_default,
55
55
  Ellipsoid_default
56
- } from "./chunk-KRVALCCI.js";
56
+ } from "./chunk-TU6ZXHVU.js";
57
57
  import {
58
58
  Math_default
59
- } from "./chunk-TOHDFUJM.js";
60
- import "./chunk-AXYZUG4N.js";
61
- import "./chunk-SAKQO5NX.js";
59
+ } from "./chunk-EZNAJPP5.js";
60
+ import "./chunk-5S2B46UQ.js";
61
+ import "./chunk-GK4QU6QI.js";
62
62
  import {
63
63
  defaultValue_default
64
- } from "./chunk-UBAHTE4Q.js";
64
+ } from "./chunk-QZKN2RXM.js";
65
65
  import {
66
66
  DeveloperError_default
67
- } from "./chunk-FNCXBBCF.js";
67
+ } from "./chunk-2AVIUB5H.js";
68
68
  import {
69
69
  defined_default
70
- } from "./chunk-OGRXNUR2.js";
70
+ } from "./chunk-7ITUZTFH.js";
71
71
 
72
72
  // packages/engine/Source/Core/WallOutlineGeometry.js
73
73
  var scratchCartesian3Position1 = new Cartesian3_default();
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.125
4
+ * Version 1.127
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,27 +25,27 @@
25
25
 
26
26
  import {
27
27
  require_draco_decoder_nodejs
28
- } from "./chunk-GIOZHX7U.js";
28
+ } from "./chunk-TFCOEX3W.js";
29
29
  import {
30
30
  createTaskProcessorWorker_default
31
- } from "./chunk-OARMSJUU.js";
31
+ } from "./chunk-FRAWHNSR.js";
32
32
  import {
33
33
  IndexDatatype_default
34
- } from "./chunk-BMFWWTD7.js";
34
+ } from "./chunk-VMVPONIV.js";
35
35
  import {
36
36
  ComponentDatatype_default
37
- } from "./chunk-B34JXFHF.js";
38
- import "./chunk-TOHDFUJM.js";
39
- import "./chunk-AXYZUG4N.js";
37
+ } from "./chunk-DYJHEP3B.js";
38
+ import "./chunk-EZNAJPP5.js";
39
+ import "./chunk-5S2B46UQ.js";
40
40
  import {
41
41
  RuntimeError_default
42
- } from "./chunk-SAKQO5NX.js";
43
- import "./chunk-UBAHTE4Q.js";
44
- import "./chunk-FNCXBBCF.js";
42
+ } from "./chunk-GK4QU6QI.js";
43
+ import "./chunk-QZKN2RXM.js";
44
+ import "./chunk-2AVIUB5H.js";
45
45
  import {
46
46
  __toESM,
47
47
  defined_default
48
- } from "./chunk-OGRXNUR2.js";
48
+ } from "./chunk-7ITUZTFH.js";
49
49
 
50
50
  // packages/engine/Source/Workers/decodeDraco.js
51
51
  var import_draco_decoder_nodejs = __toESM(require_draco_decoder_nodejs(), 1);
@@ -296,10 +296,11 @@ function decodePointCloud(parameters) {
296
296
  }
297
297
  function decodePrimitive(parameters) {
298
298
  const dracoDecoder = new draco.Decoder();
299
- const attributesToSkip = ["POSITION", "NORMAL", "COLOR", "TEX_COORD"];
300
299
  if (parameters.dequantizeInShader) {
301
- for (let i = 0; i < attributesToSkip.length; ++i) {
302
- dracoDecoder.SkipAttributeTransform(draco[attributesToSkip[i]]);
300
+ for (let i = 0; i < parameters.attributesToSkipTransform.length; ++i) {
301
+ dracoDecoder.SkipAttributeTransform(
302
+ draco[parameters.attributesToSkipTransform[i]]
303
+ );
303
304
  }
304
305
  }
305
306
  const bufferView = parameters.bufferView;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.125
4
+ * Version 1.127
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,18 +25,18 @@
25
25
 
26
26
  import {
27
27
  createTaskProcessorWorker_default
28
- } from "./chunk-OARMSJUU.js";
28
+ } from "./chunk-FRAWHNSR.js";
29
29
  import {
30
30
  RuntimeError_default
31
- } from "./chunk-SAKQO5NX.js";
31
+ } from "./chunk-GK4QU6QI.js";
32
32
  import {
33
33
  Check_default
34
- } from "./chunk-FNCXBBCF.js";
34
+ } from "./chunk-2AVIUB5H.js";
35
35
  import {
36
36
  __commonJS,
37
37
  __toESM,
38
38
  defined_default
39
- } from "./chunk-OGRXNUR2.js";
39
+ } from "./chunk-7ITUZTFH.js";
40
40
 
41
41
  // node_modules/pako/lib/zlib/adler32.js
42
42
  var require_adler32 = __commonJS({
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.125
4
+ * Version 1.127
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,35 +25,35 @@
25
25
 
26
26
  import {
27
27
  require_draco_decoder_nodejs
28
- } from "./chunk-GIOZHX7U.js";
28
+ } from "./chunk-TFCOEX3W.js";
29
29
  import {
30
30
  Color_default
31
- } from "./chunk-PM76TX2X.js";
31
+ } from "./chunk-JZAMRL5I.js";
32
32
  import {
33
33
  createTaskProcessorWorker_default
34
- } from "./chunk-OARMSJUU.js";
34
+ } from "./chunk-FRAWHNSR.js";
35
35
  import {
36
36
  WebMercatorProjection_default
37
- } from "./chunk-K6SQV4IS.js";
37
+ } from "./chunk-IGINOLDX.js";
38
38
  import {
39
39
  Cartesian3_default,
40
40
  Cartographic_default,
41
41
  Ellipsoid_default,
42
42
  Matrix3_default
43
- } from "./chunk-KRVALCCI.js";
43
+ } from "./chunk-TU6ZXHVU.js";
44
44
  import {
45
45
  Math_default
46
- } from "./chunk-TOHDFUJM.js";
46
+ } from "./chunk-EZNAJPP5.js";
47
47
  import {
48
48
  defaultValue_default
49
- } from "./chunk-UBAHTE4Q.js";
49
+ } from "./chunk-QZKN2RXM.js";
50
50
  import {
51
51
  Check_default
52
- } from "./chunk-FNCXBBCF.js";
52
+ } from "./chunk-2AVIUB5H.js";
53
53
  import {
54
54
  __toESM,
55
55
  defined_default
56
- } from "./chunk-OGRXNUR2.js";
56
+ } from "./chunk-7ITUZTFH.js";
57
57
 
58
58
  // packages/engine/Source/Workers/decodeI3S.js
59
59
  var import_draco_decoder_nodejs = __toESM(require_draco_decoder_nodejs(), 1);
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.125
4
+ * Version 1.127
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,25 +25,25 @@
25
25
 
26
26
  import {
27
27
  createTaskProcessorWorker_default
28
- } from "./chunk-OARMSJUU.js";
28
+ } from "./chunk-FRAWHNSR.js";
29
29
  import {
30
30
  WebGLConstants_default
31
- } from "./chunk-AXYZUG4N.js";
31
+ } from "./chunk-5S2B46UQ.js";
32
32
  import {
33
33
  RuntimeError_default
34
- } from "./chunk-SAKQO5NX.js";
34
+ } from "./chunk-GK4QU6QI.js";
35
35
  import {
36
36
  defaultValue_default
37
- } from "./chunk-UBAHTE4Q.js";
37
+ } from "./chunk-QZKN2RXM.js";
38
38
  import {
39
39
  Check_default
40
- } from "./chunk-FNCXBBCF.js";
40
+ } from "./chunk-2AVIUB5H.js";
41
41
  import {
42
42
  __commonJS,
43
43
  __require,
44
44
  __toESM,
45
45
  defined_default
46
- } from "./chunk-OGRXNUR2.js";
46
+ } from "./chunk-7ITUZTFH.js";
47
47
 
48
48
  // packages/engine/Source/ThirdParty/Workers/basis_transcoder.js
49
49
  var require_basis_transcoder = __commonJS({
@@ -2918,21 +2918,20 @@ var KHR_DF_TRANSFER_SRGB = 2;
2918
2918
  var KHR_DF_PRIMARIES_BT709 = 1;
2919
2919
  var KHR_DF_SAMPLE_DATATYPE_SIGNED = 64;
2920
2920
  var VK_FORMAT_UNDEFINED = 0;
2921
- var KTX2Container = class {
2922
- constructor() {
2923
- this.vkFormat = VK_FORMAT_UNDEFINED;
2924
- this.typeSize = 1;
2925
- this.pixelWidth = 0;
2926
- this.pixelHeight = 0;
2927
- this.pixelDepth = 0;
2928
- this.layerCount = 0;
2929
- this.faceCount = 1;
2930
- this.supercompressionScheme = KHR_SUPERCOMPRESSION_NONE;
2931
- this.levels = [];
2932
- this.dataFormatDescriptor = [{
2921
+ function createDefaultContainer() {
2922
+ return {
2923
+ vkFormat: VK_FORMAT_UNDEFINED,
2924
+ typeSize: 1,
2925
+ pixelWidth: 0,
2926
+ pixelHeight: 0,
2927
+ pixelDepth: 0,
2928
+ layerCount: 0,
2929
+ faceCount: 1,
2930
+ supercompressionScheme: KHR_SUPERCOMPRESSION_NONE,
2931
+ levels: [],
2932
+ dataFormatDescriptor: [{
2933
2933
  vendorId: KHR_DF_VENDORID_KHRONOS,
2934
2934
  descriptorType: KHR_DF_KHR_DESCRIPTORTYPE_BASICFORMAT,
2935
- descriptorBlockSize: 0,
2936
2935
  versionNumber: KHR_DF_VERSION,
2937
2936
  colorModel: KHR_DF_MODEL_UNSPECIFIED,
2938
2937
  colorPrimaries: KHR_DF_PRIMARIES_BT709,
@@ -2941,11 +2940,11 @@ var KTX2Container = class {
2941
2940
  texelBlockDimension: [0, 0, 0, 0],
2942
2941
  bytesPlane: [0, 0, 0, 0, 0, 0, 0, 0],
2943
2942
  samples: []
2944
- }];
2945
- this.keyValue = {};
2946
- this.globalData = null;
2947
- }
2948
- };
2943
+ }],
2944
+ keyValue: {},
2945
+ globalData: null
2946
+ };
2947
+ }
2949
2948
  var BufferReader = class {
2950
2949
  constructor(data, byteOffset, byteLength, littleEndian) {
2951
2950
  this._dataView = void 0;
@@ -3037,7 +3036,7 @@ function read2(data) {
3037
3036
  id[11] !== KTX2_ID[11]) {
3038
3037
  throw new Error("Missing KTX 2.0 identifier.");
3039
3038
  }
3040
- const container = new KTX2Container();
3039
+ const container = createDefaultContainer();
3041
3040
  const headerByteLength = 17 * Uint32Array.BYTES_PER_ELEMENT;
3042
3041
  const headerReader = new BufferReader(data, KTX2_ID.length, headerByteLength, true);
3043
3042
  container.vkFormat = headerReader._nextUint32();
@@ -3064,33 +3063,41 @@ function read2(data) {
3064
3063
  });
3065
3064
  }
3066
3065
  const dfdReader = new BufferReader(data, dfdByteOffset, dfdByteLength, true);
3066
+ dfdReader._skip(4);
3067
+ const vendorId = dfdReader._nextUint16();
3068
+ const descriptorType = dfdReader._nextUint16();
3069
+ const versionNumber = dfdReader._nextUint16();
3070
+ const descriptorBlockSize = dfdReader._nextUint16();
3071
+ const colorModel = dfdReader._nextUint8();
3072
+ const colorPrimaries = dfdReader._nextUint8();
3073
+ const transferFunction = dfdReader._nextUint8();
3074
+ const flags = dfdReader._nextUint8();
3075
+ const texelBlockDimension = [dfdReader._nextUint8(), dfdReader._nextUint8(), dfdReader._nextUint8(), dfdReader._nextUint8()];
3076
+ const bytesPlane = [dfdReader._nextUint8(), dfdReader._nextUint8(), dfdReader._nextUint8(), dfdReader._nextUint8(), dfdReader._nextUint8(), dfdReader._nextUint8(), dfdReader._nextUint8(), dfdReader._nextUint8()];
3077
+ const samples = [];
3067
3078
  const dfd = {
3068
- vendorId: dfdReader._skip(
3069
- 4
3070
- /* totalSize */
3071
- )._nextUint16(),
3072
- descriptorType: dfdReader._nextUint16(),
3073
- versionNumber: dfdReader._nextUint16(),
3074
- descriptorBlockSize: dfdReader._nextUint16(),
3075
- colorModel: dfdReader._nextUint8(),
3076
- colorPrimaries: dfdReader._nextUint8(),
3077
- transferFunction: dfdReader._nextUint8(),
3078
- flags: dfdReader._nextUint8(),
3079
- texelBlockDimension: [dfdReader._nextUint8(), dfdReader._nextUint8(), dfdReader._nextUint8(), dfdReader._nextUint8()],
3080
- bytesPlane: [dfdReader._nextUint8(), dfdReader._nextUint8(), dfdReader._nextUint8(), dfdReader._nextUint8(), dfdReader._nextUint8(), dfdReader._nextUint8(), dfdReader._nextUint8(), dfdReader._nextUint8()],
3081
- samples: []
3079
+ vendorId,
3080
+ descriptorType,
3081
+ versionNumber,
3082
+ colorModel,
3083
+ colorPrimaries,
3084
+ transferFunction,
3085
+ flags,
3086
+ texelBlockDimension,
3087
+ bytesPlane,
3088
+ samples
3082
3089
  };
3083
3090
  const sampleStart = 6;
3084
3091
  const sampleWords = 4;
3085
- const numSamples = (dfd.descriptorBlockSize / 4 - sampleStart) / sampleWords;
3092
+ const numSamples = (descriptorBlockSize / 4 - sampleStart) / sampleWords;
3086
3093
  for (let i = 0; i < numSamples; i++) {
3087
3094
  const sample = {
3088
3095
  bitOffset: dfdReader._nextUint16(),
3089
3096
  bitLength: dfdReader._nextUint8(),
3090
3097
  channelType: dfdReader._nextUint8(),
3091
3098
  samplePosition: [dfdReader._nextUint8(), dfdReader._nextUint8(), dfdReader._nextUint8(), dfdReader._nextUint8()],
3092
- sampleLower: -Infinity,
3093
- sampleUpper: Infinity
3099
+ sampleLower: Number.NEGATIVE_INFINITY,
3100
+ sampleUpper: Number.POSITIVE_INFINITY
3094
3101
  };
3095
3102
  if (sample.channelType & KHR_DF_SAMPLE_DATATYPE_SIGNED) {
3096
3103
  sample.sampleLower = dfdReader._nextInt32();
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.125
4
+ * Version 1.127
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.125
4
+ * Version 1.127
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -26,49 +26,49 @@
26
26
  import {
27
27
  EllipsoidalOccluder_default,
28
28
  TerrainEncoding_default
29
- } from "./chunk-LFUFGHL3.js";
29
+ } from "./chunk-HYPB7FAV.js";
30
30
  import {
31
31
  createTaskProcessorWorker_default
32
- } from "./chunk-OARMSJUU.js";
32
+ } from "./chunk-FRAWHNSR.js";
33
33
  import {
34
34
  OrientedBoundingBox_default
35
- } from "./chunk-GSLKQJM2.js";
35
+ } from "./chunk-6EV4VOET.js";
36
36
  import {
37
37
  AttributeCompression_default
38
- } from "./chunk-IP7F2MVW.js";
39
- import "./chunk-WE4KF4AM.js";
40
- import "./chunk-2SRHVCFD.js";
41
- import "./chunk-APCS5YJI.js";
42
- import "./chunk-OZTFRHA2.js";
38
+ } from "./chunk-ARVZCY6X.js";
39
+ import "./chunk-B2Y4ZS6X.js";
40
+ import "./chunk-67ONR44K.js";
41
+ import "./chunk-25TOENEE.js";
42
+ import "./chunk-3JZGPJMZ.js";
43
43
  import {
44
44
  IndexDatatype_default
45
- } from "./chunk-BMFWWTD7.js";
45
+ } from "./chunk-VMVPONIV.js";
46
46
  import {
47
47
  BoundingSphere_default
48
- } from "./chunk-B6IJY6AN.js";
48
+ } from "./chunk-SLIA3GQP.js";
49
49
  import {
50
50
  Rectangle_default
51
- } from "./chunk-2ONAV62A.js";
52
- import "./chunk-B34JXFHF.js";
51
+ } from "./chunk-XDHM4G3P.js";
52
+ import "./chunk-DYJHEP3B.js";
53
53
  import {
54
54
  Cartesian2_default,
55
55
  Cartesian3_default,
56
56
  Cartographic_default,
57
57
  Ellipsoid_default
58
- } from "./chunk-KRVALCCI.js";
58
+ } from "./chunk-TU6ZXHVU.js";
59
59
  import {
60
60
  Math_default
61
- } from "./chunk-TOHDFUJM.js";
62
- import "./chunk-AXYZUG4N.js";
63
- import "./chunk-SAKQO5NX.js";
64
- import "./chunk-UBAHTE4Q.js";
61
+ } from "./chunk-EZNAJPP5.js";
62
+ import "./chunk-5S2B46UQ.js";
63
+ import "./chunk-GK4QU6QI.js";
64
+ import "./chunk-QZKN2RXM.js";
65
65
  import {
66
66
  Check_default,
67
67
  DeveloperError_default
68
- } from "./chunk-FNCXBBCF.js";
68
+ } from "./chunk-2AVIUB5H.js";
69
69
  import {
70
70
  defined_default
71
- } from "./chunk-OGRXNUR2.js";
71
+ } from "./chunk-7ITUZTFH.js";
72
72
 
73
73
  // packages/engine/Source/Core/Intersections2D.js
74
74
  var Intersections2D = {};
@@ -536,8 +536,8 @@ Color.clone = function (color, result) {
536
536
  /**
537
537
  * Returns true if the first Color equals the second color.
538
538
  *
539
- * @param {Color} left The first Color to compare for equality.
540
- * @param {Color} right The second Color to compare for equality.
539
+ * @param {Color} [left] The first Color to compare for equality.
540
+ * @param {Color} [right] The second Color to compare for equality.
541
541
  * @returns {boolean} <code>true</code> if the Colors are equal; otherwise, <code>false</code>.
542
542
  */
543
543
  Color.equals = function (left, right) {
@@ -577,7 +577,7 @@ Color.prototype.clone = function (result) {
577
577
  /**
578
578
  * Returns true if this Color equals other.
579
579
  *
580
- * @param {Color} other The Color to compare for equality.
580
+ * @param {Color} [other] The Color to compare for equality.
581
581
  * @returns {boolean} <code>true</code> if the Colors are equal; otherwise, <code>false</code>.
582
582
  */
583
583
  Color.prototype.equals = function (other) {
@@ -115,8 +115,8 @@ Object.defineProperties(Credit.prototype, {
115
115
  /**
116
116
  * Returns true if the credits are equal
117
117
  *
118
- * @param {Credit} left The first credit
119
- * @param {Credit} right The second credit
118
+ * @param {Credit} [left] The first credit
119
+ * @param {Credit} [right] The second credit
120
120
  * @returns {boolean} <code>true</code> if left and right are equal, <code>false</code> otherwise.
121
121
  */
122
122
  Credit.equals = function (left, right) {
@@ -132,7 +132,7 @@ Credit.equals = function (left, right) {
132
132
  /**
133
133
  * Returns true if the credits are equal
134
134
  *
135
- * @param {Credit} credit The credit to compare to.
135
+ * @param {Credit} [credit] The credit to compare to.
136
136
  * @returns {boolean} <code>true</code> if left and right are equal, <code>false</code> otherwise.
137
137
  */
138
138
  Credit.prototype.equals = function (credit) {
@@ -115,8 +115,8 @@ DistanceDisplayCondition.unpack = function (array, startingIndex, result) {
115
115
  /**
116
116
  * Determines if two distance display conditions are equal.
117
117
  *
118
- * @param {DistanceDisplayCondition} left A distance display condition.
119
- * @param {DistanceDisplayCondition} right Another distance display condition.
118
+ * @param {DistanceDisplayCondition} [left] A distance display condition.
119
+ * @param {DistanceDisplayCondition} [right] Another distance display condition.
120
120
  * @return {boolean} Whether the two distance display conditions are equal.
121
121
  */
122
122
  DistanceDisplayCondition.equals = function (left, right) {
@@ -163,7 +163,7 @@ DistanceDisplayCondition.prototype.clone = function (result) {
163
163
  /**
164
164
  * Determines if this distance display condition is equal to another.
165
165
  *
166
- * @param {DistanceDisplayCondition} other Another distance display condition.
166
+ * @param {DistanceDisplayCondition} [other] Another distance display condition.
167
167
  * @return {boolean} Whether this distance display condition is equal to the other.
168
168
  */
169
169
  DistanceDisplayCondition.prototype.equals = function (other) {
@@ -562,7 +562,7 @@ EllipsoidRhumbLine.prototype.interpolateUsingFraction = function (
562
562
  /**
563
563
  * Provides the location of a point at the indicated distance along the rhumb line.
564
564
  *
565
- * @param {number} distance The distance from the inital point to the point of interest along the rhumbLine.
565
+ * @param {number} distance The distance from the initial point to the point of interest along the rhumbLine.
566
566
  * @param {Cartographic} [result] The object in which to store the result.
567
567
  * @returns {Cartographic} The location of the point along the rhumb line.
568
568
  *
@@ -4,7 +4,7 @@ import Resource from "./Resource.js";
4
4
 
5
5
  let defaultTokenCredit;
6
6
  const defaultAccessToken =
7
- "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIzYTBjYzY2NC0yMGEyLTQxZDYtYmI2MC1hMWE4ZTBlMGNlNjciLCJpZCI6MjU5LCJpYXQiOjE3MzU4NTEwMzF9.nshpaoC5qpRD4F5diwcjwJ3tddp1OjCSXoMrv37Ales";
7
+ "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJiNTZhYmEzOS1hNmFhLTQ1OTAtODk0Mi1lM2U3M2FlMjIxZTMiLCJpZCI6MjU5LCJpYXQiOjE3NDEwMTMyNzF9.J_SThPuEuresJ_TioZat6GbGcDLEruo269cV5QQxiqM";
8
8
  /**
9
9
  * Default settings for accessing the Cesium ion API.
10
10
  *
@@ -1236,8 +1236,8 @@ OrientedBoundingBox.prototype.isOccluded = function (occluder) {
1236
1236
  * Compares the provided OrientedBoundingBox componentwise and returns
1237
1237
  * <code>true</code> if they are equal, <code>false</code> otherwise.
1238
1238
  *
1239
- * @param {OrientedBoundingBox} left The first OrientedBoundingBox.
1240
- * @param {OrientedBoundingBox} right The second OrientedBoundingBox.
1239
+ * @param {OrientedBoundingBox} [left] The first OrientedBoundingBox.
1240
+ * @param {OrientedBoundingBox} [right] The second OrientedBoundingBox.
1241
1241
  * @returns {boolean} <code>true</code> if left and right are equal, <code>false</code> otherwise.
1242
1242
  */
1243
1243
  OrientedBoundingBox.equals = function (left, right) {
@@ -312,6 +312,18 @@ PolygonGeometryLibrary.subdivideTexcoordRhumbLine = function (
312
312
  return texcoords;
313
313
  };
314
314
 
315
+ /**
316
+ * Subdivide the line between 2 points every minDistance length
317
+ * If the points are already closer than minDistance the first will be returned
318
+ *
319
+ * @private
320
+ * @param {Ellipsoid} ellipsoid
321
+ * @param {Cartesian3} p0 start point
322
+ * @param {Cartesian3} p1 end point
323
+ * @param {number} minDistance minimum distance between points in radians
324
+ * @param {number[]} [result] if provided positions will be packed into this array starting at index 0
325
+ * @returns {number[]} Cartesian3 positions packed into an array
326
+ */
315
327
  PolygonGeometryLibrary.subdivideRhumbLine = function (
316
328
  ellipsoid,
317
329
  p0,
@@ -323,15 +335,25 @@ PolygonGeometryLibrary.subdivideRhumbLine = function (
323
335
  const c1 = ellipsoid.cartesianToCartographic(p1, scratchCartographic1);
324
336
  const rhumb = new EllipsoidRhumbLine(c0, c1, ellipsoid);
325
337
 
338
+ if (!defined(result)) {
339
+ result = [];
340
+ }
341
+
342
+ if (rhumb.surfaceDistance <= minDistance) {
343
+ // no need to try and subdivide a line that's already shorter than the min distance
344
+ // this also inherently handles duplicated points which would have 0 distance
345
+ result.length = 3;
346
+ result[0] = p0.x;
347
+ result[1] = p0.y;
348
+ result[2] = p0.z;
349
+ return result;
350
+ }
351
+
326
352
  const n = rhumb.surfaceDistance / minDistance;
327
353
  const countDivide = Math.max(0, Math.ceil(CesiumMath.log2(n)));
328
354
  const numVertices = Math.pow(2, countDivide);
329
355
  const distanceBetweenVertices = rhumb.surfaceDistance / numVertices;
330
356
 
331
- if (!defined(result)) {
332
- result = [];
333
- }
334
-
335
357
  const positions = result;
336
358
  positions.length = numVertices * 3;
337
359
 
@@ -107,8 +107,8 @@ Spherical.normalize = function (spherical, result) {
107
107
  /**
108
108
  * Returns true if the first spherical is equal to the second spherical, false otherwise.
109
109
  *
110
- * @param {Spherical} left The first Spherical to be compared.
111
- * @param {Spherical} right The second Spherical to be compared.
110
+ * @param {Spherical} [left] The first Spherical to be compared.
111
+ * @param {Spherical} [right] The second Spherical to be compared.
112
112
  * @returns {boolean} true if the first spherical is equal to the second spherical, false otherwise.
113
113
  */
114
114
  Spherical.equals = function (left, right) {
@@ -145,7 +145,7 @@ Spherical.equalsEpsilon = function (left, right, epsilon) {
145
145
  /**
146
146
  * Returns true if this spherical is equal to the provided spherical, false otherwise.
147
147
  *
148
- * @param {Spherical} other The Spherical to be compared.
148
+ * @param {Spherical} [other] The Spherical to be compared.
149
149
  * @returns {boolean} true if this spherical is equal to the provided spherical, false otherwise.
150
150
  */
151
151
  Spherical.prototype.equals = function (other) {