billboard.js 3.11.3 → 3.12.0-next.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 (177) hide show
  1. package/README.md +1 -5
  2. package/dist/billboard.css +13 -1
  3. package/dist/billboard.js +19672 -24210
  4. package/dist/billboard.min.css +2 -2
  5. package/dist/billboard.min.js +26 -3
  6. package/dist/billboard.pkgd.js +24515 -30430
  7. package/dist/billboard.pkgd.min.js +33 -3
  8. package/dist/plugin/billboardjs-plugin-bubblecompare.js +77 -175
  9. package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -3
  10. package/dist/plugin/billboardjs-plugin-sparkline.js +429 -1134
  11. package/dist/plugin/billboardjs-plugin-sparkline.min.js +4 -3
  12. package/dist/plugin/billboardjs-plugin-stanford.js +666 -1524
  13. package/dist/plugin/billboardjs-plugin-stanford.min.js +15 -3
  14. package/dist/plugin/billboardjs-plugin-tableview.js +503 -1175
  15. package/dist/plugin/billboardjs-plugin-tableview.min.js +30 -3
  16. package/dist/plugin/billboardjs-plugin-textoverlap.js +351 -1055
  17. package/dist/plugin/billboardjs-plugin-textoverlap.min.js +4 -3
  18. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.js +1387 -1854
  19. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +5 -3
  20. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +2760 -3959
  21. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +7 -3
  22. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +3504 -5057
  23. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +18 -3
  24. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +2906 -4072
  25. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +33 -3
  26. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +3076 -4506
  27. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +7 -3
  28. package/dist/theme/dark.css +12 -1
  29. package/dist/theme/dark.min.css +2 -2
  30. package/dist/theme/datalab.css +12 -1
  31. package/dist/theme/datalab.min.css +2 -2
  32. package/dist/theme/graph.css +12 -1
  33. package/dist/theme/graph.min.css +2 -2
  34. package/dist/theme/insight.css +12 -1
  35. package/dist/theme/insight.min.css +2 -2
  36. package/dist/theme/modern.css +12 -1
  37. package/dist/theme/modern.min.css +3 -4
  38. package/dist-esm/billboard.js +9297 -8527
  39. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +20 -27
  40. package/dist-esm/plugin/billboardjs-plugin-sparkline.js +155 -149
  41. package/dist-esm/plugin/billboardjs-plugin-stanford.js +302 -289
  42. package/dist-esm/plugin/billboardjs-plugin-tableview.js +236 -236
  43. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +41 -43
  44. package/package.json +29 -49
  45. package/src/Chart/api/axis.ts +6 -13
  46. package/src/Chart/api/chart.ts +12 -11
  47. package/src/Chart/api/data.ts +8 -7
  48. package/src/Chart/api/export.ts +28 -21
  49. package/src/Chart/api/flow.ts +4 -2
  50. package/src/Chart/api/grid.ts +1 -5
  51. package/src/Chart/api/load.ts +2 -2
  52. package/src/Chart/api/regions.ts +29 -5
  53. package/src/Chart/api/selection.ts +2 -2
  54. package/src/Chart/api/show.ts +2 -3
  55. package/src/Chart/api/subchart.ts +2 -2
  56. package/src/Chart/api/tooltip.ts +8 -9
  57. package/src/Chart/api/x.ts +2 -2
  58. package/src/Chart/api/zoom.ts +2 -2
  59. package/src/ChartInternal/Axis/Axis.ts +119 -44
  60. package/src/ChartInternal/Axis/AxisRenderer.ts +53 -38
  61. package/src/ChartInternal/Axis/AxisRendererHelper.ts +2 -2
  62. package/src/ChartInternal/ChartInternal.ts +87 -55
  63. package/src/ChartInternal/data/IData.ts +31 -31
  64. package/src/ChartInternal/data/convert.helper.ts +66 -68
  65. package/src/ChartInternal/data/convert.ts +11 -11
  66. package/src/ChartInternal/data/data.ts +51 -27
  67. package/src/ChartInternal/data/load.ts +7 -6
  68. package/src/ChartInternal/interactions/drag.ts +2 -1
  69. package/src/ChartInternal/interactions/eventrect.ts +84 -32
  70. package/src/ChartInternal/interactions/flow.ts +14 -4
  71. package/src/ChartInternal/interactions/interaction.ts +51 -22
  72. package/src/ChartInternal/interactions/subchart.ts +27 -25
  73. package/src/ChartInternal/interactions/zoom.ts +29 -18
  74. package/src/ChartInternal/internals/category.ts +1 -1
  75. package/src/ChartInternal/internals/class.ts +6 -6
  76. package/src/ChartInternal/internals/clip.ts +8 -4
  77. package/src/ChartInternal/internals/color.ts +70 -42
  78. package/src/ChartInternal/internals/domain.ts +59 -28
  79. package/src/ChartInternal/internals/format.ts +5 -5
  80. package/src/ChartInternal/internals/grid.ts +131 -47
  81. package/src/ChartInternal/internals/legend.ts +93 -61
  82. package/src/ChartInternal/internals/redraw.ts +6 -2
  83. package/src/ChartInternal/internals/region.ts +5 -3
  84. package/src/ChartInternal/internals/scale.ts +28 -15
  85. package/src/ChartInternal/internals/selection.ts +14 -13
  86. package/src/ChartInternal/internals/size.axis.ts +18 -10
  87. package/src/ChartInternal/internals/size.ts +98 -67
  88. package/src/ChartInternal/internals/style.ts +21 -19
  89. package/src/ChartInternal/internals/text.ts +79 -43
  90. package/src/ChartInternal/internals/title.ts +2 -2
  91. package/src/ChartInternal/internals/tooltip.ts +78 -32
  92. package/src/ChartInternal/internals/transform.ts +4 -4
  93. package/src/ChartInternal/internals/type.ts +17 -12
  94. package/src/ChartInternal/shape/arc.ts +78 -44
  95. package/src/ChartInternal/shape/area.ts +19 -22
  96. package/src/ChartInternal/shape/bar.ts +41 -31
  97. package/src/ChartInternal/shape/bubble.ts +5 -5
  98. package/src/ChartInternal/shape/candlestick.ts +15 -13
  99. package/src/ChartInternal/shape/funnel.ts +317 -0
  100. package/src/ChartInternal/shape/gauge.ts +16 -9
  101. package/src/ChartInternal/shape/line.ts +62 -46
  102. package/src/ChartInternal/shape/point.common.ts +1 -4
  103. package/src/ChartInternal/shape/point.ts +54 -34
  104. package/src/ChartInternal/shape/polar.ts +4 -2
  105. package/src/ChartInternal/shape/radar.ts +40 -22
  106. package/src/ChartInternal/shape/shape.ts +84 -58
  107. package/src/ChartInternal/shape/treemap.ts +31 -20
  108. package/src/Plugin/bubblecompare/index.ts +1 -3
  109. package/src/Plugin/sparkline/index.ts +3 -4
  110. package/src/Plugin/stanford/ColorScale.ts +3 -2
  111. package/src/Plugin/stanford/Elements.ts +15 -6
  112. package/src/Plugin/stanford/Options.ts +5 -5
  113. package/src/Plugin/stanford/index.ts +13 -9
  114. package/src/Plugin/tableview/Options.ts +1 -1
  115. package/src/Plugin/tableview/const.ts +1 -4
  116. package/src/Plugin/tableview/index.ts +11 -9
  117. package/src/Plugin/textoverlap/index.ts +4 -6
  118. package/src/config/Options/Options.ts +3 -3
  119. package/src/config/Options/axis/axis.ts +36 -0
  120. package/src/config/Options/axis/x.ts +34 -14
  121. package/src/config/Options/axis/y.ts +13 -13
  122. package/src/config/Options/axis/y2.ts +23 -10
  123. package/src/config/Options/common/color.ts +4 -4
  124. package/src/config/Options/common/grid.ts +4 -4
  125. package/src/config/Options/common/legend.ts +12 -13
  126. package/src/config/Options/common/main.ts +23 -23
  127. package/src/config/Options/common/point.ts +17 -18
  128. package/src/config/Options/common/title.ts +2 -2
  129. package/src/config/Options/common/tooltip.ts +13 -11
  130. package/src/config/Options/data/axis.ts +2 -2
  131. package/src/config/Options/data/data.ts +48 -45
  132. package/src/config/Options/interaction/interaction.ts +1 -1
  133. package/src/config/Options/interaction/subchart.ts +2 -2
  134. package/src/config/Options/interaction/zoom.ts +9 -9
  135. package/src/config/Options/shape/arc.ts +10 -13
  136. package/src/config/Options/shape/area.ts +5 -7
  137. package/src/config/Options/shape/bar.ts +8 -10
  138. package/src/config/Options/shape/bubble.ts +1 -1
  139. package/src/config/Options/shape/candlestick.ts +2 -2
  140. package/src/config/Options/shape/donut.ts +4 -4
  141. package/src/config/Options/shape/funnel.ts +38 -0
  142. package/src/config/Options/shape/gauge.ts +6 -6
  143. package/src/config/Options/shape/line.ts +3 -3
  144. package/src/config/Options/shape/pie.ts +5 -5
  145. package/src/config/Options/shape/polar.ts +3 -3
  146. package/src/config/Options/shape/radar.ts +2 -2
  147. package/src/config/Options/shape/scatter.ts +1 -1
  148. package/src/config/Options/shape/treemap.ts +1 -1
  149. package/src/config/Store/Element.ts +8 -5
  150. package/src/config/Store/State.ts +20 -13
  151. package/src/config/classes.ts +14 -4
  152. package/src/config/config.ts +1 -1
  153. package/src/config/const.ts +2 -0
  154. package/src/config/resolver/axis.ts +4 -4
  155. package/src/config/resolver/interaction.ts +3 -7
  156. package/src/config/resolver/shape.ts +17 -12
  157. package/src/core.ts +2 -3
  158. package/src/index.esm.ts +3 -6
  159. package/src/index.ts +2 -2
  160. package/src/module/Cache.ts +2 -3
  161. package/src/module/browser.ts +15 -10
  162. package/src/module/error.ts +9 -8
  163. package/src/module/generator.ts +3 -5
  164. package/src/module/util.ts +62 -39
  165. package/src/module/worker.ts +14 -11
  166. package/src/scss/billboard.scss +18 -0
  167. package/src/scss/theme/dark.scss +17 -0
  168. package/src/scss/theme/datalab.scss +17 -0
  169. package/src/scss/theme/graph.scss +17 -0
  170. package/src/scss/theme/insight.scss +17 -0
  171. package/src/scss/theme/modern.scss +17 -0
  172. package/types/axis.d.ts +17 -0
  173. package/types/bb.d.ts +1 -0
  174. package/types/index.d.ts +1 -0
  175. package/types/options.d.ts +9 -0
  176. package/types/options.shape.d.ts +26 -1
  177. package/types/types.d.ts +1 -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.11.3
