q2-tecton-elements 1.51.1 → 1.52.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (613) hide show
  1. package/dist/cjs/click-elsewhere_2.cjs.entry.js +16 -5
  2. package/dist/cjs/click-elsewhere_2.cjs.entry.js.map +1 -1
  3. package/dist/cjs/{index-9aa4a776.js → index-07285783.js} +86 -2
  4. package/dist/cjs/index-07285783.js.map +1 -0
  5. package/dist/cjs/{index-14c3693c.js → index-e7e68b1e.js} +40 -5
  6. package/dist/cjs/index-e7e68b1e.js.map +1 -0
  7. package/dist/cjs/loader.cjs.js +2 -2
  8. package/dist/cjs/q2-action-group.cjs.entry.js +2 -2
  9. package/dist/cjs/q2-action-sheet.cjs.entry.js +3 -3
  10. package/dist/cjs/q2-avatar.cjs.entry.js +2 -2
  11. package/dist/cjs/q2-badge_7.cjs.entry.js +49 -44
  12. package/dist/cjs/q2-badge_7.cjs.entry.js.map +1 -1
  13. package/dist/cjs/q2-calendar.cjs.entry.js +17 -20
  14. package/dist/cjs/q2-calendar.cjs.entry.js.map +1 -1
  15. package/dist/cjs/q2-card.cjs.entry.js +4 -2
  16. package/dist/cjs/q2-card.cjs.entry.js.map +1 -1
  17. package/dist/cjs/q2-carousel-pane.cjs.entry.js +4 -4
  18. package/dist/cjs/q2-carousel.cjs.entry.js +2 -2
  19. package/dist/cjs/q2-chart-area.cjs.entry.js +16 -3
  20. package/dist/cjs/q2-chart-area.cjs.entry.js.map +1 -1
  21. package/dist/cjs/q2-chart-bar.cjs.entry.js +3 -3
  22. package/dist/cjs/q2-chart-donut.cjs.entry.js +19 -3
  23. package/dist/cjs/q2-chart-donut.cjs.entry.js.map +1 -1
  24. package/dist/cjs/q2-checkbox-group.cjs.entry.js +6 -5
  25. package/dist/cjs/q2-checkbox-group.cjs.entry.js.map +1 -1
  26. package/dist/cjs/q2-checkbox.cjs.entry.js +2 -2
  27. package/dist/cjs/q2-currency.cjs.entry.js +14 -2
  28. package/dist/cjs/q2-currency.cjs.entry.js.map +1 -1
  29. package/dist/cjs/q2-data-table.cjs.entry.js +3 -3
  30. package/dist/cjs/q2-data-table.cjs.entry.js.map +1 -1
  31. package/dist/cjs/q2-detail.cjs.entry.js +3 -3
  32. package/dist/cjs/q2-dropdown-item.cjs.entry.js +12 -14
  33. package/dist/cjs/q2-dropdown-item.cjs.entry.js.map +1 -1
  34. package/dist/cjs/q2-dropdown.cjs.entry.js +7 -5
  35. package/dist/cjs/q2-dropdown.cjs.entry.js.map +1 -1
  36. package/dist/cjs/q2-editable-field.cjs.entry.js +3 -3
  37. package/dist/cjs/q2-example.cjs.entry.js +145 -0
  38. package/dist/cjs/q2-example.cjs.entry.js.map +1 -0
  39. package/dist/cjs/q2-formatted-text.cjs.entry.js +2 -2
  40. package/dist/cjs/q2-item.cjs.entry.js +3 -3
  41. package/dist/cjs/q2-legend.cjs.entry.js +2 -2
  42. package/dist/cjs/q2-link.cjs.entry.js +4 -4
  43. package/dist/cjs/q2-link.cjs.entry.js.map +1 -1
  44. package/dist/cjs/q2-list.cjs.entry.js +6 -7
  45. package/dist/cjs/q2-list.cjs.entry.js.map +1 -1
  46. package/dist/cjs/q2-loading-element.cjs.entry.js +2 -2
  47. package/dist/cjs/q2-loc.cjs.entry.js +52 -3
  48. package/dist/cjs/q2-loc.cjs.entry.js.map +1 -1
  49. package/dist/cjs/q2-message.cjs.entry.js +3 -3
  50. package/dist/cjs/q2-month-picker.cjs.entry.js +4 -4
  51. package/dist/cjs/q2-optgroup.cjs.entry.js +5 -4
  52. package/dist/cjs/q2-optgroup.cjs.entry.js.map +1 -1
  53. package/dist/cjs/q2-option-list.cjs.entry.js +2 -2
  54. package/dist/cjs/q2-option.cjs.entry.js +50 -33
  55. package/dist/cjs/q2-option.cjs.entry.js.map +1 -1
  56. package/dist/cjs/q2-pagination.cjs.entry.js +11 -7
  57. package/dist/cjs/q2-pagination.cjs.entry.js.map +1 -1
  58. package/dist/cjs/q2-pill.cjs.entry.js +19 -18
  59. package/dist/cjs/q2-pill.cjs.entry.js.map +1 -1
  60. package/dist/cjs/q2-radio-group.cjs.entry.js +5 -5
  61. package/dist/cjs/q2-radio-group.cjs.entry.js.map +1 -1
  62. package/dist/cjs/q2-radio.cjs.entry.js +3 -3
  63. package/dist/cjs/q2-relative-time.cjs.entry.js +3 -3
  64. package/dist/cjs/q2-resize-observer.cjs.entry.js +2 -2
  65. package/dist/cjs/q2-section.cjs.entry.js +8 -6
  66. package/dist/cjs/q2-section.cjs.entry.js.map +1 -1
  67. package/dist/cjs/q2-select.cjs.entry.js +6 -5
  68. package/dist/cjs/q2-select.cjs.entry.js.map +1 -1
  69. package/dist/cjs/q2-stepper-pane.cjs.entry.js +5 -4
  70. package/dist/cjs/q2-stepper-pane.cjs.entry.js.map +1 -1
  71. package/dist/cjs/q2-stepper-vertical.cjs.entry.js +16 -4
  72. package/dist/cjs/q2-stepper-vertical.cjs.entry.js.map +1 -1
  73. package/dist/cjs/q2-stepper.cjs.entry.js +6 -4
  74. package/dist/cjs/q2-stepper.cjs.entry.js.map +1 -1
  75. package/dist/cjs/q2-tag.cjs.entry.js +6 -4
  76. package/dist/cjs/q2-tag.cjs.entry.js.map +1 -1
  77. package/dist/cjs/q2-tecton-elements.cjs.js +2 -2
  78. package/dist/cjs/q2-textarea.cjs.entry.js +3 -3
  79. package/dist/cjs/q2-tooltip.cjs.entry.js +2 -2
  80. package/dist/cjs/{shapes-be198cc0.js → shapes-5d45fc11.js} +2 -2
  81. package/dist/cjs/{shapes-be198cc0.js.map → shapes-5d45fc11.js.map} +1 -1
  82. package/dist/cjs/tecton-tab-pane.cjs.entry.js +3 -3
  83. package/dist/collection/collection-manifest.json +1 -0
  84. package/dist/collection/components/q2-action-group/q2-action-group.js +1 -1
  85. package/dist/collection/components/q2-action-sheet/q2-action-sheet.js +1 -1
  86. package/dist/collection/components/q2-avatar/q2-avatar.js +1 -1
  87. package/dist/collection/components/q2-calendar/q2-calendar.js +16 -18
  88. package/dist/collection/components/q2-calendar/q2-calendar.js.map +1 -1
  89. package/dist/collection/components/q2-calendar/q2-month-picker.js +2 -2
  90. package/dist/collection/components/q2-calendar/test/q2-calendar-test.e2e.js +27 -0
  91. package/dist/collection/components/q2-calendar/test/q2-calendar-test.e2e.js.map +1 -1
  92. package/dist/collection/components/q2-card/q2-card.js +2 -0
  93. package/dist/collection/components/q2-card/q2-card.js.map +1 -1
  94. package/dist/collection/components/q2-carousel-pane/q2-carousel-pane.js +2 -2
  95. package/dist/collection/components/q2-chart-area/q2-chart-area.js +42 -1
  96. package/dist/collection/components/q2-chart-area/q2-chart-area.js.map +1 -1
  97. package/dist/collection/components/q2-chart-area/test/q2-chart-area-test.e2e.js +15 -0
  98. package/dist/collection/components/q2-chart-area/test/q2-chart-area-test.e2e.js.map +1 -1
  99. package/dist/collection/components/q2-chart-bar/q2-chart-bar.js +1 -1
  100. package/dist/collection/components/q2-chart-donut/q2-chart-donut.js +41 -1
  101. package/dist/collection/components/q2-chart-donut/q2-chart-donut.js.map +1 -1
  102. package/dist/collection/components/q2-chart-donut/test/q2-chart-donut-test.e2e.js +11 -0
  103. package/dist/collection/components/q2-chart-donut/test/q2-chart-donut-test.e2e.js.map +1 -1
  104. package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.css +30 -23
  105. package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.js +4 -3
  106. package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.js.map +1 -1
  107. package/dist/collection/components/q2-currency/q2-currency.js +37 -1
  108. package/dist/collection/components/q2-currency/q2-currency.js.map +1 -1
  109. package/dist/collection/components/q2-currency/test/q2-currency-test.e2e.js +34 -23
  110. package/dist/collection/components/q2-currency/test/q2-currency-test.e2e.js.map +1 -1
  111. package/dist/collection/components/q2-data-table/q2-data-table.js +1 -1
  112. package/dist/collection/components/q2-data-table/q2-data-table.js.map +1 -1
  113. package/dist/collection/components/q2-data-table/test/q2-data-table-test.e2e.js +6 -4
  114. package/dist/collection/components/q2-data-table/test/q2-data-table-test.e2e.js.map +1 -1
  115. package/dist/collection/components/q2-detail/q2-detail.js +1 -1
  116. package/dist/collection/components/q2-dropdown/q2-dropdown.css +5 -0
  117. package/dist/collection/components/q2-dropdown/q2-dropdown.js +10 -4
  118. package/dist/collection/components/q2-dropdown/q2-dropdown.js.map +1 -1
  119. package/dist/collection/components/q2-dropdown/test/q2-dropdown-test.e2e.js +59 -14
  120. package/dist/collection/components/q2-dropdown/test/q2-dropdown-test.e2e.js.map +1 -1
  121. package/dist/collection/components/q2-dropdown-item/q2-dropdown-item.css +29 -11
  122. package/dist/collection/components/q2-dropdown-item/q2-dropdown-item.js +9 -11
  123. package/dist/collection/components/q2-dropdown-item/q2-dropdown-item.js.map +1 -1
  124. package/dist/collection/components/q2-dropdown-item/test/q2-dropdown-item-test.e2e.js +108 -74
  125. package/dist/collection/components/q2-dropdown-item/test/q2-dropdown-item-test.e2e.js.map +1 -1
  126. package/dist/collection/components/q2-editable-field/q2-editable-field.js +1 -1
  127. package/dist/collection/components/q2-example/q2-example.css +66 -0
  128. package/dist/collection/components/q2-example/q2-example.js +312 -0
  129. package/dist/collection/components/q2-example/q2-example.js.map +1 -0
  130. package/dist/collection/components/q2-example/test/q2-example.e2e.js +27 -0
  131. package/dist/collection/components/q2-example/test/q2-example.e2e.js.map +1 -0
  132. package/dist/collection/components/q2-example/test/q2-example.spec.js +126 -0
  133. package/dist/collection/components/q2-example/test/q2-example.spec.js.map +1 -0
  134. package/dist/collection/components/q2-formatted-text/q2-formatted-text.js +1 -1
  135. package/dist/collection/components/q2-input/formatting/alpha.spec.js +10 -0
  136. package/dist/collection/components/q2-input/formatting/alpha.spec.js.map +1 -0
  137. package/dist/collection/components/q2-input/formatting/alphanumeric.spec.js +7 -0
  138. package/dist/collection/components/q2-input/formatting/alphanumeric.spec.js.map +1 -0
  139. package/dist/collection/components/q2-input/formatting/currency.spec.js +20 -0
  140. package/dist/collection/components/q2-input/formatting/currency.spec.js.map +1 -0
  141. package/dist/collection/components/q2-input/formatting/date.js +1 -1
  142. package/dist/collection/components/q2-input/formatting/date.js.map +1 -1
  143. package/dist/collection/components/q2-input/formatting/date.spec.js +17 -0
  144. package/dist/collection/components/q2-input/formatting/date.spec.js.map +1 -0
  145. package/dist/collection/components/q2-input/formatting/numeric.spec.js +32 -0
  146. package/dist/collection/components/q2-input/formatting/numeric.spec.js.map +1 -0
  147. package/dist/collection/components/q2-input/formatting/phone.spec.js +16 -0
  148. package/dist/collection/components/q2-input/formatting/phone.spec.js.map +1 -0
  149. package/dist/collection/components/q2-input/formatting/postal.js +1 -1
  150. package/dist/collection/components/q2-input/formatting/postal.js.map +1 -1
  151. package/dist/collection/components/q2-input/formatting/postal.spec.js +28 -0
  152. package/dist/collection/components/q2-input/formatting/postal.spec.js.map +1 -0
  153. package/dist/collection/components/q2-input/formatting/ssn.spec.js +7 -0
  154. package/dist/collection/components/q2-input/formatting/ssn.spec.js.map +1 -0
  155. package/dist/collection/components/q2-input/formatting/tin.spec.js +7 -0
  156. package/dist/collection/components/q2-input/formatting/tin.spec.js.map +1 -0
  157. package/dist/collection/components/q2-input/q2-input.js +58 -44
  158. package/dist/collection/components/q2-input/q2-input.js.map +1 -1
  159. package/dist/collection/components/q2-input/test/q2-input-test.e2e.js +259 -2106
  160. package/dist/collection/components/q2-input/test/q2-input-test.e2e.js.map +1 -1
  161. package/dist/collection/components/q2-input/test/q2-input-test.spec.js +4035 -0
  162. package/dist/collection/components/q2-input/test/q2-input-test.spec.js.map +1 -0
  163. package/dist/collection/components/q2-item/q2-item.js +1 -1
  164. package/dist/collection/components/q2-legend/q2-legend.js +1 -1
  165. package/dist/collection/components/q2-link/q2-link.css +17 -20
  166. package/dist/collection/components/q2-link/q2-link.js +2 -2
  167. package/dist/collection/components/q2-link/q2-link.js.map +1 -1
  168. package/dist/collection/components/q2-link/test/q2-link-test.e2e.js +6 -6
  169. package/dist/collection/components/q2-link/test/q2-link-test.e2e.js.map +1 -1
  170. package/dist/collection/components/q2-list/q2-list.js +4 -5
  171. package/dist/collection/components/q2-list/q2-list.js.map +1 -1
  172. package/dist/collection/components/q2-loc/q2-loc.js +66 -4
  173. package/dist/collection/components/q2-loc/q2-loc.js.map +1 -1
  174. package/dist/collection/components/q2-loc/test/q2-loc-test.e2e.js +19 -30
  175. package/dist/collection/components/q2-loc/test/q2-loc-test.e2e.js.map +1 -1
  176. package/dist/collection/components/q2-loc/test/q2-loc-test.spec.js +164 -0
  177. package/dist/collection/components/q2-loc/test/q2-loc-test.spec.js.map +1 -0
  178. package/dist/collection/components/q2-message/q2-message.js +1 -1
  179. package/dist/collection/components/q2-optgroup/q2-optgroup.js +3 -2
  180. package/dist/collection/components/q2-optgroup/q2-optgroup.js.map +1 -1
  181. package/dist/collection/components/q2-option/q2-option.css +1 -1
  182. package/dist/collection/components/q2-option/q2-option.js +57 -34
  183. package/dist/collection/components/q2-option/q2-option.js.map +1 -1
  184. package/dist/collection/components/q2-option/test/q2-option-test.e2e.js +110 -106
  185. package/dist/collection/components/q2-option/test/q2-option-test.e2e.js.map +1 -1
  186. package/dist/collection/components/q2-option/test/q2-option-test.spec.js +532 -0
  187. package/dist/collection/components/q2-option/test/q2-option-test.spec.js.map +1 -0
  188. package/dist/collection/components/q2-pagination/q2-pagination.js +9 -5
  189. package/dist/collection/components/q2-pagination/q2-pagination.js.map +1 -1
  190. package/dist/collection/components/q2-pagination/test/q2-pagination-test.e2e.js +18 -1
  191. package/dist/collection/components/q2-pagination/test/q2-pagination-test.e2e.js.map +1 -1
  192. package/dist/collection/components/q2-pill/q2-pill.js +18 -17
  193. package/dist/collection/components/q2-pill/q2-pill.js.map +1 -1
  194. package/dist/collection/components/q2-pill/test/q2-pill-test.e2e.js +128 -57
  195. package/dist/collection/components/q2-pill/test/q2-pill-test.e2e.js.map +1 -1
  196. package/dist/collection/components/q2-popover/q2-popover.js +17 -4
  197. package/dist/collection/components/q2-popover/q2-popover.js.map +1 -1
  198. package/dist/collection/components/q2-radio/q2-radio.js +1 -1
  199. package/dist/collection/components/q2-radio-group/q2-radio-group.css +19 -9
  200. package/dist/collection/components/q2-radio-group/q2-radio-group.js +2 -2
  201. package/dist/collection/components/q2-radio-group/q2-radio-group.js.map +1 -1
  202. package/dist/collection/components/q2-relative-time/q2-relative-time.js +1 -1
  203. package/dist/collection/components/q2-resize-observer/q2-resize-observer.js +1 -1
  204. package/dist/collection/components/q2-section/q2-section.js +6 -4
  205. package/dist/collection/components/q2-section/q2-section.js.map +1 -1
  206. package/dist/collection/components/q2-select/q2-select.js +5 -3
  207. package/dist/collection/components/q2-select/q2-select.js.map +1 -1
  208. package/dist/collection/components/q2-select/test/q2-select-test.e2e.js +123 -62
  209. package/dist/collection/components/q2-select/test/q2-select-test.e2e.js.map +1 -1
  210. package/dist/collection/components/q2-stepper/q2-stepper.js +4 -2
  211. package/dist/collection/components/q2-stepper/q2-stepper.js.map +1 -1
  212. package/dist/collection/components/q2-stepper-pane/q2-stepper-pane.js +3 -2
  213. package/dist/collection/components/q2-stepper-pane/q2-stepper-pane.js.map +1 -1
  214. package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.js +46 -2
  215. package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.js.map +1 -1
  216. package/dist/collection/components/q2-stepper-vertical/test/q2-stepper-vertical-test.e2e.js +26 -0
  217. package/dist/collection/components/q2-stepper-vertical/test/q2-stepper-vertical-test.e2e.js.map +1 -1
  218. package/dist/collection/components/q2-tab-container/q2-tab-container.js +4 -3
  219. package/dist/collection/components/q2-tab-container/q2-tab-container.js.map +1 -1
  220. package/dist/collection/components/q2-tab-pane/q2-tab-pane.js +1 -1
  221. package/dist/collection/components/q2-tag/q2-tag.js +5 -2
  222. package/dist/collection/components/q2-tag/q2-tag.js.map +1 -1
  223. package/dist/collection/components/q2-tag/test/q2-tag-test.e2e.js +55 -4
  224. package/dist/collection/components/q2-tag/test/q2-tag-test.e2e.js.map +1 -1
  225. package/dist/collection/components/q2-textarea/q2-textarea.js +1 -1
  226. package/dist/collection/components/tecton-tab-pane/tecton-tab-pane.js +2 -2
  227. package/dist/collection/utils/helpers.js +63 -41
  228. package/dist/collection/utils/helpers.js.map +1 -1
  229. package/dist/collection/utils/index.js +83 -0
  230. package/dist/collection/utils/index.js.map +1 -1
  231. package/dist/components/index.js +2 -0
  232. package/dist/components/index.js.map +1 -1
  233. package/dist/components/index2.js +84 -1
  234. package/dist/components/index2.js.map +1 -1
  235. package/dist/components/q2-action-group.js +1 -1
  236. package/dist/components/q2-action-sheet.js +1 -1
  237. package/dist/components/q2-avatar2.js +1 -1
  238. package/dist/components/q2-calendar.js +16 -18
  239. package/dist/components/q2-calendar.js.map +1 -1
  240. package/dist/components/q2-card.js +2 -0
  241. package/dist/components/q2-card.js.map +1 -1
  242. package/dist/components/q2-carousel-pane.js +2 -2
  243. package/dist/components/q2-chart-area.js +16 -2
  244. package/dist/components/q2-chart-area.js.map +1 -1
  245. package/dist/components/q2-chart-bar.js +1 -1
  246. package/dist/components/q2-chart-donut.js +19 -2
  247. package/dist/components/q2-chart-donut.js.map +1 -1
  248. package/dist/components/q2-checkbox-group.js +5 -4
  249. package/dist/components/q2-checkbox-group.js.map +1 -1
  250. package/dist/components/q2-currency.js +15 -2
  251. package/dist/components/q2-currency.js.map +1 -1
  252. package/dist/components/q2-data-table.js +1 -1
  253. package/dist/components/q2-data-table.js.map +1 -1
  254. package/dist/components/q2-detail.js +1 -1
  255. package/dist/components/q2-dropdown-item2.js +12 -26
  256. package/dist/components/q2-dropdown-item2.js.map +1 -1
  257. package/dist/components/q2-dropdown.js +6 -3
  258. package/dist/components/q2-dropdown.js.map +1 -1
  259. package/dist/components/q2-editable-field.js +1 -1
  260. package/dist/components/q2-example.d.ts +11 -0
  261. package/dist/components/q2-example.js +170 -0
  262. package/dist/components/q2-example.js.map +1 -0
  263. package/dist/components/q2-formatted-text.js +1 -1
  264. package/dist/components/q2-input2.js +41 -37
  265. package/dist/components/q2-input2.js.map +1 -1
  266. package/dist/components/q2-item.js +1 -1
  267. package/dist/components/q2-legend2.js +1 -1
  268. package/dist/components/q2-link.js +3 -3
  269. package/dist/components/q2-link.js.map +1 -1
  270. package/dist/components/q2-list.js +4 -5
  271. package/dist/components/q2-list.js.map +1 -1
  272. package/dist/components/q2-loc.js +55 -2
  273. package/dist/components/q2-loc.js.map +1 -1
  274. package/dist/components/q2-message2.js +1 -1
  275. package/dist/components/q2-month-picker.js +2 -2
  276. package/dist/components/q2-optgroup2.js +3 -2
  277. package/dist/components/q2-optgroup2.js.map +1 -1
  278. package/dist/components/q2-option-list2.js +1 -1
  279. package/dist/components/q2-option2.js +52 -33
  280. package/dist/components/q2-option2.js.map +1 -1
  281. package/dist/components/q2-pagination.js +9 -5
  282. package/dist/components/q2-pagination.js.map +1 -1
  283. package/dist/components/q2-pill.js +18 -17
  284. package/dist/components/q2-pill.js.map +1 -1
  285. package/dist/components/q2-popover2.js +16 -4
  286. package/dist/components/q2-popover2.js.map +1 -1
  287. package/dist/components/q2-radio-group.js +3 -3
  288. package/dist/components/q2-radio-group.js.map +1 -1
  289. package/dist/components/q2-radio.js +1 -1
  290. package/dist/components/q2-relative-time.js +1 -1
  291. package/dist/components/q2-resize-observer2.js +1 -1
  292. package/dist/components/q2-section.js +6 -4
  293. package/dist/components/q2-section.js.map +1 -1
  294. package/dist/components/q2-select2.js +6 -4
  295. package/dist/components/q2-select2.js.map +1 -1
  296. package/dist/components/q2-stepper-pane.js +3 -2
  297. package/dist/components/q2-stepper-pane.js.map +1 -1
  298. package/dist/components/q2-stepper-vertical.js +16 -3
  299. package/dist/components/q2-stepper-vertical.js.map +1 -1
  300. package/dist/components/q2-stepper.js +4 -2
  301. package/dist/components/q2-stepper.js.map +1 -1
  302. package/dist/components/q2-tab-container.js +4 -3
  303. package/dist/components/q2-tab-container.js.map +1 -1
  304. package/dist/components/q2-tab-pane.js +1 -1
  305. package/dist/components/q2-tag.js +5 -2
  306. package/dist/components/q2-tag.js.map +1 -1
  307. package/dist/components/q2-textarea.js +1 -1
  308. package/dist/components/tecton-tab-pane.js +2 -2
  309. package/dist/esm/click-elsewhere_2.entry.js +16 -5
  310. package/dist/esm/click-elsewhere_2.entry.js.map +1 -1
  311. package/dist/esm/{index-1e1ce94e.js → index-7a5365e2.js} +40 -5
  312. package/dist/esm/index-7a5365e2.js.map +1 -0
  313. package/dist/esm/{index-844fc010.js → index-d18e2a20.js} +86 -3
  314. package/dist/esm/index-d18e2a20.js.map +1 -0
  315. package/dist/esm/loader.js +3 -3
  316. package/dist/esm/q2-action-group.entry.js +2 -2
  317. package/dist/esm/q2-action-sheet.entry.js +3 -3
  318. package/dist/esm/q2-avatar.entry.js +2 -2
  319. package/dist/esm/q2-badge_7.entry.js +49 -44
  320. package/dist/esm/q2-badge_7.entry.js.map +1 -1
  321. package/dist/esm/q2-calendar.entry.js +17 -20
  322. package/dist/esm/q2-calendar.entry.js.map +1 -1
  323. package/dist/esm/q2-card.entry.js +4 -2
  324. package/dist/esm/q2-card.entry.js.map +1 -1
  325. package/dist/esm/q2-carousel-pane.entry.js +4 -4
  326. package/dist/esm/q2-carousel.entry.js +2 -2
  327. package/dist/esm/q2-chart-area.entry.js +16 -3
  328. package/dist/esm/q2-chart-area.entry.js.map +1 -1
  329. package/dist/esm/q2-chart-bar.entry.js +3 -3
  330. package/dist/esm/q2-chart-donut.entry.js +19 -3
  331. package/dist/esm/q2-chart-donut.entry.js.map +1 -1
  332. package/dist/esm/q2-checkbox-group.entry.js +6 -5
  333. package/dist/esm/q2-checkbox-group.entry.js.map +1 -1
  334. package/dist/esm/q2-checkbox.entry.js +2 -2
  335. package/dist/esm/q2-currency.entry.js +14 -2
  336. package/dist/esm/q2-currency.entry.js.map +1 -1
  337. package/dist/esm/q2-data-table.entry.js +3 -3
  338. package/dist/esm/q2-data-table.entry.js.map +1 -1
  339. package/dist/esm/q2-detail.entry.js +3 -3
  340. package/dist/esm/q2-dropdown-item.entry.js +12 -14
  341. package/dist/esm/q2-dropdown-item.entry.js.map +1 -1
  342. package/dist/esm/q2-dropdown.entry.js +7 -5
  343. package/dist/esm/q2-dropdown.entry.js.map +1 -1
  344. package/dist/esm/q2-editable-field.entry.js +3 -3
  345. package/dist/esm/q2-example.entry.js +141 -0
  346. package/dist/esm/q2-example.entry.js.map +1 -0
  347. package/dist/esm/q2-formatted-text.entry.js +2 -2
  348. package/dist/esm/q2-item.entry.js +3 -3
  349. package/dist/esm/q2-legend.entry.js +2 -2
  350. package/dist/esm/q2-link.entry.js +4 -4
  351. package/dist/esm/q2-link.entry.js.map +1 -1
  352. package/dist/esm/q2-list.entry.js +6 -7
  353. package/dist/esm/q2-list.entry.js.map +1 -1
  354. package/dist/esm/q2-loading-element.entry.js +2 -2
  355. package/dist/esm/q2-loc.entry.js +52 -3
  356. package/dist/esm/q2-loc.entry.js.map +1 -1
  357. package/dist/esm/q2-message.entry.js +3 -3
  358. package/dist/esm/q2-month-picker.entry.js +4 -4
  359. package/dist/esm/q2-optgroup.entry.js +5 -4
  360. package/dist/esm/q2-optgroup.entry.js.map +1 -1
  361. package/dist/esm/q2-option-list.entry.js +2 -2
  362. package/dist/esm/q2-option.entry.js +50 -33
  363. package/dist/esm/q2-option.entry.js.map +1 -1
  364. package/dist/esm/q2-pagination.entry.js +11 -7
  365. package/dist/esm/q2-pagination.entry.js.map +1 -1
  366. package/dist/esm/q2-pill.entry.js +19 -18
  367. package/dist/esm/q2-pill.entry.js.map +1 -1
  368. package/dist/esm/q2-radio-group.entry.js +5 -5
  369. package/dist/esm/q2-radio-group.entry.js.map +1 -1
  370. package/dist/esm/q2-radio.entry.js +3 -3
  371. package/dist/esm/q2-relative-time.entry.js +3 -3
  372. package/dist/esm/q2-resize-observer.entry.js +2 -2
  373. package/dist/esm/q2-section.entry.js +8 -6
  374. package/dist/esm/q2-section.entry.js.map +1 -1
  375. package/dist/esm/q2-select.entry.js +6 -5
  376. package/dist/esm/q2-select.entry.js.map +1 -1
  377. package/dist/esm/q2-stepper-pane.entry.js +5 -4
  378. package/dist/esm/q2-stepper-pane.entry.js.map +1 -1
  379. package/dist/esm/q2-stepper-vertical.entry.js +16 -4
  380. package/dist/esm/q2-stepper-vertical.entry.js.map +1 -1
  381. package/dist/esm/q2-stepper.entry.js +6 -4
  382. package/dist/esm/q2-stepper.entry.js.map +1 -1
  383. package/dist/esm/q2-tag.entry.js +6 -4
  384. package/dist/esm/q2-tag.entry.js.map +1 -1
  385. package/dist/esm/q2-tecton-elements.js +3 -3
  386. package/dist/esm/q2-textarea.entry.js +3 -3
  387. package/dist/esm/q2-tooltip.entry.js +2 -2
  388. package/dist/esm/{shapes-36183b2a.js → shapes-c7e1a3fa.js} +2 -2
  389. package/dist/esm/{shapes-36183b2a.js.map → shapes-c7e1a3fa.js.map} +1 -1
  390. package/dist/esm/tecton-tab-pane.entry.js +3 -3
  391. package/dist/q2-tecton-elements/action-sheet-e64cb6f7.js +77 -0
  392. package/dist/q2-tecton-elements/{p-b7554a79.js.map → action-sheet-e64cb6f7.js.map} +1 -1
  393. package/dist/q2-tecton-elements/app-globals-0f993ce5.js +4 -0
  394. package/dist/q2-tecton-elements/{p-e1255160.js.map → app-globals-0f993ce5.js.map} +1 -1
  395. package/dist/q2-tecton-elements/charting-1abfb877.js +34872 -0
  396. package/dist/q2-tecton-elements/{p-2941aafa.js.map → charting-1abfb877.js.map} +1 -1
  397. package/dist/q2-tecton-elements/click-elsewhere_2.entry.js +410 -0
  398. package/dist/q2-tecton-elements/click-elsewhere_2.entry.js.map +1 -0
  399. package/dist/q2-tecton-elements/dataSample-7b62e101.js +2602 -0
  400. package/dist/q2-tecton-elements/{p-ad80aef0.js.map → dataSample-7b62e101.js.map} +1 -1
  401. package/dist/q2-tecton-elements/index-3184c760.js +18168 -0
  402. package/dist/q2-tecton-elements/{p-f1e887f5.js.map → index-3184c760.js.map} +1 -1
  403. package/dist/q2-tecton-elements/index-7a5365e2.js +1792 -0
  404. package/dist/q2-tecton-elements/index-7a5365e2.js.map +1 -0
  405. package/dist/q2-tecton-elements/index-d18e2a20.js +323 -0
  406. package/dist/q2-tecton-elements/index-d18e2a20.js.map +1 -0
  407. package/dist/q2-tecton-elements/q2-action-group.entry.js +56 -0
  408. package/dist/q2-tecton-elements/{p-5637c486.entry.js.map → q2-action-group.entry.js.map} +1 -1
  409. package/dist/q2-tecton-elements/q2-action-sheet.entry.js +1480 -0
  410. package/dist/q2-tecton-elements/{p-188eb162.entry.js.map → q2-action-sheet.entry.js.map} +1 -1
  411. package/dist/q2-tecton-elements/q2-avatar.entry.js +101 -0
  412. package/dist/q2-tecton-elements/{p-07d1c3ae.entry.js.map → q2-avatar.entry.js.map} +1 -1
  413. package/dist/q2-tecton-elements/q2-badge_7.entry.js +5449 -0
  414. package/dist/q2-tecton-elements/q2-badge_7.entry.js.map +1 -0
  415. package/dist/q2-tecton-elements/q2-calendar.entry.js +1313 -0
  416. package/dist/q2-tecton-elements/q2-calendar.entry.js.map +1 -0
  417. package/dist/q2-tecton-elements/q2-card.entry.js +170 -0
  418. package/dist/q2-tecton-elements/q2-card.entry.js.map +1 -0
  419. package/dist/q2-tecton-elements/q2-carousel-pane.entry.js +130 -0
  420. package/dist/q2-tecton-elements/{p-7aef0c08.entry.js.map → q2-carousel-pane.entry.js.map} +1 -1
  421. package/dist/q2-tecton-elements/q2-carousel.entry.js +4613 -0
  422. package/dist/q2-tecton-elements/{p-e216ef3f.entry.js.map → q2-carousel.entry.js.map} +1 -1
  423. package/dist/q2-tecton-elements/q2-chart-area.entry.js +4330 -0
  424. package/dist/q2-tecton-elements/q2-chart-area.entry.js.map +1 -0
  425. package/dist/q2-tecton-elements/q2-chart-bar.entry.js +1479 -0
  426. package/dist/q2-tecton-elements/{p-7906f49e.entry.js.map → q2-chart-bar.entry.js.map} +1 -1
  427. package/dist/q2-tecton-elements/q2-chart-donut.entry.js +4537 -0
  428. package/dist/q2-tecton-elements/q2-chart-donut.entry.js.map +1 -0
  429. package/dist/q2-tecton-elements/q2-checkbox-group.entry.js +166 -0
  430. package/dist/q2-tecton-elements/q2-checkbox-group.entry.js.map +1 -0
  431. package/dist/q2-tecton-elements/q2-checkbox.entry.js +223 -0
  432. package/dist/q2-tecton-elements/{p-b7de110e.entry.js.map → q2-checkbox.entry.js.map} +1 -1
  433. package/dist/q2-tecton-elements/q2-currency.entry.js +153 -0
  434. package/dist/q2-tecton-elements/q2-currency.entry.js.map +1 -0
  435. package/dist/q2-tecton-elements/q2-data-table.entry.js +622 -0
  436. package/dist/q2-tecton-elements/{p-7903cd15.entry.js.map → q2-data-table.entry.js.map} +1 -1
  437. package/dist/q2-tecton-elements/q2-detail.entry.js +128 -0
  438. package/dist/q2-tecton-elements/{p-f5f23659.entry.js.map → q2-detail.entry.js.map} +1 -1
  439. package/dist/q2-tecton-elements/q2-dropdown-item.entry.js +146 -0
  440. package/dist/q2-tecton-elements/q2-dropdown-item.entry.js.map +1 -0
  441. package/dist/q2-tecton-elements/q2-dropdown.entry.js +430 -0
  442. package/dist/q2-tecton-elements/q2-dropdown.entry.js.map +1 -0
  443. package/dist/q2-tecton-elements/q2-editable-field.entry.js +296 -0
  444. package/dist/q2-tecton-elements/{p-896c7008.entry.js.map → q2-editable-field.entry.js.map} +1 -1
  445. package/dist/q2-tecton-elements/q2-example.entry.js +152 -0
  446. package/dist/q2-tecton-elements/q2-example.entry.js.map +1 -0
  447. package/dist/q2-tecton-elements/q2-formatted-text.entry.js +73 -0
  448. package/dist/q2-tecton-elements/{p-7c9f8b62.entry.js.map → q2-formatted-text.entry.js.map} +1 -1
  449. package/dist/q2-tecton-elements/q2-item.entry.js +158 -0
  450. package/dist/q2-tecton-elements/{p-7c9a0122.entry.js.map → q2-item.entry.js.map} +1 -1
  451. package/dist/q2-tecton-elements/q2-legend.entry.js +146 -0
  452. package/dist/q2-tecton-elements/{p-ff8f1a32.entry.js.map → q2-legend.entry.js.map} +1 -1
  453. package/dist/q2-tecton-elements/q2-link.entry.js +83 -0
  454. package/dist/q2-tecton-elements/q2-link.entry.js.map +1 -0
  455. package/dist/q2-tecton-elements/q2-list.entry.js +100 -0
  456. package/dist/q2-tecton-elements/q2-list.entry.js.map +1 -0
  457. package/dist/q2-tecton-elements/q2-loading-element.entry.js +36 -0
  458. package/dist/q2-tecton-elements/{p-a068c84c.entry.js.map → q2-loading-element.entry.js.map} +1 -1
  459. package/dist/q2-tecton-elements/q2-loc.entry.js +82 -0
  460. package/dist/q2-tecton-elements/q2-loc.entry.js.map +1 -0
  461. package/dist/q2-tecton-elements/q2-message.entry.js +99 -0
  462. package/dist/q2-tecton-elements/{p-8d2b02e1.entry.js.map → q2-message.entry.js.map} +1 -1
  463. package/dist/q2-tecton-elements/q2-month-picker.entry.js +198 -0
  464. package/dist/q2-tecton-elements/{p-8d07cf91.entry.js.map → q2-month-picker.entry.js.map} +1 -1
  465. package/dist/q2-tecton-elements/q2-optgroup.entry.js +88 -0
  466. package/dist/q2-tecton-elements/q2-optgroup.entry.js.map +1 -0
  467. package/dist/q2-tecton-elements/q2-option-list.entry.js +585 -0
  468. package/dist/q2-tecton-elements/{p-a5d0e252.entry.js.map → q2-option-list.entry.js.map} +1 -1
  469. package/dist/q2-tecton-elements/q2-option.entry.js +110 -0
  470. package/dist/q2-tecton-elements/q2-option.entry.js.map +1 -0
  471. package/dist/q2-tecton-elements/q2-pagination.entry.js +377 -0
  472. package/dist/q2-tecton-elements/q2-pagination.entry.js.map +1 -0
  473. package/dist/q2-tecton-elements/q2-pill.entry.js +434 -0
  474. package/dist/q2-tecton-elements/q2-pill.entry.js.map +1 -0
  475. package/dist/q2-tecton-elements/q2-radio-group.entry.js +227 -0
  476. package/dist/q2-tecton-elements/q2-radio-group.entry.js.map +1 -0
  477. package/dist/q2-tecton-elements/q2-radio.entry.js +144 -0
  478. package/dist/q2-tecton-elements/{p-c235ab3f.entry.js.map → q2-radio.entry.js.map} +1 -1
  479. package/dist/q2-tecton-elements/q2-relative-time.entry.js +162 -0
  480. package/dist/q2-tecton-elements/{p-95a7c042.entry.js.map → q2-relative-time.entry.js.map} +1 -1
  481. package/dist/q2-tecton-elements/q2-resize-observer.entry.js +100 -0
  482. package/dist/q2-tecton-elements/{p-e2c800ef.entry.js.map → q2-resize-observer.entry.js.map} +1 -1
  483. package/dist/q2-tecton-elements/q2-section.entry.js +256 -0
  484. package/dist/q2-tecton-elements/q2-section.entry.js.map +1 -0
  485. package/dist/q2-tecton-elements/q2-select.entry.js +684 -0
  486. package/dist/q2-tecton-elements/q2-select.entry.js.map +1 -0
  487. package/dist/q2-tecton-elements/q2-stepper-pane.entry.js +124 -0
  488. package/dist/q2-tecton-elements/q2-stepper-pane.entry.js.map +1 -0
  489. package/dist/q2-tecton-elements/q2-stepper-vertical.entry.js +356 -0
  490. package/dist/q2-tecton-elements/q2-stepper-vertical.entry.js.map +1 -0
  491. package/dist/q2-tecton-elements/q2-stepper.entry.js +332 -0
  492. package/dist/q2-tecton-elements/q2-stepper.entry.js.map +1 -0
  493. package/dist/q2-tecton-elements/q2-tag.entry.js +213 -0
  494. package/dist/q2-tecton-elements/q2-tag.entry.js.map +1 -0
  495. package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +21 -1
  496. package/dist/q2-tecton-elements/q2-tecton-elements.esm.js.map +1 -1
  497. package/dist/q2-tecton-elements/q2-textarea.entry.js +364 -0
  498. package/dist/q2-tecton-elements/{p-f135b265.entry.js.map → q2-textarea.entry.js.map} +1 -1
  499. package/dist/q2-tecton-elements/q2-tooltip.entry.js +105 -0
  500. package/dist/q2-tecton-elements/{p-c5667d5d.entry.js.map → q2-tooltip.entry.js.map} +1 -1
  501. package/dist/q2-tecton-elements/sectorHelper-183cedd0.js +949 -0
  502. package/dist/q2-tecton-elements/{p-eea5aa01.js.map → sectorHelper-183cedd0.js.map} +1 -1
  503. package/dist/q2-tecton-elements/shapes-c7e1a3fa.js +132 -0
  504. package/dist/q2-tecton-elements/{p-50b425de.js.map → shapes-c7e1a3fa.js.map} +1 -1
  505. package/dist/q2-tecton-elements/tecton-tab-pane.entry.js +134 -0
  506. package/dist/q2-tecton-elements/{p-96b1406c.entry.js.map → tecton-tab-pane.entry.js.map} +1 -1
  507. package/dist/types/components/q2-calendar/q2-calendar.d.ts +4 -5
  508. package/dist/types/components/q2-chart-area/q2-chart-area.d.ts +6 -0
  509. package/dist/types/components/q2-chart-donut/q2-chart-donut.d.ts +6 -0
  510. package/dist/types/components/q2-currency/q2-currency.d.ts +7 -0
  511. package/dist/types/components/q2-dropdown/q2-dropdown.d.ts +1 -1
  512. package/dist/types/components/q2-dropdown-item/q2-dropdown-item.d.ts +2 -2
  513. package/dist/types/components/q2-example/q2-example.d.ts +119 -0
  514. package/dist/types/components/q2-input/formatting/date.d.ts +22 -0
  515. package/dist/types/components/q2-input/formatting/postal.d.ts +197 -0
  516. package/dist/types/components/q2-input/q2-input.d.ts +15 -12
  517. package/dist/types/components/q2-loc/q2-loc.d.ts +15 -1
  518. package/dist/types/components/q2-option/q2-option.d.ts +11 -3
  519. package/dist/types/components/q2-pill/q2-pill.d.ts +3 -3
  520. package/dist/types/components/q2-popover/q2-popover.d.ts +1 -0
  521. package/dist/types/components/q2-select/q2-select.d.ts +1 -1
  522. package/dist/types/components/q2-stepper-vertical/q2-stepper-vertical.d.ts +6 -0
  523. package/dist/types/components/q2-tag/q2-tag.d.ts +1 -1
  524. package/dist/types/components.d.ts +104 -14
  525. package/dist/types/utils/helpers.d.ts +13 -0
  526. package/dist/types/utils/index.d.ts +11 -0
  527. package/package.json +7 -7
  528. package/dist/cjs/index-14c3693c.js.map +0 -1
  529. package/dist/cjs/index-9aa4a776.js.map +0 -1
  530. package/dist/esm/index-1e1ce94e.js.map +0 -1
  531. package/dist/esm/index-844fc010.js.map +0 -1
  532. package/dist/q2-tecton-elements/p-06701928.entry.js +0 -2
  533. package/dist/q2-tecton-elements/p-06701928.entry.js.map +0 -1
  534. package/dist/q2-tecton-elements/p-07d1c3ae.entry.js +0 -2
  535. package/dist/q2-tecton-elements/p-1305f7ca.entry.js +0 -2
  536. package/dist/q2-tecton-elements/p-1305f7ca.entry.js.map +0 -1
  537. package/dist/q2-tecton-elements/p-15ac45d6.js +0 -2
  538. package/dist/q2-tecton-elements/p-15ac45d6.js.map +0 -1
  539. package/dist/q2-tecton-elements/p-16910682.entry.js +0 -2
  540. package/dist/q2-tecton-elements/p-16910682.entry.js.map +0 -1
  541. package/dist/q2-tecton-elements/p-188eb162.entry.js +0 -3
  542. package/dist/q2-tecton-elements/p-1c760a89.entry.js +0 -2
  543. package/dist/q2-tecton-elements/p-1c760a89.entry.js.map +0 -1
  544. package/dist/q2-tecton-elements/p-1c88d057.entry.js +0 -2
  545. package/dist/q2-tecton-elements/p-1c88d057.entry.js.map +0 -1
  546. package/dist/q2-tecton-elements/p-20a3d6ed.entry.js +0 -2
  547. package/dist/q2-tecton-elements/p-20a3d6ed.entry.js.map +0 -1
  548. package/dist/q2-tecton-elements/p-2733583e.entry.js +0 -2
  549. package/dist/q2-tecton-elements/p-2733583e.entry.js.map +0 -1
  550. package/dist/q2-tecton-elements/p-2941aafa.js +0 -39
  551. package/dist/q2-tecton-elements/p-3e428290.entry.js +0 -2
  552. package/dist/q2-tecton-elements/p-3e428290.entry.js.map +0 -1
  553. package/dist/q2-tecton-elements/p-4774e5b3.entry.js +0 -2
  554. package/dist/q2-tecton-elements/p-4774e5b3.entry.js.map +0 -1
  555. package/dist/q2-tecton-elements/p-490ef8e5.entry.js +0 -2
  556. package/dist/q2-tecton-elements/p-490ef8e5.entry.js.map +0 -1
  557. package/dist/q2-tecton-elements/p-4e10550d.entry.js +0 -2
  558. package/dist/q2-tecton-elements/p-4e10550d.entry.js.map +0 -1
  559. package/dist/q2-tecton-elements/p-50b425de.js +0 -2
  560. package/dist/q2-tecton-elements/p-50f7328f.entry.js +0 -2
  561. package/dist/q2-tecton-elements/p-50f7328f.entry.js.map +0 -1
  562. package/dist/q2-tecton-elements/p-5637c486.entry.js +0 -2
  563. package/dist/q2-tecton-elements/p-56df21b0.entry.js +0 -2
  564. package/dist/q2-tecton-elements/p-56df21b0.entry.js.map +0 -1
  565. package/dist/q2-tecton-elements/p-5a834214.entry.js +0 -2
  566. package/dist/q2-tecton-elements/p-5a834214.entry.js.map +0 -1
  567. package/dist/q2-tecton-elements/p-5f99a4a8.entry.js +0 -2
  568. package/dist/q2-tecton-elements/p-5f99a4a8.entry.js.map +0 -1
  569. package/dist/q2-tecton-elements/p-72d948b4.entry.js +0 -2
  570. package/dist/q2-tecton-elements/p-72d948b4.entry.js.map +0 -1
  571. package/dist/q2-tecton-elements/p-7903cd15.entry.js +0 -2
  572. package/dist/q2-tecton-elements/p-7906f49e.entry.js +0 -2
  573. package/dist/q2-tecton-elements/p-7aef0c08.entry.js +0 -2
  574. package/dist/q2-tecton-elements/p-7c9a0122.entry.js +0 -2
  575. package/dist/q2-tecton-elements/p-7c9f8b62.entry.js +0 -2
  576. package/dist/q2-tecton-elements/p-81fbe718.entry.js +0 -2
  577. package/dist/q2-tecton-elements/p-81fbe718.entry.js.map +0 -1
  578. package/dist/q2-tecton-elements/p-896c7008.entry.js +0 -2
  579. package/dist/q2-tecton-elements/p-8d07cf91.entry.js +0 -2
  580. package/dist/q2-tecton-elements/p-8d2b02e1.entry.js +0 -2
  581. package/dist/q2-tecton-elements/p-95a7c042.entry.js +0 -2
  582. package/dist/q2-tecton-elements/p-96b1406c.entry.js +0 -2
  583. package/dist/q2-tecton-elements/p-a068c84c.entry.js +0 -2
  584. package/dist/q2-tecton-elements/p-a47597dd.entry.js +0 -2
  585. package/dist/q2-tecton-elements/p-a47597dd.entry.js.map +0 -1
  586. package/dist/q2-tecton-elements/p-a5d0e252.entry.js +0 -2
  587. package/dist/q2-tecton-elements/p-a5f18e27.js +0 -3
  588. package/dist/q2-tecton-elements/p-a5f18e27.js.map +0 -1
  589. package/dist/q2-tecton-elements/p-ac6aa392.entry.js +0 -2
  590. package/dist/q2-tecton-elements/p-ac6aa392.entry.js.map +0 -1
  591. package/dist/q2-tecton-elements/p-ad057d10.entry.js +0 -2
  592. package/dist/q2-tecton-elements/p-ad057d10.entry.js.map +0 -1
  593. package/dist/q2-tecton-elements/p-ad80aef0.js +0 -2
  594. package/dist/q2-tecton-elements/p-b0e5e9dc.entry.js +0 -2
  595. package/dist/q2-tecton-elements/p-b0e5e9dc.entry.js.map +0 -1
  596. package/dist/q2-tecton-elements/p-b1784be3.entry.js +0 -2
  597. package/dist/q2-tecton-elements/p-b1784be3.entry.js.map +0 -1
  598. package/dist/q2-tecton-elements/p-b7554a79.js +0 -2
  599. package/dist/q2-tecton-elements/p-b7de110e.entry.js +0 -2
  600. package/dist/q2-tecton-elements/p-c235ab3f.entry.js +0 -2
  601. package/dist/q2-tecton-elements/p-c5667d5d.entry.js +0 -2
  602. package/dist/q2-tecton-elements/p-e1255160.js +0 -2
  603. package/dist/q2-tecton-elements/p-e216ef3f.entry.js +0 -2
  604. package/dist/q2-tecton-elements/p-e2c800ef.entry.js +0 -2
  605. package/dist/q2-tecton-elements/p-eea5aa01.js +0 -2
  606. package/dist/q2-tecton-elements/p-f135b265.entry.js +0 -2
  607. package/dist/q2-tecton-elements/p-f1e887f5.js +0 -2
  608. package/dist/q2-tecton-elements/p-f5f23659.entry.js +0 -2
  609. package/dist/q2-tecton-elements/p-f7867f21.entry.js +0 -2
  610. package/dist/q2-tecton-elements/p-f7867f21.entry.js.map +0 -1
  611. package/dist/q2-tecton-elements/p-ff8f1a32.entry.js +0 -2
  612. package/dist/q2-tecton-elements/p-fff01dc1.entry.js +0 -2
  613. package/dist/q2-tecton-elements/p-fff01dc1.entry.js.map +0 -1
