@baidumap/mapv-three 1.3.3 → 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 (232) 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 +16513 -18418
  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 +73 -44
  33. package/dist/types/threemap/animations/PathTracker.d.ts +92 -24
  34. package/dist/types/threemap/animations/RotateTracker.d.ts +115 -21
  35. package/dist/types/threemap/animations/TrackerAbstract.d.ts +15 -11
  36. package/dist/types/threemap/controls/PointerLockControls.d.ts +8 -2
  37. package/dist/types/threemap/controls/controller/ColumbusController.d.ts +10 -0
  38. package/dist/types/threemap/controls/controller/Scene3DController.d.ts +9 -0
  39. package/dist/types/threemap/controls/editors/Editor.d.ts +3 -0
  40. package/dist/types/threemap/engine/Clock.d.ts +156 -0
  41. package/dist/types/threemap/engine/Map.d.ts +20 -2
  42. package/dist/types/threemap/engine/Rendering.d.ts +15 -0
  43. package/dist/types/threemap/engine/rendering/Label.d.ts +2 -0
  44. package/dist/types/threemap/engine/rendering/MainNew.d.ts +1 -1
  45. package/dist/types/threemap/engine/rendering/postprocessing/OpaquePostprocessings.d.ts +1 -1
  46. package/dist/types/threemap/engine/rendering/postprocessing/SkyAtmospherePass.d.ts +1 -0
  47. package/dist/types/threemap/engine/rendering/scene/DirectSceneRendering.d.ts +5 -0
  48. package/dist/types/threemap/mapView/geo/terrainData/QuantizedMeshTerrainData.d.ts +1 -1
  49. package/dist/types/threemap/mapView/grid/BaiduVectorOfflineGrid.d.ts +5 -0
  50. package/dist/types/threemap/mapView/map/MapView.d.ts +3 -0
  51. package/dist/types/threemap/mapView/parser/baidulane/ElementParser.d.ts +86 -0
  52. package/dist/types/threemap/mapView/parser/baidulane/StyleParser.d.ts +28 -0
  53. package/dist/types/threemap/mapView/parser/baidulane/constants/index.d.ts +25 -0
  54. package/dist/types/threemap/mapView/parser/baidulane/constants/types.d.ts +47 -0
  55. package/dist/types/threemap/mapView/parser/baidulane/core/GeometryBuilder.d.ts +40 -0
  56. package/dist/types/threemap/mapView/parser/baidulane/core/LayerManager.d.ts +41 -0
  57. package/dist/types/threemap/mapView/parser/baidulane/core/MaterialFactory.d.ts +71 -0
  58. package/dist/types/threemap/mapView/parser/baidulane/core/StyleManager.d.ts +50 -0
  59. package/dist/types/threemap/mapView/parser/baidulane/core/TextureManager.d.ts +65 -0
  60. package/dist/types/threemap/mapView/parser/baidulane/core/wasmManager.d.ts +18 -0
  61. package/dist/types/threemap/mapView/parser/baidulane/generators/Base.d.ts +46 -0
  62. package/dist/types/threemap/mapView/parser/baidulane/generators/Building3d.d.ts +15 -0
  63. package/dist/types/threemap/mapView/parser/baidulane/generators/FlatSymbol.d.ts +15 -0
  64. package/dist/types/threemap/mapView/parser/baidulane/generators/LabelLine.d.ts +29 -0
  65. package/dist/types/threemap/mapView/parser/baidulane/generators/Line.d.ts +15 -0
  66. package/dist/types/threemap/mapView/parser/baidulane/generators/Line3d.d.ts +15 -0
  67. package/dist/types/threemap/mapView/parser/baidulane/generators/Line3dTexture.d.ts +3 -0
  68. package/dist/types/threemap/mapView/parser/baidulane/generators/LineDash.d.ts +7 -0
  69. package/dist/types/threemap/mapView/parser/baidulane/generators/LineTexture.d.ts +7 -0
  70. package/dist/types/threemap/mapView/parser/baidulane/generators/Poi.d.ts +26 -0
  71. package/dist/types/threemap/mapView/parser/baidulane/generators/Polygon.d.ts +15 -0
  72. package/dist/types/threemap/mapView/parser/baidulane/generators/Polygon3d.d.ts +40 -0
  73. package/dist/types/threemap/mapView/parser/baidulane/generators/PolygonExtrude.d.ts +15 -0
  74. package/dist/types/threemap/mapView/parser/baidulane/generators/PolygonExtrudeTexture.d.ts +18 -0
  75. package/dist/types/threemap/mapView/parser/baidulane/generators/PolygonOpacity.d.ts +7 -0
  76. package/dist/types/threemap/mapView/parser/baidulane/generators/SimplePoint.d.ts +39 -0
  77. package/dist/types/threemap/mapView/parser/baidulane/processors/Background.d.ts +11 -0
  78. package/dist/types/threemap/mapView/parser/baidulane/processors/Base.d.ts +27 -0
  79. package/dist/types/threemap/mapView/parser/baidulane/processors/BridgePier.d.ts +20 -0
  80. package/dist/types/threemap/mapView/parser/baidulane/processors/DebugLine.d.ts +16 -0
  81. package/dist/types/threemap/mapView/parser/baidulane/processors/DebugPoint.d.ts +5 -0
  82. package/dist/types/threemap/mapView/parser/baidulane/processors/DebugPolygon.d.ts +20 -0
  83. package/dist/types/threemap/mapView/parser/baidulane/processors/GaoqingGradient.d.ts +16 -0
  84. package/dist/types/threemap/mapView/parser/baidulane/processors/GaoqingGuide.d.ts +11 -0
  85. package/dist/types/threemap/mapView/parser/baidulane/processors/GaoqingLine.d.ts +11 -0
  86. package/dist/types/threemap/mapView/parser/baidulane/processors/GaoqingPoly.d.ts +15 -0
  87. package/dist/types/threemap/mapView/parser/baidulane/processors/GaoqingRoad.d.ts +13 -0
  88. package/dist/types/threemap/mapView/parser/baidulane/processors/HRegion.d.ts +11 -0
  89. package/dist/types/threemap/mapView/parser/baidulane/processors/LineName.d.ts +48 -0
  90. package/dist/types/threemap/mapView/parser/baidulane/processors/Link.d.ts +10 -0
  91. package/dist/types/threemap/mapView/parser/baidulane/processors/Poi.d.ts +7 -0
  92. package/dist/types/threemap/mapView/parser/baidulane/processors/Poly.d.ts +11 -0
  93. package/dist/types/threemap/mapView/parser/baidulane/processors/Texture.d.ts +10 -0
  94. package/dist/types/threemap/mapView/parser/baidulane/utils/color.d.ts +13 -0
  95. package/dist/types/threemap/mapView/parser/baidulane/utils/coordinate.d.ts +18 -0
  96. package/dist/types/threemap/mapView/parser/baidulane/utils/geometry.d.ts +3 -0
  97. package/dist/types/threemap/mapView/parser/baidulane/utils/icon.d.ts +8 -0
  98. package/dist/types/threemap/mapView/parser/baidulane/utils/merge.d.ts +7 -0
  99. package/dist/types/threemap/mapView/parser/baidulane/utils/tracer.d.ts +7 -0
  100. package/dist/types/{util/mapbox.d.ts → threemap/mapView/parser/mapbox/util.d.ts} +1 -1
  101. package/dist/types/threemap/mapView/surface/GroundSceneRenderer.d.ts +7 -2
  102. package/dist/types/threemap/mapView/surface/MapSurface.d.ts +2 -0
  103. package/dist/types/threemap/mapView/tileProvider/terrain/CesiumTerrainTileProvider.d.ts +3 -0
  104. package/dist/types/threemap/mapView/tileProvider/vector/BaiduLaneVectorTileProvider.d.ts +7 -0
  105. package/dist/types/threemap/mapView/tileProvider/vector/MapboxVectorTileProvider.d.ts +6 -10
  106. package/dist/types/threemap/mapView/utils/createGroundTileMesh.d.ts +2 -1
  107. package/dist/types/threemap/mapView/utils/projectVertices.d.ts +1 -1
  108. package/dist/types/threemap/materials/BatchBuildingMaterial.d.ts +9 -11
  109. package/dist/types/threemap/materials/RoadMarkingMaterial.d.ts +2 -11
  110. package/dist/types/threemap/materials/TerrainClassificationMaterial.d.ts +9 -7
  111. package/dist/types/threemap/natural/DynamicSky.d.ts +68 -22
  112. package/dist/types/threemap/natural/DynamicWeather.d.ts +15 -105
  113. package/dist/types/threemap/natural/EmptySky.d.ts +48 -62
  114. package/dist/types/threemap/natural/PhysicalSky.d.ts +220 -0
  115. package/dist/types/threemap/natural/Rain.d.ts +5 -2
  116. package/dist/types/threemap/natural/Snow.d.ts +5 -2
  117. package/dist/types/threemap/natural/StaticSky.d.ts +1 -0
  118. package/dist/types/threemap/natural/Thunderstorm.d.ts +31 -0
  119. package/dist/types/threemap/natural/clouds/CascadedShadowMaps.d.ts +31 -0
  120. package/dist/types/threemap/natural/clouds/CloudLayer.d.ts +19 -0
  121. package/dist/types/threemap/natural/clouds/CloudLayers.d.ts +13 -0
  122. package/dist/types/threemap/natural/clouds/CloudShape.d.ts +4 -0
  123. package/dist/types/threemap/natural/clouds/CloudShapeDetail.d.ts +4 -0
  124. package/dist/types/threemap/natural/clouds/CloudsEffect.d.ts +173 -0
  125. package/dist/types/threemap/natural/clouds/CloudsMaterial.d.ts +35 -0
  126. package/dist/types/threemap/natural/clouds/CloudsPass.d.ts +39 -0
  127. package/dist/types/threemap/natural/clouds/CloudsPostPass.d.ts +10 -0
  128. package/dist/types/threemap/natural/clouds/CloudsResolveMaterial.d.ts +13 -0
  129. package/dist/types/threemap/natural/clouds/DensityProfile.d.ts +10 -0
  130. package/dist/types/threemap/natural/clouds/LocalWeather.d.ts +4 -0
  131. package/dist/types/threemap/natural/clouds/PassBase.d.ts +7 -0
  132. package/dist/types/threemap/natural/clouds/Procedural3DTexture.d.ts +15 -0
  133. package/dist/types/threemap/natural/clouds/ProceduralTexture.d.ts +15 -0
  134. package/dist/types/threemap/natural/clouds/ShaderArrayPass.d.ts +3 -0
  135. package/dist/types/threemap/natural/clouds/ShadowMaterial.d.ts +14 -0
  136. package/dist/types/threemap/natural/clouds/ShadowPass.d.ts +31 -0
  137. package/dist/types/threemap/natural/clouds/ShadowResolveMaterial.d.ts +8 -0
  138. package/dist/types/threemap/natural/clouds/Turbulence.d.ts +4 -0
  139. package/dist/types/threemap/natural/clouds/bayer.d.ts +2 -0
  140. package/dist/types/threemap/natural/clouds/constants.d.ts +6 -0
  141. package/dist/types/threemap/natural/clouds/helpers/FrustumCorners.d.ts +10 -0
  142. package/dist/types/threemap/natural/clouds/helpers/setArrayRenderTargetLayers.d.ts +1 -0
  143. package/dist/types/threemap/natural/clouds/helpers/splitFrustum.d.ts +6 -0
  144. package/dist/types/threemap/natural/clouds/qualityPresets.d.ts +130 -0
  145. package/dist/types/threemap/natural/clouds/uniforms.d.ts +44 -0
  146. package/dist/types/threemap/natural/core/ArrayBufferLoader.d.ts +3 -0
  147. package/dist/types/threemap/natural/core/DataTextureLoader.d.ts +11 -0
  148. package/dist/types/threemap/natural/core/Ellipsoid.d.ts +17 -0
  149. package/dist/types/threemap/natural/core/Geodetic.d.ts +23 -0
  150. package/dist/types/threemap/natural/core/TypedArrayLoader.d.ts +5 -0
  151. package/dist/types/threemap/natural/core/capabilities.d.ts +1 -0
  152. package/dist/types/threemap/natural/core/celestialDirections.d.ts +5 -0
  153. package/dist/types/threemap/natural/core/decorators.d.ts +61 -0
  154. package/dist/types/threemap/natural/core/defineShorthand.d.ts +2 -0
  155. package/dist/types/threemap/natural/core/helpers/projectOnEllipsoidSurface.d.ts +1 -0
  156. package/dist/types/threemap/natural/core/math.d.ts +15 -0
  157. package/dist/types/threemap/natural/core/requestIdleCallback.d.ts +2 -0
  158. package/dist/types/threemap/natural/core/resolveIncludes.d.ts +1 -0
  159. package/dist/types/threemap/natural/core/shaders/index.d.ts +10 -0
  160. package/dist/types/threemap/natural/core/unrollLoops.d.ts +1 -0
  161. package/dist/types/threemap/natural/effects/DepthEffect.d.ts +15 -0
  162. package/dist/types/threemap/natural/effects/DitheringEffect.d.ts +6 -0
  163. package/dist/types/threemap/natural/effects/DownsampleThresholdMaterial.d.ts +14 -0
  164. package/dist/types/threemap/natural/effects/GeometryEffect.d.ts +11 -0
  165. package/dist/types/threemap/natural/effects/GeometryPass.d.ts +6 -0
  166. package/dist/types/threemap/natural/effects/LensFlareEffect.d.ts +31 -0
  167. package/dist/types/threemap/natural/effects/LensFlareFeaturesMaterial.d.ts +17 -0
  168. package/dist/types/threemap/natural/effects/NormalEffect.d.ts +16 -0
  169. package/dist/types/threemap/natural/effects/createHaldLookupTexture.d.ts +1 -0
  170. package/dist/types/threemap/natural/effects/index.d.ts +7 -0
  171. package/dist/types/threemap/natural/effects/setupMaterialsForGeometryPass.d.ts +1 -0
  172. package/dist/types/threemap/natural/sky/AerialPerspectiveEffect.d.ts +95 -0
  173. package/dist/types/threemap/natural/sky/AtmosphereMaterialBase.d.ts +40 -0
  174. package/dist/types/threemap/natural/sky/AtmosphereParameters.d.ts +32 -0
  175. package/dist/types/threemap/natural/sky/AtmospherePostPass.d.ts +10 -0
  176. package/dist/types/threemap/natural/sky/PrecomputedTexturesGenerator.d.ts +66 -0
  177. package/dist/types/threemap/natural/sky/SkyMaterial.d.ts +26 -0
  178. package/dist/types/threemap/natural/sky/constants.d.ts +14 -0
  179. package/dist/types/threemap/natural/sky/getAltitudeCorrectionOffset.d.ts +1 -0
  180. package/dist/types/threemap/video/VideoConfig.d.ts +2 -2
  181. package/dist/types/util/graphics/line.d.ts +2 -2
  182. package/dist/types/util/request.d.ts +1 -1
  183. package/package.json +6 -3
  184. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/color.d.ts +0 -0
  185. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/executer/background.d.ts +0 -0
  186. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/executer/fill-extrusion.d.ts +0 -0
  187. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/executer/fill.d.ts +0 -0
  188. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/executer/index.d.ts +0 -0
  189. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/executer/line.d.ts +0 -0
  190. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/executer/symbol.d.ts +0 -0
  191. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/compound_expression.d.ts +0 -0
  192. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/assertion.d.ts +0 -0
  193. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/at.d.ts +0 -0
  194. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/case.d.ts +0 -0
  195. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/coalesce.d.ts +0 -0
  196. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/coercion.d.ts +0 -0
  197. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/collator.d.ts +0 -0
  198. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/comparison.d.ts +0 -0
  199. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/format.d.ts +0 -0
  200. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/image.d.ts +0 -0
  201. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/in.d.ts +0 -0
  202. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/index.d.ts +0 -0
  203. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/index_of.d.ts +0 -0
  204. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/interpolate.d.ts +0 -0
  205. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/length.d.ts +0 -0
  206. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/let.d.ts +0 -0
  207. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/literal.d.ts +0 -0
  208. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/match.d.ts +0 -0
  209. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/number_format.d.ts +0 -0
  210. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/slice.d.ts +0 -0
  211. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/step.d.ts +0 -0
  212. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/var.d.ts +0 -0
  213. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/within.d.ts +0 -0
  214. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/evaluation_context.d.ts +0 -0
  215. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/expression.d.ts +0 -0
  216. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/index.d.ts +0 -0
  217. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/is_constant.d.ts +0 -0
  218. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/parsing_context.d.ts +0 -0
  219. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/parsing_error.d.ts +0 -0
  220. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/scope.d.ts +0 -0
  221. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/stops.d.ts +0 -0
  222. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/types/collator.d.ts +0 -0
  223. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/types/formatted.d.ts +0 -0
  224. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/types/resolved_image.d.ts +0 -0
  225. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/types.d.ts +0 -0
  226. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/values.d.ts +0 -0
  227. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/feature_filter/index.d.ts +0 -0
  228. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/function/convert.d.ts +0 -0
  229. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/function/index.d.ts +0 -0
  230. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/sourceLayer.d.ts +0 -0
  231. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/sprite.d.ts +0 -0
  232. /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/style.d.ts +0 -0
