@cesium/engine 13.0.0 → 14.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 (150) hide show
  1. package/Build/Workers/{chunk-BZMHXDKV.js → chunk-3JBEPBPL.js} +13 -13
  2. package/Build/Workers/{chunk-W2E67GLE.js → chunk-3LYROPON.js} +13 -13
  3. package/Build/Workers/{chunk-3ZMTG4X5.js → chunk-3PIZQT3I.js} +4 -4
  4. package/Build/Workers/{chunk-Q4MTXEB7.js → chunk-3QLSKXKF.js} +6 -6
  5. package/Build/Workers/{chunk-EXDSJZ7J.js → chunk-4CHMVQTQ.js} +4 -4
  6. package/Build/Workers/{chunk-2TSF7N76.js → chunk-5KWRW7YL.js} +2 -2
  7. package/Build/Workers/{chunk-KRCUHV7P.js → chunk-5S5OOA6U.js} +1 -1
  8. package/Build/Workers/{chunk-MSKD73KW.js → chunk-77XPS7ZA.js} +10 -10
  9. package/Build/Workers/{chunk-2IIE2UZ3.js → chunk-7EO56M5R.js} +2 -2
  10. package/Build/Workers/{chunk-H7BML7HH.js → chunk-7UHKH6M3.js} +6 -6
  11. package/Build/Workers/{chunk-KCCTLUKK.js → chunk-7ZB2RVIQ.js} +10 -10
  12. package/Build/Workers/{chunk-OUIF26MQ.js → chunk-B4GSRXE3.js} +6 -6
  13. package/Build/Workers/{chunk-D3VPMNUR.js → chunk-CI2HEJFC.js} +13 -13
  14. package/Build/Workers/{chunk-Z7OYBX6P.js → chunk-D7ZBZPHV.js} +5 -5
  15. package/Build/Workers/{chunk-GJZQSAES.js → chunk-DT5NFR5C.js} +7 -7
  16. package/Build/Workers/{chunk-ZIWULRRD.js → chunk-ED6GLQTK.js} +1 -1
  17. package/Build/Workers/{chunk-CQDSGG3R.js → chunk-EWDGNOJE.js} +7 -7
  18. package/Build/Workers/{chunk-RGZWZ4PP.js → chunk-F4CUH4MR.js} +4 -4
  19. package/Build/Workers/{chunk-6HWW6KNV.js → chunk-FFBJDW4A.js} +6 -6
  20. package/Build/Workers/{chunk-FLPIQK2R.js → chunk-FX4R4MTH.js} +6 -6
  21. package/Build/Workers/{chunk-2OD54CUD.js → chunk-FYGLNDKG.js} +7 -7
  22. package/Build/Workers/{chunk-YDEZMDB7.js → chunk-G3BVMPWG.js} +2 -2
  23. package/Build/Workers/{chunk-YBDL7YPF.js → chunk-HEZHXDYB.js} +1 -1
  24. package/Build/Workers/{chunk-RIQGQMS4.js → chunk-HKHQ3EDR.js} +4 -4
  25. package/Build/Workers/{chunk-PMNQULFU.js → chunk-HUFQVUMY.js} +7 -7
  26. package/Build/Workers/{chunk-6ZOS2ACR.js → chunk-J7IH4EYI.js} +7 -7
  27. package/Build/Workers/{chunk-RR4M3ZGF.js → chunk-JHBPC4LK.js} +7 -7
  28. package/Build/Workers/{chunk-WXJY6NDI.js → chunk-JPDKYBLF.js} +13 -13
  29. package/Build/Workers/{chunk-W2DVQETH.js → chunk-K4AH3TDT.js} +35 -21
  30. package/Build/Workers/{chunk-S4SCKDK4.js → chunk-KHWLAQVA.js} +1 -1
  31. package/Build/Workers/{chunk-XQP37R5E.js → chunk-KM6MITPF.js} +5 -5
  32. package/Build/Workers/{chunk-H4Y7ADFL.js → chunk-KSYBJA4M.js} +5 -5
  33. package/Build/Workers/{chunk-3VHIUS7I.js → chunk-LJBJM6VI.js} +6 -6
  34. package/Build/Workers/{chunk-MMILY4S7.js → chunk-LNSWJ43X.js} +11 -11
  35. package/Build/Workers/{chunk-CUMDCSMT.js → chunk-LOZ4NKY3.js} +11 -11
  36. package/Build/Workers/{chunk-4IM6WQEI.js → chunk-LS3KVHYY.js} +6 -6
  37. package/Build/Workers/{chunk-GBXJIWAZ.js → chunk-MVM4JV5U.js} +9 -9
  38. package/Build/Workers/{chunk-HMMPNR4Z.js → chunk-N2XAJBC6.js} +12 -12
  39. package/Build/Workers/{chunk-FANORJU6.js → chunk-OMXHEJTK.js} +2 -2
  40. package/Build/Workers/{chunk-GNG3V432.js → chunk-PWF4EY5P.js} +4 -4
  41. package/Build/Workers/{chunk-KKVKSTWC.js → chunk-Q4ZVWJXX.js} +5 -5
  42. package/Build/Workers/{chunk-RC5N5SJL.js → chunk-SDIDRZDG.js} +7 -7
  43. package/Build/Workers/{chunk-BLTSMJIP.js → chunk-TVL3F7IU.js} +1 -1
  44. package/Build/Workers/{chunk-22NU5WU5.js → chunk-TY4DKOWR.js} +2 -2
  45. package/Build/Workers/{chunk-DIAH2ZTB.js → chunk-VCNOFQYH.js} +9 -9
  46. package/Build/Workers/{chunk-BFNZUP2C.js → chunk-WEHZP4SE.js} +14 -13
  47. package/Build/Workers/{chunk-PD2MCNV7.js → chunk-WVNLSTOF.js} +2 -2
  48. package/Build/Workers/{chunk-T5H7YWC7.js → chunk-XK4OP6VA.js} +17 -17
  49. package/Build/Workers/{chunk-NVFEDMX4.js → chunk-YJX7X577.js} +15 -15
  50. package/Build/Workers/{chunk-4HS475MU.js → chunk-Z3QWTHI7.js} +14 -14
  51. package/Build/Workers/{chunk-OZZD3VY4.js → chunk-ZGFIT57T.js} +17 -17
  52. package/Build/Workers/{chunk-JISDBAYP.js → chunk-ZMNLEL6W.js} +5 -5
  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 +7 -7
  99. package/Build/Workers/transferTypedArrayTest.js +1 -1
  100. package/Build/Workers/upsampleQuantizedTerrainMesh.js +20 -20
  101. package/Source/Core/Check.d.ts +2 -1
  102. package/Source/Core/Color.js +3 -3
  103. package/Source/Core/Credit.js +3 -3
  104. package/Source/Core/DistanceDisplayCondition.js +3 -3
  105. package/Source/Core/ITwinPlatform.js +3 -38
  106. package/Source/Core/Ion.js +1 -1
  107. package/Source/Core/JulianDate.js +14 -7
  108. package/Source/Core/OrientedBoundingBox.js +2 -2
  109. package/Source/Core/Spherical.js +3 -3
  110. package/Source/Core/defined.d.ts +11 -0
  111. package/Source/Core/writeTextToCanvas.js +0 -1
  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/ModelGraphics.js +23 -1
  116. package/Source/DataSources/ModelVisualizer.js +22 -1
  117. package/Source/Renderer/AutomaticUniforms.js +2 -2
  118. package/Source/Scene/ArcGisMapService.js +1 -1
  119. package/Source/Scene/Billboard.js +1 -1
  120. package/Source/Scene/Cesium3DTile.js +56 -28
  121. package/Source/Scene/Cesium3DTilesVoxelProvider.js +17 -0
  122. package/Source/Scene/Cesium3DTileset.js +1 -1
  123. package/Source/Scene/ClippingPolygon.js +2 -2
  124. package/Source/Scene/DynamicEnvironmentMapManager.js +123 -66
  125. package/Source/Scene/GltfDracoLoader.js +45 -0
  126. package/Source/Scene/GltfIndexBufferLoader.js +5 -0
  127. package/Source/Scene/GltfLoader.js +17 -2
  128. package/Source/Scene/GltfVertexBufferLoader.js +13 -0
  129. package/Source/Scene/ITwinData.js +116 -0
  130. package/Source/Scene/ImageryLayer.js +1 -1
  131. package/Source/Scene/Label.js +1 -1
  132. package/Source/Scene/LabelCollection.js +0 -11
  133. package/Source/Scene/Model/Model.js +1 -1
  134. package/Source/Scene/Multiple3DTileContent.js +21 -8
  135. package/Source/Scene/PointPrimitive.js +1 -1
  136. package/Source/Scene/ResourceCache.js +17 -1
  137. package/Source/Scene/VoxelPrimitive.js +124 -0
  138. package/Source/Scene/VoxelProvider.js +10 -0
  139. package/Source/Scene/VoxelTraversal.js +88 -12
  140. package/Source/Scene/WebMapTileServiceImageryProvider.js +2 -2
  141. package/Source/Scene/createGooglePhotorealistic3DTileset.js +5 -8
  142. package/Source/Shaders/DepthPlaneVS.glsl +1 -1
  143. package/Source/Shaders/DepthPlaneVS.js +1 -1
  144. package/Source/Shaders/PolylineCommon.glsl +1 -1
  145. package/Source/Shaders/PolylineCommon.js +1 -1
  146. package/Source/Widget/CesiumWidget.js +16 -10
  147. package/Source/Workers/decodeDraco.js +4 -4
  148. package/index.d.ts +178 -42
  149. package/index.js +247 -247
  150. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.124
