mars3d-cesium 1.121.2 → 1.122.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Build/Cesium/Cesium.d.ts +510 -119
- package/Build/Cesium/Cesium.js +6205 -6180
- package/Build/Cesium/Workers/{chunk-T755YQVS.js → chunk-2744EW7N.js} +2 -2
- package/Build/Cesium/Workers/{chunk-UVIO3UB6.js → chunk-27UWHT4D.js} +2 -2
- package/Build/Cesium/Workers/{chunk-JO3EKK5T.js → chunk-2HIRFTYB.js} +2 -2
- package/Build/Cesium/Workers/{chunk-6YUBO45T.js → chunk-2NAI7YQ3.js} +1 -1
- package/Build/Cesium/Workers/{chunk-3JADGLDO.js → chunk-35ZH4J6R.js} +2 -2
- package/Build/Cesium/Workers/{chunk-ADAADJRV.js → chunk-3OZXQUAM.js} +2 -2
- package/Build/Cesium/Workers/{chunk-WHY4OODE.js → chunk-3U6PIWIV.js} +2 -2
- package/Build/Cesium/Workers/{chunk-3C6MHBDL.js → chunk-45FCQ3FJ.js} +2 -2
- package/Build/Cesium/Workers/{chunk-J4LU4BFP.js → chunk-4FSVUTPL.js} +1 -1
- package/Build/Cesium/Workers/{chunk-BQKZ6XJY.js → chunk-4TXI27XR.js} +2 -2
- package/Build/Cesium/Workers/{chunk-YZ7ZANG6.js → chunk-542N7J5N.js} +2 -2
- package/Build/Cesium/Workers/{chunk-PIETW75Y.js → chunk-5E2B6U7T.js} +2 -2
- package/Build/Cesium/Workers/{chunk-ZYCN52A2.js → chunk-6KLVDWWE.js} +1 -1
- package/Build/Cesium/Workers/{chunk-BRSJA3YQ.js → chunk-6P5KAIBX.js} +2 -2
- package/Build/Cesium/Workers/{chunk-XJIT2Y7B.js → chunk-6X7WLTTW.js} +1 -1
- package/Build/Cesium/Workers/{chunk-U2CN5G4B.js → chunk-6YAFAZVV.js} +2 -2
- package/Build/Cesium/Workers/{chunk-3SLXVRDL.js → chunk-A6IU7XS3.js} +2 -2
- package/Build/Cesium/Workers/chunk-AELLPJXN.js +26 -0
- package/Build/Cesium/Workers/{chunk-5V7LCTF6.js → chunk-BUNDO2NJ.js} +2 -2
- package/Build/Cesium/Workers/{chunk-FMYWHDT5.js → chunk-CTEHZS7O.js} +2 -2
- package/Build/Cesium/Workers/{chunk-6OLJDIBF.js → chunk-CU5VINVO.js} +2 -2
- package/Build/Cesium/Workers/{chunk-E5ZEVCLK.js → chunk-DELT5W27.js} +2 -2
- package/Build/Cesium/Workers/{chunk-2LUDNBGV.js → chunk-ESVPYFZH.js} +2 -2
- package/Build/Cesium/Workers/{chunk-JCWIHPZQ.js → chunk-FEOZU7P7.js} +2 -2
- package/Build/Cesium/Workers/{chunk-2GVJZR35.js → chunk-FHVNMDL2.js} +2 -2
- package/Build/Cesium/Workers/{chunk-EOY6Q53K.js → chunk-GFUBU5RD.js} +8 -8
- package/Build/Cesium/Workers/chunk-GXCW7MIH.js +26 -0
- package/Build/Cesium/Workers/{chunk-WLMAWLW3.js → chunk-HBXZQO7G.js} +2 -2
- package/Build/Cesium/Workers/{chunk-EF5GLXSV.js → chunk-IFAARW2T.js} +1 -1
- package/Build/Cesium/Workers/{chunk-RQG5724M.js → chunk-JGTLNH7T.js} +2 -2
- package/Build/Cesium/Workers/{chunk-T7RJP5X5.js → chunk-JQWRUZSV.js} +2 -2
- package/Build/Cesium/Workers/{chunk-FXIOSFBE.js → chunk-KJJX7FYJ.js} +2 -2
- package/Build/Cesium/Workers/{chunk-3RKDFH2K.js → chunk-P75RMBWR.js} +2 -2
- package/Build/Cesium/Workers/{chunk-74H2KQDK.js → chunk-PFE76RUV.js} +2 -2
- package/Build/Cesium/Workers/{chunk-4J67FZA7.js → chunk-QE3ZUOZY.js} +2 -2
- package/Build/Cesium/Workers/{chunk-TSLAMYJY.js → chunk-QTX6TFJQ.js} +2 -2
- package/Build/Cesium/Workers/{chunk-QA6HHOCU.js → chunk-RAYRECQS.js} +2 -2
- package/Build/Cesium/Workers/{chunk-AQ3OPC2R.js → chunk-RFPX772U.js} +2 -2
- package/Build/Cesium/Workers/{chunk-44RVUZAM.js → chunk-S5WIMI2N.js} +2 -2
- package/Build/Cesium/Workers/{chunk-CCRERSAO.js → chunk-U3H5JVOB.js} +2 -2
- package/Build/Cesium/Workers/{chunk-CTR74FRX.js → chunk-UGB43LJM.js} +2 -2
- package/Build/Cesium/Workers/{chunk-FHNS6QMW.js → chunk-UKRRGB4P.js} +2 -2
- package/Build/Cesium/Workers/{chunk-LATIBMTL.js → chunk-WFZLZ2P5.js} +2 -2
- package/Build/Cesium/Workers/{chunk-TUXYH5MH.js → chunk-XHJOIQBC.js} +2 -2
- package/Build/Cesium/Workers/{chunk-GLS4R7PI.js → chunk-YEGGJGFV.js} +2 -2
- package/Build/Cesium/Workers/{chunk-UVPXDNIU.js → chunk-YGSEQ273.js} +2 -2
- package/Build/Cesium/Workers/{chunk-DC63KKL4.js → chunk-ZDYLWKVC.js} +2 -2
- package/Build/Cesium/Workers/{chunk-X4YJZMAF.js → chunk-ZIUWYBT3.js} +2 -2
- package/Build/Cesium/Workers/{chunk-A73XHW5F.js → chunk-ZKPELTMK.js} +2 -2
- package/Build/Cesium/Workers/{chunk-26DKVJFV.js → chunk-ZPNGL6DU.js} +2 -2
- package/Build/Cesium/Workers/{chunk-IB2WTVO5.js → chunk-ZXPIMV2C.js} +2 -2
- package/Build/Cesium/Workers/{chunk-KY7PGMXV.js → chunk-ZYB4DKDQ.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 +6845 -6820
- package/Build/Cesium/index.js +6855 -6830
- package/README.md +55 -74
- package/package.json +1 -1
- package/Build/Cesium/Workers/chunk-53O2RJIJ.js +0 -26
- package/Build/Cesium/Workers/chunk-P4A4AE2S.js +0 -26
package/Build/Cesium/Cesium.d.ts
CHANGED
|
@@ -3133,7 +3133,7 @@ export const Check: {
|
|
|
3133
3133
|
lessThanOrEquals(
|
|
3134
3134
|
name: string,
|
|
3135
3135
|
test: any,
|
|
3136
|
-
limit: number
|
|
3136
|
+
limit: number,
|
|
3137
3137
|
): asserts test is number;
|
|
3138
3138
|
/**
|
|
3139
3139
|
* Throws if test is not typeof 'number' and greater than limit
|
|
@@ -3146,7 +3146,7 @@ export const Check: {
|
|
|
3146
3146
|
greaterThan(
|
|
3147
3147
|
name: string,
|
|
3148
3148
|
test: any,
|
|
3149
|
-
limit: number
|
|
3149
|
+
limit: number,
|
|
3150
3150
|
): asserts test is number;
|
|
3151
3151
|
/**
|
|
3152
3152
|
* Throws if test is not typeof 'number' and greater than or equal to limit
|
|
@@ -3159,7 +3159,7 @@ export const Check: {
|
|
|
3159
3159
|
greaterThanOrEquals(
|
|
3160
3160
|
name: string,
|
|
3161
3161
|
test: any,
|
|
3162
|
-
limit: number
|
|
3162
|
+
limit: number,
|
|
3163
3163
|
): asserts test is number;
|
|
3164
3164
|
/**
|
|
3165
3165
|
* Throws if test1 and test2 is not typeof 'number' and not equal in value
|
|
@@ -7195,17 +7195,17 @@ export class Geometry {
|
|
|
7195
7195
|
* Optional index data that - along with {@link Geometry#primitiveType} -
|
|
7196
7196
|
determines the primitives in the geometry.
|
|
7197
7197
|
*/
|
|
7198
|
-
indices: any[];
|
|
7198
|
+
indices: any[] | undefined;
|
|
7199
7199
|
/**
|
|
7200
7200
|
* The type of primitives in the geometry. This is most often {@link PrimitiveType.TRIANGLES},
|
|
7201
7201
|
but can varying based on the specific geometry.
|
|
7202
7202
|
*/
|
|
7203
|
-
primitiveType: PrimitiveType;
|
|
7203
|
+
primitiveType: PrimitiveType | undefined;
|
|
7204
7204
|
/**
|
|
7205
7205
|
* An optional bounding sphere that fully encloses the geometry. This is
|
|
7206
7206
|
commonly used for culling.
|
|
7207
7207
|
*/
|
|
7208
|
-
boundingSphere: BoundingSphere;
|
|
7208
|
+
boundingSphere: BoundingSphere | undefined;
|
|
7209
7209
|
/**
|
|
7210
7210
|
* Computes the number of vertices in a geometry. The runtime is linear with
|
|
7211
7211
|
respect to the number of attributes in a vertex, not the number of vertices.
|
|
@@ -7237,17 +7237,17 @@ the geometry's vertices.
|
|
|
7237
7237
|
primitiveType : Cesium.PrimitiveType.LINE_LOOP
|
|
7238
7238
|
});
|
|
7239
7239
|
* @param [options] - Object with the following properties:
|
|
7240
|
-
* @param
|
|
7241
|
-
* @param
|
|
7240
|
+
* @param options.componentDatatype - The datatype of each component in the attribute, e.g., individual elements in values.
|
|
7241
|
+
* @param options.componentsPerAttribute - A number between 1 and 4 that defines the number of components in an attributes.
|
|
7242
7242
|
* @param [options.normalize = false] - When <code>true</code> and <code>componentDatatype</code> is an integer format, indicate that the components should be mapped to the range [0, 1] (unsigned) or [-1, 1] (signed) when they are accessed as floating-point for rendering.
|
|
7243
|
-
* @param
|
|
7243
|
+
* @param options.values - The values for the attributes stored in a typed array.
|
|
7244
7244
|
*/
|
|
7245
7245
|
export class GeometryAttribute {
|
|
7246
7246
|
constructor(options?: {
|
|
7247
|
-
componentDatatype
|
|
7248
|
-
componentsPerAttribute
|
|
7247
|
+
componentDatatype: ComponentDatatype;
|
|
7248
|
+
componentsPerAttribute: number;
|
|
7249
7249
|
normalize?: boolean;
|
|
7250
|
-
values
|
|
7250
|
+
values: number[] | Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array;
|
|
7251
7251
|
});
|
|
7252
7252
|
/**
|
|
7253
7253
|
* The datatype of each component in the attribute, e.g., individual elements in
|
|
@@ -7318,42 +7318,42 @@ export class GeometryAttributes {
|
|
|
7318
7318
|
64-bit floating-point (for precision). 3 components per attribute.
|
|
7319
7319
|
</p>
|
|
7320
7320
|
*/
|
|
7321
|
-
position: GeometryAttribute;
|
|
7321
|
+
position: GeometryAttribute | undefined;
|
|
7322
7322
|
/**
|
|
7323
7323
|
* The normal attribute (normalized), which is commonly used for lighting.
|
|
7324
7324
|
<p>
|
|
7325
7325
|
32-bit floating-point. 3 components per attribute.
|
|
7326
7326
|
</p>
|
|
7327
7327
|
*/
|
|
7328
|
-
normal: GeometryAttribute;
|
|
7328
|
+
normal: GeometryAttribute | undefined;
|
|
7329
7329
|
/**
|
|
7330
7330
|
* The 2D texture coordinate attribute.
|
|
7331
7331
|
<p>
|
|
7332
7332
|
32-bit floating-point. 2 components per attribute
|
|
7333
7333
|
</p>
|
|
7334
7334
|
*/
|
|
7335
|
-
st: GeometryAttribute;
|
|
7335
|
+
st: GeometryAttribute | undefined;
|
|
7336
7336
|
/**
|
|
7337
7337
|
* The bitangent attribute (normalized), which is used for tangent-space effects like bump mapping.
|
|
7338
7338
|
<p>
|
|
7339
7339
|
32-bit floating-point. 3 components per attribute.
|
|
7340
7340
|
</p>
|
|
7341
7341
|
*/
|
|
7342
|
-
bitangent: GeometryAttribute;
|
|
7342
|
+
bitangent: GeometryAttribute | undefined;
|
|
7343
7343
|
/**
|
|
7344
7344
|
* The tangent attribute (normalized), which is used for tangent-space effects like bump mapping.
|
|
7345
7345
|
<p>
|
|
7346
7346
|
32-bit floating-point. 3 components per attribute.
|
|
7347
7347
|
</p>
|
|
7348
7348
|
*/
|
|
7349
|
-
tangent: GeometryAttribute;
|
|
7349
|
+
tangent: GeometryAttribute | undefined;
|
|
7350
7350
|
/**
|
|
7351
7351
|
* The color attribute.
|
|
7352
7352
|
<p>
|
|
7353
7353
|
8-bit unsigned integer. 4 components per attribute.
|
|
7354
7354
|
</p>
|
|
7355
7355
|
*/
|
|
7356
|
-
color: GeometryAttribute;
|
|
7356
|
+
color: GeometryAttribute | undefined;
|
|
7357
7357
|
}
|
|
7358
7358
|
|
|
7359
7359
|
/**
|
|
@@ -7428,7 +7428,7 @@ export class GeometryInstance {
|
|
|
7428
7428
|
/**
|
|
7429
7429
|
* User-defined object returned when the instance is picked or used to get/set per-instance attributes.
|
|
7430
7430
|
*/
|
|
7431
|
-
id: any;
|
|
7431
|
+
id: any | undefined;
|
|
7432
7432
|
/**
|
|
7433
7433
|
* Per-instance attributes like {@link ColorGeometryInstanceAttribute} or {@link ShowGeometryInstanceAttribute}.
|
|
7434
7434
|
{@link Geometry} attributes varying per vertex; these attributes are constant for the entire instance.
|
|
@@ -7752,7 +7752,7 @@ export class GoogleEarthEnterpriseMetadata {
|
|
|
7752
7752
|
/**
|
|
7753
7753
|
* True if imagery is sent as a protocol buffer, false if sent as plain images. If undefined we will try both.
|
|
7754
7754
|
*/
|
|
7755
|
-
protoImagery: boolean;
|
|
7755
|
+
protoImagery: boolean | undefined;
|
|
7756
7756
|
/**
|
|
7757
7757
|
* True if terrain is available.
|
|
7758
7758
|
*/
|
|
@@ -11126,8 +11126,8 @@ export class Matrix4 implements ArrayLike<number> {
|
|
|
11126
11126
|
* Computes a Matrix4 instance representing an off center perspective transformation.
|
|
11127
11127
|
* @param left - The number of meters to the left of the camera that will be in view.
|
|
11128
11128
|
* @param right - The number of meters to the right of the camera that will be in view.
|
|
11129
|
-
* @param bottom - The number of meters below
|
|
11130
|
-
* @param top - The number of meters above
|
|
11129
|
+
* @param bottom - The number of meters below the camera that will be in view.
|
|
11130
|
+
* @param top - The number of meters above the camera that will be in view.
|
|
11131
11131
|
* @param near - The distance to the near plane in meters.
|
|
11132
11132
|
* @param far - The distance to the far plane in meters.
|
|
11133
11133
|
* @param result - The object in which the result will be stored.
|
|
@@ -12331,11 +12331,11 @@ export class OrthographicFrustum {
|
|
|
12331
12331
|
/**
|
|
12332
12332
|
* The horizontal width of the frustum in meters.
|
|
12333
12333
|
*/
|
|
12334
|
-
width: number;
|
|
12334
|
+
width: number | undefined;
|
|
12335
12335
|
/**
|
|
12336
12336
|
* The aspect ratio of the frustum's width to it's height.
|
|
12337
12337
|
*/
|
|
12338
|
-
aspectRatio: number;
|
|
12338
|
+
aspectRatio: number | undefined;
|
|
12339
12339
|
/**
|
|
12340
12340
|
* The distance of the near plane.
|
|
12341
12341
|
*/
|
|
@@ -12454,19 +12454,19 @@ export class OrthographicOffCenterFrustum {
|
|
|
12454
12454
|
/**
|
|
12455
12455
|
* The left clipping plane.
|
|
12456
12456
|
*/
|
|
12457
|
-
left: number;
|
|
12457
|
+
left: number | undefined;
|
|
12458
12458
|
/**
|
|
12459
12459
|
* The right clipping plane.
|
|
12460
12460
|
*/
|
|
12461
|
-
right: number;
|
|
12461
|
+
right: number | undefined;
|
|
12462
12462
|
/**
|
|
12463
12463
|
* The top clipping plane.
|
|
12464
12464
|
*/
|
|
12465
|
-
top: number;
|
|
12465
|
+
top: number | undefined;
|
|
12466
12466
|
/**
|
|
12467
12467
|
* The bottom clipping plane.
|
|
12468
12468
|
*/
|
|
12469
|
-
bottom: number;
|
|
12469
|
+
bottom: number | undefined;
|
|
12470
12470
|
/**
|
|
12471
12471
|
* The distance of the near plane.
|
|
12472
12472
|
*/
|
|
@@ -12656,11 +12656,11 @@ export class PerspectiveFrustum {
|
|
|
12656
12656
|
as the horizontal FOV if the width is greater than the height, otherwise
|
|
12657
12657
|
it will be the vertical FOV.
|
|
12658
12658
|
*/
|
|
12659
|
-
fov: number;
|
|
12659
|
+
fov: number | undefined;
|
|
12660
12660
|
/**
|
|
12661
12661
|
* The aspect ratio of the frustum's width to it's height.
|
|
12662
12662
|
*/
|
|
12663
|
-
aspectRatio: number;
|
|
12663
|
+
aspectRatio: number | undefined;
|
|
12664
12664
|
/**
|
|
12665
12665
|
* The distance of the near plane.
|
|
12666
12666
|
*/
|
|
@@ -12699,6 +12699,7 @@ export class PerspectiveFrustum {
|
|
|
12699
12699
|
static unpack(array: number[], startingIndex?: number, result?: PerspectiveFrustum): PerspectiveFrustum;
|
|
12700
12700
|
/**
|
|
12701
12701
|
* Gets the perspective projection matrix computed from the view frustum.
|
|
12702
|
+
If necessary, the projection matrix will be recomputed.
|
|
12702
12703
|
*/
|
|
12703
12704
|
readonly projectionMatrix: Matrix4;
|
|
12704
12705
|
/**
|
|
@@ -12708,7 +12709,7 @@ export class PerspectiveFrustum {
|
|
|
12708
12709
|
/**
|
|
12709
12710
|
* Gets the angle of the vertical field of view, in radians.
|
|
12710
12711
|
*/
|
|
12711
|
-
readonly fovy: number;
|
|
12712
|
+
readonly fovy: number | undefined;
|
|
12712
12713
|
/**
|
|
12713
12714
|
* Creates a culling volume for this frustum.
|
|
12714
12715
|
* @example
|
|
@@ -12804,19 +12805,19 @@ export class PerspectiveOffCenterFrustum {
|
|
|
12804
12805
|
/**
|
|
12805
12806
|
* Defines the left clipping plane.
|
|
12806
12807
|
*/
|
|
12807
|
-
left: number;
|
|
12808
|
+
left: number | undefined;
|
|
12808
12809
|
/**
|
|
12809
12810
|
* Defines the right clipping plane.
|
|
12810
12811
|
*/
|
|
12811
|
-
right: number;
|
|
12812
|
+
right: number | undefined;
|
|
12812
12813
|
/**
|
|
12813
12814
|
* Defines the top clipping plane.
|
|
12814
12815
|
*/
|
|
12815
|
-
top: number;
|
|
12816
|
+
top: number | undefined;
|
|
12816
12817
|
/**
|
|
12817
12818
|
* Defines the bottom clipping plane.
|
|
12818
12819
|
*/
|
|
12819
|
-
bottom: number;
|
|
12820
|
+
bottom: number | undefined;
|
|
12820
12821
|
/**
|
|
12821
12822
|
* The distance of the near plane.
|
|
12822
12823
|
*/
|
|
@@ -12827,6 +12828,7 @@ export class PerspectiveOffCenterFrustum {
|
|
|
12827
12828
|
far: number;
|
|
12828
12829
|
/**
|
|
12829
12830
|
* Gets the perspective projection matrix computed from the view frustum.
|
|
12831
|
+
The projection matrix will be recomputed if any frustum parameters have changed.
|
|
12830
12832
|
*/
|
|
12831
12833
|
readonly projectionMatrix: Matrix4;
|
|
12832
12834
|
/**
|
|
@@ -19057,6 +19059,67 @@ export class BoxGraphics {
|
|
|
19057
19059
|
merge(source: BoxGraphics): void;
|
|
19058
19060
|
}
|
|
19059
19061
|
|
|
19062
|
+
/**
|
|
19063
|
+
* A {@link PositionProperty} whose value is lazily evaluated by a callback function.
|
|
19064
|
+
* @param callback - The function to be called when the position property is evaluated.
|
|
19065
|
+
* @param isConstant - <code>true</code> when the callback function returns the same value every time, <code>false</code> if the value will change.
|
|
19066
|
+
* @param [referenceFrame = ReferenceFrame.FIXED] - The reference frame in which the position is defined.
|
|
19067
|
+
*/
|
|
19068
|
+
export class CallbackPositionProperty {
|
|
19069
|
+
constructor(callback: CallbackPositionProperty.Callback, isConstant: boolean, referenceFrame?: ReferenceFrame);
|
|
19070
|
+
/**
|
|
19071
|
+
* Gets a value indicating if this property is constant.
|
|
19072
|
+
*/
|
|
19073
|
+
readonly isConstant: boolean;
|
|
19074
|
+
/**
|
|
19075
|
+
* Gets the event that is raised whenever the definition of this property changes.
|
|
19076
|
+
The definition is considered to have changed if a call to getValue would return
|
|
19077
|
+
a different result for the same time.
|
|
19078
|
+
*/
|
|
19079
|
+
readonly definitionChanged: Event;
|
|
19080
|
+
/**
|
|
19081
|
+
* Gets the reference frame in which the position is defined.
|
|
19082
|
+
*/
|
|
19083
|
+
referenceFrame: ReferenceFrame;
|
|
19084
|
+
/**
|
|
19085
|
+
* Gets the value of the property at the provided time in the fixed frame.
|
|
19086
|
+
* @param [time = JulianDate.now()] - The time for which to retrieve the value. If omitted, the current system time is used.
|
|
19087
|
+
* @param [result] - The object to store the value into, if omitted, a new instance is created and returned.
|
|
19088
|
+
* @returns The modified result parameter or a new instance if the result parameter was not supplied.
|
|
19089
|
+
*/
|
|
19090
|
+
getValue(time?: JulianDate, result?: Cartesian3): Cartesian3 | undefined;
|
|
19091
|
+
/**
|
|
19092
|
+
* Sets the callback to be used.
|
|
19093
|
+
* @param callback - The function to be called when the property is evaluated.
|
|
19094
|
+
* @param isConstant - <code>true</code> when the callback function returns the same value every time, <code>false</code> if the value will change.
|
|
19095
|
+
*/
|
|
19096
|
+
setCallback(callback: CallbackPositionProperty.Callback, isConstant: boolean): void;
|
|
19097
|
+
/**
|
|
19098
|
+
* Gets the value of the property at the provided time and in the provided reference frame.
|
|
19099
|
+
* @param time - The time for which to retrieve the value.
|
|
19100
|
+
* @param referenceFrame - The desired referenceFrame of the result.
|
|
19101
|
+
* @param [result] - The object to store the value into, if omitted, a new instance is created and returned.
|
|
19102
|
+
* @returns The modified result parameter or a new instance if the result parameter was not supplied.
|
|
19103
|
+
*/
|
|
19104
|
+
getValueInReferenceFrame(time: JulianDate, referenceFrame: ReferenceFrame, result?: Cartesian3): Cartesian3 | undefined;
|
|
19105
|
+
/**
|
|
19106
|
+
* Compares this property to the provided property and returns
|
|
19107
|
+
<code>true</code> if they are equal, <code>false</code> otherwise.
|
|
19108
|
+
* @param [other] - The other property.
|
|
19109
|
+
* @returns <code>true</code> if left and right are equal, <code>false</code> otherwise.
|
|
19110
|
+
*/
|
|
19111
|
+
equals(other?: Property): boolean;
|
|
19112
|
+
}
|
|
19113
|
+
|
|
19114
|
+
export namespace CallbackPositionProperty {
|
|
19115
|
+
/**
|
|
19116
|
+
* A function that returns the value of the position property.
|
|
19117
|
+
* @param [time = JulianDate.now()] - The time for which to retrieve the value. If omitted, the current system time is used.
|
|
19118
|
+
* @param [result] - The object to store the value into. If omitted, the function must create and return a new instance.
|
|
19119
|
+
*/
|
|
19120
|
+
type Callback = (time?: JulianDate, result?: Cartesian3) => Cartesian3 | undefined;
|
|
19121
|
+
}
|
|
19122
|
+
|
|
19060
19123
|
/**
|
|
19061
19124
|
* A {@link Property} whose value is lazily evaluated by a callback function.
|
|
19062
19125
|
* @param callback - The function to be called when the property is evaluated.
|
|
@@ -22634,6 +22697,7 @@ export namespace ModelGraphics {
|
|
|
22634
22697
|
* @property [show = true] - A boolean Property specifying the visibility of the model.
|
|
22635
22698
|
* @property [uri] - A string or Resource Property specifying the URI of the glTF asset.
|
|
22636
22699
|
* @property [scale = 1.0] - A numeric Property specifying a uniform linear scale.
|
|
22700
|
+
* @property [enableVerticalExaggeration = true] - A boolean Property specifying if the model is exaggerated along the ellipsoid normal when {@link Scene.verticalExaggeration} is set to a value other than <code>1.0</code>.
|
|
22637
22701
|
* @property [minimumPixelSize = 0.0] - A numeric Property specifying the approximate minimum pixel size of the model regardless of zoom.
|
|
22638
22702
|
* @property [maximumScale] - The maximum scale size of a model. An upper limit for minimumPixelSize.
|
|
22639
22703
|
* @property [incrementallyLoadTextures = true] - Determine if textures may continue to stream in after the model is loaded.
|
|
@@ -22658,6 +22722,7 @@ export namespace ModelGraphics {
|
|
|
22658
22722
|
show?: Property | boolean;
|
|
22659
22723
|
uri?: Property | string | Resource;
|
|
22660
22724
|
scale?: Property | number;
|
|
22725
|
+
enableVerticalExaggeration?: Property | boolean;
|
|
22661
22726
|
minimumPixelSize?: Property | number;
|
|
22662
22727
|
maximumScale?: Property | number;
|
|
22663
22728
|
incrementallyLoadTextures?: Property | boolean;
|
|
@@ -22713,6 +22778,10 @@ export class ModelGraphics {
|
|
|
22713
22778
|
values less than 1.0 decrease it.
|
|
22714
22779
|
*/
|
|
22715
22780
|
scale: Property | undefined;
|
|
22781
|
+
/**
|
|
22782
|
+
* Gets or sets the boolean Property specifying if the model is exaggerated along the ellipsoid normal when {@link Scene.verticalExaggeration} is set to a value other than <code>1.0</code>.
|
|
22783
|
+
*/
|
|
22784
|
+
enableVerticalExaggeration: Property | undefined;
|
|
22716
22785
|
/**
|
|
22717
22786
|
* Gets or sets the numeric Property specifying the approximate minimum
|
|
22718
22787
|
pixel size of the model regardless of zoom. This can be used to ensure that
|
|
@@ -24146,90 +24215,6 @@ export class PositionPropertyArray {
|
|
|
24146
24215
|
equals(other?: Property): boolean;
|
|
24147
24216
|
}
|
|
24148
24217
|
|
|
24149
|
-
/**
|
|
24150
|
-
* billboard, point, label 的 Primitive对象聚合类, 由火星科技Mars3D开发
|
|
24151
|
-
* @param [options] - An object with the following properties:
|
|
24152
|
-
* @param [options.enabled = false] - Whether or not to enable clustering.
|
|
24153
|
-
* @param [options.pixelRange = 80] - The pixel range to extend the screen space bounding box.
|
|
24154
|
-
* @param [options.minimumClusterSize = 2] - The minimum number of screen space objects that can be clustered.
|
|
24155
|
-
* @param [options.clusterBillboards = true] - Whether or not to cluster the billboards of an entity.
|
|
24156
|
-
* @param [options.clusterLabels = true] - Whether or not to cluster the labels of an entity.
|
|
24157
|
-
* @param [options.clusterPoints = true] - Whether or not to cluster the points of an entity.
|
|
24158
|
-
* @param [options.show = true] - Determines if the entities in the cluster will be shown.
|
|
24159
|
-
*/
|
|
24160
|
-
export class PrimitiveCluster {
|
|
24161
|
-
constructor(options?: {
|
|
24162
|
-
enabled?: boolean;
|
|
24163
|
-
pixelRange?: number;
|
|
24164
|
-
minimumClusterSize?: number;
|
|
24165
|
-
clusterBillboards?: boolean;
|
|
24166
|
-
clusterLabels?: boolean;
|
|
24167
|
-
clusterPoints?: boolean;
|
|
24168
|
-
show?: boolean;
|
|
24169
|
-
});
|
|
24170
|
-
/**
|
|
24171
|
-
* Determines if entities in this collection will be shown.
|
|
24172
|
-
*/
|
|
24173
|
-
show: boolean;
|
|
24174
|
-
/**
|
|
24175
|
-
* Gets or sets whether clustering is enabled.
|
|
24176
|
-
*/
|
|
24177
|
-
enabled: boolean;
|
|
24178
|
-
/**
|
|
24179
|
-
* Gets or sets the pixel range to extend the screen space bounding box.
|
|
24180
|
-
*/
|
|
24181
|
-
pixelRange: number;
|
|
24182
|
-
/**
|
|
24183
|
-
* Gets or sets the minimum number of screen space objects that can be clustered.
|
|
24184
|
-
*/
|
|
24185
|
-
minimumClusterSize: number;
|
|
24186
|
-
/**
|
|
24187
|
-
* Gets the event that will be raised when a new cluster will be displayed. The signature of the event listener is {@link PrimitiveCluster.newClusterCallback}.
|
|
24188
|
-
*/
|
|
24189
|
-
clusterEvent: Event<PrimitiveCluster.newClusterCallback>;
|
|
24190
|
-
/**
|
|
24191
|
-
* Gets or sets whether clustering billboard entities is enabled.
|
|
24192
|
-
*/
|
|
24193
|
-
clusterBillboards: boolean;
|
|
24194
|
-
/**
|
|
24195
|
-
* Gets or sets whether clustering labels entities is enabled.
|
|
24196
|
-
*/
|
|
24197
|
-
clusterLabels: boolean;
|
|
24198
|
-
/**
|
|
24199
|
-
* Gets or sets whether clustering point entities is enabled.
|
|
24200
|
-
*/
|
|
24201
|
-
clusterPoints: boolean;
|
|
24202
|
-
/**
|
|
24203
|
-
* Destroys the WebGL resources held by this object. Destroying an object allows for deterministic
|
|
24204
|
-
release of WebGL resources, instead of relying on the garbage collector to destroy this object.
|
|
24205
|
-
<p>
|
|
24206
|
-
Unlike other objects that use WebGL resources, this object can be reused. For example, if a data source is removed
|
|
24207
|
-
from a data source collection and added to another.
|
|
24208
|
-
</p>
|
|
24209
|
-
*/
|
|
24210
|
-
destroy(): void;
|
|
24211
|
-
}
|
|
24212
|
-
|
|
24213
|
-
export namespace PrimitiveCluster {
|
|
24214
|
-
/**
|
|
24215
|
-
* A event listener function used to style clusters.
|
|
24216
|
-
* @example
|
|
24217
|
-
* // The default cluster values.
|
|
24218
|
-
dataSource.clustering.clusterEvent.addEventListener(function(entities, cluster) {
|
|
24219
|
-
cluster.label.show = true;
|
|
24220
|
-
cluster.label.text = entities.length.toLocaleString();
|
|
24221
|
-
});
|
|
24222
|
-
* @param clusteredEntities - An array of the entities contained in the cluster.
|
|
24223
|
-
* @param cluster - An object containing the Billboard, Label, and Point
|
|
24224
|
-
primitives that represent this cluster of entities.
|
|
24225
|
-
*/
|
|
24226
|
-
type newClusterCallback = (clusteredEntities: Entity[], cluster: {
|
|
24227
|
-
billboard: Billboard;
|
|
24228
|
-
label: Label;
|
|
24229
|
-
point: PointPrimitive;
|
|
24230
|
-
}) => void;
|
|
24231
|
-
}
|
|
24232
|
-
|
|
24233
24218
|
/**
|
|
24234
24219
|
* The interface for all properties, which represent a value that can optionally vary over time.
|
|
24235
24220
|
This type defines an interface and cannot be instantiated directly.
|
|
@@ -31613,6 +31598,16 @@ export enum DepthFunction {
|
|
|
31613
31598
|
ALWAYS = WebGLConstants.ALWAYS
|
|
31614
31599
|
}
|
|
31615
31600
|
|
|
31601
|
+
/**
|
|
31602
|
+
* Returns the type that the given class property has in a GLSL shader.
|
|
31603
|
+
|
|
31604
|
+
It returns the same string as `PropertyTextureProperty.prototype.getGlslType`
|
|
31605
|
+
for a property texture property with the given class property
|
|
31606
|
+
* @param classProperty - The class property
|
|
31607
|
+
* @returns The GLSL shader type string for the property
|
|
31608
|
+
*/
|
|
31609
|
+
export function getGlslType(classProperty: MetadataClassProperty): string;
|
|
31610
|
+
|
|
31616
31611
|
/**
|
|
31617
31612
|
* A light that gets emitted in a single direction from infinitely far away.
|
|
31618
31613
|
* @param options - Object with the following properties:
|
|
@@ -36738,6 +36733,291 @@ export enum CustomShaderTranslucencyMode {
|
|
|
36738
36733
|
TRANSLUCENT = 2
|
|
36739
36734
|
}
|
|
36740
36735
|
|
|
36736
|
+
export namespace AnchorPointDirect {
|
|
36737
|
+
/**
|
|
36738
|
+
* Initialization options for the AnchorPointDirect constructor
|
|
36739
|
+
* @property position - Anchor point geographic coordinates
|
|
36740
|
+
* @property adjustmentParams - The adjustment values in meters
|
|
36741
|
+
*/
|
|
36742
|
+
type ConstructorOptions = {
|
|
36743
|
+
position: Cartesian3;
|
|
36744
|
+
adjustmentParams: Cartesian3;
|
|
36745
|
+
};
|
|
36746
|
+
}
|
|
36747
|
+
|
|
36748
|
+
/**
|
|
36749
|
+
* Metadata for one stored anchor point using direct storage.
|
|
36750
|
+
|
|
36751
|
+
This reflects the `anchronPointDirect` definition of the
|
|
36752
|
+
{@link https://nsgreg.nga.mil/csmwg.jsp|NGA_gpm_local} glTF extension.
|
|
36753
|
+
* @param options - An object describing initialization options
|
|
36754
|
+
*/
|
|
36755
|
+
export class AnchorPointDirect {
|
|
36756
|
+
constructor(options: AnchorPointDirect.ConstructorOptions);
|
|
36757
|
+
/**
|
|
36758
|
+
* Anchor point geographic coordinates in meters as X/Easting, Y/Northing, Z/HAE
|
|
36759
|
+
*/
|
|
36760
|
+
readonly position: Cartesian3;
|
|
36761
|
+
/**
|
|
36762
|
+
* The delta-x delta-y delta-z adjustment values in meters per anchor
|
|
36763
|
+
point.
|
|
36764
|
+
*/
|
|
36765
|
+
readonly adjustmentParams: Cartesian3;
|
|
36766
|
+
}
|
|
36767
|
+
|
|
36768
|
+
export namespace AnchorPointIndirect {
|
|
36769
|
+
/**
|
|
36770
|
+
* Initialization options for the AnchorPointIndirect constructor
|
|
36771
|
+
* @property position - Anchor point geographic coordinates
|
|
36772
|
+
* @property adjustmentParams - The adjustment values in meters
|
|
36773
|
+
* @property covarianceMatrix - The 3x3 covariance matrix
|
|
36774
|
+
*/
|
|
36775
|
+
type ConstructorOptions = {
|
|
36776
|
+
position: Cartesian3;
|
|
36777
|
+
adjustmentParams: Cartesian3;
|
|
36778
|
+
covarianceMatrix: Matrix3;
|
|
36779
|
+
};
|
|
36780
|
+
}
|
|
36781
|
+
|
|
36782
|
+
/**
|
|
36783
|
+
* Metadata for one stored anchor point.
|
|
36784
|
+
|
|
36785
|
+
This reflects the `anchronPointIndirect` definition of the
|
|
36786
|
+
{@link https://nsgreg.nga.mil/csmwg.jsp|NGA_gpm_local} glTF extension.
|
|
36787
|
+
* @param options - An object describing initialization options
|
|
36788
|
+
*/
|
|
36789
|
+
export class AnchorPointIndirect {
|
|
36790
|
+
constructor(options: AnchorPointIndirect.ConstructorOptions);
|
|
36791
|
+
/**
|
|
36792
|
+
* Anchor point geographic coordinates in meters as X/Easting, Y/Northing, Z/HAE
|
|
36793
|
+
*/
|
|
36794
|
+
readonly position: Cartesian3;
|
|
36795
|
+
/**
|
|
36796
|
+
* The delta-x delta-y delta-z adjustment values in meters per anchor
|
|
36797
|
+
point.
|
|
36798
|
+
*/
|
|
36799
|
+
readonly adjustmentParams: Cartesian3;
|
|
36800
|
+
/**
|
|
36801
|
+
* The 3x3 covariance matrix.
|
|
36802
|
+
*/
|
|
36803
|
+
readonly covarianceMatrix: Matrix3;
|
|
36804
|
+
}
|
|
36805
|
+
|
|
36806
|
+
export namespace CorrelationGroup {
|
|
36807
|
+
/**
|
|
36808
|
+
* Initialization options for the CorrelationGroup constructor
|
|
36809
|
+
* @property groupFlags - Array of 3 booleans indicating if
|
|
36810
|
+
parameters delta-x delta-y delta-z used in the correlation group
|
|
36811
|
+
* @property rotationThetas - Rotations in milliradians
|
|
36812
|
+
about X, Y, Z axes, respectively
|
|
36813
|
+
* @property params - Array of `Spdcf` (Strictly Positive-Definite
|
|
36814
|
+
Correlation Function) parameters, for the U, V, W directions, respectively
|
|
36815
|
+
*/
|
|
36816
|
+
type ConstructorOptions = {
|
|
36817
|
+
groupFlags: boolean[];
|
|
36818
|
+
rotationThetas: Cartesian3;
|
|
36819
|
+
params: Spdcf[];
|
|
36820
|
+
};
|
|
36821
|
+
}
|
|
36822
|
+
|
|
36823
|
+
/**
|
|
36824
|
+
* Metadata identifying parameters using same correlation modeling and
|
|
36825
|
+
associated correlation parameters.
|
|
36826
|
+
|
|
36827
|
+
This reflects the `correlationGroup` definition of the
|
|
36828
|
+
{@link https://nsgreg.nga.mil/csmwg.jsp|NGA_gpm_local} glTF extension.
|
|
36829
|
+
* @param options - An object describing initialization options
|
|
36830
|
+
*/
|
|
36831
|
+
export class CorrelationGroup {
|
|
36832
|
+
constructor(options: CorrelationGroup.ConstructorOptions);
|
|
36833
|
+
/**
|
|
36834
|
+
* Array of 3 booleans indicating if parameters delta-x delta-y delta-z
|
|
36835
|
+
used in the correlation group
|
|
36836
|
+
*/
|
|
36837
|
+
readonly groupFlags: boolean[];
|
|
36838
|
+
/**
|
|
36839
|
+
* Rotations in milliradians about X, Y, Z axes, respectively
|
|
36840
|
+
*/
|
|
36841
|
+
readonly rotationThetas: Cartesian3;
|
|
36842
|
+
/**
|
|
36843
|
+
* Array of 3 sets of SPDCF parameters, for the U, V, W directions, respectively
|
|
36844
|
+
*/
|
|
36845
|
+
readonly params: Spdcf[];
|
|
36846
|
+
}
|
|
36847
|
+
|
|
36848
|
+
/**
|
|
36849
|
+
* Creates a Matrix3 that describes a covariance matrix (which is
|
|
36850
|
+
symmetric) from the array containing the upper triangle, in
|
|
36851
|
+
column-major order.
|
|
36852
|
+
* @param array - The input array
|
|
36853
|
+
* @returns The Matrix3
|
|
36854
|
+
*/
|
|
36855
|
+
export function createCovarianceMatrixFromUpperTriangle(array: number[]): Matrix3;
|
|
36856
|
+
|
|
36857
|
+
/**
|
|
36858
|
+
* Creates an `AnchorPointDirect` from the given JSON representation
|
|
36859
|
+
* @param anchorPointDirectJson - The input JSON
|
|
36860
|
+
* @returns The direct anchor point
|
|
36861
|
+
*/
|
|
36862
|
+
export function createAnchorPointDirect(anchorPointDirectJson: any): AnchorPointDirect;
|
|
36863
|
+
|
|
36864
|
+
/**
|
|
36865
|
+
* Creates an `AnchorPointIndirect` from the given JSON representation
|
|
36866
|
+
* @param anchorPointIndirectJson - The input JSON
|
|
36867
|
+
* @returns The indirect anchor point
|
|
36868
|
+
*/
|
|
36869
|
+
export function createAnchorPointIndirect(anchorPointIndirectJson: any): AnchorPointIndirect;
|
|
36870
|
+
|
|
36871
|
+
/**
|
|
36872
|
+
* Creates a `CorrelationGroup` from the given JSON representation
|
|
36873
|
+
* @param correlationGroupJson - The input JSON
|
|
36874
|
+
* @returns The correlation group
|
|
36875
|
+
*/
|
|
36876
|
+
export function createCorrelationGroup(correlationGroupJson: any): CorrelationGroup;
|
|
36877
|
+
|
|
36878
|
+
export namespace GltfGpmLocal {
|
|
36879
|
+
/**
|
|
36880
|
+
* Initialization options for the GltfGpmLocal constructor
|
|
36881
|
+
* @property storageType - The storage type.
|
|
36882
|
+
This must be one of the `StorageType` constants, i.e. `Direct` or `Indirect`.
|
|
36883
|
+
* @property [anchorPointsIndirect] - The indirect anchor points.
|
|
36884
|
+
This must be present if and only if the storage type is `Indirect`.
|
|
36885
|
+
* @property [intraTileCorrelationGroups] - The intra-tile correlation groups.
|
|
36886
|
+
This must be present if and only if the storage type is `Indirect`.
|
|
36887
|
+
* @property [anchorPointsDirect] - The direct anchor points.
|
|
36888
|
+
This must be present if and only if the storage type is `Direct`.
|
|
36889
|
+
* @property [covarianceDirect] - The covariance of anchor point parameters.
|
|
36890
|
+
This must be present if and only if the storage type is `Direct`.
|
|
36891
|
+
*/
|
|
36892
|
+
type ConstructorOptions = {
|
|
36893
|
+
storageType: string;
|
|
36894
|
+
anchorPointsIndirect?: AnchorPointIndirect[] | undefined;
|
|
36895
|
+
intraTileCorrelationGroups?: CorrelationGroup[] | undefined;
|
|
36896
|
+
anchorPointsDirect?: AnchorPointDirect[] | undefined;
|
|
36897
|
+
covarianceDirect?: Matrix3 | undefined;
|
|
36898
|
+
};
|
|
36899
|
+
}
|
|
36900
|
+
|
|
36901
|
+
/**
|
|
36902
|
+
* The GPM metadata for a Ground-Space Indirect implementation stored
|
|
36903
|
+
locally (i.e. a tile and/or leaf node).
|
|
36904
|
+
|
|
36905
|
+
This reflects the root extension object of the {@link https://nsgreg.nga.mil/csmwg.jsp|NGA_gpm_local}
|
|
36906
|
+
glTF extension. When a model that contains this extension was loaded,
|
|
36907
|
+
then an object of this type can be obtained by calling
|
|
36908
|
+
```
|
|
36909
|
+
const gltfGpmLocal = model.getExtension("NGA_gpm_local");
|
|
36910
|
+
```
|
|
36911
|
+
|
|
36912
|
+
The storage type determines the presence of the optional properties:
|
|
36913
|
+
<ul>
|
|
36914
|
+
<li>
|
|
36915
|
+
When the storage type is `StorageType.Indirect`, then the
|
|
36916
|
+
`anchorPointsIndirect` and `intraTileCorrelationGroups`
|
|
36917
|
+
are present.
|
|
36918
|
+
</li>
|
|
36919
|
+
<li>
|
|
36920
|
+
When the storage type is `StorageType.Direct`, then the
|
|
36921
|
+
`anchorPointsDirect` and `covarianceDirect` are present.
|
|
36922
|
+
</li>
|
|
36923
|
+
</ul>
|
|
36924
|
+
* @param options - An object describing initialization options
|
|
36925
|
+
*/
|
|
36926
|
+
export class GltfGpmLocal {
|
|
36927
|
+
constructor(options: GltfGpmLocal.ConstructorOptions);
|
|
36928
|
+
/**
|
|
36929
|
+
* Specifies if covariance storage is indirect or direct.
|
|
36930
|
+
*/
|
|
36931
|
+
readonly storageType: StorageType;
|
|
36932
|
+
/**
|
|
36933
|
+
* Array of stored indirect anchor points
|
|
36934
|
+
*/
|
|
36935
|
+
readonly anchorPointsIndirect: AnchorPointIndirect[] | undefined;
|
|
36936
|
+
/**
|
|
36937
|
+
* Array of stored direct anchor points
|
|
36938
|
+
*/
|
|
36939
|
+
readonly anchorPointsDirect: AnchorPointDirect[] | undefined;
|
|
36940
|
+
/**
|
|
36941
|
+
* Metadata identifying parameters using same correlation modeling and
|
|
36942
|
+
associated correlation parameters
|
|
36943
|
+
*/
|
|
36944
|
+
readonly intraTileCorrelationGroups: CorrelationGroup[] | undefined;
|
|
36945
|
+
/**
|
|
36946
|
+
* The full covariance of anchor point parameters
|
|
36947
|
+
*/
|
|
36948
|
+
readonly covarianceDirect: Matrix3 | undefined;
|
|
36949
|
+
}
|
|
36950
|
+
|
|
36951
|
+
export namespace Spdcf {
|
|
36952
|
+
/**
|
|
36953
|
+
* Initialization options for the Spdcf constructor
|
|
36954
|
+
* @property A - The factor A, in (0, 1]
|
|
36955
|
+
* @property alpha - The alpha value, in [0, 1)
|
|
36956
|
+
* @property beta - The beta value, in [0, 10]
|
|
36957
|
+
* @property T - the tau value, in (0, +inf)
|
|
36958
|
+
*/
|
|
36959
|
+
type ConstructorOptions = {
|
|
36960
|
+
A: number;
|
|
36961
|
+
alpha: number;
|
|
36962
|
+
beta: number;
|
|
36963
|
+
T: number;
|
|
36964
|
+
};
|
|
36965
|
+
}
|
|
36966
|
+
|
|
36967
|
+
/**
|
|
36968
|
+
* Variables for a Strictly Positive-Definite Correlation Function.
|
|
36969
|
+
|
|
36970
|
+
This reflects the `spdcf` definition of the
|
|
36971
|
+
{@link https://nsgreg.nga.mil/csmwg.jsp|NGA_gpm_local} glTF extension.
|
|
36972
|
+
Instances of this type are stored as the parameters within a
|
|
36973
|
+
`CorrelationGroup`.
|
|
36974
|
+
|
|
36975
|
+
Parameters (A, alpha, beta, T) describe the correlation decrease
|
|
36976
|
+
between points as a function of delta time:
|
|
36977
|
+
```
|
|
36978
|
+
spdcf(delta_t) = A_t * (alpha_t + ((1 - alpha_t)(1 + beta_t)) / (beta_t + e^(delta_t/T_t)))
|
|
36979
|
+
```
|
|
36980
|
+
* @param options - An object describing initialization options
|
|
36981
|
+
*/
|
|
36982
|
+
export class Spdcf {
|
|
36983
|
+
constructor(options: Spdcf.ConstructorOptions);
|
|
36984
|
+
/**
|
|
36985
|
+
* In (0, 1]
|
|
36986
|
+
*/
|
|
36987
|
+
readonly A: number;
|
|
36988
|
+
/**
|
|
36989
|
+
* In [0, 1)
|
|
36990
|
+
*/
|
|
36991
|
+
readonly alpha: number;
|
|
36992
|
+
/**
|
|
36993
|
+
* In [0, 10]
|
|
36994
|
+
*/
|
|
36995
|
+
readonly beta: number;
|
|
36996
|
+
/**
|
|
36997
|
+
* In (0, +inf)
|
|
36998
|
+
*/
|
|
36999
|
+
readonly T: number;
|
|
37000
|
+
}
|
|
37001
|
+
|
|
37002
|
+
/**
|
|
37003
|
+
* An enum of storage types for covariance information.
|
|
37004
|
+
|
|
37005
|
+
This reflects the `gltfGpmLocal.storageType` definition of the
|
|
37006
|
+
{@link https://nsgreg.nga.mil/csmwg.jsp|NGA_gpm_local} glTF extension.
|
|
37007
|
+
*/
|
|
37008
|
+
export enum StorageType {
|
|
37009
|
+
/**
|
|
37010
|
+
* Store the full error covariance of the anchor points, to include the cross-covariance terms
|
|
37011
|
+
*/
|
|
37012
|
+
Direct = "Direct",
|
|
37013
|
+
/**
|
|
37014
|
+
* A full covariance matrix is stored for each of the anchor points. However, in this case the
|
|
37015
|
+
cross-covariance terms are not directly stored, but can be computed by a set of spatial
|
|
37016
|
+
correlation function parameters which are stored in the metadata.
|
|
37017
|
+
*/
|
|
37018
|
+
Indirect = "Indirect"
|
|
37019
|
+
}
|
|
37020
|
+
|
|
36741
37021
|
/**
|
|
36742
37022
|
* The lighting model to use for lighting a {@link Model}.
|
|
36743
37023
|
*/
|
|
@@ -36819,6 +37099,9 @@ Cesium supports glTF assets with the following extensions:
|
|
|
36819
37099
|
<li>
|
|
36820
37100
|
{@link https://github.com/KhronosGroup/glTF/blob/main/extensions/1.0/Vendor/WEB3D_quantized_attributes/README.md|WEB3D_quantized_attributes}
|
|
36821
37101
|
</li>
|
|
37102
|
+
<li>
|
|
37103
|
+
{@link https://nsgreg.nga.mil/csmwg.jsp|NGA_gpm_local (experimental)}
|
|
37104
|
+
</li>
|
|
36822
37105
|
</ul>
|
|
36823
37106
|
</p>
|
|
36824
37107
|
<p>
|
|
@@ -36993,6 +37276,14 @@ export class Model {
|
|
|
36993
37276
|
* The {@link ClippingPolygonCollection} used to selectively disable rendering the model.
|
|
36994
37277
|
*/
|
|
36995
37278
|
clippingPolygons: ClippingPolygonCollection;
|
|
37279
|
+
/**
|
|
37280
|
+
* If <code>true</code>, the model is exaggerated along the ellipsoid normal when {@link Scene.verticalExaggeration} is set to a value other than <code>1.0</code>.
|
|
37281
|
+
* @example
|
|
37282
|
+
* // Exaggerate terrain by a factor of 2, but prevent model exaggeration
|
|
37283
|
+
scene.verticalExaggeration = 2.0;
|
|
37284
|
+
model.enableVerticalExaggeration = false;
|
|
37285
|
+
*/
|
|
37286
|
+
enableVerticalExaggeration: boolean;
|
|
36996
37287
|
/**
|
|
36997
37288
|
* The light color when shading the model. When <code>undefined</code> the scene's light color is used instead.
|
|
36998
37289
|
<p>
|
|
@@ -37096,6 +37387,17 @@ export class Model {
|
|
|
37096
37387
|
transformations on participating nodes.
|
|
37097
37388
|
*/
|
|
37098
37389
|
applyArticulations(): void;
|
|
37390
|
+
/**
|
|
37391
|
+
* Returns the object that was created for the given extension.
|
|
37392
|
+
|
|
37393
|
+
The given name may be the name of a glTF extension, like `"EXT_example_extension"`.
|
|
37394
|
+
If the specified extension was present in the root of the underlying glTF asset,
|
|
37395
|
+
and a loder for the specified extension has processed the extension data, then
|
|
37396
|
+
this will return the model representation of the extension.
|
|
37397
|
+
* @param extensionName - The name of the extension
|
|
37398
|
+
* @returns The object, or `undefined`
|
|
37399
|
+
*/
|
|
37400
|
+
getExtension(extensionName: string): any | undefined;
|
|
37099
37401
|
/**
|
|
37100
37402
|
* Marks the model's {@link Model#style} as dirty, which forces all features
|
|
37101
37403
|
to re-evaluate the style in the next frame the model is visible.
|
|
@@ -37200,6 +37502,7 @@ export class Model {
|
|
|
37200
37502
|
* @param [options.show = true] - Whether or not to render the model.
|
|
37201
37503
|
* @param [options.modelMatrix = Matrix4.IDENTITY] - The 4x4 transformation matrix that transforms the model from model to world coordinates.
|
|
37202
37504
|
* @param [options.scale = 1.0] - A uniform scale applied to this model.
|
|
37505
|
+
* @param [options.enableVerticalExaggeration = true] - If <code>true</code>, the model is exaggerated along the ellipsoid normal when {@link Scene.verticalExaggeration} is set to a value other than <code>1.0</code>.
|
|
37203
37506
|
* @param [options.minimumPixelSize = 0.0] - The approximate minimum pixel size of the model regardless of zoom.
|
|
37204
37507
|
* @param [options.maximumScale] - The maximum scale size of a model. An upper limit for minimumPixelSize.
|
|
37205
37508
|
* @param [options.id] - A user-defined object to return when the model is picked with {@link Scene#pick}.
|
|
@@ -37252,6 +37555,7 @@ export class Model {
|
|
|
37252
37555
|
show?: boolean;
|
|
37253
37556
|
modelMatrix?: Matrix4;
|
|
37254
37557
|
scale?: number;
|
|
37558
|
+
enableVerticalExaggeration?: boolean;
|
|
37255
37559
|
minimumPixelSize?: number;
|
|
37256
37560
|
maximumScale?: number;
|
|
37257
37561
|
id?: any;
|
|
@@ -38504,6 +38808,54 @@ export class PerInstanceColorAppearance {
|
|
|
38504
38808
|
getRenderState(): any;
|
|
38505
38809
|
}
|
|
38506
38810
|
|
|
38811
|
+
/**
|
|
38812
|
+
* The optional ID of the metadata schema
|
|
38813
|
+
*/
|
|
38814
|
+
export var schemaId: string | undefined;
|
|
38815
|
+
|
|
38816
|
+
/**
|
|
38817
|
+
* The name of the metadata class
|
|
38818
|
+
*/
|
|
38819
|
+
export var className: string;
|
|
38820
|
+
|
|
38821
|
+
/**
|
|
38822
|
+
* The name of the metadata property
|
|
38823
|
+
*/
|
|
38824
|
+
export var propertyName: string;
|
|
38825
|
+
|
|
38826
|
+
/**
|
|
38827
|
+
* The optional ID of the metadata schema
|
|
38828
|
+
*/
|
|
38829
|
+
export var classProperty: MetadataClassProperty;
|
|
38830
|
+
|
|
38831
|
+
/**
|
|
38832
|
+
* Compute the rectangle that describes the part of the drawing buffer
|
|
38833
|
+
that is relevant for picking.
|
|
38834
|
+
* @param drawingBufferHeight - The height of the drawing buffer
|
|
38835
|
+
* @param position - The position inside the drawing buffer
|
|
38836
|
+
* @param width - The width of the rectangle, assumed to
|
|
38837
|
+
be an odd integer number, default : 3.0
|
|
38838
|
+
* @param height - The height of the rectangle. If unspecified,
|
|
38839
|
+
height will default to the value of <code>width</code>
|
|
38840
|
+
* @param result - The result rectangle
|
|
38841
|
+
* @returns The result rectangle
|
|
38842
|
+
*/
|
|
38843
|
+
export function computePickingDrawingBufferRectangle(drawingBufferHeight: number, position: Cartesian2, width: number | undefined, height: number | undefined, result: BoundingRectangle): BoundingRectangle;
|
|
38844
|
+
|
|
38845
|
+
/**
|
|
38846
|
+
* Information about metadata that is supposed to be picked
|
|
38847
|
+
* @property schemaId - The optional ID of the metadata schema
|
|
38848
|
+
* @property className - The name of the metadata class
|
|
38849
|
+
* @property propertyName - The name of the metadata property
|
|
38850
|
+
* @property classProperty - The metadata class property
|
|
38851
|
+
*/
|
|
38852
|
+
export type PickedMetadataInfo = {
|
|
38853
|
+
schemaId: string | undefined;
|
|
38854
|
+
className: string;
|
|
38855
|
+
propertyName: string;
|
|
38856
|
+
classProperty: MetadataClassProperty;
|
|
38857
|
+
};
|
|
38858
|
+
|
|
38507
38859
|
/**
|
|
38508
38860
|
* Options for performing point attenuation based on geometric error when rendering
|
|
38509
38861
|
point clouds using 3D Tiles.
|
|
@@ -40850,6 +41202,26 @@ export class Scene {
|
|
|
40850
41202
|
* @returns Information about the voxel cell rendered at the picked position.
|
|
40851
41203
|
*/
|
|
40852
41204
|
pickVoxel(windowPosition: Cartesian2, width?: number, height?: number): VoxelCell | undefined;
|
|
41205
|
+
/**
|
|
41206
|
+
* Pick a metadata value at the given window position.
|
|
41207
|
+
* @param windowPosition - Window coordinates to perform picking on.
|
|
41208
|
+
* @param schemaId - The ID of the metadata schema to pick values
|
|
41209
|
+
from. If this is `undefined`, then it will pick the values from the object
|
|
41210
|
+
that match the given class- and property name, regardless of the schema ID.
|
|
41211
|
+
* @param className - The name of the metadata class to pick
|
|
41212
|
+
values from
|
|
41213
|
+
* @param propertyName - The name of the metadata property to pick
|
|
41214
|
+
values from
|
|
41215
|
+
* @returns The metadata value
|
|
41216
|
+
*/
|
|
41217
|
+
pickMetadata(windowPosition: Cartesian2, schemaId: string | undefined, className: string, propertyName: string): any;
|
|
41218
|
+
/**
|
|
41219
|
+
* Pick the schema of the metadata of the object at the given position
|
|
41220
|
+
* @param windowPosition - Window coordinates to perform picking on.
|
|
41221
|
+
* @returns The metadata schema, or `undefined` if there is no object with
|
|
41222
|
+
associated metadata at the given position.
|
|
41223
|
+
*/
|
|
41224
|
+
pickMetadataSchema(windowPosition: Cartesian2): MetadataSchema;
|
|
40853
41225
|
/**
|
|
40854
41226
|
* Returns the cartesian position reconstructed from the depth buffer and window position.
|
|
40855
41227
|
<p>
|
|
@@ -41033,6 +41405,18 @@ export class Scene {
|
|
|
41033
41405
|
destroy(): void;
|
|
41034
41406
|
}
|
|
41035
41407
|
|
|
41408
|
+
/**
|
|
41409
|
+
* Determine how translucent surfaces will be handled.
|
|
41410
|
+
|
|
41411
|
+
When OIT is enabled, then this will delegate to OIT.executeCommands.
|
|
41412
|
+
Otherwise, it will just be executeTranslucentCommandsBackToFront
|
|
41413
|
+
for render passes, or executeTranslucentCommandsFrontToBack for
|
|
41414
|
+
other passes.
|
|
41415
|
+
* @param scene - The scene.
|
|
41416
|
+
* @returns A function to execute translucent commands.
|
|
41417
|
+
*/
|
|
41418
|
+
export function obtainTranslucentCommandExecutionFunction(scene: Scene): (...params: any[]) => any;
|
|
41419
|
+
|
|
41036
41420
|
/**
|
|
41037
41421
|
* Indicates if the scene is viewed in 3D, 2D, or 2.5D Columbus view.
|
|
41038
41422
|
*/
|
|
@@ -41241,6 +41625,13 @@ export class ScreenSpaceCameraController {
|
|
|
41241
41625
|
* When disabled, the values of <code>maximumZoomDistance</code> and <code>minimumZoomDistance</code> are ignored.
|
|
41242
41626
|
*/
|
|
41243
41627
|
enableCollisionDetection: boolean;
|
|
41628
|
+
/**
|
|
41629
|
+
* The angle, relative to the ellipsoid normal, restricting the maximum amount that the user can tilt the camera. If <code>undefined</code>, the angle of the camera tilt is unrestricted.
|
|
41630
|
+
* @example
|
|
41631
|
+
* // Prevent the camera from tilting below the ellipsoid surface
|
|
41632
|
+
viewer.scene.screenSpaceCameraController.maximumTiltAngle = Math.PI / 2.0;
|
|
41633
|
+
*/
|
|
41634
|
+
maximumTiltAngle: number | undefined;
|
|
41244
41635
|
/**
|
|
41245
41636
|
* Returns true if this object was destroyed; otherwise, false.
|
|
41246
41637
|
<br /><br />
|