billboard.js 3.14.0 → 3.14.2

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 (53) hide show
  1. package/dist/billboard.css +1 -1
  2. package/dist/billboard.js +85 -47
  3. package/dist/billboard.min.css +1 -1
  4. package/dist/billboard.min.js +9 -9
  5. package/dist/billboard.pkgd.js +1626 -948
  6. package/dist/billboard.pkgd.min.js +16 -16
  7. package/dist/plugin/billboardjs-plugin-bubblecompare.js +3 -3
  8. package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
  9. package/dist/plugin/billboardjs-plugin-sparkline.js +10 -4
  10. package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
  11. package/dist/plugin/billboardjs-plugin-stanford.js +10 -4
  12. package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
  13. package/dist/plugin/billboardjs-plugin-tableview.js +10 -4
  14. package/dist/plugin/billboardjs-plugin-tableview.min.js +4 -4
  15. package/dist/plugin/billboardjs-plugin-textoverlap.js +10 -4
  16. package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
  17. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.js +1607 -967
  18. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +5 -5
  19. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +1615 -969
  20. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +7 -7
  21. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +1616 -970
  22. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +15 -15
  23. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +1617 -971
  24. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +8 -8
  25. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +1618 -972
  26. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +7 -7
  27. package/dist/theme/dark.css +1 -1
  28. package/dist/theme/dark.min.css +1 -1
  29. package/dist/theme/datalab.css +1 -1
  30. package/dist/theme/datalab.min.css +1 -1
  31. package/dist/theme/graph.css +1 -1
  32. package/dist/theme/graph.min.css +1 -1
  33. package/dist/theme/insight.css +1 -1
  34. package/dist/theme/insight.min.css +1 -1
  35. package/dist/theme/modern.css +1 -1
  36. package/dist/theme/modern.min.css +1 -1
  37. package/dist-esm/billboard.js +97 -58
  38. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  39. package/dist-esm/plugin/billboardjs-plugin-sparkline.js +2 -2
  40. package/dist-esm/plugin/billboardjs-plugin-stanford.js +2 -2
  41. package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
  42. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
  43. package/package.json +20 -20
  44. package/src/ChartInternal/Axis/Axis.ts +23 -0
  45. package/src/ChartInternal/data/data.ts +4 -3
  46. package/src/ChartInternal/interactions/eventrect.ts +1 -4
  47. package/src/ChartInternal/interactions/subchart.ts +2 -25
  48. package/src/ChartInternal/interactions/zoom.ts +21 -0
  49. package/src/ChartInternal/internals/tooltip.ts +29 -20
  50. package/src/ChartInternal/shape/point.ts +7 -6
  51. package/src/config/Options/axis/x.ts +2 -1
  52. package/src/module/util.ts +10 -2
  53. package/types/axis.d.ts +2 -2
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.14.0
8
+ * @version 3.14.2
9
9
  */
10
10
  /*-- Dark Theme --*/
11
11
  /*-- Default color pattern --*/
