@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
|
@@ -1,66 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 对象追踪器,用于追踪指定的3D对象或坐标点
|
|
3
|
+
*
|
|
4
|
+
* `ObjectTracker`可以追踪各种Three.js `Object3D` 对象
|
|
5
|
+
*
|
|
6
|
+
* @category Camera
|
|
7
|
+
* @extends TrackerAbstract
|
|
8
|
+
* @example
|
|
9
|
+
* ```javascript
|
|
10
|
+
* // 基本用法 - 追踪3D模型
|
|
11
|
+
* const model = engine.add(new mapvthree.SimpleModel({
|
|
12
|
+
* url: 'path/to/model.glb'
|
|
13
|
+
* }));
|
|
14
|
+
*
|
|
15
|
+
* const tracker = engine.add(new mapvthree.ObjectTracker());
|
|
16
|
+
* tracker.track(model, {
|
|
17
|
+
* range: 100,
|
|
18
|
+
* pitch: 60,
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
1
22
|
export class ObjectTracker extends TrackerAbstract {
|
|
2
23
|
/**
|
|
24
|
+
* @private
|
|
3
25
|
* 计算世界坐标系下的变换后 AABB(修正为 8 个唯一顶点)
|
|
4
26
|
*/
|
|
5
|
-
static computeTransformedBoundingBox
|
|
27
|
+
private static computeTransformedBoundingBox;
|
|
6
28
|
/** @private */ private _trackObject;
|
|
7
29
|
/** @private */ private _trackConfig;
|
|
8
30
|
/** @private */ private _lastState;
|
|
9
31
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
32
|
+
* 开始追踪指定对象
|
|
33
|
+
*
|
|
34
|
+
* @param {Object3D} object 追踪的对象
|
|
35
|
+
* - Object3D: Three.js 3D对象
|
|
36
|
+
* @param {Object} config 追踪配置
|
|
37
|
+
* @param {number} [config.range=0] 追踪距离
|
|
38
|
+
* @param {number} [config.pitch=0] 俯仰角
|
|
39
|
+
* @param {number} [config.heading=0] 方位角
|
|
40
|
+
* @param {number} [config.height=0] 高度偏移
|
|
41
|
+
* @param {number} [config.extraDir] 额外方向修正角度
|
|
42
|
+
* @param {number} [config.duration=0] 持续时间(0表示持续追踪)
|
|
43
|
+
* @example
|
|
44
|
+
* ```javascript
|
|
45
|
+
* // 追踪3D模型,设置相机距离和角度
|
|
46
|
+
* tracker.track(model, {
|
|
47
|
+
* range: 100, // 距离100米
|
|
48
|
+
* pitch: 60, // 俯仰角60
|
|
49
|
+
* heading: 45, // 方位角45
|
|
50
|
+
* });
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
track(object: Object3D, config?: {
|
|
54
|
+
range?: number | undefined;
|
|
55
|
+
pitch?: number | undefined;
|
|
56
|
+
heading?: number | undefined;
|
|
57
|
+
height?: number | undefined;
|
|
58
|
+
extraDir?: number | undefined;
|
|
59
|
+
duration?: number | undefined;
|
|
30
60
|
}): void;
|
|
31
61
|
/**
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
62
|
+
* @private
|
|
63
|
+
* 根据进度比例更新位置
|
|
64
|
+
* @param {number} ratio 进度比例 (0-1)
|
|
65
|
+
* @returns {Object|null} 返回 { point: 地图坐标数组, hpr: {heading, pitch, roll} }
|
|
66
|
+
*/
|
|
67
|
+
private updatePositionByPercentage;
|
|
68
|
+
/**
|
|
69
|
+
* 追踪帧回调函数, 在每帧更新时调用
|
|
70
|
+
* @param {Object|null} lastState 上一帧状态
|
|
71
|
+
* @param {Object} currentState 当前帧状态
|
|
72
|
+
* @example
|
|
73
|
+
* ```javascript
|
|
74
|
+
* tracker.onTrackFrame = (lastState, currentState) => {
|
|
75
|
+
* console.log('追踪状态更新:', currentState);
|
|
76
|
+
* // 自定义逻辑
|
|
77
|
+
* };
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
43
80
|
onTrackFrame(): void;
|
|
44
81
|
/**
|
|
82
|
+
* @private
|
|
45
83
|
* 计算目标点与朝向(内部统一从“世界坐标”推导 → 转为“地图坐标”返回)
|
|
46
84
|
*/
|
|
47
|
-
_computeTargetState
|
|
48
|
-
point: any[];
|
|
49
|
-
hpr: {
|
|
50
|
-
heading: number;
|
|
51
|
-
pitch: number;
|
|
52
|
-
roll: number;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
85
|
+
private _computeTargetState;
|
|
55
86
|
/**
|
|
87
|
+
* @private
|
|
56
88
|
* 采样目标的“世界中心点 + 朝向”
|
|
57
89
|
* - 支持 instanced entity
|
|
58
90
|
* - 支持 Object3D(合并子层级包围盒 → 取 boundingSphere.center)
|
|
59
91
|
* - 支持 Vector3 / [x,y,z]
|
|
60
92
|
*/
|
|
61
|
-
_sampleTargetWorldPose
|
|
62
|
-
worldCenter: any;
|
|
63
|
-
targetEuler: any;
|
|
64
|
-
};
|
|
93
|
+
private _sampleTargetWorldPose;
|
|
65
94
|
}
|
|
66
95
|
import { TrackerAbstract } from './TrackerAbstract';
|
|
@@ -1,18 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 路径追踪器,用于沿指定路径进行相机或对象的动画追踪
|
|
3
|
+
*
|
|
4
|
+
* `PathTracker` 支持多种路径数据格式,包括坐标数组、GeoJSON和带帧信息的对象数组。
|
|
5
|
+
* 可以设置不同的视图模式(跟随、锁定、关键帧等)来实现各种追踪效果。
|
|
6
|
+
*
|
|
7
|
+
* @category Camera
|
|
8
|
+
* @extends TrackerAbstract
|
|
9
|
+
* @example
|
|
10
|
+
* ```javascript
|
|
11
|
+
* // 基本用法 - 沿路径追踪相机
|
|
12
|
+
* const tracker = engine.add(new mapvthree.PathTracker());
|
|
13
|
+
*
|
|
14
|
+
* // 设置路径数据(坐标数组格式)
|
|
15
|
+
* tracker.track = [
|
|
16
|
+
* [112.368264, 23.176959, 38.553634],
|
|
17
|
+
* [112.370264, 23.178959, 40.553634],
|
|
18
|
+
* [112.372264, 23.180959, 42.553634]
|
|
19
|
+
* ];
|
|
20
|
+
*
|
|
21
|
+
* // 开始追踪
|
|
22
|
+
* tracker.start({
|
|
23
|
+
* duration: 10000,
|
|
24
|
+
* pitch: 60,
|
|
25
|
+
* range: 100
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
* @example
|
|
29
|
+
* ```javascript
|
|
30
|
+
* // 对象追踪 - 让3D模型沿路径移动
|
|
31
|
+
* const model = engine.add(new mapvthree.SimpleModel({
|
|
32
|
+
* url: 'path/to/model.glb'
|
|
33
|
+
* }));
|
|
34
|
+
*
|
|
35
|
+
* const tracker = engine.add(new mapvthree.PathTracker());
|
|
36
|
+
* tracker.track = pathCoordinates;
|
|
37
|
+
* tracker.object = model; // 设置要追踪的对象
|
|
38
|
+
* tracker.start({
|
|
39
|
+
* duration: 8000,
|
|
40
|
+
* range: 50
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
1
44
|
export class PathTracker extends TrackerAbstract {
|
|
2
|
-
_sampledPath
|
|
3
|
-
_arcInfo
|
|
45
|
+
/** @private */ private _sampledPath;
|
|
46
|
+
/** @private */ private _arcInfo;
|
|
4
47
|
/** @private */ private _interpolateDirectThreshold;
|
|
5
48
|
/** @private */ private _interpolateDirectThresholdPercent;
|
|
6
49
|
updatePositionByPercentage(ratio: any): {
|
|
7
50
|
point: any;
|
|
8
|
-
hpr: {
|
|
9
|
-
heading: number;
|
|
10
|
-
pitch: number;
|
|
11
|
-
roll: number;
|
|
12
|
-
};
|
|
13
|
-
direction: any;
|
|
14
|
-
} | {
|
|
15
|
-
point: any[];
|
|
16
51
|
hpr: {
|
|
17
52
|
heading: any;
|
|
18
53
|
pitch: any;
|
|
@@ -21,14 +56,6 @@ export class PathTracker extends TrackerAbstract {
|
|
|
21
56
|
} | undefined;
|
|
22
57
|
_interpolatePath(ratio: any): {
|
|
23
58
|
point: any;
|
|
24
|
-
hpr: {
|
|
25
|
-
heading: number;
|
|
26
|
-
pitch: number;
|
|
27
|
-
roll: number;
|
|
28
|
-
};
|
|
29
|
-
direction: any;
|
|
30
|
-
} | {
|
|
31
|
-
point: any[];
|
|
32
59
|
hpr: {
|
|
33
60
|
heading: any;
|
|
34
61
|
pitch: any;
|
|
@@ -59,7 +86,7 @@ export class PathTracker extends TrackerAbstract {
|
|
|
59
86
|
transPercent: number;
|
|
60
87
|
};
|
|
61
88
|
_updatePositionAndDirection(last: any, current: any, percent: any, isTrans: any, transPercent: any): {
|
|
62
|
-
point: any
|
|
89
|
+
point: any;
|
|
63
90
|
hpr: {
|
|
64
91
|
heading: any;
|
|
65
92
|
pitch: any;
|
|
@@ -88,9 +115,10 @@ export class PathTracker extends TrackerAbstract {
|
|
|
88
115
|
pitch: number;
|
|
89
116
|
}[] | undefined;
|
|
90
117
|
/**
|
|
118
|
+
* @private
|
|
91
119
|
* 计算两点间的地图倾斜角度
|
|
92
120
|
*/
|
|
93
|
-
_getRadians
|
|
121
|
+
private _getRadians;
|
|
94
122
|
_parseCoordinateArray(target: any): {
|
|
95
123
|
track: any[];
|
|
96
124
|
frameInfo: never[];
|
|
@@ -111,15 +139,55 @@ export class PathTracker extends TrackerAbstract {
|
|
|
111
139
|
} | undefined;
|
|
112
140
|
/**
|
|
113
141
|
* 设置路径数据
|
|
142
|
+
*
|
|
143
|
+
* 支持多种数据格式:
|
|
144
|
+
* - ***坐标数组***:[[lng, lat, alt], [lng, lat, alt], ...]
|
|
145
|
+
* - ***GeoJSON***:{geometry: {type: 'LineString', coordinates: [...]}, properties: {frameInfo: [...]}}
|
|
146
|
+
* - ***帧信息数组***:[{x, y, z, yaw, pitch, speed, time}, ...]
|
|
147
|
+
*
|
|
114
148
|
* @param {Array|Object} target 路径数据
|
|
149
|
+
* @example
|
|
150
|
+
* ```javascript
|
|
151
|
+
* // 坐标数组格式
|
|
152
|
+
* tracker.track = [
|
|
153
|
+
* [112.368264, 23.176959, 38.553634],
|
|
154
|
+
* [112.370264, 23.178959, 40.553634]
|
|
155
|
+
* ];
|
|
156
|
+
* ```
|
|
115
157
|
*/
|
|
116
158
|
set track(target: any[] | Object);
|
|
117
|
-
|
|
159
|
+
/**
|
|
160
|
+
* 获取当前路径数据
|
|
161
|
+
* @returns {Array|null} 路径数据
|
|
162
|
+
*/
|
|
163
|
+
get track(): any[] | null;
|
|
164
|
+
/**
|
|
165
|
+
* 设置插值直接阈值
|
|
166
|
+
* 用于控制路径插值的平滑程度,值越大路径拐角过渡越平滑,但也会越偏离实际路线
|
|
167
|
+
* @param {number} value 阈值
|
|
168
|
+
*/
|
|
118
169
|
set interpolateDirectThreshold(value: number);
|
|
170
|
+
/**
|
|
171
|
+
* 获取插值直接阈值
|
|
172
|
+
* @returns {number} 当前阈值
|
|
173
|
+
*/
|
|
119
174
|
get interpolateDirectThreshold(): number;
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
175
|
+
/**
|
|
176
|
+
* 设置轨迹点插值方式
|
|
177
|
+
* @param {string} value 插值方式,可选值:'curve'(曲线插值)
|
|
178
|
+
* @example
|
|
179
|
+
* ```javascript
|
|
180
|
+
* // 启用曲线插值,使路径更加平滑
|
|
181
|
+
* tracker.pointHandle = 'curve';
|
|
182
|
+
* ```
|
|
183
|
+
*/
|
|
184
|
+
set pointHandle(value: string);
|
|
185
|
+
/**
|
|
186
|
+
* 获取轨迹点插值方式
|
|
187
|
+
* @returns {string} 当前插值方式
|
|
188
|
+
*/
|
|
189
|
+
get pointHandle(): string;
|
|
190
|
+
_pointHandle: string | undefined;
|
|
123
191
|
curvePath: any;
|
|
124
192
|
}
|
|
125
193
|
import { TrackerAbstract } from './TrackerAbstract';
|
|
@@ -1,29 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 旋转追踪器,用于围绕指定对象或坐标点进行环绕追踪
|
|
3
|
+
*
|
|
4
|
+
* RotateTracker 可以实现相机围绕目标对象的环绕动画,支持:
|
|
5
|
+
* - 围绕3D对象旋转
|
|
6
|
+
* - 围绕地理坐标点旋转
|
|
7
|
+
* - 围绕投影坐标点旋转
|
|
8
|
+
*
|
|
9
|
+
* @category Camera
|
|
10
|
+
* @extends TrackerAbstract
|
|
11
|
+
* @example
|
|
12
|
+
* ```javascript
|
|
13
|
+
* // 基本用法 - 围绕3D模型旋转
|
|
14
|
+
* const model = engine.add(new mapvthree.SimpleModel({
|
|
15
|
+
* url: 'path/to/model.glb'
|
|
16
|
+
* }));
|
|
17
|
+
*
|
|
18
|
+
* const tracker = engine.add(new mapvthree.RotateTracker());
|
|
19
|
+
* tracker.start({
|
|
20
|
+
* object: model,
|
|
21
|
+
* radius: 100,
|
|
22
|
+
* duration: 10000,
|
|
23
|
+
* startAngle: 0,
|
|
24
|
+
* endAngle: 360
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
* @example
|
|
28
|
+
* ```javascript
|
|
29
|
+
* // 围绕地理坐标点旋转
|
|
30
|
+
* const tracker = engine.add(new mapvthree.RotateTracker());
|
|
31
|
+
* tracker.start({
|
|
32
|
+
* center: [112.368264, 23.176959, 38.553634],
|
|
33
|
+
* radius: 200,
|
|
34
|
+
* duration: 15000,
|
|
35
|
+
* pitch: 60,
|
|
36
|
+
* heading: 45
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
1
40
|
export class RotateTracker extends TrackerAbstract {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
41
|
+
/**
|
|
42
|
+
* 创建旋转追踪器
|
|
43
|
+
* @param {Object} options 配置选项
|
|
44
|
+
*/
|
|
45
|
+
constructor(options?: Object);
|
|
46
|
+
_trackedObject: any;
|
|
7
47
|
_runConfig: {
|
|
8
|
-
center: any;
|
|
9
|
-
|
|
48
|
+
center: any[] | null;
|
|
49
|
+
projectedCenter: any[] | null;
|
|
50
|
+
radius: number;
|
|
10
51
|
startAngle: any;
|
|
11
52
|
endAngle: any;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
53
|
+
loopMode: string;
|
|
54
|
+
heading: any;
|
|
55
|
+
pitch: any;
|
|
56
|
+
useWorldAxis: boolean;
|
|
57
|
+
height: number;
|
|
58
|
+
} | null;
|
|
59
|
+
viewMode: string;
|
|
60
|
+
/**
|
|
61
|
+
* 开始旋转追踪
|
|
62
|
+
*
|
|
63
|
+
* @param {Object} options 配置选项
|
|
64
|
+
* @param {number} [options.duration=10000] 动画持续时间(毫秒)
|
|
65
|
+
* @param {number} [options.heading=0] 方位角(度)
|
|
66
|
+
* @param {number} [options.pitch=0] 俯仰角(度)
|
|
67
|
+
* @param {number} [options.range=0] 距离范围(米)
|
|
68
|
+
* @param {string|Function} [options.easing] 缓动函数,默认值'linear', 支持'linear'|'ease-in'|'ease-out'|'ease-in-out'
|
|
69
|
+
* @param {Object3D} [options.object] 要围绕的3D对象
|
|
70
|
+
* @param {Array} [options.center] 地理坐标 [lng, lat, alt]
|
|
71
|
+
* @param {Array} [options.projectedCenter] 投影坐标 [x, y, z]
|
|
72
|
+
* @param {number} [options.radius=100] 旋转半径
|
|
73
|
+
* @param {number} [options.startAngle=0] 起始角度(度)
|
|
74
|
+
* @param {number} [options.endAngle=360] 结束角度(度)
|
|
75
|
+
* @param {string} [options.loopMode='repeat'] 循环模式:'repeat'|'reverse'|'alternate',
|
|
76
|
+
* `repeat` 表示一直按同方向循环,`alternate` 表示往返循环,`reverse` 表示始终反向循环。
|
|
77
|
+
* @param {boolean} [options.keepRunning=true] 是否持续运行
|
|
78
|
+
* @param {boolean} [options.useWorldAxis=false] 是否使用世界轴
|
|
79
|
+
* @param {number} [options.repeatCount=1] 重复次数,默认值1
|
|
80
|
+
* @param {number} [options.height=0] 高度偏移(米)
|
|
81
|
+
* @example
|
|
82
|
+
* ```javascript
|
|
83
|
+
* // 围绕3D模型旋转
|
|
84
|
+
* tracker.start({
|
|
85
|
+
* object: model,
|
|
86
|
+
* radius: 100,
|
|
87
|
+
* duration: 10000,
|
|
88
|
+
* startAngle: 0,
|
|
89
|
+
* endAngle: 360,
|
|
90
|
+
* pitch: 60
|
|
91
|
+
* });
|
|
92
|
+
* ```
|
|
93
|
+
*/
|
|
94
|
+
start(options?: {
|
|
95
|
+
duration?: number | undefined;
|
|
96
|
+
heading?: number | undefined;
|
|
97
|
+
pitch?: number | undefined;
|
|
98
|
+
range?: number | undefined;
|
|
99
|
+
easing?: string | Function | undefined;
|
|
100
|
+
object?: any;
|
|
101
|
+
center?: any[] | undefined;
|
|
102
|
+
projectedCenter?: any[] | undefined;
|
|
103
|
+
radius?: number | undefined;
|
|
104
|
+
startAngle?: number | undefined;
|
|
105
|
+
endAngle?: number | undefined;
|
|
106
|
+
loopMode?: string | undefined;
|
|
107
|
+
keepRunning?: boolean | undefined;
|
|
108
|
+
useWorldAxis?: boolean | undefined;
|
|
109
|
+
repeatCount?: number | undefined;
|
|
110
|
+
height?: number | undefined;
|
|
111
|
+
}): void;
|
|
112
|
+
/**
|
|
113
|
+
* @private
|
|
114
|
+
* 计算 ENU 基向量
|
|
115
|
+
*/
|
|
116
|
+
private _computeLocalAxes;
|
|
16
117
|
/**
|
|
17
|
-
*
|
|
118
|
+
* @private
|
|
119
|
+
* 计算轨道法线和起始向量
|
|
18
120
|
*/
|
|
19
|
-
|
|
20
|
-
point: any;
|
|
21
|
-
hpr: {
|
|
22
|
-
heading: any;
|
|
23
|
-
pitch: any;
|
|
24
|
-
roll: any;
|
|
25
|
-
};
|
|
26
|
-
direction: any;
|
|
27
|
-
};
|
|
121
|
+
private _computeOrbitAxes;
|
|
28
122
|
}
|
|
29
123
|
import { TrackerAbstract } from './TrackerAbstract';
|
|
@@ -5,12 +5,12 @@ export namespace VIEW_MODEL_MAP {
|
|
|
5
5
|
let KEYFRAME: string;
|
|
6
6
|
let ACTIVEFRAME: string;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
8
|
+
export const Easing: {
|
|
9
|
+
linear: (t: any) => any;
|
|
10
|
+
'ease-in': (t: any) => number;
|
|
11
|
+
'ease-out': (t: any) => number;
|
|
12
|
+
'ease-in-out': (t: any) => number;
|
|
13
|
+
};
|
|
14
14
|
export class TrackerAbstract {
|
|
15
15
|
constructor(options?: {});
|
|
16
16
|
/** @private */ private _isRunning;
|
|
@@ -26,9 +26,10 @@ export class TrackerAbstract {
|
|
|
26
26
|
/** @public */ public onStart: null;
|
|
27
27
|
/** @public */ public onFinish: null;
|
|
28
28
|
/** @public */ public onUpdate: null;
|
|
29
|
-
/** @private */ private _loopMode;
|
|
30
29
|
/** @private */ private _runtime;
|
|
31
30
|
/** @private */ private _withoutTrack;
|
|
31
|
+
/** @private */ private _repeatCount;
|
|
32
|
+
/** @private */ private _completedCount;
|
|
32
33
|
_debug: boolean;
|
|
33
34
|
_trackPoint: null;
|
|
34
35
|
_trackLists: any[];
|
|
@@ -41,16 +42,20 @@ export class TrackerAbstract {
|
|
|
41
42
|
_easingFn: (t: any) => any;
|
|
42
43
|
_currentEasingFn: (t: any) => any;
|
|
43
44
|
_resolveEasing(easing: any): any;
|
|
45
|
+
onBeforeScenePrepareRender(engine: any, scene: any, camera: any, renderState: any): void;
|
|
44
46
|
afterAddToEngine(engine: any): void;
|
|
45
47
|
_engine: any;
|
|
46
48
|
/**
|
|
49
|
+
* @private
|
|
47
50
|
* 根据百分比更新位置的核心方法
|
|
48
51
|
* 子类需要重写此方法来实现具体的插值逻辑
|
|
49
52
|
* @param {number} ratio 进度比例 (0-1)
|
|
50
53
|
* @returns {Object} 更新后的状态
|
|
51
54
|
*/
|
|
52
|
-
updatePositionByPercentage
|
|
55
|
+
private updatePositionByPercentage;
|
|
53
56
|
start(options?: {}): void;
|
|
57
|
+
_delay: number | undefined;
|
|
58
|
+
_direction: any;
|
|
54
59
|
/**
|
|
55
60
|
* 暂停动画
|
|
56
61
|
* @returns 当前状态
|
|
@@ -62,9 +67,10 @@ export class TrackerAbstract {
|
|
|
62
67
|
stop(): void;
|
|
63
68
|
_arcInfo: {} | undefined;
|
|
64
69
|
/**
|
|
70
|
+
* @protected
|
|
65
71
|
* 更新动画状态
|
|
66
72
|
*/
|
|
67
|
-
update: () => void;
|
|
73
|
+
protected update: () => void;
|
|
68
74
|
dirUpToHPR(direction: any, position: any, up: any): {
|
|
69
75
|
heading: any;
|
|
70
76
|
pitch: any;
|
|
@@ -98,6 +104,4 @@ export class TrackerAbstract {
|
|
|
98
104
|
set object(value: any);
|
|
99
105
|
get object(): any;
|
|
100
106
|
_object: any;
|
|
101
|
-
set loopMode(v: string);
|
|
102
|
-
get loopMode(): string;
|
|
103
107
|
}
|
|
@@ -6,8 +6,9 @@
|
|
|
6
6
|
* - S:向后移动
|
|
7
7
|
* - D:向右移动
|
|
8
8
|
* - L:旋转视野
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* @category Camera
|
|
10
|
+
* @example
|
|
11
|
+
* ```javascript
|
|
11
12
|
* const control = new mapvthree.PointerLockControl(engine);
|
|
12
13
|
* // 开启鼠标控制
|
|
13
14
|
* control.enableKeyboardEvent = true;
|
|
@@ -29,7 +30,10 @@ export class PointerLockControl extends PointerLockControls {
|
|
|
29
30
|
/** @private */ private _velocity;
|
|
30
31
|
/** @private */ private _direction;
|
|
31
32
|
_engine: any;
|
|
33
|
+
isGlobe: any;
|
|
32
34
|
set stepSize(value: any);
|
|
35
|
+
controller: Scene3DController | ColumbusController;
|
|
36
|
+
createController(): Scene3DController | ColumbusController;
|
|
33
37
|
set enableKeyboardEvent(value: any);
|
|
34
38
|
/**
|
|
35
39
|
* @private
|
|
@@ -54,3 +58,5 @@ export class PointerLockControl extends PointerLockControls {
|
|
|
54
58
|
_topStepSize: any;
|
|
55
59
|
}
|
|
56
60
|
import { PointerLockControls } from '../../threejs/controls/PointerLockControls';
|
|
61
|
+
import { Scene3DController } from './controller/Scene3DController';
|
|
62
|
+
import { ColumbusController } from './controller/ColumbusController';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export class ColumbusController {
|
|
2
|
+
constructor(pointerSpeed?: number);
|
|
3
|
+
pointerSpeed: number;
|
|
4
|
+
minPolarAngle: number;
|
|
5
|
+
maxPolarAngle: number;
|
|
6
|
+
handleMouseMove(camera: any, event: any): void;
|
|
7
|
+
moveForward(camera: any, distance: any): void;
|
|
8
|
+
moveRight(camera: any, distance: any): void;
|
|
9
|
+
moveUp(camera: any, distance: any): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export class Scene3DController {
|
|
2
|
+
constructor(ellipsoidCamera: any, pointerSpeed?: number);
|
|
3
|
+
ellipsoidCamera: any;
|
|
4
|
+
pointerSpeed: number;
|
|
5
|
+
handleMouseMove(camera: any, event: any): void;
|
|
6
|
+
moveForward(camera: any, distance: any): void;
|
|
7
|
+
moveRight(camera: any, distance: any): void;
|
|
8
|
+
moveUp(camera: any, distance: any): void;
|
|
9
|
+
}
|
|
@@ -22,6 +22,7 @@ export class Editor {
|
|
|
22
22
|
/** @private */ private _selectedIndex;
|
|
23
23
|
/** @private */ private _mode;
|
|
24
24
|
/** @private */ private _debug;
|
|
25
|
+
/** @private */ private _visible;
|
|
25
26
|
_eventBindings: any[];
|
|
26
27
|
_STAGES: {
|
|
27
28
|
[STAGE.UNREADY]: {
|
|
@@ -250,6 +251,8 @@ export class Editor {
|
|
|
250
251
|
get idleStage(): number;
|
|
251
252
|
set data(value: any);
|
|
252
253
|
get data(): any;
|
|
254
|
+
set visible(value: boolean);
|
|
255
|
+
get visible(): boolean;
|
|
253
256
|
/**
|
|
254
257
|
* 指定编辑元素
|
|
255
258
|
* @param {number} index 元素索引
|