@@ -0,0 +1,95 @@
1
+ export namespace aerialPerspectiveEffectOptionsDefaults {
2
+ let blendFunction: any;
3
+ let octEncodedNormal: boolean;
4
+ let reconstructNormal: boolean;
5
+ let ellipsoid: Ellipsoid;
6
+ let correctAltitude: boolean;
7
+ let correctGeometricError: boolean;
8
+ let sunLight: boolean;
9
+ let skyLight: boolean;
10
+ let transmittance: boolean;
11
+ let inscatter: boolean;
12
+ let albedoScale: number;
13
+ let sky: boolean;
14
+ let sun: boolean;
15
+ let moon: boolean;
16
+ let moonAngularRadius: number;
17
+ let lunarRadianceScale: number;
18
+ let ground: boolean;
19
+ }
20
+ export class AerialPerspectiveEffect {
21
+ constructor(camera: any, options: any, atmosphere?: AtmosphereParameters);
22
+ camera: any;
23
+ atmosphere: AtmosphereParameters;
24
+ _ellipsoid: any;
25
+ correctAltitude: any;
26
+ overlay: null;
27
+ shadow: null;
28
+ shadowLength: null;
29
+ lightingMask: null;
30
+ octEncodedNormal: any;
31
+ reconstructNormal: any;
32
+ set singleMieScatteringTexture(value: any);
33
+ get singleMieScatteringTexture(): any;
34
+ set higherOrderScatteringTexture(value: any);
35
+ get higherOrderScatteringTexture(): any;
36
+ set ellipsoid(value: any);
37
+ get ellipsoid(): any;
38
+ correctGeometricError: any;
39
+ sunLight: any;
40
+ skyLight: any;
41
+ transmittance: any;
42
+ inscatter: any;
43
+ sky: any;
44
+ sun: any;
45
+ moon: any;
46
+ ground: any;
47
+ /** @private */
48
+ private combinedScatteringTextures;
49
+ /** @private */
50
+ private hasHigherOrderScatteringTexture;
51
+ shadowSampleCount: number;
52
+ set mainCamera(value: any);
53
+ get mainCamera(): any;
54
+ copyCameraSettings(camera: any): void;
55
+ updateOverlay(): boolean;
56
+ updateShadow(): boolean;
57
+ updateShadowLength(): boolean;
58
+ updateLightingMask(): boolean;
59
+ update(renderer: any, inputBuffer: any, deltaTime: any): void;
60
+ set normalBuffer(value: any);
61
+ get normalBuffer(): any;
62
+ set irradianceTexture(value: any);
63
+ get irradianceTexture(): any;
64
+ set scatteringTexture(value: any);
65
+ get scatteringTexture(): any;
66
+ set transmittanceTexture(value: any);
67
+ get transmittanceTexture(): any;
68
+ get worldToECEFMatrix(): any;
69
+ get sunDirection(): any;
70
+ /** @deprecated Use sunLight instead. */
71
+ set sunIrradiance(value: any);
72
+ /** @deprecated Use sunLight instead. */
73
+ get sunIrradiance(): any;
74
+ /** @deprecated Use skyLight instead. */
75
+ set skyIrradiance(value: any);
76
+ /** @deprecated Use skyLight instead. */
77
+ get skyIrradiance(): any;
78
+ /** @deprecated Use albedoScale instead. */
79
+ set irradianceScale(value: any);
80
+ /** @deprecated Use albedoScale instead. */
81
+ get irradianceScale(): any;
82
+ set albedoScale(value: any);
83
+ get albedoScale(): any;
84
+ get moonDirection(): any;
85
+ set moonAngularRadius(value: any);
86
+ get moonAngularRadius(): any;
87
+ set lunarRadianceScale(value: any);
88
+ get lunarRadianceScale(): any;
89
+ set stbnTexture(value: any);
90
+ get stbnTexture(): any;
91
+ set shadowRadius(value: any);
92
+ get shadowRadius(): any;
93
+ }
94
+ import { Ellipsoid } from '../core/Ellipsoid';
95
+ import { AtmosphereParameters } from './AtmosphereParameters';
@@ -0,0 +1,40 @@
1
+ export namespace atmosphereMaterialParametersBaseDefaults {
2
+ let ellipsoid: Ellipsoid;
3
+ let correctAltitude: boolean;
4
+ let renderTargetCount: number;
5
+ }
6
+ export class AtmosphereMaterialBase {
7
+ constructor(params: any, atmosphere?: AtmosphereParameters);
8
+ atmosphere: AtmosphereParameters;
9
+ ellipsoid: any;
10
+ correctAltitude: any;
11
+ _renderTargetCount: any;
12
+ set singleMieScatteringTexture(value: any);
13
+ get singleMieScatteringTexture(): any;
14
+ set higherOrderScatteringTexture(value: any);
15
+ get higherOrderScatteringTexture(): any;
16
+ set sunAngularRadius(value: any);
17
+ get sunAngularRadius(): any;
18
+ /** @package */
19
+ set renderTargetCount(value: any);
20
+ /** @package */
21
+ get renderTargetCount(): any;
22
+ /** @private */
23
+ private combinedScatteringTextures;
24
+ /** @private */
25
+ private hasHigherOrderScatteringTexture;
26
+ copyCameraSettings(camera: any): void;
27
+ onBeforeCompile(parameters: any, renderer: any): void;
28
+ onBeforeRender(renderer: any, scene: any, camera: any, geometry: any, object: any, group: any): void;
29
+ set irradianceTexture(value: any);
30
+ get irradianceTexture(): any;
31
+ set scatteringTexture(value: any);
32
+ get scatteringTexture(): any;
33
+ set transmittanceTexture(value: any);
34
+ get transmittanceTexture(): any;
35
+ get worldToECEFMatrix(): any;
36
+ get sunDirection(): any;
37
+ needsUpdate: boolean | undefined;
38
+ }
39
+ import { Ellipsoid } from '../core/Ellipsoid';
40
+ import { AtmosphereParameters } from './AtmosphereParameters';
@@ -0,0 +1,32 @@
1
+ export class DensityProfileLayer {
2
+ constructor(width: any, expTerm: any, expScale: any, linearTerm: any, constantTerm: any);
3
+ width: any;
4
+ expTerm: any;
5
+ expScale: any;
6
+ linearTerm: any;
7
+ constantTerm: any;
8
+ toUniform(): any;
9
+ }
10
+ export class AtmosphereParameters {
11
+ static DEFAULT: AtmosphereParameters;
12
+ constructor(options: any);
13
+ solarIrradiance: any;
14
+ sunAngularRadius: number;
15
+ bottomRadius: number;
16
+ topRadius: number;
17
+ rayleighDensity: DensityProfileLayer[];
18
+ rayleighScattering: any;
19
+ mieDensity: DensityProfileLayer[];
20
+ mieScattering: any;
21
+ mieExtinction: any;
22
+ miePhaseFunctionG: number;
23
+ absorptionDensity: DensityProfileLayer[];
24
+ absorptionExtinction: any;
25
+ groundAlbedo: any;
26
+ muSMin: number;
27
+ sunRadianceToLuminance: any;
28
+ skyRadianceToLuminance: any;
29
+ sunRadianceToRelativeLuminance: any;
30
+ skyRadianceToRelativeLuminance: any;
31
+ toUniform(): any;
32
+ }
@@ -0,0 +1,10 @@
1
+ export class AtmospherePostPass {
2
+ constructor(camera: any);
3
+ needsNormalTexture: boolean;
4
+ enableCloudsShadow: boolean;
5
+ enableCloudsOverlay: boolean;
6
+ _effect: AerialPerspectiveEffect;
7
+ initialize(renderer: any, alpha: any, frameBufferType: any): void;
8
+ onFrameUpdate(engine: any, parameters: any): void;
9
+ }
10
+ import { AerialPerspectiveEffect } from './AerialPerspectiveEffect';
@@ -0,0 +1,66 @@
1
+ export class PrecomputedTexturesGenerator {
2
+ constructor(renderer: any, { type, combinedScattering, higherOrderScattering }?: {
3
+ type?: any;
4
+ combinedScattering?: boolean | undefined;
5
+ higherOrderScattering?: boolean | undefined;
6
+ });
7
+ transmittanceRenderTarget: any;
8
+ scatteringRenderTarget: any;
9
+ irradianceRenderTarget: any;
10
+ singleMieScatteringRenderTarget: any;
11
+ higherOrderScatteringRenderTarget: any;
12
+ textures: {
13
+ transmittanceTexture: any;
14
+ scatteringTexture: any;
15
+ irradianceTexture: any;
16
+ singleMieScatteringTexture: any;
17
+ higherOrderScatteringTexture: any;
18
+ };
19
+ transmittanceMaterial: PrecomputeMaterial;
20
+ directIrradianceMaterial: PrecomputeMaterial;
21
+ singleScatteringMaterial: PrecomputeMaterial;
22
+ scatteringDensityMaterial: PrecomputeMaterial;
23
+ indirectIrradianceMaterial: PrecomputeMaterial;
24
+ multipleScatteringMaterial: PrecomputeMaterial;
25
+ renderer: any;
26
+ type: any;
27
+ mesh: any;
28
+ scene: any;
29
+ camera: any;
30
+ updating: boolean;
31
+ disposeQueue: any;
32
+ render3DRenderTarget(renderTarget: any, material: any): void;
33
+ computeTransmittance(params: any): void;
34
+ computeOpticalDepth(params: any): void;
35
+ computeDirectIrradiance(params: any): void;
36
+ computeSingleScattering(params: any): void;
37
+ computeScatteringDensity(params: any): void;
38
+ computeIndirectIrradiance(params: any): void;
39
+ computeMultipleScattering(params: any): void;
40
+ _saveState(state: any): void;
41
+ _restoreState(state: any): void;
42
+ precompute(context: any, additive: any): void;
43
+ update(atmosphere?: AtmosphereParameters): Promise<{
44
+ transmittanceTexture: any;
45
+ scatteringTexture: any;
46
+ irradianceTexture: any;
47
+ singleMieScatteringTexture: any;
48
+ higherOrderScatteringTexture: any;
49
+ }>;
50
+ dispose(options?: {}): void;
51
+ }
52
+ declare class PrecomputeMaterial {
53
+ constructor(params: any);
54
+ set additive(value: any);
55
+ transparent: any;
56
+ blending: any;
57
+ blendEquation: any;
58
+ blendEquationAlpha: any;
59
+ blendSrc: any;
60
+ blendDst: any;
61
+ blendSrcAlpha: any;
62
+ blendDstAlpha: any;
63
+ setUniforms(context: any): void;
64
+ }
65
+ import { AtmosphereParameters } from './AtmosphereParameters';
66
+ export {};
@@ -0,0 +1,26 @@
1
+ export const skyMaterialParametersDefaults: {
2
+ sun: boolean;
3
+ moon: boolean;
4
+ moonAngularRadius: number;
5
+ lunarRadianceScale: number;
6
+ ground: boolean;
7
+ groundAlbedo: any;
8
+ ellipsoid: import("../core/Ellipsoid").Ellipsoid;
9
+ correctAltitude: boolean;
10
+ renderTargetCount: number;
11
+ };
12
+ export class SkyMaterial extends AtmosphereMaterialBase {
13
+ constructor(params: any);
14
+ shadowLength: null;
15
+ sun: any;
16
+ moon: any;
17
+ ground: any;
18
+ onBeforeRender11(renderer: any, scene: any, camera: any, geometry: any, object: any, group: any): void;
19
+ get moonDirection(): any;
20
+ set moonAngularRadius(value: any);
21
+ get moonAngularRadius(): any;
22
+ set lunarRadianceScale(value: any);
23
+ get lunarRadianceScale(): any;
24
+ get groundAlbedo(): any;
25
+ }
26
+ import { AtmosphereMaterialBase } from './AtmosphereMaterialBase';
@@ -0,0 +1,14 @@
1
+ export const IRRADIANCE_TEXTURE_WIDTH: 64;
2
+ export const IRRADIANCE_TEXTURE_HEIGHT: 16;
3
+ export const SCATTERING_TEXTURE_R_SIZE: 32;
4
+ export const SCATTERING_TEXTURE_MU_SIZE: 128;
5
+ export const SCATTERING_TEXTURE_MU_S_SIZE: 32;
6
+ export const SCATTERING_TEXTURE_NU_SIZE: 8;
7
+ export const SCATTERING_TEXTURE_WIDTH: number;
8
+ export const SCATTERING_TEXTURE_HEIGHT: 128;
9
+ export const SCATTERING_TEXTURE_DEPTH: 32;
10
+ export const TRANSMITTANCE_TEXTURE_WIDTH: 256;
11
+ export const TRANSMITTANCE_TEXTURE_HEIGHT: 64;
12
+ export const METER_TO_LENGTH_UNIT: number;
13
+ export const SKY_RENDER_ORDER: 100;
14
+ export const XYZ_TO_SRGB: any;
@@ -0,0 +1 @@
1
+ export function getAltitudeCorrectionOffset(cameraPosition: any, bottomRadius: any, ellipsoid: any, result: any): any;
@@ -10,7 +10,7 @@ export class VideoConfig {
10
10
  outputBitrate: string;
11
11
  onProgress: null;
12
12
  pixelRatio: number;
13
- pathTracker: any;
14
- pathTrackerOptions: any;
13
+ tracker: any;
14
+ trackerOptions: any;
15
15
  get frameCount(): number;
16
16
  }
