@cesium/engine 6.1.1 → 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-FRG2Z7DE.js → chunk-2HJWSU7B.js} +4 -4
- package/Build/Workers/{chunk-ZTYE74E2.js → chunk-46UD5ABS.js} +4 -4
- package/Build/Workers/{chunk-VODWDCX6.js → chunk-4EBHOMFX.js} +18 -20
- package/Build/Workers/{chunk-N7TYCDTR.js → chunk-5HDYHG3F.js} +13 -13
- package/Build/Workers/{chunk-C53JYYKX.js → chunk-5M3U6ZMA.js} +1 -1
- package/Build/Workers/{chunk-GTEXWEAP.js → chunk-5WQ523AW.js} +5 -5
- package/Build/Workers/{chunk-SEFDWMCW.js → chunk-5YLJ77FF.js} +31 -21
- package/Build/Workers/{chunk-VNRUVNIK.js → chunk-6HZQPRUS.js} +1 -1
- package/Build/Workers/{chunk-PB7BIXHI.js → chunk-6VJVYK2V.js} +2 -2
- package/Build/Workers/{chunk-PHQVHDVI.js → chunk-72SANQJV.js} +325 -5
- package/Build/Workers/{chunk-D325WRAY.js → chunk-7XEAYGZK.js} +35 -11
- package/Build/Workers/{chunk-FGUP2QEP.js → chunk-AIPU2VSX.js} +6 -6
- package/Build/Workers/{chunk-QUXSQQEF.js → chunk-AR5DNBJ4.js} +6 -6
- package/Build/Workers/{chunk-ZVUAJKAL.js → chunk-BZP4T2JJ.js} +11 -13
- package/Build/Workers/{chunk-K6Q5IRBK.js → chunk-DTAIXKTO.js} +6 -6
- package/Build/Workers/{chunk-D4YHO4NZ.js → chunk-F6SE42BK.js} +133 -101
- package/Build/Workers/{chunk-QY2WY5XJ.js → chunk-FP6GYBFX.js} +11 -11
- package/Build/Workers/{chunk-Z6LPXA7S.js → chunk-GEJTYLCO.js} +5 -5
- package/Build/Workers/{chunk-VKTKOIYG.js → chunk-GV56Q4LU.js} +11 -11
- package/Build/Workers/{chunk-KUB2HQXR.js → chunk-IQBYFRVW.js} +8 -8
- package/Build/Workers/{chunk-235MRXLH.js → chunk-IX2JCCNM.js} +1 -1
- package/Build/Workers/{chunk-3FCUUN6M.js → chunk-JCNXK6EL.js} +11 -11
- package/Build/Workers/{chunk-364TQORK.js → chunk-JJ4VBOQ3.js} +5 -7
- package/Build/Workers/{chunk-66CXKODF.js → chunk-JXDC723O.js} +2 -2
- package/Build/Workers/{chunk-OTBRPBCC.js → chunk-JY5YEZFA.js} +9 -9
- package/Build/Workers/{chunk-LSGUCCKJ.js → chunk-L2ZN645J.js} +6 -6
- package/Build/Workers/{chunk-VLDDXYKI.js → chunk-LZ7JIV3K.js} +18 -18
- package/Build/Workers/{chunk-36ESDRIZ.js → chunk-LZGHD6NY.js} +16 -16
- package/Build/Workers/{chunk-PXLFBN2Q.js → chunk-MY3VNFGQ.js} +7 -7
- package/Build/Workers/{chunk-W7F5VTH6.js → chunk-NKPBIX7F.js} +1 -1
- package/Build/Workers/{chunk-XBZSOW3F.js → chunk-NY3K4IM3.js} +12 -12
- package/Build/Workers/{chunk-AI3KSNM6.js → chunk-ODW7WYM4.js} +2 -2
- package/Build/Workers/{chunk-6PWSSCRA.js → chunk-OVLG3FRS.js} +6 -6
- package/Build/Workers/{chunk-MOLGJDJV.js → chunk-PNBGBETF.js} +11 -11
- package/Build/Workers/{chunk-T73B27DG.js → chunk-PTQQUQC3.js} +13 -13
- package/Build/Workers/{chunk-RSWBNJPT.js → chunk-QZAD5O7I.js} +8 -304
- package/Build/Workers/{chunk-I6TVJ6T7.js → chunk-R5X4OQT4.js} +8 -8
- package/Build/Workers/{chunk-DTNN3ODA.js → chunk-RAEV7K66.js} +5 -5
- package/Build/Workers/{chunk-IZED7ODV.js → chunk-RV7ZYPFT.js} +4 -4
- package/Build/Workers/{chunk-7FEGZO3D.js → chunk-S4MAZ3SS.js} +2 -2
- package/Build/Workers/{chunk-J3U6Z5YQ.js → chunk-S6SKF6DT.js} +5 -5
- package/Build/Workers/{chunk-CHDJ66UM.js → chunk-U2VCRRQW.js} +6 -6
- package/Build/Workers/{chunk-R22RQAAM.js → chunk-UAEW6HKG.js} +13 -13
- package/Build/Workers/{chunk-S7IBK36I.js → chunk-UDO6BFSF.js} +14 -16
- package/Build/Workers/{chunk-YS4KPNLC.js → chunk-UGK3FCDY.js} +1 -1
- package/Build/Workers/{chunk-SJDXMQSP.js → chunk-VK3EJHWI.js} +2 -2
- package/Build/Workers/{chunk-HEROVJML.js → chunk-VRGFV2UO.js} +7 -7
- package/Build/Workers/{chunk-VOAZN4IP.js → chunk-WBQCVXR3.js} +4 -4
- package/Build/Workers/{chunk-HSW63JN4.js → chunk-WZU2YLWG.js} +3 -3
- package/Build/Workers/{chunk-4EYB62WJ.js → chunk-XWXM2O2R.js} +6 -6
- package/Build/Workers/{chunk-ZGMOBRTG.js → chunk-YUCVWAY6.js} +7 -7
- package/Build/Workers/{chunk-CLVEIRXT.js → chunk-ZK5JOS3D.js} +15 -17
- package/Build/Workers/{chunk-5NZTU5YL.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 +33 -34
- 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 +18 -19
- 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 +22 -22
- package/Build/Workers/createPlaneGeometry.js +15 -15
- package/Build/Workers/createPlaneOutlineGeometry.js +14 -14
- package/Build/Workers/createPolygonGeometry.js +32 -167
- package/Build/Workers/createPolygonOutlineGeometry.js +29 -29
- package/Build/Workers/createPolylineGeometry.js +24 -24
- package/Build/Workers/createPolylineVolumeGeometry.js +32 -35
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +27 -29
- package/Build/Workers/createRectangleGeometry.js +27 -27
- package/Build/Workers/createRectangleOutlineGeometry.js +21 -23
- 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 +22 -22
- package/Build/Workers/createVerticesFromHeightmap.js +22 -22
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +19 -19
- 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 +22 -22
- package/LICENSE.md +1 -1
- package/Source/Assets/approximateTerrainHeights.json +1 -1
- package/Source/Core/Ellipsoid.js +45 -0
- 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/Quaternion.js +6 -2
- package/Source/Core/RectangleOutlineGeometry.js +2 -4
- package/Source/Core/RequestScheduler.js +3 -9
- package/Source/Core/Resource.js +30 -69
- package/Source/Core/TerrainEncoding.js +2 -2
- package/Source/Core/Transforms.js +27 -18
- package/Source/Core/VerticalExaggeration.js +69 -0
- 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 +173 -0
- package/Source/Renderer/UniformState.js +246 -1
- 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 +123 -10
- 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 +13 -5
- package/Source/Scene/Geometry3DTileContent.js +4 -0
- package/Source/Scene/Globe.js +69 -21
- package/Source/Scene/GlobeSurfaceTile.js +4 -4
- package/Source/Scene/GlobeSurfaceTileProvider.js +24 -22
- package/Source/Scene/GltfLoader.js +15 -5
- package/Source/Scene/GroundPrimitive.js +5 -5
- package/Source/Scene/HeightReference.js +59 -2
- package/Source/Scene/ImageryLayer.js +3 -3
- package/Source/Scene/Implicit3DTileContent.js +4 -0
- package/Source/Scene/LabelCollection.js +2 -2
- package/Source/Scene/MapboxImageryProvider.js +2 -2
- package/Source/Scene/Megatexture.js +1 -1
- 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 +93 -32
- package/Source/Scene/Model/Model3DTileContent.js +31 -0
- package/Source/Scene/Model/ModelAnimationChannel.js +16 -15
- package/Source/Scene/Model/ModelRuntimePrimitive.js +6 -0
- package/Source/Scene/Model/ModelSceneGraph.js +6 -0
- package/Source/Scene/Model/VerticalExaggerationPipelineStage.js +60 -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 +226 -19
- package/Source/Scene/ScreenSpaceCameraController.js +14 -25
- package/Source/Scene/SkyAtmosphere.js +5 -6
- package/Source/Scene/Terrain.js +49 -0
- package/Source/Scene/TerrainFillMesh.js +2 -2
- package/Source/Scene/TileBoundingS2Cell.js +2 -2
- package/Source/Scene/TileOrientedBoundingBox.js +1 -1
- package/Source/Scene/Tileset3DTileContent.js +4 -0
- package/Source/Scene/Vector3DTileContent.js +4 -0
- package/Source/Scene/VoxelPrimitive.js +73 -2
- 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 +4 -4
- package/Source/Shaders/GlobeVS.js +4 -4
- 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 +13 -4
- package/Source/Shaders/Model/ModelVS.js +13 -4
- package/Source/Shaders/Model/VerticalExaggerationStageVS.glsl +39 -0
- package/Source/Shaders/Model/VerticalExaggerationStageVS.js +41 -0
- 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 +318 -83
- package/index.js +77 -62
- package/package.json +3 -3
- package/Build/Workers/chunk-7ONRI7T4.js +0 -55
- package/Source/Core/TerrainExaggeration.js +0 -49
package/index.d.ts
CHANGED
|
@@ -5818,6 +5818,13 @@ export class Ellipsoid {
|
|
|
5818
5818
|
* @returns the intersection point if it's inside the ellipsoid, undefined otherwise
|
|
5819
5819
|
*/
|
|
5820
5820
|
getSurfaceNormalIntersectionWithZAxis(position: Cartesian3, buffer?: number, result?: Cartesian3): Cartesian3 | undefined;
|
|
5821
|
+
/**
|
|
5822
|
+
* Computes the ellipsoid curvatures at a given position on the surface.
|
|
5823
|
+
* @param surfacePosition - The position on the ellipsoid surface where curvatures will be calculated.
|
|
5824
|
+
* @param [result] - The cartesian to which to copy the result, or undefined to create and return a new instance.
|
|
5825
|
+
* @returns The local curvature of the ellipsoid surface at the provided position, in east and north directions.
|
|
5826
|
+
*/
|
|
5827
|
+
getLocalCurvature(surfacePosition: Cartesian3, result?: Cartesian2): Cartesian2;
|
|
5821
5828
|
/**
|
|
5822
5829
|
* Computes an approximation of the surface area of a rectangle on the surface of an ellipsoid using
|
|
5823
5830
|
* Gauss-Legendre 10th order quadrature.
|
|
@@ -7694,7 +7701,7 @@ export class GroundPolylineGeometry {
|
|
|
7694
7701
|
|
|
7695
7702
|
/**
|
|
7696
7703
|
* Defines a heading angle, pitch angle, and range in a local frame.
|
|
7697
|
-
* Heading is the rotation from the local
|
|
7704
|
+
* Heading is the rotation from the local east direction where a positive angle is increasing southward.
|
|
7698
7705
|
* Pitch is the rotation from the local xy-plane. Positive pitch angles are above the plane. Negative pitch
|
|
7699
7706
|
* angles are below the plane. Range is the distance from the center of the frame.
|
|
7700
7707
|
* @param [heading = 0.0] - The heading angle in radians.
|
|
@@ -7704,7 +7711,7 @@ export class GroundPolylineGeometry {
|
|
|
7704
7711
|
export class HeadingPitchRange {
|
|
7705
7712
|
constructor(heading?: number, pitch?: number, range?: number);
|
|
7706
7713
|
/**
|
|
7707
|
-
* Heading is the rotation from the local
|
|
7714
|
+
* Heading is the rotation from the local east direction where a positive angle is increasing southward.
|
|
7708
7715
|
*/
|
|
7709
7716
|
heading: number;
|
|
7710
7717
|
/**
|
|
@@ -12882,22 +12889,6 @@ export class PolygonGeometry {
|
|
|
12882
12889
|
* @returns The result rectangle
|
|
12883
12890
|
*/
|
|
12884
12891
|
static computeRectangleFromPositions(positions: Cartesian3[], ellipsoid?: Ellipsoid, arcType?: ArcType, result?: Rectangle): Rectangle;
|
|
12885
|
-
/**
|
|
12886
|
-
* Returns the bounding rectangle given the provided options
|
|
12887
|
-
* @param options - Object with the following properties:
|
|
12888
|
-
* @param options.polygonHierarchy - A polygon hierarchy that can include holes.
|
|
12889
|
-
* @param [options.granularity = Math.RADIANS_PER_DEGREE] - The distance, in radians, between each latitude and longitude. Determines the number of positions sampled.
|
|
12890
|
-
* @param [options.arcType = ArcType.GEODESIC] - The type of line the polygon edges must follow. Valid options are {@link ArcType.GEODESIC} and {@link ArcType.RHUMB}.
|
|
12891
|
-
* @param [options.ellipsoid = Ellipsoid.WGS84] - The ellipsoid to be used as a reference.
|
|
12892
|
-
* @param [result] - An object in which to store the result.
|
|
12893
|
-
* @returns The result rectangle
|
|
12894
|
-
*/
|
|
12895
|
-
static computeRectangle(options: {
|
|
12896
|
-
polygonHierarchy: PolygonHierarchy;
|
|
12897
|
-
granularity?: number;
|
|
12898
|
-
arcType?: ArcType;
|
|
12899
|
-
ellipsoid?: Ellipsoid;
|
|
12900
|
-
}, result?: Rectangle): Rectangle;
|
|
12901
12892
|
/**
|
|
12902
12893
|
* Computes the geometric representation of a polygon, including its vertices, indices, and a bounding sphere.
|
|
12903
12894
|
* @param polygonGeometry - A description of the polygon.
|
|
@@ -17091,7 +17082,7 @@ export namespace Transforms {
|
|
|
17091
17082
|
function northWestUpToFixedFrame(origin: Cartesian3, ellipsoid?: Ellipsoid, result?: Matrix4): Matrix4;
|
|
17092
17083
|
/**
|
|
17093
17084
|
* Computes a 4x4 transformation matrix from a reference frame with axes computed from the heading-pitch-roll angles
|
|
17094
|
-
* 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
|
|
17095
17086
|
* direction where a positive angle is increasing eastward. Pitch is the rotation from the local east-north plane. Positive pitch angles
|
|
17096
17087
|
* are above the plane. Negative pitch angles are below the plane. Roll is the first rotation applied about the local east axis.
|
|
17097
17088
|
* @example
|
|
@@ -17113,7 +17104,7 @@ export namespace Transforms {
|
|
|
17113
17104
|
function headingPitchRollToFixedFrame(origin: Cartesian3, headingPitchRoll: HeadingPitchRoll, ellipsoid?: Ellipsoid, fixedFrameTransform?: Transforms.LocalFrameToFixedFrame, result?: Matrix4): Matrix4;
|
|
17114
17105
|
/**
|
|
17115
17106
|
* Computes a quaternion from a reference frame with axes computed from the heading-pitch-roll angles
|
|
17116
|
-
* 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
|
|
17117
17108
|
* direction where a positive angle is increasing eastward. Pitch is the rotation from the local east-north plane. Positive pitch angles
|
|
17118
17109
|
* are above the plane. Negative pitch angles are below the plane. Roll is the first rotation applied about the local east axis.
|
|
17119
17110
|
* @example
|
|
@@ -17134,7 +17125,7 @@ export namespace Transforms {
|
|
|
17134
17125
|
*/
|
|
17135
17126
|
function headingPitchRollQuaternion(origin: Cartesian3, headingPitchRoll: HeadingPitchRoll, ellipsoid?: Ellipsoid, fixedFrameTransform?: Transforms.LocalFrameToFixedFrame, result?: Quaternion): Quaternion;
|
|
17136
17127
|
/**
|
|
17137
|
-
* 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
|
|
17138
17129
|
* direction where a positive angle is increasing eastward. Pitch is the rotation from the local east-north plane. Positive pitch angles
|
|
17139
17130
|
* are above the plane. Negative pitch angles are below the plane. Roll is the first rotation applied about the local east axis.
|
|
17140
17131
|
* @param transform - The transform
|
|
@@ -18107,6 +18098,36 @@ export function combine(object1?: any, object2?: any, deep?: boolean): any;
|
|
|
18107
18098
|
*/
|
|
18108
18099
|
export function createGuid(): string;
|
|
18109
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
|
+
|
|
18110
18131
|
/**
|
|
18111
18132
|
* Creates a {@link CesiumTerrainProvider} instance for the {@link https://cesium.com/content/#cesium-world-terrain|Cesium World Terrain}.
|
|
18112
18133
|
* @example
|
|
@@ -20597,7 +20618,7 @@ export namespace Entity {
|
|
|
20597
20618
|
* @property [show] - A boolean value indicating if the entity and its children are displayed.
|
|
20598
20619
|
* @property [description] - A string Property specifying an HTML description for this entity.
|
|
20599
20620
|
* @property [position] - A Property specifying the entity position.
|
|
20600
|
-
* @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.
|
|
20601
20622
|
* @property [viewFrom] - A suggested initial offset for viewing this object.
|
|
20602
20623
|
* @property [parent] - A parent entity to associate with this entity.
|
|
20603
20624
|
* @property [billboard] - A billboard to associate with this entity.
|
|
@@ -20626,8 +20647,8 @@ export namespace Entity {
|
|
|
20626
20647
|
show?: boolean;
|
|
20627
20648
|
description?: Property | string;
|
|
20628
20649
|
position?: PositionProperty | Cartesian3;
|
|
20629
|
-
orientation?: Property;
|
|
20630
|
-
viewFrom?: Property;
|
|
20650
|
+
orientation?: Property | Quaternion;
|
|
20651
|
+
viewFrom?: Property | Cartesian3;
|
|
20631
20652
|
parent?: Entity;
|
|
20632
20653
|
billboard?: BillboardGraphics | BillboardGraphics.ConstructorOptions;
|
|
20633
20654
|
box?: BoxGraphics | BoxGraphics.ConstructorOptions;
|
|
@@ -20744,7 +20765,8 @@ export class Entity {
|
|
|
20744
20765
|
*/
|
|
20745
20766
|
tileset: Cesium3DTilesetGraphics | undefined;
|
|
20746
20767
|
/**
|
|
20747
|
-
* 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.
|
|
20748
20770
|
*/
|
|
20749
20771
|
orientation: Property | undefined;
|
|
20750
20772
|
/**
|
|
@@ -21317,8 +21339,6 @@ export class GeometryUpdater {
|
|
|
21317
21339
|
readonly classificationTypeProperty: Property;
|
|
21318
21340
|
/**
|
|
21319
21341
|
* Gets a value indicating if the geometry is time-varying.
|
|
21320
|
-
* If true, all visualization is delegated to a DynamicGeometryUpdater
|
|
21321
|
-
* returned by GeometryUpdater#createDynamicUpdater.
|
|
21322
21342
|
*/
|
|
21323
21343
|
readonly isDynamic: boolean;
|
|
21324
21344
|
/**
|
|
@@ -23276,8 +23296,6 @@ export class PolylineGeometryUpdater {
|
|
|
23276
23296
|
readonly classificationTypeProperty: Property;
|
|
23277
23297
|
/**
|
|
23278
23298
|
* Gets a value indicating if the geometry is time-varying.
|
|
23279
|
-
* If true, all visualization is delegated to the {@link DynamicGeometryUpdater}
|
|
23280
|
-
* returned by GeometryUpdater#createDynamicUpdater.
|
|
23281
23299
|
*/
|
|
23282
23300
|
readonly isDynamic: boolean;
|
|
23283
23301
|
/**
|
|
@@ -25559,6 +25577,81 @@ export namespace ArcGisMapService {
|
|
|
25559
25577
|
function getDefaultTokenCredit(providedKey: string): string | undefined;
|
|
25560
25578
|
}
|
|
25561
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
|
+
|
|
25562
25655
|
/**
|
|
25563
25656
|
* An enum describing the x, y, and z axes and helper conversion functions.
|
|
25564
25657
|
*/
|
|
@@ -26576,7 +26669,7 @@ export class Camera {
|
|
|
26576
26669
|
/**
|
|
26577
26670
|
* If set, the camera will not be able to rotate past this axis in either direction.
|
|
26578
26671
|
*/
|
|
26579
|
-
constrainedAxis: Cartesian3;
|
|
26672
|
+
constrainedAxis: Cartesian3 | undefined;
|
|
26580
26673
|
/**
|
|
26581
26674
|
* The factor multiplied by the the map size used to determine where to clamp the camera position
|
|
26582
26675
|
* when zooming out from the surface. The default is 1.5. Only valid for 2D and the map is rotatable.
|
|
@@ -28644,10 +28737,10 @@ export namespace Cesium3DTileset {
|
|
|
28644
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.
|
|
28645
28738
|
* @property [preloadFlightDestinations = true] - Optimization option. Preload tiles at the camera's flight destination while the camera is in flight.
|
|
28646
28739
|
* @property [preferLeaves = false] - Optimization option. Prefer loading of leaves first.
|
|
28647
|
-
* @property [dynamicScreenSpaceError =
|
|
28648
|
-
* @property [dynamicScreenSpaceErrorDensity =
|
|
28649
|
-
* @property [dynamicScreenSpaceErrorFactor =
|
|
28650
|
-
* @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.
|
|
28651
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.
|
|
28652
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.
|
|
28653
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.
|
|
@@ -28676,11 +28769,13 @@ export namespace Cesium3DTileset {
|
|
|
28676
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.
|
|
28677
28770
|
* @property [showCreditsOnScreen = false] - Whether to display the credits of this tileset on screen.
|
|
28678
28771
|
* @property [splitDirection = SplitDirection.NONE] - The {@link SplitDirection} split to apply to this tileset.
|
|
28679
|
-
* @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.
|
|
28680
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.
|
|
28681
28776
|
* @property [debugFreezeFrame = false] - For debugging only. Determines if only the tiles from last frame should be used for rendering.
|
|
28682
28777
|
* @property [debugColorizeTiles = false] - For debugging only. When true, assigns a random color to each tile.
|
|
28683
|
-
* @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.
|
|
28684
28779
|
* @property [debugWireframe = false] - For debugging only. When true, render's each tile's content as a wireframe.
|
|
28685
28780
|
* @property [debugShowBoundingVolume = false] - For debugging only. When true, renders the bounding volume for each tile.
|
|
28686
28781
|
* @property [debugShowContentBoundingVolume = false] - For debugging only. When true, renders the bounding volume for each tile's content.
|
|
@@ -28737,7 +28832,9 @@ export namespace Cesium3DTileset {
|
|
|
28737
28832
|
instanceFeatureIdLabel?: string | number;
|
|
28738
28833
|
showCreditsOnScreen?: boolean;
|
|
28739
28834
|
splitDirection?: SplitDirection;
|
|
28835
|
+
disableCollision?: boolean;
|
|
28740
28836
|
projectTo2D?: boolean;
|
|
28837
|
+
enablePick?: boolean;
|
|
28741
28838
|
debugHeatmapTilePropertyName?: string;
|
|
28742
28839
|
debugFreezeFrame?: boolean;
|
|
28743
28840
|
debugColorizeTiles?: boolean;
|
|
@@ -28778,6 +28875,17 @@ export namespace Cesium3DTileset {
|
|
|
28778
28875
|
* console.error(`Error creating tileset: ${error}`);
|
|
28779
28876
|
* }
|
|
28780
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
|
|
28781
28889
|
* // Common setting for the skipLevelOfDetail optimization
|
|
28782
28890
|
* const tileset = await Cesium.Cesium3DTileset.fromUrl(
|
|
28783
28891
|
* "http://localhost:8002/tilesets/Seattle/tileset.json", {
|
|
@@ -28795,8 +28903,8 @@ export namespace Cesium3DTileset {
|
|
|
28795
28903
|
* const tileset = await Cesium.Cesium3DTileset.fromUrl(
|
|
28796
28904
|
* "http://localhost:8002/tilesets/Seattle/tileset.json", {
|
|
28797
28905
|
* dynamicScreenSpaceError: true,
|
|
28798
|
-
* dynamicScreenSpaceErrorDensity:
|
|
28799
|
-
* dynamicScreenSpaceErrorFactor:
|
|
28906
|
+
* dynamicScreenSpaceErrorDensity: 2.0e-4,
|
|
28907
|
+
* dynamicScreenSpaceErrorFactor: 24.0,
|
|
28800
28908
|
* dynamicScreenSpaceErrorHeightFalloff: 0.25
|
|
28801
28909
|
* });
|
|
28802
28910
|
* scene.primitives.add(tileset);
|
|
@@ -28829,11 +28937,11 @@ export class Cesium3DTileset {
|
|
|
28829
28937
|
*/
|
|
28830
28938
|
preloadFlightDestinations: boolean;
|
|
28831
28939
|
/**
|
|
28832
|
-
* Optimization option.
|
|
28833
|
-
*
|
|
28834
|
-
*
|
|
28835
|
-
*
|
|
28836
|
-
*
|
|
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.
|
|
28837
28945
|
*/
|
|
28838
28946
|
dynamicScreenSpaceError: boolean;
|
|
28839
28947
|
/**
|
|
@@ -28855,33 +28963,43 @@ export class Cesium3DTileset {
|
|
|
28855
28963
|
*/
|
|
28856
28964
|
foveatedTimeDelay: number;
|
|
28857
28965
|
/**
|
|
28858
|
-
*
|
|
28859
|
-
*
|
|
28860
|
-
*
|
|
28861
|
-
* This has the effect of keeping high detail in the closer tiles and lower detail in the further tiles, with all tiles
|
|
28862
|
-
* 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.
|
|
28863
28969
|
* <p>
|
|
28864
|
-
*
|
|
28865
|
-
*
|
|
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).
|
|
28866
28974
|
* </p>
|
|
28867
28975
|
* <p>
|
|
28868
|
-
* Increasing
|
|
28869
|
-
*
|
|
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.
|
|
28870
28981
|
* </p>
|
|
28871
28982
|
*/
|
|
28872
28983
|
dynamicScreenSpaceErrorDensity: number;
|
|
28873
28984
|
/**
|
|
28874
|
-
* A
|
|
28875
|
-
*
|
|
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>
|
|
28876
28996
|
*/
|
|
28877
28997
|
dynamicScreenSpaceErrorFactor: number;
|
|
28878
28998
|
/**
|
|
28879
|
-
* A ratio of the tileset's height
|
|
28880
|
-
*
|
|
28881
|
-
*
|
|
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.
|
|
28882
29002
|
* <p>
|
|
28883
|
-
* Valid values are between 0.0 and 1.0.
|
|
28884
|
-
* </p>
|
|
28885
29003
|
*/
|
|
28886
29004
|
dynamicScreenSpaceErrorHeightFalloff: number;
|
|
28887
29005
|
/**
|
|
@@ -29117,6 +29235,10 @@ export class Cesium3DTileset {
|
|
|
29117
29235
|
* The {@link SplitDirection} to apply to this tileset.
|
|
29118
29236
|
*/
|
|
29119
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;
|
|
29120
29242
|
/**
|
|
29121
29243
|
* This property is for debugging only; it is not optimized for production use.
|
|
29122
29244
|
* <p>
|
|
@@ -29385,6 +29507,7 @@ export class Cesium3DTileset {
|
|
|
29385
29507
|
* <li>The glTF cannot contain morph targets, skins, or animations.</li>
|
|
29386
29508
|
* <li>The glTF cannot contain the <code>EXT_mesh_gpu_instancing</code> extension.</li>
|
|
29387
29509
|
* <li>Only meshes with TRIANGLES can be used to classify other assets.</li>
|
|
29510
|
+
* <li>The meshes must be watertight.</li>
|
|
29388
29511
|
* <li>The <code>POSITION</code> semantic is required.</li>
|
|
29389
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>
|
|
29390
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>
|
|
@@ -29394,6 +29517,9 @@ export class Cesium3DTileset {
|
|
|
29394
29517
|
* Additionally, classification is not supported for points or instanced 3D
|
|
29395
29518
|
* models.
|
|
29396
29519
|
* </p>
|
|
29520
|
+
* <p>
|
|
29521
|
+
* The 3D Tiles or terrain receiving the classification must be opaque.
|
|
29522
|
+
* </p>
|
|
29397
29523
|
*/
|
|
29398
29524
|
readonly classificationType: ClassificationType;
|
|
29399
29525
|
/**
|
|
@@ -29506,8 +29632,8 @@ export class Cesium3DTileset {
|
|
|
29506
29632
|
* const tileset = await Cesium.Cesium3DTileset.fromUrl(
|
|
29507
29633
|
* "http://localhost:8002/tilesets/Seattle/tileset.json", {
|
|
29508
29634
|
* dynamicScreenSpaceError: true,
|
|
29509
|
-
* dynamicScreenSpaceErrorDensity:
|
|
29510
|
-
* dynamicScreenSpaceErrorFactor:
|
|
29635
|
+
* dynamicScreenSpaceErrorDensity: 2.0e-4,
|
|
29636
|
+
* dynamicScreenSpaceErrorFactor: 24.0,
|
|
29511
29637
|
* dynamicScreenSpaceErrorHeightFalloff: 0.25
|
|
29512
29638
|
* });
|
|
29513
29639
|
* scene.primitives.add(tileset);
|
|
@@ -29562,6 +29688,18 @@ export class Cesium3DTileset {
|
|
|
29562
29688
|
* tileset = tileset && tileset.destroy();
|
|
29563
29689
|
*/
|
|
29564
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;
|
|
29565
29703
|
}
|
|
29566
29704
|
|
|
29567
29705
|
/**
|
|
@@ -30795,6 +30933,28 @@ export class DiscardMissingTileImagePolicy {
|
|
|
30795
30933
|
shouldDiscardImage(image: HTMLImageElement): boolean;
|
|
30796
30934
|
}
|
|
30797
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
|
+
|
|
30798
30958
|
/**
|
|
30799
30959
|
* An appearance for geometry on the surface of the ellipsoid like {@link PolygonGeometry}
|
|
30800
30960
|
* and {@link RectangleGeometry}, which supports all materials like {@link MaterialAppearance}
|
|
@@ -31301,20 +31461,6 @@ export class Globe {
|
|
|
31301
31461
|
* A brightness shift of -1.0 is complete darkness, which will let space show through.
|
|
31302
31462
|
*/
|
|
31303
31463
|
atmosphereBrightnessShift: number;
|
|
31304
|
-
/**
|
|
31305
|
-
* A scalar used to exaggerate the terrain. Defaults to <code>1.0</code> (no exaggeration).
|
|
31306
|
-
* A value of <code>2.0</code> scales the terrain by 2x.
|
|
31307
|
-
* A value of <code>0.0</code> makes the terrain completely flat.
|
|
31308
|
-
* Note that terrain exaggeration will not modify any other primitive as they are positioned relative to the ellipsoid.
|
|
31309
|
-
*/
|
|
31310
|
-
terrainExaggeration: number;
|
|
31311
|
-
/**
|
|
31312
|
-
* The height from which terrain is exaggerated. Defaults to <code>0.0</code> (scaled relative to ellipsoid surface).
|
|
31313
|
-
* Terrain that is above this height will scale upwards and terrain that is below this height will scale downwards.
|
|
31314
|
-
* Note that terrain exaggeration will not modify any other primitive as they are positioned relative to the ellipsoid.
|
|
31315
|
-
* If {@link Globe#terrainExaggeration} is <code>1.0</code> this value will have no effect.
|
|
31316
|
-
*/
|
|
31317
|
-
terrainExaggerationRelativeHeight: number;
|
|
31318
31464
|
/**
|
|
31319
31465
|
* Whether to show terrain skirts. Terrain skirts are geometry extending downwards from a tile's edges used to hide seams between neighboring tiles.
|
|
31320
31466
|
* Skirts are always hidden when the camera is underground or translucency is enabled.
|
|
@@ -31372,6 +31518,20 @@ export class Globe {
|
|
|
31372
31518
|
* Gets an event that's raised when the terrain provider is changed
|
|
31373
31519
|
*/
|
|
31374
31520
|
readonly terrainProviderChanged: Event;
|
|
31521
|
+
/**
|
|
31522
|
+
* A scalar used to exaggerate the terrain. Defaults to <code>1.0</code> (no exaggeration).
|
|
31523
|
+
* A value of <code>2.0</code> scales the terrain by 2x.
|
|
31524
|
+
* A value of <code>0.0</code> makes the terrain completely flat.
|
|
31525
|
+
* Note that terrain exaggeration will not modify any other primitive as they are positioned relative to the ellipsoid.
|
|
31526
|
+
*/
|
|
31527
|
+
terrainExaggeration: number;
|
|
31528
|
+
/**
|
|
31529
|
+
* The height from which terrain is exaggerated. Defaults to <code>0.0</code> (scaled relative to ellipsoid surface).
|
|
31530
|
+
* Terrain that is above this height will scale upwards and terrain that is below this height will scale downwards.
|
|
31531
|
+
* Note that terrain exaggeration will not modify any other primitive as they are positioned relative to the ellipsoid.
|
|
31532
|
+
* If {@link Globe#terrainExaggeration} is <code>1.0</code> this value will have no effect.
|
|
31533
|
+
*/
|
|
31534
|
+
terrainExaggerationRelativeHeight: number;
|
|
31375
31535
|
/**
|
|
31376
31536
|
* Gets an event that's raised when the length of the tile load queue has changed since the last render frame. When the load queue is empty,
|
|
31377
31537
|
* all terrain and imagery for the current view have been loaded. The event passes the new length of the tile load queue.
|
|
@@ -32404,13 +32564,29 @@ export enum HeightReference {
|
|
|
32404
32564
|
*/
|
|
32405
32565
|
NONE = 0,
|
|
32406
32566
|
/**
|
|
32407
|
-
* The position is clamped to the terrain.
|
|
32567
|
+
* The position is clamped to the terrain and 3D Tiles.
|
|
32408
32568
|
*/
|
|
32409
32569
|
CLAMP_TO_GROUND = 1,
|
|
32410
32570
|
/**
|
|
32411
|
-
* The position height is the height above the terrain.
|
|
32571
|
+
* The position height is the height above the terrain and 3D Tiles.
|
|
32412
32572
|
*/
|
|
32413
|
-
RELATIVE_TO_GROUND = 2
|
|
32573
|
+
RELATIVE_TO_GROUND = 2,
|
|
32574
|
+
/**
|
|
32575
|
+
* The position is clamped to terain.
|
|
32576
|
+
*/
|
|
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
|
|
32414
32590
|
}
|
|
32415
32591
|
|
|
32416
32592
|
/**
|
|
@@ -32937,7 +33113,7 @@ export namespace ImageryLayer {
|
|
|
32937
33113
|
* // Add an OpenStreetMaps layer
|
|
32938
33114
|
* const imageryLayer = new Cesium.ImageryLayer(new Cesium.OpenStreetMapImageryProvider({
|
|
32939
33115
|
* url: "https://tile.openstreetmap.org/"
|
|
32940
|
-
* }))
|
|
33116
|
+
* }));
|
|
32941
33117
|
* scene.imageryLayers.add(imageryLayer);
|
|
32942
33118
|
* @example
|
|
32943
33119
|
* // Add Cesium ion's default world imagery layer
|
|
@@ -32948,11 +33124,11 @@ export namespace ImageryLayer {
|
|
|
32948
33124
|
* const imageryLayer = Cesium.ImageryLayer.fromProviderAsync(Cesium.IonImageryProvider.fromAssetId(3812));
|
|
32949
33125
|
* imageryLayer.alpha = 0.5;
|
|
32950
33126
|
* scene.imageryLayers.add(imageryLayer);
|
|
32951
|
-
* @param imageryProvider - The imagery provider to use.
|
|
32952
|
-
* @param options - An object describing initialization options
|
|
33127
|
+
* @param [imageryProvider] - The imagery provider to use.
|
|
33128
|
+
* @param [options] - An object describing initialization options
|
|
32953
33129
|
*/
|
|
32954
33130
|
export class ImageryLayer {
|
|
32955
|
-
constructor(imageryProvider
|
|
33131
|
+
constructor(imageryProvider?: ImageryProvider, options?: ImageryLayer.ConstructorOptions);
|
|
32956
33132
|
/**
|
|
32957
33133
|
* The alpha blending value of this layer, with 0.0 representing fully transparent and
|
|
32958
33134
|
* 1.0 representing fully opaque.
|
|
@@ -35907,11 +36083,15 @@ export class Model {
|
|
|
35907
36083
|
* <li>The glTF cannot contain morph targets, skins, or animations.</li>
|
|
35908
36084
|
* <li>The glTF cannot contain the <code>EXT_mesh_gpu_instancing</code> extension.</li>
|
|
35909
36085
|
* <li>Only meshes with TRIANGLES can be used to classify other assets.</li>
|
|
35910
|
-
* <li>The
|
|
36086
|
+
* <li>The meshes must be watertight.</li>
|
|
36087
|
+
* <li>The POSITION attribute is required.</li>
|
|
35911
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>
|
|
35912
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>
|
|
35913
36090
|
* </ul>
|
|
35914
36091
|
* </p>
|
|
36092
|
+
* <p>
|
|
36093
|
+
* The 3D Tiles or terrain receiving the classification must be opaque.
|
|
36094
|
+
* </p>
|
|
35915
36095
|
*/
|
|
35916
36096
|
readonly classificationType: ClassificationType;
|
|
35917
36097
|
/**
|
|
@@ -36083,6 +36263,7 @@ export class Model {
|
|
|
36083
36263
|
* @param [options.showCreditsOnScreen = false] - Whether to display the credits of this model on screen.
|
|
36084
36264
|
* @param [options.splitDirection = SplitDirection.NONE] - The {@link SplitDirection} split to apply to this model.
|
|
36085
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.
|
|
36086
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.
|
|
36087
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.
|
|
36088
36269
|
* @param [options.pointCloudShading] - Options for constructing a {@link PointCloudShading} object to control point attenuation and lighting.
|
|
@@ -36133,6 +36314,7 @@ export class Model {
|
|
|
36133
36314
|
showCreditsOnScreen?: boolean;
|
|
36134
36315
|
splitDirection?: SplitDirection;
|
|
36135
36316
|
projectTo2D?: boolean;
|
|
36317
|
+
enablePick?: boolean;
|
|
36136
36318
|
featureIdLabel?: string | number;
|
|
36137
36319
|
instanceFeatureIdLabel?: string | number;
|
|
36138
36320
|
pointCloudShading?: any;
|
|
@@ -39255,6 +39437,16 @@ export class Scene {
|
|
|
39255
39437
|
* other hand, increasing this will increase performance but may cause z-fighting among primitives close to the surface.
|
|
39256
39438
|
*/
|
|
39257
39439
|
nearToFarDistance2D: number;
|
|
39440
|
+
/**
|
|
39441
|
+
* The vertical exaggeration of the scene.
|
|
39442
|
+
* When set to 1.0, no exaggeration is applied.
|
|
39443
|
+
*/
|
|
39444
|
+
verticalExaggeration: number;
|
|
39445
|
+
/**
|
|
39446
|
+
* The reference height for vertical exaggeration of the scene.
|
|
39447
|
+
* When set to 0.0, the exaggeration is applied relative to the ellipsoid surface.
|
|
39448
|
+
*/
|
|
39449
|
+
verticalExaggerationRelativeHeight: number;
|
|
39258
39450
|
/**
|
|
39259
39451
|
* This property is for debugging only; it is not for production use.
|
|
39260
39452
|
* <p>
|
|
@@ -39343,6 +39535,11 @@ export class Scene {
|
|
|
39343
39535
|
* }, Cesium.ScreenSpaceEventType.LEFT_CLICK);
|
|
39344
39536
|
*/
|
|
39345
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;
|
|
39346
39543
|
/**
|
|
39347
39544
|
* Blends the atmosphere to geometry far from the camera for horizon views. Allows for additional
|
|
39348
39545
|
* performance improvements by rendering less geometry and dispatching less terrain requests.
|
|
@@ -40697,6 +40894,44 @@ export class Terrain {
|
|
|
40697
40894
|
requestVertexNormals?: boolean;
|
|
40698
40895
|
requestWaterMask?: boolean;
|
|
40699
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;
|
|
40700
40935
|
}
|
|
40701
40936
|
|
|
40702
40937
|
export namespace TileCoordinatesImageryProvider {
|