@cesium/engine 20.0.2-ion.0 → 21.0.1-ion.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 (182) hide show
  1. package/Build/ThirdParty/Workers/zip-web-worker.js +637 -0
  2. package/Build/Workers/{chunk-AFKNTEMH.js → chunk-26ZRRKTU.js} +16 -16
  3. package/Build/Workers/{chunk-NKKNQMEH.js → chunk-2PX2ULSM.js} +3 -3
  4. package/Build/Workers/{chunk-OIMV4OE5.js → chunk-3K4DRV7Y.js} +9 -9
  5. package/Build/Workers/{chunk-IS5FETN7.js → chunk-3XTJC4CV.js} +5 -5
  6. package/Build/Workers/{chunk-Z2W7ZIGV.js → chunk-6KX3IUUT.js} +2 -2
  7. package/Build/Workers/{chunk-BHAATGZA.js → chunk-75UG66GR.js} +5 -5
  8. package/Build/Workers/{chunk-YXTWHLJA.js → chunk-ADADBRLI.js} +4 -4
  9. package/Build/Workers/{chunk-CUU3WGXJ.js → chunk-AGT6W3JS.js} +6 -6
  10. package/Build/Workers/{chunk-QID3DXQA.js → chunk-AQ4A5CMC.js} +7 -7
  11. package/Build/Workers/{chunk-MTBXKKSQ.js → chunk-B56XVJRS.js} +12 -12
  12. package/Build/Workers/{chunk-VODCZKV2.js → chunk-DTYIUWZU.js} +4 -4
  13. package/Build/Workers/{chunk-VSMKMGX4.js → chunk-E6T4LSM6.js} +5 -5
  14. package/Build/Workers/{chunk-WZKTQZUW.js → chunk-EEDSGIH7.js} +6 -6
  15. package/Build/Workers/{chunk-FNUSHLOY.js → chunk-EHMAKCWQ.js} +1 -1
  16. package/Build/Workers/{chunk-CYC7JX3P.js → chunk-ESPNIYL5.js} +8 -8
  17. package/Build/Workers/{chunk-LS63ERFB.js → chunk-EZJXK2UP.js} +4 -4
  18. package/Build/Workers/{chunk-Q3OWKSC5.js → chunk-G5RX7BPJ.js} +10 -10
  19. package/Build/Workers/{chunk-FAQ2XNFV.js → chunk-G74UMFQ4.js} +5 -5
  20. package/Build/Workers/{chunk-YUHWFX5H.js → chunk-H3G7OYZY.js} +2 -2
  21. package/Build/Workers/{chunk-6LULWCX3.js → chunk-HDBIC7IL.js} +1 -1
  22. package/Build/Workers/{chunk-WORBFT5H.js → chunk-JESBYOH5.js} +9 -9
  23. package/Build/Workers/{chunk-P2V7PVDH.js → chunk-KGL66RWW.js} +8 -8
  24. package/Build/Workers/{chunk-USK6ZAY2.js → chunk-L73TRTIG.js} +1 -1
  25. package/Build/Workers/{chunk-VA7LWA5Q.js → chunk-LEFV6H2V.js} +9 -9
  26. package/Build/Workers/{chunk-23B3EYUM.js → chunk-LK7H6V2E.js} +4 -4
  27. package/Build/Workers/{chunk-JVG6T2WE.js → chunk-LSNF6CIP.js} +12 -12
  28. package/Build/Workers/{chunk-ABTG74AR.js → chunk-MBIUW42A.js} +1 -1
  29. package/Build/Workers/{chunk-VZNF2GT7.js → chunk-MFPT34BC.js} +4 -4
  30. package/Build/Workers/{chunk-X6GXYB3M.js → chunk-MIFUV36K.js} +1 -1
  31. package/Build/Workers/{chunk-K6THSIDU.js → chunk-MJWRSKJV.js} +2 -2
  32. package/Build/Workers/{chunk-FYYP46TF.js → chunk-NWJRIJQG.js} +2 -2
  33. package/Build/Workers/{chunk-H5IQLAJP.js → chunk-OLH67Z2S.js} +82 -54
  34. package/Build/Workers/{chunk-FHLPYFIW.js → chunk-OWCFUM4Z.js} +13 -13
  35. package/Build/Workers/{chunk-66MGJQFZ.js → chunk-PQW63B2T.js} +2 -2
  36. package/Build/Workers/{chunk-UR36KLNW.js → chunk-RFZAUDYZ.js} +4 -4
  37. package/Build/Workers/{chunk-XWRUYDF6.js → chunk-SDFGZML6.js} +2 -2
  38. package/Build/Workers/{chunk-AHFTST3Q.js → chunk-SF2XXYOB.js} +12 -12
  39. package/Build/Workers/{chunk-QZGZIAK2.js → chunk-SGEAS4NZ.js} +6 -6
  40. package/Build/Workers/{chunk-MFXTB5I4.js → chunk-T7WXNKIA.js} +11 -11
  41. package/Build/Workers/{chunk-H7HFDM3G.js → chunk-TXK2FF6N.js} +5 -5
  42. package/Build/Workers/{chunk-D4XRQNUO.js → chunk-UTL4WVC3.js} +5 -5
  43. package/Build/Workers/{chunk-V6ZGOX4I.js → chunk-UTTKH2UG.js} +7 -7
  44. package/Build/Workers/{chunk-X55ZOYMS.js → chunk-VIDWZGD6.js} +12 -12
  45. package/Build/Workers/{chunk-TZDR2BAP.js → chunk-WIPOMPA5.js} +6 -6
  46. package/Build/Workers/{chunk-CEA3L7M7.js → chunk-WJV24LAS.js} +4 -4
  47. package/Build/Workers/{chunk-F4PS6RFF.js → chunk-WMG6UOCJ.js} +10 -10
  48. package/Build/Workers/{chunk-XIDMFHR4.js → chunk-XFS2ORSO.js} +14 -14
  49. package/Build/Workers/{chunk-VLGVUVJY.js → chunk-XPTKQIVN.js} +6 -6
  50. package/Build/Workers/{chunk-D5X2LOJ2.js → chunk-XYBFMHXA.js} +7 -7
  51. package/Build/Workers/{chunk-YNPZU55A.js → chunk-YFZMB6FZ.js} +6 -6
  52. package/Build/Workers/{chunk-YSDOO7AG.js → chunk-ZOVMWDPW.js} +5 -5
  53. package/Build/Workers/{chunk-5DF5RVIO.js → chunk-ZTGZMKAB.js} +16 -16
  54. package/Build/Workers/combineGeometry.js +21 -21
  55. package/Build/Workers/createBoxGeometry.js +15 -15
  56. package/Build/Workers/createBoxOutlineGeometry.js +13 -13
  57. package/Build/Workers/createCircleGeometry.js +23 -23
  58. package/Build/Workers/createCircleOutlineGeometry.js +16 -16
  59. package/Build/Workers/createCoplanarPolygonGeometry.js +30 -30
  60. package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +28 -28
  61. package/Build/Workers/createCorridorGeometry.js +26 -26
  62. package/Build/Workers/createCorridorOutlineGeometry.js +25 -25
  63. package/Build/Workers/createCylinderGeometry.js +17 -17
  64. package/Build/Workers/createCylinderOutlineGeometry.js +15 -15
  65. package/Build/Workers/createEllipseGeometry.js +23 -23
  66. package/Build/Workers/createEllipseOutlineGeometry.js +16 -16
  67. package/Build/Workers/createEllipsoidGeometry.js +16 -16
  68. package/Build/Workers/createEllipsoidOutlineGeometry.js +15 -15
  69. package/Build/Workers/createFrustumGeometry.js +15 -15
  70. package/Build/Workers/createFrustumOutlineGeometry.js +15 -15
  71. package/Build/Workers/createGeometry.js +21 -21
  72. package/Build/Workers/createGroundPolylineGeometry.js +19 -19
  73. package/Build/Workers/createPlaneGeometry.js +13 -13
  74. package/Build/Workers/createPlaneOutlineGeometry.js +12 -12
  75. package/Build/Workers/createPolygonGeometry.js +29 -29
  76. package/Build/Workers/createPolygonOutlineGeometry.js +27 -27
  77. package/Build/Workers/createPolylineGeometry.js +22 -22
  78. package/Build/Workers/createPolylineVolumeGeometry.js +28 -28
  79. package/Build/Workers/createPolylineVolumeOutlineGeometry.js +24 -24
  80. package/Build/Workers/createRectangleGeometry.js +24 -24
  81. package/Build/Workers/createRectangleOutlineGeometry.js +17 -17
  82. package/Build/Workers/createSimplePolylineGeometry.js +20 -20
  83. package/Build/Workers/createSphereGeometry.js +16 -16
  84. package/Build/Workers/createSphereOutlineGeometry.js +15 -15
  85. package/Build/Workers/createTaskProcessorWorker.js +3 -3
  86. package/Build/Workers/createVectorTileClampedPolylines.js +12 -12
  87. package/Build/Workers/createVectorTileGeometries.js +21 -21
  88. package/Build/Workers/createVectorTilePoints.js +11 -11
  89. package/Build/Workers/createVectorTilePolygons.js +19 -19
  90. package/Build/Workers/createVectorTilePolylines.js +12 -12
  91. package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +19 -19
  92. package/Build/Workers/createVerticesFromHeightmap.js +19 -19
  93. package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +16 -16
  94. package/Build/Workers/createWallGeometry.js +21 -21
  95. package/Build/Workers/createWallOutlineGeometry.js +20 -20
  96. package/Build/Workers/decodeDraco.js +10 -10
  97. package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
  98. package/Build/Workers/decodeI3S.js +9 -9
  99. package/Build/Workers/gaussianSplatSorter.js +4 -4
  100. package/Build/Workers/gaussianSplatTextureGenerator.js +4 -4
  101. package/Build/Workers/transcodeKTX2.js +6 -6
  102. package/Build/Workers/transferTypedArrayTest.js +1 -1
  103. package/Build/Workers/upsampleQuantizedTerrainMesh.js +19 -19
  104. package/Source/Core/Event.js +94 -53
  105. package/Source/Core/GoogleMaps.js +2 -2
  106. package/Source/Core/Ion.js +1 -1
  107. package/Source/Core/IonResource.js +30 -4
  108. package/Source/Core/Resource.js +5 -1
  109. package/Source/DataSources/KmlDataSource.js +62 -63
  110. package/Source/DataSources/exportKml.js +27 -30
  111. package/Source/Scene/ArcGisMapService.js +1 -1
  112. package/Source/Scene/Azure2DImageryProvider.js +308 -0
  113. package/Source/Scene/Billboard.js +4 -0
  114. package/Source/Scene/BillboardCollection.js +9 -2
  115. package/Source/Scene/ClippingPlaneCollection.js +3 -3
  116. package/Source/Scene/ClippingPolygon.js +91 -2
  117. package/Source/Scene/CreditDisplay.js +1 -1
  118. package/Source/Scene/GaussianSplat3DTileContent.js +54 -9
  119. package/Source/Scene/GaussianSplatPrimitive.js +49 -50
  120. package/Source/Scene/Google2DImageryProvider.js +614 -0
  121. package/Source/Scene/IonImageryProvider.js +22 -1
  122. package/Source/Scene/LabelCollection.js +1 -0
  123. package/Source/Scene/Material.js +248 -80
  124. package/Source/Scene/Primitive.js +6 -0
  125. package/Source/Scene/PrimitiveState.js +123 -0
  126. package/Source/Scene/Scene.js +2 -2
  127. package/Source/Scene/VoxelBoundsCollection.js +494 -0
  128. package/Source/Scene/VoxelBoxShape.js +236 -101
  129. package/Source/Scene/VoxelCylinderShape.js +315 -204
  130. package/Source/Scene/VoxelEllipsoidShape.js +402 -119
  131. package/Source/Scene/VoxelPrimitive.js +119 -84
  132. package/Source/Scene/VoxelRenderResources.js +17 -10
  133. package/Source/Scene/VoxelShape.js +21 -6
  134. package/Source/Scene/buildVoxelDrawCommands.js +61 -20
  135. package/Source/Scene/createGooglePhotorealistic3DTileset.js +1 -1
  136. package/Source/Scene/getClippingFunction.js +79 -88
  137. package/Source/Shaders/BillboardCollectionVS.glsl +2 -0
  138. package/Source/Shaders/BillboardCollectionVS.js +2 -0
  139. package/Source/Shaders/Voxels/IntersectBox.glsl +20 -33
  140. package/Source/Shaders/Voxels/IntersectBox.js +20 -33
  141. package/Source/Shaders/Voxels/IntersectCylinder.glsl +28 -32
  142. package/Source/Shaders/Voxels/IntersectCylinder.js +28 -32
  143. package/Source/Shaders/Voxels/IntersectDepth.glsl +1 -4
  144. package/Source/Shaders/Voxels/IntersectDepth.js +1 -4
  145. package/Source/Shaders/Voxels/IntersectEllipsoid.glsl +12 -20
  146. package/Source/Shaders/Voxels/IntersectEllipsoid.js +12 -20
  147. package/Source/Shaders/Voxels/IntersectLongitude.glsl +21 -9
  148. package/Source/Shaders/Voxels/IntersectLongitude.js +21 -9
  149. package/Source/Shaders/Voxels/{IntersectClippingPlanes.glsl → IntersectPlane.glsl} +5 -3
  150. package/Source/Shaders/Voxels/{IntersectClippingPlanes.js → IntersectPlane.js} +5 -3
  151. package/Source/Shaders/Voxels/Intersection.glsl +3 -3
  152. package/Source/Shaders/Voxels/Intersection.js +3 -3
  153. package/Source/Shaders/Voxels/Octree.glsl +46 -51
  154. package/Source/Shaders/Voxels/Octree.js +46 -51
  155. package/Source/Shaders/Voxels/VoxelFS.glsl +50 -48
  156. package/Source/Shaders/Voxels/VoxelFS.js +50 -48
  157. package/Source/Shaders/Voxels/VoxelUtils.glsl +0 -19
  158. package/Source/Shaders/Voxels/VoxelUtils.js +0 -19
  159. package/Source/Shaders/Voxels/convertLocalToBoxUv.glsl +30 -0
  160. package/Source/Shaders/Voxels/convertLocalToBoxUv.js +32 -0
  161. package/Source/Shaders/Voxels/convertLocalToCylinderUv.glsl +97 -0
  162. package/Source/Shaders/Voxels/convertLocalToCylinderUv.js +99 -0
  163. package/Source/Shaders/Voxels/convertLocalToEllipsoidUv.glsl +193 -0
  164. package/Source/Shaders/Voxels/convertLocalToEllipsoidUv.js +195 -0
  165. package/Source/ThirdParty/Workers/zip-web-worker.js +1 -0
  166. package/Source/ThirdParty/zip-module.wasm +0 -0
  167. package/index.d.ts +317 -14
  168. package/index.js +177 -175
  169. package/package.json +2 -2
  170. package/Build/ThirdParty/Workers/pako_deflate.min.js +0 -503
  171. package/Build/ThirdParty/Workers/pako_inflate.min.js +0 -698
  172. package/Build/ThirdParty/Workers/z-worker-pako.js +0 -601
  173. package/Source/Core/defaultValue.js +0 -48
  174. package/Source/Shaders/Voxels/convertUvToBox.glsl +0 -45
  175. package/Source/Shaders/Voxels/convertUvToBox.js +0 -46
  176. package/Source/Shaders/Voxels/convertUvToCylinder.glsl +0 -99
  177. package/Source/Shaders/Voxels/convertUvToCylinder.js +0 -101
  178. package/Source/Shaders/Voxels/convertUvToEllipsoid.glsl +0 -139
  179. package/Source/Shaders/Voxels/convertUvToEllipsoid.js +0 -141
  180. package/Source/ThirdParty/Workers/pako_deflate.min.js +0 -2
  181. package/Source/ThirdParty/Workers/pako_inflate.min.js +0 -2
  182. package/Source/ThirdParty/Workers/z-worker-pako.js +0 -1
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.133.2-ion
4
+ * Version 1.134.1-ion.0
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,7 +25,7 @@
25
25
 
