@baidumap/mapv-three 1.0.1 → 1.2.0
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/fallbackIcon.png +0 -0
- package/dist/assets/images/marker_red.png +0 -0
- package/dist/assets/models/effect/diamond.glb +0 -0
- package/dist/assets/textures/imposter/tree3/base.webp +0 -0
- package/dist/assets/textures/imposter/tree3/norm_depth.webp +0 -0
- package/dist/assets/textures/imposter/tree3/orm.webp +0 -0
- package/dist/devtool/panel.js +10 -5
- package/dist/mapvthree.module.js +41964 -35175
- package/dist/mapvthree.umd.js +7 -8
- package/dist/types/Internal.d.ts +0 -2
- package/dist/types/index.d.ts +12 -8
- package/dist/types/index.open.d.ts +18 -1
- package/dist/types/threejs/controls/MapControl3D.d.ts +1 -1
- package/dist/types/threejs/geometries/line/PolylineGeometry.d.ts +1 -0
- package/dist/types/threejs/geometries/sphere/PillarGeometry.d.ts +4 -0
- package/dist/types/threejs/materials/effects/ScanMaterial.d.ts +69 -58
- package/dist/types/threejs/materials/effects/TwinkleMaterial.d.ts +56 -43
- package/dist/types/threejs/materials/effects/WindowMaterial.d.ts +37 -26
- package/dist/types/threejs/materials/heatmap/Heatmap3D.d.ts +2 -0
- package/dist/types/threejs/materials/natural/WaterMaterial.d.ts +152 -18
- package/dist/types/threejs/materials/point/Ballon.d.ts +1 -0
- package/dist/types/threejs/materials/point/Effect.d.ts +13 -0
- package/dist/types/threejs/materials/point/Icon.d.ts +4 -0
- package/dist/types/threejs/materials/polygon/PolygonMaterial.d.ts +2 -0
- package/dist/types/threejs/materials/sphere/GridMaterial.d.ts +6 -1
- package/dist/types/threejs/materials/sphere/PillarMaterial.d.ts +5 -1
- package/dist/types/threejs/objects/FadeData.d.ts +1 -0
- package/dist/types/threejs/objects/GeoInstancedMesh.d.ts +1 -2
- package/dist/types/threejs/objects/GeoObject.d.ts +24 -0
- package/dist/types/threejs/objects/ThreeObject.d.ts +4 -2
- package/dist/types/threejs/objects/element/OctahedralImpostor.d.ts +15 -21
- package/dist/types/threejs/objects/heatmap/Heatmap3D.d.ts +43 -23
- package/dist/types/threejs/objects/instance/InstancedModel.d.ts +2 -0
- package/dist/types/threejs/objects/line/FatLine.d.ts +3 -245
- package/dist/types/threejs/objects/line/FatLineInternal.d.ts +246 -0
- package/dist/types/threejs/objects/line/Polyline.d.ts +53 -76
- package/dist/types/threejs/objects/line/PolylineInternal.d.ts +85 -0
- package/dist/types/threejs/objects/line/SimpleLine.d.ts +1 -1
- package/dist/types/threejs/objects/line/TrafficLink.d.ts +2 -2
- package/dist/types/threejs/objects/natural/BillboardTree.d.ts +1 -0
- package/dist/types/threejs/objects/point/ActiveMesh.d.ts +0 -1
- package/dist/types/threejs/objects/point/BallonPoint.d.ts +54 -7
- package/dist/types/threejs/objects/point/BubblePoint.d.ts +8 -1
- package/dist/types/threejs/objects/point/Circle.d.ts +0 -9
- package/dist/types/threejs/objects/point/DOMPoint.d.ts +4 -4
- package/dist/types/threejs/objects/point/EffectModelPoint.d.ts +55 -27
- package/dist/types/threejs/objects/point/EffectPoint.d.ts +70 -0
- package/dist/types/threejs/objects/point/GeoInstancedPointMesh.d.ts +10 -0
- package/dist/types/threejs/objects/point/Icon.d.ts +1 -1
- package/dist/types/threejs/objects/point/Label.d.ts +142 -30
- package/dist/types/threejs/objects/point/ShapePoint.d.ts +0 -1
- package/dist/types/threejs/objects/point/Spark.d.ts +37 -38
- package/dist/types/threejs/objects/point/label/GeometryBufferBuilder.d.ts +41 -0
- package/dist/types/threejs/objects/point/label/TextBoxCalculator.d.ts +38 -0
- package/dist/types/threejs/objects/polygon/Polygon.d.ts +200 -66
- package/dist/types/threejs/objects/sphere/Cone.d.ts +3 -63
- package/dist/types/threejs/objects/sphere/Grid.d.ts +3 -2
- package/dist/types/threejs/objects/sphere/Pillar.d.ts +49 -7
- package/dist/types/threejs/objects/text/utils.d.ts +8 -1
- package/dist/types/threejs/particles/Fireflies.d.ts +57 -13
- package/dist/types/threejs/utils/sprite.d.ts +1 -1
- package/dist/types/threemap/3dtiles/HDMap/v2/instanceConfig.d.ts +166 -0
- package/dist/types/threemap/3dtiles/HDMap3DTiles.d.ts +2 -0
- package/dist/types/threemap/3dtiles/cesium/Cesium3DTileset.d.ts +4 -2
- package/dist/types/threemap/3dtiles/cesium/content/Mesh3DTileContent.d.ts +1 -0
- package/dist/types/threemap/3dtiles/elements/TileInstancedElementManager.d.ts +41 -9
- package/dist/types/threemap/controls/editors/EditorManager.d.ts +51 -145
- package/dist/types/threemap/controls/editors/PolygonEditor.d.ts +14 -0
- package/dist/types/threemap/controls/editors/SplineEditor.d.ts +6 -0
- package/dist/types/threemap/dataSource/DataItem.d.ts +3 -1
- package/dist/types/threemap/dataSource/DataSource.d.ts +29 -0
- package/dist/types/threemap/engine/Map.d.ts +2 -0
- package/dist/types/threemap/engine/rendering/Collision.d.ts +15 -0
- package/dist/types/threemap/engine/rendering/Label.d.ts +6 -1
- package/dist/types/threemap/engine/rendering/MicroTaskScheduler.d.ts +4 -0
- package/dist/types/threemap/mapView/baidu/TafficDataLoader.d.ts +13 -0
- package/dist/types/threemap/mapView/constants.d.ts +54 -0
- package/dist/types/threemap/mapView/geo/MapTile.d.ts +3 -0
- package/dist/types/threemap/mapView/geo/TileQuadtree.d.ts +2 -1
- package/dist/types/threemap/mapView/grid/BaiduVectorOnlineGrid.d.ts +10 -0
- package/dist/types/threemap/mapView/grid/Grid.d.ts +14 -0
- package/dist/types/threemap/mapView/map/MapView.d.ts +0 -10
- package/dist/types/threemap/mapView/mapbox/executer/fill.d.ts +2 -0
- package/dist/types/threemap/mapView/surface/MapSurface.d.ts +7 -4
- package/dist/types/threemap/mapView/surface/Placeholder.d.ts +1 -1
- package/dist/types/threemap/mapView/surface/VectorSurface.d.ts +1 -0
- package/dist/types/threemap/mapView/surface/strategy/FastTileLoaderStrategy.d.ts +3 -3
- package/dist/types/threemap/mapView/surface/strategy/HierarchicalTileLoaderStrategy.d.ts +0 -1
- package/dist/types/threemap/mapView/tileManager/RasterSurfaceTileManager.d.ts +4 -4
- package/dist/types/threemap/mapView/tileManager/SurfaceTileManager.d.ts +4 -1
- package/dist/types/threemap/mapView/tileManager/VectorSurfaceTileManager.d.ts +4 -5
- package/dist/types/threemap/mapView/tileProvider/AsyncCesiumTerrainDataLoader.d.ts +1 -1
- package/dist/types/threemap/mapView/tileProvider/AsyncDataTileLoader.d.ts +1 -0
- package/dist/types/threemap/mapView/tileProvider/BaseImageryTileProvider.d.ts +103 -0
- package/dist/types/threemap/mapView/tileProvider/TileProvider.d.ts +25 -9
- package/dist/types/threemap/mapView/tileProvider/imagery/Baidu09ImageryTileProvider.d.ts +71 -7
- package/dist/types/threemap/mapView/tileProvider/imagery/BingImageryTileProvider.d.ts +22 -3
- package/dist/types/threemap/mapView/tileProvider/imagery/GridCoordTileProvider.d.ts +2 -0
- package/dist/types/threemap/mapView/tileProvider/imagery/ImageryTileProvider.d.ts +56 -27
- package/dist/types/threemap/mapView/tileProvider/imagery/OSMImageryTileProvider.d.ts +0 -10
- package/dist/types/threemap/mapView/tileProvider/imagery/StadiaImageryTileProvider.d.ts +75 -0
- package/dist/types/threemap/mapView/tileProvider/imagery/WMSImageryTileProvider.d.ts +106 -13
- package/dist/types/threemap/mapView/tileProvider/imagery/WMTSImageryTileProvider.d.ts +114 -15
- package/dist/types/threemap/mapView/tileProvider/imagery/XYZImageryTileProvider.d.ts +53 -6
- package/dist/types/threemap/mapView/tileProvider/renderers/ImageTileLabelRenderer.d.ts +4 -0
- package/dist/types/threemap/mapView/{geo → tileProvider/renderers}/ImageryReprojector.d.ts +1 -1
- package/dist/types/threemap/mapView/tileProvider/renderers/VectorTileImageRenderer.d.ts +4 -0
- package/dist/types/threemap/mapView/tileProvider/vector/BaiduTrafficTileProvider.d.ts +165 -21
- package/dist/types/threemap/mapView/tileProvider/vector/BaiduVectorTileProvider.d.ts +3 -1
- package/dist/types/threemap/mapView/tileProvider/vector/GeoJSONVectorTileProvider.d.ts +1 -1
- package/dist/types/threemap/mapView/tileProvider/vector/HDTrafficTileProvider.d.ts +159 -24
- package/dist/types/threemap/mapView/tileProvider/vector/MapboxVectorTileProvider.d.ts +264 -40
- package/dist/types/threemap/mapView/tileProvider/vector/PlaneVectorTileProvider.d.ts +1 -1
- package/dist/types/threemap/mapView/tileProvider/vector/VectorTileProvider.d.ts +6 -4
- package/dist/types/threemap/mapView/utils/projectVertices.d.ts +1 -1
- package/dist/types/threemap/model/AnimationModel.d.ts +86 -6
- package/dist/types/threemap/natural/DynamicWeather.d.ts +92 -0
- package/dist/types/threemap/natural/EmptySky.d.ts +1 -0
- package/dist/types/threemap/natural/StaticSky.d.ts +32 -5
- package/dist/types/threemap/projections/BaiduMercatorProjection.d.ts +14 -0
- package/dist/types/threemap/projections/CoordTransformer.d.ts +13 -0
- package/dist/types/threemap/projections/GenericDefinedProjection.d.ts +10 -0
- package/dist/types/threemap/projections/Projection.d.ts +24 -7
- package/dist/types/threemap/projections/ScreenPixelProjection.d.ts +26 -7
- package/dist/types/threemap/projections/WebMercatorProjection.d.ts +16 -0
- package/dist/types/threemap/projections/extendCoordinate.d.ts +2 -0
- package/dist/types/threemap/projections/projections.d.ts +11 -0
- package/dist/types/util/LRUCacheNew.d.ts +1 -0
- package/dist/types/util/coordProjection.d.ts +0 -2
- package/dist/types/util/geojsonUtils.d.ts +1 -0
- package/dist/types/util/gradientMap.d.ts +25 -0
- package/dist/types/util/graphics/bezier.d.ts +8 -1
- package/package.json +2 -1
- package/dist/assets/models/hdmap/SM_Big-Pier_2.glb +0 -0
- package/dist/assets/models/hdmap/SM_Cone_Barrel.glb +0 -0
- package/dist/assets/models/hdmap/SM_Fence1-0.glb +0 -0
- package/dist/assets/models/hdmap/SM_Fence1-8.glb +0 -0
- package/dist/assets/models/hdmap/SM_Fence2-5.glb +0 -0
- package/dist/assets/models/hdmap/SM_Fence7-0.glb +0 -0
- package/dist/assets/models/hdmap/SM_Fence7-2.glb +0 -0
- package/dist/assets/models/hdmap/SM_Fence7-3.glb +0 -0
- package/dist/assets/models/hdmap/SM_Road_facility2.glb +0 -0
- package/dist/assets/models/hdmap/SM_Signboard_8.glb +0 -0
- package/dist/assets/models/hdmap/SM_fence1-5.glb +0 -0
- package/dist/assets/models/hdmap/tunnel_light.glb +0 -0
- package/dist/types/addons/highwaymap/Viewer.d.ts +0 -164
- package/dist/types/addons/highwaymap/index.d.ts +0 -3
- package/dist/types/addons/highwaymap/map/Map.d.ts +0 -59
- package/dist/types/addons/highwaymap/map/MapControl.d.ts +0 -57
- package/dist/types/addons/highwaymap/service/index.d.ts +0 -3
- package/dist/types/addons/highwaymap/utils/eventTypes.d.ts +0 -15
- package/dist/types/addons/index.d.ts +0 -4
- package/dist/types/addons/traffic/config/assets.d.ts +0 -78
- package/dist/types/addons/traffic/config/element.d.ts +0 -23
- package/dist/types/addons/traffic/handler/AbstractLoadPolicy.d.ts +0 -13
- package/dist/types/addons/traffic/handler/DefaultLoadPolicy.d.ts +0 -5
- package/dist/types/addons/traffic/handler/ModelCreator.d.ts +0 -69
- package/dist/types/addons/traffic/handler/ModelHandler.d.ts +0 -131
- package/dist/types/addons/traffic/handler/assets.d.ts +0 -365
- package/dist/types/addons/traffic/handler/ceilManager.d.ts +0 -16
- package/dist/types/addons/traffic/handler/tools.d.ts +0 -17
- package/dist/types/addons/traffic/handler/trafficLight.d.ts +0 -253
- package/dist/types/addons/traffic/index.d.ts +0 -16
- package/dist/types/addons/traffic/objects/BasicLabel.d.ts +0 -226
- package/dist/types/addons/traffic/objects/Diamond.d.ts +0 -61
- package/dist/types/addons/traffic/objects/DynamicModel.d.ts +0 -129
- package/dist/types/addons/traffic/objects/InstancedModel.d.ts +0 -91
- package/dist/types/addons/traffic/objects/LineMesh.d.ts +0 -6
- package/dist/types/addons/traffic/objects/Model.d.ts +0 -169
- package/dist/types/addons/traffic/objects/TrafficGroup.d.ts +0 -16
- package/dist/types/addons/traffic/objects/TrafficInstancedObject.d.ts +0 -7
- package/dist/types/addons/traffic/objects/TrafficObject.d.ts +0 -14
- package/dist/types/addons/traffic/objects/curveLineMesh.d.ts +0 -29
- package/dist/types/addons/traffic/objects/shaders/Line2dShader.d.ts +0 -1
- package/dist/types/addons/traffic/objects/shaders/RingCircle.d.ts +0 -19
- package/dist/types/addons/traffic/objects/shaders/WaveCircle2.d.ts +0 -13
- package/dist/types/addons/traffic/objects/shaders/WaveCircle4.d.ts +0 -17
- package/dist/types/addons/traffic/objects/shaders/WaveCircle5.d.ts +0 -17
- package/dist/types/addons/traffic/service/assets.d.ts +0 -50
- package/dist/types/addons/traffic/utils/BasicLabel.d.ts +0 -3
- package/dist/types/addons/traffic/utils/MapMath.d.ts +0 -78
- package/dist/types/addons/traffic/utils/assets.d.ts +0 -108
- package/dist/types/addons/traffic/utils/freeTag.d.ts +0 -71
- package/dist/types/addons/traffic/utils/hooks.d.ts +0 -1
- package/dist/types/addons/traffic/utils/index.d.ts +0 -26
- package/dist/types/addons/traffic/utils/trafficLight.d.ts +0 -73
- package/dist/types/addons/traffic/utils/ws.d.ts +0 -23
- package/dist/types/addons/visual/core/LRU.d.ts +0 -27
- package/dist/types/addons/visual/core/defines.d.ts +0 -55
- package/dist/types/addons/visual/core/global.d.ts +0 -29
- package/dist/types/addons/visual/extension/AnimatePolygon.d.ts +0 -108
- package/dist/types/addons/visual/extension/DoubleLine.d.ts +0 -137
- package/dist/types/addons/visual/extension/FlyLineLayer.d.ts +0 -140
- package/dist/types/addons/visual/extension/MeshLine.d.ts +0 -61
- package/dist/types/addons/visual/extension/TubeLine.d.ts +0 -93
- package/dist/types/addons/visual/extension/Water/Reflector.d.ts +0 -26
- package/dist/types/addons/visual/extension/Water/Refractor.d.ts +0 -26
- package/dist/types/addons/visual/extension/Water/Water.d.ts +0 -60
- package/dist/types/addons/visual/extension/Water/WaterFive.d.ts +0 -20
- package/dist/types/addons/visual/extension/Water/WaterFour.d.ts +0 -17
- package/dist/types/addons/visual/extension/Water/WaterOne.d.ts +0 -10
- package/dist/types/addons/visual/extension/Water/WaterSix.d.ts +0 -15
- package/dist/types/addons/visual/extension/Water/WaterThree.d.ts +0 -14
- package/dist/types/addons/visual/extension/Water/WaterTwo.d.ts +0 -14
- package/dist/types/addons/visual/extension/specialEffect/LateralScan.d.ts +0 -32
- package/dist/types/addons/visual/extension/specialEffect/LineGradient.d.ts +0 -28
- package/dist/types/addons/visual/extension/specialEffect/TwinkleEffect.d.ts +0 -30
- package/dist/types/addons/visual/index.d.ts +0 -17
- package/dist/types/addons/visual/map/Fence.d.ts +0 -121
- package/dist/types/addons/visual/map/Polyline.d.ts +0 -178
- package/dist/types/addons/visual/mapTile/MapLayer.d.ts +0 -50
- package/dist/types/addons/visual/mapTile/MapLayerLoader.d.ts +0 -15
- package/dist/types/addons/visual/mapTile/MapLodLayer.d.ts +0 -15
- package/dist/types/addons/visual/mapTile/MapRequest.d.ts +0 -69
- package/dist/types/addons/visual/mapTile/MapTile.d.ts +0 -131
- package/dist/types/addons/visual/mapTile/MapTileLoader.d.ts +0 -26
- package/dist/types/addons/visual/mapTile/config.d.ts +0 -381
- package/dist/types/addons/visual/mapTile/workers/WorkerService.d.ts +0 -9
- package/dist/types/addons/visual/mapTile/workers/WorkerServiceManager.d.ts +0 -8
- package/dist/types/addons/visual/utils/AdaptedThree.d.ts +0 -22
- package/dist/types/addons/visual/utils/CombinePositions.d.ts +0 -23
- package/dist/types/addons/visual/utils/Extrude.d.ts +0 -92
- package/dist/types/addons/visual/utils/GenerateObject.d.ts +0 -32
- package/dist/types/addons/visual/utils/GeoJSONUtil.d.ts +0 -10
- package/dist/types/addons/visual/utils/MapMath.d.ts +0 -66
- package/dist/types/addons/visual/utils/MergeGeometries.d.ts +0 -13
- package/dist/types/addons/visual/utils/OrganizedGeometry.d.ts +0 -33
- package/dist/types/addons/visual/utils/OrganizedMaterial.d.ts +0 -5
- package/dist/types/addons/visual/utils/lines/Line2.d.ts +0 -7
- package/dist/types/addons/visual/utils/lines/LineDashShaderMaterial.d.ts +0 -4
- package/dist/types/addons/visual/utils/lines/LineGeometry.d.ts +0 -7
- package/dist/types/addons/visual/utils/lines/LineMaterial.d.ts +0 -4
- package/dist/types/addons/visual/utils/lines/LineSegments2.d.ts +0 -9
- package/dist/types/addons/visual/utils/lines/LineSegmentsGeometry.d.ts +0 -17
- package/dist/types/addons/visual/utils/util.d.ts +0 -269
- package/dist/types/threemap/mapView/BaiduVImageryMap.d.ts +0 -40
- package/dist/types/threemap/mapView/QuadMap.d.ts +0 -287
- package/dist/types/threemap/mapView/geo/TileManager.d.ts +0 -68
- package/dist/types/threemap/mapView/geo/globe.d.ts +0 -6
- package/dist/types/threemap/mapView/tileLoader/AsyncBinaryTileLoader.d.ts +0 -20
- package/dist/types/threemap/mapView/tileLoader/BaiduTrafficVectorTileLoader.d.ts +0 -13
- package/dist/types/threemap/mapView/tileLoader/BaiduVImageryTileLoader.d.ts +0 -59
- package/dist/types/threemap/mapView/tileLoader/BaiduVectorTileLoader.d.ts +0 -23
- package/dist/types/threemap/mapView/tileLoader/BinaryTileLoader.d.ts +0 -7
- package/dist/types/threemap/mapView/tileLoader/CesiumTerrainTileLoader.d.ts +0 -21
- package/dist/types/threemap/mapView/tileLoader/CompositionTileLoader.d.ts +0 -15
- package/dist/types/threemap/mapView/tileLoader/DebugTileLoader.d.ts +0 -4
- package/dist/types/threemap/mapView/tileLoader/HDTrafficTileLoader.d.ts +0 -16
- package/dist/types/threemap/mapView/tileLoader/ImageTileLoader.d.ts +0 -7
- package/dist/types/threemap/mapView/tileLoader/MapboxTerrainTileLoader.d.ts +0 -14
- package/dist/types/threemap/mapView/tileLoader/TileLoader.d.ts +0 -19
- package/dist/types/threemap/projections/EqualEarthProjection.d.ts +0 -11
- package/dist/types/threemap/projections/UTMProjection.d.ts +0 -21
- /package/dist/types/threemap/{mapView/tileLoader/worker/BaiduTrafficParser.worker.d.ts → 3dtiles/HDMap/v2/yaml_to_json.d.ts} +0 -0
- /package/dist/types/threemap/mapView/{tileLoader/worker → baidu}/binaryDecoder.d.ts +0 -0
- /package/dist/types/threemap/mapView/{terrainData → geo/terrainData}/QuantizedMeshTerrainData.d.ts +0 -0
- /package/dist/types/threemap/mapView/{terrainData → geo/terrainData}/TerrainMesh.d.ts +0 -0
- /package/dist/types/threemap/mapView/{materials → materialManager}/CustomMVTMaterialManager.d.ts +0 -0
- /package/dist/types/threemap/mapView/{materials → materialManager}/DarkMVTMaterialManager.d.ts +0 -0
- /package/dist/types/threemap/mapView/{materials → materialManager}/DefaultQuadMapMaterialManager.d.ts +0 -0
- /package/dist/types/threemap/mapView/{tileLoader/worker/BaiduVectorParser.worker.d.ts → tileProvider/worker/BaiduTrafficParser.worker.d.ts} +0 -0
- /package/dist/types/threemap/mapView/{tileLoader/worker/CesiumTerrainParser.worker.d.ts → tileProvider/worker/BaiduVectorParser.worker.d.ts} +0 -0
- /package/dist/types/threemap/mapView/{tileLoader/worker/GeoJSONVectorParser.worker.d.ts → tileProvider/worker/CesiumTerrainParser.worker.d.ts} +0 -0
- /package/dist/types/threemap/mapView/{tileLoader/worker/HDTrafficParser.worker.d.ts → tileProvider/worker/GeoJSONVectorParser.worker.d.ts} +0 -0
- /package/dist/types/threemap/mapView/{tileLoader/worker/LaCesiumTerrainParser.worker.d.ts → tileProvider/worker/HDTrafficParser.worker.d.ts} +0 -0
- /package/dist/types/threemap/mapView/{tileLoader → tileProvider}/worker/MVTParser.worker.d.ts +0 -0
- /package/dist/types/threemap/mapView/{tileLoader → tileProvider}/worker/MapboxTerrainParser.worker.d.ts +0 -0
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
export namespace projectBoundingBoxMethods {
|
|
2
|
+
let MIN_MAX: number;
|
|
3
|
+
let FOUR_CORNERS: number;
|
|
4
|
+
let FOUR_CORNERS_WITH_EQUATOR: number;
|
|
5
|
+
}
|
|
1
6
|
/**
|
|
2
7
|
* 地图投影的基类,定义了投影坐标系统的基本接口
|
|
3
8
|
*
|
|
@@ -32,6 +37,12 @@ export class Projection {
|
|
|
32
37
|
* @readonly
|
|
33
38
|
*/
|
|
34
39
|
readonly isAxisAligned: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* 表示边界框的表示方法
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @readonly
|
|
44
|
+
*/
|
|
45
|
+
readonly projectBoundingBoxMethod: number;
|
|
35
46
|
/**
|
|
36
47
|
* 将地理坐标(经纬度)转换为投影坐标
|
|
37
48
|
* @param {Vector3} input 输入的地理坐标
|
|
@@ -52,7 +63,7 @@ export class Projection {
|
|
|
52
63
|
* @param {Box3} [projectedBox] 可选的输出边界框,如不提供则创建新的Box3
|
|
53
64
|
* @returns {Box3} 投影坐标系中的边界框
|
|
54
65
|
*/
|
|
55
|
-
geoBoxToProjectedBox(geoBox: Box3, projectedBox?: Box3): Box3;
|
|
66
|
+
geoBoxToProjectedBox(geoBox: Box3, projectedBox?: Box3, extend?: boolean): Box3;
|
|
56
67
|
/**
|
|
57
68
|
* 获取地理表面在指定坐标点的法线向量
|
|
58
69
|
* @param {Vector3} input 输入的地理坐标
|
|
@@ -73,18 +84,13 @@ export class Projection {
|
|
|
73
84
|
* @param {Box3} [geoBox] 可选的输出边界框,如不提供则创建新的Box3
|
|
74
85
|
* @returns {Box3} 地理坐标系中的边界框
|
|
75
86
|
*/
|
|
76
|
-
projectedBoxToGeoBox(projectedBox: Box3, geoBox?: Box3): Box3;
|
|
87
|
+
projectedBoxToGeoBox(projectedBox: Box3, geoBox?: Box3, extend?: boolean): Box3;
|
|
77
88
|
/**
|
|
78
89
|
* 判断两个投影是否相等
|
|
79
90
|
* @param {Projection} projection 要比较的投影对象
|
|
80
91
|
* @returns {boolean} 如果两个投影相等则返回true
|
|
81
92
|
*/
|
|
82
93
|
equals(projection: Projection): boolean;
|
|
83
|
-
/**
|
|
84
|
-
* 获取当前投影的世界边界框
|
|
85
|
-
* @returns {Box3} 投影的世界边界框
|
|
86
|
-
*/
|
|
87
|
-
getWorldBoundingBox(): Box3;
|
|
88
94
|
/**
|
|
89
95
|
* 将本地坐标系转换为固定坐标系
|
|
90
96
|
* @param {Vector3} origin 本地坐标系的原点
|
|
@@ -92,4 +98,15 @@ export class Projection {
|
|
|
92
98
|
* @returns {Matrix4} 转换后的固定坐标系矩阵
|
|
93
99
|
*/
|
|
94
100
|
localFrameToFixedFrame(origin: Vector3, fixedFrame?: Matrix4): Matrix4;
|
|
101
|
+
/**
|
|
102
|
+
* 获取投影的地理边界框
|
|
103
|
+
* @returns {Box3} 投影的地理边界框, 可为空
|
|
104
|
+
*/
|
|
105
|
+
get geoBoundingBox(): Box3;
|
|
106
|
+
/**
|
|
107
|
+
* 获取投影的投影边界框
|
|
108
|
+
* @returns {Box3} 投影的投影边界框
|
|
109
|
+
*/
|
|
110
|
+
get projectedBoundingBox(): Box3;
|
|
111
|
+
_projectedBoundingBox: any;
|
|
95
112
|
}
|
|
@@ -1,12 +1,31 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* 屏幕像素投影,用于屏幕坐标系与WebGL坐标系的转换
|
|
3
|
+
*
|
|
4
|
+
* 屏幕像素投影是一种简单的坐标变换投影,主要用于处理屏幕坐标系与WebGL坐标系之间的差异:
|
|
5
|
+
* - Y轴翻转:将屏幕坐标系(原点在左上角,Y轴向下)转换为WebGL坐标系(原点在中心,Y轴向上)
|
|
6
|
+
* - 保持X轴和Z轴不变
|
|
7
|
+
* - 适用于2D屏幕空间的可视化
|
|
8
|
+
*
|
|
9
|
+
* 特点:
|
|
10
|
+
* - 简单的线性变换:仅对Y轴进行翻转
|
|
11
|
+
* - 无地理意义:不涉及地理坐标转换
|
|
12
|
+
* - 适用于屏幕空间:专门用于屏幕像素坐标处理
|
|
13
|
+
* - 高效计算:变换计算非常简单
|
|
14
|
+
*
|
|
15
|
+
* 该投影主要用于:
|
|
16
|
+
* - 屏幕坐标与WebGL坐标的转换
|
|
17
|
+
* - 2D界面元素的定位
|
|
18
|
+
* - 屏幕空间的可视化效果
|
|
19
|
+
*
|
|
20
|
+
* @category Internal
|
|
21
|
+
* ```
|
|
5
22
|
*/
|
|
6
23
|
export class ScreenPixelProjection extends Projection {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
24
|
+
/**
|
|
25
|
+
* 投影名称
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @readonly
|
|
28
|
+
*/
|
|
29
|
+
readonly name: string;
|
|
11
30
|
}
|
|
12
31
|
import { Projection } from './Projection';
|
|
@@ -19,5 +19,21 @@ export class WebMercatorProjection extends Projection {
|
|
|
19
19
|
* @readonly
|
|
20
20
|
*/
|
|
21
21
|
readonly name: string;
|
|
22
|
+
/**
|
|
23
|
+
* 将地理坐标(经纬度)转换为Web墨卡托投影坐标
|
|
24
|
+
* @param {Vector3} input 输入的地理坐标,x,y分别为经度和纬度
|
|
25
|
+
* @param {Vector3} [output] 可选的输出向量,如不提供则创建新的Vector3
|
|
26
|
+
* @param {boolean} [extend=false] 是否扩展坐标,如果为true,则将超出范围的坐标扩展到范围外
|
|
27
|
+
* @returns {Vector3} 转换后的墨卡托投影坐标(单位:米)
|
|
28
|
+
*/
|
|
29
|
+
projectCoordinate(input: Vector3, output?: Vector3, extend?: boolean): Vector3;
|
|
30
|
+
/**
|
|
31
|
+
* 将Web墨卡托投影坐标转换为地理坐标(经纬度)
|
|
32
|
+
* @param {Vector3} input 输入的墨卡托投影坐标(单位:米)
|
|
33
|
+
* @param {Vector3} [output] 可选的输出向量,如不提供则创建新的Vector3
|
|
34
|
+
* @param {boolean} [extend=false] 是否扩展坐标,如果为true,则将超出范围的坐标扩展到范围外
|
|
35
|
+
* @returns {Vector3} 转换后的地理坐标,x,y分别为经度和纬度
|
|
36
|
+
*/
|
|
37
|
+
unprojectCoordinate(input: Vector3, output?: Vector3, extend?: boolean): Vector3;
|
|
22
38
|
}
|
|
23
39
|
import { Projection } from './Projection';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export function extendUnprojectCoordinate(inputValue: any, oldValue: any, maxGlobeValue: any, maxProjectedValue: any, keepMax?: boolean): any;
|
|
2
|
+
export function extendProjectCoordinate(inputValue: any, oldValue: any, maxGlobeValue: any, maxProjectedValue: any, keepMax?: boolean): any;
|
|
@@ -1,2 +1,13 @@
|
|
|
1
|
+
export const projectionDefs: {
|
|
2
|
+
'EPSG:5070': {
|
|
3
|
+
parameters: string;
|
|
4
|
+
projectBoundingBoxMethod: number;
|
|
5
|
+
geoBoundingBox: number[][];
|
|
6
|
+
};
|
|
7
|
+
'EPSG:8857': {
|
|
8
|
+
parameters: string;
|
|
9
|
+
projectBoundingBoxMethod: number;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
1
12
|
export function normalizeProjectionName(name: any): any;
|
|
2
13
|
export function getProjection(name: any): any;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export function extendUnprojectCoordinate(inputValue: any, oldValue: any, maxGlobeValue: any, maxProjectedValue: any): any;
|
|
2
|
-
export function extendProjectCoordinate(inputValue: any, oldValue: any, maxGlobeValue: any, maxProjectedValue: any): any;
|
|
3
1
|
/**
|
|
4
2
|
* Convert 900913 x/y values to lon/lat.
|
|
5
3
|
* (from https://github.com/mapbox/sphericalmercator)
|
|
@@ -19,6 +19,7 @@ export function projectArrayCoordinates(coordinates: Array<number>, projection:
|
|
|
19
19
|
* @param {string} projectionName 投影方式名
|
|
20
20
|
*/
|
|
21
21
|
export function unprojectArrayCoordinates(coordinates: Array<number>, projection: any): any;
|
|
22
|
+
export function transformArrayCoordinates(coordinates: any, sourceCoordType: any, targetCoordType: any): any;
|
|
22
23
|
/**
|
|
23
24
|
* 投影坐标转为原始经纬度坐标过程
|
|
24
25
|
* @internal
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 创建默认的渐变贴图(蓝-绿-黄-红)
|
|
3
|
+
*/
|
|
4
|
+
export function createDefaultGradientTexture(width?: number, height?: number): any;
|
|
5
|
+
export function createGradientTexture(gradient?: {}, width?: number, height?: number): any;
|
|
6
|
+
/**
|
|
7
|
+
* 更新已有 CanvasTexture 的渐变内容
|
|
8
|
+
*/
|
|
9
|
+
export function updateGradientTexture(canvasTexture: any, gradient: any, width?: number, height?: number): void;
|
|
10
|
+
/**
|
|
11
|
+
* 创建颜色分带贴图
|
|
12
|
+
* @param {string[]} bandColors - 分带颜色数组
|
|
13
|
+
* @param {number} width - 纹理宽度(建议保持与 gradientMap 相同)
|
|
14
|
+
* @param {number} height - 纹理高度
|
|
15
|
+
* @returns {CanvasTexture}
|
|
16
|
+
*/
|
|
17
|
+
export function createBandTexture(bandColors?: string[], width?: number, height?: number): CanvasTexture;
|
|
18
|
+
/**
|
|
19
|
+
* 更新已有 CanvasTexture 的颜色分带内容
|
|
20
|
+
* @param {CanvasTexture} canvasTexture - 需要更新的 CanvasTexture 实例
|
|
21
|
+
* @param {string[]} bandColors - 分带颜色数组
|
|
22
|
+
* @param {number} width - 纹理宽度
|
|
23
|
+
* @param {number} height - 纹理高度
|
|
24
|
+
*/
|
|
25
|
+
export function updateBandTexture(canvasTexture: CanvasTexture, bandColors?: string[], width?: number, height?: number): void;
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* 获取贝塞尔曲线点集
|
|
3
|
+
* @param {number[][]} line [[x,y,z], [x,y,z]]
|
|
4
|
+
* @param {number} divisions 分段数
|
|
5
|
+
* @param {number} heightRatio 控制点高度比例,越小越高
|
|
6
|
+
* @returns {number[][]}
|
|
7
|
+
*/
|
|
8
|
+
export function getCurve(line: number[][], options: any): number[][];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baidumap/mapv-three",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "A powerful 3D map engine.",
|
|
5
5
|
"author": "mapopen-fe@baidu.com",
|
|
6
6
|
"main": "dist/mapvthree.umd.js",
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"geojson-vt": "^4.0.2",
|
|
43
43
|
"js-md5": "^0.8.3",
|
|
44
44
|
"kdbush": "^3.0.0",
|
|
45
|
+
"mapbox-to-css-font": "^3.2.0",
|
|
45
46
|
"omggif": "^1.0.10",
|
|
46
47
|
"pbf": "^3.2.1",
|
|
47
48
|
"potpack": "^1.0.2",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
export class Viewer {
|
|
2
|
-
/**
|
|
3
|
-
* 构造函数
|
|
4
|
-
* @param {{
|
|
5
|
-
* trafficLayer?: boolean,
|
|
6
|
-
* host?: string,
|
|
7
|
-
* data?: object
|
|
8
|
-
* }} options 传入参数对象
|
|
9
|
-
* @param {boolean} options.trafficLayer 是否显示路况,默认不显示
|
|
10
|
-
* @param {string} options.host 设置svg动态接口数据的host,与data二选一
|
|
11
|
-
* @param {string} options.data 设置svg静态数据,与host二选一
|
|
12
|
-
*/
|
|
13
|
-
constructor(options?: {
|
|
14
|
-
trafficLayer?: boolean;
|
|
15
|
-
host?: string;
|
|
16
|
-
data?: object;
|
|
17
|
-
});
|
|
18
|
-
/** @private */ private camera;
|
|
19
|
-
/** @private */ private defaultIcon;
|
|
20
|
-
/** @private */ private defaultIconGeo;
|
|
21
|
-
/** @private */ private defaultIconSrcs;
|
|
22
|
-
/** @private */ private textArrGeo;
|
|
23
|
-
/** @private */ private lineArrGeo;
|
|
24
|
-
/** @private */ private lukuangGeo;
|
|
25
|
-
/** @private */ private defaultLines;
|
|
26
|
-
/** @private */ private lukuangLines;
|
|
27
|
-
/** @private */ private linesLukuang;
|
|
28
|
-
/** @private */ private renderer;
|
|
29
|
-
/** @private */ private scene;
|
|
30
|
-
/** @private */ private selectIcon;
|
|
31
|
-
/** @private */ private zoom;
|
|
32
|
-
trafficLayer: boolean | undefined;
|
|
33
|
-
host: string;
|
|
34
|
-
subUrl: any;
|
|
35
|
-
data: object | undefined;
|
|
36
|
-
/** @private */
|
|
37
|
-
private afterAddToEngine;
|
|
38
|
-
engine: any;
|
|
39
|
-
/** @private */
|
|
40
|
-
private beforeRemoveFromEngine;
|
|
41
|
-
/**
|
|
42
|
-
* @ignore
|
|
43
|
-
*/
|
|
44
|
-
initLights(): void;
|
|
45
|
-
/** @private */
|
|
46
|
-
private dispose;
|
|
47
|
-
/**
|
|
48
|
-
* 初始化图标对象
|
|
49
|
-
* @ignore
|
|
50
|
-
* @param options 图标设置选项
|
|
51
|
-
* @param {number} options.width icon宽度
|
|
52
|
-
* @param {number} options.height icon高度
|
|
53
|
-
* @param {boolean} options.keepSize 是否保持大小(即按像素为单位绘制)
|
|
54
|
-
* @param {boolean} options.transparent 图标是否透明,默认true
|
|
55
|
-
* @param {boolean} options.vertexSizes 是否通过数据携带尺寸配置
|
|
56
|
-
* @param {boolean} options.vertexIcons 是否通过数据携带图标src配置
|
|
57
|
-
* @param {string} options.mapSrc 图标src引用路径
|
|
58
|
-
* @param {array} options.offset 图标偏移两 [x, y]
|
|
59
|
-
* @returns 返回添加的图标对象
|
|
60
|
-
*/
|
|
61
|
-
_initIcon(options: any): any;
|
|
62
|
-
/**
|
|
63
|
-
* 处理svg数据
|
|
64
|
-
* @ignore
|
|
65
|
-
*/
|
|
66
|
-
_getSvgDom(data: any): void;
|
|
67
|
-
/**
|
|
68
|
-
* 根据svg数据设置道路颜色
|
|
69
|
-
* @ignore
|
|
70
|
-
*/
|
|
71
|
-
_getLineColor(arr: any): "rgba(13, 31, 249, 0)" | "#4fd27d" | "#e80e0e" | "#ffd045" | undefined;
|
|
72
|
-
/**
|
|
73
|
-
* 初始化svg简图
|
|
74
|
-
* @param {{
|
|
75
|
-
* roadColor?: string,
|
|
76
|
-
* }} options 初始化所需配置文件
|
|
77
|
-
* @param {string} options.roadColor 道路颜色
|
|
78
|
-
* @param {object} params 可选参数
|
|
79
|
-
*/
|
|
80
|
-
initSvg(options: {
|
|
81
|
-
roadColor?: string;
|
|
82
|
-
}, params: object): Promise<any>;
|
|
83
|
-
/**
|
|
84
|
-
* 获取坐标点,包括像素坐标和百度经纬度坐标
|
|
85
|
-
* @param {{location: string, type: number}} options
|
|
86
|
-
* @param {string} location 如:经纬度坐标'116.397428, 39.90923'或像素坐标:'20823.17191, 11755.66599'
|
|
87
|
-
* @param {number} type 1:百度经纬度坐标,2:像素坐标
|
|
88
|
-
*/
|
|
89
|
-
getPointInfo(options: {
|
|
90
|
-
location: string;
|
|
91
|
-
type: number;
|
|
92
|
-
}): Promise<any>;
|
|
93
|
-
/**
|
|
94
|
-
* 自定义弹框
|
|
95
|
-
* @ignore
|
|
96
|
-
*/
|
|
97
|
-
_domPointCallback(feature: any): HTMLDivElement;
|
|
98
|
-
/**
|
|
99
|
-
* 设置svg图层元素
|
|
100
|
-
* @ignore
|
|
101
|
-
*/
|
|
102
|
-
_getMapLayer(data: any, baseConfig: any): Promise<any>;
|
|
103
|
-
/**
|
|
104
|
-
* 生成linelayer的geojson
|
|
105
|
-
* @ignore
|
|
106
|
-
*/
|
|
107
|
-
_getLineJsonData(data: any, type: any): any[];
|
|
108
|
-
/**
|
|
109
|
-
* 生成icon的geojson
|
|
110
|
-
* @ignore
|
|
111
|
-
*/
|
|
112
|
-
_getIconJsons(iconArrs: any): any;
|
|
113
|
-
/**
|
|
114
|
-
* 生成textlayer的geojson
|
|
115
|
-
* @ignore
|
|
116
|
-
*/
|
|
117
|
-
_getTextJsons(textArrs: any): any;
|
|
118
|
-
/**
|
|
119
|
-
* 获取textlayer的字体颜色
|
|
120
|
-
* @ignore
|
|
121
|
-
*/
|
|
122
|
-
_getTextColor(className: any): "red" | "#333";
|
|
123
|
-
/**
|
|
124
|
-
* 切换路况图层显示隐藏状态
|
|
125
|
-
* @param {boolean} flag 是否打开路况图层
|
|
126
|
-
*/
|
|
127
|
-
toggleTrafficLayer(flag: boolean): void;
|
|
128
|
-
/**
|
|
129
|
-
* 新增自定义弹框
|
|
130
|
-
* @param {point: Array<number>, dom: object} options 图标详情框
|
|
131
|
-
* @param {Array<number>} options.point 定位坐标
|
|
132
|
-
* @param {object} options.dom 弹窗dom节点
|
|
133
|
-
*/
|
|
134
|
-
setDOMOverlay(options: any): any;
|
|
135
|
-
/**
|
|
136
|
-
* 新增图标
|
|
137
|
-
* @param {object || array} iconData geojson数据
|
|
138
|
-
* @param infoWindow 图标详情框
|
|
139
|
-
* @param {function} infoWindow.callback 编写详情框内容的函数,返回node节点
|
|
140
|
-
* @param {array} infoWindow.offset 图标偏移两 [x, y]
|
|
141
|
-
* @param {boolean} infoWindow.keepSize 是否保持大小(即按像素为单位绘制)
|
|
142
|
-
*/
|
|
143
|
-
setMaker(iconData: any, infoWindow: any): any;
|
|
144
|
-
/**
|
|
145
|
-
* 初始化线对象
|
|
146
|
-
*
|
|
147
|
-
* @param options 线设置选项
|
|
148
|
-
* @param {number} options.lineWidth 线宽
|
|
149
|
-
* @param {boolean} options.vertexColors 是否通过数据携带线的颜色配置
|
|
150
|
-
* @param {string} options.lineJoin 线拐角形状
|
|
151
|
-
* @param {string} options.lineCap 端头角形状
|
|
152
|
-
* @param {string} options.color 线颜色
|
|
153
|
-
* @returns 返回添加的线对象
|
|
154
|
-
*/
|
|
155
|
-
setFatLine(options: any): any;
|
|
156
|
-
/**
|
|
157
|
-
* 更新engin
|
|
158
|
-
*/
|
|
159
|
-
requestRender(): void;
|
|
160
|
-
/**
|
|
161
|
-
* @ignore
|
|
162
|
-
*/
|
|
163
|
-
render(): void;
|
|
164
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
export class Map {
|
|
2
|
-
static EARTH_RADIUS: number;
|
|
3
|
-
constructor(engine: any, map: any, options?: {});
|
|
4
|
-
isHighwayMap: boolean;
|
|
5
|
-
MERCATOR_LENGTH: number;
|
|
6
|
-
projectionName: string;
|
|
7
|
-
origin: number[];
|
|
8
|
-
center: number[];
|
|
9
|
-
zoom: number;
|
|
10
|
-
pitch: number;
|
|
11
|
-
heading: number;
|
|
12
|
-
bounds: number[][];
|
|
13
|
-
_engine: any;
|
|
14
|
-
domContainer: any;
|
|
15
|
-
afterInit(): void;
|
|
16
|
-
initControl(): void;
|
|
17
|
-
control: MapControl | undefined;
|
|
18
|
-
bindCanvas(): void;
|
|
19
|
-
releaseCanvas(): void;
|
|
20
|
-
getContainerSize(): any[];
|
|
21
|
-
getResolution(): any;
|
|
22
|
-
getCenter(): any;
|
|
23
|
-
getZoom(): number;
|
|
24
|
-
getPitch(): number;
|
|
25
|
-
getZoomUnitsByZoom(zoom: any): number;
|
|
26
|
-
getZoomByZoomUnits(zoomUnits: any): number;
|
|
27
|
-
getZoomUnits(): number;
|
|
28
|
-
getHeading(): number;
|
|
29
|
-
enableControl(): void;
|
|
30
|
-
disableControl(): void;
|
|
31
|
-
handleViewChange: () => void;
|
|
32
|
-
handleMapResize: () => void;
|
|
33
|
-
handleEventClick: (e: any) => void;
|
|
34
|
-
handleEventDblClick: (e: any) => void;
|
|
35
|
-
handleEventPointerDown: (e: any) => void;
|
|
36
|
-
handleEventPointerUp: (e: any) => void;
|
|
37
|
-
handleEventMouseMove: (e: any) => void;
|
|
38
|
-
_getPixelFromEvent: (e: any) => number[];
|
|
39
|
-
setCameraMatrix(): void;
|
|
40
|
-
updateCamera(): void;
|
|
41
|
-
computeMapCameraMatrix(camera: any, center: any, zoom: any, pitch: any, heading: any): void;
|
|
42
|
-
zoomUnits: number | undefined;
|
|
43
|
-
cameraDistance: number | undefined;
|
|
44
|
-
setCenter(center: any): void;
|
|
45
|
-
setProjectionCenter(projectionCenter: any): void;
|
|
46
|
-
setZoom(zoom: any): void;
|
|
47
|
-
zoomIn(): void;
|
|
48
|
-
zoomOut(): void;
|
|
49
|
-
setHeading(heading: any): void;
|
|
50
|
-
setPitch(pitch: any): void;
|
|
51
|
-
lookAt(target: any, offset?: {}): void;
|
|
52
|
-
setBounds(bounds: any): void;
|
|
53
|
-
getBounds(): any;
|
|
54
|
-
updateView(): void;
|
|
55
|
-
getCameraDistance(): number | undefined;
|
|
56
|
-
getProjectionCenter(): number[];
|
|
57
|
-
dispose(): void;
|
|
58
|
-
}
|
|
59
|
-
import { MapControl } from './MapControl';
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
export class MapControl {
|
|
2
|
-
constructor(map: any);
|
|
3
|
-
map: any;
|
|
4
|
-
currentAction: number;
|
|
5
|
-
startX: any;
|
|
6
|
-
startY: any;
|
|
7
|
-
startCenterX: any;
|
|
8
|
-
startCenterY: any;
|
|
9
|
-
startPitch: any;
|
|
10
|
-
startHeading: any;
|
|
11
|
-
startZoom: any;
|
|
12
|
-
startZoomUnits: any;
|
|
13
|
-
startAtTop: any;
|
|
14
|
-
mapWidth: any;
|
|
15
|
-
mapHeight: any;
|
|
16
|
-
startCamera: any;
|
|
17
|
-
startCenter: any;
|
|
18
|
-
startNdc: any;
|
|
19
|
-
startPoint: any;
|
|
20
|
-
startScaleX: number;
|
|
21
|
-
startScaleY: number;
|
|
22
|
-
startBoundX: any;
|
|
23
|
-
startBoundY: any;
|
|
24
|
-
/** @private */
|
|
25
|
-
private _enabled;
|
|
26
|
-
minPitch: number;
|
|
27
|
-
maxPitch: number;
|
|
28
|
-
zoomSpeed: number;
|
|
29
|
-
headingSpeed: number;
|
|
30
|
-
pitchSpeed: number;
|
|
31
|
-
doubleClickTimer: null;
|
|
32
|
-
clickInterval: number;
|
|
33
|
-
set enabled(enabled: any);
|
|
34
|
-
init: () => void;
|
|
35
|
-
handleResize: (e: any) => void;
|
|
36
|
-
handleMouseMove: (e: any) => void;
|
|
37
|
-
handleMouseDown: (e: any) => void;
|
|
38
|
-
handleMouseDragging: (e: any) => void;
|
|
39
|
-
hasMoved: boolean | undefined;
|
|
40
|
-
currentPixelX: number | undefined;
|
|
41
|
-
currentPixelY: number | undefined;
|
|
42
|
-
handleMouseUp: (e: any) => void;
|
|
43
|
-
waitSecondClick: boolean | undefined;
|
|
44
|
-
clearDoubleClickTimer: () => void;
|
|
45
|
-
handleContextMenu: (e: any) => void;
|
|
46
|
-
handleWheel: (e: any) => void;
|
|
47
|
-
handlePan: (x: any, y: any) => void;
|
|
48
|
-
setPanStartState: (px: any, py: any) => void;
|
|
49
|
-
handleRotate: (x: any, y: any) => void;
|
|
50
|
-
handleZoom: (zoomOptions: any) => void;
|
|
51
|
-
ndcToPoint(pixel: any, camera: any, target: any): void;
|
|
52
|
-
getNdc(px: any, py: any, target: any): void;
|
|
53
|
-
makeZoomSafe: (zoom: any) => any;
|
|
54
|
-
makeHeadingSafe: (heading: any) => any;
|
|
55
|
-
makePitchSafe: (pitch: any) => any;
|
|
56
|
-
dispose: () => void;
|
|
57
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export function getStage(eventType: any): string;
|
|
2
|
-
/**
|
|
3
|
-
* @file 事件定义
|
|
4
|
-
* @author hedongran [hdr01@126.com]
|
|
5
|
-
*/
|
|
6
|
-
export const isSupportPointerEvent: true;
|
|
7
|
-
export const isMobile: boolean;
|
|
8
|
-
export function isPointerTouch(e: any): boolean;
|
|
9
|
-
export function isTouchEvent(e: any): any;
|
|
10
|
-
export namespace EVENTS {
|
|
11
|
-
let DOWN: string;
|
|
12
|
-
let MOVE: string;
|
|
13
|
-
let UP: string;
|
|
14
|
-
let CANCEL: string;
|
|
15
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
export const MODEL_TAG_DYNAMIC: 1001;
|
|
2
|
-
export const MODEL_TAG_SIMPLE: 1002;
|
|
3
|
-
export const MODEL_TAG_IMAGE: 1005;
|
|
4
|
-
export namespace TEMPLTE_MODEL_CONFIG {
|
|
5
|
-
let x: number;
|
|
6
|
-
let y: number;
|
|
7
|
-
let z: number;
|
|
8
|
-
let color: string;
|
|
9
|
-
let name: string;
|
|
10
|
-
let rotateX: number;
|
|
11
|
-
let rotateY: number;
|
|
12
|
-
let rotateZ: number;
|
|
13
|
-
let scaleX: number;
|
|
14
|
-
let scaleY: number;
|
|
15
|
-
let scaleZ: number;
|
|
16
|
-
let scale: number;
|
|
17
|
-
let opacity: number;
|
|
18
|
-
let isTips: boolean;
|
|
19
|
-
let isVisible: boolean;
|
|
20
|
-
let isClick: boolean;
|
|
21
|
-
let isBloom: number;
|
|
22
|
-
let classType: string;
|
|
23
|
-
let lodMax: number;
|
|
24
|
-
let lodMin: number;
|
|
25
|
-
let text: string;
|
|
26
|
-
let encoding: number;
|
|
27
|
-
let reflectivity: number;
|
|
28
|
-
let roughness: number;
|
|
29
|
-
let metalness: number;
|
|
30
|
-
let modelName: string;
|
|
31
|
-
let modelChildName: never[];
|
|
32
|
-
let groupInfo: string;
|
|
33
|
-
}
|
|
34
|
-
export namespace TEMPLATE_POINT {
|
|
35
|
-
export let uuid: string;
|
|
36
|
-
export let project_id: string;
|
|
37
|
-
let x_1: number;
|
|
38
|
-
export { x_1 as x };
|
|
39
|
-
let y_1: number;
|
|
40
|
-
export { y_1 as y };
|
|
41
|
-
let z_1: number;
|
|
42
|
-
export { z_1 as z };
|
|
43
|
-
let name_1: string;
|
|
44
|
-
export { name_1 as name };
|
|
45
|
-
export let rotate_x: number;
|
|
46
|
-
export let rotate_y: number;
|
|
47
|
-
export let rotate_z: number;
|
|
48
|
-
export let scale_x: number;
|
|
49
|
-
export let scale_y: number;
|
|
50
|
-
export let scale_z: number;
|
|
51
|
-
let scale_1: number;
|
|
52
|
-
export { scale_1 as scale };
|
|
53
|
-
export let is_tips: number;
|
|
54
|
-
export let is_visible: number;
|
|
55
|
-
export let is_click: number;
|
|
56
|
-
export let class_type: string;
|
|
57
|
-
export let lod_max: number;
|
|
58
|
-
export let lod_min: number;
|
|
59
|
-
let opacity_1: string;
|
|
60
|
-
export { opacity_1 as opacity };
|
|
61
|
-
let text_1: string;
|
|
62
|
-
export { text_1 as text };
|
|
63
|
-
export let bounding_box: string;
|
|
64
|
-
export let has_bounding_box: number;
|
|
65
|
-
export let layer_type: string;
|
|
66
|
-
export let layer_name: string;
|
|
67
|
-
export let layer_id: number;
|
|
68
|
-
export let model_name: string;
|
|
69
|
-
export let status: number;
|
|
70
|
-
export let is_bloom: number;
|
|
71
|
-
export let material_id: string;
|
|
72
|
-
export let material_list: string;
|
|
73
|
-
export let images: string;
|
|
74
|
-
export let model_info: string;
|
|
75
|
-
export let device_id: string;
|
|
76
|
-
export let id: null;
|
|
77
|
-
export let group_info: string;
|
|
78
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 地面每个格子长宽
|
|
3
|
-
*/
|
|
4
|
-
export const PLANE_SEGMENT_SIZE: 50000;
|
|
5
|
-
/**
|
|
6
|
-
* HD元素包含内容
|
|
7
|
-
*/
|
|
8
|
-
export const hdElements: string[];
|
|
9
|
-
/**
|
|
10
|
-
* SD元素包含内容
|
|
11
|
-
*/
|
|
12
|
-
export const sdElements: string[];
|
|
13
|
-
/**
|
|
14
|
-
* 建筑物元素包含内容
|
|
15
|
-
*/
|
|
16
|
-
export const buildingElements: string[];
|
|
17
|
-
/**
|
|
18
|
-
* 地图要素列表
|
|
19
|
-
*/
|
|
20
|
-
export const MAP_ELEMENTS: {
|
|
21
|
-
name: string;
|
|
22
|
-
type: string;
|
|
23
|
-
}[];
|