mars3d-cesium 1.136.0 → 1.138.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 (120) hide show
  1. package/Build/Cesium/Cesium.d.ts +264 -186
  2. package/Build/Cesium/Cesium.js +5980 -6023
  3. package/Build/Cesium/Workers/{chunk-L5OFQIDV.js → chunk-3BUY26C2.js} +2 -2
  4. package/Build/Cesium/Workers/{chunk-KBYZ3JYR.js → chunk-45WRHR4E.js} +2 -2
  5. package/Build/Cesium/Workers/{chunk-TEPAYIZU.js → chunk-52N5E5AP.js} +2 -2
  6. package/Build/Cesium/Workers/{chunk-HIJPNVQU.js → chunk-5VPOGSE7.js} +2 -2
  7. package/Build/Cesium/Workers/{chunk-LOOC34UL.js → chunk-6EENPWJS.js} +2 -2
  8. package/Build/Cesium/Workers/{chunk-I2OJC4V7.js → chunk-6QWV4SU3.js} +1 -1
  9. package/Build/Cesium/Workers/{chunk-FQU7PNU3.js → chunk-6WDL2N4A.js} +2 -2
  10. package/Build/Cesium/Workers/{chunk-WT2QAEEE.js → chunk-7N2D4RHA.js} +2 -2
  11. package/Build/Cesium/Workers/{chunk-VA2HZUHQ.js → chunk-7RP73MB3.js} +2 -2
  12. package/Build/Cesium/Workers/{chunk-KYKVWXMG.js → chunk-7SVTN6CT.js} +2 -2
  13. package/Build/Cesium/Workers/{chunk-PYURPHAC.js → chunk-7UJPMVRK.js} +2 -2
  14. package/Build/Cesium/Workers/{chunk-V4GKMAF3.js → chunk-7X6VBBKK.js} +2 -2
  15. package/Build/Cesium/Workers/{chunk-4GQTSTSF.js → chunk-ADU5ZUW2.js} +2 -2
  16. package/Build/Cesium/Workers/{chunk-4JVTZEOG.js → chunk-AE7SLFI7.js} +2 -2
  17. package/Build/Cesium/Workers/{chunk-HIRC4J7V.js → chunk-BC44SGIQ.js} +2 -2
  18. package/Build/Cesium/Workers/{chunk-Z5V7C2RE.js → chunk-BM7TIKRR.js} +2 -2
  19. package/Build/Cesium/Workers/{chunk-VDPN3SFE.js → chunk-CJG46G2U.js} +2 -2
  20. package/Build/Cesium/Workers/{chunk-DCJBRXQ3.js → chunk-CRQEO57T.js} +2 -2
  21. package/Build/Cesium/Workers/{chunk-GNL7UROL.js → chunk-CX3YPPFZ.js} +2 -2
  22. package/Build/Cesium/Workers/{chunk-LC5U7AUZ.js → chunk-D3ZYTYT5.js} +2 -2
  23. package/Build/Cesium/Workers/{chunk-UHYWWDIG.js → chunk-D5TOOVMI.js} +2 -2
  24. package/Build/Cesium/Workers/{chunk-CM4ICROJ.js → chunk-DDBGLMEQ.js} +2 -2
  25. package/Build/Cesium/Workers/chunk-E5QMTGUF.js +29 -0
  26. package/Build/Cesium/Workers/{chunk-5ZPZOULN.js → chunk-E7736HNO.js} +1 -1
  27. package/Build/Cesium/Workers/chunk-ECDGM7QL.js +26 -0
  28. package/Build/Cesium/Workers/{chunk-WNFYYD3I.js → chunk-EJIEM7C5.js} +2 -2
  29. package/Build/Cesium/Workers/{chunk-DCAJW75L.js → chunk-ES6JV22Q.js} +2 -2
  30. package/Build/Cesium/Workers/{chunk-GZR7CCLR.js → chunk-F6ZOU3BC.js} +2 -2
  31. package/Build/Cesium/Workers/chunk-FH6VU4JR.js +29 -0
  32. package/Build/Cesium/Workers/{chunk-WOSIGBWT.js → chunk-HF47EETW.js} +2 -2
  33. package/Build/Cesium/Workers/{chunk-GKDV7JZT.js → chunk-HOEIK7S6.js} +2 -2
  34. package/Build/Cesium/Workers/{chunk-N73TNNHG.js → chunk-IFSDJFAB.js} +1 -1
  35. package/Build/Cesium/Workers/{chunk-4CWVEDCG.js → chunk-IPW66OR7.js} +2 -2
  36. package/Build/Cesium/Workers/{chunk-2IHZS4H3.js → chunk-IWN3QIUI.js} +1 -1
  37. package/Build/Cesium/Workers/chunk-J5LXPN2L.js +28 -0
  38. package/Build/Cesium/Workers/{chunk-426QIPZD.js → chunk-KBS6LP33.js} +2 -2
  39. package/Build/Cesium/Workers/{chunk-RC5L224I.js → chunk-LOADWCLN.js} +2 -2
  40. package/Build/Cesium/Workers/{chunk-IJTSHLAU.js → chunk-MIPALB27.js} +2 -2
  41. package/Build/Cesium/Workers/{chunk-UVSRWZRO.js → chunk-N4DHVROK.js} +2 -2
  42. package/Build/Cesium/Workers/{chunk-3WJZ6CQ2.js → chunk-NU2E3M35.js} +2 -2
  43. package/Build/Cesium/Workers/{chunk-ED5FRS6Y.js → chunk-P2O2NB64.js} +2 -2
  44. package/Build/Cesium/Workers/{chunk-QUYEJXIQ.js → chunk-PP7WYLGX.js} +2 -2
  45. package/Build/Cesium/Workers/{chunk-IVUAGUQL.js → chunk-Q2XWLXDS.js} +2 -2
  46. package/Build/Cesium/Workers/{chunk-OREI43PJ.js → chunk-QE72UI7G.js} +1 -1
  47. package/Build/Cesium/Workers/{chunk-VEACGURT.js → chunk-QR243RCS.js} +2 -2
  48. package/Build/Cesium/Workers/{chunk-H2E233IF.js → chunk-RIHJW2G6.js} +1 -1
  49. package/Build/Cesium/Workers/{chunk-KF4HK7UJ.js → chunk-RRUMMTSZ.js} +2 -2
  50. package/Build/Cesium/Workers/{chunk-XZLASSTS.js → chunk-RVYJ7RLW.js} +2 -2
  51. package/Build/Cesium/Workers/{chunk-65B5NZJA.js → chunk-RWWZP446.js} +2 -2
  52. package/Build/Cesium/Workers/{chunk-YEN6SY2C.js → chunk-SXAD2VV3.js} +2 -2
  53. package/Build/Cesium/Workers/{chunk-QGOLNSX2.js → chunk-U6JBFYKT.js} +2 -2
  54. package/Build/Cesium/Workers/{chunk-DHOZLOJA.js → chunk-WFJSWTDU.js} +2 -2
  55. package/Build/Cesium/Workers/{chunk-AZECGCLU.js → chunk-X2PTOT6Y.js} +2 -2
  56. package/Build/Cesium/Workers/{chunk-L3HMZOZ6.js → chunk-XLR5VYOH.js} +2 -2
  57. package/Build/Cesium/Workers/chunk-YDE5NYTF.js +26 -0
  58. package/Build/Cesium/Workers/{chunk-SX7UFWHO.js → chunk-YEOYGC3A.js} +2 -2
  59. package/Build/Cesium/Workers/{chunk-TOB4N6Z3.js → chunk-YSE2PYSA.js} +2 -2
  60. package/Build/Cesium/Workers/combineGeometry.js +2 -2
  61. package/Build/Cesium/Workers/createBoxGeometry.js +2 -2
  62. package/Build/Cesium/Workers/createBoxOutlineGeometry.js +2 -2
  63. package/Build/Cesium/Workers/createCircleGeometry.js +2 -2
  64. package/Build/Cesium/Workers/createCircleOutlineGeometry.js +2 -2
  65. package/Build/Cesium/Workers/createCoplanarPolygonGeometry.js +2 -2
  66. package/Build/Cesium/Workers/createCoplanarPolygonOutlineGeometry.js +2 -2
  67. package/Build/Cesium/Workers/createCorridorGeometry.js +2 -2
  68. package/Build/Cesium/Workers/createCorridorOutlineGeometry.js +2 -2
  69. package/Build/Cesium/Workers/createCylinderGeometry.js +2 -2
  70. package/Build/Cesium/Workers/createCylinderOutlineGeometry.js +2 -2
  71. package/Build/Cesium/Workers/createEllipseGeometry.js +2 -2
  72. package/Build/Cesium/Workers/createEllipseOutlineGeometry.js +2 -2
  73. package/Build/Cesium/Workers/createEllipsoidGeometry.js +2 -2
  74. package/Build/Cesium/Workers/createEllipsoidOutlineGeometry.js +2 -2
  75. package/Build/Cesium/Workers/createFrustumGeometry.js +2 -2
  76. package/Build/Cesium/Workers/createFrustumOutlineGeometry.js +2 -2
  77. package/Build/Cesium/Workers/createGeometry.js +2 -2
  78. package/Build/Cesium/Workers/createGroundPolylineGeometry.js +2 -2
  79. package/Build/Cesium/Workers/createPlaneGeometry.js +2 -2
  80. package/Build/Cesium/Workers/createPlaneOutlineGeometry.js +2 -2
  81. package/Build/Cesium/Workers/createPolygonGeometry.js +2 -2
  82. package/Build/Cesium/Workers/createPolygonOutlineGeometry.js +2 -2
  83. package/Build/Cesium/Workers/createPolylineGeometry.js +2 -2
  84. package/Build/Cesium/Workers/createPolylineVolumeGeometry.js +2 -2
  85. package/Build/Cesium/Workers/createPolylineVolumeOutlineGeometry.js +2 -2
  86. package/Build/Cesium/Workers/createRectangleGeometry.js +2 -2
  87. package/Build/Cesium/Workers/createRectangleOutlineGeometry.js +2 -2
  88. package/Build/Cesium/Workers/createSimplePolylineGeometry.js +2 -2
  89. package/Build/Cesium/Workers/createSphereGeometry.js +2 -2
  90. package/Build/Cesium/Workers/createSphereOutlineGeometry.js +2 -2
  91. package/Build/Cesium/Workers/createTaskProcessorWorker.js +2 -2
  92. package/Build/Cesium/Workers/createVectorTileClampedPolylines.js +2 -2
  93. package/Build/Cesium/Workers/createVectorTileGeometries.js +2 -2
  94. package/Build/Cesium/Workers/createVectorTilePoints.js +2 -2
  95. package/Build/Cesium/Workers/createVectorTilePolygons.js +2 -2
  96. package/Build/Cesium/Workers/createVectorTilePolylines.js +2 -2
  97. package/Build/Cesium/Workers/createVerticesFromCesium3DTilesTerrain.js +2 -2
  98. package/Build/Cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +2 -2
  99. package/Build/Cesium/Workers/createVerticesFromHeightmap.js +2 -2
  100. package/Build/Cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +2 -2
  101. package/Build/Cesium/Workers/createWallGeometry.js +2 -2
  102. package/Build/Cesium/Workers/createWallOutlineGeometry.js +2 -2
  103. package/Build/Cesium/Workers/decodeDraco.js +2 -2
  104. package/Build/Cesium/Workers/decodeGoogleEarthEnterprisePacket.js +2 -2
  105. package/Build/Cesium/Workers/decodeI3S.js +2 -2
  106. package/Build/Cesium/Workers/gaussianSplatSorter.js +2 -2
  107. package/Build/Cesium/Workers/gaussianSplatTextureGenerator.js +2 -2
  108. package/Build/Cesium/Workers/incrementallyBuildTerrainPicker.js +2 -2
  109. package/Build/Cesium/Workers/transcodeKTX2.js +2 -2
  110. package/Build/Cesium/Workers/transferTypedArrayTest.js +1 -1
  111. package/Build/Cesium/Workers/upsampleQuantizedTerrainMesh.js +2 -2
  112. package/Build/Cesium/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +2 -2
  113. package/Build/Cesium/index.cjs +6003 -6046
  114. package/Build/Cesium/index.js +5953 -5996
  115. package/package.json +1 -4
  116. package/Build/Cesium/Workers/chunk-BCEL3FDA.js +0 -28
  117. package/Build/Cesium/Workers/chunk-EBRPXF46.js +0 -29
  118. package/Build/Cesium/Workers/chunk-HDT6ASXB.js +0 -29
  119. package/Build/Cesium/Workers/chunk-I6TRDB5O.js +0 -26
  120. package/Build/Cesium/Workers/chunk-JSRVU52I.js +0 -26
