bbj-screen-widget 2.4.44 → 2.4.46

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 (718) hide show
  1. package/core/package.json +2 -10
  2. package/core/src/service/baidu-map.service.ts +107 -0
  3. package/karma.conf.js +32 -0
  4. package/ng-package.json +59 -0
  5. package/package.json +4 -13
  6. package/src/assets/js/BMapGL/mapvgl.min.js +914 -898
  7. package/src/lib/announcement/announcement.component.html +3 -0
  8. package/src/lib/announcement/announcement.component.less +5 -0
  9. package/src/lib/announcement/announcement.component.spec.ts +25 -0
  10. package/src/lib/announcement/announcement.component.ts +55 -0
  11. package/src/lib/announcement/announcement.module.ts +19 -0
  12. package/src/lib/audio/audio.component.html +6 -0
  13. package/src/lib/audio/audio.component.less +12 -0
  14. package/src/lib/audio/audio.component.spec.ts +25 -0
  15. package/src/lib/audio/audio.component.ts +167 -0
  16. package/src/lib/audio/audio.module.ts +15 -0
  17. package/src/lib/background/background.component.html +1 -0
  18. package/src/lib/background/background.component.less +6 -0
  19. package/src/lib/background/background.component.spec.ts +25 -0
  20. package/src/lib/background/background.component.ts +33 -0
  21. package/src/lib/background/background.module.ts +14 -0
  22. package/src/lib/bar-chart-three-d/bar-chart-three-d.component.html +1 -0
  23. package/src/lib/bar-chart-three-d/bar-chart-three-d.component.less +8 -0
  24. package/src/lib/bar-chart-three-d/bar-chart-three-d.component.spec.ts +25 -0
  25. package/src/lib/bar-chart-three-d/bar-chart-three-d.component.ts +271 -0
  26. package/src/lib/bar-chart-three-d/bar-chart-three-d.module.ts +15 -0
  27. package/src/lib/basic-bar-chart/basic-bar-chart.component.html +7 -0
  28. package/src/lib/basic-bar-chart/basic-bar-chart.component.less +5 -0
  29. package/src/lib/basic-bar-chart/basic-bar-chart.component.spec.ts +25 -0
  30. package/src/lib/basic-bar-chart/basic-bar-chart.component.ts +493 -0
  31. package/src/lib/basic-bar-chart/basic-bar-chart.module.ts +21 -0
  32. package/src/lib/basic-line-chart/basic-line-chart.component.html +7 -0
  33. package/src/lib/basic-line-chart/basic-line-chart.component.less +8 -0
  34. package/src/lib/basic-line-chart/basic-line-chart.component.spec.ts +25 -0
  35. package/src/lib/basic-line-chart/basic-line-chart.component.ts +654 -0
  36. package/src/lib/basic-line-chart/basic-line-chart.module.ts +15 -0
  37. package/src/lib/basic-pie-chart/basic-pie-chart.component.html +7 -0
  38. package/src/lib/basic-pie-chart/basic-pie-chart.component.less +8 -0
  39. package/src/lib/basic-pie-chart/basic-pie-chart.component.spec.ts +25 -0
  40. package/src/lib/basic-pie-chart/basic-pie-chart.component.ts +439 -0
  41. package/src/lib/basic-pie-chart/basic-pie-chart.module.ts +15 -0
  42. package/src/lib/basic-planimetric-map/basic-planimetric-map.component.html +2 -0
  43. package/src/lib/basic-planimetric-map/basic-planimetric-map.component.less +9 -0
  44. package/src/lib/basic-planimetric-map/basic-planimetric-map.component.spec.ts +25 -0
  45. package/src/lib/basic-planimetric-map/basic-planimetric-map.component.ts +211 -0
  46. package/src/lib/basic-planimetric-map/basic-planimetric-map.module.ts +16 -0
  47. package/src/lib/breathing-bubble-layer/breathing-bubble-layer.component.css +0 -0
  48. package/src/lib/breathing-bubble-layer/breathing-bubble-layer.component.html +1 -0
  49. package/src/lib/breathing-bubble-layer/breathing-bubble-layer.component.spec.ts +25 -0
  50. package/src/lib/breathing-bubble-layer/breathing-bubble-layer.component.ts +487 -0
  51. package/src/lib/breathing-bubble-layer/breathing-bubble-layer.module.ts +14 -0
  52. package/src/lib/bubble-chart/bubble-chart.component.html +7 -0
  53. package/src/lib/bubble-chart/bubble-chart.component.less +8 -0
  54. package/src/lib/bubble-chart/bubble-chart.component.spec.ts +25 -0
  55. package/src/lib/bubble-chart/bubble-chart.component.ts +307 -0
  56. package/src/lib/bubble-chart/bubble-chart.module.ts +15 -0
  57. package/src/lib/bulletin-board/bulletin-board.component.html +15 -0
  58. package/src/lib/bulletin-board/bulletin-board.component.less +27 -0
  59. package/src/lib/bulletin-board/bulletin-board.component.spec.ts +25 -0
  60. package/src/lib/bulletin-board/bulletin-board.component.ts +127 -0
  61. package/src/lib/bulletin-board/bulletin-board.module.ts +20 -0
  62. package/src/lib/button/button.component.html +1 -0
  63. package/src/lib/button/button.component.less +17 -0
  64. package/src/lib/button/button.component.spec.ts +25 -0
  65. package/src/lib/button/button.component.ts +137 -0
  66. package/src/lib/button/button.module.ts +16 -0
  67. package/src/lib/calendar/calendar.component.html +1 -0
  68. package/src/lib/calendar/calendar.component.less +14 -0
  69. package/src/lib/calendar/calendar.component.spec.ts +25 -0
  70. package/src/lib/calendar/calendar.component.ts +75 -0
  71. package/src/lib/calendar/calendar.module.ts +23 -0
  72. package/src/lib/checkbox/checkbox.component.html +61 -0
  73. package/src/lib/checkbox/checkbox.component.less +104 -0
  74. package/src/lib/checkbox/checkbox.component.spec.ts +25 -0
  75. package/src/lib/checkbox/checkbox.component.ts +292 -0
  76. package/src/lib/checkbox/checkbox.module.ts +16 -0
  77. package/src/lib/cross-table/cross-table.component.html +16 -0
  78. package/src/lib/cross-table/cross-table.component.less +75 -0
  79. package/src/lib/cross-table/cross-table.component.spec.ts +25 -0
  80. package/src/lib/cross-table/cross-table.component.ts +257 -0
  81. package/src/lib/cross-table/cross-table.module.ts +18 -0
  82. package/src/lib/custom-baidu-map/baidu-marker-layer/baidu-marker-layer.component.html +32 -0
  83. package/src/lib/custom-baidu-map/baidu-marker-layer/baidu-marker-layer.component.less +11 -0
  84. package/src/lib/custom-baidu-map/baidu-marker-layer/baidu-marker-layer.component.spec.ts +25 -0
  85. package/src/lib/custom-baidu-map/baidu-marker-layer/baidu-marker-layer.component.ts +638 -0
  86. package/src/lib/custom-baidu-map/baidu-polyline-layer/baidu-polyline-layer.component.html +0 -0
  87. package/src/lib/custom-baidu-map/baidu-polyline-layer/baidu-polyline-layer.component.less +0 -0
  88. package/src/lib/custom-baidu-map/baidu-polyline-layer/baidu-polyline-layer.component.spec.ts +25 -0
  89. package/src/lib/custom-baidu-map/baidu-polyline-layer/baidu-polyline-layer.component.ts +248 -0
  90. package/src/lib/custom-baidu-map/base-layer.ts +50 -0
  91. package/src/lib/custom-baidu-map/custom-baidu-map.component.html +15 -0
  92. package/src/lib/custom-baidu-map/custom-baidu-map.component.less +68 -0
  93. package/src/lib/custom-baidu-map/custom-baidu-map.component.spec.ts +25 -0
  94. package/src/lib/custom-baidu-map/custom-baidu-map.component.ts +636 -0
  95. package/src/lib/custom-baidu-map/custom-baidu-map.module.ts +41 -0
  96. package/src/lib/custom-baidu-map/typhoon-area-layer/typhoon-area-layer.component.html +0 -0
  97. package/src/lib/custom-baidu-map/typhoon-area-layer/typhoon-area-layer.component.less +0 -0
  98. package/src/lib/custom-baidu-map/typhoon-area-layer/typhoon-area-layer.component.spec.ts +25 -0
  99. package/src/lib/custom-baidu-map/typhoon-area-layer/typhoon-area-layer.component.ts +99 -0
  100. package/src/lib/custom-baidu-map/wind-layer/wind-layer.component.html +0 -0
  101. package/src/lib/custom-baidu-map/wind-layer/wind-layer.component.less +0 -0
  102. package/src/lib/custom-baidu-map/wind-layer/wind-layer.component.spec.ts +25 -0
  103. package/src/lib/custom-baidu-map/wind-layer/wind-layer.component.ts +404 -0
  104. package/src/lib/data-map/data-map.component.html +9 -0
  105. package/src/lib/data-map/data-map.component.less +0 -0
  106. package/src/lib/data-map/data-map.component.spec.ts +25 -0
  107. package/src/lib/data-map/data-map.component.ts +105 -0
  108. package/src/lib/data-map/data-map.module.ts +15 -0
  109. package/src/lib/date-picker/date-picker.component.html +32 -0
  110. package/src/lib/date-picker/date-picker.component.less +20 -0
  111. package/src/lib/date-picker/date-picker.component.spec.ts +25 -0
  112. package/src/lib/date-picker/date-picker.component.ts +389 -0
  113. package/src/lib/date-picker/date-picker.module.ts +18 -0
  114. package/src/lib/drop-down-detail-list/drop-down-detail-list.component.html +25 -0
  115. package/src/lib/drop-down-detail-list/drop-down-detail-list.component.less +35 -0
  116. package/src/lib/drop-down-detail-list/drop-down-detail-list.component.spec.ts +25 -0
  117. package/src/lib/drop-down-detail-list/drop-down-detail-list.component.ts +117 -0
  118. package/src/lib/drop-down-detail-list/drop-down-detail-list.module.ts +15 -0
  119. package/src/lib/dynamic-list/dynamic-list.component.html +15 -0
  120. package/src/lib/dynamic-list/dynamic-list.component.less +31 -0
  121. package/src/lib/dynamic-list/dynamic-list.component.spec.ts +25 -0
  122. package/src/lib/dynamic-list/dynamic-list.component.ts +57 -0
  123. package/src/lib/dynamic-list/dynamic-list.module.ts +15 -0
  124. package/src/lib/funnel-chart/funnel-chart.component.html +7 -0
  125. package/src/lib/funnel-chart/funnel-chart.component.less +8 -0
  126. package/src/lib/funnel-chart/funnel-chart.component.spec.ts +25 -0
  127. package/src/lib/funnel-chart/funnel-chart.component.ts +198 -0
  128. package/src/lib/funnel-chart/funnel-chart.module.ts +15 -0
  129. package/src/lib/gantt/gantt.component.html +10 -0
  130. package/src/lib/gantt/gantt.component.less +76 -0
  131. package/src/lib/gantt/gantt.component.spec.ts +25 -0
  132. package/src/lib/gantt/gantt.component.ts +213 -0
  133. package/src/lib/gantt/gantt.module.ts +37 -0
  134. package/src/lib/gauge/gauge.component.html +1 -0
  135. package/src/lib/gauge/gauge.component.less +8 -0
  136. package/src/lib/gauge/gauge.component.spec.ts +25 -0
  137. package/src/lib/gauge/gauge.component.ts +268 -0
  138. package/src/lib/gauge/gauge.module.ts +15 -0
  139. package/src/lib/gauge-progress/gauge-progress.component.html +29 -0
  140. package/src/lib/gauge-progress/gauge-progress.component.less +51 -0
  141. package/src/lib/gauge-progress/gauge-progress.component.ts +288 -0
  142. package/src/lib/gauge-progress/gauge.module.ts +16 -0
  143. package/src/lib/general-text/general-text.component.html +7 -0
  144. package/src/lib/general-text/general-text.component.less +8 -0
  145. package/src/lib/general-text/general-text.component.spec.ts +25 -0
  146. package/src/lib/general-text/general-text.component.ts +114 -0
  147. package/src/lib/general-text/general-text.module.ts +15 -0
  148. package/src/lib/iconfont/icon.ts +198 -0
  149. package/src/lib/iconfont/iconfont.component.html +4 -0
  150. package/src/lib/iconfont/iconfont.component.less +5 -0
  151. package/src/lib/iconfont/iconfont.component.spec.ts +25 -0
  152. package/src/lib/iconfont/iconfont.component.ts +42 -0
  153. package/src/lib/iconfont/iconfont.module.ts +15 -0
  154. package/src/lib/iframe/iframe.component.html +1 -0
  155. package/src/lib/iframe/iframe.component.less +13 -0
  156. package/src/lib/iframe/iframe.component.spec.ts +25 -0
  157. package/src/lib/iframe/iframe.component.ts +34 -0
  158. package/src/lib/iframe/iframe.module.ts +15 -0
  159. package/src/lib/image/image.component.html +2 -0
  160. package/src/lib/image/image.component.less +13 -0
  161. package/src/lib/image/image.component.spec.ts +25 -0
  162. package/src/lib/image/image.component.ts +79 -0
  163. package/src/lib/image/image.module.ts +14 -0
  164. package/src/lib/item-swiper/item-swiper.component.html +48 -0
  165. package/src/lib/item-swiper/item-swiper.component.less +75 -0
  166. package/src/lib/item-swiper/item-swiper.component.spec.ts +25 -0
  167. package/src/lib/item-swiper/item-swiper.component.ts +284 -0
  168. package/src/lib/item-swiper/item-swiper.module.ts +24 -0
  169. package/src/lib/line-bar-chart/line-bar-chart.component.html +7 -0
  170. package/src/lib/line-bar-chart/line-bar-chart.component.less +3 -0
  171. package/src/lib/line-bar-chart/line-bar-chart.component.spec.ts +25 -0
  172. package/src/lib/line-bar-chart/line-bar-chart.component.ts +346 -0
  173. package/src/lib/line-bar-chart/line-bar-chart.module.ts +15 -0
  174. package/src/lib/line-light-flow/line-light-flow.component.css +0 -0
  175. package/src/lib/line-light-flow/line-light-flow.component.html +3 -0
  176. package/src/lib/line-light-flow/line-light-flow.component.spec.ts +25 -0
  177. package/src/lib/line-light-flow/line-light-flow.component.ts +274 -0
  178. package/src/lib/line-light-flow/line-light-flow.module.ts +21 -0
  179. package/src/lib/liquid-fill/liquid-fill.component.html +1 -0
  180. package/src/lib/liquid-fill/liquid-fill.component.less +8 -0
  181. package/src/lib/liquid-fill/liquid-fill.component.spec.ts +25 -0
  182. package/src/lib/liquid-fill/liquid-fill.component.ts +127 -0
  183. package/src/lib/liquid-fill/liquid-fill.module.ts +15 -0
  184. package/src/lib/marquee/marquee.component.html +5 -0
  185. package/src/lib/marquee/marquee.component.less +9 -0
  186. package/src/lib/marquee/marquee.component.spec.ts +25 -0
  187. package/src/lib/marquee/marquee.component.ts +84 -0
  188. package/src/lib/marquee/marquee.module.ts +14 -0
  189. package/src/lib/mip-anim/mip-anim.component.html +1 -0
  190. package/src/lib/mip-anim/mip-anim.component.less +7 -0
  191. package/src/lib/mip-anim/mip-anim.component.spec.ts +25 -0
  192. package/src/lib/mip-anim/mip-anim.component.ts +18 -0
  193. package/src/lib/mip-anim/mip-anim.module.ts +14 -0
  194. package/src/lib/multi-title-gauge/multi-title-gauge.component.html +1 -0
  195. package/src/lib/multi-title-gauge/multi-title-gauge.component.less +9 -0
  196. package/src/lib/multi-title-gauge/multi-title-gauge.component.spec.ts +25 -0
  197. package/src/lib/multi-title-gauge/multi-title-gauge.component.ts +231 -0
  198. package/src/lib/multi-title-gauge/multi-title-gauge.module.ts +19 -0
  199. package/src/lib/number-flop/number-flop.component.html +31 -0
  200. package/src/lib/number-flop/number-flop.component.less +155 -0
  201. package/src/lib/number-flop/number-flop.component.spec.ts +25 -0
  202. package/src/lib/number-flop/number-flop.component.ts +96 -0
  203. package/src/lib/number-flop/number-flop.module.ts +14 -0
  204. package/src/lib/parent-container/parent-container.component.html +0 -0
  205. package/src/lib/parent-container/parent-container.component.less +0 -0
  206. package/src/lib/parent-container/parent-container.component.spec.ts +25 -0
  207. package/src/lib/parent-container/parent-container.component.ts +21 -0
  208. package/src/lib/parent-container/parent-container.module.ts +14 -0
  209. package/src/lib/percent-pie-chart/percent-pie-chart.component.html +8 -0
  210. package/src/lib/percent-pie-chart/percent-pie-chart.component.less +8 -0
  211. package/src/lib/percent-pie-chart/percent-pie-chart.component.spec.ts +25 -0
  212. package/src/lib/percent-pie-chart/percent-pie-chart.component.ts +213 -0
  213. package/src/lib/percent-pie-chart/percent-pie-chart.module.ts +15 -0
  214. package/src/lib/pie3d-chart/pie3d-chart.component.html +1 -0
  215. package/src/lib/pie3d-chart/pie3d-chart.component.less +9 -0
  216. package/src/lib/pie3d-chart/pie3d-chart.component.spec.ts +25 -0
  217. package/src/lib/pie3d-chart/pie3d-chart.component.ts +278 -0
  218. package/src/lib/pie3d-chart/pie3d-chart.module.ts +16 -0
  219. package/src/lib/planimetric-map2d/fly-line-layer/fly-line-layer.component.html +0 -0
  220. package/src/lib/planimetric-map2d/fly-line-layer/fly-line-layer.component.less +0 -0
  221. package/src/lib/planimetric-map2d/fly-line-layer/fly-line-layer.component.spec.ts +25 -0
  222. package/src/lib/planimetric-map2d/fly-line-layer/fly-line-layer.component.ts +411 -0
  223. package/src/lib/planimetric-map2d/fly-line-layer/fly-line-layer.module.ts +13 -0
  224. package/src/lib/planimetric-map2d/map2d-mark-layer/map2d-mark-layer.component.html +1 -0
  225. package/src/lib/planimetric-map2d/map2d-mark-layer/map2d-mark-layer.component.less +0 -0
  226. package/src/lib/planimetric-map2d/map2d-mark-layer/map2d-mark-layer.component.spec.ts +25 -0
  227. package/src/lib/planimetric-map2d/map2d-mark-layer/map2d-mark-layer.component.ts +235 -0
  228. package/src/lib/planimetric-map2d/map2d-mark-layer/map2d-mark-layer.module.ts +16 -0
  229. package/src/lib/planimetric-map2d/map2d-polyline-layer/map2d-polyline-layer.component.html +0 -0
  230. package/src/lib/planimetric-map2d/map2d-polyline-layer/map2d-polyline-layer.component.less +0 -0
  231. package/src/lib/planimetric-map2d/map2d-polyline-layer/map2d-polyline-layer.component.spec.ts +25 -0
  232. package/src/lib/planimetric-map2d/map2d-polyline-layer/map2d-polyline-layer.component.ts +107 -0
  233. package/src/lib/planimetric-map2d/map2d-polyline-layer/map2d-polyline-layer.module.ts +17 -0
  234. package/src/lib/planimetric-map2d/map2d-visual-layer/map2d-visual-layer.component.html +0 -0
  235. package/src/lib/planimetric-map2d/map2d-visual-layer/map2d-visual-layer.component.less +0 -0
  236. package/src/lib/planimetric-map2d/map2d-visual-layer/map2d-visual-layer.component.spec.ts +25 -0
  237. package/src/lib/planimetric-map2d/map2d-visual-layer/map2d-visual-layer.component.ts +337 -0
  238. package/src/lib/planimetric-map2d/map2d-visual-layer/map2d-visual-layer.module.ts +18 -0
  239. package/src/lib/planimetric-map2d/planimetric-map2d.component.html +3 -0
  240. package/src/lib/planimetric-map2d/planimetric-map2d.component.less +9 -0
  241. package/src/lib/planimetric-map2d/planimetric-map2d.component.spec.ts +25 -0
  242. package/src/lib/planimetric-map2d/planimetric-map2d.component.ts +649 -0
  243. package/src/lib/planimetric-map2d/planimetric-map2d.module.ts +29 -0
  244. package/src/lib/planimetric-map3d/map3d-line-layer/map3d-line-layer.component.html +0 -0
  245. package/src/lib/planimetric-map3d/map3d-line-layer/map3d-line-layer.component.less +0 -0
  246. package/src/lib/planimetric-map3d/map3d-line-layer/map3d-line-layer.component.spec.ts +25 -0
  247. package/src/lib/planimetric-map3d/map3d-line-layer/map3d-line-layer.component.ts +123 -0
  248. package/src/lib/planimetric-map3d/map3d-line-layer/map3d-line-layer.module.ts +14 -0
  249. package/src/lib/planimetric-map3d/map3d-mark-layer/map3d-mark-layer.component.html +0 -0
  250. package/src/lib/planimetric-map3d/map3d-mark-layer/map3d-mark-layer.component.less +0 -0
  251. package/src/lib/planimetric-map3d/map3d-mark-layer/map3d-mark-layer.component.spec.ts +25 -0
  252. package/src/lib/planimetric-map3d/map3d-mark-layer/map3d-mark-layer.component.ts +229 -0
  253. package/src/lib/planimetric-map3d/map3d-mark-layer/map3d-mark-layer.module.ts +14 -0
  254. package/src/lib/planimetric-map3d/planimetric-map3d.component.html +2 -0
  255. package/src/lib/planimetric-map3d/planimetric-map3d.component.less +10 -0
  256. package/src/lib/planimetric-map3d/planimetric-map3d.component.spec.ts +25 -0
  257. package/src/lib/planimetric-map3d/planimetric-map3d.component.ts +227 -0
  258. package/src/lib/planimetric-map3d/planimetric-map3d.module.ts +17 -0
  259. package/src/lib/radar-chart/radar-chart.component.html +7 -0
  260. package/src/lib/radar-chart/radar-chart.component.less +8 -0
  261. package/src/lib/radar-chart/radar-chart.component.spec.ts +25 -0
  262. package/src/lib/radar-chart/radar-chart.component.ts +203 -0
  263. package/src/lib/radar-chart/radar-chart.module.ts +15 -0
  264. package/src/lib/radio/radio.component.html +18 -0
  265. package/src/lib/radio/radio.component.less +61 -0
  266. package/src/lib/radio/radio.component.spec.ts +25 -0
  267. package/src/lib/radio/radio.component.ts +116 -0
  268. package/src/lib/radio/radio.module.ts +16 -0
  269. package/src/lib/rate/rate.component.html +16 -0
  270. package/src/lib/rate/rate.component.less +39 -0
  271. package/src/lib/rate/rate.component.spec.ts +25 -0
  272. package/src/lib/rate/rate.component.ts +40 -0
  273. package/src/lib/rate/rate.module.ts +18 -0
  274. package/src/lib/scatter3d/scatter3d.component.html +1 -0
  275. package/src/lib/scatter3d/scatter3d.component.less +8 -0
  276. package/src/lib/scatter3d/scatter3d.component.spec.ts +25 -0
  277. package/src/lib/scatter3d/scatter3d.component.ts +129 -0
  278. package/src/lib/scatter3d/scatter3d.module.ts +15 -0
  279. package/src/lib/screen-widget.module.ts +592 -0
  280. package/src/lib/search/search.component.html +30 -0
  281. package/src/lib/search/search.component.less +30 -0
  282. package/src/lib/search/search.component.spec.ts +25 -0
  283. package/src/lib/search/search.component.ts +103 -0
  284. package/src/lib/search/search.module.ts +22 -0
  285. package/src/lib/select/select.component.html +27 -0
  286. package/src/lib/select/select.component.less +112 -0
  287. package/src/lib/select/select.component.spec.ts +25 -0
  288. package/src/lib/select/select.component.ts +287 -0
  289. package/src/lib/select/select.module.ts +16 -0
  290. package/src/lib/shape/shape.component.html +39 -0
  291. package/src/lib/shape/shape.component.less +8 -0
  292. package/src/lib/shape/shape.component.spec.ts +25 -0
  293. package/src/lib/shape/shape.component.ts +207 -0
  294. package/src/lib/shape/shape.module.ts +14 -0
  295. package/src/lib/shared/component/video-player/video-player.component.html +2 -0
  296. package/src/lib/shared/component/video-player/video-player.component.less +15 -0
  297. package/src/lib/shared/component/video-player/video-player.component.spec.ts +25 -0
  298. package/src/lib/shared/component/video-player/video-player.component.ts +132 -0
  299. package/src/lib/shared/component/video-player/video-player.module.ts +11 -0
  300. package/src/lib/shared/model/scale.token.ts +8 -0
  301. package/src/lib/shared/service/common.service.ts +28 -0
  302. package/src/lib/shared/service/file-url.service.ts +8 -0
  303. package/src/lib/shared/service/gaode-map.service.ts +37 -0
  304. package/src/lib/shared/service/highcharts.service.ts +29 -0
  305. package/src/lib/shared/service/http.service.ts +15 -0
  306. package/src/lib/shared/util/base.util.ts +4 -0
  307. package/src/lib/shared/util/echarts.util.ts +11 -0
  308. package/src/lib/shared/util/style.util.ts +12 -0
  309. package/src/lib/shuffling-list/color.pipe.ts +21 -0
  310. package/src/lib/shuffling-list/shuffling-list.component.html +37 -0
  311. package/src/lib/shuffling-list/shuffling-list.component.less +55 -0
  312. package/src/lib/shuffling-list/shuffling-list.component.spec.ts +25 -0
  313. package/src/lib/shuffling-list/shuffling-list.component.ts +534 -0
  314. package/src/lib/shuffling-list/shuffling-list.module.ts +17 -0
  315. package/src/lib/table/table.component.html +123 -0
  316. package/src/lib/table/table.component.less +76 -0
  317. package/src/lib/table/table.component.spec.ts +25 -0
  318. package/src/lib/table/table.component.ts +608 -0
  319. package/src/lib/table/table.module.ts +33 -0
  320. package/src/lib/tabs/tab/tab.component.html +1 -0
  321. package/src/lib/tabs/tab/tab.component.less +5 -0
  322. package/src/lib/tabs/tab/tab.component.spec.ts +25 -0
  323. package/src/lib/tabs/tab/tab.component.ts +18 -0
  324. package/src/lib/tabs/tabs.component.html +13 -0
  325. package/src/lib/tabs/tabs.component.less +40 -0
  326. package/src/lib/tabs/tabs.component.spec.ts +25 -0
  327. package/src/lib/tabs/tabs.component.ts +68 -0
  328. package/src/lib/tabs/tabs.module.ts +17 -0
  329. package/src/lib/temporary-data/temporary-data.component.html +1 -0
  330. package/src/lib/temporary-data/temporary-data.component.less +4 -0
  331. package/src/lib/temporary-data/temporary-data.component.spec.ts +25 -0
  332. package/src/lib/temporary-data/temporary-data.component.ts +46 -0
  333. package/src/lib/temporary-data/temporary-data.module.ts +15 -0
  334. package/src/lib/text/text.component.css +0 -0
  335. package/src/lib/text/text.component.html +3 -0
  336. package/src/lib/text/text.component.spec.ts +25 -0
  337. package/src/lib/text/text.component.ts +22 -0
  338. package/src/lib/text/text.module.ts +14 -0
  339. package/src/lib/time-picker/time-picker.component.html +1 -0
  340. package/src/lib/time-picker/time-picker.component.less +14 -0
  341. package/src/lib/time-picker/time-picker.component.spec.ts +25 -0
  342. package/src/lib/time-picker/time-picker.component.ts +86 -0
  343. package/src/lib/time-picker/time-picker.module.ts +19 -0
  344. package/src/lib/timer/timer.component.html +7 -0
  345. package/src/lib/timer/timer.component.less +24 -0
  346. package/src/lib/timer/timer.component.spec.ts +25 -0
  347. package/src/lib/timer/timer.component.ts +74 -0
  348. package/src/lib/timer/timer.module.ts +15 -0
  349. package/src/lib/tree-control/tree-control.component.html +97 -0
  350. package/src/lib/tree-control/tree-control.component.less +111 -0
  351. package/src/lib/tree-control/tree-control.component.spec.ts +25 -0
  352. package/src/lib/tree-control/tree-control.component.ts +363 -0
  353. package/src/lib/tree-control/tree-control.module.ts +18 -0
  354. package/src/lib/tree-ring-chart/tree-ring-chart.component.html +7 -0
  355. package/src/lib/tree-ring-chart/tree-ring-chart.component.less +8 -0
  356. package/src/lib/tree-ring-chart/tree-ring-chart.component.spec.ts +25 -0
  357. package/src/lib/tree-ring-chart/tree-ring-chart.component.ts +192 -0
  358. package/src/lib/tree-ring-chart/tree-ring-chart.module.ts +15 -0
  359. package/src/lib/upload/upload.component.html +32 -0
  360. package/src/lib/upload/upload.component.less +14 -0
  361. package/src/lib/upload/upload.component.spec.ts +25 -0
  362. package/src/lib/upload/upload.component.ts +109 -0
  363. package/src/lib/upload/upload.module.ts +19 -0
  364. package/src/lib/video-grid/video-grid.component.html +33 -0
  365. package/src/lib/video-grid/video-grid.component.less +68 -0
  366. package/src/lib/video-grid/video-grid.component.spec.ts +25 -0
  367. package/src/lib/video-grid/video-grid.component.ts +114 -0
  368. package/src/lib/video-grid/video-grid.module.ts +17 -0
  369. package/src/lib/visual-map-chart/visual-map-chart.component.html +8 -0
  370. package/src/lib/visual-map-chart/visual-map-chart.component.less +21 -0
  371. package/src/lib/visual-map-chart/visual-map-chart.component.spec.ts +25 -0
  372. package/src/lib/visual-map-chart/visual-map-chart.component.ts +365 -0
  373. package/src/lib/visual-map-chart/visual-map-chart.module.ts +18 -0
  374. package/src/lib/vote/vote.component.html +6 -0
  375. package/src/lib/vote/vote.component.less +41 -0
  376. package/src/lib/vote/vote.component.spec.ts +25 -0
  377. package/src/lib/vote/vote.component.ts +71 -0
  378. package/src/lib/vote/vote.module.ts +16 -0
  379. package/src/lib/weather/weather.component.html +27 -0
  380. package/src/lib/weather/weather.component.less +67 -0
  381. package/src/lib/weather/weather.component.spec.ts +25 -0
  382. package/src/lib/weather/weather.component.ts +78 -0
  383. package/src/lib/weather/weather.module.ts +16 -0
  384. package/src/lib/wordart/wordart.component.html +2 -0
  385. package/src/lib/wordart/wordart.component.less +12 -0
  386. package/src/lib/wordart/wordart.component.spec.ts +25 -0
  387. package/src/lib/wordart/wordart.component.ts +56 -0
  388. package/src/lib/wordart/wordart.module.ts +14 -0
  389. package/src/lib/workbench-widget.module.ts +675 -0
  390. package/{public-api.d.ts → src/public-api.ts} +46 -34
  391. package/src/test.ts +22 -0
  392. package/tsconfig.lib.json +37 -0
  393. package/tsconfig.lib.prod.json +9 -0
  394. package/tsconfig.spec.json +17 -0
  395. package/tslint.json +17 -0
  396. package/bbj-screen-widget.d.ts +0 -117
  397. package/bbj-screen-widget.metadata.json +0 -1
  398. package/bundles/bbj-screen-widget-core.umd.js +0 -606
  399. package/bundles/bbj-screen-widget-core.umd.js.map +0 -1
  400. package/bundles/bbj-screen-widget-core.umd.min.js +0 -2
  401. package/bundles/bbj-screen-widget-core.umd.min.js.map +0 -1
  402. package/bundles/bbj-screen-widget.umd.js +0 -21247
  403. package/bundles/bbj-screen-widget.umd.js.map +0 -1
  404. package/bundles/bbj-screen-widget.umd.min.js +0 -2
  405. package/bundles/bbj-screen-widget.umd.min.js.map +0 -1
  406. package/core/bbj-screen-widget-core.d.ts +0 -4
  407. package/core/bbj-screen-widget-core.metadata.json +0 -1
  408. package/core/service/baidu-map.service.d.ts +0 -16
  409. package/esm2015/bbj-screen-widget.js +0 -118
  410. package/esm2015/core/bbj-screen-widget-core.js +0 -5
  411. package/esm2015/core/public_api.js +0 -2
  412. package/esm2015/core/service/baidu-map.service.js +0 -101
  413. package/esm2015/lib/announcement/announcement.component.js +0 -80
  414. package/esm2015/lib/announcement/announcement.module.js +0 -25
  415. package/esm2015/lib/audio/audio.component.js +0 -167
  416. package/esm2015/lib/audio/audio.module.js +0 -20
  417. package/esm2015/lib/background/background.component.js +0 -52
  418. package/esm2015/lib/background/background.module.js +0 -19
  419. package/esm2015/lib/bar-chart-three-d/bar-chart-three-d.component.js +0 -323
  420. package/esm2015/lib/bar-chart-three-d/bar-chart-three-d.module.js +0 -20
  421. package/esm2015/lib/basic-bar-chart/basic-bar-chart.component.js +0 -604
  422. package/esm2015/lib/basic-bar-chart/basic-bar-chart.module.js +0 -27
  423. package/esm2015/lib/basic-line-chart/basic-line-chart.component.js +0 -782
  424. package/esm2015/lib/basic-line-chart/basic-line-chart.module.js +0 -20
  425. package/esm2015/lib/basic-pie-chart/basic-pie-chart.component.js +0 -471
  426. package/esm2015/lib/basic-pie-chart/basic-pie-chart.module.js +0 -20
  427. package/esm2015/lib/basic-planimetric-map/basic-planimetric-map.component.js +0 -233
  428. package/esm2015/lib/basic-planimetric-map/basic-planimetric-map.module.js +0 -21
  429. package/esm2015/lib/breathing-bubble-layer/breathing-bubble-layer.component.js +0 -503
  430. package/esm2015/lib/breathing-bubble-layer/breathing-bubble-layer.module.js +0 -19
  431. package/esm2015/lib/bubble-chart/bubble-chart.component.js +0 -348
  432. package/esm2015/lib/bubble-chart/bubble-chart.module.js +0 -20
  433. package/esm2015/lib/bulletin-board/bulletin-board.component.js +0 -160
  434. package/esm2015/lib/bulletin-board/bulletin-board.module.js +0 -23
  435. package/esm2015/lib/button/button.component.js +0 -186
  436. package/esm2015/lib/button/button.module.js +0 -21
  437. package/esm2015/lib/calendar/calendar.component.js +0 -96
  438. package/esm2015/lib/calendar/calendar.module.js +0 -28
  439. package/esm2015/lib/checkbox/checkbox.component.js +0 -333
  440. package/esm2015/lib/checkbox/checkbox.module.js +0 -21
  441. package/esm2015/lib/cross-table/cross-table.component.js +0 -291
  442. package/esm2015/lib/cross-table/cross-table.module.js +0 -20
  443. package/esm2015/lib/custom-baidu-map/baidu-marker-layer/baidu-marker-layer.component.js +0 -685
  444. package/esm2015/lib/custom-baidu-map/baidu-polyline-layer/baidu-polyline-layer.component.js +0 -278
  445. package/esm2015/lib/custom-baidu-map/base-layer.js +0 -53
  446. package/esm2015/lib/custom-baidu-map/custom-baidu-map.component.js +0 -655
  447. package/esm2015/lib/custom-baidu-map/custom-baidu-map.module.js +0 -46
  448. package/esm2015/lib/custom-baidu-map/typhoon-area-layer/typhoon-area-layer.component.js +0 -116
  449. package/esm2015/lib/custom-baidu-map/wind-layer/wind-layer.component.js +0 -331
  450. package/esm2015/lib/date-picker/date-picker.component.js +0 -447
  451. package/esm2015/lib/date-picker/date-picker.module.js +0 -22
  452. package/esm2015/lib/funnel-chart/funnel-chart.component.js +0 -241
  453. package/esm2015/lib/funnel-chart/funnel-chart.module.js +0 -20
  454. package/esm2015/lib/gantt/gantt.component.js +0 -222
  455. package/esm2015/lib/gantt/gantt.module.js +0 -39
  456. package/esm2015/lib/gauge/gauge.component.js +0 -324
  457. package/esm2015/lib/gauge/gauge.module.js +0 -20
  458. package/esm2015/lib/gauge-progress/gauge-progress.component.js +0 -348
  459. package/esm2015/lib/gauge-progress/gauge.module.js +0 -21
  460. package/esm2015/lib/general-text/general-text.component.js +0 -144
  461. package/esm2015/lib/general-text/general-text.module.js +0 -20
  462. package/esm2015/lib/iconfont/icon.js +0 -199
  463. package/esm2015/lib/iconfont/iconfont.component.js +0 -56
  464. package/esm2015/lib/iconfont/iconfont.module.js +0 -20
  465. package/esm2015/lib/iframe/iframe.component.js +0 -46
  466. package/esm2015/lib/iframe/iframe.module.js +0 -20
  467. package/esm2015/lib/image/image.component.js +0 -98
  468. package/esm2015/lib/image/image.module.js +0 -19
  469. package/esm2015/lib/item-swiper/item-swiper.component.js +0 -334
  470. package/esm2015/lib/item-swiper/item-swiper.module.js +0 -28
  471. package/esm2015/lib/line-bar-chart/line-bar-chart.component.js +0 -398
  472. package/esm2015/lib/line-bar-chart/line-bar-chart.module.js +0 -20
  473. package/esm2015/lib/line-light-flow/line-light-flow.component.js +0 -241
  474. package/esm2015/lib/line-light-flow/line-light-flow.module.js +0 -24
  475. package/esm2015/lib/liquid-fill/liquid-fill.component.js +0 -158
  476. package/esm2015/lib/liquid-fill/liquid-fill.module.js +0 -20
  477. package/esm2015/lib/marquee/marquee.component.js +0 -110
  478. package/esm2015/lib/marquee/marquee.module.js +0 -19
  479. package/esm2015/lib/mip-anim/mip-anim.component.js +0 -26
  480. package/esm2015/lib/mip-anim/mip-anim.module.js +0 -19
  481. package/esm2015/lib/multi-title-gauge/multi-title-gauge.component.js +0 -277
  482. package/esm2015/lib/multi-title-gauge/multi-title-gauge.module.js +0 -22
  483. package/esm2015/lib/number-flop/number-flop.component.js +0 -124
  484. package/esm2015/lib/number-flop/number-flop.module.js +0 -19
  485. package/esm2015/lib/parent-container/parent-container.component.js +0 -21
  486. package/esm2015/lib/parent-container/parent-container.module.js +0 -19
  487. package/esm2015/lib/percent-pie-chart/percent-pie-chart.component.js +0 -248
  488. package/esm2015/lib/percent-pie-chart/percent-pie-chart.module.js +0 -20
  489. package/esm2015/lib/pie3d-chart/pie3d-chart.component.js +0 -303
  490. package/esm2015/lib/pie3d-chart/pie3d-chart.module.js +0 -19
  491. package/esm2015/lib/planimetric-map2d/fly-line-layer/fly-line-layer.component.js +0 -431
  492. package/esm2015/lib/planimetric-map2d/fly-line-layer/fly-line-layer.module.js +0 -19
  493. package/esm2015/lib/planimetric-map2d/map2d-mark-layer/map2d-mark-layer.component.js +0 -252
  494. package/esm2015/lib/planimetric-map2d/map2d-mark-layer/map2d-mark-layer.module.js +0 -19
  495. package/esm2015/lib/planimetric-map2d/map2d-polyline-layer/map2d-polyline-layer.component.js +0 -124
  496. package/esm2015/lib/planimetric-map2d/map2d-polyline-layer/map2d-polyline-layer.module.js +0 -19
  497. package/esm2015/lib/planimetric-map2d/map2d-visual-layer/map2d-visual-layer.component.js +0 -359
  498. package/esm2015/lib/planimetric-map2d/map2d-visual-layer/map2d-visual-layer.module.js +0 -21
  499. package/esm2015/lib/planimetric-map2d/planimetric-map2d.component.js +0 -712
  500. package/esm2015/lib/planimetric-map2d/planimetric-map2d.module.js +0 -34
  501. package/esm2015/lib/planimetric-map3d/map3d-line-layer/map3d-line-layer.component.js +0 -128
  502. package/esm2015/lib/planimetric-map3d/map3d-line-layer/map3d-line-layer.module.js +0 -19
  503. package/esm2015/lib/planimetric-map3d/map3d-mark-layer/map3d-mark-layer.component.js +0 -242
  504. package/esm2015/lib/planimetric-map3d/map3d-mark-layer/map3d-mark-layer.module.js +0 -19
  505. package/esm2015/lib/planimetric-map3d/planimetric-map3d.component.js +0 -265
  506. package/esm2015/lib/planimetric-map3d/planimetric-map3d.module.js +0 -22
  507. package/esm2015/lib/radar-chart/radar-chart.component.js +0 -236
  508. package/esm2015/lib/radar-chart/radar-chart.module.js +0 -20
  509. package/esm2015/lib/radio/radio.component.js +0 -148
  510. package/esm2015/lib/radio/radio.module.js +0 -21
  511. package/esm2015/lib/rate/rate.component.js +0 -57
  512. package/esm2015/lib/rate/rate.module.js +0 -23
  513. package/esm2015/lib/scatter3d/scatter3d.component.js +0 -166
  514. package/esm2015/lib/scatter3d/scatter3d.module.js +0 -20
  515. package/esm2015/lib/screen-widget.module.js +0 -536
  516. package/esm2015/lib/search/search.component.js +0 -130
  517. package/esm2015/lib/search/search.module.js +0 -29
  518. package/esm2015/lib/select/select.component.js +0 -343
  519. package/esm2015/lib/select/select.module.js +0 -21
  520. package/esm2015/lib/shape/shape.component.js +0 -248
  521. package/esm2015/lib/shape/shape.module.js +0 -19
  522. package/esm2015/lib/shared/component/video-player/video-player.component.js +0 -114
  523. package/esm2015/lib/shared/component/video-player/video-player.module.js +0 -14
  524. package/esm2015/lib/shared/service/common.service.js +0 -39
  525. package/esm2015/lib/shared/service/file-url.service.js +0 -12
  526. package/esm2015/lib/shared/service/gaode-map.service.js +0 -36
  527. package/esm2015/lib/shared/service/highcharts.service.js +0 -36
  528. package/esm2015/lib/shared/service/http.service.js +0 -20
  529. package/esm2015/lib/shared/util/base.util.js +0 -5
  530. package/esm2015/lib/shared/util/echarts.util.js +0 -12
  531. package/esm2015/lib/shared/util/style.util.js +0 -19
  532. package/esm2015/lib/shuffling-list/color.pipe.js +0 -23
  533. package/esm2015/lib/shuffling-list/shuffling-list.component.js +0 -600
  534. package/esm2015/lib/shuffling-list/shuffling-list.module.js +0 -22
  535. package/esm2015/lib/table/table.component.js +0 -657
  536. package/esm2015/lib/table/table.module.js +0 -38
  537. package/esm2015/lib/tabs/tab/tab.component.js +0 -27
  538. package/esm2015/lib/tabs/tabs.component.js +0 -85
  539. package/esm2015/lib/tabs/tabs.module.js +0 -22
  540. package/esm2015/lib/temporary-data/temporary-data.component.js +0 -49
  541. package/esm2015/lib/temporary-data/temporary-data.module.js +0 -20
  542. package/esm2015/lib/time-picker/time-picker.component.js +0 -112
  543. package/esm2015/lib/time-picker/time-picker.module.js +0 -21
  544. package/esm2015/lib/timer/timer.component.js +0 -108
  545. package/esm2015/lib/timer/timer.module.js +0 -20
  546. package/esm2015/lib/tree-control/tree-control.component.js +0 -381
  547. package/esm2015/lib/tree-control/tree-control.module.js +0 -24
  548. package/esm2015/lib/tree-ring-chart/tree-ring-chart.component.js +0 -215
  549. package/esm2015/lib/tree-ring-chart/tree-ring-chart.module.js +0 -20
  550. package/esm2015/lib/upload/upload.component.js +0 -127
  551. package/esm2015/lib/upload/upload.module.js +0 -22
  552. package/esm2015/lib/video-grid/video-grid.component.js +0 -133
  553. package/esm2015/lib/video-grid/video-grid.module.js +0 -22
  554. package/esm2015/lib/visual-map-chart/visual-map-chart.component.js +0 -395
  555. package/esm2015/lib/visual-map-chart/visual-map-chart.module.js +0 -20
  556. package/esm2015/lib/vote/vote.component.js +0 -100
  557. package/esm2015/lib/vote/vote.module.js +0 -21
  558. package/esm2015/lib/weather/weather.component.js +0 -92
  559. package/esm2015/lib/weather/weather.module.js +0 -21
  560. package/esm2015/lib/wordart/wordart.component.js +0 -84
  561. package/esm2015/lib/wordart/wordart.module.js +0 -19
  562. package/esm2015/lib/workbench-widget.module.js +0 -620
  563. package/esm2015/public-api.js +0 -39
  564. package/fesm2015/bbj-screen-widget-core.js +0 -107
  565. package/fesm2015/bbj-screen-widget-core.js.map +0 -1
  566. package/fesm2015/bbj-screen-widget.js +0 -20169
  567. package/fesm2015/bbj-screen-widget.js.map +0 -1
  568. package/lib/announcement/announcement.component.d.ts +0 -13
  569. package/lib/announcement/announcement.module.d.ts +0 -5
  570. package/lib/audio/audio.component.d.ts +0 -22
  571. package/lib/audio/audio.module.d.ts +0 -4
  572. package/lib/background/background.component.d.ts +0 -12
  573. package/lib/background/background.module.d.ts +0 -4
  574. package/lib/bar-chart-three-d/bar-chart-three-d.component.d.ts +0 -30
  575. package/lib/bar-chart-three-d/bar-chart-three-d.module.d.ts +0 -4
  576. package/lib/basic-bar-chart/basic-bar-chart.component.d.ts +0 -105
  577. package/lib/basic-bar-chart/basic-bar-chart.module.d.ts +0 -5
  578. package/lib/basic-line-chart/basic-line-chart.component.d.ts +0 -102
  579. package/lib/basic-line-chart/basic-line-chart.module.d.ts +0 -4
  580. package/lib/basic-pie-chart/basic-pie-chart.component.d.ts +0 -56
  581. package/lib/basic-pie-chart/basic-pie-chart.module.d.ts +0 -4
  582. package/lib/basic-planimetric-map/basic-planimetric-map.component.d.ts +0 -18
  583. package/lib/basic-planimetric-map/basic-planimetric-map.module.d.ts +0 -4
  584. package/lib/breathing-bubble-layer/breathing-bubble-layer.component.d.ts +0 -210
  585. package/lib/breathing-bubble-layer/breathing-bubble-layer.module.d.ts +0 -4
  586. package/lib/bubble-chart/bubble-chart.component.d.ts +0 -75
  587. package/lib/bubble-chart/bubble-chart.module.d.ts +0 -4
  588. package/lib/bulletin-board/bulletin-board.component.d.ts +0 -25
  589. package/lib/bulletin-board/bulletin-board.module.d.ts +0 -4
  590. package/lib/button/button.component.d.ts +0 -25
  591. package/lib/button/button.module.d.ts +0 -4
  592. package/lib/calendar/calendar.component.d.ts +0 -14
  593. package/lib/calendar/calendar.module.d.ts +0 -4
  594. package/lib/checkbox/checkbox.component.d.ts +0 -45
  595. package/lib/checkbox/checkbox.module.d.ts +0 -4
  596. package/lib/cross-table/cross-table.component.d.ts +0 -30
  597. package/lib/cross-table/cross-table.module.d.ts +0 -4
  598. package/lib/custom-baidu-map/baidu-marker-layer/baidu-marker-layer.component.d.ts +0 -67
  599. package/lib/custom-baidu-map/baidu-polyline-layer/baidu-polyline-layer.component.d.ts +0 -23
  600. package/lib/custom-baidu-map/base-layer.d.ts +0 -16
  601. package/lib/custom-baidu-map/custom-baidu-map.component.d.ts +0 -92
  602. package/lib/custom-baidu-map/custom-baidu-map.module.d.ts +0 -4
  603. package/lib/custom-baidu-map/typhoon-area-layer/typhoon-area-layer.component.d.ts +0 -16
  604. package/lib/custom-baidu-map/wind-layer/wind-layer.component.d.ts +0 -28
  605. package/lib/date-picker/date-picker.component.d.ts +0 -63
  606. package/lib/date-picker/date-picker.module.d.ts +0 -4
  607. package/lib/funnel-chart/funnel-chart.component.d.ts +0 -24
  608. package/lib/funnel-chart/funnel-chart.module.d.ts +0 -4
  609. package/lib/gantt/gantt.component.d.ts +0 -25
  610. package/lib/gantt/gantt.module.d.ts +0 -4
  611. package/lib/gauge/gauge.component.d.ts +0 -37
  612. package/lib/gauge/gauge.module.d.ts +0 -4
  613. package/lib/gauge-progress/gauge-progress.component.d.ts +0 -46
  614. package/lib/gauge-progress/gauge.module.d.ts +0 -4
  615. package/lib/general-text/general-text.component.d.ts +0 -21
  616. package/lib/general-text/general-text.module.d.ts +0 -4
  617. package/lib/iconfont/icon.d.ts +0 -1
  618. package/lib/iconfont/iconfont.component.d.ts +0 -11
  619. package/lib/iconfont/iconfont.module.d.ts +0 -4
  620. package/lib/iframe/iframe.component.d.ts +0 -10
  621. package/lib/iframe/iframe.module.d.ts +0 -4
  622. package/lib/image/image.component.d.ts +0 -21
  623. package/lib/image/image.module.d.ts +0 -4
  624. package/lib/item-swiper/item-swiper.component.d.ts +0 -41
  625. package/lib/item-swiper/item-swiper.module.d.ts +0 -4
  626. package/lib/line-bar-chart/line-bar-chart.component.d.ts +0 -63
  627. package/lib/line-bar-chart/line-bar-chart.module.d.ts +0 -4
  628. package/lib/line-light-flow/line-light-flow.component.d.ts +0 -26
  629. package/lib/line-light-flow/line-light-flow.module.d.ts +0 -4
  630. package/lib/liquid-fill/liquid-fill.component.d.ts +0 -18
  631. package/lib/liquid-fill/liquid-fill.module.d.ts +0 -4
  632. package/lib/marquee/marquee.component.d.ts +0 -20
  633. package/lib/marquee/marquee.module.d.ts +0 -4
  634. package/lib/mip-anim/mip-anim.component.d.ts +0 -6
  635. package/lib/mip-anim/mip-anim.module.d.ts +0 -4
  636. package/lib/multi-title-gauge/multi-title-gauge.component.d.ts +0 -26
  637. package/lib/multi-title-gauge/multi-title-gauge.module.d.ts +0 -4
  638. package/lib/number-flop/number-flop.component.d.ts +0 -22
  639. package/lib/number-flop/number-flop.module.d.ts +0 -4
  640. package/lib/parent-container/parent-container.component.d.ts +0 -9
  641. package/lib/parent-container/parent-container.module.d.ts +0 -4
  642. package/lib/percent-pie-chart/percent-pie-chart.component.d.ts +0 -24
  643. package/lib/percent-pie-chart/percent-pie-chart.module.d.ts +0 -4
  644. package/lib/pie3d-chart/pie3d-chart.component.d.ts +0 -30
  645. package/lib/pie3d-chart/pie3d-chart.module.d.ts +0 -4
  646. package/lib/planimetric-map2d/fly-line-layer/fly-line-layer.component.d.ts +0 -206
  647. package/lib/planimetric-map2d/fly-line-layer/fly-line-layer.module.d.ts +0 -4
  648. package/lib/planimetric-map2d/map2d-mark-layer/map2d-mark-layer.component.d.ts +0 -15
  649. package/lib/planimetric-map2d/map2d-mark-layer/map2d-mark-layer.module.d.ts +0 -4
  650. package/lib/planimetric-map2d/map2d-polyline-layer/map2d-polyline-layer.component.d.ts +0 -15
  651. package/lib/planimetric-map2d/map2d-polyline-layer/map2d-polyline-layer.module.d.ts +0 -4
  652. package/lib/planimetric-map2d/map2d-visual-layer/map2d-visual-layer.component.d.ts +0 -49
  653. package/lib/planimetric-map2d/map2d-visual-layer/map2d-visual-layer.module.d.ts +0 -4
  654. package/lib/planimetric-map2d/planimetric-map2d.component.d.ts +0 -48
  655. package/lib/planimetric-map2d/planimetric-map2d.module.d.ts +0 -4
  656. package/lib/planimetric-map3d/map3d-line-layer/map3d-line-layer.component.d.ts +0 -14
  657. package/lib/planimetric-map3d/map3d-line-layer/map3d-line-layer.module.d.ts +0 -4
  658. package/lib/planimetric-map3d/map3d-mark-layer/map3d-mark-layer.component.d.ts +0 -41
  659. package/lib/planimetric-map3d/map3d-mark-layer/map3d-mark-layer.module.d.ts +0 -4
  660. package/lib/planimetric-map3d/planimetric-map3d.component.d.ts +0 -29
  661. package/lib/planimetric-map3d/planimetric-map3d.module.d.ts +0 -4
  662. package/lib/radar-chart/radar-chart.component.d.ts +0 -23
  663. package/lib/radar-chart/radar-chart.module.d.ts +0 -4
  664. package/lib/radio/radio.component.d.ts +0 -21
  665. package/lib/radio/radio.module.d.ts +0 -4
  666. package/lib/rate/rate.component.d.ts +0 -13
  667. package/lib/rate/rate.module.d.ts +0 -4
  668. package/lib/scatter3d/scatter3d.component.d.ts +0 -25
  669. package/lib/scatter3d/scatter3d.module.d.ts +0 -4
  670. package/lib/screen-widget.module.d.ts +0 -4
  671. package/lib/search/search.component.d.ts +0 -21
  672. package/lib/search/search.module.d.ts +0 -6
  673. package/lib/select/select.component.d.ts +0 -34
  674. package/lib/select/select.module.d.ts +0 -4
  675. package/lib/shape/shape.component.d.ts +0 -50
  676. package/lib/shape/shape.module.d.ts +0 -4
  677. package/lib/shared/component/video-player/video-player.component.d.ts +0 -28
  678. package/lib/shared/component/video-player/video-player.module.d.ts +0 -2
  679. package/lib/shared/service/common.service.d.ts +0 -21
  680. package/lib/shared/service/file-url.service.d.ts +0 -3
  681. package/lib/shared/service/gaode-map.service.d.ts +0 -10
  682. package/lib/shared/service/highcharts.service.d.ts +0 -9
  683. package/lib/shared/service/http.service.d.ts +0 -7
  684. package/lib/shared/util/base.util.d.ts +0 -1
  685. package/lib/shared/util/echarts.util.d.ts +0 -1
  686. package/lib/shared/util/style.util.d.ts +0 -1
  687. package/lib/shuffling-list/color.pipe.d.ts +0 -4
  688. package/lib/shuffling-list/shuffling-list.component.d.ts +0 -76
  689. package/lib/shuffling-list/shuffling-list.module.d.ts +0 -4
  690. package/lib/table/table.component.d.ts +0 -65
  691. package/lib/table/table.module.d.ts +0 -4
  692. package/lib/tabs/tab/tab.component.d.ts +0 -7
  693. package/lib/tabs/tabs.component.d.ts +0 -13
  694. package/lib/tabs/tabs.module.d.ts +0 -4
  695. package/lib/temporary-data/temporary-data.component.d.ts +0 -13
  696. package/lib/temporary-data/temporary-data.module.d.ts +0 -4
  697. package/lib/time-picker/time-picker.component.d.ts +0 -17
  698. package/lib/time-picker/time-picker.module.d.ts +0 -4
  699. package/lib/timer/timer.component.d.ts +0 -21
  700. package/lib/timer/timer.module.d.ts +0 -4
  701. package/lib/tree-control/tree-control.component.d.ts +0 -59
  702. package/lib/tree-control/tree-control.module.d.ts +0 -4
  703. package/lib/tree-ring-chart/tree-ring-chart.component.d.ts +0 -24
  704. package/lib/tree-ring-chart/tree-ring-chart.module.d.ts +0 -4
  705. package/lib/upload/upload.component.d.ts +0 -21
  706. package/lib/upload/upload.module.d.ts +0 -4
  707. package/lib/video-grid/video-grid.component.d.ts +0 -23
  708. package/lib/video-grid/video-grid.module.d.ts +0 -4
  709. package/lib/visual-map-chart/visual-map-chart.component.d.ts +0 -49
  710. package/lib/visual-map-chart/visual-map-chart.module.d.ts +0 -4
  711. package/lib/vote/vote.component.d.ts +0 -15
  712. package/lib/vote/vote.module.d.ts +0 -4
  713. package/lib/weather/weather.component.d.ts +0 -26
  714. package/lib/weather/weather.module.d.ts +0 -4
  715. package/lib/wordart/wordart.component.d.ts +0 -14
  716. package/lib/wordart/wordart.module.d.ts +0 -4
  717. package/lib/workbench-widget.module.d.ts +0 -4
  718. /package/core/{public_api.d.ts → src/public_api.ts} +0 -0
