@vtx/ol-map 1.0.144 → 1.0.145

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 (511) hide show
  1. package/lib/_util/EventEmitter.js +78 -0
  2. package/lib/_util/EventEmitter.js.map +1 -0
  3. package/lib/_util/StyleCache.js +46 -0
  4. package/lib/_util/StyleCache.js.map +1 -0
  5. package/lib/_util/encryptParams.js +60 -0
  6. package/lib/_util/encryptParams.js.map +1 -0
  7. package/lib/_util/filterSpecialCharacters.js +90 -0
  8. package/lib/_util/filterSpecialCharacters.js.map +1 -0
  9. package/lib/_util/getComponentProps.js +14 -0
  10. package/lib/_util/getComponentProps.js.map +1 -0
  11. package/lib/_util/getCookie.js +24 -0
  12. package/lib/_util/getCookie.js.map +1 -0
  13. package/lib/_util/getDefaultMapInfo.js +50 -0
  14. package/lib/_util/getDefaultMapInfo.js.map +1 -0
  15. package/lib/_util/getSystemInfo.js +26 -0
  16. package/lib/_util/getSystemInfo.js.map +1 -0
  17. package/lib/_util/getToken.js +27 -0
  18. package/lib/_util/getToken.js.map +1 -0
  19. package/lib/_util/getUrlParam.js +15 -0
  20. package/lib/_util/getUrlParam.js.map +1 -0
  21. package/lib/_util/http.js +176 -0
  22. package/lib/_util/http.js.map +1 -0
  23. package/lib/_util/isFunction.js +10 -0
  24. package/lib/_util/isFunction.js.map +1 -0
  25. package/lib/_util/isObject.js +10 -0
  26. package/lib/_util/isObject.js.map +1 -0
  27. package/lib/_util/layer.js +152 -0
  28. package/lib/_util/layer.js.map +1 -0
  29. package/lib/_util/mapTool.js +188 -0
  30. package/lib/_util/mapTool.js.map +1 -0
  31. package/lib/_util/projzh/datum/bd-09.js +44 -0
  32. package/lib/_util/projzh/datum/bd-09.js.map +1 -0
  33. package/lib/_util/projzh/datum/gcj-02.js +72 -0
  34. package/lib/_util/projzh/datum/gcj-02.js.map +1 -0
  35. package/lib/_util/projzh/datum/index.js +14 -0
  36. package/lib/_util/projzh/datum/index.js.map +1 -0
  37. package/lib/_util/projzh/index.js +40 -0
  38. package/lib/_util/projzh/index.js.map +1 -0
  39. package/lib/_util/projzh/projection/baidu-mercator.js +74 -0
  40. package/lib/_util/projzh/projection/baidu-mercator.js.map +1 -0
  41. package/lib/_util/projzh/projection/index.js +14 -0
  42. package/lib/_util/projzh/projection/index.js.map +1 -0
  43. package/lib/_util/projzh/projection/spherical-mercator.js +25 -0
  44. package/lib/_util/projzh/projection/spherical-mercator.js.map +1 -0
  45. package/lib/_util/projzh/util.js +27 -0
  46. package/lib/_util/projzh/util.js.map +1 -0
  47. package/lib/_util/search.js +130 -0
  48. package/lib/_util/search.js.map +1 -0
  49. package/lib/_util/setCookie.js +15 -0
  50. package/lib/_util/setCookie.js.map +1 -0
  51. package/lib/_util/stringToFun.js +25 -0
  52. package/lib/_util/stringToFun.js.map +1 -0
  53. package/lib/_util/transform.js +169 -0
  54. package/lib/_util/transform.js.map +1 -0
  55. package/lib/_util/useColSize.js +28 -0
  56. package/lib/_util/useColSize.js.map +1 -0
  57. package/lib/_util/useInterval.js +19 -0
  58. package/lib/_util/useInterval.js.map +1 -0
  59. package/lib/_util/useSet.js +44 -0
  60. package/lib/_util/useSet.js.map +1 -0
  61. package/lib/analysis-layer/index.js +449 -0
  62. package/lib/analysis-layer/index.js.map +1 -0
  63. package/lib/analysis-layer/style/css.js +2 -0
  64. package/lib/analysis-layer/style/css.js.map +1 -0
  65. package/lib/analysis-layer/style/index.js +2 -0
  66. package/lib/analysis-layer/style/index.js.map +1 -0
  67. package/lib/assets/arrow.png +0 -0
  68. package/lib/assets/base-img-1.png +0 -0
  69. package/lib/assets/base-img-2.png +0 -0
  70. package/lib/assets/base-img-3.png +0 -0
  71. package/lib/assets/base-img-4.png +0 -0
  72. package/lib/assets/base-img-5.png +0 -0
  73. package/lib/assets/base-img-6.png +0 -0
  74. package/lib/assets/base-img.png +0 -0
  75. package/lib/assets/bz.png +0 -0
  76. package/lib/assets/img.png +0 -0
  77. package/lib/assets/kz.png +0 -0
  78. package/lib/assets/ll.png +0 -0
  79. package/lib/assets/location.png +0 -0
  80. package/lib/assets/noLocation.png +0 -0
  81. package/lib/assets/people.png +0 -0
  82. package/lib/assets/qd.png +0 -0
  83. package/lib/assets/sw.png +0 -0
  84. package/lib/assets/yl.png +0 -0
  85. package/lib/assets/zd.png +0 -0
  86. package/lib/buffer-draw/BufferDraw.js +398 -0
  87. package/lib/buffer-draw/BufferDraw.js.map +1 -0
  88. package/lib/buffer-draw/index.js +56 -0
  89. package/lib/buffer-draw/index.js.map +1 -0
  90. package/lib/buffer-draw/style/css.js +2 -0
  91. package/lib/buffer-draw/style/css.js.map +1 -0
  92. package/lib/buffer-draw/style/index.js +2 -0
  93. package/lib/buffer-draw/style/index.js.map +1 -0
  94. package/lib/circle/Circle.js +51 -0
  95. package/lib/circle/Circle.js.map +1 -0
  96. package/lib/circle/index.js +64 -0
  97. package/lib/circle/index.js.map +1 -0
  98. package/lib/circle/style/css.js +2 -0
  99. package/lib/circle/style/css.js.map +1 -0
  100. package/lib/circle/style/index.js +2 -0
  101. package/lib/circle/style/index.js.map +1 -0
  102. package/lib/config.js +12 -0
  103. package/lib/config.js.map +1 -0
  104. package/lib/convertCamelToCSS.js +23 -0
  105. package/lib/convertCamelToCSS.js.map +1 -0
  106. package/lib/dom/Dom.js +39 -0
  107. package/lib/dom/Dom.js.map +1 -0
  108. package/lib/dom/index.js +61 -0
  109. package/lib/dom/index.js.map +1 -0
  110. package/lib/dom/style/css.js +2 -0
  111. package/lib/dom/style/css.js.map +1 -0
  112. package/lib/dom/style/index.js +2 -0
  113. package/lib/dom/style/index.js.map +1 -0
  114. package/lib/events/index.js +25 -0
  115. package/lib/events/index.js.map +1 -0
  116. package/lib/feature-draw/FeatureDraw.js +230 -0
  117. package/lib/feature-draw/FeatureDraw.js.map +1 -0
  118. package/lib/feature-draw/index.js +73 -0
  119. package/lib/feature-draw/index.js.map +1 -0
  120. package/lib/feature-draw/style/css.js +2 -0
  121. package/lib/feature-draw/style/css.js.map +1 -0
  122. package/lib/feature-draw/style/index.js +2 -0
  123. package/lib/feature-draw/style/index.js.map +1 -0
  124. package/lib/feature-layer/FeatureLayer.js +1039 -0
  125. package/lib/feature-layer/FeatureLayer.js.map +1 -0
  126. package/lib/feature-layer/MyCluster.js +150 -0
  127. package/lib/feature-layer/MyCluster.js.map +1 -0
  128. package/lib/feature-layer/createFeatureCollection.js +167 -0
  129. package/lib/feature-layer/createFeatureCollection.js.map +1 -0
  130. package/lib/feature-layer/index.js +154 -0
  131. package/lib/feature-layer/index.js.map +1 -0
  132. package/lib/feature-layer/style/css.js +4 -0
  133. package/lib/feature-layer/style/css.js.map +1 -0
  134. package/lib/feature-layer/style/index.css +0 -0
  135. package/lib/feature-layer/style/index.js +4 -0
  136. package/lib/feature-layer/style/index.js.map +1 -0
  137. package/lib/feature-layer/style/index.less +0 -0
  138. package/lib/flow-line-layer/FlowLineLayer.js +197 -0
  139. package/lib/flow-line-layer/FlowLineLayer.js.map +1 -0
  140. package/lib/flow-line-layer/index.js +126 -0
  141. package/lib/flow-line-layer/index.js.map +1 -0
  142. package/lib/flow-line-layer/style/css.js +4 -0
  143. package/lib/flow-line-layer/style/css.js.map +1 -0
  144. package/lib/flow-line-layer/style/index.css +0 -0
  145. package/lib/flow-line-layer/style/index.js +4 -0
  146. package/lib/flow-line-layer/style/index.js.map +1 -0
  147. package/lib/flow-line-layer/style/index.less +0 -0
  148. package/lib/fly-line-layer/FlyLineLayer.js +217 -0
  149. package/lib/fly-line-layer/FlyLineLayer.js.map +1 -0
  150. package/lib/fly-line-layer/index.js +108 -0
  151. package/lib/fly-line-layer/index.js.map +1 -0
  152. package/lib/fly-line-layer/style/css.js +4 -0
  153. package/lib/fly-line-layer/style/css.js.map +1 -0
  154. package/lib/fly-line-layer/style/index.css +0 -0
  155. package/lib/fly-line-layer/style/index.js +4 -0
  156. package/lib/fly-line-layer/style/index.js.map +1 -0
  157. package/lib/fly-line-layer/style/index.less +0 -0
  158. package/lib/group-layer/GroupLayer.js +132 -0
  159. package/lib/group-layer/GroupLayer.js.map +1 -0
  160. package/lib/group-layer/index.js +73 -0
  161. package/lib/group-layer/index.js.map +1 -0
  162. package/lib/group-layer/style/css.js +4 -0
  163. package/lib/group-layer/style/css.js.map +1 -0
  164. package/lib/group-layer/style/index.css +0 -0
  165. package/lib/group-layer/style/index.js +4 -0
  166. package/lib/group-layer/style/index.js.map +1 -0
  167. package/lib/group-layer/style/index.less +0 -0
  168. package/lib/heatmap-layer/HeatmapLayer.js +191 -0
  169. package/lib/heatmap-layer/HeatmapLayer.js.map +1 -0
  170. package/lib/heatmap-layer/index.js +93 -0
  171. package/lib/heatmap-layer/index.js.map +1 -0
  172. package/lib/heatmap-layer/style/css.js +4 -0
  173. package/lib/heatmap-layer/style/css.js.map +1 -0
  174. package/lib/heatmap-layer/style/index.css +0 -0
  175. package/lib/heatmap-layer/style/index.js +4 -0
  176. package/lib/heatmap-layer/style/index.js.map +1 -0
  177. package/lib/heatmap-layer/style/index.less +0 -0
  178. package/lib/high-layer/HighLayer.js +199 -0
  179. package/lib/high-layer/HighLayer.js.map +1 -0
  180. package/lib/high-layer/index.js +44 -0
  181. package/lib/high-layer/index.js.map +1 -0
  182. package/lib/high-layer/style/css.js +2 -0
  183. package/lib/high-layer/style/css.js.map +1 -0
  184. package/lib/high-layer/style/index.js +2 -0
  185. package/lib/high-layer/style/index.js.map +1 -0
  186. package/lib/image-layer/ImageLayer.js +330 -0
  187. package/lib/image-layer/ImageLayer.js.map +1 -0
  188. package/lib/image-layer/ImageTileLayer.js +332 -0
  189. package/lib/image-layer/ImageTileLayer.js.map +1 -0
  190. package/lib/image-layer/index.js +100 -0
  191. package/lib/image-layer/index.js.map +1 -0
  192. package/lib/image-layer/style/css.js +4 -0
  193. package/lib/image-layer/style/css.js.map +1 -0
  194. package/lib/image-layer/style/index.css +0 -0
  195. package/lib/image-layer/style/index.js +4 -0
  196. package/lib/image-layer/style/index.js.map +1 -0
  197. package/lib/image-layer/style/index.less +0 -0
  198. package/lib/index.js +201 -0
  199. package/lib/index.js.map +1 -0
  200. package/lib/legend/index.js +220 -0
  201. package/lib/legend/index.js.map +1 -0
  202. package/lib/legend/style/css.js +8 -0
  203. package/lib/legend/style/css.js.map +1 -0
  204. package/lib/legend/style/index.css +74 -0
  205. package/lib/legend/style/index.js +8 -0
  206. package/lib/legend/style/index.js.map +1 -0
  207. package/lib/legend/style/index.less +73 -0
  208. package/lib/map/Analysis.js +148 -0
  209. package/lib/map/Analysis.js.map +1 -0
  210. package/lib/map/Layers.js +337 -0
  211. package/lib/map/Layers.js.map +1 -0
  212. package/lib/map/Popup.js +370 -0
  213. package/lib/map/Popup.js.map +1 -0
  214. package/lib/map/ScaleDenominator.js +68 -0
  215. package/lib/map/ScaleDenominator.js.map +1 -0
  216. package/lib/map/Test.js +144 -0
  217. package/lib/map/Test.js.map +1 -0
  218. package/lib/map/getBaseLayers/imagery/amap/AmapImageryProvider.js +163 -0
  219. package/lib/map/getBaseLayers/imagery/amap/AmapImageryProvider.js.map +1 -0
  220. package/lib/map/getBaseLayers/imagery/baidu/BaiduImageryProvider.js +84 -0
  221. package/lib/map/getBaseLayers/imagery/baidu/BaiduImageryProvider.js.map +1 -0
  222. package/lib/map/getBaseLayers/imagery/geoq/GeoQImageryProvider.js +65 -0
  223. package/lib/map/getBaseLayers/imagery/geoq/GeoQImageryProvider.js.map +1 -0
  224. package/lib/map/getBaseLayers/imagery/tdt/TdtImageryProvider.js +84 -0
  225. package/lib/map/getBaseLayers/imagery/tdt/TdtImageryProvider.js.map +1 -0
  226. package/lib/map/getBaseLayers/index.js +46 -0
  227. package/lib/map/getBaseLayers/index.js.map +1 -0
  228. package/lib/map/index.js +819 -0
  229. package/lib/map/index.js.map +1 -0
  230. package/lib/map/style/css.js +5 -0
  231. package/lib/map/style/css.js.map +1 -0
  232. package/lib/map/style/index.css +171 -0
  233. package/lib/map/style/index.js +5 -0
  234. package/lib/map/style/index.js.map +1 -0
  235. package/lib/map/style/index.less +152 -0
  236. package/lib/map-icon/svg/index.js +81 -0
  237. package/lib/map-icon/svg/index.js.map +1 -0
  238. package/lib/map-icon/svg/tuceng.svg.js +2 -0
  239. package/lib/map-icon/svg/tuceng.svg.js.map +1 -0
  240. package/lib/marker/Marker.js +105 -0
  241. package/lib/marker/Marker.js.map +1 -0
  242. package/lib/marker/index.js +61 -0
  243. package/lib/marker/index.js.map +1 -0
  244. package/lib/marker/style/css.js +2 -0
  245. package/lib/marker/style/css.js.map +1 -0
  246. package/lib/marker/style/index.js +2 -0
  247. package/lib/marker/style/index.js.map +1 -0
  248. package/lib/path-line-layer/PathLineLayer.js +45 -0
  249. package/lib/path-line-layer/PathLineLayer.js.map +1 -0
  250. package/lib/path-line-layer/getPathLineStyles.js +71 -0
  251. package/lib/path-line-layer/getPathLineStyles.js.map +1 -0
  252. package/lib/path-line-layer/index.js +151 -0
  253. package/lib/path-line-layer/index.js.map +1 -0
  254. package/lib/path-line-layer/style/css.js +4 -0
  255. package/lib/path-line-layer/style/css.js.map +1 -0
  256. package/lib/path-line-layer/style/index.css +0 -0
  257. package/lib/path-line-layer/style/index.js +4 -0
  258. package/lib/path-line-layer/style/index.js.map +1 -0
  259. package/lib/path-line-layer/style/index.less +0 -0
  260. package/lib/path-play-back/PathPlayBack.js +674 -0
  261. package/lib/path-play-back/PathPlayBack.js.map +1 -0
  262. package/lib/path-play-back/index.js +75 -0
  263. package/lib/path-play-back/index.js.map +1 -0
  264. package/lib/path-play-back/style/css.js +2 -0
  265. package/lib/path-play-back/style/css.js.map +1 -0
  266. package/lib/path-play-back/style/index.js +2 -0
  267. package/lib/path-play-back/style/index.js.map +1 -0
  268. package/lib/poi-search/Location.js +62 -0
  269. package/lib/poi-search/Location.js.map +1 -0
  270. package/lib/poi-search/PoiList.js +115 -0
  271. package/lib/poi-search/PoiList.js.map +1 -0
  272. package/lib/poi-search/Search.js +207 -0
  273. package/lib/poi-search/Search.js.map +1 -0
  274. package/lib/poi-search/index.js +172 -0
  275. package/lib/poi-search/index.js.map +1 -0
  276. package/lib/poi-search/style/css.js +8 -0
  277. package/lib/poi-search/style/css.js.map +1 -0
  278. package/lib/poi-search/style/index.css +96 -0
  279. package/lib/poi-search/style/index.js +8 -0
  280. package/lib/poi-search/style/index.js.map +1 -0
  281. package/lib/poi-search/style/index.less +97 -0
  282. package/lib/point/Point.js +57 -0
  283. package/lib/point/Point.js.map +1 -0
  284. package/lib/point/index.js +61 -0
  285. package/lib/point/index.js.map +1 -0
  286. package/lib/point/style/css.js +2 -0
  287. package/lib/point/style/css.js.map +1 -0
  288. package/lib/point/style/index.js +2 -0
  289. package/lib/point/style/index.js.map +1 -0
  290. package/lib/polygon/Polygon.js +51 -0
  291. package/lib/polygon/Polygon.js.map +1 -0
  292. package/lib/polygon/index.js +61 -0
  293. package/lib/polygon/index.js.map +1 -0
  294. package/lib/polygon/style/css.js +2 -0
  295. package/lib/polygon/style/css.js.map +1 -0
  296. package/lib/polygon/style/index.js +2 -0
  297. package/lib/polygon/style/index.js.map +1 -0
  298. package/lib/polyline/Polyline.js +51 -0
  299. package/lib/polyline/Polyline.js.map +1 -0
  300. package/lib/polyline/index.js +61 -0
  301. package/lib/polyline/index.js.map +1 -0
  302. package/lib/polyline/style/css.js +2 -0
  303. package/lib/polyline/style/css.js.map +1 -0
  304. package/lib/polyline/style/index.js +2 -0
  305. package/lib/polyline/style/index.js.map +1 -0
  306. package/lib/popup/index.js +202 -0
  307. package/lib/popup/index.js.map +1 -0
  308. package/lib/popup/style/css.js +4 -0
  309. package/lib/popup/style/css.js.map +1 -0
  310. package/lib/popup/style/index.css +131 -0
  311. package/lib/popup/style/index.js +4 -0
  312. package/lib/popup/style/index.js.map +1 -0
  313. package/lib/popup/style/index.less +129 -0
  314. package/lib/provider/index.js +12 -0
  315. package/lib/provider/index.js.map +1 -0
  316. package/lib/provider/style/css.js +2 -0
  317. package/lib/provider/style/css.js.map +1 -0
  318. package/lib/provider/style/index.js +2 -0
  319. package/lib/provider/style/index.js.map +1 -0
  320. package/lib/renderer/Fill.js +37 -0
  321. package/lib/renderer/Fill.js.map +1 -0
  322. package/lib/renderer/Stroke.js +39 -0
  323. package/lib/renderer/Stroke.js.map +1 -0
  324. package/lib/renderer/index.js +137 -0
  325. package/lib/renderer/index.js.map +1 -0
  326. package/lib/renderer/style/css.js +4 -0
  327. package/lib/renderer/style/css.js.map +1 -0
  328. package/lib/renderer/style/index.css +0 -0
  329. package/lib/renderer/style/index.js +4 -0
  330. package/lib/renderer/style/index.js.map +1 -0
  331. package/lib/renderer/style/index.less +0 -0
  332. package/lib/renderer/transformRgb.js +33 -0
  333. package/lib/renderer/transformRgb.js.map +1 -0
  334. package/lib/search-map/VtxModal.js +202 -0
  335. package/lib/search-map/VtxModal.js.map +1 -0
  336. package/lib/search-map/index.js +416 -0
  337. package/lib/search-map/index.js.map +1 -0
  338. package/lib/search-map/style/css.js +6 -0
  339. package/lib/search-map/style/css.js.map +1 -0
  340. package/lib/search-map/style/index.css +73 -0
  341. package/lib/search-map/style/index.js +6 -0
  342. package/lib/search-map/style/index.js.map +1 -0
  343. package/lib/search-map/style/index.less +83 -0
  344. package/lib/search-map/style/modal.css +54 -0
  345. package/lib/search-map/style/modal.less +58 -0
  346. package/lib/style/index.css +0 -0
  347. package/lib/style/index.less +2 -0
  348. package/lib/style/themes/compact.css +0 -0
  349. package/lib/style/themes/compact.less +1 -0
  350. package/lib/style/themes/dark.css +0 -0
  351. package/lib/style/themes/dark.less +9 -0
  352. package/lib/style/themes/default.css +0 -0
  353. package/lib/style/themes/default.less +7 -0
  354. package/lib/style/themes/index.css +0 -0
  355. package/lib/style/themes/index.less +1 -0
  356. package/lib/style/themes/variable.css +0 -0
  357. package/lib/style/themes/variable.less +5 -0
  358. package/lib/tile-layer/TileLayer.js +85 -0
  359. package/lib/tile-layer/TileLayer.js.map +1 -0
  360. package/lib/tile-layer/index.js +52 -0
  361. package/lib/tile-layer/index.js.map +1 -0
  362. package/lib/tile-layer/style/css.js +4 -0
  363. package/lib/tile-layer/style/css.js.map +1 -0
  364. package/lib/tile-layer/style/index.css +0 -0
  365. package/lib/tile-layer/style/index.js +4 -0
  366. package/lib/tile-layer/style/index.js.map +1 -0
  367. package/lib/tile-layer/style/index.less +0 -0
  368. package/lib/tools/Layer/LayerService.js +182 -0
  369. package/lib/tools/Layer/LayerService.js.map +1 -0
  370. package/lib/tools/Layer/LayersCheckService.js +188 -0
  371. package/lib/tools/Layer/LayersCheckService.js.map +1 -0
  372. package/lib/tools/Layer/index.css +50 -0
  373. package/lib/tools/Layer/index.js +225 -0
  374. package/lib/tools/Layer/index.js.map +1 -0
  375. package/lib/tools/Layer/index.less +43 -0
  376. package/lib/tools/Search/index.js +295 -0
  377. package/lib/tools/Search/index.js.map +1 -0
  378. package/lib/tools/Toolbox/BoxSelect/index.js +19 -0
  379. package/lib/tools/Toolbox/BoxSelect/index.js.map +1 -0
  380. package/lib/tools/Toolbox/CircleSelect/index.js +19 -0
  381. package/lib/tools/Toolbox/CircleSelect/index.js.map +1 -0
  382. package/lib/tools/Toolbox/EagleEye/index.js +55 -0
  383. package/lib/tools/Toolbox/EagleEye/index.js.map +1 -0
  384. package/lib/tools/Toolbox/MapBookmark/Bookmark.js +147 -0
  385. package/lib/tools/Toolbox/MapBookmark/Bookmark.js.map +1 -0
  386. package/lib/tools/Toolbox/MapBookmark/index.css +18 -0
  387. package/lib/tools/Toolbox/MapBookmark/index.js +428 -0
  388. package/lib/tools/Toolbox/MapBookmark/index.js.map +1 -0
  389. package/lib/tools/Toolbox/MapBookmark/index.less +20 -0
  390. package/lib/tools/Toolbox/MapDownload/index.js +16 -0
  391. package/lib/tools/Toolbox/MapDownload/index.js.map +1 -0
  392. package/lib/tools/Toolbox/MapPrint/index.css +4 -0
  393. package/lib/tools/Toolbox/MapPrint/index.js +231 -0
  394. package/lib/tools/Toolbox/MapPrint/index.js.map +1 -0
  395. package/lib/tools/Toolbox/MapPrint/index.less +4 -0
  396. package/lib/tools/Toolbox/Measure/Area/index.js +16 -0
  397. package/lib/tools/Toolbox/Measure/Area/index.js.map +1 -0
  398. package/lib/tools/Toolbox/Measure/Distance/index.js +16 -0
  399. package/lib/tools/Toolbox/Measure/Distance/index.js.map +1 -0
  400. package/lib/tools/Toolbox/Measure/Measure.js +227 -0
  401. package/lib/tools/Toolbox/Measure/Measure.js.map +1 -0
  402. package/lib/tools/Toolbox/Measure/index.js +75 -0
  403. package/lib/tools/Toolbox/Measure/index.js.map +1 -0
  404. package/lib/tools/Toolbox/PolygonSelect/index.js +19 -0
  405. package/lib/tools/Toolbox/PolygonSelect/index.js.map +1 -0
  406. package/lib/tools/Toolbox/ScaleLine/index.js +57 -0
  407. package/lib/tools/Toolbox/ScaleLine/index.js.map +1 -0
  408. package/lib/tools/Toolbox/SelectTools/index.css +103 -0
  409. package/lib/tools/Toolbox/SelectTools/index.js +776 -0
  410. package/lib/tools/Toolbox/SelectTools/index.js.map +1 -0
  411. package/lib/tools/Toolbox/SelectTools/index.less +87 -0
  412. package/lib/tools/Toolbox/SpaceQuery/index.css +19 -0
  413. package/lib/tools/Toolbox/SpaceQuery/index.js +592 -0
  414. package/lib/tools/Toolbox/SpaceQuery/index.js.map +1 -0
  415. package/lib/tools/Toolbox/SpaceQuery/index.less +16 -0
  416. package/lib/tools/Toolbox/ZoomInput/index.css +6 -0
  417. package/lib/tools/Toolbox/ZoomInput/index.js +48 -0
  418. package/lib/tools/Toolbox/ZoomInput/index.js.map +1 -0
  419. package/lib/tools/Toolbox/ZoomInput/index.less +6 -0
  420. package/lib/tools/Toolbox/index.css +0 -0
  421. package/lib/tools/Toolbox/index.js +169 -0
  422. package/lib/tools/Toolbox/index.js.map +1 -0
  423. package/lib/tools/Toolbox/index.less +2 -0
  424. package/lib/tools/Utils/CreateOverlay.js +46 -0
  425. package/lib/tools/Utils/CreateOverlay.js.map +1 -0
  426. package/lib/tools/Utils/Draw.js +127 -0
  427. package/lib/tools/Utils/Draw.js.map +1 -0
  428. package/lib/tools/Utils/HighLayer.js +211 -0
  429. package/lib/tools/Utils/HighLayer.js.map +1 -0
  430. package/lib/tools/Utils/measure.js +246 -0
  431. package/lib/tools/Utils/measure.js.map +1 -0
  432. package/lib/tools/Utils/utils.js +263 -0
  433. package/lib/tools/Utils/utils.js.map +1 -0
  434. package/lib/tools/View/index.css +35 -0
  435. package/lib/tools/View/index.js +164 -0
  436. package/lib/tools/View/index.js.map +1 -0
  437. package/lib/tools/View/index.less +28 -0
  438. package/lib/tools/analysis-tool/index.js +111 -0
  439. package/lib/tools/analysis-tool/index.js.map +1 -0
  440. package/lib/tools/base-map-switch/index.js +148 -0
  441. package/lib/tools/base-map-switch/index.js.map +1 -0
  442. package/lib/tools/components/Chart/index.js +817 -0
  443. package/lib/tools/components/Chart/index.js.map +1 -0
  444. package/lib/tools/components/Icon/index.js +31 -0
  445. package/lib/tools/components/Icon/index.js.map +1 -0
  446. package/lib/tools/components/Info/index.css +39 -0
  447. package/lib/tools/components/Info/index.js +34 -0
  448. package/lib/tools/components/Info/index.js.map +1 -0
  449. package/lib/tools/components/Info/index.less +26 -0
  450. package/lib/tools/components/ItemWrap/index.css +43 -0
  451. package/lib/tools/components/ItemWrap/index.js +46 -0
  452. package/lib/tools/components/ItemWrap/index.js.map +1 -0
  453. package/lib/tools/components/ItemWrap/index.less +41 -0
  454. package/lib/tools/components/Modal/index.css +42 -0
  455. package/lib/tools/components/Modal/index.js +45 -0
  456. package/lib/tools/components/Modal/index.js.map +1 -0
  457. package/lib/tools/components/Modal/index.less +33 -0
  458. package/lib/tools/components/MyTabs/index.js +22 -0
  459. package/lib/tools/components/MyTabs/index.js.map +1 -0
  460. package/lib/tools/components/RequiredLabel/index.css +5 -0
  461. package/lib/tools/components/RequiredLabel/index.js +32 -0
  462. package/lib/tools/components/RequiredLabel/index.js.map +1 -0
  463. package/lib/tools/components/RequiredLabel/index.less +5 -0
  464. package/lib/tools/components/Select/index.js +32 -0
  465. package/lib/tools/components/Select/index.js.map +1 -0
  466. package/lib/tools/components/Table/assets/tableIcon.png +0 -0
  467. package/lib/tools/components/Table/index.css +10 -0
  468. package/lib/tools/components/Table/index.js +89 -0
  469. package/lib/tools/components/Table/index.js.map +1 -0
  470. package/lib/tools/components/Table/index.less +13 -0
  471. package/lib/tools/components/ToolItem/index.css +30 -0
  472. package/lib/tools/components/ToolItem/index.js +28 -0
  473. package/lib/tools/components/ToolItem/index.js.map +1 -0
  474. package/lib/tools/components/ToolItem/index.less +27 -0
  475. package/lib/tools/components/ToolsSelect/index.css +15 -0
  476. package/lib/tools/components/ToolsSelect/index.js +44 -0
  477. package/lib/tools/components/ToolsSelect/index.js.map +1 -0
  478. package/lib/tools/components/ToolsSelect/index.less +10 -0
  479. package/lib/tools/full-screen/index.js +45 -0
  480. package/lib/tools/full-screen/index.js.map +1 -0
  481. package/lib/tools/index.js +150 -0
  482. package/lib/tools/index.js.map +1 -0
  483. package/lib/tools/layer-control/index.js +169 -0
  484. package/lib/tools/layer-control/index.js.map +1 -0
  485. package/lib/tools/refresh/index.js +39 -0
  486. package/lib/tools/refresh/index.js.map +1 -0
  487. package/lib/tools/style/css.js +22 -0
  488. package/lib/tools/style/css.js.map +1 -0
  489. package/lib/tools/style/index.css +136 -0
  490. package/lib/tools/style/index.js +22 -0
  491. package/lib/tools/style/index.js.map +1 -0
  492. package/lib/tools/style/index.less +154 -0
  493. package/lib/tools-item/index.js +65 -0
  494. package/lib/tools-item/index.js.map +1 -0
  495. package/lib/use-props/index.js +14 -0
  496. package/lib/use-props/index.js.map +1 -0
  497. package/lib/use-props/style/css.js +2 -0
  498. package/lib/use-props/style/css.js.map +1 -0
  499. package/lib/use-props/style/index.js +2 -0
  500. package/lib/use-props/style/index.js.map +1 -0
  501. package/lib/wms-layer/WmsLayer.js +313 -0
  502. package/lib/wms-layer/WmsLayer.js.map +1 -0
  503. package/lib/wms-layer/index.js +97 -0
  504. package/lib/wms-layer/index.js.map +1 -0
  505. package/lib/wms-layer/style/css.js +4 -0
  506. package/lib/wms-layer/style/css.js.map +1 -0
  507. package/lib/wms-layer/style/index.css +0 -0
  508. package/lib/wms-layer/style/index.js +4 -0
  509. package/lib/wms-layer/style/index.js.map +1 -0
  510. package/lib/wms-layer/style/index.less +0 -0
  511. package/package.json +1 -1
