@cesium/engine 13.0.0 → 14.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-BZMHXDKV.js → chunk-3JBEPBPL.js} +13 -13
- package/Build/Workers/{chunk-W2E67GLE.js → chunk-3LYROPON.js} +13 -13
- package/Build/Workers/{chunk-3ZMTG4X5.js → chunk-3PIZQT3I.js} +4 -4
- package/Build/Workers/{chunk-Q4MTXEB7.js → chunk-3QLSKXKF.js} +6 -6
- package/Build/Workers/{chunk-EXDSJZ7J.js → chunk-4CHMVQTQ.js} +4 -4
- package/Build/Workers/{chunk-2TSF7N76.js → chunk-5KWRW7YL.js} +2 -2
- package/Build/Workers/{chunk-KRCUHV7P.js → chunk-5S5OOA6U.js} +1 -1
- package/Build/Workers/{chunk-MSKD73KW.js → chunk-77XPS7ZA.js} +10 -10
- package/Build/Workers/{chunk-2IIE2UZ3.js → chunk-7EO56M5R.js} +2 -2
- package/Build/Workers/{chunk-H7BML7HH.js → chunk-7UHKH6M3.js} +6 -6
- package/Build/Workers/{chunk-KCCTLUKK.js → chunk-7ZB2RVIQ.js} +10 -10
- package/Build/Workers/{chunk-OUIF26MQ.js → chunk-B4GSRXE3.js} +6 -6
- package/Build/Workers/{chunk-D3VPMNUR.js → chunk-CI2HEJFC.js} +13 -13
- package/Build/Workers/{chunk-Z7OYBX6P.js → chunk-D7ZBZPHV.js} +5 -5
- package/Build/Workers/{chunk-GJZQSAES.js → chunk-DT5NFR5C.js} +7 -7
- package/Build/Workers/{chunk-ZIWULRRD.js → chunk-ED6GLQTK.js} +1 -1
- package/Build/Workers/{chunk-CQDSGG3R.js → chunk-EWDGNOJE.js} +7 -7
- package/Build/Workers/{chunk-RGZWZ4PP.js → chunk-F4CUH4MR.js} +4 -4
- package/Build/Workers/{chunk-6HWW6KNV.js → chunk-FFBJDW4A.js} +6 -6
- package/Build/Workers/{chunk-FLPIQK2R.js → chunk-FX4R4MTH.js} +6 -6
- package/Build/Workers/{chunk-2OD54CUD.js → chunk-FYGLNDKG.js} +7 -7
- package/Build/Workers/{chunk-YDEZMDB7.js → chunk-G3BVMPWG.js} +2 -2
- package/Build/Workers/{chunk-YBDL7YPF.js → chunk-HEZHXDYB.js} +1 -1
- package/Build/Workers/{chunk-RIQGQMS4.js → chunk-HKHQ3EDR.js} +4 -4
- package/Build/Workers/{chunk-PMNQULFU.js → chunk-HUFQVUMY.js} +7 -7
- package/Build/Workers/{chunk-6ZOS2ACR.js → chunk-J7IH4EYI.js} +7 -7
- package/Build/Workers/{chunk-RR4M3ZGF.js → chunk-JHBPC4LK.js} +7 -7
- package/Build/Workers/{chunk-WXJY6NDI.js → chunk-JPDKYBLF.js} +13 -13
- package/Build/Workers/{chunk-W2DVQETH.js → chunk-K4AH3TDT.js} +35 -21
- package/Build/Workers/{chunk-S4SCKDK4.js → chunk-KHWLAQVA.js} +1 -1
- package/Build/Workers/{chunk-XQP37R5E.js → chunk-KM6MITPF.js} +5 -5
- package/Build/Workers/{chunk-H4Y7ADFL.js → chunk-KSYBJA4M.js} +5 -5
- package/Build/Workers/{chunk-3VHIUS7I.js → chunk-LJBJM6VI.js} +6 -6
- package/Build/Workers/{chunk-MMILY4S7.js → chunk-LNSWJ43X.js} +11 -11
- package/Build/Workers/{chunk-CUMDCSMT.js → chunk-LOZ4NKY3.js} +11 -11
- package/Build/Workers/{chunk-4IM6WQEI.js → chunk-LS3KVHYY.js} +6 -6
- package/Build/Workers/{chunk-GBXJIWAZ.js → chunk-MVM4JV5U.js} +9 -9
- package/Build/Workers/{chunk-HMMPNR4Z.js → chunk-N2XAJBC6.js} +12 -12
- package/Build/Workers/{chunk-FANORJU6.js → chunk-OMXHEJTK.js} +2 -2
- package/Build/Workers/{chunk-GNG3V432.js → chunk-PWF4EY5P.js} +4 -4
- package/Build/Workers/{chunk-KKVKSTWC.js → chunk-Q4ZVWJXX.js} +5 -5
- package/Build/Workers/{chunk-RC5N5SJL.js → chunk-SDIDRZDG.js} +7 -7
- package/Build/Workers/{chunk-BLTSMJIP.js → chunk-TVL3F7IU.js} +1 -1
- package/Build/Workers/{chunk-22NU5WU5.js → chunk-TY4DKOWR.js} +2 -2
- package/Build/Workers/{chunk-DIAH2ZTB.js → chunk-VCNOFQYH.js} +9 -9
- package/Build/Workers/{chunk-BFNZUP2C.js → chunk-WEHZP4SE.js} +14 -13
- package/Build/Workers/{chunk-PD2MCNV7.js → chunk-WVNLSTOF.js} +2 -2
- package/Build/Workers/{chunk-T5H7YWC7.js → chunk-XK4OP6VA.js} +17 -17
- package/Build/Workers/{chunk-NVFEDMX4.js → chunk-YJX7X577.js} +15 -15
- package/Build/Workers/{chunk-4HS475MU.js → chunk-Z3QWTHI7.js} +14 -14
- package/Build/Workers/{chunk-OZZD3VY4.js → chunk-ZGFIT57T.js} +17 -17
- package/Build/Workers/{chunk-JISDBAYP.js → chunk-ZMNLEL6W.js} +5 -5
- 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 +7 -7
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +20 -20
- package/Source/Core/Check.d.ts +2 -1
- package/Source/Core/Color.js +3 -3
- package/Source/Core/Credit.js +3 -3
- package/Source/Core/DistanceDisplayCondition.js +3 -3
- package/Source/Core/ITwinPlatform.js +3 -38
- package/Source/Core/Ion.js +1 -1
- package/Source/Core/JulianDate.js +14 -7
- package/Source/Core/OrientedBoundingBox.js +2 -2
- package/Source/Core/Spherical.js +3 -3
- package/Source/Core/defined.d.ts +11 -0
- package/Source/Core/writeTextToCanvas.js +0 -1
- package/Source/DataSources/BoundingSphereState.js +3 -3
- package/Source/DataSources/DataSourceClock.js +1 -1
- package/Source/DataSources/DataSourceDisplay.js +5 -2
- package/Source/DataSources/ModelGraphics.js +23 -1
- package/Source/DataSources/ModelVisualizer.js +22 -1
- package/Source/Renderer/AutomaticUniforms.js +2 -2
- package/Source/Scene/ArcGisMapService.js +1 -1
- package/Source/Scene/Billboard.js +1 -1
- package/Source/Scene/Cesium3DTile.js +56 -28
- package/Source/Scene/Cesium3DTilesVoxelProvider.js +17 -0
- package/Source/Scene/Cesium3DTileset.js +1 -1
- package/Source/Scene/ClippingPolygon.js +2 -2
- package/Source/Scene/DynamicEnvironmentMapManager.js +123 -66
- package/Source/Scene/GltfDracoLoader.js +45 -0
- package/Source/Scene/GltfIndexBufferLoader.js +5 -0
- package/Source/Scene/GltfLoader.js +17 -2
- package/Source/Scene/GltfVertexBufferLoader.js +13 -0
- package/Source/Scene/ITwinData.js +116 -0
- package/Source/Scene/ImageryLayer.js +1 -1
- package/Source/Scene/Label.js +1 -1
- package/Source/Scene/LabelCollection.js +0 -11
- package/Source/Scene/Model/Model.js +1 -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/VoxelPrimitive.js +124 -0
- package/Source/Scene/VoxelProvider.js +10 -0
- package/Source/Scene/VoxelTraversal.js +88 -12
- package/Source/Scene/WebMapTileServiceImageryProvider.js +2 -2
- package/Source/Scene/createGooglePhotorealistic3DTileset.js +5 -8
- package/Source/Shaders/DepthPlaneVS.glsl +1 -1
- package/Source/Shaders/DepthPlaneVS.js +1 -1
- package/Source/Shaders/PolylineCommon.glsl +1 -1
- package/Source/Shaders/PolylineCommon.js +1 -1
- package/Source/Widget/CesiumWidget.js +16 -10
- package/Source/Workers/decodeDraco.js +4 -4
- package/index.d.ts +178 -42
- package/index.js +247 -247
- package/package.json +1 -1
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
|
/**
|
|
@@ -8401,7 +8401,7 @@ export namespace ITwinPlatform {
|
|
|
8401
8401
|
enum ExportType {
|
|
8402
8402
|
}
|
|
8403
8403
|
/**
|
|
8404
|
-
* Types of Reality data
|
|
8404
|
+
* Types of Reality data. This is a partial list of types we know we can support
|
|
8405
8405
|
*/
|
|
8406
8406
|
enum RealityDataType {
|
|
8407
8407
|
}
|
|
@@ -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.
|
|
@@ -18491,6 +18491,7 @@ export function defaultValue(a: any, b: any): any;
|
|
|
18491
18491
|
*/
|
|
18492
18492
|
export function defined<Type>(value: Type): value is NonNullable<Type>;
|
|
18493
18493
|
|
|
18494
|
+
|
|
18494
18495
|
/**
|
|
18495
18496
|
* Destroys an object. Each of the object's functions, including functions in its prototype,
|
|
18496
18497
|
* is replaced with a function that throws a {@link DeveloperError}, except for the object's
|
|
@@ -18760,7 +18761,6 @@ export function subdivideArray(array: any[], numberOfArrays: number): void;
|
|
|
18760
18761
|
* @param text - The text to write.
|
|
18761
18762
|
* @param [options] - Object with the following properties:
|
|
18762
18763
|
* @param [options.font = '10px sans-serif'] - The CSS font to use.
|
|
18763
|
-
* @param [options.textBaseline = 'bottom'] - The baseline of the text.
|
|
18764
18764
|
* @param [options.fill = true] - Whether to fill the text.
|
|
18765
18765
|
* @param [options.stroke = false] - Whether to stroke the text.
|
|
18766
18766
|
* @param [options.fillColor = Color.WHITE] - The fill color.
|
|
@@ -18774,7 +18774,6 @@ export function subdivideArray(array: any[], numberOfArrays: number): void;
|
|
|
18774
18774
|
*/
|
|
18775
18775
|
export function writeTextToCanvas(text: string, options?: {
|
|
18776
18776
|
font?: string;
|
|
18777
|
-
textBaseline?: string;
|
|
18778
18777
|
fill?: boolean;
|
|
18779
18778
|
stroke?: boolean;
|
|
18780
18779
|
fillColor?: Color;
|
|
@@ -19040,6 +19039,21 @@ export class BillboardVisualizer {
|
|
|
19040
19039
|
destroy(): void;
|
|
19041
19040
|
}
|
|
19042
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
|
+
|
|
19043
19057
|
/**
|
|
19044
19058
|
* A {@link GeometryUpdater} for boxes.
|
|
19045
19059
|
* Clients do not normally create this class directly, but instead rely on {@link DataSourceDisplay}.
|
|
@@ -20437,10 +20451,10 @@ export class DataSourceClock {
|
|
|
20437
20451
|
clone(result?: DataSourceClock): DataSourceClock;
|
|
20438
20452
|
/**
|
|
20439
20453
|
* Returns true if this DataSourceClock is equivalent to the other
|
|
20440
|
-
* @param other - The other DataSourceClock to compare to.
|
|
20454
|
+
* @param [other] - The other DataSourceClock to compare to.
|
|
20441
20455
|
* @returns <code>true</code> if the DataSourceClocks are equal; otherwise, <code>false</code>.
|
|
20442
20456
|
*/
|
|
20443
|
-
equals(other
|
|
20457
|
+
equals(other?: DataSourceClock): boolean;
|
|
20444
20458
|
/**
|
|
20445
20459
|
* Assigns each unassigned property on this object to the value
|
|
20446
20460
|
* of the same property on the provided source object.
|
|
@@ -22746,6 +22760,7 @@ export namespace ModelGraphics {
|
|
|
22746
22760
|
* @property [colorBlendMode = ColorBlendMode.HIGHLIGHT] - An enum Property specifying how the color blends with the model.
|
|
22747
22761
|
* @property [colorBlendAmount = 0.5] - A numeric Property specifying the color strength when the <code>colorBlendMode</code> is <code>MIX</code>. A value of 0.0 results in the model's rendered color while a value of 1.0 results in a solid color, with any value in-between resulting in a mix of the two.
|
|
22748
22762
|
* @property [imageBasedLightingFactor = new Cartesian2(1.0, 1.0)] - A property specifying the contribution from diffuse and specular image-based lighting.
|
|
22763
|
+
* @property [environmentMapOptions] - The properties for managing dynamic environment maps on this entity.
|
|
22749
22764
|
* @property [lightColor] - A property specifying the light color when shading the model. When <code>undefined</code> the scene's light color is used instead.
|
|
22750
22765
|
* @property [distanceDisplayCondition] - A Property specifying at what distance from the camera that this model will be displayed.
|
|
22751
22766
|
* @property [nodeTransformations] - An object, where keys are names of nodes, and values are {@link TranslationRotationScale} Properties describing the transformation to apply to that node. The transformation is applied after the node's existing transformation as specified in the glTF, and does not replace the node's existing transformation.
|
|
@@ -22771,6 +22786,9 @@ export namespace ModelGraphics {
|
|
|
22771
22786
|
colorBlendMode?: Property | ColorBlendMode;
|
|
22772
22787
|
colorBlendAmount?: Property | number;
|
|
22773
22788
|
imageBasedLightingFactor?: Property | Cartesian2;
|
|
22789
|
+
environmentMapOptions?: PropertyBag | {
|
|
22790
|
+
[key: string]: any;
|
|
22791
|
+
};
|
|
22774
22792
|
lightColor?: Property | Color;
|
|
22775
22793
|
distanceDisplayCondition?: Property | DistanceDisplayCondition;
|
|
22776
22794
|
nodeTransformations?: PropertyBag | {
|
|
@@ -22878,6 +22896,10 @@ export class ModelGraphics {
|
|
|
22878
22896
|
* A property specifying the {@link Cartesian2} used to scale the diffuse and specular image-based lighting contribution to the final color.
|
|
22879
22897
|
*/
|
|
22880
22898
|
imageBasedLightingFactor: Property | undefined;
|
|
22899
|
+
/**
|
|
22900
|
+
* Gets or sets the {@link DynamicEnvironmentMapManager.ConstructorOptions} to apply to this model. This is represented as an {@link PropertyBag}.
|
|
22901
|
+
*/
|
|
22902
|
+
environmentMapOptions: PropertyBag;
|
|
22881
22903
|
/**
|
|
22882
22904
|
* A property specifying the {@link Cartesian3} light color when shading the model. When <code>undefined</code> the scene's light color is used instead.
|
|
22883
22905
|
*/
|
|
@@ -26466,10 +26488,10 @@ export class Billboard {
|
|
|
26466
26488
|
/**
|
|
26467
26489
|
* Determines if this billboard equals another billboard. Billboards are equal if all their properties
|
|
26468
26490
|
* are equal. Billboards in different collections can be equal.
|
|
26469
|
-
* @param other - The billboard to compare for equality.
|
|
26491
|
+
* @param [other] - The billboard to compare for equality.
|
|
26470
26492
|
* @returns <code>true</code> if the billboards are equal; otherwise, <code>false</code>.
|
|
26471
26493
|
*/
|
|
26472
|
-
equals(other
|
|
26494
|
+
equals(other?: Billboard): boolean;
|
|
26473
26495
|
}
|
|
26474
26496
|
|
|
26475
26497
|
/**
|
|
@@ -29237,6 +29259,7 @@ export namespace Cesium3DTileset {
|
|
|
29237
29259
|
* @property [pointCloudShading] - Options for constructing a {@link PointCloudShading} object to control point attenuation based on geometric error and lighting.
|
|
29238
29260
|
* @property [lightColor] - The light color when shading models. When <code>undefined</code> the scene's light color is used instead.
|
|
29239
29261
|
* @property [imageBasedLighting] - The properties for managing image-based lighting for this tileset.
|
|
29262
|
+
* @property [environmentMapOptions] - The properties for managing dynamic environment maps on this tileset.
|
|
29240
29263
|
* @property [backFaceCulling = true] - Whether to cull back-facing geometry. When true, back face culling is determined by the glTF material's doubleSided property; when false, back face culling is disabled.
|
|
29241
29264
|
* @property [enableShowOutline = true] - Whether to enable outlines for models using the {@link https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/CESIUM_primitive_outline|CESIUM_primitive_outline} extension. This can be set to false to avoid the additional processing of geometry at load time. When false, the showOutlines and outlineColor options are ignored.
|
|
29242
29265
|
* @property [showOutline = true] - Whether to display the outline for models using the {@link https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/CESIUM_primitive_outline|CESIUM_primitive_outline} extension. When true, outlines are displayed. When false, outlines are not displayed.
|
|
@@ -29262,7 +29285,6 @@ export namespace Cesium3DTileset {
|
|
|
29262
29285
|
* @property [debugShowRenderingStatistics = false] - For debugging only. When true, draws labels to indicate the number of commands, points, triangles and features for each tile.
|
|
29263
29286
|
* @property [debugShowMemoryUsage = false] - For debugging only. When true, draws labels to indicate the texture and geometry memory in megabytes used by each tile.
|
|
29264
29287
|
* @property [debugShowUrl = false] - For debugging only. When true, draws labels to indicate the url of each tile.
|
|
29265
|
-
* @param [options.environmentMapOptions] - The properties for managing dynamic environment maps on this model.
|
|
29266
29288
|
*/
|
|
29267
29289
|
type ConstructorOptions = {
|
|
29268
29290
|
show?: boolean;
|
|
@@ -29302,6 +29324,7 @@ export namespace Cesium3DTileset {
|
|
|
29302
29324
|
pointCloudShading?: any;
|
|
29303
29325
|
lightColor?: Cartesian3;
|
|
29304
29326
|
imageBasedLighting?: ImageBasedLighting;
|
|
29327
|
+
environmentMapOptions?: DynamicEnvironmentMapManager.ConstructorOptions;
|
|
29305
29328
|
backFaceCulling?: boolean;
|
|
29306
29329
|
enableShowOutline?: boolean;
|
|
29307
29330
|
showOutline?: boolean;
|
|
@@ -30636,7 +30659,7 @@ export class ClippingPolygon {
|
|
|
30636
30659
|
* @param right - The second polygon.
|
|
30637
30660
|
* @returns <code>true</code> if left and right are equal, <code>false</code> otherwise.
|
|
30638
30661
|
*/
|
|
30639
|
-
static equals(left:
|
|
30662
|
+
static equals(left: ClippingPolygon, right: ClippingPolygon): boolean;
|
|
30640
30663
|
/**
|
|
30641
30664
|
* Computes a cartographic rectangle which encloses the polygon defined by the list of positions, including cases over the international date line and the poles.
|
|
30642
30665
|
* @param [result] - An object in which to store the result.
|
|
@@ -31696,7 +31719,7 @@ export namespace DynamicEnvironmentMapManager {
|
|
|
31696
31719
|
/**
|
|
31697
31720
|
* Options for the DynamicEnvironmentMapManager constructor
|
|
31698
31721
|
* @property [enabled = true] - If true, the environment map and related properties will continue to update.
|
|
31699
|
-
* @property [mipmapLevels =
|
|
31722
|
+
* @property [mipmapLevels = 7] - The number of mipmap levels to generate for specular maps. More mipmap levels will produce a higher resolution specular reflection.
|
|
31700
31723
|
* @property [maximumSecondsDifference = 3600] - The maximum amount of elapsed seconds before a new environment map is created.
|
|
31701
31724
|
* @property [maximumPositionEpsilon = 1000] - The maximum difference in position before a new environment map is created, in meters. Small differences in position will not visibly affect results.
|
|
31702
31725
|
* @property [atmosphereScatteringIntensity = 2.0] - The intensity of the scattered light emitted from the atmosphere. This should be adjusted relative to the value of {@link Scene.light} intensity.
|
|
@@ -34011,6 +34034,25 @@ export namespace ITwinData {
|
|
|
34011
34034
|
* @param [rootDocument] - The path of the root document for this reality data
|
|
34012
34035
|
*/
|
|
34013
34036
|
function createTilesetForRealityDataId(iTwinId: string, realityDataId: string, type?: ITwinPlatform.RealityDataType, rootDocument?: string): Promise<Cesium3DTileset>;
|
|
34037
|
+
/**
|
|
34038
|
+
* Create a data source of the correct type for the specified reality data id.
|
|
34039
|
+
* This function only works for KML and GeoJSON type data.
|
|
34040
|
+
*
|
|
34041
|
+
* If the <code>type</code> or <code>rootDocument</code> are not provided this function
|
|
34042
|
+
* will first request the full metadata for the specified reality data to fill these values.
|
|
34043
|
+
* @param iTwinId - The id of the iTwin to load data from
|
|
34044
|
+
* @param realityDataId - The id of the reality data to load
|
|
34045
|
+
* @param [type] - The type of this reality data
|
|
34046
|
+
* @param [rootDocument] - The path of the root document for this reality data
|
|
34047
|
+
*/
|
|
34048
|
+
function createDataSourceForRealityDataId(iTwinId: string, realityDataId: string, type?: ITwinPlatform.RealityDataType, rootDocument?: string): Promise<GeoJsonDataSource | KmlDataSource>;
|
|
34049
|
+
/**
|
|
34050
|
+
* Load data from the Geospatial Features API as GeoJSON.
|
|
34051
|
+
* @param iTwinId - The id of the iTwin to load data from
|
|
34052
|
+
* @param collectionId - The id of the data collection to load
|
|
34053
|
+
* @param [limit = 10000] - number of items per page, must be between 1 and 10,000 inclusive
|
|
34054
|
+
*/
|
|
34055
|
+
function loadGeospatialFeatures(iTwinId: string, collectionId: string, limit?: number): Promise<GeoJsonDataSource>;
|
|
34014
34056
|
}
|
|
34015
34057
|
|
|
34016
34058
|
/**
|
|
@@ -34364,10 +34406,10 @@ export class ImageryLayer {
|
|
|
34364
34406
|
* alert(`Encountered an error while creating an imagery layer! ${error}`);
|
|
34365
34407
|
* });
|
|
34366
34408
|
* @param imageryProviderPromise - A promise which resolves to a imagery provider
|
|
34367
|
-
* @param options - An object describing initialization options
|
|
34409
|
+
* @param [options] - An object describing initialization options
|
|
34368
34410
|
* @returns The created imagery layer.
|
|
34369
34411
|
*/
|
|
34370
|
-
static fromProviderAsync(imageryProviderPromise: Promise<ImageryProvider>, options
|
|
34412
|
+
static fromProviderAsync(imageryProviderPromise: Promise<ImageryProvider>, options?: ImageryLayer.ConstructorOptions): ImageryLayer;
|
|
34371
34413
|
/**
|
|
34372
34414
|
* 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.
|
|
34373
34415
|
* @example
|
|
@@ -35195,10 +35237,10 @@ export class Label {
|
|
|
35195
35237
|
/**
|
|
35196
35238
|
* Determines if this label equals another label. Labels are equal if all their properties
|
|
35197
35239
|
* are equal. Labels in different collections can be equal.
|
|
35198
|
-
* @param other - The label to compare for equality.
|
|
35240
|
+
* @param [other] - The label to compare for equality.
|
|
35199
35241
|
* @returns <code>true</code> if the labels are equal; otherwise, <code>false</code>.
|
|
35200
35242
|
*/
|
|
35201
|
-
equals(other
|
|
35243
|
+
equals(other?: Label): boolean;
|
|
35202
35244
|
/**
|
|
35203
35245
|
* Returns true if this object was destroyed; otherwise, false.
|
|
35204
35246
|
* <br /><br />
|
|
@@ -37596,7 +37638,7 @@ export class Model {
|
|
|
37596
37638
|
*
|
|
37597
37639
|
* The given name may be the name of a glTF extension, like `"EXT_example_extension"`.
|
|
37598
37640
|
* If the specified extension was present in the root of the underlying glTF asset,
|
|
37599
|
-
* and a
|
|
37641
|
+
* and a loader for the specified extension has processed the extension data, then
|
|
37600
37642
|
* this will return the model representation of the extension.
|
|
37601
37643
|
* @param extensionName - The name of the extension
|
|
37602
37644
|
* @returns The object, or `undefined`
|
|
@@ -39260,10 +39302,10 @@ export class PointPrimitive {
|
|
|
39260
39302
|
/**
|
|
39261
39303
|
* Determines if this point equals another point. Points are equal if all their properties
|
|
39262
39304
|
* are equal. Points in different collections can be equal.
|
|
39263
|
-
* @param other - The point to compare for equality.
|
|
39305
|
+
* @param [other] - The point to compare for equality.
|
|
39264
39306
|
* @returns <code>true</code> if the points are equal; otherwise, <code>false</code>.
|
|
39265
39307
|
*/
|
|
39266
|
-
equals(other
|
|
39308
|
+
equals(other?: PointPrimitive): boolean;
|
|
39267
39309
|
}
|
|
39268
39310
|
|
|
39269
39311
|
/**
|
|
@@ -43491,6 +43533,95 @@ export class VoxelPrimitive {
|
|
|
43491
43533
|
customShader?: CustomShader;
|
|
43492
43534
|
clock?: Clock;
|
|
43493
43535
|
});
|
|
43536
|
+
/**
|
|
43537
|
+
* The number of levels of detail containing available tiles in the tileset.
|
|
43538
|
+
*/
|
|
43539
|
+
readonly availableLevels: number | undefined;
|
|
43540
|
+
/**
|
|
43541
|
+
* The event fired to indicate that a tile's content was loaded.
|
|
43542
|
+
* <p>
|
|
43543
|
+
* This event is fired during the tileset traversal while the frame is being rendered
|
|
43544
|
+
* so that updates to the tile take effect in the same frame. Do not create or modify
|
|
43545
|
+
* Cesium entities or primitives during the event listener.
|
|
43546
|
+
* </p>
|
|
43547
|
+
* @example
|
|
43548
|
+
* voxelPrimitive.tileLoad.addEventListener(function() {
|
|
43549
|
+
* console.log('A tile was loaded.');
|
|
43550
|
+
* });
|
|
43551
|
+
*/
|
|
43552
|
+
tileLoad: Event;
|
|
43553
|
+
/**
|
|
43554
|
+
* This event fires once for each visible tile in a frame.
|
|
43555
|
+
* <p>
|
|
43556
|
+
* This event is fired during the traversal while the frame is being rendered.
|
|
43557
|
+
* @example
|
|
43558
|
+
* voxelPrimitive.tileVisible.addEventListener(function() {
|
|
43559
|
+
* console.log('A tile is visible.');
|
|
43560
|
+
* });
|
|
43561
|
+
*/
|
|
43562
|
+
tileVisible: Event;
|
|
43563
|
+
/**
|
|
43564
|
+
* The event fired to indicate that a tile's content failed to load.
|
|
43565
|
+
* @example
|
|
43566
|
+
* voxelPrimitive.tileFailed.addEventListener(function() {
|
|
43567
|
+
* console.log('An error occurred loading tile.');
|
|
43568
|
+
* });
|
|
43569
|
+
*/
|
|
43570
|
+
tileFailed: Event;
|
|
43571
|
+
/**
|
|
43572
|
+
* The event fired to indicate that a tile's content was unloaded.
|
|
43573
|
+
* @example
|
|
43574
|
+
* voxelPrimitive.tileUnload.addEventListener(function() {
|
|
43575
|
+
* console.log('A tile was unloaded from the cache.');
|
|
43576
|
+
* });
|
|
43577
|
+
*/
|
|
43578
|
+
tileUnload: Event;
|
|
43579
|
+
/**
|
|
43580
|
+
* The event fired to indicate progress of loading new tiles. This event is fired when a new tile
|
|
43581
|
+
* is requested, when a requested tile is finished downloading, and when a downloaded tile has been
|
|
43582
|
+
* processed and is ready to render.
|
|
43583
|
+
* <p>
|
|
43584
|
+
* The number of pending tile requests, <code>numberOfPendingRequests</code>, and number of tiles
|
|
43585
|
+
* processing, <code>numberOfTilesProcessing</code> are passed to the event listener.
|
|
43586
|
+
* </p>
|
|
43587
|
+
* <p>
|
|
43588
|
+
* This event is fired at the end of the frame after the scene is rendered.
|
|
43589
|
+
* </p>
|
|
43590
|
+
* @example
|
|
43591
|
+
* voxelPrimitive.loadProgress.addEventListener(function(numberOfPendingRequests, numberOfTilesProcessing) {
|
|
43592
|
+
* if ((numberOfPendingRequests === 0) && (numberOfTilesProcessing === 0)) {
|
|
43593
|
+
* console.log('Finished loading');
|
|
43594
|
+
* return;
|
|
43595
|
+
* }
|
|
43596
|
+
*
|
|
43597
|
+
* console.log(`Loading: requests: ${numberOfPendingRequests}, processing: ${numberOfTilesProcessing}`);
|
|
43598
|
+
* });
|
|
43599
|
+
*/
|
|
43600
|
+
loadProgress: Event;
|
|
43601
|
+
/**
|
|
43602
|
+
* The event fired to indicate that all tiles that meet the screen space error this frame are loaded. The voxel
|
|
43603
|
+
* primitive is completely loaded for this view.
|
|
43604
|
+
* <p>
|
|
43605
|
+
* This event is fired at the end of the frame after the scene is rendered.
|
|
43606
|
+
* </p>
|
|
43607
|
+
* @example
|
|
43608
|
+
* voxelPrimitive.allTilesLoaded.addEventListener(function() {
|
|
43609
|
+
* console.log('All tiles are loaded');
|
|
43610
|
+
* });
|
|
43611
|
+
*/
|
|
43612
|
+
allTilesLoaded: Event;
|
|
43613
|
+
/**
|
|
43614
|
+
* The event fired to indicate that all tiles that meet the screen space error this frame are loaded. This event
|
|
43615
|
+
* is fired once when all tiles in the initial view are loaded.
|
|
43616
|
+
* <p>
|
|
43617
|
+
* This event is fired at the end of the frame after the scene is rendered.
|
|
43618
|
+
* </p>
|
|
43619
|
+
* @example
|
|
43620
|
+
* voxelPrimitive.initialTilesLoaded.addEventListener(function() {
|
|
43621
|
+
* console.log('Initial tiles are loaded');
|
|
43622
|
+
* });
|
|
43623
|
+
*/
|
|
43624
|
+
initialTilesLoaded: Event;
|
|
43494
43625
|
/**
|
|
43495
43626
|
* Gets a value indicating whether or not the primitive is ready for use.
|
|
43496
43627
|
*/
|
|
@@ -43707,6 +43838,11 @@ export class VoxelProvider {
|
|
|
43707
43838
|
}): Promise<any[][]> | undefined;
|
|
43708
43839
|
}
|
|
43709
43840
|
|
|
43841
|
+
/**
|
|
43842
|
+
* The number of levels of detail containing available tiles in the tileset.
|
|
43843
|
+
*/
|
|
43844
|
+
export const availableLevels: number | undefined;
|
|
43845
|
+
|
|
43710
43846
|
export const shaderUniforms: {
|
|
43711
43847
|
[key: string]: any;
|
|
43712
43848
|
};
|
|
@@ -44007,7 +44143,7 @@ export namespace WebMapTileServiceImageryProvider {
|
|
|
44007
44143
|
* @example
|
|
44008
44144
|
* // Example 1. USGS shaded relief tiles (KVP)
|
|
44009
44145
|
* const shadedRelief1 = new Cesium.WebMapTileServiceImageryProvider({
|
|
44010
|
-
* url : '
|
|
44146
|
+
* url : 'https://basemap.nationalmap.gov/arcgis/rest/services/USGSShadedReliefOnly/MapServer/WMTS',
|
|
44011
44147
|
* layer : 'USGSShadedReliefOnly',
|
|
44012
44148
|
* style : 'default',
|
|
44013
44149
|
* format : 'image/jpeg',
|
|
@@ -44020,7 +44156,7 @@ export namespace WebMapTileServiceImageryProvider {
|
|
|
44020
44156
|
* @example
|
|
44021
44157
|
* // Example 2. USGS shaded relief tiles (RESTful)
|
|
44022
44158
|
* const shadedRelief2 = new Cesium.WebMapTileServiceImageryProvider({
|
|
44023
|
-
* url : '
|
|
44159
|
+
* url : 'https://basemap.nationalmap.gov/arcgis/rest/services/USGSShadedReliefOnly/MapServer/WMTS/tile/1.0.0/USGSShadedReliefOnly/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpg',
|
|
44024
44160
|
* layer : 'USGSShadedReliefOnly',
|
|
44025
44161
|
* style : 'default',
|
|
44026
44162
|
* format : 'image/jpeg',
|