@iweather-js/iweather-gl 0.0.1

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 (270) hide show
  1. package/README.md +15 -0
  2. package/dist/config/colorPalette.d.ts +115 -0
  3. package/dist/config/colorPalette.d.ts.map +1 -0
  4. package/dist/config/map.d.ts +15 -0
  5. package/dist/config/map.d.ts.map +1 -0
  6. package/dist/config/product.d.ts +42 -0
  7. package/dist/config/product.d.ts.map +1 -0
  8. package/dist/core/dataFindMgr.d.ts +24 -0
  9. package/dist/core/dataFindMgr.d.ts.map +1 -0
  10. package/dist/core/dataLoaderMgr.d.ts +19 -0
  11. package/dist/core/dataLoaderMgr.d.ts.map +1 -0
  12. package/dist/core/hub.layerMgr.d.ts +11 -0
  13. package/dist/core/hub.layerMgr.d.ts.map +1 -0
  14. package/dist/core/hub.timeMgr.d.ts +12 -0
  15. package/dist/core/hub.timeMgr.d.ts.map +1 -0
  16. package/dist/core/layerMgr.d.ts +69 -0
  17. package/dist/core/layerMgr.d.ts.map +1 -0
  18. package/dist/core/product.d.ts +56 -0
  19. package/dist/core/product.d.ts.map +1 -0
  20. package/dist/fns/createColorPalette.d.ts +8 -0
  21. package/dist/fns/createColorPalette.d.ts.map +1 -0
  22. package/dist/fns/createGridMesh.d.ts +14 -0
  23. package/dist/fns/createGridMesh.d.ts.map +1 -0
  24. package/dist/fns/geojson/getChina.d.ts +15 -0
  25. package/dist/fns/geojson/getChina.d.ts.map +1 -0
  26. package/dist/fns/geojson/getCity.d.ts +15 -0
  27. package/dist/fns/geojson/getCity.d.ts.map +1 -0
  28. package/dist/fns/geojson/getCounty.d.ts +9 -0
  29. package/dist/fns/geojson/getCounty.d.ts.map +1 -0
  30. package/dist/fns/geojson/getLand.d.ts +3 -0
  31. package/dist/fns/geojson/getLand.d.ts.map +1 -0
  32. package/dist/fns/geojson/getProvince.d.ts +16 -0
  33. package/dist/fns/geojson/getProvince.d.ts.map +1 -0
  34. package/dist/fns/geojson/getProvinceNames.d.ts +8 -0
  35. package/dist/fns/geojson/getProvinceNames.d.ts.map +1 -0
  36. package/dist/fns/geojson/toAdcodeInfoVo.d.ts +13 -0
  37. package/dist/fns/geojson/toAdcodeInfoVo.d.ts.map +1 -0
  38. package/dist/fns/geojson/types.d.ts +14 -0
  39. package/dist/fns/geojson/types.d.ts.map +1 -0
  40. package/dist/fns/getVisibleWraps.d.ts +3 -0
  41. package/dist/fns/getVisibleWraps.d.ts.map +1 -0
  42. package/dist/fns/glsl/contourFns.d.ts +2 -0
  43. package/dist/fns/glsl/contourFns.d.ts.map +1 -0
  44. package/dist/fns/glsl/defComputeFs.d.ts +2 -0
  45. package/dist/fns/glsl/defComputeFs.d.ts.map +1 -0
  46. package/dist/fns/glsl/mercatorFuns.d.ts +2 -0
  47. package/dist/fns/glsl/mercatorFuns.d.ts.map +1 -0
  48. package/dist/fns/glsl/normalizeTo.d.ts +2 -0
  49. package/dist/fns/glsl/normalizeTo.d.ts.map +1 -0
  50. package/dist/fns/glsl/positionInFuns.d.ts +2 -0
  51. package/dist/fns/glsl/positionInFuns.d.ts.map +1 -0
  52. package/dist/fns/glsl/texture_bicubic.d.ts +2 -0
  53. package/dist/fns/glsl/texture_bicubic.d.ts.map +1 -0
  54. package/dist/fns/index.d.ts +17 -0
  55. package/dist/fns/index.d.ts.map +1 -0
  56. package/dist/fns/outdated/getMeshInfo.d.ts +19 -0
  57. package/dist/fns/outdated/getMeshInfo.d.ts.map +1 -0
  58. package/dist/fns/outdated/getWorldOffsets.d.ts +3 -0
  59. package/dist/fns/outdated/getWorldOffsets.d.ts.map +1 -0
  60. package/dist/fns/outdated/readImagBitmap.d.ts +2 -0
  61. package/dist/fns/outdated/readImagBitmap.d.ts.map +1 -0
  62. package/dist/fns/outdated/readImageWithExif/worker-load.d.ts +1 -0
  63. package/dist/fns/outdated/readImageWithExif/worker-load.d.ts.map +1 -0
  64. package/dist/fns/readImageWithExif/index.d.ts +25 -0
  65. package/dist/fns/readImageWithExif/index.d.ts.map +1 -0
  66. package/dist/fns/readImageWithExif/parseExif.d.ts +40 -0
  67. package/dist/fns/readImageWithExif/parseExif.d.ts.map +1 -0
  68. package/dist/fns/readImageWithExif/readExif.d.ts +12 -0
  69. package/dist/fns/readImageWithExif/readExif.d.ts.map +1 -0
  70. package/dist/fns/readImageWithExif/readImagWithExif.d.ts +9 -0
  71. package/dist/fns/readImageWithExif/readImagWithExif.d.ts.map +1 -0
  72. package/dist/fns/scaleColorPaletteConfig.d.ts +3 -0
  73. package/dist/fns/scaleColorPaletteConfig.d.ts.map +1 -0
  74. package/dist/fns/toColorPaletteFns.d.ts +9 -0
  75. package/dist/fns/toColorPaletteFns.d.ts.map +1 -0
  76. package/dist/fns/toGlColor.d.ts +2 -0
  77. package/dist/fns/toGlColor.d.ts.map +1 -0
  78. package/dist/fns/wrapBounds.d.ts +14 -0
  79. package/dist/fns/wrapBounds.d.ts.map +1 -0
  80. package/dist/index.d.ts +37 -0
  81. package/dist/index.d.ts.map +1 -0
  82. package/dist/index.js +1986 -0
  83. package/dist/index.js.map +131 -0
  84. package/dist/interfaces/ICityConfig.d.ts +28 -0
  85. package/dist/interfaces/ICityConfig.d.ts.map +1 -0
  86. package/dist/interfaces/IDataFetchConfig.d.ts +10 -0
  87. package/dist/interfaces/IDataFetchConfig.d.ts.map +1 -0
  88. package/dist/interfaces/IDataReqOptionsConfig.d.ts +16 -0
  89. package/dist/interfaces/IDataReqOptionsConfig.d.ts.map +1 -0
  90. package/dist/interfaces/ILayerMgrConfig.d.ts +13 -0
  91. package/dist/interfaces/ILayerMgrConfig.d.ts.map +1 -0
  92. package/dist/interfaces/IProductConfig.d.ts +16 -0
  93. package/dist/interfaces/IProductConfig.d.ts.map +1 -0
  94. package/dist/interfaces/index.d.ts +7 -0
  95. package/dist/interfaces/index.d.ts.map +1 -0
  96. package/dist/layers/base/ExCustomLayer.d.ts +40 -0
  97. package/dist/layers/base/ExCustomLayer.d.ts.map +1 -0
  98. package/dist/layers/base/ExTimingLayer.d.ts +30 -0
  99. package/dist/layers/base/ExTimingLayer.d.ts.map +1 -0
  100. package/dist/layers/index.d.ts +18 -0
  101. package/dist/layers/index.d.ts.map +1 -0
  102. package/dist/layers/maplibre-3dProfile/Maplibre3DProfileLayer.d.ts +43 -0
  103. package/dist/layers/maplibre-3dProfile/Maplibre3DProfileLayer.d.ts.map +1 -0
  104. package/dist/layers/maplibre-3dProfile/box.vs.d.ts +7 -0
  105. package/dist/layers/maplibre-3dProfile/box.vs.d.ts.map +1 -0
  106. package/dist/layers/maplibre-3dProfile/lib/getMatrix.d.ts +11 -0
  107. package/dist/layers/maplibre-3dProfile/lib/getMatrix.d.ts.map +1 -0
  108. package/dist/layers/maplibre-3dProfile/line.fs.d.ts +6 -0
  109. package/dist/layers/maplibre-3dProfile/line.fs.d.ts.map +1 -0
  110. package/dist/layers/maplibre-3dProfile/slice.fs copy.d.ts +7 -0
  111. package/dist/layers/maplibre-3dProfile/slice.fs copy.d.ts.map +1 -0
  112. package/dist/layers/maplibre-3dProfile/slice.fs.d.ts +7 -0
  113. package/dist/layers/maplibre-3dProfile/slice.fs.d.ts.map +1 -0
  114. package/dist/layers/maplibre-3dProfile/volume.fs.d.ts +7 -0
  115. package/dist/layers/maplibre-3dProfile/volume.fs.d.ts.map +1 -0
  116. package/dist/layers/maplibre-3dProfile-v0/Maplibre3DProfileLayerV0.d.ts +37 -0
  117. package/dist/layers/maplibre-3dProfile-v0/Maplibre3DProfileLayerV0.d.ts.map +1 -0
  118. package/dist/layers/maplibre-3dProfile-v0/common.vs.d.ts +7 -0
  119. package/dist/layers/maplibre-3dProfile-v0/common.vs.d.ts.map +1 -0
  120. package/dist/layers/maplibre-3dProfile-v0/lib/getMatrix.d.ts +11 -0
  121. package/dist/layers/maplibre-3dProfile-v0/lib/getMatrix.d.ts.map +1 -0
  122. package/dist/layers/maplibre-3dProfile-v0/line.fs.d.ts +6 -0
  123. package/dist/layers/maplibre-3dProfile-v0/line.fs.d.ts.map +1 -0
  124. package/dist/layers/maplibre-3dProfile-v0/slice.fs.d.ts +7 -0
  125. package/dist/layers/maplibre-3dProfile-v0/slice.fs.d.ts.map +1 -0
  126. package/dist/layers/maplibre-3dProfile-v0/volume.fs.d.ts +7 -0
  127. package/dist/layers/maplibre-3dProfile-v0/volume.fs.d.ts.map +1 -0
  128. package/dist/layers/maplibre-3dProfile-v3/Maplibre3DProfileLayerV3.d.ts +44 -0
  129. package/dist/layers/maplibre-3dProfile-v3/Maplibre3DProfileLayerV3.d.ts.map +1 -0
  130. package/dist/layers/maplibre-3dProfile-v3/common.vs.d.ts +7 -0
  131. package/dist/layers/maplibre-3dProfile-v3/common.vs.d.ts.map +1 -0
  132. package/dist/layers/maplibre-3dProfile-v3/lib/calculateLightPositions.d.ts +12 -0
  133. package/dist/layers/maplibre-3dProfile-v3/lib/calculateLightPositions.d.ts.map +1 -0
  134. package/dist/layers/maplibre-3dProfile-v3/lib/calculateSubdivisions.d.ts +10 -0
  135. package/dist/layers/maplibre-3dProfile-v3/lib/calculateSubdivisions.d.ts.map +1 -0
  136. package/dist/layers/maplibre-3dProfile-v3/lib/createCubeGeometry.d.ts +11 -0
  137. package/dist/layers/maplibre-3dProfile-v3/lib/createCubeGeometry.d.ts.map +1 -0
  138. package/dist/layers/maplibre-3dProfile-v3/lib/prepareLightUniforms.d.ts +12 -0
  139. package/dist/layers/maplibre-3dProfile-v3/lib/prepareLightUniforms.d.ts.map +1 -0
  140. package/dist/layers/maplibre-3dProfile-v3/lib/prepareProjectionUniforms.d.ts +7 -0
  141. package/dist/layers/maplibre-3dProfile-v3/lib/prepareProjectionUniforms.d.ts.map +1 -0
  142. package/dist/layers/maplibre-3dProfile-v3/lib/validateGeometry.d.ts +11 -0
  143. package/dist/layers/maplibre-3dProfile-v3/lib/validateGeometry.d.ts.map +1 -0
  144. package/dist/layers/maplibre-3dProfile-v3/volume.fs.d.ts +7 -0
  145. package/dist/layers/maplibre-3dProfile-v3/volume.fs.d.ts.map +1 -0
  146. package/dist/layers/maplibre-color/ColorLayer.d.ts +23 -0
  147. package/dist/layers/maplibre-color/ColorLayer.d.ts.map +1 -0
  148. package/dist/layers/maplibre-color/CommonColorLayer.d.ts +12 -0
  149. package/dist/layers/maplibre-color/CommonColorLayer.d.ts.map +1 -0
  150. package/dist/layers/maplibre-color/WindColorLayer.d.ts +10 -0
  151. package/dist/layers/maplibre-color/WindColorLayer.d.ts.map +1 -0
  152. package/dist/layers/maplibre-color/getTiles.d.ts +10 -0
  153. package/dist/layers/maplibre-color/getTiles.d.ts.map +1 -0
  154. package/dist/layers/maplibre-color/globe-image-test/ColorLayer2.d.ts +24 -0
  155. package/dist/layers/maplibre-color/globe-image-test/ColorLayer2.d.ts.map +1 -0
  156. package/dist/layers/maplibre-color/globe-image-test/CommonColorLayer2.d.ts +12 -0
  157. package/dist/layers/maplibre-color/globe-image-test/CommonColorLayer2.d.ts.map +1 -0
  158. package/dist/layers/maplibre-contour/ContourLayer.d.ts +20 -0
  159. package/dist/layers/maplibre-contour/ContourLayer.d.ts.map +1 -0
  160. package/dist/layers/maplibre-contour/ContourLayerByValue.d.ts +20 -0
  161. package/dist/layers/maplibre-contour/ContourLayerByValue.d.ts.map +1 -0
  162. package/dist/layers/maplibre-contour/ContourValueLayer.d.ts +26 -0
  163. package/dist/layers/maplibre-contour/ContourValueLayer.d.ts.map +1 -0
  164. package/dist/layers/maplibre-contour/lib.d.ts +38 -0
  165. package/dist/layers/maplibre-contour/lib.d.ts.map +1 -0
  166. package/dist/layers/maplibre-gridValue/BaseGridValueLayer.d.ts +28 -0
  167. package/dist/layers/maplibre-gridValue/BaseGridValueLayer.d.ts.map +1 -0
  168. package/dist/layers/maplibre-gridValue/GridValueLayer.d.ts +7 -0
  169. package/dist/layers/maplibre-gridValue/GridValueLayer.d.ts.map +1 -0
  170. package/dist/layers/maplibre-gridValue/GridWindValueLayer.d.ts +7 -0
  171. package/dist/layers/maplibre-gridValue/GridWindValueLayer.d.ts.map +1 -0
  172. package/dist/layers/maplibre-gridValue/computeVsByColor.d.ts +2 -0
  173. package/dist/layers/maplibre-gridValue/computeVsByColor.d.ts.map +1 -0
  174. package/dist/layers/maplibre-gridValue/computeVsByWind.d.ts +2 -0
  175. package/dist/layers/maplibre-gridValue/computeVsByWind.d.ts.map +1 -0
  176. package/dist/layers/maplibre-gridValue/drawFs.d.ts +3 -0
  177. package/dist/layers/maplibre-gridValue/drawFs.d.ts.map +1 -0
  178. package/dist/layers/maplibre-gridValue/drawVs.d.ts +3 -0
  179. package/dist/layers/maplibre-gridValue/drawVs.d.ts.map +1 -0
  180. package/dist/layers/maplibre-gridValue/lib/createNumberTextureInfo.d.ts +20 -0
  181. package/dist/layers/maplibre-gridValue/lib/createNumberTextureInfo.d.ts.map +1 -0
  182. package/dist/layers/maplibre-gridWind/GridWindLayer.d.ts +25 -0
  183. package/dist/layers/maplibre-gridWind/GridWindLayer.d.ts.map +1 -0
  184. package/dist/layers/maplibre-gridWind/computeVs.d.ts +2 -0
  185. package/dist/layers/maplibre-gridWind/computeVs.d.ts.map +1 -0
  186. package/dist/layers/maplibre-gridWind/drawFs.d.ts +3 -0
  187. package/dist/layers/maplibre-gridWind/drawFs.d.ts.map +1 -0
  188. package/dist/layers/maplibre-gridWind/drawVs.d.ts +3 -0
  189. package/dist/layers/maplibre-gridWind/drawVs.d.ts.map +1 -0
  190. package/dist/layers/maplibre-gridWind/utils/calculateGridInfo.d.ts +7 -0
  191. package/dist/layers/maplibre-gridWind/utils/calculateGridInfo.d.ts.map +1 -0
  192. package/dist/layers/maplibre-gridWind/utils/calculateViewportGridUv.d.ts +9 -0
  193. package/dist/layers/maplibre-gridWind/utils/calculateViewportGridUv.d.ts.map +1 -0
  194. package/dist/layers/maplibre-gridWind/utils/toBoundsCoords.d.ts +3 -0
  195. package/dist/layers/maplibre-gridWind/utils/toBoundsCoords.d.ts.map +1 -0
  196. package/dist/layers/maplibre-gridWind/utils/toWebGlSizeByPixel.d.ts +3 -0
  197. package/dist/layers/maplibre-gridWind/utils/toWebGlSizeByPixel.d.ts.map +1 -0
  198. package/dist/layers/maplibre-wind-particle/MapLibreWindParticleLayer.d.ts +48 -0
  199. package/dist/layers/maplibre-wind-particle/MapLibreWindParticleLayer.d.ts.map +1 -0
  200. package/dist/layers/maplibre-wind-particle/computeVs.d.ts +3 -0
  201. package/dist/layers/maplibre-wind-particle/computeVs.d.ts.map +1 -0
  202. package/dist/layers/maplibre-wind-particle/drawFs.d.ts +3 -0
  203. package/dist/layers/maplibre-wind-particle/drawFs.d.ts.map +1 -0
  204. package/dist/layers/maplibre-wind-particle/drawVs.d.ts +3 -0
  205. package/dist/layers/maplibre-wind-particle/drawVs.d.ts.map +1 -0
  206. package/dist/layers/maplibre-wind-particle/utils/bounds.d.ts +3 -0
  207. package/dist/layers/maplibre-wind-particle/utils/bounds.d.ts.map +1 -0
  208. package/dist/layers/mask/fns/calculateRenderBounds.d.ts +6 -0
  209. package/dist/layers/mask/fns/calculateRenderBounds.d.ts.map +1 -0
  210. package/dist/layers/mask/fns/createProjectionMatrix.d.ts +5 -0
  211. package/dist/layers/mask/fns/createProjectionMatrix.d.ts.map +1 -0
  212. package/dist/layers/mask/fns/hasViewportChanged.d.ts +13 -0
  213. package/dist/layers/mask/fns/hasViewportChanged.d.ts.map +1 -0
  214. package/dist/layers/mask/fns/lngLatToMercator.d.ts +3 -0
  215. package/dist/layers/mask/fns/lngLatToMercator.d.ts.map +1 -0
  216. package/dist/layers/mask/fns/processGeoJSON.d.ts +10 -0
  217. package/dist/layers/mask/fns/processGeoJSON.d.ts.map +1 -0
  218. package/dist/layers/mask/mask-layer.d.ts +36 -0
  219. package/dist/layers/mask/mask-layer.d.ts.map +1 -0
  220. package/dist/layers/mask/masked-data-layer.d.ts +22 -0
  221. package/dist/layers/mask/masked-data-layer.d.ts.map +1 -0
  222. package/dist/map/getMapState.d.ts +3 -0
  223. package/dist/map/getMapState.d.ts.map +1 -0
  224. package/dist/map/mapAction.d.ts +34 -0
  225. package/dist/map/mapAction.d.ts.map +1 -0
  226. package/dist/map/mapAutoRotation.d.ts +3 -0
  227. package/dist/map/mapAutoRotation.d.ts.map +1 -0
  228. package/dist/map/mapCreate.d.ts +4 -0
  229. package/dist/map/mapCreate.d.ts.map +1 -0
  230. package/dist/map/mapEvent.d.ts +16 -0
  231. package/dist/map/mapEvent.d.ts.map +1 -0
  232. package/dist/map/mapInitState.d.ts +4 -0
  233. package/dist/map/mapInitState.d.ts.map +1 -0
  234. package/dist/map/mapScreenshotHandler.d.ts +8 -0
  235. package/dist/map/mapScreenshotHandler.d.ts.map +1 -0
  236. package/dist/map/mapSyncMoveHandler.d.ts +8 -0
  237. package/dist/map/mapSyncMoveHandler.d.ts.map +1 -0
  238. package/dist/map/mapSyncTimeHandler.d.ts +8 -0
  239. package/dist/map/mapSyncTimeHandler.d.ts.map +1 -0
  240. package/dist/map/markerHover.d.ts +13 -0
  241. package/dist/map/markerHover.d.ts.map +1 -0
  242. package/dist/map/markerMgr.d.ts +15 -0
  243. package/dist/map/markerMgr.d.ts.map +1 -0
  244. package/dist/map/syncMapStateToStoreHandler.d.ts +8 -0
  245. package/dist/map/syncMapStateToStoreHandler.d.ts.map +1 -0
  246. package/dist/map/syncStoreStateToMapHandler.d.ts +8 -0
  247. package/dist/map/syncStoreStateToMapHandler.d.ts.map +1 -0
  248. package/dist/store/configStore.d.ts +24 -0
  249. package/dist/store/configStore.d.ts.map +1 -0
  250. package/dist/store/defValue.d.ts +14 -0
  251. package/dist/store/defValue.d.ts.map +1 -0
  252. package/dist/store/gisStore.d.ts +158 -0
  253. package/dist/store/gisStore.d.ts.map +1 -0
  254. package/dist/store/multiMapStatusStore.d.ts +35 -0
  255. package/dist/store/multiMapStatusStore.d.ts.map +1 -0
  256. package/dist/store/toGisValue.d.ts +4 -0
  257. package/dist/store/toGisValue.d.ts.map +1 -0
  258. package/dist/types/colorPalette.d.ts +19 -0
  259. package/dist/types/colorPalette.d.ts.map +1 -0
  260. package/dist/types/ctx.d.ts +13 -0
  261. package/dist/types/ctx.d.ts.map +1 -0
  262. package/dist/types/gl.d.ts +40 -0
  263. package/dist/types/gl.d.ts.map +1 -0
  264. package/dist/types/layerOptions.d.ts +124 -0
  265. package/dist/types/layerOptions.d.ts.map +1 -0
  266. package/dist/types/map.d.ts +19 -0
  267. package/dist/types/map.d.ts.map +1 -0
  268. package/dist/types/product.d.ts +27 -0
  269. package/dist/types/product.d.ts.map +1 -0
  270. package/package.json +50 -0
