@ecan-bi/datav 1.0.62 → 1.0.65

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 (2062) hide show
  1. package/dist/index.es.js +569 -469
  2. package/dist/index.es.js.map +1 -1
  3. package/dist/index.umd.js +500 -495
  4. package/dist/index.umd.js.map +1 -1
  5. package/dist/style.css +68 -69
  6. package/es/_utils/constant.js +16 -4
  7. package/es/_utils/constant.js.map +1 -1
  8. package/es/_utils/hooks/useDownloadFile.js +4 -1
  9. package/es/_utils/hooks/useDownloadFile.js.map +1 -1
  10. package/es/_utils/hooks/useEmitEvent.js +4 -1
  11. package/es/_utils/hooks/useEmitEvent.js.map +1 -1
  12. package/es/_utils/hooks/useHrefParamsToGlobalVariables.js +17 -0
  13. package/es/_utils/hooks/useHrefParamsToGlobalVariables.js.map +1 -0
  14. package/es/_utils/hooks/useImagePath.js +4 -1
  15. package/es/_utils/hooks/useImagePath.js.map +1 -1
  16. package/es/_utils/hooks/useIndicatorData.js +206 -0
  17. package/es/_utils/hooks/useIndicatorData.js.map +1 -0
  18. package/es/_utils/hooks/useOnEvent.js +4 -1
  19. package/es/_utils/hooks/useOnEvent.js.map +1 -1
  20. package/es/_utils/hooks/usePageUrl.js +4 -1
  21. package/es/_utils/hooks/usePageUrl.js.map +1 -1
  22. package/es/_utils/hooks/usePickComponentStyle.js +11 -3
  23. package/es/_utils/hooks/usePickComponentStyle.js.map +1 -1
  24. package/es/_utils/hooks/useRequestData.js +19 -29
  25. package/es/_utils/hooks/useRequestData.js.map +1 -1
  26. package/es/_utils/hooks/useRequestDiagramData.js +6 -19
  27. package/es/_utils/hooks/useRequestDiagramData.js.map +1 -1
  28. package/es/_utils/hooks/useTransformChartDataByAttrKey.js +4 -1
  29. package/es/_utils/hooks/useTransformChartDataByAttrKey.js.map +1 -1
  30. package/es/_utils/hooks/useTransformChartDataByAttrValue.js +6 -19
  31. package/es/_utils/hooks/useTransformChartDataByAttrValue.js.map +1 -1
  32. package/es/_utils/hooks/useValueFormatter.js +16 -6
  33. package/es/_utils/hooks/useValueFormatter.js.map +1 -1
  34. package/es/_utils/hooks/useVariablesInText.js +11 -25
  35. package/es/_utils/hooks/useVariablesInText.js.map +1 -1
  36. package/es/_utils/props.js +4 -1
  37. package/es/_utils/props.js.map +1 -1
  38. package/es/_utils/request.js +4 -1
  39. package/es/_utils/request.js.map +1 -1
  40. package/es/_utils/util.js +6 -1
  41. package/es/_utils/util.js.map +1 -1
  42. package/es/_utils/withInstall.js +4 -1
  43. package/es/_utils/withInstall.js.map +1 -1
  44. package/es/_virtual/_commonjsHelpers.js +7 -0
  45. package/es/_virtual/_commonjsHelpers.js.map +1 -0
  46. package/es/_virtual/axios.js +3 -1
  47. package/es/_virtual/axios.js.map +1 -1
  48. package/es/_virtual/index.js +5 -0
  49. package/es/_virtual/index.js.map +1 -0
  50. package/es/_virtual/plugin-vue_export-helper.js +4 -2
  51. package/es/_virtual/plugin-vue_export-helper.js.map +1 -1
  52. package/es/assets/border-title-decoration-left.js +4 -2
  53. package/es/assets/border-title-decoration-left.js.map +1 -1
  54. package/es/assets/border-title-decoration-right.js +4 -2
  55. package/es/assets/border-title-decoration-right.js.map +1 -1
  56. package/es/assets/go-down.js +5 -0
  57. package/es/assets/go-down.js.map +1 -0
  58. package/es/assets/go-up.js +5 -0
  59. package/es/assets/go-up.js.map +1 -0
  60. package/es/common/Skeleton/Skeleton.js +21 -4
  61. package/es/common/Skeleton/Skeleton.js.map +1 -1
  62. package/es/common/Skeleton/index.js +5 -2
  63. package/es/common/echarts/ECharts.js +78 -57
  64. package/es/common/echarts/ECharts.js.map +1 -1
  65. package/es/common/echarts/composables/api.js +3 -1
  66. package/es/common/echarts/composables/api.js.map +1 -1
  67. package/es/common/echarts/composables/autoresize.js +4 -1
  68. package/es/common/echarts/composables/autoresize.js.map +1 -1
  69. package/es/common/echarts/composables/loading.js +9 -18
  70. package/es/common/echarts/composables/loading.js.map +1 -1
  71. package/es/common/echarts/index.js +5 -2
  72. package/es/common/echarts/style.js +4 -2
  73. package/es/common/echarts/style.js.map +1 -1
  74. package/es/common/echarts/utils.js +4 -1
  75. package/es/common/echarts/utils.js.map +1 -1
  76. package/es/common/spin/Spin.js +4 -2
  77. package/es/common/spin/Spin.js.map +1 -1
  78. package/es/common/spin/Spin.vue_vue_type_style_index_0_lang.js +4 -2
  79. package/es/common/spin/Spin.vue_vue_type_style_index_0_lang.js.map +1 -1
  80. package/es/common/spin/index.js +4 -1
  81. package/es/components.js +142 -49
  82. package/es/components.js.map +1 -1
  83. package/es/container/border/Border.js +68 -73
  84. package/es/container/border/Border.js.map +1 -1
  85. package/es/container/border/Border.vue_vue_type_style_index_0_scoped_true_lang.js +4 -2
  86. package/es/container/border/Border.vue_vue_type_style_index_0_scoped_true_lang.js.map +1 -1
  87. package/es/container/border/index.js +8 -2
  88. package/es/container/border/index.js.map +1 -1
  89. package/es/container/border/props.js +16 -23
  90. package/es/container/border/props.js.map +1 -1
  91. package/es/container/modal/Modal.js +10 -24
  92. package/es/container/modal/Modal.js.map +1 -1
  93. package/es/container/modal/Modal.vue_vue_type_style_index_0_scoped_true_lang.js +4 -2
  94. package/es/container/modal/Modal.vue_vue_type_style_index_0_scoped_true_lang.js.map +1 -1
  95. package/es/container/modal/Modal.vue_vue_type_style_index_1_lang.js +4 -2
  96. package/es/container/modal/Modal.vue_vue_type_style_index_1_lang.js.map +1 -1
  97. package/es/container/modal/index.js +8 -2
  98. package/es/container/modal/index.js.map +1 -1
  99. package/es/container/modal/props.js +5 -1
  100. package/es/container/modal/props.js.map +1 -1
  101. package/es/container/tabs/Tabs.js +110 -0
  102. package/es/container/tabs/Tabs.js.map +1 -0
  103. package/es/container/tabs/Tabs.vue_vue_type_style_index_0_scoped_true_lang.js +5 -0
  104. package/es/container/tabs/Tabs.vue_vue_type_style_index_0_scoped_true_lang.js.map +1 -0
  105. package/es/container/tabs/index.js +12 -0
  106. package/es/container/tabs/index.js.map +1 -0
  107. package/es/container/tabs/props.js +38 -0
  108. package/es/container/tabs/props.js.map +1 -0
  109. package/es/control/button/Button.js +51 -30
  110. package/es/control/button/Button.js.map +1 -1
  111. package/es/control/button/Button.vue_vue_type_style_index_0_lang.js +5 -0
  112. package/es/control/button/Button.vue_vue_type_style_index_0_lang.js.map +1 -0
  113. package/es/control/button/index.js +8 -2
  114. package/es/control/button/index.js.map +1 -1
  115. package/es/control/button/props.js +17 -23
  116. package/es/control/button/props.js.map +1 -1
  117. package/es/control/date-picker/DatePicker.js +8 -20
  118. package/es/control/date-picker/DatePicker.js.map +1 -1
  119. package/es/control/date-picker/DatePicker.vue_vue_type_style_index_0_scoped_true_lang.js +4 -2
  120. package/es/control/date-picker/DatePicker.vue_vue_type_style_index_0_scoped_true_lang.js.map +1 -1
  121. package/es/control/date-picker/DatePicker.vue_vue_type_style_index_1_lang.js +4 -2
  122. package/es/control/date-picker/DatePicker.vue_vue_type_style_index_1_lang.js.map +1 -1
  123. package/es/control/date-picker/index.js +8 -2
  124. package/es/control/date-picker/index.js.map +1 -1
  125. package/es/control/date-picker/props.js +8 -22
  126. package/es/control/date-picker/props.js.map +1 -1
  127. package/es/control/input/Input.js +8 -20
  128. package/es/control/input/Input.js.map +1 -1
  129. package/es/control/input/Input.vue_vue_type_style_index_0_scoped_true_lang.js +4 -2
  130. package/es/control/input/Input.vue_vue_type_style_index_0_scoped_true_lang.js.map +1 -1
  131. package/es/control/input/index.js +7 -2
  132. package/es/control/input/index.js.map +1 -1
  133. package/es/control/input/props.js +7 -22
  134. package/es/control/input/props.js.map +1 -1
  135. package/es/control/range-picker/RangePicker.js +8 -20
  136. package/es/control/range-picker/RangePicker.js.map +1 -1
  137. package/es/control/range-picker/RangePicker.vue_vue_type_style_index_0_scoped_true_lang.js +4 -2
  138. package/es/control/range-picker/RangePicker.vue_vue_type_style_index_0_scoped_true_lang.js.map +1 -1
  139. package/es/control/range-picker/RangePicker.vue_vue_type_style_index_1_lang.js +4 -2
  140. package/es/control/range-picker/RangePicker.vue_vue_type_style_index_1_lang.js.map +1 -1
  141. package/es/control/range-picker/index.js +8 -2
  142. package/es/control/range-picker/index.js.map +1 -1
  143. package/es/control/range-picker/props.js +8 -22
  144. package/es/control/range-picker/props.js.map +1 -1
  145. package/es/control/select/Select.js +7 -19
  146. package/es/control/select/Select.js.map +1 -1
  147. package/es/control/select/Select.vue_vue_type_style_index_0_scoped_true_lang.js +4 -2
  148. package/es/control/select/Select.vue_vue_type_style_index_0_scoped_true_lang.js.map +1 -1
  149. package/es/control/select/Select.vue_vue_type_style_index_1_lang.js +4 -2
  150. package/es/control/select/Select.vue_vue_type_style_index_1_lang.js.map +1 -1
  151. package/es/control/select/index.js +8 -2
  152. package/es/control/select/index.js.map +1 -1
  153. package/es/control/select/props.js +8 -22
  154. package/es/control/select/props.js.map +1 -1
  155. package/es/graph/bar/Bar.js +40 -50
  156. package/es/graph/bar/Bar.js.map +1 -1
  157. package/es/graph/bar/Bar.vue_vue_type_style_index_0_lang.js +4 -2
  158. package/es/graph/bar/Bar.vue_vue_type_style_index_0_lang.js.map +1 -1
  159. package/es/graph/bar/index.js +8 -2
  160. package/es/graph/bar/index.js.map +1 -1
  161. package/es/graph/bar/props.js +16 -28
  162. package/es/graph/bar/props.js.map +1 -1
  163. package/es/graph/combo-graph/ComboGraph.js +93 -34
  164. package/es/graph/combo-graph/ComboGraph.js.map +1 -1
  165. package/es/graph/combo-graph/ComboGraph.vue_vue_type_style_index_0_lang.js +5 -0
  166. package/es/graph/combo-graph/ComboGraph.vue_vue_type_style_index_0_lang.js.map +1 -0
  167. package/es/graph/combo-graph/index.js +8 -2
  168. package/es/graph/combo-graph/index.js.map +1 -1
  169. package/es/graph/combo-graph/props.js +20 -25
  170. package/es/graph/combo-graph/props.js.map +1 -1
  171. package/es/graph/custom-graph/CustomGraph.js +10 -22
  172. package/es/graph/custom-graph/CustomGraph.js.map +1 -1
  173. package/es/graph/custom-graph/index.js +7 -2
  174. package/es/graph/custom-graph/index.js.map +1 -1
  175. package/es/graph/custom-graph/props.js +7 -22
  176. package/es/graph/custom-graph/props.js.map +1 -1
  177. package/es/graph/line/Line.js +98 -39
  178. package/es/graph/line/Line.js.map +1 -1
  179. package/es/graph/line/Line.vue_vue_type_style_index_0_lang.js +5 -0
  180. package/es/graph/line/Line.vue_vue_type_style_index_0_lang.js.map +1 -0
  181. package/es/graph/line/index.js +8 -2
  182. package/es/graph/line/index.js.map +1 -1
  183. package/es/graph/line/props.js +21 -25
  184. package/es/graph/line/props.js.map +1 -1
  185. package/es/graph/pie/Pie.js +91 -34
  186. package/es/graph/pie/Pie.js.map +1 -1
  187. package/es/graph/pie/Pie.vue_vue_type_style_index_0_lang.js +5 -0
  188. package/es/graph/pie/Pie.vue_vue_type_style_index_0_lang.js.map +1 -0
  189. package/es/graph/pie/index.js +8 -2
  190. package/es/graph/pie/index.js.map +1 -1
  191. package/es/graph/pie/props.js +20 -25
  192. package/es/graph/pie/props.js.map +1 -1
  193. package/es/graph/scatter/Scatter.js +85 -32
  194. package/es/graph/scatter/Scatter.js.map +1 -1
  195. package/es/graph/scatter/Scatter.vue_vue_type_style_index_0_lang.js +5 -0
  196. package/es/graph/scatter/Scatter.vue_vue_type_style_index_0_lang.js.map +1 -0
  197. package/es/graph/scatter/index.js +8 -2
  198. package/es/graph/scatter/index.js.map +1 -1
  199. package/es/graph/scatter/props.js +20 -25
  200. package/es/graph/scatter/props.js.map +1 -1
  201. package/es/index.js +142 -49
  202. package/es/index.js.map +1 -1
  203. package/es/map/map/Map.js +10 -22
  204. package/es/map/map/Map.js.map +1 -1
  205. package/es/map/map/Map.vue_vue_type_style_index_0_scoped_true_lang.js +4 -2
  206. package/es/map/map/Map.vue_vue_type_style_index_0_scoped_true_lang.js.map +1 -1
  207. package/es/map/map/index.js +7 -2
  208. package/es/map/map/index.js.map +1 -1
  209. package/es/map/map/props.js +7 -22
  210. package/es/map/map/props.js.map +1 -1
  211. package/es/media/image/Image.js +23 -24
  212. package/es/media/image/Image.js.map +1 -1
  213. package/es/media/image/Image.vue_vue_type_style_index_0_scoped_true_lang.js +4 -2
  214. package/es/media/image/Image.vue_vue_type_style_index_0_scoped_true_lang.js.map +1 -1
  215. package/es/media/image/index.js +7 -2
  216. package/es/media/image/index.js.map +1 -1
  217. package/es/media/image/props.js +9 -24
  218. package/es/media/image/props.js.map +1 -1
  219. package/es/node_modules/@ant-design/colors/dist/index.esm.js +7 -2
  220. package/es/node_modules/@ant-design/colors/dist/index.esm.js.map +1 -1
  221. package/es/node_modules/@ant-design/icons-svg/es/asn/LoadingOutlined.js +4 -2
  222. package/es/node_modules/@ant-design/icons-svg/es/asn/LoadingOutlined.js.map +1 -1
  223. package/es/node_modules/@ant-design/icons-vue/es/components/AntdIcon.js +4 -2
  224. package/es/node_modules/@ant-design/icons-vue/es/components/AntdIcon.js.map +1 -1
  225. package/es/node_modules/@ant-design/icons-vue/es/components/IconBase.js +5 -3
  226. package/es/node_modules/@ant-design/icons-vue/es/components/IconBase.js.map +1 -1
  227. package/es/node_modules/@ant-design/icons-vue/es/components/twoTonePrimaryColor.js +4 -1
  228. package/es/node_modules/@ant-design/icons-vue/es/components/twoTonePrimaryColor.js.map +1 -1
  229. package/es/node_modules/@ant-design/icons-vue/es/icons/LoadingOutlined.js +4 -2
  230. package/es/node_modules/@ant-design/icons-vue/es/icons/LoadingOutlined.js.map +1 -1
  231. package/es/node_modules/@ant-design/icons-vue/es/insert-css.js +3 -1
  232. package/es/node_modules/@ant-design/icons-vue/es/insert-css.js.map +1 -1
  233. package/es/node_modules/@ant-design/icons-vue/es/utils.js +16 -1
  234. package/es/node_modules/@ant-design/icons-vue/es/utils.js.map +1 -1
  235. package/es/node_modules/@babel/runtime/helpers/esm/extends.js +3 -1
  236. package/es/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -1
  237. package/es/node_modules/@ctrl/tinycolor/dist/module/conversion.js +10 -2
  238. package/es/node_modules/@ctrl/tinycolor/dist/module/conversion.js.map +1 -1
  239. package/es/node_modules/@ctrl/tinycolor/dist/module/css-color-names.js +3 -1
  240. package/es/node_modules/@ctrl/tinycolor/dist/module/css-color-names.js.map +1 -1
  241. package/es/node_modules/@ctrl/tinycolor/dist/module/format-input.js +5 -1
  242. package/es/node_modules/@ctrl/tinycolor/dist/module/format-input.js.map +1 -1
  243. package/es/node_modules/@ctrl/tinycolor/dist/module/util.js +8 -1
  244. package/es/node_modules/@ctrl/tinycolor/dist/module/util.js.map +1 -1
  245. package/es/node_modules/@vue/shared/dist/shared.esm-bundler.js +3 -0
  246. package/es/node_modules/@vue/shared/dist/shared.esm-bundler.js.map +1 -0
  247. package/es/node_modules/ant-design-vue/es/button/style/index.js +4 -2
  248. package/es/node_modules/ant-design-vue/es/button/style/index.js.map +1 -1
  249. package/es/node_modules/ant-design-vue/es/checkbox/style/index.js +4 -2
  250. package/es/node_modules/ant-design-vue/es/checkbox/style/index.js.map +1 -1
  251. package/es/node_modules/ant-design-vue/es/date-picker/locale/zh_CN.js +4 -2
  252. package/es/node_modules/ant-design-vue/es/date-picker/locale/zh_CN.js.map +1 -1
  253. package/es/node_modules/ant-design-vue/es/date-picker/style/index.js +4 -2
  254. package/es/node_modules/ant-design-vue/es/date-picker/style/index.js.map +1 -1
  255. package/es/node_modules/ant-design-vue/es/dropdown/style/index.js +4 -2
  256. package/es/node_modules/ant-design-vue/es/dropdown/style/index.js.map +1 -1
  257. package/es/node_modules/ant-design-vue/es/empty/style/index.js +4 -2
  258. package/es/node_modules/ant-design-vue/es/empty/style/index.js.map +1 -1
  259. package/es/node_modules/ant-design-vue/es/input/style/index.js +4 -2
  260. package/es/node_modules/ant-design-vue/es/input/style/index.js.map +1 -1
  261. package/es/node_modules/ant-design-vue/es/modal/style/index.js +4 -2
  262. package/es/node_modules/ant-design-vue/es/modal/style/index.js.map +1 -1
  263. package/es/node_modules/ant-design-vue/es/pagination/style/index.js +4 -2
  264. package/es/node_modules/ant-design-vue/es/pagination/style/index.js.map +1 -1
  265. package/es/node_modules/ant-design-vue/es/progress/style/index.js +4 -2
  266. package/es/node_modules/ant-design-vue/es/progress/style/index.js.map +1 -1
  267. package/es/node_modules/ant-design-vue/es/radio/style/index.js +4 -2
  268. package/es/node_modules/ant-design-vue/es/radio/style/index.js.map +1 -1
  269. package/es/node_modules/ant-design-vue/es/select/style/index.js +4 -2
  270. package/es/node_modules/ant-design-vue/es/select/style/index.js.map +1 -1
  271. package/es/node_modules/ant-design-vue/es/skeleton/style/index.js +4 -2
  272. package/es/node_modules/ant-design-vue/es/skeleton/style/index.js.map +1 -1
  273. package/es/node_modules/ant-design-vue/es/spin/style/index.js +4 -2
  274. package/es/node_modules/ant-design-vue/es/spin/style/index.js.map +1 -1
  275. package/es/node_modules/ant-design-vue/es/style/default.js +4 -1738
  276. package/es/node_modules/ant-design-vue/es/style/default.js.map +1 -1
  277. package/es/node_modules/ant-design-vue/es/table/style/index.js +4 -2
  278. package/es/node_modules/ant-design-vue/es/table/style/index.js.map +1 -1
  279. package/es/node_modules/ant-design-vue/es/tag/style/index.js +4 -2
  280. package/es/node_modules/ant-design-vue/es/tag/style/index.js.map +1 -1
  281. package/es/node_modules/ant-design-vue/es/time-picker/locale/zh_CN.js +4 -2
  282. package/es/node_modules/ant-design-vue/es/time-picker/locale/zh_CN.js.map +1 -1
  283. package/es/node_modules/ant-design-vue/es/tooltip/style/index.js +4 -2
  284. package/es/node_modules/ant-design-vue/es/tooltip/style/index.js.map +1 -1
  285. package/es/node_modules/ant-design-vue/es/tree/style/index.js +4 -2
  286. package/es/node_modules/ant-design-vue/es/tree/style/index.js.map +1 -1
  287. package/es/node_modules/ant-design-vue/es/vc-picker/locale/zh_CN.js +4 -2
  288. package/es/node_modules/ant-design-vue/es/vc-picker/locale/zh_CN.js.map +1 -1
  289. package/es/node_modules/axios/index.js +9 -2
  290. package/es/node_modules/axios/index.js.map +1 -1
  291. package/es/node_modules/axios/lib/adapters/xhr.js +151 -136
  292. package/es/node_modules/axios/lib/adapters/xhr.js.map +1 -1
  293. package/es/node_modules/axios/lib/axios.js +18 -14
  294. package/es/node_modules/axios/lib/axios.js.map +1 -1
  295. package/es/node_modules/axios/lib/cancel/Cancel.js +17 -7
  296. package/es/node_modules/axios/lib/cancel/Cancel.js.map +1 -1
  297. package/es/node_modules/axios/lib/cancel/CancelToken.js +79 -69
  298. package/es/node_modules/axios/lib/cancel/CancelToken.js.map +1 -1
  299. package/es/node_modules/axios/lib/cancel/isCancel.js +13 -3
  300. package/es/node_modules/axios/lib/cancel/isCancel.js.map +1 -1
  301. package/es/node_modules/axios/lib/core/Axios.js +3 -1
  302. package/es/node_modules/axios/lib/core/Axios.js.map +1 -1
  303. package/es/node_modules/axios/lib/core/InterceptorManager.js +3 -1
  304. package/es/node_modules/axios/lib/core/InterceptorManager.js.map +1 -1
  305. package/es/node_modules/axios/lib/core/buildFullPath.js +20 -10
  306. package/es/node_modules/axios/lib/core/buildFullPath.js.map +1 -1
  307. package/es/node_modules/axios/lib/core/createError.js +16 -6
  308. package/es/node_modules/axios/lib/core/createError.js.map +1 -1
  309. package/es/node_modules/axios/lib/core/dispatchRequest.js +38 -14
  310. package/es/node_modules/axios/lib/core/dispatchRequest.js.map +1 -1
  311. package/es/node_modules/axios/lib/core/enhanceError.js +3 -1
  312. package/es/node_modules/axios/lib/core/enhanceError.js.map +1 -1
  313. package/es/node_modules/axios/lib/core/mergeConfig.js +3 -1
  314. package/es/node_modules/axios/lib/core/mergeConfig.js.map +1 -1
  315. package/es/node_modules/axios/lib/core/settle.js +26 -10
  316. package/es/node_modules/axios/lib/core/settle.js.map +1 -1
  317. package/es/node_modules/axios/lib/core/transformData.js +5 -3
  318. package/es/node_modules/axios/lib/core/transformData.js.map +1 -1
  319. package/es/node_modules/axios/lib/defaults.js +103 -93
  320. package/es/node_modules/axios/lib/defaults.js.map +1 -1
  321. package/es/node_modules/axios/lib/env/data.js +13 -3
  322. package/es/node_modules/axios/lib/env/data.js.map +1 -1
  323. package/es/node_modules/axios/lib/helpers/bind.js +3 -1
  324. package/es/node_modules/axios/lib/helpers/bind.js.map +1 -1
  325. package/es/node_modules/axios/lib/helpers/buildURL.js +3 -1
  326. package/es/node_modules/axios/lib/helpers/buildURL.js.map +1 -1
  327. package/es/node_modules/axios/lib/helpers/combineURLs.js +13 -3
  328. package/es/node_modules/axios/lib/helpers/combineURLs.js.map +1 -1
  329. package/es/node_modules/axios/lib/helpers/cookies.js +49 -39
  330. package/es/node_modules/axios/lib/helpers/cookies.js.map +1 -1
  331. package/es/node_modules/axios/lib/helpers/isAbsoluteURL.js +13 -3
  332. package/es/node_modules/axios/lib/helpers/isAbsoluteURL.js.map +1 -1
  333. package/es/node_modules/axios/lib/helpers/isAxiosError.js +15 -5
  334. package/es/node_modules/axios/lib/helpers/isAxiosError.js.map +1 -1
  335. package/es/node_modules/axios/lib/helpers/isURLSameOrigin.js +42 -32
  336. package/es/node_modules/axios/lib/helpers/isURLSameOrigin.js.map +1 -1
  337. package/es/node_modules/axios/lib/helpers/normalizeHeaderName.js +3 -1
  338. package/es/node_modules/axios/lib/helpers/normalizeHeaderName.js.map +1 -1
  339. package/es/node_modules/axios/lib/helpers/parseHeaders.js +55 -45
  340. package/es/node_modules/axios/lib/helpers/parseHeaders.js.map +1 -1
  341. package/es/node_modules/axios/lib/helpers/spread.js +14 -4
  342. package/es/node_modules/axios/lib/helpers/spread.js.map +1 -1
  343. package/es/node_modules/axios/lib/helpers/validator.js +11 -4
  344. package/es/node_modules/axios/lib/helpers/validator.js.map +1 -1
  345. package/es/node_modules/axios/lib/utils.js +3 -1
  346. package/es/node_modules/axios/lib/utils.js.map +1 -1
  347. package/es/node_modules/echarts/lib/action/roamHelper.js +3 -1
  348. package/es/node_modules/echarts/lib/action/roamHelper.js.map +1 -1
  349. package/es/node_modules/echarts/lib/animation/basicTrasition.js +10 -1
  350. package/es/node_modules/echarts/lib/animation/basicTrasition.js.map +1 -1
  351. package/es/node_modules/echarts/lib/animation/customGraphicKeyframeAnimation.js +16 -1
  352. package/es/node_modules/echarts/lib/animation/customGraphicKeyframeAnimation.js.map +1 -1
  353. package/es/node_modules/echarts/lib/animation/customGraphicTransition.js +58 -4
  354. package/es/node_modules/echarts/lib/animation/customGraphicTransition.js.map +1 -1
  355. package/es/node_modules/echarts/lib/chart/bar/BarSeries.js +4 -2
  356. package/es/node_modules/echarts/lib/chart/bar/BarSeries.js.map +1 -1
  357. package/es/node_modules/echarts/lib/chart/bar/BarView.js +17 -2
  358. package/es/node_modules/echarts/lib/chart/bar/BarView.js.map +1 -1
  359. package/es/node_modules/echarts/lib/chart/bar/BaseBarSeries.js +4 -2
  360. package/es/node_modules/echarts/lib/chart/bar/BaseBarSeries.js.map +1 -1
  361. package/es/node_modules/echarts/lib/chart/bar/install.js +3 -1
  362. package/es/node_modules/echarts/lib/chart/bar/install.js.map +1 -1
  363. package/es/node_modules/echarts/lib/chart/helper/LargeSymbolDraw.js +7 -3
  364. package/es/node_modules/echarts/lib/chart/helper/LargeSymbolDraw.js.map +1 -1
  365. package/es/node_modules/echarts/lib/chart/helper/Symbol.js +4 -2
  366. package/es/node_modules/echarts/lib/chart/helper/Symbol.js.map +1 -1
  367. package/es/node_modules/echarts/lib/chart/helper/SymbolDraw.js +4 -2
  368. package/es/node_modules/echarts/lib/chart/helper/SymbolDraw.js.map +1 -1
  369. package/es/node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js +5 -1
  370. package/es/node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js.map +1 -1
  371. package/es/node_modules/echarts/lib/chart/helper/createRenderPlanner.js +3 -1
  372. package/es/node_modules/echarts/lib/chart/helper/createRenderPlanner.js.map +1 -1
  373. package/es/node_modules/echarts/lib/chart/helper/createSeriesData.js +8 -2
  374. package/es/node_modules/echarts/lib/chart/helper/createSeriesData.js.map +1 -1
  375. package/es/node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js +3 -1
  376. package/es/node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js.map +1 -1
  377. package/es/node_modules/echarts/lib/chart/helper/labelHelper.js +4 -1
  378. package/es/node_modules/echarts/lib/chart/helper/labelHelper.js.map +1 -1
  379. package/es/node_modules/echarts/lib/chart/helper/pieHelper.js +3 -1
  380. package/es/node_modules/echarts/lib/chart/helper/pieHelper.js.map +1 -1
  381. package/es/node_modules/echarts/lib/chart/line/LineSeries.js +10 -2
  382. package/es/node_modules/echarts/lib/chart/line/LineSeries.js.map +1 -1
  383. package/es/node_modules/echarts/lib/chart/line/LineView.js +28 -9
  384. package/es/node_modules/echarts/lib/chart/line/LineView.js.map +1 -1
  385. package/es/node_modules/echarts/lib/chart/line/helper.js +12 -3
  386. package/es/node_modules/echarts/lib/chart/line/helper.js.map +1 -1
  387. package/es/node_modules/echarts/lib/chart/line/install.js +3 -1
  388. package/es/node_modules/echarts/lib/chart/line/install.js.map +1 -1
  389. package/es/node_modules/echarts/lib/chart/line/lineAnimationDiff.js +3 -1
  390. package/es/node_modules/echarts/lib/chart/line/lineAnimationDiff.js.map +1 -1
  391. package/es/node_modules/echarts/lib/chart/line/poly.js +4 -1
  392. package/es/node_modules/echarts/lib/chart/line/poly.js.map +1 -1
  393. package/es/node_modules/echarts/lib/chart/map/MapSeries.js +4 -2
  394. package/es/node_modules/echarts/lib/chart/map/MapSeries.js.map +1 -1
  395. package/es/node_modules/echarts/lib/chart/map/MapView.js +4 -2
  396. package/es/node_modules/echarts/lib/chart/map/MapView.js.map +1 -1
  397. package/es/node_modules/echarts/lib/chart/map/install.js +3 -1
  398. package/es/node_modules/echarts/lib/chart/map/install.js.map +1 -1
  399. package/es/node_modules/echarts/lib/chart/map/mapDataStatistic.js +3 -1
  400. package/es/node_modules/echarts/lib/chart/map/mapDataStatistic.js.map +1 -1
  401. package/es/node_modules/echarts/lib/chart/map/mapSymbolLayout.js +3 -1
  402. package/es/node_modules/echarts/lib/chart/map/mapSymbolLayout.js.map +1 -1
  403. package/es/node_modules/echarts/lib/chart/pie/PieSeries.js +4 -2
  404. package/es/node_modules/echarts/lib/chart/pie/PieSeries.js.map +1 -1
  405. package/es/node_modules/echarts/lib/chart/pie/PieView.js +4 -2
  406. package/es/node_modules/echarts/lib/chart/pie/PieView.js.map +1 -1
  407. package/es/node_modules/echarts/lib/chart/pie/install.js +3 -1
  408. package/es/node_modules/echarts/lib/chart/pie/install.js.map +1 -1
  409. package/es/node_modules/echarts/lib/chart/pie/labelLayout.js +3 -1
  410. package/es/node_modules/echarts/lib/chart/pie/labelLayout.js.map +1 -1
  411. package/es/node_modules/echarts/lib/chart/pie/pieLayout.js +4 -1
  412. package/es/node_modules/echarts/lib/chart/pie/pieLayout.js.map +1 -1
  413. package/es/node_modules/echarts/lib/chart/scatter/ScatterSeries.js +4 -2
  414. package/es/node_modules/echarts/lib/chart/scatter/ScatterSeries.js.map +1 -1
  415. package/es/node_modules/echarts/lib/chart/scatter/ScatterView.js +4 -2
  416. package/es/node_modules/echarts/lib/chart/scatter/ScatterView.js.map +1 -1
  417. package/es/node_modules/echarts/lib/chart/scatter/install.js +3 -1
  418. package/es/node_modules/echarts/lib/chart/scatter/install.js.map +1 -1
  419. package/es/node_modules/echarts/lib/component/axis/AxisBuilder.js +13 -4
  420. package/es/node_modules/echarts/lib/component/axis/AxisBuilder.js.map +1 -1
  421. package/es/node_modules/echarts/lib/component/axis/AxisView.js +9 -2
  422. package/es/node_modules/echarts/lib/component/axis/AxisView.js.map +1 -1
  423. package/es/node_modules/echarts/lib/component/axis/CartesianAxisView.js +5 -1
  424. package/es/node_modules/echarts/lib/component/axis/CartesianAxisView.js.map +1 -1
  425. package/es/node_modules/echarts/lib/component/axis/axisSplitHelper.js +4 -1
  426. package/es/node_modules/echarts/lib/component/axis/axisSplitHelper.js.map +1 -1
  427. package/es/node_modules/echarts/lib/component/axisPointer/AxisPointerModel.js +4 -2
  428. package/es/node_modules/echarts/lib/component/axisPointer/AxisPointerModel.js.map +1 -1
  429. package/es/node_modules/echarts/lib/component/axisPointer/AxisPointerView.js +4 -2
  430. package/es/node_modules/echarts/lib/component/axisPointer/AxisPointerView.js.map +1 -1
  431. package/es/node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js +4 -2
  432. package/es/node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js.map +1 -1
  433. package/es/node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js +12 -3
  434. package/es/node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js.map +1 -1
  435. package/es/node_modules/echarts/lib/component/axisPointer/axisTrigger.js +8 -2
  436. package/es/node_modules/echarts/lib/component/axisPointer/axisTrigger.js.map +1 -1
  437. package/es/node_modules/echarts/lib/component/axisPointer/findPointFromSeries.js +3 -1
  438. package/es/node_modules/echarts/lib/component/axisPointer/findPointFromSeries.js.map +1 -1
  439. package/es/node_modules/echarts/lib/component/axisPointer/globalListener.js +4 -1
  440. package/es/node_modules/echarts/lib/component/axisPointer/globalListener.js.map +1 -1
  441. package/es/node_modules/echarts/lib/component/axisPointer/install.js +3 -1
  442. package/es/node_modules/echarts/lib/component/axisPointer/install.js.map +1 -1
  443. package/es/node_modules/echarts/lib/component/axisPointer/modelHelper.js +7 -1
  444. package/es/node_modules/echarts/lib/component/axisPointer/modelHelper.js.map +1 -1
  445. package/es/node_modules/echarts/lib/component/axisPointer/viewHelper.js +9 -1
  446. package/es/node_modules/echarts/lib/component/axisPointer/viewHelper.js.map +1 -1
  447. package/es/node_modules/echarts/lib/component/dataZoom/AxisProxy.js +4 -2
  448. package/es/node_modules/echarts/lib/component/dataZoom/AxisProxy.js.map +1 -1
  449. package/es/node_modules/echarts/lib/component/dataZoom/DataZoomModel.js +11 -3
  450. package/es/node_modules/echarts/lib/component/dataZoom/DataZoomModel.js.map +1 -1
  451. package/es/node_modules/echarts/lib/component/dataZoom/DataZoomView.js +4 -2
  452. package/es/node_modules/echarts/lib/component/dataZoom/DataZoomView.js.map +1 -1
  453. package/es/node_modules/echarts/lib/component/dataZoom/SelectZoomModel.js +4 -2
  454. package/es/node_modules/echarts/lib/component/dataZoom/SelectZoomModel.js.map +1 -1
  455. package/es/node_modules/echarts/lib/component/dataZoom/SelectZoomView.js +4 -2
  456. package/es/node_modules/echarts/lib/component/dataZoom/SelectZoomView.js.map +1 -1
  457. package/es/node_modules/echarts/lib/component/dataZoom/dataZoomAction.js +3 -1
  458. package/es/node_modules/echarts/lib/component/dataZoom/dataZoomAction.js.map +1 -1
  459. package/es/node_modules/echarts/lib/component/dataZoom/dataZoomProcessor.js +4 -2
  460. package/es/node_modules/echarts/lib/component/dataZoom/dataZoomProcessor.js.map +1 -1
  461. package/es/node_modules/echarts/lib/component/dataZoom/helper.js +10 -2
  462. package/es/node_modules/echarts/lib/component/dataZoom/helper.js.map +1 -1
  463. package/es/node_modules/echarts/lib/component/dataZoom/history.js +6 -1
  464. package/es/node_modules/echarts/lib/component/dataZoom/history.js.map +1 -1
  465. package/es/node_modules/echarts/lib/component/dataZoom/installCommon.js +3 -1
  466. package/es/node_modules/echarts/lib/component/dataZoom/installCommon.js.map +1 -1
  467. package/es/node_modules/echarts/lib/component/dataZoom/installDataZoomSelect.js +3 -1
  468. package/es/node_modules/echarts/lib/component/dataZoom/installDataZoomSelect.js.map +1 -1
  469. package/es/node_modules/echarts/lib/component/dataset/install.js +4 -1
  470. package/es/node_modules/echarts/lib/component/dataset/install.js.map +1 -1
  471. package/es/node_modules/echarts/lib/component/geo/GeoView.js +4 -2
  472. package/es/node_modules/echarts/lib/component/geo/GeoView.js.map +1 -1
  473. package/es/node_modules/echarts/lib/component/geo/install.js +3 -1
  474. package/es/node_modules/echarts/lib/component/geo/install.js.map +1 -1
  475. package/es/node_modules/echarts/lib/component/graphic/GraphicModel.js +12 -2
  476. package/es/node_modules/echarts/lib/component/graphic/GraphicModel.js.map +1 -1
  477. package/es/node_modules/echarts/lib/component/graphic/GraphicView.js +15 -3
  478. package/es/node_modules/echarts/lib/component/graphic/GraphicView.js.map +1 -1
  479. package/es/node_modules/echarts/lib/component/graphic/install.js +3 -1
  480. package/es/node_modules/echarts/lib/component/graphic/install.js.map +1 -1
  481. package/es/node_modules/echarts/lib/component/grid/installSimple.js +3 -1
  482. package/es/node_modules/echarts/lib/component/grid/installSimple.js.map +1 -1
  483. package/es/node_modules/echarts/lib/component/helper/BrushController.js +28 -3
  484. package/es/node_modules/echarts/lib/component/helper/BrushController.js.map +1 -1
  485. package/es/node_modules/echarts/lib/component/helper/BrushTargetManager.js +12 -3
  486. package/es/node_modules/echarts/lib/component/helper/BrushTargetManager.js.map +1 -1
  487. package/es/node_modules/echarts/lib/component/helper/MapDraw.js +4 -2
  488. package/es/node_modules/echarts/lib/component/helper/MapDraw.js.map +1 -1
  489. package/es/node_modules/echarts/lib/component/helper/RoamController.js +4 -2
  490. package/es/node_modules/echarts/lib/component/helper/RoamController.js.map +1 -1
  491. package/es/node_modules/echarts/lib/component/helper/brushHelper.js +5 -1
  492. package/es/node_modules/echarts/lib/component/helper/brushHelper.js.map +1 -1
  493. package/es/node_modules/echarts/lib/component/helper/cursorHelper.js +3 -1
  494. package/es/node_modules/echarts/lib/component/helper/cursorHelper.js.map +1 -1
  495. package/es/node_modules/echarts/lib/component/helper/interactionMutex.js +5 -1
  496. package/es/node_modules/echarts/lib/component/helper/interactionMutex.js.map +1 -1
  497. package/es/node_modules/echarts/lib/component/helper/listComponent.js +4 -1
  498. package/es/node_modules/echarts/lib/component/helper/listComponent.js.map +1 -1
  499. package/es/node_modules/echarts/lib/component/helper/roamHelper.js +4 -1
  500. package/es/node_modules/echarts/lib/component/helper/roamHelper.js.map +1 -1
  501. package/es/node_modules/echarts/lib/component/helper/sliderMove.js +3 -1
  502. package/es/node_modules/echarts/lib/component/helper/sliderMove.js.map +1 -1
  503. package/es/node_modules/echarts/lib/component/legend/LegendModel.js +4 -2
  504. package/es/node_modules/echarts/lib/component/legend/LegendModel.js.map +1 -1
  505. package/es/node_modules/echarts/lib/component/legend/LegendView.js +14 -3
  506. package/es/node_modules/echarts/lib/component/legend/LegendView.js.map +1 -1
  507. package/es/node_modules/echarts/lib/component/legend/ScrollableLegendModel.js +4 -2
  508. package/es/node_modules/echarts/lib/component/legend/ScrollableLegendModel.js.map +1 -1
  509. package/es/node_modules/echarts/lib/component/legend/ScrollableLegendView.js +22 -8
  510. package/es/node_modules/echarts/lib/component/legend/ScrollableLegendView.js.map +1 -1
  511. package/es/node_modules/echarts/lib/component/legend/install.js +3 -1
  512. package/es/node_modules/echarts/lib/component/legend/install.js.map +1 -1
  513. package/es/node_modules/echarts/lib/component/legend/installLegendPlain.js +3 -1
  514. package/es/node_modules/echarts/lib/component/legend/installLegendPlain.js.map +1 -1
  515. package/es/node_modules/echarts/lib/component/legend/installLegendScroll.js +3 -1
  516. package/es/node_modules/echarts/lib/component/legend/installLegendScroll.js.map +1 -1
  517. package/es/node_modules/echarts/lib/component/legend/legendAction.js +3 -1
  518. package/es/node_modules/echarts/lib/component/legend/legendAction.js.map +1 -1
  519. package/es/node_modules/echarts/lib/component/legend/legendFilter.js +3 -1
  520. package/es/node_modules/echarts/lib/component/legend/legendFilter.js.map +1 -1
  521. package/es/node_modules/echarts/lib/component/legend/scrollableLegendAction.js +3 -1
  522. package/es/node_modules/echarts/lib/component/legend/scrollableLegendAction.js.map +1 -1
  523. package/es/node_modules/echarts/lib/component/title/install.js +3 -1
  524. package/es/node_modules/echarts/lib/component/title/install.js.map +1 -1
  525. package/es/node_modules/echarts/lib/component/toolbox/ToolboxModel.js +4 -2
  526. package/es/node_modules/echarts/lib/component/toolbox/ToolboxModel.js.map +1 -1
  527. package/es/node_modules/echarts/lib/component/toolbox/ToolboxView.js +4 -2
  528. package/es/node_modules/echarts/lib/component/toolbox/ToolboxView.js.map +1 -1
  529. package/es/node_modules/echarts/lib/component/toolbox/feature/DataView.js +9 -3
  530. package/es/node_modules/echarts/lib/component/toolbox/feature/DataView.js.map +1 -1
  531. package/es/node_modules/echarts/lib/component/toolbox/feature/DataZoom.js +4 -2
  532. package/es/node_modules/echarts/lib/component/toolbox/feature/DataZoom.js.map +1 -1
  533. package/es/node_modules/echarts/lib/component/toolbox/feature/MagicType.js +4 -2
  534. package/es/node_modules/echarts/lib/component/toolbox/feature/MagicType.js.map +1 -1
  535. package/es/node_modules/echarts/lib/component/toolbox/feature/Restore.js +4 -2
  536. package/es/node_modules/echarts/lib/component/toolbox/feature/Restore.js.map +1 -1
  537. package/es/node_modules/echarts/lib/component/toolbox/feature/SaveAsImage.js +4 -2
  538. package/es/node_modules/echarts/lib/component/toolbox/feature/SaveAsImage.js.map +1 -1
  539. package/es/node_modules/echarts/lib/component/toolbox/featureManager.js +5 -1
  540. package/es/node_modules/echarts/lib/component/toolbox/featureManager.js.map +1 -1
  541. package/es/node_modules/echarts/lib/component/toolbox/install.js +3 -1
  542. package/es/node_modules/echarts/lib/component/toolbox/install.js.map +1 -1
  543. package/es/node_modules/echarts/lib/component/tooltip/TooltipHTMLContent.js +4 -2
  544. package/es/node_modules/echarts/lib/component/tooltip/TooltipHTMLContent.js.map +1 -1
  545. package/es/node_modules/echarts/lib/component/tooltip/TooltipModel.js +4 -2
  546. package/es/node_modules/echarts/lib/component/tooltip/TooltipModel.js.map +1 -1
  547. package/es/node_modules/echarts/lib/component/tooltip/TooltipRichContent.js +5 -3
  548. package/es/node_modules/echarts/lib/component/tooltip/TooltipRichContent.js.map +1 -1
  549. package/es/node_modules/echarts/lib/component/tooltip/TooltipView.js +4 -2
  550. package/es/node_modules/echarts/lib/component/tooltip/TooltipView.js.map +1 -1
  551. package/es/node_modules/echarts/lib/component/tooltip/helper.js +7 -1
  552. package/es/node_modules/echarts/lib/component/tooltip/helper.js.map +1 -1
  553. package/es/node_modules/echarts/lib/component/tooltip/install.js +3 -1
  554. package/es/node_modules/echarts/lib/component/tooltip/install.js.map +1 -1
  555. package/es/node_modules/echarts/lib/component/tooltip/seriesFormatTooltip.js +5 -3
  556. package/es/node_modules/echarts/lib/component/tooltip/seriesFormatTooltip.js.map +1 -1
  557. package/es/node_modules/echarts/lib/component/tooltip/tooltipMarkup.js +19 -5
  558. package/es/node_modules/echarts/lib/component/tooltip/tooltipMarkup.js.map +1 -1
  559. package/es/node_modules/echarts/lib/component/visualMap/ContinuousModel.js +4 -2
  560. package/es/node_modules/echarts/lib/component/visualMap/ContinuousModel.js.map +1 -1
  561. package/es/node_modules/echarts/lib/component/visualMap/ContinuousView.js +12 -4
  562. package/es/node_modules/echarts/lib/component/visualMap/ContinuousView.js.map +1 -1
  563. package/es/node_modules/echarts/lib/component/visualMap/PiecewiseModel.js +9 -2
  564. package/es/node_modules/echarts/lib/component/visualMap/PiecewiseModel.js.map +1 -1
  565. package/es/node_modules/echarts/lib/component/visualMap/PiecewiseView.js +12 -3
  566. package/es/node_modules/echarts/lib/component/visualMap/PiecewiseView.js.map +1 -1
  567. package/es/node_modules/echarts/lib/component/visualMap/VisualMapModel.js +4 -2
  568. package/es/node_modules/echarts/lib/component/visualMap/VisualMapModel.js.map +1 -1
  569. package/es/node_modules/echarts/lib/component/visualMap/VisualMapView.js +4 -2
  570. package/es/node_modules/echarts/lib/component/visualMap/VisualMapView.js.map +1 -1
  571. package/es/node_modules/echarts/lib/component/visualMap/helper.js +4 -1
  572. package/es/node_modules/echarts/lib/component/visualMap/helper.js.map +1 -1
  573. package/es/node_modules/echarts/lib/component/visualMap/install.js +3 -1
  574. package/es/node_modules/echarts/lib/component/visualMap/install.js.map +1 -1
  575. package/es/node_modules/echarts/lib/component/visualMap/installCommon.js +3 -1
  576. package/es/node_modules/echarts/lib/component/visualMap/installCommon.js.map +1 -1
  577. package/es/node_modules/echarts/lib/component/visualMap/installVisualMapContinuous.js +3 -1
  578. package/es/node_modules/echarts/lib/component/visualMap/installVisualMapContinuous.js.map +1 -1
  579. package/es/node_modules/echarts/lib/component/visualMap/installVisualMapPiecewise.js +3 -1
  580. package/es/node_modules/echarts/lib/component/visualMap/installVisualMapPiecewise.js.map +1 -1
  581. package/es/node_modules/echarts/lib/component/visualMap/preprocessor.js +3 -1
  582. package/es/node_modules/echarts/lib/component/visualMap/preprocessor.js.map +1 -1
  583. package/es/node_modules/echarts/lib/component/visualMap/visualEncoding.js +3 -1
  584. package/es/node_modules/echarts/lib/component/visualMap/visualEncoding.js.map +1 -1
  585. package/es/node_modules/echarts/lib/component/visualMap/visualMapAction.js +4 -1
  586. package/es/node_modules/echarts/lib/component/visualMap/visualMapAction.js.map +1 -1
  587. package/es/node_modules/echarts/lib/coord/Axis.js +4 -2
  588. package/es/node_modules/echarts/lib/coord/Axis.js.map +1 -1
  589. package/es/node_modules/echarts/lib/coord/CoordinateSystem.js +3 -1
  590. package/es/node_modules/echarts/lib/coord/CoordinateSystem.js.map +1 -1
  591. package/es/node_modules/echarts/lib/coord/View.js +4 -2
  592. package/es/node_modules/echarts/lib/coord/View.js.map +1 -1
  593. package/es/node_modules/echarts/lib/coord/axisAlignTicks.js +14 -3
  594. package/es/node_modules/echarts/lib/coord/axisAlignTicks.js.map +1 -1
  595. package/es/node_modules/echarts/lib/coord/axisCommonTypes.js +3 -1
  596. package/es/node_modules/echarts/lib/coord/axisCommonTypes.js.map +1 -1
  597. package/es/node_modules/echarts/lib/coord/axisDefault.js +4 -2
  598. package/es/node_modules/echarts/lib/coord/axisDefault.js.map +1 -1
  599. package/es/node_modules/echarts/lib/coord/axisHelper.js +14 -2
  600. package/es/node_modules/echarts/lib/coord/axisHelper.js.map +1 -1
  601. package/es/node_modules/echarts/lib/coord/axisModelCommonMixin.js +3 -1
  602. package/es/node_modules/echarts/lib/coord/axisModelCommonMixin.js.map +1 -1
  603. package/es/node_modules/echarts/lib/coord/axisModelCreator.js +3 -1
  604. package/es/node_modules/echarts/lib/coord/axisModelCreator.js.map +1 -1
  605. package/es/node_modules/echarts/lib/coord/axisTickLabelBuilder.js +5 -1
  606. package/es/node_modules/echarts/lib/coord/axisTickLabelBuilder.js.map +1 -1
  607. package/es/node_modules/echarts/lib/coord/cartesian/Axis2D.js +4 -2
  608. package/es/node_modules/echarts/lib/coord/cartesian/Axis2D.js.map +1 -1
  609. package/es/node_modules/echarts/lib/coord/cartesian/AxisModel.js +4 -1
  610. package/es/node_modules/echarts/lib/coord/cartesian/AxisModel.js.map +1 -1
  611. package/es/node_modules/echarts/lib/coord/cartesian/Cartesian.js +4 -2
  612. package/es/node_modules/echarts/lib/coord/cartesian/Cartesian.js.map +1 -1
  613. package/es/node_modules/echarts/lib/coord/cartesian/Cartesian2D.js +4 -2
  614. package/es/node_modules/echarts/lib/coord/cartesian/Cartesian2D.js.map +1 -1
  615. package/es/node_modules/echarts/lib/coord/cartesian/Grid.js +13 -3
  616. package/es/node_modules/echarts/lib/coord/cartesian/Grid.js.map +1 -1
  617. package/es/node_modules/echarts/lib/coord/cartesian/GridModel.js +4 -2
  618. package/es/node_modules/echarts/lib/coord/cartesian/GridModel.js.map +1 -1
  619. package/es/node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js +11 -2
  620. package/es/node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js.map +1 -1
  621. package/es/node_modules/echarts/lib/coord/geo/Geo.js +21 -3
  622. package/es/node_modules/echarts/lib/coord/geo/Geo.js.map +1 -1
  623. package/es/node_modules/echarts/lib/coord/geo/GeoJSONResource.js +4 -2
  624. package/es/node_modules/echarts/lib/coord/geo/GeoJSONResource.js.map +1 -1
  625. package/es/node_modules/echarts/lib/coord/geo/GeoModel.js +4 -2
  626. package/es/node_modules/echarts/lib/coord/geo/GeoModel.js.map +1 -1
  627. package/es/node_modules/echarts/lib/coord/geo/GeoSVGResource.js +3 -1
  628. package/es/node_modules/echarts/lib/coord/geo/GeoSVGResource.js.map +1 -1
  629. package/es/node_modules/echarts/lib/coord/geo/Region.js +7 -1
  630. package/es/node_modules/echarts/lib/coord/geo/Region.js.map +1 -1
  631. package/es/node_modules/echarts/lib/coord/geo/fix/diaoyuIsland.js +3 -1
  632. package/es/node_modules/echarts/lib/coord/geo/fix/diaoyuIsland.js.map +1 -1
  633. package/es/node_modules/echarts/lib/coord/geo/fix/nanhai.js +3 -1
  634. package/es/node_modules/echarts/lib/coord/geo/fix/nanhai.js.map +1 -1
  635. package/es/node_modules/echarts/lib/coord/geo/fix/textCoord.js +3 -1
  636. package/es/node_modules/echarts/lib/coord/geo/fix/textCoord.js.map +1 -1
  637. package/es/node_modules/echarts/lib/coord/geo/geoCreator.js +13 -5
  638. package/es/node_modules/echarts/lib/coord/geo/geoCreator.js.map +1 -1
  639. package/es/node_modules/echarts/lib/coord/geo/geoSourceManager.js +7 -2
  640. package/es/node_modules/echarts/lib/coord/geo/geoSourceManager.js.map +1 -1
  641. package/es/node_modules/echarts/lib/coord/geo/parseGeoJson.js +3 -1
  642. package/es/node_modules/echarts/lib/coord/geo/parseGeoJson.js.map +1 -1
  643. package/es/node_modules/echarts/lib/coord/scaleRawExtentInfo.js +15 -2
  644. package/es/node_modules/echarts/lib/coord/scaleRawExtentInfo.js.map +1 -1
  645. package/es/node_modules/echarts/lib/core/CoordinateSystem.js +4 -2
  646. package/es/node_modules/echarts/lib/core/CoordinateSystem.js.map +1 -1
  647. package/es/node_modules/echarts/lib/core/ExtensionAPI.js +4 -2
  648. package/es/node_modules/echarts/lib/core/ExtensionAPI.js.map +1 -1
  649. package/es/node_modules/echarts/lib/core/Scheduler.js +10 -2
  650. package/es/node_modules/echarts/lib/core/Scheduler.js.map +1 -1
  651. package/es/node_modules/echarts/lib/core/echarts.js +104 -5
  652. package/es/node_modules/echarts/lib/core/echarts.js.map +1 -1
  653. package/es/node_modules/echarts/lib/core/impl.js +15 -1
  654. package/es/node_modules/echarts/lib/core/impl.js.map +1 -1
  655. package/es/node_modules/echarts/lib/core/lifecycle.js +4 -2
  656. package/es/node_modules/echarts/lib/core/lifecycle.js.map +1 -1
  657. package/es/node_modules/echarts/lib/core/locale.js +7 -1
  658. package/es/node_modules/echarts/lib/core/locale.js.map +1 -1
  659. package/es/node_modules/echarts/lib/core/task.js +17 -2
  660. package/es/node_modules/echarts/lib/core/task.js.map +1 -1
  661. package/es/node_modules/echarts/lib/data/DataDiffer.js +4 -2
  662. package/es/node_modules/echarts/lib/data/DataDiffer.js.map +1 -1
  663. package/es/node_modules/echarts/lib/data/DataStore.js +20 -3
  664. package/es/node_modules/echarts/lib/data/DataStore.js.map +1 -1
  665. package/es/node_modules/echarts/lib/data/OrdinalMeta.js +4 -2
  666. package/es/node_modules/echarts/lib/data/OrdinalMeta.js.map +1 -1
  667. package/es/node_modules/echarts/lib/data/SeriesData.js +27 -3
  668. package/es/node_modules/echarts/lib/data/SeriesData.js.map +1 -1
  669. package/es/node_modules/echarts/lib/data/SeriesDimensionDefine.js +4 -2
  670. package/es/node_modules/echarts/lib/data/SeriesDimensionDefine.js.map +1 -1
  671. package/es/node_modules/echarts/lib/data/Source.js +15 -5
  672. package/es/node_modules/echarts/lib/data/Source.js.map +1 -1
  673. package/es/node_modules/echarts/lib/data/helper/SeriesDataSchema.js +7 -1
  674. package/es/node_modules/echarts/lib/data/helper/SeriesDataSchema.js.map +1 -1
  675. package/es/node_modules/echarts/lib/data/helper/createDimensions.js +3 -1
  676. package/es/node_modules/echarts/lib/data/helper/createDimensions.js.map +1 -1
  677. package/es/node_modules/echarts/lib/data/helper/dataProvider.js +38 -2
  678. package/es/node_modules/echarts/lib/data/helper/dataProvider.js.map +1 -1
  679. package/es/node_modules/echarts/lib/data/helper/dataStackHelper.js +5 -1
  680. package/es/node_modules/echarts/lib/data/helper/dataStackHelper.js.map +1 -1
  681. package/es/node_modules/echarts/lib/data/helper/dataValueHelper.js +4 -1
  682. package/es/node_modules/echarts/lib/data/helper/dataValueHelper.js.map +1 -1
  683. package/es/node_modules/echarts/lib/data/helper/dimensionHelper.js +8 -2
  684. package/es/node_modules/echarts/lib/data/helper/dimensionHelper.js.map +1 -1
  685. package/es/node_modules/echarts/lib/data/helper/sourceHelper.js +10 -2
  686. package/es/node_modules/echarts/lib/data/helper/sourceHelper.js.map +1 -1
  687. package/es/node_modules/echarts/lib/data/helper/sourceManager.js +20 -2
  688. package/es/node_modules/echarts/lib/data/helper/sourceManager.js.map +1 -1
  689. package/es/node_modules/echarts/lib/data/helper/transform.js +57 -5
  690. package/es/node_modules/echarts/lib/data/helper/transform.js.map +1 -1
  691. package/es/node_modules/echarts/lib/extension.js +3 -1
  692. package/es/node_modules/echarts/lib/extension.js.map +1 -1
  693. package/es/node_modules/echarts/lib/i18n/langEN.js +4 -2
  694. package/es/node_modules/echarts/lib/i18n/langEN.js.map +1 -1
  695. package/es/node_modules/echarts/lib/i18n/langZH.js +4 -2
  696. package/es/node_modules/echarts/lib/i18n/langZH.js.map +1 -1
  697. package/es/node_modules/echarts/lib/label/labelGuideHelper.js +6 -1
  698. package/es/node_modules/echarts/lib/label/labelGuideHelper.js.map +1 -1
  699. package/es/node_modules/echarts/lib/label/labelLayoutHelper.js +5 -1
  700. package/es/node_modules/echarts/lib/label/labelLayoutHelper.js.map +1 -1
  701. package/es/node_modules/echarts/lib/label/labelStyle.js +31 -1
  702. package/es/node_modules/echarts/lib/label/labelStyle.js.map +1 -1
  703. package/es/node_modules/echarts/lib/label/sectorLabel.js +4 -1
  704. package/es/node_modules/echarts/lib/label/sectorLabel.js.map +1 -1
  705. package/es/node_modules/echarts/lib/layout/barGrid.js +11 -2
  706. package/es/node_modules/echarts/lib/layout/barGrid.js.map +1 -1
  707. package/es/node_modules/echarts/lib/layout/points.js +3 -1
  708. package/es/node_modules/echarts/lib/layout/points.js.map +1 -1
  709. package/es/node_modules/echarts/lib/legacy/dataSelectAction.js +11 -1
  710. package/es/node_modules/echarts/lib/legacy/dataSelectAction.js.map +1 -1
  711. package/es/node_modules/echarts/lib/loading/default.js +3 -1
  712. package/es/node_modules/echarts/lib/loading/default.js.map +1 -1
  713. package/es/node_modules/echarts/lib/model/Component.js +5 -3
  714. package/es/node_modules/echarts/lib/model/Component.js.map +1 -1
  715. package/es/node_modules/echarts/lib/model/Global.js +106 -4
  716. package/es/node_modules/echarts/lib/model/Global.js.map +1 -1
  717. package/es/node_modules/echarts/lib/model/Model.js +4 -2
  718. package/es/node_modules/echarts/lib/model/Model.js.map +1 -1
  719. package/es/node_modules/echarts/lib/model/OptionManager.js +18 -4
  720. package/es/node_modules/echarts/lib/model/OptionManager.js.map +1 -1
  721. package/es/node_modules/echarts/lib/model/Series.js +10 -4
  722. package/es/node_modules/echarts/lib/model/Series.js.map +1 -1
  723. package/es/node_modules/echarts/lib/model/globalDefault.js +4 -2
  724. package/es/node_modules/echarts/lib/model/globalDefault.js.map +1 -1
  725. package/es/node_modules/echarts/lib/model/internalComponentCreator.js +10 -1
  726. package/es/node_modules/echarts/lib/model/internalComponentCreator.js.map +1 -1
  727. package/es/node_modules/echarts/lib/model/mixin/areaStyle.js +4 -1
  728. package/es/node_modules/echarts/lib/model/mixin/areaStyle.js.map +1 -1
  729. package/es/node_modules/echarts/lib/model/mixin/dataFormat.js +14 -1
  730. package/es/node_modules/echarts/lib/model/mixin/dataFormat.js.map +1 -1
  731. package/es/node_modules/echarts/lib/model/mixin/itemStyle.js +4 -1
  732. package/es/node_modules/echarts/lib/model/mixin/itemStyle.js.map +1 -1
  733. package/es/node_modules/echarts/lib/model/mixin/lineStyle.js +4 -1
  734. package/es/node_modules/echarts/lib/model/mixin/lineStyle.js.map +1 -1
  735. package/es/node_modules/echarts/lib/model/mixin/makeStyleMapper.js +3 -1
  736. package/es/node_modules/echarts/lib/model/mixin/makeStyleMapper.js.map +1 -1
  737. package/es/node_modules/echarts/lib/model/mixin/palette.js +4 -2
  738. package/es/node_modules/echarts/lib/model/mixin/palette.js.map +1 -1
  739. package/es/node_modules/echarts/lib/model/mixin/textStyle.js +4 -2
  740. package/es/node_modules/echarts/lib/model/mixin/textStyle.js.map +1 -1
  741. package/es/node_modules/echarts/lib/model/referHelper.js +25 -2
  742. package/es/node_modules/echarts/lib/model/referHelper.js.map +1 -1
  743. package/es/node_modules/echarts/lib/preprocessor/backwardCompat.js +37 -1
  744. package/es/node_modules/echarts/lib/preprocessor/backwardCompat.js.map +1 -1
  745. package/es/node_modules/echarts/lib/preprocessor/helper/compatStyle.js +32 -1
  746. package/es/node_modules/echarts/lib/preprocessor/helper/compatStyle.js.map +1 -1
  747. package/es/node_modules/echarts/lib/processor/dataFilter.js +3 -1
  748. package/es/node_modules/echarts/lib/processor/dataFilter.js.map +1 -1
  749. package/es/node_modules/echarts/lib/processor/dataSample.js +3 -1
  750. package/es/node_modules/echarts/lib/processor/dataSample.js.map +1 -1
  751. package/es/node_modules/echarts/lib/processor/dataStack.js +3 -1
  752. package/es/node_modules/echarts/lib/processor/dataStack.js.map +1 -1
  753. package/es/node_modules/echarts/lib/processor/negativeDataFilter.js +3 -1
  754. package/es/node_modules/echarts/lib/processor/negativeDataFilter.js.map +1 -1
  755. package/es/node_modules/echarts/lib/renderer/installCanvasRenderer.js +3 -1
  756. package/es/node_modules/echarts/lib/renderer/installCanvasRenderer.js.map +1 -1
  757. package/es/node_modules/echarts/lib/scale/Interval.js +4 -2
  758. package/es/node_modules/echarts/lib/scale/Interval.js.map +1 -1
  759. package/es/node_modules/echarts/lib/scale/Log.js +4 -2
  760. package/es/node_modules/echarts/lib/scale/Log.js.map +1 -1
  761. package/es/node_modules/echarts/lib/scale/Ordinal.js +4 -2
  762. package/es/node_modules/echarts/lib/scale/Ordinal.js.map +1 -1
  763. package/es/node_modules/echarts/lib/scale/Scale.js +4 -2
  764. package/es/node_modules/echarts/lib/scale/Scale.js.map +1 -1
  765. package/es/node_modules/echarts/lib/scale/Time.js +11 -3
  766. package/es/node_modules/echarts/lib/scale/Time.js.map +1 -1
  767. package/es/node_modules/echarts/lib/scale/helper.js +17 -2
  768. package/es/node_modules/echarts/lib/scale/helper.js.map +1 -1
  769. package/es/node_modules/echarts/lib/theme/dark.js +4 -2
  770. package/es/node_modules/echarts/lib/theme/dark.js.map +1 -1
  771. package/es/node_modules/echarts/lib/theme/light.js +4 -2
  772. package/es/node_modules/echarts/lib/theme/light.js.map +1 -1
  773. package/es/node_modules/echarts/lib/util/ECEventProcessor.js +3 -1
  774. package/es/node_modules/echarts/lib/util/ECEventProcessor.js.map +1 -1
  775. package/es/node_modules/echarts/lib/util/clazz.js +24 -2
  776. package/es/node_modules/echarts/lib/util/clazz.js.map +1 -1
  777. package/es/node_modules/echarts/lib/util/component.js +11 -2
  778. package/es/node_modules/echarts/lib/util/component.js.map +1 -1
  779. package/es/node_modules/echarts/lib/util/decal.js +14 -1
  780. package/es/node_modules/echarts/lib/util/decal.js.map +1 -1
  781. package/es/node_modules/echarts/lib/util/event.js +3 -1
  782. package/es/node_modules/echarts/lib/util/event.js.map +1 -1
  783. package/es/node_modules/echarts/lib/util/format.js +12 -2
  784. package/es/node_modules/echarts/lib/util/format.js.map +1 -1
  785. package/es/node_modules/echarts/lib/util/graphic.js +72 -23
  786. package/es/node_modules/echarts/lib/util/graphic.js.map +1 -1
  787. package/es/node_modules/echarts/lib/util/innerStore.js +4 -1
  788. package/es/node_modules/echarts/lib/util/innerStore.js.map +1 -1
  789. package/es/node_modules/echarts/lib/util/layout.js +12 -2
  790. package/es/node_modules/echarts/lib/util/layout.js.map +1 -1
  791. package/es/node_modules/echarts/lib/util/log.js +60 -1
  792. package/es/node_modules/echarts/lib/util/log.js.map +1 -1
  793. package/es/node_modules/echarts/lib/util/model.js +48 -2
  794. package/es/node_modules/echarts/lib/util/model.js.map +1 -1
  795. package/es/node_modules/echarts/lib/util/number.js +23 -1
  796. package/es/node_modules/echarts/lib/util/number.js.map +1 -1
  797. package/es/node_modules/echarts/lib/util/shape/sausage.js +4 -2
  798. package/es/node_modules/echarts/lib/util/shape/sausage.js.map +1 -1
  799. package/es/node_modules/echarts/lib/util/states.js +59 -1
  800. package/es/node_modules/echarts/lib/util/states.js.map +1 -1
  801. package/es/node_modules/echarts/lib/util/styleCompat.js +4 -1
  802. package/es/node_modules/echarts/lib/util/styleCompat.js.map +1 -1
  803. package/es/node_modules/echarts/lib/util/symbol.js +6 -1
  804. package/es/node_modules/echarts/lib/util/symbol.js.map +1 -1
  805. package/es/node_modules/echarts/lib/util/throttle.js +5 -1
  806. package/es/node_modules/echarts/lib/util/throttle.js.map +1 -1
  807. package/es/node_modules/echarts/lib/util/time.js +33 -1
  808. package/es/node_modules/echarts/lib/util/time.js.map +1 -1
  809. package/es/node_modules/echarts/lib/util/types.js +11 -1
  810. package/es/node_modules/echarts/lib/util/types.js.map +1 -1
  811. package/es/node_modules/echarts/lib/util/vendor.js +3 -1
  812. package/es/node_modules/echarts/lib/util/vendor.js.map +1 -1
  813. package/es/node_modules/echarts/lib/view/Chart.js +16 -4
  814. package/es/node_modules/echarts/lib/view/Chart.js.map +1 -1
  815. package/es/node_modules/echarts/lib/view/Component.js +4 -2
  816. package/es/node_modules/echarts/lib/view/Component.js.map +1 -1
  817. package/es/node_modules/echarts/lib/visual/LegendVisualProvider.js +4 -2
  818. package/es/node_modules/echarts/lib/visual/LegendVisualProvider.js.map +1 -1
  819. package/es/node_modules/echarts/lib/visual/VisualMapping.js +5 -3
  820. package/es/node_modules/echarts/lib/visual/VisualMapping.js.map +1 -1
  821. package/es/node_modules/echarts/lib/visual/decal.js +3 -1
  822. package/es/node_modules/echarts/lib/visual/decal.js.map +1 -1
  823. package/es/node_modules/echarts/lib/visual/helper.js +17 -1
  824. package/es/node_modules/echarts/lib/visual/helper.js.map +1 -1
  825. package/es/node_modules/echarts/lib/visual/style.js +10 -2
  826. package/es/node_modules/echarts/lib/visual/style.js.map +1 -1
  827. package/es/node_modules/echarts/lib/visual/symbol.js +4 -1
  828. package/es/node_modules/echarts/lib/visual/symbol.js.map +1 -1
  829. package/es/node_modules/echarts/lib/visual/visualDefault.js +4 -2
  830. package/es/node_modules/echarts/lib/visual/visualDefault.js.map +1 -1
  831. package/es/node_modules/echarts/lib/visual/visualSolution.js +5 -1
  832. package/es/node_modules/echarts/lib/visual/visualSolution.js.map +1 -1
  833. package/es/node_modules/echarts/node_modules/tslib/tslib.es6.js +3 -1
  834. package/es/node_modules/echarts/node_modules/tslib/tslib.es6.js.map +1 -1
  835. package/es/node_modules/resize-detector/esm/index.js +4 -1
  836. package/es/node_modules/resize-detector/esm/index.js.map +1 -1
  837. package/es/node_modules/zrender/lib/Element.js +35 -2
  838. package/es/node_modules/zrender/lib/Element.js.map +1 -1
  839. package/es/node_modules/zrender/lib/Handler.js +4 -2
  840. package/es/node_modules/zrender/lib/Handler.js.map +1 -1
  841. package/es/node_modules/zrender/lib/Storage.js +4 -2
  842. package/es/node_modules/zrender/lib/Storage.js.map +1 -1
  843. package/es/node_modules/zrender/lib/animation/Animation.js +5 -2
  844. package/es/node_modules/zrender/lib/animation/Animation.js.map +1 -1
  845. package/es/node_modules/zrender/lib/animation/Animator.js +4 -1
  846. package/es/node_modules/zrender/lib/animation/Animator.js.map +1 -1
  847. package/es/node_modules/zrender/lib/animation/Clip.js +4 -2
  848. package/es/node_modules/zrender/lib/animation/Clip.js.map +1 -1
  849. package/es/node_modules/zrender/lib/animation/cubicEasing.js +3 -1
  850. package/es/node_modules/zrender/lib/animation/cubicEasing.js.map +1 -1
  851. package/es/node_modules/zrender/lib/animation/easing.js +4 -2
  852. package/es/node_modules/zrender/lib/animation/easing.js.map +1 -1
  853. package/es/node_modules/zrender/lib/animation/requestAnimationFrame.js +4 -2
  854. package/es/node_modules/zrender/lib/animation/requestAnimationFrame.js.map +1 -1
  855. package/es/node_modules/zrender/lib/canvas/Layer.js +4 -2
  856. package/es/node_modules/zrender/lib/canvas/Layer.js.map +1 -1
  857. package/es/node_modules/zrender/lib/canvas/Painter.js +10 -2
  858. package/es/node_modules/zrender/lib/canvas/Painter.js.map +1 -1
  859. package/es/node_modules/zrender/lib/canvas/dashStyle.js +4 -1
  860. package/es/node_modules/zrender/lib/canvas/dashStyle.js.map +1 -1
  861. package/es/node_modules/zrender/lib/canvas/graphic.js +5 -1
  862. package/es/node_modules/zrender/lib/canvas/graphic.js.map +1 -1
  863. package/es/node_modules/zrender/lib/canvas/helper.js +7 -1
  864. package/es/node_modules/zrender/lib/canvas/helper.js.map +1 -1
  865. package/es/node_modules/zrender/lib/config.js +7 -1
  866. package/es/node_modules/zrender/lib/config.js.map +1 -1
  867. package/es/node_modules/zrender/lib/contain/arc.js +3 -1
  868. package/es/node_modules/zrender/lib/contain/arc.js.map +1 -1
  869. package/es/node_modules/zrender/lib/contain/cubic.js +3 -1
  870. package/es/node_modules/zrender/lib/contain/cubic.js.map +1 -1
  871. package/es/node_modules/zrender/lib/contain/line.js +3 -1
  872. package/es/node_modules/zrender/lib/contain/line.js.map +1 -1
  873. package/es/node_modules/zrender/lib/contain/path.js +4 -1
  874. package/es/node_modules/zrender/lib/contain/path.js.map +1 -1
  875. package/es/node_modules/zrender/lib/contain/polygon.js +3 -1
  876. package/es/node_modules/zrender/lib/contain/polygon.js.map +1 -1
  877. package/es/node_modules/zrender/lib/contain/quadratic.js +3 -1
  878. package/es/node_modules/zrender/lib/contain/quadratic.js.map +1 -1
  879. package/es/node_modules/zrender/lib/contain/text.js +10 -1
  880. package/es/node_modules/zrender/lib/contain/text.js.map +1 -1
  881. package/es/node_modules/zrender/lib/contain/util.js +3 -1
  882. package/es/node_modules/zrender/lib/contain/util.js.map +1 -1
  883. package/es/node_modules/zrender/lib/contain/windingLine.js +3 -1
  884. package/es/node_modules/zrender/lib/contain/windingLine.js.map +1 -1
  885. package/es/node_modules/zrender/lib/core/BoundingRect.js +4 -2
  886. package/es/node_modules/zrender/lib/core/BoundingRect.js.map +1 -1
  887. package/es/node_modules/zrender/lib/core/Eventful.js +4 -2
  888. package/es/node_modules/zrender/lib/core/Eventful.js.map +1 -1
  889. package/es/node_modules/zrender/lib/core/GestureMgr.js +3 -1
  890. package/es/node_modules/zrender/lib/core/GestureMgr.js.map +1 -1
  891. package/es/node_modules/zrender/lib/core/LRU.js +6 -2
  892. package/es/node_modules/zrender/lib/core/LRU.js.map +1 -1
  893. package/es/node_modules/zrender/lib/core/OrientedBoundingRect.js +4 -2
  894. package/es/node_modules/zrender/lib/core/OrientedBoundingRect.js.map +1 -1
  895. package/es/node_modules/zrender/lib/core/PathProxy.js +5 -2
  896. package/es/node_modules/zrender/lib/core/PathProxy.js.map +1 -1
  897. package/es/node_modules/zrender/lib/core/Point.js +4 -2
  898. package/es/node_modules/zrender/lib/core/Point.js.map +1 -1
  899. package/es/node_modules/zrender/lib/core/Transformable.js +5 -1
  900. package/es/node_modules/zrender/lib/core/Transformable.js.map +1 -1
  901. package/es/node_modules/zrender/lib/core/WeakMap.js +4 -2
  902. package/es/node_modules/zrender/lib/core/WeakMap.js.map +1 -1
  903. package/es/node_modules/zrender/lib/core/bbox.js +6 -1
  904. package/es/node_modules/zrender/lib/core/bbox.js.map +1 -1
  905. package/es/node_modules/zrender/lib/core/curve.js +16 -1
  906. package/es/node_modules/zrender/lib/core/curve.js.map +1 -1
  907. package/es/node_modules/zrender/lib/core/dom.js +5 -1
  908. package/es/node_modules/zrender/lib/core/dom.js.map +1 -1
  909. package/es/node_modules/zrender/lib/core/env.js +4 -2
  910. package/es/node_modules/zrender/lib/core/env.js.map +1 -1
  911. package/es/node_modules/zrender/lib/core/event.js +9 -1
  912. package/es/node_modules/zrender/lib/core/event.js.map +1 -1
  913. package/es/node_modules/zrender/lib/core/fourPointsTransform.js +3 -1
  914. package/es/node_modules/zrender/lib/core/fourPointsTransform.js.map +1 -1
  915. package/es/node_modules/zrender/lib/core/matrix.js +10 -1
  916. package/es/node_modules/zrender/lib/core/matrix.js.map +1 -1
  917. package/es/node_modules/zrender/lib/core/platform.js +7 -1
  918. package/es/node_modules/zrender/lib/core/platform.js.map +1 -1
  919. package/es/node_modules/zrender/lib/core/timsort.js +3 -1
  920. package/es/node_modules/zrender/lib/core/timsort.js.map +1 -1
  921. package/es/node_modules/zrender/lib/core/util.js +53 -1
  922. package/es/node_modules/zrender/lib/core/util.js.map +1 -1
  923. package/es/node_modules/zrender/lib/core/vector.js +19 -1
  924. package/es/node_modules/zrender/lib/core/vector.js.map +1 -1
  925. package/es/node_modules/zrender/lib/dom/HandlerProxy.js +4 -2
  926. package/es/node_modules/zrender/lib/dom/HandlerProxy.js.map +1 -1
  927. package/es/node_modules/zrender/lib/graphic/CompoundPath.js +4 -2
  928. package/es/node_modules/zrender/lib/graphic/CompoundPath.js.map +1 -1
  929. package/es/node_modules/zrender/lib/graphic/Displayable.js +6 -2
  930. package/es/node_modules/zrender/lib/graphic/Displayable.js.map +1 -1
  931. package/es/node_modules/zrender/lib/graphic/Gradient.js +4 -2
  932. package/es/node_modules/zrender/lib/graphic/Gradient.js.map +1 -1
  933. package/es/node_modules/zrender/lib/graphic/Group.js +9 -2
  934. package/es/node_modules/zrender/lib/graphic/Group.js.map +1 -1
  935. package/es/node_modules/zrender/lib/graphic/Image.js +6 -2
  936. package/es/node_modules/zrender/lib/graphic/Image.js.map +1 -1
  937. package/es/node_modules/zrender/lib/graphic/IncrementalDisplayable.js +4 -2
  938. package/es/node_modules/zrender/lib/graphic/IncrementalDisplayable.js.map +1 -1
  939. package/es/node_modules/zrender/lib/graphic/LinearGradient.js +4 -2
  940. package/es/node_modules/zrender/lib/graphic/LinearGradient.js.map +1 -1
  941. package/es/node_modules/zrender/lib/graphic/Path.js +6 -2
  942. package/es/node_modules/zrender/lib/graphic/Path.js.map +1 -1
  943. package/es/node_modules/zrender/lib/graphic/RadialGradient.js +4 -2
  944. package/es/node_modules/zrender/lib/graphic/RadialGradient.js.map +1 -1
  945. package/es/node_modules/zrender/lib/graphic/TSpan.js +5 -2
  946. package/es/node_modules/zrender/lib/graphic/TSpan.js.map +1 -1
  947. package/es/node_modules/zrender/lib/graphic/Text.js +11 -2
  948. package/es/node_modules/zrender/lib/graphic/Text.js.map +1 -1
  949. package/es/node_modules/zrender/lib/graphic/constants.js +5 -1
  950. package/es/node_modules/zrender/lib/graphic/constants.js.map +1 -1
  951. package/es/node_modules/zrender/lib/graphic/helper/image.js +5 -1
  952. package/es/node_modules/zrender/lib/graphic/helper/image.js.map +1 -1
  953. package/es/node_modules/zrender/lib/graphic/helper/parseText.js +6 -1
  954. package/es/node_modules/zrender/lib/graphic/helper/parseText.js.map +1 -1
  955. package/es/node_modules/zrender/lib/graphic/helper/poly.js +3 -1
  956. package/es/node_modules/zrender/lib/graphic/helper/poly.js.map +1 -1
  957. package/es/node_modules/zrender/lib/graphic/helper/roundRect.js +3 -1
  958. package/es/node_modules/zrender/lib/graphic/helper/roundRect.js.map +1 -1
  959. package/es/node_modules/zrender/lib/graphic/helper/roundSector.js +3 -1
  960. package/es/node_modules/zrender/lib/graphic/helper/roundSector.js.map +1 -1
  961. package/es/node_modules/zrender/lib/graphic/helper/smoothBezier.js +3 -1
  962. package/es/node_modules/zrender/lib/graphic/helper/smoothBezier.js.map +1 -1
  963. package/es/node_modules/zrender/lib/graphic/helper/subPixelOptimize.js +5 -1
  964. package/es/node_modules/zrender/lib/graphic/helper/subPixelOptimize.js.map +1 -1
  965. package/es/node_modules/zrender/lib/graphic/shape/Arc.js +5 -2
  966. package/es/node_modules/zrender/lib/graphic/shape/Arc.js.map +1 -1
  967. package/es/node_modules/zrender/lib/graphic/shape/BezierCurve.js +5 -2
  968. package/es/node_modules/zrender/lib/graphic/shape/BezierCurve.js.map +1 -1
  969. package/es/node_modules/zrender/lib/graphic/shape/Circle.js +5 -2
  970. package/es/node_modules/zrender/lib/graphic/shape/Circle.js.map +1 -1
  971. package/es/node_modules/zrender/lib/graphic/shape/Ellipse.js +5 -2
  972. package/es/node_modules/zrender/lib/graphic/shape/Ellipse.js.map +1 -1
  973. package/es/node_modules/zrender/lib/graphic/shape/Line.js +5 -2
  974. package/es/node_modules/zrender/lib/graphic/shape/Line.js.map +1 -1
  975. package/es/node_modules/zrender/lib/graphic/shape/Polygon.js +5 -2
  976. package/es/node_modules/zrender/lib/graphic/shape/Polygon.js.map +1 -1
  977. package/es/node_modules/zrender/lib/graphic/shape/Polyline.js +5 -2
  978. package/es/node_modules/zrender/lib/graphic/shape/Polyline.js.map +1 -1
  979. package/es/node_modules/zrender/lib/graphic/shape/Rect.js +5 -2
  980. package/es/node_modules/zrender/lib/graphic/shape/Rect.js.map +1 -1
  981. package/es/node_modules/zrender/lib/graphic/shape/Ring.js +5 -2
  982. package/es/node_modules/zrender/lib/graphic/shape/Ring.js.map +1 -1
  983. package/es/node_modules/zrender/lib/graphic/shape/Sector.js +5 -2
  984. package/es/node_modules/zrender/lib/graphic/shape/Sector.js.map +1 -1
  985. package/es/node_modules/zrender/lib/mixin/Draggable.js +4 -2
  986. package/es/node_modules/zrender/lib/mixin/Draggable.js.map +1 -1
  987. package/es/node_modules/zrender/lib/svg/helper.js +8 -2
  988. package/es/node_modules/zrender/lib/svg/helper.js.map +1 -1
  989. package/es/node_modules/zrender/lib/tool/color.js +10 -1
  990. package/es/node_modules/zrender/lib/tool/color.js.map +1 -1
  991. package/es/node_modules/zrender/lib/tool/parseSVG.js +11 -2
  992. package/es/node_modules/zrender/lib/tool/parseSVG.js.map +1 -1
  993. package/es/node_modules/zrender/lib/tool/parseXML.js +3 -1
  994. package/es/node_modules/zrender/lib/tool/parseXML.js.map +1 -1
  995. package/es/node_modules/zrender/lib/tool/path.js +5 -1
  996. package/es/node_modules/zrender/lib/tool/path.js.map +1 -1
  997. package/es/node_modules/zrender/lib/tool/transformPath.js +3 -1
  998. package/es/node_modules/zrender/lib/tool/transformPath.js.map +1 -1
  999. package/es/node_modules/zrender/lib/zrender.js +9 -1
  1000. package/es/node_modules/zrender/lib/zrender.js.map +1 -1
  1001. package/es/node_modules/zrender/node_modules/tslib/tslib.es6.js +3 -1
  1002. package/es/node_modules/zrender/node_modules/tslib/tslib.es6.js.map +1 -1
  1003. package/es/setting/page-config/PageConfig.js +10 -21
  1004. package/es/setting/page-config/PageConfig.js.map +1 -1
  1005. package/es/setting/page-config/PageConfig.vue_vue_type_style_index_0_scoped_true_lang.js +4 -2
  1006. package/es/setting/page-config/PageConfig.vue_vue_type_style_index_0_scoped_true_lang.js.map +1 -1
  1007. package/es/setting/page-config/index.js +7 -2
  1008. package/es/setting/page-config/index.js.map +1 -1
  1009. package/es/setting/page-config/props.js +4 -1
  1010. package/es/setting/page-config/props.js.map +1 -1
  1011. package/es/setting/provider-config/ProviderConfig.js +51 -24
  1012. package/es/setting/provider-config/ProviderConfig.js.map +1 -1
  1013. package/es/setting/provider-config/index.js +7 -2
  1014. package/es/setting/provider-config/index.js.map +1 -1
  1015. package/es/setting/provider-config/props.js +6 -2
  1016. package/es/setting/provider-config/props.js.map +1 -1
  1017. package/es/setting/renderer/Renderer.js +19 -0
  1018. package/es/setting/renderer/Renderer.js.map +1 -0
  1019. package/es/setting/renderer/index.js +11 -0
  1020. package/es/setting/renderer/index.js.map +1 -0
  1021. package/es/setting/renderer/props.js +10 -0
  1022. package/es/setting/renderer/props.js.map +1 -0
  1023. package/es/table/table/Table.js +101 -42
  1024. package/es/table/table/Table.js.map +1 -1
  1025. package/es/table/table/Table.vue_vue_type_style_index_0_scoped_true_lang.js +4 -36
  1026. package/es/table/table/Table.vue_vue_type_style_index_0_scoped_true_lang.js.map +1 -1
  1027. package/es/table/table/Table.vue_vue_type_style_index_1_lang.js +4 -2
  1028. package/es/table/table/Table.vue_vue_type_style_index_1_lang.js.map +1 -1
  1029. package/es/table/table/index.js +8 -2
  1030. package/es/table/table/index.js.map +1 -1
  1031. package/es/table/table/props.js +24 -24
  1032. package/es/table/table/props.js.map +1 -1
  1033. package/es/text/list/List.js +17 -27
  1034. package/es/text/list/List.js.map +1 -1
  1035. package/es/text/list/List.vue_vue_type_style_index_0_scoped_true_lang.js +4 -109
  1036. package/es/text/list/List.vue_vue_type_style_index_0_scoped_true_lang.js.map +1 -1
  1037. package/es/text/list/List.vue_vue_type_style_index_1_lang.js +4 -2
  1038. package/es/text/list/List.vue_vue_type_style_index_1_lang.js.map +1 -1
  1039. package/es/text/list/index.js +8 -2
  1040. package/es/text/list/index.js.map +1 -1
  1041. package/es/text/list/props.js +8 -22
  1042. package/es/text/list/props.js.map +1 -1
  1043. package/es/text/proportion/Proportion.js +49 -44
  1044. package/es/text/proportion/Proportion.js.map +1 -1
  1045. package/es/text/proportion/Proportion.vue_vue_type_style_index_0_scoped_true_lang.js +4 -2
  1046. package/es/text/proportion/Proportion.vue_vue_type_style_index_0_scoped_true_lang.js.map +1 -1
  1047. package/es/text/proportion/index.js +8 -2
  1048. package/es/text/proportion/index.js.map +1 -1
  1049. package/es/text/proportion/props.js +11 -23
  1050. package/es/text/proportion/props.js.map +1 -1
  1051. package/es/text/scroll-text/ScrollText.js +4 -2
  1052. package/es/text/scroll-text/ScrollText.js.map +1 -1
  1053. package/es/text/scroll-text/ScrollText.vue_vue_type_style_index_0_scoped_true_lang.js +4 -2
  1054. package/es/text/scroll-text/ScrollText.vue_vue_type_style_index_0_scoped_true_lang.js.map +1 -1
  1055. package/es/text/scroll-text/index.js +4 -1
  1056. package/es/text/scroll-text/index.js.map +1 -1
  1057. package/es/text/text/Text.js +51 -30
  1058. package/es/text/text/Text.js.map +1 -1
  1059. package/es/text/text/Text.vue_vue_type_style_index_0_scoped_true_lang.js +4 -2
  1060. package/es/text/text/Text.vue_vue_type_style_index_0_scoped_true_lang.js.map +1 -1
  1061. package/es/text/text/index.js +8 -2
  1062. package/es/text/text/index.js.map +1 -1
  1063. package/es/text/text/props.js +13 -24
  1064. package/es/text/text/props.js.map +1 -1
  1065. package/es/text/time-display/TimeDisplay.js +8 -20
  1066. package/es/text/time-display/TimeDisplay.js.map +1 -1
  1067. package/es/text/time-display/TimeDisplay.vue_vue_type_style_index_0_scoped_true_lang.js +4 -2
  1068. package/es/text/time-display/TimeDisplay.vue_vue_type_style_index_0_scoped_true_lang.js.map +1 -1
  1069. package/es/text/time-display/index.js +7 -2
  1070. package/es/text/time-display/index.js.map +1 -1
  1071. package/es/text/time-display/props.js +7 -22
  1072. package/es/text/time-display/props.js.map +1 -1
  1073. package/lib/_utils/constant.js +7 -3
  1074. package/lib/_utils/constant.js.map +1 -1
  1075. package/lib/_utils/hooks/useDownloadFile.js +2 -2
  1076. package/lib/_utils/hooks/useDownloadFile.js.map +1 -1
  1077. package/lib/_utils/hooks/useEmitEvent.js +3 -3
  1078. package/lib/_utils/hooks/useEmitEvent.js.map +1 -1
  1079. package/lib/_utils/hooks/useHrefParamsToGlobalVariables.js +17 -0
  1080. package/lib/_utils/hooks/useHrefParamsToGlobalVariables.js.map +1 -0
  1081. package/lib/_utils/hooks/useImagePath.js +2 -2
  1082. package/lib/_utils/hooks/useIndicatorData.js +206 -0
  1083. package/lib/_utils/hooks/useIndicatorData.js.map +1 -0
  1084. package/lib/_utils/hooks/useOnEvent.js +3 -3
  1085. package/lib/_utils/hooks/usePageUrl.js +2 -2
  1086. package/lib/_utils/hooks/usePickComponentStyle.js +9 -4
  1087. package/lib/_utils/hooks/usePickComponentStyle.js.map +1 -1
  1088. package/lib/_utils/hooks/useRequestData.js +20 -33
  1089. package/lib/_utils/hooks/useRequestData.js.map +1 -1
  1090. package/lib/_utils/hooks/useRequestDiagramData.js +6 -22
  1091. package/lib/_utils/hooks/useRequestDiagramData.js.map +1 -1
  1092. package/lib/_utils/hooks/useTransformChartDataByAttrKey.js +1 -1
  1093. package/lib/_utils/hooks/useTransformChartDataByAttrKey.js.map +1 -1
  1094. package/lib/_utils/hooks/useTransformChartDataByAttrValue.js +3 -19
  1095. package/lib/_utils/hooks/useTransformChartDataByAttrValue.js.map +1 -1
  1096. package/lib/_utils/hooks/useValueFormatter.js +13 -6
  1097. package/lib/_utils/hooks/useValueFormatter.js.map +1 -1
  1098. package/lib/_utils/hooks/useVariablesInText.js +8 -25
  1099. package/lib/_utils/hooks/useVariablesInText.js.map +1 -1
  1100. package/lib/_utils/props.js +1 -1
  1101. package/lib/_utils/props.js.map +1 -1
  1102. package/lib/_utils/request.js +4 -4
  1103. package/lib/_utils/request.js.map +1 -1
  1104. package/lib/_utils/util.js.map +1 -1
  1105. package/lib/_utils/withInstall.js +1 -0
  1106. package/lib/_utils/withInstall.js.map +1 -1
  1107. package/lib/_virtual/_commonjsHelpers.js +7 -0
  1108. package/lib/_virtual/_commonjsHelpers.js.map +1 -0
  1109. package/lib/_virtual/index.js +5 -0
  1110. package/lib/_virtual/index.js.map +1 -0
  1111. package/lib/_virtual/plugin-vue_export-helper.js +2 -2
  1112. package/lib/_virtual/plugin-vue_export-helper.js.map +1 -1
  1113. package/lib/assets/border-title-decoration-left.js +2 -2
  1114. package/lib/assets/border-title-decoration-left.js.map +1 -1
  1115. package/lib/assets/border-title-decoration-right.js +2 -2
  1116. package/lib/assets/border-title-decoration-right.js.map +1 -1
  1117. package/lib/assets/go-down.js +5 -0
  1118. package/lib/assets/go-down.js.map +1 -0
  1119. package/lib/assets/go-up.js +5 -0
  1120. package/lib/assets/go-up.js.map +1 -0
  1121. package/lib/common/Skeleton/Skeleton.js +19 -3
  1122. package/lib/common/Skeleton/Skeleton.js.map +1 -1
  1123. package/lib/common/Skeleton/index.js +2 -2
  1124. package/lib/common/echarts/ECharts.js +77 -62
  1125. package/lib/common/echarts/ECharts.js.map +1 -1
  1126. package/lib/common/echarts/composables/api.js.map +1 -1
  1127. package/lib/common/echarts/composables/autoresize.js +3 -3
  1128. package/lib/common/echarts/composables/autoresize.js.map +1 -1
  1129. package/lib/common/echarts/composables/loading.js +5 -18
  1130. package/lib/common/echarts/composables/loading.js.map +1 -1
  1131. package/lib/common/echarts/index.js +2 -2
  1132. package/lib/common/echarts/style.js +2 -2
  1133. package/lib/common/echarts/utils.js.map +1 -1
  1134. package/lib/common/spin/Spin.js +7 -7
  1135. package/lib/common/spin/Spin.js.map +1 -1
  1136. package/lib/common/spin/Spin.vue_vue_type_style_index_0_lang.js +2 -2
  1137. package/lib/common/spin/index.js +2 -2
  1138. package/lib/components.js +103 -98
  1139. package/lib/components.js.map +1 -1
  1140. package/lib/container/border/Border.js +75 -82
  1141. package/lib/container/border/Border.js.map +1 -1
  1142. package/lib/container/border/Border.vue_vue_type_style_index_0_scoped_true_lang.js +2 -2
  1143. package/lib/container/border/index.js +5 -5
  1144. package/lib/container/border/index.js.map +1 -1
  1145. package/lib/container/border/props.js +12 -23
  1146. package/lib/container/border/props.js.map +1 -1
  1147. package/lib/container/modal/Modal.js +16 -32
  1148. package/lib/container/modal/Modal.js.map +1 -1
  1149. package/lib/container/modal/Modal.vue_vue_type_style_index_0_scoped_true_lang.js +2 -2
  1150. package/lib/container/modal/Modal.vue_vue_type_style_index_1_lang.js +2 -2
  1151. package/lib/container/modal/index.js +5 -5
  1152. package/lib/container/modal/index.js.map +1 -1
  1153. package/lib/container/modal/props.js +1 -1
  1154. package/lib/container/modal/props.js.map +1 -1
  1155. package/lib/container/tabs/Tabs.js +110 -0
  1156. package/lib/container/tabs/Tabs.js.map +1 -0
  1157. package/lib/container/tabs/Tabs.vue_vue_type_style_index_0_scoped_true_lang.js +5 -0
  1158. package/lib/container/tabs/Tabs.vue_vue_type_style_index_0_scoped_true_lang.js.map +1 -0
  1159. package/lib/container/tabs/index.js +12 -0
  1160. package/lib/container/tabs/index.js.map +1 -0
  1161. package/lib/container/tabs/props.js +38 -0
  1162. package/lib/container/tabs/props.js.map +1 -0
  1163. package/lib/control/button/Button.js +54 -35
  1164. package/lib/control/button/Button.js.map +1 -1
  1165. package/lib/control/button/Button.vue_vue_type_style_index_0_lang.js +5 -0
  1166. package/lib/control/button/Button.vue_vue_type_style_index_0_lang.js.map +1 -0
  1167. package/lib/control/button/index.js +5 -5
  1168. package/lib/control/button/index.js.map +1 -1
  1169. package/lib/control/button/props.js +13 -23
  1170. package/lib/control/button/props.js.map +1 -1
  1171. package/lib/control/date-picker/DatePicker.js +20 -36
  1172. package/lib/control/date-picker/DatePicker.js.map +1 -1
  1173. package/lib/control/date-picker/DatePicker.vue_vue_type_style_index_0_scoped_true_lang.js +2 -2
  1174. package/lib/control/date-picker/DatePicker.vue_vue_type_style_index_1_lang.js +2 -2
  1175. package/lib/control/date-picker/index.js +5 -5
  1176. package/lib/control/date-picker/index.js.map +1 -1
  1177. package/lib/control/date-picker/props.js +8 -28
  1178. package/lib/control/date-picker/props.js.map +1 -1
  1179. package/lib/control/input/Input.js +11 -25
  1180. package/lib/control/input/Input.js.map +1 -1
  1181. package/lib/control/input/Input.vue_vue_type_style_index_0_scoped_true_lang.js +2 -2
  1182. package/lib/control/input/index.js +5 -5
  1183. package/lib/control/input/index.js.map +1 -1
  1184. package/lib/control/input/props.js +4 -22
  1185. package/lib/control/input/props.js.map +1 -1
  1186. package/lib/control/range-picker/RangePicker.js +21 -37
  1187. package/lib/control/range-picker/RangePicker.js.map +1 -1
  1188. package/lib/control/range-picker/RangePicker.vue_vue_type_style_index_0_scoped_true_lang.js +2 -2
  1189. package/lib/control/range-picker/RangePicker.vue_vue_type_style_index_1_lang.js +2 -2
  1190. package/lib/control/range-picker/index.js +5 -5
  1191. package/lib/control/range-picker/index.js.map +1 -1
  1192. package/lib/control/range-picker/props.js +4 -22
  1193. package/lib/control/range-picker/props.js.map +1 -1
  1194. package/lib/control/select/Select.js +14 -28
  1195. package/lib/control/select/Select.js.map +1 -1
  1196. package/lib/control/select/Select.vue_vue_type_style_index_0_scoped_true_lang.js +2 -2
  1197. package/lib/control/select/Select.vue_vue_type_style_index_1_lang.js +2 -2
  1198. package/lib/control/select/index.js +5 -5
  1199. package/lib/control/select/index.js.map +1 -1
  1200. package/lib/control/select/props.js +4 -22
  1201. package/lib/control/select/props.js.map +1 -1
  1202. package/lib/graph/bar/Bar.js +58 -70
  1203. package/lib/graph/bar/Bar.js.map +1 -1
  1204. package/lib/graph/bar/Bar.vue_vue_type_style_index_0_lang.js +2 -2
  1205. package/lib/graph/bar/index.js +5 -5
  1206. package/lib/graph/bar/index.js.map +1 -1
  1207. package/lib/graph/bar/props.js +12 -28
  1208. package/lib/graph/bar/props.js.map +1 -1
  1209. package/lib/graph/combo-graph/ComboGraph.js +112 -55
  1210. package/lib/graph/combo-graph/ComboGraph.js.map +1 -1
  1211. package/lib/graph/combo-graph/ComboGraph.vue_vue_type_style_index_0_lang.js +5 -0
  1212. package/lib/graph/combo-graph/ComboGraph.vue_vue_type_style_index_0_lang.js.map +1 -0
  1213. package/lib/graph/combo-graph/index.js +5 -5
  1214. package/lib/graph/combo-graph/index.js.map +1 -1
  1215. package/lib/graph/combo-graph/props.js +16 -25
  1216. package/lib/graph/combo-graph/props.js.map +1 -1
  1217. package/lib/graph/custom-graph/CustomGraph.js +20 -36
  1218. package/lib/graph/custom-graph/CustomGraph.js.map +1 -1
  1219. package/lib/graph/custom-graph/index.js +5 -5
  1220. package/lib/graph/custom-graph/index.js.map +1 -1
  1221. package/lib/graph/custom-graph/props.js +4 -22
  1222. package/lib/graph/custom-graph/props.js.map +1 -1
  1223. package/lib/graph/line/Line.js +113 -56
  1224. package/lib/graph/line/Line.js.map +1 -1
  1225. package/lib/graph/line/Line.vue_vue_type_style_index_0_lang.js +5 -0
  1226. package/lib/graph/line/Line.vue_vue_type_style_index_0_lang.js.map +1 -0
  1227. package/lib/graph/line/index.js +5 -5
  1228. package/lib/graph/line/index.js.map +1 -1
  1229. package/lib/graph/line/props.js +17 -25
  1230. package/lib/graph/line/props.js.map +1 -1
  1231. package/lib/graph/pie/Pie.js +105 -50
  1232. package/lib/graph/pie/Pie.js.map +1 -1
  1233. package/lib/graph/pie/Pie.vue_vue_type_style_index_0_lang.js +5 -0
  1234. package/lib/graph/pie/Pie.vue_vue_type_style_index_0_lang.js.map +1 -0
  1235. package/lib/graph/pie/index.js +5 -5
  1236. package/lib/graph/pie/index.js.map +1 -1
  1237. package/lib/graph/pie/props.js +16 -25
  1238. package/lib/graph/pie/props.js.map +1 -1
  1239. package/lib/graph/scatter/Scatter.js +98 -47
  1240. package/lib/graph/scatter/Scatter.js.map +1 -1
  1241. package/lib/graph/scatter/Scatter.vue_vue_type_style_index_0_lang.js +5 -0
  1242. package/lib/graph/scatter/Scatter.vue_vue_type_style_index_0_lang.js.map +1 -0
  1243. package/lib/graph/scatter/index.js +5 -5
  1244. package/lib/graph/scatter/index.js.map +1 -1
  1245. package/lib/graph/scatter/props.js +16 -25
  1246. package/lib/graph/scatter/props.js.map +1 -1
  1247. package/lib/index.js +104 -99
  1248. package/lib/index.js.map +1 -1
  1249. package/lib/map/map/Map.js +23 -37
  1250. package/lib/map/map/Map.js.map +1 -1
  1251. package/lib/map/map/Map.vue_vue_type_style_index_0_scoped_true_lang.js +2 -2
  1252. package/lib/map/map/index.js +5 -5
  1253. package/lib/map/map/index.js.map +1 -1
  1254. package/lib/map/map/props.js +4 -22
  1255. package/lib/map/map/props.js.map +1 -1
  1256. package/lib/media/image/Image.js +28 -31
  1257. package/lib/media/image/Image.js.map +1 -1
  1258. package/lib/media/image/Image.vue_vue_type_style_index_0_scoped_true_lang.js +2 -2
  1259. package/lib/media/image/index.js +5 -5
  1260. package/lib/media/image/index.js.map +1 -1
  1261. package/lib/media/image/props.js +6 -24
  1262. package/lib/media/image/props.js.map +1 -1
  1263. package/lib/node_modules/@ant-design/colors/dist/index.esm.js +2 -2
  1264. package/lib/node_modules/@ant-design/colors/dist/index.esm.js.map +1 -1
  1265. package/lib/node_modules/@ant-design/icons-svg/es/asn/LoadingOutlined.js +2 -2
  1266. package/lib/node_modules/@ant-design/icons-svg/es/asn/LoadingOutlined.js.map +1 -1
  1267. package/lib/node_modules/@ant-design/icons-vue/es/components/AntdIcon.js +7 -7
  1268. package/lib/node_modules/@ant-design/icons-vue/es/components/AntdIcon.js.map +1 -1
  1269. package/lib/node_modules/@ant-design/icons-vue/es/components/IconBase.js +4 -4
  1270. package/lib/node_modules/@ant-design/icons-vue/es/components/IconBase.js.map +1 -1
  1271. package/lib/node_modules/@ant-design/icons-vue/es/components/twoTonePrimaryColor.js +4 -4
  1272. package/lib/node_modules/@ant-design/icons-vue/es/components/twoTonePrimaryColor.js.map +1 -1
  1273. package/lib/node_modules/@ant-design/icons-vue/es/icons/LoadingOutlined.js +7 -7
  1274. package/lib/node_modules/@ant-design/icons-vue/es/icons/LoadingOutlined.js.map +1 -1
  1275. package/lib/node_modules/@ant-design/icons-vue/es/insert-css.js +1 -1
  1276. package/lib/node_modules/@ant-design/icons-vue/es/insert-css.js.map +1 -1
  1277. package/lib/node_modules/@ant-design/icons-vue/es/utils.js +11 -4
  1278. package/lib/node_modules/@ant-design/icons-vue/es/utils.js.map +1 -1
  1279. package/lib/node_modules/@babel/runtime/helpers/esm/extends.js +1 -1
  1280. package/lib/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -1
  1281. package/lib/node_modules/@ctrl/tinycolor/dist/module/conversion.js +1 -1
  1282. package/lib/node_modules/@ctrl/tinycolor/dist/module/conversion.js.map +1 -1
  1283. package/lib/node_modules/@ctrl/tinycolor/dist/module/format-input.js +3 -3
  1284. package/lib/node_modules/@ctrl/tinycolor/dist/module/format-input.js.map +1 -1
  1285. package/lib/node_modules/@ctrl/tinycolor/dist/module/util.js.map +1 -1
  1286. package/lib/node_modules/@vue/shared/dist/shared.esm-bundler.js +4 -0
  1287. package/lib/node_modules/@vue/shared/dist/shared.esm-bundler.js.map +1 -0
  1288. package/lib/node_modules/ant-design-vue/es/button/style/index.js +2 -2
  1289. package/lib/node_modules/ant-design-vue/es/checkbox/style/index.js +2 -2
  1290. package/lib/node_modules/ant-design-vue/es/date-picker/locale/zh_CN.js +8 -8
  1291. package/lib/node_modules/ant-design-vue/es/date-picker/locale/zh_CN.js.map +1 -1
  1292. package/lib/node_modules/ant-design-vue/es/date-picker/style/index.js +2 -2
  1293. package/lib/node_modules/ant-design-vue/es/dropdown/style/index.js +2 -2
  1294. package/lib/node_modules/ant-design-vue/es/empty/style/index.js +2 -2
  1295. package/lib/node_modules/ant-design-vue/es/input/style/index.js +2 -2
  1296. package/lib/node_modules/ant-design-vue/es/modal/style/index.js +2 -2
  1297. package/lib/node_modules/ant-design-vue/es/pagination/style/index.js +2 -2
  1298. package/lib/node_modules/ant-design-vue/es/progress/style/index.js +2 -2
  1299. package/lib/node_modules/ant-design-vue/es/radio/style/index.js +2 -2
  1300. package/lib/node_modules/ant-design-vue/es/select/style/index.js +2 -2
  1301. package/lib/node_modules/ant-design-vue/es/skeleton/style/index.js +2 -2
  1302. package/lib/node_modules/ant-design-vue/es/spin/style/index.js +2 -2
  1303. package/lib/node_modules/ant-design-vue/es/style/default.js +2 -1738
  1304. package/lib/node_modules/ant-design-vue/es/style/default.js.map +1 -1
  1305. package/lib/node_modules/ant-design-vue/es/table/style/index.js +2 -2
  1306. package/lib/node_modules/ant-design-vue/es/tag/style/index.js +2 -2
  1307. package/lib/node_modules/ant-design-vue/es/time-picker/locale/zh_CN.js +2 -2
  1308. package/lib/node_modules/ant-design-vue/es/time-picker/locale/zh_CN.js.map +1 -1
  1309. package/lib/node_modules/ant-design-vue/es/tooltip/style/index.js +2 -2
  1310. package/lib/node_modules/ant-design-vue/es/tree/style/index.js +2 -2
  1311. package/lib/node_modules/ant-design-vue/es/vc-picker/locale/zh_CN.js +2 -2
  1312. package/lib/node_modules/ant-design-vue/es/vc-picker/locale/zh_CN.js.map +1 -1
  1313. package/lib/node_modules/axios/index.js +8 -3
  1314. package/lib/node_modules/axios/index.js.map +1 -1
  1315. package/lib/node_modules/axios/lib/adapters/xhr.js +150 -137
  1316. package/lib/node_modules/axios/lib/adapters/xhr.js.map +1 -1
  1317. package/lib/node_modules/axios/lib/axios.js +25 -23
  1318. package/lib/node_modules/axios/lib/axios.js.map +1 -1
  1319. package/lib/node_modules/axios/lib/cancel/Cancel.js +16 -8
  1320. package/lib/node_modules/axios/lib/cancel/Cancel.js.map +1 -1
  1321. package/lib/node_modules/axios/lib/cancel/CancelToken.js +78 -70
  1322. package/lib/node_modules/axios/lib/cancel/CancelToken.js.map +1 -1
  1323. package/lib/node_modules/axios/lib/cancel/isCancel.js +12 -4
  1324. package/lib/node_modules/axios/lib/cancel/isCancel.js.map +1 -1
  1325. package/lib/node_modules/axios/lib/core/Axios.js +13 -13
  1326. package/lib/node_modules/axios/lib/core/Axios.js.map +1 -1
  1327. package/lib/node_modules/axios/lib/core/InterceptorManager.js +3 -3
  1328. package/lib/node_modules/axios/lib/core/InterceptorManager.js.map +1 -1
  1329. package/lib/node_modules/axios/lib/core/buildFullPath.js +19 -11
  1330. package/lib/node_modules/axios/lib/core/buildFullPath.js.map +1 -1
  1331. package/lib/node_modules/axios/lib/core/createError.js +15 -7
  1332. package/lib/node_modules/axios/lib/core/createError.js.map +1 -1
  1333. package/lib/node_modules/axios/lib/core/dispatchRequest.js +40 -18
  1334. package/lib/node_modules/axios/lib/core/dispatchRequest.js.map +1 -1
  1335. package/lib/node_modules/axios/lib/core/enhanceError.js +1 -1
  1336. package/lib/node_modules/axios/lib/core/enhanceError.js.map +1 -1
  1337. package/lib/node_modules/axios/lib/core/mergeConfig.js +3 -3
  1338. package/lib/node_modules/axios/lib/core/mergeConfig.js.map +1 -1
  1339. package/lib/node_modules/axios/lib/core/settle.js +25 -11
  1340. package/lib/node_modules/axios/lib/core/settle.js.map +1 -1
  1341. package/lib/node_modules/axios/lib/core/transformData.js +5 -5
  1342. package/lib/node_modules/axios/lib/core/transformData.js.map +1 -1
  1343. package/lib/node_modules/axios/lib/defaults.js +102 -94
  1344. package/lib/node_modules/axios/lib/defaults.js.map +1 -1
  1345. package/lib/node_modules/axios/lib/env/data.js +12 -4
  1346. package/lib/node_modules/axios/lib/env/data.js.map +1 -1
  1347. package/lib/node_modules/axios/lib/helpers/bind.js +1 -1
  1348. package/lib/node_modules/axios/lib/helpers/bind.js.map +1 -1
  1349. package/lib/node_modules/axios/lib/helpers/buildURL.js +3 -3
  1350. package/lib/node_modules/axios/lib/helpers/buildURL.js.map +1 -1
  1351. package/lib/node_modules/axios/lib/helpers/combineURLs.js +12 -4
  1352. package/lib/node_modules/axios/lib/helpers/combineURLs.js.map +1 -1
  1353. package/lib/node_modules/axios/lib/helpers/cookies.js +47 -39
  1354. package/lib/node_modules/axios/lib/helpers/cookies.js.map +1 -1
  1355. package/lib/node_modules/axios/lib/helpers/isAbsoluteURL.js +12 -4
  1356. package/lib/node_modules/axios/lib/helpers/isAbsoluteURL.js.map +1 -1
  1357. package/lib/node_modules/axios/lib/helpers/isAxiosError.js +14 -6
  1358. package/lib/node_modules/axios/lib/helpers/isAxiosError.js.map +1 -1
  1359. package/lib/node_modules/axios/lib/helpers/isURLSameOrigin.js +40 -32
  1360. package/lib/node_modules/axios/lib/helpers/isURLSameOrigin.js.map +1 -1
  1361. package/lib/node_modules/axios/lib/helpers/normalizeHeaderName.js +3 -3
  1362. package/lib/node_modules/axios/lib/helpers/normalizeHeaderName.js.map +1 -1
  1363. package/lib/node_modules/axios/lib/helpers/parseHeaders.js +54 -46
  1364. package/lib/node_modules/axios/lib/helpers/parseHeaders.js.map +1 -1
  1365. package/lib/node_modules/axios/lib/helpers/spread.js +13 -5
  1366. package/lib/node_modules/axios/lib/helpers/spread.js.map +1 -1
  1367. package/lib/node_modules/axios/lib/helpers/validator.js +9 -4
  1368. package/lib/node_modules/axios/lib/helpers/validator.js.map +1 -1
  1369. package/lib/node_modules/axios/lib/utils.js +3 -3
  1370. package/lib/node_modules/axios/lib/utils.js.map +1 -1
  1371. package/lib/node_modules/echarts/lib/action/roamHelper.js.map +1 -1
  1372. package/lib/node_modules/echarts/lib/animation/basicTrasition.js +2 -2
  1373. package/lib/node_modules/echarts/lib/animation/basicTrasition.js.map +1 -1
  1374. package/lib/node_modules/echarts/lib/animation/customGraphicKeyframeAnimation.js +16 -4
  1375. package/lib/node_modules/echarts/lib/animation/customGraphicKeyframeAnimation.js.map +1 -1
  1376. package/lib/node_modules/echarts/lib/animation/customGraphicTransition.js +59 -11
  1377. package/lib/node_modules/echarts/lib/animation/customGraphicTransition.js.map +1 -1
  1378. package/lib/node_modules/echarts/lib/chart/bar/BarSeries.js +9 -9
  1379. package/lib/node_modules/echarts/lib/chart/bar/BarSeries.js.map +1 -1
  1380. package/lib/node_modules/echarts/lib/chart/bar/BarView.js +40 -27
  1381. package/lib/node_modules/echarts/lib/chart/bar/BarView.js.map +1 -1
  1382. package/lib/node_modules/echarts/lib/chart/bar/BaseBarSeries.js +8 -8
  1383. package/lib/node_modules/echarts/lib/chart/bar/BaseBarSeries.js.map +1 -1
  1384. package/lib/node_modules/echarts/lib/chart/bar/install.js +8 -8
  1385. package/lib/node_modules/echarts/lib/chart/bar/install.js.map +1 -1
  1386. package/lib/node_modules/echarts/lib/chart/helper/LargeSymbolDraw.js +14 -12
  1387. package/lib/node_modules/echarts/lib/chart/helper/LargeSymbolDraw.js.map +1 -1
  1388. package/lib/node_modules/echarts/lib/chart/helper/Symbol.js +14 -14
  1389. package/lib/node_modules/echarts/lib/chart/helper/Symbol.js.map +1 -1
  1390. package/lib/node_modules/echarts/lib/chart/helper/SymbolDraw.js +10 -10
  1391. package/lib/node_modules/echarts/lib/chart/helper/SymbolDraw.js.map +1 -1
  1392. package/lib/node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js +7 -7
  1393. package/lib/node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js.map +1 -1
  1394. package/lib/node_modules/echarts/lib/chart/helper/createRenderPlanner.js +2 -2
  1395. package/lib/node_modules/echarts/lib/chart/helper/createRenderPlanner.js.map +1 -1
  1396. package/lib/node_modules/echarts/lib/chart/helper/createSeriesData.js +20 -16
  1397. package/lib/node_modules/echarts/lib/chart/helper/createSeriesData.js.map +1 -1
  1398. package/lib/node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js +6 -6
  1399. package/lib/node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js.map +1 -1
  1400. package/lib/node_modules/echarts/lib/chart/helper/labelHelper.js +2 -2
  1401. package/lib/node_modules/echarts/lib/chart/helper/labelHelper.js.map +1 -1
  1402. package/lib/node_modules/echarts/lib/chart/helper/pieHelper.js +2 -2
  1403. package/lib/node_modules/echarts/lib/chart/helper/pieHelper.js.map +1 -1
  1404. package/lib/node_modules/echarts/lib/chart/line/LineSeries.js +16 -10
  1405. package/lib/node_modules/echarts/lib/chart/line/LineSeries.js.map +1 -1
  1406. package/lib/node_modules/echarts/lib/chart/line/LineView.js +56 -39
  1407. package/lib/node_modules/echarts/lib/chart/line/LineView.js.map +1 -1
  1408. package/lib/node_modules/echarts/lib/chart/line/helper.js +10 -4
  1409. package/lib/node_modules/echarts/lib/chart/line/helper.js.map +1 -1
  1410. package/lib/node_modules/echarts/lib/chart/line/install.js +8 -8
  1411. package/lib/node_modules/echarts/lib/chart/line/install.js.map +1 -1
  1412. package/lib/node_modules/echarts/lib/chart/line/lineAnimationDiff.js +3 -3
  1413. package/lib/node_modules/echarts/lib/chart/line/lineAnimationDiff.js.map +1 -1
  1414. package/lib/node_modules/echarts/lib/chart/line/poly.js +7 -7
  1415. package/lib/node_modules/echarts/lib/chart/line/poly.js.map +1 -1
  1416. package/lib/node_modules/echarts/lib/chart/map/MapSeries.js +13 -13
  1417. package/lib/node_modules/echarts/lib/chart/map/MapSeries.js.map +1 -1
  1418. package/lib/node_modules/echarts/lib/chart/map/MapView.js +11 -11
  1419. package/lib/node_modules/echarts/lib/chart/map/MapView.js.map +1 -1
  1420. package/lib/node_modules/echarts/lib/chart/map/install.js +11 -11
  1421. package/lib/node_modules/echarts/lib/chart/map/install.js.map +1 -1
  1422. package/lib/node_modules/echarts/lib/chart/map/mapDataStatistic.js +2 -2
  1423. package/lib/node_modules/echarts/lib/chart/map/mapDataStatistic.js.map +1 -1
  1424. package/lib/node_modules/echarts/lib/chart/map/mapSymbolLayout.js +2 -2
  1425. package/lib/node_modules/echarts/lib/chart/map/mapSymbolLayout.js.map +1 -1
  1426. package/lib/node_modules/echarts/lib/chart/pie/PieSeries.js +13 -13
  1427. package/lib/node_modules/echarts/lib/chart/pie/PieSeries.js.map +1 -1
  1428. package/lib/node_modules/echarts/lib/chart/pie/PieView.js +21 -21
  1429. package/lib/node_modules/echarts/lib/chart/pie/PieView.js.map +1 -1
  1430. package/lib/node_modules/echarts/lib/chart/pie/install.js +12 -12
  1431. package/lib/node_modules/echarts/lib/chart/pie/install.js.map +1 -1
  1432. package/lib/node_modules/echarts/lib/chart/pie/labelLayout.js +8 -8
  1433. package/lib/node_modules/echarts/lib/chart/pie/labelLayout.js.map +1 -1
  1434. package/lib/node_modules/echarts/lib/chart/pie/pieLayout.js +4 -4
  1435. package/lib/node_modules/echarts/lib/chart/pie/pieLayout.js.map +1 -1
  1436. package/lib/node_modules/echarts/lib/chart/scatter/ScatterSeries.js +7 -7
  1437. package/lib/node_modules/echarts/lib/chart/scatter/ScatterSeries.js.map +1 -1
  1438. package/lib/node_modules/echarts/lib/chart/scatter/ScatterView.js +10 -10
  1439. package/lib/node_modules/echarts/lib/chart/scatter/ScatterView.js.map +1 -1
  1440. package/lib/node_modules/echarts/lib/chart/scatter/install.js +8 -8
  1441. package/lib/node_modules/echarts/lib/chart/scatter/install.js.map +1 -1
  1442. package/lib/node_modules/echarts/lib/component/axis/AxisBuilder.js +32 -25
  1443. package/lib/node_modules/echarts/lib/component/axis/AxisBuilder.js.map +1 -1
  1444. package/lib/node_modules/echarts/lib/component/axis/AxisView.js +11 -6
  1445. package/lib/node_modules/echarts/lib/component/axis/AxisView.js.map +1 -1
  1446. package/lib/node_modules/echarts/lib/component/axis/CartesianAxisView.js +16 -16
  1447. package/lib/node_modules/echarts/lib/component/axis/CartesianAxisView.js.map +1 -1
  1448. package/lib/node_modules/echarts/lib/component/axis/axisSplitHelper.js +4 -4
  1449. package/lib/node_modules/echarts/lib/component/axis/axisSplitHelper.js.map +1 -1
  1450. package/lib/node_modules/echarts/lib/component/axisPointer/AxisPointerModel.js +5 -5
  1451. package/lib/node_modules/echarts/lib/component/axisPointer/AxisPointerModel.js.map +1 -1
  1452. package/lib/node_modules/echarts/lib/component/axisPointer/AxisPointerView.js +6 -6
  1453. package/lib/node_modules/echarts/lib/component/axisPointer/AxisPointerView.js.map +1 -1
  1454. package/lib/node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js +13 -13
  1455. package/lib/node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js.map +1 -1
  1456. package/lib/node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js +15 -8
  1457. package/lib/node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js.map +1 -1
  1458. package/lib/node_modules/echarts/lib/component/axisPointer/axisTrigger.js +11 -7
  1459. package/lib/node_modules/echarts/lib/component/axisPointer/axisTrigger.js.map +1 -1
  1460. package/lib/node_modules/echarts/lib/component/axisPointer/findPointFromSeries.js +3 -3
  1461. package/lib/node_modules/echarts/lib/component/axisPointer/findPointFromSeries.js.map +1 -1
  1462. package/lib/node_modules/echarts/lib/component/axisPointer/globalListener.js +5 -5
  1463. package/lib/node_modules/echarts/lib/component/axisPointer/globalListener.js.map +1 -1
  1464. package/lib/node_modules/echarts/lib/component/axisPointer/install.js +11 -11
  1465. package/lib/node_modules/echarts/lib/component/axisPointer/install.js.map +1 -1
  1466. package/lib/node_modules/echarts/lib/component/axisPointer/modelHelper.js +3 -3
  1467. package/lib/node_modules/echarts/lib/component/axisPointer/modelHelper.js.map +1 -1
  1468. package/lib/node_modules/echarts/lib/component/axisPointer/viewHelper.js +9 -9
  1469. package/lib/node_modules/echarts/lib/component/axisPointer/viewHelper.js.map +1 -1
  1470. package/lib/node_modules/echarts/lib/component/dataZoom/AxisProxy.js +10 -10
  1471. package/lib/node_modules/echarts/lib/component/dataZoom/AxisProxy.js.map +1 -1
  1472. package/lib/node_modules/echarts/lib/component/dataZoom/DataZoomModel.js +14 -8
  1473. package/lib/node_modules/echarts/lib/component/dataZoom/DataZoomModel.js.map +1 -1
  1474. package/lib/node_modules/echarts/lib/component/dataZoom/DataZoomView.js +5 -5
  1475. package/lib/node_modules/echarts/lib/component/dataZoom/DataZoomView.js.map +1 -1
  1476. package/lib/node_modules/echarts/lib/component/dataZoom/SelectZoomModel.js +5 -5
  1477. package/lib/node_modules/echarts/lib/component/dataZoom/SelectZoomModel.js.map +1 -1
  1478. package/lib/node_modules/echarts/lib/component/dataZoom/SelectZoomView.js +5 -5
  1479. package/lib/node_modules/echarts/lib/component/dataZoom/SelectZoomView.js.map +1 -1
  1480. package/lib/node_modules/echarts/lib/component/dataZoom/dataZoomAction.js +3 -3
  1481. package/lib/node_modules/echarts/lib/component/dataZoom/dataZoomAction.js.map +1 -1
  1482. package/lib/node_modules/echarts/lib/component/dataZoom/dataZoomProcessor.js +6 -6
  1483. package/lib/node_modules/echarts/lib/component/dataZoom/dataZoomProcessor.js.map +1 -1
  1484. package/lib/node_modules/echarts/lib/component/dataZoom/helper.js +4 -1
  1485. package/lib/node_modules/echarts/lib/component/dataZoom/helper.js.map +1 -1
  1486. package/lib/node_modules/echarts/lib/component/dataZoom/history.js +2 -2
  1487. package/lib/node_modules/echarts/lib/component/dataZoom/history.js.map +1 -1
  1488. package/lib/node_modules/echarts/lib/component/dataZoom/installCommon.js +5 -5
  1489. package/lib/node_modules/echarts/lib/component/dataZoom/installCommon.js.map +1 -1
  1490. package/lib/node_modules/echarts/lib/component/dataZoom/installDataZoomSelect.js +6 -6
  1491. package/lib/node_modules/echarts/lib/component/dataZoom/installDataZoomSelect.js.map +1 -1
  1492. package/lib/node_modules/echarts/lib/component/dataset/install.js +7 -7
  1493. package/lib/node_modules/echarts/lib/component/dataset/install.js.map +1 -1
  1494. package/lib/node_modules/echarts/lib/component/geo/GeoView.js +9 -9
  1495. package/lib/node_modules/echarts/lib/component/geo/GeoView.js.map +1 -1
  1496. package/lib/node_modules/echarts/lib/component/geo/install.js +11 -11
  1497. package/lib/node_modules/echarts/lib/component/geo/install.js.map +1 -1
  1498. package/lib/node_modules/echarts/lib/component/graphic/GraphicModel.js +13 -6
  1499. package/lib/node_modules/echarts/lib/component/graphic/GraphicModel.js.map +1 -1
  1500. package/lib/node_modules/echarts/lib/component/graphic/GraphicView.js +32 -23
  1501. package/lib/node_modules/echarts/lib/component/graphic/GraphicView.js.map +1 -1
  1502. package/lib/node_modules/echarts/lib/component/graphic/install.js +3 -3
  1503. package/lib/node_modules/echarts/lib/component/graphic/install.js.map +1 -1
  1504. package/lib/node_modules/echarts/lib/component/grid/installSimple.js +15 -15
  1505. package/lib/node_modules/echarts/lib/component/grid/installSimple.js.map +1 -1
  1506. package/lib/node_modules/echarts/lib/component/helper/BrushController.js +44 -21
  1507. package/lib/node_modules/echarts/lib/component/helper/BrushController.js.map +1 -1
  1508. package/lib/node_modules/echarts/lib/component/helper/BrushTargetManager.js +13 -6
  1509. package/lib/node_modules/echarts/lib/component/helper/BrushTargetManager.js.map +1 -1
  1510. package/lib/node_modules/echarts/lib/component/helper/MapDraw.js +32 -32
  1511. package/lib/node_modules/echarts/lib/component/helper/MapDraw.js.map +1 -1
  1512. package/lib/node_modules/echarts/lib/component/helper/RoamController.js +8 -8
  1513. package/lib/node_modules/echarts/lib/component/helper/RoamController.js.map +1 -1
  1514. package/lib/node_modules/echarts/lib/component/helper/brushHelper.js +4 -4
  1515. package/lib/node_modules/echarts/lib/component/helper/brushHelper.js.map +1 -1
  1516. package/lib/node_modules/echarts/lib/component/helper/cursorHelper.js.map +1 -1
  1517. package/lib/node_modules/echarts/lib/component/helper/interactionMutex.js +2 -2
  1518. package/lib/node_modules/echarts/lib/component/helper/interactionMutex.js.map +1 -1
  1519. package/lib/node_modules/echarts/lib/component/helper/listComponent.js +4 -4
  1520. package/lib/node_modules/echarts/lib/component/helper/listComponent.js.map +1 -1
  1521. package/lib/node_modules/echarts/lib/component/helper/roamHelper.js.map +1 -1
  1522. package/lib/node_modules/echarts/lib/component/helper/sliderMove.js +1 -1
  1523. package/lib/node_modules/echarts/lib/component/helper/sliderMove.js.map +1 -1
  1524. package/lib/node_modules/echarts/lib/component/legend/LegendModel.js +9 -9
  1525. package/lib/node_modules/echarts/lib/component/legend/LegendModel.js.map +1 -1
  1526. package/lib/node_modules/echarts/lib/component/legend/LegendView.js +31 -22
  1527. package/lib/node_modules/echarts/lib/component/legend/LegendView.js.map +1 -1
  1528. package/lib/node_modules/echarts/lib/component/legend/ScrollableLegendModel.js +8 -8
  1529. package/lib/node_modules/echarts/lib/component/legend/ScrollableLegendModel.js.map +1 -1
  1530. package/lib/node_modules/echarts/lib/component/legend/ScrollableLegendView.js +33 -21
  1531. package/lib/node_modules/echarts/lib/component/legend/ScrollableLegendView.js.map +1 -1
  1532. package/lib/node_modules/echarts/lib/component/legend/install.js +3 -3
  1533. package/lib/node_modules/echarts/lib/component/legend/install.js.map +1 -1
  1534. package/lib/node_modules/echarts/lib/component/legend/installLegendPlain.js +7 -7
  1535. package/lib/node_modules/echarts/lib/component/legend/installLegendPlain.js.map +1 -1
  1536. package/lib/node_modules/echarts/lib/component/legend/installLegendScroll.js +8 -8
  1537. package/lib/node_modules/echarts/lib/component/legend/installLegendScroll.js.map +1 -1
  1538. package/lib/node_modules/echarts/lib/component/legend/legendAction.js +1 -1
  1539. package/lib/node_modules/echarts/lib/component/legend/legendAction.js.map +1 -1
  1540. package/lib/node_modules/echarts/lib/component/legend/legendFilter.js +1 -1
  1541. package/lib/node_modules/echarts/lib/component/legend/legendFilter.js.map +1 -1
  1542. package/lib/node_modules/echarts/lib/component/legend/scrollableLegendAction.js +1 -1
  1543. package/lib/node_modules/echarts/lib/component/legend/scrollableLegendAction.js.map +1 -1
  1544. package/lib/node_modules/echarts/lib/component/title/install.js +15 -15
  1545. package/lib/node_modules/echarts/lib/component/title/install.js.map +1 -1
  1546. package/lib/node_modules/echarts/lib/component/toolbox/ToolboxModel.js +7 -7
  1547. package/lib/node_modules/echarts/lib/component/toolbox/ToolboxModel.js.map +1 -1
  1548. package/lib/node_modules/echarts/lib/component/toolbox/ToolboxView.js +19 -19
  1549. package/lib/node_modules/echarts/lib/component/toolbox/ToolboxView.js.map +1 -1
  1550. package/lib/node_modules/echarts/lib/component/toolbox/feature/DataView.js +11 -7
  1551. package/lib/node_modules/echarts/lib/component/toolbox/feature/DataView.js.map +1 -1
  1552. package/lib/node_modules/echarts/lib/component/toolbox/feature/DataZoom.js +15 -15
  1553. package/lib/node_modules/echarts/lib/component/toolbox/feature/DataZoom.js.map +1 -1
  1554. package/lib/node_modules/echarts/lib/component/toolbox/feature/MagicType.js +7 -7
  1555. package/lib/node_modules/echarts/lib/component/toolbox/feature/MagicType.js.map +1 -1
  1556. package/lib/node_modules/echarts/lib/component/toolbox/feature/Restore.js +6 -6
  1557. package/lib/node_modules/echarts/lib/component/toolbox/feature/Restore.js.map +1 -1
  1558. package/lib/node_modules/echarts/lib/component/toolbox/feature/SaveAsImage.js +7 -7
  1559. package/lib/node_modules/echarts/lib/component/toolbox/feature/SaveAsImage.js.map +1 -1
  1560. package/lib/node_modules/echarts/lib/component/toolbox/featureManager.js.map +1 -1
  1561. package/lib/node_modules/echarts/lib/component/toolbox/install.js +17 -17
  1562. package/lib/node_modules/echarts/lib/component/toolbox/install.js.map +1 -1
  1563. package/lib/node_modules/echarts/lib/component/tooltip/TooltipHTMLContent.js +15 -15
  1564. package/lib/node_modules/echarts/lib/component/tooltip/TooltipHTMLContent.js.map +1 -1
  1565. package/lib/node_modules/echarts/lib/component/tooltip/TooltipModel.js +5 -5
  1566. package/lib/node_modules/echarts/lib/component/tooltip/TooltipModel.js.map +1 -1
  1567. package/lib/node_modules/echarts/lib/component/tooltip/TooltipRichContent.js +8 -8
  1568. package/lib/node_modules/echarts/lib/component/tooltip/TooltipRichContent.js.map +1 -1
  1569. package/lib/node_modules/echarts/lib/component/tooltip/TooltipView.js +37 -37
  1570. package/lib/node_modules/echarts/lib/component/tooltip/TooltipView.js.map +1 -1
  1571. package/lib/node_modules/echarts/lib/component/tooltip/helper.js +3 -3
  1572. package/lib/node_modules/echarts/lib/component/tooltip/helper.js.map +1 -1
  1573. package/lib/node_modules/echarts/lib/component/tooltip/install.js +7 -7
  1574. package/lib/node_modules/echarts/lib/component/tooltip/install.js.map +1 -1
  1575. package/lib/node_modules/echarts/lib/component/tooltip/seriesFormatTooltip.js +4 -4
  1576. package/lib/node_modules/echarts/lib/component/tooltip/seriesFormatTooltip.js.map +1 -1
  1577. package/lib/node_modules/echarts/lib/component/tooltip/tooltipMarkup.js +15 -7
  1578. package/lib/node_modules/echarts/lib/component/tooltip/tooltipMarkup.js.map +1 -1
  1579. package/lib/node_modules/echarts/lib/component/visualMap/ContinuousModel.js +9 -9
  1580. package/lib/node_modules/echarts/lib/component/visualMap/ContinuousModel.js.map +1 -1
  1581. package/lib/node_modules/echarts/lib/component/visualMap/ContinuousView.js +39 -33
  1582. package/lib/node_modules/echarts/lib/component/visualMap/ContinuousView.js.map +1 -1
  1583. package/lib/node_modules/echarts/lib/component/visualMap/PiecewiseModel.js +21 -16
  1584. package/lib/node_modules/echarts/lib/component/visualMap/PiecewiseModel.js.map +1 -1
  1585. package/lib/node_modules/echarts/lib/component/visualMap/PiecewiseView.js +24 -17
  1586. package/lib/node_modules/echarts/lib/component/visualMap/PiecewiseView.js.map +1 -1
  1587. package/lib/node_modules/echarts/lib/component/visualMap/VisualMapModel.js +15 -15
  1588. package/lib/node_modules/echarts/lib/component/visualMap/VisualMapModel.js.map +1 -1
  1589. package/lib/node_modules/echarts/lib/component/visualMap/VisualMapView.js +13 -13
  1590. package/lib/node_modules/echarts/lib/component/visualMap/VisualMapView.js.map +1 -1
  1591. package/lib/node_modules/echarts/lib/component/visualMap/helper.js +2 -2
  1592. package/lib/node_modules/echarts/lib/component/visualMap/helper.js.map +1 -1
  1593. package/lib/node_modules/echarts/lib/component/visualMap/install.js +3 -3
  1594. package/lib/node_modules/echarts/lib/component/visualMap/install.js.map +1 -1
  1595. package/lib/node_modules/echarts/lib/component/visualMap/installCommon.js +6 -6
  1596. package/lib/node_modules/echarts/lib/component/visualMap/installCommon.js.map +1 -1
  1597. package/lib/node_modules/echarts/lib/component/visualMap/installVisualMapContinuous.js +6 -6
  1598. package/lib/node_modules/echarts/lib/component/visualMap/installVisualMapContinuous.js.map +1 -1
  1599. package/lib/node_modules/echarts/lib/component/visualMap/installVisualMapPiecewise.js +6 -6
  1600. package/lib/node_modules/echarts/lib/component/visualMap/installVisualMapPiecewise.js.map +1 -1
  1601. package/lib/node_modules/echarts/lib/component/visualMap/preprocessor.js +2 -2
  1602. package/lib/node_modules/echarts/lib/component/visualMap/preprocessor.js.map +1 -1
  1603. package/lib/node_modules/echarts/lib/component/visualMap/visualEncoding.js +5 -5
  1604. package/lib/node_modules/echarts/lib/component/visualMap/visualEncoding.js.map +1 -1
  1605. package/lib/node_modules/echarts/lib/coord/Axis.js +5 -5
  1606. package/lib/node_modules/echarts/lib/coord/Axis.js.map +1 -1
  1607. package/lib/node_modules/echarts/lib/coord/CoordinateSystem.js.map +1 -1
  1608. package/lib/node_modules/echarts/lib/coord/View.js +15 -15
  1609. package/lib/node_modules/echarts/lib/coord/View.js.map +1 -1
  1610. package/lib/node_modules/echarts/lib/coord/axisAlignTicks.js +14 -5
  1611. package/lib/node_modules/echarts/lib/coord/axisAlignTicks.js.map +1 -1
  1612. package/lib/node_modules/echarts/lib/coord/axisDefault.js +3 -3
  1613. package/lib/node_modules/echarts/lib/coord/axisDefault.js.map +1 -1
  1614. package/lib/node_modules/echarts/lib/coord/axisHelper.js +16 -16
  1615. package/lib/node_modules/echarts/lib/coord/axisHelper.js.map +1 -1
  1616. package/lib/node_modules/echarts/lib/coord/axisModelCommonMixin.js.map +1 -1
  1617. package/lib/node_modules/echarts/lib/coord/axisModelCreator.js +9 -9
  1618. package/lib/node_modules/echarts/lib/coord/axisModelCreator.js.map +1 -1
  1619. package/lib/node_modules/echarts/lib/coord/axisTickLabelBuilder.js +4 -4
  1620. package/lib/node_modules/echarts/lib/coord/axisTickLabelBuilder.js.map +1 -1
  1621. package/lib/node_modules/echarts/lib/coord/cartesian/Axis2D.js +5 -5
  1622. package/lib/node_modules/echarts/lib/coord/cartesian/Axis2D.js.map +1 -1
  1623. package/lib/node_modules/echarts/lib/coord/cartesian/AxisModel.js +7 -7
  1624. package/lib/node_modules/echarts/lib/coord/cartesian/AxisModel.js.map +1 -1
  1625. package/lib/node_modules/echarts/lib/coord/cartesian/Cartesian.js +3 -3
  1626. package/lib/node_modules/echarts/lib/coord/cartesian/Cartesian.js.map +1 -1
  1627. package/lib/node_modules/echarts/lib/coord/cartesian/Cartesian2D.js +9 -10
  1628. package/lib/node_modules/echarts/lib/coord/cartesian/Cartesian2D.js.map +1 -1
  1629. package/lib/node_modules/echarts/lib/coord/cartesian/Grid.js +21 -13
  1630. package/lib/node_modules/echarts/lib/coord/cartesian/Grid.js.map +1 -1
  1631. package/lib/node_modules/echarts/lib/coord/cartesian/GridModel.js +5 -5
  1632. package/lib/node_modules/echarts/lib/coord/cartesian/GridModel.js.map +1 -1
  1633. package/lib/node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js +7 -2
  1634. package/lib/node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js.map +1 -1
  1635. package/lib/node_modules/echarts/lib/coord/geo/Geo.js +29 -14
  1636. package/lib/node_modules/echarts/lib/coord/geo/Geo.js.map +1 -1
  1637. package/lib/node_modules/echarts/lib/coord/geo/GeoJSONResource.js +11 -11
  1638. package/lib/node_modules/echarts/lib/coord/geo/GeoJSONResource.js.map +1 -1
  1639. package/lib/node_modules/echarts/lib/coord/geo/GeoModel.js +14 -14
  1640. package/lib/node_modules/echarts/lib/coord/geo/GeoModel.js.map +1 -1
  1641. package/lib/node_modules/echarts/lib/coord/geo/GeoSVGResource.js +10 -10
  1642. package/lib/node_modules/echarts/lib/coord/geo/GeoSVGResource.js.map +1 -1
  1643. package/lib/node_modules/echarts/lib/coord/geo/Region.js +8 -8
  1644. package/lib/node_modules/echarts/lib/coord/geo/Region.js.map +1 -1
  1645. package/lib/node_modules/echarts/lib/coord/geo/fix/diaoyuIsland.js +1 -1
  1646. package/lib/node_modules/echarts/lib/coord/geo/fix/diaoyuIsland.js.map +1 -1
  1647. package/lib/node_modules/echarts/lib/coord/geo/fix/nanhai.js +5 -5
  1648. package/lib/node_modules/echarts/lib/coord/geo/fix/nanhai.js.map +1 -1
  1649. package/lib/node_modules/echarts/lib/coord/geo/fix/textCoord.js +1 -1
  1650. package/lib/node_modules/echarts/lib/coord/geo/fix/textCoord.js.map +1 -1
  1651. package/lib/node_modules/echarts/lib/coord/geo/geoCreator.js +20 -14
  1652. package/lib/node_modules/echarts/lib/coord/geo/geoCreator.js.map +1 -1
  1653. package/lib/node_modules/echarts/lib/coord/geo/geoSourceManager.js +8 -5
  1654. package/lib/node_modules/echarts/lib/coord/geo/geoSourceManager.js.map +1 -1
  1655. package/lib/node_modules/echarts/lib/coord/geo/parseGeoJson.js +3 -3
  1656. package/lib/node_modules/echarts/lib/coord/geo/parseGeoJson.js.map +1 -1
  1657. package/lib/node_modules/echarts/lib/coord/scaleRawExtentInfo.js +11 -2
  1658. package/lib/node_modules/echarts/lib/coord/scaleRawExtentInfo.js.map +1 -1
  1659. package/lib/node_modules/echarts/lib/core/CoordinateSystem.js +3 -3
  1660. package/lib/node_modules/echarts/lib/core/CoordinateSystem.js.map +1 -1
  1661. package/lib/node_modules/echarts/lib/core/ExtensionAPI.js +3 -3
  1662. package/lib/node_modules/echarts/lib/core/ExtensionAPI.js.map +1 -1
  1663. package/lib/node_modules/echarts/lib/core/Scheduler.js +16 -10
  1664. package/lib/node_modules/echarts/lib/core/Scheduler.js.map +1 -1
  1665. package/lib/node_modules/echarts/lib/core/echarts.js +165 -84
  1666. package/lib/node_modules/echarts/lib/core/echarts.js.map +1 -1
  1667. package/lib/node_modules/echarts/lib/core/impl.js +11 -0
  1668. package/lib/node_modules/echarts/lib/core/impl.js.map +1 -1
  1669. package/lib/node_modules/echarts/lib/core/lifecycle.js +4 -4
  1670. package/lib/node_modules/echarts/lib/core/lifecycle.js.map +1 -1
  1671. package/lib/node_modules/echarts/lib/core/locale.js +9 -9
  1672. package/lib/node_modules/echarts/lib/core/locale.js.map +1 -1
  1673. package/lib/node_modules/echarts/lib/core/task.js +13 -1
  1674. package/lib/node_modules/echarts/lib/core/task.js.map +1 -1
  1675. package/lib/node_modules/echarts/lib/data/DataDiffer.js +2 -2
  1676. package/lib/node_modules/echarts/lib/data/DataDiffer.js.map +1 -1
  1677. package/lib/node_modules/echarts/lib/data/DataStore.js +16 -5
  1678. package/lib/node_modules/echarts/lib/data/DataStore.js.map +1 -1
  1679. package/lib/node_modules/echarts/lib/data/OrdinalMeta.js +3 -3
  1680. package/lib/node_modules/echarts/lib/data/OrdinalMeta.js.map +1 -1
  1681. package/lib/node_modules/echarts/lib/data/SeriesData.js +42 -20
  1682. package/lib/node_modules/echarts/lib/data/SeriesData.js.map +1 -1
  1683. package/lib/node_modules/echarts/lib/data/SeriesDimensionDefine.js +3 -3
  1684. package/lib/node_modules/echarts/lib/data/SeriesDimensionDefine.js.map +1 -1
  1685. package/lib/node_modules/echarts/lib/data/Source.js +9 -6
  1686. package/lib/node_modules/echarts/lib/data/Source.js.map +1 -1
  1687. package/lib/node_modules/echarts/lib/data/helper/SeriesDataSchema.js +3 -3
  1688. package/lib/node_modules/echarts/lib/data/helper/SeriesDataSchema.js.map +1 -1
  1689. package/lib/node_modules/echarts/lib/data/helper/createDimensions.js +10 -10
  1690. package/lib/node_modules/echarts/lib/data/helper/createDimensions.js.map +1 -1
  1691. package/lib/node_modules/echarts/lib/data/helper/dataProvider.js +34 -4
  1692. package/lib/node_modules/echarts/lib/data/helper/dataProvider.js.map +1 -1
  1693. package/lib/node_modules/echarts/lib/data/helper/dataStackHelper.js +2 -2
  1694. package/lib/node_modules/echarts/lib/data/helper/dataStackHelper.js.map +1 -1
  1695. package/lib/node_modules/echarts/lib/data/helper/dataValueHelper.js +2 -2
  1696. package/lib/node_modules/echarts/lib/data/helper/dataValueHelper.js.map +1 -1
  1697. package/lib/node_modules/echarts/lib/data/helper/dimensionHelper.js +5 -2
  1698. package/lib/node_modules/echarts/lib/data/helper/dimensionHelper.js.map +1 -1
  1699. package/lib/node_modules/echarts/lib/data/helper/sourceHelper.js +3 -3
  1700. package/lib/node_modules/echarts/lib/data/helper/sourceHelper.js.map +1 -1
  1701. package/lib/node_modules/echarts/lib/data/helper/sourceManager.js +23 -8
  1702. package/lib/node_modules/echarts/lib/data/helper/sourceManager.js.map +1 -1
  1703. package/lib/node_modules/echarts/lib/data/helper/transform.js +56 -8
  1704. package/lib/node_modules/echarts/lib/data/helper/transform.js.map +1 -1
  1705. package/lib/node_modules/echarts/lib/extension.js +17 -17
  1706. package/lib/node_modules/echarts/lib/extension.js.map +1 -1
  1707. package/lib/node_modules/echarts/lib/i18n/langEN.js +2 -2
  1708. package/lib/node_modules/echarts/lib/i18n/langEN.js.map +1 -1
  1709. package/lib/node_modules/echarts/lib/i18n/langZH.js +2 -2
  1710. package/lib/node_modules/echarts/lib/i18n/langZH.js.map +1 -1
  1711. package/lib/node_modules/echarts/lib/label/labelGuideHelper.js +23 -23
  1712. package/lib/node_modules/echarts/lib/label/labelGuideHelper.js.map +1 -1
  1713. package/lib/node_modules/echarts/lib/label/labelLayoutHelper.js +6 -6
  1714. package/lib/node_modules/echarts/lib/label/labelLayoutHelper.js.map +1 -1
  1715. package/lib/node_modules/echarts/lib/label/labelStyle.js +27 -6
  1716. package/lib/node_modules/echarts/lib/label/labelStyle.js.map +1 -1
  1717. package/lib/node_modules/echarts/lib/label/sectorLabel.js +2 -2
  1718. package/lib/node_modules/echarts/lib/label/sectorLabel.js.map +1 -1
  1719. package/lib/node_modules/echarts/lib/layout/barGrid.js +10 -7
  1720. package/lib/node_modules/echarts/lib/layout/barGrid.js.map +1 -1
  1721. package/lib/node_modules/echarts/lib/layout/points.js +6 -6
  1722. package/lib/node_modules/echarts/lib/layout/points.js.map +1 -1
  1723. package/lib/node_modules/echarts/lib/legacy/dataSelectAction.js +9 -2
  1724. package/lib/node_modules/echarts/lib/legacy/dataSelectAction.js.map +1 -1
  1725. package/lib/node_modules/echarts/lib/loading/default.js +11 -11
  1726. package/lib/node_modules/echarts/lib/loading/default.js.map +1 -1
  1727. package/lib/node_modules/echarts/lib/model/Component.js +11 -11
  1728. package/lib/node_modules/echarts/lib/model/Component.js.map +1 -1
  1729. package/lib/node_modules/echarts/lib/model/Global.js +124 -24
  1730. package/lib/node_modules/echarts/lib/model/Global.js.map +1 -1
  1731. package/lib/node_modules/echarts/lib/model/Model.js +11 -11
  1732. package/lib/node_modules/echarts/lib/model/Model.js.map +1 -1
  1733. package/lib/node_modules/echarts/lib/model/OptionManager.js +17 -5
  1734. package/lib/node_modules/echarts/lib/model/OptionManager.js.map +1 -1
  1735. package/lib/node_modules/echarts/lib/model/Series.js +22 -19
  1736. package/lib/node_modules/echarts/lib/model/Series.js.map +1 -1
  1737. package/lib/node_modules/echarts/lib/model/globalDefault.js +2 -2
  1738. package/lib/node_modules/echarts/lib/model/globalDefault.js.map +1 -1
  1739. package/lib/node_modules/echarts/lib/model/internalComponentCreator.js +7 -1
  1740. package/lib/node_modules/echarts/lib/model/internalComponentCreator.js.map +1 -1
  1741. package/lib/node_modules/echarts/lib/model/mixin/areaStyle.js +2 -2
  1742. package/lib/node_modules/echarts/lib/model/mixin/areaStyle.js.map +1 -1
  1743. package/lib/node_modules/echarts/lib/model/mixin/dataFormat.js +13 -3
  1744. package/lib/node_modules/echarts/lib/model/mixin/dataFormat.js.map +1 -1
  1745. package/lib/node_modules/echarts/lib/model/mixin/itemStyle.js +2 -2
  1746. package/lib/node_modules/echarts/lib/model/mixin/itemStyle.js.map +1 -1
  1747. package/lib/node_modules/echarts/lib/model/mixin/lineStyle.js +2 -2
  1748. package/lib/node_modules/echarts/lib/model/mixin/lineStyle.js.map +1 -1
  1749. package/lib/node_modules/echarts/lib/model/mixin/makeStyleMapper.js +2 -2
  1750. package/lib/node_modules/echarts/lib/model/mixin/makeStyleMapper.js.map +1 -1
  1751. package/lib/node_modules/echarts/lib/model/mixin/palette.js +1 -1
  1752. package/lib/node_modules/echarts/lib/model/mixin/palette.js.map +1 -1
  1753. package/lib/node_modules/echarts/lib/model/mixin/textStyle.js +5 -5
  1754. package/lib/node_modules/echarts/lib/model/mixin/textStyle.js.map +1 -1
  1755. package/lib/node_modules/echarts/lib/model/referHelper.js +23 -2
  1756. package/lib/node_modules/echarts/lib/model/referHelper.js.map +1 -1
  1757. package/lib/node_modules/echarts/lib/preprocessor/backwardCompat.js +39 -5
  1758. package/lib/node_modules/echarts/lib/preprocessor/backwardCompat.js.map +1 -1
  1759. package/lib/node_modules/echarts/lib/preprocessor/helper/compatStyle.js +32 -3
  1760. package/lib/node_modules/echarts/lib/preprocessor/helper/compatStyle.js.map +1 -1
  1761. package/lib/node_modules/echarts/lib/processor/dataFilter.js +1 -1
  1762. package/lib/node_modules/echarts/lib/processor/dataFilter.js.map +1 -1
  1763. package/lib/node_modules/echarts/lib/processor/dataSample.js +2 -2
  1764. package/lib/node_modules/echarts/lib/processor/dataSample.js.map +1 -1
  1765. package/lib/node_modules/echarts/lib/processor/dataStack.js +3 -3
  1766. package/lib/node_modules/echarts/lib/processor/dataStack.js.map +1 -1
  1767. package/lib/node_modules/echarts/lib/processor/negativeDataFilter.js +2 -2
  1768. package/lib/node_modules/echarts/lib/processor/negativeDataFilter.js.map +1 -1
  1769. package/lib/node_modules/echarts/lib/renderer/installCanvasRenderer.js +2 -2
  1770. package/lib/node_modules/echarts/lib/renderer/installCanvasRenderer.js.map +1 -1
  1771. package/lib/node_modules/echarts/lib/scale/Interval.js +9 -9
  1772. package/lib/node_modules/echarts/lib/scale/Interval.js.map +1 -1
  1773. package/lib/node_modules/echarts/lib/scale/Log.js +13 -13
  1774. package/lib/node_modules/echarts/lib/scale/Log.js.map +1 -1
  1775. package/lib/node_modules/echarts/lib/scale/Ordinal.js +11 -11
  1776. package/lib/node_modules/echarts/lib/scale/Ordinal.js.map +1 -1
  1777. package/lib/node_modules/echarts/lib/scale/Scale.js +3 -3
  1778. package/lib/node_modules/echarts/lib/scale/Scale.js.map +1 -1
  1779. package/lib/node_modules/echarts/lib/scale/Time.js +17 -11
  1780. package/lib/node_modules/echarts/lib/scale/Time.js.map +1 -1
  1781. package/lib/node_modules/echarts/lib/scale/helper.js +7 -1
  1782. package/lib/node_modules/echarts/lib/scale/helper.js.map +1 -1
  1783. package/lib/node_modules/echarts/lib/theme/dark.js +2 -2
  1784. package/lib/node_modules/echarts/lib/theme/dark.js.map +1 -1
  1785. package/lib/node_modules/echarts/lib/theme/light.js +2 -2
  1786. package/lib/node_modules/echarts/lib/theme/light.js.map +1 -1
  1787. package/lib/node_modules/echarts/lib/util/ECEventProcessor.js +2 -2
  1788. package/lib/node_modules/echarts/lib/util/ECEventProcessor.js.map +1 -1
  1789. package/lib/node_modules/echarts/lib/util/clazz.js +17 -2
  1790. package/lib/node_modules/echarts/lib/util/clazz.js.map +1 -1
  1791. package/lib/node_modules/echarts/lib/util/component.js +6 -2
  1792. package/lib/node_modules/echarts/lib/util/component.js.map +1 -1
  1793. package/lib/node_modules/echarts/lib/util/decal.js +20 -9
  1794. package/lib/node_modules/echarts/lib/util/decal.js.map +1 -1
  1795. package/lib/node_modules/echarts/lib/util/event.js.map +1 -1
  1796. package/lib/node_modules/echarts/lib/util/format.js +3 -3
  1797. package/lib/node_modules/echarts/lib/util/format.js.map +1 -1
  1798. package/lib/node_modules/echarts/lib/util/graphic.js +64 -64
  1799. package/lib/node_modules/echarts/lib/util/graphic.js.map +1 -1
  1800. package/lib/node_modules/echarts/lib/util/innerStore.js +1 -1
  1801. package/lib/node_modules/echarts/lib/util/layout.js +6 -6
  1802. package/lib/node_modules/echarts/lib/util/layout.js.map +1 -1
  1803. package/lib/node_modules/echarts/lib/util/log.js +56 -0
  1804. package/lib/node_modules/echarts/lib/util/log.js.map +1 -1
  1805. package/lib/node_modules/echarts/lib/util/model.js +26 -4
  1806. package/lib/node_modules/echarts/lib/util/model.js.map +1 -1
  1807. package/lib/node_modules/echarts/lib/util/number.js +1 -1
  1808. package/lib/node_modules/echarts/lib/util/number.js.map +1 -1
  1809. package/lib/node_modules/echarts/lib/util/shape/sausage.js +5 -5
  1810. package/lib/node_modules/echarts/lib/util/shape/sausage.js.map +1 -1
  1811. package/lib/node_modules/echarts/lib/util/states.js +21 -8
  1812. package/lib/node_modules/echarts/lib/util/states.js.map +1 -1
  1813. package/lib/node_modules/echarts/lib/util/styleCompat.js +1 -1
  1814. package/lib/node_modules/echarts/lib/util/styleCompat.js.map +1 -1
  1815. package/lib/node_modules/echarts/lib/util/symbol.js +21 -21
  1816. package/lib/node_modules/echarts/lib/util/symbol.js.map +1 -1
  1817. package/lib/node_modules/echarts/lib/util/throttle.js.map +1 -1
  1818. package/lib/node_modules/echarts/lib/util/time.js +5 -5
  1819. package/lib/node_modules/echarts/lib/util/time.js.map +1 -1
  1820. package/lib/node_modules/echarts/lib/util/types.js +1 -1
  1821. package/lib/node_modules/echarts/lib/util/vendor.js +1 -1
  1822. package/lib/node_modules/echarts/lib/util/vendor.js.map +1 -1
  1823. package/lib/node_modules/echarts/lib/view/Chart.js +24 -14
  1824. package/lib/node_modules/echarts/lib/view/Chart.js.map +1 -1
  1825. package/lib/node_modules/echarts/lib/view/Component.js +6 -6
  1826. package/lib/node_modules/echarts/lib/view/Component.js.map +1 -1
  1827. package/lib/node_modules/echarts/lib/visual/LegendVisualProvider.js +2 -2
  1828. package/lib/node_modules/echarts/lib/visual/LegendVisualProvider.js.map +1 -1
  1829. package/lib/node_modules/echarts/lib/visual/VisualMapping.js +7 -7
  1830. package/lib/node_modules/echarts/lib/visual/VisualMapping.js.map +1 -1
  1831. package/lib/node_modules/echarts/lib/visual/decal.js +2 -2
  1832. package/lib/node_modules/echarts/lib/visual/decal.js.map +1 -1
  1833. package/lib/node_modules/echarts/lib/visual/helper.js +12 -0
  1834. package/lib/node_modules/echarts/lib/visual/helper.js.map +1 -1
  1835. package/lib/node_modules/echarts/lib/visual/style.js +14 -10
  1836. package/lib/node_modules/echarts/lib/visual/style.js.map +1 -1
  1837. package/lib/node_modules/echarts/lib/visual/symbol.js +1 -1
  1838. package/lib/node_modules/echarts/lib/visual/symbol.js.map +1 -1
  1839. package/lib/node_modules/echarts/lib/visual/visualDefault.js +3 -3
  1840. package/lib/node_modules/echarts/lib/visual/visualDefault.js.map +1 -1
  1841. package/lib/node_modules/echarts/lib/visual/visualSolution.js +7 -7
  1842. package/lib/node_modules/echarts/lib/visual/visualSolution.js.map +1 -1
  1843. package/lib/node_modules/echarts/node_modules/tslib/tslib.es6.js.map +1 -1
  1844. package/lib/node_modules/resize-detector/esm/index.js.map +1 -1
  1845. package/lib/node_modules/zrender/lib/Element.js +47 -17
  1846. package/lib/node_modules/zrender/lib/Element.js.map +1 -1
  1847. package/lib/node_modules/zrender/lib/Handler.js +12 -12
  1848. package/lib/node_modules/zrender/lib/Handler.js.map +1 -1
  1849. package/lib/node_modules/zrender/lib/Storage.js +6 -6
  1850. package/lib/node_modules/zrender/lib/Storage.js.map +1 -1
  1851. package/lib/node_modules/zrender/lib/animation/Animation.js +10 -10
  1852. package/lib/node_modules/zrender/lib/animation/Animation.js.map +1 -1
  1853. package/lib/node_modules/zrender/lib/animation/Animator.js +9 -9
  1854. package/lib/node_modules/zrender/lib/animation/Animator.js.map +1 -1
  1855. package/lib/node_modules/zrender/lib/animation/Clip.js +6 -6
  1856. package/lib/node_modules/zrender/lib/animation/Clip.js.map +1 -1
  1857. package/lib/node_modules/zrender/lib/animation/cubicEasing.js +2 -2
  1858. package/lib/node_modules/zrender/lib/animation/cubicEasing.js.map +1 -1
  1859. package/lib/node_modules/zrender/lib/animation/easing.js +2 -2
  1860. package/lib/node_modules/zrender/lib/animation/easing.js.map +1 -1
  1861. package/lib/node_modules/zrender/lib/animation/requestAnimationFrame.js +4 -4
  1862. package/lib/node_modules/zrender/lib/animation/requestAnimationFrame.js.map +1 -1
  1863. package/lib/node_modules/zrender/lib/canvas/Layer.js +16 -16
  1864. package/lib/node_modules/zrender/lib/canvas/Layer.js.map +1 -1
  1865. package/lib/node_modules/zrender/lib/canvas/Painter.js +21 -15
  1866. package/lib/node_modules/zrender/lib/canvas/Painter.js.map +1 -1
  1867. package/lib/node_modules/zrender/lib/canvas/dashStyle.js +1 -1
  1868. package/lib/node_modules/zrender/lib/canvas/dashStyle.js.map +1 -1
  1869. package/lib/node_modules/zrender/lib/canvas/graphic.js +16 -16
  1870. package/lib/node_modules/zrender/lib/canvas/graphic.js.map +1 -1
  1871. package/lib/node_modules/zrender/lib/canvas/helper.js.map +1 -1
  1872. package/lib/node_modules/zrender/lib/config.js +2 -2
  1873. package/lib/node_modules/zrender/lib/config.js.map +1 -1
  1874. package/lib/node_modules/zrender/lib/contain/arc.js +1 -1
  1875. package/lib/node_modules/zrender/lib/contain/arc.js.map +1 -1
  1876. package/lib/node_modules/zrender/lib/contain/cubic.js +1 -1
  1877. package/lib/node_modules/zrender/lib/contain/cubic.js.map +1 -1
  1878. package/lib/node_modules/zrender/lib/contain/line.js.map +1 -1
  1879. package/lib/node_modules/zrender/lib/contain/path.js +15 -15
  1880. package/lib/node_modules/zrender/lib/contain/path.js.map +1 -1
  1881. package/lib/node_modules/zrender/lib/contain/polygon.js +3 -3
  1882. package/lib/node_modules/zrender/lib/contain/polygon.js.map +1 -1
  1883. package/lib/node_modules/zrender/lib/contain/quadratic.js +1 -1
  1884. package/lib/node_modules/zrender/lib/contain/quadratic.js.map +1 -1
  1885. package/lib/node_modules/zrender/lib/contain/text.js +6 -6
  1886. package/lib/node_modules/zrender/lib/contain/text.js.map +1 -1
  1887. package/lib/node_modules/zrender/lib/contain/util.js.map +1 -1
  1888. package/lib/node_modules/zrender/lib/contain/windingLine.js +1 -1
  1889. package/lib/node_modules/zrender/lib/contain/windingLine.js.map +1 -1
  1890. package/lib/node_modules/zrender/lib/core/BoundingRect.js +19 -19
  1891. package/lib/node_modules/zrender/lib/core/BoundingRect.js.map +1 -1
  1892. package/lib/node_modules/zrender/lib/core/Eventful.js +2 -2
  1893. package/lib/node_modules/zrender/lib/core/Eventful.js.map +1 -1
  1894. package/lib/node_modules/zrender/lib/core/GestureMgr.js +1 -1
  1895. package/lib/node_modules/zrender/lib/core/GestureMgr.js.map +1 -1
  1896. package/lib/node_modules/zrender/lib/core/LRU.js +2 -2
  1897. package/lib/node_modules/zrender/lib/core/LRU.js.map +1 -1
  1898. package/lib/node_modules/zrender/lib/core/OrientedBoundingRect.js +14 -14
  1899. package/lib/node_modules/zrender/lib/core/OrientedBoundingRect.js.map +1 -1
  1900. package/lib/node_modules/zrender/lib/core/PathProxy.js +8 -8
  1901. package/lib/node_modules/zrender/lib/core/PathProxy.js.map +1 -1
  1902. package/lib/node_modules/zrender/lib/core/Point.js +2 -2
  1903. package/lib/node_modules/zrender/lib/core/Point.js.map +1 -1
  1904. package/lib/node_modules/zrender/lib/core/Transformable.js +3 -3
  1905. package/lib/node_modules/zrender/lib/core/Transformable.js.map +1 -1
  1906. package/lib/node_modules/zrender/lib/core/WeakMap.js +2 -2
  1907. package/lib/node_modules/zrender/lib/core/WeakMap.js.map +1 -1
  1908. package/lib/node_modules/zrender/lib/core/bbox.js +2 -2
  1909. package/lib/node_modules/zrender/lib/core/bbox.js.map +1 -1
  1910. package/lib/node_modules/zrender/lib/core/curve.js +1 -1
  1911. package/lib/node_modules/zrender/lib/core/curve.js.map +1 -1
  1912. package/lib/node_modules/zrender/lib/core/dom.js +3 -3
  1913. package/lib/node_modules/zrender/lib/core/dom.js.map +1 -1
  1914. package/lib/node_modules/zrender/lib/core/env.js +2 -2
  1915. package/lib/node_modules/zrender/lib/core/env.js.map +1 -1
  1916. package/lib/node_modules/zrender/lib/core/event.js +4 -4
  1917. package/lib/node_modules/zrender/lib/core/event.js.map +1 -1
  1918. package/lib/node_modules/zrender/lib/core/fourPointsTransform.js.map +1 -1
  1919. package/lib/node_modules/zrender/lib/core/matrix.js.map +1 -1
  1920. package/lib/node_modules/zrender/lib/core/platform.js.map +1 -1
  1921. package/lib/node_modules/zrender/lib/core/timsort.js +1 -1
  1922. package/lib/node_modules/zrender/lib/core/timsort.js.map +1 -1
  1923. package/lib/node_modules/zrender/lib/core/util.js +5 -1
  1924. package/lib/node_modules/zrender/lib/core/util.js.map +1 -1
  1925. package/lib/node_modules/zrender/lib/core/vector.js.map +1 -1
  1926. package/lib/node_modules/zrender/lib/dom/HandlerProxy.js +13 -13
  1927. package/lib/node_modules/zrender/lib/dom/HandlerProxy.js.map +1 -1
  1928. package/lib/node_modules/zrender/lib/graphic/CompoundPath.js +6 -6
  1929. package/lib/node_modules/zrender/lib/graphic/CompoundPath.js.map +1 -1
  1930. package/lib/node_modules/zrender/lib/graphic/Displayable.js +13 -13
  1931. package/lib/node_modules/zrender/lib/graphic/Displayable.js.map +1 -1
  1932. package/lib/node_modules/zrender/lib/graphic/Gradient.js +2 -2
  1933. package/lib/node_modules/zrender/lib/graphic/Gradient.js.map +1 -1
  1934. package/lib/node_modules/zrender/lib/graphic/Group.js +14 -9
  1935. package/lib/node_modules/zrender/lib/graphic/Group.js.map +1 -1
  1936. package/lib/node_modules/zrender/lib/graphic/Image.js +8 -8
  1937. package/lib/node_modules/zrender/lib/graphic/Image.js.map +1 -1
  1938. package/lib/node_modules/zrender/lib/graphic/IncrementalDisplayable.js +7 -7
  1939. package/lib/node_modules/zrender/lib/graphic/IncrementalDisplayable.js.map +1 -1
  1940. package/lib/node_modules/zrender/lib/graphic/LinearGradient.js +5 -5
  1941. package/lib/node_modules/zrender/lib/graphic/LinearGradient.js.map +1 -1
  1942. package/lib/node_modules/zrender/lib/graphic/Path.js +13 -13
  1943. package/lib/node_modules/zrender/lib/graphic/Path.js.map +1 -1
  1944. package/lib/node_modules/zrender/lib/graphic/RadialGradient.js +5 -5
  1945. package/lib/node_modules/zrender/lib/graphic/RadialGradient.js.map +1 -1
  1946. package/lib/node_modules/zrender/lib/graphic/TSpan.js +9 -9
  1947. package/lib/node_modules/zrender/lib/graphic/TSpan.js.map +1 -1
  1948. package/lib/node_modules/zrender/lib/graphic/Text.js +23 -20
  1949. package/lib/node_modules/zrender/lib/graphic/Text.js.map +1 -1
  1950. package/lib/node_modules/zrender/lib/graphic/helper/image.js +3 -3
  1951. package/lib/node_modules/zrender/lib/graphic/helper/image.js.map +1 -1
  1952. package/lib/node_modules/zrender/lib/graphic/helper/parseText.js +3 -3
  1953. package/lib/node_modules/zrender/lib/graphic/helper/parseText.js.map +1 -1
  1954. package/lib/node_modules/zrender/lib/graphic/helper/poly.js +2 -2
  1955. package/lib/node_modules/zrender/lib/graphic/helper/poly.js.map +1 -1
  1956. package/lib/node_modules/zrender/lib/graphic/helper/roundRect.js.map +1 -1
  1957. package/lib/node_modules/zrender/lib/graphic/helper/roundSector.js +1 -1
  1958. package/lib/node_modules/zrender/lib/graphic/helper/roundSector.js.map +1 -1
  1959. package/lib/node_modules/zrender/lib/graphic/helper/smoothBezier.js +2 -2
  1960. package/lib/node_modules/zrender/lib/graphic/helper/smoothBezier.js.map +1 -1
  1961. package/lib/node_modules/zrender/lib/graphic/helper/subPixelOptimize.js.map +1 -1
  1962. package/lib/node_modules/zrender/lib/graphic/shape/Arc.js +5 -5
  1963. package/lib/node_modules/zrender/lib/graphic/shape/Arc.js.map +1 -1
  1964. package/lib/node_modules/zrender/lib/graphic/shape/BezierCurve.js +7 -7
  1965. package/lib/node_modules/zrender/lib/graphic/shape/BezierCurve.js.map +1 -1
  1966. package/lib/node_modules/zrender/lib/graphic/shape/Circle.js +5 -5
  1967. package/lib/node_modules/zrender/lib/graphic/shape/Circle.js.map +1 -1
  1968. package/lib/node_modules/zrender/lib/graphic/shape/Ellipse.js +5 -5
  1969. package/lib/node_modules/zrender/lib/graphic/shape/Ellipse.js.map +1 -1
  1970. package/lib/node_modules/zrender/lib/graphic/shape/Line.js +6 -6
  1971. package/lib/node_modules/zrender/lib/graphic/shape/Line.js.map +1 -1
  1972. package/lib/node_modules/zrender/lib/graphic/shape/Polygon.js +6 -6
  1973. package/lib/node_modules/zrender/lib/graphic/shape/Polygon.js.map +1 -1
  1974. package/lib/node_modules/zrender/lib/graphic/shape/Polyline.js +6 -6
  1975. package/lib/node_modules/zrender/lib/graphic/shape/Polyline.js.map +1 -1
  1976. package/lib/node_modules/zrender/lib/graphic/shape/Rect.js +7 -7
  1977. package/lib/node_modules/zrender/lib/graphic/shape/Rect.js.map +1 -1
  1978. package/lib/node_modules/zrender/lib/graphic/shape/Ring.js +5 -5
  1979. package/lib/node_modules/zrender/lib/graphic/shape/Ring.js.map +1 -1
  1980. package/lib/node_modules/zrender/lib/graphic/shape/Sector.js +6 -6
  1981. package/lib/node_modules/zrender/lib/graphic/shape/Sector.js.map +1 -1
  1982. package/lib/node_modules/zrender/lib/mixin/Draggable.js +2 -2
  1983. package/lib/node_modules/zrender/lib/mixin/Draggable.js.map +1 -1
  1984. package/lib/node_modules/zrender/lib/svg/helper.js +6 -3
  1985. package/lib/node_modules/zrender/lib/svg/helper.js.map +1 -1
  1986. package/lib/node_modules/zrender/lib/tool/color.js +2 -2
  1987. package/lib/node_modules/zrender/lib/tool/color.js.map +1 -1
  1988. package/lib/node_modules/zrender/lib/tool/parseSVG.js +36 -31
  1989. package/lib/node_modules/zrender/lib/tool/parseSVG.js.map +1 -1
  1990. package/lib/node_modules/zrender/lib/tool/parseXML.js +1 -1
  1991. package/lib/node_modules/zrender/lib/tool/parseXML.js.map +1 -1
  1992. package/lib/node_modules/zrender/lib/tool/path.js +10 -10
  1993. package/lib/node_modules/zrender/lib/tool/path.js.map +1 -1
  1994. package/lib/node_modules/zrender/lib/tool/transformPath.js +4 -4
  1995. package/lib/node_modules/zrender/lib/tool/transformPath.js.map +1 -1
  1996. package/lib/node_modules/zrender/lib/zrender.js +19 -14
  1997. package/lib/node_modules/zrender/lib/zrender.js.map +1 -1
  1998. package/lib/node_modules/zrender/node_modules/tslib/tslib.es6.js.map +1 -1
  1999. package/lib/setting/page-config/PageConfig.js +12 -25
  2000. package/lib/setting/page-config/PageConfig.js.map +1 -1
  2001. package/lib/setting/page-config/PageConfig.vue_vue_type_style_index_0_scoped_true_lang.js +2 -2
  2002. package/lib/setting/page-config/index.js +5 -5
  2003. package/lib/setting/page-config/index.js.map +1 -1
  2004. package/lib/setting/page-config/props.js +1 -1
  2005. package/lib/setting/page-config/props.js.map +1 -1
  2006. package/lib/setting/provider-config/ProviderConfig.js +56 -33
  2007. package/lib/setting/provider-config/ProviderConfig.js.map +1 -1
  2008. package/lib/setting/provider-config/index.js +5 -5
  2009. package/lib/setting/provider-config/index.js.map +1 -1
  2010. package/lib/setting/provider-config/props.js +3 -2
  2011. package/lib/setting/provider-config/props.js.map +1 -1
  2012. package/lib/setting/renderer/Renderer.js +19 -0
  2013. package/lib/setting/renderer/Renderer.js.map +1 -0
  2014. package/lib/setting/renderer/index.js +11 -0
  2015. package/lib/setting/renderer/index.js.map +1 -0
  2016. package/lib/setting/renderer/props.js +10 -0
  2017. package/lib/setting/renderer/props.js.map +1 -0
  2018. package/lib/style.css +3475 -3397
  2019. package/lib/table/table/Table.js +109 -52
  2020. package/lib/table/table/Table.js.map +1 -1
  2021. package/lib/table/table/Table.vue_vue_type_style_index_0_scoped_true_lang.js +2 -36
  2022. package/lib/table/table/Table.vue_vue_type_style_index_0_scoped_true_lang.js.map +1 -1
  2023. package/lib/table/table/Table.vue_vue_type_style_index_1_lang.js +2 -2
  2024. package/lib/table/table/index.js +5 -5
  2025. package/lib/table/table/index.js.map +1 -1
  2026. package/lib/table/table/props.js +20 -24
  2027. package/lib/table/table/props.js.map +1 -1
  2028. package/lib/text/list/List.js +25 -37
  2029. package/lib/text/list/List.js.map +1 -1
  2030. package/lib/text/list/List.vue_vue_type_style_index_0_scoped_true_lang.js +2 -109
  2031. package/lib/text/list/List.vue_vue_type_style_index_0_scoped_true_lang.js.map +1 -1
  2032. package/lib/text/list/List.vue_vue_type_style_index_1_lang.js +2 -2
  2033. package/lib/text/list/index.js +5 -5
  2034. package/lib/text/list/index.js.map +1 -1
  2035. package/lib/text/list/props.js +4 -22
  2036. package/lib/text/list/props.js.map +1 -1
  2037. package/lib/text/proportion/Proportion.js +56 -53
  2038. package/lib/text/proportion/Proportion.js.map +1 -1
  2039. package/lib/text/proportion/Proportion.vue_vue_type_style_index_0_scoped_true_lang.js +2 -2
  2040. package/lib/text/proportion/index.js +5 -5
  2041. package/lib/text/proportion/index.js.map +1 -1
  2042. package/lib/text/proportion/props.js +7 -23
  2043. package/lib/text/proportion/props.js.map +1 -1
  2044. package/lib/text/scroll-text/ScrollText.js +4 -4
  2045. package/lib/text/scroll-text/ScrollText.vue_vue_type_style_index_0_scoped_true_lang.js +2 -2
  2046. package/lib/text/scroll-text/index.js +4 -4
  2047. package/lib/text/scroll-text/index.js.map +1 -1
  2048. package/lib/text/text/Text.js +57 -38
  2049. package/lib/text/text/Text.js.map +1 -1
  2050. package/lib/text/text/Text.vue_vue_type_style_index_0_scoped_true_lang.js +2 -2
  2051. package/lib/text/text/index.js +5 -5
  2052. package/lib/text/text/index.js.map +1 -1
  2053. package/lib/text/text/props.js +9 -24
  2054. package/lib/text/text/props.js.map +1 -1
  2055. package/lib/text/time-display/TimeDisplay.js +15 -31
  2056. package/lib/text/time-display/TimeDisplay.js.map +1 -1
  2057. package/lib/text/time-display/TimeDisplay.vue_vue_type_style_index_0_scoped_true_lang.js +2 -2
  2058. package/lib/text/time-display/index.js +5 -5
  2059. package/lib/text/time-display/index.js.map +1 -1
  2060. package/lib/text/time-display/props.js +4 -22
  2061. package/lib/text/time-display/props.js.map +1 -1
  2062. package/package.json +4 -6