@@ -1585,26 +1585,6 @@ export class Cartesian2 {
1585
1585
  * @returns The modified result parameter or a new Cartesian2 instance if one was not provided. (Returns undefined if cartesian is undefined)
1586
1586
  */
1587
1587
  static clone(cartesian: Cartesian2, result?: Cartesian2): Cartesian2;
1588
- /**
1589
- * Creates a Cartesian2 instance from an existing Cartesian3. This simply takes the
1590
- x and y properties of the Cartesian3 and drops z.
1591
- * @param cartesian - The Cartesian3 instance to create a Cartesian2 instance from.
1592
- * @param [result] - The object onto which to store the result.
1593
- * @returns The modified result parameter or a new Cartesian2 instance if one was not provided.
1594
- */
1595
- static fromCartesian3(cartesian: Cartesian3, result?: Cartesian2): Cartesian2;
1596
- /**
1597
- * Creates a Cartesian2 instance from an existing Cartesian4. This simply takes the
1598
- x and y properties of the Cartesian4 and drops z and w.
1599
- * @param cartesian - The Cartesian4 instance to create a Cartesian2 instance from.
1600
- * @param [result] - The object onto which to store the result.
1601
- * @returns The modified result parameter or a new Cartesian2 instance if one was not provided.
1602
- */
1603
- static fromCartesian4(cartesian: Cartesian4, result?: Cartesian2): Cartesian2;
1604
- /**
1605
- * The number of elements used to pack the object into an array.
1606
- */
1607
- static packedLength: number;
1608
1588
  /**
1609
1589
  * Stores the provided instance into the provided array.
1610
1590
  * @param value - The value to pack.
@@ -1612,7 +1592,7 @@ export class Cartesian2 {
1612
1592
  * @param [startingIndex = 0] - The index into the array at which to start packing the elements.
1613
1593
  * @returns The array that was packed into
1614
1594
  */
1615
- static pack(value: Cartesian2, array: number[], startingIndex?: number): number[];
1595
+ static pack(value: Cartesian2, array: number[] | TypedArray, startingIndex?: number): number[] | TypedArray;
1616
1596
  /**
1617
1597
  * Retrieves an instance from a packed array.
1618
1598
  * @param array - The packed array.
@@ -1620,14 +1600,14 @@ export class Cartesian2 {
1620
1600
  * @param [result] - The object into which to store the result.
1621
1601
  * @returns The modified result parameter or a new Cartesian2 instance if one was not provided.
1622
1602
  */
1623
- static unpack(array: number[], startingIndex?: number, result?: Cartesian2): Cartesian2;
1603
+ static unpack(array: number[] | TypedArray, startingIndex?: number, result?: Cartesian2): Cartesian2;
1624
1604
  /**
1625
1605
  * Flattens an array of Cartesian2s into an array of components.
1626
1606
  * @param array - The array of cartesians to pack.
1627
1607
  * @param [result] - The array onto which to store the result. If this is a typed array, it must have array.length * 2 components, else a {@link DeveloperError} will be thrown. If it is a regular array, it will be resized to have (array.length * 2) elements.
1628
1608
  * @returns The packed array.
1629
1609
  */
1630
- static packArray(array: Cartesian2[], result?: number[]): number[];
1610
+ static packArray(array: Cartesian2[], result?: number[] | TypedArray): number[] | TypedArray;
1631
1611
  /**
1632
1612
  * Unpacks an array of cartesian components into an array of Cartesian2s.
1633
1613
  * @param array - The array of components to unpack.
@@ -1635,22 +1615,6 @@ export class Cartesian2 {
1635
1615
  * @returns The unpacked array.
1636
1616
  */
1637
1617
  static unpackArray(array: number[], result?: Cartesian2[]): Cartesian2[];
1638
- /**
1639
- * Creates a Cartesian2 from two consecutive elements in an array.
1640
- * @example
1641
- * // Create a Cartesian2 with (1.0, 2.0)
1642
- const v = [1.0, 2.0];
1643
- const p = Cesium.Cartesian2.fromArray(v);
1644
-
1645
- // Create a Cartesian2 with (1.0, 2.0) using an offset into an array
1646
- const v2 = [0.0, 0.0, 1.0, 2.0];
1647
- const p2 = Cesium.Cartesian2.fromArray(v2, 2);
1648
- * @param array - The array whose two consecutive elements correspond to the x and y components, respectively.
1649
- * @param [startingIndex = 0] - The offset into the array of the first element, which corresponds to the x component.
1650
- * @param [result] - The object onto which to store the result.
1651
- * @returns The modified result parameter or a new Cartesian2 instance if one was not provided.
1652
- */
1653
- static fromArray(array: number[], startingIndex?: number, result?: Cartesian2): Cartesian2;
1654
1618
  /**
1655
1619
  * Computes the value of the maximum component for the supplied Cartesian.
1656
1620
  * @param cartesian - The cartesian to use.
@@ -1846,22 +1810,6 @@ export class Cartesian2 {
1846
1810
  * @returns <code>true</code> if left and right are within the provided epsilon, <code>false</code> otherwise.
1847
1811
  */
1848
1812
  static equalsEpsilon(left?: Cartesian2, right?: Cartesian2, relativeEpsilon?: number, absoluteEpsilon?: number): boolean;
1849
- /**
1850
- * An immutable Cartesian2 instance initialized to (0.0, 0.0).
1851
- */
1852
- static readonly ZERO: Cartesian2;
1853
- /**
1854
- * An immutable Cartesian2 instance initialized to (1.0, 1.0).
1855
- */
1856
- static readonly ONE: Cartesian2;
1857
- /**
1858
- * An immutable Cartesian2 instance initialized to (1.0, 0.0).
1859
- */
1860
- static readonly UNIT_X: Cartesian2;
1861
- /**
1862
- * An immutable Cartesian2 instance initialized to (0.0, 1.0).
1863
- */
1864
- static readonly UNIT_Y: Cartesian2;
1865
1813
  /**
1866
1814
  * Duplicates this Cartesian2 instance.
1867
1815
  * @param [result] - The object onto which to store the result.
@@ -1890,6 +1838,58 @@ export class Cartesian2 {
1890
1838
  * @returns A string representing the provided Cartesian in the format '(x, y)'.
1891
1839
  */
1892
1840
  toString(): string;
1841
+ /**
1842
+ * Creates a Cartesian2 instance from an existing Cartesian3. This simply takes the
1843
+ x and y properties of the Cartesian3 and drops z.
1844
+ * @param cartesian - The Cartesian3 instance to create a Cartesian2 instance from.
1845
+ * @param [result] - The object onto which to store the result.
1846
+ * @returns The modified result parameter or a new Cartesian2 instance if one was not provided.
1847
+ */
1848
+ static fromCartesian3(cartesian: Cartesian3, result?: Cartesian2): Cartesian2;
1849
+ /**
1850
+ * Creates a Cartesian2 instance from an existing Cartesian4. This simply takes the
1851
+ x and y properties of the Cartesian4 and drops z and w.
1852
+ * @param cartesian - The Cartesian4 instance to create a Cartesian2 instance from.
1853
+ * @param [result] - The object onto which to store the result.
1854
+ * @returns The modified result parameter or a new Cartesian2 instance if one was not provided.
1855
+ */
1856
+ static fromCartesian4(cartesian: Cartesian4, result?: Cartesian2): Cartesian2;
1857
+ /**
1858
+ * The number of elements used to pack the object into an array.
1859
+ */
1860
+ static packedLength: number;
1861
+ /**
1862
+ * Creates a Cartesian2 from two consecutive elements in an array.
1863
+ * @example
1864
+ * // Create a Cartesian2 with (1.0, 2.0)
1865
+ const v = [1.0, 2.0];
1866
+ const p = Cesium.Cartesian2.fromArray(v);
1867
+
1868
+ // Create a Cartesian2 with (1.0, 2.0) using an offset into an array
1869
+ const v2 = [0.0, 0.0, 1.0, 2.0];
1870
+ const p2 = Cesium.Cartesian2.fromArray(v2, 2);
1871
+ * @param array - The array whose two consecutive elements correspond to the x and y components, respectively.
1872
+ * @param [startingIndex = 0] - The offset into the array of the first element, which corresponds to the x component.
1873
+ * @param [result] - The object onto which to store the result.
1874
+ * @returns The modified result parameter or a new Cartesian2 instance if one was not provided.
1875
+ */
1876
+ static fromArray(array: number[], startingIndex?: number, result?: Cartesian2): Cartesian2;
1877
+ /**
1878
+ * An immutable Cartesian2 instance initialized to (0.0, 0.0).
1879
+ */
1880
+ static readonly ZERO: Cartesian2;
1881
+ /**
1882
+ * An immutable Cartesian2 instance initialized to (1.0, 1.0).
1883
+ */
1884
+ static readonly ONE: Cartesian2;
1885
+ /**
1886
+ * An immutable Cartesian2 instance initialized to (1.0, 0.0).
1887
+ */
1888
+ static readonly UNIT_X: Cartesian2;
1889
+ /**
1890
+ * An immutable Cartesian2 instance initialized to (0.0, 1.0).
1891
+ */
1892
+ static readonly UNIT_Y: Cartesian2;
1893
1893
  }
