billboard.js 3.17.0 → 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 (46) hide show
  1. package/dist/billboard.css +1 -1
  2. package/dist/billboard.js +14 -8
  3. package/dist/billboard.min.css +1 -1
  4. package/dist/billboard.min.js +9 -9
  5. package/dist/billboard.pkgd.js +19 -12
  6. package/dist/billboard.pkgd.min.js +15 -15
  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 +7 -6
  18. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +4 -4
  19. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +14 -7
  20. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +4 -4
  21. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +14 -7
  22. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +10 -10
  23. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +14 -7
  24. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +8 -8
  25. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +14 -7
  26. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +7 -7
  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 +15 -9
  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 +13 -5
  45. package/src/ChartInternal/data/load.ts +1 -1
  46. 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.0
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
@@ -1270,10 +1270,10 @@ var SHARED = '__core-js_shared__';
1270
1270
  var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
1271
1271
 
1272
1272
  (store.versions || (store.versions = [])).push({
1273
- version: '3.45.1',
1273
+ version: '3.46.0',
1274
1274
  mode: IS_PURE ? 'pure' : 'global',
1275
- copyright: '© 2014-2025 Denis Pushkarev (zloirock.ru)',
1276
- license: 'https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE',
1275
+ copyright: '© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)',
1276
+ license: 'https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE',
1277
1277
  source: 'https://github.com/zloirock/core-js'
1278
1278
  });
1279
1279
 
@@ -11075,6 +11075,7 @@ $({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !CORRECT_PR
11075
11075
 
11076
11076
 
11077
11077
  var $ = __webpack_require__(3);
11078
+ var createProperty = __webpack_require__(145);
11078
11079
  var getBuiltIn = __webpack_require__(23);
11079
11080
  var uncurryThis = __webpack_require__(14);
11080
11081
  var aCallable = __webpack_require__(30);
@@ -11108,7 +11109,7 @@ $({ target: 'Object', stat: true, forced: DOES_NOT_WORK_WITH_PRIMITIVES }, {
11108
11109
  // in some IE versions, `hasOwnProperty` returns incorrect result on integer keys
11109
11110
  // but since it's a `null` prototype object, we can safely use `in`
11110
11111
  if (key in obj) push(obj[key], value);
11111
- else obj[key] = [value];
11112
+ else createProperty(obj, key, [value]);
11112
11113
  });
11113
11114
  return obj;
11114
11115
  }
@@ -28220,7 +28221,13 @@ const ceil10 = (v) => Math.ceil(v / 10) * 10;
28220
28221
  const asHalfPixel = (n) => Math.ceil(n) + 0.5;
28221
28222
  const diffDomain = (d) => d[1] - d[0];
28222
28223
  const isObjectType = (v) => typeof v === "object";
28223
- 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);
28224
28231
  const notEmpty = (o) => !isEmpty(o);
28225
28232
  const isArray = (arr) => Array.isArray(arr);
28226
28233
  const isObject = (obj) => obj && !(obj == null ? void 0 : obj.nodeType) && isObjectType(obj) && !isArray(obj);
@@ -29590,7 +29597,7 @@ function setXS(ids, data, params) {
29590
29597
  */
29591
29598
  convertData(args, callback) {
29592
29599
  const { config } = this;
29593
- const useWorker = config.boost_useWorker;
29600
+ const useWorker = (d) => (d == null ? void 0 : d.length) && !isEmpty(d[0]) ? config.boost_useWorker : false;
29594
29601
  let data = args;
29595
29602
  if (args.bindto) {
29596
29603
  data = {};
@@ -29610,14 +29617,14 @@ function setXS(ids, data, params) {
29610
29617
  callback
29611
29618
  );
29612
29619
  } else if (data.json) {
29613
- runWorker(data.json.length ? useWorker : false, json, callback, [columns, rows])(
29620
+ runWorker(useWorker(data.json), json, callback, [columns, rows])(
29614
29621
  data.json,
29615
29622
  getDataKeyForJson(data.keys, config)
29616
29623
  );
29617
29624
  } else if (data.rows) {
29618
- runWorker(data.rows.length ? useWorker : false, rows, callback)(data.rows);
29625
+ runWorker(useWorker(data.rows), rows, callback)(data.rows);
29619
29626
  } else if (data.columns) {
29620
- runWorker(data.columns.length ? useWorker : false, columns, callback)(data.columns);
29627
+ runWorker(useWorker(data.columns), columns, callback)(data.columns);
29621
29628
  } else if (args.bindto) {
29622
29629
  throw Error("url or json or rows or columns is required.");
29623
29630
  }
@@ -30609,7 +30616,7 @@ function callDone(fn, resizeAfter = false) {
30609
30616
  $$.convertData(args, (d) => {
30610
30617
  const data = args.data || d;
30611
30618
  args.append && (data.__append__ = true);
30612
- data && $$.load($$.convertDataToTargets(data), args);
30619
+ data && $$.load($$.convertDataToTargets.call($$, data), args);
30613
30620
  });
30614
30621
  },
30615
30622
  unload(rawTargetIds, customDoneCb) {
@@ -52248,7 +52255,7 @@ const bb = {
52248
52255
  * bb.version; // "1.0.0"
52249
52256
  * @memberof bb
52250
52257
  */
52251
- version: "3.17.0",
52258
+ version: "3.17.2",
52252
52259
  /**
52253
52260
  * Generate chart
52254
52261
  * - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when: