@cesium/engine 6.1.0 → 6.2.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 (142) hide show
  1. package/Build/Workers/{chunk-IQCBK4CE.js → chunk-3PW6ZBN4.js} +8 -304
  2. package/Build/Workers/{chunk-U5O26DDO.js → chunk-434ZTTFX.js} +2 -2
  3. package/Build/Workers/{chunk-DNCKFFNR.js → chunk-4KP73B43.js} +3 -3
  4. package/Build/Workers/{chunk-TIEL2RYB.js → chunk-52VSIKEA.js} +16 -16
  5. package/Build/Workers/{chunk-6JRDO2JP.js → chunk-5GDBZTHX.js} +18 -18
  6. package/Build/Workers/{chunk-WYMW5NZB.js → chunk-5HLGKKG3.js} +2 -2
  7. package/Build/Workers/{chunk-R5NOUYKW.js → chunk-5IRLXUTA.js} +7 -7
  8. package/Build/Workers/{chunk-4EXWKTY2.js → chunk-5SK36PU4.js} +8 -8
  9. package/Build/Workers/{chunk-UJ76JVUZ.js → chunk-ARPTYYKS.js} +5 -5
  10. package/Build/Workers/{chunk-2GWOHAWL.js → chunk-ATB2I7OS.js} +4 -4
  11. package/Build/Workers/{chunk-6LG4PY2M.js → chunk-AXFRNOVC.js} +12 -12
  12. package/Build/Workers/{chunk-A3TYRSRJ.js → chunk-BP467WX3.js} +4 -4
  13. package/Build/Workers/{chunk-I5XKU3UZ.js → chunk-BUZDZBUH.js} +11 -13
  14. package/Build/Workers/{chunk-N3OQDJDV.js → chunk-CDGHUKQ4.js} +13 -13
  15. package/Build/Workers/{chunk-7ISAYW2A.js → chunk-CSIZ3BGT.js} +15 -17
  16. package/Build/Workers/{chunk-N73NY3KY.js → chunk-CWJQGBWT.js} +1 -1
  17. package/Build/Workers/{chunk-E5HIGWSZ.js → chunk-DMCSY5BU.js} +5 -5
  18. package/Build/Workers/{chunk-JY6WB2NK.js → chunk-DR5XZ6K5.js} +13 -13
  19. package/Build/Workers/{chunk-4MPXTOW6.js → chunk-FWGNCYP6.js} +7 -7
  20. package/Build/Workers/{chunk-LID3UUML.js → chunk-GF5TNNKP.js} +6 -6
  21. package/Build/Workers/{chunk-ULABUYF6.js → chunk-GVL5I7TC.js} +18 -20
  22. package/Build/Workers/{chunk-4JETNOH2.js → chunk-H5DUXHCV.js} +11 -11
  23. package/Build/Workers/{chunk-QX5ASOZZ.js → chunk-HFKSAB5K.js} +14 -16
  24. package/Build/Workers/{chunk-XKGSTUQO.js → chunk-HOT2SNXP.js} +15 -20
  25. package/Build/Workers/{chunk-ICD3BWBC.js → chunk-HPH5HSFE.js} +2 -2
  26. package/Build/Workers/{chunk-FNHGOHCI.js → chunk-HPP4JLNH.js} +8 -8
  27. package/Build/Workers/{chunk-HX5XY3NH.js → chunk-HUPNRBWW.js} +6 -6
  28. package/Build/Workers/{chunk-EEL3YC6V.js → chunk-JGG36SQV.js} +4 -4
  29. package/Build/Workers/{chunk-54GSYZWT.js → chunk-LGJUI2CE.js} +325 -5
  30. package/Build/Workers/{chunk-PNAD2XAN.js → chunk-LGL4P5KL.js} +6 -6
  31. package/Build/Workers/{chunk-CKOGHQ6J.js → chunk-LX6XV4DK.js} +5 -5
  32. package/Build/Workers/{chunk-ZERWARDV.js → chunk-MN34FIF5.js} +1 -1
  33. package/Build/Workers/{chunk-MMNPUV23.js → chunk-MW3CJYLX.js} +2 -2
  34. package/Build/Workers/{chunk-KFCTEEBD.js → chunk-NE4JNU6H.js} +31 -21
  35. package/Build/Workers/{chunk-DHO4HQHW.js → chunk-O43GWBSF.js} +1 -1
  36. package/Build/Workers/{chunk-EH2PEDWL.js → chunk-PIXK6KHB.js} +2 -2
  37. package/Build/Workers/{chunk-TDVU7NH7.js → chunk-PZ2WJWUG.js} +6 -6
  38. package/Build/Workers/{chunk-AEADHPUM.js → chunk-QRBRVGZC.js} +4 -4
  39. package/Build/Workers/{chunk-VIAGIVGP.js → chunk-QTZQZY2C.js} +9 -9
  40. package/Build/Workers/{chunk-3R5RPSYS.js → chunk-R3HUGXBH.js} +9 -9
  41. package/Build/Workers/{chunk-IDAL54EF.js → chunk-R4OZKBXH.js} +6 -6
  42. package/Build/Workers/{chunk-CHGQXPF3.js → chunk-RH4N2ONY.js} +7 -7
  43. package/Build/Workers/{chunk-YK5RU5AO.js → chunk-RIDPF7PO.js} +2 -2
  44. package/Build/Workers/{chunk-CZFGXAMG.js → chunk-SNN7WOC2.js} +13 -13
  45. package/Build/Workers/{chunk-F66GYWDZ.js → chunk-SQVTYRZY.js} +5 -7
  46. package/Build/Workers/{chunk-XNRYWRVT.js → chunk-SV7DDPAC.js} +1 -1
  47. package/Build/Workers/{chunk-P2BTKBVY.js → chunk-TIXXVKUY.js} +11 -11
  48. package/Build/Workers/{chunk-AI2FOC47.js → chunk-TMPVBFJQ.js} +11 -11
  49. package/Build/Workers/{chunk-4CHSBZNO.js → chunk-XUTVA4K5.js} +11 -11
  50. package/Build/Workers/{chunk-DD2PDL6D.js → chunk-Y4OJ4B23.js} +5 -5
  51. package/Build/Workers/{chunk-FMN2NHBU.js → chunk-YBKFS53K.js} +1 -1
  52. package/Build/Workers/{chunk-BLXANKPB.js → chunk-Z2SIPUKB.js} +6 -6
  53. package/Build/Workers/{chunk-5HUDPV54.js → chunk-Z4JUBRHP.js} +6 -6
  54. package/Build/Workers/{chunk-N7FIYNQV.js → chunk-ZQRZBHYI.js} +4 -4
  55. package/Build/Workers/combineGeometry.js +23 -23
  56. package/Build/Workers/createBoxGeometry.js +17 -17
  57. package/Build/Workers/createBoxOutlineGeometry.js +15 -15
  58. package/Build/Workers/createCircleGeometry.js +25 -25
  59. package/Build/Workers/createCircleOutlineGeometry.js +18 -18
  60. package/Build/Workers/createCoplanarPolygonGeometry.js +33 -34
  61. package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +30 -30
  62. package/Build/Workers/createCorridorGeometry.js +29 -29
  63. package/Build/Workers/createCorridorOutlineGeometry.js +28 -28
  64. package/Build/Workers/createCylinderGeometry.js +19 -19
  65. package/Build/Workers/createCylinderOutlineGeometry.js +18 -19
  66. package/Build/Workers/createEllipseGeometry.js +25 -25
  67. package/Build/Workers/createEllipseOutlineGeometry.js +18 -18
  68. package/Build/Workers/createEllipsoidGeometry.js +18 -18
  69. package/Build/Workers/createEllipsoidOutlineGeometry.js +17 -17
  70. package/Build/Workers/createFrustumGeometry.js +17 -17
  71. package/Build/Workers/createFrustumOutlineGeometry.js +17 -17
  72. package/Build/Workers/createGeometry.js +23 -23
  73. package/Build/Workers/createGroundPolylineGeometry.js +22 -22
  74. package/Build/Workers/createPlaneGeometry.js +15 -15
  75. package/Build/Workers/createPlaneOutlineGeometry.js +14 -14
  76. package/Build/Workers/createPolygonGeometry.js +34 -34
  77. package/Build/Workers/createPolygonOutlineGeometry.js +29 -29
  78. package/Build/Workers/createPolylineGeometry.js +24 -24
  79. package/Build/Workers/createPolylineVolumeGeometry.js +32 -33
  80. package/Build/Workers/createPolylineVolumeOutlineGeometry.js +28 -29
  81. package/Build/Workers/createRectangleGeometry.js +27 -27
  82. package/Build/Workers/createRectangleOutlineGeometry.js +21 -23
  83. package/Build/Workers/createSimplePolylineGeometry.js +22 -22
  84. package/Build/Workers/createSphereGeometry.js +18 -18
  85. package/Build/Workers/createSphereOutlineGeometry.js +17 -17
  86. package/Build/Workers/createTaskProcessorWorker.js +3 -3
  87. package/Build/Workers/createVectorTileClampedPolylines.js +14 -14
  88. package/Build/Workers/createVectorTileGeometries.js +23 -23
  89. package/Build/Workers/createVectorTilePoints.js +12 -12
  90. package/Build/Workers/createVectorTilePolygons.js +21 -21
  91. package/Build/Workers/createVectorTilePolylines.js +14 -14
  92. package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +22 -22
  93. package/Build/Workers/createVerticesFromHeightmap.js +22 -22
  94. package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +19 -19
  95. package/Build/Workers/createWallGeometry.js +23 -23
  96. package/Build/Workers/createWallOutlineGeometry.js +22 -22
  97. package/Build/Workers/decodeDraco.js +11 -11
  98. package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
  99. package/Build/Workers/decodeI3S.js +9 -9
  100. package/Build/Workers/transcodeKTX2.js +9 -9
  101. package/Build/Workers/transferTypedArrayTest.js +1 -1
  102. package/Build/Workers/upsampleQuantizedTerrainMesh.js +22 -22
  103. package/Source/Core/CesiumTerrainProvider.js +11 -4
  104. package/Source/Core/Ellipsoid.js +45 -0
  105. package/Source/Core/Ion.js +1 -1
  106. package/Source/Core/Quaternion.js +6 -2
  107. package/Source/Core/RectangleOutlineGeometry.js +2 -4
  108. package/Source/Core/RequestScheduler.js +3 -9
  109. package/Source/Core/TerrainEncoding.js +2 -2
  110. package/Source/Core/VerticalExaggeration.js +69 -0
  111. package/Source/Renderer/AutomaticUniforms.js +53 -0
  112. package/Source/Renderer/UniformState.js +119 -1
  113. package/Source/Scene/ArcGisMapService.js +1 -1
  114. package/Source/Scene/Cesium3DTile.js +122 -10
  115. package/Source/Scene/Cesium3DTileset.js +1 -1
  116. package/Source/Scene/FrameState.js +4 -4
  117. package/Source/Scene/Globe.js +66 -19
  118. package/Source/Scene/GlobeSurfaceTile.js +4 -4
  119. package/Source/Scene/GlobeSurfaceTileProvider.js +21 -21
  120. package/Source/Scene/GroundPrimitive.js +5 -5
  121. package/Source/Scene/ImageryLayer.js +3 -3
  122. package/Source/Scene/IonImageryProvider.js +1 -1
  123. package/Source/Scene/MapboxImageryProvider.js +2 -2
  124. package/Source/Scene/Megatexture.js +1 -1
  125. package/Source/Scene/Model/Model.js +11 -0
  126. package/Source/Scene/Model/ModelRuntimePrimitive.js +6 -0
  127. package/Source/Scene/Model/VerticalExaggerationPipelineStage.js +60 -0
  128. package/Source/Scene/Scene.js +28 -3
  129. package/Source/Scene/ScreenSpaceCameraController.js +12 -19
  130. package/Source/Scene/TerrainFillMesh.js +2 -2
  131. package/Source/Scene/TileOrientedBoundingBox.js +1 -1
  132. package/Source/Scene/VoxelPrimitive.js +73 -2
  133. package/Source/Shaders/GlobeVS.glsl +3 -3
  134. package/Source/Shaders/GlobeVS.js +3 -3
  135. package/Source/Shaders/Model/ModelVS.glsl +4 -0
  136. package/Source/Shaders/Model/ModelVS.js +4 -0
  137. package/Source/Shaders/Model/VerticalExaggerationStageVS.glsl +39 -0
  138. package/Source/Shaders/Model/VerticalExaggerationStageVS.js +41 -0
  139. package/index.d.ts +39 -22
  140. package/index.js +590 -588
  141. package/package.json +2 -2
  142. package/Source/Core/TerrainExaggeration.js +0 -49
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.111
4
+ * Version 1.113
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,53 +25,53 @@
25
25
 
