@baidumap/mapv-three 1.2.1 → 1.3.2
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/dist/assets/images/markers/mkr_end.png +0 -0
- package/dist/assets/images/markers/mkr_red_1.png +0 -0
- package/dist/assets/images/markers/mkr_red_10.png +0 -0
- package/dist/assets/images/markers/mkr_red_2.png +0 -0
- package/dist/assets/images/markers/mkr_red_3.png +0 -0
- package/dist/assets/images/markers/mkr_red_4.png +0 -0
- package/dist/assets/images/markers/mkr_red_5.png +0 -0
- package/dist/assets/images/markers/mkr_red_6.png +0 -0
- package/dist/assets/images/markers/mkr_red_7.png +0 -0
- package/dist/assets/images/markers/mkr_red_8.png +0 -0
- package/dist/assets/images/markers/mkr_red_9.png +0 -0
- package/dist/assets/images/markers/mkr_start.png +0 -0
- package/dist/assets/images/markers/mkr_transit_airplane.png +0 -0
- package/dist/assets/images/markers/mkr_transit_bus.png +0 -0
- package/dist/assets/images/markers/mkr_transit_car.png +0 -0
- package/dist/assets/images/markers/mkr_transit_subway.png +0 -0
- package/dist/assets/images/markers/mkr_transit_train.png +0 -0
- package/dist/assets/images/markers/mkr_transit_walking.png +0 -0
- package/dist/assets/images/markers/mkr_waypoint.png +0 -0
- package/dist/assets/textures/roadpile/blue.png +0 -0
- package/dist/assets/textures/roadpile/brown.png +0 -0
- package/dist/assets/textures/roadpile/green.png +0 -0
- package/dist/assets/wasm/lanelet.js +4263 -0
- package/dist/assets/wasm/lanelet.wasm +0 -0
- package/dist/assets/workers/BaiduVectorParser.worker-d550338e.js +7168 -0
- package/dist/assets/workers/CesiumTerrainParser.worker-20119751.js +5860 -0
- package/dist/assets/workers/MVTParser.worker-7dc8b0e4.js +10759 -0
- package/dist/mapvthree.module.js +60755 -49477
- package/dist/mapvthree.umd.js +6 -11
- package/dist/types/assets/wasm/lanelet.d.ts +2 -0
- package/dist/types/index.d.ts +4 -8
- package/dist/types/index.open.d.ts +1 -0
- package/dist/types/threejs/loaders/gltf/GLTFCesiumRTCExtension.d.ts +4 -0
- package/dist/types/threejs/materials/natural/WaterMaterial.d.ts +3 -0
- package/dist/types/threejs/materials/point/Icon.d.ts +1 -0
- package/dist/types/threejs/objects/element/OctahedralImpostor.d.ts +3 -0
- package/dist/types/threejs/objects/point/Label.d.ts +3 -0
- package/dist/types/threejs/objects/polygon/Polygon.d.ts +1 -0
- package/dist/types/threemap/3dtiles/cesium/Cesium3DTileset.d.ts +5 -0
- package/dist/types/threemap/3dtiles/elements/TileInstancedElementManager.d.ts +116 -4
- package/dist/types/threemap/Engine.d.ts +5 -0
- package/dist/types/threemap/animations/PathTracker.d.ts +106 -112
- package/dist/types/threemap/animations/PathTracker_deprecated.d.ts +136 -0
- package/dist/types/threemap/animations/TrackerAbstract.d.ts +89 -0
- package/dist/types/threemap/controls/editors/CircleEditor.d.ts +0 -7
- package/dist/types/threemap/controls/editors/Editor.d.ts +100 -21
- package/dist/types/threemap/controls/editors/PointEditor.d.ts +0 -9
- package/dist/types/threemap/controls/editors/PolygonEditor.d.ts +0 -9
- package/dist/types/threemap/controls/editors/RectEditor.d.ts +0 -9
- package/dist/types/threemap/controls/editors/SplineEditor.d.ts +0 -5
- package/dist/types/threemap/engine/Rendering.d.ts +12 -8
- package/dist/types/threemap/engine/map/earth/EllipsoidCamera.d.ts +3 -0
- package/dist/types/threemap/engine/rendering/MainNew.d.ts +1 -0
- package/dist/types/threemap/engine/rendering/MicroTaskScheduler.d.ts +1 -0
- package/dist/types/threemap/engine/rendering/Picking.d.ts +0 -1
- package/dist/types/threemap/engine/rendering/RenderState.d.ts +15 -0
- package/dist/types/threemap/engine/rendering/features/Features.d.ts +1 -0
- package/dist/types/threemap/engine/rendering/postprocessing/Postprocessings.d.ts +1 -0
- package/dist/types/threemap/engine/rendering/postprocessing/VolumetricCloudsPass.d.ts +1 -0
- package/dist/types/threemap/engine/rendering/scene/SceneRendering.d.ts +1 -0
- package/dist/types/threemap/mapView/configs.d.ts +6 -1
- package/dist/types/threemap/mapView/constants.d.ts +5 -0
- package/dist/types/threemap/mapView/grid/BaiduLaneVectorGrid.d.ts +33 -0
- package/dist/types/threemap/mapView/grid/BaiduVectorOnlineGrid.d.ts +128 -2
- package/dist/types/threemap/mapView/map/MapView.d.ts +6 -0
- package/dist/types/threemap/mapView/surface/MapSurface.d.ts +19 -1
- package/dist/types/threemap/mapView/tileProvider/imagery/Baidu09ImageryTileProvider.d.ts +1 -1
- package/dist/types/threemap/mapView/tileProvider/imagery/TiandituImageryTileProvider.d.ts +1 -1
- package/dist/types/threemap/mapView/tileProvider/imagery/XYZImageryTileProvider.d.ts +1 -1
- package/dist/types/threemap/mapView/tileProvider/vector/BaiduLaneVectorTileProvider.d.ts +152 -0
- package/dist/types/threemap/mapView/tileProvider/worker/BaiduLaneVectorParser.worker.d.ts +1 -0
- package/dist/types/threemap/overlay/DOMOverlay.d.ts +9 -2
- package/dist/types/threemap/overlay/Marker.d.ts +2 -2
- package/dist/types/threemap/services/autoComplete/AutoComplete.d.ts +147 -0
- package/dist/types/threemap/services/autoComplete/AutoComplete_Bd.d.ts +154 -0
- package/dist/types/threemap/services/boundary/Boundary.d.ts +69 -0
- package/dist/types/threemap/services/boundary/Boundary_Bd.d.ts +56 -0
- package/dist/types/threemap/services/boundary/Boundary_Tdt.d.ts +17 -0
- package/dist/types/threemap/services/common/baiduCommon.d.ts +136 -0
- package/dist/types/threemap/services/common/baiduRequest.d.ts +3 -0
- package/dist/types/threemap/services/common/baiduUtils.d.ts +13 -0
- package/dist/types/threemap/services/common/tdtRequest.d.ts +34 -0
- package/dist/types/threemap/services/configs.d.ts +10 -0
- package/dist/types/threemap/services/constants.d.ts +8 -0
- package/dist/types/threemap/services/district/DistrictLayer.d.ts +167 -0
- package/dist/types/threemap/services/district/DistrictLayer_Bd.d.ts +41 -0
- package/dist/types/threemap/services/district/DistrictLayer_Tdt.d.ts +47 -0
- package/dist/types/threemap/services/geocoder/Geocoder.d.ts +100 -0
- package/dist/types/threemap/services/geocoder/Geocoder_Bd.d.ts +24 -0
- package/dist/types/threemap/services/geocoder/Geocoder_Tdt.d.ts +10 -0
- package/dist/types/threemap/services/index.d.ts +11 -0
- package/dist/types/threemap/services/localSearch/LocalResult.d.ts +47 -0
- package/dist/types/threemap/services/localSearch/LocalSearch.d.ts +175 -0
- package/dist/types/threemap/services/localSearch/LocalSearch_Bd.d.ts +18 -0
- package/dist/types/threemap/services/localSearch/LocalSearch_Tdt.d.ts +6 -0
- package/dist/types/threemap/services/routeSearch/BaseRoute.d.ts +113 -0
- package/dist/types/threemap/services/routeSearch/DWRoute_Bd.d.ts +46 -0
- package/dist/types/threemap/services/routeSearch/DWRoute_Tdt.d.ts +8 -0
- package/dist/types/threemap/services/routeSearch/DrivingRoute.d.ts +113 -0
- package/dist/types/threemap/services/routeSearch/RidingRoute.d.ts +63 -0
- package/dist/types/threemap/services/routeSearch/RouteResult.d.ts +39 -0
- package/dist/types/threemap/services/routeSearch/TransitRoute.d.ts +111 -0
- package/dist/types/threemap/services/routeSearch/TransitRoute_Bd.d.ts +33 -0
- package/dist/types/threemap/services/routeSearch/TransitRoute_Tdt.d.ts +9 -0
- package/dist/types/threemap/services/routeSearch/WalkingRoute.d.ts +69 -0
- package/dist/types/threemap/video/VideoConfig.d.ts +16 -0
- package/dist/types/util/math.d.ts +5 -0
- package/dist/types/util/request.d.ts +1 -1
- package/package.json +1 -2
- package/dist/assets/textures/building/1024/Level12_Repeat0_RR1_Grid8_0_LOD0_Res1024_DiffuseMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level12_Repeat0_RR1_Grid8_0_LOD0_Res1024_EmissiveMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level12_Repeat0_RR1_Grid8_0_LOD0_Res1024_NormalMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level12_Repeat0_RR1_Grid8_0_LOD0_Res1024_RoughnessMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level12_Repeat3_RR1_Grid8_0_LOD0_Res1024_DiffuseMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level12_Repeat3_RR1_Grid8_0_LOD0_Res1024_EmissiveMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level12_Repeat3_RR1_Grid8_0_LOD0_Res1024_NormalMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level12_Repeat3_RR1_Grid8_0_LOD0_Res1024_RoughnessMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level18_Repeat3_RR1_Grid8_0_LOD0_Res1024_DiffuseMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level18_Repeat3_RR1_Grid8_0_LOD0_Res1024_EmissiveMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level18_Repeat3_RR1_Grid8_0_LOD0_Res1024_NormalMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level18_Repeat3_RR1_Grid8_0_LOD0_Res1024_RoughnessMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level1_Repeat0_RR1_Grid8_0_LOD0_Res1024_DiffuseMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level1_Repeat0_RR1_Grid8_0_LOD0_Res1024_EmissiveMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level1_Repeat0_RR1_Grid8_0_LOD0_Res1024_NormalMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level1_Repeat0_RR1_Grid8_0_LOD0_Res1024_RoughnessMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level23_Repeat0_RR1_Grid8_0_LOD0_Res1024_DiffuseMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level23_Repeat0_RR1_Grid8_0_LOD0_Res1024_EmissiveMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level23_Repeat0_RR1_Grid8_0_LOD0_Res1024_NormalMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level23_Repeat0_RR1_Grid8_0_LOD0_Res1024_RoughnessMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level23_Repeat3_RR1_Grid8_0_LOD0_Res1024_DiffuseMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level23_Repeat3_RR1_Grid8_0_LOD0_Res1024_EmissiveMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level23_Repeat3_RR1_Grid8_0_LOD0_Res1024_NormalMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level23_Repeat3_RR1_Grid8_0_LOD0_Res1024_RoughnessMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level2_Repeat1_RR1_Grid8_0_LOD0_Res1024_DiffuseMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level2_Repeat1_RR1_Grid8_0_LOD0_Res1024_EmissiveMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level2_Repeat1_RR1_Grid8_0_LOD0_Res1024_NormalMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level2_Repeat1_RR1_Grid8_0_LOD0_Res1024_RoughnessMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level3_Repeat1_RR1_Grid8_0_LOD0_Res1024_DiffuseMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level3_Repeat1_RR1_Grid8_0_LOD0_Res1024_EmissiveMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level3_Repeat1_RR1_Grid8_0_LOD0_Res1024_NormalMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level3_Repeat1_RR1_Grid8_0_LOD0_Res1024_RoughnessMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level3_Repeat2_RR1_Grid8_0_LOD0_Res1024_DiffuseMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level3_Repeat2_RR1_Grid8_0_LOD0_Res1024_EmissiveMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level3_Repeat2_RR1_Grid8_0_LOD0_Res1024_NormalMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level3_Repeat2_RR1_Grid8_0_LOD0_Res1024_RoughnessMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level4_Repeat3_RR1_Grid8_0_LOD0_Res1024_DiffuseMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level4_Repeat3_RR1_Grid8_0_LOD0_Res1024_EmissiveMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level4_Repeat3_RR1_Grid8_0_LOD0_Res1024_NormalMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level4_Repeat3_RR1_Grid8_0_LOD0_Res1024_RoughnessMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level6_Repeat3_RR1_Grid8_0_LOD0_Res1024_DiffuseMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level6_Repeat3_RR1_Grid8_0_LOD0_Res1024_EmissiveMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level6_Repeat3_RR1_Grid8_0_LOD0_Res1024_NormalMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level6_Repeat3_RR1_Grid8_0_LOD0_Res1024_RoughnessMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level7_Repeat3_RR1_Grid8_0_LOD0_Res1024_DiffuseMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level7_Repeat3_RR1_Grid8_0_LOD0_Res1024_EmissiveMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level7_Repeat3_RR1_Grid8_0_LOD0_Res1024_NormalMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level7_Repeat3_RR1_Grid8_0_LOD0_Res1024_RoughnessMap.PNG +0 -0
- package/dist/assets/textures/building/ac1.png +0 -0
- package/dist/assets/textures/building/black.png +0 -0
- package/dist/assets/textures/building/buiding_normal.jpg +0 -0
- package/dist/assets/textures/building/buiding_roughness.jpg +0 -0
- package/dist/assets/textures/building/building2_atlas_diffuse.jpg +0 -0
- package/dist/assets/textures/building/building2_atlas_diffuse_debug.jpg +0 -0
- package/dist/assets/textures/building/building3_atlas_diffuse.jpg +0 -0
- package/dist/assets/textures/building/building3_atlas_metallic_roughness.jpg +0 -0
- package/dist/assets/textures/building/building3_atlas_normal.jpg +0 -0
- package/dist/assets/textures/building/building4_diffuse.jpg +0 -0
- package/dist/assets/textures/building/building_atlas_diffuse.jpg +0 -0
- package/dist/assets/textures/building/building_atlas_emissive.jpg +0 -0
- package/dist/assets/textures/building/building_atlas_metallic_roughness.jpg +0 -0
- package/dist/assets/textures/building/building_atlas_normal.jpg +0 -0
- package/dist/assets/textures/building/building_atlas_roughness.jpg +0 -0
- package/dist/assets/textures/building/building_diffuse.jpg +0 -0
- package/dist/assets/textures/building/building_side.jpg +0 -0
- package/dist/assets/textures/realistic/Albedo_2K_vl1lfb3fw_512.jpg +0 -0
- package/dist/assets/textures/realistic/Albedo_2K_xdhhdhl_512.jpg +0 -0
- package/dist/assets/textures/realistic/Grass_1_S.jpg +0 -0
- package/dist/assets/textures/realistic/Green_dark.jpg +0 -0
- package/dist/assets/textures/realistic/Road.jpg +0 -0
- package/dist/assets/textures/realistic/Road_Asphalt_10_albedo.jpg +0 -0
- package/dist/assets/textures/realistic/Road_Asphalt_10_ao.jpg +0 -0
- package/dist/assets/textures/realistic/Road_Asphalt_10_height.jpg +0 -0
- package/dist/assets/textures/realistic/Road_Asphalt_10_normal.jpg +0 -0
- package/dist/assets/textures/realistic/Road_Asphalt_10_roughness.jpg +0 -0
- package/dist/assets/textures/realistic/Road_Asphalt_albedo.jpg +0 -0
- package/dist/assets/textures/realistic/Road_Asphalt_albedo.tif +0 -0
- package/dist/assets/textures/realistic/Road_Asphalt_ao.jpg +0 -0
- package/dist/assets/textures/realistic/Road_Asphalt_ao.tif +0 -0
- package/dist/assets/textures/realistic/Road_Asphalt_height.jpg +0 -0
- package/dist/assets/textures/realistic/Road_Asphalt_height.tif +0 -0
- package/dist/assets/textures/realistic/Road_Asphalt_normal.jpg +0 -0
- package/dist/assets/textures/realistic/Road_Asphalt_normal.tif +0 -0
- package/dist/assets/textures/realistic/Road_Asphalt_roughness.jpg +0 -0
- package/dist/assets/textures/realistic/Road_Asphalt_roughness.tif +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Asphalt_Base10_2x2_512_albedo.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Asphalt_Base10_2x2_512_ao.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Asphalt_Base10_2x2_512_height.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Asphalt_Base10_2x2_512_normal.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Asphalt_Base10_2x2_512_roughness.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Concrete_WW2_2x2_512_albedo.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Concrete_WW2_2x2_512_normal.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Concrete_WW2_2x2_512_roughness.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Green_Default_albedo.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Greenbelt_Default_albedo.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Ground_RockBed4_512_albedo.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Ground_RockBed4_512_ao.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Ground_RockBed4_512_height.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Ground_RockBed4_512_normal.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Ground_RockBed4_512_roughness.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Nature_Moss_512_albedo.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Nature_Moss_512_ao.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Nature_Moss_512_height.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Nature_Moss_512_normal.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Nature_Moss_512_roughness.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Nature_Pebbles_512_albedo.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Nature_Pebbles_512_ao.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Nature_Pebbles_512_height.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Nature_Pebbles_512_normal.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Nature_Pebbles_512_roughness.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Road_Bitumen_albedo.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Road_Bitumen_ao.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Road_Bitumen_height.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Road_Bitumen_normal.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Road_Bitumen_roughness.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Road_Default_albedo.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Roofing_Bitumen_512_albedo.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Roofing_Bitumen_512_ao.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Roofing_Bitumen_512_height.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Roofing_Bitumen_512_normal.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Roofing_Bitumen_512_roughness.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise4_512_albedo.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise4_512_ao.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise4_512_emissive.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise4_512_height.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise4_512_metallic.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise4_512_normal.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise4_512_roughness.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise5_512_albedo.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise5_512_ao.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise5_512_emissive.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise5_512_metallic.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise5_512_normal.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise5_512_roughness.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise6_512_albedo.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise6_512_ao.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise6_512_emissive.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise6_512_height.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise6_512_metallic.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise6_512_normal.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise6_512_roughness.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise_512_albedo.png +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise_512_ao.png +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise_512_emissive.png +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise_512_normal.png +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise_512_roughness.png +0 -0
- package/dist/types/threemap/controls/measure/CurvatureMeasure.d.ts +0 -7
- package/dist/types/threemap/controls/measure/SlopeMeasure.d.ts +0 -49
- package/dist/types/threemap/services/CurvatureService.d.ts +0 -18
- package/dist/types/threemap/services/GeoCombinedService.d.ts +0 -13
- package/dist/types/threemap/services/PoiService.d.ts +0 -39
- package/dist/types/threemap/services/RoadService.d.ts +0 -39
- package/dist/types/threemap/services/RouteService.d.ts +0 -34
- package/dist/types/threemap/services/Service.d.ts +0 -46
- /package/dist/assets/textures/{realistic → weather}/TexturesCom_Ground_MudWet_512_roughness.jpg +0 -0
- /package/dist/assets/textures/{realistic → weather}/TexturesCom_Snow_Plain_3x3_512_height.jpg +0 -0
- /package/dist/assets/textures/{realistic → weather}/TexturesCom_Snow_Plain_3x3_512_noise.jpg +0 -0
package/dist/types/index.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export { GridCoordProvider } from "./threemap/mapView/tileProvider/imagery/GridC
|
|
|
34
34
|
export { PlaneTerrainTileProvider } from "./threemap/mapView/tileProvider/terrain/PlaneTerrainTileProvider";
|
|
35
35
|
export { CesiumTerrainTileProvider } from "./threemap/mapView/tileProvider/terrain/CesiumTerrainTileProvider";
|
|
36
36
|
export { BaiduVectorTileProvider } from "./threemap/mapView/tileProvider/vector/BaiduVectorTileProvider";
|
|
37
|
+
export { BaiduLaneVectorTileProvider } from "./threemap/mapView/tileProvider/vector/BaiduLaneVectorTileProvider";
|
|
37
38
|
export { GeoJSONVectorTileProvider } from "./threemap/mapView/tileProvider/vector/GeoJSONVectorTileProvider";
|
|
38
39
|
export { BaiduTrafficTileProvider } from "./threemap/mapView/tileProvider/vector/BaiduTrafficTileProvider";
|
|
39
40
|
export { MapboxVectorTileProvider } from "./threemap/mapView/tileProvider/vector/MapboxVectorTileProvider";
|
|
@@ -84,8 +85,6 @@ export { Measure } from "./threemap/controls/measure/Measure";
|
|
|
84
85
|
export { LengthMeasure } from "./threemap/controls/measure/LengthMeasure";
|
|
85
86
|
export { AreaMeasure } from "./threemap/controls/measure/AreaMeasure";
|
|
86
87
|
export { PointMeasure } from "./threemap/controls/measure/PointMeasure";
|
|
87
|
-
export { SlopeMeasure } from "./threemap/controls/measure/SlopeMeasure";
|
|
88
|
-
export { CurvatureMeasure } from "./threemap/controls/measure/CurvatureMeasure";
|
|
89
88
|
export { ClippingPlaneCollection } from "./threemap/gis/clip/ClippingPlaneCollection";
|
|
90
89
|
export { ClippingPlane } from "./threemap/gis/clip/ClippingPlane";
|
|
91
90
|
export { TerrainClipPlan } from "./threemap/gis/clip/TerrainClipPlan";
|
|
@@ -103,12 +102,7 @@ export { DOMOverlay } from "./threemap/overlay/DOMOverlay";
|
|
|
103
102
|
export { Popup } from "./threemap/overlay/Popup";
|
|
104
103
|
export { Marker } from "./threemap/overlay/Marker";
|
|
105
104
|
export { LodModelCache } from "./threemap/model/LodModelCache";
|
|
106
|
-
export
|
|
107
|
-
export { RouteService } from "./threemap/services/RouteService";
|
|
108
|
-
export { CurvatureService } from "./threemap/services/CurvatureService";
|
|
109
|
-
export { PoiService } from "./threemap/services/PoiService";
|
|
110
|
-
export { RoadService } from "./threemap/services/RoadService";
|
|
111
|
-
export { GeoCombinedService } from "./threemap/services/GeoCombinedService";
|
|
105
|
+
export * as Services from "./threemap/services/index";
|
|
112
106
|
export { Twin } from "./threemap/twin/Twin";
|
|
113
107
|
export { MockTwin } from "./threemap/twin/MockTwin";
|
|
114
108
|
export * as twinConstants from "./threemap/twin/constants";
|
|
@@ -166,12 +160,14 @@ export { FoliageLeafMaterial } from "./threejs/materials/natural/FoliageLeafMate
|
|
|
166
160
|
export { BatchBuildingMaterial } from "./threemap/materials/BatchBuildingMaterial";
|
|
167
161
|
export { ColorAdjustPass } from "./threejs/postprocessing/ColorAdjustPass";
|
|
168
162
|
export { Transforms } from "../src/threemap/engine/map/earth/Transforms";
|
|
163
|
+
export { VideoConfig } from "./threemap/video/VideoConfig";
|
|
169
164
|
export * as urlUtils from "./util/urlUtils";
|
|
170
165
|
export * as geojsonUtils from "./util/geojsonUtils";
|
|
171
166
|
export * as colorUtils from "./util/colorUtils";
|
|
172
167
|
export * as modelUtils from "./threejs/utils/model";
|
|
173
168
|
export * as requestUtils from "./util/request";
|
|
174
169
|
export * as objectUtils from "./util/object";
|
|
170
|
+
export * as cssUtils from "./util/css";
|
|
175
171
|
export { Cartesian3 } from "./threemap/engine/map/earth/Cartesian3";
|
|
176
172
|
export * as Earth from "./threemap/engine/map/earth/exports";
|
|
177
173
|
export * from "./threemap/constants";
|
|
@@ -39,6 +39,7 @@ export { JSONDataSource } from "./threemap/dataSource/JSONDataSource";
|
|
|
39
39
|
export { DOMOverlay } from "./threemap/overlay/DOMOverlay";
|
|
40
40
|
export { Popup } from "./threemap/overlay/Popup";
|
|
41
41
|
export { Marker } from "./threemap/overlay/Marker";
|
|
42
|
+
export * as Services from "./threemap/services/index";
|
|
42
43
|
export { GeoInstancedMesh } from "./threejs/objects/GeoInstancedMesh";
|
|
43
44
|
export { SimplePoint } from "./threejs/objects/point/SimplePoint";
|
|
44
45
|
export { EffectPoint } from "./threejs/objects/point/EffectPoint";
|
|
@@ -5,6 +5,9 @@ export class OctahedralImpostor extends GeoInstancedMesh {
|
|
|
5
5
|
normalDepth: null;
|
|
6
6
|
orm: null;
|
|
7
7
|
};
|
|
8
|
+
static _defaultTexturesPromise: null;
|
|
9
|
+
static _bitmapPromises: Map<any, any>;
|
|
10
|
+
static _getBitmap(url: any): any;
|
|
8
11
|
static initDefaultTextures(): Promise<void>;
|
|
9
12
|
static createTextures(diffuseUrl: any, normalDepthUrl: any, ormUrl: any): Promise<{
|
|
10
13
|
diffuseTexture: any;
|
|
@@ -177,6 +177,7 @@ export class Label extends GeoMesh {
|
|
|
177
177
|
* @param {Boolean} [parameters.transparent=false] 是否透明
|
|
178
178
|
* @param {Array} [parameters.pixelOffset] 像素偏移, 默认[0,0]
|
|
179
179
|
* @param {Array} [parameters.positionOffset] 坐标偏移, 默认[0,0]
|
|
180
|
+
* @param {Array} [parameters.useIconScale] 是否使用图片自身的比例
|
|
180
181
|
*/
|
|
181
182
|
constructor(parameters?: {
|
|
182
183
|
vertexIcons?: boolean | undefined;
|
|
@@ -200,6 +201,7 @@ export class Label extends GeoMesh {
|
|
|
200
201
|
transparent?: boolean | undefined;
|
|
201
202
|
pixelOffset?: any[] | undefined;
|
|
202
203
|
positionOffset?: any[] | undefined;
|
|
204
|
+
useIconScale?: any[] | undefined;
|
|
203
205
|
});
|
|
204
206
|
isEventEntitySupported: boolean;
|
|
205
207
|
/**
|
|
@@ -250,6 +252,7 @@ export class Label extends GeoMesh {
|
|
|
250
252
|
_iconHeight: any;
|
|
251
253
|
_offset: any;
|
|
252
254
|
_fadeData: FadeData;
|
|
255
|
+
_useIconScale: any;
|
|
253
256
|
fontAtalasManager: FontAtlasManager;
|
|
254
257
|
iconCanvas: HTMLCanvasElement | undefined;
|
|
255
258
|
iconCtx: CanvasRenderingContext2D | null | undefined;
|
|
@@ -197,6 +197,7 @@ export class Polygon extends GeoMesh {
|
|
|
197
197
|
* @protected
|
|
198
198
|
*/
|
|
199
199
|
protected onBeforeSceneRenderHook(engine: Engine, scene: Scene, camera: Camera, renderState: Object): void;
|
|
200
|
+
getNormal(): any;
|
|
200
201
|
/**
|
|
201
202
|
* 计算矩形边界
|
|
202
203
|
* @returns {Array<number>} 边界数组 [minX, minY, maxX, maxY]
|
|
@@ -10,7 +10,12 @@ export class Cesium3DTileset {
|
|
|
10
10
|
static supportedExtensions: {
|
|
11
11
|
'3DTILES_metadata': boolean;
|
|
12
12
|
'3DTILES_implicit_tiling': boolean;
|
|
13
|
+
'3DTILES_content_gltf': boolean;
|
|
13
14
|
'3DTILES_multiple_contents': boolean;
|
|
15
|
+
'3DTILES_bounding_volume_S2': boolean;
|
|
16
|
+
'3DTILES_batch_table_hierarchy': boolean;
|
|
17
|
+
'3DTILES_draco_point_compression': boolean;
|
|
18
|
+
MAXAR_content_geojson: boolean;
|
|
14
19
|
};
|
|
15
20
|
static checkSupportedExtensions: (extensionsRequired: any) => void;
|
|
16
21
|
static fromAssetId(assetId: any, options: any): Promise<Cesium3DTileset>;
|
|
@@ -5,6 +5,8 @@ export class TileInstancedElementManager {
|
|
|
5
5
|
private _updateDelayTimerHander;
|
|
6
6
|
/** @private */
|
|
7
7
|
private _configVersion;
|
|
8
|
+
/** @private */
|
|
9
|
+
private _poiConfigVersion;
|
|
8
10
|
_poiConfig: {
|
|
9
11
|
poi: {
|
|
10
12
|
enabled: boolean;
|
|
@@ -24,6 +26,7 @@ export class TileInstancedElementManager {
|
|
|
24
26
|
private _poiEnabled;
|
|
25
27
|
group: any;
|
|
26
28
|
_modelMeshSingleton: PromisedSingleton;
|
|
29
|
+
_hiddenDataTypes: Set<any>;
|
|
27
30
|
_generateModelMesh: (key: any) => Promise<any>;
|
|
28
31
|
markNeedsUpdate: () => void;
|
|
29
32
|
getIconUrl(mapUrl: any): string;
|
|
@@ -54,20 +57,117 @@ export class TileInstancedElementManager {
|
|
|
54
57
|
removeLabels(labels: any): void;
|
|
55
58
|
addLabel(label: any, instance: any): void;
|
|
56
59
|
removeLabel(label: any, instance: any): void;
|
|
60
|
+
/**
|
|
61
|
+
* 设置POI配置
|
|
62
|
+
* @param {Object} poiConfig - POI配置对象
|
|
63
|
+
* @param {Object} poiConfig.poi - POI配置
|
|
64
|
+
* @param {boolean} poiConfig.poi.enabled - 是否启用POI
|
|
65
|
+
* @param {Object} poiConfig.label - 标签配置
|
|
66
|
+
* @param {boolean} poiConfig.label.enabled - 是否启用标签
|
|
67
|
+
* @example
|
|
68
|
+
* manager.setPoiConfig({
|
|
69
|
+
* poi: { enabled: true },
|
|
70
|
+
* label: { enabled: false },
|
|
71
|
+
* restaurant: { enabled: true },
|
|
72
|
+
* hotel: { enabled: false }
|
|
73
|
+
* });
|
|
74
|
+
*/
|
|
75
|
+
setPoiConfig(poiConfig: {
|
|
76
|
+
poi: {
|
|
77
|
+
enabled: boolean;
|
|
78
|
+
};
|
|
79
|
+
label: {
|
|
80
|
+
enabled: boolean;
|
|
81
|
+
};
|
|
82
|
+
}): this;
|
|
83
|
+
/**
|
|
84
|
+
* 获取当前POI配置
|
|
85
|
+
* @returns {Object} 当前POI配置
|
|
86
|
+
*/
|
|
87
|
+
getPoiConfig(): Object;
|
|
88
|
+
/**
|
|
89
|
+
* 启用指定类型的POI
|
|
90
|
+
* @param {string} type - POI类型
|
|
91
|
+
* @example
|
|
92
|
+
* manager.enablePoiType('poi');
|
|
93
|
+
* manager.enablePoiType('restaurant');
|
|
94
|
+
*/
|
|
95
|
+
enablePoiType(type: string): this;
|
|
96
|
+
/**
|
|
97
|
+
* 禁用指定类型的POI
|
|
98
|
+
* @param {string} type - POI类型
|
|
99
|
+
* @example
|
|
100
|
+
* manager.disablePoiType('poi');
|
|
101
|
+
* manager.disablePoiType('restaurant');
|
|
102
|
+
*/
|
|
103
|
+
disablePoiType(type: string): this;
|
|
104
|
+
/**
|
|
105
|
+
* 切换指定类型POI的显示状态
|
|
106
|
+
* @param {string} type - POI类型
|
|
107
|
+
* @returns {boolean} 切换后的状态
|
|
108
|
+
* @example
|
|
109
|
+
* const isEnabled = manager.togglePoiType('poi');
|
|
110
|
+
*/
|
|
111
|
+
togglePoiType(type: string): boolean;
|
|
112
|
+
/**
|
|
113
|
+
* 检查指定类型的POI是否启用
|
|
114
|
+
* @param {string} type - POI类型
|
|
115
|
+
* @returns {boolean} 是否启用
|
|
116
|
+
*/
|
|
117
|
+
isPoiTypeEnabled(type: string): boolean;
|
|
118
|
+
/**
|
|
119
|
+
* 获取所有可用的POI类型
|
|
120
|
+
* @returns {string[]} POI类型数组
|
|
121
|
+
*/
|
|
122
|
+
getAvailablePoiTypes(): string[];
|
|
123
|
+
/**
|
|
124
|
+
* 隐藏指定的dataType
|
|
125
|
+
* @param {string|number} dataType - 要隐藏的数据类型
|
|
126
|
+
*/
|
|
127
|
+
hideDataType(dataType: string | number): this;
|
|
128
|
+
/**
|
|
129
|
+
* 显示指定的dataType
|
|
130
|
+
* @param {string|number} dataType - 要显示的数据类型
|
|
131
|
+
*/
|
|
132
|
+
showDataType(dataType: string | number): this;
|
|
133
|
+
/**
|
|
134
|
+
* 切换dataType的显示状态
|
|
135
|
+
* @param {string|number} dataType - 数据类型
|
|
136
|
+
* @returns {boolean} 切换后是否可见(true=可见,false=隐藏)
|
|
137
|
+
*/
|
|
138
|
+
toggleDataType(dataType: string | number): boolean;
|
|
139
|
+
/**
|
|
140
|
+
* 检查dataType是否可见
|
|
141
|
+
* @param {string|number} dataType - 数据类型
|
|
142
|
+
* @returns {boolean} 是否可见
|
|
143
|
+
*/
|
|
144
|
+
isDataTypeVisible(dataType: string | number): boolean;
|
|
145
|
+
/**
|
|
146
|
+
* 获取所有隐藏的dataType列表
|
|
147
|
+
* @returns {Array} 隐藏的dataType数组
|
|
148
|
+
*/
|
|
149
|
+
getHiddenDataTypes(): any[];
|
|
57
150
|
set config(config: {
|
|
58
151
|
tree: {
|
|
59
152
|
enabled: boolean;
|
|
60
153
|
isFoliage: boolean;
|
|
61
154
|
isBox: boolean;
|
|
62
155
|
scaleByZ: boolean;
|
|
63
|
-
instances: {
|
|
156
|
+
instances: ({
|
|
64
157
|
subtype: string;
|
|
65
158
|
diffuseTexture: string;
|
|
66
159
|
normalDepthTexture: string;
|
|
67
160
|
ormTexture: string;
|
|
68
161
|
imposterScale: number;
|
|
69
162
|
uvOffset: number;
|
|
70
|
-
}
|
|
163
|
+
} | {
|
|
164
|
+
subtype: string;
|
|
165
|
+
imposterScale: number;
|
|
166
|
+
uvOffset: number;
|
|
167
|
+
diffuseTexture?: undefined;
|
|
168
|
+
normalDepthTexture?: undefined;
|
|
169
|
+
ormTexture?: undefined;
|
|
170
|
+
})[];
|
|
71
171
|
};
|
|
72
172
|
});
|
|
73
173
|
get config(): {
|
|
@@ -76,19 +176,31 @@ export class TileInstancedElementManager {
|
|
|
76
176
|
isFoliage: boolean;
|
|
77
177
|
isBox: boolean;
|
|
78
178
|
scaleByZ: boolean;
|
|
79
|
-
instances: {
|
|
179
|
+
instances: ({
|
|
80
180
|
subtype: string;
|
|
81
181
|
diffuseTexture: string;
|
|
82
182
|
normalDepthTexture: string;
|
|
83
183
|
ormTexture: string;
|
|
84
184
|
imposterScale: number;
|
|
85
185
|
uvOffset: number;
|
|
86
|
-
}
|
|
186
|
+
} | {
|
|
187
|
+
subtype: string;
|
|
188
|
+
imposterScale: number;
|
|
189
|
+
uvOffset: number;
|
|
190
|
+
diffuseTexture?: undefined;
|
|
191
|
+
normalDepthTexture?: undefined;
|
|
192
|
+
ormTexture?: undefined;
|
|
193
|
+
})[];
|
|
87
194
|
};
|
|
88
195
|
};
|
|
89
196
|
set labelEnabled(enabled: boolean);
|
|
90
197
|
get labelEnabled(): boolean;
|
|
91
198
|
set poiEnabled(enabled: boolean);
|
|
92
199
|
get poiEnabled(): boolean;
|
|
200
|
+
/**
|
|
201
|
+
* 设置POI配置的getter/setter
|
|
202
|
+
*/
|
|
203
|
+
set poiConfig(config: Object);
|
|
204
|
+
get poiConfig(): Object;
|
|
93
205
|
}
|
|
94
206
|
import { PromisedSingleton } from '../../../util/PromisedSingleton';
|
|
@@ -131,6 +131,11 @@ export class Engine {
|
|
|
131
131
|
* // TODO: 暂时不对外开放,考虑移到engine.map中
|
|
132
132
|
*/
|
|
133
133
|
private unlockCamera;
|
|
134
|
+
/**
|
|
135
|
+
* 渲染电影
|
|
136
|
+
* @param {Movie} movie 电影对象
|
|
137
|
+
*/
|
|
138
|
+
renderVideo(videoConfig: any): Promise<void>;
|
|
134
139
|
/**
|
|
135
140
|
* 容器对象
|
|
136
141
|
* @type {HTMLElement}
|
|
@@ -1,64 +1,84 @@
|
|
|
1
|
-
export class PathTracker {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
/** @private */ private _animationDuration;
|
|
5
|
-
/** @private */ private _animationTransform;
|
|
6
|
-
/** @private */ private _animationCurrenState;
|
|
7
|
-
/** @private */ private _engine;
|
|
8
|
-
/** @private */ private _track;
|
|
9
|
-
/** @private */ private _frameInfo;
|
|
10
|
-
/** @private */ private _sampledPath;
|
|
11
|
-
/** @private */ private _isPause;
|
|
12
|
-
/** @private */ private _pauseTime;
|
|
13
|
-
/** @private */ private _pauseTimestamp;
|
|
14
|
-
/** @private */ private _object;
|
|
1
|
+
export class PathTracker extends TrackerAbstract {
|
|
2
|
+
_sampledPath: any[];
|
|
3
|
+
_arcInfo: {};
|
|
15
4
|
/** @private */ private _interpolateDirectThreshold;
|
|
16
5
|
/** @private */ private _interpolateDirectThresholdPercent;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @internal
|
|
28
|
-
* 控制地图视野移动
|
|
29
|
-
*/
|
|
30
|
-
_updateCamera(camera: any, center: any, zoom: any, zoomUnits: any, heading: any, pitch: any): void;
|
|
31
|
-
_computeCameraMatrixGlobe(camera: any, center: any, zoom: any, zoomUnits: any, heading: any, pitch: any): void;
|
|
32
|
-
/**
|
|
33
|
-
* @internal
|
|
34
|
-
* 不用map的方法,直接修改相机,避免出现卡顿问题
|
|
35
|
-
*/
|
|
36
|
-
_computeCameraMatrixBlankMap(camera: any, center: any, zoom: any, zoomUnits: any, heading: any, pitch: any): void;
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
* 3DControl的lookAt方法是直接操作相机
|
|
40
|
-
*/
|
|
41
|
-
_computeCameraMatrixBlankMap3D(camera: any, center: any, zoom: any, zoomUnits: any, heading: any, pitch: any): void;
|
|
42
|
-
_updatePositionAndDirection(last: any, current: any, percent: any, isTrans: any, transPercent: any): {
|
|
6
|
+
updatePositionByPercentage(ratio: any): {
|
|
7
|
+
point: any;
|
|
8
|
+
hpr: {
|
|
9
|
+
heading: number;
|
|
10
|
+
pitch: number;
|
|
11
|
+
roll: number;
|
|
12
|
+
};
|
|
13
|
+
direction: any;
|
|
14
|
+
} | {
|
|
43
15
|
point: any[];
|
|
16
|
+
hpr: {
|
|
17
|
+
heading: any;
|
|
18
|
+
pitch: any;
|
|
19
|
+
roll: any;
|
|
20
|
+
};
|
|
21
|
+
} | undefined;
|
|
22
|
+
_interpolatePath(ratio: any): {
|
|
23
|
+
point: any;
|
|
24
|
+
hpr: {
|
|
25
|
+
heading: number;
|
|
26
|
+
pitch: number;
|
|
27
|
+
roll: number;
|
|
28
|
+
};
|
|
44
29
|
direction: any;
|
|
30
|
+
} | {
|
|
31
|
+
point: any[];
|
|
32
|
+
hpr: {
|
|
33
|
+
heading: any;
|
|
34
|
+
pitch: any;
|
|
35
|
+
roll: any;
|
|
36
|
+
};
|
|
45
37
|
};
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
38
|
+
_handleFrame(lastFrame: any, currentFrame: any, last: any, current: any, next: any, point: any, transPercent: any, percent: any, ratio: any): {
|
|
39
|
+
point: any;
|
|
40
|
+
hpr: {
|
|
41
|
+
heading: number;
|
|
42
|
+
pitch: number;
|
|
43
|
+
roll: number;
|
|
44
|
+
};
|
|
45
|
+
direction: any;
|
|
46
|
+
};
|
|
47
|
+
_getSegment(ratio: any, dataLength: any): {
|
|
48
|
+
last: any;
|
|
49
|
+
current: any;
|
|
50
|
+
next: any;
|
|
51
|
+
isStart: boolean;
|
|
52
|
+
isEnd: boolean;
|
|
53
|
+
segmentPercent: number;
|
|
54
|
+
lastFrame: any;
|
|
55
|
+
currentFrame: any;
|
|
56
|
+
};
|
|
57
|
+
_computeTransition(percent: any, last: any, current: any, next: any, isStart: any, isEnd: any): {
|
|
58
|
+
isTransition: any;
|
|
59
|
+
transPercent: number;
|
|
60
|
+
};
|
|
61
|
+
_updatePositionAndDirection(last: any, current: any, percent: any, isTrans: any, transPercent: any): {
|
|
62
|
+
point: any[];
|
|
63
|
+
hpr: {
|
|
64
|
+
heading: any;
|
|
65
|
+
pitch: any;
|
|
66
|
+
roll: any;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
_findCurrentSegment(ratio: any): {
|
|
70
|
+
last: any;
|
|
71
|
+
current: any;
|
|
72
|
+
next: any;
|
|
73
|
+
percent: number;
|
|
74
|
+
lastFrame: null;
|
|
75
|
+
currentFrame: null;
|
|
76
|
+
index: number;
|
|
77
|
+
} | null;
|
|
78
|
+
_calculateLocation(last: any, current: any, percent: any): {
|
|
52
79
|
point: any[];
|
|
53
|
-
position: any;
|
|
54
|
-
distance: number;
|
|
55
80
|
direction: any;
|
|
56
|
-
pitch: number;
|
|
57
|
-
path: any;
|
|
58
81
|
};
|
|
59
|
-
/**
|
|
60
|
-
* @internal
|
|
61
|
-
*/
|
|
62
82
|
_createSampledPath(path: any): {
|
|
63
83
|
percent: string;
|
|
64
84
|
point: any;
|
|
@@ -68,69 +88,43 @@ export class PathTracker {
|
|
|
68
88
|
pitch: number;
|
|
69
89
|
}[] | undefined;
|
|
70
90
|
/**
|
|
71
|
-
*
|
|
72
|
-
* 计算v0到v1的地图倾斜角度
|
|
73
|
-
* @param {Array} v0 起点
|
|
74
|
-
* @param {Array} v1 终点
|
|
75
|
-
*/
|
|
76
|
-
_getRadians(v0: any[], v1: any[]): number;
|
|
77
|
-
startByRouteServe(start: any, end: any, options?: {}): void;
|
|
78
|
-
/**
|
|
79
|
-
* 设置视野跟随的坐标
|
|
80
|
-
* @param {Array | GeoJSON} target 坐标数组或geojson对象
|
|
81
|
-
*/
|
|
82
|
-
set track(target: any[] | GeoJSON);
|
|
83
|
-
get track(): any[] | GeoJSON;
|
|
84
|
-
set viewMode(value: string);
|
|
85
|
-
get viewMode(): string;
|
|
86
|
-
set pointHandle(value: any);
|
|
87
|
-
updateViewConfig(viewConfig: any): void;
|
|
88
|
-
/**
|
|
89
|
-
* 开始漫游动画,可设置动画时长、视野距离、视野偏移
|
|
90
|
-
* @param {{duration?: number, heading?: number, pitch?: number, distance?: number}} options 动画参数
|
|
91
|
-
*/
|
|
92
|
-
start(options?: {
|
|
93
|
-
duration?: number;
|
|
94
|
-
heading?: number;
|
|
95
|
-
pitch?: number;
|
|
96
|
-
distance?: number;
|
|
97
|
-
}): void;
|
|
98
|
-
/**
|
|
99
|
-
* 暂停漫游动画
|
|
100
|
-
* @param {*} unlock 是否解锁视野
|
|
101
|
-
* @returns 当前视角参数
|
|
102
|
-
*/
|
|
103
|
-
pause(unlock: any): null;
|
|
104
|
-
/**
|
|
105
|
-
* 停止漫游动画
|
|
91
|
+
* 计算两点间的地图倾斜角度
|
|
106
92
|
*/
|
|
107
|
-
|
|
108
|
-
|
|
93
|
+
_getRadians(v0: any, v1: any): number;
|
|
94
|
+
_parseCoordinateArray(target: any): {
|
|
95
|
+
track: any[];
|
|
96
|
+
frameInfo: never[];
|
|
97
|
+
} | undefined;
|
|
98
|
+
_parseGeoJSON(target: any): {
|
|
99
|
+
track: any;
|
|
100
|
+
frameInfo: any;
|
|
101
|
+
} | undefined;
|
|
102
|
+
_parseFrameArray(target: any): {
|
|
103
|
+
track: any[][];
|
|
104
|
+
frameInfo: {
|
|
105
|
+
pitch: any;
|
|
106
|
+
yaw: any;
|
|
107
|
+
aim: any;
|
|
108
|
+
speed: any;
|
|
109
|
+
time: any;
|
|
110
|
+
}[];
|
|
111
|
+
} | undefined;
|
|
109
112
|
/**
|
|
110
|
-
*
|
|
111
|
-
* @param {
|
|
113
|
+
* 设置路径数据
|
|
114
|
+
* @param {Array|Object} target 路径数据
|
|
112
115
|
*/
|
|
116
|
+
set track(target: any[] | Object);
|
|
117
|
+
get track(): any[] | Object;
|
|
118
|
+
dirUpToHPR(direction: any, position: any, up: any): {
|
|
119
|
+
heading: any;
|
|
120
|
+
pitch: any;
|
|
121
|
+
roll: any;
|
|
122
|
+
};
|
|
113
123
|
set interpolateDirectThreshold(value: number);
|
|
114
124
|
get interpolateDirectThreshold(): number;
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
*/
|
|
119
|
-
set interpolateDirectThresholdPercent(value: number);
|
|
120
|
-
get interpolateDirectThresholdPercent(): number;
|
|
121
|
-
/**
|
|
122
|
-
* 锁定视角
|
|
123
|
-
* @param {boolean} value 是否锁定
|
|
124
|
-
*/
|
|
125
|
-
set lockView(value: boolean);
|
|
126
|
-
get lockView(): boolean;
|
|
127
|
-
set viewFollow(value: boolean);
|
|
128
|
-
get viewFollow(): boolean;
|
|
129
|
-
/**
|
|
130
|
-
* 设置跟踪的object物体,如果参数为模型则需遵循以下要求:模型的前进方向为X正半轴,且按+Y UP导出
|
|
131
|
-
* @param {Object3D} value 传入threejs的Object对象
|
|
132
|
-
*/
|
|
133
|
-
set object(value: Object3D);
|
|
134
|
-
get object(): Object3D;
|
|
125
|
+
set pointHandle(value: any);
|
|
126
|
+
get pointHandle(): any;
|
|
127
|
+
_pointHandle: any;
|
|
135
128
|
curvePath: any;
|
|
136
129
|
}
|
|
130
|
+
import { TrackerAbstract } from './TrackerAbstract';
|