billboard.js 3.13.0 → 3.14.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 +1 -1
- package/dist/billboard.css +1 -1
- package/dist/billboard.js +349 -176
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +10 -10
- package/dist/billboard.pkgd.js +572 -399
- package/dist/billboard.pkgd.min.js +18 -18
- package/dist/plugin/billboardjs-plugin-bubblecompare.js +7 -4
- package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-sparkline.js +37 -11
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +3 -3
- package/dist/plugin/billboardjs-plugin-stanford.js +41 -15
- package/dist/plugin/billboardjs-plugin-stanford.min.js +3 -3
- package/dist/plugin/billboardjs-plugin-tableview.js +37 -11
- package/dist/plugin/billboardjs-plugin-tableview.min.js +6 -6
- package/dist/plugin/billboardjs-plugin-textoverlap.js +36 -10
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +3 -3
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.js +50 -50
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +138 -115
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +6 -6
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +178 -155
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +11 -11
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +138 -115
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +150 -127
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +7 -7
- package/dist/theme/dark.css +1 -1
- package/dist/theme/dark.min.css +1 -1
- package/dist/theme/datalab.css +1 -1
- package/dist/theme/datalab.min.css +1 -1
- package/dist/theme/graph.css +1 -1
- package/dist/theme/graph.min.css +1 -1
- package/dist/theme/insight.css +1 -1
- package/dist/theme/insight.min.css +1 -1
- package/dist/theme/modern.css +1 -1
- package/dist/theme/modern.min.css +1 -1
- package/dist-esm/billboard.js +267 -67
- package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +3 -3
- package/dist-esm/plugin/billboardjs-plugin-sparkline.js +3 -3
- package/dist-esm/plugin/billboardjs-plugin-stanford.js +3 -3
- package/dist-esm/plugin/billboardjs-plugin-tableview.js +3 -3
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +3 -3
- package/package.json +32 -31
- package/src/Chart/Chart.ts +11 -0
- package/src/ChartInternal/Axis/AxisRenderer.ts +6 -2
- package/src/ChartInternal/Axis/AxisRendererHelper.ts +13 -8
- package/src/ChartInternal/ChartInternal.ts +9 -7
- package/src/ChartInternal/data/data.ts +18 -4
- package/src/ChartInternal/data/load.ts +4 -0
- package/src/ChartInternal/interactions/eventrect.ts +11 -7
- package/src/ChartInternal/interactions/interaction.ts +21 -6
- package/src/ChartInternal/interactions/zoom.ts +11 -3
- package/src/ChartInternal/internals/legend.ts +16 -6
- package/src/ChartInternal/internals/size.ts +10 -5
- package/src/ChartInternal/internals/tooltip.ts +54 -2
- package/src/ChartInternal/internals/type.ts +2 -1
- package/src/ChartInternal/shape/arc.ts +2 -1
- package/src/ChartInternal/shape/funnel.ts +4 -2
- package/src/ChartInternal/shape/radar.ts +5 -1
- package/src/ChartInternal/shape/treemap.ts +4 -2
- package/src/config/Options/axis/axis.ts +30 -0
- package/src/config/Options/axis/y2.ts +13 -0
- package/src/config/Options/common/legend.ts +6 -3
- package/src/config/Options/common/main.ts +18 -7
- package/src/config/Options/interaction/interaction.ts +8 -2
- package/src/module/error.ts +11 -7
- package/src/module/util.ts +61 -7
- package/types/axis.d.ts +7 -0
- package/types/options.d.ts +15 -5
package/dist/billboard.pkgd.js
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.
|
|
8
|
+
* @version 3.14.0-next.2
|
|
9
9
|
*
|
|
10
10
|
* All-in-one packaged file for ease use of 'billboard.js' with dependant d3.js modules & polyfills.
|
|
11
|
-
* - @types/d3-selection ^3.0.
|
|
12
|
-
* - @types/d3-transition ^3.0.
|
|
11
|
+
* - @types/d3-selection ^3.0.11
|
|
12
|
+
* - @types/d3-transition ^3.0.9
|
|
13
13
|
* - d3-axis ^3.0.0
|
|
14
14
|
* - d3-brush ^3.0.0
|
|
15
15
|
* - d3-drag ^3.0.0
|
|
@@ -19377,7 +19377,7 @@ __webpack_require__.d(resolver_shape_namespaceObject, {
|
|
|
19377
19377
|
treemap: function() { return resolver_shape_treemap; }
|
|
19378
19378
|
});
|
|
19379
19379
|
|
|
19380
|
-
;//
|
|
19380
|
+
;// ./node_modules/d3-selection/src/selector.js
|
|
19381
19381
|
function none() {
|
|
19382
19382
|
}
|
|
19383
19383
|
/* harmony default export */ function selector(selector) {
|
|
@@ -19386,7 +19386,7 @@ function none() {
|
|
|
19386
19386
|
};
|
|
19387
19387
|
}
|
|
19388
19388
|
|
|
19389
|
-
;//
|
|
19389
|
+
;// ./node_modules/d3-selection/src/selection/select.js
|
|
19390
19390
|
|
|
19391
19391
|
|
|
19392
19392
|
/* harmony default export */ function selection_select(select) {
|
|
@@ -19402,12 +19402,12 @@ function none() {
|
|
|
19402
19402
|
return new Selection(subgroups, this._parents);
|
|
19403
19403
|
}
|
|
19404
19404
|
|
|
19405
|
-
;//
|
|
19405
|
+
;// ./node_modules/d3-selection/src/array.js
|
|
19406
19406
|
function array(x) {
|
|
19407
19407
|
return x == null ? [] : Array.isArray(x) ? x : Array.from(x);
|
|
19408
19408
|
}
|
|
19409
19409
|
|
|
19410
|
-
;//
|
|
19410
|
+
;// ./node_modules/d3-selection/src/selectorAll.js
|
|
19411
19411
|
function empty() {
|
|
19412
19412
|
return [];
|
|
19413
19413
|
}
|
|
@@ -19417,7 +19417,7 @@ function empty() {
|
|
|
19417
19417
|
};
|
|
19418
19418
|
}
|
|
19419
19419
|
|
|
19420
|
-
;//
|
|
19420
|
+
;// ./node_modules/d3-selection/src/selection/selectAll.js
|
|
19421
19421
|
|
|
19422
19422
|
|
|
19423
19423
|
|
|
@@ -19440,7 +19440,7 @@ function arrayAll(select) {
|
|
|
19440
19440
|
return new Selection(subgroups, parents);
|
|
19441
19441
|
}
|
|
19442
19442
|
|
|
19443
|
-
;//
|
|
19443
|
+
;// ./node_modules/d3-selection/src/matcher.js
|
|
19444
19444
|
/* harmony default export */ function matcher(selector) {
|
|
19445
19445
|
return function() {
|
|
19446
19446
|
return this.matches(selector);
|
|
@@ -19452,7 +19452,7 @@ function childMatcher(selector) {
|
|
|
19452
19452
|
};
|
|
19453
19453
|
}
|
|
19454
19454
|
|
|
19455
|
-
;//
|
|
19455
|
+
;// ./node_modules/d3-selection/src/selection/selectChild.js
|
|
19456
19456
|
|
|
19457
19457
|
var find = Array.prototype.find;
|
|
19458
19458
|
function childFind(match) {
|
|
@@ -19467,7 +19467,7 @@ function childFirst() {
|
|
|
19467
19467
|
return this.select(match == null ? childFirst : childFind(typeof match === "function" ? match : childMatcher(match)));
|
|
19468
19468
|
}
|
|
19469
19469
|
|
|
19470
|
-
;//
|
|
19470
|
+
;// ./node_modules/d3-selection/src/selection/selectChildren.js
|
|
19471
19471
|
|
|
19472
19472
|
var filter = Array.prototype.filter;
|
|
19473
19473
|
function children() {
|
|
@@ -19482,7 +19482,7 @@ function childrenFilter(match) {
|
|
|
19482
19482
|
return this.selectAll(match == null ? children : childrenFilter(typeof match === "function" ? match : childMatcher(match)));
|
|
19483
19483
|
}
|
|
19484
19484
|
|
|
19485
|
-
;//
|
|
19485
|
+
;// ./node_modules/d3-selection/src/selection/filter.js
|
|
19486
19486
|
|
|
19487
19487
|
|
|
19488
19488
|
/* harmony default export */ function selection_filter(match) {
|
|
@@ -19497,12 +19497,12 @@ function childrenFilter(match) {
|
|
|
19497
19497
|
return new Selection(subgroups, this._parents);
|
|
19498
19498
|
}
|
|
19499
19499
|
|
|
19500
|
-
;//
|
|
19500
|
+
;// ./node_modules/d3-selection/src/selection/sparse.js
|
|
19501
19501
|
/* harmony default export */ function sparse(update) {
|
|
19502
19502
|
return new Array(update.length);
|
|
19503
19503
|
}
|
|
19504
19504
|
|
|
19505
|
-
;//
|
|
19505
|
+
;// ./node_modules/d3-selection/src/selection/enter.js
|
|
19506
19506
|
|
|
19507
19507
|
|
|
19508
19508
|
/* harmony default export */ function enter() {
|
|
@@ -19531,14 +19531,14 @@ EnterNode.prototype = {
|
|
|
19531
19531
|
}
|
|
19532
19532
|
};
|
|
19533
19533
|
|
|
19534
|
-
;//
|
|
19534
|
+
;// ./node_modules/d3-selection/src/constant.js
|
|
19535
19535
|
/* harmony default export */ function constant(x) {
|
|
19536
19536
|
return function() {
|
|
19537
19537
|
return x;
|
|
19538
19538
|
};
|
|
19539
19539
|
}
|
|
19540
19540
|
|
|
19541
|
-
;//
|
|
19541
|
+
;// ./node_modules/d3-selection/src/selection/data.js
|
|
19542
19542
|
|
|
19543
19543
|
|
|
19544
19544
|
|
|
@@ -19613,14 +19613,14 @@ function arraylike(data) {
|
|
|
19613
19613
|
return typeof data === "object" && "length" in data ? data : Array.from(data);
|
|
19614
19614
|
}
|
|
19615
19615
|
|
|
19616
|
-
;//
|
|
19616
|
+
;// ./node_modules/d3-selection/src/selection/exit.js
|
|
19617
19617
|
|
|
19618
19618
|
|
|
19619
19619
|
/* harmony default export */ function exit() {
|
|
19620
19620
|
return new Selection(this._exit || this._groups.map(sparse), this._parents);
|
|
19621
19621
|
}
|
|
19622
19622
|
|
|
19623
|
-
;//
|
|
19623
|
+
;// ./node_modules/d3-selection/src/selection/join.js
|
|
19624
19624
|
/* harmony default export */ function join(onenter, onupdate, onexit) {
|
|
19625
19625
|
var enter = this.enter(), update = this, exit = this.exit();
|
|
19626
19626
|
if (typeof onenter === "function") {
|
|
@@ -19638,7 +19638,7 @@ function arraylike(data) {
|
|
|
19638
19638
|
return enter && update ? enter.merge(update).order() : update;
|
|
19639
19639
|
}
|
|
19640
19640
|
|
|
19641
|
-
;//
|
|
19641
|
+
;// ./node_modules/d3-selection/src/selection/merge.js
|
|
19642
19642
|
|
|
19643
19643
|
/* harmony default export */ function merge(context) {
|
|
19644
19644
|
var selection = context.selection ? context.selection() : context;
|
|
@@ -19655,7 +19655,7 @@ function arraylike(data) {
|
|
|
19655
19655
|
return new Selection(merges, this._parents);
|
|
19656
19656
|
}
|
|
19657
19657
|
|
|
19658
|
-
;//
|
|
19658
|
+
;// ./node_modules/d3-selection/src/selection/order.js
|
|
19659
19659
|
/* harmony default export */ function order() {
|
|
19660
19660
|
for (var groups = this._groups, j = -1, m = groups.length; ++j < m; ) {
|
|
19661
19661
|
for (var group = groups[j], i = group.length - 1, next = group[i], node; --i >= 0; ) {
|
|
@@ -19668,7 +19668,7 @@ function arraylike(data) {
|
|
|
19668
19668
|
return this;
|
|
19669
19669
|
}
|
|
19670
19670
|
|
|
19671
|
-
;//
|
|
19671
|
+
;// ./node_modules/d3-selection/src/selection/sort.js
|
|
19672
19672
|
|
|
19673
19673
|
/* harmony default export */ function sort(compare) {
|
|
19674
19674
|
if (!compare) compare = ascending;
|
|
@@ -19689,7 +19689,7 @@ function ascending(a, b) {
|
|
|
19689
19689
|
return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
|
|
19690
19690
|
}
|
|
19691
19691
|
|
|
19692
|
-
;//
|
|
19692
|
+
;// ./node_modules/d3-selection/src/selection/call.js
|
|
19693
19693
|
/* harmony default export */ function call() {
|
|
19694
19694
|
var callback = arguments[0];
|
|
19695
19695
|
arguments[0] = this;
|
|
@@ -19697,12 +19697,12 @@ function ascending(a, b) {
|
|
|
19697
19697
|
return this;
|
|
19698
19698
|
}
|
|
19699
19699
|
|
|
19700
|
-
;//
|
|
19700
|
+
;// ./node_modules/d3-selection/src/selection/nodes.js
|
|
19701
19701
|
/* harmony default export */ function nodes() {
|
|
19702
19702
|
return Array.from(this);
|
|
19703
19703
|
}
|
|
19704
19704
|
|
|
19705
|
-
;//
|
|
19705
|
+
;// ./node_modules/d3-selection/src/selection/node.js
|
|
19706
19706
|
/* harmony default export */ function node() {
|
|
19707
19707
|
for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {
|
|
19708
19708
|
for (var group = groups[j], i = 0, n = group.length; i < n; ++i) {
|
|
@@ -19713,19 +19713,19 @@ function ascending(a, b) {
|
|
|
19713
19713
|
return null;
|
|
19714
19714
|
}
|
|
19715
19715
|
|
|
19716
|
-
;//
|
|
19716
|
+
;// ./node_modules/d3-selection/src/selection/size.js
|
|
19717
19717
|
/* harmony default export */ function size() {
|
|
19718
19718
|
let size = 0;
|
|
19719
19719
|
for (const node of this) ++size;
|
|
19720
19720
|
return size;
|
|
19721
19721
|
}
|
|
19722
19722
|
|
|
19723
|
-
;//
|
|
19723
|
+
;// ./node_modules/d3-selection/src/selection/empty.js
|
|
19724
19724
|
/* harmony default export */ function selection_empty() {
|
|
19725
19725
|
return !this.node();
|
|
19726
19726
|
}
|
|
19727
19727
|
|
|
19728
|
-
;//
|
|
19728
|
+
;// ./node_modules/d3-selection/src/selection/each.js
|
|
19729
19729
|
/* harmony default export */ function each(callback) {
|
|
19730
19730
|
for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {
|
|
19731
19731
|
for (var group = groups[j], i = 0, n = group.length, node; i < n; ++i) {
|
|
@@ -19735,7 +19735,7 @@ function ascending(a, b) {
|
|
|
19735
19735
|
return this;
|
|
19736
19736
|
}
|
|
19737
19737
|
|
|
19738
|
-
;//
|
|
19738
|
+
;// ./node_modules/d3-selection/src/namespaces.js
|
|
19739
19739
|
var xhtml = "http://www.w3.org/1999/xhtml";
|
|
19740
19740
|
/* harmony default export */ var namespaces = ({
|
|
19741
19741
|
svg: "http://www.w3.org/2000/svg",
|
|
@@ -19745,7 +19745,7 @@ var xhtml = "http://www.w3.org/1999/xhtml";
|
|
|
19745
19745
|
xmlns: "http://www.w3.org/2000/xmlns/"
|
|
19746
19746
|
});
|
|
19747
19747
|
|
|
19748
|
-
;//
|
|
19748
|
+
;// ./node_modules/d3-selection/src/namespace.js
|
|
19749
19749
|
|
|
19750
19750
|
/* harmony default export */ function namespace(name) {
|
|
19751
19751
|
var prefix = name += "", i = prefix.indexOf(":");
|
|
@@ -19753,7 +19753,7 @@ var xhtml = "http://www.w3.org/1999/xhtml";
|
|
|
19753
19753
|
return namespaces.hasOwnProperty(prefix) ? { space: namespaces[prefix], local: name } : name;
|
|
19754
19754
|
}
|
|
19755
19755
|
|
|
19756
|
-
;//
|
|
19756
|
+
;// ./node_modules/d3-selection/src/selection/attr.js
|
|
19757
19757
|
|
|
19758
19758
|
function attrRemove(name) {
|
|
19759
19759
|
return function() {
|
|
@@ -19798,12 +19798,12 @@ function attrFunctionNS(fullname, value) {
|
|
|
19798
19798
|
return this.each((value == null ? fullname.local ? attrRemoveNS : attrRemove : typeof value === "function" ? fullname.local ? attrFunctionNS : attrFunction : fullname.local ? attrConstantNS : attrConstant)(fullname, value));
|
|
19799
19799
|
}
|
|
19800
19800
|
|
|
19801
|
-
;//
|
|
19801
|
+
;// ./node_modules/d3-selection/src/window.js
|
|
19802
19802
|
/* harmony default export */ function src_window(node) {
|
|
19803
19803
|
return node.ownerDocument && node.ownerDocument.defaultView || node.document && node || node.defaultView;
|
|
19804
19804
|
}
|
|
19805
19805
|
|
|
19806
|
-
;//
|
|
19806
|
+
;// ./node_modules/d3-selection/src/selection/style.js
|
|
19807
19807
|
|
|
19808
19808
|
function styleRemove(name) {
|
|
19809
19809
|
return function() {
|
|
@@ -19829,7 +19829,7 @@ function styleValue(node, name) {
|
|
|
19829
19829
|
return node.style.getPropertyValue(name) || src_window(node).getComputedStyle(node, null).getPropertyValue(name);
|
|
19830
19830
|
}
|
|
19831
19831
|
|
|
19832
|
-
;//
|
|
19832
|
+
;// ./node_modules/d3-selection/src/selection/property.js
|
|
19833
19833
|
function propertyRemove(name) {
|
|
19834
19834
|
return function() {
|
|
19835
19835
|
delete this[name];
|
|
@@ -19851,7 +19851,7 @@ function propertyFunction(name, value) {
|
|
|
19851
19851
|
return arguments.length > 1 ? this.each((value == null ? propertyRemove : typeof value === "function" ? propertyFunction : propertyConstant)(name, value)) : this.node()[name];
|
|
19852
19852
|
}
|
|
19853
19853
|
|
|
19854
|
-
;//
|
|
19854
|
+
;// ./node_modules/d3-selection/src/selection/classed.js
|
|
19855
19855
|
function classArray(string) {
|
|
19856
19856
|
return string.trim().split(/^|\s+/);
|
|
19857
19857
|
}
|
|
@@ -19914,7 +19914,7 @@ function classedFunction(names, value) {
|
|
|
19914
19914
|
return this.each((typeof value === "function" ? classedFunction : value ? classedTrue : classedFalse)(names, value));
|
|
19915
19915
|
}
|
|
19916
19916
|
|
|
19917
|
-
;//
|
|
19917
|
+
;// ./node_modules/d3-selection/src/selection/text.js
|
|
19918
19918
|
function textRemove() {
|
|
19919
19919
|
this.textContent = "";
|
|
19920
19920
|
}
|
|
@@ -19933,7 +19933,7 @@ function textFunction(value) {
|
|
|
19933
19933
|
return arguments.length ? this.each(value == null ? textRemove : (typeof value === "function" ? textFunction : textConstant)(value)) : this.node().textContent;
|
|
19934
19934
|
}
|
|
19935
19935
|
|
|
19936
|
-
;//
|
|
19936
|
+
;// ./node_modules/d3-selection/src/selection/html.js
|
|
19937
19937
|
function htmlRemove() {
|
|
19938
19938
|
this.innerHTML = "";
|
|
19939
19939
|
}
|
|
@@ -19952,7 +19952,7 @@ function htmlFunction(value) {
|
|
|
19952
19952
|
return arguments.length ? this.each(value == null ? htmlRemove : (typeof value === "function" ? htmlFunction : htmlConstant)(value)) : this.node().innerHTML;
|
|
19953
19953
|
}
|
|
19954
19954
|
|
|
19955
|
-
;//
|
|
19955
|
+
;// ./node_modules/d3-selection/src/selection/raise.js
|
|
19956
19956
|
function raise() {
|
|
19957
19957
|
if (this.nextSibling) this.parentNode.appendChild(this);
|
|
19958
19958
|
}
|
|
@@ -19960,7 +19960,7 @@ function raise() {
|
|
|
19960
19960
|
return this.each(raise);
|
|
19961
19961
|
}
|
|
19962
19962
|
|
|
19963
|
-
;//
|
|
19963
|
+
;// ./node_modules/d3-selection/src/selection/lower.js
|
|
19964
19964
|
function lower() {
|
|
19965
19965
|
if (this.previousSibling) this.parentNode.insertBefore(this, this.parentNode.firstChild);
|
|
19966
19966
|
}
|
|
@@ -19968,7 +19968,7 @@ function lower() {
|
|
|
19968
19968
|
return this.each(lower);
|
|
19969
19969
|
}
|
|
19970
19970
|
|
|
19971
|
-
;//
|
|
19971
|
+
;// ./node_modules/d3-selection/src/creator.js
|
|
19972
19972
|
|
|
19973
19973
|
|
|
19974
19974
|
function creatorInherit(name) {
|
|
@@ -19987,7 +19987,7 @@ function creatorFixed(fullname) {
|
|
|
19987
19987
|
return (fullname.local ? creatorFixed : creatorInherit)(fullname);
|
|
19988
19988
|
}
|
|
19989
19989
|
|
|
19990
|
-
;//
|
|
19990
|
+
;// ./node_modules/d3-selection/src/selection/append.js
|
|
19991
19991
|
|
|
19992
19992
|
/* harmony default export */ function append(name) {
|
|
19993
19993
|
var create = typeof name === "function" ? name : creator(name);
|
|
@@ -19996,7 +19996,7 @@ function creatorFixed(fullname) {
|
|
|
19996
19996
|
});
|
|
19997
19997
|
}
|
|
19998
19998
|
|
|
19999
|
-
;//
|
|
19999
|
+
;// ./node_modules/d3-selection/src/selection/insert.js
|
|
20000
20000
|
|
|
20001
20001
|
|
|
20002
20002
|
function constantNull() {
|
|
@@ -20009,7 +20009,7 @@ function constantNull() {
|
|
|
20009
20009
|
});
|
|
20010
20010
|
}
|
|
20011
20011
|
|
|
20012
|
-
;//
|
|
20012
|
+
;// ./node_modules/d3-selection/src/selection/remove.js
|
|
20013
20013
|
function remove() {
|
|
20014
20014
|
var parent = this.parentNode;
|
|
20015
20015
|
if (parent) parent.removeChild(this);
|
|
@@ -20018,7 +20018,7 @@ function remove() {
|
|
|
20018
20018
|
return this.each(remove);
|
|
20019
20019
|
}
|
|
20020
20020
|
|
|
20021
|
-
;//
|
|
20021
|
+
;// ./node_modules/d3-selection/src/selection/clone.js
|
|
20022
20022
|
function selection_cloneShallow() {
|
|
20023
20023
|
var clone = this.cloneNode(false), parent = this.parentNode;
|
|
20024
20024
|
return parent ? parent.insertBefore(clone, this.nextSibling) : clone;
|
|
@@ -20031,12 +20031,12 @@ function selection_cloneDeep() {
|
|
|
20031
20031
|
return this.select(deep ? selection_cloneDeep : selection_cloneShallow);
|
|
20032
20032
|
}
|
|
20033
20033
|
|
|
20034
|
-
;//
|
|
20034
|
+
;// ./node_modules/d3-selection/src/selection/datum.js
|
|
20035
20035
|
/* harmony default export */ function selection_datum(value) {
|
|
20036
20036
|
return arguments.length ? this.property("__data__", value) : this.node().__data__;
|
|
20037
20037
|
}
|
|
20038
20038
|
|
|
20039
|
-
;//
|
|
20039
|
+
;// ./node_modules/d3-selection/src/selection/on.js
|
|
20040
20040
|
function contextListener(listener) {
|
|
20041
20041
|
return function(event) {
|
|
20042
20042
|
listener.call(this, event, this.__data__);
|
|
@@ -20099,7 +20099,7 @@ function onAdd(typename, value, options) {
|
|
|
20099
20099
|
return this;
|
|
20100
20100
|
}
|
|
20101
20101
|
|
|
20102
|
-
;//
|
|
20102
|
+
;// ./node_modules/d3-selection/src/selection/dispatch.js
|
|
20103
20103
|
|
|
20104
20104
|
function dispatchEvent(node, type, params) {
|
|
20105
20105
|
var window = src_window(node), event = window.CustomEvent;
|
|
@@ -20126,7 +20126,7 @@ function dispatchFunction(type, params) {
|
|
|
20126
20126
|
return this.each((typeof params === "function" ? dispatchFunction : dispatchConstant)(type, params));
|
|
20127
20127
|
}
|
|
20128
20128
|
|
|
20129
|
-
;//
|
|
20129
|
+
;// ./node_modules/d3-selection/src/selection/iterator.js
|
|
20130
20130
|
/* harmony default export */ function* iterator() {
|
|
20131
20131
|
for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {
|
|
20132
20132
|
for (var group = groups[j], i = 0, n = group.length, node; i < n; ++i) {
|
|
@@ -20135,7 +20135,7 @@ function dispatchFunction(type, params) {
|
|
|
20135
20135
|
}
|
|
20136
20136
|
}
|
|
20137
20137
|
|
|
20138
|
-
;//
|
|
20138
|
+
;// ./node_modules/d3-selection/src/selection/index.js
|
|
20139
20139
|
|
|
20140
20140
|
|
|
20141
20141
|
|
|
@@ -20221,13 +20221,13 @@ Selection.prototype = selection.prototype = {
|
|
|
20221
20221
|
};
|
|
20222
20222
|
/* harmony default export */ var src_selection = (selection);
|
|
20223
20223
|
|
|
20224
|
-
;//
|
|
20224
|
+
;// ./node_modules/d3-selection/src/select.js
|
|
20225
20225
|
|
|
20226
20226
|
/* harmony default export */ function src_select(selector) {
|
|
20227
20227
|
return typeof selector === "string" ? new Selection([[document.querySelector(selector)]], [document.documentElement]) : new Selection([[selector]], root);
|
|
20228
20228
|
}
|
|
20229
20229
|
|
|
20230
|
-
;//
|
|
20230
|
+
;// ./node_modules/d3-time/src/interval.js
|
|
20231
20231
|
const t0 = /* @__PURE__ */ new Date(), t1 = /* @__PURE__ */ new Date();
|
|
20232
20232
|
function timeInterval(floori, offseti, count, field) {
|
|
20233
20233
|
function interval(date) {
|
|
@@ -20287,7 +20287,7 @@ function timeInterval(floori, offseti, count, field) {
|
|
|
20287
20287
|
return interval;
|
|
20288
20288
|
}
|
|
20289
20289
|
|
|
20290
|
-
;//
|
|
20290
|
+
;// ./node_modules/d3-time/src/duration.js
|
|
20291
20291
|
const durationSecond = 1e3;
|
|
20292
20292
|
const durationMinute = durationSecond * 60;
|
|
20293
20293
|
const durationHour = durationMinute * 60;
|
|
@@ -20296,7 +20296,7 @@ const durationWeek = durationDay * 7;
|
|
|
20296
20296
|
const durationMonth = durationDay * 30;
|
|
20297
20297
|
const durationYear = durationDay * 365;
|
|
20298
20298
|
|
|
20299
|
-
;//
|
|
20299
|
+
;// ./node_modules/d3-time/src/week.js
|
|
20300
20300
|
|
|
20301
20301
|
|
|
20302
20302
|
function timeWeekday(i) {
|
|
@@ -20348,7 +20348,7 @@ const utcThursdays = utcThursday.range;
|
|
|
20348
20348
|
const utcFridays = utcFriday.range;
|
|
20349
20349
|
const utcSaturdays = utcSaturday.range;
|
|
20350
20350
|
|
|
20351
|
-
;//
|
|
20351
|
+
;// ./node_modules/d3-time/src/day.js
|
|
20352
20352
|
|
|
20353
20353
|
|
|
20354
20354
|
const timeDay = timeInterval(
|
|
@@ -20379,7 +20379,7 @@ const unixDay = timeInterval((date) => {
|
|
|
20379
20379
|
});
|
|
20380
20380
|
const unixDays = unixDay.range;
|
|
20381
20381
|
|
|
20382
|
-
;//
|
|
20382
|
+
;// ./node_modules/d3-time/src/year.js
|
|
20383
20383
|
|
|
20384
20384
|
const timeYear = timeInterval((date) => {
|
|
20385
20385
|
date.setMonth(0, 1);
|
|
@@ -20422,7 +20422,7 @@ utcYear.every = (k) => {
|
|
|
20422
20422
|
};
|
|
20423
20423
|
const utcYears = utcYear.range;
|
|
20424
20424
|
|
|
20425
|
-
;//
|
|
20425
|
+
;// ./node_modules/d3-time-format/src/locale.js
|
|
20426
20426
|
|
|
20427
20427
|
function localDate(d) {
|
|
20428
20428
|
if (0 <= d.y && d.y < 100) {
|
|
@@ -20961,7 +20961,7 @@ function formatUnixTimestampSeconds(d) {
|
|
|
20961
20961
|
return Math.floor(+d / 1e3);
|
|
20962
20962
|
}
|
|
20963
20963
|
|
|
20964
|
-
;//
|
|
20964
|
+
;// ./node_modules/d3-time-format/src/defaultLocale.js
|
|
20965
20965
|
|
|
20966
20966
|
var locale;
|
|
20967
20967
|
var timeFormat;
|
|
@@ -20987,7 +20987,7 @@ function defaultLocale(definition) {
|
|
|
20987
20987
|
return locale;
|
|
20988
20988
|
}
|
|
20989
20989
|
|
|
20990
|
-
;//
|
|
20990
|
+
;// ./src/config/classes.ts
|
|
20991
20991
|
var __defProp = Object.defineProperty;
|
|
20992
20992
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
20993
20993
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
@@ -21168,7 +21168,7 @@ const $ZOOM = {
|
|
|
21168
21168
|
};
|
|
21169
21169
|
/* harmony default export */ var classes = (__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, $COMMON), $ARC), $AREA), $AXIS), $BAR), $CANDLESTICK), $CIRCLE), $COLOR), $DRAG), $GAUGE), $LEGEND), $LINE), $EVENT), $FOCUS), $FUNNEL), $GRID), $RADAR), $REGION), $SELECT), $SHAPE), $SUBCHART), $TEXT), $TOOLTIP), $TREEMAP), $ZOOM));
|
|
21170
21170
|
|
|
21171
|
-
;//
|
|
21171
|
+
;// ./src/config/Options/common/boost.ts
|
|
21172
21172
|
/* harmony default export */ var boost = ({
|
|
21173
21173
|
/**
|
|
21174
21174
|
* Set boost options
|
|
@@ -21194,7 +21194,7 @@ const $ZOOM = {
|
|
|
21194
21194
|
boost_useWorker: false
|
|
21195
21195
|
});
|
|
21196
21196
|
|
|
21197
|
-
;//
|
|
21197
|
+
;// ./src/config/Options/common/color.ts
|
|
21198
21198
|
/* harmony default export */ var color = ({
|
|
21199
21199
|
/**
|
|
21200
21200
|
* Set color of the data values
|
|
@@ -21276,7 +21276,7 @@ const $ZOOM = {
|
|
|
21276
21276
|
color_onover: void 0
|
|
21277
21277
|
});
|
|
21278
21278
|
|
|
21279
|
-
;//
|
|
21279
|
+
;// ./src/config/Options/common/legend.ts
|
|
21280
21280
|
/* harmony default export */ var legend = ({
|
|
21281
21281
|
/**
|
|
21282
21282
|
* Legend options
|
|
@@ -21390,9 +21390,12 @@ const $ZOOM = {
|
|
|
21390
21390
|
* }
|
|
21391
21391
|
*
|
|
21392
21392
|
* // when set below callback, will disable corresponding default interactions
|
|
21393
|
-
* onclick: function(id) {
|
|
21394
|
-
*
|
|
21395
|
-
*
|
|
21393
|
+
* onclick: function(id, visible) {
|
|
21394
|
+
* // toggle based on the data visibility
|
|
21395
|
+
* this[visible ? "hide" : "show"](id);
|
|
21396
|
+
* },
|
|
21397
|
+
* onover: function(id, visible) { ... },
|
|
21398
|
+
* onout: function(id, visible) { ... },
|
|
21396
21399
|
*
|
|
21397
21400
|
* // set tile's size
|
|
21398
21401
|
* tile: {
|
|
@@ -21445,7 +21448,7 @@ const $ZOOM = {
|
|
|
21445
21448
|
legend_usePoint: false
|
|
21446
21449
|
});
|
|
21447
21450
|
|
|
21448
|
-
;//
|
|
21451
|
+
;// ./src/config/Options/common/main.ts
|
|
21449
21452
|
/* harmony default export */ var main = ({
|
|
21450
21453
|
/**
|
|
21451
21454
|
* Specify the CSS selector or the element which the chart will be set to. D3 selection object can be specified also.<br>
|
|
@@ -21595,24 +21598,32 @@ const $ZOOM = {
|
|
|
21595
21598
|
* @memberof Options
|
|
21596
21599
|
* @type {object}
|
|
21597
21600
|
* @property {object} [resize] resize object
|
|
21598
|
-
* @property {boolean} [resize.auto=true] Set chart resize automatically on viewport changes.
|
|
21601
|
+
* @property {boolean|string} [resize.auto=true] Set chart resize automatically on viewport changes.
|
|
21602
|
+
* - **NOTE:** Available options
|
|
21603
|
+
* - true: Enables automatic resize.
|
|
21604
|
+
* - false: Disables automatic resize.
|
|
21605
|
+
* - "viewBox": Enables automatic resize, and size will be fixed based on the viewbox.
|
|
21599
21606
|
* @property {boolean|number} [resize.timer=true] Set resize timer option.
|
|
21600
|
-
* - **NOTE:**
|
|
21607
|
+
* - **NOTE:** Available options
|
|
21601
21608
|
* - The resize function will be called using:
|
|
21602
21609
|
* - true: `setTimeout()`
|
|
21603
21610
|
* - false: `requestIdleCallback()`
|
|
21604
|
-
* - Given number(delay in ms) value, resize function will be triggered using `
|
|
21611
|
+
* - Given number(delay in ms) value, resize function will be triggered using `setTimeout()` with given delay.
|
|
21612
|
+
* @see [Demo](https://naver.github.io/billboard.js/demo/#ChartOptions.resizeViewBox)
|
|
21605
21613
|
* @example
|
|
21606
21614
|
* resize: {
|
|
21607
21615
|
* auto: false,
|
|
21608
21616
|
*
|
|
21609
|
-
* // set resize
|
|
21617
|
+
* // set resize based on viewBox value
|
|
21618
|
+
* auto: "viewBox",
|
|
21619
|
+
*
|
|
21620
|
+
* // set resize function will be triggered using `setTimeout()`
|
|
21610
21621
|
* timer: true,
|
|
21611
21622
|
*
|
|
21612
21623
|
* // set resize function will be triggered using `requestIdleCallback()`
|
|
21613
21624
|
* timer: false,
|
|
21614
21625
|
*
|
|
21615
|
-
* // set resize function will be triggered using `
|
|
21626
|
+
* // set resize function will be triggered using `setTimeout()` with a delay of `100ms`.
|
|
21616
21627
|
* timer: 100
|
|
21617
21628
|
* }
|
|
21618
21629
|
*/
|
|
@@ -21771,7 +21782,10 @@ const $ZOOM = {
|
|
|
21771
21782
|
* @memberof Options
|
|
21772
21783
|
* @type {object}
|
|
21773
21784
|
* @property {object} [render] render object
|
|
21774
|
-
* @property {boolean} [render.lazy=true] Make to not render at initialization
|
|
21785
|
+
* @property {boolean} [render.lazy=true] Make to not render at initialization.
|
|
21786
|
+
* - **NOTE**:
|
|
21787
|
+
* - Enabled by default when bind element's visibility is hidden.
|
|
21788
|
+
* - When set to `false`, will initialize the chart regardless the bind element's visibility state, but in this case chart can't be guaranteed to be rendered properly.
|
|
21775
21789
|
* @property {boolean} [render.observe=true] Observe bind element's visibility(`display` or `visiblity` inline css property or class value) & render when is visible automatically (for IEs, only works IE11+). When set to **false**, call [`.flush()`](./Chart.html#flush) to render.
|
|
21776
21790
|
* @see [Demo](https://naver.github.io/billboard.js/demo/#ChartOptions.LazyRender)
|
|
21777
21791
|
* @example
|
|
@@ -21839,7 +21853,7 @@ const $ZOOM = {
|
|
|
21839
21853
|
regions: []
|
|
21840
21854
|
});
|
|
21841
21855
|
|
|
21842
|
-
;//
|
|
21856
|
+
;// ./src/config/Options/common/title.ts
|
|
21843
21857
|
/* harmony default export */ var title = ({
|
|
21844
21858
|
/**
|
|
21845
21859
|
* Set title options
|
|
@@ -21880,7 +21894,7 @@ const $ZOOM = {
|
|
|
21880
21894
|
title_position: "center"
|
|
21881
21895
|
});
|
|
21882
21896
|
|
|
21883
|
-
;//
|
|
21897
|
+
;// ./src/config/Options/common/tooltip.ts
|
|
21884
21898
|
/* harmony default export */ var tooltip = ({
|
|
21885
21899
|
/**
|
|
21886
21900
|
* Tooltip options
|
|
@@ -22128,7 +22142,7 @@ const $ZOOM = {
|
|
|
22128
22142
|
tooltip_order: null
|
|
22129
22143
|
});
|
|
22130
22144
|
|
|
22131
|
-
;//
|
|
22145
|
+
;// ./src/config/Options/data/data.ts
|
|
22132
22146
|
/* harmony default export */ var data_data = ({
|
|
22133
22147
|
/**
|
|
22134
22148
|
* Specify the key of x values in the data.<br><br>
|
|
@@ -22985,7 +22999,7 @@ const $ZOOM = {
|
|
|
22985
22999
|
data_empty_label_text: ""
|
|
22986
23000
|
});
|
|
22987
23001
|
|
|
22988
|
-
;//
|
|
23002
|
+
;// ./src/config/Options/interaction/interaction.ts
|
|
22989
23003
|
/* harmony default export */ var interaction = ({
|
|
22990
23004
|
/**
|
|
22991
23005
|
* Interaction options
|
|
@@ -22999,6 +23013,8 @@ const $ZOOM = {
|
|
|
22999
23013
|
* @property {boolean} [interaction.inputType.mouse=true] enable or disable mouse interaction
|
|
23000
23014
|
* @property {boolean} [interaction.inputType.touch=true] enable or disable touch interaction
|
|
23001
23015
|
* @property {boolean|number} [interaction.inputType.touch.preventDefault=false] enable or disable to call event.preventDefault on touchstart & touchmove event. It's usually used to prevent document scrolling.
|
|
23016
|
+
* @property {boolean} [interaction.onout=true] Enable or disable "onout" event.<br>
|
|
23017
|
+
* When is disabled, defocus(hiding tooltip, focused gridline, etc.) event won't work.
|
|
23002
23018
|
* @see [Demo: touch.preventDefault](https://naver.github.io/billboard.js/demo/#Interaction.PreventScrollOnTouch)
|
|
23003
23019
|
* @example
|
|
23004
23020
|
* interaction: {
|
|
@@ -23016,16 +23032,20 @@ const $ZOOM = {
|
|
|
23016
23032
|
* // or threshold pixel value (pixel moved from touchstart to touchmove)
|
|
23017
23033
|
* preventDefault: 5
|
|
23018
23034
|
* }
|
|
23019
|
-
* }
|
|
23035
|
+
* },
|
|
23036
|
+
*
|
|
23037
|
+
* // disable "onout" event
|
|
23038
|
+
* onout: false
|
|
23020
23039
|
* }
|
|
23021
23040
|
*/
|
|
23022
23041
|
interaction_enabled: true,
|
|
23023
23042
|
interaction_brighten: true,
|
|
23024
23043
|
interaction_inputType_mouse: true,
|
|
23025
|
-
interaction_inputType_touch: {}
|
|
23044
|
+
interaction_inputType_touch: {},
|
|
23045
|
+
interaction_onout: true
|
|
23026
23046
|
});
|
|
23027
23047
|
|
|
23028
|
-
;//
|
|
23048
|
+
;// ./node_modules/d3-dispatch/src/dispatch.js
|
|
23029
23049
|
var noop = { value: () => {
|
|
23030
23050
|
} };
|
|
23031
23051
|
function dispatch_dispatch() {
|
|
@@ -23095,7 +23115,7 @@ function set(type, name, callback) {
|
|
|
23095
23115
|
}
|
|
23096
23116
|
/* harmony default export */ var src_dispatch = (dispatch_dispatch);
|
|
23097
23117
|
|
|
23098
|
-
;//
|
|
23118
|
+
;// ./node_modules/d3-drag/src/noevent.js
|
|
23099
23119
|
const nonpassive = { passive: false };
|
|
23100
23120
|
const nonpassivecapture = { capture: true, passive: false };
|
|
23101
23121
|
function nopropagation(event) {
|
|
@@ -23106,7 +23126,7 @@ function nopropagation(event) {
|
|
|
23106
23126
|
event.stopImmediatePropagation();
|
|
23107
23127
|
}
|
|
23108
23128
|
|
|
23109
|
-
;//
|
|
23129
|
+
;// ./node_modules/d3-drag/src/nodrag.js
|
|
23110
23130
|
|
|
23111
23131
|
|
|
23112
23132
|
/* harmony default export */ function nodrag(view) {
|
|
@@ -23134,7 +23154,7 @@ function yesdrag(view, noclick) {
|
|
|
23134
23154
|
}
|
|
23135
23155
|
}
|
|
23136
23156
|
|
|
23137
|
-
;//
|
|
23157
|
+
;// ./node_modules/d3-color/src/define.js
|
|
23138
23158
|
/* harmony default export */ function src_define(constructor, factory, prototype) {
|
|
23139
23159
|
constructor.prototype = factory.prototype = prototype;
|
|
23140
23160
|
prototype.constructor = constructor;
|
|
@@ -23145,7 +23165,7 @@ function extend(parent, definition) {
|
|
|
23145
23165
|
return prototype;
|
|
23146
23166
|
}
|
|
23147
23167
|
|
|
23148
|
-
;//
|
|
23168
|
+
;// ./node_modules/d3-color/src/color.js
|
|
23149
23169
|
|
|
23150
23170
|
function Color() {
|
|
23151
23171
|
}
|
|
@@ -23474,7 +23494,7 @@ function hsl2rgb(h, m1, m2) {
|
|
|
23474
23494
|
return (h < 60 ? m1 + (m2 - m1) * h / 60 : h < 180 ? m2 : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60 : m1) * 255;
|
|
23475
23495
|
}
|
|
23476
23496
|
|
|
23477
|
-
;//
|
|
23497
|
+
;// ./node_modules/d3-interpolate/src/basis.js
|
|
23478
23498
|
function basis(t1, v0, v1, v2, v3) {
|
|
23479
23499
|
var t2 = t1 * t1, t3 = t2 * t1;
|
|
23480
23500
|
return ((1 - 3 * t1 + 3 * t2 - t3) * v0 + (4 - 6 * t2 + 3 * t3) * v1 + (1 + 3 * t1 + 3 * t2 - 3 * t3) * v2 + t3 * v3) / 6;
|
|
@@ -23487,7 +23507,7 @@ function basis(t1, v0, v1, v2, v3) {
|
|
|
23487
23507
|
};
|
|
23488
23508
|
}
|
|
23489
23509
|
|
|
23490
|
-
;//
|
|
23510
|
+
;// ./node_modules/d3-interpolate/src/basisClosed.js
|
|
23491
23511
|
|
|
23492
23512
|
/* harmony default export */ function basisClosed(values) {
|
|
23493
23513
|
var n = values.length;
|
|
@@ -23497,10 +23517,10 @@ function basis(t1, v0, v1, v2, v3) {
|
|
|
23497
23517
|
};
|
|
23498
23518
|
}
|
|
23499
23519
|
|
|
23500
|
-
;//
|
|
23520
|
+
;// ./node_modules/d3-interpolate/src/constant.js
|
|
23501
23521
|
/* harmony default export */ var src_constant = ((x) => () => x);
|
|
23502
23522
|
|
|
23503
|
-
;//
|
|
23523
|
+
;// ./node_modules/d3-interpolate/src/color.js
|
|
23504
23524
|
|
|
23505
23525
|
function linear(a, d) {
|
|
23506
23526
|
return function(t) {
|
|
@@ -23526,7 +23546,7 @@ function nogamma(a, b) {
|
|
|
23526
23546
|
return d ? linear(a, d) : src_constant(isNaN(a) ? b : a);
|
|
23527
23547
|
}
|
|
23528
23548
|
|
|
23529
|
-
;//
|
|
23549
|
+
;// ./node_modules/d3-interpolate/src/rgb.js
|
|
23530
23550
|
|
|
23531
23551
|
|
|
23532
23552
|
|
|
@@ -23570,7 +23590,7 @@ function rgbSpline(spline) {
|
|
|
23570
23590
|
var rgbBasis = rgbSpline(src_basis);
|
|
23571
23591
|
var rgbBasisClosed = rgbSpline(basisClosed);
|
|
23572
23592
|
|
|
23573
|
-
;//
|
|
23593
|
+
;// ./node_modules/d3-interpolate/src/numberArray.js
|
|
23574
23594
|
/* harmony default export */ function numberArray(a, b) {
|
|
23575
23595
|
if (!b) b = [];
|
|
23576
23596
|
var n = a ? Math.min(b.length, a.length) : 0, c = b.slice(), i;
|
|
@@ -23583,7 +23603,7 @@ function isNumberArray(x) {
|
|
|
23583
23603
|
return ArrayBuffer.isView(x) && !(x instanceof DataView);
|
|
23584
23604
|
}
|
|
23585
23605
|
|
|
23586
|
-
;//
|
|
23606
|
+
;// ./node_modules/d3-interpolate/src/array.js
|
|
23587
23607
|
|
|
23588
23608
|
|
|
23589
23609
|
/* harmony default export */ function src_array(a, b) {
|
|
@@ -23599,7 +23619,7 @@ function genericArray(a, b) {
|
|
|
23599
23619
|
};
|
|
23600
23620
|
}
|
|
23601
23621
|
|
|
23602
|
-
;//
|
|
23622
|
+
;// ./node_modules/d3-interpolate/src/date.js
|
|
23603
23623
|
/* harmony default export */ function date(a, b) {
|
|
23604
23624
|
var d = /* @__PURE__ */ new Date();
|
|
23605
23625
|
return a = +a, b = +b, function(t) {
|
|
@@ -23607,14 +23627,14 @@ function genericArray(a, b) {
|
|
|
23607
23627
|
};
|
|
23608
23628
|
}
|
|
23609
23629
|
|
|
23610
|
-
;//
|
|
23630
|
+
;// ./node_modules/d3-interpolate/src/number.js
|
|
23611
23631
|
/* harmony default export */ function number(a, b) {
|
|
23612
23632
|
return a = +a, b = +b, function(t) {
|
|
23613
23633
|
return a * (1 - t) + b * t;
|
|
23614
23634
|
};
|
|
23615
23635
|
}
|
|
23616
23636
|
|
|
23617
|
-
;//
|
|
23637
|
+
;// ./node_modules/d3-interpolate/src/object.js
|
|
23618
23638
|
|
|
23619
23639
|
/* harmony default export */ function object(a, b) {
|
|
23620
23640
|
var i = {}, c = {}, k;
|
|
@@ -23633,7 +23653,7 @@ function genericArray(a, b) {
|
|
|
23633
23653
|
};
|
|
23634
23654
|
}
|
|
23635
23655
|
|
|
23636
|
-
;//
|
|
23656
|
+
;// ./node_modules/d3-interpolate/src/string.js
|
|
23637
23657
|
|
|
23638
23658
|
var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, reB = new RegExp(reA.source, "g");
|
|
23639
23659
|
function zero(b) {
|
|
@@ -23675,7 +23695,7 @@ function one(b) {
|
|
|
23675
23695
|
});
|
|
23676
23696
|
}
|
|
23677
23697
|
|
|
23678
|
-
;//
|
|
23698
|
+
;// ./node_modules/d3-interpolate/src/value.js
|
|
23679
23699
|
|
|
23680
23700
|
|
|
23681
23701
|
|
|
@@ -23690,14 +23710,14 @@ function one(b) {
|
|
|
23690
23710
|
return b == null || t === "boolean" ? src_constant(b) : (t === "number" ? number : t === "string" ? (c = color_color(b)) ? (b = c, rgb) : string : b instanceof color_color ? rgb : b instanceof Date ? date : isNumberArray(b) ? numberArray : Array.isArray(b) ? genericArray : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? object : number)(a, b);
|
|
23691
23711
|
}
|
|
23692
23712
|
|
|
23693
|
-
;//
|
|
23713
|
+
;// ./node_modules/d3-selection/src/sourceEvent.js
|
|
23694
23714
|
/* harmony default export */ function sourceEvent(event) {
|
|
23695
23715
|
let sourceEvent;
|
|
23696
23716
|
while (sourceEvent = event.sourceEvent) event = sourceEvent;
|
|
23697
23717
|
return event;
|
|
23698
23718
|
}
|
|
23699
23719
|
|
|
23700
|
-
;//
|
|
23720
|
+
;// ./node_modules/d3-selection/src/pointer.js
|
|
23701
23721
|
|
|
23702
23722
|
/* harmony default export */ function src_pointer(event, node) {
|
|
23703
23723
|
event = sourceEvent(event);
|
|
@@ -23718,7 +23738,7 @@ function one(b) {
|
|
|
23718
23738
|
return [event.pageX, event.pageY];
|
|
23719
23739
|
}
|
|
23720
23740
|
|
|
23721
|
-
;//
|
|
23741
|
+
;// ./node_modules/d3-timer/src/timer.js
|
|
23722
23742
|
var timer_frame = 0, timeout = 0, interval = 0, pokeDelay = 1e3, taskHead, taskTail, clockLast = 0, clockNow = 0, clockSkew = 0, clock = typeof performance === "object" && performance.now ? performance : Date, setFrame = typeof window === "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(f) {
|
|
23723
23743
|
setTimeout(f, 17);
|
|
23724
23744
|
};
|
|
@@ -23810,7 +23830,7 @@ function sleep(time) {
|
|
|
23810
23830
|
}
|
|
23811
23831
|
}
|
|
23812
23832
|
|
|
23813
|
-
;//
|
|
23833
|
+
;// ./node_modules/d3-timer/src/timeout.js
|
|
23814
23834
|
|
|
23815
23835
|
/* harmony default export */ function src_timeout(callback, delay, time) {
|
|
23816
23836
|
var t = new Timer();
|
|
@@ -23822,7 +23842,7 @@ function sleep(time) {
|
|
|
23822
23842
|
return t;
|
|
23823
23843
|
}
|
|
23824
23844
|
|
|
23825
|
-
;//
|
|
23845
|
+
;// ./node_modules/d3-transition/src/transition/schedule.js
|
|
23826
23846
|
|
|
23827
23847
|
|
|
23828
23848
|
var emptyOn = src_dispatch("start", "end", "cancel", "interrupt");
|
|
@@ -23935,7 +23955,7 @@ function create(node, id, self) {
|
|
|
23935
23955
|
}
|
|
23936
23956
|
}
|
|
23937
23957
|
|
|
23938
|
-
;//
|
|
23958
|
+
;// ./node_modules/d3-transition/src/interrupt.js
|
|
23939
23959
|
|
|
23940
23960
|
/* harmony default export */ function interrupt(node, name) {
|
|
23941
23961
|
var schedules = node.__transition, schedule, active, empty = true, i;
|
|
@@ -23955,7 +23975,7 @@ function create(node, id, self) {
|
|
|
23955
23975
|
if (empty) delete node.__transition;
|
|
23956
23976
|
}
|
|
23957
23977
|
|
|
23958
|
-
;//
|
|
23978
|
+
;// ./node_modules/d3-transition/src/selection/interrupt.js
|
|
23959
23979
|
|
|
23960
23980
|
/* harmony default export */ function selection_interrupt(name) {
|
|
23961
23981
|
return this.each(function() {
|
|
@@ -23963,7 +23983,7 @@ function create(node, id, self) {
|
|
|
23963
23983
|
});
|
|
23964
23984
|
}
|
|
23965
23985
|
|
|
23966
|
-
;//
|
|
23986
|
+
;// ./node_modules/d3-interpolate/src/transform/decompose.js
|
|
23967
23987
|
var degrees = 180 / Math.PI;
|
|
23968
23988
|
var identity = {
|
|
23969
23989
|
translateX: 0,
|
|
@@ -23989,7 +24009,7 @@ var identity = {
|
|
|
23989
24009
|
};
|
|
23990
24010
|
}
|
|
23991
24011
|
|
|
23992
|
-
;//
|
|
24012
|
+
;// ./node_modules/d3-interpolate/src/transform/parse.js
|
|
23993
24013
|
|
|
23994
24014
|
var svgNode;
|
|
23995
24015
|
function parseCss(value) {
|
|
@@ -24005,7 +24025,7 @@ function parseSvg(value) {
|
|
|
24005
24025
|
return decompose(value.a, value.b, value.c, value.d, value.e, value.f);
|
|
24006
24026
|
}
|
|
24007
24027
|
|
|
24008
|
-
;//
|
|
24028
|
+
;// ./node_modules/d3-interpolate/src/transform/index.js
|
|
24009
24029
|
|
|
24010
24030
|
|
|
24011
24031
|
function interpolateTransform(parse, pxComma, pxParen, degParen) {
|
|
@@ -24062,7 +24082,7 @@ function interpolateTransform(parse, pxComma, pxParen, degParen) {
|
|
|
24062
24082
|
var interpolateTransformCss = interpolateTransform(parseCss, "px, ", "px)", "deg)");
|
|
24063
24083
|
var interpolateTransformSvg = interpolateTransform(parseSvg, ", ", ")", ")");
|
|
24064
24084
|
|
|
24065
|
-
;//
|
|
24085
|
+
;// ./node_modules/d3-transition/src/transition/tween.js
|
|
24066
24086
|
|
|
24067
24087
|
function tweenRemove(id, name) {
|
|
24068
24088
|
var tween0, tween1;
|
|
@@ -24124,7 +24144,7 @@ function tweenValue(transition, name, value) {
|
|
|
24124
24144
|
};
|
|
24125
24145
|
}
|
|
24126
24146
|
|
|
24127
|
-
;//
|
|
24147
|
+
;// ./node_modules/d3-transition/src/transition/interpolate.js
|
|
24128
24148
|
|
|
24129
24149
|
|
|
24130
24150
|
/* harmony default export */ function interpolate(a, b) {
|
|
@@ -24132,7 +24152,7 @@ function tweenValue(transition, name, value) {
|
|
|
24132
24152
|
return (typeof b === "number" ? number : b instanceof color_color ? rgb : (c = color_color(b)) ? (b = c, rgb) : string)(a, b);
|
|
24133
24153
|
}
|
|
24134
24154
|
|
|
24135
|
-
;//
|
|
24155
|
+
;// ./node_modules/d3-transition/src/transition/attr.js
|
|
24136
24156
|
|
|
24137
24157
|
|
|
24138
24158
|
|
|
@@ -24186,7 +24206,7 @@ function attr_attrFunctionNS(fullname, interpolate2, value) {
|
|
|
24186
24206
|
return this.attrTween(name, typeof value === "function" ? (fullname.local ? attr_attrFunctionNS : attr_attrFunction)(fullname, i, tweenValue(this, "attr." + name, value)) : value == null ? (fullname.local ? attr_attrRemoveNS : attr_attrRemove)(fullname) : (fullname.local ? attr_attrConstantNS : attr_attrConstant)(fullname, i, value));
|
|
24187
24207
|
}
|
|
24188
24208
|
|
|
24189
|
-
;//
|
|
24209
|
+
;// ./node_modules/d3-transition/src/transition/attrTween.js
|
|
24190
24210
|
|
|
24191
24211
|
function attrInterpolate(name, i) {
|
|
24192
24212
|
return function(t) {
|
|
@@ -24227,7 +24247,7 @@ function attrTween(name, value) {
|
|
|
24227
24247
|
return this.tween(key, (fullname.local ? attrTweenNS : attrTween)(fullname, value));
|
|
24228
24248
|
}
|
|
24229
24249
|
|
|
24230
|
-
;//
|
|
24250
|
+
;// ./node_modules/d3-transition/src/transition/delay.js
|
|
24231
24251
|
|
|
24232
24252
|
function delayFunction(id, value) {
|
|
24233
24253
|
return function() {
|
|
@@ -24244,7 +24264,7 @@ function delayConstant(id, value) {
|
|
|
24244
24264
|
return arguments.length ? this.each((typeof value === "function" ? delayFunction : delayConstant)(id, value)) : schedule_get(this.node(), id).delay;
|
|
24245
24265
|
}
|
|
24246
24266
|
|
|
24247
|
-
;//
|
|
24267
|
+
;// ./node_modules/d3-transition/src/transition/duration.js
|
|
24248
24268
|
|
|
24249
24269
|
function durationFunction(id, value) {
|
|
24250
24270
|
return function() {
|
|
@@ -24261,7 +24281,7 @@ function durationConstant(id, value) {
|
|
|
24261
24281
|
return arguments.length ? this.each((typeof value === "function" ? durationFunction : durationConstant)(id, value)) : schedule_get(this.node(), id).duration;
|
|
24262
24282
|
}
|
|
24263
24283
|
|
|
24264
|
-
;//
|
|
24284
|
+
;// ./node_modules/d3-transition/src/transition/ease.js
|
|
24265
24285
|
|
|
24266
24286
|
function easeConstant(id, value) {
|
|
24267
24287
|
if (typeof value !== "function") throw new Error();
|
|
@@ -24274,7 +24294,7 @@ function easeConstant(id, value) {
|
|
|
24274
24294
|
return arguments.length ? this.each(easeConstant(id, value)) : schedule_get(this.node(), id).ease;
|
|
24275
24295
|
}
|
|
24276
24296
|
|
|
24277
|
-
;//
|
|
24297
|
+
;// ./node_modules/d3-transition/src/transition/easeVarying.js
|
|
24278
24298
|
|
|
24279
24299
|
function easeVarying(id, value) {
|
|
24280
24300
|
return function() {
|
|
@@ -24288,7 +24308,7 @@ function easeVarying(id, value) {
|
|
|
24288
24308
|
return this.each(easeVarying(this._id, value));
|
|
24289
24309
|
}
|
|
24290
24310
|
|
|
24291
|
-
;//
|
|
24311
|
+
;// ./node_modules/d3-transition/src/transition/filter.js
|
|
24292
24312
|
|
|
24293
24313
|
|
|
24294
24314
|
/* harmony default export */ function transition_filter(match) {
|
|
@@ -24303,7 +24323,7 @@ function easeVarying(id, value) {
|
|
|
24303
24323
|
return new Transition(subgroups, this._parents, this._name, this._id);
|
|
24304
24324
|
}
|
|
24305
24325
|
|
|
24306
|
-
;//
|
|
24326
|
+
;// ./node_modules/d3-transition/src/transition/merge.js
|
|
24307
24327
|
|
|
24308
24328
|
/* harmony default export */ function transition_merge(transition) {
|
|
24309
24329
|
if (transition._id !== this._id) throw new Error();
|
|
@@ -24320,7 +24340,7 @@ function easeVarying(id, value) {
|
|
|
24320
24340
|
return new Transition(merges, this._parents, this._name, this._id);
|
|
24321
24341
|
}
|
|
24322
24342
|
|
|
24323
|
-
;//
|
|
24343
|
+
;// ./node_modules/d3-transition/src/transition/on.js
|
|
24324
24344
|
|
|
24325
24345
|
function start(name) {
|
|
24326
24346
|
return (name + "").trim().split(/^|\s+/).every(function(t) {
|
|
@@ -24342,7 +24362,7 @@ function onFunction(id, name, listener) {
|
|
|
24342
24362
|
return arguments.length < 2 ? schedule_get(this.node(), id).on.on(name) : this.each(onFunction(id, name, listener));
|
|
24343
24363
|
}
|
|
24344
24364
|
|
|
24345
|
-
;//
|
|
24365
|
+
;// ./node_modules/d3-transition/src/transition/remove.js
|
|
24346
24366
|
function removeFunction(id) {
|
|
24347
24367
|
return function() {
|
|
24348
24368
|
var parent = this.parentNode;
|
|
@@ -24354,7 +24374,7 @@ function removeFunction(id) {
|
|
|
24354
24374
|
return this.on("end.remove", removeFunction(this._id));
|
|
24355
24375
|
}
|
|
24356
24376
|
|
|
24357
|
-
;//
|
|
24377
|
+
;// ./node_modules/d3-transition/src/transition/select.js
|
|
24358
24378
|
|
|
24359
24379
|
|
|
24360
24380
|
|
|
@@ -24373,7 +24393,7 @@ function removeFunction(id) {
|
|
|
24373
24393
|
return new Transition(subgroups, this._parents, name, id);
|
|
24374
24394
|
}
|
|
24375
24395
|
|
|
24376
|
-
;//
|
|
24396
|
+
;// ./node_modules/d3-transition/src/transition/selectAll.js
|
|
24377
24397
|
|
|
24378
24398
|
|
|
24379
24399
|
|
|
@@ -24396,14 +24416,14 @@ function removeFunction(id) {
|
|
|
24396
24416
|
return new Transition(subgroups, parents, name, id);
|
|
24397
24417
|
}
|
|
24398
24418
|
|
|
24399
|
-
;//
|
|
24419
|
+
;// ./node_modules/d3-transition/src/transition/selection.js
|
|
24400
24420
|
|
|
24401
24421
|
var selection_Selection = src_selection.prototype.constructor;
|
|
24402
24422
|
/* harmony default export */ function transition_selection() {
|
|
24403
24423
|
return new selection_Selection(this._groups, this._parents);
|
|
24404
24424
|
}
|
|
24405
24425
|
|
|
24406
|
-
;//
|
|
24426
|
+
;// ./node_modules/d3-transition/src/transition/style.js
|
|
24407
24427
|
|
|
24408
24428
|
|
|
24409
24429
|
|
|
@@ -24449,7 +24469,7 @@ function styleMaybeRemove(id, name) {
|
|
|
24449
24469
|
return value == null ? this.styleTween(name, styleNull(name, i)).on("end.style." + name, style_styleRemove(name)) : typeof value === "function" ? this.styleTween(name, style_styleFunction(name, i, tweenValue(this, "style." + name, value))).each(styleMaybeRemove(this._id, name)) : this.styleTween(name, style_styleConstant(name, i, value), priority).on("end.style." + name, null);
|
|
24450
24470
|
}
|
|
24451
24471
|
|
|
24452
|
-
;//
|
|
24472
|
+
;// ./node_modules/d3-transition/src/transition/styleTween.js
|
|
24453
24473
|
function styleInterpolate(name, i, priority) {
|
|
24454
24474
|
return function(t) {
|
|
24455
24475
|
this.style.setProperty(name, i.call(this, t), priority);
|
|
@@ -24473,7 +24493,7 @@ function styleTween(name, value, priority) {
|
|
|
24473
24493
|
return this.tween(key, styleTween(name, value, priority == null ? "" : priority));
|
|
24474
24494
|
}
|
|
24475
24495
|
|
|
24476
|
-
;//
|
|
24496
|
+
;// ./node_modules/d3-transition/src/transition/text.js
|
|
24477
24497
|
|
|
24478
24498
|
function text_textConstant(value) {
|
|
24479
24499
|
return function() {
|
|
@@ -24490,7 +24510,7 @@ function text_textFunction(value) {
|
|
|
24490
24510
|
return this.tween("text", typeof value === "function" ? text_textFunction(tweenValue(this, "text", value)) : text_textConstant(value == null ? "" : value + ""));
|
|
24491
24511
|
}
|
|
24492
24512
|
|
|
24493
|
-
;//
|
|
24513
|
+
;// ./node_modules/d3-transition/src/transition/textTween.js
|
|
24494
24514
|
function textInterpolate(i) {
|
|
24495
24515
|
return function(t) {
|
|
24496
24516
|
this.textContent = i.call(this, t);
|
|
@@ -24514,7 +24534,7 @@ function textTween(value) {
|
|
|
24514
24534
|
return this.tween(key, textTween(value));
|
|
24515
24535
|
}
|
|
24516
24536
|
|
|
24517
|
-
;//
|
|
24537
|
+
;// ./node_modules/d3-transition/src/transition/transition.js
|
|
24518
24538
|
|
|
24519
24539
|
|
|
24520
24540
|
/* harmony default export */ function transition() {
|
|
@@ -24535,7 +24555,7 @@ function textTween(value) {
|
|
|
24535
24555
|
return new Transition(groups, this._parents, name, id1);
|
|
24536
24556
|
}
|
|
24537
24557
|
|
|
24538
|
-
;//
|
|
24558
|
+
;// ./node_modules/d3-transition/src/transition/end.js
|
|
24539
24559
|
|
|
24540
24560
|
/* harmony default export */ function end() {
|
|
24541
24561
|
var on0, on1, that = this, id = that._id, size = that.size();
|
|
@@ -24557,7 +24577,7 @@ function textTween(value) {
|
|
|
24557
24577
|
});
|
|
24558
24578
|
}
|
|
24559
24579
|
|
|
24560
|
-
;//
|
|
24580
|
+
;// ./node_modules/d3-transition/src/transition/index.js
|
|
24561
24581
|
|
|
24562
24582
|
|
|
24563
24583
|
|
|
@@ -24626,7 +24646,7 @@ Transition.prototype = transition_transition.prototype = {
|
|
|
24626
24646
|
[Symbol.iterator]: selection_prototype[Symbol.iterator]
|
|
24627
24647
|
};
|
|
24628
24648
|
|
|
24629
|
-
;//
|
|
24649
|
+
;// ./node_modules/d3-ease/src/cubic.js
|
|
24630
24650
|
function cubicIn(t) {
|
|
24631
24651
|
return t * t * t;
|
|
24632
24652
|
}
|
|
@@ -24637,7 +24657,7 @@ function cubicInOut(t) {
|
|
|
24637
24657
|
return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;
|
|
24638
24658
|
}
|
|
24639
24659
|
|
|
24640
|
-
;//
|
|
24660
|
+
;// ./node_modules/d3-transition/src/selection/transition.js
|
|
24641
24661
|
|
|
24642
24662
|
|
|
24643
24663
|
|
|
@@ -24675,23 +24695,23 @@ function inherit(node, id) {
|
|
|
24675
24695
|
return new Transition(groups, this._parents, name, id);
|
|
24676
24696
|
}
|
|
24677
24697
|
|
|
24678
|
-
;//
|
|
24698
|
+
;// ./node_modules/d3-transition/src/selection/index.js
|
|
24679
24699
|
|
|
24680
24700
|
|
|
24681
24701
|
|
|
24682
24702
|
src_selection.prototype.interrupt = selection_interrupt;
|
|
24683
24703
|
src_selection.prototype.transition = selection_transition;
|
|
24684
24704
|
|
|
24685
|
-
;//
|
|
24705
|
+
;// ./node_modules/d3-transition/src/index.js
|
|
24686
24706
|
|
|
24687
24707
|
|
|
24688
24708
|
|
|
24689
24709
|
|
|
24690
24710
|
|
|
24691
|
-
;//
|
|
24711
|
+
;// ./node_modules/d3-brush/src/constant.js
|
|
24692
24712
|
/* harmony default export */ var d3_brush_src_constant = ((x) => () => x);
|
|
24693
24713
|
|
|
24694
|
-
;//
|
|
24714
|
+
;// ./node_modules/d3-brush/src/event.js
|
|
24695
24715
|
function BrushEvent(type, {
|
|
24696
24716
|
sourceEvent,
|
|
24697
24717
|
target,
|
|
@@ -24709,7 +24729,7 @@ function BrushEvent(type, {
|
|
|
24709
24729
|
});
|
|
24710
24730
|
}
|
|
24711
24731
|
|
|
24712
|
-
;//
|
|
24732
|
+
;// ./node_modules/d3-brush/src/noevent.js
|
|
24713
24733
|
function noevent_nopropagation(event) {
|
|
24714
24734
|
event.stopImmediatePropagation();
|
|
24715
24735
|
}
|
|
@@ -24718,7 +24738,7 @@ function noevent_nopropagation(event) {
|
|
|
24718
24738
|
event.stopImmediatePropagation();
|
|
24719
24739
|
}
|
|
24720
24740
|
|
|
24721
|
-
;//
|
|
24741
|
+
;// ./node_modules/d3-brush/src/brush.js
|
|
24722
24742
|
|
|
24723
24743
|
|
|
24724
24744
|
|
|
@@ -25206,10 +25226,10 @@ function brush_brush(dim) {
|
|
|
25206
25226
|
return brush2;
|
|
25207
25227
|
}
|
|
25208
25228
|
|
|
25209
|
-
;//
|
|
25229
|
+
;// ./node_modules/d3-brush/src/index.js
|
|
25210
25230
|
|
|
25211
25231
|
|
|
25212
|
-
;//
|
|
25232
|
+
;// ./src/module/browser.ts
|
|
25213
25233
|
function getGlobal() {
|
|
25214
25234
|
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")();
|
|
25215
25235
|
}
|
|
@@ -25235,7 +25255,7 @@ const [
|
|
|
25235
25255
|
] = getFallback(win);
|
|
25236
25256
|
|
|
25237
25257
|
|
|
25238
|
-
;//
|
|
25258
|
+
;// ./src/module/util.ts
|
|
25239
25259
|
var util_defProp = Object.defineProperty;
|
|
25240
25260
|
var util_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
25241
25261
|
var util_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
@@ -25454,6 +25474,13 @@ function getScrollPosition(node) {
|
|
|
25454
25474
|
y: ((_e = (_d = win.pageYOffset) != null ? _d : win.scrollY) != null ? _e : 0) + ((_f = node.scrollTop) != null ? _f : 0)
|
|
25455
25475
|
};
|
|
25456
25476
|
}
|
|
25477
|
+
function getTransformCTM(node, x = 0, y = 0, inverse = true) {
|
|
25478
|
+
const point = new DOMPoint(x, y);
|
|
25479
|
+
const screen = node.getScreenCTM();
|
|
25480
|
+
return point.matrixTransform(
|
|
25481
|
+
inverse ? screen == null ? void 0 : screen.inverse() : screen
|
|
25482
|
+
);
|
|
25483
|
+
}
|
|
25457
25484
|
function getTranslation(node) {
|
|
25458
25485
|
const transform = node ? node.transform : null;
|
|
25459
25486
|
const baseVal = transform && transform.baseVal;
|
|
@@ -25601,12 +25628,28 @@ function parseDate(date) {
|
|
|
25601
25628
|
}
|
|
25602
25629
|
return parsedDate;
|
|
25603
25630
|
}
|
|
25631
|
+
function hasViewBox(svg) {
|
|
25632
|
+
const attr = svg.attr("viewBox");
|
|
25633
|
+
return attr ? /(\d+(\.\d+)?){3}/.test(attr) : false;
|
|
25634
|
+
}
|
|
25635
|
+
function hasStyle(node, condition, all = false) {
|
|
25636
|
+
const isD3Node = !!node.node;
|
|
25637
|
+
let has = false;
|
|
25638
|
+
for (const [key, value] of Object.entries(condition)) {
|
|
25639
|
+
has = isD3Node ? node.style(key) === value : node.style[key] === value;
|
|
25640
|
+
if (all === false && has) {
|
|
25641
|
+
break;
|
|
25642
|
+
}
|
|
25643
|
+
}
|
|
25644
|
+
return has;
|
|
25645
|
+
}
|
|
25604
25646
|
function isTabVisible() {
|
|
25605
25647
|
var _a, _b;
|
|
25606
25648
|
return ((_a = browser_doc) == null ? void 0 : _a.hidden) === false || ((_b = browser_doc) == null ? void 0 : _b.visibilityState) === "visible";
|
|
25607
25649
|
}
|
|
25608
25650
|
function convertInputType(mouse, touch) {
|
|
25609
25651
|
const { DocumentTouch, matchMedia, navigator } = win;
|
|
25652
|
+
const hasPointerCoarse = matchMedia == null ? void 0 : matchMedia("(pointer:coarse)").matches;
|
|
25610
25653
|
let hasTouch = false;
|
|
25611
25654
|
if (touch) {
|
|
25612
25655
|
if (navigator && "maxTouchPoints" in navigator) {
|
|
@@ -25614,7 +25657,7 @@ function convertInputType(mouse, touch) {
|
|
|
25614
25657
|
} else if ("ontouchmove" in win || DocumentTouch && browser_doc instanceof DocumentTouch) {
|
|
25615
25658
|
hasTouch = true;
|
|
25616
25659
|
} else {
|
|
25617
|
-
if (
|
|
25660
|
+
if (hasPointerCoarse) {
|
|
25618
25661
|
hasTouch = true;
|
|
25619
25662
|
} else {
|
|
25620
25663
|
const UA = navigator.userAgent;
|
|
@@ -25622,7 +25665,7 @@ function convertInputType(mouse, touch) {
|
|
|
25622
25665
|
}
|
|
25623
25666
|
}
|
|
25624
25667
|
}
|
|
25625
|
-
const hasMouse = mouse &&
|
|
25668
|
+
const hasMouse = mouse && !hasPointerCoarse && (matchMedia == null ? void 0 : matchMedia("(pointer:fine)").matches);
|
|
25626
25669
|
return hasMouse && "mouse" || hasTouch && "touch" || "mouse";
|
|
25627
25670
|
}
|
|
25628
25671
|
function runUntil(fn, conditionFn) {
|
|
@@ -25633,7 +25676,7 @@ function runUntil(fn, conditionFn) {
|
|
|
25633
25676
|
}
|
|
25634
25677
|
}
|
|
25635
25678
|
|
|
25636
|
-
;//
|
|
25679
|
+
;// ./src/config/Options/Options.ts
|
|
25637
25680
|
var Options_defProp = Object.defineProperty;
|
|
25638
25681
|
var Options_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
25639
25682
|
var Options_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
@@ -25682,7 +25725,7 @@ __publicField(_Options, "data", {});
|
|
|
25682
25725
|
let Options = _Options;
|
|
25683
25726
|
|
|
25684
25727
|
|
|
25685
|
-
;//
|
|
25728
|
+
;// ./src/config/Store/Element.ts
|
|
25686
25729
|
class Element {
|
|
25687
25730
|
constructor() {
|
|
25688
25731
|
const element = {
|
|
@@ -25758,7 +25801,7 @@ class Element {
|
|
|
25758
25801
|
}
|
|
25759
25802
|
}
|
|
25760
25803
|
|
|
25761
|
-
;//
|
|
25804
|
+
;// ./src/config/Store/State.ts
|
|
25762
25805
|
class State {
|
|
25763
25806
|
constructor() {
|
|
25764
25807
|
return {
|
|
@@ -25910,7 +25953,7 @@ class State {
|
|
|
25910
25953
|
}
|
|
25911
25954
|
}
|
|
25912
25955
|
|
|
25913
|
-
;//
|
|
25956
|
+
;// ./src/config/Store/Store.ts
|
|
25914
25957
|
|
|
25915
25958
|
|
|
25916
25959
|
const Store_classes = {
|
|
@@ -25928,7 +25971,7 @@ class Store {
|
|
|
25928
25971
|
}
|
|
25929
25972
|
}
|
|
25930
25973
|
|
|
25931
|
-
;//
|
|
25974
|
+
;// ./src/module/Cache.ts
|
|
25932
25975
|
var Cache_defProp = Object.defineProperty;
|
|
25933
25976
|
var Cache_defNormalProp = (obj, key, value) => key in obj ? Cache_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
25934
25977
|
var Cache_publicField = (obj, key, value) => Cache_defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -26019,7 +26062,7 @@ class Cache {
|
|
|
26019
26062
|
}
|
|
26020
26063
|
}
|
|
26021
26064
|
|
|
26022
|
-
;//
|
|
26065
|
+
;// ./src/config/const.ts
|
|
26023
26066
|
const TYPE = {
|
|
26024
26067
|
AREA: "area",
|
|
26025
26068
|
AREA_LINE_RANGE: "area-line-range",
|
|
@@ -26108,7 +26151,7 @@ const TYPE_BY_CATEGORY = {
|
|
|
26108
26151
|
]
|
|
26109
26152
|
};
|
|
26110
26153
|
|
|
26111
|
-
;//
|
|
26154
|
+
;// ./src/module/error.ts
|
|
26112
26155
|
|
|
26113
26156
|
|
|
26114
26157
|
|
|
@@ -26130,26 +26173,27 @@ function checkModuleImport(ctx) {
|
|
|
26130
26173
|
}
|
|
26131
26174
|
type && logError(
|
|
26132
26175
|
`Please, make sure if %c${camelize(type)}`,
|
|
26133
|
-
"module has been imported and specified correctly."
|
|
26176
|
+
"module has been imported and specified correctly.",
|
|
26177
|
+
"https://github.com/naver/billboard.js/wiki/CHANGELOG-v2#modularization-by-its-functionality"
|
|
26134
26178
|
);
|
|
26135
26179
|
}
|
|
26136
|
-
function logError(head, tail) {
|
|
26180
|
+
function logError(head, tail, info) {
|
|
26137
26181
|
var _a;
|
|
26138
26182
|
const prefix = "[billboard.js]";
|
|
26139
|
-
const info = "https://github.com/naver/billboard.js/wiki/CHANGELOG-v2#modularization-by-its-functionality";
|
|
26140
26183
|
const hasConsole = (_a = win.console) == null ? void 0 : _a.error;
|
|
26141
26184
|
if (hasConsole) {
|
|
26185
|
+
const tailMsg = tail ? ["background:red;color:white;display:block;font-size:15px", tail] : [];
|
|
26142
26186
|
console.error(
|
|
26143
26187
|
`\u274C ${prefix} ${head}`,
|
|
26144
26188
|
"background:red;color:white;display:block;font-size:15px",
|
|
26145
|
-
|
|
26189
|
+
...tailMsg
|
|
26146
26190
|
);
|
|
26147
|
-
console.info("%c\u2139\uFE0F", "font-size:15px", info);
|
|
26191
|
+
info && console.info("%c\u2139\uFE0F", "font-size:15px", info);
|
|
26148
26192
|
}
|
|
26149
|
-
throw Error(`${prefix} ${head.replace(/\%c([a-z-]+)/i, "'$1' ")} ${tail}`);
|
|
26193
|
+
throw Error(`${prefix} ${head.replace(/\%c([a-z-]+)/i, "'$1' ")} ${tail != null ? tail : ""}`);
|
|
26150
26194
|
}
|
|
26151
26195
|
|
|
26152
|
-
;//
|
|
26196
|
+
;// ./src/module/generator.ts
|
|
26153
26197
|
|
|
26154
26198
|
|
|
26155
26199
|
const { setTimeout: generator_setTimeout, clearTimeout: generator_clearTimeout } = win;
|
|
@@ -26211,7 +26255,7 @@ function generateWait() {
|
|
|
26211
26255
|
return f;
|
|
26212
26256
|
}
|
|
26213
26257
|
|
|
26214
|
-
;//
|
|
26258
|
+
;// ./src/module/worker.ts
|
|
26215
26259
|
|
|
26216
26260
|
const blob = {};
|
|
26217
26261
|
function getObjectURL(fn, depsFn) {
|
|
@@ -26258,7 +26302,7 @@ function runWorker(useWorker = true, fn, callback, depsFn) {
|
|
|
26258
26302
|
return runFn;
|
|
26259
26303
|
}
|
|
26260
26304
|
|
|
26261
|
-
;//
|
|
26305
|
+
;// ./node_modules/d3-dsv/src/dsv.js
|
|
26262
26306
|
var EOL = {}, EOF = {}, QUOTE = 34, NEWLINE = 10, RETURN = 13;
|
|
26263
26307
|
function objectConverter(columns) {
|
|
26264
26308
|
return new Function("d", "return {" + columns.map(function(name, i) {
|
|
@@ -26374,7 +26418,7 @@ function formatDate(date) {
|
|
|
26374
26418
|
};
|
|
26375
26419
|
}
|
|
26376
26420
|
|
|
26377
|
-
;//
|
|
26421
|
+
;// ./node_modules/d3-dsv/src/csv.js
|
|
26378
26422
|
|
|
26379
26423
|
var csv = dsv(",");
|
|
26380
26424
|
var csvParse = csv.parse;
|
|
@@ -26385,7 +26429,7 @@ var csvFormatRows = csv.formatRows;
|
|
|
26385
26429
|
var csvFormatRow = csv.formatRow;
|
|
26386
26430
|
var csvFormatValue = csv.formatValue;
|
|
26387
26431
|
|
|
26388
|
-
;//
|
|
26432
|
+
;// ./node_modules/d3-dsv/src/tsv.js
|
|
26389
26433
|
|
|
26390
26434
|
var tsv = dsv(" ");
|
|
26391
26435
|
var tsvParse = tsv.parse;
|
|
@@ -26396,7 +26440,7 @@ var tsvFormatRows = tsv.formatRows;
|
|
|
26396
26440
|
var tsvFormatRow = tsv.formatRow;
|
|
26397
26441
|
var tsvFormatValue = tsv.formatValue;
|
|
26398
26442
|
|
|
26399
|
-
;//
|
|
26443
|
+
;// ./src/ChartInternal/data/convert.helper.ts
|
|
26400
26444
|
|
|
26401
26445
|
|
|
26402
26446
|
function columns(columns2) {
|
|
@@ -26529,7 +26573,7 @@ function convert_helper_tsv(tsv2) {
|
|
|
26529
26573
|
}, tsv2);
|
|
26530
26574
|
}
|
|
26531
26575
|
|
|
26532
|
-
;//
|
|
26576
|
+
;// ./src/ChartInternal/data/convert.ts
|
|
26533
26577
|
|
|
26534
26578
|
|
|
26535
26579
|
|
|
@@ -26683,7 +26727,7 @@ function getDataKeyForJson(keysParam, config) {
|
|
|
26683
26727
|
}
|
|
26684
26728
|
});
|
|
26685
26729
|
|
|
26686
|
-
;//
|
|
26730
|
+
;// ./src/ChartInternal/data/data.ts
|
|
26687
26731
|
|
|
26688
26732
|
|
|
26689
26733
|
|
|
@@ -27194,7 +27238,11 @@ function getDataKeyForJson(keysParam, config) {
|
|
|
27194
27238
|
*/
|
|
27195
27239
|
getDataIndexFromEvent(event) {
|
|
27196
27240
|
const $$ = this;
|
|
27197
|
-
const {
|
|
27241
|
+
const {
|
|
27242
|
+
$el,
|
|
27243
|
+
config,
|
|
27244
|
+
state: { hasRadar, inputType, eventReceiver: { coords, rect } }
|
|
27245
|
+
} = $$;
|
|
27198
27246
|
let index;
|
|
27199
27247
|
if (hasRadar) {
|
|
27200
27248
|
let target = event.target;
|
|
@@ -27207,9 +27255,15 @@ function getDataKeyForJson(keysParam, config) {
|
|
|
27207
27255
|
const isRotated = config.axis_rotated;
|
|
27208
27256
|
const scrollPos = getScrollPosition($el.chart.node());
|
|
27209
27257
|
const e = inputType === "touch" && event.changedTouches ? event.changedTouches[0] : event;
|
|
27258
|
+
let point = isRotated ? e.clientY + scrollPos.y - rect.top : e.clientX + scrollPos.x - rect.left;
|
|
27259
|
+
if (hasViewBox($el.svg)) {
|
|
27260
|
+
const pos = [point, 0];
|
|
27261
|
+
isRotated && pos.reverse();
|
|
27262
|
+
point = getTransformCTM($el.svg.node(), ...pos)[isRotated ? "y" : "x"];
|
|
27263
|
+
}
|
|
27210
27264
|
index = findIndex(
|
|
27211
27265
|
coords,
|
|
27212
|
-
|
|
27266
|
+
point,
|
|
27213
27267
|
0,
|
|
27214
27268
|
coords.length - 1,
|
|
27215
27269
|
isRotated
|
|
@@ -27484,7 +27538,7 @@ function getDataKeyForJson(keysParam, config) {
|
|
|
27484
27538
|
}
|
|
27485
27539
|
});
|
|
27486
27540
|
|
|
27487
|
-
;//
|
|
27541
|
+
;// ./src/ChartInternal/data/load.ts
|
|
27488
27542
|
|
|
27489
27543
|
|
|
27490
27544
|
function callDone(fn, resizeAfter = false) {
|
|
@@ -27552,6 +27606,8 @@ function callDone(fn, resizeAfter = false) {
|
|
|
27552
27606
|
org.xScale = zoomState.x.domain(org.xDomain);
|
|
27553
27607
|
}
|
|
27554
27608
|
$$.updateCurrentZoomTransform(zoomState.x, zoomState.currentDomain);
|
|
27609
|
+
} else if (org.xScale) {
|
|
27610
|
+
org.xScale.domain(org.xDomain);
|
|
27555
27611
|
}
|
|
27556
27612
|
$$.updateTypesElements();
|
|
27557
27613
|
callDone.call($$, args.done, args.resizeAfter);
|
|
@@ -27603,10 +27659,10 @@ function callDone(fn, resizeAfter = false) {
|
|
|
27603
27659
|
}
|
|
27604
27660
|
});
|
|
27605
27661
|
|
|
27606
|
-
;//
|
|
27662
|
+
;// ./node_modules/d3-drag/src/constant.js
|
|
27607
27663
|
/* harmony default export */ var d3_drag_src_constant = ((x) => () => x);
|
|
27608
27664
|
|
|
27609
|
-
;//
|
|
27665
|
+
;// ./node_modules/d3-drag/src/event.js
|
|
27610
27666
|
function DragEvent(type, {
|
|
27611
27667
|
sourceEvent,
|
|
27612
27668
|
subject,
|
|
@@ -27638,7 +27694,7 @@ DragEvent.prototype.on = function() {
|
|
|
27638
27694
|
return value === this._ ? this : value;
|
|
27639
27695
|
};
|
|
27640
27696
|
|
|
27641
|
-
;//
|
|
27697
|
+
;// ./node_modules/d3-drag/src/drag.js
|
|
27642
27698
|
|
|
27643
27699
|
|
|
27644
27700
|
|
|
@@ -27788,7 +27844,7 @@ function drag_defaultTouchable() {
|
|
|
27788
27844
|
return drag;
|
|
27789
27845
|
}
|
|
27790
27846
|
|
|
27791
|
-
;//
|
|
27847
|
+
;// ./src/ChartInternal/interactions/interaction.ts
|
|
27792
27848
|
|
|
27793
27849
|
|
|
27794
27850
|
|
|
@@ -27924,7 +27980,7 @@ function drag_defaultTouchable() {
|
|
|
27924
27980
|
hasRadar,
|
|
27925
27981
|
hasTreemap
|
|
27926
27982
|
},
|
|
27927
|
-
$el: { eventRect, funnel, radar, treemap }
|
|
27983
|
+
$el: { eventRect, funnel, radar, svg, treemap }
|
|
27928
27984
|
} = $$;
|
|
27929
27985
|
let element = (_b = (hasFunnel || hasTreemap) && eventReceiver.rect || hasRadar && radar.axes.select(`.${$AXIS.axis}-${index} text`) || (eventRect || ((_a = $$.getArcElementByIdOrIndex) == null ? void 0 : _a.call($$, index)))) == null ? void 0 : _b.node();
|
|
27930
27986
|
if (element) {
|
|
@@ -27943,8 +27999,13 @@ function drag_defaultTouchable() {
|
|
|
27943
27999
|
top = 0;
|
|
27944
28000
|
}
|
|
27945
28001
|
}
|
|
27946
|
-
|
|
27947
|
-
|
|
28002
|
+
let x = left + (mouse ? mouse[0] : 0) + (isMultipleX || isRotated ? 0 : width / 2);
|
|
28003
|
+
let y = top + (mouse ? mouse[1] : 0) + (isRotated ? 4 : 0);
|
|
28004
|
+
if (hasViewBox(svg)) {
|
|
28005
|
+
const ctm = getTransformCTM($$.$el.svg.node(), x, y, false);
|
|
28006
|
+
x = ctm.x;
|
|
28007
|
+
y = ctm.y;
|
|
28008
|
+
}
|
|
27948
28009
|
const params = {
|
|
27949
28010
|
screenX: x,
|
|
27950
28011
|
screenY: y,
|
|
@@ -28015,7 +28076,7 @@ function drag_defaultTouchable() {
|
|
|
28015
28076
|
}
|
|
28016
28077
|
});
|
|
28017
28078
|
|
|
28018
|
-
;//
|
|
28079
|
+
;// ./src/ChartInternal/internals/category.ts
|
|
28019
28080
|
/* harmony default export */ var category = ({
|
|
28020
28081
|
/**
|
|
28021
28082
|
* Category Name
|
|
@@ -28030,7 +28091,7 @@ function drag_defaultTouchable() {
|
|
|
28030
28091
|
}
|
|
28031
28092
|
});
|
|
28032
28093
|
|
|
28033
|
-
;//
|
|
28094
|
+
;// ./src/ChartInternal/internals/class.ts
|
|
28034
28095
|
|
|
28035
28096
|
/* harmony default export */ var internals_class = ({
|
|
28036
28097
|
generateClass(prefix, targetId) {
|
|
@@ -28115,7 +28176,7 @@ function drag_defaultTouchable() {
|
|
|
28115
28176
|
}
|
|
28116
28177
|
});
|
|
28117
28178
|
|
|
28118
|
-
;//
|
|
28179
|
+
;// ./node_modules/internmap/src/index.js
|
|
28119
28180
|
class InternMap extends Map {
|
|
28120
28181
|
constructor(entries, key = keyof) {
|
|
28121
28182
|
super();
|
|
@@ -28173,7 +28234,7 @@ function keyof(value) {
|
|
|
28173
28234
|
return value !== null && typeof value === "object" ? value.valueOf() : value;
|
|
28174
28235
|
}
|
|
28175
28236
|
|
|
28176
|
-
;//
|
|
28237
|
+
;// ./node_modules/d3-scale/src/init.js
|
|
28177
28238
|
function initRange(domain, range) {
|
|
28178
28239
|
switch (arguments.length) {
|
|
28179
28240
|
case 0:
|
|
@@ -28206,7 +28267,7 @@ function initInterpolator(domain, interpolator) {
|
|
|
28206
28267
|
return this;
|
|
28207
28268
|
}
|
|
28208
28269
|
|
|
28209
|
-
;//
|
|
28270
|
+
;// ./node_modules/d3-scale/src/ordinal.js
|
|
28210
28271
|
|
|
28211
28272
|
|
|
28212
28273
|
const implicit = Symbol("implicit");
|
|
@@ -28242,7 +28303,7 @@ function ordinal() {
|
|
|
28242
28303
|
return scale;
|
|
28243
28304
|
}
|
|
28244
28305
|
|
|
28245
|
-
;//
|
|
28306
|
+
;// ./src/ChartInternal/internals/color.ts
|
|
28246
28307
|
|
|
28247
28308
|
|
|
28248
28309
|
|
|
@@ -28455,7 +28516,7 @@ const schemeCategory10 = [
|
|
|
28455
28516
|
}
|
|
28456
28517
|
});
|
|
28457
28518
|
|
|
28458
|
-
;//
|
|
28519
|
+
;// ./src/ChartInternal/internals/domain.ts
|
|
28459
28520
|
|
|
28460
28521
|
|
|
28461
28522
|
/* harmony default export */ var domain = ({
|
|
@@ -28806,7 +28867,7 @@ const schemeCategory10 = [
|
|
|
28806
28867
|
}
|
|
28807
28868
|
});
|
|
28808
28869
|
|
|
28809
|
-
;//
|
|
28870
|
+
;// ./src/ChartInternal/internals/format.ts
|
|
28810
28871
|
|
|
28811
28872
|
function getFormat($$, typeValue, v) {
|
|
28812
28873
|
const { config } = $$;
|
|
@@ -28871,7 +28932,7 @@ function getFormat($$, typeValue, v) {
|
|
|
28871
28932
|
}
|
|
28872
28933
|
});
|
|
28873
28934
|
|
|
28874
|
-
;//
|
|
28935
|
+
;// ./src/ChartInternal/internals/legend.ts
|
|
28875
28936
|
|
|
28876
28937
|
|
|
28877
28938
|
|
|
@@ -29075,7 +29136,8 @@ function getFormattedText(id, formatted = true) {
|
|
|
29075
29136
|
const $$ = this;
|
|
29076
29137
|
const { current, isLegendRight, legendItemHeight, legendStep } = $$.state;
|
|
29077
29138
|
const isFitPadding = ((_a = $$.config.padding) == null ? void 0 : _a.mode) === "fit";
|
|
29078
|
-
|
|
29139
|
+
const height = $$.config.legend_show ? isLegendRight ? current.height : Math.max(isFitPadding ? 10 : 20, legendItemHeight) * (legendStep + 1) : 0;
|
|
29140
|
+
return height;
|
|
29079
29141
|
},
|
|
29080
29142
|
/**
|
|
29081
29143
|
* Get the opacity of the legend that is unfocused
|
|
@@ -29197,7 +29259,12 @@ function getFormattedText(id, formatted = true) {
|
|
|
29197
29259
|
item.on(
|
|
29198
29260
|
interaction.dblclick ? "dblclick" : "click",
|
|
29199
29261
|
interaction || isFunction(config.legend_item_onclick) ? function(event, id) {
|
|
29200
|
-
if (!callFn(
|
|
29262
|
+
if (!callFn(
|
|
29263
|
+
config.legend_item_onclick,
|
|
29264
|
+
api,
|
|
29265
|
+
id,
|
|
29266
|
+
!state.hiddenTargetIds.includes(id)
|
|
29267
|
+
)) {
|
|
29201
29268
|
const { altKey, target, type } = event;
|
|
29202
29269
|
if (type === "dblclick" || altKey) {
|
|
29203
29270
|
if (state.hiddenTargetIds.length && target.parentNode.getAttribute("class").indexOf(
|
|
@@ -29217,7 +29284,12 @@ function getFormattedText(id, formatted = true) {
|
|
|
29217
29284
|
} : null
|
|
29218
29285
|
);
|
|
29219
29286
|
!isTouch && item.on("mouseout", interaction || isFunction(config.legend_item_onout) ? function(event, id) {
|
|
29220
|
-
if (!callFn(
|
|
29287
|
+
if (!callFn(
|
|
29288
|
+
config.legend_item_onout,
|
|
29289
|
+
api,
|
|
29290
|
+
id,
|
|
29291
|
+
!state.hiddenTargetIds.includes(id)
|
|
29292
|
+
)) {
|
|
29221
29293
|
src_select(this).classed($FOCUS.legendItemFocused, false);
|
|
29222
29294
|
if (hasGauge) {
|
|
29223
29295
|
$$.undoMarkOverlapped($$, `.${$GAUGE.gaugeValue}`);
|
|
@@ -29225,7 +29297,12 @@ function getFormattedText(id, formatted = true) {
|
|
|
29225
29297
|
$$.api.revert();
|
|
29226
29298
|
}
|
|
29227
29299
|
} : null).on("mouseover", interaction || isFunction(config.legend_item_onover) ? function(event, id) {
|
|
29228
|
-
if (!callFn(
|
|
29300
|
+
if (!callFn(
|
|
29301
|
+
config.legend_item_onover,
|
|
29302
|
+
api,
|
|
29303
|
+
id,
|
|
29304
|
+
!state.hiddenTargetIds.includes(id)
|
|
29305
|
+
)) {
|
|
29229
29306
|
src_select(this).classed($FOCUS.legendItemFocused, true);
|
|
29230
29307
|
if (hasGauge) {
|
|
29231
29308
|
$$.markOverlapped(id, $$, `.${$GAUGE.gaugeValue}`);
|
|
@@ -29512,7 +29589,7 @@ function getFormattedText(id, formatted = true) {
|
|
|
29512
29589
|
}
|
|
29513
29590
|
});
|
|
29514
29591
|
|
|
29515
|
-
;//
|
|
29592
|
+
;// ./src/ChartInternal/internals/redraw.ts
|
|
29516
29593
|
|
|
29517
29594
|
|
|
29518
29595
|
|
|
@@ -29677,7 +29754,7 @@ function getFormattedText(id, formatted = true) {
|
|
|
29677
29754
|
}
|
|
29678
29755
|
});
|
|
29679
29756
|
|
|
29680
|
-
;//
|
|
29757
|
+
;// ./node_modules/d3-array/src/ticks.js
|
|
29681
29758
|
const e10 = Math.sqrt(50), e5 = Math.sqrt(10), e2 = Math.sqrt(2);
|
|
29682
29759
|
function tickSpec(start, stop, count) {
|
|
29683
29760
|
const step = (stop - start) / Math.max(0, count), power = Math.floor(Math.log10(step)), error = step / Math.pow(10, power), factor = error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1;
|
|
@@ -29725,17 +29802,17 @@ function tickStep(start, stop, count) {
|
|
|
29725
29802
|
return (reverse ? -1 : 1) * (inc < 0 ? 1 / -inc : inc);
|
|
29726
29803
|
}
|
|
29727
29804
|
|
|
29728
|
-
;//
|
|
29805
|
+
;// ./node_modules/d3-array/src/ascending.js
|
|
29729
29806
|
function ascending_ascending(a, b) {
|
|
29730
29807
|
return a == null || b == null ? NaN : a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
|
|
29731
29808
|
}
|
|
29732
29809
|
|
|
29733
|
-
;//
|
|
29810
|
+
;// ./node_modules/d3-array/src/descending.js
|
|
29734
29811
|
function descending(a, b) {
|
|
29735
29812
|
return a == null || b == null ? NaN : b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;
|
|
29736
29813
|
}
|
|
29737
29814
|
|
|
29738
|
-
;//
|
|
29815
|
+
;// ./node_modules/d3-array/src/bisector.js
|
|
29739
29816
|
|
|
29740
29817
|
|
|
29741
29818
|
function bisector(f) {
|
|
@@ -29781,7 +29858,7 @@ function bisector_zero() {
|
|
|
29781
29858
|
return 0;
|
|
29782
29859
|
}
|
|
29783
29860
|
|
|
29784
|
-
;//
|
|
29861
|
+
;// ./node_modules/d3-array/src/number.js
|
|
29785
29862
|
function number_number(x) {
|
|
29786
29863
|
return x === null ? NaN : +x;
|
|
29787
29864
|
}
|
|
@@ -29802,7 +29879,7 @@ function* numbers(values, valueof) {
|
|
|
29802
29879
|
}
|
|
29803
29880
|
}
|
|
29804
29881
|
|
|
29805
|
-
;//
|
|
29882
|
+
;// ./node_modules/d3-array/src/bisect.js
|
|
29806
29883
|
|
|
29807
29884
|
|
|
29808
29885
|
|
|
@@ -29812,26 +29889,26 @@ const bisectLeft = ascendingBisect.left;
|
|
|
29812
29889
|
const bisectCenter = bisector(number_number).center;
|
|
29813
29890
|
/* harmony default export */ var bisect = (bisectRight);
|
|
29814
29891
|
|
|
29815
|
-
;//
|
|
29892
|
+
;// ./node_modules/d3-interpolate/src/round.js
|
|
29816
29893
|
/* harmony default export */ function round(a, b) {
|
|
29817
29894
|
return a = +a, b = +b, function(t) {
|
|
29818
29895
|
return Math.round(a * (1 - t) + b * t);
|
|
29819
29896
|
};
|
|
29820
29897
|
}
|
|
29821
29898
|
|
|
29822
|
-
;//
|
|
29899
|
+
;// ./node_modules/d3-scale/src/constant.js
|
|
29823
29900
|
function constants(x) {
|
|
29824
29901
|
return function() {
|
|
29825
29902
|
return x;
|
|
29826
29903
|
};
|
|
29827
29904
|
}
|
|
29828
29905
|
|
|
29829
|
-
;//
|
|
29906
|
+
;// ./node_modules/d3-scale/src/number.js
|
|
29830
29907
|
function src_number_number(x) {
|
|
29831
29908
|
return +x;
|
|
29832
29909
|
}
|
|
29833
29910
|
|
|
29834
|
-
;//
|
|
29911
|
+
;// ./node_modules/d3-scale/src/continuous.js
|
|
29835
29912
|
|
|
29836
29913
|
|
|
29837
29914
|
|
|
@@ -29920,7 +29997,7 @@ function continuous() {
|
|
|
29920
29997
|
return transformer()(continuous_identity, continuous_identity);
|
|
29921
29998
|
}
|
|
29922
29999
|
|
|
29923
|
-
;//
|
|
30000
|
+
;// ./node_modules/d3-format/src/formatSpecifier.js
|
|
29924
30001
|
var re = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
29925
30002
|
function formatSpecifier(specifier) {
|
|
29926
30003
|
if (!(match = re.exec(specifier))) throw new Error("invalid format: " + specifier);
|
|
@@ -29955,7 +30032,7 @@ FormatSpecifier.prototype.toString = function() {
|
|
|
29955
30032
|
return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
|
|
29956
30033
|
};
|
|
29957
30034
|
|
|
29958
|
-
;//
|
|
30035
|
+
;// ./node_modules/d3-format/src/formatDecimal.js
|
|
29959
30036
|
/* harmony default export */ function formatDecimal(x) {
|
|
29960
30037
|
return Math.abs(x = Math.round(x)) >= 1e21 ? x.toLocaleString("en").replace(/,/g, "") : x.toString(10);
|
|
29961
30038
|
}
|
|
@@ -29968,19 +30045,19 @@ function formatDecimalParts(x, p) {
|
|
|
29968
30045
|
];
|
|
29969
30046
|
}
|
|
29970
30047
|
|
|
29971
|
-
;//
|
|
30048
|
+
;// ./node_modules/d3-format/src/exponent.js
|
|
29972
30049
|
|
|
29973
30050
|
/* harmony default export */ function exponent(x) {
|
|
29974
30051
|
return x = formatDecimalParts(Math.abs(x)), x ? x[1] : NaN;
|
|
29975
30052
|
}
|
|
29976
30053
|
|
|
29977
|
-
;//
|
|
30054
|
+
;// ./node_modules/d3-format/src/precisionPrefix.js
|
|
29978
30055
|
|
|
29979
30056
|
/* harmony default export */ function precisionPrefix(step, value) {
|
|
29980
30057
|
return Math.max(0, Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3 - exponent(Math.abs(step)));
|
|
29981
30058
|
}
|
|
29982
30059
|
|
|
29983
|
-
;//
|
|
30060
|
+
;// ./node_modules/d3-format/src/formatGroup.js
|
|
29984
30061
|
/* harmony default export */ function formatGroup(grouping, thousands) {
|
|
29985
30062
|
return function(value, width) {
|
|
29986
30063
|
var i = value.length, t = [], j = 0, g = grouping[0], length = 0;
|
|
@@ -29994,7 +30071,7 @@ function formatDecimalParts(x, p) {
|
|
|
29994
30071
|
};
|
|
29995
30072
|
}
|
|
29996
30073
|
|
|
29997
|
-
;//
|
|
30074
|
+
;// ./node_modules/d3-format/src/formatNumerals.js
|
|
29998
30075
|
/* harmony default export */ function formatNumerals(numerals) {
|
|
29999
30076
|
return function(value) {
|
|
30000
30077
|
return value.replace(/[0-9]/g, function(i) {
|
|
@@ -30003,7 +30080,7 @@ function formatDecimalParts(x, p) {
|
|
|
30003
30080
|
};
|
|
30004
30081
|
}
|
|
30005
30082
|
|
|
30006
|
-
;//
|
|
30083
|
+
;// ./node_modules/d3-format/src/formatTrim.js
|
|
30007
30084
|
/* harmony default export */ function formatTrim(s) {
|
|
30008
30085
|
out: for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) {
|
|
30009
30086
|
switch (s[i]) {
|
|
@@ -30023,7 +30100,7 @@ function formatDecimalParts(x, p) {
|
|
|
30023
30100
|
return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s;
|
|
30024
30101
|
}
|
|
30025
30102
|
|
|
30026
|
-
;//
|
|
30103
|
+
;// ./node_modules/d3-format/src/formatPrefixAuto.js
|
|
30027
30104
|
|
|
30028
30105
|
var prefixExponent;
|
|
30029
30106
|
/* harmony default export */ function formatPrefixAuto(x, p) {
|
|
@@ -30033,7 +30110,7 @@ var prefixExponent;
|
|
|
30033
30110
|
return i === n ? coefficient : i > n ? coefficient + new Array(i - n + 1).join("0") : i > 0 ? coefficient.slice(0, i) + "." + coefficient.slice(i) : "0." + new Array(1 - i).join("0") + formatDecimalParts(x, Math.max(0, p + i - 1))[0];
|
|
30034
30111
|
}
|
|
30035
30112
|
|
|
30036
|
-
;//
|
|
30113
|
+
;// ./node_modules/d3-format/src/formatRounded.js
|
|
30037
30114
|
|
|
30038
30115
|
/* harmony default export */ function formatRounded(x, p) {
|
|
30039
30116
|
var d = formatDecimalParts(x, p);
|
|
@@ -30042,7 +30119,7 @@ var prefixExponent;
|
|
|
30042
30119
|
return exponent < 0 ? "0." + new Array(-exponent).join("0") + coefficient : coefficient.length > exponent + 1 ? coefficient.slice(0, exponent + 1) + "." + coefficient.slice(exponent + 1) : coefficient + new Array(exponent - coefficient.length + 2).join("0");
|
|
30043
30120
|
}
|
|
30044
30121
|
|
|
30045
|
-
;//
|
|
30122
|
+
;// ./node_modules/d3-format/src/formatTypes.js
|
|
30046
30123
|
|
|
30047
30124
|
|
|
30048
30125
|
|
|
@@ -30062,12 +30139,12 @@ var prefixExponent;
|
|
|
30062
30139
|
"x": (x) => Math.round(x).toString(16)
|
|
30063
30140
|
});
|
|
30064
30141
|
|
|
30065
|
-
;//
|
|
30142
|
+
;// ./node_modules/d3-format/src/identity.js
|
|
30066
30143
|
/* harmony default export */ function src_identity(x) {
|
|
30067
30144
|
return x;
|
|
30068
30145
|
}
|
|
30069
30146
|
|
|
30070
|
-
;//
|
|
30147
|
+
;// ./node_modules/d3-format/src/locale.js
|
|
30071
30148
|
|
|
30072
30149
|
|
|
30073
30150
|
|
|
@@ -30148,7 +30225,7 @@ var map = Array.prototype.map, prefixes = ["y", "z", "a", "f", "p", "n", "\xB5",
|
|
|
30148
30225
|
};
|
|
30149
30226
|
}
|
|
30150
30227
|
|
|
30151
|
-
;//
|
|
30228
|
+
;// ./node_modules/d3-format/src/defaultLocale.js
|
|
30152
30229
|
|
|
30153
30230
|
var defaultLocale_locale;
|
|
30154
30231
|
var defaultLocale_format;
|
|
@@ -30165,20 +30242,20 @@ function defaultLocale_defaultLocale(definition) {
|
|
|
30165
30242
|
return defaultLocale_locale;
|
|
30166
30243
|
}
|
|
30167
30244
|
|
|
30168
|
-
;//
|
|
30245
|
+
;// ./node_modules/d3-format/src/precisionRound.js
|
|
30169
30246
|
|
|
30170
30247
|
/* harmony default export */ function precisionRound(step, max) {
|
|
30171
30248
|
step = Math.abs(step), max = Math.abs(max) - step;
|
|
30172
30249
|
return Math.max(0, exponent(max) - exponent(step)) + 1;
|
|
30173
30250
|
}
|
|
30174
30251
|
|
|
30175
|
-
;//
|
|
30252
|
+
;// ./node_modules/d3-format/src/precisionFixed.js
|
|
30176
30253
|
|
|
30177
30254
|
/* harmony default export */ function precisionFixed(step) {
|
|
30178
30255
|
return Math.max(0, -exponent(Math.abs(step)));
|
|
30179
30256
|
}
|
|
30180
30257
|
|
|
30181
|
-
;//
|
|
30258
|
+
;// ./node_modules/d3-scale/src/tickFormat.js
|
|
30182
30259
|
|
|
30183
30260
|
|
|
30184
30261
|
function tickFormat(start, stop, count, specifier) {
|
|
@@ -30207,7 +30284,7 @@ function tickFormat(start, stop, count, specifier) {
|
|
|
30207
30284
|
return defaultLocale_format(specifier);
|
|
30208
30285
|
}
|
|
30209
30286
|
|
|
30210
|
-
;//
|
|
30287
|
+
;// ./node_modules/d3-scale/src/linear.js
|
|
30211
30288
|
|
|
30212
30289
|
|
|
30213
30290
|
|
|
@@ -30266,7 +30343,7 @@ function linear_linear() {
|
|
|
30266
30343
|
return linearish(scale);
|
|
30267
30344
|
}
|
|
30268
30345
|
|
|
30269
|
-
;//
|
|
30346
|
+
;// ./node_modules/d3-scale/src/symlog.js
|
|
30270
30347
|
|
|
30271
30348
|
|
|
30272
30349
|
|
|
@@ -30295,7 +30372,7 @@ function symlog() {
|
|
|
30295
30372
|
return initRange.apply(scale, arguments);
|
|
30296
30373
|
}
|
|
30297
30374
|
|
|
30298
|
-
;//
|
|
30375
|
+
;// ./node_modules/d3-scale/src/nice.js
|
|
30299
30376
|
function nice(domain, interval) {
|
|
30300
30377
|
domain = domain.slice();
|
|
30301
30378
|
var i0 = 0, i1 = domain.length - 1, x0 = domain[i0], x1 = domain[i1], t;
|
|
@@ -30308,7 +30385,7 @@ function nice(domain, interval) {
|
|
|
30308
30385
|
return domain;
|
|
30309
30386
|
}
|
|
30310
30387
|
|
|
30311
|
-
;//
|
|
30388
|
+
;// ./node_modules/d3-scale/src/log.js
|
|
30312
30389
|
|
|
30313
30390
|
|
|
30314
30391
|
|
|
@@ -30426,7 +30503,7 @@ function log() {
|
|
|
30426
30503
|
return scale;
|
|
30427
30504
|
}
|
|
30428
30505
|
|
|
30429
|
-
;//
|
|
30506
|
+
;// ./node_modules/d3-time/src/millisecond.js
|
|
30430
30507
|
|
|
30431
30508
|
const millisecond = timeInterval(() => {
|
|
30432
30509
|
}, (date, step) => {
|
|
@@ -30448,7 +30525,7 @@ millisecond.every = (k) => {
|
|
|
30448
30525
|
};
|
|
30449
30526
|
const milliseconds = millisecond.range;
|
|
30450
30527
|
|
|
30451
|
-
;//
|
|
30528
|
+
;// ./node_modules/d3-time/src/second.js
|
|
30452
30529
|
|
|
30453
30530
|
|
|
30454
30531
|
const second = timeInterval((date) => {
|
|
@@ -30462,7 +30539,7 @@ const second = timeInterval((date) => {
|
|
|
30462
30539
|
});
|
|
30463
30540
|
const seconds = second.range;
|
|
30464
30541
|
|
|
30465
|
-
;//
|
|
30542
|
+
;// ./node_modules/d3-time/src/minute.js
|
|
30466
30543
|
|
|
30467
30544
|
|
|
30468
30545
|
const timeMinute = timeInterval((date) => {
|
|
@@ -30486,7 +30563,7 @@ const utcMinute = timeInterval((date) => {
|
|
|
30486
30563
|
});
|
|
30487
30564
|
const utcMinutes = utcMinute.range;
|
|
30488
30565
|
|
|
30489
|
-
;//
|
|
30566
|
+
;// ./node_modules/d3-time/src/hour.js
|
|
30490
30567
|
|
|
30491
30568
|
|
|
30492
30569
|
const timeHour = timeInterval((date) => {
|
|
@@ -30510,7 +30587,7 @@ const utcHour = timeInterval((date) => {
|
|
|
30510
30587
|
});
|
|
30511
30588
|
const utcHours = utcHour.range;
|
|
30512
30589
|
|
|
30513
|
-
;//
|
|
30590
|
+
;// ./node_modules/d3-time/src/month.js
|
|
30514
30591
|
|
|
30515
30592
|
const timeMonth = timeInterval((date) => {
|
|
30516
30593
|
date.setDate(1);
|
|
@@ -30535,7 +30612,7 @@ const utcMonth = timeInterval((date) => {
|
|
|
30535
30612
|
});
|
|
30536
30613
|
const utcMonths = utcMonth.range;
|
|
30537
30614
|
|
|
30538
|
-
;//
|
|
30615
|
+
;// ./node_modules/d3-time/src/ticks.js
|
|
30539
30616
|
|
|
30540
30617
|
|
|
30541
30618
|
|
|
@@ -30588,7 +30665,7 @@ const [utcTicks, utcTickInterval] = ticker(utcYear, utcMonth, utcSunday, unixDay
|
|
|
30588
30665
|
const [timeTicks, timeTickInterval] = ticker(timeYear, timeMonth, timeSunday, timeDay, timeHour, timeMinute);
|
|
30589
30666
|
|
|
30590
30667
|
|
|
30591
|
-
;//
|
|
30668
|
+
;// ./node_modules/d3-scale/src/time.js
|
|
30592
30669
|
|
|
30593
30670
|
|
|
30594
30671
|
|
|
@@ -30633,7 +30710,7 @@ function time() {
|
|
|
30633
30710
|
return initRange.apply(calendar(timeTicks, timeTickInterval, timeYear, timeMonth, timeSunday, timeDay, timeHour, timeMinute, second, timeFormat).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
|
|
30634
30711
|
}
|
|
30635
30712
|
|
|
30636
|
-
;//
|
|
30713
|
+
;// ./node_modules/d3-scale/src/utcTime.js
|
|
30637
30714
|
|
|
30638
30715
|
|
|
30639
30716
|
|
|
@@ -30642,7 +30719,7 @@ function utcTime() {
|
|
|
30642
30719
|
return initRange.apply(calendar(utcTicks, utcTickInterval, utcYear, utcMonth, utcSunday, utcDay, utcHour, utcMinute, second, utcFormat).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
|
|
30643
30720
|
}
|
|
30644
30721
|
|
|
30645
|
-
;//
|
|
30722
|
+
;// ./src/ChartInternal/internals/scale.ts
|
|
30646
30723
|
|
|
30647
30724
|
|
|
30648
30725
|
function getScale(type = "linear", min, max) {
|
|
@@ -30852,7 +30929,7 @@ function getScale(type = "linear", min, max) {
|
|
|
30852
30929
|
}
|
|
30853
30930
|
});
|
|
30854
30931
|
|
|
30855
|
-
;//
|
|
30932
|
+
;// ./src/ChartInternal/internals/size.ts
|
|
30856
30933
|
|
|
30857
30934
|
|
|
30858
30935
|
|
|
@@ -30947,8 +31024,12 @@ function getScale(type = "linear", min, max) {
|
|
|
30947
31024
|
},
|
|
30948
31025
|
updateSvgSize() {
|
|
30949
31026
|
const $$ = this;
|
|
30950
|
-
const { state: { clip, current, hasAxis, width, height }, $el: { svg } } = $$;
|
|
30951
|
-
|
|
31027
|
+
const { config, state: { clip, current, hasAxis, width, height }, $el: { svg } } = $$;
|
|
31028
|
+
if (config.resize_auto === "viewBox") {
|
|
31029
|
+
svg.attr("viewBox", `0 0 ${current.width} ${current.height}`);
|
|
31030
|
+
} else {
|
|
31031
|
+
svg.attr("width", current.width).attr("height", current.height);
|
|
31032
|
+
}
|
|
30952
31033
|
if (hasAxis) {
|
|
30953
31034
|
const brush = svg.select(`.${$SUBCHART.brush} .overlay`);
|
|
30954
31035
|
const brushSize = { width: 0, height: 0 };
|
|
@@ -31145,7 +31226,7 @@ function getScale(type = "linear", min, max) {
|
|
|
31145
31226
|
}
|
|
31146
31227
|
});
|
|
31147
31228
|
|
|
31148
|
-
;//
|
|
31229
|
+
;// ./src/ChartInternal/internals/style.ts
|
|
31149
31230
|
|
|
31150
31231
|
|
|
31151
31232
|
/* harmony default export */ var internals_style = ({
|
|
@@ -31187,14 +31268,14 @@ function getScale(type = "linear", min, max) {
|
|
|
31187
31268
|
}
|
|
31188
31269
|
});
|
|
31189
31270
|
|
|
31190
|
-
;//
|
|
31271
|
+
;// ./node_modules/d3-selection/src/selectAll.js
|
|
31191
31272
|
|
|
31192
31273
|
|
|
31193
31274
|
/* harmony default export */ function src_selectAll(selector) {
|
|
31194
31275
|
return typeof selector === "string" ? new Selection([document.querySelectorAll(selector)], [document.documentElement]) : new Selection([array(selector)], root);
|
|
31195
31276
|
}
|
|
31196
31277
|
|
|
31197
|
-
;//
|
|
31278
|
+
;// ./src/ChartInternal/internals/text.ts
|
|
31198
31279
|
|
|
31199
31280
|
|
|
31200
31281
|
|
|
@@ -31654,7 +31735,7 @@ function getTextPos(d, type) {
|
|
|
31654
31735
|
}
|
|
31655
31736
|
});
|
|
31656
31737
|
|
|
31657
|
-
;//
|
|
31738
|
+
;// ./src/ChartInternal/internals/title.ts
|
|
31658
31739
|
|
|
31659
31740
|
|
|
31660
31741
|
function getTextXPos(pos = "left", width) {
|
|
@@ -31708,7 +31789,7 @@ function getTextXPos(pos = "left", width) {
|
|
|
31708
31789
|
}
|
|
31709
31790
|
});
|
|
31710
31791
|
|
|
31711
|
-
;//
|
|
31792
|
+
;// ./src/ChartInternal/internals/tooltip.ts
|
|
31712
31793
|
|
|
31713
31794
|
|
|
31714
31795
|
|
|
@@ -31906,7 +31987,7 @@ function getTextXPos(pos = "left", width) {
|
|
|
31906
31987
|
setTooltipPosition(dataToShow, eventTarget) {
|
|
31907
31988
|
var _a, _b;
|
|
31908
31989
|
const $$ = this;
|
|
31909
|
-
const { config, scale, state, $el: { eventRect, tooltip } } = $$;
|
|
31990
|
+
const { config, scale, state, $el: { eventRect, tooltip, svg } } = $$;
|
|
31910
31991
|
const { bindto } = config.tooltip_contents;
|
|
31911
31992
|
const isRotated = config.axis_rotated;
|
|
31912
31993
|
const datum = tooltip == null ? void 0 : tooltip.datum();
|
|
@@ -31935,7 +32016,7 @@ function getTextXPos(pos = "left", width) {
|
|
|
31935
32016
|
height,
|
|
31936
32017
|
eventRect == null ? void 0 : eventRect.node(),
|
|
31937
32018
|
currPos
|
|
31938
|
-
)) != null ? _b : $$.getTooltipPosition.bind($$)(width, height, currPos);
|
|
32019
|
+
)) != null ? _b : hasViewBox(svg) ? $$.getTooltipPositionViewBox.bind($$)(width, height, currPos) : $$.getTooltipPosition.bind($$)(width, height, currPos);
|
|
31939
32020
|
["top", "left"].forEach((v) => {
|
|
31940
32021
|
const value = pos[v];
|
|
31941
32022
|
tooltip.style(v, `${value}px`);
|
|
@@ -31945,6 +32026,38 @@ function getTextXPos(pos = "left", width) {
|
|
|
31945
32026
|
});
|
|
31946
32027
|
}
|
|
31947
32028
|
},
|
|
32029
|
+
getTooltipPositionViewBox(tWidth, tHeight, currPos) {
|
|
32030
|
+
var _a, _b;
|
|
32031
|
+
const $$ = this;
|
|
32032
|
+
const { $el: { eventRect, main }, config, state } = $$;
|
|
32033
|
+
const isRotated = config.axis_rotated;
|
|
32034
|
+
const hasArcType = $$.hasArcType(void 0, ["radar"]) || state.hasFunnel || state.hasTreemap;
|
|
32035
|
+
const target = (_b = (_a = state.hasRadar ? main : eventRect) == null ? void 0 : _a.node()) != null ? _b : state.event.target;
|
|
32036
|
+
const size = 38;
|
|
32037
|
+
let { x, y } = currPos;
|
|
32038
|
+
if (state.hasAxis) {
|
|
32039
|
+
x = isRotated ? x : currPos.xAxis;
|
|
32040
|
+
y = isRotated ? currPos.xAxis : y;
|
|
32041
|
+
}
|
|
32042
|
+
const ctm = getTransformCTM(target, x, y, false);
|
|
32043
|
+
let top = ctm.y;
|
|
32044
|
+
let left = ctm.x + size;
|
|
32045
|
+
if (hasArcType) {
|
|
32046
|
+
top += tHeight;
|
|
32047
|
+
left -= size;
|
|
32048
|
+
}
|
|
32049
|
+
const rect = (hasArcType ? main.node() : target).getBoundingClientRect();
|
|
32050
|
+
if (left + tWidth > rect.right) {
|
|
32051
|
+
left = rect.right - tWidth - size;
|
|
32052
|
+
}
|
|
32053
|
+
if (top + tHeight > rect.bottom) {
|
|
32054
|
+
top -= tHeight + size;
|
|
32055
|
+
}
|
|
32056
|
+
return {
|
|
32057
|
+
top,
|
|
32058
|
+
left
|
|
32059
|
+
};
|
|
32060
|
+
},
|
|
31948
32061
|
/**
|
|
31949
32062
|
* Returns the position of the tooltip
|
|
31950
32063
|
* @param {string} tWidth Width value of tooltip element
|
|
@@ -32158,7 +32271,7 @@ function getTextXPos(pos = "left", width) {
|
|
|
32158
32271
|
}
|
|
32159
32272
|
});
|
|
32160
32273
|
|
|
32161
|
-
;//
|
|
32274
|
+
;// ./src/ChartInternal/internals/transform.ts
|
|
32162
32275
|
|
|
32163
32276
|
|
|
32164
32277
|
/* harmony default export */ var transform = ({
|
|
@@ -32231,7 +32344,7 @@ function getTextXPos(pos = "left", width) {
|
|
|
32231
32344
|
}
|
|
32232
32345
|
});
|
|
32233
32346
|
|
|
32234
|
-
;//
|
|
32347
|
+
;// ./src/ChartInternal/internals/type.ts
|
|
32235
32348
|
|
|
32236
32349
|
|
|
32237
32350
|
/* harmony default export */ var internals_type = ({
|
|
@@ -32457,7 +32570,7 @@ function getTextXPos(pos = "left", width) {
|
|
|
32457
32570
|
}
|
|
32458
32571
|
});
|
|
32459
32572
|
|
|
32460
|
-
;//
|
|
32573
|
+
;// ./node_modules/d3-shape/src/curve/basis.js
|
|
32461
32574
|
function point(that, x, y) {
|
|
32462
32575
|
that._context.bezierCurveTo(
|
|
32463
32576
|
(2 * that._x0 + that._x1) / 3,
|
|
@@ -32518,11 +32631,11 @@ Basis.prototype = {
|
|
|
32518
32631
|
return new Basis(context);
|
|
32519
32632
|
}
|
|
32520
32633
|
|
|
32521
|
-
;//
|
|
32634
|
+
;// ./node_modules/d3-shape/src/noop.js
|
|
32522
32635
|
/* harmony default export */ function src_noop() {
|
|
32523
32636
|
}
|
|
32524
32637
|
|
|
32525
|
-
;//
|
|
32638
|
+
;// ./node_modules/d3-shape/src/curve/basisClosed.js
|
|
32526
32639
|
|
|
32527
32640
|
|
|
32528
32641
|
function BasisClosed(context) {
|
|
@@ -32584,7 +32697,7 @@ BasisClosed.prototype = {
|
|
|
32584
32697
|
return new BasisClosed(context);
|
|
32585
32698
|
}
|
|
32586
32699
|
|
|
32587
|
-
;//
|
|
32700
|
+
;// ./node_modules/d3-shape/src/curve/basisOpen.js
|
|
32588
32701
|
|
|
32589
32702
|
function BasisOpen(context) {
|
|
32590
32703
|
this._context = context;
|
|
@@ -32632,7 +32745,7 @@ BasisOpen.prototype = {
|
|
|
32632
32745
|
return new BasisOpen(context);
|
|
32633
32746
|
}
|
|
32634
32747
|
|
|
32635
|
-
;//
|
|
32748
|
+
;// ./node_modules/d3-shape/src/curve/bundle.js
|
|
32636
32749
|
|
|
32637
32750
|
function Bundle(context, beta) {
|
|
32638
32751
|
this._basis = new Basis(context);
|
|
@@ -32674,7 +32787,7 @@ Bundle.prototype = {
|
|
|
32674
32787
|
return bundle;
|
|
32675
32788
|
})(0.85));
|
|
32676
32789
|
|
|
32677
|
-
;//
|
|
32790
|
+
;// ./node_modules/d3-shape/src/curve/cardinal.js
|
|
32678
32791
|
function cardinal_point(that, x, y) {
|
|
32679
32792
|
that._context.bezierCurveTo(
|
|
32680
32793
|
that._x1 + that._k * (that._x2 - that._x0),
|
|
@@ -32743,7 +32856,7 @@ Cardinal.prototype = {
|
|
|
32743
32856
|
return cardinal;
|
|
32744
32857
|
})(0));
|
|
32745
32858
|
|
|
32746
|
-
;//
|
|
32859
|
+
;// ./node_modules/d3-shape/src/curve/cardinalClosed.js
|
|
32747
32860
|
|
|
32748
32861
|
|
|
32749
32862
|
function CardinalClosed(context, tension) {
|
|
@@ -32810,7 +32923,7 @@ CardinalClosed.prototype = {
|
|
|
32810
32923
|
return cardinal;
|
|
32811
32924
|
})(0));
|
|
32812
32925
|
|
|
32813
|
-
;//
|
|
32926
|
+
;// ./node_modules/d3-shape/src/curve/cardinalOpen.js
|
|
32814
32927
|
|
|
32815
32928
|
function CardinalOpen(context, tension) {
|
|
32816
32929
|
this._context = context;
|
|
@@ -32864,7 +32977,7 @@ CardinalOpen.prototype = {
|
|
|
32864
32977
|
return cardinal;
|
|
32865
32978
|
})(0));
|
|
32866
32979
|
|
|
32867
|
-
;//
|
|
32980
|
+
;// ./node_modules/d3-shape/src/math.js
|
|
32868
32981
|
const math_abs = Math.abs;
|
|
32869
32982
|
const atan2 = Math.atan2;
|
|
32870
32983
|
const cos = Math.cos;
|
|
@@ -32883,7 +32996,7 @@ function asin(x) {
|
|
|
32883
32996
|
return x >= 1 ? halfPi : x <= -1 ? -halfPi : Math.asin(x);
|
|
32884
32997
|
}
|
|
32885
32998
|
|
|
32886
|
-
;//
|
|
32999
|
+
;// ./node_modules/d3-shape/src/curve/catmullRom.js
|
|
32887
33000
|
|
|
32888
33001
|
|
|
32889
33002
|
function catmullRom_point(that, x, y) {
|
|
@@ -32963,7 +33076,7 @@ CatmullRom.prototype = {
|
|
|
32963
33076
|
return catmullRom;
|
|
32964
33077
|
})(0.5));
|
|
32965
33078
|
|
|
32966
|
-
;//
|
|
33079
|
+
;// ./node_modules/d3-shape/src/curve/catmullRomClosed.js
|
|
32967
33080
|
|
|
32968
33081
|
|
|
32969
33082
|
|
|
@@ -33037,7 +33150,7 @@ CatmullRomClosed.prototype = {
|
|
|
33037
33150
|
return catmullRom;
|
|
33038
33151
|
})(0.5));
|
|
33039
33152
|
|
|
33040
|
-
;//
|
|
33153
|
+
;// ./node_modules/d3-shape/src/curve/catmullRomOpen.js
|
|
33041
33154
|
|
|
33042
33155
|
|
|
33043
33156
|
function CatmullRomOpen(context, alpha) {
|
|
@@ -33098,7 +33211,7 @@ CatmullRomOpen.prototype = {
|
|
|
33098
33211
|
return catmullRom;
|
|
33099
33212
|
})(0.5));
|
|
33100
33213
|
|
|
33101
|
-
;//
|
|
33214
|
+
;// ./node_modules/d3-shape/src/curve/monotone.js
|
|
33102
33215
|
function sign(x) {
|
|
33103
33216
|
return x < 0 ? -1 : 1;
|
|
33104
33217
|
}
|
|
@@ -33195,7 +33308,7 @@ function monotoneY(context) {
|
|
|
33195
33308
|
return new MonotoneY(context);
|
|
33196
33309
|
}
|
|
33197
33310
|
|
|
33198
|
-
;//
|
|
33311
|
+
;// ./node_modules/d3-shape/src/curve/natural.js
|
|
33199
33312
|
function Natural(context) {
|
|
33200
33313
|
this._context = context;
|
|
33201
33314
|
}
|
|
@@ -33248,7 +33361,7 @@ function controlPoints(x) {
|
|
|
33248
33361
|
return new Natural(context);
|
|
33249
33362
|
}
|
|
33250
33363
|
|
|
33251
|
-
;//
|
|
33364
|
+
;// ./node_modules/d3-shape/src/curve/linearClosed.js
|
|
33252
33365
|
|
|
33253
33366
|
function LinearClosed(context) {
|
|
33254
33367
|
this._context = context;
|
|
@@ -33272,7 +33385,7 @@ LinearClosed.prototype = {
|
|
|
33272
33385
|
return new LinearClosed(context);
|
|
33273
33386
|
}
|
|
33274
33387
|
|
|
33275
|
-
;//
|
|
33388
|
+
;// ./node_modules/d3-shape/src/curve/linear.js
|
|
33276
33389
|
function Linear(context) {
|
|
33277
33390
|
this._context = context;
|
|
33278
33391
|
}
|
|
@@ -33309,7 +33422,7 @@ Linear.prototype = {
|
|
|
33309
33422
|
return new Linear(context);
|
|
33310
33423
|
}
|
|
33311
33424
|
|
|
33312
|
-
;//
|
|
33425
|
+
;// ./node_modules/d3-shape/src/curve/step.js
|
|
33313
33426
|
function Step(context, t) {
|
|
33314
33427
|
this._context = context;
|
|
33315
33428
|
this._t = t;
|
|
@@ -33364,7 +33477,7 @@ function stepAfter(context) {
|
|
|
33364
33477
|
return new Step(context, 1);
|
|
33365
33478
|
}
|
|
33366
33479
|
|
|
33367
|
-
;//
|
|
33480
|
+
;// ./src/ChartInternal/shape/shape.ts
|
|
33368
33481
|
|
|
33369
33482
|
|
|
33370
33483
|
|
|
@@ -33789,7 +33902,7 @@ function getGroupedDataPointsFn(d) {
|
|
|
33789
33902
|
}
|
|
33790
33903
|
});
|
|
33791
33904
|
|
|
33792
|
-
;//
|
|
33905
|
+
;// ./src/ChartInternal/ChartInternal.ts
|
|
33793
33906
|
var ChartInternal_defProp = Object.defineProperty;
|
|
33794
33907
|
var ChartInternal_defNormalProp = (obj, key, value) => key in obj ? ChartInternal_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
33795
33908
|
var ChartInternal_publicField = (obj, key, value) => ChartInternal_defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -33962,8 +34075,8 @@ class ChartInternal {
|
|
|
33962
34075
|
initToRender(forced) {
|
|
33963
34076
|
const $$ = this;
|
|
33964
34077
|
const { config, state, $el: { chart } } = $$;
|
|
33965
|
-
const isHidden = () => chart
|
|
33966
|
-
const isLazy = config.render.lazy || isHidden();
|
|
34078
|
+
const isHidden = () => hasStyle(chart, { display: "none", visibility: "hidden" });
|
|
34079
|
+
const isLazy = config.render.lazy === false ? false : config.render.lazy || isHidden();
|
|
33967
34080
|
const MutationObserver = win.MutationObserver;
|
|
33968
34081
|
if (isLazy && MutationObserver && config.render.observe !== false && !forced) {
|
|
33969
34082
|
new MutationObserver((mutation, observer) => {
|
|
@@ -34079,7 +34192,7 @@ class ChartInternal {
|
|
|
34079
34192
|
if (hasAxis || hasColorPatterns || hasPolar || hasTreemap || labelsBGColor || ((_a = $$.hasLegendDefsPoint) == null ? void 0 : _a.call($$))) {
|
|
34080
34193
|
$el.defs = $el.svg.append("defs");
|
|
34081
34194
|
if (hasAxis) {
|
|
34082
|
-
["id", "idXAxis", "idYAxis", "idGrid"].forEach((v) => {
|
|
34195
|
+
["id", "idXAxis", "idYAxis", "idY2Axis", "idGrid"].forEach((v) => {
|
|
34083
34196
|
$$.appendClip($el.defs, state.clip[v]);
|
|
34084
34197
|
});
|
|
34085
34198
|
}
|
|
@@ -34324,7 +34437,7 @@ class ChartInternal {
|
|
|
34324
34437
|
const resizeFunction = generateResize(config.resize_timer);
|
|
34325
34438
|
const list = [];
|
|
34326
34439
|
list.push(() => callFn(config.onresize, $$.api));
|
|
34327
|
-
if (config.resize_auto) {
|
|
34440
|
+
if (config.resize_auto === true) {
|
|
34328
34441
|
list.push(() => {
|
|
34329
34442
|
state.resizing = true;
|
|
34330
34443
|
if (config.legend_show) {
|
|
@@ -34382,7 +34495,7 @@ util_extend(ChartInternal.prototype, [
|
|
|
34382
34495
|
internals_type
|
|
34383
34496
|
]);
|
|
34384
34497
|
|
|
34385
|
-
;//
|
|
34498
|
+
;// ./src/config/config.ts
|
|
34386
34499
|
|
|
34387
34500
|
function loadConfig(config) {
|
|
34388
34501
|
const thisConfig = this.config;
|
|
@@ -34412,7 +34525,7 @@ function loadConfig(config) {
|
|
|
34412
34525
|
}
|
|
34413
34526
|
}
|
|
34414
34527
|
|
|
34415
|
-
;//
|
|
34528
|
+
;// ./src/Chart/api/chart.ts
|
|
34416
34529
|
|
|
34417
34530
|
|
|
34418
34531
|
/* harmony default export */ var chart = ({
|
|
@@ -34575,7 +34688,7 @@ function loadConfig(config) {
|
|
|
34575
34688
|
}
|
|
34576
34689
|
});
|
|
34577
34690
|
|
|
34578
|
-
;//
|
|
34691
|
+
;// ./src/Chart/api/color.ts
|
|
34579
34692
|
/* harmony default export */ var api_color = ({
|
|
34580
34693
|
/**
|
|
34581
34694
|
* Get the color
|
|
@@ -34592,7 +34705,7 @@ function loadConfig(config) {
|
|
|
34592
34705
|
}
|
|
34593
34706
|
});
|
|
34594
34707
|
|
|
34595
|
-
;//
|
|
34708
|
+
;// ./src/Chart/api/data.ts
|
|
34596
34709
|
|
|
34597
34710
|
const api_data_data = function(targetIds) {
|
|
34598
34711
|
const { targets } = this.internal.data;
|
|
@@ -34747,7 +34860,7 @@ util_extend(api_data_data, {
|
|
|
34747
34860
|
});
|
|
34748
34861
|
/* harmony default export */ var api_data = ({ data: api_data_data });
|
|
34749
34862
|
|
|
34750
|
-
;//
|
|
34863
|
+
;// ./src/Chart/api/export.ts
|
|
34751
34864
|
|
|
34752
34865
|
|
|
34753
34866
|
|
|
@@ -34943,7 +35056,7 @@ function renderText(ctx, glyph) {
|
|
|
34943
35056
|
}
|
|
34944
35057
|
});
|
|
34945
35058
|
|
|
34946
|
-
;//
|
|
35059
|
+
;// ./src/Chart/api/focus.ts
|
|
34947
35060
|
|
|
34948
35061
|
|
|
34949
35062
|
/* harmony default export */ var api_focus = ({
|
|
@@ -35050,7 +35163,7 @@ function renderText(ctx, glyph) {
|
|
|
35050
35163
|
}
|
|
35051
35164
|
});
|
|
35052
35165
|
|
|
35053
|
-
;//
|
|
35166
|
+
;// ./src/Chart/api/legend.ts
|
|
35054
35167
|
const legend_legend = {
|
|
35055
35168
|
/**
|
|
35056
35169
|
* Show legend for each target.
|
|
@@ -35104,7 +35217,7 @@ const legend_legend = {
|
|
|
35104
35217
|
};
|
|
35105
35218
|
/* harmony default export */ var api_legend = ({ legend: legend_legend });
|
|
35106
35219
|
|
|
35107
|
-
;//
|
|
35220
|
+
;// ./src/Chart/api/load.ts
|
|
35108
35221
|
|
|
35109
35222
|
|
|
35110
35223
|
|
|
@@ -35317,7 +35430,7 @@ const legend_legend = {
|
|
|
35317
35430
|
}
|
|
35318
35431
|
});
|
|
35319
35432
|
|
|
35320
|
-
;//
|
|
35433
|
+
;// ./src/Chart/api/show.ts
|
|
35321
35434
|
|
|
35322
35435
|
function showHide(show, targetIdsValue, options) {
|
|
35323
35436
|
const $$ = this.internal;
|
|
@@ -35420,7 +35533,7 @@ function showHide(show, targetIdsValue, options) {
|
|
|
35420
35533
|
}
|
|
35421
35534
|
});
|
|
35422
35535
|
|
|
35423
|
-
;//
|
|
35536
|
+
;// ./src/Chart/api/tooltip.ts
|
|
35424
35537
|
|
|
35425
35538
|
|
|
35426
35539
|
const tooltip_tooltip = {
|
|
@@ -35543,7 +35656,7 @@ const tooltip_tooltip = {
|
|
|
35543
35656
|
};
|
|
35544
35657
|
/* harmony default export */ var api_tooltip = ({ tooltip: tooltip_tooltip });
|
|
35545
35658
|
|
|
35546
|
-
;//
|
|
35659
|
+
;// ./src/Chart/Chart.ts
|
|
35547
35660
|
var Chart_defProp = Object.defineProperty;
|
|
35548
35661
|
var Chart_defNormalProp = (obj, key, value) => key in obj ? Chart_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35549
35662
|
var Chart_publicField = (obj, key, value) => Chart_defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -35598,7 +35711,7 @@ util_extend(Chart.prototype, [
|
|
|
35598
35711
|
api_tooltip
|
|
35599
35712
|
]);
|
|
35600
35713
|
|
|
35601
|
-
;//
|
|
35714
|
+
;// ./src/Chart/api/selection.ts
|
|
35602
35715
|
|
|
35603
35716
|
|
|
35604
35717
|
|
|
@@ -35709,7 +35822,7 @@ function setSelection(isSelection = false, ids, indices, resetOther) {
|
|
|
35709
35822
|
}
|
|
35710
35823
|
});
|
|
35711
35824
|
|
|
35712
|
-
;//
|
|
35825
|
+
;// ./src/Chart/api/subchart.ts
|
|
35713
35826
|
|
|
35714
35827
|
|
|
35715
35828
|
const subchart = function(domainValue) {
|
|
@@ -35838,7 +35951,7 @@ util_extend(subchart, {
|
|
|
35838
35951
|
subchart
|
|
35839
35952
|
});
|
|
35840
35953
|
|
|
35841
|
-
;//
|
|
35954
|
+
;// ./node_modules/d3-interpolate/src/zoom.js
|
|
35842
35955
|
var epsilon2 = 1e-12;
|
|
35843
35956
|
function cosh(x) {
|
|
35844
35957
|
return ((x = Math.exp(x)) + 1 / x) / 2;
|
|
@@ -35883,10 +35996,10 @@ function tanh(x) {
|
|
|
35883
35996
|
return zoom;
|
|
35884
35997
|
})(Math.SQRT2, 2, 4));
|
|
35885
35998
|
|
|
35886
|
-
;//
|
|
35999
|
+
;// ./node_modules/d3-zoom/src/constant.js
|
|
35887
36000
|
/* harmony default export */ var d3_zoom_src_constant = ((x) => () => x);
|
|
35888
36001
|
|
|
35889
|
-
;//
|
|
36002
|
+
;// ./node_modules/d3-zoom/src/event.js
|
|
35890
36003
|
function ZoomEvent(type, {
|
|
35891
36004
|
sourceEvent,
|
|
35892
36005
|
target,
|
|
@@ -35902,7 +36015,7 @@ function ZoomEvent(type, {
|
|
|
35902
36015
|
});
|
|
35903
36016
|
}
|
|
35904
36017
|
|
|
35905
|
-
;//
|
|
36018
|
+
;// ./node_modules/d3-zoom/src/transform.js
|
|
35906
36019
|
function Transform(k, x, y) {
|
|
35907
36020
|
this.k = k;
|
|
35908
36021
|
this.x = x;
|
|
@@ -35951,7 +36064,7 @@ function transform_transform(node) {
|
|
|
35951
36064
|
return node.__zoom;
|
|
35952
36065
|
}
|
|
35953
36066
|
|
|
35954
|
-
;//
|
|
36067
|
+
;// ./node_modules/d3-zoom/src/noevent.js
|
|
35955
36068
|
function src_noevent_nopropagation(event) {
|
|
35956
36069
|
event.stopImmediatePropagation();
|
|
35957
36070
|
}
|
|
@@ -35960,7 +36073,7 @@ function src_noevent_nopropagation(event) {
|
|
|
35960
36073
|
event.stopImmediatePropagation();
|
|
35961
36074
|
}
|
|
35962
36075
|
|
|
35963
|
-
;//
|
|
36076
|
+
;// ./node_modules/d3-zoom/src/zoom.js
|
|
35964
36077
|
|
|
35965
36078
|
|
|
35966
36079
|
|
|
@@ -36284,11 +36397,11 @@ function defaultConstrain(transform, extent, translateExtent) {
|
|
|
36284
36397
|
return zoom;
|
|
36285
36398
|
}
|
|
36286
36399
|
|
|
36287
|
-
;//
|
|
36400
|
+
;// ./node_modules/d3-zoom/src/index.js
|
|
36288
36401
|
|
|
36289
36402
|
|
|
36290
36403
|
|
|
36291
|
-
;//
|
|
36404
|
+
;// ./src/Chart/api/zoom.ts
|
|
36292
36405
|
|
|
36293
36406
|
|
|
36294
36407
|
const zoom = function(domainValue) {
|
|
@@ -36455,7 +36568,7 @@ util_extend(zoom, {
|
|
|
36455
36568
|
}
|
|
36456
36569
|
});
|
|
36457
36570
|
|
|
36458
|
-
;//
|
|
36571
|
+
;// ./src/ChartInternal/interactions/subchart.ts
|
|
36459
36572
|
|
|
36460
36573
|
|
|
36461
36574
|
|
|
@@ -36722,7 +36835,7 @@ util_extend(zoom, {
|
|
|
36722
36835
|
}
|
|
36723
36836
|
});
|
|
36724
36837
|
|
|
36725
|
-
;//
|
|
36838
|
+
;// ./src/ChartInternal/interactions/zoom.ts
|
|
36726
36839
|
|
|
36727
36840
|
|
|
36728
36841
|
|
|
@@ -36737,7 +36850,7 @@ util_extend(zoom, {
|
|
|
36737
36850
|
const $$ = this;
|
|
36738
36851
|
$$.scale.zoom = null;
|
|
36739
36852
|
$$.generateZoom();
|
|
36740
|
-
$$.initZoomBehaviour();
|
|
36853
|
+
$$.config.zoom_type === "drag" && $$.initZoomBehaviour();
|
|
36741
36854
|
},
|
|
36742
36855
|
/**
|
|
36743
36856
|
* Bind zoom event
|
|
@@ -36778,6 +36891,9 @@ util_extend(zoom, {
|
|
|
36778
36891
|
const isRotated = config.axis_rotated;
|
|
36779
36892
|
(_a = org.xScale) == null ? void 0 : _a.range(scale.x.range());
|
|
36780
36893
|
const newScale = transform[isRotated ? "rescaleY" : "rescaleX"](org.xScale || scale.x);
|
|
36894
|
+
if (newScale.domain().some((v) => /(Invalid Date|NaN)/.test(v.toString()))) {
|
|
36895
|
+
return;
|
|
36896
|
+
}
|
|
36781
36897
|
const domain = $$.trimXDomain(newScale.domain());
|
|
36782
36898
|
const rescale = config.zoom_rescale;
|
|
36783
36899
|
newScale.domain(domain, org.xDomain);
|
|
@@ -37015,7 +37131,7 @@ util_extend(zoom, {
|
|
|
37015
37131
|
}
|
|
37016
37132
|
});
|
|
37017
37133
|
|
|
37018
|
-
;//
|
|
37134
|
+
;// ./src/ChartInternal/interactions/drag.ts
|
|
37019
37135
|
|
|
37020
37136
|
|
|
37021
37137
|
|
|
@@ -37101,7 +37217,7 @@ util_extend(zoom, {
|
|
|
37101
37217
|
}
|
|
37102
37218
|
});
|
|
37103
37219
|
|
|
37104
|
-
;//
|
|
37220
|
+
;// ./src/ChartInternal/internals/selection.ts
|
|
37105
37221
|
var selection_defProp = Object.defineProperty;
|
|
37106
37222
|
var __defProps = Object.defineProperties;
|
|
37107
37223
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
@@ -37260,7 +37376,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
37260
37376
|
}
|
|
37261
37377
|
}));
|
|
37262
37378
|
|
|
37263
|
-
;//
|
|
37379
|
+
;// ./src/config/Options/data/selection.ts
|
|
37264
37380
|
/* harmony default export */ var data_selection = ({
|
|
37265
37381
|
/**
|
|
37266
37382
|
* Set data selection enabled<br><br>
|
|
@@ -37387,7 +37503,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
37387
37503
|
}
|
|
37388
37504
|
});
|
|
37389
37505
|
|
|
37390
|
-
;//
|
|
37506
|
+
;// ./src/config/Options/interaction/subchart.ts
|
|
37391
37507
|
/* harmony default export */ var interaction_subchart = ({
|
|
37392
37508
|
/**
|
|
37393
37509
|
* Set subchart options.
|
|
@@ -37455,7 +37571,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
37455
37571
|
}
|
|
37456
37572
|
});
|
|
37457
37573
|
|
|
37458
|
-
;//
|
|
37574
|
+
;// ./src/config/Options/interaction/zoom.ts
|
|
37459
37575
|
/* harmony default export */ var interaction_zoom = ({
|
|
37460
37576
|
/**
|
|
37461
37577
|
* Set zoom options
|
|
@@ -37536,7 +37652,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
37536
37652
|
zoom_x_max: void 0
|
|
37537
37653
|
});
|
|
37538
37654
|
|
|
37539
|
-
;//
|
|
37655
|
+
;// ./src/config/resolver/interaction.ts
|
|
37540
37656
|
|
|
37541
37657
|
|
|
37542
37658
|
|
|
@@ -37570,7 +37686,7 @@ let zoomModule = () => {
|
|
|
37570
37686
|
return (zoomModule = () => true)();
|
|
37571
37687
|
};
|
|
37572
37688
|
|
|
37573
|
-
;//
|
|
37689
|
+
;// ./src/Chart/api/axis.ts
|
|
37574
37690
|
|
|
37575
37691
|
function setMinMax($$, type, value) {
|
|
37576
37692
|
const { config } = $$;
|
|
@@ -37777,7 +37893,7 @@ const axis = {
|
|
|
37777
37893
|
};
|
|
37778
37894
|
/* harmony default export */ var api_axis = ({ axis });
|
|
37779
37895
|
|
|
37780
|
-
;//
|
|
37896
|
+
;// ./src/Chart/api/category.ts
|
|
37781
37897
|
|
|
37782
37898
|
/* harmony default export */ var api_category = ({
|
|
37783
37899
|
/**
|
|
@@ -37825,7 +37941,7 @@ const axis = {
|
|
|
37825
37941
|
}
|
|
37826
37942
|
});
|
|
37827
37943
|
|
|
37828
|
-
;//
|
|
37944
|
+
;// ./src/Chart/api/flow.ts
|
|
37829
37945
|
|
|
37830
37946
|
/* harmony default export */ var flow = ({
|
|
37831
37947
|
/**
|
|
@@ -37998,7 +38114,7 @@ const axis = {
|
|
|
37998
38114
|
}
|
|
37999
38115
|
});
|
|
38000
38116
|
|
|
38001
|
-
;//
|
|
38117
|
+
;// ./src/Chart/api/grid.ts
|
|
38002
38118
|
|
|
38003
38119
|
function grid(grids, axisId) {
|
|
38004
38120
|
const $$ = this.internal;
|
|
@@ -38131,7 +38247,7 @@ util_extend(ygrids, {
|
|
|
38131
38247
|
});
|
|
38132
38248
|
/* harmony default export */ var api_grid = ({ xgrids, ygrids });
|
|
38133
38249
|
|
|
38134
|
-
;//
|
|
38250
|
+
;// ./src/Chart/api/group.ts
|
|
38135
38251
|
|
|
38136
38252
|
/* harmony default export */ var group = ({
|
|
38137
38253
|
/**
|
|
@@ -38159,7 +38275,7 @@ util_extend(ygrids, {
|
|
|
38159
38275
|
}
|
|
38160
38276
|
});
|
|
38161
38277
|
|
|
38162
|
-
;//
|
|
38278
|
+
;// ./src/Chart/api/regions.ts
|
|
38163
38279
|
|
|
38164
38280
|
|
|
38165
38281
|
function regionsFn(regions2, isAdd = false) {
|
|
@@ -38265,7 +38381,7 @@ util_extend(regions, {
|
|
|
38265
38381
|
});
|
|
38266
38382
|
/* harmony default export */ var api_regions = ({ regions });
|
|
38267
38383
|
|
|
38268
|
-
;//
|
|
38384
|
+
;// ./src/Chart/api/x.ts
|
|
38269
38385
|
|
|
38270
38386
|
/* harmony default export */ var x = ({
|
|
38271
38387
|
/**
|
|
@@ -38329,12 +38445,12 @@ util_extend(regions, {
|
|
|
38329
38445
|
}
|
|
38330
38446
|
});
|
|
38331
38447
|
|
|
38332
|
-
;//
|
|
38448
|
+
;// ./node_modules/d3-axis/src/identity.js
|
|
38333
38449
|
/* harmony default export */ function d3_axis_src_identity(x) {
|
|
38334
38450
|
return x;
|
|
38335
38451
|
}
|
|
38336
38452
|
|
|
38337
|
-
;//
|
|
38453
|
+
;// ./node_modules/d3-axis/src/axis.js
|
|
38338
38454
|
|
|
38339
38455
|
var axis_top = 1, right = 2, bottom = 3, left = 4, axis_epsilon = 1e-6;
|
|
38340
38456
|
function translateX(x) {
|
|
@@ -38432,7 +38548,7 @@ function axisLeft(scale) {
|
|
|
38432
38548
|
return axis_axis(left, scale);
|
|
38433
38549
|
}
|
|
38434
38550
|
|
|
38435
|
-
;//
|
|
38551
|
+
;// ./src/ChartInternal/Axis/AxisRendererHelper.ts
|
|
38436
38552
|
var AxisRendererHelper_defProp = Object.defineProperty;
|
|
38437
38553
|
var AxisRendererHelper_defNormalProp = (obj, key, value) => key in obj ? AxisRendererHelper_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
38438
38554
|
var AxisRendererHelper_publicField = (obj, key, value) => AxisRendererHelper_defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -38455,16 +38571,17 @@ class AxisRendererHelper {
|
|
|
38455
38571
|
}
|
|
38456
38572
|
/**
|
|
38457
38573
|
* Compute a character dimension
|
|
38458
|
-
* @param {d3.selection}
|
|
38574
|
+
* @param {d3.selection} text SVG text selection
|
|
38575
|
+
* @param {boolean} memoize memoize the calculated size
|
|
38459
38576
|
* @returns {{w: number, h: number}}
|
|
38460
38577
|
* @private
|
|
38461
38578
|
*/
|
|
38462
|
-
static getSizeFor1Char(
|
|
38579
|
+
static getSizeFor1Char(text, memoize = true) {
|
|
38463
38580
|
const size = {
|
|
38464
38581
|
w: 5.5,
|
|
38465
38582
|
h: 11.5
|
|
38466
38583
|
};
|
|
38467
|
-
!
|
|
38584
|
+
!text.empty() && text.text("0").call((el) => {
|
|
38468
38585
|
try {
|
|
38469
38586
|
const { width, height } = el.node().getBBox();
|
|
38470
38587
|
if (width && height) {
|
|
@@ -38475,7 +38592,9 @@ class AxisRendererHelper {
|
|
|
38475
38592
|
el.text("");
|
|
38476
38593
|
}
|
|
38477
38594
|
});
|
|
38478
|
-
|
|
38595
|
+
if (memoize) {
|
|
38596
|
+
this.getSizeFor1Char = () => size;
|
|
38597
|
+
}
|
|
38479
38598
|
return size;
|
|
38480
38599
|
}
|
|
38481
38600
|
/**
|
|
@@ -38488,7 +38607,10 @@ class AxisRendererHelper {
|
|
|
38488
38607
|
const { config } = this;
|
|
38489
38608
|
const fn = id === "x" ? (value) => `translate(${value + config.tickOffset},0)` : (value) => `translate(0,${value})`;
|
|
38490
38609
|
return (selection, scale) => {
|
|
38491
|
-
selection.attr("transform", (d) =>
|
|
38610
|
+
selection.attr("transform", (d) => {
|
|
38611
|
+
const x = scale(d);
|
|
38612
|
+
return isValue(d) ? fn(Math.ceil(x)) : null;
|
|
38613
|
+
});
|
|
38492
38614
|
};
|
|
38493
38615
|
}
|
|
38494
38616
|
scaleExtent(domain) {
|
|
@@ -38555,7 +38677,7 @@ class AxisRendererHelper {
|
|
|
38555
38677
|
}
|
|
38556
38678
|
}
|
|
38557
38679
|
|
|
38558
|
-
;//
|
|
38680
|
+
;// ./src/ChartInternal/Axis/AxisRenderer.ts
|
|
38559
38681
|
var AxisRenderer_defProp = Object.defineProperty;
|
|
38560
38682
|
var AxisRenderer_defNormalProp = (obj, key, value) => key in obj ? AxisRenderer_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
38561
38683
|
var AxisRenderer_publicField = (obj, key, value) => AxisRenderer_defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -38617,6 +38739,7 @@ class AxisRenderer {
|
|
|
38617
38739
|
tick: axisShow ? params.config[`${prefix}_tick_show`] : false,
|
|
38618
38740
|
text: axisShow ? params.config[`${prefix}_tick_text_show`] : false
|
|
38619
38741
|
};
|
|
38742
|
+
const evalTextSize = params.config.axis_evalTextSize;
|
|
38620
38743
|
let $g;
|
|
38621
38744
|
g.each(function() {
|
|
38622
38745
|
const g2 = src_select(this);
|
|
@@ -38639,9 +38762,10 @@ class AxisRenderer {
|
|
|
38639
38762
|
tick = tickEnter.merge(tick);
|
|
38640
38763
|
tickShow.tick && tickEnter.append("line");
|
|
38641
38764
|
tickShow.text && tickEnter.append("text");
|
|
38642
|
-
const
|
|
38765
|
+
const tickText = tick.select("text");
|
|
38766
|
+
const sizeFor1Char = isFunction(evalTextSize) ? evalTextSize.bind(ctx.params.owner.api)(tickText.node()) : AxisRendererHelper.getSizeFor1Char(tickText, evalTextSize);
|
|
38643
38767
|
const counts = [];
|
|
38644
|
-
let tspan =
|
|
38768
|
+
let tspan = tickText.selectAll("tspan").data((d, index) => {
|
|
38645
38769
|
const split = params.tickMultiline ? splitTickText(d, scale1, ticks, isLeftRight, sizeFor1Char.w) : isArray(helper.textFormatted(d)) ? helper.textFormatted(d).concat() : [helper.textFormatted(d)];
|
|
38646
38770
|
counts[index] = split.length;
|
|
38647
38771
|
return split.map((splitted) => ({ index, splitted }));
|
|
@@ -38925,7 +39049,7 @@ class AxisRenderer {
|
|
|
38925
39049
|
}
|
|
38926
39050
|
}
|
|
38927
39051
|
|
|
38928
|
-
;//
|
|
39052
|
+
;// ./src/ChartInternal/Axis/Axis.ts
|
|
38929
39053
|
var Axis_defProp = Object.defineProperty;
|
|
38930
39054
|
var Axis_defNormalProp = (obj, key, value) => key in obj ? Axis_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
38931
39055
|
var Axis_publicField = (obj, key, value) => Axis_defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -39707,7 +39831,7 @@ class Axis_Axis {
|
|
|
39707
39831
|
}
|
|
39708
39832
|
}
|
|
39709
39833
|
|
|
39710
|
-
;//
|
|
39834
|
+
;// ./src/ChartInternal/interactions/eventrect.ts
|
|
39711
39835
|
|
|
39712
39836
|
|
|
39713
39837
|
/* harmony default export */ var eventrect = ({
|
|
@@ -39973,7 +40097,7 @@ class Axis_Axis {
|
|
|
39973
40097
|
const shapeAtIndex = main.selectAll(`.${$SHAPE.shape}-${index}`).classed($COMMON.EXPANDED, true).style("cursor", isSelectable ? "pointer" : null).filter(function(d) {
|
|
39974
40098
|
return $$.isWithinShape(this, d);
|
|
39975
40099
|
});
|
|
39976
|
-
if (shapeAtIndex.empty() && !isTooltipGrouped) {
|
|
40100
|
+
if (shapeAtIndex.empty() && !isTooltipGrouped && config.interaction_onout) {
|
|
39977
40101
|
(_b = $$.hideGridFocus) == null ? void 0 : _b.call($$);
|
|
39978
40102
|
$$.hideTooltip();
|
|
39979
40103
|
!isSelectionGrouped && $$.setExpand(index);
|
|
@@ -40106,7 +40230,7 @@ class Axis_Axis {
|
|
|
40106
40230
|
$$.setOverOut(index !== -1, index);
|
|
40107
40231
|
}).on("mouseout", (event) => {
|
|
40108
40232
|
state.event = event;
|
|
40109
|
-
if (!config || $$.hasArcType() || eventReceiver.currentIdx === -1) {
|
|
40233
|
+
if (!config || $$.hasArcType() || eventReceiver.currentIdx === -1 || !config.interaction_onout) {
|
|
40110
40234
|
return;
|
|
40111
40235
|
}
|
|
40112
40236
|
$$.hideAxisGridFocus();
|
|
@@ -40141,7 +40265,7 @@ class Axis_Axis {
|
|
|
40141
40265
|
*/
|
|
40142
40266
|
generateEventRectsForMultipleXs(eventRectEnter) {
|
|
40143
40267
|
const $$ = this;
|
|
40144
|
-
const { state } = $$;
|
|
40268
|
+
const { config, state } = $$;
|
|
40145
40269
|
eventRectEnter.on("click", function(event) {
|
|
40146
40270
|
state.event = event;
|
|
40147
40271
|
$$.clickHandlerForMultipleXS.bind(this)($$);
|
|
@@ -40152,7 +40276,7 @@ class Axis_Axis {
|
|
|
40152
40276
|
$$.selectRectForMultipleXs(this);
|
|
40153
40277
|
}).on("mouseout", (event) => {
|
|
40154
40278
|
state.event = event;
|
|
40155
|
-
if (!$$.config || $$.hasArcType()) {
|
|
40279
|
+
if (!$$.config || $$.hasArcType() || !config.interaction_onout) {
|
|
40156
40280
|
return;
|
|
40157
40281
|
}
|
|
40158
40282
|
$$.unselectRect();
|
|
@@ -40162,13 +40286,14 @@ class Axis_Axis {
|
|
|
40162
40286
|
clickHandlerForMultipleXS(ctx) {
|
|
40163
40287
|
const $$ = ctx;
|
|
40164
40288
|
const { config, state } = $$;
|
|
40289
|
+
const pointSensitivity = config.point_sensitivity;
|
|
40165
40290
|
const targetsToShow = $$.filterTargetsToShow($$.data.targets);
|
|
40166
40291
|
if ($$.hasArcType(targetsToShow)) {
|
|
40167
40292
|
return;
|
|
40168
40293
|
}
|
|
40169
40294
|
const mouse = getPointer(state.event, this);
|
|
40170
40295
|
const closest = $$.findClosestFromTargets(targetsToShow, mouse);
|
|
40171
|
-
const sensitivity =
|
|
40296
|
+
const sensitivity = pointSensitivity === "radius" ? closest == null ? void 0 : closest.r : isFunction(pointSensitivity) ? closest && pointSensitivity(closest) : pointSensitivity;
|
|
40172
40297
|
if (!closest) {
|
|
40173
40298
|
return;
|
|
40174
40299
|
}
|
|
@@ -40184,10 +40309,10 @@ class Axis_Axis {
|
|
|
40184
40309
|
}
|
|
40185
40310
|
});
|
|
40186
40311
|
|
|
40187
|
-
;//
|
|
40312
|
+
;// ./node_modules/d3-ease/src/linear.js
|
|
40188
40313
|
const src_linear_linear = (t) => +t;
|
|
40189
40314
|
|
|
40190
|
-
;//
|
|
40315
|
+
;// ./src/ChartInternal/interactions/flow.ts
|
|
40191
40316
|
|
|
40192
40317
|
|
|
40193
40318
|
|
|
@@ -40368,7 +40493,7 @@ const src_linear_linear = (t) => +t;
|
|
|
40368
40493
|
}
|
|
40369
40494
|
});
|
|
40370
40495
|
|
|
40371
|
-
;//
|
|
40496
|
+
;// ./src/ChartInternal/internals/clip.ts
|
|
40372
40497
|
/* harmony default export */ var clip = ({
|
|
40373
40498
|
initClip() {
|
|
40374
40499
|
const $$ = this;
|
|
@@ -40462,7 +40587,7 @@ const src_linear_linear = (t) => +t;
|
|
|
40462
40587
|
}
|
|
40463
40588
|
});
|
|
40464
40589
|
|
|
40465
|
-
;//
|
|
40590
|
+
;// ./src/ChartInternal/internals/grid.ts
|
|
40466
40591
|
|
|
40467
40592
|
|
|
40468
40593
|
|
|
@@ -40807,7 +40932,7 @@ function smoothLines(el, type) {
|
|
|
40807
40932
|
}
|
|
40808
40933
|
});
|
|
40809
40934
|
|
|
40810
|
-
;//
|
|
40935
|
+
;// ./src/ChartInternal/internals/region.ts
|
|
40811
40936
|
|
|
40812
40937
|
|
|
40813
40938
|
|
|
@@ -40926,7 +41051,7 @@ function smoothLines(el, type) {
|
|
|
40926
41051
|
}
|
|
40927
41052
|
});
|
|
40928
41053
|
|
|
40929
|
-
;//
|
|
41054
|
+
;// ./src/ChartInternal/internals/size.axis.ts
|
|
40930
41055
|
|
|
40931
41056
|
/* harmony default export */ var size_axis = ({
|
|
40932
41057
|
/**
|
|
@@ -41042,7 +41167,7 @@ function smoothLines(el, type) {
|
|
|
41042
41167
|
}
|
|
41043
41168
|
});
|
|
41044
41169
|
|
|
41045
|
-
;//
|
|
41170
|
+
;// ./src/config/Options/axis/x.ts
|
|
41046
41171
|
/* harmony default export */ var axis_x = ({
|
|
41047
41172
|
/**
|
|
41048
41173
|
* Set clip-path attribute for x axis element
|
|
@@ -41754,7 +41879,7 @@ function smoothLines(el, type) {
|
|
|
41754
41879
|
axis_x_axes: []
|
|
41755
41880
|
});
|
|
41756
41881
|
|
|
41757
|
-
;//
|
|
41882
|
+
;// ./src/config/Options/axis/y.ts
|
|
41758
41883
|
/* harmony default export */ var y = ({
|
|
41759
41884
|
/**
|
|
41760
41885
|
* Set clip-path attribute for y axis element
|
|
@@ -42236,8 +42361,20 @@ function smoothLines(el, type) {
|
|
|
42236
42361
|
axis_y_axes: []
|
|
42237
42362
|
});
|
|
42238
42363
|
|
|
42239
|
-
;//
|
|
42364
|
+
;// ./src/config/Options/axis/y2.ts
|
|
42240
42365
|
/* harmony default export */ var y2 = ({
|
|
42366
|
+
/**
|
|
42367
|
+
* Set clip-path attribute for y2 axis element
|
|
42368
|
+
* - **NOTE**: `clip-path` attribute for y2 Axis is set only when `axis.y2.inner` option is true.
|
|
42369
|
+
* @name axis․y2․clipPath
|
|
42370
|
+
* @memberof Options
|
|
42371
|
+
* @type {boolean}
|
|
42372
|
+
* @default true
|
|
42373
|
+
* @example
|
|
42374
|
+
* // don't set 'clip-path' attribute
|
|
42375
|
+
* clipPath: false
|
|
42376
|
+
*/
|
|
42377
|
+
axis_y2_clipPath: true,
|
|
42241
42378
|
/**
|
|
42242
42379
|
* Show or hide y2 axis.
|
|
42243
42380
|
* - **NOTE**:
|
|
@@ -42680,7 +42817,7 @@ function smoothLines(el, type) {
|
|
|
42680
42817
|
axis_y2_axes: []
|
|
42681
42818
|
});
|
|
42682
42819
|
|
|
42683
|
-
;//
|
|
42820
|
+
;// ./src/config/Options/axis/axis.ts
|
|
42684
42821
|
var axis_defProp = Object.defineProperty;
|
|
42685
42822
|
var axis_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
42686
42823
|
var axis_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
@@ -42701,6 +42838,35 @@ var axis_spreadValues = (a, b) => {
|
|
|
42701
42838
|
|
|
42702
42839
|
|
|
42703
42840
|
/* harmony default export */ var Options_axis_axis = (axis_spreadValues(axis_spreadValues(axis_spreadValues({
|
|
42841
|
+
/**
|
|
42842
|
+
* Setup the way to evaluate tick text size.
|
|
42843
|
+
* - **NOTE:**
|
|
42844
|
+
* - Setting `false` or custom evaluator, highly recommended to memoize evaluated text dimension value to not degrade performance.
|
|
42845
|
+
* @name axis․evalTextSize
|
|
42846
|
+
* @memberof Options
|
|
42847
|
+
* @type {boolean|Function}
|
|
42848
|
+
* @default true
|
|
42849
|
+
* @example
|
|
42850
|
+
* axis: {
|
|
42851
|
+
* // will evaluate getting text size every time.
|
|
42852
|
+
* evalTextSize: false.
|
|
42853
|
+
*
|
|
42854
|
+
* // set a custom evaluator
|
|
42855
|
+
* evalTextSize: function(textElement) {
|
|
42856
|
+
* // set some character to be evaluated
|
|
42857
|
+
* text.textContent = "0";
|
|
42858
|
+
*
|
|
42859
|
+
* // get the size
|
|
42860
|
+
* const box = text.getBBox();
|
|
42861
|
+
*
|
|
42862
|
+
* // clear text
|
|
42863
|
+
* text.textContent = "";
|
|
42864
|
+
*
|
|
42865
|
+
* return { w: 7, h: 12};
|
|
42866
|
+
* }
|
|
42867
|
+
* }
|
|
42868
|
+
*/
|
|
42869
|
+
axis_evalTextSize: true,
|
|
42704
42870
|
/**
|
|
42705
42871
|
* Switch x and y axis position.
|
|
42706
42872
|
* @name axis․rotated
|
|
@@ -42748,7 +42914,7 @@ var axis_spreadValues = (a, b) => {
|
|
|
42748
42914
|
axis_tooltip: false
|
|
42749
42915
|
}, axis_x), y), y2));
|
|
42750
42916
|
|
|
42751
|
-
;//
|
|
42917
|
+
;// ./src/config/Options/common/grid.ts
|
|
42752
42918
|
/* harmony default export */ var common_grid = ({
|
|
42753
42919
|
/**
|
|
42754
42920
|
* Set related options
|
|
@@ -42821,7 +42987,7 @@ var axis_spreadValues = (a, b) => {
|
|
|
42821
42987
|
grid_lines_front: true
|
|
42822
42988
|
});
|
|
42823
42989
|
|
|
42824
|
-
;//
|
|
42990
|
+
;// ./src/config/Options/data/axis.ts
|
|
42825
42991
|
/* harmony default export */ var data_axis = ({
|
|
42826
42992
|
/**
|
|
42827
42993
|
* Specify the keys of the x values for each data.<br><br>
|
|
@@ -42966,7 +43132,7 @@ var axis_spreadValues = (a, b) => {
|
|
|
42966
43132
|
data_stack_normalize: false
|
|
42967
43133
|
});
|
|
42968
43134
|
|
|
42969
|
-
;//
|
|
43135
|
+
;// ./src/config/resolver/axis.ts
|
|
42970
43136
|
|
|
42971
43137
|
|
|
42972
43138
|
|
|
@@ -43008,30 +43174,30 @@ const options = {
|
|
|
43008
43174
|
optGrid: common_grid
|
|
43009
43175
|
};
|
|
43010
43176
|
|
|
43011
|
-
;//
|
|
43177
|
+
;// ./node_modules/d3-shape/src/array.js
|
|
43012
43178
|
var slice = Array.prototype.slice;
|
|
43013
43179
|
/* harmony default export */ function d3_shape_src_array(x) {
|
|
43014
43180
|
return typeof x === "object" && "length" in x ? x : Array.from(x);
|
|
43015
43181
|
}
|
|
43016
43182
|
|
|
43017
|
-
;//
|
|
43183
|
+
;// ./node_modules/d3-shape/src/constant.js
|
|
43018
43184
|
/* harmony default export */ function d3_shape_src_constant(x) {
|
|
43019
43185
|
return function constant() {
|
|
43020
43186
|
return x;
|
|
43021
43187
|
};
|
|
43022
43188
|
}
|
|
43023
43189
|
|
|
43024
|
-
;//
|
|
43190
|
+
;// ./node_modules/d3-shape/src/descending.js
|
|
43025
43191
|
/* harmony default export */ function src_descending(a, b) {
|
|
43026
43192
|
return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;
|
|
43027
43193
|
}
|
|
43028
43194
|
|
|
43029
|
-
;//
|
|
43195
|
+
;// ./node_modules/d3-shape/src/identity.js
|
|
43030
43196
|
/* harmony default export */ function d3_shape_src_identity(d) {
|
|
43031
43197
|
return d;
|
|
43032
43198
|
}
|
|
43033
43199
|
|
|
43034
|
-
;//
|
|
43200
|
+
;// ./node_modules/d3-shape/src/pie.js
|
|
43035
43201
|
|
|
43036
43202
|
|
|
43037
43203
|
|
|
@@ -43085,7 +43251,7 @@ var slice = Array.prototype.slice;
|
|
|
43085
43251
|
return pie;
|
|
43086
43252
|
}
|
|
43087
43253
|
|
|
43088
|
-
;//
|
|
43254
|
+
;// ./node_modules/d3-path/src/path.js
|
|
43089
43255
|
var __pow = Math.pow;
|
|
43090
43256
|
const path_pi = Math.PI, path_tau = 2 * path_pi, path_epsilon = 1e-6, tauEpsilon = path_tau - path_epsilon;
|
|
43091
43257
|
function path_append(strings) {
|
|
@@ -43180,7 +43346,7 @@ function pathRound(digits = 3) {
|
|
|
43180
43346
|
return new Path(+digits);
|
|
43181
43347
|
}
|
|
43182
43348
|
|
|
43183
|
-
;//
|
|
43349
|
+
;// ./node_modules/d3-shape/src/path.js
|
|
43184
43350
|
|
|
43185
43351
|
function withPath(shape) {
|
|
43186
43352
|
let digits = 3;
|
|
@@ -43198,7 +43364,7 @@ function withPath(shape) {
|
|
|
43198
43364
|
return () => new Path(digits);
|
|
43199
43365
|
}
|
|
43200
43366
|
|
|
43201
|
-
;//
|
|
43367
|
+
;// ./node_modules/d3-shape/src/arc.js
|
|
43202
43368
|
|
|
43203
43369
|
|
|
43204
43370
|
|
|
@@ -43330,7 +43496,7 @@ function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {
|
|
|
43330
43496
|
return arc;
|
|
43331
43497
|
}
|
|
43332
43498
|
|
|
43333
|
-
;//
|
|
43499
|
+
;// ./src/ChartInternal/shape/arc.ts
|
|
43334
43500
|
var arc_defProp = Object.defineProperty;
|
|
43335
43501
|
var arc_defProps = Object.defineProperties;
|
|
43336
43502
|
var arc_getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
@@ -44099,7 +44265,7 @@ function getAttrTweenFn(fn) {
|
|
|
44099
44265
|
selectArc(this, arcData, id);
|
|
44100
44266
|
$$.setOverOut(true, arcData);
|
|
44101
44267
|
}).on("mouseout", (event, d) => {
|
|
44102
|
-
if (state.transiting) {
|
|
44268
|
+
if (state.transiting || !config.interaction_onout) {
|
|
44103
44269
|
return;
|
|
44104
44270
|
}
|
|
44105
44271
|
state.event = event;
|
|
@@ -44174,7 +44340,7 @@ function getAttrTweenFn(fn) {
|
|
|
44174
44340
|
}
|
|
44175
44341
|
});
|
|
44176
44342
|
|
|
44177
|
-
;//
|
|
44343
|
+
;// ./node_modules/d3-shape/src/point.js
|
|
44178
44344
|
function point_x(p) {
|
|
44179
44345
|
return p[0];
|
|
44180
44346
|
}
|
|
@@ -44182,7 +44348,7 @@ function point_y(p) {
|
|
|
44182
44348
|
return p[1];
|
|
44183
44349
|
}
|
|
44184
44350
|
|
|
44185
|
-
;//
|
|
44351
|
+
;// ./node_modules/d3-shape/src/line.js
|
|
44186
44352
|
|
|
44187
44353
|
|
|
44188
44354
|
|
|
@@ -44222,7 +44388,7 @@ function point_y(p) {
|
|
|
44222
44388
|
return line;
|
|
44223
44389
|
}
|
|
44224
44390
|
|
|
44225
|
-
;//
|
|
44391
|
+
;// ./node_modules/d3-shape/src/area.js
|
|
44226
44392
|
|
|
44227
44393
|
|
|
44228
44394
|
|
|
@@ -44302,7 +44468,7 @@ function point_y(p) {
|
|
|
44302
44468
|
return area;
|
|
44303
44469
|
}
|
|
44304
44470
|
|
|
44305
|
-
;//
|
|
44471
|
+
;// ./src/ChartInternal/shape/area.ts
|
|
44306
44472
|
|
|
44307
44473
|
|
|
44308
44474
|
|
|
@@ -44435,7 +44601,7 @@ function point_y(p) {
|
|
|
44435
44601
|
}
|
|
44436
44602
|
});
|
|
44437
44603
|
|
|
44438
|
-
;//
|
|
44604
|
+
;// ./src/ChartInternal/shape/bar.ts
|
|
44439
44605
|
|
|
44440
44606
|
|
|
44441
44607
|
/* harmony default export */ var bar = ({
|
|
@@ -44633,7 +44799,7 @@ function point_y(p) {
|
|
|
44633
44799
|
}
|
|
44634
44800
|
});
|
|
44635
44801
|
|
|
44636
|
-
;//
|
|
44802
|
+
;// ./src/ChartInternal/shape/bubble.ts
|
|
44637
44803
|
|
|
44638
44804
|
|
|
44639
44805
|
/* harmony default export */ var bubble = ({
|
|
@@ -44695,7 +44861,7 @@ function point_y(p) {
|
|
|
44695
44861
|
}
|
|
44696
44862
|
});
|
|
44697
44863
|
|
|
44698
|
-
;//
|
|
44864
|
+
;// ./src/ChartInternal/shape/candlestick.ts
|
|
44699
44865
|
var candlestick_defProp = Object.defineProperty;
|
|
44700
44866
|
var candlestick_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
44701
44867
|
var candlestick_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
@@ -44891,7 +45057,7 @@ var candlestick_spreadValues = (a, b) => {
|
|
|
44891
45057
|
}
|
|
44892
45058
|
});
|
|
44893
45059
|
|
|
44894
|
-
;//
|
|
45060
|
+
;// ./src/ChartInternal/shape/funnel.ts
|
|
44895
45061
|
var funnel_defProp = Object.defineProperty;
|
|
44896
45062
|
var funnel_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
44897
45063
|
var funnel_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
@@ -45063,8 +45229,10 @@ function updateRatio(data) {
|
|
|
45063
45229
|
}
|
|
45064
45230
|
}).on(isTouch ? "touchend" : "mouseout", (event) => {
|
|
45065
45231
|
const data = getTarget(event);
|
|
45066
|
-
|
|
45067
|
-
|
|
45232
|
+
if (config.interaction_onout) {
|
|
45233
|
+
$$.hideTooltip();
|
|
45234
|
+
$$.setOverOut(false, data);
|
|
45235
|
+
}
|
|
45068
45236
|
});
|
|
45069
45237
|
}
|
|
45070
45238
|
},
|
|
@@ -45137,7 +45305,7 @@ function updateRatio(data) {
|
|
|
45137
45305
|
}
|
|
45138
45306
|
});
|
|
45139
45307
|
|
|
45140
|
-
;//
|
|
45308
|
+
;// ./src/ChartInternal/shape/gauge.ts
|
|
45141
45309
|
|
|
45142
45310
|
|
|
45143
45311
|
|
|
@@ -45215,7 +45383,7 @@ function updateRatio(data) {
|
|
|
45215
45383
|
}
|
|
45216
45384
|
});
|
|
45217
45385
|
|
|
45218
|
-
;//
|
|
45386
|
+
;// ./src/ChartInternal/shape/line.ts
|
|
45219
45387
|
|
|
45220
45388
|
|
|
45221
45389
|
|
|
@@ -45518,7 +45686,7 @@ function getRegions(d, _regions, isTimeSeries) {
|
|
|
45518
45686
|
}
|
|
45519
45687
|
});
|
|
45520
45688
|
|
|
45521
|
-
;//
|
|
45689
|
+
;// ./src/ChartInternal/shape/point.ts
|
|
45522
45690
|
|
|
45523
45691
|
|
|
45524
45692
|
|
|
@@ -45906,7 +46074,7 @@ const getTransitionName = () => getRandom();
|
|
|
45906
46074
|
}
|
|
45907
46075
|
});
|
|
45908
46076
|
|
|
45909
|
-
;//
|
|
46077
|
+
;// ./src/ChartInternal/shape/point.common.ts
|
|
45910
46078
|
|
|
45911
46079
|
|
|
45912
46080
|
|
|
@@ -46003,7 +46171,7 @@ function insertPointInfoDefs(point, id) {
|
|
|
46003
46171
|
}
|
|
46004
46172
|
});
|
|
46005
46173
|
|
|
46006
|
-
;//
|
|
46174
|
+
;// ./src/ChartInternal/shape/polar.ts
|
|
46007
46175
|
|
|
46008
46176
|
|
|
46009
46177
|
function getDataMax($$) {
|
|
@@ -46086,7 +46254,7 @@ function getDataMax($$) {
|
|
|
46086
46254
|
}
|
|
46087
46255
|
});
|
|
46088
46256
|
|
|
46089
|
-
;//
|
|
46257
|
+
;// ./src/ChartInternal/shape/radar.ts
|
|
46090
46258
|
|
|
46091
46259
|
|
|
46092
46260
|
|
|
@@ -46288,12 +46456,15 @@ const cacheKeyTextWidth = KEY.radarTextWidth;
|
|
|
46288
46456
|
},
|
|
46289
46457
|
bindRadarEvent() {
|
|
46290
46458
|
const $$ = this;
|
|
46291
|
-
const { state, $el: { radar, svg } } = $$;
|
|
46459
|
+
const { config, state, $el: { radar, svg } } = $$;
|
|
46292
46460
|
const focusOnly = $$.isPointFocusOnly();
|
|
46293
46461
|
const { inputType, transiting } = state;
|
|
46294
46462
|
const isMouse = inputType === "mouse";
|
|
46295
46463
|
const hide = (event) => {
|
|
46296
46464
|
state.event = event;
|
|
46465
|
+
if (!config.interaction_onout) {
|
|
46466
|
+
return;
|
|
46467
|
+
}
|
|
46297
46468
|
const index = $$.getDataIndexFromEvent(event);
|
|
46298
46469
|
const noIndex = isUndefined(index);
|
|
46299
46470
|
if (isMouse || noIndex) {
|
|
@@ -46349,7 +46520,7 @@ const cacheKeyTextWidth = KEY.radarTextWidth;
|
|
|
46349
46520
|
}
|
|
46350
46521
|
});
|
|
46351
46522
|
|
|
46352
|
-
;//
|
|
46523
|
+
;// ./node_modules/d3-hierarchy/src/hierarchy/count.js
|
|
46353
46524
|
function count(node) {
|
|
46354
46525
|
var sum = 0, children = node.children, i = children && children.length;
|
|
46355
46526
|
if (!i) sum = 1;
|
|
@@ -46360,7 +46531,7 @@ function count(node) {
|
|
|
46360
46531
|
return this.eachAfter(count);
|
|
46361
46532
|
}
|
|
46362
46533
|
|
|
46363
|
-
;//
|
|
46534
|
+
;// ./node_modules/d3-hierarchy/src/hierarchy/each.js
|
|
46364
46535
|
/* harmony default export */ function hierarchy_each(callback, that) {
|
|
46365
46536
|
let index = -1;
|
|
46366
46537
|
for (const node of this) {
|
|
@@ -46369,7 +46540,7 @@ function count(node) {
|
|
|
46369
46540
|
return this;
|
|
46370
46541
|
}
|
|
46371
46542
|
|
|
46372
|
-
;//
|
|
46543
|
+
;// ./node_modules/d3-hierarchy/src/hierarchy/eachBefore.js
|
|
46373
46544
|
/* harmony default export */ function eachBefore(callback, that) {
|
|
46374
46545
|
var node = this, nodes = [node], children, i, index = -1;
|
|
46375
46546
|
while (node = nodes.pop()) {
|
|
@@ -46383,7 +46554,7 @@ function count(node) {
|
|
|
46383
46554
|
return this;
|
|
46384
46555
|
}
|
|
46385
46556
|
|
|
46386
|
-
;//
|
|
46557
|
+
;// ./node_modules/d3-hierarchy/src/hierarchy/eachAfter.js
|
|
46387
46558
|
/* harmony default export */ function eachAfter(callback, that) {
|
|
46388
46559
|
var node = this, nodes = [node], next = [], children, i, n, index = -1;
|
|
46389
46560
|
while (node = nodes.pop()) {
|
|
@@ -46400,7 +46571,7 @@ function count(node) {
|
|
|
46400
46571
|
return this;
|
|
46401
46572
|
}
|
|
46402
46573
|
|
|
46403
|
-
;//
|
|
46574
|
+
;// ./node_modules/d3-hierarchy/src/hierarchy/find.js
|
|
46404
46575
|
/* harmony default export */ function hierarchy_find(callback, that) {
|
|
46405
46576
|
let index = -1;
|
|
46406
46577
|
for (const node of this) {
|
|
@@ -46410,7 +46581,7 @@ function count(node) {
|
|
|
46410
46581
|
}
|
|
46411
46582
|
}
|
|
46412
46583
|
|
|
46413
|
-
;//
|
|
46584
|
+
;// ./node_modules/d3-hierarchy/src/hierarchy/sum.js
|
|
46414
46585
|
/* harmony default export */ function sum(value) {
|
|
46415
46586
|
return this.eachAfter(function(node) {
|
|
46416
46587
|
var sum = +value(node.data) || 0, children = node.children, i = children && children.length;
|
|
@@ -46419,7 +46590,7 @@ function count(node) {
|
|
|
46419
46590
|
});
|
|
46420
46591
|
}
|
|
46421
46592
|
|
|
46422
|
-
;//
|
|
46593
|
+
;// ./node_modules/d3-hierarchy/src/hierarchy/sort.js
|
|
46423
46594
|
/* harmony default export */ function hierarchy_sort(compare) {
|
|
46424
46595
|
return this.eachBefore(function(node) {
|
|
46425
46596
|
if (node.children) {
|
|
@@ -46428,7 +46599,7 @@ function count(node) {
|
|
|
46428
46599
|
});
|
|
46429
46600
|
}
|
|
46430
46601
|
|
|
46431
|
-
;//
|
|
46602
|
+
;// ./node_modules/d3-hierarchy/src/hierarchy/path.js
|
|
46432
46603
|
/* harmony default export */ function hierarchy_path(end) {
|
|
46433
46604
|
var start = this, ancestor = leastCommonAncestor(start, end), nodes = [start];
|
|
46434
46605
|
while (start !== ancestor) {
|
|
@@ -46455,7 +46626,7 @@ function leastCommonAncestor(a, b) {
|
|
|
46455
46626
|
return c;
|
|
46456
46627
|
}
|
|
46457
46628
|
|
|
46458
|
-
;//
|
|
46629
|
+
;// ./node_modules/d3-hierarchy/src/hierarchy/ancestors.js
|
|
46459
46630
|
/* harmony default export */ function ancestors() {
|
|
46460
46631
|
var node = this, nodes = [node];
|
|
46461
46632
|
while (node = node.parent) {
|
|
@@ -46464,12 +46635,12 @@ function leastCommonAncestor(a, b) {
|
|
|
46464
46635
|
return nodes;
|
|
46465
46636
|
}
|
|
46466
46637
|
|
|
46467
|
-
;//
|
|
46638
|
+
;// ./node_modules/d3-hierarchy/src/hierarchy/descendants.js
|
|
46468
46639
|
/* harmony default export */ function descendants() {
|
|
46469
46640
|
return Array.from(this);
|
|
46470
46641
|
}
|
|
46471
46642
|
|
|
46472
|
-
;//
|
|
46643
|
+
;// ./node_modules/d3-hierarchy/src/hierarchy/leaves.js
|
|
46473
46644
|
/* harmony default export */ function leaves() {
|
|
46474
46645
|
var leaves = [];
|
|
46475
46646
|
this.eachBefore(function(node) {
|
|
@@ -46480,7 +46651,7 @@ function leastCommonAncestor(a, b) {
|
|
|
46480
46651
|
return leaves;
|
|
46481
46652
|
}
|
|
46482
46653
|
|
|
46483
|
-
;//
|
|
46654
|
+
;// ./node_modules/d3-hierarchy/src/hierarchy/links.js
|
|
46484
46655
|
/* harmony default export */ function links() {
|
|
46485
46656
|
var root = this, links = [];
|
|
46486
46657
|
root.each(function(node) {
|
|
@@ -46491,7 +46662,7 @@ function leastCommonAncestor(a, b) {
|
|
|
46491
46662
|
return links;
|
|
46492
46663
|
}
|
|
46493
46664
|
|
|
46494
|
-
;//
|
|
46665
|
+
;// ./node_modules/d3-hierarchy/src/hierarchy/iterator.js
|
|
46495
46666
|
/* harmony default export */ function* hierarchy_iterator() {
|
|
46496
46667
|
var node = this, current, next = [node], children, i, n;
|
|
46497
46668
|
do {
|
|
@@ -46507,7 +46678,7 @@ function leastCommonAncestor(a, b) {
|
|
|
46507
46678
|
} while (next.length);
|
|
46508
46679
|
}
|
|
46509
46680
|
|
|
46510
|
-
;//
|
|
46681
|
+
;// ./node_modules/d3-hierarchy/src/hierarchy/index.js
|
|
46511
46682
|
|
|
46512
46683
|
|
|
46513
46684
|
|
|
@@ -46583,7 +46754,7 @@ Node.prototype = hierarchy.prototype = {
|
|
|
46583
46754
|
[Symbol.iterator]: hierarchy_iterator
|
|
46584
46755
|
};
|
|
46585
46756
|
|
|
46586
|
-
;//
|
|
46757
|
+
;// ./node_modules/d3-hierarchy/src/treemap/round.js
|
|
46587
46758
|
/* harmony default export */ function treemap_round(node) {
|
|
46588
46759
|
node.x0 = Math.round(node.x0);
|
|
46589
46760
|
node.y0 = Math.round(node.y0);
|
|
@@ -46591,7 +46762,7 @@ Node.prototype = hierarchy.prototype = {
|
|
|
46591
46762
|
node.y1 = Math.round(node.y1);
|
|
46592
46763
|
}
|
|
46593
46764
|
|
|
46594
|
-
;//
|
|
46765
|
+
;// ./node_modules/d3-hierarchy/src/treemap/dice.js
|
|
46595
46766
|
/* harmony default export */ function dice(parent, x0, y0, x1, y1) {
|
|
46596
46767
|
var nodes = parent.children, node, i = -1, n = nodes.length, k = parent.value && (x1 - x0) / parent.value;
|
|
46597
46768
|
while (++i < n) {
|
|
@@ -46600,7 +46771,7 @@ Node.prototype = hierarchy.prototype = {
|
|
|
46600
46771
|
}
|
|
46601
46772
|
}
|
|
46602
46773
|
|
|
46603
|
-
;//
|
|
46774
|
+
;// ./node_modules/d3-hierarchy/src/treemap/slice.js
|
|
46604
46775
|
/* harmony default export */ function treemap_slice(parent, x0, y0, x1, y1) {
|
|
46605
46776
|
var nodes = parent.children, node, i = -1, n = nodes.length, k = parent.value && (y1 - y0) / parent.value;
|
|
46606
46777
|
while (++i < n) {
|
|
@@ -46609,7 +46780,7 @@ Node.prototype = hierarchy.prototype = {
|
|
|
46609
46780
|
}
|
|
46610
46781
|
}
|
|
46611
46782
|
|
|
46612
|
-
;//
|
|
46783
|
+
;// ./node_modules/d3-hierarchy/src/treemap/squarify.js
|
|
46613
46784
|
|
|
46614
46785
|
|
|
46615
46786
|
var phi = (1 + Math.sqrt(5)) / 2;
|
|
@@ -46653,7 +46824,7 @@ function squarifyRatio(ratio, parent, x0, y0, x1, y1) {
|
|
|
46653
46824
|
return squarify;
|
|
46654
46825
|
})(phi));
|
|
46655
46826
|
|
|
46656
|
-
;//
|
|
46827
|
+
;// ./node_modules/d3-hierarchy/src/accessors.js
|
|
46657
46828
|
function optional(f) {
|
|
46658
46829
|
return f == null ? null : required(f);
|
|
46659
46830
|
}
|
|
@@ -46662,7 +46833,7 @@ function required(f) {
|
|
|
46662
46833
|
return f;
|
|
46663
46834
|
}
|
|
46664
46835
|
|
|
46665
|
-
;//
|
|
46836
|
+
;// ./node_modules/d3-hierarchy/src/constant.js
|
|
46666
46837
|
function constantZero() {
|
|
46667
46838
|
return 0;
|
|
46668
46839
|
}
|
|
@@ -46672,7 +46843,7 @@ function constantZero() {
|
|
|
46672
46843
|
};
|
|
46673
46844
|
}
|
|
46674
46845
|
|
|
46675
|
-
;//
|
|
46846
|
+
;// ./node_modules/d3-hierarchy/src/treemap/index.js
|
|
46676
46847
|
|
|
46677
46848
|
|
|
46678
46849
|
|
|
@@ -46740,7 +46911,7 @@ function constantZero() {
|
|
|
46740
46911
|
return treemap;
|
|
46741
46912
|
}
|
|
46742
46913
|
|
|
46743
|
-
;//
|
|
46914
|
+
;// ./node_modules/d3-hierarchy/src/treemap/binary.js
|
|
46744
46915
|
/* harmony default export */ function binary(parent, x0, y0, x1, y1) {
|
|
46745
46916
|
var nodes = parent.children, i, n = nodes.length, sum, sums = new Array(n + 1);
|
|
46746
46917
|
for (sums[0] = sum = i = 0; i < n; ++i) {
|
|
@@ -46774,14 +46945,14 @@ function constantZero() {
|
|
|
46774
46945
|
}
|
|
46775
46946
|
}
|
|
46776
46947
|
|
|
46777
|
-
;//
|
|
46948
|
+
;// ./node_modules/d3-hierarchy/src/treemap/sliceDice.js
|
|
46778
46949
|
|
|
46779
46950
|
|
|
46780
46951
|
/* harmony default export */ function sliceDice(parent, x0, y0, x1, y1) {
|
|
46781
46952
|
(parent.depth & 1 ? treemap_slice : dice)(parent, x0, y0, x1, y1);
|
|
46782
46953
|
}
|
|
46783
46954
|
|
|
46784
|
-
;//
|
|
46955
|
+
;// ./node_modules/d3-hierarchy/src/treemap/resquarify.js
|
|
46785
46956
|
|
|
46786
46957
|
|
|
46787
46958
|
|
|
@@ -46807,7 +46978,7 @@ function constantZero() {
|
|
|
46807
46978
|
return resquarify;
|
|
46808
46979
|
})(phi));
|
|
46809
46980
|
|
|
46810
|
-
;//
|
|
46981
|
+
;// ./src/ChartInternal/shape/treemap.ts
|
|
46811
46982
|
|
|
46812
46983
|
|
|
46813
46984
|
|
|
@@ -46885,8 +47056,10 @@ function getHierachyData(data) {
|
|
|
46885
47056
|
}
|
|
46886
47057
|
}).on(isTouch ? "touchend" : "mouseout", (event) => {
|
|
46887
47058
|
const data = getTarget(event);
|
|
46888
|
-
|
|
46889
|
-
|
|
47059
|
+
if (config.interaction_onout) {
|
|
47060
|
+
$$.hideTooltip();
|
|
47061
|
+
$$.setOverOut(false, data);
|
|
47062
|
+
}
|
|
46890
47063
|
});
|
|
46891
47064
|
}
|
|
46892
47065
|
},
|
|
@@ -47015,7 +47188,7 @@ ${percentValue}%`;
|
|
|
47015
47188
|
}
|
|
47016
47189
|
});
|
|
47017
47190
|
|
|
47018
|
-
;//
|
|
47191
|
+
;// ./src/config/Options/common/point.ts
|
|
47019
47192
|
/* harmony default export */ var common_point = ({
|
|
47020
47193
|
/**
|
|
47021
47194
|
* Set point options
|
|
@@ -47171,7 +47344,7 @@ ${percentValue}%`;
|
|
|
47171
47344
|
point_type: "circle"
|
|
47172
47345
|
});
|
|
47173
47346
|
|
|
47174
|
-
;//
|
|
47347
|
+
;// ./src/config/Options/shape/area.ts
|
|
47175
47348
|
/* harmony default export */ var Options_shape_area = ({
|
|
47176
47349
|
/**
|
|
47177
47350
|
* Set area options
|
|
@@ -47237,7 +47410,7 @@ ${percentValue}%`;
|
|
|
47237
47410
|
area_zerobased: true
|
|
47238
47411
|
});
|
|
47239
47412
|
|
|
47240
|
-
;//
|
|
47413
|
+
;// ./src/config/Options/shape/bar.ts
|
|
47241
47414
|
/* harmony default export */ var shape_bar = ({
|
|
47242
47415
|
/**
|
|
47243
47416
|
* Set bar options
|
|
@@ -47380,7 +47553,7 @@ ${percentValue}%`;
|
|
|
47380
47553
|
bar_zerobased: true
|
|
47381
47554
|
});
|
|
47382
47555
|
|
|
47383
|
-
;//
|
|
47556
|
+
;// ./src/config/Options/shape/bubble.ts
|
|
47384
47557
|
/* harmony default export */ var shape_bubble = ({
|
|
47385
47558
|
/**
|
|
47386
47559
|
* Set bubble options
|
|
@@ -47409,7 +47582,7 @@ ${percentValue}%`;
|
|
|
47409
47582
|
bubble_zerobased: false
|
|
47410
47583
|
});
|
|
47411
47584
|
|
|
47412
|
-
;//
|
|
47585
|
+
;// ./src/config/Options/shape/candlestick.ts
|
|
47413
47586
|
/* harmony default export */ var shape_candlestick = ({
|
|
47414
47587
|
/**
|
|
47415
47588
|
* Set candlestick options
|
|
@@ -47464,7 +47637,7 @@ ${percentValue}%`;
|
|
|
47464
47637
|
candlestick_color_down: "red"
|
|
47465
47638
|
});
|
|
47466
47639
|
|
|
47467
|
-
;//
|
|
47640
|
+
;// ./src/config/Options/shape/line.ts
|
|
47468
47641
|
/* harmony default export */ var shape_line = ({
|
|
47469
47642
|
/**
|
|
47470
47643
|
* Set line options
|
|
@@ -47516,7 +47689,7 @@ ${percentValue}%`;
|
|
|
47516
47689
|
line_point: true
|
|
47517
47690
|
});
|
|
47518
47691
|
|
|
47519
|
-
;//
|
|
47692
|
+
;// ./src/config/Options/shape/scatter.ts
|
|
47520
47693
|
/* harmony default export */ var scatter = ({
|
|
47521
47694
|
/**
|
|
47522
47695
|
* Set scatter options
|
|
@@ -47546,7 +47719,7 @@ ${percentValue}%`;
|
|
|
47546
47719
|
scatter_zerobased: false
|
|
47547
47720
|
});
|
|
47548
47721
|
|
|
47549
|
-
;//
|
|
47722
|
+
;// ./src/config/Options/shape/spline.ts
|
|
47550
47723
|
/* harmony default export */ var spline = ({
|
|
47551
47724
|
/**
|
|
47552
47725
|
* Set spline options
|
|
@@ -47586,7 +47759,7 @@ ${percentValue}%`;
|
|
|
47586
47759
|
spline_interpolation_type: "cardinal"
|
|
47587
47760
|
});
|
|
47588
47761
|
|
|
47589
|
-
;//
|
|
47762
|
+
;// ./src/config/Options/shape/arc.ts
|
|
47590
47763
|
/* harmony default export */ var shape_arc = ({
|
|
47591
47764
|
/**
|
|
47592
47765
|
* Set arc options
|
|
@@ -47730,7 +47903,7 @@ ${percentValue}%`;
|
|
|
47730
47903
|
arc_rangeText_position: void 0
|
|
47731
47904
|
});
|
|
47732
47905
|
|
|
47733
|
-
;//
|
|
47906
|
+
;// ./src/config/Options/shape/donut.ts
|
|
47734
47907
|
/* harmony default export */ var donut = ({
|
|
47735
47908
|
/**
|
|
47736
47909
|
* Set donut options
|
|
@@ -47811,7 +47984,7 @@ ${percentValue}%`;
|
|
|
47811
47984
|
donut_startingAngle: 0
|
|
47812
47985
|
});
|
|
47813
47986
|
|
|
47814
|
-
;//
|
|
47987
|
+
;// ./src/config/Options/shape/funnel.ts
|
|
47815
47988
|
/* harmony default export */ var shape_funnel = ({
|
|
47816
47989
|
/**
|
|
47817
47990
|
* Set funnel options
|
|
@@ -47844,7 +48017,7 @@ ${percentValue}%`;
|
|
|
47844
48017
|
funnel_neck_height: 0
|
|
47845
48018
|
});
|
|
47846
48019
|
|
|
47847
|
-
;//
|
|
48020
|
+
;// ./src/config/Options/shape/gauge.ts
|
|
47848
48021
|
/* harmony default export */ var shape_gauge = ({
|
|
47849
48022
|
/**
|
|
47850
48023
|
* Set gauge options
|
|
@@ -47988,7 +48161,7 @@ ${percentValue}%`;
|
|
|
47988
48161
|
gauge_expand_duration: 50
|
|
47989
48162
|
});
|
|
47990
48163
|
|
|
47991
|
-
;//
|
|
48164
|
+
;// ./src/config/Options/shape/pie.ts
|
|
47992
48165
|
/* harmony default export */ var shape_pie = ({
|
|
47993
48166
|
/**
|
|
47994
48167
|
* Set pie options
|
|
@@ -48082,7 +48255,7 @@ ${percentValue}%`;
|
|
|
48082
48255
|
pie_startingAngle: 0
|
|
48083
48256
|
});
|
|
48084
48257
|
|
|
48085
|
-
;//
|
|
48258
|
+
;// ./src/config/Options/shape/polar.ts
|
|
48086
48259
|
/* harmony default export */ var shape_polar = ({
|
|
48087
48260
|
/**
|
|
48088
48261
|
* Set polar options
|
|
@@ -48158,7 +48331,7 @@ ${percentValue}%`;
|
|
|
48158
48331
|
polar_startingAngle: 0
|
|
48159
48332
|
});
|
|
48160
48333
|
|
|
48161
|
-
;//
|
|
48334
|
+
;// ./src/config/Options/shape/radar.ts
|
|
48162
48335
|
/* harmony default export */ var shape_radar = ({
|
|
48163
48336
|
/**
|
|
48164
48337
|
* Set radar options
|
|
@@ -48228,7 +48401,7 @@ ${percentValue}%`;
|
|
|
48228
48401
|
radar_direction_clockwise: false
|
|
48229
48402
|
});
|
|
48230
48403
|
|
|
48231
|
-
;//
|
|
48404
|
+
;// ./src/config/Options/shape/treemap.ts
|
|
48232
48405
|
/* harmony default export */ var Options_shape_treemap = ({
|
|
48233
48406
|
/**
|
|
48234
48407
|
* Set treemap options
|
|
@@ -48276,7 +48449,7 @@ ${percentValue}%`;
|
|
|
48276
48449
|
treemap_label_show: true
|
|
48277
48450
|
});
|
|
48278
48451
|
|
|
48279
|
-
;//
|
|
48452
|
+
;// ./src/config/resolver/shape.ts
|
|
48280
48453
|
|
|
48281
48454
|
|
|
48282
48455
|
|
|
@@ -48359,7 +48532,7 @@ let shape_scatter = () => (extendAxis(
|
|
|
48359
48532
|
let resolver_shape_funnel = () => (extendArc([funnel], [shape_funnel]), (resolver_shape_funnel = () => TYPE.FUNNEL)());
|
|
48360
48533
|
let resolver_shape_treemap = () => (extendAxis([shape_treemap], [Options_shape_treemap]), (resolver_shape_treemap = () => TYPE.TREEMAP)());
|
|
48361
48534
|
|
|
48362
|
-
;//
|
|
48535
|
+
;// ./src/core.ts
|
|
48363
48536
|
|
|
48364
48537
|
|
|
48365
48538
|
let defaults = {};
|
|
@@ -48371,7 +48544,7 @@ const bb = {
|
|
|
48371
48544
|
* bb.version; // "1.0.0"
|
|
48372
48545
|
* @memberof bb
|
|
48373
48546
|
*/
|
|
48374
|
-
version: "3.
|
|
48547
|
+
version: "3.14.0-next.2",
|
|
48375
48548
|
/**
|
|
48376
48549
|
* Generate chart
|
|
48377
48550
|
* - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when:
|
|
@@ -48501,7 +48674,7 @@ const bb = {
|
|
|
48501
48674
|
};
|
|
48502
48675
|
|
|
48503
48676
|
|
|
48504
|
-
;//
|
|
48677
|
+
;// ./src/index.ts
|
|
48505
48678
|
|
|
48506
48679
|
|
|
48507
48680
|
Object.keys(resolver_shape_namespaceObject).forEach((v) => resolver_shape_namespaceObject[v]());
|