billboard.js 3.15.0 → 3.15.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.
Files changed (46) hide show
  1. package/dist/billboard.css +1 -1
  2. package/dist/billboard.js +13 -11
  3. package/dist/billboard.min.css +1 -1
  4. package/dist/billboard.min.js +4 -4
  5. package/dist/billboard.pkgd.js +13 -11
  6. package/dist/billboard.pkgd.min.js +4 -4
  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 +10 -8
  10. package/dist/plugin/billboardjs-plugin-sparkline.min.js +3 -3
  11. package/dist/plugin/billboardjs-plugin-stanford.js +10 -8
  12. package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
  13. package/dist/plugin/billboardjs-plugin-tableview.js +10 -8
  14. package/dist/plugin/billboardjs-plugin-tableview.min.js +3 -3
  15. package/dist/plugin/billboardjs-plugin-textoverlap.js +10 -8
  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 +10 -8
  20. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +2 -2
  21. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +10 -8
  22. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +2 -2
  23. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +10 -8
  24. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +2 -2
  25. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +10 -8
  26. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +2 -2
  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 -13
  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 +2 -2
  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 +18 -18
  44. package/src/Chart/api/export.ts +1 -1
  45. package/src/core.ts +2 -2
  46. package/src/module/util.ts +9 -7
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.15.0
8
+ * @version 3.15.1
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
@@ -26458,12 +26458,14 @@ function mergeObj(target, ...objectN) {
26458
26458
  const source = objectN.shift();
26459
26459
  if (isObject(target) && isObject(source)) {
26460
26460
  Object.keys(source).forEach((key) => {
26461
- const value = source[key];
26462
- if (isObject(value)) {
26463
- !target[key] && (target[key] = {});
26464
- target[key] = mergeObj(target[key], value);
26465
- } else {
26466
- target[key] = isArray(value) ? value.concat() : value;
26461
+ if (!/^(__proto__|constructor|prototype)$/i.test(key)) {
26462
+ const value = source[key];
26463
+ if (isObject(value)) {
26464
+ !target[key] && (target[key] = {});
26465
+ target[key] = mergeObj(target[key], value);
26466
+ } else {
26467
+ target[key] = isArray(value) ? value.concat() : value;
26468
+ }
26467
26469
  }
26468
26470
  });
26469
26471
  }
@@ -36012,7 +36014,7 @@ function renderText(ctx, glyph) {
36012
36014
  const $$ = this.internal;
36013
36015
  const { state, $el: { chart, svg } } = $$;
36014
36016
  const { width, height } = state.current;
36015
- const opt = mergeObj({
36017
+ const opt = mergeObj(/* @__PURE__ */ Object.create(null), {
36016
36018
  width,
36017
36019
  height,
36018
36020
  preserveAspectRatio: true,
@@ -49565,7 +49567,7 @@ let resolver_shape_treemap = () => (extendAxis([shape_treemap], [Options_shape_t
49565
49567
  ;// ./src/core.ts
49566
49568
 
49567
49569
 
49568
- let defaults = {};
49570
+ let defaults = /* @__PURE__ */ Object.create(null);
49569
49571
  const bb = {
49570
49572
  /**
49571
49573
  * Version information
@@ -49574,7 +49576,7 @@ const bb = {
49574
49576
  * bb.version; // "1.0.0"
49575
49577
  * @memberof bb
49576
49578
  */
49577
- version: "3.15.0",
49579
+ version: "3.15.1",
49578
49580
  /**
49579
49581
  * Generate chart
49580
49582
  * - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when:
@@ -49646,7 +49648,7 @@ const bb = {
49646
49648
  * });
49647
49649
  */
49648
49650
  generate(config) {
49649
- const options = mergeObj({}, defaults, config);
49651
+ const options = mergeObj(/* @__PURE__ */ Object.create(null), defaults, config);
49650
49652
  const inst = new Chart(options);
49651
49653
  inst.internal.charts = this.instance;
49652
49654
  this.instance.push(inst);