@progress/kendo-charts 2.7.2-dev.202502101310 → 2.7.2-develop.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 (363) hide show
  1. package/dist/cdn/js/kendo-charts.js +1 -1
  2. package/dist/cdn/main.js +1 -1
  3. package/dist/es/barcode/barcode-validator.js +10 -12
  4. package/dist/es/barcode/barcode.js +84 -96
  5. package/dist/es/barcode/encodings/code11.js +41 -57
  6. package/dist/es/barcode/encodings/code128.js +222 -354
  7. package/dist/es/barcode/encodings/code39-extended.js +20 -34
  8. package/dist/es/barcode/encodings/code39.js +49 -75
  9. package/dist/es/barcode/encodings/code93-extended.js +12 -24
  10. package/dist/es/barcode/encodings/code93.js +52 -70
  11. package/dist/es/barcode/encodings/ean13.js +28 -42
  12. package/dist/es/barcode/encodings/ean8.js +8 -18
  13. package/dist/es/barcode/encodings/encoding.js +18 -24
  14. package/dist/es/barcode/encodings/main.js +13 -10
  15. package/dist/es/barcode/encodings/msi.js +56 -112
  16. package/dist/es/barcode/encodings/postnet.js +31 -45
  17. package/dist/es/barcode/surface-size.js +2 -2
  18. package/dist/es/chart/aggregates/aggregates.js +23 -23
  19. package/dist/es/chart/aggregates/default-aggregates.js +10 -18
  20. package/dist/es/chart/aggregates/series-aggregator.js +42 -54
  21. package/dist/es/chart/animations/bar-chart-animation.js +15 -26
  22. package/dist/es/chart/animations/bubble-animation.js +7 -17
  23. package/dist/es/chart/animations/clip-animation.js +13 -23
  24. package/dist/es/chart/animations/fade-in-animation.js +6 -16
  25. package/dist/es/chart/animations/pie-animation.js +6 -16
  26. package/dist/es/chart/api-elements/chart-axis.js +14 -22
  27. package/dist/es/chart/api-elements/chart-pane.js +10 -8
  28. package/dist/es/chart/api-elements/chart-plotarea.js +4 -10
  29. package/dist/es/chart/api-elements/find-axis-by-name.js +1 -1
  30. package/dist/es/chart/area-chart/area-chart.js +46 -60
  31. package/dist/es/chart/area-chart/area-segment.js +46 -52
  32. package/dist/es/chart/area-chart/spline-area-segment.js +12 -21
  33. package/dist/es/chart/area-chart/step-area-segment.js +6 -15
  34. package/dist/es/chart/axis-group-range-tracker.js +14 -20
  35. package/dist/es/chart/bar-chart/bar-chart.js +65 -80
  36. package/dist/es/chart/bar-chart/bar-label.js +25 -32
  37. package/dist/es/chart/bar-chart/bar.js +76 -91
  38. package/dist/es/chart/box-plot-chart/box-plot-chart.js +33 -48
  39. package/dist/es/chart/box-plot-chart/box-plot.js +55 -68
  40. package/dist/es/chart/box-plot-chart/vertical-box-plot.js +13 -23
  41. package/dist/es/chart/bubble-chart/bubble-chart.js +51 -64
  42. package/dist/es/chart/bubble-chart/bubble.js +21 -27
  43. package/dist/es/chart/bullet-chart/bullet-chart.js +45 -57
  44. package/dist/es/chart/bullet-chart/bullet.js +48 -57
  45. package/dist/es/chart/bullet-chart/target.js +1 -11
  46. package/dist/es/chart/candlestick-chart/candlestick-chart.js +41 -55
  47. package/dist/es/chart/candlestick-chart/candlestick.js +60 -69
  48. package/dist/es/chart/categorical-chart.js +178 -206
  49. package/dist/es/chart/chart-container.js +30 -39
  50. package/dist/es/chart/chart.js +641 -701
  51. package/dist/es/chart/constants.js +103 -103
  52. package/dist/es/chart/crosshair/crosshair-tooltip.js +22 -34
  53. package/dist/es/chart/crosshair/crosshair.js +39 -47
  54. package/dist/es/chart/donut-chart/donut-chart.js +36 -48
  55. package/dist/es/chart/donut-chart/donut-segment.js +12 -24
  56. package/dist/es/chart/error-bars/categorical-error-bar.js +5 -15
  57. package/dist/es/chart/error-bars/error-bar-base.js +37 -49
  58. package/dist/es/chart/error-bars/error-range-calculator.js +46 -56
  59. package/dist/es/chart/error-bars/scatter-error-bar.js +6 -16
  60. package/dist/es/chart/funnel-chart/funnel-chart.js +86 -103
  61. package/dist/es/chart/funnel-chart/funnel-segment.js +46 -54
  62. package/dist/es/chart/funnel-chart/pyramid-chart.js +5 -11
  63. package/dist/es/chart/heatmap-chart/color-scale.js +7 -9
  64. package/dist/es/chart/heatmap-chart/heatmap-chart.js +87 -110
  65. package/dist/es/chart/heatmap-chart/heatmap-point.js +72 -78
  66. package/dist/es/chart/highlight.js +26 -36
  67. package/dist/es/chart/layout/cluster-layout.js +16 -25
  68. package/dist/es/chart/layout/radar-cluster-layout.js +15 -24
  69. package/dist/es/chart/layout/radar-stack-layout.js +10 -22
  70. package/dist/es/chart/layout/stack-wrap.js +12 -24
  71. package/dist/es/chart/layout/utils.js +2 -2
  72. package/dist/es/chart/legend/legend-item-line-area.js +8 -19
  73. package/dist/es/chart/legend/legend-item-line.js +21 -31
  74. package/dist/es/chart/legend/legend-item-marker.js +18 -28
  75. package/dist/es/chart/legend/legend-item-square.js +8 -18
  76. package/dist/es/chart/legend/legend-item.js +91 -105
  77. package/dist/es/chart/legend/legend-layout.js +18 -25
  78. package/dist/es/chart/legend/legend.js +68 -92
  79. package/dist/es/chart/line-chart/line-chart.js +35 -48
  80. package/dist/es/chart/line-chart/line-point.js +90 -103
  81. package/dist/es/chart/line-chart/line-segment.js +23 -34
  82. package/dist/es/chart/line-chart/spline-segment.js +10 -20
  83. package/dist/es/chart/line-chart/step-line-mixin.js +14 -17
  84. package/dist/es/chart/line-chart/step-line-segment.js +4 -14
  85. package/dist/es/chart/mixins/accessibility-attributes-mixin.js +7 -7
  86. package/dist/es/chart/mixins/clip-animation-mixin.js +7 -7
  87. package/dist/es/chart/mixins/line-chart-mixin.js +27 -31
  88. package/dist/es/chart/mixins/note-mixin.js +3 -3
  89. package/dist/es/chart/mixins/pie-chart-mixin.js +9 -9
  90. package/dist/es/chart/mixins/plotarea-events-mixin.js +1 -1
  91. package/dist/es/chart/mixins/point-events-mixin.js +1 -1
  92. package/dist/es/chart/ohlc-chart/ohlc-chart.js +4 -14
  93. package/dist/es/chart/ohlc-chart/ohlc-point.js +15 -28
  94. package/dist/es/chart/pan-and-zoom/accept-key.js +3 -3
  95. package/dist/es/chart/pan-and-zoom/mousewheel-zoom.js +25 -33
  96. package/dist/es/chart/pan-and-zoom/pannable.js +29 -37
  97. package/dist/es/chart/pan-and-zoom/to-chart-axis-ranges.js +3 -3
  98. package/dist/es/chart/pan-and-zoom/zoom-selection.js +61 -70
  99. package/dist/es/chart/pane.js +71 -79
  100. package/dist/es/chart/pie-chart/pie-chart.js +153 -183
  101. package/dist/es/chart/pie-chart/pie-segment.js +82 -98
  102. package/dist/es/chart/plotarea/categorical-plotarea.js +285 -318
  103. package/dist/es/chart/plotarea/donut-plotarea.js +12 -22
  104. package/dist/es/chart/plotarea/funnel-plotarea.js +17 -27
  105. package/dist/es/chart/plotarea/heatmap-plotarea.js +139 -167
  106. package/dist/es/chart/plotarea/pie-plotarea.js +15 -25
  107. package/dist/es/chart/plotarea/plotarea-base.js +423 -462
  108. package/dist/es/chart/plotarea/plotarea-factory.js +15 -20
  109. package/dist/es/chart/plotarea/polar-plotarea-base.js +37 -51
  110. package/dist/es/chart/plotarea/polar-plotarea.js +39 -49
  111. package/dist/es/chart/plotarea/radar-plotarea.js +55 -65
  112. package/dist/es/chart/plotarea/xy-plotarea.js +111 -128
  113. package/dist/es/chart/polar-area-chart/polar-area-chart.js +22 -36
  114. package/dist/es/chart/polar-area-chart/polar-area-segment.js +7 -17
  115. package/dist/es/chart/polar-area-chart/spline-polar-area-segment.js +15 -25
  116. package/dist/es/chart/polar-line-chart/polar-line-chart.js +2 -11
  117. package/dist/es/chart/polar-scatter-chart/polar-scatter-chart.js +6 -16
  118. package/dist/es/chart/radar-area-chart/radar-area-chart.js +11 -21
  119. package/dist/es/chart/radar-area-chart/radar-area-segment.js +3 -13
  120. package/dist/es/chart/radar-area-chart/spline-radar-area-segment.js +3 -13
  121. package/dist/es/chart/radar-bar-chart/radar-bar-chart.js +19 -29
  122. package/dist/es/chart/radar-bar-chart/radar-segment.js +6 -12
  123. package/dist/es/chart/radar-line-chart/radar-line-chart.js +26 -35
  124. package/dist/es/chart/range-area-chart/range-area-chart.js +46 -58
  125. package/dist/es/chart/range-area-chart/range-area-point.js +55 -66
  126. package/dist/es/chart/range-area-chart/range-area-segment.js +19 -28
  127. package/dist/es/chart/range-area-chart/range-line-point.js +4 -14
  128. package/dist/es/chart/range-area-chart/spline-range-area-segment.js +11 -18
  129. package/dist/es/chart/range-area-chart/step-range-area-segment.js +7 -16
  130. package/dist/es/chart/range-bar-chart/range-bar-chart.js +18 -29
  131. package/dist/es/chart/range-bar-chart/range-bar.js +10 -23
  132. package/dist/es/chart/register-charts.js +20 -16
  133. package/dist/es/chart/scatter-charts/scatter-chart.js +100 -122
  134. package/dist/es/chart/scatter-charts/scatter-line-chart.js +15 -25
  135. package/dist/es/chart/selection.js +176 -201
  136. package/dist/es/chart/series-binder.js +55 -66
  137. package/dist/es/chart/theme/base-theme.js +75 -79
  138. package/dist/es/chart/theme/load-theme.js +52 -52
  139. package/dist/es/chart/tooltip/base-tooltip.js +17 -24
  140. package/dist/es/chart/tooltip/shared-tooltip.js +25 -31
  141. package/dist/es/chart/tooltip/tooltip.js +10 -20
  142. package/dist/es/chart/trendlines/calculate-moving-average.js +11 -13
  143. package/dist/es/chart/trendlines/calculate-polynomial.js +24 -26
  144. package/dist/es/chart/trendlines/calculate-slope.js +12 -14
  145. package/dist/es/chart/trendlines/check-all-positive.js +2 -5
  146. package/dist/es/chart/trendlines/exponential-trendline.js +15 -24
  147. package/dist/es/chart/trendlines/get-scatter-trendline-data.js +6 -7
  148. package/dist/es/chart/trendlines/get-trendline-data.js +6 -6
  149. package/dist/es/chart/trendlines/linear-trendline.js +12 -21
  150. package/dist/es/chart/trendlines/logarithmic-trendline.js +14 -23
  151. package/dist/es/chart/trendlines/moving-average.js +15 -26
  152. package/dist/es/chart/trendlines/polynomial-trendline.js +13 -21
  153. package/dist/es/chart/trendlines/power-trendline.js +15 -24
  154. package/dist/es/chart/trendlines/scatter-exponential-trendline.js +15 -24
  155. package/dist/es/chart/trendlines/scatter-linear-trendline.js +10 -16
  156. package/dist/es/chart/trendlines/scatter-logarithmic-trendline.js +17 -27
  157. package/dist/es/chart/trendlines/scatter-moving-average.js +7 -10
  158. package/dist/es/chart/trendlines/scatter-polynomial-trendline.js +11 -16
  159. package/dist/es/chart/trendlines/scatter-power-trendline.js +15 -22
  160. package/dist/es/chart/trendlines/scatter-trendline-registry.js +1 -1
  161. package/dist/es/chart/trendlines/scatter-value-getter.js +2 -5
  162. package/dist/es/chart/trendlines/trendline-factory.js +1 -1
  163. package/dist/es/chart/trendlines/trendline-registry.js +1 -1
  164. package/dist/es/chart/trendlines/x-value-limits.js +6 -8
  165. package/dist/es/chart/utils/any-has-z-index.js +1 -1
  166. package/dist/es/chart/utils/bind-segments.js +8 -8
  167. package/dist/es/chart/utils/categories-count.js +3 -3
  168. package/dist/es/chart/utils/count-numbers.js +4 -4
  169. package/dist/es/chart/utils/create-out-of-range-points.js +13 -22
  170. package/dist/es/chart/utils/eval-options.js +7 -10
  171. package/dist/es/chart/utils/filter-series-by-type.js +4 -4
  172. package/dist/es/chart/utils/get-field.js +1 -1
  173. package/dist/es/chart/utils/has-gradient-overlay.js +1 -1
  174. package/dist/es/chart/utils/is-date-axis.js +2 -2
  175. package/dist/es/chart/utils/parse-date-category.js +2 -2
  176. package/dist/es/chart/utils/segment-visible.js +2 -2
  177. package/dist/es/chart/waterfall-chart/waterfall-chart.js +41 -55
  178. package/dist/es/chart/waterfall-chart/waterfall-segment.js +16 -24
  179. package/dist/es/chart-wizard/get-wizard-data-from-data-rows.js +5 -6
  180. package/dist/es/chart-wizard/messages.js +1 -1
  181. package/dist/es/chart-wizard/state.js +145 -137
  182. package/dist/es/chart-wizard.js +12 -12
  183. package/dist/es/common/add-class.js +3 -3
  184. package/dist/es/common/align-path-to-pixel.js +2 -2
  185. package/dist/es/common/auto-text-color.js +1 -1
  186. package/dist/es/common/constants.js +53 -53
  187. package/dist/es/common/create-hash-set.js +59 -65
  188. package/dist/es/common/cycleDown.js +1 -1
  189. package/dist/es/common/deep-extend.js +10 -12
  190. package/dist/es/common/element-scale.js +9 -9
  191. package/dist/es/common/element-styles.js +8 -8
  192. package/dist/es/common/event-map.js +4 -4
  193. package/dist/es/common/event-utils.js +13 -13
  194. package/dist/es/common/find.js +2 -2
  195. package/dist/es/common/font-loader.js +42 -44
  196. package/dist/es/common/get-aria-template.js +2 -4
  197. package/dist/es/common/get-spacing.js +2 -4
  198. package/dist/es/common/get-supported-features.js +7 -7
  199. package/dist/es/common/get-template.js +2 -4
  200. package/dist/es/common/getter.js +5 -5
  201. package/dist/es/common/grep.js +3 -3
  202. package/dist/es/common/has-classes.js +2 -2
  203. package/dist/es/common/hash-map.js +11 -11
  204. package/dist/es/common/instance-observer.js +28 -33
  205. package/dist/es/common/keys.js +1 -1
  206. package/dist/es/common/map.js +4 -4
  207. package/dist/es/common/matrix.js +142 -150
  208. package/dist/es/common/mousewheel-delta.js +2 -2
  209. package/dist/es/common/observable.js +40 -52
  210. package/dist/es/common/remove-class.js +1 -1
  211. package/dist/es/common/render-icon.js +50 -60
  212. package/dist/es/common/set-default-options.js +1 -1
  213. package/dist/es/common/sparse-array-limits.js +4 -4
  214. package/dist/es/common/user-events.js +124 -150
  215. package/dist/es/core/axis-label.js +38 -43
  216. package/dist/es/core/axis.js +293 -345
  217. package/dist/es/core/box-element.js +36 -46
  218. package/dist/es/core/box.js +75 -83
  219. package/dist/es/core/category-axis.js +265 -314
  220. package/dist/es/core/chart-element.js +98 -109
  221. package/dist/es/core/constants.js +3 -3
  222. package/dist/es/core/curve-processor.js +86 -93
  223. package/dist/es/core/date-category-axis.js +381 -413
  224. package/dist/es/core/date-value-axis.js +108 -118
  225. package/dist/es/core/float-element.js +54 -78
  226. package/dist/es/core/gradients.js +3 -3
  227. package/dist/es/core/logarithmic-axis.js +134 -186
  228. package/dist/es/core/mixins/grid-lines-mixin.js +18 -20
  229. package/dist/es/core/mixins/radar-numeric-axis-mixin.js +46 -51
  230. package/dist/es/core/note.js +58 -73
  231. package/dist/es/core/numeric-axis.js +111 -133
  232. package/dist/es/core/pattern.js +4 -8
  233. package/dist/es/core/point.js +25 -34
  234. package/dist/es/core/polar-axis.js +73 -91
  235. package/dist/es/core/radar-category-axis.js +90 -114
  236. package/dist/es/core/radar-logarithmic-axis.js +10 -20
  237. package/dist/es/core/radar-numeric-axis.js +10 -20
  238. package/dist/es/core/ring.js +61 -68
  239. package/dist/es/core/root-element.js +40 -48
  240. package/dist/es/core/sector.js +11 -17
  241. package/dist/es/core/shape-builder.js +13 -23
  242. package/dist/es/core/shape-element.js +27 -37
  243. package/dist/es/core/text-box.js +50 -59
  244. package/dist/es/core/text.js +13 -24
  245. package/dist/es/core/title.js +19 -25
  246. package/dist/es/core/utils/auto-axis-max.js +3 -3
  247. package/dist/es/core/utils/auto-axis-min.js +3 -3
  248. package/dist/es/core/utils/auto-major-unit.js +4 -4
  249. package/dist/es/core/utils/box-diff.js +9 -9
  250. package/dist/es/core/utils/create-axis-grid-line.js +2 -4
  251. package/dist/es/core/utils/create-axis-tick.js +2 -4
  252. package/dist/es/core/utils/guid.js +3 -3
  253. package/dist/es/core/utils/rect-to-box.js +2 -2
  254. package/dist/es/date-utils/absolute-date-diff.js +2 -2
  255. package/dist/es/date-utils/add-duration.js +5 -5
  256. package/dist/es/date-utils/ceil-date.js +1 -1
  257. package/dist/es/date-utils/constants.js +17 -17
  258. package/dist/es/date-utils/date-index.js +3 -3
  259. package/dist/es/date-utils/duration.js +1 -1
  260. package/dist/es/date-utils/lte-date-index.js +4 -4
  261. package/dist/es/date-utils/parse-date.js +1 -1
  262. package/dist/es/date-utils/parse-dates.js +2 -2
  263. package/dist/es/date-utils/start-of-week.js +3 -5
  264. package/dist/es/date-utils/to-date.js +1 -1
  265. package/dist/es/date-utils/to-time.js +2 -2
  266. package/dist/es/drawing-utils.js +18 -17
  267. package/dist/es/gauges/arc/arc-gauge.js +29 -38
  268. package/dist/es/gauges/arc/arc-scale.js +16 -29
  269. package/dist/es/gauges/arc/range-pointer-animation.js +16 -25
  270. package/dist/es/gauges/arc/range-pointer.js +25 -46
  271. package/dist/es/gauges/circular/circular-gauge.js +7 -17
  272. package/dist/es/gauges/constants.js +14 -14
  273. package/dist/es/gauges/gauge.js +84 -96
  274. package/dist/es/gauges/linear/arrow-linear-pointer-animation.js +13 -25
  275. package/dist/es/gauges/linear/arrow-linear-pointer.js +23 -35
  276. package/dist/es/gauges/linear/bar-linear-pointer-animation.js +15 -24
  277. package/dist/es/gauges/linear/bar-linear-pointer.js +38 -51
  278. package/dist/es/gauges/linear/linear-gauge.js +61 -83
  279. package/dist/es/gauges/linear/linear-pointer.js +25 -39
  280. package/dist/es/gauges/linear/linear-scale.js +57 -74
  281. package/dist/es/gauges/pointer.js +11 -21
  282. package/dist/es/gauges/radial/radial-gauge.js +58 -81
  283. package/dist/es/gauges/radial/radial-pointer-animation.js +9 -15
  284. package/dist/es/gauges/radial/radial-pointer.js +33 -48
  285. package/dist/es/gauges/radial/radial-scale.js +154 -186
  286. package/dist/es/gauges/utils/build-label-element.js +10 -12
  287. package/dist/es/gauges/utils/get-range.js +2 -2
  288. package/dist/es/gauges/utils/pad.js +3 -3
  289. package/dist/es/gauges/utils/unpad.js +1 -1
  290. package/dist/es/map/attribution.js +42 -52
  291. package/dist/es/map/constants.js +5 -5
  292. package/dist/es/map/crs.js +68 -112
  293. package/dist/es/map/datums.js +3 -3
  294. package/dist/es/map/extent.js +40 -54
  295. package/dist/es/map/layers/bubble.js +52 -70
  296. package/dist/es/map/layers/layer.js +50 -56
  297. package/dist/es/map/layers/marker.js +109 -129
  298. package/dist/es/map/layers/shape.js +111 -133
  299. package/dist/es/map/layers/tile.js +144 -170
  300. package/dist/es/map/location.js +70 -78
  301. package/dist/es/map/map.js +261 -291
  302. package/dist/es/map/navigator.js +33 -39
  303. package/dist/es/map/scroller/draggable.js +98 -134
  304. package/dist/es/map/scroller/fx.js +39 -46
  305. package/dist/es/map/scroller/scroller.js +144 -174
  306. package/dist/es/map/tooltip/tooltip.js +15 -25
  307. package/dist/es/map/utils.js +25 -26
  308. package/dist/es/map/zoom.js +30 -36
  309. package/dist/es/qrcode/encodings/data-modes/alpha-numeric-data-mode.js +14 -26
  310. package/dist/es/qrcode/encodings/data-modes/byte-data-mode.js +15 -25
  311. package/dist/es/qrcode/encodings/data-modes/data-mode-instances.js +8 -7
  312. package/dist/es/qrcode/encodings/data-modes/numeric-data-mode.js +14 -24
  313. package/dist/es/qrcode/encodings/data-modes/qr-data-mode.js +15 -21
  314. package/dist/es/qrcode/encodings/encoders/iso-encoder.js +6 -16
  315. package/dist/es/qrcode/encodings/encoders/utf8-encoder.js +28 -36
  316. package/dist/es/qrcode/encodings/encoding-result.js +4 -10
  317. package/dist/es/qrcode/encodings/encoding.js +68 -192
  318. package/dist/es/qrcode/encodings/free-cell-visitor.js +16 -24
  319. package/dist/es/qrcode/encodings/utils/choose-mode.js +44 -0
  320. package/dist/es/qrcode/encodings/utils/get-data-codewords-count.js +13 -0
  321. package/dist/es/qrcode/encodings/utils/get-data-string.js +13 -0
  322. package/dist/es/qrcode/encodings/utils/get-modes.js +35 -0
  323. package/dist/es/qrcode/encodings/utils/get-version.js +23 -0
  324. package/dist/es/qrcode/encodings/utils/index.js +5 -0
  325. package/dist/es/qrcode/encodings/version-codewords.js +1 -1
  326. package/dist/es/qrcode/qrcode-validator.js +3 -5
  327. package/dist/es/qrcode/qrcode.js +104 -114
  328. package/dist/es/qrcode/utils.js +4 -4
  329. package/dist/es/sankey/calculation.js +286 -307
  330. package/dist/es/sankey/element.js +15 -23
  331. package/dist/es/sankey/label.js +29 -44
  332. package/dist/es/sankey/legend.js +15 -29
  333. package/dist/es/sankey/link.js +80 -98
  334. package/dist/es/sankey/node.js +26 -37
  335. package/dist/es/sankey/sankey.js +318 -385
  336. package/dist/es/sankey/title.js +9 -20
  337. package/dist/es/sankey/utils.js +18 -23
  338. package/dist/es/services/chart-service.js +24 -28
  339. package/dist/es/services/dom-events-builder.js +15 -15
  340. package/dist/es/services/format-service.js +30 -35
  341. package/dist/es/services/intl-service.js +14 -18
  342. package/dist/es/services/map-service.js +11 -11
  343. package/dist/es/services/template-service.js +9 -9
  344. package/dist/es/sparkline/shared-tooltip.js +11 -21
  345. package/dist/es/sparkline/sparkline.js +50 -60
  346. package/dist/es/stock/constants.js +3 -3
  347. package/dist/es/stock/fade-out-animation.js +12 -21
  348. package/dist/es/stock/navigator-hint.js +37 -49
  349. package/dist/es/stock/navigator.js +130 -161
  350. package/dist/es/stock/stock-chart.js +58 -67
  351. package/dist/es2015/chart/legend/legend-item.js +1 -1
  352. package/dist/es2015/qrcode/encodings/encoders/iso-encoder.js +1 -1
  353. package/dist/es2015/qrcode/encodings/encoders/utf8-encoder.js +1 -1
  354. package/dist/es2015/qrcode/encodings/encoding.js +3 -127
  355. package/dist/es2015/qrcode/encodings/utils/choose-mode.js +44 -0
  356. package/dist/es2015/qrcode/encodings/utils/get-data-codewords-count.js +13 -0
  357. package/dist/es2015/qrcode/encodings/utils/get-data-string.js +13 -0
  358. package/dist/es2015/qrcode/encodings/utils/get-modes.js +35 -0
  359. package/dist/es2015/qrcode/encodings/utils/get-version.js +23 -0
  360. package/dist/es2015/qrcode/encodings/utils/index.js +5 -0
  361. package/dist/npm/main.js +3222 -3589
  362. package/dist/systemjs/kendo-charts.js +1 -1
  363. package/package.json +19 -57
