billboard.js 3.7.5 → 3.8.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 (70) hide show
  1. package/dist/billboard.css +1 -1
  2. package/dist/billboard.js +368 -221
  3. package/dist/billboard.min.css +1 -1
  4. package/dist/billboard.min.js +2 -2
  5. package/dist/billboard.pkgd.js +371 -224
  6. package/dist/billboard.pkgd.min.js +3 -3
  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 +20 -18
  10. package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
  11. package/dist/plugin/billboardjs-plugin-stanford.js +20 -18
  12. package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
  13. package/dist/plugin/billboardjs-plugin-tableview.js +20 -18
  14. package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
  15. package/dist/plugin/billboardjs-plugin-textoverlap.js +20 -18
  16. package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
  17. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.js +4 -4
  18. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +22 -20
  19. package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +22 -20
  20. package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +22 -20
  21. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +49 -30
  22. package/dist/theme/datalab.css +1 -1
  23. package/dist/theme/datalab.min.css +1 -1
  24. package/dist/theme/graph.css +1 -1
  25. package/dist/theme/graph.min.css +1 -1
  26. package/dist/theme/insight.css +1 -1
  27. package/dist/theme/insight.min.css +1 -1
  28. package/dist-esm/billboard.js +339 -204
  29. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  30. package/dist-esm/plugin/billboardjs-plugin-sparkline.js +4 -9
  31. package/dist-esm/plugin/billboardjs-plugin-stanford.js +6 -11
  32. package/dist-esm/plugin/billboardjs-plugin-tableview.js +7 -12
  33. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -7
  34. package/package.json +25 -25
  35. package/src/Chart/api/focus.ts +4 -4
  36. package/src/Chart/api/grid.ts +206 -0
  37. package/src/Chart/api/load.ts +31 -21
  38. package/src/Chart/api/regions.ts +28 -24
  39. package/src/Chart/api/zoom.ts +18 -3
  40. package/src/ChartInternal/Axis/Axis.ts +1 -0
  41. package/src/ChartInternal/Axis/AxisRenderer.ts +7 -2
  42. package/src/ChartInternal/ChartInternal.ts +1 -1
  43. package/src/ChartInternal/data/convert.ts +6 -3
  44. package/src/ChartInternal/data/data.ts +19 -15
  45. package/src/ChartInternal/data/load.ts +19 -4
  46. package/src/ChartInternal/interactions/eventrect.ts +3 -2
  47. package/src/ChartInternal/interactions/subchart.ts +3 -2
  48. package/src/ChartInternal/interactions/zoom.ts +10 -3
  49. package/src/ChartInternal/internals/clip.ts +3 -2
  50. package/src/ChartInternal/internals/domain.ts +17 -8
  51. package/src/ChartInternal/internals/legend.ts +4 -1
  52. package/src/ChartInternal/internals/redraw.ts +0 -16
  53. package/src/ChartInternal/internals/scale.ts +7 -4
  54. package/src/ChartInternal/internals/size.axis.ts +14 -4
  55. package/src/ChartInternal/internals/size.ts +41 -18
  56. package/src/ChartInternal/internals/transform.ts +1 -1
  57. package/src/ChartInternal/internals/type.ts +10 -0
  58. package/src/config/Options/axis/x.ts +17 -0
  59. package/src/config/Options/axis/y.ts +2 -1
  60. package/src/config/Options/axis/y2.ts +2 -1
  61. package/src/config/Options/common/main.ts +19 -1
  62. package/src/config/resolver/axis.ts +2 -4
  63. package/src/module/browser.ts +13 -5
  64. package/src/module/generator.ts +3 -3
  65. package/src/module/util.ts +2 -2
  66. package/types/axis.d.ts +8 -7
  67. package/types/chart.d.ts +6 -1
  68. package/types/options.d.ts +6 -0
  69. package/src/Chart/api/grid.x.ts +0 -90
  70. package/src/Chart/api/grid.y.ts +0 -92
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.7.5
8
+ * @version 3.8.0-next.1
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -1155,10 +1155,10 @@ var store = __webpack_require__(37);
1155
1155
  (module.exports = function (key, value) {
1156
1156
  return store[key] || (store[key] = value !== undefined ? value : {});
1157
1157
  })('versions', []).push({
1158
- version: '3.29.0',
1158
+ version: '3.29.1',
1159
1159
  mode: IS_PURE ? 'pure' : 'global',
1160
1160
  copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
1161
- license: 'https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE',
1161
+ license: 'https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE',
1162
1162
  source: 'https://github.com/zloirock/core-js'
1163
1163
  });
