billboard.js 4.1.5 → 4.2.0-next.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 (347) hide show
  1. package/dist/billboard.css +87 -1
  2. package/dist/billboard.js +11000 -6970
  3. package/dist/billboard.min.css +2 -2
  4. package/dist/billboard.min.js +19 -19
  5. package/dist/billboard.pkgd.js +22584 -14102
  6. package/dist/billboard.pkgd.min.js +37 -37
  7. package/dist/billboard.react.js +5 -5
  8. package/dist/billboard.react.min.js +2 -2
  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 +21 -4
  13. package/dist/plugin/billboardjs-plugin-sparkline.min.js +3 -3
  14. package/dist/plugin/billboardjs-plugin-stanford.js +22 -13
  15. package/dist/plugin/billboardjs-plugin-stanford.min.js +4 -4
  16. package/dist/plugin/billboardjs-plugin-tableview.js +20 -3
  17. package/dist/plugin/billboardjs-plugin-tableview.min.js +4 -4
  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 +1689 -1252
  21. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +8 -8
  22. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +2288 -1012
  23. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +10 -10
  24. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +6350 -2390
  25. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +18 -18
  26. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +1310 -1006
  27. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +10 -10
  28. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +1293 -1006
  29. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +8 -8
  30. package/dist/theme/dark.css +90 -1
  31. package/dist/theme/dark.min.css +2 -2
  32. package/dist/theme/datalab.css +87 -1
  33. package/dist/theme/datalab.min.css +2 -2
  34. package/dist/theme/graph.css +87 -1
  35. package/dist/theme/graph.min.css +2 -2
  36. package/dist/theme/insight.css +87 -1
  37. package/dist/theme/insight.min.css +2 -2
  38. package/dist/theme/modern.css +87 -1
  39. package/dist/theme/modern.min.css +2 -2
  40. package/dist-esm/Chart/Chart.js +5 -5
  41. package/dist-esm/Chart/api/axis.js +2 -3
  42. package/dist-esm/Chart/api/category.js +2 -3
  43. package/dist-esm/Chart/api/chart.js +2 -3
  44. package/dist-esm/Chart/api/color.js +2 -3
  45. package/dist-esm/Chart/api/data.js +3 -4
  46. package/dist-esm/Chart/api/export.js +3 -4
  47. package/dist-esm/Chart/api/flow.js +3 -4
  48. package/dist-esm/Chart/api/focus.js +5 -3
  49. package/dist-esm/Chart/api/grid.js +2 -3
  50. package/dist-esm/Chart/api/group.js +2 -3
  51. package/dist-esm/Chart/api/legend.js +1 -2
  52. package/dist-esm/Chart/api/load.js +3 -4
  53. package/dist-esm/Chart/api/regions.js +3 -4
  54. package/dist-esm/Chart/api/selection.js +3 -4
  55. package/dist-esm/Chart/api/show.js +2 -3
  56. package/dist-esm/Chart/api/stubs.js +3 -4
  57. package/dist-esm/Chart/api/subchart.js +4 -5
  58. package/dist-esm/Chart/api/tooltip.js +28 -9
  59. package/dist-esm/Chart/api/x.js +2 -3
  60. package/dist-esm/Chart/api/zoom.js +6 -7
  61. package/dist-esm/ChartInternal/Axis/Axis.js +5 -6
  62. package/dist-esm/ChartInternal/Axis/AxisRenderer.js +9 -7
  63. package/dist-esm/ChartInternal/Axis/AxisRendererHelper.js +39 -11
  64. package/dist-esm/ChartInternal/ChartInternal.js +39 -24
  65. package/dist-esm/ChartInternal/data/convert.helper.js +2 -3
  66. package/dist-esm/ChartInternal/data/convert.js +3 -4
  67. package/dist-esm/ChartInternal/data/data.js +18 -11
  68. package/dist-esm/ChartInternal/data/load.js +4 -5
  69. package/dist-esm/ChartInternal/interactions/drag.js +3 -4
  70. package/dist-esm/ChartInternal/interactions/eventrect.js +4 -5
  71. package/dist-esm/ChartInternal/interactions/flow.js +3 -4
  72. package/dist-esm/ChartInternal/interactions/interaction.js +14 -13
  73. package/dist-esm/ChartInternal/interactions/subchart.js +5 -6
  74. package/dist-esm/ChartInternal/interactions/zoom.js +4 -5
  75. package/dist-esm/ChartInternal/internals/category.js +2 -3
  76. package/dist-esm/ChartInternal/internals/class.js +5 -5
  77. package/dist-esm/ChartInternal/internals/clip.js +2 -3
  78. package/dist-esm/ChartInternal/internals/color.js +4 -5
  79. package/dist-esm/ChartInternal/internals/domain.js +7 -7
  80. package/dist-esm/ChartInternal/internals/format.js +3 -4
  81. package/dist-esm/ChartInternal/internals/grid.js +4 -5
  82. package/dist-esm/ChartInternal/internals/legend.js +7 -7
  83. package/dist-esm/ChartInternal/internals/redraw.js +8 -8
  84. package/dist-esm/ChartInternal/internals/region.js +4 -5
  85. package/dist-esm/ChartInternal/internals/scale.js +2 -3
  86. package/dist-esm/ChartInternal/internals/selection.js +3 -4
  87. package/dist-esm/ChartInternal/internals/size.axis.js +2 -3
  88. package/dist-esm/ChartInternal/internals/size.js +8 -9
  89. package/dist-esm/ChartInternal/internals/style.js +4 -5
  90. package/dist-esm/ChartInternal/internals/subchart.util.js +2 -3
  91. package/dist-esm/ChartInternal/internals/text.arc.js +3 -4
  92. package/dist-esm/ChartInternal/internals/text.js +22 -23
  93. package/dist-esm/ChartInternal/internals/text.util.js +4 -5
  94. package/dist-esm/ChartInternal/internals/title.js +4 -5
  95. package/dist-esm/ChartInternal/internals/tooltip.js +20 -20
  96. package/dist-esm/ChartInternal/internals/transform.js +5 -6
  97. package/dist-esm/ChartInternal/internals/type.js +78 -11
  98. package/dist-esm/ChartInternal/shape/arc.js +5 -6
  99. package/dist-esm/ChartInternal/shape/area.js +4 -5
  100. package/dist-esm/ChartInternal/shape/bar.js +5 -6
  101. package/dist-esm/ChartInternal/shape/boxplot.js +111 -0
  102. package/dist-esm/ChartInternal/shape/bubble.js +2 -3
  103. package/dist-esm/ChartInternal/shape/bullet.js +213 -0
  104. package/dist-esm/ChartInternal/shape/candlestick.js +5 -6
  105. package/dist-esm/ChartInternal/shape/core/barRadius.js +2 -3
  106. package/dist-esm/ChartInternal/shape/core/boxplot.js +192 -0
  107. package/dist-esm/ChartInternal/shape/core/bubble.js +4 -5
  108. package/dist-esm/ChartInternal/shape/core/bullet.js +528 -0
  109. package/dist-esm/ChartInternal/shape/core/candlestick.js +2 -3
  110. package/dist-esm/ChartInternal/shape/core/dataRegion.js +2 -3
  111. package/dist-esm/ChartInternal/shape/core/geometry.js +2 -3
  112. package/dist-esm/ChartInternal/shape/core/heatmap.js +453 -0
  113. package/dist-esm/ChartInternal/shape/core/path.js +2 -3
  114. package/dist-esm/ChartInternal/shape/core/point.js +2 -3
  115. package/dist-esm/ChartInternal/shape/core/sankey.js +576 -0
  116. package/dist-esm/ChartInternal/shape/core/treemap.js +2 -3
  117. package/dist-esm/ChartInternal/shape/funnel.js +45 -6
  118. package/dist-esm/ChartInternal/shape/gauge.js +3 -4
  119. package/dist-esm/ChartInternal/shape/heatmap.js +144 -0
  120. package/dist-esm/ChartInternal/shape/line.js +7 -8
  121. package/dist-esm/ChartInternal/shape/point.js +5 -6
  122. package/dist-esm/ChartInternal/shape/polar.js +3 -4
  123. package/dist-esm/ChartInternal/shape/radar.js +19 -7
  124. package/dist-esm/ChartInternal/shape/sankey.js +154 -0
  125. package/dist-esm/ChartInternal/shape/shape.js +7 -7
  126. package/dist-esm/ChartInternal/shape/treemap.js +8 -5
  127. package/dist-esm/canvas/CanvasAxisRenderer.js +12 -315
  128. package/dist-esm/canvas/CanvasEngine.js +2 -3
  129. package/dist-esm/canvas/CanvasPainter.js +2 -3
  130. package/dist-esm/canvas/CanvasRenderer.js +38 -408
  131. package/dist-esm/canvas/CanvasTheme.js +28 -8
  132. package/dist-esm/canvas/HitDetector.js +20 -24
  133. package/dist-esm/canvas/axisTicks.js +5 -6
  134. package/dist-esm/canvas/boxplot.js +201 -0
  135. package/dist-esm/canvas/bullet.js +212 -0
  136. package/dist-esm/canvas/classes.js +2 -3
  137. package/dist-esm/canvas/color.js +2 -3
  138. package/dist-esm/canvas/flow.js +190 -0
  139. package/dist-esm/canvas/geometry.js +2 -3
  140. package/dist-esm/canvas/grid.js +206 -0
  141. package/dist-esm/canvas/heatmap.js +141 -0
  142. package/dist-esm/canvas/labels.js +3 -4
  143. package/dist-esm/canvas/pointPattern.js +2 -3
  144. package/dist-esm/canvas/sankey.js +137 -0
  145. package/dist-esm/canvas/selection.js +473 -0
  146. package/dist-esm/canvas/subchart.js +814 -0
  147. package/dist-esm/canvas/treemap.js +100 -0
  148. package/dist-esm/canvas/util.js +2 -3
  149. package/dist-esm/config/Options/Options.js +3 -4
  150. package/dist-esm/config/Options/axis/axis.js +2 -3
  151. package/dist-esm/config/Options/axis/x.js +2 -3
  152. package/dist-esm/config/Options/axis/y.js +2 -3
  153. package/dist-esm/config/Options/axis/y2.js +14 -3
  154. package/dist-esm/config/Options/common/boost.js +2 -3
  155. package/dist-esm/config/Options/common/color.js +2 -3
  156. package/dist-esm/config/Options/common/grid.js +2 -3
  157. package/dist-esm/config/Options/common/legend.js +2 -3
  158. package/dist-esm/config/Options/common/main.js +2 -3
  159. package/dist-esm/config/Options/common/point.js +2 -3
  160. package/dist-esm/config/Options/common/title.js +2 -3
  161. package/dist-esm/config/Options/common/tooltip.js +2 -3
  162. package/dist-esm/config/Options/data/axis.js +2 -3
  163. package/dist-esm/config/Options/data/data.js +49 -4
  164. package/dist-esm/config/Options/data/selection.js +2 -3
  165. package/dist-esm/config/Options/interaction/interaction.js +2 -3
  166. package/dist-esm/config/Options/interaction/subchart.js +2 -3
  167. package/dist-esm/config/Options/interaction/zoom.js +2 -3
  168. package/dist-esm/config/Options/shape/arc.js +2 -3
  169. package/dist-esm/config/Options/shape/area.js +2 -3
  170. package/dist-esm/config/Options/shape/bar.js +2 -3
  171. package/dist-esm/config/Options/shape/boxplot.js +106 -0
  172. package/dist-esm/config/Options/shape/bubble.js +2 -3
  173. package/dist-esm/config/Options/shape/bullet.js +177 -0
  174. package/dist-esm/config/Options/shape/candlestick.js +2 -3
  175. package/dist-esm/config/Options/shape/donut.js +2 -3
  176. package/dist-esm/config/Options/shape/funnel.js +2 -3
  177. package/dist-esm/config/Options/shape/gauge.js +2 -3
  178. package/dist-esm/config/Options/shape/heatmap.js +137 -0
  179. package/dist-esm/config/Options/shape/line.js +2 -3
  180. package/dist-esm/config/Options/shape/pie.js +2 -3
  181. package/dist-esm/config/Options/shape/polar.js +2 -3
  182. package/dist-esm/config/Options/shape/radar.js +2 -3
  183. package/dist-esm/config/Options/shape/sankey.js +116 -0
  184. package/dist-esm/config/Options/shape/scatter.js +2 -3
  185. package/dist-esm/config/Options/shape/spline.js +2 -3
  186. package/dist-esm/config/Options/shape/treemap.js +2 -3
  187. package/dist-esm/config/Store/Element.js +2 -3
  188. package/dist-esm/config/Store/State.js +3 -4
  189. package/dist-esm/config/Store/Store.js +2 -3
  190. package/dist-esm/config/classes.js +2 -4
  191. package/dist-esm/config/config.js +2 -3
  192. package/dist-esm/config/const.js +31 -23
  193. package/dist-esm/config/resolver/axis.core.js +4 -5
  194. package/dist-esm/config/resolver/axis.js +2 -3
  195. package/dist-esm/config/resolver/canvas.js +112 -911
  196. package/dist-esm/config/resolver/canvasBoxplot.js +49 -0
  197. package/dist-esm/config/resolver/canvasBullet.js +29 -0
  198. package/dist-esm/config/resolver/canvasFlow.js +28 -0
  199. package/dist-esm/config/resolver/canvasGrid.js +27 -0
  200. package/dist-esm/config/resolver/canvasHeatmap.js +31 -0
  201. package/dist-esm/config/resolver/canvasSankey.js +31 -0
  202. package/dist-esm/config/resolver/canvasSelection.js +30 -0
  203. package/dist-esm/config/resolver/canvasShape.js +13 -12
  204. package/dist-esm/config/resolver/canvasSubchart.js +30 -0
  205. package/dist-esm/config/resolver/canvasType.js +48 -0
  206. package/dist-esm/config/resolver/category.js +3 -4
  207. package/dist-esm/config/resolver/customType.js +58 -0
  208. package/dist-esm/config/resolver/export.js +3 -4
  209. package/dist-esm/config/resolver/flow.js +5 -6
  210. package/dist-esm/config/resolver/grid.js +6 -7
  211. package/dist-esm/config/resolver/interaction/selection.js +6 -7
  212. package/dist-esm/config/resolver/interaction/subchart.js +6 -7
  213. package/dist-esm/config/resolver/interaction/zoom.js +6 -7
  214. package/dist-esm/config/resolver/regions.js +5 -6
  215. package/dist-esm/config/resolver/shape/arc.helpers.js +5 -6
  216. package/dist-esm/config/resolver/shape/area.js +3 -4
  217. package/dist-esm/config/resolver/shape/axis.helpers.js +2 -3
  218. package/dist-esm/config/resolver/shape/bar.js +5 -6
  219. package/dist-esm/config/resolver/shape/boxplot.js +30 -0
  220. package/dist-esm/config/resolver/shape/bubble.js +5 -6
  221. package/dist-esm/config/resolver/shape/bullet.js +23 -0
  222. package/dist-esm/config/resolver/shape/candlestick.js +5 -6
  223. package/dist-esm/config/resolver/shape/donut.js +2 -3
  224. package/dist-esm/config/resolver/shape/funnel.js +7 -6
  225. package/dist-esm/config/resolver/shape/gauge.js +4 -5
  226. package/dist-esm/config/resolver/shape/heatmap.js +23 -0
  227. package/dist-esm/config/resolver/shape/line.js +2 -3
  228. package/dist-esm/config/resolver/shape/pie.js +3 -4
  229. package/dist-esm/config/resolver/shape/polar.js +4 -5
  230. package/dist-esm/config/resolver/shape/radar.js +5 -6
  231. package/dist-esm/config/resolver/shape/sankey.js +23 -0
  232. package/dist-esm/config/resolver/shape/scatter.js +4 -5
  233. package/dist-esm/config/resolver/shape/treemap.js +4 -5
  234. package/dist-esm/core.js +5 -6
  235. package/dist-esm/index.canvas.js +13 -9
  236. package/dist-esm/index.esm.js +6 -2
  237. package/dist-esm/module/Cache.js +2 -3
  238. package/dist-esm/module/browser.js +2 -3
  239. package/dist-esm/module/dsv.js +2 -3
  240. package/dist-esm/module/error.js +23 -16
  241. package/dist-esm/module/generator.js +3 -4
  242. package/dist-esm/module/sanitize.js +2 -3
  243. package/dist-esm/module/util/brush.js +2 -3
  244. package/dist-esm/module/util/dom.js +3 -4
  245. package/dist-esm/module/util/object.js +13 -6
  246. package/dist-esm/module/util/type-checks.js +2 -3
  247. package/dist-esm/module/worker.js +2 -3
  248. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +6 -10
  249. package/dist-esm/plugin/billboardjs-plugin-sparkline.js +10 -18
  250. package/dist-esm/plugin/billboardjs-plugin-stanford.js +17 -45
  251. package/dist-esm/plugin/billboardjs-plugin-tableview.js +10 -18
  252. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +9 -16
  253. package/dist-esm/react/index.js +2 -3
  254. package/package.json +44 -44
  255. package/src/Chart/Chart.ts +1 -0
  256. package/src/Chart/api/focus.ts +3 -0
  257. package/src/Chart/api/subchart.ts +1 -1
  258. package/src/Chart/api/tooltip.ts +54 -15
  259. package/src/ChartInternal/Axis/AxisRenderer.ts +9 -2
  260. package/src/ChartInternal/Axis/AxisRendererHelper.ts +42 -8
  261. package/src/ChartInternal/ChartInternal.ts +46 -19
  262. package/src/ChartInternal/data/IData.ts +13 -0
  263. package/src/ChartInternal/data/data.ts +26 -5
  264. package/src/ChartInternal/data/load.ts +2 -2
  265. package/src/ChartInternal/interactions/interaction.ts +15 -11
  266. package/src/ChartInternal/internals/class.ts +3 -2
  267. package/src/ChartInternal/internals/domain.ts +4 -2
  268. package/src/ChartInternal/internals/format.ts +3 -1
  269. package/src/ChartInternal/internals/legend.ts +2 -1
  270. package/src/ChartInternal/internals/redraw.ts +3 -3
  271. package/src/ChartInternal/internals/size.ts +5 -3
  272. package/src/ChartInternal/internals/text.ts +24 -28
  273. package/src/ChartInternal/internals/tooltip.ts +35 -14
  274. package/src/ChartInternal/internals/transform.ts +2 -2
  275. package/src/ChartInternal/internals/type.ts +101 -9
  276. package/src/ChartInternal/shape/boxplot.ts +172 -0
  277. package/src/ChartInternal/shape/bullet.ts +323 -0
  278. package/src/ChartInternal/shape/core/boxplot.ts +241 -0
  279. package/src/ChartInternal/shape/core/bullet.ts +734 -0
  280. package/src/ChartInternal/shape/core/heatmap.ts +665 -0
  281. package/src/ChartInternal/shape/core/sankey.ts +782 -0
  282. package/src/ChartInternal/shape/funnel.ts +73 -2
  283. package/src/ChartInternal/shape/heatmap.ts +236 -0
  284. package/src/ChartInternal/shape/radar.ts +30 -1
  285. package/src/ChartInternal/shape/sankey.ts +242 -0
  286. package/src/ChartInternal/shape/shape.ts +1 -1
  287. package/src/ChartInternal/shape/treemap.ts +10 -0
  288. package/src/Plugin/stanford/index.ts +1 -28
  289. package/src/canvas/CanvasAxisRenderer.ts +35 -574
  290. package/src/canvas/CanvasRenderer.ts +68 -640
  291. package/src/canvas/CanvasTheme.ts +92 -6
  292. package/src/canvas/HitDetector.ts +30 -28
  293. package/src/canvas/boxplot.ts +230 -0
  294. package/src/canvas/bullet.ts +269 -0
  295. package/src/canvas/flow.ts +237 -0
  296. package/src/canvas/grid.ts +359 -0
  297. package/src/canvas/heatmap.ts +147 -0
  298. package/src/canvas/labels.ts +3 -1
  299. package/src/canvas/sankey.ts +151 -0
  300. package/src/canvas/selection.ts +626 -0
  301. package/src/canvas/subchart.ts +1292 -0
  302. package/src/canvas/treemap.ts +142 -0
  303. package/src/config/Options/axis/y2.ts +13 -0
  304. package/src/config/Options/data/data.ts +47 -1
  305. package/src/config/Options/shape/boxplot.ts +95 -0
  306. package/src/config/Options/shape/bullet.ts +170 -0
  307. package/src/config/Options/shape/heatmap.ts +125 -0
  308. package/src/config/Options/shape/sankey.ts +108 -0
  309. package/src/config/Store/State.ts +1 -1
  310. package/src/config/classes.ts +0 -1
  311. package/src/config/const.ts +30 -21
  312. package/src/config/resolver/canvas.ts +126 -1290
  313. package/src/config/resolver/canvasBoxplot.ts +42 -0
  314. package/src/config/resolver/canvasBullet.ts +20 -0
  315. package/src/config/resolver/canvasFlow.ts +18 -0
  316. package/src/config/resolver/canvasGrid.ts +17 -0
  317. package/src/config/resolver/canvasHeatmap.ts +23 -0
  318. package/src/config/resolver/canvasSankey.ts +23 -0
  319. package/src/config/resolver/canvasSelection.ts +20 -0
  320. package/src/config/resolver/canvasShape.ts +6 -1
  321. package/src/config/resolver/canvasSubchart.ts +20 -0
  322. package/src/config/resolver/canvasType.ts +51 -0
  323. package/src/config/resolver/customType.ts +69 -0
  324. package/src/config/resolver/shape/boxplot.ts +31 -0
  325. package/src/config/resolver/shape/bullet.ts +18 -0
  326. package/src/config/resolver/shape/funnel.ts +8 -2
  327. package/src/config/resolver/shape/heatmap.ts +18 -0
  328. package/src/config/resolver/shape/index.ts +4 -0
  329. package/src/config/resolver/shape/sankey.ts +18 -0
  330. package/src/index.canvas.ts +9 -3
  331. package/src/index.esm.ts +4 -0
  332. package/src/index.ts +34 -0
  333. package/src/module/error.ts +32 -18
  334. package/src/module/util/object.ts +26 -1
  335. package/src/scss/billboard.scss +106 -0
  336. package/src/scss/theme/dark.scss +110 -0
  337. package/src/scss/theme/datalab.scss +106 -0
  338. package/src/scss/theme/graph.scss +106 -0
  339. package/src/scss/theme/insight.scss +106 -0
  340. package/src/scss/theme/modern.scss +106 -0
  341. package/types/bb.d.ts +4 -0
  342. package/types/canvas.d.ts +3 -0
  343. package/types/chart.d.ts +5 -0
  344. package/types/index.d.ts +4 -0
  345. package/types/options.d.ts +10 -1
  346. package/types/options.shape.d.ts +431 -0
  347. package/types/types.d.ts +4 -0
