billboard.js 4.1.3 → 4.1.5

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 (234) hide show
  1. package/dist/billboard.css +1 -1
  2. package/dist/billboard.js +156 -87
  3. package/dist/billboard.min.css +1 -1
  4. package/dist/billboard.min.js +19 -19
  5. package/dist/billboard.pkgd.js +156 -87
  6. package/dist/billboard.pkgd.min.js +23 -23
  7. package/dist/billboard.react.js +1 -1
  8. package/dist/billboard.react.min.js +1 -1
  9. package/dist/billboard.worker.js +1 -1
  10. package/dist/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  11. package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
  12. package/dist/plugin/billboardjs-plugin-sparkline.js +2 -2
  13. package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
  14. package/dist/plugin/billboardjs-plugin-stanford.js +2 -2
  15. package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
  16. package/dist/plugin/billboardjs-plugin-tableview.js +2 -2
  17. package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
  18. package/dist/plugin/billboardjs-plugin-textoverlap.js +2 -2
  19. package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
  20. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.js +2 -2
  21. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +2 -2
  22. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +2 -2
  23. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +2 -2
  24. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +2 -2
  25. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +2 -2
  26. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +2 -2
  27. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +2 -2
  28. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +2 -2
  29. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +2 -2
  30. package/dist/theme/dark.css +1 -1
  31. package/dist/theme/dark.min.css +1 -1
  32. package/dist/theme/datalab.css +1 -1
  33. package/dist/theme/datalab.min.css +1 -1
  34. package/dist/theme/graph.css +1 -1
  35. package/dist/theme/graph.min.css +1 -1
  36. package/dist/theme/insight.css +1 -1
  37. package/dist/theme/insight.min.css +1 -1
  38. package/dist/theme/modern.css +1 -1
  39. package/dist/theme/modern.min.css +1 -1
  40. package/dist-esm/Chart/Chart.js +1 -1
  41. package/dist-esm/Chart/api/axis.js +1 -1
  42. package/dist-esm/Chart/api/category.js +1 -1
  43. package/dist-esm/Chart/api/chart.js +2 -2
  44. package/dist-esm/Chart/api/color.js +1 -1
  45. package/dist-esm/Chart/api/data.js +1 -1
  46. package/dist-esm/Chart/api/export.js +1 -1
  47. package/dist-esm/Chart/api/flow.js +13 -6
  48. package/dist-esm/Chart/api/focus.js +1 -1
  49. package/dist-esm/Chart/api/grid.js +1 -1
  50. package/dist-esm/Chart/api/group.js +1 -1
  51. package/dist-esm/Chart/api/legend.js +1 -1
  52. package/dist-esm/Chart/api/load.js +1 -1
  53. package/dist-esm/Chart/api/regions.js +1 -1
  54. package/dist-esm/Chart/api/selection.js +1 -1
  55. package/dist-esm/Chart/api/show.js +1 -1
  56. package/dist-esm/Chart/api/stubs.js +1 -1
  57. package/dist-esm/Chart/api/subchart.js +1 -1
  58. package/dist-esm/Chart/api/tooltip.js +1 -1
  59. package/dist-esm/Chart/api/x.js +1 -1
  60. package/dist-esm/Chart/api/zoom.js +1 -1
  61. package/dist-esm/ChartInternal/Axis/Axis.js +1 -1
  62. package/dist-esm/ChartInternal/Axis/AxisRenderer.js +18 -11
  63. package/dist-esm/ChartInternal/Axis/AxisRendererHelper.js +2 -2
  64. package/dist-esm/ChartInternal/ChartInternal.js +1 -1
  65. package/dist-esm/ChartInternal/data/convert.helper.js +1 -1
  66. package/dist-esm/ChartInternal/data/convert.js +1 -1
  67. package/dist-esm/ChartInternal/data/data.js +1 -1
  68. package/dist-esm/ChartInternal/data/load.js +1 -1
  69. package/dist-esm/ChartInternal/interactions/drag.js +1 -1
  70. package/dist-esm/ChartInternal/interactions/eventrect.js +1 -1
  71. package/dist-esm/ChartInternal/interactions/flow.js +23 -16
  72. package/dist-esm/ChartInternal/interactions/interaction.js +1 -1
  73. package/dist-esm/ChartInternal/interactions/subchart.js +1 -1
  74. package/dist-esm/ChartInternal/interactions/zoom.js +1 -1
  75. package/dist-esm/ChartInternal/internals/category.js +1 -1
  76. package/dist-esm/ChartInternal/internals/class.js +1 -1
  77. package/dist-esm/ChartInternal/internals/clip.js +1 -1
  78. package/dist-esm/ChartInternal/internals/color.js +1 -1
  79. package/dist-esm/ChartInternal/internals/domain.js +1 -1
  80. package/dist-esm/ChartInternal/internals/format.js +1 -1
  81. package/dist-esm/ChartInternal/internals/grid.js +1 -1
  82. package/dist-esm/ChartInternal/internals/legend.js +1 -1
  83. package/dist-esm/ChartInternal/internals/redraw.js +6 -6
  84. package/dist-esm/ChartInternal/internals/region.js +1 -1
  85. package/dist-esm/ChartInternal/internals/scale.js +1 -1
  86. package/dist-esm/ChartInternal/internals/selection.js +1 -1
  87. package/dist-esm/ChartInternal/internals/size.axis.js +1 -1
  88. package/dist-esm/ChartInternal/internals/size.js +1 -1
  89. package/dist-esm/ChartInternal/internals/style.js +1 -1
  90. package/dist-esm/ChartInternal/internals/subchart.util.js +1 -1
  91. package/dist-esm/ChartInternal/internals/text.arc.js +1 -1
  92. package/dist-esm/ChartInternal/internals/text.js +5 -2
  93. package/dist-esm/ChartInternal/internals/text.util.js +1 -1
  94. package/dist-esm/ChartInternal/internals/title.js +1 -1
  95. package/dist-esm/ChartInternal/internals/tooltip.js +23 -4
  96. package/dist-esm/ChartInternal/internals/transform.js +1 -1
  97. package/dist-esm/ChartInternal/internals/type.js +1 -1
  98. package/dist-esm/ChartInternal/shape/arc.js +1 -1
  99. package/dist-esm/ChartInternal/shape/area.js +1 -1
  100. package/dist-esm/ChartInternal/shape/bar.js +1 -1
  101. package/dist-esm/ChartInternal/shape/bubble.js +1 -1
  102. package/dist-esm/ChartInternal/shape/candlestick.js +1 -1
  103. package/dist-esm/ChartInternal/shape/core/barRadius.js +1 -1
  104. package/dist-esm/ChartInternal/shape/core/bubble.js +1 -1
  105. package/dist-esm/ChartInternal/shape/core/candlestick.js +1 -1
  106. package/dist-esm/ChartInternal/shape/core/dataRegion.js +1 -1
  107. package/dist-esm/ChartInternal/shape/core/geometry.js +1 -1
  108. package/dist-esm/ChartInternal/shape/core/path.js +1 -1
  109. package/dist-esm/ChartInternal/shape/core/point.js +1 -1
  110. package/dist-esm/ChartInternal/shape/core/treemap.js +1 -1
  111. package/dist-esm/ChartInternal/shape/funnel.js +1 -1
  112. package/dist-esm/ChartInternal/shape/gauge.js +1 -1
  113. package/dist-esm/ChartInternal/shape/line.js +1 -1
  114. package/dist-esm/ChartInternal/shape/point.js +5 -4
  115. package/dist-esm/ChartInternal/shape/polar.js +1 -1
  116. package/dist-esm/ChartInternal/shape/radar.js +1 -1
  117. package/dist-esm/ChartInternal/shape/shape.js +9 -5
  118. package/dist-esm/ChartInternal/shape/treemap.js +1 -1
  119. package/dist-esm/canvas/CanvasAxisRenderer.js +18 -15
  120. package/dist-esm/canvas/CanvasEngine.js +1 -1
  121. package/dist-esm/canvas/CanvasPainter.js +1 -1
  122. package/dist-esm/canvas/CanvasRenderer.js +1 -1
  123. package/dist-esm/canvas/CanvasTheme.js +1 -1
  124. package/dist-esm/canvas/HitDetector.js +1 -1
  125. package/dist-esm/canvas/axisTicks.js +1 -1
  126. package/dist-esm/canvas/classes.js +1 -1
  127. package/dist-esm/canvas/color.js +1 -1
  128. package/dist-esm/canvas/geometry.js +1 -1
  129. package/dist-esm/canvas/labels.js +1 -1
  130. package/dist-esm/canvas/pointPattern.js +1 -1
  131. package/dist-esm/canvas/util.js +1 -1
  132. package/dist-esm/config/Options/Options.js +1 -1
  133. package/dist-esm/config/Options/axis/axis.js +1 -1
  134. package/dist-esm/config/Options/axis/x.js +1 -1
  135. package/dist-esm/config/Options/axis/y.js +1 -1
  136. package/dist-esm/config/Options/axis/y2.js +1 -1
  137. package/dist-esm/config/Options/common/boost.js +1 -1
  138. package/dist-esm/config/Options/common/color.js +1 -1
  139. package/dist-esm/config/Options/common/grid.js +1 -1
  140. package/dist-esm/config/Options/common/legend.js +1 -1
  141. package/dist-esm/config/Options/common/main.js +1 -1
  142. package/dist-esm/config/Options/common/point.js +1 -1
  143. package/dist-esm/config/Options/common/title.js +1 -1
  144. package/dist-esm/config/Options/common/tooltip.js +1 -1
  145. package/dist-esm/config/Options/data/axis.js +1 -1
  146. package/dist-esm/config/Options/data/data.js +1 -1
  147. package/dist-esm/config/Options/data/selection.js +1 -1
  148. package/dist-esm/config/Options/interaction/interaction.js +1 -1
  149. package/dist-esm/config/Options/interaction/subchart.js +5 -1
  150. package/dist-esm/config/Options/interaction/zoom.js +1 -1
  151. package/dist-esm/config/Options/shape/arc.js +1 -1
  152. package/dist-esm/config/Options/shape/area.js +1 -1
  153. package/dist-esm/config/Options/shape/bar.js +1 -1
  154. package/dist-esm/config/Options/shape/bubble.js +1 -1
  155. package/dist-esm/config/Options/shape/candlestick.js +1 -1
  156. package/dist-esm/config/Options/shape/donut.js +1 -1
  157. package/dist-esm/config/Options/shape/funnel.js +1 -1
  158. package/dist-esm/config/Options/shape/gauge.js +1 -1
  159. package/dist-esm/config/Options/shape/line.js +1 -1
  160. package/dist-esm/config/Options/shape/pie.js +1 -1
  161. package/dist-esm/config/Options/shape/polar.js +1 -1
  162. package/dist-esm/config/Options/shape/radar.js +1 -1
  163. package/dist-esm/config/Options/shape/scatter.js +1 -1
  164. package/dist-esm/config/Options/shape/spline.js +1 -1
  165. package/dist-esm/config/Options/shape/treemap.js +1 -1
  166. package/dist-esm/config/Store/Element.js +1 -1
  167. package/dist-esm/config/Store/State.js +2 -1
  168. package/dist-esm/config/Store/Store.js +1 -1
  169. package/dist-esm/config/classes.js +1 -1
  170. package/dist-esm/config/config.js +1 -1
  171. package/dist-esm/config/const.js +1 -1
  172. package/dist-esm/config/resolver/axis.core.js +1 -1
  173. package/dist-esm/config/resolver/axis.js +1 -1
  174. package/dist-esm/config/resolver/canvas.js +15 -3
  175. package/dist-esm/config/resolver/canvasShape.js +1 -1
  176. package/dist-esm/config/resolver/category.js +1 -1
  177. package/dist-esm/config/resolver/export.js +1 -1
  178. package/dist-esm/config/resolver/flow.js +1 -1
  179. package/dist-esm/config/resolver/grid.js +1 -1
  180. package/dist-esm/config/resolver/interaction/selection.js +1 -1
  181. package/dist-esm/config/resolver/interaction/subchart.js +1 -1
  182. package/dist-esm/config/resolver/interaction/zoom.js +1 -1
  183. package/dist-esm/config/resolver/regions.js +1 -1
  184. package/dist-esm/config/resolver/shape/arc.helpers.js +1 -1
  185. package/dist-esm/config/resolver/shape/area.js +1 -1
  186. package/dist-esm/config/resolver/shape/axis.helpers.js +1 -1
  187. package/dist-esm/config/resolver/shape/bar.js +1 -1
  188. package/dist-esm/config/resolver/shape/bubble.js +1 -1
  189. package/dist-esm/config/resolver/shape/candlestick.js +1 -1
  190. package/dist-esm/config/resolver/shape/donut.js +1 -1
  191. package/dist-esm/config/resolver/shape/funnel.js +1 -1
  192. package/dist-esm/config/resolver/shape/gauge.js +1 -1
  193. package/dist-esm/config/resolver/shape/line.js +1 -1
  194. package/dist-esm/config/resolver/shape/pie.js +1 -1
  195. package/dist-esm/config/resolver/shape/polar.js +1 -1
  196. package/dist-esm/config/resolver/shape/radar.js +1 -1
  197. package/dist-esm/config/resolver/shape/scatter.js +1 -1
  198. package/dist-esm/config/resolver/shape/treemap.js +1 -1
  199. package/dist-esm/core.js +3 -3
  200. package/dist-esm/index.canvas.js +1 -1
  201. package/dist-esm/index.esm.js +1 -1
  202. package/dist-esm/module/Cache.js +1 -1
  203. package/dist-esm/module/browser.js +1 -1
  204. package/dist-esm/module/dsv.js +1 -1
  205. package/dist-esm/module/error.js +1 -1
  206. package/dist-esm/module/generator.js +1 -1
  207. package/dist-esm/module/sanitize.js +1 -1
  208. package/dist-esm/module/util/brush.js +1 -1
  209. package/dist-esm/module/util/dom.js +1 -1
  210. package/dist-esm/module/util/object.js +1 -1
  211. package/dist-esm/module/util/type-checks.js +1 -1
  212. package/dist-esm/module/worker.js +1 -1
  213. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  214. package/dist-esm/plugin/billboardjs-plugin-sparkline.js +2 -2
  215. package/dist-esm/plugin/billboardjs-plugin-stanford.js +2 -2
  216. package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
  217. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
  218. package/dist-esm/react/index.js +1 -1
  219. package/package.json +1 -1
  220. package/src/Chart/api/chart.ts +2 -1
  221. package/src/Chart/api/flow.ts +20 -7
  222. package/src/ChartInternal/Axis/AxisRenderer.ts +20 -18
  223. package/src/ChartInternal/Axis/AxisRendererHelper.ts +3 -1
  224. package/src/ChartInternal/interactions/flow.ts +50 -19
  225. package/src/ChartInternal/internals/redraw.ts +15 -9
  226. package/src/ChartInternal/internals/text.ts +4 -0
  227. package/src/ChartInternal/internals/tooltip.ts +24 -6
  228. package/src/ChartInternal/shape/point.ts +6 -3
  229. package/src/ChartInternal/shape/shape.ts +15 -3
  230. package/src/canvas/CanvasAxisRenderer.ts +19 -22
  231. package/src/config/Options/interaction/subchart.ts +4 -0
  232. package/src/config/Store/State.ts +1 -0
  233. package/src/config/resolver/canvas.ts +20 -2
  234. package/types/options.d.ts +3 -0
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/canvas/classes.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  import { window as win } from "../module/browser.js";
11
11
  import { isNumber } from "../module/util/type-checks.js";
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  import { getCandlestickGeometry, getRenderRect } from "../ChartInternal/shape/core/geometry.js";
11
11
  import { isFiniteCanvasCoordinate } from "./util.js";
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  import { isFunction, isNumber, isObject, isString } from "../module/util/type-checks.js";
11
11
  import { parseShorthand, tplProcess } from "../module/util/object.js";
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  import { window as win } from "../module/browser.js";
11
11
  import { sanitize } from "../module/sanitize.js";
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  import { TYPE, TYPE_BY_CATEGORY } from "../config/const.js";
11
11
  //#region src/canvas/util.ts
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  import { deepClone } from "../../module/util/object.js";
11
11
  import boost_default from "./common/boost.js";
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  import x_default from "./x.js";
11
11
  import y_default from "./y.js";
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Options/axis/x.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Options/axis/y.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Options/axis/y2.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Options/common/boost.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Options/common/color.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Options/common/grid.ts
11
11
  var grid_default = {
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Options/common/legend.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Options/common/main.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Options/common/point.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Options/common/title.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Options/common/tooltip.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Options/data/axis.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Options/data/data.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Options/data/selection.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Options/interaction/interaction.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Options/interaction/subchart.ts
11
11
  /**
@@ -23,6 +23,10 @@ var subchart_default = {
23
23
  * - **NOTE:** for ESM imports, needs to import 'subchart' exports and instantiate it by calling `subchart()`.
24
24
  * - `show: subchart()`
25
25
  * @property {string} [subchart.type] Set chart type for the subchart. Defaults to data.type.
26
+ * - **NOTE:** When candlestick data is rendered as another type in the subchart, the subchart takes one value of the data:
27
+ * - `bar`: the `volume` of the data. Without `volume`, the close value for a rise and the open value for a fall, from zero.
28
+ * - other types (`line`, `area`, etc.): the close value.
29
+ * - The y axis domain of the subchart follows the taken values. The `volume` is not part of the main chart's y axis domain.
26
30
  * @property {object} [subchart.types] Set chart type for each data in the subchart. Defaults to data.types.
27
31
  * @property {boolean} [subchart.brush.enabled=true] Enable subchart brush interaction.
28
32
  * @property {boolean} [subchart.showHandle=false] Show sub chart's handle.
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Options/interaction/zoom.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Options/shape/arc.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Options/shape/area.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Options/shape/bar.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Options/shape/bubble.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Options/shape/candlestick.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Options/shape/donut.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Options/shape/funnel.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Options/shape/gauge.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Options/shape/line.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Options/shape/pie.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Options/shape/polar.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Options/shape/radar.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Options/shape/scatter.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Options/shape/spline.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Options/shape/treemap.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Store/Element.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/Store/State.ts
11
11
  /**
@@ -53,6 +53,7 @@ var State = class {
53
53
  isCanvasMode: false,
54
54
  canvasShape: null,
55
55
  canvasFocusKey: null,
56
+ canvasFocusData: null,
56
57
  canvasSubchartBrushDragging: false,
57
58
  canvasSubchartBrushMode: null,
58
59
  canvasSubchartBrushStart: null,
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  import Element from "./Element.js";
11
11
  import State from "./State.js";
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/classes.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  import { isDefined, isObjectType } from "../module/util/type-checks.js";
11
11
  //#region src/config/config.ts
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  //#region src/config/const.ts
11
11
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  import { extend } from "../../module/util/object.js";
11
11
  import Options from "../Options/Options.js";
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  import axis_default from "../../Chart/api/axis.js";
11
11
  import group_default from "../../Chart/api/group.js";
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  import { window as win } from "../../module/browser.js";
11
11
  import { isBoolean, isFunction } from "../../module/util/type-checks.js";
@@ -927,6 +927,16 @@ const canvasInternal = {
927
927
  callCallback && config.subchart_onbrush.bind($$.api)(scale.x.orgDomain());
928
928
  },
929
929
  /**
930
+ * Show the focus and tooltip of the data the flow moved under the pointer.
931
+ * @private
932
+ */
933
+ updateCanvasFlowFocus() {
934
+ const $$ = this;
935
+ const { state } = $$;
936
+ state.canvasFocusKey = null;
937
+ $$.$el.tooltip?.style("display") === "block" && state.event && $$.onCanvasMouseMove(state.event);
938
+ },
939
+ /**
930
940
  * Finish a pending canvas flow animation before accepting another flow mutation.
931
941
  * @private
932
942
  */
@@ -953,6 +963,7 @@ const canvasInternal = {
953
963
  const startDomain = scale.x.domain().slice(0, 2);
954
964
  const startOrgDomain = org.xDomain?.slice?.();
955
965
  const startSubXDomain = scale.subX?.domain?.().slice?.();
966
+ const focusData = state.canvasFocusKey ? state.canvasFocusData : null;
956
967
  if (!isCanvasFlowDomain(startDomain, isLog)) return false;
957
968
  const removed = data.targets.map((target) => target.values.splice(0, length));
958
969
  $$.updateXDomain($$.filterTargetsToShow(data.targets), true, true);
@@ -997,6 +1008,7 @@ const canvasInternal = {
997
1008
  state.canvasFlowFrame = null;
998
1009
  state.canvasFlowFinish = null;
999
1010
  state.flowing = false;
1011
+ $$.updateCanvasFlowFocus();
1000
1012
  done.call($$.api);
1001
1013
  };
1002
1014
  const render = (timestamp) => {
@@ -1008,7 +1020,7 @@ const canvasInternal = {
1008
1020
  state._cachedDrawShape = null;
1009
1021
  state._canvasVisibleRangeCache = null;
1010
1022
  state._canvasXTickValuesCache = null;
1011
- $$.renderCanvasFrame(void 0, null, false);
1023
+ $$.renderCanvasFrame(void 0, focusData, false);
1012
1024
  if (ratio < 1) state.canvasFlowFrame = requestFrame(render);
1013
1025
  else finish();
1014
1026
  };
@@ -1018,7 +1030,6 @@ const canvasInternal = {
1018
1030
  axis.x.scale(scale.x);
1019
1031
  state.flowing = true;
1020
1032
  state.cancelClick = true;
1021
- $$.hideTooltip?.();
1022
1033
  state.canvasFlowFinish = finish;
1023
1034
  state.canvasFlowFrame = requestFrame(render);
1024
1035
  return true;
@@ -2189,6 +2200,7 @@ const canvasInternal = {
2189
2200
  const $$ = this;
2190
2201
  const { state } = $$;
2191
2202
  const withMainRedraw = $$.canvasRenderer.hasExpandedShapeFocus?.($$, focusData);
2203
+ state.canvasFocusData = focusData;
2192
2204
  if (withMainRedraw) {
2193
2205
  const drawShape = state.canvasShape || $$.getDrawShape();
2194
2206
  $$.canvasEngine.beginFrame(state.current.width, $$.getCanvasSurfaceHeight());
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  import { TYPE } from "../const.js";
11
11
  import area_default from "../Options/shape/area.js";
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  import Chart from "../../Chart/Chart.js";
11
11
  import category_default from "../../Chart/api/category.js";
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  import Chart from "../../Chart/Chart.js";
11
11
  import export_default from "../../Chart/api/export.js";
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  import { extend } from "../../module/util/object.js";
11
11
  import ChartInternal from "../../ChartInternal/ChartInternal.js";
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  import { extend } from "../../module/util/object.js";
11
11
  import Options from "../Options/Options.js";
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  import { extend } from "../../../module/util/object.js";
11
11
  import Options from "../../Options/Options.js";
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.3
8
+ * @version 4.1.5
9
9
  */
10
10
  import { extend } from "../../../module/util/object.js";
11
11
  import Options from "../../Options/Options.js";