@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.
Files changed (267) hide show
  1. package/dist/assets/images/fallbackIcon.png +0 -0
  2. package/dist/assets/images/marker_red.png +0 -0
  3. package/dist/assets/models/effect/diamond.glb +0 -0
  4. package/dist/assets/textures/imposter/tree3/base.webp +0 -0
  5. package/dist/assets/textures/imposter/tree3/norm_depth.webp +0 -0
  6. package/dist/assets/textures/imposter/tree3/orm.webp +0 -0
  7. package/dist/devtool/panel.js +10 -5
  8. package/dist/mapvthree.module.js +41964 -35175
  9. package/dist/mapvthree.umd.js +7 -8
  10. package/dist/types/Internal.d.ts +0 -2
  11. package/dist/types/index.d.ts +12 -8
  12. package/dist/types/index.open.d.ts +18 -1
  13. package/dist/types/threejs/controls/MapControl3D.d.ts +1 -1
  14. package/dist/types/threejs/geometries/line/PolylineGeometry.d.ts +1 -0
  15. package/dist/types/threejs/geometries/sphere/PillarGeometry.d.ts +4 -0
  16. package/dist/types/threejs/materials/effects/ScanMaterial.d.ts +69 -58
  17. package/dist/types/threejs/materials/effects/TwinkleMaterial.d.ts +56 -43
  18. package/dist/types/threejs/materials/effects/WindowMaterial.d.ts +37 -26
  19. package/dist/types/threejs/materials/heatmap/Heatmap3D.d.ts +2 -0
  20. package/dist/types/threejs/materials/natural/WaterMaterial.d.ts +152 -18
  21. package/dist/types/threejs/materials/point/Ballon.d.ts +1 -0
  22. package/dist/types/threejs/materials/point/Effect.d.ts +13 -0
  23. package/dist/types/threejs/materials/point/Icon.d.ts +4 -0
  24. package/dist/types/threejs/materials/polygon/PolygonMaterial.d.ts +2 -0
  25. package/dist/types/threejs/materials/sphere/GridMaterial.d.ts +6 -1
  26. package/dist/types/threejs/materials/sphere/PillarMaterial.d.ts +5 -1
  27. package/dist/types/threejs/objects/FadeData.d.ts +1 -0
  28. package/dist/types/threejs/objects/GeoInstancedMesh.d.ts +1 -2
  29. package/dist/types/threejs/objects/GeoObject.d.ts +24 -0
  30. package/dist/types/threejs/objects/ThreeObject.d.ts +4 -2
  31. package/dist/types/threejs/objects/element/OctahedralImpostor.d.ts +15 -21
  32. package/dist/types/threejs/objects/heatmap/Heatmap3D.d.ts +43 -23
  33. package/dist/types/threejs/objects/instance/InstancedModel.d.ts +2 -0
  34. package/dist/types/threejs/objects/line/FatLine.d.ts +3 -245
  35. package/dist/types/threejs/objects/line/FatLineInternal.d.ts +246 -0
  36. package/dist/types/threejs/objects/line/Polyline.d.ts +53 -76
  37. package/dist/types/threejs/objects/line/PolylineInternal.d.ts +85 -0
  38. package/dist/types/threejs/objects/line/SimpleLine.d.ts +1 -1
  39. package/dist/types/threejs/objects/line/TrafficLink.d.ts +2 -2
  40. package/dist/types/threejs/objects/natural/BillboardTree.d.ts +1 -0
  41. package/dist/types/threejs/objects/point/ActiveMesh.d.ts +0 -1
  42. package/dist/types/threejs/objects/point/BallonPoint.d.ts +54 -7
  43. package/dist/types/threejs/objects/point/BubblePoint.d.ts +8 -1
  44. package/dist/types/threejs/objects/point/Circle.d.ts +0 -9
  45. package/dist/types/threejs/objects/point/DOMPoint.d.ts +4 -4
  46. package/dist/types/threejs/objects/point/EffectModelPoint.d.ts +55 -27
  47. package/dist/types/threejs/objects/point/EffectPoint.d.ts +70 -0
  48. package/dist/types/threejs/objects/point/GeoInstancedPointMesh.d.ts +10 -0
  49. package/dist/types/threejs/objects/point/Icon.d.ts +1 -1
  50. package/dist/types/threejs/objects/point/Label.d.ts +142 -30
  51. package/dist/types/threejs/objects/point/ShapePoint.d.ts +0 -1
  52. package/dist/types/threejs/objects/point/Spark.d.ts +37 -38
  53. package/dist/types/threejs/objects/point/label/GeometryBufferBuilder.d.ts +41 -0
  54. package/dist/types/threejs/objects/point/label/TextBoxCalculator.d.ts +38 -0
  55. package/dist/types/threejs/objects/polygon/Polygon.d.ts +200 -66
  56. package/dist/types/threejs/objects/sphere/Cone.d.ts +3 -63
  57. package/dist/types/threejs/objects/sphere/Grid.d.ts +3 -2
  58. package/dist/types/threejs/objects/sphere/Pillar.d.ts +49 -7
  59. package/dist/types/threejs/objects/text/utils.d.ts +8 -1
  60. package/dist/types/threejs/particles/Fireflies.d.ts +57 -13
  61. package/dist/types/threejs/utils/sprite.d.ts +1 -1
  62. package/dist/types/threemap/3dtiles/HDMap/v2/instanceConfig.d.ts +166 -0
  63. package/dist/types/threemap/3dtiles/HDMap3DTiles.d.ts +2 -0
  64. package/dist/types/threemap/3dtiles/cesium/Cesium3DTileset.d.ts +4 -2
  65. package/dist/types/threemap/3dtiles/cesium/content/Mesh3DTileContent.d.ts +1 -0
  66. package/dist/types/threemap/3dtiles/elements/TileInstancedElementManager.d.ts +41 -9
  67. package/dist/types/threemap/controls/editors/EditorManager.d.ts +51 -145
  68. package/dist/types/threemap/controls/editors/PolygonEditor.d.ts +14 -0
  69. package/dist/types/threemap/controls/editors/SplineEditor.d.ts +6 -0
  70. package/dist/types/threemap/dataSource/DataItem.d.ts +3 -1
  71. package/dist/types/threemap/dataSource/DataSource.d.ts +29 -0
  72. package/dist/types/threemap/engine/Map.d.ts +2 -0
  73. package/dist/types/threemap/engine/rendering/Collision.d.ts +15 -0
  74. package/dist/types/threemap/engine/rendering/Label.d.ts +6 -1
  75. package/dist/types/threemap/engine/rendering/MicroTaskScheduler.d.ts +4 -0
  76. package/dist/types/threemap/mapView/baidu/TafficDataLoader.d.ts +13 -0
  77. package/dist/types/threemap/mapView/constants.d.ts +54 -0
  78. package/dist/types/threemap/mapView/geo/MapTile.d.ts +3 -0
  79. package/dist/types/threemap/mapView/geo/TileQuadtree.d.ts +2 -1
  80. package/dist/types/threemap/mapView/grid/BaiduVectorOnlineGrid.d.ts +10 -0
  81. package/dist/types/threemap/mapView/grid/Grid.d.ts +14 -0
  82. package/dist/types/threemap/mapView/map/MapView.d.ts +0 -10
  83. package/dist/types/threemap/mapView/mapbox/executer/fill.d.ts +2 -0
  84. package/dist/types/threemap/mapView/surface/MapSurface.d.ts +7 -4
  85. package/dist/types/threemap/mapView/surface/Placeholder.d.ts +1 -1
  86. package/dist/types/threemap/mapView/surface/VectorSurface.d.ts +1 -0
  87. package/dist/types/threemap/mapView/surface/strategy/FastTileLoaderStrategy.d.ts +3 -3
  88. package/dist/types/threemap/mapView/surface/strategy/HierarchicalTileLoaderStrategy.d.ts +0 -1
  89. package/dist/types/threemap/mapView/tileManager/RasterSurfaceTileManager.d.ts +4 -4
  90. package/dist/types/threemap/mapView/tileManager/SurfaceTileManager.d.ts +4 -1
  91. package/dist/types/threemap/mapView/tileManager/VectorSurfaceTileManager.d.ts +4 -5
  92. package/dist/types/threemap/mapView/tileProvider/AsyncCesiumTerrainDataLoader.d.ts +1 -1
  93. package/dist/types/threemap/mapView/tileProvider/AsyncDataTileLoader.d.ts +1 -0
  94. package/dist/types/threemap/mapView/tileProvider/BaseImageryTileProvider.d.ts +103 -0
  95. package/dist/types/threemap/mapView/tileProvider/TileProvider.d.ts +25 -9
  96. package/dist/types/threemap/mapView/tileProvider/imagery/Baidu09ImageryTileProvider.d.ts +71 -7
  97. package/dist/types/threemap/mapView/tileProvider/imagery/BingImageryTileProvider.d.ts +22 -3
  98. package/dist/types/threemap/mapView/tileProvider/imagery/GridCoordTileProvider.d.ts +2 -0
  99. package/dist/types/threemap/mapView/tileProvider/imagery/ImageryTileProvider.d.ts +56 -27
  100. package/dist/types/threemap/mapView/tileProvider/imagery/OSMImageryTileProvider.d.ts +0 -10
  101. package/dist/types/threemap/mapView/tileProvider/imagery/StadiaImageryTileProvider.d.ts +75 -0
  102. package/dist/types/threemap/mapView/tileProvider/imagery/WMSImageryTileProvider.d.ts +106 -13
  103. package/dist/types/threemap/mapView/tileProvider/imagery/WMTSImageryTileProvider.d.ts +114 -15
  104. package/dist/types/threemap/mapView/tileProvider/imagery/XYZImageryTileProvider.d.ts +53 -6
  105. package/dist/types/threemap/mapView/tileProvider/renderers/ImageTileLabelRenderer.d.ts +4 -0
  106. package/dist/types/threemap/mapView/{geo → tileProvider/renderers}/ImageryReprojector.d.ts +1 -1
  107. package/dist/types/threemap/mapView/tileProvider/renderers/VectorTileImageRenderer.d.ts +4 -0
  108. package/dist/types/threemap/mapView/tileProvider/vector/BaiduTrafficTileProvider.d.ts +165 -21
  109. package/dist/types/threemap/mapView/tileProvider/vector/BaiduVectorTileProvider.d.ts +3 -1
  110. package/dist/types/threemap/mapView/tileProvider/vector/GeoJSONVectorTileProvider.d.ts +1 -1
  111. package/dist/types/threemap/mapView/tileProvider/vector/HDTrafficTileProvider.d.ts +159 -24
  112. package/dist/types/threemap/mapView/tileProvider/vector/MapboxVectorTileProvider.d.ts +264 -40
  113. package/dist/types/threemap/mapView/tileProvider/vector/PlaneVectorTileProvider.d.ts +1 -1
  114. package/dist/types/threemap/mapView/tileProvider/vector/VectorTileProvider.d.ts +6 -4
  115. package/dist/types/threemap/mapView/utils/projectVertices.d.ts +1 -1
  116. package/dist/types/threemap/model/AnimationModel.d.ts +86 -6
  117. package/dist/types/threemap/natural/DynamicWeather.d.ts +92 -0
  118. package/dist/types/threemap/natural/EmptySky.d.ts +1 -0
  119. package/dist/types/threemap/natural/StaticSky.d.ts +32 -5
  120. package/dist/types/threemap/projections/BaiduMercatorProjection.d.ts +14 -0
  121. package/dist/types/threemap/projections/CoordTransformer.d.ts +13 -0
  122. package/dist/types/threemap/projections/GenericDefinedProjection.d.ts +10 -0
  123. package/dist/types/threemap/projections/Projection.d.ts +24 -7
  124. package/dist/types/threemap/projections/ScreenPixelProjection.d.ts +26 -7
  125. package/dist/types/threemap/projections/WebMercatorProjection.d.ts +16 -0
  126. package/dist/types/threemap/projections/extendCoordinate.d.ts +2 -0
  127. package/dist/types/threemap/projections/projections.d.ts +11 -0
  128. package/dist/types/util/LRUCacheNew.d.ts +1 -0
  129. package/dist/types/util/coordProjection.d.ts +0 -2
  130. package/dist/types/util/geojsonUtils.d.ts +1 -0
  131. package/dist/types/util/gradientMap.d.ts +25 -0
  132. package/dist/types/util/graphics/bezier.d.ts +8 -1
  133. package/package.json +2 -1
  134. package/dist/assets/models/hdmap/SM_Big-Pier_2.glb +0 -0
  135. package/dist/assets/models/hdmap/SM_Cone_Barrel.glb +0 -0
  136. package/dist/assets/models/hdmap/SM_Fence1-0.glb +0 -0
  137. package/dist/assets/models/hdmap/SM_Fence1-8.glb +0 -0
  138. package/dist/assets/models/hdmap/SM_Fence2-5.glb +0 -0
  139. package/dist/assets/models/hdmap/SM_Fence7-0.glb +0 -0
  140. package/dist/assets/models/hdmap/SM_Fence7-2.glb +0 -0
  141. package/dist/assets/models/hdmap/SM_Fence7-3.glb +0 -0
  142. package/dist/assets/models/hdmap/SM_Road_facility2.glb +0 -0
  143. package/dist/assets/models/hdmap/SM_Signboard_8.glb +0 -0
  144. package/dist/assets/models/hdmap/SM_fence1-5.glb +0 -0
  145. package/dist/assets/models/hdmap/tunnel_light.glb +0 -0
  146. package/dist/types/addons/highwaymap/Viewer.d.ts +0 -164
  147. package/dist/types/addons/highwaymap/index.d.ts +0 -3
  148. package/dist/types/addons/highwaymap/map/Map.d.ts +0 -59
  149. package/dist/types/addons/highwaymap/map/MapControl.d.ts +0 -57
  150. package/dist/types/addons/highwaymap/service/index.d.ts +0 -3
  151. package/dist/types/addons/highwaymap/utils/eventTypes.d.ts +0 -15
  152. package/dist/types/addons/index.d.ts +0 -4
  153. package/dist/types/addons/traffic/config/assets.d.ts +0 -78
  154. package/dist/types/addons/traffic/config/element.d.ts +0 -23
  155. package/dist/types/addons/traffic/handler/AbstractLoadPolicy.d.ts +0 -13
  156. package/dist/types/addons/traffic/handler/DefaultLoadPolicy.d.ts +0 -5
  157. package/dist/types/addons/traffic/handler/ModelCreator.d.ts +0 -69
  158. package/dist/types/addons/traffic/handler/ModelHandler.d.ts +0 -131
  159. package/dist/types/addons/traffic/handler/assets.d.ts +0 -365
  160. package/dist/types/addons/traffic/handler/ceilManager.d.ts +0 -16
  161. package/dist/types/addons/traffic/handler/tools.d.ts +0 -17
  162. package/dist/types/addons/traffic/handler/trafficLight.d.ts +0 -253
  163. package/dist/types/addons/traffic/index.d.ts +0 -16
  164. package/dist/types/addons/traffic/objects/BasicLabel.d.ts +0 -226
  165. package/dist/types/addons/traffic/objects/Diamond.d.ts +0 -61
  166. package/dist/types/addons/traffic/objects/DynamicModel.d.ts +0 -129
  167. package/dist/types/addons/traffic/objects/InstancedModel.d.ts +0 -91
  168. package/dist/types/addons/traffic/objects/LineMesh.d.ts +0 -6
  169. package/dist/types/addons/traffic/objects/Model.d.ts +0 -169
  170. package/dist/types/addons/traffic/objects/TrafficGroup.d.ts +0 -16
  171. package/dist/types/addons/traffic/objects/TrafficInstancedObject.d.ts +0 -7
  172. package/dist/types/addons/traffic/objects/TrafficObject.d.ts +0 -14
  173. package/dist/types/addons/traffic/objects/curveLineMesh.d.ts +0 -29
  174. package/dist/types/addons/traffic/objects/shaders/Line2dShader.d.ts +0 -1
  175. package/dist/types/addons/traffic/objects/shaders/RingCircle.d.ts +0 -19
  176. package/dist/types/addons/traffic/objects/shaders/WaveCircle2.d.ts +0 -13
  177. package/dist/types/addons/traffic/objects/shaders/WaveCircle4.d.ts +0 -17
  178. package/dist/types/addons/traffic/objects/shaders/WaveCircle5.d.ts +0 -17
  179. package/dist/types/addons/traffic/service/assets.d.ts +0 -50
  180. package/dist/types/addons/traffic/utils/BasicLabel.d.ts +0 -3
  181. package/dist/types/addons/traffic/utils/MapMath.d.ts +0 -78
  182. package/dist/types/addons/traffic/utils/assets.d.ts +0 -108
  183. package/dist/types/addons/traffic/utils/freeTag.d.ts +0 -71
  184. package/dist/types/addons/traffic/utils/hooks.d.ts +0 -1
  185. package/dist/types/addons/traffic/utils/index.d.ts +0 -26
  186. package/dist/types/addons/traffic/utils/trafficLight.d.ts +0 -73
  187. package/dist/types/addons/traffic/utils/ws.d.ts +0 -23
  188. package/dist/types/addons/visual/core/LRU.d.ts +0 -27
  189. package/dist/types/addons/visual/core/defines.d.ts +0 -55
  190. package/dist/types/addons/visual/core/global.d.ts +0 -29
  191. package/dist/types/addons/visual/extension/AnimatePolygon.d.ts +0 -108
  192. package/dist/types/addons/visual/extension/DoubleLine.d.ts +0 -137
  193. package/dist/types/addons/visual/extension/FlyLineLayer.d.ts +0 -140
  194. package/dist/types/addons/visual/extension/MeshLine.d.ts +0 -61
  195. package/dist/types/addons/visual/extension/TubeLine.d.ts +0 -93
  196. package/dist/types/addons/visual/extension/Water/Reflector.d.ts +0 -26
  197. package/dist/types/addons/visual/extension/Water/Refractor.d.ts +0 -26
  198. package/dist/types/addons/visual/extension/Water/Water.d.ts +0 -60
  199. package/dist/types/addons/visual/extension/Water/WaterFive.d.ts +0 -20
  200. package/dist/types/addons/visual/extension/Water/WaterFour.d.ts +0 -17
  201. package/dist/types/addons/visual/extension/Water/WaterOne.d.ts +0 -10
  202. package/dist/types/addons/visual/extension/Water/WaterSix.d.ts +0 -15
  203. package/dist/types/addons/visual/extension/Water/WaterThree.d.ts +0 -14
  204. package/dist/types/addons/visual/extension/Water/WaterTwo.d.ts +0 -14
  205. package/dist/types/addons/visual/extension/specialEffect/LateralScan.d.ts +0 -32
  206. package/dist/types/addons/visual/extension/specialEffect/LineGradient.d.ts +0 -28
  207. package/dist/types/addons/visual/extension/specialEffect/TwinkleEffect.d.ts +0 -30
  208. package/dist/types/addons/visual/index.d.ts +0 -17
  209. package/dist/types/addons/visual/map/Fence.d.ts +0 -121
  210. package/dist/types/addons/visual/map/Polyline.d.ts +0 -178
  211. package/dist/types/addons/visual/mapTile/MapLayer.d.ts +0 -50
  212. package/dist/types/addons/visual/mapTile/MapLayerLoader.d.ts +0 -15
  213. package/dist/types/addons/visual/mapTile/MapLodLayer.d.ts +0 -15
  214. package/dist/types/addons/visual/mapTile/MapRequest.d.ts +0 -69
  215. package/dist/types/addons/visual/mapTile/MapTile.d.ts +0 -131
  216. package/dist/types/addons/visual/mapTile/MapTileLoader.d.ts +0 -26
  217. package/dist/types/addons/visual/mapTile/config.d.ts +0 -381
  218. package/dist/types/addons/visual/mapTile/workers/WorkerService.d.ts +0 -9
  219. package/dist/types/addons/visual/mapTile/workers/WorkerServiceManager.d.ts +0 -8
  220. package/dist/types/addons/visual/utils/AdaptedThree.d.ts +0 -22
  221. package/dist/types/addons/visual/utils/CombinePositions.d.ts +0 -23
  222. package/dist/types/addons/visual/utils/Extrude.d.ts +0 -92
  223. package/dist/types/addons/visual/utils/GenerateObject.d.ts +0 -32
  224. package/dist/types/addons/visual/utils/GeoJSONUtil.d.ts +0 -10
  225. package/dist/types/addons/visual/utils/MapMath.d.ts +0 -66
  226. package/dist/types/addons/visual/utils/MergeGeometries.d.ts +0 -13
  227. package/dist/types/addons/visual/utils/OrganizedGeometry.d.ts +0 -33
  228. package/dist/types/addons/visual/utils/OrganizedMaterial.d.ts +0 -5
  229. package/dist/types/addons/visual/utils/lines/Line2.d.ts +0 -7
  230. package/dist/types/addons/visual/utils/lines/LineDashShaderMaterial.d.ts +0 -4
  231. package/dist/types/addons/visual/utils/lines/LineGeometry.d.ts +0 -7
  232. package/dist/types/addons/visual/utils/lines/LineMaterial.d.ts +0 -4
  233. package/dist/types/addons/visual/utils/lines/LineSegments2.d.ts +0 -9
  234. package/dist/types/addons/visual/utils/lines/LineSegmentsGeometry.d.ts +0 -17
  235. package/dist/types/addons/visual/utils/util.d.ts +0 -269
  236. package/dist/types/threemap/mapView/BaiduVImageryMap.d.ts +0 -40
  237. package/dist/types/threemap/mapView/QuadMap.d.ts +0 -287
  238. package/dist/types/threemap/mapView/geo/TileManager.d.ts +0 -68
  239. package/dist/types/threemap/mapView/geo/globe.d.ts +0 -6
  240. package/dist/types/threemap/mapView/tileLoader/AsyncBinaryTileLoader.d.ts +0 -20
  241. package/dist/types/threemap/mapView/tileLoader/BaiduTrafficVectorTileLoader.d.ts +0 -13
  242. package/dist/types/threemap/mapView/tileLoader/BaiduVImageryTileLoader.d.ts +0 -59
  243. package/dist/types/threemap/mapView/tileLoader/BaiduVectorTileLoader.d.ts +0 -23
  244. package/dist/types/threemap/mapView/tileLoader/BinaryTileLoader.d.ts +0 -7
  245. package/dist/types/threemap/mapView/tileLoader/CesiumTerrainTileLoader.d.ts +0 -21
  246. package/dist/types/threemap/mapView/tileLoader/CompositionTileLoader.d.ts +0 -15
  247. package/dist/types/threemap/mapView/tileLoader/DebugTileLoader.d.ts +0 -4
  248. package/dist/types/threemap/mapView/tileLoader/HDTrafficTileLoader.d.ts +0 -16
  249. package/dist/types/threemap/mapView/tileLoader/ImageTileLoader.d.ts +0 -7
  250. package/dist/types/threemap/mapView/tileLoader/MapboxTerrainTileLoader.d.ts +0 -14
  251. package/dist/types/threemap/mapView/tileLoader/TileLoader.d.ts +0 -19
  252. package/dist/types/threemap/projections/EqualEarthProjection.d.ts +0 -11
  253. package/dist/types/threemap/projections/UTMProjection.d.ts +0 -21
  254. /package/dist/types/threemap/{mapView/tileLoader/worker/BaiduTrafficParser.worker.d.ts → 3dtiles/HDMap/v2/yaml_to_json.d.ts} +0 -0
  255. /package/dist/types/threemap/mapView/{tileLoader/worker → baidu}/binaryDecoder.d.ts +0 -0
  256. /package/dist/types/threemap/mapView/{terrainData → geo/terrainData}/QuantizedMeshTerrainData.d.ts +0 -0
  257. /package/dist/types/threemap/mapView/{terrainData → geo/terrainData}/TerrainMesh.d.ts +0 -0
  258. /package/dist/types/threemap/mapView/{materials → materialManager}/CustomMVTMaterialManager.d.ts +0 -0
  259. /package/dist/types/threemap/mapView/{materials → materialManager}/DarkMVTMaterialManager.d.ts +0 -0
  260. /package/dist/types/threemap/mapView/{materials → materialManager}/DefaultQuadMapMaterialManager.d.ts +0 -0
  261. /package/dist/types/threemap/mapView/{tileLoader/worker/BaiduVectorParser.worker.d.ts → tileProvider/worker/BaiduTrafficParser.worker.d.ts} +0 -0
  262. /package/dist/types/threemap/mapView/{tileLoader/worker/CesiumTerrainParser.worker.d.ts → tileProvider/worker/BaiduVectorParser.worker.d.ts} +0 -0
  263. /package/dist/types/threemap/mapView/{tileLoader/worker/GeoJSONVectorParser.worker.d.ts → tileProvider/worker/CesiumTerrainParser.worker.d.ts} +0 -0
  264. /package/dist/types/threemap/mapView/{tileLoader/worker/HDTrafficParser.worker.d.ts → tileProvider/worker/GeoJSONVectorParser.worker.d.ts} +0 -0
  265. /package/dist/types/threemap/mapView/{tileLoader/worker/LaCesiumTerrainParser.worker.d.ts → tileProvider/worker/HDTrafficParser.worker.d.ts} +0 -0
  266. /package/dist/types/threemap/mapView/{tileLoader → tileProvider}/worker/MVTParser.worker.d.ts +0 -0
  267. /package/dist/types/threemap/mapView/{tileLoader → tileProvider}/worker/MapboxTerrainParser.worker.d.ts +0 -0