@@ -1 +1 @@
1
- {"version":3,"file":"GeoSVGResource.js","sources":["../../../../../../node_modules/echarts/lib/coord/geo/GeoSVGResource.js"],"sourcesContent":["\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { parseSVG, makeViewBoxTransform } from 'zrender/lib/tool/parseSVG.js';\nimport Group from 'zrender/lib/graphic/Group.js';\nimport Rect from 'zrender/lib/graphic/shape/Rect.js';\nimport { assert, createHashMap, each } from 'zrender/lib/core/util.js';\nimport BoundingRect from 'zrender/lib/core/BoundingRect.js';\nimport { parseXML } from 'zrender/lib/tool/parseXML.js';\nimport { GeoSVGRegion } from './Region.js';\n/**\n * \"region available\" means that: enable users to set attribute `name=\"xxx\"` on those tags\n * to make it be a region.\n * 1. region styles and its label styles can be defined in echarts opton:\n * ```js\n * geo: {\n * regions: [{\n * name: 'xxx',\n * itemStyle: { ... },\n * label: { ... }\n * }, {\n * ...\n * },\n * ...]\n * };\n * ```\n * 2. name can be duplicated in different SVG tag. All of the tags with the same name share\n * a region option. For exampel if there are two <path> representing two lung lobes. They have\n * no common parents but both of them need to display label \"lung\" inside.\n */\n\nvar REGION_AVAILABLE_SVG_TAG_MAP = createHashMap(['rect', 'circle', 'line', 'ellipse', 'polygon', 'polyline', 'path', // <text> <tspan> are also enabled becuase some SVG might paint text itself,\n// but still need to trigger events or tooltip.\n'text', 'tspan', // <g> is also enabled because this case: if multiple tags share one name\n// and need label displayed, every tags will display the name, which is not\n// expected. So we can put them into a <g name=\"xxx\">. Thereby only one label\n// displayed and located based on the bounding rect of the <g>.\n'g']);\n\nvar GeoSVGResource =\n/** @class */\nfunction () {\n function GeoSVGResource(mapName, svg) {\n this.type = 'geoSVG'; // All used graphics. key: hostKey, value: root\n\n this._usedGraphicMap = createHashMap(); // All unused graphics.\n\n this._freedGraphics = [];\n this._mapName = mapName; // Only perform parse to XML object here, which might be time\n // consiming for large SVG.\n // Although convert XML to zrender element is also time consiming,\n // if we do it here, the clone of zrender elements has to be\n // required. So we do it once for each geo instance, util real\n // performance issues call for optimizing it.\n\n this._parsedXML = parseXML(svg);\n }\n\n GeoSVGResource.prototype.load = function ()\n /* nameMap: NameMap */\n {\n // In the \"load\" stage, graphic need to be built to\n // get boundingRect for geo coordinate system.\n var firstGraphic = this._firstGraphic; // Create the return data structure only when first graphic created.\n // Because they will be used in geo coordinate system update stage,\n // and `regions` will be mounted at `geo` coordinate system,\n // in which there is no \"view\" info, so that it should better not to\n // make references to graphic elements.\n\n if (!firstGraphic) {\n firstGraphic = this._firstGraphic = this._buildGraphic(this._parsedXML);\n\n this._freedGraphics.push(firstGraphic);\n\n this._boundingRect = this._firstGraphic.boundingRect.clone(); // PENDING: `nameMap` will not be supported until some real requirement come.\n // if (nameMap) {\n // named = applyNameMap(named, nameMap);\n // }\n\n var _a = createRegions(firstGraphic.named),\n regions = _a.regions,\n regionsMap = _a.regionsMap;\n\n this._regions = regions;\n this._regionsMap = regionsMap;\n }\n\n return {\n boundingRect: this._boundingRect,\n regions: this._regions,\n regionsMap: this._regionsMap\n };\n };\n\n GeoSVGResource.prototype._buildGraphic = function (svgXML) {\n var result;\n var rootFromParse;\n\n try {\n result = svgXML && parseSVG(svgXML, {\n ignoreViewBox: true,\n ignoreRootClip: true\n }) || {};\n rootFromParse = result.root;\n assert(rootFromParse != null);\n } catch (e) {\n throw new Error('Invalid svg format\\n' + e.message);\n } // Note: we keep the covenant that the root has no transform. So always add an extra root.\n\n\n var root = new Group();\n root.add(rootFromParse);\n root.isGeoSVGGraphicRoot = true; // [THE_RULE_OF_VIEWPORT_AND_VIEWBOX]\n //\n // Consider: `<svg width=\"...\" height=\"...\" viewBox=\"...\">`\n // - the `width/height` we call it `svgWidth/svgHeight` for short.\n // - `(0, 0, svgWidth, svgHeight)` defines the viewport of the SVG, or say,\n // \"viewport boundingRect\", or `boundingRect` for short.\n // - `viewBox` defines the transform from the real content ot the viewport.\n // `viewBox` has the same unit as the content of SVG.\n // If `viewBox` exists, a transform is defined, so the unit of `svgWidth/svgHeight` become\n // different from the content of SVG. Otherwise, they are the same.\n //\n // If both `svgWidth/svgHeight/viewBox` are specified in a SVG file, the transform rule will be:\n // 0. `boundingRect` is `(0, 0, svgWidth, svgHeight)`. Set it to Geo['_rect'] (View['_rect']).\n // 1. Make a transform from `viewBox` to `boundingRect`.\n // Note: only suport `preserveAspectRatio 'xMidYMid'` here. That is, this transform will preserve\n // the aspect ratio.\n // 2. Make a transform from boundingRect to Geo['_viewRect'] (View['_viewRect'])\n // (`Geo`/`View` will do this job).\n // Note: this transform might not preserve aspect radio, which depending on how users specify\n // viewRect in echarts option (e.g., `geo.left/top/width/height` will not preserve aspect ratio,\n // but `geo.layoutCenter/layoutSize` will preserve aspect ratio).\n //\n // If `svgWidth/svgHeight` not specified, we use `viewBox` as the `boundingRect` to make the SVG\n // layout look good.\n //\n // If neither `svgWidth/svgHeight` nor `viewBox` are not specified, we calculate the boundingRect\n // of the SVG content and use them to make SVG layout look good.\n\n var svgWidth = result.width;\n var svgHeight = result.height;\n var viewBoxRect = result.viewBoxRect;\n var boundingRect = this._boundingRect;\n\n if (!boundingRect) {\n var bRectX = void 0;\n var bRectY = void 0;\n var bRectWidth = void 0;\n var bRectHeight = void 0;\n\n if (svgWidth != null) {\n bRectX = 0;\n bRectWidth = svgWidth;\n } else if (viewBoxRect) {\n bRectX = viewBoxRect.x;\n bRectWidth = viewBoxRect.width;\n }\n\n if (svgHeight != null) {\n bRectY = 0;\n bRectHeight = svgHeight;\n } else if (viewBoxRect) {\n bRectY = viewBoxRect.y;\n bRectHeight = viewBoxRect.height;\n } // If both viewBox and svgWidth/svgHeight not specified,\n // we have to determine how to layout those element to make them look good.\n\n\n if (bRectX == null || bRectY == null) {\n var calculatedBoundingRect = rootFromParse.getBoundingRect();\n\n if (bRectX == null) {\n bRectX = calculatedBoundingRect.x;\n bRectWidth = calculatedBoundingRect.width;\n }\n\n if (bRectY == null) {\n bRectY = calculatedBoundingRect.y;\n bRectHeight = calculatedBoundingRect.height;\n }\n }\n\n boundingRect = this._boundingRect = new BoundingRect(bRectX, bRectY, bRectWidth, bRectHeight);\n }\n\n if (viewBoxRect) {\n var viewBoxTransform = makeViewBoxTransform(viewBoxRect, boundingRect); // Only support `preserveAspectRatio 'xMidYMid'`\n\n rootFromParse.scaleX = rootFromParse.scaleY = viewBoxTransform.scale;\n rootFromParse.x = viewBoxTransform.x;\n rootFromParse.y = viewBoxTransform.y;\n } // SVG needs to clip based on `viewBox`. And some SVG files really rely on this feature.\n // They do not strictly confine all of the content inside a display rect, but deliberately\n // use a `viewBox` to define a displayable rect.\n // PENDING:\n // The drawback of the `setClipPath` here is: the region label (genereted by echarts) near the\n // edge might also be clipped, because region labels are put as `textContent` of the SVG path.\n\n\n root.setClipPath(new Rect({\n shape: boundingRect.plain()\n }));\n var named = [];\n each(result.named, function (namedItem) {\n if (REGION_AVAILABLE_SVG_TAG_MAP.get(namedItem.svgNodeTagLower) != null) {\n named.push(namedItem);\n setSilent(namedItem.el);\n }\n });\n return {\n root: root,\n boundingRect: boundingRect,\n named: named\n };\n };\n /**\n * Consider:\n * (1) One graphic element can not be shared by different `geoView` running simultaneously.\n * Notice, also need to consider multiple echarts instances share a `mapRecord`.\n * (2) Converting SVG to graphic elements is time consuming.\n * (3) In the current architecture, `load` should be called frequently to get boundingRect,\n * and it is called without view info.\n * So we maintain graphic elements in this module, and enables `view` to use/return these\n * graphics from/to the pool with it's uid.\n */\n\n\n GeoSVGResource.prototype.useGraphic = function (hostKey\n /*, nameMap: NameMap */\n ) {\n var usedRootMap = this._usedGraphicMap;\n var svgGraphic = usedRootMap.get(hostKey);\n\n if (svgGraphic) {\n return svgGraphic;\n }\n\n svgGraphic = this._freedGraphics.pop() // use the first boundingRect to avoid duplicated boundingRect calculation.\n || this._buildGraphic(this._parsedXML);\n usedRootMap.set(hostKey, svgGraphic); // PENDING: `nameMap` will not be supported until some real requirement come.\n // `nameMap` can only be obtained from echarts option.\n // The original `named` must not be modified.\n // if (nameMap) {\n // svgGraphic = extend({}, svgGraphic);\n // svgGraphic.named = applyNameMap(svgGraphic.named, nameMap);\n // }\n\n return svgGraphic;\n };\n\n GeoSVGResource.prototype.freeGraphic = function (hostKey) {\n var usedRootMap = this._usedGraphicMap;\n var svgGraphic = usedRootMap.get(hostKey);\n\n if (svgGraphic) {\n usedRootMap.removeKey(hostKey);\n\n this._freedGraphics.push(svgGraphic);\n }\n };\n\n return GeoSVGResource;\n}();\n\nexport { GeoSVGResource };\n\nfunction setSilent(el) {\n // Only named element has silent: false, other elements should\n // act as background and has no user interaction.\n el.silent = false; // text|tspan will be converted to group.\n\n if (el.isGroup) {\n el.traverse(function (child) {\n child.silent = false;\n });\n }\n}\n\nfunction createRegions(named) {\n var regions = [];\n var regionsMap = createHashMap(); // Create resions only for the first graphic.\n\n each(named, function (namedItem) {\n // Region has feature to calculate center for tooltip or other features.\n // If there is a <g name=\"xxx\">, the center should be the center of the\n // bounding rect of the g.\n if (namedItem.namedFrom != null) {\n return;\n }\n\n var region = new GeoSVGRegion(namedItem.name, namedItem.el); // PENDING: if `nameMap` supported, this region can not be mounted on\n // `this`, but can only be created each time `load()` called.\n\n regions.push(region); // PENDING: if multiple tag named with the same name, only one will be\n // found by `_regionsMap`. `_regionsMap` is used to find a coordinate\n // by name. We use `region.getCenter()` as the coordinate.\n\n regionsMap.set(namedItem.name, region);\n });\n return {\n regions: regions,\n regionsMap: regionsMap\n };\n} // PENDING: `nameMap` will not be supported until some real requirement come.\n// /**\n// * Use the alias in geoNameMap.\n// * The input `named` must not be modified.\n// */\n// function applyNameMap(\n// named: GeoSVGGraphicRecord['named'],\n// nameMap: NameMap\n// ): GeoSVGGraphicRecord['named'] {\n// const result = [] as GeoSVGGraphicRecord['named'];\n// for (let i = 0; i < named.length; i++) {\n// let regionGraphic = named[i];\n// const name = regionGraphic.name;\n// if (nameMap && nameMap.hasOwnProperty(name)) {\n// regionGraphic = extend({}, regionGraphic);\n// regionGraphic.name = name;\n// }\n// result.push(regionGraphic);\n// }\n// return result;\n// }"],"names":[],"mappings":";;;;;;;AAuEA,IAAI,+BAA+B,cAAc;AAAA,EAAC;AAAA,EAAQ;AAAA,EAAU;AAA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;AAED,iBAAa,KAAK,eAAe,IAAK,KACnC,KAAK,cAAc,KAAK,UAAU;AACrC,gBAAY,IAAI,SAAS,UAAU;AAQnC,WAAO;AAAA,EACX;AAEE,kBAAe,UAAU,cAAc,SAAU,SAAS;AACxD,QAAI,cAAc,KAAK;AACvB,QAAI,aAAa,YAAY,IAAI,OAAO;AAExC,QAAI,YAAY;AACd,kBAAY,UAAU,OAAO;AAE7B,WAAK,eAAe,KAAK,UAAU;AAAA,IACpC;AAAA,EACL;AAEE,SAAO;AACT,EAAI;AAIJ,mBAAmB,IAAI;AAGrB,KAAG,SAAS;AAEZ,MAAI,GAAG,SAAS;AACd,OAAG,SAAS,SAAU,OAAO;AAC3B,YAAM,SAAS;AAAA,IACrB,CAAK;AAAA,EACF;AACH;AAEA,uBAAuB,OAAO;AAC5B,MAAI,UAAU,CAAA;AACd,MAAI,aAAa;AAEjB,OAAK,OAAO,SAAU,WAAW;AAI/B,QAAI,UAAU,aAAa,MAAM;AAC/B;AAAA,IACD;AAED,QAAI,SAAS,IAAI,aAAa,UAAU,MAAM,UAAU,EAAE;AAG1D,YAAQ,KAAK,MAAM;AAInB,eAAW,IAAI,UAAU,MAAM,MAAM;AAAA,EACzC,CAAG;AACD,SAAO;AAAA,IACL;AAAA,IACA;AAAA,EACJ;AACA;;"}
1
+ {"version":3,"file":"GeoSVGResource.js","sources":["../../../../../../node_modules/echarts/lib/coord/geo/GeoSVGResource.js"],"sourcesContent":["\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { parseSVG, makeViewBoxTransform } from 'zrender/lib/tool/parseSVG.js';\nimport Group from 'zrender/lib/graphic/Group.js';\nimport Rect from 'zrender/lib/graphic/shape/Rect.js';\nimport { assert, createHashMap, each } from 'zrender/lib/core/util.js';\nimport BoundingRect from 'zrender/lib/core/BoundingRect.js';\nimport { parseXML } from 'zrender/lib/tool/parseXML.js';\nimport { GeoSVGRegion } from './Region.js';\n/**\n * \"region available\" means that: enable users to set attribute `name=\"xxx\"` on those tags\n * to make it be a region.\n * 1. region styles and its label styles can be defined in echarts opton:\n * ```js\n * geo: {\n * regions: [{\n * name: 'xxx',\n * itemStyle: { ... },\n * label: { ... }\n * }, {\n * ...\n * },\n * ...]\n * };\n * ```\n * 2. name can be duplicated in different SVG tag. All of the tags with the same name share\n * a region option. For exampel if there are two <path> representing two lung lobes. They have\n * no common parents but both of them need to display label \"lung\" inside.\n */\n\nvar REGION_AVAILABLE_SVG_TAG_MAP = createHashMap(['rect', 'circle', 'line', 'ellipse', 'polygon', 'polyline', 'path', // <text> <tspan> are also enabled becuase some SVG might paint text itself,\n// but still need to trigger events or tooltip.\n'text', 'tspan', // <g> is also enabled because this case: if multiple tags share one name\n// and need label displayed, every tags will display the name, which is not\n// expected. So we can put them into a <g name=\"xxx\">. Thereby only one label\n// displayed and located based on the bounding rect of the <g>.\n'g']);\n\nvar GeoSVGResource =\n/** @class */\nfunction () {\n function GeoSVGResource(mapName, svg) {\n this.type = 'geoSVG'; // All used graphics. key: hostKey, value: root\n\n this._usedGraphicMap = createHashMap(); // All unused graphics.\n\n this._freedGraphics = [];\n this._mapName = mapName; // Only perform parse to XML object here, which might be time\n // consiming for large SVG.\n // Although convert XML to zrender element is also time consiming,\n // if we do it here, the clone of zrender elements has to be\n // required. So we do it once for each geo instance, util real\n // performance issues call for optimizing it.\n\n this._parsedXML = parseXML(svg);\n }\n\n GeoSVGResource.prototype.load = function ()\n /* nameMap: NameMap */\n {\n // In the \"load\" stage, graphic need to be built to\n // get boundingRect for geo coordinate system.\n var firstGraphic = this._firstGraphic; // Create the return data structure only when first graphic created.\n // Because they will be used in geo coordinate system update stage,\n // and `regions` will be mounted at `geo` coordinate system,\n // in which there is no \"view\" info, so that it should better not to\n // make references to graphic elements.\n\n if (!firstGraphic) {\n firstGraphic = this._firstGraphic = this._buildGraphic(this._parsedXML);\n\n this._freedGraphics.push(firstGraphic);\n\n this._boundingRect = this._firstGraphic.boundingRect.clone(); // PENDING: `nameMap` will not be supported until some real requirement come.\n // if (nameMap) {\n // named = applyNameMap(named, nameMap);\n // }\n\n var _a = createRegions(firstGraphic.named),\n regions = _a.regions,\n regionsMap = _a.regionsMap;\n\n this._regions = regions;\n this._regionsMap = regionsMap;\n }\n\n return {\n boundingRect: this._boundingRect,\n regions: this._regions,\n regionsMap: this._regionsMap\n };\n };\n\n GeoSVGResource.prototype._buildGraphic = function (svgXML) {\n var result;\n var rootFromParse;\n\n try {\n result = svgXML && parseSVG(svgXML, {\n ignoreViewBox: true,\n ignoreRootClip: true\n }) || {};\n rootFromParse = result.root;\n assert(rootFromParse != null);\n } catch (e) {\n throw new Error('Invalid svg format\\n' + e.message);\n } // Note: we keep the covenant that the root has no transform. So always add an extra root.\n\n\n var root = new Group();\n root.add(rootFromParse);\n root.isGeoSVGGraphicRoot = true; // [THE_RULE_OF_VIEWPORT_AND_VIEWBOX]\n //\n // Consider: `<svg width=\"...\" height=\"...\" viewBox=\"...\">`\n // - the `width/height` we call it `svgWidth/svgHeight` for short.\n // - `(0, 0, svgWidth, svgHeight)` defines the viewport of the SVG, or say,\n // \"viewport boundingRect\", or `boundingRect` for short.\n // - `viewBox` defines the transform from the real content ot the viewport.\n // `viewBox` has the same unit as the content of SVG.\n // If `viewBox` exists, a transform is defined, so the unit of `svgWidth/svgHeight` become\n // different from the content of SVG. Otherwise, they are the same.\n //\n // If both `svgWidth/svgHeight/viewBox` are specified in a SVG file, the transform rule will be:\n // 0. `boundingRect` is `(0, 0, svgWidth, svgHeight)`. Set it to Geo['_rect'] (View['_rect']).\n // 1. Make a transform from `viewBox` to `boundingRect`.\n // Note: only suport `preserveAspectRatio 'xMidYMid'` here. That is, this transform will preserve\n // the aspect ratio.\n // 2. Make a transform from boundingRect to Geo['_viewRect'] (View['_viewRect'])\n // (`Geo`/`View` will do this job).\n // Note: this transform might not preserve aspect radio, which depending on how users specify\n // viewRect in echarts option (e.g., `geo.left/top/width/height` will not preserve aspect ratio,\n // but `geo.layoutCenter/layoutSize` will preserve aspect ratio).\n //\n // If `svgWidth/svgHeight` not specified, we use `viewBox` as the `boundingRect` to make the SVG\n // layout look good.\n //\n // If neither `svgWidth/svgHeight` nor `viewBox` are not specified, we calculate the boundingRect\n // of the SVG content and use them to make SVG layout look good.\n\n var svgWidth = result.width;\n var svgHeight = result.height;\n var viewBoxRect = result.viewBoxRect;\n var boundingRect = this._boundingRect;\n\n if (!boundingRect) {\n var bRectX = void 0;\n var bRectY = void 0;\n var bRectWidth = void 0;\n var bRectHeight = void 0;\n\n if (svgWidth != null) {\n bRectX = 0;\n bRectWidth = svgWidth;\n } else if (viewBoxRect) {\n bRectX = viewBoxRect.x;\n bRectWidth = viewBoxRect.width;\n }\n\n if (svgHeight != null) {\n bRectY = 0;\n bRectHeight = svgHeight;\n } else if (viewBoxRect) {\n bRectY = viewBoxRect.y;\n bRectHeight = viewBoxRect.height;\n } // If both viewBox and svgWidth/svgHeight not specified,\n // we have to determine how to layout those element to make them look good.\n\n\n if (bRectX == null || bRectY == null) {\n var calculatedBoundingRect = rootFromParse.getBoundingRect();\n\n if (bRectX == null) {\n bRectX = calculatedBoundingRect.x;\n bRectWidth = calculatedBoundingRect.width;\n }\n\n if (bRectY == null) {\n bRectY = calculatedBoundingRect.y;\n bRectHeight = calculatedBoundingRect.height;\n }\n }\n\n boundingRect = this._boundingRect = new BoundingRect(bRectX, bRectY, bRectWidth, bRectHeight);\n }\n\n if (viewBoxRect) {\n var viewBoxTransform = makeViewBoxTransform(viewBoxRect, boundingRect); // Only support `preserveAspectRatio 'xMidYMid'`\n\n rootFromParse.scaleX = rootFromParse.scaleY = viewBoxTransform.scale;\n rootFromParse.x = viewBoxTransform.x;\n rootFromParse.y = viewBoxTransform.y;\n } // SVG needs to clip based on `viewBox`. And some SVG files really rely on this feature.\n // They do not strictly confine all of the content inside a display rect, but deliberately\n // use a `viewBox` to define a displayable rect.\n // PENDING:\n // The drawback of the `setClipPath` here is: the region label (genereted by echarts) near the\n // edge might also be clipped, because region labels are put as `textContent` of the SVG path.\n\n\n root.setClipPath(new Rect({\n shape: boundingRect.plain()\n }));\n var named = [];\n each(result.named, function (namedItem) {\n if (REGION_AVAILABLE_SVG_TAG_MAP.get(namedItem.svgNodeTagLower) != null) {\n named.push(namedItem);\n setSilent(namedItem.el);\n }\n });\n return {\n root: root,\n boundingRect: boundingRect,\n named: named\n };\n };\n /**\n * Consider:\n * (1) One graphic element can not be shared by different `geoView` running simultaneously.\n * Notice, also need to consider multiple echarts instances share a `mapRecord`.\n * (2) Converting SVG to graphic elements is time consuming.\n * (3) In the current architecture, `load` should be called frequently to get boundingRect,\n * and it is called without view info.\n * So we maintain graphic elements in this module, and enables `view` to use/return these\n * graphics from/to the pool with it's uid.\n */\n\n\n GeoSVGResource.prototype.useGraphic = function (hostKey\n /*, nameMap: NameMap */\n ) {\n var usedRootMap = this._usedGraphicMap;\n var svgGraphic = usedRootMap.get(hostKey);\n\n if (svgGraphic) {\n return svgGraphic;\n }\n\n svgGraphic = this._freedGraphics.pop() // use the first boundingRect to avoid duplicated boundingRect calculation.\n || this._buildGraphic(this._parsedXML);\n usedRootMap.set(hostKey, svgGraphic); // PENDING: `nameMap` will not be supported until some real requirement come.\n // `nameMap` can only be obtained from echarts option.\n // The original `named` must not be modified.\n // if (nameMap) {\n // svgGraphic = extend({}, svgGraphic);\n // svgGraphic.named = applyNameMap(svgGraphic.named, nameMap);\n // }\n\n return svgGraphic;\n };\n\n GeoSVGResource.prototype.freeGraphic = function (hostKey) {\n var usedRootMap = this._usedGraphicMap;\n var svgGraphic = usedRootMap.get(hostKey);\n\n if (svgGraphic) {\n usedRootMap.removeKey(hostKey);\n\n this._freedGraphics.push(svgGraphic);\n }\n };\n\n return GeoSVGResource;\n}();\n\nexport { GeoSVGResource };\n\nfunction setSilent(el) {\n // Only named element has silent: false, other elements should\n // act as background and has no user interaction.\n el.silent = false; // text|tspan will be converted to group.\n\n if (el.isGroup) {\n el.traverse(function (child) {\n child.silent = false;\n });\n }\n}\n\nfunction createRegions(named) {\n var regions = [];\n var regionsMap = createHashMap(); // Create resions only for the first graphic.\n\n each(named, function (namedItem) {\n // Region has feature to calculate center for tooltip or other features.\n // If there is a <g name=\"xxx\">, the center should be the center of the\n // bounding rect of the g.\n if (namedItem.namedFrom != null) {\n return;\n }\n\n var region = new GeoSVGRegion(namedItem.name, namedItem.el); // PENDING: if `nameMap` supported, this region can not be mounted on\n // `this`, but can only be created each time `load()` called.\n\n regions.push(region); // PENDING: if multiple tag named with the same name, only one will be\n // found by `_regionsMap`. `_regionsMap` is used to find a coordinate\n // by name. We use `region.getCenter()` as the coordinate.\n\n regionsMap.set(namedItem.name, region);\n });\n return {\n regions: regions,\n regionsMap: regionsMap\n };\n} // PENDING: `nameMap` will not be supported until some real requirement come.\n// /**\n// * Use the alias in geoNameMap.\n// * The input `named` must not be modified.\n// */\n// function applyNameMap(\n// named: GeoSVGGraphicRecord['named'],\n// nameMap: NameMap\n// ): GeoSVGGraphicRecord['named'] {\n// const result = [] as GeoSVGGraphicRecord['named'];\n// for (let i = 0; i < named.length; i++) {\n// let regionGraphic = named[i];\n// const name = regionGraphic.name;\n// if (nameMap && nameMap.hasOwnProperty(name)) {\n// regionGraphic = extend({}, regionGraphic);\n// regionGraphic.name = name;\n// }\n// result.push(regionGraphic);\n// }\n// return result;\n// }"],"names":["GeoSVGResource"],"mappings":";;;;;;;AAuEA,IAAI,+BAA+B,cAAc;AAAA,EAAC;AAAA,EAAQ;AAAA,EAAU;AAAA,EAAQ;AAAA,EAAW;AAAA,EAAW;AAAA,EAAY;AAAA,EAE9G;AAAA,EAAQ;AAAA,EAIR;AAAG,CAAC;AAED,IAAC,iBAEJ,WAAY;AACV,WAASA,gBAAe,SAAS,KAAK;AACpC,SAAK,OAAO;AAEZ,SAAK,kBAAkB;AAEvB,SAAK,iBAAiB;AACtB,SAAK,WAAW;AAOhB,SAAK,aAAa,SAAS,GAAG;AAAA,EAC/B;AAED,EAAAA,gBAAe,UAAU,OAAO,WAEhC;AAGE,QAAI,eAAe,KAAK;AAMxB,QAAI,CAAC,cAAc;AACjB,qBAAe,KAAK,gBAAgB,KAAK,cAAc,KAAK,UAAU;AAEtE,WAAK,eAAe,KAAK,YAAY;AAErC,WAAK,gBAAgB,KAAK,cAAc,aAAa,MAAK;AAK1D,UAAI,KAAK,cAAc,aAAa,KAAK,GACrC,UAAU,GAAG,SACb,aAAa,GAAG;AAEpB,WAAK,WAAW;AAChB,WAAK,cAAc;AAAA,IACpB;AAED,WAAO;AAAA,MACL,cAAc,KAAK;AAAA,MACnB,SAAS,KAAK;AAAA,MACd,YAAY,KAAK;AAAA,IACvB;AAAA,EACA;AAEE,EAAAA,gBAAe,UAAU,gBAAgB,SAAU,QAAQ;AACzD,QAAI;AACJ,QAAI;AAEJ,QAAI;AACF,eAAS,UAAU,SAAS,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AA,IACA;AAAA,EACJ;AACA;"}
@@ -212,5 +212,11 @@ var GeoSVGRegion = function(_super) {
212
212
  };
