mars3d-cesium 1.128.0 → 1.130.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 (104) hide show
  1. package/Build/Cesium/Cesium.d.ts +59 -7
  2. package/Build/Cesium/Cesium.js +4392 -4344
  3. package/Build/Cesium/Workers/{chunk-CCGHELB6.js → chunk-2BQS357A.js} +2 -2
  4. package/Build/Cesium/Workers/{chunk-LSAQZ7SS.js → chunk-3GAA5LN3.js} +1 -1
  5. package/Build/Cesium/Workers/{chunk-G56ISPK7.js → chunk-47DQ6FOM.js} +2 -2
  6. package/Build/Cesium/Workers/{chunk-D2WGDEJE.js → chunk-4NRUVMTY.js} +2 -2
  7. package/Build/Cesium/Workers/{chunk-OYFDTV3B.js → chunk-4Q74JV76.js} +2 -2
  8. package/Build/Cesium/Workers/{chunk-XLU2AZ5W.js → chunk-4UC7BAHF.js} +2 -2
  9. package/Build/Cesium/Workers/{chunk-5D2SH2FB.js → chunk-5T3EM2R6.js} +2 -2
  10. package/Build/Cesium/Workers/{chunk-LS5UR5C2.js → chunk-66GTWASE.js} +2 -2
  11. package/Build/Cesium/Workers/{chunk-RESAW4MS.js → chunk-6EYQ674U.js} +2 -2
  12. package/Build/Cesium/Workers/{chunk-3RGE4BXH.js → chunk-6FIMO5GS.js} +2 -2
  13. package/Build/Cesium/Workers/{chunk-WJJZIIBB.js → chunk-CKR4KBAR.js} +2 -2
  14. package/Build/Cesium/Workers/{chunk-VC6LC2YG.js → chunk-CMAUJTC5.js} +1 -1
  15. package/Build/Cesium/Workers/{chunk-7SDYTY36.js → chunk-D3ZB6QMA.js} +1 -1
  16. package/Build/Cesium/Workers/{chunk-LIPZ3Y6P.js → chunk-DA32SD3L.js} +2 -2
  17. package/Build/Cesium/Workers/{chunk-C3TBGSK2.js → chunk-DK2I5HA3.js} +2 -2
  18. package/Build/Cesium/Workers/{chunk-KOFJJPMR.js → chunk-EHSMLS57.js} +2 -2
  19. package/Build/Cesium/Workers/{chunk-OIUXC5BJ.js → chunk-G6BXWUC5.js} +2 -2
  20. package/Build/Cesium/Workers/{chunk-YJ35UC5O.js → chunk-G76VEUE6.js} +2 -2
  21. package/Build/Cesium/Workers/{chunk-BMX6TLUN.js → chunk-GE75ICV4.js} +2 -2
  22. package/Build/Cesium/Workers/{chunk-NPSDV7TS.js → chunk-GR6GQHHW.js} +2 -2
  23. package/Build/Cesium/Workers/{chunk-CFEBEP3P.js → chunk-IG67OOLD.js} +2 -2
  24. package/Build/Cesium/Workers/{chunk-IO56Q3JU.js → chunk-IRFSGQVQ.js} +2 -2
  25. package/Build/Cesium/Workers/{chunk-V3WA65AW.js → chunk-JFGA5XXL.js} +2 -2
  26. package/Build/Cesium/Workers/{chunk-GDKDAUJU.js → chunk-JM3CE6II.js} +2 -2
  27. package/Build/Cesium/Workers/{chunk-MCJA36VG.js → chunk-KP2AFTT4.js} +2 -2
  28. package/Build/Cesium/Workers/{chunk-GSQ5TTBU.js → chunk-KRWQFK55.js} +2 -2
  29. package/Build/Cesium/Workers/{chunk-BF7B4FIR.js → chunk-KSWW7DXW.js} +2 -2
  30. package/Build/Cesium/Workers/{chunk-YTKWBMG6.js → chunk-MNWK3MJ5.js} +2 -2
  31. package/Build/Cesium/Workers/{chunk-AEMTUBUQ.js → chunk-N3TZO6S4.js} +2 -2
  32. package/Build/Cesium/Workers/{chunk-4GD3WQXO.js → chunk-NEHQKGY4.js} +2 -2
  33. package/Build/Cesium/Workers/{chunk-KNKD4BMR.js → chunk-NTG45YOQ.js} +2 -2
  34. package/Build/Cesium/Workers/{chunk-JBTCQLOL.js → chunk-O622HRQO.js} +2 -2
  35. package/Build/Cesium/Workers/{chunk-MWHUXN6D.js → chunk-QEBTWX4I.js} +2 -2
  36. package/Build/Cesium/Workers/{chunk-PJYH3HSV.js → chunk-QO4IFWD6.js} +2 -2
  37. package/Build/Cesium/Workers/{chunk-Q6Z4RZDI.js → chunk-QWFWPXRT.js} +2 -2
  38. package/Build/Cesium/Workers/{chunk-MEQTML24.js → chunk-R7RI4F7L.js} +2 -2
  39. package/Build/Cesium/Workers/{chunk-TVNW7DCI.js → chunk-RQ7MNZCS.js} +2 -2
  40. package/Build/Cesium/Workers/{chunk-IQDUXDOM.js → chunk-RUYK5KOR.js} +2 -2
  41. package/Build/Cesium/Workers/{chunk-ZSUHEXD2.js → chunk-S2T76NRX.js} +2 -2
  42. package/Build/Cesium/Workers/{chunk-4WWQMGPZ.js → chunk-S4ON2QB4.js} +2 -2
  43. package/Build/Cesium/Workers/{chunk-GDY26PU3.js → chunk-TMUAGJIG.js} +1 -1
  44. package/Build/Cesium/Workers/{chunk-LYLQXX76.js → chunk-UZGR2A63.js} +2 -2
  45. package/Build/Cesium/Workers/{chunk-CRNKVPOJ.js → chunk-VONARDNV.js} +2 -2
  46. package/Build/Cesium/Workers/{chunk-TEAUNO3N.js → chunk-VP3OTMUG.js} +2 -2
  47. package/Build/Cesium/Workers/{chunk-KLDIEE7M.js → chunk-WAYT5ODG.js} +2 -2
  48. package/Build/Cesium/Workers/{chunk-TUKY3Z5P.js → chunk-WVN6AQQN.js} +2 -2
  49. package/Build/Cesium/Workers/{chunk-CTPYY4AV.js → chunk-X3IPNCJV.js} +2 -2
  50. package/Build/Cesium/Workers/{chunk-Z5BNAGQ2.js → chunk-XPRQXPRC.js} +2 -2
  51. package/Build/Cesium/Workers/{chunk-MFFRMED2.js → chunk-Y4YOSGCD.js} +2 -2
  52. package/Build/Cesium/Workers/{chunk-7MDSSANJ.js → chunk-YHR5775C.js} +2 -2
  53. package/Build/Cesium/Workers/{chunk-OVWSUJMR.js → chunk-YY64G2VY.js} +2 -2
  54. package/Build/Cesium/Workers/combineGeometry.js +2 -2
  55. package/Build/Cesium/Workers/createBoxGeometry.js +2 -2
  56. package/Build/Cesium/Workers/createBoxOutlineGeometry.js +2 -2
  57. package/Build/Cesium/Workers/createCircleGeometry.js +2 -2
  58. package/Build/Cesium/Workers/createCircleOutlineGeometry.js +2 -2
  59. package/Build/Cesium/Workers/createCoplanarPolygonGeometry.js +2 -2
  60. package/Build/Cesium/Workers/createCoplanarPolygonOutlineGeometry.js +2 -2
  61. package/Build/Cesium/Workers/createCorridorGeometry.js +2 -2
  62. package/Build/Cesium/Workers/createCorridorOutlineGeometry.js +2 -2
  63. package/Build/Cesium/Workers/createCylinderGeometry.js +2 -2
  64. package/Build/Cesium/Workers/createCylinderOutlineGeometry.js +2 -2
  65. package/Build/Cesium/Workers/createEllipseGeometry.js +2 -2
  66. package/Build/Cesium/Workers/createEllipseOutlineGeometry.js +2 -2
  67. package/Build/Cesium/Workers/createEllipsoidGeometry.js +2 -2
  68. package/Build/Cesium/Workers/createEllipsoidOutlineGeometry.js +2 -2
  69. package/Build/Cesium/Workers/createFrustumGeometry.js +2 -2
  70. package/Build/Cesium/Workers/createFrustumOutlineGeometry.js +2 -2
  71. package/Build/Cesium/Workers/createGeometry.js +2 -2
  72. package/Build/Cesium/Workers/createGroundPolylineGeometry.js +2 -2
  73. package/Build/Cesium/Workers/createPlaneGeometry.js +2 -2
  74. package/Build/Cesium/Workers/createPlaneOutlineGeometry.js +2 -2
  75. package/Build/Cesium/Workers/createPolygonGeometry.js +2 -2
  76. package/Build/Cesium/Workers/createPolygonOutlineGeometry.js +2 -2
  77. package/Build/Cesium/Workers/createPolylineGeometry.js +2 -2
  78. package/Build/Cesium/Workers/createPolylineVolumeGeometry.js +2 -2
  79. package/Build/Cesium/Workers/createPolylineVolumeOutlineGeometry.js +2 -2
  80. package/Build/Cesium/Workers/createRectangleGeometry.js +2 -2
  81. package/Build/Cesium/Workers/createRectangleOutlineGeometry.js +2 -2
  82. package/Build/Cesium/Workers/createSimplePolylineGeometry.js +2 -2
  83. package/Build/Cesium/Workers/createSphereGeometry.js +2 -2
  84. package/Build/Cesium/Workers/createSphereOutlineGeometry.js +2 -2
  85. package/Build/Cesium/Workers/createTaskProcessorWorker.js +2 -2
  86. package/Build/Cesium/Workers/createVectorTileClampedPolylines.js +2 -2
  87. package/Build/Cesium/Workers/createVectorTileGeometries.js +2 -2
  88. package/Build/Cesium/Workers/createVectorTilePoints.js +2 -2
  89. package/Build/Cesium/Workers/createVectorTilePolygons.js +2 -2
  90. package/Build/Cesium/Workers/createVectorTilePolylines.js +2 -2
  91. package/Build/Cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +2 -2
  92. package/Build/Cesium/Workers/createVerticesFromHeightmap.js +2 -2
  93. package/Build/Cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +2 -2
  94. package/Build/Cesium/Workers/createWallGeometry.js +2 -2
  95. package/Build/Cesium/Workers/createWallOutlineGeometry.js +2 -2
  96. package/Build/Cesium/Workers/decodeDraco.js +2 -2
  97. package/Build/Cesium/Workers/decodeGoogleEarthEnterprisePacket.js +2 -2
  98. package/Build/Cesium/Workers/decodeI3S.js +2 -2
  99. package/Build/Cesium/Workers/transcodeKTX2.js +14 -14
  100. package/Build/Cesium/Workers/transferTypedArrayTest.js +1 -1
  101. package/Build/Cesium/Workers/upsampleQuantizedTerrainMesh.js +2 -2
  102. package/Build/Cesium/index.cjs +4424 -4376
  103. package/Build/Cesium/index.js +4399 -4351
  104. package/package.json +1 -1