@@ -17,71 +17,60 @@ import { SCATTER, SCATTER_LINE, BUBBLE, LOGARITHMIC } from '../constants';
17
17
  import { DATE } from '../../common/constants';
18
18
  import { deepExtend, eventElement, grep, inArray, setDefaultOptions } from '../../common';
19
19
 
20
- var XYPlotArea = (function (PlotAreaBase) {
21
- function XYPlotArea () {
22
- PlotAreaBase.apply(this, arguments);
23
- }
24
-
25
- if ( PlotAreaBase ) XYPlotArea.__proto__ = PlotAreaBase;
26
- XYPlotArea.prototype = Object.create( PlotAreaBase && PlotAreaBase.prototype );
27
- XYPlotArea.prototype.constructor = XYPlotArea;
28
-
29
- XYPlotArea.prototype.initFields = function initFields () {
20
+ class XYPlotArea extends PlotAreaBase {
21
+ initFields() {
30
22
  this.namedXAxes = {};
31
23
  this.namedYAxes = {};
32
24
 
33
25
  this.xAxisRangeTracker = new AxisGroupRangeTracker();
34
26
  this.yAxisRangeTracker = new AxisGroupRangeTracker();
35
- };
36
-
37
- XYPlotArea.prototype.render = function render (panes) {
38
- var this$1 = this;
39
- if ( panes === void 0 ) panes = this.panes;
27
+ }
40
28
 
41
- this.series = [].concat( this.originalSeries );
29
+ render(panes = this.panes) {
30
+ this.series = [...this.originalSeries];
42
31
  this.createTrendlineSeries();
43
32
 
44
- var seriesByPane = this.groupSeriesByPane();
45
- for (var i = 0; i < panes.length; i++) {
46
- var pane = panes[i];
47
- var paneSeries = seriesByPane[pane.options.name || "default"] || [];
48
- this$1.addToLegend(paneSeries);
49
- var filteredSeries = this$1.filterVisibleSeries(paneSeries);
33
+ const seriesByPane = this.groupSeriesByPane();
34
+ for (let i = 0; i < panes.length; i++) {
35
+ const pane = panes[i];
36
+ const paneSeries = seriesByPane[pane.options.name || "default"] || [];
37
+ this.addToLegend(paneSeries);
38
+ const filteredSeries = this.filterVisibleSeries(paneSeries);
50
39
 
51
40
  if (!filteredSeries) {
52
41
  continue;
53
42
  }
54
43
 
55
- this$1.createScatterChart(
44
+ this.createScatterChart(
56
45
  filterSeriesByType(filteredSeries, SCATTER),
57
46
  pane
58
47
  );
59
48
 
60
- this$1.createScatterLineChart(
49
+ this.createScatterLineChart(
61
50
  filterSeriesByType(filteredSeries, SCATTER_LINE),
62
51
  pane
63
52
  );
64
53
 
65
- this$1.createBubbleChart(
54
+ this.createBubbleChart(
66
55
  filterSeriesByType(filteredSeries, BUBBLE),
67
56
  pane
68
57
  );
69
58
  }
70
59
 
71
60
  this.createAxes(panes);
72
- };
61
+ }
73
62
 
74
- XYPlotArea.prototype.appendChart = function appendChart (chart, pane) {
63
+ appendChart(chart, pane) {
75
64
  this.xAxisRangeTracker.update(chart.xAxisRanges);
76
65
  this.yAxisRangeTracker.update(chart.yAxisRanges);
77
66
 
78
- PlotAreaBase.prototype.appendChart.call(this, chart, pane);
79
- };
67
+ super.appendChart(chart, pane);
68
+ }
80
69
 
81
- XYPlotArea.prototype.removeAxis = function removeAxis (axis) {
82
- var axisName = axis.options.name;
70
+ removeAxis(axis) {
71
+ const axisName = axis.options.name;
83
72
 
84
- PlotAreaBase.prototype.removeAxis.call(this, axis);
73
+ super.removeAxis(axis);
85
74
 
86
75
  if (axis.options.vertical) {
87
76
  this.yAxisRangeTracker.reset(axisName);
@@ -98,68 +87,68 @@ var XYPlotArea = (function (PlotAreaBase) {
98
87
  if (axis === this.axisY) {
99
88
  delete this.axisY;
100
89
  }
101
- };
90
+ }
102
91
 
103
92
  // TODO: Refactor, optionally use series.pane option
104
- XYPlotArea.prototype.seriesPaneName = function seriesPaneName (series) {
105
- var options = this.options;
106
- var xAxisName = series.xAxis;
107
- var xAxisOptions = [].concat(options.xAxis);
108
- var xAxis = grep(xAxisOptions, function(a) { return a.name === xAxisName; })[0];
109
- var yAxisName = series.yAxis;
110
- var yAxisOptions = [].concat(options.yAxis);
111
- var yAxis = grep(yAxisOptions, function(a) { return a.name === yAxisName; })[0];
112
- var panes = options.panes || [ {} ];
113
- var defaultPaneName = panes[0].name || "default";
114
- var paneName = (xAxis || {}).pane || (yAxis || {}).pane || defaultPaneName;
93
+ seriesPaneName(series) {
94
+ const options = this.options;
95
+ const xAxisName = series.xAxis;
96
+ const xAxisOptions = [].concat(options.xAxis);
97
+ const xAxis = grep(xAxisOptions, function(a) { return a.name === xAxisName; })[0];
98
+ const yAxisName = series.yAxis;
99
+ const yAxisOptions = [].concat(options.yAxis);
100
+ const yAxis = grep(yAxisOptions, function(a) { return a.name === yAxisName; })[0];
101
+ const panes = options.panes || [ {} ];
102
+ const defaultPaneName = panes[0].name || "default";
103
+ const paneName = (xAxis || {}).pane || (yAxis || {}).pane || defaultPaneName;
115
104
 
116
105
  return paneName;
117
- };
106
+ }
118
107
 
119
- XYPlotArea.prototype.createScatterChart = function createScatterChart (series, pane) {
108
+ createScatterChart(series, pane) {
120
109
  if (series.length > 0) {
121
110
  this.appendChart(
122
111
  new ScatterChart(this, { series: series, clip: pane.options.clip }),
123
112
  pane
124
113
  );
125
114
  }
126
- };
115
+ }
127
116
 
128
- XYPlotArea.prototype.createScatterLineChart = function createScatterLineChart (series, pane) {
117
+ createScatterLineChart(series, pane) {
129
118
  if (series.length > 0) {
130
119
  this.appendChart(
131
120
  new ScatterLineChart(this, { series: series, clip: pane.options.clip }),
132
121
  pane
133
122
  );
134
123
  }
135
- };
124
+ }
136
125
 
137
- XYPlotArea.prototype.createBubbleChart = function createBubbleChart (series, pane) {
126
+ createBubbleChart(series, pane) {
138
127
  if (series.length > 0) {
139
128
  this.appendChart(
140
129
  new BubbleChart(this, { series: series, clip: pane.options.clip }),
141
130
  pane
142
131
  );
143
132
  }
144
- };
145
-
146
- XYPlotArea.prototype.createXYAxis = function createXYAxis (options, vertical, axisIndex) {
147
- var axisName = options.name;
148
- var namedAxes = vertical ? this.namedYAxes : this.namedXAxes;
149
- var tracker = vertical ? this.yAxisRangeTracker : this.xAxisRangeTracker;
150
- var axisOptions = deepExtend({ reverse: !vertical && this.chartService.rtl }, options, { vertical: vertical });
151
- var isLog = equalsIgnoreCase(axisOptions.type, LOGARITHMIC);
152
- var defaultRange = tracker.query();
153
- var defaultAxisRange = isLog ? { min: 0.1, max: 1 } : { min: 0, max: 1 };
154
- var range = tracker.query(axisName) || defaultRange || defaultAxisRange;
155
- var typeSamples = [ axisOptions.min, axisOptions.max ];
156
- var series = this.series;
157
-
158
- for (var seriesIx = 0; seriesIx < series.length; seriesIx++) {
159
- var currentSeries = series[seriesIx];
160
- var seriesAxisName = currentSeries[vertical ? "yAxis" : "xAxis"];
133
+ }
134
+
135
+ createXYAxis(options, vertical, axisIndex) {
136
+ const axisName = options.name;
137
+ const namedAxes = vertical ? this.namedYAxes : this.namedXAxes;
138
+ const tracker = vertical ? this.yAxisRangeTracker : this.xAxisRangeTracker;
139
+ const axisOptions = deepExtend({ reverse: !vertical && this.chartService.rtl }, options, { vertical: vertical });
140
+ const isLog = equalsIgnoreCase(axisOptions.type, LOGARITHMIC);
141
+ const defaultRange = tracker.query();
142
+ const defaultAxisRange = isLog ? { min: 0.1, max: 1 } : { min: 0, max: 1 };
143
+ const range = tracker.query(axisName) || defaultRange || defaultAxisRange;
144
+ const typeSamples = [ axisOptions.min, axisOptions.max ];
145
+ const series = this.series;
146
+
147
+ for (let seriesIx = 0; seriesIx < series.length; seriesIx++) {
148
+ const currentSeries = series[seriesIx];
149
+ const seriesAxisName = currentSeries[vertical ? "yAxis" : "xAxis"];
161
150
  if ((seriesAxisName === axisOptions.name) || (axisIndex === 0 && !seriesAxisName)) {
162
- var firstPointValue = SeriesBinder.current.bindPoint(currentSeries, 0).valueFields;
151
+ const firstPointValue = SeriesBinder.current.bindPoint(currentSeries, 0).valueFields;
163
152
  typeSamples.push(firstPointValue[vertical ? "y" : "x"]);
164
153
 
165
154
  break;
@@ -171,16 +160,16 @@ var XYPlotArea = (function (PlotAreaBase) {
171
160
  range.max = Math.max(range.max, defaultRange.max);
172
161
  }
173
162
 
174
- var inferredDate;
163
+ let inferredDate;
175
164
 
176
- for (var i = 0; i < typeSamples.length; i++) {
165
+ for (let i = 0; i < typeSamples.length; i++) {
177
166
  if (typeSamples[i] instanceof Date) {
178
167
  inferredDate = true;
179
168
  break;
180
169
  }
181
170
  }
182
171
 
183
- var axisType;
172
+ let axisType;
184
173
  if (equalsIgnoreCase(axisOptions.type, DATE) || (!axisOptions.type && inferredDate)) {
185
174
  axisType = DateValueAxis;
186
175
  } else if (isLog) {
@@ -189,12 +178,12 @@ var XYPlotArea = (function (PlotAreaBase) {
189
178
  axisType = NumericAxis;
190
179
  }
191
180
 
192
- var axis = new axisType(range.min, range.max, axisOptions, this.chartService);
181
+ const axis = new axisType(range.min, range.max, axisOptions, this.chartService);
193
182
  axis.axisIndex = axisIndex;
194
183
 
195
184
  if (axisName) {
196
185
  if (namedAxes[axisName]) {
197
- throw new Error(((vertical ? "Y" : "X") + " axis with name " + axisName + " is already defined"));
186
+ throw new Error(`${ vertical ? "Y" : "X" } axis with name ${ axisName } is already defined`);
198
187
  }
199
188
  namedAxes[axisName] = axis;
200
189
  }
@@ -202,47 +191,45 @@ var XYPlotArea = (function (PlotAreaBase) {
202
191
  this.appendAxis(axis);
203
192
 
204
193
  return axis;
205
- };
206
-
207
- XYPlotArea.prototype.createAxes = function createAxes (panes) {
208
- var this$1 = this;
194
+ }
209
195
 
210
- var options = this.options;
211
- var xAxesOptions = [].concat(options.xAxis);
212
- var xAxes = [];
213
- var yAxesOptions = [].concat(options.yAxis);
214
- var yAxes = [];
196
+ createAxes(panes) {
197
+ const options = this.options;
198
+ const xAxesOptions = [].concat(options.xAxis);
199
+ const xAxes = [];
200
+ const yAxesOptions = [].concat(options.yAxis);
201
+ const yAxes = [];
215
202
 
216
- for (var idx = 0; idx < xAxesOptions.length; idx++) {
217
- var axisPane = this$1.findPane(xAxesOptions[idx].pane);
203
+ for (let idx = 0; idx < xAxesOptions.length; idx++) {
204
+ const axisPane = this.findPane(xAxesOptions[idx].pane);
218
205
  if (inArray(axisPane, panes)) {
219
- xAxes.push(this$1.createXYAxis(xAxesOptions[idx], false, idx));
206
+ xAxes.push(this.createXYAxis(xAxesOptions[idx], false, idx));
220
207
  }
221
208
  }
222
209
 
223
- for (var idx$1 = 0; idx$1 < yAxesOptions.length; idx$1++) {
224
- var axisPane$1 = this$1.findPane(yAxesOptions[idx$1].pane);
225
- if (inArray(axisPane$1, panes)) {
226
- yAxes.push(this$1.createXYAxis(yAxesOptions[idx$1], true, idx$1));
210
+ for (let idx = 0; idx < yAxesOptions.length; idx++) {
211
+ const axisPane = this.findPane(yAxesOptions[idx].pane);
212
+ if (inArray(axisPane, panes)) {
213
+ yAxes.push(this.createXYAxis(yAxesOptions[idx], true, idx));
227
214
  }
228
215
  }
229
216
 
230
217
  this.axisX = this.axisX || xAxes[0];
231
218
  this.axisY = this.axisY || yAxes[0];
232
- };
233
-
234
- XYPlotArea.prototype._dispatchEvent = function _dispatchEvent (chart, e, eventType) {
235
- var coords = chart._eventCoordinates(e);
236
- var point = new Point(coords.x, coords.y);
237
- var allAxes = this.axes;
238
- var length = allAxes.length;
239
- var xValues = [];
240
- var yValues = [];
241
-
242
- for (var i = 0; i < length; i++) {
243
- var axis = allAxes[i];
244
- var values = axis.options.vertical ? yValues : xValues;
245
- var currentValue = axis.getValue(point);
219
+ }
220
+
221
+ _dispatchEvent(chart, e, eventType) {
222
+ const coords = chart._eventCoordinates(e);
223
+ const point = new Point(coords.x, coords.y);
224
+ const allAxes = this.axes;
225
+ const length = allAxes.length;
226
+ const xValues = [];
227
+ const yValues = [];
228
+
229
+ for (let i = 0; i < length; i++) {
230
+ const axis = allAxes[i];
231
+ const values = axis.options.vertical ? yValues : xValues;
232
+ const currentValue = axis.getValue(point);
246
233
  if (currentValue !== null) {
247
234
  values.push(currentValue);
248
235
  }
@@ -256,23 +243,23 @@ var XYPlotArea = (function (PlotAreaBase) {
256
243
  y: singleItemOrArray(yValues)
257
244
  });
258
245
  }
259
- };
246
+ }
260
247
 
261
- XYPlotArea.prototype.updateAxisOptions = function updateAxisOptions$1 (axis, options) {
262
- var vertical = axis.options.vertical;
263
- var axes = this.groupAxes(this.panes);
264
- var index = (vertical ? axes.y : axes.x).indexOf(axis);
248
+ updateAxisOptions(axis, options) {
249
+ const vertical = axis.options.vertical;
250
+ const axes = this.groupAxes(this.panes);
251
+ const index = (vertical ? axes.y : axes.x).indexOf(axis);
265
252
 
266
253
  updateAxisOptions(this.options, index, vertical, options);
267
254
  updateAxisOptions(this.originalOptions, index, vertical, options);
268
- };
255
+ }
269
256
 
270
- XYPlotArea.prototype.trendlineFactory = function trendlineFactory$1 (options, series) {
271
- var seriesValues = this.seriesValues.bind(this, series.index);
257
+ trendlineFactory(options, series) {
258
+ const seriesValues = this.seriesValues.bind(this, series.index);
272
259
 
273
- var trendline = trendlineFactory(scatterTrendlineRegistry, options.type, {
274
- options: options,
275
- seriesValues: seriesValues
260
+ const trendline = trendlineFactory(scatterTrendlineRegistry, options.type, {
261
+ options,
262
+ seriesValues
276
263
  });
277
264
 
278
265
  if (trendline) {
@@ -282,27 +269,23 @@ var XYPlotArea = (function (PlotAreaBase) {
282
269
  }
283
270
 
284
271
  return trendline;
285
- };
286
-
287
- XYPlotArea.prototype.seriesValues = function seriesValues (seriesIx) {
288
- var this$1 = this;
272
+ }
289
273
 
290
- var result = [];
291
- var currentSeries = this.series[seriesIx];
274
+ seriesValues(seriesIx) {
275
+ const result = [];
276
+ const currentSeries = this.series[seriesIx];
292
277
 
293
- for (var pointIx = 0; pointIx < currentSeries.data.length; pointIx++) {
294
- var data = this$1.bindPoint(currentSeries, pointIx);
295
- result.push({ pointIx: pointIx, valueFields: data.valueFields });
278
+ for (let pointIx = 0; pointIx < currentSeries.data.length; pointIx++) {
279
+ const data = this.bindPoint(currentSeries, pointIx);
280
+ result.push({ pointIx, valueFields: data.valueFields });
296
281
  }
297
282
 
298
283
  return result;
299
- };
300
-
301
- return XYPlotArea;
302
- }(PlotAreaBase));
284
+ }
285
+ }
303
286
 
304
287
  function updateAxisOptions(targetOptions, axisIndex, vertical, options) {
305
- var axisOptions = ([].concat(vertical ? targetOptions.yAxis : targetOptions.xAxis))[axisIndex];
288
+ const axisOptions = ([].concat(vertical ? targetOptions.yAxis : targetOptions.xAxis))[axisIndex];
306
289
  deepExtend(axisOptions, options);
307
290
  }
308
291
 
@@ -6,18 +6,10 @@ import { SMOOTH, INTERPOLATE, ZERO, GAP } from '../constants';
6
6
 
7
7
  import hasValue from '../utils/has-value';
8
8
 
9
- var PolarAreaChart = (function (PolarLineChart) {
10
- function PolarAreaChart () {
11
- PolarLineChart.apply(this, arguments);
12
- }
13
-
14
- if ( PolarLineChart ) PolarAreaChart.__proto__ = PolarLineChart;
15
- PolarAreaChart.prototype = Object.create( PolarLineChart && PolarLineChart.prototype );
16
- PolarAreaChart.prototype.constructor = PolarAreaChart;
17
-
18
- PolarAreaChart.prototype.createSegment = function createSegment (linePoints, currentSeries, seriesIx) {
19
- var style = (currentSeries.line || {}).style;
20
- var segment;
9
+ class PolarAreaChart extends PolarLineChart {
10
+ createSegment(linePoints, currentSeries, seriesIx) {
11
+ const style = (currentSeries.line || {}).style;
12
+ let segment;
21
13
 
22
14
  if (style === SMOOTH) {
23
15
  segment = new SplinePolarAreaSegment(linePoints, currentSeries, seriesIx);
@@ -25,10 +17,10 @@ var PolarAreaChart = (function (PolarLineChart) {
25
17
  segment = new PolarAreaSegment(linePoints, currentSeries, seriesIx);
26
18
  }
27
19
  return segment;
28
- };
20
+ }
29
21
 
30
- PolarAreaChart.prototype.createMissingValue = function createMissingValue (value, missingValues) {
31
- var missingValue;
22
+ createMissingValue(value, missingValues) {
23
+ let missingValue;
32
24
 
33
25
  if (hasValue(value.x) && missingValues !== INTERPOLATE) {
34
26
  missingValue = {
@@ -41,35 +33,31 @@ var PolarAreaChart = (function (PolarLineChart) {
41
33
  }
42
34
 
43
35
  return missingValue;
44
- };
36
+ }
45
37
 
46
- PolarAreaChart.prototype.seriesMissingValues = function seriesMissingValues (series) {
38
+ seriesMissingValues(series) {
47
39
  return series.missingValues || ZERO;
48
- };
49
-
50
- PolarAreaChart.prototype._hasMissingValuesGap = function _hasMissingValuesGap () {
51
- var this$1 = this;
40
+ }
52
41
 
53
- var series = this.options.series;
42
+ _hasMissingValuesGap() {
43
+ const series = this.options.series;
54
44
 
55
- for (var idx = 0; idx < series.length; idx++) {
56
- if (this$1.seriesMissingValues(series[idx]) === GAP) {
45
+ for (let idx = 0; idx < series.length; idx++) {
46
+ if (this.seriesMissingValues(series[idx]) === GAP) {
57
47
  return true;
58
48
  }
59
49
  }
60
- };
61
-
62
- PolarAreaChart.prototype.sortPoints = function sortPoints (points) {
63
- var this$1 = this;
50
+ }
64
51
 
52
+ sortPoints(points) {
65
53
  points.sort(xComparer);
66
54
 
67
55
  if (this._hasMissingValuesGap()) {
68
- for (var idx = 0; idx < points.length; idx++) {
69
- var point = points[idx];
56
+ for (let idx = 0; idx < points.length; idx++) {
57
+ const point = points[idx];
70
58
  if (point) {
71
- var value = point.value;
72
- if (!hasValue(value.y) && this$1.seriesMissingValues(point.series) === GAP) {
59
+ const value = point.value;
60
+ if (!hasValue(value.y) && this.seriesMissingValues(point.series) === GAP) {
73
61
  delete points[idx];
74
62
  }
75
63
  }
@@ -77,10 +65,8 @@ var PolarAreaChart = (function (PolarLineChart) {
77
65
  }
78
66
 
79
67
  return points;
80
- };
81
-
82
- return PolarAreaChart;
83
- }(PolarLineChart));
68
+ }
69
+ }
84
70
 
85
71
  function xComparer(a, b) {
86
72
  return a.value.x - b.value.x;
@@ -1,25 +1,15 @@
1
1
  import { geometry as geom } from '@progress/kendo-drawing';
2
2
  import AreaSegment from '../area-chart/area-segment';
3
3
 
4
- var PolarAreaSegment = (function (AreaSegment) {
5
- function PolarAreaSegment () {
6
- AreaSegment.apply(this, arguments);
7
- }
8
-
9
- if ( AreaSegment ) PolarAreaSegment.__proto__ = AreaSegment;
10
- PolarAreaSegment.prototype = Object.create( AreaSegment && AreaSegment.prototype );
11
- PolarAreaSegment.prototype.constructor = PolarAreaSegment;
12
-
13
- PolarAreaSegment.prototype.fillToAxes = function fillToAxes (fillPath) {
14
- var polarAxis = this.parent.plotArea.polarAxis;
15
- var center = polarAxis.box.center();
16
- var centerSegment = new geom.Segment([ center.x, center.y ]);
4
+ class PolarAreaSegment extends AreaSegment {
5
+ fillToAxes(fillPath) {
6
+ const polarAxis = this.parent.plotArea.polarAxis;
7
+ const center = polarAxis.box.center();
8
+ const centerSegment = new geom.Segment([ center.x, center.y ]);
17
9
 
18
10
  fillPath.segments.unshift(centerSegment);
19
11
  fillPath.segments.push(centerSegment);
20
- };
21
-
22
- return PolarAreaSegment;
23
- }(AreaSegment));
12
+ }
13
+ }
24
14
 
25
15
  export default PolarAreaSegment;
@@ -1,33 +1,25 @@
1
1
  import SplineAreaSegment from '../area-chart/spline-area-segment';
2
2
  import { CurveProcessor } from '../../core';
3
3
 
4
- var SplinePolarAreaSegment = (function (SplineAreaSegment) {
5
- function SplinePolarAreaSegment () {
6
- SplineAreaSegment.apply(this, arguments);
7
- }
8
-
9
- if ( SplineAreaSegment ) SplinePolarAreaSegment.__proto__ = SplineAreaSegment;
10
- SplinePolarAreaSegment.prototype = Object.create( SplineAreaSegment && SplineAreaSegment.prototype );
11
- SplinePolarAreaSegment.prototype.constructor = SplinePolarAreaSegment;
12
-
13
- SplinePolarAreaSegment.prototype.fillToAxes = function fillToAxes (fillPath) {
14
- var center = this._polarAxisCenter();
4
+ class SplinePolarAreaSegment extends SplineAreaSegment {
5
+ fillToAxes(fillPath) {
6
+ const center = this._polarAxisCenter();
15
7
  fillPath.lineTo(center.x, center.y);
16
- };
8
+ }
17
9
 
18
- SplinePolarAreaSegment.prototype._polarAxisCenter = function _polarAxisCenter () {
19
- var polarAxis = this.parent.plotArea.polarAxis;
20
- var center = polarAxis.box.center();
10
+ _polarAxisCenter() {
11
+ const polarAxis = this.parent.plotArea.polarAxis;
12
+ const center = polarAxis.box.center();
21
13
  return center;
22
- };
14
+ }
23
15
 
24
- SplinePolarAreaSegment.prototype.strokeSegments = function strokeSegments () {
25
- var segments = this._strokeSegments;
16
+ strokeSegments() {
17
+ let segments = this._strokeSegments;
26
18
 
27
19
  if (!segments) {
28
- var center = this._polarAxisCenter();
29
- var curveProcessor = new CurveProcessor(false);
30
- var linePoints = this.points();
20
+ const center = this._polarAxisCenter();
21
+ const curveProcessor = new CurveProcessor(false);
22
+ const linePoints = this.points();
31
23
 
32
24
  linePoints.push(center);
33
25
  segments = this._strokeSegments = curveProcessor.process(linePoints);
@@ -35,9 +27,7 @@ var SplinePolarAreaSegment = (function (SplineAreaSegment) {
35
27
  }
36
28
 
37
29
  return segments;
38
- };
39
-
40
- return SplinePolarAreaSegment;
41
- }(SplineAreaSegment));
30
+ }
31
+ }
42
32
 
43
33
  export default SplinePolarAreaSegment;
@@ -3,17 +3,8 @@ import PolarScatterChart from '../polar-scatter-chart/polar-scatter-chart';
3
3
 
4
4
  import { setDefaultOptions } from '../../common';
5
5
 
6
- var PolarLineChart = (function (ScatterLineChart) {
7
- function PolarLineChart () {
8
- ScatterLineChart.apply(this, arguments);
9
- }if ( ScatterLineChart ) PolarLineChart.__proto__ = ScatterLineChart;
10
- PolarLineChart.prototype = Object.create( ScatterLineChart && ScatterLineChart.prototype );
11
- PolarLineChart.prototype.constructor = PolarLineChart;
12
-
13
-
14
-
15
- return PolarLineChart;
16
- }(ScatterLineChart));
6
+ class PolarLineChart extends ScatterLineChart {
7
+ }
17
8
 
18
9
  PolarLineChart.prototype.pointSlot = PolarScatterChart.prototype.pointSlot;
19
10
 
@@ -4,24 +4,14 @@ import { Point, Box } from '../../core';
4
4
 
5
5
  import { setDefaultOptions } from '../../common';
6
6
 
7
- var PolarScatterChart = (function (ScatterChart) {
8
- function PolarScatterChart () {
9
- ScatterChart.apply(this, arguments);
10
- }
11
-
12
- if ( ScatterChart ) PolarScatterChart.__proto__ = ScatterChart;
13
- PolarScatterChart.prototype = Object.create( ScatterChart && ScatterChart.prototype );
14
- PolarScatterChart.prototype.constructor = PolarScatterChart;
15
-
16
- PolarScatterChart.prototype.pointSlot = function pointSlot (slotX, slotY) {
17
- var valueRadius = slotX.center.y - slotY.y1;
18
- var slot = Point.onCircle(slotX.center, slotX.startAngle, valueRadius);
7
+ class PolarScatterChart extends ScatterChart {
8
+ pointSlot(slotX, slotY) {
9
+ const valueRadius = slotX.center.y - slotY.y1;
10
+ const slot = Point.onCircle(slotX.center, slotX.startAngle, valueRadius);
19
11
 
20
12
  return new Box(slot.x, slot.y, slot.x, slot.y);
21
- };
22
-
23
- return PolarScatterChart;
24
- }(ScatterChart));
13
+ }
14
+ }
25
15
 
26
16
  setDefaultOptions(PolarScatterChart, {
27
17
  clip: false