@vtx/ol-map 1.0.164 → 2.0.0-beta.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 (525) hide show
  1. package/package.json +9 -8
  2. package/lib/_util/EventEmitter.js +0 -78
  3. package/lib/_util/EventEmitter.js.map +0 -1
  4. package/lib/_util/StyleCache.js +0 -46
  5. package/lib/_util/StyleCache.js.map +0 -1
  6. package/lib/_util/encryptParams.js +0 -60
  7. package/lib/_util/encryptParams.js.map +0 -1
  8. package/lib/_util/filterSpecialCharacters.js +0 -90
  9. package/lib/_util/filterSpecialCharacters.js.map +0 -1
  10. package/lib/_util/getComponentProps.js +0 -14
  11. package/lib/_util/getComponentProps.js.map +0 -1
  12. package/lib/_util/getCookie.js +0 -24
  13. package/lib/_util/getCookie.js.map +0 -1
  14. package/lib/_util/getDefaultMapInfo.js +0 -50
  15. package/lib/_util/getDefaultMapInfo.js.map +0 -1
  16. package/lib/_util/getSystemInfo.js +0 -26
  17. package/lib/_util/getSystemInfo.js.map +0 -1
  18. package/lib/_util/getToken.js +0 -27
  19. package/lib/_util/getToken.js.map +0 -1
  20. package/lib/_util/getUrlParam.js +0 -15
  21. package/lib/_util/getUrlParam.js.map +0 -1
  22. package/lib/_util/http.js +0 -176
  23. package/lib/_util/http.js.map +0 -1
  24. package/lib/_util/isFunction.js +0 -10
  25. package/lib/_util/isFunction.js.map +0 -1
  26. package/lib/_util/isObject.js +0 -10
  27. package/lib/_util/isObject.js.map +0 -1
  28. package/lib/_util/layer.js +0 -152
  29. package/lib/_util/layer.js.map +0 -1
  30. package/lib/_util/mapTool.js +0 -188
  31. package/lib/_util/mapTool.js.map +0 -1
  32. package/lib/_util/projzh/datum/bd-09.js +0 -44
  33. package/lib/_util/projzh/datum/bd-09.js.map +0 -1
  34. package/lib/_util/projzh/datum/gcj-02.js +0 -72
  35. package/lib/_util/projzh/datum/gcj-02.js.map +0 -1
  36. package/lib/_util/projzh/datum/index.js +0 -14
  37. package/lib/_util/projzh/datum/index.js.map +0 -1
  38. package/lib/_util/projzh/index.js +0 -40
  39. package/lib/_util/projzh/index.js.map +0 -1
  40. package/lib/_util/projzh/projection/baidu-mercator.js +0 -74
  41. package/lib/_util/projzh/projection/baidu-mercator.js.map +0 -1
  42. package/lib/_util/projzh/projection/index.js +0 -14
  43. package/lib/_util/projzh/projection/index.js.map +0 -1
  44. package/lib/_util/projzh/projection/spherical-mercator.js +0 -25
  45. package/lib/_util/projzh/projection/spherical-mercator.js.map +0 -1
  46. package/lib/_util/projzh/util.js +0 -27
  47. package/lib/_util/projzh/util.js.map +0 -1
  48. package/lib/_util/search.js +0 -130
  49. package/lib/_util/search.js.map +0 -1
  50. package/lib/_util/setCookie.js +0 -15
  51. package/lib/_util/setCookie.js.map +0 -1
  52. package/lib/_util/stringToFun.js +0 -25
  53. package/lib/_util/stringToFun.js.map +0 -1
  54. package/lib/_util/transform.js +0 -169
  55. package/lib/_util/transform.js.map +0 -1
  56. package/lib/_util/useColSize.js +0 -28
  57. package/lib/_util/useColSize.js.map +0 -1
  58. package/lib/_util/useInterval.js +0 -19
  59. package/lib/_util/useInterval.js.map +0 -1
  60. package/lib/_util/useSet.js +0 -44
  61. package/lib/_util/useSet.js.map +0 -1
  62. package/lib/analysis-layer/index.js +0 -461
  63. package/lib/analysis-layer/index.js.map +0 -1
  64. package/lib/analysis-layer/style/css.js +0 -2
  65. package/lib/analysis-layer/style/css.js.map +0 -1
  66. package/lib/analysis-layer/style/index.js +0 -2
  67. package/lib/analysis-layer/style/index.js.map +0 -1
  68. package/lib/assets/arrow.png +0 -0
  69. package/lib/assets/base-img-1.png +0 -0
  70. package/lib/assets/base-img-2.png +0 -0
  71. package/lib/assets/base-img-3.png +0 -0
  72. package/lib/assets/base-img-4.png +0 -0
  73. package/lib/assets/base-img-5.png +0 -0
  74. package/lib/assets/base-img-6.png +0 -0
  75. package/lib/assets/base-img.png +0 -0
  76. package/lib/assets/bz.png +0 -0
  77. package/lib/assets/img.png +0 -0
  78. package/lib/assets/kz.png +0 -0
  79. package/lib/assets/ll.png +0 -0
  80. package/lib/assets/location.png +0 -0
  81. package/lib/assets/noLocation.png +0 -0
  82. package/lib/assets/people.png +0 -0
  83. package/lib/assets/qd.png +0 -0
  84. package/lib/assets/sw.png +0 -0
  85. package/lib/assets/yl.png +0 -0
  86. package/lib/assets/zd.png +0 -0
  87. package/lib/buffer-draw/BufferDraw.js +0 -399
  88. package/lib/buffer-draw/BufferDraw.js.map +0 -1
  89. package/lib/buffer-draw/index.js +0 -58
  90. package/lib/buffer-draw/index.js.map +0 -1
  91. package/lib/buffer-draw/style/css.js +0 -2
  92. package/lib/buffer-draw/style/css.js.map +0 -1
  93. package/lib/buffer-draw/style/index.js +0 -2
  94. package/lib/buffer-draw/style/index.js.map +0 -1
  95. package/lib/circle/Circle.js +0 -51
  96. package/lib/circle/Circle.js.map +0 -1
  97. package/lib/circle/index.js +0 -64
  98. package/lib/circle/index.js.map +0 -1
  99. package/lib/circle/style/css.js +0 -2
  100. package/lib/circle/style/css.js.map +0 -1
  101. package/lib/circle/style/index.js +0 -2
  102. package/lib/circle/style/index.js.map +0 -1
  103. package/lib/config.js +0 -12
  104. package/lib/config.js.map +0 -1
  105. package/lib/convertCamelToCSS.js +0 -23
  106. package/lib/convertCamelToCSS.js.map +0 -1
  107. package/lib/dom/Dom.js +0 -39
  108. package/lib/dom/Dom.js.map +0 -1
  109. package/lib/dom/index.js +0 -82
  110. package/lib/dom/index.js.map +0 -1
  111. package/lib/dom/style/css.js +0 -2
  112. package/lib/dom/style/css.js.map +0 -1
  113. package/lib/dom/style/index.js +0 -2
  114. package/lib/dom/style/index.js.map +0 -1
  115. package/lib/dom-layer/index.js +0 -249
  116. package/lib/dom-layer/index.js.map +0 -1
  117. package/lib/dom-layer/style/css.js +0 -4
  118. package/lib/dom-layer/style/css.js.map +0 -1
  119. package/lib/dom-layer/style/index.css +0 -3
  120. package/lib/dom-layer/style/index.js +0 -4
  121. package/lib/dom-layer/style/index.js.map +0 -1
  122. package/lib/dom-layer/style/index.less +0 -3
  123. package/lib/events/index.js +0 -25
  124. package/lib/events/index.js.map +0 -1
  125. package/lib/feature-draw/FeatureDraw.js +0 -231
  126. package/lib/feature-draw/FeatureDraw.js.map +0 -1
  127. package/lib/feature-draw/index.js +0 -75
  128. package/lib/feature-draw/index.js.map +0 -1
  129. package/lib/feature-draw/style/css.js +0 -2
  130. package/lib/feature-draw/style/css.js.map +0 -1
  131. package/lib/feature-draw/style/index.js +0 -2
  132. package/lib/feature-draw/style/index.js.map +0 -1
  133. package/lib/feature-layer/FeatureLayer.js +0 -1057
  134. package/lib/feature-layer/FeatureLayer.js.map +0 -1
  135. package/lib/feature-layer/MyCluster.js +0 -150
  136. package/lib/feature-layer/MyCluster.js.map +0 -1
  137. package/lib/feature-layer/createFeatureCollection.js +0 -167
  138. package/lib/feature-layer/createFeatureCollection.js.map +0 -1
  139. package/lib/feature-layer/index.js +0 -154
  140. package/lib/feature-layer/index.js.map +0 -1
  141. package/lib/feature-layer/style/css.js +0 -4
  142. package/lib/feature-layer/style/css.js.map +0 -1
  143. package/lib/feature-layer/style/index.css +0 -0
  144. package/lib/feature-layer/style/index.js +0 -4
  145. package/lib/feature-layer/style/index.js.map +0 -1
  146. package/lib/feature-layer/style/index.less +0 -0
  147. package/lib/flow-line-layer/FlowLineLayer.js +0 -197
  148. package/lib/flow-line-layer/FlowLineLayer.js.map +0 -1
  149. package/lib/flow-line-layer/index.js +0 -126
  150. package/lib/flow-line-layer/index.js.map +0 -1
  151. package/lib/flow-line-layer/style/css.js +0 -4
  152. package/lib/flow-line-layer/style/css.js.map +0 -1
  153. package/lib/flow-line-layer/style/index.css +0 -0
  154. package/lib/flow-line-layer/style/index.js +0 -4
  155. package/lib/flow-line-layer/style/index.js.map +0 -1
  156. package/lib/flow-line-layer/style/index.less +0 -0
  157. package/lib/fly-line-layer/FlyLineLayer.js +0 -218
  158. package/lib/fly-line-layer/FlyLineLayer.js.map +0 -1
  159. package/lib/fly-line-layer/index.js +0 -109
  160. package/lib/fly-line-layer/index.js.map +0 -1
  161. package/lib/fly-line-layer/style/css.js +0 -4
  162. package/lib/fly-line-layer/style/css.js.map +0 -1
  163. package/lib/fly-line-layer/style/index.css +0 -0
  164. package/lib/fly-line-layer/style/index.js +0 -4
  165. package/lib/fly-line-layer/style/index.js.map +0 -1
  166. package/lib/fly-line-layer/style/index.less +0 -0
  167. package/lib/group-layer/GroupLayer.js +0 -132
  168. package/lib/group-layer/GroupLayer.js.map +0 -1
  169. package/lib/group-layer/index.js +0 -73
  170. package/lib/group-layer/index.js.map +0 -1
  171. package/lib/group-layer/style/css.js +0 -4
  172. package/lib/group-layer/style/css.js.map +0 -1
  173. package/lib/group-layer/style/index.css +0 -0
  174. package/lib/group-layer/style/index.js +0 -4
  175. package/lib/group-layer/style/index.js.map +0 -1
  176. package/lib/group-layer/style/index.less +0 -0
  177. package/lib/heatmap-layer/HeatmapLayer.js +0 -191
  178. package/lib/heatmap-layer/HeatmapLayer.js.map +0 -1
  179. package/lib/heatmap-layer/index.js +0 -102
  180. package/lib/heatmap-layer/index.js.map +0 -1
  181. package/lib/heatmap-layer/style/css.js +0 -4
  182. package/lib/heatmap-layer/style/css.js.map +0 -1
  183. package/lib/heatmap-layer/style/index.css +0 -0
  184. package/lib/heatmap-layer/style/index.js +0 -4
  185. package/lib/heatmap-layer/style/index.js.map +0 -1
  186. package/lib/heatmap-layer/style/index.less +0 -0
  187. package/lib/high-layer/HighLayer.js +0 -200
  188. package/lib/high-layer/HighLayer.js.map +0 -1
  189. package/lib/high-layer/index.js +0 -46
  190. package/lib/high-layer/index.js.map +0 -1
  191. package/lib/high-layer/style/css.js +0 -2
  192. package/lib/high-layer/style/css.js.map +0 -1
  193. package/lib/high-layer/style/index.js +0 -2
  194. package/lib/high-layer/style/index.js.map +0 -1
  195. package/lib/image-layer/ImageLayer.js +0 -330
  196. package/lib/image-layer/ImageLayer.js.map +0 -1
  197. package/lib/image-layer/ImageTileLayer.js +0 -332
  198. package/lib/image-layer/ImageTileLayer.js.map +0 -1
  199. package/lib/image-layer/index.js +0 -100
  200. package/lib/image-layer/index.js.map +0 -1
  201. package/lib/image-layer/style/css.js +0 -4
  202. package/lib/image-layer/style/css.js.map +0 -1
  203. package/lib/image-layer/style/index.css +0 -0
  204. package/lib/image-layer/style/index.js +0 -4
  205. package/lib/image-layer/style/index.js.map +0 -1
  206. package/lib/image-layer/style/index.less +0 -0
  207. package/lib/index.js +0 -208
  208. package/lib/index.js.map +0 -1
  209. package/lib/legend/index.js +0 -253
  210. package/lib/legend/index.js.map +0 -1
  211. package/lib/legend/style/css.js +0 -8
  212. package/lib/legend/style/css.js.map +0 -1
  213. package/lib/legend/style/index.css +0 -109
  214. package/lib/legend/style/index.js +0 -8
  215. package/lib/legend/style/index.js.map +0 -1
  216. package/lib/legend/style/index.less +0 -100
  217. package/lib/map/Analysis.js +0 -148
  218. package/lib/map/Analysis.js.map +0 -1
  219. package/lib/map/Layers.js +0 -337
  220. package/lib/map/Layers.js.map +0 -1
  221. package/lib/map/Popup.js +0 -386
  222. package/lib/map/Popup.js.map +0 -1
  223. package/lib/map/ScaleDenominator.js +0 -68
  224. package/lib/map/ScaleDenominator.js.map +0 -1
  225. package/lib/map/Test.js +0 -144
  226. package/lib/map/Test.js.map +0 -1
  227. package/lib/map/defaultTextEnum.js +0 -165
  228. package/lib/map/defaultTextEnum.js.map +0 -1
  229. package/lib/map/getBaseLayers/imagery/amap/AmapImageryProvider.js +0 -163
  230. package/lib/map/getBaseLayers/imagery/amap/AmapImageryProvider.js.map +0 -1
  231. package/lib/map/getBaseLayers/imagery/baidu/BaiduImageryProvider.js +0 -84
  232. package/lib/map/getBaseLayers/imagery/baidu/BaiduImageryProvider.js.map +0 -1
  233. package/lib/map/getBaseLayers/imagery/geoq/GeoQImageryProvider.js +0 -65
  234. package/lib/map/getBaseLayers/imagery/geoq/GeoQImageryProvider.js.map +0 -1
  235. package/lib/map/getBaseLayers/imagery/tdt/TdtImageryProvider.js +0 -84
  236. package/lib/map/getBaseLayers/imagery/tdt/TdtImageryProvider.js.map +0 -1
  237. package/lib/map/getBaseLayers/index.js +0 -46
  238. package/lib/map/getBaseLayers/index.js.map +0 -1
  239. package/lib/map/index.js +0 -837
  240. package/lib/map/index.js.map +0 -1
  241. package/lib/map/style/css.js +0 -5
  242. package/lib/map/style/css.js.map +0 -1
  243. package/lib/map/style/index.css +0 -171
  244. package/lib/map/style/index.js +0 -5
  245. package/lib/map/style/index.js.map +0 -1
  246. package/lib/map/style/index.less +0 -152
  247. package/lib/map-icon/svg/index.js +0 -81
  248. package/lib/map-icon/svg/index.js.map +0 -1
  249. package/lib/map-icon/svg/tuceng.svg.js +0 -2
  250. package/lib/map-icon/svg/tuceng.svg.js.map +0 -1
  251. package/lib/marker/Marker.js +0 -105
  252. package/lib/marker/Marker.js.map +0 -1
  253. package/lib/marker/index.js +0 -61
  254. package/lib/marker/index.js.map +0 -1
  255. package/lib/marker/style/css.js +0 -2
  256. package/lib/marker/style/css.js.map +0 -1
  257. package/lib/marker/style/index.js +0 -2
  258. package/lib/marker/style/index.js.map +0 -1
  259. package/lib/path-line-layer/PathLineLayer.js +0 -45
  260. package/lib/path-line-layer/PathLineLayer.js.map +0 -1
  261. package/lib/path-line-layer/getPathLineStyles.js +0 -71
  262. package/lib/path-line-layer/getPathLineStyles.js.map +0 -1
  263. package/lib/path-line-layer/index.js +0 -151
  264. package/lib/path-line-layer/index.js.map +0 -1
  265. package/lib/path-line-layer/style/css.js +0 -4
  266. package/lib/path-line-layer/style/css.js.map +0 -1
  267. package/lib/path-line-layer/style/index.css +0 -0
  268. package/lib/path-line-layer/style/index.js +0 -4
  269. package/lib/path-line-layer/style/index.js.map +0 -1
  270. package/lib/path-line-layer/style/index.less +0 -0
  271. package/lib/path-play-back/PathPlayBack.js +0 -700
  272. package/lib/path-play-back/PathPlayBack.js.map +0 -1
  273. package/lib/path-play-back/index.js +0 -83
  274. package/lib/path-play-back/index.js.map +0 -1
  275. package/lib/path-play-back/style/css.js +0 -2
  276. package/lib/path-play-back/style/css.js.map +0 -1
  277. package/lib/path-play-back/style/index.js +0 -2
  278. package/lib/path-play-back/style/index.js.map +0 -1
  279. package/lib/poi-search/Location.js +0 -62
  280. package/lib/poi-search/Location.js.map +0 -1
  281. package/lib/poi-search/PoiList.js +0 -118
  282. package/lib/poi-search/PoiList.js.map +0 -1
  283. package/lib/poi-search/Search.js +0 -207
  284. package/lib/poi-search/Search.js.map +0 -1
  285. package/lib/poi-search/index.js +0 -172
  286. package/lib/poi-search/index.js.map +0 -1
  287. package/lib/poi-search/style/css.js +0 -8
  288. package/lib/poi-search/style/css.js.map +0 -1
  289. package/lib/poi-search/style/index.css +0 -96
  290. package/lib/poi-search/style/index.js +0 -8
  291. package/lib/poi-search/style/index.js.map +0 -1
  292. package/lib/poi-search/style/index.less +0 -97
  293. package/lib/point/Point.js +0 -57
  294. package/lib/point/Point.js.map +0 -1
  295. package/lib/point/index.js +0 -61
  296. package/lib/point/index.js.map +0 -1
  297. package/lib/point/style/css.js +0 -2
  298. package/lib/point/style/css.js.map +0 -1
  299. package/lib/point/style/index.js +0 -2
  300. package/lib/point/style/index.js.map +0 -1
  301. package/lib/polygon/Polygon.js +0 -51
  302. package/lib/polygon/Polygon.js.map +0 -1
  303. package/lib/polygon/index.js +0 -61
  304. package/lib/polygon/index.js.map +0 -1
  305. package/lib/polygon/style/css.js +0 -2
  306. package/lib/polygon/style/css.js.map +0 -1
  307. package/lib/polygon/style/index.js +0 -2
  308. package/lib/polygon/style/index.js.map +0 -1
  309. package/lib/polyline/Polyline.js +0 -51
  310. package/lib/polyline/Polyline.js.map +0 -1
  311. package/lib/polyline/index.js +0 -61
  312. package/lib/polyline/index.js.map +0 -1
  313. package/lib/polyline/style/css.js +0 -2
  314. package/lib/polyline/style/css.js.map +0 -1
  315. package/lib/polyline/style/index.js +0 -2
  316. package/lib/polyline/style/index.js.map +0 -1
  317. package/lib/popup/index.js +0 -202
  318. package/lib/popup/index.js.map +0 -1
  319. package/lib/popup/style/css.js +0 -4
  320. package/lib/popup/style/css.js.map +0 -1
  321. package/lib/popup/style/index.css +0 -131
  322. package/lib/popup/style/index.js +0 -4
  323. package/lib/popup/style/index.js.map +0 -1
  324. package/lib/popup/style/index.less +0 -129
  325. package/lib/provider/index.js +0 -12
  326. package/lib/provider/index.js.map +0 -1
  327. package/lib/provider/style/css.js +0 -2
  328. package/lib/provider/style/css.js.map +0 -1
  329. package/lib/provider/style/index.js +0 -2
  330. package/lib/provider/style/index.js.map +0 -1
  331. package/lib/renderer/Fill.js +0 -37
  332. package/lib/renderer/Fill.js.map +0 -1
  333. package/lib/renderer/Stroke.js +0 -39
  334. package/lib/renderer/Stroke.js.map +0 -1
  335. package/lib/renderer/index.js +0 -137
  336. package/lib/renderer/index.js.map +0 -1
  337. package/lib/renderer/style/css.js +0 -4
  338. package/lib/renderer/style/css.js.map +0 -1
  339. package/lib/renderer/style/index.css +0 -0
  340. package/lib/renderer/style/index.js +0 -4
  341. package/lib/renderer/style/index.js.map +0 -1
  342. package/lib/renderer/style/index.less +0 -0
  343. package/lib/renderer/transformRgb.js +0 -33
  344. package/lib/renderer/transformRgb.js.map +0 -1
  345. package/lib/search-map/VtxModal.js +0 -202
  346. package/lib/search-map/VtxModal.js.map +0 -1
  347. package/lib/search-map/index.js +0 -515
  348. package/lib/search-map/index.js.map +0 -1
  349. package/lib/search-map/style/css.js +0 -6
  350. package/lib/search-map/style/css.js.map +0 -1
  351. package/lib/search-map/style/index.css +0 -73
  352. package/lib/search-map/style/index.js +0 -6
  353. package/lib/search-map/style/index.js.map +0 -1
  354. package/lib/search-map/style/index.less +0 -83
  355. package/lib/search-map/style/modal.css +0 -54
  356. package/lib/search-map/style/modal.less +0 -58
  357. package/lib/style/index.css +0 -0
  358. package/lib/style/index.less +0 -2
  359. package/lib/style/themes/compact.css +0 -0
  360. package/lib/style/themes/compact.less +0 -1
  361. package/lib/style/themes/dark.css +0 -0
  362. package/lib/style/themes/dark.less +0 -9
  363. package/lib/style/themes/default.css +0 -0
  364. package/lib/style/themes/default.less +0 -7
  365. package/lib/style/themes/index.css +0 -0
  366. package/lib/style/themes/index.less +0 -1
  367. package/lib/style/themes/variable.css +0 -0
  368. package/lib/style/themes/variable.less +0 -5
  369. package/lib/tile-layer/TileLayer.js +0 -85
  370. package/lib/tile-layer/TileLayer.js.map +0 -1
  371. package/lib/tile-layer/index.js +0 -54
  372. package/lib/tile-layer/index.js.map +0 -1
  373. package/lib/tile-layer/style/css.js +0 -4
  374. package/lib/tile-layer/style/css.js.map +0 -1
  375. package/lib/tile-layer/style/index.css +0 -0
  376. package/lib/tile-layer/style/index.js +0 -4
  377. package/lib/tile-layer/style/index.js.map +0 -1
  378. package/lib/tile-layer/style/index.less +0 -0
  379. package/lib/tools/Layer/LayerService.js +0 -182
  380. package/lib/tools/Layer/LayerService.js.map +0 -1
  381. package/lib/tools/Layer/LayersCheckService.js +0 -188
  382. package/lib/tools/Layer/LayersCheckService.js.map +0 -1
  383. package/lib/tools/Layer/index.css +0 -50
  384. package/lib/tools/Layer/index.js +0 -225
  385. package/lib/tools/Layer/index.js.map +0 -1
  386. package/lib/tools/Layer/index.less +0 -43
  387. package/lib/tools/Search/index.js +0 -296
  388. package/lib/tools/Search/index.js.map +0 -1
  389. package/lib/tools/Toolbox/BoxSelect/index.js +0 -22
  390. package/lib/tools/Toolbox/BoxSelect/index.js.map +0 -1
  391. package/lib/tools/Toolbox/CircleSelect/index.js +0 -22
  392. package/lib/tools/Toolbox/CircleSelect/index.js.map +0 -1
  393. package/lib/tools/Toolbox/EagleEye/index.js +0 -56
  394. package/lib/tools/Toolbox/EagleEye/index.js.map +0 -1
  395. package/lib/tools/Toolbox/MapBookmark/Bookmark.js +0 -147
  396. package/lib/tools/Toolbox/MapBookmark/Bookmark.js.map +0 -1
  397. package/lib/tools/Toolbox/MapBookmark/index.css +0 -18
  398. package/lib/tools/Toolbox/MapBookmark/index.js +0 -429
  399. package/lib/tools/Toolbox/MapBookmark/index.js.map +0 -1
  400. package/lib/tools/Toolbox/MapBookmark/index.less +0 -20
  401. package/lib/tools/Toolbox/MapDownload/index.js +0 -16
  402. package/lib/tools/Toolbox/MapDownload/index.js.map +0 -1
  403. package/lib/tools/Toolbox/MapPrint/index.css +0 -4
  404. package/lib/tools/Toolbox/MapPrint/index.js +0 -233
  405. package/lib/tools/Toolbox/MapPrint/index.js.map +0 -1
  406. package/lib/tools/Toolbox/MapPrint/index.less +0 -4
  407. package/lib/tools/Toolbox/Measure/Area/index.js +0 -16
  408. package/lib/tools/Toolbox/Measure/Area/index.js.map +0 -1
  409. package/lib/tools/Toolbox/Measure/Distance/index.js +0 -16
  410. package/lib/tools/Toolbox/Measure/Distance/index.js.map +0 -1
  411. package/lib/tools/Toolbox/Measure/Measure.js +0 -228
  412. package/lib/tools/Toolbox/Measure/Measure.js.map +0 -1
  413. package/lib/tools/Toolbox/Measure/index.js +0 -77
  414. package/lib/tools/Toolbox/Measure/index.js.map +0 -1
  415. package/lib/tools/Toolbox/PolygonSelect/index.js +0 -19
  416. package/lib/tools/Toolbox/PolygonSelect/index.js.map +0 -1
  417. package/lib/tools/Toolbox/ScaleLine/index.js +0 -58
  418. package/lib/tools/Toolbox/ScaleLine/index.js.map +0 -1
  419. package/lib/tools/Toolbox/SelectTools/index.css +0 -103
  420. package/lib/tools/Toolbox/SelectTools/index.js +0 -788
  421. package/lib/tools/Toolbox/SelectTools/index.js.map +0 -1
  422. package/lib/tools/Toolbox/SelectTools/index.less +0 -87
  423. package/lib/tools/Toolbox/SpaceQuery/index.css +0 -19
  424. package/lib/tools/Toolbox/SpaceQuery/index.js +0 -597
  425. package/lib/tools/Toolbox/SpaceQuery/index.js.map +0 -1
  426. package/lib/tools/Toolbox/SpaceQuery/index.less +0 -16
  427. package/lib/tools/Toolbox/ZoomInput/index.css +0 -6
  428. package/lib/tools/Toolbox/ZoomInput/index.js +0 -51
  429. package/lib/tools/Toolbox/ZoomInput/index.js.map +0 -1
  430. package/lib/tools/Toolbox/ZoomInput/index.less +0 -6
  431. package/lib/tools/Toolbox/draftingPrint/index.css +0 -26
  432. package/lib/tools/Toolbox/draftingPrint/index.js +0 -366
  433. package/lib/tools/Toolbox/draftingPrint/index.js.map +0 -1
  434. package/lib/tools/Toolbox/draftingPrint/index.less +0 -34
  435. package/lib/tools/Toolbox/index.css +0 -0
  436. package/lib/tools/Toolbox/index.js +0 -179
  437. package/lib/tools/Toolbox/index.js.map +0 -1
  438. package/lib/tools/Toolbox/index.less +0 -2
  439. package/lib/tools/Utils/CreateOverlay.js +0 -46
  440. package/lib/tools/Utils/CreateOverlay.js.map +0 -1
  441. package/lib/tools/Utils/Draw.js +0 -127
  442. package/lib/tools/Utils/Draw.js.map +0 -1
  443. package/lib/tools/Utils/HighLayer.js +0 -212
  444. package/lib/tools/Utils/HighLayer.js.map +0 -1
  445. package/lib/tools/Utils/measure.js +0 -246
  446. package/lib/tools/Utils/measure.js.map +0 -1
  447. package/lib/tools/Utils/utils.js +0 -263
  448. package/lib/tools/Utils/utils.js.map +0 -1
  449. package/lib/tools/View/index.css +0 -35
  450. package/lib/tools/View/index.js +0 -165
  451. package/lib/tools/View/index.js.map +0 -1
  452. package/lib/tools/View/index.less +0 -28
  453. package/lib/tools/analysis-tool/index.js +0 -111
  454. package/lib/tools/analysis-tool/index.js.map +0 -1
  455. package/lib/tools/base-map-switch/index.js +0 -168
  456. package/lib/tools/base-map-switch/index.js.map +0 -1
  457. package/lib/tools/components/Chart/index.js +0 -821
  458. package/lib/tools/components/Chart/index.js.map +0 -1
  459. package/lib/tools/components/Icon/index.js +0 -31
  460. package/lib/tools/components/Icon/index.js.map +0 -1
  461. package/lib/tools/components/Info/index.css +0 -39
  462. package/lib/tools/components/Info/index.js +0 -34
  463. package/lib/tools/components/Info/index.js.map +0 -1
  464. package/lib/tools/components/Info/index.less +0 -26
  465. package/lib/tools/components/ItemWrap/index.css +0 -43
  466. package/lib/tools/components/ItemWrap/index.js +0 -46
  467. package/lib/tools/components/ItemWrap/index.js.map +0 -1
  468. package/lib/tools/components/ItemWrap/index.less +0 -41
  469. package/lib/tools/components/Modal/index.css +0 -42
  470. package/lib/tools/components/Modal/index.js +0 -45
  471. package/lib/tools/components/Modal/index.js.map +0 -1
  472. package/lib/tools/components/Modal/index.less +0 -33
  473. package/lib/tools/components/MyTabs/index.js +0 -22
  474. package/lib/tools/components/MyTabs/index.js.map +0 -1
  475. package/lib/tools/components/RequiredLabel/index.css +0 -5
  476. package/lib/tools/components/RequiredLabel/index.js +0 -32
  477. package/lib/tools/components/RequiredLabel/index.js.map +0 -1
  478. package/lib/tools/components/RequiredLabel/index.less +0 -5
  479. package/lib/tools/components/Select/index.js +0 -32
  480. package/lib/tools/components/Select/index.js.map +0 -1
  481. package/lib/tools/components/Table/assets/tableIcon.png +0 -0
  482. package/lib/tools/components/Table/index.css +0 -10
  483. package/lib/tools/components/Table/index.js +0 -92
  484. package/lib/tools/components/Table/index.js.map +0 -1
  485. package/lib/tools/components/Table/index.less +0 -13
  486. package/lib/tools/components/ToolItem/index.css +0 -30
  487. package/lib/tools/components/ToolItem/index.js +0 -28
  488. package/lib/tools/components/ToolItem/index.js.map +0 -1
  489. package/lib/tools/components/ToolItem/index.less +0 -27
  490. package/lib/tools/components/ToolsSelect/index.css +0 -15
  491. package/lib/tools/components/ToolsSelect/index.js +0 -44
  492. package/lib/tools/components/ToolsSelect/index.js.map +0 -1
  493. package/lib/tools/components/ToolsSelect/index.less +0 -10
  494. package/lib/tools/full-screen/index.js +0 -45
  495. package/lib/tools/full-screen/index.js.map +0 -1
  496. package/lib/tools/index.js +0 -150
  497. package/lib/tools/index.js.map +0 -1
  498. package/lib/tools/layer-control/index.js +0 -170
  499. package/lib/tools/layer-control/index.js.map +0 -1
  500. package/lib/tools/refresh/index.js +0 -39
  501. package/lib/tools/refresh/index.js.map +0 -1
  502. package/lib/tools/style/css.js +0 -22
  503. package/lib/tools/style/css.js.map +0 -1
  504. package/lib/tools/style/index.css +0 -136
  505. package/lib/tools/style/index.js +0 -22
  506. package/lib/tools/style/index.js.map +0 -1
  507. package/lib/tools/style/index.less +0 -154
  508. package/lib/tools-item/index.js +0 -65
  509. package/lib/tools-item/index.js.map +0 -1
  510. package/lib/use-props/index.js +0 -14
  511. package/lib/use-props/index.js.map +0 -1
  512. package/lib/use-props/style/css.js +0 -2
  513. package/lib/use-props/style/css.js.map +0 -1
  514. package/lib/use-props/style/index.js +0 -2
  515. package/lib/use-props/style/index.js.map +0 -1
  516. package/lib/wms-layer/WmsLayer.js +0 -313
  517. package/lib/wms-layer/WmsLayer.js.map +0 -1
  518. package/lib/wms-layer/index.js +0 -97
  519. package/lib/wms-layer/index.js.map +0 -1
  520. package/lib/wms-layer/style/css.js +0 -4
  521. package/lib/wms-layer/style/css.js.map +0 -1
  522. package/lib/wms-layer/style/index.css +0 -0
  523. package/lib/wms-layer/style/index.js +0 -4
  524. package/lib/wms-layer/style/index.js.map +0 -1
  525. package/lib/wms-layer/style/index.less +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtx/ol-map",