@@ -0,0 +1,2602 @@
1
+ import { ag as a, I as r, a4 as t, ah as i, D as e, ai as n, aj as s, ak as o, al as l, am as u, an as v, m as f, ao as c, ap as h, a0 as d, aq as x, a3 as y, ar as A, as as g, at as C, au as m, av as b, aw as p, ax as w, _ as M, ay as k, az as L, aA as T, y as S, aB as G, aC as I, aD as D, aE as V, a6 as N, aF as B, Q as O, aG as P, aH as z, aI as F, aJ as E, aK as Z, aL as R, j as W, aM as _, aN as j, aO as U, aP as X, aQ as Y, aR as $, aS as K, aT as H, aU as Q, W as q, G as J, aV as aa, aW as ra, a as ta, aX as ia, aY as ea, aZ as na, a_ as sa, a$ as oa, a9 as la, b0 as ua, b1 as va, E as fa, b2 as ca, b3 as ha, d as da, b4 as xa, i as ya, V as Aa, b5 as ga } from "./charting-1abfb877.js";
2
+
3
+ /**
4
+ * @class
5
+ * For example:
6
+ * {
7
+ * coordSysName: 'cartesian2d',
8
+ * coordSysDims: ['x', 'y', ...],
9
+ * axisMap: HashMap({
10
+ * x: xAxisModel,
11
+ * y: yAxisModel
12
+ * }),
13
+ * categoryAxisMap: HashMap({
14
+ * x: xAxisModel,
15
+ * y: undefined
16
+ * }),
17
+ * // The index of the first category axis in `coordSysDims`.
18
+ * // `null/undefined` means no category axis exists.
19
+ * firstCategoryDimIndex: 1,
20
+ * // To replace user specified encode.
21
+ * }
22
+ */ var Ca = /** @class */ function() {
23
+ function CoordSysInfo(a) {
24
+ this.coordSysDims = [];
25
+ this.axisMap = t();
26
+ this.categoryAxisMap = t();
27
+ this.coordSysName = a;
28
+ }
29
+ return CoordSysInfo;
30
+ }();
31
+
32
+ function getCoordSysInfoBySeries(a) {
33
+ var r = a.get("coordinateSystem");
34
+ var t = new Ca(r);
35
+ var i = ma[r];
36
+ if (i) {
37
+ i(a, t, t.axisMap, t.categoryAxisMap);
38
+ return t;
39
+ }
40
+ }
41
+
42
+ var ma = {
43
+ cartesian2d: function(r, t, i, e) {
44
+ var n = r.getReferringComponents("xAxis", a).models[0];
45
+ var s = r.getReferringComponents("yAxis", a).models[0];
46
+ t.coordSysDims = [ "x", "y" ];
47
+ i.set("x", n);
48
+ i.set("y", s);
49
+ if (isCategory(n)) {
50
+ e.set("x", n);
51
+ t.firstCategoryDimIndex = 0;
52
+ }
53
+ if (isCategory(s)) {
54
+ e.set("y", s);
55
+ t.firstCategoryDimIndex == null && (t.firstCategoryDimIndex = 1);
56
+ }
57
+ },
58
+ singleAxis: function(r, t, i, e) {
59
+ var n = r.getReferringComponents("singleAxis", a).models[0];
60
+ t.coordSysDims = [ "single" ];
61
+ i.set("single", n);
62
+ if (isCategory(n)) {
63
+ e.set("single", n);
64
+ t.firstCategoryDimIndex = 0;
65
+ }
66
+ },
67
+ polar: function(r, t, i, e) {
68
+ var n = r.getReferringComponents("polar", a).models[0];
69
+ var s = n.findAxisModel("radiusAxis");
70
+ var o = n.findAxisModel("angleAxis");
71
+ t.coordSysDims = [ "radius", "angle" ];
72
+ i.set("radius", s);
73
+ i.set("angle", o);
74
+ if (isCategory(s)) {
75
+ e.set("radius", s);
76
+ t.firstCategoryDimIndex = 0;
77
+ }
78
+ if (isCategory(o)) {
79
+ e.set("angle", o);
80
+ t.firstCategoryDimIndex == null && (t.firstCategoryDimIndex = 1);
81
+ }
82
+ },
83
+ geo: function(a, r, t, i) {
84
+ r.coordSysDims = [ "lng", "lat" ];
85
+ },
86
+ parallel: function(a, t, i, e) {
87
+ var n = a.ecModel;
88
+ var s = n.getComponent("parallel", a.get("parallelIndex"));
89
+ var o = t.coordSysDims = s.dimensions.slice();
90
+ r(s.parallelAxisIndex, (function(a, r) {
91
+ var s = n.getComponent("parallelAxis", a);
92
+ var l = o[r];
93
+ i.set(l, s);
94
+ if (isCategory(s)) {
95
+ e.set(l, s);
96
+ if (t.firstCategoryDimIndex == null) {
97
+ t.firstCategoryDimIndex = r;
98
+ }
99
+ }
100
+ }));
101
+ }
102
+ };
103
+
104
+ function isCategory(a) {
105
+ return a.get("type") === "category";
106
+ }
107
+
108
+ function getCoordSysDimDefs(a, r) {
109
+ var t = a.get("coordinateSystem");
110
+ var i = v.get(t);
111
+ var e;
112
+ if (r && r.coordSysDims) {
113
+ e = f(r.coordSysDims, (function(a) {
114
+ var t = {
115
+ name: a
116
+ };
117
+ var i = r.axisMap.get(a);
118
+ if (i) {
119
+ var e = i.get("type");
120
+ t.type = c(e);
121
+ }
122
+ return t;
123
+ }));
124
+ }
125
+ if (!e) {
126
+ // Get dimensions from registered coordinate system
127
+ e = i && (i.getDimensionsInfo ? i.getDimensionsInfo() : i.dimensions.slice()) || [ "x", "y" ];
128
+ }
129
+ return e;
130
+ }
131
+
132
+ function injectOrdinalMeta(a, t, i) {
133
+ var e;
134
+ var n;
135
+ i && r(a, (function(a, r) {
136
+ var s = a.coordDim;
137
+ var o = i.categoryAxisMap.get(s);
138
+ if (o) {
139
+ if (e == null) {
140
+ e = r;
141
+ }
142
+ a.ordinalMeta = o.getOrdinalMeta();
143
+ if (t) {
144
+ a.createInvertedIndices = true;
145
+ }
146
+ }
147
+ if (a.otherDims.itemName != null) {
148
+ n = true;
149
+ }
150
+ }));
151
+ if (!n && e != null) {
152
+ a[e].otherDims.itemName = 0;
153
+ }
154
+ return e;
155
+ }
156
+
157
+ /**
158
+ * Caution: there are side effects to `sourceManager` in this method.
159
+ * Should better only be called in `Series['getInitialData']`.
160
+ */ function createSeriesData(a, r, t) {
161
+ t = t || {};
162
+ var v = r.getSourceManager();
163
+ var f;
164
+ var c = false;
165
+ if (a) {
166
+ c = true;
167
+ f = i(a);
168
+ } else {
169
+ f = v.getSource();
170
+ // Is series.data. not dataset.
171
+ c = f.sourceFormat === h;
172
+ }
173
+ var d = getCoordSysInfoBySeries(r);
174
+ var x = getCoordSysDimDefs(r, d);
175
+ var y = t.useEncodeDefaulter;
176
+ var A = e(y) ? y : y ? n(s, x, r) : null;
177
+ var g = {
178
+ coordDimensions: x,
179
+ generateCoord: t.generateCoord,
180
+ encodeDefine: r.getEncode(),
181
+ encodeDefaulter: A,
182
+ canOmitUnusedDimensions: !c
183
+ };
184
+ var C = o(f, g);
185
+ var m = injectOrdinalMeta(C.dimensions, t.createInvertedIndices, d);
186
+ var b = !c ? v.getSharedDataStore(C) : null;
187
+ var p = l(r, {
188
+ schema: C,
189
+ store: b
190
+ });
191
+ var w = new u(C, r);
192
+ w.setCalculationInfo(p);
193
+ var M = m != null && isNeedCompleteOrdinalData(f) ? function(a, r, t, i) {
194
+ // Use dataIndex as ordinal value in categoryAxis
195
+ return i === m ? t : this.defaultDimValueGetter(a, r, t, i);
196
+ } : null;
197
+ w.hasItemOption = false;
198
+ w.initData(
199
+ // Try to reuse the data store in sourceManager if using dataset.
200
+ c ? f : b, null, M);
201
+ return w;
202
+ }
203
+
204
+ function isNeedCompleteOrdinalData(a) {
205
+ if (a.sourceFormat === h) {
206
+ var r = firstDataNotNull(a.data || []);
207
+ return !d(x(r));
208
+ }
209
+ }
210
+
211
+ function firstDataNotNull(a) {
212
+ var r = 0;
213
+ while (r < a.length && a[r] == null) {
214
+ r++;
215
+ }
216
+ return a[r];
217
+ }
218
+
219
+ /*
220
+ * Licensed to the Apache Software Foundation (ASF) under one
221
+ * or more contributor license agreements. See the NOTICE file
222
+ * distributed with this work for additional information
223
+ * regarding copyright ownership. The ASF licenses this file
224
+ * to you under the Apache License, Version 2.0 (the
225
+ * "License"); you may not use this file except in compliance
226
+ * with the License. You may obtain a copy of the License at
227
+ *
228
+ * http://www.apache.org/licenses/LICENSE-2.0
229
+ *
230
+ * Unless required by applicable law or agreed to in writing,
231
+ * software distributed under the License is distributed on an
232
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
233
+ * KIND, either express or implied. See the License for the
234
+ * specific language governing permissions and limitations
235
+ * under the License.
236
+ */
237
+ /**
238
+ * AUTO-GENERATED FILE. DO NOT MODIFY.
239
+ */
240
+ /*
241
+ * Licensed to the Apache Software Foundation (ASF) under one
242
+ * or more contributor license agreements. See the NOTICE file
243
+ * distributed with this work for additional information
244
+ * regarding copyright ownership. The ASF licenses this file
245
+ * to you under the Apache License, Version 2.0 (the
246
+ * "License"); you may not use this file except in compliance
247
+ * with the License. You may obtain a copy of the License at
248
+ *
249
+ * http://www.apache.org/licenses/LICENSE-2.0
250
+ *
251
+ * Unless required by applicable law or agreed to in writing,
252
+ * software distributed under the License is distributed on an
253
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
254
+ * KIND, either express or implied. See the License for the
255
+ * specific language governing permissions and limitations
256
+ * under the License.
257
+ */
258
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
259
+ var ba = /** @class */ function() {
260
+ function AxisModelCommonMixin() {}
261
+ AxisModelCommonMixin.prototype.getNeedCrossZero = function() {
262
+ var a = this.option;
263
+ return !a.scale;
264
+ };
265
+ /**
266
+ * Should be implemented by each axis model if necessary.
267
+ * @return coordinate system model
268
+ */ AxisModelCommonMixin.prototype.getCoordSysModel = function() {
269
+ return;
270
+ };
271
+ return AxisModelCommonMixin;
272
+ }();
273
+
274
+ var pa = y();
275
+
276
+ function tickValuesToNumbers(a, r) {
277
+ var t = f(r, (function(r) {
278
+ return a.scale.parse(r);
279
+ }));
280
+ if (a.type === "time" && t.length > 0) {
281
+ // Time axis needs duplicate first/last tick (see TimeScale.getTicks())
282
+ // The first and last tick/label don't get drawn
283
+ t.sort();
284
+ t.unshift(t[0]);
285
+ t.push(t[t.length - 1]);
286
+ }
287
+ return t;
288
+ }
289
+
290
+ function createAxisLabels(a) {
291
+ var r = a.getLabelModel().get("customValues");
292
+ if (r) {
293
+ var t = A(a);
294
+ return {
295
+ labels: tickValuesToNumbers(a, r).map((function(r) {
296
+ var i = {
297
+ value: r
298
+ };
299
+ return {
300
+ formattedLabel: t(i),
301
+ rawLabel: a.scale.getLabel(i),
302
+ tickValue: r
303
+ };
304
+ }))
305
+ };
306
+ }
307
+ // Only ordinal scale support tick interval
308
+ return a.type === "category" ? makeCategoryLabels(a) : makeRealNumberLabels(a);
309
+ }
310
+
311
+ /**
312
+ * @param {module:echats/coord/Axis} axis
313
+ * @param {module:echarts/model/Model} tickModel For example, can be axisTick, splitLine, splitArea.
314
+ * @return {Object} {
315
+ * ticks: Array.<number>
316
+ * tickCategoryInterval: number
317
+ * }
318
+ */ function createAxisTicks(a, r) {
319
+ var t = a.getTickModel().get("customValues");
320
+ if (t) {
321
+ return {
322
+ ticks: tickValuesToNumbers(a, t)
323
+ };
324
+ }
325
+ // Only ordinal scale support tick interval
326
+ return a.type === "category" ? makeCategoryTicks(a, r) : {
327
+ ticks: f(a.scale.getTicks(), (function(a) {
328
+ return a.value;
329
+ }))
330
+ };
331
+ }
332
+
333
+ function makeCategoryLabels(a) {
334
+ var r = a.getLabelModel();
335
+ var t = makeCategoryLabelsActually(a, r);
336
+ return !r.get("show") || a.scale.isBlank() ? {
337
+ labels: [],
338
+ labelCategoryInterval: t.labelCategoryInterval
339
+ } : t;
340
+ }
341
+
342
+ function makeCategoryLabelsActually(a, r) {
343
+ var t = getListCache(a, "labels");
344
+ var i = g(r);
345
+ var n = listCacheGet(t, i);
346
+ if (n) {
347
+ return n;
348
+ }
349
+ var s;
350
+ var o;
351
+ if (e(i)) {
352
+ s = makeLabelsByCustomizedCategoryInterval(a, i);
353
+ } else {
354
+ o = i === "auto" ? makeAutoCategoryInterval(a) : i;
355
+ s = makeLabelsByNumericCategoryInterval(a, o);
356
+ }
357
+ // Cache to avoid calling interval function repeatedly.
358
+ return listCacheSet(t, i, {
359
+ labels: s,
360
+ labelCategoryInterval: o
361
+ });
362
+ }
363
+
364
+ function makeCategoryTicks(a, r) {
365
+ var t = getListCache(a, "ticks");
366
+ var i = g(r);
367
+ var n = listCacheGet(t, i);
368
+ if (n) {
369
+ return n;
370
+ }
371
+ var s;
372
+ var o;
373
+ // Optimize for the case that large category data and no label displayed,
374
+ // we should not return all ticks.
375
+ if (!r.get("show") || a.scale.isBlank()) {
376
+ s = [];
377
+ }
378
+ if (e(i)) {
379
+ s = makeLabelsByCustomizedCategoryInterval(a, i, true);
380
+ }
381
+ // Always use label interval by default despite label show. Consider this
382
+ // scenario, Use multiple grid with the xAxis sync, and only one xAxis shows
383
+ // labels. `splitLine` and `axisTick` should be consistent in this case.
384
+ else if (i === "auto") {
385
+ var l = makeCategoryLabelsActually(a, a.getLabelModel());
386
+ o = l.labelCategoryInterval;
387
+ s = f(l.labels, (function(a) {
388
+ return a.tickValue;
389
+ }));
390
+ } else {
391
+ o = i;
392
+ s = makeLabelsByNumericCategoryInterval(a, o, true);
393
+ }
394
+ // Cache to avoid calling interval function repeatedly.
395
+ return listCacheSet(t, i, {
396
+ ticks: s,
397
+ tickCategoryInterval: o
398
+ });
399
+ }
400
+
401
+ function makeRealNumberLabels(a) {
402
+ var r = a.scale.getTicks();
403
+ var t = A(a);
404
+ return {
405
+ labels: f(r, (function(r, i) {
406
+ return {
407
+ level: r.level,
408
+ formattedLabel: t(r, i),
409
+ rawLabel: a.scale.getLabel(r),
410
+ tickValue: r.value
411
+ };
412
+ }))
413
+ };
414
+ }
415
+
416
+ function getListCache(a, r) {
417
+ // Because key can be a function, and cache size always is small, we use array cache.
418
+ return pa(a)[r] || (pa(a)[r] = []);
419
+ }
420
+
421
+ function listCacheGet(a, r) {
422
+ for (var t = 0; t < a.length; t++) {
423
+ if (a[t].key === r) {
424
+ return a[t].value;
425
+ }
426
+ }
427
+ }
428
+
429
+ function listCacheSet(a, r, t) {
430
+ a.push({
431
+ key: r,
432
+ value: t
433
+ });
434
+ return t;
435
+ }
436
+
437
+ function makeAutoCategoryInterval(a) {
438
+ var r = pa(a).autoInterval;
439
+ return r != null ? r : pa(a).autoInterval = a.calculateCategoryInterval();
440
+ }
441
+
442
+ /**
443
+ * Calculate interval for category axis ticks and labels.
444
+ * To get precise result, at least one of `getRotate` and `isHorizontal`
445
+ * should be implemented in axis.
446
+ */ function calculateCategoryInterval(a) {
447
+ var r = fetchAutoCategoryIntervalCalculationParams(a);
448
+ var t = A(a);
449
+ var i = (r.axisRotate - r.labelRotate) / 180 * Math.PI;
450
+ var e = a.scale;
451
+ var n = e.getExtent();
452
+ // Providing this method is for optimization:
453
+ // avoid generating a long array by `getTicks`
454
+ // in large category data case.
455
+ var s = e.count();
456
+ if (n[1] - n[0] < 1) {
457
+ return 0;
458
+ }
459
+ var o = 1;
460
+ // Simple optimization. Empirical value: tick count should less than 40.
461
+ if (s > 40) {
462
+ o = Math.max(1, Math.floor(s / 40));
463
+ }
464
+ var l = n[0];
465
+ var u = a.dataToCoord(l + 1) - a.dataToCoord(l);
466
+ var v = Math.abs(u * Math.cos(i));
467
+ var f = Math.abs(u * Math.sin(i));
468
+ var c = 0;
469
+ var h = 0;
470
+ // Caution: Performance sensitive for large category data.
471
+ // Consider dataZoom, we should make appropriate step to avoid O(n) loop.
472
+ for (;l <= n[1]; l += o) {
473
+ var d = 0;
474
+ var x = 0;
475
+ // Not precise, do not consider align and vertical align
476
+ // and each distance from axis line yet.
477
+ var y = C(t({
478
+ value: l
479
+ }), r.font, "center", "top");
480
+ // Magic number
481
+ d = y.width * 1.3;
482
+ x = y.height * 1.3;
483
+ // Min size, void long loop.
484
+ c = Math.max(c, d, 7);
485
+ h = Math.max(h, x, 7);
486
+ }
487
+ var g = c / v;
488
+ var m = h / f;
489
+ // 0/0 is NaN, 1/0 is Infinity.
490
+ isNaN(g) && (g = Infinity);
491
+ isNaN(m) && (m = Infinity);
492
+ var b = Math.max(0, Math.floor(Math.min(g, m)));
493
+ var p = pa(a.model);
494
+ var w = a.getExtent();
495
+ var M = p.lastAutoInterval;
496
+ var k = p.lastTickCount;
497
+ // Use cache to keep interval stable while moving zoom window,
498
+ // otherwise the calculated interval might jitter when the zoom
499
+ // window size is close to the interval-changing size.
500
+ // For example, if all of the axis labels are `a, b, c, d, e, f, g`.
501
+ // The jitter will cause that sometimes the displayed labels are
502
+ // `a, d, g` (interval: 2) sometimes `a, c, e`(interval: 1).
503
+ if (M != null && k != null && Math.abs(M - b) <= 1 && Math.abs(k - s) <= 1 && M > b && p.axisExtent0 === w[0] && p.axisExtent1 === w[1]) {
504
+ b = M;
505
+ }
506
+ // Only update cache if cache not used, otherwise the
507
+ // changing of interval is too insensitive.
508
+ else {
509
+ p.lastTickCount = s;
510
+ p.lastAutoInterval = b;
511
+ p.axisExtent0 = w[0];
512
+ p.axisExtent1 = w[1];
513
+ }
514
+ return b;
515
+ }
516
+
517
+ function fetchAutoCategoryIntervalCalculationParams(a) {
518
+ var r = a.getLabelModel();
519
+ return {
520
+ axisRotate: a.getRotate ? a.getRotate() : a.isHorizontal && !a.isHorizontal() ? 90 : 0,
521
+ labelRotate: r.get("rotate") || 0,
522
+ font: r.getFont()
523
+ };
524
+ }
525
+
526
+ function makeLabelsByNumericCategoryInterval(a, r, t) {
527
+ var i = A(a);
528
+ var e = a.scale;
529
+ var n = e.getExtent();
530
+ var s = a.getLabelModel();
531
+ var o = [];
532
+ // TODO: axisType: ordinalTime, pick the tick from each month/day/year/...
533
+ var l = Math.max((r || 0) + 1, 1);
534
+ var u = n[0];
535
+ var v = e.count();
536
+ // Calculate start tick based on zero if possible to keep label consistent
537
+ // while zooming and moving while interval > 0. Otherwise the selection
538
+ // of displayable ticks and symbols probably keep changing.
539
+ // 3 is empirical value.
540
+ if (u !== 0 && l > 1 && v / l > 2) {
541
+ u = Math.round(Math.ceil(u / l) * l);
542
+ }
543
+ // (1) Only add min max label here but leave overlap checking
544
+ // to render stage, which also ensure the returned list
545
+ // suitable for splitLine and splitArea rendering.
546
+ // (2) Scales except category always contain min max label so
547
+ // do not need to perform this process.
548
+ var f = m(a);
549
+ var c = s.get("showMinLabel") || f;
550
+ var h = s.get("showMaxLabel") || f;
551
+ if (c && u !== n[0]) {
552
+ addItem(n[0]);
553
+ }
554
+ // Optimize: avoid generating large array by `ordinalScale.getTicks()`.
555
+ var d = u;
556
+ for (;d <= n[1]; d += l) {
557
+ addItem(d);
558
+ }
559
+ if (h && d - l !== n[1]) {
560
+ addItem(n[1]);
561
+ }
562
+ function addItem(a) {
563
+ var r = {
564
+ value: a
565
+ };
566
+ o.push(t ? a : {
567
+ formattedLabel: i(r),
568
+ rawLabel: e.getLabel(r),
569
+ tickValue: a
570
+ });
571
+ }
572
+ return o;
573
+ }
574
+
575
+ function makeLabelsByCustomizedCategoryInterval(a, t, i) {
576
+ var e = a.scale;
577
+ var n = A(a);
578
+ var s = [];
579
+ r(e.getTicks(), (function(a) {
580
+ var r = e.getLabel(a);
581
+ var o = a.value;
582
+ if (t(a.value, r)) {
583
+ s.push(i ? o : {
584
+ formattedLabel: n(a),
585
+ rawLabel: r,
586
+ tickValue: o
587
+ });
588
+ }
589
+ }));
590
+ return s;
591
+ }
592
+
593
+ var wa = [ 0, 1 ];
594
+
595
+ /**
596
+ * Base class of Axis.
597
+ */ var Ma = /** @class */ function() {
598
+ function Axis(a, r, t) {
599
+ this.onBand = false;
600
+ this.inverse = false;
601
+ this.dim = a;
602
+ this.scale = r;
603
+ this._extent = t || [ 0, 0 ];
604
+ }
605
+ /**
606
+ * If axis extent contain given coord
607
+ */ Axis.prototype.contain = function(a) {
608
+ var r = this._extent;
609
+ var t = Math.min(r[0], r[1]);
610
+ var i = Math.max(r[0], r[1]);
611
+ return a >= t && a <= i;
612
+ };
613
+ /**
614
+ * If axis extent contain given data
615
+ */ Axis.prototype.containData = function(a) {
616
+ return this.scale.contain(a);
617
+ };
618
+ /**
619
+ * Get coord extent.
620
+ */ Axis.prototype.getExtent = function() {
621
+ return this._extent.slice();
622
+ };
623
+ /**
624
+ * Get precision used for formatting
625
+ */ Axis.prototype.getPixelPrecision = function(a) {
626
+ return b(a || this.scale.getExtent(), this._extent);
627
+ };
628
+ /**
629
+ * Set coord extent
630
+ */ Axis.prototype.setExtent = function(a, r) {
631
+ var t = this._extent;
632
+ t[0] = a;
633
+ t[1] = r;
634
+ };
635
+ /**
636
+ * Convert data to coord. Data is the rank if it has an ordinal scale
637
+ */ Axis.prototype.dataToCoord = function(a, r) {
638
+ var t = this._extent;
639
+ var i = this.scale;
640
+ a = i.normalize(a);
641
+ if (this.onBand && i.type === "ordinal") {
642
+ t = t.slice();
643
+ fixExtentWithBands(t, i.count());
644
+ }
645
+ return p(a, wa, t, r);
646
+ };
647
+ /**
648
+ * Convert coord to data. Data is the rank if it has an ordinal scale
649
+ */ Axis.prototype.coordToData = function(a, r) {
650
+ var t = this._extent;
651
+ var i = this.scale;
652
+ if (this.onBand && i.type === "ordinal") {
653
+ t = t.slice();
654
+ fixExtentWithBands(t, i.count());
655
+ }
656
+ var e = p(a, t, wa, r);
657
+ return this.scale.scale(e);
658
+ };
659
+ /**
660
+ * Convert pixel point to data in axis
661
+ */ Axis.prototype.pointToData = function(a, r) {
662
+ // Should be implemented in derived class if necessary.
663
+ return;
664
+ };
665
+ /**
666
+ * Different from `zrUtil.map(axis.getTicks(), axis.dataToCoord, axis)`,
667
+ * `axis.getTicksCoords` considers `onBand`, which is used by
668
+ * `boundaryGap:true` of category axis and splitLine and splitArea.
669
+ * @param opt.tickModel default: axis.model.getModel('axisTick')
670
+ * @param opt.clamp If `true`, the first and the last
671
+ * tick must be at the axis end points. Otherwise, clip ticks
672
+ * that outside the axis extent.
673
+ */ Axis.prototype.getTicksCoords = function(a) {
674
+ a = a || {};
675
+ var r = a.tickModel || this.getTickModel();
676
+ var t = createAxisTicks(this, r);
677
+ var i = t.ticks;
678
+ var e = f(i, (function(a) {
679
+ return {
680
+ coord: this.dataToCoord(this.scale.type === "ordinal" ? this.scale.getRawOrdinalNumber(a) : a),
681
+ tickValue: a
682
+ };
683
+ }), this);
684
+ var n = r.get("alignWithLabel");
685
+ fixOnBandTicksCoords(this, e, n, a.clamp);
686
+ return e;
687
+ };
688
+ Axis.prototype.getMinorTicksCoords = function() {
689
+ if (this.scale.type === "ordinal") {
690
+ // Category axis doesn't support minor ticks
691
+ return [];
692
+ }
693
+ var a = this.model.getModel("minorTick");
694
+ var r = a.get("splitNumber");
695
+ // Protection.
696
+ if (!(r > 0 && r < 100)) {
697
+ r = 5;
698
+ }
699
+ var t = this.scale.getMinorTicks(r);
700
+ var i = f(t, (function(a) {
701
+ return f(a, (function(a) {
702
+ return {
703
+ coord: this.dataToCoord(a),
704
+ tickValue: a
705
+ };
706
+ }), this);
707
+ }), this);
708
+ return i;
709
+ };
710
+ Axis.prototype.getViewLabels = function() {
711
+ return createAxisLabels(this).labels;
712
+ };
713
+ Axis.prototype.getLabelModel = function() {
714
+ return this.model.getModel("axisLabel");
715
+ };
716
+ /**
717
+ * Notice here we only get the default tick model. For splitLine
718
+ * or splitArea, we should pass the splitLineModel or splitAreaModel
719
+ * manually when calling `getTicksCoords`.
720
+ * In GL, this method may be overridden to:
721
+ * `axisModel.getModel('axisTick', grid3DModel.getModel('axisTick'));`
722
+ */ Axis.prototype.getTickModel = function() {
723
+ return this.model.getModel("axisTick");
724
+ };
725
+ /**
726
+ * Get width of band
727
+ */ Axis.prototype.getBandWidth = function() {
728
+ var a = this._extent;
729
+ var r = this.scale.getExtent();
730
+ var t = r[1] - r[0] + (this.onBand ? 1 : 0);
731
+ // Fix #2728, avoid NaN when only one data.
732
+ t === 0 && (t = 1);
733
+ var i = Math.abs(a[1] - a[0]);
734
+ return Math.abs(i) / t;
735
+ };
736
+ /**
737
+ * Only be called in category axis.
738
+ * Can be overridden, consider other axes like in 3D.
739
+ * @return Auto interval for cateogry axis tick and label
740
+ */ Axis.prototype.calculateCategoryInterval = function() {
741
+ return calculateCategoryInterval(this);
742
+ };
743
+ return Axis;
744
+ }();
745
+
746
+ function fixExtentWithBands(a, r) {
747
+ var t = a[1] - a[0];
748
+ var i = r;
749
+ var e = t / i / 2;
750
+ a[0] += e;
751
+ a[1] -= e;
752
+ }
753
+
754
+ // If axis has labels [1, 2, 3, 4]. Bands on the axis are
755
+ // |---1---|---2---|---3---|---4---|.
756
+ // So the displayed ticks and splitLine/splitArea should between
757
+ // each data item, otherwise cause misleading (e.g., split tow bars
758
+ // of a single data item when there are two bar series).
759
+ // Also consider if tickCategoryInterval > 0 and onBand, ticks and
760
+ // splitLine/spliteArea should layout appropriately corresponding
761
+ // to displayed labels. (So we should not use `getBandWidth` in this
762
+ // case).
763
+ function fixOnBandTicksCoords(a, t, i, e) {
764
+ var n = t.length;
765
+ if (!a.onBand || i || !n) {
766
+ return;
767
+ }
768
+ var s = a.getExtent();
769
+ var o;
770
+ var l;
771
+ if (n === 1) {
772
+ t[0].coord = s[0];
773
+ o = t[1] = {
774
+ coord: s[1]
775
+ };
776
+ } else {
777
+ var u = t[n - 1].tickValue - t[0].tickValue;
778
+ var v = (t[n - 1].coord - t[0].coord) / u;
779
+ r(t, (function(a) {
780
+ a.coord -= v / 2;
781
+ }));
782
+ var f = a.scale.getExtent();
783
+ l = 1 + f[1] - t[n - 1].tickValue;
784
+ o = {
785
+ coord: t[n - 1].coord + v * l
786
+ };
787
+ t.push(o);
788
+ }
789
+ var c = s[0] > s[1];
790
+ // Handling clamp.
791
+ if (littleThan(t[0].coord, s[0])) {
792
+ e ? t[0].coord = s[0] : t.shift();
793
+ }
794
+ if (e && littleThan(s[0], t[0].coord)) {
795
+ t.unshift({
796
+ coord: s[0]
797
+ });
798
+ }
799
+ if (littleThan(s[1], o.coord)) {
800
+ e ? o.coord = s[1] : t.pop();
801
+ }
802
+ if (e && littleThan(o.coord, s[1])) {
803
+ t.push({
804
+ coord: s[1]
805
+ });
806
+ }
807
+ function littleThan(a, r) {
808
+ // Avoid rounding error cause calculated tick coord different with extent.
809
+ // It may cause an extra unnecessary tick added.
810
+ a = w(a);
811
+ r = w(r);
812
+ return c ? a > r : a < r;
813
+ }
814
+ }
815
+
816
+ const ka = Ma;
817
+
818
+ var La = /** @class */ function(a) {
819
+ M(GridModel, a);
820
+ function GridModel() {
821
+ return a !== null && a.apply(this, arguments) || this;
822
+ }
823
+ GridModel.type = "grid";
824
+ GridModel.dependencies = [ "xAxis", "yAxis" ];
825
+ GridModel.layoutMode = "box";
826
+ GridModel.defaultOption = {
827
+ show: false,
828
+ // zlevel: 0,
829
+ z: 0,
830
+ left: "10%",
831
+ top: 60,
832
+ right: "10%",
833
+ bottom: 70,
834
+ // If grid size contain label
835
+ containLabel: false,
836
+ // width: {totalWidth} - left - right,
837
+ // height: {totalHeight} - top - bottom,
838
+ backgroundColor: "rgba(0,0,0,0)",
839
+ borderWidth: 1,
840
+ borderColor: "#ccc"
841
+ };
842
+ return GridModel;
843
+ }(k);
844
+
845
+ const Ta = La;
846
+
847
+ var Sa = /** @class */ function(r) {
848
+ M(CartesianAxisModel, r);
849
+ function CartesianAxisModel() {
850
+ return r !== null && r.apply(this, arguments) || this;
851
+ }
852
+ CartesianAxisModel.prototype.getCoordSysModel = function() {
853
+ return this.getReferringComponents("grid", a).models[0];
854
+ };
855
+ CartesianAxisModel.type = "cartesian2dAxis";
856
+ return CartesianAxisModel;
857
+ }(k);
858
+
859
+ L(Sa, ba);
860
+
861
+ var Ga = {
862
+ show: true,
863
+ // zlevel: 0,
864
+ z: 0,
865
+ // Inverse the axis.
866
+ inverse: false,
867
+ // Axis name displayed.
868
+ name: "",
869
+ // 'start' | 'middle' | 'end'
870
+ nameLocation: "end",
871
+ // By degree. By default auto rotate by nameLocation.
872
+ nameRotate: null,
873
+ nameTruncate: {
874
+ maxWidth: null,
875
+ ellipsis: "...",
876
+ placeholder: "."
877
+ },
878
+ // Use global text style by default.
879
+ nameTextStyle: {},
880
+ // The gap between axisName and axisLine.
881
+ nameGap: 15,
882
+ // Default `false` to support tooltip.
883
+ silent: false,
884
+ // Default `false` to avoid legacy user event listener fail.
885
+ triggerEvent: false,
886
+ tooltip: {
887
+ show: false
888
+ },
889
+ axisPointer: {},
890
+ axisLine: {
891
+ show: true,
892
+ onZero: true,
893
+ onZeroAxisIndex: null,
894
+ lineStyle: {
895
+ color: "#6E7079",
896
+ width: 1,
897
+ type: "solid"
898
+ },
899
+ // The arrow at both ends the the axis.
900
+ symbol: [ "none", "none" ],
901
+ symbolSize: [ 10, 15 ]
902
+ },
903
+ axisTick: {
904
+ show: true,
905
+ // Whether axisTick is inside the grid or outside the grid.
906
+ inside: false,
907
+ // The length of axisTick.
908
+ length: 5,
909
+ lineStyle: {
910
+ width: 1
911
+ }
912
+ },
913
+ axisLabel: {
914
+ show: true,
915
+ // Whether axisLabel is inside the grid or outside the grid.
916
+ inside: false,
917
+ rotate: 0,
918
+ // true | false | null/undefined (auto)
919
+ showMinLabel: null,
920
+ // true | false | null/undefined (auto)
921
+ showMaxLabel: null,
922
+ margin: 8,
923
+ // formatter: null,
924
+ fontSize: 12
925
+ },
926
+ splitLine: {
927
+ show: true,
928
+ lineStyle: {
929
+ color: [ "#E0E6F1" ],
930
+ width: 1,
931
+ type: "solid"
932
+ }
933
+ },
934
+ splitArea: {
935
+ show: false,
936
+ areaStyle: {
937
+ color: [ "rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)" ]
938
+ }
939
+ }
940
+ };
941
+
942
+ var Ia = T({
943
+ // The gap at both ends of the axis. For categoryAxis, boolean.
944
+ boundaryGap: true,
945
+ // Set false to faster category collection.
946
+ deduplication: null,
947
+ // splitArea: {
948
+ // show: false
949
+ // },
950
+ splitLine: {
951
+ show: false
952
+ },
953
+ axisTick: {
954
+ // If tick is align with label when boundaryGap is true
955
+ alignWithLabel: false,
956
+ interval: "auto"
957
+ },
958
+ axisLabel: {
959
+ interval: "auto"
960
+ }
961
+ }, Ga);
962
+
963
+ var Da = T({
964
+ boundaryGap: [ 0, 0 ],
965
+ axisLine: {
966
+ // Not shown when other axis is categoryAxis in cartesian
967
+ show: "auto"
968
+ },
969
+ axisTick: {
970
+ // Not shown when other axis is categoryAxis in cartesian
971
+ show: "auto"
972
+ },
973
+ // TODO
974
+ // min/max: [30, datamin, 60] or [20, datamin] or [datamin, 60]
975
+ splitNumber: 5,
976
+ minorTick: {
977
+ // Minor tick, not available for cateogry axis.
978
+ show: false,
979
+ // Split number of minor ticks. The value should be in range of (0, 100)
980
+ splitNumber: 5,
981
+ // Length of minor tick
982
+ length: 3,
983
+ // Line style
984
+ lineStyle: {}
985
+ },
986
+ minorSplitLine: {
987
+ show: false,
988
+ lineStyle: {
989
+ color: "#F4F7FD",
990
+ width: 1
991
+ }
992
+ }
993
+ }, Ga);
994
+
995
+ var Va = T({
996
+ splitNumber: 6,
997
+ axisLabel: {
998
+ // To eliminate labels that are not nice
999
+ showMinLabel: false,
1000
+ showMaxLabel: false,
1001
+ rich: {
1002
+ primary: {
1003
+ fontWeight: "bold"
1004
+ }
1005
+ }
1006
+ },
1007
+ splitLine: {
1008
+ show: false
1009
+ }
1010
+ }, Da);
1011
+
1012
+ var Na = S({
1013
+ logBase: 10
1014
+ }, Da);
1015
+
1016
+ const Ba = {
1017
+ category: Ia,
1018
+ value: Da,
1019
+ time: Va,
1020
+ log: Na
1021
+ };
1022
+
1023
+ /*
1024
+ * Licensed to the Apache Software Foundation (ASF) under one
1025
+ * or more contributor license agreements. See the NOTICE file
1026
+ * distributed with this work for additional information
1027
+ * regarding copyright ownership. The ASF licenses this file
1028
+ * to you under the Apache License, Version 2.0 (the
1029
+ * "License"); you may not use this file except in compliance
1030
+ * with the License. You may obtain a copy of the License at
1031
+ *
1032
+ * http://www.apache.org/licenses/LICENSE-2.0
1033
+ *
1034
+ * Unless required by applicable law or agreed to in writing,
1035
+ * software distributed under the License is distributed on an
1036
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1037
+ * KIND, either express or implied. See the License for the
1038
+ * specific language governing permissions and limitations
1039
+ * under the License.
1040
+ */
1041
+ /**
1042
+ * AUTO-GENERATED FILE. DO NOT MODIFY.
1043
+ */
1044
+ /*
1045
+ * Licensed to the Apache Software Foundation (ASF) under one
1046
+ * or more contributor license agreements. See the NOTICE file
1047
+ * distributed with this work for additional information
1048
+ * regarding copyright ownership. The ASF licenses this file
1049
+ * to you under the Apache License, Version 2.0 (the
1050
+ * "License"); you may not use this file except in compliance
1051
+ * with the License. You may obtain a copy of the License at
1052
+ *
1053
+ * http://www.apache.org/licenses/LICENSE-2.0
1054
+ *
1055
+ * Unless required by applicable law or agreed to in writing,
1056
+ * software distributed under the License is distributed on an
1057
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1058
+ * KIND, either express or implied. See the License for the
1059
+ * specific language governing permissions and limitations
1060
+ * under the License.
1061
+ */ var Oa = {
1062
+ value: 1,
1063
+ category: 1,
1064
+ time: 1,
1065
+ log: 1
1066
+ };
1067
+
1068
+ /**
1069
+ * Generate sub axis model class
1070
+ * @param axisName 'x' 'y' 'radius' 'angle' 'parallel' ...
1071
+ */ function axisModelCreator(a, t, i, e) {
1072
+ r(Oa, (function(r, n) {
1073
+ var s = T(T({}, Ba[n], true), e, true);
1074
+ var o = /** @class */ function(a) {
1075
+ M(AxisModel, a);
1076
+ function AxisModel() {
1077
+ var r = a !== null && a.apply(this, arguments) || this;
1078
+ r.type = t + "Axis." + n;
1079
+ return r;
1080
+ }
1081
+ AxisModel.prototype.mergeDefaultAndTheme = function(a, r) {
1082
+ var t = V(this);
1083
+ var i = t ? G(a) : {};
1084
+ var e = r.getTheme();
1085
+ T(a, e.get(n + "Axis"));
1086
+ T(a, this.getDefaultOption());
1087
+ a.type = getAxisType(a);
1088
+ if (t) {
1089
+ I(a, i, t);
1090
+ }
1091
+ };
1092
+ AxisModel.prototype.optionUpdated = function() {
1093
+ var a = this.option;
1094
+ if (a.type === "category") {
1095
+ this.__ordinalMeta = D.createByAxisModel(this);
1096
+ }
1097
+ };
1098
+ /**
1099
+ * Should not be called before all of 'getInitailData' finished.
1100
+ * Because categories are collected during initializing data.
1101
+ */ AxisModel.prototype.getCategories = function(a) {
1102
+ var r = this.option;
1103
+ // FIXME
1104
+ // warning if called before all of 'getInitailData' finished.
1105
+ if (r.type === "category") {
1106
+ if (a) {
1107
+ return r.data;
1108
+ }
1109
+ return this.__ordinalMeta.categories;
1110
+ }
1111
+ };
1112
+ AxisModel.prototype.getOrdinalMeta = function() {
1113
+ return this.__ordinalMeta;
1114
+ };
1115
+ AxisModel.type = t + "Axis." + n;
1116
+ AxisModel.defaultOption = s;
1117
+ return AxisModel;
1118
+ }(i);
1119
+ a.registerComponentModel(o);
1120
+ }));
1121
+ a.registerSubTypeDefaulter(t + "Axis", getAxisType);
1122
+ }
1123
+
1124
+ function getAxisType(a) {
1125
+ // Default axis with data is category axis
1126
+ return a.type || (a.data ? "category" : "value");
1127
+ }
1128
+
1129
+ var Pa = /** @class */ function() {
1130
+ function Cartesian(a) {
1131
+ this.type = "cartesian";
1132
+ this._dimList = [];
1133
+ this._axes = {};
1134
+ this.name = a || "";
1135
+ }
1136
+ Cartesian.prototype.getAxis = function(a) {
1137
+ return this._axes[a];
1138
+ };
1139
+ Cartesian.prototype.getAxes = function() {
1140
+ return f(this._dimList, (function(a) {
1141
+ return this._axes[a];
1142
+ }), this);
1143
+ };
1144
+ Cartesian.prototype.getAxesByScale = function(a) {
1145
+ a = a.toLowerCase();
1146
+ return N(this.getAxes(), (function(r) {
1147
+ return r.scale.type === a;
1148
+ }));
1149
+ };
1150
+ Cartesian.prototype.addAxis = function(a) {
1151
+ var r = a.dim;
1152
+ this._axes[r] = a;
1153
+ this._dimList.push(r);
1154
+ };
1155
+ return Cartesian;
1156
+ }();
1157
+
1158
+ const za = Pa;
1159
+
1160
+ var Fa = [ "x", "y" ];
1161
+
1162
+ function canCalculateAffineTransform(a) {
1163
+ return a.type === "interval" || a.type === "time";
1164
+ }
1165
+
1166
+ var Ea = /** @class */ function(a) {
1167
+ M(Cartesian2D, a);
1168
+ function Cartesian2D() {
1169
+ var r = a !== null && a.apply(this, arguments) || this;
1170
+ r.type = "cartesian2d";
1171
+ r.dimensions = Fa;
1172
+ return r;
1173
+ }
1174
+ /**
1175
+ * Calculate an affine transform matrix if two axes are time or value.
1176
+ * It's mainly for accelartion on the large time series data.
1177
+ */ Cartesian2D.prototype.calcAffineTransform = function() {
1178
+ this._transform = this._invTransform = null;
1179
+ var a = this.getAxis("x").scale;
1180
+ var r = this.getAxis("y").scale;
1181
+ if (!canCalculateAffineTransform(a) || !canCalculateAffineTransform(r)) {
1182
+ return;
1183
+ }
1184
+ var t = a.getExtent();
1185
+ var i = r.getExtent();
1186
+ var e = this.dataToPoint([ t[0], i[0] ]);
1187
+ var n = this.dataToPoint([ t[1], i[1] ]);
1188
+ var s = t[1] - t[0];
1189
+ var o = i[1] - i[0];
1190
+ if (!s || !o) {
1191
+ return;
1192
+ }
1193
+ // Accelerate data to point calculation on the special large time series data.
1194
+ var l = (n[0] - e[0]) / s;
1195
+ var u = (n[1] - e[1]) / o;
1196
+ var v = e[0] - t[0] * l;
1197
+ var f = e[1] - i[0] * u;
1198
+ var c = this._transform = [ l, 0, 0, u, v, f ];
1199
+ this._invTransform = B([], c);
1200
+ };
1201
+ /**
1202
+ * Base axis will be used on stacking.
1203
+ */ Cartesian2D.prototype.getBaseAxis = function() {
1204
+ return this.getAxesByScale("ordinal")[0] || this.getAxesByScale("time")[0] || this.getAxis("x");
1205
+ };
1206
+ Cartesian2D.prototype.containPoint = function(a) {
1207
+ var r = this.getAxis("x");
1208
+ var t = this.getAxis("y");
1209
+ return r.contain(r.toLocalCoord(a[0])) && t.contain(t.toLocalCoord(a[1]));
1210
+ };
1211
+ Cartesian2D.prototype.containData = function(a) {
1212
+ return this.getAxis("x").containData(a[0]) && this.getAxis("y").containData(a[1]);
1213
+ };
1214
+ Cartesian2D.prototype.containZone = function(a, r) {
1215
+ var t = this.dataToPoint(a);
1216
+ var i = this.dataToPoint(r);
1217
+ var e = this.getArea();
1218
+ var n = new O(t[0], t[1], i[0] - t[0], i[1] - t[1]);
1219
+ return e.intersect(n);
1220
+ };
1221
+ Cartesian2D.prototype.dataToPoint = function(a, r, t) {
1222
+ t = t || [];
1223
+ var i = a[0];
1224
+ var e = a[1];
1225
+ // Fast path
1226
+ if (this._transform && i != null && isFinite(i) && e != null && isFinite(e)) {
1227
+ return P(t, a, this._transform);
1228
+ }
1229
+ var n = this.getAxis("x");
1230
+ var s = this.getAxis("y");
1231
+ t[0] = n.toGlobalCoord(n.dataToCoord(i, r));
1232
+ t[1] = s.toGlobalCoord(s.dataToCoord(e, r));
1233
+ return t;
1234
+ };
1235
+ Cartesian2D.prototype.clampData = function(a, r) {
1236
+ var t = this.getAxis("x").scale;
1237
+ var i = this.getAxis("y").scale;
1238
+ var e = t.getExtent();
1239
+ var n = i.getExtent();
1240
+ var s = t.parse(a[0]);
1241
+ var o = i.parse(a[1]);
1242
+ r = r || [];
1243
+ r[0] = Math.min(Math.max(Math.min(e[0], e[1]), s), Math.max(e[0], e[1]));
1244
+ r[1] = Math.min(Math.max(Math.min(n[0], n[1]), o), Math.max(n[0], n[1]));
1245
+ return r;
1246
+ };
1247
+ Cartesian2D.prototype.pointToData = function(a, r) {
1248
+ var t = [];
1249
+ if (this._invTransform) {
1250
+ return P(t, a, this._invTransform);
1251
+ }
1252
+ var i = this.getAxis("x");
1253
+ var e = this.getAxis("y");
1254
+ t[0] = i.coordToData(i.toLocalCoord(a[0]), r);
1255
+ t[1] = e.coordToData(e.toLocalCoord(a[1]), r);
1256
+ return t;
1257
+ };
1258
+ Cartesian2D.prototype.getOtherAxis = function(a) {
1259
+ return this.getAxis(a.dim === "x" ? "y" : "x");
1260
+ };
1261
+ /**
1262
+ * Get rect area of cartesian.
1263
+ * Area will have a contain function to determine if a point is in the coordinate system.
1264
+ */ Cartesian2D.prototype.getArea = function(a) {
1265
+ a = a || 0;
1266
+ var r = this.getAxis("x").getGlobalExtent();
1267
+ var t = this.getAxis("y").getGlobalExtent();
1268
+ var i = Math.min(r[0], r[1]) - a;
1269
+ var e = Math.min(t[0], t[1]) - a;
1270
+ var n = Math.max(r[0], r[1]) - i + a;
1271
+ var s = Math.max(t[0], t[1]) - e + a;
1272
+ return new O(i, e, n, s);
1273
+ };
1274
+ return Cartesian2D;
1275
+ }(za);
1276
+
1277
+ const Za = Ea;
1278
+
1279
+ var Ra = /** @class */ function(a) {
1280
+ M(Axis2D, a);
1281
+ function Axis2D(r, t, i, e, n) {
1282
+ var s = a.call(this, r, t, i) || this;
1283
+ /**
1284
+ * Index of axis, can be used as key
1285
+ * Injected outside.
1286
+ */ s.index = 0;
1287
+ s.type = e || "value";
1288
+ s.position = n || "bottom";
1289
+ return s;
1290
+ }
1291
+ Axis2D.prototype.isHorizontal = function() {
1292
+ var a = this.position;
1293
+ return a === "top" || a === "bottom";
1294
+ };
1295
+ /**
1296
+ * Each item cooresponds to this.getExtent(), which
1297
+ * means globalExtent[0] may greater than globalExtent[1],
1298
+ * unless `asc` is input.
1299
+ *
1300
+ * @param {boolean} [asc]
1301
+ * @return {Array.<number>}
1302
+ */ Axis2D.prototype.getGlobalExtent = function(a) {
1303
+ var r = this.getExtent();
1304
+ r[0] = this.toGlobalCoord(r[0]);
1305
+ r[1] = this.toGlobalCoord(r[1]);
1306
+ a && r[0] > r[1] && r.reverse();
1307
+ return r;
1308
+ };
1309
+ Axis2D.prototype.pointToData = function(a, r) {
1310
+ return this.coordToData(this.toLocalCoord(a[this.dim === "x" ? 0 : 1]), r);
1311
+ };
1312
+ /**
1313
+ * Set ordinalSortInfo
1314
+ * @param info new OrdinalSortInfo
1315
+ */ Axis2D.prototype.setCategorySortInfo = function(a) {
1316
+ if (this.type !== "category") {
1317
+ return false;
1318
+ }
1319
+ this.model.option.categorySortInfo = a;
1320
+ this.scale.setSortInfo(a);
1321
+ };
1322
+ return Axis2D;
1323
+ }(ka);
1324
+
1325
+ const Wa = Ra;
1326
+
1327
+ var _a = Math.log;
1328
+
1329
+ function alignScaleTicks(a, r, t) {
1330
+ var i = E.prototype;
1331
+ // NOTE: There is a precondition for log scale here:
1332
+ // In log scale we store _interval and _extent of exponent value.
1333
+ // So if we use the method of InternalScale to set/get these data.
1334
+ // It process the exponent value, which is linear and what we want here.
1335
+ var e = i.getTicks.call(t);
1336
+ var n = i.getTicks.call(t, true);
1337
+ var s = e.length - 1;
1338
+ var o = i.getInterval.call(t);
1339
+ var l = z(a, r);
1340
+ var u = l.extent;
1341
+ var v = l.fixMin;
1342
+ var f = l.fixMax;
1343
+ if (a.type === "log") {
1344
+ var c = _a(a.base);
1345
+ u = [ _a(u[0]) / c, _a(u[1]) / c ];
1346
+ }
1347
+ a.setExtent(u[0], u[1]);
1348
+ a.calcNiceExtent({
1349
+ splitNumber: s,
1350
+ fixMin: v,
1351
+ fixMax: f
1352
+ });
1353
+ var h = i.getExtent.call(a);
1354
+ // Need to update the rawExtent.
1355
+ // Because value in rawExtent may be not parsed. e.g. 'dataMin', 'dataMax'
1356
+ if (v) {
1357
+ u[0] = h[0];
1358
+ }
1359
+ if (f) {
1360
+ u[1] = h[1];
1361
+ }
1362
+ var d = i.getInterval.call(a);
1363
+ var x = u[0];
1364
+ var y = u[1];
1365
+ if (v && f) {
1366
+ // User set min, max, divide to get new interval
1367
+ d = (y - x) / s;
1368
+ } else if (v) {
1369
+ y = u[0] + d * s;
1370
+ // User set min, expand extent on the other side
1371
+ while (y < u[1] && isFinite(y) && isFinite(u[1])) {
1372
+ d = F(d);
1373
+ y = u[0] + d * s;
1374
+ }
1375
+ } else if (f) {
1376
+ // User set max, expand extent on the other side
1377
+ x = u[1] - d * s;
1378
+ while (x > u[0] && isFinite(x) && isFinite(u[0])) {
1379
+ d = F(d);
1380
+ x = u[1] - d * s;
1381
+ }
1382
+ } else {
1383
+ var A = a.getTicks().length - 1;
1384
+ if (A > s) {
1385
+ d = F(d);
1386
+ }
1387
+ var g = d * s;
1388
+ y = Math.ceil(u[1] / d) * d;
1389
+ x = w(y - g);
1390
+ // Not change the result that crossing zero.
1391
+ if (x < 0 && u[0] >= 0) {
1392
+ x = 0;
1393
+ y = w(g);
1394
+ } else if (y > 0 && u[1] <= 0) {
1395
+ y = 0;
1396
+ x = -w(g);
1397
+ }
1398
+ }
1399
+ // Adjust min, max based on the extent of alignTo. When min or max is set in alignTo scale
1400
+ var C = (e[0].value - n[0].value) / o;
1401
+ var m = (e[s].value - n[s].value) / o;
1402
+ // NOTE: Must in setExtent -> setInterval -> setNiceExtent order.
1403
+ i.setExtent.call(a, x + d * C, y + d * m);
1404
+ i.setInterval.call(a, d);
1405
+ if (C || m) {
1406
+ i.setNiceExtent.call(a, x + d, y - d);
1407
+ }
1408
+ }
1409
+
1410
+ var ja = /** @class */ function() {
1411
+ function Grid(a, r, t) {
1412
+ // FIXME:TS where used (different from registered type 'cartesian2d')?
1413
+ this.type = "grid";
1414
+ this._coordsMap = {};
1415
+ this._coordsList = [];
1416
+ this._axesMap = {};
1417
+ this._axesList = [];
1418
+ this.axisPointerEnabled = true;
1419
+ this.dimensions = Fa;
1420
+ this._initCartesian(a, r, t);
1421
+ this.model = a;
1422
+ }
1423
+ Grid.prototype.getRect = function() {
1424
+ return this._rect;
1425
+ };
1426
+ Grid.prototype.update = function(a, t) {
1427
+ var i = this._axesMap;
1428
+ this._updateScale(a, this.model);
1429
+ function updateAxisTicks(a) {
1430
+ var t;
1431
+ // Axis is added in order of axisIndex.
1432
+ var i = K(a);
1433
+ var e = i.length;
1434
+ if (!e) {
1435
+ return;
1436
+ }
1437
+ var n = [];
1438
+ // Process once and calculate the ticks for those don't use alignTicks.
1439
+ for (var s = e - 1; s >= 0; s--) {
1440
+ var o = +i[s];
1441
+ // Convert to number.
1442
+ var l = a[o];
1443
+ var u = l.model;
1444
+ var v = l.scale;
1445
+ if (
1446
+ // Only value and log axis without interval support alignTicks.
1447
+ H(v) && u.get("alignTicks") && u.get("interval") == null) {
1448
+ n.push(l);
1449
+ } else {
1450
+ Q(v, u);
1451
+ if (H(v)) {
1452
+ // Can only align to interval or log axis.
1453
+ t = l;
1454
+ }
1455
+ }
1456
+ }
1457
+ // All axes has set alignTicks. Pick the first one.
1458
+ // PENDING. Should we find the axis that both set interval, min, max and align to this one?
1459
+ if (n.length) {
1460
+ if (!t) {
1461
+ t = n.pop();
1462
+ Q(t.scale, t.model);
1463
+ }
1464
+ r(n, (function(a) {
1465
+ alignScaleTicks(a.scale, a.model, t.scale);
1466
+ }));
1467
+ }
1468
+ }
1469
+ updateAxisTicks(i.x);
1470
+ updateAxisTicks(i.y);
1471
+ // Key: axisDim_axisIndex, value: boolean, whether onZero target.
1472
+ var e = {};
1473
+ r(i.x, (function(a) {
1474
+ fixAxisOnZero(i, "y", a, e);
1475
+ }));
1476
+ r(i.y, (function(a) {
1477
+ fixAxisOnZero(i, "x", a, e);
1478
+ }));
1479
+ // Resize again if containLabel is enabled
1480
+ // FIXME It may cause getting wrong grid size in data processing stage
1481
+ this.resize(this.model, t);
1482
+ };
1483
+ /**
1484
+ * Resize the grid
1485
+ */ Grid.prototype.resize = function(a, t, i) {
1486
+ var e = a.getBoxLayoutParams();
1487
+ var n = !i && a.get("containLabel");
1488
+ var s = Z(e, {
1489
+ width: t.getWidth(),
1490
+ height: t.getHeight()
1491
+ });
1492
+ this._rect = s;
1493
+ var o = this._axesList;
1494
+ adjustAxes();
1495
+ // Minus label size
1496
+ if (n) {
1497
+ r(o, (function(a) {
1498
+ if (!a.model.get([ "axisLabel", "inside" ])) {
1499
+ var r = R(a);
1500
+ if (r) {
1501
+ var t = a.isHorizontal() ? "height" : "width";
1502
+ var i = a.model.get([ "axisLabel", "margin" ]);
1503
+ s[t] -= r[t] + i;
1504
+ if (a.position === "top") {
1505
+ s.y += r.height + i;
1506
+ } else if (a.position === "left") {
1507
+ s.x += r.width + i;
1508
+ }
1509
+ }
1510
+ }
1511
+ }));
1512
+ adjustAxes();
1513
+ }
1514
+ r(this._coordsList, (function(a) {
1515
+ // Calculate affine matrix to accelerate the data to point transform.
1516
+ // If all the axes scales are time or value.
1517
+ a.calcAffineTransform();
1518
+ }));
1519
+ function adjustAxes() {
1520
+ r(o, (function(a) {
1521
+ var r = a.isHorizontal();
1522
+ var t = r ? [ 0, s.width ] : [ 0, s.height ];
1523
+ var i = a.inverse ? 1 : 0;
1524
+ a.setExtent(t[i], t[1 - i]);
1525
+ updateAxisTransform(a, r ? s.x : s.y);
1526
+ }));
1527
+ }
1528
+ };
1529
+ Grid.prototype.getAxis = function(a, r) {
1530
+ var t = this._axesMap[a];
1531
+ if (t != null) {
1532
+ return t[r || 0];
1533
+ }
1534
+ };
1535
+ Grid.prototype.getAxes = function() {
1536
+ return this._axesList.slice();
1537
+ };
1538
+ Grid.prototype.getCartesian = function(a, r) {
1539
+ if (a != null && r != null) {
1540
+ var t = "x" + a + "y" + r;
1541
+ return this._coordsMap[t];
1542
+ }
1543
+ if (W(a)) {
1544
+ r = a.yAxisIndex;
1545
+ a = a.xAxisIndex;
1546
+ }
1547
+ for (var i = 0, e = this._coordsList; i < e.length; i++) {
1548
+ if (e[i].getAxis("x").index === a || e[i].getAxis("y").index === r) {
1549
+ return e[i];
1550
+ }
1551
+ }
1552
+ };
1553
+ Grid.prototype.getCartesians = function() {
1554
+ return this._coordsList.slice();
1555
+ };
1556
+ /**
1557
+ * @implements
1558
+ */ Grid.prototype.convertToPixel = function(a, r, t) {
1559
+ var i = this._findConvertTarget(r);
1560
+ return i.cartesian ? i.cartesian.dataToPoint(t) : i.axis ? i.axis.toGlobalCoord(i.axis.dataToCoord(t)) : null;
1561
+ };
1562
+ /**
1563
+ * @implements
1564
+ */ Grid.prototype.convertFromPixel = function(a, r, t) {
1565
+ var i = this._findConvertTarget(r);
1566
+ return i.cartesian ? i.cartesian.pointToData(t) : i.axis ? i.axis.coordToData(i.axis.toLocalCoord(t)) : null;
1567
+ };
1568
+ Grid.prototype._findConvertTarget = function(r) {
1569
+ var t = r.seriesModel;
1570
+ var i = r.xAxisModel || t && t.getReferringComponents("xAxis", a).models[0];
1571
+ var e = r.yAxisModel || t && t.getReferringComponents("yAxis", a).models[0];
1572
+ var n = r.gridModel;
1573
+ var s = this._coordsList;
1574
+ var o;
1575
+ var l;
1576
+ if (t) {
1577
+ o = t.coordinateSystem;
1578
+ _(s, o) < 0 && (o = null);
1579
+ } else if (i && e) {
1580
+ o = this.getCartesian(i.componentIndex, e.componentIndex);
1581
+ } else if (i) {
1582
+ l = this.getAxis("x", i.componentIndex);
1583
+ } else if (e) {
1584
+ l = this.getAxis("y", e.componentIndex);
1585
+ }
1586
+ // Lowest priority.
1587
+ else if (n) {
1588
+ var u = n.coordinateSystem;
1589
+ if (u === this) {
1590
+ o = this._coordsList[0];
1591
+ }
1592
+ }
1593
+ return {
1594
+ cartesian: o,
1595
+ axis: l
1596
+ };
1597
+ };
1598
+ /**
1599
+ * @implements
1600
+ */ Grid.prototype.containPoint = function(a) {
1601
+ var r = this._coordsList[0];
1602
+ if (r) {
1603
+ return r.containPoint(a);
1604
+ }
1605
+ };
1606
+ /**
1607
+ * Initialize cartesian coordinate systems
1608
+ */ Grid.prototype._initCartesian = function(a, t, i) {
1609
+ var e = this;
1610
+ var n = this;
1611
+ var s = {
1612
+ left: false,
1613
+ right: false,
1614
+ top: false,
1615
+ bottom: false
1616
+ };
1617
+ var o = {
1618
+ x: {},
1619
+ y: {}
1620
+ };
1621
+ var l = {
1622
+ x: 0,
1623
+ y: 0
1624
+ };
1625
+ // Create axis
1626
+ t.eachComponent("xAxis", createAxisCreator("x"), this);
1627
+ t.eachComponent("yAxis", createAxisCreator("y"), this);
1628
+ if (!l.x || !l.y) {
1629
+ // Roll back when there no either x or y axis
1630
+ this._axesMap = {};
1631
+ this._axesList = [];
1632
+ return;
1633
+ }
1634
+ this._axesMap = o;
1635
+ // Create cartesian2d
1636
+ r(o.x, (function(t, i) {
1637
+ r(o.y, (function(r, n) {
1638
+ var s = "x" + i + "y" + n;
1639
+ var o = new Za(s);
1640
+ o.master = e;
1641
+ o.model = a;
1642
+ e._coordsMap[s] = o;
1643
+ e._coordsList.push(o);
1644
+ o.addAxis(t);
1645
+ o.addAxis(r);
1646
+ }));
1647
+ }));
1648
+ function createAxisCreator(r) {
1649
+ return function(t, i) {
1650
+ if (!isAxisUsedInTheGrid(t, a)) {
1651
+ return;
1652
+ }
1653
+ var e = t.get("position");
1654
+ if (r === "x") {
1655
+ // Fix position
1656
+ if (e !== "top" && e !== "bottom") {
1657
+ // Default bottom of X
1658
+ e = s.bottom ? "top" : "bottom";
1659
+ }
1660
+ } else {
1661
+ // Fix position
1662
+ if (e !== "left" && e !== "right") {
1663
+ // Default left of Y
1664
+ e = s.left ? "right" : "left";
1665
+ }
1666
+ }
1667
+ s[e] = true;
1668
+ var u = new Wa(r, j(t), [ 0, 0 ], t.get("type"), e);
1669
+ var v = u.type === "category";
1670
+ u.onBand = v && t.get("boundaryGap");
1671
+ u.inverse = t.get("inverse");
1672
+ // Inject axis into axisModel
1673
+ t.axis = u;
1674
+ // Inject axisModel into axis
1675
+ u.model = t;
1676
+ // Inject grid info axis
1677
+ u.grid = n;
1678
+ // Index of axis, can be used as key
1679
+ u.index = i;
1680
+ n._axesList.push(u);
1681
+ o[r][i] = u;
1682
+ l[r]++;
1683
+ };
1684
+ }
1685
+ };
1686
+ /**
1687
+ * Update cartesian properties from series.
1688
+ */ Grid.prototype._updateScale = function(a, t) {
1689
+ // Reset scale
1690
+ r(this._axesList, (function(a) {
1691
+ a.scale.setExtent(Infinity, -Infinity);
1692
+ if (a.type === "category") {
1693
+ var r = a.model.get("categorySortInfo");
1694
+ a.scale.setSortInfo(r);
1695
+ }
1696
+ }));
1697
+ a.eachSeries((function(a) {
1698
+ if (U(a)) {
1699
+ var r = X(a);
1700
+ var i = r.xAxisModel;
1701
+ var e = r.yAxisModel;
1702
+ if (!isAxisUsedInTheGrid(i, t) || !isAxisUsedInTheGrid(e, t)) {
1703
+ return;
1704
+ }
1705
+ var n = this.getCartesian(i.componentIndex, e.componentIndex);
1706
+ var s = a.getData();
1707
+ var o = n.getAxis("x");
1708
+ var l = n.getAxis("y");
1709
+ unionExtent(s, o);
1710
+ unionExtent(s, l);
1711
+ }
1712
+ }), this);
1713
+ function unionExtent(a, t) {
1714
+ r(Y(a, t.dim), (function(r) {
1715
+ t.scale.unionExtentFromData(a, r);
1716
+ }));
1717
+ }
1718
+ };
1719
+ /**
1720
+ * @param dim 'x' or 'y' or 'auto' or null/undefined
1721
+ */ Grid.prototype.getTooltipAxes = function(a) {
1722
+ var t = [];
1723
+ var i = [];
1724
+ r(this.getCartesians(), (function(r) {
1725
+ var e = a != null && a !== "auto" ? r.getAxis(a) : r.getBaseAxis();
1726
+ var n = r.getOtherAxis(e);
1727
+ _(t, e) < 0 && t.push(e);
1728
+ _(i, n) < 0 && i.push(n);
1729
+ }));
1730
+ return {
1731
+ baseAxes: t,
1732
+ otherAxes: i
1733
+ };
1734
+ };
1735
+ Grid.create = function(a, r) {
1736
+ var t = [];
1737
+ a.eachComponent("grid", (function(i, e) {
1738
+ var n = new Grid(i, a, r);
1739
+ n.name = "grid_" + e;
1740
+ // dataSampling requires axis extent, so resize
1741
+ // should be performed in create stage.
1742
+ n.resize(i, r, true);
1743
+ i.coordinateSystem = n;
1744
+ t.push(n);
1745
+ }));
1746
+ // Inject the coordinateSystems into seriesModel
1747
+ a.eachSeries((function(a) {
1748
+ if (!U(a)) {
1749
+ return;
1750
+ }
1751
+ var r = X(a);
1752
+ var t = r.xAxisModel;
1753
+ var i = r.yAxisModel;
1754
+ var e = t.getCoordSysModel();
1755
+ var n = e.coordinateSystem;
1756
+ a.coordinateSystem = n.getCartesian(t.componentIndex, i.componentIndex);
1757
+ }));
1758
+ return t;
1759
+ };
1760
+ // For deciding which dimensions to use when creating list data
1761
+ Grid.dimensions = Fa;
1762
+ return Grid;
1763
+ }();
1764
+
1765
+ /**
1766
+ * Check if the axis is used in the specified grid.
1767
+ */ function isAxisUsedInTheGrid(a, r) {
1768
+ return a.getCoordSysModel() === r;
1769
+ }
1770
+
1771
+ function fixAxisOnZero(a, r, t,
1772
+ // Key: see `getOnZeroRecordKey`
1773
+ i) {
1774
+ t.getAxesOnZeroOf = function() {
1775
+ // TODO: onZero of multiple axes.
1776
+ return n ? [ n ] : [];
1777
+ };
1778
+ // onZero can not be enabled in these two situations:
1779
+ // 1. When any other axis is a category axis.
1780
+ // 2. When no axis is cross 0 point.
1781
+ var e = a[r];
1782
+ var n;
1783
+ var s = t.model;
1784
+ var o = s.get([ "axisLine", "onZero" ]);
1785
+ var l = s.get([ "axisLine", "onZeroAxisIndex" ]);
1786
+ if (!o) {
1787
+ return;
1788
+ }
1789
+ // If target axis is specified.
1790
+ if (l != null) {
1791
+ if (canOnZeroToAxis(e[l])) {
1792
+ n = e[l];
1793
+ }
1794
+ } else {
1795
+ // Find the first available other axis.
1796
+ for (var u in e) {
1797
+ if (e.hasOwnProperty(u) && canOnZeroToAxis(e[u]) && !i[getOnZeroRecordKey(e[u])]) {
1798
+ n = e[u];
1799
+ break;
1800
+ }
1801
+ }
1802
+ }
1803
+ if (n) {
1804
+ i[getOnZeroRecordKey(n)] = true;
1805
+ }
1806
+ function getOnZeroRecordKey(a) {
1807
+ return a.dim + "_" + a.index;
1808
+ }
1809
+ }
1810
+
1811
+ function canOnZeroToAxis(a) {
1812
+ return a && a.type !== "category" && a.type !== "time" && $(a);
1813
+ }
1814
+
1815
+ function updateAxisTransform(a, r) {
1816
+ var t = a.getExtent();
1817
+ var i = t[0] + t[1];
1818
+ // Fast transform
1819
+ a.toGlobalCoord = a.dim === "x" ? function(a) {
1820
+ return a + r;
1821
+ } : function(a) {
1822
+ return i - a + r;
1823
+ };
1824
+ a.toLocalCoord = a.dim === "x" ? function(a) {
1825
+ return a - r;
1826
+ } : function(a) {
1827
+ return i - a + r;
1828
+ };
1829
+ }
1830
+
1831
+ const Ua = ja;
1832
+
1833
+ var Xa = y();
1834
+
1835
+ function rectCoordAxisBuildSplitArea(a, r, i, e) {
1836
+ var n = i.axis;
1837
+ if (n.scale.isBlank()) {
1838
+ return;
1839
+ }
1840
+ // TODO: TYPE
1841
+ var s = i.getModel("splitArea");
1842
+ var o = s.getModel("areaStyle");
1843
+ var l = o.get("color");
1844
+ var u = e.coordinateSystem.getRect();
1845
+ var v = n.getTicksCoords({
1846
+ tickModel: s,
1847
+ clamp: true
1848
+ });
1849
+ if (!v.length) {
1850
+ return;
1851
+ }
1852
+ // For Making appropriate splitArea animation, the color and anid
1853
+ // should be corresponding to previous one if possible.
1854
+ var f = l.length;
1855
+ var c = Xa(a).splitAreaColors;
1856
+ var h = t();
1857
+ var x = 0;
1858
+ if (c) {
1859
+ for (var y = 0; y < v.length; y++) {
1860
+ var A = c.get(v[y].tickValue);
1861
+ if (A != null) {
1862
+ x = (A + (f - 1) * y) % f;
1863
+ break;
1864
+ }
1865
+ }
1866
+ }
1867
+ var g = n.toGlobalCoord(v[0].coord);
1868
+ var C = o.getAreaStyle();
1869
+ l = d(l) ? l : [ l ];
1870
+ for (var y = 1; y < v.length; y++) {
1871
+ var m = n.toGlobalCoord(v[y].coord);
1872
+ var b = void 0;
1873
+ var p = void 0;
1874
+ var w = void 0;
1875
+ var M = void 0;
1876
+ if (n.isHorizontal()) {
1877
+ b = g;
1878
+ p = u.y;
1879
+ w = m - b;
1880
+ M = u.height;
1881
+ g = b + w;
1882
+ } else {
1883
+ b = u.x;
1884
+ p = g;
1885
+ w = u.width;
1886
+ M = m - p;
1887
+ g = p + M;
1888
+ }
1889
+ var k = v[y - 1].tickValue;
1890
+ k != null && h.set(k, x);
1891
+ r.add(new q({
1892
+ anid: k != null ? "area_" + k : null,
1893
+ shape: {
1894
+ x: b,
1895
+ y: p,
1896
+ width: w,
1897
+ height: M
1898
+ },
1899
+ style: S({
1900
+ fill: l[x]
1901
+ }, C),
1902
+ autoBatch: true,
1903
+ silent: true
1904
+ }));
1905
+ x = (x + 1) % f;
1906
+ }
1907
+ Xa(a).splitAreaColors = h;
1908
+ }
1909
+
1910
+ function rectCoordAxisHandleRemove(a) {
1911
+ Xa(a).splitAreaColors = null;
1912
+ }
1913
+
1914
+ var Ya = [ "axisLine", "axisTickLabel", "axisName" ];
1915
+
1916
+ var $a = [ "splitArea", "splitLine", "minorSplitLine" ];
1917
+
1918
+ var Ka = /** @class */ function(a) {
1919
+ M(CartesianAxisView, a);
1920
+ function CartesianAxisView() {
1921
+ var r = a !== null && a.apply(this, arguments) || this;
1922
+ r.type = CartesianAxisView.type;
1923
+ r.axisPointerClass = "CartesianAxisPointer";
1924
+ return r;
1925
+ }
1926
+ /**
1927
+ * @override
1928
+ */ CartesianAxisView.prototype.render = function(t, i, e, n) {
1929
+ this.group.removeAll();
1930
+ var s = this._axisGroup;
1931
+ this._axisGroup = new J;
1932
+ this.group.add(this._axisGroup);
1933
+ if (!t.get("show")) {
1934
+ return;
1935
+ }
1936
+ var o = t.getCoordSysModel();
1937
+ var l = aa(o, t);
1938
+ var u = new ra(t, ta({
1939
+ handleAutoShown: function(a) {
1940
+ var r = o.coordinateSystem.getCartesians();
1941
+ for (var i = 0; i < r.length; i++) {
1942
+ if (H(r[i].getOtherAxis(t.axis).scale)) {
1943
+ // Still show axis tick or axisLine if other axis is value / log
1944
+ return true;
1945
+ }
1946
+ }
1947
+ // Not show axisTick or axisLine if other axis is category / time
1948
+ return false;
1949
+ }
1950
+ }, l));
1951
+ r(Ya, u.add, u);
1952
+ this._axisGroup.add(u.getGroup());
1953
+ r($a, (function(a) {
1954
+ if (t.get([ a, "show" ])) {
1955
+ Ha[a](this, this._axisGroup, t, o);
1956
+ }
1957
+ }), this);
1958
+ // THIS is a special case for bar racing chart.
1959
+ // Update the axis label from the natural initial layout to
1960
+ // sorted layout should has no animation.
1961
+ var v = n && n.type === "changeAxisOrder" && n.isInitSort;
1962
+ if (!v) {
1963
+ ia(s, this._axisGroup, t);
1964
+ }
1965
+ a.prototype.render.call(this, t, i, e, n);
1966
+ };
1967
+ CartesianAxisView.prototype.remove = function() {
1968
+ rectCoordAxisHandleRemove(this);
1969
+ };
1970
+ CartesianAxisView.type = "cartesianAxis";
1971
+ return CartesianAxisView;
1972
+ }(ea);
1973
+
1974
+ var Ha = {
1975
+ splitLine: function(a, r, t, i) {
1976
+ var e = t.axis;
1977
+ if (e.scale.isBlank()) {
1978
+ return;
1979
+ }
1980
+ var n = t.getModel("splitLine");
1981
+ var s = n.getModel("lineStyle");
1982
+ var o = s.get("color");
1983
+ o = d(o) ? o : [ o ];
1984
+ var l = i.coordinateSystem.getRect();
1985
+ var u = e.isHorizontal();
1986
+ var v = 0;
1987
+ var f = e.getTicksCoords({
1988
+ tickModel: n
1989
+ });
1990
+ var c = [];
1991
+ var h = [];
1992
+ var x = s.getLineStyle();
1993
+ for (var y = 0; y < f.length; y++) {
1994
+ var A = e.toGlobalCoord(f[y].coord);
1995
+ if (u) {
1996
+ c[0] = A;
1997
+ c[1] = l.y;
1998
+ h[0] = A;
1999
+ h[1] = l.y + l.height;
2000
+ } else {
2001
+ c[0] = l.x;
2002
+ c[1] = A;
2003
+ h[0] = l.x + l.width;
2004
+ h[1] = A;
2005
+ }
2006
+ var g = v++ % o.length;
2007
+ var C = f[y].tickValue;
2008
+ var m = new na({
2009
+ anid: C != null ? "line_" + f[y].tickValue : null,
2010
+ autoBatch: true,
2011
+ shape: {
2012
+ x1: c[0],
2013
+ y1: c[1],
2014
+ x2: h[0],
2015
+ y2: h[1]
2016
+ },
2017
+ style: S({
2018
+ stroke: o[g]
2019
+ }, x),
2020
+ silent: true
2021
+ });
2022
+ sa(m.shape, x.lineWidth);
2023
+ r.add(m);
2024
+ }
2025
+ },
2026
+ minorSplitLine: function(a, r, t, i) {
2027
+ var e = t.axis;
2028
+ var n = t.getModel("minorSplitLine");
2029
+ var s = n.getModel("lineStyle");
2030
+ var o = i.coordinateSystem.getRect();
2031
+ var l = e.isHorizontal();
2032
+ var u = e.getMinorTicksCoords();
2033
+ if (!u.length) {
2034
+ return;
2035
+ }
2036
+ var v = [];
2037
+ var f = [];
2038
+ var c = s.getLineStyle();
2039
+ for (var h = 0; h < u.length; h++) {
2040
+ for (var d = 0; d < u[h].length; d++) {
2041
+ var x = e.toGlobalCoord(u[h][d].coord);
2042
+ if (l) {
2043
+ v[0] = x;
2044
+ v[1] = o.y;
2045
+ f[0] = x;
2046
+ f[1] = o.y + o.height;
2047
+ } else {
2048
+ v[0] = o.x;
2049
+ v[1] = x;
2050
+ f[0] = o.x + o.width;
2051
+ f[1] = x;
2052
+ }
2053
+ var y = new na({
2054
+ anid: "minor_line_" + u[h][d].tickValue,
2055
+ autoBatch: true,
2056
+ shape: {
2057
+ x1: v[0],
2058
+ y1: v[1],
2059
+ x2: f[0],
2060
+ y2: f[1]
2061
+ },
2062
+ style: c,
2063
+ silent: true
2064
+ });
2065
+ sa(y.shape, c.lineWidth);
2066
+ r.add(y);
2067
+ }
2068
+ }
2069
+ },
2070
+ splitArea: function(a, r, t, i) {
2071
+ rectCoordAxisBuildSplitArea(a, r, t, i);
2072
+ }
2073
+ };
2074
+
2075
+ var Qa = /** @class */ function(a) {
2076
+ M(CartesianXAxisView, a);
2077
+ function CartesianXAxisView() {
2078
+ var r = a !== null && a.apply(this, arguments) || this;
2079
+ r.type = CartesianXAxisView.type;
2080
+ return r;
2081
+ }
2082
+ CartesianXAxisView.type = "xAxis";
2083
+ return CartesianXAxisView;
2084
+ }(Ka);
2085
+
2086
+ var qa = /** @class */ function(a) {
2087
+ M(CartesianYAxisView, a);
2088
+ function CartesianYAxisView() {
2089
+ var r = a !== null && a.apply(this, arguments) || this;
2090
+ r.type = Qa.type;
2091
+ return r;
2092
+ }
2093
+ CartesianYAxisView.type = "yAxis";
2094
+ return CartesianYAxisView;
2095
+ }(Ka);
2096
+
2097
+ // Grid view
2098
+ var Ja = /** @class */ function(a) {
2099
+ M(GridView, a);
2100
+ function GridView() {
2101
+ var r = a !== null && a.apply(this, arguments) || this;
2102
+ r.type = "grid";
2103
+ return r;
2104
+ }
2105
+ GridView.prototype.render = function(a, r) {
2106
+ this.group.removeAll();
2107
+ if (a.get("show")) {
2108
+ this.group.add(new q({
2109
+ shape: a.coordinateSystem.getRect(),
2110
+ style: S({
2111
+ fill: a.get("backgroundColor")
2112
+ }, a.getItemStyle()),
2113
+ silent: true,
2114
+ z2: -1
2115
+ }));
2116
+ }
2117
+ };
2118
+ GridView.type = "grid";
2119
+ return GridView;
2120
+ }(oa);
2121
+
2122
+ var ar = {
2123
+ // gridIndex: 0,
2124
+ // gridId: '',
2125
+ offset: 0
2126
+ };
2127
+
2128
+ function install$2(a) {
2129
+ a.registerComponentView(Ja);
2130
+ a.registerComponentModel(Ta);
2131
+ a.registerCoordinateSystem("cartesian2d", Ua);
2132
+ axisModelCreator(a, "x", Sa, ar);
2133
+ axisModelCreator(a, "y", Sa, ar);
2134
+ a.registerComponentView(Qa);
2135
+ a.registerComponentView(qa);
2136
+ a.registerPreprocessor((function(a) {
2137
+ // Only create grid when need
2138
+ if (a.xAxis && a.yAxis && !a.grid) {
2139
+ a.grid = {};
2140
+ }
2141
+ }));
2142
+ }
2143
+
2144
+ function install$1(a) {
2145
+ la(install$2);
2146
+ la(ua);
2147
+ }
2148
+
2149
+ var rr = /** @class */ function(a) {
2150
+ M(TitleModel, a);
2151
+ function TitleModel() {
2152
+ var r = a !== null && a.apply(this, arguments) || this;
2153
+ r.type = TitleModel.type;
2154
+ r.layoutMode = {
2155
+ type: "box",
2156
+ ignoreSize: true
2157
+ };
2158
+ return r;
2159
+ }
2160
+ TitleModel.type = "title";
2161
+ TitleModel.defaultOption = {
2162
+ // zlevel: 0,
2163
+ z: 6,
2164
+ show: true,
2165
+ text: "",
2166
+ target: "blank",
2167
+ subtext: "",
2168
+ subtarget: "blank",
2169
+ left: 0,
2170
+ top: 0,
2171
+ backgroundColor: "rgba(0,0,0,0)",
2172
+ borderColor: "#ccc",
2173
+ borderWidth: 0,
2174
+ padding: 5,
2175
+ itemGap: 10,
2176
+ textStyle: {
2177
+ fontSize: 18,
2178
+ fontWeight: "bold",
2179
+ color: "#464646"
2180
+ },
2181
+ subtextStyle: {
2182
+ fontSize: 12,
2183
+ color: "#6E7079"
2184
+ }
2185
+ };
2186
+ return TitleModel;
2187
+ }(k);
2188
+
2189
+ // View
2190
+ var tr = /** @class */ function(a) {
2191
+ M(TitleView, a);
2192
+ function TitleView() {
2193
+ var r = a !== null && a.apply(this, arguments) || this;
2194
+ r.type = TitleView.type;
2195
+ return r;
2196
+ }
2197
+ TitleView.prototype.render = function(a, r, t) {
2198
+ this.group.removeAll();
2199
+ if (!a.get("show")) {
2200
+ return;
2201
+ }
2202
+ var i = this.group;
2203
+ var e = a.getModel("textStyle");
2204
+ var n = a.getModel("subtextStyle");
2205
+ var s = a.get("textAlign");
2206
+ var o = va(a.get("textBaseline"), a.get("textVerticalAlign"));
2207
+ var l = new fa({
2208
+ style: ca(e, {
2209
+ text: a.get("text"),
2210
+ fill: e.getTextColor()
2211
+ }, {
2212
+ disableBox: true
2213
+ }),
2214
+ z2: 10
2215
+ });
2216
+ var u = l.getBoundingRect();
2217
+ var v = a.get("subtext");
2218
+ var f = new fa({
2219
+ style: ca(n, {
2220
+ text: v,
2221
+ fill: n.getTextColor(),
2222
+ y: u.height + a.get("itemGap"),
2223
+ verticalAlign: "top"
2224
+ }, {
2225
+ disableBox: true
2226
+ }),
2227
+ z2: 10
2228
+ });
2229
+ var c = a.get("link");
2230
+ var h = a.get("sublink");
2231
+ var d = a.get("triggerEvent", true);
2232
+ l.silent = !c && !d;
2233
+ f.silent = !h && !d;
2234
+ if (c) {
2235
+ l.on("click", (function() {
2236
+ ha(c, "_" + a.get("target"));
2237
+ }));
2238
+ }
2239
+ if (h) {
2240
+ f.on("click", (function() {
2241
+ ha(h, "_" + a.get("subtarget"));
2242
+ }));
2243
+ }
2244
+ da(l).eventData = da(f).eventData = d ? {
2245
+ componentType: "title",
2246
+ componentIndex: a.componentIndex
2247
+ } : null;
2248
+ i.add(l);
2249
+ v && i.add(f);
2250
+ // If no subText, but add subTextEl, there will be an empty line.
2251
+ var x = i.getBoundingRect();
2252
+ var y = a.getBoxLayoutParams();
2253
+ y.width = x.width;
2254
+ y.height = x.height;
2255
+ var A = Z(y, {
2256
+ width: t.getWidth(),
2257
+ height: t.getHeight()
2258
+ }, a.get("padding"));
2259
+ // Adjust text align based on position
2260
+ if (!s) {
2261
+ // Align left if title is on the left. center and right is same
2262
+ s = a.get("left") || a.get("right");
2263
+ // @ts-ignore
2264
+ if (s === "middle") {
2265
+ s = "center";
2266
+ }
2267
+ // Adjust layout by text align
2268
+ if (s === "right") {
2269
+ A.x += A.width;
2270
+ } else if (s === "center") {
2271
+ A.x += A.width / 2;
2272
+ }
2273
+ }
2274
+ if (!o) {
2275
+ o = a.get("top") || a.get("bottom");
2276
+ // @ts-ignore
2277
+ if (o === "center") {
2278
+ o = "middle";
2279
+ }
2280
+ if (o === "bottom") {
2281
+ A.y += A.height;
2282
+ } else if (o === "middle") {
2283
+ A.y += A.height / 2;
2284
+ }
2285
+ o = o || "top";
2286
+ }
2287
+ i.x = A.x;
2288
+ i.y = A.y;
2289
+ i.markRedraw();
2290
+ var g = {
2291
+ align: s,
2292
+ verticalAlign: o
2293
+ };
2294
+ l.setStyle(g);
2295
+ f.setStyle(g);
2296
+ // Render background
2297
+ // Get groupRect again because textAlign has been changed
2298
+ x = i.getBoundingRect();
2299
+ var C = A.margin;
2300
+ var m = a.getItemStyle([ "color", "opacity" ]);
2301
+ m.fill = a.get("backgroundColor");
2302
+ var b = new q({
2303
+ shape: {
2304
+ x: x.x - C[3],
2305
+ y: x.y - C[0],
2306
+ width: x.width + C[1] + C[3],
2307
+ height: x.height + C[0] + C[2],
2308
+ r: a.get("borderRadius")
2309
+ },
2310
+ style: m,
2311
+ subPixelOptimize: true,
2312
+ silent: true
2313
+ });
2314
+ i.add(b);
2315
+ };
2316
+ TitleView.type = "title";
2317
+ return TitleView;
2318
+ }(oa);
2319
+
2320
+ function install(a) {
2321
+ a.registerComponentModel(rr);
2322
+ a.registerComponentView(tr);
2323
+ }
2324
+
2325
+ /**
2326
+ * @return label string. Not null/undefined
2327
+ */ function getDefaultLabel(a, r) {
2328
+ var t = a.mapDimensionsAll("defaultedLabel");
2329
+ var i = t.length;
2330
+ // Simple optimization (in lots of cases, label dims length is 1)
2331
+ if (i === 1) {
2332
+ var e = xa(a, r, t[0]);
2333
+ return e != null ? e + "" : null;
2334
+ } else if (i) {
2335
+ var n = [];
2336
+ for (var s = 0; s < t.length; s++) {
2337
+ n.push(xa(a, r, t[s]));
2338
+ }
2339
+ return n.join(" ");
2340
+ }
2341
+ }
2342
+
2343
+ function getDefaultInterpolatedLabel(a, r) {
2344
+ var t = a.mapDimensionsAll("defaultedLabel");
2345
+ if (!d(r)) {
2346
+ return r + "";
2347
+ }
2348
+ var i = [];
2349
+ for (var e = 0; e < t.length; e++) {
2350
+ var n = a.getDimensionIndex(t[e]);
2351
+ if (n >= 0) {
2352
+ i.push(r[n]);
2353
+ }
2354
+ }
2355
+ return i.join(" ");
2356
+ }
2357
+
2358
+ /*
2359
+ * Licensed to the Apache Software Foundation (ASF) under one
2360
+ * or more contributor license agreements. See the NOTICE file
2361
+ * distributed with this work for additional information
2362
+ * regarding copyright ownership. The ASF licenses this file
2363
+ * to you under the Apache License, Version 2.0 (the
2364
+ * "License"); you may not use this file except in compliance
2365
+ * with the License. You may obtain a copy of the License at
2366
+ *
2367
+ * http://www.apache.org/licenses/LICENSE-2.0
2368
+ *
2369
+ * Unless required by applicable law or agreed to in writing,
2370
+ * software distributed under the License is distributed on an
2371
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
2372
+ * KIND, either express or implied. See the License for the
2373
+ * specific language governing permissions and limitations
2374
+ * under the License.
2375
+ */
2376
+ /**
2377
+ * AUTO-GENERATED FILE. DO NOT MODIFY.
2378
+ */
2379
+ /*
2380
+ * Licensed to the Apache Software Foundation (ASF) under one
2381
+ * or more contributor license agreements. See the NOTICE file
2382
+ * distributed with this work for additional information
2383
+ * regarding copyright ownership. The ASF licenses this file
2384
+ * to you under the Apache License, Version 2.0 (the
2385
+ * "License"); you may not use this file except in compliance
2386
+ * with the License. You may obtain a copy of the License at
2387
+ *
2388
+ * http://www.apache.org/licenses/LICENSE-2.0
2389
+ *
2390
+ * Unless required by applicable law or agreed to in writing,
2391
+ * software distributed under the License is distributed on an
2392
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
2393
+ * KIND, either express or implied. See the License for the
2394
+ * specific language governing permissions and limitations
2395
+ * under the License.
2396
+ */ function isCoordinateSystemType(a, r) {
2397
+ return a.type === r;
2398
+ }
2399
+
2400
+ function createGridClipPath(a, r, t, i, n) {
2401
+ var s = a.getArea();
2402
+ var o = s.x;
2403
+ var l = s.y;
2404
+ var u = s.width;
2405
+ var v = s.height;
2406
+ var f = t.get([ "lineStyle", "width" ]) || 2;
2407
+ // Expand the clip path a bit to avoid the border is clipped and looks thinner
2408
+ o -= f / 2;
2409
+ l -= f / 2;
2410
+ u += f;
2411
+ v += f;
2412
+ // fix: https://github.com/apache/incubator-echarts/issues/11369
2413
+ u = Math.ceil(u);
2414
+ if (o !== Math.floor(o)) {
2415
+ o = Math.floor(o);
2416
+ // if no extra 1px on `width`, it will still be clipped since `x` is floored
2417
+ u++;
2418
+ }
2419
+ var c = new q({
2420
+ shape: {
2421
+ x: o,
2422
+ y: l,
2423
+ width: u,
2424
+ height: v
2425
+ }
2426
+ });
2427
+ if (r) {
2428
+ var h = a.getBaseAxis();
2429
+ var d = h.isHorizontal();
2430
+ var x = h.inverse;
2431
+ if (d) {
2432
+ if (x) {
2433
+ c.shape.x += u;
2434
+ }
2435
+ c.shape.width = 0;
2436
+ } else {
2437
+ if (!x) {
2438
+ c.shape.y += v;
2439
+ }
2440
+ c.shape.height = 0;
2441
+ }
2442
+ var y = e(n) ? function(a) {
2443
+ n(a, c);
2444
+ } : null;
2445
+ ya(c, {
2446
+ shape: {
2447
+ width: u,
2448
+ height: v,
2449
+ x: o,
2450
+ y: l
2451
+ }
2452
+ }, t, null, i, y);
2453
+ }
2454
+ return c;
2455
+ }
2456
+
2457
+ function createPolarClipPath(a, r, t) {
2458
+ var i = a.getArea();
2459
+ // Avoid float number rounding error for symbol on the edge of axis extent.
2460
+ var e = w(i.r0, 1);
2461
+ var n = w(i.r, 1);
2462
+ var s = new Aa({
2463
+ shape: {
2464
+ cx: w(a.cx, 1),
2465
+ cy: w(a.cy, 1),
2466
+ r0: e,
2467
+ r: n,
2468
+ startAngle: i.startAngle,
2469
+ endAngle: i.endAngle,
2470
+ clockwise: i.clockwise
2471
+ }
2472
+ });
2473
+ if (r) {
2474
+ var o = a.getBaseAxis().dim === "angle";
2475
+ if (o) {
2476
+ s.shape.endAngle = i.startAngle;
2477
+ } else {
2478
+ s.shape.r = e;
2479
+ }
2480
+ ya(s, {
2481
+ shape: {
2482
+ endAngle: i.endAngle,
2483
+ r: n
2484
+ }
2485
+ }, t);
2486
+ }
2487
+ return s;
2488
+ }
2489
+
2490
+ function createClipPath(a, r, t, i, e) {
2491
+ if (!a) {
2492
+ return null;
2493
+ } else if (a.type === "polar") {
2494
+ return createPolarClipPath(a, r, t);
2495
+ } else if (a.type === "cartesian2d") {
2496
+ return createGridClipPath(a, r, t, i, e);
2497
+ }
2498
+ return null;
2499
+ }
2500
+
2501
+ var ir = {
2502
+ average: function(a) {
2503
+ var r = 0;
2504
+ var t = 0;
2505
+ for (var i = 0; i < a.length; i++) {
2506
+ if (!isNaN(a[i])) {
2507
+ r += a[i];
2508
+ t++;
2509
+ }
2510
+ }
2511
+ // Return NaN if count is 0
2512
+ return t === 0 ? NaN : r / t;
2513
+ },
2514
+ sum: function(a) {
2515
+ var r = 0;
2516
+ for (var t = 0; t < a.length; t++) {
2517
+ // Ignore NaN
2518
+ r += a[t] || 0;
2519
+ }
2520
+ return r;
2521
+ },
2522
+ max: function(a) {
2523
+ var r = -Infinity;
2524
+ for (var t = 0; t < a.length; t++) {
2525
+ a[t] > r && (r = a[t]);
2526
+ }
2527
+ // NaN will cause illegal axis extent.
2528
+ return isFinite(r) ? r : NaN;
2529
+ },
2530
+ min: function(a) {
2531
+ var r = Infinity;
2532
+ for (var t = 0; t < a.length; t++) {
2533
+ a[t] < r && (r = a[t]);
2534
+ }
2535
+ // NaN will cause illegal axis extent.
2536
+ return isFinite(r) ? r : NaN;
2537
+ },
2538
+ minmax: function(a) {
2539
+ var r = -Infinity;
2540
+ var t = -Infinity;
2541
+ for (var i = 0; i < a.length; i++) {
2542
+ var e = a[i];
2543
+ var n = Math.abs(e);
2544
+ if (n > r) {
2545
+ r = n;
2546
+ t = e;
2547
+ }
2548
+ }
2549
+ return isFinite(t) ? t : NaN;
2550
+ },
2551
+ // TODO
2552
+ // Median
2553
+ nearest: function(a) {
2554
+ return a[0];
2555
+ }
2556
+ };
2557
+
2558
+ var indexSampler = function(a) {
2559
+ return Math.round(a.length / 2);
2560
+ };
2561
+
2562
+ function dataSample(a) {
2563
+ return {
2564
+ seriesType: a,
2565
+ // FIXME:TS never used, so comment it
2566
+ // modifyOutputEnd: true,
2567
+ reset: function(a, r, t) {
2568
+ var i = a.getData();
2569
+ var n = a.get("sampling");
2570
+ var s = a.coordinateSystem;
2571
+ var o = i.count();
2572
+ // Only cartesian2d support down sampling. Disable it when there is few data.
2573
+ if (o > 10 && s.type === "cartesian2d" && n) {
2574
+ var l = s.getBaseAxis();
2575
+ var u = s.getOtherAxis(l);
2576
+ var v = l.getExtent();
2577
+ var f = t.getDevicePixelRatio();
2578
+ // Coordinste system has been resized
2579
+ var c = Math.abs(v[1] - v[0]) * (f || 1);
2580
+ var h = Math.round(o / c);
2581
+ if (isFinite(h) && h > 1) {
2582
+ if (n === "lttb") {
2583
+ a.setData(i.lttbDownSample(i.mapDimension(u.dim), 1 / h));
2584
+ }
2585
+ var d = void 0;
2586
+ if (ga(n)) {
2587
+ d = ir[n];
2588
+ } else if (e(n)) {
2589
+ d = n;
2590
+ }
2591
+ if (d) {
2592
+ // Only support sample the first dim mapped from value axis.
2593
+ a.setData(i.downSample(i.mapDimension(u.dim), 1 / h, d, indexSampler));
2594
+ }
2595
+ }
2596
+ }
2597
+ }
2598
+ };
2599
+ }
2600
+
2601
+ export { getDefaultInterpolatedLabel as a, createGridClipPath as b, createSeriesData as c, createPolarClipPath as d, dataSample as e, install$1 as f, getDefaultLabel as g, install as h, isCoordinateSystemType as i, createClipPath as j };
2602
+ //# sourceMappingURL=dataSample-7b62e101.js.map