213
213
  return GeoSVGRegion2;
214
214
  }(Region);
215
- export { GeoJSONLineStringGeometry, GeoJSONPolygonGeometry, GeoJSONRegion, GeoSVGRegion, Region };
215
+ export {
216
+ GeoJSONLineStringGeometry,
217
+ GeoJSONPolygonGeometry,
218
+ GeoJSONRegion,
219
+ GeoSVGRegion,
220
+ Region
221
+ };
216
222
  //# sourceMappingURL=Region.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Region.js","sources":["../../../../../../node_modules/echarts/lib/coord/geo/Region.js"],"sourcesContent":["\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport BoundingRect from 'zrender/lib/core/BoundingRect.js';\nimport * as vec2 from 'zrender/lib/core/vector.js';\nimport * as polygonContain from 'zrender/lib/contain/polygon.js';\nimport * as matrix from 'zrender/lib/core/matrix.js';\nimport { each } from 'zrender/lib/core/util.js';\nvar TMP_TRANSFORM = [];\n\nfunction transformPoints(points, transform) {\n for (var p = 0; p < points.length; p++) {\n vec2.applyTransform(points[p], points[p], transform);\n }\n}\n\nfunction updateBBoxFromPoints(points, min, max, projection) {\n for (var i = 0; i < points.length; i++) {\n var p = points[i];\n\n if (projection) {\n // projection may return null point.\n p = projection.project(p);\n }\n\n if (p && isFinite(p[0]) && isFinite(p[1])) {\n vec2.min(min, min, p);\n vec2.max(max, max, p);\n }\n }\n}\n\nfunction centroid(points) {\n var signedArea = 0;\n var cx = 0;\n var cy = 0;\n var len = points.length;\n var x0 = points[len - 1][0];\n var y0 = points[len - 1][1]; // Polygon should been closed.\n\n for (var i = 0; i < len; i++) {\n var x1 = points[i][0];\n var y1 = points[i][1];\n var a = x0 * y1 - x1 * y0;\n signedArea += a;\n cx += (x0 + x1) * a;\n cy += (y0 + y1) * a;\n x0 = x1;\n y0 = y1;\n }\n\n return signedArea ? [cx / signedArea / 3, cy / signedArea / 3, signedArea] : [points[0][0] || 0, points[0][1] || 0];\n}\n\nvar Region =\n/** @class */\nfunction () {\n function Region(name) {\n this.name = name;\n }\n\n Region.prototype.setCenter = function (center) {\n this._center = center;\n };\n /**\n * Get center point in data unit. That is,\n * for GeoJSONRegion, the unit is lat/lng,\n * for GeoSVGRegion, the unit is SVG local coord.\n */\n\n\n Region.prototype.getCenter = function () {\n var center = this._center;\n\n if (!center) {\n // In most cases there are no need to calculate this center.\n // So calculate only when called.\n center = this._center = this.calcCenter();\n }\n\n return center;\n };\n\n return Region;\n}();\n\nexport { Region };\n\nvar GeoJSONPolygonGeometry =\n/** @class */\nfunction () {\n function GeoJSONPolygonGeometry(exterior, interiors) {\n this.type = 'polygon';\n this.exterior = exterior;\n this.interiors = interiors;\n }\n\n return GeoJSONPolygonGeometry;\n}();\n\nexport { GeoJSONPolygonGeometry };\n\nvar GeoJSONLineStringGeometry =\n/** @class */\nfunction () {\n function GeoJSONLineStringGeometry(points) {\n this.type = 'linestring';\n this.points = points;\n }\n\n return GeoJSONLineStringGeometry;\n}();\n\nexport { GeoJSONLineStringGeometry };\n\nvar GeoJSONRegion =\n/** @class */\nfunction (_super) {\n __extends(GeoJSONRegion, _super);\n\n function GeoJSONRegion(name, geometries, cp) {\n var _this = _super.call(this, name) || this;\n\n _this.type = 'geoJSON';\n _this.geometries = geometries;\n _this._center = cp && [cp[0], cp[1]];\n return _this;\n }\n\n GeoJSONRegion.prototype.calcCenter = function () {\n var geometries = this.geometries;\n var largestGeo;\n var largestGeoSize = 0;\n\n for (var i = 0; i < geometries.length; i++) {\n var geo = geometries[i];\n var exterior = geo.exterior; // Simple trick to use points count instead of polygon area as region size.\n // Ignore linestring\n\n var size = exterior && exterior.length;\n\n if (size > largestGeoSize) {\n largestGeo = geo;\n largestGeoSize = size;\n }\n }\n\n if (largestGeo) {\n return centroid(largestGeo.exterior);\n } // from bounding rect by default.\n\n\n var rect = this.getBoundingRect();\n return [rect.x + rect.width / 2, rect.y + rect.height / 2];\n };\n\n GeoJSONRegion.prototype.getBoundingRect = function (projection) {\n var rect = this._rect; // Always recalculate if using projection.\n\n if (rect && !projection) {\n return rect;\n }\n\n var min = [Infinity, Infinity];\n var max = [-Infinity, -Infinity];\n var geometries = this.geometries;\n each(geometries, function (geo) {\n if (geo.type === 'polygon') {\n // Doesn't consider hole\n updateBBoxFromPoints(geo.exterior, min, max, projection);\n } else {\n each(geo.points, function (points) {\n updateBBoxFromPoints(points, min, max, projection);\n });\n }\n }); // Normalie invalid bounding.\n\n if (!(isFinite(min[0]) && isFinite(min[1]) && isFinite(max[0]) && isFinite(max[1]))) {\n min[0] = min[1] = max[0] = max[1] = 0;\n }\n\n rect = new BoundingRect(min[0], min[1], max[0] - min[0], max[1] - min[1]);\n\n if (!projection) {\n this._rect = rect;\n }\n\n return rect;\n };\n\n GeoJSONRegion.prototype.contain = function (coord) {\n var rect = this.getBoundingRect();\n var geometries = this.geometries;\n\n if (!rect.contain(coord[0], coord[1])) {\n return false;\n }\n\n loopGeo: for (var i = 0, len = geometries.length; i < len; i++) {\n var geo = geometries[i]; // Only support polygon.\n\n if (geo.type !== 'polygon') {\n continue;\n }\n\n var exterior = geo.exterior;\n var interiors = geo.interiors;\n\n if (polygonContain.contain(exterior, coord[0], coord[1])) {\n // Not in the region if point is in the hole.\n for (var k = 0; k < (interiors ? interiors.length : 0); k++) {\n if (polygonContain.contain(interiors[k], coord[0], coord[1])) {\n continue loopGeo;\n }\n }\n\n return true;\n }\n }\n\n return false;\n };\n /**\n * Transform the raw coords to target bounding.\n * @param x\n * @param y\n * @param width\n * @param height\n */\n\n\n GeoJSONRegion.prototype.transformTo = function (x, y, width, height) {\n var rect = this.getBoundingRect();\n var aspect = rect.width / rect.height;\n\n if (!width) {\n width = aspect * height;\n } else if (!height) {\n height = width / aspect;\n }\n\n var target = new BoundingRect(x, y, width, height);\n var transform = rect.calculateTransform(target);\n var geometries = this.geometries;\n\n for (var i = 0; i < geometries.length; i++) {\n var geo = geometries[i];\n\n if (geo.type === 'polygon') {\n transformPoints(geo.exterior, transform);\n each(geo.interiors, function (interior) {\n transformPoints(interior, transform);\n });\n } else {\n each(geo.points, function (points) {\n transformPoints(points, transform);\n });\n }\n }\n\n rect = this._rect;\n rect.copy(target); // Update center\n\n this._center = [rect.x + rect.width / 2, rect.y + rect.height / 2];\n };\n\n GeoJSONRegion.prototype.cloneShallow = function (name) {\n name == null && (name = this.name);\n var newRegion = new GeoJSONRegion(name, this.geometries, this._center);\n newRegion._rect = this._rect;\n newRegion.transformTo = null; // Simply avoid to be called.\n\n return newRegion;\n };\n\n return GeoJSONRegion;\n}(Region);\n\nexport { GeoJSONRegion };\n\nvar GeoSVGRegion =\n/** @class */\nfunction (_super) {\n __extends(GeoSVGRegion, _super);\n\n function GeoSVGRegion(name, elOnlyForCalculate) {\n var _this = _super.call(this, name) || this;\n\n _this.type = 'geoSVG';\n _this._elOnlyForCalculate = elOnlyForCalculate;\n return _this;\n }\n\n GeoSVGRegion.prototype.calcCenter = function () {\n var el = this._elOnlyForCalculate;\n var rect = el.getBoundingRect();\n var center = [rect.x + rect.width / 2, rect.y + rect.height / 2];\n var mat = matrix.identity(TMP_TRANSFORM);\n var target = el;\n\n while (target && !target.isGeoSVGGraphicRoot) {\n matrix.mul(mat, target.getLocalTransform(), mat);\n target = target.parent;\n }\n\n matrix.invert(mat, mat);\n vec2.applyTransform(center, center, mat);\n return center;\n };\n\n return GeoSVGRegion;\n}(Region);\n\nexport { GeoSVGRegion };"],"names":["vec2.applyTransform","min","max","vec2.min","vec2.max","polygonContain.contain","matrix.identity","matrix.mul","matrix.invert"],"mappings":";;;;;;AAiDA,IAAI,gBAAgB,CAAA;AAEpB,yBAAyB,QAAQ,WAAW;AAC1C,WAAS,IAAI,GAAG,IAAI,OAAO,QAAQ,KAAK;AACtCA,mBAAoB,OAAO,IAAI,OAAO,IAAI,SAAS;AAAA,EACpD;AACH;AAEA,8BAA8B,QAAQC,OAAKC,OAAK,YAAY;AAC1D,WAAS,IAAI,GAAG,IAAI,OAAO,QAAQ,KAAK;AACtC,QAAI,IAAI,OAAO;AAEf,QAAI,YAAY;AAEd,UAAI,WAAW,QAAQ,CAAC;AAAA,IACzB;AAED,QAAI,KAAK,SAAS,EAAE,EAAE,KAAK,SAAS,EAAE,EAAE,GAAG;AACzCC,UAASF,OAAKA,OAAK,CAAC;AACpBG,UAASF,OAAKA,OAAK,CAAC;AAAA,IACrB;AAAA,EACF;AACH;AAEA,kBAAkB,QAAQ;AACxB,MAAI,aAAa;AACjB,MAAI,KAAK;AACT,MAAI,KAAK;AACT,MAAI,MAAM,OAAO;AACjB,MAAI,KAAK,OAAO,MAAM,GAAG;AACzB,MAAI,KAAK,OAAO,MAAM,GAAG;AAEzB,WAAS,IAAI,GAAG,IAAI,KAAK,KAAK;AA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S;AAAA,QAC3C,CAAS;AAAA,MACF;AAAA,IACF;AAED,WAAO,KAAK;AACZ,SAAK,KAAK,MAAM;AAEhB,SAAK,UAAU,CAAC,KAAK,IAAI,KAAK,QAAQ,GAAG,KAAK,IAAI,KAAK,SAAS,CAAC;AAAA,EACrE;AAEE,iBAAc,UAAU,eAAe,SAAU,MAAM;AACrD,YAAQ,QAAS,QAAO,KAAK;AAC7B,QAAI,YAAY,IAAI,eAAc,MAAM,KAAK,YAAY,KAAK,OAAO;AACrE,cAAU,QAAQ,KAAK;AACvB,cAAU,cAAc;AAExB,WAAO;AAAA,EACX;AAEE,SAAO;AACT,EAAE,MAAM;AAIL,IAAC,eAEJ,SAAU,QAAQ;AAChB,YAAU,eAAc,MAAM;AAE9B,yBAAsB,MAAM,oBAAoB;AAC9C,QAAI,QAAQ,OAAO,KAAK,MAAM,IAAI,KAAK;AAEvC,UAAM,OAAO;AACb,UAAM,sBAAsB;AAC5B,WAAO;AAAA,EACR;AAED,gBAAa,UAAU,aAAa,WAAY;AAC9C,QAAI,KAAK,KAAK;AACd,QAAI,OAAO,GAAG;AACd,QAAI,SAAS,CAAC,KAAK,IAAI,KAAK,QAAQ,GAAG,KAAK,IAAI,KAAK,SAAS,CAAC;AAC/D,QAAI,MAAMC,SAAgB,aAAa;AACvC,QAAI,SAAS;AAEb,WAAO,UAAU,CAAC,OAAO,qBAAqB;AAC5CC,UAAW,KAAK,OAAO,kBAAmB,GAAE,GAAG;AAC/C,eAAS,OAAO;AAAA,IACjB;AAEDC,WAAc,KAAK,GAAG;AACtBR,mBAAoB,QAAQ,QAAQ,GAAG;AACvC,WAAO;AAAA,EACX;AAEE,SAAO;AACT,EAAE,MAAM;;"}
