@baidumap/mapv-three 1.3.3 → 1.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/README.md +3 -3
- package/dist/assets/textures/cloud/stbn.bin +0 -0
- package/dist/assets/textures/weather/thunder.jpg +0 -0
- package/dist/assets/wasm/lanelet.js +3296 -165
- package/dist/assets/wasm/lanelet.wasm +0 -0
- package/dist/assets/workers/{BaiduVectorParser.worker-d550338e.js → BaiduVectorParser.worker-486240e8.js} +977 -930
- package/dist/assets/workers/{CesiumTerrainParser.worker-20119751.js → CesiumTerrainParser.worker-ba35b937.js} +1032 -954
- package/dist/assets/workers/{MVTParser.worker-7dc8b0e4.js → MVTParser.worker-bb80e3b4.js} +755 -699
- package/dist/devtool/panel.js +108 -29
- package/dist/mapvthree.module.js +45540 -46298
- package/dist/mapvthree.umd.js +13 -7
- package/dist/types/Internal.d.ts +2 -0
- package/dist/types/adapters/bmap/Icon.d.ts +18 -0
- package/dist/types/adapters/bmap/InfoWindow.d.ts +124 -0
- package/dist/types/adapters/bmap/Label.d.ts +58 -0
- package/dist/types/adapters/bmap/Map.d.ts +124 -0
- package/dist/types/adapters/bmap/Marker.d.ts +28 -0
- package/dist/types/adapters/bmap/Overlay.d.ts +18 -0
- package/dist/types/adapters/bmap/Pixel.d.ts +1 -0
- package/dist/types/adapters/bmap/Point.d.ts +8 -0
- package/dist/types/adapters/bmap/Size.d.ts +8 -0
- package/dist/types/adapters/bmap/index.d.ts +8 -0
- package/dist/types/adapters/index.d.ts +1 -0
- package/dist/types/index.d.ts +3 -2
- package/dist/types/index.open.d.ts +5 -0
- package/dist/types/threejs/controls/PointerLockControls.d.ts +2 -0
- package/dist/types/threejs/geometries/text/ScreenTextGeometry.d.ts +15 -0
- package/dist/types/threejs/loaders/utilities/BatchTableHierarchyExtension.d.ts +4 -4
- package/dist/types/threejs/loaders/utilities/FeatureTable.d.ts +1 -1
- package/dist/types/threejs/materials/effects/LightningBillboardMaterial.d.ts +3 -0
- package/dist/types/threejs/materials/effects/LightningMaterial.d.ts +9 -0
- package/dist/types/threejs/materials/extend/ExtendMeshStandardMaterial.d.ts +1 -0
- package/dist/types/threejs/materials/natural/DynamicSkyMaterial.d.ts +1 -0
- package/dist/types/threejs/materials/natural/StaticSkyMaterial.d.ts +1 -0
- package/dist/types/threejs/materials/natural/VerticalGradientSkyMaterial.d.ts +1 -0
- package/dist/types/threejs/materials/polygon/PolygonMaterial.d.ts +1 -0
- package/dist/types/threejs/materials/text/ScreenTextMaterial.d.ts +25 -0
- package/dist/types/threejs/objects/GeoInstancedMesh.d.ts +1 -0
- package/dist/types/threejs/objects/line/FatLineInternal.d.ts +4 -0
- package/dist/types/threejs/objects/line/Polyline.d.ts +1 -1
- package/dist/types/threejs/objects/point/Icon.d.ts +1 -0
- package/dist/types/threejs/objects/point/Label.d.ts +15 -2
- package/dist/types/threejs/objects/point/label/GeometryBufferBuilder.d.ts +3 -0
- package/dist/types/threejs/objects/point/label/TextBoxCalculator.d.ts +5 -3
- package/dist/types/threejs/objects/text/ScreenText.d.ts +273 -0
- package/dist/types/threejs/objects/text/font-atlas-manager.d.ts +10 -2
- package/dist/types/threejs/objects/text/utils.d.ts +1 -1
- package/dist/types/threemap/3dtiles/HDMap3DTiles.d.ts +26 -0
- package/dist/types/threemap/3dtiles/materials/Default3DTilesMaterialManager.d.ts +51 -3
- package/dist/types/threemap/Engine.d.ts +23 -4
- package/dist/types/threemap/animations/ObjectTracker.d.ts +73 -44
- package/dist/types/threemap/animations/PathTracker.d.ts +92 -24
- package/dist/types/threemap/animations/RotateTracker.d.ts +115 -21
- package/dist/types/threemap/animations/TrackerAbstract.d.ts +15 -11
- package/dist/types/threemap/controls/PointerLockControls.d.ts +8 -2
- package/dist/types/threemap/controls/controller/ColumbusController.d.ts +10 -0
- package/dist/types/threemap/controls/controller/Scene3DController.d.ts +9 -0
- package/dist/types/threemap/controls/editors/Editor.d.ts +3 -0
- package/dist/types/threemap/engine/Clock.d.ts +156 -0
- package/dist/types/threemap/engine/Controller.d.ts +141 -0
- package/dist/types/threemap/engine/Map.d.ts +34 -4
- package/dist/types/threemap/engine/Rendering.d.ts +15 -0
- package/dist/types/threemap/engine/event/EntityProxy.d.ts +1 -0
- package/dist/types/threemap/engine/map/BlankMap.d.ts +1 -1
- package/dist/types/threemap/engine/map/BlankMap3DControl.d.ts +4 -1
- package/dist/types/{threejs → threemap/engine/map}/controls/DraggingMovementAggregator.d.ts +3 -0
- package/dist/types/{threejs → threemap/engine/map}/controls/MapControl3D.d.ts +19 -2
- package/dist/types/{threejs → threemap/engine/map}/controls/PointerMovementAggregator.d.ts +3 -0
- package/dist/types/threemap/engine/map/earth/Earth.d.ts +1 -0
- package/dist/types/threemap/engine/rendering/Collision.d.ts +5 -0
- package/dist/types/threemap/engine/rendering/Label.d.ts +15 -0
- package/dist/types/threemap/engine/rendering/MainNew.d.ts +1 -1
- package/dist/types/threemap/engine/rendering/postprocessing/OpaquePostprocessings.d.ts +1 -1
- package/dist/types/threemap/engine/rendering/postprocessing/SkyAtmospherePass.d.ts +1 -0
- package/dist/types/threemap/engine/rendering/scene/DirectSceneRendering.d.ts +5 -0
- package/dist/types/threemap/mapView/geo/terrainData/QuantizedMeshTerrainData.d.ts +1 -1
- package/dist/types/threemap/mapView/grid/BaiduVectorOfflineGrid.d.ts +5 -0
- package/dist/types/threemap/mapView/map/MapView.d.ts +3 -0
- package/dist/types/threemap/mapView/parser/baidulane/ElementParser.d.ts +86 -0
- package/dist/types/threemap/mapView/parser/baidulane/StyleParser.d.ts +28 -0
- package/dist/types/threemap/mapView/parser/baidulane/constants/index.d.ts +25 -0
- package/dist/types/threemap/mapView/parser/baidulane/constants/types.d.ts +47 -0
- package/dist/types/threemap/mapView/parser/baidulane/core/GeometryBuilder.d.ts +40 -0
- package/dist/types/threemap/mapView/parser/baidulane/core/LayerManager.d.ts +41 -0
- package/dist/types/threemap/mapView/parser/baidulane/core/MaterialFactory.d.ts +71 -0
- package/dist/types/threemap/mapView/parser/baidulane/core/StyleManager.d.ts +50 -0
- package/dist/types/threemap/mapView/parser/baidulane/core/TextureManager.d.ts +65 -0
- package/dist/types/threemap/mapView/parser/baidulane/core/wasmManager.d.ts +18 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/Base.d.ts +46 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/Building3d.d.ts +15 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/FlatSymbol.d.ts +15 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/LabelLine.d.ts +36 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/Line.d.ts +15 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/Line3d.d.ts +15 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/Line3dTexture.d.ts +3 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/LineDash.d.ts +7 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/LineTexture.d.ts +7 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/Poi.d.ts +26 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/Polygon.d.ts +15 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/Polygon3d.d.ts +40 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/PolygonExtrude.d.ts +15 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/PolygonExtrudeTexture.d.ts +18 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/PolygonOpacity.d.ts +7 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/SimplePoint.d.ts +39 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/Background.d.ts +11 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/Base.d.ts +27 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/BridgePier.d.ts +20 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/DebugLine.d.ts +16 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/DebugPoint.d.ts +5 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/DebugPolygon.d.ts +20 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/GaoqingGradient.d.ts +16 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/GaoqingGuide.d.ts +11 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/GaoqingLine.d.ts +11 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/GaoqingPoly.d.ts +15 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/GaoqingRoad.d.ts +13 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/HRegion.d.ts +11 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/LineName.d.ts +48 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/Link.d.ts +10 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/Poi.d.ts +7 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/Poly.d.ts +11 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/Texture.d.ts +10 -0
- package/dist/types/threemap/mapView/parser/baidulane/utils/color.d.ts +13 -0
- package/dist/types/threemap/mapView/parser/baidulane/utils/coordinate.d.ts +18 -0
- package/dist/types/threemap/mapView/parser/baidulane/utils/geometry.d.ts +3 -0
- package/dist/types/threemap/mapView/parser/baidulane/utils/icon.d.ts +8 -0
- package/dist/types/threemap/mapView/parser/baidulane/utils/merge.d.ts +7 -0
- package/dist/types/threemap/mapView/parser/baidulane/utils/tracer.d.ts +7 -0
- package/dist/types/{util/mapbox.d.ts → threemap/mapView/parser/mapbox/util.d.ts} +1 -1
- package/dist/types/threemap/mapView/surface/GroundSceneRenderer.d.ts +7 -2
- package/dist/types/threemap/mapView/surface/MapSurface.d.ts +2 -0
- package/dist/types/threemap/mapView/surface/strategy/FastTileLoaderStrategy.d.ts +16 -0
- package/dist/types/threemap/mapView/tileProvider/terrain/CesiumTerrainTileProvider.d.ts +3 -0
- package/dist/types/threemap/mapView/tileProvider/vector/BaiduLaneVectorTileProvider.d.ts +7 -0
- package/dist/types/threemap/mapView/tileProvider/vector/BaiduVectorTileProvider.d.ts +3 -0
- package/dist/types/threemap/mapView/tileProvider/vector/MapboxVectorTileProvider.d.ts +6 -10
- package/dist/types/threemap/mapView/utils/createGroundTileMesh.d.ts +2 -1
- package/dist/types/threemap/mapView/utils/projectVertices.d.ts +1 -1
- package/dist/types/threemap/materials/BatchBuildingMaterial.d.ts +9 -11
- package/dist/types/threemap/materials/RoadMarkingMaterial.d.ts +2 -11
- package/dist/types/threemap/materials/TerrainClassificationMaterial.d.ts +9 -7
- package/dist/types/threemap/natural/DynamicSky.d.ts +68 -22
- package/dist/types/threemap/natural/DynamicWeather.d.ts +17 -105
- package/dist/types/threemap/natural/EmptySky.d.ts +48 -62
- package/dist/types/threemap/natural/PhysicalSky.d.ts +220 -0
- package/dist/types/threemap/natural/Rain.d.ts +5 -2
- package/dist/types/threemap/natural/Snow.d.ts +5 -2
- package/dist/types/threemap/natural/StaticSky.d.ts +1 -0
- package/dist/types/threemap/natural/Thunderstorm.d.ts +46 -0
- package/dist/types/threemap/natural/clouds/CascadedShadowMaps.d.ts +31 -0
- package/dist/types/threemap/natural/clouds/CloudLayer.d.ts +19 -0
- package/dist/types/threemap/natural/clouds/CloudLayers.d.ts +13 -0
- package/dist/types/threemap/natural/clouds/CloudShape.d.ts +4 -0
- package/dist/types/threemap/natural/clouds/CloudShapeDetail.d.ts +4 -0
- package/dist/types/threemap/natural/clouds/CloudsEffect.d.ts +173 -0
- package/dist/types/threemap/natural/clouds/CloudsMaterial.d.ts +35 -0
- package/dist/types/threemap/natural/clouds/CloudsPass.d.ts +39 -0
- package/dist/types/threemap/natural/clouds/CloudsPostPass.d.ts +10 -0
- package/dist/types/threemap/natural/clouds/CloudsResolveMaterial.d.ts +13 -0
- package/dist/types/threemap/natural/clouds/DensityProfile.d.ts +10 -0
- package/dist/types/threemap/natural/clouds/LocalWeather.d.ts +4 -0
- package/dist/types/threemap/natural/clouds/PassBase.d.ts +7 -0
- package/dist/types/threemap/natural/clouds/Procedural3DTexture.d.ts +15 -0
- package/dist/types/threemap/natural/clouds/ProceduralTexture.d.ts +15 -0
- package/dist/types/threemap/natural/clouds/ShaderArrayPass.d.ts +3 -0
- package/dist/types/threemap/natural/clouds/ShadowMaterial.d.ts +14 -0
- package/dist/types/threemap/natural/clouds/ShadowPass.d.ts +31 -0
- package/dist/types/threemap/natural/clouds/ShadowResolveMaterial.d.ts +8 -0
- package/dist/types/threemap/natural/clouds/Turbulence.d.ts +4 -0
- package/dist/types/threemap/natural/clouds/bayer.d.ts +2 -0
- package/dist/types/threemap/natural/clouds/constants.d.ts +6 -0
- package/dist/types/threemap/natural/clouds/helpers/FrustumCorners.d.ts +10 -0
- package/dist/types/threemap/natural/clouds/helpers/setArrayRenderTargetLayers.d.ts +1 -0
- package/dist/types/threemap/natural/clouds/helpers/splitFrustum.d.ts +6 -0
- package/dist/types/threemap/natural/clouds/qualityPresets.d.ts +130 -0
- package/dist/types/threemap/natural/clouds/uniforms.d.ts +44 -0
- package/dist/types/threemap/natural/core/ArrayBufferLoader.d.ts +3 -0
- package/dist/types/threemap/natural/core/DataTextureLoader.d.ts +11 -0
- package/dist/types/threemap/natural/core/Ellipsoid.d.ts +17 -0
- package/dist/types/threemap/natural/core/Geodetic.d.ts +23 -0
- package/dist/types/threemap/natural/core/TypedArrayLoader.d.ts +5 -0
- package/dist/types/threemap/natural/core/capabilities.d.ts +1 -0
- package/dist/types/threemap/natural/core/celestialDirections.d.ts +5 -0
- package/dist/types/threemap/natural/core/decorators.d.ts +61 -0
- package/dist/types/threemap/natural/core/defineShorthand.d.ts +2 -0
- package/dist/types/threemap/natural/core/helpers/projectOnEllipsoidSurface.d.ts +1 -0
- package/dist/types/threemap/natural/core/math.d.ts +15 -0
- package/dist/types/threemap/natural/core/requestIdleCallback.d.ts +2 -0
- package/dist/types/threemap/natural/core/resolveIncludes.d.ts +1 -0
- package/dist/types/threemap/natural/core/shaders/index.d.ts +10 -0
- package/dist/types/threemap/natural/core/unrollLoops.d.ts +1 -0
- package/dist/types/threemap/natural/effects/DepthEffect.d.ts +15 -0
- package/dist/types/threemap/natural/effects/DitheringEffect.d.ts +6 -0
- package/dist/types/threemap/natural/effects/DownsampleThresholdMaterial.d.ts +14 -0
- package/dist/types/threemap/natural/effects/GeometryEffect.d.ts +11 -0
- package/dist/types/threemap/natural/effects/GeometryPass.d.ts +6 -0
- package/dist/types/threemap/natural/effects/LensFlareEffect.d.ts +31 -0
- package/dist/types/threemap/natural/effects/LensFlareFeaturesMaterial.d.ts +17 -0
- package/dist/types/threemap/natural/effects/NormalEffect.d.ts +16 -0
- package/dist/types/threemap/natural/effects/createHaldLookupTexture.d.ts +1 -0
- package/dist/types/threemap/natural/effects/index.d.ts +7 -0
- package/dist/types/threemap/natural/effects/setupMaterialsForGeometryPass.d.ts +1 -0
- package/dist/types/threemap/natural/sky/AerialPerspectiveEffect.d.ts +95 -0
- package/dist/types/threemap/natural/sky/AtmosphereMaterialBase.d.ts +40 -0
- package/dist/types/threemap/natural/sky/AtmosphereParameters.d.ts +32 -0
- package/dist/types/threemap/natural/sky/AtmospherePostPass.d.ts +10 -0
- package/dist/types/threemap/natural/sky/PrecomputedTexturesGenerator.d.ts +66 -0
- package/dist/types/threemap/natural/sky/SkyMaterial.d.ts +26 -0
- package/dist/types/threemap/natural/sky/constants.d.ts +14 -0
- package/dist/types/threemap/natural/sky/getAltitudeCorrectionOffset.d.ts +1 -0
- package/dist/types/threemap/overlay/Marker.d.ts +3 -0
- package/dist/types/threemap/services/autoComplete/AutoComplete.d.ts +1 -1
- package/dist/types/threemap/services/boundary/Boundary.d.ts +3 -3
- package/dist/types/threemap/services/common/baiduRequest.d.ts +1 -1
- package/dist/types/threemap/services/configs.d.ts +2 -2
- package/dist/types/threemap/services/district/DistrictLayer.d.ts +3 -3
- package/dist/types/threemap/services/geocoder/Geocoder.d.ts +5 -5
- package/dist/types/threemap/services/localSearch/LocalSearch.d.ts +5 -5
- package/dist/types/threemap/services/routeSearch/DrivingRoute.d.ts +2 -2
- package/dist/types/threemap/services/routeSearch/TransitRoute.d.ts +3 -3
- package/dist/types/threemap/video/VideoConfig.d.ts +2 -2
- package/dist/types/util/graphics/line.d.ts +2 -2
- package/dist/types/util/request.d.ts +1 -1
- package/package.json +6 -3
- /package/dist/types/{threejs → threemap/engine/map}/controls/MapControl.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/color.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/executer/background.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/executer/fill-extrusion.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/executer/fill.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/executer/index.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/executer/line.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/executer/symbol.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/compound_expression.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/assertion.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/at.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/case.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/coalesce.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/coercion.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/collator.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/comparison.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/format.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/image.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/in.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/index.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/index_of.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/interpolate.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/length.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/let.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/literal.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/match.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/number_format.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/slice.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/step.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/var.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/within.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/evaluation_context.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/expression.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/index.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/is_constant.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/parsing_context.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/parsing_error.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/scope.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/stops.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/types/collator.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/types/formatted.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/types/resolved_image.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/types.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/values.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/feature_filter/index.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/function/convert.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/function/index.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/sourceLayer.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/sprite.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/style.d.ts +0 -0
|
@@ -129,7 +129,7 @@ export class MapboxVectorTileProvider extends VectorTileProvider {
|
|
|
129
129
|
_styleJSON: any;
|
|
130
130
|
_defaultStyleJSON: any;
|
|
131
131
|
_spriteData: {
|
|
132
|
-
[_: string]: import("../../mapbox/sprite").SpriteDataItem;
|
|
132
|
+
[_: string]: import("../../parser/mapbox/sprite").SpriteDataItem;
|
|
133
133
|
} | undefined;
|
|
134
134
|
_spriteImage: any;
|
|
135
135
|
spriteTexture: any;
|
|
@@ -183,7 +183,6 @@ export class MapboxVectorTileProvider extends VectorTileProvider {
|
|
|
183
183
|
* 创建背景网格
|
|
184
184
|
* @param {object} data 网格数据
|
|
185
185
|
* @param {string} meshType 网格类型
|
|
186
|
-
* @param {number} maxLayerIndex 最大图层索引
|
|
187
186
|
* @returns {Mesh} 背景网格对象
|
|
188
187
|
* @private
|
|
189
188
|
*/
|
|
@@ -192,7 +191,6 @@ export class MapboxVectorTileProvider extends VectorTileProvider {
|
|
|
192
191
|
* 创建不透明填充网格
|
|
193
192
|
* @param {object} data 网格数据
|
|
194
193
|
* @param {string} meshType 网格类型
|
|
195
|
-
* @param {number} maxLayerIndex 最大图层索引
|
|
196
194
|
* @returns {Mesh} 不透明填充网格对象
|
|
197
195
|
* @private
|
|
198
196
|
*/
|
|
@@ -201,7 +199,6 @@ export class MapboxVectorTileProvider extends VectorTileProvider {
|
|
|
201
199
|
* 创建图案填充网格
|
|
202
200
|
* @param {object} data 网格数据
|
|
203
201
|
* @param {string} meshType 网格类型
|
|
204
|
-
* @param {number} maxLayerIndex 最大图层索引
|
|
205
202
|
* @returns {Mesh} 图案填充网格对象
|
|
206
203
|
* @private
|
|
207
204
|
*/
|
|
@@ -210,16 +207,15 @@ export class MapboxVectorTileProvider extends VectorTileProvider {
|
|
|
210
207
|
* 创建半透明填充网格
|
|
211
208
|
* @param {object} data 网格数据
|
|
212
209
|
* @param {string} meshType 网格类型
|
|
213
|
-
* @param {number} maxLayerIndex 最大图层索引
|
|
214
210
|
* @returns {Mesh} 半透明填充网格对象
|
|
215
211
|
* @private
|
|
216
212
|
*/
|
|
217
213
|
private _getFillTranslucentMesh;
|
|
218
|
-
_getLineOpaqueMesh(data: any, meshType: any
|
|
219
|
-
_getLineTranslucentMesh(data: any, meshType: any
|
|
220
|
-
_getLineDashedMesh(data: any, meshType: any,
|
|
221
|
-
_getExtrusionOpaqueMesh(data: any, meshType: any
|
|
222
|
-
_getExtrusionTranslucentMesh(data: any, meshType: any
|
|
214
|
+
_getLineOpaqueMesh(data: any, meshType: any): any;
|
|
215
|
+
_getLineTranslucentMesh(data: any, meshType: any): any;
|
|
216
|
+
_getLineDashedMesh(data: any, meshType: any, scale: any, tile: any): any;
|
|
217
|
+
_getExtrusionOpaqueMesh(data: any, meshType: any): any;
|
|
218
|
+
_getExtrusionTranslucentMesh(data: any, meshType: any): any;
|
|
223
219
|
/**
|
|
224
220
|
* 获取材质
|
|
225
221
|
* 根据类型创建或获取对应的MVT材质
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export function
|
|
1
|
+
export function computeNormals(result: any, vertexStride?: number, vertextOffset?: number): void;
|
|
2
|
+
export function createGroundTileMesh(tileConfig: any, repeatedData: any, shouldComputeNormals?: boolean): {
|
|
2
3
|
vertices: any;
|
|
3
4
|
uvs: any;
|
|
4
5
|
indices: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export function reprojectCoordinate(sourceCoordType: any, targetCoordType: any, sourceProjection: any, targetProjection: any, input: any, output: any): any;
|
|
2
|
-
export function projectVertices(vertices: any, tileConfig: any, isMerge?: boolean, isSubCenter?: boolean): void;
|
|
2
|
+
export function projectVertices(vertices: any, tileConfig: any, isMerge?: boolean, isSubCenter?: boolean, forceProjectCoordinates?: boolean): void;
|
|
3
3
|
export function subdivideVertices(vertices: any, indices: any, uvs: any, tileConfig: any): {
|
|
4
4
|
vertices: any;
|
|
5
5
|
indices: any;
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
export class BatchBuildingMaterial {
|
|
1
|
+
export class BatchBuildingMaterial extends ExtendMeshStandardMaterial {
|
|
2
2
|
constructor(parameters?: {});
|
|
3
|
-
type: string;
|
|
4
|
-
_textureGrid: any;
|
|
5
|
-
_buildingLevelCount: any;
|
|
6
|
-
_emissiveIntensity: any;
|
|
7
|
-
colorNode: any;
|
|
8
|
-
_emissiveMapNode: any;
|
|
9
|
-
emissiveNode: any;
|
|
10
|
-
_roughnessNode: any;
|
|
11
|
-
roughnessNode: any;
|
|
12
3
|
set customMap(map: any);
|
|
4
|
+
get customMap(): any;
|
|
13
5
|
set customEmissiveMap(map: any);
|
|
14
|
-
|
|
6
|
+
get customEmissiveMap(): any;
|
|
7
|
+
set customEmissiveIntensity(intensity: number);
|
|
8
|
+
get customEmissiveIntensity(): number;
|
|
15
9
|
set levelCount(count: any);
|
|
10
|
+
get levelCount(): any;
|
|
16
11
|
set textureGrid(grid: any);
|
|
12
|
+
get textureGrid(): any;
|
|
17
13
|
set customRoughnessMap(map: any);
|
|
14
|
+
get customRoughnessMap(): any;
|
|
18
15
|
}
|
|
16
|
+
import { ExtendMeshStandardMaterial } from '../../threejs/materials/extend/ExtendMeshStandardMaterial';
|
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
export class RoadMarkingMaterial {
|
|
1
|
+
export class RoadMarkingMaterial extends ExtendMeshStandardMaterial {
|
|
2
2
|
constructor(parameters?: {});
|
|
3
|
-
/** @private */
|
|
4
|
-
private _diffuseMap;
|
|
5
|
-
/** @private */
|
|
6
|
-
private _metallicRoughnessMap;
|
|
7
|
-
/** @private */
|
|
8
|
-
private _uvMap;
|
|
9
|
-
type: string;
|
|
10
|
-
colorNode: any;
|
|
11
|
-
roughnessNode: any;
|
|
12
|
-
metalnessNode: any;
|
|
13
3
|
set diffuseMap(map: any);
|
|
14
4
|
get diffuseMap(): any;
|
|
15
5
|
set metallicRoughnessMap(map: any);
|
|
@@ -17,3 +7,4 @@ export class RoadMarkingMaterial {
|
|
|
17
7
|
set uvMap(map: any);
|
|
18
8
|
get uvMap(): any;
|
|
19
9
|
}
|
|
10
|
+
import { ExtendMeshStandardMaterial } from '../../threejs/materials/extend/ExtendMeshStandardMaterial';
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
export class TerrainClassificationMaterial {
|
|
1
|
+
export class TerrainClassificationMaterial extends ExtendMeshStandardMaterial {
|
|
2
2
|
constructor(parameters?: {});
|
|
3
|
-
type: string;
|
|
4
|
-
_diffuseColor: any;
|
|
5
|
-
_classificationColor1: any;
|
|
6
|
-
_classificationColor2: any;
|
|
7
|
-
colorNode: any;
|
|
8
|
-
alphaTestNode: any;
|
|
9
3
|
alphaTest: number;
|
|
10
4
|
_configTexture(texture: any): void;
|
|
11
5
|
set classificationMap1(map: any);
|
|
6
|
+
get classificationMap1(): any;
|
|
12
7
|
set classificationMap2(map: any);
|
|
8
|
+
get classificationMap2(): any;
|
|
13
9
|
set diffuseMap(map: any);
|
|
10
|
+
get diffuseMap(): any;
|
|
11
|
+
set fadeStartDistance(distance: any);
|
|
12
|
+
get fadeStartDistance(): any;
|
|
13
|
+
set fadeDistance(distance: any);
|
|
14
|
+
get fadeDistance(): any;
|
|
14
15
|
}
|
|
16
|
+
import { ExtendMeshStandardMaterial } from '../../threejs/materials/extend/ExtendMeshStandardMaterial';
|
|
@@ -49,6 +49,62 @@ export class DynamicSky extends EmptySky {
|
|
|
49
49
|
* @private
|
|
50
50
|
*/
|
|
51
51
|
private _envCaptureLocationKey;
|
|
52
|
+
_presetWeatherProperties: {
|
|
53
|
+
clear: {
|
|
54
|
+
sunLightIntensity: number;
|
|
55
|
+
skyLightIntensity: number;
|
|
56
|
+
cloudsCoverage: number;
|
|
57
|
+
mixGrayFactor: number;
|
|
58
|
+
};
|
|
59
|
+
partlyCloudy: {
|
|
60
|
+
sunLightIntensity: number;
|
|
61
|
+
skyLightIntensity: number;
|
|
62
|
+
cloudsCoverage: number;
|
|
63
|
+
mixGrayFactor: number;
|
|
64
|
+
};
|
|
65
|
+
cloudy: {
|
|
66
|
+
sunLightIntensity: number;
|
|
67
|
+
skyLightIntensity: number;
|
|
68
|
+
cloudsCoverage: number;
|
|
69
|
+
mixGrayFactor: number;
|
|
70
|
+
};
|
|
71
|
+
overcast: {
|
|
72
|
+
sunLightIntensity: number;
|
|
73
|
+
skyLightIntensity: number;
|
|
74
|
+
cloudsCoverage: number;
|
|
75
|
+
mixGrayFactor: number;
|
|
76
|
+
};
|
|
77
|
+
foggy: {
|
|
78
|
+
sunLightIntensity: number;
|
|
79
|
+
skyLightIntensity: number;
|
|
80
|
+
cloudsCoverage: number;
|
|
81
|
+
mixGrayFactor: number;
|
|
82
|
+
};
|
|
83
|
+
rainy: {
|
|
84
|
+
sunLightIntensity: number;
|
|
85
|
+
skyLightIntensity: number;
|
|
86
|
+
cloudsCoverage: number;
|
|
87
|
+
mixGrayFactor: number;
|
|
88
|
+
};
|
|
89
|
+
snowy: {
|
|
90
|
+
sunLightIntensity: number;
|
|
91
|
+
skyLightIntensity: number;
|
|
92
|
+
cloudsCoverage: number;
|
|
93
|
+
mixGrayFactor: number;
|
|
94
|
+
};
|
|
95
|
+
stormy: {
|
|
96
|
+
sunLightIntensity: number;
|
|
97
|
+
skyLightIntensity: number;
|
|
98
|
+
cloudsCoverage: number;
|
|
99
|
+
mixGrayFactor: number;
|
|
100
|
+
};
|
|
101
|
+
thunderstorm: {
|
|
102
|
+
sunLightIntensity: number;
|
|
103
|
+
skyLightIntensity: number;
|
|
104
|
+
cloudsCoverage: number;
|
|
105
|
+
mixGrayFactor: number;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
52
108
|
_upDirection: any;
|
|
53
109
|
_engine: any;
|
|
54
110
|
/**
|
|
@@ -56,7 +112,7 @@ export class DynamicSky extends EmptySky {
|
|
|
56
112
|
* @internal
|
|
57
113
|
*/
|
|
58
114
|
initEnv(): void;
|
|
59
|
-
|
|
115
|
+
_atmospherePass: SkyAtmospherePass | undefined;
|
|
60
116
|
_cloudAmbientBottomColorGradient: GradientColorLerp | undefined;
|
|
61
117
|
_cloudSunIntensityGradient: GradientColorLerp | undefined;
|
|
62
118
|
/**
|
|
@@ -64,7 +120,7 @@ export class DynamicSky extends EmptySky {
|
|
|
64
120
|
* @private
|
|
65
121
|
*/
|
|
66
122
|
private _setupClouds;
|
|
67
|
-
|
|
123
|
+
_cloudsPass: VolumetricCloudsPass | undefined;
|
|
68
124
|
/**
|
|
69
125
|
* 更新实时环境贴图
|
|
70
126
|
* @private
|
|
@@ -116,18 +172,6 @@ export class DynamicSky extends EmptySky {
|
|
|
116
172
|
* @internal
|
|
117
173
|
*/
|
|
118
174
|
get affectWorld(): boolean;
|
|
119
|
-
/**
|
|
120
|
-
* 设置云层密度
|
|
121
|
-
* @type {number}
|
|
122
|
-
* @internal
|
|
123
|
-
*/
|
|
124
|
-
set cloudIntensity(cloudIntensity: number);
|
|
125
|
-
/**
|
|
126
|
-
* 获取云层密度
|
|
127
|
-
* @type {number}
|
|
128
|
-
* @internal
|
|
129
|
-
*/
|
|
130
|
-
get cloudIntensity(): number;
|
|
131
175
|
/**
|
|
132
176
|
* 设置灰度混合因子
|
|
133
177
|
* @type {number}
|
|
@@ -175,37 +219,37 @@ export class DynamicSky extends EmptySky {
|
|
|
175
219
|
* @type {boolean}
|
|
176
220
|
* @internal
|
|
177
221
|
*/
|
|
178
|
-
set
|
|
222
|
+
set enableAtmospherePass(value: boolean);
|
|
179
223
|
/**
|
|
180
224
|
* 获取是否启用后处理通道
|
|
181
225
|
* @type {boolean}
|
|
182
226
|
* @internal
|
|
183
227
|
*/
|
|
184
|
-
get
|
|
228
|
+
get enableAtmospherePass(): boolean;
|
|
185
229
|
/**
|
|
186
230
|
* 设置是否启用体积云效果
|
|
187
231
|
* @type {boolean}
|
|
188
232
|
* @internal
|
|
189
233
|
*/
|
|
190
|
-
set
|
|
234
|
+
set enableCloudsPass(value: boolean);
|
|
191
235
|
/**
|
|
192
236
|
* 获取是否启用体积云效果
|
|
193
237
|
* @type {boolean}
|
|
194
238
|
* @internal
|
|
195
239
|
*/
|
|
196
|
-
get
|
|
240
|
+
get enableCloudsPass(): boolean;
|
|
197
241
|
/**
|
|
198
242
|
* 设置云层覆盖率
|
|
199
243
|
* @type {number}
|
|
200
244
|
* @internal
|
|
201
245
|
*/
|
|
202
|
-
set
|
|
246
|
+
set cloudsCoverage(value: number);
|
|
203
247
|
/**
|
|
204
248
|
* 云层覆盖率,范围0-1
|
|
205
249
|
* @type {number}
|
|
206
250
|
* @internal
|
|
207
251
|
*/
|
|
208
|
-
get
|
|
252
|
+
get cloudsCoverage(): number;
|
|
209
253
|
/**
|
|
210
254
|
* 设置云层密度
|
|
211
255
|
* @type {number}
|
|
@@ -223,13 +267,13 @@ export class DynamicSky extends EmptySky {
|
|
|
223
267
|
* @type {number}
|
|
224
268
|
* @internal
|
|
225
269
|
*/
|
|
226
|
-
set
|
|
270
|
+
set cloudsSpeed(value: number);
|
|
227
271
|
/**
|
|
228
272
|
* 云层移动速度
|
|
229
273
|
* @type {number}
|
|
230
274
|
* @internal
|
|
231
275
|
*/
|
|
232
|
-
get
|
|
276
|
+
get cloudsSpeed(): number;
|
|
233
277
|
/**
|
|
234
278
|
* 设置云层形状基础缩放
|
|
235
279
|
* @type {number}
|
|
@@ -284,6 +328,8 @@ export class DynamicSky extends EmptySky {
|
|
|
284
328
|
* @internal
|
|
285
329
|
*/
|
|
286
330
|
get upDirection(): Vector3;
|
|
331
|
+
set cloudsBaseHeight(value: number);
|
|
332
|
+
get cloudsBaseHeight(): number;
|
|
287
333
|
}
|
|
288
334
|
import { EmptySky } from './EmptySky';
|
|
289
335
|
import { SkyAtmospherePass } from '../engine/rendering/postprocessing/SkyAtmospherePass';
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
* - `foggy`: 雾天
|
|
12
12
|
* - `rainy`: 雨天
|
|
13
13
|
* - `snowy`: 雪天
|
|
14
|
+
* - `stormy`: 暴雨天
|
|
15
|
+
* - `thunderstorm`: 雷阵雨
|
|
14
16
|
*
|
|
15
17
|
* @category Natural
|
|
16
18
|
* @example
|
|
@@ -65,98 +67,6 @@ export class DynamicWeather {
|
|
|
65
67
|
private _inTransition;
|
|
66
68
|
/** @private */
|
|
67
69
|
private _modifyCount;
|
|
68
|
-
_lightConfig: {
|
|
69
|
-
DefaultSky: {
|
|
70
|
-
clear: {
|
|
71
|
-
sunLightIntensity: number;
|
|
72
|
-
skyLightIntensity: number;
|
|
73
|
-
};
|
|
74
|
-
partlyCloudy: {
|
|
75
|
-
sunLightIntensity: number;
|
|
76
|
-
skyLightIntensity: number;
|
|
77
|
-
};
|
|
78
|
-
cloudy: {
|
|
79
|
-
sunLightIntensity: number;
|
|
80
|
-
skyLightIntensity: number;
|
|
81
|
-
};
|
|
82
|
-
overcast: {
|
|
83
|
-
sunLightIntensity: number;
|
|
84
|
-
skyLightIntensity: number;
|
|
85
|
-
};
|
|
86
|
-
foggy: {
|
|
87
|
-
sunLightIntensity: number;
|
|
88
|
-
skyLightIntensity: number;
|
|
89
|
-
};
|
|
90
|
-
rainy: {
|
|
91
|
-
sunLightIntensity: number;
|
|
92
|
-
skyLightIntensity: number;
|
|
93
|
-
};
|
|
94
|
-
snowy: {
|
|
95
|
-
sunLightIntensity: number;
|
|
96
|
-
skyLightIntensity: number;
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
DynamicSky: {
|
|
100
|
-
clear: {
|
|
101
|
-
sunLightIntensity: number;
|
|
102
|
-
skyLightIntensity: number;
|
|
103
|
-
};
|
|
104
|
-
partlyCloudy: {
|
|
105
|
-
sunLightIntensity: number;
|
|
106
|
-
skyLightIntensity: number;
|
|
107
|
-
};
|
|
108
|
-
cloudy: {
|
|
109
|
-
sunLightIntensity: number;
|
|
110
|
-
skyLightIntensity: number;
|
|
111
|
-
};
|
|
112
|
-
overcast: {
|
|
113
|
-
sunLightIntensity: number;
|
|
114
|
-
skyLightIntensity: number;
|
|
115
|
-
};
|
|
116
|
-
foggy: {
|
|
117
|
-
sunLightIntensity: number;
|
|
118
|
-
skyLightIntensity: number;
|
|
119
|
-
};
|
|
120
|
-
rainy: {
|
|
121
|
-
sunLightIntensity: number;
|
|
122
|
-
skyLightIntensity: number;
|
|
123
|
-
};
|
|
124
|
-
snowy: {
|
|
125
|
-
sunLightIntensity: number;
|
|
126
|
-
skyLightIntensity: number;
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
|
-
EmptySky: {
|
|
130
|
-
clear: {
|
|
131
|
-
sunLightIntensity: number;
|
|
132
|
-
skyLightIntensity: number;
|
|
133
|
-
};
|
|
134
|
-
partlyCloudy: {
|
|
135
|
-
sunLightIntensity: number;
|
|
136
|
-
skyLightIntensity: number;
|
|
137
|
-
};
|
|
138
|
-
cloudy: {
|
|
139
|
-
sunLightIntensity: number;
|
|
140
|
-
skyLightIntensity: number;
|
|
141
|
-
};
|
|
142
|
-
overcast: {
|
|
143
|
-
sunLightIntensity: number;
|
|
144
|
-
skyLightIntensity: number;
|
|
145
|
-
};
|
|
146
|
-
foggy: {
|
|
147
|
-
sunLightIntensity: number;
|
|
148
|
-
skyLightIntensity: number;
|
|
149
|
-
};
|
|
150
|
-
rainy: {
|
|
151
|
-
sunLightIntensity: number;
|
|
152
|
-
skyLightIntensity: number;
|
|
153
|
-
};
|
|
154
|
-
snowy: {
|
|
155
|
-
sunLightIntensity: number;
|
|
156
|
-
skyLightIntensity: number;
|
|
157
|
-
};
|
|
158
|
-
};
|
|
159
|
-
};
|
|
160
70
|
/**
|
|
161
71
|
* 设置天气类型
|
|
162
72
|
* @type {string}
|
|
@@ -210,19 +120,8 @@ export class DynamicWeather {
|
|
|
210
120
|
* @internal
|
|
211
121
|
* @param {string} weather 天气类型
|
|
212
122
|
*/
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
* 设置覆盖纹理
|
|
216
|
-
* @type {Texture}
|
|
217
|
-
* @internal
|
|
218
|
-
*/
|
|
219
|
-
set tCoverageIntensity(value: Texture);
|
|
220
|
-
/**
|
|
221
|
-
* 获取覆盖纹理
|
|
222
|
-
* @type {Texture}
|
|
223
|
-
* @internal
|
|
224
|
-
*/
|
|
225
|
-
get tCoverageIntensity(): Texture;
|
|
123
|
+
_changeWeather(oldWeather: any, newWeather: any): void;
|
|
124
|
+
_thunderstorm: Thunderstorm | null | undefined;
|
|
226
125
|
/**
|
|
227
126
|
* 更新天气过渡状态
|
|
228
127
|
* @param {number} ratio 过渡进度比例(0-1)
|
|
@@ -318,6 +217,18 @@ export class DynamicWeather {
|
|
|
318
217
|
* @internal
|
|
319
218
|
*/
|
|
320
219
|
get coverageIntensity(): number;
|
|
220
|
+
/**
|
|
221
|
+
* 设置覆盖纹理
|
|
222
|
+
* @type {Texture}
|
|
223
|
+
* @internal
|
|
224
|
+
*/
|
|
225
|
+
set tCoverageIntensity(value: Texture);
|
|
226
|
+
/**
|
|
227
|
+
* 获取覆盖纹理
|
|
228
|
+
* @type {Texture}
|
|
229
|
+
* @internal
|
|
230
|
+
*/
|
|
231
|
+
get tCoverageIntensity(): Texture;
|
|
321
232
|
/**
|
|
322
233
|
* 设置反射增强纹理
|
|
323
234
|
* @type {Texture}
|
|
@@ -367,3 +278,4 @@ export class DynamicWeather {
|
|
|
367
278
|
*/
|
|
368
279
|
get sunLightScale(): number;
|
|
369
280
|
}
|
|
281
|
+
import { Thunderstorm } from './Thunderstorm';
|
|
@@ -34,9 +34,6 @@ export class EmptySky {
|
|
|
34
34
|
/** @private */ private _addDefaultEnvMap;
|
|
35
35
|
/** @private */ private _time;
|
|
36
36
|
/** @private */ private _timeRatio;
|
|
37
|
-
/** @private */ private _startTimestamp;
|
|
38
|
-
/** @private */ private _timeAnimation;
|
|
39
|
-
/** @private */ private _timeAnimationSpeed;
|
|
40
37
|
/** @private */ private _skyLightIntensity;
|
|
41
38
|
/** @private */ private _sunLightIntensity;
|
|
42
39
|
/** @private */ private _skyLightAttenuationRatio;
|
|
@@ -59,9 +56,42 @@ export class EmptySky {
|
|
|
59
56
|
/** @private */ private _sunNeedsUpdate;
|
|
60
57
|
/** @private */
|
|
61
58
|
private _affectWorld;
|
|
59
|
+
_presetWeatherProperties: {
|
|
60
|
+
clear: {
|
|
61
|
+
sunLightIntensity: number;
|
|
62
|
+
skyLightIntensity: number;
|
|
63
|
+
};
|
|
64
|
+
partlyCloudy: {
|
|
65
|
+
sunLightIntensity: number;
|
|
66
|
+
skyLightIntensity: number;
|
|
67
|
+
};
|
|
68
|
+
cloudy: {
|
|
69
|
+
sunLightIntensity: number;
|
|
70
|
+
skyLightIntensity: number;
|
|
71
|
+
};
|
|
72
|
+
overcast: {
|
|
73
|
+
sunLightIntensity: number;
|
|
74
|
+
skyLightIntensity: number;
|
|
75
|
+
};
|
|
76
|
+
foggy: {
|
|
77
|
+
sunLightIntensity: number;
|
|
78
|
+
skyLightIntensity: number;
|
|
79
|
+
};
|
|
80
|
+
rainy: {
|
|
81
|
+
sunLightIntensity: number;
|
|
82
|
+
skyLightIntensity: number;
|
|
83
|
+
};
|
|
84
|
+
snowy: {
|
|
85
|
+
sunLightIntensity: number;
|
|
86
|
+
skyLightIntensity: number;
|
|
87
|
+
};
|
|
88
|
+
stormy: {
|
|
89
|
+
sunLightIntensity: number;
|
|
90
|
+
skyLightIntensity: number;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
62
93
|
sunLight: any;
|
|
63
94
|
skyLight: any;
|
|
64
|
-
renderOrder: number;
|
|
65
95
|
_sunLightGradientColorLerp: GradientColorLerp;
|
|
66
96
|
/**
|
|
67
97
|
* 设置环境光强度
|
|
@@ -82,47 +112,25 @@ export class EmptySky {
|
|
|
82
112
|
*/
|
|
83
113
|
protected afterAddToEngine(engine: Engine): void;
|
|
84
114
|
engine: any;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
* 通常可以设置成小时*3600,比如 12 * 3600 表示中午12点
|
|
88
|
-
* @type {number}
|
|
89
|
-
* @example
|
|
90
|
-
* ```javascript
|
|
91
|
-
* // 设置时间为早上8点
|
|
92
|
-
* sky.time = 3600 * 8;
|
|
93
|
-
*
|
|
94
|
-
* // 设置时间为下午6点
|
|
95
|
-
* sky.time = 3600 * 18;
|
|
96
|
-
* ```
|
|
97
|
-
*/
|
|
98
|
-
set time(time: number);
|
|
99
|
-
/**
|
|
100
|
-
* 获取当前设置的时间
|
|
101
|
-
* @type {number}
|
|
102
|
-
*/
|
|
103
|
-
get time(): number;
|
|
115
|
+
_syncTimeFromClock(): void;
|
|
116
|
+
_timeChanged: boolean | undefined;
|
|
104
117
|
/**
|
|
105
118
|
* 从引擎移除前的清理
|
|
106
119
|
* @protected
|
|
107
120
|
* @param {Engine} engine 引擎实例
|
|
108
121
|
*/
|
|
109
122
|
protected beforeRemoveFromEngine(engine: Engine): void;
|
|
110
|
-
/**
|
|
111
|
-
* 更新时间
|
|
112
|
-
* @protected
|
|
113
|
-
*/
|
|
114
|
-
protected tickTime(): void;
|
|
115
123
|
/**
|
|
116
124
|
* 每次渲染时,更新时间和光照
|
|
117
125
|
* @protected
|
|
118
126
|
*/
|
|
119
127
|
protected onBeforeScenePrepareRender(): void;
|
|
120
|
-
_timeChanged: boolean | undefined;
|
|
121
128
|
/**
|
|
122
129
|
* 根据太阳光的高度来更新太阳光和天空光的光照强度和颜色
|
|
123
130
|
* @protected
|
|
124
131
|
*/
|
|
125
132
|
protected updateLight(): void;
|
|
133
|
+
_updateSunDirection(): void;
|
|
126
134
|
/**
|
|
127
135
|
* 更新太阳阴影
|
|
128
136
|
* @protected
|
|
@@ -150,52 +158,30 @@ export class EmptySky {
|
|
|
150
158
|
* @internal
|
|
151
159
|
*/
|
|
152
160
|
onWeatherChanged(weather: string): void;
|
|
161
|
+
getPresetWeatherProperties(weather: any): any;
|
|
153
162
|
/**
|
|
154
163
|
* 释放资源
|
|
155
164
|
*/
|
|
156
165
|
dispose(): void;
|
|
157
166
|
/**
|
|
158
|
-
*
|
|
159
|
-
*
|
|
160
|
-
* @
|
|
161
|
-
*/
|
|
162
|
-
set weather(weather: string);
|
|
163
|
-
/**
|
|
164
|
-
* 获取当前天气设置
|
|
165
|
-
* @type {string}
|
|
166
|
-
* @internal
|
|
167
|
-
*/
|
|
168
|
-
get weather(): string;
|
|
169
|
-
/**
|
|
170
|
-
* 设置是否自动更新时间
|
|
171
|
-
* @type {boolean}
|
|
172
|
-
* @internal
|
|
167
|
+
* 设置时间,更新太阳光源位置与光照强度,单位是秒<br />
|
|
168
|
+
* 通常可以设置成小时*3600,比如 12 * 3600 表示中午12点
|
|
169
|
+
* @type {number}
|
|
173
170
|
* @example
|
|
174
171
|
* ```javascript
|
|
175
|
-
* //
|
|
176
|
-
* sky.
|
|
172
|
+
* // 设置时间为早上8点
|
|
173
|
+
* sky.time = 3600 * 8;
|
|
177
174
|
*
|
|
178
|
-
* //
|
|
179
|
-
* sky.
|
|
175
|
+
* // 设置时间为下午6点
|
|
176
|
+
* sky.time = 3600 * 18;
|
|
180
177
|
* ```
|
|
181
178
|
*/
|
|
182
|
-
set
|
|
183
|
-
get timeAnimation(): boolean;
|
|
179
|
+
set time(time: number);
|
|
184
180
|
/**
|
|
185
|
-
*
|
|
181
|
+
* 获取当前设置的时间
|
|
186
182
|
* @type {number}
|
|
187
|
-
* @internal
|
|
188
|
-
* @example
|
|
189
|
-
* ```javascript
|
|
190
|
-
* // 设置1毫秒等于实际1秒
|
|
191
|
-
* sky.timeAnimationSpeed = 1;
|
|
192
|
-
*
|
|
193
|
-
* // 设置1毫秒等于实际0.5秒
|
|
194
|
-
* sky.timeAnimationSpeed = 0.5;
|
|
195
|
-
* ```
|
|
196
183
|
*/
|
|
197
|
-
|
|
198
|
-
get timeAnimationSpeed(): number;
|
|
184
|
+
get time(): number;
|
|
199
185
|
/**
|
|
200
186
|
* 太阳光的强度偏移,在计算太阳光强度时添加该偏移量的大小
|
|
201
187
|
* @type {number}
|