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.
Files changed (45) hide show
  1. package/dist/billboard.css +1 -1
  2. package/dist/billboard.js +10 -7
  3. package/dist/billboard.min.css +1 -1
  4. package/dist/billboard.min.js +9 -9
  5. package/dist/billboard.pkgd.js +10 -7
  6. package/dist/billboard.pkgd.min.js +11 -11
  7. package/dist/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  8. package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
  9. package/dist/plugin/billboardjs-plugin-sparkline.js +9 -3
  10. package/dist/plugin/billboardjs-plugin-sparkline.min.js +3 -3
  11. package/dist/plugin/billboardjs-plugin-stanford.js +9 -3
  12. package/dist/plugin/billboardjs-plugin-stanford.min.js +4 -4
  13. package/dist/plugin/billboardjs-plugin-tableview.js +9 -3
  14. package/dist/plugin/billboardjs-plugin-tableview.min.js +4 -4
  15. package/dist/plugin/billboardjs-plugin-textoverlap.js +9 -3
  16. package/dist/plugin/billboardjs-plugin-textoverlap.min.js +3 -3
  17. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.js +2 -2
  18. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +2 -2
  19. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +9 -3
  20. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +3 -3
  21. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +9 -3
  22. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +4 -4
  23. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +9 -3
  24. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +4 -4
  25. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +9 -3
  26. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +3 -3
  27. package/dist/theme/dark.css +1 -1
  28. package/dist/theme/dark.min.css +1 -1
  29. package/dist/theme/datalab.css +1 -1
  30. package/dist/theme/datalab.min.css +1 -1
  31. package/dist/theme/graph.css +1 -1
  32. package/dist/theme/graph.min.css +1 -1
  33. package/dist/theme/insight.css +1 -1
  34. package/dist/theme/insight.min.css +1 -1
  35. package/dist/theme/modern.css +1 -1
  36. package/dist/theme/modern.min.css +1 -1
  37. package/dist-esm/billboard.js +11 -5
  38. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  39. package/dist-esm/plugin/billboardjs-plugin-sparkline.js +2 -2
  40. package/dist-esm/plugin/billboardjs-plugin-stanford.js +9 -3
  41. package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
  42. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
  43. package/package.json +1 -1
  44. package/src/ChartInternal/data/convert.ts +10 -2
  45. package/src/module/util.ts +8 -1
@@ -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.1
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 isEmpty = (o) => isUndefined(o) || o === null || isString(o) && o.length === 0 || isObjectType(o) && !(o instanceof Date) && Object.keys(o).length === 0 || isNumber(o) && isNaN(o);
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.1",
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: