@cesium/engine 2.3.0 → 2.4.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/{AxisAlignedBoundingBox-31fadcf0.js → AxisAlignedBoundingBox-4bfd84f3.js} +1 -1
- package/Build/Workers/{BoundingRectangle-995f0079.js → BoundingRectangle-5fd6403a.js} +1 -1
- package/Build/Workers/{BoxGeometry-7eb1af60.js → BoxGeometry-af7d05ef.js} +1 -1
- package/Build/Workers/{Color-2dc49658.js → Color-8e135f71.js} +5 -5
- package/Build/Workers/{CoplanarPolygonGeometryLibrary-d7d972d6.js → CoplanarPolygonGeometryLibrary-59c69b0a.js} +1 -1
- package/Build/Workers/{CorridorGeometryLibrary-1f5ef7b3.js → CorridorGeometryLibrary-63907365.js} +1 -1
- package/Build/Workers/{CylinderGeometry-23c67a6c.js → CylinderGeometry-dbaa1678.js} +1 -1
- package/Build/Workers/{EllipseGeometry-37014da4.js → EllipseGeometry-6508b78b.js} +1 -1
- package/Build/Workers/{EllipseGeometryLibrary-92ab6b1e.js → EllipseGeometryLibrary-21262a28.js} +1 -1
- package/Build/Workers/{EllipseOutlineGeometry-12b6fef5.js → EllipseOutlineGeometry-2a2510bb.js} +1 -1
- package/Build/Workers/{EllipsoidGeometry-508da15c.js → EllipsoidGeometry-8155e3a2.js} +1 -1
- package/Build/Workers/{EllipsoidOutlineGeometry-40d97455.js → EllipsoidOutlineGeometry-c045678d.js} +1 -1
- package/Build/Workers/{EllipsoidTangentPlane-46d4d9c2.js → EllipsoidTangentPlane-546c0d5e.js} +1 -1
- package/Build/Workers/{FrustumGeometry-38605e69.js → FrustumGeometry-d3ff16d0.js} +1 -1
- package/Build/Workers/{GeometryAttribute-a466e9c7.js → GeometryAttribute-13da9466.js} +1 -1
- package/Build/Workers/{GeometryPipeline-dcf79306.js → GeometryPipeline-03bc5709.js} +1 -1
- package/Build/Workers/{IntersectionTests-88c49b2e.js → IntersectionTests-85350792.js} +1 -1
- package/Build/Workers/{OrientedBoundingBox-2dd47921.js → OrientedBoundingBox-29fb0fcd.js} +1 -1
- package/Build/Workers/{PolygonGeometryLibrary-59126025.js → PolygonGeometryLibrary-d447448d.js} +1 -1
- package/Build/Workers/{PolygonPipeline-1fe328c0.js → PolygonPipeline-460cce4e.js} +1 -1
- package/Build/Workers/{PolylinePipeline-896735cc.js → PolylinePipeline-7119eb3f.js} +1 -1
- package/Build/Workers/{PolylineVolumeGeometryLibrary-9c0639f7.js → PolylineVolumeGeometryLibrary-d25f0050.js} +1 -1
- package/Build/Workers/{PrimitivePipeline-fc1a47ff.js → PrimitivePipeline-e648752b.js} +1 -1
- package/Build/Workers/{RectangleGeometryLibrary-a23c9ebe.js → RectangleGeometryLibrary-bb378fb6.js} +1 -1
- package/Build/Workers/{TerrainEncoding-51b8b33b.js → TerrainEncoding-c8e029a2.js} +1 -1
- package/Build/Workers/{Transforms-bc45e707.js → Transforms-e2d4a55a.js} +14 -0
- package/Build/Workers/{WallGeometryLibrary-007e9883.js → WallGeometryLibrary-3e0819ec.js} +1 -1
- package/Build/Workers/cesiumWorkerBootstrapper.js +1 -1
- package/Build/Workers/combineGeometry.js +1 -1
- package/Build/Workers/createBoxGeometry.js +1 -1
- package/Build/Workers/createBoxOutlineGeometry.js +1 -1
- package/Build/Workers/createCircleGeometry.js +1 -1
- package/Build/Workers/createCircleOutlineGeometry.js +1 -1
- package/Build/Workers/createCoplanarPolygonGeometry.js +1 -1
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +1 -1
- package/Build/Workers/createCorridorGeometry.js +1 -1
- package/Build/Workers/createCorridorOutlineGeometry.js +1 -1
- package/Build/Workers/createCylinderGeometry.js +1 -1
- package/Build/Workers/createCylinderOutlineGeometry.js +1 -1
- package/Build/Workers/createEllipseGeometry.js +1 -1
- package/Build/Workers/createEllipseOutlineGeometry.js +1 -1
- package/Build/Workers/createEllipsoidGeometry.js +1 -1
- package/Build/Workers/createEllipsoidOutlineGeometry.js +1 -1
- package/Build/Workers/createFrustumGeometry.js +1 -1
- package/Build/Workers/createFrustumOutlineGeometry.js +1 -1
- package/Build/Workers/createGeometry.js +1 -1
- package/Build/Workers/createGroundPolylineGeometry.js +1 -1
- package/Build/Workers/createPlaneGeometry.js +1 -1
- package/Build/Workers/createPlaneOutlineGeometry.js +1 -1
- package/Build/Workers/createPolygonGeometry.js +1 -1
- package/Build/Workers/createPolygonOutlineGeometry.js +1 -1
- package/Build/Workers/createPolylineGeometry.js +1 -1
- package/Build/Workers/createPolylineVolumeGeometry.js +1 -1
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +1 -1
- package/Build/Workers/createRectangleGeometry.js +1 -1
- package/Build/Workers/createRectangleOutlineGeometry.js +1 -1
- package/Build/Workers/createSimplePolylineGeometry.js +1 -1
- package/Build/Workers/createSphereGeometry.js +1 -1
- package/Build/Workers/createSphereOutlineGeometry.js +1 -1
- package/Build/Workers/createVectorTileGeometries.js +1 -1
- package/Build/Workers/createVectorTilePolygons.js +1 -1
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +1 -1
- package/Build/Workers/createVerticesFromHeightmap.js +1 -1
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +1 -1
- package/Build/Workers/createWallGeometry.js +1 -1
- package/Build/Workers/createWallOutlineGeometry.js +1 -1
- package/Build/Workers/package.js +1 -1
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +1 -1
- package/Source/Core/ArcGISTiledElevationTerrainProvider.js +3 -3
- package/Source/Core/CesiumTerrainProvider.js +28 -3
- package/Source/Core/Color.js +4 -4
- package/Source/Core/CustomHeightmapTerrainProvider.js +2 -2
- package/Source/Core/EllipsoidTerrainProvider.js +2 -2
- package/Source/Core/GoogleEarthEnterpriseMetadata.js +2 -2
- package/Source/Core/GoogleEarthEnterpriseTerrainProvider.js +4 -4
- package/Source/Core/GoogleMaps.js +56 -0
- package/Source/Core/Ion.js +3 -1
- package/Source/Core/RequestScheduler.js +1 -0
- package/Source/Core/Resource.js +13 -0
- package/Source/Core/VRTheWorldTerrainProvider.js +3 -3
- package/Source/Core/createWorldTerrain.js +2 -1
- package/Source/Core/sampleTerrain.js +5 -1
- package/Source/Core/sampleTerrainMostDetailed.js +5 -1
- package/Source/DataSources/DataSourceDisplay.js +3 -2
- package/Source/DataSources/Entity.js +2 -3
- package/Source/DataSources/ModelVisualizer.js +6 -1
- package/Source/Renderer/demodernizeShader.js +3 -0
- package/Source/Scene/ArcGisMapServerImageryProvider.js +23 -23
- package/Source/Scene/ArcGisMapService.js +2 -1
- package/Source/Scene/Billboard.js +0 -7
- package/Source/Scene/BingMapsImageryProvider.js +23 -23
- package/Source/Scene/Cesium3DTileBatchTable.js +0 -3
- package/Source/Scene/Cesium3DTileset.js +2 -1
- package/Source/Scene/Globe.js +7 -3
- package/Source/Scene/GlobeSurfaceTile.js +7 -1
- package/Source/Scene/GlobeSurfaceTileProvider.js +46 -21
- package/Source/Scene/GoogleEarthEnterpriseImageryProvider.js +24 -24
- package/Source/Scene/GoogleEarthEnterpriseMapsProvider.js +22 -22
- package/Source/Scene/GridImageryProvider.js +22 -22
- package/Source/Scene/Imagery.js +5 -2
- package/Source/Scene/ImageryLayer.js +13 -3
- package/Source/Scene/IonImageryProvider.js +23 -23
- package/Source/Scene/MapboxImageryProvider.js +22 -22
- package/Source/Scene/MapboxStyleImageryProvider.js +22 -22
- package/Source/Scene/Model/CustomShader.js +1 -1
- package/Source/Scene/Model/Model.js +5 -3
- package/Source/Scene/ScreenSpaceCameraController.js +140 -31
- package/Source/Scene/SingleTileImageryProvider.js +22 -22
- package/Source/Scene/TileCoordinatesImageryProvider.js +22 -22
- package/Source/Scene/TileMapServiceImageryProvider.js +1 -1
- package/Source/Scene/UrlTemplateImageryProvider.js +23 -23
- package/Source/Scene/WebMapServiceImageryProvider.js +22 -22
- package/Source/Scene/WebMapTileServiceImageryProvider.js +22 -22
- package/Source/Scene/computeFlyToLocationForRectangle.js +5 -1
- package/Source/Scene/createGooglePhotorealistic3DTileset.js +53 -0
- package/Source/Scene/createOsmBuildings.js +2 -1
- package/Source/Scene/createWorldImagery.js +1 -1
- package/Source/Shaders/BillboardCollectionFS.glsl +0 -4
- package/Source/Shaders/BillboardCollectionFS.js +1 -5
- package/Source/Shaders/Builtin/Functions/writeLogDepth.glsl +0 -3
- package/Source/Shaders/Builtin/Functions/writeLogDepth.js +0 -3
- package/Source/Shaders/Materials/ElevationContourMaterial.glsl +0 -4
- package/Source/Shaders/Materials/ElevationContourMaterial.js +1 -5
- package/Source/Shaders/Materials/GridMaterial.glsl +0 -4
- package/Source/Shaders/Materials/GridMaterial.js +1 -5
- package/Source/Shaders/Materials/PolylineArrowMaterial.glsl +0 -4
- package/Source/Shaders/Materials/PolylineArrowMaterial.js +1 -5
- package/Source/Shaders/Model/ModelFS.glsl +0 -6
- package/Source/Shaders/Model/ModelFS.js +1 -7
- package/Source/Widget/CesiumWidget.js +1 -1
- package/index.d.ts +44 -8
- package/index.js +389 -387
- package/package.json +2 -2
|
@@ -33,7 +33,7 @@ import IonWorldImageryStyle from "./IonWorldImageryStyle.js";
|
|
|
33
33
|
function createWorldImagery(options) {
|
|
34
34
|
deprecationWarning(
|
|
35
35
|
"createWorldImagery",
|
|
36
|
-
"createWorldImagery was deprecated in CesiumJS 1.104. It will be in CesiumJS 1.107. Use createWorldImageryAsync instead."
|
|
36
|
+
"createWorldImagery was deprecated in CesiumJS 1.104. It will be removed in CesiumJS 1.107. Use createWorldImageryAsync instead."
|
|
37
37
|
);
|
|
38
38
|
|
|
39
39
|
options = defaultValue(options, defaultValue.EMPTY_OBJECT);
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
//This file is automatically rebuilt by the Cesium build process.
|
|
2
|
-
export default "
|
|
3
|
-
#extension GL_OES_standard_derivatives : enable\n\
|
|
4
|
-
#endif\n\
|
|
5
|
-
\n\
|
|
6
|
-
uniform sampler2D u_atlas;\n\
|
|
2
|
+
export default "uniform sampler2D u_atlas;\n\
|
|
7
3
|
\n\
|
|
8
4
|
#ifdef VECTOR_TILE\n\
|
|
9
5
|
uniform vec4 u_highlightColor;\n\
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
//This file is automatically rebuilt by the Cesium build process.
|
|
2
|
-
export default "
|
|
3
|
-
#extension GL_OES_standard_derivatives : enable\n\
|
|
4
|
-
#endif\n\
|
|
5
|
-
\n\
|
|
6
|
-
uniform vec4 color;\n\
|
|
2
|
+
export default "uniform vec4 color;\n\
|
|
7
3
|
uniform float spacing;\n\
|
|
8
4
|
uniform float width;\n\
|
|
9
5
|
\n\
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
//This file is automatically rebuilt by the Cesium build process.
|
|
2
|
-
export default "
|
|
3
|
-
#extension GL_OES_standard_derivatives : enable\n\
|
|
4
|
-
#endif\n\
|
|
5
|
-
\n\
|
|
6
|
-
uniform vec4 color;\n\
|
|
2
|
+
export default "uniform vec4 color;\n\
|
|
7
3
|
uniform float cellAlpha;\n\
|
|
8
4
|
uniform vec2 lineCount;\n\
|
|
9
5
|
uniform vec2 lineThickness;\n\
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
//This file is automatically rebuilt by the Cesium build process.
|
|
2
|
-
export default "
|
|
3
|
-
#extension GL_OES_standard_derivatives : enable\n\
|
|
4
|
-
#endif\n\
|
|
5
|
-
\n\
|
|
6
|
-
uniform vec4 color;\n\
|
|
2
|
+
export default "uniform vec4 color;\n\
|
|
7
3
|
\n\
|
|
8
4
|
float getPointOnLine(vec2 p0, vec2 p1, float x)\n\
|
|
9
5
|
{\n\
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
//This file is automatically rebuilt by the Cesium build process.
|
|
2
|
-
export default "
|
|
3
|
-
#ifdef GL_OES_standard_derivatives\n\
|
|
4
|
-
#extension GL_OES_standard_derivatives : enable\n\
|
|
5
|
-
#endif\n\
|
|
6
|
-
#endif\n\
|
|
7
|
-
\n\
|
|
8
|
-
czm_modelMaterial defaultModelMaterial()\n\
|
|
2
|
+
export default "czm_modelMaterial defaultModelMaterial()\n\
|
|
9
3
|
{\n\
|
|
10
4
|
czm_modelMaterial material;\n\
|
|
11
5
|
material.diffuse = vec3(0.0);\n\
|
|
@@ -346,7 +346,7 @@ function CesiumWidget(container, options) {
|
|
|
346
346
|
if (defined(options.imageryProvider)) {
|
|
347
347
|
deprecationWarning(
|
|
348
348
|
"CesiumWidget options.imageryProvider",
|
|
349
|
-
"options.imageryProvider was deprecated in CesiumJS 1.104. It will be in CesiumJS 1.107. Use options.baseLayer instead."
|
|
349
|
+
"options.imageryProvider was deprecated in CesiumJS 1.104. It will be removed in CesiumJS 1.107. Use options.baseLayer instead."
|
|
350
350
|
);
|
|
351
351
|
}
|
|
352
352
|
|
package/index.d.ts
CHANGED
|
@@ -7613,6 +7613,24 @@ export class GoogleEarthEnterpriseTerrainProvider {
|
|
|
7613
7613
|
loadTileDataAvailability(x: number, y: number, level: number): undefined;
|
|
7614
7614
|
}
|
|
7615
7615
|
|
|
7616
|
+
/**
|
|
7617
|
+
* Default settings for accessing the Google Maps API.
|
|
7618
|
+
* <br/>
|
|
7619
|
+
* An API key is only required if you are using any Google Maps APIs, such as {@link createGooglePhotorealistic3DTileset}.
|
|
7620
|
+
* A default key is provided for evaluation purposes only.
|
|
7621
|
+
* Follow instructions for managing API keys for the Google Maps Platform at {@link https://developers.google.com/maps/documentation/embed/get-api-key}
|
|
7622
|
+
*/
|
|
7623
|
+
export namespace GoogleMaps {
|
|
7624
|
+
/**
|
|
7625
|
+
* Gets or sets the default Google Maps API key.
|
|
7626
|
+
*/
|
|
7627
|
+
var defaultApiKey: string;
|
|
7628
|
+
/**
|
|
7629
|
+
* Gets or sets the default Google Map Tiles API endpoint.
|
|
7630
|
+
*/
|
|
7631
|
+
var mapTilesApiEndpoint: string | Resource;
|
|
7632
|
+
}
|
|
7633
|
+
|
|
7616
7634
|
/**
|
|
7617
7635
|
* Represents a Gregorian date in a more precise format than the JavaScript Date object.
|
|
7618
7636
|
* In addition to submillisecond precision, this object can also represent leap seconds.
|
|
@@ -20261,13 +20279,14 @@ export namespace DataSourceDisplay {
|
|
|
20261
20279
|
/**
|
|
20262
20280
|
* A function which creates an array of visualizers used for visualization.
|
|
20263
20281
|
* @example
|
|
20264
|
-
* function createVisualizers(scene, dataSource) {
|
|
20265
|
-
* return [new Cesium.BillboardVisualizer(
|
|
20282
|
+
* function createVisualizers(scene, entityCluster, dataSource) {
|
|
20283
|
+
* return [new Cesium.BillboardVisualizer(entityCluster, dataSource.entities)];
|
|
20266
20284
|
* }
|
|
20267
20285
|
* @param scene - The scene to create visualizers for.
|
|
20286
|
+
* @param entityCluster - The entity cluster to create visualizers for.
|
|
20268
20287
|
* @param dataSource - The data source to create visualizers for.
|
|
20269
20288
|
*/
|
|
20270
|
-
type VisualizersCallback = (scene: Scene, dataSource: DataSource) => Visualizer[];
|
|
20289
|
+
type VisualizersCallback = (scene: Scene, entityCluster: EntityCluster, dataSource: DataSource) => Visualizer[];
|
|
20271
20290
|
}
|
|
20272
20291
|
|
|
20273
20292
|
/**
|
|
@@ -20856,11 +20875,10 @@ export class Entity {
|
|
|
20856
20875
|
*/
|
|
20857
20876
|
merge(source: Entity): void;
|
|
20858
20877
|
/**
|
|
20859
|
-
* Computes the model matrix for the entity's transform at specified time. Returns undefined if
|
|
20860
|
-
* are undefined.
|
|
20878
|
+
* Computes the model matrix for the entity's transform at specified time. Returns undefined if position is undefined
|
|
20861
20879
|
* @param time - The time to retrieve model matrix for.
|
|
20862
20880
|
* @param [result] - The object onto which to store the result.
|
|
20863
|
-
* @returns The modified result parameter or a new Matrix4 instance if one was not provided. Result is undefined if position
|
|
20881
|
+
* @returns The modified result parameter or a new Matrix4 instance if one was not provided. Result is undefined if position is undefined.
|
|
20864
20882
|
*/
|
|
20865
20883
|
computeModelMatrix(time: JulianDate, result?: Matrix4): Matrix4;
|
|
20866
20884
|
/**
|
|
@@ -36157,7 +36175,7 @@ export class CustomShader {
|
|
|
36157
36175
|
* @param uniformName - The GLSL name of the uniform. This must match one of the uniforms declared in the constructor
|
|
36158
36176
|
* @param value - The new value of the uniform.
|
|
36159
36177
|
*/
|
|
36160
|
-
setUniform(uniformName: string, value: boolean | number | Cartesian2 | Cartesian3 | Cartesian4 | Matrix2 | Matrix3 | Matrix4 | string | Resource): void;
|
|
36178
|
+
setUniform(uniformName: string, value: boolean | number | Cartesian2 | Cartesian3 | Cartesian4 | Matrix2 | Matrix3 | Matrix4 | string | Resource | TextureUniform): void;
|
|
36161
36179
|
}
|
|
36162
36180
|
|
|
36163
36181
|
/**
|
|
@@ -40709,7 +40727,7 @@ export class ScreenSpaceCameraController {
|
|
|
40709
40727
|
*/
|
|
40710
40728
|
lookEventTypes: CameraEventType | any[] | undefined;
|
|
40711
40729
|
/**
|
|
40712
|
-
* The minimum height the camera must be before picking the terrain instead of the ellipsoid.
|
|
40730
|
+
* The minimum height the camera must be before picking the terrain or scene content instead of the ellipsoid.
|
|
40713
40731
|
*/
|
|
40714
40732
|
minimumPickingTerrainHeight: number;
|
|
40715
40733
|
/**
|
|
@@ -43244,6 +43262,24 @@ export function createElevationBandMaterial(options: {
|
|
|
43244
43262
|
layers: createElevationBandMaterialBand[];
|
|
43245
43263
|
}): Material;
|
|
43246
43264
|
|
|
43265
|
+
/**
|
|
43266
|
+
* Creates a {@link Cesium3DTileset} instance for the Google Photorealistic 3D Tiles tileset.
|
|
43267
|
+
* @example
|
|
43268
|
+
* Cesium.GoogleMaps.defaultApiKey = "your-api-key";
|
|
43269
|
+
*
|
|
43270
|
+
* const viewer = new Cesium.Viewer("cesiumContainer");
|
|
43271
|
+
*
|
|
43272
|
+
* try {
|
|
43273
|
+
* const tileset = await Cesium.createGooglePhotorealistic3DTileset();
|
|
43274
|
+
* viewer.scene.primitives.add(tileset));
|
|
43275
|
+
* } catch (error) {
|
|
43276
|
+
* console.log(`Error creating tileset: ${error}`);
|
|
43277
|
+
* }
|
|
43278
|
+
* @param [key = GoogleMaps.defaultApiKey] - Your API key to access Google Photorealistic 3D Tiles. See {@link https://developers.google.com/maps/documentation/javascript/get-api-key} for instructions on how to create your own key.
|
|
43279
|
+
* @param [options] - An object describing initialization options.
|
|
43280
|
+
*/
|
|
43281
|
+
export function createGooglePhotorealistic3DTileset(key?: string, options?: Cesium3DTileset.ConstructorOptions): Promise<Cesium3DTileset>;
|
|
43282
|
+
|
|
43247
43283
|
/**
|
|
43248
43284
|
* Creates a {@link Cesium3DTileset} instance for the
|
|
43249
43285
|
* {@link https://cesium.com/content/cesium-osm-buildings/|Cesium OSM Buildings}
|