billboard.js 3.8.0 → 3.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/billboard.css +1 -1
- package/dist/billboard.js +34 -29
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +2 -2
- package/dist/billboard.pkgd.js +72 -50
- package/dist/billboard.pkgd.min.js +2 -2
- 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 +2 -2
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-stanford.js +2 -2
- package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-tableview.js +2 -2
- package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.js +40 -23
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +40 -23
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +40 -23
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +40 -23
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +40 -23
- 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-esm/billboard.js +22 -7
- package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-sparkline.js +7 -2
- package/dist-esm/plugin/billboardjs-plugin-stanford.js +8 -2
- package/dist-esm/plugin/billboardjs-plugin-tableview.js +11 -2
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +7 -2
- package/package.json +27 -27
- package/src/Chart/api/tooltip.ts +1 -1
- package/src/ChartInternal/interactions/eventrect.ts +8 -3
package/dist/billboard.pkgd.js
CHANGED
|
@@ -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.
|
|
8
|
+
* @version 3.8.2
|
|
9
9
|
*
|
|
10
10
|
* All-in-one packaged file for ease use of 'billboard.js' with dependant d3.js modules & polyfills.
|
|
11
11
|
* - @types/d3-selection ^3.0.5
|
|
@@ -649,7 +649,7 @@ module.exports =
|
|
|
649
649
|
check(typeof self == 'object' && self) ||
|
|
650
650
|
check(typeof global == 'object' && global) ||
|
|
651
651
|
// eslint-disable-next-line no-new-func -- fallback
|
|
652
|
-
(function () { return this; })() || Function('return this')();
|
|
652
|
+
(function () { return this; })() || this || Function('return this')();
|
|
653
653
|
|
|
654
654
|
|
|
655
655
|
/***/ }),
|
|
@@ -1018,13 +1018,18 @@ module.exports = NATIVE_SYMBOL
|
|
|
1018
1018
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
1019
1019
|
var V8_VERSION = __webpack_require__(28);
|
|
1020
1020
|
var fails = __webpack_require__(7);
|
|
1021
|
+
var global = __webpack_require__(4);
|
|
1022
|
+
|
|
1023
|
+
var $String = global.String;
|
|
1021
1024
|
|
|
1022
1025
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
1023
1026
|
module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
1024
1027
|
var symbol = Symbol();
|
|
1025
1028
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
1026
1029
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
1027
|
-
|
|
1030
|
+
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
|
1031
|
+
// of course, fail.
|
|
1032
|
+
return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
1028
1033
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
1029
1034
|
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
|
1030
1035
|
});
|
|
@@ -1171,10 +1176,10 @@ var store = __webpack_require__(37);
|
|
|
1171
1176
|
(module.exports = function (key, value) {
|
|
1172
1177
|
return store[key] || (store[key] = value !== undefined ? value : {});
|
|
1173
1178
|
})('versions', []).push({
|
|
1174
|
-
version: '3.30.
|
|
1179
|
+
version: '3.30.2',
|
|
1175
1180
|
mode: IS_PURE ? 'pure' : 'global',
|
|
1176
1181
|
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
|
|
1177
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.30.
|
|
1182
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE',
|
|
1178
1183
|
source: 'https://github.com/zloirock/core-js'
|
|
1179
1184
|
});
|
|
1180
1185
|
|
|
@@ -15671,6 +15676,11 @@ var throwUnpolyfillable = function (type, action) {
|
|
|
15671
15676
|
throw new DOMException((action || 'Cloning') + ' of ' + type + ' cannot be properly polyfilled in this engine', DATA_CLONE_ERROR);
|
|
15672
15677
|
};
|
|
15673
15678
|
|
|
15679
|
+
var tryNativeRestrictedStructuredClone = function (value, type) {
|
|
15680
|
+
if (!nativeRestrictedStructuredClone) throwUnpolyfillable(type);
|
|
15681
|
+
return nativeRestrictedStructuredClone(value);
|
|
15682
|
+
};
|
|
15683
|
+
|
|
15674
15684
|
var createDataTransfer = function () {
|
|
15675
15685
|
var dataTransfer;
|
|
15676
15686
|
try {
|
|
@@ -15791,11 +15801,20 @@ var structuredCloneInternal = function (value, map) {
|
|
|
15791
15801
|
structuredCloneInternal(value.p4, map)
|
|
15792
15802
|
);
|
|
15793
15803
|
} catch (error) {
|
|
15794
|
-
|
|
15795
|
-
cloned = nativeRestrictedStructuredClone(value);
|
|
15796
|
-
} else throwUnpolyfillable(type);
|
|
15804
|
+
cloned = tryNativeRestrictedStructuredClone(value, type);
|
|
15797
15805
|
}
|
|
15798
15806
|
break;
|
|
15807
|
+
case 'File':
|
|
15808
|
+
if (nativeRestrictedStructuredClone) try {
|
|
15809
|
+
cloned = nativeRestrictedStructuredClone(value);
|
|
15810
|
+
// NodeJS 20.0.0 bug, https://github.com/nodejs/node/issues/47612
|
|
15811
|
+
if (classof(cloned) !== type) cloned = undefined;
|
|
15812
|
+
} catch (error) { /* empty */ }
|
|
15813
|
+
if (!cloned) try {
|
|
15814
|
+
cloned = new File([value], value.name, value);
|
|
15815
|
+
} catch (error) { /* empty */ }
|
|
15816
|
+
if (!cloned) throwUnpolyfillable(type);
|
|
15817
|
+
break;
|
|
15799
15818
|
case 'FileList':
|
|
15800
15819
|
dataTransfer = createDataTransfer();
|
|
15801
15820
|
if (dataTransfer) {
|
|
@@ -15803,9 +15822,7 @@ var structuredCloneInternal = function (value, map) {
|
|
|
15803
15822
|
dataTransfer.items.add(structuredCloneInternal(value[i], map));
|
|
15804
15823
|
}
|
|
15805
15824
|
cloned = dataTransfer.files;
|
|
15806
|
-
} else
|
|
15807
|
-
cloned = nativeRestrictedStructuredClone(value);
|
|
15808
|
-
} else throwUnpolyfillable(type);
|
|
15825
|
+
} else cloned = tryNativeRestrictedStructuredClone(value, type);
|
|
15809
15826
|
break;
|
|
15810
15827
|
case 'ImageData':
|
|
15811
15828
|
// Safari 9 ImageData is a constructor, but typeof ImageData is 'object'
|
|
@@ -15817,9 +15834,7 @@ var structuredCloneInternal = function (value, map) {
|
|
|
15817
15834
|
{ colorSpace: value.colorSpace }
|
|
15818
15835
|
);
|
|
15819
15836
|
} catch (error) {
|
|
15820
|
-
|
|
15821
|
-
cloned = nativeRestrictedStructuredClone(value);
|
|
15822
|
-
} else throwUnpolyfillable(type);
|
|
15837
|
+
cloned = tryNativeRestrictedStructuredClone(value, type);
|
|
15823
15838
|
} break;
|
|
15824
15839
|
default:
|
|
15825
15840
|
if (nativeRestrictedStructuredClone) {
|
|
@@ -15911,12 +15926,6 @@ var structuredCloneInternal = function (value, map) {
|
|
|
15911
15926
|
} catch (error) {
|
|
15912
15927
|
throwUncloneable(type);
|
|
15913
15928
|
} break;
|
|
15914
|
-
case 'File':
|
|
15915
|
-
try {
|
|
15916
|
-
cloned = new File([value], value.name, value);
|
|
15917
|
-
} catch (error) {
|
|
15918
|
-
throwUnpolyfillable(type);
|
|
15919
|
-
} break;
|
|
15920
15929
|
case 'CropTarget':
|
|
15921
15930
|
case 'CryptoKey':
|
|
15922
15931
|
case 'FileSystemDirectoryHandle':
|
|
@@ -17860,14 +17869,22 @@ module.exports = {
|
|
|
17860
17869
|
|
|
17861
17870
|
var $ = __webpack_require__(3);
|
|
17862
17871
|
var getBuiltIn = __webpack_require__(24);
|
|
17872
|
+
var fails = __webpack_require__(7);
|
|
17863
17873
|
var validateArgumentsLength = __webpack_require__(328);
|
|
17864
17874
|
var toString = __webpack_require__(69);
|
|
17875
|
+
var USE_NATIVE_URL = __webpack_require__(514);
|
|
17865
17876
|
|
|
17866
17877
|
var URL = getBuiltIn('URL');
|
|
17867
17878
|
|
|
17879
|
+
// https://github.com/nodejs/node/issues/47505
|
|
17880
|
+
// https://github.com/denoland/deno/issues/18893
|
|
17881
|
+
var THROWS_WITHOUT_ARGUMENTS = USE_NATIVE_URL && fails(function () {
|
|
17882
|
+
URL.canParse();
|
|
17883
|
+
});
|
|
17884
|
+
|
|
17868
17885
|
// `URL.canParse` method
|
|
17869
17886
|
// https://url.spec.whatwg.org/#dom-url-canparse
|
|
17870
|
-
$({ target: 'URL', stat: true }, {
|
|
17887
|
+
$({ target: 'URL', stat: true, forced: !THROWS_WITHOUT_ARGUMENTS }, {
|
|
17871
17888
|
canParse: function canParse(url) {
|
|
17872
17889
|
var length = validateArgumentsLength(arguments.length, 1);
|
|
17873
17890
|
var urlString = toString(url);
|
|
@@ -17945,7 +17962,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17945
17962
|
|
|
17946
17963
|
// EXPORTS
|
|
17947
17964
|
__webpack_require__.d(__webpack_exports__, {
|
|
17948
|
-
|
|
17965
|
+
bb: function() { return /* reexport */ bb; },
|
|
17949
17966
|
"default": function() { return /* reexport */ bb; }
|
|
17950
17967
|
});
|
|
17951
17968
|
|
|
@@ -17953,33 +17970,33 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
17953
17970
|
var resolver_shape_namespaceObject = {};
|
|
17954
17971
|
__webpack_require__.r(resolver_shape_namespaceObject);
|
|
17955
17972
|
__webpack_require__.d(resolver_shape_namespaceObject, {
|
|
17956
|
-
|
|
17957
|
-
|
|
17958
|
-
|
|
17959
|
-
|
|
17960
|
-
|
|
17961
|
-
|
|
17962
|
-
|
|
17963
|
-
|
|
17964
|
-
|
|
17965
|
-
|
|
17966
|
-
|
|
17967
|
-
|
|
17968
|
-
|
|
17969
|
-
|
|
17970
|
-
|
|
17971
|
-
|
|
17972
|
-
|
|
17973
|
-
|
|
17973
|
+
area: function() { return _area; },
|
|
17974
|
+
areaLineRange: function() { return areaLineRange; },
|
|
17975
|
+
areaSpline: function() { return areaSpline; },
|
|
17976
|
+
areaSplineRange: function() { return areaSplineRange; },
|
|
17977
|
+
areaStep: function() { return areaStep; },
|
|
17978
|
+
bar: function() { return resolver_shape_bar; },
|
|
17979
|
+
bubble: function() { return resolver_shape_bubble; },
|
|
17980
|
+
candlestick: function() { return resolver_shape_candlestick; },
|
|
17981
|
+
donut: function() { return shape_donut; },
|
|
17982
|
+
gauge: function() { return resolver_shape_gauge; },
|
|
17983
|
+
line: function() { return resolver_shape_line; },
|
|
17984
|
+
pie: function() { return resolver_shape_pie; },
|
|
17985
|
+
polar: function() { return resolver_shape_polar; },
|
|
17986
|
+
radar: function() { return resolver_shape_radar; },
|
|
17987
|
+
scatter: function() { return shape_scatter; },
|
|
17988
|
+
spline: function() { return shape_spline; },
|
|
17989
|
+
step: function() { return shape_step; },
|
|
17990
|
+
treemap: function() { return resolver_shape_treemap; }
|
|
17974
17991
|
});
|
|
17975
17992
|
|
|
17976
17993
|
// NAMESPACE OBJECT: ./src/config/resolver/interaction.ts
|
|
17977
17994
|
var resolver_interaction_namespaceObject = {};
|
|
17978
17995
|
__webpack_require__.r(resolver_interaction_namespaceObject);
|
|
17979
17996
|
__webpack_require__.d(resolver_interaction_namespaceObject, {
|
|
17980
|
-
|
|
17981
|
-
|
|
17982
|
-
|
|
17997
|
+
selection: function() { return _selectionModule; },
|
|
17998
|
+
subchart: function() { return subchartModule; },
|
|
17999
|
+
zoom: function() { return zoomModule; }
|
|
17983
18000
|
});
|
|
17984
18001
|
|
|
17985
18002
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/newArrowCheck.js
|
|
@@ -37292,7 +37309,7 @@ var tooltip_tooltip = {
|
|
|
37292
37309
|
eventReceiver.rect = $el.main.select("" + $$.selectorTarget(data.id, undefined, "rect"));
|
|
37293
37310
|
} else if ($$.isMultipleX()) {
|
|
37294
37311
|
// if multiple xs, target point will be determined by mouse
|
|
37295
|
-
mouse = [$$.
|
|
37312
|
+
mouse = [$$.xx(data), y];
|
|
37296
37313
|
} else {
|
|
37297
37314
|
if (!config.tooltip_grouped) {
|
|
37298
37315
|
mouse = [0, y];
|
|
@@ -40029,7 +40046,9 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
40029
40046
|
isInverted = config.axis_x_inverted;
|
|
40030
40047
|
if ($el.eventRect) {
|
|
40031
40048
|
$$.updateEventRect($el.eventRect, !0);
|
|
40032
|
-
|
|
40049
|
+
|
|
40050
|
+
// do not initialize eventRect when data is empty
|
|
40051
|
+
} else if ($$.data.targets.length) {
|
|
40033
40052
|
var eventRects = $$.$el.main.select("." + $EVENT.eventRects).style("cursor", config.zoom_enabled && config.zoom_type !== "drag" ? config.axis_rotated ? "ns-resize" : "ew-resize" : null).classed($EVENT.eventRectsMultiple, isMultipleX).classed($EVENT.eventRectsSingle, !isMultipleX),
|
|
40034
40053
|
eventRectUpdate = eventRects.selectAll("." + $EVENT.eventRect).data([0]).enter().append("rect"); // append event <rect>
|
|
40035
40054
|
$$.updateEventRect(eventRectUpdate);
|
|
@@ -40043,6 +40062,9 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
40043
40062
|
if ($$.state.inputType === "touch" && !$el.svg.on("touchstart.eventRect") && !$$.hasArcType()) {
|
|
40044
40063
|
$$.bindTouchOnEventRect(isMultipleX);
|
|
40045
40064
|
}
|
|
40065
|
+
|
|
40066
|
+
// when initilazed with empty data and data loaded later, need to update eventRect
|
|
40067
|
+
state.rendered && $$.updateEventRect($el.eventRect, !0);
|
|
40046
40068
|
}
|
|
40047
40069
|
if (!isMultipleX) {
|
|
40048
40070
|
// Set data and update eventReceiver.data
|
|
@@ -40175,8 +40197,8 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
40175
40197
|
rectElement.attr("x", 0).attr("y", 0).attr("width", width).attr("height", height);
|
|
40176
40198
|
|
|
40177
40199
|
// only for init
|
|
40178
|
-
if (!rendered) {
|
|
40179
|
-
rectElement.
|
|
40200
|
+
if (!rendered || force) {
|
|
40201
|
+
rectElement.classed($EVENT.eventRect, !0);
|
|
40180
40202
|
}
|
|
40181
40203
|
}
|
|
40182
40204
|
updateClientRect();
|
|
@@ -51549,7 +51571,7 @@ var _defaults = {};
|
|
|
51549
51571
|
|
|
51550
51572
|
/**
|
|
51551
51573
|
* @namespace bb
|
|
51552
|
-
* @version 3.8.
|
|
51574
|
+
* @version 3.8.2
|
|
51553
51575
|
*/
|
|
51554
51576
|
var bb = {
|
|
51555
51577
|
/**
|
|
@@ -51559,7 +51581,7 @@ var bb = {
|
|
|
51559
51581
|
* bb.version; // "1.0.0"
|
|
51560
51582
|
* @memberof bb
|
|
51561
51583
|
*/
|
|
51562
|
-
version: "3.8.
|
|
51584
|
+
version: "3.8.2",
|
|
51563
51585
|
/**
|
|
51564
51586
|
* Generate chart
|
|
51565
51587
|
* - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when:
|
|
@@ -52076,7 +52098,7 @@ module.exports = _typeof, module.exports.__esModule = true, module.exports["defa
|
|
|
52076
52098
|
/******/ };
|
|
52077
52099
|
/******/
|
|
52078
52100
|
/******/ // Execute the module function
|
|
52079
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
52101
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
52080
52102
|
/******/
|
|
52081
52103
|
/******/ // Return the exports of the module
|
|
52082
52104
|
/******/ return module.exports;
|