8
+ * @version 3.12.0-next.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -24,26 +24,22 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
24
24
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
25
25
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
26
26
  PERFORMANCE OF THIS SOFTWARE.
27
- ***************************************************************************** */
28
- /* global Reflect, Promise, SuppressedError, Symbol */
29
-
30
- var _extendStatics = function extendStatics(d, b) {
31
- _extendStatics = Object.setPrototypeOf || {
32
- __proto__: []
33
- } instanceof Array && function (d, b) {
34
- d.__proto__ = b;
35
- } || function (d, b) {
36
- for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
37
- };
38
- return _extendStatics(d, b);
39
- };
40
- function __extends(d, b) {
41
- if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + (b + "") + " is not a constructor or null");
42
- _extendStatics(d, b);
43
- function __() {
44
- this.constructor = d;
45
- }
46
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
27
+ ***************************************************************************** */
28
+ /* global Reflect, Promise, SuppressedError, Symbol */
29
+
30
+ var extendStatics = function(d, b) {
31
+ extendStatics = Object.setPrototypeOf ||
32
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
33
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
34
+ return extendStatics(d, b);
35
+ };
36
+
37
+ function __extends(d, b) {
38
+ if (typeof b !== "function" && b !== null)
39
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
40
+ extendStatics(d, b);
41
+ function __() { this.constructor = d; }
42
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
47
43
  }