26
26
  import {
27
27
  WallGeometryLibrary_default
28
- } from "./chunk-HX5XY3NH.js";
29
- import "./chunk-4JETNOH2.js";
30
- import "./chunk-LID3UUML.js";
28
+ } from "./chunk-HUPNRBWW.js";
29
+ import "./chunk-H5DUXHCV.js";
30
+ import "./chunk-GF5TNNKP.js";
31
31
  import {
32
32
  VertexFormat_default
33
- } from "./chunk-N7FIYNQV.js";
34
- import "./chunk-E5HIGWSZ.js";
35
- import "./chunk-IDAL54EF.js";
36
- import "./chunk-R5NOUYKW.js";
37
- import "./chunk-PNAD2XAN.js";
33
+ } from "./chunk-ZQRZBHYI.js";
34
+ import "./chunk-DMCSY5BU.js";
35
+ import "./chunk-R4OZKBXH.js";
36
+ import "./chunk-5IRLXUTA.js";
37
+ import "./chunk-LGL4P5KL.js";
38
38
  import {
39
39
  IndexDatatype_default
40
- } from "./chunk-CKOGHQ6J.js";
40
+ } from "./chunk-LX6XV4DK.js";
41
41
  import {
42
42
  GeometryAttributes_default
43
- } from "./chunk-EH2PEDWL.js";
43
+ } from "./chunk-PIXK6KHB.js";
44
44
  import {
45
45
  GeometryAttribute_default,
46
46
  Geometry_default,
47
47
  PrimitiveType_default
48
- } from "./chunk-3R5RPSYS.js";
48
+ } from "./chunk-R3HUGXBH.js";
49
49
  import {
50
50
  BoundingSphere_default
51
- } from "./chunk-XKGSTUQO.js";
52
- import "./chunk-DNCKFFNR.js";
53
- import "./chunk-IQCBK4CE.js";
51
+ } from "./chunk-HOT2SNXP.js";
52
+ import "./chunk-4KP73B43.js";
53
+ import "./chunk-3PW6ZBN4.js";
54
54
  import {
55
55
  ComponentDatatype_default
56
- } from "./chunk-UJ76JVUZ.js";
56
+ } from "./chunk-ARPTYYKS.js";
57
57
  import {
58
58
  Cartesian3_default,
59
59
  Ellipsoid_default
60
- } from "./chunk-54GSYZWT.js";
60
+ } from "./chunk-LGJUI2CE.js";
61
61
  import {
62
62
  Math_default
63
- } from "./chunk-A3TYRSRJ.js";
64
- import "./chunk-XNRYWRVT.js";
65
- import "./chunk-YK5RU5AO.js";
63
+ } from "./chunk-BP467WX3.js";
64
+ import "./chunk-SV7DDPAC.js";
65
+ import "./chunk-RIDPF7PO.js";
66
66
  import {
67
67
  defaultValue_default
68
- } from "./chunk-N73NY3KY.js";
68
+ } from "./chunk-CWJQGBWT.js";
69
69
  import {
70
70
  DeveloperError_default
71
- } from "./chunk-WYMW5NZB.js";
71
+ } from "./chunk-5HLGKKG3.js";
72
72
  import {
73
73
  defined_default
74
- } from "./chunk-FMN2NHBU.js";
74
+ } from "./chunk-YBKFS53K.js";
75
75
 
