@baidumap/mapv-three 1.3.2 → 1.4.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 (233) hide show
  1. package/dist/assets/textures/cloud/stbn.bin +0 -0
  2. package/dist/assets/wasm/lanelet.js +3296 -165
  3. package/dist/assets/wasm/lanelet.wasm +0 -0
  4. package/dist/assets/workers/{BaiduVectorParser.worker-d550338e.js → BaiduVectorParser.worker-f7fcc351.js} +915 -865
  5. package/dist/assets/workers/{CesiumTerrainParser.worker-20119751.js → CesiumTerrainParser.worker-fcae0cc9.js} +1081 -998
  6. package/dist/assets/workers/{MVTParser.worker-7dc8b0e4.js → MVTParser.worker-0dd27c39.js} +746 -685
  7. package/dist/devtool/panel.js +99 -29
  8. package/dist/mapvthree.module.js +26026 -44996
  9. package/dist/mapvthree.umd.js +13 -7
  10. package/dist/types/Internal.d.ts +1 -0
  11. package/dist/types/index.d.ts +2 -2
  12. package/dist/types/index.open.d.ts +4 -0
  13. package/dist/types/threejs/controls/PointerLockControls.d.ts +2 -0
  14. package/dist/types/threejs/loaders/utilities/BatchTableHierarchyExtension.d.ts +4 -4
  15. package/dist/types/threejs/loaders/utilities/FeatureTable.d.ts +1 -1
  16. package/dist/types/threejs/materials/effects/LightningMaterial.d.ts +9 -0
  17. package/dist/types/threejs/materials/extend/ExtendMeshStandardMaterial.d.ts +1 -0
  18. package/dist/types/threejs/materials/natural/DynamicSkyMaterial.d.ts +1 -0
  19. package/dist/types/threejs/materials/natural/StaticSkyMaterial.d.ts +1 -0
  20. package/dist/types/threejs/materials/natural/VerticalGradientSkyMaterial.d.ts +1 -0
  21. package/dist/types/threejs/materials/polygon/PolygonMaterial.d.ts +1 -0
  22. package/dist/types/threejs/objects/GeoInstancedMesh.d.ts +1 -0
  23. package/dist/types/threejs/objects/line/Polyline.d.ts +1 -1
  24. package/dist/types/threejs/objects/point/Icon.d.ts +1 -0
  25. package/dist/types/threejs/objects/point/Label.d.ts +5 -1
  26. package/dist/types/threejs/objects/point/label/GeometryBufferBuilder.d.ts +3 -0
  27. package/dist/types/threejs/objects/point/label/TextBoxCalculator.d.ts +5 -3
  28. package/dist/types/threejs/objects/text/utils.d.ts +1 -1
  29. package/dist/types/threemap/3dtiles/HDMap3DTiles.d.ts +26 -0
  30. package/dist/types/threemap/3dtiles/materials/Default3DTilesMaterialManager.d.ts +51 -3
  31. package/dist/types/threemap/Engine.d.ts +6 -0
  32. package/dist/types/threemap/animations/ObjectTracker.d.ts +82 -43
  33. package/dist/types/threemap/animations/ObjectTracker_deprecated.d.ts +56 -0
  34. package/dist/types/threemap/animations/PathTracker.d.ts +92 -29
  35. package/dist/types/threemap/animations/RotateTracker.d.ts +123 -0
  36. package/dist/types/threemap/animations/TrackerAbstract.d.ts +26 -8
  37. package/dist/types/threemap/controls/PointerLockControls.d.ts +8 -2
  38. package/dist/types/threemap/controls/controller/ColumbusController.d.ts +10 -0
  39. package/dist/types/threemap/controls/controller/Scene3DController.d.ts +9 -0
  40. package/dist/types/threemap/controls/editors/Editor.d.ts +3 -0
  41. package/dist/types/threemap/engine/Clock.d.ts +156 -0
  42. package/dist/types/threemap/engine/Map.d.ts +20 -2
  43. package/dist/types/threemap/engine/Rendering.d.ts +15 -0
  44. package/dist/types/threemap/engine/rendering/Label.d.ts +2 -0
  45. package/dist/types/threemap/engine/rendering/MainNew.d.ts +1 -1
  46. package/dist/types/threemap/engine/rendering/postprocessing/OpaquePostprocessings.d.ts +1 -1
  47. package/dist/types/threemap/engine/rendering/postprocessing/SkyAtmospherePass.d.ts +1 -0
  48. package/dist/types/threemap/engine/rendering/scene/DirectSceneRendering.d.ts +5 -0
  49. package/dist/types/threemap/mapView/geo/terrainData/QuantizedMeshTerrainData.d.ts +1 -1
  50. package/dist/types/threemap/mapView/grid/BaiduVectorOfflineGrid.d.ts +5 -0
  51. package/dist/types/threemap/mapView/map/MapView.d.ts +3 -0
  52. package/dist/types/threemap/mapView/parser/baidulane/ElementParser.d.ts +86 -0
  53. package/dist/types/threemap/mapView/parser/baidulane/StyleParser.d.ts +28 -0
  54. package/dist/types/threemap/mapView/parser/baidulane/constants/index.d.ts +25 -0
  55. package/dist/types/threemap/mapView/parser/baidulane/constants/types.d.ts +47 -0
  56. package/dist/types/threemap/mapView/parser/baidulane/core/GeometryBuilder.d.ts +40 -0
  57. package/dist/types/threemap/mapView/parser/baidulane/core/LayerManager.d.ts +41 -0
  58. package/dist/types/threemap/mapView/parser/baidulane/core/MaterialFactory.d.ts +71 -0
  59. package/dist/types/threemap/mapView/parser/baidulane/core/StyleManager.d.ts +50 -0
  60. package/dist/types/threemap/mapView/parser/baidulane/core/TextureManager.d.ts +65 -0
  61. package/dist/types/threemap/mapView/parser/baidulane/core/wasmManager.d.ts +18 -0
  62. package/dist/types/threemap/mapView/parser/baidulane/generators/Base.d.ts +46 -0
  63. package/dist/types/threemap/mapView/parser/baidulane/generators/Building3d.d.ts +15 -0
  64. package/dist/types/threemap/mapView/parser/baidulane/generators/FlatSymbol.d.ts +15 -0
  65. package/dist/types/threemap/mapView/parser/baidulane/generators/LabelLine.d.ts +29 -0
  66. package/dist/types/threemap/mapView/parser/baidulane/generators/Line.d.ts +15 -0
  67. package/dist/types/threemap/mapView/parser/baidulane/generators/Line3d.d.ts +15 -0
  68. package/dist/types/threemap/mapView/parser/baidulane/generators/Line3dTexture.d.ts +3 -0
  69. package/dist/types/threemap/mapView/parser/baidulane/generators/LineDash.d.ts +7 -0
  70. package/dist/types/threemap/mapView/parser/baidulane/generators/LineTexture.d.ts +7 -0
  71. package/dist/types/threemap/mapView/parser/baidulane/generators/Poi.d.ts +26 -0
  72. package/dist/types/threemap/mapView/parser/baidulane/generators/Polygon.d.ts +15 -0
  73. package/dist/types/threemap/mapView/parser/baidulane/generators/Polygon3d.d.ts +40 -0
  74. package/dist/types/threemap/mapView/parser/baidulane/generators/PolygonExtrude.d.ts +15 -0
  75. package/dist/types/threemap/mapView/parser/baidulane/generators/PolygonExtrudeTexture.d.ts +18 -0
  76. package/dist/types/threemap/mapView/parser/baidulane/generators/PolygonOpacity.d.ts +7 -0
  77. package/dist/types/threemap/mapView/parser/baidulane/generators/SimplePoint.d.ts +39 -0
  78. package/dist/types/threemap/mapView/parser/baidulane/processors/Background.d.ts +11 -0
  79. package/dist/types/threemap/mapView/parser/baidulane/processors/Base.d.ts +27 -0
  80. package/dist/types/threemap/mapView/parser/baidulane/processors/BridgePier.d.ts +20 -0
  81. package/dist/types/threemap/mapView/parser/baidulane/processors/DebugLine.d.ts +16 -0
  82. package/dist/types/threemap/mapView/parser/baidulane/processors/DebugPoint.d.ts +5 -0
  83. package/dist/types/threemap/mapView/parser/baidulane/processors/DebugPolygon.d.ts +20 -0
  84. package/dist/types/threemap/mapView/parser/baidulane/processors/GaoqingGradient.d.ts +16 -0
  85. package/dist/types/threemap/mapView/parser/baidulane/processors/GaoqingGuide.d.ts +11 -0
  86. package/dist/types/threemap/mapView/parser/baidulane/processors/GaoqingLine.d.ts +11 -0
  87. package/dist/types/threemap/mapView/parser/baidulane/processors/GaoqingPoly.d.ts +15 -0
  88. package/dist/types/threemap/mapView/parser/baidulane/processors/GaoqingRoad.d.ts +13 -0
  89. package/dist/types/threemap/mapView/parser/baidulane/processors/HRegion.d.ts +11 -0
  90. package/dist/types/threemap/mapView/parser/baidulane/processors/LineName.d.ts +48 -0
  91. package/dist/types/threemap/mapView/parser/baidulane/processors/Link.d.ts +10 -0
  92. package/dist/types/threemap/mapView/parser/baidulane/processors/Poi.d.ts +7 -0
  93. package/dist/types/threemap/mapView/parser/baidulane/processors/Poly.d.ts +11 -0
  94. package/dist/types/threemap/mapView/parser/baidulane/processors/Texture.d.ts +10 -0
  95. package/dist/types/threemap/mapView/parser/baidulane/utils/color.d.ts +13 -0
  96. package/dist/types/threemap/mapView/parser/baidulane/utils/coordinate.d.ts +18 -0
  97. package/dist/types/threemap/mapView/parser/baidulane/utils/geometry.d.ts +3 -0
  98. package/dist/types/threemap/mapView/parser/baidulane/utils/icon.d.ts +8 -0
  99. package/dist/types/threemap/mapView/parser/baidulane/utils/merge.d.ts +7 -0
  100. package/dist/types/threemap/mapView/parser/baidulane/utils/tracer.d.ts +7 -0
  101. package/dist/types/{util/mapbox.d.ts → threemap/mapView/parser/mapbox/util.d.ts} +1 -1
  102. package/dist/types/threemap/mapView/surface/GroundSceneRenderer.d.ts +7 -2
  103. package/dist/types/threemap/mapView/surface/MapSurface.d.ts +2 -0
  104. package/dist/types/threemap/mapView/tileProvider/terrain/CesiumTerrainTileProvider.d.ts +3 -0
  105. package/dist/types/threemap/mapView/tileProvider/vector/BaiduLaneVectorTileProvider.d.ts +7 -0
  106. package/dist/types/threemap/mapView/tileProvider/vector/MapboxVectorTileProvider.d.ts +6 -10
  107. package/dist/types/threemap/mapView/utils/createGroundTileMesh.d.ts +2 -1
  108. package/dist/types/threemap/mapView/utils/projectVertices.d.ts +1 -1
  109. package/dist/types/threemap/materials/BatchBuildingMaterial.d.ts +9 -11
  110. package/dist/types/threemap/materials/RoadMarkingMaterial.d.ts +2 -11
  111. package/dist/types/threemap/materials/TerrainClassificationMaterial.d.ts +9 -7
  112. package/dist/types/threemap/natural/DynamicSky.d.ts +68 -22
  113. package/dist/types/threemap/natural/DynamicWeather.d.ts +15 -105
  114. package/dist/types/threemap/natural/EmptySky.d.ts +48 -62
  115. package/dist/types/threemap/natural/PhysicalSky.d.ts +220 -0
  116. package/dist/types/threemap/natural/Rain.d.ts +5 -2
  117. package/dist/types/threemap/natural/Snow.d.ts +5 -2
  118. package/dist/types/threemap/natural/StaticSky.d.ts +1 -0
  119. package/dist/types/threemap/natural/Thunderstorm.d.ts +31 -0
  120. package/dist/types/threemap/natural/clouds/CascadedShadowMaps.d.ts +31 -0
  121. package/dist/types/threemap/natural/clouds/CloudLayer.d.ts +19 -0
  122. package/dist/types/threemap/natural/clouds/CloudLayers.d.ts +13 -0
  123. package/dist/types/threemap/natural/clouds/CloudShape.d.ts +4 -0
  124. package/dist/types/threemap/natural/clouds/CloudShapeDetail.d.ts +4 -0
  125. package/dist/types/threemap/natural/clouds/CloudsEffect.d.ts +173 -0
  126. package/dist/types/threemap/natural/clouds/CloudsMaterial.d.ts +35 -0
  127. package/dist/types/threemap/natural/clouds/CloudsPass.d.ts +39 -0
  128. package/dist/types/threemap/natural/clouds/CloudsPostPass.d.ts +10 -0
  129. package/dist/types/threemap/natural/clouds/CloudsResolveMaterial.d.ts +13 -0
  130. package/dist/types/threemap/natural/clouds/DensityProfile.d.ts +10 -0
  131. package/dist/types/threemap/natural/clouds/LocalWeather.d.ts +4 -0
  132. package/dist/types/threemap/natural/clouds/PassBase.d.ts +7 -0
  133. package/dist/types/threemap/natural/clouds/Procedural3DTexture.d.ts +15 -0
  134. package/dist/types/threemap/natural/clouds/ProceduralTexture.d.ts +15 -0
  135. package/dist/types/threemap/natural/clouds/ShaderArrayPass.d.ts +3 -0
  136. package/dist/types/threemap/natural/clouds/ShadowMaterial.d.ts +14 -0
  137. package/dist/types/threemap/natural/clouds/ShadowPass.d.ts +31 -0
  138. package/dist/types/threemap/natural/clouds/ShadowResolveMaterial.d.ts +8 -0
  139. package/dist/types/threemap/natural/clouds/Turbulence.d.ts +4 -0
  140. package/dist/types/threemap/natural/clouds/bayer.d.ts +2 -0
  141. package/dist/types/threemap/natural/clouds/constants.d.ts +6 -0
  142. package/dist/types/threemap/natural/clouds/helpers/FrustumCorners.d.ts +10 -0
  143. package/dist/types/threemap/natural/clouds/helpers/setArrayRenderTargetLayers.d.ts +1 -0
  144. package/dist/types/threemap/natural/clouds/helpers/splitFrustum.d.ts +6 -0
  145. package/dist/types/threemap/natural/clouds/qualityPresets.d.ts +130 -0
  146. package/dist/types/threemap/natural/clouds/uniforms.d.ts +44 -0
  147. package/dist/types/threemap/natural/core/ArrayBufferLoader.d.ts +3 -0
  148. package/dist/types/threemap/natural/core/DataTextureLoader.d.ts +11 -0
  149. package/dist/types/threemap/natural/core/Ellipsoid.d.ts +17 -0
  150. package/dist/types/threemap/natural/core/Geodetic.d.ts +23 -0
  151. package/dist/types/threemap/natural/core/TypedArrayLoader.d.ts +5 -0
  152. package/dist/types/threemap/natural/core/capabilities.d.ts +1 -0
  153. package/dist/types/threemap/natural/core/celestialDirections.d.ts +5 -0
  154. package/dist/types/threemap/natural/core/decorators.d.ts +61 -0
  155. package/dist/types/threemap/natural/core/defineShorthand.d.ts +2 -0
  156. package/dist/types/threemap/natural/core/helpers/projectOnEllipsoidSurface.d.ts +1 -0
  157. package/dist/types/threemap/natural/core/math.d.ts +15 -0
  158. package/dist/types/threemap/natural/core/requestIdleCallback.d.ts +2 -0
  159. package/dist/types/threemap/natural/core/resolveIncludes.d.ts +1 -0
  160. package/dist/types/threemap/natural/core/shaders/index.d.ts +10 -0
  161. package/dist/types/threemap/natural/core/unrollLoops.d.ts +1 -0
  162. package/dist/types/threemap/natural/effects/DepthEffect.d.ts +15 -0
  163. package/dist/types/threemap/natural/effects/DitheringEffect.d.ts +6 -0
  164. package/dist/types/threemap/natural/effects/DownsampleThresholdMaterial.d.ts +14 -0
  165. package/dist/types/threemap/natural/effects/GeometryEffect.d.ts +11 -0
  166. package/dist/types/threemap/natural/effects/GeometryPass.d.ts +6 -0
  167. package/dist/types/threemap/natural/effects/LensFlareEffect.d.ts +31 -0
  168. package/dist/types/threemap/natural/effects/LensFlareFeaturesMaterial.d.ts +17 -0
  169. package/dist/types/threemap/natural/effects/NormalEffect.d.ts +16 -0
  170. package/dist/types/threemap/natural/effects/createHaldLookupTexture.d.ts +1 -0
  171. package/dist/types/threemap/natural/effects/index.d.ts +7 -0
  172. package/dist/types/threemap/natural/effects/setupMaterialsForGeometryPass.d.ts +1 -0
  173. package/dist/types/threemap/natural/sky/AerialPerspectiveEffect.d.ts +95 -0
  174. package/dist/types/threemap/natural/sky/AtmosphereMaterialBase.d.ts +40 -0
  175. package/dist/types/threemap/natural/sky/AtmosphereParameters.d.ts +32 -0
  176. package/dist/types/threemap/natural/sky/AtmospherePostPass.d.ts +10 -0
  177. package/dist/types/threemap/natural/sky/PrecomputedTexturesGenerator.d.ts +66 -0
  178. package/dist/types/threemap/natural/sky/SkyMaterial.d.ts +26 -0
  179. package/dist/types/threemap/natural/sky/constants.d.ts +14 -0
  180. package/dist/types/threemap/natural/sky/getAltitudeCorrectionOffset.d.ts +1 -0
  181. package/dist/types/threemap/video/VideoConfig.d.ts +2 -2
  182. package/dist/types/util/graphics/line.d.ts +2 -2
  183. package/dist/types/util/request.d.ts +1 -1
  184. package/package.json +6 -3
  185. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/color.d.ts +0 -0
  186. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/executer/background.d.ts +0 -0
  187. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/executer/fill-extrusion.d.ts +0 -0
  188. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/executer/fill.d.ts +0 -0
  189. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/executer/index.d.ts +0 -0
  190. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/executer/line.d.ts +0 -0
  191. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/executer/symbol.d.ts +0 -0
  192. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/compound_expression.d.ts +0 -0
  193. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/assertion.d.ts +0 -0
  194. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/at.d.ts +0 -0
  195. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/case.d.ts +0 -0
  196. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/coalesce.d.ts +0 -0
  197. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/coercion.d.ts +0 -0
  198. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/collator.d.ts +0 -0
  199. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/comparison.d.ts +0 -0
  200. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/format.d.ts +0 -0
  201. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/image.d.ts +0 -0
  202. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/in.d.ts +0 -0
  203. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/index.d.ts +0 -0
  204. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/index_of.d.ts +0 -0
  205. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/interpolate.d.ts +0 -0
  206. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/length.d.ts +0 -0
  207. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/let.d.ts +0 -0
  208. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/literal.d.ts +0 -0
  209. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/match.d.ts +0 -0
  210. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/number_format.d.ts +0 -0
  211. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/slice.d.ts +0 -0
  212. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/step.d.ts +0 -0
  213. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/var.d.ts +0 -0
  214. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/within.d.ts +0 -0
  215. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/evaluation_context.d.ts +0 -0
  216. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/expression.d.ts +0 -0
  217. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/index.d.ts +0 -0
  218. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/is_constant.d.ts +0 -0
  219. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/parsing_context.d.ts +0 -0
  220. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/parsing_error.d.ts +0 -0
  221. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/scope.d.ts +0 -0
  222. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/stops.d.ts +0 -0
  223. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/types/collator.d.ts +0 -0
  224. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/types/formatted.d.ts +0 -0
  225. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/types/resolved_image.d.ts +0 -0
  226. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/types.d.ts +0 -0
  227. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/values.d.ts +0 -0
  228. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/feature_filter/index.d.ts +0 -0
  229. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/function/convert.d.ts +0 -0
  230. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/function/index.d.ts +0 -0
  231. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/sourceLayer.d.ts +0 -0
  232. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/sprite.d.ts +0 -0
  233. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/style.d.ts +0 -0