48
44
 
49
45
  /**
@@ -104,10 +100,9 @@ var Plugin = /** @class */ (function () {
104
100
  delete _this[key];
105
101
  });
106
102
  };
107
- Plugin.version = "3.11.3";
103
+ Plugin.version = "3.12.0-next.2";
108
104
  return Plugin;
109
105
  }());
110
- var Plugin$1 = Plugin;
111
106
 
112
107
  /**
113
108
  * Bubble compare diagram plugin.<br>
@@ -200,12 +195,10 @@ var BubbleCompare = /** @class */ (function (_super) {
200
195
  return Math.abs(size) * (maxR - minR) + minR;
201
196
  };
202
197
  BubbleCompare.prototype.getZData = function (d) {
203
- return this.$$.isBubbleZType(d) ?
204
- this.$$.getBubbleZData(d.value, "z") :
205
- d.value;
198
+ return this.$$.isBubbleZType(d) ? this.$$.getBubbleZData(d.value, "z") : d.value;
206
199
  };
207
200
  BubbleCompare.version = "0.0.1";
208
201
  return BubbleCompare;
209
- }(Plugin$1));
202
+ }(Plugin));
210
203
 
211
204
  export { BubbleCompare as default };
@@ -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.3
8
+ * @version 3.12.0-next.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -22,45 +22,43 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
22
22
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
23
23
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
24
24
  PERFORMANCE OF THIS SOFTWARE.