26
26
  import {
27
27
  defined_default
28
- } from "./chunk-USK6ZAY2.js";
28
+ } from "./chunk-L73TRTIG.js";
29
29
 
30
30
  // packages/engine/Source/Core/formatError.js
31
31
  function formatError(object) {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.133.2-ion
4
+ * Version 1.134.1-ion.0
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.133.2-ion
4
+ * Version 1.134.1-ion.0
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,33 +25,33 @@
25
25
 
26
26
  import {
27
27
  AttributeCompression_default
28
- } from "./chunk-V6ZGOX4I.js";
28
+ } from "./chunk-UTTKH2UG.js";
29
29
  import {
30
30
  BoundingSphere_default
31
- } from "./chunk-QZGZIAK2.js";
31
+ } from "./chunk-SGEAS4NZ.js";
32
32
  import {
33
33
  Matrix4_default,
34
34
  Rectangle_default
35
- } from "./chunk-H5IQLAJP.js";
35
+ } from "./chunk-OLH67Z2S.js";
36
36
  import {
37
37
  ComponentDatatype_default
38
- } from "./chunk-YXTWHLJA.js";
38
+ } from "./chunk-ADADBRLI.js";
39
39
  import {
40
40
  Cartesian2_default,
41
41
  Cartesian3_default,
42
42
  Cartographic_default,
43
43
  Ellipsoid_default
44
- } from "./chunk-LS63ERFB.js";
44
+ } from "./chunk-EZJXK2UP.js";
45
45
  import {
46
46
  Math_default
47
- } from "./chunk-NKKNQMEH.js";
47
+ } from "./chunk-2PX2ULSM.js";
48
48
  import {
49
49
  Check_default,
50
50
  DeveloperError_default
51
- } from "./chunk-66MGJQFZ.js";
51
+ } from "./chunk-PQW63B2T.js";
52
52
  import {
53
53
  defined_default
54
- } from "./chunk-USK6ZAY2.js";
54
+ } from "./chunk-L73TRTIG.js";
55
55
 
