billboard.js 3.5.0 → 3.6.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/README.md +12 -2
  2. package/dist/billboard.css +1 -1
  3. package/dist/billboard.js +159 -98
  4. package/dist/billboard.min.css +1 -1
  5. package/dist/billboard.min.js +2 -2
  6. package/dist/billboard.pkgd.js +2416 -2173
  7. package/dist/billboard.pkgd.min.js +3 -3
  8. package/dist/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  9. package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
  10. package/dist/plugin/billboardjs-plugin-sparkline.js +2 -71
  11. package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
  12. package/dist/plugin/billboardjs-plugin-stanford.js +2 -71
  13. package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
  14. package/dist/plugin/billboardjs-plugin-tableview.js +2 -71
  15. package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
  16. package/dist/plugin/billboardjs-plugin-textoverlap.js +2 -71
  17. package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
  18. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.js +2259 -2077
  19. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +2260 -2147
  20. package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +2261 -2148
  21. package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +2262 -2149
  22. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +2263 -2150
  23. package/dist/theme/datalab.css +1 -1
  24. package/dist/theme/datalab.min.css +1 -1
  25. package/dist/theme/graph.css +1 -1
  26. package/dist/theme/graph.min.css +1 -1
  27. package/dist/theme/insight.css +1 -1
  28. package/dist/theme/insight.min.css +1 -1
  29. package/dist-esm/billboard.js +149 -94
  30. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  31. package/dist-esm/plugin/billboardjs-plugin-sparkline.js +2 -2
  32. package/dist-esm/plugin/billboardjs-plugin-stanford.js +2 -2
  33. package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
  34. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
  35. package/package.json +30 -28
  36. package/src/Chart/api/data.ts +2 -2
  37. package/src/Chart/api/group.ts +1 -1
  38. package/src/Chart/api/selection.ts +1 -1
  39. package/src/ChartInternal/Axis/AxisRenderer.ts +3 -3
  40. package/src/ChartInternal/Axis/AxisRendererHelper.ts +1 -1
  41. package/src/ChartInternal/ChartInternal.ts +3 -3
  42. package/src/ChartInternal/data/convert.ts +4 -3
  43. package/src/ChartInternal/data/data.ts +1 -1
  44. package/src/ChartInternal/interactions/drag.ts +1 -1
  45. package/src/ChartInternal/internals/color.ts +5 -2
  46. package/src/ChartInternal/internals/domain.ts +1 -1
  47. package/src/ChartInternal/internals/format.ts +1 -1
  48. package/src/ChartInternal/internals/grid.ts +0 -1
  49. package/src/ChartInternal/internals/legend.ts +3 -2
  50. package/src/ChartInternal/internals/region.ts +1 -1
  51. package/src/ChartInternal/internals/scale.ts +1 -1
  52. package/src/ChartInternal/internals/size.axis.ts +1 -1
  53. package/src/ChartInternal/internals/style.ts +2 -2
  54. package/src/ChartInternal/internals/text.ts +2 -2
  55. package/src/ChartInternal/internals/tooltip.ts +1 -1
  56. package/src/ChartInternal/shape/arc.ts +3 -3
  57. package/src/ChartInternal/shape/area.ts +3 -2
  58. package/src/ChartInternal/shape/bar.ts +2 -2
  59. package/src/ChartInternal/shape/line.ts +5 -1
  60. package/src/ChartInternal/shape/point.ts +1 -1
  61. package/src/ChartInternal/shape/polar.ts +1 -1
  62. package/src/ChartInternal/shape/shape.ts +16 -8
  63. package/src/Plugin/sparkline/index.ts +1 -1
  64. package/src/Plugin/textoverlap/index.ts +1 -1
  65. package/src/config/Options/common/grid.ts +2 -2
  66. package/src/config/Options/common/legend.ts +3 -2
  67. package/src/config/Options/data/data.ts +19 -1
  68. package/src/config/Store/Element.ts +1 -1
  69. package/src/module/Cache.ts +1 -1
  70. package/src/module/generator.ts +1 -1
  71. package/src/module/util.ts +1 -74
  72. package/src/module/worker.ts +101 -0
  73. package/types/axis.d.ts +18 -3
  74. package/types/index.d.ts +1 -0
  75. package/types/options.d.ts +9 -0
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.5.0
8
+ * @version 3.6.0-next.1
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.5.0
8
+ * @version 3.6.0-next.1
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-font-smoothing:antialiased;fill:#555;font-size:11px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.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;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;stroke-dasharray:1 20;transform:translate(7px,1px)}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{fill:#fff;stroke:#d3d3d3;stroke-width:1;opacity:.75}.bb-title{font-size:14px}.bb-tooltip-container{font-family:Sans Pro,Arial,sans-serif,nanumgothic,Dotum;user-select:none;z-index:10}.bb-tooltip{-webkit-font-smoothing:antialiased;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}.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{fill:#000;font-size:18px!important;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:#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.5.0
8
+ * @version 3.6.0-next.1
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.5.0
8
+ * @version 3.6.0-next.1
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{fill:#555;font-size:12px;letter-spacing:-.3px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bb-axis,.bb-bars path,.bb-event-rect,.bb-legend-item-title,.bb-xgrid-focus,.bb-ygrid,.bb-ygrid-focus{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;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{fill:#fff;stroke:#d3d3d3;stroke-width:1px;opacity:.75}.bb-legend-item line{stroke-dasharray:1px}.bb-title{font-size:14px}.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}.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{fill:#8c8c8c;font-size:16px!important;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.5.0
8
+ * @version 3.6.0-next.1
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.5.0
8
+ * @version 3.6.0-next.1
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{fill:#555;font-size:11px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bb-axis,.bb-bars path,.bb-event-rect,.bb-legend-item-title,.bb-xgrid-focus,.bb-ygrid,.bb-ygrid-focus{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;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{fill:#fff;stroke:#d3d3d3;stroke-width:1;opacity:.75}.bb-title{font-size:14px}.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}.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{fill:#000;font-size:16px!important;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.5.0
8
+ * @version 3.6.0-next.1
9
9
  */
10
10
  import { timeParse, utcParse, timeFormat, utcFormat } from 'd3-time-format';
11
11
  import { pointer, select, namespaces, selectAll } from 'd3-selection';
@@ -825,74 +825,6 @@ function convertInputType(mouse, touch) {
825
825
  // fallback to 'mouse' if no input type is detected.
826
826
  return (hasMouse && "mouse") || (hasTouch && "touch") || "mouse";
827
827
  }
828
- /**
829
- * Create and run on Web Worker
830
- * @param {boolean} useWorker Use Web Worker
831
- * @param {Function} fn Function to be executed in worker
832
- * @param {Function} callback Callback function to receive result from worker
833
- * @param {Array} depsFn Dependency functions to run given function(fn).
834
- * @returns {object}
835
- * @example
836
- * const worker = runWorker(function(arg) {
837
- * // do some tasks...
838
- * console.log("param:", A(arg));
839
- *
840
- * return 1234;
841
- * }, function(data) {
842
- * // callback after worker is done
843
- * console.log("result:", data);
844
- * },
845
- * [function A(){}]
846
- * );
847
- *
848
- * worker(11111);
849
- * @private
850
- */
851
- function runWorker(useWorker, fn, callback, depsFn) {
852
- var _a;
853
- if (useWorker === void 0) { useWorker = true; }
854
- var runFn;
855
- if (win.Worker && useWorker) {
856
- // Web Worker body
857
- var blob = new Blob([
858
- "".concat((_a = depsFn === null || depsFn === void 0 ? void 0 : depsFn.map(String).join(";")) !== null && _a !== void 0 ? _a : "", "\n\n\t\t\tself.onmessage=function({data}) {\n\t\t\t\tconst result = (").concat(fn.toString(), ").apply(null, data);\n\t\t\t\tself.postMessage(result);\n\t\t\t};")
859
- ], {
860
- type: "text/javascript"
861
- });
862
- var worker_1 = new Worker(URL.createObjectURL(blob));
863
- runFn = function () {
864
- var args = [];
865
- for (var _i = 0; _i < arguments.length; _i++) {
866
- args[_i] = arguments[_i];
867
- }
868
- // trigger worker
869
- worker_1.postMessage(args);
870
- // listen worker
871
- worker_1.onmessage = function (e) {
872
- return callback(e.data);
873
- };
874
- // handle error
875
- worker_1.onerror = function (e) {
876
- console.error(e);
877
- };
878
- // return new Promise((resolve, reject) => {
879
- // worker.onmessage = ({data}) => resolve(data);
880
- // worker.onerror = reject;
881
- // });
882
- };
883
- }
884
- else {
885
- runFn = function () {
886
- var args = [];
887
- for (var _i = 0; _i < arguments.length; _i++) {
888
- args[_i] = arguments[_i];
889
- }
890
- var res = fn.apply(void 0, args);
891
- callback(res);
892
- };
893
- }
894
- return runFn;
895
- }
896
828
  /**
897
829
  * Run function until given condition function return true
898
830
  * @param {Function} fn Function to be executed when condition is true
@@ -1980,6 +1912,23 @@ var data$2 = {
1980
1912
  * }
1981
1913
  */
1982
1914
  data_groups: [],
1915
+ /**
1916
+ * Set how zero value will be treated on groups.<br>
1917
+ * Possible values:
1918
+ * - `zero`: 0 will be positioned at absolute axis zero point.
1919
+ * - `positive`: 0 will be positioned at the top of a stack.
1920
+ * - `negative`: 0 will be positioned at the bottom of a stack.
1921
+ * @name data․groupsZeroAs
1922
+ * @memberof Options
1923
+ * @type {string}
1924
+ * @default "positive"
1925
+ * @see [Demo](https://naver.github.io/billboard.js/demo/#Data.Groups)
1926
+ * @example
1927
+ * data: {
1928
+ * groupsZeroAs: "zero" // "positive" or "negative"
1929
+ * }
1930
+ */
1931
+ data_groupsZeroAs: "positive",
1983
1932
  /**
1984
1933
  * Set color converter function.<br><br>
1985
1934
  * This option should a function and the specified function receives color (e.g. '#ff0000') and d that has data parameters like id, value, index, etc. And it must return a string that represents color (e.g. '#00ff00').
@@ -2695,7 +2644,8 @@ var legend$2 = {
2695
2644
  * @property {boolean} [legend.hide=false] Hide legend
2696
2645
  * If true given, all legend will be hidden. If string or array given, only the legend that has the id will be hidden.
2697
2646
  * @property {string|HTMLElement} [legend.contents.bindto=undefined] Set CSS selector or element reference to bind legend items.
2698
- * @property {string|Function} [legend.contents.template=undefined] Set item's template.<br>
2647
+ * - **NOTE:** Should be used along with `legend.contents.template`.
2648
+ * @property {string|Function} [legend.contents.template="<span style='color:#fff;padding:5px;background-color:{=COLOR}'>{=TITLE}</span>"] Set item's template.<br>
2699
2649
  * - If set `string` value, within template the 'color' and 'title' can be replaced using template-like syntax string:
2700
2650
  * - {=COLOR}: data color value
2701
2651
  * - {=TITLE}: data title value
@@ -2773,7 +2723,7 @@ var legend$2 = {
2773
2723
  legend_show: true,
2774
2724
  legend_hide: false,
2775
2725
  legend_contents_bindto: undefined,
2776
- legend_contents_template: undefined,
2726
+ legend_contents_template: "<span style='color:#fff;padding:5px;background-color:{=COLOR}'>{=TITLE}</span>",
2777
2727
  legend_position: "bottom",
2778
2728
  legend_inset_anchor: "top-left",
2779
2729
  legend_inset_x: 10,
@@ -3259,6 +3209,98 @@ function generateWait() {
3259
3209
  return f;
3260
3210
  }
3261
3211
 
3212
+ /**
3213
+ * Copyright (c) 2017 ~ present NAVER Corp.
3214
+ * billboard.js project is licensed under the MIT license
3215
+ */
3216
+ // Store blob in memory
3217
+ var blob = {};
3218
+ /**
3219
+ * Get Object URL
3220
+ * @param {Function} fn Function to be executed in worker
3221
+ * @param {Array} depsFn Dependency functions to run given function(fn).
3222
+ * @returns {string}
3223
+ * @private
3224
+ */
3225
+ function getObjectURL(fn, depsFn) {
3226
+ var _a;
3227
+ var fnString = fn.toString();
3228
+ var key = fnString.replace(/(function|[\s\W\n])/g, "").substring(0, 15);
3229
+ if (!(key in blob)) {
3230
+ // Web Worker body
3231
+ blob[key] = new win.Blob([
3232
+ "".concat((_a = depsFn === null || depsFn === void 0 ? void 0 : depsFn.map(String).join(";")) !== null && _a !== void 0 ? _a : "", "\n\n\t\t\tself.onmessage=function({data}) {\n\t\t\t\tconst result = (").concat(fnString, ").apply(null, data);\n\t\t\t\tself.postMessage(result);\n\t\t\t};")
3233
+ ], {
3234
+ type: "text/javascript"
3235
+ });
3236
+ }
3237
+ return win.URL.createObjectURL(blob[key]);
3238
+ }
3239
+ /**
3240
+ * Create and run on Web Worker
3241
+ * @param {boolean} useWorker Use Web Worker
3242
+ * @param {Function} fn Function to be executed in worker
3243
+ * @param {Function} callback Callback function to receive result from worker
3244
+ * @param {Array} depsFn Dependency functions to run given function(fn).
3245
+ * @returns {object}
3246
+ * @example
3247
+ * const worker = runWorker(function(arg) {
3248
+ * // do some tasks...
3249
+ * console.log("param:", A(arg));
3250
+ *
3251
+ * return 1234;
3252
+ * }, function(data) {
3253
+ * // callback after worker is done
3254
+ * console.log("result:", data);
3255
+ * },
3256
+ * [function A(){}]
3257
+ * );
3258
+ *
3259
+ * worker(11111);
3260
+ * @private
3261
+ */
3262
+ function runWorker(useWorker, fn, callback, depsFn) {
3263
+ if (useWorker === void 0) { useWorker = true; }
3264
+ var runFn;
3265
+ if (win.Worker && useWorker) {
3266
+ var src_1 = getObjectURL(fn, depsFn);
3267
+ var worker_1 = new win.Worker(src_1);
3268
+ runFn = function () {
3269
+ var args = [];
3270
+ for (var _i = 0; _i < arguments.length; _i++) {
3271
+ args[_i] = arguments[_i];
3272
+ }
3273
+ // trigger worker
3274
+ worker_1.postMessage(args);
3275
+ // listen worker
3276
+ worker_1.onmessage = function (e) {
3277
+ // release object URL from memory
3278
+ win.URL.revokeObjectURL(src_1);
3279
+ return callback(e.data);
3280
+ };
3281
+ // handle error
3282
+ worker_1.onerror = function (e) {
3283
+ console.error(e);
3284
+ };
3285
+ // return new Promise((resolve, reject) => {
3286
+ // worker.onmessage = ({data}) => resolve(data);
3287
+ // worker.onerror = reject;
3288
+ // });
3289
+ };
3290
+ }
3291
+ else {
3292
+ runFn = function () {
3293
+ var args = [];
3294
+ for (var _i = 0; _i < arguments.length; _i++) {
3295
+ args[_i] = arguments[_i];
3296
+ }
3297
+ var res = fn.apply(void 0, args);
3298
+ callback(res);
3299
+ };
3300
+ }
3301
+ return runFn;
3302
+ }
3303
+
3262
3304
  /**
3263
3305
  * Copyright (c) 2017 ~ present NAVER Corp.
3264
3306
  * billboard.js project is licensed under the MIT license
@@ -3594,6 +3636,7 @@ var dataConvert = {
3594
3636
  });
3595
3637
  // finish targets
3596
3638
  targets.forEach(function (t) {
3639
+ var _a;
3597
3640
  // sort values by its x
3598
3641
  if (config.data_xSort) {
3599
3642
  t.values = t.values.sort(function (v1, v2) {
@@ -3605,7 +3648,7 @@ var dataConvert = {
3605
3648
  // indexing each value
3606
3649
  t.values.forEach(function (v, i) { return (v.index = i); });
3607
3650
  // this needs to be sorted because its index and value.index is identical
3608
- $$.data.xs[t.id].sort(function (v1, v2) { return v1 - v2; });
3651
+ (_a = $$.data.xs[t.id]) === null || _a === void 0 ? void 0 : _a.sort(function (v1, v2) { return v1 - v2; });
3609
3652
  });
3610
3653
  // cache information about values
3611
3654
  state.hasNegativeValue = $$.hasNegativeValueInTargets(targets);
@@ -4962,7 +5005,9 @@ var color = {
4962
5005
  }
4963
5006
  return function (d) {
4964
5007
  var _a;
4965
- var id = d.id || ((_a = d.data) === null || _a === void 0 ? void 0 : _a.id) || d;
5008
+ var id = d.id ||
5009
+ ((_a = d.data) === null || _a === void 0 ? void 0 : _a.id) ||
5010
+ d;
4966
5011
  var isLine = $$.isTypeOf(id, ["line", "spline", "step"]) || !config.data_types[id];
4967
5012
  var color;
4968
5013
  // if callback function is provided
@@ -5959,9 +6004,10 @@ var legend$1 = {
5959
6004
  .attr("y", isLegendRightOrInset ? pos : yForLegendRect);
5960
6005
  var getColor = function (id) {
5961
6006
  var data = $$.getDataById(id);
5962
- return $$.levelColor ?
6007
+ var color = $$.levelColor ?
5963
6008
  $$.levelColor(data.values[0].value) :
5964
6009
  $$.color(data);
6010
+ return color;
5965
6011
  };
5966
6012
  var usePoint = config.legend_usePoint;
5967
6013
  if (usePoint) {
@@ -6727,6 +6773,7 @@ var shape = {
6727
6773
  getShapeOffset: function (typeFilter, indices, isSub) {
6728
6774
  var $$ = this;
6729
6775
  var _a = $$.getShapeOffsetData(typeFilter), shapeOffsetTargets = _a.shapeOffsetTargets, indexMapByTargetId = _a.indexMapByTargetId;
6776
+ var groupsZeroAs = $$.config.data_groupsZeroAs;
6730
6777
  return function (d, idx) {
6731
6778
  var id = d.id, value = d.value, x = d.x;
6732
6779
  var ind = $$.getIndices(indices, d);
@@ -6735,22 +6782,27 @@ var shape = {
6735
6782
  // TODO use range.getStart()
6736
6783
  return scale(value[0]);
6737
6784
  }
6738
- var y0 = scale($$.getShapeYMin(id));
6739
6785
  var dataXAsNumber = Number(x);
6786
+ var y0 = scale(groupsZeroAs === "zero" ? 0 : $$.getShapeYMin(id));
6740
6787
  var offset = y0;
6741
6788
  shapeOffsetTargets
6742
- .filter(function (t) { return t.id !== id; })
6789
+ .filter(function (t) { return t.id !== id && ind[t.id] === ind[id]; })
6743
6790
  .forEach(function (t) {
6744
6791
  var tid = t.id, rowValueMapByXValue = t.rowValueMapByXValue, rowValues = t.rowValues, tvalues = t.values;
6745
6792
  // for same stacked group (ind[tid] === ind[id])
6746
- if (ind[tid] === ind[id] && indexMapByTargetId[tid] < indexMapByTargetId[id]) {
6793
+ if (indexMapByTargetId[tid] < indexMapByTargetId[id]) {
6794
+ var rValue = tvalues[dataXAsNumber];
6747
6795
  var row = rowValues[idx];
6748
6796
  // check if the x values line up
6749
6797
  if (!row || Number(row.x) !== dataXAsNumber) {
6750
6798
  row = rowValueMapByXValue[dataXAsNumber];
6751
6799
  }
6752
- if ((row === null || row === void 0 ? void 0 : row.value) * value >= 0 && isNumber(tvalues[dataXAsNumber])) {
6753
- offset += scale(tvalues[dataXAsNumber]) - y0;
6800
+ if ((row === null || row === void 0 ? void 0 : row.value) * value >= 0 && isNumber(rValue)) {
6801
+ var addOffset = value === 0 ? ((groupsZeroAs === "positive" && rValue > 0) ||
6802
+ (groupsZeroAs === "negative" && rValue < 0)) : true;
6803
+ if (addOffset) {
6804
+ offset += scale(rValue) - y0;
6805
+ }
6754
6806
  }
6755
6807
  }
6756
6808
  });
@@ -8331,7 +8383,7 @@ var transform = {
8331
8383
  * Copyright (c) 2017 ~ present NAVER Corp.
8332
8384
  * billboard.js project is licensed under the MIT license
8333
8385
  */
8334
- var type = {
8386
+ var typeInternals = {
8335
8387
  setTargetType: function (targetIds, type) {
8336
8388
  var $$ = this;
8337
8389
  var config = $$.config, withoutFadeIn = $$.state.withoutFadeIn;
@@ -9027,14 +9079,14 @@ var ChartInternal = /** @class */ (function () {
9027
9079
  // Arc, Polar, Radar
9028
9080
  }
9029
9081
  else if ($$.hasArcType(targets)) {
9030
- var type_1 = "Arc";
9082
+ var type = "Arc";
9031
9083
  if (hasRadar) {
9032
- type_1 = "Radar";
9084
+ type = "Radar";
9033
9085
  }
9034
9086
  else if ($$.hasType("polar")) {
9035
- type_1 = "Polar";
9087
+ type = "Polar";
9036
9088
  }
9037
- helper(type_1);
9089
+ helper(type);
9038
9090
  }
9039
9091
  // Point types
9040
9092
  var hasPointType = $$.hasType("bubble") || $$.hasType("scatter");
@@ -9162,7 +9214,7 @@ extend(ChartInternal.prototype, [
9162
9214
  title,
9163
9215
  tooltip$1,
9164
9216
  transform,
9165
- type
9217
+ typeInternals
9166
9218
  ]);
9167
9219
 
9168
9220
  /**
@@ -11581,10 +11633,11 @@ var AxisRenderer = /** @class */ (function () {
11581
11633
  * @private
11582
11634
  */
11583
11635
  AxisRenderer.prototype.getGeneratedTicks = function (count) {
11584
- var len = this.generatedTicks.length - 1;
11636
+ var _a;
11637
+ var len = ((_a = this.generatedTicks) === null || _a === void 0 ? void 0 : _a.length) - 1;
11585
11638
  var res = this.generatedTicks;
11586
11639
  if (len > count) {
11587
- var interval_1 = Math.round((len / count) - 0.1);
11640
+ var interval_1 = Math.round((len / count) + 0.1);
11588
11641
  res = this.generatedTicks
11589
11642
  .map(function (v, i) { return (i % interval_1 === 0 ? v : null); })
11590
11643
  .filter(function (v) { return v !== null; })
@@ -15807,7 +15860,7 @@ var optGrid = {
15807
15860
  * @property {boolean} [y.show=false] Show grids along x axis.
15808
15861
  * @property {Array} [y.lines=[]] Show additional grid lines along y axis.<br>
15809
15862
  * This option accepts array including object that has value, text, position and class.
15810
- * @property {number} [y.ticks=10] Number of y grids to be shown.
15863
+ * @property {number} [y.ticks=undefined] Number of y grids to be shown.
15811
15864
  * @property {object} focus Grid focus object
15812
15865
  * @property {boolean} [focus.edge=false] Show edged focus grid line.<br>**NOTE:** Available when [`tooltip.grouped=false`](#.tooltip) option is set.
15813
15866
  * @property {boolean} [focus.show=true] Show grid line when focus.
@@ -15855,7 +15908,7 @@ var optGrid = {
15855
15908
  grid_x_lines: [],
15856
15909
  grid_y_show: false,
15857
15910
  grid_y_lines: [],
15858
- grid_y_ticks: 10,
15911
+ grid_y_ticks: undefined,
15859
15912
  grid_focus_edge: false,
15860
15913
  grid_focus_show: true,
15861
15914
  grid_focus_y: false,
@@ -15921,7 +15974,7 @@ var shapeArc = {
15921
15974
  var gaugeArcWidth = $$.filterTargetsToShow($$.data.targets).length *
15922
15975
  config.gauge_arcs_minWidth;
15923
15976
  // determine radius
15924
- state.radiusExpanded = Math.min(state.arcWidth, state.arcHeight) / 2 * ($$.hasMultiArcGauge() ? 0.85 : 1);
15977
+ state.radiusExpanded = Math.min(state.arcWidth, state.arcHeight) / 2 * ($$.hasMultiArcGauge() && config.gauge_label_show ? 0.85 : 1);
15925
15978
  state.radius = state.radiusExpanded * 0.95;
15926
15979
  state.innerRadiusRatio = w ? (state.radius - w) / state.radius : 0.6;
15927
15980
  state.gaugeArcWidth = w || (gaugeArcWidth <= state.radius - state.innerRadius ?
@@ -16756,9 +16809,10 @@ var shapeArea = {
16756
16809
  var y0 = yScale.call($$, d.id, isSub)($$.getShapeYMin(d.id));
16757
16810
  var offset = areaOffset(d, i) || y0; // offset is for stacked area chart
16758
16811
  var posX = x(d);
16812
+ var value = d.value;
16759
16813
  var posY = y(d);
16760
16814
  // fix posY not to overflow opposite quadrant
16761
- if (config.axis_rotated && ((d.value > 0 && posY < y0) || (d.value < 0 && y0 < posY))) {
16815
+ if (config.axis_rotated && ((value > 0 && posY < y0) || (value < 0 && y0 < posY))) {
16762
16816
  posY = y0;
16763
16817
  }
16764
16818
  // 1 point that marks the area position
@@ -17393,7 +17447,8 @@ var shapeLine = {
17393
17447
  .attr("class", classLines);
17394
17448
  // Areas
17395
17449
  if ($$.hasTypeOf("Area")) {
17396
- $$.initArea(!area && mainLineEnter.empty() ? mainLineUpdate : mainLineEnter);
17450
+ var mainLine = (!area && mainLineEnter.empty() ? mainLineUpdate : mainLineEnter).filter($$.isAreaType.bind($$));
17451
+ $$.initArea(mainLine);
17397
17452
  }
17398
17453
  $$.updateTargetForCircle(targets, mainLineEnter);
17399
17454
  },
@@ -21172,7 +21227,7 @@ var zoomModule = function () {
21172
21227
  var defaults = {};
21173
21228
  /**
21174
21229
  * @namespace bb
21175
- * @version 3.5.0
21230
+ * @version 3.6.0-next.1
21176
21231
  */
21177
21232
  var bb = {
21178
21233
  /**
@@ -21182,7 +21237,7 @@ var bb = {
21182
21237
  * bb.version; // "1.0.0"
21183
21238
  * @memberof bb
21184
21239
  */
21185
- version: "3.5.0",
21240
+ version: "3.6.0-next.1",
21186
21241
  /**
21187
21242
  * Generate chart
21188
21243
  * - **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.5.0
8
+ * @version 3.6.0-next.1
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -111,7 +111,7 @@ var Plugin = /** @class */ (function () {
111
111
  delete _this[key];
112
112
  });
113
113
  };
114
- Plugin.version = "3.5.0";
114
+ Plugin.version = "3.6.0-next.1";
115
115
  return Plugin;
116
116
  }());
117
117
  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.5.0
8
+ * @version 3.6.0-next.1
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -286,7 +286,7 @@ var Plugin = /** @class */ (function () {
286
286
  delete _this[key];
287
287
  });
288
288
  };
289
- Plugin.version = "3.5.0";
289
+ Plugin.version = "3.6.0-next.1";
290
290
  return Plugin;
291
291
  }());
292
292
  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.5.0
8
+ * @version 3.6.0-next.1
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -490,7 +490,7 @@ var Plugin = /** @class */ (function () {
490
490
  delete _this[key];
491
491
  });
492
492
  };
493
- Plugin.version = "3.5.0";
493
+ Plugin.version = "3.6.0-next.1";
494
494
  return Plugin;
495
495
  }());
496
496
  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.5.0
8
+ * @version 3.6.0-next.1
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -134,7 +134,7 @@ var Plugin = /** @class */ (function () {
134
134
  delete _this[key];
135
135
  });
136
136
  };
137
- Plugin.version = "3.5.0";
137
+ Plugin.version = "3.6.0-next.1";
138
138
  return Plugin;
139
139
  }());
140
140
  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.5.0
8
+ * @version 3.6.0-next.1
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -266,7 +266,7 @@ var Plugin = /** @class */ (function () {
266
266
  delete _this[key];
267
267
  });
268
268
  };
269
- Plugin.version = "3.5.0";
269
+ Plugin.version = "3.6.0-next.1";
270
270
  return Plugin;
271
271
  }());
272
272
  var Plugin$1 = Plugin;