3
- "version": "1.0.164",
3
+ "version": "2.0.0-beta.1",
4
4
  "description": "React components for Vortex",
5
5
  "keywords": [
6
6
  "react",
@@ -25,7 +25,8 @@
25
25
  "bump": "gulp bump --prerelease",
26
26
  "release": "release-it --no-npm.publish",
27
27
  "version": "npm run changelog && git add CHANGELOG.md",
28
- "changelog": "conventional-changelog -p custom-config -i CHANGELOG.md -s -r 0"
28
+ "changelog": "conventional-changelog -p custom-config -i CHANGELOG.md -s -r 0",
29
+ "publish:beta": "npm publish --tag beta"
29
30
  },
30
31
  "repository": {
31
32
  "type": "git",
@@ -51,12 +52,12 @@
51
52
  "authorName": true
52
53
  },
53
54
  "dependencies": {
54
- "@ant-design/icons": "4.7.0",
55
+ "@ant-design/icons": "^6.0.0",
55
56
  "@turf/turf": "^6.5.0",
56
57
  "@vtx/map-icon": "latest",
57
58
  "@vtx/utils": "^1.0.10",
58
59
  "ahooks": "^3.1.5",
59
- "antd": "4.20.5",
60
+ "antd": "^6.0.1",
60
61
  "axios": "^0.21.1",
61
62
  "classnames": "^2.2.6",
62
63
  "crypto-js": "^4.2.0",
@@ -69,8 +70,8 @@
69
70
  "qs": "^6.14.0"
70
71
  },
