billboard.js 3.11.1 → 3.11.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 +183 -111
  3. package/dist/billboard.min.css +1 -1
  4. package/dist/billboard.min.js +2 -2
  5. package/dist/billboard.pkgd.js +183 -111
  6. package/dist/billboard.pkgd.min.js +2 -2
  7. package/dist/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  8. package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
  9. package/dist/plugin/billboardjs-plugin-sparkline.js +2 -2
  10. package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
  11. package/dist/plugin/billboardjs-plugin-stanford.js +2 -2
  12. package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
  13. package/dist/plugin/billboardjs-plugin-tableview.js +2 -2
  14. package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
  15. package/dist/plugin/billboardjs-plugin-textoverlap.js +2 -2
  16. package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
  17. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.js +2 -2
  18. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +2 -2
  19. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +2 -2
  20. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +2 -2
  21. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +2 -2
  22. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +2 -2
  23. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +2 -2
  24. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +2 -2
  25. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +2 -2
  26. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +2 -2
  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 +164 -115
  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 +1 -1
  44. package/src/ChartInternal/ChartInternal.ts +2 -2
  45. package/src/ChartInternal/data/data.ts +1 -1
  46. package/src/ChartInternal/data/load.ts +7 -1
  47. package/src/ChartInternal/internals/redraw.ts +2 -1
  48. package/src/ChartInternal/shape/point.common.ts +134 -0
  49. package/src/ChartInternal/shape/point.ts +3 -95
  50. package/src/ChartInternal/shape/shape.ts +1 -1
  51. package/src/config/Store/State.ts +1 -1
  52. package/src/config/resolver/axis.ts +4 -4
  53. package/src/config/resolver/shape.ts +22 -10
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.11.1
8
+ * @version 3.11.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.11.1
8
+ * @version 3.11.2
9
9
  */.bb-color-pattern{background-image:url(#4a7fff;#b02c2c;#1ca46c;#b47300;#49baf3;#ed7e13;#cfaa00;#a6cd19;#dccb52;#f5d194;)}.bb svg{font-family:Helvetica,Arial,sans-serif,nanumgothic,Dotum;font-size:12px;line-height:1}.bb line,.bb path{fill:none;stroke:#8d9cab}.bb .bb-button,.bb text{-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-line,.bb-xgrid-focus,.bb-ygrid,.bb-ygrid-focus{shape-rendering:crispEdges}.bb-chart-arcs .bb-needle{fill:#8d9cab}.bb-axis{shape-rendering:crispEdges}.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:rgba(39,201,3,.05)}.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-circles.bb-focused,.bb-target.bb-focused{opacity:1}.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step,.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step{stroke-width:2px}.bb-circles.bb-defocused,.bb-target.bb-defocused{opacity:.5!important}.bb-circles.bb-defocused .text-overlapping,.bb-target.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{font-family:Helvetica,Arial,sans-serif,nanumgothic,Dotum;user-select:none;z-index:10}.bb-tooltip{background-color:#000;border:1px solid #828181;border-collapse:separate;border-radius:5px;border-spacing:0;color:#fff;empty-cells:show;font-size:11px;text-align:left;white-space:nowrap}.bb-tooltip th{border-bottom:1px solid #828181;font-size:12px;padding:4px 8px;text-align:left}.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;height:7px;margin:-1px 6px 0 0;vertical-align:middle;width:7px}.bb-tooltip td.value{border-left:1px solid transparent;text-align:right}.bb-tooltip .bb-tooltip-title{color:#aaa;display:inline-block;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{color:#444;font-size:11px;font-weight:400;line-height:13px;padding:4px 0 3px;text-align:left}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{font-size:12px;font-weight:800;padding-left:5px}.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-max,.bb-chart-arcs .bb-chart-arcs-gauge-min{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{cursor:default;font-size:1.15em}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:1px}.bb-button{position:absolute;right:10px;top:10px}.bb-button .bb-zoom-reset{background-color:#000;border:1px solid #ccc;border-radius:5px;color:#fff;cursor:pointer;padding:5px}
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.11.1
8
+ * @version 3.11.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.11.1
8
+ * @version 3.11.2
9
9
  */.bb-color-pattern{background-image:url(#2ac4b3;#feaf29;#ff617b;#73a2ef;#b180d0;#3064cf;#d0a45f;#8aaec7;#ef65a2;#8aaec7;)}.bb svg{font-family:Sans Pro,Arial,sans-serif,nanumgothic,Dotum;font-size:11px;line-height:1}.bb line,.bb path{fill:none;stroke:#000}.bb .bb-button,.bb text{-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-axis{stroke-width:.7px}.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:rgba(39,201,3,.05)}.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-circles.bb-focused,.bb-target.bb-focused{opacity:1}.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step,.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step{stroke-width:2px}.bb-circles.bb-defocused,.bb-target.bb-defocused{opacity:.3!important}.bb-circles.bb-defocused .text-overlapping,.bb-target.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4}.bb-region rect{fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-brush .extent,.bb-zoom-brush{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{font-family:Sans Pro,Arial,sans-serif,nanumgothic,Dotum;user-select:none;z-index:10}.bb-tooltip{background-color:#fff;border:1px solid #999;border-collapse:separate;border-radius:2px;border-spacing:0;empty-cells:show;font-size:11px;text-align:left;-webkit-font-smoothing:antialiased;white-space:nowrap}.bb-tooltip th{background-color:#0b00b1;border-bottom:2px solid #ff2d2d;color:#fffdfd;font-size:13px;padding:2px 8px;text-align:left}.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{border:1px solid #000;border-radius:3px;display:inline-block;height:8px;margin-right:6px;vertical-align:middle;width:8px}.bb-tooltip td.value{border-left:1px solid transparent;text-align:right}.bb-tooltip .bb-tooltip-title{color:#aaa;display:inline-block;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{color:#444;font-size:11px;font-weight:400;line-height:13px;padding:4px 0 3px;text-align:left}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{font-size:11px;font-weight:800;padding-left:5px}.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-max,.bb-chart-arcs .bb-chart-arcs-gauge-min{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{cursor:default;font-size:1.15em}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:.7px}.bb-button{position:absolute;right:10px;top:10px}.bb-button .bb-zoom-reset{background-color:#fff;border:1px solid #ccc;border-radius:5px;cursor:pointer;padding:5px}
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.11.1
8
+ * @version 3.11.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.11.1
8
+ * @version 3.11.2
9
9
  */.bb-color-pattern{background-image:url(#65CFC2;#D0A45F;#64A4F5;#EF65A2;#A377FE;#8AAEC7;#FF7E5A;#898EFE;#FFAC35;#70B0FF;)}.bb svg{font-family:Helvetica,Apple SD Gothic Neo,Arial,sans-serif,nanumgothic,Dotum;font-size:12px;line-height:1}.bb line,.bb path{fill:none;stroke:#8c8c8c}.bb .bb-button,.bb text{-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,.bb-ygrid-focus{shape-rendering:crispEdges}.bb-chart-arcs .bb-needle{fill:#000}.bb-axis{shape-rendering:crispEdges}.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:rgba(39,201,3,.05)}.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_,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-circles.bb-focused,.bb-target.bb-focused{opacity:1}.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step,.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step{stroke-width:2px}.bb-circles.bb-defocused,.bb-target.bb-defocused{opacity:.3!important}.bb-circles.bb-defocused .text-overlapping,.bb-target.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4}.bb-region rect{fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-brush .extent,.bb-zoom-brush{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{font-family:Helvetica,Apple SD Gothic Neo,Arial,sans-serif,nanumgothic,Dotum;user-select:none;z-index:10}.bb-tooltip{background-color:#fff;border:1px solid #999;border-collapse:separate;border-radius:2px;border-spacing:0;box-shadow:.5px .5px 1px #999;empty-cells:show;font-size:12px;text-align:left;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.bb-tooltip th{background-color:#efefef;border-bottom:1px dotted #000;color:#000;font-size:12px;padding:4px 8px;text-align:center}.bb-tooltip tr:last-child td{border-bottom:none}.bb-tooltip td{background-color:#fff;border-bottom:1px solid #eee;padding:3px 6px}.bb-tooltip td:first-child{border-right:1px solid #eee;padding-left:5px}.bb-tooltip td:last-child{padding-right:5px}.bb-tooltip td>span,.bb-tooltip td>svg{display:inline-block;height:12px;margin-right:6px;vertical-align:middle;width:5px}.bb-tooltip td.value{border-left:1px solid transparent;text-align:right}.bb-tooltip .bb-tooltip-title{color:#aaa;display:inline-block;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{color:#444;font-weight:400;line-height:13px;padding:4px 0 3px;text-align:left}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{font-weight:800;padding-left:5px}.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-max,.bb-chart-arcs .bb-chart-arcs-gauge-min{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{cursor:default;font-size:1.15em;font-weight:700}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:1px}.bb-button{position:absolute;right:10px;top:10px}.bb-button .bb-zoom-reset{background-color:#fff;border:1px solid #ccc;border-radius:5px;box-shadow:1px 1px 2px #ccc;cursor:pointer;opacity:.8;padding:5px}
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.11.1
8
+ * @version 3.11.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.11.1
8
+ * @version 3.11.2
9
9
  */.bb-color-pattern{background-image:url(#00c73c;#fa7171;#2ad0ff;#7294ce;#e3e448;#cc7e6e;#fb6ccf;#c98dff;#4aea99;#bbbbbb;)}.bb svg{font-family:sans-serif,Arial,nanumgothic,Dotum;font-size:12px;line-height:1}.bb line,.bb path{fill:none;stroke:#c4c4c4}.bb .bb-button,.bb text{-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,.bb-ygrid-focus{shape-rendering:crispEdges}.bb-chart-arcs .bb-needle{fill:#000}.bb-axis{shape-rendering:crispEdges}.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:rgba(39,201,3,.05)}.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-circles.bb-focused,.bb-target.bb-focused{opacity:1}.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step,.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step{stroke-width:2px}.bb-circles.bb-defocused,.bb-target.bb-defocused{opacity:.3!important}.bb-circles.bb-defocused .text-overlapping,.bb-target.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4}.bb-region rect{fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-brush .extent,.bb-zoom-brush{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{font-family:sans-serif,Arial,nanumgothic,Dotum;user-select:none;z-index:10}.bb-tooltip{background-color:#fff;border:1px solid #999;border-collapse:separate;border-spacing:0;empty-cells:show;font-size:11px;text-align:left;white-space:nowrap}.bb-tooltip th{border-bottom:1px solid #eee;font-size:12px;padding:4px 8px;text-align:left}.bb-tooltip td{background-color:#fff;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{border-radius:5px;display:inline-block;height:10px;margin-right:6px;vertical-align:middle;width:10px}.bb-tooltip td.value{border-left:1px solid transparent}.bb-tooltip .bb-tooltip-title{color:#aaa;display:inline-block;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{color:#444;font-size:11px;font-weight:400;line-height:13px;padding:4px 0 3px;text-align:left}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{font-size:12px;font-weight:800;padding-left:5px}.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-max,.bb-chart-arcs .bb-chart-arcs-gauge-min{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{cursor:default;font-size:1.15em}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:1px}.bb-button{position:absolute;right:10px;top:10px}.bb-button .bb-zoom-reset{background-color:#fff;border:1px solid #ccc;border-radius:5px;cursor:pointer;padding:5px}
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.11.1
8
+ * @version 3.11.2
9
9
  */
10
10
  @charset "UTF-8";
11
11
  /*-- Insight Theme --*/
@@ -6,5 +6,5 @@
6
6
  * billboard.js, JavaScript chart library
7
7
  * https://naver.github.io/billboard.js/
8
8
  *
9
- * @version 3.11.1
9
+ * @version 3.11.2
10
10
  */.bb-color-pattern{background-image:url(#7ea9fa;#ffcd1e;#d33043;#41c464;#c86b74;#006bc2;#2a7e41;#f27c00;#c159ff;#bed017;)}.bb svg{font-family:-apple-system,"system-ui",Noto Sans,Malgun Gothic,맑은 고딕,helvetica,Apple SD Gothic Neo,sans-serif;font-size:12px;line-height:1}.bb line,.bb path{fill:none;stroke:#cecece}.bb .bb-button,.bb text{-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,.bb-ygrid-focus{shape-rendering:crispEdges}.bb-chart-arcs .bb-needle{fill:#000}.bb-axis{shape-rendering:crispEdges}.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:rgba(39,201,3,.05)}.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-circles.bb-focused,.bb-target.bb-focused{opacity:1}.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step,.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step{stroke-width:2px}.bb-circles.bb-defocused,.bb-target.bb-defocused{opacity:.3!important}.bb-circles.bb-defocused .text-overlapping,.bb-target.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{font-family:-apple-system,"system-ui",Noto Sans,Malgun Gothic,맑은 고딕,helvetica,Apple SD Gothic Neo,sans-serif;user-select:none;z-index:10}.bb-tooltip{background-color:#404244;border:1px solid #999;border-collapse:separate;border-radius:5px;border-spacing:0;color:#fff;empty-cells:show;opacity:.9;white-space:nowrap}.bb-tooltip,.bb-tooltip th{font-size:11px;text-align:left}.bb-tooltip th{padding:3px 6px 0}.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{border-radius:5px;display:inline-block;height:7px;margin-right:6px;vertical-align:middle;width:7px}.bb-tooltip td.value{border-left:1px solid transparent;text-align:right}.bb-tooltip .bb-tooltip-title{color:#aaa;display:inline-block;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{color:#444;font-size:11px;font-weight:400;line-height:13px;padding:4px 0 3px;text-align:left}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{font-size:12px;font-weight:800;padding-left:5px}.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-max,.bb-chart-arcs .bb-chart-arcs-gauge-min{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{cursor:default;font-size:1.15em}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:1px}.bb-button{position:absolute;right:10px;top:10px}.bb-button .bb-zoom-reset{background-color:#404244;border:1px solid #999;border-radius:5px;color:#fff;cursor:pointer;opacity:.9;padding:5px}
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.11.1
8
+ * @version 3.11.2
9
9
  */
10
10
  import { timeParse, utcParse, timeFormat, utcFormat } from 'd3-time-format';
11
11
  import { pointer, select, namespaces, selectAll } from 'd3-selection';
@@ -4837,8 +4837,10 @@ var dataLoad = {
4837
4837
  });
4838
4838
  },
4839
4839
  unload: function (rawTargetIds, customDoneCb) {
4840
+ var _a;
4840
4841
  var $$ = this;
4841
4842
  var state = $$.state, $el = $$.$el, $T = $$.$T;
4843
+ var hasLegendDefsPoint = !!((_a = $$.hasLegendDefsPoint) === null || _a === void 0 ? void 0 : _a.call($$));
4842
4844
  var done = customDoneCb;
4843
4845
  var targetIds = rawTargetIds;
4844
4846
  // reset internally cached data
@@ -4859,14 +4861,18 @@ var dataLoad = {
4859
4861
  .remove()
4860
4862
  .call(endall, done);
4861
4863
  targetIds.forEach(function (id) {
4864
+ var _a;
4865
+ var suffixId = $$.getTargetSelectorSuffix(id);
4862
4866
  // Reset fadein for future load
4863
4867
  state.withoutFadeIn[id] = false;
4864
4868
  // Remove target's elements
4865
4869
  if ($el.legend) {
4866
- $el.legend.selectAll(".".concat($LEGEND.legendItem).concat($$.getTargetSelectorSuffix(id))).remove();
4870
+ $el.legend.selectAll(".".concat($LEGEND.legendItem).concat(suffixId)).remove();
4867
4871
  }
4868
4872
  // Remove target
4869
4873
  $$.data.targets = $$.data.targets.filter(function (t) { return t.id !== id; });
4874
+ // Remove custom point def element
4875
+ hasLegendDefsPoint && ((_a = $el.defs) === null || _a === void 0 ? void 0 : _a.select("#".concat($$.getDefsPointId(suffixId))).remove());
4870
4876
  });
4871
4877
  // since treemap uses different data types, it needs to be transformed
4872
4878
  state.hasTreemap && $$.updateTargetsForTreemap($$.data.targets);
@@ -6675,7 +6681,7 @@ var legend$1 = {
6675
6681
  */
6676
6682
  var redraw = {
6677
6683
  redraw: function (options) {
6678
- var _a, _b, _c;
6684
+ var _a, _b, _c, _d;
6679
6685
  if (options === void 0) { options = {}; }
6680
6686
  var $$ = this;
6681
6687
  var config = $$.config, state = $$.state, $el = $$.$el;
@@ -6740,14 +6746,16 @@ var redraw = {
6740
6746
  // treemap
6741
6747
  treemap && $$.updateTreemap(durationForExit);
6742
6748
  }
6743
- // @TODO: Axis & Radar type
6744
6749
  if (!state.resizing && !treemap && ($$.hasPointType() || state.hasRadar)) {
6745
6750
  $$.updateCircle();
6746
6751
  }
6752
+ else if ((_c = $$.hasLegendDefsPoint) === null || _c === void 0 ? void 0 : _c.call($$)) {
6753
+ $$.data.targets.forEach($$.point("create", this));
6754
+ }
6747
6755
  // text
6748
6756
  $$.hasDataLabel() && !$$.hasArcType(null, ["radar"]) && $$.updateText();
6749
6757
  // title
6750
- (_c = $$.redrawTitle) === null || _c === void 0 ? void 0 : _c.call($$);
6758
+ (_d = $$.redrawTitle) === null || _d === void 0 ? void 0 : _d.call($$);
6751
6759
  initializing && $$.updateTypesElements();
6752
6760
  $$.generateRedrawList(targetsToShow, flow, duration, wth.Subchart);
6753
6761
  $$.updateTooltipOnRedraw();
@@ -7404,16 +7412,16 @@ var shape = {
7404
7412
  $$.getYScaleById(id)($$.getBaseValue(d));
7405
7413
  },
7406
7414
  getBarW: function (type, axis, targetsNum) {
7407
- var _a, _b, _c;
7415
+ var _a, _b, _c, _d, _e;
7408
7416
  var $$ = this;
7409
7417
  var config = $$.config, org = $$.org, scale = $$.scale;
7410
7418
  var maxDataCount = $$.getMaxDataCount();
7411
7419
  var isGrouped = type === "bar" && ((_a = config.data_groups) === null || _a === void 0 ? void 0 : _a.length);
7412
7420
  var configName = "".concat(type, "_width");
7413
- var k = $$.getZoomTransform().k;
7421
+ var k = ((_c = (_b = $$.getZoomTransform) === null || _b === void 0 ? void 0 : _b.call($$)) !== null && _c !== void 0 ? _c : { k: 1 }).k;
7414
7422
  var xMinMax = [
7415
- (_b = config.axis_x_min) !== null && _b !== void 0 ? _b : org.xDomain[0],
7416
- (_c = config.axis_x_max) !== null && _c !== void 0 ? _c : org.xDomain[1]
7423
+ (_d = config.axis_x_min) !== null && _d !== void 0 ? _d : org.xDomain[0],
7424
+ (_e = config.axis_x_max) !== null && _e !== void 0 ? _e : org.xDomain[1]
7417
7425
  ].map($$.axis.isTimeSeries() ? parseDate.bind($$) : Number);
7418
7426
  var tickInterval = axis.tickInterval(maxDataCount);
7419
7427
  if (scale.zoom && !$$.axis.isCategorized() && k > 1) {
@@ -9540,6 +9548,7 @@ var ChartInternal = /** @class */ (function () {
9540
9548
  }
9541
9549
  };
9542
9550
  ChartInternal.prototype.initParams = function () {
9551
+ var _a;
9543
9552
  var $$ = this;
9544
9553
  var config = $$.config, format = $$.format, state = $$.state;
9545
9554
  var isRotated = config.axis_rotated;
@@ -9553,7 +9562,7 @@ var ChartInternal = /** @class */ (function () {
9553
9562
  config.axis_y2_show = false;
9554
9563
  config.subchart_show = false;
9555
9564
  }
9556
- if ($$.hasPointType()) {
9565
+ if ($$.hasPointType() || ((_a = $$.hasLegendDefsPoint) === null || _a === void 0 ? void 0 : _a.call($$))) {
9557
9566
  $$.point = $$.generatePoint();
9558
9567
  }
9559
9568
  if (state.hasAxis) {
@@ -9587,7 +9596,7 @@ var ChartInternal = /** @class */ (function () {
9587
9596
  state.inputType = convertInputType(config.interaction_inputType_mouse, config.interaction_inputType_touch);
9588
9597
  };
9589
9598
  ChartInternal.prototype.initWithData = function (data) {
9590
- var _a, _b;
9599
+ var _a, _b, _c;
9591
9600
  var $$ = this;
9592
9601
  var config = $$.config, scale = $$.scale, state = $$.state, $el = $$.$el, org = $$.org;
9593
9602
  var hasAxis = state.hasAxis, hasTreemap = state.hasTreemap;
@@ -9652,7 +9661,7 @@ var ChartInternal = /** @class */ (function () {
9652
9661
  // Define defs
9653
9662
  var hasColorPatterns = (isFunction(config.color_tiles) && $$.patterns);
9654
9663
  if (hasAxis || hasColorPatterns || hasPolar || hasTreemap ||
9655
- config.data_labels_backgroundColors) {
9664
+ config.data_labels_backgroundColors || ((_a = $$.hasLegendDefsPoint) === null || _a === void 0 ? void 0 : _a.call($$))) {
9656
9665
  $el.defs = $el.svg.append("defs");
9657
9666
  if (hasAxis) {
9658
9667
  ["id", "idXAxis", "idYAxis", "idGrid"].forEach(function (v) {
@@ -9701,11 +9710,11 @@ var ChartInternal = /** @class */ (function () {
9701
9710
  $$.initChartElements();
9702
9711
  if (hasAxis) {
9703
9712
  // Cover whole with rects for events
9704
- hasInteraction && ((_a = $$.initEventRect) === null || _a === void 0 ? void 0 : _a.call($$));
9713
+ hasInteraction && ((_b = $$.initEventRect) === null || _b === void 0 ? void 0 : _b.call($$));
9705
9714
  // Grids
9706
9715
  $$.initGrid();
9707
9716
  // Add Axis here, when clipPath is 'true'
9708
- config.clipPath && ((_b = $$.axis) === null || _b === void 0 ? void 0 : _b.init());
9717
+ config.clipPath && ((_c = $$.axis) === null || _c === void 0 ? void 0 : _c.init());
9709
9718
  }
9710
9719
  // Set targets
9711
9720
  $$.updateTargets($$.data.targets);
@@ -17110,20 +17119,20 @@ var api = [
17110
17119
  apiRegion,
17111
17120
  apiX
17112
17121
  ];
17113
- var internal = [
17114
- axis,
17115
- clip,
17116
- eventrect,
17117
- flow,
17118
- grid,
17119
- region,
17120
- sizeAxis,
17121
- ];
17122
- var options = [
17123
- optDataAxis,
17124
- optAxis,
17125
- optGrid,
17126
- ];
17122
+ var internal = {
17123
+ axis: axis,
17124
+ clip: clip,
17125
+ eventrect: eventrect,
17126
+ flow: flow,
17127
+ grid: grid,
17128
+ region: region,
17129
+ sizeAxis: sizeAxis,
17130
+ };
17131
+ var options = {
17132
+ optDataAxis: optDataAxis,
17133
+ optAxis: optAxis,
17134
+ optGrid: optGrid,
17135
+ };
17127
17136
 
17128
17137
  /**
17129
17138
  * Get radius functions
@@ -19131,16 +19140,125 @@ var shapeLine = {
19131
19140
  },
19132
19141
  };
19133
19142
 
19134
- var getTransitionName = function () { return getRandom(); };
19135
- var shapePoint = {
19143
+ /**
19144
+ * Check if point draw methods are valid
19145
+ * @param {string} point point type
19146
+ * @returns {boolean}
19147
+ * @private
19148
+ */
19149
+ function hasValidPointDrawMethods(point) {
19150
+ return isObjectType(point) &&
19151
+ isFunction(point.create) && isFunction(point.update);
19152
+ }
19153
+ /**
19154
+ * Insert point info defs element
19155
+ * @param {string} point Point element
19156
+ * @param {string} id Point id
19157
+ * @private
19158
+ */
19159
+ function insertPointInfoDefs(point, id) {
19160
+ var _a;
19161
+ var $$ = this;
19162
+ var copyAttr = function (from, target) {
19163
+ var attribs = from.attributes;
19164
+ for (var i = 0, name_1; (name_1 = attribs[i]); i++) {
19165
+ name_1 = name_1.name;
19166
+ target.setAttribute(name_1, from.getAttribute(name_1));
19167
+ }
19168
+ };
19169
+ var doc$1 = new DOMParser().parseFromString(point, "image/svg+xml");
19170
+ var node = doc$1.documentElement;
19171
+ var clone = doc.createElementNS(namespaces.svg, node.nodeName.toLowerCase());
19172
+ clone.id = id;
19173
+ clone.style.fill = "inherit";
19174
+ clone.style.stroke = "inherit";
19175
+ copyAttr(node, clone);
19176
+ if ((_a = node.childNodes) === null || _a === void 0 ? void 0 : _a.length) {
19177
+ var parent_1 = select(clone);
19178
+ if ("innerHTML" in clone) {
19179
+ parent_1.html(node.innerHTML);
19180
+ }
19181
+ else {
19182
+ toArray(node.childNodes).forEach(function (v) {
19183
+ copyAttr(v, parent_1.append(v.tagName).node());
19184
+ });
19185
+ }
19186
+ }
19187
+ $$.$el.defs.node().appendChild(clone);
19188
+ }
19189
+ var shapePointCommon = {
19190
+ /**
19191
+ * Check if point type option is valid
19192
+ * @param {string} type point type
19193
+ * @returns {boolean}
19194
+ * @private
19195
+ */
19136
19196
  hasValidPointType: function (type) {
19137
19197
  return /^(circle|rect(angle)?|polygon|ellipse|use)$/i.test(type || this.config.point_type);
19138
19198
  },
19139
- hasValidPointDrawMethods: function (type) {
19140
- var pointType = type || this.config.point_type;
19141
- return isObjectType(pointType) &&
19142
- isFunction(pointType.create) && isFunction(pointType.update);
19199
+ /**
19200
+ * Check if pattern point is set to be used on legend
19201
+ * @returns {boolean}
19202
+ * @private
19203
+ */
19204
+ hasLegendDefsPoint: function () {
19205
+ var _a;
19206
+ var config = this.config;
19207
+ return config.legend_show && ((_a = config.point_pattern) === null || _a === void 0 ? void 0 : _a.length) && config.legend_usePoint;
19143
19208
  },
19209
+ getDefsPointId: function (id) {
19210
+ var datetimeId = this.state.datetimeId;
19211
+ return "".concat(datetimeId, "-point").concat(id);
19212
+ },
19213
+ /**
19214
+ * Get generate point function
19215
+ * @returns {Function}
19216
+ * @private
19217
+ */
19218
+ generatePoint: function () {
19219
+ var $$ = this;
19220
+ var $el = $$.$el, config = $$.config;
19221
+ var ids = [];
19222
+ var pattern = notEmpty(config.point_pattern) ? config.point_pattern : [config.point_type];
19223
+ return function (method, context) {
19224
+ var args = [];
19225
+ for (var _i = 2; _i < arguments.length; _i++) {
19226
+ args[_i - 2] = arguments[_i];
19227
+ }
19228
+ return function (d) {
19229
+ var _a, _b, _c, _d;
19230
+ var id = $$.getTargetSelectorSuffix(d.id || ((_a = d.data) === null || _a === void 0 ? void 0 : _a.id) || d);
19231
+ var element = select(this);
19232
+ ids.indexOf(id) < 0 && ids.push(id);
19233
+ var point = pattern[ids.indexOf(id) % pattern.length];
19234
+ if ($$.hasValidPointType(point)) {
19235
+ point = $$[point];
19236
+ }
19237
+ else if (!hasValidPointDrawMethods(point || config.point_type)) {
19238
+ var pointId = $$.getDefsPointId(id);
19239
+ var defsPoint = $el.defs.select("#".concat(pointId));
19240
+ if (defsPoint.size() < 1) {
19241
+ insertPointInfoDefs.bind($$)(point, pointId);
19242
+ }
19243
+ if (method === "create") {
19244
+ return (_b = $$.custom) === null || _b === void 0 ? void 0 : _b.create.bind(context).apply(void 0, __spreadArray([element, pointId], args, false));
19245
+ }
19246
+ else if (method === "update") {
19247
+ return (_c = $$.custom) === null || _c === void 0 ? void 0 : _c.update.bind(context).apply(void 0, __spreadArray([element], args, false));
19248
+ }
19249
+ }
19250
+ return (_d = point[method]) === null || _d === void 0 ? void 0 : _d.bind(context).apply(void 0, __spreadArray([element], args, false));
19251
+ };
19252
+ };
19253
+ }
19254
+ };
19255
+
19256
+ /**
19257
+ * Copyright (c) 2017 ~ present NAVER Corp.
19258
+ * billboard.js project is licensed under the MIT license
19259
+ */
19260
+ var getTransitionName = function () { return getRandom(); };
19261
+ var shapePoint = {
19144
19262
  initialOpacityForCircle: function (d) {
19145
19263
  var _a = this, config = _a.config, withoutFadeIn = _a.state.withoutFadeIn;
19146
19264
  var opacity = config.point_opacity;
@@ -19453,39 +19571,6 @@ var shapePoint = {
19453
19571
  }
19454
19572
  return sensitivity;
19455
19573
  },
19456
- insertPointInfoDefs: function (point, id) {
19457
- var _a;
19458
- var $$ = this;
19459
- var copyAttr = function (from, target) {
19460
- var attribs = from.attributes;
19461
- for (var i = 0, name_1; (name_1 = attribs[i]); i++) {
19462
- name_1 = name_1.name;
19463
- target.setAttribute(name_1, from.getAttribute(name_1));
19464
- }
19465
- };
19466
- var doc$1 = new DOMParser().parseFromString(point, "image/svg+xml");
19467
- var node = doc$1.documentElement;
19468
- var clone = doc.createElementNS(namespaces.svg, node.nodeName.toLowerCase());
19469
- clone.id = id;
19470
- clone.style.fill = "inherit";
19471
- clone.style.stroke = "inherit";
19472
- copyAttr(node, clone);
19473
- if ((_a = node.childNodes) === null || _a === void 0 ? void 0 : _a.length) {
19474
- var parent_1 = select(clone);
19475
- if ("innerHTML" in clone) {
19476
- parent_1.html(node.innerHTML);
19477
- }
19478
- else {
19479
- toArray(node.childNodes).forEach(function (v) {
19480
- copyAttr(v, parent_1.append(v.tagName).node());
19481
- });
19482
- }
19483
- }
19484
- $$.$el.defs.node().appendChild(clone);
19485
- },
19486
- pointFromDefs: function (id) {
19487
- return this.$el.defs.select("#".concat(id));
19488
- },
19489
19574
  updatePointClass: function (d) {
19490
19575
  var $$ = this;
19491
19576
  var circle = $$.$el.circle;
@@ -19528,42 +19613,6 @@ var shapePoint = {
19528
19613
  ];
19529
19614
  };
19530
19615
  },
19531
- generatePoint: function () {
19532
- var $$ = this;
19533
- var config = $$.config, datetimeId = $$.state.datetimeId;
19534
- var ids = [];
19535
- var pattern = notEmpty(config.point_pattern) ? config.point_pattern : [config.point_type];
19536
- return function (method, context) {
19537
- var args = [];
19538
- for (var _i = 2; _i < arguments.length; _i++) {
19539
- args[_i - 2] = arguments[_i];
19540
- }
19541
- return function (d) {
19542
- var _a;
19543
- var id = $$.getTargetSelectorSuffix(d.id || ((_a = d.data) === null || _a === void 0 ? void 0 : _a.id) || d);
19544
- var element = select(this);
19545
- ids.indexOf(id) < 0 && ids.push(id);
19546
- var point = pattern[ids.indexOf(id) % pattern.length];
19547
- if ($$.hasValidPointType(point)) {
19548
- point = $$[point];
19549
- }
19550
- else if (!$$.hasValidPointDrawMethods(point)) {
19551
- var pointId = "".concat(datetimeId, "-point").concat(id);
19552
- var pointFromDefs = $$.pointFromDefs(pointId);
19553
- if (pointFromDefs.size() < 1) {
19554
- $$.insertPointInfoDefs(point, pointId);
19555
- }
19556
- if (method === "create") {
19557
- return $$.custom.create.bind(context).apply(void 0, __spreadArray([element, pointId], args, false));
19558
- }
19559
- else if (method === "update") {
19560
- return $$.custom.update.bind(context).apply(void 0, __spreadArray([element], args, false));
19561
- }
19562
- }
19563
- return point[method].bind(context).apply(void 0, __spreadArray([element], args, false));
19564
- };
19565
- };
19566
- },
19567
19616
  custom: {
19568
19617
  create: function (element, id, fillStyleFn) {
19569
19618
  return element.append("use")
@@ -21615,9 +21664,9 @@ var optTreemap = {
21615
21664
  * @private
21616
21665
  */
21617
21666
  function extendAxis(module, option) {
21618
- extend(ChartInternal.prototype, internal.concat(module));
21667
+ extend(ChartInternal.prototype, Object.values(internal).concat(module));
21619
21668
  extend(Chart.prototype, api);
21620
- Options.setOptions(options.concat(option || []));
21669
+ Options.setOptions(Object.values(options).concat(option || []));
21621
21670
  }
21622
21671
  /**
21623
21672
  * Extend Line type modules
@@ -21626,7 +21675,7 @@ function extendAxis(module, option) {
21626
21675
  * @private
21627
21676
  */
21628
21677
  function extendLine(module, option) {
21629
- extendAxis([shapePoint, shapeLine].concat(module || []));
21678
+ extendAxis([shapePointCommon, shapePoint, shapeLine].concat(module || []));
21630
21679
  Options.setOptions([optPoint, optLine].concat(option || []));
21631
21680
  }
21632
21681
  /**
@@ -21636,8 +21685,8 @@ function extendLine(module, option) {
21636
21685
  * @private
21637
21686
  */
21638
21687
  function extendArc(module, option) {
21639
- extend(ChartInternal.prototype, [shapeArc].concat(module || []));
21640
- Options.setOptions(option);
21688
+ extend(ChartInternal.prototype, [shapeArc, shapePointCommon].concat(module || []));
21689
+ Options.setOptions([optPoint].concat(option || []));
21641
21690
  }
21642
21691
  // Area types
21643
21692
  var area = function () { return (extendLine(shapeArea, [optArea]), (area = function () { return TYPE.AREA; })()); };
@@ -21654,12 +21703,12 @@ var donut = function () { return (extendArc(undefined, [optArc, optDonut]), (don
21654
21703
  var gauge = function () { return (extendArc([shapeGauge], [optArc, optGauge]), (gauge = function () { return TYPE.GAUGE; })()); };
21655
21704
  var pie = function () { return (extendArc(undefined, [optArc, optPie]), (pie = function () { return TYPE.PIE; })()); };
21656
21705
  var polar = function () { return (extendArc([shapePolar], [optArc, optPolar]), (polar = function () { return TYPE.POLAR; })()); };
21657
- var radar = function () { return (extendArc([shapePoint, shapeRadar], [optPoint, optRadar]), (radar = function () { return TYPE.RADAR; })()); };
21706
+ var radar = function () { return (extendArc([internal.eventrect, shapePoint, shapeRadar], [optPoint, optRadar, { axis_x_categories: options.optAxis.axis_x_categories }]), (radar = function () { return TYPE.RADAR; })()); };
21658
21707
  // Axis based types
21659
- var bar = function () { return (extendAxis([shapeBar], optBar), (bar = function () { return TYPE.BAR; })()); };
21660
- var bubble = function () { return (extendAxis([shapePoint, shapeBubble], [optBubble, optPoint]), (bubble = function () { return TYPE.BUBBLE; })()); };
21661
- var candlestick = function () { return (extendAxis([shapeCandlestick], [optCandlestick]), (candlestick = function () { return TYPE.CANDLESTICK; })()); };
21662
- var scatter = function () { return (extendAxis([shapePoint], [optPoint, optScatter]), (scatter = function () { return TYPE.SCATTER; })()); };
21708
+ var bar = function () { return (extendAxis([shapeBar, shapePointCommon], [optBar, optPoint]), (bar = function () { return TYPE.BAR; })()); };
21709
+ var bubble = function () { return (extendAxis([shapePointCommon, shapePoint, shapeBubble], [optBubble, optPoint]), (bubble = function () { return TYPE.BUBBLE; })()); };
21710
+ var candlestick = function () { return (extendAxis([shapeCandlestick, shapePointCommon], [optCandlestick, optPoint]), (candlestick = function () { return TYPE.CANDLESTICK; })()); };
21711
+ var scatter = function () { return (extendAxis([shapePointCommon, shapePoint], [optPoint, optScatter]), (scatter = function () { return TYPE.SCATTER; })()); };
21663
21712
  // Non Axis based types
21664
21713
  var treemap = function () { return (extendAxis([shapeTreemap], [optTreemap]), (treemap = function () { return TYPE.TREEMAP; })()); };
21665
21714
 
@@ -23380,7 +23429,7 @@ var zoomModule = function () {
23380
23429
  var defaults = {};
23381
23430
  /**
23382
23431
  * @namespace bb
23383
- * @version 3.11.1
23432
+ * @version 3.11.2
23384
23433
  */
23385
23434
  var bb = {
23386
23435
  /**
@@ -23390,7 +23439,7 @@ var bb = {
23390
23439
  * bb.version; // "1.0.0"
23391
23440
  * @memberof bb
23392
23441
  */
23393
- version: "3.11.1",
23442
+ version: "3.11.2",
23394
23443
  /**
23395
23444
  * Generate chart
23396
23445
  * - **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.11.1
8
+ * @version 3.11.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -104,7 +104,7 @@ var Plugin = /** @class */ (function () {
104
104
  delete _this[key];
105
105
  });
106
106
  };
107
- Plugin.version = "3.11.1";
107
+ Plugin.version = "3.11.2";
108
108
  return Plugin;
109
109
  }());
110
110
  var Plugin$1 = Plugin;
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.11.1
8
+ * @version 3.11.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -280,7 +280,7 @@ var Plugin = /** @class */ (function () {
280
280
  delete _this[key];
281
281
  });
282
282
  };
283
- Plugin.version = "3.11.1";
283
+ Plugin.version = "3.11.2";
284
284
  return Plugin;
285
285
  }());
286
286
  var Plugin$1 = Plugin;
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.11.1
8
+ * @version 3.11.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -494,7 +494,7 @@ var Plugin = /** @class */ (function () {
494
494
  delete _this[key];
495
495
  });
496
496
  };
497
- Plugin.version = "3.11.1";
497
+ Plugin.version = "3.11.2";
498
498
  return Plugin;
499
499
  }());
500
500
  var Plugin$1 = Plugin;