1894
1894
 
1895
1895
  /**
@@ -1935,18 +1935,6 @@ export class Cartesian3 {
1935
1935
  * @returns The modified result parameter or a new Cartesian3 instance if one was not provided. (Returns undefined if cartesian is undefined)
1936
1936
  */
1937
1937
  static clone(cartesian: Cartesian3, result?: Cartesian3): Cartesian3;
1938
- /**
1939
- * Creates a Cartesian3 instance from an existing Cartesian4. This simply takes the
1940
- x, y, and z properties of the Cartesian4 and drops w.
1941
- * @param cartesian - The Cartesian4 instance to create a Cartesian3 instance from.
1942
- * @param [result] - The object onto which to store the result.
1943
- * @returns The modified result parameter or a new Cartesian3 instance if one was not provided.
1944
- */
1945
- static fromCartesian4(cartesian: Cartesian4, result?: Cartesian3): Cartesian3;
1946
- /**
1947
- * The number of elements used to pack the object into an array.
1948
- */
1949
- static packedLength: number;
1950
1938
  /**
1951
1939
  * Stores the provided instance into the provided array.
1952
1940
  * @param value - The value to pack.
@@ -1954,7 +1942,7 @@ export class Cartesian3 {
1954
1942
  * @param [startingIndex = 0] - The index into the array at which to start packing the elements.
1955
1943
  * @returns The array that was packed into
1956
1944
  */
