@cesium/engine 18.3.1-ion.1 → 19.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/z-worker-pako.js +77 -93
- package/Build/Workers/{chunk-OQNQNBEM.js → chunk-23FRF5ZP.js} +9 -9
- package/Build/Workers/{chunk-3T2QV5NN.js → chunk-25USKS4R.js} +6 -6
- package/Build/Workers/{chunk-AIBIEA2N.js → chunk-34DFERFC.js} +12 -12
- package/Build/Workers/{chunk-EF747DYS.js → chunk-37IYBZDZ.js} +9 -9
- package/Build/Workers/{chunk-T3UE5LOS.js → chunk-4NRFVAG2.js} +5 -5
- package/Build/Workers/{chunk-GIRJEZHU.js → chunk-4QWLEG4L.js} +14 -14
- package/Build/Workers/{chunk-GGNZKIG3.js → chunk-5VPO47LB.js} +8 -8
- package/Build/Workers/{chunk-GOSJZP7N.js → chunk-5YCDPN3O.js} +1 -1
- package/Build/Workers/{chunk-KSNUH6WJ.js → chunk-6T2PQKYP.js} +4 -4
- package/Build/Workers/{chunk-AJANTRVW.js → chunk-AABNX23Q.js} +5 -5
- package/Build/Workers/{chunk-JVSY3BGV.js → chunk-AZPKFL5X.js} +5 -5
- package/Build/Workers/{chunk-MYMBUYST.js → chunk-C36VNKTH.js} +4 -4
- package/Build/Workers/{chunk-QBRCP474.js → chunk-DAHXCIOX.js} +8 -8
- package/Build/Workers/{chunk-AKLRSDAY.js → chunk-DNCRKMCI.js} +6 -6
- package/Build/Workers/{chunk-5RUDB5R4.js → chunk-DPFAUGBE.js} +2 -2
- package/Build/Workers/{chunk-LPLMZKZS.js → chunk-DXYAD4ED.js} +1 -1
- package/Build/Workers/{chunk-GSLSXQGX.js → chunk-E6NMEKSS.js} +4 -4
- package/Build/Workers/{chunk-DG4CHTQN.js → chunk-ECWQXDZY.js} +16 -16
- package/Build/Workers/{chunk-Z7UO3S7L.js → chunk-ESDVZ4QL.js} +10 -10
- package/Build/Workers/{chunk-G7F2CKBW.js → chunk-ETCPCGKC.js} +2 -2
- package/Build/Workers/{chunk-W2EMENZQ.js → chunk-EV4PBU7O.js} +1 -1
- package/Build/Workers/{chunk-BTXGNWFF.js → chunk-FQNSMOZT.js} +4 -4
- package/Build/Workers/{chunk-4HDG7AFU.js → chunk-GO3IRH6U.js} +6 -6
- package/Build/Workers/{chunk-ACOAKTBU.js → chunk-GVO3YIU2.js} +4 -4
- package/Build/Workers/{chunk-RQRKALHB.js → chunk-HHHBRTSW.js} +9 -9
- package/Build/Workers/{chunk-5DF22LFV.js → chunk-HJ6KFRM7.js} +16 -16
- package/Build/Workers/{chunk-SMVRX64E.js → chunk-IE2BEHLE.js} +12 -12
- package/Build/Workers/{chunk-GK5WVMVN.js → chunk-JZVUMRYA.js} +13 -13
- package/Build/Workers/{chunk-XPXBRZXF.js → chunk-K5VGMGFM.js} +7 -7
- package/Build/Workers/{chunk-K4HUWRWA.js → chunk-KTDHOEXR.js} +1 -1
- package/Build/Workers/{chunk-PFTYXAVG.js → chunk-MBDKO456.js} +5 -5
- package/Build/Workers/{chunk-IC5M3JRR.js → chunk-MUL374P3.js} +2 -2
- package/Build/Workers/{chunk-GMNXNBM4.js → chunk-NKM2EV46.js} +1 -1
- package/Build/Workers/{chunk-5UWLMG6V.js → chunk-NMAT4IJ6.js} +7 -7
- package/Build/Workers/{chunk-YPMSP4IH.js → chunk-PAH73ETP.js} +5 -5
- package/Build/Workers/{chunk-OVXYMPQ7.js → chunk-Q2QXUN33.js} +2 -2
- package/Build/Workers/{chunk-DH3XQXDD.js → chunk-RIQM3XY5.js} +4 -4
- package/Build/Workers/{chunk-G6I5XO4E.js → chunk-RZJA77TX.js} +6 -6
- package/Build/Workers/{chunk-6HT3OW6S.js → chunk-SO2Z6H6F.js} +2 -2
- package/Build/Workers/{chunk-GG2NLIC6.js → chunk-SOYVF5RC.js} +2 -2
- package/Build/Workers/{chunk-37V6UO2J.js → chunk-SVGHDIZG.js} +5 -5
- package/Build/Workers/{chunk-KUVAFSVU.js → chunk-SXMHGVZ7.js} +12 -12
- package/Build/Workers/{chunk-3HRMP3V7.js → chunk-T7C73J6H.js} +4 -4
- package/Build/Workers/{chunk-LDFRBRJO.js → chunk-UPU755HO.js} +12 -12
- package/Build/Workers/{chunk-DPG3EG2U.js → chunk-VCCR35R6.js} +11 -11
- package/Build/Workers/{chunk-ZGH3R3CO.js → chunk-W32QSECR.js} +6 -6
- package/Build/Workers/{chunk-RVQ7LHW3.js → chunk-WUMTX3FI.js} +6 -6
- package/Build/Workers/{chunk-4JMMKZ4N.js → chunk-XUYCCEG6.js} +5 -5
- package/Build/Workers/{chunk-KQ7OYXT6.js → chunk-Y3PM6G2V.js} +3 -3
- package/Build/Workers/{chunk-QTFE5TBC.js → chunk-Y6LLFNXN.js} +10 -10
- package/Build/Workers/{chunk-GXEQK7P4.js → chunk-YPNIIVIF.js} +6 -6
- package/Build/Workers/{chunk-XMFKOU5X.js → chunk-ZNEIUXBK.js} +7 -7
- 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 +19 -19
- 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 +6 -6
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +19 -19
- package/LICENSE.md +32 -25
- package/Source/Core/ITwinPlatform.js +8 -1
- package/Source/Core/Ion.js +1 -1
- package/Source/Core/ScreenSpaceEventHandler.js +3 -3
- package/Source/Core/addAllToArray.js +40 -0
- package/Source/DataSources/StaticGroundGeometryPerMaterialBatch.js +54 -26
- package/Source/Renderer/Context.js +8 -4
- package/Source/Renderer/Renderbuffer.js +4 -2
- package/Source/Renderer/Sampler.js +13 -0
- package/Source/Renderer/ShaderBuilder.js +7 -6
- package/Source/Renderer/SharedContext.js +186 -0
- package/Source/Renderer/Texture.js +4 -5
- package/Source/Renderer/Texture3D.js +17 -7
- package/Source/Scene/ArcGisMapService.js +1 -1
- package/Source/Scene/BillboardCollection.js +1 -1
- package/Source/Scene/Cesium3DTileBatchTable.js +6 -4
- package/Source/Scene/Cesium3DTileStyle.js +4 -3
- package/Source/Scene/Cesium3DTileset.js +1 -1
- package/Source/Scene/ConditionsExpression.js +3 -2
- package/Source/Scene/GltfLoader.js +3 -2
- package/Source/Scene/GltfPipeline/ForEach.js +7 -7
- package/Source/Scene/GltfPipeline/addDefaults.js +1 -2
- package/Source/Scene/GltfPipeline/addToArray.js +2 -0
- package/Source/Scene/GltfPipeline/findAccessorMinMax.js +1 -1
- package/Source/Scene/GltfPipeline/getComponentReader.js +16 -16
- package/Source/Scene/GltfPipeline/moveTechniqueRenderStates.js +1 -1
- package/Source/Scene/GltfPipeline/moveTechniquesToExtension.js +3 -3
- package/Source/Scene/GltfPipeline/parseGlb.js +1 -1
- package/Source/Scene/GltfPipeline/readAccessorPacked.js +2 -2
- package/Source/Scene/GltfPipeline/removeUnusedElements.js +5 -6
- package/Source/Scene/GltfPipeline/updateAccessorComponentTypes.js +1 -1
- package/Source/Scene/GltfPipeline/updateVersion.js +13 -13
- package/Source/Scene/GltfSpzLoader.js +3 -1
- package/Source/Scene/HeightReference.js +1 -1
- package/Source/Scene/ITwinData.js +97 -34
- package/Source/Scene/ImageBasedLighting.js +6 -2
- package/Source/Scene/ImageryLayer.js +10 -10
- package/Source/Scene/MetadataTableProperty.js +2 -1
- package/Source/Scene/Model/ClassificationModelDrawCommand.js +7 -6
- package/Source/Scene/Model/GeoJsonLoader.js +3 -1
- package/Source/Scene/Model/ImageryConfiguration.js +1 -0
- package/Source/Scene/Model/ImageryPipelineStage.js +8 -2
- package/Source/Scene/Model/InstancingPipelineStage.js +3 -8
- package/Source/Scene/Model/MaterialPipelineStage.js +10 -1
- package/Source/Scene/Model/ModelImagery.js +3 -0
- package/Source/Scene/Model/ModelSceneGraph.js +2 -1
- package/Source/Scene/Picking.js +41 -1
- package/Source/Scene/Primitive.js +0 -1
- package/Source/Scene/PrimitiveCollection.js +32 -6
- package/Source/Scene/PrimitiveLoadPlan.js +0 -36
- package/Source/Scene/PropertyTable.js +7 -12
- package/Source/Scene/Scene.js +41 -32
- package/Source/Scene/ScreenSpaceCameraController.js +2 -0
- package/Source/Shaders/Builtin/Functions/modelToWindowCoordinates.glsl +2 -1
- package/Source/Shaders/Builtin/Functions/modelToWindowCoordinates.js +2 -1
- package/Source/Shaders/EllipsoidVS.glsl +4 -4
- package/Source/Shaders/EllipsoidVS.js +4 -4
- package/Source/Shaders/FXAA3_11.glsl +2 -0
- package/Source/Shaders/FXAA3_11.js +2 -0
- package/Source/Shaders/GlobeVS.glsl +2 -1
- package/Source/Shaders/GlobeVS.js +2 -1
- package/Source/Shaders/SkyAtmosphereVS.glsl +2 -1
- package/Source/Shaders/SkyAtmosphereVS.js +2 -1
- package/Source/ThirdParty/Workers/z-worker-pako.js +1 -1
- package/index.d.ts +82 -53
- package/index.js +219 -217
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -29365,7 +29365,7 @@ export namespace Cesium3DTileset {
|
|
|
29365
29365
|
* @property [instanceFeatureIdLabel = "instanceFeatureId_0"] - Label of the instance feature ID set used for picking and styling. If instanceFeatureIdLabel is set to an integer N, it is converted to the string "instanceFeatureId_N" automatically. If both per-primitive and per-instance feature IDs are present, the instance feature IDs take priority.
|
|
29366
29366
|
* @property [showCreditsOnScreen = false] - Whether to display the credits of this tileset on screen.
|
|
29367
29367
|
* @property [splitDirection = SplitDirection.NONE] - The {@link SplitDirection} split to apply to this tileset.
|
|
29368
|
-
* @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.
|
|
29368
|
+
* @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. This also affects the behavior of {@link HeightReference.CLAMP_TO_GROUND} when clamping to 3D Tiles surfaces. If <code>enableCollision</code> is <code>false</code>, entities may not be correctly clamped to the tileset geometry.
|
|
29369
29369
|
* @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.
|
|
29370
29370
|
* @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.
|
|
29371
29371
|
* @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.
|
|
@@ -33611,7 +33611,7 @@ export enum HeightReference {
|
|
|
33611
33611
|
*/
|
|
33612
33612
|
NONE = 0,
|
|
33613
33613
|
/**
|
|
33614
|
-
* The position is clamped to the terrain and 3D Tiles.
|
|
33614
|
+
* The position is clamped to the terrain and 3D Tiles. When clamping to 3D Tilesets such as photorealistic 3D Tiles, ensure the tileset has {@link Cesium3DTileset#enableCollision} set to <code>true</code>. Otherwise, the entity may not be correctly clamped to the tileset surface.
|
|
33615
33615
|
*/
|
|
33616
33616
|
CLAMP_TO_GROUND = 1,
|
|
33617
33617
|
/**
|
|
@@ -34148,47 +34148,68 @@ export namespace ITwinData {
|
|
|
34148
34148
|
* If there is not a completed export available for the given iModel id, the returned promise will resolve to <code>undefined</code>.
|
|
34149
34149
|
* We recommend waiting 10-20 seconds and trying to load the tileset again.
|
|
34150
34150
|
* If all exports are Invalid this will throw an error.
|
|
34151
|
+
*
|
|
34152
|
+
* See the {@link https://developer.bentley.com/apis/mesh-export/overview/|iTwin Platform Mesh Export API documentation} for more information on request parameters
|
|
34151
34153
|
* @example
|
|
34152
|
-
* const tileset = await Cesium.ITwinData.createTilesetFromIModelId(iModelId);
|
|
34154
|
+
* const tileset = await Cesium.ITwinData.createTilesetFromIModelId({ iModelId });
|
|
34153
34155
|
* if (Cesium.defined(tileset)) {
|
|
34154
34156
|
* viewer.scene.primitives.add(tileset);
|
|
34155
34157
|
* }
|
|
34156
|
-
* @param iModelId - The id of the iModel to load
|
|
34157
|
-
* @param [options] - Object containing options to pass to the internally created {@link Cesium3DTileset}.
|
|
34158
|
+
* @param options.iModelId - The id of the iModel to load
|
|
34159
|
+
* @param [options.tilesetOptions] - Object containing options to pass to the internally created {@link Cesium3DTileset}.
|
|
34160
|
+
* @param [options.changesetId] - The id of the changeset to load, if not provided the latest changesets will be used
|
|
34158
34161
|
* @returns A promise that will resolve to the created 3D tileset or <code>undefined</code> if there is no completed export for the given iModel id
|
|
34159
34162
|
*/
|
|
34160
|
-
function createTilesetFromIModelId(
|
|
34163
|
+
function createTilesetFromIModelId(options: {
|
|
34164
|
+
iModelId: string;
|
|
34165
|
+
tilesetOptions?: Cesium3DTileset.ConstructorOptions;
|
|
34166
|
+
changesetId?: string;
|
|
34167
|
+
}): Promise<Cesium3DTileset | undefined>;
|
|
34161
34168
|
/**
|
|
34162
34169
|
* Create a tileset for the specified reality data id. This function only works
|
|
34163
34170
|
* with 3D Tiles meshes and point clouds.
|
|
34164
34171
|
*
|
|
34165
34172
|
* If the <code>type</code> or <code>rootDocument</code> are not provided this function
|
|
34166
34173
|
* will first request the full metadata for the specified reality data to fill these values.
|
|
34167
|
-
* @param iTwinId - The id of the iTwin to load data from
|
|
34168
|
-
* @param realityDataId - The id of the reality data to load
|
|
34169
|
-
* @param [type] - The type of this reality data
|
|
34170
|
-
* @param [rootDocument] - The path of the root document for this reality data
|
|
34171
|
-
*/
|
|
34172
|
-
function createTilesetForRealityDataId(
|
|
34174
|
+
* @param options.iTwinId - The id of the iTwin to load data from
|
|
34175
|
+
* @param options.realityDataId - The id of the reality data to load
|
|
34176
|
+
* @param [options.type] - The type of this reality data
|
|
34177
|
+
* @param [options.rootDocument] - The path of the root document for this reality data
|
|
34178
|
+
*/
|
|
34179
|
+
function createTilesetForRealityDataId(options: {
|
|
34180
|
+
iTwinId: string;
|
|
34181
|
+
realityDataId: string;
|
|
34182
|
+
type?: ITwinPlatform.RealityDataType;
|
|
34183
|
+
rootDocument?: string;
|
|
34184
|
+
}): Promise<Cesium3DTileset>;
|
|
34173
34185
|
/**
|
|
34174
34186
|
* Create a data source of the correct type for the specified reality data id.
|
|
34175
34187
|
* This function only works for KML and GeoJSON type data.
|
|
34176
34188
|
*
|
|
34177
34189
|
* If the <code>type</code> or <code>rootDocument</code> are not provided this function
|
|
34178
34190
|
* will first request the full metadata for the specified reality data to fill these values.
|
|
34179
|
-
* @param iTwinId - The id of the iTwin to load data from
|
|
34180
|
-
* @param realityDataId - The id of the reality data to load
|
|
34181
|
-
* @param [type] - The type of this reality data
|
|
34182
|
-
* @param [rootDocument] - The path of the root document for this reality data
|
|
34183
|
-
*/
|
|
34184
|
-
function createDataSourceForRealityDataId(
|
|
34191
|
+
* @param options.iTwinId - The id of the iTwin to load data from
|
|
34192
|
+
* @param options.realityDataId - The id of the reality data to load
|
|
34193
|
+
* @param [options.type] - The type of this reality data
|
|
34194
|
+
* @param [options.rootDocument] - The path of the root document for this reality data
|
|
34195
|
+
*/
|
|
34196
|
+
function createDataSourceForRealityDataId(options: {
|
|
34197
|
+
iTwinId: string;
|
|
34198
|
+
realityDataId: string;
|
|
34199
|
+
type?: ITwinPlatform.RealityDataType;
|
|
34200
|
+
rootDocument?: string;
|
|
34201
|
+
}): Promise<GeoJsonDataSource | KmlDataSource>;
|
|
34185
34202
|
/**
|
|
34186
34203
|
* Load data from the Geospatial Features API as GeoJSON.
|
|
34187
|
-
* @param iTwinId - The id of the iTwin to load data from
|
|
34188
|
-
* @param collectionId - The id of the data collection to load
|
|
34189
|
-
* @param [limit = 10000] - number of items per page, must be between 1 and 10,000 inclusive
|
|
34204
|
+
* @param options.iTwinId - The id of the iTwin to load data from
|
|
34205
|
+
* @param options.collectionId - The id of the data collection to load
|
|
34206
|
+
* @param [options.limit = 10000] - number of items per page, must be between 1 and 10,000 inclusive
|
|
34190
34207
|
*/
|
|
34191
|
-
function loadGeospatialFeatures(
|
|
34208
|
+
function loadGeospatialFeatures(options: {
|
|
34209
|
+
iTwinId: string;
|
|
34210
|
+
collectionId: string;
|
|
34211
|
+
limit?: number;
|
|
34212
|
+
}): Promise<GeoJsonDataSource>;
|
|
34192
34213
|
}
|
|
34193
34214
|
|
|
34194
34215
|
/**
|
|
@@ -34472,6 +34493,12 @@ export class ImageryLayer {
|
|
|
34472
34493
|
* Returns true when the terrain provider has been successfully created. Otherwise, returns false.
|
|
34473
34494
|
*/
|
|
34474
34495
|
readonly ready: boolean;
|
|
34496
|
+
/**
|
|
34497
|
+
* Gets an event that is raised when the imagery provider encounters an asynchronous error. By subscribing
|
|
34498
|
+
* to the event, you will be notified of the error and can potentially recover from it. Event listeners
|
|
34499
|
+
* are passed an instance of the thrown error.
|
|
34500
|
+
*/
|
|
34501
|
+
readonly errorEvent: Event<ImageryLayer.ErrorEventCallback>;
|
|
34475
34502
|
/**
|
|
34476
34503
|
* Gets an event that is raised when the imagery provider has been successfully created. Event listeners
|
|
34477
34504
|
* are passed the created instance of {@link ImageryProvider}.
|
|
@@ -34545,7 +34572,7 @@ export class ImageryLayer {
|
|
|
34545
34572
|
* viewer.imageryLayers.add(imageryLayer);
|
|
34546
34573
|
*
|
|
34547
34574
|
* imageryLayer.readyEvent.addEventListener(provider => {
|
|
34548
|
-
* imageryLayer.
|
|
34575
|
+
* imageryLayer.imageryProvider.errorEvent.addEventListener(error => {
|
|
34549
34576
|
* alert(`Encountered an error while loading imagery tiles! ${error}`);
|
|
34550
34577
|
* });
|
|
34551
34578
|
* });
|
|
@@ -34571,7 +34598,7 @@ export class ImageryLayer {
|
|
|
34571
34598
|
* viewer.imageryLayers.add(imageryLayer);
|
|
34572
34599
|
*
|
|
34573
34600
|
* imageryLayer.readyEvent.addEventListener(provider => {
|
|
34574
|
-
* imageryLayer.
|
|
34601
|
+
* imageryLayer.imageryProvider.errorEvent.addEventListener(error => {
|
|
34575
34602
|
* alert(`Encountered an error while loading imagery tiles! ${error}`);
|
|
34576
34603
|
* });
|
|
34577
34604
|
* });
|
|
@@ -41202,15 +41229,15 @@ export class Scene {
|
|
|
41202
41229
|
/**
|
|
41203
41230
|
* The {@link SkyBox} used to draw the stars.
|
|
41204
41231
|
*/
|
|
41205
|
-
skyBox: SkyBox;
|
|
41232
|
+
skyBox: SkyBox | undefined;
|
|
41206
41233
|
/**
|
|
41207
41234
|
* The sky atmosphere drawn around the globe.
|
|
41208
41235
|
*/
|
|
41209
|
-
skyAtmosphere: SkyAtmosphere;
|
|
41236
|
+
skyAtmosphere: SkyAtmosphere | undefined;
|
|
41210
41237
|
/**
|
|
41211
41238
|
* The {@link Sun}.
|
|
41212
41239
|
*/
|
|
41213
|
-
sun: Sun;
|
|
41240
|
+
sun: Sun | undefined;
|
|
41214
41241
|
/**
|
|
41215
41242
|
* Uses a bloom filter on the sun when enabled.
|
|
41216
41243
|
*/
|
|
@@ -41218,9 +41245,9 @@ export class Scene {
|
|
|
41218
41245
|
/**
|
|
41219
41246
|
* The {@link Moon}
|
|
41220
41247
|
*/
|
|
41221
|
-
moon: Moon;
|
|
41248
|
+
moon: Moon | undefined;
|
|
41222
41249
|
/**
|
|
41223
|
-
* The background color, which is only visible if there is no sky box, i.e., {@link Scene#skyBox} is undefined
|
|
41250
|
+
* The background color, which is only visible if there is no sky box, i.e., {@link Scene#skyBox} is <code>undefined</code>.
|
|
41224
41251
|
*/
|
|
41225
41252
|
backgroundColor: Color;
|
|
41226
41253
|
/**
|
|
@@ -41284,7 +41311,7 @@ export class Scene {
|
|
|
41284
41311
|
* return command.owner === billboards;
|
|
41285
41312
|
* };
|
|
41286
41313
|
*/
|
|
41287
|
-
debugCommandFilter: (...params: any[]) => any;
|
|
41314
|
+
debugCommandFilter: ((...params: any[]) => any) | undefined;
|
|
41288
41315
|
/**
|
|
41289
41316
|
* This property is for debugging only; it is not for production use.
|
|
41290
41317
|
* <p>
|
|
@@ -41532,10 +41559,10 @@ export class Scene {
|
|
|
41532
41559
|
*/
|
|
41533
41560
|
readonly postRender: Event;
|
|
41534
41561
|
/**
|
|
41535
|
-
* Gets the simulation time when the scene was last rendered. Returns undefined
|
|
41536
|
-
* rendered.
|
|
41562
|
+
* Gets the simulation time when the scene was last rendered. Returns <code>undefined</code>
|
|
41563
|
+
* if the scene has not yet been rendered.
|
|
41537
41564
|
*/
|
|
41538
|
-
readonly lastRenderTime: JulianDate;
|
|
41565
|
+
readonly lastRenderTime: JulianDate | undefined;
|
|
41539
41566
|
/**
|
|
41540
41567
|
* This property is for debugging only; it is not for production use.
|
|
41541
41568
|
* <p>
|
|
@@ -41547,7 +41574,7 @@ export class Scene {
|
|
|
41547
41574
|
* three frustums.
|
|
41548
41575
|
* </p>
|
|
41549
41576
|
*/
|
|
41550
|
-
readonly debugFrustumStatistics: any;
|
|
41577
|
+
readonly debugFrustumStatistics: any | undefined;
|
|
41551
41578
|
/**
|
|
41552
41579
|
* Gets whether or not the scene is optimized for 3D only viewing.
|
|
41553
41580
|
*/
|
|
@@ -41633,8 +41660,8 @@ export class Scene {
|
|
|
41633
41660
|
*/
|
|
41634
41661
|
requestRender(): void;
|
|
41635
41662
|
/**
|
|
41636
|
-
* Returns an object with a
|
|
41637
|
-
* at a particular window coordinate or undefined if nothing is at the location. Other properties may
|
|
41663
|
+
* Returns an object with a <code>primitive</code> property that contains the first (top) primitive in the scene
|
|
41664
|
+
* at a particular window coordinate or <code>undefined</code> if nothing is at the location. Other properties may
|
|
41638
41665
|
* potentially be set depending on the type of primitive and may be used to further identify the picked object.
|
|
41639
41666
|
* <p>
|
|
41640
41667
|
* When a feature of a 3D Tiles tileset is picked, <code>pick</code> returns a {@link Cesium3DTileFeature} object.
|
|
@@ -41650,12 +41677,12 @@ export class Scene {
|
|
|
41650
41677
|
* @param windowPosition - Window coordinates to perform picking on.
|
|
41651
41678
|
* @param [width = 3] - Width of the pick rectangle.
|
|
41652
41679
|
* @param [height = 3] - Height of the pick rectangle.
|
|
41653
|
-
* @returns Object containing the picked primitive.
|
|
41680
|
+
* @returns Object containing the picked primitive or <code>undefined</code> if nothing is at the location.
|
|
41654
41681
|
*/
|
|
41655
|
-
pick(windowPosition: Cartesian2, width?: number, height?: number): any;
|
|
41682
|
+
pick(windowPosition: Cartesian2, width?: number, height?: number): any | undefined;
|
|
41656
41683
|
/**
|
|
41657
41684
|
* Returns a {@link VoxelCell} for the voxel sample rendered at a particular window coordinate,
|
|
41658
|
-
* or undefined if no voxel is rendered at that position.
|
|
41685
|
+
* or <code>undefined</code> if no voxel is rendered at that position.
|
|
41659
41686
|
* @example
|
|
41660
41687
|
* On left click, report the value of the "color" property at that voxel sample.
|
|
41661
41688
|
* handler.setInputAction(function(movement) {
|
|
@@ -41667,30 +41694,30 @@ export class Scene {
|
|
|
41667
41694
|
* @param windowPosition - Window coordinates to perform picking on.
|
|
41668
41695
|
* @param [width = 3] - Width of the pick rectangle.
|
|
41669
41696
|
* @param [height = 3] - Height of the pick rectangle.
|
|
41670
|
-
* @returns Information about the voxel cell rendered at the picked position.
|
|
41697
|
+
* @returns Information about the voxel cell rendered at the picked position or <code>undefined</code> if no voxel is rendered at that position.
|
|
41671
41698
|
*/
|
|
41672
41699
|
pickVoxel(windowPosition: Cartesian2, width?: number, height?: number): VoxelCell | undefined;
|
|
41673
41700
|
/**
|
|
41674
41701
|
* Pick a metadata value at the given window position.
|
|
41675
41702
|
* @param windowPosition - Window coordinates to perform picking on.
|
|
41676
41703
|
* @param schemaId - The ID of the metadata schema to pick values
|
|
41677
|
-
* from. If this is
|
|
41704
|
+
* from. If this is <code>undefined</code>, then it will pick the values from the object
|
|
41678
41705
|
* that match the given class- and property name, regardless of the schema ID.
|
|
41679
41706
|
* @param className - The name of the metadata class to pick
|
|
41680
41707
|
* values from
|
|
41681
41708
|
* @param propertyName - The name of the metadata property to pick
|
|
41682
41709
|
* values from
|
|
41683
|
-
* @returns The metadata value, or
|
|
41710
|
+
* @returns The metadata value, or <code>undefined</code> when
|
|
41684
41711
|
* no matching metadata was found at the given position
|
|
41685
41712
|
*/
|
|
41686
41713
|
pickMetadata(windowPosition: Cartesian2, schemaId: string | undefined, className: string, propertyName: string): MetadataValue | undefined;
|
|
41687
41714
|
/**
|
|
41688
41715
|
* Pick the schema of the metadata of the object at the given position
|
|
41689
41716
|
* @param windowPosition - Window coordinates to perform picking on.
|
|
41690
|
-
* @returns The metadata schema, or
|
|
41717
|
+
* @returns The metadata schema, or <code>undefined</code> if there is no object with
|
|
41691
41718
|
* associated metadata at the given position.
|
|
41692
41719
|
*/
|
|
41693
|
-
pickMetadataSchema(windowPosition: Cartesian2): MetadataSchema;
|
|
41720
|
+
pickMetadataSchema(windowPosition: Cartesian2): MetadataSchema | undefined;
|
|
41694
41721
|
/**
|
|
41695
41722
|
* Returns the cartesian position reconstructed from the depth buffer and window position.
|
|
41696
41723
|
* <p>
|
|
@@ -41708,7 +41735,7 @@ export class Scene {
|
|
|
41708
41735
|
*/
|
|
41709
41736
|
pickPosition(windowPosition: Cartesian2, result?: Cartesian3): Cartesian3;
|
|
41710
41737
|
/**
|
|
41711
|
-
* Returns a list of objects, each containing a
|
|
41738
|
+
* Returns a list of objects, each containing a <code>primitive</code> property, for all primitives at
|
|
41712
41739
|
* a particular window coordinate position. Other properties may also be set depending on the
|
|
41713
41740
|
* type of primitive and may be used to further identify the picked object. The primitives in
|
|
41714
41741
|
* the list are ordered by their visual order in the scene (front to back).
|
|
@@ -41738,7 +41765,7 @@ export class Scene {
|
|
|
41738
41765
|
* @param [width = 0.1] - Width of the intersection volume in meters.
|
|
41739
41766
|
* @returns The height. This may be <code>undefined</code> if there was no scene geometry to sample height from.
|
|
41740
41767
|
*/
|
|
41741
|
-
sampleHeight(position: Cartographic, objectsToExclude?: object[], width?: number): number;
|
|
41768
|
+
sampleHeight(position: Cartographic, objectsToExclude?: object[], width?: number): number | undefined;
|
|
41742
41769
|
/**
|
|
41743
41770
|
* Clamps the given cartesian position to the scene geometry along the geodetic surface normal. Returns the
|
|
41744
41771
|
* clamped position or <code>undefined</code> if there was no scene geometry to clamp to. May be used to clamp
|
|
@@ -41757,13 +41784,13 @@ export class Scene {
|
|
|
41757
41784
|
* @param [result] - An optional object to return the clamped position.
|
|
41758
41785
|
* @returns The modified result parameter or a new Cartesian3 instance if one was not provided. This may be <code>undefined</code> if there was no scene geometry to clamp to.
|
|
41759
41786
|
*/
|
|
41760
|
-
clampToHeight(cartesian: Cartesian3, objectsToExclude?: object[], width?: number, result?: Cartesian3): Cartesian3;
|
|
41787
|
+
clampToHeight(cartesian: Cartesian3, objectsToExclude?: object[], width?: number, result?: Cartesian3): Cartesian3 | undefined;
|
|
41761
41788
|
/**
|
|
41762
41789
|
* Initiates an asynchronous {@link Scene#sampleHeight} query for an array of {@link Cartographic} positions
|
|
41763
41790
|
* using the maximum level of detail for 3D Tilesets in the scene. The height of the input positions is ignored.
|
|
41764
41791
|
* Returns a promise that is resolved when the query completes. Each point height is modified in place.
|
|
41765
41792
|
* If a height cannot be determined because no geometry can be sampled at that location, or another error occurs,
|
|
41766
|
-
* the height is set to undefined
|
|
41793
|
+
* the height is set to <code>undefined</code>.
|
|
41767
41794
|
* @example
|
|
41768
41795
|
* const positions = [
|
|
41769
41796
|
* new Cesium.Cartographic(-1.31968, 0.69887),
|
|
@@ -41777,9 +41804,9 @@ export class Scene {
|
|
|
41777
41804
|
* @param positions - The cartographic positions to update with sampled heights.
|
|
41778
41805
|
* @param [objectsToExclude] - A list of primitives, entities, or 3D Tiles features to not sample height from.
|
|
41779
41806
|
* @param [width = 0.1] - Width of the intersection volume in meters.
|
|
41780
|
-
* @returns A promise that resolves to the provided list of positions when the query has completed.
|
|
41807
|
+
* @returns A promise that resolves to the provided list of positions when the query has completed. Positions may become <code>undefined</code> if the height cannot be determined.
|
|
41781
41808
|
*/
|
|
41782
|
-
sampleHeightMostDetailed(positions: Cartographic[], objectsToExclude?: object[], width?: number): Promise<Cartographic[]>;
|
|
41809
|
+
sampleHeightMostDetailed(positions: Cartographic[], objectsToExclude?: object[], width?: number): Promise<(Cartographic | undefined)[]>;
|
|
41783
41810
|
/**
|
|
41784
41811
|
* Initiates an asynchronous {@link Scene#clampToHeight} query for an array of {@link Cartesian3} positions
|
|
41785
41812
|
* using the maximum level of detail for 3D Tilesets in the scene. Returns a promise that is resolved when
|
|
@@ -41798,9 +41825,9 @@ export class Scene {
|
|
|
41798
41825
|
* @param cartesians - The cartesian positions to update with clamped positions.
|
|
41799
41826
|
* @param [objectsToExclude] - A list of primitives, entities, or 3D Tiles features to not clamp to.
|
|
41800
41827
|
* @param [width = 0.1] - Width of the intersection volume in meters.
|
|
41801
|
-
* @returns A promise that resolves to the provided list of positions when the query has completed.
|
|
41828
|
+
* @returns A promise that resolves to the provided list of positions when the query has completed. Positions may become <code>undefined</code> if they cannot be clamped.
|
|
41802
41829
|
*/
|
|
41803
|
-
clampToHeightMostDetailed(cartesians: Cartesian3[], objectsToExclude?: object[], width?: number): Promise<Cartesian3[]>;
|
|
41830
|
+
clampToHeightMostDetailed(cartesians: Cartesian3[], objectsToExclude?: object[], width?: number): Promise<(Cartesian3 | undefined)[]>;
|
|
41804
41831
|
/**
|
|
41805
41832
|
* Transforms a position in cartesian coordinates to canvas coordinates. This is commonly used to place an
|
|
41806
41833
|
* HTML element at the same screen position as an object in the scene.
|
|
@@ -41816,7 +41843,7 @@ export class Scene {
|
|
|
41816
41843
|
* @param [result] - An optional object to return the input position transformed to canvas coordinates.
|
|
41817
41844
|
* @returns The modified result parameter or a new Cartesian2 instance if one was not provided. This may be <code>undefined</code> if the input position is near the center of the ellipsoid.
|
|
41818
41845
|
*/
|
|
41819
|
-
cartesianToCanvasCoordinates(position: Cartesian3, result?: Cartesian2): Cartesian2;
|
|
41846
|
+
cartesianToCanvasCoordinates(position: Cartesian3, result?: Cartesian2): Cartesian2 | undefined;
|
|
41820
41847
|
/**
|
|
41821
41848
|
* Instantly completes an active transition.
|
|
41822
41849
|
*/
|
|
@@ -42092,6 +42119,8 @@ export class ScreenSpaceCameraController {
|
|
|
42092
42119
|
minimumTrackBallHeight: number;
|
|
42093
42120
|
/**
|
|
42094
42121
|
* When disabled, the values of <code>maximumZoomDistance</code> and <code>minimumZoomDistance</code> are ignored.
|
|
42122
|
+
* Also used in conjunction with {@link Cesium3DTileset#enableCollision} to prevent the camera from moving through or below a 3D Tileset surface.
|
|
42123
|
+
* This may also affect clamping behavior when using {@link HeightReference.CLAMP_TO_GROUND} on 3D Tiles.
|
|
42095
42124
|
*/
|
|
42096
42125
|
enableCollisionDetection: boolean;
|
|
42097
42126
|
/**
|