@cesium/engine 2.4.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Build/Workers/cesiumWorkerBootstrapper.js +1 -1
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +0 -22
- package/Build/Workers/package.js +1 -1
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Source/Core/ArcGISTiledElevationTerrainProvider.js +0 -75
- package/Source/Core/CesiumTerrainProvider.js +0 -75
- package/Source/Core/CustomHeightmapTerrainProvider.js +0 -38
- package/Source/Core/EllipsoidTerrainProvider.js +0 -37
- package/Source/Core/GoogleEarthEnterpriseMetadata.js +0 -53
- package/Source/Core/GoogleEarthEnterpriseTerrainProvider.js +1 -101
- package/Source/Core/GoogleMaps.js +1 -1
- package/Source/Core/Ion.js +1 -2
- package/Source/Core/TerrainProvider.js +0 -22
- package/Source/Core/VRTheWorldTerrainProvider.js +0 -59
- package/Source/Core/sampleTerrain.js +0 -7
- package/Source/Core/sampleTerrainMostDetailed.js +0 -7
- package/Source/DataSources/Cesium3DTilesetVisualizer.js +6 -5
- package/Source/DataSources/KmlTour.js +1 -12
- package/Source/DataSources/ModelVisualizer.js +0 -12
- package/Source/Renderer/Context.js +10 -2
- package/Source/Scene/ArcGisMapServerImageryProvider.js +7 -335
- package/Source/Scene/ArcGisMapService.js +1 -1
- package/Source/Scene/Billboard.js +7 -0
- package/Source/Scene/BingMapsImageryProvider.js +0 -326
- package/Source/Scene/Camera.js +1 -1
- package/Source/Scene/Cesium3DTile.js +4 -5
- package/Source/Scene/Cesium3DTileContent.js +0 -16
- package/Source/Scene/Cesium3DTilesVoxelProvider.js +0 -123
- package/Source/Scene/Cesium3DTileset.js +183 -184
- package/Source/Scene/Cesium3DTilesetBaseTraversal.js +1 -1
- package/Source/Scene/Cesium3DTilesetCache.js +1 -3
- package/Source/Scene/Cesium3DTilesetSkipTraversal.js +5 -2
- package/Source/Scene/Cesium3DTilesetTraversal.js +2 -2
- package/Source/Scene/ClassificationPrimitive.js +5 -43
- package/Source/Scene/Composite3DTileContent.js +0 -27
- package/Source/Scene/CreditDisplay.js +0 -54
- package/Source/Scene/DerivedCommand.js +15 -10
- package/Source/Scene/Empty3DTileContent.js +0 -21
- package/Source/Scene/Geometry3DTileContent.js +0 -29
- package/Source/Scene/Globe.js +1 -9
- package/Source/Scene/GlobeSurfaceTile.js +13 -8
- package/Source/Scene/GlobeSurfaceTileProvider.js +8 -60
- package/Source/Scene/GltfPipeline/removeUnusedElements.js +27 -0
- package/Source/Scene/GltfPipeline/updateVersion.js +21 -4
- package/Source/Scene/GoogleEarthEnterpriseImageryProvider.js +1 -339
- package/Source/Scene/GoogleEarthEnterpriseMapsProvider.js +0 -326
- package/Source/Scene/GridImageryProvider.js +0 -274
- package/Source/Scene/GroundPolylinePrimitive.js +5 -38
- package/Source/Scene/GroundPrimitive.js +5 -43
- package/Source/Scene/I3SDataProvider.js +4 -99
- package/Source/Scene/I3SLayer.js +15 -22
- package/Source/Scene/Imagery.js +1 -9
- package/Source/Scene/ImageryLayer.js +1 -40
- package/Source/Scene/ImageryProvider.js +0 -138
- package/Source/Scene/Implicit3DTileContent.js +0 -23
- package/Source/Scene/IonImageryProvider.js +1 -369
- package/Source/Scene/MapboxImageryProvider.js +0 -276
- package/Source/Scene/MapboxStyleImageryProvider.js +0 -274
- package/Source/Scene/Model/Model.js +6 -249
- package/Source/Scene/Model/Model3DTileContent.js +0 -50
- package/Source/Scene/Model/ModelAnimationCollection.js +1 -1
- package/Source/Scene/Model/PointCloudStylingPipelineStage.js +1 -1
- package/Source/Scene/Multiple3DTileContent.js +0 -27
- package/Source/Scene/Primitive.js +10 -38
- package/Source/Scene/QuadtreePrimitive.js +3 -5
- package/Source/Scene/QuadtreeTileProvider.js +0 -10
- package/Source/Scene/Scene.js +3 -3
- package/Source/Scene/ScreenSpaceCameraController.js +5 -5
- package/Source/Scene/SingleTileImageryProvider.js +6 -302
- package/Source/Scene/TileCoordinatesImageryProvider.js +0 -273
- package/Source/Scene/TileMapServiceImageryProvider.js +3 -48
- package/Source/Scene/Tileset3DTileContent.js +0 -22
- package/Source/Scene/TimeDynamicPointCloud.js +0 -28
- package/Source/Scene/UrlTemplateImageryProvider.js +0 -375
- package/Source/Scene/Vector3DTileContent.js +0 -29
- package/Source/Scene/VoxelPrimitive.js +9 -49
- package/Source/Scene/VoxelProvider.js +0 -24
- package/Source/Scene/WebMapServiceImageryProvider.js +0 -274
- package/Source/Scene/WebMapTileServiceImageryProvider.js +0 -274
- package/Source/Scene/computeFlyToLocationForRectangle.js +0 -6
- package/Source/Scene/createGooglePhotorealistic3DTileset.js +5 -0
- package/Source/Widget/CesiumWidget.js +2 -19
- package/index.d.ts +62 -1183
- package/index.js +54 -57
- package/package.json +2 -2
- package/Source/Core/createWorldTerrain.js +0 -61
- package/Source/Scene/createOsmBuildings.js +0 -82
- package/Source/Scene/createWorldImagery.js +0 -47
package/index.js
CHANGED
|
@@ -1,46 +1,4 @@
|
|
|
1
|
-
globalThis.CESIUM_VERSION = "1.
|
|
2
|
-
export { default as AutomaticUniforms } from './Source/Renderer/AutomaticUniforms.js';
|
|
3
|
-
export { default as Buffer } from './Source/Renderer/Buffer.js';
|
|
4
|
-
export { default as BufferUsage } from './Source/Renderer/BufferUsage.js';
|
|
5
|
-
export { default as ClearCommand } from './Source/Renderer/ClearCommand.js';
|
|
6
|
-
export { default as ComputeCommand } from './Source/Renderer/ComputeCommand.js';
|
|
7
|
-
export { default as ComputeEngine } from './Source/Renderer/ComputeEngine.js';
|
|
8
|
-
export { default as Context } from './Source/Renderer/Context.js';
|
|
9
|
-
export { default as ContextLimits } from './Source/Renderer/ContextLimits.js';
|
|
10
|
-
export { default as CubeMap } from './Source/Renderer/CubeMap.js';
|
|
11
|
-
export { default as CubeMapFace } from './Source/Renderer/CubeMapFace.js';
|
|
12
|
-
export { default as DrawCommand } from './Source/Renderer/DrawCommand.js';
|
|
13
|
-
export { default as Framebuffer } from './Source/Renderer/Framebuffer.js';
|
|
14
|
-
export { default as FramebufferManager } from './Source/Renderer/FramebufferManager.js';
|
|
15
|
-
export { default as MipmapHint } from './Source/Renderer/MipmapHint.js';
|
|
16
|
-
export { default as MultisampleFramebuffer } from './Source/Renderer/MultisampleFramebuffer.js';
|
|
17
|
-
export { default as Pass } from './Source/Renderer/Pass.js';
|
|
18
|
-
export { default as PassState } from './Source/Renderer/PassState.js';
|
|
19
|
-
export { default as PixelDatatype } from './Source/Renderer/PixelDatatype.js';
|
|
20
|
-
export { default as RenderState } from './Source/Renderer/RenderState.js';
|
|
21
|
-
export { default as Renderbuffer } from './Source/Renderer/Renderbuffer.js';
|
|
22
|
-
export { default as RenderbufferFormat } from './Source/Renderer/RenderbufferFormat.js';
|
|
23
|
-
export { default as Sampler } from './Source/Renderer/Sampler.js';
|
|
24
|
-
export { default as ShaderBuilder } from './Source/Renderer/ShaderBuilder.js';
|
|
25
|
-
export { default as ShaderCache } from './Source/Renderer/ShaderCache.js';
|
|
26
|
-
export { default as ShaderDestination } from './Source/Renderer/ShaderDestination.js';
|
|
27
|
-
export { default as ShaderFunction } from './Source/Renderer/ShaderFunction.js';
|
|
28
|
-
export { default as ShaderProgram } from './Source/Renderer/ShaderProgram.js';
|
|
29
|
-
export { default as ShaderSource } from './Source/Renderer/ShaderSource.js';
|
|
30
|
-
export { default as ShaderStruct } from './Source/Renderer/ShaderStruct.js';
|
|
31
|
-
export { default as Texture } from './Source/Renderer/Texture.js';
|
|
32
|
-
export { default as TextureCache } from './Source/Renderer/TextureCache.js';
|
|
33
|
-
export { default as TextureMagnificationFilter } from './Source/Renderer/TextureMagnificationFilter.js';
|
|
34
|
-
export { default as TextureMinificationFilter } from './Source/Renderer/TextureMinificationFilter.js';
|
|
35
|
-
export { default as TextureWrap } from './Source/Renderer/TextureWrap.js';
|
|
36
|
-
export { default as UniformState } from './Source/Renderer/UniformState.js';
|
|
37
|
-
export { default as VertexArray } from './Source/Renderer/VertexArray.js';
|
|
38
|
-
export { default as VertexArrayFacade } from './Source/Renderer/VertexArrayFacade.js';
|
|
39
|
-
export { default as createUniform } from './Source/Renderer/createUniform.js';
|
|
40
|
-
export { default as createUniformArray } from './Source/Renderer/createUniformArray.js';
|
|
41
|
-
export { default as demodernizeShader } from './Source/Renderer/demodernizeShader.js';
|
|
42
|
-
export { default as freezeRenderState } from './Source/Renderer/freezeRenderState.js';
|
|
43
|
-
export { default as loadCubeMap } from './Source/Renderer/loadCubeMap.js';
|
|
1
|
+
globalThis.CESIUM_VERSION = "1.107";
|
|
44
2
|
export { default as BillboardGraphics } from './Source/DataSources/BillboardGraphics.js';
|
|
45
3
|
export { default as BillboardVisualizer } from './Source/DataSources/BillboardVisualizer.js';
|
|
46
4
|
export { default as BoundingSphereState } from './Source/DataSources/BoundingSphereState.js';
|
|
@@ -147,6 +105,48 @@ export { default as createRawPropertyDescriptor } from './Source/DataSources/cre
|
|
|
147
105
|
export { default as exportKml } from './Source/DataSources/exportKml.js';
|
|
148
106
|
export { default as getElement } from './Source/DataSources/getElement.js';
|
|
149
107
|
export { default as heightReferenceOnEntityPropertyChanged } from './Source/DataSources/heightReferenceOnEntityPropertyChanged.js';
|
|
108
|
+
export { default as AutomaticUniforms } from './Source/Renderer/AutomaticUniforms.js';
|
|
109
|
+
export { default as Buffer } from './Source/Renderer/Buffer.js';
|
|
110
|
+
export { default as BufferUsage } from './Source/Renderer/BufferUsage.js';
|
|
111
|
+
export { default as ClearCommand } from './Source/Renderer/ClearCommand.js';
|
|
112
|
+
export { default as ComputeCommand } from './Source/Renderer/ComputeCommand.js';
|
|
113
|
+
export { default as ComputeEngine } from './Source/Renderer/ComputeEngine.js';
|
|
114
|
+
export { default as Context } from './Source/Renderer/Context.js';
|
|
115
|
+
export { default as ContextLimits } from './Source/Renderer/ContextLimits.js';
|
|
116
|
+
export { default as CubeMap } from './Source/Renderer/CubeMap.js';
|
|
117
|
+
export { default as CubeMapFace } from './Source/Renderer/CubeMapFace.js';
|
|
118
|
+
export { default as DrawCommand } from './Source/Renderer/DrawCommand.js';
|
|
119
|
+
export { default as Framebuffer } from './Source/Renderer/Framebuffer.js';
|
|
120
|
+
export { default as FramebufferManager } from './Source/Renderer/FramebufferManager.js';
|
|
121
|
+
export { default as MipmapHint } from './Source/Renderer/MipmapHint.js';
|
|
122
|
+
export { default as MultisampleFramebuffer } from './Source/Renderer/MultisampleFramebuffer.js';
|
|
123
|
+
export { default as Pass } from './Source/Renderer/Pass.js';
|
|
124
|
+
export { default as PassState } from './Source/Renderer/PassState.js';
|
|
125
|
+
export { default as PixelDatatype } from './Source/Renderer/PixelDatatype.js';
|
|
126
|
+
export { default as RenderState } from './Source/Renderer/RenderState.js';
|
|
127
|
+
export { default as Renderbuffer } from './Source/Renderer/Renderbuffer.js';
|
|
128
|
+
export { default as RenderbufferFormat } from './Source/Renderer/RenderbufferFormat.js';
|
|
129
|
+
export { default as Sampler } from './Source/Renderer/Sampler.js';
|
|
130
|
+
export { default as ShaderBuilder } from './Source/Renderer/ShaderBuilder.js';
|
|
131
|
+
export { default as ShaderCache } from './Source/Renderer/ShaderCache.js';
|
|
132
|
+
export { default as ShaderDestination } from './Source/Renderer/ShaderDestination.js';
|
|
133
|
+
export { default as ShaderFunction } from './Source/Renderer/ShaderFunction.js';
|
|
134
|
+
export { default as ShaderProgram } from './Source/Renderer/ShaderProgram.js';
|
|
135
|
+
export { default as ShaderSource } from './Source/Renderer/ShaderSource.js';
|
|
136
|
+
export { default as ShaderStruct } from './Source/Renderer/ShaderStruct.js';
|
|
137
|
+
export { default as Texture } from './Source/Renderer/Texture.js';
|
|
138
|
+
export { default as TextureCache } from './Source/Renderer/TextureCache.js';
|
|
139
|
+
export { default as TextureMagnificationFilter } from './Source/Renderer/TextureMagnificationFilter.js';
|
|
140
|
+
export { default as TextureMinificationFilter } from './Source/Renderer/TextureMinificationFilter.js';
|
|
141
|
+
export { default as TextureWrap } from './Source/Renderer/TextureWrap.js';
|
|
142
|
+
export { default as UniformState } from './Source/Renderer/UniformState.js';
|
|
143
|
+
export { default as VertexArray } from './Source/Renderer/VertexArray.js';
|
|
144
|
+
export { default as VertexArrayFacade } from './Source/Renderer/VertexArrayFacade.js';
|
|
145
|
+
export { default as createUniform } from './Source/Renderer/createUniform.js';
|
|
146
|
+
export { default as createUniformArray } from './Source/Renderer/createUniformArray.js';
|
|
147
|
+
export { default as demodernizeShader } from './Source/Renderer/demodernizeShader.js';
|
|
148
|
+
export { default as freezeRenderState } from './Source/Renderer/freezeRenderState.js';
|
|
149
|
+
export { default as loadCubeMap } from './Source/Renderer/loadCubeMap.js';
|
|
150
150
|
export { default as ApproximateTerrainHeights } from './Source/Core/ApproximateTerrainHeights.js';
|
|
151
151
|
export { default as ArcGISTiledElevationTerrainProvider } from './Source/Core/ArcGISTiledElevationTerrainProvider.js';
|
|
152
152
|
export { default as ArcType } from './Source/Core/ArcType.js';
|
|
@@ -380,7 +380,6 @@ export { default as buildModuleUrl } from './Source/Core/buildModuleUrl.js';
|
|
|
380
380
|
export { default as clone } from './Source/Core/clone.js';
|
|
381
381
|
export { default as combine } from './Source/Core/combine.js';
|
|
382
382
|
export { default as createGuid } from './Source/Core/createGuid.js';
|
|
383
|
-
export { default as createWorldTerrain } from './Source/Core/createWorldTerrain.js';
|
|
384
383
|
export { default as createWorldTerrainAsync } from './Source/Core/createWorldTerrainAsync.js';
|
|
385
384
|
export { default as decodeGoogleEarthEnterpriseData } from './Source/Core/decodeGoogleEarthEnterpriseData.js';
|
|
386
385
|
export { default as decodeVectorPolylinePositions } from './Source/Core/decodeVectorPolylinePositions.js';
|
|
@@ -422,6 +421,7 @@ export { default as subdivideArray } from './Source/Core/subdivideArray.js';
|
|
|
422
421
|
export { default as webGLConstantToGlslType } from './Source/Core/webGLConstantToGlslType.js';
|
|
423
422
|
export { default as wrapFunction } from './Source/Core/wrapFunction.js';
|
|
424
423
|
export { default as writeTextToCanvas } from './Source/Core/writeTextToCanvas.js';
|
|
424
|
+
export { default as CesiumWidget } from './Source/Widget/CesiumWidget.js';
|
|
425
425
|
export { default as _shadersAdjustTranslucentFS } from './Source/Shaders/AdjustTranslucentFS.js';
|
|
426
426
|
export { default as _shadersAtmosphereCommon } from './Source/Shaders/AtmosphereCommon.js';
|
|
427
427
|
export { default as _shadersBillboardCollectionFS } from './Source/Shaders/BillboardCollectionFS.js';
|
|
@@ -781,10 +781,8 @@ export { default as computeFlyToLocationForRectangle } from './Source/Scene/comp
|
|
|
781
781
|
export { default as createBillboardPointCallback } from './Source/Scene/createBillboardPointCallback.js';
|
|
782
782
|
export { default as createElevationBandMaterial } from './Source/Scene/createElevationBandMaterial.js';
|
|
783
783
|
export { default as createGooglePhotorealistic3DTileset } from './Source/Scene/createGooglePhotorealistic3DTileset.js';
|
|
784
|
-
export { default as createOsmBuildings } from './Source/Scene/createOsmBuildings.js';
|
|
785
784
|
export { default as createOsmBuildingsAsync } from './Source/Scene/createOsmBuildingsAsync.js';
|
|
786
785
|
export { default as createTangentSpaceDebugPrimitive } from './Source/Scene/createTangentSpaceDebugPrimitive.js';
|
|
787
|
-
export { default as createWorldImagery } from './Source/Scene/createWorldImagery.js';
|
|
788
786
|
export { default as createWorldImageryAsync } from './Source/Scene/createWorldImageryAsync.js';
|
|
789
787
|
export { default as findContentMetadata } from './Source/Scene/findContentMetadata.js';
|
|
790
788
|
export { default as findGroupMetadata } from './Source/Scene/findGroupMetadata.js';
|
|
@@ -799,7 +797,7 @@ export { default as parseFeatureMetadataLegacy } from './Source/Scene/parseFeatu
|
|
|
799
797
|
export { default as parseStructuralMetadata } from './Source/Scene/parseStructuralMetadata.js';
|
|
800
798
|
export { default as preprocess3DTileContent } from './Source/Scene/preprocess3DTileContent.js';
|
|
801
799
|
export { default as processVoxelProperties } from './Source/Scene/processVoxelProperties.js';
|
|
802
|
-
export { default as
|
|
800
|
+
export { default as _shadersCzmBuiltins } from './Source/Shaders/Builtin/CzmBuiltins.js';
|
|
803
801
|
export { default as _shadersAllMaterialAppearanceFS } from './Source/Shaders/Appearances/AllMaterialAppearanceFS.js';
|
|
804
802
|
export { default as _shadersAllMaterialAppearanceVS } from './Source/Shaders/Appearances/AllMaterialAppearanceVS.js';
|
|
805
803
|
export { default as _shadersBasicMaterialAppearanceFS } from './Source/Shaders/Appearances/BasicMaterialAppearanceFS.js';
|
|
@@ -814,7 +812,6 @@ export { default as _shadersPolylineColorAppearanceVS } from './Source/Shaders/A
|
|
|
814
812
|
export { default as _shadersPolylineMaterialAppearanceVS } from './Source/Shaders/Appearances/PolylineMaterialAppearanceVS.js';
|
|
815
813
|
export { default as _shadersTexturedMaterialAppearanceFS } from './Source/Shaders/Appearances/TexturedMaterialAppearanceFS.js';
|
|
816
814
|
export { default as _shadersTexturedMaterialAppearanceVS } from './Source/Shaders/Appearances/TexturedMaterialAppearanceVS.js';
|
|
817
|
-
export { default as _shadersCzmBuiltins } from './Source/Shaders/Builtin/CzmBuiltins.js';
|
|
818
815
|
export { default as _shadersAspectRampMaterial } from './Source/Shaders/Materials/AspectRampMaterial.js';
|
|
819
816
|
export { default as _shadersBumpMapMaterial } from './Source/Shaders/Materials/BumpMapMaterial.js';
|
|
820
817
|
export { default as _shadersCheckerboardMaterial } from './Source/Shaders/Materials/CheckerboardMaterial.js';
|
|
@@ -1031,6 +1028,15 @@ export { default as _shaderssolarRadius } from './Source/Shaders/Builtin/Constan
|
|
|
1031
1028
|
export { default as _shadersthreePiOver2 } from './Source/Shaders/Builtin/Constants/threePiOver2.js';
|
|
1032
1029
|
export { default as _shaderstwoPi } from './Source/Shaders/Builtin/Constants/twoPi.js';
|
|
1033
1030
|
export { default as _shaderswebMercatorMaxLatitude } from './Source/Shaders/Builtin/Constants/webMercatorMaxLatitude.js';
|
|
1031
|
+
export { default as _shadersdepthRangeStruct } from './Source/Shaders/Builtin/Structs/depthRangeStruct.js';
|
|
1032
|
+
export { default as _shadersmaterial } from './Source/Shaders/Builtin/Structs/material.js';
|
|
1033
|
+
export { default as _shadersmaterialInput } from './Source/Shaders/Builtin/Structs/materialInput.js';
|
|
1034
|
+
export { default as _shadersmodelMaterial } from './Source/Shaders/Builtin/Structs/modelMaterial.js';
|
|
1035
|
+
export { default as _shadersmodelVertexOutput } from './Source/Shaders/Builtin/Structs/modelVertexOutput.js';
|
|
1036
|
+
export { default as _shaderspbrParameters } from './Source/Shaders/Builtin/Structs/pbrParameters.js';
|
|
1037
|
+
export { default as _shadersray } from './Source/Shaders/Builtin/Structs/ray.js';
|
|
1038
|
+
export { default as _shadersraySegment } from './Source/Shaders/Builtin/Structs/raySegment.js';
|
|
1039
|
+
export { default as _shadersshadowParameters } from './Source/Shaders/Builtin/Structs/shadowParameters.js';
|
|
1034
1040
|
export { default as _shadersHSBToRGB } from './Source/Shaders/Builtin/Functions/HSBToRGB.js';
|
|
1035
1041
|
export { default as _shadersHSLToRGB } from './Source/Shaders/Builtin/Functions/HSLToRGB.js';
|
|
1036
1042
|
export { default as _shadersRGBToHSB } from './Source/Shaders/Builtin/Functions/RGBToHSB.js';
|
|
@@ -1115,13 +1121,4 @@ export { default as _shaderswindowToEyeCoordinates } from './Source/Shaders/Buil
|
|
|
1115
1121
|
export { default as _shaderswriteDepthClamp } from './Source/Shaders/Builtin/Functions/writeDepthClamp.js';
|
|
1116
1122
|
export { default as _shaderswriteLogDepth } from './Source/Shaders/Builtin/Functions/writeLogDepth.js';
|
|
1117
1123
|
export { default as _shaderswriteNonPerspective } from './Source/Shaders/Builtin/Functions/writeNonPerspective.js';
|
|
1118
|
-
export { default as _shadersdepthRangeStruct } from './Source/Shaders/Builtin/Structs/depthRangeStruct.js';
|
|
1119
|
-
export { default as _shadersmaterial } from './Source/Shaders/Builtin/Structs/material.js';
|
|
1120
|
-
export { default as _shadersmaterialInput } from './Source/Shaders/Builtin/Structs/materialInput.js';
|
|
1121
|
-
export { default as _shadersmodelMaterial } from './Source/Shaders/Builtin/Structs/modelMaterial.js';
|
|
1122
|
-
export { default as _shadersmodelVertexOutput } from './Source/Shaders/Builtin/Structs/modelVertexOutput.js';
|
|
1123
|
-
export { default as _shaderspbrParameters } from './Source/Shaders/Builtin/Structs/pbrParameters.js';
|
|
1124
|
-
export { default as _shadersray } from './Source/Shaders/Builtin/Structs/ray.js';
|
|
1125
|
-
export { default as _shadersraySegment } from './Source/Shaders/Builtin/Structs/raySegment.js';
|
|
1126
|
-
export { default as _shadersshadowParameters } from './Source/Shaders/Builtin/Structs/shadowParameters.js';
|
|
1127
1124
|
export { default as createTaskProcessorWorker } from './Source/WorkersES6/createTaskProcessorWorker.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cesium/engine",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "CesiumJS is a JavaScript library for creating 3D globes and 2D maps in a web browser without a plugin.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"3D",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"./Specs/**/*"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@tweenjs/tween.js": "^
|
|
35
|
+
"@tweenjs/tween.js": "^21.0.0",
|
|
36
36
|
"@zip.js/zip.js": "2.4.x",
|
|
37
37
|
"autolinker": "^4.0.0",
|
|
38
38
|
"bitmap-sdf": "^1.0.3",
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import CesiumTerrainProvider from "./CesiumTerrainProvider.js";
|
|
2
|
-
import defaultValue from "./defaultValue.js";
|
|
3
|
-
import deprecationWarning from "./deprecationWarning.js";
|
|
4
|
-
import IonResource from "./IonResource.js";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Creates a {@link CesiumTerrainProvider} instance for the {@link https://cesium.com/content/#cesium-world-terrain|Cesium World Terrain}.
|
|
8
|
-
*
|
|
9
|
-
* @function
|
|
10
|
-
* @deprecated
|
|
11
|
-
*
|
|
12
|
-
* @param {object} [options] Object with the following properties:
|
|
13
|
-
* @param {boolean} [options.requestVertexNormals=false] Flag that indicates if the client should request additional lighting information from the server if available.
|
|
14
|
-
* @param {boolean} [options.requestWaterMask=false] Flag that indicates if the client should request per tile water masks from the server if available.
|
|
15
|
-
* @returns {CesiumTerrainProvider}
|
|
16
|
-
*
|
|
17
|
-
* @see Ion
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* // Create Cesium World Terrain with default settings
|
|
21
|
-
* const viewer = new Cesium.Viewer('cesiumContainer', {
|
|
22
|
-
* terrainProvider : Cesium.createWorldTerrain();
|
|
23
|
-
* });
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* // Create Cesium World Terrain with water and normals.
|
|
27
|
-
* const viewer1 = new Cesium.Viewer('cesiumContainer', {
|
|
28
|
-
* terrainProvider : Cesium.createWorldTerrain({
|
|
29
|
-
* requestWaterMask : true,
|
|
30
|
-
* requestVertexNormals : true
|
|
31
|
-
* });
|
|
32
|
-
* });
|
|
33
|
-
*
|
|
34
|
-
*/
|
|
35
|
-
function createWorldTerrain(options) {
|
|
36
|
-
deprecationWarning(
|
|
37
|
-
"createWorldTerrain",
|
|
38
|
-
"createWorldTerrain was deprecated in CesiumJS 1.104. It will be removed in CesiumJS 1.107. Use createWorldTerrainAsync instead."
|
|
39
|
-
);
|
|
40
|
-
|
|
41
|
-
options = defaultValue(options, defaultValue.EMPTY_OBJECT);
|
|
42
|
-
|
|
43
|
-
const provider = new CesiumTerrainProvider({
|
|
44
|
-
requestVertexNormals: defaultValue(options.requestVertexNormals, false),
|
|
45
|
-
requestWaterMask: defaultValue(options.requestWaterMask, false),
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
// This is here in order to avoid throwing a second deprecation error
|
|
49
|
-
// by using the deprecated url parameter in the constructor above
|
|
50
|
-
provider._readyPromise = CesiumTerrainProvider._initializeReadyPromise(
|
|
51
|
-
{
|
|
52
|
-
url: IonResource.fromAssetId(1),
|
|
53
|
-
requestVertexNormals: defaultValue(options.requestVertexNormals, false),
|
|
54
|
-
requestWaterMask: defaultValue(options.requestWaterMask, false),
|
|
55
|
-
},
|
|
56
|
-
provider
|
|
57
|
-
);
|
|
58
|
-
|
|
59
|
-
return provider;
|
|
60
|
-
}
|
|
61
|
-
export default createWorldTerrain;
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import Color from "../Core/Color.js";
|
|
2
|
-
import combine from "../Core/combine.js";
|
|
3
|
-
import defaultValue from "../Core/defaultValue.js";
|
|
4
|
-
import defined from "../Core/defined.js";
|
|
5
|
-
import deprecationWarning from "../Core/deprecationWarning.js";
|
|
6
|
-
import IonResource from "../Core/IonResource.js";
|
|
7
|
-
import Cesium3DTileset from "./Cesium3DTileset.js";
|
|
8
|
-
import Cesium3DTileStyle from "./Cesium3DTileStyle.js";
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Creates a {@link Cesium3DTileset} instance for the
|
|
12
|
-
* {@link https://cesium.com/content/cesium-osm-buildings/|Cesium OSM Buildings}
|
|
13
|
-
* tileset.
|
|
14
|
-
*
|
|
15
|
-
* @function
|
|
16
|
-
* @deprecated
|
|
17
|
-
*
|
|
18
|
-
* @param {object} [options] Construction options. Any options allowed by the {@link Cesium3DTileset} constructor
|
|
19
|
-
* may be specified here. In addition to those, the following properties are supported:
|
|
20
|
-
* @param {Color} [options.defaultColor=Color.WHITE] The default color to use for buildings
|
|
21
|
-
* that do not have a color. This parameter is ignored if <code>options.style</code> is specified.
|
|
22
|
-
* @param {Cesium3DTileStyle} [options.style] The style to use with the tileset. If not
|
|
23
|
-
* specified, a default style is used which gives each building or building part a
|
|
24
|
-
* color inferred from its OpenStreetMap <code>tags</code>. If no color can be inferred,
|
|
25
|
-
* <code>options.defaultColor</code> is used.
|
|
26
|
-
* @param {boolean} [options.enableShowOutline=true] If true, enable rendering outlines. This can be set to false to avoid the additional processing of geometry at load time.
|
|
27
|
-
* @param {boolean} [options.showOutline=true] Whether to show outlines around buildings. When true,
|
|
28
|
-
* outlines are displayed. When false, outlines are not displayed.
|
|
29
|
-
* @returns {Cesium3DTileset}
|
|
30
|
-
*
|
|
31
|
-
* @see Ion
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* // Create Cesium OSM Buildings with default styling
|
|
35
|
-
* const viewer = new Cesium.Viewer('cesiumContainer');
|
|
36
|
-
* viewer.scene.primitives.add(Cesium.createOsmBuildings());
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* // Create Cesium OSM Buildings with a custom style highlighting
|
|
40
|
-
* // schools and hospitals.
|
|
41
|
-
* viewer.scene.primitives.add(Cesium.createOsmBuildings({
|
|
42
|
-
* style: new Cesium.Cesium3DTileStyle({
|
|
43
|
-
* color: {
|
|
44
|
-
* conditions: [
|
|
45
|
-
* ["${feature['building']} === 'hospital'", "color('#0000FF')"],
|
|
46
|
-
* ["${feature['building']} === 'school'", "color('#00FF00')"],
|
|
47
|
-
* [true, "color('#ffffff')"]
|
|
48
|
-
* ]
|
|
49
|
-
* }
|
|
50
|
-
* })
|
|
51
|
-
* }));
|
|
52
|
-
*/
|
|
53
|
-
function createOsmBuildings(options) {
|
|
54
|
-
deprecationWarning(
|
|
55
|
-
"createOsmBuildings",
|
|
56
|
-
"createOsmBuildings was deprecated in CesiumJS 1.104. It will be removed in CesiumJS 1.107. Use createOsmBuildingsAsync instead."
|
|
57
|
-
);
|
|
58
|
-
|
|
59
|
-
options = combine(options, {
|
|
60
|
-
url: IonResource.fromAssetId(96188),
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
const tileset = new Cesium3DTileset(options);
|
|
64
|
-
|
|
65
|
-
let style = options.style;
|
|
66
|
-
|
|
67
|
-
if (!defined(style)) {
|
|
68
|
-
const color = defaultValue(
|
|
69
|
-
options.defaultColor,
|
|
70
|
-
Color.WHITE
|
|
71
|
-
).toCssColorString();
|
|
72
|
-
style = new Cesium3DTileStyle({
|
|
73
|
-
color: `Boolean(\${feature['cesium#color']}) ? color(\${feature['cesium#color']}) : ${color}`,
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
tileset.style = style;
|
|
78
|
-
|
|
79
|
-
return tileset;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export default createOsmBuildings;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import defaultValue from "../Core/defaultValue.js";
|
|
2
|
-
import deprecationWarning from "../Core/deprecationWarning.js";
|
|
3
|
-
import IonImageryProvider from "./IonImageryProvider.js";
|
|
4
|
-
import IonWorldImageryStyle from "./IonWorldImageryStyle.js";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Creates an {@link IonImageryProvider} instance for ion's default global base imagery layer, currently Bing Maps.
|
|
8
|
-
*
|
|
9
|
-
* @function
|
|
10
|
-
*
|
|
11
|
-
* @param {object} [options] Object with the following properties:
|
|
12
|
-
* @param {IonWorldImageryStyle} [options.style=IonWorldImageryStyle] The style of base imagery, only AERIAL, AERIAL_WITH_LABELS, and ROAD are currently supported.
|
|
13
|
-
* @returns {IonImageryProvider}
|
|
14
|
-
* @deprecated
|
|
15
|
-
*
|
|
16
|
-
* @see Ion
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* // Create Cesium World Imagery with default settings
|
|
20
|
-
* const viewer = new Cesium.Viewer('cesiumContainer', {
|
|
21
|
-
* imageryProvider : Cesium.createWorldImagery();
|
|
22
|
-
* });
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* // Create Cesium World Imagery with a different style
|
|
26
|
-
* const viewer = new Cesium.Viewer('cesiumContainer', {
|
|
27
|
-
* imageryProvider : Cesium.createWorldImagery({
|
|
28
|
-
* style: Cesium.IonWorldImageryStyle.AERIAL_WITH_LABELS
|
|
29
|
-
* })
|
|
30
|
-
* });
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
33
|
-
function createWorldImagery(options) {
|
|
34
|
-
deprecationWarning(
|
|
35
|
-
"createWorldImagery",
|
|
36
|
-
"createWorldImagery was deprecated in CesiumJS 1.104. It will be removed in CesiumJS 1.107. Use createWorldImageryAsync instead."
|
|
37
|
-
);
|
|
38
|
-
|
|
39
|
-
options = defaultValue(options, defaultValue.EMPTY_OBJECT);
|
|
40
|
-
const style = defaultValue(options.style, IonWorldImageryStyle.AERIAL);
|
|
41
|
-
const provider = new IonImageryProvider();
|
|
42
|
-
|
|
43
|
-
// This is here for backwards compatibility
|
|
44
|
-
IonImageryProvider._initialize(provider, style, options);
|
|
45
|
-
return provider;
|
|
46
|
-
}
|
|
47
|
-
export default createWorldImagery;
|