25
- ***************************************************************************** */
26
- /* global Reflect, Promise, SuppressedError, Symbol */
27
-
28
- var _extendStatics = function extendStatics(d, b) {
29
- _extendStatics = Object.setPrototypeOf || {
30
- __proto__: []
31
- } instanceof Array && function (d, b) {
32
- d.__proto__ = b;
33
- } || function (d, b) {
34
- for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
35
- };
36
- return _extendStatics(d, b);
37
- };
38
- function __extends(d, b) {
39
- if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + (b + "") + " is not a constructor or null");
40
- _extendStatics(d, b);
41
- function __() {
42
- this.constructor = d;
43
- }
44
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
45
- }
46
- var _assign = function __assign() {
47
- _assign = Object.assign || function (t) {
48
- for (var s, i = 1, n = arguments.length; i < n; i++) {
49
- s = arguments[i];
50
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
51
- }
52
- return t;
53
- };
54
- return _assign.apply(this, arguments);
55
- };
56
- function __spreadArray(to, from, pack) {
57
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
58
- if (ar || !(i in from)) {
59
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
60
- ar[i] = from[i];
61
- }
62
- }
63
- return to.concat(ar || Array.prototype.slice.call(from));
25
+ ***************************************************************************** */
26
+ /* global Reflect, Promise, SuppressedError, Symbol */
27
+
28
+ var extendStatics = function(d, b) {
29
+ extendStatics = Object.setPrototypeOf ||
30
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
31
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
32
+ return extendStatics(d, b);
33
+ };
34
+
35
+ function __extends(d, b) {
36
+ if (typeof b !== "function" && b !== null)
37
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
38
+ extendStatics(d, b);
39
+ function __() { this.constructor = d; }
40
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
41
+ }
42
+
43
+ var __assign = function() {
44
+ __assign = Object.assign || function __assign(t) {
45
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
46
+ s = arguments[i];
47
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
48
+ }
49
+ return t;
50
+ };
51
+ return __assign.apply(this, arguments);
52
+ };
53
+
54
+ function __spreadArray(to, from, pack) {
55
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
56
+ if (ar || !(i in from)) {
57
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
58
+ ar[i] = from[i];
59
+ }
60
+ }
61
+ return to.concat(ar || Array.prototype.slice.call(from));
64
62
  }
65
63
 