56
56
  // packages/engine/Source/Core/EllipsoidalOccluder.js
57
57
  function EllipsoidalOccluder(ellipsoid, cameraPosition) {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.133.2-ion
4
+ * Version 1.134.1-ion.0
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,31 +25,31 @@
25
25
 
26
26
  import {
27
27
  AxisAlignedBoundingBox_default
28
- } from "./chunk-FAQ2XNFV.js";
28
+ } from "./chunk-G74UMFQ4.js";
29
29
  import {
30
30
  IntersectionTests_default,
31
31
  Ray_default
32
- } from "./chunk-WZKTQZUW.js";
32
+ } from "./chunk-EEDSGIH7.js";
33
33
  import {
34
34
  Plane_default
35
- } from "./chunk-YNPZU55A.js";
35
+ } from "./chunk-YFZMB6FZ.js";
36
36
  import {
37
37
  Cartesian4_default,
38
38
  Matrix4_default,
39
39
  Transforms_default
40
- } from "./chunk-H5IQLAJP.js";
40
+ } from "./chunk-OLH67Z2S.js";
41
41
  import {
42
42
  Cartesian2_default,
43
43
  Cartesian3_default,
44
44
  Ellipsoid_default
45
- } from "./chunk-LS63ERFB.js";
45
+ } from "./chunk-EZJXK2UP.js";
46
46
  import {
47
47
  Check_default,
48
48
  DeveloperError_default
49
- } from "./chunk-66MGJQFZ.js";
49
+ } from "./chunk-PQW63B2T.js";
50
50
  import {
51
51
  defined_default
52
- } from "./chunk-USK6ZAY2.js";
52
+ } from "./chunk-L73TRTIG.js";
53
53
 