4
+ * Version 1.126
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,52 +25,52 @@
25
25
 
26
26
  import {
27
27
  WallGeometryLibrary_default
28
- } from "./chunk-6HWW6KNV.js";
29
- import "./chunk-MMILY4S7.js";
30
- import "./chunk-4IM6WQEI.js";
28
+ } from "./chunk-FFBJDW4A.js";
29
+ import "./chunk-LNSWJ43X.js";
30
+ import "./chunk-LS3KVHYY.js";
31
31
  import {
32
32
  VertexFormat_default
33
- } from "./chunk-EXDSJZ7J.js";
34
- import "./chunk-JISDBAYP.js";
35
- import "./chunk-Q4MTXEB7.js";
36
- import "./chunk-CQDSGG3R.js";
37
- import "./chunk-3VHIUS7I.js";
33
+ } from "./chunk-4CHMVQTQ.js";
34
+ import "./chunk-ZMNLEL6W.js";
35
+ import "./chunk-3QLSKXKF.js";
36
+ import "./chunk-EWDGNOJE.js";
37
+ import "./chunk-LJBJM6VI.js";
38
38
  import {
39
39
  IndexDatatype_default
40
- } from "./chunk-Z7OYBX6P.js";
40
+ } from "./chunk-D7ZBZPHV.js";
41
41
  import {
42
42
  GeometryAttributes_default
43
- } from "./chunk-22NU5WU5.js";
43
+ } from "./chunk-TY4DKOWR.js";
44
44
  import {
45
45
  GeometryAttribute_default,
46
46
  Geometry_default,
47
47
  PrimitiveType_default
48
- } from "./chunk-PMNQULFU.js";
48
+ } from "./chunk-HUFQVUMY.js";
49
49
  import {
50
50
  BoundingSphere_default
51
- } from "./chunk-2OD54CUD.js";
52
- import "./chunk-BFNZUP2C.js";
51
+ } from "./chunk-FYGLNDKG.js";
52
+ import "./chunk-WEHZP4SE.js";
53
53
  import {
54
54
  ComponentDatatype_default
55
- } from "./chunk-H4Y7ADFL.js";
55
+ } from "./chunk-KSYBJA4M.js";
56
56
  import {
57
57
  Cartesian3_default,
58
58
  Ellipsoid_default
59
- } from "./chunk-XQP37R5E.js";
59
+ } from "./chunk-KM6MITPF.js";
60
60
  import {
61
61
  Math_default
62
- } from "./chunk-RGZWZ4PP.js";
63
- import "./chunk-ZIWULRRD.js";
64
- import "./chunk-2TSF7N76.js";
62
+ } from "./chunk-F4CUH4MR.js";
63
+ import "./chunk-ED6GLQTK.js";
64
+ import "./chunk-5KWRW7YL.js";
65
65
  import {
66
66
  defaultValue_default
67
- } from "./chunk-BLTSMJIP.js";
67
+ } from "./chunk-TVL3F7IU.js";
68
68
  import {
69
69
  DeveloperError_default
70
- } from "./chunk-FANORJU6.js";
70
+ } from "./chunk-OMXHEJTK.js";
71
71
  import {
72
72
  defined_default
73
- } from "./chunk-S4SCKDK4.js";
73
+ } from "./chunk-KHWLAQVA.js";
74
74
 