66
64
  /**
@@ -101,7 +99,10 @@ var $AXIS = {
101
99
  axisY: "bb-axis-y",
102
100
  axisY2: "bb-axis-y2",
103
101
  axisY2Label: "bb-axis-y2-label",
104
- axisYLabel: "bb-axis-y-label"
102
+ axisYLabel: "bb-axis-y-label",
103
+ axisXTooltip: "bb-axis-x-tooltip",
104
+ axisYTooltip: "bb-axis-y-tooltip",
105
+ axisY2Tooltip: "bb-axis-y2-tooltip"
105
106
  };
106
107
  var $BAR = {
107
108
  bar: "bb-bar",
@@ -130,6 +131,12 @@ var $DRAG = {
130
131
  dragarea: "bb-dragarea",
131
132
  INCLUDED: "_included_"
132
133
  };
134
+ var $FUNNEL = {
135
+ funnel: "bb-funnel",
136
+ chartFunnel: "bb-chart-funnel",
137
+ chartFunnels: "bb-chart-funnels",
138
+ funnelBackground: "bb-funnel-background"
139
+ };
133
140
  var $GAUGE = {
134
141
  chartArcsGaugeMax: "bb-chart-arcs-gauge-max",
135
142
  chartArcsGaugeMin: "bb-chart-arcs-gauge-min",
@@ -156,7 +163,7 @@ var $EVENT = {
156
163
  eventRect: "bb-event-rect",
157
164
  eventRects: "bb-event-rects",
158
165
  eventRectsMultiple: "bb-event-rects-multiple",
159
- eventRectsSingle: "bb-event-rects-single",
166
+ eventRectsSingle: "bb-event-rects-single"
160
167
  };
161
168
  var $FOCUS = {
162
169
  focused: "bb-focused",
@@ -192,7 +199,7 @@ var $SELECT = {
192
199
  };
193
200
  var $SHAPE = {
194
201
  shape: "bb-shape",
195
- shapes: "bb-shapes",
202
+ shapes: "bb-shapes"
196
203
  };
197
204
  var $SUBCHART = {
198
205
  brush: "bb-brush",
@@ -220,101 +227,7 @@ var $ZOOM = {
220
227
  buttonZoomReset: "bb-zoom-reset",
221
228
  zoomBrush: "bb-zoom-brush"
222
229
  };
223
- _assign(_assign(_assign(_assign(_assign(_assign(_assign(_assign(_assign(_assign(_assign(_assign(_assign(_assign(_assign(_assign(_assign(_assign(_assign(_assign(_assign(_assign(_assign(_assign({}, $COMMON), $ARC), $AREA), $AXIS), $BAR), $CANDLESTICK), $CIRCLE), $COLOR), $DRAG), $GAUGE), $LEGEND), $LINE), $EVENT), $FOCUS), $GRID), $RADAR), $REGION), $SELECT), $SHAPE), $SUBCHART), $TEXT), $TOOLTIP), $TREEMAP), $ZOOM);
224
-
225
- /**
226
- * Copyright (c) 2017 ~ present NAVER Corp.
227
- * billboard.js project is licensed under the MIT license
228
- */
229
- /**
230
- * Base class to generate billboard.js plugin
231
- * @class Plugin
232
- */
233
- /**
234
- * Version info string for plugin
235
- * @name version
236
- * @static
237
- * @memberof Plugin
238
- * @type {string}
239
- * @example
240
- * bb.plugin.stanford.version; // ex) 1.9.0
241
- */
242
- var Plugin = /** @class */ (function () {
243
- /**
244
- * Constructor
245
- * @param {Any} options config option object
246
- * @private
247
- */
248
- function Plugin(options) {
249
- if (options === void 0) { options = {}; }
250
- this.options = options;
251
- }
252
- /**
253
- * Lifecycle hook for 'beforeInit' phase.
254
- * @private
255
- */
256
- Plugin.prototype.$beforeInit = function () { };
257
- /**
258
- * Lifecycle hook for 'init' phase.
259
- * @private
260
- */
261
- Plugin.prototype.$init = function () { };
262
- /**
263
- * Lifecycle hook for 'afterInit' phase.
264
- * @private
265
- */
266
- Plugin.prototype.$afterInit = function () { };
267
- /**
268
- * Lifecycle hook for 'redraw' phase.
269
- * @private
270
- */
271
- Plugin.prototype.$redraw = function () { };
272
- /**
273
- * Lifecycle hook for 'willDestroy' phase.
274
- * @private
275
- */
276
- Plugin.prototype.$willDestroy = function () {
277
- var _this = this;
278
- Object.keys(this).forEach(function (key) {
279
- _this[key] = null;
280
- delete _this[key];
281
- });
282
- };
283
- Plugin.version = "3.11.3";
284
- return Plugin;
285
- }());
286
- var Plugin$1 = Plugin;
287
-
288
- /**
289
- * Copyright (c) 2021 ~ present NAVER Corp.
290
- * billboard.js project is licensed under the MIT license
291
- */
292
- /**
293
- * Sparkline plugin option class
294
- * @class SparklineOptions
295
- * @param {Options} options Sparkline plugin options
296
- * @augments Plugin
297
- * @returns {TableviewOptions}
298
- * @private
299
- */
300
- var Options = /** @class */ (function () {
301
- function Options() {
302
- return {
303
- /**
304
- * Specify sparkline charts holder selector.
305
- * - **NOTE:** The amount of holder should match with the amount of data. If has less, will append necessaray amount nodes as sibling of main chart.
306
- * @name selector
307
- * @memberof plugin-sparkline
308
- * @type {string}
309
- * @default undefined
310
- * @example
311
- * selector: ".sparkline"
312
- */
313
- selector: undefined
314
- };
315
- }
316
- return Options;
317
- }());
230
+ __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, $COMMON), $ARC), $AREA), $AXIS), $BAR), $CANDLESTICK), $CIRCLE), $COLOR), $DRAG), $GAUGE), $LEGEND), $LINE), $EVENT), $FOCUS), $FUNNEL), $GRID), $RADAR), $REGION), $SELECT), $SHAPE), $SUBCHART), $TEXT), $TOOLTIP), $TREEMAP), $ZOOM);
318
231
 
