billboard.js 3.17.1 → 3.17.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 +10 -7
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +9 -9
- package/dist/billboard.pkgd.js +10 -7
- package/dist/billboard.pkgd.min.js +11 -11
- 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 +9 -3
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +3 -3
- package/dist/plugin/billboardjs-plugin-stanford.js +9 -3
- package/dist/plugin/billboardjs-plugin-stanford.min.js +4 -4
- package/dist/plugin/billboardjs-plugin-tableview.js +9 -3
- package/dist/plugin/billboardjs-plugin-tableview.min.js +4 -4
- package/dist/plugin/billboardjs-plugin-textoverlap.js +9 -3
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +3 -3
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +9 -3
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +3 -3
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +9 -3
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +4 -4
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +9 -3
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +4 -4
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +9 -3
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +3 -3
- 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 +11 -5
- 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 +9 -3
- package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
- package/package.json +1 -1
- package/src/ChartInternal/data/convert.ts +10 -2
- package/src/module/util.ts +8 -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.17.
|
|
8
|
+
* @version 3.17.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.11
|
|
@@ -28221,7 +28221,13 @@ const ceil10 = (v) => Math.ceil(v / 10) * 10;
|
|
|
28221
28221
|
const asHalfPixel = (n) => Math.ceil(n) + 0.5;
|
|
28222
28222
|
const diffDomain = (d) => d[1] - d[0];
|
|
28223
28223
|
const isObjectType = (v) => typeof v === "object";
|
|
28224
|
-
const
|
|
28224
|
+
const isEmptyObject = (obj) => {
|
|
28225
|
+
for (const x in obj) {
|
|
28226
|
+
return false;
|
|
28227
|
+
}
|
|
28228
|
+
return true;
|
|
28229
|
+
};
|
|
28230
|
+
const isEmpty = (o) => isUndefined(o) || o === null || isString(o) && o.length === 0 || isObjectType(o) && !(o instanceof Date) && isEmptyObject(o) || isNumber(o) && isNaN(o);
|
|
28225
28231
|
const notEmpty = (o) => !isEmpty(o);
|
|
28226
28232
|
const isArray = (arr) => Array.isArray(arr);
|
|
28227
28233
|
const isObject = (obj) => obj && !(obj == null ? void 0 : obj.nodeType) && isObjectType(obj) && !isArray(obj);
|
|
@@ -29591,10 +29597,7 @@ function setXS(ids, data, params) {
|
|
|
29591
29597
|
*/
|
|
29592
29598
|
convertData(args, callback) {
|
|
29593
29599
|
const { config } = this;
|
|
29594
|
-
const useWorker = (d) =>
|
|
29595
|
-
var _a;
|
|
29596
|
-
return (d == null ? void 0 : d.length) && ((_a = d[0]) == null ? void 0 : _a.length) ? config.boost_useWorker : false;
|
|
29597
|
-
};
|
|
29600
|
+
const useWorker = (d) => (d == null ? void 0 : d.length) && !isEmpty(d[0]) ? config.boost_useWorker : false;
|
|
29598
29601
|
let data = args;
|
|
29599
29602
|
if (args.bindto) {
|
|
29600
29603
|
data = {};
|
|
@@ -52252,7 +52255,7 @@ const bb = {
|
|
|
52252
52255
|
* bb.version; // "1.0.0"
|
|
52253
52256
|
* @memberof bb
|
|
52254
52257
|
*/
|
|
52255
|
-
version: "3.17.
|
|
52258
|
+
version: "3.17.2",
|
|
52256
52259
|
/**
|
|
52257
52260
|
* Generate chart
|
|
52258
52261
|
* - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when:
|