mars3d-cesium 1.134.0 → 1.135.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/Cesium/Cesium.d.ts +263 -6
- package/Build/Cesium/Cesium.js +6144 -5950
- package/Build/Cesium/ThirdParty/Workers/zip-web-worker.js +1 -1
- package/Build/Cesium/ThirdParty/google-earth-dbroot-parser.js +1 -1
- package/Build/Cesium/Workers/{chunk-ITZ4CMQQ.js → chunk-234I7OSJ.js} +2 -2
- package/Build/Cesium/Workers/{chunk-4GXN2TLN.js → chunk-47L665Y3.js} +2 -2
- package/Build/Cesium/Workers/{chunk-VIQLYDC6.js → chunk-4NESHLIW.js} +2 -2
- package/Build/Cesium/Workers/chunk-52SSOFRO.js +26 -0
- package/Build/Cesium/Workers/{chunk-3LOSS6US.js → chunk-5FREU643.js} +2 -2
- package/Build/Cesium/Workers/{chunk-UDPP7KSW.js → chunk-6INKH6TT.js} +1 -1
- package/Build/Cesium/Workers/{chunk-IX2ABJVZ.js → chunk-74M7JUED.js} +1 -1
- package/Build/Cesium/Workers/{chunk-NK7NRBX7.js → chunk-75WDW3UA.js} +2 -2
- package/Build/Cesium/Workers/{chunk-YO4HJAM4.js → chunk-7DM4VRLC.js} +2 -2
- package/Build/Cesium/Workers/{chunk-AGFS5HXO.js → chunk-AIVD5N6E.js} +2 -2
- package/Build/Cesium/Workers/{chunk-RQDXHB4C.js → chunk-BBKBBT2U.js} +2 -2
- package/Build/Cesium/Workers/{chunk-XD7WYY4D.js → chunk-CBDHYUZM.js} +2 -2
- package/Build/Cesium/Workers/{chunk-TWQXG26J.js → chunk-CKMZFNDL.js} +1 -1
- package/Build/Cesium/Workers/{chunk-4U44Y3LJ.js → chunk-CUDDGE5L.js} +2 -2
- package/Build/Cesium/Workers/{chunk-G2YQOG6X.js → chunk-DNWXRF7H.js} +2 -2
- package/Build/Cesium/Workers/{chunk-4IBV4IJ2.js → chunk-EKIWDFFL.js} +2 -2
- package/Build/Cesium/Workers/{chunk-Q7P2MJO5.js → chunk-F4L7WVZR.js} +2 -2
- package/Build/Cesium/Workers/{chunk-F3WYPFWT.js → chunk-FUJKTH6N.js} +2 -2
- package/Build/Cesium/Workers/{chunk-4SQ5VOGL.js → chunk-GTLYO3YS.js} +2 -2
- package/Build/Cesium/Workers/chunk-HSO5NCO2.js +26 -0
- package/Build/Cesium/Workers/{chunk-6Z4HPQBM.js → chunk-HYR2MDP3.js} +2 -2
- package/Build/Cesium/Workers/{chunk-N2Z3SETR.js → chunk-JVVVMP5S.js} +2 -2
- package/Build/Cesium/Workers/{chunk-UNGJW75Z.js → chunk-KFJRYK6Y.js} +2 -2
- package/Build/Cesium/Workers/{chunk-UGXOBMAM.js → chunk-KJ2N7N2F.js} +2 -2
- package/Build/Cesium/Workers/{chunk-I5PTXW4X.js → chunk-KKH22CU6.js} +2 -2
- package/Build/Cesium/Workers/{chunk-TOHTYCK3.js → chunk-KVN4S3W2.js} +2 -2
- package/Build/Cesium/Workers/{chunk-VISGUFDT.js → chunk-P2ATLXYK.js} +2 -2
- package/Build/Cesium/Workers/{chunk-NESRFQPT.js → chunk-P4CBSWTJ.js} +2 -2
- package/Build/Cesium/Workers/{chunk-IS6TWZHW.js → chunk-PBOA7XCM.js} +2 -2
- package/Build/Cesium/Workers/{chunk-3HHF4FLI.js → chunk-PQUPEGEU.js} +2 -2
- package/Build/Cesium/Workers/{chunk-5CEG2QXT.js → chunk-PVO6WFU6.js} +2 -2
- package/Build/Cesium/Workers/{chunk-SAO3WUFO.js → chunk-QUZOLRHP.js} +8 -8
- package/Build/Cesium/Workers/{chunk-3MSHXZ3R.js → chunk-R75PEI2W.js} +2 -2
- package/Build/Cesium/Workers/{chunk-OPXGNGJU.js → chunk-R7OEDP7O.js} +2 -2
- package/Build/Cesium/Workers/{chunk-W3ZYCBIW.js → chunk-RPXUQ2AO.js} +2 -2
- package/Build/Cesium/Workers/{chunk-GBK5WL6O.js → chunk-RQ7A42DE.js} +2 -2
- package/Build/Cesium/Workers/{chunk-E25EHBNP.js → chunk-RQSOJS3W.js} +2 -2
- package/Build/Cesium/Workers/{chunk-533CWN3S.js → chunk-RVIN6KTA.js} +2 -2
- package/Build/Cesium/Workers/chunk-S77XZCQ6.js +26 -0
- package/Build/Cesium/Workers/{chunk-ZEQMQTHI.js → chunk-SOJPBEDM.js} +2 -2
- package/Build/Cesium/Workers/{chunk-BFLWBYD7.js → chunk-SQQT6ZVO.js} +2 -2
- package/Build/Cesium/Workers/chunk-SSQDOM4X.js +26 -0
- package/Build/Cesium/Workers/chunk-TL5API67.js +26 -0
- package/Build/Cesium/Workers/{chunk-FMDYX22L.js → chunk-V6M5VRUN.js} +2 -2
- package/Build/Cesium/Workers/{chunk-ANK44TPE.js → chunk-VBZUTFOY.js} +2 -2
- package/Build/Cesium/Workers/chunk-VDZP2EIW.js +26 -0
- package/Build/Cesium/Workers/{chunk-MOZMRSMU.js → chunk-VJIUEO4A.js} +2 -2
- package/Build/Cesium/Workers/{chunk-2JCPSPFZ.js → chunk-VUBH2SGE.js} +2 -2
- package/Build/Cesium/Workers/{chunk-URP2EK6R.js → chunk-WICKEAQ3.js} +2 -2
- package/Build/Cesium/Workers/{chunk-TBEXBOWJ.js → chunk-YIDWXUKZ.js} +2 -2
- package/Build/Cesium/Workers/{chunk-KQ2WYAXZ.js → chunk-YJUZXXK7.js} +1 -1
- package/Build/Cesium/Workers/{chunk-VWUEJJYN.js → chunk-YUAWNRVE.js} +1 -1
- package/Build/Cesium/Workers/{chunk-3KJIOIAW.js → chunk-Z5SAIJSK.js} +2 -2
- package/Build/Cesium/Workers/{chunk-32MO7V5T.js → chunk-ZPNMN6F6.js} +2 -2
- package/Build/Cesium/Workers/combineGeometry.js +2 -2
- package/Build/Cesium/Workers/createBoxGeometry.js +2 -2
- package/Build/Cesium/Workers/createBoxOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createCircleGeometry.js +2 -2
- package/Build/Cesium/Workers/createCircleOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createCoplanarPolygonGeometry.js +2 -2
- package/Build/Cesium/Workers/createCoplanarPolygonOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createCorridorGeometry.js +2 -2
- package/Build/Cesium/Workers/createCorridorOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createCylinderGeometry.js +2 -2
- package/Build/Cesium/Workers/createCylinderOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createEllipseGeometry.js +2 -2
- package/Build/Cesium/Workers/createEllipseOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createEllipsoidGeometry.js +2 -2
- package/Build/Cesium/Workers/createEllipsoidOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createFrustumGeometry.js +2 -2
- package/Build/Cesium/Workers/createFrustumOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createGeometry.js +2 -2
- package/Build/Cesium/Workers/createGroundPolylineGeometry.js +2 -2
- package/Build/Cesium/Workers/createPlaneGeometry.js +2 -2
- package/Build/Cesium/Workers/createPlaneOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createPolygonGeometry.js +2 -2
- package/Build/Cesium/Workers/createPolygonOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createPolylineGeometry.js +2 -2
- package/Build/Cesium/Workers/createPolylineVolumeGeometry.js +2 -2
- package/Build/Cesium/Workers/createPolylineVolumeOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createRectangleGeometry.js +2 -2
- package/Build/Cesium/Workers/createRectangleOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createSimplePolylineGeometry.js +2 -2
- package/Build/Cesium/Workers/createSphereGeometry.js +2 -2
- package/Build/Cesium/Workers/createSphereOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createTaskProcessorWorker.js +2 -2
- package/Build/Cesium/Workers/createVectorTileClampedPolylines.js +2 -2
- package/Build/Cesium/Workers/createVectorTileGeometries.js +2 -2
- package/Build/Cesium/Workers/createVectorTilePoints.js +2 -2
- package/Build/Cesium/Workers/createVectorTilePolygons.js +2 -2
- package/Build/Cesium/Workers/createVectorTilePolylines.js +2 -2
- package/Build/Cesium/Workers/createVerticesFromCesium3DTilesTerrain.js +26 -0
- package/Build/Cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +2 -2
- package/Build/Cesium/Workers/createVerticesFromHeightmap.js +2 -2
- package/Build/Cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +2 -2
- package/Build/Cesium/Workers/createWallGeometry.js +2 -2
- package/Build/Cesium/Workers/createWallOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/decodeDraco.js +2 -2
- package/Build/Cesium/Workers/decodeGoogleEarthEnterprisePacket.js +2 -2
- package/Build/Cesium/Workers/decodeI3S.js +2 -2
- package/Build/Cesium/Workers/gaussianSplatSorter.js +2 -2
- package/Build/Cesium/Workers/gaussianSplatTextureGenerator.js +2 -2
- package/Build/Cesium/Workers/transcodeKTX2.js +19 -19
- package/Build/Cesium/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Cesium/Workers/upsampleQuantizedTerrainMesh.js +2 -2
- package/Build/Cesium/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +26 -0
- package/Build/Cesium/index.cjs +6188 -5994
- package/Build/Cesium/index.js +6170 -5976
- package/package.json +1 -1
- package/Build/Cesium/Workers/chunk-47HYUV57.js +0 -26
- package/Build/Cesium/Workers/chunk-6RNUBE7C.js +0 -26
- package/Build/Cesium/Workers/chunk-CC7D3NRR.js +0 -26
- package/Build/Cesium/Workers/chunk-HL5XQX3U.js +0 -26
package/Build/Cesium/Cesium.d.ts
CHANGED
|
@@ -894,7 +894,7 @@ const index = Cesium.binarySearch(numbers, 6, comparator); // 3
|
|
|
894
894
|
of the index before which the itemToFind should be inserted in order to maintain the
|
|
895
895
|
sorted order of the array.
|
|
896
896
|
*/
|
|
897
|
-
export function binarySearch(array: any[], itemToFind: any, comparator: binarySearchComparator): number;
|
|
897
|
+
export function binarySearch(array: any[] | Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array, itemToFind: any, comparator: binarySearchComparator): number;
|
|
898
898
|
|
|
899
899
|
/**
|
|
900
900
|
* A function used to compare two items while performing a binary search.
|
|
@@ -2865,6 +2865,234 @@ export class CatmullRomSpline {
|
|
|
2865
2865
|
evaluate(time: number, result?: Cartesian3): Cartesian3;
|
|
2866
2866
|
}
|
|
2867
2867
|
|
|
2868
|
+
/**
|
|
2869
|
+
* Terrain data for a single tile where the terrain data is represented as a glb (binary glTF).
|
|
2870
|
+
* @param options - Object with the following properties:
|
|
2871
|
+
* @param options.gltf - The parsed glTF JSON.
|
|
2872
|
+
* @param options.minimumHeight - The minimum terrain height within the tile, in meters above the ellipsoid.
|
|
2873
|
+
* @param options.maximumHeight - The maximum terrain height within the tile, in meters above the ellipsoid.
|
|
2874
|
+
* @param options.boundingSphere - A sphere bounding all of the vertices in the mesh.
|
|
2875
|
+
* @param options.orientedBoundingBox - An oriented bounding box containing all of the vertices in the mesh.
|
|
2876
|
+
* @param options.horizonOcclusionPoint - The horizon occlusion point of the mesh. If this point
|
|
2877
|
+
is below the horizon, the entire tile is assumed to be below the horizon as well.
|
|
2878
|
+
The point is expressed in ellipsoid-scaled coordinates.
|
|
2879
|
+
* @param options.skirtHeight - The height of the skirt to add on the edges of the tile.
|
|
2880
|
+
* @param [options.requestVertexNormals = false] - Indicates whether normals should be loaded.
|
|
2881
|
+
* @param [options.requestWaterMask = false] - Indicates whether water mask data should be loaded.
|
|
2882
|
+
* @param [options.credits] - Array of credits for this tile.
|
|
2883
|
+
* @param [options.childTileMask = 15] - A bit mask indicating which of this tile's four children exist.
|
|
2884
|
+
If a child's bit is set, geometry will be requested for that tile as well when it
|
|
2885
|
+
is needed. If the bit is cleared, the child tile is not requested and geometry is
|
|
2886
|
+
instead upsampled from the parent. The bit values are as follows:
|
|
2887
|
+
<table>
|
|
2888
|
+
<tr><th>Bit Position</th><th>Bit Value</th><th>Child Tile</th></tr>
|
|
2889
|
+
<tr><td>0</td><td>1</td><td>Southwest</td></tr>
|
|
2890
|
+
<tr><td>1</td><td>2</td><td>Southeast</td></tr>
|
|
2891
|
+
<tr><td>2</td><td>4</td><td>Northwest</td></tr>
|
|
2892
|
+
<tr><td>3</td><td>8</td><td>Northeast</td></tr>
|
|
2893
|
+
</table>
|
|
2894
|
+
* @param [options.waterMask] - The buffer containing the water mask.
|
|
2895
|
+
*/
|
|
2896
|
+
export class Cesium3DTilesTerrainData {
|
|
2897
|
+
constructor(options: {
|
|
2898
|
+
gltf: {
|
|
2899
|
+
[key: string]: any;
|
|
2900
|
+
};
|
|
2901
|
+
minimumHeight: number;
|
|
2902
|
+
maximumHeight: number;
|
|
2903
|
+
boundingSphere: BoundingSphere;
|
|
2904
|
+
orientedBoundingBox: OrientedBoundingBox;
|
|
2905
|
+
horizonOcclusionPoint: Cartesian3;
|
|
2906
|
+
skirtHeight: number;
|
|
2907
|
+
requestVertexNormals?: boolean;
|
|
2908
|
+
requestWaterMask?: boolean;
|
|
2909
|
+
credits?: Credit[];
|
|
2910
|
+
childTileMask?: number;
|
|
2911
|
+
waterMask?: Uint8Array;
|
|
2912
|
+
});
|
|
2913
|
+
/**
|
|
2914
|
+
* An array of credits for this tile.
|
|
2915
|
+
*/
|
|
2916
|
+
credits: Credit[] | undefined;
|
|
2917
|
+
/**
|
|
2918
|
+
* The water mask included in this terrain data, if any. A water mask is a rectangular
|
|
2919
|
+
Uint8Array or image where a value of 255 indicates water and a value of 0 indicates land.
|
|
2920
|
+
Values in between 0 and 255 are allowed as well to smoothly blend between land and water.
|
|
2921
|
+
*/
|
|
2922
|
+
waterMask: Uint8Array | HTMLImageElement | HTMLCanvasElement | ImageBitmap | undefined;
|
|
2923
|
+
/**
|
|
2924
|
+
* Returns the terrain height at a specified longitude and latitude, or undefined if the mesh is undefined.
|
|
2925
|
+
* @param rectangle - The rectangle covered by this terrain data.
|
|
2926
|
+
* @param longitude - The longitude in radians.
|
|
2927
|
+
* @param latitude - The latitude in radians.
|
|
2928
|
+
* @returns The terrain height at the specified position, or undefined if the mesh is undefined.
|
|
2929
|
+
If the position is outside the rectangle, this method will extrapolate the height,
|
|
2930
|
+
which is likely to be wildly incorrect for positions far outside the rectangle.
|
|
2931
|
+
*/
|
|
2932
|
+
interpolateHeight(rectangle: Rectangle, longitude: number, latitude: number): number | undefined;
|
|
2933
|
+
/**
|
|
2934
|
+
* Determines if a given child tile is available, based on the
|
|
2935
|
+
{@link TerrainData#childTileMask}. The given child tile coordinates are assumed
|
|
2936
|
+
to be one of the four children of this tile. If non-child tile coordinates are
|
|
2937
|
+
given, the availability of the southeast child tile is returned.
|
|
2938
|
+
* @param thisX - The tile X coordinate of this (the parent) tile.
|
|
2939
|
+
* @param thisY - The tile Y coordinate of this (the parent) tile.
|
|
2940
|
+
* @param childX - The tile X coordinate of the child tile to check for availability.
|
|
2941
|
+
* @param childY - The tile Y coordinate of the child tile to check for availability.
|
|
2942
|
+
* @returns True if the child tile is available; otherwise, false.
|
|
2943
|
+
*/
|
|
2944
|
+
isChildAvailable(thisX: number, thisY: number, childX: number, childY: number): boolean;
|
|
2945
|
+
/**
|
|
2946
|
+
* Upsamples this terrain data for use by a descendant tile.
|
|
2947
|
+
* @param tilingScheme - The tiling scheme of this terrain data.
|
|
2948
|
+
* @param thisX - The X coordinate of this tile in the tiling scheme.
|
|
2949
|
+
* @param thisY - The Y coordinate of this tile in the tiling scheme.
|
|
2950
|
+
* @param thisLevel - The level of this tile in the tiling scheme.
|
|
2951
|
+
* @param descendantX - The X coordinate within the tiling scheme of the descendant tile for which we are upsampling.
|
|
2952
|
+
* @param descendantY - The Y coordinate within the tiling scheme of the descendant tile for which we are upsampling.
|
|
2953
|
+
* @param descendantLevel - The level within the tiling scheme of the descendant tile for which we are upsampling.
|
|
2954
|
+
* @returns A promise for upsampled terrain data for the descendant tile, or undefined if createMesh has not been called yet or too many asynchronous upsample operations are in progress and the request has been deferred.
|
|
2955
|
+
*/
|
|
2956
|
+
upsample(tilingScheme: TilingScheme, thisX: number, thisY: number, thisLevel: number, descendantX: number, descendantY: number, descendantLevel: number): Promise<TerrainData> | undefined;
|
|
2957
|
+
/**
|
|
2958
|
+
* Gets a value indicating whether or not this terrain data was created by upsampling lower resolution
|
|
2959
|
+
terrain data. If this value is false, the data was obtained from some other source, such
|
|
2960
|
+
as by downloading it from a remote server. This method should return true for instances
|
|
2961
|
+
returned from a call to {@link Cesium3DTilesTerrainData#upsample}.
|
|
2962
|
+
* @returns True if this instance was created by upsampling; otherwise, false.
|
|
2963
|
+
*/
|
|
2964
|
+
wasCreatedByUpsampling(): boolean;
|
|
2965
|
+
}
|
|
2966
|
+
|
|
2967
|
+
export namespace Cesium3DTilesTerrainProvider {
|
|
2968
|
+
/**
|
|
2969
|
+
* Initialization options for the Cesium3DTilesTerrainProvider constructor
|
|
2970
|
+
* @property [requestVertexNormals = false] - Flag that indicates if the client should request additional lighting information from the server, in the form of per vertex normals if available.
|
|
2971
|
+
* @property [requestWaterMask = false] - Flag that indicates if the client should request per tile water masks from the server, if available.
|
|
2972
|
+
* @property [ellipsoid = Ellipsoid.default] - The ellipsoid. If not specified, the WGS84 ellipsoid is used.
|
|
2973
|
+
* @property [credit] - A credit for the data source, which is displayed on the canvas.
|
|
2974
|
+
*/
|
|
2975
|
+
type ConstructorOptions = {
|
|
2976
|
+
requestVertexNormals?: boolean;
|
|
2977
|
+
requestWaterMask?: boolean;
|
|
2978
|
+
ellipsoid?: Ellipsoid;
|
|
2979
|
+
credit?: Credit | string;
|
|
2980
|
+
};
|
|
2981
|
+
}
|
|
2982
|
+
|
|
2983
|
+
/**
|
|
2984
|
+
* <div class="notice">
|
|
2985
|
+
To construct a Cesium3DTilesTerrainProvider, call {@link Cesium3DTilesTerrainProvider.fromIonAssetId} or {@link Cesium3DTilesTerrainProvider.fromUrl}. Do not call the constructor directly.
|
|
2986
|
+
</div>
|
|
2987
|
+
|
|
2988
|
+
A {@link TerrainProvider} that accesses terrain data in a 3D Tiles format.
|
|
2989
|
+
* @param [options] - An object describing initialization options
|
|
2990
|
+
*/
|
|
2991
|
+
export class Cesium3DTilesTerrainProvider {
|
|
2992
|
+
constructor(options?: Cesium3DTilesTerrainProvider.ConstructorOptions);
|
|
2993
|
+
/**
|
|
2994
|
+
* Creates a {@link TerrainProvider} that accesses terrain data in a Cesium 3D Tiles format.
|
|
2995
|
+
* @example
|
|
2996
|
+
* // Create terrain with normals.
|
|
2997
|
+
try {
|
|
2998
|
+
const viewer = new Cesium.Viewer("cesiumContainer", {
|
|
2999
|
+
terrainProvider: await Cesium.Cesium3DTilesTerrainProvider.fromUrl(
|
|
3000
|
+
Cesium.IonResource.fromAssetId(3956), {
|
|
3001
|
+
requestVertexNormals: true
|
|
3002
|
+
})
|
|
3003
|
+
});
|
|
3004
|
+
} catch (error) {
|
|
3005
|
+
console.log(error);
|
|
3006
|
+
}
|
|
3007
|
+
* @param url - The URL of the Cesium terrain server.
|
|
3008
|
+
* @param [options] - An object describing initialization options.
|
|
3009
|
+
* @returns A promise that resolves to the terrain provider.
|
|
3010
|
+
*/
|
|
3011
|
+
static fromUrl(url: Resource | string | Promise<Resource> | Promise<string>, options?: Cesium3DTilesTerrainProvider.ConstructorOptions): Promise<Cesium3DTilesTerrainProvider>;
|
|
3012
|
+
/**
|
|
3013
|
+
* Creates a {@link TerrainProvider} from a Cesium ion asset ID that accesses terrain data in a Cesium 3D Tiles format
|
|
3014
|
+
* @example
|
|
3015
|
+
* // Create GTOPO30 with vertex normals
|
|
3016
|
+
try {
|
|
3017
|
+
const viewer = new Cesium.Viewer("cesiumContainer", {
|
|
3018
|
+
terrainProvider: await Cesium.Cesium3DTilesTerrainProvider.fromIonAssetId(2732686, {
|
|
3019
|
+
requestVertexNormals: true
|
|
3020
|
+
})
|
|
3021
|
+
});
|
|
3022
|
+
} catch (error) {
|
|
3023
|
+
console.log(error);
|
|
3024
|
+
}
|
|
3025
|
+
* @param assetId - The Cesium ion asset id.
|
|
3026
|
+
* @param [options] - An object describing initialization options.
|
|
3027
|
+
*/
|
|
3028
|
+
static fromIonAssetId(assetId: number, options?: CesiumTerrainProvider.ConstructorOptions): Promise<CesiumTerrainProvider>;
|
|
3029
|
+
/**
|
|
3030
|
+
* Requests the geometry for a given tile. This function should not be called before
|
|
3031
|
+
{@link Cesium3DTilesTerrainProvider#ready} returns true. The result must include terrain data and
|
|
3032
|
+
may optionally include a water mask and an indication of which child tiles are available.
|
|
3033
|
+
* @param x - The X coordinate of the tile for which to request geometry.
|
|
3034
|
+
* @param y - The Y coordinate of the tile for which to request geometry.
|
|
3035
|
+
* @param level - The level of the tile for which to request geometry.
|
|
3036
|
+
* @param [request] - The request object. Intended for internal use only.
|
|
3037
|
+
* @returns A promise for the requested geometry. If this method
|
|
3038
|
+
returns undefined instead of a promise, it is an indication that too many requests are already
|
|
3039
|
+
pending and the request will be retried later.
|
|
3040
|
+
*/
|
|
3041
|
+
requestTileGeometry(x: number, y: number, level: number, request?: Request): Promise<Cesium3DTilesTerrainData> | undefined;
|
|
3042
|
+
/**
|
|
3043
|
+
* Determines whether data for a tile is available to be loaded.
|
|
3044
|
+
* @param x - The X coordinate of the tile for which to request geometry.
|
|
3045
|
+
* @param y - The Y coordinate of the tile for which to request geometry.
|
|
3046
|
+
* @param level - The level of the tile for which to request geometry.
|
|
3047
|
+
* @returns Undefined if not supported or availability is unknown, otherwise true or false.
|
|
3048
|
+
*/
|
|
3049
|
+
getTileDataAvailable(x: number, y: number, level: number): boolean | undefined;
|
|
3050
|
+
/**
|
|
3051
|
+
* Make sure we load availability data for a tile
|
|
3052
|
+
* @param _x - The X coordinate of the tile for which to request geometry.
|
|
3053
|
+
* @param _y - The Y coordinate of the tile for which to request geometry.
|
|
3054
|
+
* @param _level - The level of the tile for which to request geometry.
|
|
3055
|
+
* @returns Undefined if nothing need to be loaded or a Promise that resolves when all required tiles are loaded
|
|
3056
|
+
*/
|
|
3057
|
+
loadTileDataAvailability(_x: number, _y: number, _level: number): Promise<void> | undefined;
|
|
3058
|
+
/**
|
|
3059
|
+
* Get the maximum geometric error allowed in a tile at a given level.
|
|
3060
|
+
* @param level - The tile level for which to get the maximum geometric error.
|
|
3061
|
+
* @returns The maximum geometric error.
|
|
3062
|
+
*/
|
|
3063
|
+
getLevelMaximumGeometricError(level: number): number;
|
|
3064
|
+
/**
|
|
3065
|
+
* Gets an event that is raised when the terrain provider encounters an asynchronous error. By subscribing
|
|
3066
|
+
to the event, you will be notified of the error and can potentially recover from it. Event listeners
|
|
3067
|
+
are passed an instance of {@link TileProviderError}.
|
|
3068
|
+
*/
|
|
3069
|
+
errorEvent: Event;
|
|
3070
|
+
/**
|
|
3071
|
+
* Gets the credit to display when this terrain provider is active. Typically this is used to credit
|
|
3072
|
+
the source of the terrain.
|
|
3073
|
+
*/
|
|
3074
|
+
credit: Credit;
|
|
3075
|
+
/**
|
|
3076
|
+
* Gets the tiling scheme used by the provider.
|
|
3077
|
+
*/
|
|
3078
|
+
tilingScheme: TilingScheme;
|
|
3079
|
+
/**
|
|
3080
|
+
* Gets a value indicating whether or not the provider includes a water mask. The water mask
|
|
3081
|
+
indicates which areas of the globe are water rather than land, so they can be rendered
|
|
3082
|
+
as a reflective surface with animated waves.
|
|
3083
|
+
*/
|
|
3084
|
+
hasWaterMask: boolean;
|
|
3085
|
+
/**
|
|
3086
|
+
* Gets a value indicating whether or not the requested tiles include vertex normals.
|
|
3087
|
+
*/
|
|
3088
|
+
hasVertexNormals: boolean;
|
|
3089
|
+
/**
|
|
3090
|
+
* Gets an object that can be used to determine availability of terrain from this provider, such as
|
|
3091
|
+
at points and in rectangles.
|
|
3092
|
+
*/
|
|
3093
|
+
availability: TileAvailability | undefined;
|
|
3094
|
+
}
|
|
3095
|
+
|
|
2868
3096
|
export namespace CesiumTerrainProvider {
|
|
2869
3097
|
/**
|
|
2870
3098
|
* Initialization options for the CesiumTerrainProvider constructor
|
|
@@ -3675,6 +3903,12 @@ export class Color {
|
|
|
3675
3903
|
* @returns The modified result parameter or a new instance if result was undefined.
|
|
3676
3904
|
*/
|
|
3677
3905
|
toBytes(result?: number[]): number[];
|
|
3906
|
+
/**
|
|
3907
|
+
* Converts RGBA values in bytes to a single numeric unsigned 32-bit RGBA value, using the endianness
|
|
3908
|
+
of the system.
|
|
3909
|
+
* @returns A single numeric unsigned 32-bit RGBA value.
|
|
3910
|
+
*/
|
|
3911
|
+
static bytesToRgba(): number;
|
|
3678
3912
|
/**
|
|
3679
3913
|
* Converts this color to a single numeric unsigned 32-bit RGBA value, using the endianness
|
|
3680
3914
|
of the system.
|
|
@@ -7900,7 +8134,7 @@ export class GoogleEarthEnterpriseTerrainData {
|
|
|
7900
8134
|
upsample(tilingScheme: TilingScheme, thisX: number, thisY: number, thisLevel: number, descendantX: number, descendantY: number, descendantLevel: number): Promise<HeightmapTerrainData> | undefined;
|
|
7901
8135
|
/**
|
|
7902
8136
|
* Determines if a given child tile is available, based on the
|
|
7903
|
-
{@link
|
|
8137
|
+
{@link GoogleEarthEnterpriseTerrainData.childTileMask}. The given child tile coordinates are assumed
|
|
7904
8138
|
to be one of the four children of this tile. If non-child tile coordinates are
|
|
7905
8139
|
given, the availability of the southeast child tile is returned.
|
|
7906
8140
|
* @param thisX - The tile X coordinate of this (the parent) tile.
|
|
@@ -8413,7 +8647,7 @@ export class HeightmapTerrainData {
|
|
|
8413
8647
|
Uint8Array or image where a value of 255 indicates water and a value of 0 indicates land.
|
|
8414
8648
|
Values in between 0 and 255 are allowed as well to smoothly blend between land and water.
|
|
8415
8649
|
*/
|
|
8416
|
-
waterMask: Uint8Array | HTMLImageElement | HTMLCanvasElement | undefined;
|
|
8650
|
+
waterMask: Uint8Array | HTMLImageElement | HTMLCanvasElement | ImageBitmap | undefined;
|
|
8417
8651
|
/**
|
|
8418
8652
|
* Computes the terrain height at a specified longitude and latitude.
|
|
8419
8653
|
* @param rectangle - The rectangle covered by this terrain data.
|
|
@@ -9061,7 +9295,7 @@ export class IonGeocoderService {
|
|
|
9061
9295
|
* A {@link Resource} instance that encapsulates Cesium ion asset access.
|
|
9062
9296
|
This object is normally not instantiated directly, use {@link IonResource.fromAssetId}.
|
|
9063
9297
|
* @param endpoint - The result of the Cesium ion asset endpoint service.
|
|
9064
|
-
* @param endpointResource - The resource used to retrieve the endpoint.
|
|
9298
|
+
* @param endpointResource - The original resource used to retrieve the endpoint.
|
|
9065
9299
|
*/
|
|
9066
9300
|
export class IonResource extends Resource {
|
|
9067
9301
|
constructor(endpoint: any, endpointResource: Resource);
|
|
@@ -11890,7 +12124,7 @@ Cesium.mergeSort(array, function(a, b, position) {
|
|
|
11890
12124
|
* @param comparator - The function to use to compare elements in the array.
|
|
11891
12125
|
* @param [userDefinedObject] - Any item to pass as the third parameter to <code>comparator</code>.
|
|
11892
12126
|
*/
|
|
11893
|
-
export function mergeSort(array: any[], comparator: mergeSortComparator, userDefinedObject?: any): void;
|
|
12127
|
+
export function mergeSort(array: any[] | Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array, comparator: mergeSortComparator, userDefinedObject?: any): void;
|
|
11894
12128
|
|
|
11895
12129
|
/**
|
|
11896
12130
|
* A function used to compare two items while performing a merge sort.
|
|
@@ -16912,7 +17146,7 @@ export class TerrainData {
|
|
|
16912
17146
|
Uint8Array or image where a value of 255 indicates water and a value of 0 indicates land.
|
|
16913
17147
|
Values in between 0 and 255 are allowed as well to smoothly blend between land and water.
|
|
16914
17148
|
*/
|
|
16915
|
-
waterMask: Uint8Array | HTMLImageElement | HTMLCanvasElement | undefined;
|
|
17149
|
+
waterMask: Uint8Array | HTMLImageElement | HTMLCanvasElement | ImageBitmap | undefined;
|
|
16916
17150
|
/**
|
|
16917
17151
|
* Computes the terrain height at a specified longitude and latitude.
|
|
16918
17152
|
* @param rectangle - The rectangle covered by this terrain data.
|
|
@@ -25642,6 +25876,8 @@ export type WebGLOptions = {
|
|
|
25642
25876
|
failIfMajorPerformanceCaveat?: boolean;
|
|
25643
25877
|
};
|
|
25644
25878
|
|
|
25879
|
+
export function PickId(pickObjects: Map<number, object>, key: number, color: Color): void;
|
|
25880
|
+
|
|
25645
25881
|
/**
|
|
25646
25882
|
* The data type of a pixel.
|
|
25647
25883
|
*/
|
|
@@ -39941,6 +40177,21 @@ export type PickedMetadataInfo = {
|
|
|
39941
40177
|
classProperty: MetadataClassProperty;
|
|
39942
40178
|
};
|
|
39943
40179
|
|
|
40180
|
+
/**
|
|
40181
|
+
* @param pickedResults - the results from the pickCallback
|
|
40182
|
+
* @param limit - If supplied, stop drilling after collecting this many picks.
|
|
40183
|
+
* @returns whether picking should end
|
|
40184
|
+
*/
|
|
40185
|
+
export function addDrillPickedResults(pickedResults: object[], limit: number, results: object[], pickedPrimitives: object[], pickedAttributes: object[], pickedFeatures: object[]): boolean;
|
|
40186
|
+
|
|
40187
|
+
/**
|
|
40188
|
+
* Drill pick by repeatedly calling a given `pickCallback`, each time stripping away the previously picked objects.
|
|
40189
|
+
* @param pickCallback - Pick callback to execute each iteration
|
|
40190
|
+
* @param [limit = Number.MAX_VALUE] - If supplied, stop drilling after collecting this many picks
|
|
40191
|
+
* @returns List of picked results
|
|
40192
|
+
*/
|
|
40193
|
+
export function drillPick(pickCallback: (...params: any[]) => any, limit?: number): object[];
|
|
40194
|
+
|
|
39944
40195
|
/**
|
|
39945
40196
|
* Remove all invalid binary body references from the batch table
|
|
39946
40197
|
JSON of the given parsed content.
|
|
@@ -42081,6 +42332,12 @@ export class Scene {
|
|
|
42081
42332
|
* The light source for shading. Defaults to a directional light from the Sun.
|
|
42082
42333
|
*/
|
|
42083
42334
|
light: Light;
|
|
42335
|
+
/**
|
|
42336
|
+
* Whether or not to enable edge visibility rendering for 3D tiles.
|
|
42337
|
+
When enabled, creates a framebuffer with multiple render targets
|
|
42338
|
+
for advanced edge detection and visibility techniques.
|
|
42339
|
+
*/
|
|
42340
|
+
_enableEdgeVisibility: boolean;
|
|
42084
42341
|
/**
|
|
42085
42342
|
* Use this to set the default value for {@link Scene#logarithmicDepthBuffer} in newly constructed Scenes
|
|
42086
42343
|
This property relies on fragmentDepth being supported.
|