@@ -1,9 +1,9 @@
1
- export function lineToMesh(points: any, width: any, tileConfig: any, isSingle: any, scale?: number): {
1
+ export function lineToMesh(points: any, width: any, tileConfig: any, isSingle: any, scale: number | undefined, projectedPoints: any): {
2
2
  vertices: any[];
3
3
  indices: any[];
4
4
  normals: any[];
5
5
  widths: any[];
6
6
  lengths: any[];
7
7
  totalLengths: any[] | undefined;
8
- uvs: any[];
8
+ uvs: number[];
9
9
  };
@@ -18,7 +18,7 @@ export function reFetch(url?: string, fetchOptions?: object, times?: number): an
18
18
  * @param {Function} callback 回调函数
19
19
  * @return {boolean} false
20
20
  */
21
- export function jsonp(url: string, param: Object, options: any): boolean;
21
+ export function jsonp(url: string, param: Object, options?: {}): boolean;
22
22
  /**
23
23
  * Creates a deferred object, containing a promise object, and functions to resolve or reject the promise.
24
24
  * @returns {defer.deferred}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baidumap/mapv-three",
3
- "version": "1.3.3",
3
+ "version": "1.4.0",
4
4
  "description": "A powerful 3D map engine.",
5
5
  "author": "mapopen-fe@baidu.com",
6
6
  "main": "dist/mapvthree.umd.js",
@@ -28,13 +28,14 @@
28
28
  "stats.js": "^0.17.0"
29
29
  },
30
30
  "peerDependencies": {
31
- "three": "0.158.0"
31
+ "three": ">=0.179.1"
32
32
  },
33
33
  "dependencies": {
34
34
  "@mapbox/tiny-sdf": "^2.0.5",
35
35
  "@mapbox/unitbezier": "^0.0.1",
36
36
  "@mapbox/vector-tile": "^1.3.1",
37
37
  "@turf/jsts": "^2.7.1",
38
+ "astronomy-engine": "^2.1.19",
38
39
  "cdt2d": "^1.0.0",
39
40
  "csv-parse": "^5.3.0",
40
41
  "d3-geo": "^1.7.1",
@@ -45,12 +46,14 @@
45
46
  "mapbox-to-css-font": "^3.2.0",
46
47
  "omggif": "^1.0.10",
47
48
  "pbf": "^3.2.1",
49
+ "postprocessing": "^6.37.7",
48
50
  "potpack": "^1.0.2",
49
51
  "proj4": "^2.17.0",
50
52
  "rbush": "^3.0.1",
51
- "shader-particle-system": "^1.1.4",
53
+ "shader-particle-system": "^1.1.9",
52
54
  "simpleheat": "^0.4.0",
53
55
  "size-sensor": "^1.0.1",
56
+ "tiny-invariant": "^1.3.3",
54
57
  "urijs": "^1.19.11",
55
58
  "url-join": "^4.0.1",
56
59
  "wellknown": "^0.5.0"