mars3d-cesium 1.140.0 → 1.142.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 (138) hide show
  1. package/Build/Cesium/Cesium.d.ts +587 -334
  2. package/Build/Cesium/Cesium.js +5567 -4501
  3. package/Build/Cesium/README.md +13 -0
  4. package/Build/Cesium/ThirdParty/Workers/zip-web-worker.js +1 -0
  5. package/Build/Cesium/ThirdParty/zip-module.wasm +0 -0
  6. package/Build/Cesium/Workers/chunk-2UKBY5SP.js +26 -0
  7. package/Build/Cesium/Workers/chunk-2WLEHP5L.js +26 -0
  8. package/Build/Cesium/Workers/{chunk-5IQULCCZ.js → chunk-3IPFLS4B.js} +2 -2
  9. package/Build/Cesium/Workers/{chunk-HNKLZQOV.js → chunk-3YGDD6EJ.js} +2 -2
  10. package/Build/Cesium/Workers/{chunk-C6HKNYGW.js → chunk-42VTSSIH.js} +2 -2
  11. package/Build/Cesium/Workers/chunk-4H24WXIW.js +26 -0
  12. package/Build/Cesium/Workers/{chunk-YDQLCOZM.js → chunk-4MLDGMEV.js} +2 -2
  13. package/Build/Cesium/Workers/{chunk-WRLXLKCG.js → chunk-4S36DQCV.js} +2 -2
  14. package/Build/Cesium/Workers/{chunk-GLZ7AVHY.js → chunk-5ZT6ZFDP.js} +2 -2
  15. package/Build/Cesium/Workers/{chunk-GDJPERBD.js → chunk-6VHKA3VW.js} +2 -2
  16. package/Build/Cesium/Workers/{chunk-FHECC5EZ.js → chunk-7HALWTCK.js} +2 -2
  17. package/Build/Cesium/Workers/{chunk-AZSS2BNB.js → chunk-7ZAL4IN4.js} +2 -2
  18. package/Build/Cesium/Workers/chunk-BAQXDPDM.js +26 -0
  19. package/Build/Cesium/Workers/{chunk-PXZYU6PD.js → chunk-BBX7BBHZ.js} +2 -2
  20. package/Build/Cesium/Workers/chunk-BZDQ5KVN.js +63 -0
  21. package/Build/Cesium/Workers/{chunk-K35RPNUR.js → chunk-CCGTX3CU.js} +2 -2
  22. package/Build/Cesium/Workers/{chunk-ECLCX5XZ.js → chunk-DF7QOB5A.js} +2 -2
  23. package/Build/Cesium/Workers/{chunk-LT7NKOZD.js → chunk-DKECYXB4.js} +2 -2
  24. package/Build/Cesium/Workers/chunk-EIWLUTKC.js +29 -0
  25. package/Build/Cesium/Workers/{chunk-422SYBQS.js → chunk-FA6YXDGA.js} +2 -2
  26. package/Build/Cesium/Workers/chunk-FKSSFSOY.js +26 -0
  27. package/Build/Cesium/Workers/chunk-FZHW35IM.js +29 -0
  28. package/Build/Cesium/Workers/chunk-G775OO4W.js +26 -0
  29. package/Build/Cesium/Workers/{chunk-VC43NA4S.js → chunk-GY37VMGY.js} +2 -2
  30. package/Build/Cesium/Workers/{chunk-BYYYB2C7.js → chunk-HLURJJGW.js} +2 -2
  31. package/Build/Cesium/Workers/{chunk-7SZRKGJD.js → chunk-HNILEKXM.js} +1 -1
  32. package/Build/Cesium/Workers/{chunk-3BFV72N7.js → chunk-I5FV7YM2.js} +2 -2
  33. package/Build/Cesium/Workers/chunk-IDLI2KSY.js +28 -0
  34. package/Build/Cesium/Workers/{chunk-JQWGTP3K.js → chunk-KGMYW3M3.js} +2 -2
  35. package/Build/Cesium/Workers/{chunk-PUOAX5MA.js → chunk-KL3HPWEC.js} +2 -2
  36. package/Build/Cesium/Workers/chunk-KNXPBKRM.js +26 -0
  37. package/Build/Cesium/Workers/chunk-L2XSJNGP.js +26 -0
  38. package/Build/Cesium/Workers/{chunk-RPFEAA52.js → chunk-LON2ZWED.js} +2 -2
  39. package/Build/Cesium/Workers/{chunk-4FULWVRZ.js → chunk-LPMLB7Z6.js} +2 -2
  40. package/Build/Cesium/Workers/{chunk-N6SIW7ZL.js → chunk-LR6YGRET.js} +2 -2
  41. package/Build/Cesium/Workers/{chunk-ILTEXGHO.js → chunk-M76EA5FA.js} +2 -2
  42. package/Build/Cesium/Workers/{chunk-PQWMNK6M.js → chunk-MAOOIJFB.js} +2 -2
  43. package/Build/Cesium/Workers/{chunk-OVOY7YA7.js → chunk-MQPHWN46.js} +2 -2
  44. package/Build/Cesium/Workers/chunk-MUA5S6ZF.js +26 -0
  45. package/Build/Cesium/Workers/{chunk-GVEYCBKG.js → chunk-MZIS6EDB.js} +2 -2
  46. package/Build/Cesium/Workers/{chunk-WYMSHGR6.js → chunk-NIII5EFF.js} +2 -2
  47. package/Build/Cesium/Workers/{chunk-X56SSSS5.js → chunk-NLNZEWTX.js} +2 -2
  48. package/Build/Cesium/Workers/chunk-OBKERRFX.js +26 -0
  49. package/Build/Cesium/Workers/chunk-QEHDFCIC.js +26 -0
  50. package/Build/Cesium/Workers/{chunk-YWNU5ZQD.js → chunk-RKX5YL4I.js} +2 -2
  51. package/Build/Cesium/Workers/{chunk-YBIGLQJN.js → chunk-RNEJRBH4.js} +2 -2
  52. package/Build/Cesium/Workers/chunk-RS2C3NYW.js +26 -0
  53. package/Build/Cesium/Workers/chunk-RVZ4PQIT.js +26 -0
  54. package/Build/Cesium/Workers/{chunk-PUPGLHXG.js → chunk-UDC5E5ZJ.js} +2 -2
  55. package/Build/Cesium/Workers/{chunk-Z4E6T4NK.js → chunk-VJRYROWL.js} +2 -2
  56. package/Build/Cesium/Workers/{chunk-TJ6QLJOT.js → chunk-WOWMWC56.js} +2 -2
  57. package/Build/Cesium/Workers/{chunk-KIXGV6RH.js → chunk-XLRPLD2K.js} +2 -2
  58. package/Build/Cesium/Workers/chunk-XQTWBHCA.js +26 -0
  59. package/Build/Cesium/Workers/{chunk-336QMGTQ.js → chunk-XVGAYULL.js} +2 -2
  60. package/Build/Cesium/Workers/{chunk-NL753UYH.js → chunk-YS63R4XU.js} +2 -2
  61. package/Build/Cesium/Workers/{chunk-65MI2E3A.js → chunk-Z5W764BC.js} +2 -2
  62. package/Build/Cesium/Workers/chunk-ZALZ625P.js +26 -0
  63. package/Build/Cesium/Workers/combineGeometry.js +2 -2
  64. package/Build/Cesium/Workers/createBoxGeometry.js +2 -2
  65. package/Build/Cesium/Workers/createBoxOutlineGeometry.js +2 -2
  66. package/Build/Cesium/Workers/createCircleGeometry.js +2 -2
  67. package/Build/Cesium/Workers/createCircleOutlineGeometry.js +2 -2
  68. package/Build/Cesium/Workers/createCoplanarPolygonGeometry.js +2 -2
  69. package/Build/Cesium/Workers/createCoplanarPolygonOutlineGeometry.js +2 -2
  70. package/Build/Cesium/Workers/createCorridorGeometry.js +2 -2
  71. package/Build/Cesium/Workers/createCorridorOutlineGeometry.js +2 -2
  72. package/Build/Cesium/Workers/createCylinderGeometry.js +2 -2
  73. package/Build/Cesium/Workers/createCylinderOutlineGeometry.js +2 -2
  74. package/Build/Cesium/Workers/createEllipseGeometry.js +2 -2
  75. package/Build/Cesium/Workers/createEllipseOutlineGeometry.js +2 -2
  76. package/Build/Cesium/Workers/createEllipsoidGeometry.js +2 -2
  77. package/Build/Cesium/Workers/createEllipsoidOutlineGeometry.js +2 -2
  78. package/Build/Cesium/Workers/createFrustumGeometry.js +2 -2
  79. package/Build/Cesium/Workers/createFrustumOutlineGeometry.js +2 -2
  80. package/Build/Cesium/Workers/createGeometry.js +2 -2
  81. package/Build/Cesium/Workers/createGroundPolylineGeometry.js +2 -2
  82. package/Build/Cesium/Workers/createPlaneGeometry.js +2 -2
  83. package/Build/Cesium/Workers/createPlaneOutlineGeometry.js +2 -2
  84. package/Build/Cesium/Workers/createPolygonGeometry.js +2 -2
  85. package/Build/Cesium/Workers/createPolygonOutlineGeometry.js +2 -2
  86. package/Build/Cesium/Workers/createPolylineGeometry.js +2 -2
  87. package/Build/Cesium/Workers/createPolylineVolumeGeometry.js +2 -2
  88. package/Build/Cesium/Workers/createPolylineVolumeOutlineGeometry.js +2 -2
  89. package/Build/Cesium/Workers/createRectangleGeometry.js +2 -2
  90. package/Build/Cesium/Workers/createRectangleOutlineGeometry.js +2 -2
  91. package/Build/Cesium/Workers/createSimplePolylineGeometry.js +2 -2
  92. package/Build/Cesium/Workers/createSphereGeometry.js +2 -2
  93. package/Build/Cesium/Workers/createSphereOutlineGeometry.js +2 -2
  94. package/Build/Cesium/Workers/createTaskProcessorWorker.js +2 -2
  95. package/Build/Cesium/Workers/createVectorTileClampedPolylines.js +2 -2
  96. package/Build/Cesium/Workers/createVectorTileGeometries.js +2 -2
  97. package/Build/Cesium/Workers/createVectorTilePoints.js +2 -2
  98. package/Build/Cesium/Workers/createVectorTilePolygons.js +2 -2
  99. package/Build/Cesium/Workers/createVectorTilePolylines.js +2 -2
  100. package/Build/Cesium/Workers/createVerticesFromCesium3DTilesTerrain.js +2 -2
  101. package/Build/Cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +2 -2
  102. package/Build/Cesium/Workers/createVerticesFromHeightmap.js +2 -2
  103. package/Build/Cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +2 -2
  104. package/Build/Cesium/Workers/createWallGeometry.js +2 -2
  105. package/Build/Cesium/Workers/createWallOutlineGeometry.js +2 -2
  106. package/Build/Cesium/Workers/decodeDraco.js +2 -2
  107. package/Build/Cesium/Workers/decodeGoogleEarthEnterprisePacket.js +2 -2
  108. package/Build/Cesium/Workers/decodeI3S.js +2 -2
  109. package/Build/Cesium/Workers/gaussianSplatSorter.js +2 -2
  110. package/Build/Cesium/Workers/gaussianSplatTextureGenerator.js +2 -2
  111. package/Build/Cesium/Workers/incrementallyBuildTerrainPicker.js +2 -2
  112. package/Build/Cesium/Workers/transcodeKTX2.js +19 -19
  113. package/Build/Cesium/Workers/transferTypedArrayTest.js +1 -1
  114. package/Build/Cesium/Workers/upsampleQuantizedTerrainMesh.js +2 -2
  115. package/Build/Cesium/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +2 -2
  116. package/Build/Cesium/index.cjs +5612 -4546
  117. package/Build/Cesium/index.js +5570 -4504
  118. package/package.json +1 -1
  119. package/Build/Cesium/ThirdParty/Workers/z-worker-pako.js +0 -1
  120. package/Build/Cesium/Workers/chunk-5JMVLL6X.js +0 -26
  121. package/Build/Cesium/Workers/chunk-7U5EVTKW.js +0 -26
  122. package/Build/Cesium/Workers/chunk-AXIQD4JA.js +0 -26
  123. package/Build/Cesium/Workers/chunk-DMJB4DHC.js +0 -29
  124. package/Build/Cesium/Workers/chunk-II4OPXPA.js +0 -26
  125. package/Build/Cesium/Workers/chunk-JD76ATDQ.js +0 -26
  126. package/Build/Cesium/Workers/chunk-LUCUOT65.js +0 -26
  127. package/Build/Cesium/Workers/chunk-MWY74K7V.js +0 -63
  128. package/Build/Cesium/Workers/chunk-Q6MK2R6B.js +0 -26
  129. package/Build/Cesium/Workers/chunk-Q6YG52WP.js +0 -26
  130. package/Build/Cesium/Workers/chunk-QQJ4EFK2.js +0 -26
  131. package/Build/Cesium/Workers/chunk-RTRJ3LVQ.js +0 -26
  132. package/Build/Cesium/Workers/chunk-SDQXNLTQ.js +0 -26
  133. package/Build/Cesium/Workers/chunk-TJUBNZ45.js +0 -26
  134. package/Build/Cesium/Workers/chunk-TOK3PZ73.js +0 -26
  135. package/Build/Cesium/Workers/chunk-UKJ254OV.js +0 -26
  136. package/Build/Cesium/Workers/chunk-WPXTUJZY.js +0 -26
  137. package/Build/Cesium/Workers/chunk-XXWWJ3QU.js +0 -28
  138. package/Build/Cesium/Workers/chunk-YECQFZBX.js +0 -29