1957
- static pack(value: Cartesian3, array: number[], startingIndex?: number): number[];
1945
+ static pack(value: Cartesian3, array: number[] | TypedArray, startingIndex?: number): number[] | TypedArray;
1958
1946
  /**
1959
1947
  * Retrieves an instance from a packed array.
1960
1948
  * @param array - The packed array.
@@ -1962,37 +1950,21 @@ export class Cartesian3 {
1962
1950
  * @param [result] - The object into which to store the result.
1963
1951
  * @returns The modified result parameter or a new Cartesian3 instance if one was not provided.
1964
1952
  */
1965
- static unpack(array: number[], startingIndex?: number, result?: Cartesian3): Cartesian3;
1953
+ static unpack(array: number[] | TypedArray, startingIndex?: number, result?: Cartesian3): Cartesian3;
1966
1954
  /**
1967
1955
  * Flattens an array of Cartesian3s into an array of components.
1968
1956
  * @param array - The array of cartesians to pack.
1969
1957
  * @param [result] - The array onto which to store the result. If this is a typed array, it must have array.length * 3 components, else a {@link DeveloperError} will be thrown. If it is a regular array, it will be resized to have (array.length * 3) elements.
1970
1958
  * @returns The packed array.
1971
1959
  */
1972
- static packArray(array: Cartesian3[], result?: number[]): number[];
1960
+ static packArray(array: Cartesian3[], result?: number[] | TypedArray): number[] | TypedArray;
1973
1961
  /**
1974
1962
  * Unpacks an array of cartesian components into an array of Cartesian3s.
1975
1963
  * @param array - The array of components to unpack.
1976
1964
  * @param [result] - The array onto which to store the result.
1977
1965
  * @returns The unpacked array.
1978
1966
  */
1979
- static unpackArray(array: number[], result?: Cartesian3[]): Cartesian3[];
1980
- /**
1981
- * Creates a Cartesian3 from three consecutive elements in an array.
1982
- * @example
1983
- * // Create a Cartesian3 with (1.0, 2.0, 3.0)
1984
- const v = [1.0, 2.0, 3.0];
1985
- const p = Cesium.Cartesian3.fromArray(v);
1986
-
1987
- // Create a Cartesian3 with (1.0, 2.0, 3.0) using an offset into an array
1988
- const v2 = [0.0, 0.0, 1.0, 2.0, 3.0];
1989
- const p2 = Cesium.Cartesian3.fromArray(v2, 2);
1990
- * @param array - The array whose three consecutive elements correspond to the x, y, and z components, respectively.
1991
- * @param [startingIndex = 0] - The offset into the array of the first element, which corresponds to the x component.
1992
- * @param [result] - The object onto which to store the result.
1993
- * @returns The modified result parameter or a new Cartesian3 instance if one was not provided.
1994
- */
1995
- static fromArray(array: number[], startingIndex?: number, result?: Cartesian3): Cartesian3;
1967
+ static unpackArray(array: number[] | TypedArray, result?: Cartesian3[]): Cartesian3[];
1996
1968
  /**
1997
1969
  * Computes the value of the maximum component for the supplied Cartesian.
1998
1970
  * @param cartesian - The cartesian to use.
@@ -2023,13 +1995,13 @@ export class Cartesian3 {
2023
1995
  static maximumByComponent(first: Cartesian3, second: Cartesian3, result: Cartesian3): Cartesian3;
2024
1996
  /**
2025
1997
  * Constrain a value to lie between two values.
2026
- * @param cartesian - The value to clamp.
1998
+ * @param value - The value to clamp.
2027
1999
  * @param min - The minimum bound.
2028
2000
  * @param max - The maximum bound.
2029
2001
  * @param result - The object into which to store the result.
2030
2002
  * @returns The clamped value such that min <= value <= max.
2031
2003
  */
2032
- static clamp(cartesian: Cartesian3, min: Cartesian3, max: Cartesian3, result: Cartesian3): Cartesian3;
2004
+ static clamp(value: Cartesian3, min: Cartesian3, max: Cartesian3, result: Cartesian3): Cartesian3;
2033
2005
  /**
2034
2006
  * Computes the provided Cartesian's squared magnitude.
2035
2007
  * @param cartesian - The Cartesian instance whose squared magnitude is to be computed.
@@ -2269,26 +2241,6 @@ export class Cartesian3 {
2269
2241
  * @returns The array of positions.
2270
2242
  */
2271
2243
  static fromRadiansArrayHeights(coordinates: number[], ellipsoid?: Ellipsoid, result?: Cartesian3[]): Cartesian3[];
2272
- /**
2273
- * An immutable Cartesian3 instance initialized to (0.0, 0.0, 0.0).
2274
- */
2275
- static readonly ZERO: Cartesian3;
2276
- /**
2277
- * An immutable Cartesian3 instance initialized to (1.0, 1.0, 1.0).
2278
- */
2279
- static readonly ONE: Cartesian3;
2280
- /**
2281
- * An immutable Cartesian3 instance initialized to (1.0, 0.0, 0.0).
2282
- */
2283
- static readonly UNIT_X: Cartesian3;
2284
- /**
2285
- * An immutable Cartesian3 instance initialized to (0.0, 1.0, 0.0).
2286
- */
2287
- static readonly UNIT_Y: Cartesian3;
2288
- /**
2289
- * An immutable Cartesian3 instance initialized to (0.0, 0.0, 1.0).
2290
- */
2291
- static readonly UNIT_Z: Cartesian3;
2292
2244
  /**
2293
2245
  * Duplicates this Cartesian3 instance.
2294
2246
  * @param [result] - The object onto which to store the result.
@@ -2317,6 +2269,54 @@ export class Cartesian3 {
2317
2269
  * @returns A string representing this Cartesian in the format '(x, y, z)'.
2318
2270
  */
2319
2271
  toString(): string;
