billboard.js 3.9.4 → 3.10.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 (100) hide show
  1. package/README.md +2 -2
  2. package/dist/billboard.css +2 -2
  3. package/dist/billboard.js +2742 -2516
  4. package/dist/billboard.min.css +2 -2
  5. package/dist/billboard.min.js +2 -2
  6. package/dist/billboard.pkgd.js +2936 -2704
  7. package/dist/billboard.pkgd.min.js +4 -4
  8. package/dist/plugin/billboardjs-plugin-bubblecompare.js +15 -15
  9. package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
  10. package/dist/plugin/billboardjs-plugin-sparkline.js +205 -186
  11. package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
  12. package/dist/plugin/billboardjs-plugin-stanford.js +231 -226
  13. package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
  14. package/dist/plugin/billboardjs-plugin-tableview.js +172 -152
  15. package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
  16. package/dist/plugin/billboardjs-plugin-textoverlap.js +161 -142
  17. package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
  18. package/dist/plugin/pkgd/{billboardjs-plugin-bubblecompare.js → billboardjs-plugin-bubblecompare.pkgd.js} +52 -32
  19. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +12 -0
  20. package/dist/plugin/pkgd/{billboardjs-plugin-sparkline.js → billboardjs-plugin-sparkline.pkgd.js} +239 -200
  21. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +12 -0
  22. package/dist/plugin/pkgd/{billboardjs-plugin-stanford.js → billboardjs-plugin-stanford.pkgd.js} +301 -277
  23. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +12 -0
  24. package/dist/plugin/pkgd/{billboardjs-plugin-tableview.js → billboardjs-plugin-tableview.pkgd.js} +206 -166
  25. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +12 -0
  26. package/dist/plugin/pkgd/{billboardjs-plugin-textoverlap.js → billboardjs-plugin-textoverlap.pkgd.js} +308 -278
  27. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +12 -0
  28. package/dist/theme/dark.css +5 -4
  29. package/dist/theme/dark.min.css +2 -2
  30. package/dist/theme/datalab.css +5 -4
  31. package/dist/theme/datalab.min.css +2 -2
  32. package/dist/theme/graph.css +5 -4
  33. package/dist/theme/graph.min.css +2 -2
  34. package/dist/theme/insight.css +5 -4
  35. package/dist/theme/insight.min.css +2 -2
  36. package/dist-esm/billboard.js +718 -509
  37. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +3 -3
  38. package/dist-esm/plugin/billboardjs-plugin-sparkline.js +15 -9
  39. package/dist-esm/plugin/billboardjs-plugin-stanford.js +21 -28
  40. package/dist-esm/plugin/billboardjs-plugin-tableview.js +17 -11
  41. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +13 -7
  42. package/package.json +32 -32
  43. package/src/Chart/api/axis.ts +4 -0
  44. package/src/Chart/api/category.ts +8 -4
  45. package/src/Chart/api/export.ts +1 -2
  46. package/src/Chart/api/subchart.ts +162 -89
  47. package/src/Chart/api/zoom.ts +69 -79
  48. package/src/ChartInternal/Axis/AxisRendererHelper.ts +0 -8
  49. package/src/ChartInternal/data/IData.ts +4 -1
  50. package/src/ChartInternal/data/convert.helper.ts +1 -15
  51. package/src/ChartInternal/data/data.ts +8 -2
  52. package/src/ChartInternal/interactions/eventrect.ts +3 -4
  53. package/src/ChartInternal/interactions/flow.ts +1 -7
  54. package/src/ChartInternal/interactions/interaction.ts +11 -5
  55. package/src/ChartInternal/interactions/subchart.ts +36 -30
  56. package/src/ChartInternal/interactions/zoom.ts +13 -3
  57. package/src/ChartInternal/internals/category.ts +2 -2
  58. package/src/ChartInternal/internals/clip.ts +4 -5
  59. package/src/ChartInternal/internals/color.ts +49 -23
  60. package/src/ChartInternal/internals/domain.ts +46 -10
  61. package/src/ChartInternal/internals/grid.ts +57 -86
  62. package/src/ChartInternal/internals/redraw.ts +1 -6
  63. package/src/ChartInternal/internals/region.ts +35 -12
  64. package/src/ChartInternal/internals/selection.ts +1 -1
  65. package/src/ChartInternal/internals/text.ts +1 -26
  66. package/src/ChartInternal/internals/title.ts +10 -48
  67. package/src/ChartInternal/internals/tooltip.ts +50 -54
  68. package/src/ChartInternal/shape/arc.ts +2 -2
  69. package/src/ChartInternal/shape/candlestick.ts +2 -17
  70. package/src/ChartInternal/shape/point.ts +36 -8
  71. package/src/ChartInternal/shape/radar.ts +1 -1
  72. package/src/ChartInternal/shape/shape.ts +50 -4
  73. package/src/ChartInternal/shape/treemap.ts +2 -2
  74. package/src/Plugin/bubblecompare/index.ts +1 -1
  75. package/src/Plugin/sparkline/index.ts +2 -2
  76. package/src/Plugin/stanford/Elements.ts +10 -2
  77. package/src/Plugin/stanford/index.ts +1 -24
  78. package/src/Plugin/tableview/index.ts +2 -2
  79. package/src/config/Options/axis/x.ts +1 -0
  80. package/src/config/Options/common/main.ts +12 -2
  81. package/src/config/Options/common/point.ts +41 -0
  82. package/src/config/Options/common/tooltip.ts +10 -10
  83. package/src/config/Options/data/axis.ts +3 -1
  84. package/src/config/Options/data/data.ts +10 -2
  85. package/src/config/Options/shape/area.ts +10 -4
  86. package/src/config/Options/shape/bar.ts +10 -4
  87. package/src/config/Store/State.ts +3 -0
  88. package/src/module/Cache.ts +7 -5
  89. package/src/module/browser.ts +34 -14
  90. package/src/module/util.ts +8 -4
  91. package/src/module/worker.ts +24 -13
  92. package/src/scss/billboard.scss +4 -2
  93. package/src/scss/theme/dark.scss +4 -2
  94. package/src/scss/theme/datalab.scss +4 -2
  95. package/src/scss/theme/graph.scss +4 -2
  96. package/src/scss/theme/insight.scss +4 -2
  97. package/types/chart.d.ts +11 -0
  98. package/types/options.d.ts +9 -3
  99. package/types/options.shape.d.ts +26 -0
  100. package/types/types.d.ts +15 -1