54
54
  // packages/engine/Source/Core/EllipsoidTangentPlane.js
55
55
  var scratchCart4 = new Cartesian4_default();
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.133.2-ion
4
+ * Version 1.134.1-ion.0
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.133.2-ion
4
+ * Version 1.134.1-ion.0
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,33 +25,33 @@
25
25
 
26
26
  import {
27
27
  EllipsoidRhumbLine_default
28
- } from "./chunk-VSMKMGX4.js";
28
+ } from "./chunk-E6T4LSM6.js";
29
29
  import {
30
30
  GeometryAttribute_default,
31
31
  Geometry_default,
32
32
  PrimitiveType_default
33
- } from "./chunk-VLGVUVJY.js";
33
+ } from "./chunk-XPTKQIVN.js";
34
34
  import {
35
35
  ComponentDatatype_default
36
- } from "./chunk-YXTWHLJA.js";
36
+ } from "./chunk-ADADBRLI.js";
37
37
  import {
38
38
  Cartesian2_default,
39
39
  Cartesian3_default,
40
40
  Cartographic_default,
41
41
  Ellipsoid_default
42
- } from "./chunk-LS63ERFB.js";
42
+ } from "./chunk-EZJXK2UP.js";
43
43
  import {
44
44
  Math_default
45
- } from "./chunk-NKKNQMEH.js";
45
+ } from "./chunk-2PX2ULSM.js";
46
46
  import {
47
47
  WebGLConstants_default
48
- } from "./chunk-6LULWCX3.js";
48
+ } from "./chunk-HDBIC7IL.js";
49
49
  import {
50
50
  Check_default
51
- } from "./chunk-66MGJQFZ.js";
51
+ } from "./chunk-PQW63B2T.js";
52
52
  import {
53
53
  defined_default
54
- } from "./chunk-USK6ZAY2.js";
54
+ } from "./chunk-L73TRTIG.js";
55
55
 