75
75
  // packages/engine/Source/Core/WallGeometry.js
76
76
  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.124
4
+ * Version 1.126
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-6HWW6KNV.js";
29
- import "./chunk-MMILY4S7.js";
30
- import "./chunk-4IM6WQEI.js";
31
- import "./chunk-JISDBAYP.js";
32
- import "./chunk-Q4MTXEB7.js";
33
- import "./chunk-CQDSGG3R.js";
34
- import "./chunk-3VHIUS7I.js";
28
+ } from "./chunk-FFBJDW4A.js";
29
+ import "./chunk-LNSWJ43X.js";
30
+ import "./chunk-LS3KVHYY.js";
31
+ import "./chunk-ZMNLEL6W.js";
32
+ import "./chunk-3QLSKXKF.js";
33
+ import "./chunk-EWDGNOJE.js";
34
+ import "./chunk-LJBJM6VI.js";
35
35
  import {
36
36
  IndexDatatype_default
37
- } from "./chunk-Z7OYBX6P.js";
37
+ } from "./chunk-D7ZBZPHV.js";
38
38
  import {
39
39
  GeometryAttributes_default
40
- } from "./chunk-22NU5WU5.js";
40
+ } from "./chunk-TY4DKOWR.js";
41
41
  import {
42
42
  GeometryAttribute_default,
43
43
  Geometry_default,
44
44
  PrimitiveType_default
45
- } from "./chunk-PMNQULFU.js";
45
+ } from "./chunk-HUFQVUMY.js";
46
46
  import {
47
47
  BoundingSphere_default
48
- } from "./chunk-2OD54CUD.js";
49
- import "./chunk-BFNZUP2C.js";
48
+ } from "./chunk-FYGLNDKG.js";
49
+ import "./chunk-WEHZP4SE.js";
50
50
  import {
51
51
  ComponentDatatype_default
52
- } from "./chunk-H4Y7ADFL.js";
52
+ } from "./chunk-KSYBJA4M.js";
53
53
  import {
54
54
  Cartesian3_default,
55
55
  Ellipsoid_default
56
- } from "./chunk-XQP37R5E.js";
56
+ } from "./chunk-KM6MITPF.js";
57
57
  import {
58
58
  Math_default
59
- } from "./chunk-RGZWZ4PP.js";
60
- import "./chunk-ZIWULRRD.js";
61
- import "./chunk-2TSF7N76.js";
59
+ } from "./chunk-F4CUH4MR.js";
60
+ import "./chunk-ED6GLQTK.js";
61
+ import "./chunk-5KWRW7YL.js";
62
62
  import {
63
63
  defaultValue_default
64
- } from "./chunk-BLTSMJIP.js";
64
+ } from "./chunk-TVL3F7IU.js";
65
65
  import {
66
66
  DeveloperError_default
67
- } from "./chunk-FANORJU6.js";
67
+ } from "./chunk-OMXHEJTK.js";
68
68
  import {
69
69
  defined_default
70
- } from "./chunk-S4SCKDK4.js";
70
+ } from "./chunk-KHWLAQVA.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.124
4
+ * Version 1.126
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-2IIE2UZ3.js";
28
+ } from "./chunk-7EO56M5R.js";
29
29
  import {
30
30
  createTaskProcessorWorker_default
31
- } from "./chunk-YDEZMDB7.js";
31
+ } from "./chunk-G3BVMPWG.js";
32
32
  import {
33
33
  IndexDatatype_default
34
- } from "./chunk-Z7OYBX6P.js";
34
+ } from "./chunk-D7ZBZPHV.js";
35
35
  import {
36
36
  ComponentDatatype_default
37
- } from "./chunk-H4Y7ADFL.js";
38
- import "./chunk-RGZWZ4PP.js";
39
- import "./chunk-ZIWULRRD.js";
37
+ } from "./chunk-KSYBJA4M.js";
38
+ import "./chunk-F4CUH4MR.js";
39
+ import "./chunk-ED6GLQTK.js";
40
40
  import {
41
41
  RuntimeError_default
42
- } from "./chunk-2TSF7N76.js";
43
- import "./chunk-BLTSMJIP.js";
44
- import "./chunk-FANORJU6.js";
42
+ } from "./chunk-5KWRW7YL.js";
43
+ import "./chunk-TVL3F7IU.js";
44
+ import "./chunk-OMXHEJTK.js";
45
45
  import {
46
46
  __toESM,
47
47
  defined_default
48
- } from "./chunk-S4SCKDK4.js";
48
+ } from "./chunk-KHWLAQVA.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.124
4
+ * Version 1.126
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-YDEZMDB7.js";
28
+ } from "./chunk-G3BVMPWG.js";
29
29
  import {
30
30
  RuntimeError_default
31
- } from "./chunk-2TSF7N76.js";
31
+ } from "./chunk-5KWRW7YL.js";
32
32
  import {
33
33
  Check_default
34
- } from "./chunk-FANORJU6.js";
34
+ } from "./chunk-OMXHEJTK.js";
35
35
  import {
36
36
  __commonJS,
37
37
  __toESM,
38
38
  defined_default
39
- } from "./chunk-S4SCKDK4.js";
39
+ } from "./chunk-KHWLAQVA.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.124
4
+ * Version 1.126
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-2IIE2UZ3.js";
28
+ } from "./chunk-7EO56M5R.js";
29
29
  import {
30
30
  Color_default
31
- } from "./chunk-H7BML7HH.js";
31
+ } from "./chunk-7UHKH6M3.js";
32
32
  import {
33
33
  createTaskProcessorWorker_default
34
- } from "./chunk-YDEZMDB7.js";
34
+ } from "./chunk-G3BVMPWG.js";
35
35
  import {
36
36
  WebMercatorProjection_default
37
- } from "./chunk-FLPIQK2R.js";
37
+ } from "./chunk-FX4R4MTH.js";
38
38
  import {
39
39
  Cartesian3_default,
40
40
  Cartographic_default,
41
41
  Ellipsoid_default,
42
42
  Matrix3_default
43
- } from "./chunk-XQP37R5E.js";
43
+ } from "./chunk-KM6MITPF.js";
44
44
  import {
45
45
  Math_default
46
- } from "./chunk-RGZWZ4PP.js";
46
+ } from "./chunk-F4CUH4MR.js";
47
47
  import {
48
48
  defaultValue_default
49
- } from "./chunk-BLTSMJIP.js";
49
+ } from "./chunk-TVL3F7IU.js";
50
50
  import {
51
51
  Check_default
52
- } from "./chunk-FANORJU6.js";
52
+ } from "./chunk-OMXHEJTK.js";
53
53
  import {
54
54
  __toESM,
55
55
  defined_default
56
- } from "./chunk-S4SCKDK4.js";
56
+ } from "./chunk-KHWLAQVA.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.124
4
+ * Version 1.126
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-YDEZMDB7.js";
28
+ } from "./chunk-G3BVMPWG.js";
29
29
  import {
30
30
  WebGLConstants_default
31
- } from "./chunk-ZIWULRRD.js";
31
+ } from "./chunk-ED6GLQTK.js";
32
32
  import {
33
33
  RuntimeError_default
34
- } from "./chunk-2TSF7N76.js";
34
+ } from "./chunk-5KWRW7YL.js";
35
35
  import {
36
36
  defaultValue_default
37
- } from "./chunk-BLTSMJIP.js";
37
+ } from "./chunk-TVL3F7IU.js";
38
38
  import {
39
39
  Check_default
40
- } from "./chunk-FANORJU6.js";
40
+ } from "./chunk-OMXHEJTK.js";
41
41
  import {
42
42
  __commonJS,
43
43
  __require,
44
44
  __toESM,
45
45
  defined_default
46
- } from "./chunk-S4SCKDK4.js";
46
+ } from "./chunk-KHWLAQVA.js";
47
47
 
