mars3d-cesium 1.140.0 → 1.141.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Build/Cesium/Cesium.d.ts +339 -300
- package/Build/Cesium/Cesium.js +14680 -13675
- package/Build/Cesium/README.md +13 -0
- package/Build/Cesium/ThirdParty/Workers/zip-web-worker.js +1 -0
- package/Build/Cesium/ThirdParty/zip-module.wasm +0 -0
- package/Build/Cesium/Workers/{chunk-VC43NA4S.js → chunk-2ZUMP6FE.js} +2 -2
- package/Build/Cesium/Workers/{chunk-ECLCX5XZ.js → chunk-3FTNCCYT.js} +2 -2
- package/Build/Cesium/Workers/chunk-4DV5ZZMP.js +26 -0
- package/Build/Cesium/Workers/chunk-5OG7DLNT.js +26 -0
- package/Build/Cesium/Workers/chunk-5VC6GKJD.js +26 -0
- package/Build/Cesium/Workers/chunk-5WIQWIDU.js +26 -0
- package/Build/Cesium/Workers/{chunk-YWNU5ZQD.js → chunk-7CH4MFDA.js} +2 -2
- package/Build/Cesium/Workers/{chunk-Z4E6T4NK.js → chunk-7DBMV4BS.js} +2 -2
- package/Build/Cesium/Workers/{chunk-GLZ7AVHY.js → chunk-7E4Z2TKQ.js} +2 -2
- package/Build/Cesium/Workers/{chunk-K35RPNUR.js → chunk-7NLQQSNP.js} +2 -2
- package/Build/Cesium/Workers/chunk-7WRUK24H.js +26 -0
- package/Build/Cesium/Workers/{chunk-N6SIW7ZL.js → chunk-BCBAUFC4.js} +2 -2
- package/Build/Cesium/Workers/{chunk-PXZYU6PD.js → chunk-CDZ3XKVQ.js} +2 -2
- package/Build/Cesium/Workers/chunk-CGRCHWFG.js +26 -0
- package/Build/Cesium/Workers/{chunk-4FULWVRZ.js → chunk-DIWYAFRL.js} +2 -2
- package/Build/Cesium/Workers/chunk-DPLTI5HQ.js +26 -0
- package/Build/Cesium/Workers/{chunk-3BFV72N7.js → chunk-EKDYIJLI.js} +2 -2
- package/Build/Cesium/Workers/{chunk-PQWMNK6M.js → chunk-ESGQYWWC.js} +2 -2
- package/Build/Cesium/Workers/chunk-FRM2YCDS.js +29 -0
- package/Build/Cesium/Workers/{chunk-KIXGV6RH.js → chunk-GNV373C3.js} +2 -2
- package/Build/Cesium/Workers/chunk-GXMV6G6L.js +28 -0
- package/Build/Cesium/Workers/{chunk-FHECC5EZ.js → chunk-H5AVOACH.js} +2 -2
- package/Build/Cesium/Workers/{chunk-C6HKNYGW.js → chunk-HGQZAEVQ.js} +2 -2
- package/Build/Cesium/Workers/{chunk-BYYYB2C7.js → chunk-HPSKSBFG.js} +2 -2
- package/Build/Cesium/Workers/{chunk-TOK3PZ73.js → chunk-I7E7ZFTX.js} +2 -2
- package/Build/Cesium/Workers/{chunk-336QMGTQ.js → chunk-ILES6JJL.js} +2 -2
- package/Build/Cesium/Workers/{chunk-OVOY7YA7.js → chunk-JZEYWMXO.js} +2 -2
- package/Build/Cesium/Workers/chunk-K6GWWKQU.js +26 -0
- package/Build/Cesium/Workers/chunk-KSOWBQGD.js +26 -0
- package/Build/Cesium/Workers/{chunk-X56SSSS5.js → chunk-KTQRKFCB.js} +2 -2
- package/Build/Cesium/Workers/{chunk-GDJPERBD.js → chunk-KW5HG37J.js} +2 -2
- package/Build/Cesium/Workers/{chunk-PUOAX5MA.js → chunk-L6WRMVET.js} +2 -2
- package/Build/Cesium/Workers/chunk-M6ON6VVV.js +26 -0
- package/Build/Cesium/Workers/chunk-N6EN2BOY.js +63 -0
- package/Build/Cesium/Workers/chunk-NAOK3KGT.js +26 -0
- package/Build/Cesium/Workers/{chunk-HNKLZQOV.js → chunk-OBWPHK5H.js} +2 -2
- package/Build/Cesium/Workers/chunk-OUMYLVEO.js +26 -0
- package/Build/Cesium/Workers/{chunk-YDQLCOZM.js → chunk-PBVQ42HU.js} +2 -2
- package/Build/Cesium/Workers/chunk-R5O5DVZD.js +26 -0
- package/Build/Cesium/Workers/{chunk-RPFEAA52.js → chunk-RLPCZZG4.js} +2 -2
- package/Build/Cesium/Workers/{chunk-PUPGLHXG.js → chunk-SHB4D2PT.js} +2 -2
- package/Build/Cesium/Workers/chunk-SHV2E5IR.js +29 -0
- package/Build/Cesium/Workers/{chunk-TJ6QLJOT.js → chunk-SINVTWVY.js} +2 -2
- package/Build/Cesium/Workers/{chunk-GVEYCBKG.js → chunk-TMOFTMUE.js} +2 -2
- package/Build/Cesium/Workers/{chunk-AZSS2BNB.js → chunk-TN5MKFRC.js} +2 -2
- package/Build/Cesium/Workers/{chunk-NL753UYH.js → chunk-TOWGTZPA.js} +2 -2
- package/Build/Cesium/Workers/{chunk-ILTEXGHO.js → chunk-UASTG4AF.js} +2 -2
- package/Build/Cesium/Workers/{chunk-5IQULCCZ.js → chunk-UDUMKSBO.js} +2 -2
- package/Build/Cesium/Workers/{chunk-JQWGTP3K.js → chunk-UIR2RSB2.js} +2 -2
- package/Build/Cesium/Workers/chunk-ULKPUL26.js +26 -0
- package/Build/Cesium/Workers/{chunk-7SZRKGJD.js → chunk-V35VUQVS.js} +1 -1
- package/Build/Cesium/Workers/{chunk-WRLXLKCG.js → chunk-VPREA3UD.js} +2 -2
- package/Build/Cesium/Workers/{chunk-422SYBQS.js → chunk-WIGTKL4L.js} +2 -2
- package/Build/Cesium/Workers/{chunk-YBIGLQJN.js → chunk-XGFD24GJ.js} +2 -2
- package/Build/Cesium/Workers/{chunk-LT7NKOZD.js → chunk-Y66T7GYQ.js} +2 -2
- package/Build/Cesium/Workers/{chunk-WYMSHGR6.js → chunk-Y7MKUU32.js} +2 -2
- package/Build/Cesium/Workers/{chunk-65MI2E3A.js → chunk-YJKT47HQ.js} +2 -2
- package/Build/Cesium/Workers/combineGeometry.js +2 -2
- package/Build/Cesium/Workers/createBoxGeometry.js +2 -2
- package/Build/Cesium/Workers/createBoxOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createCircleGeometry.js +2 -2
- package/Build/Cesium/Workers/createCircleOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createCoplanarPolygonGeometry.js +2 -2
- package/Build/Cesium/Workers/createCoplanarPolygonOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createCorridorGeometry.js +2 -2
- package/Build/Cesium/Workers/createCorridorOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createCylinderGeometry.js +2 -2
- package/Build/Cesium/Workers/createCylinderOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createEllipseGeometry.js +2 -2
- package/Build/Cesium/Workers/createEllipseOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createEllipsoidGeometry.js +2 -2
- package/Build/Cesium/Workers/createEllipsoidOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createFrustumGeometry.js +2 -2
- package/Build/Cesium/Workers/createFrustumOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createGeometry.js +2 -2
- package/Build/Cesium/Workers/createGroundPolylineGeometry.js +2 -2
- package/Build/Cesium/Workers/createPlaneGeometry.js +2 -2
- package/Build/Cesium/Workers/createPlaneOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createPolygonGeometry.js +2 -2
- package/Build/Cesium/Workers/createPolygonOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createPolylineGeometry.js +2 -2
- package/Build/Cesium/Workers/createPolylineVolumeGeometry.js +2 -2
- package/Build/Cesium/Workers/createPolylineVolumeOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createRectangleGeometry.js +2 -2
- package/Build/Cesium/Workers/createRectangleOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createSimplePolylineGeometry.js +2 -2
- package/Build/Cesium/Workers/createSphereGeometry.js +2 -2
- package/Build/Cesium/Workers/createSphereOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createTaskProcessorWorker.js +2 -2
- package/Build/Cesium/Workers/createVectorTileClampedPolylines.js +2 -2
- package/Build/Cesium/Workers/createVectorTileGeometries.js +2 -2
- package/Build/Cesium/Workers/createVectorTilePoints.js +2 -2
- package/Build/Cesium/Workers/createVectorTilePolygons.js +2 -2
- package/Build/Cesium/Workers/createVectorTilePolylines.js +2 -2
- package/Build/Cesium/Workers/createVerticesFromCesium3DTilesTerrain.js +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/gaussianSplatSorter.js +2 -2
- package/Build/Cesium/Workers/gaussianSplatTextureGenerator.js +2 -2
- package/Build/Cesium/Workers/incrementallyBuildTerrainPicker.js +2 -2
- package/Build/Cesium/Workers/transcodeKTX2.js +19 -19
- package/Build/Cesium/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Cesium/Workers/upsampleQuantizedTerrainMesh.js +2 -2
- package/Build/Cesium/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +2 -2
- package/Build/Cesium/index.cjs +14718 -13713
- package/Build/Cesium/index.js +14796 -13791
- package/package.json +1 -1
- package/Build/Cesium/ThirdParty/Workers/z-worker-pako.js +0 -1
- package/Build/Cesium/Workers/chunk-5JMVLL6X.js +0 -26
- package/Build/Cesium/Workers/chunk-7U5EVTKW.js +0 -26
- package/Build/Cesium/Workers/chunk-AXIQD4JA.js +0 -26
- package/Build/Cesium/Workers/chunk-DMJB4DHC.js +0 -29
- package/Build/Cesium/Workers/chunk-II4OPXPA.js +0 -26
- package/Build/Cesium/Workers/chunk-JD76ATDQ.js +0 -26
- package/Build/Cesium/Workers/chunk-LUCUOT65.js +0 -26
- package/Build/Cesium/Workers/chunk-MWY74K7V.js +0 -63
- package/Build/Cesium/Workers/chunk-Q6MK2R6B.js +0 -26
- package/Build/Cesium/Workers/chunk-Q6YG52WP.js +0 -26
- package/Build/Cesium/Workers/chunk-QQJ4EFK2.js +0 -26
- package/Build/Cesium/Workers/chunk-RTRJ3LVQ.js +0 -26
- package/Build/Cesium/Workers/chunk-SDQXNLTQ.js +0 -26
- package/Build/Cesium/Workers/chunk-TJUBNZ45.js +0 -26
- package/Build/Cesium/Workers/chunk-UKJ254OV.js +0 -26
- package/Build/Cesium/Workers/chunk-WPXTUJZY.js +0 -26
- package/Build/Cesium/Workers/chunk-XXWWJ3QU.js +0 -28
- package/Build/Cesium/Workers/chunk-YECQFZBX.js +0 -29
package/Build/Cesium/Cesium.d.ts
CHANGED
|
@@ -724,8 +724,7 @@ export enum ArcType {
|
|
|
724
724
|
* A collection of key-value pairs that is stored as a hash for easy
|
|
725
725
|
lookup but also provides an array for fast iteration.
|
|
726
726
|
*/
|
|
727
|
-
export class AssociativeArray {
|
|
728
|
-
constructor();
|
|
727
|
+
export class AssociativeArray<T = unknown> {
|
|
729
728
|
/**
|
|
730
729
|
* Gets the number of items in the collection.
|
|
731
730
|
*/
|
|
@@ -735,7 +734,7 @@ export class AssociativeArray {
|
|
|
735
734
|
This is a live array that will automatically reflect the values in the collection,
|
|
736
735
|
it should not be modified directly.
|
|
737
736
|
*/
|
|
738
|
-
values:
|
|
737
|
+
values: T[];
|
|
739
738
|
/**
|
|
740
739
|
* Determines if the provided key is in the array.
|
|
741
740
|
* @param key - The key to check.
|
|
@@ -748,13 +747,13 @@ export class AssociativeArray {
|
|
|
748
747
|
* @param key - A unique identifier.
|
|
749
748
|
* @param value - The value to associate with the provided key.
|
|
750
749
|
*/
|
|
751
|
-
set(key: string | number, value:
|
|
750
|
+
set(key: string | number, value: T): void;
|
|
752
751
|
/**
|
|
753
752
|
* Retrieves the value associated with the provided key.
|
|
754
753
|
* @param key - The key whose value is to be retrieved.
|
|
755
754
|
* @returns The associated value, or undefined if the key does not exist in the collection.
|
|
756
755
|
*/
|
|
757
|
-
get(key: string | number):
|
|
756
|
+
get(key: string | number): T;
|
|
758
757
|
/**
|
|
759
758
|
* Removes a key-value pair from the collection.
|
|
760
759
|
* @param key - The key to be removed.
|
|
@@ -1101,7 +1100,7 @@ export class BoundingSphere {
|
|
|
1101
1100
|
* @param [result] - The object onto which to store the result.
|
|
1102
1101
|
* @returns The modified result parameter or a new BoundingSphere instance if none was provided.
|
|
1103
1102
|
*/
|
|
1104
|
-
static fromRectangle2D(rectangle?: Rectangle, projection?:
|
|
1103
|
+
static fromRectangle2D(rectangle?: Rectangle, projection?: MapProjection, result?: BoundingSphere): BoundingSphere;
|
|
1105
1104
|
/**
|
|
1106
1105
|
* Computes a bounding sphere from a rectangle projected in 2D. The bounding sphere accounts for the
|
|
1107
1106
|
object's minimum and maximum heights over the rectangle.
|
|
@@ -1112,7 +1111,7 @@ export class BoundingSphere {
|
|
|
1112
1111
|
* @param [result] - The object onto which to store the result.
|
|
1113
1112
|
* @returns The modified result parameter or a new BoundingSphere instance if none was provided.
|
|
1114
1113
|
*/
|
|
1115
|
-
static fromRectangleWithHeights2D(rectangle?: Rectangle, projection?:
|
|
1114
|
+
static fromRectangleWithHeights2D(rectangle?: Rectangle, projection?: MapProjection, minimumHeight?: number, maximumHeight?: number, result?: BoundingSphere): BoundingSphere;
|
|
1116
1115
|
/**
|
|
1117
1116
|
* Computes a bounding sphere from a rectangle in 3D. The bounding sphere is created using a subsample of points
|
|
1118
1117
|
on the ellipsoid and contained in the rectangle. It may not be accurate for all rectangles on all types of ellipsoids.
|
|
@@ -1214,10 +1213,6 @@ export class BoundingSphere {
|
|
|
1214
1213
|
* @returns The modified result parameter or a new BoundingSphere instance if none was provided. (Returns undefined if sphere is undefined)
|
|
1215
1214
|
*/
|
|
1216
1215
|
static clone(sphere: BoundingSphere, result?: BoundingSphere): BoundingSphere;
|
|
1217
|
-
/**
|
|
1218
|
-
* The number of elements used to pack the object into an array.
|
|
1219
|
-
*/
|
|
1220
|
-
static packedLength: number;
|
|
1221
1216
|
/**
|
|
1222
1217
|
* Stores the provided instance into the provided array.
|
|
1223
1218
|
* @param value - The value to pack.
|
|
@@ -1314,7 +1309,7 @@ export class BoundingSphere {
|
|
|
1314
1309
|
* @param [result] - The object onto which to store the result.
|
|
1315
1310
|
* @returns The modified result parameter or a new BoundingSphere instance if none was provided.
|
|
1316
1311
|
*/
|
|
1317
|
-
static projectTo2D(sphere: BoundingSphere, projection?:
|
|
1312
|
+
static projectTo2D(sphere: BoundingSphere, projection?: MapProjection, result?: BoundingSphere): BoundingSphere;
|
|
1318
1313
|
/**
|
|
1319
1314
|
* Determines whether or not a sphere is hidden from view by the occluder.
|
|
1320
1315
|
* @param sphere - The bounding sphere surrounding the occluded object.
|
|
@@ -1386,6 +1381,10 @@ export class BoundingSphere {
|
|
|
1386
1381
|
* @returns The radius of the BoundingSphere.
|
|
1387
1382
|
*/
|
|
1388
1383
|
volume(): number;
|
|
1384
|
+
/**
|
|
1385
|
+
* The number of elements used to pack the object into an array.
|
|
1386
|
+
*/
|
|
1387
|
+
static packedLength: number;
|
|
1389
1388
|
}
|
|
1390
1389
|
|
|
1391
1390
|
/**
|
|
@@ -2749,10 +2748,6 @@ export class Cartographic {
|
|
|
2749
2748
|
* @returns <code>true</code> if left and right are within the provided epsilon, <code>false</code> otherwise.
|
|
2750
2749
|
*/
|
|
2751
2750
|
static equalsEpsilon(left?: Cartographic, right?: Cartographic, epsilon?: number): boolean;
|
|
2752
|
-
/**
|
|
2753
|
-
* An immutable Cartographic instance initialized to (0.0, 0.0, 0.0).
|
|
2754
|
-
*/
|
|
2755
|
-
static readonly ZERO: Cartographic;
|
|
2756
2751
|
/**
|
|
2757
2752
|
* Duplicates this instance.
|
|
2758
2753
|
* @param [result] - The object onto which to store the result.
|
|
@@ -2780,6 +2775,10 @@ export class Cartographic {
|
|
|
2780
2775
|
* @returns A string representing the provided cartographic in the format '(longitude, latitude, height)'.
|
|
2781
2776
|
*/
|
|
2782
2777
|
toString(): string;
|
|
2778
|
+
/**
|
|
2779
|
+
* An immutable Cartographic instance initialized to (0.0, 0.0, 0.0).
|
|
2780
|
+
*/
|
|
2781
|
+
static readonly ZERO: Cartographic;
|
|
2783
2782
|
}
|
|
2784
2783
|
|
|
2785
2784
|
/**
|
|
@@ -3829,10 +3828,6 @@ export class Color {
|
|
|
3829
3828
|
* @returns The color object, or undefined if the string was not a valid CSS color.
|
|
3830
3829
|
*/
|
|
3831
3830
|
static fromCssColorString(color: string, result?: Color): Color;
|
|
3832
|
-
/**
|
|
3833
|
-
* The number of elements used to pack the object into an array.
|
|
3834
|
-
*/
|
|
3835
|
-
static packedLength: number;
|
|
3836
3831
|
/**
|
|
3837
3832
|
* Stores the provided instance into the provided array.
|
|
3838
3833
|
* @param value - The value to pack.
|
|
@@ -4025,6 +4020,10 @@ export class Color {
|
|
|
4025
4020
|
* @returns The modified result parameter.
|
|
4026
4021
|
*/
|
|
4027
4022
|
static divideByScalar(color: Color, scalar: number, result: Color): Color;
|
|
4023
|
+
/**
|
|
4024
|
+
* The number of elements used to pack the object into an array.
|
|
4025
|
+
*/
|
|
4026
|
+
static packedLength: number;
|
|
4028
4027
|
/**
|
|
4029
4028
|
* An immutable Color instance initialized to CSS color #F0F8FF
|
|
4030
4029
|
<span class="colorSwath" style="background: #F0F8FF;"></span>
|
|
@@ -6248,23 +6247,6 @@ export class Ellipsoid {
|
|
|
6248
6247
|
* @returns A new Ellipsoid instance.
|
|
6249
6248
|
*/
|
|
6250
6249
|
static fromCartesian3(cartesian?: Cartesian3, result?: Ellipsoid): Ellipsoid;
|
|
6251
|
-
/**
|
|
6252
|
-
* An Ellipsoid instance initialized to the WGS84 standard.
|
|
6253
|
-
*/
|
|
6254
|
-
static readonly WGS84: Ellipsoid;
|
|
6255
|
-
/**
|
|
6256
|
-
* An Ellipsoid instance initialized to radii of (1.0, 1.0, 1.0).
|
|
6257
|
-
*/
|
|
6258
|
-
static readonly UNIT_SPHERE: Ellipsoid;
|
|
6259
|
-
/**
|
|
6260
|
-
* An Ellipsoid instance initialized to a sphere with the lunar radius.
|
|
6261
|
-
*/
|
|
6262
|
-
static readonly MOON: Ellipsoid;
|
|
6263
|
-
/**
|
|
6264
|
-
* An Ellipsoid instance initialized to a sphere with the mean radii of Mars.
|
|
6265
|
-
Source: https://epsg.io/104905
|
|
6266
|
-
*/
|
|
6267
|
-
static readonly MARS: Ellipsoid;
|
|
6268
6250
|
/**
|
|
6269
6251
|
* The default ellipsoid used when not otherwise specified.
|
|
6270
6252
|
* @example
|
|
@@ -6284,10 +6266,6 @@ export class Ellipsoid {
|
|
|
6284
6266
|
* @returns The cloned Ellipsoid.
|
|
6285
6267
|
*/
|
|
6286
6268
|
clone(result?: Ellipsoid): Ellipsoid;
|
|
6287
|
-
/**
|
|
6288
|
-
* The number of elements used to pack the object into an array.
|
|
6289
|
-
*/
|
|
6290
|
-
static packedLength: number;
|
|
6291
6269
|
/**
|
|
6292
6270
|
* Stores the provided instance into the provided array.
|
|
6293
6271
|
* @param value - The value to pack.
|
|
@@ -6304,13 +6282,6 @@ export class Ellipsoid {
|
|
|
6304
6282
|
* @returns The modified result parameter or a new Ellipsoid instance if one was not provided.
|
|
6305
6283
|
*/
|
|
6306
6284
|
static unpack(array: number[], startingIndex?: number, result?: Ellipsoid): Ellipsoid;
|
|
6307
|
-
/**
|
|
6308
|
-
* Computes the unit vector directed from the center of this ellipsoid toward the provided Cartesian position.
|
|
6309
|
-
* @param cartesian - The Cartesian for which to to determine the geocentric normal.
|
|
6310
|
-
* @param [result] - The object onto which to store the result.
|
|
6311
|
-
* @returns The modified result parameter or a new Cartesian3 instance if none was provided.
|
|
6312
|
-
*/
|
|
6313
|
-
geocentricSurfaceNormal(cartesian: Cartesian3, result?: Cartesian3): Cartesian3;
|
|
6314
6285
|
/**
|
|
6315
6286
|
* Computes the normal of the plane tangent to the surface of the ellipsoid at the provided position.
|
|
6316
6287
|
* @param cartographic - The cartographic position for which to to determine the geodetic normal.
|
|
@@ -6449,6 +6420,34 @@ export class Ellipsoid {
|
|
|
6449
6420
|
* @returns The approximate area of the rectangle on the surface of this ellipsoid.
|
|
6450
6421
|
*/
|
|
6451
6422
|
surfaceArea(rectangle: Rectangle): number;
|
|
6423
|
+
/**
|
|
6424
|
+
* An Ellipsoid instance initialized to the WGS84 standard.
|
|
6425
|
+
*/
|
|
6426
|
+
static readonly WGS84: Ellipsoid;
|
|
6427
|
+
/**
|
|
6428
|
+
* An Ellipsoid instance initialized to radii of (1.0, 1.0, 1.0).
|
|
6429
|
+
*/
|
|
6430
|
+
static readonly UNIT_SPHERE: Ellipsoid;
|
|
6431
|
+
/**
|
|
6432
|
+
* An Ellipsoid instance initialized to a sphere with the lunar radius.
|
|
6433
|
+
*/
|
|
6434
|
+
static readonly MOON: Ellipsoid;
|
|
6435
|
+
/**
|
|
6436
|
+
* An Ellipsoid instance initialized to a sphere with the mean radii of Mars.
|
|
6437
|
+
Source: https://epsg.io/104905
|
|
6438
|
+
*/
|
|
6439
|
+
static readonly MARS: Ellipsoid;
|
|
6440
|
+
/**
|
|
6441
|
+
* The number of elements used to pack the object into an array.
|
|
6442
|
+
*/
|
|
6443
|
+
static packedLength: number;
|
|
6444
|
+
/**
|
|
6445
|
+
* Computes the unit vector directed from the center of this ellipsoid toward the provided Cartesian position.
|
|
6446
|
+
* @param cartesian - The Cartesian for which to to determine the geocentric normal.
|
|
6447
|
+
* @param [result] - The object onto which to store the result.
|
|
6448
|
+
* @returns The modified result parameter or a new Cartesian3 instance if none was provided.
|
|
6449
|
+
*/
|
|
6450
|
+
geocentricSurfaceNormal(cartesian: Cartesian3, result?: Cartesian3): Cartesian3;
|
|
6452
6451
|
}
|
|
6453
6452
|
|
|
6454
6453
|
/**
|
|
@@ -7250,6 +7249,9 @@ export enum GeocodeType {
|
|
|
7250
7249
|
AUTOCOMPLETE = 1
|
|
7251
7250
|
}
|
|
7252
7251
|
|
|
7252
|
+
export interface GeographicProjection extends MapProjection {
|
|
7253
|
+
}
|
|
7254
|
+
|
|
7253
7255
|
/**
|
|
7254
7256
|
* A simple map projection where longitude and latitude are linearly mapped to X and Y by multiplying
|
|
7255
7257
|
them by the {@link Ellipsoid#maximumRadius}. This projection
|
|
@@ -7257,7 +7259,7 @@ is commonly known as geographic, equirectangular, equidistant cylindrical, or pl
|
|
|
7257
7259
|
is also known as EPSG:4326.
|
|
7258
7260
|
* @param [ellipsoid = Ellipsoid.default] - The ellipsoid.
|
|
7259
7261
|
*/
|
|
7260
|
-
export class GeographicProjection {
|
|
7262
|
+
export class GeographicProjection implements MapProjection {
|
|
7261
7263
|
constructor(ellipsoid?: Ellipsoid);
|
|
7262
7264
|
/**
|
|
7263
7265
|
* Gets the {@link Ellipsoid}.
|
|
@@ -7289,6 +7291,9 @@ export class GeographicProjection {
|
|
|
7289
7291
|
unproject(cartesian: Cartesian3, result?: Cartographic): Cartographic;
|
|
7290
7292
|
}
|
|
7291
7293
|
|
|
7294
|
+
export interface GeographicTilingScheme extends TilingScheme {
|
|
7295
|
+
}
|
|
7296
|
+
|
|
7292
7297
|
/**
|
|
7293
7298
|
* A tiling scheme for geometry referenced to a simple {@link GeographicProjection} where
|
|
7294
7299
|
longitude and latitude are directly mapped to X and Y. This projection is commonly
|
|
@@ -7302,7 +7307,7 @@ the tile tree.
|
|
|
7302
7307
|
* @param [options.numberOfLevelZeroTilesY = 1] - The number of tiles in the Y direction at level zero of
|
|
7303
7308
|
the tile tree.
|
|
7304
7309
|
*/
|
|
7305
|
-
export class GeographicTilingScheme {
|
|
7310
|
+
export class GeographicTilingScheme implements TilingScheme {
|
|
7306
7311
|
constructor(options?: {
|
|
7307
7312
|
ellipsoid?: Ellipsoid;
|
|
7308
7313
|
rectangle?: Rectangle;
|
|
@@ -7354,7 +7359,7 @@ export class GeographicTilingScheme {
|
|
|
7354
7359
|
* @returns The specified 'result', or a new object containing the rectangle
|
|
7355
7360
|
if 'result' is undefined.
|
|
7356
7361
|
*/
|
|
7357
|
-
tileXYToNativeRectangle(x: number, y: number, level: number, result?:
|
|
7362
|
+
tileXYToNativeRectangle(x: number, y: number, level: number, result?: Rectangle): Rectangle;
|
|
7358
7363
|
/**
|
|
7359
7364
|
* Converts tile x, y coordinates and level to a cartographic rectangle in radians.
|
|
7360
7365
|
* @param x - The integer x coordinate of the tile.
|
|
@@ -7365,7 +7370,7 @@ export class GeographicTilingScheme {
|
|
|
7365
7370
|
* @returns The specified 'result', or a new object containing the rectangle
|
|
7366
7371
|
if 'result' is undefined.
|
|
7367
7372
|
*/
|
|
7368
|
-
tileXYToRectangle(x: number, y: number, level: number, result?:
|
|
7373
|
+
tileXYToRectangle(x: number, y: number, level: number, result?: Rectangle): Rectangle;
|
|
7369
7374
|
/**
|
|
7370
7375
|
* Calculates the tile x, y coordinates of the tile containing
|
|
7371
7376
|
a given cartographic position.
|
|
@@ -9863,12 +9868,11 @@ export class LinearSpline {
|
|
|
9863
9868
|
* Defines how geodetic ellipsoid coordinates ({@link Cartographic}) project to a
|
|
9864
9869
|
flat map like Cesium's 2D and Columbus View modes.
|
|
9865
9870
|
*/
|
|
9866
|
-
export
|
|
9867
|
-
constructor();
|
|
9871
|
+
export interface MapProjection {
|
|
9868
9872
|
/**
|
|
9869
9873
|
* Gets the {@link Ellipsoid}.
|
|
9870
9874
|
*/
|
|
9871
|
-
|
|
9875
|
+
ellipsoid: Ellipsoid;
|
|
9872
9876
|
/**
|
|
9873
9877
|
* Projects {@link Cartographic} coordinates, in radians, to projection-specific map coordinates, in meters.
|
|
9874
9878
|
* @param cartographic - The coordinates to project.
|
|
@@ -10402,10 +10406,6 @@ Constructor parameters are in row-major order for code readability.
|
|
|
10402
10406
|
*/
|
|
10403
10407
|
export class Matrix2 implements ArrayLike<number> {
|
|
10404
10408
|
constructor(column0Row0?: number, column1Row0?: number, column0Row1?: number, column1Row1?: number);
|
|
10405
|
-
/**
|
|
10406
|
-
* The number of elements used to pack the object into an array.
|
|
10407
|
-
*/
|
|
10408
|
-
static packedLength: number;
|
|
10409
10409
|
/**
|
|
10410
10410
|
* Stores the provided instance into the provided array.
|
|
10411
10411
|
* @param value - The value to pack.
|
|
@@ -10444,25 +10444,6 @@ export class Matrix2 implements ArrayLike<number> {
|
|
|
10444
10444
|
* @returns The modified result parameter or a new Matrix2 instance if one was not provided. (Returns undefined if matrix is undefined)
|
|
10445
10445
|
*/
|
|
10446
10446
|
static clone(matrix: Matrix2, result?: Matrix2): Matrix2;
|
|
10447
|
-
/**
|
|
10448
|
-
* Creates a Matrix2 from 4 consecutive elements in an array.
|
|
10449
|
-
* @example
|
|
10450
|
-
* // Create the Matrix2:
|
|
10451
|
-
// [1.0, 2.0]
|
|
10452
|
-
// [1.0, 2.0]
|
|
10453
|
-
|
|
10454
|
-
const v = [1.0, 1.0, 2.0, 2.0];
|
|
10455
|
-
const m = Cesium.Matrix2.fromArray(v);
|
|
10456
|
-
|
|
10457
|
-
// Create same Matrix2 with using an offset into an array
|
|
10458
|
-
const v2 = [0.0, 0.0, 1.0, 1.0, 2.0, 2.0];
|
|
10459
|
-
const m2 = Cesium.Matrix2.fromArray(v2, 2);
|
|
10460
|
-
* @param array - The array whose 4 consecutive elements correspond to the positions of the matrix. Assumes column-major order.
|
|
10461
|
-
* @param [startingIndex = 0] - The offset into the array of the first element, which corresponds to first column first row position in the matrix.
|
|
10462
|
-
* @param [result] - The object onto which to store the result.
|
|
10463
|
-
* @returns The modified result parameter or a new Matrix2 instance if one was not provided.
|
|
10464
|
-
*/
|
|
10465
|
-
static fromArray(array: number[], startingIndex?: number, result?: Matrix2): Matrix2;
|
|
10466
10447
|
/**
|
|
10467
10448
|
* Creates a Matrix2 instance from a column-major order array.
|
|
10468
10449
|
* @param values - The column-major order array.
|
|
@@ -10550,7 +10531,7 @@ export class Matrix2 implements ArrayLike<number> {
|
|
|
10550
10531
|
* @param result - The object onto which to store the result.
|
|
10551
10532
|
* @returns The modified result parameter.
|
|
10552
10533
|
*/
|
|
10553
|
-
static setColumn(matrix: Matrix2, index: number, cartesian: Cartesian2, result:
|
|
10534
|
+
static setColumn(matrix: Matrix2, index: number, cartesian: Cartesian2, result: Matrix2): Matrix2;
|
|
10554
10535
|
/**
|
|
10555
10536
|
* Retrieves a copy of the matrix row at the provided index as a Cartesian2 instance.
|
|
10556
10537
|
* @param matrix - The matrix to use.
|
|
@@ -10716,6 +10697,61 @@ export class Matrix2 implements ArrayLike<number> {
|
|
|
10716
10697
|
* @returns <code>true</code> if left and right are within the provided epsilon, <code>false</code> otherwise.
|
|
10717
10698
|
*/
|
|
10718
10699
|
static equalsEpsilon(left?: Matrix2, right?: Matrix2, epsilon?: number): boolean;
|
|
10700
|
+
/**
|
|
10701
|
+
* Gets the number of items in the collection.
|
|
10702
|
+
*/
|
|
10703
|
+
length: number;
|
|
10704
|
+
/**
|
|
10705
|
+
* Duplicates the provided Matrix2 instance.
|
|
10706
|
+
* @param [result] - The object onto which to store the result.
|
|
10707
|
+
* @returns The modified result parameter or a new Matrix2 instance if one was not provided.
|
|
10708
|
+
*/
|
|
10709
|
+
clone(result?: Matrix2): Matrix2;
|
|
10710
|
+
/**
|
|
10711
|
+
* Compares this matrix to the provided matrix componentwise and returns
|
|
10712
|
+
<code>true</code> if they are equal, <code>false</code> otherwise.
|
|
10713
|
+
* @param [right] - The right hand side matrix.
|
|
10714
|
+
* @returns <code>true</code> if they are equal, <code>false</code> otherwise.
|
|
10715
|
+
*/
|
|
10716
|
+
equals(right?: Matrix2): boolean;
|
|
10717
|
+
/**
|
|
10718
|
+
* Compares this matrix to the provided matrix componentwise and returns
|
|
10719
|
+
<code>true</code> if they are within the provided epsilon,
|
|
10720
|
+
<code>false</code> otherwise.
|
|
10721
|
+
* @param [right] - The right hand side matrix.
|
|
10722
|
+
* @param [epsilon = 0] - The epsilon to use for equality testing.
|
|
10723
|
+
* @returns <code>true</code> if they are within the provided epsilon, <code>false</code> otherwise.
|
|
10724
|
+
*/
|
|
10725
|
+
equalsEpsilon(right?: Matrix2, epsilon?: number): boolean;
|
|
10726
|
+
/**
|
|
10727
|
+
* Creates a string representing this Matrix with each row being
|
|
10728
|
+
on a separate line and in the format '(column0, column1)'.
|
|
10729
|
+
* @returns A string representing the provided Matrix with each row being on a separate line and in the format '(column0, column1)'.
|
|
10730
|
+
*/
|
|
10731
|
+
toString(): string;
|
|
10732
|
+
/**
|
|
10733
|
+
* The number of elements used to pack the object into an array.
|
|
10734
|
+
*/
|
|
10735
|
+
static packedLength: number;
|
|
10736
|
+
/**
|
|
10737
|
+
* Creates a Matrix2 from 4 consecutive elements in an array.
|
|
10738
|
+
* @example
|
|
10739
|
+
* // Create the Matrix2:
|
|
10740
|
+
// [1.0, 2.0]
|
|
10741
|
+
// [1.0, 2.0]
|
|
10742
|
+
|
|
10743
|
+
const v = [1.0, 1.0, 2.0, 2.0];
|
|
10744
|
+
const m = Cesium.Matrix2.fromArray(v);
|
|
10745
|
+
|
|
10746
|
+
// Create same Matrix2 with using an offset into an array
|
|
10747
|
+
const v2 = [0.0, 0.0, 1.0, 1.0, 2.0, 2.0];
|
|
10748
|
+
const m2 = Cesium.Matrix2.fromArray(v2, 2);
|
|
10749
|
+
* @param array - The array whose 4 consecutive elements correspond to the positions of the matrix. Assumes column-major order.
|
|
10750
|
+
* @param [startingIndex = 0] - The offset into the array of the first element, which corresponds to first column first row position in the matrix.
|
|
10751
|
+
* @param [result] - The object onto which to store the result.
|
|
10752
|
+
* @returns The modified result parameter or a new Matrix2 instance if one was not provided.
|
|
10753
|
+
*/
|
|
10754
|
+
static fromArray(array: number[], startingIndex?: number, result?: Matrix2): Matrix2;
|
|
10719
10755
|
/**
|
|
10720
10756
|
* An immutable Matrix2 instance initialized to the identity matrix.
|
|
10721
10757
|
*/
|
|
@@ -10752,40 +10788,13 @@ export class Matrix2 implements ArrayLike<number> {
|
|
|
10752
10788
|
matrix[Cesium.Matrix2.COLUMN1ROW1] = 5.0; // set column 1, row 1 to 5.0
|
|
10753
10789
|
*/
|
|
10754
10790
|
static readonly COLUMN1ROW1: number;
|
|
10755
|
-
/**
|
|
10756
|
-
* Gets the number of items in the collection.
|
|
10757
|
-
*/
|
|
10758
|
-
length: number;
|
|
10759
|
-
/**
|
|
10760
|
-
* Duplicates the provided Matrix2 instance.
|
|
10761
|
-
* @param [result] - The object onto which to store the result.
|
|
10762
|
-
* @returns The modified result parameter or a new Matrix2 instance if one was not provided.
|
|
10763
|
-
*/
|
|
10764
|
-
clone(result?: Matrix2): Matrix2;
|
|
10765
|
-
/**
|
|
10766
|
-
* Compares this matrix to the provided matrix componentwise and returns
|
|
10767
|
-
<code>true</code> if they are equal, <code>false</code> otherwise.
|
|
10768
|
-
* @param [right] - The right hand side matrix.
|
|
10769
|
-
* @returns <code>true</code> if they are equal, <code>false</code> otherwise.
|
|
10770
|
-
*/
|
|
10771
|
-
equals(right?: Matrix2): boolean;
|
|
10772
|
-
/**
|
|
10773
|
-
* Compares this matrix to the provided matrix componentwise and returns
|
|
10774
|
-
<code>true</code> if they are within the provided epsilon,
|
|
10775
|
-
<code>false</code> otherwise.
|
|
10776
|
-
* @param [right] - The right hand side matrix.
|
|
10777
|
-
* @param [epsilon = 0] - The epsilon to use for equality testing.
|
|
10778
|
-
* @returns <code>true</code> if they are within the provided epsilon, <code>false</code> otherwise.
|
|
10779
|
-
*/
|
|
10780
|
-
equalsEpsilon(right?: Matrix2, epsilon?: number): boolean;
|
|
10781
|
-
/**
|
|
10782
|
-
* Creates a string representing this Matrix with each row being
|
|
10783
|
-
on a separate line and in the format '(column0, column1)'.
|
|
10784
|
-
* @returns A string representing the provided Matrix with each row being on a separate line and in the format '(column0, column1)'.
|
|
10785
|
-
*/
|
|
10786
|
-
toString(): string;
|
|
10787
10791
|
}
|
|
10788
10792
|
|
|
10793
|
+
export type EigenDecompositionResult = {
|
|
10794
|
+
unitary?: Matrix3;
|
|
10795
|
+
diagonal?: Matrix3;
|
|
10796
|
+
};
|
|
10797
|
+
|
|
10789
10798
|
export interface Matrix3 extends ArrayLike<number> {
|
|
10790
10799
|
}
|
|
10791
10800
|
|
|
@@ -10804,10 +10813,6 @@ Constructor parameters are in row-major order for code readability.
|
|
|
10804
10813
|
*/
|
|
10805
10814
|
export class Matrix3 implements ArrayLike<number> {
|
|
10806
10815
|
constructor(column0Row0?: number, column1Row0?: number, column2Row0?: number, column0Row1?: number, column1Row1?: number, column2Row1?: number, column0Row2?: number, column1Row2?: number, column2Row2?: number);
|
|
10807
|
-
/**
|
|
10808
|
-
* The number of elements used to pack the object into an array.
|
|
10809
|
-
*/
|
|
10810
|
-
static packedLength: number;
|
|
10811
10816
|
/**
|
|
10812
10817
|
* Stores the provided instance into the provided array.
|
|
10813
10818
|
* @param value - The value to pack.
|
|
@@ -10846,26 +10851,6 @@ export class Matrix3 implements ArrayLike<number> {
|
|
|
10846
10851
|
* @returns The modified result parameter or a new Matrix3 instance if one was not provided. (Returns undefined if matrix is undefined)
|
|
10847
10852
|
*/
|
|
10848
10853
|
static clone(matrix: Matrix3, result?: Matrix3): Matrix3;
|
|
10849
|
-
/**
|
|
10850
|
-
* Creates a Matrix3 from 9 consecutive elements in an array.
|
|
10851
|
-
* @example
|
|
10852
|
-
* // Create the Matrix3:
|
|
10853
|
-
// [1.0, 2.0, 3.0]
|
|
10854
|
-
// [1.0, 2.0, 3.0]
|
|
10855
|
-
// [1.0, 2.0, 3.0]
|
|
10856
|
-
|
|
10857
|
-
const v = [1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0];
|
|
10858
|
-
const m = Cesium.Matrix3.fromArray(v);
|
|
10859
|
-
|
|
10860
|
-
// Create same Matrix3 with using an offset into an array
|
|
10861
|
-
const v2 = [0.0, 0.0, 1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0];
|
|
10862
|
-
const m2 = Cesium.Matrix3.fromArray(v2, 2);
|
|
10863
|
-
* @param array - The array whose 9 consecutive elements correspond to the positions of the matrix. Assumes column-major order.
|
|
10864
|
-
* @param [startingIndex = 0] - The offset into the array of the first element, which corresponds to first column first row position in the matrix.
|
|
10865
|
-
* @param [result] - The object onto which to store the result.
|
|
10866
|
-
* @returns The modified result parameter or a new Matrix3 instance if one was not provided.
|
|
10867
|
-
*/
|
|
10868
|
-
static fromArray(array: number[], startingIndex?: number, result?: Matrix3): Matrix3;
|
|
10869
10854
|
/**
|
|
10870
10855
|
* Creates a Matrix3 instance from a column-major order array.
|
|
10871
10856
|
* @param values - The column-major order array.
|
|
@@ -11176,7 +11161,7 @@ export class Matrix3 implements ArrayLike<number> {
|
|
|
11176
11161
|
* @param [result] - An object with unitary and diagonal properties which are matrices onto which to store the result.
|
|
11177
11162
|
* @returns An object with unitary and diagonal properties which are the unitary and diagonal matrices, respectively.
|
|
11178
11163
|
*/
|
|
11179
|
-
static computeEigenDecomposition(matrix: Matrix3, result?:
|
|
11164
|
+
static computeEigenDecomposition(matrix: Matrix3, result?: EigenDecompositionResult): EigenDecompositionResult;
|
|
11180
11165
|
/**
|
|
11181
11166
|
* Computes a matrix, which contains the absolute (unsigned) values of the provided matrix's elements.
|
|
11182
11167
|
* @param matrix - The matrix with signed elements.
|
|
@@ -11222,6 +11207,62 @@ export class Matrix3 implements ArrayLike<number> {
|
|
|
11222
11207
|
* @returns <code>true</code> if left and right are within the provided epsilon, <code>false</code> otherwise.
|
|
11223
11208
|
*/
|
|
11224
11209
|
static equalsEpsilon(left?: Matrix3, right?: Matrix3, epsilon?: number): boolean;
|
|
11210
|
+
/**
|
|
11211
|
+
* Gets the number of items in the collection.
|
|
11212
|
+
*/
|
|
11213
|
+
length: number;
|
|
11214
|
+
/**
|
|
11215
|
+
* Duplicates the provided Matrix3 instance.
|
|
11216
|
+
* @param [result] - The object onto which to store the result.
|
|
11217
|
+
* @returns The modified result parameter or a new Matrix3 instance if one was not provided.
|
|
11218
|
+
*/
|
|
11219
|
+
clone(result?: Matrix3): Matrix3;
|
|
11220
|
+
/**
|
|
11221
|
+
* Compares this matrix to the provided matrix componentwise and returns
|
|
11222
|
+
<code>true</code> if they are equal, <code>false</code> otherwise.
|
|
11223
|
+
* @param [right] - The right hand side matrix.
|
|
11224
|
+
* @returns <code>true</code> if they are equal, <code>false</code> otherwise.
|
|
11225
|
+
*/
|
|
11226
|
+
equals(right?: Matrix3): boolean;
|
|
11227
|
+
/**
|
|
11228
|
+
* Compares this matrix to the provided matrix componentwise and returns
|
|
11229
|
+
<code>true</code> if they are within the provided epsilon,
|
|
11230
|
+
<code>false</code> otherwise.
|
|
11231
|
+
* @param [right] - The right hand side matrix.
|
|
11232
|
+
* @param [epsilon = 0] - The epsilon to use for equality testing.
|
|
11233
|
+
* @returns <code>true</code> if they are within the provided epsilon, <code>false</code> otherwise.
|
|
11234
|
+
*/
|
|
11235
|
+
equalsEpsilon(right?: Matrix3, epsilon?: number): boolean;
|
|
11236
|
+
/**
|
|
11237
|
+
* Creates a string representing this Matrix with each row being
|
|
11238
|
+
on a separate line and in the format '(column0, column1, column2)'.
|
|
11239
|
+
* @returns A string representing the provided Matrix with each row being on a separate line and in the format '(column0, column1, column2)'.
|
|
11240
|
+
*/
|
|
11241
|
+
toString(): string;
|
|
11242
|
+
/**
|
|
11243
|
+
* The number of elements used to pack the object into an array.
|
|
11244
|
+
*/
|
|
11245
|
+
static packedLength: number;
|
|
11246
|
+
/**
|
|
11247
|
+
* Creates a Matrix3 from 9 consecutive elements in an array.
|
|
11248
|
+
* @example
|
|
11249
|
+
* // Create the Matrix3:
|
|
11250
|
+
// [1.0, 2.0, 3.0]
|
|
11251
|
+
// [1.0, 2.0, 3.0]
|
|
11252
|
+
// [1.0, 2.0, 3.0]
|
|
11253
|
+
|
|
11254
|
+
const v = [1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0];
|
|
11255
|
+
const m = Cesium.Matrix3.fromArray(v);
|
|
11256
|
+
|
|
11257
|
+
// Create same Matrix3 with using an offset into an array
|
|
11258
|
+
const v2 = [0.0, 0.0, 1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0];
|
|
11259
|
+
const m2 = Cesium.Matrix3.fromArray(v2, 2);
|
|
11260
|
+
* @param array - The array whose 9 consecutive elements correspond to the positions of the matrix. Assumes column-major order.
|
|
11261
|
+
* @param [startingIndex = 0] - The offset into the array of the first element, which corresponds to first column first row position in the matrix.
|
|
11262
|
+
* @param [result] - The object onto which to store the result.
|
|
11263
|
+
* @returns The modified result parameter or a new Matrix3 instance if one was not provided.
|
|
11264
|
+
*/
|
|
11265
|
+
static fromArray(array: number[], startingIndex?: number, result?: Matrix3): Matrix3;
|
|
11225
11266
|
/**
|
|
11226
11267
|
* An immutable Matrix3 instance initialized to the identity matrix.
|
|
11227
11268
|
*/
|
|
@@ -11266,40 +11307,15 @@ export class Matrix3 implements ArrayLike<number> {
|
|
|
11266
11307
|
* The index into Matrix3 for column 2, row 2.
|
|
11267
11308
|
*/
|
|
11268
11309
|
static readonly COLUMN2ROW2: number;
|
|
11269
|
-
/**
|
|
11270
|
-
* Gets the number of items in the collection.
|
|
11271
|
-
*/
|
|
11272
|
-
length: number;
|
|
11273
|
-
/**
|
|
11274
|
-
* Duplicates the provided Matrix3 instance.
|
|
11275
|
-
* @param [result] - The object onto which to store the result.
|
|
11276
|
-
* @returns The modified result parameter or a new Matrix3 instance if one was not provided.
|
|
11277
|
-
*/
|
|
11278
|
-
clone(result?: Matrix3): Matrix3;
|
|
11279
|
-
/**
|
|
11280
|
-
* Compares this matrix to the provided matrix componentwise and returns
|
|
11281
|
-
<code>true</code> if they are equal, <code>false</code> otherwise.
|
|
11282
|
-
* @param [right] - The right hand side matrix.
|
|
11283
|
-
* @returns <code>true</code> if they are equal, <code>false</code> otherwise.
|
|
11284
|
-
*/
|
|
11285
|
-
equals(right?: Matrix3): boolean;
|
|
11286
|
-
/**
|
|
11287
|
-
* Compares this matrix to the provided matrix componentwise and returns
|
|
11288
|
-
<code>true</code> if they are within the provided epsilon,
|
|
11289
|
-
<code>false</code> otherwise.
|
|
11290
|
-
* @param [right] - The right hand side matrix.
|
|
11291
|
-
* @param [epsilon = 0] - The epsilon to use for equality testing.
|
|
11292
|
-
* @returns <code>true</code> if they are within the provided epsilon, <code>false</code> otherwise.
|
|
11293
|
-
*/
|
|
11294
|
-
equalsEpsilon(right?: Matrix3, epsilon?: number): boolean;
|
|
11295
|
-
/**
|
|
11296
|
-
* Creates a string representing this Matrix with each row being
|
|
11297
|
-
on a separate line and in the format '(column0, column1, column2)'.
|
|
11298
|
-
* @returns A string representing the provided Matrix with each row being on a separate line and in the format '(column0, column1, column2)'.
|
|
11299
|
-
*/
|
|
11300
|
-
toString(): string;
|
|
11301
11310
|
}
|
|
11302
11311
|
|
|
11312
|
+
export type Viewport = {
|
|
11313
|
+
x?: number;
|
|
11314
|
+
y?: number;
|
|
11315
|
+
width?: number;
|
|
11316
|
+
height?: number;
|
|
11317
|
+
};
|
|
11318
|
+
|
|
11303
11319
|
export interface Matrix4 extends ArrayLike<number> {
|
|
11304
11320
|
}
|
|
11305
11321
|
|
|
@@ -11325,10 +11341,6 @@ Constructor parameters are in row-major order for code readability.
|
|
|
11325
11341
|
*/
|
|
11326
11342
|
export class Matrix4 implements ArrayLike<number> {
|
|
11327
11343
|
constructor(column0Row0?: number, column1Row0?: number, column2Row0?: number, column3Row0?: number, column0Row1?: number, column1Row1?: number, column2Row1?: number, column3Row1?: number, column0Row2?: number, column1Row2?: number, column2Row2?: number, column3Row2?: number, column0Row3?: number, column1Row3?: number, column2Row3?: number, column3Row3?: number);
|
|
11328
|
-
/**
|
|
11329
|
-
* The number of elements used to pack the object into an array.
|
|
11330
|
-
*/
|
|
11331
|
-
static packedLength: number;
|
|
11332
11344
|
/**
|
|
11333
11345
|
* Stores the provided instance into the provided array.
|
|
11334
11346
|
* @param value - The value to pack.
|
|
@@ -11367,27 +11379,6 @@ export class Matrix4 implements ArrayLike<number> {
|
|
|
11367
11379
|
* @returns The modified result parameter or a new Matrix4 instance if one was not provided. (Returns undefined if matrix is undefined)
|
|
11368
11380
|
*/
|
|
11369
11381
|
static clone(matrix: Matrix4, result?: Matrix4): Matrix4;
|
|
11370
|
-
/**
|
|
11371
|
-
* Creates a Matrix4 from 16 consecutive elements in an array.
|
|
11372
|
-
* @example
|
|
11373
|
-
* // Create the Matrix4:
|
|
11374
|
-
// [1.0, 2.0, 3.0, 4.0]
|
|
11375
|
-
// [1.0, 2.0, 3.0, 4.0]
|
|
11376
|
-
// [1.0, 2.0, 3.0, 4.0]
|
|
11377
|
-
// [1.0, 2.0, 3.0, 4.0]
|
|
11378
|
-
|
|
11379
|
-
const v = [1.0, 1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0, 3.0, 4.0, 4.0, 4.0, 4.0];
|
|
11380
|
-
const m = Cesium.Matrix4.fromArray(v);
|
|
11381
|
-
|
|
11382
|
-
// Create same Matrix4 with using an offset into an array
|
|
11383
|
-
const v2 = [0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0, 3.0, 4.0, 4.0, 4.0, 4.0];
|
|
11384
|
-
const m2 = Cesium.Matrix4.fromArray(v2, 2);
|
|
11385
|
-
* @param array - The array whose 16 consecutive elements correspond to the positions of the matrix. Assumes column-major order.
|
|
11386
|
-
* @param [startingIndex = 0] - The offset into the array of the first element, which corresponds to first column first row position in the matrix.
|
|
11387
|
-
* @param [result] - The object onto which to store the result.
|
|
11388
|
-
* @returns The modified result parameter or a new Matrix4 instance if one was not provided.
|
|
11389
|
-
*/
|
|
11390
|
-
static fromArray(array: number[], startingIndex?: number, result?: Matrix4): Matrix4;
|
|
11391
11382
|
/**
|
|
11392
11383
|
* Computes a Matrix4 instance from a column-major order array.
|
|
11393
11384
|
* @param values - The column-major order array.
|
|
@@ -11545,7 +11536,7 @@ export class Matrix4 implements ArrayLike<number> {
|
|
|
11545
11536
|
* @param [result] - The object in which the result will be stored.
|
|
11546
11537
|
* @returns The modified result parameter.
|
|
11547
11538
|
*/
|
|
11548
|
-
static computeViewportTransformation(viewport?:
|
|
11539
|
+
static computeViewportTransformation(viewport?: Viewport, nearDepthRange?: number, farDepthRange?: number, result?: Matrix4): Matrix4;
|
|
11549
11540
|
/**
|
|
11550
11541
|
* Computes a Matrix4 instance that transforms from world space to view space.
|
|
11551
11542
|
* @param position - The position of the camera.
|
|
@@ -12051,6 +12042,63 @@ export class Matrix4 implements ArrayLike<number> {
|
|
|
12051
12042
|
* @returns The modified result parameter.
|
|
12052
12043
|
*/
|
|
12053
12044
|
static inverseTranspose(matrix: Matrix4, result: Matrix4): Matrix4;
|
|
12045
|
+
/**
|
|
12046
|
+
* Gets the number of items in the collection.
|
|
12047
|
+
*/
|
|
12048
|
+
length: number;
|
|
12049
|
+
/**
|
|
12050
|
+
* Duplicates the provided Matrix4 instance.
|
|
12051
|
+
* @param [result] - The object onto which to store the result.
|
|
12052
|
+
* @returns The modified result parameter or a new Matrix4 instance if one was not provided.
|
|
12053
|
+
*/
|
|
12054
|
+
clone(result?: Matrix4): Matrix4;
|
|
12055
|
+
/**
|
|
12056
|
+
* Compares this matrix to the provided matrix componentwise and returns
|
|
12057
|
+
<code>true</code> if they are equal, <code>false</code> otherwise.
|
|
12058
|
+
* @param [right] - The right hand side matrix.
|
|
12059
|
+
* @returns <code>true</code> if they are equal, <code>false</code> otherwise.
|
|
12060
|
+
*/
|
|
12061
|
+
equals(right?: Matrix4): boolean;
|
|
12062
|
+
/**
|
|
12063
|
+
* Compares this matrix to the provided matrix componentwise and returns
|
|
12064
|
+
<code>true</code> if they are within the provided epsilon,
|
|
12065
|
+
<code>false</code> otherwise.
|
|
12066
|
+
* @param [right] - The right hand side matrix.
|
|
12067
|
+
* @param [epsilon = 0] - The epsilon to use for equality testing.
|
|
12068
|
+
* @returns <code>true</code> if they are within the provided epsilon, <code>false</code> otherwise.
|
|
12069
|
+
*/
|
|
12070
|
+
equalsEpsilon(right?: Matrix4, epsilon?: number): boolean;
|
|
12071
|
+
/**
|
|
12072
|
+
* Computes a string representing this Matrix with each row being
|
|
12073
|
+
on a separate line and in the format '(column0, column1, column2, column3)'.
|
|
12074
|
+
* @returns A string representing the provided Matrix with each row being on a separate line and in the format '(column0, column1, column2, column3)'.
|
|
12075
|
+
*/
|
|
12076
|
+
toString(): string;
|
|
12077
|
+
/**
|
|
12078
|
+
* The number of elements used to pack the object into an array.
|
|
12079
|
+
*/
|
|
12080
|
+
static packedLength: number;
|
|
12081
|
+
/**
|
|
12082
|
+
* Creates a Matrix4 from 16 consecutive elements in an array.
|
|
12083
|
+
* @example
|
|
12084
|
+
* // Create the Matrix4:
|
|
12085
|
+
// [1.0, 2.0, 3.0, 4.0]
|
|
12086
|
+
// [1.0, 2.0, 3.0, 4.0]
|
|
12087
|
+
// [1.0, 2.0, 3.0, 4.0]
|
|
12088
|
+
// [1.0, 2.0, 3.0, 4.0]
|
|
12089
|
+
|
|
12090
|
+
const v = [1.0, 1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0, 3.0, 4.0, 4.0, 4.0, 4.0];
|
|
12091
|
+
const m = Cesium.Matrix4.fromArray(v);
|
|
12092
|
+
|
|
12093
|
+
// Create same Matrix4 with using an offset into an array
|
|
12094
|
+
const v2 = [0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0, 3.0, 4.0, 4.0, 4.0, 4.0];
|
|
12095
|
+
const m2 = Cesium.Matrix4.fromArray(v2, 2);
|
|
12096
|
+
* @param array - The array whose 16 consecutive elements correspond to the positions of the matrix. Assumes column-major order.
|
|
12097
|
+
* @param [startingIndex = 0] - The offset into the array of the first element, which corresponds to first column first row position in the matrix.
|
|
12098
|
+
* @param [result] - The object onto which to store the result.
|
|
12099
|
+
* @returns The modified result parameter or a new Matrix4 instance if one was not provided.
|
|
12100
|
+
*/
|
|
12101
|
+
static fromArray(array: number[], startingIndex?: number, result?: Matrix4): Matrix4;
|
|
12054
12102
|
/**
|
|
12055
12103
|
* An immutable Matrix4 instance initialized to the identity matrix.
|
|
12056
12104
|
*/
|
|
@@ -12123,38 +12171,6 @@ export class Matrix4 implements ArrayLike<number> {
|
|
|
12123
12171
|
* The index into Matrix4 for column 3, row 3.
|
|
12124
12172
|
*/
|
|
12125
12173
|
static readonly COLUMN3ROW3: number;
|
|
12126
|
-
/**
|
|
12127
|
-
* Gets the number of items in the collection.
|
|
12128
|
-
*/
|
|
12129
|
-
length: number;
|
|
12130
|
-
/**
|
|
12131
|
-
* Duplicates the provided Matrix4 instance.
|
|
12132
|
-
* @param [result] - The object onto which to store the result.
|
|
12133
|
-
* @returns The modified result parameter or a new Matrix4 instance if one was not provided.
|
|
12134
|
-
*/
|
|
12135
|
-
clone(result?: Matrix4): Matrix4;
|
|
12136
|
-
/**
|
|
12137
|
-
* Compares this matrix to the provided matrix componentwise and returns
|
|
12138
|
-
<code>true</code> if they are equal, <code>false</code> otherwise.
|
|
12139
|
-
* @param [right] - The right hand side matrix.
|
|
12140
|
-
* @returns <code>true</code> if they are equal, <code>false</code> otherwise.
|
|
12141
|
-
*/
|
|
12142
|
-
equals(right?: Matrix4): boolean;
|
|
12143
|
-
/**
|
|
12144
|
-
* Compares this matrix to the provided matrix componentwise and returns
|
|
12145
|
-
<code>true</code> if they are within the provided epsilon,
|
|
12146
|
-
<code>false</code> otherwise.
|
|
12147
|
-
* @param [right] - The right hand side matrix.
|
|
12148
|
-
* @param [epsilon = 0] - The epsilon to use for equality testing.
|
|
12149
|
-
* @returns <code>true</code> if they are within the provided epsilon, <code>false</code> otherwise.
|
|
12150
|
-
*/
|
|
12151
|
-
equalsEpsilon(right?: Matrix4, epsilon?: number): boolean;
|
|
12152
|
-
/**
|
|
12153
|
-
* Computes a string representing this Matrix with each row being
|
|
12154
|
-
on a separate line and in the format '(column0, column1, column2, column3)'.
|
|
12155
|
-
* @returns A string representing the provided Matrix with each row being on a separate line and in the format '(column0, column1, column2, column3)'.
|
|
12156
|
-
*/
|
|
12157
|
-
toString(): string;
|
|
12158
12174
|
}
|
|
12159
12175
|
|
|
12160
12176
|
/**
|
|
@@ -14936,10 +14952,6 @@ export class Rectangle {
|
|
|
14936
14952
|
* Gets the height of the rectangle in radians.
|
|
14937
14953
|
*/
|
|
14938
14954
|
readonly height: number;
|
|
14939
|
-
/**
|
|
14940
|
-
* The number of elements used to pack the object into an array.
|
|
14941
|
-
*/
|
|
14942
|
-
static packedLength: number;
|
|
14943
14955
|
/**
|
|
14944
14956
|
* Stores the provided instance into the provided array.
|
|
14945
14957
|
* @param value - The value to pack.
|
|
@@ -15165,6 +15177,10 @@ export class Rectangle {
|
|
|
15165
15177
|
* @returns The modified result parameter or a new Rectangle instance if none was provided.
|
|
15166
15178
|
*/
|
|
15167
15179
|
static subsection(rectangle: Rectangle, westLerp: number, southLerp: number, eastLerp: number, northLerp: number, result?: Rectangle): Rectangle;
|
|
15180
|
+
/**
|
|
15181
|
+
* The number of elements used to pack the object into an array.
|
|
15182
|
+
*/
|
|
15183
|
+
static packedLength: number;
|
|
15168
15184
|
/**
|
|
15169
15185
|
* The largest possible rectangle.
|
|
15170
15186
|
*/
|
|
@@ -17516,8 +17532,7 @@ At level of detail one, each of the level zero tiles has four children, two in e
|
|
|
17516
17532
|
At level of detail two, each of the level one tiles has four children, two in each direction.
|
|
17517
17533
|
This continues for as many levels as are present in the geometry or imagery source.
|
|
17518
17534
|
*/
|
|
17519
|
-
export
|
|
17520
|
-
constructor();
|
|
17535
|
+
export interface TilingScheme {
|
|
17521
17536
|
/**
|
|
17522
17537
|
* Gets the ellipsoid that is tiled by the tiling scheme.
|
|
17523
17538
|
*/
|
|
@@ -17563,7 +17578,7 @@ export class TilingScheme {
|
|
|
17563
17578
|
* @returns The specified 'result', or a new object containing the rectangle
|
|
17564
17579
|
if 'result' is undefined.
|
|
17565
17580
|
*/
|
|
17566
|
-
tileXYToNativeRectangle(x: number, y: number, level: number, result?:
|
|
17581
|
+
tileXYToNativeRectangle(x: number, y: number, level: number, result?: Rectangle): Rectangle;
|
|
17567
17582
|
/**
|
|
17568
17583
|
* Converts tile x, y coordinates and level to a cartographic rectangle in radians.
|
|
17569
17584
|
* @param x - The integer x coordinate of the tile.
|
|
@@ -17574,7 +17589,7 @@ export class TilingScheme {
|
|
|
17574
17589
|
* @returns The specified 'result', or a new object containing the rectangle
|
|
17575
17590
|
if 'result' is undefined.
|
|
17576
17591
|
*/
|
|
17577
|
-
tileXYToRectangle(x: number, y: number, level: number, result?:
|
|
17592
|
+
tileXYToRectangle(x: number, y: number, level: number, result?: Rectangle): Rectangle;
|
|
17578
17593
|
/**
|
|
17579
17594
|
* Calculates the tile x, y coordinates of the tile containing
|
|
17580
17595
|
a given cartographic position.
|
|
@@ -18917,13 +18932,16 @@ export class WallOutlineGeometry {
|
|
|
18917
18932
|
static createGeometry(wallGeometry: WallOutlineGeometry): Geometry | undefined;
|
|
18918
18933
|
}
|
|
18919
18934
|
|
|
18935
|
+
export interface WebMercatorProjection extends MapProjection {
|
|
18936
|
+
}
|
|
18937
|
+
|
|
18920
18938
|
/**
|
|
18921
18939
|
* The map projection used by Google Maps, Bing Maps, and most of ArcGIS Online, EPSG:3857. This
|
|
18922
18940
|
projection use longitude and latitude expressed with the WGS84 and transforms them to Mercator using
|
|
18923
18941
|
the spherical (rather than ellipsoidal) equations.
|
|
18924
18942
|
* @param [ellipsoid = Ellipsoid.WGS84] - The ellipsoid.
|
|
18925
18943
|
*/
|
|
18926
|
-
export class WebMercatorProjection {
|
|
18944
|
+
export class WebMercatorProjection implements MapProjection {
|
|
18927
18945
|
constructor(ellipsoid?: Ellipsoid);
|
|
18928
18946
|
/**
|
|
18929
18947
|
* Gets the {@link Ellipsoid}.
|
|
@@ -18943,19 +18961,6 @@ export class WebMercatorProjection {
|
|
|
18943
18961
|
* @returns The Mercator angle.
|
|
18944
18962
|
*/
|
|
18945
18963
|
static geodeticLatitudeToMercatorAngle(latitude: number): number;
|
|
18946
|
-
/**
|
|
18947
|
-
* The maximum latitude (both North and South) supported by a Web Mercator
|
|
18948
|
-
(EPSG:3857) projection. Technically, the Mercator projection is defined
|
|
18949
|
-
for any latitude up to (but not including) 90 degrees, but it makes sense
|
|
18950
|
-
to cut it off sooner because it grows exponentially with increasing latitude.
|
|
18951
|
-
The logic behind this particular cutoff value, which is the one used by
|
|
18952
|
-
Google Maps, Bing Maps, and Esri, is that it makes the projection
|
|
18953
|
-
square. That is, the rectangle is equal in the X and Y directions.
|
|
18954
|
-
|
|
18955
|
-
The constant value is computed by calling:
|
|
18956
|
-
WebMercatorProjection.mercatorAngleToGeodeticLatitude(Math.PI)
|
|
18957
|
-
*/
|
|
18958
|
-
static MaximumLatitude: number;
|
|
18959
18964
|
/**
|
|
18960
18965
|
* Converts geodetic ellipsoid coordinates, in radians, to the equivalent Web Mercator
|
|
18961
18966
|
X, Y, Z coordinates expressed in meters and returned in a {@link Cartesian3}. The height
|
|
@@ -18976,6 +18981,24 @@ export class WebMercatorProjection {
|
|
|
18976
18981
|
* @returns The equivalent cartographic coordinates.
|
|
18977
18982
|
*/
|
|
18978
18983
|
unproject(cartesian: Cartesian3, result?: Cartographic): Cartographic;
|
|
18984
|
+
/**
|
|
18985
|
+
* The maximum latitude (both North and South) supported by a Web Mercator
|
|
18986
|
+
(EPSG:3857) projection. Technically, the Mercator projection is defined
|
|
18987
|
+
for any latitude up to (but not including) 90 degrees, but it makes sense
|
|
18988
|
+
to cut it off sooner because it grows exponentially with increasing latitude.
|
|
18989
|
+
The logic behind this particular cutoff value, which is the one used by
|
|
18990
|
+
Google Maps, Bing Maps, and Esri, is that it makes the projection
|
|
18991
|
+
square. That is, the rectangle is equal in the X and Y directions.
|
|
18992
|
+
|
|
18993
|
+
The constant value is computed by calling:
|
|
18994
|
+
WebMercatorProjection.mercatorAngleToGeodeticLatitude(Math.PI)
|
|
18995
|
+
*/
|
|
18996
|
+
static MaximumLatitude: number;
|
|
18997
|
+
}
|
|
18998
|
+
|
|
18999
|
+
export const southwestScratch: any;
|
|
19000
|
+
|
|
19001
|
+
export interface WebMercatorTilingScheme extends TilingScheme {
|
|
18979
19002
|
}
|
|
18980
19003
|
|
|
18981
19004
|
/**
|
|
@@ -18997,7 +19020,7 @@ the default ellipsoid.
|
|
|
18997
19020
|
globe is covered in the longitude direction and an equal distance is covered in the latitude
|
|
18998
19021
|
direction, resulting in a square projection.
|
|
18999
19022
|
*/
|
|
19000
|
-
export class WebMercatorTilingScheme {
|
|
19023
|
+
export class WebMercatorTilingScheme implements TilingScheme {
|
|
19001
19024
|
constructor(options?: {
|
|
19002
19025
|
ellipsoid?: Ellipsoid;
|
|
19003
19026
|
numberOfLevelZeroTilesX?: number;
|
|
@@ -19050,7 +19073,7 @@ export class WebMercatorTilingScheme {
|
|
|
19050
19073
|
* @returns The specified 'result', or a new object containing the rectangle
|
|
19051
19074
|
if 'result' is undefined.
|
|
19052
19075
|
*/
|
|
19053
|
-
tileXYToNativeRectangle(x: number, y: number, level: number, result?:
|
|
19076
|
+
tileXYToNativeRectangle(x: number, y: number, level: number, result?: Rectangle): Rectangle;
|
|
19054
19077
|
/**
|
|
19055
19078
|
* Converts tile x, y coordinates and level to a cartographic rectangle in radians.
|
|
19056
19079
|
* @param x - The integer x coordinate of the tile.
|
|
@@ -19061,7 +19084,7 @@ export class WebMercatorTilingScheme {
|
|
|
19061
19084
|
* @returns The specified 'result', or a new object containing the rectangle
|
|
19062
19085
|
if 'result' is undefined.
|
|
19063
19086
|
*/
|
|
19064
|
-
tileXYToRectangle(x: number, y: number, level: number, result?:
|
|
19087
|
+
tileXYToRectangle(x: number, y: number, level: number, result?: Rectangle): Rectangle;
|
|
19065
19088
|
/**
|
|
19066
19089
|
* Calculates the tile x, y coordinates of the tile containing
|
|
19067
19090
|
a given cartographic position.
|
|
@@ -27656,11 +27679,14 @@ export class BufferPoint extends BufferPrimitive {
|
|
|
27656
27679
|
}
|
|
27657
27680
|
|
|
27658
27681
|
/**
|
|
27659
|
-
* @property [
|
|
27682
|
+
* @property [modelMatrix = Matrix4.IDENTITY] - Transforms geometry from model to world coordinates.
|
|
27660
27683
|
*/
|
|
27661
27684
|
export type BufferPointOptions = {
|
|
27685
|
+
modelMatrix?: Matrix4;
|
|
27662
27686
|
show?: boolean;
|
|
27663
27687
|
material?: BufferPointMaterial;
|
|
27688
|
+
featureId?: number;
|
|
27689
|
+
pickObject?: any;
|
|
27664
27690
|
position?: Cartesian3;
|
|
27665
27691
|
};
|
|
27666
27692
|
|
|
@@ -27688,11 +27714,16 @@ for (let i = 0; i < collection.primitiveCount; i++) {
|
|
|
27688
27714
|
collection.get(i, point);
|
|
27689
27715
|
point.setMaterial(material);
|
|
27690
27716
|
}
|
|
27717
|
+
* @param [options.modelMatrix = Matrix4.IDENTITY] - Transforms geometry from model to world coordinates.
|
|
27718
|
+
* @param [options.allowPicking = false] - When <code>true</code>, primitives are pickable with {@link Scene#pick}. When <code>false</code>, memory and initialization cost are lower.
|
|
27691
27719
|
*/
|
|
27692
27720
|
export class BufferPointCollection extends BufferPrimitiveCollection<BufferPoint> {
|
|
27693
27721
|
constructor(options: {
|
|
27722
|
+
modelMatrix?: Matrix4;
|
|
27694
27723
|
primitiveCountMax?: number;
|
|
27695
27724
|
show?: boolean;
|
|
27725
|
+
positionDatatype?: ComponentDatatype;
|
|
27726
|
+
allowPicking?: boolean;
|
|
27696
27727
|
debugShowBoundingVolume?: boolean;
|
|
27697
27728
|
});
|
|
27698
27729
|
/**
|
|
@@ -27873,11 +27904,14 @@ export class BufferPolygon extends BufferPrimitive {
|
|
|
27873
27904
|
}
|
|
27874
27905
|
|
|
27875
27906
|
/**
|
|
27876
|
-
* @property [
|
|
27907
|
+
* @property [modelMatrix = Matrix4.IDENTITY] - Transforms geometry from model to world coordinates.
|
|
27877
27908
|
*/
|
|
27878
27909
|
export type BufferPolygonOptions = {
|
|
27910
|
+
modelMatrix?: Matrix4;
|
|
27879
27911
|
show?: boolean;
|
|
27880
27912
|
material?: BufferPolygonMaterial;
|
|
27913
|
+
featureId?: number;
|
|
27914
|
+
pickObject?: any;
|
|
27881
27915
|
positions?: TypedArray;
|
|
27882
27916
|
holes?: TypedArray;
|
|
27883
27917
|
triangles?: TypedArray;
|
|
@@ -28057,11 +28091,14 @@ export class BufferPolyline extends BufferPrimitive {
|
|
|
28057
28091
|
}
|
|
28058
28092
|
|
|
28059
28093
|
/**
|
|
28060
|
-
* @property [
|
|
28094
|
+
* @property [modelMatrix = Matrix4.IDENTITY] - Transforms geometry from model to world coordinates.
|
|
28061
28095
|
*/
|
|
28062
28096
|
export type BufferPolylineOptions = {
|
|
28097
|
+
modelMatrix?: Matrix4;
|
|
28063
28098
|
show?: boolean;
|
|
28064
28099
|
material?: BufferPolylineMaterial;
|
|
28100
|
+
featureId?: number;
|
|
28101
|
+
pickObject?: any;
|
|
28065
28102
|
positions?: TypedArray;
|
|
28066
28103
|
};
|
|
28067
28104
|
|
|
@@ -28187,9 +28224,15 @@ export class BufferPrimitive {
|
|
|
28187
28224
|
toJSON(): any;
|
|
28188
28225
|
}
|
|
28189
28226
|
|
|
28227
|
+
/**
|
|
28228
|
+
* @property [modelMatrix = Matrix4.IDENTITY] - Transforms geometry from model to world coordinates.
|
|
28229
|
+
*/
|
|
28190
28230
|
export type BufferPrimitiveOptions = {
|
|
28231
|
+
modelMatrix?: Matrix4;
|
|
28191
28232
|
show?: boolean;
|
|
28192
28233
|
material?: BufferPrimitiveMaterial;
|
|
28234
|
+
featureId?: number;
|
|
28235
|
+
pickObject?: any;
|
|
28193
28236
|
};
|
|
28194
28237
|
|
|
28195
28238
|
/**
|
|
@@ -28212,32 +28255,13 @@ export class BufferPrimitiveCollection<T extends BufferPrimitive> {
|
|
|
28212
28255
|
allowPicking?: boolean;
|
|
28213
28256
|
debugShowBoundingVolume?: boolean;
|
|
28214
28257
|
});
|
|
28215
|
-
/**
|
|
28216
|
-
* Default capacity of buffers on new collections. A quantity of elements:
|
|
28217
|
-
number of vertices in the vertex buffer, primitives in the primitive
|
|
28218
|
-
buffer, etc. This value is arbitrary, and collections cannot be resized,
|
|
28219
|
-
so specific per-buffer capacities should be provided in the collection
|
|
28220
|
-
constructor when available.
|
|
28221
|
-
*/
|
|
28222
|
-
readonly DEFAULT_CAPACITY: number;
|
|
28223
28258
|
/**
|
|
28224
28259
|
* Determines if primitives in this collection will be shown.
|
|
28225
28260
|
*/
|
|
28226
28261
|
show: boolean;
|
|
28227
|
-
|
|
28228
|
-
|
|
28229
|
-
|
|
28230
|
-
modelMatrix: Matrix4;
|
|
28231
|
-
/**
|
|
28232
|
-
* Local bounding volume for all primitives in the collection, including both
|
|
28233
|
-
shown and hidden primitives.
|
|
28234
|
-
*/
|
|
28235
|
-
boundingVolume: BoundingSphere;
|
|
28236
|
-
/**
|
|
28237
|
-
* World bounding volume for all primitives in the collection, including both
|
|
28238
|
-
shown and hidden primitives.
|
|
28239
|
-
*/
|
|
28240
|
-
boundingVolumeWC: BoundingSphere;
|
|
28262
|
+
protected readonly _modelMatrix: Matrix4;
|
|
28263
|
+
protected readonly _boundingVolume: BoundingSphere;
|
|
28264
|
+
protected readonly _boundingVolumeWC: BoundingSphere;
|
|
28241
28265
|
/**
|
|
28242
28266
|
* This property is for debugging only; it is not for production use nor is it optimized.
|
|
28243
28267
|
<p>
|
|
@@ -28327,6 +28351,20 @@ export class BufferPrimitiveCollection<T extends BufferPrimitive> {
|
|
|
28327
28351
|
{@link vertexCount}.
|
|
28328
28352
|
*/
|
|
28329
28353
|
readonly vertexCountMax: number;
|
|
28354
|
+
/**
|
|
28355
|
+
* Transforms geometry from model to world coordinates.
|
|
28356
|
+
*/
|
|
28357
|
+
readonly modelMatrix: Matrix4;
|
|
28358
|
+
/**
|
|
28359
|
+
* Local bounding volume for all primitives in the collection, including both
|
|
28360
|
+
shown and hidden primitives.
|
|
28361
|
+
*/
|
|
28362
|
+
readonly boundingVolume: BoundingSphere;
|
|
28363
|
+
/**
|
|
28364
|
+
* World bounding volume for all primitives in the collection, including both
|
|
28365
|
+
shown and hidden primitives.
|
|
28366
|
+
*/
|
|
28367
|
+
readonly boundingVolumeWC: BoundingSphere;
|
|
28330
28368
|
/**
|
|
28331
28369
|
* Returns a JSON-serializable array representing the collection. This encoding
|
|
28332
28370
|
is not memory-efficient, and should generally be used for debugging and
|
|
@@ -28337,6 +28375,14 @@ export class BufferPrimitiveCollection<T extends BufferPrimitive> {
|
|
|
28337
28375
|
primitive in the collection.
|
|
28338
28376
|
*/
|
|
28339
28377
|
toJSON(): object[];
|
|
28378
|
+
/**
|
|
28379
|
+
* Default capacity of buffers on new collections. A quantity of elements:
|
|
28380
|
+
number of vertices in the vertex buffer, primitives in the primitive
|
|
28381
|
+
buffer, etc. This value is arbitrary, and collections cannot be resized,
|
|
28382
|
+
so specific per-buffer capacities should be provided in the collection
|
|
28383
|
+
constructor when available.
|
|
28384
|
+
*/
|
|
28385
|
+
static readonly DEFAULT_CAPACITY: number;
|
|
28340
28386
|
}
|
|
28341
28387
|
|
|
28342
28388
|
/**
|
|
@@ -30583,6 +30629,10 @@ export class Cesium3DTileset {
|
|
|
30583
30629
|
</p>
|
|
30584
30630
|
*/
|
|
30585
30631
|
readonly heightReference: HeightReference | undefined;
|
|
30632
|
+
/**
|
|
30633
|
+
* The {@link CesiumWidget#scene} that the tileset will be rendered in, required for tilesets that specify a {@link heightReference} value for clamping 3D Tiles vector data content- like points, lines, and labels- to terrain or 3D tiles.
|
|
30634
|
+
*/
|
|
30635
|
+
readonly scene: Scene | undefined;
|
|
30586
30636
|
/**
|
|
30587
30637
|
* Gets an ellipsoid describing the shape of the globe.
|
|
30588
30638
|
*/
|
|
@@ -30771,11 +30821,6 @@ export class Cesium3DTileset {
|
|
|
30771
30821
|
getHeight(cartographic: Cartographic, scene: Scene): number | undefined;
|
|
30772
30822
|
}
|
|
30773
30823
|
|
|
30774
|
-
/**
|
|
30775
|
-
* The {@link CesiumWidget#scene} that the tileset will be rendered in, required for tilesets that specify a {@link heightReference} value for clamping 3D Tiles vector data content- like points, lines, and labels- to terrain or 3D tiles.
|
|
30776
|
-
*/
|
|
30777
|
-
export const of = "undefined";
|
|
30778
|
-
|
|
30779
30824
|
/**
|
|
30780
30825
|
* A style that is applied to a {@link Cesium3DTileset}.
|
|
30781
30826
|
<p>
|
|
@@ -31611,6 +31656,8 @@ export class Cesium3DTilesVoxelProvider extends VoxelProvider {
|
|
|
31611
31656
|
}): Promise<VoxelContent> | undefined;
|
|
31612
31657
|
}
|
|
31613
31658
|
|
|
31659
|
+
export const point: any;
|
|
31660
|
+
|
|
31614
31661
|
/**
|
|
31615
31662
|
* A ParticleEmitter that emits particles from a circle.
|
|
31616
31663
|
Particles will be positioned within a circle and have initial velocities going along the z vector.
|
|
@@ -36914,7 +36961,7 @@ browsers, <code>ImageBitmap</code>.
|
|
|
36914
36961
|
|
|
36915
36962
|
See the documentation for each ImageryProvider class for more information about how they return images.
|
|
36916
36963
|
*/
|
|
36917
|
-
export type ImageryTypes = HTMLImageElement | HTMLCanvasElement | ImageBitmap;
|
|
36964
|
+
export type ImageryTypes = HTMLImageElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas;
|
|
36918
36965
|
|
|
36919
36966
|
/**
|
|
36920
36967
|
* Provides imagery to be displayed on the surface of an ellipsoid. This type describes an
|
|
@@ -43380,12 +43427,6 @@ export class PrimitiveCollection {
|
|
|
43380
43427
|
destroy(): void;
|
|
43381
43428
|
}
|
|
43382
43429
|
|
|
43383
|
-
/**
|
|
43384
|
-
* A simple Least Recently Used (LRU) cache implementation.
|
|
43385
|
-
*/
|
|
43386
|
-
export class LRUCache {
|
|
43387
|
-
}
|
|
43388
|
-
|
|
43389
43430
|
/**
|
|
43390
43431
|
* Creates a spatial hash key for the given longitude, latitude, and tile level.
|
|
43391
43432
|
The precision is adjusted based on the tile level and extent to achieve finer precision at higher levels.
|
|
@@ -46053,6 +46094,12 @@ An object representing voxel content for a {@link Cesium3DTilesVoxelProvider}.
|
|
|
46053
46094
|
*/
|
|
46054
46095
|
export class VoxelContent {
|
|
46055
46096
|
constructor();
|
|
46097
|
+
/**
|
|
46098
|
+
* The metadata for this voxel content.
|
|
46099
|
+
The metadata is an array of typed arrays, one for each field.
|
|
46100
|
+
The data for one field is a flattened 3D array ordered by X, then Y, then Z.
|
|
46101
|
+
*/
|
|
46102
|
+
readonly metadata: Int8Array[] | Uint8Array[] | Int16Array[] | Uint16Array[] | Int32Array[] | Uint32Array[] | Float32Array[] | Float64Array[];
|
|
46056
46103
|
/**
|
|
46057
46104
|
* Constructs a VoxelContent from an array of metadata.
|
|
46058
46105
|
* @param metadata - The metadata to use for this voxel content.
|
|
@@ -46061,13 +46108,6 @@ export class VoxelContent {
|
|
|
46061
46108
|
static fromMetadataArray(metadata: Int8Array[] | Uint8Array[] | Int16Array[] | Uint16Array[] | Int32Array[] | Uint32Array[] | Float32Array[] | Float64Array[]): VoxelContent;
|
|
46062
46109
|
}
|
|
46063
46110
|
|
|
46064
|
-
/**
|
|
46065
|
-
* The metadata for this voxel content.
|
|
46066
|
-
The metadata is an array of typed arrays, one for each field.
|
|
46067
|
-
The data for one field is a flattened 3D array ordered by X, then Y, then Z.
|
|
46068
|
-
*/
|
|
46069
|
-
export const metadata: Int8Array[] | Uint8Array[] | Int16Array[] | Uint16Array[] | Int32Array[] | Uint32Array[] | Float32Array[] | Float64Array[];
|
|
46070
|
-
|
|
46071
46111
|
/**
|
|
46072
46112
|
* A primitive that renders voxel data from a {@link VoxelProvider}.
|
|
46073
46113
|
* @param [options] - Object with the following properties:
|
|
@@ -46372,6 +46412,10 @@ export class VoxelProvider {
|
|
|
46372
46412
|
If this value is not known it can be undefined.
|
|
46373
46413
|
*/
|
|
46374
46414
|
readonly maximumTileCount: number | undefined;
|
|
46415
|
+
/**
|
|
46416
|
+
* The number of levels of detail containing available tiles in the tileset.
|
|
46417
|
+
*/
|
|
46418
|
+
readonly availableLevels: number | undefined;
|
|
46375
46419
|
/**
|
|
46376
46420
|
* Requests the data for a given tile.
|
|
46377
46421
|
* @param [options] - Object with the following properties:
|
|
@@ -46389,11 +46433,6 @@ export class VoxelProvider {
|
|
|
46389
46433
|
}): Promise<VoxelContent> | undefined;
|
|
46390
46434
|
}
|
|
46391
46435
|
|
|
46392
|
-
/**
|
|
46393
|
-
* The number of levels of detail containing available tiles in the tileset.
|
|
46394
|
-
*/
|
|
46395
|
-
export const availableLevels: number | undefined;
|
|
46396
|
-
|
|
46397
46436
|
/**
|
|
46398
46437
|
* An enum of voxel shapes. The shape controls how the voxel grid is mapped to 3D space.
|
|
46399
46438
|
*/
|