76
76
  // packages/engine/Source/Core/WallGeometry.js
77
77
  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.111
4
+ * Version 1.113
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,50 +25,50 @@
25
25
 
26
26
  import {
27
27
  WallGeometryLibrary_default
28
- } from "./chunk-HX5XY3NH.js";
29
- import "./chunk-4JETNOH2.js";
30
- import "./chunk-LID3UUML.js";
31
- import "./chunk-E5HIGWSZ.js";
32
- import "./chunk-IDAL54EF.js";
33
- import "./chunk-R5NOUYKW.js";
34
- import "./chunk-PNAD2XAN.js";
28
+ } from "./chunk-HUPNRBWW.js";
29
+ import "./chunk-H5DUXHCV.js";
30
+ import "./chunk-GF5TNNKP.js";
31
+ import "./chunk-DMCSY5BU.js";
32
+ import "./chunk-R4OZKBXH.js";
33
+ import "./chunk-5IRLXUTA.js";
34
+ import "./chunk-LGL4P5KL.js";
35
35
  import {
36
36
  IndexDatatype_default
37
- } from "./chunk-CKOGHQ6J.js";
37
+ } from "./chunk-LX6XV4DK.js";
38
38
  import {
39
39
  GeometryAttributes_default
40
- } from "./chunk-EH2PEDWL.js";
40
+ } from "./chunk-PIXK6KHB.js";
41
41
  import {
42
42
  GeometryAttribute_default,
43
43
  Geometry_default,
44
44
  PrimitiveType_default
45
- } from "./chunk-3R5RPSYS.js";
45
+ } from "./chunk-R3HUGXBH.js";
46
46
  import {
47
47
  BoundingSphere_default
48
- } from "./chunk-XKGSTUQO.js";
49
- import "./chunk-DNCKFFNR.js";
50
- import "./chunk-IQCBK4CE.js";
48
+ } from "./chunk-HOT2SNXP.js";
49
+ import "./chunk-4KP73B43.js";
50
+ import "./chunk-3PW6ZBN4.js";
51
51
  import {
52
52
  ComponentDatatype_default
53
- } from "./chunk-UJ76JVUZ.js";
53
+ } from "./chunk-ARPTYYKS.js";
54
54
  import {
55
55
  Cartesian3_default,
56
56
  Ellipsoid_default
57
- } from "./chunk-54GSYZWT.js";
57
+ } from "./chunk-LGJUI2CE.js";
58
58
  import {
59
59
  Math_default
60
- } from "./chunk-A3TYRSRJ.js";
61
- import "./chunk-XNRYWRVT.js";
62
- import "./chunk-YK5RU5AO.js";
60
+ } from "./chunk-BP467WX3.js";
61
+ import "./chunk-SV7DDPAC.js";
62
+ import "./chunk-RIDPF7PO.js";
63
63
  import {
64
64
  defaultValue_default
65
- } from "./chunk-N73NY3KY.js";
65
+ } from "./chunk-CWJQGBWT.js";
66
66
  import {
67
67
  DeveloperError_default
68
- } from "./chunk-WYMW5NZB.js";
68
+ } from "./chunk-5HLGKKG3.js";
69
69
  import {
70
70
  defined_default
71
- } from "./chunk-FMN2NHBU.js";
71
+ } from "./chunk-YBKFS53K.js";
72
72
 