@@ -5,5 +5,5 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.14.0
8
+ * @version 3.14.2
9
9
  */.bb-color-pattern{background-image:url(#4a7fff;#b02c2c;#1ca46c;#b47300;#49baf3;#ed7e13;#cfaa00;#a6cd19;#dccb52;#f5d194;)}.bb svg{font-size:12px;font-family:Helvetica,Arial,sans-serif,nanumgothic,Dotum;line-height:1}.bb path,.bb line{fill:none;stroke:#8d9cab}.bb text,.bb .bb-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;fill:#8d9cab;font-size:11px}.bb-legend-item-title,.bb-xgrid-focus,.bb-ygrid-focus,.bb-ygrid,.bb-line{shape-rendering:crispEdges}.bb-chart-arcs .bb-needle{fill:#8d9cab}.bb-chart-funnels path{stroke-width:0}.bb-chart-funnels+.bb-chart-texts text{fill:#fff}.bb-axis{shape-rendering:crispEdges}.bb-axis .bb-axis-x-tooltip,.bb-axis .bb-axis-y-tooltip,.bb-axis .bb-axis-y2-tooltip{font-size:.9em;fill:#fff;white-space:nowrap}.bb-axis-y text,.bb-axis-y2 text{fill:#8d9cab}.bb-event-rects{fill-opacity:1!important}.bb-event-rects .bb-event-rect{fill:transparent}.bb-event-rects .bb-event-rect._active_{fill:#27c9030d}.tick._active_ text{fill:#00c83c!important}.bb-grid{pointer-events:none}.bb-grid line{stroke:#5c666e}.bb-xgrid-focus line,.bb-ygrid-focus line{stroke:#ccd9e6}.bb-text.bb-empty{fill:#8d9cab}.bb-line{stroke-width:1px}.bb-circle._expanded_{stroke-width:2px;stroke:8d9cab}rect.bb-circle._expanded_,use.bb-circle._expanded_{stroke-width:1px}.selection{stroke:none;fill:#ccd9e6}.bb-selected-circle{fill:#ccd9e6;stroke-width:2px}.bb-bar{stroke-width:.5px}.bb-bar._expanded_{fill-opacity:.75}.bb-candlestick{stroke-width:1px}.bb-candlestick._expanded_{fill-opacity:.75}.bb-target.bb-focused,.bb-circles.bb-focused{opacity:1}.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step,.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step{stroke-width:2px}.bb-target.bb-defocused,.bb-circles.bb-defocused{opacity:.5!important}.bb-target.bb-defocused .text-overlapping,.bb-circles.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4}.bb-region rect{fill-opacity:.5}.bb-region.selected rect{fill:#27c903}.bb-zoom-brush{fill-opacity:.25;fill:#ccd9e6}.bb-brush .extent{fill-opacity:.5}.bb-legend-item{user-select:none}.bb-legend-item line{stroke-width:10px;stroke-dasharray:3px}.bb-legend-item text{transform:translateY(-1px)}.bb-legend-item-hidden{opacity:.5}.bb-legend-background{opacity:.75;stroke:#d3d3d3;stroke-width:1}.bb-title{font-size:14px}.bb-chart-treemaps rect{stroke:#8d9cab;stroke-width:1px}.bb-tooltip-container{z-index:10;font-family:Helvetica,Arial,sans-serif,nanumgothic,Dotum;user-select:none}.bb-tooltip{border-collapse:separate;border-spacing:0;empty-cells:show;border:1px solid #828181;border-radius:5px;background-color:#000;text-align:left;font-size:11px;color:#fff;white-space:nowrap}.bb-tooltip th{font-size:12px;padding:4px 8px;text-align:left;border-bottom:solid 1px #828181}.bb-tooltip td{padding:4px 6px}.bb-tooltip td:first-child{padding-left:8px}.bb-tooltip td:last-child{padding-right:8px}.bb-tooltip td>span,.bb-tooltip td>svg{display:inline-block;width:7px;height:7px;margin:-1px 6px 0 0;vertical-align:middle}.bb-tooltip td.value{border-left:1px solid transparent;text-align:right}.bb-tooltip .bb-tooltip-title{display:inline-block;color:#aaa;line-height:20px}.bb-tooltip .bb-tooltip-detail table{border-collapse:collapse;border-spacing:0}.bb-tooltip .bb-tooltip-detail .bb-tooltip-name,.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{font-size:11px;line-height:13px;padding:4px 0 3px;color:#444;text-align:left;font-weight:400}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{padding-left:5px;font-weight:800;font-size:12px}.bb-area{stroke-width:0;opacity:.5}.bb-chart-arcs-title{dominant-baseline:middle;font-size:1.3em}text.bb-chart-arcs-gauge-title{dominant-baseline:middle;font-size:2.7em}.bb-chart-arcs .bb-chart-arcs-background{fill:#3f3f3f;stroke:none}.bb-chart-arcs .bb-chart-arcs-gauge-unit{fill:#828181;font-size:16px}.bb-chart-arcs .bb-chart-arcs-gauge-min,.bb-chart-arcs .bb-chart-arcs-gauge-max{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{font-size:16px!important;fill:#b6c2ce;font-weight:600}.bb-chart-arcs path.empty{fill:#eaeaea;stroke-width:0}.bb-chart-arcs .bb-levels circle{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-arcs .bb-levels text{fill:#848282}.bb-chart-arc .bb-gauge-value{fill:#b6c2ce}.bb-chart-arc rect{stroke:#8d9cab;stroke-width:1}.bb-chart-arc text{fill:#fff;font-size:13px}.bb-chart-radars .bb-levels polygon{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-radars .bb-levels text{fill:#848282}.bb-chart-radars .bb-axis line{stroke:#848282;stroke-width:.5px}.bb-chart-radars .bb-axis text{font-size:1.15em;cursor:default}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:1px}.bb-button{position:absolute;top:10px;right:10px}.bb-button .bb-zoom-reset{border:solid 1px #ccc;background-color:#000;color:#fff;padding:5px;border-radius:5px;cursor:pointer}
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.14.0
8
+ * @version 3.14.2
9
9
  */
10
10
  /*-- Datalab Theme --*/
11
11
  /*-- Default color pattern --*/
@@ -5,5 +5,5 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.14.0
8
+ * @version 3.14.2
9
9
  */.bb-color-pattern{background-image:url(#2ac4b3;#feaf29;#ff617b;#73a2ef;#b180d0;#3064cf;#d0a45f;#8aaec7;#ef65a2;#8aaec7;)}.bb svg{font-size:11px;font-family:Sans Pro,Arial,sans-serif,nanumgothic,Dotum;line-height:1}.bb path,.bb line{fill:none;stroke:#000}.bb text,.bb .bb-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-font-smoothing:antialiased;user-select:none;fill:#555;font-size:11px}.bb-chart-arcs .bb-needle{fill:#000}.bb-chart-funnels path{stroke-width:0}.bb-chart-funnels+.bb-chart-texts text{fill:#fff}.bb-axis{stroke-width:.7px}.bb-axis .bb-axis-x-tooltip,.bb-axis .bb-axis-y-tooltip,.bb-axis .bb-axis-y2-tooltip{font-size:.9em;fill:#fff;white-space:nowrap}.bb-axis-y text,.bb-axis-y2 text{fill:#737373}.bb-event-rects{fill-opacity:1!important}.bb-event-rects .bb-event-rect{fill:transparent}.bb-event-rects .bb-event-rect._active_{fill:#27c9030d}.tick._active_ text{fill:#00c83c!important}.bb-grid{pointer-events:none}.bb-grid line{stroke:#f1f1f1}.bb-xgrid-focus line,.bb-ygrid-focus line{stroke:#ddd}.bb-text.bb-empty{fill:#767676}.bb-line{stroke-width:.7px}.bb-circle{fill:#fff!important}.bb-circle._expanded_{stroke-width:2px}.bb-selected-circle{fill:#fff;stroke-width:2px}.bb-bar{stroke-width:1px}.bb-bar._expanded_{fill-opacity:.75}.bb-candlestick{stroke-width:1px}.bb-candlestick._expanded_{fill-opacity:.75}.bb-target.bb-focused,.bb-circles.bb-focused{opacity:1}.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step,.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step{stroke-width:2px}.bb-target.bb-defocused,.bb-circles.bb-defocused{opacity:.3!important}.bb-target.bb-defocused .text-overlapping,.bb-circles.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4}.bb-region rect{fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-zoom-brush,.bb-brush .extent{fill-opacity:.1}.bb-legend-item{user-select:none}.bb-legend-item line.bb-legend-item-tile{stroke-linecap:round;stroke-width:8px;transform:translate(7px,1px);stroke-dasharray:1 20}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{opacity:.75;fill:#fff;stroke:#d3d3d3;stroke-width:1}.bb-title{font-size:14px}.bb-chart-treemaps rect{stroke:#000;stroke-width:1px}.bb-tooltip-container{z-index:10;font-family:Sans Pro,Arial,sans-serif,nanumgothic,Dotum;user-select:none}.bb-tooltip{border-collapse:separate;border-spacing:0;border-radius:2px;empty-cells:show;border:1px solid #999;background-color:#fff;text-align:left;font-size:11px;-webkit-font-smoothing:antialiased;white-space:nowrap}.bb-tooltip th{font-size:13px;padding:2px 8px;text-align:left;border-bottom:solid 2px #ff2d2d;background-color:#0b00b1;color:#fffdfd}.bb-tooltip td{padding:4px 6px}.bb-tooltip td:first-child{padding-left:8px}.bb-tooltip td:last-child{padding-right:8px}.bb-tooltip td>span,.bb-tooltip td>svg{display:inline-block;width:8px;height:8px;margin-right:6px;border:solid 1px #000;border-radius:3px;vertical-align:middle}.bb-tooltip td.value{border-left:1px solid transparent;text-align:right}.bb-tooltip .bb-tooltip-title{display:inline-block;color:#aaa;line-height:20px}.bb-tooltip .bb-tooltip-detail table{border-collapse:collapse;border-spacing:0}.bb-tooltip .bb-tooltip-detail .bb-tooltip-name,.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{font-size:11px;line-height:13px;padding:4px 0 3px;color:#444;text-align:left;font-weight:400}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{padding-left:5px;font-weight:800;font-size:11px}.bb-area{stroke-width:0;opacity:.2}.bb-chart-arcs-title{dominant-baseline:middle;font-size:1.3em}text.bb-chart-arcs-gauge-title{dominant-baseline:middle;font-size:2.7em}.bb-chart-arcs .bb-chart-arcs-background{fill:#e0e0e0;stroke:none}.bb-chart-arcs .bb-chart-arcs-gauge-unit{fill:#000;font-size:18px}.bb-chart-arcs .bb-chart-arcs-gauge-min,.bb-chart-arcs .bb-chart-arcs-gauge-max{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{font-size:18px!important;fill:#000;font-weight:600}.bb-chart-arcs path.empty{fill:#eaeaea;stroke-width:0}.bb-chart-arcs .bb-levels circle{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-arcs .bb-levels text{fill:#848282}.bb-line{shape-rendering:crispEdges}.bb-chart-arc .bb-gauge-value{fill:#3b6969}.bb-chart-arc path{stroke:#000;stroke-width:.5px}.bb-chart-arc rect{stroke:#fff;stroke-width:1}.bb-chart-arc text{fill:#fff;font-size:14px}.bb-chart-radars .bb-levels polygon{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-radars .bb-levels text{fill:#848282}.bb-chart-radars .bb-axis line{stroke:#848282;stroke-width:.5px}.bb-chart-radars .bb-axis text{font-size:1.15em;cursor:default}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:.7px}.bb-button{position:absolute;top:10px;right:10px}.bb-button .bb-zoom-reset{border:solid 1px #ccc;background-color:#fff;padding:5px;border-radius:5px;cursor:pointer}
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.14.0
8
+ * @version 3.14.2
9
9
  */
10
10
  /*-- Graph Theme --*/
11
11
  /*-- Default color pattern --*/
@@ -5,5 +5,5 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.14.0
8
+ * @version 3.14.2
9
9
  */.bb-color-pattern{background-image:url(#65CFC2;#D0A45F;#64A4F5;#EF65A2;#A377FE;#8AAEC7;#FF7E5A;#898EFE;#FFAC35;#70B0FF;)}.bb svg{font-size:12px;font-family:Helvetica,Apple SD Gothic Neo,Arial,sans-serif,nanumgothic,Dotum;line-height:1}.bb path,.bb line{fill:none;stroke:#8c8c8c}.bb text,.bb .bb-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;fill:#555;font-size:12px;letter-spacing:-.3px}.bb-legend-item-title,.bb-xgrid-focus,.bb-ygrid-focus,.bb-ygrid{shape-rendering:crispEdges}.bb-chart-arcs .bb-needle{fill:#000}.bb-chart-funnels path{stroke-width:0}.bb-chart-funnels+.bb-chart-texts text{fill:#fff}.bb-axis{shape-rendering:crispEdges}.bb-axis .bb-axis-x-tooltip,.bb-axis .bb-axis-y-tooltip,.bb-axis .bb-axis-y2-tooltip{font-size:.9em;fill:#fff;white-space:nowrap}.bb-axis-y text,.bb-axis-y2 text{fill:#8c8c8c}.bb-event-rects{fill-opacity:1!important}.bb-event-rects .bb-event-rect{fill:transparent}.bb-event-rects .bb-event-rect._active_{fill:#27c9030d}.tick._active_ text{fill:#00c83c!important}.bb-grid{pointer-events:none}.bb-grid line{stroke:#f1f1f1}.bb-xgrid-focus line,.bb-ygrid-focus line{stroke:#ffb6b6;stroke-dasharray:3px}.bb-text.bb-empty{fill:#767676}.bb-line{stroke-width:1px}.bb-circle._expanded_{stroke-width:2px}rect.bb-circle._expanded_,use.bb-circle._expanded_{stroke-width:2px}.bb-selected-circle{fill:#fff;stroke-width:2px}.bb-bar{stroke-width:0}.bb-bar._expanded_{fill-opacity:.75}.bb-candlestick{stroke-width:1px}.bb-candlestick._expanded_{fill-opacity:.75}.bb-target.bb-focused,.bb-circles.bb-focused{opacity:1}.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step,.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step{stroke-width:2px}.bb-target.bb-defocused,.bb-circles.bb-defocused{opacity:.3!important}.bb-target.bb-defocused .text-overlapping,.bb-circles.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4}.bb-region rect{fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-zoom-brush,.bb-brush .extent{fill-opacity:.1}.bb-legend-item{user-select:none}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{opacity:.75;fill:#fff;stroke:#d3d3d3;stroke-width:1px}.bb-legend-item line{stroke-dasharray:1px}.bb-title{font-size:14px}.bb-chart-treemaps rect{stroke:#fff;stroke-width:1px}.bb-tooltip-container{z-index:10;font-family:Helvetica,Apple SD Gothic Neo,Arial,sans-serif,nanumgothic,Dotum;user-select:none}.bb-tooltip{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-collapse:separate;border-spacing:0;empty-cells:show;border:1px solid #999;border-radius:2px;background-color:#fff;text-align:left;font-size:12px;box-shadow:.5px .5px 1px #999;white-space:nowrap}.bb-tooltip th{font-size:12px;padding:4px 8px;text-align:center;border-bottom:dotted 1px #000;background-color:#efefef;color:#000}.bb-tooltip tr:last-child td{border-bottom:none}.bb-tooltip td{padding:3px 6px;background-color:#fff;border-bottom:solid 1px #eee}.bb-tooltip td:first-child{padding-left:5px;border-right:solid 1px #eee}.bb-tooltip td:last-child{padding-right:5px}.bb-tooltip td>span,.bb-tooltip td>svg{display:inline-block;width:5px;height:12px;margin-right:6px;vertical-align:middle}.bb-tooltip td.value{border-left:1px solid transparent;text-align:right}.bb-tooltip .bb-tooltip-title{display:inline-block;color:#aaa;line-height:20px}.bb-tooltip .bb-tooltip-detail table{border-collapse:collapse;border-spacing:1px;font-size:12px}.bb-tooltip .bb-tooltip-detail .bb-tooltip-name,.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{line-height:13px;padding:4px 0 3px;color:#444;text-align:left;font-weight:400}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{padding-left:5px;font-weight:800}.bb-area{stroke-width:0;opacity:.2}.bb-chart-arcs-title{dominant-baseline:middle;font-size:1.3em}text.bb-chart-arcs-gauge-title{dominant-baseline:middle;font-size:2.7em}.bb-chart-arcs .bb-chart-arcs-background{fill:#e0e0e0;stroke:#fff}.bb-chart-arcs .bb-chart-arcs-gauge-unit{fill:#000;font-size:16px}.bb-chart-arcs .bb-chart-arcs-gauge-min,.bb-chart-arcs .bb-chart-arcs-gauge-max{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{font-size:16px!important;fill:#8c8c8c;font-style:italic}.bb-chart-arcs path.empty{fill:#eaeaea;stroke-width:0}.bb-chart-arcs .bb-levels circle{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-arcs .bb-levels text{fill:#848282}.bb-chart-arc .bb-gauge-value{fill:#8c8c8c;font-style:italic}.bb-chart-arc path{stroke:#fff}.bb-chart-arc rect{stroke:#fff;stroke-width:1}.bb-chart-arc text{fill:#fff;font-size:13px;font-weight:700}.bb-chart-radars .bb-levels polygon{fill:none;stroke:#8c8c8c;stroke-width:.5px}.bb-chart-radars .bb-levels text{fill:#8c8c8c}.bb-chart-radars .bb-axis line{stroke:#8c8c8c;stroke-width:.5px}.bb-chart-radars .bb-axis text{font-size:1.15em;font-weight:700;cursor:default}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:1px}.bb-button{position:absolute;top:10px;right:10px}.bb-button .bb-zoom-reset{border:solid 1px #ccc;background-color:#fff;padding:5px;border-radius:5px;cursor:pointer;opacity:.8;box-shadow:1px 1px 2px #ccc}
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.14.0
8
+ * @version 3.14.2
9
9
  */
10
10
  /*-- Insight Theme --*/
11
11
  /*-- Default color pattern --*/
@@ -5,5 +5,5 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.14.0
8
+ * @version 3.14.2
9
9
  */.bb-color-pattern{background-image:url(#00c73c;#fa7171;#2ad0ff;#7294ce;#e3e448;#cc7e6e;#fb6ccf;#c98dff;#4aea99;#bbbbbb;)}.bb svg{font-size:12px;font-family:sans-serif,Arial,nanumgothic,Dotum;line-height:1}.bb path,.bb line{fill:none;stroke:#c4c4c4}.bb text,.bb .bb-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;fill:#555;font-size:11px}.bb-legend-item-title,.bb-xgrid-focus,.bb-ygrid-focus,.bb-ygrid{shape-rendering:crispEdges}.bb-chart-arcs .bb-needle{fill:#000}.bb-chart-funnels path{stroke-width:0}.bb-chart-funnels+.bb-chart-texts text{fill:#fff}.bb-axis{shape-rendering:crispEdges}.bb-axis .bb-axis-x-tooltip,.bb-axis .bb-axis-y-tooltip,.bb-axis .bb-axis-y2-tooltip{font-size:.9em;fill:#fff;white-space:nowrap}.bb-axis-y text,.bb-axis-y2 text{fill:#737373}.bb-event-rects{fill-opacity:1!important}.bb-event-rects .bb-event-rect{fill:transparent}.bb-event-rects .bb-event-rect._active_{fill:#27c9030d}.tick._active_ text{fill:#00c83c!important}.bb-grid{pointer-events:none}.bb-grid line{stroke:#f1f1f1}.bb-xgrid-focus line,.bb-ygrid-focus line{stroke:#ddd}.bb-text.bb-empty{fill:#767676}.bb-line{stroke-width:1px}.bb-circle._expanded_{fill:#fff!important;stroke-width:2px;stroke:red}rect.bb-circle._expanded_,use.bb-circle._expanded_{stroke-width:1px}.bb-selected-circle{fill:#fff;stroke-width:2px}.bb-bar{stroke-width:0}.bb-bar._expanded_{fill-opacity:.75}.bb-candlestick{stroke-width:1px}.bb-candlestick._expanded_{fill-opacity:.75}.bb-target.bb-focused,.bb-circles.bb-focused{opacity:1}.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step,.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step{stroke-width:2px}.bb-target.bb-defocused,.bb-circles.bb-defocused{opacity:.3!important}.bb-target.bb-defocused .text-overlapping,.bb-circles.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4}.bb-region rect{fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-zoom-brush,.bb-brush .extent{fill-opacity:.1}.bb-legend-item{user-select:none}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{opacity:.75;fill:#fff;stroke:#d3d3d3;stroke-width:1}.bb-title{font-size:14px}.bb-chart-treemaps rect{stroke:#fff;stroke-width:1px}.bb-tooltip-container{z-index:10;font-family:sans-serif,Arial,nanumgothic,Dotum;user-select:none}.bb-tooltip{border-collapse:separate;border-spacing:0;empty-cells:show;border:1px solid #999;background-color:#fff;text-align:left;font-size:11px;white-space:nowrap}.bb-tooltip th{font-size:12px;padding:4px 8px;text-align:left;border-bottom:solid 1px #eee}.bb-tooltip td{padding:4px 6px;background-color:#fff}.bb-tooltip td:first-child{padding-left:8px}.bb-tooltip td:last-child{padding-right:8px}.bb-tooltip td>span,.bb-tooltip td>svg{display:inline-block;width:10px;height:10px;margin-right:6px;border-radius:5px;vertical-align:middle}.bb-tooltip td.value{border-left:1px solid transparent}.bb-tooltip .bb-tooltip-title{display:inline-block;color:#aaa;line-height:20px}.bb-tooltip .bb-tooltip-detail table{border-collapse:collapse;border-spacing:0}.bb-tooltip .bb-tooltip-detail .bb-tooltip-name,.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{font-size:11px;line-height:13px;padding:4px 0 3px;color:#444;text-align:left;font-weight:400}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{padding-left:5px;font-weight:800;font-size:12px}.bb-area{stroke-width:0;opacity:.2}.bb-chart-arcs-title{dominant-baseline:middle;font-size:1.3em}text.bb-chart-arcs-gauge-title{dominant-baseline:middle;font-size:2.7em}.bb-chart-arcs .bb-chart-arcs-background{fill:#e0e0e0;stroke:none}.bb-chart-arcs .bb-chart-arcs-gauge-unit{fill:#000;font-size:16px}.bb-chart-arcs .bb-chart-arcs-gauge-min,.bb-chart-arcs .bb-chart-arcs-gauge-max{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{font-size:16px!important;fill:#000;font-weight:600}.bb-chart-arcs path.empty{fill:#eaeaea;stroke-width:0}.bb-chart-arcs .bb-levels circle{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-arcs .bb-levels text{fill:#848282}.bb-chart-arc .bb-gauge-value{fill:#000}.bb-chart-arc path{stroke:#fff}.bb-chart-arc rect{stroke:#fff;stroke-width:1}.bb-chart-arc text{fill:#fff;font-size:13px}.bb-chart-radars .bb-levels polygon{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-radars .bb-levels text{fill:#848282}.bb-chart-radars .bb-axis line{stroke:#848282;stroke-width:.5px}.bb-chart-radars .bb-axis text{font-size:1.15em;cursor:default}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:1px}.bb-button{position:absolute;top:10px;right:10px}.bb-button .bb-zoom-reset{border:solid 1px #ccc;background-color:#fff;padding:5px;border-radius:5px;cursor:pointer}
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.14.0
8
+ * @version 3.14.2
9
9
  */
10
10
  @charset "UTF-8";
11
11
  /*-- Insight Theme --*/
@@ -5,5 +5,5 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.14.0
8
+ * @version 3.14.2
9
9
  */.bb-color-pattern{background-image:url(#7ea9fa;#ffcd1e;#d33043;#41c464;#c86b74;#006bc2;#2a7e41;#f27c00;#c159ff;#bed017;)}.bb svg{font-size:12px;font-family:-apple-system,"system-ui",Noto Sans,Malgun Gothic,\b9d1\c740 \ace0\b515,helvetica,Apple SD Gothic Neo,sans-serif;line-height:1}.bb path,.bb line{fill:none;stroke:#cecece}.bb text,.bb .bb-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;fill:#555;font-size:10.5px}.bb-legend-item-title,.bb-xgrid-focus,.bb-ygrid-focus,.bb-ygrid{shape-rendering:crispEdges}.bb-chart-arcs .bb-needle{fill:#000}.bb-chart-funnels path{stroke-width:0}.bb-chart-funnels+.bb-chart-texts text{fill:#fff}.bb-axis{shape-rendering:crispEdges}.bb-axis .bb-axis-x-tooltip,.bb-axis .bb-axis-y-tooltip,.bb-axis .bb-axis-y2-tooltip{font-size:.9em;fill:#fff;white-space:nowrap}.bb-axis-y text,.bb-axis-y2 text{fill:#737373}.bb-event-rects{fill-opacity:1!important}.bb-event-rects .bb-event-rect{fill:transparent}.bb-event-rects .bb-event-rect._active_{fill:#27c9030d}.tick._active_ text{fill:#00c83c!important}.bb-grid{pointer-events:none}.bb-grid line{stroke:#f1f1f1}.bb-xgrid-focus line,.bb-ygrid-focus line{stroke:#d2bad8}.bb-text.bb-empty{fill:#767676}.bb-line{stroke-width:1px}.bb-circle._expanded_{stroke-width:2px;stroke:red}rect.bb-circle._expanded_,use.bb-circle._expanded_{stroke-width:1px}.bb-selected-circle{fill:#fff;stroke-width:2px}.bb-bar{stroke-width:0}.bb-bar._expanded_{fill-opacity:.75}.bb-candlestick{stroke-width:1px}.bb-candlestick._expanded_{fill-opacity:.75}.bb-target.bb-focused,.bb-circles.bb-focused{opacity:1}.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step,.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step{stroke-width:2px}.bb-target.bb-defocused,.bb-circles.bb-defocused{opacity:.3!important}.bb-target.bb-defocused .text-overlapping,.bb-circles.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#71808d}.bb-region rect{fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-zoom-brush{fill-opacity:.1;fill:#838181}.bb-brush .extent{fill-opacity:.1}.bb-brush .selection{fill:#838181;fill-opacity:.2}.bb-brush path{stroke:#838181}.bb-legend-item{user-select:none}.bb-legend-item line.bb-legend-item-tile{stroke-linecap:round;transform:translate(7px,1px);stroke-dasharray:1 20}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{opacity:.75;fill:#fff;stroke:#d3d3d3;stroke-width:1}.bb-title{font-size:14px}.bb-chart-treemaps rect{stroke:#000;stroke-width:.5px}.bb-tooltip-container{z-index:10;font-family:-apple-system,"system-ui",Noto Sans,Malgun Gothic,\b9d1\c740 \ace0\b515,helvetica,Apple SD Gothic Neo,sans-serif;user-select:none}.bb-tooltip{border-collapse:separate;border-spacing:0;empty-cells:show;border:1px solid #999;color:#fff;border-radius:5px;background-color:#404244;text-align:left;font-size:11px;white-space:nowrap;opacity:.9}.bb-tooltip th{font-size:11px;padding:3px 6px 0;text-align:left}.bb-tooltip td{padding:3px}.bb-tooltip td:first-child{padding-left:7px}.bb-tooltip td:last-child{padding-right:8px}.bb-tooltip td>span,.bb-tooltip td>svg{display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:5px;vertical-align:middle}.bb-tooltip td.value{border-left:1px solid transparent;text-align:right}.bb-tooltip .bb-tooltip-title{display:inline-block;color:#aaa;line-height:20px}.bb-tooltip .bb-tooltip-detail table{border-collapse:collapse;border-spacing:0}.bb-tooltip .bb-tooltip-detail .bb-tooltip-name,.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{font-size:11px;line-height:13px;padding:4px 0 3px;color:#444;text-align:left;font-weight:400}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{padding-left:5px;font-weight:800;font-size:12px}.bb-area{stroke-width:0;opacity:.2}.bb-chart-arcs-title{dominant-baseline:middle;font-size:1.3em}text.bb-chart-arcs-gauge-title{dominant-baseline:middle;font-size:2.7em}.bb-chart-arcs .bb-chart-arcs-background{fill:#e0e0e0;stroke:#ccc}.bb-chart-arcs .bb-chart-arcs-gauge-unit{fill:#000;font-size:16px}.bb-chart-arcs .bb-chart-arcs-gauge-min,.bb-chart-arcs .bb-chart-arcs-gauge-max{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{font-size:1.8em;fill:#000;font-weight:600}.bb-chart-arcs path.empty{fill:#eaeaea;stroke-width:0}.bb-chart-arcs .bb-levels circle{fill:none;stroke:#cecece;stroke-width:.5px}.bb-chart-arcs .bb-levels text{fill:#848282}.bb-chart-arc .bb-gauge-value{fill:#000}.bb-chart-arc path{stroke:#fff}.bb-chart-arc rect{stroke:#fff;stroke-width:1}.bb-chart-arc text{fill:#fff;font-size:11px}.bb-chart-radars .bb-levels polygon{fill:none;stroke:#cecece;stroke-width:.5px}.bb-chart-radars .bb-levels text{fill:#848282}.bb-chart-radars .bb-axis line{stroke:#cecece;stroke-width:.5px}.bb-chart-radars .bb-axis text{font-size:1.15em;cursor:default}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:1px}.bb-button{position:absolute;top:10px;right:10px}.bb-button .bb-zoom-reset{border:1px solid #999;background-color:#404244;color:#fff;opacity:.9;padding:5px;border-radius:5px;cursor:pointer}
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.14.0
8
+ * @version 3.14.2
9
9
  */
10
10
  import { pointer, select, namespaces, selectAll } from 'd3-selection';
11
11
  import { timeParse, utcParse, timeFormat, utcFormat } from 'd3-time-format';
@@ -2621,7 +2621,13 @@ function getTransformCTM(node, x, y, inverse) {
2621
2621
  if (inverse === void 0) { inverse = true; }
2622
2622
  var point = new DOMPoint(x, y);
2623
2623
  var screen = node.getScreenCTM();
2624
- return point.matrixTransform(inverse ? screen === null || screen === void 0 ? void 0 : screen.inverse() : screen);
2624
+ var res = point.matrixTransform(inverse ? screen === null || screen === void 0 ? void 0 : screen.inverse() : screen);
2625
+ if (inverse === false) {
2626
+ var rect = node.getBoundingClientRect();
2627
+ res.x -= rect.x;
2628
+ res.y -= rect.y;
2629
+ }
2630
+ return res;
2625
2631
  }
2626
2632
  /**
2627
2633
  * Gets the SVGMatrix of an SVGGElement
@@ -4560,14 +4566,15 @@ var data$1 = {
4560
4566
  var e = inputType === "touch" && event.changedTouches ?
4561
4567
  event.changedTouches[0] :
4562
4568
  event;
4563
- var point = isRotated ?
4564
- e.clientY + scrollPos.y - rect.top :
4565
- e.clientX + scrollPos.x - rect.left;
4569
+ var point = isRotated ? e.clientY + scrollPos.y : e.clientX + scrollPos.x;
4566
4570
  if (hasViewBox($el.svg)) {
4567
4571
  var pos = [point, 0];
4568
4572
  isRotated && pos.reverse();
4569
4573
  point = getTransformCTM.apply(void 0, __spreadArray([$el.svg.node()], pos, false))[isRotated ? "y" : "x"];
4570
4574
  }
4575
+ else {
4576
+ point -= isRotated ? rect.top : rect.left;
4577
+ }
4571
4578
  index = findIndex(coords, point, 0, coords.length - 1, isRotated);
4572
4579
  }
4573
4580
  return index;
@@ -8642,34 +8649,46 @@ var tooltip$1 = {
8642
8649
  });
8643
8650
  }
8644
8651
  },
8652
+ /**
8653
+ * Get tooltip position when svg has vieBox attribute
8654
+ * @param {number} tWidth Tooltip width value
8655
+ * @param {number} tHeight Tooltip height value
8656
+ * @param {object} currPos Current event position value from SVG coordinate
8657
+ * @returns {object} top, left value
8658
+ */
8645
8659
  getTooltipPositionViewBox: function (tWidth, tHeight, currPos) {
8646
8660
  var _a, _b;
8647
8661
  var $$ = this;
8648
- var _c = $$.$el, eventRect = _c.eventRect, main = _c.main, config = $$.config, state = $$.state;
8662
+ var _c = $$.$el, eventRect = _c.eventRect, svg = _c.svg, config = $$.config, state = $$.state;
8649
8663
  var isRotated = config.axis_rotated;
8650
- var hasArcType = $$.hasArcType(undefined, ["radar"]) || state.hasFunnel ||
8651
- state.hasTreemap;
8652
- var target = (_b = (_a = (state.hasRadar ? main : eventRect)) === null || _a === void 0 ? void 0 : _a.node()) !== null && _b !== void 0 ? _b : state.event.target;
8653
- var size = 38; // getTransformCTM($el.svg.node(), 10, 0, false).x;
8664
+ var hasArcType = $$.hasArcType() || state.hasFunnel || state.hasTreemap;
8665
+ var target = (_b = (_a = (hasArcType ? svg : eventRect)) === null || _a === void 0 ? void 0 : _a.node()) !== null && _b !== void 0 ? _b : state.event.target;
8654
8666
  var x = currPos.x, y = currPos.y;
8655
8667
  if (state.hasAxis) {
8656
8668
  x = isRotated ? x : currPos.xAxis;
8657
8669
  y = isRotated ? currPos.xAxis : y;
8658
8670
  }
8659
- // currPos는 SVG 좌표계 기준으로 전달됨
8671
+ // currPos value based on SVG coordinate
8660
8672
  var ctm = getTransformCTM(target, x, y, false);
8673
+ var rect = target.getBoundingClientRect();
8674
+ var size = getTransformCTM(target, 20, 0, false).x;
8661
8675
  var top = ctm.y;
8662
- var left = ctm.x + size;
8676
+ var left = ctm.x + (tWidth / 2) + size;
8663
8677
  if (hasArcType) {
8664
- top += tHeight;
8665
- left -= size; // (tWidth / 2);
8678
+ if (state.hasFunnel || state.hasTreemap || state.hasRadar) {
8679
+ left -= (tWidth / 2) + size;
8680
+ top += tHeight;
8681
+ }
8682
+ else {
8683
+ top += rect.height / 2;
8684
+ left += (rect.width / 2) - (tWidth - size);
8685
+ }
8666
8686
  }
8667
- var rect = (hasArcType ? main.node() : target).getBoundingClientRect();
8668
- if (left + tWidth > rect.right) {
8669
- left = rect.right - tWidth - size;
8687
+ if (left + tWidth > rect.width) {
8688
+ left = rect.width - tWidth - size;
8670
8689
  }
8671
- if (top + tHeight > rect.bottom) {
8672
- top -= tHeight + size;
8690
+ if (top + tHeight > rect.height) {
8691
+ top -= tHeight * 2;
8673
8692
  }
8674
8693
  return {
8675
8694
  top: top,
@@ -8887,13 +8906,13 @@ var tooltip$1 = {
8887
8906
  $$.setExpand(idx, null, true);
8888
8907
  }
8889
8908
  }
8890
- // for Arc & Treemap
8891
8909
  }
8892
- else {
8910
+ else { // for Arc & Treemap
8893
8911
  var clientX_1 = event.clientX, clientY_1 = event.clientY;
8894
8912
  setTimeout(function () {
8895
- var target = doc.elementFromPoint(clientX_1, clientY_1);
8896
- var data = select(target).datum();
8913
+ var target = [clientX_1, clientY_1].every(Number.isFinite) &&
8914
+ doc.elementFromPoint(clientX_1, clientY_1);
8915
+ var data = target && select(target).datum();
8897
8916
  if (data) {
8898
8917
  var d = $$.hasArcType() ?
8899
8918
  $$.convertToArcData($$.updateAngle(data)) :
@@ -13377,6 +13396,26 @@ var Axis = /** @class */ (function () {
13377
13396
  }
13378
13397
  return type;
13379
13398
  };
13399
+ /**
13400
+ * Get extent value
13401
+ * @returns {Array} default extent
13402
+ * @private
13403
+ */
13404
+ Axis.prototype.getExtent = function () {
13405
+ var $$ = this.owner;
13406
+ var config = $$.config, scale = $$.scale;
13407
+ var extent = config.axis_x_extent;
13408
+ if (extent) {
13409
+ if (isFunction(extent)) {
13410
+ extent = extent.bind($$.api)($$.getXDomain($$.data.targets), scale.subX);
13411
+ }
13412
+ else if (this.isTimeSeries() && extent.every(isNaN)) {
13413
+ var fn_1 = parseDate.bind($$);
13414
+ extent = extent.map(function (v) { return scale.subX(fn_1(v)); });
13415
+ }
13416
+ }
13417
+ return extent;
13418
+ };
13380
13419
  Axis.prototype.init = function () {
13381
13420
  var _this = this;
13382
13421
  var $$ = this.owner;
@@ -13558,8 +13597,8 @@ var Axis = /** @class */ (function () {
13558
13597
  .scale((isX && $$.scale.zoom) || scale)
13559
13598
  .orient(orient);
13560
13599
  if (isX && this.isTimeSeries() && tickValues && !isFunction(tickValues)) {
13561
- var fn_1 = parseDate.bind($$);
13562
- tickValues = tickValues.map(function (v) { return fn_1(v); });
13600
+ var fn_2 = parseDate.bind($$);
13601
+ tickValues = tickValues.map(function (v) { return fn_2(v); });
13563
13602
  }
13564
13603
  else if (!isX && this.isTimeSeriesY()) {
13565
13604
  // https://github.com/d3/d3/blob/master/CHANGES.md#time-intervals-d3-time
@@ -14691,14 +14730,13 @@ var eventrect = {
14691
14730
  clickHandlerForMultipleXS: function (ctx) {
14692
14731
  var $$ = ctx;
14693
14732
  var config = $$.config, state = $$.state;
14694
- var pointSensitivity = config.point_sensitivity;
14695
14733
  var targetsToShow = $$.filterTargetsToShow($$.data.targets);
14696
14734
  if ($$.hasArcType(targetsToShow)) {
14697
14735
  return;
14698
14736
  }
14699
14737
  var mouse = getPointer(state.event, this);
14700
14738
  var closest = $$.findClosestFromTargets(targetsToShow, mouse);
14701
- var sensitivity = pointSensitivity === "radius" ? closest === null || closest === void 0 ? void 0 : closest.r : (isFunction(pointSensitivity) ? closest && pointSensitivity(closest) : pointSensitivity);
14739
+ var sensitivity = $$.getPointSensitivity(closest);
14702
14740
  if (!closest) {
14703
14741
  return;
14704
14742
  }
@@ -16382,7 +16420,8 @@ var x = {
16382
16420
  */
16383
16421
  axis_x_height: undefined,
16384
16422
  /**
16385
- * Set default extent for subchart and zoom. This can be an array or function that returns an array.
16423
+ * Set extent for subchart and zoom(drag only). This can be an array or function that returns an array.
16424
+ * - **NOTE:** Specifying value, will limit the zoom scope selection within.
16386
16425
  * @name axis․x․extent
16387
16426
  * @memberof Options
16388
16427
  * @type {Array|Function}
@@ -20510,22 +20549,20 @@ var shapePoint = {
20510
20549
  !$$.hasType("bubble") && !$$.hasType("scatter") && !$$.hasArcType(null, ["radar"]);
20511
20550
  },
20512
20551
  isWithinCircle: function (node, r) {
20513
- var _a = this, config = _a.config, state = _a.state;
20552
+ var state = this.state;
20514
20553
  var mouse = getPointer(state.event, node);
20515
20554
  var element = select(node);
20516
20555
  var prefix = this.isCirclePoint(node) ? "c" : "";
20517
- var sensitivity = config.point_sensitivity === "radius" ?
20518
- node.getAttribute("r") :
20519
- config.point_sensitivity;
20556
+ var pointSensitivity = this.getPointSensitivity(element === null || element === void 0 ? void 0 : element.datum());
20520
20557
  var cx = +element.attr("".concat(prefix, "x"));
20521
20558
  var cy = +element.attr("".concat(prefix, "y"));
20522
20559
  // if node don't have cx/y or x/y attribute value
20523
20560
  if (!(cx || cy) && node.nodeType === 1) {
20524
- var _b = getBoundingRect(node), x = _b.x, y = _b.y;
20561
+ var _a = getBoundingRect(node), x = _a.x, y = _a.y;
20525
20562
  cx = x;
20526
20563
  cy = y;
20527
20564
  }
20528
- return Math.sqrt(Math.pow(cx - mouse[0], 2) + Math.pow(cy - mouse[1], 2)) < (r || sensitivity);
20565
+ return Math.sqrt(Math.pow(cx - mouse[0], 2) + Math.pow(cy - mouse[1], 2)) < (r || pointSensitivity);
20529
20566
  },
20530
20567
  /**
20531
20568
  * Get data point sensitivity radius
@@ -20535,7 +20572,10 @@ var shapePoint = {
20535
20572
  getPointSensitivity: function (d) {
20536
20573
  var $$ = this;
20537
20574
  var sensitivity = $$.config.point_sensitivity;
20538
- if (isFunction(sensitivity)) {
20575
+ if (!d) {
20576
+ return sensitivity;
20577
+ }
20578
+ else if (isFunction(sensitivity)) {
20539
20579
  sensitivity = sensitivity.call($$.api, d);
20540
20580
  }
20541
20581
  else if (sensitivity === "radius") {
@@ -23421,7 +23461,7 @@ var subchart = {
23421
23461
  // set the brush extent
23422
23462
  $$.brush.scale = function (scale) {
23423
23463
  var h = config.subchart_size_height;
23424
- var extent = $$.getExtent();
23464
+ var extent = $$.axis.getExtent();
23425
23465
  if (!extent && scale.range) {
23426
23466
  extent = [[0, 0], [scale.range()[1], h]];
23427
23467
  }
@@ -23648,26 +23688,6 @@ var subchart = {
23648
23688
  $T(subchart.main.select(".".concat(CLASS.axisX)), withTransition);
23649
23689
  subchart.main.attr("transform", $$.getTranslate("context"));
23650
23690
  subXAxis.attr("transform", $$.getTranslate("subX"));
23651
- },
23652
- /**
23653
- * Get extent value
23654
- * @returns {Array} default extent
23655
- * @private
23656
- */
23657
- getExtent: function () {
23658
- var $$ = this;
23659
- var config = $$.config, scale = $$.scale;
23660
- var extent = config.axis_x_extent;
23661
- if (extent) {
23662
- if (isFunction(extent)) {
23663
- extent = extent.bind($$.api)($$.getXDomain($$.data.targets), scale.subX);
23664
- }
23665
- else if ($$.axis.isTimeSeries() && extent.every(isNaN)) {
23666
- var fn_1 = parseDate.bind($$);
23667
- extent = extent.map(function (v) { return scale.subX(fn_1(v)); });
23668
- }
23669
- }
23670
- return extent;
23671
23691
  }
23672
23692
  };
23673
23693
 
@@ -23948,6 +23968,7 @@ var zoom = {
23948
23968
  var start = 0;
23949
23969
  var end = 0;
23950
23970
  var zoomRect;
23971
+ var extent;
23951
23972
  var prop = {
23952
23973
  axis: isRotated ? "y" : "x",
23953
23974
  attr: isRotated ? "height" : "width",
@@ -23956,6 +23977,8 @@ var zoom = {
23956
23977
  $$.zoomBehaviour = drag$1()
23957
23978
  .clickDistance(4)
23958
23979
  .on("start", function (event) {
23980
+ // get extent at first zooming, when is zoomed do not consider
23981
+ extent = $$.scale.zoom ? null : $$.axis.getExtent();
23959
23982
  state.event = event;
23960
23983
  $$.setDragStatus(true);
23961
23984
  $$.unselectRect();
@@ -23967,6 +23990,14 @@ var zoom = {
23967
23990
  .attr("height", isRotated ? 0 : state.height);
23968
23991
  }
23969
23992
  start = getPointer(event, this)[prop.index];
23993
+ if (extent) {
23994
+ if (start < extent[0]) {
23995
+ start = extent[0];
23996
+ }
23997
+ else if (start > extent[1]) {
23998
+ start = extent[1];
23999
+ }
24000
+ }
23970
24001
  end = start;
23971
24002
  zoomRect
23972
24003
  .attr(prop.axis, start)
@@ -23975,6 +24006,14 @@ var zoom = {
23975
24006
  })
23976
24007
  .on("drag", function (event) {
23977
24008
  end = getPointer(event, this)[prop.index];
24009
+ if (extent) {
24010
+ if (end > extent[1]) {
24011
+ end = extent[1];
24012
+ }
24013
+ else if (end < extent[0]) {
24014
+ end = extent[0];
24015
+ }
24016
+ }
23978
24017
  zoomRect
23979
24018
  .attr(prop.axis, Math.min(start, end))
23980
24019
  .attr(prop.attr, Math.abs(end - start));
@@ -24607,7 +24646,7 @@ var zoomModule = function () {
24607
24646
  var defaults = {};
24608
24647
  /**
24609
24648
  * @namespace bb
24610
- * @version 3.14.0
24649
+ * @version 3.14.2
24611
24650
  */
24612
24651
  var bb = {
24613
24652
  /**
@@ -24617,7 +24656,7 @@ var bb = {
24617
24656
  * bb.version; // "1.0.0"
24618
24657
  * @memberof bb
24619
24658
  */
24620
- version: "3.14.0",
24659
+ version: "3.14.2",
24621
24660
  /**
24622
24661
  * Generate chart
24623
24662
  * - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when:
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.14.0
8
+ * @version 3.14.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -100,7 +100,7 @@ var Plugin = /** @class */ (function () {
100
100
  delete _this[key];
101
101
  });
102
102
  };
103
- Plugin.version = "3.14.0";
103
+ Plugin.version = "3.14.2";
104
104
  return Plugin;
105
105
  }());
106
106
 
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.14.0
8
+ * @version 3.14.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -443,7 +443,7 @@ var Plugin = /** @class */ (function () {
443
443
  delete _this[key];
444
444
  });
445
445
  };
446
- Plugin.version = "3.14.0";
446
+ Plugin.version = "3.14.2";
447
447
  return Plugin;
448
448
  }());
449
449
 
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.14.0
8
+ * @version 3.14.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -501,7 +501,7 @@ var Plugin = /** @class */ (function () {
501
501
  delete _this[key];
502
502
  });
503
503
  };
504
- Plugin.version = "3.14.0";
504
+ Plugin.version = "3.14.2";
505
505
  return Plugin;
506
506
  }());
507
507
 
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.14.0
8
+ * @version 3.14.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -290,7 +290,7 @@ var Plugin = /** @class */ (function () {
290
290
  delete _this[key];
291
291
  });
292
292
  };
293
- Plugin.version = "3.14.0";
293
+ Plugin.version = "3.14.2";
294
294
  return Plugin;
295
295
  }());
296
296
 
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.14.0
8
+ * @version 3.14.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -267,7 +267,7 @@ var Plugin = /** @class */ (function () {
267
267
  delete _this[key];
268
268
  });
269
269
  };
270
- Plugin.version = "3.14.0";
270
+ Plugin.version = "3.14.2";
271
271
  return Plugin;
272
272
  }());
273
273
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "billboard.js",
3
- "version": "3.14.0",
3
+ "version": "3.14.2",
4
4
  "description": "Re-usable easy interface JavaScript chart library, based on D3 v4+",
5
5
  "homepage": "https://naver.github.io/billboard.js/",
6
6
  "main": "dist/billboard.js",
@@ -104,7 +104,7 @@
104
104
  "devDependencies": {
105
105
  "@commitlint/cli": "^19.5.0",
106
106
  "@commitlint/config-conventional": "^19.5.0",
107
- "@eslint/js": "^9.13.0",
107
+ "@eslint/js": "^9.14.0",
108
108
  "@rollup/plugin-node-resolve": "^15.3.0",
109
109
  "@rollup/plugin-replace": "^6.0.1",
110
110
  "@rollup/plugin-typescript": "^12.1.1",
@@ -118,13 +118,13 @@
118
118
  "@testing-library/react": "^16.0.1",
119
119
  "@types/d3": "^7.4.3",
120
120
  "@types/sinon": "^17.0.3",
121
- "@vitest/browser": "^2.1.3",
122
- "@vitest/coverage-istanbul": "^2.1.3",
123
- "@vitest/ui": "^2.1.3",
121
+ "@vitest/browser": "^2.1.4",
122
+ "@vitest/coverage-istanbul": "^2.1.4",
123
+ "@vitest/ui": "^2.1.4",
124
124
  "better-docs": "^2.7.3",
125
125
  "clean-webpack-plugin": "^4.0.0",
126
126
  "cloc": "2.2.0-cloc",
127
- "core-js": "^3.38.1",
127
+ "core-js": "^3.39.0",
128
128
  "coveralls": "^3.1.1",
129
129
  "cross-env": "^7.0.3",
130
130
  "css-loader": "^7.1.2",
@@ -133,38 +133,38 @@
133
133
  "d3-format": "^3.1.0",
134
134
  "d3-polygon": "^3.0.1",
135
135
  "docdash": "^2.0.2",
136
- "dprint": "^0.47.4",
136
+ "dprint": "^0.47.5",
137
137
  "esbuild-loader": "^4.2.2",
138
- "eslint": "^9.13.0",
138
+ "eslint": "^9.14.0",
139
139
  "eslint-plugin-import": "^2.31.0",
140
- "eslint-plugin-jsdoc": "^50.4.3",
140
+ "eslint-plugin-jsdoc": "^50.5.0",
141
141
  "husky": "^9.1.6",
142
142
  "jsdoc": "^4.0.4",
143
143
  "lint-staged": "^15.2.10",
144
- "mini-css-extract-plugin": "^2.9.1",
145
- "playwright": "^1.48.1",
144
+ "mini-css-extract-plugin": "^2.9.2",
145
+ "playwright": "^1.48.2",
146
146
  "regenerator-runtime": "^0.14.1",
147
- "rollup": "^4.24.0",
147
+ "rollup": "^4.26.0",
148
148
  "rollup-plugin-delete": "^2.1.0",
149
- "sass": "^1.80.3",
150
- "sass-loader": "^16.0.2",
151
- "semantic-release": "^24.1.3",
149
+ "sass": "^1.80.7",
150
+ "sass-loader": "^16.0.3",
151
+ "semantic-release": "^24.2.0",
152
152
  "simulant": "^0.2.2",
153
153
  "sinon": "^19.0.2",
154
154
  "string-replace-loader": "^3.1.0",
155
155
  "style-loader": "^4.0.0",
156
- "tslib": "^2.8.0",
156
+ "tslib": "^2.8.1",
157
157
  "typescript": "^5.6.3",
158
- "typescript-eslint": "^8.11.0",
159
- "vitest": "^2.1.3",
160
- "webpack": "^5.95.0",
158
+ "typescript-eslint": "^8.14.0",
159
+ "vitest": "^2.1.4",
160
+ "webpack": "^5.96.1",
161
161
  "webpack-bundle-analyzer": "^4.10.2",
162
162
  "webpack-clean": "^1.2.5",
163
163
  "webpack-cli": "^5.1.4",
164
164
  "webpack-common-shake": "^2.1.0",
165
165
  "webpack-dev-server": "^5.1.0",
166
166
  "webpack-merge": "^6.0.1",
167
- "webpackbar": "^6.0.1",
167
+ "webpackbar": "^7.0.0",
168
168
  "write-file-webpack-plugin": "^4.5.1"
169
169
  },
170
170
  "packageManager": "yarn@4.3.1"