@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
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 引擎时钟系统,用于管理和控制时间流逝。<br/>
|
|
3
|
+
* 该类会随{@link Engine}的初始化自动实例化,不需要开发者手动执行初始化,通过`engine.clock`访问。<br/>
|
|
4
|
+
* 提供多种时钟模式,支持时间循环、限制、速度控制等功能。
|
|
5
|
+
*
|
|
6
|
+
* @category Internal
|
|
7
|
+
* @example
|
|
8
|
+
* ```javascript
|
|
9
|
+
* // 访问时钟
|
|
10
|
+
* const clock = engine.clock;
|
|
11
|
+
*
|
|
12
|
+
* // 设置当前时间
|
|
13
|
+
* clock.currentTime = new Date('2024-01-01 10:00:00');
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export class EngineClock {
|
|
17
|
+
/** 无任何限制模式,时间不会自动流逝 */
|
|
18
|
+
static TICK_NONE: number;
|
|
19
|
+
/** 正常模式,忽略起止时间限制 */
|
|
20
|
+
static TICK_NORMAL: number;
|
|
21
|
+
/** 循环模式,时间到达停止时间后循环到开始时间 */
|
|
22
|
+
static TICK_LOOP: number;
|
|
23
|
+
/** 限制模式,时间会被限制在开始和停止时间之间 */
|
|
24
|
+
static TICK_CLAMP: number;
|
|
25
|
+
/**
|
|
26
|
+
* @param {object} options 时钟配置选项
|
|
27
|
+
* @param {Date} [options.startTime] 开始时间,未设置则使用当前时间
|
|
28
|
+
* @param {Date} [options.stopTime] 停止时间,未设置则使用当前时间
|
|
29
|
+
* @param {Date} [options.currentTime] 当前时间,未设置则使用当天10:00:00
|
|
30
|
+
* @param {number} [options.speed=1] 时间流速倍率
|
|
31
|
+
* @param {number} [options.tickMode=0] 时钟模式,可选值:TICK_NONE、TICK_NORMAL、TICK_LOOP、TICK_CLAMP
|
|
32
|
+
* @param {number} [options.timeZoneOffset=8] 时区偏移量(小时),例如东八区为8
|
|
33
|
+
*/
|
|
34
|
+
constructor(options?: {
|
|
35
|
+
startTime?: Date | undefined;
|
|
36
|
+
stopTime?: Date | undefined;
|
|
37
|
+
currentTime?: Date | undefined;
|
|
38
|
+
speed?: number | undefined;
|
|
39
|
+
tickMode?: number | undefined;
|
|
40
|
+
timeZoneOffset?: number | undefined;
|
|
41
|
+
});
|
|
42
|
+
/** @private 时区偏移量(小时) */
|
|
43
|
+
private _timeZoneOffset;
|
|
44
|
+
private _tzMs;
|
|
45
|
+
/** @private 当前UTC时间(内部缓存) */
|
|
46
|
+
private _currentTimeUTC;
|
|
47
|
+
/** @private 开始时间(毫秒) */
|
|
48
|
+
private _startMs;
|
|
49
|
+
/** @private 停止时间(毫秒) */
|
|
50
|
+
private _stopMs;
|
|
51
|
+
/** @private 缓存返回的本地时间对象 */
|
|
52
|
+
private _currentTime;
|
|
53
|
+
/** @private 时间流速倍率 */
|
|
54
|
+
private _speed;
|
|
55
|
+
/** @private 时钟模式 */
|
|
56
|
+
private _tickMode;
|
|
57
|
+
/**
|
|
58
|
+
* 时钟滴答,推进时间
|
|
59
|
+
* @private
|
|
60
|
+
* @param {number} deltaMilliseconds 自上一帧以来经过的毫秒数
|
|
61
|
+
*/
|
|
62
|
+
private tick;
|
|
63
|
+
/**
|
|
64
|
+
* 未适配天空时钟的旧方法
|
|
65
|
+
* @deprecated
|
|
66
|
+
* @private
|
|
67
|
+
* @param {number} value 时间值(秒)
|
|
68
|
+
*/
|
|
69
|
+
private _setTimeLegacy;
|
|
70
|
+
/**
|
|
71
|
+
* 设置时间值(本地时间)
|
|
72
|
+
* @private
|
|
73
|
+
* @param {number} value 时间戳(毫秒)
|
|
74
|
+
*/
|
|
75
|
+
private _setTimeValue;
|
|
76
|
+
/**
|
|
77
|
+
* 设置时间值(UTC时间)
|
|
78
|
+
* @private
|
|
79
|
+
* @param {number} value 时间戳(毫秒)
|
|
80
|
+
*/
|
|
81
|
+
private _setTimeValueUTC;
|
|
82
|
+
/**
|
|
83
|
+
* 重置时钟到开始时间
|
|
84
|
+
*/
|
|
85
|
+
reset(): void;
|
|
86
|
+
/**
|
|
87
|
+
* 设置当前本地时间
|
|
88
|
+
* @param {Date} value 要设置的本地时间
|
|
89
|
+
*/
|
|
90
|
+
set currentTime(value: Date);
|
|
91
|
+
/**
|
|
92
|
+
* 获取当前本地时间
|
|
93
|
+
* @returns {Date} 当前本地时间(缓存对象,请勿修改)
|
|
94
|
+
*/
|
|
95
|
+
get currentTime(): Date;
|
|
96
|
+
/**
|
|
97
|
+
* 设置当前UTC时间
|
|
98
|
+
* @param {Date} value 要设置的UTC时间
|
|
99
|
+
*/
|
|
100
|
+
set currentTimeUTC(value: Date);
|
|
101
|
+
/**
|
|
102
|
+
* 获取当前UTC时间
|
|
103
|
+
* @returns {Date} 当前UTC时间(缓存对象,请勿修改)
|
|
104
|
+
*/
|
|
105
|
+
get currentTimeUTC(): Date;
|
|
106
|
+
/**
|
|
107
|
+
* 设置开始时间
|
|
108
|
+
* @param {Date} value 要设置的开始时间(本地时区)
|
|
109
|
+
*/
|
|
110
|
+
set startTime(value: Date);
|
|
111
|
+
/**
|
|
112
|
+
* 获取开始时间
|
|
113
|
+
* @returns {Date} 开始时间(本地时区)
|
|
114
|
+
*/
|
|
115
|
+
get startTime(): Date;
|
|
116
|
+
/**
|
|
117
|
+
* 设置停止时间
|
|
118
|
+
* @param {Date} value 要设置的停止时间(本地时区)
|
|
119
|
+
*/
|
|
120
|
+
set stopTime(value: Date);
|
|
121
|
+
/**
|
|
122
|
+
* 获取停止时间
|
|
123
|
+
* @returns {Date} 停止时间(本地时区)
|
|
124
|
+
*/
|
|
125
|
+
get stopTime(): Date;
|
|
126
|
+
/**
|
|
127
|
+
* 设置时区偏移量
|
|
128
|
+
* @param {number} value 时区偏移量(小时),例如东八区为8,西五区为-5
|
|
129
|
+
*/
|
|
130
|
+
set timeZoneOffset(value: number);
|
|
131
|
+
/**
|
|
132
|
+
* 获取时区偏移量
|
|
133
|
+
* @returns {number} 时区偏移量(小时)
|
|
134
|
+
*/
|
|
135
|
+
get timeZoneOffset(): number;
|
|
136
|
+
/**
|
|
137
|
+
* 设置时间流速倍率
|
|
138
|
+
* @param {number} value 时间流速倍率,例如2表示2倍速,0.5表示0.5倍速
|
|
139
|
+
*/
|
|
140
|
+
set speed(value: number);
|
|
141
|
+
/**
|
|
142
|
+
* 获取时间流速倍率
|
|
143
|
+
* @returns {number} 时间流速倍率
|
|
144
|
+
*/
|
|
145
|
+
get speed(): number;
|
|
146
|
+
/**
|
|
147
|
+
* 设置时钟模式
|
|
148
|
+
* @param {number} value 时钟模式:TICK_NONE、TICK_NORMAL、TICK_LOOP、TICK_CLAMP
|
|
149
|
+
*/
|
|
150
|
+
set tickMode(value: number);
|
|
151
|
+
/**
|
|
152
|
+
* 获取时钟模式
|
|
153
|
+
* @returns {number} 时钟模式:TICK_NONE、TICK_NORMAL、TICK_LOOP、TICK_CLAMP
|
|
154
|
+
*/
|
|
155
|
+
get tickMode(): number;
|
|
156
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 键鼠交互控制器API
|
|
3
|
+
* @category Internal
|
|
4
|
+
* @example
|
|
5
|
+
* ```javascript
|
|
6
|
+
* // 访问控制器
|
|
7
|
+
* const controller = engine.controller;
|
|
8
|
+
*
|
|
9
|
+
* // 设置是否启用
|
|
10
|
+
* controller.enabled = true;
|
|
11
|
+
*
|
|
12
|
+
* // 设置是否启用旋转
|
|
13
|
+
* controller.enableRotate = true;
|
|
14
|
+
*
|
|
15
|
+
* // 设置是否启用缩放
|
|
16
|
+
* controller.enableZoom = true;
|
|
17
|
+
*
|
|
18
|
+
* // 设置是否启用平移
|
|
19
|
+
* controller.enablePan = true;
|
|
20
|
+
*
|
|
21
|
+
* // 设置惯性拖拽
|
|
22
|
+
* controller.inertiaDragging = 0.9;
|
|
23
|
+
*
|
|
24
|
+
* // 设置惯性缩放
|
|
25
|
+
* controller.inertiaZoom = 0.8;
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
export class EngineController {
|
|
30
|
+
constructor(engine: any, options?: {});
|
|
31
|
+
/** @internal */ _engine: any;
|
|
32
|
+
_enabled: boolean;
|
|
33
|
+
_enableRotate: boolean;
|
|
34
|
+
_enableZoom: boolean;
|
|
35
|
+
_enablePan: boolean;
|
|
36
|
+
_enableTilt: boolean;
|
|
37
|
+
_enableFixCenter: boolean;
|
|
38
|
+
_enableTerrainCollision: boolean;
|
|
39
|
+
_inertiaDragging: number;
|
|
40
|
+
_inertiaZoom: number;
|
|
41
|
+
_maximumMovementRatio: number;
|
|
42
|
+
_bounceAnimationTime: number;
|
|
43
|
+
_minimumZoomDistance: number;
|
|
44
|
+
_maximumZoomDistance: number;
|
|
45
|
+
/**
|
|
46
|
+
* 设置是否启用控制器,设置为false时,地图将无法响应任何交互事件
|
|
47
|
+
* @type {Boolean}
|
|
48
|
+
* @default true
|
|
49
|
+
*/
|
|
50
|
+
set enabled(value: boolean);
|
|
51
|
+
/**
|
|
52
|
+
* 是否启用控制器
|
|
53
|
+
* @type {Boolean}
|
|
54
|
+
* @default true
|
|
55
|
+
*/
|
|
56
|
+
get enabled(): boolean;
|
|
57
|
+
/**
|
|
58
|
+
* 设置是否启用旋转
|
|
59
|
+
* @type {Boolean}
|
|
60
|
+
* @default true
|
|
61
|
+
*/
|
|
62
|
+
set enableRotate(value: boolean);
|
|
63
|
+
/**
|
|
64
|
+
* 是否启用旋转
|
|
65
|
+
* @type {Boolean}
|
|
66
|
+
* @default true
|
|
67
|
+
*/
|
|
68
|
+
get enableRotate(): boolean;
|
|
69
|
+
/**
|
|
70
|
+
* 设置是否启用缩放
|
|
71
|
+
* @type {Boolean}
|
|
72
|
+
* @default true
|
|
73
|
+
*/
|
|
74
|
+
set enableZoom(value: boolean);
|
|
75
|
+
/**
|
|
76
|
+
* 是否启用缩放
|
|
77
|
+
* @type {Boolean}
|
|
78
|
+
* @default true
|
|
79
|
+
*/
|
|
80
|
+
get enableZoom(): boolean;
|
|
81
|
+
/**
|
|
82
|
+
* 设置是否启用平移
|
|
83
|
+
* @type {Boolean}
|
|
84
|
+
* @default true
|
|
85
|
+
*/
|
|
86
|
+
set enablePan(value: boolean);
|
|
87
|
+
/**
|
|
88
|
+
* 是否启用平移
|
|
89
|
+
* @type {Boolean}
|
|
90
|
+
* @default true
|
|
91
|
+
*/
|
|
92
|
+
get enablePan(): boolean;
|
|
93
|
+
/**
|
|
94
|
+
* 设置是否启用倾斜
|
|
95
|
+
* @type {Boolean}
|
|
96
|
+
* @default true
|
|
97
|
+
*/
|
|
98
|
+
set enableTilt(value: boolean);
|
|
99
|
+
/**
|
|
100
|
+
* 是否启用倾斜
|
|
101
|
+
* @type {Boolean}
|
|
102
|
+
* @default true
|
|
103
|
+
*/
|
|
104
|
+
get enableTilt(): boolean;
|
|
105
|
+
set enableFixCenter(value: boolean);
|
|
106
|
+
get enableFixCenter(): boolean;
|
|
107
|
+
set enableTerrainCollision(value: boolean);
|
|
108
|
+
get enableTerrainCollision(): boolean;
|
|
109
|
+
inertiaTranslate: any;
|
|
110
|
+
/**
|
|
111
|
+
* 设置惯性缩放,0-1,0表示完全禁用惯性缩放,1表示惯性达到最大
|
|
112
|
+
* @type {Number}
|
|
113
|
+
* @default 0.8
|
|
114
|
+
*/
|
|
115
|
+
set inertiaZoom(value: number);
|
|
116
|
+
/**
|
|
117
|
+
* 惯性缩放值
|
|
118
|
+
* @type {Number}
|
|
119
|
+
* @default 0.8
|
|
120
|
+
*/
|
|
121
|
+
get inertiaZoom(): number;
|
|
122
|
+
set maximumMovementRatio(value: number);
|
|
123
|
+
get maximumMovementRatio(): number;
|
|
124
|
+
set bounceAnimationTime(value: number);
|
|
125
|
+
get bounceAnimationTime(): number;
|
|
126
|
+
set minimumZoomDistance(value: number);
|
|
127
|
+
get minimumZoomDistance(): number;
|
|
128
|
+
set maximumZoomDistance(value: number);
|
|
129
|
+
get maximumZoomDistance(): number;
|
|
130
|
+
/**
|
|
131
|
+
* 设置惯性拖拽,0-1,0表示完全禁用惯性拖拽,1表示惯性达到最大
|
|
132
|
+
* @default 0.9
|
|
133
|
+
*/
|
|
134
|
+
set inertiaDragging(value: number);
|
|
135
|
+
/**
|
|
136
|
+
* 惯性拖拽值
|
|
137
|
+
* @type {Number}
|
|
138
|
+
* @default 0.9
|
|
139
|
+
*/
|
|
140
|
+
get inertiaDragging(): number;
|
|
141
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* 地图管理器,主要负责地图视野控制相关功能<br/>
|
|
3
3
|
* 该类会随{@link Engine}的初始化自动实例化,不需要开发者手动执行初始化调用,通过`engine.map`访问
|
|
4
4
|
*
|
|
5
5
|
* @category Internal
|
|
@@ -99,9 +99,14 @@ export class EngineMap {
|
|
|
99
99
|
* @param {number} range 距离
|
|
100
100
|
*/
|
|
101
101
|
setMaxRange(range: number): void;
|
|
102
|
+
/**
|
|
103
|
+
* 设置3d地图最近视距
|
|
104
|
+
* @param {number} range 距离
|
|
105
|
+
*/
|
|
106
|
+
setMinRange(range: number): void;
|
|
102
107
|
/**
|
|
103
108
|
* 设置地图视野
|
|
104
|
-
* @param {Array | Vector3} target
|
|
109
|
+
* @param {Array | Vector3} target 目标视野中心点, 经纬度和海拔高度
|
|
105
110
|
* @param {Object} offset 视野角度,包括 heading、pitch,其中3d支持range、2d支持zoom
|
|
106
111
|
* @param {number} offset.heading 视野旋转角度,以正北向为起始,逆时针方向递增。单位为角度。
|
|
107
112
|
* @param {number} offset.pitch 视野俯仰角,俯视为0,平时地平线为90。单位为角度。
|
|
@@ -160,7 +165,25 @@ export class EngineMap {
|
|
|
160
165
|
* @returns {number}
|
|
161
166
|
*/
|
|
162
167
|
getHeading(): number;
|
|
163
|
-
|
|
168
|
+
/**
|
|
169
|
+
* 视野通过动画过渡的方式飞到目标位置
|
|
170
|
+
* @param {Array | Vector3} target 目标视野中心点
|
|
171
|
+
* @param {Object} options 目标视野与动画参数
|
|
172
|
+
* @param {number} options.heading 视野旋转角度,以正北向为起始,逆时针方向递增。单位为角度。
|
|
173
|
+
* @param {number} options.pitch 视野俯仰角,俯视为0,平时地平线为90。单位为角度。
|
|
174
|
+
* @param {number} options.range 视野距离地面的距离。单位为米。
|
|
175
|
+
* @param {number} options.duration 动画持续时间。单位为毫秒。
|
|
176
|
+
* @param {Function} options.complete 动画完成回调。
|
|
177
|
+
* @param {Function} options.cancel 动画取消回调。
|
|
178
|
+
*/
|
|
179
|
+
flyTo(target: any[] | Vector3, options?: {
|
|
180
|
+
heading: number;
|
|
181
|
+
pitch: number;
|
|
182
|
+
range: number;
|
|
183
|
+
duration: number;
|
|
184
|
+
complete: Function;
|
|
185
|
+
cancel: Function;
|
|
186
|
+
}): any;
|
|
164
187
|
/**
|
|
165
188
|
* 获取地图当前倾斜角度
|
|
166
189
|
* @returns {number}
|
|
@@ -241,11 +264,15 @@ export class EngineMap {
|
|
|
241
264
|
*/
|
|
242
265
|
projectArrayCoordinates(coordinates: any): number[];
|
|
243
266
|
/**
|
|
267
|
+
* @internal
|
|
268
|
+
* @deprecated
|
|
244
269
|
* 开启地图控制,允许用户拖动、平移、旋转等操作
|
|
245
270
|
*/
|
|
246
271
|
enableControl(): void;
|
|
247
272
|
/**
|
|
248
273
|
* 禁用地图控制
|
|
274
|
+
* @internal
|
|
275
|
+
* @deprecated
|
|
249
276
|
*/
|
|
250
277
|
disableControl(): void;
|
|
251
278
|
/**
|
|
@@ -315,6 +342,7 @@ export class EngineMap {
|
|
|
315
342
|
*/
|
|
316
343
|
pickSeaLevelWorldPosition(pixel: Array<number>): Vector3;
|
|
317
344
|
/**
|
|
345
|
+
* @internal 引擎销毁时内部自动调用
|
|
318
346
|
* 销毁地图实例,移除其绑定事件
|
|
319
347
|
*/
|
|
320
348
|
dispose(): void;
|
|
@@ -339,9 +367,11 @@ export class EngineMap {
|
|
|
339
367
|
*/
|
|
340
368
|
get mapType(): string | undefined;
|
|
341
369
|
/**
|
|
370
|
+
* @internal
|
|
371
|
+
* @deprecated
|
|
342
372
|
* 获取map的dom容器
|
|
343
373
|
*/
|
|
344
|
-
get container():
|
|
374
|
+
get container(): HTMLElement | undefined;
|
|
345
375
|
set fov(fov: any);
|
|
346
376
|
/**
|
|
347
377
|
* 获取地图视野开角
|
|
@@ -67,6 +67,11 @@ export class EngineRendering {
|
|
|
67
67
|
/** @private */ private _renderer;
|
|
68
68
|
/** @private */ private _scene;
|
|
69
69
|
/** @private */ private _weather;
|
|
70
|
+
/**
|
|
71
|
+
* @private
|
|
72
|
+
* 原始相机,用于获取原始相机参数,如投影矩阵、视图矩阵等
|
|
73
|
+
*/
|
|
74
|
+
private _rawCamera;
|
|
70
75
|
/** @private */ private _useMRT;
|
|
71
76
|
/** @private */ private _isUseMRTChanged;
|
|
72
77
|
/** @private */ private _freezeUpdate;
|
|
@@ -83,6 +88,7 @@ export class EngineRendering {
|
|
|
83
88
|
/** @private */ private _beforeScenePrepareRenderObjects;
|
|
84
89
|
/** @private */ private _beforeSceneRenderObjects;
|
|
85
90
|
/** @private */ private _onRenderModeChangedObjects;
|
|
91
|
+
/** @private */ private _onRenderPassChangedObjects;
|
|
86
92
|
/** @private */ private _useClip;
|
|
87
93
|
/** @private */
|
|
88
94
|
private _wireframe;
|
|
@@ -99,6 +105,8 @@ export class EngineRendering {
|
|
|
99
105
|
/** @private */
|
|
100
106
|
private lastRenderTime;
|
|
101
107
|
/** @private */
|
|
108
|
+
private _lastClockTime;
|
|
109
|
+
/** @private */
|
|
102
110
|
private _contextParameters;
|
|
103
111
|
/** @private */
|
|
104
112
|
private _needsReCreateRenderer;
|
|
@@ -244,6 +252,7 @@ export class EngineRendering {
|
|
|
244
252
|
* 请求一次渲染更新
|
|
245
253
|
*/
|
|
246
254
|
requestRender(): void;
|
|
255
|
+
_copyRawCamera(): void;
|
|
247
256
|
/**
|
|
248
257
|
* @internal
|
|
249
258
|
* 渲染场景
|
|
@@ -556,6 +565,12 @@ export class EngineRendering {
|
|
|
556
565
|
* 是否自动计算相机近远裁剪面
|
|
557
566
|
*/
|
|
558
567
|
get clampCameraNearFar(): boolean;
|
|
568
|
+
get hasWater(): boolean;
|
|
569
|
+
/**
|
|
570
|
+
* @internal
|
|
571
|
+
* 内部使用,部分场景需要获取原始相机参数,如投影矩阵、视图矩阵等
|
|
572
|
+
*/
|
|
573
|
+
get rawCamera(): any;
|
|
559
574
|
}
|
|
560
575
|
import { RenderingStats } from './rendering/Stats';
|
|
561
576
|
import { Picking } from './rendering/Picking';
|
|
@@ -2,7 +2,8 @@ export class BlankMap3DControl extends BlankMap {
|
|
|
2
2
|
isBlankMap3D: boolean;
|
|
3
3
|
/** @private */
|
|
4
4
|
private _viewStateDirty;
|
|
5
|
-
maxRange:
|
|
5
|
+
maxRange: number;
|
|
6
|
+
minRange: number;
|
|
6
7
|
range: any;
|
|
7
8
|
bounds: any[];
|
|
8
9
|
/**
|
|
@@ -23,6 +24,7 @@ export class BlankMap3DControl extends BlankMap {
|
|
|
23
24
|
*/
|
|
24
25
|
getCameraDistance(forceUpdate: any): any;
|
|
25
26
|
setRange(range: any): void;
|
|
27
|
+
setMinRange(range: any): void;
|
|
26
28
|
/**
|
|
27
29
|
* 相机指向某个具体目标,
|
|
28
30
|
* @param {*} target 目标点
|
|
@@ -41,5 +43,6 @@ export class BlankMap3DControl extends BlankMap {
|
|
|
41
43
|
};
|
|
42
44
|
lockDrag(status: any): void;
|
|
43
45
|
handleEventCameraChange: () => boolean;
|
|
46
|
+
get controller(): import("./controls/MapControl").MapControl | undefined;
|
|
44
47
|
}
|
|
45
48
|
import { BlankMap } from './BlankMap';
|
|
@@ -16,8 +16,11 @@ export class DraggingMovementAggregator {
|
|
|
16
16
|
_amplitudeY: number;
|
|
17
17
|
_targetX: number;
|
|
18
18
|
_targetY: number;
|
|
19
|
+
_scale: number;
|
|
19
20
|
start(x: any, y: any, time: any): void;
|
|
20
21
|
update(x: any, y: any, time: any): void;
|
|
21
22
|
startInertia(isOperateRotation?: boolean): void;
|
|
22
23
|
getInertiaPosition(time: any): any[];
|
|
24
|
+
set scale(scale: number);
|
|
25
|
+
get scale(): number;
|
|
23
26
|
}
|
|
@@ -25,7 +25,16 @@ export class MapControl3D {
|
|
|
25
25
|
startProjectionCenter: any;
|
|
26
26
|
/** @private */
|
|
27
27
|
private _enabled;
|
|
28
|
-
|
|
28
|
+
/** @private */
|
|
29
|
+
private _enableRotate;
|
|
30
|
+
/** @private */
|
|
31
|
+
private _enableZoom;
|
|
32
|
+
/** @private */
|
|
33
|
+
private _enablePan;
|
|
34
|
+
/** @private */
|
|
35
|
+
private _enableTilt;
|
|
36
|
+
/** @private 历史遗留问题,不对外暴露 */
|
|
37
|
+
private enableInertia;
|
|
29
38
|
minPitch: number;
|
|
30
39
|
maxPitch: number;
|
|
31
40
|
zoomSpeed: number;
|
|
@@ -154,7 +163,15 @@ export class MapControl3D {
|
|
|
154
163
|
_tiltBounceBack: () => void;
|
|
155
164
|
_pickPosition(mouse: any): Promise<any>;
|
|
156
165
|
dispose: () => void;
|
|
166
|
+
set enableRotate(enabled: any);
|
|
167
|
+
set enableZoom(enabled: any);
|
|
168
|
+
set enablePan(enabled: any);
|
|
169
|
+
set enableTilt(enabled: any);
|
|
170
|
+
set inertiaDragging(scale: number);
|
|
171
|
+
get inertiaDragging(): number;
|
|
172
|
+
set inertiaZoom(scale: number);
|
|
173
|
+
get inertiaZoom(): number;
|
|
157
174
|
}
|
|
158
|
-
import { EventThrottle } from '../../
|
|
175
|
+
import { EventThrottle } from '../../event/EventThrottle';
|
|
159
176
|
import { DraggingMovementAggregator } from './DraggingMovementAggregator';
|
|
160
177
|
import { PointerMovementAggregator } from './PointerMovementAggregator';
|
|
@@ -14,10 +14,13 @@ export class PointerMovementAggregator {
|
|
|
14
14
|
private _inertiaSpeed;
|
|
15
15
|
/** @private */
|
|
16
16
|
private _inertiaDirection;
|
|
17
|
+
_scale: number;
|
|
17
18
|
start(x: any, y: any, time: any): void;
|
|
18
19
|
update(x: any, y: any, time: any): void;
|
|
19
20
|
setInertiaState(speed: any, direction: any, time: any): void;
|
|
20
21
|
startInertia(): void;
|
|
21
22
|
getInertiaPosition(time: any): any[];
|
|
22
23
|
get inertiaDirection(): any;
|
|
24
|
+
set scale(scale: number);
|
|
25
|
+
get scale(): number;
|
|
23
26
|
}
|
|
@@ -105,6 +105,7 @@ export class Earth extends BaseMap {
|
|
|
105
105
|
_canvas: any;
|
|
106
106
|
set farScale(value: number);
|
|
107
107
|
get farScale(): number;
|
|
108
|
+
get controller(): ScreenSpaceCameraController | undefined;
|
|
108
109
|
}
|
|
109
110
|
import { BaseMap } from '../BaseMap';
|
|
110
111
|
import { Ellipsoid } from './Ellipsoid';
|
|
@@ -121,6 +121,11 @@ export class RenderingCollision {
|
|
|
121
121
|
*/
|
|
122
122
|
_collisionTest(): false | undefined;
|
|
123
123
|
_getScreenPosition(position: any, matrix: any, width: any, height: any): any[];
|
|
124
|
+
/**
|
|
125
|
+
* 计算已投影的字符包围盒(屏幕坐标)
|
|
126
|
+
* @private
|
|
127
|
+
*/
|
|
128
|
+
private _computeProjectedCharBoundingBoxes;
|
|
124
129
|
_computeCharBoundingBoxes(chars: any, pixelSize: any, rotationMatrix: any, basePosition: any, camera: any, cameraOffset: any, matrix4: any, margin: any, tolerance: any, containerWidth: any, containerHeight: any): {
|
|
125
130
|
minX: number;
|
|
126
131
|
minY: number;
|
|
@@ -68,11 +68,15 @@ export class RenderingLabel {
|
|
|
68
68
|
_iconText: any;
|
|
69
69
|
_iconTextUvDataSource: DataSource | undefined;
|
|
70
70
|
_iconTextUv: any;
|
|
71
|
+
_roadLabelDataSource: DataSource | undefined;
|
|
72
|
+
_roadLabel: any;
|
|
71
73
|
initLabel(): void;
|
|
72
74
|
_labelIconDataSource: DataSource | undefined;
|
|
73
75
|
_labelIcon: any;
|
|
74
76
|
_labelIconFlatDataSource: DataSource | undefined;
|
|
75
77
|
_labelIconFlat: any;
|
|
78
|
+
_labelIconFlatDepthDataSource: DataSource | undefined;
|
|
79
|
+
_labelIconFlatDepth: any;
|
|
76
80
|
_labelTextFlatDataSource: DataSource | undefined;
|
|
77
81
|
_labelTextFlat: any;
|
|
78
82
|
_labelTextFixedDataSource: DataSource | undefined;
|
|
@@ -160,6 +164,17 @@ export class RenderingLabel {
|
|
|
160
164
|
*/
|
|
161
165
|
removeLabel(label: DataItem): void;
|
|
162
166
|
removeLabels(labels: any, id: any): void;
|
|
167
|
+
/**
|
|
168
|
+
* 添加道路标签(沿线文字)
|
|
169
|
+
* @param {Array<Object>} roadLabels 道路标签数组
|
|
170
|
+
* @param {string} tileKey 瓦片key
|
|
171
|
+
*/
|
|
172
|
+
addRoadLabels(roadLabels: Array<Object>, tileKey: string): void;
|
|
173
|
+
/**
|
|
174
|
+
* 移除道路标签(沿线文字)
|
|
175
|
+
* @param {Array<Object>} roadLabels 道路标签数组
|
|
176
|
+
*/
|
|
177
|
+
removeRoadLabels(roadLabels: Array<Object>): void;
|
|
163
178
|
dispose(): void;
|
|
164
179
|
}
|
|
165
180
|
import { DataSource } from '../../dataSource/DataSource';
|
|
@@ -27,7 +27,7 @@ export class RenderingMainNew {
|
|
|
27
27
|
private _opaquePostprocessings;
|
|
28
28
|
_sharedFullScreenRenderTargets: SharedFullScreenRenderTargets;
|
|
29
29
|
beginFrame(): void;
|
|
30
|
-
render(): void;
|
|
30
|
+
render(renderPassChangedObjects: any): void;
|
|
31
31
|
isInStableRenderState(): any;
|
|
32
32
|
endFrame(): void;
|
|
33
33
|
setSize(width: any, height: any): void;
|
|
@@ -16,6 +16,7 @@ export class SkyAtmospherePass {
|
|
|
16
16
|
*/
|
|
17
17
|
render(renderer: any, writeBuffer: any, readBuffer: any): void;
|
|
18
18
|
_sphereCamera: EllipsoidCamera | undefined;
|
|
19
|
+
getCurrentUsedTextures(): any[];
|
|
19
20
|
dispose(): void;
|
|
20
21
|
}
|
|
21
22
|
import { EllipsoidCamera } from '../../map/earth/EllipsoidCamera';
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
export class DirectSceneRendering extends SceneRendering {
|
|
2
2
|
isDirectSceneRendering: boolean;
|
|
3
|
+
_normalMaterial: any;
|
|
3
4
|
_emissiveRenderTarget: any;
|
|
5
|
+
_normalRenderTarget: any;
|
|
6
|
+
render(renderPassChangedObjects: any): void;
|
|
4
7
|
_sceneRenderTarget: any;
|
|
5
8
|
_tDepth: any;
|
|
6
9
|
_fsQuad: any;
|
|
7
10
|
_isBlackColor(color: any): boolean;
|
|
8
11
|
_isEmissiveMaterial(material: any): any;
|
|
9
12
|
_disposeEmissiveRenderTarget(): void;
|
|
13
|
+
_disposeNormalRenderTarget(): void;
|
|
10
14
|
setSize(width: any, height: any): void;
|
|
11
15
|
get emissiveTexture(): any;
|
|
16
|
+
get normalTexture(): any;
|
|
12
17
|
get depthTexture(): any;
|
|
13
18
|
get diffuseTexture(): any;
|
|
14
19
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* QuantizedMeshTerrainData
|
|
3
3
|
*/
|
|
4
4
|
export class QuantizedMeshTerrainData {
|
|
5
|
-
static createQuantizedMeshTerrainData(buffer: any): QuantizedMeshTerrainData;
|
|
5
|
+
static createQuantizedMeshTerrainData(provider: any, buffer: any): QuantizedMeshTerrainData;
|
|
6
6
|
constructor(options: any);
|
|
7
7
|
_quantizedVertices: any;
|
|
8
8
|
_encodedNormals: any;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export class BaiduVectorOfflineGrid extends Grid {
|
|
6
6
|
name: string;
|
|
7
|
+
supportLevelReuse: boolean;
|
|
7
8
|
/** @private */
|
|
8
9
|
private _rootBoundingBox;
|
|
9
10
|
/**
|
|
@@ -12,6 +13,10 @@ export class BaiduVectorOfflineGrid extends Grid {
|
|
|
12
13
|
*/
|
|
13
14
|
getRootTiles(): MapTile[];
|
|
14
15
|
getRootBoundingBox(): any;
|
|
16
|
+
getTileSizeAtLevel(level: any): number;
|
|
17
|
+
getTileCoordX(x: any, tileSize: any, clampToEdge: any): number;
|
|
18
|
+
getTileCoordY(y: any, tileSize: any, clampToEdge: any): number;
|
|
19
|
+
getResuedTileConfig(z: any, x: any, y: any): any[];
|
|
15
20
|
getTileLoaderConfig(tile: any): {
|
|
16
21
|
baseZ: any;
|
|
17
22
|
startZ: any;
|