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.
- package/README.md +2 -2
- package/dist/billboard.css +2 -2
- package/dist/billboard.js +2742 -2516
- package/dist/billboard.min.css +2 -2
- package/dist/billboard.min.js +2 -2
- package/dist/billboard.pkgd.js +2936 -2704
- package/dist/billboard.pkgd.min.js +4 -4
- package/dist/plugin/billboardjs-plugin-bubblecompare.js +15 -15
- package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-sparkline.js +205 -186
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-stanford.js +231 -226
- package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-tableview.js +172 -152
- package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.js +161 -142
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
- package/dist/plugin/pkgd/{billboardjs-plugin-bubblecompare.js → billboardjs-plugin-bubblecompare.pkgd.js} +52 -32
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +12 -0
- package/dist/plugin/pkgd/{billboardjs-plugin-sparkline.js → billboardjs-plugin-sparkline.pkgd.js} +239 -200
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +12 -0
- package/dist/plugin/pkgd/{billboardjs-plugin-stanford.js → billboardjs-plugin-stanford.pkgd.js} +301 -277
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +12 -0
- package/dist/plugin/pkgd/{billboardjs-plugin-tableview.js → billboardjs-plugin-tableview.pkgd.js} +206 -166
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +12 -0
- package/dist/plugin/pkgd/{billboardjs-plugin-textoverlap.js → billboardjs-plugin-textoverlap.pkgd.js} +308 -278
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +12 -0
- package/dist/theme/dark.css +5 -4
- package/dist/theme/dark.min.css +2 -2
- package/dist/theme/datalab.css +5 -4
- package/dist/theme/datalab.min.css +2 -2
- package/dist/theme/graph.css +5 -4
- package/dist/theme/graph.min.css +2 -2
- package/dist/theme/insight.css +5 -4
- package/dist/theme/insight.min.css +2 -2
- package/dist-esm/billboard.js +718 -509
- package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +3 -3
- package/dist-esm/plugin/billboardjs-plugin-sparkline.js +15 -9
- package/dist-esm/plugin/billboardjs-plugin-stanford.js +21 -28
- package/dist-esm/plugin/billboardjs-plugin-tableview.js +17 -11
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +13 -7
- package/package.json +32 -32
- package/src/Chart/api/axis.ts +4 -0
- package/src/Chart/api/category.ts +8 -4
- package/src/Chart/api/export.ts +1 -2
- package/src/Chart/api/subchart.ts +162 -89
- package/src/Chart/api/zoom.ts +69 -79
- package/src/ChartInternal/Axis/AxisRendererHelper.ts +0 -8
- package/src/ChartInternal/data/IData.ts +4 -1
- package/src/ChartInternal/data/convert.helper.ts +1 -15
- package/src/ChartInternal/data/data.ts +8 -2
- package/src/ChartInternal/interactions/eventrect.ts +3 -4
- package/src/ChartInternal/interactions/flow.ts +1 -7
- package/src/ChartInternal/interactions/interaction.ts +11 -5
- package/src/ChartInternal/interactions/subchart.ts +36 -30
- package/src/ChartInternal/interactions/zoom.ts +13 -3
- package/src/ChartInternal/internals/category.ts +2 -2
- package/src/ChartInternal/internals/clip.ts +4 -5
- package/src/ChartInternal/internals/color.ts +49 -23
- package/src/ChartInternal/internals/domain.ts +46 -10
- package/src/ChartInternal/internals/grid.ts +57 -86
- package/src/ChartInternal/internals/redraw.ts +1 -6
- package/src/ChartInternal/internals/region.ts +35 -12
- package/src/ChartInternal/internals/selection.ts +1 -1
- package/src/ChartInternal/internals/text.ts +1 -26
- package/src/ChartInternal/internals/title.ts +10 -48
- package/src/ChartInternal/internals/tooltip.ts +50 -54
- package/src/ChartInternal/shape/arc.ts +2 -2
- package/src/ChartInternal/shape/candlestick.ts +2 -17
- package/src/ChartInternal/shape/point.ts +36 -8
- package/src/ChartInternal/shape/radar.ts +1 -1
- package/src/ChartInternal/shape/shape.ts +50 -4
- package/src/ChartInternal/shape/treemap.ts +2 -2
- package/src/Plugin/bubblecompare/index.ts +1 -1
- package/src/Plugin/sparkline/index.ts +2 -2
- package/src/Plugin/stanford/Elements.ts +10 -2
- package/src/Plugin/stanford/index.ts +1 -24
- package/src/Plugin/tableview/index.ts +2 -2
- package/src/config/Options/axis/x.ts +1 -0
- package/src/config/Options/common/main.ts +12 -2
- package/src/config/Options/common/point.ts +41 -0
- package/src/config/Options/common/tooltip.ts +10 -10
- package/src/config/Options/data/axis.ts +3 -1
- package/src/config/Options/data/data.ts +10 -2
- package/src/config/Options/shape/area.ts +10 -4
- package/src/config/Options/shape/bar.ts +10 -4
- package/src/config/Store/State.ts +3 -0
- package/src/module/Cache.ts +7 -5
- package/src/module/browser.ts +34 -14
- package/src/module/util.ts +8 -4
- package/src/module/worker.ts +24 -13
- package/src/scss/billboard.scss +4 -2
- package/src/scss/theme/dark.scss +4 -2
- package/src/scss/theme/datalab.scss +4 -2
- package/src/scss/theme/graph.scss +4 -2
- package/src/scss/theme/insight.scss +4 -2
- package/types/chart.d.ts +11 -0
- package/types/options.d.ts +9 -3
- package/types/options.shape.d.ts +26 -0
- 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.
|
|
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={
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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
|
-
}
|
|
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
|
|
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
|
|
6448
|
-
exponent
|
|
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
|
-
|
|
8389
|
-
case
|
|
8390
|
-
|
|
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
|
|
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 () {
|
|
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 :
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
20135
|
+
this.$$.$el.eventRect.style("cursor", "pointer");
|
|
20116
20136
|
};
|
|
20117
20137
|
_proto.findClosest = function findClosest(values, pos) {
|
|
20118
|
-
var _this2 = this
|
|
20119
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
20137
|
-
|
|
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
|
-
|
|
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],
|