2272
+ /**
2273
+ * Creates a Cartesian3 instance from an existing Cartesian4. This simply takes the
2274
+ x, y, and z properties of the Cartesian4 and drops w.
2275
+ * @param cartesian - The Cartesian4 instance to create a Cartesian3 instance from.
2276
+ * @param [result] - The object onto which to store the result.
2277
+ * @returns The modified result parameter or a new Cartesian3 instance if one was not provided.
2278
+ */
2279
+ static fromCartesian4(cartesian: Cartesian4, result?: Cartesian3): Cartesian3;
2280
+ /**
2281
+ * The number of elements used to pack the object into an array.
2282
+ */
2283
+ static packedLength: number;
2284
+ /**
2285
+ * Creates a Cartesian3 from three consecutive elements in an array.
2286
+ * @example
2287
+ * // Create a Cartesian3 with (1.0, 2.0, 3.0)
2288
+ const v = [1.0, 2.0, 3.0];
2289
+ const p = Cesium.Cartesian3.fromArray(v);
2290
+
2291
+ // Create a Cartesian3 with (1.0, 2.0, 3.0) using an offset into an array
2292
+ const v2 = [0.0, 0.0, 1.0, 2.0, 3.0];
2293
+ const p2 = Cesium.Cartesian3.fromArray(v2, 2);
2294
+ * @param array - The array whose three consecutive elements correspond to the x, y, and z components, respectively.
2295
+ * @param [startingIndex = 0] - The offset into the array of the first element, which corresponds to the x component.
2296
+ * @param [result] - The object onto which to store the result.
2297
+ * @returns The modified result parameter or a new Cartesian3 instance if one was not provided.
2298
+ */
2299
+ static fromArray(array: number[], startingIndex?: number, result?: Cartesian3): Cartesian3;
2300
+ /**
2301
+ * An immutable Cartesian3 instance initialized to (0.0, 0.0, 0.0).
2302
+ */
2303
+ static readonly ZERO: Cartesian3;
2304
+ /**
2305
+ * An immutable Cartesian3 instance initialized to (1.0, 1.0, 1.0).
2306
+ */
2307
+ static readonly ONE: Cartesian3;
2308
+ /**
2309
+ * An immutable Cartesian3 instance initialized to (1.0, 0.0, 0.0).
2310
+ */
2311
+ static readonly UNIT_X: Cartesian3;
2312
+ /**
2313
+ * An immutable Cartesian3 instance initialized to (0.0, 1.0, 0.0).
2314
+ */
2315
+ static readonly UNIT_Y: Cartesian3;
2316
+ /**
2317
+ * An immutable Cartesian3 instance initialized to (0.0, 0.0, 1.0).
2318
+ */
2319
+ static readonly UNIT_Z: Cartesian3;
2320
2320
  }
2321
2321
 
2322
2322
  /**
@@ -2369,10 +2369,6 @@ export class Cartesian4 {
2369
2369
  * @returns The modified result parameter or a new Cartesian4 instance if one was not provided. (Returns undefined if cartesian is undefined)
2370
2370
  */
2371
2371
  static clone(cartesian: Cartesian4, result?: Cartesian4): Cartesian4;
2372
- /**
2373
- * The number of elements used to pack the object into an array.
2374
- */
2375
- static packedLength: number;
2376
2372
  /**
2377
2373
  * Stores the provided instance into the provided array.
2378
2374
  * @param value - The value to pack.
@@ -2380,7 +2376,7 @@ export class Cartesian4 {
2380
2376
  * @param [startingIndex = 0] - The index into the array at which to start packing the elements.
2381
2377
  * @returns The array that was packed into
2382
2378
  */
2383
- static pack(value: Cartesian4, array: number[], startingIndex?: number): number[];
2379
+ static pack(value: Cartesian4, array: number[] | TypedArray, startingIndex?: number): number[] | TypedArray;
2384
2380
  /**
2385
2381
  * Retrieves an instance from a packed array.
2386
2382
  * @param array - The packed array.
@@ -2388,37 +2384,21 @@ export class Cartesian4 {
2388
2384
  * @param [result] - The object into which to store the result.
2389
2385
  * @returns The modified result parameter or a new Cartesian4 instance if one was not provided.
2390
2386
  */
2391
- static unpack(array: number[], startingIndex?: number, result?: Cartesian4): Cartesian4;
2387
+ static unpack(array: number[] | TypedArray, startingIndex?: number, result?: Cartesian4): Cartesian4;
2392
2388
  /**
2393
2389
  * Flattens an array of Cartesian4s into an array of components.
2394
2390
  * @param array - The array of cartesians to pack.
2395
2391
  * @param [result] - The array onto which to store the result. If this is a typed array, it must have array.length * 4 components, else a {@link DeveloperError} will be thrown. If it is a regular array, it will be resized to have (array.length * 4) elements.
2396
2392
  * @returns The packed array.
2397
2393
  */
2398
- static packArray(array: Cartesian4[], result?: number[]): number[];
2394
+ static packArray(array: Cartesian4[], result?: number[] | TypedArray): number[] | TypedArray;
2399
2395
  /**
2400
2396
  * Unpacks an array of cartesian components into an array of Cartesian4s.
2401
2397
  * @param array - The array of components to unpack.
2402
2398
  * @param [result] - The array onto which to store the result.
2403
2399
  * @returns The unpacked array.
2404
2400
  */
2405
- static unpackArray(array: number[], result?: Cartesian4[]): Cartesian4[];
2406
- /**
2407
- * Creates a Cartesian4 from four consecutive elements in an array.
2408
- * @example
2409
- * // Create a Cartesian4 with (1.0, 2.0, 3.0, 4.0)
2410
- const v = [1.0, 2.0, 3.0, 4.0];
2411
- const p = Cesium.Cartesian4.fromArray(v);
2412
-
2413
- // Create a Cartesian4 with (1.0, 2.0, 3.0, 4.0) using an offset into an array
2414
- const v2 = [0.0, 0.0, 1.0, 2.0, 3.0, 4.0];
2415
- const p2 = Cesium.Cartesian4.fromArray(v2, 2);
2416
- * @param array - The array whose four consecutive elements correspond to the x, y, z, and w components, respectively.
2417
- * @param [startingIndex = 0] - The offset into the array of the first element, which corresponds to the x component.
2418
- * @param [result] - The object onto which to store the result.
2419
- * @returns The modified result parameter or a new Cartesian4 instance if one was not provided.
2420
- */
2421
- static fromArray(array: number[], startingIndex?: number, result?: Cartesian4): Cartesian4;
2401
+ static unpackArray(array: number[] | TypedArray, result?: Cartesian4[]): Cartesian4[];
2422
2402
  /**
2423
2403
  * Computes the value of the maximum component for the supplied Cartesian.
2424
2404
  * @param cartesian - The cartesian to use.
@@ -2604,30 +2584,6 @@ export class Cartesian4 {
2604
2584
  * @returns <code>true</code> if left and right are within the provided epsilon, <code>false</code> otherwise.
2605
2585
  */
2606
2586
  static equalsEpsilon(left?: Cartesian4, right?: Cartesian4, relativeEpsilon?: number, absoluteEpsilon?: number): boolean;
2607
- /**
2608
- * An immutable Cartesian4 instance initialized to (0.0, 0.0, 0.0, 0.0).
2609
- */
2610
- static readonly ZERO: Cartesian4;
2611
- /**
2612
- * An immutable Cartesian4 instance initialized to (1.0, 1.0, 1.0, 1.0).
2613
- */
2614
- static readonly ONE: Cartesian4;
2615
- /**
2616
- * An immutable Cartesian4 instance initialized to (1.0, 0.0, 0.0, 0.0).
2617
- */
2618
- static readonly UNIT_X: Cartesian4;
2619
- /**
2620
- * An immutable Cartesian4 instance initialized to (0.0, 1.0, 0.0, 0.0).
2621
- */
2622
- static readonly UNIT_Y: Cartesian4;
2623
- /**
2624
- * An immutable Cartesian4 instance initialized to (0.0, 0.0, 1.0, 0.0).
2625
- */
2626
- static readonly UNIT_Z: Cartesian4;
2627
- /**
2628
- * An immutable Cartesian4 instance initialized to (0.0, 0.0, 0.0, 1.0).
2629
- */
2630
- static readonly UNIT_W: Cartesian4;
2631
2587
  /**
2632
2588
  * Duplicates this Cartesian4 instance.
2633
2589
  * @param [result] - The object onto which to store the result.
@@ -2663,6 +2619,50 @@ export class Cartesian4 {
2663
2619
  * @returns A Cartesian4 representing the float packed to values in x, y, z, and w.
2664
2620
  */
2665
2621
  static packFloat(value: number, result?: Cartesian4): Cartesian4;
2622
+ /**
2623
+ * The number of elements used to pack the object into an array.
2624
+ */
2625
+ static packedLength: number;
2626
+ /**
2627
+ * Creates a Cartesian4 from four consecutive elements in an array.
2628
+ * @example
2629
+ * // Create a Cartesian4 with (1.0, 2.0, 3.0, 4.0)
2630
+ const v = [1.0, 2.0, 3.0, 4.0];
2631
+ const p = Cesium.Cartesian4.fromArray(v);
2632
+
2633
+ // Create a Cartesian4 with (1.0, 2.0, 3.0, 4.0) using an offset into an array
2634
+ const v2 = [0.0, 0.0, 1.0, 2.0, 3.0, 4.0];
2635
+ const p2 = Cesium.Cartesian4.fromArray(v2, 2);
2636
+ * @param array - The array whose four consecutive elements correspond to the x, y, z, and w components, respectively.
2637
+ * @param [startingIndex = 0] - The offset into the array of the first element, which corresponds to the x component.
2638
+ * @param [result] - The object onto which to store the result.
2639
+ * @returns The modified result parameter or a new Cartesian4 instance if one was not provided.
2640
+ */
2641
+ static fromArray(array: number[], startingIndex?: number, result?: Cartesian4): Cartesian4;
2642
+ /**
2643
+ * An immutable Cartesian4 instance initialized to (0.0, 0.0, 0.0, 0.0).
2644
+ */
2645
+ static readonly ZERO: Cartesian4;
2646
+ /**
2647
+ * An immutable Cartesian4 instance initialized to (1.0, 1.0, 1.0, 1.0).
2648
+ */
2649
+ static readonly ONE: Cartesian4;
2650
+ /**
2651
+ * An immutable Cartesian4 instance initialized to (1.0, 0.0, 0.0, 0.0).
2652
+ */
2653
+ static readonly UNIT_X: Cartesian4;
2654
+ /**
2655
+ * An immutable Cartesian4 instance initialized to (0.0, 1.0, 0.0, 0.0).
2656
+ */
2657
+ static readonly UNIT_Y: Cartesian4;
2658
+ /**
2659
+ * An immutable Cartesian4 instance initialized to (0.0, 0.0, 1.0, 0.0).
2660
+ */
2661
+ static readonly UNIT_Z: Cartesian4;
2662
+ /**
2663
+ * An immutable Cartesian4 instance initialized to (0.0, 0.0, 0.0, 1.0).
2664
+ */
2665
+ static readonly UNIT_W: Cartesian4;
2666
2666
  }
2667
2667
 
2668
2668
  /**
@@ -8000,6 +8000,16 @@ otherwise.
8000
8000
  */
8001
8001
  export function getTimestamp(): number;
8002
8002
 
8003
+ /**
8004
+ * Union of all numeric typed array types.
8005
+ */
8006
+ export type TypedArray = Float64Array | Float32Array | Uint32Array | Uint16Array | Uint8Array | Int32Array | Int16Array | Int8Array;
8007
+
8008
+ /**
8009
+ * Union of all numeric typed array constructor types.
8010
+ */
8011
+ export type TypedArrayConstructor = Float64ArrayConstructor | Float32ArrayConstructor | Uint32ArrayConstructor | Uint16ArrayConstructor | Uint8ArrayConstructor | Int32ArrayConstructor | Int16ArrayConstructor | Int8ArrayConstructor;
8012
+
8003
8013
  /**
8004
8014
  * <div class="notice">
8005
8015
  To construct GoogleEarthEnterpriseMetadata, call {@link GoogleEarthEnterpriseMetadata.fromUrl}. Do not call the constructor directly.
@@ -9108,7 +9118,7 @@ export namespace IntersectionTests {
9108
9118
  /**
9109
9119
  * Computes the intersection of a ray and a triangle as a parametric distance along the input ray. The result is negative when the triangle is behind the ray.
9110
9120
 
9111
- Implements {@link https://cadxfem.org/inf/Fast%20MinimumStorage%20RayTriangle%20Intersection.pdf|
9121
+ Implements {@link https://cadxfem.org/inf/Fast MinimumStorage RayTriangle Intersection.pdf|
9112
9122
  Fast Minimum Storage Ray/Triangle Intersection} by Tomas Moller and Ben Trumbore.
9113
9123
  * @param ray - The ray.
9114
9124
  * @param p0 - The first vertex of the triangle.
@@ -9122,7 +9132,7 @@ export namespace IntersectionTests {
9122
9132
  /**
9123
9133
  * Computes the intersection of a ray and a triangle as a Cartesian3 coordinate.
9124
9134
 
9125
- Implements {@link https://cadxfem.org/inf/Fast%20MinimumStorage%20RayTriangle%20Intersection.pdf|
9135
+ Implements {@link https://cadxfem.org/inf/Fast MinimumStorage RayTriangle Intersection.pdf|
9126
9136
  Fast Minimum Storage Ray/Triangle Intersection} by Tomas Moller and Ben Trumbore.
9127
9137
  * @param ray - The ray.
9128
9138
  * @param p0 - The first vertex of the triangle.
@@ -19068,6 +19078,15 @@ export enum WindingOrder {
19068
19078
  COUNTER_CLOCKWISE = WebGLConstants.CCW
19069
19079
  }
19070
19080
 
19081
+ /**
19082
+ * Computes dimensions for text, based on current canvas state.
19083
+
19084
+ Rounds metrics, excluding width, to whole pixels. This is purely to minimize
19085
+ rendering differences with migration to in-browser measureText(), and may be
19086
+ revised in the future. See: github.com/CesiumGS/cesium/pull/13081
19087
+ */
19088
+ export function measureText(): void;
19089
+
19071
19090
  /**
19072
19091
  * Writes the given text into a new canvas. The canvas will be sized to fit the text.
19073
19092
  If text is blank, returns undefined.
@@ -26430,27 +26449,24 @@ export enum Axis {
26430
26449
  export namespace Azure2DImageryProvider {
26431
26450
  /**
26432
26451
  * Initialization options for the Azure2DImageryProvider constructor
26433
- * @property options - Object with the following properties:
26434
- * @property [options.url = "https://atlas.microsoft.com/"] - The Azure server url.
26435
- * @property options.tilesetId - The Azure tileset ID. Valid options are {@link microsoft.imagery}, {@link microsoft.base.road}, and {@link microsoft.base.labels.road}
26436
- * @property options.subscriptionKey - The public subscription key for the imagery.
26437
- * @property [options.ellipsoid = Ellipsoid.default] - The ellipsoid. If not specified, the default ellipsoid is used.
26438
- * @property [options.minimumLevel = 0] - The minimum level-of-detail supported by the imagery provider. Take care when specifying
26452
+ * @property subscriptionKey - The public subscription key for the imagery.
26453
+ * @property [url = "https://atlas.microsoft.com/"] - The Azure server url.
26454
+ * @property [tilesetId = "microsoft.imagery"] - The Azure tileset ID. Valid options are {@link microsoft.imagery}, {@link microsoft.base.road}, and {@link microsoft.base.labels.road}
26455
+ * @property [ellipsoid = Ellipsoid.default] - The ellipsoid. If not specified, the default ellipsoid is used.
26456
+ * @property [minimumLevel = 0] - The minimum level-of-detail supported by the imagery provider. Take care when specifying
26439
26457
  this that the number of tiles at the minimum level is small, such as four or less. A larger number is likely
26440
26458
  to result in rendering problems.
26441
- * @property [options.maximumLevel = 22] - The maximum level-of-detail supported by the imagery provider.
26442
- * @property [options.rectangle = Rectangle.MAX_VALUE] - The rectangle, in radians, covered by the image.
26459
+ * @property [maximumLevel = 22] - The maximum level-of-detail supported by the imagery provider.
26460
+ * @property [rectangle = Rectangle.MAX_VALUE] - The rectangle, in radians, covered by the image.
26443
26461
  */
26444
26462
  type ConstructorOptions = {
26445
- options: {
26446
- url?: string;
26447
- tilesetId: string;
26448
- subscriptionKey: string;
26449
- ellipsoid?: Ellipsoid;
26450
- minimumLevel?: number;
26451
- maximumLevel?: number;
26452
- rectangle?: Rectangle;
26453
- };
26463
+ subscriptionKey: string;
26464
+ url?: string;
26465
+ tilesetId?: string;
26466
+ ellipsoid?: Ellipsoid;
26467
+ minimumLevel?: number;
26468
+ maximumLevel?: number;
26469
+ rectangle?: Rectangle;
26454
26470
  };
26455
26471
  }
26456
26472
 
@@ -26582,7 +26598,7 @@ export namespace Billboard {
26582
26598
  * @property [pixelOffsetScaleByDistance] - A {@link NearFarScalar} Specifying near and far pixel offset scaling properties of a Billboard based on the billboard's distance from the camera.
26583
26599
  * @property [imageSubRegion] - A {@link BoundingRectangle} Specifying the sub-region of the image to use for the billboard, rather than the entire image.
26584
26600
  * @property [distanceDisplayCondition] - A {@link DistanceDisplayCondition} Specifying the distance from the camera at which this billboard will be displayed.
26585
- * @property [disableDepthTestDistance] - A number specifying the distance from the camera at which to disable the depth test to, for example, prevent clipping against terrain.
26601
+ * @property [disableDepthTestDistance] - The distance from the camera, beyond which, depth testing is disabled—to, for example, prevent clipping against terrain.
26586
26602
  * @property [splitDirection] - A {@link SplitDirection} Specifying the split property of the billboard.
26587
26603
  */
26588
26604
  type ConstructorOptions = {
@@ -26844,10 +26860,12 @@ export class Billboard {
26844
26860
  */
26845
26861
  distanceDisplayCondition: DistanceDisplayCondition;
26846
26862
  /**
26847
- * Gets or sets the distance from the camera at which to disable the depth test to, for example, prevent clipping against terrain.
26848
- When set to zero, the depth test is always applied. When set to Number.POSITIVE_INFINITY, the depth test is never applied.
26863
+ * Gets or sets the distance from the camera, beyond which, depth testing is disbaled—to,
26864
+ for example, prevent clipping against terrain. When set to <code>undefined</code> or
26865
+ <code>0</code>, the depth test is always applied. When set to
26866
+ <code>Number.POSITIVE_INFINITY</code>, the depth test is never applied.
26849
26867
  */
26850
- disableDepthTestDistance: number;
26868
+ disableDepthTestDistance: number | undefined;
26851
26869
  /**
26852
26870
  * Gets or sets the user-defined object returned when the billboard is picked.
26853
26871
  */
@@ -26976,6 +26994,8 @@ billboards.add({
26976
26994
  is used for rendering both opaque and translucent billboards. However, if either all of the billboards are completely opaque or all are completely translucent,
26977
26995
  setting the technique to BlendOption.OPAQUE or BlendOption.TRANSLUCENT can improve performance by up to 2x.
26978
26996
  * @param [options.show = true] - Determines if the billboards in the collection will be shown.
26997
+ * @param [options.coarseDepthTestDistance] - The distance from the camera, beyond which, billboards are depth-tested against an approximation of the globe ellipsoid rather than against the full globe depth buffer. If unspecified, the default value is determined relative to the value of {@link Ellipsoid.default}.
26998
+ * @param [options.threePointDepthTestDistance] - The distance from the camera, within which, billboards with a {@link Billboard#heightReference} value of {@link HeightReference.CLAMP_TO_GROUND} or {@link HeightReference.CLAMP_TO_TERRAIN} are depth tested against three key points. This ensures that if any key point of the billboard is visible, the whole billboard will be visible. If unspecified, the default value is determined relative to the value of {@link Ellipsoid.default}.
26979
26999
  */
26980
27000
  export class BillboardCollection {
26981
27001
  constructor(options?: {
@@ -26984,6 +27004,8 @@ export class BillboardCollection {
26984
27004
  scene?: Scene;
26985
27005
  blendOption?: BlendOption;
26986
27006
  show?: boolean;
27007
+ coarseDepthTestDistance?: number;
27008
+ threePointDepthTestDistance?: number;
26987
27009
  });
26988
27010
  /**
26989
27011
  * Determines if billboards in this collection will be shown.
@@ -27042,6 +27064,29 @@ export class BillboardCollection {
27042
27064
  in the collection.
27043
27065
  */
27044
27066
  readonly length: number;
27067
+ /**
27068
+ * The distance from the camera, beyond which, billboards are depth-tested against an approximation of
27069
+ the globe ellipsoid rather than against the full globe depth buffer. When set to <code>0</code>, the
27070
+ approximate depth test is always applied. When set to <code>Number.POSITIVE_INFINITY</code>, the
27071
+ approximate depth test is never applied.
27072
+ <br/><br/>
27073
+ This setting only applies when a billboard's {@link Billboard#disableDepthTestDistance} value would
27074
+ otherwise allow depth testing—i.e., distance from the camera to the billboard is less than a
27075
+ billboard's {@link Billboard#disableDepthTestDistance} value.
27076
+ */
27077
+ coarseDepthTestDistance: number;
27078
+ /**
27079
+ * The distance from the camera, within which, billboards with a {@link Billboard#heightReference} value
27080
+ of {@link HeightReference.CLAMP_TO_GROUND} or {@link HeightReference.CLAMP_TO_TERRAIN} are depth tested
27081
+ against three key points. This ensures that if any key point of the billboard is visible, the whole
27082
+ billboard will be visible. When set to <code>0</code>, this feature is disabled and portions of a
27083
+ billboards behind terrain be clipped.
27084
+ <br/><br/>
27085
+ This setting only applies when a billboard's {@link Billboard#disableDepthTestDistance} value would
27086
+ otherwise allow depth testing—i.e., distance from the camera to the billboard is less than a
27087
+ billboard's {@link Billboard#disableDepthTestDistance} value.
27088
+ */
27089
+ threePointDepthTestDistance: number;
27045
27090
  /**
27046
27091
  * Creates and adds a billboard with the specified initial properties to the collection.
27047
27092
  The added billboard is returned so it can be modified or removed from the collection later.
@@ -32492,7 +32537,7 @@ export namespace DynamicEnvironmentMapManager {
32492
32537
  /**
32493
32538
  * Options for the DynamicEnvironmentMapManager constructor
32494
32539
  * @property [enabled = true] - If true, the environment map and related properties will continue to update.
32495
- * @property [mipmapLevels = 7] - The number of mipmap levels to generate for specular maps. More mipmap levels will produce a higher resolution specular reflection.
32540
+ * @property [mipmapLevels = 7] - The maximum desired number of mipmap levels to generate for specular maps. More mipmap levels will produce a higher resolution specular reflection. The actual number of mipmaps used will be bounded by the cubemap texture size supported on the client machine. The number of mipmaps must be at least one for the environment map to be generated.
32496
32541
  * @property [maximumSecondsDifference = 3600] - The maximum amount of elapsed seconds before a new environment map is created.
32497
32542
  * @property [maximumPositionEpsilon = 1000] - The maximum difference in position before a new environment map is created, in meters. Small differences in position will not visibly affect results.
32498
32543
  * @property [atmosphereScatteringIntensity = 2.0] - The intensity of the scattered light emitted from the atmosphere. This should be adjusted relative to the value of {@link Scene.light} intensity.
@@ -36144,7 +36189,7 @@ export namespace Label {
36144
36189
  * @property [pixelOffsetScaleByDistance] - A {@link NearFarScalar} specifying near and far pixel offset scaling properties of the label based on the label's distance from the camera.
36145
36190
  * @property [scaleByDistance] - A {@link NearFarScalar} specifying near and far scaling properties of the label based on the label's distance from the camera.
36146
36191
  * @property [distanceDisplayCondition] - A {@link DistanceDisplayCondition} specifying at what distance from the camera that this label will be displayed.
36147
- * @property [disableDepthTestDistance] - A number specifying the distance from the camera at which to disable the depth test to, for example, prevent clipping against terrain.
36192
+ * @property [disableDepthTestDistance] - The distance from the camera, beyond which, depth testing is disabled—to, for example, prevent clipping against terrain.
36148
36193
  */
36149
36194
  type ConstructorOptions = {
36150
36195
  position: Cartesian3;
@@ -36378,10 +36423,11 @@ export class Label {
36378
36423
  */
36379
36424
  distanceDisplayCondition: DistanceDisplayCondition;
36380
36425
  /**
36381
- * Gets or sets the distance from the camera at which to disable the depth test to, for example, prevent clipping against terrain.
36382
- When set to zero, the depth test is always applied. When set to Number.POSITIVE_INFINITY, the depth test is never applied.
36426
+ * Gets or sets the distance from the camera, beyond which, depth testing is disabled—to, for example, prevent clipping against terrain.
36427
+ When set to <code>undefined</code> or
36428
+ <code>0</code>, the depth test is always applied. When set to Number.<code>POSITIVE_INFINITY</code>, the depth test is never applied.
36383
36429
  */
36384
- disableDepthTestDistance: number;
36430
+ disableDepthTestDistance: number | undefined;
36385
36431
  /**
36386
36432
  * Gets or sets the user-defined value returned when the label is picked.
36387
36433
  */
@@ -36469,6 +36515,8 @@ labels.add({
36469
36515
  is used for rendering both opaque and translucent labels. However, if either all of the labels are completely opaque or all are completely translucent,
36470
36516
  setting the technique to BlendOption.OPAQUE or BlendOption.TRANSLUCENT can improve performance by up to 2x.
36471
36517
  * @param [options.show = true] - Determines if the labels in the collection will be shown.
36518
+ * @param [options.coarseDepthTestDistance] - The distance from the camera, beyond which, labels are depth-tested against an approximation of the globe ellipsoid rather than against the full globe depth buffer. If unspecified, the default value is determined relative to the value of {@link Ellipsoid.default}.
36519
+ * @param [options.threePointDepthTestDistance] - The distance from the camera, within which, lables with a {@link Label#heightReference} value of {@link HeightReference.CLAMP_TO_GROUND} or {@link HeightReference.CLAMP_TO_TERRAIN} are depth tested against three key points. This ensures that if any key point of the label is visible, the whole label will be visible. If unspecified, the default value is determined relative to the value of {@link Ellipsoid.default}.
36472
36520
  */
36473
36521
  export class LabelCollection {
36474
36522
  constructor(options?: {
@@ -36477,6 +36525,8 @@ export class LabelCollection {
36477
36525
  scene?: Scene;
36478
36526
  blendOption?: BlendOption;
36479
36527
  show?: boolean;
36528
+ coarseDepthTestDistance?: number;
36529
+ threePointDepthTestDistance?: number;
36480
36530
  });
36481
36531
  /**
36482
36532
  * Determines if labels in this collection will be shown.
@@ -36528,6 +36578,29 @@ export class LabelCollection {
36528
36578
  in the collection.
36529
36579
  */
36530
36580
  readonly length: number;
36581
+ /**
36582
+ * The distance from the camera, beyond which, labels are depth-tested against an approximation of
36583
+ the globe ellipsoid rather than against the full globe depth buffer. When set to <code>0</code>, the
36584
+ approximate depth test is always applied. When set to <code>Number.POSITIVE_INFINITY</code>, the
36585
+ approximate depth test is never applied.
36586
+ <br/><br/>
36587
+ This setting only applies when a label's {@link Label#disableDepthTestDistance} value would
36588
+ otherwise allow depth testing—i.e., distance from the camera to the label is less than the
36589
+ label's {@link Label#disableDepthTestDistance} value.
36590
+ */
36591
+ coarseDepthTestDistance: number;
36592
+ /**
36593
+ * The distance from the camera, within which, labels with a {@link Label#heightReference} value
36594
+ of {@link HeightReference.CLAMP_TO_GROUND} or {@link HeightReference.CLAMP_TO_TERRAIN} are depth tested
36595
+ against three key points. This ensures that if any key point of the label is visible, the whole
36596
+ label will be visible. When set to <code>0</code>, this feature is disabled and portions of a
36597
+ label behind terrain be clipped.
36598
+ <br/><br/>
36599
+ This setting only applies when a labels's {@link Label#disableDepthTestDistance} value would
36600
+ otherwise allow depth testing—i.e., distance from the camera to the label is less than the
36601
+ labels's {@link Label#disableDepthTestDistance} value.
36602
+ */
36603
+ threePointDepthTestDistance: number;
36531
36604
  /**
36532
36605
  * Creates and adds a label with the specified initial properties to the collection.
36533
36606
  The added label is returned so it can be modified or removed from the collection later.
@@ -37523,6 +37596,11 @@ export namespace MaterialAppearance {
37523
37596
  }
37524
37597
  }
37525
37598
 
37599
+ /**
37600
+ * Gets or sets the nearest sampling flag.
37601
+ */
37602
+ export var nearestSampling: boolean;
37603
+
37526
37604
  /**
37527
37605
  * A metadata class.
37528
37606
 
@@ -41416,7 +41494,7 @@ export class PostProcessStageCollection {
41416
41494
  readonly length: number;
41417
41495
  /**
41418
41496
  * Specifies the tonemapping algorithm used when rendering with high dynamic range.
41419
- {@link https://sandcastle.cesium.com/?src=High%20Dynamic%20Range.html|Sandcastle Demo}
41497
+ {@link https://sandcastle.cesium.com/?id=high-dynamic-range|Sandcastle Demo}
41420
41498
  * @example
41421
41499
  * viewer.scene.postProcessStages.tonemapper = Cesium.Tonemapper.ACES;
41422
41500
  */