@@ -5,34 +5,42 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.5
8
+ * @version 4.2.0-next.1
9
9
  */
10
- import { API_MODULE_NEEDED, TYPE, TYPE_METHOD_NEEDED } from "../config/const.js";
10
+ import { API_MODULE_NEEDED, TYPE_METHOD_NEEDED } from "../config/const.js";
11
11
  import { window as win } from "./browser.js";
12
- import { isEmpty } from "./util/type-checks.js";
13
12
  import { camelize } from "./util/object.js";
14
- //#region src/module/error.ts
13
+ import { isEmpty } from "./util/type-checks.js";
14
+ // src/module/error.ts
15
15
  const MODULE_IMPORT_DOC = "https://github.com/naver/billboard.js/blob/master/MODULE_IMPORTS.md";
16
16
  /**
17
17
  * Check chart type module imports.
18
+ * The module of a type is there when the method it provides is: it is the same for the types
19
+ * built in and for the types of their own module.
18
20
  * @param {ChartInternal} ctx Context
19
21
  * @private
20
22
  */
21
23
  function checkModuleImport(ctx) {
22
24
  const $$ = ctx;
23
25
  const { config } = $$;
24
- let type = "";
25
- if (isEmpty(config.data_type || config.data_types) && !$$[TYPE_METHOD_NEEDED.LINE]) type = "line";
26
- else for (const x in TYPE_METHOD_NEEDED) {
27
- const t = TYPE[x];
28
- if ($$.hasType(t) && !$$[TYPE_METHOD_NEEDED[x]]) {
29
- type = t;
30
- break;
31
- }
32
- }
26
+ const given = (isEmpty(config.data_types) ? [config.data_type] : Object.values(config.data_types)).filter((type) => !isEmpty(type));
27
+ const type = (given.length ? given : ["line"]).find((name) => TYPE_METHOD_NEEDED[name] && !$$[TYPE_METHOD_NEEDED[name]]);
33
28
  type && logError(`Please, make sure if %c${camelize(type)}`, "module has been imported and specified correctly.", MODULE_IMPORT_DOC);
34
29
  }
35
30
  /**
31
+ * Get a method of a chart type module, for the part of the chart that is drawn by the mode.
32
+ * It is not there when only a part of the module was imported: the types of "billboard.js/canvas"
33
+ * have no part for the svg mode, for example.
34
+ * @param {ChartInternal} ctx Context
35
+ * @param {string} name Method name
36
+ * @returns {function} Method
37
+ * @private
38
+ */
39
+ function getTypeMethod(ctx, name) {
40
+ if (!ctx[name]) logError(`Please, make sure if the module of %c${name}`, `is imported for render.mode='${ctx.config.render_mode}'. The modules of "billboard.js/canvas" draw only with render.mode='canvas'.`, MODULE_IMPORT_DOC);
41
+ return ctx[name];
42
+ }
43
+ /**
36
44
  * Check optional API module import (e.g. export, flow).
37
45
  * Invoked by stubs on Chart.prototype when the corresponding resolver module
38
46
  * was not imported. Throws a helpful error pointing to the module the user
@@ -58,7 +66,6 @@ function logError(head, tail, info) {
58
66
  console.error(`❌ ${prefix} ${head}`, "background:red;color:white;display:block;font-size:15px", ...tailMsg);
59
67
  info && console.info("%cℹ️", "font-size:15px", info);
60
68
  }
61
- throw Error(`${prefix} ${head.replace(/\%c([a-z-]+)/i, "'$1' ")} ${tail ?? ""}`);
69
+ throw Error(`${prefix} ${head.replace(/\%c([a-z-]+)/i, "'$1'")}${tail ? ` ${tail}` : ""}`);
62
70
  }
63
- //#endregion
64
- export { checkApiModuleImport, checkModuleImport, logError };
71
+ export { checkApiModuleImport, checkModuleImport, getTypeMethod, logError };
@@ -5,13 +5,13 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.5
8
+ * @version 4.2.0-next.1
9
9
  */
