@cesium/engine 19.0.0 → 20.0.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.
- package/Build/ThirdParty/Workers/pako_deflate.min.js +3 -3
- package/Build/ThirdParty/Workers/pako_inflate.min.js +3 -3
- package/Build/ThirdParty/Workers/z-worker-pako.js +49 -42
- package/Build/Workers/{chunk-ETCPCGKC.js → chunk-22LUVCO3.js} +2 -2
- package/Build/Workers/{chunk-34DFERFC.js → chunk-3BO4XBWM.js} +12 -12
- package/Build/Workers/{chunk-DXYAD4ED.js → chunk-3SQPZVG4.js} +1 -1
- package/Build/Workers/{chunk-Y3PM6G2V.js → chunk-4O5SZ2RE.js} +3 -3
- package/Build/Workers/{chunk-37IYBZDZ.js → chunk-4UIKSIEZ.js} +9 -9
- package/Build/Workers/{chunk-UPU755HO.js → chunk-5FZEM66Y.js} +12 -12
- package/Build/Workers/{chunk-ESDVZ4QL.js → chunk-5G56VVL3.js} +10 -10
- package/Build/Workers/{chunk-SXMHGVZ7.js → chunk-5GKRDXYJ.js} +12 -12
- package/Build/Workers/{chunk-4QWLEG4L.js → chunk-5W4EBNO3.js} +14 -14
- package/Build/Workers/{chunk-ZNEIUXBK.js → chunk-67RLCIDP.js} +7 -7
- package/Build/Workers/{chunk-GVO3YIU2.js → chunk-74VODBWB.js} +4 -4
- package/Build/Workers/{chunk-Y6LLFNXN.js → chunk-7HOD2LGH.js} +10 -10
- package/Build/Workers/{chunk-5YCDPN3O.js → chunk-D25QOWHR.js} +1 -1
- package/Build/Workers/{chunk-NMAT4IJ6.js → chunk-D63DK275.js} +7 -7
- package/Build/Workers/{chunk-XUYCCEG6.js → chunk-EHOOC4HJ.js} +5 -5
- package/Build/Workers/{chunk-MBDKO456.js → chunk-ELI5ZYDR.js} +5 -5
- package/Build/Workers/{chunk-HHHBRTSW.js → chunk-FGF4ETPY.js} +9 -9
- package/Build/Workers/{chunk-PAH73ETP.js → chunk-FKWL63D4.js} +5 -5
- package/Build/Workers/{chunk-MUL374P3.js → chunk-FLH3ZH2X.js} +4 -4
- package/Build/Workers/{chunk-HJ6KFRM7.js → chunk-HDOFAYEE.js} +16 -16
- package/Build/Workers/{chunk-SVGHDIZG.js → chunk-HHUHFFYN.js} +5 -5
- package/Build/Workers/{chunk-E6NMEKSS.js → chunk-IHUXLSNT.js} +5 -4
- package/Build/Workers/{chunk-KTDHOEXR.js → chunk-IJM2HVTV.js} +1 -1
- package/Build/Workers/{chunk-DNCRKMCI.js → chunk-IPXMWP5Z.js} +6 -6
- package/Build/Workers/{chunk-RZJA77TX.js → chunk-IWKYS6RV.js} +6 -6
- package/Build/Workers/{chunk-WUMTX3FI.js → chunk-JMX3P7DE.js} +8 -8
- package/Build/Workers/{chunk-23FRF5ZP.js → chunk-JQSMAZAT.js} +9 -9
- package/Build/Workers/{chunk-5VPO47LB.js → chunk-JRLT2FQV.js} +8 -8
- package/Build/Workers/{chunk-JZVUMRYA.js → chunk-KRXL3KZL.js} +13 -13
- package/Build/Workers/{chunk-Q2QXUN33.js → chunk-KWB7PPVO.js} +2 -2
- package/Build/Workers/{chunk-ECWQXDZY.js → chunk-M62PWLGC.js} +16 -16
- package/Build/Workers/{chunk-4NRFVAG2.js → chunk-MSLO3MQF.js} +5 -5
- package/Build/Workers/{chunk-W32QSECR.js → chunk-MZZK44UI.js} +6 -6
- package/Build/Workers/{chunk-25USKS4R.js → chunk-NB2NKFJL.js} +6 -6
- package/Build/Workers/{chunk-EV4PBU7O.js → chunk-NJYFQE5B.js} +1 -1
- package/Build/Workers/{chunk-SOYVF5RC.js → chunk-O2O4FYNI.js} +2 -2
- package/Build/Workers/{chunk-SO2Z6H6F.js → chunk-PZEPLREA.js} +2 -2
- package/Build/Workers/{chunk-C36VNKTH.js → chunk-S2RSJJQI.js} +4 -4
- package/Build/Workers/{chunk-DAHXCIOX.js → chunk-S3UYLP3X.js} +8 -8
- package/Build/Workers/{chunk-AZPKFL5X.js → chunk-TH3P77KJ.js} +5 -5
- package/Build/Workers/{chunk-GO3IRH6U.js → chunk-UGSQJYGE.js} +6 -6
- package/Build/Workers/{chunk-IE2BEHLE.js → chunk-UUXOFY6G.js} +12 -12
- package/Build/Workers/{chunk-VCCR35R6.js → chunk-V36BVRDX.js} +11 -11
- package/Build/Workers/{chunk-T7C73J6H.js → chunk-VJ2DNCFT.js} +4 -4
- package/Build/Workers/{chunk-RIQM3XY5.js → chunk-VQUVJWBK.js} +4 -4
- package/Build/Workers/{chunk-AABNX23Q.js → chunk-VWQWZ7OL.js} +5 -5
- package/Build/Workers/{chunk-K5VGMGFM.js → chunk-VXBNLAG4.js} +7 -7
- package/Build/Workers/{chunk-YPNIIVIF.js → chunk-W3KNMQT2.js} +6 -6
- package/Build/Workers/{chunk-DPFAUGBE.js → chunk-WIGH3CPD.js} +2 -2
- package/Build/Workers/{chunk-NKM2EV46.js → chunk-XVHLXVN3.js} +1 -1
- package/Build/Workers/{chunk-6T2PQKYP.js → chunk-YHB3RNF2.js} +4 -4
- package/Build/Workers/{chunk-FQNSMOZT.js → chunk-ZSHDRKLT.js} +4 -4
- package/Build/Workers/combineGeometry.js +21 -21
- package/Build/Workers/createBoxGeometry.js +15 -15
- package/Build/Workers/createBoxOutlineGeometry.js +13 -13
- package/Build/Workers/createCircleGeometry.js +23 -23
- package/Build/Workers/createCircleOutlineGeometry.js +16 -16
- package/Build/Workers/createCoplanarPolygonGeometry.js +30 -30
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +28 -28
- package/Build/Workers/createCorridorGeometry.js +26 -26
- package/Build/Workers/createCorridorOutlineGeometry.js +25 -25
- package/Build/Workers/createCylinderGeometry.js +17 -17
- package/Build/Workers/createCylinderOutlineGeometry.js +15 -15
- package/Build/Workers/createEllipseGeometry.js +23 -23
- package/Build/Workers/createEllipseOutlineGeometry.js +16 -16
- package/Build/Workers/createEllipsoidGeometry.js +16 -16
- package/Build/Workers/createEllipsoidOutlineGeometry.js +15 -15
- package/Build/Workers/createFrustumGeometry.js +15 -15
- package/Build/Workers/createFrustumOutlineGeometry.js +15 -15
- package/Build/Workers/createGeometry.js +21 -21
- package/Build/Workers/createGroundPolylineGeometry.js +19 -19
- package/Build/Workers/createPlaneGeometry.js +13 -13
- package/Build/Workers/createPlaneOutlineGeometry.js +12 -12
- package/Build/Workers/createPolygonGeometry.js +29 -29
- package/Build/Workers/createPolygonOutlineGeometry.js +27 -27
- package/Build/Workers/createPolylineGeometry.js +22 -22
- package/Build/Workers/createPolylineVolumeGeometry.js +28 -28
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +24 -24
- package/Build/Workers/createRectangleGeometry.js +24 -24
- package/Build/Workers/createRectangleOutlineGeometry.js +17 -17
- package/Build/Workers/createSimplePolylineGeometry.js +20 -20
- package/Build/Workers/createSphereGeometry.js +16 -16
- package/Build/Workers/createSphereOutlineGeometry.js +15 -15
- package/Build/Workers/createTaskProcessorWorker.js +3 -3
- package/Build/Workers/createVectorTileClampedPolylines.js +12 -12
- package/Build/Workers/createVectorTileGeometries.js +21 -21
- package/Build/Workers/createVectorTilePoints.js +11 -11
- package/Build/Workers/createVectorTilePolygons.js +19 -19
- package/Build/Workers/createVectorTilePolylines.js +12 -12
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +19 -19
- package/Build/Workers/createVerticesFromHeightmap.js +25 -25
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +16 -16
- package/Build/Workers/createWallGeometry.js +21 -21
- package/Build/Workers/createWallOutlineGeometry.js +20 -20
- package/Build/Workers/decodeDraco.js +10 -10
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
- package/Build/Workers/decodeI3S.js +9 -9
- package/Build/Workers/gaussianSplatSorter.js +4 -4
- package/Build/Workers/gaussianSplatTextureGenerator.js +4 -4
- package/Build/Workers/transcodeKTX2.js +17 -16
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +19 -19
- package/Source/Core/Ellipsoid.js +9 -0
- package/Source/Core/Ion.js +1 -1
- package/Source/Core/IonResource.js +14 -8
- package/Source/Scene/ArcGisMapService.js +1 -1
- package/Source/Scene/BingMapsImageryProvider.js +1 -1
- package/Source/Scene/Cesium3DTileContentFactory.js +7 -16
- package/Source/Scene/Cesium3DTileset.js +1 -1
- package/Source/Scene/GaussianSplat3DTileContent.js +253 -9
- package/Source/Scene/GaussianSplatPrimitive.js +167 -15
- package/Source/Scene/GltfLoader.js +20 -2
- package/Source/Scene/GltfVertexBufferLoader.js +56 -2
- package/Source/Scene/ITwinData.js +37 -76
- package/Source/Scene/Model/Model.js +3 -0
- package/Source/Scene/Model/ModelClippingPolygonsPipelineStage.js +8 -2
- package/Source/Scene/Model/ModelUtility.js +1 -0
- package/Source/Scene/Model/PntsLoader.js +7 -3
- package/Source/Scene/PntsParser.js +6 -3
- package/Source/Scene/PrimitiveLoadPlan.js +1 -1
- package/Source/Scene/VertexAttributeSemantic.js +4 -2
- package/Source/Scene/WebMapServiceImageryProvider.js +3 -2
- package/Source/Scene/WebMapTileServiceImageryProvider.js +0 -22
- package/Source/Scene/getMeshPrimitives.js +72 -0
- package/Source/Shaders/PrimitiveGaussianSplatFS.glsl +5 -5
- package/Source/Shaders/PrimitiveGaussianSplatFS.js +5 -5
- package/Source/Shaders/PrimitiveGaussianSplatVS.glsl +102 -5
- package/Source/Shaders/PrimitiveGaussianSplatVS.js +102 -5
- package/Source/ThirdParty/Workers/z-worker-pako.js +1 -1
- package/index.d.ts +109 -1
- package/index.js +376 -375
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -5803,6 +5803,11 @@ export class Ellipsoid {
|
|
|
5803
5803
|
* An Ellipsoid instance initialized to a sphere with the lunar radius.
|
|
5804
5804
|
*/
|
|
5805
5805
|
static readonly MOON: Ellipsoid;
|
|
5806
|
+
/**
|
|
5807
|
+
* An Ellipsoid instance initialized to a sphere with the mean radii of Mars.
|
|
5808
|
+
* Source: https://epsg.io/104905
|
|
5809
|
+
*/
|
|
5810
|
+
static readonly MARS: Ellipsoid;
|
|
5806
5811
|
/**
|
|
5807
5812
|
* The default ellipsoid used when not otherwise specified.
|
|
5808
5813
|
* @example
|
|
@@ -32340,6 +32345,99 @@ export class FrameRateMonitor {
|
|
|
32340
32345
|
destroy(): void;
|
|
32341
32346
|
}
|
|
32342
32347
|
|
|
32348
|
+
/**
|
|
32349
|
+
* Represents the contents of a glTF or glb using the {@link https://github.com/CesiumGS/glTF/tree/draft-splat-spz/extensions/2.0/Khronos/KHR_gaussian_splatting | KHR_gaussian_splatting} and {@link https://github.com/CesiumGS/glTF/tree/draft-splat-spz/extensions/2.0/Khronos/KHR_gaussian_splatting_compression_spz_2 | KHR_gaussian_splatting_compression_spz_2} extensions.
|
|
32350
|
+
* <p>
|
|
32351
|
+
* Implements the {@link Cesium3DTileContent} interface.
|
|
32352
|
+
* </p>
|
|
32353
|
+
*/
|
|
32354
|
+
export class GaussianSplat3DTileContent {
|
|
32355
|
+
constructor();
|
|
32356
|
+
/**
|
|
32357
|
+
* Performs checks to ensure that the provided tileset has the Gaussian Splatting extensions.
|
|
32358
|
+
* @param tileset - The tileset to check for the extensions.
|
|
32359
|
+
* @returns Returns <code>true</code> if the necessary extensions are included in the tileset.
|
|
32360
|
+
*/
|
|
32361
|
+
static tilesetRequiresGaussianSplattingExt(tileset: Cesium3DTileset): boolean;
|
|
32362
|
+
/**
|
|
32363
|
+
* Gets the number of features in the tile. Currently this is always zero.
|
|
32364
|
+
*/
|
|
32365
|
+
readonly featuresLength: number;
|
|
32366
|
+
/**
|
|
32367
|
+
* Equal to the number of Gaussian splats in the tile. Each splat is represented by a median point and a set of attributes, so we can
|
|
32368
|
+
* treat this as the number of points in the tile.
|
|
32369
|
+
*/
|
|
32370
|
+
readonly pointsLength: number;
|
|
32371
|
+
/**
|
|
32372
|
+
* Gets the number of triangles in the tile. Currently this is always zero because Gaussian splats are not represented as triangles in the tile content.
|
|
32373
|
+
* <p>
|
|
32374
|
+
*/
|
|
32375
|
+
readonly trianglesLength: number;
|
|
32376
|
+
/**
|
|
32377
|
+
* The number of bytes used by the geometry attributes of this content.
|
|
32378
|
+
* <p>
|
|
32379
|
+
*/
|
|
32380
|
+
readonly geometryByteLength: number;
|
|
32381
|
+
/**
|
|
32382
|
+
* The number of bytes used by the textures of this content.
|
|
32383
|
+
* <p>
|
|
32384
|
+
*/
|
|
32385
|
+
readonly texturesByteLength: number;
|
|
32386
|
+
/**
|
|
32387
|
+
* Gets the amount of memory used by the batch table textures and any binary
|
|
32388
|
+
* metadata properties not accounted for in geometryByteLength or
|
|
32389
|
+
* texturesByteLength
|
|
32390
|
+
* <p>
|
|
32391
|
+
*/
|
|
32392
|
+
readonly batchTableByteLength: number;
|
|
32393
|
+
/**
|
|
32394
|
+
* Gets the array of {@link Cesium3DTileContent} objects for contents that contain other contents, such as composite tiles. The inner contents may in turn have inner contents, such as a composite tile that contains a composite tile.
|
|
32395
|
+
*/
|
|
32396
|
+
readonly innerContents: any[];
|
|
32397
|
+
/**
|
|
32398
|
+
* Returns true when the tile's content is ready to render; otherwise false
|
|
32399
|
+
*/
|
|
32400
|
+
readonly ready: boolean;
|
|
32401
|
+
/**
|
|
32402
|
+
* Returns true when the tile's content is transformed to world coordinates; otherwise false
|
|
32403
|
+
* <p>
|
|
32404
|
+
*/
|
|
32405
|
+
readonly transformed: boolean;
|
|
32406
|
+
/**
|
|
32407
|
+
* The tileset that this content belongs to.
|
|
32408
|
+
* <p>
|
|
32409
|
+
*/
|
|
32410
|
+
readonly tileset: Cesium3DTileset;
|
|
32411
|
+
/**
|
|
32412
|
+
* The tile that this content belongs to.
|
|
32413
|
+
* <p>
|
|
32414
|
+
*/
|
|
32415
|
+
readonly tile: Cesium3DTile;
|
|
32416
|
+
/**
|
|
32417
|
+
* The resource that this content was loaded from.
|
|
32418
|
+
* <p>
|
|
32419
|
+
*/
|
|
32420
|
+
readonly url: Resource;
|
|
32421
|
+
/**
|
|
32422
|
+
* Returns whether the feature has this property.
|
|
32423
|
+
* @param batchId - The batchId for the feature.
|
|
32424
|
+
* @param name - The case-sensitive name of the property.
|
|
32425
|
+
* @returns <code>true</code> if the feature has this property; otherwise, <code>false</code>.
|
|
32426
|
+
*/
|
|
32427
|
+
hasProperty(batchId: number, name: string): boolean;
|
|
32428
|
+
/**
|
|
32429
|
+
* Returns the {@link Cesium3DTileFeature} object for the feature with the
|
|
32430
|
+
* given <code>batchId</code>. This object is used to get and modify the
|
|
32431
|
+
* feature's properties.
|
|
32432
|
+
* <p>
|
|
32433
|
+
* Features in a tile are ordered by <code>batchId</code>, an index used to retrieve their metadata from the batch table.
|
|
32434
|
+
* </p>
|
|
32435
|
+
* @param batchId - The batchId for the feature.
|
|
32436
|
+
* @returns The corresponding {@link Cesium3DTileFeature} object.
|
|
32437
|
+
*/
|
|
32438
|
+
getFeature(batchId: number): Cesium3DTileFeature;
|
|
32439
|
+
}
|
|
32440
|
+
|
|
32343
32441
|
/**
|
|
32344
32442
|
* Describes the format in which to request GetFeatureInfo from a Web Map Service (WMS) server.
|
|
32345
32443
|
* @param type - The type of response to expect from a GetFeatureInfo request. Valid
|
|
@@ -34171,16 +34269,22 @@ export namespace ITwinData {
|
|
|
34171
34269
|
*
|
|
34172
34270
|
* If the <code>type</code> or <code>rootDocument</code> are not provided this function
|
|
34173
34271
|
* will first request the full metadata for the specified reality data to fill these values.
|
|
34272
|
+
*
|
|
34273
|
+
* The <code>maximumScreenSpaceError</code> of the resulting tileset will default to 4,
|
|
34274
|
+
* unless it is explicitly overridden with the given tileset options.
|
|
34174
34275
|
* @param options.iTwinId - The id of the iTwin to load data from
|
|
34175
34276
|
* @param options.realityDataId - The id of the reality data to load
|
|
34176
34277
|
* @param [options.type] - The type of this reality data
|
|
34177
34278
|
* @param [options.rootDocument] - The path of the root document for this reality data
|
|
34279
|
+
* @param [options.tilesetOptions] - Object containing
|
|
34280
|
+
* options to pass to the internally created {@link Cesium3DTileset}.
|
|
34178
34281
|
*/
|
|
34179
34282
|
function createTilesetForRealityDataId(options: {
|
|
34180
34283
|
iTwinId: string;
|
|
34181
34284
|
realityDataId: string;
|
|
34182
34285
|
type?: ITwinPlatform.RealityDataType;
|
|
34183
34286
|
rootDocument?: string;
|
|
34287
|
+
tilesetOptions?: Cesium3DTileset.ConstructorOptions;
|
|
34184
34288
|
}): Promise<Cesium3DTileset>;
|
|
34185
34289
|
/**
|
|
34186
34290
|
* Create a data source of the correct type for the specified reality data id.
|
|
@@ -37496,6 +37600,9 @@ export enum LightingModel {
|
|
|
37496
37600
|
* {@link https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Vendor/EXT_mesh_gpu_instancing|EXT_mesh_gpu_instancing}
|
|
37497
37601
|
* </li>
|
|
37498
37602
|
* <li>
|
|
37603
|
+
* {@link https://github.com/KhronosGroup/glTF/pull/2514|EXT_mesh_primitive_restart}
|
|
37604
|
+
* </li>
|
|
37605
|
+
* <li>
|
|
37499
37606
|
* {@link https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Vendor/EXT_meshopt_compression|EXT_meshopt_compression}
|
|
37500
37607
|
* </li>
|
|
37501
37608
|
* <li>
|
|
@@ -44211,8 +44318,9 @@ export namespace WebMapServiceImageryProvider {
|
|
|
44211
44318
|
/**
|
|
44212
44319
|
* Provides tiled imagery hosted by a Web Map Service (WMS) server.
|
|
44213
44320
|
* @example
|
|
44321
|
+
* // WMS servers operated by the US government https://apps.nationalmap.gov/services/
|
|
44214
44322
|
* const provider = new Cesium.WebMapServiceImageryProvider({
|
|
44215
|
-
* url : 'https://
|
|
44323
|
+
* url : 'https://basemap.nationalmap.gov:443/arcgis/services/USGSHydroCached/MapServer/WMSServer',
|
|
44216
44324
|
* layers : '0',
|
|
44217
44325
|
* proxy: new Cesium.DefaultProxy('/proxy/')
|
|
44218
44326
|
* });
|