@cesium/engine 11.1.0 → 12.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Build/Workers/{chunk-U72QNFOJ.js → chunk-22FZ334F.js} +10 -10
- package/Build/Workers/{chunk-GNBFYG7F.js → chunk-2F42VIW6.js} +13 -13
- package/Build/Workers/{chunk-K4GQUNB5.js → chunk-2IJZVFHY.js} +5 -5
- package/Build/Workers/{chunk-7KTQP4VB.js → chunk-2XOUWNPN.js} +5 -5
- package/Build/Workers/{chunk-IBLIYJZR.js → chunk-3Y4UGAYI.js} +6 -6
- package/Build/Workers/{chunk-VJZB3WAV.js → chunk-54NYY4U4.js} +7 -7
- package/Build/Workers/{chunk-DHYHSFFJ.js → chunk-647NL6VU.js} +2 -2
- package/Build/Workers/{chunk-CKY7HOHV.js → chunk-76KRKKEF.js} +9 -9
- package/Build/Workers/{chunk-BHQJ2NT7.js → chunk-7CKQ7PVJ.js} +6 -6
- package/Build/Workers/{chunk-5PTXS2GO.js → chunk-7D6T2WYT.js} +7 -7
- package/Build/Workers/{chunk-PRGYLLJT.js → chunk-7EBHNJTG.js} +1 -1
- package/Build/Workers/{chunk-YFXQECWV.js → chunk-AER5CLXD.js} +5 -5
- package/Build/Workers/{chunk-N5KJGGCM.js → chunk-AGYO4ZSF.js} +17 -17
- package/Build/Workers/{chunk-VU2MNO7L.js → chunk-BH5M522L.js} +7 -7
- package/Build/Workers/{chunk-MXIZJAPH.js → chunk-COHL4R3G.js} +1 -1
- package/Build/Workers/{chunk-FIGIZHAQ.js → chunk-DJ7K7EYK.js} +11 -11
- package/Build/Workers/{chunk-3Q2L65QU.js → chunk-DR56WFYZ.js} +7 -7
- package/Build/Workers/{chunk-AD63PIY6.js → chunk-EMCXAVSG.js} +2 -2
- package/Build/Workers/{chunk-YSGTGQQO.js → chunk-ENARO52I.js} +14 -14
- package/Build/Workers/{chunk-5OOFQLKF.js → chunk-ETXXXGMP.js} +7 -7
- package/Build/Workers/{chunk-E27BLMDD.js → chunk-GBPW65E3.js} +6 -6
- package/Build/Workers/{chunk-NGPPMXRM.js → chunk-GRQQHWMD.js} +7 -7
- package/Build/Workers/{chunk-SMDOP47J.js → chunk-GSJ6LWIS.js} +10 -10
- package/Build/Workers/{chunk-26GA3JAM.js → chunk-H3RMGG7L.js} +5 -5
- package/Build/Workers/{chunk-PGRPDNHG.js → chunk-IAX6MIST.js} +17 -17
- package/Build/Workers/{chunk-5ODQSF26.js → chunk-IJWXYSFC.js} +2 -2
- package/Build/Workers/{chunk-C6YYBQXW.js → chunk-IVCFTVYW.js} +4 -4
- package/Build/Workers/{chunk-JW4FOI6M.js → chunk-JAKTB6CE.js} +11 -11
- package/Build/Workers/{chunk-TKVT5GQM.js → chunk-JPNFQRN7.js} +13 -13
- package/Build/Workers/{chunk-E63IIM5T.js → chunk-K7QC3WDT.js} +1 -1
- package/Build/Workers/{chunk-TGONEMZO.js → chunk-KJ65M35B.js} +11 -11
- package/Build/Workers/{chunk-2ZGOQXYU.js → chunk-KKMH4BKN.js} +6 -6
- package/Build/Workers/{chunk-76BYBWHP.js → chunk-LBNGHEJY.js} +4 -4
- package/Build/Workers/{chunk-XY4BATBS.js → chunk-LVHHB5T6.js} +4 -4
- package/Build/Workers/{chunk-S6MRMMQU.js → chunk-MV7YO647.js} +6 -6
- package/Build/Workers/{chunk-6CHGCNMW.js → chunk-NELAPOO6.js} +2 -2
- package/Build/Workers/{chunk-GESF4OXQ.js → chunk-NL73INJS.js} +2 -2
- package/Build/Workers/{chunk-GGZJN2TI.js → chunk-PH3T7LNP.js} +15 -15
- package/Build/Workers/{chunk-YZ733KKS.js → chunk-PISTPJXS.js} +12 -12
- package/Build/Workers/{chunk-GWCFU2SA.js → chunk-PJHRB4YJ.js} +7 -7
- package/Build/Workers/{chunk-I2ITFFPX.js → chunk-PNA47CR7.js} +1 -1
- package/Build/Workers/{chunk-7JO7GPJN.js → chunk-Q7IIOKAT.js} +1 -1
- package/Build/Workers/{chunk-27HUZ7SA.js → chunk-U7SH6OK7.js} +4 -4
- package/Build/Workers/{chunk-M3GMB5OP.js → chunk-VHGI7D3P.js} +10 -10
- package/Build/Workers/{chunk-FDOV2LBJ.js → chunk-VO4SXJXT.js} +7 -7
- package/Build/Workers/{chunk-7BMOHCPM.js → chunk-VXVQITFC.js} +13 -13
- package/Build/Workers/{chunk-DI5NGJUP.js → chunk-WMHJAREU.js} +2 -2
- package/Build/Workers/{chunk-EJZTDTUH.js → chunk-X6YBZOOA.js} +4 -4
- package/Build/Workers/{chunk-472HQ3EH.js → chunk-XDJ7V4NZ.js} +5 -5
- package/Build/Workers/{chunk-E6V6SQZW.js → chunk-YT5PQMSP.js} +6 -6
- package/Build/Workers/{chunk-O3E4OAOE.js → chunk-ZCCI55EY.js} +13 -13
- package/Build/Workers/{chunk-7O373FFS.js → chunk-ZPTNVB3S.js} +8 -8
- package/Build/Workers/combineGeometry.js +22 -22
- package/Build/Workers/createBoxGeometry.js +16 -16
- package/Build/Workers/createBoxOutlineGeometry.js +14 -14
- package/Build/Workers/createCircleGeometry.js +24 -24
- package/Build/Workers/createCircleOutlineGeometry.js +17 -17
- package/Build/Workers/createCoplanarPolygonGeometry.js +31 -31
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +29 -29
- package/Build/Workers/createCorridorGeometry.js +27 -27
- package/Build/Workers/createCorridorOutlineGeometry.js +26 -26
- package/Build/Workers/createCylinderGeometry.js +18 -18
- package/Build/Workers/createCylinderOutlineGeometry.js +16 -16
- package/Build/Workers/createEllipseGeometry.js +24 -24
- package/Build/Workers/createEllipseOutlineGeometry.js +17 -17
- package/Build/Workers/createEllipsoidGeometry.js +17 -17
- package/Build/Workers/createEllipsoidOutlineGeometry.js +16 -16
- package/Build/Workers/createFrustumGeometry.js +16 -16
- package/Build/Workers/createFrustumOutlineGeometry.js +16 -16
- package/Build/Workers/createGeometry.js +22 -22
- package/Build/Workers/createGroundPolylineGeometry.js +20 -20
- package/Build/Workers/createPlaneGeometry.js +14 -14
- package/Build/Workers/createPlaneOutlineGeometry.js +13 -13
- package/Build/Workers/createPolygonGeometry.js +30 -30
- package/Build/Workers/createPolygonOutlineGeometry.js +28 -28
- package/Build/Workers/createPolylineGeometry.js +23 -23
- package/Build/Workers/createPolylineVolumeGeometry.js +29 -29
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +25 -25
- package/Build/Workers/createRectangleGeometry.js +25 -25
- package/Build/Workers/createRectangleOutlineGeometry.js +18 -18
- package/Build/Workers/createSimplePolylineGeometry.js +21 -21
- package/Build/Workers/createSphereGeometry.js +17 -17
- package/Build/Workers/createSphereOutlineGeometry.js +16 -16
- package/Build/Workers/createTaskProcessorWorker.js +3 -3
- package/Build/Workers/createVectorTileClampedPolylines.js +13 -13
- package/Build/Workers/createVectorTileGeometries.js +22 -22
- package/Build/Workers/createVectorTilePoints.js +12 -12
- package/Build/Workers/createVectorTilePolygons.js +20 -20
- package/Build/Workers/createVectorTilePolylines.js +13 -13
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +20 -20
- package/Build/Workers/createVerticesFromHeightmap.js +20 -20
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +17 -17
- package/Build/Workers/createWallGeometry.js +22 -22
- package/Build/Workers/createWallOutlineGeometry.js +21 -21
- package/Build/Workers/decodeDraco.js +11 -11
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
- package/Build/Workers/decodeI3S.js +10 -10
- package/Build/Workers/transcodeKTX2.js +7 -7
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +20 -20
- package/Source/Core/BoundingSphere.js +1 -1
- package/Source/Core/Color.js +1 -1
- package/Source/Core/CorridorGeometryLibrary.js +4 -4
- package/Source/Core/EllipseGeometry.js +1 -1
- package/Source/Core/EllipsoidGeodesic.js +1 -1
- package/Source/Core/FrustumGeometry.js +1 -1
- package/Source/Core/Ion.js +1 -1
- package/Source/Core/Math.js +2 -0
- package/Source/Core/PolylineVolumeGeometryLibrary.js +2 -2
- package/Source/Core/decodeGoogleEarthEnterpriseData.js +1 -1
- package/Source/DataSources/DataSourceDisplay.js +1 -1
- package/Source/DataSources/ModelGraphics.js +1 -0
- package/Source/Renderer/AutomaticUniforms.js +13 -0
- package/Source/Renderer/CubeMap.js +89 -12
- package/Source/Renderer/CubeMapFace.js +90 -13
- package/Source/Renderer/UniformState.js +13 -0
- package/Source/Scene/ArcGisMapService.js +1 -1
- package/Source/Scene/Atmosphere.js +22 -0
- package/Source/Scene/BingMapsImageryProvider.js +1 -1
- package/Source/Scene/Cesium3DTileset.js +39 -0
- package/Source/Scene/DynamicEnvironmentMapManager.js +894 -0
- package/Source/Scene/Fog.js +75 -82
- package/Source/Scene/FrameState.js +5 -3
- package/Source/Scene/ImageBasedLighting.js +7 -64
- package/Source/Scene/Model/AtmospherePipelineStage.js +10 -5
- package/Source/Scene/Model/ImageBasedLightingPipelineStage.js +43 -21
- package/Source/Scene/Model/Model.js +98 -25
- package/Source/Scene/Model/Model3DTileContent.js +5 -0
- package/Source/Scene/Model/ModelSceneGraph.js +1 -0
- package/Source/Scene/ScreenSpaceCameraController.js +20 -1
- package/Source/Shaders/Builtin/Functions/computeAtmosphereColor.glsl +44 -0
- package/Source/Shaders/Builtin/Functions/computeAtmosphereColor.js +44 -0
- package/Source/Shaders/Builtin/Functions/computeScattering.glsl +0 -1
- package/Source/Shaders/Builtin/Functions/computeScattering.js +0 -1
- package/Source/Shaders/Builtin/Functions/sphericalHarmonics.glsl +3 -1
- package/Source/Shaders/Builtin/Functions/sphericalHarmonics.js +3 -1
- package/Source/Shaders/ComputeIrradianceFS.glsl +103 -0
- package/Source/Shaders/ComputeIrradianceFS.js +105 -0
- package/Source/Shaders/ComputeRadianceMapFS.glsl +107 -0
- package/Source/Shaders/ComputeRadianceMapFS.js +109 -0
- package/Source/Shaders/ConvolveSpecularMapFS.glsl +70 -0
- package/Source/Shaders/ConvolveSpecularMapFS.js +72 -0
- package/Source/Shaders/ConvolveSpecularMapVS.glsl +24 -0
- package/Source/Shaders/ConvolveSpecularMapVS.js +26 -0
- package/Source/Shaders/GlobeFS.glsl +1 -2
- package/Source/Shaders/GlobeFS.js +1 -2
- package/Source/Shaders/Model/AtmosphereStageFS.glsl +1 -4
- package/Source/Shaders/Model/AtmosphereStageFS.js +1 -4
- package/Source/Shaders/Model/ImageBasedLightingStageFS.glsl +2 -155
- package/Source/Shaders/Model/ImageBasedLightingStageFS.js +3 -156
- package/Source/Shaders/Model/LightingStageFS.glsl +3 -22
- package/Source/Shaders/Model/LightingStageFS.js +3 -22
- package/Source/Shaders/SkyBoxVS.glsl +0 -1
- package/Source/Shaders/SkyBoxVS.js +0 -1
- package/Source/Widget/CesiumWidget.js +776 -1
- package/Source/Workers/decodeGoogleEarthEnterprisePacket.js +1 -1
- package/index.d.ts +281 -12
- package/index.js +62 -57
- package/package.json +2 -2
|
@@ -201,7 +201,7 @@ function processMetadata(buffer, totalSize, quadKey) {
|
|
|
201
201
|
const numMeshesPerPacket = 5;
|
|
202
202
|
const numSubMeshesPerMesh = 4;
|
|
203
203
|
|
|
204
|
-
// Each terrain packet will have 5 meshes - each
|
|
204
|
+
// Each terrain packet will have 5 meshes - each contain 4 sub-meshes:
|
|
205
205
|
// 1 even level mesh and its 4 odd level children.
|
|
206
206
|
// Any remaining bytes after the 20 sub-meshes contains water surface meshes,
|
|
207
207
|
// which are ignored.
|
package/index.d.ts
CHANGED
|
@@ -1255,7 +1255,7 @@ export class BoundingSphere {
|
|
|
1255
1255
|
static projectTo2D(sphere: BoundingSphere, projection?: any, result?: BoundingSphere): BoundingSphere;
|
|
1256
1256
|
/**
|
|
1257
1257
|
* Determines whether or not a sphere is hidden from view by the occluder.
|
|
1258
|
-
* @param sphere - The bounding sphere surrounding the
|
|
1258
|
+
* @param sphere - The bounding sphere surrounding the occluded object.
|
|
1259
1259
|
* @param occluder - The occluder.
|
|
1260
1260
|
* @returns <code>true</code> if the sphere is not visible; otherwise <code>false</code>.
|
|
1261
1261
|
*/
|
|
@@ -6033,7 +6033,7 @@ export class EllipsoidGeodesic {
|
|
|
6033
6033
|
interpolateUsingFraction(fraction: number, result?: Cartographic): Cartographic;
|
|
6034
6034
|
/**
|
|
6035
6035
|
* Provides the location of a point at the indicated distance along the geodesic.
|
|
6036
|
-
* @param distance - The distance from the
|
|
6036
|
+
* @param distance - The distance from the initial point to the point of interest along the geodesic
|
|
6037
6037
|
* @param [result] - The object in which to store the result.
|
|
6038
6038
|
* @returns The location of the point along the geodesic.
|
|
6039
6039
|
*/
|
|
@@ -25952,6 +25952,12 @@ export class Atmosphere {
|
|
|
25952
25952
|
* be used for dynamically lighting all atmosphere-related rendering effects.
|
|
25953
25953
|
*/
|
|
25954
25954
|
dynamicLighting: DynamicAtmosphereLightingType;
|
|
25955
|
+
/**
|
|
25956
|
+
* Returns <code>true</code> if the atmosphere shader requires a color correct step.
|
|
25957
|
+
* @param atmosphere - The atmosphere instance to check
|
|
25958
|
+
* @returns true if the atmosphere shader requires a color correct step
|
|
25959
|
+
*/
|
|
25960
|
+
static requiresColorCorrect(atmosphere: Atmosphere): boolean;
|
|
25955
25961
|
}
|
|
25956
25962
|
|
|
25957
25963
|
/**
|
|
@@ -29144,6 +29150,7 @@ export namespace Cesium3DTileset {
|
|
|
29144
29150
|
* @property [debugShowRenderingStatistics = false] - For debugging only. When true, draws labels to indicate the number of commands, points, triangles and features for each tile.
|
|
29145
29151
|
* @property [debugShowMemoryUsage = false] - For debugging only. When true, draws labels to indicate the texture and geometry memory in megabytes used by each tile.
|
|
29146
29152
|
* @property [debugShowUrl = false] - For debugging only. When true, draws labels to indicate the url of each tile.
|
|
29153
|
+
* @param [options.environmentMapOptions] - The properties for managing dynamic environment maps on this model.
|
|
29147
29154
|
*/
|
|
29148
29155
|
type ConstructorOptions = {
|
|
29149
29156
|
show?: boolean;
|
|
@@ -29911,6 +29918,14 @@ export class Cesium3DTileset {
|
|
|
29911
29918
|
* The properties for managing image-based lighting on this tileset.
|
|
29912
29919
|
*/
|
|
29913
29920
|
imageBasedLighting: ImageBasedLighting;
|
|
29921
|
+
/**
|
|
29922
|
+
* The properties for managing dynamic environment maps on this model. Affects lighting.
|
|
29923
|
+
* @example
|
|
29924
|
+
* // Change the ground color used for a tileset's environment map to a forest green
|
|
29925
|
+
* const environmentMapManager = tileset.environmentMapManager;
|
|
29926
|
+
* environmentMapManager.groundColor = Cesium.Color.fromCssColorString("#203b34");
|
|
29927
|
+
*/
|
|
29928
|
+
readonly environmentMapManager: DynamicEnvironmentMapManager;
|
|
29914
29929
|
/**
|
|
29915
29930
|
* Indicates that only the tileset's vector tiles should be used for classification.
|
|
29916
29931
|
*/
|
|
@@ -31524,6 +31539,136 @@ export enum DynamicAtmosphereLightingType {
|
|
|
31524
31539
|
SUNLIGHT = 2
|
|
31525
31540
|
}
|
|
31526
31541
|
|
|
31542
|
+
export namespace DynamicEnvironmentMapManager {
|
|
31543
|
+
/**
|
|
31544
|
+
* Options for the DynamicEnvironmentMapManager constructor
|
|
31545
|
+
* @property [enabled = true] - If true, the environment map and related properties will continue to update.
|
|
31546
|
+
* @property [mipmapLevels = 10] - The number of mipmap levels to generate for specular maps. More mipmap levels will produce a higher resolution specular reflection.
|
|
31547
|
+
* @property [maximumSecondsDifference = 3600] - The maximum amount of elapsed seconds before a new environment map is created.
|
|
31548
|
+
* @property [maximumPositionEpsilon = 1000] - The maximum difference in position before a new environment map is created, in meters. Small differences in position will not visibly affect results.
|
|
31549
|
+
* @property [atmosphereScatteringIntensity = 2.0] - The intensity of the scattered light emitted from the atmosphere. This should be adjusted relative to the value of {@link Scene.light} intensity.
|
|
31550
|
+
* @property [gamma = 1.0] - The gamma correction to apply to the range of light emitted from the environment. 1.0 uses the unmodified emitted light color.
|
|
31551
|
+
* @property [brightness = 1.0] - The brightness of light emitted from the environment. 1.0 uses the unmodified emitted environment color. Less than 1.0 makes the light darker while greater than 1.0 makes it brighter.
|
|
31552
|
+
* @property [saturation = 1.0] - The saturation of the light emitted from the environment. 1.0 uses the unmodified emitted environment color. Less than 1.0 reduces the saturation while greater than 1.0 increases it.
|
|
31553
|
+
* @property [groundColor = DynamicEnvironmentMapManager.AVERAGE_EARTH_GROUND_COLOR] - Solid color used to represent the ground.
|
|
31554
|
+
* @property [groundAlbedo = 0.31] - The percentage of light reflected from the ground. The average earth albedo is 0.31.
|
|
31555
|
+
*/
|
|
31556
|
+
type ConstructorOptions = {
|
|
31557
|
+
enabled?: boolean;
|
|
31558
|
+
mipmapLevels?: number;
|
|
31559
|
+
maximumSecondsDifference?: number;
|
|
31560
|
+
maximumPositionEpsilon?: number;
|
|
31561
|
+
atmosphereScatteringIntensity?: number;
|
|
31562
|
+
gamma?: number;
|
|
31563
|
+
brightness?: number;
|
|
31564
|
+
saturation?: number;
|
|
31565
|
+
groundColor?: Color;
|
|
31566
|
+
groundAlbedo?: number;
|
|
31567
|
+
};
|
|
31568
|
+
}
|
|
31569
|
+
|
|
31570
|
+
/**
|
|
31571
|
+
* Generates an environment map at the given position based on scene's current lighting conditions. From this, it produces multiple levels of specular maps and spherical harmonic coefficients than can be used with {@link ImageBasedLighting} for models or tilesets.
|
|
31572
|
+
* @example
|
|
31573
|
+
* // Enable time-of-day environment mapping in a scene
|
|
31574
|
+
* scene.atmosphere.dynamicLighting = Cesium.DynamicAtmosphereLightingType.SUNLIGHT;
|
|
31575
|
+
*
|
|
31576
|
+
* // Decrease the directional lighting contribution
|
|
31577
|
+
* scene.light.intensity = 0.5
|
|
31578
|
+
*
|
|
31579
|
+
* // Increase the intensity of of the environment map lighting contribution
|
|
31580
|
+
* const environmentMapManager = tileset.environmentMapManager;
|
|
31581
|
+
* environmentMapManager.atmosphereScatteringIntensity = 3.0;
|
|
31582
|
+
* @example
|
|
31583
|
+
* // Change the ground color used for a model's environment map to a forest green
|
|
31584
|
+
* const environmentMapManager = model.environmentMapManager;
|
|
31585
|
+
* environmentMapManager.groundColor = Cesium.Color.fromCssColorString("#203b34");
|
|
31586
|
+
* @param [options] - An object describing initialization options.
|
|
31587
|
+
*/
|
|
31588
|
+
export class DynamicEnvironmentMapManager {
|
|
31589
|
+
constructor(options?: DynamicEnvironmentMapManager.ConstructorOptions);
|
|
31590
|
+
/**
|
|
31591
|
+
* If true, the environment map and related properties will continue to update.
|
|
31592
|
+
*/
|
|
31593
|
+
enabled: boolean;
|
|
31594
|
+
/**
|
|
31595
|
+
* The maximum amount of elapsed seconds before a new environment map is created.
|
|
31596
|
+
*/
|
|
31597
|
+
maximumSecondsDifference: number;
|
|
31598
|
+
/**
|
|
31599
|
+
* The maximum difference in position before a new environment map is created, in meters. Small differences in position will not visibly affect results.
|
|
31600
|
+
*/
|
|
31601
|
+
maximumPositionEpsilon: number;
|
|
31602
|
+
/**
|
|
31603
|
+
* The intensity of the scattered light emitted from the atmosphere. This should be adjusted relative to the value of {@link Scene.light} intensity.
|
|
31604
|
+
*/
|
|
31605
|
+
atmosphereScatteringIntensity: number;
|
|
31606
|
+
/**
|
|
31607
|
+
* The gamma correction to apply to the range of light emitted from the environment. 1.0 uses the unmodified incoming light color.
|
|
31608
|
+
*/
|
|
31609
|
+
gamma: number;
|
|
31610
|
+
/**
|
|
31611
|
+
* The brightness of light emitted from the environment. 1.0 uses the unmodified emitted environment color. Less than 1.0
|
|
31612
|
+
* makes the light darker while greater than 1.0 makes it brighter.
|
|
31613
|
+
*/
|
|
31614
|
+
brightness: number;
|
|
31615
|
+
/**
|
|
31616
|
+
* The saturation of the light emitted from the environment. 1.0 uses the unmodified emitted environment color. Less than 1.0 reduces the
|
|
31617
|
+
* saturation while greater than 1.0 increases it.
|
|
31618
|
+
*/
|
|
31619
|
+
saturation: number;
|
|
31620
|
+
/**
|
|
31621
|
+
* Solid color used to represent the ground.
|
|
31622
|
+
*/
|
|
31623
|
+
groundColor: Color;
|
|
31624
|
+
/**
|
|
31625
|
+
* The percentage of light reflected from the ground. The average earth albedo is 0.31.
|
|
31626
|
+
*/
|
|
31627
|
+
groundAlbedo: number;
|
|
31628
|
+
/**
|
|
31629
|
+
* The position around which the environment map is generated.
|
|
31630
|
+
*/
|
|
31631
|
+
position: Cartesian3 | undefined;
|
|
31632
|
+
/**
|
|
31633
|
+
* Returns true if this object was destroyed; otherwise, false.
|
|
31634
|
+
* <br /><br />
|
|
31635
|
+
* If this object was destroyed, it should not be used; calling any function other than
|
|
31636
|
+
* <code>isDestroyed</code> will result in a {@link DeveloperError} exception.
|
|
31637
|
+
* @returns <code>true</code> if this object was destroyed; otherwise, <code>false</code>.
|
|
31638
|
+
*/
|
|
31639
|
+
isDestroyed(): boolean;
|
|
31640
|
+
/**
|
|
31641
|
+
* Destroys the WebGL resources held by this object. Destroying an object allows for deterministic
|
|
31642
|
+
* release of WebGL resources, instead of relying on the garbage collector to destroy this object.
|
|
31643
|
+
* <br /><br />
|
|
31644
|
+
* Once an object is destroyed, it should not be used; calling any function other than
|
|
31645
|
+
* <code>isDestroyed</code> will result in a {@link DeveloperError} exception. Therefore,
|
|
31646
|
+
* assign the return value (<code>undefined</code>) to the object as done in the example.
|
|
31647
|
+
* @example
|
|
31648
|
+
* mapManager = mapManager && mapManager.destroy();
|
|
31649
|
+
*/
|
|
31650
|
+
destroy(): void;
|
|
31651
|
+
/**
|
|
31652
|
+
* Returns <code>true</code> if dynamic updates are supported in the current WebGL rendering context.
|
|
31653
|
+
* Dynamic updates requires the EXT_color_buffer_float or EXT_color_buffer_half_float extension.
|
|
31654
|
+
* @param scene - The object containing the rendering context
|
|
31655
|
+
* @returns true if supported
|
|
31656
|
+
*/
|
|
31657
|
+
static isDynamicUpdateSupported(scene: Scene): boolean;
|
|
31658
|
+
/**
|
|
31659
|
+
* Average hue of ground color on earth, a warm green-gray.
|
|
31660
|
+
*/
|
|
31661
|
+
static readonly AVERAGE_EARTH_GROUND_COLOR: Color;
|
|
31662
|
+
/**
|
|
31663
|
+
* The default third order spherical harmonic coefficients used for the diffuse color of image-based lighting, a white ambient light with low intensity.
|
|
31664
|
+
* <p>
|
|
31665
|
+
* There are nine <code>Cartesian3</code> coefficients.
|
|
31666
|
+
* The order of the coefficients is: L<sub>0,0</sub>, L<sub>1,-1</sub>, L<sub>1,0</sub>, L<sub>1,1</sub>, L<sub>2,-2</sub>, L<sub>2,-1</sub>, L<sub>2,0</sub>, L<sub>2,1</sub>, L<sub>2,2</sub>
|
|
31667
|
+
* </p>
|
|
31668
|
+
*/
|
|
31669
|
+
static readonly DEFAULT_SPHERICAL_HARMONIC_COEFFICIENTS: Cartesian3[];
|
|
31670
|
+
}
|
|
31671
|
+
|
|
31527
31672
|
/**
|
|
31528
31673
|
* An appearance for geometry on the surface of the ellipsoid like {@link PolygonGeometry}
|
|
31529
31674
|
* and {@link RectangleGeometry}, which supports all materials like {@link MaterialAppearance}
|
|
@@ -31707,11 +31852,18 @@ export class Fog {
|
|
|
31707
31852
|
constructor();
|
|
31708
31853
|
/**
|
|
31709
31854
|
* <code>true</code> if fog is enabled, <code>false</code> otherwise.
|
|
31855
|
+
* @example
|
|
31856
|
+
* // Disable fog in the scene
|
|
31857
|
+
* viewer.scene.fog.enabled = false;
|
|
31710
31858
|
*/
|
|
31711
31859
|
enabled: boolean;
|
|
31712
31860
|
/**
|
|
31713
31861
|
* <code>true</code> if fog is renderable in shaders, <code>false</code> otherwise.
|
|
31714
31862
|
* This allows to benefits from optimized tile loading strategy based on fog density without the actual visual rendering.
|
|
31863
|
+
* @example
|
|
31864
|
+
* // Use fog culling but don't render it
|
|
31865
|
+
* viewer.scene.fog.enabled = true;
|
|
31866
|
+
* viewer.scene.fog.renderable = false;
|
|
31715
31867
|
*/
|
|
31716
31868
|
renderable: boolean;
|
|
31717
31869
|
/**
|
|
@@ -31720,8 +31872,27 @@ export class Fog {
|
|
|
31720
31872
|
* The more dense the fog is, the more aggressively the terrain is culled. For example, if the camera is a height of
|
|
31721
31873
|
* 1000.0m above the ellipsoid, increasing the value to 3.0e-3 will cause many tiles close to the viewer be culled.
|
|
31722
31874
|
* Decreasing the value will push the fog further from the viewer, but decrease performance as more of the terrain is rendered.
|
|
31875
|
+
* @example
|
|
31876
|
+
* // Double the default fog density
|
|
31877
|
+
* viewer.scene.fog.density = 0.0012;
|
|
31723
31878
|
*/
|
|
31724
31879
|
density: number;
|
|
31880
|
+
/**
|
|
31881
|
+
* A scalar used in the function to adjust density based on the height of the camera above the terrain.
|
|
31882
|
+
*/
|
|
31883
|
+
heightScalar: number;
|
|
31884
|
+
/**
|
|
31885
|
+
* The maximum height fog is applied. If the camera is above this height fog will be disabled.
|
|
31886
|
+
*/
|
|
31887
|
+
maxHeight: number;
|
|
31888
|
+
/**
|
|
31889
|
+
* A scalar that impacts the visual density of fog. This value does not impact the culling of terrain.
|
|
31890
|
+
* Use in combination with the {@link Fog.density} to make fog appear more or less dense.
|
|
31891
|
+
* @example
|
|
31892
|
+
* // Increase fog appearance effect
|
|
31893
|
+
* viewer.scene.fog.visualDensityScalar = 0.6;
|
|
31894
|
+
*/
|
|
31895
|
+
visualDensityScalar: number;
|
|
31725
31896
|
/**
|
|
31726
31897
|
* A factor used to increase the screen space error of terrain tiles when they are partially in fog. The effect is to reduce
|
|
31727
31898
|
* the number of terrain tiles requested for rendering. If set to zero, the feature will be disabled. If the value is increased
|
|
@@ -31734,6 +31905,11 @@ export class Fog {
|
|
|
31734
31905
|
* the brightness at all.
|
|
31735
31906
|
*/
|
|
31736
31907
|
minimumBrightness: number;
|
|
31908
|
+
/**
|
|
31909
|
+
* Exponent factor used in the function to adjust how density changes based on the height of the camera above the ellipsoid. Smaller values produce a more gradual transition as camera height increases.
|
|
31910
|
+
* Value must be greater than 0.
|
|
31911
|
+
*/
|
|
31912
|
+
heightFalloff: number;
|
|
31737
31913
|
}
|
|
31738
31914
|
|
|
31739
31915
|
/**
|
|
@@ -33660,7 +33836,6 @@ export class I3SSymbology {
|
|
|
33660
33836
|
* Otherwise, the application is responsible for calling destroy().
|
|
33661
33837
|
* </p>
|
|
33662
33838
|
* @param [options.imageBasedLightingFactor = Cartesian2(1.0, 1.0)] - Scales diffuse and specular image-based lighting from the earth, sky, atmosphere and star skybox.
|
|
33663
|
-
* @param [options.luminanceAtZenith = 0.2] - The sun's luminance at the zenith in kilo candela per meter squared to use for this model's procedural environment map.
|
|
33664
33839
|
* @param [options.sphericalHarmonicCoefficients] - The third order spherical harmonic coefficients used for the diffuse color of image-based lighting.
|
|
33665
33840
|
* @param [options.specularEnvironmentMaps] - A URL to a KTX2 file that contains a cube map of the specular lighting and the convoluted specular mipmaps.
|
|
33666
33841
|
*/
|
|
@@ -33673,13 +33848,6 @@ export class ImageBasedLighting {
|
|
|
33673
33848
|
* disable those light sources.
|
|
33674
33849
|
*/
|
|
33675
33850
|
imageBasedLightingFactor: Cartesian2;
|
|
33676
|
-
/**
|
|
33677
|
-
* The sun's luminance at the zenith in kilo candela per meter squared
|
|
33678
|
-
* to use for this model's procedural environment map. This is used when
|
|
33679
|
-
* {@link ImageBasedLighting#specularEnvironmentMaps} and {@link ImageBasedLighting#sphericalHarmonicCoefficients}
|
|
33680
|
-
* are not defined.
|
|
33681
|
-
*/
|
|
33682
|
-
luminanceAtZenith: number;
|
|
33683
33851
|
/**
|
|
33684
33852
|
* The third order spherical harmonic coefficients used for the diffuse color of image-based lighting. When <code>undefined</code>, a diffuse irradiance
|
|
33685
33853
|
* computed from the atmosphere color is used.
|
|
@@ -37098,7 +37266,7 @@ export class Model {
|
|
|
37098
37266
|
*/
|
|
37099
37267
|
enableVerticalExaggeration: boolean;
|
|
37100
37268
|
/**
|
|
37101
|
-
* The light color when shading the model. When <code>undefined</code> the scene's light color is used instead.
|
|
37269
|
+
* The directional light color when shading the model. When <code>undefined</code> the scene's light color is used instead.
|
|
37102
37270
|
* <p>
|
|
37103
37271
|
* Disabling additional light sources by setting
|
|
37104
37272
|
* <code>model.imageBasedLighting.imageBasedLightingFactor = new Cartesian2(0.0, 0.0)</code>
|
|
@@ -37110,6 +37278,14 @@ export class Model {
|
|
|
37110
37278
|
* The properties for managing image-based lighting on this model.
|
|
37111
37279
|
*/
|
|
37112
37280
|
imageBasedLighting: ImageBasedLighting;
|
|
37281
|
+
/**
|
|
37282
|
+
* The properties for managing dynamic environment maps on this model. Affects lighting.
|
|
37283
|
+
* @example
|
|
37284
|
+
* // Change the ground color used for a model's environment map to a forest green
|
|
37285
|
+
* const environmentMapManager = model.environmentMapManager;
|
|
37286
|
+
* environmentMapManager.groundColor = Cesium.Color.fromCssColorString("#203b34");
|
|
37287
|
+
*/
|
|
37288
|
+
readonly environmentMapManager: DynamicEnvironmentMapManager;
|
|
37113
37289
|
/**
|
|
37114
37290
|
* Whether to cull back-facing geometry. When true, back face culling is
|
|
37115
37291
|
* determined by the material's doubleSided property; when false, back face
|
|
@@ -37349,6 +37525,7 @@ export class Model {
|
|
|
37349
37525
|
* @param [options.clippingPolygons] - The {@link ClippingPolygonCollection} used to selectively disable rendering the model.
|
|
37350
37526
|
* @param [options.lightColor] - The light color when shading the model. When <code>undefined</code> the scene's light color is used instead.
|
|
37351
37527
|
* @param [options.imageBasedLighting] - The properties for managing image-based lighting on this model.
|
|
37528
|
+
* @param [options.environmentMapOptions] - The properties for managing dynamic environment maps on this model.
|
|
37352
37529
|
* @param [options.backFaceCulling = true] - Whether to cull back-facing geometry. When true, back face culling is determined by the material's doubleSided property; when false, back face culling is disabled. Back faces are not culled if the model's color is translucent.
|
|
37353
37530
|
* @param [options.credit] - A credit for the data source, which is displayed on the canvas.
|
|
37354
37531
|
* @param [options.showCreditsOnScreen = false] - Whether to display the credits of this model on screen.
|
|
@@ -37402,6 +37579,7 @@ export class Model {
|
|
|
37402
37579
|
clippingPolygons?: ClippingPolygonCollection;
|
|
37403
37580
|
lightColor?: Cartesian3;
|
|
37404
37581
|
imageBasedLighting?: ImageBasedLighting;
|
|
37582
|
+
environmentMapOptions?: DynamicEnvironmentMapManager.ConstructorOptions;
|
|
37405
37583
|
backFaceCulling?: boolean;
|
|
37406
37584
|
credit?: Credit | string;
|
|
37407
37585
|
showCreditsOnScreen?: boolean;
|
|
@@ -41438,6 +41616,13 @@ export class ScreenSpaceCameraController {
|
|
|
41438
41616
|
* When disabled, the values of <code>maximumZoomDistance</code> and <code>minimumZoomDistance</code> are ignored.
|
|
41439
41617
|
*/
|
|
41440
41618
|
enableCollisionDetection: boolean;
|
|
41619
|
+
/**
|
|
41620
|
+
* The angle, relative to the ellipsoid normal, restricting the maximum amount that the user can tilt the camera. If <code>undefined</code>, the angle of the camera tilt is unrestricted.
|
|
41621
|
+
* @example
|
|
41622
|
+
* // Prevent the camera from tilting below the ellipsoid surface
|
|
41623
|
+
* viewer.scene.screenSpaceCameraController.maximumTiltAngle = Math.PI / 2.0;
|
|
41624
|
+
*/
|
|
41625
|
+
maximumTiltAngle: number | undefined;
|
|
41441
41626
|
/**
|
|
41442
41627
|
* Returns true if this object was destroyed; otherwise, false.
|
|
41443
41628
|
* <br /><br />
|
|
@@ -43979,6 +44164,7 @@ export function createWorldImageryAsync(options?: {
|
|
|
43979
44164
|
* @param container - The DOM element or ID that will contain the widget.
|
|
43980
44165
|
* @param [options] - Object with the following properties:
|
|
43981
44166
|
* @param [options.clock = new Clock()] - The clock to use to control current time.
|
|
44167
|
+
* @param [options.shouldAnimate = false] - <code>true</code> if the clock should attempt to advance simulation time by default, <code>false</code> otherwise.
|
|
43982
44168
|
* @param [options.ellipsoid = Ellipsoid.default] - The default ellipsoid.
|
|
43983
44169
|
* @param [options.baseLayer = ImageryLayer.fromWorldImagery()] - The bottommost imagery layer applied to the globe. If set to <code>false</code>, no imagery provider will be added.
|
|
43984
44170
|
* @param [options.terrainProvider = new EllipsoidTerrainProvider(options.ellipsoid)] - The terrain provider.
|
|
@@ -43994,14 +44180,17 @@ export function createWorldImageryAsync(options?: {
|
|
|
43994
44180
|
* @param [options.useBrowserRecommendedResolution = true] - If true, render at the browser's recommended resolution and ignore <code>window.devicePixelRatio</code>.
|
|
43995
44181
|
* @param [options.targetFrameRate] - The target frame rate when using the default render loop.
|
|
43996
44182
|
* @param [options.showRenderLoopErrors = true] - If true, this widget will automatically display an HTML panel to the user containing the error, if a render loop error occurs.
|
|
44183
|
+
* @param [options.automaticallyTrackDataSourceClocks = true] - If true, this widget will automatically track the clock settings of newly added DataSources, updating if the DataSource's clock changes. Set this to false if you want to configure the clock independently.
|
|
43997
44184
|
* @param [options.contextOptions] - Context and WebGL creation properties passed to {@link Scene}.
|
|
43998
44185
|
* @param [options.creditContainer] - The DOM element or ID that will contain the {@link CreditDisplay}. If not specified, the credits are added
|
|
43999
44186
|
* to the bottom of the widget itself.
|
|
44000
44187
|
* @param [options.creditViewport] - The DOM element or ID that will contain the credit pop up created by the {@link CreditDisplay}. If not specified, it will appear over the widget itself.
|
|
44188
|
+
* @param [options.dataSources = new DataSourceCollection()] - The collection of data sources visualized by the widget. If this parameter is provided,
|
|
44189
|
+
* the instance is assumed to be owned by the caller and will not be destroyed when the widget is destroyed.
|
|
44001
44190
|
* @param [options.shadows = false] - Determines if shadows are cast by light sources.
|
|
44002
44191
|
* @param [options.terrainShadows = ShadowMode.RECEIVE_ONLY] - Determines if the terrain casts or receives shadows from light sources.
|
|
44003
44192
|
* @param [options.mapMode2D = MapMode2D.INFINITE_SCROLL] - Determines if the 2D map is rotatable or can be scrolled infinitely in the horizontal direction.
|
|
44004
|
-
* @param [options.blurActiveElementOnCanvasFocus = true] - If true, the active element will blur when the
|
|
44193
|
+
* @param [options.blurActiveElementOnCanvasFocus = true] - If true, the active element will blur when the widget's canvas is clicked. Setting this to false is useful for cases when the canvas is clicked only for retrieving position or an entity data without actually meaning to set the canvas to be the active element.
|
|
44005
44194
|
* @param [options.requestRenderMode = false] - If true, rendering a frame will only occur when needed as determined by changes within the scene. Enabling improves performance of the application, but requires using {@link Scene#requestRender} to render a new frame explicitly in this mode. This will be necessary in many cases after making changes to the scene in other parts of the API. See {@link https://cesium.com/blog/2018/01/24/cesium-scene-rendering-performance/|Improving Performance with Explicit Rendering}.
|
|
44006
44195
|
* @param [options.maximumRenderTimeChange = 0.0] - If requestRenderMode is true, this value defines the maximum change in simulation time allowed before a render is requested. See {@link https://cesium.com/blog/2018/01/24/cesium-scene-rendering-performance/|Improving Performance with Explicit Rendering}.
|
|
44007
44196
|
* @param [options.msaaSamples = 4] - If provided, this value controls the rate of multisample antialiasing. Typical multisampling rates are 2, 4, and sometimes 8 samples per pixel. Higher sampling rates of MSAA may impact performance in exchange for improved visual quality. This value only applies to WebGL2 contexts that support multisample render targets. Set to 1 to disable MSAA.
|
|
@@ -44009,6 +44198,7 @@ export function createWorldImageryAsync(options?: {
|
|
|
44009
44198
|
export class CesiumWidget {
|
|
44010
44199
|
constructor(container: Element | string, options?: {
|
|
44011
44200
|
clock?: Clock;
|
|
44201
|
+
shouldAnimate?: boolean;
|
|
44012
44202
|
ellipsoid?: Ellipsoid;
|
|
44013
44203
|
baseLayer?: ImageryLayer | false;
|
|
44014
44204
|
terrainProvider?: TerrainProvider;
|
|
@@ -44024,9 +44214,11 @@ export class CesiumWidget {
|
|
|
44024
44214
|
useBrowserRecommendedResolution?: boolean;
|
|
44025
44215
|
targetFrameRate?: number;
|
|
44026
44216
|
showRenderLoopErrors?: boolean;
|
|
44217
|
+
automaticallyTrackDataSourceClocks?: boolean;
|
|
44027
44218
|
contextOptions?: ContextOptions;
|
|
44028
44219
|
creditContainer?: Element | string;
|
|
44029
44220
|
creditViewport?: Element | string;
|
|
44221
|
+
dataSources?: DataSourceCollection;
|
|
44030
44222
|
shadows?: boolean;
|
|
44031
44223
|
terrainShadows?: ShadowMode;
|
|
44032
44224
|
mapMode2D?: MapMode2D;
|
|
@@ -44067,6 +44259,19 @@ export class CesiumWidget {
|
|
|
44067
44259
|
* Manages the list of credits to display on screen and in the lightbox.
|
|
44068
44260
|
*/
|
|
44069
44261
|
creditDisplay: CreditDisplay;
|
|
44262
|
+
/**
|
|
44263
|
+
* Gets the display used for {@link DataSource} visualization.
|
|
44264
|
+
*/
|
|
44265
|
+
readonly dataSourceDisplay: DataSourceDisplay;
|
|
44266
|
+
/**
|
|
44267
|
+
* Gets the collection of entities not tied to a particular data source.
|
|
44268
|
+
* This is a shortcut to [dataSourceDisplay.defaultDataSource.entities]{@link CesiumWidget#dataSourceDisplay}.
|
|
44269
|
+
*/
|
|
44270
|
+
readonly entities: EntityCollection;
|
|
44271
|
+
/**
|
|
44272
|
+
* Gets the set of {@link DataSource} instances to be visualized.
|
|
44273
|
+
*/
|
|
44274
|
+
readonly dataSources: DataSourceCollection;
|
|
44070
44275
|
/**
|
|
44071
44276
|
* Gets the camera.
|
|
44072
44277
|
*/
|
|
@@ -44120,6 +44325,25 @@ export class CesiumWidget {
|
|
|
44120
44325
|
* this flag is true or false.
|
|
44121
44326
|
*/
|
|
44122
44327
|
useBrowserRecommendedResolution: boolean;
|
|
44328
|
+
/**
|
|
44329
|
+
* Gets or sets whether or not data sources can temporarily pause
|
|
44330
|
+
* animation in order to avoid showing an incomplete picture to the user.
|
|
44331
|
+
* For example, if asynchronous primitives are being processed in the
|
|
44332
|
+
* background, the clock will not advance until the geometry is ready.
|
|
44333
|
+
*/
|
|
44334
|
+
allowDataSourcesToSuspendAnimation: boolean;
|
|
44335
|
+
/**
|
|
44336
|
+
* Gets or sets the Entity instance currently being tracked by the camera.
|
|
44337
|
+
*/
|
|
44338
|
+
trackedEntity: Entity | undefined;
|
|
44339
|
+
/**
|
|
44340
|
+
* Gets the event that is raised when the tracked entity changes.
|
|
44341
|
+
*/
|
|
44342
|
+
readonly trackedEntityChanged: Event;
|
|
44343
|
+
/**
|
|
44344
|
+
* Gets or sets the data source to track with the widget's clock.
|
|
44345
|
+
*/
|
|
44346
|
+
clockTrackedDataSource: DataSource;
|
|
44123
44347
|
/**
|
|
44124
44348
|
* Show an error panel to the user containing a title and a longer error message,
|
|
44125
44349
|
* which can be dismissed using an OK button. This panel is displayed automatically
|
|
@@ -44150,6 +44374,51 @@ export class CesiumWidget {
|
|
|
44150
44374
|
* unless <code>useDefaultRenderLoop</code> is set to false;
|
|
44151
44375
|
*/
|
|
44152
44376
|
render(): void;
|
|
44377
|
+
/**
|
|
44378
|
+
* Asynchronously sets the camera to view the provided entity, entities, or data source.
|
|
44379
|
+
* If the data source is still in the process of loading or the visualization is otherwise still loading,
|
|
44380
|
+
* this method waits for the data to be ready before performing the zoom.
|
|
44381
|
+
*
|
|
44382
|
+
* <p>The offset is heading/pitch/range in the local east-north-up reference frame centered at the center of the bounding sphere.
|
|
44383
|
+
* The heading and the pitch angles are defined in the local east-north-up reference frame.
|
|
44384
|
+
* The heading is the angle from y axis and increasing towards the x axis. Pitch is the rotation from the xy-plane. Positive pitch
|
|
44385
|
+
* angles are above the plane. Negative pitch angles are below the plane. The range is the distance from the center. If the range is
|
|
44386
|
+
* zero, a range will be computed such that the whole bounding sphere is visible.</p>
|
|
44387
|
+
*
|
|
44388
|
+
* <p>In 2D, there must be a top down view. The camera will be placed above the target looking down. The height above the
|
|
44389
|
+
* target will be the range. The heading will be determined from the offset. If the heading cannot be
|
|
44390
|
+
* determined from the offset, the heading will be north.</p>
|
|
44391
|
+
* @param target - The entity, array of entities, entity collection, data source, Cesium3DTileset, point cloud, or imagery layer to view. You can also pass a promise that resolves to one of the previously mentioned types.
|
|
44392
|
+
* @param [offset] - The offset from the center of the entity in the local east-north-up reference frame.
|
|
44393
|
+
* @returns A Promise that resolves to true if the zoom was successful or false if the target is not currently visualized in the scene or the zoom was cancelled.
|
|
44394
|
+
*/
|
|
44395
|
+
zoomTo(target: Entity | Entity[] | EntityCollection | DataSource | ImageryLayer | Cesium3DTileset | TimeDynamicPointCloud | Promise<Entity | Entity[] | EntityCollection | DataSource | ImageryLayer | Cesium3DTileset | TimeDynamicPointCloud | VoxelPrimitive>, offset?: HeadingPitchRange): Promise<boolean>;
|
|
44396
|
+
/**
|
|
44397
|
+
* Flies the camera to the provided entity, entities, or data source.
|
|
44398
|
+
* If the data source is still in the process of loading or the visualization is otherwise still loading,
|
|
44399
|
+
* this method waits for the data to be ready before performing the flight.
|
|
44400
|
+
*
|
|
44401
|
+
* <p>The offset is heading/pitch/range in the local east-north-up reference frame centered at the center of the bounding sphere.
|
|
44402
|
+
* The heading and the pitch angles are defined in the local east-north-up reference frame.
|
|
44403
|
+
* The heading is the angle from y axis and increasing towards the x axis. Pitch is the rotation from the xy-plane. Positive pitch
|
|
44404
|
+
* angles are above the plane. Negative pitch angles are below the plane. The range is the distance from the center. If the range is
|
|
44405
|
+
* zero, a range will be computed such that the whole bounding sphere is visible.</p>
|
|
44406
|
+
*
|
|
44407
|
+
* <p>In 2D, there must be a top down view. The camera will be placed above the target looking down. The height above the
|
|
44408
|
+
* target will be the range. The heading will be determined from the offset. If the heading cannot be
|
|
44409
|
+
* determined from the offset, the heading will be north.</p>
|
|
44410
|
+
* @param target - The entity, array of entities, entity collection, data source, Cesium3DTileset, point cloud, or imagery layer to view. You can also pass a promise that resolves to one of the previously mentioned types.
|
|
44411
|
+
* @param [options] - Object with the following properties:
|
|
44412
|
+
* @param [options.duration = 3.0] - The duration of the flight in seconds.
|
|
44413
|
+
* @param [options.maximumHeight] - The maximum height at the peak of the flight.
|
|
44414
|
+
* @param [options.offset] - The offset from the target in the local east-north-up reference frame centered at the target.
|
|
44415
|
+
* @returns A Promise that resolves to true if the flight was successful or false if the target is not currently visualized in the scene or the flight was cancelled. //TODO: Cleanup entity mentions
|
|
44416
|
+
*/
|
|
44417
|
+
flyTo(target: Entity | Entity[] | EntityCollection | DataSource | ImageryLayer | Cesium3DTileset | TimeDynamicPointCloud | Promise<Entity | Entity[] | EntityCollection | DataSource | ImageryLayer | Cesium3DTileset | TimeDynamicPointCloud | VoxelPrimitive>, options?: {
|
|
44418
|
+
duration?: number;
|
|
44419
|
+
maximumHeight?: number;
|
|
44420
|
+
offset?: HeadingPitchRange;
|
|
44421
|
+
}): Promise<boolean>;
|
|
44153
44422
|
}
|
|
44154
44423
|
|
|
44155
44424
|
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
globalThis.CESIUM_VERSION = "1.
|
|
1
|
+
globalThis.CESIUM_VERSION = "1.123.1";
|
|
2
2
|
export { default as AutomaticUniforms } from './Source/Renderer/AutomaticUniforms.js';
|
|
3
3
|
export { default as Buffer } from './Source/Renderer/Buffer.js';
|
|
4
4
|
export { default as BufferUsage } from './Source/Renderer/BufferUsage.js';
|
|
@@ -149,54 +149,6 @@ export { default as createRawPropertyDescriptor } from './Source/DataSources/cre
|
|
|
149
149
|
export { default as exportKml } from './Source/DataSources/exportKml.js';
|
|
150
150
|
export { default as getElement } from './Source/DataSources/getElement.js';
|
|
151
151
|
export { default as heightReferenceOnEntityPropertyChanged } from './Source/DataSources/heightReferenceOnEntityPropertyChanged.js';
|
|
152
|
-
export { default as _shadersAdjustTranslucentFS } from './Source/Shaders/AdjustTranslucentFS.js';
|
|
153
|
-
export { default as _shadersAtmosphereCommon } from './Source/Shaders/AtmosphereCommon.js';
|
|
154
|
-
export { default as _shadersBillboardCollectionFS } from './Source/Shaders/BillboardCollectionFS.js';
|
|
155
|
-
export { default as _shadersBillboardCollectionVS } from './Source/Shaders/BillboardCollectionVS.js';
|
|
156
|
-
export { default as _shadersBrdfLutGeneratorFS } from './Source/Shaders/BrdfLutGeneratorFS.js';
|
|
157
|
-
export { default as _shadersCloudCollectionFS } from './Source/Shaders/CloudCollectionFS.js';
|
|
158
|
-
export { default as _shadersCloudCollectionVS } from './Source/Shaders/CloudCollectionVS.js';
|
|
159
|
-
export { default as _shadersCloudNoiseFS } from './Source/Shaders/CloudNoiseFS.js';
|
|
160
|
-
export { default as _shadersCloudNoiseVS } from './Source/Shaders/CloudNoiseVS.js';
|
|
161
|
-
export { default as _shadersCompareAndPackTranslucentDepth } from './Source/Shaders/CompareAndPackTranslucentDepth.js';
|
|
162
|
-
export { default as _shadersCompositeOITFS } from './Source/Shaders/CompositeOITFS.js';
|
|
163
|
-
export { default as _shadersDepthPlaneFS } from './Source/Shaders/DepthPlaneFS.js';
|
|
164
|
-
export { default as _shadersDepthPlaneVS } from './Source/Shaders/DepthPlaneVS.js';
|
|
165
|
-
export { default as _shadersEllipsoidFS } from './Source/Shaders/EllipsoidFS.js';
|
|
166
|
-
export { default as _shadersEllipsoidVS } from './Source/Shaders/EllipsoidVS.js';
|
|
167
|
-
export { default as _shadersFXAA3_11 } from './Source/Shaders/FXAA3_11.js';
|
|
168
|
-
export { default as _shadersGlobeFS } from './Source/Shaders/GlobeFS.js';
|
|
169
|
-
export { default as _shadersGlobeVS } from './Source/Shaders/GlobeVS.js';
|
|
170
|
-
export { default as _shadersGroundAtmosphere } from './Source/Shaders/GroundAtmosphere.js';
|
|
171
|
-
export { default as _shadersPointPrimitiveCollectionFS } from './Source/Shaders/PointPrimitiveCollectionFS.js';
|
|
172
|
-
export { default as _shadersPointPrimitiveCollectionVS } from './Source/Shaders/PointPrimitiveCollectionVS.js';
|
|
173
|
-
export { default as _shadersPolygonSignedDistanceFS } from './Source/Shaders/PolygonSignedDistanceFS.js';
|
|
174
|
-
export { default as _shadersPolylineCommon } from './Source/Shaders/PolylineCommon.js';
|
|
175
|
-
export { default as _shadersPolylineFS } from './Source/Shaders/PolylineFS.js';
|
|
176
|
-
export { default as _shadersPolylineShadowVolumeFS } from './Source/Shaders/PolylineShadowVolumeFS.js';
|
|
177
|
-
export { default as _shadersPolylineShadowVolumeMorphFS } from './Source/Shaders/PolylineShadowVolumeMorphFS.js';
|
|
178
|
-
export { default as _shadersPolylineShadowVolumeMorphVS } from './Source/Shaders/PolylineShadowVolumeMorphVS.js';
|
|
179
|
-
export { default as _shadersPolylineShadowVolumeVS } from './Source/Shaders/PolylineShadowVolumeVS.js';
|
|
180
|
-
export { default as _shadersPolylineVS } from './Source/Shaders/PolylineVS.js';
|
|
181
|
-
export { default as _shadersReprojectWebMercatorFS } from './Source/Shaders/ReprojectWebMercatorFS.js';
|
|
182
|
-
export { default as _shadersReprojectWebMercatorVS } from './Source/Shaders/ReprojectWebMercatorVS.js';
|
|
183
|
-
export { default as _shadersShadowVolumeAppearanceFS } from './Source/Shaders/ShadowVolumeAppearanceFS.js';
|
|
184
|
-
export { default as _shadersShadowVolumeAppearanceVS } from './Source/Shaders/ShadowVolumeAppearanceVS.js';
|
|
185
|
-
export { default as _shadersShadowVolumeFS } from './Source/Shaders/ShadowVolumeFS.js';
|
|
186
|
-
export { default as _shadersSkyAtmosphereCommon } from './Source/Shaders/SkyAtmosphereCommon.js';
|
|
187
|
-
export { default as _shadersSkyAtmosphereFS } from './Source/Shaders/SkyAtmosphereFS.js';
|
|
188
|
-
export { default as _shadersSkyAtmosphereVS } from './Source/Shaders/SkyAtmosphereVS.js';
|
|
189
|
-
export { default as _shadersSkyBoxFS } from './Source/Shaders/SkyBoxFS.js';
|
|
190
|
-
export { default as _shadersSkyBoxVS } from './Source/Shaders/SkyBoxVS.js';
|
|
191
|
-
export { default as _shadersSunFS } from './Source/Shaders/SunFS.js';
|
|
192
|
-
export { default as _shadersSunTextureFS } from './Source/Shaders/SunTextureFS.js';
|
|
193
|
-
export { default as _shadersSunVS } from './Source/Shaders/SunVS.js';
|
|
194
|
-
export { default as _shadersVector3DTileClampedPolylinesFS } from './Source/Shaders/Vector3DTileClampedPolylinesFS.js';
|
|
195
|
-
export { default as _shadersVector3DTileClampedPolylinesVS } from './Source/Shaders/Vector3DTileClampedPolylinesVS.js';
|
|
196
|
-
export { default as _shadersVector3DTilePolylinesVS } from './Source/Shaders/Vector3DTilePolylinesVS.js';
|
|
197
|
-
export { default as _shadersVectorTileVS } from './Source/Shaders/VectorTileVS.js';
|
|
198
|
-
export { default as _shadersViewportQuadFS } from './Source/Shaders/ViewportQuadFS.js';
|
|
199
|
-
export { default as _shadersViewportQuadVS } from './Source/Shaders/ViewportQuadVS.js';
|
|
200
152
|
export { default as CesiumWidget } from './Source/Widget/CesiumWidget.js';
|
|
201
153
|
export { default as ApproximateTerrainHeights } from './Source/Core/ApproximateTerrainHeights.js';
|
|
202
154
|
export { default as ArcGISTiledElevationTerrainProvider } from './Source/Core/ArcGISTiledElevationTerrainProvider.js';
|
|
@@ -475,6 +427,58 @@ export { default as subdivideArray } from './Source/Core/subdivideArray.js';
|
|
|
475
427
|
export { default as webGLConstantToGlslType } from './Source/Core/webGLConstantToGlslType.js';
|
|
476
428
|
export { default as wrapFunction } from './Source/Core/wrapFunction.js';
|
|
477
429
|
export { default as writeTextToCanvas } from './Source/Core/writeTextToCanvas.js';
|
|
430
|
+
export { default as _shadersAdjustTranslucentFS } from './Source/Shaders/AdjustTranslucentFS.js';
|
|
431
|
+
export { default as _shadersAtmosphereCommon } from './Source/Shaders/AtmosphereCommon.js';
|
|
432
|
+
export { default as _shadersBillboardCollectionFS } from './Source/Shaders/BillboardCollectionFS.js';
|
|
433
|
+
export { default as _shadersBillboardCollectionVS } from './Source/Shaders/BillboardCollectionVS.js';
|
|
434
|
+
export { default as _shadersBrdfLutGeneratorFS } from './Source/Shaders/BrdfLutGeneratorFS.js';
|
|
435
|
+
export { default as _shadersCloudCollectionFS } from './Source/Shaders/CloudCollectionFS.js';
|
|
436
|
+
export { default as _shadersCloudCollectionVS } from './Source/Shaders/CloudCollectionVS.js';
|
|
437
|
+
export { default as _shadersCloudNoiseFS } from './Source/Shaders/CloudNoiseFS.js';
|
|
438
|
+
export { default as _shadersCloudNoiseVS } from './Source/Shaders/CloudNoiseVS.js';
|
|
439
|
+
export { default as _shadersCompareAndPackTranslucentDepth } from './Source/Shaders/CompareAndPackTranslucentDepth.js';
|
|
440
|
+
export { default as _shadersCompositeOITFS } from './Source/Shaders/CompositeOITFS.js';
|
|
441
|
+
export { default as _shadersComputeIrradianceFS } from './Source/Shaders/ComputeIrradianceFS.js';
|
|
442
|
+
export { default as _shadersComputeRadianceMapFS } from './Source/Shaders/ComputeRadianceMapFS.js';
|
|
443
|
+
export { default as _shadersConvolveSpecularMapFS } from './Source/Shaders/ConvolveSpecularMapFS.js';
|
|
444
|
+
export { default as _shadersConvolveSpecularMapVS } from './Source/Shaders/ConvolveSpecularMapVS.js';
|
|
445
|
+
export { default as _shadersDepthPlaneFS } from './Source/Shaders/DepthPlaneFS.js';
|
|
446
|
+
export { default as _shadersDepthPlaneVS } from './Source/Shaders/DepthPlaneVS.js';
|
|
447
|
+
export { default as _shadersEllipsoidFS } from './Source/Shaders/EllipsoidFS.js';
|
|
448
|
+
export { default as _shadersEllipsoidVS } from './Source/Shaders/EllipsoidVS.js';
|
|
449
|
+
export { default as _shadersFXAA3_11 } from './Source/Shaders/FXAA3_11.js';
|
|
450
|
+
export { default as _shadersGlobeFS } from './Source/Shaders/GlobeFS.js';
|
|
451
|
+
export { default as _shadersGlobeVS } from './Source/Shaders/GlobeVS.js';
|
|
452
|
+
export { default as _shadersGroundAtmosphere } from './Source/Shaders/GroundAtmosphere.js';
|
|
453
|
+
export { default as _shadersPointPrimitiveCollectionFS } from './Source/Shaders/PointPrimitiveCollectionFS.js';
|
|
454
|
+
export { default as _shadersPointPrimitiveCollectionVS } from './Source/Shaders/PointPrimitiveCollectionVS.js';
|
|
455
|
+
export { default as _shadersPolygonSignedDistanceFS } from './Source/Shaders/PolygonSignedDistanceFS.js';
|
|
456
|
+
export { default as _shadersPolylineCommon } from './Source/Shaders/PolylineCommon.js';
|
|
457
|
+
export { default as _shadersPolylineFS } from './Source/Shaders/PolylineFS.js';
|
|
458
|
+
export { default as _shadersPolylineShadowVolumeFS } from './Source/Shaders/PolylineShadowVolumeFS.js';
|
|
459
|
+
export { default as _shadersPolylineShadowVolumeMorphFS } from './Source/Shaders/PolylineShadowVolumeMorphFS.js';
|
|
460
|
+
export { default as _shadersPolylineShadowVolumeMorphVS } from './Source/Shaders/PolylineShadowVolumeMorphVS.js';
|
|
461
|
+
export { default as _shadersPolylineShadowVolumeVS } from './Source/Shaders/PolylineShadowVolumeVS.js';
|
|
462
|
+
export { default as _shadersPolylineVS } from './Source/Shaders/PolylineVS.js';
|
|
463
|
+
export { default as _shadersReprojectWebMercatorFS } from './Source/Shaders/ReprojectWebMercatorFS.js';
|
|
464
|
+
export { default as _shadersReprojectWebMercatorVS } from './Source/Shaders/ReprojectWebMercatorVS.js';
|
|
465
|
+
export { default as _shadersShadowVolumeAppearanceFS } from './Source/Shaders/ShadowVolumeAppearanceFS.js';
|
|
466
|
+
export { default as _shadersShadowVolumeAppearanceVS } from './Source/Shaders/ShadowVolumeAppearanceVS.js';
|
|
467
|
+
export { default as _shadersShadowVolumeFS } from './Source/Shaders/ShadowVolumeFS.js';
|
|
468
|
+
export { default as _shadersSkyAtmosphereCommon } from './Source/Shaders/SkyAtmosphereCommon.js';
|
|
469
|
+
export { default as _shadersSkyAtmosphereFS } from './Source/Shaders/SkyAtmosphereFS.js';
|
|
470
|
+
export { default as _shadersSkyAtmosphereVS } from './Source/Shaders/SkyAtmosphereVS.js';
|
|
471
|
+
export { default as _shadersSkyBoxFS } from './Source/Shaders/SkyBoxFS.js';
|
|
472
|
+
export { default as _shadersSkyBoxVS } from './Source/Shaders/SkyBoxVS.js';
|
|
473
|
+
export { default as _shadersSunFS } from './Source/Shaders/SunFS.js';
|
|
474
|
+
export { default as _shadersSunTextureFS } from './Source/Shaders/SunTextureFS.js';
|
|
475
|
+
export { default as _shadersSunVS } from './Source/Shaders/SunVS.js';
|
|
476
|
+
export { default as _shadersVector3DTileClampedPolylinesFS } from './Source/Shaders/Vector3DTileClampedPolylinesFS.js';
|
|
477
|
+
export { default as _shadersVector3DTileClampedPolylinesVS } from './Source/Shaders/Vector3DTileClampedPolylinesVS.js';
|
|
478
|
+
export { default as _shadersVector3DTilePolylinesVS } from './Source/Shaders/Vector3DTilePolylinesVS.js';
|
|
479
|
+
export { default as _shadersVectorTileVS } from './Source/Shaders/VectorTileVS.js';
|
|
480
|
+
export { default as _shadersViewportQuadFS } from './Source/Shaders/ViewportQuadFS.js';
|
|
481
|
+
export { default as _shadersViewportQuadVS } from './Source/Shaders/ViewportQuadVS.js';
|
|
478
482
|
export { default as AlphaMode } from './Source/Scene/AlphaMode.js';
|
|
479
483
|
export { default as Appearance } from './Source/Scene/Appearance.js';
|
|
480
484
|
export { default as ArcGisBaseMapType } from './Source/Scene/ArcGisBaseMapType.js';
|
|
@@ -562,6 +566,7 @@ export { default as DiscardEmptyTileImagePolicy } from './Source/Scene/DiscardEm
|
|
|
562
566
|
export { default as DiscardMissingTileImagePolicy } from './Source/Scene/DiscardMissingTileImagePolicy.js';
|
|
563
567
|
export { default as DracoLoader } from './Source/Scene/DracoLoader.js';
|
|
564
568
|
export { default as DynamicAtmosphereLightingType } from './Source/Scene/DynamicAtmosphereLightingType.js';
|
|
569
|
+
export { default as DynamicEnvironmentMapManager } from './Source/Scene/DynamicEnvironmentMapManager.js';
|
|
565
570
|
export { default as EllipsoidPrimitive } from './Source/Scene/EllipsoidPrimitive.js';
|
|
566
571
|
export { default as EllipsoidSurfaceAppearance } from './Source/Scene/EllipsoidSurfaceAppearance.js';
|
|
567
572
|
export { default as Empty3DTileContent } from './Source/Scene/Empty3DTileContent.js';
|
|
@@ -1058,14 +1063,6 @@ export { default as _shaderssolarRadius } from './Source/Shaders/Builtin/Constan
|
|
|
1058
1063
|
export { default as _shadersthreePiOver2 } from './Source/Shaders/Builtin/Constants/threePiOver2.js';
|
|
1059
1064
|
export { default as _shaderstwoPi } from './Source/Shaders/Builtin/Constants/twoPi.js';
|
|
1060
1065
|
export { default as _shaderswebMercatorMaxLatitude } from './Source/Shaders/Builtin/Constants/webMercatorMaxLatitude.js';
|
|
1061
|
-
export { default as _shadersdepthRangeStruct } from './Source/Shaders/Builtin/Structs/depthRangeStruct.js';
|
|
1062
|
-
export { default as _shadersmaterial } from './Source/Shaders/Builtin/Structs/material.js';
|
|
1063
|
-
export { default as _shadersmaterialInput } from './Source/Shaders/Builtin/Structs/materialInput.js';
|
|
1064
|
-
export { default as _shadersmodelMaterial } from './Source/Shaders/Builtin/Structs/modelMaterial.js';
|
|
1065
|
-
export { default as _shadersmodelVertexOutput } from './Source/Shaders/Builtin/Structs/modelVertexOutput.js';
|
|
1066
|
-
export { default as _shadersray } from './Source/Shaders/Builtin/Structs/ray.js';
|
|
1067
|
-
export { default as _shadersraySegment } from './Source/Shaders/Builtin/Structs/raySegment.js';
|
|
1068
|
-
export { default as _shadersshadowParameters } from './Source/Shaders/Builtin/Structs/shadowParameters.js';
|
|
1069
1066
|
export { default as _shadersHSBToRGB } from './Source/Shaders/Builtin/Functions/HSBToRGB.js';
|
|
1070
1067
|
export { default as _shadersHSLToRGB } from './Source/Shaders/Builtin/Functions/HSLToRGB.js';
|
|
1071
1068
|
export { default as _shadersRGBToHSB } from './Source/Shaders/Builtin/Functions/RGBToHSB.js';
|
|
@@ -1156,6 +1153,14 @@ export { default as _shaderswindowToEyeCoordinates } from './Source/Shaders/Buil
|
|
|
1156
1153
|
export { default as _shaderswriteDepthClamp } from './Source/Shaders/Builtin/Functions/writeDepthClamp.js';
|
|
1157
1154
|
export { default as _shaderswriteLogDepth } from './Source/Shaders/Builtin/Functions/writeLogDepth.js';
|
|
1158
1155
|
export { default as _shaderswriteNonPerspective } from './Source/Shaders/Builtin/Functions/writeNonPerspective.js';
|
|
1156
|
+
export { default as _shadersdepthRangeStruct } from './Source/Shaders/Builtin/Structs/depthRangeStruct.js';
|
|
1157
|
+
export { default as _shadersmaterial } from './Source/Shaders/Builtin/Structs/material.js';
|
|
1158
|
+
export { default as _shadersmaterialInput } from './Source/Shaders/Builtin/Structs/materialInput.js';
|
|
1159
|
+
export { default as _shadersmodelMaterial } from './Source/Shaders/Builtin/Structs/modelMaterial.js';
|
|
1160
|
+
export { default as _shadersmodelVertexOutput } from './Source/Shaders/Builtin/Structs/modelVertexOutput.js';
|
|
1161
|
+
export { default as _shadersray } from './Source/Shaders/Builtin/Structs/ray.js';
|
|
1162
|
+
export { default as _shadersraySegment } from './Source/Shaders/Builtin/Structs/raySegment.js';
|
|
1163
|
+
export { default as _shadersshadowParameters } from './Source/Shaders/Builtin/Structs/shadowParameters.js';
|
|
1159
1164
|
export { default as AnchorPointDirect } from './Source/Scene/Model/Extensions/Gpm/AnchorPointDirect.js';
|
|
1160
1165
|
export { default as AnchorPointIndirect } from './Source/Scene/Model/Extensions/Gpm/AnchorPointIndirect.js';
|
|
1161
1166
|
export { default as CorrelationGroup } from './Source/Scene/Model/Extensions/Gpm/CorrelationGroup.js';
|