@@ -0,0 +1,15 @@
1
+ /**
2
+ * 普通像素线 Generator
3
+ * 生成普通线条渲染对象
4
+ */
5
+ export class LineGenerator extends BaseGenerator {
6
+ /**
7
+ * 生成渲染对象
8
+ * @param {object} geoData - 图元信息。要求包含 vertices
9
+ * @param {object} styleConfig - 样式配置
10
+ * @param {object} context - 上下文信息
11
+ * @returns {object} 渲染对象配置
12
+ */
13
+ generate(geoData: object, styleConfig: object, context: object): object;
14
+ }
15
+ import { BaseGenerator } from './Base';
@@ -0,0 +1,15 @@
1
+ /**
2
+ * 高清线 Generator
3
+ * 生成高清线条渲染对象(不 keepSize,可能带高度)
4
+ */
5
+ export class Line3dGenerator extends BaseGenerator {
6
+ /**
7
+ * 生成渲染对象
8
+ * @param {object} geoData - 图元信息。要求包含 vertices
9
+ * @param {object} styleConfig - 样式配置
10
+ * @param {object} context - 上下文信息
11
+ * @returns {object} 渲染对象配置
12
+ */
13
+ generate(geoData: object, styleConfig: object, context: object): object;
14
+ }
15
+ import { BaseGenerator } from './Base';
@@ -0,0 +1,3 @@
1
+ export class Line3dTextureGenerator extends Line3dGenerator {
2
+ }
3
+ import { Line3dGenerator } from './Line3d';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 虚线 Generator
3
+ * 生成带纹理的虚线渲染对象
4
+ */
5
+ export class LineDashGenerator extends LineGenerator {
6
+ }
7
+ import { LineGenerator } from './Line';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 纹理线 Generator
3
+ * 生成带纹理的线条渲染对象(UV为0-1)
4
+ */
5
+ export class LineTextureGenerator extends LineGenerator {
6
+ }
7
+ import { LineGenerator } from './Line';
@@ -0,0 +1,26 @@
1
+ /**
2
+ * POI Generator
3
+ * 生成POI标签渲染对象
4
+ */
5
+ export class PoiGenerator extends BaseGenerator {
6
+ /**
7
+ * 获取材质配置 - POI不需要材质配置
8
+ * @returns {null}
9
+ */
10
+ getMaterialConfig(): null;
11
+ /**
12
+ * 获取顶点属性布局配置
13
+ * POI不需要顶点属性,返回空数组
14
+ * @returns {Array} 空数组
15
+ */
16
+ getAttributeLayout(): any[];
17
+ /**
18
+ * 生成渲染对象
19
+ * @param {object} element - 元素对象
20
+ * @param {object} styleConfig - 样式配置
21
+ * @param {object} context - 上下文信息
22
+ * @returns {object} 渲染对象配置
23
+ */
24
+ generate(element: object, styleConfig: object, context: object): object;
25
+ }
26
+ import { BaseGenerator } from './Base';
@@ -0,0 +1,15 @@
1
+ /**
2
+ * 普通2D面 Generator
3
+ * 生成普通多边形渲染对象
4
+ */
5
+ export class PolygonGenerator extends BaseGenerator {
6
+ /**
7
+ * 生成渲染对象
8
+ * @param {object} geoData - 图元信息。要求包含 vertices、indices
9
+ * @param {object} styleConfig - 样式配置
10
+ * @param {object} context - 上下文信息
11
+ * @returns {object} 渲染对象配置
12
+ */
13
+ generate(geoData: object, styleConfig: object, context: object): object;
14
+ }
15
+ import { BaseGenerator } from './Base';
@@ -0,0 +1,40 @@
1
+ export class Polygon3dGenerator extends BaseGenerator {
2
+ getMaterialConfig(): {
3
+ name: string;
4
+ ctorName: string;
5
+ parameters: {
6
+ depthTest: boolean;
7
+ vertexColors: boolean;
8
+ side: any;
9
+ };
10
+ };
11
+ generate(geoData: any, styleConfig: any, context: any): {
12
+ type: string;
13
+ geometry: {
14
+ vertices: any;
15
+ indices: any;
16
+ normals: any;
17
+ colors: any;
18
+ };
19
+ material: {
20
+ name: string;
21
+ ctorName: string;
22
+ parameters: {
23
+ depthTest: boolean;
24
+ vertexColors: boolean;
25
+ side: any;
26
+ };
27
+ };
28
+ attributeLayout: {
29
+ name: string;
30
+ size: number;
31
+ }[];
32
+ };
33
+ createGeometry(geoData: any, styleConfig: any, context: any): {
34
+ vertices: any;
35
+ indices: any;
36
+ normals: any;
37
+ colors: any;
38
+ };
39
+ }
40
+ import { BaseGenerator } from './Base';
@@ -0,0 +1,15 @@
1
+ /**
2
+ * 拉伸高度面 Generator
3
+ * 生成带高度的3D多边形渲染对象(高清路面)
4
+ */
5
+ export class PolygonExtrudeGenerator extends BaseGenerator {
6
+ /**
7
+ * 生成渲染对象
8
+ * @param {object} geoData - 图元信息。要求包含 vertices、indices
9
+ * @param {object} styleConfig - 样式配置
10
+ * @param {object} context - 上下文信息
11
+ * @returns {object} 渲染对象配置
12
+ */
13
+ generate(geoData: object, styleConfig: object, context: object): object;
14
+ }
15
+ import { BaseGenerator } from './Base';
@@ -0,0 +1,18 @@
1
+ /**
2
+ * 带纹理的拉伸高度面 Generator
3
+ */
4
+ export class PolygonExtrudeTextureGenerator extends BaseGenerator {
5
+ /**
6
+ * 生成渲染对象
7
+ * @param {object} geoData - 图元信息。要求包含 vertices、indices
8
+ * @param {object} styleConfig - 样式配置
9
+ * @param {object} context - 上下文信息
10
+ * @returns {object} 渲染对象配置
11
+ */
12
+ generate(geoData: object, styleConfig: object, context: object): object;
13
+ /**
14
+ * 根据纹理方向计算UV坐标
15
+ */
16
+ computeUVsWithDirection(vertices: any, topVertexCount: any, textureDirection: any, textureStep: any): number[];
17
+ }
18
+ import { BaseGenerator } from './Base';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 半透明面 Generator
3
+ * 生成带透明度的多边形渲染对象
4
+ */
5
+ export class PolygonOpacityGenerator extends PolygonGenerator {
6
+ }
7
+ import { PolygonGenerator } from './Polygon';
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Simple Point Generator
3
+ * 生成简单点渲染对象
4
+ */
5
+ export class SimplePointGenerator extends BaseGenerator {
6
+ static material: {
7
+ name: string;
8
+ ctorName: string;
9
+ parameters: {};
10
+ };
11
+ /**
12
+ * 获取材质配置 - 简单点不需要材质配置
13
+ * @returns {null}
14
+ */
15
+ getMaterialConfig(): null;
16
+ /**
17
+ * 获取顶点属性布局配置
18
+ * 简单点不需要顶点属性,返回空数组
19
+ * @returns {Array} 空数组
20
+ */
21
+ getAttributeLayout(): any[];
22
+ /**
23
+ * 生成渲染对象
24
+ * @param {object} element - 元素对象
25
+ * @param {object} styleConfig - 样式配置
26
+ * @param {object} context - 上下文信息
27
+ * @returns {object} 渲染对象配置
28
+ */
29
+ generate(element: object, styleConfig: object, context: object, catalogType: any): object;
30
+ /**
31
+ * 创建简单点数据
32
+ * @param {object} element - 元素对象
33
+ * @param {object} styleConfig - 样式配置
34
+ * @param {object} context - 上下文信息
35
+ * @returns {object} 简单点数据
36
+ */
37
+ createGeometry(element: object, styleConfig: object, context: object, catalogType: any): object;
38
+ }
39
+ import { BaseGenerator } from './Base';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * GaoqingRoad Processor
3
+ * 处理高清路面类型(GAOQING_ROAD_TYPE)
4
+ */
5
+ export class BackgroundProcessor extends BaseProcessor {
6
+ prepareGeoData(element: any, styleConfig: any, context: any): {
7
+ vertices: number[];
8
+ indices: number[];
9
+ };
10
+ }
11
+ import { BaseProcessor } from './Base';
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Processor 基类
3
+ * 所有具体 Processor 的抽象基类,定义通用接口
4
+ * Processor 负责解析数据类型,调用 Generator,并添加图层属性
5
+ */
6
+ export class BaseProcessor {
7
+ constructor(layerManager: any, generators: any, styleManager: any);
8
+ layerManager: any;
9
+ generators: any;
10
+ styleManager: any;
11
+ /**
12
+ * 处理元素
13
+ * @param {object} element - 元素对象
14
+ * @param {object} styleConfig - 样式配置
15
+ * @param {object} context - 上下文信息
16
+ * @returns {Array<object>} 渲染对象配置数组
17
+ */
18
+ process(element: object, styleConfig: object, context: object): Array<object>;
19
+ /**
20
+ * 创建渲染对象,添加图层属性
21
+ * @param {object} generatorResult - Generator 返回的结果 {type, geometry, material}
22
+ * @param {string} sceneType - 图元类型,可选 '2d', '3d', 'other'
23
+ * @param {string} groupName - 分组名称 ('background', 'border', 'fill', 'marking')
24
+ * @returns {object} 完整的渲染对象,包含 properties
25
+ */
26
+ createRenderObject(generatorResult: object, sceneType: string, groupName: string): object;
27
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * BridgePier Processor
3
+ * 处理桥墩类型 (PILLAR_TYPE)
4
+ */
5
+ export class BridgePierProcessor extends BaseProcessor {
6
+ process(element: any, styleConfig: any, context: any): object[];
7
+ indexOffset: number | undefined;
8
+ transformVertices(vertices: any, center: any, rotationZ?: number, transformMatrix?: null, altitude?: number, normals?: null): Float32Array<any>;
9
+ addFace(vertices: any, indices: any, colors: any, normals: any, [v0, v1, v2, v3]: [any, any, any, any], color: any): void;
10
+ prepareGeoData(element: any, styleConfig: any, context: any): {
11
+ vertices: Float32Array<any>;
12
+ indices: any[];
13
+ colors: any[];
14
+ normals: any[];
15
+ useColorsArray: boolean;
16
+ useNormalsArray: boolean;
17
+ useProjected: boolean;
18
+ };
19
+ }
20
+ import { BaseProcessor } from './Base';
@@ -0,0 +1,16 @@
1
+ export class DebugLineProcessor extends BaseProcessor {
2
+ isDebugProcessor: boolean;
3
+ /**
4
+ * 处理元素
5
+ * @param {object} element - 元素对象
6
+ * @param {object} styleConfig - 样式配置
7
+ * @param {object} context - 上下文信息
8
+ * @returns {Array<object>} 渲染对象配置数组
9
+ */
10
+ process(element: object, styleConfig: object, context: object, geoLayers: any, catalogType: any): Array<object>;
11
+ prepareGeoData(element: any, styleConfig: any, context: any): {
12
+ vertices: any[];
13
+ is3D: boolean;
14
+ };
15
+ }
16
+ import { BaseProcessor } from './Base';
@@ -0,0 +1,5 @@
1
+ export class DebugPointProcessor extends BaseProcessor {
2
+ isDebugProcessor: boolean;
3
+ process(element: any, styleConfig: any, context: any, geoLayers: any, catalogType: any): object[];
4
+ }
5
+ import { BaseProcessor } from './Base';
@@ -0,0 +1,20 @@
1
+ /**
2
+ * DebugPolygon Processor
3
+ * 处理调试面类型(DEBUG_POLYGON_TYPE)
4
+ */
5
+ export class DebugPolygonProcessor extends BaseProcessor {
6
+ /**
7
+ * 处理元素
8
+ * @param {object} element - 元素对象
9
+ * @param {object} styleConfig - 样式配置
10
+ * @param {object} context - 上下文信息
11
+ * @returns {Array<object>} 渲染对象配置数组
12
+ */
13
+ process(element: object, styleConfig: object, context: object, geoLayers: any, catalogType: any): Array<object>;
14
+ prepareGeoData(element: any, styleConfig: any, context: any): {
15
+ vertices: any[];
16
+ indices: any[];
17
+ hasExtrude: boolean;
18
+ };
19
+ }
20
+ import { BaseProcessor } from './Base';
@@ -0,0 +1,16 @@
1
+ /**
2
+ * GaoqingGradient Processor
3
+ * 处理渐变路类型(GAOQING_GRADIENT_TYPE)
4
+ */
5
+ export class GaoqingGradientProcessor extends BaseProcessor {
6
+ prepareGeoData(element: any, styleConfig: any, context: any): {
7
+ vertices: any[];
8
+ indices: any[];
9
+ useColorsArray: boolean;
10
+ colors: number[];
11
+ borderColors: number[];
12
+ is3D: boolean;
13
+ hasExtrude: boolean;
14
+ };
15
+ }
16
+ import { BaseProcessor } from './Base';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * GaoqingGuide Processor
3
+ * 处理路面箭头类型(GAOQING_GUIDE_TYPE)
4
+ */
5
+ export class GaoqingGuideProcessor extends BaseProcessor {
6
+ prepareGeoData(element: any, styleConfig: any, context: any): {
7
+ vertices: any[];
8
+ angle: any;
9
+ };
10
+ }
11
+ import { BaseProcessor } from './Base';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * GaoqingLine Processor
3
+ * 处理高清线类型(GAOQING_LINE_TYPE)
4
+ */
5
+ export class GaoqingLineProcessor extends BaseProcessor {
6
+ prepareGeoData(element: any, styleConfig: any, context: any): {
7
+ vertices: any[];
8
+ is3D: boolean;
9
+ };
10
+ }
11
+ import { BaseProcessor } from './Base';
@@ -0,0 +1,15 @@
1
+ /**
2
+ * GaoqingPoly Processor
3
+ * 处理高清多边形类型(GAOQING_POLY_TYPE)
4
+ */
5
+ export class GaoqingPolyProcessor extends BaseProcessor {
6
+ prepareGeoData(element: any, styleConfig: any, context: any): {
7
+ vertices: any[];
8
+ indices: any[];
9
+ is3D: boolean;
10
+ hasExtrude: boolean;
11
+ textureDirection: any;
12
+ textureStep: any;
13
+ };
14
+ }
15
+ import { BaseProcessor } from './Base';
@@ -0,0 +1,13 @@
1
+ /**
2
+ * GaoqingRoad Processor
3
+ * 处理高清路面类型(GAOQING_ROAD_TYPE)
4
+ */
5
+ export class GaoqingRoadProcessor extends BaseProcessor {
6
+ prepareGeoData(element: any, styleConfig: any, context: any): {
7
+ vertices: any[];
8
+ indices: any[];
9
+ is3D: boolean;
10
+ hasExtrude: boolean;
11
+ };
12
+ }
13
+ import { BaseProcessor } from './Base';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * HRegion Processor
3
+ * 处理3D建筑类型(HREGION_TYPE)
4
+ */
5
+ export class HRegionProcessor extends BaseProcessor {
6
+ prepareGeoData(element: any, styleConfig: any, context: any): {
7
+ vertices: any[];
8
+ indices: any[];
9
+ };
10
+ }
11
+ import { BaseProcessor } from './Base';
@@ -0,0 +1,48 @@
1
+ /**
2
+ * @class LineNameProcessor
3
+ * @extends BaseProcessor
4
+ * @description
5
+ * 处理路名类型(LINE_NAME_TYPE)元素。
6
+ */
7
+ export class LineNameProcessor extends BaseProcessor {
8
+ /**
9
+ * 处理元素
10
+ * @param {object} element - 数据元素对象
11
+ * @param {object} styleConfig - 样式配置
12
+ * @param {object} context - 渲染上下文
13
+ * @param {Map} geoLayers - 图层集合
14
+ * @returns {Array<object>} 渲染对象配置数组
15
+ */
16
+ process(element: object, styleConfig: object, context: object, geoLayers: Map<any, any>): Array<object>;
17
+ /**
18
+ * 处理道路标签数据
19
+ */
20
+ processRoadLabel(element: any, roadindex: any, road_lab_pos: any, styleConfig: any, context: any, geoLayers: any): any;
21
+ /**
22
+ * 提取索引数据
23
+ */
24
+ extractIndexData(roadindex: any): any;
25
+ /**
26
+ * 提取标签数据
27
+ */
28
+ extractLabelData(road_lab_pos: any): any;
29
+ /**
30
+ * 处理地理图层
31
+ */
32
+ processGeoLayer(element: any, geoLayer: any, indexData: any, labelData: any, styleConfig: any, context: any): any;
33
+ /**
34
+ * 处理元素集
35
+ */
36
+ processElementSet(element: any, elementSet: any, innerPos: any, labelData: any, styleConfig: any, context: any): any;
37
+ /**
38
+ * 处理道路元素
39
+ */
40
+ processRoadElement(element: any, roadElement: any, labelData: any, styleConfig: any, context: any): any[];
41
+ /**
42
+ * 准备几何点数据
43
+ */
44
+ prepareGeoData(element: any, styleConfig: any, context: any): {
45
+ points: any[][];
46
+ };
47
+ }
48
+ import { BaseProcessor } from './Base';
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Link Processor
3
+ * 处理普通线类型(LINK_TYPE)
4
+ */
5
+ export class LinkProcessor extends BaseProcessor {
6
+ prepareGeoData(element: any, styleConfig: any, context: any): {
7
+ vertices: any[];
8
+ };
9
+ }
10
+ import { BaseProcessor } from './Base';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Poi Processor
3
+ * 处理POI点类型(POI_TYPE)
4
+ */
5
+ export class PoiProcessor extends BaseProcessor {
6
+ }
7
+ import { BaseProcessor } from './Base';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Poly Processor
3
+ * 处理普通面类型(POLY_TYPE)
4
+ */
5
+ export class PolyProcessor extends BaseProcessor {
6
+ prepareGeoData(element: any, styleConfig: any, context: any): {
7
+ vertices: any[];
8
+ indices: any[];
9
+ };
10
+ }
11
+ import { BaseProcessor } from './Base';
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Texture Processor
3
+ * 处理纹理线类型(TEXTURE_TYPE)
4
+ */
5
+ export class TextureProcessor extends BaseProcessor {
6
+ prepareGeoData(element: any, styleConfig: any, context: any): {
7
+ vertices: any[];
8
+ };
9
+ }
10
+ import { BaseProcessor } from './Base';
@@ -0,0 +1,13 @@
1
+ /**
2
+ * 将颜色值转换为归一化的 RGBA 数组(用于 WebGL)
3
+ * @param {number} colorValue - 32位整数颜色值
4
+ * @returns {number[]} 归一化的 [r, g, b, a] 数组 (0-1)
5
+ */
6
+ export function getColorArr(colorValue: number): number[];
7
+ /**
8
+ * 将颜色值转换为 RGBA 数组(0-255 范围)
9
+ * @param {number} colorValue - 32位整数颜色值
10
+ * @returns {number[]} [r, g, b, a] 数组,rgb在0-255范围,a在0-1范围
11
+ */
12
+ export function getColorRgba(colorValue: number): number[];
13
+ export function getDebugColor(catalogType: any): number[];
@@ -0,0 +1,18 @@
1
+ export function convertPOIPosition(x: any, y: any, z: any, config: any, output: any): any;
2
+ export function tileNormalizedPositionToMeter(input: any, tileConfig: any, output: any): any;
3
+ /**
4
+ * 给坐标点数组重新计算高度值
5
+ * @param {Array} points 点坐标数组,一维数组[x, y, z, x, y, z, ...]格式
6
+ * @param {Array|number} z 高度数组,一维数组[z, z, z, ...]格式,或者单个高度值
7
+ * @returns {Array} 重新计算高度后的点坐标数组
8
+ */
9
+ export function applyPointsZ(points: any[], z?: any[] | number): any[];
10
+ export function parseFeature(midPoints: any, dim: any): (number | number[])[];
11
+ export function getTileMaxValueByZ(z: any, config: any): any;
12
+ export function normalizeVertex(vertex: any, tileSize: any, gapMin: any, gapMax: any, i: number | undefined, output: any): any;
13
+ /**
14
+ * 判断 zvector 是否为 3D(有高度信息)
15
+ * @param {Array} zvector - 高度数组
16
+ * @returns {boolean} true 表示需要使用 3D,false 表示使用 2D
17
+ */
18
+ export function isZvector3D(zvector: any[]): boolean;
@@ -0,0 +1,3 @@
1
+ export function crossVectors3(a: any, b: any): number[];
2
+ export function encodeConcave(isGround: any, isConcave: any, isStart: any): number;
3
+ export function getSubDivisionMaxLength(config: any): number;
@@ -0,0 +1,8 @@
1
+ export function getIconInfo(styleManager: any, iconName: any): any;
2
+ export function getIconVertexData(styleManager: any, iconName: any, iconZoom: any): {
3
+ vertex: number[];
4
+ texcoord: null;
5
+ width: number;
6
+ height: number;
7
+ iconType: any;
8
+ } | null;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 合并图元数据,将2d和3d元素分开处理
3
+ * 2d元素需要排序并手动计算深度,3d元素根据高程自动计算
4
+ * @param {Object} result - 输入数据 {scene2d: [], scene3d: [], pois: []}
5
+ * @returns {Object} 按type分组的合并结果 {polygon: {attributes, indices, material}, ...}
6
+ */
7
+ export function mergePrimitives(result: Object): Object;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 判断元素在当前缩放级别下是否可见
3
+ * @param {number} tracer - 元素的可见性追踪标志位
4
+ * @param {Object} config - 瓦片配置对象
5
+ * @returns {boolean} 是否可见
6
+ */
7
+ export function isVisible(tracer: number, config: Object): boolean;
@@ -30,7 +30,7 @@ export namespace hcl {
30
30
  export { hclToRgb as reverse };
31
31
  export { interpolateHcl as interpolate };
32
32
  }
33
- import { Color } from '../threemap/mapView/mapbox/color';
33
+ import { Color } from './color';
34
34
  declare function rgbToLab(rgbColor: any): {
35
35
  l: number;
36
36
  a: number;
@@ -1,9 +1,14 @@
1
1
  export class GroundSceneRenderer {
2
2
  /** @private */
3
3
  private _renderTarget;
4
+ /** @private */
5
+ private _multipleRenderTarget;
6
+ /** @private */
7
+ private _currentRenderTarget;
4
8
  _copyMesh: any;
5
- render(groundScene: any, engine: any, scene: any, camera: any, renderState: any): void;
6
- _lastOverrideMaterial: any;
9
+ _prepareRenderTarget(engine: any, renderState: any): void;
7
10
  _fakeDepthTexture: any;
11
+ _prepareMultipleRenderTarget(engine: any, renderState: any): void;
12
+ render(groundScene: any, engine: any, scene: any, camera: any, renderState: any): void;
8
13
  get copyMesh(): any;
9
14
  }
@@ -101,6 +101,8 @@ export class MapSurface {
101
101
  _getDebugLabelId(surfaceTile: any): string;
102
102
  _onBeforeSceneRender(engine: any, scene: any, camera: any, renderState: any): void;
103
103
  _groundSceneRenderer: GroundSceneRenderer | undefined;
104
+ onAfterColorPass: (engine: any) => void;
105
+ onAfterMainPass: (engine: any) => void;
104
106
  _cancelTileInArray(cancelTiles: any): void;
105
107
  _requestTilesInArray(tiles: any, number: any, onlyRequestGeometry?: boolean): void;
106
108
  _collectionCancelTiles(requestTiles: any): any[];
@@ -54,11 +54,14 @@ export class CesiumTerrainTileProvider extends PlaneTerrainTileProvider {
54
54
  */
55
55
  private _isDefaultCesium;
56
56
  _accessToken: string | null;
57
+ _requestVertexNormals: any;
57
58
  /**
58
59
  * 异步初始化
59
60
  * @protected
60
61
  */
61
62
  protected _asyncInit(): Promise<void>;
63
+ hasVertexNormals: any;
64
+ littleEndianExtensionSize: boolean | undefined;
62
65
  _layerConfig: any;
63
66
  _urlTemplate: string | undefined;
64
67
  _version: any;