@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,95 @@
|
|
|
1
|
+
export namespace aerialPerspectiveEffectOptionsDefaults {
|
|
2
|
+
let blendFunction: any;
|
|
3
|
+
let octEncodedNormal: boolean;
|
|
4
|
+
let reconstructNormal: boolean;
|
|
5
|
+
let ellipsoid: Ellipsoid;
|
|
6
|
+
let correctAltitude: boolean;
|
|
7
|
+
let correctGeometricError: boolean;
|
|
8
|
+
let sunLight: boolean;
|
|
9
|
+
let skyLight: boolean;
|
|
10
|
+
let transmittance: boolean;
|
|
11
|
+
let inscatter: boolean;
|
|
12
|
+
let albedoScale: number;
|
|
13
|
+
let sky: boolean;
|
|
14
|
+
let sun: boolean;
|
|
15
|
+
let moon: boolean;
|
|
16
|
+
let moonAngularRadius: number;
|
|
17
|
+
let lunarRadianceScale: number;
|
|
18
|
+
let ground: boolean;
|
|
19
|
+
}
|
|
20
|
+
export class AerialPerspectiveEffect {
|
|
21
|
+
constructor(camera: any, options: any, atmosphere?: AtmosphereParameters);
|
|
22
|
+
camera: any;
|
|
23
|
+
atmosphere: AtmosphereParameters;
|
|
24
|
+
_ellipsoid: any;
|
|
25
|
+
correctAltitude: any;
|
|
26
|
+
overlay: null;
|
|
27
|
+
shadow: null;
|
|
28
|
+
shadowLength: null;
|
|
29
|
+
lightingMask: null;
|
|
30
|
+
octEncodedNormal: any;
|
|
31
|
+
reconstructNormal: any;
|
|
32
|
+
set singleMieScatteringTexture(value: any);
|
|
33
|
+
get singleMieScatteringTexture(): any;
|
|
34
|
+
set higherOrderScatteringTexture(value: any);
|
|
35
|
+
get higherOrderScatteringTexture(): any;
|
|
36
|
+
set ellipsoid(value: any);
|
|
37
|
+
get ellipsoid(): any;
|
|
38
|
+
correctGeometricError: any;
|
|
39
|
+
sunLight: any;
|
|
40
|
+
skyLight: any;
|
|
41
|
+
transmittance: any;
|
|
42
|
+
inscatter: any;
|
|
43
|
+
sky: any;
|
|
44
|
+
sun: any;
|
|
45
|
+
moon: any;
|
|
46
|
+
ground: any;
|
|
47
|
+
/** @private */
|
|
48
|
+
private combinedScatteringTextures;
|
|
49
|
+
/** @private */
|
|
50
|
+
private hasHigherOrderScatteringTexture;
|
|
51
|
+
shadowSampleCount: number;
|
|
52
|
+
set mainCamera(value: any);
|
|
53
|
+
get mainCamera(): any;
|
|
54
|
+
copyCameraSettings(camera: any): void;
|
|
55
|
+
updateOverlay(): boolean;
|
|
56
|
+
updateShadow(): boolean;
|
|
57
|
+
updateShadowLength(): boolean;
|
|
58
|
+
updateLightingMask(): boolean;
|
|
59
|
+
update(renderer: any, inputBuffer: any, deltaTime: any): void;
|
|
60
|
+
set normalBuffer(value: any);
|
|
61
|
+
get normalBuffer(): any;
|
|
62
|
+
set irradianceTexture(value: any);
|
|
63
|
+
get irradianceTexture(): any;
|
|
64
|
+
set scatteringTexture(value: any);
|
|
65
|
+
get scatteringTexture(): any;
|
|
66
|
+
set transmittanceTexture(value: any);
|
|
67
|
+
get transmittanceTexture(): any;
|
|
68
|
+
get worldToECEFMatrix(): any;
|
|
69
|
+
get sunDirection(): any;
|
|
70
|
+
/** @deprecated Use sunLight instead. */
|
|
71
|
+
set sunIrradiance(value: any);
|
|
72
|
+
/** @deprecated Use sunLight instead. */
|
|
73
|
+
get sunIrradiance(): any;
|
|
74
|
+
/** @deprecated Use skyLight instead. */
|
|
75
|
+
set skyIrradiance(value: any);
|
|
76
|
+
/** @deprecated Use skyLight instead. */
|
|
77
|
+
get skyIrradiance(): any;
|
|
78
|
+
/** @deprecated Use albedoScale instead. */
|
|
79
|
+
set irradianceScale(value: any);
|
|
80
|
+
/** @deprecated Use albedoScale instead. */
|
|
81
|
+
get irradianceScale(): any;
|
|
82
|
+
set albedoScale(value: any);
|
|
83
|
+
get albedoScale(): any;
|
|
84
|
+
get moonDirection(): any;
|
|
85
|
+
set moonAngularRadius(value: any);
|
|
86
|
+
get moonAngularRadius(): any;
|
|
87
|
+
set lunarRadianceScale(value: any);
|
|
88
|
+
get lunarRadianceScale(): any;
|
|
89
|
+
set stbnTexture(value: any);
|
|
90
|
+
get stbnTexture(): any;
|
|
91
|
+
set shadowRadius(value: any);
|
|
92
|
+
get shadowRadius(): any;
|
|
93
|
+
}
|
|
94
|
+
import { Ellipsoid } from '../core/Ellipsoid';
|
|
95
|
+
import { AtmosphereParameters } from './AtmosphereParameters';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export namespace atmosphereMaterialParametersBaseDefaults {
|
|
2
|
+
let ellipsoid: Ellipsoid;
|
|
3
|
+
let correctAltitude: boolean;
|
|
4
|
+
let renderTargetCount: number;
|
|
5
|
+
}
|
|
6
|
+
export class AtmosphereMaterialBase {
|
|
7
|
+
constructor(params: any, atmosphere?: AtmosphereParameters);
|
|
8
|
+
atmosphere: AtmosphereParameters;
|
|
9
|
+
ellipsoid: any;
|
|
10
|
+
correctAltitude: any;
|
|
11
|
+
_renderTargetCount: any;
|
|
12
|
+
set singleMieScatteringTexture(value: any);
|
|
13
|
+
get singleMieScatteringTexture(): any;
|
|
14
|
+
set higherOrderScatteringTexture(value: any);
|
|
15
|
+
get higherOrderScatteringTexture(): any;
|
|
16
|
+
set sunAngularRadius(value: any);
|
|
17
|
+
get sunAngularRadius(): any;
|
|
18
|
+
/** @package */
|
|
19
|
+
set renderTargetCount(value: any);
|
|
20
|
+
/** @package */
|
|
21
|
+
get renderTargetCount(): any;
|
|
22
|
+
/** @private */
|
|
23
|
+
private combinedScatteringTextures;
|
|
24
|
+
/** @private */
|
|
25
|
+
private hasHigherOrderScatteringTexture;
|
|
26
|
+
copyCameraSettings(camera: any): void;
|
|
27
|
+
onBeforeCompile(parameters: any, renderer: any): void;
|
|
28
|
+
onBeforeRender(renderer: any, scene: any, camera: any, geometry: any, object: any, group: any): void;
|
|
29
|
+
set irradianceTexture(value: any);
|
|
30
|
+
get irradianceTexture(): any;
|
|
31
|
+
set scatteringTexture(value: any);
|
|
32
|
+
get scatteringTexture(): any;
|
|
33
|
+
set transmittanceTexture(value: any);
|
|
34
|
+
get transmittanceTexture(): any;
|
|
35
|
+
get worldToECEFMatrix(): any;
|
|
36
|
+
get sunDirection(): any;
|
|
37
|
+
needsUpdate: boolean | undefined;
|
|
38
|
+
}
|
|
39
|
+
import { Ellipsoid } from '../core/Ellipsoid';
|
|
40
|
+
import { AtmosphereParameters } from './AtmosphereParameters';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export class DensityProfileLayer {
|
|
2
|
+
constructor(width: any, expTerm: any, expScale: any, linearTerm: any, constantTerm: any);
|
|
3
|
+
width: any;
|
|
4
|
+
expTerm: any;
|
|
5
|
+
expScale: any;
|
|
6
|
+
linearTerm: any;
|
|
7
|
+
constantTerm: any;
|
|
8
|
+
toUniform(): any;
|
|
9
|
+
}
|
|
10
|
+
export class AtmosphereParameters {
|
|
11
|
+
static DEFAULT: AtmosphereParameters;
|
|
12
|
+
constructor(options: any);
|
|
13
|
+
solarIrradiance: any;
|
|
14
|
+
sunAngularRadius: number;
|
|
15
|
+
bottomRadius: number;
|
|
16
|
+
topRadius: number;
|
|
17
|
+
rayleighDensity: DensityProfileLayer[];
|
|
18
|
+
rayleighScattering: any;
|
|
19
|
+
mieDensity: DensityProfileLayer[];
|
|
20
|
+
mieScattering: any;
|
|
21
|
+
mieExtinction: any;
|
|
22
|
+
miePhaseFunctionG: number;
|
|
23
|
+
absorptionDensity: DensityProfileLayer[];
|
|
24
|
+
absorptionExtinction: any;
|
|
25
|
+
groundAlbedo: any;
|
|
26
|
+
muSMin: number;
|
|
27
|
+
sunRadianceToLuminance: any;
|
|
28
|
+
skyRadianceToLuminance: any;
|
|
29
|
+
sunRadianceToRelativeLuminance: any;
|
|
30
|
+
skyRadianceToRelativeLuminance: any;
|
|
31
|
+
toUniform(): any;
|
|
32
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export class AtmospherePostPass {
|
|
2
|
+
constructor(camera: any);
|
|
3
|
+
needsNormalTexture: boolean;
|
|
4
|
+
enableCloudsShadow: boolean;
|
|
5
|
+
enableCloudsOverlay: boolean;
|
|
6
|
+
_effect: AerialPerspectiveEffect;
|
|
7
|
+
initialize(renderer: any, alpha: any, frameBufferType: any): void;
|
|
8
|
+
onFrameUpdate(engine: any, parameters: any): void;
|
|
9
|
+
}
|
|
10
|
+
import { AerialPerspectiveEffect } from './AerialPerspectiveEffect';
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export class PrecomputedTexturesGenerator {
|
|
2
|
+
constructor(renderer: any, { type, combinedScattering, higherOrderScattering }?: {
|
|
3
|
+
type?: any;
|
|
4
|
+
combinedScattering?: boolean | undefined;
|
|
5
|
+
higherOrderScattering?: boolean | undefined;
|
|
6
|
+
});
|
|
7
|
+
transmittanceRenderTarget: any;
|
|
8
|
+
scatteringRenderTarget: any;
|
|
9
|
+
irradianceRenderTarget: any;
|
|
10
|
+
singleMieScatteringRenderTarget: any;
|
|
11
|
+
higherOrderScatteringRenderTarget: any;
|
|
12
|
+
textures: {
|
|
13
|
+
transmittanceTexture: any;
|
|
14
|
+
scatteringTexture: any;
|
|
15
|
+
irradianceTexture: any;
|
|
16
|
+
singleMieScatteringTexture: any;
|
|
17
|
+
higherOrderScatteringTexture: any;
|
|
18
|
+
};
|
|
19
|
+
transmittanceMaterial: PrecomputeMaterial;
|
|
20
|
+
directIrradianceMaterial: PrecomputeMaterial;
|
|
21
|
+
singleScatteringMaterial: PrecomputeMaterial;
|
|
22
|
+
scatteringDensityMaterial: PrecomputeMaterial;
|
|
23
|
+
indirectIrradianceMaterial: PrecomputeMaterial;
|
|
24
|
+
multipleScatteringMaterial: PrecomputeMaterial;
|
|
25
|
+
renderer: any;
|
|
26
|
+
type: any;
|
|
27
|
+
mesh: any;
|
|
28
|
+
scene: any;
|
|
29
|
+
camera: any;
|
|
30
|
+
updating: boolean;
|
|
31
|
+
disposeQueue: any;
|
|
32
|
+
render3DRenderTarget(renderTarget: any, material: any): void;
|
|
33
|
+
computeTransmittance(params: any): void;
|
|
34
|
+
computeOpticalDepth(params: any): void;
|
|
35
|
+
computeDirectIrradiance(params: any): void;
|
|
36
|
+
computeSingleScattering(params: any): void;
|
|
37
|
+
computeScatteringDensity(params: any): void;
|
|
38
|
+
computeIndirectIrradiance(params: any): void;
|
|
39
|
+
computeMultipleScattering(params: any): void;
|
|
40
|
+
_saveState(state: any): void;
|
|
41
|
+
_restoreState(state: any): void;
|
|
42
|
+
precompute(context: any, additive: any): void;
|
|
43
|
+
update(atmosphere?: AtmosphereParameters): Promise<{
|
|
44
|
+
transmittanceTexture: any;
|
|
45
|
+
scatteringTexture: any;
|
|
46
|
+
irradianceTexture: any;
|
|
47
|
+
singleMieScatteringTexture: any;
|
|
48
|
+
higherOrderScatteringTexture: any;
|
|
49
|
+
}>;
|
|
50
|
+
dispose(options?: {}): void;
|
|
51
|
+
}
|
|
52
|
+
declare class PrecomputeMaterial {
|
|
53
|
+
constructor(params: any);
|
|
54
|
+
set additive(value: any);
|
|
55
|
+
transparent: any;
|
|
56
|
+
blending: any;
|
|
57
|
+
blendEquation: any;
|
|
58
|
+
blendEquationAlpha: any;
|
|
59
|
+
blendSrc: any;
|
|
60
|
+
blendDst: any;
|
|
61
|
+
blendSrcAlpha: any;
|
|
62
|
+
blendDstAlpha: any;
|
|
63
|
+
setUniforms(context: any): void;
|
|
64
|
+
}
|
|
65
|
+
import { AtmosphereParameters } from './AtmosphereParameters';
|
|
66
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export const skyMaterialParametersDefaults: {
|
|
2
|
+
sun: boolean;
|
|
3
|
+
moon: boolean;
|
|
4
|
+
moonAngularRadius: number;
|
|
5
|
+
lunarRadianceScale: number;
|
|
6
|
+
ground: boolean;
|
|
7
|
+
groundAlbedo: any;
|
|
8
|
+
ellipsoid: import("../core/Ellipsoid").Ellipsoid;
|
|
9
|
+
correctAltitude: boolean;
|
|
10
|
+
renderTargetCount: number;
|
|
11
|
+
};
|
|
12
|
+
export class SkyMaterial extends AtmosphereMaterialBase {
|
|
13
|
+
constructor(params: any);
|
|
14
|
+
shadowLength: null;
|
|
15
|
+
sun: any;
|
|
16
|
+
moon: any;
|
|
17
|
+
ground: any;
|
|
18
|
+
onBeforeRender11(renderer: any, scene: any, camera: any, geometry: any, object: any, group: any): void;
|
|
19
|
+
get moonDirection(): any;
|
|
20
|
+
set moonAngularRadius(value: any);
|
|
21
|
+
get moonAngularRadius(): any;
|
|
22
|
+
set lunarRadianceScale(value: any);
|
|
23
|
+
get lunarRadianceScale(): any;
|
|
24
|
+
get groundAlbedo(): any;
|
|
25
|
+
}
|
|
26
|
+
import { AtmosphereMaterialBase } from './AtmosphereMaterialBase';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const IRRADIANCE_TEXTURE_WIDTH: 64;
|
|
2
|
+
export const IRRADIANCE_TEXTURE_HEIGHT: 16;
|
|
3
|
+
export const SCATTERING_TEXTURE_R_SIZE: 32;
|
|
4
|
+
export const SCATTERING_TEXTURE_MU_SIZE: 128;
|
|
5
|
+
export const SCATTERING_TEXTURE_MU_S_SIZE: 32;
|
|
6
|
+
export const SCATTERING_TEXTURE_NU_SIZE: 8;
|
|
7
|
+
export const SCATTERING_TEXTURE_WIDTH: number;
|
|
8
|
+
export const SCATTERING_TEXTURE_HEIGHT: 128;
|
|
9
|
+
export const SCATTERING_TEXTURE_DEPTH: 32;
|
|
10
|
+
export const TRANSMITTANCE_TEXTURE_WIDTH: 256;
|
|
11
|
+
export const TRANSMITTANCE_TEXTURE_HEIGHT: 64;
|
|
12
|
+
export const METER_TO_LENGTH_UNIT: number;
|
|
13
|
+
export const SKY_RENDER_ORDER: 100;
|
|
14
|
+
export const XYZ_TO_SRGB: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function getAltitudeCorrectionOffset(cameraPosition: any, bottomRadius: any, ellipsoid: any, result: any): any;
|
|
@@ -36,6 +36,7 @@ export class Marker extends DOMOverlay {
|
|
|
36
36
|
/** @private */ private _icon;
|
|
37
37
|
/** @private */ private _width;
|
|
38
38
|
/** @private */ private _height;
|
|
39
|
+
/** @private */ private _title;
|
|
39
40
|
isMarker: boolean;
|
|
40
41
|
initDom(): HTMLImageElement;
|
|
41
42
|
/**
|
|
@@ -72,5 +73,7 @@ export class Marker extends DOMOverlay {
|
|
|
72
73
|
* @returns {number} 图片高度
|
|
73
74
|
*/
|
|
74
75
|
get height(): number;
|
|
76
|
+
set title(value: any);
|
|
77
|
+
get title(): any;
|
|
75
78
|
}
|
|
76
79
|
import { DOMOverlay } from './DOMOverlay';
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* @example
|
|
11
11
|
* ```javascript
|
|
12
12
|
* // 创建自动完成服务
|
|
13
|
-
* const autoComplete = new mapvthree.
|
|
13
|
+
* const autoComplete = new mapvthree.services.AutoComplete({
|
|
14
14
|
* input: 'searchInput', // 输入框ID
|
|
15
15
|
* types: ['ALL', 'CITY'],
|
|
16
16
|
* maxResults: 10,
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* @example
|
|
11
11
|
* ```javascript
|
|
12
12
|
* // 创建百度地图边界服务
|
|
13
|
-
* const boundary = new mapvthree.
|
|
14
|
-
* apiSource: mapvthree.
|
|
13
|
+
* const boundary = new mapvthree.services.Boundary({
|
|
14
|
+
* apiSource: mapvthree.services.API_SOURCE_BAIDU
|
|
15
15
|
* });
|
|
16
16
|
*
|
|
17
17
|
* // 获取山东省边界
|
|
@@ -25,7 +25,7 @@ export class Boundary {
|
|
|
25
25
|
* 创建边界服务实例
|
|
26
26
|
* @param {Object} options 配置参数
|
|
27
27
|
* @param {string} [options.apiSource] API数据源。
|
|
28
|
-
* 可以配置为{@link
|
|
28
|
+
* 可以配置为{@link services.API_SOURCE_BAIDU}或{@link services.API_SOURCE_TIANDITU},默认使用配置的数据源
|
|
29
29
|
*/
|
|
30
30
|
constructor(options?: {
|
|
31
31
|
apiSource?: string | undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 设置LBS服务
|
|
3
|
-
* @param {string} source 服务类型,{@link
|
|
3
|
+
* @param {string} source 服务类型,{@link services.API_SOURCE_BAIDU}或{@link services.API_SOURCE_TIANDITU}
|
|
4
4
|
*/
|
|
5
5
|
export function setApiSource(source: string): void;
|
|
6
6
|
/**
|
|
7
7
|
* 获取LBS服务
|
|
8
|
-
* @returns {string} 服务类型,{@link
|
|
8
|
+
* @returns {string} 服务类型,{@link services.API_SOURCE_BAIDU}或{@link services.API_SOURCE_TIANDITU}
|
|
9
9
|
*/
|
|
10
10
|
export function getApiSource(): string;
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
* @example
|
|
12
12
|
* ```javascript
|
|
13
13
|
* // 创建百度地图行政区划图层
|
|
14
|
-
* const district = new mapvthree.
|
|
14
|
+
* const district = new mapvthree.services.DistrictLayer({
|
|
15
15
|
* name: '(山东省)',
|
|
16
16
|
* kind: 0, // 省级
|
|
17
|
-
* apiSource: mapvthree.
|
|
17
|
+
* apiSource: mapvthree.services.API_SOURCE_BAIDU,
|
|
18
18
|
* renderOptions: {
|
|
19
19
|
* engine: engine,
|
|
20
20
|
* fillColor: '#618bf8',
|
|
@@ -31,7 +31,7 @@ export class DistrictLayer {
|
|
|
31
31
|
* @param {string} options.name 行政区划名称,格式如'(山东省)'、'(北京市)'
|
|
32
32
|
* @param {number} options.kind 行政区划层级,0=省级,1=市级,2=区县级
|
|
33
33
|
* @param {string} [options.apiSource] API数据源。
|
|
34
|
-
* 可以配置为{@link
|
|
34
|
+
* 可以配置为{@link services.API_SOURCE_BAIDU}或{@link services.API_SOURCE_TIANDITU},默认使用配置的数据源
|
|
35
35
|
* @param {Object} [options.renderOptions] 渲染配置
|
|
36
36
|
* @param {Engine} options.renderOptions.engine 地图引擎实例
|
|
37
37
|
* @param {boolean} optiosn.renderOptiosn.autoViewport 自动跳转到区域中心
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* @example
|
|
11
11
|
* ```javascript
|
|
12
12
|
* // 创建百度地图地理编码服务
|
|
13
|
-
* const geocoder = new mapvthree.
|
|
14
|
-
* apiSource: mapvthree.
|
|
13
|
+
* const geocoder = new mapvthree.services.Geocoder({
|
|
14
|
+
* apiSource: mapvthree.services.API_SOURCE_BAIDU,
|
|
15
15
|
* });
|
|
16
16
|
*
|
|
17
17
|
* // 地址转坐标
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
* @example
|
|
25
25
|
* ```javascript
|
|
26
26
|
* // 创建天地图地理编码服务
|
|
27
|
-
* const geocoder = new mapvthree.
|
|
28
|
-
* apiSource: mapvthree.
|
|
27
|
+
* const geocoder = new mapvthree.services.Geocoder({
|
|
28
|
+
* apiSource: mapvthree.services.API_SOURCE_TIANDITU,
|
|
29
29
|
* });
|
|
30
30
|
*
|
|
31
31
|
* // 坐标转地址
|
|
@@ -40,7 +40,7 @@ export class Geocoder {
|
|
|
40
40
|
* 创建地理编码服务实例
|
|
41
41
|
* @param {Object} options 配置参数
|
|
42
42
|
* @param {string} [options.apiSource] API数据源。
|
|
43
|
-
* 可以配置为{@link
|
|
43
|
+
* 可以配置为{@link services.API_SOURCE_BAIDU}或{@link services.API_SOURCE_TIANDITU},默认使用配置的数据源
|
|
44
44
|
*/
|
|
45
45
|
constructor(options?: {
|
|
46
46
|
apiSource?: string | undefined;
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* @example
|
|
12
12
|
* ```javascript
|
|
13
13
|
* // 创建百度地图本地搜索服务
|
|
14
|
-
* const localSearch = new mapvthree.
|
|
15
|
-
* apiSource: mapvthree.
|
|
14
|
+
* const localSearch = new mapvthree.services.LocalSearch({
|
|
15
|
+
* apiSource: mapvthree.services.API_SOURCE_BAIDU,
|
|
16
16
|
* pageCapacity: 20,
|
|
17
17
|
* renderOptions: {
|
|
18
18
|
* engine: engine,
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
* @example
|
|
30
30
|
* ```javascript
|
|
31
31
|
* // 创建天地图本地搜索服务
|
|
32
|
-
* const localSearch = new mapvthree.
|
|
33
|
-
* apiSource: mapvthree.
|
|
32
|
+
* const localSearch = new mapvthree.services.LocalSearch({
|
|
33
|
+
* apiSource: mapvthree.services.API_SOURCE_TIANDITU,
|
|
34
34
|
* pageCapacity: 10,
|
|
35
35
|
* renderOptions: {
|
|
36
36
|
* engine: engine,
|
|
@@ -56,7 +56,7 @@ export class LocalSearch {
|
|
|
56
56
|
* @param {number} [options.pageCapacity=10] 每页结果数,默认10
|
|
57
57
|
* @param {number} [options.pageNum=0] 页码,默认0
|
|
58
58
|
* @param {string} [options.apiSource] API数据源。
|
|
59
|
-
* 可以配置为{@link
|
|
59
|
+
* 可以配置为{@link services.API_SOURCE_BAIDU}或{@link services.API_SOURCE_TIANDITU},默认使用配置的数据源
|
|
60
60
|
* @param {Object} [options.renderOptions] 渲染配置
|
|
61
61
|
* @param {Engine} options.renderOptions.engine 地图引擎实例
|
|
62
62
|
* @param {boolean} [options.renderOptions.autoViewport=true] 是否自动调整地图视图以包含所有搜索结果
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* ```javascript
|
|
17
17
|
* // 创建驾车路线规划实例
|
|
18
18
|
* const drivingRoute = new DrivingRoute({
|
|
19
|
-
* apiSource: mapvthree.
|
|
19
|
+
* apiSource: mapvthree.services.API_SOURCE_BAIDU, // 使用百度地图数据源
|
|
20
20
|
* renderOptions: {
|
|
21
21
|
* engine: engine, // 渲染引擎
|
|
22
22
|
* autoViewport: true // 自动调整视野
|
|
@@ -38,7 +38,7 @@ export class DrivingRoute extends BaseRoute {
|
|
|
38
38
|
* 创建驾车路线规划服务实例
|
|
39
39
|
* @param {object} options 配置选项
|
|
40
40
|
* @param {string} [options.apiSource] API数据源。
|
|
41
|
-
* 可以配置为{@link
|
|
41
|
+
* 可以配置为{@link services.API_SOURCE_BAIDU}或{@link services.API_SOURCE_TIANDITU},默认使用配置的数据源
|
|
42
42
|
* @param {object} [options.renderOptions] 渲染选项
|
|
43
43
|
* @param {Engine} [options.renderOptions.engine] 渲染引擎实例
|
|
44
44
|
* @param {boolean} [options.renderOptions.autoViewport] 是否自动调整视野
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* ```javascript
|
|
17
17
|
* // 创建公交路线规划实例
|
|
18
18
|
* const transitRoute = new TransitRoute({
|
|
19
|
-
* apiSource: mapvthree.
|
|
19
|
+
* apiSource: mapvthree.services.API_SOURCE_BAIDU, // 使用百度地图数据源
|
|
20
20
|
* renderOptions: {
|
|
21
21
|
* engine: engine, // 渲染引擎
|
|
22
22
|
* autoViewport: true // 自动调整视野
|
|
@@ -35,14 +35,14 @@ export class TransitRoute extends BaseRoute {
|
|
|
35
35
|
* 创建公交路线规划服务实例
|
|
36
36
|
* @param {object} options 配置选项
|
|
37
37
|
* @param {string} [options.apiSource] API数据源。
|
|
38
|
-
* 可以配置为{@link
|
|
38
|
+
* 可以配置为{@link services.API_SOURCE_BAIDU}或{@link services.API_SOURCE_TIANDITU},默认使用配置的数据源
|
|
39
39
|
* @param {object} [options.renderOptions] 渲染选项
|
|
40
40
|
* @param {Engine} [options.renderOptions.engine] 渲染引擎实例
|
|
41
41
|
* @param {boolean} [options.renderOptions.autoViewport] 是否自动调整视野
|
|
42
42
|
* @example
|
|
43
43
|
* ```javascript
|
|
44
44
|
* const transitRoute = new TransitRoute({
|
|
45
|
-
* apiSource: mapvthree.
|
|
45
|
+
* apiSource: mapvthree.services.API_SOURCE_BAIDU,
|
|
46
46
|
* renderOptions: {
|
|
47
47
|
* engine: engine,
|
|
48
48
|
* autoViewport: true
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export function lineToMesh(points: any, width: any, tileConfig: any, isSingle: any, scale
|
|
1
|
+
export function lineToMesh(points: any, width: any, tileConfig: any, isSingle: any, scale: number | undefined, projectedPoints: any): {
|
|
2
2
|
vertices: any[];
|
|
3
3
|
indices: any[];
|
|
4
4
|
normals: any[];
|
|
5
5
|
widths: any[];
|
|
6
6
|
lengths: any[];
|
|
7
7
|
totalLengths: any[] | undefined;
|
|
8
|
-
uvs:
|
|
8
|
+
uvs: number[];
|
|
9
9
|
};
|
|
@@ -18,7 +18,7 @@ export function reFetch(url?: string, fetchOptions?: object, times?: number): an
|
|
|
18
18
|
* @param {Function} callback 回调函数
|
|
19
19
|
* @return {boolean} false
|
|
20
20
|
*/
|
|
21
|
-
export function jsonp(url: string, param: Object, options
|
|
21
|
+
export function jsonp(url: string, param: Object, options?: {}): boolean;
|
|
22
22
|
/**
|
|
23
23
|
* Creates a deferred object, containing a promise object, and functions to resolve or reject the promise.
|
|
24
24
|
* @returns {defer.deferred}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baidumap/mapv-three",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "A powerful 3D map engine.",
|
|
5
5
|
"author": "mapopen-fe@baidu.com",
|
|
6
6
|
"main": "dist/mapvthree.umd.js",
|
|
@@ -28,13 +28,14 @@
|
|
|
28
28
|
"stats.js": "^0.17.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"three": "0.
|
|
31
|
+
"three": ">=0.179.1"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@mapbox/tiny-sdf": "^2.0.5",
|
|
35
35
|
"@mapbox/unitbezier": "^0.0.1",
|
|
36
36
|
"@mapbox/vector-tile": "^1.3.1",
|
|
37
37
|
"@turf/jsts": "^2.7.1",
|
|
38
|
+
"astronomy-engine": "^2.1.19",
|
|
38
39
|
"cdt2d": "^1.0.0",
|
|
39
40
|
"csv-parse": "^5.3.0",
|
|
40
41
|
"d3-geo": "^1.7.1",
|
|
@@ -45,12 +46,14 @@
|
|
|
45
46
|
"mapbox-to-css-font": "^3.2.0",
|
|
46
47
|
"omggif": "^1.0.10",
|
|
47
48
|
"pbf": "^3.2.1",
|
|
49
|
+
"postprocessing": "^6.37.7",
|
|
48
50
|
"potpack": "^1.0.2",
|
|
49
51
|
"proj4": "^2.17.0",
|
|
50
52
|
"rbush": "^3.0.1",
|
|
51
|
-
"shader-particle-system": "^1.1.
|
|
53
|
+
"shader-particle-system": "^1.1.9",
|
|
52
54
|
"simpleheat": "^0.4.0",
|
|
53
55
|
"size-sensor": "^1.0.1",
|
|
56
|
+
"tiny-invariant": "^1.3.3",
|
|
54
57
|
"urijs": "^1.19.11",
|
|
55
58
|
"url-join": "^4.0.1",
|
|
56
59
|
"wellknown": "^0.5.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/compound_expression.d.ts
RENAMED
|
File without changes
|
/package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/assertion.d.ts
RENAMED
|
File without changes
|
/package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/at.d.ts
RENAMED
|
File without changes
|
/package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/case.d.ts
RENAMED
|
File without changes
|
/package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/coalesce.d.ts
RENAMED
|
File without changes
|
/package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/coercion.d.ts
RENAMED
|
File without changes
|
/package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/collator.d.ts
RENAMED
|
File without changes
|
/package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/comparison.d.ts
RENAMED
|
File without changes
|
/package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/format.d.ts
RENAMED
|
File without changes
|
/package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/image.d.ts
RENAMED
|
File without changes
|
/package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/in.d.ts
RENAMED
|
File without changes
|
/package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/index.d.ts
RENAMED
|
File without changes
|
/package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/index_of.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/length.d.ts
RENAMED
|
File without changes
|
/package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/let.d.ts
RENAMED
|
File without changes
|
/package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/literal.d.ts
RENAMED
|
File without changes
|
/package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/match.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/slice.d.ts
RENAMED
|
File without changes
|
/package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/step.d.ts
RENAMED
|
File without changes
|
/package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/var.d.ts
RENAMED
|
File without changes
|
/package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/within.d.ts
RENAMED
|
File without changes
|
/package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/evaluation_context.d.ts
RENAMED
|
File without changes
|