10
10
  import { cancelAnimationFrame, cancelIdleCallback, requestAnimationFrame, requestIdleCallback, window as win } from "./browser.js";
11
11
  import { isArray, isNumber } from "./util/type-checks.js";
12
- import { runUntil } from "./util/object.js";
13
12
  import { isTabVisible } from "./util/dom.js";
14
- //#region src/module/generator.ts
13
+ import { runUntil } from "./util/object.js";
14
+ // src/module/generator.ts
15
15
  const { setTimeout, clearTimeout } = win;
16
16
  /**
17
17
  * Generate resize queue function
@@ -100,5 +100,4 @@ function generateWait() {
100
100
  };
101
101
  return f;
102
102
  }
103
- //#endregion
104
103
  export { generateResize, generateWait };
@@ -5,9 +5,9 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.5
8
+ * @version 4.2.0-next.1
9
9
  */
10
- //#region src/module/sanitize.ts
10
+ // src/module/sanitize.ts
11
11
  /**
12
12
  * Copyright (c) 2017 ~ present NAVER Corp.
13
13
  * billboard.js project is licensed under the MIT license
@@ -350,5 +350,4 @@ function sanitize(str) {
350
350
  return match.replace(/</g, "&lt;");
351
351
  });
352
352
  }
353
- //#endregion
354
353
  export { sanitize };
@@ -5,10 +5,10 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.5
8
+ * @version 4.2.0-next.1
9
9
  */