73
73
  // packages/engine/Source/Core/WallOutlineGeometry.js
74
74
  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.111
4
+ * Version 1.113
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-ICD3BWBC.js";
28
+ } from "./chunk-HPH5HSFE.js";
29
29
  import {
30
30
  createTaskProcessorWorker_default
31
- } from "./chunk-MMNPUV23.js";
31
+ } from "./chunk-MW3CJYLX.js";
32
32
  import {
33
33
  IndexDatatype_default
34
- } from "./chunk-CKOGHQ6J.js";
34
+ } from "./chunk-LX6XV4DK.js";
35
35
  import {
36
36
  ComponentDatatype_default
37
- } from "./chunk-UJ76JVUZ.js";
38
- import "./chunk-A3TYRSRJ.js";
39
- import "./chunk-XNRYWRVT.js";
37
+ } from "./chunk-ARPTYYKS.js";
38
+ import "./chunk-BP467WX3.js";
39
+ import "./chunk-SV7DDPAC.js";
40
40
  import {
41
41
  RuntimeError_default
42
- } from "./chunk-YK5RU5AO.js";
43
- import "./chunk-N73NY3KY.js";
44
- import "./chunk-WYMW5NZB.js";
42
+ } from "./chunk-RIDPF7PO.js";
43
+ import "./chunk-CWJQGBWT.js";
44
+ import "./chunk-5HLGKKG3.js";
45
45
  import {
46
46
  __toESM,
47
47
  defined_default
48
- } from "./chunk-FMN2NHBU.js";
48
+ } from "./chunk-YBKFS53K.js";
49
49
 