56
56
  // packages/engine/Source/Core/WindingOrder.js
57
57
  var WindingOrder = {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.133.2-ion
4
+ * Version 1.134.1-ion.0
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,13 +25,13 @@
25
25
 
26
26
  import {
27
27
  Frozen_default
28
- } from "./chunk-LS63ERFB.js";
28
+ } from "./chunk-EZJXK2UP.js";
29
29
  import {
30
30
  DeveloperError_default
31
- } from "./chunk-66MGJQFZ.js";
31
+ } from "./chunk-PQW63B2T.js";
32
32
  import {
33
33
  defined_default
34
- } from "./chunk-USK6ZAY2.js";
34
+ } from "./chunk-L73TRTIG.js";
35
35
 
36
36
  // packages/engine/Source/Core/VertexFormat.js
37
37
  function VertexFormat(options) {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.133.2-ion
4
+ * Version 1.134.1-ion.0
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,41 +25,41 @@
25
25
 
26
26
  import {
27
27
  EllipseGeometryLibrary_default
28
- } from "./chunk-CEA3L7M7.js";
28
+ } from "./chunk-WJV24LAS.js";
29
29
  import {
30
30
  GeometryOffsetAttribute_default
31
- } from "./chunk-FNUSHLOY.js";
31
+ } from "./chunk-EHMAKCWQ.js";
32
32
  import {
33
33
  IndexDatatype_default
34
- } from "./chunk-IS5FETN7.js";
34
+ } from "./chunk-3XTJC4CV.js";
35
35
  import {
36
36
  GeometryAttributes_default
37
- } from "./chunk-Z2W7ZIGV.js";
37
+ } from "./chunk-6KX3IUUT.js";
38
38
  import {
39
39
  GeometryAttribute_default,
40
40
  Geometry_default,
41
41
  PrimitiveType_default
42
- } from "./chunk-VLGVUVJY.js";
42
+ } from "./chunk-XPTKQIVN.js";
43
43
  import {
44
44
  BoundingSphere_default
45
- } from "./chunk-QZGZIAK2.js";
45
+ } from "./chunk-SGEAS4NZ.js";
46
46
  import {
47
47
  ComponentDatatype_default
48
- } from "./chunk-YXTWHLJA.js";
48
+ } from "./chunk-ADADBRLI.js";
49
49
  import {
50
50
  Cartesian3_default,
51
51
  Ellipsoid_default,
52
52
  Frozen_default
53
- } from "./chunk-LS63ERFB.js";
53
+ } from "./chunk-EZJXK2UP.js";
54
54
  import {
55
55
  Math_default
56
- } from "./chunk-NKKNQMEH.js";
56
+ } from "./chunk-2PX2ULSM.js";
57
57
  import {
58
58
  DeveloperError_default
59
- } from "./chunk-66MGJQFZ.js";
59
+ } from "./chunk-PQW63B2T.js";
60
60
  import {
61
61
  defined_default
62
- } from "./chunk-USK6ZAY2.js";
62
+ } from "./chunk-L73TRTIG.js";
63
63
 