1164
1164
 
@@ -18922,7 +18922,7 @@ var Plugin = /*#__PURE__*/function () {
18922
18922
  };
18923
18923
  return Plugin;
18924
18924
  }();
18925
- Plugin.version = "3.7.5";
18925
+ Plugin.version = "3.8.0-next.1";
18926
18926
 
18927
18927
  ;// CONCATENATED MODULE: ./src/Plugin/bubblecompare/index.ts
18928
18928
 
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.7.5
8
+ * @version 3.8.0-next.1
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -1155,10 +1155,10 @@ var store = __webpack_require__(37);
1155
1155
  (module.exports = function (key, value) {
1156
1156
  return store[key] || (store[key] = value !== undefined ? value : {});
1157
1157
  })('versions', []).push({
1158
- version: '3.29.0',
1158
+ version: '3.29.1',
1159
1159
  mode: IS_PURE ? 'pure' : 'global',
1160
1160
  copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
1161
- license: 'https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE',
1161
+ license: 'https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE',
1162
1162
  source: 'https://github.com/zloirock/core-js'
1163
1163
  });
1164
1164
 
@@ -18559,7 +18559,7 @@ var Plugin = /*#__PURE__*/function () {
18559
18559
  };
18560
18560
  return Plugin;
18561
18561
  }();
18562
- Plugin.version = "3.7.5";
18562
+ Plugin.version = "3.8.0-next.1";
18563
18563
 
18564
18564
  ;// CONCATENATED MODULE: ./src/Plugin/sparkline/Options.ts
18565
18565
  /**
@@ -21995,23 +21995,25 @@ var browser_this = undefined;
21995
21995
  /* eslint-disable no-new-func, no-undef */
21996
21996
 
21997
21997
  var win = function () {
21998
- _newArrowCheck(this, browser_this);
21999
- var root = typeof globalThis === "object" && globalThis !== null && globalThis.Object === Object && globalThis || typeof global === "object" && global !== null && global.Object === Object && global || typeof self === "object" && self !== null && self.Object === Object && self;
22000
- return root || Function("return this")();
22001
- }.bind(undefined)();
21998
+ _newArrowCheck(this, browser_this);
21999
+ var root = typeof globalThis === "object" && globalThis !== null && globalThis.Object === Object && globalThis || typeof global === "object" && global !== null && global.Object === Object && global || typeof self === "object" && self !== null && self.Object === Object && self;
22000
+ return root || Function("return this")();
22001
+ }.bind(undefined)(),
22002
+ hasRAF = typeof win.requestAnimationFrame === "function",
22003
+ hasRIC = typeof win.requestIdleCallback === "function",
22004
+ requestAnimationFrame = hasRAF ? win.requestAnimationFrame : function (cb) {
22005
+ _newArrowCheck(this, browser_this);
22006
+ return setTimeout(cb, 1);
22007
+ }.bind(undefined),
22008
+ cancelAnimationFrame = hasRAF ? win.cancelAnimationFrame : function (id) {
22009
+ _newArrowCheck(this, browser_this);
22010
+ return clearTimeout(id);
22011
+ }.bind(undefined),
22012
+ requestIdleCallback = hasRIC ? win.requestIdleCallback : requestAnimationFrame,
22013
+ cancelIdleCallback = hasRIC ? win.cancelIdleCallback : cancelAnimationFrame,
22014
+ doc = win == null ? void 0 : win.document;
22002
22015
  /* eslint-enable no-new-func, no-undef */