1
+ {"version":3,"file":"Region.js","sources":["../../../../../../node_modules/echarts/lib/coord/geo/Region.js"],"sourcesContent":["\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport BoundingRect from 'zrender/lib/core/BoundingRect.js';\nimport * as vec2 from 'zrender/lib/core/vector.js';\nimport * as polygonContain from 'zrender/lib/contain/polygon.js';\nimport * as matrix from 'zrender/lib/core/matrix.js';\nimport { each } from 'zrender/lib/core/util.js';\nvar TMP_TRANSFORM = [];\n\nfunction transformPoints(points, transform) {\n for (var p = 0; p < points.length; p++) {\n vec2.applyTransform(points[p], points[p], transform);\n }\n}\n\nfunction updateBBoxFromPoints(points, min, max, projection) {\n for (var i = 0; i < points.length; i++) {\n var p = points[i];\n\n if (projection) {\n // projection may return null point.\n p = projection.project(p);\n }\n\n if (p && isFinite(p[0]) && isFinite(p[1])) {\n vec2.min(min, min, p);\n vec2.max(max, max, p);\n }\n }\n}\n\nfunction centroid(points) {\n var signedArea = 0;\n var cx = 0;\n var cy = 0;\n var len = points.length;\n var x0 = points[len - 1][0];\n var y0 = points[len - 1][1]; // Polygon should been closed.\n\n for (var i = 0; i < len; i++) {\n var x1 = points[i][0];\n var y1 = points[i][1];\n var a = x0 * y1 - x1 * y0;\n signedArea += a;\n cx += (x0 + x1) * a;\n cy += (y0 + y1) * a;\n x0 = x1;\n y0 = y1;\n }\n\n return signedArea ? [cx / signedArea / 3, cy / signedArea / 3, signedArea] : [points[0][0] || 0, points[0][1] || 0];\n}\n\nvar Region =\n/** @class */\nfunction () {\n function Region(name) {\n this.name = name;\n }\n\n Region.prototype.setCenter = function (center) {\n this._center = center;\n };\n /**\n * Get center point in data unit. That is,\n * for GeoJSONRegion, the unit is lat/lng,\n * for GeoSVGRegion, the unit is SVG local coord.\n */\n\n\n Region.prototype.getCenter = function () {\n var center = this._center;\n\n if (!center) {\n // In most cases there are no need to calculate this center.\n // So calculate only when called.\n center = this._center = this.calcCenter();\n }\n\n return center;\n };\n\n return Region;\n}();\n\nexport { Region };\n\nvar GeoJSONPolygonGeometry =\n/** @class */\nfunction () {\n function GeoJSONPolygonGeometry(exterior, interiors) {\n this.type = 'polygon';\n this.exterior = exterior;\n this.interiors = interiors;\n }\n\n return GeoJSONPolygonGeometry;\n}();\n\nexport { GeoJSONPolygonGeometry };\n\nvar GeoJSONLineStringGeometry =\n/** @class */\nfunction () {\n function GeoJSONLineStringGeometry(points) {\n this.type = 'linestring';\n this.points = points;\n }\n\n return GeoJSONLineStringGeometry;\n}();\n\nexport { GeoJSONLineStringGeometry };\n\nvar GeoJSONRegion =\n/** @class */\nfunction (_super) {\n __extends(GeoJSONRegion, _super);\n\n function GeoJSONRegion(name, geometries, cp) {\n var _this = _super.call(this, name) || this;\n\n _this.type = 'geoJSON';\n _this.geometries = geometries;\n _this._center = cp && [cp[0], cp[1]];\n return _this;\n }\n\n GeoJSONRegion.prototype.calcCenter = function () {\n var geometries = this.geometries;\n var largestGeo;\n var largestGeoSize = 0;\n\n for (var i = 0; i < geometries.length; i++) {\n var geo = geometries[i];\n var exterior = geo.exterior; // Simple trick to use points count instead of polygon area as region size.\n // Ignore linestring\n\n var size = exterior && exterior.length;\n\n if (size > largestGeoSize) {\n largestGeo = geo;\n largestGeoSize = size;\n }\n }\n\n if (largestGeo) {\n return centroid(largestGeo.exterior);\n } // from bounding rect by default.\n\n\n var rect = this.getBoundingRect();\n return [rect.x + rect.width / 2, rect.y + rect.height / 2];\n };\n\n GeoJSONRegion.prototype.getBoundingRect = function (projection) {\n var rect = this._rect; // Always recalculate if using projection.\n\n if (rect && !projection) {\n return rect;\n }\n\n var min = [Infinity, Infinity];\n var max = [-Infinity, -Infinity];\n var geometries = this.geometries;\n each(geometries, function (geo) {\n if (geo.type === 'polygon') {\n // Doesn't consider hole\n updateBBoxFromPoints(geo.exterior, min, max, projection);\n } else {\n each(geo.points, function (points) {\n updateBBoxFromPoints(points, min, max, projection);\n });\n }\n }); // Normalie invalid bounding.\n\n if (!(isFinite(min[0]) && isFinite(min[1]) && isFinite(max[0]) && isFinite(max[1]))) {\n min[0] = min[1] = max[0] = max[1] = 0;\n }\n\n rect = new BoundingRect(min[0], min[1], max[0] - min[0], max[1] - min[1]);\n\n if (!projection) {\n this._rect = rect;\n }\n\n return rect;\n };\n\n GeoJSONRegion.prototype.contain = function (coord) {\n var rect = this.getBoundingRect();\n var geometries = this.geometries;\n\n if (!rect.contain(coord[0], coord[1])) {\n return false;\n }\n\n loopGeo: for (var i = 0, len = geometries.length; i < len; i++) {\n var geo = geometries[i]; // Only support polygon.\n\n if (geo.type !== 'polygon') {\n continue;\n }\n\n var exterior = geo.exterior;\n var interiors = geo.interiors;\n\n if (polygonContain.contain(exterior, coord[0], coord[1])) {\n // Not in the region if point is in the hole.\n for (var k = 0; k < (interiors ? interiors.length : 0); k++) {\n if (polygonContain.contain(interiors[k], coord[0], coord[1])) {\n continue loopGeo;\n }\n }\n\n return true;\n }\n }\n\n return false;\n };\n /**\n * Transform the raw coords to target bounding.\n * @param x\n * @param y\n * @param width\n * @param height\n */\n\n\n GeoJSONRegion.prototype.transformTo = function (x, y, width, height) {\n var rect = this.getBoundingRect();\n var aspect = rect.width / rect.height;\n\n if (!width) {\n width = aspect * height;\n } else if (!height) {\n height = width / aspect;\n }\n\n var target = new BoundingRect(x, y, width, height);\n var transform = rect.calculateTransform(target);\n var geometries = this.geometries;\n\n for (var i = 0; i < geometries.length; i++) {\n var geo = geometries[i];\n\n if (geo.type === 'polygon') {\n transformPoints(geo.exterior, transform);\n each(geo.interiors, function (interior) {\n transformPoints(interior, transform);\n });\n } else {\n each(geo.points, function (points) {\n transformPoints(points, transform);\n });\n }\n }\n\n rect = this._rect;\n rect.copy(target); // Update center\n\n this._center = [rect.x + rect.width / 2, rect.y + rect.height / 2];\n };\n\n GeoJSONRegion.prototype.cloneShallow = function (name) {\n name == null && (name = this.name);\n var newRegion = new GeoJSONRegion(name, this.geometries, this._center);\n newRegion._rect = this._rect;\n newRegion.transformTo = null; // Simply avoid to be called.\n\n return newRegion;\n };\n\n return GeoJSONRegion;\n}(Region);\n\nexport { GeoJSONRegion };\n\nvar GeoSVGRegion =\n/** @class */\nfunction (_super) {\n __extends(GeoSVGRegion, _super);\n\n function GeoSVGRegion(name, elOnlyForCalculate) {\n var _this = _super.call(this, name) || this;\n\n _this.type = 'geoSVG';\n _this._elOnlyForCalculate = elOnlyForCalculate;\n return _this;\n }\n\n GeoSVGRegion.prototype.calcCenter = function () {\n var el = this._elOnlyForCalculate;\n var rect = el.getBoundingRect();\n var center = [rect.x + rect.width / 2, rect.y + rect.height / 2];\n var mat = matrix.identity(TMP_TRANSFORM);\n var target = el;\n\n while (target && !target.isGeoSVGGraphicRoot) {\n matrix.mul(mat, target.getLocalTransform(), mat);\n target = target.parent;\n }\n\n matrix.invert(mat, mat);\n vec2.applyTransform(center, center, mat);\n return center;\n };\n\n return GeoSVGRegion;\n}(Region);\n\nexport { GeoSVGRegion };"],"names":["vec2.applyTransform","min","max","vec2.min","vec2.max","Region","GeoJSONPolygonGeometry","GeoJSONLineStringGeometry","GeoJSON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Q,KAAK;AACvB,cAAU,cAAc;AAExB,WAAO;AAAA,EACX;AAEE,SAAOA;AACT,EAAE,MAAM;AAIL,IAAC,eAEJ,SAAU,QAAQ;AAChB,YAAUE,eAAc,MAAM;AAE9B,WAASA,cAAa,MAAM,oBAAoB;AAC9C,QAAI,QAAQ,OAAO,KAAK,MAAM,IAAI,KAAK;AAEvC,UAAM,OAAO;AACb,UAAM,sBAAsB;AAC5B,WAAO;AAAA,EACR;AAED,EAAAA,cAAa,UAAU,aAAa,WAAY;AAC9C,QAAI,KAAK,KAAK;AACd,QAAI,OAAO,GAAG;AACd,QAAI,SAAS,CAAC,KAAK,IAAI,KAAK,QAAQ,GAAG,KAAK,IAAI,KAAK,SAAS,CAAC;AAC/D,QAAI,MAAMC,SAAgB,aAAa;AACvC,QAAI,SAAS;AAEb,WAAO,UAAU,CAAC,OAAO,qBAAqB;AAC5CC,UAAW,KAAK,OAAO,kBAAmB,GAAE,GAAG;AAC/C,eAAS,OAAO;AAAA,IACjB;AAEDC,WAAc,KAAK,GAAG;AACtBb,mBAAoB,QAAQ,QAAQ,GAAG;AACvC,WAAO;AAAA,EACX;AAEE,SAAOU;AACT,EAAE,MAAM;"}
@@ -7,5 +7,7 @@ function fixDiaoyuIsland(mapType, region) {
7
7
  });
