billboard.js 3.15.0-next.2 → 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 (48) hide show
  1. package/dist/billboard.css +1 -1
  2. package/dist/billboard.js +14 -24
  3. package/dist/billboard.min.css +1 -1
  4. package/dist/billboard.min.js +6 -6
  5. package/dist/billboard.pkgd.js +14 -24
  6. package/dist/billboard.pkgd.min.js +6 -6
  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 +16 -26
  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 +19 -19
  44. package/src/Chart/api/export.ts +1 -1
  45. package/src/ChartInternal/ChartInternal.ts +1 -1
  46. package/src/config/Options/axis/y2.ts +0 -13
  47. package/src/core.ts +2 -2
  48. 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-next.2
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
  }
@@ -35172,7 +35174,7 @@ class ChartInternal {
35172
35174
  if (hasAxis || hasColorPatterns || hasPolar || hasTreemap || labelsBGColor || ((_a = $$.hasLegendDefsPoint) == null ? void 0 : _a.call($$))) {
35173
35175
  $el.defs = $el.svg.append("defs");
35174
35176
  if (hasAxis) {
35175
- ["id", "idXAxis", "idYAxis", "idY2Axis", "idGrid"].forEach((v) => {
35177
+ ["id", "idXAxis", "idYAxis", "idGrid"].forEach((v) => {
35176
35178
  $$.appendClip($el.defs, state.clip[v]);
35177
35179
  });
35178
35180
  }
@@ -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,
@@ -43377,18 +43379,6 @@ function smoothLines(el, type) {
43377
43379
 
43378
43380
  ;// ./src/config/Options/axis/y2.ts
43379
43381
  /* harmony default export */ var y2 = ({
43380
- /**
43381
- * Set clip-path attribute for y2 axis element
43382
- * - **NOTE**: `clip-path` attribute for y2 Axis is set only when `axis.y2.inner` option is true.
43383
- * @name axis․y2․clipPath
43384
- * @memberof Options
43385
- * @type {boolean}
43386
- * @default true
43387
- * @example
43388
- * // don't set 'clip-path' attribute
43389
- * clipPath: false
43390
- */
43391
- axis_y2_clipPath: true,
43392
43382
  /**
43393
43383
  * Show or hide y2 axis.
43394
43384
  * - **NOTE**:
@@ -49577,7 +49567,7 @@ let resolver_shape_treemap = () => (extendAxis([shape_treemap], [Options_shape_t
49577
49567
  ;// ./src/core.ts
49578
49568
 
49579
49569
 
49580
- let defaults = {};
49570
+ let defaults = /* @__PURE__ */ Object.create(null);
49581
49571
  const bb = {
49582
49572
  /**
49583
49573
  * Version information
@@ -49586,7 +49576,7 @@ const bb = {
49586
49576
  * bb.version; // "1.0.0"
49587
49577
  * @memberof bb
49588
49578
  */
49589
- version: "3.15.0-next.2",
49579
+ version: "3.15.1",
49590
49580
  /**
49591
49581
  * Generate chart
49592
49582
  * - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when:
@@ -49658,7 +49648,7 @@ const bb = {
49658
49648
  * });
49659
49649
  */
49660
49650
  generate(config) {
49661
- const options = mergeObj({}, defaults, config);
49651
+ const options = mergeObj(/* @__PURE__ */ Object.create(null), defaults, config);
49662
49652
  const inst = new Chart(options);
49663
49653
  inst.internal.charts = this.instance;
49664
49654
  this.instance.push(inst);