10
10
  import { brushSelection } from "d3-brush";
11
- //#region src/module/util/brush.ts
11
+ // src/module/util/brush.ts
12
12
  /**
13
13
  * Copyright (c) 2017 ~ present NAVER Corp.
14
14
  * billboard.js project is licensed under the MIT license
@@ -39,5 +39,4 @@ function brushEmpty(ctx) {
39
39
  if (selection) return selection[0] === selection[1];
40
40
  return true;
41
41
  }
42
- //#endregion
43
42
  export { brushEmpty, getBrushSelection };
@@ -5,13 +5,13 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.5
8
+ * @version 4.2.0-next.1
9
9
  */
10
10
  import { document as doc, window as win } from "../browser.js";
11
- import { isString } from "./type-checks.js";
12
11
  import { mergeObj, toArray } from "./object.js";
12
+ import { isString } from "./type-checks.js";
13
13
  import { pointer } from "d3-selection";
14
- //#region src/module/util/dom.ts
14
+ // src/module/util/dom.ts
15
15
  /**
16
16
  * Copyright (c) 2017 ~ present NAVER Corp.
17
17
  * billboard.js project is licensed under the MIT license
@@ -357,5 +357,4 @@ const emulateEvent = {
357
357
  }));
358
358
  }
359
359
  };
360
- //#endregion
361
360
  export { addCssRules, convertInputType, emulateEvent, getBBox, getBoundingRect, getCssRules, getElementPos, getPathBox, getPointer, getRectSegList, getScrollPosition, getTransformCTM, getTranslation, hasStyle, hasViewBox, isTabVisible, scheduleRAFUpdate, setTextValue };
@@ -5,12 +5,12 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.5
8
+ * @version 4.2.0-next.1
9
9
  */
10
10
  import { requestAnimationFrame } from "../browser.js";
11
- import { isArray, isDefined, isFunction, isNumber, isObject, isString, notEmpty } from "./type-checks.js";
12
11
  import { sanitize } from "../sanitize.js";
13
- //#region src/module/util/object.ts
12
+ import { isArray, isDefined, isFunction, isNumber, isObject, isString, notEmpty } from "./type-checks.js";
13
+ // src/module/util/object.ts
14
14
  /**
15
15
  * Copyright (c) 2017 ~ present NAVER Corp.
16
16
  * billboard.js project is licensed under the MIT license
@@ -159,7 +159,15 @@ function getUnique(data) {
159
159
  * @private
160
160
  */
161
161
  function mergeArray(arr) {
162
- return arr && arr.length ? arr.reduce((p, c) => p.concat(c)) : [];
162
+ if (!arr?.length) return [];
163
+ if (arr.length === 1) return arr[0];
164
+ const out = [];
165
+ for (let i = 0; i < arr.length; i++) {
166
+ const item = arr[i];
167
+ if (Array.isArray(item)) for (let j = 0; j < item.length; j++) out.push(item[j]);
168
+ else out.push(item);
169
+ }
170
+ return out;
163
171
  }
164
172
  /**
165
173
  * Merge object returning new object
@@ -208,7 +216,7 @@ function getMinMax(type, data) {
208
216
  let res = data.filter((v) => notEmpty(v));
209
217
  if (res.length) {
210
218
  if (isNumber(res[0])) {
211
- let result = type === "min" ? Infinity : -Infinity;
219
+ let result = type === "min" ? 1e400 : -1e400;
212
220
  for (const v of res) if (type === "min" ? v < result : v > result) result = v;
213
221
  res = result;
214
222
  } else if (res[0] instanceof Date) res = sortValue(res, type === "min")[0];
@@ -352,5 +360,4 @@ function toMap(items, keyFn, valueFn = ((item) => item)) {
352
360
  });
353
361
  return map;
354
362
  }
355
- //#endregion
356
363
  export { callFn, camelize, capitalize, deepClone, endall, extend, findIndex, getMinMax, getOption, getRandom, getRange, getUnique, hasValue, mergeArray, mergeObj, parseDate, parseShorthand, runUntil, sortValue, toArray, toMap, toSet, tplProcess };
@@ -5,9 +5,9 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.5
8
+ * @version 4.2.0-next.1
9
9
  */