8
8
  }
9
9
  }
10
- export { fixDiaoyuIsland as default };
10
+ export {
11
+ fixDiaoyuIsland as default
12
+ };
11
13
  //# sourceMappingURL=diaoyuIsland.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"diaoyuIsland.js","sources":["../../../../../../../node_modules/echarts/lib/coord/geo/fix/diaoyuIsland.js"],"sourcesContent":["\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// Fix for 钓鱼岛\n// let Region = require('../Region');\n// let zrUtil = require('zrender/lib/core/util');\n// let geoCoord = [126, 25];\nvar points = [[[123.45165252685547, 25.73527164402261], [123.49731445312499, 25.73527164402261], [123.49731445312499, 25.750734064600884], [123.45165252685547, 25.750734064600884], [123.45165252685547, 25.73527164402261]]];\nexport default function fixDiaoyuIsland(mapType, region) {\n if (mapType === 'china' && region.name === '台湾') {\n region.geometries.push({\n type: 'polygon',\n exterior: points[0]\n });\n }\n}"],"names":[],"mappings":"AA+CA,IAAI,SAAS,CAAC,CAAC,CAAC,oBAAoB,iBAAiB,GAAG,CAAC,oBAAoB,iBAAiB,GAAG,CAAC,oBAAoB,kBAAkB,GAAG,CAAC,oBAAoB,kBAAkB,GAAG,CAAC,oBAAoB,iBAAiB,CAAC,CAAC;AAC9M,yBAAyB,SAAS,QAAQ;AACvD,MAAI,YAAY,WAAW,OAAO,SAAS,gBAAM;AAC/C,WAAO,WAAW,KAAK;AAAA,MACrB,MAAM;AAAA,MACN,UAAU,OAAO;AAAA,IACvB,CAAK;AAAA,EACF;AACH;;"}
