mars3d-cesium 1.129.0 → 1.130.1

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 (111) hide show
  1. package/Build/Cesium/Cesium.d.ts +86 -12
  2. package/Build/Cesium/Cesium.js +869 -598
  3. package/Build/Cesium/ThirdParty/wasm_splats_bg.wasm +0 -0
  4. package/Build/Cesium/Workers/{chunk-L4JCTZ6Y.js → chunk-2KZOZ2AS.js} +2 -2
  5. package/Build/Cesium/Workers/{chunk-IFR5HKVH.js → chunk-2RDFA6SI.js} +1 -1
  6. package/Build/Cesium/Workers/{chunk-K6A7NKZT.js → chunk-3LM7FEM4.js} +2 -2
  7. package/Build/Cesium/Workers/{chunk-PNMU44JZ.js → chunk-3OWEIXOE.js} +2 -2
  8. package/Build/Cesium/Workers/{chunk-RQKZTHAV.js → chunk-4GCQQ2W5.js} +2 -2
  9. package/Build/Cesium/Workers/{chunk-S5KJ4JQS.js → chunk-577ZEYDC.js} +2 -2
  10. package/Build/Cesium/Workers/{chunk-2RJONVEL.js → chunk-5QJC43IK.js} +2 -2
  11. package/Build/Cesium/Workers/{chunk-X6N776GR.js → chunk-6KEASHDV.js} +2 -2
  12. package/Build/Cesium/Workers/{chunk-YRCAQUFT.js → chunk-7NOGADYE.js} +2 -2
  13. package/Build/Cesium/Workers/{chunk-3RSLEP7W.js → chunk-7SERMA5R.js} +2 -2
  14. package/Build/Cesium/Workers/{chunk-SP23RJSN.js → chunk-BR67VYEI.js} +2 -2
  15. package/Build/Cesium/Workers/{chunk-Q4LSC5X3.js → chunk-C5ZGOYR3.js} +2 -2
  16. package/Build/Cesium/Workers/{chunk-FGKVHLJ4.js → chunk-C7PPRNCW.js} +2 -2
  17. package/Build/Cesium/Workers/{chunk-3BGP4HCL.js → chunk-CLUVKOJC.js} +1 -1
  18. package/Build/Cesium/Workers/{chunk-4OIYAFXA.js → chunk-CX6XHJ2W.js} +2 -2
  19. package/Build/Cesium/Workers/{chunk-UVR3GLLW.js → chunk-CYRSZ6AI.js} +2 -2
  20. package/Build/Cesium/Workers/{chunk-WER4LUMF.js → chunk-DEP27QJQ.js} +2 -2
  21. package/Build/Cesium/Workers/chunk-DWBJSWLE.js +26 -0
  22. package/Build/Cesium/Workers/{chunk-Q7QJJ4HI.js → chunk-DXODIGRX.js} +2 -2
  23. package/Build/Cesium/Workers/{chunk-NXL34BSE.js → chunk-E53ZVF4V.js} +2 -2
  24. package/Build/Cesium/Workers/{chunk-FUD3WFGN.js → chunk-EMN3IZ3L.js} +2 -2
  25. package/Build/Cesium/Workers/{chunk-4W2MZV6I.js → chunk-EN3FLSCM.js} +1 -1
  26. package/Build/Cesium/Workers/{chunk-ALKSRI7Y.js → chunk-ETFNFZWQ.js} +2 -2
  27. package/Build/Cesium/Workers/{chunk-62UOPIGN.js → chunk-EUF6KDPA.js} +2 -2
  28. package/Build/Cesium/Workers/{chunk-3RMLTUUP.js → chunk-FU5KSGBH.js} +2 -2
  29. package/Build/Cesium/Workers/{chunk-EFXTPVRC.js → chunk-FWP27V6G.js} +2 -2
  30. package/Build/Cesium/Workers/{chunk-23RYXNR3.js → chunk-I24VFCTJ.js} +2 -2
  31. package/Build/Cesium/Workers/{chunk-ELJAHN3H.js → chunk-IE5UN7GF.js} +2 -2
  32. package/Build/Cesium/Workers/{chunk-ZQVZZSUG.js → chunk-IKUSPJMX.js} +2 -2
  33. package/Build/Cesium/Workers/{chunk-OAGMF473.js → chunk-JH3JCPNS.js} +2 -2
  34. package/Build/Cesium/Workers/{chunk-BCYPTFKK.js → chunk-LEHD3UID.js} +2 -2
  35. package/Build/Cesium/Workers/{chunk-NEXD3R4K.js → chunk-M4VGNM53.js} +2 -2
  36. package/Build/Cesium/Workers/{chunk-HRZKIJQA.js → chunk-MMG36HAS.js} +2 -2
  37. package/Build/Cesium/Workers/{chunk-U3N6LNE4.js → chunk-MNR6VML4.js} +2 -2
  38. package/Build/Cesium/Workers/{chunk-G65SAF2P.js → chunk-MPPWWYRL.js} +2 -2
  39. package/Build/Cesium/Workers/{chunk-XOTNFHCP.js → chunk-MRY7R477.js} +2 -2
  40. package/Build/Cesium/Workers/{chunk-OVIPITBL.js → chunk-OHHLQUBD.js} +1 -1
  41. package/Build/Cesium/Workers/{chunk-3PT5NNSP.js → chunk-OXVI4KUG.js} +3 -3
  42. package/Build/Cesium/Workers/{chunk-QFKZXFLI.js → chunk-PJZ3LLCH.js} +2 -2
  43. package/Build/Cesium/Workers/{chunk-AVPLM4UI.js → chunk-TOC5P6MN.js} +2 -2
  44. package/Build/Cesium/Workers/{chunk-ZYYZDBKK.js → chunk-UE3FQSRG.js} +2 -2
  45. package/Build/Cesium/Workers/{chunk-ITJR6PVW.js → chunk-UOULT5PF.js} +2 -2
  46. package/Build/Cesium/Workers/{chunk-JQLYZQ6V.js → chunk-V2CTIKTS.js} +2 -2
  47. package/Build/Cesium/Workers/{chunk-LUT6AMUC.js → chunk-VM3FZQF7.js} +2 -2
  48. package/Build/Cesium/Workers/{chunk-PZWPGERZ.js → chunk-VMPUAJZS.js} +2 -2
  49. package/Build/Cesium/Workers/chunk-W24JV6D7.js +26 -0
  50. package/Build/Cesium/Workers/{chunk-J3L5WX3X.js → chunk-WBGJRATN.js} +2 -2
  51. package/Build/Cesium/Workers/{chunk-2V6KZTKL.js → chunk-WL3K2NZZ.js} +2 -2
  52. package/Build/Cesium/Workers/{chunk-ASLWXOD7.js → chunk-XKBYFK42.js} +2 -2
  53. package/Build/Cesium/Workers/{chunk-IAW6QHRG.js → chunk-YJ75UI6J.js} +2 -2
  54. package/Build/Cesium/Workers/{chunk-S3L7VZFL.js → chunk-ZKBSTU77.js} +2 -2
  55. package/Build/Cesium/Workers/{chunk-OM62BMPV.js → chunk-ZKEJQEVH.js} +2 -2
  56. package/Build/Cesium/Workers/combineGeometry.js +2 -2
  57. package/Build/Cesium/Workers/createBoxGeometry.js +2 -2
  58. package/Build/Cesium/Workers/createBoxOutlineGeometry.js +2 -2
  59. package/Build/Cesium/Workers/createCircleGeometry.js +2 -2
  60. package/Build/Cesium/Workers/createCircleOutlineGeometry.js +2 -2
  61. package/Build/Cesium/Workers/createCoplanarPolygonGeometry.js +2 -2
  62. package/Build/Cesium/Workers/createCoplanarPolygonOutlineGeometry.js +2 -2
  63. package/Build/Cesium/Workers/createCorridorGeometry.js +2 -2
  64. package/Build/Cesium/Workers/createCorridorOutlineGeometry.js +2 -2
  65. package/Build/Cesium/Workers/createCylinderGeometry.js +2 -2
  66. package/Build/Cesium/Workers/createCylinderOutlineGeometry.js +2 -2
  67. package/Build/Cesium/Workers/createEllipseGeometry.js +2 -2
  68. package/Build/Cesium/Workers/createEllipseOutlineGeometry.js +2 -2
  69. package/Build/Cesium/Workers/createEllipsoidGeometry.js +2 -2
  70. package/Build/Cesium/Workers/createEllipsoidOutlineGeometry.js +2 -2
  71. package/Build/Cesium/Workers/createFrustumGeometry.js +2 -2
  72. package/Build/Cesium/Workers/createFrustumOutlineGeometry.js +2 -2
  73. package/Build/Cesium/Workers/createGeometry.js +2 -2
  74. package/Build/Cesium/Workers/createGroundPolylineGeometry.js +2 -2
  75. package/Build/Cesium/Workers/createPlaneGeometry.js +2 -2
  76. package/Build/Cesium/Workers/createPlaneOutlineGeometry.js +2 -2
  77. package/Build/Cesium/Workers/createPolygonGeometry.js +2 -2
  78. package/Build/Cesium/Workers/createPolygonOutlineGeometry.js +2 -2
  79. package/Build/Cesium/Workers/createPolylineGeometry.js +2 -2
  80. package/Build/Cesium/Workers/createPolylineVolumeGeometry.js +2 -2
  81. package/Build/Cesium/Workers/createPolylineVolumeOutlineGeometry.js +2 -2
  82. package/Build/Cesium/Workers/createRectangleGeometry.js +2 -2
  83. package/Build/Cesium/Workers/createRectangleOutlineGeometry.js +2 -2
  84. package/Build/Cesium/Workers/createSimplePolylineGeometry.js +2 -2
  85. package/Build/Cesium/Workers/createSphereGeometry.js +2 -2
  86. package/Build/Cesium/Workers/createSphereOutlineGeometry.js +2 -2
  87. package/Build/Cesium/Workers/createTaskProcessorWorker.js +2 -2
  88. package/Build/Cesium/Workers/createVectorTileClampedPolylines.js +2 -2
  89. package/Build/Cesium/Workers/createVectorTileGeometries.js +2 -2
  90. package/Build/Cesium/Workers/createVectorTilePoints.js +2 -2
  91. package/Build/Cesium/Workers/createVectorTilePolygons.js +2 -2
  92. package/Build/Cesium/Workers/createVectorTilePolylines.js +2 -2
  93. package/Build/Cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +2 -2
  94. package/Build/Cesium/Workers/createVerticesFromHeightmap.js +2 -2
  95. package/Build/Cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +2 -2
  96. package/Build/Cesium/Workers/createWallGeometry.js +2 -2
  97. package/Build/Cesium/Workers/createWallOutlineGeometry.js +2 -2
  98. package/Build/Cesium/Workers/decodeDraco.js +2 -2
  99. package/Build/Cesium/Workers/decodeGoogleEarthEnterprisePacket.js +2 -2
  100. package/Build/Cesium/Workers/decodeI3S.js +2 -2
  101. package/Build/Cesium/Workers/gaussianSplatSorter.js +26 -0
  102. package/Build/Cesium/Workers/gaussianSplatTextureGenerator.js +26 -0
  103. package/Build/Cesium/Workers/transcodeKTX2.js +21 -21
  104. package/Build/Cesium/Workers/transferTypedArrayTest.js +1 -1
  105. package/Build/Cesium/Workers/upsampleQuantizedTerrainMesh.js +2 -2
  106. package/Build/Cesium/index.cjs +892 -621
  107. package/Build/Cesium/index.js +868 -597
  108. package/README.md +141 -141
  109. package/package.json +2 -3
  110. package/Build/Cesium/README.md +0 -13
  111. package/Build/Cesium/Workers/chunk-BKYT7QHD.js +0 -26