10
- //#region src/module/util/type-checks.ts
10
+ // src/module/util/type-checks.ts
11
11
  /**
12
12
  * Copyright (c) 2017 ~ present NAVER Corp.
13
13
  * billboard.js project is licensed under the MIT license
@@ -44,5 +44,4 @@ const isArray = (arr) => Array.isArray(arr);
44
44
  * @private
45
45
  */
46
46
  const isObject = (obj) => obj && !obj?.nodeType && isObjectType(obj) && !isArray(obj);
47
- //#endregion
48
47
  export { asHalfPixel, ceil10, diffDomain, isArray, isBoolean, isDefined, isEmpty, isEmptyObject, isFunction, isNumber, isObject, isObjectType, isString, isUndefined, isValue, notEmpty };
@@ -5,10 +5,10 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.5
8
+ * @version 4.2.0-next.1
9
9
  */
10
10
  import { window as win } from "./browser.js";
11
- //#region src/module/worker.ts
11
+ // src/module/worker.ts
12
12
  /**
13
13
  * Copyright (c) 2017 ~ present NAVER Corp.
14
14
  * billboard.js project is licensed under the MIT license
@@ -330,5 +330,4 @@ function cleanupWorkers() {
330
330
  disabledKeys.clear();
331
331
  verifiedOps.clear();
332
332
  }
333
- //#endregion
334
333
  export { cleanupWorkers, getWorker, runWorker };
@@ -5,16 +5,15 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.5
8
+ * @version 4.2.0-next.1
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
12
12
  import { select } from "d3-selection";
13
- //#region src/module/util/type-checks.ts
13
+ // src/module/util/type-checks.ts
14
14
  const isDefined = (v) => typeof v !== "undefined";
15
15
  const isObjectType = (v) => typeof v === "object";
16
- //#endregion
17
- //#region src/config/config.ts
16
+ // src/config/config.ts
18
17
  /**
19
18
  * Load configuration option
20
19
  * @param {object} config User's generation config value
@@ -40,8 +39,7 @@ function loadConfig(config) {
40
39
  });
41
40
  if (this.api) this.state.orgConfig = config;
42
41
  }
43
- //#endregion
44
- //#region src/Plugin/Plugin.ts
42
+ // src/Plugin/Plugin.ts
45
43
  /**
46
44
  * Copyright (c) 2017 ~ present NAVER Corp.
47
45
  * billboard.js project is licensed under the MIT license
@@ -63,7 +61,7 @@ var Plugin = class {
63
61
  $$;
64
62
  options;
65
63
  config;
66
- static version = "4.1.5";
64
+ static version = "4.2.0-next.1";
67
65
  /**
68
66
  * Constructor
69
67
  * @param {Any} options config option object
@@ -110,8 +108,7 @@ var Plugin = class {
110
108
  });
111
109
  }
112
110
  };
113
- //#endregion
114
- //#region src/Plugin/bubblecompare/index.ts
111
+ // src/Plugin/bubblecompare/index.ts
115
112
  /**
116
113
  * Bubble compare diagram plugin.<br>
117
114
  * Compare data 3-dimensional ways: x-axis, y-axis & bubble-size.
@@ -201,5 +198,4 @@ var BubbleCompare = class BubbleCompare extends Plugin {
201
198
  return this.$$.isBubbleZType(d) ? this.$$.getBubbleZData(d.value, "z") : d.value;
202
199
  }
203
200
  };
204
- //#endregion
205
201
  export { BubbleCompare as default };
@@ -5,11 +5,11 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.5
8
+ * @version 4.2.0-next.1
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
12
- //#region src/config/classes.ts
12
+ // src/config/classes.ts
13
13
  /**
14
14
  * Copyright (c) 2017 ~ present NAVER Corp.
15
15
  * billboard.js project is licensed under the MIT license
@@ -27,12 +27,10 @@ const $COMMON = {
27
27
  EXPANDED: "_expanded_",
28
28
  dummy: "_dummy_"
29
29
  };
30
- //#endregion
31
- //#region src/module/util/type-checks.ts
30
+ // src/module/util/type-checks.ts
32
31
  const isDefined = (v) => typeof v !== "undefined";
33
32
  const isObjectType = (v) => typeof v === "object";
34
- //#endregion
35
- //#region src/module/browser.ts
33
+ // src/module/browser.ts
36
34
  /**
37
35
  * Copyright (c) 2017 ~ present NAVER Corp.
38
36
  * billboard.js project is licensed under the MIT license
@@ -70,8 +68,7 @@ function getFallback(w) {
70
68
  const win = getGlobal();
71
69
  const doc = win?.document;
72
70
  const [requestAnimationFrame, cancelAnimationFrame, requestIdleCallback, cancelIdleCallback] = getFallback(win);
73
- //#endregion
74
- //#region src/module/util/dom.ts
71
+ // src/module/util/dom.ts
75
72
  /**
76
73
  * Get boundingClientRect or BBox with caching.
77
74
  * Internal helper for getBoundingRect() and getBBox()
@@ -119,8 +116,7 @@ function getBoundingRect(node, forceEval = false) {
119
116
  };
120
117
  }
121
118
  })();
122
- //#endregion
123
- //#region src/config/config.ts
119
+ // src/config/config.ts
124
120
  /**
125
121
  * Load configuration option
126
122
  * @param {object} config User's generation config value
@@ -146,8 +142,7 @@ function loadConfig(config) {
146
142
  });
147
143
  if (this.api) this.state.orgConfig = config;
148
144
  }
149
- //#endregion
150
- //#region src/Plugin/Plugin.ts
145
+ // src/Plugin/Plugin.ts
151
146
  /**
152
147
  * Copyright (c) 2017 ~ present NAVER Corp.
153
148
  * billboard.js project is licensed under the MIT license
@@ -169,7 +164,7 @@ var Plugin = class {
169
164
  $$;
170
165
  options;
171
166
  config;
172
- static version = "4.1.5";
167
+ static version = "4.2.0-next.1";
173
168
  /**
174
169
  * Constructor
175
170
  * @param {Any} options config option object
@@ -216,8 +211,7 @@ var Plugin = class {
216
211
  });
217
212
  }
218
213
  };
219
- //#endregion
220
- //#region src/Plugin/sparkline/Options.ts
214
+ // src/Plugin/sparkline/Options.ts
221
215
  /**
222
216
  * Copyright (c) 2021 ~ present NAVER Corp.
223
217
  * billboard.js project is licensed under the MIT license
@@ -246,8 +240,7 @@ var Options = class {
246
240
  selector: void 0 };
247
241
  }
248
242
  };
249
- //#endregion
250
- //#region src/Plugin/sparkline/index.ts
243
+ // src/Plugin/sparkline/index.ts
251
244
  /**
252
245
  * Sparkline plugin.<br>
253
246
  * Generates sparkline charts
@@ -439,5 +432,4 @@ var Sparkline = class extends Plugin {
439
432
  });
440
433
  }
441
434
  };
442
- //#endregion
443
435
  export { Sparkline as default };
@@ -5,21 +5,20 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.5
8
+ * @version 4.2.0-next.1
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
12
12
  import { interpolateHslLong } from "d3-interpolate";
13
13
  import { scaleSequential, scaleSequentialLog, scaleSymlog } from "d3-scale";
14
14
  import { axisRight } from "d3-axis";
15
- //#region src/config/classes.ts
15
+ // src/config/classes.ts
16
16
  const $TOOLTIP = {
17
17
  tooltip: "bb-tooltip",
18
18
  tooltipContainer: "bb-tooltip-container",
19
19
  tooltipName: "bb-tooltip-name"
20
20
  };
21
- //#endregion
22
- //#region src/module/util/type-checks.ts
21
+ // src/module/util/type-checks.ts
23
22
  const isFunction = (v) => typeof v === "function";
24
23
  const isString = (v) => typeof v === "string";
25
24
  const isNumber = (v) => typeof v === "number";
@@ -31,8 +30,7 @@ const isEmptyObject = (obj) => {
31
30
  return true;
32
31
  };
33
32
  const isEmpty = (o) => isUndefined(o) || o === null || isString(o) && o.length === 0 || isObjectType(o) && !(o instanceof Date) && isEmptyObject(o) || isNumber(o) && isNaN(o);
34
- //#endregion
35
- //#region src/module/browser.ts
33
+ // src/module/browser.ts
36
34
  /**
37
35
  * Copyright (c) 2017 ~ present NAVER Corp.
38
36
  * billboard.js project is licensed under the MIT license
@@ -101,8 +99,7 @@ function parseDate(date) {
101
99
  if (!parsedDate || isNaN(+parsedDate)) console && console.error && console.error(`Failed to parse x '${date}' to Date object`);
102
100
  return parsedDate;
103
101
  }
104
- //#endregion
105
- //#region src/module/util/dom.ts
102
+ // src/module/util/dom.ts
106
103
  /**
107
104
  * Get boundingClientRect or BBox with caching.
108
105
  * Internal helper for getBoundingRect() and getBBox()
@@ -150,8 +147,7 @@ function getBBox(node, forceEval = false) {
150
147
  };
151
148
  }
152
149
  })();
153
- //#endregion
154
- //#region src/config/config.ts
150
+ // src/config/config.ts
155
151
  /**
156
152
  * Load configuration option
157
153
  * @param {object} config User's generation config value
@@ -177,8 +173,7 @@ function loadConfig(config) {
177
173
  });
178
174
  if (this.api) this.state.orgConfig = config;
179
175
  }
180
- //#endregion
181
- //#region src/Plugin/Plugin.ts
176
+ // src/Plugin/Plugin.ts
182
177
  /**
183
178
  * Copyright (c) 2017 ~ present NAVER Corp.
184
179
  * billboard.js project is licensed under the MIT license
@@ -200,7 +195,7 @@ var Plugin = class {
200
195
  $$;
201
196
  options;
202
197
  config;
203
- static version = "4.1.5";
198
+ static version = "4.2.0-next.1";
204
199
  /**
205
200
  * Constructor
206
201
  * @param {Any} options config option object
@@ -247,8 +242,7 @@ var Plugin = class {
247
242
  });
248
243
  }
249
244
  };
250
- //#endregion
251
- //#region src/Plugin/stanford/classes.ts
245
+ // src/Plugin/stanford/classes.ts
252
246
  /**
253
247
  * Copyright (c) 2017 ~ present NAVER Corp.
254
248
  * billboard.js project is licensed under the MIT license
@@ -265,8 +259,7 @@ var classes_default = {
265
259
  stanfordRegion: "bb-stanford-region",
266
260
  stanfordRegions: "bb-stanford-regions"
267
261
  };
268
- //#endregion
269
- //#region src/Plugin/stanford/util.ts
262
+ // src/Plugin/stanford/util.ts
270
263
  /**
271
264
  * Copyright (c) 2017 ~ present NAVER Corp.
272
265
  * billboard.js project is licensed under the MIT license
@@ -347,8 +340,7 @@ function getCentroid(points) {
347
340
  y: y / f
348
341
  };
349
342
  }
350
- //#endregion
351
- //#region src/Plugin/stanford/ColorScale.ts
343
+ // src/Plugin/stanford/ColorScale.ts
352
344
  /**
353
345
  * Copyright (c) 2017 ~ present NAVER Corp.
354
346
  * billboard.js project is licensed under the MIT license
@@ -412,8 +404,7 @@ var ColorScale = class {
412
404
  return this.xForColorScale() + this.owner.config.padding_left + 20;
413
405
  }
414
406
  };
415
- //#endregion
416
- //#region src/Plugin/stanford/Elements.ts
407
+ // src/Plugin/stanford/Elements.ts
417
408
  /**
418
409
  * Copyright (c) 2017 ~ present NAVER Corp.
419
410
  * billboard.js project is licensed under the MIT license
@@ -487,8 +478,7 @@ var Elements = class {
487
478
  return (d.axis && d.axis === "y2" ? $$.scale.y2 : $$.scale.y)(xyValue ? d[xyValue] : $$.getBaseValue(d));
488
479
  }
489
480
  };
490
- //#endregion
491
- //#region src/Plugin/stanford/Options.ts
481
+ // src/Plugin/stanford/Options.ts
492
482
  /**
493
483
  * Copyright (c) 2017 ~ present NAVER Corp.
494
484
  * billboard.js project is licensed under the MIT license
@@ -633,29 +623,12 @@ var Options = class {
633
623
  };
634
624
  }
635
625
  };
636
- //#endregion
637
- //#region src/Plugin/stanford/index.ts
626
+ // src/Plugin/stanford/index.ts
638
627
  /**
639
628
  * Copyright (c) 2017 ~ present NAVER Corp.
640
629
  * billboard.js project is licensed under the MIT license
641
630
  */