1
+ {"version":3,"file":"diaoyuIsland.js","sources":["../../../../../../../node_modules/echarts/lib/coord/geo/fix/diaoyuIsland.js"],"sourcesContent":["\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// Fix for 钓鱼岛\n// let Region = require('../Region');\n// let zrUtil = require('zrender/lib/core/util');\n// let geoCoord = [126, 25];\nvar points = [[[123.45165252685547, 25.73527164402261], [123.49731445312499, 25.73527164402261], [123.49731445312499, 25.750734064600884], [123.45165252685547, 25.750734064600884], [123.45165252685547, 25.73527164402261]]];\nexport default function fixDiaoyuIsland(mapType, region) {\n if (mapType === 'china' && region.name === '台湾') {\n region.geometries.push({\n type: 'polygon',\n exterior: points[0]\n });\n }\n}"],"names":[],"mappings":"AA+CA,IAAI,SAAS,CAAC,CAAC,CAAC,oBAAoB,iBAAiB,GAAG,CAAC,oBAAoB,iBAAiB,GAAG,CAAC,oBAAoB,kBAAkB,GAAG,CAAC,oBAAoB,kBAAkB,GAAG,CAAC,oBAAoB,iBAAiB,CAAC,CAAC;AAC9M,SAAS,gBAAgB,SAAS,QAAQ;AACvD,MAAI,YAAY,WAAW,OAAO,SAAS,gBAAM;AAC/C,WAAO,WAAW,KAAK;AAAA,MACrB,MAAM;AAAA,MACN,UAAU,OAAO;AAAA,IACvB,CAAK;AAAA,EACF;AACH;"}
@@ -26,5 +26,7 @@ function fixNanhai(mapType, regions) {
26
26
  }), geoCoord));
27
27
  }
28
28
  }
29
- export { fixNanhai as default };
29
+ export {
30
+ fixNanhai as default
31
+ };
30
32
  //# sourceMappingURL=nanhai.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nanhai.js","sources":["../../../../../../../node_modules/echarts/lib/coord/geo/fix/nanhai.js"],"sourcesContent":["\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// Fix for 南海诸岛\nimport * as zrUtil from 'zrender/lib/core/util.js';\nimport { GeoJSONRegion } from '../Region.js';\nvar geoCoord = [126, 25];\nvar nanhaiName = '南海诸岛';\nvar points = [[[0, 3.5], [7, 11.2], [15, 11.9], [30, 7], [42, 0.7], [52, 0.7], [56, 7.7], [59, 0.7], [64, 0.7], [64, 0], [5, 0], [0, 3.5]], [[13, 16.1], [19, 14.7], [16, 21.7], [11, 23.1], [13, 16.1]], [[12, 32.2], [14, 38.5], [15, 38.5], [13, 32.2], [12, 32.2]], [[16, 47.6], [12, 53.2], [13, 53.2], [18, 47.6], [16, 47.6]], [[6, 64.4], [8, 70], [9, 70], [8, 64.4], [6, 64.4]], [[23, 82.6], [29, 79.8], [30, 79.8], [25, 82.6], [23, 82.6]], [[37, 70.7], [43, 62.3], [44, 62.3], [39, 70.7], [37, 70.7]], [[48, 51.1], [51, 45.5], [53, 45.5], [50, 51.1], [48, 51.1]], [[51, 35], [51, 28.7], [53, 28.7], [53, 35], [51, 35]], [[52, 22.4], [55, 17.5], [56, 17.5], [53, 22.4], [52, 22.4]], [[58, 12.6], [62, 7], [63, 7], [60, 12.6], [58, 12.6]], [[0, 3.5], [0, 93.1], [64, 93.1], [64, 0], [63, 0], [63, 92.4], [1, 92.4], [1, 3.5], [0, 3.5]]];\n\nfor (var i = 0; i < points.length; i++) {\n for (var k = 0; k < points[i].length; k++) {\n points[i][k][0] /= 10.5;\n points[i][k][1] /= -10.5 / 0.75;\n points[i][k][0] += geoCoord[0];\n points[i][k][1] += geoCoord[1];\n }\n}\n\nexport default function fixNanhai(mapType, regions) {\n if (mapType === 'china') {\n for (var i = 0; i < regions.length; i++) {\n // Already exists.\n if (regions[i].name === nanhaiName) {\n return;\n }\n }\n\n regions.push(new GeoJSONRegion(nanhaiName, zrUtil.map(points,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KAAK,IAAI,cAAc,YAAYA,IAAW,QAAQ,SAAU,UAAU;AAChF,aAAO;AAAA,QACL,MAAM;AAAA,QACN;AAAA,MACR;AAAA,IACA,CAAK,GAAG,QAAQ,CAAC;AAAA,EACd;AACH;;"}