@@ -724,8 +724,7 @@ export enum ArcType {
724
724
  * A collection of key-value pairs that is stored as a hash for easy
725
725
  lookup but also provides an array for fast iteration.
726
726
  */
727
- export class AssociativeArray {
728
- constructor();
727
+ export class AssociativeArray<T = unknown> {
729
728
  /**
730
729
  * Gets the number of items in the collection.
731
730
  */
@@ -735,7 +734,7 @@ export class AssociativeArray {
735
734
  This is a live array that will automatically reflect the values in the collection,
736
735
  it should not be modified directly.
737
736
  */
738
- values: any[];
737
+ values: T[];
739
738
  /**
740
739
  * Determines if the provided key is in the array.
741
740
  * @param key - The key to check.
@@ -748,13 +747,13 @@ export class AssociativeArray {
748
747
  * @param key - A unique identifier.
749
748
  * @param value - The value to associate with the provided key.
750
749
  */
751
- set(key: string | number, value: any): void;
750
+ set(key: string | number, value: T): void;
752
751
  /**
753
752
  * Retrieves the value associated with the provided key.
754
753
  * @param key - The key whose value is to be retrieved.
755
754
  * @returns The associated value, or undefined if the key does not exist in the collection.
756
755
  */
757
- get(key: string | number): any;
756
+ get(key: string | number): T;
758
757
  /**
759
758
  * Removes a key-value pair from the collection.
760
759
  * @param key - The key to be removed.
@@ -1101,7 +1100,7 @@ export class BoundingSphere {
1101
1100
  * @param [result] - The object onto which to store the result.
1102
1101
  * @returns The modified result parameter or a new BoundingSphere instance if none was provided.
1103
1102
  */
1104
- static fromRectangle2D(rectangle?: Rectangle, projection?: any, result?: BoundingSphere): BoundingSphere;
1103
+ static fromRectangle2D(rectangle?: Rectangle, projection?: MapProjection, result?: BoundingSphere): BoundingSphere;
1105
1104
  /**
1106
1105
  * Computes a bounding sphere from a rectangle projected in 2D. The bounding sphere accounts for the
1107
1106
  object's minimum and maximum heights over the rectangle.
@@ -1112,7 +1111,7 @@ export class BoundingSphere {
1112
1111
  * @param [result] - The object onto which to store the result.
1113
1112
  * @returns The modified result parameter or a new BoundingSphere instance if none was provided.
1114
1113
  */
1115
- static fromRectangleWithHeights2D(rectangle?: Rectangle, projection?: any, minimumHeight?: number, maximumHeight?: number, result?: BoundingSphere): BoundingSphere;
1114
+ static fromRectangleWithHeights2D(rectangle?: Rectangle, projection?: MapProjection, minimumHeight?: number, maximumHeight?: number, result?: BoundingSphere): BoundingSphere;
1116
1115
  /**
1117
1116
  * Computes a bounding sphere from a rectangle in 3D. The bounding sphere is created using a subsample of points
1118
1117
  on the ellipsoid and contained in the rectangle. It may not be accurate for all rectangles on all types of ellipsoids.
@@ -1214,10 +1213,6 @@ export class BoundingSphere {
1214
1213
  * @returns The modified result parameter or a new BoundingSphere instance if none was provided. (Returns undefined if sphere is undefined)
1215
1214
  */
1216
1215
  static clone(sphere: BoundingSphere, result?: BoundingSphere): BoundingSphere;
1217
- /**
1218
- * The number of elements used to pack the object into an array.
1219
- */
1220
- static packedLength: number;
1221
1216
  /**
1222
1217
  * Stores the provided instance into the provided array.
1223
1218
  * @param value - The value to pack.
@@ -1314,7 +1309,7 @@ export class BoundingSphere {
1314
1309
  * @param [result] - The object onto which to store the result.
1315
1310
  * @returns The modified result parameter or a new BoundingSphere instance if none was provided.
1316
1311
  */
1317
- static projectTo2D(sphere: BoundingSphere, projection?: any, result?: BoundingSphere): BoundingSphere;
1312
+ static projectTo2D(sphere: BoundingSphere, projection?: MapProjection, result?: BoundingSphere): BoundingSphere;
1318
1313
  /**
1319
1314
  * Determines whether or not a sphere is hidden from view by the occluder.
1320
1315
  * @param sphere - The bounding sphere surrounding the occluded object.
@@ -1386,6 +1381,10 @@ export class BoundingSphere {
1386
1381
  * @returns The radius of the BoundingSphere.
1387
1382
  */
1388
1383
  volume(): number;
1384
+ /**
1385
+ * The number of elements used to pack the object into an array.
1386
+ */
1387
+ static packedLength: number;
1389
1388
  }
1390
1389
 
1391
1390
  /**
@@ -2749,10 +2748,6 @@ export class Cartographic {
2749
2748
  * @returns <code>true</code> if left and right are within the provided epsilon, <code>false</code> otherwise.
2750
2749
  */
2751
2750
  static equalsEpsilon(left?: Cartographic, right?: Cartographic, epsilon?: number): boolean;
2752
- /**
2753
- * An immutable Cartographic instance initialized to (0.0, 0.0, 0.0).
2754
- */
2755
- static readonly ZERO: Cartographic;
2756
2751
  /**
2757
2752
  * Duplicates this instance.
2758
2753
  * @param [result] - The object onto which to store the result.
@@ -2780,6 +2775,10 @@ export class Cartographic {
2780
2775
  * @returns A string representing the provided cartographic in the format '(longitude, latitude, height)'.
2781
2776
  */
2782
2777
  toString(): string;
2778
+ /**
2779
+ * An immutable Cartographic instance initialized to (0.0, 0.0, 0.0).
2780
+ */
2781
+ static readonly ZERO: Cartographic;
2783
2782
  }
2784
2783
 
2785
2784
  /**
@@ -3829,10 +3828,6 @@ export class Color {
3829
3828
  * @returns The color object, or undefined if the string was not a valid CSS color.
3830
3829
  */
3831
3830
  static fromCssColorString(color: string, result?: Color): Color;
3832
- /**
3833
- * The number of elements used to pack the object into an array.
3834
- */
3835
- static packedLength: number;
3836
3831
  /**
3837
3832
  * Stores the provided instance into the provided array.
3838
3833
  * @param value - The value to pack.
@@ -4025,6 +4020,10 @@ export class Color {
4025
4020
  * @returns The modified result parameter.
4026
4021
  */
4027
4022
  static divideByScalar(color: Color, scalar: number, result: Color): Color;
4023
+ /**
4024
+ * The number of elements used to pack the object into an array.
4025
+ */
4026
+ static packedLength: number;
4028
4027
  /**
4029
4028
  * An immutable Color instance initialized to CSS color #F0F8FF
4030
4029
  <span class="colorSwath" style="background: #F0F8FF;"></span>
@@ -6248,23 +6247,6 @@ export class Ellipsoid {
6248
6247
  * @returns A new Ellipsoid instance.
6249
6248
  */
6250
6249
  static fromCartesian3(cartesian?: Cartesian3, result?: Ellipsoid): Ellipsoid;
6251
- /**
6252
- * An Ellipsoid instance initialized to the WGS84 standard.
6253
- */
6254
- static readonly WGS84: Ellipsoid;
6255
- /**
6256
- * An Ellipsoid instance initialized to radii of (1.0, 1.0, 1.0).
6257
- */
6258
- static readonly UNIT_SPHERE: Ellipsoid;
6259
- /**
6260
- * An Ellipsoid instance initialized to a sphere with the lunar radius.
6261
- */
6262
- static readonly MOON: Ellipsoid;
6263
- /**
6264
- * An Ellipsoid instance initialized to a sphere with the mean radii of Mars.
6265
- Source: https://epsg.io/104905
6266
- */
6267
- static readonly MARS: Ellipsoid;
6268
6250
  /**
6269
6251
  * The default ellipsoid used when not otherwise specified.
6270
6252
  * @example
@@ -6284,10 +6266,6 @@ export class Ellipsoid {
6284
6266
  * @returns The cloned Ellipsoid.
6285
6267
  */
6286
6268
  clone(result?: Ellipsoid): Ellipsoid;
6287
- /**
6288
- * The number of elements used to pack the object into an array.
6289
- */
6290
- static packedLength: number;
6291
6269
  /**
6292
6270
  * Stores the provided instance into the provided array.
6293
6271
  * @param value - The value to pack.
@@ -6304,13 +6282,6 @@ export class Ellipsoid {
6304
6282
  * @returns The modified result parameter or a new Ellipsoid instance if one was not provided.
6305
6283
  */
6306
6284
  static unpack(array: number[], startingIndex?: number, result?: Ellipsoid): Ellipsoid;
6307
- /**
6308
- * Computes the unit vector directed from the center of this ellipsoid toward the provided Cartesian position.
6309
- * @param cartesian - The Cartesian for which to to determine the geocentric normal.
6310
- * @param [result] - The object onto which to store the result.
6311
- * @returns The modified result parameter or a new Cartesian3 instance if none was provided.
6312
- */
6313
- geocentricSurfaceNormal(cartesian: Cartesian3, result?: Cartesian3): Cartesian3;
6314
6285
  /**
6315
6286
  * Computes the normal of the plane tangent to the surface of the ellipsoid at the provided position.
6316
6287
  * @param cartographic - The cartographic position for which to to determine the geodetic normal.
@@ -6449,6 +6420,34 @@ export class Ellipsoid {
6449
6420
  * @returns The approximate area of the rectangle on the surface of this ellipsoid.
6450
6421
  */
6451
6422
  surfaceArea(rectangle: Rectangle): number;
6423
+ /**
6424
+ * An Ellipsoid instance initialized to the WGS84 standard.
6425
+ */
6426
+ static readonly WGS84: Ellipsoid;
6427
+ /**
6428
+ * An Ellipsoid instance initialized to radii of (1.0, 1.0, 1.0).
6429
+ */
6430
+ static readonly UNIT_SPHERE: Ellipsoid;
6431
+ /**
6432
+ * An Ellipsoid instance initialized to a sphere with the lunar radius.
6433
+ */
6434
+ static readonly MOON: Ellipsoid;
6435
+ /**
6436
+ * An Ellipsoid instance initialized to a sphere with the mean radii of Mars.
6437
+ Source: https://epsg.io/104905
6438
+ */
6439
+ static readonly MARS: Ellipsoid;
6440
+ /**
6441
+ * The number of elements used to pack the object into an array.
6442
+ */
6443
+ static packedLength: number;
6444
+ /**
6445
+ * Computes the unit vector directed from the center of this ellipsoid toward the provided Cartesian position.
6446
+ * @param cartesian - The Cartesian for which to to determine the geocentric normal.
6447
+ * @param [result] - The object onto which to store the result.
6448
+ * @returns The modified result parameter or a new Cartesian3 instance if none was provided.
6449
+ */
6450
+ geocentricSurfaceNormal(cartesian: Cartesian3, result?: Cartesian3): Cartesian3;
6452
6451
  }
6453
6452
 
6454
6453
  /**
@@ -7250,6 +7249,9 @@ export enum GeocodeType {
7250
7249
  AUTOCOMPLETE = 1
7251
7250
  }
7252
7251
 
7252
+ export interface GeographicProjection extends MapProjection {
7253
+ }
7254
+
7253
7255
  /**
7254
7256
  * A simple map projection where longitude and latitude are linearly mapped to X and Y by multiplying
7255
7257
  them by the {@link Ellipsoid#maximumRadius}. This projection
@@ -7257,7 +7259,7 @@ is commonly known as geographic, equirectangular, equidistant cylindrical, or pl
7257
7259
  is also known as EPSG:4326.
7258
7260
  * @param [ellipsoid = Ellipsoid.default] - The ellipsoid.
7259
7261
  */
7260
- export class GeographicProjection {
7262
+ export class GeographicProjection implements MapProjection {
7261
7263
  constructor(ellipsoid?: Ellipsoid);
7262
7264
  /**
7263
7265
  * Gets the {@link Ellipsoid}.
@@ -7289,6 +7291,9 @@ export class GeographicProjection {
7289
7291
  unproject(cartesian: Cartesian3, result?: Cartographic): Cartographic;
7290
7292
  }
7291
7293
 
7294
+ export interface GeographicTilingScheme extends TilingScheme {
7295
+ }
7296
+
7292
7297
  /**
7293
7298
  * A tiling scheme for geometry referenced to a simple {@link GeographicProjection} where
7294
7299
  longitude and latitude are directly mapped to X and Y. This projection is commonly
@@ -7302,7 +7307,7 @@ the tile tree.
7302
7307
  * @param [options.numberOfLevelZeroTilesY = 1] - The number of tiles in the Y direction at level zero of
7303
7308
  the tile tree.
7304
7309
  */
7305
- export class GeographicTilingScheme {
7310
+ export class GeographicTilingScheme implements TilingScheme {
7306
7311
  constructor(options?: {
7307
7312
  ellipsoid?: Ellipsoid;
7308
7313
  rectangle?: Rectangle;
@@ -7354,7 +7359,7 @@ export class GeographicTilingScheme {
7354
7359
  * @returns The specified 'result', or a new object containing the rectangle
7355
7360
  if 'result' is undefined.
7356
7361
  */
7357
- tileXYToNativeRectangle(x: number, y: number, level: number, result?: any): Rectangle;
7362
+ tileXYToNativeRectangle(x: number, y: number, level: number, result?: Rectangle): Rectangle;
7358
7363
  /**
7359
7364
  * Converts tile x, y coordinates and level to a cartographic rectangle in radians.
7360
7365
  * @param x - The integer x coordinate of the tile.
@@ -7365,7 +7370,7 @@ export class GeographicTilingScheme {
7365
7370
  * @returns The specified 'result', or a new object containing the rectangle
7366
7371
  if 'result' is undefined.
7367
7372
  */
7368
- tileXYToRectangle(x: number, y: number, level: number, result?: any): Rectangle;
7373
+ tileXYToRectangle(x: number, y: number, level: number, result?: Rectangle): Rectangle;
7369
7374
  /**
7370
7375
  * Calculates the tile x, y coordinates of the tile containing
7371
7376
  a given cartographic position.
@@ -8014,6 +8019,31 @@ export type TypedArrayConstructor = Float64ArrayConstructor | Float32ArrayConstr
8014
8019
 
8015
8020
  export type Destroyable = any;
8016
8021
 
8022
+ /**
8023
+ * A GeoJSON position expressed as [longitude, latitude] or [longitude, latitude, altitude].
8024
+ */
8025
+ export type GeoJsonPosition = number[];
8026
+
8027
+ /**
8028
+ * A GeoJSON geometry object.
8029
+ */
8030
+ export type GeoJsonGeometry = any;
8031
+
8032
+ /**
8033
+ * A GeoJSON feature object.
8034
+ */
8035
+ export type GeoJsonFeature = any;
8036
+
8037
+ /**
8038
+ * A GeoJSON feature collection object.
8039
+ */
8040
+ export type GeoJsonFeatureCollection = any;
8041
+
8042
+ /**
8043
+ * A top-level GeoJSON object (Geometry, Feature, or FeatureCollection).
8044
+ */
8045
+ export type GeoJson = GeoJsonGeometry | GeoJsonFeature | GeoJsonFeatureCollection;
8046
+
8017
8047
  /**
8018
8048
  * <div class="notice">
8019
8049
  To construct GoogleEarthEnterpriseMetadata, call {@link GoogleEarthEnterpriseMetadata.fromUrl}. Do not call the constructor directly.
@@ -9863,8 +9893,7 @@ export class LinearSpline {
9863
9893
  * Defines how geodetic ellipsoid coordinates ({@link Cartographic}) project to a
9864
9894
  flat map like Cesium's 2D and Columbus View modes.
9865
9895
  */
9866
- export class MapProjection {
9867
- constructor();
9896
+ export interface MapProjection {
9868
9897
  /**
9869
9898
  * Gets the {@link Ellipsoid}.
9870
9899
  */
@@ -10402,10 +10431,6 @@ Constructor parameters are in row-major order for code readability.
10402
10431
  */
10403
10432
  export class Matrix2 implements ArrayLike<number> {
10404
10433
  constructor(column0Row0?: number, column1Row0?: number, column0Row1?: number, column1Row1?: number);
10405
- /**
10406
- * The number of elements used to pack the object into an array.
10407
- */
10408
- static packedLength: number;
10409
10434
  /**
10410
10435
  * Stores the provided instance into the provided array.
10411
10436
  * @param value - The value to pack.
@@ -10444,25 +10469,6 @@ export class Matrix2 implements ArrayLike<number> {
10444
10469
  * @returns The modified result parameter or a new Matrix2 instance if one was not provided. (Returns undefined if matrix is undefined)
10445
10470
  */
10446
10471
  static clone(matrix: Matrix2, result?: Matrix2): Matrix2;
10447
- /**
10448
- * Creates a Matrix2 from 4 consecutive elements in an array.
10449
- * @example
10450
- * // Create the Matrix2:
10451
- // [1.0, 2.0]
10452
- // [1.0, 2.0]
10453
-
10454
- const v = [1.0, 1.0, 2.0, 2.0];
10455
- const m = Cesium.Matrix2.fromArray(v);
10456
-
10457
- // Create same Matrix2 with using an offset into an array
10458
- const v2 = [0.0, 0.0, 1.0, 1.0, 2.0, 2.0];
10459
- const m2 = Cesium.Matrix2.fromArray(v2, 2);
10460
- * @param array - The array whose 4 consecutive elements correspond to the positions of the matrix. Assumes column-major order.
10461
- * @param [startingIndex = 0] - The offset into the array of the first element, which corresponds to first column first row position in the matrix.
10462
- * @param [result] - The object onto which to store the result.
10463
- * @returns The modified result parameter or a new Matrix2 instance if one was not provided.
10464
- */
10465
- static fromArray(array: number[], startingIndex?: number, result?: Matrix2): Matrix2;
10466
10472
  /**
10467
10473
  * Creates a Matrix2 instance from a column-major order array.
10468
10474
  * @param values - The column-major order array.
@@ -10550,7 +10556,7 @@ export class Matrix2 implements ArrayLike<number> {
10550
10556
  * @param result - The object onto which to store the result.
10551
10557
  * @returns The modified result parameter.
10552
10558
  */
10553
- static setColumn(matrix: Matrix2, index: number, cartesian: Cartesian2, result: Cartesian2): Matrix2;
10559
+ static setColumn(matrix: Matrix2, index: number, cartesian: Cartesian2, result: Matrix2): Matrix2;
10554
10560
  /**
10555
10561
  * Retrieves a copy of the matrix row at the provided index as a Cartesian2 instance.
10556
10562
  * @param matrix - The matrix to use.
@@ -10716,6 +10722,61 @@ export class Matrix2 implements ArrayLike<number> {
10716
10722
  * @returns <code>true</code> if left and right are within the provided epsilon, <code>false</code> otherwise.
10717
10723
  */
10718
10724
  static equalsEpsilon(left?: Matrix2, right?: Matrix2, epsilon?: number): boolean;
10725
+ /**
10726
+ * Gets the number of items in the collection.
10727
+ */
10728
+ length: number;
10729
+ /**
10730
+ * Duplicates the provided Matrix2 instance.
10731
+ * @param [result] - The object onto which to store the result.
10732
+ * @returns The modified result parameter or a new Matrix2 instance if one was not provided.
10733
+ */
10734
+ clone(result?: Matrix2): Matrix2;
10735
+ /**
10736
+ * Compares this matrix to the provided matrix componentwise and returns
10737
+ <code>true</code> if they are equal, <code>false</code> otherwise.
10738
+ * @param [right] - The right hand side matrix.
10739
+ * @returns <code>true</code> if they are equal, <code>false</code> otherwise.
10740
+ */
10741
+ equals(right?: Matrix2): boolean;
10742
+ /**
10743
+ * Compares this matrix to the provided matrix componentwise and returns
10744
+ <code>true</code> if they are within the provided epsilon,
10745
+ <code>false</code> otherwise.
10746
+ * @param [right] - The right hand side matrix.
10747
+ * @param [epsilon = 0] - The epsilon to use for equality testing.
10748
+ * @returns <code>true</code> if they are within the provided epsilon, <code>false</code> otherwise.
10749
+ */
10750
+ equalsEpsilon(right?: Matrix2, epsilon?: number): boolean;
10751
+ /**
10752
+ * Creates a string representing this Matrix with each row being
10753
+ on a separate line and in the format '(column0, column1)'.
10754
+ * @returns A string representing the provided Matrix with each row being on a separate line and in the format '(column0, column1)'.
10755
+ */
10756
+ toString(): string;
10757
+ /**
10758
+ * The number of elements used to pack the object into an array.
10759
+ */
10760
+ static packedLength: number;
10761
+ /**
10762
+ * Creates a Matrix2 from 4 consecutive elements in an array.
10763
+ * @example
10764
+ * // Create the Matrix2:
10765
+ // [1.0, 2.0]
10766
+ // [1.0, 2.0]
10767
+
10768
+ const v = [1.0, 1.0, 2.0, 2.0];
10769
+ const m = Cesium.Matrix2.fromArray(v);
10770
+
10771
+ // Create same Matrix2 with using an offset into an array
10772
+ const v2 = [0.0, 0.0, 1.0, 1.0, 2.0, 2.0];
10773
+ const m2 = Cesium.Matrix2.fromArray(v2, 2);
10774
+ * @param array - The array whose 4 consecutive elements correspond to the positions of the matrix. Assumes column-major order.
10775
+ * @param [startingIndex = 0] - The offset into the array of the first element, which corresponds to first column first row position in the matrix.
10776
+ * @param [result] - The object onto which to store the result.
10777
+ * @returns The modified result parameter or a new Matrix2 instance if one was not provided.
10778
+ */
10779
+ static fromArray(array: number[], startingIndex?: number, result?: Matrix2): Matrix2;
10719
10780
  /**
10720
10781
  * An immutable Matrix2 instance initialized to the identity matrix.
10721
10782
  */
@@ -10752,40 +10813,13 @@ export class Matrix2 implements ArrayLike<number> {
10752
10813
  matrix[Cesium.Matrix2.COLUMN1ROW1] = 5.0; // set column 1, row 1 to 5.0
10753
10814
  */
10754
10815
  static readonly COLUMN1ROW1: number;
10755
- /**
10756
- * Gets the number of items in the collection.
10757
- */
10758
- length: number;
10759
- /**
10760
- * Duplicates the provided Matrix2 instance.
10761
- * @param [result] - The object onto which to store the result.
10762
- * @returns The modified result parameter or a new Matrix2 instance if one was not provided.
10763
- */
10764
- clone(result?: Matrix2): Matrix2;
10765
- /**
10766
- * Compares this matrix to the provided matrix componentwise and returns
10767
- <code>true</code> if they are equal, <code>false</code> otherwise.
10768
- * @param [right] - The right hand side matrix.
10769
- * @returns <code>true</code> if they are equal, <code>false</code> otherwise.
10770
- */
10771
- equals(right?: Matrix2): boolean;
10772
- /**
10773
- * Compares this matrix to the provided matrix componentwise and returns
10774
- <code>true</code> if they are within the provided epsilon,
10775
- <code>false</code> otherwise.
10776
- * @param [right] - The right hand side matrix.
10777
- * @param [epsilon = 0] - The epsilon to use for equality testing.
10778
- * @returns <code>true</code> if they are within the provided epsilon, <code>false</code> otherwise.
10779
- */
10780
- equalsEpsilon(right?: Matrix2, epsilon?: number): boolean;
10781
- /**
10782
- * Creates a string representing this Matrix with each row being
10783
- on a separate line and in the format '(column0, column1)'.
10784
- * @returns A string representing the provided Matrix with each row being on a separate line and in the format '(column0, column1)'.
10785
- */
10786
- toString(): string;
10787
10816
  }
10788
10817
 
10818
+ export type EigenDecompositionResult = {
10819
+ unitary?: Matrix3;
10820
+ diagonal?: Matrix3;
10821
+ };
10822
+
10789
10823
  export interface Matrix3 extends ArrayLike<number> {
10790
10824
  }
10791
10825
 
@@ -10804,10 +10838,6 @@ Constructor parameters are in row-major order for code readability.
10804
10838
  */
10805
10839
  export class Matrix3 implements ArrayLike<number> {
10806
10840
  constructor(column0Row0?: number, column1Row0?: number, column2Row0?: number, column0Row1?: number, column1Row1?: number, column2Row1?: number, column0Row2?: number, column1Row2?: number, column2Row2?: number);
10807
- /**
10808
- * The number of elements used to pack the object into an array.
10809
- */
10810
- static packedLength: number;
10811
10841
  /**
10812
10842
  * Stores the provided instance into the provided array.
10813
10843
  * @param value - The value to pack.
@@ -10846,26 +10876,6 @@ export class Matrix3 implements ArrayLike<number> {
10846
10876
  * @returns The modified result parameter or a new Matrix3 instance if one was not provided. (Returns undefined if matrix is undefined)
10847
10877
  */
10848
10878
  static clone(matrix: Matrix3, result?: Matrix3): Matrix3;
10849
- /**
10850
- * Creates a Matrix3 from 9 consecutive elements in an array.
10851
- * @example
10852
- * // Create the Matrix3:
10853
- // [1.0, 2.0, 3.0]
10854
- // [1.0, 2.0, 3.0]
10855
- // [1.0, 2.0, 3.0]
10856
-
10857
- const v = [1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0];
10858
- const m = Cesium.Matrix3.fromArray(v);
10859
-
10860
- // Create same Matrix3 with using an offset into an array
10861
- const v2 = [0.0, 0.0, 1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0];
10862
- const m2 = Cesium.Matrix3.fromArray(v2, 2);
10863
- * @param array - The array whose 9 consecutive elements correspond to the positions of the matrix. Assumes column-major order.
10864
- * @param [startingIndex = 0] - The offset into the array of the first element, which corresponds to first column first row position in the matrix.
10865
- * @param [result] - The object onto which to store the result.
10866
- * @returns The modified result parameter or a new Matrix3 instance if one was not provided.
10867
- */
10868
- static fromArray(array: number[], startingIndex?: number, result?: Matrix3): Matrix3;
10869
10879
  /**
10870
10880
  * Creates a Matrix3 instance from a column-major order array.
10871
10881
  * @param values - The column-major order array.
@@ -11176,7 +11186,7 @@ export class Matrix3 implements ArrayLike<number> {
11176
11186
  * @param [result] - An object with unitary and diagonal properties which are matrices onto which to store the result.
11177
11187
  * @returns An object with unitary and diagonal properties which are the unitary and diagonal matrices, respectively.
11178
11188
  */
11179
- static computeEigenDecomposition(matrix: Matrix3, result?: any): any;
11189
+ static computeEigenDecomposition(matrix: Matrix3, result?: EigenDecompositionResult): EigenDecompositionResult;
11180
11190
  /**
11181
11191
  * Computes a matrix, which contains the absolute (unsigned) values of the provided matrix's elements.
11182
11192
  * @param matrix - The matrix with signed elements.
@@ -11222,50 +11232,6 @@ export class Matrix3 implements ArrayLike<number> {
11222
11232
  * @returns <code>true</code> if left and right are within the provided epsilon, <code>false</code> otherwise.
11223
11233
  */
11224
11234
  static equalsEpsilon(left?: Matrix3, right?: Matrix3, epsilon?: number): boolean;
11225
- /**
11226
- * An immutable Matrix3 instance initialized to the identity matrix.
11227
- */
11228
- static readonly IDENTITY: Matrix3;
11229
- /**
11230
- * An immutable Matrix3 instance initialized to the zero matrix.
11231
- */
11232
- static readonly ZERO: Matrix3;
11233
- /**
11234
- * The index into Matrix3 for column 0, row 0.
11235
- */
11236
- static readonly COLUMN0ROW0: number;
11237
- /**
11238
- * The index into Matrix3 for column 0, row 1.
11239
- */
11240
- static readonly COLUMN0ROW1: number;
11241
- /**
11242
- * The index into Matrix3 for column 0, row 2.
11243
- */
11244
- static readonly COLUMN0ROW2: number;
11245
- /**
11246
- * The index into Matrix3 for column 1, row 0.
11247
- */
11248
- static readonly COLUMN1ROW0: number;
11249
- /**
11250
- * The index into Matrix3 for column 1, row 1.
11251
- */
11252
- static readonly COLUMN1ROW1: number;
11253
- /**
11254
- * The index into Matrix3 for column 1, row 2.
11255
- */
11256
- static readonly COLUMN1ROW2: number;
11257
- /**
11258
- * The index into Matrix3 for column 2, row 0.
11259
- */
11260
- static readonly COLUMN2ROW0: number;
11261
- /**
11262
- * The index into Matrix3 for column 2, row 1.
11263
- */
11264
- static readonly COLUMN2ROW1: number;
11265
- /**
11266
- * The index into Matrix3 for column 2, row 2.
11267
- */
11268
- static readonly COLUMN2ROW2: number;
11269
11235
  /**
11270
11236
  * Gets the number of items in the collection.
11271
11237
  */
@@ -11298,8 +11264,83 @@ export class Matrix3 implements ArrayLike<number> {
11298
11264
  * @returns A string representing the provided Matrix with each row being on a separate line and in the format '(column0, column1, column2)'.
11299
11265
  */
11300
11266
  toString(): string;
11267
+ /**
11268
+ * The number of elements used to pack the object into an array.
11269
+ */
11270
+ static packedLength: number;
11271
+ /**
11272
+ * Creates a Matrix3 from 9 consecutive elements in an array.
11273
+ * @example
11274
+ * // Create the Matrix3:
11275
+ // [1.0, 2.0, 3.0]
11276
+ // [1.0, 2.0, 3.0]
11277
+ // [1.0, 2.0, 3.0]
11278
+
11279
+ const v = [1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0];
11280
+ const m = Cesium.Matrix3.fromArray(v);
11281
+
11282
+ // Create same Matrix3 with using an offset into an array
11283
+ const v2 = [0.0, 0.0, 1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0];
11284
+ const m2 = Cesium.Matrix3.fromArray(v2, 2);
11285
+ * @param array - The array whose 9 consecutive elements correspond to the positions of the matrix. Assumes column-major order.
11286
+ * @param [startingIndex = 0] - The offset into the array of the first element, which corresponds to first column first row position in the matrix.
11287
+ * @param [result] - The object onto which to store the result.
11288
+ * @returns The modified result parameter or a new Matrix3 instance if one was not provided.
11289
+ */
11290
+ static fromArray(array: number[], startingIndex?: number, result?: Matrix3): Matrix3;
11291
+ /**
11292
+ * An immutable Matrix3 instance initialized to the identity matrix.
11293
+ */
11294
+ static readonly IDENTITY: Matrix3;
11295
+ /**
11296
+ * An immutable Matrix3 instance initialized to the zero matrix.
11297
+ */
11298
+ static readonly ZERO: Matrix3;
11299
+ /**
11300
+ * The index into Matrix3 for column 0, row 0.
11301
+ */
11302
+ static readonly COLUMN0ROW0: number;
11303
+ /**
11304
+ * The index into Matrix3 for column 0, row 1.
11305
+ */
11306
+ static readonly COLUMN0ROW1: number;
11307
+ /**
11308
+ * The index into Matrix3 for column 0, row 2.
11309
+ */
11310
+ static readonly COLUMN0ROW2: number;
11311
+ /**
11312
+ * The index into Matrix3 for column 1, row 0.
11313
+ */
11314
+ static readonly COLUMN1ROW0: number;
11315
+ /**
11316
+ * The index into Matrix3 for column 1, row 1.
11317
+ */
11318
+ static readonly COLUMN1ROW1: number;
11319
+ /**
11320
+ * The index into Matrix3 for column 1, row 2.
11321
+ */
11322
+ static readonly COLUMN1ROW2: number;
11323
+ /**
11324
+ * The index into Matrix3 for column 2, row 0.
11325
+ */
11326
+ static readonly COLUMN2ROW0: number;
11327
+ /**
11328
+ * The index into Matrix3 for column 2, row 1.
11329
+ */
11330
+ static readonly COLUMN2ROW1: number;
11331
+ /**
11332
+ * The index into Matrix3 for column 2, row 2.
11333
+ */
11334
+ static readonly COLUMN2ROW2: number;
11301
11335
  }
11302
11336
 
11337
+ export type Viewport = {
11338
+ x?: number;
11339
+ y?: number;
11340
+ width?: number;
11341
+ height?: number;
11342
+ };
11343
+
11303
11344
  export interface Matrix4 extends ArrayLike<number> {
11304
11345
  }
11305
11346
 
@@ -11325,10 +11366,6 @@ Constructor parameters are in row-major order for code readability.
11325
11366
  */
11326
11367
  export class Matrix4 implements ArrayLike<number> {
11327
11368
  constructor(column0Row0?: number, column1Row0?: number, column2Row0?: number, column3Row0?: number, column0Row1?: number, column1Row1?: number, column2Row1?: number, column3Row1?: number, column0Row2?: number, column1Row2?: number, column2Row2?: number, column3Row2?: number, column0Row3?: number, column1Row3?: number, column2Row3?: number, column3Row3?: number);
11328
- /**
11329
- * The number of elements used to pack the object into an array.
11330
- */
11331
- static packedLength: number;
11332
11369
  /**
11333
11370
  * Stores the provided instance into the provided array.
11334
11371
  * @param value - The value to pack.
@@ -11367,27 +11404,6 @@ export class Matrix4 implements ArrayLike<number> {
11367
11404
  * @returns The modified result parameter or a new Matrix4 instance if one was not provided. (Returns undefined if matrix is undefined)
11368
11405
  */
11369
11406
  static clone(matrix: Matrix4, result?: Matrix4): Matrix4;
11370
- /**
11371
- * Creates a Matrix4 from 16 consecutive elements in an array.
11372
- * @example
11373
- * // Create the Matrix4:
11374
- // [1.0, 2.0, 3.0, 4.0]
11375
- // [1.0, 2.0, 3.0, 4.0]
11376
- // [1.0, 2.0, 3.0, 4.0]
11377
- // [1.0, 2.0, 3.0, 4.0]
11378
-
11379
- const v = [1.0, 1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0, 3.0, 4.0, 4.0, 4.0, 4.0];
11380
- const m = Cesium.Matrix4.fromArray(v);
11381
-
11382
- // Create same Matrix4 with using an offset into an array
11383
- const v2 = [0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0, 3.0, 4.0, 4.0, 4.0, 4.0];
11384
- const m2 = Cesium.Matrix4.fromArray(v2, 2);
11385
- * @param array - The array whose 16 consecutive elements correspond to the positions of the matrix. Assumes column-major order.
11386
- * @param [startingIndex = 0] - The offset into the array of the first element, which corresponds to first column first row position in the matrix.
11387
- * @param [result] - The object onto which to store the result.
11388
- * @returns The modified result parameter or a new Matrix4 instance if one was not provided.
11389
- */
11390
- static fromArray(array: number[], startingIndex?: number, result?: Matrix4): Matrix4;
11391
11407
  /**
11392
11408
  * Computes a Matrix4 instance from a column-major order array.
11393
11409
  * @param values - The column-major order array.
@@ -11545,7 +11561,7 @@ export class Matrix4 implements ArrayLike<number> {
11545
11561
  * @param [result] - The object in which the result will be stored.
11546
11562
  * @returns The modified result parameter.
11547
11563
  */
11548
- static computeViewportTransformation(viewport?: any, nearDepthRange?: number, farDepthRange?: number, result?: Matrix4): Matrix4;
11564
+ static computeViewportTransformation(viewport?: Viewport, nearDepthRange?: number, farDepthRange?: number, result?: Matrix4): Matrix4;
11549
11565
  /**
11550
11566
  * Computes a Matrix4 instance that transforms from world space to view space.
11551
11567
  * @param position - The position of the camera.
@@ -12051,6 +12067,63 @@ export class Matrix4 implements ArrayLike<number> {
12051
12067
  * @returns The modified result parameter.
12052
12068
  */
12053
12069
  static inverseTranspose(matrix: Matrix4, result: Matrix4): Matrix4;
12070
+ /**
12071
+ * Gets the number of items in the collection.
12072
+ */
12073
+ length: number;
12074
+ /**
12075
+ * Duplicates the provided Matrix4 instance.
12076
+ * @param [result] - The object onto which to store the result.
12077
+ * @returns The modified result parameter or a new Matrix4 instance if one was not provided.
12078
+ */
12079
+ clone(result?: Matrix4): Matrix4;
12080
+ /**
12081
+ * Compares this matrix to the provided matrix componentwise and returns
12082
+ <code>true</code> if they are equal, <code>false</code> otherwise.
12083
+ * @param [right] - The right hand side matrix.
12084
+ * @returns <code>true</code> if they are equal, <code>false</code> otherwise.
12085
+ */
12086
+ equals(right?: Matrix4): boolean;
12087
+ /**
12088
+ * Compares this matrix to the provided matrix componentwise and returns
12089
+ <code>true</code> if they are within the provided epsilon,
12090
+ <code>false</code> otherwise.
12091
+ * @param [right] - The right hand side matrix.
12092
+ * @param [epsilon = 0] - The epsilon to use for equality testing.
12093
+ * @returns <code>true</code> if they are within the provided epsilon, <code>false</code> otherwise.
12094
+ */
12095
+ equalsEpsilon(right?: Matrix4, epsilon?: number): boolean;
12096
+ /**
12097
+ * Computes a string representing this Matrix with each row being
12098
+ on a separate line and in the format '(column0, column1, column2, column3)'.
12099
+ * @returns A string representing the provided Matrix with each row being on a separate line and in the format '(column0, column1, column2, column3)'.
12100
+ */
12101
+ toString(): string;
12102
+ /**
12103
+ * The number of elements used to pack the object into an array.
12104
+ */
12105
+ static packedLength: number;
12106
+ /**
12107
+ * Creates a Matrix4 from 16 consecutive elements in an array.
12108
+ * @example
12109
+ * // Create the Matrix4:
12110
+ // [1.0, 2.0, 3.0, 4.0]
12111
+ // [1.0, 2.0, 3.0, 4.0]
12112
+ // [1.0, 2.0, 3.0, 4.0]
12113
+ // [1.0, 2.0, 3.0, 4.0]
12114
+
12115
+ const v = [1.0, 1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0, 3.0, 4.0, 4.0, 4.0, 4.0];
12116
+ const m = Cesium.Matrix4.fromArray(v);
12117
+
12118
+ // Create same Matrix4 with using an offset into an array
12119
+ const v2 = [0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0, 3.0, 4.0, 4.0, 4.0, 4.0];
12120
+ const m2 = Cesium.Matrix4.fromArray(v2, 2);
12121
+ * @param array - The array whose 16 consecutive elements correspond to the positions of the matrix. Assumes column-major order.
12122
+ * @param [startingIndex = 0] - The offset into the array of the first element, which corresponds to first column first row position in the matrix.
12123
+ * @param [result] - The object onto which to store the result.
12124
+ * @returns The modified result parameter or a new Matrix4 instance if one was not provided.
12125
+ */
12126
+ static fromArray(array: number[], startingIndex?: number, result?: Matrix4): Matrix4;
12054
12127
  /**
12055
12128
  * An immutable Matrix4 instance initialized to the identity matrix.
12056
12129
  */
@@ -12123,38 +12196,6 @@ export class Matrix4 implements ArrayLike<number> {
12123
12196
  * The index into Matrix4 for column 3, row 3.
12124
12197
  */
12125
12198
  static readonly COLUMN3ROW3: number;
12126
- /**
12127
- * Gets the number of items in the collection.
12128
- */
12129
- length: number;
12130
- /**
12131
- * Duplicates the provided Matrix4 instance.
12132
- * @param [result] - The object onto which to store the result.
12133
- * @returns The modified result parameter or a new Matrix4 instance if one was not provided.
12134
- */
12135
- clone(result?: Matrix4): Matrix4;
12136
- /**
12137
- * Compares this matrix to the provided matrix componentwise and returns
12138
- <code>true</code> if they are equal, <code>false</code> otherwise.
12139
- * @param [right] - The right hand side matrix.
12140
- * @returns <code>true</code> if they are equal, <code>false</code> otherwise.
12141
- */
12142
- equals(right?: Matrix4): boolean;
12143
- /**
12144
- * Compares this matrix to the provided matrix componentwise and returns
12145
- <code>true</code> if they are within the provided epsilon,
12146
- <code>false</code> otherwise.
12147
- * @param [right] - The right hand side matrix.
12148
- * @param [epsilon = 0] - The epsilon to use for equality testing.
12149
- * @returns <code>true</code> if they are within the provided epsilon, <code>false</code> otherwise.
12150
- */
12151
- equalsEpsilon(right?: Matrix4, epsilon?: number): boolean;
12152
- /**
12153
- * Computes a string representing this Matrix with each row being
12154
- on a separate line and in the format '(column0, column1, column2, column3)'.
12155
- * @returns A string representing the provided Matrix with each row being on a separate line and in the format '(column0, column1, column2, column3)'.
12156
- */
12157
- toString(): string;
12158
12199
  }
12159
12200
 
12160
12201
  /**
@@ -14936,10 +14977,6 @@ export class Rectangle {
14936
14977
  * Gets the height of the rectangle in radians.
14937
14978
  */
14938
14979
  readonly height: number;
14939
- /**
14940
- * The number of elements used to pack the object into an array.
14941
- */
14942
- static packedLength: number;
14943
14980
  /**
14944
14981
  * Stores the provided instance into the provided array.
14945
14982
  * @param value - The value to pack.
@@ -15165,6 +15202,10 @@ export class Rectangle {
15165
15202
  * @returns The modified result parameter or a new Rectangle instance if none was provided.
15166
15203
  */
15167
15204
  static subsection(rectangle: Rectangle, westLerp: number, southLerp: number, eastLerp: number, northLerp: number, result?: Rectangle): Rectangle;
15205
+ /**
15206
+ * The number of elements used to pack the object into an array.
15207
+ */
15208
+ static packedLength: number;
15168
15209
  /**
15169
15210
  * The largest possible rectangle.
15170
15211
  */
@@ -16549,25 +16590,25 @@ export class ScreenSpaceEventHandler {
16549
16590
  * Set a function to be executed on an input event.
16550
16591
  * @param action - Function to be executed when the input event occurs.
16551
16592
  * @param type - The ScreenSpaceEventType of input event.
16552
- * @param [modifier] - A KeyboardEventModifier key that is held when a <code>type</code>
16593
+ * @param [modifiers] - The KeyboardEventModifier keys that are held when a <code>type</code>
16553
16594
  event occurs.
16554
16595
  */
16555
- setInputAction(action: ScreenSpaceEventHandler.PositionedEventCallback | ScreenSpaceEventHandler.MotionEventCallback | ScreenSpaceEventHandler.WheelEventCallback | ScreenSpaceEventHandler.TwoPointEventCallback | ScreenSpaceEventHandler.TwoPointMotionEventCallback, type: ScreenSpaceEventType, modifier?: KeyboardEventModifier): void;
16596
+ setInputAction(action: ScreenSpaceEventHandler.PositionedEventCallback | ScreenSpaceEventHandler.MotionEventCallback | ScreenSpaceEventHandler.WheelEventCallback | ScreenSpaceEventHandler.TwoPointEventCallback | ScreenSpaceEventHandler.TwoPointMotionEventCallback, type: ScreenSpaceEventType, modifiers?: KeyboardEventModifier[] | KeyboardEventModifier): void;
16556
16597
  /**
16557
16598
  * Returns the function to be executed on an input event.
16558
16599
  * @param type - The ScreenSpaceEventType of input event.
16559
- * @param [modifier] - A KeyboardEventModifier key that is held when a <code>type</code>
16600
+ * @param [modifiers] - The KeyboardEventModifier keys that are held when a <code>type</code>
16560
16601
  event occurs.
16561
16602
  * @returns The function to be executed on an input event.
16562
16603
  */
16563
- getInputAction(type: ScreenSpaceEventType, modifier?: KeyboardEventModifier): ScreenSpaceEventHandler.PositionedEventCallback | ScreenSpaceEventHandler.MotionEventCallback | ScreenSpaceEventHandler.WheelEventCallback | ScreenSpaceEventHandler.TwoPointEventCallback | ScreenSpaceEventHandler.TwoPointMotionEventCallback;
16604
+ getInputAction(type: ScreenSpaceEventType, modifiers?: KeyboardEventModifier[] | KeyboardEventModifier): ScreenSpaceEventHandler.PositionedEventCallback | ScreenSpaceEventHandler.MotionEventCallback | ScreenSpaceEventHandler.WheelEventCallback | ScreenSpaceEventHandler.TwoPointEventCallback | ScreenSpaceEventHandler.TwoPointMotionEventCallback;
16564
16605
  /**
16565
16606
  * Removes the function to be executed on an input event.
16566
16607
  * @param type - The ScreenSpaceEventType of input event.
16567
- * @param [modifier] - A KeyboardEventModifier key that is held when a <code>type</code>
16608
+ * @param [modifiers] - The KeyboardEventModifier keys that are held when a <code>type</code>
16568
16609
  event occurs.
16569
16610
  */
16570
- removeInputAction(type: ScreenSpaceEventType, modifier?: KeyboardEventModifier): void;
16611
+ removeInputAction(type: ScreenSpaceEventType, modifiers?: KeyboardEventModifier[] | KeyboardEventModifier): void;
16571
16612
  /**
16572
16613
  * Returns true if this object was destroyed; otherwise, false.
16573
16614
  <br /><br />
@@ -17516,8 +17557,7 @@ At level of detail one, each of the level zero tiles has four children, two in e
17516
17557
  At level of detail two, each of the level one tiles has four children, two in each direction.
17517
17558
  This continues for as many levels as are present in the geometry or imagery source.
17518
17559
  */
17519
- export class TilingScheme {
17520
- constructor();
17560
+ export interface TilingScheme {
17521
17561
  /**
17522
17562
  * Gets the ellipsoid that is tiled by the tiling scheme.
17523
17563
  */
@@ -17563,7 +17603,7 @@ export class TilingScheme {
17563
17603
  * @returns The specified 'result', or a new object containing the rectangle
17564
17604
  if 'result' is undefined.
17565
17605
  */
17566
- tileXYToNativeRectangle(x: number, y: number, level: number, result?: any): Rectangle;
17606
+ tileXYToNativeRectangle(x: number, y: number, level: number, result?: Rectangle): Rectangle;
17567
17607
  /**
17568
17608
  * Converts tile x, y coordinates and level to a cartographic rectangle in radians.
17569
17609
  * @param x - The integer x coordinate of the tile.
@@ -17574,7 +17614,7 @@ export class TilingScheme {
17574
17614
  * @returns The specified 'result', or a new object containing the rectangle
17575
17615
  if 'result' is undefined.
17576
17616
  */
17577
- tileXYToRectangle(x: number, y: number, level: number, result?: any): Rectangle;
17617
+ tileXYToRectangle(x: number, y: number, level: number, result?: Rectangle): Rectangle;
17578
17618
  /**
17579
17619
  * Calculates the tile x, y coordinates of the tile containing
17580
17620
  a given cartographic position.
@@ -18917,13 +18957,16 @@ export class WallOutlineGeometry {
18917
18957
  static createGeometry(wallGeometry: WallOutlineGeometry): Geometry | undefined;
18918
18958
  }
18919
18959
 
18960
+ export interface WebMercatorProjection extends MapProjection {
18961
+ }
18962
+
18920
18963
  /**
18921
18964
  * The map projection used by Google Maps, Bing Maps, and most of ArcGIS Online, EPSG:3857. This
18922
18965
  projection use longitude and latitude expressed with the WGS84 and transforms them to Mercator using
18923
18966
  the spherical (rather than ellipsoidal) equations.
18924
18967
  * @param [ellipsoid = Ellipsoid.WGS84] - The ellipsoid.
18925
18968
  */
18926
- export class WebMercatorProjection {
18969
+ export class WebMercatorProjection implements MapProjection {
18927
18970
  constructor(ellipsoid?: Ellipsoid);
18928
18971
  /**
18929
18972
  * Gets the {@link Ellipsoid}.
@@ -18943,19 +18986,6 @@ export class WebMercatorProjection {
18943
18986
  * @returns The Mercator angle.
18944
18987
  */
18945
18988
  static geodeticLatitudeToMercatorAngle(latitude: number): number;
18946
- /**
18947
- * The maximum latitude (both North and South) supported by a Web Mercator
18948
- (EPSG:3857) projection. Technically, the Mercator projection is defined
18949
- for any latitude up to (but not including) 90 degrees, but it makes sense
18950
- to cut it off sooner because it grows exponentially with increasing latitude.
18951
- The logic behind this particular cutoff value, which is the one used by
18952
- Google Maps, Bing Maps, and Esri, is that it makes the projection
18953
- square. That is, the rectangle is equal in the X and Y directions.
18954
-
18955
- The constant value is computed by calling:
18956
- WebMercatorProjection.mercatorAngleToGeodeticLatitude(Math.PI)
18957
- */
18958
- static MaximumLatitude: number;
18959
18989
  /**
18960
18990
  * Converts geodetic ellipsoid coordinates, in radians, to the equivalent Web Mercator
18961
18991
  X, Y, Z coordinates expressed in meters and returned in a {@link Cartesian3}. The height
@@ -18976,6 +19006,24 @@ export class WebMercatorProjection {
18976
19006
  * @returns The equivalent cartographic coordinates.
18977
19007
  */
18978
19008
  unproject(cartesian: Cartesian3, result?: Cartographic): Cartographic;
19009
+ /**
19010
+ * The maximum latitude (both North and South) supported by a Web Mercator
19011
+ (EPSG:3857) projection. Technically, the Mercator projection is defined
19012
+ for any latitude up to (but not including) 90 degrees, but it makes sense
19013
+ to cut it off sooner because it grows exponentially with increasing latitude.
19014
+ The logic behind this particular cutoff value, which is the one used by
19015
+ Google Maps, Bing Maps, and Esri, is that it makes the projection
19016
+ square. That is, the rectangle is equal in the X and Y directions.
19017
+
19018
+ The constant value is computed by calling:
19019
+ WebMercatorProjection.mercatorAngleToGeodeticLatitude(Math.PI)
19020
+ */
19021
+ static MaximumLatitude: number;
19022
+ }
19023
+
19024
+ export const southwestScratch: any;
19025
+
19026
+ export interface WebMercatorTilingScheme extends TilingScheme {
18979
19027
  }
18980
19028
 
18981
19029
  /**
@@ -18997,7 +19045,7 @@ the default ellipsoid.
18997
19045
  globe is covered in the longitude direction and an equal distance is covered in the latitude
18998
19046
  direction, resulting in a square projection.
18999
19047
  */
19000
- export class WebMercatorTilingScheme {
19048
+ export class WebMercatorTilingScheme implements TilingScheme {
19001
19049
  constructor(options?: {
19002
19050
  ellipsoid?: Ellipsoid;
19003
19051
  numberOfLevelZeroTilesX?: number;
@@ -19050,7 +19098,7 @@ export class WebMercatorTilingScheme {
19050
19098
  * @returns The specified 'result', or a new object containing the rectangle
19051
19099
  if 'result' is undefined.
19052
19100
  */
19053
- tileXYToNativeRectangle(x: number, y: number, level: number, result?: any): Rectangle;
19101
+ tileXYToNativeRectangle(x: number, y: number, level: number, result?: Rectangle): Rectangle;
19054
19102
  /**
19055
19103
  * Converts tile x, y coordinates and level to a cartographic rectangle in radians.
19056
19104
  * @param x - The integer x coordinate of the tile.
@@ -19061,7 +19109,7 @@ export class WebMercatorTilingScheme {
19061
19109
  * @returns The specified 'result', or a new object containing the rectangle
19062
19110
  if 'result' is undefined.
19063
19111
  */
19064
- tileXYToRectangle(x: number, y: number, level: number, result?: any): Rectangle;
19112
+ tileXYToRectangle(x: number, y: number, level: number, result?: Rectangle): Rectangle;
19065
19113
  /**
19066
19114
  * Calculates the tile x, y coordinates of the tile containing
19067
19115
  a given cartographic position.
@@ -27656,11 +27704,14 @@ export class BufferPoint extends BufferPrimitive {
27656
27704
  }
27657
27705
 
27658
27706
  /**
27659
- * @property [options.modelMatrix = Matrix4.IDENTITY] - Transforms geometry from model to world coordinates.
27707
+ * @property [modelMatrix = Matrix4.IDENTITY] - Transforms geometry from model to world coordinates.
27660
27708
  */
27661
27709
  export type BufferPointOptions = {
27710
+ modelMatrix?: Matrix4;
27662
27711
  show?: boolean;
27663
27712
  material?: BufferPointMaterial;
27713
+ featureId?: number;
27714
+ pickObject?: any;
27664
27715
  position?: Cartesian3;
27665
27716
  };
27666
27717
 
@@ -27688,12 +27739,24 @@ for (let i = 0; i < collection.primitiveCount; i++) {
27688
27739
  collection.get(i, point);
27689
27740
  point.setMaterial(material);
27690
27741
  }
27742
+ * @param [options.modelMatrix = Matrix4.IDENTITY] - Transforms geometry from model to world coordinates.
27743
+ * @param [options.allowPicking = false] - When <code>true</code>, primitives are pickable with {@link Scene#pick}. When <code>false</code>, memory and initialization cost are lower.
27744
+ * @param [options.boundingVolume] - Bounding volume, in world space, for the collection. When
27745
+ unspecified, a bounding volume is computed automatically and updated when primitive positions change. When
27746
+ specified, users are responsible for updating bounding volume as needed. Pre-computing the bounding volume
27747
+ manually, and updating it only as needed, will improve performance for larger dynamic collections.
27691
27748
  */
27692
27749
  export class BufferPointCollection extends BufferPrimitiveCollection<BufferPoint> {
27693
27750
  constructor(options: {
27751
+ modelMatrix?: Matrix4;
27694
27752
  primitiveCountMax?: number;
27753
+ positionDatatype?: ComponentDatatype;
27754
+ positionNormalized?: boolean;
27695
27755
  show?: boolean;
27756
+ allowPicking?: boolean;
27757
+ boundingVolume?: BoundingSphere;
27696
27758
  debugShowBoundingVolume?: boolean;
27759
+ blendOption?: BlendOption;
27697
27760
  });
27698
27761
  /**
27699
27762
  * Adds a new point to the collection, with the specified options. A
@@ -27873,11 +27936,14 @@ export class BufferPolygon extends BufferPrimitive {
27873
27936
  }
27874
27937
 
27875
27938
  /**
27876
- * @property [options.modelMatrix = Matrix4.IDENTITY] - Transforms geometry from model to world coordinates.
27939
+ * @property [modelMatrix = Matrix4.IDENTITY] - Transforms geometry from model to world coordinates.
27877
27940
  */
27878
27941
  export type BufferPolygonOptions = {
27942
+ modelMatrix?: Matrix4;
27879
27943
  show?: boolean;
27880
27944
  material?: BufferPolygonMaterial;
27945
+ featureId?: number;
27946
+ pickObject?: any;
27881
27947
  positions?: TypedArray;
27882
27948
  holes?: TypedArray;
27883
27949
  triangles?: TypedArray;
@@ -27919,6 +27985,10 @@ for (let i = 0; i < collection.primitiveCount; i++) {
27919
27985
  polygon.setMaterial(material);
27920
27986
  }
27921
27987
  * @param [options.allowPicking = true] - When <code>true</code>, primitives are pickable with {@link Scene#pick}. When <code>false</code>, memory and initialization cost are lower.
27988
+ * @param [options.boundingVolume] - Bounding volume, in world space, for the collection. When
27989
+ unspecified, a bounding volume is computed automatically and updated when primitive positions change. When
27990
+ specified, users are responsible for updating bounding volume as needed. Pre-computing the bounding volume
27991
+ manually, and updating it only as needed, will improve performance for larger dynamic collections.
27922
27992
  */
27923
27993
  export class BufferPolygonCollection extends BufferPrimitiveCollection<BufferPolygon> {
27924
27994
  constructor(options: {
@@ -27927,9 +27997,12 @@ export class BufferPolygonCollection extends BufferPrimitiveCollection<BufferPol
27927
27997
  holeCountMax?: number;
27928
27998
  triangleCountMax?: number;
27929
27999
  positionDatatype?: ComponentDatatype;
28000
+ positionNormalized?: boolean;
27930
28001
  show?: boolean;
27931
28002
  allowPicking?: boolean;
28003
+ boundingVolume?: BoundingSphere;
27932
28004
  debugShowBoundingVolume?: boolean;
28005
+ blendOption?: BlendOption;
27933
28006
  });
27934
28007
  /**
27935
28008
  * Duplicates the contents of this collection into the result collection.
@@ -28057,11 +28130,14 @@ export class BufferPolyline extends BufferPrimitive {
28057
28130
  }
28058
28131
 
28059
28132
  /**
28060
- * @property [options.modelMatrix = Matrix4.IDENTITY] - Transforms geometry from model to world coordinates.
28133
+ * @property [modelMatrix = Matrix4.IDENTITY] - Transforms geometry from model to world coordinates.
28061
28134
  */
28062
28135
  export type BufferPolylineOptions = {
28136
+ modelMatrix?: Matrix4;
28063
28137
  show?: boolean;
28064
28138
  material?: BufferPolylineMaterial;
28139
+ featureId?: number;
28140
+ pickObject?: any;
28065
28141
  positions?: TypedArray;
28066
28142
  };
28067
28143
 
@@ -28187,9 +28263,15 @@ export class BufferPrimitive {
28187
28263
  toJSON(): any;
28188
28264
  }
28189
28265
 
28266
+ /**
28267
+ * @property [modelMatrix = Matrix4.IDENTITY] - Transforms geometry from model to world coordinates.
28268
+ */
28190
28269
  export type BufferPrimitiveOptions = {
28270
+ modelMatrix?: Matrix4;
28191
28271
  show?: boolean;
28192
28272
  material?: BufferPrimitiveMaterial;
28273
+ featureId?: number;
28274
+ pickObject?: any;
28193
28275
  };
28194
28276
 
28195
28277
  /**
@@ -28200,7 +28282,14 @@ be careful to avoid allocating "N" instances of any related JavaScript object. {
28200
28282
  {@link Color}, {@link Cartesian3}, and other objects can all be reused when working with large collections,
28201
28283
  using the {@link https://en.wikipedia.org/wiki/Flyweight_pattern|flyweight pattern}.</p>
28202
28284
  * @param [options.modelMatrix = Matrix4.IDENTITY] - Transforms geometry from model to world coordinates.
28285
+ * @param [options.positionNormalized = false] - When <code>true</code>, integer position values are treated as normalized,
28286
+ where the full integer range maps to [-1, 1] (signed) or [0, 1] (unsigned). Only relevant for integer position datatypes
28287
+ (BYTE, UNSIGNED_BYTE, SHORT, UNSIGNED_SHORT).
28203
28288
  * @param [options.allowPicking = false] - When <code>true</code>, primitives are pickable with {@link Scene#pick}. When <code>false</code>, memory and initialization cost are lower.
28289
+ * @param [options.boundingVolume] - Bounding volume, in world space, for the collection. When
28290
+ unspecified, a bounding volume is computed automatically and updated when primitive positions change. When
28291
+ specified, users are responsible for updating bounding volume as needed. Pre-computing the bounding volume
28292
+ manually, and updating it only as needed, will improve performance for larger dynamic collections.
28204
28293
  */
28205
28294
  export class BufferPrimitiveCollection<T extends BufferPrimitive> {
28206
28295
  constructor(options: {
@@ -28209,17 +28298,12 @@ export class BufferPrimitiveCollection<T extends BufferPrimitive> {
28209
28298
  vertexCountMax?: number;
28210
28299
  show?: boolean;
28211
28300
  positionDatatype?: ComponentDatatype;
28301
+ positionNormalized?: boolean;
28212
28302
  allowPicking?: boolean;
28303
+ boundingVolume?: BoundingSphere;
28213
28304
  debugShowBoundingVolume?: boolean;
28305
+ blendOption?: BlendOption;
28214
28306
  });
28215
- /**
28216
- * Default capacity of buffers on new collections. A quantity of elements:
28217
- number of vertices in the vertex buffer, primitives in the primitive
28218
- buffer, etc. This value is arbitrary, and collections cannot be resized,
28219
- so specific per-buffer capacities should be provided in the collection
28220
- constructor when available.
28221
- */
28222
- readonly DEFAULT_CAPACITY: number;
28223
28307
  /**
28224
28308
  * Determines if primitives in this collection will be shown.
28225
28309
  */
@@ -28227,17 +28311,9 @@ export class BufferPrimitiveCollection<T extends BufferPrimitive> {
28227
28311
  /**
28228
28312
  * Transforms geometry from model to world coordinates.
28229
28313
  */
28230
- modelMatrix: Matrix4;
28231
- /**
28232
- * Local bounding volume for all primitives in the collection, including both
28233
- shown and hidden primitives.
28234
- */
28235
- boundingVolume: BoundingSphere;
28236
- /**
28237
- * World bounding volume for all primitives in the collection, including both
28238
- shown and hidden primitives.
28239
- */
28240
- boundingVolumeWC: BoundingSphere;
28314
+ protected readonly _modelMatrix: Matrix4;
28315
+ protected readonly _boundingVolume: BoundingSphere;
28316
+ protected readonly _boundingVolumeAutoUpdate: boolean;
28241
28317
  /**
28242
28318
  * This property is for debugging only; it is not for production use nor is it optimized.
28243
28319
  <p>
@@ -28327,6 +28403,25 @@ export class BufferPrimitiveCollection<T extends BufferPrimitive> {
28327
28403
  {@link vertexCount}.
28328
28404
  */
28329
28405
  readonly vertexCountMax: number;
28406
+ /**
28407
+ * Transforms geometry from model to world coordinates.
28408
+ */
28409
+ readonly modelMatrix: Matrix4;
28410
+ /**
28411
+ * World-space bounding volume for all primitives in the collection, including both
28412
+ shown and hidden primitives.
28413
+ */
28414
+ readonly boundingVolume: BoundingSphere;
28415
+ /**
28416
+ * The component datatype used to store position values.
28417
+ */
28418
+ readonly positionDatatype: ComponentDatatype;
28419
+ /**
28420
+ * When <code>true</code>, integer position values are treated as normalized
28421
+ values, where the full integer range maps to [-1, 1] (signed) or [0, 1]
28422
+ (unsigned).
28423
+ */
28424
+ readonly positionNormalized: boolean;
28330
28425
  /**
28331
28426
  * Returns a JSON-serializable array representing the collection. This encoding
28332
28427
  is not memory-efficient, and should generally be used for debugging and
@@ -28337,6 +28432,14 @@ export class BufferPrimitiveCollection<T extends BufferPrimitive> {
28337
28432
  primitive in the collection.
28338
28433
  */
28339
28434
  toJSON(): object[];
28435
+ /**
28436
+ * Default capacity of buffers on new collections. A quantity of elements:
28437
+ number of vertices in the vertex buffer, primitives in the primitive
28438
+ buffer, etc. This value is arbitrary, and collections cannot be resized,
28439
+ so specific per-buffer capacities should be provided in the collection
28440
+ constructor when available.
28441
+ */
28442
+ static readonly DEFAULT_CAPACITY: number;
28340
28443
  }
28341
28444
 
28342
28445
  /**
@@ -29282,8 +29385,7 @@ Access derived objects through {@link Cesium3DTile#content}.
29282
29385
  This type describes an interface and is not intended to be instantiated directly.
29283
29386
  </p>
29284
29387
  */
29285
- export class Cesium3DTileContent {
29286
- constructor();
29388
+ export interface Cesium3DTileContent {
29287
29389
  /**
29288
29390
  * Gets the number of features in the tile.
29289
29391
  */
@@ -29807,6 +29909,7 @@ export namespace Cesium3DTileset {
29807
29909
  * @property [debugColorizeTiles = false] - For debugging only. When true, assigns a random color to each tile.
29808
29910
  * @property [enableDebugWireframe = false] - For debugging only. This must be true for debugWireframe to work in WebGL1. This cannot be set after the tileset has been created.
29809
29911
  * @property [debugWireframe = false] - For debugging only. When true, render's each tile's content as a wireframe.
29912
+ * @property [edgeDisplayMode = EdgeDisplayMode.SURFACES_ONLY] - Controls how edges from the {@link https://github.com/KhronosGroup/glTF/pull/2479|EXT_mesh_primitive_edge_visibility} glTF extension are rendered relative to surface geometry.
29810
29913
  * @property [debugShowBoundingVolume = false] - For debugging only. When true, renders the bounding volume for each tile.
29811
29914
  * @property [debugShowContentBoundingVolume = false] - For debugging only. When true, renders the bounding volume for each tile's content.
29812
29915
  * @property [debugShowViewerRequestVolume = false] - For debugging only. When true, renders the viewer request volume for each tile.
@@ -29875,6 +29978,7 @@ export namespace Cesium3DTileset {
29875
29978
  debugColorizeTiles?: boolean;
29876
29979
  enableDebugWireframe?: boolean;
29877
29980
  debugWireframe?: boolean;
29981
+ edgeDisplayMode?: EdgeDisplayMode;
29878
29982
  debugShowBoundingVolume?: boolean;
29879
29983
  debugShowContentBoundingVolume?: boolean;
29880
29984
  debugShowViewerRequestVolume?: boolean;
@@ -30299,6 +30403,13 @@ export class Cesium3DTileset {
30299
30403
  </p>
30300
30404
  */
30301
30405
  debugWireframe: boolean;
30406
+ /**
30407
+ * Controls how edges from the
30408
+ {@link https://github.com/KhronosGroup/glTF/pull/2479|EXT_mesh_primitive_edge_visibility}
30409
+ glTF extension are rendered relative to surface geometry. Tile content
30410
+ primitives that do not declare the extension are unaffected.
30411
+ */
30412
+ edgeDisplayMode: EdgeDisplayMode;
30302
30413
  /**
30303
30414
  * This property is for debugging only; it is not optimized for production use.
30304
30415
  <p>
@@ -30583,6 +30694,10 @@ export class Cesium3DTileset {
30583
30694
  </p>
30584
30695
  */
30585
30696
  readonly heightReference: HeightReference | undefined;
30697
+ /**
30698
+ * The {@link CesiumWidget#scene} that the tileset will be rendered in, required for tilesets that specify a {@link heightReference} value for clamping 3D Tiles vector data content- like points, lines, and labels- to terrain or 3D tiles.
30699
+ */
30700
+ readonly scene: Scene | undefined;
30586
30701
  /**
30587
30702
  * Gets an ellipsoid describing the shape of the globe.
30588
30703
  */
@@ -30771,11 +30886,6 @@ export class Cesium3DTileset {
30771
30886
  getHeight(cartographic: Cartographic, scene: Scene): number | undefined;
30772
30887
  }
30773
30888
 
30774
- /**
30775
- * The {@link CesiumWidget#scene} that the tileset will be rendered in, required for tilesets that specify a {@link heightReference} value for clamping 3D Tiles vector data content- like points, lines, and labels- to terrain or 3D tiles.
30776
- */
30777
- export const of = "undefined";
30778
-
30779
30889
  /**
30780
30890
  * A style that is applied to a {@link Cesium3DTileset}.
30781
30891
  <p>
@@ -31611,6 +31721,8 @@ export class Cesium3DTilesVoxelProvider extends VoxelProvider {
31611
31721
  }): Promise<VoxelContent> | undefined;
31612
31722
  }
31613
31723
 
31724
+ export const point: any;
31725
+
31614
31726
  /**
31615
31727
  * A ParticleEmitter that emits particles from a circle.
31616
31728
  Particles will be positioned within a circle and have initial velocities going along the z vector.
@@ -33568,6 +33680,35 @@ export class DynamicEnvironmentMapManager {
33568
33680
  static readonly DEFAULT_SPHERICAL_HARMONIC_COEFFICIENTS: Cartesian3[];
33569
33681
  }
33570
33682
 
33683
+ /**
33684
+ * Defines how edges contributed by the
33685
+ {@link https://github.com/KhronosGroup/glTF/pull/2479|EXT_mesh_primitive_edge_visibility}
33686
+ glTF extension are rendered relative to surface geometry.
33687
+ <p>
33688
+ Primitives that do not include the extension are unaffected by this setting
33689
+ and always render normally.
33690
+ </p>
33691
+ */
33692
+ export enum EdgeDisplayMode {
33693
+ /**
33694
+ * Render surfaces only. Edges from the
33695
+ {@link https://github.com/KhronosGroup/glTF/pull/2479|EXT_mesh_primitive_edge_visibility}
33696
+ extension are hidden.
33697
+ */
33698
+ SURFACES_ONLY = 0,
33699
+ /**
33700
+ * Render both surfaces and edges. Edges from the
33701
+ {@link https://github.com/KhronosGroup/glTF/pull/2479|EXT_mesh_primitive_edge_visibility}
33702
+ extension are composited on top of the surface geometry.
33703
+ */
33704
+ SURFACES_AND_EDGES = 1,
33705
+ /**
33706
+ * Render edges only. Surface geometry is hidden for primitives that have edge visibility data,
33707
+ approximating CAD-style wireframe rendering. Primitives without the extension are unaffected.
33708
+ */
33709
+ EDGES_ONLY = 2
33710
+ }
33711
+
33571
33712
  /**
33572
33713
  * An appearance for geometry on the surface of the ellipsoid like {@link PolygonGeometry}
33573
33714
  and {@link RectangleGeometry}, which supports all materials like {@link MaterialAppearance}
@@ -34025,14 +34166,16 @@ export class FrameRateMonitor {
34025
34166
  destroy(): void;
34026
34167
  }
34027
34168
 
34169
+ export interface GaussianSplat3DTileContent extends Cesium3DTileContent {
34170
+ }
34171
+
34028
34172
  /**
34029
34173
  * Represents the contents of a glTF or glb using the {@link https://github.com/CesiumGS/glTF/tree/draft-splat-spz/extensions/2.0/Khronos/KHR_gaussian_splatting | KHR_gaussian_splatting} and {@link https://github.com/CesiumGS/glTF/tree/draft-splat-spz/extensions/2.0/Khronos/KHR_gaussian_splatting_compression_spz_2 | KHR_gaussian_splatting_compression_spz_2} extensions.
34030
34174
  <p>
34031
34175
  Implements the {@link Cesium3DTileContent} interface.
34032
34176
  </p>
34033
34177
  */
34034
- export class GaussianSplat3DTileContent {
34035
- constructor();
34178
+ export class GaussianSplat3DTileContent implements Cesium3DTileContent {
34036
34179
  /**
34037
34180
  * Performs checks to ensure that the provided tileset has the Gaussian Splatting extensions.
34038
34181
  * @param tileset - The tileset to check for the extensions.
@@ -34097,7 +34240,7 @@ export class GaussianSplat3DTileContent {
34097
34240
  * The resource that this content was loaded from.
34098
34241
  <p>
34099
34242
  */
34100
- readonly url: Resource;
34243
+ readonly url: string;
34101
34244
  /**
34102
34245
  * Returns whether the feature has this property.
34103
34246
  * @param batchId - The batchId for the feature.
@@ -34118,6 +34261,75 @@ export class GaussianSplat3DTileContent {
34118
34261
  getFeature(batchId: number): Cesium3DTileFeature;
34119
34262
  }
34120
34263
 
34264
+ export type GeoJsonPrimitiveConstructorOptions = {
34265
+ geoJson?: any;
34266
+ url?: Resource | string;
34267
+ ellipsoid?: Ellipsoid;
34268
+ allowPicking?: boolean;
34269
+ show?: boolean;
34270
+ pickObjectFactory?: (...params: any[]) => any;
34271
+ };
34272
+
34273
+ /**
34274
+ * Lightweight GeoJSON loader that converts features directly into
34275
+ {@link BufferPointCollection}, {@link BufferPolylineCollection}, and
34276
+ {@link BufferPolygonCollection}.
34277
+
34278
+ Unlike {@link GeoJsonDataSource}, this path does not create entities.
34279
+ Instead, it exposes high-throughput buffer primitive collections that can be
34280
+ added directly to {@link Scene#primitives}.
34281
+ * @example
34282
+ * const loader = await Cesium.GeoJsonPrimitive.fromUrl("./data.geojson");
34283
+ viewer.scene.primitives.add(loader);
34284
+
34285
+ loader.points; // BufferPointCollection | undefined
34286
+ loader.polylines; // BufferPolylineCollection | undefined
34287
+ loader.polygons; // BufferPolygonCollection | undefined
34288
+ loader.ids; // source feature IDs
34289
+ loader.properties; // source feature properties
34290
+ */
34291
+ export class GeoJsonPrimitive {
34292
+ constructor(options?: GeoJsonPrimitiveConstructorOptions);
34293
+ /**
34294
+ * Loader source URL when created via {@link GeoJsonPrimitive.fromUrl}.
34295
+ */
34296
+ readonly url: string | undefined;
34297
+ /**
34298
+ * Feature count represented by the loaded collections.
34299
+ */
34300
+ readonly featureCount: number;
34301
+ /**
34302
+ * Lookup table from integer ID generated by GeoJsonPrimitive, to integer or string Feature ID from GeoJSON source.
34303
+ */
34304
+ readonly ids: (string | number | undefined)[];
34305
+ /**
34306
+ * Source GeoJSON properties, indexed by generated integer ID.
34307
+ */
34308
+ readonly properties: Record<string, unknown>[];
34309
+ /**
34310
+ * Buffer point collection for point geometries.
34311
+ */
34312
+ readonly points: BufferPointCollection | undefined;
34313
+ /**
34314
+ * Buffer polyline collection for linestring geometries.
34315
+ */
34316
+ readonly polylines: BufferPolylineCollection | undefined;
34317
+ /**
34318
+ * Buffer polygon collection for polygon geometries.
34319
+ */
34320
+ readonly polygons: BufferPolygonCollection | undefined;
34321
+ /**
34322
+ * Loads GeoJSON from a URL or {@link Resource}.
34323
+ */
34324
+ static fromUrl(url: Resource | string, options?: GeoJsonPrimitiveConstructorOptions): Promise<GeoJsonPrimitive>;
34325
+ /**
34326
+ * Creates a loader directly from a parsed GeoJSON object.
34327
+ */
34328
+ static fromGeoJson(geoJson: any, options?: GeoJsonPrimitiveConstructorOptions): GeoJsonPrimitive;
34329
+ getId(featureId: number): void;
34330
+ getProperties(featureId: number): void;
34331
+ }
34332
+
34121
34333
  /**
34122
34334
  * Describes the format in which to request GetFeatureInfo from a Web Map Service (WMS) or Web Map Tile Service (WMTS) server.
34123
34335
  * @param type - The type of response to expect from a GetFeatureInfo request. Valid
@@ -34523,6 +34735,15 @@ export class GlobeTranslucency {
34523
34735
  */
34524
34736
  export function loadGltfJson(): void;
34525
34737
 
34738
+ export type EXTMeshPolygonExtension = {
34739
+ count: number;
34740
+ indicesOffsets: number;
34741
+ loopIndices?: number;
34742
+ loopIndicesOffsets?: number;
34743
+ triangleIndices?: number;
34744
+ triangleIndicesOffsets?: number;
34745
+ };
34746
+
34526
34747
  /**
34527
34748
  * Removes an extension from gltf.extensions, gltf.extensionsUsed, gltf.extensionsRequired, and any other objects in the glTF if it is present.
34528
34749
  * @param gltf - A javascript object containing a glTF asset.
@@ -36914,7 +37135,7 @@ browsers, <code>ImageBitmap</code>.
36914
37135
 
36915
37136
  See the documentation for each ImageryProvider class for more information about how they return images.
36916
37137
  */
36917
- export type ImageryTypes = HTMLImageElement | HTMLCanvasElement | ImageBitmap;
37138
+ export type ImageryTypes = HTMLImageElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas;
36918
37139
 
36919
37140
  /**
36920
37141
  * Provides imagery to be displayed on the surface of an ellipsoid. This type describes an
@@ -39688,6 +39909,11 @@ Cesium supports glTF assets with the following extensions:
39688
39909
  {@link https://github.com/KhronosGroup/glTF/pull/2514|EXT_mesh_primitive_restart}
39689
39910
  </li>
39690
39911
  <li>
39912
+ {@link https://github.com/KhronosGroup/glTF/pull/2479|EXT_mesh_primitive_edge_visibility}
39913
+ (edges are hidden by default; set {@link EdgeDisplayMode} via
39914
+ {@link Model#edgeDisplayMode} or {@link Cesium3DTileset#edgeDisplayMode} to display them)
39915
+ </li>
39916
+ <li>
39691
39917
  {@link https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Vendor/EXT_meshopt_compression|EXT_meshopt_compression}
39692
39918
  </li>
39693
39919
  <li>
@@ -39860,6 +40086,13 @@ export class Model {
39860
40086
  </p>
39861
40087
  */
39862
40088
  debugWireframe: boolean;
40089
+ /**
40090
+ * Controls how edges from the
40091
+ {@link https://github.com/KhronosGroup/glTF/pull/2479|EXT_mesh_primitive_edge_visibility}
40092
+ glTF extension are rendered relative to surface geometry. Primitives that
40093
+ do not declare the extension are unaffected by this setting.
40094
+ */
40095
+ edgeDisplayMode: EdgeDisplayMode;
39863
40096
  /**
39864
40097
  * Whether or not to render the model.
39865
40098
  */
@@ -40159,6 +40392,7 @@ export class Model {
40159
40392
  * @param [options.color] - A color that blends with the model's rendered color.
40160
40393
  * @param [options.colorBlendMode = ColorBlendMode.HIGHLIGHT] - Defines how the color blends with the model.
40161
40394
  * @param [options.colorBlendAmount = 0.5] - Value used to determine the color strength when the <code>colorBlendMode</code> is <code>MIX</code>. A value of 0.0 results in the model's rendered color while a value of 1.0 results in a solid color, with any value in-between resulting in a mix of the two.
40395
+ * @param [options.edgeDisplayMode = EdgeDisplayMode.SURFACES_ONLY] - Controls how edges from the {@link https://github.com/KhronosGroup/glTF/pull/2479|EXT_mesh_primitive_edge_visibility} extension are rendered relative to surface geometry.
40162
40396
  * @param [options.silhouetteColor = Color.RED] - The silhouette color. If more than 256 models have silhouettes enabled, there is a small chance that overlapping models will have minor artifacts.
40163
40397
  * @param [options.silhouetteSize = 0.0] - The size of the silhouette in pixels.
40164
40398
  * @param [options.enableShowOutline = true] - Whether to enable outlines for models using the {@link https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/CESIUM_primitive_outline|CESIUM_primitive_outline} extension. This can be set false to avoid post-processing geometry at load time. When false, the showOutlines and outlineColor options are ignored.
@@ -40213,6 +40447,7 @@ export class Model {
40213
40447
  color?: Color;
40214
40448
  colorBlendMode?: ColorBlendMode;
40215
40449
  colorBlendAmount?: number;
40450
+ edgeDisplayMode?: EdgeDisplayMode;
40216
40451
  silhouetteColor?: Color;
40217
40452
  silhouetteSize?: number;
40218
40453
  enableShowOutline?: boolean;
@@ -40934,6 +41169,32 @@ export class Moon {
40934
41169
  destroy(): void;
40935
41170
  }
40936
41171
 
41172
+ /**
41173
+ * A Mapbox Vector Tiles (MVT) data provider. Loads .mvt or .pbf tiles, converting tiles
41174
+ dynamically (at runtime) into 3D Tiles.
41175
+
41176
+ <div class="notice">
41177
+ This object is normally not instantiated directly, use {@link MVTDataProvider.fromUrl}.
41178
+ </div>
41179
+ */
41180
+ export class MVTDataProvider {
41181
+ /**
41182
+ * Creates an MVTDataProvider from the specified URL template and options.
41183
+ * @param url - URL template, containing {z}, {x}, and {y} placeholders.
41184
+ * @param [options] - Provider options.
41185
+ * @param [options.minZoom = 0] - Minimum zoom level represented in the generated tileset.
41186
+ * @param [options.maxZoom = 14] - Maximum zoom level represented in the generated tileset.
41187
+ * @param [options.extent] - Optional geographic extent in radians to constrain the generated tile tree.
41188
+ * @param [options.featureIdProperty] - MVT property name to use as feature ID.
41189
+ */
41190
+ static fromUrl(url: Resource | string, options?: {
41191
+ minZoom?: number;
41192
+ maxZoom?: number;
41193
+ extent?: Rectangle;
41194
+ featureIdProperty?: string;
41195
+ }): void;
41196
+ }
41197
+
40937
41198
  /**
40938
41199
  * A {@link TileDiscardPolicy} specifying that tile images should never be discard.
40939
41200
  */
@@ -43380,12 +43641,6 @@ export class PrimitiveCollection {
43380
43641
  destroy(): void;
43381
43642
  }
43382
43643
 
43383
- /**
43384
- * A simple Least Recently Used (LRU) cache implementation.
43385
- */
43386
- export class LRUCache {
43387
- }
43388
-
43389
43644
  /**
43390
43645
  * Creates a spatial hash key for the given longitude, latitude, and tile level.
43391
43646
  The precision is adjusted based on the tile level and extent to achieve finer precision at higher levels.
@@ -46053,6 +46308,12 @@ An object representing voxel content for a {@link Cesium3DTilesVoxelProvider}.
46053
46308
  */
46054
46309
  export class VoxelContent {
46055
46310
  constructor();
46311
+ /**
46312
+ * The metadata for this voxel content.
46313
+ The metadata is an array of typed arrays, one for each field.
46314
+ The data for one field is a flattened 3D array ordered by X, then Y, then Z.
46315
+ */
46316
+ readonly metadata: Int8Array[] | Uint8Array[] | Int16Array[] | Uint16Array[] | Int32Array[] | Uint32Array[] | Float32Array[] | Float64Array[];
46056
46317
  /**
46057
46318
  * Constructs a VoxelContent from an array of metadata.
46058
46319
  * @param metadata - The metadata to use for this voxel content.
@@ -46061,13 +46322,6 @@ export class VoxelContent {
46061
46322
  static fromMetadataArray(metadata: Int8Array[] | Uint8Array[] | Int16Array[] | Uint16Array[] | Int32Array[] | Uint32Array[] | Float32Array[] | Float64Array[]): VoxelContent;
46062
46323
  }
46063
46324
 
46064
- /**
46065
- * The metadata for this voxel content.
46066
- The metadata is an array of typed arrays, one for each field.
46067
- The data for one field is a flattened 3D array ordered by X, then Y, then Z.
46068
- */
46069
- export const metadata: Int8Array[] | Uint8Array[] | Int16Array[] | Uint16Array[] | Int32Array[] | Uint32Array[] | Float32Array[] | Float64Array[];
46070
-
46071
46325
  /**
46072
46326
  * A primitive that renders voxel data from a {@link VoxelProvider}.
46073
46327
  * @param [options] - Object with the following properties:
@@ -46278,7 +46532,8 @@ export class VoxelPrimitive {
46278
46532
  */
46279
46533
  clippingPlanes: ClippingPlaneCollection;
46280
46534
  /**
46281
- * Gets or sets the custom shader. If undefined, {@link VoxelPrimitive.DefaultCustomShader} is set.
46535
+ * Gets or sets the custom shader. If undefined, attempt to build a default custom shader
46536
+ appropriate to the metadata type. If that fails, use {@link VoxelPrimitive.DefaultCustomShader}.
46282
46537
  */
46283
46538
  customShader: CustomShader;
46284
46539
  /**
@@ -46311,7 +46566,21 @@ export class VoxelPrimitive {
46311
46566
  This type describes an interface and is not intended to be instantiated directly.
46312
46567
  */
46313
46568
  export class VoxelProvider {
46314
- constructor();
46569
+ /**
46570
+ * Requests the data for a given tile.
46571
+ * @param [options] - Object with the following properties:
46572
+ * @param [options.tileLevel = 0] - The tile's level.
46573
+ * @param [options.tileX = 0] - The tile's X coordinate.
46574
+ * @param [options.tileY = 0] - The tile's Y coordinate.
46575
+ * @param [options.tileZ = 0] - The tile's Z coordinate.
46576
+ * @returns A promise resolving to a VoxelContent containing the data for the tile, or undefined if the request could not be scheduled this frame.
46577
+ */
46578
+ requestData(options?: {
46579
+ tileLevel?: number;
46580
+ tileX?: number;
46581
+ tileY?: number;
46582
+ tileZ?: number;
46583
+ }): Promise<VoxelContent> | undefined;
46315
46584
  /**
46316
46585
  * A transform from local space to global space.
46317
46586
  */
@@ -46373,27 +46642,11 @@ export class VoxelProvider {
46373
46642
  */
46374
46643
  readonly maximumTileCount: number | undefined;
46375
46644
  /**
46376
- * Requests the data for a given tile.
46377
- * @param [options] - Object with the following properties:
46378
- * @param [options.tileLevel = 0] - The tile's level.
46379
- * @param [options.tileX = 0] - The tile's X coordinate.
46380
- * @param [options.tileY = 0] - The tile's Y coordinate.
46381
- * @param [options.tileZ = 0] - The tile's Z coordinate.
46382
- * @returns A promise resolving to a VoxelContent containing the data for the tile, or undefined if the request could not be scheduled this frame.
46645
+ * The number of levels of detail containing available tiles in the tileset.
46383
46646
  */
46384
- requestData(options?: {
46385
- tileLevel?: number;
46386
- tileX?: number;
46387
- tileY?: number;
46388
- tileZ?: number;
46389
- }): Promise<VoxelContent> | undefined;
46647
+ readonly availableLevels: number | undefined;
46390
46648
  }
46391
46649
 
46392
- /**
46393
- * The number of levels of detail containing available tiles in the tileset.
46394
- */
46395
- export const availableLevels: number | undefined;
46396
-
46397
46650
  /**
46398
46651
  * An enum of voxel shapes. The shape controls how the voxel grid is mapped to 3D space.
46399
46652
  */