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
package/dist/plugin/pkgd/{billboardjs-plugin-sparkline.js → billboardjs-plugin-sparkline.pkgd.js}
RENAMED
|
@@ -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"]["sparkline"] = factory();
|
|
20
|
+
root["bb"] = root["bb"] || {}, root["bb"]["plugin"] = root["bb"]["plugin"] || {}, root["bb"]["plugin"]["sparkline.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;
|
|
@@ -19448,7 +19468,7 @@ function _objectSpread(e) { for (var r = 1, t; r < arguments.length; r++) { t =
|
|
|
19448
19468
|
* CSS class names definition
|
|
19449
19469
|
* @private
|
|
19450
19470
|
*/
|
|
19451
|
-
|
|
19471
|
+
const $COMMON = {
|
|
19452
19472
|
button: "bb-button",
|
|
19453
19473
|
chart: "bb-chart",
|
|
19454
19474
|
empty: "bb-empty",
|
|
@@ -19456,7 +19476,7 @@ var $COMMON = {
|
|
|
19456
19476
|
target: "bb-target",
|
|
19457
19477
|
EXPANDED: "_expanded_"
|
|
19458
19478
|
};
|
|
19459
|
-
|
|
19479
|
+
const $ARC = {
|
|
19460
19480
|
arc: "bb-arc",
|
|
19461
19481
|
arcLabelLine: "bb-arc-label-line",
|
|
19462
19482
|
arcs: "bb-arcs",
|
|
@@ -19466,11 +19486,11 @@ var $ARC = {
|
|
|
19466
19486
|
chartArcsTitle: "bb-chart-arcs-title",
|
|
19467
19487
|
needle: "bb-needle"
|
|
19468
19488
|
};
|
|
19469
|
-
|
|
19489
|
+
const $AREA = {
|
|
19470
19490
|
area: "bb-area",
|
|
19471
19491
|
areas: "bb-areas"
|
|
19472
19492
|
};
|
|
19473
|
-
|
|
19493
|
+
const $AXIS = {
|
|
19474
19494
|
axis: "bb-axis",
|
|
19475
19495
|
axisX: "bb-axis-x",
|
|
19476
19496
|
axisXLabel: "bb-axis-x-label",
|
|
@@ -19479,13 +19499,13 @@ var $AXIS = {
|
|
|
19479
19499
|
axisY2Label: "bb-axis-y2-label",
|
|
19480
19500
|
axisYLabel: "bb-axis-y-label"
|
|
19481
19501
|
};
|
|
19482
|
-
|
|
19502
|
+
const $BAR = {
|
|
19483
19503
|
bar: "bb-bar",
|
|
19484
19504
|
bars: "bb-bars",
|
|
19485
19505
|
chartBar: "bb-chart-bar",
|
|
19486
19506
|
chartBars: "bb-chart-bars"
|
|
19487
19507
|
};
|
|
19488
|
-
|
|
19508
|
+
const $CANDLESTICK = {
|
|
19489
19509
|
candlestick: "bb-candlestick",
|
|
19490
19510
|
candlesticks: "bb-candlesticks",
|
|
19491
19511
|
chartCandlestick: "bb-chart-candlestick",
|
|
@@ -19493,27 +19513,27 @@ var $CANDLESTICK = {
|
|
|
19493
19513
|
valueDown: "bb-value-down",
|
|
19494
19514
|
valueUp: "bb-value-up"
|
|
19495
19515
|
};
|
|
19496
|
-
|
|
19516
|
+
const $CIRCLE = {
|
|
19497
19517
|
chartCircles: "bb-chart-circles",
|
|
19498
19518
|
circle: "bb-circle",
|
|
19499
19519
|
circles: "bb-circles"
|
|
19500
19520
|
};
|
|
19501
|
-
|
|
19521
|
+
const $COLOR = {
|
|
19502
19522
|
colorPattern: "bb-color-pattern",
|
|
19503
19523
|
colorScale: "bb-colorscale"
|
|
19504
19524
|
};
|
|
19505
|
-
|
|
19525
|
+
const $DRAG = {
|
|
19506
19526
|
dragarea: "bb-dragarea",
|
|
19507
19527
|
INCLUDED: "_included_"
|
|
19508
19528
|
};
|
|
19509
|
-
|
|
19529
|
+
const $GAUGE = {
|
|
19510
19530
|
chartArcsGaugeMax: "bb-chart-arcs-gauge-max",
|
|
19511
19531
|
chartArcsGaugeMin: "bb-chart-arcs-gauge-min",
|
|
19512
19532
|
chartArcsGaugeUnit: "bb-chart-arcs-gauge-unit",
|
|
19513
19533
|
chartArcsGaugeTitle: "bb-chart-arcs-gauge-title",
|
|
19514
19534
|
gaugeValue: "bb-gauge-value"
|
|
19515
19535
|
};
|
|
19516
|
-
|
|
19536
|
+
const $LEGEND = {
|
|
19517
19537
|
legend: "bb-legend",
|
|
19518
19538
|
legendBackground: "bb-legend-background",
|
|
19519
19539
|
legendItem: "bb-legend-item",
|
|
@@ -19522,26 +19542,26 @@ var $LEGEND = {
|
|
|
19522
19542
|
legendItemPoint: "bb-legend-item-point",
|
|
19523
19543
|
legendItemTile: "bb-legend-item-tile"
|
|
19524
19544
|
};
|
|
19525
|
-
|
|
19545
|
+
const $LINE = {
|
|
19526
19546
|
chartLine: "bb-chart-line",
|
|
19527
19547
|
chartLines: "bb-chart-lines",
|
|
19528
19548
|
line: "bb-line",
|
|
19529
19549
|
lines: "bb-lines"
|
|
19530
19550
|
};
|
|
19531
|
-
|
|
19551
|
+
const $EVENT = {
|
|
19532
19552
|
eventRect: "bb-event-rect",
|
|
19533
19553
|
eventRects: "bb-event-rects",
|
|
19534
19554
|
eventRectsMultiple: "bb-event-rects-multiple",
|
|
19535
19555
|
eventRectsSingle: "bb-event-rects-single"
|
|
19536
19556
|
};
|
|
19537
|
-
|
|
19557
|
+
const $FOCUS = {
|
|
19538
19558
|
focused: "bb-focused",
|
|
19539
19559
|
defocused: "bb-defocused",
|
|
19540
19560
|
legendItemFocused: "bb-legend-item-focused",
|
|
19541
19561
|
xgridFocus: "bb-xgrid-focus",
|
|
19542
19562
|
ygridFocus: "bb-ygrid-focus"
|
|
19543
19563
|
};
|
|
19544
|
-
|
|
19564
|
+
const $GRID = {
|
|
19545
19565
|
grid: "bb-grid",
|
|
19546
19566
|
gridLines: "bb-grid-lines",
|
|
19547
19567
|
xgrid: "bb-xgrid",
|
|
@@ -19553,32 +19573,32 @@ var $GRID = {
|
|
|
19553
19573
|
ygridLines: "bb-ygrid-lines",
|
|
19554
19574
|
ygrids: "bb-ygrids"
|
|
19555
19575
|
};
|
|
19556
|
-
|
|
19576
|
+
const $LEVEL = {
|
|
19557
19577
|
level: "bb-level",
|
|
19558
19578
|
levels: "bb-levels"
|
|
19559
19579
|
};
|
|
19560
|
-
|
|
19580
|
+
const $RADAR = {
|
|
19561
19581
|
chartRadar: "bb-chart-radar",
|
|
19562
19582
|
chartRadars: "bb-chart-radars"
|
|
19563
19583
|
};
|
|
19564
|
-
|
|
19584
|
+
const $REGION = {
|
|
19565
19585
|
region: "bb-region",
|
|
19566
19586
|
regions: "bb-regions"
|
|
19567
19587
|
};
|
|
19568
|
-
|
|
19588
|
+
const $SELECT = {
|
|
19569
19589
|
selectedCircle: "bb-selected-circle",
|
|
19570
19590
|
selectedCircles: "bb-selected-circles",
|
|
19571
19591
|
SELECTED: "_selected_"
|
|
19572
19592
|
};
|
|
19573
|
-
|
|
19593
|
+
const $SHAPE = {
|
|
19574
19594
|
shape: "bb-shape",
|
|
19575
19595
|
shapes: "bb-shapes"
|
|
19576
19596
|
};
|
|
19577
|
-
|
|
19597
|
+
const $SUBCHART = {
|
|
19578
19598
|
brush: "bb-brush",
|
|
19579
19599
|
subchart: "bb-subchart"
|
|
19580
19600
|
};
|
|
19581
|
-
|
|
19601
|
+
const $TEXT = {
|
|
19582
19602
|
chartText: "bb-chart-text",
|
|
19583
19603
|
chartTexts: "bb-chart-texts",
|
|
19584
19604
|
text: "bb-text",
|
|
@@ -19586,17 +19606,17 @@ var $TEXT = {
|
|
|
19586
19606
|
title: "bb-title",
|
|
19587
19607
|
TextOverlapping: "text-overlapping"
|
|
19588
19608
|
};
|
|
19589
|
-
|
|
19609
|
+
const $TOOLTIP = {
|
|
19590
19610
|
tooltip: "bb-tooltip",
|
|
19591
19611
|
tooltipContainer: "bb-tooltip-container",
|
|
19592
19612
|
tooltipName: "bb-tooltip-name"
|
|
19593
19613
|
};
|
|
19594
|
-
|
|
19614
|
+
const $TREEMAP = {
|
|
19595
19615
|
treemap: "bb-treemap",
|
|
19596
19616
|
chartTreemap: "bb-chart-treemap",
|
|
19597
19617
|
chartTreemaps: "bb-chart-treemaps"
|
|
19598
19618
|
};
|
|
19599
|
-
|
|
19619
|
+
const $ZOOM = {
|
|
19600
19620
|
buttonZoomReset: "bb-zoom-reset",
|
|
19601
19621
|
zoomBrush: "bb-zoom-brush"
|
|
19602
19622
|
};
|
|
@@ -19620,7 +19640,7 @@ var $ZOOM = {
|
|
|
19620
19640
|
* @example
|
|
19621
19641
|
* bb.plugin.stanford.version; // ex) 1.9.0
|
|
19622
19642
|
*/
|
|
19623
|
-
|
|
19643
|
+
let Plugin = /*#__PURE__*/function () {
|
|
19624
19644
|
/**
|
|
19625
19645
|
* Constructor
|
|
19626
19646
|
* @param {Any} options config option object
|
|
@@ -19674,7 +19694,7 @@ var Plugin = /*#__PURE__*/function () {
|
|
|
19674
19694
|
};
|
|
19675
19695
|
return Plugin;
|
|
19676
19696
|
}();
|
|
19677
|
-
Plugin.version = "3.
|
|
19697
|
+
Plugin.version = "3.10.0-next.2";
|
|
19678
19698
|
|
|
19679
19699
|
;// CONCATENATED MODULE: ./src/Plugin/sparkline/Options.ts
|
|
19680
19700
|
/**
|
|
@@ -19689,7 +19709,7 @@ Plugin.version = "3.9.4";
|
|
|
19689
19709
|
* @returns {TableviewOptions}
|
|
19690
19710
|
* @private
|
|
19691
19711
|
*/
|
|
19692
|
-
|
|
19712
|
+
let Options = function () {
|
|
19693
19713
|
return {
|
|
19694
19714
|
/**
|
|
19695
19715
|
* Specify sparkline charts holder selector.
|
|
@@ -19707,7 +19727,7 @@ var Options = function () {
|
|
|
19707
19727
|
|
|
19708
19728
|
;// CONCATENATED MODULE: ./node_modules/d3-selection/src/sourceEvent.js
|
|
19709
19729
|
/* harmony default export */ function sourceEvent(event) {
|
|
19710
|
-
|
|
19730
|
+
let sourceEvent;
|
|
19711
19731
|
while (sourceEvent = event.sourceEvent) event = sourceEvent;
|
|
19712
19732
|
return event;
|
|
19713
19733
|
}
|
|
@@ -20190,7 +20210,7 @@ function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Sy
|
|
|
20190
20210
|
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); }
|
|
20191
20211
|
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; }
|
|
20192
20212
|
/* harmony default export */ function size() {
|
|
20193
|
-
|
|
20213
|
+
let size = 0;
|
|
20194
20214
|
for (var _iterator = _createForOfIteratorHelperLoose(this), _step; !(_step = _iterator()).done;) {
|
|
20195
20215
|
_step.value;
|
|
20196
20216
|
++size;
|
|
@@ -20742,10 +20762,10 @@ Selection.prototype = selection.prototype = (_selection$prototype = {
|
|
|
20742
20762
|
;// CONCATENATED MODULE: ./node_modules/d3-drag/src/noevent.js
|
|
20743
20763
|
// These are typically used in conjunction with noevent to ensure that we can
|
|
20744
20764
|
// preventDefault on the event.
|
|
20745
|
-
|
|
20765
|
+
const nonpassive = {
|
|
20746
20766
|
passive: !1
|
|
20747
20767
|
};
|
|
20748
|
-
|
|
20768
|
+
const nonpassivecapture = {
|
|
20749
20769
|
capture: !0,
|
|
20750
20770
|
passive: !1
|
|
20751
20771
|
};
|
|
@@ -21060,7 +21080,7 @@ function rgb_formatHex8() {
|
|
|
21060
21080
|
return "#" + hex(this.r) + hex(this.g) + hex(this.b) + hex((isNaN(this.opacity) ? 1 : this.opacity) * 255);
|
|
21061
21081
|
}
|
|
21062
21082
|
function rgb_formatRgb() {
|
|
21063
|
-
|
|
21083
|
+
const a = clampa(this.opacity);
|
|
21064
21084
|
return "" + (a === 1 ? "rgb(" : "rgba(") + clampi(this.r) + ", " + clampi(this.g) + ", " + clampi(this.b) + (a === 1 ? ")" : ", " + a + ")");
|
|
21065
21085
|
}
|
|
21066
21086
|
function clampa(opacity) {
|
|
@@ -21133,7 +21153,7 @@ src_define(Hsl, hsl, extend(Color, {
|
|
|
21133
21153
|
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
|
|
21134
21154
|
},
|
|
21135
21155
|
formatHsl: function formatHsl() {
|
|
21136
|
-
|
|
21156
|
+
const a = clampa(this.opacity);
|
|
21137
21157
|
return "" + (a === 1 ? "hsl(" : "hsla(") + clamph(this.h) + ", " + clampt(this.s) * 100 + "%, " + clampt(this.l) * 100 + "%" + (a === 1 ? ")" : ", " + a + ")");
|
|
21138
21158
|
}
|
|
21139
21159
|
}));
|
|
@@ -21741,7 +21761,7 @@ var svgNode;
|
|
|
21741
21761
|
|
|
21742
21762
|
/* eslint-disable no-undef */
|
|
21743
21763
|
function parseCss(value) {
|
|
21744
|
-
|
|
21764
|
+
const m = new (typeof DOMMatrix === "function" ? DOMMatrix : WebKitCSSMatrix)(value + "");
|
|
21745
21765
|
return m.isIdentity ? identity : decompose(m.a, m.b, m.c, m.d, m.e, m.f);
|
|
21746
21766
|
}
|
|
21747
21767
|
function parseSvg(value) {
|
|
@@ -22496,7 +22516,7 @@ var src_constant_this = undefined;
|
|
|
22496
22516
|
}).bind(undefined));
|
|
22497
22517
|
;// CONCATENATED MODULE: ./node_modules/d3-brush/src/event.js
|
|
22498
22518
|
function BrushEvent(type, _ref) {
|
|
22499
|
-
|
|
22519
|
+
let sourceEvent = _ref.sourceEvent,
|
|
22500
22520
|
target = _ref.target,
|
|
22501
22521
|
selection = _ref.selection,
|
|
22502
22522
|
mode = _ref.mode,
|
|
@@ -22565,7 +22585,7 @@ var MODE_DRAG = {
|
|
|
22565
22585
|
MODE_CENTER = {
|
|
22566
22586
|
name: "center"
|
|
22567
22587
|
};
|
|
22568
|
-
|
|
22588
|
+
const abs = Math.abs,
|
|
22569
22589
|
max = Math.max,
|
|
22570
22590
|
min = Math.min;
|
|
22571
22591
|
function number1(e) {
|
|
@@ -22851,7 +22871,7 @@ function brush_brush(dim) {
|
|
|
22851
22871
|
lockY,
|
|
22852
22872
|
points = Array.from(event.touches || [event], function (t) {
|
|
22853
22873
|
_newArrowCheck(this, _this);
|
|
22854
|
-
|
|
22874
|
+
const i = t.identifier;
|
|
22855
22875
|
t = src_pointer(t, that);
|
|
22856
22876
|
t.point0 = t.slice();
|
|
22857
22877
|
t.identifier = i;
|
|
@@ -22861,7 +22881,7 @@ function brush_brush(dim) {
|
|
|
22861
22881
|
var emit = emitter(that, arguments, !0).beforestart();
|
|
22862
22882
|
if (type === "overlay") {
|
|
22863
22883
|
if (selection) moving = !0;
|
|
22864
|
-
|
|
22884
|
+
const pts = [points[0], points[1] || points[0]];
|
|
22865
22885
|
state.selection = selection = [[w0 = dim === Y ? W : min(pts[0][0], pts[1][0]), n0 = dim === X ? N : min(pts[0][1], pts[1][1])], [e0 = dim === Y ? E : max(pts[0][0], pts[1][0]), s0 = dim === X ? S : max(pts[0][1], pts[1][1])]];
|
|
22866
22886
|
if (points.length > 1) move(event);
|
|
22867
22887
|
} else {
|
|
@@ -22888,26 +22908,26 @@ function brush_brush(dim) {
|
|
|
22888
22908
|
emit.start(event, mode.name);
|
|
22889
22909
|
function moved(event) {
|
|
22890
22910
|
for (var _iterator = brush_createForOfIteratorHelperLoose(event.changedTouches || [event]), _step; !(_step = _iterator()).done;) {
|
|
22891
|
-
|
|
22911
|
+
const p = _step.value;
|
|
22892
22912
|
for (var _iterator3 = brush_createForOfIteratorHelperLoose(points), _step3; !(_step3 = _iterator3()).done;) {
|
|
22893
|
-
|
|
22913
|
+
const d = _step3.value;
|
|
22894
22914
|
if (d.identifier === p.identifier) d.cur = src_pointer(p, that);
|
|
22895
22915
|
}
|
|
22896
22916
|
}
|
|
22897
22917
|
if (shifting && !lockX && !lockY && points.length === 1) {
|
|
22898
|
-
|
|
22918
|
+
const point = points[0];
|
|
22899
22919
|
if (abs(point.cur[0] - point[0]) > abs(point.cur[1] - point[1])) lockY = !0;else lockX = !0;
|
|
22900
22920
|
}
|
|
22901
22921
|
for (var _iterator2 = brush_createForOfIteratorHelperLoose(points), _step2; !(_step2 = _iterator2()).done;) {
|
|
22902
|
-
|
|
22903
|
-
if (
|
|
22922
|
+
const point = _step2.value;
|
|
22923
|
+
if (point.cur) point[0] = point.cur[0], point[1] = point.cur[1];
|
|
22904
22924
|
}
|
|
22905
22925
|
moving = !0;
|
|
22906
22926
|
src_noevent(event);
|
|
22907
22927
|
move(event);
|
|
22908
22928
|
}
|
|
22909
22929
|
function move(event) {
|
|
22910
|
-
|
|
22930
|
+
const point = points[0],
|
|
22911
22931
|
point0 = point.point0;
|
|
22912
22932
|
var t;
|
|
22913
22933
|
dx = point[0] - point0[0];
|
|
@@ -23098,7 +23118,6 @@ function brush_brush(dim) {
|
|
|
23098
23118
|
|
|
23099
23119
|
;// CONCATENATED MODULE: ./src/module/browser.ts
|
|
23100
23120
|
|
|
23101
|
-
var browser_this = undefined;
|
|
23102
23121
|
/**
|
|
23103
23122
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
23104
23123
|
* billboard.js project is licensed under the MIT license
|
|
@@ -23109,26 +23128,41 @@ var browser_this = undefined;
|
|
|
23109
23128
|
*/
|
|
23110
23129
|
/* eslint-disable no-new-func, no-undef */
|
|
23111
23130
|
|
|
23112
|
-
|
|
23113
|
-
|
|
23114
|
-
|
|
23115
|
-
|
|
23116
|
-
|
|
23117
|
-
|
|
23118
|
-
|
|
23119
|
-
|
|
23120
|
-
|
|
23131
|
+
|
|
23132
|
+
/**
|
|
23133
|
+
* Get global object
|
|
23134
|
+
* @returns {object} window object
|
|
23135
|
+
* @private
|
|
23136
|
+
*/
|
|
23137
|
+
function getGlobal() {
|
|
23138
|
+
return typeof globalThis === "object" && globalThis !== null && globalThis.Object === Object && globalThis || typeof global === "object" && global !== null && global.Object === Object && global || typeof self === "object" && self !== null && self.Object === Object && self || Function("return this")();
|
|
23139
|
+
}
|
|
23140
|
+
|
|
23141
|
+
/**
|
|
23142
|
+
* Get fallback object
|
|
23143
|
+
* @param {object} w global object
|
|
23144
|
+
* @returns {Array} fallback object array
|
|
23145
|
+
* @private
|
|
23146
|
+
*/
|
|
23147
|
+
function getFallback(w) {
|
|
23148
|
+
var _this = this;
|
|
23149
|
+
const hasRAF = typeof (w == null ? void 0 : w.requestAnimationFrame) === "function",
|
|
23150
|
+
hasRIC = typeof (w == null ? void 0 : w.requestIdleCallback) === "function";
|
|
23151
|
+
return [hasRAF ? w.requestAnimationFrame : function (cb) {
|
|
23152
|
+
_newArrowCheck(this, _this);
|
|
23121
23153
|
return setTimeout(cb, 1);
|
|
23122
|
-
}.bind(
|
|
23123
|
-
|
|
23124
|
-
_newArrowCheck(this, browser_this);
|
|
23154
|
+
}.bind(this), hasRAF ? w.cancelAnimationFrame : function (id) {
|
|
23155
|
+
_newArrowCheck(this, _this);
|
|
23125
23156
|
return clearTimeout(id);
|
|
23126
|
-
}.bind(
|
|
23127
|
-
|
|
23128
|
-
|
|
23129
|
-
doc = win == null ? void 0 : win.document
|
|
23130
|
-
|
|
23131
|
-
|
|
23157
|
+
}.bind(this), hasRIC ? w.requestIdleCallback : requestAnimationFrame, hasRIC ? w.cancelIdleCallback : cancelAnimationFrame];
|
|
23158
|
+
}
|
|
23159
|
+
const win = getGlobal(),
|
|
23160
|
+
doc = win == null ? void 0 : win.document,
|
|
23161
|
+
_getFallback = getFallback(win),
|
|
23162
|
+
requestAnimationFrame = _getFallback[0],
|
|
23163
|
+
cancelAnimationFrame = _getFallback[1],
|
|
23164
|
+
requestIdleCallback = _getFallback[2],
|
|
23165
|
+
cancelIdleCallback = _getFallback[3];
|
|
23132
23166
|
;// CONCATENATED MODULE: ./src/module/util.ts
|
|
23133
23167
|
|
|
23134
23168
|
|
|
@@ -23144,7 +23178,7 @@ function util_objectSpread(e) { for (var r = 1, t; r < arguments.length; r++) {
|
|
|
23144
23178
|
|
|
23145
23179
|
|
|
23146
23180
|
|
|
23147
|
-
|
|
23181
|
+
const isValue = function (v) {
|
|
23148
23182
|
_newArrowCheck(this, util_this);
|
|
23149
23183
|
return v || v === 0;
|
|
23150
23184
|
}.bind(undefined),
|
|
@@ -23237,8 +23271,8 @@ function getOption(options, key, defaultValue) {
|
|
|
23237
23271
|
* @private
|
|
23238
23272
|
*/
|
|
23239
23273
|
function hasValue(dict, value) {
|
|
23240
|
-
var _this2 = this
|
|
23241
|
-
|
|
23274
|
+
var _this2 = this;
|
|
23275
|
+
let found = !1;
|
|
23242
23276
|
Object.keys(dict).forEach(function (key) {
|
|
23243
23277
|
_newArrowCheck(this, _this2);
|
|
23244
23278
|
return dict[key] === value && (found = !0);
|
|
@@ -23255,7 +23289,7 @@ function hasValue(dict, value) {
|
|
|
23255
23289
|
* @private
|
|
23256
23290
|
*/
|
|
23257
23291
|
function callFn(fn, thisArg) {
|
|
23258
|
-
|
|
23292
|
+
const isFn = isFunction(fn);
|
|
23259
23293
|
for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
23260
23294
|
args[_key - 2] = arguments[_key];
|
|
23261
23295
|
}
|
|
@@ -23270,14 +23304,15 @@ function callFn(fn, thisArg) {
|
|
|
23270
23304
|
* @private
|
|
23271
23305
|
*/
|
|
23272
23306
|
function endall(transition, cb) {
|
|
23273
|
-
var _this3 = this
|
|
23274
|
-
|
|
23275
|
-
|
|
23276
|
-
|
|
23277
|
-
|
|
23278
|
-
|
|
23279
|
-
|
|
23280
|
-
|
|
23307
|
+
var _this3 = this;
|
|
23308
|
+
let n = 0;
|
|
23309
|
+
const end = function () {
|
|
23310
|
+
for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
23311
|
+
args[_key2] = arguments[_key2];
|
|
23312
|
+
}
|
|
23313
|
+
--n || cb.apply.apply(cb, [this].concat(args));
|
|
23314
|
+
};
|
|
23315
|
+
|
|
23281
23316
|
// if is transition selection
|
|
23282
23317
|
if ("duration" in transition) {
|
|
23283
23318
|
transition.each(function () {
|
|
@@ -23296,8 +23331,8 @@ function endall(transition, cb) {
|
|
|
23296
23331
|
* @returns {string}
|
|
23297
23332
|
* @private
|
|
23298
23333
|
*/
|
|
23299
|
-
function
|
|
23300
|
-
return isString(str) ? str.replace(
|
|
23334
|
+
function sanitize(str) {
|
|
23335
|
+
return isString(str) ? str.replace(/<(script|img)?/ig, "<").replace(/(script)?>/ig, ">") : str;
|
|
23301
23336
|
}
|
|
23302
23337
|
|
|
23303
23338
|
/**
|
|
@@ -23322,12 +23357,12 @@ function setTextValue(node, text, dy, toMiddle) {
|
|
|
23322
23357
|
if (text.indexOf("\n") === -1) {
|
|
23323
23358
|
node.text(text);
|
|
23324
23359
|
} else {
|
|
23325
|
-
|
|
23360
|
+
const diff = [node.text(), text].map(function (v) {
|
|
23326
23361
|
_newArrowCheck(this, _this4);
|
|
23327
23362
|
return v.replace(/[\s\n]/g, "");
|
|
23328
23363
|
}.bind(this));
|
|
23329
23364
|
if (diff[0] !== diff[1]) {
|
|
23330
|
-
|
|
23365
|
+
const multiline = text.split("\n"),
|
|
23331
23366
|
len = toMiddle ? multiline.length - 1 : 1;
|
|
23332
23367
|
// reset possible text
|
|
23333
23368
|
node.html("");
|
|
@@ -23353,7 +23388,7 @@ function getRectSegList(path) {
|
|
|
23353
23388
|
* | |
|
|
23354
23389
|
* seg0 ---------- seg3
|
|
23355
23390
|
* */
|
|
23356
|
-
|
|
23391
|
+
const _path$getBBox = path.getBBox(),
|
|
23357
23392
|
x = _path$getBBox.x,
|
|
23358
23393
|
y = _path$getBBox.y,
|
|
23359
23394
|
width = _path$getBBox.width,
|
|
@@ -23387,7 +23422,7 @@ function getRectSegList(path) {
|
|
|
23387
23422
|
* @private
|
|
23388
23423
|
*/
|
|
23389
23424
|
function getPathBox(path) {
|
|
23390
|
-
|
|
23425
|
+
const _path$getBoundingClie = path.getBoundingClientRect(),
|
|
23391
23426
|
width = _path$getBoundingClie.width,
|
|
23392
23427
|
height = _path$getBoundingClie.height,
|
|
23393
23428
|
items = getRectSegList(path),
|
|
@@ -23410,9 +23445,12 @@ function getPathBox(path) {
|
|
|
23410
23445
|
*/
|
|
23411
23446
|
function getPointer(event, element) {
|
|
23412
23447
|
var _ref,
|
|
23413
|
-
touches = event && ((_ref = event.touches || event.sourceEvent && event.sourceEvent.touches) == null ? void 0 : _ref[0]),
|
|
23414
|
-
pointer = src_pointer(touches || event, element),
|
|
23415
23448
|
_this5 = this;
|
|
23449
|
+
const touches = event && ((_ref = event.touches || event.sourceEvent && event.sourceEvent.touches) == null ? void 0 : _ref[0]);
|
|
23450
|
+
let pointer = [0, 0];
|
|
23451
|
+
try {
|
|
23452
|
+
pointer = src_pointer(touches || event, element);
|
|
23453
|
+
} catch (e) {}
|
|
23416
23454
|
return pointer.map(function (v) {
|
|
23417
23455
|
_newArrowCheck(this, _this5);
|
|
23418
23456
|
return isNaN(v) ? 0 : v;
|
|
@@ -23426,10 +23464,10 @@ function getPointer(event, element) {
|
|
|
23426
23464
|
* @private
|
|
23427
23465
|
*/
|
|
23428
23466
|
function getBrushSelection(ctx) {
|
|
23429
|
-
|
|
23467
|
+
const event = ctx.event,
|
|
23430
23468
|
$el = ctx.$el,
|
|
23431
23469
|
main = $el.subchart.main || $el.main;
|
|
23432
|
-
|
|
23470
|
+
let selection;
|
|
23433
23471
|
|
|
23434
23472
|
// check from event
|
|
23435
23473
|
if (event && event.type === "brush") {
|
|
@@ -23449,7 +23487,7 @@ function getBrushSelection(ctx) {
|
|
|
23449
23487
|
* @private
|
|
23450
23488
|
*/
|
|
23451
23489
|
function getBoundingRect(node) {
|
|
23452
|
-
|
|
23490
|
+
const needEvaluate = !("rect" in node) || "rect" in node && node.hasAttribute("width") && node.rect.width !== +node.getAttribute("width");
|
|
23453
23491
|
return needEvaluate ? node.rect = node.getBoundingClientRect() : node.rect;
|
|
23454
23492
|
}
|
|
23455
23493
|
|
|
@@ -23471,7 +23509,7 @@ function getRandom(asStr, min, max) {
|
|
|
23471
23509
|
if (max === void 0) {
|
|
23472
23510
|
max = 1e4;
|
|
23473
23511
|
}
|
|
23474
|
-
|
|
23512
|
+
const crpt = win.crypto || win.msCrypto,
|
|
23475
23513
|
rand = crpt ? min + crpt.getRandomValues(new Uint32Array(1))[0] % (max - min + 1) : Math.floor(Math.random() * (max - min) + min);
|
|
23476
23514
|
return asStr ? rand + "" : rand;
|
|
23477
23515
|
}
|
|
@@ -23490,8 +23528,8 @@ function findIndex(arr, v, start, end, isRotated) {
|
|
|
23490
23528
|
if (start > end) {
|
|
23491
23529
|
return -1;
|
|
23492
23530
|
}
|
|
23493
|
-
|
|
23494
|
-
|
|
23531
|
+
const mid = Math.floor((start + end) / 2);
|
|
23532
|
+
let _arr$mid = arr[mid],
|
|
23495
23533
|
x = _arr$mid.x,
|
|
23496
23534
|
_arr$mid$w = _arr$mid.w,
|
|
23497
23535
|
w = _arr$mid$w === void 0 ? 0 : _arr$mid$w;
|
|
@@ -23512,7 +23550,7 @@ function findIndex(arr, v, start, end, isRotated) {
|
|
|
23512
23550
|
* @private
|
|
23513
23551
|
*/
|
|
23514
23552
|
function brushEmpty(ctx) {
|
|
23515
|
-
|
|
23553
|
+
const selection = getBrushSelection(ctx);
|
|
23516
23554
|
if (selection) {
|
|
23517
23555
|
// brush selected area
|
|
23518
23556
|
// two-dimensional: [[x0, y0], [x1, y1]]
|
|
@@ -23529,17 +23567,19 @@ function brushEmpty(ctx) {
|
|
|
23529
23567
|
* @private
|
|
23530
23568
|
*/
|
|
23531
23569
|
function deepClone() {
|
|
23532
|
-
|
|
23533
|
-
|
|
23534
|
-
|
|
23535
|
-
|
|
23536
|
-
|
|
23537
|
-
|
|
23538
|
-
|
|
23539
|
-
return r;
|
|
23570
|
+
var _this6 = this;
|
|
23571
|
+
const _clone = function clone(v) {
|
|
23572
|
+
_newArrowCheck(this, _this6);
|
|
23573
|
+
if (isObject(v) && v.constructor) {
|
|
23574
|
+
const r = new v.constructor();
|
|
23575
|
+
for (const k in v) {
|
|
23576
|
+
r[k] = _clone(v[k]);
|
|
23540
23577
|
}
|
|
23541
|
-
return
|
|
23542
|
-
}
|
|
23578
|
+
return r;
|
|
23579
|
+
}
|
|
23580
|
+
return v;
|
|
23581
|
+
}.bind(this);
|
|
23582
|
+
for (var _len3 = arguments.length, objectN = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
23543
23583
|
objectN[_key3] = arguments[_key3];
|
|
23544
23584
|
}
|
|
23545
23585
|
return objectN.map(function (v) {
|
|
@@ -23571,7 +23611,7 @@ function util_extend(target, source) {
|
|
|
23571
23611
|
}
|
|
23572
23612
|
|
|
23573
23613
|
// exclude name with only numbers
|
|
23574
|
-
for (
|
|
23614
|
+
for (const p in source) {
|
|
23575
23615
|
if (/^\d+$/.test(p) || p in target) {
|
|
23576
23616
|
continue;
|
|
23577
23617
|
}
|
|
@@ -23586,7 +23626,7 @@ function util_extend(target, source) {
|
|
|
23586
23626
|
* @returns {string} capitalized string
|
|
23587
23627
|
* @private
|
|
23588
23628
|
*/
|
|
23589
|
-
|
|
23629
|
+
const capitalize = function (str) {
|
|
23590
23630
|
_newArrowCheck(this, util_this);
|
|
23591
23631
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
23592
23632
|
}.bind(undefined);
|
|
@@ -23615,7 +23655,7 @@ function camelize(str, separator) {
|
|
|
23615
23655
|
* @returns {Array}
|
|
23616
23656
|
* @private
|
|
23617
23657
|
*/
|
|
23618
|
-
|
|
23658
|
+
const toArray = function (v) {
|
|
23619
23659
|
_newArrowCheck(this, util_this);
|
|
23620
23660
|
return [].slice.call(v);
|
|
23621
23661
|
}.bind(undefined);
|
|
@@ -23629,8 +23669,8 @@ var toArray = function (v) {
|
|
|
23629
23669
|
* @private
|
|
23630
23670
|
*/
|
|
23631
23671
|
function addCssRules(style, selector, prop) {
|
|
23632
|
-
var _this9 = this
|
|
23633
|
-
|
|
23672
|
+
var _this9 = this;
|
|
23673
|
+
const rootSelctor = style.rootSelctor,
|
|
23634
23674
|
sheet = style.sheet,
|
|
23635
23675
|
getSelector = function (s) {
|
|
23636
23676
|
_newArrowCheck(this, _this9);
|
|
@@ -23647,8 +23687,8 @@ function addCssRules(style, selector, prop) {
|
|
|
23647
23687
|
* @private
|
|
23648
23688
|
*/
|
|
23649
23689
|
function getCssRules(styleSheets) {
|
|
23650
|
-
var _this10 = this
|
|
23651
|
-
|
|
23690
|
+
var _this10 = this;
|
|
23691
|
+
let rules = [];
|
|
23652
23692
|
styleSheets.forEach(function (sheet) {
|
|
23653
23693
|
_newArrowCheck(this, _this10);
|
|
23654
23694
|
try {
|
|
@@ -23670,7 +23710,7 @@ function getCssRules(styleSheets) {
|
|
|
23670
23710
|
* @private
|
|
23671
23711
|
*/
|
|
23672
23712
|
function getTranslation(node) {
|
|
23673
|
-
|
|
23713
|
+
const transform = node ? node.transform : null,
|
|
23674
23714
|
baseVal = transform && transform.baseVal;
|
|
23675
23715
|
return baseVal && baseVal.numberOfItems ? baseVal.getItem(0).matrix : {
|
|
23676
23716
|
a: 0,
|
|
@@ -23689,8 +23729,8 @@ function getTranslation(node) {
|
|
|
23689
23729
|
* @private
|
|
23690
23730
|
*/
|
|
23691
23731
|
function getUnique(data) {
|
|
23692
|
-
var _this11 = this
|
|
23693
|
-
|
|
23732
|
+
var _this11 = this;
|
|
23733
|
+
const isDate = data[0] instanceof Date,
|
|
23694
23734
|
d = (isDate ? data.map(Number) : data).filter(function (v, i, self) {
|
|
23695
23735
|
_newArrowCheck(this, _this11);
|
|
23696
23736
|
return self.indexOf(v) === i;
|
|
@@ -23729,11 +23769,11 @@ function mergeObj(target) {
|
|
|
23729
23769
|
if (!objectN.length || objectN.length === 1 && !objectN[0]) {
|
|
23730
23770
|
return target;
|
|
23731
23771
|
}
|
|
23732
|
-
|
|
23772
|
+
const source = objectN.shift();
|
|
23733
23773
|
if (isObject(target) && isObject(source)) {
|
|
23734
23774
|
Object.keys(source).forEach(function (key) {
|
|
23735
23775
|
_newArrowCheck(this, _this13);
|
|
23736
|
-
|
|
23776
|
+
const value = source[key];
|
|
23737
23777
|
if (isObject(value)) {
|
|
23738
23778
|
target[key] || (target[key] = {});
|
|
23739
23779
|
target[key] = mergeObj(target[key], value);
|
|
@@ -23757,7 +23797,7 @@ function sortValue(data, isAsc) {
|
|
|
23757
23797
|
if (isAsc === void 0) {
|
|
23758
23798
|
isAsc = !0;
|
|
23759
23799
|
}
|
|
23760
|
-
|
|
23800
|
+
let fn;
|
|
23761
23801
|
if (data[0] instanceof Date) {
|
|
23762
23802
|
fn = isAsc ? function (a, b) {
|
|
23763
23803
|
_newArrowCheck(this, _this14);
|
|
@@ -23790,11 +23830,11 @@ function sortValue(data, isAsc) {
|
|
|
23790
23830
|
* @private
|
|
23791
23831
|
*/
|
|
23792
23832
|
function getMinMax(type, data) {
|
|
23793
|
-
var _this15 = this
|
|
23794
|
-
|
|
23795
|
-
|
|
23796
|
-
|
|
23797
|
-
|
|
23833
|
+
var _this15 = this;
|
|
23834
|
+
let res = data.filter(function (v) {
|
|
23835
|
+
_newArrowCheck(this, _this15);
|
|
23836
|
+
return notEmpty(v);
|
|
23837
|
+
}.bind(this));
|
|
23798
23838
|
if (res.length) {
|
|
23799
23839
|
if (isNumber(res[0])) {
|
|
23800
23840
|
res = Math[type].apply(Math, res);
|
|
@@ -23815,14 +23855,14 @@ function getMinMax(type, data) {
|
|
|
23815
23855
|
* @returns {Array}
|
|
23816
23856
|
* @private
|
|
23817
23857
|
*/
|
|
23818
|
-
|
|
23858
|
+
const getRange = function (start, end, step) {
|
|
23819
23859
|
if (step === void 0) {
|
|
23820
23860
|
step = 1;
|
|
23821
23861
|
}
|
|
23822
23862
|
_newArrowCheck(this, util_this);
|
|
23823
|
-
|
|
23863
|
+
const res = [],
|
|
23824
23864
|
n = Math.max(0, Math.ceil((end - start) / step)) | 0;
|
|
23825
|
-
for (
|
|
23865
|
+
for (let i = start; i < n; i++) {
|
|
23826
23866
|
res.push(start + i * step);
|
|
23827
23867
|
}
|
|
23828
23868
|
return res;
|
|
@@ -23831,7 +23871,7 @@ var getRange = function (start, end, step) {
|
|
|
23831
23871
|
mouse: function () {
|
|
23832
23872
|
var _this16 = this;
|
|
23833
23873
|
_newArrowCheck(this, util_this);
|
|
23834
|
-
|
|
23874
|
+
const getParams = function () {
|
|
23835
23875
|
_newArrowCheck(this, _this16);
|
|
23836
23876
|
return {
|
|
23837
23877
|
bubbles: !1,
|
|
@@ -23859,7 +23899,7 @@ var getRange = function (start, end, step) {
|
|
|
23859
23899
|
params = getParams();
|
|
23860
23900
|
}
|
|
23861
23901
|
_newArrowCheck(this, _this16);
|
|
23862
|
-
|
|
23902
|
+
const mouseEvent = doc.createEvent("MouseEvent");
|
|
23863
23903
|
|
|
23864
23904
|
// https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent
|
|
23865
23905
|
mouseEvent.initMouseEvent(eventType, params.bubbles, params.cancelable, win, 0,
|
|
@@ -23871,7 +23911,7 @@ var getRange = function (start, end, step) {
|
|
|
23871
23911
|
}.bind(undefined)(),
|
|
23872
23912
|
touch: function touch(el, eventType, params) {
|
|
23873
23913
|
_newArrowCheck(this, util_this);
|
|
23874
|
-
|
|
23914
|
+
const touchObj = new Touch(mergeObj({
|
|
23875
23915
|
identifier: Date.now(),
|
|
23876
23916
|
target: el,
|
|
23877
23917
|
radiusX: 2.5,
|
|
@@ -23897,8 +23937,8 @@ var getRange = function (start, end, step) {
|
|
|
23897
23937
|
* @private
|
|
23898
23938
|
*/
|
|
23899
23939
|
function tplProcess(tpl, data) {
|
|
23900
|
-
|
|
23901
|
-
for (
|
|
23940
|
+
let res = tpl;
|
|
23941
|
+
for (const x in data) {
|
|
23902
23942
|
res = res.replace(new RegExp("{=" + x + "}", "g"), data[x]);
|
|
23903
23943
|
}
|
|
23904
23944
|
return res;
|
|
@@ -23912,13 +23952,14 @@ function tplProcess(tpl, data) {
|
|
|
23912
23952
|
* @private
|
|
23913
23953
|
*/
|
|
23914
23954
|
function parseDate(date) {
|
|
23915
|
-
|
|
23955
|
+
let parsedDate;
|
|
23916
23956
|
if (date instanceof Date) {
|
|
23917
23957
|
parsedDate = date;
|
|
23918
23958
|
} else if (isString(date)) {
|
|
23919
|
-
var _format$dataTime
|
|
23920
|
-
|
|
23959
|
+
var _format$dataTime;
|
|
23960
|
+
const config = this.config,
|
|
23921
23961
|
format = this.format;
|
|
23962
|
+
|
|
23922
23963
|
// if fails to parse, try by new Date()
|
|
23923
23964
|
// https://github.com/naver/billboard.js/issues/1714
|
|
23924
23965
|
parsedDate = (_format$dataTime = format.dataTime(config.data_xFormat)(date)) != null ? _format$dataTime : new Date(date);
|
|
@@ -23948,11 +23989,11 @@ function isTabVisible() {
|
|
|
23948
23989
|
* @private
|
|
23949
23990
|
*/
|
|
23950
23991
|
function convertInputType(mouse, touch) {
|
|
23951
|
-
var _this17 = this
|
|
23952
|
-
|
|
23992
|
+
var _this17 = this;
|
|
23993
|
+
const DocumentTouch = win.DocumentTouch,
|
|
23953
23994
|
matchMedia = win.matchMedia,
|
|
23954
|
-
navigator = win.navigator
|
|
23955
|
-
|
|
23995
|
+
navigator = win.navigator;
|
|
23996
|
+
let hasTouch = !1;
|
|
23956
23997
|
if (touch) {
|
|
23957
23998
|
// Some Edge desktop return true: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/20417074/
|
|
23958
23999
|
if (navigator && "maxTouchPoints" in navigator) {
|
|
@@ -23968,7 +24009,7 @@ function convertInputType(mouse, touch) {
|
|
|
23968
24009
|
hasTouch = !0;
|
|
23969
24010
|
} else {
|
|
23970
24011
|
// Only as a last resort, fall back to user agent sniffing
|
|
23971
|
-
|
|
24012
|
+
const UA = navigator.userAgent;
|
|
23972
24013
|
hasTouch = /\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(UA) || /\b(Android|Windows Phone|iPad|iPod)\b/i.test(UA);
|
|
23973
24014
|
}
|
|
23974
24015
|
}
|
|
@@ -23977,7 +24018,7 @@ function convertInputType(mouse, touch) {
|
|
|
23977
24018
|
// Check if agent has mouse using any-hover, touch devices (e.g iPad) with external mouse will return true as long as mouse is connected
|
|
23978
24019
|
// https://css-tricks.com/interaction-media-features-and-their-potential-for-incorrect-assumptions/#aa-testing-the-capabilities-of-all-inputs
|
|
23979
24020
|
// Demo: https://patrickhlauke.github.io/touch/pointer-hover-any-pointer-any-hover/
|
|
23980
|
-
|
|
24021
|
+
const hasMouse = mouse && ["any-hover:hover", "any-pointer:fine"].some(function (v) {
|
|
23981
24022
|
_newArrowCheck(this, _this17);
|
|
23982
24023
|
return matchMedia == null ? void 0 : matchMedia("(" + v + ")").matches;
|
|
23983
24024
|
}.bind(this));
|
|
@@ -24016,22 +24057,20 @@ function runUntil(fn, conditionFn) {
|
|
|
24016
24057
|
* @private
|
|
24017
24058
|
*/
|
|
24018
24059
|
function loadConfig(config) {
|
|
24019
|
-
var _this = this
|
|
24020
|
-
|
|
24021
|
-
|
|
24022
|
-
|
|
24023
|
-
|
|
24024
|
-
|
|
24025
|
-
|
|
24026
|
-
|
|
24027
|
-
|
|
24028
|
-
|
|
24029
|
-
|
|
24030
|
-
|
|
24031
|
-
|
|
24032
|
-
|
|
24033
|
-
return undefined;
|
|
24034
|
-
}.bind(this);
|
|
24060
|
+
var _this = this;
|
|
24061
|
+
const thisConfig = this.config;
|
|
24062
|
+
let target, keys, read;
|
|
24063
|
+
const _find = function find() {
|
|
24064
|
+
_newArrowCheck(this, _this);
|
|
24065
|
+
const key = keys.shift();
|
|
24066
|
+
if (key && target && isObjectType(target) && key in target) {
|
|
24067
|
+
target = target[key];
|
|
24068
|
+
return _find();
|
|
24069
|
+
} else if (!key) {
|
|
24070
|
+
return target;
|
|
24071
|
+
}
|
|
24072
|
+
return undefined;
|
|
24073
|
+
}.bind(this);
|
|
24035
24074
|
Object.keys(thisConfig).forEach(function (key) {
|
|
24036
24075
|
_newArrowCheck(this, _this);
|
|
24037
24076
|
target = config;
|
|
@@ -24105,7 +24144,7 @@ function loadConfig(config) {
|
|
|
24105
24144
|
* ]
|
|
24106
24145
|
* })
|
|
24107
24146
|
*/
|
|
24108
|
-
|
|
24147
|
+
let Sparkline = /*#__PURE__*/function (_Plugin) {
|
|
24109
24148
|
_inheritsLoose(Sparkline, _Plugin);
|
|
24110
24149
|
function Sparkline(options) {
|
|
24111
24150
|
var _this = _Plugin.call(this, options) || this;
|
|
@@ -24132,9 +24171,9 @@ var Sparkline = /*#__PURE__*/function (_Plugin) {
|
|
|
24132
24171
|
this.outHandler = this.outHandler.bind(this);
|
|
24133
24172
|
};
|
|
24134
24173
|
_proto.validate = function validate() {
|
|
24135
|
-
|
|
24174
|
+
const $$ = this.$$,
|
|
24136
24175
|
config = this.config;
|
|
24137
|
-
|
|
24176
|
+
let msg = "";
|
|
24138
24177
|
if (!config.selector || !document.querySelector(config.selector)) {
|
|
24139
24178
|
msg = "No holder elements found from given selector option.";
|
|
24140
24179
|
}
|
|
@@ -24146,7 +24185,7 @@ var Sparkline = /*#__PURE__*/function (_Plugin) {
|
|
|
24146
24185
|
}
|
|
24147
24186
|
};
|
|
24148
24187
|
_proto.overrideInternals = function overrideInternals() {
|
|
24149
|
-
|
|
24188
|
+
const $$ = this.$$,
|
|
24150
24189
|
getBarW = $$.getBarW,
|
|
24151
24190
|
getIndices = $$.getIndices;
|
|
24152
24191
|
// override internal methods to positioning bars
|
|
@@ -24158,15 +24197,15 @@ var Sparkline = /*#__PURE__*/function (_Plugin) {
|
|
|
24158
24197
|
};
|
|
24159
24198
|
};
|
|
24160
24199
|
_proto.overrideOptions = function overrideOptions() {
|
|
24161
|
-
var _this2 = this
|
|
24162
|
-
|
|
24200
|
+
var _this2 = this;
|
|
24201
|
+
const config = this.$$.config;
|
|
24163
24202
|
config.legend_show = !1;
|
|
24164
24203
|
config.resize_auto = !1;
|
|
24165
24204
|
config.axis_x_show = !1;
|
|
24166
24205
|
|
|
24167
24206
|
// set default axes padding
|
|
24168
24207
|
if (config.padding !== !1) {
|
|
24169
|
-
|
|
24208
|
+
const hasOption = function (o) {
|
|
24170
24209
|
_newArrowCheck(this, _this2);
|
|
24171
24210
|
return Object.keys(o || {}).length > 0;
|
|
24172
24211
|
}.bind(this);
|
|
@@ -24184,8 +24223,8 @@ var Sparkline = /*#__PURE__*/function (_Plugin) {
|
|
|
24184
24223
|
config.axis_y_show = !1;
|
|
24185
24224
|
if (!config.tooltip_position) {
|
|
24186
24225
|
config.tooltip_position = function (data, width, height) {
|
|
24187
|
-
|
|
24188
|
-
|
|
24226
|
+
const event = this.internal.state.event;
|
|
24227
|
+
let top = event.pageY - height * 1.35,
|
|
24189
24228
|
left = event.pageX - width / 2;
|
|
24190
24229
|
if (top < 0) {
|
|
24191
24230
|
top = 0;
|
|
@@ -24201,14 +24240,15 @@ var Sparkline = /*#__PURE__*/function (_Plugin) {
|
|
|
24201
24240
|
}
|
|
24202
24241
|
};
|
|
24203
24242
|
_proto.$init = function $init() {
|
|
24204
|
-
var _$el$tooltip
|
|
24205
|
-
|
|
24243
|
+
var _$el$tooltip;
|
|
24244
|
+
const $el = this.$$.$el;
|
|
24245
|
+
|
|
24206
24246
|
// make disable-ish main chart element
|
|
24207
24247
|
$el.chart.style("width", "0").style("height", "0").style("pointer-events", "none");
|
|
24208
24248
|
((_$el$tooltip = $el.tooltip) == null ? void 0 : _$el$tooltip.node()) && document.body.appendChild($el.tooltip.node());
|
|
24209
24249
|
};
|
|
24210
24250
|
_proto.$afterInit = function $afterInit() {
|
|
24211
|
-
|
|
24251
|
+
const $$ = this.$$;
|
|
24212
24252
|
$$.$el.svg.attr("style", null).style("width", "0").style("height", "0");
|
|
24213
24253
|
this.bindEvents(!0);
|
|
24214
24254
|
}
|
|
@@ -24223,12 +24263,12 @@ var Sparkline = /*#__PURE__*/function (_Plugin) {
|
|
|
24223
24263
|
if (bind === void 0) {
|
|
24224
24264
|
bind = !0;
|
|
24225
24265
|
}
|
|
24226
|
-
|
|
24266
|
+
const config = this.$$.config;
|
|
24227
24267
|
if (config.interaction_enabled && config.tooltip_show) {
|
|
24228
|
-
|
|
24268
|
+
const method = (bind ? "add" : "remove") + "EventListener";
|
|
24229
24269
|
this.element.forEach(function (el) {
|
|
24230
24270
|
_newArrowCheck(this, _this3);
|
|
24231
|
-
|
|
24271
|
+
const svg = el.querySelector("svg");
|
|
24232
24272
|
svg[method]("mouseover", this.overHandler);
|
|
24233
24273
|
svg[method]("mousemove", this.moveHandler);
|
|
24234
24274
|
svg[method]("mouseout", this.outHandler);
|
|
@@ -24236,14 +24276,13 @@ var Sparkline = /*#__PURE__*/function (_Plugin) {
|
|
|
24236
24276
|
}
|
|
24237
24277
|
};
|
|
24238
24278
|
_proto.overHandler = function overHandler(e) {
|
|
24239
|
-
|
|
24279
|
+
const $$ = this.$$,
|
|
24240
24280
|
eventReceiver = $$.state.eventReceiver;
|
|
24241
24281
|
eventReceiver.rect = e.target.getBoundingClientRect();
|
|
24242
24282
|
};
|
|
24243
24283
|
_proto.moveHandler = function moveHandler(e) {
|
|
24244
|
-
var _$$$api$data,
|
|
24245
|
-
|
|
24246
|
-
$$ = this.$$,
|
|
24284
|
+
var _$$$api$data, _data$values;
|
|
24285
|
+
const $$ = this.$$,
|
|
24247
24286
|
index = $$.getDataIndexFromEvent(e),
|
|
24248
24287
|
data = (_$$$api$data = $$.api.data(e.target.__id)) == null ? void 0 : _$$$api$data[0],
|
|
24249
24288
|
d = data == null || (_data$values = data.values) == null ? void 0 : _data$values[index];
|
|
@@ -24251,30 +24290,30 @@ var Sparkline = /*#__PURE__*/function (_Plugin) {
|
|
|
24251
24290
|
d.name = d.id;
|
|
24252
24291
|
}
|
|
24253
24292
|
$$.state.event = e;
|
|
24254
|
-
if ($$.
|
|
24293
|
+
if ($$.isPointFocusOnly() && d) {
|
|
24255
24294
|
$$.showCircleFocus == null || $$.showCircleFocus([d]);
|
|
24256
24295
|
}
|
|
24257
24296
|
$$.setExpand(index, data.id, !0);
|
|
24258
24297
|
$$.showTooltip([d], e.target);
|
|
24259
24298
|
};
|
|
24260
24299
|
_proto.outHandler = function outHandler(e) {
|
|
24261
|
-
|
|
24300
|
+
const $$ = this.$$;
|
|
24262
24301
|
$$.state.event = e;
|
|
24263
|
-
$$.
|
|
24302
|
+
$$.isPointFocusOnly() ? $$.hideCircleFocus() : $$.unexpandCircles();
|
|
24264
24303
|
$$.hideTooltip();
|
|
24265
24304
|
};
|
|
24266
24305
|
_proto.$redraw = function $redraw() {
|
|
24267
24306
|
var _$el$chart$html$match,
|
|
24268
|
-
_this4 = this
|
|
24269
|
-
|
|
24270
|
-
$el = $$.$el
|
|
24271
|
-
|
|
24272
|
-
|
|
24307
|
+
_this4 = this;
|
|
24308
|
+
const $$ = this.$$,
|
|
24309
|
+
$el = $$.$el;
|
|
24310
|
+
let el = this.element;
|
|
24311
|
+
const data = $$.api.data(),
|
|
24273
24312
|
svgWrapper = (_$el$chart$html$match = $el.chart.html().match(/<svg[^>]*>/)) == null ? void 0 : _$el$chart$html$match[0];
|
|
24274
24313
|
// append sparkline holder if is less than the data length
|
|
24275
24314
|
if (el.length < data.length) {
|
|
24276
|
-
|
|
24277
|
-
for (
|
|
24315
|
+
const chart = $el.chart.node();
|
|
24316
|
+
for (let i = data.length - el.length; i > 0; i--) {
|
|
24278
24317
|
chart.parentNode.insertBefore(el[0].cloneNode(), chart.nextSibling);
|
|
24279
24318
|
}
|
|
24280
24319
|
this.element = document.querySelectorAll(this.config.selector);
|
|
@@ -24285,9 +24324,9 @@ var Sparkline = /*#__PURE__*/function (_Plugin) {
|
|
|
24285
24324
|
return v.id;
|
|
24286
24325
|
}.bind(this)).forEach(function (id, i) {
|
|
24287
24326
|
_newArrowCheck(this, _this4);
|
|
24288
|
-
|
|
24327
|
+
const selector = "." + $COMMON.target + "-" + id,
|
|
24289
24328
|
shape = $el.main.selectAll(selector);
|
|
24290
|
-
|
|
24329
|
+
let svg = el[i].querySelector("svg");
|
|
24291
24330
|
if (!svg) {
|
|
24292
24331
|
el[i].innerHTML = svgWrapper + "</svg>";
|
|
24293
24332
|
svg = el[i].querySelector("svg");
|