1
+ {"version":3,"file":"nanhai.js","sources":["../../../../../../../node_modules/echarts/lib/coord/geo/fix/nanhai.js"],"sourcesContent":["\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// Fix for 南海诸岛\nimport * as zrUtil from 'zrender/lib/core/util.js';\nimport { GeoJSONRegion } from '../Region.js';\nvar geoCoord = [126, 25];\nvar nanhaiName = '南海诸岛';\nvar points = [[[0, 3.5], [7, 11.2], [15, 11.9], [30, 7], [42, 0.7], [52, 0.7], [56, 7.7], [59, 0.7], [64, 0.7], [64, 0], [5, 0], [0, 3.5]], [[13, 16.1], [19, 14.7], [16, 21.7], [11, 23.1], [13, 16.1]], [[12, 32.2], [14, 38.5], [15, 38.5], [13, 32.2], [12, 32.2]], [[16, 47.6], [12, 53.2], [13, 53.2], [18, 47.6], [16, 47.6]], [[6, 64.4], [8, 70], [9, 70], [8, 64.4], [6, 64.4]], [[23, 82.6], [29, 79.8], [30, 79.8], [25, 82.6], [23, 82.6]], [[37, 70.7], [43, 62.3], [44, 62.3], [39, 70.7], [37, 70.7]], [[48, 51.1], [51, 45.5], [53, 45.5], [50, 51.1], [48, 51.1]], [[51, 35], [51, 28.7], [53, 28.7], [53, 35], [51, 35]], [[52, 22.4], [55, 17.5], [56, 17.5], [53, 22.4], [52, 22.4]], [[58, 12.6], [62, 7], [63, 7], [60, 12.6], [58, 12.6]], [[0, 3.5], [0, 93.1], [64, 93.1], [64, 0], [63, 0], [63, 92.4], [1, 92.4], [1, 3.5], [0, 3.5]]];\n\nfor (var i = 0; i < points.length; i++) {\n for (var k = 0; k < points[i].length; k++) {\n points[i][k][0] /= 10.5;\n points[i][k][1] /= -10.5 / 0.75;\n points[i][k][0] += geoCoord[0];\n points[i][k][1] += geoCoord[1];\n }\n}\n\nexport default function fixNanhai(mapType, regions) {\n if (mapType === 'china') {\n for (var i = 0; i < regions.length; i++) {\n // Already exists.\n if (regions[i].name === nanhaiName) {\n return;\n }\n }\n\n regions.push(new GeoJSONRegion(nanhaiName, zrUtil.map(points, function (exterior) {\n return {\n type: 'polygon',\n exterior: exterior\n };\n }), geoCoord));\n }\n}"],"names":["zrUtil.map"],"mappings":";;AA8CA,IAAI,WAAW,CAAC,KAAK,EAAE;AACvB,IAAI,aAAa;AACjB,IAAI,SAAS,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI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C,IAAI,IAAI,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC;AAEj0B,SAAS,IAAI,GAAG,IAAI,OAAO,QAAQ,KAAK;AACtC,WAAS,IAAI,GAAG,IAAI,OAAO,GAAG,QAAQ,KAAK;AACzC,WAAO,GAAG,GAAG,MAAM;AACnB,WAAO,GAAG,GAAG,MAAM,QAAQ;AAC3B,WAAO,GAAG,GAAG,MAAM,SAAS;AAC5B,WAAO,GAAG,GAAG,MAAM,SAAS;AAAA,EAC7B;AACH;AAEe,SAAS,UAAU,SAAS,SAAS;AAClD,MAAI,YAAY,SAAS;AACvB,aAAS,IAAI,GAAG,IAAI,QAAQ,QAAQ,KAAK;AAEvC,UAAI,QAAQ,GAAG,SAAS,YAAY;AAClC;AAAA,MACD;AAAA,IACF;AAED,YAAQ,KAAK,IAAI,cAAc,YAAYA,IAAW,QAAQ,SAAU,UAAU;AAChF,aAAO;AAAA,QACL,MAAM;AAAA,QACN;AAAA,MACR;AAAA,IACA,CAAK,GAAG,QAAQ,CAAC;AAAA,EACd;AACH;"}
@@ -16,5 +16,7 @@ function fixTextCoords(mapType, region) {
16
16
  }
17
17
  }
18
18
  }
19
- export { fixTextCoords as default };
19
+ export {
20
+ fixTextCoords as default
21
+ };
20
22
  //# sourceMappingURL=textCoord.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"textCoord.js","sources":["../../../../../../../node_modules/echarts/lib/coord/geo/fix/textCoord.js"],"sourcesContent":["\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nvar coordsOffsetMap = {\n '南海诸岛': [32, 80],\n // 全国\n '广东': [0, -10],\n '香港': [10, 5],\n '澳门': [-10, 10],\n //'北京': [-10, 0],\n '天津': [5, 5]\n};\nexport default function fixTextCoords(mapType, region) {\n if (mapType === 'china') {\n var coordFix = coordsOffsetMap[region.name];\n\n if (coordFix) {\n var cp = region.getCenter();\n cp[0] += coordFix[0] / 10.5;\n cp[1] += -coordFix[1] / (10.5 / 0.75);\n region.setCenter(cp);\n }\n }\n}"],"names":[],"mappings":"AA2CA,IAAI,kBAAkB;AAAA,EACpB,4BAAQ,CAAC,IAAI,EAAE;AAAA,EAEf,gBAAM,CAAC,GAAG,GAAG;AAAA,EACb,gBAAM,CAAC,IAAI,CAAC;AAAA,EACZ,gBAAM,CAAC,KAAK,EAAE;AAAA,EAEd,gBAAM,CAAC,GAAG,CAAC;AACb;AACe,uBAAuB,SAAS,QAAQ;AACrD,MAAI,YAAY,SAAS;AACvB,QAAI,WAAW,gBAAgB,OAAO;AAEtC,QAAI,UAAU;AACZ,UAAI,KAAK,OAAO;AAChB,SAAG,MAAM,SAAS,KAAK;AACvB,SAAG,MAAM,CAAC,SAAS,KAAM,QAAO;AAChC,aAAO,UAAU,EAAE;AAAA,IACpB;AAAA,EACF;AACH;;"}