319
232
  /**
320
233
  * Copyright (c) 2017 ~ present NAVER Corp.
@@ -331,7 +244,8 @@ var Options = /** @class */ (function () {
331
244
  * @private
332
245
  */
333
246
  function getGlobal() {
334
- return (typeof globalThis === "object" && globalThis !== null && globalThis.Object === Object && globalThis) ||
247
+ return (typeof globalThis === "object" && globalThis !== null && globalThis.Object === Object &&
248
+ globalThis) ||
335
249
  (typeof global === "object" && global !== null && global.Object === Object && global) ||
336
250
  (typeof self === "object" && self !== null && self.Object === Object && self) ||
337
251
  Function("return this")();
@@ -379,8 +293,7 @@ function mergeObj(target) {
379
293
  target[key] = mergeObj(target[key], value);
380
294
  }
381
295
  else {
382
- target[key] = isArray(value) ?
383
- value.concat() : value;
296
+ target[key] = isArray(value) ? value.concat() : value;
384
297
  }
385
298
  });
386
299
  }
@@ -390,7 +303,12 @@ function mergeObj(target) {
390
303
  ({
391
304
  mouse: (function () {
392
305
  var getParams = function () { return ({
393
- bubbles: false, cancelable: false, screenX: 0, screenY: 0, clientX: 0, clientY: 0
306
+ bubbles: false,
307
+ cancelable: false,
308
+ screenX: 0,
309
+ screenY: 0,
310
+ clientX: 0,
311
+ clientY: 0
394
312
  }); };
395
313
  try {
396
314
  // eslint-disable-next-line no-new
@@ -432,10 +350,6 @@ function mergeObj(target) {
432
350
  }
433
351
  });
434
352
 
435
- /**
436
- * Copyright (c) 2017 ~ present NAVER Corp.
437
- * billboard.js project is licensed under the MIT license
438
- */
439
353
  /**
440
354
  * Load configuration option
441
355
  * @param {object} config User's generation config value
@@ -471,6 +385,99 @@ function loadConfig(config) {
471
385
  }
472
386
  }
473
387
 
388
+ /**
389
+ * Copyright (c) 2017 ~ present NAVER Corp.
390
+ * billboard.js project is licensed under the MIT license
391
+ */
392
+ /**
393
+ * Base class to generate billboard.js plugin
394
+ * @class Plugin
395
+ */
396
+ /**
397
+ * Version info string for plugin
398
+ * @name version
399
+ * @static
400
+ * @memberof Plugin
401
+ * @type {string}
402
+ * @example
403
+ * bb.plugin.stanford.version; // ex) 1.9.0
404
+ */
405
+ var Plugin = /** @class */ (function () {
406
+ /**
407
+ * Constructor
408
+ * @param {Any} options config option object
409
+ * @private
410
+ */
411
+ function Plugin(options) {
412
+ if (options === void 0) { options = {}; }
413
+ this.options = options;
414
+ }
415
+ /**
416
+ * Lifecycle hook for 'beforeInit' phase.
417
+ * @private
418
+ */
419
+ Plugin.prototype.$beforeInit = function () { };
420
+ /**
421
+ * Lifecycle hook for 'init' phase.
422
+ * @private
423
+ */
424
+ Plugin.prototype.$init = function () { };
425
+ /**
426
+ * Lifecycle hook for 'afterInit' phase.
427
+ * @private
428
+ */
429
+ Plugin.prototype.$afterInit = function () { };
430
+ /**
431
+ * Lifecycle hook for 'redraw' phase.
432
+ * @private
433
+ */
434
+ Plugin.prototype.$redraw = function () { };
435
+ /**
436
+ * Lifecycle hook for 'willDestroy' phase.
437
+ * @private
438
+ */
439
+ Plugin.prototype.$willDestroy = function () {
440
+ var _this = this;
441
+ Object.keys(this).forEach(function (key) {
442
+ _this[key] = null;
443
+ delete _this[key];
444
+ });
445
+ };
446
+ Plugin.version = "3.12.0-next.2";
447
+ return Plugin;
448
+ }());
449
+
450
+ /**
451
+ * Copyright (c) 2021 ~ present NAVER Corp.
452
+ * billboard.js project is licensed under the MIT license
453
+ */
454
+ /**
455
+ * Sparkline plugin option class
456
+ * @class SparklineOptions
457
+ * @param {Options} options Sparkline plugin options
458
+ * @augments Plugin
459
+ * @returns {TableviewOptions}
460
+ * @private
461
+ */
462
+ var Options = /** @class */ (function () {
463
+ function Options() {
464
+ return {
465
+ /**
466
+ * Specify sparkline charts holder selector.
467
+ * - **NOTE:** The amount of holder should match with the amount of data. If has less, will append necessaray amount nodes as sibling of main chart.
468
+ * @name selector
469
+ * @memberof plugin-sparkline
470
+ * @type {string}
471
+ * @default undefined
472
+ * @example
473
+ * selector: ".sparkline"
474
+ */
475
+ selector: undefined
476
+ };
477
+ }
478
+ return Options;
479
+ }());
480
+
474
481
  /**
475
482
  * Sparkline plugin.<br>
476
483
  * Generates sparkline charts
@@ -656,8 +663,7 @@ var Sparkline = /** @class */ (function (_super) {
656
663
  Sparkline.prototype.outHandler = function (e) {
657
664
  var $$ = this.$$;
658
665
  $$.state.event = e;
659
- $$.isPointFocusOnly() ?
660
- $$.hideCircleFocus() : $$.unexpandCircles();
666
+ $$.isPointFocusOnly() ? $$.hideCircleFocus() : $$.unexpandCircles();
661
667
  $$.hideTooltip();
662
668
  };
663
669
  Sparkline.prototype.$redraw = function () {
@@ -705,6 +711,6 @@ var Sparkline = /** @class */ (function (_super) {
705
711
  };
706
712
  Sparkline.version = "0.0.1";
707
713
  return Sparkline;
708
- }(Plugin$1));
714
+ }(Plugin));
709
715
 
710
716
  export { Sparkline as default };