@@ -0,0 +1,636 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import {
3
+ ChangeDetectionStrategy,
4
+ ChangeDetectorRef,
5
+ Component,
6
+ ElementRef,
7
+ EventEmitter,
8
+ forwardRef,
9
+ HostBinding,
10
+ HostListener,
11
+ Inject,
12
+ NgZone,
13
+ OnChanges,
14
+ OnDestroy,
15
+ OnInit,
16
+ Optional,
17
+ SimpleChanges,
18
+ ViewChild,
19
+ } from '@angular/core';
20
+ import { Subject } from 'rxjs';
21
+ import { take, takeUntil } from 'rxjs/operators';
22
+ import { ScaleSubject, TemplateUtil, WidgetRef } from 'bbj-widget-base';
23
+ import { Data, DataOutput, Property, Widget, Event } from 'bbj-widget-base';
24
+ import { BaiduMapService } from 'bbj-screen-widget/core';
25
+
26
+ // declare const BMap;
27
+ declare const BMapGL: any;
28
+ // declare const BMapGLLib;
29
+ // declare const BMapLib;
30
+ // declare const BMAP_ANCHOR_BOTTOM_LEFT: number;
31
+ declare const BMAP_ANCHOR_TOP_LEFT: number;
32
+ declare const mapvgl: any;
33
+ declare const BMAP_SATELLITE_MAP: number;
34
+ declare const BMAP_NORMAL_MAP: number;
35
+ const MapTypeEnum = [
36
+ { label: '普通', value: 'normal' },
37
+ { label: '深色', value: 'dark' },
38
+ { label: '卫星', value: 'satellite' },
39
+ { label: '自定义', value: 'custom' },
40
+ ];
41
+ @Component({
42
+ selector: 'sc-custom-baidu-map',
43
+ templateUrl: './custom-baidu-map.component.html',
44
+ styleUrls: ['./custom-baidu-map.component.less'],
45
+ })
46
+ @Widget('百度地图', {
47
+ group: 'component',
48
+ image: 'assets/img/screen/my-baidu-map.png',
49
+ children: [
50
+ {
51
+ title: '标记层',
52
+ type: 'sc-baidu-marker-layer',
53
+ option: {},
54
+ hidden: true,
55
+ hideChild: true,
56
+ },
57
+ ],
58
+ childTypes: ['sc-baidu-marker-layer', 'sc-baidu-polyline-layer', 'sc-wind-layer', 'sc-typhoon-area-layer'],
59
+ description: 'hasChildItem',
60
+ } as any)
61
+ export class CustomBaiduMapComponent implements OnInit, OnDestroy, OnChanges {
62
+ // @Property('字体', { ui: { widget: 'myFont' } })
63
+ // font: any = {
64
+ // family: '',
65
+ // color: '#000000',
66
+ // weight: 'normal',
67
+ // size: 16,
68
+ // space: 0,
69
+ // lineHeight: 0,
70
+ // };
71
+ @Property('地图类型', {
72
+ enum: MapTypeEnum,
73
+ })
74
+ mapType = 'normal';
75
+ mapTypeValue: string;
76
+ @Property('上传样式', { type: 'string', ui: { widget: 'myUploadAudio', visibleIf: { mapType: ['custom'] } } })
77
+ uploadStyle: string;
78
+ @Property('切换按钮')
79
+ showMapTypeRadio: boolean;
80
+ @Property('全景地图', { type: 'boolean' })
81
+ minMapShow = false;
82
+ @Property('显示信息', {
83
+ ui: { widget: 'select' },
84
+ enum: [
85
+ { label: '点击', value: 'click' },
86
+ { label: '悬停', value: 'mouseover' },
87
+ ],
88
+ })
89
+ showType = 'click';
90
+ @Property('信息窗背景', { ui: { widget: 'myColor' } })
91
+ infoWindowBackground: string;
92
+ @Property('信息窗字体', { ui: { widget: 'myColor' } })
93
+ infoWindowColor: string;
94
+ @Property('信息窗宽度')
95
+ infoWindowWidth: number;
96
+ @Property('信息窗高度')
97
+ infoWindowHeight: number;
98
+ @Property('信息窗模板', { ui: { widget: 'textarea' } })
99
+ infoWindowTemplate: string;
100
+ @Property('隐藏尖角')
101
+ @HostBinding('class.hideInfoWindowTail')
102
+ hideInfoWindowTail: boolean;
103
+ @Property('隐藏关闭按钮')
104
+ @HostBinding('class.hideInfoWindowTop')
105
+ hideInfoWindowTop: boolean;
106
+ @Property('地图拖动', { type: 'boolean' })
107
+ dragging = true;
108
+
109
+ @Property('遮罩颜色', {
110
+ ui: { widget: 'myColor' },
111
+ example: ['#ffffff', '#F5A623', '#F8E71C', '#50E3C2', '#3285FF', '#B45FFF', '#9B9B9B', null],
112
+ })
113
+ shadeColor = '#004395';
114
+ @Property('背景颜色', {
115
+ ui: { widget: 'myColor' },
116
+ example: ['#ffffff', '#F5A623', '#F8E71C', '#50E3C2', '#3285FF', '#B45FFF', '#9B9B9B', null],
117
+ })
118
+ mapBackColor: string;
119
+
120
+ @Property('多边线色', {
121
+ ui: { widget: 'myColor' },
122
+ example: ['#ffffff', '#F5A623', '#F8E71C', '#50E3C2', '#3285FF', '#B45FFF', '#9B9B9B', null],
123
+ })
124
+ mapCityColor = '#41b7ff';
125
+ @Property('地图缩放', {
126
+ ui: { widget: 'myRange', min: 1, max: 40, step: 1 },
127
+ })
128
+ zoom = 12;
129
+ // @Property('放大比例', { type: 'number' })
130
+ // scale = 1;
131
+ @Property('遮罩透明', { type: 'number' })
132
+ fillOpacity = 0;
133
+ @Property('多边线粗', { type: 'number' })
134
+ strokesize = 2;
135
+ @Property('黑夜模式', { type: 'boolean', ui: { hidden: true } })
136
+ nightMode = false;
137
+ @Property('3D视角')
138
+ enable3D: boolean;
139
+ @Property('定位控件')
140
+ showLocationControl: boolean;
141
+ @Property('初始角度', { type: 'number', ui: { visibleIf: { enable3D: [true] } } })
142
+ tilt = 73;
143
+ // @Property('中心经度', {
144
+ // ui: {widget: 'myRange', min: -180, max: 180, step: 1},
145
+ // })
146
+ centerLng = 120.7;
147
+ // @Property('中心纬度', {
148
+ // ui: {widget: 'myRange', min: -90, max: 90, step: 1},
149
+ // })
150
+ centerLat = 28;
151
+ @Property('显示省市', {
152
+ ui: {
153
+ widget: 'myUrlSelect',
154
+ allowClear: true,
155
+ url: '/assets/mapListItem.json',
156
+ },
157
+ })
158
+ cityName = null;
159
+ point: any;
160
+
161
+ // _data = [
162
+ // {
163
+ // options: {
164
+ // icon: {
165
+ // imageUrl: 'assets/img/screen/number-flop.png',
166
+ // size: {
167
+ // height: 260,
168
+ // width: 250
169
+ // }
170
+ // }
171
+ // },
172
+ // point: {
173
+ // lng: 120.7, // 经度
174
+ // lat: 28, // 纬度
175
+ // }
176
+ // },
177
+ // ];
178
+ // 文字标注
179
+
180
+ public text: string;
181
+ // _children = [];
182
+ type: string;
183
+ map: any;
184
+ edit: boolean;
185
+ // markerTierClick: any;
186
+ // pingyang = '';
187
+ // ruian = '';
188
+ @Data({
189
+ properties: {
190
+ lng: { type: 'number', title: '经度' },
191
+ lat: { type: 'number', title: '纬度' },
192
+ },
193
+ })
194
+ _data: any[] = [{ lng: 120.7, lat: 28 }];
195
+ @DataOutput(['lng', 'lat'])
196
+ @Event('中心点改变', {
197
+ params: { properties: { lng: { title: '经度', type: 'number' }, lat: { title: '纬度', type: 'number' } } },
198
+ })
199
+ dataChange = new EventEmitter<any>();
200
+
201
+ @DataOutput('缩放等级')
202
+ @Event('缩放', {
203
+ params: '缩放等级',
204
+ })
205
+ zoomChange = new EventEmitter<any>();
206
+ @Event('地图点击', {
207
+ params: { properties: { lng: { title: '经度', type: 'number' }, lat: { title: '纬度', type: 'number' } } },
208
+ })
209
+ mapClick = new EventEmitter<any>();
210
+
211
+ @ViewChild('container', { static: true })
212
+ container: ElementRef;
213
+ children: any[];
214
+ destroy$ = new Subject();
215
+ destroyed: boolean;
216
+ // containerStyle: any = {};
217
+ // unloadedChildren = {};
218
+ overlaysMap = {};
219
+
220
+ // @HostBinding('class.hideInfoWindowTail')
221
+ // hideInfoWindowTail: boolean;
222
+
223
+ private inited: (map: any) => void;
224
+ init$ = new Promise((resolve) => {
225
+ this.inited = resolve;
226
+ });
227
+ view: any;
228
+ pickerEvent: any;
229
+ pickerItem: any;
230
+ pickerTimeout: any;
231
+ mapTypeEnum = MapTypeEnum.slice(0, 3);
232
+ darkStyle: any;
233
+ firstOpen: boolean;
234
+ firstOpenPromise: Promise<void>;
235
+ constructor(
236
+ private baiduMapService: BaiduMapService,
237
+ private http: HttpClient,
238
+ private elementRef: ElementRef,
239
+ private zone: NgZone,
240
+ @Optional() private scale$: ScaleSubject,
241
+ private cd: ChangeDetectorRef,
242
+ private widgetRef: WidgetRef,
243
+ ) {}
244
+
245
+ get element(): HTMLElement {
246
+ return this.elementRef.nativeElement;
247
+ }
248
+
249
+ addLayer(layer: any) {
250
+ if (this.view) {
251
+ this.view.addLayer(layer);
252
+ }
253
+ }
254
+
255
+ removeLayer(layer: any) {
256
+ if (this.view) {
257
+ this.view.removeLayer(layer);
258
+ }
259
+ }
260
+
261
+ ngOnChanges(changes: SimpleChanges): void {
262
+ if (changes._data && this._data[0]) {
263
+ this.centerLng = +this._data[0].lng;
264
+ this.centerLat = +this._data[0].lat;
265
+ this.setCenter(this.centerLng, this.centerLat);
266
+ }
267
+ }
268
+
269
+ async ngOnInit() {
270
+ if (this.scale$) {
271
+ // 这是为了解决地图缩放中心不在鼠标所在位置的问题
272
+ this.scale$.pipe(takeUntil(this.destroy$)).subscribe((scale) => {
273
+ const { x: sx, y: sy, scaleContent } = scale as any;
274
+ const style = this.element.style;
275
+ if (scaleContent === false) {
276
+ this.zone.onStable.pipe(take(1)).subscribe(() => {
277
+ const parent = this.element.parentNode as HTMLElement;
278
+ if (parent) {
279
+ const match = /translate\(([-\d.]+)px, ([-\d.]+)px\)/.exec(parent.style.transform);
280
+ if (match) {
281
+ const offsetX = parseFloat(match[1]);
282
+ const offsetY = parseFloat(match[2]);
283
+ style.transform = `translate(${-offsetX}px,${-offsetY}px)`;
284
+ style.height = parent.clientHeight + offsetY + 'px';
285
+ style.width = parent.clientWidth + offsetX + 'px';
286
+ style.padding = `${offsetY}px 0 0 ${offsetX}px`;
287
+ // this.containerStyle = {
288
+ // transformOrigin: `0 0`,
289
+ // transform: `translate(${-offsetX}px,${-offsetY}px)`,
290
+ // height: parent.clientHeight + offsetY + 'px',
291
+ // width: parent.clientWidth + offsetX + 'px',
292
+ // padding: `${offsetY}px 0 0 ${offsetX}px`,
293
+ // };
294
+ }
295
+ }
296
+
297
+ // this.cd.markForCheck();
298
+ });
299
+ } else {
300
+ const { position, size } = this.widgetRef.widget as any;
301
+ const { x, y } = position;
302
+ const { width, height } = size;
303
+ style.transform = `translate(${-x}px,${-y}px) scale(${1 / sx},${1 / sy})`;
304
+ style.height = (y + height) * sy + 'px';
305
+ style.width = (x + width) * sx + 'px';
306
+ style.padding = `${y * sy}px 0 0 ${x * sx}px`;
307
+ }
308
+
309
+ // this.cd.markForCheck();
310
+ });
311
+ }
312
+ await this.initMap();
313
+ }
314
+
315
+ async initMap() {
316
+ await this.baiduMapService.loadMapGL();
317
+ await this.baiduMapService.loadMapVGL();
318
+ this.mapTypeValue = this.mapType;
319
+ // 兼容老的配置
320
+ if (this.mapType == null) {
321
+ if (this.uploadStyle) {
322
+ this.mapTypeValue = 'custom';
323
+ } else if (this.nightMode) {
324
+ this.mapTypeValue = 'dark';
325
+ }
326
+ }
327
+ if (!this.destroyed) {
328
+ this.zone.runOutsideAngular(() => {
329
+ this.map = new BMapGL.Map(this.container.nativeElement, { restrictCenter: false });
330
+ this.map.centerAndZoom(new BMapGL.Point(this.centerLng, this.centerLat), this.zoom); // 设置中心点和缩放级别
331
+ this.map.enableScrollWheelZoom(); // 启用滚轮进行缩放功能
332
+ // var dist = new BMapGL.DistrictLayer({
333
+ // name: '(温州市)',
334
+ // kind: 1,
335
+ // fillColor: '#fff',
336
+ // fillOpacity: 0.1,
337
+ // strokeColor: '#daeafa',
338
+ // viewport: true,
339
+ // });
340
+ // this.map.addDistrictLayer(dist);
341
+ this.mapTypeChange(this.mapTypeValue);
342
+ if (this.edit || this.dragging === false) {
343
+ this.map.disableDragging();
344
+ }
345
+ if (this.enable3D) {
346
+ this.map.setTilt(this.tilt == null ? 73 : this.tilt, { noAnimation: true });
347
+ this.map.setDisplayOptions({ skyColors: ['rgba(0, 0, 0, 0)'] }); // 隐藏天空
348
+ // const navi3DCtrl = new BMapGL.NavigationControl3D(); // 添加3D控件
349
+ // this.map.addControl(navi3DCtrl);
350
+ } else {
351
+ this.map.disableTilt();
352
+ this.map.disableRotate();
353
+ }
354
+ if (this.showLocationControl) {
355
+ const options = {
356
+ // 控件的停靠位置(可选,默认左上角)
357
+ anchor: BMAP_ANCHOR_TOP_LEFT,
358
+ // 控件基于停靠位置的偏移量(可选)
359
+ offset: new BMapGL.Size(20, 20),
360
+ };
361
+ let locationControl = new BMapGL.LocationControl(options);
362
+ // 将控件添加到地图上
363
+ this.map.addControl(locationControl);
364
+ }
365
+ if (this.minMapShow) {
366
+ const stCtrl = new BMapGL.PanoramaControl();
367
+ stCtrl.setOffset(new BMapGL.Size(20, 20));
368
+ this.map.addControl(stCtrl);
369
+ }
370
+ if (this.infoWindowBackground) {
371
+ this.element.style.setProperty('--info-window-background', this.infoWindowBackground);
372
+ }
373
+ if (this.infoWindowColor) {
374
+ this.element.style.setProperty('--info-window-color', this.infoWindowColor);
375
+ }
376
+ this.map.addEventListener('moveend', (event) => {
377
+ const center = this.map.getCenter();
378
+ this.dataChange.emit(center);
379
+ });
380
+ this.map.addEventListener('click', (event) => {
381
+ this.mapClick.emit(event.pointer);
382
+ });
383
+ this.map.addEventListener('zoomend', (event) => {
384
+ this.zoomChange.emit(this.map.getZoom());
385
+ this.dataChange.emit(this.map.getCenter());
386
+ });
387
+ this.view = new mapvgl.View({
388
+ map: this.map,
389
+ });
390
+ this.mapLoaded(this.map);
391
+ });
392
+ this.inited(this.map);
393
+ }
394
+ }
395
+
396
+ setCenter(lng: number, lat: number) {
397
+ if (this.map && lng && lat) {
398
+ const center = this.map.getCenter();
399
+ if (center.lng != lng || center.lat != lat) {
400
+ this.setCenterAndZoom(lng, lat, this.map.getZoom());
401
+ }
402
+ }
403
+ }
404
+
405
+ setCenterAndZoom(lng: number, lat: number, zoom: number) {
406
+ const center = this.map.getCenter();
407
+ const currentZoom = this.map.getZoom();
408
+ // 误差范围内不移动,防止背景抖动
409
+ if (zoom != currentZoom || Math.abs(lng - center.lng) > 1e-13 || Math.abs(lat - center.lat) > 1e-7) {
410
+ const point = new BMapGL.Point(lng, lat);
411
+ this.map.centerAndZoom(point, zoom, { tilt: this.map.getTilt() });
412
+ }
413
+ }
414
+
415
+ /**
416
+ * 根据经纬度范围设置中心和缩放等级
417
+ * @param minLng
418
+ * @param maxLng
419
+ * @param minLat
420
+ * @param maxLat
421
+ */
422
+ setRectCenterAndZoom(minLng: number, maxLng: number, minLat: number, maxLat: number) {
423
+ this.setCenterAndZoom((maxLng + minLng) / 2, (maxLat + minLat) / 2, this.getZoom(maxLng, minLng, maxLat, minLat));
424
+ }
425
+
426
+ getZoom(maxLng: number, minLng: number, maxLat: number, minLat: number) {
427
+ const zooms = [
428
+ 50, 100, 200, 500, 1000, 2000, 5000, 10000, 20000, 25000, 50000, 100000, 200000, 500000, 1000000, 2000000,
429
+ ]; //级别18到3。
430
+ const pointA = new BMapGL.Point(maxLng, maxLat); // 创建点坐标A
431
+ const pointB = new BMapGL.Point(minLng, minLat); // 创建点坐标B
432
+ const distance = +this.map.getDistance(pointA, pointB).toFixed(1); //获取两点距离,保留小数点后两位
433
+ const i = zooms.findIndex((zoom) => zoom - distance > 0);
434
+ if (i === -1) {
435
+ return 5;
436
+ }
437
+ //之所以会多3,是因为地图范围常常是比例尺距离的10倍以上。所以级别会增加3。
438
+ return 18 - i + 3;
439
+ }
440
+
441
+ openInfoWindow(data: any, lng: number, lat: number) {
442
+ if (data.information || this.infoWindowTemplate) {
443
+ const point = new BMapGL.Point(+lng, +lat);
444
+ // let offsetY = -25;
445
+ // if (this.hideInfoWindowTail) {
446
+ // offsetY = 0;
447
+ // }
448
+ let information = data.information;
449
+ if (this.infoWindowTemplate) {
450
+ information = TemplateUtil.parse(this.infoWindowTemplate, data);
451
+ }
452
+ const options = {
453
+ offset: new BMapGL.Size(0, 0),
454
+ width: this.infoWindowWidth || 0,
455
+ height: this.infoWindowHeight || 0,
456
+ };
457
+ const infoWindow = new BMapGL.InfoWindow(information, options);
458
+ // 第一次打开信息窗口后在短时间关闭或重新打开会导致click事件失效,临时解决方案是第一次打开后0.5秒内不关闭
459
+ if (!this.firstOpen) {
460
+ if (this.firstOpenPromise) {
461
+ this.firstOpenPromise.then(() => {
462
+ this.map.openInfoWindow(infoWindow, point);
463
+ });
464
+ } else {
465
+ this.firstOpenPromise = new Promise<void>((resolve) => {
466
+ setTimeout(() => {
467
+ this.firstOpen = true;
468
+ this.firstOpenPromise = null;
469
+ resolve();
470
+ }, 500);
471
+ });
472
+ this.map.openInfoWindow(infoWindow, point);
473
+ }
474
+ const rawClose = infoWindow.close;
475
+ infoWindow.close = () => {
476
+ if (this.firstOpenPromise) {
477
+ this.firstOpenPromise.then(() => rawClose.call(infoWindow));
478
+ } else {
479
+ rawClose.call(infoWindow);
480
+ }
481
+ };
482
+ } else {
483
+ this.map.openInfoWindow(infoWindow, point);
484
+ }
485
+ return infoWindow;
486
+ }
487
+ }
488
+
489
+ getCanvasOverlay(child: any) {
490
+ let canvasOverlay;
491
+ if (this.enable3D) {
492
+ const item = child.item;
493
+ if (item) {
494
+ var pStart = new BMapGL.Point(item.start.lng, item.start.lat);
495
+ var pEnd = new BMapGL.Point(item.end.lng, item.end.lat);
496
+ var bounds = new BMapGL.Bounds(new BMapGL.Point(pStart.lng, pEnd.lat), new BMapGL.Point(pEnd.lng, pStart.lat));
497
+ canvasOverlay = new BMapGL.GroundOverlay(bounds, {
498
+ type: 'canvas',
499
+ url: item.canvas,
500
+ opacity: 1,
501
+ });
502
+ }
503
+ } else {
504
+ const pointToPixel = (data) => {
505
+ const point = new BMapGL.Point(data.lng, data.lat);
506
+ return this.map.pointToPixel(point);
507
+ };
508
+ canvasOverlay = new BMapGL.CanvasLayer({
509
+ paneName: 'markerShadow',
510
+ update: function () {
511
+ var ctx = this.canvas.getContext('2d');
512
+ if (!ctx) {
513
+ return;
514
+ }
515
+ ctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height);
516
+ child.update(ctx, pointToPixel);
517
+ },
518
+ });
519
+ }
520
+ return canvasOverlay;
521
+ }
522
+
523
+ ngOnDestroy(): void {
524
+ this.destroy$.next();
525
+ this.destroy$.complete();
526
+ this.destroyed = true;
527
+ if (this.view) {
528
+ this.view.destroy();
529
+ }
530
+ if (this.map) {
531
+ this.map.destroy();
532
+ }
533
+ }
534
+
535
+ async mapLoaded(map: any) {
536
+ if (this.cityName) {
537
+ if (this.cityName === '温州') {
538
+ this.cityName = 'wenzhou';
539
+ }
540
+ const json: any = await this.http.get('assets/echarts/map/json/' + this.cityName + '.json').toPromise();
541
+ const polygonData = [];
542
+ let encodeScale = json.UTF8Scale || 1024;
543
+ json.features.forEach(({ geometry }) => {
544
+ geometry.coordinates = (geometry.coordinates as any[]).forEach((coordinate, i) => {
545
+ if (geometry.type === 'MultiPolygon') {
546
+ const coordinates = (coordinate as any[]).map((points, j) => {
547
+ if (json.UTF8Encoding) {
548
+ points = this.decodePolygon(points, geometry.encodeOffsets[i][j], encodeScale);
549
+ }
550
+ return points;
551
+ });
552
+ polygonData.push(coordinates);
553
+ } else {
554
+ if (json.UTF8Encoding) {
555
+ coordinate = this.decodePolygon(coordinate, geometry.encodeOffsets[i], encodeScale);
556
+ }
557
+ polygonData.push([coordinate]);
558
+ }
559
+ });
560
+ });
561
+ const data = [
562
+ {
563
+ geometry: {
564
+ type: 'MultiPolygon',
565
+ coordinates: polygonData,
566
+ },
567
+ },
568
+ ];
569
+ var layer = new mapvgl.PolygonLayer({
570
+ lineColor: this.mapCityColor,
571
+ lineWidth: this.strokesize || 2,
572
+ fillColor: this.shadeColor,
573
+ data,
574
+ renderOrder: -2,
575
+ });
576
+ this.view.addLayer(layer);
577
+ if (this.mapBackColor && !this.mapBackColor.match(/rgba\(\d+,\d+,\d+,0\)/)) {
578
+ var maskLayer = new mapvgl.MaskLayer({
579
+ color: this.mapBackColor,
580
+ data,
581
+ renderOrder: -3,
582
+ });
583
+ this.view.addLayer(maskLayer);
584
+ }
585
+ }
586
+ }
587
+
588
+ decodePolygon(coordinate: string, encodeOffsets: number[], encodeScale: number) {
589
+ const result = [];
590
+ let prevX = encodeOffsets[0];
591
+ let prevY = encodeOffsets[1];
592
+
593
+ for (let i = 0; i < coordinate.length; i += 2) {
594
+ var x = coordinate.charCodeAt(i) - 64;
595
+ var y = coordinate.charCodeAt(i + 1) - 64;
596
+ // ZigZag decoding
597
+ x = (x >> 1) ^ -(x & 1);
598
+ y = (y >> 1) ^ -(y & 1);
599
+ // Delta deocding
600
+ x += prevX;
601
+ y += prevY;
602
+
603
+ prevX = x;
604
+ prevY = y;
605
+ // Dequantize
606
+ result.push([x / encodeScale, y / encodeScale]);
607
+ }
608
+
609
+ return result;
610
+ }
611
+
612
+ async mapTypeChange(mapType: string) {
613
+ switch (mapType) {
614
+ case 'dark':
615
+ if (!this.darkStyle) {
616
+ this.darkStyle = await this.http.get('assets/echarts/map/json/custom_map.json').toPromise();
617
+ }
618
+ this.map.setMapType(BMAP_NORMAL_MAP);
619
+ this.map.setMapStyleV2({ styleJson: this.darkStyle });
620
+ break;
621
+ case 'satellite':
622
+ this.map.setMapType(BMAP_SATELLITE_MAP);
623
+ break;
624
+ case 'custom':
625
+ if (this.uploadStyle) {
626
+ const styleJson = await this.http.get(this.uploadStyle).toPromise();
627
+ this.map.setMapType(BMAP_NORMAL_MAP);
628
+ this.map.setMapStyleV2({ styleJson });
629
+ }
630
+ break;
631
+ default:
632
+ this.map.setMapType(BMAP_NORMAL_MAP);
633
+ this.map.setMapStyleV2({ styleJson: null });
634
+ }
635
+ }
636
+ }
@@ -0,0 +1,41 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { CustomBaiduMapComponent } from './custom-baidu-map.component';
4
+ import { WidgetBaseModule, WidgetService } from 'bbj-widget-base';
5
+ import { WindLayerComponent } from './wind-layer/wind-layer.component';
6
+ import { BaiduMarkerLayerComponent } from './baidu-marker-layer/baidu-marker-layer.component';
7
+ import { BaiduPolylineLayerComponent } from './baidu-polyline-layer/baidu-polyline-layer.component';
8
+ import { NzDropDownModule } from 'ng-zorro-antd/dropdown';
9
+ import { NzNoAnimationModule } from 'ng-zorro-antd/core/no-animation';
10
+ import { ScrollingModule } from '@angular/cdk/scrolling';
11
+ import { NzRadioModule } from 'ng-zorro-antd/radio';
12
+ import { FormsModule } from '@angular/forms';
13
+ import { TyphoonAreaLayerComponent } from './typhoon-area-layer/typhoon-area-layer.component';
14
+
15
+ @NgModule({
16
+ declarations: [
17
+ CustomBaiduMapComponent,
18
+ BaiduMarkerLayerComponent,
19
+ BaiduPolylineLayerComponent,
20
+ WindLayerComponent,
21
+ TyphoonAreaLayerComponent,
22
+ ],
23
+ imports: [
24
+ CommonModule,
25
+ WidgetBaseModule,
26
+ NzDropDownModule,
27
+ NzNoAnimationModule,
28
+ ScrollingModule,
29
+ NzRadioModule,
30
+ FormsModule,
31
+ ],
32
+ })
33
+ export class CustomBaiduMapModule {
34
+ constructor(widgetService: WidgetService) {
35
+ widgetService.register(CustomBaiduMapComponent, { scaleContent: false });
36
+ widgetService.register(BaiduMarkerLayerComponent);
37
+ widgetService.register(BaiduPolylineLayerComponent);
38
+ widgetService.register(WindLayerComponent);
39
+ widgetService.register(TyphoonAreaLayerComponent);
40
+ }
41
+ }
@@ -0,0 +1,25 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+
3
+ import { TyphoonAreaLayerComponent } from './typhoon-area-layer.component';
4
+
5
+ describe('TyphoonAreaLayerComponent', () => {
6
+ let component: TyphoonAreaLayerComponent;
7
+ let fixture: ComponentFixture<TyphoonAreaLayerComponent>;
8
+
9
+ beforeEach(async () => {
10
+ await TestBed.configureTestingModule({
11
+ declarations: [ TyphoonAreaLayerComponent ]
12
+ })
13
+ .compileComponents();
14
+ });
15
+
16
+ beforeEach(() => {
17
+ fixture = TestBed.createComponent(TyphoonAreaLayerComponent);
18
+ component = fixture.componentInstance;
19
+ fixture.detectChanges();
20
+ });
21
+
22
+ it('should create', () => {
23
+ expect(component).toBeTruthy();
24
+ });
25
+ });