@@ -0,0 +1,48 @@
1
+ import { CustomRenderMethodInput } from 'maplibre-gl';
2
+ import { IWindRenderVo } from '../../types/gl';
3
+ import { Bounds } from '../../types/map';
4
+ import { ExTimingLayer, IExTimingLayerProps } from '../base/ExTimingLayer';
5
+ interface IWindParticleLayerOptions {
6
+ numParticles: number;
7
+ width: number;
8
+ maxAge: number;
9
+ color: [number, number, number];
10
+ isAnimation: boolean;
11
+ speedFactor: number;
12
+ opacity: number;
13
+ }
14
+ interface IWindParticleLayerState {
15
+ image1?: IWindRenderVo;
16
+ image2?: IWindRenderVo;
17
+ bounds?: Bounds;
18
+ t: number;
19
+ setNdx: number;
20
+ customRenderMethodInput?: CustomRenderMethodInput;
21
+ time: number;
22
+ numInstances: number;
23
+ numAgedInstances: number;
24
+ previousViewportZoom: number;
25
+ previousTime: number;
26
+ stepRequested: boolean;
27
+ u_line_width: number;
28
+ isRun: boolean;
29
+ }
30
+ export declare class MapLibreWindParticleLayer extends ExTimingLayer<IWindRenderVo> {
31
+ private state;
32
+ private options;
33
+ private FPS;
34
+ private SHADER_MAP;
35
+ constructor(props: IExTimingLayerProps);
36
+ setOptions(options: Partial<IWindParticleLayerOptions>): void;
37
+ setState(state: Partial<IWindParticleLayerState>): void;
38
+ private getShader;
39
+ onMount(): void;
40
+ onUnMount(): void;
41
+ clear(): void;
42
+ onRender(options: CustomRenderMethodInput, wraps: number[]): void;
43
+ runTransform(): void;
44
+ runDraw(offset: number): void;
45
+ updateData(image1: IWindRenderVo | undefined, image2: IWindRenderVo | undefined, t: number): void;
46
+ }
47
+ export {};
48
+ //# sourceMappingURL=MapLibreWindParticleLayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MapLibreWindParticleLayer.d.ts","sourceRoot":"","sources":["../../../src/layers/maplibre-wind-particle/MapLibreWindParticleLayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAGtD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAO3E,UAAU,yBAAyB;IACjC,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,uBAAuB;IAC/B,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,CAAC,EAAE,MAAM,CAAC;IACV,MAAM,EAAE,MAAM,CAAC;IACf,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;IAClD,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,OAAO,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,qBAAa,yBAA0B,SAAQ,aAAa,CAAC,aAAa,CAAC;IACzE,OAAO,CAAC,KAAK,CAA0B;IACvC,OAAO,CAAC,OAAO,CAA4B;IAC3C,OAAO,CAAC,GAAG,CAAM;IACjB,OAAO,CAAC,UAAU,CAWd;gBAEQ,KAAK,EAAE,mBAAmB;IA6B/B,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,yBAAyB,CAAC;IAQtD,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,uBAAuB,CAAC;IAIvD,OAAO,CAAC,SAAS;IAoEV,OAAO;IASP,SAAS,IAAI,IAAI;IAEjB,KAAK,IAAI,IAAI;IAEb,QAAQ,CAAC,OAAO,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,EAAE;IAY1D,YAAY;IAyEZ,OAAO,CAAC,MAAM,EAAE,MAAM;IAgCtB,UAAU,CAAC,MAAM,EAAE,aAAa,GAAG,SAAS,EAAE,MAAM,EAAE,aAAa,GAAG,SAAS,EAAE,CAAC,EAAE,MAAM;CAmBlG"}
@@ -0,0 +1,3 @@
1
+ import { CustomRenderMethodInput } from 'maplibre-gl';
2
+ export declare function getComputeVs(options: CustomRenderMethodInput): string;
3
+ //# sourceMappingURL=computeVs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"computeVs.d.ts","sourceRoot":"","sources":["../../../src/layers/maplibre-wind-particle/computeVs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAItD,wBAAgB,YAAY,CAAC,OAAO,EAAE,uBAAuB,UAwL5D"}
@@ -0,0 +1,3 @@
1
+ import { CustomRenderMethodInput } from 'maplibre-gl';
2
+ export declare const getDrawFs: (options: CustomRenderMethodInput, maskShaderData?: string) => string;
3
+ //# sourceMappingURL=drawFs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawFs.d.ts","sourceRoot":"","sources":["../../../src/layers/maplibre-wind-particle/drawFs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAEtD,eAAO,MAAM,SAAS,GAAI,SAAS,uBAAuB,EAAE,iBAAgB,MAAW,WAoBtF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { CustomRenderMethodInput } from 'maplibre-gl';
2
+ export declare function getDrawVs(options: CustomRenderMethodInput, maskShaderData?: string): string;
3
+ //# sourceMappingURL=drawVs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawVs.d.ts","sourceRoot":"","sources":["../../../src/layers/maplibre-wind-particle/drawVs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAGtD,wBAAgB,SAAS,CAAC,OAAO,EAAE,uBAAuB,EAAE,cAAc,GAAE,MAAW,UA+DtF"}
@@ -0,0 +1,3 @@
1
+ export declare function wrapLongitude(lng: number, minLng?: number): number;
2
+ export declare function wrapBounds(bounds: GeoJSON.BBox): GeoJSON.BBox;
3
+ //# sourceMappingURL=bounds.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bounds.d.ts","sourceRoot":"","sources":["../../../../src/layers/maplibre-wind-particle/utils/bounds.ts"],"names":[],"mappings":"AAIA,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAMlE;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAU7D"}
@@ -0,0 +1,6 @@
1
+ import { Bounds } from '../../../types/map';
2
+ /**
3
+ * 计算带填充的渲染边界
4
+ */
5
+ export declare function calculateRenderBounds(fullBounds: Bounds, sw: [number, number], ne: [number, number], paddingRatio?: number): [number, number, number, number];
6
+ //# sourceMappingURL=calculateRenderBounds.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calculateRenderBounds.d.ts","sourceRoot":"","sources":["../../../../src/layers/mask/fns/calculateRenderBounds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,EAClB,EAAE,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EACpB,EAAE,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EACpB,YAAY,GAAE,MAAY,GACzB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAUlC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * 创建正交投影矩阵
3
+ */
4
+ export declare function createProjectionMatrix(minX: number, minY: number, maxX: number, maxY: number): Float32Array;
5
+ //# sourceMappingURL=createProjectionMatrix.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createProjectionMatrix.d.ts","sourceRoot":"","sources":["../../../../src/layers/mask/fns/createProjectionMatrix.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,YAAY,CAmB3G"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * 检查视口状态是否发生变化
3
+ */
4
+ export interface ViewportState {
5
+ zoom: number;
6
+ center: [number, number];
7
+ }
8
+ export interface Center {
9
+ lng: number;
10
+ lat: number;
11
+ }
12
+ export declare function hasViewportChanged(lastState: ViewportState, currentZoom: number, currentCenter: Center, zoomThreshold?: number, distanceThreshold?: number): boolean;
13
+ //# sourceMappingURL=hasViewportChanged.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hasViewportChanged.d.ts","sourceRoot":"","sources":["../../../../src/layers/mask/fns/hasViewportChanged.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC1B;AAED,MAAM,WAAW,MAAM;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb;AAED,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,aAAa,EACxB,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,EACrB,aAAa,GAAE,MAAa,EAC5B,iBAAiB,GAAE,MAAc,GAChC,OAAO,CAMT"}
@@ -0,0 +1,3 @@
1
+ import { Position } from 'geojson';
2
+ export declare function lngLatToMercator(lngLat: Position): [number, number];
3
+ //# sourceMappingURL=lngLatToMercator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lngLatToMercator.d.ts","sourceRoot":"","sources":["../../../../src/layers/mask/fns/lngLatToMercator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGnC,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,QAAQ,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAGnE"}
@@ -0,0 +1,10 @@
1
+ import type { Feature, FeatureCollection, GeoJsonProperties, MultiPolygon, Polygon } from 'geojson';
2
+ export type MaskGeoJson = FeatureCollection<Polygon | MultiPolygon, GeoJsonProperties> | Feature<Polygon | MultiPolygon, GeoJsonProperties>;
3
+ /**
4
+ * 改进版:解析 GeoJSON 所有要素,生成统一的顶点数据
5
+ */
6
+ export declare function processGeoJSON(geojson: MaskGeoJson): {
7
+ flatData: number[];
8
+ bounds: [number, number, number, number];
9
+ };
10
+ //# sourceMappingURL=processGeoJSON.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"processGeoJSON.d.ts","sourceRoot":"","sources":["../../../../src/layers/mask/fns/processGeoJSON.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,EAAY,MAAM,SAAS,CAAC;AAG9G,MAAM,MAAM,WAAW,GACnB,iBAAiB,CAAC,OAAO,GAAG,YAAY,EAAE,iBAAiB,CAAC,GAC5D,OAAO,CAAC,OAAO,GAAG,YAAY,EAAE,iBAAiB,CAAC,CAAC;AAEvD;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,WAAW,GAAG;IAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;IAAC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CAqCrH"}
@@ -0,0 +1,36 @@
1
+ import { CustomRenderMethodInput } from 'maplibre-gl';
2
+ import { Bounds } from '../../types/map';
3
+ import { ExCustomLayer } from '../base/ExCustomLayer';
4
+ import { MaskGeoJson } from './fns/processGeoJSON';
5
+ type MaskLayerOptions = {
6
+ id: string;
7
+ maskData?: MaskGeoJson;
8
+ };
9
+ export declare class MaskLayer extends ExCustomLayer {
10
+ private maskData?;
11
+ private maskSize;
12
+ private lastViewportState;
13
+ private maskTexture;
14
+ private fbo;
15
+ private vbo;
16
+ private vCount;
17
+ private renderBounds;
18
+ private fullBounds;
19
+ constructor(options: MaskLayerOptions);
20
+ onMount(): void;
21
+ setMaskData(maskData: MaskGeoJson): void;
22
+ onRender(options: CustomRenderMethodInput, wraps: number[]): boolean | void;
23
+ private _updateMask;
24
+ getMaskTexture(): WebGLTexture | null;
25
+ getRenderBounds(): Bounds | null;
26
+ onUnMount(): void;
27
+ private getVertShader;
28
+ private getFragShader;
29
+ static shaderData: {
30
+ vs: string;
31
+ fs: string;
32
+ };
33
+ getMaskUniforms(): Record<string, any>;
34
+ }
35
+ export {};
36
+ //# sourceMappingURL=mask-layer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mask-layer.d.ts","sourceRoot":"","sources":["../../../src/layers/mask/mask-layer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAEtD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAKtD,OAAO,EAAE,WAAW,EAAkB,MAAM,sBAAsB,CAAC;AAEnE,KAAK,gBAAgB,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,WAAW,CAAC;CACxB,CAAC;AAEF,qBAAa,SAAU,SAAQ,aAAa;IAC1C,OAAO,CAAC,QAAQ,CAAC,CAAc;IAC/B,OAAO,CAAC,QAAQ,CAAQ;IACxB,OAAO,CAAC,iBAAiB,CAA+C;IACxE,OAAO,CAAC,WAAW,CAA6B;IAChD,OAAO,CAAC,GAAG,CAAwB;IACnC,OAAO,CAAC,GAAG,CAAmB;IAC9B,OAAO,CAAC,MAAM,CAAU;IACxB,OAAO,CAAC,YAAY,CAAuB;IAC3C,OAAO,CAAC,UAAU,CAAU;gBAEhB,OAAO,EAAE,gBAAgB;IAKrC,OAAO;IAqBA,WAAW,CAAC,QAAQ,EAAE,WAAW;IAcxC,QAAQ,CAAC,OAAO,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,GAAG,IAAI;IAsB3E,OAAO,CAAC,WAAW;IAwBZ,cAAc,IAAI,YAAY,GAAG,IAAI;IAIrC,eAAe,IAAI,MAAM,GAAG,IAAI;IAIvC,SAAS;IAET,OAAO,CAAC,aAAa;IAWrB,OAAO,CAAC,aAAa;IAYrB,MAAM,CAAC,UAAU;;;MAsBf;IAEF,eAAe,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;CAYvC"}
@@ -0,0 +1,22 @@
1
+ import { CustomRenderMethodInput } from 'maplibre-gl';
2
+ import { Bounds } from '../../types/map';
3
+ import { ExCustomLayer } from '../base/ExCustomLayer';
4
+ import { MaskLayer } from './mask-layer';
5
+ type MaskedDataLayerOptions = {
6
+ id: string;
7
+ maskLayer?: MaskLayer;
8
+ };
9
+ export declare class MaskedDataLayer extends ExCustomLayer {
10
+ maskLayer?: MaskLayer;
11
+ bounds: Bounds;
12
+ imageTexture: WebGLTexture | null;
13
+ imageLoaded: boolean;
14
+ constructor(options: MaskedDataLayerOptions);
15
+ onMount(): void;
16
+ onRender(options: CustomRenderMethodInput, wraps: number[]): boolean | void;
17
+ onUnMount(): void;
18
+ getVertShader(options: CustomRenderMethodInput): string;
19
+ getFragShader(): string;
20
+ }
21
+ export {};
22
+ //# sourceMappingURL=masked-data-layer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"masked-data-layer.d.ts","sourceRoot":"","sources":["../../../src/layers/mask/masked-data-layer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAEtD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,KAAK,sBAAsB,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,qBAAa,eAAgB,SAAQ,aAAa;IAChD,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,MAAM,EAAE,MAAM,CAA6B;IAC3C,YAAY,EAAE,YAAY,GAAG,IAAI,CAAQ;IACzC,WAAW,EAAE,OAAO,CAAS;gBAEjB,OAAO,EAAE,sBAAsB;IAK3C,OAAO;IAoBP,QAAQ,CAAC,OAAO,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,GAAG,IAAI;IAmC3E,SAAS;IAET,aAAa,CAAC,OAAO,EAAE,uBAAuB;IAuB9C,aAAa;CAuBd"}
@@ -0,0 +1,3 @@
1
+ import { IMap, IMapState } from '../types/map';
2
+ export declare function getMapState(map: IMap): IMapState;
3
+ //# sourceMappingURL=getMapState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getMapState.d.ts","sourceRoot":"","sources":["../../src/map/getMapState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE/C,wBAAgB,WAAW,CAAC,GAAG,EAAE,IAAI,GAAG,SAAS,CAmBhD"}
@@ -0,0 +1,34 @@
1
+ import { Bounds, IMap, ProjectionType } from '../types/map';
2
+ export declare function mapAction(map: IMap, op: {
3
+ type: 'setProjectionType';
4
+ projectionType: ProjectionType;
5
+ } | {
6
+ type: 'setShowSky';
7
+ showSky?: boolean;
8
+ } | {
9
+ type: 'disableZoom';
10
+ isDisable?: boolean;
11
+ } | {
12
+ type: 'disableMove';
13
+ isDisable?: boolean;
14
+ } | {
15
+ type: 'setBaseState';
16
+ zoom?: number;
17
+ center?: [lng: number, lat: number];
18
+ pitch?: number;
19
+ bearing?: number;
20
+ maxZoom?: number;
21
+ minZoom?: number;
22
+ } | {
23
+ type: 'flyTo';
24
+ zoom?: number;
25
+ center?: [lng: number, lat: number];
26
+ pitch?: number;
27
+ bearing?: number;
28
+ duration?: number;
29
+ } | {
30
+ type: 'fitBounds';
31
+ bounds?: Bounds;
32
+ duration?: number;
33
+ }): void;
34
+ //# sourceMappingURL=mapAction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mapAction.d.ts","sourceRoot":"","sources":["../../src/map/mapAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE5D,wBAAgB,SAAS,CACvB,GAAG,EAAE,IAAI,EACT,EAAE,EACE;IAAE,IAAI,EAAE,mBAAmB,CAAC;IAAC,cAAc,EAAE,cAAc,CAAA;CAAE,GAC7D;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,GACzC;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,GAC5C;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,GAC5C;IACE,IAAI,EAAE,cAAc,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,GACD;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,GAC1H;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,QA8D9D"}
@@ -0,0 +1,3 @@
1
+ import { IGisCtx } from '../types/ctx';
2
+ export declare function mapAutoRotation(ctx: IGisCtx): void;
3
+ //# sourceMappingURL=mapAutoRotation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mapAutoRotation.d.ts","sourceRoot":"","sources":["../../src/map/mapAutoRotation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAkBvC,wBAAgB,eAAe,CAAC,GAAG,EAAE,OAAO,QAkE3C"}
@@ -0,0 +1,4 @@
1
+ import maplibregl from 'maplibre-gl';
2
+ import { IGisCtx } from '../types/ctx';
3
+ export declare function createMap(mapContainer: string | HTMLElement, ctx: IGisCtx): maplibregl.Map;
4
+ //# sourceMappingURL=mapCreate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mapCreate.d.ts","sourceRoot":"","sources":["../../src/map/mapCreate.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,wBAAgB,SAAS,CAAC,YAAY,EAAE,MAAM,GAAG,WAAW,EAAE,GAAG,EAAE,OAAO,kBAwBzE"}
@@ -0,0 +1,16 @@
1
+ import { Emitter } from 'mitt';
2
+ import { IMapState } from '../types/map';
3
+ export type MapSyncEvent = {
4
+ syncMapMove: {
5
+ fromMapGroup?: string;
6
+ fromMapId: string;
7
+ state: IMapState;
8
+ };
9
+ syncTime: {
10
+ fromMapGroup?: string;
11
+ fromMapId: string;
12
+ currTm: number;
13
+ };
14
+ };
15
+ export declare const mapSyncEvent: Emitter<MapSyncEvent>;
16
+ //# sourceMappingURL=mapEvent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mapEvent.d.ts","sourceRoot":"","sources":["../../src/map/mapEvent.ts"],"names":[],"mappings":"AAAA,OAAa,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,EAAE;QACX,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,SAAS,EAAE,MAAM,CAAC;QAClB,KAAK,EAAE,SAAS,CAAC;KAClB,CAAC;IACF,QAAQ,EAAE;QACR,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,OAAO,CAAC,YAAY,CAAwB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { IGisCtx } from '../types/ctx';
2
+ import { IMap } from '../types/map';
3
+ export declare function initMapState(map: IMap, ctx: IGisCtx): void;
4
+ //# sourceMappingURL=mapInitState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mapInitState.d.ts","sourceRoot":"","sources":["../../src/map/mapInitState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAGpC,wBAAgB,YAAY,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,QA2DnD"}
@@ -0,0 +1,8 @@
1
+ import { IGisCtx } from '../types/ctx';
2
+ /**
3
+ * 对map进行截图
4
+ * @param gisStore
5
+ * @returns
6
+ */
7
+ export declare function mapScreenshotHandler(ctx: IGisCtx): (() => void) | undefined;
8
+ //# sourceMappingURL=mapScreenshotHandler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mapScreenshotHandler.d.ts","sourceRoot":"","sources":["../../src/map/mapScreenshotHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGvC;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,OAAO,4BAqChD"}
@@ -0,0 +1,8 @@
1
+ import { IGisCtx } from '../types/ctx';
2
+ /**
3
+ * 多个map同步状态
4
+ * @param gisStore
5
+ * @returns
6
+ */
7
+ export declare function mapSyncMoveHandler(ctx: IGisCtx): (() => void) | undefined;
8
+ //# sourceMappingURL=mapSyncMoveHandler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mapSyncMoveHandler.d.ts","sourceRoot":"","sources":["../../src/map/mapSyncMoveHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAIvC;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,OAAO,4BAuC9C"}
@@ -0,0 +1,8 @@
1
+ import { IGisCtx } from '../types/ctx';
2
+ /**
3
+ * 多个map同步时间
4
+ * @param gisStore
5
+ * @returns
6
+ */
7
+ export declare function mapSyncTimeHandler(ctx: IGisCtx): (() => void) | undefined;
8
+ //# sourceMappingURL=mapSyncTimeHandler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mapSyncTimeHandler.d.ts","sourceRoot":"","sources":["../../src/map/mapSyncTimeHandler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGvC;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,OAAO,4BAuC9C"}
@@ -0,0 +1,13 @@
1
+ import maplibregl from 'maplibre-gl';
2
+ export declare class HoverMarker {
3
+ private static timer;
4
+ private static infoMarker;
5
+ private static infoMarkerEl;
6
+ static hide(map: maplibregl.Map): void;
7
+ static show(map: maplibregl.Map, params: {
8
+ lng: number;
9
+ lat: number;
10
+ html: string;
11
+ }): void;
12
+ }
13
+ //# sourceMappingURL=markerHover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markerHover.d.ts","sourceRoot":"","sources":["../../src/map/markerHover.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,aAAa,CAAC;AAErC,qBAAa,WAAW;IACtB,OAAO,CAAC,MAAM,CAAC,KAAK,CAA+B;IACnD,OAAO,CAAC,MAAM,CAAC,UAAU,CAAoB;IAC7C,OAAO,CAAC,MAAM,CAAC,YAAY,CAAiB;WAE9B,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,GAAG;WAUxB,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE;CAc3F"}
@@ -0,0 +1,15 @@
1
+ import maplibregl, { LngLat } from 'maplibre-gl';
2
+ export declare class MarkerMgr {
3
+ private infoMarker;
4
+ private infoMarkerEl;
5
+ static map: Record<string, MarkerMgr>;
6
+ static getInstance(id: string): MarkerMgr;
7
+ constructor();
8
+ hide(map: maplibregl.Map): void;
9
+ show(map: maplibregl.Map, params: {
10
+ lngLat: LngLat;
11
+ html: string;
12
+ }): void;
13
+ setEnable(enable: boolean): void;
14
+ }
15
+ //# sourceMappingURL=markerMgr.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markerMgr.d.ts","sourceRoot":"","sources":["../../src/map/markerMgr.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAEjD,qBAAa,SAAS;IACpB,OAAO,CAAC,UAAU,CAAkC;IACpD,OAAO,CAAC,YAAY,CAA+B;IAEnD,OAAc,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAM;WAEpC,WAAW,CAAC,EAAE,EAAE,MAAM;;IAa7B,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,GAAG;IAUxB,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE;IAYlE,SAAS,CAAC,MAAM,EAAE,OAAO;CAOjC"}
@@ -0,0 +1,8 @@
1
+ import { IGisCtx } from '../types/ctx';
2
+ /**
3
+ * 将map的状态同步到gisStore中
4
+ * @param gisStore
5
+ * @returns
6
+ */
7
+ export declare function syncMapStateToStoreHandler(ctx: IGisCtx): void;
8
+ //# sourceMappingURL=syncMapStateToStoreHandler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"syncMapStateToStoreHandler.d.ts","sourceRoot":"","sources":["../../src/map/syncMapStateToStoreHandler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAIvC;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,OAAO,QA6BtD"}
@@ -0,0 +1,8 @@
1
+ import { IGisCtx } from '../types/ctx';
2
+ /**
3
+ * 将gisStore的状态同步设置到map中
4
+ * @param gisStore
5
+ * @returns
6
+ */
7
+ export declare function syncStoreStateToMapHandler(ctx: IGisCtx): void;
8
+ //# sourceMappingURL=syncStoreStateToMapHandler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"syncStoreStateToMapHandler.d.ts","sourceRoot":"","sources":["../../src/map/syncStoreStateToMapHandler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGvC;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,OAAO,QAuCtD"}
@@ -0,0 +1,24 @@
1
+ import { ICityConfig, IDataFetchConfig, IDataReqOptionsConfig, ILayerMgrConfig, IProductConfig } from '../interfaces';
2
+ export interface IEnvConfig {
3
+ TILES_DEM_URL: string;
4
+ TILES_TDT_IBO_URL: string;
5
+ TILES_TDT_CVA_URL: string;
6
+ TILES_TDT_VEC_URL: string;
7
+ TILES_TDT_IMG_URL: string;
8
+ TILES_WINDY_URL: string;
9
+ TILES_MAPTILER_DATAVIZ_URL: string;
10
+ }
11
+ export interface IReadOnlyConfigStoreValue<LayerT, ProductTypeT, ModelTypeT, DataReqT> {
12
+ envConfig: IEnvConfig;
13
+ productConfig: IProductConfig<LayerT, ProductTypeT, ModelTypeT, DataReqT>;
14
+ dataFetchConfig: IDataFetchConfig;
15
+ layerMgrConfig: ILayerMgrConfig;
16
+ dataReqOptionsConfig: IDataReqOptionsConfig;
17
+ cityConfig?: ICityConfig;
18
+ }
19
+ export interface IConfigStoreState<LayerT, ProductTypeT, ModelTypeT, DataReqT> extends IReadOnlyConfigStoreValue<LayerT, ProductTypeT, ModelTypeT, DataReqT> {
20
+ initCtx: () => void;
21
+ }
22
+ export declare function createConfigStore<LayerT, ProductTypeT, ModelTypeT, DataReqT>(initState: IReadOnlyConfigStoreValue<LayerT, ProductTypeT, ModelTypeT, DataReqT>): any;
23
+ export type IConfigStore<LayerT = object, ProductTypeT = string, ModelTypeT = string, DataReqT = object> = ReturnType<typeof createConfigStore<LayerT, ProductTypeT, ModelTypeT, DataReqT>>;
24
+ //# sourceMappingURL=configStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configStore.d.ts","sourceRoot":"","sources":["../../src/store/configStore.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEtH,MAAM,WAAW,UAAU;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,0BAA0B,EAAE,MAAM,CAAC;CACpC;AAED,MAAM,WAAW,yBAAyB,CAAC,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ;IACnF,SAAS,EAAE,UAAU,CAAC;IACtB,aAAa,EAAE,cAAc,CAAC,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;IAC1E,eAAe,EAAE,gBAAgB,CAAC;IAClC,cAAc,EAAE,eAAe,CAAC;IAChC,oBAAoB,EAAE,qBAAqB,CAAC;IAC5C,UAAU,CAAC,EAAE,WAAW,CAAC;CAC1B;AAED,MAAM,WAAW,iBAAiB,CAAC,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,CAAE,SAAQ,yBAAyB,CAC9G,MAAM,EACN,YAAY,EACZ,UAAU,EACV,QAAQ,CACT;IACC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAuBD,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,EAC1E,SAAS,EAAE,yBAAyB,CAAC,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,CAAC,GAa3E,GAAG,CACT;AAED,MAAM,MAAM,YAAY,CAAC,MAAM,GAAG,MAAM,EAAE,YAAY,GAAG,MAAM,EAAE,UAAU,GAAG,MAAM,EAAE,QAAQ,GAAG,MAAM,IAAI,UAAU,CACnH,OAAO,iBAAiB,CAAC,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,CAAC,CACrE,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { ProductCtx } from '../types/ctx';
2
+ import { IReadOnlyConfigStoreValue } from './configStore';
3
+ import { IGisState, IGisStyleOptions, IGisValue } from './gisStore';
4
+ export declare function getInitValue<LayerT = object, ProductTypeT = string, ModelTypeT = string, DataReqT = object>(configStoreValue: IReadOnlyConfigStoreValue<LayerT, ProductTypeT, ModelTypeT, DataReqT>, initState?: Partial<IGisValue<LayerT, ProductTypeT, ModelTypeT, DataReqT>>): {
5
+ gisValue: IGisValue<LayerT, ProductTypeT, ModelTypeT, DataReqT>;
6
+ gisStoreValue: IGisState<LayerT, ProductTypeT, ModelTypeT, DataReqT>;
7
+ };
8
+ export declare function getGisValue<LayerT = object, ProductTypeT = string, ModelTypeT = string, DataReqT = object>(ctx: ProductCtx<LayerT, ProductTypeT, ModelTypeT, DataReqT>, params?: {
9
+ gisStyleOptions?: Partial<IGisStyleOptions>;
10
+ layerOptions?: Partial<LayerT>;
11
+ }): IGisValue<LayerT, ProductTypeT, ModelTypeT, DataReqT>;
12
+ export declare function getDefGisStyleOptions(params?: Partial<IGisStyleOptions>): IGisStyleOptions;
13
+ export declare function getDefLayerOptions<LayerT = object, ProductTypeT = string, ModelTypeT = string, DataReqT = object>(ctx: ProductCtx<LayerT, ProductTypeT, ModelTypeT, DataReqT>, params?: Partial<LayerT>): LayerT;
14
+ //# sourceMappingURL=defValue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defValue.d.ts","sourceRoot":"","sources":["../../src/store/defValue.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEpE,wBAAgB,YAAY,CAAC,MAAM,GAAG,MAAM,EAAE,YAAY,GAAG,MAAM,EAAE,UAAU,GAAG,MAAM,EAAE,QAAQ,GAAG,MAAM,EACzG,gBAAgB,EAAE,yBAAyB,CAAC,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,CAAC,EACvF,SAAS,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC,GACzE;IACD,QAAQ,EAAE,SAAS,CAAC,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;IAChE,aAAa,EAAE,SAAS,CAAC,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;CACtE,CAwCA;AAED,wBAAgB,WAAW,CAAC,MAAM,GAAG,MAAM,EAAE,YAAY,GAAG,MAAM,EAAE,UAAU,GAAG,MAAM,EAAE,QAAQ,GAAG,MAAM,EACxG,GAAG,EAAE,UAAU,CAAC,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,CAAC,EAC3D,MAAM,CAAC,EAAE;IACP,eAAe,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC5C,YAAY,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;CAChC,GACA,SAAS,CAAC,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,CAAC,CASvD;AAED,wBAAgB,qBAAqB,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,gBAAgB,CA0C1F;AAED,wBAAgB,kBAAkB,CAAC,MAAM,GAAG,MAAM,EAAE,YAAY,GAAG,MAAM,EAAE,UAAU,GAAG,MAAM,EAAE,QAAQ,GAAG,MAAM,EAC/G,GAAG,EAAE,UAAU,CAAC,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,CAAC,EAC3D,MAAM,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,GACvB,MAAM,CAMR"}