@@ -3087,7 +3087,10 @@ export const Check: {
3087
3087
  * @param {*} test The value to test
3088
3088
  * @exception {DeveloperError} test must be typeof 'object'
3089
3089
  */
3090
- object(name: string, test: any): asserts test is object;
3090
+ object(
3091
+ name: string,
3092
+ test: any,
3093
+ ): asserts test is Record<string | number | symbol, any>;
3091
3094
  /**
3092
3095
  * Throws if test is not typeof 'boolean'
3093
3096
  *
@@ -13492,8 +13495,9 @@ export class PolygonGeometry {
13492
13495
  * @param array - The packed array.
13493
13496
  * @param [startingIndex = 0] - The starting index of the element to be unpacked.
13494
13497
  * @param [result] - The object into which to store the result.
13498
+ * @returns The modified result parameter or a new PolygonGeometry instance if one was not provided.
13495
13499
  */
13496
- static unpack(array: number[], startingIndex?: number, result?: PolygonGeometry): void;
13500
+ static unpack(array: number[], startingIndex?: number, result?: PolygonGeometry): PolygonGeometry;
13497
13501
  /**
13498
13502
  * Computes a rectangle which encloses the polygon defined by the list of positions, including cases over the international date line and the poles.
13499
13503
  * @param positions - A linear ring defining the outer boundary of the polygon.
@@ -15002,7 +15006,7 @@ export class RectangleOutlineGeometry {
15002
15006
  * @param array - The packed array.
15003
15007
  * @param [startingIndex = 0] - The starting index of the element to be unpacked.
15004
15008
  * @param [result] - The object into which to store the result.
15005
- * @returns The modified result parameter or a new Quaternion instance if one was not provided.
15009
+ * @returns The modified result parameter or a new RectangleOutlineGeometry instance if one was not provided.
15006
15010
  */
15007
15011
  static unpack(array: number[], startingIndex?: number, result?: RectangleOutlineGeometry): RectangleOutlineGeometry;
15008
15012
  /**
@@ -28514,6 +28518,7 @@ export namespace Cesium3DTileset {
28514
28518
  * @property [enableCollision = false] - When <code>true</code>, enables collisions for camera or CPU picking. While this is <code>true</code> the camera will be prevented from going below the tileset surface if {@link ScreenSpaceCameraController#enableCollisionDetection} is true.
28515
28519
  * @property [projectTo2D = false] - Whether to accurately project the tileset to 2D. If this is true, the tileset will be projected accurately to 2D, but it will use more memory to do so. If this is false, the tileset will use less memory and will still render in 2D / CV mode, but its projected positions may be inaccurate. This cannot be set after the tileset has been created.
28516
28520
  * @property [enablePick = false] - Whether to allow collision and CPU picking with <code>pick</code> when using WebGL 1. If using WebGL 2 or above, this option will be ignored. If using WebGL 1 and this is true, the <code>pick</code> operation will work correctly, but it will use more memory to do so. If running with WebGL 1 and this is false, the model will use less memory, but <code>pick</code> will always return <code>undefined</code>. This cannot be set after the tileset has loaded.
28521
+ * @property [asynchronouslyLoadImagery = false] - Whether loading imagery that is draped over the tileset should be done asynchronously. If this is <code>true</code>, then tile content will be displayed with its original texture until the imagery texture is loaded. If this is <code>false</code>, then the tile content will not be displayed until the imagery is ready.
28517
28522
  * @property [debugHeatmapTilePropertyName] - The tile variable to colorize as a heatmap. All rendered tiles will be colorized relative to each other's specified variable value.
28518
28523
  * @property [debugFreezeFrame = false] - For debugging only. Determines if only the tiles from last frame should be used for rendering.
28519
28524
  * @property [debugColorizeTiles = false] - For debugging only. When true, assigns a random color to each tile.
@@ -28579,6 +28584,7 @@ export namespace Cesium3DTileset {
28579
28584
  enableCollision?: boolean;
28580
28585
  projectTo2D?: boolean;
28581
28586
  enablePick?: boolean;
28587
+ asynchronouslyLoadImagery?: boolean;
28582
28588
  debugHeatmapTilePropertyName?: string;
28583
28589
  debugFreezeFrame?: boolean;
28584
28590
  debugColorizeTiles?: boolean;
@@ -29084,6 +29090,20 @@ export class Cesium3DTileset {
29084
29090
  * The {@link ClippingPolygonCollection} used to selectively disable rendering the tileset.
29085
29091
  */
29086
29092
  clippingPolygons: ClippingPolygonCollection;
29093
+ /**
29094
+ * The collection of <code>ImageryLayer</code> objects providing 2D georeferenced
29095
+ image data that will be rendered over the tileset.
29096
+
29097
+ The imagery will be draped over glTF, B3DM, PNTS, or GeoJSON tile content.
29098
+ * @example
29099
+ * // Drape Bing Maps Aerial imagery over the tileset
29100
+ const imageryProvider = await Cesium.createWorldImageryAsync({
29101
+ style: Cesium.IonWorldImageryStyle.AERIAL,
29102
+ });
29103
+ const imageryLayer = new ImageryLayer(imageryProvider);
29104
+ tileset.imageryLayers.add(imageryLayer);
29105
+ */
29106
+ readonly imageryLayers: ImageryLayerCollection;
29087
29107
  /**
29088
29108
  * Gets the tileset's properties dictionary object, which contains metadata about per-feature properties.
29089
29109
  <p>
@@ -34377,7 +34397,7 @@ export namespace ImageryLayer {
34377
34397
  <code>function(frameState, layer, x, y, level)</code>. The function is passed the
34378
34398
  current frame state, this layer, and the x, y, and level coordinates
34379
34399
  of the imagery tile for which the hue is required, and it is expected to return
34380
- the contrast value to use for the tile. The function is executed for every
34400
+ the hue value to use for the tile. The function is executed for every
34381
34401
  frame and for every tile, so it must be fast.
34382
34402
  * @property [saturation = 1.0] - The saturation of this layer. 1.0 uses the unmodified imagery color.
34383
34403
  Less than 1.0 reduces the saturation while greater than 1.0 increases it.
@@ -34385,7 +34405,7 @@ export namespace ImageryLayer {
34385
34405
  <code>function(frameState, layer, x, y, level)</code>. The function is passed the
34386
34406
  current frame state, this layer, and the x, y, and level coordinates
34387
34407
  of the imagery tile for which the saturation is required, and it is expected to return
34388
- the contrast value to use for the tile. The function is executed for every
34408
+ the saturation value to use for the tile. The function is executed for every
34389
34409
  frame and for every tile, so it must be fast.
34390
34410
  * @property [gamma = 1.0] - The gamma correction to apply to this layer. 1.0 uses the unmodified imagery color.
34391
34411
  This can either be a simple number or a function with the signature
@@ -34446,7 +34466,7 @@ export namespace ImageryLayer {
34446
34466
 
34447
34467
  /**
34448
34468
  * An imagery layer that displays tiled image data from a single imagery provider
34449
- on a {@link Globe}.
34469
+ on a {@link Globe} or {@link Cesium3DTileset}.
34450
34470
  * @example
34451
34471
  * // Add an OpenStreetMaps layer
34452
34472
  const imageryLayer = new Cesium.ImageryLayer(new Cesium.OpenStreetMapImageryProvider({
@@ -34462,6 +34482,18 @@ scene.imageryLayers.add(imageryLayer);
34462
34482
  const imageryLayer = Cesium.ImageryLayer.fromProviderAsync(Cesium.IonImageryProvider.fromAssetId(3812));
34463
34483
  imageryLayer.alpha = 0.5;
34464
34484
  scene.imageryLayers.add(imageryLayer);
34485
+ * @example
34486
+ * // Drape Bing Maps Aerial imagery over a 3D tileset
34487
+ const tileset = await Cesium.Cesium3DTileset.fromUrl(
34488
+ "http://localhost:8002/tilesets/Seattle/tileset.json"
34489
+ );
34490
+ scene.primitives.add(tileset);
34491
+
34492
+ const imageryProvider = await Cesium.createWorldImageryAsync({
34493
+ style: Cesium.IonWorldImageryStyle.AERIAL,
34494
+ });
34495
+ const imageryLayer = new ImageryLayer(imageryProvider);
34496
+ tileset.imageryLayers.add(imageryLayer);
34465
34497
  * @param [imageryProvider] - The imagery provider to use.
34466
34498
  * @param [options] - An object describing initialization options
34467
34499
  */
@@ -34711,7 +34743,7 @@ export class ImageryLayer {
34711
34743
  }
34712
34744
 
34713
34745
  /**
34714
- * An ordered collection of imagery layers.
34746
+ * An ordered collection of imagery layers for rendering raster imagery on a {@link Globe} or {@link Cesium3DTileset}.
34715
34747
  */
34716
34748
  export class ImageryLayerCollection {
34717
34749
  constructor();
@@ -38618,6 +38650,26 @@ export class ModelNode {
38618
38650
  originalMatrix: Matrix4;
38619
38651
  }
38620
38652
 
38653
+ /**
38654
+ * Reads and returns a value with the given type
38655
+ at the given byte offset from the data view, in little-endian
38656
+ order
38657
+ * @param dataView - Typed data view into a binary buffer
38658
+ * @param byteOffset - The offset, in bytes, from the start of the view to read the data from
38659
+ * @param numberOfComponents - The number of components to read
38660
+ * @param result - The array in which to read the result
38661
+ */
38662
+ export type ComponentsReaderCallback = (dataView: DataView, byteOffset: number, numberOfComponents: number, result: number[]) => void;
38663
+
38664
+ /**
38665
+ * Reads and returns a value with the given type
38666
+ at the given byte offset from the data view, in little-endian
38667
+ order
38668
+ * @param dataView - Typed data view into a binary buffer
38669
+ * @param byteOffset - The offset, in bytes, from the start of the view to read the data from
38670
+ */
38671
+ export type ComponentReaderCallback = (dataView: DataView, byteOffset: number) => number | bigint;
38672
+
38621
38673
  /**
38622
38674
  * A simple struct that serves as a value of a <code>sampler2D</code>-valued
38623
38675
  uniform. This is used with {@link CustomShader} and {@link TextureManager}