71
72
  "peerDependencies": {
72
- "react": ">=16.12.0",
73
- "react-dom": ">=16.12.0"
73
+ "react": ">=18.0.0",
74
+ "react-dom": ">=18.0.0"
74
75
  },
75
76
  "devDependencies": {
76
77
  "@babel/cli": "^7.6.4",
@@ -87,7 +88,7 @@
87
88
  "babel-plugin-import": "^1.13.3",
88
89
  "conventional-changelog-cli": "^2.1.1",
89
90
  "conventional-changelog-custom-config": "^0.3.1",
90
- "dumi": "^1.0.10",
91
+ "dumi": "^2.4.21",
91
92
  "echarts": "^5.5.1",
92
93
  "echarts-for-react": "^3.0.2",
93
94
  "eslint": "^6.6.0",
@@ -117,4 +118,4 @@
117
118
  "stylelint-order": "^3.0.0",
118
119
  "through2": "^3.0.1"
119
120
  }
120
- }
121
+ }
@@ -1,78 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
8
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
9
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
10
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
11
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
12
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
13
- // 发布订阅模式
14
- var EventEmitter = /*#__PURE__*/function () {
15
- function EventEmitter() {
16
- _classCallCheck(this, EventEmitter);
17
- // 事件对象,存放订阅的名字和事件 如:{'click': [handle, handle2]}
18
- this.events = {};
19
- }
20
-
21
- // 订阅事件方法
22
- return _createClass(EventEmitter, [{
23
- key: "on",
24
- value: function on(eventName, callback) {
25
- this.events[eventName] = this.events[eventName] || [];
26
- this.events[eventName].push(callback);
27
- }
28
-
29
- // 触发事件方法
30
- }, {
31
- key: "emit",
32
- value: function emit(eventName) {
33
- var _this = this;
34
- for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
35
- rest[_key - 1] = arguments[_key];
36
- }
37
- if (this.events[eventName]) {
38
- this.events[eventName].forEach(function (f) {
39
- return f.apply(_this, rest);
40
- });
41
- }
42
- }
43
-
44
- // 移除订阅事件
45
- }, {
46
- key: "un",
47
- value: function un(eventName, callback) {
48
- if (this.events[eventName]) {
49
- this.events[eventName] = this.events[eventName].filter(function (f) {
50
- return f !== callback;
51
- });
52
- }
53
- }
54
-
55
- // 只执行一次订阅的事件
56
- }, {
57
- key: "once",
58
- value: function once(eventName, callback) {
59
- var _this2 = this;
60
- //创建临时方法
61
- var _fn = function fn() {
62
- for (var _len2 = arguments.length, rest = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
63
- rest[_key2] = arguments[_key2];
64
- }
65
- // 执行原有的callback
66
- callback.apply(_this2, rest);
67
-
68
- // 执行移除事件,删除临时方法
69
- _this2.un(eventName, _fn);
70
- };
71
-
72
- // 执行订阅事件,绑定临时方法
73
- this.on(eventName, _fn);
74
- }
75
- }]);
76
- }();
77
- var _default = exports["default"] = EventEmitter;
78
- //# sourceMappingURL=EventEmitter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EventEmitter.js","names":["EventEmitter","_classCallCheck","events","_createClass","key","value","on","eventName","callback","push","emit","_this","_len","arguments","length","rest","Array","_key","forEach","f","apply","un","filter","once","_this2","fn","_len2","_key2","_default","exports"],"sources":["_util/EventEmitter.js"],"sourcesContent":["// 发布订阅模式\nclass EventEmitter {\n constructor() {\n // 事件对象,存放订阅的名字和事件 如:{'click': [handle, handle2]}\n this.events = {};\n }\n\n // 订阅事件方法\n on(eventName, callback) {\n this.events[eventName] = this.events[eventName] || [];\n this.events[eventName].push(callback);\n }\n\n // 触发事件方法\n emit(eventName, ...rest) {\n if (this.events[eventName]) {\n this.events[eventName].forEach(f => f.apply(this, rest));\n }\n }\n\n // 移除订阅事件\n un(eventName, callback) {\n if (this.events[eventName]) {\n this.events[eventName] = this.events[eventName].filter(f => f !== callback);\n }\n }\n\n // 只执行一次订阅的事件\n once(eventName, callback) {\n //创建临时方法\n const fn = (...rest) => {\n // 执行原有的callback\n callback.apply(this, rest);\n\n // 执行移除事件,删除临时方法\n this.un(eventName, fn);\n };\n\n // 执行订阅事件,绑定临时方法\n this.on(eventName, fn);\n }\n}\n\nexport default EventEmitter;\n"],"mappings":";;;;;;;;;;;;AAAA;AAAA,IACMA,YAAY;EACd,SAAAA,aAAA,EAAc;IAAAC,eAAA,OAAAD,YAAA;IACV;IACA,IAAI,CAACE,MAAM,GAAG,CAAC,CAAC;EACpB;;EAEA;EAAA,OAAAC,YAAA,CAAAH,YAAA;IAAAI,GAAA;IAAAC,KAAA,EACA,SAAAC,EAAEA,CAACC,SAAS,EAAEC,QAAQ,EAAE;MACpB,IAAI,CAACN,MAAM,CAACK,SAAS,CAAC,GAAG,IAAI,CAACL,MAAM,CAACK,SAAS,CAAC,IAAI,EAAE;MACrD,IAAI,CA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I,CAAAY,KAAA,IAAAd,SAAA,CAAAc,KAAA;QAAA;QACf;QACAnB,QAAQ,CAACY,KAAK,CAACI,MAAI,EAAET,IAAI,CAAC;;QAE1B;QACAS,MAAI,CAACH,EAAE,CAACd,SAAS,EAAEkB,GAAE,CAAC;MAC1B,CAAC;;MAED;MACA,IAAI,CAACnB,EAAE,CAACC,SAAS,EAAEkB,GAAE,CAAC;IAC1B;EAAC;AAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,cAGU7B,YAAY","ignoreList":[]}
@@ -1,46 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
8
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
9
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
10
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
11
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
12
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
13
- var StyleCache = /*#__PURE__*/function () {
14
- function StyleCache() {
15
- _classCallCheck(this, StyleCache);
16
- this.cache = new Map();
17
- }
18
- return _createClass(StyleCache, [{
19
- key: "get",
20
- value: function get(key) {
21
- return this.cache.get(key);
22
- }
23
- }, {
24
- key: "set",
25
- value: function set(key, value) {
26
- this.cache.set(key, value);
27
- }
28
- }, {
29
- key: "has",
30
- value: function has(key) {
31
- return this.cache.has(key);
32
- }
33
- }, {
34
- key: "delete",
35
- value: function _delete(key) {
36
- this.cache["delete"](key);
37
- }
38
- }, {
39
- key: "clear",
40
- value: function clear() {
41
- this.cache.clear();
42
- }
43
- }]);
44
- }();
45
- var _default = exports["default"] = StyleCache;
46
- //# sourceMappingURL=StyleCache.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StyleCache.js","names":["StyleCache","_classCallCheck","cache","Map","_createClass","key","value","get","set","has","delete","clear","_default","exports"],"sources":["_util/StyleCache.js"],"sourcesContent":["\nclass StyleCache {\n constructor() {\n this.cache = new Map();\n }\n\n get(key) {\n return this.cache.get(key);\n }\n\n set(key, value) {\n this.cache.set(key, value)\n }\n\n has(key) {\n return this.cache.has(key)\n }\n\n delete(key) {\n this.cache.delete(key)\n }\n\n clear() {\n this.cache.clear()\n }\n}\n\nexport default StyleCache;\n"],"mappings":";;;;;;;;;;;;IACMA,UAAU;EACZ,SAAAA,WAAA,EAAc;IAAAC,eAAA,OAAAD,UAAA;IACV,IAAI,CAACE,KAAK,GAAG,IAAIC,GAAG,CAAC,CAAC;EAC1B;EAAC,OAAAC,YAAA,CAAAJ,UAAA;IAAAK,GAAA;IAAAC,KAAA,EAED,SAAAC,GAAGA,CAACF,GAAG,EAAE;MACL,OAAO,IAAI,CAACH,KAAK,CAACK,GAAG,CAACF,GAAG,CAAC;IAC9B;EAAC;IAAAA,GAAA;IAAAC,KAAA,EAED,SAAAE,GAAGA,CAACH,GAAG,EAAEC,KAAK,EAAE;MACZ,IAAI,CAACJ,KAAK,CAACM,GAAG,CAACH,GAAG,EAAEC,KAAK,CAAC;IAC9B;EAAC;IAAAD,GAAA;IAAAC,KAAA,EAED,SAAAG,GAAGA,CAACJ,GAAG,EAAE;MACL,OAAO,IAAI,CAACH,KAAK,CAACO,GAAG,CAACJ,GAAG,CAAC;IAC9B;EAAC;IAAAA,GAAA;IAAAC,KAAA,EAED,SAAAI,OAAMA,CAACL,GAAG,EAAE;MACR,IAAI,CAACH,KAAK,UAAO,CAACG,GAAG,CAAC;IAC1B;EAAC;IAAAA,GAAA;IAAAC,KAAA,EAED,SAAAK,KAAKA,CAAA,EAAG;MACJ,IAAI,CAACT,KAAK,CAACS,KAAK,CAAC,CAAC;IACtB;EAAC;AAAA;AAAA,IAAAC,QAAA,GAAAC,OAAA,cAGUb,UAAU","ignoreList":[]}
@@ -1,60 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.keyHex = exports.ivHex = exports.encryptParamsByUrl = exports.encrypt = exports["default"] = void 0;
7
- var _cryptoJs = _interopRequireDefault(require("crypto-js"));
8
- var _getUrlParam = _interopRequireDefault(require("./getUrlParam"));
9
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
11
- // 这里是密钥
12
- var keyHex = exports.keyHex = 'NT9FWl3ze1GJNqpo';
13
- var ivHex = exports.ivHex = 'vL7iWTTV7RngvKkn';
14
-
15
- // 解密 data:要加密解密的数据,AES_KEY:密钥,IV:偏移量
16
- var encrypt = exports.encrypt = function encrypt(data, options) {
17
- var _ref = options && _typeof(options) === 'object' ? options : {},
18
- AES_KEY = _ref.key,
19
- IV = _ref.iv,
20
- mode = _ref.mode;
21
- var key = _cryptoJs["default"].enc.Utf8.parse(AES_KEY || keyHex);
22
- var iv = _cryptoJs["default"].enc.Utf8.parse(IV || ivHex);
23
- return _cryptoJs["default"].AES.encrypt(data, key, {
24
- iv: iv,
25
- mode: _cryptoJs["default"].mode[mode || 'CBC'],
26
- padding: _cryptoJs["default"].pad.Pkcs7
27
- }).toString();
28
- };
29
-
30
- /**
31
- * 加密参数
32
- * @param params
33
- * @param options
34
- * @returns {*}
35
- */
36
- var encryptParams = function encryptParams(params, options) {
37
- var _params;
38
- if ((_params = params) !== null && _params !== void 0 && _params.cql_filter) {
39
- params = JSON.parse(JSON.stringify(params));
40
- params.CQL_FILTER_ENCRYPT = encrypt(encodeURIComponent(params.cql_filter), options);
41
- delete params.cql_filter;
42
- }
43
- return params;
44
- };
45
-
46
- /**
47
- * 根据url判断是否加密
48
- * @param params
49
- * @param options
50
- * @returns {*}
51
- */
52
- var encryptParamsByUrl = exports.encryptParamsByUrl = function encryptParamsByUrl(params, options) {
53
- var encryptParam = (0, _getUrlParam["default"])('encrypt');
54
- if (encryptParam === 'true') {
55
- return encryptParams(params, options);
56
- }
57
- return params;
58
- };
59
- var _default = exports["default"] = encryptParams;
60
- //# sourceMappingURL=encryptParams.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"encryptParams.js","names":["_cryptoJs","_interopRequireDefault","require","_getUrlParam","e","__esModule","_typeof","o","Symbol","iterator","constructor","prototype","keyHex","exports","ivHex","encrypt","data","options","_ref","AES_KEY","key","IV","iv","mode","CryptoJS","enc","Utf8","parse","AES","padding","pad","Pkcs7","toString","encryptParams","params","_params","cql_filter","JSON","stringify","CQL_FILTER_ENCRYPT","encodeURIComponent","encryptParamsByUrl","encryptParam","getUrlParam","_default"],"sources":["_util/encryptParams.js"],"sourcesContent":["import CryptoJS from 'crypto-js';\nimport getUrlParam from './getUrlParam';\n\n// 这里是密钥\nexport const keyHex = 'NT9FWl3ze1GJNqpo';\nexport const ivHex = 'vL7iWTTV7RngvKkn';\n\n// 解密 data:要加密解密的数据,AES_KEY:密钥,IV:偏移量\nexport const encrypt = (data, options) => {\n let {key: AES_KEY, iv: IV, mode} = (options && typeof options === 'object') ? options : {};\n const key = CryptoJS.enc.Utf8.parse(AES_KEY || keyHex);\n const iv = CryptoJS.enc.Utf8.parse(IV || ivHex);\n\n return CryptoJS.AES.encrypt(data, key, {\n iv,\n mode: CryptoJS.mode[mode ||'CBC'],\n padding: CryptoJS.pad.Pkcs7\n }).toString()\n}\n\n/**\n * 加密参数\n * @param params\n * @param options\n * @returns {*}\n */\nconst encryptParams = (params, options) => {\n if (params?.cql_filter) {\n params = JSON.parse(JSON.stringify(params));\n params.CQL_FILTER_ENCRYPT = encrypt(encodeURIComponent(params.cql_filter), options);\n\n delete params.cql_filter\n }\n\n return params\n}\n\n/**\n * 根据url判断是否加密\n * @param params\n * @param options\n * @returns {*}\n */\nexport const encryptParamsByUrl = (params, options) => {\n const encryptParam = getUrlParam('encrypt');\n\n if (encryptParam === 'true') {\n return encryptParams(params, options);\n }\n\n return params\n}\n\nexport default encryptParams;\n"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAF,sBAAA,CAAAC,OAAA;AAAwC,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAAA,SAAAE,QAAAC,CAAA,sCAAAD,OAAA,wBAAAE,MAAA,uBAAAA,MAAA,CAAAC,QAAA,aAAAF,CAAA,kBAAAA,CAAA,gBAAAA,CAAA,WAAAA,CAAA,yBAAAC,MAAA,IAAAD,CAAA,CAAAG,WAAA,KAAAF,MAAA,IAAAD,CAAA,KAAAC,MAAA,CAAAG,SAAA,qBAAAJ,CAAA,KAAAD,OAAA,CAAAC,CAAA;AAExC;AACO,IAAMK,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAG,kBAAkB;AACjC,IAAME,KAAK,GAAAD,OAAA,CAAAC,KAAA,GAAG,kBAAkB;;AAEvC;AACO,IAAMC,OAAO,GAAAF,OAAA,CAAAE,OAAA,GAAG,SAAVA,OAAOA,CAAIC,IAAI,EAAEC,OAAO,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,GAAA5B,OAAA,CAAA4B,kBAAA,GAAG,SAArBA,kBAAkBA,CAAIP,MAAM,EAAEjB,OAAO,EAAK;EACnD,IAAMyB,YAAY,GAAG,IAAAC,uBAAW,EAAC,SAAS,CAAC;EAE3C,IAAID,YAAY,KAAK,MAAM,EAAE;IACzB,OAAOT,aAAa,CAACC,MAAM,EAAEjB,OAAO,CAAC;EACzC;EAEA,OAAOiB,MAAM;AACjB,CAAC;AAAA,IAAAU,QAAA,GAAA/B,OAAA,cAEcoB,aAAa","ignoreList":[]}
@@ -1,90 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = filterSpecialCharacters;
7
- var _lodash = _interopRequireDefault(require("lodash.difference"));
8
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
- function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
10
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
11
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
12
- function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
13
- function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
14
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
15
- function isNotEmpty(value) {
16
- return Array.isArray(value) && value.length > 0;
17
- }
18
-
19
- /**
20
- * 过滤特殊字符
21
- * @param {String} value 值
22
- * @param {Object} option
23
- * @param {Array} [option.include] 新增
24
- * @param {Array} [option.exclude] 排除
25
- */
26
- function filterSpecialCharacters(value) {
27
- var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
28
- _ref$include = _ref.include,
29
- include = _ref$include === void 0 ? [] : _ref$include,
30
- _ref$exclude = _ref.exclude,
31
- exclude = _ref$exclude === void 0 ? [] : _ref$exclude;
32
- // 特殊符号,- _ 排除
33
- var specialCharacter = [
34
- // 小括号
35
- '(', ')', '(', ')',
36
- // 中括号
37
- '\\[', '\\]', '[', ']',
38
- // 大括号
39
- '{', '}', '{', '}',
40
- // 方头括号
41
- '【', '】',
42
- // 尖括号
43
- '<', '>',
44
- // 书名号
45
- '《', '》',
46
- // 斜杠
47
- '/',
48
- // 反斜杠
49
- '\\\\',
50
- // 逗号
51
- ',', ',',
52
- // 句号
53
- '.', '。',
54
- // 冒号
55
- ':', ':',
56
- // 分号
57
- ';', ';',
58
- // 顿号
59
- '、',
60
- // 破折号
61
- '——',
62
- // 感叹号
63
- '!', '!',
64
- // 问号
65
- '?', '?',
66
- // 加减等于
67
- '+', '=',
68
- // 单引号
69
- "'", '‘', '’',
70
- // 双引号
71
- '"', '“', '”',
72
- // 金钱
73
- '$', '¥',
74
- // 百分号
75
- '%', '%',
76
- // 其它
77
- '@', '#', '`', '~', '*', '^', '……', '|', '&'];
78
-
79
- // 新增
80
- if (isNotEmpty(include)) {
81
- specialCharacter = Array.from(new Set([].concat(_toConsumableArray(specialCharacter), _toConsumableArray(include))));
82
- }
83
-
84
- // 移除
85
- if (isNotEmpty(exclude)) {
86
- specialCharacter = (0, _lodash["default"])(specialCharacter, exclude);
87
- }
88
- return value.replace(new RegExp("[".concat(specialCharacter.join(''), "]"), 'g'), '');
89
- }
90
- //# sourceMappingURL=filterSpecialCharacters.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filterSpecialCharacters.js","names":["_lodash","_interopRequireDefault","require","e","__esModule","_toConsumableArray","r","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","TypeError","a","_arrayLikeToArray","t","toString","call","slice","constructor","name","Array","from","test","Symbol","iterator","isArray","length","n","isNotEmpty","value","filterSpecialCharacters","_ref","arguments","undefined","_ref$include","include","_ref$exclude","exclude","specialCharacter","Set","concat","difference","replace","RegExp","join"],"sources":["_util/filterSpecialCharacters.js"],"sourcesContent":["import difference from 'lodash.difference';\n\nfunction isNotEmpty(value) {\n return Array.isArray(value) && value.length > 0;\n}\n\n/**\n * 过滤特殊字符\n * @param {String} value 值\n * @param {Object} option\n * @param {Array} [option.include] 新增\n * @param {Array} [option.exclude] 排除\n */\nexport default function filterSpecialCharacters(value, { include = [], exclude = [] } = {}) {\n // 特殊符号,- _ 排除\n let specialCharacter = [\n // 小括号\n '(',\n ')',\n '(',\n ')',\n // 中括号\n '\\\\[',\n '\\\\]',\n '[',\n ']',\n // 大括号\n '{',\n '}',\n '{',\n '}',\n // 方头括号\n '【',\n '】',\n // 尖括号\n '<',\n '>',\n // 书名号\n '《',\n '》',\n // 斜杠\n '/',\n // 反斜杠\n '\\\\\\\\',\n // 逗号\n ',',\n ',',\n // 句号\n '.',\n '。',\n // 冒号\n ':',\n ':',\n // 分号\n ';',\n ';',\n // 顿号\n '、',\n // 破折号\n '——',\n // 感叹号\n '!',\n '!',\n // 问号\n '?',\n '?',\n // 加减等于\n '+',\n '=',\n // 单引号\n \"'\",\n '‘',\n '’',\n // 双引号\n '\"',\n '“',\n '”',\n // 金钱\n '$',\n '¥',\n // 百分号\n '%',\n '%',\n // 其它\n '@',\n '#',\n '`',\n '~',\n '*',\n '^',\n '……',\n '|',\n '&',\n ];\n\n // 新增\n if (isNotEmpty(include)) {\n specialCharacter = Array.from(new Set([...specialCharacter, ...include]));\n }\n\n // 移除\n if (isNotEmpty(exclude)) {\n specialCharacter = difference(specialCharacter, exclude);\n }\n\n return value.replace(new RegExp(`[${specialCharacter.join('')}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,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,IAAI,EACJ,GAAG,EACH,GAAG,CACN;;EAED;EACA,IAAIV,UAAU,CAACO,OAAO,CAAC,EAAE;IACrBG,gBAAgB,GAAGlB,KAAK,CAACC,IAAI,CAAC,IAAIkB,GAAG,IAAAC,MAAA,CAAAnC,kBAAA,CAAKiC,gBAAgB,GAAAjC,kBAAA,CAAK8B,OAAO,EAAC,CAAC,CAAC;EAC7E;;EAEA;EACA,IAAIP,UAAU,CAACS,OAAO,CAAC,EAAE;IACrBC,gBAAgB,GAAG,IAAAG,kBAAU,EAACH,gBAAgB,EAAED,OAAO,CAAC;EAC5D;EAEA,OAAOR,KAAK,CAACa,OAAO,CAAC,IAAIC,MAAM,KAAAH,MAAA,CAAKF,gBAAgB,CAACM,IAAI,CAAC,EAAE,CAAC,QAAK,GAAG,CAAC,EAAE,EAAE,CAAC;AAC/E","ignoreList":[]}
@@ -1,14 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = getComponentProps;
7
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
8
- function getComponentProps(prop) {
9
- if (prop && _typeof(prop) === 'object') {
10
- return prop;
11
- }
12
- return {};
13
- }
14
- //# sourceMappingURL=getComponentProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getComponentProps.js","names":["getComponentProps","prop","_typeof"],"sources":["_util/getComponentProps.js"],"sourcesContent":["export default function getComponentProps(prop) {\n if (prop && typeof prop === 'object') {\n return prop;\n }\n return {};\n}\n"],"mappings":";;;;;;;AAAe,SAASA,iBAAiBA,CAACC,IAAI,EAAE;EAC5C,IAAIA,IAAI,IAAIC,OAAA,CAAOD,IAAI,MAAK,QAAQ,EAAE;IAClC,OAAOA,IAAI;EACf;EACA,OAAO,CAAC,CAAC;AACb","ignoreList":[]}
@@ -1,24 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- /**
8
- * @name cookie取值
9
- * @param c_name 要取得的字段名
10
- * @returns {string} 返回字段对应的值, 若字段不存在则返回空
11
- */
12
- var _default = exports["default"] = function _default(c_name) {
13
- if (document.cookie.length > 0) {
14
- var c_start = document.cookie.indexOf("".concat(c_name, "="));
15
- if (c_start !== -1) {
16
- c_start = c_start + c_name.length + 1;
17
- var c_end = document.cookie.indexOf(';', c_start);
18
- if (c_end == -1) c_end = document.cookie.length;
19
- return unescape(document.cookie.substring(c_start, c_end));
20
- }
21
- }
22
- return '';
23
- };
24
- //# sourceMappingURL=getCookie.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getCookie.js","names":["_default","exports","c_name","document","cookie","length","c_start","indexOf","concat","c_end","unescape","substring"],"sources":["_util/getCookie.js"],"sourcesContent":["/**\n * @name cookie取值\n * @param c_name 要取得的字段名\n * @returns {string} 返回字段对应的值, 若字段不存在则返回空\n */\nexport default c_name => {\n if (document.cookie.length > 0) {\n let c_start = document.cookie.indexOf(`${c_name}=`);\n if (c_start !== -1) {\n c_start = c_start + c_name.length + 1;\n let c_end = document.cookie.indexOf(';', c_start);\n if (c_end == -1) c_end = document.cookie.length;\n return unescape(document.cookie.substring(c_start, c_end));\n }\n }\n return '';\n};\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AAJA,IAAAA,QAAA,GAAAC,OAAA,cAKe,SAAAD,SAAAE,MAAM,EAAI;EACrB,IAAIC,QAAQ,CAACC,MAAM,CAACC,MAAM,GAAG,CAAC,EAAE;IAC5B,IAAIC,OAAO,GAAGH,QAAQ,CAACC,MAAM,CAACG,OAAO,IAAAC,MAAA,CAAIN,MAAM,MAAG,CAAC;IACnD,IAAII,OAAO,KAAK,CAAC,CAAC,EAAE;MAChBA,OAAO,GAAGA,OAAO,GAAGJ,MAAM,CAACG,MAAM,GAAG,CAAC;MACrC,IAAII,KAAK,GAAGN,QAAQ,CAACC,MAAM,CAACG,OAAO,CAAC,GAAG,EAAED,OAAO,CAAC;MACjD,IAAIG,KAAK,IAAI,CAAC,CAAC,EAAEA,KAAK,GAAGN,QAAQ,CAACC,MAAM,CAACC,MAAM;MAC/C,OAAOK,QAAQ,CAACP,QAAQ,CAACC,MAAM,CAACO,SAAS,CAACL,OAAO,EAAEG,KAAK,CAAC,CAAC;IAC9D;EACJ;EACA,OAAO,EAAE;AACb,CAAC","ignoreList":[]}
@@ -1,50 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
8
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
10
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
11
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
12
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
13
- var _default = exports["default"] = function _default() {
14
- var val = {};
15
- var systemInfo = window.sessionStorage.getItem('systemInfo');
16
- if (systemInfo) {
17
- var _systemInfo2;
18
- systemInfo = systemInfo && JSON.parse(systemInfo) || {};
19
- var _systemInfo = systemInfo,
20
- longitude = _systemInfo.longitude,
21
- latitude = _systemInfo.latitude;
22
- val.longitude = longitude;
23
- val.latitude = latitude;
24
- val.mapType = 'wgs84';
25
- if ((_systemInfo2 = systemInfo) !== null && _systemInfo2 !== void 0 && _systemInfo2.mapDefJson) {
26
- var mapDefJson = JSON.parse(systemInfo.mapDefJson);
27
- var defaultMap = mapDefJson.find(function (v) {
28
- return v.defaultMap;
29
- }) || {};
30
- val = _objectSpread(_objectSpread(_objectSpread({}, val), defaultMap), {}, {
31
- mapType: defaultMap.coordinate || 'wgs84'
32
- });
33
- }
34
- }
35
-
36
- // 获取其他配置
37
- var menuConfig = window.sessionStorage.getItem('menuConfig');
38
- if (menuConfig) {
39
- menuConfig = JSON.parse(menuConfig);
40
- if (menuConfig) {
41
- var _menuConfig = menuConfig,
42
- baseMapStyle = _menuConfig.baseMapStyle;
43
- if (baseMapStyle) {
44
- val.baseMapStyle = baseMapStyle;
45
- }
46
- }
47
- }
48
- return val;
49
- };
50
- //# sourceMappingURL=getDefaultMapInfo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getDefaultMapInfo.js","names":["_default","val","systemInfo","window","sessionStorage","getItem","_systemInfo2","JSON","parse","_systemInfo","longitude","latitude","mapType","mapDefJson","defaultMap","find","v","_objectSpread","coordinate","menuConfig","_menuConfig","baseMapStyle"],"sources":["_util/getDefaultMapInfo.js"],"sourcesContent":["export default () => {\n let val = {};\n\n let systemInfo = window.sessionStorage.getItem('systemInfo');\n if (systemInfo) {\n systemInfo = (systemInfo && JSON.parse(systemInfo)) || {};\n\n const {longitude, latitude} = systemInfo;\n val.longitude = longitude;\n val.latitude = latitude;\n val.mapType = 'wgs84';\n\n if (systemInfo?.mapDefJson) {\n let mapDefJson = JSON.parse(systemInfo.mapDefJson);\n let defaultMap = mapDefJson.find(v => v.defaultMap) || {};\n val = {\n ...val,\n ...defaultMap,\n mapType: defaultMap.coordinate || 'wgs84',\n };\n }\n }\n\n // 获取其他配置\n let menuConfig = window.sessionStorage.getItem('menuConfig');\n if (menuConfig) {\n menuConfig = JSON.parse(menuConfig);\n if (menuConfig) {\n const {baseMapStyle} = menuConfig;\n if (baseMapStyle) {\n val.baseMapStyle = baseMapStyle;\n }\n }\n }\n\n return val;\n};\n"],"mappings":";;;;;;;;;;;;oCAAe,SAAAA,SAAA,EAAM;EACjB,IAAIC,GAAG,GAAG,CAAC,CAAC;EAEZ,IAAIC,UAAU,GAAGC,MAAM,CAACC,cAAc,CAACC,OAAO,CAAC,YAAY,CAAC;EAC5D,IAAIH,UAAU,EAAE;IAAA,IAAAI,YAAA;IACZJ,UAAU,GAAIA,UAAU,IAAIK,IAAI,CAACC,KAAK,CAACN,UAAU,CAAC,IAAK,CAAC,CAAC;IAEzD,IAAAO,WAAA,GAA8BP,UAAU;MAAjCQ,SAAS,GAAAD,WAAA,CAATC,SAAS;MAAEC,QAAQ,GAAAF,WAAA,CAARE,QAAQ;IAC1BV,GAAG,CAACS,SAAS,GAAGA,SAAS;IACzBT,GAAG,CAACU,QAAQ,GAAGA,QAAQ;IACvBV,GAAG,CAACW,OAAO,GAAG,OAAO;IAErB,KAAAN,YAAA,GAAIJ,UAAU,cAAAI,YAAA,eAAVA,YAAA,CAAYO,UAAU,EAAE;MACxB,IAAIA,UAAU,GAAGN,IAAI,CAACC,KAAK,CAACN,UAAU,CAACW,UAAU,CAAC;MAClD,IAAIC,UAAU,GAAGD,UAAU,CAACE,IAAI,CAAC,UAAAC,CAAC;QAAA,OAAIA,CAAC,CAACF,UAAU;MAAA,EAAC,IAAI,CAAC,CAAC;MACzDb,GAAG,GAAAgB,aAAA,CAAAA,aAAA,CAAAA,aAAA,KACIhB,GAAG,GACHa,UAAU;QACbF,OAAO,EAAEE,UAAU,CAACI,UAAU,IAAI;MAAO,EAC5C;IACL;EACJ;;EAEA;EACA,IAAIC,UAAU,GAAGhB,MAAM,CAACC,cAAc,CAACC,OAAO,CAAC,YAAY,CAAC;EAC5D,IAAIc,UAAU,EAAE;IACZA,UAAU,GAAGZ,IAAI,CAACC,KAAK,CAACW,UAAU,CAAC;IACnC,IAAIA,UAAU,EAAE;MACZ,IAAAC,WAAA,GAAuBD,UAAU;QAA1BE,YAAY,GAAAD,WAAA,CAAZC,YAAY;MACnB,IAAIA,YAAY,EAAE;QACdpB,GAAG,CAACoB,YAAY,GAAGA,YAAY;MACnC;IACJ;EACJ;EAEA,OAAOpB,GAAG;AACd,CAAC","ignoreList":[]}
@@ -1,26 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
8
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
10
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
11
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
12
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
13
- var _default = exports["default"] = function _default(key) {
14
- var systemInfo = localStorage.getItem('systemInfo');
15
- var system = {};
16
- if (systemInfo && systemInfo !== '[object Object]') {
17
- system = JSON.parse(decodeURIComponent(decodeURIComponent(systemInfo)));
18
- system = _objectSpread(_objectSpread({}, system), {}, {
19
- access_token: system.token
20
- });
21
- }
22
- if (key) {
23
- return system[key];
24
- }
25
- };
26
- //# sourceMappingURL=getSystemInfo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getSystemInfo.js","names":["_default","key","systemInfo","localStorage","getItem","system","JSON","parse","decodeURIComponent","_objectSpread","access_token","token"],"sources":["_util/getSystemInfo.js"],"sourcesContent":["export default key => {\n const systemInfo = localStorage.getItem('systemInfo');\n let system = {};\n if (systemInfo && systemInfo !== '[object Object]') {\n system = JSON.parse(decodeURIComponent(decodeURIComponent(systemInfo)));\n system = {\n ...system,\n access_token: system.token,\n };\n }\n if (key) {\n return system[key];\n }\n};\n"],"mappings":";;;;;;;;;;;;oCAAe,SAAAA,SAAAC,GAAG,EAAI;EAClB,IAAMC,UAAU,GAAGC,YAAY,CAACC,OAAO,CAAC,YAAY,CAAC;EACrD,IAAIC,MAAM,GAAG,CAAC,CAAC;EACf,IAAIH,UAAU,IAAIA,UAAU,KAAK,iBAAiB,EAAE;IAChDG,MAAM,GAAGC,IAAI,CAACC,KAAK,CAACC,kBAAkB,CAACA,kBAAkB,CAACN,UAAU,CAAC,CAAC,CAAC;IACvEG,MAAM,GAAAI,aAAA,CAAAA,aAAA,KACCJ,MAAM;MACTK,YAAY,EAAEL,MAAM,CAACM;IAAK,EAC7B;EACL;EACA,IAAIV,GAAG,EAAE;IACL,OAAOI,MAAM,CAACJ,GAAG,CAAC;EACtB;AACJ,CAAC","ignoreList":[]}
@@ -1,27 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.imageLoadFunction = exports["default"] = void 0;
7
- var _utils = require("@vtx/utils");
8
- var getToken = function getToken() {
9
- return (0, _utils.getVtxToken)('token');
10
- };
11
- var imageLoadFunction = exports.imageLoadFunction = function imageLoadFunction(image, src) {
12
- var xhr = new XMLHttpRequest();
13
- xhr.responseType = 'blob';
14
- xhr.open('GET', src);
15
- xhr.setRequestHeader('Authorization', "Bearer ".concat(getToken()));
16
- xhr.onload = function () {
17
- var url = URL.createObjectURL(xhr.response);
18
- var img = image.getImage();
19
- img.addEventListener('load', function () {
20
- URL.revokeObjectURL(url);
21
- });
22
- img.src = url;
23
- };
24
- xhr.send();
25
- };
26
- var _default = exports["default"] = getToken;
27
- //# sourceMappingURL=getToken.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getToken.js","names":["_utils","require","getToken","getVtxToken","imageLoadFunction","exports","image","src","xhr","XMLHttpRequest","responseType","open","setRequestHeader","concat","onload","url","URL","createObjectURL","response","img","getImage","addEventListener","revokeObjectURL","send","_default"],"sources":["_util/getToken.js"],"sourcesContent":["import { getVtxToken } from '@vtx/utils';\n\nconst getToken = () => {\n return getVtxToken('token');\n};\n\nexport const imageLoadFunction = (image, src) => {\n const xhr = new XMLHttpRequest();\n xhr.responseType = 'blob';\n xhr.open('GET', src);\n xhr.setRequestHeader('Authorization', `Bearer ${getToken()}`);\n xhr.onload = function() {\n const url = URL.createObjectURL(xhr.response);\n const img = image.getImage();\n img.addEventListener('load', function() {\n URL.revokeObjectURL(url);\n });\n img.src = url;\n };\n xhr.send();\n}\n\nexport default getToken;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAMC,QAAQ,GAAG,SAAXA,QAAQA,CAAA,EAAS;EACnB,OAAO,IAAAC,kBAAW,EAAC,OAAO,CAAC;AAC/B,CAAC;AAEM,IAAMC,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG,SAApBA,iBAAiBA,CAAIE,KAAK,EAAEC,GAAG,EAAK;EAC7C,IAAMC,GAAG,GAAG,IAAIC,cAAc,CAAC,CAAC;EAChCD,GAAG,CAACE,YAAY,GAAG,MAAM;EACzBF,GAAG,CAACG,IAAI,CAAC,KAAK,EAAEJ,GAAG,CAAC;EACpBC,GAAG,CAACI,gBAAgB,CAAC,eAAe,YAAAC,MAAA,CAAYX,QAAQ,CAAC,CAAC,CAAE,CAAC;EAC7DM,GAAG,CAACM,MAAM,GAAG,YAAW;IACpB,IAAMC,GAAG,GAAGC,GAAG,CAACC,eAAe,CAACT,GAAG,CAACU,QAAQ,CAAC;IAC7C,IAAMC,GAAG,GAAGb,KAAK,CAACc,QAAQ,CAAC,CAAC;IAC5BD,GAAG,CAACE,gBAAgB,CAAC,MAAM,EAAE,YAAW;MACpCL,GAAG,CAACM,eAAe,CAACP,GAAG,CAAC;IAC5B,CAAC,CAAC;IACFI,GAAG,CAACZ,GAAG,GAAGQ,GAAG;EACjB,CAAC;EACDP,GAAG,CAACe,IAAI,CAAC,CAAC;AACd,CAAC;AAAA,IAAAC,QAAA,GAAAnB,OAAA,cAEcH,QAAQ","ignoreList":[]}
@@ -1,15 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _querystring = _interopRequireDefault(require("querystring"));
8
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
- var getUrlParam = function getUrlParam(key) {
10
- var href = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.location.href;
11
- var params = _querystring["default"].parse(href.split('?')[1]);
12
- return key ? params[key] : params;
13
- };
14
- var _default = exports["default"] = getUrlParam;
15
- //# sourceMappingURL=getUrlParam.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getUrlParam.js","names":["_querystring","_interopRequireDefault","require","e","__esModule","getUrlParam","key","href","arguments","length","undefined","window","location","params","qs","parse","split","_default","exports"],"sources":["_util/getUrlParam.js"],"sourcesContent":["import qs from 'querystring';\n\nconst getUrlParam = (key, href = window.location.href) => {\n const params = qs.parse(href.split('?')[1]);\n return key ? params[key] : params;\n};\n\nexport default getUrlParam;\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA6B,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAE7B,IAAME,WAAW,GAAG,SAAdA,WAAWA,CAAIC,GAAG,EAAkC;EAAA,IAAhCC,IAAI,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGG,MAAM,CAACC,QAAQ,CAACL,IAAI;EACjD,IAAMM,MAAM,GAAGC,uBAAE,CAACC,KAAK,CAACR,IAAI,CAACS,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;EAC3C,OAAOV,GAAG,GAAGO,MAAM,CAACP,GAAG,CAAC,GAAGO,MAAM;AACrC,CAAC;AAAC,IAAAI,QAAA,GAAAC,OAAA,cAEab,WAAW","ignoreList":[]}