22003
-
22004
22016
  // fallback for non-supported environments
22005
- win.requestIdleCallback = win.requestIdleCallback || function (cb) {
22006
- _newArrowCheck(this, browser_this);
22007
- return setTimeout(cb, 1);
22008
- }.bind(undefined);
22009
- // win.cancelIdleCallback = win.cancelIdleCallback || (id => clearTimeout(id));
22010
- win.requestAnimationFrame = win.requestAnimationFrame || function (cb) {
22011
- _newArrowCheck(this, browser_this);
22012
- return setTimeout(cb, 1);
22013
- }.bind(undefined);
22014
- var doc = win == null ? void 0 : win.document;
22015
22017
  ;// CONCATENATED MODULE: ./src/module/util.ts
22016
22018
 
22017
22019
 
@@ -22866,7 +22868,7 @@ function convertInputType(mouse, touch) {
22866
22868
  function runUntil(fn, conditionFn) {
22867
22869
  var _this18 = this;
22868
22870
  if (conditionFn() === !1) {
22869
- win.requestAnimationFrame(function () {
22871
+ requestAnimationFrame(function () {
22870
22872
  _newArrowCheck(this, _this18);
22871
22873
  return runUntil(fn, conditionFn);
22872
22874
  }.bind(this));
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.7.5
8
+ * @version 3.8.0-next.1
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -1155,10 +1155,10 @@ var store = __webpack_require__(37);
1155
1155
  (module.exports = function (key, value) {
1156
1156
  return store[key] || (store[key] = value !== undefined ? value : {});
1157
1157
  })('versions', []).push({
1158
- version: '3.29.0',
1158
+ version: '3.29.1',
1159
1159
  mode: IS_PURE ? 'pure' : 'global',
1160
1160
  copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
1161
- license: 'https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE',
1161
+ license: 'https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE',
1162
1162
  source: 'https://github.com/zloirock/core-js'
1163
1163
  });
1164
1164
 
@@ -23036,23 +23036,25 @@ var browser_this = undefined;
23036
23036
  /* eslint-disable no-new-func, no-undef */
23037
23037
 
23038
23038
  var win = function () {
23039
- _newArrowCheck(this, browser_this);
23040
- var root = typeof globalThis === "object" && globalThis !== null && globalThis.Object === Object && globalThis || typeof global === "object" && global !== null && global.Object === Object && global || typeof self === "object" && self !== null && self.Object === Object && self;
23041
- return root || Function("return this")();
23042
- }.bind(undefined)();
23039
+ _newArrowCheck(this, browser_this);
23040
+ var root = typeof globalThis === "object" && globalThis !== null && globalThis.Object === Object && globalThis || typeof global === "object" && global !== null && global.Object === Object && global || typeof self === "object" && self !== null && self.Object === Object && self;
23041
+ return root || Function("return this")();
23042
+ }.bind(undefined)(),
23043
+ hasRAF = typeof win.requestAnimationFrame === "function",
23044
+ hasRIC = typeof win.requestIdleCallback === "function",
23045
+ requestAnimationFrame = hasRAF ? win.requestAnimationFrame : function (cb) {
23046
+ _newArrowCheck(this, browser_this);
23047
+ return setTimeout(cb, 1);
23048
+ }.bind(undefined),
23049
+ cancelAnimationFrame = hasRAF ? win.cancelAnimationFrame : function (id) {
23050
+ _newArrowCheck(this, browser_this);
23051
+ return clearTimeout(id);
23052
+ }.bind(undefined),
23053
+ requestIdleCallback = hasRIC ? win.requestIdleCallback : requestAnimationFrame,
23054
+ cancelIdleCallback = hasRIC ? win.cancelIdleCallback : cancelAnimationFrame,
23055
+ doc = win == null ? void 0 : win.document;
23043
23056
  /* eslint-enable no-new-func, no-undef */
23044
-
23045
23057
  // fallback for non-supported environments
23046
- win.requestIdleCallback = win.requestIdleCallback || function (cb) {
23047
- _newArrowCheck(this, browser_this);
23048
- return setTimeout(cb, 1);
23049
- }.bind(undefined);
23050
- // win.cancelIdleCallback = win.cancelIdleCallback || (id => clearTimeout(id));
23051
- win.requestAnimationFrame = win.requestAnimationFrame || function (cb) {
23052
- _newArrowCheck(this, browser_this);
23053
- return setTimeout(cb, 1);
23054
- }.bind(undefined);
23055
- var doc = win == null ? void 0 : win.document;
23056
23058
  ;// CONCATENATED MODULE: ./src/module/util.ts
23057
23059
 
23058
23060
 
@@ -23907,7 +23909,7 @@ function convertInputType(mouse, touch) {
23907
23909
  function runUntil(fn, conditionFn) {
23908
23910
  var _this18 = this;
23909
23911
  if (conditionFn() === !1) {
23910
- win.requestAnimationFrame(function () {
23912
+ requestAnimationFrame(function () {
23911
23913
  _newArrowCheck(this, _this18);
23912
23914
  return runUntil(fn, conditionFn);
23913
23915
  }.bind(this));
@@ -24032,7 +24034,7 @@ var Plugin = /*#__PURE__*/function () {
24032
24034
  };
24033
24035
  return Plugin;
24034
24036
  }();
24035
- Plugin.version = "3.7.5";
24037
+ Plugin.version = "3.8.0-next.1";
24036
24038
 
24037
24039
  ;// CONCATENATED MODULE: ./src/Plugin/stanford/Options.ts
24038
24040
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.7.5
8
+ * @version 3.8.0-next.1
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -1155,10 +1155,10 @@ var store = __webpack_require__(37);
1155
1155
  (module.exports = function (key, value) {
1156
1156
  return store[key] || (store[key] = value !== undefined ? value : {});
1157
1157
  })('versions', []).push({
1158
- version: '3.29.0',
1158
+ version: '3.29.1',
1159
1159
  mode: IS_PURE ? 'pure' : 'global',
1160
1160
  copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
1161
- license: 'https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE',
1161
+ license: 'https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE',
1162
1162
  source: 'https://github.com/zloirock/core-js'
1163
1163
  });
1164
1164
 
@@ -18397,7 +18397,7 @@ var Plugin = /*#__PURE__*/function () {
18397
18397
  };
18398
18398
  return Plugin;
18399
18399
  }();
18400
- Plugin.version = "3.7.5";
18400
+ Plugin.version = "3.8.0-next.1";
18401
18401
 
18402
18402
  ;// CONCATENATED MODULE: ./src/Plugin/tableview/Options.ts
18403
18403
  /**
@@ -21924,23 +21924,25 @@ var browser_this = undefined;
21924
21924
  /* eslint-disable no-new-func, no-undef */
21925
21925
 
21926
21926
  var win = function () {
21927
- _newArrowCheck(this, browser_this);
21928
- var root = typeof globalThis === "object" && globalThis !== null && globalThis.Object === Object && globalThis || typeof global === "object" && global !== null && global.Object === Object && global || typeof self === "object" && self !== null && self.Object === Object && self;
21929
- return root || Function("return this")();
21930
- }.bind(undefined)();
21927
+ _newArrowCheck(this, browser_this);
21928
+ var root = typeof globalThis === "object" && globalThis !== null && globalThis.Object === Object && globalThis || typeof global === "object" && global !== null && global.Object === Object && global || typeof self === "object" && self !== null && self.Object === Object && self;
21929
+ return root || Function("return this")();
21930
+ }.bind(undefined)(),
21931
+ hasRAF = typeof win.requestAnimationFrame === "function",
21932
+ hasRIC = typeof win.requestIdleCallback === "function",
21933
+ requestAnimationFrame = hasRAF ? win.requestAnimationFrame : function (cb) {
21934
+ _newArrowCheck(this, browser_this);
21935
+ return setTimeout(cb, 1);
21936
+ }.bind(undefined),
21937
+ cancelAnimationFrame = hasRAF ? win.cancelAnimationFrame : function (id) {
21938
+ _newArrowCheck(this, browser_this);
21939
+ return clearTimeout(id);
21940
+ }.bind(undefined),
21941
+ requestIdleCallback = hasRIC ? win.requestIdleCallback : requestAnimationFrame,
21942
+ cancelIdleCallback = hasRIC ? win.cancelIdleCallback : cancelAnimationFrame,
21943
+ doc = win == null ? void 0 : win.document;
21931
21944
  /* eslint-enable no-new-func, no-undef */
21932
-
21933
21945
  // fallback for non-supported environments
21934
- win.requestIdleCallback = win.requestIdleCallback || function (cb) {
21935
- _newArrowCheck(this, browser_this);
21936
- return setTimeout(cb, 1);
21937
- }.bind(undefined);
21938
- // win.cancelIdleCallback = win.cancelIdleCallback || (id => clearTimeout(id));
21939
- win.requestAnimationFrame = win.requestAnimationFrame || function (cb) {
21940
- _newArrowCheck(this, browser_this);
21941
- return setTimeout(cb, 1);
21942
- }.bind(undefined);
21943
- var doc = win == null ? void 0 : win.document;
21944
21946
  ;// CONCATENATED MODULE: ./src/module/util.ts
21945
21947
 
21946
21948
 
@@ -22795,7 +22797,7 @@ function convertInputType(mouse, touch) {
22795
22797
  function runUntil(fn, conditionFn) {
22796
22798
  var _this18 = this;
22797
22799
  if (conditionFn() === !1) {
22798
- win.requestAnimationFrame(function () {
22800
+ requestAnimationFrame(function () {
22799
22801
  _newArrowCheck(this, _this18);
22800
22802
  return runUntil(fn, conditionFn);
22801
22803
  }.bind(this));
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.7.5
8
+ * @version 3.8.0-next.1
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -1155,10 +1155,10 @@ var store = __webpack_require__(37);
1155
1155
  (module.exports = function (key, value) {
1156
1156
  return store[key] || (store[key] = value !== undefined ? value : {});
1157
1157
  })('versions', []).push({
1158
- version: '3.29.0',
1158
+ version: '3.29.1',
1159
1159
  mode: IS_PURE ? 'pure' : 'global',
1160
1160
  copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
1161
- license: 'https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE',
1161
+ license: 'https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE',
1162
1162
  source: 'https://github.com/zloirock/core-js'
1163
1163
  });
1164
1164
 
@@ -21402,7 +21402,7 @@ var Voronoi = /*#__PURE__*/function () {
21402
21402
  _context2.next = 17;
21403
21403
  break;
21404
21404
  }
21405
- if (!(ci[ai] == cj[aj] && ci[ai + 1] == cj[aj + 1] && ci[(ai + 2) % li] == cj[(aj + lj - 2) % lj] && ci[(ai + 3) % li] == cj[(aj + lj - 1) % lj])) {
21405
+ if (!(ci[ai] === cj[aj] && ci[ai + 1] === cj[aj + 1] && ci[(ai + 2) % li] === cj[(aj + lj - 2) % lj] && ci[(ai + 3) % li] === cj[(aj + lj - 1) % lj])) {
21406
21406
  _context2.next = 14;
21407
21407
  break;
21408
21408
  }
@@ -21455,7 +21455,7 @@ var Voronoi = /*#__PURE__*/function () {
21455
21455
  if (points === null) return null;
21456
21456
  var V = this.vectors,
21457
21457
  v = i * 4;
21458
- return V[v] || V[v + 1] ? this._clipInfinite(i, points, V[v], V[v + 1], V[v + 2], V[v + 3]) : this._clipFinite(i, points);
21458
+ return this._simplify(V[v] || V[v + 1] ? this._clipInfinite(i, points, V[v], V[v + 1], V[v + 2], V[v + 3]) : this._clipFinite(i, points));
21459
21459
  };
21460
21460
  _proto._clipFinite = function _clipFinite(i, points) {
21461
21461
  var n = points.length;
@@ -21512,8 +21512,19 @@ var Voronoi = /*#__PURE__*/function () {
21512
21512
  return P;
21513
21513
  };
21514
21514
  _proto._clipSegment = function _clipSegment(x0, y0, x1, y1, c0, c1) {
21515
+ // for more robustness, always consider the segment in the same order
21516
+ var flip = c0 < c1;
21517
+ if (flip) {
21518
+ var _ref2 = [x1, y1, x0, y0, c1, c0];
21519
+ x0 = _ref2[0];
21520
+ y0 = _ref2[1];
21521
+ x1 = _ref2[2];
21522
+ y1 = _ref2[3];
21523
+ c0 = _ref2[4];
21524
+ c1 = _ref2[5];
21525
+ }
21515
21526
  while (!0) {
21516
- if (c0 === 0 && c1 === 0) return [x0, y0, x1, y1];
21527
+ if (c0 === 0 && c1 === 0) return flip ? [x1, y1, x0, y0] : [x0, y0, x1, y1];
21517
21528
  if (c0 & c1) return null;
21518
21529
  var x = void 0,
21519
21530
  y = void 0,
@@ -21581,13 +21592,6 @@ var Voronoi = /*#__PURE__*/function () {
21581
21592
  P.splice(j, 0, x, y), j += 2;
21582
21593
  }
21583
21594
  }
21584
- if (P.length > 4) {
21585
- for (var _i4 = 0; _i4 < P.length; _i4 += 2) {
21586
- var _j = (_i4 + 2) % P.length,
21587
- k = (_i4 + 4) % P.length;
21588
- if (P[_i4] === P[_j] && P[_j] === P[k] || P[_i4 + 1] === P[_j + 1] && P[_j + 1] === P[k + 1]) P.splice(_j, 2), _i4 -= 2;
21589
- }
21590
- }
21591
21595
  return j;
21592
21596
  };
21593
21597
  _proto._project = function _project(x0, y0, vx, vy) {
@@ -21621,6 +21625,19 @@ var Voronoi = /*#__PURE__*/function () {
21621
21625
  _proto._regioncode = function _regioncode(x, y) {
21622
21626
  return (x < this.xmin ? 1 : x > this.xmax ? 2 : 0) | (y < this.ymin ? 4 : y > this.ymax ? 8 : 0);
21623
21627
  };
21628
+ _proto._simplify = function _simplify(P) {
21629
+ if (P && P.length > 4) {
21630
+ for (var i = 0; i < P.length; i += 2) {
21631
+ var j = (i + 2) % P.length,
21632
+ k = (i + 4) % P.length;
21633
+ if (P[i] === P[j] && P[j] === P[k] || P[i + 1] === P[j + 1] && P[j + 1] === P[k + 1]) {
21634
+ P.splice(j, 2), i -= 2;
21635
+ }
21636
+ }
21637
+ if (!P.length) P = null;
21638
+ }
21639
+ return P;
21640
+ };
21624
21641
  return Voronoi;
21625
21642
  }();
21626
21643
 
@@ -25468,23 +25485,25 @@ var browser_this = undefined;
25468
25485
  /* eslint-disable no-new-func, no-undef */
25469
25486
 
25470
25487
  var win = function () {
25471
- _newArrowCheck(this, browser_this);
25472
- var root = typeof globalThis === "object" && globalThis !== null && globalThis.Object === Object && globalThis || typeof global === "object" && global !== null && global.Object === Object && global || typeof self === "object" && self !== null && self.Object === Object && self;
25473
- return root || Function("return this")();
25474
- }.bind(undefined)();
25488
+ _newArrowCheck(this, browser_this);
25489
+ var root = typeof globalThis === "object" && globalThis !== null && globalThis.Object === Object && globalThis || typeof global === "object" && global !== null && global.Object === Object && global || typeof self === "object" && self !== null && self.Object === Object && self;
25490
+ return root || Function("return this")();
25491
+ }.bind(undefined)(),
25492
+ hasRAF = typeof win.requestAnimationFrame === "function",
25493
+ hasRIC = typeof win.requestIdleCallback === "function",
25494
+ requestAnimationFrame = hasRAF ? win.requestAnimationFrame : function (cb) {
25495
+ _newArrowCheck(this, browser_this);
25496
+ return setTimeout(cb, 1);
25497
+ }.bind(undefined),
25498
+ cancelAnimationFrame = hasRAF ? win.cancelAnimationFrame : function (id) {
25499
+ _newArrowCheck(this, browser_this);
25500
+ return clearTimeout(id);
25501
+ }.bind(undefined),
25502
+ requestIdleCallback = hasRIC ? win.requestIdleCallback : requestAnimationFrame,
25503
+ cancelIdleCallback = hasRIC ? win.cancelIdleCallback : cancelAnimationFrame,
25504
+ doc = win == null ? void 0 : win.document;
25475
25505
  /* eslint-enable no-new-func, no-undef */
25476
-
25477
25506
  // fallback for non-supported environments
25478
- win.requestIdleCallback = win.requestIdleCallback || function (cb) {
25479
- _newArrowCheck(this, browser_this);
25480
- return setTimeout(cb, 1);
25481
- }.bind(undefined);
25482
- // win.cancelIdleCallback = win.cancelIdleCallback || (id => clearTimeout(id));
25483
- win.requestAnimationFrame = win.requestAnimationFrame || function (cb) {
25484
- _newArrowCheck(this, browser_this);
25485
- return setTimeout(cb, 1);
25486
- }.bind(undefined);
25487
- var doc = win == null ? void 0 : win.document;
25488
25507
  ;// CONCATENATED MODULE: ./src/module/util.ts
25489
25508
 
25490
25509
 
@@ -26339,7 +26358,7 @@ function convertInputType(mouse, touch) {
26339
26358
  function runUntil(fn, conditionFn) {
26340
26359
  var _this18 = this;
26341
26360
  if (conditionFn() === !1) {
26342
- win.requestAnimationFrame(function () {
26361
+ requestAnimationFrame(function () {
26343
26362
  _newArrowCheck(this, _this18);
26344
26363
  return runUntil(fn, conditionFn);
26345
26364
  }.bind(this));
@@ -26464,7 +26483,7 @@ var Plugin = /*#__PURE__*/function () {
26464
26483
  };
26465
26484
  return Plugin;
26466
26485
  }();
26467
- Plugin.version = "3.7.5";
26486
+ Plugin.version = "3.8.0-next.1";
26468
26487
 
26469
26488
  ;// CONCATENATED MODULE: ./src/Plugin/textoverlap/Options.ts
26470
26489
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.7.5
8
+ * @version 3.8.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.7.5
8
+ * @version 3.8.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-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{-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.7.5
8
+ * @version 3.8.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.7.5
8
+ * @version 3.8.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-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}.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.7.5
8
+ * @version 3.8.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.7.5
8
+ * @version 3.8.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-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}.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}