@@ -1,253 +0,0 @@
1
- /**
2
- * 红绿灯图层
3
- * ```
4
- * import {trafficAddon} from '@baidu/mapv-three/addons';
5
- * const trafficLightLayer = engine.add(new trafficAddon.TrafficLightsLayer({
6
- * // serviceConfig: {
7
- * // signalPath: 'wss://ip:port/v2x/platform/ws/lampsselect',
8
- * // lampsPath: 'https://ip:port/v2x/platform/lamp/crossinfo/gis',
9
- * // },
10
- * // autoConnect: true,
11
- * // sideMap: {},
12
- * // key: 'crossid',
13
- * // deviceMap: {}
14
- * // defaultMessage: [roadId],
15
- * });
16
- * // 单独控制某个灯时使用
17
- * trafficLightLayer.updateTrafficLightMaterial([10, 3017, 200002], uuid)
18
- * ```
19
- */
20
- export class TrafficLightsLayer {
21
- /**
22
- * @private
23
- * 更新交通灯材质
24
- * @param {*} lightList
25
- * @param {*} name
26
- * @param {*} mapKey
27
- */
28
- private static _updateTrafficLightMaterial;
29
- /**
30
- * 交通信号灯层构造函数
31
- *
32
- * @param arg 参数对象,可选
33
- * @param arg.renderOptions 渲染选项 可选
34
- * @param arg.autoConnect 是否自动连接,可选
35
- * @param arg.defaultMessage 默认消息,可选
36
- * @param arg.sideMap 路口映射,可选
37
- * @param arg.serviceConfig 红绿灯服务配置,可选
38
- * @param arg.delay 红绿灯渲染延迟,可选
39
- * @param arg.key 静态红绿灯信息获取时的键,可选
40
- * @param arg.staticLightDataHandle 静态灯数据处理程序,可选
41
- * @param arg.deviceMap 设备映射,可选(红绿灯状态上设备时需添加)
42
- * @returns 无返回值
43
- */
44
- constructor(arg?: {});
45
- /**
46
- * @private
47
- * 已链接红绿灯动态数据的路口Id
48
- */
49
- private hasSignalRoadIds;
50
- /**
51
- * 是否默认开启自动连接信号灯服务
52
- * @private
53
- * @default true
54
- */
55
- private autoConnect;
56
- /**
57
- * 是否跟随缩放等级自动隐藏
58
- * @private
59
- */
60
- private _autoHide;
61
- /**
62
- * 开启autoHide后小于这个层级会自动隐藏
63
- * @private
64
- */
65
- private _maxShowLevel;
66
- /**
67
- * 红绿灯显示状态
68
- * @private
69
- */
70
- private _showTrafficLight;
71
- /** @private */ private lampsMapBuffer;
72
- /** @private */ private lampsMap;
73
- /** @private */ private lampsResetMap;
74
- /** @private */ private trafficLightZ;
75
- /** @private */ private shineTimeoutMap;
76
- /** @private */ private defaultMessage;
77
- /** @private */ private engine;
78
- /** @private */ private delay;
79
- /** @private */ private fetchLightKey;
80
- /** @private */ private serviceConfig;
81
- /** @private */ private sideMap;
82
- /** @private */ private staticLightDataHandle;
83
- /** @private */ private trafficLabelList;
84
- /** @private */ private websocketMap;
85
- /**
86
- * 已渲染红绿灯的路口Id
87
- */
88
- hasLamps: any[];
89
- name: string;
90
- replayStatus: boolean;
91
- deviceMap: any;
92
- handleConnectParams: any;
93
- _lastMessageStr: string;
94
- /** @private */
95
- private afterAddToEngine;
96
- /** @private */
97
- private onBeforeScenePrepareRender;
98
- /**
99
- * 渲染默认红绿灯标识牌
100
- * LampStaticInfo {
101
- lampIds: Array<{
102
- lampId: string;
103
- phaseId: number;
104
- }>;
105
- poleLat: number;
106
- poleLon: number;
107
- roadDirection: number;
108
- }
109
- * @param {LampStaticInfo[]} lamps 红绿灯静态信息
110
- * @param {Object} params 红绿灯渲染配置
111
- * @param {number} params.z 红绿灯高度
112
- * @param {number} params.scaleNum 红绿灯渲染放大倍数 默认15
113
- * @param {number} roadId 红绿灯路口唯一ID
114
- * @returns
115
- */
116
- setDefaultLightGroup(lamps: LampStaticInfo[], params: {
117
- z: number;
118
- scaleNum: number;
119
- } | undefined, roadId: number): void;
120
- /**
121
- * 渲染动态红绿灯数据
122
- * LampInfo {
123
- countDown: number;
124
- lampId: string;
125
- lampStatus: string;
126
- nextCountDown: number;
127
- nextLampStatus: string;
128
- phaseId: string;
129
- roadDirection: string;
130
- roadFlowDirection: string;
131
- }
132
- * LampGroupInfo {
133
- crossId: string;
134
- lampRealInfos: Array<LampInfo>;
135
- signalMachineStamp: number;
136
- }
137
- * @param {LampGroupInfo} signalInfo
138
- * @param {*} option
139
- * @returns
140
- */
141
- renderLamps(signalInfo: LampGroupInfo, option?: any): false | undefined;
142
- /**
143
- * 更新交通灯材质
144
- * @param {*} lightList
145
- * 每个灯头 遵循如下规则
146
- 纯色灯态 XX (XX为灯态 10、20、30、40分别代表红黄绿灰)
147
- 数字灯态 XXYY (YY为数字)
148
- 箭头灯态 XX00ZZ (ZZ为箭头类型)
149
-
150
- 箭头类型ZZ 枚举如下
151
- 掉头 01
152
- 左转 02
153
- 左转待行 03
154
- 直行 04
155
- 直行待行 05
156
- 右转 06
157
- 掉头待行 07
158
- 禁行 11
159
- 可通行 12
160
-
161
- 例子:
162
- 四个灯头 第三个为红色圆灯 其他灰色 [40, 40, 10, 40]
163
- 四个灯头 第一个为左转红色 第三个为红色圆灯 其他灰色 [100002, 40, 10, 40]
164
- * @param {*} name 设备的uuid或name
165
- */
166
- updateTrafficLightMaterial(lightList: any, name: any, mapKey?: string): void;
167
- /**
168
- * 重置一个路口的红绿灯
169
- * @param crossId
170
- */
171
- resetTrafficLightGroup(crossId: any): void;
172
- /** @private */
173
- private sendMixParams;
174
- /** @private */
175
- private addEvent;
176
- /** @private */
177
- private connectSignalWs;
178
- /** @private */
179
- private connectSignal;
180
- /** @private */
181
- private connectLampReplay;
182
- /**
183
- * @private
184
- * 处理信号灯数据
185
- * @param data 信号灯数据的字符串(JSON.stringify后)
186
- * @param option 信号灯配置
187
- * @returns 处理后信号灯数数据 转化为数组后可供updateTrafficLightGroup使用
188
- */
189
- private formatLampsData;
190
- /**
191
- * @private
192
- * 获取红绿灯静态数据并渲染
193
- * @param roadId
194
- * @param params
195
- * @returns
196
- */
197
- private fetchLights;
198
- /**
199
- * 根据设备ID和灯信息渲染交通灯模型
200
- * @param {string} deviceId 设备ID
201
- * @param {object} lightInfo 灯信息
202
- * @param {string} lightInfo.color 灯顔色
203
- * @param {string} lightInfo.signalLightDirection 灯方向
204
- * @param {number} lightInfo.number 灯倒计时数字
205
- */
206
- renderTrafficLightModel(deviceId: string, lightInfo: {
207
- color: string;
208
- signalLightDirection: string;
209
- number: number;
210
- }): void;
211
- /**
212
- * @private
213
- * 更新一个路口的红绿灯
214
- * @param trafficLights 红绿灯数据
215
- * @param crossId 路口id
216
- * @returns
217
- */
218
- private updateTrafficLightGroup;
219
- /**
220
- * @private
221
- * 释放单红绿灯
222
- * @param crossId
223
- * @returns
224
- */
225
- private removeLightsGroup;
226
- /**
227
- * 更新红绿灯样式
228
- * @param params 配置
229
- * @param backStyle 背景样式
230
- * @param numStyle 数字样式
231
- * @param iconStyle 标签样式
232
- */
233
- updateLampStyle(params: any, backStyle: any, numStyle: any, iconStyle: any): void;
234
- /**
235
- * 灯闪烁
236
- * @param params
237
- */
238
- shineLamp(params: any): void;
239
- /**
240
- * 展示感应式控制信息
241
- * @param info 控制信息
242
- * @param color 颜色
243
- * @param option 配置
244
- */
245
- showLampControlInfo(info: any, color: string | undefined, option: any): void;
246
- dispose(): void;
247
- /**
248
- * @private
249
- */
250
- private updateLightVisible;
251
- set visible(visible: boolean);
252
- get visible(): boolean;
253
- }
@@ -1,16 +0,0 @@
1
- import { Diamond } from './objects/Diamond';
2
- import { BasicLabel } from './objects/BasicLabel';
3
- import { AssetsScene } from './handler/assets';
4
- import { AbstractLoadPolicy } from './handler/AbstractLoadPolicy';
5
- import { ModelHandler } from './handler/ModelHandler';
6
- import { ModelCreator } from './handler/ModelCreator';
7
- import { DynamicModel } from './objects/DynamicModel';
8
- import { Model } from './objects/Model';
9
- import { TrafficLightsLayer } from './handler/trafficLight';
10
- import { CeilManager } from './handler/ceilManager';
11
- import * as MapUtils from './utils/MapMath';
12
- import createRingCircle from './objects/shaders/RingCircle';
13
- import createWaveCircle2 from './objects/shaders/WaveCircle2';
14
- import createWaveCircle4 from './objects/shaders/WaveCircle4';
15
- import createWaveCircle5 from './objects/shaders/WaveCircle5';
16
- export { Diamond, BasicLabel, AssetsScene, AbstractLoadPolicy, ModelHandler, ModelCreator, DynamicModel, Model, TrafficLightsLayer, CeilManager, MapUtils, createRingCircle, createWaveCircle2, createWaveCircle4, createWaveCircle5, setScreenBoardType };
@@ -1,226 +0,0 @@
1
- /**
2
- * 标签
3
- * ```
4
- * const label = new BasicLabel({
5
- * scaleNum: 2,
6
- * sizeAttenuation: true,
7
- * center: { x: 0, y: 0 },
8
- * // 画布样式
9
- * style: {
10
- * // 宽
11
- * width: 200,
12
- * // 高
13
- * height: 100,
14
- * // 背景图
15
- * // backgroundImage: 'https://mapdata.bj.bcebos.com/images/guangzhou/q-robocop-info-mini@3x.png',
16
- * // 上内边距
17
- * paddingTop: 42,
18
- * // 左内边距
19
- * paddingLeft: 42,
20
- * // 背景颜色
21
- * backgroundColor: '#333',
22
- * // 边框颜色
23
- * borderColor: '#fff',
24
- * // 边框宽度
25
- * borderWidth: 2
26
- * },
27
- * content: [
28
- * // 内容配置
29
- * {
30
- * // 宽
31
- * width: 30,
32
- * // 高
33
- * height: 30,
34
- * // 背景色
35
- * backgroundColor: 'green',
36
- * // 文字列表
37
- * textList: [
38
- * {
39
- * text: '测试',
40
- * fontSize: 12,
41
- * color: '#E2EBFA',
42
- * position: [8, 3],
43
- * textAlign: 'left',
44
- * fontFamily: 'FZLTZHK--GBK1-0'
45
- * },
46
- * {
47
- * text: '123',
48
- * fontSize: 12,
49
- * color: '#E2EBFA',
50
- * position: [8, 20],
51
- * textAlign: 'left',
52
- * fontFamily: 'HyperspaceRace-Bold'
53
- * }
54
- * ]
55
- * },
56
- * {
57
- * // 宽
58
- * width: 30,
59
- * // 高
60
- * height: 30,
61
- * // 背景图
62
- * backgroundImage: 'https://mapdata.bj.bcebos.com/images/yizhuang/cross-circle.png',
63
- * // 文字列表
64
- * textList: [
65
- * {
66
- * // iconfont编号
67
- * icon: '&#xe64c;',
68
- * fontSize: 12,
69
- * color: '#E2EBFA',
70
- * position: [8, 3],
71
- * textAlign: 'left',
72
- * // iconfont字体
73
- * fontFamily: 'NewIconFont'
74
- * }
75
- * ]
76
- * },
77
- * ]
78
- * });
79
- * ```
80
- */
81
- export class BasicLabel extends TrafficObject {
82
- /**
83
- * @private
84
- * @param {*} style
85
- * @param {*} canvas
86
- * @returns
87
- */
88
- private static initBackGround;
89
- /**
90
- * @private
91
- * 绘制内容
92
- * @param {*} style
93
- * @param {*} contextList
94
- * @param {*} canvas
95
- * @param {*} factor
96
- * @returns
97
- */
98
- private static renderContent;
99
- /**
100
- * @ignore
101
- * @param width
102
- * @param height
103
- * @param texture
104
- * @returns
105
- */
106
- static getRectangle(width: any, height: any, texture: any, config?: {}): any;
107
- /**
108
- * @ignore
109
- * @param url
110
- * @param resourcePath
111
- * @returns
112
- */
113
- static loadImg(url: any, resourcePath?: string): Promise<any>;
114
- /**
115
- * @ignore
116
- */
117
- static getTextWidth(canvas: any, textInfo: any): any;
118
- /**
119
- * @ignore
120
- * @param ctx
121
- * @param content
122
- * @param factor
123
- * @param position
124
- * @returns
125
- */
126
- static drawText(ctx: any, content: any, factor: any, position: any, contentSize: any): {
127
- height: number;
128
- width: number;
129
- } | undefined;
130
- /**
131
- * @ignore
132
- * @param position
133
- * @param size
134
- * @returns
135
- */
136
- static addActiveArea(position: any, size: any): any;
137
- /**
138
- *
139
- * 利用canvas绘制矩形框
140
- * @param {Object} ctx canvasContainer
141
- * @param {number} x 左侧开始位置
142
- * @param {number} y 上侧开始位置
143
- * @param {number} w 宽度
144
- * @param {number} h 高度
145
- * @param {number} r 圆角半径
146
- *
147
- */
148
- static roundRect(ctx: Object, x: number, y: number, w: number, h: number, r: number): void;
149
- /**
150
- * @ignore
151
- * @description: 基于requestAnimationFrame的setInterval
152
- * @param {*} cb 执行函数
153
- * @param {*} range 执行间隔
154
- * @return {*} requestAnimationFrame
155
- */
156
- static setInterval(cb: any, range: any, setCallback: any): any;
157
- constructor(args: any);
158
- /** @private */ private _point;
159
- /** @private */ private _position;
160
- /** @private */ private _visible;
161
- /** @private */ private name;
162
- /** @private */ private matrixWorldNeedsUpdate;
163
- /** @private */ private mainView;
164
- /** @private */ private texture;
165
- /** @private */ private sprite;
166
- /** @private */ private scaleNum;
167
- /** @private */ private center;
168
- /** @private */ private offset;
169
- /** @private */ private sizeAttenuation;
170
- /** @private */ private constructionConfig;
171
- /** @private */ private factor;
172
- /** @private */ private animateId;
173
- /** @private */ private animationCanvas;
174
- /** @private */ private drawCanvas;
175
- /** @private */ private style;
176
- /** 热区列表 */ activeAreaList: any[];
177
- /** 是否始终朝向屏幕 */ alwaysToScreen: any;
178
- /** 当前模板放大倍数 */ size: number;
179
- /** 标签类型 */ labelType: any;
180
- /** 额外附加属性 */ extraProps: {
181
- args: any;
182
- };
183
- handleBeforeRender: () => void;
184
- /**
185
- * 计算尺寸衰减比例
186
- * @ignore
187
- * @returns {void}
188
- */
189
- computeSizeAttenuationScale(): void;
190
- /**
191
- * @ignore
192
- * @param args
193
- */
194
- init(args?: {}): Promise<void>;
195
- /**
196
- * 重新绘制标签内容
197
- * @param contextList
198
- */
199
- drawContent(contextList: any, setScaleStatus?: boolean): Promise<void>;
200
- /**
201
- * @ignore
202
- * @param type
203
- * @param time
204
- * @param range
205
- */
206
- startAnimation(type: any, time: any, range?: number): void;
207
- /**
208
- * @ignore
209
- * @param raycaster
210
- * @param intersects
211
- * @returns
212
- */
213
- raycast(raycaster: any, intersects: any): any;
214
- /**
215
- *
216
- * 内存释放
217
- *
218
- */
219
- dispose(): void;
220
- /**
221
- * @ignore
222
- * @param camera
223
- */
224
- faceToCamera(camera: any): void;
225
- }
226
- import { TrafficObject } from './TrafficObject';
@@ -1,61 +0,0 @@
1
- /**
2
- * 路侧设备事件类
3
- * 为广州大屏写的
4
- */
5
- export class Diamond extends TrafficObject {
6
- static createDiamond(style?: {}): any;
7
- constructor(args?: {});
8
- type: string;
9
- name: any;
10
- color: any;
11
- borderColor: any;
12
- topColor: any;
13
- bottomColor: any;
14
- height: any;
15
- sizeAttenuation: any;
16
- radius: any;
17
- radiusSegments: any;
18
- heightSegments: any;
19
- factor: any;
20
- topOffset: any;
21
- activeOption: any;
22
- labelSize: any;
23
- stop: boolean;
24
- openEnded: boolean;
25
- ringRadius: any;
26
- hoverStatus: any;
27
- needTrans: any;
28
- boundingSphere: any;
29
- boundingBox: any;
30
- matrixWorldNeedsUpdate: boolean;
31
- _visible: boolean;
32
- handleBeforeRender(): void;
33
- init(): void;
34
- initBottom(): void;
35
- bottom: any;
36
- initTop(): void;
37
- top1: any;
38
- top2: any;
39
- drawLabel(canvas: any, textcanvas: any): void;
40
- drawCanvas: HTMLCanvasElement | undefined;
41
- idSprite: any;
42
- updateLabel(textList: any, bound: number[] | undefined, imgList: any): void;
43
- setColor(color: any): void;
44
- setPosition(position: any): void;
45
- setSpriteStatus(status: any): void;
46
- raycast(raycaster: any, intersects: any): any;
47
- faceToCamera(camera: any): void;
48
- clone(recursive: any, clone?: boolean): any;
49
- copy(source: any, recursive?: boolean): this;
50
- matrixAutoUpdate: any;
51
- visible: any;
52
- castShadow: any;
53
- receiveShadow: any;
54
- frustumCulled: any;
55
- renderOrder: any;
56
- userData: any;
57
- update: any;
58
- dispose(): void;
59
- initHover(): void;
60
- }
61
- import { TrafficObject } from './TrafficObject';
@@ -1,129 +0,0 @@
1
- /**
2
- * 统一作为模型的基类
3
- * @param { Object } args 参数
4
- * @param { number } [args.rotation=[0,0,0]] [x,y,z],绕各坐标轴的旋转角,弧度制,正北方向为0,右手坐标系,默认值[0,0,0]
5
- * @param { number } [args.scale=[1,1,1]] [x,y,z],缩放比例,默认值[1,1,1]
6
- * @param { number } [args.speed=0.0] 速度,m/s, 标量,默认值0.0
7
- * @param {string} [args.name] 名字, 默认值 空
8
- * @param {any} [args.color] 颜色,默认值new THREE.Color(1.0, 1.0, 1.0), 可以接受0xff0000,"rgb(255, 0, 0)",
9
- * "rgb(100%, 0%, 0%)",'skyblue',"hsl(0, 100%, 50%)"等格式
10
- * @param {boolean} [args.colorChangable] 颜色是否可变,默认值true
11
- * @param {boolean} [args.movable] 位置是否可变,默认值true
12
- * @param {string} [args.modelType] 模型类型,轿车,公交车,自行车等,默认值"car",可选参数(car,bus,truck,bicycle,pedestrian,traffic_cone),
13
- * 如果是自定义的模型,可以自己命名,然后配合modelUrl使用
14
- * @param {string} [args.modelUrl] 模型链接地址,目前支持gltf格式数据,默认值 null,如果是自定义模型类型,该值必须有
15
- * @param {Object} [args.text] 文字,可以在模型上添加文字,默认为 null
16
- * @param {Object} [args.labelOffset] 注记偏移量,默认值THREE.Vector3(0, 0, 1.0),可以接受[x,y,z]或者{x:,y:,z:}或者new THREE.Vector3()
17
- * @param {Object} [label] 注记几何体,{@link Label}
18
- * @param {string} [args.encoding] 编码规则 默认-1, 0 为LinearEncoding 线性;1为 sRGBEncoding 非线性
19
- */
20
- export class DynamicModel extends TrafficObject {
21
- constructor(args?: {});
22
- _rotation: Object;
23
- _scale: any;
24
- speed: any;
25
- name: any;
26
- _geometryType: string;
27
- color: any;
28
- colorChangable: any;
29
- movable: any;
30
- opacity: any;
31
- modelType: any;
32
- modelUrl: any;
33
- models: any[];
34
- text: any;
35
- labelOffset: Object;
36
- label: any;
37
- loaded: boolean;
38
- onLoad: any;
39
- onError: any;
40
- dynamicType: any;
41
- animations: any;
42
- mixer: any;
43
- boundingBoxHelper: any;
44
- animationAction: any[];
45
- _display: boolean;
46
- enableLOD: boolean;
47
- minPixel: number;
48
- encoding: any;
49
- isReceiveShadow: any;
50
- isCastShadow: any;
51
- needTrans: any;
52
- renderer: any;
53
- /**
54
- * 初始化
55
- */
56
- init(): void;
57
- renderOrder: number | undefined;
58
- initModel(): void;
59
- /**
60
- *
61
- * @param {Object} meshs 赋值样式
62
- */
63
- setMeshs(type: any, meshs: Object): void;
64
- /**
65
- *
66
- * 修改编码值
67
- *
68
- * @param {Object} mesh 几何
69
- * @param {string} encoding 编码值 encoding规则 LinearEncoding 0 sRGBEncoding 1
70
- */
71
- setEncoding(mesh: Object, encoding: string): void;
72
- stop(): void;
73
- play(): void;
74
- /**
75
- * 改变模型类型
76
- * @param {string} mt 模型类型
77
- *
78
- */
79
- setModelType(mt: string): void;
80
- /**
81
- * 改变标注
82
- * @param {string} text 文字
83
- */
84
- setText(text: string): void;
85
- /**
86
- * 设置标注的偏移量
87
- * @param {Object} lo 偏移
88
- */
89
- setLabelOffset(lo: Object): void;
90
- /**
91
- * 修改模型的颜色
92
- * @param {*} color 颜色
93
- */
94
- setColor(color: any): void;
95
- /**
96
- * 修改模型的颜色
97
- * @param {*} name 名称
98
- * @param {*} color 颜色
99
- */
100
- setNameColor(name: any, color: any): void;
101
- /**
102
- * 修改模型的可见性
103
- * @param {boolean} visible 颜色
104
- */
105
- setVisible(visible: boolean): void;
106
- visible: any;
107
- getBoundingBoxWorld(): any;
108
- boundingBox: any;
109
- /**
110
- *
111
- * 获取采集动画
112
- *
113
- * @param {number} index 第几个动画
114
- * @param {*} start 开始时间轴
115
- * @param {*} end 结速时间轴
116
- * @param {*} fps 帧数
117
- */
118
- setFrameAction(index: number, start: any, end: any, fps: any): void;
119
- onBeforeRender(): void;
120
- _visible: any;
121
- onAfterRender(): void;
122
- raycast(raycaster: any, intersects: any): void;
123
- /**
124
- * 释放内存
125
- */
126
- dispose(): void;
127
- children: any[] | undefined;
128
- }
129
- import { TrafficObject } from './TrafficObject';