@cesium/engine 6.2.0 → 7.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/ThirdParty/Workers/z-worker-pako.js +568 -407
- package/Build/Workers/{chunk-QRBRVGZC.js → chunk-2HJWSU7B.js} +4 -4
- package/Build/Workers/{chunk-ZQRZBHYI.js → chunk-46UD5ABS.js} +4 -4
- package/Build/Workers/{chunk-GVL5I7TC.js → chunk-4EBHOMFX.js} +17 -17
- package/Build/Workers/{chunk-CDGHUKQ4.js → chunk-5HDYHG3F.js} +13 -13
- package/Build/Workers/{chunk-CWJQGBWT.js → chunk-5M3U6ZMA.js} +1 -1
- package/Build/Workers/{chunk-Y4OJ4B23.js → chunk-5WQ523AW.js} +5 -5
- package/Build/Workers/{chunk-NE4JNU6H.js → chunk-5YLJ77FF.js} +10 -10
- package/Build/Workers/{chunk-SV7DDPAC.js → chunk-6HZQPRUS.js} +1 -1
- package/Build/Workers/{chunk-434ZTTFX.js → chunk-6VJVYK2V.js} +2 -2
- package/Build/Workers/{chunk-LGJUI2CE.js → chunk-72SANQJV.js} +5 -5
- package/Build/Workers/{chunk-QTZQZY2C.js → chunk-7XEAYGZK.js} +34 -10
- package/Build/Workers/{chunk-Z4JUBRHP.js → chunk-AIPU2VSX.js} +6 -6
- package/Build/Workers/{chunk-PZ2WJWUG.js → chunk-AR5DNBJ4.js} +6 -6
- package/Build/Workers/{chunk-BUZDZBUH.js → chunk-BZP4T2JJ.js} +10 -10
- package/Build/Workers/{chunk-Z2SIPUKB.js → chunk-DTAIXKTO.js} +6 -6
- package/Build/Workers/{chunk-HOT2SNXP.js → chunk-F6SE42BK.js} +127 -90
- package/Build/Workers/{chunk-TIXXVKUY.js → chunk-FP6GYBFX.js} +10 -10
- package/Build/Workers/{chunk-ARPTYYKS.js → chunk-GEJTYLCO.js} +5 -5
- package/Build/Workers/{chunk-XUTVA4K5.js → chunk-GV56Q4LU.js} +11 -11
- package/Build/Workers/{chunk-HPP4JLNH.js → chunk-IQBYFRVW.js} +7 -7
- package/Build/Workers/{chunk-O43GWBSF.js → chunk-IX2JCCNM.js} +1 -1
- package/Build/Workers/{chunk-H5DUXHCV.js → chunk-JCNXK6EL.js} +11 -11
- package/Build/Workers/{chunk-SQVTYRZY.js → chunk-JJ4VBOQ3.js} +4 -4
- package/Build/Workers/{chunk-RIDPF7PO.js → chunk-JXDC723O.js} +2 -2
- package/Build/Workers/{chunk-R3HUGXBH.js → chunk-JY5YEZFA.js} +8 -8
- package/Build/Workers/{chunk-GF5TNNKP.js → chunk-L2ZN645J.js} +6 -6
- package/Build/Workers/{chunk-5GDBZTHX.js → chunk-LZ7JIV3K.js} +17 -17
- package/Build/Workers/{chunk-52VSIKEA.js → chunk-LZGHD6NY.js} +15 -15
- package/Build/Workers/{chunk-RH4N2ONY.js → chunk-MY3VNFGQ.js} +7 -7
- package/Build/Workers/{chunk-MN34FIF5.js → chunk-NKPBIX7F.js} +1 -1
- package/Build/Workers/{chunk-AXFRNOVC.js → chunk-NY3K4IM3.js} +12 -12
- package/Build/Workers/{chunk-MW3CJYLX.js → chunk-ODW7WYM4.js} +2 -2
- package/Build/Workers/{chunk-R4OZKBXH.js → chunk-OVLG3FRS.js} +6 -6
- package/Build/Workers/{chunk-TMPVBFJQ.js → chunk-PNBGBETF.js} +10 -10
- package/Build/Workers/{chunk-DR5XZ6K5.js → chunk-PTQQUQC3.js} +13 -13
- package/Build/Workers/{chunk-3PW6ZBN4.js → chunk-QZAD5O7I.js} +7 -7
- package/Build/Workers/{chunk-5SK36PU4.js → chunk-R5X4OQT4.js} +7 -7
- package/Build/Workers/{chunk-DMCSY5BU.js → chunk-RAEV7K66.js} +5 -5
- package/Build/Workers/{chunk-BP467WX3.js → chunk-RV7ZYPFT.js} +4 -4
- package/Build/Workers/{chunk-5HLGKKG3.js → chunk-S4MAZ3SS.js} +2 -2
- package/Build/Workers/{chunk-LX6XV4DK.js → chunk-S6SKF6DT.js} +5 -5
- package/Build/Workers/{chunk-HUPNRBWW.js → chunk-U2VCRRQW.js} +6 -6
- package/Build/Workers/{chunk-SNN7WOC2.js → chunk-UAEW6HKG.js} +13 -13
- package/Build/Workers/{chunk-HFKSAB5K.js → chunk-UDO6BFSF.js} +13 -13
- package/Build/Workers/{chunk-YBKFS53K.js → chunk-UGK3FCDY.js} +1 -1
- package/Build/Workers/{chunk-PIXK6KHB.js → chunk-VK3EJHWI.js} +2 -2
- package/Build/Workers/{chunk-5IRLXUTA.js → chunk-VRGFV2UO.js} +7 -7
- package/Build/Workers/{chunk-JGG36SQV.js → chunk-WBQCVXR3.js} +4 -4
- package/Build/Workers/{chunk-4KP73B43.js → chunk-WZU2YLWG.js} +3 -3
- package/Build/Workers/{chunk-LGL4P5KL.js → chunk-XWXM2O2R.js} +6 -6
- package/Build/Workers/{chunk-FWGNCYP6.js → chunk-YUCVWAY6.js} +7 -7
- package/Build/Workers/{chunk-CSIZ3BGT.js → chunk-ZK5JOS3D.js} +14 -14
- package/Build/Workers/{chunk-HPH5HSFE.js → chunk-ZUA2UUNV.js} +2 -2
- package/Build/Workers/combineGeometry.js +23 -23
- package/Build/Workers/createBoxGeometry.js +17 -17
- package/Build/Workers/createBoxOutlineGeometry.js +15 -15
- package/Build/Workers/createCircleGeometry.js +25 -25
- package/Build/Workers/createCircleOutlineGeometry.js +18 -18
- package/Build/Workers/createCoplanarPolygonGeometry.js +32 -32
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +30 -30
- package/Build/Workers/createCorridorGeometry.js +28 -29
- package/Build/Workers/createCorridorOutlineGeometry.js +27 -28
- package/Build/Workers/createCylinderGeometry.js +19 -19
- package/Build/Workers/createCylinderOutlineGeometry.js +17 -17
- package/Build/Workers/createEllipseGeometry.js +25 -25
- package/Build/Workers/createEllipseOutlineGeometry.js +18 -18
- package/Build/Workers/createEllipsoidGeometry.js +18 -18
- package/Build/Workers/createEllipsoidOutlineGeometry.js +17 -17
- package/Build/Workers/createFrustumGeometry.js +17 -17
- package/Build/Workers/createFrustumOutlineGeometry.js +17 -17
- package/Build/Workers/createGeometry.js +23 -23
- package/Build/Workers/createGroundPolylineGeometry.js +21 -21
- package/Build/Workers/createPlaneGeometry.js +15 -15
- package/Build/Workers/createPlaneOutlineGeometry.js +14 -14
- package/Build/Workers/createPolygonGeometry.js +31 -166
- package/Build/Workers/createPolygonOutlineGeometry.js +29 -29
- package/Build/Workers/createPolylineGeometry.js +24 -24
- package/Build/Workers/createPolylineVolumeGeometry.js +31 -33
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +26 -27
- package/Build/Workers/createRectangleGeometry.js +26 -26
- package/Build/Workers/createRectangleOutlineGeometry.js +19 -19
- package/Build/Workers/createSimplePolylineGeometry.js +22 -22
- package/Build/Workers/createSphereGeometry.js +18 -18
- package/Build/Workers/createSphereOutlineGeometry.js +17 -17
- package/Build/Workers/createTaskProcessorWorker.js +3 -3
- package/Build/Workers/createVectorTileClampedPolylines.js +14 -14
- package/Build/Workers/createVectorTileGeometries.js +23 -23
- package/Build/Workers/createVectorTilePoints.js +12 -12
- package/Build/Workers/createVectorTilePolygons.js +21 -21
- package/Build/Workers/createVectorTilePolylines.js +14 -14
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +21 -21
- package/Build/Workers/createVerticesFromHeightmap.js +21 -21
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +18 -18
- package/Build/Workers/createWallGeometry.js +23 -23
- package/Build/Workers/createWallOutlineGeometry.js +22 -22
- package/Build/Workers/decodeDraco.js +11 -11
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
- package/Build/Workers/decodeI3S.js +9 -9
- package/Build/Workers/transcodeKTX2.js +7 -7
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +21 -21
- package/LICENSE.md +1 -1
- package/Source/Assets/approximateTerrainHeights.json +1 -1
- package/Source/Core/GregorianDate.js +85 -0
- package/Source/Core/HeadingPitchRange.js +2 -2
- package/Source/Core/Ion.js +1 -1
- package/Source/Core/PolygonGeometry.js +0 -169
- package/Source/Core/Resource.js +30 -69
- package/Source/Core/Transforms.js +27 -18
- package/Source/Core/createWorldBathymetryAsync.js +45 -0
- package/Source/DataSources/EllipsoidGeometryUpdater.js +3 -4
- package/Source/DataSources/Entity.js +8 -5
- package/Source/DataSources/EntityCollection.js +1 -2
- package/Source/DataSources/GeometryUpdater.js +1 -2
- package/Source/DataSources/GroundGeometryUpdater.js +6 -3
- package/Source/DataSources/ModelVisualizer.js +19 -98
- package/Source/DataSources/PolygonGeometryUpdater.js +14 -2
- package/Source/DataSources/PolylineGeometryUpdater.js +9 -8
- package/Source/DataSources/TerrainOffsetProperty.js +15 -23
- package/Source/Renderer/AutomaticUniforms.js +121 -1
- package/Source/Renderer/UniformState.js +127 -0
- package/Source/Scene/ArcGisMapService.js +1 -1
- package/Source/Scene/Atmosphere.js +127 -0
- package/Source/Scene/Billboard.js +29 -26
- package/Source/Scene/BillboardCollection.js +3 -3
- package/Source/Scene/Camera.js +1 -1
- package/Source/Scene/Cesium3DTile.js +1 -0
- package/Source/Scene/Cesium3DTileContent.js +14 -0
- package/Source/Scene/Cesium3DTileset.js +326 -45
- package/Source/Scene/Cesium3DTilesetTraversal.js +4 -0
- package/Source/Scene/Composite3DTileContent.js +42 -0
- package/Source/Scene/DynamicAtmosphereLightingType.js +56 -0
- package/Source/Scene/Empty3DTileContent.js +4 -0
- package/Source/Scene/Fog.js +1 -0
- package/Source/Scene/FrameState.js +9 -1
- package/Source/Scene/Geometry3DTileContent.js +4 -0
- package/Source/Scene/Globe.js +3 -2
- package/Source/Scene/GlobeSurfaceTileProvider.js +3 -1
- package/Source/Scene/GltfLoader.js +15 -5
- package/Source/Scene/HeightReference.js +59 -2
- package/Source/Scene/Implicit3DTileContent.js +4 -0
- package/Source/Scene/LabelCollection.js +2 -2
- package/Source/Scene/Model/AtmospherePipelineStage.js +59 -0
- package/Source/Scene/Model/B3dmLoader.js +4 -0
- package/Source/Scene/Model/FeatureIdPipelineStage.js +25 -2
- package/Source/Scene/Model/I3dmLoader.js +4 -0
- package/Source/Scene/Model/InstancingPipelineStage.js +24 -6
- package/Source/Scene/Model/MetadataPipelineStage.js +31 -3
- package/Source/Scene/Model/Model.js +82 -32
- package/Source/Scene/Model/Model3DTileContent.js +31 -0
- package/Source/Scene/Model/ModelAnimationChannel.js +16 -15
- package/Source/Scene/Model/ModelSceneGraph.js +6 -0
- package/Source/Scene/Model/pickModel.js +408 -0
- package/Source/Scene/Multiple3DTileContent.js +42 -0
- package/Source/Scene/QuadtreePrimitive.js +1 -1
- package/Source/Scene/Scene.js +198 -16
- package/Source/Scene/ScreenSpaceCameraController.js +2 -6
- package/Source/Scene/SkyAtmosphere.js +5 -6
- package/Source/Scene/Terrain.js +49 -0
- package/Source/Scene/TileBoundingS2Cell.js +2 -2
- package/Source/Scene/Tileset3DTileContent.js +4 -0
- package/Source/Scene/Vector3DTileContent.js +4 -0
- package/Source/Shaders/AtmosphereCommon.glsl +3 -11
- package/Source/Shaders/AtmosphereCommon.js +3 -11
- package/Source/Shaders/Builtin/CzmBuiltins.js +12 -0
- package/Source/Shaders/Builtin/Functions/applyHSBShift.glsl +32 -0
- package/Source/Shaders/Builtin/Functions/applyHSBShift.js +34 -0
- package/Source/Shaders/Builtin/Functions/approximateTanh.glsl +10 -0
- package/Source/Shaders/Builtin/Functions/approximateTanh.js +12 -0
- package/Source/Shaders/Builtin/Functions/computeAtmosphereColor.glsl +44 -0
- package/Source/Shaders/Builtin/Functions/computeAtmosphereColor.js +46 -0
- package/Source/Shaders/Builtin/Functions/computeGroundAtmosphereScattering.glsl +30 -0
- package/Source/Shaders/Builtin/Functions/computeGroundAtmosphereScattering.js +32 -0
- package/Source/Shaders/Builtin/Functions/computeScattering.glsl +150 -0
- package/Source/Shaders/Builtin/Functions/computeScattering.js +152 -0
- package/Source/Shaders/Builtin/Functions/getDynamicAtmosphereLightDirection.glsl +22 -0
- package/Source/Shaders/Builtin/Functions/getDynamicAtmosphereLightDirection.js +24 -0
- package/Source/Shaders/Builtin/Functions/translateRelativeToEye.glsl +5 -0
- package/Source/Shaders/Builtin/Functions/translateRelativeToEye.js +5 -0
- package/Source/Shaders/GlobeFS.glsl +16 -25
- package/Source/Shaders/GlobeFS.js +16 -25
- package/Source/Shaders/GlobeVS.glsl +1 -1
- package/Source/Shaders/GlobeVS.js +1 -1
- package/Source/Shaders/Model/AtmosphereStageFS.glsl +111 -0
- package/Source/Shaders/Model/AtmosphereStageFS.js +113 -0
- package/Source/Shaders/Model/AtmosphereStageVS.glsl +12 -0
- package/Source/Shaders/Model/AtmosphereStageVS.js +14 -0
- package/Source/Shaders/Model/GeometryStageFS.glsl +1 -1
- package/Source/Shaders/Model/GeometryStageFS.js +1 -1
- package/Source/Shaders/Model/GeometryStageVS.glsl +4 -4
- package/Source/Shaders/Model/GeometryStageVS.js +4 -4
- package/Source/Shaders/Model/ModelColorStageFS.glsl +1 -1
- package/Source/Shaders/Model/ModelColorStageFS.js +2 -1
- package/Source/Shaders/Model/ModelFS.glsl +4 -0
- package/Source/Shaders/Model/ModelFS.js +4 -0
- package/Source/Shaders/Model/ModelVS.glsl +9 -4
- package/Source/Shaders/Model/ModelVS.js +9 -4
- package/Source/Shaders/SkyAtmosphereCommon.glsl +3 -13
- package/Source/Shaders/SkyAtmosphereCommon.js +3 -13
- package/Source/Shaders/SkyAtmosphereFS.glsl +5 -10
- package/Source/Shaders/SkyAtmosphereFS.js +5 -10
- package/Source/Shaders/SkyAtmosphereVS.glsl +3 -2
- package/Source/Shaders/SkyAtmosphereVS.js +3 -2
- package/Source/ThirdParty/Workers/z-worker-pako.js +1 -1
- package/Source/ThirdParty/draco_decoder.wasm +0 -0
- package/index.d.ts +283 -65
- package/index.js +260 -247
- package/package.json +3 -3
- package/Build/Workers/chunk-ATB2I7OS.js +0 -55
package/index.d.ts
CHANGED
|
@@ -7701,7 +7701,7 @@ export class GroundPolylineGeometry {
|
|
|
7701
7701
|
|
|
7702
7702
|
/**
|
|
7703
7703
|
* Defines a heading angle, pitch angle, and range in a local frame.
|
|
7704
|
-
* Heading is the rotation from the local
|
|
7704
|
+
* Heading is the rotation from the local east direction where a positive angle is increasing southward.
|
|
7705
7705
|
* Pitch is the rotation from the local xy-plane. Positive pitch angles are above the plane. Negative pitch
|
|
7706
7706
|
* angles are below the plane. Range is the distance from the center of the frame.
|
|
7707
7707
|
* @param [heading = 0.0] - The heading angle in radians.
|
|
@@ -7711,7 +7711,7 @@ export class GroundPolylineGeometry {
|
|
|
7711
7711
|
export class HeadingPitchRange {
|
|
7712
7712
|
constructor(heading?: number, pitch?: number, range?: number);
|
|
7713
7713
|
/**
|
|
7714
|
-
* Heading is the rotation from the local
|
|
7714
|
+
* Heading is the rotation from the local east direction where a positive angle is increasing southward.
|
|
7715
7715
|
*/
|
|
7716
7716
|
heading: number;
|
|
7717
7717
|
/**
|
|
@@ -12889,22 +12889,6 @@ export class PolygonGeometry {
|
|
|
12889
12889
|
* @returns The result rectangle
|
|
12890
12890
|
*/
|
|
12891
12891
|
static computeRectangleFromPositions(positions: Cartesian3[], ellipsoid?: Ellipsoid, arcType?: ArcType, result?: Rectangle): Rectangle;
|
|
12892
|
-
/**
|
|
12893
|
-
* Returns the bounding rectangle given the provided options
|
|
12894
|
-
* @param options - Object with the following properties:
|
|
12895
|
-
* @param options.polygonHierarchy - A polygon hierarchy that can include holes.
|
|
12896
|
-
* @param [options.granularity = Math.RADIANS_PER_DEGREE] - The distance, in radians, between each latitude and longitude. Determines the number of positions sampled.
|
|
12897
|
-
* @param [options.arcType = ArcType.GEODESIC] - The type of line the polygon edges must follow. Valid options are {@link ArcType.GEODESIC} and {@link ArcType.RHUMB}.
|
|
12898
|
-
* @param [options.ellipsoid = Ellipsoid.WGS84] - The ellipsoid to be used as a reference.
|
|
12899
|
-
* @param [result] - An object in which to store the result.
|
|
12900
|
-
* @returns The result rectangle
|
|
12901
|
-
*/
|
|
12902
|
-
static computeRectangle(options: {
|
|
12903
|
-
polygonHierarchy: PolygonHierarchy;
|
|
12904
|
-
granularity?: number;
|
|
12905
|
-
arcType?: ArcType;
|
|
12906
|
-
ellipsoid?: Ellipsoid;
|
|
12907
|
-
}, result?: Rectangle): Rectangle;
|
|
12908
12892
|
/**
|
|
12909
12893
|
* Computes the geometric representation of a polygon, including its vertices, indices, and a bounding sphere.
|
|
12910
12894
|
* @param polygonGeometry - A description of the polygon.
|
|
@@ -17098,7 +17082,7 @@ export namespace Transforms {
|
|
|
17098
17082
|
function northWestUpToFixedFrame(origin: Cartesian3, ellipsoid?: Ellipsoid, result?: Matrix4): Matrix4;
|
|
17099
17083
|
/**
|
|
17100
17084
|
* Computes a 4x4 transformation matrix from a reference frame with axes computed from the heading-pitch-roll angles
|
|
17101
|
-
* centered at the provided origin to the provided ellipsoid's fixed reference frame. Heading is the rotation from the local
|
|
17085
|
+
* centered at the provided origin to the provided ellipsoid's fixed reference frame. Heading is the rotation from the local east
|
|
17102
17086
|
* direction where a positive angle is increasing eastward. Pitch is the rotation from the local east-north plane. Positive pitch angles
|
|
17103
17087
|
* are above the plane. Negative pitch angles are below the plane. Roll is the first rotation applied about the local east axis.
|
|
17104
17088
|
* @example
|
|
@@ -17120,7 +17104,7 @@ export namespace Transforms {
|
|
|
17120
17104
|
function headingPitchRollToFixedFrame(origin: Cartesian3, headingPitchRoll: HeadingPitchRoll, ellipsoid?: Ellipsoid, fixedFrameTransform?: Transforms.LocalFrameToFixedFrame, result?: Matrix4): Matrix4;
|
|
17121
17105
|
/**
|
|
17122
17106
|
* Computes a quaternion from a reference frame with axes computed from the heading-pitch-roll angles
|
|
17123
|
-
* centered at the provided origin. Heading is the rotation from the local
|
|
17107
|
+
* centered at the provided origin. Heading is the rotation from the local east
|
|
17124
17108
|
* direction where a positive angle is increasing eastward. Pitch is the rotation from the local east-north plane. Positive pitch angles
|
|
17125
17109
|
* are above the plane. Negative pitch angles are below the plane. Roll is the first rotation applied about the local east axis.
|
|
17126
17110
|
* @example
|
|
@@ -17141,7 +17125,7 @@ export namespace Transforms {
|
|
|
17141
17125
|
*/
|
|
17142
17126
|
function headingPitchRollQuaternion(origin: Cartesian3, headingPitchRoll: HeadingPitchRoll, ellipsoid?: Ellipsoid, fixedFrameTransform?: Transforms.LocalFrameToFixedFrame, result?: Quaternion): Quaternion;
|
|
17143
17127
|
/**
|
|
17144
|
-
* Computes heading-pitch-roll angles from a transform in a particular reference frame. Heading is the rotation from the local
|
|
17128
|
+
* Computes heading-pitch-roll angles from a transform in a particular reference frame. Heading is the rotation from the local east
|
|
17145
17129
|
* direction where a positive angle is increasing eastward. Pitch is the rotation from the local east-north plane. Positive pitch angles
|
|
17146
17130
|
* are above the plane. Negative pitch angles are below the plane. Roll is the first rotation applied about the local east axis.
|
|
17147
17131
|
* @param transform - The transform
|
|
@@ -18114,6 +18098,36 @@ export function combine(object1?: any, object2?: any, deep?: boolean): any;
|
|
|
18114
18098
|
*/
|
|
18115
18099
|
export function createGuid(): string;
|
|
18116
18100
|
|
|
18101
|
+
/**
|
|
18102
|
+
* Creates a {@link CesiumTerrainProvider} instance for the {@link https://cesium.com/content/#cesium-world-bathymetry|Cesium World Bathymetry}.
|
|
18103
|
+
* @example
|
|
18104
|
+
* // Create Cesium World Bathymetry with default settings
|
|
18105
|
+
* try {
|
|
18106
|
+
* const viewer = new Cesium.Viewer("cesiumContainer", {
|
|
18107
|
+
* terrainProvider: await Cesium.createWorldBathymetryAsync();
|
|
18108
|
+
* });
|
|
18109
|
+
* } catch (error) {
|
|
18110
|
+
* console.log(error);
|
|
18111
|
+
* }
|
|
18112
|
+
* @example
|
|
18113
|
+
* // Create Cesium World Bathymetry with normals.
|
|
18114
|
+
* try {
|
|
18115
|
+
* const viewer1 = new Cesium.Viewer("cesiumContainer", {
|
|
18116
|
+
* terrainProvider: await Cesium.createWorldBathymetryAsync({
|
|
18117
|
+
* requestVertexNormals: true
|
|
18118
|
+
* });
|
|
18119
|
+
* });
|
|
18120
|
+
* } catch (error) {
|
|
18121
|
+
* console.log(error);
|
|
18122
|
+
* }
|
|
18123
|
+
* @param [options] - Object with the following properties:
|
|
18124
|
+
* @param [options.requestVertexNormals = false] - Flag that indicates if the client should request additional lighting information from the server if available.
|
|
18125
|
+
* @returns A promise that resolves to the created CesiumTerrainProvider
|
|
18126
|
+
*/
|
|
18127
|
+
export function createWorldBathymetryAsync(options?: {
|
|
18128
|
+
requestVertexNormals?: boolean;
|
|
18129
|
+
}): Promise<CesiumTerrainProvider>;
|
|
18130
|
+
|
|
18117
18131
|
/**
|
|
18118
18132
|
* Creates a {@link CesiumTerrainProvider} instance for the {@link https://cesium.com/content/#cesium-world-terrain|Cesium World Terrain}.
|
|
18119
18133
|
* @example
|
|
@@ -20604,7 +20618,7 @@ export namespace Entity {
|
|
|
20604
20618
|
* @property [show] - A boolean value indicating if the entity and its children are displayed.
|
|
20605
20619
|
* @property [description] - A string Property specifying an HTML description for this entity.
|
|
20606
20620
|
* @property [position] - A Property specifying the entity position.
|
|
20607
|
-
* @property [orientation] - A Property specifying the entity orientation.
|
|
20621
|
+
* @property [orientation = Transforms.eastNorthUpToFixedFrame(position)] - A Property specifying the entity orientation in respect to Earth-fixed-Earth-centered (ECEF). If undefined, east-north-up at entity position is used.
|
|
20608
20622
|
* @property [viewFrom] - A suggested initial offset for viewing this object.
|
|
20609
20623
|
* @property [parent] - A parent entity to associate with this entity.
|
|
20610
20624
|
* @property [billboard] - A billboard to associate with this entity.
|
|
@@ -20633,8 +20647,8 @@ export namespace Entity {
|
|
|
20633
20647
|
show?: boolean;
|
|
20634
20648
|
description?: Property | string;
|
|
20635
20649
|
position?: PositionProperty | Cartesian3;
|
|
20636
|
-
orientation?: Property;
|
|
20637
|
-
viewFrom?: Property;
|
|
20650
|
+
orientation?: Property | Quaternion;
|
|
20651
|
+
viewFrom?: Property | Cartesian3;
|
|
20638
20652
|
parent?: Entity;
|
|
20639
20653
|
billboard?: BillboardGraphics | BillboardGraphics.ConstructorOptions;
|
|
20640
20654
|
box?: BoxGraphics | BoxGraphics.ConstructorOptions;
|
|
@@ -20751,7 +20765,8 @@ export class Entity {
|
|
|
20751
20765
|
*/
|
|
20752
20766
|
tileset: Cesium3DTilesetGraphics | undefined;
|
|
20753
20767
|
/**
|
|
20754
|
-
* Gets or sets the orientation.
|
|
20768
|
+
* Gets or sets the orientation in respect to Earth-fixed-Earth-centered (ECEF).
|
|
20769
|
+
* Defaults to east-north-up at entity position.
|
|
20755
20770
|
*/
|
|
20756
20771
|
orientation: Property | undefined;
|
|
20757
20772
|
/**
|
|
@@ -21324,8 +21339,6 @@ export class GeometryUpdater {
|
|
|
21324
21339
|
readonly classificationTypeProperty: Property;
|
|
21325
21340
|
/**
|
|
21326
21341
|
* Gets a value indicating if the geometry is time-varying.
|
|
21327
|
-
* If true, all visualization is delegated to a DynamicGeometryUpdater
|
|
21328
|
-
* returned by GeometryUpdater#createDynamicUpdater.
|
|
21329
21342
|
*/
|
|
21330
21343
|
readonly isDynamic: boolean;
|
|
21331
21344
|
/**
|
|
@@ -23283,8 +23296,6 @@ export class PolylineGeometryUpdater {
|
|
|
23283
23296
|
readonly classificationTypeProperty: Property;
|
|
23284
23297
|
/**
|
|
23285
23298
|
* Gets a value indicating if the geometry is time-varying.
|
|
23286
|
-
* If true, all visualization is delegated to the {@link DynamicGeometryUpdater}
|
|
23287
|
-
* returned by GeometryUpdater#createDynamicUpdater.
|
|
23288
23299
|
*/
|
|
23289
23300
|
readonly isDynamic: boolean;
|
|
23290
23301
|
/**
|
|
@@ -25566,6 +25577,81 @@ export namespace ArcGisMapService {
|
|
|
25566
25577
|
function getDefaultTokenCredit(providedKey: string): string | undefined;
|
|
25567
25578
|
}
|
|
25568
25579
|
|
|
25580
|
+
/**
|
|
25581
|
+
* Common atmosphere settings used by 3D Tiles and models for rendering sky atmosphere, ground atmosphere, and fog.
|
|
25582
|
+
*
|
|
25583
|
+
* <p>
|
|
25584
|
+
* This class is not to be confused with {@link SkyAtmosphere}, which is responsible for rendering the sky.
|
|
25585
|
+
* </p>
|
|
25586
|
+
* <p>
|
|
25587
|
+
* While the atmosphere settings affect the color of fog, see {@link Fog} to control how fog is rendered.
|
|
25588
|
+
* </p>
|
|
25589
|
+
* @example
|
|
25590
|
+
* // Turn on dynamic atmosphere lighting using the sun direction
|
|
25591
|
+
* scene.atmosphere.dynamicLighting = Cesium.DynamicAtmosphereLightingType.SUNLIGHT;
|
|
25592
|
+
* @example
|
|
25593
|
+
* // Turn on dynamic lighting using whatever light source is in the scene
|
|
25594
|
+
* scene.light = new Cesium.DirectionalLight({
|
|
25595
|
+
* direction: new Cesium.Cartesian3(1, 0, 0)
|
|
25596
|
+
* });
|
|
25597
|
+
* scene.atmosphere.dynamicLighting = Cesium.DynamicAtmosphereLightingType.SCENE_LIGHT;
|
|
25598
|
+
* @example
|
|
25599
|
+
* // Adjust the color of the atmosphere effects.
|
|
25600
|
+
* scene.atmosphere.hueShift = 0.4; // Cycle 40% around the color wheel
|
|
25601
|
+
* scene.atmosphere.brightnessShift = 0.25; // Increase the brightness
|
|
25602
|
+
* scene.atmosphere.saturationShift = -0.1; // Desaturate the colors
|
|
25603
|
+
*/
|
|
25604
|
+
export class Atmosphere {
|
|
25605
|
+
constructor();
|
|
25606
|
+
/**
|
|
25607
|
+
* The intensity of the light that is used for computing the ground atmosphere color.
|
|
25608
|
+
*/
|
|
25609
|
+
lightIntensity: number;
|
|
25610
|
+
/**
|
|
25611
|
+
* The Rayleigh scattering coefficient used in the atmospheric scattering equations for the ground atmosphere.
|
|
25612
|
+
*/
|
|
25613
|
+
rayleighCoefficient: Cartesian3;
|
|
25614
|
+
/**
|
|
25615
|
+
* The Mie scattering coefficient used in the atmospheric scattering equations for the ground atmosphere.
|
|
25616
|
+
*/
|
|
25617
|
+
mieCoefficient: Cartesian3;
|
|
25618
|
+
/**
|
|
25619
|
+
* The Rayleigh scale height used in the atmospheric scattering equations for the ground atmosphere, in meters.
|
|
25620
|
+
*/
|
|
25621
|
+
rayleighScaleHeight: number;
|
|
25622
|
+
/**
|
|
25623
|
+
* The Mie scale height used in the atmospheric scattering equations for the ground atmosphere, in meters.
|
|
25624
|
+
*/
|
|
25625
|
+
mieScaleHeight: number;
|
|
25626
|
+
/**
|
|
25627
|
+
* The anisotropy of the medium to consider for Mie scattering.
|
|
25628
|
+
* <p>
|
|
25629
|
+
* Valid values are between -1.0 and 1.0.
|
|
25630
|
+
* </p>
|
|
25631
|
+
*/
|
|
25632
|
+
mieAnisotropy: number;
|
|
25633
|
+
/**
|
|
25634
|
+
* The hue shift to apply to the atmosphere. Defaults to 0.0 (no shift).
|
|
25635
|
+
* A hue shift of 1.0 indicates a complete rotation of the hues available.
|
|
25636
|
+
*/
|
|
25637
|
+
hueShift: number;
|
|
25638
|
+
/**
|
|
25639
|
+
* The saturation shift to apply to the atmosphere. Defaults to 0.0 (no shift).
|
|
25640
|
+
* A saturation shift of -1.0 is monochrome.
|
|
25641
|
+
*/
|
|
25642
|
+
saturationShift: number;
|
|
25643
|
+
/**
|
|
25644
|
+
* The brightness shift to apply to the atmosphere. Defaults to 0.0 (no shift).
|
|
25645
|
+
* A brightness shift of -1.0 is complete darkness, which will let space show through.
|
|
25646
|
+
*/
|
|
25647
|
+
brightnessShift: number;
|
|
25648
|
+
/**
|
|
25649
|
+
* When not DynamicAtmosphereLightingType.NONE, the selected light source will
|
|
25650
|
+
* be used for dynamically lighting all atmosphere-related rendering effects.
|
|
25651
|
+
*/
|
|
25652
|
+
dynamicLighting: DynamicAtmosphereLightingType;
|
|
25653
|
+
}
|
|
25654
|
+
|
|
25569
25655
|
/**
|
|
25570
25656
|
* An enum describing the x, y, and z axes and helper conversion functions.
|
|
25571
25657
|
*/
|
|
@@ -26583,7 +26669,7 @@ export class Camera {
|
|
|
26583
26669
|
/**
|
|
26584
26670
|
* If set, the camera will not be able to rotate past this axis in either direction.
|
|
26585
26671
|
*/
|
|
26586
|
-
constrainedAxis: Cartesian3;
|
|
26672
|
+
constrainedAxis: Cartesian3 | undefined;
|
|
26587
26673
|
/**
|
|
26588
26674
|
* The factor multiplied by the the map size used to determine where to clamp the camera position
|
|
26589
26675
|
* when zooming out from the surface. The default is 1.5. Only valid for 2D and the map is rotatable.
|
|
@@ -28651,10 +28737,10 @@ export namespace Cesium3DTileset {
|
|
|
28651
28737
|
* @property [preloadWhenHidden = false] - Preload tiles when <code>tileset.show</code> is <code>false</code>. Loads tiles as if the tileset is visible but does not render them.
|
|
28652
28738
|
* @property [preloadFlightDestinations = true] - Optimization option. Preload tiles at the camera's flight destination while the camera is in flight.
|
|
28653
28739
|
* @property [preferLeaves = false] - Optimization option. Prefer loading of leaves first.
|
|
28654
|
-
* @property [dynamicScreenSpaceError =
|
|
28655
|
-
* @property [dynamicScreenSpaceErrorDensity =
|
|
28656
|
-
* @property [dynamicScreenSpaceErrorFactor =
|
|
28657
|
-
* @property [dynamicScreenSpaceErrorHeightFalloff = 0.25] - A ratio of the tileset's height
|
|
28740
|
+
* @property [dynamicScreenSpaceError = true] - Optimization option. For street-level horizon views, use lower resolution tiles far from the camera. This reduces the amount of data loaded and improves tileset loading time with a slight drop in visual quality in the distance.
|
|
28741
|
+
* @property [dynamicScreenSpaceErrorDensity = 2.0e-4] - Similar to {@link Fog#density}, this option controls the camera distance at which the {@link Cesium3DTileset#dynamicScreenSpaceError} optimization applies. Larger values will cause tiles closer to the camera to be affected.
|
|
28742
|
+
* @property [dynamicScreenSpaceErrorFactor = 24.0] - A parameter that controls the intensity of the {@link Cesium3DTileset#dynamicScreenSpaceError} optimization for tiles on the horizon. Larger values cause lower resolution tiles to load, improving runtime performance at a slight reduction of visual quality.
|
|
28743
|
+
* @property [dynamicScreenSpaceErrorHeightFalloff = 0.25] - A ratio of the tileset's height that determines where "street level" camera views occur. When the camera is below this height, the {@link Cesium3DTileset#dynamicScreenSpaceError} optimization will have the maximum effect, and it will roll off above this value.
|
|
28658
28744
|
* @property [progressiveResolutionHeightFraction = 0.3] - Optimization option. If between (0.0, 0.5], tiles at or above the screen space error for the reduced screen resolution of <code>progressiveResolutionHeightFraction*screenHeight</code> will be prioritized first. This can help get a quick layer of tiles down while full resolution tiles continue to load.
|
|
28659
28745
|
* @property [foveatedScreenSpaceError = true] - Optimization option. Prioritize loading tiles in the center of the screen by temporarily raising the screen space error for tiles around the edge of the screen. Screen space error returns to normal once all the tiles in the center of the screen as determined by the {@link Cesium3DTileset#foveatedConeSize} are loaded.
|
|
28660
28746
|
* @property [foveatedConeSize = 0.1] - Optimization option. Used when {@link Cesium3DTileset#foveatedScreenSpaceError} is true to control the cone size that determines which tiles are deferred. Tiles that are inside this cone are loaded immediately. Tiles outside the cone are potentially deferred based on how far outside the cone they are and their screen space error. This is controlled by {@link Cesium3DTileset#foveatedInterpolationCallback} and {@link Cesium3DTileset#foveatedMinimumScreenSpaceErrorRelaxation}. Setting this to 0.0 means the cone will be the line formed by the camera position and its view direction. Setting this to 1.0 means the cone encompasses the entire field of view of the camera, disabling the effect.
|
|
@@ -28683,11 +28769,13 @@ export namespace Cesium3DTileset {
|
|
|
28683
28769
|
* @property [instanceFeatureIdLabel = "instanceFeatureId_0"] - Label of the instance feature ID set used for picking and styling. If instanceFeatureIdLabel is set to an integer N, it is converted to the string "instanceFeatureId_N" automatically. If both per-primitive and per-instance feature IDs are present, the instance feature IDs take priority.
|
|
28684
28770
|
* @property [showCreditsOnScreen = false] - Whether to display the credits of this tileset on screen.
|
|
28685
28771
|
* @property [splitDirection = SplitDirection.NONE] - The {@link SplitDirection} split to apply to this tileset.
|
|
28686
|
-
* @property [
|
|
28772
|
+
* @property [disableCollision = false] - Whether to turn off collisions for camera collisions or picking. While this is <code>true</code> the camera will be allowed to go in or below the tileset surface if {@link ScreenSpaceCameraController#enableCollisionDetection} is true.
|
|
28773
|
+
* @property [projectTo2D = false] - Whether to accurately project the tileset to 2D. If this is true, the tileset will be projected accurately to 2D, but it will use more memory to do so. If this is false, the tileset will use less memory and will still render in 2D / CV mode, but its projected positions may be inaccurate. This cannot be set after the tileset has been created.
|
|
28774
|
+
* @property [enablePick = false] - Whether to allow collision and CPU picking with <code>pick</code> when using WebGL 1. If using WebGL 2 or above, this option will be ignored. If using WebGL 1 and this is true, the <code>pick</code> operation will work correctly, but it will use more memory to do so. If running with WebGL 1 and this is false, the model will use less memory, but <code>pick</code> will always return <code>undefined</code>. This cannot be set after the tileset has loaded.
|
|
28687
28775
|
* @property [debugHeatmapTilePropertyName] - The tile variable to colorize as a heatmap. All rendered tiles will be colorized relative to each other's specified variable value.
|
|
28688
28776
|
* @property [debugFreezeFrame = false] - For debugging only. Determines if only the tiles from last frame should be used for rendering.
|
|
28689
28777
|
* @property [debugColorizeTiles = false] - For debugging only. When true, assigns a random color to each tile.
|
|
28690
|
-
* @property [enableDebugWireframe] - For debugging only. This must be true for debugWireframe to work in WebGL1. This cannot be set after the tileset has
|
|
28778
|
+
* @property [enableDebugWireframe = false] - For debugging only. This must be true for debugWireframe to work in WebGL1. This cannot be set after the tileset has been created.
|
|
28691
28779
|
* @property [debugWireframe = false] - For debugging only. When true, render's each tile's content as a wireframe.
|
|
28692
28780
|
* @property [debugShowBoundingVolume = false] - For debugging only. When true, renders the bounding volume for each tile.
|
|
28693
28781
|
* @property [debugShowContentBoundingVolume = false] - For debugging only. When true, renders the bounding volume for each tile's content.
|
|
@@ -28744,7 +28832,9 @@ export namespace Cesium3DTileset {
|
|
|
28744
28832
|
instanceFeatureIdLabel?: string | number;
|
|
28745
28833
|
showCreditsOnScreen?: boolean;
|
|
28746
28834
|
splitDirection?: SplitDirection;
|
|
28835
|
+
disableCollision?: boolean;
|
|
28747
28836
|
projectTo2D?: boolean;
|
|
28837
|
+
enablePick?: boolean;
|
|
28748
28838
|
debugHeatmapTilePropertyName?: string;
|
|
28749
28839
|
debugFreezeFrame?: boolean;
|
|
28750
28840
|
debugColorizeTiles?: boolean;
|
|
@@ -28785,6 +28875,17 @@ export namespace Cesium3DTileset {
|
|
|
28785
28875
|
* console.error(`Error creating tileset: ${error}`);
|
|
28786
28876
|
* }
|
|
28787
28877
|
* @example
|
|
28878
|
+
* // Allow camera to go inside and under 3D tileset
|
|
28879
|
+
* try {
|
|
28880
|
+
* const tileset = await Cesium.Cesium3DTileset.fromUrl(
|
|
28881
|
+
* "http://localhost:8002/tilesets/Seattle/tileset.json",
|
|
28882
|
+
* { disableCollision: true }
|
|
28883
|
+
* );
|
|
28884
|
+
* scene.primitives.add(tileset);
|
|
28885
|
+
* } catch (error) {
|
|
28886
|
+
* console.error(`Error creating tileset: ${error}`);
|
|
28887
|
+
* }
|
|
28888
|
+
* @example
|
|
28788
28889
|
* // Common setting for the skipLevelOfDetail optimization
|
|
28789
28890
|
* const tileset = await Cesium.Cesium3DTileset.fromUrl(
|
|
28790
28891
|
* "http://localhost:8002/tilesets/Seattle/tileset.json", {
|
|
@@ -28802,8 +28903,8 @@ export namespace Cesium3DTileset {
|
|
|
28802
28903
|
* const tileset = await Cesium.Cesium3DTileset.fromUrl(
|
|
28803
28904
|
* "http://localhost:8002/tilesets/Seattle/tileset.json", {
|
|
28804
28905
|
* dynamicScreenSpaceError: true,
|
|
28805
|
-
* dynamicScreenSpaceErrorDensity:
|
|
28806
|
-
* dynamicScreenSpaceErrorFactor:
|
|
28906
|
+
* dynamicScreenSpaceErrorDensity: 2.0e-4,
|
|
28907
|
+
* dynamicScreenSpaceErrorFactor: 24.0,
|
|
28807
28908
|
* dynamicScreenSpaceErrorHeightFalloff: 0.25
|
|
28808
28909
|
* });
|
|
28809
28910
|
* scene.primitives.add(tileset);
|
|
@@ -28836,11 +28937,11 @@ export class Cesium3DTileset {
|
|
|
28836
28937
|
*/
|
|
28837
28938
|
preloadFlightDestinations: boolean;
|
|
28838
28939
|
/**
|
|
28839
|
-
* Optimization option.
|
|
28840
|
-
*
|
|
28841
|
-
*
|
|
28842
|
-
*
|
|
28843
|
-
*
|
|
28940
|
+
* Optimization option. For street-level horizon views, use lower resolution tiles far from the camera. This reduces
|
|
28941
|
+
* the amount of data loaded and improves tileset loading time with a slight drop in visual quality in the distance.
|
|
28942
|
+
* <p>
|
|
28943
|
+
* This optimization is strongest when the camera is close to the ground plane of the tileset and looking at the
|
|
28944
|
+
* horizon. Furthermore, the results are more accurate for tightly fitting bounding volumes like box and region.
|
|
28844
28945
|
*/
|
|
28845
28946
|
dynamicScreenSpaceError: boolean;
|
|
28846
28947
|
/**
|
|
@@ -28862,33 +28963,43 @@ export class Cesium3DTileset {
|
|
|
28862
28963
|
*/
|
|
28863
28964
|
foveatedTimeDelay: number;
|
|
28864
28965
|
/**
|
|
28865
|
-
*
|
|
28866
|
-
*
|
|
28867
|
-
*
|
|
28868
|
-
* This has the effect of keeping high detail in the closer tiles and lower detail in the further tiles, with all tiles
|
|
28869
|
-
* beyond a certain distance all roughly having an error of 1.0.
|
|
28966
|
+
* Similar to {@link Fog#density}, this option controls the camera distance at which the {@link Cesium3DTileset#dynamicScreenSpaceError}
|
|
28967
|
+
* optimization applies. Larger values will cause tiles closer to the camera to be affected. This value must be
|
|
28968
|
+
* non-negative.
|
|
28870
28969
|
* <p>
|
|
28871
|
-
*
|
|
28872
|
-
*
|
|
28970
|
+
* This optimization works by rolling off the tile screen space error (SSE) with camera distance like a bell curve.
|
|
28971
|
+
* This has the effect of selecting lower resolution tiles far from the camera. Near the camera, no adjustment is
|
|
28972
|
+
* made. For tiles further away, the SSE is reduced by up to {@link Cesium3DTileset#dynamicScreenSpaceErrorFactor}
|
|
28973
|
+
* (measured in pixels of error).
|
|
28873
28974
|
* </p>
|
|
28874
28975
|
* <p>
|
|
28875
|
-
* Increasing
|
|
28876
|
-
*
|
|
28976
|
+
* Increasing the density makes the bell curve narrower so tiles closer to the camera are affected. This is analagous
|
|
28977
|
+
* to moving fog closer to the camera.
|
|
28978
|
+
* </p>
|
|
28979
|
+
* <p>
|
|
28980
|
+
* When the density is 0, the optimization will have no effect on the tileset.
|
|
28877
28981
|
* </p>
|
|
28878
28982
|
*/
|
|
28879
28983
|
dynamicScreenSpaceErrorDensity: number;
|
|
28880
28984
|
/**
|
|
28881
|
-
* A
|
|
28882
|
-
*
|
|
28985
|
+
* A parameter that controls the intensity of the {@link Cesium3DTileset#dynamicScreenSpaceError} optimization for
|
|
28986
|
+
* tiles on the horizon. Larger values cause lower resolution tiles to load, improving runtime performance at a slight
|
|
28987
|
+
* reduction of visual quality. The value must be non-negative.
|
|
28988
|
+
* <p>
|
|
28989
|
+
* More specifically, this parameter represents the maximum adjustment to screen space error (SSE) in pixels for tiles
|
|
28990
|
+
* far away from the camera. See {@link Cesium3DTileset#dynamicScreenSpaceErrorDensity} for more details about how
|
|
28991
|
+
* this optimization works.
|
|
28992
|
+
* </p>
|
|
28993
|
+
* <p>
|
|
28994
|
+
* When the SSE factor is set to 0, the optimization will have no effect on the tileset.
|
|
28995
|
+
* </p>
|
|
28883
28996
|
*/
|
|
28884
28997
|
dynamicScreenSpaceErrorFactor: number;
|
|
28885
28998
|
/**
|
|
28886
|
-
* A ratio of the tileset's height
|
|
28887
|
-
*
|
|
28888
|
-
*
|
|
28999
|
+
* A ratio of the tileset's height that determines "street level" for the {@link Cesium3DTileset#dynamicScreenSpaceError}
|
|
29000
|
+
* optimization. When the camera is below this height, the dynamic screen space error optimization will have the maximum
|
|
29001
|
+
* effect, and it will roll off above this value. Valid values are between 0.0 and 1.0.
|
|
28889
29002
|
* <p>
|
|
28890
|
-
* Valid values are between 0.0 and 1.0.
|
|
28891
|
-
* </p>
|
|
28892
29003
|
*/
|
|
28893
29004
|
dynamicScreenSpaceErrorHeightFalloff: number;
|
|
28894
29005
|
/**
|
|
@@ -29124,6 +29235,10 @@ export class Cesium3DTileset {
|
|
|
29124
29235
|
* The {@link SplitDirection} to apply to this tileset.
|
|
29125
29236
|
*/
|
|
29126
29237
|
splitDirection: SplitDirection;
|
|
29238
|
+
/**
|
|
29239
|
+
* Whether to turn off collisions for camera collisions or picking. While this is <code>true</code> the camera will be allowed to go in or below the tileset surface if {@link ScreenSpaceCameraController#enableCollisionDetection} is true.
|
|
29240
|
+
*/
|
|
29241
|
+
disableCollision: boolean;
|
|
29127
29242
|
/**
|
|
29128
29243
|
* This property is for debugging only; it is not optimized for production use.
|
|
29129
29244
|
* <p>
|
|
@@ -29392,6 +29507,7 @@ export class Cesium3DTileset {
|
|
|
29392
29507
|
* <li>The glTF cannot contain morph targets, skins, or animations.</li>
|
|
29393
29508
|
* <li>The glTF cannot contain the <code>EXT_mesh_gpu_instancing</code> extension.</li>
|
|
29394
29509
|
* <li>Only meshes with TRIANGLES can be used to classify other assets.</li>
|
|
29510
|
+
* <li>The meshes must be watertight.</li>
|
|
29395
29511
|
* <li>The <code>POSITION</code> semantic is required.</li>
|
|
29396
29512
|
* <li>If <code>_BATCHID</code>s and an index buffer are both present, all indices with the same batch id must occupy contiguous sections of the index buffer.</li>
|
|
29397
29513
|
* <li>If <code>_BATCHID</code>s are present with no index buffer, all positions with the same batch id must occupy contiguous sections of the position buffer.</li>
|
|
@@ -29401,6 +29517,9 @@ export class Cesium3DTileset {
|
|
|
29401
29517
|
* Additionally, classification is not supported for points or instanced 3D
|
|
29402
29518
|
* models.
|
|
29403
29519
|
* </p>
|
|
29520
|
+
* <p>
|
|
29521
|
+
* The 3D Tiles or terrain receiving the classification must be opaque.
|
|
29522
|
+
* </p>
|
|
29404
29523
|
*/
|
|
29405
29524
|
readonly classificationType: ClassificationType;
|
|
29406
29525
|
/**
|
|
@@ -29513,8 +29632,8 @@ export class Cesium3DTileset {
|
|
|
29513
29632
|
* const tileset = await Cesium.Cesium3DTileset.fromUrl(
|
|
29514
29633
|
* "http://localhost:8002/tilesets/Seattle/tileset.json", {
|
|
29515
29634
|
* dynamicScreenSpaceError: true,
|
|
29516
|
-
* dynamicScreenSpaceErrorDensity:
|
|
29517
|
-
* dynamicScreenSpaceErrorFactor:
|
|
29635
|
+
* dynamicScreenSpaceErrorDensity: 2.0e-4,
|
|
29636
|
+
* dynamicScreenSpaceErrorFactor: 24.0,
|
|
29518
29637
|
* dynamicScreenSpaceErrorHeightFalloff: 0.25
|
|
29519
29638
|
* });
|
|
29520
29639
|
* scene.primitives.add(tileset);
|
|
@@ -29569,6 +29688,18 @@ export class Cesium3DTileset {
|
|
|
29569
29688
|
* tileset = tileset && tileset.destroy();
|
|
29570
29689
|
*/
|
|
29571
29690
|
destroy(): void;
|
|
29691
|
+
/**
|
|
29692
|
+
* Get the height of the loaded surface at a given cartographic. This function will only take into account meshes for loaded tiles, not neccisarily the most detailed tiles available for a tileset. This function will always return undefined when sampling a point cloud.
|
|
29693
|
+
* @example
|
|
29694
|
+
* const tileset = await Cesium.Cesium3DTileset.fromIonAssetId(124624234);
|
|
29695
|
+
* scene.primitives.add(tileset);
|
|
29696
|
+
*
|
|
29697
|
+
* const height = tileset.getHeight(scene.camera.positionCartographic, scene);
|
|
29698
|
+
* @param cartographic - The cartographic for which to find the height.
|
|
29699
|
+
* @param scene - The scene where visualization is taking place.
|
|
29700
|
+
* @returns The height of the cartographic or undefined if it could not be found.
|
|
29701
|
+
*/
|
|
29702
|
+
getHeight(cartographic: Cartographic, scene: Scene): number | undefined;
|
|
29572
29703
|
}
|
|
29573
29704
|
|
|
29574
29705
|
/**
|
|
@@ -30802,6 +30933,28 @@ export class DiscardMissingTileImagePolicy {
|
|
|
30802
30933
|
shouldDiscardImage(image: HTMLImageElement): boolean;
|
|
30803
30934
|
}
|
|
30804
30935
|
|
|
30936
|
+
/**
|
|
30937
|
+
* Atmosphere lighting effects (sky atmosphere, ground atmosphere, fog) can be
|
|
30938
|
+
* further modified with dynamic lighting from the sun or other light source
|
|
30939
|
+
* that changes over time. This enum determines which light source to use.
|
|
30940
|
+
*/
|
|
30941
|
+
export enum DynamicAtmosphereLightingType {
|
|
30942
|
+
/**
|
|
30943
|
+
* Do not use dynamic atmosphere lighting. Atmosphere lighting effects will
|
|
30944
|
+
* be lit from directly above rather than using the scene's light source.
|
|
30945
|
+
*/
|
|
30946
|
+
NONE = 0,
|
|
30947
|
+
/**
|
|
30948
|
+
* Use the scene's current light source for dynamic atmosphere lighting.
|
|
30949
|
+
*/
|
|
30950
|
+
SCENE_LIGHT = 1,
|
|
30951
|
+
/**
|
|
30952
|
+
* Force the dynamic atmosphere lighting to always use the sunlight direction,
|
|
30953
|
+
* even if the scene uses a different light source.
|
|
30954
|
+
*/
|
|
30955
|
+
SUNLIGHT = 2
|
|
30956
|
+
}
|
|
30957
|
+
|
|
30805
30958
|
/**
|
|
30806
30959
|
* An appearance for geometry on the surface of the ellipsoid like {@link PolygonGeometry}
|
|
30807
30960
|
* and {@link RectangleGeometry}, which supports all materials like {@link MaterialAppearance}
|
|
@@ -32411,13 +32564,29 @@ export enum HeightReference {
|
|
|
32411
32564
|
*/
|
|
32412
32565
|
NONE = 0,
|
|
32413
32566
|
/**
|
|
32414
|
-
* The position is clamped to the terrain.
|
|
32567
|
+
* The position is clamped to the terrain and 3D Tiles.
|
|
32415
32568
|
*/
|
|
32416
32569
|
CLAMP_TO_GROUND = 1,
|
|
32417
32570
|
/**
|
|
32418
|
-
* The position height is the height above the terrain.
|
|
32571
|
+
* The position height is the height above the terrain and 3D Tiles.
|
|
32572
|
+
*/
|
|
32573
|
+
RELATIVE_TO_GROUND = 2,
|
|
32574
|
+
/**
|
|
32575
|
+
* The position is clamped to terain.
|
|
32419
32576
|
*/
|
|
32420
|
-
|
|
32577
|
+
CLAMP_TO_TERRAIN = 3,
|
|
32578
|
+
/**
|
|
32579
|
+
* The position height is the height above terrain.
|
|
32580
|
+
*/
|
|
32581
|
+
RELATIVE_TO_TERRAIN = 4,
|
|
32582
|
+
/**
|
|
32583
|
+
* The position is clamped to 3D Tiles.
|
|
32584
|
+
*/
|
|
32585
|
+
CLAMP_TO_3D_TILE = 5,
|
|
32586
|
+
/**
|
|
32587
|
+
* The position height is the height above 3D Tiles.
|
|
32588
|
+
*/
|
|
32589
|
+
RELATIVE_TO_3D_TILE = 6
|
|
32421
32590
|
}
|
|
32422
32591
|
|
|
32423
32592
|
/**
|
|
@@ -35914,11 +36083,15 @@ export class Model {
|
|
|
35914
36083
|
* <li>The glTF cannot contain morph targets, skins, or animations.</li>
|
|
35915
36084
|
* <li>The glTF cannot contain the <code>EXT_mesh_gpu_instancing</code> extension.</li>
|
|
35916
36085
|
* <li>Only meshes with TRIANGLES can be used to classify other assets.</li>
|
|
35917
|
-
* <li>The
|
|
36086
|
+
* <li>The meshes must be watertight.</li>
|
|
36087
|
+
* <li>The POSITION attribute is required.</li>
|
|
35918
36088
|
* <li>If feature IDs and an index buffer are both present, all indices with the same feature id must occupy contiguous sections of the index buffer.</li>
|
|
35919
36089
|
* <li>If feature IDs are present without an index buffer, all positions with the same feature id must occupy contiguous sections of the position buffer.</li>
|
|
35920
36090
|
* </ul>
|
|
35921
36091
|
* </p>
|
|
36092
|
+
* <p>
|
|
36093
|
+
* The 3D Tiles or terrain receiving the classification must be opaque.
|
|
36094
|
+
* </p>
|
|
35922
36095
|
*/
|
|
35923
36096
|
readonly classificationType: ClassificationType;
|
|
35924
36097
|
/**
|
|
@@ -36090,6 +36263,7 @@ export class Model {
|
|
|
36090
36263
|
* @param [options.showCreditsOnScreen = false] - Whether to display the credits of this model on screen.
|
|
36091
36264
|
* @param [options.splitDirection = SplitDirection.NONE] - The {@link SplitDirection} split to apply to this model.
|
|
36092
36265
|
* @param [options.projectTo2D = false] - Whether to accurately project the model's positions in 2D. If this is true, the model will be projected accurately to 2D, but it will use more memory to do so. If this is false, the model will use less memory and will still render in 2D / CV mode, but its positions may be inaccurate. This disables minimumPixelSize and prevents future modification to the model matrix. This also cannot be set after the model has loaded.
|
|
36266
|
+
* @param [options.enablePick = false] - Whether to allow with CPU picking with <code>pick</code> when not using WebGL 2 or above. If using WebGL 2 or above, this option will be ignored. If using WebGL 1 and this is true, the <code>pick</code> operation will work correctly, but it will use more memory to do so. If running with WebGL 1 and this is false, the model will use less memory, but <code>pick</code> will always return <code>undefined</code>. This cannot be set after the model has loaded.
|
|
36093
36267
|
* @param [options.featureIdLabel = "featureId_0"] - Label of the feature ID set to use for picking and styling. For EXT_mesh_features, this is the feature ID's label property, or "featureId_N" (where N is the index in the featureIds array) when not specified. EXT_feature_metadata did not have a label field, so such feature ID sets are always labeled "featureId_N" where N is the index in the list of all feature Ids, where feature ID attributes are listed before feature ID textures. If featureIdLabel is an integer N, it is converted to the string "featureId_N" automatically. If both per-primitive and per-instance feature IDs are present, the instance feature IDs take priority.
|
|
36094
36268
|
* @param [options.instanceFeatureIdLabel = "instanceFeatureId_0"] - Label of the instance feature ID set used for picking and styling. If instanceFeatureIdLabel is set to an integer N, it is converted to the string "instanceFeatureId_N" automatically. If both per-primitive and per-instance feature IDs are present, the instance feature IDs take priority.
|
|
36095
36269
|
* @param [options.pointCloudShading] - Options for constructing a {@link PointCloudShading} object to control point attenuation and lighting.
|
|
@@ -36140,6 +36314,7 @@ export class Model {
|
|
|
36140
36314
|
showCreditsOnScreen?: boolean;
|
|
36141
36315
|
splitDirection?: SplitDirection;
|
|
36142
36316
|
projectTo2D?: boolean;
|
|
36317
|
+
enablePick?: boolean;
|
|
36143
36318
|
featureIdLabel?: string | number;
|
|
36144
36319
|
instanceFeatureIdLabel?: string | number;
|
|
36145
36320
|
pointCloudShading?: any;
|
|
@@ -39360,6 +39535,11 @@ export class Scene {
|
|
|
39360
39535
|
* }, Cesium.ScreenSpaceEventType.LEFT_CLICK);
|
|
39361
39536
|
*/
|
|
39362
39537
|
pickTranslucentDepth: boolean;
|
|
39538
|
+
/**
|
|
39539
|
+
* Settings for atmosphere lighting effects affecting 3D Tiles and model rendering. This is not to be confused with
|
|
39540
|
+
* {@link Scene#skyAtmosphere} which is responsible for rendering the sky.
|
|
39541
|
+
*/
|
|
39542
|
+
atmosphere: Atmosphere;
|
|
39363
39543
|
/**
|
|
39364
39544
|
* Blends the atmosphere to geometry far from the camera for horizon views. Allows for additional
|
|
39365
39545
|
* performance improvements by rendering less geometry and dispatching less terrain requests.
|
|
@@ -40714,6 +40894,44 @@ export class Terrain {
|
|
|
40714
40894
|
requestVertexNormals?: boolean;
|
|
40715
40895
|
requestWaterMask?: boolean;
|
|
40716
40896
|
}): Terrain;
|
|
40897
|
+
/**
|
|
40898
|
+
* Creates a {@link Terrain} instance for {@link https://cesium.com/content/#cesium-world-bathymetry|Cesium World Bathymetry}.
|
|
40899
|
+
* @example
|
|
40900
|
+
* // Create Cesium World Bathymetry with default settings
|
|
40901
|
+
* const viewer = new Cesium.Viewer("cesiumContainer", {
|
|
40902
|
+
* terrain: Cesium.Terrain.fromWorldBathymetry)
|
|
40903
|
+
* });
|
|
40904
|
+
* @example
|
|
40905
|
+
* // Create Cesium World Terrain with normals.
|
|
40906
|
+
* const viewer1 = new Cesium.Viewer("cesiumContainer", {
|
|
40907
|
+
* terrain: Cesium.Terrain.fromWorldBathymetry({
|
|
40908
|
+
* requestVertexNormals: true
|
|
40909
|
+
* });
|
|
40910
|
+
* });
|
|
40911
|
+
* @example
|
|
40912
|
+
* // Handle loading events
|
|
40913
|
+
* const bathymetry = Cesium.Terrain.fromWorldBathymetry();
|
|
40914
|
+
*
|
|
40915
|
+
* scene.setTerrain(bathymetry);
|
|
40916
|
+
*
|
|
40917
|
+
* bathymetry.readyEvent.addEventListener(provider => {
|
|
40918
|
+
* scene.globe.enableLighting = true;
|
|
40919
|
+
*
|
|
40920
|
+
* bathymetry.provider.errorEvent.addEventListener(error => {
|
|
40921
|
+
* alert(`Encountered an error while loading bathymetric terrain tiles! ${error}`);
|
|
40922
|
+
* });
|
|
40923
|
+
* });
|
|
40924
|
+
*
|
|
40925
|
+
* bathymetry.errorEvent.addEventListener(error => {
|
|
40926
|
+
* alert(`Encountered an error while creating bathymetric terrain! ${error}`);
|
|
40927
|
+
* });
|
|
40928
|
+
* @param [options] - Object with the following properties:
|
|
40929
|
+
* @param [options.requestVertexNormals = false] - Flag that indicates if the client should request additional lighting information from the server if available.
|
|
40930
|
+
* @returns An asynchronous helper object for a CesiumTerrainProvider
|
|
40931
|
+
*/
|
|
40932
|
+
static fromWorldBathymetry(options?: {
|
|
40933
|
+
requestVertexNormals?: boolean;
|
|
40934
|
+
}): Terrain;
|
|
40717
40935
|
}
|
|
40718
40936
|
|
|
40719
40937
|
export namespace TileCoordinatesImageryProvider {
|