mars3d-cesium 1.125.1 → 1.125.2
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 +91 -621
- package/Build/Cesium/Cesium.js +5419 -5419
- package/Build/Cesium/README.md +13 -0
- package/Build/Cesium/Workers/{chunk-SVQATCHF.js → chunk-2UZFBSSB.js} +2 -2
- package/Build/Cesium/Workers/{chunk-XLXM5IN5.js → chunk-3HHIRNOO.js} +2 -2
- package/Build/Cesium/Workers/{chunk-F7XJNQKG.js → chunk-46XGUA6R.js} +1 -1
- package/Build/Cesium/Workers/{chunk-BGZOHHAB.js → chunk-6NVYNBOU.js} +2 -2
- package/Build/Cesium/Workers/{chunk-YTKG3EFI.js → chunk-773JEVMF.js} +2 -2
- package/Build/Cesium/Workers/{chunk-TCPL2UQQ.js → chunk-77BVDWDZ.js} +2 -2
- package/Build/Cesium/Workers/{chunk-ZJVGBDEL.js → chunk-7LTNOHIS.js} +2 -2
- package/Build/Cesium/Workers/{chunk-7ECYEMF7.js → chunk-A2ZU6XTS.js} +2 -2
- package/Build/Cesium/Workers/{chunk-ZMSSQLR2.js → chunk-AB6BXW2X.js} +2 -2
- package/Build/Cesium/Workers/{chunk-5BN4XL45.js → chunk-AHXZX5AT.js} +2 -2
- package/Build/Cesium/Workers/{chunk-MAF47YKU.js → chunk-ANEU72JU.js} +2 -2
- package/Build/Cesium/Workers/{chunk-GBVHGTZ7.js → chunk-AUHWAGVO.js} +2 -2
- package/Build/Cesium/Workers/{chunk-BDYXP2QF.js → chunk-BJOJ5NHC.js} +2 -2
- package/Build/Cesium/Workers/{chunk-IIOJRYGY.js → chunk-BPDEHBBZ.js} +2 -2
- package/Build/Cesium/Workers/{chunk-4WBCASTJ.js → chunk-BY4QQZVA.js} +2 -2
- package/Build/Cesium/Workers/{chunk-Y5OPU7UI.js → chunk-C6J3BMVD.js} +2 -2
- package/Build/Cesium/Workers/{chunk-NQTLURKO.js → chunk-CBBLBV3O.js} +2 -2
- package/Build/Cesium/Workers/{chunk-LZZDW4YT.js → chunk-DJBXQ6UE.js} +2 -2
- package/Build/Cesium/Workers/{chunk-DY27RKVJ.js → chunk-F6YWKYMJ.js} +2 -2
- package/Build/Cesium/Workers/{chunk-3Q7HFAXM.js → chunk-GFVUXNPF.js} +2 -2
- package/Build/Cesium/Workers/{chunk-T3LZJ5CN.js → chunk-HDQQWVQZ.js} +2 -2
- package/Build/Cesium/Workers/{chunk-W3BTOZDI.js → chunk-IA263462.js} +1 -1
- package/Build/Cesium/Workers/{chunk-SSIRCWZX.js → chunk-IOALS3FH.js} +2 -2
- package/Build/Cesium/Workers/{chunk-A73BOSSA.js → chunk-ITLAYTGR.js} +2 -2
- package/Build/Cesium/Workers/{chunk-JUFKA5CT.js → chunk-IXVN2NOA.js} +2 -2
- package/Build/Cesium/Workers/{chunk-PA425TYW.js → chunk-JCY2C4IM.js} +2 -2
- package/Build/Cesium/Workers/{chunk-SRRLOWNQ.js → chunk-JV2HHT7Z.js} +1 -1
- package/Build/Cesium/Workers/{chunk-L7XKP4E4.js → chunk-KKLYVGHK.js} +2 -2
- package/Build/Cesium/Workers/{chunk-RWO7U3U4.js → chunk-KNHPTALD.js} +2 -2
- package/Build/Cesium/Workers/{chunk-33SMWJ4M.js → chunk-LUJM6ESA.js} +2 -2
- package/Build/Cesium/Workers/{chunk-W3DF3VH7.js → chunk-MBCMWSCP.js} +2 -2
- package/Build/Cesium/Workers/{chunk-NUEQ7ML6.js → chunk-MKKB3G3L.js} +2 -2
- package/Build/Cesium/Workers/{chunk-KENZMGVN.js → chunk-NEKNC6WA.js} +2 -2
- package/Build/Cesium/Workers/{chunk-E5YZ6SQH.js → chunk-NX5OU6SB.js} +2 -2
- package/Build/Cesium/Workers/{chunk-PSCDC4OD.js → chunk-OR4LTELN.js} +1 -1
- package/Build/Cesium/Workers/{chunk-VFICESPF.js → chunk-OV637V22.js} +2 -2
- package/Build/Cesium/Workers/{chunk-BACU57HL.js → chunk-OZ6FGR4J.js} +1 -1
- package/Build/Cesium/Workers/{chunk-UC366W63.js → chunk-PTLFKAXD.js} +2 -2
- package/Build/Cesium/Workers/{chunk-UNQYLG6A.js → chunk-QWLVE2AT.js} +2 -2
- package/Build/Cesium/Workers/{chunk-2UKB643G.js → chunk-RCJPU2DX.js} +2 -2
- package/Build/Cesium/Workers/{chunk-WPXKYLM3.js → chunk-RL743EKS.js} +2 -2
- package/Build/Cesium/Workers/{chunk-WCLG5YTZ.js → chunk-RZQL5F44.js} +2 -2
- package/Build/Cesium/Workers/{chunk-OJHKQU2O.js → chunk-SKFJ2DRZ.js} +2 -2
- package/Build/Cesium/Workers/{chunk-IMJXI5NR.js → chunk-SNZK3GBW.js} +2 -2
- package/Build/Cesium/Workers/{chunk-BJXRSRRV.js → chunk-URZX3OSH.js} +2 -2
- package/Build/Cesium/Workers/{chunk-IMHDULPO.js → chunk-VTWUN3C4.js} +2 -2
- package/Build/Cesium/Workers/{chunk-BYZQXU6M.js → chunk-W52PIE4Z.js} +2 -2
- package/Build/Cesium/Workers/{chunk-NKNGJ3TE.js → chunk-W6DYP6RP.js} +2 -2
- package/Build/Cesium/Workers/{chunk-FK7TFZU5.js → chunk-XDY4CVDM.js} +2 -2
- package/Build/Cesium/Workers/{chunk-GOLTSWYP.js → chunk-YMZY3BL5.js} +2 -2
- package/Build/Cesium/Workers/{chunk-J2SHZBIV.js → chunk-Z7PETD2R.js} +2 -2
- package/Build/Cesium/Workers/{chunk-T65UROT7.js → chunk-ZQPYQITL.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/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/transcodeKTX2.js +2 -2
- package/Build/Cesium/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Cesium/Workers/upsampleQuantizedTerrainMesh.js +2 -2
- package/Build/Cesium/index.cjs +5418 -5418
- package/Build/Cesium/index.js +5426 -5426
- package/README.md +141 -141
- package/package.json +1 -1
package/Build/Cesium/Cesium.d.ts
CHANGED
|
@@ -1304,7 +1304,7 @@ export class BoundingSphere {
|
|
|
1304
1304
|
static projectTo2D(sphere: BoundingSphere, projection?: any, result?: BoundingSphere): BoundingSphere;
|
|
1305
1305
|
/**
|
|
1306
1306
|
* Determines whether or not a sphere is hidden from view by the occluder.
|
|
1307
|
-
* @param sphere - The bounding sphere surrounding the
|
|
1307
|
+
* @param sphere - The bounding sphere surrounding the occludee object.
|
|
1308
1308
|
* @param occluder - The occluder.
|
|
1309
1309
|
* @returns <code>true</code> if the sphere is not visible; otherwise <code>false</code>.
|
|
1310
1310
|
*/
|
|
@@ -3174,7 +3174,6 @@ export const Check: {
|
|
|
3174
3174
|
};
|
|
3175
3175
|
};
|
|
3176
3176
|
};
|
|
3177
|
-
|
|
3178
3177
|
|
|
3179
3178
|
|
|
3180
3179
|
/**
|
|
@@ -3626,11 +3625,11 @@ export class Color {
|
|
|
3626
3625
|
static clone(color: Color, result?: Color): Color;
|
|
3627
3626
|
/**
|
|
3628
3627
|
* Returns true if the first Color equals the second color.
|
|
3629
|
-
* @param
|
|
3630
|
-
* @param
|
|
3628
|
+
* @param left - The first Color to compare for equality.
|
|
3629
|
+
* @param right - The second Color to compare for equality.
|
|
3631
3630
|
* @returns <code>true</code> if the Colors are equal; otherwise, <code>false</code>.
|
|
3632
3631
|
*/
|
|
3633
|
-
static equals(left
|
|
3632
|
+
static equals(left: Color, right: Color): boolean;
|
|
3634
3633
|
/**
|
|
3635
3634
|
* Returns a duplicate of a Color instance.
|
|
3636
3635
|
* @param [result] - The object to store the result in, if undefined a new instance will be created.
|
|
@@ -3639,10 +3638,10 @@ export class Color {
|
|
|
3639
3638
|
clone(result?: Color): Color;
|
|
3640
3639
|
/**
|
|
3641
3640
|
* Returns true if this Color equals other.
|
|
3642
|
-
* @param
|
|
3641
|
+
* @param other - The Color to compare for equality.
|
|
3643
3642
|
* @returns <code>true</code> if the Colors are equal; otherwise, <code>false</code>.
|
|
3644
3643
|
*/
|
|
3645
|
-
equals(other
|
|
3644
|
+
equals(other: Color): boolean;
|
|
3646
3645
|
/**
|
|
3647
3646
|
* Returns <code>true</code> if this Color equals other componentwise within the specified epsilon.
|
|
3648
3647
|
* @param other - The Color to compare for equality.
|
|
@@ -5135,17 +5134,17 @@ export class Credit {
|
|
|
5135
5134
|
readonly element: HTMLElement;
|
|
5136
5135
|
/**
|
|
5137
5136
|
* Returns true if the credits are equal
|
|
5138
|
-
* @param
|
|
5139
|
-
* @param
|
|
5137
|
+
* @param left - The first credit
|
|
5138
|
+
* @param right - The second credit
|
|
5140
5139
|
* @returns <code>true</code> if left and right are equal, <code>false</code> otherwise.
|
|
5141
5140
|
*/
|
|
5142
|
-
static equals(left
|
|
5141
|
+
static equals(left: Credit, right: Credit): boolean;
|
|
5143
5142
|
/**
|
|
5144
5143
|
* Returns true if the credits are equal
|
|
5145
|
-
* @param
|
|
5144
|
+
* @param credit - The credit to compare to.
|
|
5146
5145
|
* @returns <code>true</code> if left and right are equal, <code>false</code> otherwise.
|
|
5147
5146
|
*/
|
|
5148
|
-
equals(credit
|
|
5147
|
+
equals(credit: Credit): boolean;
|
|
5149
5148
|
/**
|
|
5150
5149
|
* Duplicates a Credit instance.
|
|
5151
5150
|
* @param [credit] - The Credit to duplicate.
|
|
@@ -5473,9 +5472,7 @@ export function defaultValue(a: any, b: any): any;
|
|
|
5473
5472
|
* @param value - The object.
|
|
5474
5473
|
* @returns Returns true if the object is defined, returns false otherwise.
|
|
5475
5474
|
*/
|
|
5476
|
-
|
|
5477
|
-
export function defined<Type>(value: Type): value is NonNullable<Type>;
|
|
5478
|
-
|
|
5475
|
+
export function defined<Type>(value: Type): value is NonNullable<Type>;
|
|
5479
5476
|
|
|
5480
5477
|
/**
|
|
5481
5478
|
* Destroys an object. Each of the object's functions, including functions in its prototype,
|
|
@@ -5566,11 +5563,11 @@ export class DistanceDisplayCondition {
|
|
|
5566
5563
|
static unpack(array: number[], startingIndex?: number, result?: DistanceDisplayCondition): DistanceDisplayCondition;
|
|
5567
5564
|
/**
|
|
5568
5565
|
* Determines if two distance display conditions are equal.
|
|
5569
|
-
* @param
|
|
5570
|
-
* @param
|
|
5566
|
+
* @param left - A distance display condition.
|
|
5567
|
+
* @param right - Another distance display condition.
|
|
5571
5568
|
* @returns Whether the two distance display conditions are equal.
|
|
5572
5569
|
*/
|
|
5573
|
-
static equals(left
|
|
5570
|
+
static equals(left: DistanceDisplayCondition, right: DistanceDisplayCondition): boolean;
|
|
5574
5571
|
/**
|
|
5575
5572
|
* Duplicates a distance display condition instance.
|
|
5576
5573
|
* @param [value] - The distance display condition to duplicate.
|
|
@@ -5586,10 +5583,10 @@ export class DistanceDisplayCondition {
|
|
|
5586
5583
|
clone(result?: DistanceDisplayCondition): DistanceDisplayCondition;
|
|
5587
5584
|
/**
|
|
5588
5585
|
* Determines if this distance display condition is equal to another.
|
|
5589
|
-
* @param
|
|
5586
|
+
* @param other - Another distance display condition.
|
|
5590
5587
|
* @returns Whether this distance display condition is equal to the other.
|
|
5591
5588
|
*/
|
|
5592
|
-
equals(other
|
|
5589
|
+
equals(other: DistanceDisplayCondition): boolean;
|
|
5593
5590
|
}
|
|
5594
5591
|
|
|
5595
5592
|
/**
|
|
@@ -6250,7 +6247,7 @@ export class EllipsoidGeodesic {
|
|
|
6250
6247
|
interpolateUsingFraction(fraction: number, result?: Cartographic): Cartographic;
|
|
6251
6248
|
/**
|
|
6252
6249
|
* Provides the location of a point at the indicated distance along the geodesic.
|
|
6253
|
-
* @param distance - The distance from the
|
|
6250
|
+
* @param distance - The distance from the inital point to the point of interest along the geodesic
|
|
6254
6251
|
* @param [result] - The object in which to store the result.
|
|
6255
6252
|
* @returns The location of the point along the geodesic.
|
|
6256
6253
|
*/
|
|
@@ -8013,27 +8010,6 @@ export class GoogleEarthEnterpriseTerrainProvider {
|
|
|
8013
8010
|
loadTileDataAvailability(x: number, y: number, level: number): undefined;
|
|
8014
8011
|
}
|
|
8015
8012
|
|
|
8016
|
-
/**
|
|
8017
|
-
* Provides geocoding through Google.
|
|
8018
|
-
* @param options - Object with the following properties:
|
|
8019
|
-
* @param options.key - An API key to use with the Google geocoding service
|
|
8020
|
-
*/
|
|
8021
|
-
export class GoogleGeocoderService {
|
|
8022
|
-
constructor(options: {
|
|
8023
|
-
key: string;
|
|
8024
|
-
});
|
|
8025
|
-
/**
|
|
8026
|
-
* Gets the credit to display after a geocode is performed. Typically this is used to credit
|
|
8027
|
-
the geocoder service.
|
|
8028
|
-
*/
|
|
8029
|
-
readonly credit: Credit | undefined;
|
|
8030
|
-
/**
|
|
8031
|
-
* Get a list of possible locations that match a search string.
|
|
8032
|
-
* @param query - The query to be sent to the geocoder service
|
|
8033
|
-
*/
|
|
8034
|
-
geocode(query: string): Promise<GeocoderService.Result[]>;
|
|
8035
|
-
}
|
|
8036
|
-
|
|
8037
8013
|
/**
|
|
8038
8014
|
* Default settings for accessing the Google Maps API.
|
|
8039
8015
|
<br/>
|
|
@@ -8992,49 +8968,24 @@ export namespace Ion {
|
|
|
8992
8968
|
var defaultServer: string | Resource;
|
|
8993
8969
|
}
|
|
8994
8970
|
|
|
8995
|
-
/**
|
|
8996
|
-
* Underlying geocoding services that can be used via Cesium ion.
|
|
8997
|
-
*/
|
|
8998
|
-
export enum IonGeocodeProviderType {
|
|
8999
|
-
/**
|
|
9000
|
-
* Google geocoder, for use with Google data.
|
|
9001
|
-
*/
|
|
9002
|
-
GOOGLE = "GOOGLE",
|
|
9003
|
-
/**
|
|
9004
|
-
* Bing geocoder, for use with Bing data.
|
|
9005
|
-
*/
|
|
9006
|
-
BING = "BING",
|
|
9007
|
-
/**
|
|
9008
|
-
* Use the default geocoder as set on the server. Used when neither Bing or
|
|
9009
|
-
Google data is used.
|
|
9010
|
-
*/
|
|
9011
|
-
DEFAULT = "DEFAULT"
|
|
9012
|
-
}
|
|
9013
|
-
|
|
9014
8971
|
/**
|
|
9015
8972
|
* Provides geocoding through Cesium ion.
|
|
9016
8973
|
* @param options - Object with the following properties:
|
|
9017
8974
|
* @param options.scene - The scene
|
|
9018
8975
|
* @param [options.accessToken = Ion.defaultAccessToken] - The access token to use.
|
|
9019
8976
|
* @param [options.server = Ion.defaultServer] - The resource to the Cesium ion API server.
|
|
9020
|
-
* @param [options.geocodeProviderType = IonGeocodeProviderType.DEFAULT] - The geocoder the Cesium ion API server should use to fulfill this request.
|
|
9021
8977
|
*/
|
|
9022
8978
|
export class IonGeocoderService {
|
|
9023
8979
|
constructor(options: {
|
|
9024
8980
|
scene: Scene;
|
|
9025
8981
|
accessToken?: string;
|
|
9026
8982
|
server?: string | Resource;
|
|
9027
|
-
geocodeProviderType?: IonGeocodeProviderType;
|
|
9028
8983
|
});
|
|
9029
8984
|
/**
|
|
9030
8985
|
* Gets the credit to display after a geocode is performed. Typically this is used to credit
|
|
9031
8986
|
the geocoder service.
|
|
9032
8987
|
*/
|
|
9033
8988
|
readonly credit: Credit | undefined;
|
|
9034
|
-
/**
|
|
9035
|
-
* The geocoding service that Cesium ion API server should use to fulfill geocding requests.
|
|
9036
|
-
*/
|
|
9037
|
-
geocodeProviderType: IonGeocodeProviderType;
|
|
9038
8989
|
/**
|
|
9039
8990
|
* @param query - The query to be sent to the geocoder service
|
|
9040
8991
|
* @param [type = GeocodeType.SEARCH] - The type of geocode to perform.
|
|
@@ -9148,37 +9099,6 @@ export namespace Iso8601 {
|
|
|
9148
9099
|
const MAXIMUM_INTERVAL: TimeInterval;
|
|
9149
9100
|
}
|
|
9150
9101
|
|
|
9151
|
-
/**
|
|
9152
|
-
* Default settings for accessing the iTwin platform.
|
|
9153
|
-
*/
|
|
9154
|
-
export namespace ITwinPlatform {
|
|
9155
|
-
/**
|
|
9156
|
-
* Status states for a mesh-export export.
|
|
9157
|
-
Valid values are: <code>NotStarted</code>, <code>InProgress</code>, <code>Complete</code>, <code>Invalid</code>
|
|
9158
|
-
*/
|
|
9159
|
-
enum ExportStatus {
|
|
9160
|
-
}
|
|
9161
|
-
/**
|
|
9162
|
-
* Types of mesh-export exports. CesiumJS only supports loading <code>3DTILES</code> type exports.
|
|
9163
|
-
Valid values are: <code>IMODEL</code>, <code>CESIUM</code>, <code>3DTILES</code>
|
|
9164
|
-
*/
|
|
9165
|
-
enum ExportType {
|
|
9166
|
-
}
|
|
9167
|
-
/**
|
|
9168
|
-
* Types of Reality data. This is a partial list of types we know we can support
|
|
9169
|
-
*/
|
|
9170
|
-
enum RealityDataType {
|
|
9171
|
-
}
|
|
9172
|
-
/**
|
|
9173
|
-
* Gets or sets the default iTwin access token. This token should have the <code>itwin-platform</code> scope.
|
|
9174
|
-
*/
|
|
9175
|
-
var defaultAccessToken: string | undefined;
|
|
9176
|
-
/**
|
|
9177
|
-
* Gets or sets the default iTwin API endpoint.
|
|
9178
|
-
*/
|
|
9179
|
-
var apiEndpoint: string | Resource;
|
|
9180
|
-
}
|
|
9181
|
-
|
|
9182
9102
|
/**
|
|
9183
9103
|
* Represents an astronomical Julian date, which is the number of days since noon on January 1, -4712 (4713 BC).
|
|
9184
9104
|
For increased precision, this class stores the whole number part of the date and the seconds
|
|
@@ -12364,11 +12284,11 @@ export class OrientedBoundingBox {
|
|
|
12364
12284
|
/**
|
|
12365
12285
|
* Compares the provided OrientedBoundingBox componentwise and returns
|
|
12366
12286
|
<code>true</code> if they are equal, <code>false</code> otherwise.
|
|
12367
|
-
* @param
|
|
12368
|
-
* @param
|
|
12287
|
+
* @param left - The first OrientedBoundingBox.
|
|
12288
|
+
* @param right - The second OrientedBoundingBox.
|
|
12369
12289
|
* @returns <code>true</code> if left and right are equal, <code>false</code> otherwise.
|
|
12370
12290
|
*/
|
|
12371
|
-
static equals(left
|
|
12291
|
+
static equals(left: OrientedBoundingBox, right: OrientedBoundingBox): boolean;
|
|
12372
12292
|
/**
|
|
12373
12293
|
* Duplicates this OrientedBoundingBox instance.
|
|
12374
12294
|
* @param [result] - The object onto which to store the result.
|
|
@@ -14741,6 +14661,11 @@ export class Rectangle {
|
|
|
14741
14661
|
* @returns <code>true</code> if the Rectangles are within the provided epsilon, <code>false</code> otherwise.
|
|
14742
14662
|
*/
|
|
14743
14663
|
equalsEpsilon(other?: Rectangle, epsilon?: number): boolean;
|
|
14664
|
+
/**
|
|
14665
|
+
* Checks a Rectangle's properties and throws if they are not in valid ranges.
|
|
14666
|
+
* @param rectangle - The rectangle to validate
|
|
14667
|
+
*/
|
|
14668
|
+
static validate(rectangle: Rectangle): void;
|
|
14744
14669
|
/**
|
|
14745
14670
|
* Computes the southwest corner of a rectangle.
|
|
14746
14671
|
* @param rectangle - The rectangle for which to find the corner
|
|
@@ -16615,11 +16540,11 @@ export class Spherical {
|
|
|
16615
16540
|
static normalize(spherical: Spherical, result?: Spherical): Spherical;
|
|
16616
16541
|
/**
|
|
16617
16542
|
* Returns true if the first spherical is equal to the second spherical, false otherwise.
|
|
16618
|
-
* @param
|
|
16619
|
-
* @param
|
|
16543
|
+
* @param left - The first Spherical to be compared.
|
|
16544
|
+
* @param right - The second Spherical to be compared.
|
|
16620
16545
|
* @returns true if the first spherical is equal to the second spherical, false otherwise.
|
|
16621
16546
|
*/
|
|
16622
|
-
static equals(left
|
|
16547
|
+
static equals(left: Spherical, right: Spherical): boolean;
|
|
16623
16548
|
/**
|
|
16624
16549
|
* Returns true if the first spherical is within the provided epsilon of the second spherical, false otherwise.
|
|
16625
16550
|
* @param left - The first Spherical to be compared.
|
|
@@ -16630,10 +16555,10 @@ export class Spherical {
|
|
|
16630
16555
|
static equalsEpsilon(left: Spherical, right: Spherical, epsilon?: number): boolean;
|
|
16631
16556
|
/**
|
|
16632
16557
|
* Returns true if this spherical is equal to the provided spherical, false otherwise.
|
|
16633
|
-
* @param
|
|
16558
|
+
* @param other - The Spherical to be compared.
|
|
16634
16559
|
* @returns true if this spherical is equal to the provided spherical, false otherwise.
|
|
16635
16560
|
*/
|
|
16636
|
-
equals(other
|
|
16561
|
+
equals(other: Spherical): boolean;
|
|
16637
16562
|
/**
|
|
16638
16563
|
* Creates a duplicate of this Spherical.
|
|
16639
16564
|
* @param [result] - The object to store the result into, if undefined a new instance will be created.
|
|
@@ -17674,34 +17599,6 @@ export enum TimeStandard {
|
|
|
17674
17599
|
TAI = 1
|
|
17675
17600
|
}
|
|
17676
17601
|
|
|
17677
|
-
/**
|
|
17678
|
-
* Constants for identifying well-known tracking reference frames.
|
|
17679
|
-
*/
|
|
17680
|
-
export enum TrackingReferenceFrame {
|
|
17681
|
-
/**
|
|
17682
|
-
* Auto-detect algorithm. The reference frame used to track the Entity will
|
|
17683
|
-
be automatically selected based on its trajectory: near-surface slow moving
|
|
17684
|
-
objects will be tracked in the entity's local east-north-up reference
|
|
17685
|
-
frame, while faster objects like satellites will use VVLH (Vehicle Velocity,
|
|
17686
|
-
Local Horizontal).
|
|
17687
|
-
*/
|
|
17688
|
-
AUTODETECT = 0,
|
|
17689
|
-
/**
|
|
17690
|
-
* The entity's local East-North-Up reference frame.
|
|
17691
|
-
*/
|
|
17692
|
-
ENU = 1,
|
|
17693
|
-
/**
|
|
17694
|
-
* The entity's inertial reference frame. If entity has no defined orientation
|
|
17695
|
-
property, it falls back to auto-detect algorithm.
|
|
17696
|
-
*/
|
|
17697
|
-
INERTIAL = 2,
|
|
17698
|
-
/**
|
|
17699
|
-
* The entity's inertial reference frame with orientation fixed to its
|
|
17700
|
-
{@link VelocityOrientationProperty}, ignoring its own orientation.
|
|
17701
|
-
*/
|
|
17702
|
-
VELOCITY = 3
|
|
17703
|
-
}
|
|
17704
|
-
|
|
17705
17602
|
/**
|
|
17706
17603
|
* Contains functions for transforming positions to various reference frames.
|
|
17707
17604
|
*/
|
|
@@ -18764,6 +18661,7 @@ If text is blank, returns undefined.
|
|
|
18764
18661
|
* @param text - The text to write.
|
|
18765
18662
|
* @param [options] - Object with the following properties:
|
|
18766
18663
|
* @param [options.font = '10px sans-serif'] - The CSS font to use.
|
|
18664
|
+
* @param [options.textBaseline = 'bottom'] - The baseline of the text.
|
|
18767
18665
|
* @param [options.fill = true] - Whether to fill the text.
|
|
18768
18666
|
* @param [options.stroke = false] - Whether to stroke the text.
|
|
18769
18667
|
* @param [options.fillColor = Color.WHITE] - The fill color.
|
|
@@ -18777,6 +18675,7 @@ If text is blank, returns undefined.
|
|
|
18777
18675
|
*/
|
|
18778
18676
|
export function writeTextToCanvas(text: string, options?: {
|
|
18779
18677
|
font?: string;
|
|
18678
|
+
textBaseline?: string;
|
|
18780
18679
|
fill?: boolean;
|
|
18781
18680
|
stroke?: boolean;
|
|
18782
18681
|
fillColor?: Color;
|
|
@@ -19042,21 +18941,6 @@ export class BillboardVisualizer {
|
|
|
19042
18941
|
destroy(): void;
|
|
19043
18942
|
}
|
|
19044
18943
|
|
|
19045
|
-
/**
|
|
19046
|
-
* The BoundingSphere has been computed.
|
|
19047
|
-
*/
|
|
19048
|
-
export const DONE = 0;
|
|
19049
|
-
|
|
19050
|
-
/**
|
|
19051
|
-
* The BoundingSphere is still being computed.
|
|
19052
|
-
*/
|
|
19053
|
-
export const PENDING = 1;
|
|
19054
|
-
|
|
19055
|
-
/**
|
|
19056
|
-
* The BoundingSphere does not exist.
|
|
19057
|
-
*/
|
|
19058
|
-
export const FAILED = 2;
|
|
19059
|
-
|
|
19060
18944
|
/**
|
|
19061
18945
|
* A {@link GeometryUpdater} for boxes.
|
|
19062
18946
|
Clients do not normally create this class directly, but instead rely on {@link DataSourceDisplay}.
|
|
@@ -20454,10 +20338,10 @@ export class DataSourceClock {
|
|
|
20454
20338
|
clone(result?: DataSourceClock): DataSourceClock;
|
|
20455
20339
|
/**
|
|
20456
20340
|
* Returns true if this DataSourceClock is equivalent to the other
|
|
20457
|
-
* @param
|
|
20341
|
+
* @param other - The other DataSourceClock to compare to.
|
|
20458
20342
|
* @returns <code>true</code> if the DataSourceClocks are equal; otherwise, <code>false</code>.
|
|
20459
20343
|
*/
|
|
20460
|
-
equals(other
|
|
20344
|
+
equals(other: DataSourceClock): boolean;
|
|
20461
20345
|
/**
|
|
20462
20346
|
* Assigns each unassigned property on this object to the value
|
|
20463
20347
|
of the same property on the provided source object.
|
|
@@ -21021,7 +20905,6 @@ export namespace Entity {
|
|
|
21021
20905
|
* @property [name] - A human readable name to display to users. It does not have to be unique.
|
|
21022
20906
|
* @property [availability] - The availability, if any, associated with this object.
|
|
21023
20907
|
* @property [show] - A boolean value indicating if the entity and its children are displayed.
|
|
21024
|
-
* @property [trackingReferenceFrame = TrackingReferenceFrame.AUTODETECT] - The reference frame used when this entity is being tracked. <br/> If <code>undefined</code>, reference frame is determined based on entity velocity: near-surface slow moving entities are tracked using the local east-north-up reference frame, whereas fast moving entities such as satellites are tracked using VVLH (Vehicle Velocity, Local Horizontal).
|
|
21025
20908
|
* @property [description] - A string Property specifying an HTML description for this entity.
|
|
21026
20909
|
* @property [position] - A Property specifying the entity position.
|
|
21027
20910
|
* @property [orientation = Transforms.eastNorthUpToFixedFrame(position)] - A Property specifying the entity orientation in respect to Earth-fixed-Earth-centered (ECEF). If undefined, east-north-up at entity position is used.
|
|
@@ -21051,9 +20934,8 @@ export namespace Entity {
|
|
|
21051
20934
|
name?: string;
|
|
21052
20935
|
availability?: TimeIntervalCollection;
|
|
21053
20936
|
show?: boolean;
|
|
21054
|
-
trackingReferenceFrame?: TrackingReferenceFrame;
|
|
21055
20937
|
description?: Property | string;
|
|
21056
|
-
position?: PositionProperty | Cartesian3 |
|
|
20938
|
+
position?: PositionProperty | Cartesian3 | CallbackProperty;
|
|
21057
20939
|
orientation?: Property | Quaternion;
|
|
21058
20940
|
viewFrom?: Property | Cartesian3;
|
|
21059
20941
|
parent?: Entity;
|
|
@@ -21118,10 +21000,6 @@ export class Entity {
|
|
|
21118
21000
|
the entity is only displayed if the parent entity's show property is also true.
|
|
21119
21001
|
*/
|
|
21120
21002
|
show: boolean;
|
|
21121
|
-
/**
|
|
21122
|
-
* Gets or sets the entity's tracking reference frame.
|
|
21123
|
-
*/
|
|
21124
|
-
trackingReferenceFrame: TrackingReferenceFrame;
|
|
21125
21003
|
/**
|
|
21126
21004
|
* Gets whether this entity is being displayed, taking into account
|
|
21127
21005
|
the visibility of any ancestor entities.
|
|
@@ -22833,7 +22711,6 @@ export namespace ModelGraphics {
|
|
|
22833
22711
|
* @property [colorBlendMode = ColorBlendMode.HIGHLIGHT] - An enum Property specifying how the color blends with the model.
|
|
22834
22712
|
* @property [colorBlendAmount = 0.5] - A numeric Property specifying the color strength when the <code>colorBlendMode</code> is <code>MIX</code>. A value of 0.0 results in the model's rendered color while a value of 1.0 results in a solid color, with any value in-between resulting in a mix of the two.
|
|
22835
22713
|
* @property [imageBasedLightingFactor = new Cartesian2(1.0, 1.0)] - A property specifying the contribution from diffuse and specular image-based lighting.
|
|
22836
|
-
* @property [environmentMapOptions] - The properties for managing dynamic environment maps on this entity.
|
|
22837
22714
|
* @property [lightColor] - A property specifying the light color when shading the model. When <code>undefined</code> the scene's light color is used instead.
|
|
22838
22715
|
* @property [distanceDisplayCondition] - A Property specifying at what distance from the camera that this model will be displayed.
|
|
22839
22716
|
* @property [nodeTransformations] - An object, where keys are names of nodes, and values are {@link TranslationRotationScale} Properties describing the transformation to apply to that node. The transformation is applied after the node's existing transformation as specified in the glTF, and does not replace the node's existing transformation.
|
|
@@ -22859,9 +22736,6 @@ export namespace ModelGraphics {
|
|
|
22859
22736
|
colorBlendMode?: Property | ColorBlendMode;
|
|
22860
22737
|
colorBlendAmount?: Property | number;
|
|
22861
22738
|
imageBasedLightingFactor?: Property | Cartesian2;
|
|
22862
|
-
environmentMapOptions?: PropertyBag | {
|
|
22863
|
-
[key: string]: any;
|
|
22864
|
-
};
|
|
22865
22739
|
lightColor?: Property | Color;
|
|
22866
22740
|
distanceDisplayCondition?: Property | DistanceDisplayCondition;
|
|
22867
22741
|
nodeTransformations?: PropertyBag | {
|
|
@@ -22969,10 +22843,6 @@ export class ModelGraphics {
|
|
|
22969
22843
|
* A property specifying the {@link Cartesian2} used to scale the diffuse and specular image-based lighting contribution to the final color.
|
|
22970
22844
|
*/
|
|
22971
22845
|
imageBasedLightingFactor: Property | undefined;
|
|
22972
|
-
/**
|
|
22973
|
-
* Gets or sets the {@link DynamicEnvironmentMapManager.ConstructorOptions} to apply to this model. This is represented as an {@link PropertyBag}.
|
|
22974
|
-
*/
|
|
22975
|
-
environmentMapOptions: PropertyBag;
|
|
22976
22846
|
/**
|
|
22977
22847
|
* A property specifying the {@link Cartesian3} light color when shading the model. When <code>undefined</code> the scene's light color is used instead.
|
|
22978
22848
|
*/
|
|
@@ -25063,12 +24933,6 @@ export class SampledProperty {
|
|
|
25063
24933
|
* @param [derivativeValues] - An array where each item is the array of derivatives at the equivalent time index.
|
|
25064
24934
|
*/
|
|
25065
24935
|
addSamples(times: JulianDate[], values: Packable[], derivativeValues?: any[][]): void;
|
|
25066
|
-
/**
|
|
25067
|
-
* Retrieves the time of the provided sample associated with the index. A negative index accesses the list of samples in reverse order.
|
|
25068
|
-
* @param index - The index of samples list.
|
|
25069
|
-
* @returns The JulianDate time of the sample, or undefined if failed.
|
|
25070
|
-
*/
|
|
25071
|
-
getSample(index: number): JulianDate | undefined;
|
|
25072
24936
|
/**
|
|
25073
24937
|
* Adds samples as a single packed array where each new sample is represented as a date,
|
|
25074
24938
|
followed by the packed representation of the corresponding value and derivatives.
|
|
@@ -26089,12 +25953,6 @@ export class Atmosphere {
|
|
|
26089
25953
|
be used for dynamically lighting all atmosphere-related rendering effects.
|
|
26090
25954
|
*/
|
|
26091
25955
|
dynamicLighting: DynamicAtmosphereLightingType;
|
|
26092
|
-
/**
|
|
26093
|
-
* Returns <code>true</code> if the atmosphere shader requires a color correct step.
|
|
26094
|
-
* @param atmosphere - The atmosphere instance to check
|
|
26095
|
-
* @returns true if the atmosphere shader requires a color correct step
|
|
26096
|
-
*/
|
|
26097
|
-
static requiresColorCorrect(atmosphere: Atmosphere): boolean;
|
|
26098
25956
|
}
|
|
26099
25957
|
|
|
26100
25958
|
/**
|
|
@@ -26491,10 +26349,10 @@ export class Billboard {
|
|
|
26491
26349
|
/**
|
|
26492
26350
|
* Determines if this billboard equals another billboard. Billboards are equal if all their properties
|
|
26493
26351
|
are equal. Billboards in different collections can be equal.
|
|
26494
|
-
* @param
|
|
26352
|
+
* @param other - The billboard to compare for equality.
|
|
26495
26353
|
* @returns <code>true</code> if the billboards are equal; otherwise, <code>false</code>.
|
|
26496
26354
|
*/
|
|
26497
|
-
equals(other
|
|
26355
|
+
equals(other: Billboard): boolean;
|
|
26498
26356
|
}
|
|
26499
26357
|
|
|
26500
26358
|
/**
|
|
@@ -28475,7 +28333,6 @@ export namespace Cesium3DTileset {
|
|
|
28475
28333
|
* @property [pointCloudShading] - Options for constructing a {@link PointCloudShading} object to control point attenuation based on geometric error and lighting.
|
|
28476
28334
|
* @property [lightColor] - The light color when shading models. When <code>undefined</code> the scene's light color is used instead.
|
|
28477
28335
|
* @property [imageBasedLighting] - The properties for managing image-based lighting for this tileset.
|
|
28478
|
-
* @property [environmentMapOptions] - The properties for managing dynamic environment maps on this tileset.
|
|
28479
28336
|
* @property [backFaceCulling = true] - Whether to cull back-facing geometry. When true, back face culling is determined by the glTF material's doubleSided property; when false, back face culling is disabled.
|
|
28480
28337
|
* @property [enableShowOutline = true] - Whether to enable outlines for models using the {@link https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/CESIUM_primitive_outline|CESIUM_primitive_outline} extension. This can be set to false to avoid the additional processing of geometry at load time. When false, the showOutlines and outlineColor options are ignored.
|
|
28481
28338
|
* @property [showOutline = true] - Whether to display the outline for models using the {@link https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/CESIUM_primitive_outline|CESIUM_primitive_outline} extension. When true, outlines are displayed. When false, outlines are not displayed.
|
|
@@ -28540,7 +28397,6 @@ export namespace Cesium3DTileset {
|
|
|
28540
28397
|
pointCloudShading?: any;
|
|
28541
28398
|
lightColor?: Cartesian3;
|
|
28542
28399
|
imageBasedLighting?: ImageBasedLighting;
|
|
28543
|
-
environmentMapOptions?: DynamicEnvironmentMapManager.ConstructorOptions;
|
|
28544
28400
|
backFaceCulling?: boolean;
|
|
28545
28401
|
enableShowOutline?: boolean;
|
|
28546
28402
|
showOutline?: boolean;
|
|
@@ -29269,14 +29125,6 @@ export class Cesium3DTileset {
|
|
|
29269
29125
|
* The properties for managing image-based lighting on this tileset.
|
|
29270
29126
|
*/
|
|
29271
29127
|
imageBasedLighting: ImageBasedLighting;
|
|
29272
|
-
/**
|
|
29273
|
-
* The properties for managing dynamic environment maps on this model. Affects lighting.
|
|
29274
|
-
* @example
|
|
29275
|
-
* // Change the ground color used for a tileset's environment map to a forest green
|
|
29276
|
-
const environmentMapManager = tileset.environmentMapManager;
|
|
29277
|
-
environmentMapManager.groundColor = Cesium.Color.fromCssColorString("#203b34");
|
|
29278
|
-
*/
|
|
29279
|
-
readonly environmentMapManager: DynamicEnvironmentMapManager;
|
|
29280
29128
|
/**
|
|
29281
29129
|
* Indicates that only the tileset's vector tiles should be used for classification.
|
|
29282
29130
|
*/
|
|
@@ -30662,7 +30510,7 @@ export class ClippingPolygon {
|
|
|
30662
30510
|
* @param right - The second polygon.
|
|
30663
30511
|
* @returns <code>true</code> if left and right are equal, <code>false</code> otherwise.
|
|
30664
30512
|
*/
|
|
30665
|
-
static equals(left:
|
|
30513
|
+
static equals(left: Plane, right: Plane): boolean;
|
|
30666
30514
|
/**
|
|
30667
30515
|
* Computes a cartographic rectangle which encloses the polygon defined by the list of positions, including cases over the international date line and the poles.
|
|
30668
30516
|
* @param [result] - An object in which to store the result.
|
|
@@ -31131,22 +30979,12 @@ export function createElevationBandMaterial(options: {
|
|
|
31131
30979
|
}): Material;
|
|
31132
30980
|
|
|
31133
30981
|
/**
|
|
31134
|
-
* Creates a {@link Cesium3DTileset} instance for the Google Photorealistic 3D
|
|
31135
|
-
Tiles tileset.
|
|
31136
|
-
|
|
31137
|
-
Google Photorealistic 3D Tiles can only be used with the Google geocoder. To
|
|
31138
|
-
confirm that you are aware of this restriction pass
|
|
31139
|
-
`usingOnlyWithGoogleGeocoder: true` to the apiOptions. Otherwise a one time
|
|
31140
|
-
warning will be displayed when this function is called.
|
|
30982
|
+
* Creates a {@link Cesium3DTileset} instance for the Google Photorealistic 3D Tiles tileset.
|
|
31141
30983
|
* @example
|
|
31142
|
-
* const viewer = new Cesium.Viewer("cesiumContainer"
|
|
31143
|
-
geocoder: Cesium.IonGeocodeProviderType.GOOGLE
|
|
31144
|
-
});
|
|
30984
|
+
* const viewer = new Cesium.Viewer("cesiumContainer");
|
|
31145
30985
|
|
|
31146
30986
|
try {
|
|
31147
|
-
const tileset = await Cesium.createGooglePhotorealistic3DTileset(
|
|
31148
|
-
onlyUsingWithGoogleGeocoder: true,
|
|
31149
|
-
});
|
|
30987
|
+
const tileset = await Cesium.createGooglePhotorealistic3DTileset();
|
|
31150
30988
|
viewer.scene.primitives.add(tileset));
|
|
31151
30989
|
} catch (error) {
|
|
31152
30990
|
console.log(`Error creating tileset: ${error}`);
|
|
@@ -31155,26 +30993,18 @@ try {
|
|
|
31155
30993
|
* // Use your own Google Maps API key
|
|
31156
30994
|
Cesium.GoogleMaps.defaultApiKey = "your-api-key";
|
|
31157
30995
|
|
|
31158
|
-
const viewer = new Cesium.Viewer("cesiumContainer"
|
|
31159
|
-
geocoder: Cesium.IonGeocodeProviderType.GOOGLE
|
|
31160
|
-
});
|
|
30996
|
+
const viewer = new Cesium.Viewer("cesiumContainer");
|
|
31161
30997
|
|
|
31162
30998
|
try {
|
|
31163
|
-
const tileset = await Cesium.createGooglePhotorealistic3DTileset(
|
|
31164
|
-
onlyUsingWithGoogleGeocoder: true,
|
|
31165
|
-
});
|
|
30999
|
+
const tileset = await Cesium.createGooglePhotorealistic3DTileset();
|
|
31166
31000
|
viewer.scene.primitives.add(tileset));
|
|
31167
31001
|
} catch (error) {
|
|
31168
31002
|
console.log(`Error creating tileset: ${error}`);
|
|
31169
31003
|
}
|
|
31170
|
-
* @param [
|
|
31171
|
-
* @param [
|
|
31172
|
-
* @param [tilesetOptions] - An object describing initialization options.
|
|
31004
|
+
* @param [key = GoogleMaps.defaultApiKey] - Your API key to access Google Photorealistic 3D Tiles. See {@link https://developers.google.com/maps/documentation/javascript/get-api-key} for instructions on how to create your own key.
|
|
31005
|
+
* @param [options] - An object describing initialization options.
|
|
31173
31006
|
*/
|
|
31174
|
-
export function createGooglePhotorealistic3DTileset(
|
|
31175
|
-
key?: string;
|
|
31176
|
-
onlyUsingWithGoogleGeocoder?: true;
|
|
31177
|
-
}, tilesetOptions?: Cesium3DTileset.ConstructorOptions): Promise<Cesium3DTileset>;
|
|
31007
|
+
export function createGooglePhotorealistic3DTileset(key?: string, options?: Cesium3DTileset.ConstructorOptions): Promise<Cesium3DTileset>;
|
|
31178
31008
|
|
|
31179
31009
|
/**
|
|
31180
31010
|
* Creates a {@link Cesium3DTileset} instance for the
|
|
@@ -31778,47 +31608,6 @@ for a property texture property with the given class property
|
|
|
31778
31608
|
*/
|
|
31779
31609
|
export function getGlslType(classProperty: MetadataClassProperty): string;
|
|
31780
31610
|
|
|
31781
|
-
/**
|
|
31782
|
-
* Returns a shader statement that applies the inverse of the
|
|
31783
|
-
value transform to the given value, based on the given offset
|
|
31784
|
-
and scale.
|
|
31785
|
-
* @param input - The input value
|
|
31786
|
-
* @param offset - The offset
|
|
31787
|
-
* @param scale - The scale
|
|
31788
|
-
* @returns The statement
|
|
31789
|
-
*/
|
|
31790
|
-
export function unapplyValueTransform(input: string, offset: string, scale: string): string;
|
|
31791
|
-
|
|
31792
|
-
/**
|
|
31793
|
-
* Returns a shader statement that applies the inverse of the
|
|
31794
|
-
normalization, based on the given component type
|
|
31795
|
-
* @param input - The input value
|
|
31796
|
-
* @param componentType - The component type
|
|
31797
|
-
* @returns The statement
|
|
31798
|
-
*/
|
|
31799
|
-
export function unnormalize(input: string, componentType: string): string;
|
|
31800
|
-
|
|
31801
|
-
/**
|
|
31802
|
-
* Creates a shader statement that returns the value of the specified
|
|
31803
|
-
property, normalized to the range [0, 1].
|
|
31804
|
-
* @param classProperty - The class property
|
|
31805
|
-
* @param metadataProperty - The metadata property, either
|
|
31806
|
-
a `PropertyTextureProperty` or a `PropertyAttributeProperty`
|
|
31807
|
-
* @returns The string
|
|
31808
|
-
*/
|
|
31809
|
-
export function getSourceValueStringScalar(classProperty: MetadataClassProperty, metadataProperty: any): string;
|
|
31810
|
-
|
|
31811
|
-
/**
|
|
31812
|
-
* Creates a shader statement that returns the value of the specified
|
|
31813
|
-
component of the given property, normalized to the range [0, 1].
|
|
31814
|
-
* @param classProperty - The class property
|
|
31815
|
-
* @param metadataProperty - The metadata property, either
|
|
31816
|
-
a `PropertyTextureProperty` or a `PropertyAttributeProperty`
|
|
31817
|
-
* @param componentName - The name, in ["x", "y", "z", "w"]
|
|
31818
|
-
* @returns The string
|
|
31819
|
-
*/
|
|
31820
|
-
export function getSourceValueStringComponent(classProperty: MetadataClassProperty, metadataProperty: any, componentName: string): string;
|
|
31821
|
-
|
|
31822
31611
|
/**
|
|
31823
31612
|
* A light that gets emitted in a single direction from infinitely far away.
|
|
31824
31613
|
* @param options - Object with the following properties:
|
|
@@ -31922,136 +31711,6 @@ export enum DynamicAtmosphereLightingType {
|
|
|
31922
31711
|
SUNLIGHT = 2
|
|
31923
31712
|
}
|
|
31924
31713
|
|
|
31925
|
-
export namespace DynamicEnvironmentMapManager {
|
|
31926
|
-
/**
|
|
31927
|
-
* Options for the DynamicEnvironmentMapManager constructor
|
|
31928
|
-
* @property [enabled = true] - If true, the environment map and related properties will continue to update.
|
|
31929
|
-
* @property [mipmapLevels = 7] - The number of mipmap levels to generate for specular maps. More mipmap levels will produce a higher resolution specular reflection.
|
|
31930
|
-
* @property [maximumSecondsDifference = 3600] - The maximum amount of elapsed seconds before a new environment map is created.
|
|
31931
|
-
* @property [maximumPositionEpsilon = 1000] - The maximum difference in position before a new environment map is created, in meters. Small differences in position will not visibly affect results.
|
|
31932
|
-
* @property [atmosphereScatteringIntensity = 2.0] - The intensity of the scattered light emitted from the atmosphere. This should be adjusted relative to the value of {@link Scene.light} intensity.
|
|
31933
|
-
* @property [gamma = 1.0] - The gamma correction to apply to the range of light emitted from the environment. 1.0 uses the unmodified emitted light color.
|
|
31934
|
-
* @property [brightness = 1.0] - The brightness of light emitted from the environment. 1.0 uses the unmodified emitted environment color. Less than 1.0 makes the light darker while greater than 1.0 makes it brighter.
|
|
31935
|
-
* @property [saturation = 1.0] - The saturation of the light emitted from the environment. 1.0 uses the unmodified emitted environment color. Less than 1.0 reduces the saturation while greater than 1.0 increases it.
|
|
31936
|
-
* @property [groundColor = DynamicEnvironmentMapManager.AVERAGE_EARTH_GROUND_COLOR] - Solid color used to represent the ground.
|
|
31937
|
-
* @property [groundAlbedo = 0.31] - The percentage of light reflected from the ground. The average earth albedo is 0.31.
|
|
31938
|
-
*/
|
|
31939
|
-
type ConstructorOptions = {
|
|
31940
|
-
enabled?: boolean;
|
|
31941
|
-
mipmapLevels?: number;
|
|
31942
|
-
maximumSecondsDifference?: number;
|
|
31943
|
-
maximumPositionEpsilon?: number;
|
|
31944
|
-
atmosphereScatteringIntensity?: number;
|
|
31945
|
-
gamma?: number;
|
|
31946
|
-
brightness?: number;
|
|
31947
|
-
saturation?: number;
|
|
31948
|
-
groundColor?: Color;
|
|
31949
|
-
groundAlbedo?: number;
|
|
31950
|
-
};
|
|
31951
|
-
}
|
|
31952
|
-
|
|
31953
|
-
/**
|
|
31954
|
-
* Generates an environment map at the given position based on scene's current lighting conditions. From this, it produces multiple levels of specular maps and spherical harmonic coefficients than can be used with {@link ImageBasedLighting} for models or tilesets.
|
|
31955
|
-
* @example
|
|
31956
|
-
* // Enable time-of-day environment mapping in a scene
|
|
31957
|
-
scene.atmosphere.dynamicLighting = Cesium.DynamicAtmosphereLightingType.SUNLIGHT;
|
|
31958
|
-
|
|
31959
|
-
// Decrease the directional lighting contribution
|
|
31960
|
-
scene.light.intensity = 0.5
|
|
31961
|
-
|
|
31962
|
-
// Increase the intensity of of the environment map lighting contribution
|
|
31963
|
-
const environmentMapManager = tileset.environmentMapManager;
|
|
31964
|
-
environmentMapManager.atmosphereScatteringIntensity = 3.0;
|
|
31965
|
-
* @example
|
|
31966
|
-
* // Change the ground color used for a model's environment map to a forest green
|
|
31967
|
-
const environmentMapManager = model.environmentMapManager;
|
|
31968
|
-
environmentMapManager.groundColor = Cesium.Color.fromCssColorString("#203b34");
|
|
31969
|
-
* @param [options] - An object describing initialization options.
|
|
31970
|
-
*/
|
|
31971
|
-
export class DynamicEnvironmentMapManager {
|
|
31972
|
-
constructor(options?: DynamicEnvironmentMapManager.ConstructorOptions);
|
|
31973
|
-
/**
|
|
31974
|
-
* If true, the environment map and related properties will continue to update.
|
|
31975
|
-
*/
|
|
31976
|
-
enabled: boolean;
|
|
31977
|
-
/**
|
|
31978
|
-
* The maximum amount of elapsed seconds before a new environment map is created.
|
|
31979
|
-
*/
|
|
31980
|
-
maximumSecondsDifference: number;
|
|
31981
|
-
/**
|
|
31982
|
-
* The maximum difference in position before a new environment map is created, in meters. Small differences in position will not visibly affect results.
|
|
31983
|
-
*/
|
|
31984
|
-
maximumPositionEpsilon: number;
|
|
31985
|
-
/**
|
|
31986
|
-
* The intensity of the scattered light emitted from the atmosphere. This should be adjusted relative to the value of {@link Scene.light} intensity.
|
|
31987
|
-
*/
|
|
31988
|
-
atmosphereScatteringIntensity: number;
|
|
31989
|
-
/**
|
|
31990
|
-
* The gamma correction to apply to the range of light emitted from the environment. 1.0 uses the unmodified incoming light color.
|
|
31991
|
-
*/
|
|
31992
|
-
gamma: number;
|
|
31993
|
-
/**
|
|
31994
|
-
* The brightness of light emitted from the environment. 1.0 uses the unmodified emitted environment color. Less than 1.0
|
|
31995
|
-
makes the light darker while greater than 1.0 makes it brighter.
|
|
31996
|
-
*/
|
|
31997
|
-
brightness: number;
|
|
31998
|
-
/**
|
|
31999
|
-
* The saturation of the light emitted from the environment. 1.0 uses the unmodified emitted environment color. Less than 1.0 reduces the
|
|
32000
|
-
saturation while greater than 1.0 increases it.
|
|
32001
|
-
*/
|
|
32002
|
-
saturation: number;
|
|
32003
|
-
/**
|
|
32004
|
-
* Solid color used to represent the ground.
|
|
32005
|
-
*/
|
|
32006
|
-
groundColor: Color;
|
|
32007
|
-
/**
|
|
32008
|
-
* The percentage of light reflected from the ground. The average earth albedo is 0.31.
|
|
32009
|
-
*/
|
|
32010
|
-
groundAlbedo: number;
|
|
32011
|
-
/**
|
|
32012
|
-
* The position around which the environment map is generated.
|
|
32013
|
-
*/
|
|
32014
|
-
position: Cartesian3 | undefined;
|
|
32015
|
-
/**
|
|
32016
|
-
* Returns true if this object was destroyed; otherwise, false.
|
|
32017
|
-
<br /><br />
|
|
32018
|
-
If this object was destroyed, it should not be used; calling any function other than
|
|
32019
|
-
<code>isDestroyed</code> will result in a {@link DeveloperError} exception.
|
|
32020
|
-
* @returns <code>true</code> if this object was destroyed; otherwise, <code>false</code>.
|
|
32021
|
-
*/
|
|
32022
|
-
isDestroyed(): boolean;
|
|
32023
|
-
/**
|
|
32024
|
-
* Destroys the WebGL resources held by this object. Destroying an object allows for deterministic
|
|
32025
|
-
release of WebGL resources, instead of relying on the garbage collector to destroy this object.
|
|
32026
|
-
<br /><br />
|
|
32027
|
-
Once an object is destroyed, it should not be used; calling any function other than
|
|
32028
|
-
<code>isDestroyed</code> will result in a {@link DeveloperError} exception. Therefore,
|
|
32029
|
-
assign the return value (<code>undefined</code>) to the object as done in the example.
|
|
32030
|
-
* @example
|
|
32031
|
-
* mapManager = mapManager && mapManager.destroy();
|
|
32032
|
-
*/
|
|
32033
|
-
destroy(): void;
|
|
32034
|
-
/**
|
|
32035
|
-
* Returns <code>true</code> if dynamic updates are supported in the current WebGL rendering context.
|
|
32036
|
-
Dynamic updates requires the EXT_color_buffer_float or EXT_color_buffer_half_float extension.
|
|
32037
|
-
* @param scene - The object containing the rendering context
|
|
32038
|
-
* @returns true if supported
|
|
32039
|
-
*/
|
|
32040
|
-
static isDynamicUpdateSupported(scene: Scene): boolean;
|
|
32041
|
-
/**
|
|
32042
|
-
* Average hue of ground color on earth, a warm green-gray.
|
|
32043
|
-
*/
|
|
32044
|
-
static readonly AVERAGE_EARTH_GROUND_COLOR: Color;
|
|
32045
|
-
/**
|
|
32046
|
-
* The default third order spherical harmonic coefficients used for the diffuse color of image-based lighting, a white ambient light with low intensity.
|
|
32047
|
-
<p>
|
|
32048
|
-
There are nine <code>Cartesian3</code> coefficients.
|
|
32049
|
-
The order of the coefficients is: L<sub>0,0</sub>, L<sub>1,-1</sub>, L<sub>1,0</sub>, L<sub>1,1</sub>, L<sub>2,-2</sub>, L<sub>2,-1</sub>, L<sub>2,0</sub>, L<sub>2,1</sub>, L<sub>2,2</sub>
|
|
32050
|
-
</p>
|
|
32051
|
-
*/
|
|
32052
|
-
static readonly DEFAULT_SPHERICAL_HARMONIC_COEFFICIENTS: Cartesian3[];
|
|
32053
|
-
}
|
|
32054
|
-
|
|
32055
31714
|
/**
|
|
32056
31715
|
* An appearance for geometry on the surface of the ellipsoid like {@link PolygonGeometry}
|
|
32057
31716
|
and {@link RectangleGeometry}, which supports all materials like {@link MaterialAppearance}
|
|
@@ -32235,18 +31894,11 @@ export class Fog {
|
|
|
32235
31894
|
constructor();
|
|
32236
31895
|
/**
|
|
32237
31896
|
* <code>true</code> if fog is enabled, <code>false</code> otherwise.
|
|
32238
|
-
* @example
|
|
32239
|
-
* // Disable fog in the scene
|
|
32240
|
-
viewer.scene.fog.enabled = false;
|
|
32241
31897
|
*/
|
|
32242
31898
|
enabled: boolean;
|
|
32243
31899
|
/**
|
|
32244
31900
|
* <code>true</code> if fog is renderable in shaders, <code>false</code> otherwise.
|
|
32245
31901
|
This allows to benefits from optimized tile loading strategy based on fog density without the actual visual rendering.
|
|
32246
|
-
* @example
|
|
32247
|
-
* // Use fog culling but don't render it
|
|
32248
|
-
viewer.scene.fog.enabled = true;
|
|
32249
|
-
viewer.scene.fog.renderable = false;
|
|
32250
31902
|
*/
|
|
32251
31903
|
renderable: boolean;
|
|
32252
31904
|
/**
|
|
@@ -32255,27 +31907,8 @@ export class Fog {
|
|
|
32255
31907
|
The more dense the fog is, the more aggressively the terrain is culled. For example, if the camera is a height of
|
|
32256
31908
|
1000.0m above the ellipsoid, increasing the value to 3.0e-3 will cause many tiles close to the viewer be culled.
|
|
32257
31909
|
Decreasing the value will push the fog further from the viewer, but decrease performance as more of the terrain is rendered.
|
|
32258
|
-
* @example
|
|
32259
|
-
* // Double the default fog density
|
|
32260
|
-
viewer.scene.fog.density = 0.0012;
|
|
32261
31910
|
*/
|
|
32262
31911
|
density: number;
|
|
32263
|
-
/**
|
|
32264
|
-
* A scalar used in the function to adjust density based on the height of the camera above the terrain.
|
|
32265
|
-
*/
|
|
32266
|
-
heightScalar: number;
|
|
32267
|
-
/**
|
|
32268
|
-
* The maximum height fog is applied. If the camera is above this height fog will be disabled.
|
|
32269
|
-
*/
|
|
32270
|
-
maxHeight: number;
|
|
32271
|
-
/**
|
|
32272
|
-
* A scalar that impacts the visual density of fog. This value does not impact the culling of terrain.
|
|
32273
|
-
Use in combination with the {@link Fog.density} to make fog appear more or less dense.
|
|
32274
|
-
* @example
|
|
32275
|
-
* // Increase fog appearance effect
|
|
32276
|
-
viewer.scene.fog.visualDensityScalar = 0.6;
|
|
32277
|
-
*/
|
|
32278
|
-
visualDensityScalar: number;
|
|
32279
31912
|
/**
|
|
32280
31913
|
* A factor used to increase the screen space error of terrain tiles when they are partially in fog. The effect is to reduce
|
|
32281
31914
|
the number of terrain tiles requested for rendering. If set to zero, the feature will be disabled. If the value is increased
|
|
@@ -32288,11 +31921,6 @@ export class Fog {
|
|
|
32288
31921
|
the brightness at all.
|
|
32289
31922
|
*/
|
|
32290
31923
|
minimumBrightness: number;
|
|
32291
|
-
/**
|
|
32292
|
-
* Exponent factor used in the function to adjust how density changes based on the height of the camera above the ellipsoid. Smaller values produce a more gradual transition as camera height increases.
|
|
32293
|
-
Value must be greater than 0.
|
|
32294
|
-
*/
|
|
32295
|
-
heightFalloff: number;
|
|
32296
31924
|
}
|
|
32297
31925
|
|
|
32298
31926
|
/**
|
|
@@ -34219,6 +33847,7 @@ If a model or tileset creates an instance of ImageBasedLighting, it will handle
|
|
|
34219
33847
|
Otherwise, the application is responsible for calling destroy().
|
|
34220
33848
|
</p>
|
|
34221
33849
|
* @param [options.imageBasedLightingFactor = Cartesian2(1.0, 1.0)] - Scales diffuse and specular image-based lighting from the earth, sky, atmosphere and star skybox.
|
|
33850
|
+
* @param [options.luminanceAtZenith = 0.2] - The sun's luminance at the zenith in kilo candela per meter squared to use for this model's procedural environment map.
|
|
34222
33851
|
* @param [options.sphericalHarmonicCoefficients] - The third order spherical harmonic coefficients used for the diffuse color of image-based lighting.
|
|
34223
33852
|
* @param [options.specularEnvironmentMaps] - A URL to a KTX2 file that contains a cube map of the specular lighting and the convoluted specular mipmaps.
|
|
34224
33853
|
*/
|
|
@@ -34231,6 +33860,13 @@ export class ImageBasedLighting {
|
|
|
34231
33860
|
disable those light sources.
|
|
34232
33861
|
*/
|
|
34233
33862
|
imageBasedLightingFactor: Cartesian2;
|
|
33863
|
+
/**
|
|
33864
|
+
* The sun's luminance at the zenith in kilo candela per meter squared
|
|
33865
|
+
to use for this model's procedural environment map. This is used when
|
|
33866
|
+
{@link ImageBasedLighting#specularEnvironmentMaps} and {@link ImageBasedLighting#sphericalHarmonicCoefficients}
|
|
33867
|
+
are not defined.
|
|
33868
|
+
*/
|
|
33869
|
+
luminanceAtZenith: number;
|
|
34234
33870
|
/**
|
|
34235
33871
|
* The third order spherical harmonic coefficients used for the diffuse color of image-based lighting. When <code>undefined</code>, a diffuse irradiance
|
|
34236
33872
|
computed from the atmosphere color is used.
|
|
@@ -34560,10 +34196,10 @@ export class ImageryLayer {
|
|
|
34560
34196
|
alert(`Encountered an error while creating an imagery layer! ${error}`);
|
|
34561
34197
|
});
|
|
34562
34198
|
* @param imageryProviderPromise - A promise which resolves to a imagery provider
|
|
34563
|
-
* @param
|
|
34199
|
+
* @param options - An object describing initialization options
|
|
34564
34200
|
* @returns The created imagery layer.
|
|
34565
34201
|
*/
|
|
34566
|
-
static fromProviderAsync(imageryProviderPromise: Promise<ImageryProvider>, options
|
|
34202
|
+
static fromProviderAsync(imageryProviderPromise: Promise<ImageryProvider>, options: ImageryLayer.ConstructorOptions): ImageryLayer;
|
|
34567
34203
|
/**
|
|
34568
34204
|
* Create a new imagery layer for ion's default global base imagery layer, currently Bing Maps. The layer will handle any asynchronous loads or errors, and begin rendering the imagery layer once ready.
|
|
34569
34205
|
* @example
|
|
@@ -35110,52 +34746,6 @@ export enum IonWorldImageryStyle {
|
|
|
35110
34746
|
ROAD = 4
|
|
35111
34747
|
}
|
|
35112
34748
|
|
|
35113
|
-
/**
|
|
35114
|
-
* Methods for loading iTwin platform data into CesiumJS
|
|
35115
|
-
*/
|
|
35116
|
-
export namespace ITwinData {
|
|
35117
|
-
/**
|
|
35118
|
-
* Create a {@link Cesium3DTileset} for the given iModel id using iTwin's Mesh Export API.
|
|
35119
|
-
|
|
35120
|
-
If there is not a completed export available for the given iModel id, the returned promise will resolve to <code>undefined</code>.
|
|
35121
|
-
We recommend waiting 10-20 seconds and trying to load the tileset again.
|
|
35122
|
-
If all exports are Invalid this will throw an error.
|
|
35123
|
-
* @example
|
|
35124
|
-
* const tileset = await Cesium.ITwinData.createTilesetFromIModelId(iModelId);
|
|
35125
|
-
if (Cesium.defined(tileset)) {
|
|
35126
|
-
viewer.scene.primitives.add(tileset);
|
|
35127
|
-
}
|
|
35128
|
-
* @param iModelId - The id of the iModel to load
|
|
35129
|
-
* @param [options] - Object containing options to pass to the internally created {@link Cesium3DTileset}.
|
|
35130
|
-
* @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
|
|
35131
|
-
*/
|
|
35132
|
-
function createTilesetFromIModelId(iModelId: string, options?: Cesium3DTileset.ConstructorOptions): Promise<Cesium3DTileset | undefined>;
|
|
35133
|
-
/**
|
|
35134
|
-
* Create a tileset for the specified reality data id. This function only works
|
|
35135
|
-
with 3D Tiles meshes and point clouds.
|
|
35136
|
-
|
|
35137
|
-
If the <code>type</code> or <code>rootDocument</code> are not provided this function
|
|
35138
|
-
will first request the full metadata for the specified reality data to fill these values.
|
|
35139
|
-
* @param iTwinId - The id of the iTwin to load data from
|
|
35140
|
-
* @param realityDataId - The id of the reality data to load
|
|
35141
|
-
* @param [type] - The type of this reality data
|
|
35142
|
-
* @param [rootDocument] - The path of the root document for this reality data
|
|
35143
|
-
*/
|
|
35144
|
-
function createTilesetForRealityDataId(iTwinId: string, realityDataId: string, type?: ITwinPlatform.RealityDataType, rootDocument?: string): Promise<Cesium3DTileset>;
|
|
35145
|
-
/**
|
|
35146
|
-
* Create a data source of the correct type for the specified reality data id.
|
|
35147
|
-
This function only works for KML and GeoJSON type data.
|
|
35148
|
-
|
|
35149
|
-
If the <code>type</code> or <code>rootDocument</code> are not provided this function
|
|
35150
|
-
will first request the full metadata for the specified reality data to fill these values.
|
|
35151
|
-
* @param iTwinId - The id of the iTwin to load data from
|
|
35152
|
-
* @param realityDataId - The id of the reality data to load
|
|
35153
|
-
* @param [type] - The type of this reality data
|
|
35154
|
-
* @param [rootDocument] - The path of the root document for this reality data
|
|
35155
|
-
*/
|
|
35156
|
-
function createDataSourceForRealityDataId(iTwinId: string, realityDataId: string, type?: ITwinPlatform.RealityDataType, rootDocument?: string): Promise<GeoJsonDataSource | KmlDataSource>;
|
|
35157
|
-
}
|
|
35158
|
-
|
|
35159
34749
|
export namespace Label {
|
|
35160
34750
|
/**
|
|
35161
34751
|
* Initialization options for the Label constructor
|
|
@@ -35437,10 +35027,10 @@ export class Label {
|
|
|
35437
35027
|
/**
|
|
35438
35028
|
* Determines if this label equals another label. Labels are equal if all their properties
|
|
35439
35029
|
are equal. Labels in different collections can be equal.
|
|
35440
|
-
* @param
|
|
35030
|
+
* @param other - The label to compare for equality.
|
|
35441
35031
|
* @returns <code>true</code> if the labels are equal; otherwise, <code>false</code>.
|
|
35442
35032
|
*/
|
|
35443
|
-
equals(other
|
|
35033
|
+
equals(other: Label): boolean;
|
|
35444
35034
|
/**
|
|
35445
35035
|
* Returns true if this object was destroyed; otherwise, false.
|
|
35446
35036
|
<br /><br />
|
|
@@ -36702,18 +36292,10 @@ export class MetadataClassProperty {
|
|
|
36702
36292
|
readonly semantic: string;
|
|
36703
36293
|
/**
|
|
36704
36294
|
* The offset to be added to property values as part of the value transform.
|
|
36705
|
-
|
|
36706
|
-
This is always defined, even when `hasValueTransform` is `false`. If
|
|
36707
|
-
the class property JSON itself did not define it, then it will be
|
|
36708
|
-
initialized to the default value.
|
|
36709
36295
|
*/
|
|
36710
36296
|
readonly offset: number | number[] | number[][];
|
|
36711
36297
|
/**
|
|
36712
36298
|
* The scale to be multiplied to property values as part of the value transform.
|
|
36713
|
-
|
|
36714
|
-
This is always defined, even when `hasValueTransform` is `false`. If
|
|
36715
|
-
the class property JSON itself did not define it, then it will be
|
|
36716
|
-
initialized to the default value.
|
|
36717
36299
|
*/
|
|
36718
36300
|
readonly scale: number | number[] | number[][];
|
|
36719
36301
|
/**
|
|
@@ -36936,26 +36518,6 @@ export class MetadataSchema {
|
|
|
36936
36518
|
readonly extensions: any;
|
|
36937
36519
|
}
|
|
36938
36520
|
|
|
36939
|
-
/**
|
|
36940
|
-
* An instance of a metadata value.<br>
|
|
36941
|
-
<br>
|
|
36942
|
-
This can be one of the following types:
|
|
36943
|
-
<ul>
|
|
36944
|
-
<li><code>number</code> for type <code>SCALAR</code> and numeric component types except for <code>INT64</code> or <code>UINT64</code></li>
|
|
36945
|
-
<li><code>bigint</code> for type <code>SCALAR</code> and component type <code>INT64</code> or <code>UINT64</code></li>
|
|
36946
|
-
<li><code>string</code> for type <code>STRING</code> or <code>ENUM</code></li>
|
|
36947
|
-
<li><code>boolean</code> for type <code>BOOLEAN</code></li>
|
|
36948
|
-
<li><code>Cartesian2</code> for type <code>VEC2</code></li>
|
|
36949
|
-
<li><code>Cartesian3</code> for type <code>VEC3</code></li>
|
|
36950
|
-
<li><code>Cartesian4</code> for type <code>VEC4</code></li>
|
|
36951
|
-
<li><code>Matrix2</code> for type <code>MAT2</code></li>
|
|
36952
|
-
<li><code>Matrix3</code> for type <code>MAT3</code></li>
|
|
36953
|
-
<li><code>Matrix4</code> for type <code>MAT4</code></li>
|
|
36954
|
-
<li>Arrays of these types when the metadata value is an array</li>
|
|
36955
|
-
</ul>
|
|
36956
|
-
*/
|
|
36957
|
-
export type MetadataValue = number | bigint | string | boolean | Cartesian2 | Cartesian3 | Cartesian4 | Matrix2 | Matrix3 | Matrix4 | number[] | bigint[] | string[] | boolean[] | Cartesian2[] | Cartesian3[] | Cartesian4[] | Matrix2[] | Matrix3[] | Matrix4[];
|
|
36958
|
-
|
|
36959
36521
|
/**
|
|
36960
36522
|
* An enum of metadata types. These metadata types are containers containing
|
|
36961
36523
|
one or more components of type {@link MetadataComponentType}
|
|
@@ -37723,7 +37285,7 @@ export class Model {
|
|
|
37723
37285
|
*/
|
|
37724
37286
|
enableVerticalExaggeration: boolean;
|
|
37725
37287
|
/**
|
|
37726
|
-
* The
|
|
37288
|
+
* The light color when shading the model. When <code>undefined</code> the scene's light color is used instead.
|
|
37727
37289
|
<p>
|
|
37728
37290
|
Disabling additional light sources by setting
|
|
37729
37291
|
<code>model.imageBasedLighting.imageBasedLightingFactor = new Cartesian2(0.0, 0.0)</code>
|
|
@@ -37735,14 +37297,6 @@ export class Model {
|
|
|
37735
37297
|
* The properties for managing image-based lighting on this model.
|
|
37736
37298
|
*/
|
|
37737
37299
|
imageBasedLighting: ImageBasedLighting;
|
|
37738
|
-
/**
|
|
37739
|
-
* The properties for managing dynamic environment maps on this model. Affects lighting.
|
|
37740
|
-
* @example
|
|
37741
|
-
* // Change the ground color used for a model's environment map to a forest green
|
|
37742
|
-
const environmentMapManager = model.environmentMapManager;
|
|
37743
|
-
environmentMapManager.groundColor = Cesium.Color.fromCssColorString("#203b34");
|
|
37744
|
-
*/
|
|
37745
|
-
readonly environmentMapManager: DynamicEnvironmentMapManager;
|
|
37746
37300
|
/**
|
|
37747
37301
|
* Whether to cull back-facing geometry. When true, back face culling is
|
|
37748
37302
|
determined by the material's doubleSided property; when false, back face
|
|
@@ -37838,7 +37392,7 @@ export class Model {
|
|
|
37838
37392
|
|
|
37839
37393
|
The given name may be the name of a glTF extension, like `"EXT_example_extension"`.
|
|
37840
37394
|
If the specified extension was present in the root of the underlying glTF asset,
|
|
37841
|
-
and a
|
|
37395
|
+
and a loder for the specified extension has processed the extension data, then
|
|
37842
37396
|
this will return the model representation of the extension.
|
|
37843
37397
|
* @param extensionName - The name of the extension
|
|
37844
37398
|
* @returns The object, or `undefined`
|
|
@@ -37982,7 +37536,6 @@ export class Model {
|
|
|
37982
37536
|
* @param [options.clippingPolygons] - The {@link ClippingPolygonCollection} used to selectively disable rendering the model.
|
|
37983
37537
|
* @param [options.lightColor] - The light color when shading the model. When <code>undefined</code> the scene's light color is used instead.
|
|
37984
37538
|
* @param [options.imageBasedLighting] - The properties for managing image-based lighting on this model.
|
|
37985
|
-
* @param [options.environmentMapOptions] - The properties for managing dynamic environment maps on this model.
|
|
37986
37539
|
* @param [options.backFaceCulling = true] - Whether to cull back-facing geometry. When true, back face culling is determined by the material's doubleSided property; when false, back face culling is disabled. Back faces are not culled if the model's color is translucent.
|
|
37987
37540
|
* @param [options.credit] - A credit for the data source, which is displayed on the canvas.
|
|
37988
37541
|
* @param [options.showCreditsOnScreen = false] - Whether to display the credits of this model on screen.
|
|
@@ -38036,7 +37589,6 @@ export class Model {
|
|
|
38036
37589
|
clippingPolygons?: ClippingPolygonCollection;
|
|
38037
37590
|
lightColor?: Cartesian3;
|
|
38038
37591
|
imageBasedLighting?: ImageBasedLighting;
|
|
38039
|
-
environmentMapOptions?: DynamicEnvironmentMapManager.ConstructorOptions;
|
|
38040
37592
|
backFaceCulling?: boolean;
|
|
38041
37593
|
credit?: Credit | string;
|
|
38042
37594
|
showCreditsOnScreen?: boolean;
|
|
@@ -39272,19 +38824,10 @@ export var className: string;
|
|
|
39272
38824
|
export var propertyName: string;
|
|
39273
38825
|
|
|
39274
38826
|
/**
|
|
39275
|
-
* The
|
|
39276
|
-
structure, as obtained from the `MetadataSchema`
|
|
38827
|
+
* The optional ID of the metadata schema
|
|
39277
38828
|
*/
|
|
39278
38829
|
export var classProperty: MetadataClassProperty;
|
|
39279
38830
|
|
|
39280
|
-
/**
|
|
39281
|
-
* The `PropertyTextureProperty` or `PropertyAttributeProperty` that
|
|
39282
|
-
is described by this structure, as obtained from the property texture
|
|
39283
|
-
or property attribute of the `StructuralMetadata` that matches the
|
|
39284
|
-
class name and property name.
|
|
39285
|
-
*/
|
|
39286
|
-
export var metadataProperty: any;
|
|
39287
|
-
|
|
39288
38831
|
/**
|
|
39289
38832
|
* Compute the rectangle that describes the part of the drawing buffer
|
|
39290
38833
|
that is relevant for picking.
|
|
@@ -39502,10 +39045,10 @@ export class PointPrimitive {
|
|
|
39502
39045
|
/**
|
|
39503
39046
|
* Determines if this point equals another point. Points are equal if all their properties
|
|
39504
39047
|
are equal. Points in different collections can be equal.
|
|
39505
|
-
* @param
|
|
39048
|
+
* @param other - The point to compare for equality.
|
|
39506
39049
|
* @returns <code>true</code> if the points are equal; otherwise, <code>false</code>.
|
|
39507
39050
|
*/
|
|
39508
|
-
equals(other
|
|
39051
|
+
equals(other: PointPrimitive): boolean;
|
|
39509
39052
|
}
|
|
39510
39053
|
|
|
39511
39054
|
/**
|
|
@@ -40278,20 +39821,32 @@ export class PostProcessStageCollection {
|
|
|
40278
39821
|
surface receives light and regardless of the light's position.
|
|
40279
39822
|
</p>
|
|
40280
39823
|
<p>
|
|
40281
|
-
The uniforms have the following properties:
|
|
39824
|
+
The uniforms have the following properties: <code>intensity</code>, <code>bias</code>, <code>lengthCap</code>,
|
|
39825
|
+
<code>stepSize</code>, <code>frustumLength</code>, <code>ambientOcclusionOnly</code>,
|
|
39826
|
+
<code>delta</code>, <code>sigma</code>, and <code>blurStepSize</code>.
|
|
39827
|
+
</p>
|
|
40282
39828
|
<ul>
|
|
40283
39829
|
<li><code>intensity</code> is a scalar value used to lighten or darken the shadows exponentially. Higher values make the shadows darker. The default value is <code>3.0</code>.</li>
|
|
39830
|
+
|
|
40284
39831
|
<li><code>bias</code> is a scalar value representing an angle in radians. If the dot product between the normal of the sample and the vector to the camera is less than this value,
|
|
40285
39832
|
sampling stops in the current direction. This is used to remove shadows from near planar edges. The default value is <code>0.1</code>.</li>
|
|
39833
|
+
|
|
40286
39834
|
<li><code>lengthCap</code> is a scalar value representing a length in meters. If the distance from the current sample to first sample is greater than this value,
|
|
40287
39835
|
sampling stops in the current direction. The default value is <code>0.26</code>.</li>
|
|
40288
|
-
|
|
40289
|
-
<li><code>
|
|
40290
|
-
|
|
39836
|
+
|
|
39837
|
+
<li><code>stepSize</code> is a scalar value indicating the distance to the next texel sample in the current direction. The default value is <code>1.95</code>.</li>
|
|
39838
|
+
|
|
39839
|
+
<li><code>frustumLength</code> is a scalar value in meters. If the current fragment has a distance from the camera greater than this value, ambient occlusion is not computed for the fragment.
|
|
39840
|
+
The default value is <code>1000.0</code>.</li>
|
|
39841
|
+
|
|
40291
39842
|
<li><code>ambientOcclusionOnly</code> is a boolean value. When <code>true</code>, only the shadows generated are written to the output. When <code>false</code>, the input texture is modulated
|
|
40292
39843
|
with the ambient occlusion. This is a useful debug option for seeing the effects of changing the uniform values. The default value is <code>false</code>.</li>
|
|
40293
39844
|
</ul>
|
|
40294
39845
|
<p>
|
|
39846
|
+
<code>delta</code>, <code>sigma</code>, and <code>blurStepSize</code> are the same properties as {@link PostProcessStageLibrary#createBlurStage}.
|
|
39847
|
+
The blur is applied to the shadows generated from the image to make them smoother.
|
|
39848
|
+
</p>
|
|
39849
|
+
<p>
|
|
40295
39850
|
When enabled, this stage will execute before all others.
|
|
40296
39851
|
</p>
|
|
40297
39852
|
*/
|
|
@@ -41657,10 +41212,9 @@ export class Scene {
|
|
|
41657
41212
|
values from
|
|
41658
41213
|
* @param propertyName - The name of the metadata property to pick
|
|
41659
41214
|
values from
|
|
41660
|
-
* @returns The metadata value
|
|
41661
|
-
no matching metadata was found at the given position
|
|
41215
|
+
* @returns The metadata value
|
|
41662
41216
|
*/
|
|
41663
|
-
pickMetadata(windowPosition: Cartesian2, schemaId: string | undefined, className: string, propertyName: string):
|
|
41217
|
+
pickMetadata(windowPosition: Cartesian2, schemaId: string | undefined, className: string, propertyName: string): any;
|
|
41664
41218
|
/**
|
|
41665
41219
|
* Pick the schema of the metadata of the object at the given position
|
|
41666
41220
|
* @param windowPosition - Window coordinates to perform picking on.
|
|
@@ -43383,13 +42937,13 @@ const positron = new Cesium.UrlTemplateImageryProvider({
|
|
|
43383
42937
|
});
|
|
43384
42938
|
// Access a Web Map Service (WMS) server.
|
|
43385
42939
|
const wms = new Cesium.UrlTemplateImageryProvider({
|
|
43386
|
-
url : 'https://
|
|
43387
|
-
'
|
|
43388
|
-
'styles=&service=WMS&version=1.
|
|
43389
|
-
'layers=
|
|
42940
|
+
url : 'https://programs.communications.gov.au/geoserver/ows?tiled=true&' +
|
|
42941
|
+
'transparent=true&format=image%2Fpng&exceptions=application%2Fvnd.ogc.se_xml&' +
|
|
42942
|
+
'styles=&service=WMS&version=1.1.1&request=GetMap&' +
|
|
42943
|
+
'layers=public%3AMyBroadband_Availability&srs=EPSG%3A3857&' +
|
|
43390
42944
|
'bbox={westProjected}%2C{southProjected}%2C{eastProjected}%2C{northProjected}&' +
|
|
43391
42945
|
'width=256&height=256',
|
|
43392
|
-
rectangle : Cesium.Rectangle.fromDegrees(
|
|
42946
|
+
rectangle : Cesium.Rectangle.fromDegrees(96.799393, -43.598214999057824, 153.63925700000001, -9.2159219997013)
|
|
43393
42947
|
});
|
|
43394
42948
|
// Using custom tags in your template url.
|
|
43395
42949
|
const custom = new Cesium.UrlTemplateImageryProvider({
|
|
@@ -44433,7 +43987,6 @@ const widget2 = new Cesium.CesiumWidget("cesiumContainer", {
|
|
|
44433
43987
|
* @param container - The DOM element or ID that will contain the widget.
|
|
44434
43988
|
* @param [options] - Object with the following properties:
|
|
44435
43989
|
* @param [options.clock = new Clock()] - The clock to use to control current time.
|
|
44436
|
-
* @param [options.shouldAnimate = false] - <code>true</code> if the clock should attempt to advance simulation time by default, <code>false</code> otherwise.
|
|
44437
43990
|
* @param [options.ellipsoid = Ellipsoid.default] - The default ellipsoid.
|
|
44438
43991
|
* @param [options.baseLayer = ImageryLayer.fromWorldImagery()] - The bottommost imagery layer applied to the globe. If set to <code>false</code>, no imagery provider will be added.
|
|
44439
43992
|
* @param [options.terrainProvider = new EllipsoidTerrainProvider(options.ellipsoid)] - The terrain provider.
|
|
@@ -44449,17 +44002,14 @@ const widget2 = new Cesium.CesiumWidget("cesiumContainer", {
|
|
|
44449
44002
|
* @param [options.useBrowserRecommendedResolution = true] - If true, render at the browser's recommended resolution and ignore <code>window.devicePixelRatio</code>.
|
|
44450
44003
|
* @param [options.targetFrameRate] - The target frame rate when using the default render loop.
|
|
44451
44004
|
* @param [options.showRenderLoopErrors = true] - If true, this widget will automatically display an HTML panel to the user containing the error, if a render loop error occurs.
|
|
44452
|
-
* @param [options.automaticallyTrackDataSourceClocks = true] - If true, this widget will automatically track the clock settings of newly added DataSources, updating if the DataSource's clock changes. Set this to false if you want to configure the clock independently.
|
|
44453
44005
|
* @param [options.contextOptions] - Context and WebGL creation properties passed to {@link Scene}.
|
|
44454
44006
|
* @param [options.creditContainer] - The DOM element or ID that will contain the {@link CreditDisplay}. If not specified, the credits are added
|
|
44455
44007
|
to the bottom of the widget itself.
|
|
44456
44008
|
* @param [options.creditViewport] - The DOM element or ID that will contain the credit pop up created by the {@link CreditDisplay}. If not specified, it will appear over the widget itself.
|
|
44457
|
-
* @param [options.dataSources = new DataSourceCollection()] - The collection of data sources visualized by the widget. If this parameter is provided,
|
|
44458
|
-
the instance is assumed to be owned by the caller and will not be destroyed when the widget is destroyed.
|
|
44459
44009
|
* @param [options.shadows = false] - Determines if shadows are cast by light sources.
|
|
44460
44010
|
* @param [options.terrainShadows = ShadowMode.RECEIVE_ONLY] - Determines if the terrain casts or receives shadows from light sources.
|
|
44461
44011
|
* @param [options.mapMode2D = MapMode2D.INFINITE_SCROLL] - Determines if the 2D map is rotatable or can be scrolled infinitely in the horizontal direction.
|
|
44462
|
-
* @param [options.blurActiveElementOnCanvasFocus = true] - If true, the active element will blur when the
|
|
44012
|
+
* @param [options.blurActiveElementOnCanvasFocus = true] - If true, the active element will blur when the viewer's canvas is clicked. Setting this to false is useful for cases when the canvas is clicked only for retrieving position or an entity data without actually meaning to set the canvas to be the active element.
|
|
44463
44013
|
* @param [options.requestRenderMode = false] - If true, rendering a frame will only occur when needed as determined by changes within the scene. Enabling improves performance of the application, but requires using {@link Scene#requestRender} to render a new frame explicitly in this mode. This will be necessary in many cases after making changes to the scene in other parts of the API. See {@link https://cesium.com/blog/2018/01/24/cesium-scene-rendering-performance/|Improving Performance with Explicit Rendering}.
|
|
44464
44014
|
* @param [options.maximumRenderTimeChange = 0.0] - If requestRenderMode is true, this value defines the maximum change in simulation time allowed before a render is requested. See {@link https://cesium.com/blog/2018/01/24/cesium-scene-rendering-performance/|Improving Performance with Explicit Rendering}.
|
|
44465
44015
|
* @param [options.msaaSamples = 4] - If provided, this value controls the rate of multisample antialiasing. Typical multisampling rates are 2, 4, and sometimes 8 samples per pixel. Higher sampling rates of MSAA may impact performance in exchange for improved visual quality. This value only applies to WebGL2 contexts that support multisample render targets. Set to 1 to disable MSAA.
|
|
@@ -44467,7 +44017,6 @@ const widget2 = new Cesium.CesiumWidget("cesiumContainer", {
|
|
|
44467
44017
|
export class CesiumWidget {
|
|
44468
44018
|
constructor(container: Element | string, options?: {
|
|
44469
44019
|
clock?: Clock;
|
|
44470
|
-
shouldAnimate?: boolean;
|
|
44471
44020
|
ellipsoid?: Ellipsoid;
|
|
44472
44021
|
baseLayer?: ImageryLayer | false;
|
|
44473
44022
|
terrainProvider?: TerrainProvider;
|
|
@@ -44483,11 +44032,9 @@ export class CesiumWidget {
|
|
|
44483
44032
|
useBrowserRecommendedResolution?: boolean;
|
|
44484
44033
|
targetFrameRate?: number;
|
|
44485
44034
|
showRenderLoopErrors?: boolean;
|
|
44486
|
-
automaticallyTrackDataSourceClocks?: boolean;
|
|
44487
44035
|
contextOptions?: ContextOptions;
|
|
44488
44036
|
creditContainer?: Element | string;
|
|
44489
44037
|
creditViewport?: Element | string;
|
|
44490
|
-
dataSources?: DataSourceCollection;
|
|
44491
44038
|
shadows?: boolean;
|
|
44492
44039
|
terrainShadows?: ShadowMode;
|
|
44493
44040
|
mapMode2D?: MapMode2D;
|
|
@@ -44528,19 +44075,6 @@ export class CesiumWidget {
|
|
|
44528
44075
|
* Manages the list of credits to display on screen and in the lightbox.
|
|
44529
44076
|
*/
|
|
44530
44077
|
creditDisplay: CreditDisplay;
|
|
44531
|
-
/**
|
|
44532
|
-
* Gets the display used for {@link DataSource} visualization.
|
|
44533
|
-
*/
|
|
44534
|
-
readonly dataSourceDisplay: DataSourceDisplay;
|
|
44535
|
-
/**
|
|
44536
|
-
* Gets the collection of entities not tied to a particular data source.
|
|
44537
|
-
This is a shortcut to [dataSourceDisplay.defaultDataSource.entities]{@link CesiumWidget#dataSourceDisplay}.
|
|
44538
|
-
*/
|
|
44539
|
-
readonly entities: EntityCollection;
|
|
44540
|
-
/**
|
|
44541
|
-
* Gets the set of {@link DataSource} instances to be visualized.
|
|
44542
|
-
*/
|
|
44543
|
-
readonly dataSources: DataSourceCollection;
|
|
44544
44078
|
/**
|
|
44545
44079
|
* Gets the camera.
|
|
44546
44080
|
*/
|
|
@@ -44594,25 +44128,6 @@ export class CesiumWidget {
|
|
|
44594
44128
|
this flag is true or false.
|
|
44595
44129
|
*/
|
|
44596
44130
|
useBrowserRecommendedResolution: boolean;
|
|
44597
|
-
/**
|
|
44598
|
-
* Gets or sets whether or not data sources can temporarily pause
|
|
44599
|
-
animation in order to avoid showing an incomplete picture to the user.
|
|
44600
|
-
For example, if asynchronous primitives are being processed in the
|
|
44601
|
-
background, the clock will not advance until the geometry is ready.
|
|
44602
|
-
*/
|
|
44603
|
-
allowDataSourcesToSuspendAnimation: boolean;
|
|
44604
|
-
/**
|
|
44605
|
-
* Gets or sets the Entity instance currently being tracked by the camera.
|
|
44606
|
-
*/
|
|
44607
|
-
trackedEntity: Entity | undefined;
|
|
44608
|
-
/**
|
|
44609
|
-
* Gets the event that is raised when the tracked entity changes.
|
|
44610
|
-
*/
|
|
44611
|
-
readonly trackedEntityChanged: Event;
|
|
44612
|
-
/**
|
|
44613
|
-
* Gets or sets the data source to track with the widget's clock.
|
|
44614
|
-
*/
|
|
44615
|
-
clockTrackedDataSource: DataSource;
|
|
44616
44131
|
/**
|
|
44617
44132
|
* Show an error panel to the user containing a title and a longer error message,
|
|
44618
44133
|
which can be dismissed using an OK button. This panel is displayed automatically
|
|
@@ -44643,51 +44158,6 @@ export class CesiumWidget {
|
|
|
44643
44158
|
unless <code>useDefaultRenderLoop</code> is set to false;
|
|
44644
44159
|
*/
|
|
44645
44160
|
render(): void;
|
|
44646
|
-
/**
|
|
44647
|
-
* Asynchronously sets the camera to view the provided entity, entities, or data source.
|
|
44648
|
-
If the data source is still in the process of loading or the visualization is otherwise still loading,
|
|
44649
|
-
this method waits for the data to be ready before performing the zoom.
|
|
44650
|
-
|
|
44651
|
-
<p>The offset is heading/pitch/range in the local east-north-up reference frame centered at the center of the bounding sphere.
|
|
44652
|
-
The heading and the pitch angles are defined in the local east-north-up reference frame.
|
|
44653
|
-
The heading is the angle from y axis and increasing towards the x axis. Pitch is the rotation from the xy-plane. Positive pitch
|
|
44654
|
-
angles are above the plane. Negative pitch angles are below the plane. The range is the distance from the center. If the range is
|
|
44655
|
-
zero, a range will be computed such that the whole bounding sphere is visible.</p>
|
|
44656
|
-
|
|
44657
|
-
<p>In 2D, there must be a top down view. The camera will be placed above the target looking down. The height above the
|
|
44658
|
-
target will be the range. The heading will be determined from the offset. If the heading cannot be
|
|
44659
|
-
determined from the offset, the heading will be north.</p>
|
|
44660
|
-
* @param target - The entity, array of entities, entity collection, data source, Cesium3DTileset, point cloud, or imagery layer to view. You can also pass a promise that resolves to one of the previously mentioned types.
|
|
44661
|
-
* @param [offset] - The offset from the center of the entity in the local east-north-up reference frame.
|
|
44662
|
-
* @returns A Promise that resolves to true if the zoom was successful or false if the target is not currently visualized in the scene or the zoom was cancelled.
|
|
44663
|
-
*/
|
|
44664
|
-
zoomTo(target: Entity | Entity[] | EntityCollection | DataSource | ImageryLayer | Cesium3DTileset | TimeDynamicPointCloud | Promise<Entity | Entity[] | EntityCollection | DataSource | ImageryLayer | Cesium3DTileset | TimeDynamicPointCloud | VoxelPrimitive>, offset?: HeadingPitchRange): Promise<boolean>;
|
|
44665
|
-
/**
|
|
44666
|
-
* Flies the camera to the provided entity, entities, or data source.
|
|
44667
|
-
If the data source is still in the process of loading or the visualization is otherwise still loading,
|
|
44668
|
-
this method waits for the data to be ready before performing the flight.
|
|
44669
|
-
|
|
44670
|
-
<p>The offset is heading/pitch/range in the local east-north-up reference frame centered at the center of the bounding sphere.
|
|
44671
|
-
The heading and the pitch angles are defined in the local east-north-up reference frame.
|
|
44672
|
-
The heading is the angle from y axis and increasing towards the x axis. Pitch is the rotation from the xy-plane. Positive pitch
|
|
44673
|
-
angles are above the plane. Negative pitch angles are below the plane. The range is the distance from the center. If the range is
|
|
44674
|
-
zero, a range will be computed such that the whole bounding sphere is visible.</p>
|
|
44675
|
-
|
|
44676
|
-
<p>In 2D, there must be a top down view. The camera will be placed above the target looking down. The height above the
|
|
44677
|
-
target will be the range. The heading will be determined from the offset. If the heading cannot be
|
|
44678
|
-
determined from the offset, the heading will be north.</p>
|
|
44679
|
-
* @param target - The entity, array of entities, entity collection, data source, Cesium3DTileset, point cloud, or imagery layer to view. You can also pass a promise that resolves to one of the previously mentioned types.
|
|
44680
|
-
* @param [options] - Object with the following properties:
|
|
44681
|
-
* @param [options.duration = 3.0] - The duration of the flight in seconds.
|
|
44682
|
-
* @param [options.maximumHeight] - The maximum height at the peak of the flight.
|
|
44683
|
-
* @param [options.offset] - The offset from the target in the local east-north-up reference frame centered at the target.
|
|
44684
|
-
* @returns A Promise that resolves to true if the flight was successful or false if the target is not currently visualized in the scene or the flight was cancelled. //TODO: Cleanup entity mentions
|
|
44685
|
-
*/
|
|
44686
|
-
flyTo(target: Entity | Entity[] | EntityCollection | DataSource | ImageryLayer | Cesium3DTileset | TimeDynamicPointCloud | Promise<Entity | Entity[] | EntityCollection | DataSource | ImageryLayer | Cesium3DTileset | TimeDynamicPointCloud | VoxelPrimitive>, options?: {
|
|
44687
|
-
duration?: number;
|
|
44688
|
-
maximumHeight?: number;
|
|
44689
|
-
offset?: HeadingPitchRange;
|
|
44690
|
-
}): Promise<boolean>;
|
|
44691
44161
|
}
|
|
44692
44162
|
|
|
44693
44163
|
/**
|
|
@@ -46623,7 +46093,7 @@ export namespace Viewer {
|
|
|
46623
46093
|
* @property [baseLayerPicker = true] - If set to false, the BaseLayerPicker widget will not be created.
|
|
46624
46094
|
* @property [fullscreenButton = true] - If set to false, the FullscreenButton widget will not be created.
|
|
46625
46095
|
* @property [vrButton = false] - If set to true, the VRButton widget will be created.
|
|
46626
|
-
* @property [geocoder =
|
|
46096
|
+
* @property [geocoder = true] - If set to false, the Geocoder widget will not be created.
|
|
46627
46097
|
* @property [homeButton = true] - If set to false, the HomeButton widget will not be created.
|
|
46628
46098
|
* @property [infoBox = true] - If set to false, the InfoBox widget will not be created.
|
|
46629
46099
|
* @property [sceneModePicker = true] - If set to false, the SceneModePicker widget will not be created.
|
|
@@ -46638,7 +46108,7 @@ export namespace Viewer {
|
|
|
46638
46108
|
* @property [imageryProviderViewModels = createDefaultImageryProviderViewModels()] - The array of ProviderViewModels to be selectable from the BaseLayerPicker. This value is only valid if `baseLayerPicker` is set to true.
|
|
46639
46109
|
* @property [selectedTerrainProviderViewModel] - The view model for the current base terrain layer, if not supplied the first available base layer is used. This value is only valid if `baseLayerPicker` is set to true.
|
|
46640
46110
|
* @property [terrainProviderViewModels = createDefaultTerrainProviderViewModels()] - The array of ProviderViewModels to be selectable from the BaseLayerPicker. This value is only valid if `baseLayerPicker` is set to true.
|
|
46641
|
-
* @property [baseLayer = ImageryLayer.fromWorldImagery()] - The bottommost imagery layer applied to the globe. If set to <code>false</code>, no imagery provider will be added. This value is only valid if `baseLayerPicker` is set to false.
|
|
46111
|
+
* @property [baseLayer = ImageryLayer.fromWorldImagery()] - The bottommost imagery layer applied to the globe. If set to <code>false</code>, no imagery provider will be added. This value is only valid if `baseLayerPicker` is set to false.
|
|
46642
46112
|
* @property [ellipsoid = Ellipsoid.default] - The default ellipsoid.
|
|
46643
46113
|
* @property [terrainProvider = new EllipsoidTerrainProvider()] - The terrain provider to use
|
|
46644
46114
|
* @property [terrain] - A terrain object which handles asynchronous terrain provider. Can only specify if options.terrainProvider is undefined.
|
|
@@ -46674,7 +46144,7 @@ export namespace Viewer {
|
|
|
46674
46144
|
baseLayerPicker?: boolean;
|
|
46675
46145
|
fullscreenButton?: boolean;
|
|
46676
46146
|
vrButton?: boolean;
|
|
46677
|
-
geocoder?: boolean |
|
|
46147
|
+
geocoder?: boolean | GeocoderService[];
|
|
46678
46148
|
homeButton?: boolean;
|
|
46679
46149
|
infoBox?: boolean;
|
|
46680
46150
|
sceneModePicker?: boolean;
|