billboard.js 3.12.4 → 3.13.0-next.1
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/dist/billboard.css +1 -1
- package/dist/billboard.js +198 -82
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +10 -10
- package/dist/billboard.pkgd.js +660 -981
- package/dist/billboard.pkgd.min.js +15 -15
- package/dist/plugin/billboardjs-plugin-bubblecompare.js +5 -12
- package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-sparkline.js +4 -10
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-stanford.js +6 -18
- package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-tableview.js +4 -10
- package/dist/plugin/billboardjs-plugin-tableview.min.js +5 -5
- package/dist/plugin/billboardjs-plugin-textoverlap.js +4 -10
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.js +60 -113
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +218 -434
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +299 -586
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +218 -434
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +3 -3
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +291 -573
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +2 -2
- 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 +233 -66
- package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-sparkline.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-stanford.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
- package/package.json +18 -18
- package/src/ChartInternal/ChartInternal.ts +1 -1
- package/src/ChartInternal/data/data.ts +11 -0
- package/src/ChartInternal/internals/scale.ts +13 -5
- package/src/ChartInternal/shape/line.ts +170 -41
- package/src/ChartInternal/shape/shape.ts +8 -5
- package/src/config/Options/axis/y2.ts +13 -0
- package/src/config/Options/data/axis.ts +6 -2
- package/src/config/Options/data/data.ts +7 -4
- package/src/config/Options/shape/bar.ts +22 -6
- package/src/config/const.ts +10 -4
- package/src/config/resolver/shape.ts +4 -0
- package/src/index.esm.ts +1 -0
- package/types/bb.d.ts +1 -0
- package/types/index.d.ts +1 -0
- package/types/options.d.ts +3 -3
- package/types/options.shape.d.ts +10 -1
- package/types/types.d.ts +1 -0
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.
|
|
8
|
+
* @version 3.13.0-next.1
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -19391,8 +19391,7 @@ var noop = { value: () => {
|
|
|
19391
19391
|
} };
|
|
19392
19392
|
function dispatch() {
|
|
19393
19393
|
for (var i = 0, n = arguments.length, _ = {}, t; i < n; ++i) {
|
|
19394
|
-
if (!(t = arguments[i] + "") || t in _ || /[\s.]/.test(t))
|
|
19395
|
-
throw new Error("illegal type: " + t);
|
|
19394
|
+
if (!(t = arguments[i] + "") || t in _ || /[\s.]/.test(t)) throw new Error("illegal type: " + t);
|
|
19396
19395
|
_[t] = [];
|
|
19397
19396
|
}
|
|
19398
19397
|
return new Dispatch(_);
|
|
@@ -19403,10 +19402,8 @@ function Dispatch(_) {
|
|
|
19403
19402
|
function parseTypenames(typenames, types) {
|
|
19404
19403
|
return typenames.trim().split(/^|\s+/).map(function(t) {
|
|
19405
19404
|
var name = "", i = t.indexOf(".");
|
|
19406
|
-
if (i >= 0)
|
|
19407
|
-
|
|
19408
|
-
if (t && !types.hasOwnProperty(t))
|
|
19409
|
-
throw new Error("unknown type: " + t);
|
|
19405
|
+
if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);
|
|
19406
|
+
if (t && !types.hasOwnProperty(t)) throw new Error("unknown type: " + t);
|
|
19410
19407
|
return { type: t, name };
|
|
19411
19408
|
});
|
|
19412
19409
|
}
|
|
@@ -19415,42 +19412,29 @@ Dispatch.prototype = dispatch.prototype = {
|
|
|
19415
19412
|
on: function(typename, callback) {
|
|
19416
19413
|
var _ = this._, T = parseTypenames(typename + "", _), t, i = -1, n = T.length;
|
|
19417
19414
|
if (arguments.length < 2) {
|
|
19418
|
-
while (++i < n)
|
|
19419
|
-
if ((t = (typename = T[i]).type) && (t = get(_[t], typename.name)))
|
|
19420
|
-
return t;
|
|
19415
|
+
while (++i < n) if ((t = (typename = T[i]).type) && (t = get(_[t], typename.name))) return t;
|
|
19421
19416
|
return;
|
|
19422
19417
|
}
|
|
19423
|
-
if (callback != null && typeof callback !== "function")
|
|
19424
|
-
throw new Error("invalid callback: " + callback);
|
|
19418
|
+
if (callback != null && typeof callback !== "function") throw new Error("invalid callback: " + callback);
|
|
19425
19419
|
while (++i < n) {
|
|
19426
|
-
if (t = (typename = T[i]).type)
|
|
19427
|
-
|
|
19428
|
-
else if (callback == null)
|
|
19429
|
-
for (t in _)
|
|
19430
|
-
_[t] = set(_[t], typename.name, null);
|
|
19420
|
+
if (t = (typename = T[i]).type) _[t] = set(_[t], typename.name, callback);
|
|
19421
|
+
else if (callback == null) for (t in _) _[t] = set(_[t], typename.name, null);
|
|
19431
19422
|
}
|
|
19432
19423
|
return this;
|
|
19433
19424
|
},
|
|
19434
19425
|
copy: function() {
|
|
19435
19426
|
var copy = {}, _ = this._;
|
|
19436
|
-
for (var t in _)
|
|
19437
|
-
copy[t] = _[t].slice();
|
|
19427
|
+
for (var t in _) copy[t] = _[t].slice();
|
|
19438
19428
|
return new Dispatch(copy);
|
|
19439
19429
|
},
|
|
19440
19430
|
call: function(type, that) {
|
|
19441
|
-
if ((n = arguments.length - 2) > 0)
|
|
19442
|
-
|
|
19443
|
-
|
|
19444
|
-
if (!this._.hasOwnProperty(type))
|
|
19445
|
-
throw new Error("unknown type: " + type);
|
|
19446
|
-
for (t = this._[type], i = 0, n = t.length; i < n; ++i)
|
|
19447
|
-
t[i].value.apply(that, args);
|
|
19431
|
+
if ((n = arguments.length - 2) > 0) for (var args = new Array(n), i = 0, n, t; i < n; ++i) args[i] = arguments[i + 2];
|
|
19432
|
+
if (!this._.hasOwnProperty(type)) throw new Error("unknown type: " + type);
|
|
19433
|
+
for (t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args);
|
|
19448
19434
|
},
|
|
19449
19435
|
apply: function(type, that, args) {
|
|
19450
|
-
if (!this._.hasOwnProperty(type))
|
|
19451
|
-
|
|
19452
|
-
for (var t = this._[type], i = 0, n = t.length; i < n; ++i)
|
|
19453
|
-
t[i].value.apply(that, args);
|
|
19436
|
+
if (!this._.hasOwnProperty(type)) throw new Error("unknown type: " + type);
|
|
19437
|
+
for (var t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args);
|
|
19454
19438
|
}
|
|
19455
19439
|
};
|
|
19456
19440
|
function get(type, name) {
|
|
@@ -19467,8 +19451,7 @@ function set(type, name, callback) {
|
|
|
19467
19451
|
break;
|
|
19468
19452
|
}
|
|
19469
19453
|
}
|
|
19470
|
-
if (callback != null)
|
|
19471
|
-
type.push({ name, value: callback });
|
|
19454
|
+
if (callback != null) type.push({ name, value: callback });
|
|
19472
19455
|
return type;
|
|
19473
19456
|
}
|
|
19474
19457
|
/* harmony default export */ var src_dispatch = (dispatch);
|
|
@@ -19486,13 +19469,11 @@ function none() {
|
|
|
19486
19469
|
|
|
19487
19470
|
|
|
19488
19471
|
/* harmony default export */ function selection_select(select) {
|
|
19489
|
-
if (typeof select !== "function")
|
|
19490
|
-
select = selector(select);
|
|
19472
|
+
if (typeof select !== "function") select = selector(select);
|
|
19491
19473
|
for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {
|
|
19492
19474
|
for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) {
|
|
19493
19475
|
if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {
|
|
19494
|
-
if ("__data__" in node)
|
|
19495
|
-
subnode.__data__ = node.__data__;
|
|
19476
|
+
if ("__data__" in node) subnode.__data__ = node.__data__;
|
|
19496
19477
|
subgroup[i] = subnode;
|
|
19497
19478
|
}
|
|
19498
19479
|
}
|
|
@@ -19525,10 +19506,8 @@ function arrayAll(select) {
|
|
|
19525
19506
|
};
|
|
19526
19507
|
}
|
|
19527
19508
|
/* harmony default export */ function selectAll(select) {
|
|
19528
|
-
if (typeof select === "function")
|
|
19529
|
-
|
|
19530
|
-
else
|
|
19531
|
-
select = selectorAll(select);
|
|
19509
|
+
if (typeof select === "function") select = arrayAll(select);
|
|
19510
|
+
else select = selectorAll(select);
|
|
19532
19511
|
for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) {
|
|
19533
19512
|
for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {
|
|
19534
19513
|
if (node = group[i]) {
|
|
@@ -19586,8 +19565,7 @@ function childrenFilter(match) {
|
|
|
19586
19565
|
|
|
19587
19566
|
|
|
19588
19567
|
/* harmony default export */ function selection_filter(match) {
|
|
19589
|
-
if (typeof match !== "function")
|
|
19590
|
-
match = matcher(match);
|
|
19568
|
+
if (typeof match !== "function") match = matcher(match);
|
|
19591
19569
|
for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {
|
|
19592
19570
|
for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) {
|
|
19593
19571
|
if ((node = group[i]) && match.call(node, node.__data__, i, group)) {
|
|
@@ -19691,20 +19669,16 @@ function datum(node) {
|
|
|
19691
19669
|
return node.__data__;
|
|
19692
19670
|
}
|
|
19693
19671
|
/* harmony default export */ function data(value, key) {
|
|
19694
|
-
if (!arguments.length)
|
|
19695
|
-
return Array.from(this, datum);
|
|
19672
|
+
if (!arguments.length) return Array.from(this, datum);
|
|
19696
19673
|
var bind = key ? bindKey : bindIndex, parents = this._parents, groups = this._groups;
|
|
19697
|
-
if (typeof value !== "function")
|
|
19698
|
-
value = constant(value);
|
|
19674
|
+
if (typeof value !== "function") value = constant(value);
|
|
19699
19675
|
for (var m = groups.length, update = new Array(m), enter = new Array(m), exit = new Array(m), j = 0; j < m; ++j) {
|
|
19700
19676
|
var parent = parents[j], group = groups[j], groupLength = group.length, data = arraylike(value.call(parent, parent && parent.__data__, j, parents)), dataLength = data.length, enterGroup = enter[j] = new Array(dataLength), updateGroup = update[j] = new Array(dataLength), exitGroup = exit[j] = new Array(groupLength);
|
|
19701
19677
|
bind(parent, group, enterGroup, updateGroup, exitGroup, data, key);
|
|
19702
19678
|
for (var i0 = 0, i1 = 0, previous, next; i0 < dataLength; ++i0) {
|
|
19703
19679
|
if (previous = enterGroup[i0]) {
|
|
19704
|
-
if (i0 >= i1)
|
|
19705
|
-
|
|
19706
|
-
while (!(next = updateGroup[i1]) && ++i1 < dataLength)
|
|
19707
|
-
;
|
|
19680
|
+
if (i0 >= i1) i1 = i0 + 1;
|
|
19681
|
+
while (!(next = updateGroup[i1]) && ++i1 < dataLength) ;
|
|
19708
19682
|
previous._next = next || null;
|
|
19709
19683
|
}
|
|
19710
19684
|
}
|
|
@@ -19730,20 +19704,16 @@ function arraylike(data) {
|
|
|
19730
19704
|
var enter = this.enter(), update = this, exit = this.exit();
|
|
19731
19705
|
if (typeof onenter === "function") {
|
|
19732
19706
|
enter = onenter(enter);
|
|
19733
|
-
if (enter)
|
|
19734
|
-
enter = enter.selection();
|
|
19707
|
+
if (enter) enter = enter.selection();
|
|
19735
19708
|
} else {
|
|
19736
19709
|
enter = enter.append(onenter + "");
|
|
19737
19710
|
}
|
|
19738
19711
|
if (onupdate != null) {
|
|
19739
19712
|
update = onupdate(update);
|
|
19740
|
-
if (update)
|
|
19741
|
-
update = update.selection();
|
|
19713
|
+
if (update) update = update.selection();
|
|
19742
19714
|
}
|
|
19743
|
-
if (onexit == null)
|
|
19744
|
-
|
|
19745
|
-
else
|
|
19746
|
-
onexit(exit);
|
|
19715
|
+
if (onexit == null) exit.remove();
|
|
19716
|
+
else onexit(exit);
|
|
19747
19717
|
return enter && update ? enter.merge(update).order() : update;
|
|
19748
19718
|
}
|
|
19749
19719
|
|
|
@@ -19769,8 +19739,7 @@ function arraylike(data) {
|
|
|
19769
19739
|
for (var groups = this._groups, j = -1, m = groups.length; ++j < m; ) {
|
|
19770
19740
|
for (var group = groups[j], i = group.length - 1, next = group[i], node; --i >= 0; ) {
|
|
19771
19741
|
if (node = group[i]) {
|
|
19772
|
-
if (next && node.compareDocumentPosition(next) ^ 4)
|
|
19773
|
-
next.parentNode.insertBefore(node, next);
|
|
19742
|
+
if (next && node.compareDocumentPosition(next) ^ 4) next.parentNode.insertBefore(node, next);
|
|
19774
19743
|
next = node;
|
|
19775
19744
|
}
|
|
19776
19745
|
}
|
|
@@ -19781,8 +19750,7 @@ function arraylike(data) {
|
|
|
19781
19750
|
;// CONCATENATED MODULE: ./node_modules/d3-selection/src/selection/sort.js
|
|
19782
19751
|
|
|
19783
19752
|
/* harmony default export */ function sort(compare) {
|
|
19784
|
-
if (!compare)
|
|
19785
|
-
compare = ascending;
|
|
19753
|
+
if (!compare) compare = ascending;
|
|
19786
19754
|
function compareNode(a, b) {
|
|
19787
19755
|
return a && b ? compare(a.__data__, b.__data__) : !a - !b;
|
|
19788
19756
|
}
|
|
@@ -19818,8 +19786,7 @@ function ascending(a, b) {
|
|
|
19818
19786
|
for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {
|
|
19819
19787
|
for (var group = groups[j], i = 0, n = group.length; i < n; ++i) {
|
|
19820
19788
|
var node = group[i];
|
|
19821
|
-
if (node)
|
|
19822
|
-
return node;
|
|
19789
|
+
if (node) return node;
|
|
19823
19790
|
}
|
|
19824
19791
|
}
|
|
19825
19792
|
return null;
|
|
@@ -19828,8 +19795,7 @@ function ascending(a, b) {
|
|
|
19828
19795
|
;// CONCATENATED MODULE: ./node_modules/d3-selection/src/selection/size.js
|
|
19829
19796
|
/* harmony default export */ function size() {
|
|
19830
19797
|
let size = 0;
|
|
19831
|
-
for (const node of this)
|
|
19832
|
-
++size;
|
|
19798
|
+
for (const node of this) ++size;
|
|
19833
19799
|
return size;
|
|
19834
19800
|
}
|
|
19835
19801
|
|
|
@@ -19842,8 +19808,7 @@ function ascending(a, b) {
|
|
|
19842
19808
|
/* harmony default export */ function each(callback) {
|
|
19843
19809
|
for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {
|
|
19844
19810
|
for (var group = groups[j], i = 0, n = group.length, node; i < n; ++i) {
|
|
19845
|
-
if (node = group[i])
|
|
19846
|
-
callback.call(node, node.__data__, i, group);
|
|
19811
|
+
if (node = group[i]) callback.call(node, node.__data__, i, group);
|
|
19847
19812
|
}
|
|
19848
19813
|
}
|
|
19849
19814
|
return this;
|
|
@@ -19863,8 +19828,7 @@ var xhtml = "http://www.w3.org/1999/xhtml";
|
|
|
19863
19828
|
|
|
19864
19829
|
/* harmony default export */ function namespace(name) {
|
|
19865
19830
|
var prefix = name += "", i = prefix.indexOf(":");
|
|
19866
|
-
if (i >= 0 && (prefix = name.slice(0, i)) !== "xmlns")
|
|
19867
|
-
name = name.slice(i + 1);
|
|
19831
|
+
if (i >= 0 && (prefix = name.slice(0, i)) !== "xmlns") name = name.slice(i + 1);
|
|
19868
19832
|
return namespaces.hasOwnProperty(prefix) ? { space: namespaces[prefix], local: name } : name;
|
|
19869
19833
|
}
|
|
19870
19834
|
|
|
@@ -19893,19 +19857,15 @@ function attrConstantNS(fullname, value) {
|
|
|
19893
19857
|
function attrFunction(name, value) {
|
|
19894
19858
|
return function() {
|
|
19895
19859
|
var v = value.apply(this, arguments);
|
|
19896
|
-
if (v == null)
|
|
19897
|
-
|
|
19898
|
-
else
|
|
19899
|
-
this.setAttribute(name, v);
|
|
19860
|
+
if (v == null) this.removeAttribute(name);
|
|
19861
|
+
else this.setAttribute(name, v);
|
|
19900
19862
|
};
|
|
19901
19863
|
}
|
|
19902
19864
|
function attrFunctionNS(fullname, value) {
|
|
19903
19865
|
return function() {
|
|
19904
19866
|
var v = value.apply(this, arguments);
|
|
19905
|
-
if (v == null)
|
|
19906
|
-
|
|
19907
|
-
else
|
|
19908
|
-
this.setAttributeNS(fullname.space, fullname.local, v);
|
|
19867
|
+
if (v == null) this.removeAttributeNS(fullname.space, fullname.local);
|
|
19868
|
+
else this.setAttributeNS(fullname.space, fullname.local, v);
|
|
19909
19869
|
};
|
|
19910
19870
|
}
|
|
19911
19871
|
/* harmony default export */ function attr(name, value) {
|
|
@@ -19937,10 +19897,8 @@ function styleConstant(name, value, priority) {
|
|
|
19937
19897
|
function styleFunction(name, value, priority) {
|
|
19938
19898
|
return function() {
|
|
19939
19899
|
var v = value.apply(this, arguments);
|
|
19940
|
-
if (v == null)
|
|
19941
|
-
|
|
19942
|
-
else
|
|
19943
|
-
this.style.setProperty(name, v, priority);
|
|
19900
|
+
if (v == null) this.style.removeProperty(name);
|
|
19901
|
+
else this.style.setProperty(name, v, priority);
|
|
19944
19902
|
};
|
|
19945
19903
|
}
|
|
19946
19904
|
/* harmony default export */ function style(name, value, priority) {
|
|
@@ -19964,10 +19922,8 @@ function propertyConstant(name, value) {
|
|
|
19964
19922
|
function propertyFunction(name, value) {
|
|
19965
19923
|
return function() {
|
|
19966
19924
|
var v = value.apply(this, arguments);
|
|
19967
|
-
if (v == null)
|
|
19968
|
-
|
|
19969
|
-
else
|
|
19970
|
-
this[name] = v;
|
|
19925
|
+
if (v == null) delete this[name];
|
|
19926
|
+
else this[name] = v;
|
|
19971
19927
|
};
|
|
19972
19928
|
}
|
|
19973
19929
|
/* harmony default export */ function property(name, value) {
|
|
@@ -20006,13 +19962,11 @@ ClassList.prototype = {
|
|
|
20006
19962
|
};
|
|
20007
19963
|
function classedAdd(node, names) {
|
|
20008
19964
|
var list = classList(node), i = -1, n = names.length;
|
|
20009
|
-
while (++i < n)
|
|
20010
|
-
list.add(names[i]);
|
|
19965
|
+
while (++i < n) list.add(names[i]);
|
|
20011
19966
|
}
|
|
20012
19967
|
function classedRemove(node, names) {
|
|
20013
19968
|
var list = classList(node), i = -1, n = names.length;
|
|
20014
|
-
while (++i < n)
|
|
20015
|
-
list.remove(names[i]);
|
|
19969
|
+
while (++i < n) list.remove(names[i]);
|
|
20016
19970
|
}
|
|
20017
19971
|
function classedTrue(names) {
|
|
20018
19972
|
return function() {
|
|
@@ -20033,9 +19987,7 @@ function classedFunction(names, value) {
|
|
|
20033
19987
|
var names = classArray(name + "");
|
|
20034
19988
|
if (arguments.length < 2) {
|
|
20035
19989
|
var list = classList(this.node()), i = -1, n = names.length;
|
|
20036
|
-
while (++i < n)
|
|
20037
|
-
if (!list.contains(names[i]))
|
|
20038
|
-
return false;
|
|
19990
|
+
while (++i < n) if (!list.contains(names[i])) return false;
|
|
20039
19991
|
return true;
|
|
20040
19992
|
}
|
|
20041
19993
|
return this.each((typeof value === "function" ? classedFunction : value ? classedTrue : classedFalse)(names, value));
|
|
@@ -20081,8 +20033,7 @@ function htmlFunction(value) {
|
|
|
20081
20033
|
|
|
20082
20034
|
;// CONCATENATED MODULE: ./node_modules/d3-selection/src/selection/raise.js
|
|
20083
20035
|
function raise() {
|
|
20084
|
-
if (this.nextSibling)
|
|
20085
|
-
this.parentNode.appendChild(this);
|
|
20036
|
+
if (this.nextSibling) this.parentNode.appendChild(this);
|
|
20086
20037
|
}
|
|
20087
20038
|
/* harmony default export */ function selection_raise() {
|
|
20088
20039
|
return this.each(raise);
|
|
@@ -20090,8 +20041,7 @@ function raise() {
|
|
|
20090
20041
|
|
|
20091
20042
|
;// CONCATENATED MODULE: ./node_modules/d3-selection/src/selection/lower.js
|
|
20092
20043
|
function lower() {
|
|
20093
|
-
if (this.previousSibling)
|
|
20094
|
-
this.parentNode.insertBefore(this, this.parentNode.firstChild);
|
|
20044
|
+
if (this.previousSibling) this.parentNode.insertBefore(this, this.parentNode.firstChild);
|
|
20095
20045
|
}
|
|
20096
20046
|
/* harmony default export */ function selection_lower() {
|
|
20097
20047
|
return this.each(lower);
|
|
@@ -20141,8 +20091,7 @@ function constantNull() {
|
|
|
20141
20091
|
;// CONCATENATED MODULE: ./node_modules/d3-selection/src/selection/remove.js
|
|
20142
20092
|
function remove() {
|
|
20143
20093
|
var parent = this.parentNode;
|
|
20144
|
-
if (parent)
|
|
20145
|
-
parent.removeChild(this);
|
|
20094
|
+
if (parent) parent.removeChild(this);
|
|
20146
20095
|
}
|
|
20147
20096
|
/* harmony default export */ function selection_remove() {
|
|
20148
20097
|
return this.each(remove);
|
|
@@ -20175,16 +20124,14 @@ function contextListener(listener) {
|
|
|
20175
20124
|
function on_parseTypenames(typenames) {
|
|
20176
20125
|
return typenames.trim().split(/^|\s+/).map(function(t) {
|
|
20177
20126
|
var name = "", i = t.indexOf(".");
|
|
20178
|
-
if (i >= 0)
|
|
20179
|
-
name = t.slice(i + 1), t = t.slice(0, i);
|
|
20127
|
+
if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);
|
|
20180
20128
|
return { type: t, name };
|
|
20181
20129
|
});
|
|
20182
20130
|
}
|
|
20183
20131
|
function onRemove(typename) {
|
|
20184
20132
|
return function() {
|
|
20185
20133
|
var on = this.__on;
|
|
20186
|
-
if (!on)
|
|
20187
|
-
return;
|
|
20134
|
+
if (!on) return;
|
|
20188
20135
|
for (var j = 0, i = -1, m = on.length, o; j < m; ++j) {
|
|
20189
20136
|
if (o = on[j], (!typename.type || o.type === typename.type) && o.name === typename.name) {
|
|
20190
20137
|
this.removeEventListener(o.type, o.listener, o.options);
|
|
@@ -20192,49 +20139,42 @@ function onRemove(typename) {
|
|
|
20192
20139
|
on[++i] = o;
|
|
20193
20140
|
}
|
|
20194
20141
|
}
|
|
20195
|
-
if (++i)
|
|
20196
|
-
|
|
20197
|
-
else
|
|
20198
|
-
delete this.__on;
|
|
20142
|
+
if (++i) on.length = i;
|
|
20143
|
+
else delete this.__on;
|
|
20199
20144
|
};
|
|
20200
20145
|
}
|
|
20201
20146
|
function onAdd(typename, value, options) {
|
|
20202
20147
|
return function() {
|
|
20203
20148
|
var on = this.__on, o, listener = contextListener(value);
|
|
20204
|
-
if (on)
|
|
20205
|
-
|
|
20206
|
-
|
|
20207
|
-
|
|
20208
|
-
|
|
20209
|
-
|
|
20210
|
-
return;
|
|
20211
|
-
}
|
|
20149
|
+
if (on) for (var j = 0, m = on.length; j < m; ++j) {
|
|
20150
|
+
if ((o = on[j]).type === typename.type && o.name === typename.name) {
|
|
20151
|
+
this.removeEventListener(o.type, o.listener, o.options);
|
|
20152
|
+
this.addEventListener(o.type, o.listener = listener, o.options = options);
|
|
20153
|
+
o.value = value;
|
|
20154
|
+
return;
|
|
20212
20155
|
}
|
|
20156
|
+
}
|
|
20213
20157
|
this.addEventListener(typename.type, listener, options);
|
|
20214
20158
|
o = { type: typename.type, name: typename.name, value, listener, options };
|
|
20215
|
-
if (!on)
|
|
20216
|
-
|
|
20217
|
-
else
|
|
20218
|
-
on.push(o);
|
|
20159
|
+
if (!on) this.__on = [o];
|
|
20160
|
+
else on.push(o);
|
|
20219
20161
|
};
|
|
20220
20162
|
}
|
|
20221
20163
|
/* harmony default export */ function on(typename, value, options) {
|
|
20222
20164
|
var typenames = on_parseTypenames(typename + ""), i, n = typenames.length, t;
|
|
20223
20165
|
if (arguments.length < 2) {
|
|
20224
20166
|
var on = this.node().__on;
|
|
20225
|
-
if (on)
|
|
20226
|
-
for (
|
|
20227
|
-
|
|
20228
|
-
|
|
20229
|
-
return o.value;
|
|
20230
|
-
}
|
|
20167
|
+
if (on) for (var j = 0, m = on.length, o; j < m; ++j) {
|
|
20168
|
+
for (i = 0, o = on[j]; i < n; ++i) {
|
|
20169
|
+
if ((t = typenames[i]).type === o.type && t.name === o.name) {
|
|
20170
|
+
return o.value;
|
|
20231
20171
|
}
|
|
20232
20172
|
}
|
|
20173
|
+
}
|
|
20233
20174
|
return;
|
|
20234
20175
|
}
|
|
20235
20176
|
on = value ? onAdd : onRemove;
|
|
20236
|
-
for (i = 0; i < n; ++i)
|
|
20237
|
-
this.each(on(typenames[i], value, options));
|
|
20177
|
+
for (i = 0; i < n; ++i) this.each(on(typenames[i], value, options));
|
|
20238
20178
|
return this;
|
|
20239
20179
|
}
|
|
20240
20180
|
|
|
@@ -20246,10 +20186,8 @@ function dispatchEvent(node, type, params) {
|
|
|
20246
20186
|
event = new event(type, params);
|
|
20247
20187
|
} else {
|
|
20248
20188
|
event = window.document.createEvent("Event");
|
|
20249
|
-
if (params)
|
|
20250
|
-
|
|
20251
|
-
else
|
|
20252
|
-
event.initEvent(type, false, false);
|
|
20189
|
+
if (params) event.initEvent(type, params.bubbles, params.cancelable), event.detail = params.detail;
|
|
20190
|
+
else event.initEvent(type, false, false);
|
|
20253
20191
|
}
|
|
20254
20192
|
node.dispatchEvent(event);
|
|
20255
20193
|
}
|
|
@@ -20271,8 +20209,7 @@ function dispatchFunction(type, params) {
|
|
|
20271
20209
|
/* harmony default export */ function* iterator() {
|
|
20272
20210
|
for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {
|
|
20273
20211
|
for (var group = groups[j], i = 0, n = group.length, node; i < n; ++i) {
|
|
20274
|
-
if (node = group[i])
|
|
20275
|
-
yield node;
|
|
20212
|
+
if (node = group[i]) yield node;
|
|
20276
20213
|
}
|
|
20277
20214
|
}
|
|
20278
20215
|
}
|
|
@@ -20415,8 +20352,7 @@ function yesdrag(view, noclick) {
|
|
|
20415
20352
|
}
|
|
20416
20353
|
function extend(parent, definition) {
|
|
20417
20354
|
var prototype = Object.create(parent.prototype);
|
|
20418
|
-
for (var key in definition)
|
|
20419
|
-
prototype[key] = definition[key];
|
|
20355
|
+
for (var key in definition) prototype[key] = definition[key];
|
|
20420
20356
|
return prototype;
|
|
20421
20357
|
}
|
|
20422
20358
|
|
|
@@ -20613,15 +20549,12 @@ function rgbn(n) {
|
|
|
20613
20549
|
return new Rgb(n >> 16 & 255, n >> 8 & 255, n & 255, 1);
|
|
20614
20550
|
}
|
|
20615
20551
|
function rgba(r, g, b, a) {
|
|
20616
|
-
if (a <= 0)
|
|
20617
|
-
r = g = b = NaN;
|
|
20552
|
+
if (a <= 0) r = g = b = NaN;
|
|
20618
20553
|
return new Rgb(r, g, b, a);
|
|
20619
20554
|
}
|
|
20620
20555
|
function rgbConvert(o) {
|
|
20621
|
-
if (!(o instanceof Color))
|
|
20622
|
-
|
|
20623
|
-
if (!o)
|
|
20624
|
-
return new Rgb();
|
|
20556
|
+
if (!(o instanceof Color)) o = color(o);
|
|
20557
|
+
if (!o) return new Rgb();
|
|
20625
20558
|
o = o.rgb();
|
|
20626
20559
|
return new Rgb(o.r, o.g, o.b, o.opacity);
|
|
20627
20560
|
}
|
|
@@ -20680,32 +20613,22 @@ function hex(value) {
|
|
|
20680
20613
|
return (value < 16 ? "0" : "") + value.toString(16);
|
|
20681
20614
|
}
|
|
20682
20615
|
function hsla(h, s, l, a) {
|
|
20683
|
-
if (a <= 0)
|
|
20684
|
-
|
|
20685
|
-
else if (
|
|
20686
|
-
h = s = NaN;
|
|
20687
|
-
else if (s <= 0)
|
|
20688
|
-
h = NaN;
|
|
20616
|
+
if (a <= 0) h = s = l = NaN;
|
|
20617
|
+
else if (l <= 0 || l >= 1) h = s = NaN;
|
|
20618
|
+
else if (s <= 0) h = NaN;
|
|
20689
20619
|
return new Hsl(h, s, l, a);
|
|
20690
20620
|
}
|
|
20691
20621
|
function hslConvert(o) {
|
|
20692
|
-
if (o instanceof Hsl)
|
|
20693
|
-
|
|
20694
|
-
if (!
|
|
20695
|
-
|
|
20696
|
-
if (!o)
|
|
20697
|
-
return new Hsl();
|
|
20698
|
-
if (o instanceof Hsl)
|
|
20699
|
-
return o;
|
|
20622
|
+
if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);
|
|
20623
|
+
if (!(o instanceof Color)) o = color(o);
|
|
20624
|
+
if (!o) return new Hsl();
|
|
20625
|
+
if (o instanceof Hsl) return o;
|
|
20700
20626
|
o = o.rgb();
|
|
20701
20627
|
var r = o.r / 255, g = o.g / 255, b = o.b / 255, min = Math.min(r, g, b), max = Math.max(r, g, b), h = NaN, s = max - min, l = (max + min) / 2;
|
|
20702
20628
|
if (s) {
|
|
20703
|
-
if (r === max)
|
|
20704
|
-
|
|
20705
|
-
else
|
|
20706
|
-
h = (b - r) / s + 2;
|
|
20707
|
-
else
|
|
20708
|
-
h = (r - g) / s + 4;
|
|
20629
|
+
if (r === max) h = (g - b) / s + (g < b) * 6;
|
|
20630
|
+
else if (g === max) h = (b - r) / s + 2;
|
|
20631
|
+
else h = (r - g) / s + 4;
|
|
20709
20632
|
s /= l < 0.5 ? max + min : 2 - max - min;
|
|
20710
20633
|
h *= 60;
|
|
20711
20634
|
} else {
|
|
@@ -20860,12 +20783,10 @@ var rgbBasisClosed = rgbSpline(basisClosed);
|
|
|
20860
20783
|
|
|
20861
20784
|
;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/numberArray.js
|
|
20862
20785
|
/* harmony default export */ function numberArray(a, b) {
|
|
20863
|
-
if (!b)
|
|
20864
|
-
b = [];
|
|
20786
|
+
if (!b) b = [];
|
|
20865
20787
|
var n = a ? Math.min(b.length, a.length) : 0, c = b.slice(), i;
|
|
20866
20788
|
return function(t) {
|
|
20867
|
-
for (i = 0; i < n; ++i)
|
|
20868
|
-
c[i] = a[i] * (1 - t) + b[i] * t;
|
|
20789
|
+
for (i = 0; i < n; ++i) c[i] = a[i] * (1 - t) + b[i] * t;
|
|
20869
20790
|
return c;
|
|
20870
20791
|
};
|
|
20871
20792
|
}
|
|
@@ -20881,13 +20802,10 @@ function isNumberArray(x) {
|
|
|
20881
20802
|
}
|
|
20882
20803
|
function genericArray(a, b) {
|
|
20883
20804
|
var nb = b ? b.length : 0, na = a ? Math.min(nb, a.length) : 0, x = new Array(na), c = new Array(nb), i;
|
|
20884
|
-
for (i = 0; i < na; ++i)
|
|
20885
|
-
|
|
20886
|
-
for (; i < nb; ++i)
|
|
20887
|
-
c[i] = b[i];
|
|
20805
|
+
for (i = 0; i < na; ++i) x[i] = value(a[i], b[i]);
|
|
20806
|
+
for (; i < nb; ++i) c[i] = b[i];
|
|
20888
20807
|
return function(t) {
|
|
20889
|
-
for (i = 0; i < na; ++i)
|
|
20890
|
-
c[i] = x[i](t);
|
|
20808
|
+
for (i = 0; i < na; ++i) c[i] = x[i](t);
|
|
20891
20809
|
return c;
|
|
20892
20810
|
};
|
|
20893
20811
|
}
|
|
@@ -20911,10 +20829,8 @@ function genericArray(a, b) {
|
|
|
20911
20829
|
|
|
20912
20830
|
/* harmony default export */ function object(a, b) {
|
|
20913
20831
|
var i = {}, c = {}, k;
|
|
20914
|
-
if (a === null || typeof a !== "object")
|
|
20915
|
-
|
|
20916
|
-
if (b === null || typeof b !== "object")
|
|
20917
|
-
b = {};
|
|
20832
|
+
if (a === null || typeof a !== "object") a = {};
|
|
20833
|
+
if (b === null || typeof b !== "object") b = {};
|
|
20918
20834
|
for (k in b) {
|
|
20919
20835
|
if (k in a) {
|
|
20920
20836
|
i[k] = value(a[k], b[k]);
|
|
@@ -20923,8 +20839,7 @@ function genericArray(a, b) {
|
|
|
20923
20839
|
}
|
|
20924
20840
|
}
|
|
20925
20841
|
return function(t) {
|
|
20926
|
-
for (k in i)
|
|
20927
|
-
c[k] = i[k](t);
|
|
20842
|
+
for (k in i) c[k] = i[k](t);
|
|
20928
20843
|
return c;
|
|
20929
20844
|
};
|
|
20930
20845
|
}
|
|
@@ -20948,16 +20863,12 @@ function one(b) {
|
|
|
20948
20863
|
while ((am = reA.exec(a)) && (bm = reB.exec(b))) {
|
|
20949
20864
|
if ((bs = bm.index) > bi) {
|
|
20950
20865
|
bs = b.slice(bi, bs);
|
|
20951
|
-
if (s[i])
|
|
20952
|
-
|
|
20953
|
-
else
|
|
20954
|
-
s[++i] = bs;
|
|
20866
|
+
if (s[i]) s[i] += bs;
|
|
20867
|
+
else s[++i] = bs;
|
|
20955
20868
|
}
|
|
20956
20869
|
if ((am = am[0]) === (bm = bm[0])) {
|
|
20957
|
-
if (s[i])
|
|
20958
|
-
|
|
20959
|
-
else
|
|
20960
|
-
s[++i] = bm;
|
|
20870
|
+
if (s[i]) s[i] += bm;
|
|
20871
|
+
else s[++i] = bm;
|
|
20961
20872
|
} else {
|
|
20962
20873
|
s[++i] = null;
|
|
20963
20874
|
q.push({ i, x: number(am, bm) });
|
|
@@ -20966,14 +20877,11 @@ function one(b) {
|
|
|
20966
20877
|
}
|
|
20967
20878
|
if (bi < b.length) {
|
|
20968
20879
|
bs = b.slice(bi);
|
|
20969
|
-
if (s[i])
|
|
20970
|
-
|
|
20971
|
-
else
|
|
20972
|
-
s[++i] = bs;
|
|
20880
|
+
if (s[i]) s[i] += bs;
|
|
20881
|
+
else s[++i] = bs;
|
|
20973
20882
|
}
|
|
20974
20883
|
return s.length < 2 ? q[0] ? one(q[0].x) : zero(b) : (b = q.length, function(t) {
|
|
20975
|
-
for (var i2 = 0, o; i2 < b; ++i2)
|
|
20976
|
-
s[(o = q[i2]).i] = o.x(t);
|
|
20884
|
+
for (var i2 = 0, o; i2 < b; ++i2) s[(o = q[i2]).i] = o.x(t);
|
|
20977
20885
|
return s.join("");
|
|
20978
20886
|
});
|
|
20979
20887
|
}
|
|
@@ -20996,8 +20904,7 @@ function one(b) {
|
|
|
20996
20904
|
;// CONCATENATED MODULE: ./node_modules/d3-selection/src/sourceEvent.js
|
|
20997
20905
|
/* harmony default export */ function sourceEvent(event) {
|
|
20998
20906
|
let sourceEvent;
|
|
20999
|
-
while (sourceEvent = event.sourceEvent)
|
|
21000
|
-
event = sourceEvent;
|
|
20907
|
+
while (sourceEvent = event.sourceEvent) event = sourceEvent;
|
|
21001
20908
|
return event;
|
|
21002
20909
|
}
|
|
21003
20910
|
|
|
@@ -21005,8 +20912,7 @@ function one(b) {
|
|
|
21005
20912
|
|
|
21006
20913
|
/* harmony default export */ function src_pointer(event, node) {
|
|
21007
20914
|
event = sourceEvent(event);
|
|
21008
|
-
if (node === void 0)
|
|
21009
|
-
node = event.currentTarget;
|
|
20915
|
+
if (node === void 0) node = event.currentTarget;
|
|
21010
20916
|
if (node) {
|
|
21011
20917
|
var svg = node.ownerSVGElement || node;
|
|
21012
20918
|
if (svg.createSVGPoint) {
|
|
@@ -21039,14 +20945,11 @@ function Timer() {
|
|
|
21039
20945
|
Timer.prototype = timer.prototype = {
|
|
21040
20946
|
constructor: Timer,
|
|
21041
20947
|
restart: function(callback, delay, time) {
|
|
21042
|
-
if (typeof callback !== "function")
|
|
21043
|
-
throw new TypeError("callback is not a function");
|
|
20948
|
+
if (typeof callback !== "function") throw new TypeError("callback is not a function");
|
|
21044
20949
|
time = (time == null ? now() : +time) + (delay == null ? 0 : +delay);
|
|
21045
20950
|
if (!this._next && taskTail !== this) {
|
|
21046
|
-
if (taskTail)
|
|
21047
|
-
|
|
21048
|
-
else
|
|
21049
|
-
taskHead = this;
|
|
20951
|
+
if (taskTail) taskTail._next = this;
|
|
20952
|
+
else taskHead = this;
|
|
21050
20953
|
taskTail = this;
|
|
21051
20954
|
}
|
|
21052
20955
|
this._call = callback;
|
|
@@ -21071,8 +20974,7 @@ function timerFlush() {
|
|
|
21071
20974
|
++timer_frame;
|
|
21072
20975
|
var t = taskHead, e;
|
|
21073
20976
|
while (t) {
|
|
21074
|
-
if ((e = clockNow - t._time) >= 0)
|
|
21075
|
-
t._call.call(void 0, e);
|
|
20977
|
+
if ((e = clockNow - t._time) >= 0) t._call.call(void 0, e);
|
|
21076
20978
|
t = t._next;
|
|
21077
20979
|
}
|
|
21078
20980
|
--timer_frame;
|
|
@@ -21090,15 +20992,13 @@ function wake() {
|
|
|
21090
20992
|
}
|
|
21091
20993
|
function poke() {
|
|
21092
20994
|
var now2 = clock.now(), delay = now2 - clockLast;
|
|
21093
|
-
if (delay > pokeDelay)
|
|
21094
|
-
clockSkew -= delay, clockLast = now2;
|
|
20995
|
+
if (delay > pokeDelay) clockSkew -= delay, clockLast = now2;
|
|
21095
20996
|
}
|
|
21096
20997
|
function nap() {
|
|
21097
20998
|
var t0, t1 = taskHead, t2, time = Infinity;
|
|
21098
20999
|
while (t1) {
|
|
21099
21000
|
if (t1._call) {
|
|
21100
|
-
if (time > t1._time)
|
|
21101
|
-
time = t1._time;
|
|
21001
|
+
if (time > t1._time) time = t1._time;
|
|
21102
21002
|
t0 = t1, t1 = t1._next;
|
|
21103
21003
|
} else {
|
|
21104
21004
|
t2 = t1._next, t1._next = null;
|
|
@@ -21109,19 +21009,14 @@ function nap() {
|
|
|
21109
21009
|
sleep(time);
|
|
21110
21010
|
}
|
|
21111
21011
|
function sleep(time) {
|
|
21112
|
-
if (timer_frame)
|
|
21113
|
-
|
|
21114
|
-
if (timeout)
|
|
21115
|
-
timeout = clearTimeout(timeout);
|
|
21012
|
+
if (timer_frame) return;
|
|
21013
|
+
if (timeout) timeout = clearTimeout(timeout);
|
|
21116
21014
|
var delay = time - clockNow;
|
|
21117
21015
|
if (delay > 24) {
|
|
21118
|
-
if (time < Infinity)
|
|
21119
|
-
|
|
21120
|
-
if (interval)
|
|
21121
|
-
interval = clearInterval(interval);
|
|
21016
|
+
if (time < Infinity) timeout = setTimeout(wake, time - clock.now() - clockSkew);
|
|
21017
|
+
if (interval) interval = clearInterval(interval);
|
|
21122
21018
|
} else {
|
|
21123
|
-
if (!interval)
|
|
21124
|
-
clockLast = clock.now(), interval = setInterval(poke, pokeDelay);
|
|
21019
|
+
if (!interval) clockLast = clock.now(), interval = setInterval(poke, pokeDelay);
|
|
21125
21020
|
timer_frame = 1, setFrame(wake);
|
|
21126
21021
|
}
|
|
21127
21022
|
}
|
|
@@ -21152,10 +21047,8 @@ var ENDING = 5;
|
|
|
21152
21047
|
var ENDED = 6;
|
|
21153
21048
|
/* harmony default export */ function schedule(node, name, id, index, group, timing) {
|
|
21154
21049
|
var schedules = node.__transition;
|
|
21155
|
-
if (!schedules)
|
|
21156
|
-
|
|
21157
|
-
else if (id in schedules)
|
|
21158
|
-
return;
|
|
21050
|
+
if (!schedules) node.__transition = {};
|
|
21051
|
+
else if (id in schedules) return;
|
|
21159
21052
|
create(node, id, {
|
|
21160
21053
|
name,
|
|
21161
21054
|
index,
|
|
@@ -21174,20 +21067,17 @@ var ENDED = 6;
|
|
|
21174
21067
|
}
|
|
21175
21068
|
function init(node, id) {
|
|
21176
21069
|
var schedule = schedule_get(node, id);
|
|
21177
|
-
if (schedule.state > CREATED)
|
|
21178
|
-
throw new Error("too late; already scheduled");
|
|
21070
|
+
if (schedule.state > CREATED) throw new Error("too late; already scheduled");
|
|
21179
21071
|
return schedule;
|
|
21180
21072
|
}
|
|
21181
21073
|
function schedule_set(node, id) {
|
|
21182
21074
|
var schedule = schedule_get(node, id);
|
|
21183
|
-
if (schedule.state > STARTED)
|
|
21184
|
-
throw new Error("too late; already running");
|
|
21075
|
+
if (schedule.state > STARTED) throw new Error("too late; already running");
|
|
21185
21076
|
return schedule;
|
|
21186
21077
|
}
|
|
21187
21078
|
function schedule_get(node, id) {
|
|
21188
21079
|
var schedule = node.__transition;
|
|
21189
|
-
if (!schedule || !(schedule = schedule[id]))
|
|
21190
|
-
throw new Error("transition not found");
|
|
21080
|
+
if (!schedule || !(schedule = schedule[id])) throw new Error("transition not found");
|
|
21191
21081
|
return schedule;
|
|
21192
21082
|
}
|
|
21193
21083
|
function create(node, id, self) {
|
|
@@ -21197,19 +21087,15 @@ function create(node, id, self) {
|
|
|
21197
21087
|
function schedule(elapsed) {
|
|
21198
21088
|
self.state = SCHEDULED;
|
|
21199
21089
|
self.timer.restart(start, self.delay, self.time);
|
|
21200
|
-
if (self.delay <= elapsed)
|
|
21201
|
-
start(elapsed - self.delay);
|
|
21090
|
+
if (self.delay <= elapsed) start(elapsed - self.delay);
|
|
21202
21091
|
}
|
|
21203
21092
|
function start(elapsed) {
|
|
21204
21093
|
var i, j, n, o;
|
|
21205
|
-
if (self.state !== SCHEDULED)
|
|
21206
|
-
return stop();
|
|
21094
|
+
if (self.state !== SCHEDULED) return stop();
|
|
21207
21095
|
for (i in schedules) {
|
|
21208
21096
|
o = schedules[i];
|
|
21209
|
-
if (o.name !== self.name)
|
|
21210
|
-
|
|
21211
|
-
if (o.state === STARTED)
|
|
21212
|
-
return src_timeout(start);
|
|
21097
|
+
if (o.name !== self.name) continue;
|
|
21098
|
+
if (o.state === STARTED) return src_timeout(start);
|
|
21213
21099
|
if (o.state === RUNNING) {
|
|
21214
21100
|
o.state = ENDED;
|
|
21215
21101
|
o.timer.stop();
|
|
@@ -21231,8 +21117,7 @@ function create(node, id, self) {
|
|
|
21231
21117
|
});
|
|
21232
21118
|
self.state = STARTING;
|
|
21233
21119
|
self.on.call("start", node, node.__data__, self.index, self.group);
|
|
21234
|
-
if (self.state !== STARTING)
|
|
21235
|
-
return;
|
|
21120
|
+
if (self.state !== STARTING) return;
|
|
21236
21121
|
self.state = STARTED;
|
|
21237
21122
|
tween = new Array(n = self.tween.length);
|
|
21238
21123
|
for (i = 0, j = -1; i < n; ++i) {
|
|
@@ -21256,8 +21141,7 @@ function create(node, id, self) {
|
|
|
21256
21141
|
self.state = ENDED;
|
|
21257
21142
|
self.timer.stop();
|
|
21258
21143
|
delete schedules[id];
|
|
21259
|
-
for (var i in schedules)
|
|
21260
|
-
return;
|
|
21144
|
+
for (var i in schedules) return;
|
|
21261
21145
|
delete node.__transition;
|
|
21262
21146
|
}
|
|
21263
21147
|
}
|
|
@@ -21266,8 +21150,7 @@ function create(node, id, self) {
|
|
|
21266
21150
|
|
|
21267
21151
|
/* harmony default export */ function interrupt(node, name) {
|
|
21268
21152
|
var schedules = node.__transition, schedule, active, empty = true, i;
|
|
21269
|
-
if (!schedules)
|
|
21270
|
-
return;
|
|
21153
|
+
if (!schedules) return;
|
|
21271
21154
|
name = name == null ? null : name + "";
|
|
21272
21155
|
for (i in schedules) {
|
|
21273
21156
|
if ((schedule = schedules[i]).name !== name) {
|
|
@@ -21280,8 +21163,7 @@ function create(node, id, self) {
|
|
|
21280
21163
|
schedule.on.call(active ? "interrupt" : "cancel", node, node.__data__, schedule.index, schedule.group);
|
|
21281
21164
|
delete schedules[i];
|
|
21282
21165
|
}
|
|
21283
|
-
if (empty)
|
|
21284
|
-
delete node.__transition;
|
|
21166
|
+
if (empty) delete node.__transition;
|
|
21285
21167
|
}
|
|
21286
21168
|
|
|
21287
21169
|
;// CONCATENATED MODULE: ./node_modules/d3-transition/src/selection/interrupt.js
|
|
@@ -21304,14 +21186,10 @@ var identity = {
|
|
|
21304
21186
|
};
|
|
21305
21187
|
/* harmony default export */ function decompose(a, b, c, d, e, f) {
|
|
21306
21188
|
var scaleX, scaleY, skewX;
|
|
21307
|
-
if (scaleX = Math.sqrt(a * a + b * b))
|
|
21308
|
-
|
|
21309
|
-
if (
|
|
21310
|
-
|
|
21311
|
-
if (scaleY = Math.sqrt(c * c + d * d))
|
|
21312
|
-
c /= scaleY, d /= scaleY, skewX /= scaleY;
|
|
21313
|
-
if (a * d < b * c)
|
|
21314
|
-
a = -a, b = -b, skewX = -skewX, scaleX = -scaleX;
|
|
21189
|
+
if (scaleX = Math.sqrt(a * a + b * b)) a /= scaleX, b /= scaleX;
|
|
21190
|
+
if (skewX = a * c + b * d) c -= a * skewX, d -= b * skewX;
|
|
21191
|
+
if (scaleY = Math.sqrt(c * c + d * d)) c /= scaleY, d /= scaleY, skewX /= scaleY;
|
|
21192
|
+
if (a * d < b * c) a = -a, b = -b, skewX = -skewX, scaleX = -scaleX;
|
|
21315
21193
|
return {
|
|
21316
21194
|
translateX: e,
|
|
21317
21195
|
translateY: f,
|
|
@@ -21330,13 +21208,10 @@ function parseCss(value) {
|
|
|
21330
21208
|
return m.isIdentity ? identity : decompose(m.a, m.b, m.c, m.d, m.e, m.f);
|
|
21331
21209
|
}
|
|
21332
21210
|
function parseSvg(value) {
|
|
21333
|
-
if (value == null)
|
|
21334
|
-
|
|
21335
|
-
if (!svgNode)
|
|
21336
|
-
svgNode = document.createElementNS("http://www.w3.org/2000/svg", "g");
|
|
21211
|
+
if (value == null) return identity;
|
|
21212
|
+
if (!svgNode) svgNode = document.createElementNS("http://www.w3.org/2000/svg", "g");
|
|
21337
21213
|
svgNode.setAttribute("transform", value);
|
|
21338
|
-
if (!(value = svgNode.transform.baseVal.consolidate()))
|
|
21339
|
-
return identity;
|
|
21214
|
+
if (!(value = svgNode.transform.baseVal.consolidate())) return identity;
|
|
21340
21215
|
value = value.matrix;
|
|
21341
21216
|
return decompose(value.a, value.b, value.c, value.d, value.e, value.f);
|
|
21342
21217
|
}
|
|
@@ -21358,10 +21233,8 @@ function interpolateTransform(parse, pxComma, pxParen, degParen) {
|
|
|
21358
21233
|
}
|
|
21359
21234
|
function rotate(a, b, s, q) {
|
|
21360
21235
|
if (a !== b) {
|
|
21361
|
-
if (a - b > 180)
|
|
21362
|
-
|
|
21363
|
-
else if (b - a > 180)
|
|
21364
|
-
a += 360;
|
|
21236
|
+
if (a - b > 180) b += 360;
|
|
21237
|
+
else if (b - a > 180) a += 360;
|
|
21365
21238
|
q.push({ i: s.push(pop(s) + "rotate(", null, degParen) - 2, x: number(a, b) });
|
|
21366
21239
|
} else if (b) {
|
|
21367
21240
|
s.push(pop(s) + "rotate(" + b + degParen);
|
|
@@ -21392,8 +21265,7 @@ function interpolateTransform(parse, pxComma, pxParen, degParen) {
|
|
|
21392
21265
|
a = b = null;
|
|
21393
21266
|
return function(t) {
|
|
21394
21267
|
var i = -1, n = q.length, o;
|
|
21395
|
-
while (++i < n)
|
|
21396
|
-
s[(o = q[i]).i] = o.x(t);
|
|
21268
|
+
while (++i < n) s[(o = q[i]).i] = o.x(t);
|
|
21397
21269
|
return s.join("");
|
|
21398
21270
|
};
|
|
21399
21271
|
};
|
|
@@ -21422,8 +21294,7 @@ function tweenRemove(id, name) {
|
|
|
21422
21294
|
}
|
|
21423
21295
|
function tweenFunction(id, name, value) {
|
|
21424
21296
|
var tween0, tween1;
|
|
21425
|
-
if (typeof value !== "function")
|
|
21426
|
-
throw new Error();
|
|
21297
|
+
if (typeof value !== "function") throw new Error();
|
|
21427
21298
|
return function() {
|
|
21428
21299
|
var schedule = schedule_set(this, id), tween = schedule.tween;
|
|
21429
21300
|
if (tween !== tween0) {
|
|
@@ -21434,8 +21305,7 @@ function tweenFunction(id, name, value) {
|
|
|
21434
21305
|
break;
|
|
21435
21306
|
}
|
|
21436
21307
|
}
|
|
21437
|
-
if (i === n)
|
|
21438
|
-
tween1.push(t);
|
|
21308
|
+
if (i === n) tween1.push(t);
|
|
21439
21309
|
}
|
|
21440
21310
|
schedule.tween = tween1;
|
|
21441
21311
|
};
|
|
@@ -21506,8 +21376,7 @@ function attr_attrFunction(name, interpolate2, value) {
|
|
|
21506
21376
|
var string00, string10, interpolate0;
|
|
21507
21377
|
return function() {
|
|
21508
21378
|
var string0, value1 = value(this), string1;
|
|
21509
|
-
if (value1 == null)
|
|
21510
|
-
return void this.removeAttribute(name);
|
|
21379
|
+
if (value1 == null) return void this.removeAttribute(name);
|
|
21511
21380
|
string0 = this.getAttribute(name);
|
|
21512
21381
|
string1 = value1 + "";
|
|
21513
21382
|
return string0 === string1 ? null : string0 === string00 && string1 === string10 ? interpolate0 : (string10 = string1, interpolate0 = interpolate2(string00 = string0, value1));
|
|
@@ -21517,8 +21386,7 @@ function attr_attrFunctionNS(fullname, interpolate2, value) {
|
|
|
21517
21386
|
var string00, string10, interpolate0;
|
|
21518
21387
|
return function() {
|
|
21519
21388
|
var string0, value1 = value(this), string1;
|
|
21520
|
-
if (value1 == null)
|
|
21521
|
-
return void this.removeAttributeNS(fullname.space, fullname.local);
|
|
21389
|
+
if (value1 == null) return void this.removeAttributeNS(fullname.space, fullname.local);
|
|
21522
21390
|
string0 = this.getAttributeNS(fullname.space, fullname.local);
|
|
21523
21391
|
string1 = value1 + "";
|
|
21524
21392
|
return string0 === string1 ? null : string0 === string00 && string1 === string10 ? interpolate0 : (string10 = string1, interpolate0 = interpolate2(string00 = string0, value1));
|
|
@@ -21545,8 +21413,7 @@ function attrTweenNS(fullname, value) {
|
|
|
21545
21413
|
var t0, i0;
|
|
21546
21414
|
function tween() {
|
|
21547
21415
|
var i = value.apply(this, arguments);
|
|
21548
|
-
if (i !== i0)
|
|
21549
|
-
t0 = (i0 = i) && attrInterpolateNS(fullname, i);
|
|
21416
|
+
if (i !== i0) t0 = (i0 = i) && attrInterpolateNS(fullname, i);
|
|
21550
21417
|
return t0;
|
|
21551
21418
|
}
|
|
21552
21419
|
tween._value = value;
|
|
@@ -21556,8 +21423,7 @@ function attrTween(name, value) {
|
|
|
21556
21423
|
var t0, i0;
|
|
21557
21424
|
function tween() {
|
|
21558
21425
|
var i = value.apply(this, arguments);
|
|
21559
|
-
if (i !== i0)
|
|
21560
|
-
t0 = (i0 = i) && attrInterpolate(name, i);
|
|
21426
|
+
if (i !== i0) t0 = (i0 = i) && attrInterpolate(name, i);
|
|
21561
21427
|
return t0;
|
|
21562
21428
|
}
|
|
21563
21429
|
tween._value = value;
|
|
@@ -21565,12 +21431,9 @@ function attrTween(name, value) {
|
|
|
21565
21431
|
}
|
|
21566
21432
|
/* harmony default export */ function transition_attrTween(name, value) {
|
|
21567
21433
|
var key = "attr." + name;
|
|
21568
|
-
if (arguments.length < 2)
|
|
21569
|
-
|
|
21570
|
-
if (value
|
|
21571
|
-
return this.tween(key, null);
|
|
21572
|
-
if (typeof value !== "function")
|
|
21573
|
-
throw new Error();
|
|
21434
|
+
if (arguments.length < 2) return (key = this.tween(key)) && key._value;
|
|
21435
|
+
if (value == null) return this.tween(key, null);
|
|
21436
|
+
if (typeof value !== "function") throw new Error();
|
|
21574
21437
|
var fullname = namespace(name);
|
|
21575
21438
|
return this.tween(key, (fullname.local ? attrTweenNS : attrTween)(fullname, value));
|
|
21576
21439
|
}
|
|
@@ -21612,8 +21475,7 @@ function durationConstant(id, value) {
|
|
|
21612
21475
|
;// CONCATENATED MODULE: ./node_modules/d3-transition/src/transition/ease.js
|
|
21613
21476
|
|
|
21614
21477
|
function easeConstant(id, value) {
|
|
21615
|
-
if (typeof value !== "function")
|
|
21616
|
-
throw new Error();
|
|
21478
|
+
if (typeof value !== "function") throw new Error();
|
|
21617
21479
|
return function() {
|
|
21618
21480
|
schedule_set(this, id).ease = value;
|
|
21619
21481
|
};
|
|
@@ -21628,14 +21490,12 @@ function easeConstant(id, value) {
|
|
|
21628
21490
|
function easeVarying(id, value) {
|
|
21629
21491
|
return function() {
|
|
21630
21492
|
var v = value.apply(this, arguments);
|
|
21631
|
-
if (typeof v !== "function")
|
|
21632
|
-
throw new Error();
|
|
21493
|
+
if (typeof v !== "function") throw new Error();
|
|
21633
21494
|
schedule_set(this, id).ease = v;
|
|
21634
21495
|
};
|
|
21635
21496
|
}
|
|
21636
21497
|
/* harmony default export */ function transition_easeVarying(value) {
|
|
21637
|
-
if (typeof value !== "function")
|
|
21638
|
-
throw new Error();
|
|
21498
|
+
if (typeof value !== "function") throw new Error();
|
|
21639
21499
|
return this.each(easeVarying(this._id, value));
|
|
21640
21500
|
}
|
|
21641
21501
|
|
|
@@ -21643,8 +21503,7 @@ function easeVarying(id, value) {
|
|
|
21643
21503
|
|
|
21644
21504
|
|
|
21645
21505
|
/* harmony default export */ function transition_filter(match) {
|
|
21646
|
-
if (typeof match !== "function")
|
|
21647
|
-
match = matcher(match);
|
|
21506
|
+
if (typeof match !== "function") match = matcher(match);
|
|
21648
21507
|
for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {
|
|
21649
21508
|
for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) {
|
|
21650
21509
|
if ((node = group[i]) && match.call(node, node.__data__, i, group)) {
|
|
@@ -21658,8 +21517,7 @@ function easeVarying(id, value) {
|
|
|
21658
21517
|
;// CONCATENATED MODULE: ./node_modules/d3-transition/src/transition/merge.js
|
|
21659
21518
|
|
|
21660
21519
|
/* harmony default export */ function transition_merge(transition) {
|
|
21661
|
-
if (transition._id !== this._id)
|
|
21662
|
-
throw new Error();
|
|
21520
|
+
if (transition._id !== this._id) throw new Error();
|
|
21663
21521
|
for (var groups0 = this._groups, groups1 = transition._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) {
|
|
21664
21522
|
for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) {
|
|
21665
21523
|
if (node = group0[i] || group1[i]) {
|
|
@@ -21678,8 +21536,7 @@ function easeVarying(id, value) {
|
|
|
21678
21536
|
function start(name) {
|
|
21679
21537
|
return (name + "").trim().split(/^|\s+/).every(function(t) {
|
|
21680
21538
|
var i = t.indexOf(".");
|
|
21681
|
-
if (i >= 0)
|
|
21682
|
-
t = t.slice(0, i);
|
|
21539
|
+
if (i >= 0) t = t.slice(0, i);
|
|
21683
21540
|
return !t || t === "start";
|
|
21684
21541
|
});
|
|
21685
21542
|
}
|
|
@@ -21687,8 +21544,7 @@ function onFunction(id, name, listener) {
|
|
|
21687
21544
|
var on0, on1, sit = start(name) ? init : schedule_set;
|
|
21688
21545
|
return function() {
|
|
21689
21546
|
var schedule = sit(this, id), on = schedule.on;
|
|
21690
|
-
if (on !== on0)
|
|
21691
|
-
(on1 = (on0 = on).copy()).on(name, listener);
|
|
21547
|
+
if (on !== on0) (on1 = (on0 = on).copy()).on(name, listener);
|
|
21692
21548
|
schedule.on = on1;
|
|
21693
21549
|
};
|
|
21694
21550
|
}
|
|
@@ -21701,11 +21557,8 @@ function onFunction(id, name, listener) {
|
|
|
21701
21557
|
function removeFunction(id) {
|
|
21702
21558
|
return function() {
|
|
21703
21559
|
var parent = this.parentNode;
|
|
21704
|
-
for (var i in this.__transition)
|
|
21705
|
-
|
|
21706
|
-
return;
|
|
21707
|
-
if (parent)
|
|
21708
|
-
parent.removeChild(this);
|
|
21560
|
+
for (var i in this.__transition) if (+i !== id) return;
|
|
21561
|
+
if (parent) parent.removeChild(this);
|
|
21709
21562
|
};
|
|
21710
21563
|
}
|
|
21711
21564
|
/* harmony default export */ function transition_remove() {
|
|
@@ -21718,13 +21571,11 @@ function removeFunction(id) {
|
|
|
21718
21571
|
|
|
21719
21572
|
/* harmony default export */ function transition_select(select) {
|
|
21720
21573
|
var name = this._name, id = this._id;
|
|
21721
|
-
if (typeof select !== "function")
|
|
21722
|
-
select = selector(select);
|
|
21574
|
+
if (typeof select !== "function") select = selector(select);
|
|
21723
21575
|
for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {
|
|
21724
21576
|
for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) {
|
|
21725
21577
|
if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {
|
|
21726
|
-
if ("__data__" in node)
|
|
21727
|
-
subnode.__data__ = node.__data__;
|
|
21578
|
+
if ("__data__" in node) subnode.__data__ = node.__data__;
|
|
21728
21579
|
subgroup[i] = subnode;
|
|
21729
21580
|
schedule(subgroup[i], name, id, i, subgroup, schedule_get(node, id));
|
|
21730
21581
|
}
|
|
@@ -21739,8 +21590,7 @@ function removeFunction(id) {
|
|
|
21739
21590
|
|
|
21740
21591
|
/* harmony default export */ function transition_selectAll(select) {
|
|
21741
21592
|
var name = this._name, id = this._id;
|
|
21742
|
-
if (typeof select !== "function")
|
|
21743
|
-
select = selectorAll(select);
|
|
21593
|
+
if (typeof select !== "function") select = selectorAll(select);
|
|
21744
21594
|
for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) {
|
|
21745
21595
|
for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {
|
|
21746
21596
|
if (node = group[i]) {
|
|
@@ -21793,8 +21643,7 @@ function style_styleFunction(name, interpolate2, value) {
|
|
|
21793
21643
|
var string00, string10, interpolate0;
|
|
21794
21644
|
return function() {
|
|
21795
21645
|
var string0 = styleValue(this, name), value1 = value(this), string1 = value1 + "";
|
|
21796
|
-
if (value1 == null)
|
|
21797
|
-
string1 = value1 = (this.style.removeProperty(name), styleValue(this, name));
|
|
21646
|
+
if (value1 == null) string1 = value1 = (this.style.removeProperty(name), styleValue(this, name));
|
|
21798
21647
|
return string0 === string1 ? null : string0 === string00 && string1 === string10 ? interpolate0 : (string10 = string1, interpolate0 = interpolate2(string00 = string0, value1));
|
|
21799
21648
|
};
|
|
21800
21649
|
}
|
|
@@ -21802,8 +21651,7 @@ function styleMaybeRemove(id, name) {
|
|
|
21802
21651
|
var on0, on1, listener0, key = "style." + name, event = "end." + key, remove;
|
|
21803
21652
|
return function() {
|
|
21804
21653
|
var schedule = schedule_set(this, id), on = schedule.on, listener = schedule.value[key] == null ? remove || (remove = style_styleRemove(name)) : void 0;
|
|
21805
|
-
if (on !== on0 || listener0 !== listener)
|
|
21806
|
-
(on1 = (on0 = on).copy()).on(event, listener0 = listener);
|
|
21654
|
+
if (on !== on0 || listener0 !== listener) (on1 = (on0 = on).copy()).on(event, listener0 = listener);
|
|
21807
21655
|
schedule.on = on1;
|
|
21808
21656
|
};
|
|
21809
21657
|
}
|
|
@@ -21822,8 +21670,7 @@ function styleTween(name, value, priority) {
|
|
|
21822
21670
|
var t, i0;
|
|
21823
21671
|
function tween() {
|
|
21824
21672
|
var i = value.apply(this, arguments);
|
|
21825
|
-
if (i !== i0)
|
|
21826
|
-
t = (i0 = i) && styleInterpolate(name, i, priority);
|
|
21673
|
+
if (i !== i0) t = (i0 = i) && styleInterpolate(name, i, priority);
|
|
21827
21674
|
return t;
|
|
21828
21675
|
}
|
|
21829
21676
|
tween._value = value;
|
|
@@ -21831,12 +21678,9 @@ function styleTween(name, value, priority) {
|
|
|
21831
21678
|
}
|
|
21832
21679
|
/* harmony default export */ function transition_styleTween(name, value, priority) {
|
|
21833
21680
|
var key = "style." + (name += "");
|
|
21834
|
-
if (arguments.length < 2)
|
|
21835
|
-
|
|
21836
|
-
if (value
|
|
21837
|
-
return this.tween(key, null);
|
|
21838
|
-
if (typeof value !== "function")
|
|
21839
|
-
throw new Error();
|
|
21681
|
+
if (arguments.length < 2) return (key = this.tween(key)) && key._value;
|
|
21682
|
+
if (value == null) return this.tween(key, null);
|
|
21683
|
+
if (typeof value !== "function") throw new Error();
|
|
21840
21684
|
return this.tween(key, styleTween(name, value, priority == null ? "" : priority));
|
|
21841
21685
|
}
|
|
21842
21686
|
|
|
@@ -21867,8 +21711,7 @@ function textTween(value) {
|
|
|
21867
21711
|
var t0, i0;
|
|
21868
21712
|
function tween() {
|
|
21869
21713
|
var i = value.apply(this, arguments);
|
|
21870
|
-
if (i !== i0)
|
|
21871
|
-
t0 = (i0 = i) && textInterpolate(i);
|
|
21714
|
+
if (i !== i0) t0 = (i0 = i) && textInterpolate(i);
|
|
21872
21715
|
return t0;
|
|
21873
21716
|
}
|
|
21874
21717
|
tween._value = value;
|
|
@@ -21876,12 +21719,9 @@ function textTween(value) {
|
|
|
21876
21719
|
}
|
|
21877
21720
|
/* harmony default export */ function transition_textTween(value) {
|
|
21878
21721
|
var key = "text";
|
|
21879
|
-
if (arguments.length < 1)
|
|
21880
|
-
|
|
21881
|
-
if (value
|
|
21882
|
-
return this.tween(key, null);
|
|
21883
|
-
if (typeof value !== "function")
|
|
21884
|
-
throw new Error();
|
|
21722
|
+
if (arguments.length < 1) return (key = this.tween(key)) && key._value;
|
|
21723
|
+
if (value == null) return this.tween(key, null);
|
|
21724
|
+
if (typeof value !== "function") throw new Error();
|
|
21885
21725
|
return this.tween(key, textTween(value));
|
|
21886
21726
|
}
|
|
21887
21727
|
|
|
@@ -21912,8 +21752,7 @@ function textTween(value) {
|
|
|
21912
21752
|
var on0, on1, that = this, id = that._id, size = that.size();
|
|
21913
21753
|
return new Promise(function(resolve, reject) {
|
|
21914
21754
|
var cancel = { value: reject }, end = { value: function() {
|
|
21915
|
-
if (--size === 0)
|
|
21916
|
-
resolve();
|
|
21755
|
+
if (--size === 0) resolve();
|
|
21917
21756
|
} };
|
|
21918
21757
|
that.each(function() {
|
|
21919
21758
|
var schedule = schedule_set(this, id), on = schedule.on;
|
|
@@ -21925,8 +21764,7 @@ function textTween(value) {
|
|
|
21925
21764
|
}
|
|
21926
21765
|
schedule.on = on1;
|
|
21927
21766
|
});
|
|
21928
|
-
if (size === 0)
|
|
21929
|
-
resolve();
|
|
21767
|
+
if (size === 0) resolve();
|
|
21930
21768
|
});
|
|
21931
21769
|
}
|
|
21932
21770
|
|
|
@@ -22208,9 +22046,7 @@ function defaultTouchable() {
|
|
|
22208
22046
|
return navigator.maxTouchPoints || "ontouchstart" in this;
|
|
22209
22047
|
}
|
|
22210
22048
|
function local(node) {
|
|
22211
|
-
while (!node.__brush)
|
|
22212
|
-
if (!(node = node.parentNode))
|
|
22213
|
-
return;
|
|
22049
|
+
while (!node.__brush) if (!(node = node.parentNode)) return;
|
|
22214
22050
|
return node.__brush;
|
|
22215
22051
|
}
|
|
22216
22052
|
function brush_empty(extent) {
|
|
@@ -22307,15 +22143,12 @@ function brush_brush(dim) {
|
|
|
22307
22143
|
}
|
|
22308
22144
|
Emitter.prototype = {
|
|
22309
22145
|
beforestart: function() {
|
|
22310
|
-
if (++this.active === 1)
|
|
22311
|
-
this.state.emitter = this, this.starting = true;
|
|
22146
|
+
if (++this.active === 1) this.state.emitter = this, this.starting = true;
|
|
22312
22147
|
return this;
|
|
22313
22148
|
},
|
|
22314
22149
|
start: function(event, mode) {
|
|
22315
|
-
if (this.starting)
|
|
22316
|
-
|
|
22317
|
-
else
|
|
22318
|
-
this.emit("brush", event);
|
|
22150
|
+
if (this.starting) this.starting = false, this.emit("start", event, mode);
|
|
22151
|
+
else this.emit("brush", event);
|
|
22319
22152
|
return this;
|
|
22320
22153
|
},
|
|
22321
22154
|
brush: function(event, mode) {
|
|
@@ -22323,8 +22156,7 @@ function brush_brush(dim) {
|
|
|
22323
22156
|
return this;
|
|
22324
22157
|
},
|
|
22325
22158
|
end: function(event, mode) {
|
|
22326
|
-
if (--this.active === 0)
|
|
22327
|
-
delete this.state.emitter, this.emit("end", event, mode);
|
|
22159
|
+
if (--this.active === 0) delete this.state.emitter, this.emit("end", event, mode);
|
|
22328
22160
|
return this;
|
|
22329
22161
|
},
|
|
22330
22162
|
emit: function(type2, event, mode) {
|
|
@@ -22344,10 +22176,8 @@ function brush_brush(dim) {
|
|
|
22344
22176
|
}
|
|
22345
22177
|
};
|
|
22346
22178
|
function started(event) {
|
|
22347
|
-
if (touchending && !event.touches)
|
|
22348
|
-
|
|
22349
|
-
if (!filter.apply(this, arguments))
|
|
22350
|
-
return;
|
|
22179
|
+
if (touchending && !event.touches) return;
|
|
22180
|
+
if (!filter.apply(this, arguments)) return;
|
|
22351
22181
|
var that = this, type2 = event.target.__data__.type, mode = (keys && event.metaKey ? type2 = "overlay" : type2) === "selection" ? MODE_DRAG : keys && event.altKey ? MODE_CENTER : MODE_HANDLE, signX = dim === Y ? null : signsX[type2], signY = dim === X ? null : signsY[type2], state = local(that), extent2 = state.extent, selection = state.selection, W = extent2[0][0], w0, w1, N = extent2[0][1], n0, n1, E = extent2[1][0], e0, e1, S = extent2[1][1], s0, s1, dx = 0, dy = 0, moving, shifting = signX && signY && keys && event.shiftKey, lockX, lockY, points = Array.from(event.touches || [event], (t) => {
|
|
22352
22182
|
const i = t.identifier;
|
|
22353
22183
|
t = src_pointer(t, that);
|
|
@@ -22358,8 +22188,7 @@ function brush_brush(dim) {
|
|
|
22358
22188
|
interrupt(that);
|
|
22359
22189
|
var emit = emitter(that, arguments, true).beforestart();
|
|
22360
22190
|
if (type2 === "overlay") {
|
|
22361
|
-
if (selection)
|
|
22362
|
-
moving = true;
|
|
22191
|
+
if (selection) moving = true;
|
|
22363
22192
|
const pts = [points[0], points[1] || points[0]];
|
|
22364
22193
|
state.selection = selection = [[
|
|
22365
22194
|
w0 = dim === Y ? W : min(pts[0][0], pts[1][0]),
|
|
@@ -22368,8 +22197,7 @@ function brush_brush(dim) {
|
|
|
22368
22197
|
e0 = dim === Y ? E : max(pts[0][0], pts[1][0]),
|
|
22369
22198
|
s0 = dim === X ? S : max(pts[0][1], pts[1][1])
|
|
22370
22199
|
]];
|
|
22371
|
-
if (points.length > 1)
|
|
22372
|
-
move(event);
|
|
22200
|
+
if (points.length > 1) move(event);
|
|
22373
22201
|
} else {
|
|
22374
22202
|
w0 = selection[0][0];
|
|
22375
22203
|
n0 = selection[0][1];
|
|
@@ -22387,8 +22215,7 @@ function brush_brush(dim) {
|
|
|
22387
22215
|
emit.ended = ended;
|
|
22388
22216
|
} else {
|
|
22389
22217
|
var view = src_select(event.view).on("mousemove.brush", moved, true).on("mouseup.brush", ended, true);
|
|
22390
|
-
if (keys)
|
|
22391
|
-
view.on("keydown.brush", keydowned, true).on("keyup.brush", keyupped, true);
|
|
22218
|
+
if (keys) view.on("keydown.brush", keydowned, true).on("keyup.brush", keyupped, true);
|
|
22392
22219
|
nodrag(event.view);
|
|
22393
22220
|
}
|
|
22394
22221
|
redraw.call(that);
|
|
@@ -22396,8 +22223,7 @@ function brush_brush(dim) {
|
|
|
22396
22223
|
function moved(event2) {
|
|
22397
22224
|
for (const p of event2.changedTouches || [event2]) {
|
|
22398
22225
|
for (const d of points)
|
|
22399
|
-
if (d.identifier === p.identifier)
|
|
22400
|
-
d.cur = src_pointer(p, that);
|
|
22226
|
+
if (d.identifier === p.identifier) d.cur = src_pointer(p, that);
|
|
22401
22227
|
}
|
|
22402
22228
|
if (shifting && !lockX && !lockY && points.length === 1) {
|
|
22403
22229
|
const point = points[0];
|
|
@@ -22407,8 +22233,7 @@ function brush_brush(dim) {
|
|
|
22407
22233
|
lockX = true;
|
|
22408
22234
|
}
|
|
22409
22235
|
for (const point of points)
|
|
22410
|
-
if (point.cur)
|
|
22411
|
-
point[0] = point.cur[0], point[1] = point.cur[1];
|
|
22236
|
+
if (point.cur) point[0] = point.cur[0], point[1] = point.cur[1];
|
|
22412
22237
|
moving = true;
|
|
22413
22238
|
src_noevent(event2);
|
|
22414
22239
|
move(event2);
|
|
@@ -22421,35 +22246,25 @@ function brush_brush(dim) {
|
|
|
22421
22246
|
switch (mode) {
|
|
22422
22247
|
case MODE_SPACE:
|
|
22423
22248
|
case MODE_DRAG: {
|
|
22424
|
-
if (signX)
|
|
22425
|
-
|
|
22426
|
-
if (signY)
|
|
22427
|
-
dy = max(N - n0, min(S - s0, dy)), n1 = n0 + dy, s1 = s0 + dy;
|
|
22249
|
+
if (signX) dx = max(W - w0, min(E - e0, dx)), w1 = w0 + dx, e1 = e0 + dx;
|
|
22250
|
+
if (signY) dy = max(N - n0, min(S - s0, dy)), n1 = n0 + dy, s1 = s0 + dy;
|
|
22428
22251
|
break;
|
|
22429
22252
|
}
|
|
22430
22253
|
case MODE_HANDLE: {
|
|
22431
22254
|
if (points[1]) {
|
|
22432
|
-
if (signX)
|
|
22433
|
-
|
|
22434
|
-
if (signY)
|
|
22435
|
-
n1 = max(N, min(S, points[0][1])), s1 = max(N, min(S, points[1][1])), signY = 1;
|
|
22255
|
+
if (signX) w1 = max(W, min(E, points[0][0])), e1 = max(W, min(E, points[1][0])), signX = 1;
|
|
22256
|
+
if (signY) n1 = max(N, min(S, points[0][1])), s1 = max(N, min(S, points[1][1])), signY = 1;
|
|
22436
22257
|
} else {
|
|
22437
|
-
if (signX < 0)
|
|
22438
|
-
|
|
22439
|
-
|
|
22440
|
-
|
|
22441
|
-
if (signY < 0)
|
|
22442
|
-
dy = max(N - n0, min(S - n0, dy)), n1 = n0 + dy, s1 = s0;
|
|
22443
|
-
else if (signY > 0)
|
|
22444
|
-
dy = max(N - s0, min(S - s0, dy)), n1 = n0, s1 = s0 + dy;
|
|
22258
|
+
if (signX < 0) dx = max(W - w0, min(E - w0, dx)), w1 = w0 + dx, e1 = e0;
|
|
22259
|
+
else if (signX > 0) dx = max(W - e0, min(E - e0, dx)), w1 = w0, e1 = e0 + dx;
|
|
22260
|
+
if (signY < 0) dy = max(N - n0, min(S - n0, dy)), n1 = n0 + dy, s1 = s0;
|
|
22261
|
+
else if (signY > 0) dy = max(N - s0, min(S - s0, dy)), n1 = n0, s1 = s0 + dy;
|
|
22445
22262
|
}
|
|
22446
22263
|
break;
|
|
22447
22264
|
}
|
|
22448
22265
|
case MODE_CENTER: {
|
|
22449
|
-
if (signX)
|
|
22450
|
-
|
|
22451
|
-
if (signY)
|
|
22452
|
-
n1 = max(N, min(S, n0 - dy * signY)), s1 = max(N, min(S, s0 + dy * signY));
|
|
22266
|
+
if (signX) w1 = max(W, min(E, w0 - dx * signX)), e1 = max(W, min(E, e0 + dx * signX));
|
|
22267
|
+
if (signY) n1 = max(N, min(S, n0 - dy * signY)), s1 = max(N, min(S, s0 + dy * signY));
|
|
22453
22268
|
break;
|
|
22454
22269
|
}
|
|
22455
22270
|
}
|
|
@@ -22457,22 +22272,17 @@ function brush_brush(dim) {
|
|
|
22457
22272
|
signX *= -1;
|
|
22458
22273
|
t = w0, w0 = e0, e0 = t;
|
|
22459
22274
|
t = w1, w1 = e1, e1 = t;
|
|
22460
|
-
if (type2 in flipX)
|
|
22461
|
-
overlay.attr("cursor", cursors[type2 = flipX[type2]]);
|
|
22275
|
+
if (type2 in flipX) overlay.attr("cursor", cursors[type2 = flipX[type2]]);
|
|
22462
22276
|
}
|
|
22463
22277
|
if (s1 < n1) {
|
|
22464
22278
|
signY *= -1;
|
|
22465
22279
|
t = n0, n0 = s0, s0 = t;
|
|
22466
22280
|
t = n1, n1 = s1, s1 = t;
|
|
22467
|
-
if (type2 in flipY)
|
|
22468
|
-
overlay.attr("cursor", cursors[type2 = flipY[type2]]);
|
|
22281
|
+
if (type2 in flipY) overlay.attr("cursor", cursors[type2 = flipY[type2]]);
|
|
22469
22282
|
}
|
|
22470
|
-
if (state.selection)
|
|
22471
|
-
|
|
22472
|
-
if (
|
|
22473
|
-
w1 = selection[0][0], e1 = selection[1][0];
|
|
22474
|
-
if (lockY)
|
|
22475
|
-
n1 = selection[0][1], s1 = selection[1][1];
|
|
22283
|
+
if (state.selection) selection = state.selection;
|
|
22284
|
+
if (lockX) w1 = selection[0][0], e1 = selection[1][0];
|
|
22285
|
+
if (lockY) n1 = selection[0][1], s1 = selection[1][1];
|
|
22476
22286
|
if (selection[0][0] !== w1 || selection[0][1] !== n1 || selection[1][0] !== e1 || selection[1][1] !== s1) {
|
|
22477
22287
|
state.selection = [[w1, n1], [e1, s1]];
|
|
22478
22288
|
redraw.call(that);
|
|
@@ -22482,10 +22292,8 @@ function brush_brush(dim) {
|
|
|
22482
22292
|
function ended(event2) {
|
|
22483
22293
|
noevent_nopropagation(event2);
|
|
22484
22294
|
if (event2.touches) {
|
|
22485
|
-
if (event2.touches.length)
|
|
22486
|
-
|
|
22487
|
-
if (touchending)
|
|
22488
|
-
clearTimeout(touchending);
|
|
22295
|
+
if (event2.touches.length) return;
|
|
22296
|
+
if (touchending) clearTimeout(touchending);
|
|
22489
22297
|
touchending = setTimeout(function() {
|
|
22490
22298
|
touchending = null;
|
|
22491
22299
|
}, 500);
|
|
@@ -22495,10 +22303,8 @@ function brush_brush(dim) {
|
|
|
22495
22303
|
}
|
|
22496
22304
|
group.attr("pointer-events", "all");
|
|
22497
22305
|
overlay.attr("cursor", cursors.overlay);
|
|
22498
|
-
if (state.selection)
|
|
22499
|
-
|
|
22500
|
-
if (brush_empty(selection))
|
|
22501
|
-
state.selection = null, redraw.call(that);
|
|
22306
|
+
if (state.selection) selection = state.selection;
|
|
22307
|
+
if (brush_empty(selection)) state.selection = null, redraw.call(that);
|
|
22502
22308
|
emit.end(event2, mode.name);
|
|
22503
22309
|
}
|
|
22504
22310
|
function keydowned(event2) {
|
|
@@ -22509,10 +22315,8 @@ function brush_brush(dim) {
|
|
|
22509
22315
|
}
|
|
22510
22316
|
case 18: {
|
|
22511
22317
|
if (mode === MODE_HANDLE) {
|
|
22512
|
-
if (signX)
|
|
22513
|
-
|
|
22514
|
-
if (signY)
|
|
22515
|
-
s0 = s1 - dy * signY, n0 = n1 + dy * signY;
|
|
22318
|
+
if (signX) e0 = e1 - dx * signX, w0 = w1 + dx * signX;
|
|
22319
|
+
if (signY) s0 = s1 - dy * signY, n0 = n1 + dy * signY;
|
|
22516
22320
|
mode = MODE_CENTER;
|
|
22517
22321
|
move(event2);
|
|
22518
22322
|
}
|
|
@@ -22520,14 +22324,10 @@ function brush_brush(dim) {
|
|
|
22520
22324
|
}
|
|
22521
22325
|
case 32: {
|
|
22522
22326
|
if (mode === MODE_HANDLE || mode === MODE_CENTER) {
|
|
22523
|
-
if (signX < 0)
|
|
22524
|
-
|
|
22525
|
-
|
|
22526
|
-
|
|
22527
|
-
if (signY < 0)
|
|
22528
|
-
s0 = s1 - dy;
|
|
22529
|
-
else if (signY > 0)
|
|
22530
|
-
n0 = n1 - dy;
|
|
22327
|
+
if (signX < 0) e0 = e1 - dx;
|
|
22328
|
+
else if (signX > 0) w0 = w1 - dx;
|
|
22329
|
+
if (signY < 0) s0 = s1 - dy;
|
|
22330
|
+
else if (signY > 0) n0 = n1 - dy;
|
|
22531
22331
|
mode = MODE_SPACE;
|
|
22532
22332
|
overlay.attr("cursor", cursors.selection);
|
|
22533
22333
|
move(event2);
|
|
@@ -22550,14 +22350,10 @@ function brush_brush(dim) {
|
|
|
22550
22350
|
}
|
|
22551
22351
|
case 18: {
|
|
22552
22352
|
if (mode === MODE_CENTER) {
|
|
22553
|
-
if (signX < 0)
|
|
22554
|
-
|
|
22555
|
-
|
|
22556
|
-
|
|
22557
|
-
if (signY < 0)
|
|
22558
|
-
s0 = s1;
|
|
22559
|
-
else if (signY > 0)
|
|
22560
|
-
n0 = n1;
|
|
22353
|
+
if (signX < 0) e0 = e1;
|
|
22354
|
+
else if (signX > 0) w0 = w1;
|
|
22355
|
+
if (signY < 0) s0 = s1;
|
|
22356
|
+
else if (signY > 0) n0 = n1;
|
|
22561
22357
|
mode = MODE_HANDLE;
|
|
22562
22358
|
move(event2);
|
|
22563
22359
|
}
|
|
@@ -22566,20 +22362,14 @@ function brush_brush(dim) {
|
|
|
22566
22362
|
case 32: {
|
|
22567
22363
|
if (mode === MODE_SPACE) {
|
|
22568
22364
|
if (event2.altKey) {
|
|
22569
|
-
if (signX)
|
|
22570
|
-
|
|
22571
|
-
if (signY)
|
|
22572
|
-
s0 = s1 - dy * signY, n0 = n1 + dy * signY;
|
|
22365
|
+
if (signX) e0 = e1 - dx * signX, w0 = w1 + dx * signX;
|
|
22366
|
+
if (signY) s0 = s1 - dy * signY, n0 = n1 + dy * signY;
|
|
22573
22367
|
mode = MODE_CENTER;
|
|
22574
22368
|
} else {
|
|
22575
|
-
if (signX < 0)
|
|
22576
|
-
|
|
22577
|
-
|
|
22578
|
-
|
|
22579
|
-
if (signY < 0)
|
|
22580
|
-
s0 = s1;
|
|
22581
|
-
else if (signY > 0)
|
|
22582
|
-
n0 = n1;
|
|
22369
|
+
if (signX < 0) e0 = e1;
|
|
22370
|
+
else if (signX > 0) w0 = w1;
|
|
22371
|
+
if (signY < 0) s0 = s1;
|
|
22372
|
+
else if (signY > 0) n0 = n1;
|
|
22583
22373
|
mode = MODE_HANDLE;
|
|
22584
22374
|
}
|
|
22585
22375
|
overlay.attr("cursor", cursors[type2]);
|
|
@@ -23087,10 +22877,7 @@ function loadConfig(config) {
|
|
|
23087
22877
|
;// CONCATENATED MODULE: ./src/Plugin/Plugin.ts
|
|
23088
22878
|
var Plugin_defProp = Object.defineProperty;
|
|
23089
22879
|
var Plugin_defNormalProp = (obj, key, value) => key in obj ? Plugin_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
23090
|
-
var __publicField = (obj, key, value) =>
|
|
23091
|
-
Plugin_defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
23092
|
-
return value;
|
|
23093
|
-
};
|
|
22880
|
+
var __publicField = (obj, key, value) => Plugin_defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
23094
22881
|
class Plugin {
|
|
23095
22882
|
/**
|
|
23096
22883
|
* Constructor
|
|
@@ -23137,7 +22924,7 @@ class Plugin {
|
|
|
23137
22924
|
});
|
|
23138
22925
|
}
|
|
23139
22926
|
}
|
|
23140
|
-
__publicField(Plugin, "version", "3.
|
|
22927
|
+
__publicField(Plugin, "version", "3.13.0-next.1");
|
|
23141
22928
|
|
|
23142
22929
|
;// CONCATENATED MODULE: ./src/Plugin/sparkline/Options.ts
|
|
23143
22930
|
class Options {
|
|
@@ -23161,10 +22948,7 @@ class Options {
|
|
|
23161
22948
|
;// CONCATENATED MODULE: ./src/Plugin/sparkline/index.ts
|
|
23162
22949
|
var sparkline_defProp = Object.defineProperty;
|
|
23163
22950
|
var sparkline_defNormalProp = (obj, key, value) => key in obj ? sparkline_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
23164
|
-
var sparkline_publicField = (obj, key, value) =>
|
|
23165
|
-
sparkline_defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
23166
|
-
return value;
|
|
23167
|
-
};
|
|
22951
|
+
var sparkline_publicField = (obj, key, value) => sparkline_defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
23168
22952
|
|
|
23169
22953
|
|
|
23170
22954
|
|