billboard.js 3.3.2 → 3.3.3

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 (37) hide show
  1. package/dist/billboard.css +1 -1
  2. package/dist/billboard.js +18 -7
  3. package/dist/billboard.min.css +1 -1
  4. package/dist/billboard.min.js +2 -2
  5. package/dist/billboard.pkgd.js +22 -11
  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 +14 -4
  10. package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
  11. package/dist/plugin/billboardjs-plugin-stanford.js +14 -4
  12. package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
  13. package/dist/plugin/billboardjs-plugin-tableview.js +14 -4
  14. package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
  15. package/dist/plugin/billboardjs-plugin-textoverlap.js +14 -4
  16. package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
  17. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.js +6 -6
  18. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +18 -8
  19. package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +18 -8
  20. package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +18 -8
  21. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +18 -8
  22. package/dist/theme/datalab.css +1 -1
  23. package/dist/theme/datalab.min.css +1 -1
  24. package/dist/theme/graph.css +1 -1
  25. package/dist/theme/graph.min.css +1 -1
  26. package/dist/theme/insight.css +1 -1
  27. package/dist/theme/insight.min.css +1 -1
  28. package/dist-esm/billboard.js +12 -8
  29. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  30. package/dist-esm/plugin/billboardjs-plugin-sparkline.js +2 -2
  31. package/dist-esm/plugin/billboardjs-plugin-stanford.js +2 -2
  32. package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
  33. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
  34. package/package.json +11 -11
  35. package/src/ChartInternal/Axis/Axis.ts +3 -2
  36. package/src/ChartInternal/ChartInternal.ts +2 -2
  37. package/src/module/util.ts +4 -2
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.3.2
8
+ * @version 3.3.3
9
9
  *
10
10
  * All-in-one packaged file for ease use of 'billboard.js' with dependant d3.js modules & polyfills.
11
11
  * - d3-axis ^3.0.0
@@ -1190,10 +1190,10 @@ var store = __webpack_require__(34);
1190
1190
  (module.exports = function (key, value) {
1191
1191
  return store[key] || (store[key] = value !== undefined ? value : {});
1192
1192
  })('versions', []).push({
1193
- version: '3.21.0',
1193
+ version: '3.21.1',
1194
1194
  mode: IS_PURE ? 'pure' : 'global',
1195
1195
  copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
1196
- license: 'https://github.com/zloirock/core-js/blob/v3.21.0/LICENSE',
1196
+ license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
1197
1197
  source: 'https://github.com/zloirock/core-js'
1198
1198
  });
1199
1199
 
@@ -3472,8 +3472,8 @@ var fails = __webpack_require__(6);
3472
3472
  module.exports = function (METHOD_NAME, argument) {
3473
3473
  var method = [][METHOD_NAME];
3474
3474
  return !!method && fails(function () {
3475
- // eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing
3476
- method.call(null, argument || function () { throw 1; }, 1);
3475
+ // eslint-disable-next-line no-useless-call -- required for testing
3476
+ method.call(null, argument || function () { return 1; }, 1);
3477
3477
  });
3478
3478
  };
3479
3479
 
@@ -21427,17 +21427,27 @@ function getBoundingRect(node) {
21427
21427
  /**
21428
21428
  * Retrun random number
21429
21429
  * @param {boolean} asStr Convert returned value as string
21430
+ * @param {number} min Minimum value
21431
+ * @param {number} max Maximum value
21430
21432
  * @returns {number|string}
21431
21433
  * @private
21432
21434
  */
21433
21435
 
21434
21436
 
21435
- function getRandom(asStr) {
21437
+ function getRandom(asStr, min, max) {
21436
21438
  if (asStr === void 0) {
21437
21439
  asStr = !0;
21438
21440
  }
21439
21441
 
21440
- var rand = Math.random();
21442
+ if (min === void 0) {
21443
+ min = 0;
21444
+ }
21445
+
21446
+ if (max === void 0) {
21447
+ max = 1e4;
21448
+ }
21449
+
21450
+ var rand = Math.floor(Math.random() * (max - min) + min);
21441
21451
  return asStr ? rand + "" : rand;
21442
21452
  }
21443
21453
  /**
@@ -33749,7 +33759,7 @@ var ChartInternal = /*#__PURE__*/function () {
33749
33759
  state = _ref.state,
33750
33760
  isRotated = config.axis_rotated;
33751
33761
  // datetime to be used for uniqueness
33752
- state.datetimeId = "bb-" + +new Date();
33762
+ state.datetimeId = "bb-" + +new Date() * getRandom();
33753
33763
  $$.color = $$.generateColor();
33754
33764
  $$.levelColor = $$.generateLevelColor();
33755
33765
 
@@ -38149,7 +38159,8 @@ var Axis_Axis = /*#__PURE__*/function () {
38149
38159
 
38150
38160
  tickNodes.each(function (d) {
38151
38161
  if (tickValues.indexOf(d) % intervalForCulling) {
38152
- (lines ? this.querySelector("text") : this).style.display = "none";
38162
+ var node = lines ? this.querySelector("text") : this;
38163
+ node && (node.style.display = "none");
38153
38164
  }
38154
38165
  });
38155
38166
  } else {
@@ -48461,7 +48472,7 @@ var _defaults = {},
48461
48472
  * bb.version; // "1.0.0"
48462
48473
  * @memberof bb
48463
48474
  */
48464
- version: "3.3.1",
48475
+ version: "3.3.3",
48465
48476
 
48466
48477
  /**
48467
48478
  * Generate chart
@@ -48595,7 +48606,7 @@ var _defaults = {},
48595
48606
  };
48596
48607
  /**
48597
48608
  * @namespace bb
48598
- * @version 3.3.1
48609
+ * @version 3.3.3
48599
48610
  */
48600
48611
  ;// CONCATENATED MODULE: ./src/index.ts
48601
48612
  /**