@@ -0,0 +1,78 @@
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
@@ -0,0 +1 @@
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":["// 发布订阅模式\r\nclass EventEmitter {\r\n constructor() {\r\n // 事件对象,存放订阅的名字和事件 如:{'click': [handle, handle2]}\r\n this.events = {};\r\n }\r\n\r\n // 订阅事件方法\r\n on(eventName, callback) {\r\n this.events[eventName] = this.events[eventName] || [];\r\n this.events[eventName].push(callback);\r\n }\r\n\r\n // 触发事件方法\r\n emit(eventName, ...rest) {\r\n if (this.events[eventName]) {\r\n this.events[eventName].forEach(f => f.apply(this, rest));\r\n }\r\n }\r\n\r\n // 移除订阅事件\r\n un(eventName, callback) {\r\n if (this.events[eventName]) {\r\n this.events[eventName] = this.events[eventName].filter(f => f !== callback);\r\n }\r\n }\r\n\r\n // 只执行一次订阅的事件\r\n once(eventName, callback) {\r\n //创建临时方法\r\n const fn = (...rest) => {\r\n // 执行原有的callback\r\n callback.apply(this, rest);\r\n\r\n // 执行移除事件,删除临时方法\r\n this.un(eventName, fn);\r\n };\r\n\r\n // 执行订阅事件,绑定临时方法\r\n this.on(eventName, fn);\r\n }\r\n}\r\n\r\nexport default EventEmitter;\r\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,CAACL,MAAM,CAACK,SAAS,CAAC,CAACE,IAAI,CAACD,QAAQ,CAAC;IACzC;;IAEA;EAAA;IAAAJ,GAAA;IAAAC,KAAA,EACA,SAAAK,IAAIA,CAACH,SAAS,EAAW;MAAA,IAAAI,KAAA;MAAA,SAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAANC,IAAI,OAAAC,KAAA,CAAAJ,IAAA,OAAAA,IAAA,WAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA;QAAJF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reList":[]}
@@ -0,0 +1,46 @@
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
@@ -0,0 +1 @@
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":["\r\nclass StyleCache {\r\n constructor() {\r\n this.cache = new Map();\r\n }\r\n\r\n get(key) {\r\n return this.cache.get(key);\r\n }\r\n\r\n set(key, value) {\r\n this.cache.set(key, value)\r\n }\r\n\r\n has(key) {\r\n return this.cache.has(key)\r\n }\r\n\r\n delete(key) {\r\n this.cache.delete(key)\r\n }\r\n\r\n clear() {\r\n this.cache.clear()\r\n }\r\n}\r\n\r\nexport default StyleCache;\r\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":[]}
@@ -0,0 +1,60 @@
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
@@ -0,0 +1 @@
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';\r\nimport getUrlParam from './getUrlParam';\r\n\r\n// 这里是密钥\r\nexport const keyHex = 'NT9FWl3ze1GJNqpo';\r\nexport const ivHex = 'vL7iWTTV7RngvKkn';\r\n\r\n// 解密 data:要加密解密的数据,AES_KEY:密钥,IV:偏移量\r\nexport const encrypt = (data, options) => {\r\n let {key: AES_KEY, iv: IV, mode} = (options && typeof options === 'object') ? options : {};\r\n const key = CryptoJS.enc.Utf8.parse(AES_KEY || keyHex);\r\n const iv = CryptoJS.enc.Utf8.parse(IV || ivHex);\r\n\r\n return CryptoJS.AES.encrypt(data, key, {\r\n iv,\r\n mode: CryptoJS.mode[mode ||'CBC'],\r\n padding: CryptoJS.pad.Pkcs7\r\n }).toString()\r\n}\r\n\r\n/**\r\n * 加密参数\r\n * @param params\r\n * @param options\r\n * @returns {*}\r\n */\r\nconst encryptParams = (params, options) => {\r\n if (params?.cql_filter) {\r\n params = JSON.parse(JSON.stringify(params));\r\n params.CQL_FILTER_ENCRYPT = encrypt(encodeURIComponent(params.cql_filter), options);\r\n\r\n delete params.cql_filter\r\n }\r\n\r\n return params\r\n}\r\n\r\n/**\r\n * 根据url判断是否加密\r\n * @param params\r\n * @param options\r\n * @returns {*}\r\n */\r\nexport const encryptParamsByUrl = (params, options) => {\r\n const encryptParam = getUrlParam('encrypt');\r\n\r\n if (encryptParam === 'true') {\r\n return encryptParams(params, options);\r\n }\r\n\r\n return params\r\n}\r\n\r\nexport default encryptParams;\r\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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B,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":[]}
@@ -0,0 +1,90 @@
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
@@ -0,0 +1 @@
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';\r\n\r\nfunction isNotEmpty(value) {\r\n return Array.isArray(value) && value.length > 0;\r\n}\r\n\r\n/**\r\n * 过滤特殊字符\r\n * @param {String} value 值\r\n * @param {Object} option\r\n * @param {Array} [option.include] 新增\r\n * @param {Array} [option.exclude] 排除\r\n */\r\nexport default function filterSpecialCharacters(value, { include = [], exclude = [] } = {}) {\r\n // 特殊符号,- _ 排除\r\n let specialCharacter = [\r\n // 小括号\r\n '(',\r\n ')',\r\n '(',\r\n ')',\r\n // 中括号\r\n '\\\\[',\r\n '\\\\]',\r\n '[',\r\n ']',\r\n // 大括号\r\n '{',\r\n '}',\r\n '{',\r\n '}',\r\n // 方头括号\r\n '【',\r\n '】',\r\n // 尖括号\r\n '<',\r\n '>',\r\n // 书名号\r\n '《',\r\n '》',\r\n // 斜杠\r\n '/',\r\n // 反斜杠\r\n '\\\\\\\\',\r\n // 逗号\r\n ',',\r\n ',',\r\n // 句号\r\n '.',\r\n '。',\r\n // 冒号\r\n ':',\r\n ':',\r\n // 分号\r\n ';',\r\n ';',\r\n // 顿号\r\n '、',\r\n // 破折号\r\n '——',\r\n // 感叹号\r\n '!',\r\n '!',\r\n // 问号\r\n '?',\r\n '?',\r\n // 加减等于\r\n '+',\r\n '=',\r\n // 单引号\r\n \"'\",\r\n '‘',\r\n '’',\r\n // 双引号\r\n '\"',\r\n '“',\r\n '”',\r\n // 金钱\r\n '$',\r\n '¥',\r\n // 百分号\r\n '%',\r\n '%',\r\n // 其它\r\n '@',\r\n '#',\r\n '`',\r\n '~',\r\n '*',\r\n '^',\r\n '……',\r\n '|',\r\n '&',\r\n ];\r\n\r\n // 新增\r\n if (isNotEmpty(include)) {\r\n specialCharacter = Array.from(new Set([...specialCharacter, ...include]));\r\n }\r\n\r\n // 移除\r\n if (isNotEmpty(exclude)) {\r\n specialCharacter = difference(specialCharacter, exclude);\r\n }\r\n\r\n return value.replace(new RegExp(`[${specialCharacter.join('')}]`, 'g'), '');\r\n}\r\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA2C,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAAA,SAAAE,mBAAAC,CAAA,WAAAC,kBAAA,CAAAD,CAAA,KAAAE,gBAAA,CAAAF,CAAA,KAAAG,2BAAA,CAAAH,CAAA,KAAAI,kBAAA;AAAA,SAAAA,mBAAA,cAAAC,SAAA;AAAA,SAAAF,4BAAAH,CAAA,EAAAM,CAAA,QAAAN,CAAA,2BAAAA,CAAA,SAAAO,iBAAA,CAAAP,CAAA,EAAAM,CAAA,OAAAE,CAAA,MAAAC,QAAA,CAAAC,IAAA,CAAAV,CAAA,EAAAW,KAAA,6BAAAH,CAAA,IAAAR,CAAA,CAAAY,WAAA,KAAAJ,CAAA,GAAAR,CAAA,CAAAY,WAAA,CAAAC,IAAA,aAAAL,CAAA,cAAAA,CAAA,GAAAM,KAAA,CAAAC,IAAA,CAAAf,CAAA,oBAAAQ,CAAA,+CAAAQ,IAAA,CAAAR,CAAA,IAAAD,iBAAA,CAAAP,CAAA,EAAAM,CAAA;AAAA,SAAAJ,iBAAAF,CAAA,8BAAAiB,MAAA,YAAAjB,CAAA,CAAAiB,MAAA,CAAAC,QAAA,aAAAlB,CAAA,uBAAAc,K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H,GAAG;EACH;EACA,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG;EACH;EACA,GAAG;EACH;EACA,IAAI;EACJ;EACA,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG,EACH,GAAG,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":[]}
@@ -0,0 +1,14 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getComponentProps.js","names":["getComponentProps","prop","_typeof"],"sources":["_util/getComponentProps.js"],"sourcesContent":["export default function getComponentProps(prop) {\r\n if (prop && typeof prop === 'object') {\r\n return prop;\r\n }\r\n return {};\r\n}\r\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":[]}
@@ -0,0 +1,24 @@
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
@@ -0,0 +1 @@
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":["/**\r\n * @name cookie取值\r\n * @param c_name 要取得的字段名\r\n * @returns {string} 返回字段对应的值, 若字段不存在则返回空\r\n */\r\nexport default c_name => {\r\n if (document.cookie.length > 0) {\r\n let c_start = document.cookie.indexOf(`${c_name}=`);\r\n if (c_start !== -1) {\r\n c_start = c_start + c_name.length + 1;\r\n let c_end = document.cookie.indexOf(';', c_start);\r\n if (c_end == -1) c_end = document.cookie.length;\r\n return unescape(document.cookie.substring(c_start, c_end));\r\n }\r\n }\r\n return '';\r\n};\r\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":[]}
@@ -0,0 +1,50 @@
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
@@ -0,0 +1 @@
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 () => {\r\n let val = {};\r\n\r\n let systemInfo = window.sessionStorage.getItem('systemInfo');\r\n if (systemInfo) {\r\n systemInfo = (systemInfo && JSON.parse(systemInfo)) || {};\r\n\r\n const {longitude, latitude} = systemInfo;\r\n val.longitude = longitude;\r\n val.latitude = latitude;\r\n val.mapType = 'wgs84';\r\n\r\n if (systemInfo?.mapDefJson) {\r\n let mapDefJson = JSON.parse(systemInfo.mapDefJson);\r\n let defaultMap = mapDefJson.find(v => v.defaultMap) || {};\r\n val = {\r\n ...val,\r\n ...defaultMap,\r\n mapType: defaultMap.coordinate || 'wgs84',\r\n };\r\n }\r\n }\r\n\r\n // 获取其他配置\r\n let menuConfig = window.sessionStorage.getItem('menuConfig');\r\n if (menuConfig) {\r\n menuConfig = JSON.parse(menuConfig);\r\n if (menuConfig) {\r\n const {baseMapStyle} = menuConfig;\r\n if (baseMapStyle) {\r\n val.baseMapStyle = baseMapStyle;\r\n }\r\n }\r\n }\r\n\r\n return val;\r\n};\r\n"],"mappings":";;;;;;;;;;;;oCAAe,SAAAA,SAAA,EAAM;EACjB,IAAIC,GAAG,GAAG,CAAC,CAAC;EAEZ,IAAIC,UA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ignoreList":[]}
@@ -0,0 +1,26 @@
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
@@ -0,0 +1 @@
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 => {\r\n const systemInfo = localStorage.getItem('systemInfo');\r\n let system = {};\r\n if (systemInfo && systemInfo !== '[object Object]') {\r\n system = JSON.parse(decodeURIComponent(decodeURIComponent(systemInfo)));\r\n system = {\r\n ...system,\r\n access_token: system.token,\r\n };\r\n }\r\n if (key) {\r\n return system[key];\r\n }\r\n};\r\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":[]}
@@ -0,0 +1,27 @@
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
@@ -0,0 +1 @@
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';\r\n\r\nconst getToken = () => {\r\n return getVtxToken('token');\r\n};\r\n\r\nexport const imageLoadFunction = (image, src) => {\r\n const xhr = new XMLHttpRequest();\r\n xhr.responseType = 'blob';\r\n xhr.open('GET', src);\r\n xhr.setRequestHeader('Authorization', `Bearer ${getToken()}`);\r\n xhr.onload = function() {\r\n const url = URL.createObjectURL(xhr.response);\r\n const img = image.getImage();\r\n img.addEventListener('load', function() {\r\n URL.revokeObjectURL(url);\r\n });\r\n img.src = url;\r\n };\r\n xhr.send();\r\n}\r\n\r\nexport default getToken;\r\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":[]}
@@ -0,0 +1,15 @@
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
@@ -0,0 +1 @@
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';\r\n\r\nconst getUrlParam = (key, href = window.location.href) => {\r\n const params = qs.parse(href.split('?')[1]);\r\n return key ? params[key] : params;\r\n};\r\n\r\nexport default getUrlParam;\r\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":[]}