@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,71 +0,0 @@
|
|
|
1
|
-
export function updateTagLook(type: any, tagItem: any): Promise<{
|
|
2
|
-
basicLabel: any;
|
|
3
|
-
content: any;
|
|
4
|
-
circle2?: undefined;
|
|
5
|
-
circle1?: undefined;
|
|
6
|
-
basicLabel1?: undefined;
|
|
7
|
-
content2Top?: undefined;
|
|
8
|
-
content2Center?: undefined;
|
|
9
|
-
} | {
|
|
10
|
-
basicLabel: any;
|
|
11
|
-
circle2: any;
|
|
12
|
-
circle1: any;
|
|
13
|
-
content: any;
|
|
14
|
-
basicLabel1?: undefined;
|
|
15
|
-
content2Top?: undefined;
|
|
16
|
-
content2Center?: undefined;
|
|
17
|
-
} | {
|
|
18
|
-
basicLabel1: any;
|
|
19
|
-
content2Top: any;
|
|
20
|
-
basicLabel?: undefined;
|
|
21
|
-
content?: undefined;
|
|
22
|
-
circle2?: undefined;
|
|
23
|
-
circle1?: undefined;
|
|
24
|
-
content2Center?: undefined;
|
|
25
|
-
} | {
|
|
26
|
-
basicLabel: any;
|
|
27
|
-
content2Top: any;
|
|
28
|
-
content2Center: any;
|
|
29
|
-
content?: undefined;
|
|
30
|
-
circle2?: undefined;
|
|
31
|
-
circle1?: undefined;
|
|
32
|
-
basicLabel1?: undefined;
|
|
33
|
-
} | {
|
|
34
|
-
basicLabel: any;
|
|
35
|
-
circle2: any;
|
|
36
|
-
circle1: any;
|
|
37
|
-
basicLabel1: any;
|
|
38
|
-
content2Center: any;
|
|
39
|
-
content2Top: any;
|
|
40
|
-
content?: undefined;
|
|
41
|
-
} | {
|
|
42
|
-
basicLabel: any;
|
|
43
|
-
content2Center: any;
|
|
44
|
-
content?: undefined;
|
|
45
|
-
circle2?: undefined;
|
|
46
|
-
circle1?: undefined;
|
|
47
|
-
basicLabel1?: undefined;
|
|
48
|
-
content2Top?: undefined;
|
|
49
|
-
} | {
|
|
50
|
-
basicLabel: any;
|
|
51
|
-
circle2: any;
|
|
52
|
-
circle1: any;
|
|
53
|
-
content2Center: any;
|
|
54
|
-
content?: undefined;
|
|
55
|
-
basicLabel1?: undefined;
|
|
56
|
-
content2Top?: undefined;
|
|
57
|
-
} | undefined>;
|
|
58
|
-
export function odTagSetData(config: any): void;
|
|
59
|
-
export function fenceLine(config: any, engine: any): any;
|
|
60
|
-
export function createTubeLine(config: any): any;
|
|
61
|
-
export function createAreaCircle(config: any): {
|
|
62
|
-
mesh1: any;
|
|
63
|
-
mesh2: any;
|
|
64
|
-
topArea: any;
|
|
65
|
-
bottomLine: any;
|
|
66
|
-
topLine: any;
|
|
67
|
-
};
|
|
68
|
-
export const staticInfo: {};
|
|
69
|
-
export function setStaticInfo(info: any): void;
|
|
70
|
-
export function setEngine(e: any): void;
|
|
71
|
-
export const sizeAttenuationScale: 1.3;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function setNonceInfo(hostList: any, salt: any): void;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export function line2Camel(name: any): any;
|
|
2
|
-
/**
|
|
3
|
-
* 保留digit位小数的number
|
|
4
|
-
* @param val
|
|
5
|
-
* @param digit
|
|
6
|
-
*/
|
|
7
|
-
export function formatNumber(val: any, digit: any): number;
|
|
8
|
-
export function getScreenBoardType(): string;
|
|
9
|
-
export function setScreenBoardType(type: any): void;
|
|
10
|
-
export namespace MODELS {
|
|
11
|
-
let BUS: null;
|
|
12
|
-
let CAR: null;
|
|
13
|
-
let TRACK: null;
|
|
14
|
-
let BICYCLE: null;
|
|
15
|
-
let PEDESTRIAN: null;
|
|
16
|
-
let TRAFFIC_CONE: null;
|
|
17
|
-
}
|
|
18
|
-
export function loadGLTFModel(path: any, callback: any, option: {} | undefined, errorCallBack: any): void;
|
|
19
|
-
export function getInstancedModelByUrl(path: string, count?: number, isDynamic?: number, callback?: Function): void;
|
|
20
|
-
export function loadDynamicGLTFModel(path: any, callback: any, option: {} | undefined, errorCallBack: any): void;
|
|
21
|
-
export function computeTransformedBoundingBox(box: any, transform: any): any;
|
|
22
|
-
export function disposeObject(obj: any): void;
|
|
23
|
-
export function pointInArea(center: any, radius: number | undefined, position: any): boolean;
|
|
24
|
-
export function updateElementVisibility(map_element: any, defaultStyle: any): any;
|
|
25
|
-
export function genUUID(): any;
|
|
26
|
-
export function imageSplit(url: any, num: any, outputWidth?: number, outputHeight?: number): Promise<any>;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
export const TRAFFICLIGHT_MODEL_MAP: {
|
|
2
|
-
'3_201_0': {
|
|
3
|
-
direction: number;
|
|
4
|
-
lightList: number[];
|
|
5
|
-
};
|
|
6
|
-
'3_201_1': {
|
|
7
|
-
direction: number;
|
|
8
|
-
lightList: number[];
|
|
9
|
-
};
|
|
10
|
-
'3_201_2': {
|
|
11
|
-
direction: number;
|
|
12
|
-
lightList: number[];
|
|
13
|
-
};
|
|
14
|
-
'3_201_3': {
|
|
15
|
-
direction: number;
|
|
16
|
-
lightList: number[];
|
|
17
|
-
};
|
|
18
|
-
'3_201_4': {
|
|
19
|
-
direction: number;
|
|
20
|
-
lightList: number[];
|
|
21
|
-
};
|
|
22
|
-
'3_201_5': {
|
|
23
|
-
direction: number;
|
|
24
|
-
lightList: number[];
|
|
25
|
-
};
|
|
26
|
-
'3_201_6': {
|
|
27
|
-
direction: number;
|
|
28
|
-
lightList: number[];
|
|
29
|
-
};
|
|
30
|
-
'3_201_10': {
|
|
31
|
-
direction: number;
|
|
32
|
-
lightList: number[];
|
|
33
|
-
};
|
|
34
|
-
'3_202_0': {
|
|
35
|
-
direction: number;
|
|
36
|
-
lightList: number[];
|
|
37
|
-
};
|
|
38
|
-
'3_203_0': {
|
|
39
|
-
direction: number;
|
|
40
|
-
lightList: number[];
|
|
41
|
-
};
|
|
42
|
-
'3_203_1': {
|
|
43
|
-
direction: number;
|
|
44
|
-
lightList: number[];
|
|
45
|
-
};
|
|
46
|
-
'3_204_0': {
|
|
47
|
-
direction: number;
|
|
48
|
-
lightList: number[];
|
|
49
|
-
};
|
|
50
|
-
'3_205_0': {
|
|
51
|
-
direction: number;
|
|
52
|
-
lightList: number[];
|
|
53
|
-
};
|
|
54
|
-
'3_205_1': {
|
|
55
|
-
direction: number;
|
|
56
|
-
lightList: number[];
|
|
57
|
-
};
|
|
58
|
-
'3_205_2': {
|
|
59
|
-
direction: number;
|
|
60
|
-
lightList: number[];
|
|
61
|
-
};
|
|
62
|
-
'3_206_1': {
|
|
63
|
-
direction: number;
|
|
64
|
-
lightList: number[];
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
export function getTrafficLightCode(type: any, lightInfo: any): {
|
|
68
|
-
direction: any;
|
|
69
|
-
lightListResult: any;
|
|
70
|
-
};
|
|
71
|
-
export function getRoadFlowDirection(phaseCode: any): string | undefined;
|
|
72
|
-
export function sortRoadFlowDirection(prev: any, next: any): number;
|
|
73
|
-
export function getSignalColorString(lightStateCode: any): string;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export class Ws {
|
|
2
|
-
constructor(arg?: {
|
|
3
|
-
needToken: boolean;
|
|
4
|
-
});
|
|
5
|
-
lockReconnect: boolean;
|
|
6
|
-
connectNumber: number;
|
|
7
|
-
ws: WebSocket | null;
|
|
8
|
-
maxConnectNumber: number;
|
|
9
|
-
beforeReconnect: any;
|
|
10
|
-
disposeStatus: boolean;
|
|
11
|
-
needToken: boolean;
|
|
12
|
-
bindObj: any;
|
|
13
|
-
recentMessage: any;
|
|
14
|
-
timeout: number;
|
|
15
|
-
timeoutObj: number | null;
|
|
16
|
-
serverTimeoutObj: number | null;
|
|
17
|
-
reconnectCallback: any;
|
|
18
|
-
reconnect(url: any, params: any): void;
|
|
19
|
-
connect(url: any, params: any, msgFn: any): Promise<any>;
|
|
20
|
-
dispose(): void;
|
|
21
|
-
heartReset(): this;
|
|
22
|
-
heartStart(curWs: any): void;
|
|
23
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* lru 项
|
|
3
|
-
*/
|
|
4
|
-
export class LRUItem {
|
|
5
|
-
constructor(tile: any);
|
|
6
|
-
previous: any;
|
|
7
|
-
next: any;
|
|
8
|
-
tile: any;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* least recently used, 双向链
|
|
12
|
-
*/
|
|
13
|
-
export class LRU {
|
|
14
|
-
oldest: any;
|
|
15
|
-
newest: any;
|
|
16
|
-
items: {};
|
|
17
|
-
elements: number;
|
|
18
|
-
numGeometries: number;
|
|
19
|
-
size(): number;
|
|
20
|
-
contains(tile: any): boolean;
|
|
21
|
-
touch(tile: any): void;
|
|
22
|
-
remove(tile: any): void;
|
|
23
|
-
getLRUItem(): any;
|
|
24
|
-
freeMemory(): void;
|
|
25
|
-
free(): void;
|
|
26
|
-
disposeDescendants(tile: any): void;
|
|
27
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
export namespace MOUSE {
|
|
2
|
-
let LEFT: number;
|
|
3
|
-
let RIGHT: number;
|
|
4
|
-
let MIDDLE: number;
|
|
5
|
-
}
|
|
6
|
-
export namespace LINE_TYPE {
|
|
7
|
-
let SOLIDE_LINE: number;
|
|
8
|
-
let DASHED_LINE: number;
|
|
9
|
-
let FAT_SOLIDE_LINE: number;
|
|
10
|
-
let FAT_DASHED_LINE: number;
|
|
11
|
-
}
|
|
12
|
-
export namespace MODELS {
|
|
13
|
-
let BUS: null;
|
|
14
|
-
let CAR: null;
|
|
15
|
-
let TRACK: null;
|
|
16
|
-
let BICYCLE: null;
|
|
17
|
-
let PEDESTRIAN: null;
|
|
18
|
-
let TRAFFIC_CONE: null;
|
|
19
|
-
}
|
|
20
|
-
export namespace RENDER_MODE {
|
|
21
|
-
let SCENE_ONLY: number;
|
|
22
|
-
let SCEME_WITH_GLOW: number;
|
|
23
|
-
let SCENE_WITH_GLOW: number;
|
|
24
|
-
let GLOW_ONLY: number;
|
|
25
|
-
}
|
|
26
|
-
export namespace SCENE_LAYER {
|
|
27
|
-
let ENTIRE_SCENE: number;
|
|
28
|
-
let BLOOM_SCENE: number;
|
|
29
|
-
}
|
|
30
|
-
export namespace BACKGROUND {
|
|
31
|
-
let BLACK: string;
|
|
32
|
-
let WHITE: string;
|
|
33
|
-
let SKYBOX: string;
|
|
34
|
-
let GRADIEN: string;
|
|
35
|
-
let PERSONAL: string;
|
|
36
|
-
}
|
|
37
|
-
export namespace ANTIALIASING_MODE {
|
|
38
|
-
let NO_AA: number;
|
|
39
|
-
let FXAA: number;
|
|
40
|
-
let TAA: number;
|
|
41
|
-
let SMAA: number;
|
|
42
|
-
let SSAA: number;
|
|
43
|
-
let MSAA: number;
|
|
44
|
-
}
|
|
45
|
-
export namespace CLIP_MODE {
|
|
46
|
-
let DISCARD_OUT_REGION: number;
|
|
47
|
-
let DISCARD_IN_REGION: number;
|
|
48
|
-
let HIGHLIGHT_OUT_REGION: number;
|
|
49
|
-
let HIGHLIGHT_IN_REGION: number;
|
|
50
|
-
}
|
|
51
|
-
export namespace CLIP_GEOMETRY_TYPE {
|
|
52
|
-
let CIRCLE: number;
|
|
53
|
-
let RACTANGLE: number;
|
|
54
|
-
let POLYGON: number;
|
|
55
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export function increaseTileLoading(): void;
|
|
2
|
-
export function decreaseTileLoading(): void;
|
|
3
|
-
export function getNumTileLoading(): number;
|
|
4
|
-
export function setNumTileLoading(num: any): void;
|
|
5
|
-
export function getMaxTileLoading(): number;
|
|
6
|
-
export function setMaxTileLoading(num: any): void;
|
|
7
|
-
export function getGeometryBudget(): number;
|
|
8
|
-
export function setGeometryBudget(num: any): void;
|
|
9
|
-
export function getTilesDownloadQueue(downloadQueue: any): any;
|
|
10
|
-
export function getTilesParseQueue(parseQueue: any): any;
|
|
11
|
-
export function getTilesLruCache(): any;
|
|
12
|
-
export function setTilesDownloadQueue(downloadQueue: any): boolean;
|
|
13
|
-
export function setTilesLruCache(lruCache: any): boolean;
|
|
14
|
-
export function setTilesParseQueue(parseQueue: any): boolean;
|
|
15
|
-
export const BloomLayer: any;
|
|
16
|
-
export const workServiceManeger: WorkerServiceManeger;
|
|
17
|
-
export const lru: LRU;
|
|
18
|
-
export const debuggerMode: false;
|
|
19
|
-
export const PointcloudStore: any;
|
|
20
|
-
export const TileStore: any;
|
|
21
|
-
export const ModelStore: any;
|
|
22
|
-
export const darkMeshMaterial: any;
|
|
23
|
-
export const darkLineMaterial: any;
|
|
24
|
-
export const darkPointMaterial: any;
|
|
25
|
-
export const darkSpriteMaterial: any;
|
|
26
|
-
export const dracoLoader: any;
|
|
27
|
-
export const ktx2Loader: any;
|
|
28
|
-
import { WorkerServiceManeger } from '../mapTile/workers/WorkerServiceManager';
|
|
29
|
-
import { LRU } from './LRU';
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ```javascript
|
|
3
|
-
* new AnimatePolygon({
|
|
4
|
-
* vertices: [[0, 10, 0], [10, 10, 0], [10, 20, 0]],
|
|
5
|
-
* map: `./texture/line/${lineTexture[1]}`,
|
|
6
|
-
* transparent: true,
|
|
7
|
-
* speed: new Vector2(-4, 0),
|
|
8
|
-
* })
|
|
9
|
-
* ```
|
|
10
|
-
*/
|
|
11
|
-
export class AnimatePolygon {
|
|
12
|
-
/**
|
|
13
|
-
* @extends Object3D
|
|
14
|
-
* @param {object} args 参数
|
|
15
|
-
* @param {string} args.polygonType 多边形类型,polygon-多边形、circle-圆,默认为'polygon'
|
|
16
|
-
* @param {array} args.vertices 多边形的顶点坐标,仅polygonType为polygon时有效
|
|
17
|
-
* @param {object} args.circlePosition 圆中心点坐标,仅polygonType为circle时有效,默认值Vector3(0,0,0);
|
|
18
|
-
* @param {number} args.radius 圆半径,仅polygonType为circle时有效,默认值1;
|
|
19
|
-
* @param {number} args.segments 圆分段(三角面)的数量,仅polygonType为circle时有效,默认值8;
|
|
20
|
-
* @param {number} args.thetaStart 圆第一个分段的起始角度,仅polygonType为circle时有效,默认值0
|
|
21
|
-
* @param {number} args.thetaLength 圆扇区的中心角,仅polygonType为circle时有效,默认值Math.PI * 2;
|
|
22
|
-
* @param {any} args.color 线的颜色。vertexColors为false时,表示线为纯色,color可为Vector3或Array,默认值为红色;
|
|
23
|
-
* vertexColors为true时,表示启用顶点颜色,color为数组,默认值为白色
|
|
24
|
-
* @param {object} args.offset 要偏移的坐标量,默认为Vector3(0, 0, 0)
|
|
25
|
-
* @param {number} args.opacity transparent为true时生效,线的透明度,默认值是1
|
|
26
|
-
* @param {number} args.transparent 是否开启透明度,默认值为false
|
|
27
|
-
* @param {boolean} args.depthTest 是否在渲染此材质时启用深度测试。默认值为true
|
|
28
|
-
* @param {boolean} args.depthWrite 渲染此材质是否对深度缓冲区有任何影响。默认为true
|
|
29
|
-
* @param {object} args.map 纹理图片地址或Texture类,默认值为null
|
|
30
|
-
* @param {object} args.speed Vector2,x表示横向速度,y表示纵向速度,正负代表方向,默认值为Vector2(1, 1)
|
|
31
|
-
* @param {object} args.mapOffset 贴图的水平和竖直偏移量。默认值为Vector2(0,0)
|
|
32
|
-
* @param {object} args.repeat 纹理在曲面上沿每个方向U和V重复多少次,默认new Vector2(1, 1)
|
|
33
|
-
*/
|
|
34
|
-
constructor(args?: {
|
|
35
|
-
polygonType: string;
|
|
36
|
-
vertices: array;
|
|
37
|
-
circlePosition: object;
|
|
38
|
-
radius: number;
|
|
39
|
-
segments: number;
|
|
40
|
-
thetaStart: number;
|
|
41
|
-
thetaLength: number;
|
|
42
|
-
color: any;
|
|
43
|
-
offset: object;
|
|
44
|
-
opacity: number;
|
|
45
|
-
transparent: number;
|
|
46
|
-
depthTest: boolean;
|
|
47
|
-
depthWrite: boolean;
|
|
48
|
-
map: object;
|
|
49
|
-
speed: object;
|
|
50
|
-
mapOffset: object;
|
|
51
|
-
repeat: object;
|
|
52
|
-
});
|
|
53
|
-
polygonType: string;
|
|
54
|
-
color: Object;
|
|
55
|
-
offset: Object;
|
|
56
|
-
vertices: any;
|
|
57
|
-
circlePosition: Object;
|
|
58
|
-
radius: number;
|
|
59
|
-
segments: number;
|
|
60
|
-
thetaStart: number;
|
|
61
|
-
thetaLength: number;
|
|
62
|
-
speed: Object;
|
|
63
|
-
repeat: Object;
|
|
64
|
-
mapOffset: object;
|
|
65
|
-
map: object | null;
|
|
66
|
-
receiveRaycast: any;
|
|
67
|
-
opacity: number;
|
|
68
|
-
transparent: number | boolean;
|
|
69
|
-
depthTest: boolean;
|
|
70
|
-
depthWrite: boolean;
|
|
71
|
-
_geometryType: string;
|
|
72
|
-
mesh: any;
|
|
73
|
-
boundingBox: any;
|
|
74
|
-
/** @private */
|
|
75
|
-
private afterAddToEngine;
|
|
76
|
-
engine: any;
|
|
77
|
-
/**
|
|
78
|
-
*
|
|
79
|
-
* 初始化
|
|
80
|
-
*
|
|
81
|
-
*/
|
|
82
|
-
init(): void;
|
|
83
|
-
/**
|
|
84
|
-
* 设置几何点数组
|
|
85
|
-
* @param {Array} vertices 点数组
|
|
86
|
-
*/
|
|
87
|
-
setVertices(vertices: any[]): void;
|
|
88
|
-
/**
|
|
89
|
-
* 设置偏移量
|
|
90
|
-
* @param {any} offset 偏移量
|
|
91
|
-
*/
|
|
92
|
-
setOffset(offset: any): void;
|
|
93
|
-
/**
|
|
94
|
-
*
|
|
95
|
-
* 动画
|
|
96
|
-
*
|
|
97
|
-
*/
|
|
98
|
-
/**
|
|
99
|
-
* 射线拾取
|
|
100
|
-
*/
|
|
101
|
-
raycast(raycaster: any, intersects: any): void;
|
|
102
|
-
/**
|
|
103
|
-
*
|
|
104
|
-
* 释放内存
|
|
105
|
-
*
|
|
106
|
-
*/
|
|
107
|
-
dispose(): void;
|
|
108
|
-
}
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* ```javascript
|
|
4
|
-
* new DoubleLine({
|
|
5
|
-
* vertices: [[0, 10, 0], [10, 10, 0], [10, 20, 0]],
|
|
6
|
-
* sizeAttenuation: false,
|
|
7
|
-
* opacity: .1,
|
|
8
|
-
* map: `./texture/line/${lineTexture[1]}`,
|
|
9
|
-
* transparent: true,
|
|
10
|
-
* hasBasicLine: true,
|
|
11
|
-
* speed: new Vector2(-4, 0),
|
|
12
|
-
* lineWidth: 20
|
|
13
|
-
* })
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
export class DoubleLine {
|
|
17
|
-
/**
|
|
18
|
-
* @extends Object3D
|
|
19
|
-
* @param {object} args 参数
|
|
20
|
-
* @param {array} args.vertices 坐标
|
|
21
|
-
* @param {any} args.color 线的颜色。vertexColors为false时,表示线为纯色,color可为Vector3或Array,默认值为红色;
|
|
22
|
-
* vertexColors为true时,表示启用顶点颜色,color为数组,默认值为白色
|
|
23
|
-
* @param {string} args.vertexColors 是否使用顶点坐标,默认值false
|
|
24
|
-
* @param {string} args.topColor 格式同color,仅vertexColors为true时有效,默认值为0xff0000
|
|
25
|
-
* @param {string} args.bottomColor 格式同color,仅vertexColors为true时有效,默认值为0xffffff
|
|
26
|
-
* @param {object} args.resolution 视口分辨率,默认值为视口宽高
|
|
27
|
-
* @param {boolean} args.sizeAttenuation 大小是否会被相机深度衰减,默认值为true
|
|
28
|
-
* @param {number} args.lineWidth 折线段拉伸长度,默认值为1
|
|
29
|
-
* @param {number} args.opacity transparent为true时生效,线的透明度,默认值是1
|
|
30
|
-
* @param {number} args.transparent 是否开启透明度,默认值为false
|
|
31
|
-
* @param {boolean} args.depthTest 是否在渲染此材质时启用深度测试。默认值为true
|
|
32
|
-
* @param {boolean} args.depthWrite 渲染此材质是否对深度缓冲区有任何影响。默认为true
|
|
33
|
-
* @param {object} args.map 纹理图片地址或Texture类,默认值为null
|
|
34
|
-
* @param {object} args.speed Vector2,x表示横向速度,y表示纵向速度,正负代表方向,默认值为Vector2(1, 1)
|
|
35
|
-
* @param {object} args.mapOffset 贴图的水平和竖直偏移量。默认值为Vector2(0,0)
|
|
36
|
-
* @param {object} args.repeat 纹理在曲面上沿每个方向U和V重复多少次,默认new Vector2(1, 1)
|
|
37
|
-
* @param {boolean} args.hasBasicLine 是否开启基础线,默认值为false
|
|
38
|
-
* @param {number} args.basicLineWidth 基础线拉伸长度,默认值为1
|
|
39
|
-
* @param {any} args.basicLineColor 基础线的颜色。格式同color
|
|
40
|
-
* @param {number} args.basicLineOpacity basicLineTransparent为true时生效,基础线的透明度,默认值是1
|
|
41
|
-
* @param {boolean} args.basicLineTransparent 是否开启基础线透明度,默认值为false
|
|
42
|
-
* @param {boolean} args.basicLineDepthWrite 基础线,渲染此材质是否对深度缓冲区有任何影响。默认为true
|
|
43
|
-
* @param {boolean} args.basicLineVertexColors 基础线是否使用顶点坐标,默认值false
|
|
44
|
-
* @param {any} args.basicLineTopColor 基础线,格式同color,仅vertexColors为true时有效,默认值为0xff0000
|
|
45
|
-
* @param {any} args.basicLineBottomColor 基础线,格式同color,仅vertexColors为true时有效,默认值为0xffffff
|
|
46
|
-
*/
|
|
47
|
-
constructor(args?: {
|
|
48
|
-
vertices: array;
|
|
49
|
-
color: any;
|
|
50
|
-
vertexColors: string;
|
|
51
|
-
topColor: string;
|
|
52
|
-
bottomColor: string;
|
|
53
|
-
resolution: object;
|
|
54
|
-
sizeAttenuation: boolean;
|
|
55
|
-
lineWidth: number;
|
|
56
|
-
opacity: number;
|
|
57
|
-
transparent: number;
|
|
58
|
-
depthTest: boolean;
|
|
59
|
-
depthWrite: boolean;
|
|
60
|
-
map: object;
|
|
61
|
-
speed: object;
|
|
62
|
-
mapOffset: object;
|
|
63
|
-
repeat: object;
|
|
64
|
-
hasBasicLine: boolean;
|
|
65
|
-
basicLineWidth: number;
|
|
66
|
-
basicLineColor: any;
|
|
67
|
-
basicLineOpacity: number;
|
|
68
|
-
basicLineTransparent: boolean;
|
|
69
|
-
basicLineDepthWrite: boolean;
|
|
70
|
-
basicLineVertexColors: boolean;
|
|
71
|
-
basicLineTopColor: any;
|
|
72
|
-
basicLineBottomColor: any;
|
|
73
|
-
});
|
|
74
|
-
size: number;
|
|
75
|
-
vertices: any;
|
|
76
|
-
color: Object;
|
|
77
|
-
sizeAttenuation: boolean;
|
|
78
|
-
offset: any;
|
|
79
|
-
resolution: object;
|
|
80
|
-
vertexColors: string | boolean;
|
|
81
|
-
topColor: Object;
|
|
82
|
-
bottomColor: Object;
|
|
83
|
-
hasBasicLine: boolean;
|
|
84
|
-
basicLineWidth: any;
|
|
85
|
-
basicLineColor: Object;
|
|
86
|
-
basicLineOpacity: number;
|
|
87
|
-
basicLineTransparent: boolean;
|
|
88
|
-
basicLineDepthWrite: boolean;
|
|
89
|
-
basicLineVertexColors: boolean;
|
|
90
|
-
basicLineTopColor: Object;
|
|
91
|
-
basicLineBottomColor: Object;
|
|
92
|
-
receiveRaycast: any;
|
|
93
|
-
speed: object;
|
|
94
|
-
lineWidth: number;
|
|
95
|
-
repeat: object;
|
|
96
|
-
mapOffset: object;
|
|
97
|
-
opacity: number;
|
|
98
|
-
map: object;
|
|
99
|
-
transparent: number | boolean;
|
|
100
|
-
depthTest: boolean;
|
|
101
|
-
depthWrite: boolean;
|
|
102
|
-
_geometryType: string;
|
|
103
|
-
boundingBox: any;
|
|
104
|
-
line: Fence | null;
|
|
105
|
-
basicLine: Fence | null;
|
|
106
|
-
/** @private */
|
|
107
|
-
private afterAddToEngine;
|
|
108
|
-
engine: any;
|
|
109
|
-
/**
|
|
110
|
-
*
|
|
111
|
-
* 初始化
|
|
112
|
-
*
|
|
113
|
-
*/
|
|
114
|
-
init(): void;
|
|
115
|
-
/**
|
|
116
|
-
* 设置几何点数组
|
|
117
|
-
* @param {Array} vertices 点数组
|
|
118
|
-
*/
|
|
119
|
-
setVertices(vertices: any[]): void;
|
|
120
|
-
/**
|
|
121
|
-
* 设置偏移量
|
|
122
|
-
* @param {any} offset 偏移量
|
|
123
|
-
*/
|
|
124
|
-
setOffset(offset: any): void;
|
|
125
|
-
/**
|
|
126
|
-
*
|
|
127
|
-
* 释放内存
|
|
128
|
-
*
|
|
129
|
-
*/
|
|
130
|
-
dispose(): void;
|
|
131
|
-
/**
|
|
132
|
-
* 射线拾取
|
|
133
|
-
*/
|
|
134
|
-
raycast(raycaster: any, intersects: any): void;
|
|
135
|
-
meshRaycast(raycaster: any, intersects: any): void;
|
|
136
|
-
}
|
|
137
|
-
import { Fence } from '../map/Fence';
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
export class FlyLineLayer {
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* @extends Object3D
|
|
5
|
-
* @param {object} args 参数
|
|
6
|
-
* @param {any} args.color 线的颜色。可为Vector3或Array,默认值为红色
|
|
7
|
-
* @param {number} args.lineWidth 线的宽度,默认值为1
|
|
8
|
-
* @param {boolean} args.sizeAttenuation 大小是否会被相机深度衰减,默认值为true
|
|
9
|
-
* @param {number} args.dashArray 虚线的间隙的大小,为0时该线段为实线,大于0为虚线,范围0-1,默认值为0
|
|
10
|
-
* @param {number} args.dashRatio 实线长度与间隙长度之比,dashArray大于0时有效,默认值为1
|
|
11
|
-
* @param {number} args.dashOffset 虚线的线横向偏移量与贴图的横向偏移量,dashArray大于0时有效,默认值为0
|
|
12
|
-
* @param {boolean} args.hasBasicLine 是否开启基础实线,dashArray大于0时有效,默认值为false
|
|
13
|
-
* @param {number} args.basicLineWidth 基础线宽,开启基础实线时有效,默认值为1
|
|
14
|
-
* @param {any} args.basicLineColor 基础线颜色,开启基础实线时有效,默认值为红色
|
|
15
|
-
* @param {number} args.basicLineOpacity 基础线透明度,开启基础实线时有效,默认值为1
|
|
16
|
-
* @param {boolean} args.basicLineTransparent 是否开启基础线透明度,默认值是由初始化时的basicLineOpacity决定,
|
|
17
|
-
* basicLineOpacity<1时为true,basicLineOpacity=1时为false
|
|
18
|
-
* @param {boolean} args.basicLineDepthWrite 基础线,渲染此材质是否对深度缓冲区有任何影响。默认为true
|
|
19
|
-
* @param {boolean} args.basicLineSizeAttenuation 大小是否会被相机深度衰减,默认值为true
|
|
20
|
-
* @param {string} args.map 纹理图片地址,默认值为null
|
|
21
|
-
* @param {object} args.repeat 纹理在曲面上沿每个方向U和V重复多少次,默认值为new Vector2(1, 1)
|
|
22
|
-
* @param {number} args.opacity 线的透明度,值小于1时transparent为true,值等于1时transparent为false,默认值为1
|
|
23
|
-
* @param {number} args.transparent 是否开启透明度,默认值是由初始化时的opacity决定,opacity<1时为true,opacity=1时为false
|
|
24
|
-
* @param {number} args.speed 虚线模式下或有纹理时可开启动画,用于控制速度,正负值控制方向,默认值为1
|
|
25
|
-
* @param {boolean} args.depthTest 是否在渲染此材质时启用深度测试。默认值为true
|
|
26
|
-
* @param {boolean} args.depthWrite 渲染此材质是否对深度缓冲区有任何影响。默认为true
|
|
27
|
-
* @param {number} args.pointCount 抛物线分段数量。仅调用setData方法起作用,默认值为50;
|
|
28
|
-
* @param {number} args.height 抛物线高度,仅调用setData方法起作用,默认值为10
|
|
29
|
-
* @param {boolean} args.isCurve 是否开启抛物线模式。仅调用setData方法起作用,默认值为false
|
|
30
|
-
* @param {boolean} args.isCircle 是否显示端点处的底座,默认为圆形底座,默认值为false
|
|
31
|
-
* @param {object} args.circleStart 起点自定义底座Mesh,仅isCircle为true时生效。默认值为new Mesh(circleGeometry, material)
|
|
32
|
-
* @param {object} args.circleEnd 终点自定义底座Mesh,仅isCircle为true时生效。默认值为circleStart的clone
|
|
33
|
-
* @param {boolean} args.flipX 贴图横向反转180,默认值为false
|
|
34
|
-
*
|
|
35
|
-
*/
|
|
36
|
-
constructor(args?: {
|
|
37
|
-
color: any;
|
|
38
|
-
lineWidth: number;
|
|
39
|
-
sizeAttenuation: boolean;
|
|
40
|
-
dashArray: number;
|
|
41
|
-
dashRatio: number;
|
|
42
|
-
dashOffset: number;
|
|
43
|
-
hasBasicLine: boolean;
|
|
44
|
-
basicLineWidth: number;
|
|
45
|
-
basicLineColor: any;
|
|
46
|
-
basicLineOpacity: number;
|
|
47
|
-
basicLineTransparent: boolean;
|
|
48
|
-
basicLineDepthWrite: boolean;
|
|
49
|
-
basicLineSizeAttenuation: boolean;
|
|
50
|
-
map: string;
|
|
51
|
-
repeat: object;
|
|
52
|
-
opacity: number;
|
|
53
|
-
transparent: number;
|
|
54
|
-
speed: number;
|
|
55
|
-
depthTest: boolean;
|
|
56
|
-
depthWrite: boolean;
|
|
57
|
-
pointCount: number;
|
|
58
|
-
height: number;
|
|
59
|
-
isCurve: boolean;
|
|
60
|
-
isCircle: boolean;
|
|
61
|
-
circleStart: object;
|
|
62
|
-
circleEnd: object;
|
|
63
|
-
flipX: boolean;
|
|
64
|
-
});
|
|
65
|
-
size: number;
|
|
66
|
-
height: number;
|
|
67
|
-
color: Object;
|
|
68
|
-
sizeAttenuation: boolean;
|
|
69
|
-
pointCount: number;
|
|
70
|
-
lineWidth: number;
|
|
71
|
-
group: any;
|
|
72
|
-
lineMesh: any;
|
|
73
|
-
line: any;
|
|
74
|
-
hasBasicLine: boolean;
|
|
75
|
-
basicLineWidth: number;
|
|
76
|
-
basicLineColor: Object;
|
|
77
|
-
basicLineOpacity: number;
|
|
78
|
-
basicLineTransparent: boolean;
|
|
79
|
-
basicLineDepthWrite: boolean;
|
|
80
|
-
basicLineSizeAttenuation: boolean;
|
|
81
|
-
map: string | null;
|
|
82
|
-
repeat: Object;
|
|
83
|
-
opacity: number;
|
|
84
|
-
transparent: number | boolean;
|
|
85
|
-
dashArray: number;
|
|
86
|
-
dashRatio: number;
|
|
87
|
-
dashOffset: number;
|
|
88
|
-
isBasicLineBloom: unknown;
|
|
89
|
-
speed: number;
|
|
90
|
-
depthTest: boolean;
|
|
91
|
-
depthWrite: boolean;
|
|
92
|
-
receiveRaycast: any;
|
|
93
|
-
isCurve: boolean;
|
|
94
|
-
boundingBox: any;
|
|
95
|
-
isCircle: boolean;
|
|
96
|
-
circleStart: object;
|
|
97
|
-
circleEnd: object;
|
|
98
|
-
startPoint: Object | null;
|
|
99
|
-
endPoint: Object | null;
|
|
100
|
-
flipX: boolean;
|
|
101
|
-
/** @private */
|
|
102
|
-
private afterAddToEngine;
|
|
103
|
-
engine: any;
|
|
104
|
-
/**
|
|
105
|
-
*
|
|
106
|
-
* 两个点绘制飞线,会进行插值
|
|
107
|
-
*
|
|
108
|
-
* @param {Object} startPoint 开始点
|
|
109
|
-
* @param {Object} endPoint 结束点
|
|
110
|
-
*/
|
|
111
|
-
setData(startPoint: Object, endPoint: Object): void;
|
|
112
|
-
/**
|
|
113
|
-
*
|
|
114
|
-
* 根据点数组绘制飞线,不进行插值
|
|
115
|
-
* @param {array} vertices 点数组[[x,y],[x,y],[x,y],[x,y],[x,y]]或者[{x:,y:},{x:,y:},{x:,y:}]
|
|
116
|
-
*/
|
|
117
|
-
setVertices(vertices: array): false | undefined;
|
|
118
|
-
/**
|
|
119
|
-
*
|
|
120
|
-
* 点数组生成飞线
|
|
121
|
-
* @param {array} vertices 点数组[[x,y],[x,y],[x,y],[x,y],[x,y]]或者[{x:,y:},{x:,y:},{x:,y:}]
|
|
122
|
-
*/
|
|
123
|
-
createMeshLine(points: any): void;
|
|
124
|
-
/**
|
|
125
|
-
*
|
|
126
|
-
* 更新位置
|
|
127
|
-
*
|
|
128
|
-
*/
|
|
129
|
-
/**
|
|
130
|
-
*
|
|
131
|
-
* 内存释放
|
|
132
|
-
*
|
|
133
|
-
*/
|
|
134
|
-
dispose(): void;
|
|
135
|
-
/**
|
|
136
|
-
* 射线拾取
|
|
137
|
-
*/
|
|
138
|
-
raycast(raycaster: any, intersects: any): void;
|
|
139
|
-
meshRaycast(raycaster: any, intersects: any): void;
|
|
140
|
-
}
|