@hpcc-js/common 2.71.15 → 2.71.16
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/index.es6.js +163 -41
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +171 -49
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +3 -3
- package/src/__package__.ts +2 -2
- package/types/__package__.d.ts +2 -2
- package/types/__package__.d.ts.map +1 -1
- package/types-3.4/__package__.d.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
})(this, (function (exports, util) { 'use strict';
|
|
6
6
|
|
|
7
7
|
var PKG_NAME = "@hpcc-js/common";
|
|
8
|
-
var PKG_VERSION = "2.71.
|
|
9
|
-
var BUILD_VERSION = "2.
|
|
8
|
+
var PKG_VERSION = "2.71.16";
|
|
9
|
+
var BUILD_VERSION = "2.105.6";
|
|
10
10
|
|
|
11
11
|
/******************************************************************************
|
|
12
12
|
Copyright (c) Microsoft Corporation.
|
|
@@ -3464,12 +3464,12 @@
|
|
|
3464
3464
|
return null;
|
|
3465
3465
|
}
|
|
3466
3466
|
|
|
3467
|
-
function
|
|
3467
|
+
function d3Ascending(a, b) {
|
|
3468
3468
|
return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
|
|
3469
3469
|
}
|
|
3470
3470
|
|
|
3471
|
-
function bisector(compare) {
|
|
3472
|
-
if (compare.length === 1) compare = ascendingComparator(compare);
|
|
3471
|
+
function bisector$1(compare) {
|
|
3472
|
+
if (compare.length === 1) compare = ascendingComparator$1(compare);
|
|
3473
3473
|
return {
|
|
3474
3474
|
left: function(a, x, lo, hi) {
|
|
3475
3475
|
if (lo == null) lo = 0;
|
|
@@ -3494,15 +3494,15 @@
|
|
|
3494
3494
|
};
|
|
3495
3495
|
}
|
|
3496
3496
|
|
|
3497
|
-
function ascendingComparator(f) {
|
|
3497
|
+
function ascendingComparator$1(f) {
|
|
3498
3498
|
return function(d, x) {
|
|
3499
|
-
return
|
|
3499
|
+
return d3Ascending(f(d), x);
|
|
3500
3500
|
};
|
|
3501
3501
|
}
|
|
3502
3502
|
|
|
3503
|
-
var ascendingBisect = bisector(
|
|
3504
|
-
var bisectRight = ascendingBisect.right;
|
|
3505
|
-
var bisectLeft = ascendingBisect.left;
|
|
3503
|
+
var ascendingBisect$1 = bisector$1(d3Ascending);
|
|
3504
|
+
var bisectRight$1 = ascendingBisect$1.right;
|
|
3505
|
+
var bisectLeft = ascendingBisect$1.left;
|
|
3506
3506
|
|
|
3507
3507
|
function pairs(array, f) {
|
|
3508
3508
|
if (f == null) f = pair;
|
|
@@ -3539,7 +3539,7 @@
|
|
|
3539
3539
|
return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;
|
|
3540
3540
|
}
|
|
3541
3541
|
|
|
3542
|
-
function number$
|
|
3542
|
+
function number$3(x) {
|
|
3543
3543
|
return x === null ? NaN : +x;
|
|
3544
3544
|
}
|
|
3545
3545
|
|
|
@@ -3554,7 +3554,7 @@
|
|
|
3554
3554
|
|
|
3555
3555
|
if (valueof == null) {
|
|
3556
3556
|
while (++i < n) {
|
|
3557
|
-
if (!isNaN(value = number$
|
|
3557
|
+
if (!isNaN(value = number$3(values[i]))) {
|
|
3558
3558
|
delta = value - mean;
|
|
3559
3559
|
mean += delta / ++m;
|
|
3560
3560
|
sum += delta * (value - mean);
|
|
@@ -3564,7 +3564,7 @@
|
|
|
3564
3564
|
|
|
3565
3565
|
else {
|
|
3566
3566
|
while (++i < n) {
|
|
3567
|
-
if (!isNaN(value = number$
|
|
3567
|
+
if (!isNaN(value = number$3(valueof(values[i], i, values)))) {
|
|
3568
3568
|
delta = value - mean;
|
|
3569
3569
|
mean += delta / ++m;
|
|
3570
3570
|
sum += delta * (value - mean);
|
|
@@ -3633,7 +3633,7 @@
|
|
|
3633
3633
|
return x;
|
|
3634
3634
|
}
|
|
3635
3635
|
|
|
3636
|
-
function
|
|
3636
|
+
function range(start, stop, step) {
|
|
3637
3637
|
start = +start, stop = +stop, step = (n = arguments.length) < 2 ? (stop = start, start = 0, 1) : n < 3 ? 1 : +step;
|
|
3638
3638
|
|
|
3639
3639
|
var i = -1,
|
|
@@ -3647,11 +3647,11 @@
|
|
|
3647
3647
|
return range;
|
|
3648
3648
|
}
|
|
3649
3649
|
|
|
3650
|
-
var e10 = Math.sqrt(50),
|
|
3651
|
-
e5 = Math.sqrt(10),
|
|
3652
|
-
e2 = Math.sqrt(2);
|
|
3650
|
+
var e10$1 = Math.sqrt(50),
|
|
3651
|
+
e5$1 = Math.sqrt(10),
|
|
3652
|
+
e2$1 = Math.sqrt(2);
|
|
3653
3653
|
|
|
3654
|
-
function ticks(start, stop, count) {
|
|
3654
|
+
function ticks$1(start, stop, count) {
|
|
3655
3655
|
var reverse,
|
|
3656
3656
|
i = -1,
|
|
3657
3657
|
n,
|
|
@@ -3661,7 +3661,7 @@
|
|
|
3661
3661
|
stop = +stop, start = +start, count = +count;
|
|
3662
3662
|
if (start === stop && count > 0) return [start];
|
|
3663
3663
|
if (reverse = stop < start) n = start, start = stop, stop = n;
|
|
3664
|
-
if ((step = tickIncrement(start, stop, count)) === 0 || !isFinite(step)) return [];
|
|
3664
|
+
if ((step = tickIncrement$1(start, stop, count)) === 0 || !isFinite(step)) return [];
|
|
3665
3665
|
|
|
3666
3666
|
if (step > 0) {
|
|
3667
3667
|
start = Math.ceil(start / step);
|
|
@@ -3680,22 +3680,22 @@
|
|
|
3680
3680
|
return ticks;
|
|
3681
3681
|
}
|
|
3682
3682
|
|
|
3683
|
-
function tickIncrement(start, stop, count) {
|
|
3683
|
+
function tickIncrement$1(start, stop, count) {
|
|
3684
3684
|
var step = (stop - start) / Math.max(0, count),
|
|
3685
3685
|
power = Math.floor(Math.log(step) / Math.LN10),
|
|
3686
3686
|
error = step / Math.pow(10, power);
|
|
3687
3687
|
return power >= 0
|
|
3688
|
-
? (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1) * Math.pow(10, power)
|
|
3689
|
-
: -Math.pow(10, -power) / (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1);
|
|
3688
|
+
? (error >= e10$1 ? 10 : error >= e5$1 ? 5 : error >= e2$1 ? 2 : 1) * Math.pow(10, power)
|
|
3689
|
+
: -Math.pow(10, -power) / (error >= e10$1 ? 10 : error >= e5$1 ? 5 : error >= e2$1 ? 2 : 1);
|
|
3690
3690
|
}
|
|
3691
3691
|
|
|
3692
|
-
function tickStep(start, stop, count) {
|
|
3692
|
+
function tickStep$1(start, stop, count) {
|
|
3693
3693
|
var step0 = Math.abs(stop - start) / Math.max(0, count),
|
|
3694
3694
|
step1 = Math.pow(10, Math.floor(Math.log(step0) / Math.LN10)),
|
|
3695
3695
|
error = step0 / step1;
|
|
3696
|
-
if (error >= e10) step1 *= 10;
|
|
3697
|
-
else if (error >= e5) step1 *= 5;
|
|
3698
|
-
else if (error >= e2) step1 *= 2;
|
|
3696
|
+
if (error >= e10$1) step1 *= 10;
|
|
3697
|
+
else if (error >= e5$1) step1 *= 5;
|
|
3698
|
+
else if (error >= e2$1) step1 *= 2;
|
|
3699
3699
|
return stop < start ? -step1 : step1;
|
|
3700
3700
|
}
|
|
3701
3701
|
|
|
@@ -3725,8 +3725,8 @@
|
|
|
3725
3725
|
|
|
3726
3726
|
// Convert number of thresholds into uniform thresholds.
|
|
3727
3727
|
if (!Array.isArray(tz)) {
|
|
3728
|
-
tz = tickStep(x0, x1, tz);
|
|
3729
|
-
tz =
|
|
3728
|
+
tz = tickStep$1(x0, x1, tz);
|
|
3729
|
+
tz = range(Math.ceil(x0 / tz) * tz, x1, tz); // exclusive
|
|
3730
3730
|
}
|
|
3731
3731
|
|
|
3732
3732
|
// Remove any thresholds outside the domain.
|
|
@@ -3748,7 +3748,7 @@
|
|
|
3748
3748
|
for (i = 0; i < n; ++i) {
|
|
3749
3749
|
x = values[i];
|
|
3750
3750
|
if (x0 <= x && x <= x1) {
|
|
3751
|
-
bins[bisectRight(tz, x, 0, m)].push(data[i]);
|
|
3751
|
+
bins[bisectRight$1(tz, x, 0, m)].push(data[i]);
|
|
3752
3752
|
}
|
|
3753
3753
|
}
|
|
3754
3754
|
|
|
@@ -3770,8 +3770,8 @@
|
|
|
3770
3770
|
return histogram;
|
|
3771
3771
|
}
|
|
3772
3772
|
|
|
3773
|
-
function
|
|
3774
|
-
if (valueof == null) valueof = number$
|
|
3773
|
+
function quantile$1(values, p, valueof) {
|
|
3774
|
+
if (valueof == null) valueof = number$3;
|
|
3775
3775
|
if (!(n = values.length)) return;
|
|
3776
3776
|
if ((p = +p) <= 0 || n < 2) return +valueof(values[0], 0, values);
|
|
3777
3777
|
if (p >= 1) return +valueof(values[n - 1], n - 1, values);
|
|
@@ -3784,8 +3784,8 @@
|
|
|
3784
3784
|
}
|
|
3785
3785
|
|
|
3786
3786
|
function freedmanDiaconis(values, min, max) {
|
|
3787
|
-
values = map$3.call(values, number$
|
|
3788
|
-
return Math.ceil((max - min) / (2 * (
|
|
3787
|
+
values = map$3.call(values, number$3).sort(d3Ascending);
|
|
3788
|
+
return Math.ceil((max - min) / (2 * (quantile$1(values, 0.75) - quantile$1(values, 0.25)) * Math.pow(values.length, -1 / 3)));
|
|
3789
3789
|
}
|
|
3790
3790
|
|
|
3791
3791
|
function scott(values, min, max) {
|
|
@@ -3836,14 +3836,14 @@
|
|
|
3836
3836
|
|
|
3837
3837
|
if (valueof == null) {
|
|
3838
3838
|
while (++i < n) {
|
|
3839
|
-
if (!isNaN(value = number$
|
|
3839
|
+
if (!isNaN(value = number$3(values[i]))) sum += value;
|
|
3840
3840
|
else --m;
|
|
3841
3841
|
}
|
|
3842
3842
|
}
|
|
3843
3843
|
|
|
3844
3844
|
else {
|
|
3845
3845
|
while (++i < n) {
|
|
3846
|
-
if (!isNaN(value = number$
|
|
3846
|
+
if (!isNaN(value = number$3(valueof(values[i], i, values)))) sum += value;
|
|
3847
3847
|
else --m;
|
|
3848
3848
|
}
|
|
3849
3849
|
}
|
|
@@ -3859,7 +3859,7 @@
|
|
|
3859
3859
|
|
|
3860
3860
|
if (valueof == null) {
|
|
3861
3861
|
while (++i < n) {
|
|
3862
|
-
if (!isNaN(value = number$
|
|
3862
|
+
if (!isNaN(value = number$3(values[i]))) {
|
|
3863
3863
|
numbers.push(value);
|
|
3864
3864
|
}
|
|
3865
3865
|
}
|
|
@@ -3867,13 +3867,13 @@
|
|
|
3867
3867
|
|
|
3868
3868
|
else {
|
|
3869
3869
|
while (++i < n) {
|
|
3870
|
-
if (!isNaN(value = number$
|
|
3870
|
+
if (!isNaN(value = number$3(valueof(values[i], i, values)))) {
|
|
3871
3871
|
numbers.push(value);
|
|
3872
3872
|
}
|
|
3873
3873
|
}
|
|
3874
3874
|
}
|
|
3875
3875
|
|
|
3876
|
-
return
|
|
3876
|
+
return quantile$1(numbers.sort(d3Ascending), 0.5);
|
|
3877
3877
|
}
|
|
3878
3878
|
|
|
3879
3879
|
function merge(arrays) {
|
|
@@ -3947,7 +3947,7 @@
|
|
|
3947
3947
|
xi,
|
|
3948
3948
|
xj = values[j];
|
|
3949
3949
|
|
|
3950
|
-
if (compare == null) compare =
|
|
3950
|
+
if (compare == null) compare = d3Ascending;
|
|
3951
3951
|
|
|
3952
3952
|
while (++i < n) {
|
|
3953
3953
|
if (compare(xi = values[i], xj) < 0 || compare(xj, xj) !== 0) {
|
|
@@ -7028,7 +7028,7 @@
|
|
|
7028
7028
|
var lVal = l[sortBy[i].idx];
|
|
7029
7029
|
var rVal = r[sortBy[i].idx];
|
|
7030
7030
|
if (lVal !== rVal) {
|
|
7031
|
-
return sortBy[i].reverse ? d3Descending(lVal, rVal) :
|
|
7031
|
+
return sortBy[i].reverse ? d3Descending(lVal, rVal) : d3Ascending(lVal, rVal);
|
|
7032
7032
|
}
|
|
7033
7033
|
}
|
|
7034
7034
|
return 0;
|
|
@@ -10121,6 +10121,128 @@
|
|
|
10121
10121
|
'default': index
|
|
10122
10122
|
});
|
|
10123
10123
|
|
|
10124
|
+
function ascending(a, b) {
|
|
10125
|
+
return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
|
|
10126
|
+
}
|
|
10127
|
+
|
|
10128
|
+
function bisector(compare) {
|
|
10129
|
+
if (compare.length === 1) compare = ascendingComparator(compare);
|
|
10130
|
+
return {
|
|
10131
|
+
left: function(a, x, lo, hi) {
|
|
10132
|
+
if (lo == null) lo = 0;
|
|
10133
|
+
if (hi == null) hi = a.length;
|
|
10134
|
+
while (lo < hi) {
|
|
10135
|
+
var mid = lo + hi >>> 1;
|
|
10136
|
+
if (compare(a[mid], x) < 0) lo = mid + 1;
|
|
10137
|
+
else hi = mid;
|
|
10138
|
+
}
|
|
10139
|
+
return lo;
|
|
10140
|
+
},
|
|
10141
|
+
right: function(a, x, lo, hi) {
|
|
10142
|
+
if (lo == null) lo = 0;
|
|
10143
|
+
if (hi == null) hi = a.length;
|
|
10144
|
+
while (lo < hi) {
|
|
10145
|
+
var mid = lo + hi >>> 1;
|
|
10146
|
+
if (compare(a[mid], x) > 0) hi = mid;
|
|
10147
|
+
else lo = mid + 1;
|
|
10148
|
+
}
|
|
10149
|
+
return lo;
|
|
10150
|
+
}
|
|
10151
|
+
};
|
|
10152
|
+
}
|
|
10153
|
+
|
|
10154
|
+
function ascendingComparator(f) {
|
|
10155
|
+
return function(d, x) {
|
|
10156
|
+
return ascending(f(d), x);
|
|
10157
|
+
};
|
|
10158
|
+
}
|
|
10159
|
+
|
|
10160
|
+
var ascendingBisect = bisector(ascending);
|
|
10161
|
+
var bisectRight = ascendingBisect.right;
|
|
10162
|
+
|
|
10163
|
+
function number$2(x) {
|
|
10164
|
+
return x === null ? NaN : +x;
|
|
10165
|
+
}
|
|
10166
|
+
|
|
10167
|
+
function sequence(start, stop, step) {
|
|
10168
|
+
start = +start, stop = +stop, step = (n = arguments.length) < 2 ? (stop = start, start = 0, 1) : n < 3 ? 1 : +step;
|
|
10169
|
+
|
|
10170
|
+
var i = -1,
|
|
10171
|
+
n = Math.max(0, Math.ceil((stop - start) / step)) | 0,
|
|
10172
|
+
range = new Array(n);
|
|
10173
|
+
|
|
10174
|
+
while (++i < n) {
|
|
10175
|
+
range[i] = start + i * step;
|
|
10176
|
+
}
|
|
10177
|
+
|
|
10178
|
+
return range;
|
|
10179
|
+
}
|
|
10180
|
+
|
|
10181
|
+
var e10 = Math.sqrt(50),
|
|
10182
|
+
e5 = Math.sqrt(10),
|
|
10183
|
+
e2 = Math.sqrt(2);
|
|
10184
|
+
|
|
10185
|
+
function ticks(start, stop, count) {
|
|
10186
|
+
var reverse,
|
|
10187
|
+
i = -1,
|
|
10188
|
+
n,
|
|
10189
|
+
ticks,
|
|
10190
|
+
step;
|
|
10191
|
+
|
|
10192
|
+
stop = +stop, start = +start, count = +count;
|
|
10193
|
+
if (start === stop && count > 0) return [start];
|
|
10194
|
+
if (reverse = stop < start) n = start, start = stop, stop = n;
|
|
10195
|
+
if ((step = tickIncrement(start, stop, count)) === 0 || !isFinite(step)) return [];
|
|
10196
|
+
|
|
10197
|
+
if (step > 0) {
|
|
10198
|
+
start = Math.ceil(start / step);
|
|
10199
|
+
stop = Math.floor(stop / step);
|
|
10200
|
+
ticks = new Array(n = Math.ceil(stop - start + 1));
|
|
10201
|
+
while (++i < n) ticks[i] = (start + i) * step;
|
|
10202
|
+
} else {
|
|
10203
|
+
start = Math.floor(start * step);
|
|
10204
|
+
stop = Math.ceil(stop * step);
|
|
10205
|
+
ticks = new Array(n = Math.ceil(start - stop + 1));
|
|
10206
|
+
while (++i < n) ticks[i] = (start - i) / step;
|
|
10207
|
+
}
|
|
10208
|
+
|
|
10209
|
+
if (reverse) ticks.reverse();
|
|
10210
|
+
|
|
10211
|
+
return ticks;
|
|
10212
|
+
}
|
|
10213
|
+
|
|
10214
|
+
function tickIncrement(start, stop, count) {
|
|
10215
|
+
var step = (stop - start) / Math.max(0, count),
|
|
10216
|
+
power = Math.floor(Math.log(step) / Math.LN10),
|
|
10217
|
+
error = step / Math.pow(10, power);
|
|
10218
|
+
return power >= 0
|
|
10219
|
+
? (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1) * Math.pow(10, power)
|
|
10220
|
+
: -Math.pow(10, -power) / (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1);
|
|
10221
|
+
}
|
|
10222
|
+
|
|
10223
|
+
function tickStep(start, stop, count) {
|
|
10224
|
+
var step0 = Math.abs(stop - start) / Math.max(0, count),
|
|
10225
|
+
step1 = Math.pow(10, Math.floor(Math.log(step0) / Math.LN10)),
|
|
10226
|
+
error = step0 / step1;
|
|
10227
|
+
if (error >= e10) step1 *= 10;
|
|
10228
|
+
else if (error >= e5) step1 *= 5;
|
|
10229
|
+
else if (error >= e2) step1 *= 2;
|
|
10230
|
+
return stop < start ? -step1 : step1;
|
|
10231
|
+
}
|
|
10232
|
+
|
|
10233
|
+
function threshold$1(values, p, valueof) {
|
|
10234
|
+
if (valueof == null) valueof = number$2;
|
|
10235
|
+
if (!(n = values.length)) return;
|
|
10236
|
+
if ((p = +p) <= 0 || n < 2) return +valueof(values[0], 0, values);
|
|
10237
|
+
if (p >= 1) return +valueof(values[n - 1], n - 1, values);
|
|
10238
|
+
var n,
|
|
10239
|
+
i = (n - 1) * p,
|
|
10240
|
+
i0 = Math.floor(i),
|
|
10241
|
+
value0 = +valueof(values[i0], i0, values),
|
|
10242
|
+
value1 = +valueof(values[i0 + 1], i0 + 1, values);
|
|
10243
|
+
return value0 + (value1 - value0) * (i - i0);
|
|
10244
|
+
}
|
|
10245
|
+
|
|
10124
10246
|
var array = Array.prototype;
|
|
10125
10247
|
|
|
10126
10248
|
var map = array.map;
|
|
@@ -15140,12 +15262,12 @@
|
|
|
15140
15262
|
exports.Widget = Widget;
|
|
15141
15263
|
exports.WidgetArray = WidgetArray;
|
|
15142
15264
|
exports.active = active;
|
|
15143
|
-
exports.ascending =
|
|
15265
|
+
exports.ascending = d3Ascending;
|
|
15144
15266
|
exports.autoType = autoType;
|
|
15145
|
-
exports.bisect = bisectRight;
|
|
15267
|
+
exports.bisect = bisectRight$1;
|
|
15146
15268
|
exports.bisectLeft = bisectLeft;
|
|
15147
|
-
exports.bisectRight = bisectRight;
|
|
15148
|
-
exports.bisector = bisector;
|
|
15269
|
+
exports.bisectRight = bisectRight$1;
|
|
15270
|
+
exports.bisector = bisector$1;
|
|
15149
15271
|
exports.brush = brush;
|
|
15150
15272
|
exports.brushSelection = brushSelection;
|
|
15151
15273
|
exports.brushX = brushX;
|
|
@@ -15278,9 +15400,9 @@
|
|
|
15278
15400
|
exports.precisionRound = precisionRound;
|
|
15279
15401
|
exports.publish = publish;
|
|
15280
15402
|
exports.publishProxy = publishProxy;
|
|
15281
|
-
exports.quantile =
|
|
15403
|
+
exports.quantile = quantile$1;
|
|
15282
15404
|
exports.quantize = quantize$1;
|
|
15283
|
-
exports.range =
|
|
15405
|
+
exports.range = range;
|
|
15284
15406
|
exports.rgb = rgb;
|
|
15285
15407
|
exports.scaleBand = band;
|
|
15286
15408
|
exports.scaleIdentity = identity$1;
|
|
@@ -15314,9 +15436,9 @@
|
|
|
15314
15436
|
exports.thresholdFreedmanDiaconis = freedmanDiaconis;
|
|
15315
15437
|
exports.thresholdScott = scott;
|
|
15316
15438
|
exports.thresholdSturges = sturges;
|
|
15317
|
-
exports.tickIncrement = tickIncrement;
|
|
15318
|
-
exports.tickStep = tickStep;
|
|
15319
|
-
exports.ticks = ticks;
|
|
15439
|
+
exports.tickIncrement = tickIncrement$1;
|
|
15440
|
+
exports.tickStep = tickStep$1;
|
|
15441
|
+
exports.ticks = ticks$1;
|
|
15320
15442
|
exports.timeFormatDefaultLocale = defaultLocale;
|
|
15321
15443
|
exports.timeFormatLocale = formatLocale;
|
|
15322
15444
|
exports.touch = touch;
|