48
48
  // packages/engine/Source/ThirdParty/Workers/basis_transcoder.js
49
49
  var require_basis_transcoder = __commonJS({
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.124
4
+ * Version 1.126
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.124
4
+ * Version 1.126
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-MSKD73KW.js";
29
+ } from "./chunk-77XPS7ZA.js";
30
30
  import {
31
31
  createTaskProcessorWorker_default
32
- } from "./chunk-YDEZMDB7.js";
32
+ } from "./chunk-G3BVMPWG.js";
33
33
  import {
34
34
  OrientedBoundingBox_default
35
- } from "./chunk-KCCTLUKK.js";
35
+ } from "./chunk-7ZB2RVIQ.js";
36
36
  import {
37
37
  AttributeCompression_default
38
- } from "./chunk-RR4M3ZGF.js";
39
- import "./chunk-DIAH2ZTB.js";
40
- import "./chunk-OUIF26MQ.js";
41
- import "./chunk-CQDSGG3R.js";
42
- import "./chunk-3VHIUS7I.js";
38
+ } from "./chunk-JHBPC4LK.js";
39
+ import "./chunk-VCNOFQYH.js";
40
+ import "./chunk-B4GSRXE3.js";
41
+ import "./chunk-EWDGNOJE.js";
42
+ import "./chunk-LJBJM6VI.js";
43
43
  import {
44
44
  IndexDatatype_default
45
- } from "./chunk-Z7OYBX6P.js";
45
+ } from "./chunk-D7ZBZPHV.js";
46
46
  import {
47
47
  BoundingSphere_default
48
- } from "./chunk-2OD54CUD.js";
48
+ } from "./chunk-FYGLNDKG.js";
49
49
  import {
50
50
  Rectangle_default
51
- } from "./chunk-BFNZUP2C.js";
52
- import "./chunk-H4Y7ADFL.js";
51
+ } from "./chunk-WEHZP4SE.js";
52
+ import "./chunk-KSYBJA4M.js";
53
53
  import {
54
54
  Cartesian2_default,
55
55
  Cartesian3_default,
56
56
  Cartographic_default,
57
57
  Ellipsoid_default
58
- } from "./chunk-XQP37R5E.js";
58
+ } from "./chunk-KM6MITPF.js";
59
59
  import {
60
60
  Math_default
61
- } from "./chunk-RGZWZ4PP.js";
62
- import "./chunk-ZIWULRRD.js";
63
- import "./chunk-2TSF7N76.js";
64
- import "./chunk-BLTSMJIP.js";
61
+ } from "./chunk-F4CUH4MR.js";
62
+ import "./chunk-ED6GLQTK.js";
63
+ import "./chunk-5KWRW7YL.js";
64
+ import "./chunk-TVL3F7IU.js";
65
65
  import {
66
66
  Check_default,
67
67
  DeveloperError_default
68
- } from "./chunk-FANORJU6.js";
68
+ } from "./chunk-OMXHEJTK.js";
69
69
  import {
70
70
  defined_default
71
- } from "./chunk-S4SCKDK4.js";
71
+ } from "./chunk-KHWLAQVA.js";
72
72
 