64
64
  // packages/engine/Source/Core/EllipseOutlineGeometry.js
65
65
  var scratchCartesian1 = new Cartesian3_default();
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.133.2-ion
4
+ * Version 1.134.1-ion.0
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.133.2-ion
4
+ * Version 1.134.1-ion.0
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,13 +25,13 @@
25
25
 
26
26
  import {
27
27
  Math_default
28
- } from "./chunk-NKKNQMEH.js";
28
+ } from "./chunk-2PX2ULSM.js";
29
29
  import {
30
30
  Check_default
31
- } from "./chunk-66MGJQFZ.js";
31
+ } from "./chunk-PQW63B2T.js";
32
32
  import {
33
33
  defined_default
34
- } from "./chunk-USK6ZAY2.js";
34
+ } from "./chunk-L73TRTIG.js";
35
35
 
36
36
  // packages/engine/Source/Core/arrayRemoveDuplicates.js
37
37
  var removeDuplicatesEpsilon = Math_default.EPSILON10;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.133.2-ion
4
+ * Version 1.134.1-ion.0
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.133.2-ion
4
+ * Version 1.134.1-ion.0
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,7 +25,7 @@
25
25
 
26
26
  import {
27
27
  Math_default
28
- } from "./chunk-NKKNQMEH.js";
28
+ } from "./chunk-2PX2ULSM.js";
29
29
 
30
30
  // packages/engine/Source/Core/CylinderGeometryLibrary.js
31
31
  var CylinderGeometryLibrary = {};
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.133.2-ion
4
+ * Version 1.134.1-ion.0
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,7 +25,7 @@
25
25
 
26
26
  import {
27
27
  defined_default
28
- } from "./chunk-USK6ZAY2.js";
28
+ } from "./chunk-L73TRTIG.js";
29
29
 
30
30
  // packages/engine/Source/Core/RuntimeError.js
31
31
  function RuntimeError(message) {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.133.2-ion
4
+ * Version 1.134.1-ion.0
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -31,23 +31,23 @@ import {
31
31
  FeatureDetection_default,
32
32
  Frozen_default,
33
33
  Matrix3_default
34
- } from "./chunk-LS63ERFB.js";
34
+ } from "./chunk-EZJXK2UP.js";
35
35
  import {
36
36
  Math_default
37
- } from "./chunk-NKKNQMEH.js";
37
+ } from "./chunk-2PX2ULSM.js";
38
38
  import {
39
39
  RuntimeError_default
40
- } from "./chunk-FYYP46TF.js";
40
+ } from "./chunk-NWJRIJQG.js";
41
41
  import {
42
42
  Check_default,
43
43
  DeveloperError_default
44
- } from "./chunk-66MGJQFZ.js";
44
+ } from "./chunk-PQW63B2T.js";
45
45
  import {
46
46
  __commonJS,
47
47
  __require,
48
48
  __toESM,
49
49
  defined_default
50
- } from "./chunk-USK6ZAY2.js";
50
+ } from "./chunk-L73TRTIG.js";
51
51
 
52
52
  // node_modules/urijs/src/punycode.js
