billboard.js 3.6.3 → 3.7.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 (91) hide show
  1. package/dist/billboard.css +6 -1
  2. package/dist/billboard.js +1704 -843
  3. package/dist/billboard.min.css +2 -2
  4. package/dist/billboard.min.js +2 -2
  5. package/dist/billboard.pkgd.js +3819 -2263
  6. package/dist/billboard.pkgd.min.js +6 -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 +62 -23
  10. package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
  11. package/dist/plugin/billboardjs-plugin-stanford.js +62 -23
  12. package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
  13. package/dist/plugin/billboardjs-plugin-tableview.js +48 -14
  14. package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
  15. package/dist/plugin/billboardjs-plugin-textoverlap.js +48 -14
  16. package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
  17. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.js +1087 -1031
  18. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +1171 -1112
  19. package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +1222 -1169
  20. package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +1159 -1105
  21. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +1365 -1319
  22. package/dist/theme/datalab.css +6 -1
  23. package/dist/theme/datalab.min.css +2 -2
  24. package/dist/theme/graph.css +6 -1
  25. package/dist/theme/graph.min.css +2 -2
  26. package/dist/theme/insight.css +6 -1
  27. package/dist/theme/insight.min.css +2 -2
  28. package/dist-esm/billboard.js +942 -277
  29. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +3 -5
  30. package/dist-esm/plugin/billboardjs-plugin-sparkline.js +10 -9
  31. package/dist-esm/plugin/billboardjs-plugin-stanford.js +10 -9
  32. package/dist-esm/plugin/billboardjs-plugin-tableview.js +4 -8
  33. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +3 -5
  34. package/package.json +44 -38
  35. package/src/Chart/api/chart.ts +13 -4
  36. package/src/Chart/api/export.ts +159 -14
  37. package/src/Chart/api/legend.ts +1 -0
  38. package/src/Chart/api/load.ts +1 -0
  39. package/src/Chart/api/tooltip.ts +11 -2
  40. package/src/ChartInternal/Axis/Axis.ts +1 -1
  41. package/src/ChartInternal/ChartInternal.ts +35 -25
  42. package/src/ChartInternal/data/IData.ts +9 -0
  43. package/src/ChartInternal/data/convert.helper.ts +35 -21
  44. package/src/ChartInternal/data/data.ts +26 -5
  45. package/src/ChartInternal/data/load.ts +3 -0
  46. package/src/ChartInternal/interactions/interaction.ts +42 -33
  47. package/src/ChartInternal/internals/class.ts +3 -4
  48. package/src/ChartInternal/internals/clip.ts +13 -10
  49. package/src/ChartInternal/internals/domain.ts +11 -4
  50. package/src/ChartInternal/internals/format.ts +1 -1
  51. package/src/ChartInternal/internals/grid.ts +1 -1
  52. package/src/ChartInternal/internals/legend.ts +3 -2
  53. package/src/ChartInternal/internals/redraw.ts +12 -5
  54. package/src/ChartInternal/internals/scale.ts +7 -2
  55. package/src/ChartInternal/internals/size.ts +41 -26
  56. package/src/ChartInternal/internals/text.ts +60 -32
  57. package/src/ChartInternal/internals/tooltip.ts +12 -8
  58. package/src/ChartInternal/internals/transform.ts +2 -2
  59. package/src/ChartInternal/internals/type.ts +6 -1
  60. package/src/ChartInternal/shape/arc.ts +145 -68
  61. package/src/ChartInternal/shape/area.ts +3 -0
  62. package/src/ChartInternal/shape/bar.ts +4 -1
  63. package/src/ChartInternal/shape/line.ts +12 -15
  64. package/src/ChartInternal/shape/radar.ts +2 -2
  65. package/src/ChartInternal/shape/shape.ts +10 -5
  66. package/src/ChartInternal/shape/treemap.ts +293 -0
  67. package/src/config/Options/common/tooltip.ts +11 -8
  68. package/src/config/Options/data/data.ts +6 -3
  69. package/src/config/Options/shape/arc.ts +47 -0
  70. package/src/config/Options/shape/gauge.ts +2 -2
  71. package/src/config/Options/shape/pie.ts +1 -1
  72. package/src/config/Options/shape/polar.ts +1 -1
  73. package/src/config/Options/shape/radar.ts +1 -1
  74. package/src/config/Options/shape/spline.ts +1 -1
  75. package/src/config/Options/shape/treemap.ts +53 -0
  76. package/src/config/Store/State.ts +1 -0
  77. package/src/config/classes.ts +7 -0
  78. package/src/config/const.ts +4 -2
  79. package/src/config/resolver/shape.ts +22 -5
  80. package/src/index.esm.ts +2 -1
  81. package/src/module/util.ts +1 -1
  82. package/src/scss/billboard.scss +6 -0
  83. package/src/scss/theme/datalab.scss +6 -0
  84. package/src/scss/theme/graph.scss +6 -0
  85. package/src/scss/theme/insight.scss +6 -0
  86. package/types/bb.d.ts +1 -0
  87. package/types/chart.d.ts +7 -0
  88. package/types/index.d.ts +1 -0
  89. package/types/options.d.ts +42 -624
  90. package/types/options.shape.d.ts +664 -0
  91. package/types/types.d.ts +4 -3
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.6.3
8
+ * @version 3.7.0-next.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -90,8 +90,39 @@ __webpack_require__.d(__webpack_exports__, {
90
90
  "default": function() { return /* binding */ TableView; }
91
91
  });
92
92
 
93
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
94
+ function _typeof(obj) {
95
+ "@babel/helpers - typeof";
96
+
97
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
98
+ return typeof obj;
99
+ } : function (obj) {
100
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
101
+ }, _typeof(obj);
102
+ }
103
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
104
+
105
+ function _toPrimitive(input, hint) {
106
+ if (_typeof(input) !== "object" || input === null) return input;
107
+ var prim = input[Symbol.toPrimitive];
108
+ if (prim !== undefined) {
109
+ var res = prim.call(input, hint || "default");
110
+ if (_typeof(res) !== "object") return res;
111
+ throw new TypeError("@@toPrimitive must return a primitive value.");
112
+ }
113
+ return (hint === "string" ? String : Number)(input);
114
+ }
115
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
116
+
117
+
118
+ function _toPropertyKey(arg) {
119
+ var key = _toPrimitive(arg, "string");
120
+ return _typeof(key) === "symbol" ? key : String(key);
121
+ }
93
122
  ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