@@ -13081,6 +13081,13 @@ export enum PixelFormat {
13081
13081
  * A pixel format containing red, green, blue, and alpha channels.
13082
13082
  */
13083
13083
  RGBA = WebGLConstants.RGBA,
13084
+ /**
13085
+ * Integral versions of above types. Required if using integral textures.
13086
+ */
13087
+ RED_INTEGER = WebGLConstants.RED_INTEGER,
13088
+ RG_INTEGER = WebGLConstants.RG_INTEGER,
13089
+ RGB_INTEGER = WebGLConstants.RGB_INTEGER,
13090
+ RGBA_INTEGER = WebGLConstants.RGBA_INTEGER,
13084
13091
  /**
13085
13092
  * A pixel format containing a luminance (intensity) channel.
13086
13093
  */
@@ -28518,6 +28525,7 @@ export namespace Cesium3DTileset {
28518
28525
  * @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.
28519
28526
  * @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.
28520
28527
  * @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.
28528
+ * @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.
28521
28529
  * @property [debugHeatmapTilePropertyName] - The tile variable to colorize as a heatmap. All rendered tiles will be colorized relative to each other's specified variable value.
28522
28530
  * @property [debugFreezeFrame = false] - For debugging only. Determines if only the tiles from last frame should be used for rendering.
28523
28531
  * @property [debugColorizeTiles = false] - For debugging only. When true, assigns a random color to each tile.
@@ -28583,6 +28591,7 @@ export namespace Cesium3DTileset {
28583
28591
  enableCollision?: boolean;
28584
28592
  projectTo2D?: boolean;
28585
28593
  enablePick?: boolean;
28594
+ asynchronouslyLoadImagery?: boolean;
28586
28595
  debugHeatmapTilePropertyName?: string;
28587
28596
  debugFreezeFrame?: boolean;
28588
28597
  debugColorizeTiles?: boolean;
@@ -28975,6 +28984,11 @@ export class Cesium3DTileset {
28975
28984
  When true, outlines are displayed. When false, outlines are not displayed.
28976
28985
  */
28977
28986
  showOutline: boolean;
28987
+ /**
28988
+ * Whether to display Gaussing Splatting (will fall back to point cloud rendering if false)
28989
+ <insert link to spec here>
28990
+ */
28991
+ showGaussianSplatting: boolean;
28978
28992
  /**
28979
28993
  * The color to use when rendering outlines.
28980
28994
  */
@@ -29088,6 +29102,20 @@ export class Cesium3DTileset {
29088
29102
  * The {@link ClippingPolygonCollection} used to selectively disable rendering the tileset.
29089
29103
  */
29090
29104
  clippingPolygons: ClippingPolygonCollection;
29105
+ /**
29106
+ * The collection of <code>ImageryLayer</code> objects providing 2D georeferenced
29107
+ image data that will be rendered over the tileset.
29108
+
29109
+ The imagery will be draped over glTF, B3DM, PNTS, or GeoJSON tile content.
29110
+ * @example
29111
+ * // Drape Bing Maps Aerial imagery over the tileset
29112
+ const imageryProvider = await Cesium.createWorldImageryAsync({
29113
+ style: Cesium.IonWorldImageryStyle.AERIAL,
29114
+ });
29115
+ const imageryLayer = new ImageryLayer(imageryProvider);
29116
+ tileset.imageryLayers.add(imageryLayer);
29117
+ */
29118
+ readonly imageryLayers: ImageryLayerCollection;
29091
29119
  /**
29092
29120
  * Gets the tileset's properties dictionary object, which contains metadata about per-feature properties.
29093
29121
  <p>
@@ -31847,9 +31875,9 @@ export enum DepthFunction {
31847
31875
 
31848
31876
  /**
31849
31877
  * Returns the type that the given class property has in a GLSL shader.
31850
- *
31851
- * It returns the same string as `PropertyTextureProperty.prototype.getGlslType`
31852
- * for a property texture property with the given class property
31878
+
31879
+ It returns the same string as `PropertyTextureProperty.prototype.getGlslType`
31880
+ for a property texture property with the given class property
31853
31881
  * @param classProperty - The class property
31854
31882
  * @returns The GLSL shader type string for the property
31855
31883
  */
@@ -31857,8 +31885,8 @@ export function getGlslType(classProperty: MetadataClassProperty): string;
31857
31885
 
31858
31886
  /**
31859
31887
  * Returns a shader statement that applies the inverse of the
31860
- * value transform to the given value, based on the given offset
31861
- * and scale.
31888
+ value transform to the given value, based on the given offset
31889
+ and scale.
31862
31890
  * @param input - The input value
31863
31891
  * @param offset - The offset
31864
31892
  * @param scale - The scale
@@ -31868,7 +31896,7 @@ export function unapplyValueTransform(input: string, offset: string, scale: stri
31868
31896
 
31869
31897
  /**
31870
31898
  * Returns a shader statement that applies the inverse of the
31871
- * normalization, based on the given component type
31899
+ normalization, based on the given component type
31872
31900
  * @param input - The input value
31873
31901
  * @param componentType - The component type
31874
31902
  * @returns The statement
@@ -31877,20 +31905,20 @@ export function unnormalize(input: string, componentType: string): string;
31877
31905
 
31878
31906
  /**
31879
31907
  * Creates a shader statement that returns the value of the specified
31880
- * property, normalized to the range [0, 1].
31908
+ property, normalized to the range [0, 1].
31881
31909
  * @param classProperty - The class property
31882
31910
  * @param metadataProperty - The metadata property, either
31883
- * a `PropertyTextureProperty` or a `PropertyAttributeProperty`
31911
+ a `PropertyTextureProperty` or a `PropertyAttributeProperty`
31884
31912
  * @returns The string
31885
31913
  */
31886
31914
  export function getSourceValueStringScalar(classProperty: MetadataClassProperty, metadataProperty: any): string;
31887
31915
 
31888
31916
  /**
31889
31917
  * Creates a shader statement that returns the value of the specified
31890
- * component of the given property, normalized to the range [0, 1].
31918
+ component of the given property, normalized to the range [0, 1].
31891
31919
  * @param classProperty - The class property
31892
31920
  * @param metadataProperty - The metadata property, either
31893
- * a `PropertyTextureProperty` or a `PropertyAttributeProperty`
31921
+ a `PropertyTextureProperty` or a `PropertyAttributeProperty`
31894
31922
  * @param componentName - The name, in ["x", "y", "z", "w"]
31895
31923
  * @returns The string
31896
31924
  */
@@ -34450,7 +34478,7 @@ export namespace ImageryLayer {
34450
34478
 
34451
34479
  /**
34452
34480
  * An imagery layer that displays tiled image data from a single imagery provider
34453
- on a {@link Globe}.
34481
+ on a {@link Globe} or {@link Cesium3DTileset}.
34454
34482
  * @example
34455
34483
  * // Add an OpenStreetMaps layer
34456
34484
  const imageryLayer = new Cesium.ImageryLayer(new Cesium.OpenStreetMapImageryProvider({
@@ -34466,6 +34494,18 @@ scene.imageryLayers.add(imageryLayer);
34466
34494
  const imageryLayer = Cesium.ImageryLayer.fromProviderAsync(Cesium.IonImageryProvider.fromAssetId(3812));
34467
34495
  imageryLayer.alpha = 0.5;
34468
34496
  scene.imageryLayers.add(imageryLayer);
34497
+ * @example
34498
+ * // Drape Bing Maps Aerial imagery over a 3D tileset
34499
+ const tileset = await Cesium.Cesium3DTileset.fromUrl(
34500
+ "http://localhost:8002/tilesets/Seattle/tileset.json"
34501
+ );
34502
+ scene.primitives.add(tileset);
34503
+
34504
+ const imageryProvider = await Cesium.createWorldImageryAsync({
34505
+ style: Cesium.IonWorldImageryStyle.AERIAL,
34506
+ });
34507
+ const imageryLayer = new ImageryLayer(imageryProvider);
34508
+ tileset.imageryLayers.add(imageryLayer);
34469
34509
  * @param [imageryProvider] - The imagery provider to use.
34470
34510
  * @param [options] - An object describing initialization options
34471
34511
  */
@@ -34715,7 +34755,7 @@ export class ImageryLayer {
34715
34755
  }
34716
34756
 
34717
34757
  /**
34718
- * An ordered collection of imagery layers.
34758
+ * An ordered collection of imagery layers for rendering raster imagery on a {@link Globe} or {@link Cesium3DTileset}.
34719
34759
  */
34720
34760
  export class ImageryLayerCollection {
34721
34761
  constructor();
@@ -37669,6 +37709,10 @@ export class Model {
37669
37709
  When true, outlines are displayed. When false, outlines are not displayed.
37670
37710
  */
37671
37711
  showOutline: boolean;
37712
+ /**
37713
+ * Whether to display Gaussian Splatting (will fall back to point cloud rendering if false)
37714
+ */
37715
+ showGaussianSplatting: boolean;
37672
37716
  /**
37673
37717
  * The color to use when rendering outlines.
37674
37718
  */
@@ -37714,6 +37758,10 @@ export class Model {
37714
37758
  {@link Cesium3DTileset}.
37715
37759
  */
37716
37760
  pointCloudShading: PointCloudShading;
37761
+ /**
37762
+ * {@link Cesium3DTileset}.
37763
+ */
37764
+ enableShowGaussianSplatting: PointCloudShading;
37717
37765
  /**
37718
37766
  * The model's custom shader, if it exists. Using custom shaders with a {@link Cesium3DTileStyle}
37719
37767
  may lead to undefined behavior.
@@ -38622,6 +38670,26 @@ export class ModelNode {
38622
38670
  originalMatrix: Matrix4;
38623
38671
  }
38624
38672
 
38673
+ /**
38674
+ * Reads and returns a value with the given type
38675
+ at the given byte offset from the data view, in little-endian
38676
+ order
38677
+ * @param dataView - Typed data view into a binary buffer
38678
+ * @param byteOffset - The offset, in bytes, from the start of the view to read the data from
38679
+ * @param numberOfComponents - The number of components to read
38680
+ * @param result - The array in which to read the result
38681
+ */
38682
+ export type ComponentsReaderCallback = (dataView: DataView, byteOffset: number, numberOfComponents: number, result: number[]) => void;
38683
+
38684
+ /**
38685
+ * Reads and returns a value with the given type
38686
+ at the given byte offset from the data view, in little-endian
38687
+ order
38688
+ * @param dataView - Typed data view into a binary buffer
38689
+ * @param byteOffset - The offset, in bytes, from the start of the view to read the data from
38690
+ */
38691
+ export type ComponentReaderCallback = (dataView: DataView, byteOffset: number) => number | bigint;
38692
+
38625
38693
  /**
38626
38694
  * A simple struct that serves as a value of a <code>sampler2D</code>-valued
38627
38695
  uniform. This is used with {@link CustomShader} and {@link TextureManager}
@@ -41215,6 +41283,12 @@ export class PrimitiveCollection {
41215
41283
  destroy(): void;
41216
41284
  }
41217
41285
 
41286
+ /**
41287
+ * Do our dequantizing here. When using meshopt, our positions are quantized,
41288
+ as well as our quaternions. decodeFilterQuat returns quantized shorts
41289
+ */
41290
+ export function dequantizeSplatMeshopt(): void;
41291
+
41218
41292
  /**
41219
41293
  * A simple Least Recently Used (LRU) cache implementation.
41220
41294
  */