billboard.js 3.4.0 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -3
- package/dist/billboard.css +1 -1
- package/dist/billboard.js +8 -8
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +2 -2
- package/dist/billboard.pkgd.js +32 -17
- 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 +5 -4
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-stanford.js +5 -4
- package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-tableview.js +5 -4
- package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.js +5 -4
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +5 -4
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +27 -11
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +5 -4
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +5 -4
- 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 +7 -6
- 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 +14 -14
- package/src/ChartInternal/shape/point.ts +3 -1
- package/src/module/util.ts +2 -1
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.4.
|
|
8
|
+
* @version 3.4.1
|
|
9
9
|
*
|
|
10
10
|
* All-in-one packaged file for ease use of 'billboard.js' with dependant d3.js modules & polyfills.
|
|
11
11
|
* - d3-axis ^3.0.0
|
|
@@ -21989,8 +21989,9 @@ function convertInputType(mouse, touch) {
|
|
|
21989
21989
|
|
|
21990
21990
|
var hasMouse = mouse && ["any-hover:hover", "any-pointer:fine"].some(function (v) {
|
|
21991
21991
|
return matchMedia == null ? void 0 : matchMedia("(" + v + ")").matches;
|
|
21992
|
-
});
|
|
21993
|
-
|
|
21992
|
+
}); // fallback to 'mouse' if no input type is detected.
|
|
21993
|
+
|
|
21994
|
+
return hasMouse && "mouse" || hasTouch && "touch" || "mouse";
|
|
21994
21995
|
}
|
|
21995
21996
|
;// CONCATENATED MODULE: ./src/module/error.ts
|
|
21996
21997
|
|
|
@@ -28825,23 +28826,34 @@ function tickStep(start, stop, count) {
|
|
|
28825
28826
|
function ascending_ascending(a, b) {
|
|
28826
28827
|
return a == null || b == null ? NaN : a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
|
|
28827
28828
|
}
|
|
28829
|
+
;// CONCATENATED MODULE: ./node_modules/d3-array/src/descending.js
|
|
28830
|
+
function descending(a, b) {
|
|
28831
|
+
return a == null || b == null ? NaN : b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;
|
|
28832
|
+
}
|
|
28828
28833
|
;// CONCATENATED MODULE: ./node_modules/d3-array/src/bisector.js
|
|
28829
28834
|
|
|
28835
|
+
|
|
28830
28836
|
function bisector(f) {
|
|
28831
|
-
var delta
|
|
28832
|
-
|
|
28833
|
-
|
|
28837
|
+
var compare1, compare2, delta; // If an accessor is specified, promote it to a comparator. In this case we
|
|
28838
|
+
// can test whether the search value is (self-) comparable. We can’t do this
|
|
28839
|
+
// for a comparator (except for specific, known comparators) because we can’t
|
|
28840
|
+
// tell if the comparator is symmetric, and an asymmetric comparator can’t be
|
|
28841
|
+
// used to test whether a single value is comparable.
|
|
28834
28842
|
|
|
28835
28843
|
if (f.length !== 2) {
|
|
28836
|
-
delta = function (d, x) {
|
|
28837
|
-
return f(d) - x;
|
|
28838
|
-
};
|
|
28839
|
-
|
|
28840
28844
|
compare1 = ascending_ascending;
|
|
28841
28845
|
|
|
28842
28846
|
compare2 = function (d, x) {
|
|
28843
28847
|
return ascending_ascending(f(d), x);
|
|
28844
28848
|
};
|
|
28849
|
+
|
|
28850
|
+
delta = function (d, x) {
|
|
28851
|
+
return f(d) - x;
|
|
28852
|
+
};
|
|
28853
|
+
} else {
|
|
28854
|
+
compare1 = f === ascending_ascending || f === descending ? f : bisector_zero;
|
|
28855
|
+
compare2 = f;
|
|
28856
|
+
delta = f;
|
|
28845
28857
|
}
|
|
28846
28858
|
|
|
28847
28859
|
function left(a, x, lo, hi) {
|
|
@@ -28905,6 +28917,10 @@ function bisector(f) {
|
|
|
28905
28917
|
right: right
|
|
28906
28918
|
};
|
|
28907
28919
|
}
|
|
28920
|
+
|
|
28921
|
+
function bisector_zero() {
|
|
28922
|
+
return 0;
|
|
28923
|
+
}
|
|
28908
28924
|
;// CONCATENATED MODULE: ./node_modules/d3-array/src/number.js
|
|
28909
28925
|
|
|
28910
28926
|
|
|
@@ -41849,7 +41865,7 @@ var slice = Array.prototype.slice;
|
|
|
41849
41865
|
};
|
|
41850
41866
|
}
|
|
41851
41867
|
;// CONCATENATED MODULE: ./node_modules/d3-shape/src/descending.js
|
|
41852
|
-
/* harmony default export */ function
|
|
41868
|
+
/* harmony default export */ function src_descending(a, b) {
|
|
41853
41869
|
return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;
|
|
41854
41870
|
}
|
|
41855
41871
|
;// CONCATENATED MODULE: ./node_modules/d3-shape/src/identity.js
|
|
@@ -41864,7 +41880,7 @@ var slice = Array.prototype.slice;
|
|
|
41864
41880
|
|
|
41865
41881
|
/* harmony default export */ function pie() {
|
|
41866
41882
|
var value = d3_shape_src_identity,
|
|
41867
|
-
sortValues =
|
|
41883
|
+
sortValues = src_descending,
|
|
41868
41884
|
sort = null,
|
|
41869
41885
|
startAngle = d3_shape_src_constant(0),
|
|
41870
41886
|
endAngle = d3_shape_src_constant(tau),
|
|
@@ -44391,10 +44407,9 @@ var getTransitionName = function () {
|
|
|
44391
44407
|
enterNode.append("g").attr("class", classCircles).style("cursor", function (d) {
|
|
44392
44408
|
return isFunction(isSelectable) && isSelectable(d) ? "pointer" : null;
|
|
44393
44409
|
}).style("opacity", function () {
|
|
44394
|
-
var
|
|
44410
|
+
var parent = src_select(this.parentNode); // if the parent node is .bb-chart-circles (bubble, scatter), initialize <g bb-circles> with opacity "0"
|
|
44395
44411
|
|
|
44396
|
-
|
|
44397
|
-
return (_this$parentNode = this.parentNode) != null && _this$parentNode.classList.contains("bb-chart-circles") ? "0" : null;
|
|
44412
|
+
return parent.attr("class").indexOf($CIRCLE.chartCircles) > -1 ? "0" : null;
|
|
44398
44413
|
}); // Update date for selected circles
|
|
44399
44414
|
|
|
44400
44415
|
selectionEnabled && targets.forEach(function (t) {
|
|
@@ -48895,7 +48910,7 @@ var _defaults = {},
|
|
|
48895
48910
|
* bb.version; // "1.0.0"
|
|
48896
48911
|
* @memberof bb
|
|
48897
48912
|
*/
|
|
48898
|
-
version: "3.4.
|
|
48913
|
+
version: "3.4.1",
|
|
48899
48914
|
|
|
48900
48915
|
/**
|
|
48901
48916
|
* Generate chart
|
|
@@ -49030,7 +49045,7 @@ var _defaults = {},
|
|
|
49030
49045
|
};
|
|
49031
49046
|
/**
|
|
49032
49047
|
* @namespace bb
|
|
49033
|
-
* @version 3.4.
|
|
49048
|
+
* @version 3.4.1
|
|
49034
49049
|
*/
|
|
49035
49050
|
;// CONCATENATED MODULE: ./src/index.ts
|
|
49036
49051
|
/**
|