billboard.js 3.10.1 → 3.10.3
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 +91 -74
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +2 -2
- package/dist/billboard.pkgd.js +203 -347
- package/dist/billboard.pkgd.min.js +4 -4
- package/dist/plugin/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-sparkline.js +13 -11
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-stanford.js +13 -11
- package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-tableview.js +13 -11
- package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.js +13 -11
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.js +112 -273
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +124 -283
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +125 -284
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +125 -284
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +125 -284
- 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 +69 -53
- 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 +17 -17
- package/src/ChartInternal/Axis/Axis.ts +7 -4
- package/src/ChartInternal/data/data.ts +15 -9
- package/src/ChartInternal/internals/clip.ts +1 -2
- package/src/ChartInternal/internals/format.ts +15 -4
- package/src/ChartInternal/internals/size.axis.ts +4 -17
- package/src/ChartInternal/internals/size.ts +11 -5
- package/src/ChartInternal/internals/text.ts +3 -3
- package/src/ChartInternal/internals/tooltip.ts +2 -2
- package/src/ChartInternal/internals/transform.ts +1 -1
- package/src/ChartInternal/shape/arc.ts +1 -1
- package/src/ChartInternal/shape/shape.ts +2 -0
- package/src/module/browser.ts +8 -6
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.10.
|
|
8
|
+
* @version 3.10.3
|
|
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.9
|
|
12
|
+
* - @types/d3-transition ^3.0.7
|
|
13
13
|
* - d3-axis ^3.0.0
|
|
14
14
|
* - d3-brush ^3.0.0
|
|
15
15
|
* - d3-drag ^3.0.0
|
|
@@ -294,14 +294,14 @@ __webpack_require__(502);
|
|
|
294
294
|
__webpack_require__(507);
|
|
295
295
|
__webpack_require__(508);
|
|
296
296
|
__webpack_require__(509);
|
|
297
|
-
__webpack_require__(
|
|
298
|
-
__webpack_require__(
|
|
297
|
+
__webpack_require__(516);
|
|
298
|
+
__webpack_require__(519);
|
|
299
|
+
__webpack_require__(524);
|
|
299
300
|
__webpack_require__(525);
|
|
300
301
|
__webpack_require__(526);
|
|
301
302
|
__webpack_require__(527);
|
|
302
303
|
__webpack_require__(528);
|
|
303
304
|
__webpack_require__(529);
|
|
304
|
-
__webpack_require__(530);
|
|
305
305
|
|
|
306
306
|
/* unused reexport */ __webpack_require__(82);
|
|
307
307
|
|
|
@@ -1258,10 +1258,10 @@ var store = __webpack_require__(37);
|
|
|
1258
1258
|
(module.exports = function (key, value) {
|
|
1259
1259
|
return store[key] || (store[key] = value !== undefined ? value : {});
|
|
1260
1260
|
})('versions', []).push({
|
|
1261
|
-
version: '3.33.
|
|
1261
|
+
version: '3.33.2',
|
|
1262
1262
|
mode: IS_PURE ? 'pure' : 'global',
|
|
1263
1263
|
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
|
|
1264
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.33.
|
|
1264
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE',
|
|
1265
1265
|
source: 'https://github.com/zloirock/core-js'
|
|
1266
1266
|
});
|
|
1267
1267
|
|
|
@@ -5827,7 +5827,9 @@ module.exports = function (Constructor, list) {
|
|
|
5827
5827
|
var global = __webpack_require__(4);
|
|
5828
5828
|
|
|
5829
5829
|
module.exports = function (CONSTRUCTOR, METHOD) {
|
|
5830
|
-
|
|
5830
|
+
var Constructor = global[CONSTRUCTOR];
|
|
5831
|
+
var Prototype = Constructor && Constructor.prototype;
|
|
5832
|
+
return Prototype && Prototype[METHOD];
|
|
5831
5833
|
};
|
|
5832
5834
|
|
|
5833
5835
|
|
|
@@ -16394,7 +16396,7 @@ try {
|
|
|
16394
16396
|
var IS_PURE = __webpack_require__(36);
|
|
16395
16397
|
var $ = __webpack_require__(3);
|
|
16396
16398
|
var global = __webpack_require__(4);
|
|
16397
|
-
var
|
|
16399
|
+
var getBuiltIn = __webpack_require__(24);
|
|
16398
16400
|
var uncurryThis = __webpack_require__(14);
|
|
16399
16401
|
var fails = __webpack_require__(7);
|
|
16400
16402
|
var uid = __webpack_require__(41);
|
|
@@ -16414,33 +16416,26 @@ var validateArgumentsLength = __webpack_require__(329);
|
|
|
16414
16416
|
var getRegExpFlags = __webpack_require__(369);
|
|
16415
16417
|
var MapHelpers = __webpack_require__(510);
|
|
16416
16418
|
var SetHelpers = __webpack_require__(511);
|
|
16417
|
-
var
|
|
16419
|
+
var setIterate = __webpack_require__(512);
|
|
16420
|
+
var detachTransferable = __webpack_require__(514);
|
|
16418
16421
|
var ERROR_STACK_INSTALLABLE = __webpack_require__(125);
|
|
16419
|
-
var PROPER_STRUCTURED_CLONE_TRANSFER = __webpack_require__(
|
|
16422
|
+
var PROPER_STRUCTURED_CLONE_TRANSFER = __webpack_require__(515);
|
|
16420
16423
|
|
|
16421
16424
|
var Object = global.Object;
|
|
16422
16425
|
var Array = global.Array;
|
|
16423
16426
|
var Date = global.Date;
|
|
16424
16427
|
var Error = global.Error;
|
|
16425
|
-
var EvalError = global.EvalError;
|
|
16426
|
-
var RangeError = global.RangeError;
|
|
16427
|
-
var ReferenceError = global.ReferenceError;
|
|
16428
|
-
var SyntaxError = global.SyntaxError;
|
|
16429
16428
|
var TypeError = global.TypeError;
|
|
16430
|
-
var URIError = global.URIError;
|
|
16431
16429
|
var PerformanceMark = global.PerformanceMark;
|
|
16432
|
-
var
|
|
16433
|
-
var CompileError = WebAssembly && WebAssembly.CompileError || Error;
|
|
16434
|
-
var LinkError = WebAssembly && WebAssembly.LinkError || Error;
|
|
16435
|
-
var RuntimeError = WebAssembly && WebAssembly.RuntimeError || Error;
|
|
16436
|
-
var DOMException = getBuiltin('DOMException');
|
|
16430
|
+
var DOMException = getBuiltIn('DOMException');
|
|
16437
16431
|
var Map = MapHelpers.Map;
|
|
16438
16432
|
var mapHas = MapHelpers.has;
|
|
16439
16433
|
var mapGet = MapHelpers.get;
|
|
16440
16434
|
var mapSet = MapHelpers.set;
|
|
16441
16435
|
var Set = SetHelpers.Set;
|
|
16442
16436
|
var setAdd = SetHelpers.add;
|
|
16443
|
-
var
|
|
16437
|
+
var setHas = SetHelpers.has;
|
|
16438
|
+
var objectKeys = getBuiltIn('Object', 'keys');
|
|
16444
16439
|
var push = uncurryThis([].push);
|
|
16445
16440
|
var thisBooleanValue = uncurryThis(true.valueOf);
|
|
16446
16441
|
var thisNumberValue = uncurryThis(1.0.valueOf);
|
|
@@ -16455,7 +16450,7 @@ var checkBasicSemantic = function (structuredCloneImplementation) {
|
|
|
16455
16450
|
var set1 = new global.Set([7]);
|
|
16456
16451
|
var set2 = structuredCloneImplementation(set1);
|
|
16457
16452
|
var number = structuredCloneImplementation(Object(7));
|
|
16458
|
-
return set2 === set1 || !set2.has(7) ||
|
|
16453
|
+
return set2 === set1 || !set2.has(7) || !isObject(number) || +number !== 7;
|
|
16459
16454
|
}) && structuredCloneImplementation;
|
|
16460
16455
|
};
|
|
16461
16456
|
|
|
@@ -16551,10 +16546,10 @@ var cloneBuffer = function (value, map, $type) {
|
|
|
16551
16546
|
|
|
16552
16547
|
// `ArrayBuffer#slice` is not available in IE10
|
|
16553
16548
|
// `ArrayBuffer#slice` and `DataView` are not available in old FF
|
|
16554
|
-
if (!DataView &&
|
|
16549
|
+
if (!DataView && !isCallable(value.slice)) throwUnpolyfillable('ArrayBuffer');
|
|
16555
16550
|
// detached buffers throws in `DataView` and `.slice`
|
|
16556
16551
|
try {
|
|
16557
|
-
if (
|
|
16552
|
+
if (isCallable(value.slice) && !value.resizable) {
|
|
16558
16553
|
clone = value.slice(0);
|
|
16559
16554
|
} else {
|
|
16560
16555
|
length = value.byteLength;
|
|
@@ -16584,13 +16579,7 @@ var cloneView = function (value, type, offset, length, map) {
|
|
|
16584
16579
|
return new C(cloneBuffer(value.buffer, map), offset, length);
|
|
16585
16580
|
};
|
|
16586
16581
|
|
|
16587
|
-
var
|
|
16588
|
-
this.object = object;
|
|
16589
|
-
this.type = type;
|
|
16590
|
-
this.metadata = metadata;
|
|
16591
|
-
};
|
|
16592
|
-
|
|
16593
|
-
var structuredCloneInternal = function (value, map, transferredBuffers) {
|
|
16582
|
+
var structuredCloneInternal = function (value, map) {
|
|
16594
16583
|
if (isSymbol(value)) throwUncloneable('Symbol');
|
|
16595
16584
|
if (!isObject(value)) return value;
|
|
16596
16585
|
// effectively preserves circular references
|
|
@@ -16623,34 +16612,21 @@ var structuredCloneInternal = function (value, map, transferredBuffers) {
|
|
|
16623
16612
|
name = value.name;
|
|
16624
16613
|
switch (name) {
|
|
16625
16614
|
case 'AggregateError':
|
|
16626
|
-
cloned = new (
|
|
16615
|
+
cloned = new (getBuiltIn(name))([]);
|
|
16627
16616
|
break;
|
|
16628
16617
|
case 'EvalError':
|
|
16629
|
-
cloned = new EvalError();
|
|
16630
|
-
break;
|
|
16631
16618
|
case 'RangeError':
|
|
16632
|
-
cloned = new RangeError();
|
|
16633
|
-
break;
|
|
16634
16619
|
case 'ReferenceError':
|
|
16635
|
-
|
|
16636
|
-
break;
|
|
16620
|
+
case 'SuppressedError':
|
|
16637
16621
|
case 'SyntaxError':
|
|
16638
|
-
cloned = new SyntaxError();
|
|
16639
|
-
break;
|
|
16640
16622
|
case 'TypeError':
|
|
16641
|
-
cloned = new TypeError();
|
|
16642
|
-
break;
|
|
16643
16623
|
case 'URIError':
|
|
16644
|
-
cloned = new
|
|
16624
|
+
cloned = new (getBuiltIn(name))();
|
|
16645
16625
|
break;
|
|
16646
16626
|
case 'CompileError':
|
|
16647
|
-
cloned = new CompileError();
|
|
16648
|
-
break;
|
|
16649
16627
|
case 'LinkError':
|
|
16650
|
-
cloned = new LinkError();
|
|
16651
|
-
break;
|
|
16652
16628
|
case 'RuntimeError':
|
|
16653
|
-
cloned = new
|
|
16629
|
+
cloned = new (getBuiltIn('WebAssembly', name))();
|
|
16654
16630
|
break;
|
|
16655
16631
|
default:
|
|
16656
16632
|
cloned = new Error();
|
|
@@ -16661,9 +16637,7 @@ var structuredCloneInternal = function (value, map, transferredBuffers) {
|
|
|
16661
16637
|
break;
|
|
16662
16638
|
case 'ArrayBuffer':
|
|
16663
16639
|
case 'SharedArrayBuffer':
|
|
16664
|
-
cloned =
|
|
16665
|
-
? new Placeholder(value, type)
|
|
16666
|
-
: cloneBuffer(value, map, type);
|
|
16640
|
+
cloned = cloneBuffer(value, map, type);
|
|
16667
16641
|
break;
|
|
16668
16642
|
case 'DataView':
|
|
16669
16643
|
case 'Int8Array':
|
|
@@ -16679,17 +16653,15 @@ var structuredCloneInternal = function (value, map, transferredBuffers) {
|
|
|
16679
16653
|
case 'BigInt64Array':
|
|
16680
16654
|
case 'BigUint64Array':
|
|
16681
16655
|
length = type === 'DataView' ? value.byteLength : value.length;
|
|
16682
|
-
cloned =
|
|
16683
|
-
? new Placeholder(value, type, { offset: value.byteOffset, length: length })
|
|
16684
|
-
: cloneView(value, type, value.byteOffset, length, map);
|
|
16656
|
+
cloned = cloneView(value, type, value.byteOffset, length, map);
|
|
16685
16657
|
break;
|
|
16686
16658
|
case 'DOMQuad':
|
|
16687
16659
|
try {
|
|
16688
16660
|
cloned = new DOMQuad(
|
|
16689
|
-
structuredCloneInternal(value.p1, map
|
|
16690
|
-
structuredCloneInternal(value.p2, map
|
|
16691
|
-
structuredCloneInternal(value.p3, map
|
|
16692
|
-
structuredCloneInternal(value.p4, map
|
|
16661
|
+
structuredCloneInternal(value.p1, map),
|
|
16662
|
+
structuredCloneInternal(value.p2, map),
|
|
16663
|
+
structuredCloneInternal(value.p3, map),
|
|
16664
|
+
structuredCloneInternal(value.p4, map)
|
|
16693
16665
|
);
|
|
16694
16666
|
} catch (error) {
|
|
16695
16667
|
cloned = tryNativeRestrictedStructuredClone(value, type);
|
|
@@ -16710,7 +16682,7 @@ var structuredCloneInternal = function (value, map, transferredBuffers) {
|
|
|
16710
16682
|
dataTransfer = createDataTransfer();
|
|
16711
16683
|
if (dataTransfer) {
|
|
16712
16684
|
for (i = 0, length = lengthOfArrayLike(value); i < length; i++) {
|
|
16713
|
-
dataTransfer.items.add(structuredCloneInternal(value[i], map
|
|
16685
|
+
dataTransfer.items.add(structuredCloneInternal(value[i], map));
|
|
16714
16686
|
}
|
|
16715
16687
|
cloned = dataTransfer.files;
|
|
16716
16688
|
} else cloned = tryNativeRestrictedStructuredClone(value, type);
|
|
@@ -16719,7 +16691,7 @@ var structuredCloneInternal = function (value, map, transferredBuffers) {
|
|
|
16719
16691
|
// Safari 9 ImageData is a constructor, but typeof ImageData is 'object'
|
|
16720
16692
|
try {
|
|
16721
16693
|
cloned = new ImageData(
|
|
16722
|
-
structuredCloneInternal(value.data, map
|
|
16694
|
+
structuredCloneInternal(value.data, map),
|
|
16723
16695
|
value.width,
|
|
16724
16696
|
value.height,
|
|
16725
16697
|
{ colorSpace: value.colorSpace }
|
|
@@ -16816,105 +16788,38 @@ var structuredCloneInternal = function (value, map, transferredBuffers) {
|
|
|
16816
16788
|
keys = objectKeys(value);
|
|
16817
16789
|
for (i = 0, length = lengthOfArrayLike(keys); i < length; i++) {
|
|
16818
16790
|
key = keys[i];
|
|
16819
|
-
createProperty(cloned, key, structuredCloneInternal(value[key], map
|
|
16791
|
+
createProperty(cloned, key, structuredCloneInternal(value[key], map));
|
|
16820
16792
|
} break;
|
|
16821
16793
|
case 'Map':
|
|
16822
16794
|
value.forEach(function (v, k) {
|
|
16823
|
-
mapSet(cloned, structuredCloneInternal(k, map
|
|
16795
|
+
mapSet(cloned, structuredCloneInternal(k, map), structuredCloneInternal(v, map));
|
|
16824
16796
|
});
|
|
16825
16797
|
break;
|
|
16826
16798
|
case 'Set':
|
|
16827
16799
|
value.forEach(function (v) {
|
|
16828
|
-
setAdd(cloned, structuredCloneInternal(v, map
|
|
16800
|
+
setAdd(cloned, structuredCloneInternal(v, map));
|
|
16829
16801
|
});
|
|
16830
16802
|
break;
|
|
16831
16803
|
case 'Error':
|
|
16832
|
-
createNonEnumerableProperty(cloned, 'message', structuredCloneInternal(value.message, map
|
|
16804
|
+
createNonEnumerableProperty(cloned, 'message', structuredCloneInternal(value.message, map));
|
|
16833
16805
|
if (hasOwn(value, 'cause')) {
|
|
16834
|
-
createNonEnumerableProperty(cloned, 'cause', structuredCloneInternal(value.cause, map
|
|
16806
|
+
createNonEnumerableProperty(cloned, 'cause', structuredCloneInternal(value.cause, map));
|
|
16835
16807
|
}
|
|
16836
16808
|
if (name === 'AggregateError') {
|
|
16837
|
-
cloned.errors = structuredCloneInternal(value.errors, map
|
|
16809
|
+
cloned.errors = structuredCloneInternal(value.errors, map);
|
|
16810
|
+
} else if (name === 'SuppressedError') {
|
|
16811
|
+
cloned.error = structuredCloneInternal(value.error, map);
|
|
16812
|
+
cloned.suppressed = structuredCloneInternal(value.suppressed, map);
|
|
16838
16813
|
} // break omitted
|
|
16839
16814
|
case 'DOMException':
|
|
16840
16815
|
if (ERROR_STACK_INSTALLABLE) {
|
|
16841
|
-
createNonEnumerableProperty(cloned, 'stack', structuredCloneInternal(value.stack, map
|
|
16816
|
+
createNonEnumerableProperty(cloned, 'stack', structuredCloneInternal(value.stack, map));
|
|
16842
16817
|
}
|
|
16843
16818
|
}
|
|
16844
16819
|
|
|
16845
16820
|
return cloned;
|
|
16846
16821
|
};
|
|
16847
16822
|
|
|
16848
|
-
var replacePlaceholders = function (value, map) {
|
|
16849
|
-
if (!isObject(value)) return value;
|
|
16850
|
-
if (mapHas(map, value)) return mapGet(map, value);
|
|
16851
|
-
|
|
16852
|
-
var type, object, metadata, i, length, keys, key, replacement;
|
|
16853
|
-
|
|
16854
|
-
if (value instanceof Placeholder) {
|
|
16855
|
-
type = value.type;
|
|
16856
|
-
object = value.object;
|
|
16857
|
-
|
|
16858
|
-
switch (type) {
|
|
16859
|
-
case 'ArrayBuffer':
|
|
16860
|
-
case 'SharedArrayBuffer':
|
|
16861
|
-
replacement = cloneBuffer(object, map, type);
|
|
16862
|
-
break;
|
|
16863
|
-
case 'DataView':
|
|
16864
|
-
case 'Int8Array':
|
|
16865
|
-
case 'Uint8Array':
|
|
16866
|
-
case 'Uint8ClampedArray':
|
|
16867
|
-
case 'Int16Array':
|
|
16868
|
-
case 'Uint16Array':
|
|
16869
|
-
case 'Int32Array':
|
|
16870
|
-
case 'Uint32Array':
|
|
16871
|
-
case 'Float16Array':
|
|
16872
|
-
case 'Float32Array':
|
|
16873
|
-
case 'Float64Array':
|
|
16874
|
-
case 'BigInt64Array':
|
|
16875
|
-
case 'BigUint64Array':
|
|
16876
|
-
metadata = value.metadata;
|
|
16877
|
-
replacement = cloneView(object, type, metadata.offset, metadata.length, map);
|
|
16878
|
-
}
|
|
16879
|
-
} else switch (classof(value)) {
|
|
16880
|
-
case 'Array':
|
|
16881
|
-
case 'Object':
|
|
16882
|
-
keys = objectKeys(value);
|
|
16883
|
-
for (i = 0, length = lengthOfArrayLike(keys); i < length; i++) {
|
|
16884
|
-
key = keys[i];
|
|
16885
|
-
value[key] = replacePlaceholders(value[key], map);
|
|
16886
|
-
} break;
|
|
16887
|
-
case 'Map':
|
|
16888
|
-
replacement = new Map();
|
|
16889
|
-
value.forEach(function (v, k) {
|
|
16890
|
-
mapSet(replacement, replacePlaceholders(k, map), replacePlaceholders(v, map));
|
|
16891
|
-
});
|
|
16892
|
-
break;
|
|
16893
|
-
case 'Set':
|
|
16894
|
-
replacement = new Set();
|
|
16895
|
-
value.forEach(function (v) {
|
|
16896
|
-
setAdd(replacement, replacePlaceholders(v, map));
|
|
16897
|
-
});
|
|
16898
|
-
break;
|
|
16899
|
-
case 'Error':
|
|
16900
|
-
value.message = replacePlaceholders(value.message, map);
|
|
16901
|
-
if (hasOwn(value, 'cause')) {
|
|
16902
|
-
value.cause = replacePlaceholders(value.cause, map);
|
|
16903
|
-
}
|
|
16904
|
-
if (value.name === 'AggregateError') {
|
|
16905
|
-
value.errors = replacePlaceholders(value.errors, map);
|
|
16906
|
-
} // break omitted
|
|
16907
|
-
case 'DOMException':
|
|
16908
|
-
if (ERROR_STACK_INSTALLABLE) {
|
|
16909
|
-
value.stack = replacePlaceholders(value.stack, map);
|
|
16910
|
-
}
|
|
16911
|
-
}
|
|
16912
|
-
|
|
16913
|
-
mapSet(map, value, replacement || value);
|
|
16914
|
-
|
|
16915
|
-
return replacement || value;
|
|
16916
|
-
};
|
|
16917
|
-
|
|
16918
16823
|
var tryToTransfer = function (rawTransfer, map) {
|
|
16919
16824
|
if (!isObject(rawTransfer)) throw new TypeError('Transfer option cannot be converted to a sequence');
|
|
16920
16825
|
|
|
@@ -16926,7 +16831,7 @@ var tryToTransfer = function (rawTransfer, map) {
|
|
|
16926
16831
|
|
|
16927
16832
|
var i = 0;
|
|
16928
16833
|
var length = lengthOfArrayLike(transfer);
|
|
16929
|
-
var buffers =
|
|
16834
|
+
var buffers = new Set();
|
|
16930
16835
|
var value, type, C, transferred, canvas, context;
|
|
16931
16836
|
|
|
16932
16837
|
while (i < length) {
|
|
@@ -16934,13 +16839,15 @@ var tryToTransfer = function (rawTransfer, map) {
|
|
|
16934
16839
|
|
|
16935
16840
|
type = classof(value);
|
|
16936
16841
|
|
|
16842
|
+
if (type === 'ArrayBuffer' ? setHas(buffers, value) : mapHas(map, value)) {
|
|
16843
|
+
throw new DOMException('Duplicate transferable', DATA_CLONE_ERROR);
|
|
16844
|
+
}
|
|
16845
|
+
|
|
16937
16846
|
if (type === 'ArrayBuffer') {
|
|
16938
|
-
|
|
16847
|
+
setAdd(buffers, value);
|
|
16939
16848
|
continue;
|
|
16940
16849
|
}
|
|
16941
16850
|
|
|
16942
|
-
if (mapHas(map, value)) throw new DOMException('Duplicate transferable', DATA_CLONE_ERROR);
|
|
16943
|
-
|
|
16944
16851
|
if (PROPER_STRUCTURED_CLONE_TRANSFER) {
|
|
16945
16852
|
transferred = nativeStructuredClone(value, { transfer: [value] });
|
|
16946
16853
|
} else switch (type) {
|
|
@@ -16979,25 +16886,18 @@ var tryToTransfer = function (rawTransfer, map) {
|
|
|
16979
16886
|
return buffers;
|
|
16980
16887
|
};
|
|
16981
16888
|
|
|
16982
|
-
var
|
|
16983
|
-
|
|
16984
|
-
|
|
16985
|
-
|
|
16986
|
-
|
|
16987
|
-
|
|
16988
|
-
|
|
16989
|
-
|
|
16990
|
-
if (mapHas(map, value)) throw new DOMException('Duplicate transferable', DATA_CLONE_ERROR);
|
|
16991
|
-
|
|
16992
|
-
if (arrayBufferTransfer) {
|
|
16993
|
-
transferred = arrayBufferTransfer(value, undefined, true);
|
|
16889
|
+
var detachBuffers = function (buffers) {
|
|
16890
|
+
setIterate(buffers, function (buffer) {
|
|
16891
|
+
if (PROPER_STRUCTURED_CLONE_TRANSFER) {
|
|
16892
|
+
nativeRestrictedStructuredClone(buffer, { transfer: [buffer] });
|
|
16893
|
+
} else if (isCallable(buffer.transfer)) {
|
|
16894
|
+
buffer.transfer();
|
|
16895
|
+
} else if (detachTransferable) {
|
|
16896
|
+
detachTransferable(buffer);
|
|
16994
16897
|
} else {
|
|
16995
|
-
|
|
16996
|
-
transferred = value.transfer();
|
|
16898
|
+
throwUnpolyfillable('ArrayBuffer', TRANSFERRING);
|
|
16997
16899
|
}
|
|
16998
|
-
|
|
16999
|
-
mapSet(map, value, transferred);
|
|
17000
|
-
}
|
|
16900
|
+
});
|
|
17001
16901
|
};
|
|
17002
16902
|
|
|
17003
16903
|
// `structuredClone` method
|
|
@@ -17006,24 +16906,18 @@ $({ global: true, enumerable: true, sham: !PROPER_STRUCTURED_CLONE_TRANSFER, for
|
|
|
17006
16906
|
structuredClone: function structuredClone(value /* , { transfer } */) {
|
|
17007
16907
|
var options = validateArgumentsLength(arguments.length, 1) > 1 && !isNullOrUndefined(arguments[1]) ? anObject(arguments[1]) : undefined;
|
|
17008
16908
|
var transfer = options ? options.transfer : undefined;
|
|
17009
|
-
var transferredBuffers = false;
|
|
17010
16909
|
var map, buffers;
|
|
17011
16910
|
|
|
17012
16911
|
if (transfer !== undefined) {
|
|
17013
16912
|
map = new Map();
|
|
17014
16913
|
buffers = tryToTransfer(transfer, map);
|
|
17015
|
-
transferredBuffers = !!lengthOfArrayLike(buffers);
|
|
17016
16914
|
}
|
|
17017
16915
|
|
|
17018
|
-
var clone = structuredCloneInternal(value, map
|
|
16916
|
+
var clone = structuredCloneInternal(value, map);
|
|
17019
16917
|
|
|
17020
|
-
// since of an issue with cloning views of transferred buffers, we a forced to
|
|
16918
|
+
// since of an issue with cloning views of transferred buffers, we a forced to detach them later
|
|
17021
16919
|
// https://github.com/zloirock/core-js/issues/1265
|
|
17022
|
-
if (
|
|
17023
|
-
map = new Map();
|
|
17024
|
-
tryToTransferBuffers(transfer, map);
|
|
17025
|
-
clone = replacePlaceholders(clone, map);
|
|
17026
|
-
}
|
|
16920
|
+
if (buffers) detachBuffers(buffers);
|
|
17027
16921
|
|
|
17028
16922
|
return clone;
|
|
17029
16923
|
}
|
|
@@ -17079,50 +16973,18 @@ module.exports = {
|
|
|
17079
16973
|
|
|
17080
16974
|
"use strict";
|
|
17081
16975
|
|
|
17082
|
-
var global = __webpack_require__(4);
|
|
17083
16976
|
var uncurryThis = __webpack_require__(14);
|
|
17084
|
-
var
|
|
17085
|
-
var
|
|
17086
|
-
var isDetached = __webpack_require__(513);
|
|
17087
|
-
var arrayBufferByteLength = __webpack_require__(514);
|
|
17088
|
-
var detachTransferable = __webpack_require__(515);
|
|
17089
|
-
var PROPER_STRUCTURED_CLONE_TRANSFER = __webpack_require__(516);
|
|
16977
|
+
var iterateSimple = __webpack_require__(513);
|
|
16978
|
+
var SetHelpers = __webpack_require__(511);
|
|
17090
16979
|
|
|
17091
|
-
var
|
|
17092
|
-
var
|
|
17093
|
-
var
|
|
17094
|
-
var
|
|
17095
|
-
var
|
|
17096
|
-
|
|
17097
|
-
|
|
17098
|
-
|
|
17099
|
-
var isResizable = uncurryThisAccessor(ArrayBufferPrototype, 'resizable', 'get');
|
|
17100
|
-
var maxByteLength = uncurryThisAccessor(ArrayBufferPrototype, 'maxByteLength', 'get');
|
|
17101
|
-
var getInt8 = uncurryThis(DataViewPrototype.getInt8);
|
|
17102
|
-
var setInt8 = uncurryThis(DataViewPrototype.setInt8);
|
|
17103
|
-
|
|
17104
|
-
module.exports = (PROPER_STRUCTURED_CLONE_TRANSFER || detachTransferable) && function (arrayBuffer, newLength, preserveResizability) {
|
|
17105
|
-
var byteLength = arrayBufferByteLength(arrayBuffer);
|
|
17106
|
-
var newByteLength = newLength === undefined ? byteLength : toIndex(newLength);
|
|
17107
|
-
var fixedLength = !isResizable || !isResizable(arrayBuffer);
|
|
17108
|
-
var newBuffer;
|
|
17109
|
-
if (isDetached(arrayBuffer)) throw new TypeError('ArrayBuffer is detached');
|
|
17110
|
-
if (PROPER_STRUCTURED_CLONE_TRANSFER) {
|
|
17111
|
-
arrayBuffer = structuredClone(arrayBuffer, { transfer: [arrayBuffer] });
|
|
17112
|
-
if (byteLength === newByteLength && (preserveResizability || fixedLength)) return arrayBuffer;
|
|
17113
|
-
}
|
|
17114
|
-
if (byteLength >= newByteLength && (!preserveResizability || fixedLength)) {
|
|
17115
|
-
newBuffer = slice(arrayBuffer, 0, newByteLength);
|
|
17116
|
-
} else {
|
|
17117
|
-
var options = preserveResizability && !fixedLength && maxByteLength ? { maxByteLength: maxByteLength(arrayBuffer) } : undefined;
|
|
17118
|
-
newBuffer = new ArrayBuffer(newByteLength, options);
|
|
17119
|
-
var a = new DataView(arrayBuffer);
|
|
17120
|
-
var b = new DataView(newBuffer);
|
|
17121
|
-
var copyLength = min(newByteLength, byteLength);
|
|
17122
|
-
for (var i = 0; i < copyLength; i++) setInt8(b, i, getInt8(a, i));
|
|
17123
|
-
}
|
|
17124
|
-
if (!PROPER_STRUCTURED_CLONE_TRANSFER) detachTransferable(arrayBuffer);
|
|
17125
|
-
return newBuffer;
|
|
16980
|
+
var Set = SetHelpers.Set;
|
|
16981
|
+
var SetPrototype = SetHelpers.proto;
|
|
16982
|
+
var forEach = uncurryThis(SetPrototype.forEach);
|
|
16983
|
+
var keys = uncurryThis(SetPrototype.keys);
|
|
16984
|
+
var next = keys(new Set()).next;
|
|
16985
|
+
|
|
16986
|
+
module.exports = function (set, fn, interruptible) {
|
|
16987
|
+
return interruptible ? iterateSimple({ iterator: keys(set), next: next }, fn) : forEach(set, fn);
|
|
17126
16988
|
};
|
|
17127
16989
|
|
|
17128
16990
|
|
|
@@ -17132,18 +16994,15 @@ module.exports = (PROPER_STRUCTURED_CLONE_TRANSFER || detachTransferable) && fun
|
|
|
17132
16994
|
|
|
17133
16995
|
"use strict";
|
|
17134
16996
|
|
|
17135
|
-
var
|
|
17136
|
-
var arrayBufferByteLength = __webpack_require__(514);
|
|
17137
|
-
|
|
17138
|
-
var slice = uncurryThis(ArrayBuffer.prototype.slice);
|
|
16997
|
+
var call = __webpack_require__(8);
|
|
17139
16998
|
|
|
17140
|
-
module.exports = function (
|
|
17141
|
-
|
|
17142
|
-
|
|
17143
|
-
|
|
17144
|
-
|
|
17145
|
-
|
|
17146
|
-
return
|
|
16999
|
+
module.exports = function (record, fn, ITERATOR_INSTEAD_OF_RECORD) {
|
|
17000
|
+
var iterator = ITERATOR_INSTEAD_OF_RECORD ? record : record.iterator;
|
|
17001
|
+
var next = record.next;
|
|
17002
|
+
var step, result;
|
|
17003
|
+
while (!(step = call(next, iterator)).done) {
|
|
17004
|
+
result = fn(step.value);
|
|
17005
|
+
if (result !== undefined) return result;
|
|
17147
17006
|
}
|
|
17148
17007
|
};
|
|
17149
17008
|
|
|
@@ -17154,29 +17013,9 @@ module.exports = function (O) {
|
|
|
17154
17013
|
|
|
17155
17014
|
"use strict";
|
|
17156
17015
|
|
|
17157
|
-
var uncurryThisAccessor = __webpack_require__(117);
|
|
17158
|
-
var classof = __webpack_require__(15);
|
|
17159
|
-
|
|
17160
|
-
var $TypeError = TypeError;
|
|
17161
|
-
|
|
17162
|
-
// Includes
|
|
17163
|
-
// - Perform ? RequireInternalSlot(O, [[ArrayBufferData]]).
|
|
17164
|
-
// - If IsSharedArrayBuffer(O) is true, throw a TypeError exception.
|
|
17165
|
-
module.exports = uncurryThisAccessor(ArrayBuffer.prototype, 'byteLength', 'get') || function (O) {
|
|
17166
|
-
if (classof(O) !== 'ArrayBuffer') throw new $TypeError('ArrayBuffer expected');
|
|
17167
|
-
return O.byteLength;
|
|
17168
|
-
};
|
|
17169
|
-
|
|
17170
|
-
|
|
17171
|
-
/***/ }),
|
|
17172
|
-
/* 515 */
|
|
17173
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
17174
|
-
|
|
17175
|
-
"use strict";
|
|
17176
|
-
|
|
17177
17016
|
var global = __webpack_require__(4);
|
|
17178
17017
|
var tryNodeRequire = __webpack_require__(498);
|
|
17179
|
-
var PROPER_STRUCTURED_CLONE_TRANSFER = __webpack_require__(
|
|
17018
|
+
var PROPER_STRUCTURED_CLONE_TRANSFER = __webpack_require__(515);
|
|
17180
17019
|
|
|
17181
17020
|
var structuredClone = global.structuredClone;
|
|
17182
17021
|
var $ArrayBuffer = global.ArrayBuffer;
|
|
@@ -17213,7 +17052,7 @@ module.exports = detach;
|
|
|
17213
17052
|
|
|
17214
17053
|
|
|
17215
17054
|
/***/ }),
|
|
17216
|
-
/*
|
|
17055
|
+
/* 515 */
|
|
17217
17056
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
17218
17057
|
|
|
17219
17058
|
"use strict";
|
|
@@ -17238,18 +17077,18 @@ module.exports = !!structuredClone && !fails(function () {
|
|
|
17238
17077
|
|
|
17239
17078
|
|
|
17240
17079
|
/***/ }),
|
|
17241
|
-
/*
|
|
17080
|
+
/* 516 */
|
|
17242
17081
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
17243
17082
|
|
|
17244
17083
|
"use strict";
|
|
17245
17084
|
|
|
17246
17085
|
// TODO: Remove this module from `core-js@4` since it's split to modules listed below
|
|
17086
|
+
__webpack_require__(517);
|
|
17247
17087
|
__webpack_require__(518);
|
|
17248
|
-
__webpack_require__(519);
|
|
17249
17088
|
|
|
17250
17089
|
|
|
17251
17090
|
/***/ }),
|
|
17252
|
-
/*
|
|
17091
|
+
/* 517 */
|
|
17253
17092
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
17254
17093
|
|
|
17255
17094
|
"use strict";
|
|
@@ -17268,7 +17107,7 @@ $({ global: true, bind: true, forced: global.setInterval !== setInterval }, {
|
|
|
17268
17107
|
|
|
17269
17108
|
|
|
17270
17109
|
/***/ }),
|
|
17271
|
-
/*
|
|
17110
|
+
/* 518 */
|
|
17272
17111
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
17273
17112
|
|
|
17274
17113
|
"use strict";
|
|
@@ -17287,17 +17126,17 @@ $({ global: true, bind: true, forced: global.setTimeout !== setTimeout }, {
|
|
|
17287
17126
|
|
|
17288
17127
|
|
|
17289
17128
|
/***/ }),
|
|
17290
|
-
/*
|
|
17129
|
+
/* 519 */
|
|
17291
17130
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
17292
17131
|
|
|
17293
17132
|
"use strict";
|
|
17294
17133
|
|
|
17295
17134
|
// TODO: Remove this module from `core-js@4` since it's replaced to module below
|
|
17296
|
-
__webpack_require__(
|
|
17135
|
+
__webpack_require__(520);
|
|
17297
17136
|
|
|
17298
17137
|
|
|
17299
17138
|
/***/ }),
|
|
17300
|
-
/*
|
|
17139
|
+
/* 520 */
|
|
17301
17140
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
17302
17141
|
|
|
17303
17142
|
"use strict";
|
|
@@ -17306,7 +17145,7 @@ __webpack_require__(521);
|
|
|
17306
17145
|
__webpack_require__(392);
|
|
17307
17146
|
var $ = __webpack_require__(3);
|
|
17308
17147
|
var DESCRIPTORS = __webpack_require__(6);
|
|
17309
|
-
var USE_NATIVE_URL = __webpack_require__(
|
|
17148
|
+
var USE_NATIVE_URL = __webpack_require__(521);
|
|
17310
17149
|
var global = __webpack_require__(4);
|
|
17311
17150
|
var bind = __webpack_require__(86);
|
|
17312
17151
|
var uncurryThis = __webpack_require__(14);
|
|
@@ -17318,11 +17157,11 @@ var assign = __webpack_require__(293);
|
|
|
17318
17157
|
var arrayFrom = __webpack_require__(163);
|
|
17319
17158
|
var arraySlice = __webpack_require__(77);
|
|
17320
17159
|
var codeAt = (__webpack_require__(385).codeAt);
|
|
17321
|
-
var toASCII = __webpack_require__(
|
|
17160
|
+
var toASCII = __webpack_require__(522);
|
|
17322
17161
|
var $toString = __webpack_require__(69);
|
|
17323
17162
|
var setToStringTag = __webpack_require__(84);
|
|
17324
17163
|
var validateArgumentsLength = __webpack_require__(329);
|
|
17325
|
-
var URLSearchParamsModule = __webpack_require__(
|
|
17164
|
+
var URLSearchParamsModule = __webpack_require__(523);
|
|
17326
17165
|
var InternalStateModule = __webpack_require__(52);
|
|
17327
17166
|
|
|
17328
17167
|
var setInternalState = InternalStateModule.set;
|
|
@@ -18352,7 +18191,7 @@ $({ global: true, constructor: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS
|
|
|
18352
18191
|
|
|
18353
18192
|
|
|
18354
18193
|
/***/ }),
|
|
18355
|
-
/*
|
|
18194
|
+
/* 521 */
|
|
18356
18195
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
18357
18196
|
|
|
18358
18197
|
"use strict";
|
|
@@ -18401,7 +18240,7 @@ module.exports = !fails(function () {
|
|
|
18401
18240
|
|
|
18402
18241
|
|
|
18403
18242
|
/***/ }),
|
|
18404
|
-
/*
|
|
18243
|
+
/* 522 */
|
|
18405
18244
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
18406
18245
|
|
|
18407
18246
|
"use strict";
|
|
@@ -18589,7 +18428,7 @@ module.exports = function (input) {
|
|
|
18589
18428
|
|
|
18590
18429
|
|
|
18591
18430
|
/***/ }),
|
|
18592
|
-
/*
|
|
18431
|
+
/* 523 */
|
|
18593
18432
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
18594
18433
|
|
|
18595
18434
|
"use strict";
|
|
@@ -18601,7 +18440,7 @@ var global = __webpack_require__(4);
|
|
|
18601
18440
|
var call = __webpack_require__(8);
|
|
18602
18441
|
var uncurryThis = __webpack_require__(14);
|
|
18603
18442
|
var DESCRIPTORS = __webpack_require__(6);
|
|
18604
|
-
var USE_NATIVE_URL = __webpack_require__(
|
|
18443
|
+
var USE_NATIVE_URL = __webpack_require__(521);
|
|
18605
18444
|
var defineBuiltIn = __webpack_require__(48);
|
|
18606
18445
|
var defineBuiltInAccessor = __webpack_require__(79);
|
|
18607
18446
|
var defineBuiltIns = __webpack_require__(210);
|
|
@@ -19020,7 +18859,7 @@ module.exports = {
|
|
|
19020
18859
|
|
|
19021
18860
|
|
|
19022
18861
|
/***/ }),
|
|
19023
|
-
/*
|
|
18862
|
+
/* 524 */
|
|
19024
18863
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
19025
18864
|
|
|
19026
18865
|
"use strict";
|
|
@@ -19030,7 +18869,7 @@ var getBuiltIn = __webpack_require__(24);
|
|
|
19030
18869
|
var fails = __webpack_require__(7);
|
|
19031
18870
|
var validateArgumentsLength = __webpack_require__(329);
|
|
19032
18871
|
var toString = __webpack_require__(69);
|
|
19033
|
-
var USE_NATIVE_URL = __webpack_require__(
|
|
18872
|
+
var USE_NATIVE_URL = __webpack_require__(521);
|
|
19034
18873
|
|
|
19035
18874
|
var URL = getBuiltIn('URL');
|
|
19036
18875
|
|
|
@@ -19057,7 +18896,7 @@ $({ target: 'URL', stat: true, forced: !THROWS_WITHOUT_ARGUMENTS }, {
|
|
|
19057
18896
|
|
|
19058
18897
|
|
|
19059
18898
|
/***/ }),
|
|
19060
|
-
/*
|
|
18899
|
+
/* 525 */
|
|
19061
18900
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
19062
18901
|
|
|
19063
18902
|
"use strict";
|
|
@@ -19075,17 +18914,17 @@ $({ target: 'URL', proto: true, enumerable: true }, {
|
|
|
19075
18914
|
|
|
19076
18915
|
|
|
19077
18916
|
/***/ }),
|
|
19078
|
-
/*
|
|
18917
|
+
/* 526 */
|
|
19079
18918
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
19080
18919
|
|
|
19081
18920
|
"use strict";
|
|
19082
18921
|
|
|
19083
18922
|
// TODO: Remove this module from `core-js@4` since it's replaced to module below
|
|
19084
|
-
__webpack_require__(
|
|
18923
|
+
__webpack_require__(523);
|
|
19085
18924
|
|
|
19086
18925
|
|
|
19087
18926
|
/***/ }),
|
|
19088
|
-
/*
|
|
18927
|
+
/* 527 */
|
|
19089
18928
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
19090
18929
|
|
|
19091
18930
|
"use strict";
|
|
@@ -19141,7 +18980,7 @@ if (params + '' !== 'a=2') {
|
|
|
19141
18980
|
|
|
19142
18981
|
|
|
19143
18982
|
/***/ }),
|
|
19144
|
-
/*
|
|
18983
|
+
/* 528 */
|
|
19145
18984
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
19146
18985
|
|
|
19147
18986
|
"use strict";
|
|
@@ -19176,7 +19015,7 @@ if (params.has('a', 2) || !params.has('a', undefined)) {
|
|
|
19176
19015
|
|
|
19177
19016
|
|
|
19178
19017
|
/***/ }),
|
|
19179
|
-
/*
|
|
19018
|
+
/* 529 */
|
|
19180
19019
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
19181
19020
|
|
|
19182
19021
|
"use strict";
|
|
@@ -19204,7 +19043,7 @@ if (DESCRIPTORS && !('size' in URLSearchParamsPrototype)) {
|
|
|
19204
19043
|
|
|
19205
19044
|
|
|
19206
19045
|
/***/ }),
|
|
19207
|
-
/*
|
|
19046
|
+
/* 530 */
|
|
19208
19047
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
19209
19048
|
|
|
19210
19049
|
"use strict";
|
|
@@ -20908,7 +20747,7 @@ function dispatchFunction(type, params) {
|
|
|
20908
20747
|
return this.each((typeof params === "function" ? dispatchFunction : dispatchConstant)(type, params));
|
|
20909
20748
|
}
|
|
20910
20749
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
20911
|
-
var regenerator = __webpack_require__(
|
|
20750
|
+
var regenerator = __webpack_require__(531);
|
|
20912
20751
|
;// CONCATENATED MODULE: ./node_modules/d3-selection/src/selection/iterator.js
|
|
20913
20752
|
|
|
20914
20753
|
var _marked = /*#__PURE__*/regenerator.mark(_callee);
|
|
@@ -21069,15 +20908,17 @@ function getGlobal() {
|
|
|
21069
20908
|
*/
|
|
21070
20909
|
function getFallback(w) {
|
|
21071
20910
|
var _this = this;
|
|
21072
|
-
const hasRAF = typeof (w == null ? void 0 : w.requestAnimationFrame) === "function",
|
|
21073
|
-
hasRIC = typeof (w == null ? void 0 : w.requestIdleCallback) === "function"
|
|
21074
|
-
|
|
21075
|
-
|
|
21076
|
-
|
|
21077
|
-
|
|
21078
|
-
|
|
21079
|
-
|
|
21080
|
-
|
|
20911
|
+
const hasRAF = typeof (w == null ? void 0 : w.requestAnimationFrame) === "function" && typeof (w == null ? void 0 : w.cancelAnimationFrame) === "function",
|
|
20912
|
+
hasRIC = typeof (w == null ? void 0 : w.requestIdleCallback) === "function" && typeof (w == null ? void 0 : w.cancelIdleCallback) === "function",
|
|
20913
|
+
request = function (cb) {
|
|
20914
|
+
_newArrowCheck(this, _this);
|
|
20915
|
+
return setTimeout(cb, 1);
|
|
20916
|
+
}.bind(this),
|
|
20917
|
+
cancel = function (id) {
|
|
20918
|
+
_newArrowCheck(this, _this);
|
|
20919
|
+
return clearTimeout(id);
|
|
20920
|
+
}.bind(this);
|
|
20921
|
+
return [hasRAF ? w.requestAnimationFrame : request, hasRAF ? w.cancelAnimationFrame : cancel, hasRIC ? w.requestIdleCallback : request, hasRIC ? w.cancelIdleCallback : cancel];
|
|
21081
20922
|
}
|
|
21082
20923
|
const win = getGlobal(),
|
|
21083
20924
|
browser_doc = win == null ? void 0 : win.document,
|
|
@@ -28787,6 +28628,7 @@ function getDataKeyForJson(keysParam, config) {
|
|
|
28787
28628
|
return current;
|
|
28788
28629
|
},
|
|
28789
28630
|
getRangedData: function getRangedData(d, key, type) {
|
|
28631
|
+
var _this39 = this;
|
|
28790
28632
|
if (key === void 0) {
|
|
28791
28633
|
key = "";
|
|
28792
28634
|
}
|
|
@@ -28795,13 +28637,20 @@ function getDataKeyForJson(keysParam, config) {
|
|
|
28795
28637
|
}
|
|
28796
28638
|
const value = d == null ? void 0 : d.value;
|
|
28797
28639
|
if (isArray(value)) {
|
|
28798
|
-
|
|
28799
|
-
|
|
28800
|
-
|
|
28801
|
-
|
|
28802
|
-
|
|
28803
|
-
|
|
28804
|
-
|
|
28640
|
+
if (type === "bar") {
|
|
28641
|
+
return value.reduce(function (a, c) {
|
|
28642
|
+
_newArrowCheck(this, _this39);
|
|
28643
|
+
return c - a;
|
|
28644
|
+
}.bind(this));
|
|
28645
|
+
} else {
|
|
28646
|
+
// @ts-ignore
|
|
28647
|
+
const index = {
|
|
28648
|
+
areaRange: ["high", "mid", "low"],
|
|
28649
|
+
candlestick: ["open", "high", "low", "close", "volume"]
|
|
28650
|
+
}[type].indexOf(key);
|
|
28651
|
+
return index >= 0 && value ? value[index] : undefined;
|
|
28652
|
+
}
|
|
28653
|
+
} else if (value && key) {
|
|
28805
28654
|
return value[key];
|
|
28806
28655
|
}
|
|
28807
28656
|
return value;
|
|
@@ -28812,20 +28661,20 @@ function getDataKeyForJson(keysParam, config) {
|
|
|
28812
28661
|
* @private
|
|
28813
28662
|
*/
|
|
28814
28663
|
setRatioForGroupedData: function setRatioForGroupedData(data) {
|
|
28815
|
-
var
|
|
28664
|
+
var _this40 = this;
|
|
28816
28665
|
const $$ = this,
|
|
28817
28666
|
config = $$.config;
|
|
28818
28667
|
// calculate ratio if grouped data exists
|
|
28819
28668
|
if (config.data_groups.length && data.some(function (d) {
|
|
28820
|
-
_newArrowCheck(this,
|
|
28669
|
+
_newArrowCheck(this, _this40);
|
|
28821
28670
|
return $$.isGrouped(d.id);
|
|
28822
28671
|
}.bind(this))) {
|
|
28823
28672
|
const setter = function (d) {
|
|
28824
|
-
_newArrowCheck(this,
|
|
28673
|
+
_newArrowCheck(this, _this40);
|
|
28825
28674
|
return $$.getRatio("index", d, !0);
|
|
28826
28675
|
}.bind(this);
|
|
28827
28676
|
data.forEach(function (v) {
|
|
28828
|
-
_newArrowCheck(this,
|
|
28677
|
+
_newArrowCheck(this, _this40);
|
|
28829
28678
|
"values" in v ? v.values.forEach(setter) : setter(v);
|
|
28830
28679
|
}.bind(this));
|
|
28831
28680
|
}
|
|
@@ -28839,7 +28688,7 @@ function getDataKeyForJson(keysParam, config) {
|
|
|
28839
28688
|
* @private
|
|
28840
28689
|
*/
|
|
28841
28690
|
getRatio: function getRatio(type, d, asPercent) {
|
|
28842
|
-
var
|
|
28691
|
+
var _this41 = this;
|
|
28843
28692
|
if (asPercent === void 0) {
|
|
28844
28693
|
asPercent = !1;
|
|
28845
28694
|
}
|
|
@@ -28868,15 +28717,15 @@ function getDataKeyForJson(keysParam, config) {
|
|
|
28868
28717
|
let hiddenSum = dataValues(state.hiddenTargetIds, !1);
|
|
28869
28718
|
if (hiddenSum.length) {
|
|
28870
28719
|
hiddenSum = hiddenSum.reduce(function (acc, curr) {
|
|
28871
|
-
var
|
|
28872
|
-
_newArrowCheck(this,
|
|
28720
|
+
var _this42 = this;
|
|
28721
|
+
_newArrowCheck(this, _this41);
|
|
28873
28722
|
return acc.map(function (v, i) {
|
|
28874
|
-
_newArrowCheck(this,
|
|
28723
|
+
_newArrowCheck(this, _this42);
|
|
28875
28724
|
return (isNumber(v) ? v : 0) + curr[i];
|
|
28876
28725
|
}.bind(this));
|
|
28877
28726
|
}.bind(this));
|
|
28878
28727
|
total = total.map(function (v, i) {
|
|
28879
|
-
_newArrowCheck(this,
|
|
28728
|
+
_newArrowCheck(this, _this41);
|
|
28880
28729
|
return v - hiddenSum[i];
|
|
28881
28730
|
}.bind(this));
|
|
28882
28731
|
}
|
|
@@ -28889,11 +28738,11 @@ function getDataKeyForJson(keysParam, config) {
|
|
|
28889
28738
|
} else if (type === "bar") {
|
|
28890
28739
|
const yScale = $$.getYScaleById.bind($$)(d.id),
|
|
28891
28740
|
max = yScale.domain().reduce(function (a, c) {
|
|
28892
|
-
_newArrowCheck(this,
|
|
28741
|
+
_newArrowCheck(this, _this41);
|
|
28893
28742
|
return c - a;
|
|
28894
28743
|
}.bind(this));
|
|
28895
28744
|
// when all data are 0, return 0
|
|
28896
|
-
ratio = max === 0 ? 0 : Math.abs(d
|
|
28745
|
+
ratio = max === 0 ? 0 : Math.abs($$.getRangedData(d, null, type) / max);
|
|
28897
28746
|
} else if (type === "treemap") {
|
|
28898
28747
|
ratio /= $$.getTotalDataSum(!0);
|
|
28899
28748
|
}
|
|
@@ -28906,18 +28755,18 @@ function getDataKeyForJson(keysParam, config) {
|
|
|
28906
28755
|
* @private
|
|
28907
28756
|
*/
|
|
28908
28757
|
updateDataIndexByX: function updateDataIndexByX(tickValues) {
|
|
28909
|
-
var
|
|
28758
|
+
var _this43 = this;
|
|
28910
28759
|
const $$ = this,
|
|
28911
28760
|
tickValueMap = tickValues.reduce(function (out, tick, index) {
|
|
28912
|
-
_newArrowCheck(this,
|
|
28761
|
+
_newArrowCheck(this, _this43);
|
|
28913
28762
|
out[+tick.x] = index;
|
|
28914
28763
|
return out;
|
|
28915
28764
|
}.bind(this), {});
|
|
28916
28765
|
$$.data.targets.forEach(function (t) {
|
|
28917
|
-
var
|
|
28918
|
-
_newArrowCheck(this,
|
|
28766
|
+
var _this44 = this;
|
|
28767
|
+
_newArrowCheck(this, _this43);
|
|
28919
28768
|
t.values.forEach(function (value, valueIndex) {
|
|
28920
|
-
_newArrowCheck(this,
|
|
28769
|
+
_newArrowCheck(this, _this44);
|
|
28921
28770
|
let index = tickValueMap[+value.x];
|
|
28922
28771
|
if (index === undefined) {
|
|
28923
28772
|
index = valueIndex;
|
|
@@ -28943,11 +28792,11 @@ function getDataKeyForJson(keysParam, config) {
|
|
|
28943
28792
|
* @private
|
|
28944
28793
|
*/
|
|
28945
28794
|
isBarRangeType: function isBarRangeType(d) {
|
|
28946
|
-
var
|
|
28795
|
+
var _this45 = this;
|
|
28947
28796
|
const $$ = this,
|
|
28948
28797
|
value = d.value;
|
|
28949
28798
|
return $$.isBarType(d) && isArray(value) && value.length >= 2 && value.every(function (v) {
|
|
28950
|
-
_newArrowCheck(this,
|
|
28799
|
+
_newArrowCheck(this, _this45);
|
|
28951
28800
|
return isNumber(v);
|
|
28952
28801
|
}.bind(this));
|
|
28953
28802
|
},
|
|
@@ -30779,7 +30628,7 @@ function getFormat($$, typeValue, v) {
|
|
|
30779
30628
|
};
|
|
30780
30629
|
},
|
|
30781
30630
|
defaultValueFormat: function defaultValueFormat(v) {
|
|
30782
|
-
return isValue(v) ? +v : "";
|
|
30631
|
+
return isArray(v) ? v.join("~") : isValue(v) ? +v : "";
|
|
30783
30632
|
},
|
|
30784
30633
|
defaultArcValueFormat: function defaultArcValueFormat(v, ratio) {
|
|
30785
30634
|
return (ratio * 100).toFixed(1) + "%";
|
|
@@ -30793,7 +30642,14 @@ function getFormat($$, typeValue, v) {
|
|
|
30793
30642
|
dataLabels = $$.config.data_labels,
|
|
30794
30643
|
defaultFormat = function (v) {
|
|
30795
30644
|
_newArrowCheck(this, _this);
|
|
30796
|
-
|
|
30645
|
+
const delimiter = "~";
|
|
30646
|
+
let res = v;
|
|
30647
|
+
if (isArray(v)) {
|
|
30648
|
+
res = v.join(delimiter);
|
|
30649
|
+
} else if (isObject(v)) {
|
|
30650
|
+
res = Object.values(v).join(delimiter);
|
|
30651
|
+
}
|
|
30652
|
+
return res;
|
|
30797
30653
|
}.bind(this);
|
|
30798
30654
|
let format = defaultFormat;
|
|
30799
30655
|
|
|
@@ -34484,6 +34340,8 @@ function getGroupedDataPointsFn(d) {
|
|
|
34484
34340
|
let value = d.value;
|
|
34485
34341
|
if (isNumber(d)) {
|
|
34486
34342
|
value = d;
|
|
34343
|
+
} else if ($$.isAreaRangeType(d)) {
|
|
34344
|
+
value = $$.getBaseValue(d, "mid");
|
|
34487
34345
|
} else if (isStackNormalized) {
|
|
34488
34346
|
value = $$.getRatio("index", d, !0);
|
|
34489
34347
|
} else if ($$.isBubbleZType(d)) {
|
|
@@ -34894,14 +34752,18 @@ function getGroupedDataPointsFn(d) {
|
|
|
34894
34752
|
* Get padding by the direction.
|
|
34895
34753
|
* @param {string} type "top" | "bottom" | "left" | "right"
|
|
34896
34754
|
* @param {boolean} [withoutRecompute=false] If set true, do not recompute the padding value.
|
|
34755
|
+
* @param {boolean} [withXAxisTickTextOverflow=false] If set true, calculate x axis tick text overflow.
|
|
34897
34756
|
* @returns {number} padding value
|
|
34898
34757
|
* @private
|
|
34899
34758
|
*/
|
|
34900
|
-
getCurrentPaddingByDirection: function getCurrentPaddingByDirection(type, withoutRecompute) {
|
|
34759
|
+
getCurrentPaddingByDirection: function getCurrentPaddingByDirection(type, withoutRecompute, withXAxisTickTextOverflow) {
|
|
34901
34760
|
var _config$padding;
|
|
34902
34761
|
if (withoutRecompute === void 0) {
|
|
34903
34762
|
withoutRecompute = !1;
|
|
34904
34763
|
}
|
|
34764
|
+
if (withXAxisTickTextOverflow === void 0) {
|
|
34765
|
+
withXAxisTickTextOverflow = !1;
|
|
34766
|
+
}
|
|
34905
34767
|
const $$ = this,
|
|
34906
34768
|
config = $$.config,
|
|
34907
34769
|
$el = $$.$el,
|
|
@@ -34920,6 +34782,7 @@ function getGroupedDataPointsFn(d) {
|
|
|
34920
34782
|
isAxisShow = axisId && config["axis_" + axisId + "_show"],
|
|
34921
34783
|
axesLen = axisId ? config["axis_" + axisId + "_axes"].length : 0;
|
|
34922
34784
|
let axisSize = axisId ? isLeftRight ? $$.getAxisWidthByAxisId(axisId, withoutRecompute) : $$.getHorizontalAxisHeight(axisId) : 0;
|
|
34785
|
+
const defaultPadding = 20;
|
|
34923
34786
|
let gap = 0;
|
|
34924
34787
|
if (!isFitPadding && isLeftRight) {
|
|
34925
34788
|
axisSize = ceil10(axisSize);
|
|
@@ -34927,10 +34790,11 @@ function getGroupedDataPointsFn(d) {
|
|
|
34927
34790
|
let padding = hasAxis && isLeftRight && (isAxisInner || isUndefined(paddingOption) && !isAxisShow) ? 0 : isFitPadding ? (isAxisShow ? axisSize : 0) + (paddingOption != null ? paddingOption : 0) : isUndefined(paddingOption) ? axisSize : paddingOption;
|
|
34928
34791
|
if (isLeftRight && hasAxis) {
|
|
34929
34792
|
if (axisId && (isFitPadding || isAxisInner) && config["axis_" + axisId + "_label"].text) {
|
|
34930
|
-
padding += $$.axis.getAxisLabelPosition(axisId).isOuter ?
|
|
34793
|
+
padding += $$.axis.getAxisLabelPosition(axisId).isOuter ? defaultPadding : 0;
|
|
34931
34794
|
}
|
|
34932
34795
|
if (type === "right") {
|
|
34933
34796
|
padding += isRotated ? !isFitPadding && isUndefined(paddingOption) ? 10 : 2 : !isAxisShow || isAxisInner ? isFitPadding ? 2 : 1 : 0;
|
|
34797
|
+
padding += withXAxisTickTextOverflow ? $$.axis.getXAxisTickTextY2Overflow(defaultPadding) : 0;
|
|
34934
34798
|
} else if (type === "left" && isRotated && isUndefined(paddingOption)) {
|
|
34935
34799
|
padding = !config.axis_x_show ? 1 : isFitPadding ? axisSize : Math.max(axisSize, 40);
|
|
34936
34800
|
}
|
|
@@ -34946,12 +34810,15 @@ function getGroupedDataPointsFn(d) {
|
|
|
34946
34810
|
}
|
|
34947
34811
|
return padding + axisSize * axesLen - gap;
|
|
34948
34812
|
},
|
|
34949
|
-
getCurrentPadding: function getCurrentPadding() {
|
|
34813
|
+
getCurrentPadding: function getCurrentPadding(withXAxisTickTextOverflow) {
|
|
34950
34814
|
var _this = this;
|
|
34815
|
+
if (withXAxisTickTextOverflow === void 0) {
|
|
34816
|
+
withXAxisTickTextOverflow = !1;
|
|
34817
|
+
}
|
|
34951
34818
|
const $$ = this,
|
|
34952
34819
|
_map = ["top", "bottom", "left", "right"].map(function (v) {
|
|
34953
34820
|
_newArrowCheck(this, _this);
|
|
34954
|
-
return $$.getCurrentPaddingByDirection(v);
|
|
34821
|
+
return $$.getCurrentPaddingByDirection(v, null, withXAxisTickTextOverflow);
|
|
34955
34822
|
}.bind(this)),
|
|
34956
34823
|
top = _map[0],
|
|
34957
34824
|
bottom = _map[1],
|
|
@@ -35011,14 +34878,14 @@ function getGroupedDataPointsFn(d) {
|
|
|
35011
34878
|
$$.updateXAxisTickClip();
|
|
35012
34879
|
}
|
|
35013
34880
|
const legendSize = {
|
|
35014
|
-
right: config.legend_show && state.isLegendRight ? $$.getLegendWidth() + 20 : 0,
|
|
34881
|
+
right: config.legend_show && state.isLegendRight ? $$.getLegendWidth() + (isFitPadding ? 0 : 20) : 0,
|
|
35015
34882
|
bottom: !config.legend_show || state.isLegendRight || state.isLegendInset ? 0 : currLegend.height
|
|
35016
34883
|
},
|
|
35017
34884
|
xAxisHeight = isRotated || isNonAxis ? 0 : $$.getHorizontalAxisHeight("x"),
|
|
35018
34885
|
subchartXAxisHeight = config.subchart_axis_x_show && config.subchart_axis_x_tick_text_show ? xAxisHeight : 30,
|
|
35019
34886
|
subchartHeight = config.subchart_show && !isNonAxis ? config.subchart_size_height + subchartXAxisHeight : 0,
|
|
35020
34887
|
gaugeHeight = $$.hasType("gauge") && config.arc_needle_show && !config.gauge_fullCircle && !config.gauge_label_show ? 10 : 0,
|
|
35021
|
-
padding = $$.getCurrentPadding(); // when needle is shown with legend, it need some bottom space to not overlap with legend text
|
|
34888
|
+
padding = $$.getCurrentPadding(!0); // when needle is shown with legend, it need some bottom space to not overlap with legend text
|
|
35022
34889
|
// for main
|
|
35023
34890
|
state.margin = !isNonAxis && isRotated ? {
|
|
35024
34891
|
top: padding.top,
|
|
@@ -35350,7 +35217,7 @@ function getTextPos(d, type) {
|
|
|
35350
35217
|
* @returns {string|null}
|
|
35351
35218
|
* @private
|
|
35352
35219
|
*/
|
|
35353
|
-
|
|
35220
|
+
updateTextBackgroundColor: function updateTextBackgroundColor(d) {
|
|
35354
35221
|
const $$ = this,
|
|
35355
35222
|
$el = $$.$el,
|
|
35356
35223
|
config = $$.config,
|
|
@@ -35385,7 +35252,7 @@ function getTextPos(d, type) {
|
|
|
35385
35252
|
angle = config.data_labels.rotate,
|
|
35386
35253
|
anchorString = getRotateAnchor(angle),
|
|
35387
35254
|
rotateString = angle ? "rotate(" + angle + ")" : "";
|
|
35388
|
-
$$.$el.text.style("fill", $$.getStylePropValue($$.updateTextColor)).attr("filter", $$.
|
|
35255
|
+
$$.$el.text.style("fill", $$.getStylePropValue($$.updateTextColor)).attr("filter", $$.updateTextBackgroundColor.bind($$)).style("fill-opacity", forFlow ? 0 : $$.opacityForText.bind($$)).each(function (d, i) {
|
|
35389
35256
|
// do not apply transition for newly added text elements
|
|
35390
35257
|
const node = $T(hasTreemap && this.childElementCount ? this.parentNode : this, !!(withTransition && this.getAttribute("x")), t),
|
|
35391
35258
|
isInverted = config["axis_" + (axis == null ? void 0 : axis.getId(d.id)) + "_inverted"];
|
|
@@ -35481,7 +35348,7 @@ function getTextPos(d, type) {
|
|
|
35481
35348
|
if (config.data_labels.centered && (isBarType || isTreemapType)) {
|
|
35482
35349
|
const rect = getBoundingRect(textElement);
|
|
35483
35350
|
if (isBarType) {
|
|
35484
|
-
const isPositive = d
|
|
35351
|
+
const isPositive = $$.getRangedData(d, null, "bar") >= 0;
|
|
35485
35352
|
if (isRotated) {
|
|
35486
35353
|
const w = (isPositive ? points[1][1] - points[0][1] : points[0][1] - points[1][1]) / 2 + rect.width / 2;
|
|
35487
35354
|
return isPositive ? -w - 3 : w + 2;
|
|
@@ -35940,12 +35807,10 @@ function getTextXPos(pos, width) {
|
|
|
35940
35807
|
value = "<b>Open:</b> " + open + " <b>High:</b> " + high + " <b>Low:</b> " + low + " <b>Close:</b> " + close + (volume ? " <b>Volume:</b> " + volume : "");
|
|
35941
35808
|
} else if ($$.isBarRangeType(row)) {
|
|
35942
35809
|
const _row = row,
|
|
35943
|
-
|
|
35944
|
-
start = _row$value[0],
|
|
35945
|
-
end = _row$value[1],
|
|
35810
|
+
rangeValue = _row.value,
|
|
35946
35811
|
id = _row.id,
|
|
35947
35812
|
index = _row.index;
|
|
35948
|
-
value =
|
|
35813
|
+
value = "" + valueFormat(rangeValue, undefined, id, index);
|
|
35949
35814
|
} else {
|
|
35950
35815
|
value = valueFormat.apply(void 0, [getRowValue(row)].concat(param));
|
|
35951
35816
|
}
|
|
@@ -36359,7 +36224,7 @@ function getTextXPos(pos, width) {
|
|
|
36359
36224
|
y = isRotated ? state.height + padding : 0;
|
|
36360
36225
|
} else if (target === "y2") {
|
|
36361
36226
|
x = isRotated ? 0 : state.width + padding;
|
|
36362
|
-
y = isRotated ?
|
|
36227
|
+
y = isRotated ? -padding - 1 : 0;
|
|
36363
36228
|
} else if (target === "subX") {
|
|
36364
36229
|
x = 0;
|
|
36365
36230
|
y = isRotated ? 0 : state.height2;
|
|
@@ -41227,11 +41092,12 @@ let Axis_Axis = /*#__PURE__*/function () {
|
|
|
41227
41092
|
svg = _$$$$el2.svg,
|
|
41228
41093
|
chart = _$$$$el2.chart,
|
|
41229
41094
|
currentTickMax = current.maxTickSize[id],
|
|
41095
|
+
configPrefix = "axis_" + id,
|
|
41230
41096
|
max = {
|
|
41231
41097
|
width: 0,
|
|
41232
41098
|
height: 0
|
|
41233
41099
|
};
|
|
41234
|
-
if (withoutRecompute || !config[
|
|
41100
|
+
if (withoutRecompute || !config[configPrefix + "_show"] || currentTickMax.width > 0 && $$.filterTargetsToShow().length === 0) {
|
|
41235
41101
|
return currentTickMax;
|
|
41236
41102
|
}
|
|
41237
41103
|
if (svg) {
|
|
@@ -41259,8 +41125,9 @@ let Axis_Axis = /*#__PURE__*/function () {
|
|
|
41259
41125
|
currentTickMax.ticks.splice(0);
|
|
41260
41126
|
}
|
|
41261
41127
|
const axis = this.getAxis(id, scale, !1, !1, !0),
|
|
41262
|
-
|
|
41263
|
-
|
|
41128
|
+
tickRotate = config[configPrefix + "_tick_rotate"],
|
|
41129
|
+
tickCount = config[configPrefix + "_tick_count"],
|
|
41130
|
+
tickValues = config[configPrefix + "_tick_values"];
|
|
41264
41131
|
// Make to generate the final tick text to be rendered
|
|
41265
41132
|
// https://github.com/naver/billboard.js/issues/920
|
|
41266
41133
|
// Do not generate if 'tick values' option is given
|
|
@@ -41271,7 +41138,7 @@ let Axis_Axis = /*#__PURE__*/function () {
|
|
|
41271
41138
|
isYAxis || this.updateXAxisTickValues(targetsToShow, axis);
|
|
41272
41139
|
const dummy = chart.append("svg").style("visibility", "hidden").style("position", "fixed").style("top", "0").style("left", "0");
|
|
41273
41140
|
axis.create(dummy);
|
|
41274
|
-
dummy.selectAll("text").each(function (d, i) {
|
|
41141
|
+
dummy.selectAll("text").attr("transform", isNumber(tickRotate) ? "rotate(" + tickRotate + ")" : null).each(function (d, i) {
|
|
41275
41142
|
const _this$getBoundingClie = this.getBoundingClientRect(),
|
|
41276
41143
|
width = _this$getBoundingClie.width,
|
|
41277
41144
|
height = _this$getBoundingClie.height;
|
|
@@ -41299,7 +41166,7 @@ let Axis_Axis = /*#__PURE__*/function () {
|
|
|
41299
41166
|
config = $$.config,
|
|
41300
41167
|
state = $$.state,
|
|
41301
41168
|
xAxisTickRotate = $$.getAxisTickRotate("x");
|
|
41302
|
-
if ((axis.isCategorized() || axis.isTimeSeries()) && config.axis_x_tick_fit && !config.axis_x_tick_culling && !config.axis_x_tick_multiline && xAxisTickRotate > 0 && xAxisTickRotate < 90) {
|
|
41169
|
+
if ((axis.isCategorized() || axis.isTimeSeries()) && config.axis_x_tick_fit && (!config.axis_x_tick_culling || isEmpty(config.axis_x_tick_culling)) && !config.axis_x_tick_multiline && xAxisTickRotate > 0 && xAxisTickRotate < 90) {
|
|
41303
41170
|
const widthWithoutCurrentPaddingLeft = state.current.width - $$.getCurrentPaddingByDirection("left"),
|
|
41304
41171
|
maxOverflow = this.getXAxisTickMaxOverflow(xAxisTickRotate, widthWithoutCurrentPaddingLeft - defaultPadding),
|
|
41305
41172
|
xAxisTickTextY2Overflow = Math.max(0, maxOverflow) + defaultPadding;
|
|
@@ -42462,7 +42329,6 @@ const src_linear_linear = function (t) {
|
|
|
42462
42329
|
* @private
|
|
42463
42330
|
*/
|
|
42464
42331
|
setYAxisClipPath: function setYAxisClipPath(node) {
|
|
42465
|
-
var _config$padding;
|
|
42466
42332
|
const $$ = this,
|
|
42467
42333
|
config = $$.config,
|
|
42468
42334
|
_$$$state3 = $$.state,
|
|
@@ -42475,7 +42341,7 @@ const src_linear_linear = function (t) {
|
|
|
42475
42341
|
x = isInner && !isRotated ? config.axis_y_label.text ? -20 : -1 : isRotated ? -(1 + left) : -(left - 1),
|
|
42476
42342
|
y = -(isRotated ? 20 : margin.top),
|
|
42477
42343
|
w = (isRotated ? width + 15 + left : margin.left + 20) + (isInner ? 20 : 0),
|
|
42478
|
-
h = (isRotated ? margin.bottom +
|
|
42344
|
+
h = (isRotated ? margin.bottom + 10 : margin.top + height) + 10;
|
|
42479
42345
|
node.attr("x", x).attr("y", y).attr("width", w).attr("height", h);
|
|
42480
42346
|
},
|
|
42481
42347
|
updateXAxisTickClip: function updateXAxisTickClip() {
|
|
@@ -43110,7 +42976,6 @@ function smoothLines(el, type) {
|
|
|
43110
42976
|
config = $$.config,
|
|
43111
42977
|
state = $$.state,
|
|
43112
42978
|
_state = state,
|
|
43113
|
-
current = _state.current,
|
|
43114
42979
|
rotatedPadding = _state.rotatedPadding,
|
|
43115
42980
|
isLegendRight = _state.isLegendRight,
|
|
43116
42981
|
isLegendInset = _state.isLegendInset,
|
|
@@ -43131,17 +42996,8 @@ function smoothLines(el, type) {
|
|
|
43131
42996
|
if (id === "y2" && !config.axis_y2_show) {
|
|
43132
42997
|
return isFitPadding ? 0 : rotatedPadding.top;
|
|
43133
42998
|
}
|
|
43134
|
-
const maxtickSize = $$.axis.getMaxTickSize(id)
|
|
43135
|
-
|
|
43136
|
-
// Calculate x/y axis height when tick rotated
|
|
43137
|
-
if ((id === "x" && !isRotated || /y2?/.test(id) && isRotated) && rotate) {
|
|
43138
|
-
h += maxtickSize.width * Math.cos(Math.PI * (90 - Math.abs(rotate)) / 180);
|
|
43139
|
-
if (!config.axis_x_tick_multiline && current.height) {
|
|
43140
|
-
if (h > current.height / 2) {
|
|
43141
|
-
h = current.height / 2;
|
|
43142
|
-
}
|
|
43143
|
-
}
|
|
43144
|
-
} else if (maxtickSize.height > 13 && config.legend_show) {
|
|
42999
|
+
const maxtickSize = $$.axis.getMaxTickSize(id);
|
|
43000
|
+
if (maxtickSize.height > 13) {
|
|
43145
43001
|
h += maxtickSize.height - 13;
|
|
43146
43002
|
}
|
|
43147
43003
|
return h + ($$.axis.getLabelPositionById(id).isInner ? 0 : 10) + (id === "y2" && !isRotated ? -10 : 0);
|
|
@@ -43184,7 +43040,7 @@ function smoothLines(el, type) {
|
|
|
43184
43040
|
}
|
|
43185
43041
|
state.axis.x.tickCount = tickCount;
|
|
43186
43042
|
}
|
|
43187
|
-
if ($el.svg && config.
|
|
43043
|
+
if ($el.svg && config.axis_x_tick_autorotate && config.axis_x_tick_fit && !config.axis_x_tick_multiline && !config.axis_x_tick_culling && allowedXAxisTypes) {
|
|
43188
43044
|
rotate = $$.needToRotateXAxisTickTexts() ? config.axis_x_tick_rotate : 0;
|
|
43189
43045
|
}
|
|
43190
43046
|
}
|
|
@@ -46031,7 +45887,7 @@ function getAttrTweenFn(fn) {
|
|
|
46031
45887
|
const $$ = this,
|
|
46032
45888
|
hasGauge = $$.hasType("gauge");
|
|
46033
45889
|
if ($$.shouldShowArcLabel()) {
|
|
46034
|
-
selection.style("fill", $$.updateTextColor.bind($$)).attr("filter", $$.
|
|
45890
|
+
selection.style("fill", $$.updateTextColor.bind($$)).attr("filter", $$.updateTextBackgroundColor.bind($$)).each(function (d) {
|
|
46035
45891
|
var _filter;
|
|
46036
45892
|
const node = src_select(this),
|
|
46037
45893
|
updated = $$.updateAngle(d),
|
|
@@ -53627,7 +53483,7 @@ let _defaults = {};
|
|
|
53627
53483
|
|
|
53628
53484
|
/**
|
|
53629
53485
|
* @namespace bb
|
|
53630
|
-
* @version 3.10.
|
|
53486
|
+
* @version 3.10.3
|
|
53631
53487
|
*/
|
|
53632
53488
|
const bb = {
|
|
53633
53489
|
/**
|
|
@@ -53637,7 +53493,7 @@ const bb = {
|
|
|
53637
53493
|
* bb.version; // "1.0.0"
|
|
53638
53494
|
* @memberof bb
|
|
53639
53495
|
*/
|
|
53640
|
-
version: "3.10.
|
|
53496
|
+
version: "3.10.3",
|
|
53641
53497
|
/**
|
|
53642
53498
|
* Generate chart
|
|
53643
53499
|
* - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when:
|
|
@@ -53789,12 +53645,12 @@ Object.keys(resolver_interaction_namespaceObject).forEach(function (v) {
|
|
|
53789
53645
|
|
|
53790
53646
|
|
|
53791
53647
|
/***/ }),
|
|
53792
|
-
/*
|
|
53648
|
+
/* 531 */
|
|
53793
53649
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
53794
53650
|
|
|
53795
53651
|
// TODO(Babel 8): Remove this file.
|
|
53796
53652
|
|
|
53797
|
-
var runtime = __webpack_require__(
|
|
53653
|
+
var runtime = __webpack_require__(532)();
|
|
53798
53654
|
module.exports = runtime;
|
|
53799
53655
|
|
|
53800
53656
|
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
@@ -53810,10 +53666,10 @@ try {
|
|
|
53810
53666
|
|
|
53811
53667
|
|
|
53812
53668
|
/***/ }),
|
|
53813
|
-
/*
|
|
53669
|
+
/* 532 */
|
|
53814
53670
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
53815
53671
|
|
|
53816
|
-
var _typeof = (__webpack_require__(
|
|
53672
|
+
var _typeof = (__webpack_require__(533)["default"]);
|
|
53817
53673
|
function _regeneratorRuntime() {
|
|
53818
53674
|
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
53819
53675
|
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
@@ -54119,7 +53975,7 @@ function _regeneratorRuntime() {
|
|
|
54119
53975
|
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
54120
53976
|
|
|
54121
53977
|
/***/ }),
|
|
54122
|
-
/*
|
|
53978
|
+
/* 533 */
|
|
54123
53979
|
/***/ (function(module) {
|
|
54124
53980
|
|
|
54125
53981
|
function _typeof(o) {
|
|
@@ -54195,7 +54051,7 @@ module.exports = _typeof, module.exports.__esModule = true, module.exports["defa
|
|
|
54195
54051
|
/******/ // Load entry module and return exports
|
|
54196
54052
|
/******/ // This entry module used 'module' so it can't be inlined
|
|
54197
54053
|
/******/ __webpack_require__(0);
|
|
54198
|
-
/******/ var __webpack_exports__ = __webpack_require__(
|
|
54054
|
+
/******/ var __webpack_exports__ = __webpack_require__(530);
|
|
54199
54055
|
/******/
|
|
54200
54056
|
/******/ return __webpack_exports__;
|
|
54201
54057
|
/******/ })()
|