642
631
  /**
643
- * Creates an HSL color object.
644
- * @param {number} h Hue (0-360)
645
- * @param {number} s Saturation (0-1)
646
- * @param {number} l Lightness (0-1)
647
- * @param {number} opacity Opacity (0-1), defaults to 1
648
- * @returns {HSLColor} HSL color object
649
- */
650
- function hsl(h, s, l, opacity = 1) {
651
- return {
652
- h: +h,
653
- s: +s,
654
- l: +l,
655
- opacity: +opacity
656
- };
657
- }
658
- /**
659
632
  * Stanford diagram plugin
660
633
  * - **NOTE:**
661
634
  * - Plugins aren't built-in. Need to be loaded or imported to be used.
@@ -789,8 +762,8 @@ var Stanford = class extends Plugin {
789
762
  const { config } = this;
790
763
  const target = this.$$.data.targets[0];
791
764
  target.values.sort(compareEpochs);
792
- let minEpoch = Infinity;
793
- let maxEpoch = -Infinity;
765
+ let minEpoch = 1e400;
766
+ let maxEpoch = -1e400;
794
767
  for (let i = 0; i < target.values.length; i++) {
795
768
  const e = target.values[i].epochs;
796
769
  if (e < minEpoch) minEpoch = e;
@@ -798,7 +771,7 @@ var Stanford = class extends Plugin {
798
771
  }
799
772
  target.minEpochs = !isNaN(config.scale_min) ? config.scale_min : minEpoch;
800
773
  target.maxEpochs = !isNaN(config.scale_max) ? config.scale_max : maxEpoch;
801
- target.colors = isFunction(config.colors) ? config.colors : interpolateHslLong(hsl(250, 1, .5), hsl(0, 1, .5));
774
+ target.colors = isFunction(config.colors) ? config.colors : interpolateHslLong("hsl(250, 100%, 50%)", "hsl(0, 100%, 50%)");
802
775
  target.colorscale = scaleSequentialLog(target.colors).domain([target.minEpochs, target.maxEpochs]);
803
776
  }
804
777
  getStanfordPointColor(d) {
@@ -840,5 +813,4 @@ var Stanford = class extends Plugin {
840
813
  };
841
814
  }
842
815
  };
843
- //#endregion
844
816
  export { Stanford as default };
@@ -5,11 +5,11 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.1.5
8
+ * @version 4.2.0-next.1
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
12
- //#region src/module/util/type-checks.ts
12
+ // src/module/util/type-checks.ts
13
13
  const isFunction = (v) => typeof v === "function";
14
14
  const isString = (v) => typeof v === "string";
15
15
  const isNumber = (v) => typeof v === "number";
@@ -23,8 +23,7 @@ const isObjectType = (v) => typeof v === "object";
23
23
  * @private
24
24
  */