@@ -5,8 +5,8 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.9.4
8
+ * @version 3.10.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 M}});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)(),a="function"==typeof c.requestAnimationFrame,d="function"==typeof c.requestIdleCallback,l=a?c.requestAnimationFrame:function(n){return t(this,r),setTimeout(n,1)}.bind(void 0),f=a?c.cancelAnimationFrame:function(n){return t(this,r),clearTimeout(n)}.bind(void 0),h=(d&&c.requestIdleCallback,d&&c.cancelIdleCallback,null==c?void 0:c.document),b=void 0;(function(n){return t(this,b),n||0===n}).bind(void 0),function(n){return t(this,b),"function"==typeof n}.bind(void 0);var v=function(n){return t(this,b),"string"==typeof n}.bind(void 0),p=function(n){return t(this,b),"number"==typeof n}.bind(void 0),y=function(n){return t(this,b),void 0===n}.bind(void 0),g=function(n){return t(this,b),void 0!==n}.bind(void 0),m=(function(n){return t(this,b),"boolean"==typeof n}.bind(void 0),function(n){return t(this,b),10*Math.ceil(n/10)}.bind(void 0),function(n){return t(this,b),Math.ceil(n)+.5}.bind(void 0),function(n){return t(this,b),n[1]-n[0]}.bind(void 0),function(n){return t(this,b),"object"==typeof n}.bind(void 0)),j=function(n){return t(this,b),y(n)||null===n||v(n)&&0===n.length||m(n)&&!(n instanceof Date)&&0===Object.keys(n).length||p(n)&&isNaN(n)}.bind(void 0),x=(function(n){return t(this,b),!j(n)}.bind(void 0),function(n){return t(this,b),Array.isArray(n)}.bind(void 0)),O=function(n){return t(this,b),n&&!(null!=n&&n.nodeType)&&m(n)&&!x(n)}.bind(void 0);(function(n){return t(this,b),n.charAt(0).toUpperCase()+n.slice(1)}).bind(void 0);(function(n){return t(this,b),[].slice.call(n)}).bind(void 0);function w(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 O(n)&&O(u)&&Object.keys(u).forEach(function(i){t(this,e);var o=u[i];O(o)?(n[i]||(n[i]={}),n[i]=w(n[i],o)):n[i]=x(o)?o.concat():o}.bind(this)),w.apply(void 0,[n].concat(o))}(function(n,e,i){void 0===i&&(i=1),t(this,b);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,b);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=h.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,b);var o=new Touch(w({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 E(n){var e,i,o,r=this,u=this.config,s=function(){t(this,r);var n=i.shift();return n&&e&&m(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(),g(o)&&(u[c]=o)}.bind(this)),this.api&&(this.state.orgConfig=n)}var $=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}();$.version="3.9.4";var A=function(){return{selector:void 0,extent:1,area:0}},M=function(r){var u,s;function c(t){var e=r.call(this,t)||this;return e.config=void 0,e.config=new A,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(){E.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}($)}(),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={514:function(t){t.exports=i},175:function(n){n.exports=t},792:function(t){t.exports=n},288:function(t){t.exports=e}},r={};function s(t){var n=r[t];if(void 0!==n)return n.exports;var e=r[t]={exports:{}};return o[t](e,e.exports,s),e.exports}s.d=function(t,n){for(var e in n)s.o(n,e)&&!s.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},s.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)};var c={};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)}s.d(c,{default:function(){return $}});var i=s(175),o=s(792);s(288),s(514);const 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")(),u=null==r?void 0:r.document,a=function(n){var e=this;const i="function"==typeof(null==n?void 0:n.requestAnimationFrame),o="function"==typeof(null==n?void 0:n.requestIdleCallback);return[i?n.requestAnimationFrame:function(n){return t(this,e),setTimeout(n,1)}.bind(this),i?n.cancelAnimationFrame:function(n){return t(this,e),clearTimeout(n)}.bind(this),o?n.requestIdleCallback:l,o?n.cancelIdleCallback:d]}(r),l=a[0],d=a[1];a[2],a[3];var f=void 0;(function(n){return t(this,f),n||0===n}).bind(void 0),function(n){return t(this,f),"function"==typeof n}.bind(void 0);const h=function(n){return t(this,f),"string"==typeof n}.bind(void 0),b=function(n){return t(this,f),"number"==typeof n}.bind(void 0),p=function(n){return t(this,f),void 0===n}.bind(void 0),v=function(n){return t(this,f),void 0!==n}.bind(void 0),y=(function(n){return t(this,f),"boolean"==typeof n}.bind(void 0),function(n){return t(this,f),10*Math.ceil(n/10)}.bind(void 0),function(n){return t(this,f),Math.ceil(n)+.5}.bind(void 0),function(n){return t(this,f),n[1]-n[0]}.bind(void 0),function(n){return t(this,f),"object"==typeof n}.bind(void 0)),g=function(n){return t(this,f),p(n)||null===n||h(n)&&0===n.length||y(n)&&!(n instanceof Date)&&0===Object.keys(n).length||b(n)&&isNaN(n)}.bind(void 0),m=(function(n){return t(this,f),!g(n)}.bind(void 0),function(n){return t(this,f),Array.isArray(n)}.bind(void 0)),j=function(n){return t(this,f),n&&!(null!=n&&n.nodeType)&&y(n)&&!m(n)}.bind(void 0);(function(n){return t(this,f),n.charAt(0).toUpperCase()+n.slice(1)}).bind(void 0);(function(n){return t(this,f),[].slice.call(n)}).bind(void 0);function x(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;const s=o.shift();return j(n)&&j(s)&&Object.keys(s).forEach(function(i){t(this,e);const o=s[i];j(o)?(n[i]||(n[i]={}),n[i]=x(n[i],o)):n[i]=m(o)?o.concat():o}.bind(this)),x.apply(void 0,[n].concat(o))}(function(n,e,i){void 0===i&&(i=1),t(this,f);const o=[],r=0|Math.max(0,Math.ceil((e-n)/i));for(let t=n;t<r;t++)o.push(n+t*i);return o}).bind(void 0),function(){var n=this;t(this,f);const 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,s){void 0===s&&(s=e()),t(this,n);const c=u.createEvent("MouseEvent");c.initMouseEvent(o,s.bubbles,s.cancelable,r,0,s.screenX,s.screenY,s.clientX,s.clientY,!1,!1,!1,!1,0,null),i.dispatchEvent(c)}.bind(this)}}.bind(void 0)(),function(n,e,i){t(this,f);const o=new Touch(x({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 O(n){var e=this;const i=this.config;let o,r,s;const c=function(){t(this,e);const n=r.shift();return n&&o&&y(o)&&n in o?(o=o[n],c()):n?void 0:o}.bind(this);Object.keys(i).forEach(function(u){t(this,e),o=n,r=u.split("_"),s=c(),v(s)&&(i[u]=s)}.bind(this)),this.api&&(this.state.orgConfig=n)}let w=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}();w.version="3.10.0-next.2";let E=function(){return{selector:void 0,extent:1,area:0}},$=function(r){var s,c;function u(t){var e=r.call(this,t)||this;return e.config=void 0,e.config=new E,n(e)||n(e)}c=r,(s=u).prototype=Object.create(c.prototype),s.prototype.constructor=s,e(s,c);var a=u.prototype;return a.$init=function(){O.call(this,this.options)},a.$redraw=function(){const 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;const o=this.$$.scale,r=["x","y"].map(function(n){return t(this,e),o[n].domain()}.bind(this)),s=r[0],c=r[1];var u=[c[0],s[1]];return s[1]=u[0],c[0]=u[1],i.Delaunay.from(n).voronoi([].concat(s,c))},a.preventLabelOverlap=function(n){var e=this;const i=this.config,r=i.extent,s=i.area,c=n.data().map(function(n){return t(this,e),[n.index,n.value]}.bind(this)),u=this.generateVoronoi(c);let a=0;n.each((function(){const t=u.cellPolygon(a);if(t&&this){const n=c[a],e=n[0],i=n[1],u=(0,o.polygonCentroid)(t),l=u[0],d=u[1],f=Math.abs((0,o.polygonArea)(t)),h=Math.round(Math.atan2(d-i,l-e)/Math.PI*2),b=r*(0===h?1:-1),p=-1===h?-r:r+5,v=1===Math.abs(h)?"middle":0===h?"start":"end";this.style.display=f<s?"none":"",this.setAttribute("text-anchor",v),this.setAttribute("dy","0."+(1===h?71:35)+"em"),this.setAttribute("transform","translate("+b+", "+p+")")}a++}))},u}(w)}(),c=c.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.9.4
8
+ * @version 3.10.0-next.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -17,7 +17,7 @@
17
17
  else if(typeof exports === 'object')