1
+ {"version":3,"file":"textCoord.js","sources":["../../../../../../../node_modules/echarts/lib/coord/geo/fix/textCoord.js"],"sourcesContent":["\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nvar coordsOffsetMap = {\n '南海诸岛': [32, 80],\n // 全国\n '广东': [0, -10],\n '香港': [10, 5],\n '澳门': [-10, 10],\n //'北京': [-10, 0],\n '天津': [5, 5]\n};\nexport default function fixTextCoords(mapType, region) {\n if (mapType === 'china') {\n var coordFix = coordsOffsetMap[region.name];\n\n if (coordFix) {\n var cp = region.getCenter();\n cp[0] += coordFix[0] / 10.5;\n cp[1] += -coordFix[1] / (10.5 / 0.75);\n region.setCenter(cp);\n }\n }\n}"],"names":[],"mappings":"AA2CA,IAAI,kBAAkB;AAAA,EACpB,4BAAQ,CAAC,IAAI,EAAE;AAAA,EAEf,gBAAM,CAAC,GAAG,GAAG;AAAA,EACb,gBAAM,CAAC,IAAI,CAAC;AAAA,EACZ,gBAAM,CAAC,KAAK,EAAE;AAAA,EAEd,gBAAM,CAAC,GAAG,CAAC;AACb;AACe,SAAS,cAAc,SAAS,QAAQ;AACrD,MAAI,YAAY,SAAS;AACvB,QAAI,WAAW,gBAAgB,OAAO;AAEtC,QAAI,UAAU;AACZ,UAAI,KAAK,OAAO;AAChB,SAAG,MAAM,SAAS,KAAK;AACvB,SAAG,MAAM,CAAC,SAAS,MAAM,OAAO;AAChC,aAAO,UAAU,EAAE;AAAA,IACpB;AAAA,EACF;AACH;"}
@@ -9,9 +9,11 @@ function resizeGeo(geoModel, api) {
9
9
  if (boundingCoords != null) {
10
10
  var leftTop_1 = boundingCoords[0];
11
11
  var rightBottom_1 = boundingCoords[1];
12
- if (!(isFinite(leftTop_1[0]) && isFinite(leftTop_1[1]) && isFinite(rightBottom_1[0]) && isFinite(rightBottom_1[1])))
13
- ;
14
- else {
12
+ if (!(isFinite(leftTop_1[0]) && isFinite(leftTop_1[1]) && isFinite(rightBottom_1[0]) && isFinite(rightBottom_1[1]))) {
13
+ if (process.env.NODE_ENV !== "production") {
14
+ console.error("Invalid boundingCoords");
15
+ }
16
+ } else {
15
17
  var projection_1 = this.projection;
16
18
  if (projection_1) {
17
19
  var xMin = leftTop_1[0];
@@ -52,6 +54,10 @@ function resizeGeo(geoModel, api) {
52
54
  size = parsePercent(sizeOption, Math.min(viewWidth, viewHeight));
53
55
  if (!isNaN(center[0]) && !isNaN(center[1]) && !isNaN(size)) {
54
56
  useCenterAndSize = true;
57
+ } else {
58
+ if (process.env.NODE_ENV !== "production") {
59
+ console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead.");
60
+ }
55
61
  }
56
62
  }
57
63
  var viewRect;
@@ -161,6 +167,8 @@ var GeoCreator = function() {
161
167
  return GeoCreator2;
162
168
  }();
163
169
  var geoCreator = new GeoCreator();
164
- var geoCreator$1 = geoCreator;
165
- export { geoCreator$1 as default };
170
+ const geoCreator$1 = geoCreator;
171
+ export {
172
+ geoCreator$1 as default
173
+ };
166
174
  //# sourceMappingURL=geoCreator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"geoCreator.js","sources":["../../../../../../node_modules/echarts/lib/coord/geo/geoCreator.js"],"sourcesContent":["\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util.js';\nimport Geo, { geo2DDimensions } from './Geo.js';\nimport * as layout from '../../util/layout.js';\nimport * as numberUtil from '../../util/number.js';\nimport geoSourceManager from './geoSourceManager.js';\nimport * as vector from 'zrender/lib/core/vector.js';\n/**\n * Resize method bound to the geo\n */\n\nfunction resizeGeo(geoModel, api) {\n var boundingCoords = geoModel.get('boundingCoords');\n\n if (boundingCoords != null) {\n var leftTop_1 = boundingCoords[0];\n var rightBottom_1 = boundingCoords[1];\n\n if (!(isFinite(leftTop_1[0]) && isFinite(leftTop_1[1]) && isFinite(rightBottom_1[0]) && isFinite(rightBottom_1[1]))) {\n if (process.env.NODE_ENV !== 'production') {\n console.error('Invalid boundingCoords');\n }\n } else {\n // Sample around the lng/lat rect and use projection to calculate actual bounding rect.\n var projection_1 = this.projection;\n\n if (projection_1) {\n var xMin = leftTop_1[0];\n var yMin = leftTop_1[1];\n var xMax = rightBottom_1[0];\n var yMax = rightBottom_1[1];\n leftTop_1 = [Infinity, Infinity];\n rightBottom_1 = [-Infinity, -Infinity]; // TODO better way?\n\n var sampleLine = function (x0, y0, x1, y1) {\n var dx = x1 - x0;\n var dy = y1 - y0;\n\n for (var i = 0; i <= 100; i++) {\n var p = i / 100;\n var pt = projection_1.project([x0 + dx * p, y0 + dy * p]);\n vector.min(leftTop_1, leftTop_1, pt);\n vector.max(rightBottom_1, rightBottom_1, pt);\n }\n }; // Top\n\n\n sampleLine(xMin, yMin, xMax, yMin); // Right\n\n sampleLine(xMax, yMin, xMax, yMax); // Bottom\n\n sampleLine(xMax, yMax, xMin, yMax); // Left\n\n sampleLine(xMin, yMax, xMax, yMin);\n }\n\n this.setBoundingRect(leftTop_1[0], leftTop_1[1], rightBottom_1[0] - leftTop_1[0], rightBottom_1[1] - leftTop_1[1]);\n }\n }\n\n var rect = this.getBoundingRect();\n var centerOption = geoModel.get('layoutCenter');\n var sizeOption = geoModel.get('layoutSize');\n var viewWidth = api.getWidth();\n var viewHeight = api.getHeight();\n var aspect = rect.width / rect.height * this.aspectScale;\n var useCenterAndSize = false;\n var center;\n var size;\n\n if (centerOption && sizeOption) {\n center = [numberUtil.parsePercent(centerOption[0], viewWidth), numberUtil.parsePercent(centerOption[1], viewHeight)];\n size = numberUtil.parsePercent(sizeOption, Math.min(viewWidth, viewHeight));\n\n if (!isNaN(center[0]) && !isNaN(center[1]) && !isNaN(size)) {\n useCenterAndSize = true;\n } else {\n if (process.env.NODE_ENV !== 'production') {\n console.warn('Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead.');\n }\n }\n }\n\n var viewRect;\n\n if (useCenterAndSize) {\n viewRect = {};\n\n if (aspect > 1) {\n // Width is same with size\n viewRect.width = size;\n viewRect.height = size / aspect;\n } else {\n viewRect.height = size;\n viewRect.width = size * aspect;\n }\n\n viewRect.y = center[1] - viewRect.height / 2;\n viewRect.x = center[0] - viewRect.width / 2;\n } else {\n // Use left/top/width/height\n var boxLayoutOption = geoModel.getBoxLayoutParams();\n boxLayoutOption.aspect = aspect;\n viewRect = layout.getLayoutRect(boxLayoutOption, {\n width: viewWidth,\n height: viewHeight\n });\n }\n\n this.setViewRect(viewRect.x, viewRect.y, viewRect.width, viewRect.height);\n this.setCenter(geoModel.get('center'), api);\n this.setZoom(geoModel.get('zoom'));\n} // Back compat for ECharts2, where the coord map is set on map series:\n// {type: 'map', geoCoord: {'cityA': [116.46,39.92], 'cityA': [119.12,24.61]}},\n\n\nfunction setGeoCoords(geo, model) {\n zrUtil.each(model.get('geoCoord'), function (geoCoord, name) {\n geo.addGeoCoord(name, geoCoord);\n });\n}\n\nvar GeoCreator =\n/** @class */\nfunction () {\n function GeoCreator() {\n // For deciding which dimensions to use when creating list data\n this.dimensions = geo2DDimensions;\n }\n\n GeoCreator.prototype.create = function (ecModel, api) {\n var geoList = [];\n\n function getCommonGeoProperties(model) {\n return {\n nameProperty: model.get('nameProperty'),\n aspectScale: model.get('aspectScale'),\n projection: model.get('projection')\n };\n } // FIXME Create each time may be slow\n\n\n ecModel.eachComponent('geo', function (geoModel, idx) {\n var mapName = geoModel.get('map');\n var geo = new Geo(mapName + idx, mapName, zrUtil.extend({\n nameMap: geoModel.get('nameMap')\n }, getCommonGeoProperties(geoModel)));\n geo.zoomLimit = geoModel.get('scaleLimit');\n geoList.push(geo); // setGeoCoords(geo, geoModel);\n\n geoModel.coordinateSystem = geo;\n geo.model = geoModel; // Inject resize method\n\n geo.resize = resizeGeo;\n geo.resize(geoModel, api);\n });\n ecModel.eachSeries(function (seriesModel) {\n var coordSys = seriesModel.get('coordinateSystem');\n\n if (coordSys === 'geo') {\n var geoIndex = seriesModel.get('geoIndex') || 0;\n seriesModel.coordinateSystem = geoList[geoIndex];\n }\n }); // If has map series\n\n var mapModelGroupBySeries = {};\n ecModel.eachSeriesByType('map', function (seriesModel) {\n if (!seriesModel.getHostGeoModel()) {\n var mapType = seriesModel.getMapType();\n mapModelGroupBySeries[mapType] = mapModelGroupBySeries[mapType] || [];\n mapModelGroupBySeries[mapType].push(seriesModel);\n }\n });\n zrUtil.each(mapModelGroupBySeries, function (mapSeries, mapType) {\n var nameMapList = zrUtil.map(mapSeries, function (singleMapSeries) {\n return singleMapSeries.get('nameMap');\n });\n var geo = new Geo(mapType, mapType, zrUtil.extend({\n nameMap: zrUtil.mergeAll(nameMapList)\n }, getCommonGeoProperties(mapSeries[0])));\n geo.zoomLimit = zrUtil.retrieve.apply(null, zrUtil.map(mapSeries, function (singleMapSeries) {\n return singleMapSeries.get('scaleLimit');\n }));\n geoList.push(geo); // Inject resize method\n\n geo.resize = resizeGeo;\n geo.resize(mapSeries[0], api);\n zrUtil.each(mapSeries, function (singleMapSeries) {\n singleMapSeries.coordinateSystem = geo;\n setGeoCoords(geo, singleMapSeries);\n });\n });\n return geoList;\n };\n /**\n * Fill given regions array\n */\n\n\n GeoCreator.prototype.getFilledRegions = function (originRegionArr, mapName, nameMap, nameProperty) {\n // Not use the original\n var regionsArr = (originRegionArr || []).slice();\n var dataNameMap = zrUtil.createHashMap();\n\n for (var i = 0; i < regionsArr.length; i++) {\n dataNameMap.set(regionsArr[i].name, regionsArr[i]);\n }\n\n var source = geoSourceManager.load(mapName, nameMap, nameProperty);\n zrUtil.each(source.regions, function (region) {\n var name = region.name;\n !dataNameMap.get(name) && regionsArr.push({\n name: name\n });\n });\n return regionsArr;\n };\n\n return GeoCreator;\n}();\n\nvar geoCreator = new GeoCreator();\nexport default geoCreator;"],"names":["vector.min","vector.max","numberUtil.parsePercent","layout.getLayoutRect","zrUtil.each","zrUtil.extend","zrUtil.map","zrUtil.mergeAll","zrUtil.retrieve","zrUtil.createHashMap"],"mappings":";;;;;;AAqDA,mBAAmB,UAAU,KAAK;AAChC,MAAI,iBAAiB,SAAS,IAAI,gBAAgB;AAElD,MAAI,kBAAkB,MAAM;AAC1B,QAAI,YAAY,eAAe;AAC/B,QAAI,gBAAgB,eAAe;AAEnC,QAAI,CAAE,UAAS,UAAU,EAAE,KAAK,SAAS,UAAU,EAAE,KAAK,SAAS,cAAc,EAAE,KAAK,SAAS,cAAc,EAAE;AAAI;AAAA,SAI9G;AAEL,UAAI,eAAe,KAAK;AAExB,UAAI,cAAc;AAChB,YAAI,OAAO,UAAU;AACrB,YAAI,OAAO,UAAU;AACrB,YAAI,OAAO,cAAc;AACzB,YAAI,OAAO,cAAc;AACzB,oBAAY,CAAC,UAAU,QAAQ;AAC/B,wBAAgB,CAAC,WAAW,SAAS;AAErC,YAAI,aAAa,SAAU,IAAI,IAAI,IAAI,IAAI;AACzC,cAAI,KAAK,KAAK;AACd,cAAI,KAAK,KAAK;AAEd,mBAAS,IAAI,GAAG,KAAK,KAAK,KAAK;AAC7B,gBAAI,IAAI,IAAI;AACZ,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BAAiB,KAAK,SAAS,SAAS,YAAY;AACjEL,SAAY,OAAO,SAAS,SAAU,QAAQ;AAC5C,UAAI,OAAO,OAAO;AAClB,OAAC,YAAY,IAAI,IAAI,KAAK,WAAW,KAAK;AAAA,QACxC;AAAA,MACR,CAAO;AAAA,IACP,CAAK;AACD,WAAO;AAAA,EACX;AAEE,SAAO;AACT;AAEA,IAAI,aAAa,IAAI;AACrB,IAAA,eAAe;;"}
1
+ {"version":3,"file":"geoCreator.js","sources":["../../../../../../node_modules/echarts/lib/coord/geo/geoCreator.js"],"sourcesContent":["\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util.js';\nimport Geo, { geo2DDimensions } from './Geo.js';\nimport * as layout from '../../util/layout.js';\nimport * as numberUtil from '../../util/number.js';\nimport geoSourceManager from './geoSourceManager.js';\nimport * as vector from 'zrender/lib/core/vector.js';\n/**\n * Resize method bound to the geo\n */\n\nfunction resizeGeo(geoModel, api) {\n var boundingCoords = geoModel.get('boundingCoords');\n\n if (boundingCoords != null) {\n var leftTop_1 = boundingCoords[0];\n var rightBottom_1 = boundingCoords[1];\n\n if (!(isFinite(leftTop_1[0]) && isFinite(leftTop_1[1]) && isFinite(rightBottom_1[0]) && isFinite(rightBottom_1[1]))) {\n if (process.env.NODE_ENV !== 'production') {\n console.error('Invalid boundingCoords');\n }\n } else {\n // Sample around the lng/lat rect and use projection to calculate actual bounding rect.\n var projection_1 = this.projection;\n\n if (projection_1) {\n var xMin = leftTop_1[0];\n var yMin = leftTop_1[1];\n var xMax = rightBottom_1[0];\n var yMax = rightBottom_1[1];\n leftTop_1 = [Infinity, Infinity];\n rightBottom_1 = [-Infinity, -Infinity]; // TODO better way?\n\n var sampleLine = function (x0, y0, x1, y1) {\n var dx = x1 - x0;\n var dy = y1 - y0;\n\n for (var i = 0; i <= 100; i++) {\n var p = i / 100;\n var pt = projection_1.project([x0 + dx * p, y0 + dy * p]);\n vector.min(leftTop_1, leftTop_1, pt);\n vector.max(rightBottom_1, rightBottom_1, pt);\n }\n }; // Top\n\n\n sampleLine(xMin, yMin, xMax, yMin); // Right\n\n sampleLine(xMax, yMin, xMax, yMax); // Bottom\n\n sampleLine(xMax, yMax, xMin, yMax); // Left\n\n sampleLine(xMin, yMax, xMax, yMin);\n }\n\n this.setBoundingRect(leftTop_1[0], leftTop_1[1], rightBottom_1[0] - leftTop_1[0], rightBottom_1[1] - leftTop_1[1]);\n }\n }\n\n var rect = this.getBoundingRect();\n var centerOption = geoModel.get('layoutCenter');\n var sizeOption = geoModel.get('layoutSize');\n var viewWidth = api.getWidth();\n var viewHeight = api.getHeight();\n var aspect = rect.width / rect.height * this.aspectScale;\n var useCenterAndSize = false;\n var center;\n var size;\n\n if (centerOption && sizeOption) {\n center = [numberUtil.parsePercent(centerOption[0], viewWidth), numberUtil.parsePercent(centerOption[1], viewHeight)];\n size = numberUtil.parsePercent(sizeOption, Math.min(viewWidth, viewHeight));\n\n if (!isNaN(center[0]) && !isNaN(center[1]) && !isNaN(size)) {\n useCenterAndSize = true;\n } else {\n if (process.env.NODE_ENV !== 'production') {\n console.warn('Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead.');\n }\n }\n }\n\n var viewRect;\n\n if (useCenterAndSize) {\n viewRect = {};\n\n if (aspect > 1) {\n // Width is same with size\n viewRect.width = size;\n viewRect.height = size / aspect;\n } else {\n viewRect.height = size;\n viewRect.width = size * aspect;\n }\n\n viewRect.y = center[1] - viewRect.height / 2;\n viewRect.x = center[0] - viewRect.width / 2;\n } else {\n // Use left/top/width/height\n var boxLayoutOption = geoModel.getBoxLayoutParams();\n boxLayoutOption.aspect = aspect;\n viewRect = layout.getLayoutRect(boxLayoutOption, {\n width: viewWidth,\n height: viewHeight\n });\n }\n\n this.setViewRect(viewRect.x, viewRect.y, viewRect.width, viewRect.height);\n this.setCenter(geoModel.get('center'), api);\n this.setZoom(geoModel.get('zoom'));\n} // Back compat for ECharts2, where the coord map is set on map series:\n// {type: 'map', geoCoord: {'cityA': [116.46,39.92], 'cityA': [119.12,24.61]}},\n\n\nfunction setGeoCoords(geo, model) {\n zrUtil.each(model.get('geoCoord'), function (geoCoord, name) {\n geo.addGeoCoord(name, geoCoord);\n });\n}\n\nvar GeoCreator =\n/** @class */\nfunction () {\n function GeoCreator() {\n // For deciding which dimensions to use when creating list data\n this.dimensions = geo2DDimensions;\n }\n\n GeoCreator.prototype.create = function (ecModel, api) {\n var geoList = [];\n\n function getCommonGeoProperties(model) {\n return {\n nameProperty: model.get('nameProperty'),\n aspectScale: model.get('aspectScale'),\n projection: model.get('projection')\n };\n } // FIXME Create each time may be slow\n\n\n ecModel.eachComponent('geo', function (geoModel, idx) {\n var mapName = geoModel.get('map');\n var geo = new Geo(mapName + idx, mapName, zrUtil.extend({\n nameMap: geoModel.get('nameMap')\n }, getCommonGeoProperties(geoModel)));\n geo.zoomLimit = geoModel.get('scaleLimit');\n geoList.push(geo); // setGeoCoords(geo, geoModel);\n\n geoModel.coordinateSystem = geo;\n geo.model = geoModel; // Inject resize method\n\n geo.resize = resizeGeo;\n geo.resize(geoModel, api);\n });\n ecModel.eachSeries(function (seriesModel) {\n var coordSys = seriesModel.get('coordinateSystem');\n\n if (coordSys === 'geo') {\n var geoIndex = seriesModel.get('geoIndex') || 0;\n seriesModel.coordinateSystem = geoList[geoIndex];\n }\n }); // If has map series\n\n var mapModelGroupBySeries = {};\n ecModel.eachSeriesByType('map', function (seriesModel) {\n if (!seriesModel.getHostGeoModel()) {\n var mapType = seriesModel.getMapType();\n mapModelGroupBySeries[mapType] = mapModelGroupBySeries[mapType] || [];\n mapModelGroupBySeries[mapType].push(seriesModel);\n }\n });\n zrUtil.each(mapModelGroupBySeries, function (mapSeries, mapType) {\n var nameMapList = zrUtil.map(mapSeries, function (singleMapSeries) {\n return singleMapSeries.get('nameMap');\n });\n var geo = new Geo(mapType, mapType, zrUtil.extend({\n nameMap: zrUtil.mergeAll(nameMapList)\n }, getCommonGeoProperties(mapSeries[0])));\n geo.zoomLimit = zrUtil.retrieve.apply(null, zrUtil.map(mapSeries, function (singleMapSeries) {\n return singleMapSeries.get('scaleLimit');\n }));\n geoList.push(geo); // Inject resize method\n\n geo.resize = resizeGeo;\n geo.resize(mapSeries[0], api);\n zrUtil.each(mapSeries, function (singleMapSeries) {\n singleMapSeries.coordinateSystem = geo;\n setGeoCoords(geo, singleMapSeries);\n });\n });\n return geoList;\n };\n /**\n * Fill given regions array\n */\n\n\n GeoCreator.prototype.getFilledRegions = function (originRegionArr, mapName, nameMap, nameProperty) {\n // Not use the original\n var regionsArr = (originRegionArr || []).slice();\n var dataNameMap = zrUtil.createHashMap();\n\n for (var i = 0; i < regionsArr.length; i++) {\n dataNameMap.set(regionsArr[i].name, regionsArr[i]);\n }\n\n var source = geoSourceManager.load(mapName, nameMap, nameProperty);\n zrUtil.each(source.regions, function (region) {\n var name = region.name;\n !dataNameMap.get(name) && regionsArr.push({\n name: name\n });\n });\n return regionsArr;\n };\n\n return GeoCreator;\n}();\n\nvar geoCreator = new GeoCreator();\nexport default geoCreator;"],"names":["vector.min","vector.max","numberUtil.parsePercent","layout.getLayoutRect","zrUtil.each","GeoCreator","zrUtil.extend","zrUtil.map","zrUtil.mergeAll","zrUtil.retrieve","zrUtil.createHashMap"],"mappings":";;;;;;AAqDA,SAAS,UAAU,UAAU,KAAK;AAChC,MAAI,iBAAiB,SAAS,IAAI,gBAAgB;AAElD,MAAI,kBAAkB,MAAM;AAC1B,QAAI,YAAY,eAAe;AAC/B,QAAI,gBAAgB,eAAe;AAEnC,QAAI,EAAE,SAAS,UAAU,EAAE,KAAK,SAAS,UAAU,EAAE,KAAK,SAAS,cAAc,EAAE,KAAK,SAAS,cAAc,EAAE,IAAI;AACnH,UAAI,QAAQ,IAAI,aAAa,cAAc;AACzC,gBAAQ,MAAM,wBAAwB;AAAA,MACvC;AAAA,IACP,OAAW;AAEL,UAAI,eAAe,KAAK;AAExB,UAAI,cAAc;AAChB,YAAI,OAAO,UAAU;AACrB,YAAI,OAAO,UAAU;AACrB,YAAI,OAAO,cAAc;AACzB,YAAI,OAAO,cAAc;AACzB,oBAAY,CAAC,UAAU,QAAQ;AAC/B,wBAAgB,CAAC,WAAW,SAAS;AAErC,YAAI,aAAa,SAAU,IAAI,IAAI,IAAI,IAAI;AACzC,cAAI,KAAK,KAAK;AACd,cAAI,KAAK,KAAK;AAEd,mBAAS,IAAI,GAAG,KAAK,KAAK,KAAK;AAC7B,gBAAI,IAAI,IAAI;AACZ,gBAAI,KAAK,aAAa,QAAQ,CAAC,KAAK,KAAK,GAAG,KAAK,KAAK,CAAC,CAAC;AACxDA,gBAAW,WAAW,WAAW,EAAE;AACnCC,gBAAW,eAAe,eAAe,EAAE;AAAA,UAC5C;AAAA,QACX;AAGQ,mBAAW,MAAM,MAAM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;AAC5C,UAAI,OAAO,OAAO;AAClB,OAAC,YAAY,IAAI,IAAI,KAAK,WAAW,KAAK;AAAA,QACxC;AAAA,MACR,CAAO;AAAA,IACP,CAAK;AACD,WAAO;AAAA,EACX;AAEE,SAAOC;AACT;AAEA,IAAI,aAAa,IAAI;AACrB,MAAA,eAAe;"}
@@ -2,7 +2,7 @@ import { createHashMap } from "../../../../zrender/lib/core/util.js";
2
2
  import { GeoSVGResource } from "./GeoSVGResource.js";
3
3
  import { GeoJSONResource } from "./GeoJSONResource.js";
4
4
  var storage = createHashMap();
5
- var geoSourceManager = {
5
+ const geoSourceManager = {
6
6
  registerMap: function(mapName, rawDef, rawSpecialAreas) {
7
7
  if (rawDef.svg) {
8
8
  var resource = new GeoSVGResource(mapName, rawDef.svg);
@@ -28,10 +28,15 @@ var geoSourceManager = {
28
28
  load: function(mapName, nameMap, nameProperty) {
29
29
  var resource = storage.get(mapName);
30
30
  if (!resource) {
31
+ if (process.env.NODE_ENV !== "production") {
32
+ console.error("Map " + mapName + " not exists. The GeoJSON of the map must be provided.");
33
+ }
31
34
  return;
32
35
  }
33
36
  return resource.load(nameMap, nameProperty);
34
37
  }
35
38
  };
36
- export { geoSourceManager as default };
39
+ export {
40
+ geoSourceManager as default
41
+ };
37
42
  //# sourceMappingURL=geoSourceManager.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"geoSourceManager.js","sources":["../../../../../../node_modules/echarts/lib/coord/geo/geoSourceManager.js"],"sourcesContent":["\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { createHashMap } from 'zrender/lib/core/util.js';\nimport { GeoSVGResource } from './GeoSVGResource.js';\nimport { GeoJSONResource } from './GeoJSONResource.js';\nvar storage = createHashMap();\nexport default {\n /**\n * Compatible with previous `echarts.registerMap`.\n *\n * @usage\n * ```js\n *\n * echarts.registerMap('USA', geoJson, specialAreas);\n *\n * echarts.registerMap('USA', {\n * geoJson: geoJson,\n * specialAreas: {...}\n * });\n * echarts.registerMap('USA', {\n * geoJSON: geoJson,\n * specialAreas: {...}\n * });\n *\n * echarts.registerMap('airport', {\n * svg: svg\n * }\n * ```\n *\n * Note:\n * Do not support that register multiple geoJSON or SVG\n * one map name. Because different geoJSON and SVG have\n * different unit. It's not easy to make sure how those\n * units are mapping/normalize.\n * If intending to use multiple geoJSON or SVG, we can\n * use multiple geo coordinate system.\n */\n registerMap: function (mapName, rawDef, rawSpecialAreas) {\n if (rawDef.svg) {\n var resource = new GeoSVGResource(mapName, rawDef.svg);\n storage.set(mapName, resource);\n } else {\n // Recommend:\n // echarts.registerMap('eu', { geoJSON: xxx, specialAreas: xxx });\n // Backward compatibility:\n // echarts.registerMap('eu', geoJSON, specialAreas);\n // echarts.registerMap('eu', { geoJson: xxx, specialAreas: xxx });\n var geoJSON = rawDef.geoJson || rawDef.geoJSON;\n\n if (geoJSON && !rawDef.features) {\n rawSpecialAreas = rawDef.specialAreas;\n } else {\n geoJSON = rawDef;\n }\n\n var resource = new GeoJSONResource(mapName, geoJSON, rawSpecialAreas);\n storage.set(mapName, resource);\n }\n },\n getGeoResource: function (mapName) {\n return storage.get(mapName);\n },\n\n /**\n * Only for exporting to users.\n * **MUST NOT** used internally.\n */\n getMapForUser: function (mapName) {\n var resource = storage.get(mapName); // Do not support return SVG until some real requirement come.\n\n return resource && resource.type === 'geoJSON' && resource.getMapForUser();\n },\n load: function (mapName, nameMap, nameProperty) {\n var resource = storage.get(mapName);\n\n if (!resource) {\n if (process.env.NODE_ENV !== 'production') {\n console.error('Map ' + mapName + ' not exists. The GeoJSON of the map must be provided.');\n }\n\n return;\n }\n\n return resource.load(nameMap, nameProperty);\n }\n};"],"names":[],"mappings":";;;AA8CA,IAAI,UAAU,cAAa;AAC3B,IAAe,mBAAA;AAAA,EA+Bb,aAAa,SAAU,SAAS,QAAQ,iBAAiB;AACvD,QAAI,OAAO,KAAK;AACd,UAAI,WAAW,IAAI,eAAe,SAAS,OAAO,GAAG;AACrD,cAAQ,IAAI,SAAS,QAAQ;AAAA,IACnC,OAAW;AAML,UAAI,UAAU,OAAO,WAAW,OAAO;AAEvC,UAAI,WAAW,CAAC,OAAO,UAAU;AAC/B,0BAAkB,OAAO;AAAA,MACjC,OAAa;AACL,kBAAU;AAAA,MACX;AAED,UAAI,WAAW,IAAI,gBAAgB,SAAS,SAAS,eAAe;AACpE,cAAQ,IAAI,SAAS,QAAQ;AAAA,IAC9B;AAAA,EACF;AAAA,EACD,gBAAgB,SAAU,SAAS;AACjC,WAAO,QAAQ,IAAI,OAAO;AAAA,EAC3B;AAAA,EAMD,eAAe,SAAU,SAAS;AAChC,QAAI,WAAW,QAAQ,IAAI,OAAO;AAElC,WAAO,YAAY,SAAS,SAAS,aAAa,SAAS;EAC5D;AAAA,EACD,MAAM,SAAU,SAAS,SAAS,cAAc;AAC9C,QAAI,WAAW,QAAQ,IAAI,OAAO;AAElC,QAAI,CAAC,UAAU;AAKb;AAAA,IACD;AAED,WAAO,SAAS,KAAK,SAAS,YAAY;AAAA,EAC3C;AACH;;"}
1
+ {"version":3,"file":"geoSourceManager.js","sources":["../../../../../../node_modules/echarts/lib/coord/geo/geoSourceManager.js"],"sourcesContent":["\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { createHashMap } from 'zrender/lib/core/util.js';\nimport { GeoSVGResource } from './GeoSVGResource.js';\nimport { GeoJSONResource } from './GeoJSONResource.js';\nvar storage = createHashMap();\nexport default {\n /**\n * Compatible with previous `echarts.registerMap`.\n *\n * @usage\n * ```js\n *\n * echarts.registerMap('USA', geoJson, specialAreas);\n *\n * echarts.registerMap('USA', {\n * geoJson: geoJson,\n * specialAreas: {...}\n * });\n * echarts.registerMap('USA', {\n * geoJSON: geoJson,\n * specialAreas: {...}\n * });\n *\n * echarts.registerMap('airport', {\n * svg: svg\n * }\n * ```\n *\n * Note:\n * Do not support that register multiple geoJSON or SVG\n * one map name. Because different geoJSON and SVG have\n * different unit. It's not easy to make sure how those\n * units are mapping/normalize.\n * If intending to use multiple geoJSON or SVG, we can\n * use multiple geo coordinate system.\n */\n registerMap: function (mapName, rawDef, rawSpecialAreas) {\n if (rawDef.svg) {\n var resource = new GeoSVGResource(mapName, rawDef.svg);\n storage.set(mapName, resource);\n } else {\n // Recommend:\n // echarts.registerMap('eu', { geoJSON: xxx, specialAreas: xxx });\n // Backward compatibility:\n // echarts.registerMap('eu', geoJSON, specialAreas);\n // echarts.registerMap('eu', { geoJson: xxx, specialAreas: xxx });\n var geoJSON = rawDef.geoJson || rawDef.geoJSON;\n\n if (geoJSON && !rawDef.features) {\n rawSpecialAreas = rawDef.specialAreas;\n } else {\n geoJSON = rawDef;\n }\n\n var resource = new GeoJSONResource(mapName, geoJSON, rawSpecialAreas);\n storage.set(mapName, resource);\n }\n },\n getGeoResource: function (mapName) {\n return storage.get(mapName);\n },\n\n /**\n * Only for exporting to users.\n * **MUST NOT** used internally.\n */\n getMapForUser: function (mapName) {\n var resource = storage.get(mapName); // Do not support return SVG until some real requirement come.\n\n return resource && resource.type === 'geoJSON' && resource.getMapForUser();\n },\n load: function (mapName, nameMap, nameProperty) {\n var resource = storage.get(mapName);\n\n if (!resource) {\n if (process.env.NODE_ENV !== 'production') {\n console.error('Map ' + mapName + ' not exists. The GeoJSON of the map must be provided.');\n }\n\n return;\n }\n\n return resource.load(nameMap, nameProperty);\n }\n};"],"names":[],"mappings":";;;AA8CA,IAAI,UAAU,cAAa;AAC3B,MAAe,mBAAA;AAAA,EA+Bb,aAAa,SAAU,SAAS,QAAQ,iBAAiB;AACvD,QAAI,OAAO,KAAK;AACd,UAAI,WAAW,IAAI,eAAe,SAAS,OAAO,GAAG;AACrD,cAAQ,IAAI,SAAS,QAAQ;AAAA,IACnC,OAAW;AAML,UAAI,UAAU,OAAO,WAAW,OAAO;AAEvC,UAAI,WAAW,CAAC,OAAO,UAAU;AAC/B,0BAAkB,OAAO;AAAA,MACjC,OAAa;AACL,kBAAU;AAAA,MACX;AAED,UAAI,WAAW,IAAI,gBAAgB,SAAS,SAAS,eAAe;AACpE,cAAQ,IAAI,SAAS,QAAQ;AAAA,IAC9B;AAAA,EACF;AAAA,EACD,gBAAgB,SAAU,SAAS;AACjC,WAAO,QAAQ,IAAI,OAAO;AAAA,EAC3B;AAAA,EAMD,eAAe,SAAU,SAAS;AAChC,QAAI,WAAW,QAAQ,IAAI,OAAO;AAElC,WAAO,YAAY,SAAS,SAAS,aAAa,SAAS;EAC5D;AAAA,EACD,MAAM,SAAU,SAAS,SAAS,cAAc;AAC9C,QAAI,WAAW,QAAQ,IAAI,OAAO;AAElC,QAAI,CAAC,UAAU;AACb,UAAI,QAAQ,IAAI,aAAa,cAAc;AACzC,gBAAQ,MAAM,SAAS,UAAU,uDAAuD;AAAA,MACzF;AAED;AAAA,IACD;AAED,WAAO,SAAS,KAAK,SAAS,YAAY;AAAA,EAC3C;AACH;"}
@@ -89,5 +89,7 @@ function parseGeoJSON(geoJson, nameProperty) {
89
89
  return region;
90
90
  });
91
91
  }
92
- export { parseGeoJSON as default };
92
+ export {
93
+ parseGeoJSON as default
94
+ };
93
95
  //# sourceMappingURL=parseGeoJson.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"parseGeoJson.js","sources":["../../../../../../node_modules/echarts/lib/coord/geo/parseGeoJson.js"],"sourcesContent":["\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Parse and decode geo json\n */\nimport * as zrUtil from 'zrender/lib/core/util.js';\nimport { GeoJSONLineStringGeometry, GeoJSONPolygonGeometry, GeoJSONRegion } from './Region.js';\n\nfunction decode(json) {\n if (!json.UTF8Encoding) {\n return json;\n }\n\n var jsonCompressed = json;\n var encodeScale = jsonCompressed.UTF8Scale;\n\n if (encodeScale == null) {\n encodeScale = 1024;\n }\n\n var features = jsonCompressed.features;\n zrUtil.each(features, function (feature) {\n var geometry = feature.geometry;\n var encodeOffsets = geometry.encodeOffsets;\n var coordinates = geometry.coordinates; // Geometry may be appeded manually in the script after json loaded.\n // In this case this geometry is usually not encoded.\n\n if (!encodeOffsets) {\n return;\n }\n\n switch (geometry.type) {\n case 'LineString':\n geometry.coordinates = decodeRing(coordinates, encodeOffsets, encodeScale);\n break;\n\n case 'Polygon':\n decodeRings(coordinates, encodeOffsets, encodeScale);\n break;\n\n case 'MultiLineString':\n decodeRings(coordinates, encodeOffsets, encodeScale);\n break;\n\n case 'MultiPolygon':\n zrUtil.each(coordinates, function (rings, idx) {\n return decodeRings(rings, encodeOffsets[idx], encodeScale);\n });\n }\n }); // Has been decoded\n\n jsonCompressed.UTF8Encoding = false;\n return jsonCompressed;\n}\n\nfunction decodeRings(rings, encodeOffsets, encodeScale) {\n for (var c = 0; c < rings.length; c++) {\n rings[c] = decodeRing(rings[c], encodeOffsets[c], encodeScale);\n }\n}\n\nfunction decodeRing(coordinate, encodeOffsets, encodeScale) {\n var result = [];\n var prevX = encodeOffsets[0];\n var prevY = encodeOffsets[1];\n\n for (var i = 0; i < coordinate.length; i += 2) {\n var x = coordinate.charCodeAt(i) - 64;\n var y = coordinate.charCodeAt(i + 1) - 64; // ZigZag decoding\n\n x = x >> 1 ^ -(x & 1);\n y = y >> 1 ^ -(y & 1); // Delta deocding\n\n x += prevX;\n y += prevY;\n prevX = x;\n prevY = y; // Dequantize\n\n result.push([x / encodeScale, y / encodeScale]);\n }\n\n return result;\n}\n\nexport default function parseGeoJSON(geoJson, nameProperty) {\n geoJson = decode(geoJson);\n return zrUtil.map(zrUtil.filter(geoJson.features, function (featureObj) {\n // Output of mapshaper may have geometry null\n return featureObj.geometry && featureObj.properties && featureObj.geometry.coordinates.length > 0;\n }), function (featureObj) {\n var properties = featureObj.properties;\n var geo = featureObj.geometry;\n var geometries = [];\n\n switch (geo.type) {\n case 'Polygon':\n var coordinates = geo.coordinates; // According to the GeoJSON specification.\n // First must be exterior, and the rest are all interior(holes).\n\n geometries.push(new GeoJSONPolygonGeometry(coordinates[0], coordinates.slice(1)));\n break;\n\n case 'MultiPolygon':\n zrUtil.each(geo.coordinates, function (item) {\n if (item[0]) {\n geometries.push(new GeoJSONPolygonGeometry(item[0], item.slice(1)));\n }\n });\n break;\n\n case 'LineString':\n geometries.push(new GeoJSONLineStringGeometry([geo.coordinates]));\n break;\n\n case 'MultiLineString':\n geometries.push(new GeoJSONLineStringGeometry(geo.coordinates));\n }\n\n var region = new GeoJSONRegion(properties[nameProperty || 'name'], geometries, properties.cp);\n region.properties = properties;\n return region;\n });\n}"],"names":["zrUtil.each","zr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AACR,YAAQ;AAER,WAAO,KAAK,CAAC,IAAI,aAAa,IAAI,WAAW,CAAC;AAAA,EAC/C;AAED,SAAO;AACT;AAEe,sBAAsB,SAAS,cAAc;AAC1D,YAAU,OAAO,OAAO;AACxB,SAAOC,IAAWC,OAAc,QAAQ,UAAU,SAAU,YAAY;AAEtE,WAAO,WAAW,YAAY,WAAW,cAAc,WAAW,SAAS,YAAY,SAAS;AAAA,EACpG,CAAG,GAAG,SAAU,YAAY;AACxB,QAAI,aAAa,WAAW;AAC5B,QAAI,MAAM,WAAW;AACrB,QAAI,aAAa,CAAA;AAEjB,YAAQ,IAAI;AAAA,WACL;AACH,YAAI,cAAc,IAAI;AAGtB,mBAAW,KAAK,IAAI,uBAAuB,YAAY,IAAI,YAAY,MAAM,CAAC,CAAC,CAAC;AAChF;AAAA,WAEG;AACHF,aAAY,IAAI,aAAa,SAAU,MAAM;AAC3C,cAAI,KAAK,IAAI;AACX,uBAAW,KAAK,IAAI,uBAAuB,KAAK,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC;AAAA,UACnE;AAAA,QACX,CAAS;AACD;AAAA,WAEG;AACH,mBAAW,KAAK,IAAI,0BAA0B,CAAC,IAAI,WAAW,CAAC,CAAC;AAChE;AAAA,WAEG;AACH,mBAAW,KAAK,IAAI,0BAA0B,IAAI,WAAW,CAAC;AAAA;AAGlE,QAAI,SAAS,IAAI,cAAc,WAAW,gBAAgB,SAAS,YAAY,WAAW,EAAE;AAC5F,WAAO,aAAa;AACpB,WAAO;AAAA,EACX,CAAG;AACH;;"}
1
+ {"version":3,"file":"parseGeoJson.js","sources":["../../../../../../node_modules/echarts/lib/coord/geo/parseGeoJson.js"],"sourcesContent":["\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Parse and decode geo json\n */\nimport * as zrUtil from 'zrender/lib/core/util.js';\nimport { GeoJSONLineStringGeometry, GeoJSONPolygonGeometry, GeoJSONRegion } from './Region.js';\n\nfunction decode(json) {\n if (!json.UTF8Encoding) {\n return json;\n }\n\n var jsonCompressed = json;\n var encodeScale = jsonCompressed.UTF8Scale;\n\n if (encodeScale == null) {\n encodeScale = 1024;\n }\n\n var features = jsonCompressed.features;\n zrUtil.each(features, function (feature) {\n var geometry = feature.geometry;\n var encodeOffsets = geometry.encodeOffsets;\n var coordinates = geometry.coordinates; // Geometry may be appeded manually in the script after json loaded.\n // In this case this geometry is usually not encoded.\n\n if (!encodeOffsets) {\n return;\n }\n\n switch (geometry.type) {\n case 'LineString':\n geometry.coordinates = decodeRing(coordinates, encodeOffsets, encodeScale);\n break;\n\n case 'Polygon':\n decodeRings(coordinates, encodeOffsets, encodeScale);\n break;\n\n case 'MultiLineString':\n decodeRings(coordinates, encodeOffsets, encodeScale);\n break;\n\n case 'MultiPolygon':\n zrUtil.each(coordinates, function (rings, idx) {\n return decodeRings(rings, encodeOffsets[idx], encodeScale);\n });\n }\n }); // Has been decoded\n\n jsonCompressed.UTF8Encoding = false;\n return jsonCompressed;\n}\n\nfunction decodeRings(rings, encodeOffsets, encodeScale) {\n for (var c = 0; c < rings.length; c++) {\n rings[c] = decodeRing(rings[c], encodeOffsets[c], encodeScale);\n }\n}\n\nfunction decodeRing(coordinate, encodeOffsets, encodeScale) {\n var result = [];\n var prevX = encodeOffsets[0];\n var prevY = encodeOffsets[1];\n\n for (var i = 0; i < coordinate.length; i += 2) {\n var x = coordinate.charCodeAt(i) - 64;\n var y = coordinate.charCodeAt(i + 1) - 64; // ZigZag decoding\n\n x = x >> 1 ^ -(x & 1);\n y = y >> 1 ^ -(y & 1); // Delta deocding\n\n x += prevX;\n y += prevY;\n prevX = x;\n prevY = y; // Dequantize\n\n result.push([x / encodeScale, y / encodeScale]);\n }\n\n return result;\n}\n\nexport default function parseGeoJSON(geoJson, nameProperty) {\n geoJson = decode(geoJson);\n return zrUtil.map(zrUtil.filter(geoJson.features, function (featureObj) {\n // Output of mapshaper may have geometry null\n return featureObj.geometry && featureObj.properties && featureObj.geometry.coordinates.length > 0;\n }), function (featureObj) {\n var properties = featureObj.properties;\n var geo = featureObj.geometry;\n var geometries = [];\n\n switch (geo.type) {\n case 'Polygon':\n var coordinates = geo.coordinates; // According to the GeoJSON specification.\n // First must be exterior, and the rest are all interior(holes).\n\n geometries.push(new GeoJSONPolygonGeometry(coordinates[0], coordinates.slice(1)));\n break;\n\n case 'MultiPolygon':\n zrUtil.each(geo.coordinates, function (item) {\n if (item[0]) {\n geometries.push(new GeoJSONPolygonGeometry(item[0], item.slice(1)));\n }\n });\n break;\n\n case 'LineString':\n geometries.push(new GeoJSONLineStringGeometry([geo.coordinates]));\n break;\n\n case 'MultiLineString':\n geometries.push(new GeoJSONLineStringGeometry(geo.coordinates));\n }\n\n var region = new GeoJSONRegion(properties[nameProperty || 'name'], geometries, properties.cp);\n region.properties =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AAE,IAAI;AAEnB,SAAK;AACL,SAAK;AACL,YAAQ;AACR,YAAQ;AAER,WAAO,KAAK,CAAC,IAAI,aAAa,IAAI,WAAW,CAAC;AAAA,EAC/C;AAED,SAAO;AACT;AAEe,SAAS,aAAa,SAAS,cAAc;AAC1D,YAAU,OAAO,OAAO;AACxB,SAAOC,IAAWC,OAAc,QAAQ,UAAU,SAAU,YAAY;AAEtE,WAAO,WAAW,YAAY,WAAW,cAAc,WAAW,SAAS,YAAY,SAAS;AAAA,EACpG,CAAG,GAAG,SAAU,YAAY;AACxB,QAAI,aAAa,WAAW;AAC5B,QAAI,MAAM,WAAW;AACrB,QAAI,aAAa,CAAA;AAEjB,YAAQ,IAAI;AAAA,WACL;AACH,YAAI,cAAc,IAAI;AAGtB,mBAAW,KAAK,IAAI,uBAAuB,YAAY,IAAI,YAAY,MAAM,CAAC,CAAC,CAAC;AAChF;AAAA,WAEG;AACHF,aAAY,IAAI,aAAa,SAAU,MAAM;AAC3C,cAAI,KAAK,IAAI;AACX,uBAAW,KAAK,IAAI,uBAAuB,KAAK,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC;AAAA,UACnE;AAAA,QACX,CAAS;AACD;AAAA,WAEG;AACH,mBAAW,KAAK,IAAI,0BAA0B,CAAC,IAAI,WAAW,CAAC,CAAC;AAChE;AAAA,WAEG;AACH,mBAAW,KAAK,IAAI,0BAA0B,IAAI,WAAW,CAAC;AAAA;AAGlE,QAAI,SAAS,IAAI,cAAc,WAAW,gBAAgB,SAAS,YAAY,WAAW,EAAE;AAC5F,WAAO,aAAa;AACpB,WAAO;AAAA,EACX,CAAG;AACH;"}
@@ -1,4 +1,4 @@
1
- import { isFunction, eqNaN, isArray } from "../../../zrender/lib/core/util.js";
1
+ import { isFunction, isArray, assert, eqNaN } from "../../../zrender/lib/core/util.js";
2
2
  import { parsePercent } from "../../../zrender/lib/contain/text.js";
3
3
  var ScaleRawExtentInfo = function() {
4
4
  function ScaleRawExtentInfo2(scale, model, originalExtent) {
@@ -36,6 +36,9 @@ var ScaleRawExtentInfo = function() {
36
36
  var boundaryGap = model.get("boundaryGap");
37
37
  var boundaryGapArr = isArray(boundaryGap) ? boundaryGap : [boundaryGap || 0, boundaryGap || 0];
38
38
  if (typeof boundaryGapArr[0] === "boolean" || typeof boundaryGapArr[1] === "boolean") {
39
+ if (process.env.NODE_ENV !== "production") {
40
+ console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.');
41
+ }
39
42
  this._boundaryGapInner = [0, 0];
40
43
  } else {
41
44
  this._boundaryGapInner = [parsePercent(boundaryGapArr[0], 1), parsePercent(boundaryGapArr[1], 1)];
@@ -89,10 +92,16 @@ var ScaleRawExtentInfo = function() {
89
92
  };
90
93
  };
91
94
  ScaleRawExtentInfo2.prototype.modifyDataMinMax = function(minMaxName, val) {
95
+ if (process.env.NODE_ENV !== "production") {
96
+ assert(!this.frozen);
97
+ }
92
98
  this[DATA_MIN_MAX_ATTR[minMaxName]] = val;
93
99
  };
94
100
  ScaleRawExtentInfo2.prototype.setDeterminedMinMax = function(minMaxName, val) {
95
101
  var attr = DETERMINED_MIN_MAX_ATTR[minMaxName];
102
+ if (process.env.NODE_ENV !== "production") {
103
+ assert(!this.frozen && this[attr] == null);
104
+ }
96
105
  this[attr] = val;
97
106
  };
98
107
  ScaleRawExtentInfo2.prototype.freeze = function() {
@@ -120,5 +129,9 @@ function ensureScaleRawExtentInfo(scale, model, originalExtent) {
120
129
  function parseAxisModelMinMax(scale, minMax) {
121
130
  return minMax == null ? null : eqNaN(minMax) ? NaN : scale.parse(minMax);
122
131
  }
123
- export { ScaleRawExtentInfo, ensureScaleRawExtentInfo, parseAxisModelMinMax };
132
+ export {
133
+ ScaleRawExtentInfo,
134
+ ensureScaleRawExtentInfo,
135
+ parseAxisModelMinMax
136
+ };
124
137
  //# sourceMappingURL=scaleRawExtentInfo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"scaleRawExtentInfo.js","sources":["../../../../../node_modules/echarts/lib/coord/scaleRawExtentInfo.js"],"sourcesContent":["\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { assert, isArray, eqNaN, isFunction } from 'zrender/lib/core/util.js';\nimport { parsePercent } from 'zrender/lib/contain/text.js';\n\nvar ScaleRawExtentInfo =\n/** @class */\nfunction () {\n function ScaleRawExtentInfo(scale, model, // Usually: data extent from all series on this axis.\n originalExtent) {\n this._prepareParams(scale, model, originalExtent);\n }\n /**\n * Parameters depending on ouside (like model, user callback)\n * are prepared and fixed here.\n */\n\n\n ScaleRawExtentInfo.prototype._prepareParams = function (scale, model, // Usually: data extent from all series on this axis.\n dataExtent) {\n if (dataExtent[1] < dataExtent[0]) {\n dataExtent = [NaN, NaN];\n }\n\n this._dataMin = dataExtent[0];\n this._dataMax = dataExtent[1];\n var isOrdinal = this._isOrdinal = scale.type === 'ordinal';\n this._needCrossZero = scale.type === 'interval' && model.getNeedCrossZero && model.getNeedCrossZero();\n var modelMinRaw = this._modelMinRaw = model.get('min', true);\n\n if (isFunction(modelMinRaw)) {\n // This callback alway provide users the full data extent (before data filtered).\n this._modelMinNum = parseAxisModelMinMax(scale, modelMinRaw({\n min: dataExtent[0],\n max: dataExtent[1]\n }));\n } else if (modelMinRaw !== 'dataMin') {\n this._modelMinNum = parseAxisModelMinMax(scale, modelMinRaw);\n }\n\n var modelMaxRaw = this._modelMaxRaw = model.get('max', true);\n\n if (isFunction(modelMaxRaw)) {\n // This callback alway provide users the full data extent (before data filtered).\n this._modelMaxNum = parseAxisModelMinMax(scale, modelMaxRaw({\n min: dataExtent[0],\n max: dataExtent[1]\n }));\n } else if (modelMaxRaw !== 'dataMax') {\n this._modelMaxNum = parseAxisModelMinMax(scale, modelMaxRaw);\n }\n\n if (isOrdinal) {\n // FIXME: there is a flaw here: if there is no \"block\" data processor like `dataZoom`,\n // and progressive rendering is using, here the category result might just only contain\n // the processed chunk rather than the entire result.\n this._axisDataLen = model.getCategories().length;\n } else {\n var boundaryGap = model.get('boundaryGap');\n var boundaryGapArr = isArray(boundaryGap) ? boundaryGap : [boundaryGap || 0, boundaryGap || 0];\n\n if (typeof boundaryGapArr[0] === 'boolean' || typeof boundaryGapArr[1] === 'boolean') {\n if (process.env.NODE_ENV !== 'production') {\n console.warn('Boolean type for boundaryGap is only ' + 'allowed for ordinal axis. Please use string in ' + 'percentage instead, e.g., \"20%\". Currently, ' + 'boundaryGap is set to be 0.');\n }\n\n this._boundaryGapInner = [0, 0];\n } else {\n this._boundaryGapInner = [parsePercent(boundaryGapArr[0], 1), parsePercent(boundaryGapArr[1], 1)];\n }\n }\n };\n /**\n * Calculate extent by prepared parameters.\n * This method has no external dependency and can be called duplicatedly,\n * getting the same result.\n * If parameters changed, should call this method to recalcuate.\n */\n\n\n ScaleRawExtentInfo.prototype.calculate = function () {\n // Notice: When min/max is not set (that is, when there are null/undefined,\n // which is the most common case), these cases should be ensured:\n // (1) For 'ordinal', show all axis.data.\n // (2) For others:\n // + `boundaryGap` is applied (if min/max set, boundaryGap is\n // disabled).\n // + If `needCrossZero`, min/max should be zero, otherwise, min/max should\n // be the result that originalExtent enlarged by boundaryGap.\n // (3) If no data, it should be ensured that `scale.setBlank` is set.\n var isOrdinal = this._isOrdinal;\n var dataMin = this._dataMin;\n var dataMax = this._dataMax;\n var axisDataLen = this._axisDataLen;\n var boundaryGapInner = this._boundaryGapInner;\n var span = !isOrdinal ? dataMax - dataMin || Math.abs(dataMin) : null; // Currently if a `'value'` axis model min is specified as 'dataMin'/'dataMax',\n // `boundaryGap` will not be used. It's the different from specifying as `null`/`undefined`.\n\n var min = this._modelMinRaw === 'dataMin' ? dataMin : this._modelMinNum;\n var max = this._modelMaxRaw === 'dataMax' ? dataMax : this._modelMaxNum; // If `_modelMinNum`/`_modelMaxNum` is `null`/`undefined`, should not be fixed.\n\n var minFixed = min != null;\n var maxFixed = max != null;\n\n if (min == null) {\n min = isOrdinal ? axisDataLen ? 0 : NaN : dataMin - boundaryGapInner[0] * span;\n }\n\n if (max == null) {\n max = isOrdinal ? axisDataLen ? axisDataLen - 1 : NaN : dataMax + boundaryGapInner[1] * span;\n }\n\n (min == null || !isFinite(min)) && (min = NaN);\n (max == null || !isFinite(max)) && (max = NaN);\n var isBlank = eqNaN(min) || eqNaN(max) || isOrdinal && !axisDataLen; // If data extent modified, need to recalculated to ensure cross zero.\n\n if (this._needCrossZero) {\n // Axis is over zero and min is not set\n if (min > 0 && max > 0 && !minFixed) {\n min = 0; // minFixed = true;\n } // Axis is under zero and max is not set\n\n\n if (min < 0 && max < 0 && !maxFixed) {\n max = 0; // maxFixed = true;\n } // PENDING:\n // When `needCrossZero` and all data is positive/negative, should it be ensured\n // that the results processed by boundaryGap are positive/negative?\n // If so, here `minFixed`/`maxFixed` need to be set.\n\n }\n\n var determinedMin = this._determinedMin;\n var determinedMax = this._determinedMax;\n\n if (determinedMin != null) {\n min = determinedMin;\n minFixed = true;\n }\n\n if (determinedMax != null) {\n max = determinedMax;\n maxFixed = true;\n } // Ensure min/max be finite number or NaN here. (not to be null/undefined)\n // `NaN` means min/max axis is blank.\n\n\n return {\n min: min,\n max: max,\n minFixed: minFixed,\n maxFixed: maxFixed,\n isBlank: isBlank\n };\n };\n\n ScaleRawExtentInfo.prototype.modifyDataMinMax = function (minMaxName, val) {\n if (process.env.NODE_ENV !== 'production') {\n assert(!this.frozen);\n }\n\n this[DATA_MIN_MAX_ATTR[minMaxName]] = val;\n };\n\n ScaleRawExtentInfo.prototype.setDeterminedMinMax = function (minMaxName, val) {\n var attr = DETERMINED_MIN_MAX_ATTR[minMaxName];\n\n if (process.env.NODE_ENV !== 'production') {\n assert(!this.frozen // Earse them usually means logic flaw.\n && this[attr] == null);\n }\n\n this[attr] = val;\n };\n\n ScaleRawExtentInfo.prototype.freeze = function () {\n // @ts-ignore\n this.frozen = true;\n };\n\n return ScaleRawExtentInfo;\n}();\n\nexport { ScaleRawExtentInfo };\nvar DETERMINED_MIN_MAX_ATTR = {\n min: '_determinedMin',\n max: '_determinedMax'\n};\nvar DATA_MIN_MAX_ATTR = {\n min: '_dataMin',\n max: '_dataMax'\n};\n/**\n * Get scale min max and related info only depends on model settings.\n * This method can be called after coordinate system created.\n * For example, in data processing stage.\n *\n * Scale extent info probably be required multiple times during a workflow.\n * For example:\n * (1) `dataZoom` depends it to get the axis extent in \"100%\" state.\n * (2) `processor/extentCalculator` depends it to make sure whether axis extent is specified.\n * (3) `coordSys.update` use it to finally decide the scale extent.\n * But the callback of `min`/`max` should not be called multiple times.\n * The code below should not be implemented repeatedly either.\n * So we cache the result in the scale instance, which will be recreated at the begining\n * of the workflow (because `scale` instance will be recreated each round of the workflow).\n */\n\nexport function ensureScaleRawExtentInfo(scale, model, // Usually: data extent from all series on this axis.\noriginalExtent) {\n // Do not permit to recreate.\n var rawExtentInfo = scale.rawExtentInfo;\n\n if (rawExtentInfo) {\n return rawExtentInfo;\n }\n\n rawExtentInfo = new ScaleRawExtentInfo(scale, model, originalExtent); // @ts-ignore\n\n scale.rawExtentInfo = rawExtentInfo;\n return rawExtentInfo;\n}\nexport function parseAxisModelMinMax(scale, minMax) {\n return minMax == null ? null : eqNaN(minMax) ? NaN : scale.parse(minMax);\n}"],"names":[],"mappings":";;AA8CG,IAAC,qBAEJ,WAAY;AACV,+BAA4B,OAAO,OACnC,gBAAgB;AACd,SAAK,eAAe,OAAO,OAAO,cAAc;AAAA,EACjD;AAOD,sBAAmB,UAAU,iBAAiB,SAAU,OAAO,OAC/D,YAAY;AACV,QAAI,WAAW,KAAK,WAAW,IAAI;AACjC,mBAAa,CAAC,KAAK,GAAG;AAAA,IACvB;AAED,SAAK,WAAW,WAAW;AAC3B,SAAK,WAAW,WAAW;AAC3B,QAAI,YAAY,KAAK,aAAa,MAAM,SAAS;AACjD,SAAK,iBAAiB,MAAM,SAAS,cAAc,MAAM,oBAAoB,MAAM;AACnF,QAAI,cAAc,KAAK,eAAe,MAAM,IAAI,OAAO,IAAI;AAE3D,QAAI,WAAW,WAAW,GAAG;AAE3B,WAAK,eAAe,qBAAqB,OAAO,YAAY;AAAA,QAC1D,KAAK,WAAW;AAAA,QAChB,KAAK,WAAW;AAAA,MACjB,CAAA,CAAC;AAAA,IACR,WAAe,gBAAgB,WAAW;AACpC,WAAK,eAAe,qBAAqB,OAAO,WAAW;AAAA,IAC5D;AAED,QAAI,cAAc,KAAK,eAAe,MAAM,IAAI,OAAO,IAAI;AAE3D,QAAI,WAAW,WAAW,GAAG;AAE3B,WAAK,eAAe,qBAAqB,OAAO,YAAY;AAAA,QAC1D,KAAK,WAAW;AAAA,QAChB,KAAK,WAAW;AAAA,MACjB,CAAA,CAAC;AAAA,IACR,WAAe,gBAAgB,WAAW;AACpC,WAAK,eAAe,qBAAqB,OAAO,WAAW;AAAA,IAC5D;AAED,Q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;AACnC,cAAM;AAAA,MACP;AAGD,UAAI,MAAM,KAAK,MAAM,KAAK,CAAC,UAAU;AACnC,cAAM;AAAA,MACP;AAAA,IAKF;AAED,QAAI,gBAAgB,KAAK;AACzB,QAAI,gBAAgB,KAAK;AAEzB,QAAI,iBAAiB,MAAM;AACzB,YAAM;AACN,iBAAW;AAAA,IACZ;AAED,QAAI,iBAAiB,MAAM;AACzB,YAAM;AACN,iBAAW;AAAA,IACZ;AAID,WAAO;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACN;AAAA,EACA;AAEE,sBAAmB,UAAU,mBAAmB,SAAU,YAAY,KAAK;AAKzE,SAAK,kBAAkB,eAAe;AAAA,EAC1C;AAEE,sBAAmB,UAAU,sBAAsB,SAAU,YAAY,KAAK;AAC5E,QAAI,OAAO,wBAAwB;AAOnC,SAAK,QAAQ;AAAA,EACjB;AAEE,sBAAmB,UAAU,SAAS,WAAY;AAEhD,SAAK,SAAS;AAAA,EAClB;AAEE,SAAO;AACT,EAAI;AAGJ,IAAI,0BAA0B;AAAA,EAC5B,KAAK;AAAA,EACL,KAAK;AACP;AACA,IAAI,oBAAoB;AAAA,EACtB,KAAK;AAAA,EACL,KAAK;AACP;AAiBO,kCAAkC,OAAO,OAChD,gBAAgB;AAEd,MAAI,gBAAgB,MAAM;AAE1B,MAAI,eAAe;AACjB,WAAO;AAAA,EACR;AAED,kBAAgB,IAAI,mBAAmB,OAAO,OAAO,cAAc;AAEnE,QAAM,gBAAgB;AACtB,SAAO;AACT;AACO,8BAA8B,OAAO,QAAQ;AAClD,SAAO,UAAU,OAAO,OAAO,MAAM,MAAM,IAAI,MAAM,MAAM,MAAM,MAAM;AACzE;;"}
1
+ {"version":3,"file":"scaleRawExtentInfo.js","sources":["../../../../../node_modules/echarts/lib/coord/scaleRawExtentInfo.js"],"sourcesContent":["\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { assert, isArray, eqNaN, isFunction } from 'zrender/lib/core/util.js';\nimport { parsePercent } from 'zrender/lib/contain/text.js';\n\nvar ScaleRawExtentInfo =\n/** @class */\nfunction () {\n function ScaleRawExtentInfo(scale, model, // Usually: data extent from all series on this axis.\n originalExtent) {\n this._prepareParams(scale, model, originalExtent);\n }\n /**\n * Parameters depending on ouside (like model, user callback)\n * are prepared and fixed here.\n */\n\n\n ScaleRawExtentInfo.prototype._prepareParams = function (scale, model, // Usually: data extent from all series on this axis.\n dataExtent) {\n if (dataExtent[1] < dataExtent[0]) {\n dataExtent = [NaN, NaN];\n }\n\n this._dataMin = dataExtent[0];\n this._dataMax = dataExtent[1];\n var isOrdinal = this._isOrdinal = scale.type === 'ordinal';\n this._needCrossZero = scale.type === 'interval' && model.getNeedCrossZero && model.getNeedCrossZero();\n var modelMinRaw = this._modelMinRaw = model.get('min', true);\n\n if (isFunction(modelMinRaw)) {\n // This callback alway provide users the full data extent (before data filtered).\n this._modelMinNum = parseAxisModelMinMax(scale, modelMinRaw({\n min: dataExtent[0],\n max: dataExtent[1]\n }));\n } else if (modelMinRaw !== 'dataMin') {\n this._modelMinNum = parseAxisModelMinMax(scale, modelMinRaw);\n }\n\n var modelMaxRaw = this._modelMaxRaw = model.get('max', true);\n\n if (isFunction(modelMaxRaw)) {\n // This callback alway provide users the full data extent (before data filtered).\n this._modelMaxNum = parseAxisModelMinMax(scale, modelMaxRaw({\n min: dataExtent[0],\n max: dataExtent[1]\n }));\n } else if (modelMaxRaw !== 'dataMax') {\n this._modelMaxNum = parseAxisModelMinMax(scale, modelMaxRaw);\n }\n\n if (isOrdinal) {\n // FIXME: there is a flaw here: if there is no \"block\" data processor like `dataZoom`,\n // and progressive rendering is using, here the category result might just only contain\n // the processed chunk rather than the entire result.\n this._axisDataLen = model.getCategories().length;\n } else {\n var boundaryGap = model.get('boundaryGap');\n var boundaryGapArr = isArray(boundaryGap) ? boundaryGap : [boundaryGap || 0, boundaryGap || 0];\n\n if (typeof boundaryGapArr[0] === 'boolean' || typeof boundaryGapArr[1] === 'boolean') {\n if (process.env.NODE_ENV !== 'production') {\n console.warn('Boolean type for boundaryGap is only ' + 'allowed for ordinal axis. Please use string in ' + 'percentage instead, e.g., \"20%\". Currently, ' + 'boundaryGap is set to be 0.');\n }\n\n this._boundaryGapInner = [0, 0];\n } else {\n this._boundaryGapInner = [parsePercent(boundaryGapArr[0], 1), parsePercent(boundaryGapArr[1], 1)];\n }\n }\n };\n /**\n * Calculate extent by prepared parameters.\n * This method has no external dependency and can be called duplicatedly,\n * getting the same result.\n * If parameters changed, should call this method to recalcuate.\n */\n\n\n ScaleRawExtentInfo.prototype.calculate = function () {\n // Notice: When min/max is not set (that is, when there are null/undefined,\n // which is the most common case), these cases should be ensured:\n // (1) For 'ordinal', show all axis.data.\n // (2) For others:\n // + `boundaryGap` is applied (if min/max set, boundaryGap is\n // disabled).\n // + If `needCrossZero`, min/max should be zero, otherwise, min/max should\n // be the result that originalExtent enlarged by boundaryGap.\n // (3) If no data, it should be ensured that `scale.setBlank` is set.\n var isOrdinal = this._isOrdinal;\n var dataMin = this._dataMin;\n var dataMax = this._dataMax;\n var axisDataLen = this._axisDataLen;\n var boundaryGapInner = this._boundaryGapInner;\n var span = !isOrdinal ? dataMax - dataMin || Math.abs(dataMin) : null; // Currently if a `'value'` axis model min is specified as 'dataMin'/'dataMax',\n // `boundaryGap` will not be used. It's the different from specifying as `null`/`undefined`.\n\n var min = this._modelMinRaw === 'dataMin' ? dataMin : this._modelMinNum;\n var max = this._modelMaxRaw === 'dataMax' ? dataMax : this._modelMaxNum; // If `_modelMinNum`/`_modelMaxNum` is `null`/`undefined`, should not be fixed.\n\n var minFixed = min != null;\n var maxFixed = max != null;\n\n if (min == null) {\n min = isOrdinal ? axisDataLen ? 0 : NaN : dataMin - boundaryGapInner[0] * span;\n }\n\n if (max == null) {\n max = isOrdinal ? axisDataLen ? axisDataLen - 1 : NaN : dataMax + boundaryGapInner[1] * span;\n }\n\n (min == null || !isFinite(min)) && (min = NaN);\n (max == null || !isFinite(max)) && (max = NaN);\n var isBlank = eqNaN(min) || eqNaN(max) || isOrdinal && !axisDataLen; // If data extent modified, need to recalculated to ensure cross zero.\n\n if (this._needCrossZero) {\n // Axis is over zero and min is not set\n if (min > 0 && max > 0 && !minFixed) {\n min = 0; // minFixed = true;\n } // Axis is under zero and max is not set\n\n\n if (min < 0 && max < 0 && !maxFixed) {\n max = 0; // maxFixed = true;\n } // PENDING:\n // When `needCrossZero` and all data is positive/negative, should it be ensured\n // that the results processed by boundaryGap are positive/negative?\n // If so, here `minFixed`/`maxFixed` need to be set.\n\n }\n\n var determinedMin = this._determinedMin;\n var determinedMax = this._determinedMax;\n\n if (determinedMin != null) {\n min = determinedMin;\n minFixed = true;\n }\n\n if (determinedMax != null) {\n max = determinedMax;\n maxFixed = true;\n } // Ensure min/max be finite number or NaN here. (not to be null/undefined)\n // `NaN` means min/max axis is blank.\n\n\n return {\n min: min,\n max: max,\n minFixed: minFixed,\n maxFixed: maxFixed,\n isBlank: isBlank\n };\n };\n\n ScaleRawExtentInfo.prototype.modifyDataMinMax = function (minMaxName, val) {\n if (process.env.NODE_ENV !== 'production') {\n assert(!this.frozen);\n }\n\n this[DATA_MIN_MAX_ATTR[minMaxName]] = val;\n };\n\n ScaleRawExtentInfo.prototype.setDeterminedMinMax = function (minMaxName, val) {\n var attr = DETERMINED_MIN_MAX_ATTR[minMaxName];\n\n if (process.env.NODE_ENV !== 'production') {\n assert(!this.frozen // Earse them usually means logic flaw.\n && this[attr] == null);\n }\n\n this[attr] = val;\n };\n\n ScaleRawExtentInfo.prototype.freeze = function () {\n // @ts-ignore\n this.frozen = true;\n };\n\n return ScaleRawExtentInfo;\n}();\n\nexport { ScaleRawExtentInfo };\nvar DETERMINED_MIN_MAX_ATTR = {\n min: '_determinedMin',\n max: '_determinedMax'\n};\nvar DATA_MIN_MAX_ATTR = {\n min: '_dataMin',\n max: '_dataMax'\n};\n/**\n * Get scale min max and related info only depends on model settings.\n * This method can be called after coordinate system created.\n * For example, in data processing stage.\n *\n * Scale extent info probably be required multiple times during a workflow.\n * For example:\n * (1) `dataZoom` depends it to get the axis extent in \"100%\" state.\n * (2) `processor/extentCalculator` depends it to make sure whether axis extent is specified.\n * (3) `coordSys.update` use it to finally decide the scale extent.\n * But the callback of `min`/`max` should not be called multiple times.\n * The code below should not be implemented repeatedly either.\n * So we cache the result in the scale instance, which will be recreated at the begining\n * of the workflow (because `scale` instance will be recreated each round of the workflow).\n */\n\nexport function ensureScaleRawExtentInfo(scale, model, // Usually: data extent from all series on this axis.\noriginalExtent) {\n // Do not permit to recreate.\n var rawExtentInfo = scale.rawExtentInfo;\n\n if (rawExtentInfo) {\n return rawExtentInfo;\n }\n\n rawExtentInfo = new ScaleRawExtentInfo(scale, model, originalExtent); // @ts-ignore\n\n scale.rawExtentInfo = rawExtentInfo;\n return rawExtentInfo;\n}\nexport function parseAxisModelMinMax(scale, minMax) {\n return minMax == null ? null : eqNaN(minMax) ? NaN : scale.parse(minMax);\n}"],"names":["ScaleRawExtentInfo"],"mappings":";;AA8CG,IAAC,qBAEJ,WAAY;AACV,WAASA,oBAAmB,OAAO,OACnC,gBAAgB;AACd,SAAK,eAAe,OAAO,OAAO,cAAc;AAAA,EACjD;AAOD,EAAAA,oBAAmB,UAAU,iBAAiB,SAAU,OAAO,OAC/D,YAAY;AACV,QAAI,WAAW,KAAK,WAAW,IAAI;AACjC,mBAAa,CAAC,KAAK,GAAG;AAAA,IACvB;AAED,SAAK,WAAW,WAAW;AAC3B,SAAK,WAAW,WAAW;AAC3B,QAAI,YAAY,KAAK,aAAa,MAAM,SAAS;AACjD,SAAK,iBAAiB,MAAM,SAAS,cAAc,MAAM,oBAAoB,MAAM;AACnF,QAAI,cAAc,KAAK,eAAe,MAAM,IAAI,OAAO,IAAI;AAE3D,QAAI,WAAW,WAAW,GAAG;AAE3B,WAAK,eAAe,qBAAqB,OAAO,YAAY;AAAA,QAC1D,KAAK,WAAW;AAAA,QAChB,KAAK,WAAW;AAAA,MACjB,CAAA,CAAC;AAAA,IACR,WAAe,gBAAgB,WAAW;AACpC,WAAK,eAAe,qBAAqB,OAAO,WAAW;AAAA,IAC5D;AAED,QAAI,cAAc,KAAK,eAAe,MAAM,IAAI,OAAO,IAAI;AAE3D,QAAI,WAAW,WAAW,GAAG;AAE3B,WAAK,eAAe,qBAAqB,OAAO,YAAY;AAAA,QAC1D,KAAK,WAAW;AAAA,QAChB,KAAK,WAAW;AAAA,MACjB,CAAA,CAAC;AAAA,IACR,WAAe,gBAAgB,WAAW;AACpC,WAAK,eAAe,qBAAqB,OAAO,WAAW;AAAA,IAC5D;AAED,QAAI,WAAW;AAIb,WAAK,eAAe,MAAM,cAAa,EAAG;AAAA,IAChD,OAAW;AACL,UAAI,cAAc,MAAM,IAAI,aAAa;AACzC,UAAI,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