123
+
94
124
  function _defineProperty(obj, key, value) {
125
+ key = _toPropertyKey(key);
95
126
  if (key in obj) {
96
127
  Object.defineProperty(obj, key, {
97
128
  value: value,
@@ -205,7 +236,7 @@ var Plugin = /*#__PURE__*/function () {
205
236
  };
206
237
  return Plugin;
207
238
  }();
208
- Plugin.version = "3.6.3";
239
+ Plugin.version = "3.7.0-next.2";
209
240
 
210
241
  ;// CONCATENATED MODULE: ./src/Plugin/tableview/Options.ts
211
242
  /**
@@ -476,7 +507,8 @@ function hasValue(dict, value) {
476
507
  * @private
477
508
  */
478
509
  function callFn(fn, thisArg) {
479
- for (var isFn = isFunction(fn), _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
510
+ var isFn = isFunction(fn);
511
+ for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
480
512
  args[_key - 2] = arguments[_key];
481
513
  }
482
514
  isFn && fn.call.apply(fn, [thisArg].concat(args));
@@ -648,8 +680,9 @@ function getPointer(event, element) {
648
680
  function getBrushSelection(ctx) {
649
681
  var event = ctx.event,
650
682
  $el = ctx.$el,
651
- main = $el.subchart.main || $el.main,
652
- selection;
683
+ main = $el.subchart.main || $el.main;
684
+ var selection;
685
+
653
686
  // check from event
654
687
  if (event && event.type === "brush") {
655
688
  selection = event.selection;
@@ -708,8 +741,8 @@ function findIndex(arr, v, start, end, isRotated) {
708
741
  if (start > end) {
709
742
  return -1;
710
743
  }
711
- var mid = Math.floor((start + end) / 2),
712
- _arr$mid = arr[mid],
744
+ var mid = Math.floor((start + end) / 2);
745
+ var _arr$mid = arr[mid],
713
746
  x = _arr$mid.x,
714
747
  _arr$mid$w = _arr$mid.w,
715
748
  w = _arr$mid$w === void 0 ? 0 : _arr$mid$w;
@@ -747,12 +780,12 @@ function brushEmpty(ctx) {
747
780
  * @private
748
781
  */
749
782
  function deepClone() {
750
- for (var _this6 = this, clone = function (v) {
783
+ for (var _this6 = this, _clone = function clone(v) {
751
784
  _newArrowCheck(this, _this6);
752
785
  if (isObject(v) && v.constructor) {
753
786
  var r = new v.constructor();
754
787
  for (var k in v) {
755
- r[k] = clone(v[k]);
788
+ r[k] = _clone(v[k]);
756
789
  }
757
790
  return r;
758
791
  }
@@ -762,7 +795,7 @@ function deepClone() {
762
795
  }
763
796
  return objectN.map(function (v) {
764
797
  _newArrowCheck(this, _this6);
765
- return clone(v);
798
+ return _clone(v);
766
799
  }.bind(this)).reduce(function (a, c) {
767
800
  _newArrowCheck(this, _this6);
768
801
  return _objectSpread(_objectSpread({}, a), c);
@@ -874,7 +907,8 @@ function getCssRules(styleSheets) {
874
907
  rules = rules.concat(toArray(sheet.cssRules));
875
908
  }
876
909
  } catch (e) {
877
- console.error("Error while reading rules from " + sheet.href + ": " + e.toString());
910
+ var _window$console;
911
+ (_window$console = win.console) == null ? void 0 : _window$console.warn("Error while reading rules from " + sheet.href + ": " + e.toString());
878
912
  }
879
913
  }.bind(this));
880
914
  return rules;
@@ -1238,12 +1272,12 @@ function loadConfig(config) {
1238
1272
  target,
1239
1273
  keys,
1240
1274
  read,
1241
- find = function () {
1275
+ _find = function find() {
1242
1276
  _newArrowCheck(this, _this);
1243
1277
  var key = keys.shift();
1244
1278
  if (key && target && isObjectType(target) && key in target) {
1245
1279
  target = target[key];
1246
- return find();
1280
+ return _find();
1247
1281
  } else if (!key) {
1248
1282
  return target;
1249
1283
  }
@@ -1253,7 +1287,7 @@ function loadConfig(config) {
1253
1287
  _newArrowCheck(this, _this);
1254
1288
  target = config;
1255
1289
  keys = key.split("_");
1256
- read = find();
1290
+ read = _find();
1257
1291
  if (isDefined(read)) {
1258
1292
  thisConfig[key] = read;
1259
1293
  }
@@ -5,8 +5,8 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.6.3
8
+ * @version 3.7.0-next.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
12
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("d3-selection"),require("d3-brush")):"function"==typeof define&&define.amd?define("bb",["d3-selection","d3-brush"],e):"object"==typeof exports?exports.bb=e(require("d3-selection"),require("d3-brush")):(t.bb=t.bb||{},t.bb.plugin=t.bb.plugin||{},t.bb.plugin.tableview=e(t.d3,t.d3))}(this,(function(t,e){return function(){"use strict";var n=[,function(e){e.exports=t},,function(t){t.exports=e}],i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.d=function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var r={};return function(){function t(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function e(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}o.d(r,{default:function(){return q}});var c=function(){function t(t){void 0===t&&(t={}),this.$$=void 0,this.options=void 0,this.options=t}var n=t.prototype;return n.$beforeInit=function(){},n.$init=function(){},n.$afterInit=function(){},n.$redraw=function(){},n.$willDestroy=function(){var t=this;Object.keys(this).forEach(function(n){e(this,t),this[n]=null,delete this[n]}.bind(this))},t}();c.version="3.6.3";var a=function(){return{selector:void 0,categoryTitle:"Category",categoryFormat:function(t){var e=t;return this.$$.axis.isCategorized()?e=this.$$.categoryName(t):this.$$.axis.isTimeSeries()&&(e=t.toLocaleDateString()),e},class:void 0,style:!0,title:void 0,updateOnToggle:!0}},s="__tableview-style__",u="bb-tableview",l=".bb-tableview {\n\t\tborder-collapse:collapse;\n\t\tborder-spacing:0;\n\t\tbackground:#fff;\n\t\tmin-width:100%;\n\t\tmargin-top:10px;\n\t\tfont-family:sans-serif;\n\t\tfont-size:.9em;\n\t}\n\t.bb-tableview tr:hover {\n\t\tbackground:#eef7ff;\n\t}\n\t.bb-tableview thead tr {\n\t\tbackground:#f8f8f8;\n\t}\n\t.bb-tableview caption,.bb-tableview td,.bb-tableview th {\n\t\ttext-align: center;\n\t\tborder:1px solid silver;\n\t\tpadding:.5em;\n\t}\n\t.bb-tableview caption {\n\t\tfont-size:1.1em;\n\t\tfont-weight:700;\n\t\tmargin-bottom: -1px;\n\t}",d="<caption>{=title}</caption>\n\t\t<thead><tr>{=thead}</tr></thead>\n\t\t<tbody>{=tbody}</tbody>",b='<th scope="col">{=title}</th>',f='<th scope="row">{=value}</th>',h="<td>{=value}</td>",v=(o(1),o(3),void 0),p=function(){return e(this,v),"object"==typeof globalThis&&null!==globalThis&&globalThis.Object===Object&&globalThis||"object"==typeof global&&null!==global&&global.Object===Object&&global||"object"==typeof self&&null!==self&&self.Object===Object&&self||Function("return this")()}.bind(void 0)();p.requestIdleCallback=p.requestIdleCallback||function(t){return e(this,v),setTimeout(t,1)}.bind(void 0),p.requestAnimationFrame=p.requestAnimationFrame||function(t){return e(this,v),setTimeout(t,1)}.bind(void 0);var g=null==p?void 0:p.document,y=void 0;(function(t){return e(this,y),t||0===t}).bind(void 0),function(t){return e(this,y),"function"==typeof t}.bind(void 0);var m=function(t){return e(this,y),"string"==typeof t}.bind(void 0),w=function(t){return e(this,y),"number"==typeof t}.bind(void 0),O=function(t){return e(this,y),void 0===t}.bind(void 0),j=function(t){return e(this,y),void 0!==t}.bind(void 0),E=(function(t){return e(this,y),"boolean"==typeof t}.bind(void 0),function(t){return e(this,y),10*Math.ceil(t/10)}.bind(void 0),function(t){return e(this,y),Math.ceil(t)+.5}.bind(void 0),function(t){return e(this,y),t[1]-t[0]}.bind(void 0),function(t){return e(this,y),"object"==typeof t}.bind(void 0)),$=function(t){return e(this,y),O(t)||null===t||m(t)&&0===t.length||E(t)&&!(t instanceof Date)&&0===Object.keys(t).length||w(t)&&isNaN(t)}.bind(void 0),T=(function(t){return e(this,y),!$(t)}.bind(void 0),function(t){return e(this,y),Array.isArray(t)}.bind(void 0)),x=function(t){return e(this,y),t&&!(null!=t&&t.nodeType)&&E(t)&&!T(t)}.bind(void 0);(function(t){return e(this,y),t.charAt(0).toUpperCase()+t.slice(1)}).bind(void 0);(function(t){return e(this,y),[].slice.call(t)}).bind(void 0);function P(t){for(var n=this,i=arguments.length,o=Array(i>1?i-1:0),r=1;r<i;r++)o[r-1]=arguments[r];if(!o.length||1===o.length&&!o[0])return t;var c=o.shift();return x(t)&&x(c)&&Object.keys(c).forEach(function(i){e(this,n);var o=c[i];x(o)?(t[i]||(t[i]={}),t[i]=P(t[i],o)):t[i]=T(o)?o.concat():o}.bind(this)),P.apply(void 0,[t].concat(o))}(function(t,n,i){void 0===i&&(i=1),e(this,y);for(var o=[],r=0|Math.max(0,Math.ceil((n-t)/i)),c=t;c<r;c++)o.push(t+c*i);return o}).bind(void 0),function(){var t=this;e(this,y);var n=function(){return e(this,t),{bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0}}.bind(this);try{return new MouseEvent("t"),function(i,o,r){void 0===r&&(r=n()),e(this,t),i.dispatchEvent(new MouseEvent(o,r))}.bind(this)}catch(i){return function(i,o,r){void 0===r&&(r=n()),e(this,t);var c=g.createEvent("MouseEvent");c.initMouseEvent(o,r.bubbles,r.cancelable,p,0,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),i.dispatchEvent(c)}.bind(this)}}.bind(void 0)(),function(t,n,i){e(this,y);var o=new Touch(P({identifier:Date.now(),target:t,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},i));t.dispatchEvent(new TouchEvent(n,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[o],targetTouches:[],changedTouches:[o]}))}.bind(void 0);function C(t,e){var n=t;for(var i in e)n=n.replace(new RegExp("{="+i+"}","g"),e[i]);return n}function k(t){var n,i,o,r=this,c=this.config,a=function(){e(this,r);var t=i.shift();return t&&n&&E(n)&&t in n?(n=n[t],a()):t?void 0:n}.bind(this);Object.keys(c).forEach(function(s){e(this,r),n=t,i=s.split("_"),o=a(),j(o)&&(c[s]=o)}.bind(this)),this.api&&(this.state.orgConfig=t)}function M(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function _(e){for(var n,i=1;i<arguments.length;i++)n=null!=arguments[i]?arguments[i]:{},i%2?M(Object(n),!0).forEach((function(i){t(e,i,n[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}var q=function(t){var o,r;function c(e){var i=t.call(this,e)||this;return i.config=void 0,i.element=void 0,i.config=new a,n(i)||n(i)}r=t,(o=c).prototype=Object.create(r.prototype),o.prototype.constructor=o,i(o,r);var v=c.prototype;return v.$beforeInit=function(){k.call(this,this.options)},v.$init=function(){var t,e=this.config,n=e.class,i=e.selector,o=e.style,r=document.querySelector(i||"."+(n||u));if(!r){var c=this.$$.$el.chart.node();r=document.createElement("table"),c.parentNode.insertBefore(r,c.nextSibling)}if("TABLE"!==r.tagName){var a=document.createElement("table");r.appendChild(a),r=a}if(o&&!document.getElementById(s)){var d=document.createElement("style");d.id=s,d.innerHTML=l,(document.head||document.getElementsByTagName("head")[0]).appendChild(d)}(t=r.classList).add.apply(t,[o&&u,n].filter(Boolean)),this.element=r},v.generateTable=function(){var t=this,n=this.$$,i=this.config,o=this.element,r=n.filterTargetsToShow(n.data.targets),c=C(b,{title:r.length?this.config.categoryTitle:""}),a="",s=[];r.forEach(function(n){var i=this;e(this,t),c+=C(b,{title:n.id}),n.values.forEach(function(t,n){e(this,i),s[n]||(s[n]=[t.x]),s[n].push(t.value)}.bind(this))}.bind(this)),s.forEach(function(n){var o=this;e(this,t),a+="<tr>"+n.map(function(t,n){return e(this,o),C(n?h:f,{value:0===n?i.categoryFormat.bind(this)(t):w(t)?t.toLocaleString():""})}.bind(this)).join("")+"</tr>"}.bind(this));var u=C(d,_(_({},i),{},{title:i.title||n.config.title_text||"",thead:c,tbody:a})).replace(/<[^>]+><\/[^>]+>/g,"");o.innerHTML=u},v.$redraw=function(){var t=this.$$.state;t.resizing||!this.config.updateOnToggle&&t.toggling||this.generateTable()},v.$willDestroy=function(){if(this.element.parentNode.removeChild(this.element),1===this.$$.charts.length){var t,e=document.getElementById(s);null==e||null==(t=e.parentNode)||t.removeChild(e)}},c}(c)}(),r=r.default}()}));
12
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("d3-selection"),require("d3-brush")):"function"==typeof define&&define.amd?define("bb",["d3-selection","d3-brush"],e):"object"==typeof exports?exports.bb=e(require("d3-selection"),require("d3-brush")):(t.bb=t.bb||{},t.bb.plugin=t.bb.plugin||{},t.bb.plugin.tableview=e(t.d3,t.d3))}(this,(function(t,e){return function(){"use strict";var n=[,function(e){e.exports=t},,function(t){t.exports=e}],i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.d=function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var r={};return function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(e){var n=function(e,n){if("object"!==t(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var o=i.call(e,n||"default");if("object"!==t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===t(n)?n:String(n)}function n(t,n,i){return(n=e(n))in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function i(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}o.d(r,{default:function(){return D}});var s=function(){function t(t){void 0===t&&(t={}),this.$$=void 0,this.options=void 0,this.options=t}var e=t.prototype;return e.$beforeInit=function(){},e.$init=function(){},e.$afterInit=function(){},e.$redraw=function(){},e.$willDestroy=function(){var t=this;Object.keys(this).forEach(function(e){i(this,t),this[e]=null,delete this[e]}.bind(this))},t}();s.version="3.7.0-next.2";var u=function(){return{selector:void 0,categoryTitle:"Category",categoryFormat:function(t){var e=t;return this.$$.axis.isCategorized()?e=this.$$.categoryName(t):this.$$.axis.isTimeSeries()&&(e=t.toLocaleDateString()),e},class:void 0,style:!0,title:void 0,updateOnToggle:!0}},l="__tableview-style__",f="bb-tableview",b=".bb-tableview {\n\t\tborder-collapse:collapse;\n\t\tborder-spacing:0;\n\t\tbackground:#fff;\n\t\tmin-width:100%;\n\t\tmargin-top:10px;\n\t\tfont-family:sans-serif;\n\t\tfont-size:.9em;\n\t}\n\t.bb-tableview tr:hover {\n\t\tbackground:#eef7ff;\n\t}\n\t.bb-tableview thead tr {\n\t\tbackground:#f8f8f8;\n\t}\n\t.bb-tableview caption,.bb-tableview td,.bb-tableview th {\n\t\ttext-align: center;\n\t\tborder:1px solid silver;\n\t\tpadding:.5em;\n\t}\n\t.bb-tableview caption {\n\t\tfont-size:1.1em;\n\t\tfont-weight:700;\n\t\tmargin-bottom: -1px;\n\t}",d="<caption>{=title}</caption>\n\t\t<thead><tr>{=thead}</tr></thead>\n\t\t<tbody>{=tbody}</tbody>",h='<th scope="col">{=title}</th>',v='<th scope="row">{=value}</th>',p="<td>{=value}</td>",g=(o(1),o(3),void 0),y=function(){return i(this,g),"object"==typeof globalThis&&null!==globalThis&&globalThis.Object===Object&&globalThis||"object"==typeof global&&null!==global&&global.Object===Object&&global||"object"==typeof self&&null!==self&&self.Object===Object&&self||Function("return this")()}.bind(void 0)();y.requestIdleCallback=y.requestIdleCallback||function(t){return i(this,g),setTimeout(t,1)}.bind(void 0),y.requestAnimationFrame=y.requestAnimationFrame||function(t){return i(this,g),setTimeout(t,1)}.bind(void 0);var m=null==y?void 0:y.document,w=void 0;(function(t){return i(this,w),t||0===t}).bind(void 0),function(t){return i(this,w),"function"==typeof t}.bind(void 0);var O=function(t){return i(this,w),"string"==typeof t}.bind(void 0),j=function(t){return i(this,w),"number"==typeof t}.bind(void 0),E=function(t){return i(this,w),void 0===t}.bind(void 0),T=function(t){return i(this,w),void 0!==t}.bind(void 0),$=(function(t){return i(this,w),"boolean"==typeof t}.bind(void 0),function(t){return i(this,w),10*Math.ceil(t/10)}.bind(void 0),function(t){return i(this,w),Math.ceil(t)+.5}.bind(void 0),function(t){return i(this,w),t[1]-t[0]}.bind(void 0),function(t){return i(this,w),"object"==typeof t}.bind(void 0)),x=function(t){return i(this,w),E(t)||null===t||O(t)&&0===t.length||$(t)&&!(t instanceof Date)&&0===Object.keys(t).length||j(t)&&isNaN(t)}.bind(void 0),S=(function(t){return i(this,w),!x(t)}.bind(void 0),function(t){return i(this,w),Array.isArray(t)}.bind(void 0)),P=function(t){return i(this,w),t&&!(null!=t&&t.nodeType)&&$(t)&&!S(t)}.bind(void 0);(function(t){return i(this,w),t.charAt(0).toUpperCase()+t.slice(1)}).bind(void 0);(function(t){return i(this,w),[].slice.call(t)}).bind(void 0);function C(t){for(var e=this,n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];if(!o.length||1===o.length&&!o[0])return t;var c=o.shift();return P(t)&&P(c)&&Object.keys(c).forEach(function(n){i(this,e);var o=c[n];P(o)?(t[n]||(t[n]={}),t[n]=C(t[n],o)):t[n]=S(o)?o.concat():o}.bind(this)),C.apply(void 0,[t].concat(o))}(function(t,e,n){void 0===n&&(n=1),i(this,w);for(var o=[],r=0|Math.max(0,Math.ceil((e-t)/n)),c=t;c<r;c++)o.push(t+c*n);return o}).bind(void 0),function(){var t=this;i(this,w);var e=function(){return i(this,t),{bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0}}.bind(this);try{return new MouseEvent("t"),function(n,o,r){void 0===r&&(r=e()),i(this,t),n.dispatchEvent(new MouseEvent(o,r))}.bind(this)}catch(n){return function(n,o,r){void 0===r&&(r=e()),i(this,t);var c=m.createEvent("MouseEvent");c.initMouseEvent(o,r.bubbles,r.cancelable,y,0,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),n.dispatchEvent(c)}.bind(this)}}.bind(void 0)(),function(t,e,n){i(this,w);var o=new Touch(C({identifier:Date.now(),target:t,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},n));t.dispatchEvent(new TouchEvent(e,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[o],targetTouches:[],changedTouches:[o]}))}.bind(void 0);function k(t,e){var n=t;for(var i in e)n=n.replace(new RegExp("{="+i+"}","g"),e[i]);return n}function M(t){var e,n,o,r=this,c=this.config,a=function(){i(this,r);var t=n.shift();return t&&e&&$(e)&&t in e?(e=e[t],a()):t?void 0:e}.bind(this);Object.keys(c).forEach(function(s){i(this,r),e=t,n=s.split("_"),o=a(),T(o)&&(c[s]=o)}.bind(this)),this.api&&(this.state.orgConfig=t)}function _(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function q(t){for(var e,i=1;i<arguments.length;i++)e=null!=arguments[i]?arguments[i]:{},i%2?_(Object(e),!0).forEach((function(i){n(t,i,e[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):_(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var D=function(t){var e,n;function o(e){var n=t.call(this,e)||this;return n.config=void 0,n.element=void 0,n.config=new u,c(n)||c(n)}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,a(e,n);var r=o.prototype;return r.$beforeInit=function(){M.call(this,this.options)},r.$init=function(){var t,e=this.config,n=e.class,i=e.selector,o=e.style,r=document.querySelector(i||"."+(n||f));if(!r){var c=this.$$.$el.chart.node();r=document.createElement("table"),c.parentNode.insertBefore(r,c.nextSibling)}if("TABLE"!==r.tagName){var a=document.createElement("table");r.appendChild(a),r=a}if(o&&!document.getElementById(l)){var s=document.createElement("style");s.id=l,s.innerHTML=b,(document.head||document.getElementsByTagName("head")[0]).appendChild(s)}(t=r.classList).add.apply(t,[o&&f,n].filter(Boolean)),this.element=r},r.generateTable=function(){var t=this,e=this.$$,n=this.config,o=this.element,r=e.filterTargetsToShow(e.data.targets),c=k(h,{title:r.length?this.config.categoryTitle:""}),a="",s=[];r.forEach(function(e){var n=this;i(this,t),c+=k(h,{title:e.id}),e.values.forEach(function(t,e){i(this,n),s[e]||(s[e]=[t.x]),s[e].push(t.value)}.bind(this))}.bind(this)),s.forEach(function(e){var o=this;i(this,t),a+="<tr>"+e.map(function(t,e){return i(this,o),k(e?p:v,{value:0===e?n.categoryFormat.bind(this)(t):j(t)?t.toLocaleString():""})}.bind(this)).join("")+"</tr>"}.bind(this));var u=k(d,q(q({},n),{},{title:n.title||e.config.title_text||"",thead:c,tbody:a})).replace(/<[^>]+><\/[^>]+>/g,"");o.innerHTML=u},r.$redraw=function(){var t=this.$$.state;t.resizing||!this.config.updateOnToggle&&t.toggling||this.generateTable()},r.$willDestroy=function(){if(this.element.parentNode.removeChild(this.element),1===this.$$.charts.length){var t,e=document.getElementById(l);null==e||null==(t=e.parentNode)||t.removeChild(e)}},o}(s)}(),r=r.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.6.3
8
+ * @version 3.7.0-next.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -137,8 +137,39 @@ function _inheritsLoose(subClass, superClass) {
137
137
  var external_commonjs_d3_delaunay_commonjs2_d3_delaunay_amd_d3_delaunay_root_d3_ = __webpack_require__(12);
138
138
  // EXTERNAL MODULE: external {"commonjs":"d3-polygon","commonjs2":"d3-polygon","amd":"d3-polygon","root":"d3"}
139
139
  var external_commonjs_d3_polygon_commonjs2_d3_polygon_amd_d3_polygon_root_d3_ = __webpack_require__(13);
140
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
141
+ function _typeof(obj) {
142
+ "@babel/helpers - typeof";
143
+
144
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
145
+ return typeof obj;
146
+ } : function (obj) {
147
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
148
+ }, _typeof(obj);
149
+ }
150
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
151
+
152
+ function _toPrimitive(input, hint) {
153
+ if (_typeof(input) !== "object" || input === null) return input;
154
+ var prim = input[Symbol.toPrimitive];
155
+ if (prim !== undefined) {
156
+ var res = prim.call(input, hint || "default");
157
+ if (_typeof(res) !== "object") return res;
158
+ throw new TypeError("@@toPrimitive must return a primitive value.");
159
+ }
160
+ return (hint === "string" ? String : Number)(input);
161
+ }
162
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
163
+
164
+
165
+ function _toPropertyKey(arg) {
166
+ var key = _toPrimitive(arg, "string");
167
+ return _typeof(key) === "symbol" ? key : String(key);
168
+ }
140
169
  ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
170
+
141
171
  function _defineProperty(obj, key, value) {
172
+ key = _toPropertyKey(key);
142
173
  if (key in obj) {
143
174
  Object.defineProperty(obj, key, {
144
175
  value: value,
@@ -300,7 +331,8 @@ function hasValue(dict, value) {
300
331
  * @private
301
332
  */
302
333
  function callFn(fn, thisArg) {
303
- for (var isFn = isFunction(fn), _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
334
+ var isFn = isFunction(fn);
335
+ for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
304
336
  args[_key - 2] = arguments[_key];
305
337
  }
306
338
  isFn && fn.call.apply(fn, [thisArg].concat(args));
@@ -472,8 +504,9 @@ function getPointer(event, element) {
472
504
  function getBrushSelection(ctx) {
473
505
  var event = ctx.event,
474
506
  $el = ctx.$el,
475
- main = $el.subchart.main || $el.main,
476
- selection;
507
+ main = $el.subchart.main || $el.main;
508
+ var selection;
509
+
477
510
  // check from event
478
511
  if (event && event.type === "brush") {
479
512
  selection = event.selection;
@@ -532,8 +565,8 @@ function findIndex(arr, v, start, end, isRotated) {
532
565
  if (start > end) {
533
566
  return -1;
534
567
  }
535
- var mid = Math.floor((start + end) / 2),
536
- _arr$mid = arr[mid],
568
+ var mid = Math.floor((start + end) / 2);
569
+ var _arr$mid = arr[mid],
537
570
  x = _arr$mid.x,
538
571
  _arr$mid$w = _arr$mid.w,
539
572
  w = _arr$mid$w === void 0 ? 0 : _arr$mid$w;
@@ -571,12 +604,12 @@ function brushEmpty(ctx) {
571
604
  * @private
572
605
  */
573
606
  function deepClone() {
574
- for (var _this6 = this, clone = function (v) {
607
+ for (var _this6 = this, _clone = function clone(v) {
575
608
  _newArrowCheck(this, _this6);
576
609
  if (isObject(v) && v.constructor) {
577
610
  var r = new v.constructor();
578
611
  for (var k in v) {
579
- r[k] = clone(v[k]);
612
+ r[k] = _clone(v[k]);
580
613
  }
581
614
  return r;
582
615
  }
@@ -586,7 +619,7 @@ function deepClone() {
586
619
  }
587
620
  return objectN.map(function (v) {
588
621
  _newArrowCheck(this, _this6);
589
- return clone(v);
622
+ return _clone(v);
590
623
  }.bind(this)).reduce(function (a, c) {
591
624
  _newArrowCheck(this, _this6);
592
625
  return _objectSpread(_objectSpread({}, a), c);
@@ -698,7 +731,8 @@ function getCssRules(styleSheets) {
698
731
  rules = rules.concat(toArray(sheet.cssRules));
699
732
  }
700
733
  } catch (e) {
701
- console.error("Error while reading rules from " + sheet.href + ": " + e.toString());
734
+ var _window$console;
735
+ (_window$console = win.console) == null ? void 0 : _window$console.warn("Error while reading rules from " + sheet.href + ": " + e.toString());
702
736
  }
703
737
  }.bind(this));
704
738
  return rules;
@@ -1062,12 +1096,12 @@ function loadConfig(config) {
1062
1096
  target,
1063
1097
  keys,
1064
1098
  read,
1065
- find = function () {
1099
+ _find = function find() {
1066
1100
  _newArrowCheck(this, _this);
1067
1101
  var key = keys.shift();
1068
1102
  if (key && target && isObjectType(target) && key in target) {
1069
1103
  target = target[key];
1070
- return find();
1104
+ return _find();
1071
1105
  } else if (!key) {
1072
1106
  return target;
1073
1107
  }
@@ -1077,7 +1111,7 @@ function loadConfig(config) {
1077
1111
  _newArrowCheck(this, _this);
1078
1112
  target = config;
1079
1113
  keys = key.split("_");
1080
- read = find();
1114
+ read = _find();
1081
1115
  if (isDefined(read)) {
1082
1116
  thisConfig[key] = read;
1083
1117
  }
@@ -1161,7 +1195,7 @@ var Plugin = /*#__PURE__*/function () {
1161
1195
  };
1162
1196
  return Plugin;
1163
1197
  }();
1164
- Plugin.version = "3.6.3";
1198
+ Plugin.version = "3.7.0-next.2";
1165
1199
 
1166
1200
  ;// CONCATENATED MODULE: ./src/Plugin/textoverlap/Options.ts
1167
1201
  /**
@@ -5,8 +5,8 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.6.3
8
+ * @version 3.7.0-next.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
12
- !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("d3-delaunay"),require("d3-polygon"),require("d3-selection"),require("d3-brush")):"function"==typeof define&&define.amd?define("bb",["d3-delaunay","d3-polygon","d3-selection","d3-brush"],n):"object"==typeof exports?exports.bb=n(require("d3-delaunay"),require("d3-polygon"),require("d3-selection"),require("d3-brush")):(t.bb=t.bb||{},t.bb.plugin=t.bb.plugin||{},t.bb.plugin.textoverlap=n(t.d3,t.d3,t.d3,t.d3))}(this,(function(t,n,e,i){return function(){"use strict";var o={3:function(t){t.exports=i},12:function(n){n.exports=t},13:function(t){t.exports=n},1:function(t){t.exports=e}},r={};function u(t){var n=r[t];if(void 0!==n)return n.exports;var e=r[t]={exports:{}};return o[t](e,e.exports,u),e.exports}u.d=function(t,n){for(var e in n)u.o(n,e)&&!u.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},u.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)};var s={};return function(){function t(t,n){if(t!==n)throw new TypeError("Cannot instantiate an arrow function")}function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function e(t,n){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},e(t,n)}u.d(s,{default:function(){return w}});var i=u(12),o=u(13);u(1),u(3);var r=void 0,c=function(){return t(this,r),"object"==typeof globalThis&&null!==globalThis&&globalThis.Object===Object&&globalThis||"object"==typeof global&&null!==global&&global.Object===Object&&global||"object"==typeof self&&null!==self&&self.Object===Object&&self||Function("return this")()}.bind(void 0)();c.requestIdleCallback=c.requestIdleCallback||function(n){return t(this,r),setTimeout(n,1)}.bind(void 0),c.requestAnimationFrame=c.requestAnimationFrame||function(n){return t(this,r),setTimeout(n,1)}.bind(void 0);var a=null==c?void 0:c.document,d=void 0;(function(n){return t(this,d),n||0===n}).bind(void 0),function(n){return t(this,d),"function"==typeof n}.bind(void 0);var l=function(n){return t(this,d),"string"==typeof n}.bind(void 0),f=function(n){return t(this,d),"number"==typeof n}.bind(void 0),h=function(n){return t(this,d),void 0===n}.bind(void 0),b=function(n){return t(this,d),void 0!==n}.bind(void 0),v=(function(n){return t(this,d),"boolean"==typeof n}.bind(void 0),function(n){return t(this,d),10*Math.ceil(n/10)}.bind(void 0),function(n){return t(this,d),Math.ceil(n)+.5}.bind(void 0),function(n){return t(this,d),n[1]-n[0]}.bind(void 0),function(n){return t(this,d),"object"==typeof n}.bind(void 0)),p=function(n){return t(this,d),h(n)||null===n||l(n)&&0===n.length||v(n)&&!(n instanceof Date)&&0===Object.keys(n).length||f(n)&&isNaN(n)}.bind(void 0),y=(function(n){return t(this,d),!p(n)}.bind(void 0),function(n){return t(this,d),Array.isArray(n)}.bind(void 0)),g=function(n){return t(this,d),n&&!(null!=n&&n.nodeType)&&v(n)&&!y(n)}.bind(void 0);(function(n){return t(this,d),n.charAt(0).toUpperCase()+n.slice(1)}).bind(void 0);(function(n){return t(this,d),[].slice.call(n)}).bind(void 0);function j(n){for(var e=this,i=arguments.length,o=Array(i>1?i-1:0),r=1;r<i;r++)o[r-1]=arguments[r];if(!o.length||1===o.length&&!o[0])return n;var u=o.shift();return g(n)&&g(u)&&Object.keys(u).forEach(function(i){t(this,e);var o=u[i];g(o)?(n[i]||(n[i]={}),n[i]=j(n[i],o)):n[i]=y(o)?o.concat():o}.bind(this)),j.apply(void 0,[n].concat(o))}(function(n,e,i){void 0===i&&(i=1),t(this,d);for(var o=[],r=0|Math.max(0,Math.ceil((e-n)/i)),u=n;u<r;u++)o.push(n+u*i);return o}).bind(void 0),function(){var n=this;t(this,d);var e=function(){return t(this,n),{bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0}}.bind(this);try{return new MouseEvent("t"),function(i,o,r){void 0===r&&(r=e()),t(this,n),i.dispatchEvent(new MouseEvent(o,r))}.bind(this)}catch(i){return function(i,o,r){void 0===r&&(r=e()),t(this,n);var u=a.createEvent("MouseEvent");u.initMouseEvent(o,r.bubbles,r.cancelable,c,0,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),i.dispatchEvent(u)}.bind(this)}}.bind(void 0)(),function(n,e,i){t(this,d);var o=new Touch(j({identifier:Date.now(),target:n,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},i));n.dispatchEvent(new TouchEvent(e,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[o],targetTouches:[],changedTouches:[o]}))}.bind(void 0);function m(n){var e,i,o,r=this,u=this.config,s=function(){t(this,r);var n=i.shift();return n&&e&&v(e)&&n in e?(e=e[n],s()):n?void 0:e}.bind(this);Object.keys(u).forEach(function(c){t(this,r),e=n,i=c.split("_"),o=s(),b(o)&&(u[c]=o)}.bind(this)),this.api&&(this.state.orgConfig=n)}var x=function(){function n(t){void 0===t&&(t={}),this.$$=void 0,this.options=void 0,this.options=t}var e=n.prototype;return e.$beforeInit=function(){},e.$init=function(){},e.$afterInit=function(){},e.$redraw=function(){},e.$willDestroy=function(){var n=this;Object.keys(this).forEach(function(e){t(this,n),this[e]=null,delete this[e]}.bind(this))},n}();x.version="3.6.3";var O=function(){return{selector:void 0,extent:1,area:0}},w=function(r){var u,s;function c(t){var e=r.call(this,t)||this;return e.config=void 0,e.config=new O,n(e)||n(e)}s=r,(u=c).prototype=Object.create(s.prototype),u.prototype.constructor=u,e(u,s);var a=c.prototype;return a.$init=function(){m.call(this,this.options)},a.$redraw=function(){var t=this.$$.$el,n=this.config.selector,e=n?t.main.selectAll(n):t.text;e.empty()||this.preventLabelOverlap(e)},a.generateVoronoi=function(n){var e=this,o=this.$$.scale,r=["x","y"].map(function(n){return t(this,e),o[n].domain()}.bind(this)),u=r[0],s=r[1],c=[s[0],u[1]];return u[1]=c[0],s[0]=c[1],i.Delaunay.from(n).voronoi([].concat(u,s))},a.preventLabelOverlap=function(n){var e=this,i=this.config,r=i.extent,u=i.area,s=n.data().map(function(n){return t(this,e),[n.index,n.value]}.bind(this)),c=this.generateVoronoi(s),a=0;n.each((function(){var t=c.cellPolygon(a);if(t&&this){var n=s[a],e=n[0],i=n[1],d=(0,o.polygonCentroid)(t),l=d[0],f=d[1],h=Math.abs((0,o.polygonArea)(t)),b=Math.round(Math.atan2(f-i,l-e)/Math.PI*2),v=r*(0===b?1:-1),p=-1===b?-r:r+5,y=1===Math.abs(b)?"middle":0===b?"start":"end";this.style.display=h<u?"none":"",this.setAttribute("text-anchor",y),this.setAttribute("dy","0."+(1===b?71:35)+"em"),this.setAttribute("transform","translate("+v+", "+p+")")}a++}))},c}(x)}(),s=s.default}()}));
12
+ !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("d3-delaunay"),require("d3-polygon"),require("d3-selection"),require("d3-brush")):"function"==typeof define&&define.amd?define("bb",["d3-delaunay","d3-polygon","d3-selection","d3-brush"],n):"object"==typeof exports?exports.bb=n(require("d3-delaunay"),require("d3-polygon"),require("d3-selection"),require("d3-brush")):(t.bb=t.bb||{},t.bb.plugin=t.bb.plugin||{},t.bb.plugin.textoverlap=n(t.d3,t.d3,t.d3,t.d3))}(this,(function(t,n,e,i){return function(){"use strict";var o={3:function(t){t.exports=i},12:function(n){n.exports=t},13:function(t){t.exports=n},1:function(t){t.exports=e}},r={};function u(t){var n=r[t];if(void 0!==n)return n.exports;var e=r[t]={exports:{}};return o[t](e,e.exports,u),e.exports}u.d=function(t,n){for(var e in n)u.o(n,e)&&!u.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},u.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)};var s={};return function(){function t(t,n){if(t!==n)throw new TypeError("Cannot instantiate an arrow function")}function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function e(t,n){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},e(t,n)}u.d(s,{default:function(){return w}});var i=u(12),o=u(13);u(1),u(3);var r=void 0,c=function(){return t(this,r),"object"==typeof globalThis&&null!==globalThis&&globalThis.Object===Object&&globalThis||"object"==typeof global&&null!==global&&global.Object===Object&&global||"object"==typeof self&&null!==self&&self.Object===Object&&self||Function("return this")()}.bind(void 0)();c.requestIdleCallback=c.requestIdleCallback||function(n){return t(this,r),setTimeout(n,1)}.bind(void 0),c.requestAnimationFrame=c.requestAnimationFrame||function(n){return t(this,r),setTimeout(n,1)}.bind(void 0);var a=null==c?void 0:c.document,d=void 0;(function(n){return t(this,d),n||0===n}).bind(void 0),function(n){return t(this,d),"function"==typeof n}.bind(void 0);var l=function(n){return t(this,d),"string"==typeof n}.bind(void 0),f=function(n){return t(this,d),"number"==typeof n}.bind(void 0),h=function(n){return t(this,d),void 0===n}.bind(void 0),b=function(n){return t(this,d),void 0!==n}.bind(void 0),v=(function(n){return t(this,d),"boolean"==typeof n}.bind(void 0),function(n){return t(this,d),10*Math.ceil(n/10)}.bind(void 0),function(n){return t(this,d),Math.ceil(n)+.5}.bind(void 0),function(n){return t(this,d),n[1]-n[0]}.bind(void 0),function(n){return t(this,d),"object"==typeof n}.bind(void 0)),p=function(n){return t(this,d),h(n)||null===n||l(n)&&0===n.length||v(n)&&!(n instanceof Date)&&0===Object.keys(n).length||f(n)&&isNaN(n)}.bind(void 0),y=(function(n){return t(this,d),!p(n)}.bind(void 0),function(n){return t(this,d),Array.isArray(n)}.bind(void 0)),g=function(n){return t(this,d),n&&!(null!=n&&n.nodeType)&&v(n)&&!y(n)}.bind(void 0);(function(n){return t(this,d),n.charAt(0).toUpperCase()+n.slice(1)}).bind(void 0);(function(n){return t(this,d),[].slice.call(n)}).bind(void 0);function j(n){for(var e=this,i=arguments.length,o=Array(i>1?i-1:0),r=1;r<i;r++)o[r-1]=arguments[r];if(!o.length||1===o.length&&!o[0])return n;var u=o.shift();return g(n)&&g(u)&&Object.keys(u).forEach(function(i){t(this,e);var o=u[i];g(o)?(n[i]||(n[i]={}),n[i]=j(n[i],o)):n[i]=y(o)?o.concat():o}.bind(this)),j.apply(void 0,[n].concat(o))}(function(n,e,i){void 0===i&&(i=1),t(this,d);for(var o=[],r=0|Math.max(0,Math.ceil((e-n)/i)),u=n;u<r;u++)o.push(n+u*i);return o}).bind(void 0),function(){var n=this;t(this,d);var e=function(){return t(this,n),{bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0}}.bind(this);try{return new MouseEvent("t"),function(i,o,r){void 0===r&&(r=e()),t(this,n),i.dispatchEvent(new MouseEvent(o,r))}.bind(this)}catch(i){return function(i,o,r){void 0===r&&(r=e()),t(this,n);var u=a.createEvent("MouseEvent");u.initMouseEvent(o,r.bubbles,r.cancelable,c,0,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),i.dispatchEvent(u)}.bind(this)}}.bind(void 0)(),function(n,e,i){t(this,d);var o=new Touch(j({identifier:Date.now(),target:n,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},i));n.dispatchEvent(new TouchEvent(e,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[o],targetTouches:[],changedTouches:[o]}))}.bind(void 0);function m(n){var e,i,o,r=this,u=this.config,s=function(){t(this,r);var n=i.shift();return n&&e&&v(e)&&n in e?(e=e[n],s()):n?void 0:e}.bind(this);Object.keys(u).forEach(function(c){t(this,r),e=n,i=c.split("_"),o=s(),b(o)&&(u[c]=o)}.bind(this)),this.api&&(this.state.orgConfig=n)}var x=function(){function n(t){void 0===t&&(t={}),this.$$=void 0,this.options=void 0,this.options=t}var e=n.prototype;return e.$beforeInit=function(){},e.$init=function(){},e.$afterInit=function(){},e.$redraw=function(){},e.$willDestroy=function(){var n=this;Object.keys(this).forEach(function(e){t(this,n),this[e]=null,delete this[e]}.bind(this))},n}();x.version="3.7.0-next.2";var O=function(){return{selector:void 0,extent:1,area:0}},w=function(r){var u,s;function c(t){var e=r.call(this,t)||this;return e.config=void 0,e.config=new O,n(e)||n(e)}s=r,(u=c).prototype=Object.create(s.prototype),u.prototype.constructor=u,e(u,s);var a=c.prototype;return a.$init=function(){m.call(this,this.options)},a.$redraw=function(){var t=this.$$.$el,n=this.config.selector,e=n?t.main.selectAll(n):t.text;e.empty()||this.preventLabelOverlap(e)},a.generateVoronoi=function(n){var e=this,o=this.$$.scale,r=["x","y"].map(function(n){return t(this,e),o[n].domain()}.bind(this)),u=r[0],s=r[1],c=[s[0],u[1]];return u[1]=c[0],s[0]=c[1],i.Delaunay.from(n).voronoi([].concat(u,s))},a.preventLabelOverlap=function(n){var e=this,i=this.config,r=i.extent,u=i.area,s=n.data().map(function(n){return t(this,e),[n.index,n.value]}.bind(this)),c=this.generateVoronoi(s),a=0;n.each((function(){var t=c.cellPolygon(a);if(t&&this){var n=s[a],e=n[0],i=n[1],d=(0,o.polygonCentroid)(t),l=d[0],f=d[1],h=Math.abs((0,o.polygonArea)(t)),b=Math.round(Math.atan2(f-i,l-e)/Math.PI*2),v=r*(0===b?1:-1),p=-1===b?-r:r+5,y=1===Math.abs(b)?"middle":0===b?"start":"end";this.style.display=h<u?"none":"",this.setAttribute("text-anchor",y),this.setAttribute("dy","0."+(1===b?71:35)+"em"),this.setAttribute("transform","translate("+v+", "+p+")")}a++}))},c}(x)}(),s=s.default}()}));