18
18
  exports["bb"] = factory();
19
19
  else
20
- root["bb"] = root["bb"] || {}, root["bb"]["plugin"] = root["bb"]["plugin"] || {}, root["bb"]["plugin"]["bubblecompare"] = factory();
20
+ root["bb"] = root["bb"] || {}, root["bb"]["plugin"] = root["bb"]["plugin"] || {}, root["bb"]["plugin"]["bubblecompare.pkgd"] = factory();
21
21
  })(this, function() {
22
22
  return /******/ (function() { // webpackBootstrap
23
23
  /******/ var __webpack_modules__ = ([
@@ -1233,10 +1233,10 @@ var store = __webpack_require__(37);
1233
1233
  (module.exports = function (key, value) {
1234
1234
  return store[key] || (store[key] = value !== undefined ? value : {});
1235
1235
  })('versions', []).push({
1236
- version: '3.32.1',
1236
+ version: '3.32.2',
1237
1237
  mode: IS_PURE ? 'pure' : 'global',
1238
1238
  copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
1239
- license: 'https://github.com/zloirock/core-js/blob/v3.32.1/LICENSE',
1239
+ license: 'https://github.com/zloirock/core-js/blob/v3.32.2/LICENSE',
1240
1240
  source: 'https://github.com/zloirock/core-js'
1241
1241
  });
1242
1242
 
@@ -4590,7 +4590,9 @@ try {
4590
4590
  } catch (error) { /* empty */ }
4591
4591
 
4592
4592
  module.exports = function (exec, SKIP_CLOSING) {
4593
- if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
4593
+ try {
4594
+ if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
4595
+ } catch (error) { return false; } // workaround of old WebKit + `eval` bug
4594
4596
  var ITERATION_SUPPORT = false;
4595
4597
  try {
4596
4598
  var object = {};
@@ -4789,12 +4791,15 @@ module.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, I
4789
4791
 
4790
4792
  var getIterationMethod = function (KIND) {
4791
4793
  if (KIND === DEFAULT && defaultIterator) return defaultIterator;
4792
- if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
4794
+ if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
4795
+
4793
4796
  switch (KIND) {
4794
4797
  case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
4795
4798
  case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
4796
4799
  case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
4797
- } return function () { return new IteratorConstructor(this); };
4800
+ }
4801
+
4802
+ return function () { return new IteratorConstructor(this); };
4798
4803
  };
4799
4804
 
4800
4805
  var TO_STRING_TAG = NAME + ' Iterator';
@@ -6395,7 +6400,7 @@ var pack = function (number, mantissaLength, bytes) {
6395
6400
  exponent = eMax;
6396
6401
  } else if (exponent + eBias >= 1) {
6397
6402
  mantissa = roundToEven((number * c - 1) * pow(2, mantissaLength));
6398
- exponent = exponent + eBias;
6403
+ exponent += eBias;
6399
6404
  } else {
6400
6405
  mantissa = roundToEven(number * pow(2, eBias - 1) * pow(2, mantissaLength));
6401
6406
  exponent = 0;
@@ -6444,8 +6449,8 @@ var unpack = function (buffer, mantissaLength) {
6444
6449
  } else if (exponent === eMax) {
6445
6450
  return mantissa ? NaN : s ? -Infinity : Infinity;
6446
6451
  } else {
6447
- mantissa = mantissa + pow(2, mantissaLength);
6448
- exponent = exponent - eBias;
6452
+ mantissa += pow(2, mantissaLength);
6453
+ exponent -= eBias;
6449
6454
  } return (s ? -1 : 1) * mantissa * pow(2, exponent - mantissaLength);
6450
6455
  };
6451
6456
 
@@ -8020,6 +8025,7 @@ var exp = Math.exp;
8020
8025
  // https://tc39.es/ecma262/#sec-math.expm1
8021
8026
  module.exports = (!$expm1
8022
8027
  // Old FF bug
8028
+ // eslint-disable-next-line no-loss-of-precision -- required for old engines
8023
8029
  || $expm1(10) > 22025.465794806719 || $expm1(10) < 22025.4657948067165168
8024
8030
  // Tor Browser bug
8025
8031
  || $expm1(-2e-17) !== -2e-17
@@ -8385,9 +8391,20 @@ var toNumber = function (argument) {
8385
8391
  if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
8386
8392
  } else if (first === 48) {
8387
8393
  switch (charCodeAt(it, 1)) {
8388
- case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i
8389
- case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i
8390
- default: return +it;
8394
+ // fast equal of /^0b[01]+$/i
8395
+ case 66:
8396
+ case 98:
8397
+ radix = 2;
8398
+ maxCode = 49;
8399
+ break;
8400
+ // fast equal of /^0o[0-7]+$/i
8401
+ case 79:
8402
+ case 111:
8403
+ radix = 8;
8404
+ maxCode = 55;
8405
+ break;
8406
+ default:
8407
+ return +it;
8391
8408
  }
8392
8409
  digits = stringSlice(it, 2);
8393
8410
  length = digits.length;
@@ -11446,7 +11463,7 @@ var handleNCG = function (string) {
11446
11463
  for (; index <= length; index++) {
11447
11464
  chr = charAt(string, index);
11448
11465
  if (chr === '\\') {
11449
- chr = chr + charAt(string, ++index);
11466
+ chr += charAt(string, ++index);
11450
11467
  } else if (chr === ']') {
11451
11468
  brackets = false;
11452
11469
  } else if (!brackets) switch (true) {
@@ -12477,7 +12494,10 @@ module.exports = function (KEY, exec, FORCED, SHAM) {
12477
12494
  re[SYMBOL] = /./[SYMBOL];
12478
12495
  }
12479
12496
 
12480
- re.exec = function () { execCalled = true; return null; };
12497
+ re.exec = function () {
12498
+ execCalled = true;
12499
+ return null;
12500
+ };
12481
12501
 
12482
12502
  re[SYMBOL]('');
12483
12503
  return !execCalled;
@@ -16406,7 +16426,7 @@ var checkBasicSemantic = function (structuredCloneImplementation) {
16406
16426
  var set1 = new global.Set([7]);
16407
16427
  var set2 = structuredCloneImplementation(set1);
16408
16428
  var number = structuredCloneImplementation(Object(7));
16409
- return set2 === set1 || !set2.has(7) || typeof number != 'object' || number !== 7;
16429
+ return set2 === set1 || !set2.has(7) || typeof number != 'object' || +number !== 7;
16410
16430
  }) && structuredCloneImplementation;
16411
16431
  };
16412
16432
 
@@ -18366,7 +18386,7 @@ var encode = function (input) {
18366
18386
  var q = delta;
18367
18387
  var k = base;
18368
18388
  while (true) {
18369
- var t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
18389
+ var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
18370
18390
  if (q < t) break;
18371
18391
  var qMinusT = q - t;
18372
18392
  var baseMinusT = base - t;
@@ -19414,7 +19434,7 @@ function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Sy
19414
19434
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
19415
19435
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
19416
19436
  /* harmony default export */ function size() {
19417
- var size = 0;
19437
+ let size = 0;
19418
19438
  for (var _iterator = _createForOfIteratorHelperLoose(this), _step; !(_step = _iterator()).done;) {
19419
19439
  _step.value;
19420
19440
  ++size;
@@ -19982,7 +20002,7 @@ Selection.prototype = selection.prototype = (_selection$prototype = {
19982
20002
  * @example
19983
20003
  * bb.plugin.stanford.version; // ex) 1.9.0
19984
20004
  */
19985
- var Plugin = /*#__PURE__*/function () {
20005
+ let Plugin = /*#__PURE__*/function () {
19986
20006
  /**
19987
20007
  * Constructor
19988
20008
  * @param {Any} options config option object
@@ -20036,7 +20056,7 @@ var Plugin = /*#__PURE__*/function () {
20036
20056
  };
20037
20057
  return Plugin;
20038
20058
  }();
20039
- Plugin.version = "3.9.4";
20059
+ Plugin.version = "3.10.0-next.2";
20040
20060
 
20041
20061
  ;// CONCATENATED MODULE: ./src/Plugin/bubblecompare/index.ts
20042
20062
 
@@ -20086,7 +20106,7 @@ Plugin.version = "3.9.4";
20086
20106
  * ]
20087
20107
  * })
20088
20108
  */
20089
- var BubbleCompare = /*#__PURE__*/function (_Plugin) {
20109
+ let BubbleCompare = /*#__PURE__*/function (_Plugin) {
20090
20110
  _inheritsLoose(BubbleCompare, _Plugin);
20091
20111
  function BubbleCompare(options) {
20092
20112
  var _this = _Plugin.call(this, options) || this;
@@ -20095,13 +20115,13 @@ var BubbleCompare = /*#__PURE__*/function (_Plugin) {
20095
20115
  }
20096
20116
  var _proto = BubbleCompare.prototype;
20097
20117
  _proto.$init = function $init() {
20098
- var $$ = this.$$;
20118
+ const $$ = this.$$;
20099
20119
  $$.findClosest = this.findClosest.bind(this);
20100
20120
  $$.getBubbleR = this.getBubbleR.bind(this);
20101
20121
  $$.pointExpandedR = this.pointExpandedR.bind(this);
20102
20122
  };
20103
20123
  _proto.pointExpandedR = function pointExpandedR(d) {
20104
- var baseR = this.getBubbleR(d),
20124
+ const baseR = this.getBubbleR(d),
20105
20125
  _this$options$expandS = this.options.expandScale,
20106
20126
  expandScale = _this$options$expandS === void 0 ? 1 : _this$options$expandS;
20107
20127
  BubbleCompare.raiseFocusedBubbleLayer(d);
@@ -20112,32 +20132,32 @@ var BubbleCompare = /*#__PURE__*/function (_Plugin) {
20112
20132
  d.raise && src_select(d.node().parentNode.parentNode).raise();
20113
20133
  };
20114
20134
  _proto.changeCursorPoint = function changeCursorPoint() {
20115
- this.$$.$el.svg.select(".bb-event-rect").style("cursor", "pointer");
20135
+ this.$$.$el.eventRect.style("cursor", "pointer");
20116
20136
  };
20117
20137
  _proto.findClosest = function findClosest(values, pos) {
20118
- var _this2 = this,
20119
- $$ = this.$$;
20138
+ var _this2 = this;
20139
+ const $$ = this.$$;
20120
20140
  return values.filter(function (v) {
20121
20141
  _newArrowCheck(this, _this2);
20122
20142
  return v && !$$.isBarType(v.id);
20123
20143
  }.bind(this)).reduce(function (acc, cur) {
20124
20144
  _newArrowCheck(this, _this2);
20125
- var d = $$.dist(cur, pos);
20145
+ const d = $$.dist(cur, pos);
20126
20146
  return d < this.getBubbleR(cur) ? cur : acc;
20127
20147
  }.bind(this), 0);
20128
20148
  };
20129
20149
  _proto.getBubbleR = function getBubbleR(d) {
20130
- var _this3 = this,
20131
- _this$options = this.options,
20150
+ var _this3 = this;
20151
+ const _this$options = this.options,
20132
20152
  minR = _this$options.minR,
20133
20153
  maxR = _this$options.maxR,
20134
20154
  curVal = this.getZData(d);
20135
20155
  if (!curVal) return minR;
20136
- var _this$$$$data$targets = this.$$.data.targets.reduce(function (_ref, cur) {
20137
- var accMin = _ref[0],
20156
+ const _this$$$$data$targets = this.$$.data.targets.reduce(function (_ref, cur) {
20157
+ let accMin = _ref[0],
20138
20158
  accMax = _ref[1];
20139
20159
  _newArrowCheck(this, _this3);
20140
- var val = this.getZData(cur.values[0]);
20160
+ const val = this.getZData(cur.values[0]);
20141
20161
  return [Math.min(accMin, val), Math.max(accMax, val)];
20142
20162
  }.bind(this), [1e4, 0]),
20143
20163
  min = _this$$$$data$targets[0],