25
25
  const isArray = (arr) => Array.isArray(arr);
26
- //#endregion
27
- //#region src/module/sanitize.ts
26
+ // src/module/sanitize.ts
28
27
  /**
29
28
  * Copyright (c) 2017 ~ present NAVER Corp.
30
29
  * billboard.js project is licensed under the MIT license
@@ -367,8 +366,7 @@ function sanitize(str) {
367
366
  return match.replace(/</g, "&lt;");
368
367
  });
369
368
  }
370
- //#endregion
371
- //#region src/module/util/object.ts
369
+ // src/module/util/object.ts
372
370
  /**
373
371
  * Process the template & return bound string
374
372
  * @param {string} tpl Template string
@@ -379,8 +377,7 @@ function sanitize(str) {
379
377
  function tplProcess(tpl, data) {
380
378
  return sanitize(tpl.replace(/\{=([^}]+)\}/g, (_, key) => data[key] ?? ""));
381
379
  }
382
- //#endregion
383
- //#region src/config/config.ts
380
+ // src/config/config.ts
384
381
  /**
385
382
  * Load configuration option
386
383
  * @param {object} config User's generation config value
@@ -406,8 +403,7 @@ function loadConfig(config) {
406
403
  });
407
404
  if (this.api) this.state.orgConfig = config;
408
405
  }
409
- //#endregion
410
- //#region src/Plugin/Plugin.ts
406
+ // src/Plugin/Plugin.ts
411
407
  /**
412
408
  * Copyright (c) 2017 ~ present NAVER Corp.
413
409
  * billboard.js project is licensed under the MIT license
@@ -429,7 +425,7 @@ var Plugin = class {
429
425
  $$;
430
426
  options;
431
427
  config;
432
- static version = "4.1.5";
428
+ static version = "4.2.0-next.1";
433
429
  /**
434
430
  * Constructor
435
431
  * @param {Any} options config option object
@@ -476,8 +472,7 @@ var Plugin = class {
476
472
  });
477
473
  }
478
474
  };
479
- //#endregion
480
- //#region src/Plugin/tableview/const.ts
475
+ // src/Plugin/tableview/const.ts
481
476
  const defaultStyle = {
482
477
  id: "__tableview-style__",
483
478
  class: "bb-tableview",
@@ -515,8 +510,7 @@ const tpl = {
515
510
  tbodyHeader: `<th scope="row">{=value}</th>`,
516
511
  tbody: `<td>{=value}</td>`
517
512
  };
518
- //#endregion
519
- //#region src/Plugin/tableview/Options.ts
513
+ // src/Plugin/tableview/Options.ts
520
514
  /**
521
515
  * Copyright (c) 2021 ~ present NAVER Corp.
522
516
  * billboard.js project is licensed under the MIT license
@@ -638,8 +632,7 @@ var Options = class {
638
632
  };
639
633
  }
640
634
  };
641
- //#endregion
642
- //#region src/Plugin/tableview/index.ts
635
+ // src/Plugin/tableview/index.ts
643
636
  /**
644
637
  * Copyright (c) 2021 ~ present NAVER Corp.
645
638
  * billboard.js project is licensed under the MIT license
@@ -804,5 +797,4 @@ var TableView = class extends Plugin {
804
797
  }
805
798
  }
806
799
  };
807
- //#endregion
808
800
  export { TableView as default, isValidTableViewOptions };