50
50
  // packages/engine/Source/Workers/decodeDraco.js
51
51
  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.111
4
+ * Version 1.113
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-MMNPUV23.js";
28
+ } from "./chunk-MW3CJYLX.js";
29
29
  import {
30
30
  RuntimeError_default
31
- } from "./chunk-YK5RU5AO.js";
31
+ } from "./chunk-RIDPF7PO.js";
32
32
  import {
33
33
  Check_default
34
- } from "./chunk-WYMW5NZB.js";
34
+ } from "./chunk-5HLGKKG3.js";
35
35
  import {
36
36
  __commonJS,
37
37
  __toESM,
38
38
  defined_default
39
- } from "./chunk-FMN2NHBU.js";
39
+ } from "./chunk-YBKFS53K.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.111
4
+ * Version 1.113
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,28 +25,28 @@
25
25
 
26
26
  import {
27
27
  require_draco_decoder_nodejs
28
- } from "./chunk-ICD3BWBC.js";
28
+ } from "./chunk-HPH5HSFE.js";
29
29
  import {
30
30
  createTaskProcessorWorker_default
31
- } from "./chunk-MMNPUV23.js";
31
+ } from "./chunk-MW3CJYLX.js";
32
32
  import {
33
33
  WebMercatorProjection_default
34
- } from "./chunk-BLXANKPB.js";
34
+ } from "./chunk-Z2SIPUKB.js";
35
35
  import {
36
36
  Cartesian3_default,
37
37
  Cartographic_default,
38
38
  Ellipsoid_default,
39
39
  Matrix3_default
40
- } from "./chunk-54GSYZWT.js";
40
+ } from "./chunk-LGJUI2CE.js";
41
41
  import {
42
42
  Math_default
43
- } from "./chunk-A3TYRSRJ.js";
44
- import "./chunk-N73NY3KY.js";
45
- import "./chunk-WYMW5NZB.js";
43
+ } from "./chunk-BP467WX3.js";
44
+ import "./chunk-CWJQGBWT.js";
45
+ import "./chunk-5HLGKKG3.js";
46
46
  import {
47
47
  __toESM,
48
48
  defined_default
49
- } from "./chunk-FMN2NHBU.js";
49
+ } from "./chunk-YBKFS53K.js";
50
50
 
51
51
  // packages/engine/Source/Workers/decodeI3S.js
52
52
  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.111
4
+ * Version 1.113
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-MMNPUV23.js";
28
+ } from "./chunk-MW3CJYLX.js";
29
29
  import {
30
30
  WebGLConstants_default
31
- } from "./chunk-XNRYWRVT.js";
31
+ } from "./chunk-SV7DDPAC.js";
32
32
  import {
33
33
  RuntimeError_default
34
- } from "./chunk-YK5RU5AO.js";
34
+ } from "./chunk-RIDPF7PO.js";
35
35
  import {
36
36
  defaultValue_default
37
- } from "./chunk-N73NY3KY.js";
37
+ } from "./chunk-CWJQGBWT.js";
38
38
  import {
39
39
  Check_default
40
- } from "./chunk-WYMW5NZB.js";
40
+ } from "./chunk-5HLGKKG3.js";
41
41
  import {
42
42
  __commonJS,
43
43
  __require,
44
44
  __toESM,
45
45
  defined_default
46
- } from "./chunk-FMN2NHBU.js";
46
+ } from "./chunk-YBKFS53K.js";
47
47
 
48
48
  // packages/engine/Source/ThirdParty/Workers/basis_transcoder.js
49
49
  var require_basis_transcoder = __commonJS({
@@ -2011,9 +2011,9 @@ var require_basis_transcoder = __commonJS({
2011
2011
  if (typeof globalThis === "object") {
2012
2012
  return globalThis;
2013
2013
  }
2014
- return function() {
2014
+ return (/* @__PURE__ */ function() {
2015
2015
  return Function;
2016
- }()("return this")();
2016
+ }())("return this")();
2017
2017
  }
2018
2018
  function __emval_get_global(name) {
2019
2019
  if (name === 0) {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.111
4
+ * Version 1.113
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.111
4
+ * Version 1.113
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -26,50 +26,50 @@
26
26
  import {
27
27
  EllipsoidalOccluder_default,
28
28
  TerrainEncoding_default
29
- } from "./chunk-KFCTEEBD.js";
29
+ } from "./chunk-NE4JNU6H.js";
30
30
  import {
31
31
  createTaskProcessorWorker_default
32
- } from "./chunk-MMNPUV23.js";
32
+ } from "./chunk-MW3CJYLX.js";
33
33
  import {
34
34
  OrientedBoundingBox_default
35
- } from "./chunk-P2BTKBVY.js";
35
+ } from "./chunk-TIXXVKUY.js";
36
36
  import {
37
37
  AttributeCompression_default
38
- } from "./chunk-4EXWKTY2.js";
39
- import "./chunk-AI2FOC47.js";
40
- import "./chunk-5HUDPV54.js";
41
- import "./chunk-R5NOUYKW.js";
42
- import "./chunk-PNAD2XAN.js";
38
+ } from "./chunk-5SK36PU4.js";
39
+ import "./chunk-TMPVBFJQ.js";
40
+ import "./chunk-Z4JUBRHP.js";
41
+ import "./chunk-5IRLXUTA.js";
42
+ import "./chunk-LGL4P5KL.js";
43
43
  import {
44
44
  IndexDatatype_default
45
- } from "./chunk-CKOGHQ6J.js";
45
+ } from "./chunk-LX6XV4DK.js";
46
46
  import {
47
47
  BoundingSphere_default
48
- } from "./chunk-XKGSTUQO.js";
49
- import "./chunk-DNCKFFNR.js";
48
+ } from "./chunk-HOT2SNXP.js";
49
+ import "./chunk-4KP73B43.js";
50
50
  import {
51
- Cartesian2_default,
52
51
  Rectangle_default
53
- } from "./chunk-IQCBK4CE.js";
54
- import "./chunk-UJ76JVUZ.js";
52
+ } from "./chunk-3PW6ZBN4.js";
53
+ import "./chunk-ARPTYYKS.js";
55
54
  import {
55
+ Cartesian2_default,
56
56
  Cartesian3_default,
57
57
  Cartographic_default,
58
58
  Ellipsoid_default
59
- } from "./chunk-54GSYZWT.js";
59
+ } from "./chunk-LGJUI2CE.js";
60
60
  import {
61
61
  Math_default
62
- } from "./chunk-A3TYRSRJ.js";
63
- import "./chunk-XNRYWRVT.js";
64
- import "./chunk-YK5RU5AO.js";
65
- import "./chunk-N73NY3KY.js";
62
+ } from "./chunk-BP467WX3.js";
63
+ import "./chunk-SV7DDPAC.js";
64
+ import "./chunk-RIDPF7PO.js";
65
+ import "./chunk-CWJQGBWT.js";
66
66
  import {
67
67
  Check_default,
68
68
  DeveloperError_default
69
- } from "./chunk-WYMW5NZB.js";
69
+ } from "./chunk-5HLGKKG3.js";
70
70
  import {
71
71
  defined_default
72
- } from "./chunk-FMN2NHBU.js";
72
+ } from "./chunk-YBKFS53K.js";
73
73
 
74
74
  // packages/engine/Source/Core/Intersections2D.js
75
75
  var Intersections2D = {};
@@ -897,11 +897,18 @@ CesiumTerrainProvider.prototype.requestTileGeometry = function (
897
897
 
898
898
  if (!defined(layerToUse) && unknownAvailability) {
899
899
  // Try again when availability data is ready– Otherwise the tile will be marked as failed and never re-requested
900
- return availabilityPromise.then(() =>
901
- this.requestTileGeometry(x, y, level, request)
902
- );
900
+ return availabilityPromise.then(() => {
901
+ // handle promise or undefined return
902
+ return new Promise((resolve) => {
903
+ // defer execution to the next event loop
904
+ setTimeout(() => {
905
+ const promise = this.requestTileGeometry(x, y, level, request);
906
+ resolve(promise);
907
+ }, 0); // next tick
908
+ });
909
+ });
903
910
  }
904
-
911
+ // call overridden function below
905
912
  return requestTileGeometry(this, x, y, level, layerToUse, request);
906
913
  };
907
914
 
@@ -1,3 +1,4 @@
1
+ import Cartesian2 from "./Cartesian2.js";
1
2
  import Cartesian3 from "./Cartesian3.js";
2
3
  import Cartographic from "./Cartographic.js";
3
4
  import Check from "./Check.js";
@@ -694,6 +695,50 @@ Ellipsoid.prototype.getSurfaceNormalIntersectionWithZAxis = function (
694
695
  return result;
695
696
  };
696
697
 
698
+ const scratchEndpoint = new Cartesian3();
699
+
700
+ /**
701
+ * Computes the ellipsoid curvatures at a given position on the surface.
702
+ *
703
+ * @param {Cartesian3} surfacePosition The position on the ellipsoid surface where curvatures will be calculated.
704
+ * @param {Cartesian2} [result] The cartesian to which to copy the result, or undefined to create and return a new instance.
705
+ * @returns {Cartesian2} The local curvature of the ellipsoid surface at the provided position, in east and north directions.
706
+ *
707
+ * @exception {DeveloperError} position is required.
708
+ */
709
+ Ellipsoid.prototype.getLocalCurvature = function (surfacePosition, result) {
710
+ //>>includeStart('debug', pragmas.debug);
711
+ Check.typeOf.object("surfacePosition", surfacePosition);
712
+ //>>includeEnd('debug');
713
+
714
+ if (!defined(result)) {
715
+ result = new Cartesian2();
716
+ }
717
+
718
+ const primeVerticalEndpoint = this.getSurfaceNormalIntersectionWithZAxis(
719
+ surfacePosition,
720
+ 0.0,
721
+ scratchEndpoint
722
+ );
723
+ const primeVerticalRadius = Cartesian3.distance(
724
+ surfacePosition,
725
+ primeVerticalEndpoint
726
+ );
727
+ // meridional radius = (1 - e^2) * primeVerticalRadius^3 / a^2
728
+ // where 1 - e^2 = b^2 / a^2,
729
+ // so meridional = b^2 * primeVerticalRadius^3 / a^4
730
+ // = (b * primeVerticalRadius / a^2)^2 * primeVertical
731
+ const radiusRatio =
732
+ (this.minimumRadius * primeVerticalRadius) / this.maximumRadius ** 2;
733
+ const meridionalRadius = primeVerticalRadius * radiusRatio ** 2;
734
+
735
+ return Cartesian2.fromElements(
736
+ 1.0 / primeVerticalRadius,
737
+ 1.0 / meridionalRadius,
738
+ result
739
+ );
740
+ };
741
+
697
742
  const abscissas = [
698
743
  0.14887433898163,
699
744
  0.43339539412925,
@@ -4,7 +4,7 @@ import Resource from "./Resource.js";
4
4
 
5
5
  let defaultTokenCredit;
6
6
  const defaultAccessToken =
7
- "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIyMzVjZDg3Yi0wMjVkLTQ0MzctOTZjOC1jZjMwNjkzZmI5MWUiLCJpZCI6MjU5LCJpYXQiOjE2OTg4NTM0MDl9.L_g01CjNKNVijEJ_8kOxiO02OADnuSjRFLkZWvhupcc";
7
+ "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJkNzEwOTRhMi05YmYyLTQyY2EtYTU2My04YTM1MWE2YjhjNjAiLCJpZCI6MjU5LCJpYXQiOjE3MDQyMTcxMzh9.rE7KTaFyZydhuP1Z7ohzClO3J1tMOvaHODzt3_5jo7s";
8
8
  /**
9
9
  * Default settings for accessing the Cesium ion API.
10
10
  *
@@ -677,8 +677,12 @@ Quaternion.computeAxis = function (quaternion, result) {
677
677
  //>>includeEnd('debug');
678
678
 
679
679
  const w = quaternion.w;
680
- if (Math.abs(w - 1.0) < CesiumMath.EPSILON6) {
681
- result.x = result.y = result.z = 0;
680
+ if (
681
+ Math.abs(w - 1.0) < CesiumMath.EPSILON6 ||
682
+ Math.abs(w + 1.0) < CesiumMath.EPSILON6
683
+ ) {
684
+ result.x = 1;
685
+ result.y = result.z = 0;
682
686
  return result;
683
687
  }
684
688
 
@@ -159,11 +159,9 @@ function constructRectangle(geometry, computedOptions) {
159
159
  }
160
160
 
161
161
  function constructExtrudedRectangle(rectangleGeometry, computedOptions) {
162
- const surfaceHeight = rectangleGeometry._surfaceHeight;
163
- const extrudedHeight = rectangleGeometry._extrudedHeight;
162
+ const maxHeight = rectangleGeometry._surfaceHeight;
163
+ const minHeight = rectangleGeometry._extrudedHeight;
164
164
  const ellipsoid = rectangleGeometry._ellipsoid;
165
- const minHeight = extrudedHeight;
166
- const maxHeight = surfaceHeight;
167
165
  const geo = constructRectangle(rectangleGeometry, computedOptions);
168
166
 
169
167
  const height = computedOptions.height;
@@ -60,9 +60,9 @@ RequestScheduler.maximumRequests = 50;
60
60
  * The maximum number of simultaneous active requests per server. Un-throttled requests or servers specifically
61
61
  * listed in {@link requestsByServer} do not observe this limit.
62
62
  * @type {number}
63
- * @default 6
63
+ * @default 18
64
64
  */
65
- RequestScheduler.maximumRequestsPerServer = 6;
65
+ RequestScheduler.maximumRequestsPerServer = 18;
66
66
 
67
67
  /**
68
68
  * A per server key list of overrides to use for throttling instead of <code>maximumRequestsPerServer</code>.
@@ -78,13 +78,7 @@ RequestScheduler.maximumRequestsPerServer = 6;
78
78
  * "assets.cesium.com:443": 18,
79
79
  * };
80
80
  */
81
- RequestScheduler.requestsByServer = {
82
- "api.cesium.com:443": 18,
83
- "assets.ion.cesium.com:443": 18,
84
- "ibasemaps-api.arcgis.com:443": 18,
85
- "tile.googleapis.com:443": 18,
86
- "tile.openstreetmap.org:443": 18,
87
- };
81
+ RequestScheduler.requestsByServer = {};
88
82
 
89
83
  /**
90
84
  * Specifies if the request scheduler should throttle incoming requests, or let the browser queue requests under its control.
@@ -6,7 +6,7 @@ import defaultValue from "./defaultValue.js";
6
6
  import defined from "./defined.js";
7
7
  import CesiumMath from "./Math.js";
8
8
  import Matrix4 from "./Matrix4.js";
9
- import TerrainExaggeration from "./TerrainExaggeration.js";
9
+ import VerticalExaggeration from "./VerticalExaggeration.js";
10
10
  import TerrainQuantization from "./TerrainQuantization.js";
11
11
 
12
12
  const cartesian3Scratch = new Cartesian3();
@@ -386,7 +386,7 @@ TerrainEncoding.prototype.getExaggeratedPosition = function (
386
386
  );
387
387
  const rawHeight = this.decodeHeight(buffer, index);
388
388
  const heightDifference =
389
- TerrainExaggeration.getHeight(
389
+ VerticalExaggeration.getHeight(
390
390
  rawHeight,
391
391
  exaggeration,
392
392
  exaggerationRelativeHeight
@@ -0,0 +1,69 @@
1
+ import Cartesian3 from "./Cartesian3.js";
2
+ import DeveloperError from "./DeveloperError.js";
3
+ import defined from "./defined.js";
4
+
5
+ /**
6
+ * @private
7
+ */
8
+ const VerticalExaggeration = {};
9
+
10
+ /**
11
+ * Scales a height relative to an offset.
12
+ *
13
+ * @param {number} height The height.
14
+ * @param {number} scale A scalar used to exaggerate the terrain. If the value is 1.0 there will be no effect.
15
+ * @param {number} relativeHeight The height relative to which terrain is exaggerated. If the value is 0.0 terrain will be exaggerated relative to the ellipsoid surface.
16
+ */
17
+ VerticalExaggeration.getHeight = function (height, scale, relativeHeight) {
18
+ //>>includeStart('debug', pragmas.debug);
19
+ if (!Number.isFinite(scale)) {
20
+ throw new DeveloperError("scale must be a finite number.");
21
+ }
22
+ if (!Number.isFinite(relativeHeight)) {
23
+ throw new DeveloperError("relativeHeight must be a finite number.");
24
+ }
25
+ //>>includeEnd('debug')
26
+ return (height - relativeHeight) * scale + relativeHeight;
27
+ };
28
+
29
+ const scratchCartographic = new Cartesian3();
30
+
31
+ /**
32
+ * Scales a position by exaggeration.
33
+ *
34
+ * @param {Cartesian3} position The position.
35
+ * @param {Ellipsoid} ellipsoid The ellipsoid.
36
+ * @param {number} verticalExaggeration A scalar used to exaggerate the terrain. If the value is 1.0 there will be no effect.
37
+ * @param {number} verticalExaggerationRelativeHeight The height relative to which terrain is exaggerated. If the value is 0.0 terrain will be exaggerated relative to the ellipsoid surface.
38
+ * @param {Cartesian3} [result] The object onto which to store the result.
39
+ */
40
+ VerticalExaggeration.getPosition = function (
41
+ position,
42
+ ellipsoid,
43
+ verticalExaggeration,
44
+ verticalExaggerationRelativeHeight,
45
+ result
46
+ ) {
47
+ const cartographic = ellipsoid.cartesianToCartographic(
48
+ position,
49
+ scratchCartographic
50
+ );
51
+ // If the position is too near the center of the ellipsoid, exaggeration is undefined.
52
+ if (!defined(cartographic)) {
53
+ return Cartesian3.clone(position, result);
54
+ }
55
+ const newHeight = VerticalExaggeration.getHeight(
56
+ cartographic.height,
57
+ verticalExaggeration,
58
+ verticalExaggerationRelativeHeight
59
+ );
60
+ return Cartesian3.fromRadians(
61
+ cartographic.longitude,
62
+ cartographic.latitude,
63
+ newHeight,
64
+ ellipsoid,
65
+ result
66
+ );
67
+ };
68
+
69
+ export default VerticalExaggeration;