53
53
  var require_punycode = __commonJS({
@@ -5895,10 +5895,11 @@ var import_urijs4 = __toESM(require_URI(), 1);
5895
5895
 
5896
5896
  // packages/engine/Source/Core/Event.js
5897
5897
  function Event() {
5898
- this._listeners = [];
5899
- this._scopes = [];
5900
- this._toRemove = [];
5901
- this._insideRaiseEvent = false;
5898
+ this._listeners = /* @__PURE__ */ new Map();
5899
+ this._toRemove = /* @__PURE__ */ new Map();
5900
+ this._toAdd = /* @__PURE__ */ new Map();
5901
+ this._invokingListeners = false;
5902
+ this._listenerCount = 0;
5902
5903
  }
5903
5904
  Object.defineProperties(Event.prototype, {
5904
5905
  /**
@@ -5909,70 +5910,93 @@ Object.defineProperties(Event.prototype, {
5909
5910
  */
5910
5911
  numberOfListeners: {
5911
5912
  get: function() {
5912
- return this._listeners.length - this._toRemove.length;
5913
+ return this._listenerCount;
5913
5914
  }
5914
5915
  }
5915
5916
  });
5916
5917
  Event.prototype.addEventListener = function(listener, scope) {
5917
5918
  Check_default.typeOf.func("listener", listener);
5918
- this._listeners.push(listener);
5919
- this._scopes.push(scope);
5920
5919
  const event = this;
5920
+ const listenerMap = event._invokingListeners ? event._toAdd : event._listeners;
5921
+ const added = addEventListener(this, listenerMap, listener, scope);
5922
+ if (added) {
5923
+ event._listenerCount++;
5924
+ }
5921
5925
  return function() {
5922
5926
  event.removeEventListener(listener, scope);
5923
5927
  };
5924
5928
  };
5925
- Event.prototype.removeEventListener = function(listener, scope) {
5926
- Check_default.typeOf.func("listener", listener);
5927
- const listeners = this._listeners;
5928
- const scopes = this._scopes;
5929
- let index = -1;
5930
- for (let i = 0; i < listeners.length; i++) {
5931
- if (listeners[i] === listener && scopes[i] === scope) {
5932
- index = i;
5933
- break;
5934
- }
5929
+ function addEventListener(event, listenerMap, listener, scope) {
5930
+ if (!listenerMap.has(listener)) {
5931
+ listenerMap.set(listener, /* @__PURE__ */ new Set());
5935
5932
  }
5936
- if (index !== -1) {
5937
- if (this._insideRaiseEvent) {
5938
- this._toRemove.push(index);
5939
- listeners[index] = void 0;
5940
- scopes[index] = void 0;
5941
- } else {
5942
- listeners.splice(index, 1);
5943
- scopes.splice(index, 1);
5944
- }
5933
+ const scopes = listenerMap.get(listener);
5934
+ if (!scopes.has(scope)) {
5935
+ scopes.add(scope);
5945
5936
  return true;
5946
5937
  }
5947
5938
  return false;
5939
+ }
5940
+ Event.prototype.removeEventListener = function(listener, scope) {
5941
+ Check_default.typeOf.func("listener", listener);
5942
+ const removedFromListeners = removeEventListener(
5943
+ this,
5944
+ this._listeners,
5945
+ listener,
5946
+ scope
5947
+ );
5948
+ const removedFromToAdd = removeEventListener(
5949
+ this,
5950
+ this._toAdd,
5951
+ listener,
5952
+ scope
5953
+ );
5954
+ const removed = removedFromListeners || removedFromToAdd;
5955
+ if (removed) {
5956
+ this._listenerCount--;
5957
+ }
5958
+ return removed;
5948
5959
  };
5949
- function compareNumber(a3, b) {
5950
- return b - a3;
5960
+ function removeEventListener(event, listenerMap, listener, scope) {
5961
+ const scopes = listenerMap.get(listener);
5962
+ if (!scopes || !scopes.has(scope)) {
5963
+ return false;
5964
+ }
5965
+ if (event._invokingListeners) {
5966
+ if (!addEventListener(event, event._toRemove, listener, scope)) {
5967
+ return false;
5968
+ }
5969
+ } else {
5970
+ scopes.delete(scope);
5971
+ if (scopes.size === 0) {
5972
+ listenerMap.delete(listener);
5973
+ }
5974
+ }
5975
+ return true;
5951
5976
  }
5952
5977
  Event.prototype.raiseEvent = function() {
5953
- this._insideRaiseEvent = true;
5954
- let i;
5955
- const listeners = this._listeners;
5956
- const scopes = this._scopes;
5957
- let length = listeners.length;
5958
- for (i = 0; i < length; i++) {
5959
- const listener = listeners[i];
5960
- if (defined_default(listener)) {
5961
- listeners[i].apply(scopes[i], arguments);
5978
+ this._invokingListeners = true;
5979
+ for (const [listener, scopes] of this._listeners.entries()) {
5980
+ if (!defined_default(listener)) {
5981
+ continue;
5982
+ }
5983
+ for (const scope of scopes) {
5984
+ listener.apply(scope, arguments);
5985
+ }
5986
+ }
5987
+ this._invokingListeners = false;
5988
+ for (const [listener, scopes] of this._toAdd.entries()) {
5989
+ for (const scope of scopes) {
5990
+ addEventListener(this, this._listeners, listener, scope);
5962
5991
  }
5963
5992
  }
5964
- const toRemove = this._toRemove;
5965
- length = toRemove.length;
5966
- if (length > 0) {
5967
- toRemove.sort(compareNumber);
5968
- for (i = 0; i < length; i++) {
5969
- const index = toRemove[i];
5970
- listeners.splice(index, 1);
5971
- scopes.splice(index, 1);
5993
+ this._toAdd.clear();
5994
+ for (const [listener, scopes] of this._toRemove.entries()) {
5995
+ for (const scope of scopes) {
5996
+ removeEventListener(this, this._listeners, listener, scope);
5972
5997
  }
5973
- toRemove.length = 0;
5974
5998
  }
5975
- this._insideRaiseEvent = false;
5999
+ this._toRemove.clear();
5976
6000
  };
5977
6001
  var Event_default = Event;
5978
6002
 
@@ -6570,6 +6594,8 @@ Resource.supportsImageBitmapOptions = function() {
6570
6594
  url: imageDataUri
6571
6595
  }).then(function(blob) {
6572
6596
  const imageBitmapOptions = {
6597
+ // 'from-image' is deprecated, new option is 'none'. However, we still need to support older browsers,
6598
+ // and there's no good way to detect support for these options. For now, continue to use 'from-image'. See: https://github.com/CesiumGS/cesium/issues/12846
6573
6599
  imageOrientation: "flipY",
6574
6600
  // default is "from-image"
6575
6601
  premultiplyAlpha: "none",
@@ -7411,7 +7437,9 @@ Resource.createImageBitmapFromBlob = function(blob, options) {
7411
7437
  options.skipColorSpaceConversion
7412
7438
  );
7413
7439
  return createImageBitmap(blob, {
7414
- imageOrientation: options.flipY ? "flipY" : "from-image",
7440
+ // 'from-image' is deprecated, new option is 'none'. However, we still need to support older browsers,
7441
+ // and there's no good way to detect support for these options. For now, continue to use 'from-image'. See: https://github.com/CesiumGS/cesium/issues/12846
7442
+ imageOrientation: options.flipY ? "flipY" : "none",
7415
7443
  premultiplyAlpha: options.premultiplyAlpha ? "premultiply" : "none",
7416
7444
  colorSpaceConversion: options.skipColorSpaceConversion ? "none" : "default"
7417
7445
  });
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.133.2-ion
4
+ * Version 1.134.1-ion.0
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,44 +25,44 @@
25
25
 
26
26
  import {
27
27
  CylinderGeometryLibrary_default
28
- } from "./chunk-K6THSIDU.js";
28
+ } from "./chunk-MJWRSKJV.js";
29
29
  import {
30
30
  GeometryOffsetAttribute_default
31
- } from "./chunk-FNUSHLOY.js";
31
+ } from "./chunk-EHMAKCWQ.js";
32
32
  import {
33
33
  VertexFormat_default
34
- } from "./chunk-23B3EYUM.js";
34
+ } from "./chunk-LK7H6V2E.js";
35
35
  import {
36
36
  IndexDatatype_default
37
- } from "./chunk-IS5FETN7.js";
37
+ } from "./chunk-3XTJC4CV.js";
38
38
  import {
39
39
  GeometryAttributes_default
40
- } from "./chunk-Z2W7ZIGV.js";
40
+ } from "./chunk-6KX3IUUT.js";
41
41
  import {
42
42
  GeometryAttribute_default,
43
43
  Geometry_default,
44
44
  PrimitiveType_default
45
- } from "./chunk-VLGVUVJY.js";
45
+ } from "./chunk-XPTKQIVN.js";
46
46
  import {
47
47
  BoundingSphere_default
48
- } from "./chunk-QZGZIAK2.js";
48
+ } from "./chunk-SGEAS4NZ.js";
49
49
  import {
50
50
  ComponentDatatype_default
51
- } from "./chunk-YXTWHLJA.js";
51
+ } from "./chunk-ADADBRLI.js";
52
52
  import {
53
53
  Cartesian2_default,
54
54
  Cartesian3_default,
55
55
  Frozen_default
56
- } from "./chunk-LS63ERFB.js";
56
+ } from "./chunk-EZJXK2UP.js";
57
57
  import {
58
58
  Math_default
59
- } from "./chunk-NKKNQMEH.js";
59
+ } from "./chunk-2PX2ULSM.js";
60
60
  import {
61
61
  DeveloperError_default
62
- } from "./chunk-66MGJQFZ.js";
62
+ } from "./chunk-PQW63B2T.js";
63
63
  import {
64
64
  defined_default
65
- } from "./chunk-USK6ZAY2.js";
65
+ } from "./chunk-L73TRTIG.js";
66
66
 
67
67
  // packages/engine/Source/Core/CylinderGeometry.js
68
68
  var radiusScratch = new Cartesian2_default();
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.133.2-ion
4
+ * Version 1.134.1-ion.0
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,7 +25,7 @@
25
25
 
26
26
  import {
27
27
  defined_default
28
- } from "./chunk-USK6ZAY2.js";
28
+ } from "./chunk-L73TRTIG.js";
29
29
 
30
30
  // packages/engine/Source/Core/DeveloperError.js
31
31
  function DeveloperError(message) {