billboard.js 3.10.0 → 3.10.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 +17 -14
  3. package/dist/billboard.min.css +1 -1
  4. package/dist/billboard.min.js +2 -2
  5. package/dist/billboard.pkgd.js +17 -14
  6. package/dist/billboard.pkgd.min.js +2 -2
  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 +13 -11
  10. package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
  11. package/dist/plugin/billboardjs-plugin-stanford.js +13 -11
  12. package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
  13. package/dist/plugin/billboardjs-plugin-tableview.js +14 -12
  14. package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
  15. package/dist/plugin/billboardjs-plugin-textoverlap.js +13 -11
  16. package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
  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 +13 -11
  20. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +2 -2
  21. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +13 -11
  22. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +2 -2
  23. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +14 -12
  24. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +2 -2
  25. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +13 -11
  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 +3 -3
  42. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
  43. package/package.json +1 -1
  44. package/src/ChartInternal/internals/size.ts +5 -3
  45. package/src/Plugin/tableview/Options.ts +1 -1
  46. package/src/module/browser.ts +8 -6
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.10.0
8
+ * @version 3.10.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.8
@@ -21069,15 +21069,17 @@ function getGlobal() {
21069
21069
  */
21070
21070
  function getFallback(w) {
21071
21071
  var _this = this;
21072
- const hasRAF = typeof (w == null ? void 0 : w.requestAnimationFrame) === "function",
21073
- hasRIC = typeof (w == null ? void 0 : w.requestIdleCallback) === "function";
21074
- return [hasRAF ? w.requestAnimationFrame : function (cb) {
21075
- _newArrowCheck(this, _this);
21076
- return setTimeout(cb, 1);
21077
- }.bind(this), hasRAF ? w.cancelAnimationFrame : function (id) {
21078
- _newArrowCheck(this, _this);
21079
- return clearTimeout(id);
21080
- }.bind(this), hasRIC ? w.requestIdleCallback : requestAnimationFrame, hasRIC ? w.cancelIdleCallback : cancelAnimationFrame];
21072
+ const hasRAF = typeof (w == null ? void 0 : w.requestAnimationFrame) === "function" && typeof (w == null ? void 0 : w.cancelAnimationFrame) === "function",
21073
+ hasRIC = typeof (w == null ? void 0 : w.requestIdleCallback) === "function" && typeof (w == null ? void 0 : w.cancelIdleCallback) === "function",
21074
+ request = function (cb) {
21075
+ _newArrowCheck(this, _this);
21076
+ return setTimeout(cb, 1);
21077
+ }.bind(this),
21078
+ cancel = function (id) {
21079
+ _newArrowCheck(this, _this);
21080
+ return clearTimeout(id);
21081
+ }.bind(this);
21082
+ return [hasRAF ? w.requestAnimationFrame : request, hasRAF ? w.cancelAnimationFrame : cancel, hasRIC ? w.requestIdleCallback : request, hasRIC ? w.cancelIdleCallback : cancel];
21081
21083
  }
21082
21084
  const win = getGlobal(),
21083
21085
  browser_doc = win == null ? void 0 : win.document,
@@ -34825,16 +34827,17 @@ function getGroupedDataPointsFn(d) {
34825
34827
  getSvgLeft: function getSvgLeft(withoutRecompute) {
34826
34828
  const $$ = this,
34827
34829
  config = $$.config,
34830
+ hasAxis = $$.state.hasAxis,
34828
34831
  $el = $$.$el,
34829
34832
  isRotated = config.axis_rotated,
34830
34833
  hasLeftAxisRect = isRotated || !isRotated && !config.axis_y_inner,
34831
34834
  leftAxisClass = isRotated ? $AXIS.axisX : $AXIS.axisY,
34832
34835
  leftAxis = $el.main.select("." + leftAxisClass).node(),
34833
- leftLabel = config["axis_" + (isRotated ? "x" : "y") + "_label"];
34836
+ leftLabel = hasAxis && config["axis_" + (isRotated ? "x" : "y") + "_label"];
34834
34837
  let labelWidth = 0;
34835
34838
 
34836
34839
  // if axis label position set to inner, exclude from the value
34837
- if (isString(leftLabel) || isString(leftLabel.text) || /^inner-/.test(leftLabel == null ? void 0 : leftLabel.position)) {
34840
+ if (hasAxis && (isString(leftLabel) || isString(leftLabel.text) || /^inner-/.test(leftLabel == null ? void 0 : leftLabel.position))) {
34838
34841
  const label = $el.main.select("." + leftAxisClass + "-label");
34839
34842
  if (!label.empty()) {
34840
34843
  labelWidth = label.node().getBoundingClientRect().left;
@@ -53626,7 +53629,7 @@ let _defaults = {};
53626
53629
 
53627
53630
  /**
53628
53631
  * @namespace bb
53629
- * @version 3.10.0
53632
+ * @version 3.10.2
53630
53633
  */
53631
53634
  const bb = {
53632
53635
  /**
@@ -53636,7 +53639,7 @@ const bb = {
53636
53639
  * bb.version; // "1.0.0"
53637
53640
  * @memberof bb
53638
53641
  */
53639
- version: "3.10.0",
53642
+ version: "3.10.2",
53640
53643
  /**
53641
53644
  * Generate chart
53642
53645
  * - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when: