mars3d-cesium 1.135.0 → 1.136.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 (148) hide show
  1. package/Build/Cesium/Cesium.d.ts +207 -4
  2. package/Build/Cesium/Cesium.js +520 -507
  3. package/Build/Cesium/Widgets/Images/ImageryProviders/azureAerial.png +0 -0
  4. package/Build/Cesium/Widgets/Images/ImageryProviders/azureRoads.png +0 -0
  5. package/Build/Cesium/Workers/{chunk-YJUZXXK7.js → chunk-2IHZS4H3.js} +1 -1
  6. package/Build/Cesium/Workers/chunk-3WJZ6CQ2.js +26 -0
  7. package/Build/Cesium/Workers/chunk-426QIPZD.js +26 -0
  8. package/Build/Cesium/Workers/chunk-4CWVEDCG.js +26 -0
  9. package/Build/Cesium/Workers/chunk-4GQTSTSF.js +63 -0
  10. package/Build/Cesium/Workers/chunk-4JVTZEOG.js +26 -0
  11. package/Build/Cesium/Workers/{chunk-74M7JUED.js → chunk-5ZPZOULN.js} +1 -1
  12. package/Build/Cesium/Workers/chunk-65B5NZJA.js +26 -0
  13. package/Build/Cesium/Workers/{chunk-RVIN6KTA.js → chunk-AZECGCLU.js} +2 -2
  14. package/Build/Cesium/Workers/chunk-BCEL3FDA.js +28 -0
  15. package/Build/Cesium/Workers/{chunk-SSQDOM4X.js → chunk-CM4ICROJ.js} +2 -2
  16. package/Build/Cesium/Workers/chunk-DCAJW75L.js +26 -0
  17. package/Build/Cesium/Workers/chunk-DCJBRXQ3.js +26 -0
  18. package/Build/Cesium/Workers/chunk-DHOZLOJA.js +26 -0
  19. package/Build/Cesium/Workers/chunk-EBRPXF46.js +29 -0
  20. package/Build/Cesium/Workers/chunk-ED5FRS6Y.js +26 -0
  21. package/Build/Cesium/Workers/chunk-FQU7PNU3.js +26 -0
  22. package/Build/Cesium/Workers/chunk-GKDV7JZT.js +26 -0
  23. package/Build/Cesium/Workers/chunk-GNL7UROL.js +26 -0
  24. package/Build/Cesium/Workers/{chunk-TL5API67.js → chunk-GZR7CCLR.js} +2 -2
  25. package/Build/Cesium/Workers/{chunk-CKMZFNDL.js → chunk-H2E233IF.js} +1 -1
  26. package/Build/Cesium/Workers/chunk-HDT6ASXB.js +29 -0
  27. package/Build/Cesium/Workers/chunk-HIJPNVQU.js +26 -0
  28. package/Build/Cesium/Workers/{chunk-75WDW3UA.js → chunk-HIRC4J7V.js} +2 -2
  29. package/Build/Cesium/Workers/{chunk-6INKH6TT.js → chunk-I2OJC4V7.js} +1 -1
  30. package/Build/Cesium/Workers/chunk-I6TRDB5O.js +26 -0
  31. package/Build/Cesium/Workers/chunk-IJTSHLAU.js +26 -0
  32. package/Build/Cesium/Workers/chunk-IVUAGUQL.js +26 -0
  33. package/Build/Cesium/Workers/chunk-JSRVU52I.js +26 -0
  34. package/Build/Cesium/Workers/{chunk-Z5SAIJSK.js → chunk-KBYZ3JYR.js} +2 -2
  35. package/Build/Cesium/Workers/{chunk-GTLYO3YS.js → chunk-KF4HK7UJ.js} +2 -2
  36. package/Build/Cesium/Workers/{chunk-CBDHYUZM.js → chunk-KYKVWXMG.js} +2 -2
  37. package/Build/Cesium/Workers/{chunk-RPXUQ2AO.js → chunk-L3HMZOZ6.js} +2 -2
  38. package/Build/Cesium/Workers/chunk-L5OFQIDV.js +26 -0
  39. package/Build/Cesium/Workers/{chunk-R75PEI2W.js → chunk-LC5U7AUZ.js} +2 -2
  40. package/Build/Cesium/Workers/{chunk-RQSOJS3W.js → chunk-LOOC34UL.js} +2 -2
  41. package/Build/Cesium/Workers/{chunk-YUAWNRVE.js → chunk-N73TNNHG.js} +1 -1
  42. package/Build/Cesium/Workers/chunk-OREI43PJ.js +26 -0
  43. package/Build/Cesium/Workers/chunk-PYURPHAC.js +26 -0
  44. package/Build/Cesium/Workers/chunk-QGOLNSX2.js +26 -0
  45. package/Build/Cesium/Workers/{chunk-5FREU643.js → chunk-QUYEJXIQ.js} +2 -2
  46. package/Build/Cesium/Workers/chunk-RC5L224I.js +26 -0
  47. package/Build/Cesium/Workers/chunk-SX7UFWHO.js +26 -0
  48. package/Build/Cesium/Workers/{chunk-VBZUTFOY.js → chunk-TEPAYIZU.js} +2 -2
  49. package/Build/Cesium/Workers/{chunk-RQ7A42DE.js → chunk-TOB4N6Z3.js} +2 -2
  50. package/Build/Cesium/Workers/chunk-UHYWWDIG.js +26 -0
  51. package/Build/Cesium/Workers/chunk-UVSRWZRO.js +26 -0
  52. package/Build/Cesium/Workers/{chunk-PVO6WFU6.js → chunk-V4GKMAF3.js} +2 -2
  53. package/Build/Cesium/Workers/chunk-VA2HZUHQ.js +26 -0
  54. package/Build/Cesium/Workers/{chunk-VUBH2SGE.js → chunk-VDPN3SFE.js} +2 -2
  55. package/Build/Cesium/Workers/{chunk-KVN4S3W2.js → chunk-VEACGURT.js} +2 -2
  56. package/Build/Cesium/Workers/chunk-WNFYYD3I.js +26 -0
  57. package/Build/Cesium/Workers/{chunk-BBKBBT2U.js → chunk-WOSIGBWT.js} +2 -2
  58. package/Build/Cesium/Workers/{chunk-SOJPBEDM.js → chunk-WT2QAEEE.js} +2 -2
  59. package/Build/Cesium/Workers/chunk-XZLASSTS.js +26 -0
  60. package/Build/Cesium/Workers/{chunk-V6M5VRUN.js → chunk-YEN6SY2C.js} +2 -2
  61. package/Build/Cesium/Workers/chunk-Z5V7C2RE.js +26 -0
  62. package/Build/Cesium/Workers/combineGeometry.js +2 -2
  63. package/Build/Cesium/Workers/createBoxGeometry.js +2 -2
  64. package/Build/Cesium/Workers/createBoxOutlineGeometry.js +2 -2
  65. package/Build/Cesium/Workers/createCircleGeometry.js +2 -2
  66. package/Build/Cesium/Workers/createCircleOutlineGeometry.js +2 -2
  67. package/Build/Cesium/Workers/createCoplanarPolygonGeometry.js +2 -2
  68. package/Build/Cesium/Workers/createCoplanarPolygonOutlineGeometry.js +2 -2
  69. package/Build/Cesium/Workers/createCorridorGeometry.js +2 -2
  70. package/Build/Cesium/Workers/createCorridorOutlineGeometry.js +2 -2
  71. package/Build/Cesium/Workers/createCylinderGeometry.js +2 -2
  72. package/Build/Cesium/Workers/createCylinderOutlineGeometry.js +2 -2
  73. package/Build/Cesium/Workers/createEllipseGeometry.js +2 -2
  74. package/Build/Cesium/Workers/createEllipseOutlineGeometry.js +2 -2
  75. package/Build/Cesium/Workers/createEllipsoidGeometry.js +2 -2
  76. package/Build/Cesium/Workers/createEllipsoidOutlineGeometry.js +2 -2
  77. package/Build/Cesium/Workers/createFrustumGeometry.js +2 -2
  78. package/Build/Cesium/Workers/createFrustumOutlineGeometry.js +2 -2
  79. package/Build/Cesium/Workers/createGeometry.js +2 -2
  80. package/Build/Cesium/Workers/createGroundPolylineGeometry.js +2 -2
  81. package/Build/Cesium/Workers/createPlaneGeometry.js +2 -2
  82. package/Build/Cesium/Workers/createPlaneOutlineGeometry.js +2 -2
  83. package/Build/Cesium/Workers/createPolygonGeometry.js +2 -2
  84. package/Build/Cesium/Workers/createPolygonOutlineGeometry.js +2 -2
  85. package/Build/Cesium/Workers/createPolylineGeometry.js +2 -2
  86. package/Build/Cesium/Workers/createPolylineVolumeGeometry.js +2 -2
  87. package/Build/Cesium/Workers/createPolylineVolumeOutlineGeometry.js +2 -2
  88. package/Build/Cesium/Workers/createRectangleGeometry.js +2 -2
  89. package/Build/Cesium/Workers/createRectangleOutlineGeometry.js +2 -2
  90. package/Build/Cesium/Workers/createSimplePolylineGeometry.js +2 -2
  91. package/Build/Cesium/Workers/createSphereGeometry.js +2 -2
  92. package/Build/Cesium/Workers/createSphereOutlineGeometry.js +2 -2
  93. package/Build/Cesium/Workers/createTaskProcessorWorker.js +2 -2
  94. package/Build/Cesium/Workers/createVectorTileClampedPolylines.js +2 -2
  95. package/Build/Cesium/Workers/createVectorTileGeometries.js +2 -2
  96. package/Build/Cesium/Workers/createVectorTilePoints.js +2 -2
  97. package/Build/Cesium/Workers/createVectorTilePolygons.js +2 -2
  98. package/Build/Cesium/Workers/createVectorTilePolylines.js +2 -2
  99. package/Build/Cesium/Workers/createVerticesFromCesium3DTilesTerrain.js +2 -2
  100. package/Build/Cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +2 -2
  101. package/Build/Cesium/Workers/createVerticesFromHeightmap.js +2 -2
  102. package/Build/Cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +2 -2
  103. package/Build/Cesium/Workers/createWallGeometry.js +2 -2
  104. package/Build/Cesium/Workers/createWallOutlineGeometry.js +2 -2
  105. package/Build/Cesium/Workers/decodeDraco.js +2 -2
  106. package/Build/Cesium/Workers/decodeGoogleEarthEnterprisePacket.js +2 -2
  107. package/Build/Cesium/Workers/decodeI3S.js +2 -2
  108. package/Build/Cesium/Workers/gaussianSplatSorter.js +2 -2
  109. package/Build/Cesium/Workers/gaussianSplatTextureGenerator.js +2 -2
  110. package/Build/Cesium/Workers/incrementallyBuildTerrainPicker.js +26 -0
  111. package/Build/Cesium/Workers/transcodeKTX2.js +2 -2
  112. package/Build/Cesium/Workers/transferTypedArrayTest.js +1 -1
  113. package/Build/Cesium/Workers/upsampleQuantizedTerrainMesh.js +2 -2
  114. package/Build/Cesium/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +2 -2
  115. package/Build/Cesium/index.cjs +518 -505
  116. package/Build/Cesium/index.js +515 -502
  117. package/package.json +1 -1
  118. package/Build/Cesium/Widgets/Images/ImageryProviders/googleLabels.png +0 -0
  119. package/Build/Cesium/Workers/chunk-234I7OSJ.js +0 -26
  120. package/Build/Cesium/Workers/chunk-47L665Y3.js +0 -26
  121. package/Build/Cesium/Workers/chunk-4NESHLIW.js +0 -26
  122. package/Build/Cesium/Workers/chunk-52SSOFRO.js +0 -26
  123. package/Build/Cesium/Workers/chunk-7DM4VRLC.js +0 -26
  124. package/Build/Cesium/Workers/chunk-AIVD5N6E.js +0 -26
  125. package/Build/Cesium/Workers/chunk-CUDDGE5L.js +0 -26
  126. package/Build/Cesium/Workers/chunk-DNWXRF7H.js +0 -26
  127. package/Build/Cesium/Workers/chunk-EKIWDFFL.js +0 -26
  128. package/Build/Cesium/Workers/chunk-F4L7WVZR.js +0 -26
  129. package/Build/Cesium/Workers/chunk-FUJKTH6N.js +0 -26
  130. package/Build/Cesium/Workers/chunk-HSO5NCO2.js +0 -26
  131. package/Build/Cesium/Workers/chunk-HYR2MDP3.js +0 -26
  132. package/Build/Cesium/Workers/chunk-JVVVMP5S.js +0 -26
  133. package/Build/Cesium/Workers/chunk-KFJRYK6Y.js +0 -26
  134. package/Build/Cesium/Workers/chunk-KJ2N7N2F.js +0 -26
  135. package/Build/Cesium/Workers/chunk-KKH22CU6.js +0 -26
  136. package/Build/Cesium/Workers/chunk-P2ATLXYK.js +0 -26
  137. package/Build/Cesium/Workers/chunk-P4CBSWTJ.js +0 -26
  138. package/Build/Cesium/Workers/chunk-PBOA7XCM.js +0 -26
  139. package/Build/Cesium/Workers/chunk-PQUPEGEU.js +0 -26
  140. package/Build/Cesium/Workers/chunk-QUZOLRHP.js +0 -66
  141. package/Build/Cesium/Workers/chunk-R7OEDP7O.js +0 -26
  142. package/Build/Cesium/Workers/chunk-S77XZCQ6.js +0 -26
  143. package/Build/Cesium/Workers/chunk-SQQT6ZVO.js +0 -26
  144. package/Build/Cesium/Workers/chunk-VDZP2EIW.js +0 -26
  145. package/Build/Cesium/Workers/chunk-VJIUEO4A.js +0 -26
  146. package/Build/Cesium/Workers/chunk-WICKEAQ3.js +0 -28
  147. package/Build/Cesium/Workers/chunk-YIDWXUKZ.js +0 -26
  148. package/Build/Cesium/Workers/chunk-ZPNMN6F6.js +0 -26
@@ -834,6 +834,13 @@ export class AxisAlignedBoundingBox {
834
834
  intersects the plane.
835
835
  */
836
836
  static intersectPlane(box: AxisAlignedBoundingBox, plane: Plane): Intersect;
837
+ /**
838
+ * Determines whether two axis aligned bounding boxes intersect.
839
+ * @param box - first box
840
+ * @param other - second box
841
+ * @returns <code>true</code> if the boxes intersect; otherwise, <code>false</code>.
842
+ */
843
+ static intersectAxisAlignedBoundingBox(box: AxisAlignedBoundingBox, other: AxisAlignedBoundingBox): boolean;
837
844
  /**
838
845
  * Duplicates this AxisAlignedBoundingBox instance.
839
846
  * @param [result] - The object onto which to store the result.
@@ -849,6 +856,12 @@ export class AxisAlignedBoundingBox {
849
856
  intersects the plane.
850
857
  */
851
858
  intersectPlane(plane: Plane): Intersect;
859
+ /**
860
+ * Determines whether some other axis aligned bounding box intersects this box.
861
+ * @param other - The other axis aligned bounding box.
862
+ * @returns <code>true</code> if the boxes intersect; otherwise, <code>false</code>.
863
+ */
864
+ intersectAxisAlignedBoundingBox(other: AxisAlignedBoundingBox): boolean;
852
865
  /**
853
866
  * Compares this AxisAlignedBoundingBox against the provided AxisAlignedBoundingBox componentwise and returns
854
867
  <code>true</code> if they are equal, <code>false</code> otherwise.
@@ -9158,6 +9171,13 @@ export namespace IntersectionTests {
9158
9171
  * @returns The interval containing scalar points along the ray or undefined if there are no intersections.
9159
9172
  */
9160
9173
  function rayEllipsoid(ray: Ray, ellipsoid: Ellipsoid): Interval;
9174
+ /**
9175
+ * Computes the intersection points of a ray with an axis-aligned bounding box. (axis-aligned in the same space as the ray)
9176
+ * @param ray - The ray.
9177
+ * @param box - The axis-aligned bounding box.
9178
+ * @param result - The interval containing scalar points along the ray or undefined if there are no intersections.
9179
+ */
9180
+ function rayAxisAlignedBoundingBox(ray: Ray, box: AxisAlignedBoundingBox, result: Interval | undefined): void;
9161
9181
  /**
9162
9182
  * Provides the point along the ray which is nearest to the ellipsoid.
9163
9183
  * @param ray - The ray.
@@ -17193,6 +17213,21 @@ export class TerrainData {
17193
17213
  wasCreatedByUpsampling(): boolean;
17194
17214
  }
17195
17215
 
17216
+ /**
17217
+ * Indicates whether the terrain picker needs to be rebuilt due to changes in the underlying terrain mesh's vertices or indices.
17218
+ */
17219
+ export var needsRebuild: boolean;
17220
+
17221
+ /**
17222
+ * Creates an axis-aligned bounding box for a quadtree node at the given tree-space coordinates and level.
17223
+ This AABB is in the tree's local space (where the root node of the tree is a unit cube in its own local space).
17224
+ * @param x - The x coordinate of the node.
17225
+ * @param y - The y coordinate of the node.
17226
+ * @param level - The level of the node.
17227
+ * @returns The axis-aligned bounding box for the node.
17228
+ */
17229
+ export function createAABBForNode(x: number, y: number, level: number): AxisAlignedBoundingBox;
17230
+
17196
17231
  export namespace TerrainProvider {
17197
17232
  /**
17198
17233
  * A function that is called when an error occurs.
@@ -19088,7 +19123,7 @@ export namespace BillboardGraphics {
19088
19123
  */
19089
19124
  type ConstructorOptions = {
19090
19125
  show?: Property | boolean;
19091
- image?: Property | string | HTMLCanvasElement;
19126
+ image?: Property | string | HTMLImageElement | HTMLCanvasElement;
19092
19127
  scale?: Property | number;
19093
19128
  pixelOffset?: Property | Cartesian2;
19094
19129
  eyeOffset?: Property | Cartesian3;
@@ -26392,6 +26427,137 @@ export enum Axis {
26392
26427
  Z = 2
26393
26428
  }
26394
26429
 
26430
+ export namespace Azure2DImageryProvider {
26431
+ /**
26432
+ * 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
26439
+ this that the number of tiles at the minimum level is small, such as four or less. A larger number is likely
26440
+ 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.
26443
+ */
26444
+ 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
+ };
26454
+ };
26455
+ }
26456
+
26457
+ /**
26458
+ * Provides 2D image tiles from Azure.
26459
+ * @example
26460
+ * // Azure 2D imagery provider
26461
+ const azureImageryProvider = new Cesium.Azure2DImageryProvider({
26462
+ subscriptionKey: "subscription-key",
26463
+ tilesetId: "microsoft.base.road"
26464
+ });
26465
+ * @param options - Object describing initialization options
26466
+ */
26467
+ export class Azure2DImageryProvider {
26468
+ constructor(options: Azure2DImageryProvider.ConstructorOptions);
26469
+ /**
26470
+ * Gets the URL of the Azure 2D Imagery server.
26471
+ */
26472
+ readonly url: string;
26473
+ /**
26474
+ * Gets the rectangle, in radians, of the imagery provided by the instance.
26475
+ */
26476
+ readonly rectangle: Rectangle;
26477
+ /**
26478
+ * Gets the width of each tile, in pixels.
26479
+ */
26480
+ readonly tileWidth: number;
26481
+ /**
26482
+ * Gets the height of each tile, in pixels.
26483
+ */
26484
+ readonly tileHeight: number;
26485
+ /**
26486
+ * Gets the maximum level-of-detail that can be requested.
26487
+ */
26488
+ readonly maximumLevel: number | undefined;
26489
+ /**
26490
+ * Gets the minimum level-of-detail that can be requested. Generally,
26491
+ a minimum level should only be used when the rectangle of the imagery is small
26492
+ enough that the number of tiles at the minimum level is small. An imagery
26493
+ provider with more than a few tiles at the minimum level will lead to
26494
+ rendering problems.
26495
+ */
26496
+ readonly minimumLevel: number;
26497
+ /**
26498
+ * Gets the tiling scheme used by the provider.
26499
+ */
26500
+ readonly tilingScheme: TilingScheme;
26501
+ /**
26502
+ * Gets the tile discard policy. If not undefined, the discard policy is responsible
26503
+ for filtering out "missing" tiles via its shouldDiscardImage function. If this function
26504
+ returns undefined, no tiles are filtered.
26505
+ */
26506
+ readonly tileDiscardPolicy: TileDiscardPolicy;
26507
+ /**
26508
+ * Gets an event that is raised when the imagery provider encounters an asynchronous error.. By subscribing
26509
+ to the event, you will be notified of the error and can potentially recover from it. Event listeners
26510
+ are passed an instance of {@link TileProviderError}.
26511
+ */
26512
+ readonly errorEvent: Event;
26513
+ /**
26514
+ * Gets the credit to display when this imagery provider is active. Typically this is used to credit
26515
+ the source of the imagery.
26516
+ */
26517
+ readonly credit: Credit;
26518
+ /**
26519
+ * Gets the proxy used by this provider.
26520
+ */
26521
+ readonly proxy: Proxy;
26522
+ /**
26523
+ * Gets a value indicating whether or not the images provided by this imagery provider
26524
+ include an alpha channel. If this property is false, an alpha channel, if present, will
26525
+ be ignored. If this property is true, any images without an alpha channel will be treated
26526
+ as if their alpha is 1.0 everywhere. When this property is false, memory usage
26527
+ and texture upload time are reduced.
26528
+ */
26529
+ readonly hasAlphaChannel: boolean;
26530
+ /**
26531
+ * Gets the credits to be displayed when a given tile is displayed.
26532
+ * @param x - The tile X coordinate.
26533
+ * @param y - The tile Y coordinate.
26534
+ * @param level - The tile level;
26535
+ * @returns The credits to be displayed when the tile is displayed.
26536
+ */
26537
+ getTileCredits(x: number, y: number, level: number): Credit[] | undefined;
26538
+ /**
26539
+ * Requests the image for a given tile.
26540
+ * @param x - The tile X coordinate.
26541
+ * @param y - The tile Y coordinate.
26542
+ * @param level - The tile level.
26543
+ * @param [request] - The request object. Intended for internal use only.
26544
+ * @returns A promise for the image that will resolve when the image is available, or
26545
+ undefined if there are too many active requests to the server, and the request should be retried later.
26546
+ */
26547
+ requestImage(x: number, y: number, level: number, request?: Request): Promise<ImageryTypes> | undefined;
26548
+ /**
26549
+ * Picking features is not currently supported by this imagery provider, so this function simply returns
26550
+ undefined.
26551
+ * @param x - The tile X coordinate.
26552
+ * @param y - The tile Y coordinate.
26553
+ * @param level - The tile level.
26554
+ * @param longitude - The longitude at which to pick features.
26555
+ * @param latitude - The latitude at which to pick features.
26556
+ * @returns Undefined since picking is not supported.
26557
+ */
26558
+ pickFeatures(x: number, y: number, level: number, longitude: number, latitude: number): undefined;
26559
+ }
26560
+
26395
26561
  export namespace Billboard {
26396
26562
  /**
26397
26563
  * Initialization options for the first param of Billboard constructor
@@ -26423,7 +26589,7 @@ export namespace Billboard {
26423
26589
  position: Cartesian3;
26424
26590
  id?: any;
26425
26591
  show?: boolean;
26426
- image?: string | HTMLCanvasElement;
26592
+ image?: string | HTMLImageElement | HTMLCanvasElement;
26427
26593
  scale?: number;
26428
26594
  pixelOffset?: Cartesian2;
26429
26595
  eyeOffset?: Cartesian3;
@@ -26774,6 +26940,11 @@ export class Billboard {
26774
26940
  equals(other?: Billboard): boolean;
26775
26941
  }
26776
26942
 
26943
+ /**
26944
+ * Arbitrary limit on allocated SVG size, in pixels. Raster images use image resolution.
26945
+ */
26946
+ export const SVG_MAX_SIZE_PX = 512;
26947
+
26777
26948
  /**
26778
26949
  * A renderable collection of billboards. Billboards are viewport-aligned
26779
26950
  images positioned in the 3D scene.
@@ -33435,7 +33606,7 @@ export class Google2DImageryProvider {
33435
33606
  });
33436
33607
  * @example
33437
33608
  * // Google 2D roadmap overlay with custom styles
33438
- const googleTileProvider = Cesium.Google2DImageryProvider.fromIonAssetId({
33609
+ const googleTilesProvider = Cesium.Google2DImageryProvider.fromIonAssetId({
33439
33610
  assetId: 3830184,
33440
33611
  overlayLayerType: "layerRoadmap",
33441
33612
  styles: [
@@ -33491,7 +33662,7 @@ export class Google2DImageryProvider {
33491
33662
  * // Google 2D roadmap overlay with custom styles
33492
33663
  Cesium.GoogleMaps.defaultApiKey = "your-api-key";
33493
33664
 
33494
- const googleTileProvider = Cesium.Google2DImageryProvider.fromUrl({
33665
+ const googleTilesProvider = Cesium.Google2DImageryProvider.fromUrl({
33495
33666
  overlayLayerType: "layerRoadmap",
33496
33667
  styles: [
33497
33668
  {
@@ -40163,6 +40334,20 @@ height will default to the value of <code>width</code>
40163
40334
  */
40164
40335
  export function computePickingDrawingBufferRectangle(drawingBufferHeight: number, position: Cartesian2, width: number | undefined, height: number | undefined, result: BoundingRectangle): BoundingRectangle;
40165
40336
 
40337
+ /**
40338
+ * Setup needed before picking.
40339
+ * @param windowPosition - Window coordinates to perform picking on.
40340
+ * @param drawingBufferRectangle - The output drawing buffer recangle.
40341
+ * @param [width = 3] - Width of the pick rectangle.
40342
+ * @param [height = 3] - Height of the pick rectangle.
40343
+ */
40344
+ export function pickBegin(scene: Scene, windowPosition: Cartesian2, drawingBufferRectangle: BoundingRectangle, width?: number, height?: number): void;
40345
+
40346
+ /**
40347
+ * Teardown needed after picking.
40348
+ */
40349
+ export function pickEnd(scene: Scene): void;
40350
+
40166
40351
  /**
40167
40352
  * Information about metadata that is supposed to be picked
40168
40353
  * @property schemaId - The optional ID of the metadata schema
@@ -42574,6 +42759,24 @@ export class Scene {
42574
42759
  * @returns Object containing the picked primitive or <code>undefined</code> if nothing is at the location.
42575
42760
  */
42576
42761
  pick(windowPosition: Cartesian2, width?: number, height?: number): any | undefined;
42762
+ /**
42763
+ * Performs the same operation as Scene.pick but asynchonosly without blocking the main render thread.
42764
+ Requires WebGL2 else using fallback.
42765
+ * @example
42766
+ * // On mouse over, color the feature yellow.
42767
+ handler.setInputAction(function(movement) {
42768
+ const feature = scene.pickAsync(movement.endPosition).then(function(feature) {
42769
+ if (feature instanceof Cesium.Cesium3DTileFeature) {
42770
+ feature.color = Cesium.Color.YELLOW;
42771
+ }
42772
+ });
42773
+ }, Cesium.ScreenSpaceEventType.MOUSE_MOVE);
42774
+ * @param windowPosition - Window coordinates to perform picking on.
42775
+ * @param [width = 3] - Width of the pick rectangle.
42776
+ * @param [height = 3] - Height of the pick rectangle.
42777
+ * @returns Object containing the picked primitive or <code>undefined</code> if nothing is at the location.
42778
+ */
42779
+ pickAsync(windowPosition: Cartesian2, width?: number, height?: number): Promise<object | undefined>;
42577
42780
  /**
42578
42781
  * Returns a {@link VoxelCell} for the voxel sample rendered at a particular window coordinate,
42579
42782
  or <code>undefined</code> if no voxel is rendered at that position.