@cesium/engine 13.1.0 → 15.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Build/Workers/{chunk-APCS5YJI.js → chunk-25TOENEE.js} +7 -7
- package/Build/Workers/{chunk-FNCXBBCF.js → chunk-2AVIUB5H.js} +2 -2
- package/Build/Workers/{chunk-OZTFRHA2.js → chunk-3JZGPJMZ.js} +6 -6
- package/Build/Workers/{chunk-5JY4LYO3.js → chunk-3LHBH4TC.js} +7 -7
- package/Build/Workers/{chunk-MGABCOOH.js → chunk-3LZF23RY.js} +6 -6
- package/Build/Workers/{chunk-AXYZUG4N.js → chunk-5S2B46UQ.js} +1 -1
- package/Build/Workers/{chunk-2SRHVCFD.js → chunk-67ONR44K.js} +6 -6
- package/Build/Workers/{chunk-PBJQFLKS.js → chunk-6EDBC234.js} +11 -11
- package/Build/Workers/{chunk-GSLKQJM2.js → chunk-6EV4VOET.js} +10 -10
- package/Build/Workers/{chunk-OGRXNUR2.js → chunk-7ITUZTFH.js} +1 -1
- package/Build/Workers/{chunk-IP7F2MVW.js → chunk-ARVZCY6X.js} +7 -7
- package/Build/Workers/{chunk-EYZFEJX3.js → chunk-B2UQN3DH.js} +6 -6
- package/Build/Workers/{chunk-WE4KF4AM.js → chunk-B2Y4ZS6X.js} +9 -9
- package/Build/Workers/{chunk-DWIKWWEE.js → chunk-BD2TPFGC.js} +5 -5
- package/Build/Workers/{chunk-5ICYLS6B.js → chunk-CHX2K5AC.js} +10 -10
- package/Build/Workers/{chunk-NQDKNE7V.js → chunk-CJGVEABL.js} +13 -13
- package/Build/Workers/{chunk-B34JXFHF.js → chunk-DYJHEP3B.js} +5 -5
- package/Build/Workers/{chunk-J7BMSSY7.js → chunk-E3H7AVMK.js} +13 -13
- package/Build/Workers/{chunk-TOHDFUJM.js → chunk-EZNAJPP5.js} +4 -4
- package/Build/Workers/{chunk-K62EHZFT.js → chunk-F7ZI463G.js} +15 -15
- package/Build/Workers/{chunk-EJ5DT5BP.js → chunk-FMZ5CX6V.js} +1 -1
- package/Build/Workers/{chunk-OARMSJUU.js → chunk-FRAWHNSR.js} +2 -2
- package/Build/Workers/{chunk-S3UM4OKP.js → chunk-GGV2XJHE.js} +7 -7
- package/Build/Workers/{chunk-SAKQO5NX.js → chunk-GK4QU6QI.js} +2 -2
- package/Build/Workers/{chunk-LFUFGHL3.js → chunk-HYPB7FAV.js} +10 -10
- package/Build/Workers/{chunk-3SCCWLZS.js → chunk-I4HO2ED2.js} +9 -9
- package/Build/Workers/{chunk-K6SQV4IS.js → chunk-IGINOLDX.js} +6 -6
- package/Build/Workers/{chunk-IXNXKVOB.js → chunk-ISQSYLZY.js} +4 -4
- package/Build/Workers/{chunk-PM76TX2X.js → chunk-JZAMRL5I.js} +6 -6
- package/Build/Workers/{chunk-CBE4HRBH.js → chunk-K5G2WELR.js} +7 -7
- package/Build/Workers/{chunk-EHGQQA7C.js → chunk-L5SO4Y5V.js} +1 -1
- package/Build/Workers/{chunk-M2AA2ARJ.js → chunk-LCMJQVIF.js} +11 -11
- package/Build/Workers/{chunk-HI73PIPQ.js → chunk-MWJW37I7.js} +2 -2
- package/Build/Workers/{chunk-WAJNX74N.js → chunk-NAGMYRDW.js} +27 -20
- package/Build/Workers/{chunk-WUIDEXAN.js → chunk-OYO6TKMU.js} +7 -7
- package/Build/Workers/{chunk-YVGU235V.js → chunk-PUTA3AE2.js} +4 -4
- package/Build/Workers/{chunk-ZWSWJYJP.js → chunk-Q5BHMNKU.js} +13 -13
- package/Build/Workers/{chunk-LQT2ZK7D.js → chunk-QTEX3Y4V.js} +17 -17
- package/Build/Workers/{chunk-UBAHTE4Q.js → chunk-QZKN2RXM.js} +1 -1
- package/Build/Workers/{chunk-T34EOLFR.js → chunk-RO2Z3LCR.js} +14 -14
- package/Build/Workers/{chunk-PTFIVVLX.js → chunk-RRN6LRDX.js} +12 -12
- package/Build/Workers/{chunk-B6IJY6AN.js → chunk-SLIA3GQP.js} +7 -7
- package/Build/Workers/{chunk-GIOZHX7U.js → chunk-TFCOEX3W.js} +2 -2
- package/Build/Workers/{chunk-KRVALCCI.js → chunk-TU6ZXHVU.js} +5 -5
- package/Build/Workers/{chunk-54I6VSRP.js → chunk-VJ2PDF64.js} +6 -6
- package/Build/Workers/{chunk-BMFWWTD7.js → chunk-VMVPONIV.js} +5 -5
- package/Build/Workers/{chunk-CNPP6TQ2.js → chunk-WPXU45PH.js} +4 -4
- package/Build/Workers/{chunk-2ONAV62A.js → chunk-XDHM4G3P.js} +7 -7
- package/Build/Workers/{chunk-KO232FLP.js → chunk-XED3RXKO.js} +2 -2
- package/Build/Workers/{chunk-5I3LPAS7.js → chunk-YNYCGTQH.js} +5 -5
- package/Build/Workers/{chunk-THDHWSEJ.js → chunk-Z4SI54EB.js} +4 -4
- package/Build/Workers/{chunk-R2KGFZBA.js → chunk-ZVDLC3T4.js} +13 -13
- package/Build/Workers/combineGeometry.js +22 -22
- package/Build/Workers/createBoxGeometry.js +16 -16
- package/Build/Workers/createBoxOutlineGeometry.js +14 -14
- package/Build/Workers/createCircleGeometry.js +24 -24
- package/Build/Workers/createCircleOutlineGeometry.js +17 -17
- package/Build/Workers/createCoplanarPolygonGeometry.js +31 -31
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +29 -29
- package/Build/Workers/createCorridorGeometry.js +27 -27
- package/Build/Workers/createCorridorOutlineGeometry.js +26 -26
- package/Build/Workers/createCylinderGeometry.js +18 -18
- package/Build/Workers/createCylinderOutlineGeometry.js +16 -16
- package/Build/Workers/createEllipseGeometry.js +24 -24
- package/Build/Workers/createEllipseOutlineGeometry.js +17 -17
- package/Build/Workers/createEllipsoidGeometry.js +17 -17
- package/Build/Workers/createEllipsoidOutlineGeometry.js +16 -16
- package/Build/Workers/createFrustumGeometry.js +16 -16
- package/Build/Workers/createFrustumOutlineGeometry.js +16 -16
- package/Build/Workers/createGeometry.js +22 -22
- package/Build/Workers/createGroundPolylineGeometry.js +20 -20
- package/Build/Workers/createPlaneGeometry.js +14 -14
- package/Build/Workers/createPlaneOutlineGeometry.js +13 -13
- package/Build/Workers/createPolygonGeometry.js +30 -30
- package/Build/Workers/createPolygonOutlineGeometry.js +28 -28
- package/Build/Workers/createPolylineGeometry.js +23 -23
- package/Build/Workers/createPolylineVolumeGeometry.js +29 -29
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +25 -25
- package/Build/Workers/createRectangleGeometry.js +25 -25
- package/Build/Workers/createRectangleOutlineGeometry.js +18 -18
- package/Build/Workers/createSimplePolylineGeometry.js +21 -21
- package/Build/Workers/createSphereGeometry.js +17 -17
- package/Build/Workers/createSphereOutlineGeometry.js +16 -16
- package/Build/Workers/createTaskProcessorWorker.js +3 -3
- package/Build/Workers/createVectorTileClampedPolylines.js +13 -13
- package/Build/Workers/createVectorTileGeometries.js +22 -22
- package/Build/Workers/createVectorTilePoints.js +12 -12
- package/Build/Workers/createVectorTilePolygons.js +20 -20
- package/Build/Workers/createVectorTilePolylines.js +13 -13
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +20 -20
- package/Build/Workers/createVerticesFromHeightmap.js +20 -20
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +17 -17
- package/Build/Workers/createWallGeometry.js +22 -22
- package/Build/Workers/createWallOutlineGeometry.js +21 -21
- package/Build/Workers/decodeDraco.js +15 -14
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
- package/Build/Workers/decodeI3S.js +10 -10
- package/Build/Workers/transcodeKTX2.js +50 -43
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +20 -20
- package/Source/Core/Color.js +3 -3
- package/Source/Core/Credit.js +3 -3
- package/Source/Core/DistanceDisplayCondition.js +3 -3
- package/Source/Core/EllipsoidRhumbLine.js +1 -1
- package/Source/Core/Ion.js +1 -1
- package/Source/Core/OrientedBoundingBox.js +2 -2
- package/Source/Core/PolygonGeometryLibrary.js +26 -4
- package/Source/Core/Spherical.js +3 -3
- package/Source/Core/TexturePacker.js +166 -0
- package/Source/Core/writeTextToCanvas.js +0 -1
- package/Source/DataSources/BillboardVisualizer.js +3 -3
- package/Source/DataSources/BoundingSphereState.js +3 -3
- package/Source/DataSources/DataSourceClock.js +1 -1
- package/Source/DataSources/DataSourceDisplay.js +5 -2
- package/Source/DataSources/EntityCluster.js +44 -19
- package/Source/Renderer/AutomaticUniforms.js +2 -2
- package/Source/Renderer/Context.js +0 -4
- package/Source/Renderer/Texture.js +6 -5
- package/Source/Renderer/TextureAtlas.js +802 -0
- package/Source/Scene/ArcGisMapService.js +1 -1
- package/Source/Scene/Billboard.js +87 -142
- package/Source/Scene/BillboardCollection.js +132 -202
- package/Source/Scene/BillboardLoadState.js +44 -0
- package/Source/Scene/BillboardTexture.js +348 -0
- package/Source/Scene/Camera.js +2 -2
- package/Source/Scene/Cesium3DTile.js +56 -28
- package/Source/Scene/Cesium3DTilesVoxelProvider.js +403 -132
- package/Source/Scene/Cesium3DTilesetStatistics.js +0 -1
- package/Source/Scene/ClippingPolygon.js +2 -2
- package/Source/Scene/Expression.js +1 -0
- package/Source/Scene/GltfDracoLoader.js +45 -0
- package/Source/Scene/GltfIndexBufferLoader.js +5 -0
- package/Source/Scene/GltfLoader.js +22 -9
- package/Source/Scene/GltfVertexBufferLoader.js +13 -0
- package/Source/Scene/ITwinData.js +47 -1
- package/Source/Scene/ImageryLayer.js +1 -1
- package/Source/Scene/ImplicitSubtree.js +2 -0
- package/Source/Scene/KeyframeNode.js +16 -2
- package/Source/Scene/Label.js +1 -1
- package/Source/Scene/LabelCollection.js +212 -193
- package/Source/Scene/Megatexture.js +145 -81
- package/Source/Scene/Model/CustomShader.js +0 -2
- package/Source/Scene/Model/Model.js +1 -1
- package/Source/Scene/Model/ModelUtility.js +5 -1
- package/Source/Scene/Multiple3DTileContent.js +21 -8
- package/Source/Scene/PointPrimitive.js +1 -1
- package/Source/Scene/ResourceCache.js +17 -1
- package/Source/Scene/Scene.js +39 -15
- package/Source/Scene/ScreenSpaceCameraController.js +0 -8
- package/Source/Scene/SpatialNode.js +4 -11
- package/Source/Scene/Vector3DTilePoints.js +2 -5
- package/Source/Scene/VoxelBoxShape.js +12 -5
- package/Source/Scene/VoxelCell.js +6 -5
- package/Source/Scene/VoxelContent.js +171 -107
- package/Source/Scene/VoxelCylinderShape.js +65 -58
- package/Source/Scene/VoxelEllipsoidShape.js +15 -5
- package/Source/Scene/VoxelMetadataOrder.js +12 -0
- package/Source/Scene/VoxelPrimitive.js +245 -53
- package/Source/Scene/VoxelProvider.js +44 -29
- package/Source/Scene/VoxelRenderResources.js +30 -7
- package/Source/Scene/VoxelShape.js +10 -3
- package/Source/Scene/VoxelTraversal.js +326 -166
- package/Source/Scene/WebMapTileServiceImageryProvider.js +2 -2
- package/Source/Scene/createGooglePhotorealistic3DTileset.js +5 -8
- package/Source/Scene/processVoxelProperties.js +3 -0
- package/Source/Shaders/GlobeFS.glsl +10 -1
- package/Source/Shaders/GlobeFS.js +10 -1
- package/Source/Shaders/PolylineCommon.glsl +1 -1
- package/Source/Shaders/PolylineCommon.js +1 -1
- package/Source/Shaders/Voxels/Megatexture.glsl +4 -16
- package/Source/Shaders/Voxels/Megatexture.js +4 -16
- package/Source/Shaders/Voxels/Octree.glsl +44 -7
- package/Source/Shaders/Voxels/Octree.js +44 -7
- package/Source/Shaders/Voxels/VoxelFS.glsl +9 -15
- package/Source/Shaders/Voxels/VoxelFS.js +9 -15
- package/Source/Shaders/Voxels/convertUvToCylinder.glsl +15 -15
- package/Source/Shaders/Voxels/convertUvToCylinder.js +15 -15
- package/Source/Widget/CesiumWidget.js +16 -10
- package/Source/Workers/decodeDraco.js +4 -4
- package/index.d.ts +321 -110
- package/index.js +209 -205
- package/package.json +2 -2
- package/Source/Scene/TextureAtlas.js +0 -558
package/index.d.ts
CHANGED
|
@@ -3553,11 +3553,11 @@ export class Color {
|
|
|
3553
3553
|
static clone(color: Color, result?: Color): Color;
|
|
3554
3554
|
/**
|
|
3555
3555
|
* Returns true if the first Color equals the second color.
|
|
3556
|
-
* @param left - The first Color to compare for equality.
|
|
3557
|
-
* @param right - The second Color to compare for equality.
|
|
3556
|
+
* @param [left] - The first Color to compare for equality.
|
|
3557
|
+
* @param [right] - The second Color to compare for equality.
|
|
3558
3558
|
* @returns <code>true</code> if the Colors are equal; otherwise, <code>false</code>.
|
|
3559
3559
|
*/
|
|
3560
|
-
static equals(left
|
|
3560
|
+
static equals(left?: Color, right?: Color): boolean;
|
|
3561
3561
|
/**
|
|
3562
3562
|
* Returns a duplicate of a Color instance.
|
|
3563
3563
|
* @param [result] - The object to store the result in, if undefined a new instance will be created.
|
|
@@ -3566,10 +3566,10 @@ export class Color {
|
|
|
3566
3566
|
clone(result?: Color): Color;
|
|
3567
3567
|
/**
|
|
3568
3568
|
* Returns true if this Color equals other.
|
|
3569
|
-
* @param other - The Color to compare for equality.
|
|
3569
|
+
* @param [other] - The Color to compare for equality.
|
|
3570
3570
|
* @returns <code>true</code> if the Colors are equal; otherwise, <code>false</code>.
|
|
3571
3571
|
*/
|
|
3572
|
-
equals(other
|
|
3572
|
+
equals(other?: Color): boolean;
|
|
3573
3573
|
/**
|
|
3574
3574
|
* Returns <code>true</code> if this Color equals other componentwise within the specified epsilon.
|
|
3575
3575
|
* @param other - The Color to compare for equality.
|
|
@@ -4963,17 +4963,17 @@ export class Credit {
|
|
|
4963
4963
|
readonly element: HTMLElement;
|
|
4964
4964
|
/**
|
|
4965
4965
|
* Returns true if the credits are equal
|
|
4966
|
-
* @param left - The first credit
|
|
4967
|
-
* @param right - The second credit
|
|
4966
|
+
* @param [left] - The first credit
|
|
4967
|
+
* @param [right] - The second credit
|
|
4968
4968
|
* @returns <code>true</code> if left and right are equal, <code>false</code> otherwise.
|
|
4969
4969
|
*/
|
|
4970
|
-
static equals(left
|
|
4970
|
+
static equals(left?: Credit, right?: Credit): boolean;
|
|
4971
4971
|
/**
|
|
4972
4972
|
* Returns true if the credits are equal
|
|
4973
|
-
* @param credit - The credit to compare to.
|
|
4973
|
+
* @param [credit] - The credit to compare to.
|
|
4974
4974
|
* @returns <code>true</code> if left and right are equal, <code>false</code> otherwise.
|
|
4975
4975
|
*/
|
|
4976
|
-
equals(credit
|
|
4976
|
+
equals(credit?: Credit): boolean;
|
|
4977
4977
|
/**
|
|
4978
4978
|
* Duplicates a Credit instance.
|
|
4979
4979
|
* @param [credit] - The Credit to duplicate.
|
|
@@ -5349,11 +5349,11 @@ export class DistanceDisplayCondition {
|
|
|
5349
5349
|
static unpack(array: number[], startingIndex?: number, result?: DistanceDisplayCondition): DistanceDisplayCondition;
|
|
5350
5350
|
/**
|
|
5351
5351
|
* Determines if two distance display conditions are equal.
|
|
5352
|
-
* @param left - A distance display condition.
|
|
5353
|
-
* @param right - Another distance display condition.
|
|
5352
|
+
* @param [left] - A distance display condition.
|
|
5353
|
+
* @param [right] - Another distance display condition.
|
|
5354
5354
|
* @returns Whether the two distance display conditions are equal.
|
|
5355
5355
|
*/
|
|
5356
|
-
static equals(left
|
|
5356
|
+
static equals(left?: DistanceDisplayCondition, right?: DistanceDisplayCondition): boolean;
|
|
5357
5357
|
/**
|
|
5358
5358
|
* Duplicates a distance display condition instance.
|
|
5359
5359
|
* @param [value] - The distance display condition to duplicate.
|
|
@@ -5369,10 +5369,10 @@ export class DistanceDisplayCondition {
|
|
|
5369
5369
|
clone(result?: DistanceDisplayCondition): DistanceDisplayCondition;
|
|
5370
5370
|
/**
|
|
5371
5371
|
* Determines if this distance display condition is equal to another.
|
|
5372
|
-
* @param other - Another distance display condition.
|
|
5372
|
+
* @param [other] - Another distance display condition.
|
|
5373
5373
|
* @returns Whether this distance display condition is equal to the other.
|
|
5374
5374
|
*/
|
|
5375
|
-
equals(other
|
|
5375
|
+
equals(other?: DistanceDisplayCondition): boolean;
|
|
5376
5376
|
}
|
|
5377
5377
|
|
|
5378
5378
|
/**
|
|
@@ -6212,7 +6212,7 @@ export class EllipsoidRhumbLine {
|
|
|
6212
6212
|
interpolateUsingFraction(fraction: number, result?: Cartographic): Cartographic;
|
|
6213
6213
|
/**
|
|
6214
6214
|
* Provides the location of a point at the indicated distance along the rhumb line.
|
|
6215
|
-
* @param distance - The distance from the
|
|
6215
|
+
* @param distance - The distance from the initial point to the point of interest along the rhumbLine.
|
|
6216
6216
|
* @param [result] - The object in which to store the result.
|
|
6217
6217
|
* @returns The location of the point along the rhumb line.
|
|
6218
6218
|
*/
|
|
@@ -12024,11 +12024,11 @@ export class OrientedBoundingBox {
|
|
|
12024
12024
|
/**
|
|
12025
12025
|
* Compares the provided OrientedBoundingBox componentwise and returns
|
|
12026
12026
|
* <code>true</code> if they are equal, <code>false</code> otherwise.
|
|
12027
|
-
* @param left - The first OrientedBoundingBox.
|
|
12028
|
-
* @param right - The second OrientedBoundingBox.
|
|
12027
|
+
* @param [left] - The first OrientedBoundingBox.
|
|
12028
|
+
* @param [right] - The second OrientedBoundingBox.
|
|
12029
12029
|
* @returns <code>true</code> if left and right are equal, <code>false</code> otherwise.
|
|
12030
12030
|
*/
|
|
12031
|
-
static equals(left
|
|
12031
|
+
static equals(left?: OrientedBoundingBox, right?: OrientedBoundingBox): boolean;
|
|
12032
12032
|
/**
|
|
12033
12033
|
* Duplicates this OrientedBoundingBox instance.
|
|
12034
12034
|
* @param [result] - The object onto which to store the result.
|
|
@@ -16175,11 +16175,11 @@ export class Spherical {
|
|
|
16175
16175
|
static normalize(spherical: Spherical, result?: Spherical): Spherical;
|
|
16176
16176
|
/**
|
|
16177
16177
|
* Returns true if the first spherical is equal to the second spherical, false otherwise.
|
|
16178
|
-
* @param left - The first Spherical to be compared.
|
|
16179
|
-
* @param right - The second Spherical to be compared.
|
|
16178
|
+
* @param [left] - The first Spherical to be compared.
|
|
16179
|
+
* @param [right] - The second Spherical to be compared.
|
|
16180
16180
|
* @returns true if the first spherical is equal to the second spherical, false otherwise.
|
|
16181
16181
|
*/
|
|
16182
|
-
static equals(left
|
|
16182
|
+
static equals(left?: Spherical, right?: Spherical): boolean;
|
|
16183
16183
|
/**
|
|
16184
16184
|
* Returns true if the first spherical is within the provided epsilon of the second spherical, false otherwise.
|
|
16185
16185
|
* @param left - The first Spherical to be compared.
|
|
@@ -16190,10 +16190,10 @@ export class Spherical {
|
|
|
16190
16190
|
static equalsEpsilon(left: Spherical, right: Spherical, epsilon?: number): boolean;
|
|
16191
16191
|
/**
|
|
16192
16192
|
* Returns true if this spherical is equal to the provided spherical, false otherwise.
|
|
16193
|
-
* @param other - The Spherical to be compared.
|
|
16193
|
+
* @param [other] - The Spherical to be compared.
|
|
16194
16194
|
* @returns true if this spherical is equal to the provided spherical, false otherwise.
|
|
16195
16195
|
*/
|
|
16196
|
-
equals(other
|
|
16196
|
+
equals(other?: Spherical): boolean;
|
|
16197
16197
|
/**
|
|
16198
16198
|
* Creates a duplicate of this Spherical.
|
|
16199
16199
|
* @param [result] - The object to store the result into, if undefined a new instance will be created.
|
|
@@ -18761,7 +18761,6 @@ export function subdivideArray(array: any[], numberOfArrays: number): void;
|
|
|
18761
18761
|
* @param text - The text to write.
|
|
18762
18762
|
* @param [options] - Object with the following properties:
|
|
18763
18763
|
* @param [options.font = '10px sans-serif'] - The CSS font to use.
|
|
18764
|
-
* @param [options.textBaseline = 'bottom'] - The baseline of the text.
|
|
18765
18764
|
* @param [options.fill = true] - Whether to fill the text.
|
|
18766
18765
|
* @param [options.stroke = false] - Whether to stroke the text.
|
|
18767
18766
|
* @param [options.fillColor = Color.WHITE] - The fill color.
|
|
@@ -18775,7 +18774,6 @@ export function subdivideArray(array: any[], numberOfArrays: number): void;
|
|
|
18775
18774
|
*/
|
|
18776
18775
|
export function writeTextToCanvas(text: string, options?: {
|
|
18777
18776
|
font?: string;
|
|
18778
|
-
textBaseline?: string;
|
|
18779
18777
|
fill?: boolean;
|
|
18780
18778
|
stroke?: boolean;
|
|
18781
18779
|
fillColor?: Color;
|
|
@@ -19041,6 +19039,21 @@ export class BillboardVisualizer {
|
|
|
19041
19039
|
destroy(): void;
|
|
19042
19040
|
}
|
|
19043
19041
|
|
|
19042
|
+
/**
|
|
19043
|
+
* The BoundingSphere has been computed.
|
|
19044
|
+
*/
|
|
19045
|
+
export const DONE = 0;
|
|
19046
|
+
|
|
19047
|
+
/**
|
|
19048
|
+
* The BoundingSphere is still being computed.
|
|
19049
|
+
*/
|
|
19050
|
+
export const PENDING = 1;
|
|
19051
|
+
|
|
19052
|
+
/**
|
|
19053
|
+
* The BoundingSphere does not exist.
|
|
19054
|
+
*/
|
|
19055
|
+
export const FAILED = 2;
|
|
19056
|
+
|
|
19044
19057
|
/**
|
|
19045
19058
|
* A {@link GeometryUpdater} for boxes.
|
|
19046
19059
|
* Clients do not normally create this class directly, but instead rely on {@link DataSourceDisplay}.
|
|
@@ -20438,10 +20451,10 @@ export class DataSourceClock {
|
|
|
20438
20451
|
clone(result?: DataSourceClock): DataSourceClock;
|
|
20439
20452
|
/**
|
|
20440
20453
|
* Returns true if this DataSourceClock is equivalent to the other
|
|
20441
|
-
* @param other - The other DataSourceClock to compare to.
|
|
20454
|
+
* @param [other] - The other DataSourceClock to compare to.
|
|
20442
20455
|
* @returns <code>true</code> if the DataSourceClocks are equal; otherwise, <code>false</code>.
|
|
20443
20456
|
*/
|
|
20444
|
-
equals(other
|
|
20457
|
+
equals(other?: DataSourceClock): boolean;
|
|
20445
20458
|
/**
|
|
20446
20459
|
* Assigns each unassigned property on this object to the value
|
|
20447
20460
|
* of the same property on the provided source object.
|
|
@@ -26370,11 +26383,11 @@ export class Billboard {
|
|
|
26370
26383
|
/**
|
|
26371
26384
|
* Gets or sets a width for the billboard. If undefined, the image width will be used.
|
|
26372
26385
|
*/
|
|
26373
|
-
width: number;
|
|
26386
|
+
width: number | undefined;
|
|
26374
26387
|
/**
|
|
26375
26388
|
* Gets or sets a height for the billboard. If undefined, the image height will be used.
|
|
26376
26389
|
*/
|
|
26377
|
-
height: number;
|
|
26390
|
+
height: number | undefined;
|
|
26378
26391
|
/**
|
|
26379
26392
|
* Gets or sets if the billboard size is in meters or pixels. <code>true</code> to size the billboard in meters;
|
|
26380
26393
|
* otherwise, the size is in pixels.
|
|
@@ -26475,10 +26488,10 @@ export class Billboard {
|
|
|
26475
26488
|
/**
|
|
26476
26489
|
* Determines if this billboard equals another billboard. Billboards are equal if all their properties
|
|
26477
26490
|
* are equal. Billboards in different collections can be equal.
|
|
26478
|
-
* @param other - The billboard to compare for equality.
|
|
26491
|
+
* @param [other] - The billboard to compare for equality.
|
|
26479
26492
|
* @returns <code>true</code> if the billboards are equal; otherwise, <code>false</code>.
|
|
26480
26493
|
*/
|
|
26481
|
-
equals(other
|
|
26494
|
+
equals(other?: Billboard): boolean;
|
|
26482
26495
|
}
|
|
26483
26496
|
|
|
26484
26497
|
/**
|
|
@@ -26577,7 +26590,7 @@ export class BillboardCollection {
|
|
|
26577
26590
|
* {@link BillboardCollection#get} to iterate over all the billboards
|
|
26578
26591
|
* in the collection.
|
|
26579
26592
|
*/
|
|
26580
|
-
length: number;
|
|
26593
|
+
readonly length: number;
|
|
26581
26594
|
/**
|
|
26582
26595
|
* Creates and adds a billboard with the specified initial properties to the collection.
|
|
26583
26596
|
* The added billboard is returned so it can be modified or removed from the collection later.
|
|
@@ -27568,12 +27581,12 @@ export class Camera {
|
|
|
27568
27581
|
getPixelSize(boundingSphere: BoundingSphere, drawingBufferWidth: number, drawingBufferHeight: number): number;
|
|
27569
27582
|
/**
|
|
27570
27583
|
* Cancels the current camera flight and leaves the camera at its current location.
|
|
27571
|
-
* If no flight is in progress, this
|
|
27584
|
+
* If no flight is in progress, this function does nothing.
|
|
27572
27585
|
*/
|
|
27573
27586
|
cancelFlight(): void;
|
|
27574
27587
|
/**
|
|
27575
27588
|
* Completes the current camera flight and moves the camera immediately to its final destination.
|
|
27576
|
-
* If no flight is in progress, this
|
|
27589
|
+
* If no flight is in progress, this function does nothing.
|
|
27577
27590
|
*/
|
|
27578
27591
|
completeFlight(): void;
|
|
27579
27592
|
/**
|
|
@@ -29100,6 +29113,44 @@ export class Cesium3DTileStyle {
|
|
|
29100
29113
|
meta: StyleExpression;
|
|
29101
29114
|
}
|
|
29102
29115
|
|
|
29116
|
+
export namespace Cesium3DTilesVoxelProvider {
|
|
29117
|
+
/**
|
|
29118
|
+
* Initialization options for the Cesium3DTilesVoxelProvider constructor
|
|
29119
|
+
* @property className - The class in the tileset schema describing voxel metadata.
|
|
29120
|
+
* @property names - The metadata names.
|
|
29121
|
+
* @property types - The metadata types.
|
|
29122
|
+
* @property componentTypes - The metadata component types.
|
|
29123
|
+
* @property shape - The {@link VoxelShapeType}.
|
|
29124
|
+
* @property dimensions - The number of voxels per dimension of a tile. This is the same for all tiles in the dataset.
|
|
29125
|
+
* @property [paddingBefore = Cartesian3.ZERO] - The number of padding voxels before the tile. This improves rendering quality when sampling the edge of a tile, but it increases memory usage.
|
|
29126
|
+
* @property [paddingAfter = Cartesian3.ZERO] - The number of padding voxels after the tile. This improves rendering quality when sampling the edge of a tile, but it increases memory usage.
|
|
29127
|
+
* @property [globalTransform = Matrix4.IDENTITY] - A transform from local space to global space.
|
|
29128
|
+
* @property [shapeTransform = Matrix4.IDENTITY] - A transform from shape space to local space.
|
|
29129
|
+
* @property [minBounds] - The minimum bounds.
|
|
29130
|
+
* @property [maxBounds] - The maximum bounds.
|
|
29131
|
+
* @property [minimumValues] - The metadata minimum values.
|
|
29132
|
+
* @property [maximumValues] - The metadata maximum values.
|
|
29133
|
+
* @property [maximumTileCount] - The maximum number of tiles that exist for this provider. This value is used as a hint to the voxel renderer to allocate an appropriate amount of GPU memory. If this value is not known it can be undefined.
|
|
29134
|
+
*/
|
|
29135
|
+
type ConstructorOptions = {
|
|
29136
|
+
className: string;
|
|
29137
|
+
names: string[];
|
|
29138
|
+
types: MetadataType[];
|
|
29139
|
+
componentTypes: MetadataComponentType[];
|
|
29140
|
+
shape: VoxelShapeType;
|
|
29141
|
+
dimensions: Cartesian3;
|
|
29142
|
+
paddingBefore?: Cartesian3;
|
|
29143
|
+
paddingAfter?: Cartesian3;
|
|
29144
|
+
globalTransform?: Matrix4;
|
|
29145
|
+
shapeTransform?: Matrix4;
|
|
29146
|
+
minBounds?: Cartesian3;
|
|
29147
|
+
maxBounds?: Cartesian3;
|
|
29148
|
+
minimumValues?: number[][];
|
|
29149
|
+
maximumValues?: number[][];
|
|
29150
|
+
maximumTileCount?: number;
|
|
29151
|
+
};
|
|
29152
|
+
}
|
|
29153
|
+
|
|
29103
29154
|
/**
|
|
29104
29155
|
* A {@link VoxelProvider} that fetches voxel data from a 3D Tiles tileset.
|
|
29105
29156
|
* <p>
|
|
@@ -29108,102 +29159,116 @@ export class Cesium3DTileStyle {
|
|
|
29108
29159
|
* <div class="notice">
|
|
29109
29160
|
* This object is normally not instantiated directly, use {@link Cesium3DTilesVoxelProvider.fromUrl}.
|
|
29110
29161
|
* </div>
|
|
29111
|
-
* @param options -
|
|
29162
|
+
* @param options - An object describing initialization options
|
|
29112
29163
|
*/
|
|
29113
29164
|
export class Cesium3DTilesVoxelProvider extends VoxelProvider {
|
|
29114
|
-
constructor(options:
|
|
29165
|
+
constructor(options: Cesium3DTilesVoxelProvider.ConstructorOptions);
|
|
29115
29166
|
/**
|
|
29116
|
-
*
|
|
29117
|
-
* @param url - The URL to a tileset JSON file
|
|
29118
|
-
* @returns The created provider
|
|
29167
|
+
* A transform from local space to global space.
|
|
29119
29168
|
*/
|
|
29120
|
-
|
|
29121
|
-
/**
|
|
29122
|
-
* A transform from local space to global space. If undefined, the identity matrix will be used instead.
|
|
29123
|
-
*/
|
|
29124
|
-
readonly globalTransform: Matrix4 | undefined;
|
|
29169
|
+
readonly globalTransform: Matrix4;
|
|
29125
29170
|
/**
|
|
29126
|
-
* A transform from shape space to local space.
|
|
29171
|
+
* A transform from shape space to local space.
|
|
29127
29172
|
*/
|
|
29128
|
-
readonly shapeTransform: Matrix4
|
|
29173
|
+
readonly shapeTransform: Matrix4;
|
|
29129
29174
|
/**
|
|
29130
29175
|
* Gets the {@link VoxelShapeType}
|
|
29131
|
-
* This should not be called before {@link VoxelProvider#ready} returns true.
|
|
29132
29176
|
*/
|
|
29133
29177
|
readonly shape: VoxelShapeType;
|
|
29134
29178
|
/**
|
|
29135
29179
|
* Gets the minimum bounds.
|
|
29136
29180
|
* If undefined, the shape's default minimum bounds will be used instead.
|
|
29137
|
-
* This should not be called before {@link VoxelProvider#ready} returns true.
|
|
29138
29181
|
*/
|
|
29139
29182
|
readonly minBounds: Cartesian3 | undefined;
|
|
29140
29183
|
/**
|
|
29141
29184
|
* Gets the maximum bounds.
|
|
29142
29185
|
* If undefined, the shape's default maximum bounds will be used instead.
|
|
29143
|
-
* This should not be called before {@link VoxelProvider#ready} returns true.
|
|
29144
29186
|
*/
|
|
29145
29187
|
readonly maxBounds: Cartesian3 | undefined;
|
|
29146
29188
|
/**
|
|
29147
29189
|
* Gets the number of voxels per dimension of a tile. This is the same for all tiles in the dataset.
|
|
29148
|
-
* This should not be called before {@link VoxelProvider#ready} returns true.
|
|
29149
29190
|
*/
|
|
29150
29191
|
readonly dimensions: Cartesian3;
|
|
29151
29192
|
/**
|
|
29152
29193
|
* Gets the number of padding voxels before the tile. This improves rendering quality when sampling the edge of a tile, but it increases memory usage.
|
|
29153
|
-
* This should not be called before {@link VoxelProvider#ready} returns true.
|
|
29154
29194
|
*/
|
|
29155
|
-
readonly paddingBefore: Cartesian3
|
|
29195
|
+
readonly paddingBefore: Cartesian3;
|
|
29156
29196
|
/**
|
|
29157
29197
|
* Gets the number of padding voxels after the tile. This improves rendering quality when sampling the edge of a tile, but it increases memory usage.
|
|
29158
|
-
* This should not be called before {@link VoxelProvider#ready} returns true.
|
|
29159
29198
|
*/
|
|
29160
|
-
readonly paddingAfter: Cartesian3
|
|
29199
|
+
readonly paddingAfter: Cartesian3;
|
|
29200
|
+
/**
|
|
29201
|
+
* The metadata class for this tileset.
|
|
29202
|
+
*/
|
|
29203
|
+
readonly className: string;
|
|
29161
29204
|
/**
|
|
29162
29205
|
* Gets the metadata names.
|
|
29163
|
-
* This should not be called before {@link VoxelProvider#ready} returns true.
|
|
29164
29206
|
*/
|
|
29165
29207
|
readonly names: string[];
|
|
29166
29208
|
/**
|
|
29167
29209
|
* Gets the metadata types.
|
|
29168
|
-
* This should not be called before {@link VoxelProvider#ready} returns true.
|
|
29169
29210
|
*/
|
|
29170
29211
|
readonly types: MetadataType[];
|
|
29171
29212
|
/**
|
|
29172
29213
|
* Gets the metadata component types.
|
|
29173
|
-
* This should not be called before {@link VoxelProvider#ready} returns true.
|
|
29174
29214
|
*/
|
|
29175
29215
|
readonly componentTypes: MetadataComponentType[];
|
|
29216
|
+
/**
|
|
29217
|
+
* Gets the ordering of the metadata in the buffers.
|
|
29218
|
+
*/
|
|
29219
|
+
readonly metadataOrder: VoxelMetadataOrder;
|
|
29176
29220
|
/**
|
|
29177
29221
|
* Gets the metadata minimum values.
|
|
29178
|
-
* This should not be called before {@link VoxelProvider#ready} returns true.
|
|
29179
29222
|
*/
|
|
29180
29223
|
readonly minimumValues: number[][] | undefined;
|
|
29181
29224
|
/**
|
|
29182
29225
|
* Gets the metadata maximum values.
|
|
29183
|
-
* This should not be called before {@link VoxelProvider#ready} returns true.
|
|
29184
29226
|
*/
|
|
29185
29227
|
readonly maximumValues: number[][] | undefined;
|
|
29186
29228
|
/**
|
|
29187
|
-
* The maximum number of tiles that exist for this provider.
|
|
29188
|
-
* This
|
|
29229
|
+
* The maximum number of tiles that exist for this provider.
|
|
29230
|
+
* This value is used as a hint to the voxel renderer to allocate an appropriate amount of GPU memory.
|
|
29231
|
+
* If this value is not known it can be undefined.
|
|
29189
29232
|
*/
|
|
29190
29233
|
readonly maximumTileCount: number | undefined;
|
|
29191
29234
|
/**
|
|
29192
|
-
*
|
|
29193
|
-
|
|
29235
|
+
* The number of levels of detail containing available tiles in the tileset.
|
|
29236
|
+
*/
|
|
29237
|
+
readonly availableLevels: number | undefined;
|
|
29238
|
+
/**
|
|
29239
|
+
* Creates a {@link Cesium3DTilesVoxelProvider} that fetches voxel data from a 3D Tiles tileset.
|
|
29240
|
+
* @example
|
|
29241
|
+
* try {
|
|
29242
|
+
* const voxelProvider = await Cesium3DTilesVoxelProvider.fromUrl(
|
|
29243
|
+
* "http://localhost:8002/tilesets/voxel/tileset.json"
|
|
29244
|
+
* );
|
|
29245
|
+
* const voxelPrimitive = new VoxelPrimitive({
|
|
29246
|
+
* provider: voxelProvider,
|
|
29247
|
+
* customShader: customShader,
|
|
29248
|
+
* });
|
|
29249
|
+
* scene.primitives.add(voxelPrimitive);
|
|
29250
|
+
* } catch (error) {
|
|
29251
|
+
* console.error(`Error creating voxel primitive: ${error}`);
|
|
29252
|
+
* }
|
|
29253
|
+
* @param url - The URL to a tileset JSON file
|
|
29254
|
+
* @returns The created provider
|
|
29255
|
+
*/
|
|
29256
|
+
static fromUrl(url: Resource | string): Promise<Cesium3DTilesVoxelProvider>;
|
|
29257
|
+
/**
|
|
29258
|
+
* Requests the data for a given tile.
|
|
29194
29259
|
* @param [options] - Object with the following properties:
|
|
29195
29260
|
* @param [options.tileLevel = 0] - The tile's level.
|
|
29196
29261
|
* @param [options.tileX = 0] - The tile's X coordinate.
|
|
29197
29262
|
* @param [options.tileY = 0] - The tile's Y coordinate.
|
|
29198
29263
|
* @param [options.tileZ = 0] - The tile's Z coordinate.
|
|
29199
|
-
* @returns A promise to
|
|
29264
|
+
* @returns A promise resolving to a VoxelContent containing the data for the tile, or undefined if the request could not be scheduled this frame.
|
|
29200
29265
|
*/
|
|
29201
29266
|
requestData(options?: {
|
|
29202
29267
|
tileLevel?: number;
|
|
29203
29268
|
tileX?: number;
|
|
29204
29269
|
tileY?: number;
|
|
29205
29270
|
tileZ?: number;
|
|
29206
|
-
}): Promise<
|
|
29271
|
+
}): Promise<VoxelContent> | undefined;
|
|
29207
29272
|
}
|
|
29208
29273
|
|
|
29209
29274
|
export namespace Cesium3DTileset {
|
|
@@ -30646,7 +30711,7 @@ export class ClippingPolygon {
|
|
|
30646
30711
|
* @param right - The second polygon.
|
|
30647
30712
|
* @returns <code>true</code> if left and right are equal, <code>false</code> otherwise.
|
|
30648
30713
|
*/
|
|
30649
|
-
static equals(left:
|
|
30714
|
+
static equals(left: ClippingPolygon, right: ClippingPolygon): boolean;
|
|
30650
30715
|
/**
|
|
30651
30716
|
* Computes a cartographic rectangle which encloses the polygon defined by the list of positions, including cases over the international date line and the poles.
|
|
30652
30717
|
* @param [result] - An object in which to store the result.
|
|
@@ -34033,6 +34098,13 @@ export namespace ITwinData {
|
|
|
34033
34098
|
* @param [rootDocument] - The path of the root document for this reality data
|
|
34034
34099
|
*/
|
|
34035
34100
|
function createDataSourceForRealityDataId(iTwinId: string, realityDataId: string, type?: ITwinPlatform.RealityDataType, rootDocument?: string): Promise<GeoJsonDataSource | KmlDataSource>;
|
|
34101
|
+
/**
|
|
34102
|
+
* Load data from the Geospatial Features API as GeoJSON.
|
|
34103
|
+
* @param iTwinId - The id of the iTwin to load data from
|
|
34104
|
+
* @param collectionId - The id of the data collection to load
|
|
34105
|
+
* @param [limit = 10000] - number of items per page, must be between 1 and 10,000 inclusive
|
|
34106
|
+
*/
|
|
34107
|
+
function loadGeospatialFeatures(iTwinId: string, collectionId: string, limit?: number): Promise<GeoJsonDataSource>;
|
|
34036
34108
|
}
|
|
34037
34109
|
|
|
34038
34110
|
/**
|
|
@@ -34386,10 +34458,10 @@ export class ImageryLayer {
|
|
|
34386
34458
|
* alert(`Encountered an error while creating an imagery layer! ${error}`);
|
|
34387
34459
|
* });
|
|
34388
34460
|
* @param imageryProviderPromise - A promise which resolves to a imagery provider
|
|
34389
|
-
* @param options - An object describing initialization options
|
|
34461
|
+
* @param [options] - An object describing initialization options
|
|
34390
34462
|
* @returns The created imagery layer.
|
|
34391
34463
|
*/
|
|
34392
|
-
static fromProviderAsync(imageryProviderPromise: Promise<ImageryProvider>, options
|
|
34464
|
+
static fromProviderAsync(imageryProviderPromise: Promise<ImageryProvider>, options?: ImageryLayer.ConstructorOptions): ImageryLayer;
|
|
34393
34465
|
/**
|
|
34394
34466
|
* Create a new imagery layer for ion's default global base imagery layer, currently Bing Maps. The layer will handle any asynchronous loads or errors, and begin rendering the imagery layer once ready.
|
|
34395
34467
|
* @example
|
|
@@ -35217,10 +35289,10 @@ export class Label {
|
|
|
35217
35289
|
/**
|
|
35218
35290
|
* Determines if this label equals another label. Labels are equal if all their properties
|
|
35219
35291
|
* are equal. Labels in different collections can be equal.
|
|
35220
|
-
* @param other - The label to compare for equality.
|
|
35292
|
+
* @param [other] - The label to compare for equality.
|
|
35221
35293
|
* @returns <code>true</code> if the labels are equal; otherwise, <code>false</code>.
|
|
35222
35294
|
*/
|
|
35223
|
-
equals(other
|
|
35295
|
+
equals(other?: Label): boolean;
|
|
35224
35296
|
/**
|
|
35225
35297
|
* Returns true if this object was destroyed; otherwise, false.
|
|
35226
35298
|
* <br /><br />
|
|
@@ -35344,7 +35416,7 @@ export class LabelCollection {
|
|
|
35344
35416
|
* {@link LabelCollection#get} to iterate over all the labels
|
|
35345
35417
|
* in the collection.
|
|
35346
35418
|
*/
|
|
35347
|
-
length: number;
|
|
35419
|
+
readonly length: number;
|
|
35348
35420
|
/**
|
|
35349
35421
|
* Creates and adds a label with the specified initial properties to the collection.
|
|
35350
35422
|
* The added label is returned so it can be modified or removed from the collection later.
|
|
@@ -36911,6 +36983,25 @@ export class CustomShader {
|
|
|
36911
36983
|
* @param value - The new value of the uniform.
|
|
36912
36984
|
*/
|
|
36913
36985
|
setUniform(uniformName: string, value: boolean | number | Cartesian2 | Cartesian3 | Cartesian4 | Matrix2 | Matrix3 | Matrix4 | string | Resource | TextureUniform): void;
|
|
36986
|
+
/**
|
|
36987
|
+
* Returns true if this object was destroyed; otherwise, false.
|
|
36988
|
+
* <br /><br />
|
|
36989
|
+
* If this object was destroyed, it should not be used; calling any function other than
|
|
36990
|
+
* <code>isDestroyed</code> will result in a {@link DeveloperError} exception.
|
|
36991
|
+
* @returns True if this object was destroyed; otherwise, false.
|
|
36992
|
+
*/
|
|
36993
|
+
isDestroyed(): boolean;
|
|
36994
|
+
/**
|
|
36995
|
+
* Destroys the WebGL resources held by this object. Destroying an object allows for deterministic
|
|
36996
|
+
* release of WebGL resources, instead of relying on the garbage collector to destroy this object.
|
|
36997
|
+
* <br /><br />
|
|
36998
|
+
* Once an object is destroyed, it should not be used; calling any function other than
|
|
36999
|
+
* <code>isDestroyed</code> will result in a {@link DeveloperError} exception. Therefore,
|
|
37000
|
+
* assign the return value (<code>undefined</code>) to the object as done in the example.
|
|
37001
|
+
* @example
|
|
37002
|
+
* customShader = customShader && customShader.destroy();
|
|
37003
|
+
*/
|
|
37004
|
+
destroy(): void;
|
|
36914
37005
|
}
|
|
36915
37006
|
|
|
36916
37007
|
/**
|
|
@@ -39282,10 +39373,10 @@ export class PointPrimitive {
|
|
|
39282
39373
|
/**
|
|
39283
39374
|
* Determines if this point equals another point. Points are equal if all their properties
|
|
39284
39375
|
* are equal. Points in different collections can be equal.
|
|
39285
|
-
* @param other - The point to compare for equality.
|
|
39376
|
+
* @param [other] - The point to compare for equality.
|
|
39286
39377
|
* @returns <code>true</code> if the points are equal; otherwise, <code>false</code>.
|
|
39287
39378
|
*/
|
|
39288
|
-
equals(other
|
|
39379
|
+
equals(other?: PointPrimitive): boolean;
|
|
39289
39380
|
}
|
|
39290
39381
|
|
|
39291
39382
|
/**
|
|
@@ -43498,6 +43589,40 @@ export class VoxelCell {
|
|
|
43498
43589
|
getProperty(name: string): any;
|
|
43499
43590
|
}
|
|
43500
43591
|
|
|
43592
|
+
/**
|
|
43593
|
+
* <div class="notice">
|
|
43594
|
+
* To construct a VoxelContent, call {@link VoxelContent.fromMetadataArray} or {@link VoxelContent.fromGltf}. Do not call the constructor directly.
|
|
43595
|
+
* </div>
|
|
43596
|
+
* An object representing voxel content for a {@link Cesium3DTilesVoxelProvider}.
|
|
43597
|
+
*/
|
|
43598
|
+
export class VoxelContent {
|
|
43599
|
+
constructor();
|
|
43600
|
+
/**
|
|
43601
|
+
* Constructs a VoxelContent from an array of metadata.
|
|
43602
|
+
* @param metadata - The metadata to use for this voxel content.
|
|
43603
|
+
* @returns A VoxelContent containing the specified metadata.
|
|
43604
|
+
*/
|
|
43605
|
+
static fromMetadataArray(metadata: Int8Array[] | Uint8Array[] | Int16Array[] | Uint16Array[] | Int32Array[] | Uint32Array[] | Float32Array[] | Float64Array[]): VoxelContent;
|
|
43606
|
+
}
|
|
43607
|
+
|
|
43608
|
+
/**
|
|
43609
|
+
* The metadata for this voxel content.
|
|
43610
|
+
* The metadata is an array of typed arrays, one for each field.
|
|
43611
|
+
* The data for one field is a flattened 3D array ordered by X, then Y, then Z.
|
|
43612
|
+
*/
|
|
43613
|
+
export const metadata: Int8Array[] | Uint8Array[] | Int16Array[] | Uint16Array[] | Int32Array[] | Uint32Array[] | Float32Array[] | Float64Array[];
|
|
43614
|
+
|
|
43615
|
+
/**
|
|
43616
|
+
* Metadata ordering for voxel content.
|
|
43617
|
+
* In all cases, x data is contiguous in strides along the y axis,
|
|
43618
|
+
* and each group of y strides represents a z slice.
|
|
43619
|
+
* However, the orientation of the axes follows different conventions.
|
|
43620
|
+
*/
|
|
43621
|
+
export enum VoxelMetadataOrder {
|
|
43622
|
+
XYZ = 0,
|
|
43623
|
+
GLTF = 1
|
|
43624
|
+
}
|
|
43625
|
+
|
|
43501
43626
|
/**
|
|
43502
43627
|
* A primitive that renders voxel data from a {@link VoxelProvider}.
|
|
43503
43628
|
* @param [options] - Object with the following properties:
|
|
@@ -43505,6 +43630,7 @@ export class VoxelCell {
|
|
|
43505
43630
|
* @param [options.modelMatrix = Matrix4.IDENTITY] - The model matrix used to transform the primitive.
|
|
43506
43631
|
* @param [options.customShader] - The custom shader used to style the primitive.
|
|
43507
43632
|
* @param [options.clock] - The clock used to control time dynamic behavior.
|
|
43633
|
+
* @param [options.calculateStatistics] - Generate statistics for performance profile.
|
|
43508
43634
|
*/
|
|
43509
43635
|
export class VoxelPrimitive {
|
|
43510
43636
|
constructor(options?: {
|
|
@@ -43512,7 +43638,93 @@ export class VoxelPrimitive {
|
|
|
43512
43638
|
modelMatrix?: Matrix4;
|
|
43513
43639
|
customShader?: CustomShader;
|
|
43514
43640
|
clock?: Clock;
|
|
43641
|
+
calculateStatistics?: boolean;
|
|
43515
43642
|
});
|
|
43643
|
+
/**
|
|
43644
|
+
* The event fired to indicate that a tile's content was loaded.
|
|
43645
|
+
* <p>
|
|
43646
|
+
* This event is fired during the tileset traversal while the frame is being rendered
|
|
43647
|
+
* so that updates to the tile take effect in the same frame. Do not create or modify
|
|
43648
|
+
* Cesium entities or primitives during the event listener.
|
|
43649
|
+
* </p>
|
|
43650
|
+
* @example
|
|
43651
|
+
* voxelPrimitive.tileLoad.addEventListener(function() {
|
|
43652
|
+
* console.log('A tile was loaded.');
|
|
43653
|
+
* });
|
|
43654
|
+
*/
|
|
43655
|
+
tileLoad: Event;
|
|
43656
|
+
/**
|
|
43657
|
+
* This event fires once for each visible tile in a frame.
|
|
43658
|
+
* <p>
|
|
43659
|
+
* This event is fired during the traversal while the frame is being rendered.
|
|
43660
|
+
* @example
|
|
43661
|
+
* voxelPrimitive.tileVisible.addEventListener(function() {
|
|
43662
|
+
* console.log('A tile is visible.');
|
|
43663
|
+
* });
|
|
43664
|
+
*/
|
|
43665
|
+
tileVisible: Event;
|
|
43666
|
+
/**
|
|
43667
|
+
* The event fired to indicate that a tile's content failed to load.
|
|
43668
|
+
* @example
|
|
43669
|
+
* voxelPrimitive.tileFailed.addEventListener(function() {
|
|
43670
|
+
* console.log('An error occurred loading tile.');
|
|
43671
|
+
* });
|
|
43672
|
+
*/
|
|
43673
|
+
tileFailed: Event;
|
|
43674
|
+
/**
|
|
43675
|
+
* The event fired to indicate that a tile's content was unloaded.
|
|
43676
|
+
* @example
|
|
43677
|
+
* voxelPrimitive.tileUnload.addEventListener(function() {
|
|
43678
|
+
* console.log('A tile was unloaded from the cache.');
|
|
43679
|
+
* });
|
|
43680
|
+
*/
|
|
43681
|
+
tileUnload: Event;
|
|
43682
|
+
/**
|
|
43683
|
+
* The event fired to indicate progress of loading new tiles. This event is fired when a new tile
|
|
43684
|
+
* is requested, when a requested tile is finished downloading, and when a downloaded tile has been
|
|
43685
|
+
* processed and is ready to render.
|
|
43686
|
+
* <p>
|
|
43687
|
+
* The number of pending tile requests, <code>numberOfPendingRequests</code>, and number of tiles
|
|
43688
|
+
* processing, <code>numberOfTilesProcessing</code> are passed to the event listener.
|
|
43689
|
+
* </p>
|
|
43690
|
+
* <p>
|
|
43691
|
+
* This event is fired at the end of the frame after the scene is rendered.
|
|
43692
|
+
* </p>
|
|
43693
|
+
* @example
|
|
43694
|
+
* voxelPrimitive.loadProgress.addEventListener(function(numberOfPendingRequests, numberOfTilesProcessing) {
|
|
43695
|
+
* if ((numberOfPendingRequests === 0) && (numberOfTilesProcessing === 0)) {
|
|
43696
|
+
* console.log('Finished loading');
|
|
43697
|
+
* return;
|
|
43698
|
+
* }
|
|
43699
|
+
*
|
|
43700
|
+
* console.log(`Loading: requests: ${numberOfPendingRequests}, processing: ${numberOfTilesProcessing}`);
|
|
43701
|
+
* });
|
|
43702
|
+
*/
|
|
43703
|
+
loadProgress: Event;
|
|
43704
|
+
/**
|
|
43705
|
+
* The event fired to indicate that all tiles that meet the screen space error this frame are loaded. The voxel
|
|
43706
|
+
* primitive is completely loaded for this view.
|
|
43707
|
+
* <p>
|
|
43708
|
+
* This event is fired at the end of the frame after the scene is rendered.
|
|
43709
|
+
* </p>
|
|
43710
|
+
* @example
|
|
43711
|
+
* voxelPrimitive.allTilesLoaded.addEventListener(function() {
|
|
43712
|
+
* console.log('All tiles are loaded');
|
|
43713
|
+
* });
|
|
43714
|
+
*/
|
|
43715
|
+
allTilesLoaded: Event;
|
|
43716
|
+
/**
|
|
43717
|
+
* The event fired to indicate that all tiles that meet the screen space error this frame are loaded. This event
|
|
43718
|
+
* is fired once when all tiles in the initial view are loaded.
|
|
43719
|
+
* <p>
|
|
43720
|
+
* This event is fired at the end of the frame after the scene is rendered.
|
|
43721
|
+
* </p>
|
|
43722
|
+
* @example
|
|
43723
|
+
* voxelPrimitive.initialTilesLoaded.addEventListener(function() {
|
|
43724
|
+
* console.log('Initial tiles are loaded');
|
|
43725
|
+
* });
|
|
43726
|
+
*/
|
|
43727
|
+
initialTilesLoaded: Event;
|
|
43516
43728
|
/**
|
|
43517
43729
|
* Gets a value indicating whether or not the primitive is ready for use.
|
|
43518
43730
|
*/
|
|
@@ -43538,9 +43750,23 @@ export class VoxelPrimitive {
|
|
|
43538
43750
|
*/
|
|
43539
43751
|
readonly shape: VoxelShapeType;
|
|
43540
43752
|
/**
|
|
43541
|
-
* Gets the voxel
|
|
43753
|
+
* Gets the dimensions of each voxel tile, in z-up orientation.
|
|
43754
|
+
* Does not include padding.
|
|
43542
43755
|
*/
|
|
43543
43756
|
readonly dimensions: Cartesian3;
|
|
43757
|
+
/**
|
|
43758
|
+
* Gets the dimensions of one tile of the input voxel data, in the input orientation.
|
|
43759
|
+
* Includes padding.
|
|
43760
|
+
*/
|
|
43761
|
+
readonly inputDimensions: Cartesian3;
|
|
43762
|
+
/**
|
|
43763
|
+
* Gets the padding before the voxel data.
|
|
43764
|
+
*/
|
|
43765
|
+
readonly paddingBefore: Cartesian3;
|
|
43766
|
+
/**
|
|
43767
|
+
* Gets the padding after the voxel data.
|
|
43768
|
+
*/
|
|
43769
|
+
readonly paddingAfter: Cartesian3;
|
|
43544
43770
|
/**
|
|
43545
43771
|
* Gets the minimum value per channel of the voxel data.
|
|
43546
43772
|
*/
|
|
@@ -43642,105 +43868,90 @@ export class VoxelPrimitive {
|
|
|
43642
43868
|
export class VoxelProvider {
|
|
43643
43869
|
constructor();
|
|
43644
43870
|
/**
|
|
43645
|
-
* A transform from local space to global space.
|
|
43871
|
+
* A transform from local space to global space.
|
|
43646
43872
|
*/
|
|
43647
|
-
readonly globalTransform: Matrix4
|
|
43873
|
+
readonly globalTransform: Matrix4;
|
|
43648
43874
|
/**
|
|
43649
|
-
* A transform from shape space to local space.
|
|
43875
|
+
* A transform from shape space to local space.
|
|
43650
43876
|
*/
|
|
43651
|
-
readonly shapeTransform: Matrix4
|
|
43877
|
+
readonly shapeTransform: Matrix4;
|
|
43652
43878
|
/**
|
|
43653
43879
|
* Gets the {@link VoxelShapeType}
|
|
43654
|
-
* This should not be called before {@link VoxelProvider#ready} returns true.
|
|
43655
43880
|
*/
|
|
43656
43881
|
readonly shape: VoxelShapeType;
|
|
43657
43882
|
/**
|
|
43658
43883
|
* Gets the minimum bounds.
|
|
43659
43884
|
* If undefined, the shape's default minimum bounds will be used instead.
|
|
43660
|
-
* This should not be called before {@link VoxelProvider#ready} returns true.
|
|
43661
43885
|
*/
|
|
43662
43886
|
readonly minBounds: Cartesian3 | undefined;
|
|
43663
43887
|
/**
|
|
43664
43888
|
* Gets the maximum bounds.
|
|
43665
43889
|
* If undefined, the shape's default maximum bounds will be used instead.
|
|
43666
|
-
* This should not be called before {@link VoxelProvider#ready} returns true.
|
|
43667
43890
|
*/
|
|
43668
43891
|
readonly maxBounds: Cartesian3 | undefined;
|
|
43669
43892
|
/**
|
|
43670
43893
|
* Gets the number of voxels per dimension of a tile. This is the same for all tiles in the dataset.
|
|
43671
|
-
* This should not be called before {@link VoxelProvider#ready} returns true.
|
|
43672
43894
|
*/
|
|
43673
43895
|
readonly dimensions: Cartesian3;
|
|
43674
43896
|
/**
|
|
43675
43897
|
* Gets the number of padding voxels before the tile. This improves rendering quality when sampling the edge of a tile, but it increases memory usage.
|
|
43676
|
-
* This should not be called before {@link VoxelProvider#ready} returns true.
|
|
43677
43898
|
*/
|
|
43678
|
-
readonly paddingBefore: Cartesian3
|
|
43899
|
+
readonly paddingBefore: Cartesian3;
|
|
43679
43900
|
/**
|
|
43680
43901
|
* Gets the number of padding voxels after the tile. This improves rendering quality when sampling the edge of a tile, but it increases memory usage.
|
|
43681
|
-
* This should not be called before {@link VoxelProvider#ready} returns true.
|
|
43682
43902
|
*/
|
|
43683
|
-
readonly paddingAfter: Cartesian3
|
|
43903
|
+
readonly paddingAfter: Cartesian3;
|
|
43684
43904
|
/**
|
|
43685
43905
|
* Gets the metadata names.
|
|
43686
|
-
* This should not be called before {@link VoxelProvider#ready} returns true.
|
|
43687
43906
|
*/
|
|
43688
43907
|
readonly names: string[];
|
|
43689
43908
|
/**
|
|
43690
43909
|
* Gets the metadata types.
|
|
43691
|
-
* This should not be called before {@link VoxelProvider#ready} returns true.
|
|
43692
43910
|
*/
|
|
43693
43911
|
readonly types: MetadataType[];
|
|
43694
43912
|
/**
|
|
43695
43913
|
* Gets the metadata component types.
|
|
43696
|
-
* This should not be called before {@link VoxelProvider#ready} returns true.
|
|
43697
43914
|
*/
|
|
43698
43915
|
readonly componentTypes: MetadataComponentType[];
|
|
43916
|
+
/**
|
|
43917
|
+
* Gets the ordering of the metadata in the buffers.
|
|
43918
|
+
*/
|
|
43919
|
+
readonly metadataOrder: VoxelMetadataOrder;
|
|
43699
43920
|
/**
|
|
43700
43921
|
* Gets the metadata minimum values.
|
|
43701
|
-
* This should not be called before {@link VoxelProvider#ready} returns true.
|
|
43702
43922
|
*/
|
|
43703
43923
|
readonly minimumValues: number[][] | undefined;
|
|
43704
43924
|
/**
|
|
43705
43925
|
* Gets the metadata maximum values.
|
|
43706
|
-
* This should not be called before {@link VoxelProvider#ready} returns true.
|
|
43707
43926
|
*/
|
|
43708
43927
|
readonly maximumValues: number[][] | undefined;
|
|
43709
43928
|
/**
|
|
43710
|
-
* The maximum number of tiles that exist for this provider.
|
|
43711
|
-
* This
|
|
43929
|
+
* The maximum number of tiles that exist for this provider.
|
|
43930
|
+
* This value is used as a hint to the voxel renderer to allocate an appropriate amount of GPU memory.
|
|
43931
|
+
* If this value is not known it can be undefined.
|
|
43712
43932
|
*/
|
|
43713
43933
|
readonly maximumTileCount: number | undefined;
|
|
43714
43934
|
/**
|
|
43715
|
-
* Requests the data for a given tile.
|
|
43716
|
-
* This function should not be called before {@link VoxelProvider#ready} returns true.
|
|
43935
|
+
* Requests the data for a given tile.
|
|
43717
43936
|
* @param [options] - Object with the following properties:
|
|
43718
43937
|
* @param [options.tileLevel = 0] - The tile's level.
|
|
43719
43938
|
* @param [options.tileX = 0] - The tile's X coordinate.
|
|
43720
43939
|
* @param [options.tileY = 0] - The tile's Y coordinate.
|
|
43721
43940
|
* @param [options.tileZ = 0] - The tile's Z coordinate.
|
|
43722
|
-
* @returns A promise to
|
|
43941
|
+
* @returns A promise resolving to a VoxelContent containing the data for the tile, or undefined if the request could not be scheduled this frame.
|
|
43723
43942
|
*/
|
|
43724
43943
|
requestData(options?: {
|
|
43725
43944
|
tileLevel?: number;
|
|
43726
43945
|
tileX?: number;
|
|
43727
43946
|
tileY?: number;
|
|
43728
43947
|
tileZ?: number;
|
|
43729
|
-
}): Promise<
|
|
43948
|
+
}): Promise<VoxelContent> | undefined;
|
|
43730
43949
|
}
|
|
43731
43950
|
|
|
43732
|
-
export const shaderUniforms: {
|
|
43733
|
-
[key: string]: any;
|
|
43734
|
-
};
|
|
43735
|
-
|
|
43736
|
-
export const shaderDefines: {
|
|
43737
|
-
[key: string]: any;
|
|
43738
|
-
};
|
|
43739
|
-
|
|
43740
43951
|
/**
|
|
43741
|
-
* The
|
|
43952
|
+
* The number of levels of detail containing available tiles in the tileset.
|
|
43742
43953
|
*/
|
|
43743
|
-
export const
|
|
43954
|
+
export const availableLevels: number | undefined;
|
|
43744
43955
|
|
|
43745
43956
|
/**
|
|
43746
43957
|
* An enum of voxel shapes. The shape controls how the voxel grid is mapped to 3D space.
|
|
@@ -44029,7 +44240,7 @@ export namespace WebMapTileServiceImageryProvider {
|
|
|
44029
44240
|
* @example
|
|
44030
44241
|
* // Example 1. USGS shaded relief tiles (KVP)
|
|
44031
44242
|
* const shadedRelief1 = new Cesium.WebMapTileServiceImageryProvider({
|
|
44032
|
-
* url : '
|
|
44243
|
+
* url : 'https://basemap.nationalmap.gov/arcgis/rest/services/USGSShadedReliefOnly/MapServer/WMTS',
|
|
44033
44244
|
* layer : 'USGSShadedReliefOnly',
|
|
44034
44245
|
* style : 'default',
|
|
44035
44246
|
* format : 'image/jpeg',
|
|
@@ -44042,7 +44253,7 @@ export namespace WebMapTileServiceImageryProvider {
|
|
|
44042
44253
|
* @example
|
|
44043
44254
|
* // Example 2. USGS shaded relief tiles (RESTful)
|
|
44044
44255
|
* const shadedRelief2 = new Cesium.WebMapTileServiceImageryProvider({
|
|
44045
|
-
* url : '
|
|
44256
|
+
* url : 'https://basemap.nationalmap.gov/arcgis/rest/services/USGSShadedReliefOnly/MapServer/WMTS/tile/1.0.0/USGSShadedReliefOnly/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpg',
|
|
44046
44257
|
* layer : 'USGSShadedReliefOnly',
|
|
44047
44258
|
* style : 'default',
|
|
44048
44259
|
* format : 'image/jpeg',
|