73
73
  // packages/engine/Source/Core/Intersections2D.js
74
74
  var Intersections2D = {};
@@ -2,7 +2,7 @@
2
2
  * Contains functions for checking that supplied arguments are of a specified type
3
3
  * or meet specified conditions
4
4
  */
5
- export const Check: {
5
+ const Check: {
6
6
  /**
7
7
  * Throws if test is not defined
8
8
  *
@@ -125,3 +125,4 @@ export const Check: {
125
125
  };
126
126
  };
127
127
  };
128
+ export default Check;
@@ -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) {
@@ -38,54 +38,19 @@ ITwinPlatform.ExportType = Object.freeze({
38
38
  });
39
39
 
40
40
  /**
41
- * Types of Reality data
41
+ * Types of Reality data. This is a partial list of types we know we can support
42
+ *
42
43
  * @see https://developer.bentley.com/apis/reality-management/rm-rd-details/#types
43
44
  * @enum {string}
44
45
  */
45
46
  ITwinPlatform.RealityDataType = Object.freeze({
46
47
  Cesium3DTiles: "Cesium3DTiles",
47
48
  PNTS: "PNTS",
48
- OPC: "OPC",
49
49
  RealityMesh3DTiles: "RealityMesh3DTiles",
50
50
  Terrain3DTiles: "Terrain3DTiles",
51
- "3MX": "3MX",
52
- "3SM": "3SM",
53
- CCCloudProject: "CCCloudProject",
54
- CCImageCollection: "CCImageCollection",
55
- CCOrientations: "CCOrientations",
56
- ContextCaptureInputs: "ContextCaptureInputs",
57
- ContextDetector: "ContextDetector",
58
- ContextScene: "ContextScene",
59
- DAE: "DAE",
60
- DGN: "DGN",
61
- DSM: "DSM",
62
- FBX: "FBX",
63
- GLB: "GLB",
64
- GLTF: "GLTF",
65
51
  KML: "KML",
66
- LAS: "LAS",
67
- LAZ: "LAZ",
68
- LOD: "LOD",
69
- LodTree: "LodTree",
70
- OBJ: "OBJ",
71
- OMI: "OMI",
72
- OMR: "OMR",
73
- Orthophoto: "Orthophoto",
74
- OrthophotoDSM: "OrthophotoDSM",
75
- OSGB: "OSGB",
76
- OVF: "OVF",
77
- OBT: "OBT",
78
- PLY: "PLY",
79
- PointCloud: "PointCloud",
80
- S3C: "S3C",
81
- ScanCollection: "ScanCollection",
82
- SHP: "SHP",
83
- SLPK: "SLPK",
84
- SpaceEyes3D: "SpaceEyes3D",
85
- STL: "STL",
86
- TSM: "TSM",
52
+ GeoJSON: "GeoJSON",
87
53
  Unstructured: "Unstructured",
88
- Other: "Other",
89
54
  });
90
55
 
91
56
  /**
@@ -4,7 +4,7 @@ import Resource from "./Resource.js";
4
4
 
5
5
  let defaultTokenCredit;
6
6
  const defaultAccessToken =
7
- "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI0ZDdmNWJiNy0wMmNlLTQ1MWUtODM2YS02NGM1MTBlOGMwMWQiLCJpZCI6MjU5LCJpYXQiOjE3MzMxNTc4OTV9.B3URHf0VdHDtGckb-hv7uqATdn8KfvkiuoAFZUq8tAo";
7
+ "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIxNWFiZDMyYy03YWE1LTQ2MGQtOWI3YS00NDFiY2QzYTM5MGEiLCJpZCI6MjU5LCJpYXQiOjE3Mzg2MTU4NjJ9.WFKc8MVwKPU0S2pVgKGfqmcOd-6VBaMTZyH-9ZPhODQ";
8
8
  /**
9
9
  * Default settings for accessing the Cesium ion API.
10
10
  *
@@ -10,7 +10,7 @@ import TimeStandard from "./TimeStandard.js";
10
10
 
11
11
  const gregorianDateScratch = new GregorianDate();
12
12
  const daysInMonth = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
13
- const daysInLeapFeburary = 29;
13
+ const daysInLeapFebruary = 29;
14
14
 
15
15
  function compareLeapSecondDates(leapSecond, dateToFind) {
16
16
  return JulianDate.compare(leapSecond.julianDate, dateToFind.julianDate);
@@ -430,7 +430,7 @@ JulianDate.fromIso8601 = function (iso8601String, result) {
430
430
  month > 12 ||
431
431
  day < 1 ||
432
432
  ((month !== 2 || !inLeapYear) && day > daysInMonth[month - 1]) ||
433
- (inLeapYear && month === 2 && day > daysInLeapFeburary)
433
+ (inLeapYear && month === 2 && day > daysInLeapFebruary)
434
434
  ) {
435
435
  throw new DeveloperError(iso8601ErrorMessage);
436
436
  }
@@ -542,7 +542,7 @@ JulianDate.fromIso8601 = function (iso8601String, result) {
542
542
  day++;
543
543
  }
544
544
 
545
- tmp = inLeapYear && month === 2 ? daysInLeapFeburary : daysInMonth[month - 1];
545
+ tmp = inLeapYear && month === 2 ? daysInLeapFebruary : daysInMonth[month - 1];
546
546
  while (day > tmp) {
547
547
  day -= tmp;
548
548
  month++;
@@ -553,7 +553,7 @@ JulianDate.fromIso8601 = function (iso8601String, result) {
553
553
  }
554
554
 
555
555
  tmp =
556
- inLeapYear && month === 2 ? daysInLeapFeburary : daysInMonth[month - 1];
556
+ inLeapYear && month === 2 ? daysInLeapFebruary : daysInMonth[month - 1];
557
557
  }
558
558
 
559
559
  //If UTC offset is at the beginning/end of the day, minutes can be negative.
@@ -575,7 +575,7 @@ JulianDate.fromIso8601 = function (iso8601String, result) {
575
575
  }
576
576
 
577
577
  tmp =
578
- inLeapYear && month === 2 ? daysInLeapFeburary : daysInMonth[month - 1];
578
+ inLeapYear && month === 2 ? daysInLeapFebruary : daysInMonth[month - 1];
579
579
  day += tmp;
580
580
  }
581
581
 
@@ -784,8 +784,15 @@ JulianDate.toIso8601 = function (julianDate, precision) {
784
784
  let millisecondStr;
785
785
 
786
786
  if (!defined(precision) && millisecond !== 0) {
787
- //Forces milliseconds into a number with at least 3 digits to whatever the default toString() precision is.
788
- millisecondStr = (millisecond * 0.01).toString().replace(".", "");
787
+ // Forces milliseconds into a number with at least 3 digits.
788
+ const millisecondHundreds = millisecond * 0.01;
789
+ // Below 1e-6, toString returns scientific notation, so it should be replaced by toFixed with appropriate number of digits.
790
+ // 20 digits is a trade-off choice guided by JavaScript's Number representation accuracy (15-17 decimal digits for most numbers).
791
+ // Using toFixed(20) ensures capturing enough precision while avoiding inaccuracies due to floating-point limitations.
792
+ millisecondStr =
793
+ millisecondHundreds < 1e-6
794
+ ? millisecondHundreds.toFixed(20).replace(".", "").replace(/0+$/, "")
795
+ : millisecondHundreds.toString().replace(".", "");
789
796
  return `${year.toString().padStart(4, "0")}-${month
790
797
  .toString()
791
798
  .padStart(2, "0")}-${day.toString().padStart(2, "0")}T${hour
@@ -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) {