billboard.js 3.6.2 → 3.6.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 (36) hide show
  1. package/dist/billboard.css +1 -1
  2. package/dist/billboard.js +8 -10
  3. package/dist/billboard.min.css +1 -1
  4. package/dist/billboard.min.js +2 -2
  5. package/dist/billboard.pkgd.js +66 -53
  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 +2 -2
  10. package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
  11. package/dist/plugin/billboardjs-plugin-stanford.js +2 -2
  12. package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
  13. package/dist/plugin/billboardjs-plugin-tableview.js +2 -2
  14. package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
  15. package/dist/plugin/billboardjs-plugin-textoverlap.js +2 -2
  16. package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
  17. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.js +60 -45
  18. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +60 -45
  19. package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +60 -45
  20. package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +60 -45
  21. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +60 -45
  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 +9 -10
  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 +1 -1
  35. package/src/ChartInternal/Axis/AxisRendererHelper.ts +4 -2
  36. package/src/ChartInternal/interactions/interaction.ts +6 -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.6.2
8
+ * @version 3.6.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
@@ -27266,12 +27266,10 @@ function drag_defaultTouchable() {
27266
27266
  return;
27267
27267
  }
27268
27268
  }
27269
- var shapeAtIndex = main.selectAll("." + $SHAPE.shape + "-" + index).each(function () {
27270
- src_select(this).classed($COMMON.EXPANDED, !0);
27271
- if (isSelectionEnabled) {
27272
- eventRect.style("cursor", isSelectionGrouped ? "pointer" : null);
27273
- }
27274
- }).filter(function (d) {
27269
+
27270
+ // remove possible previous focused state
27271
+ main.selectAll("." + $COMMON.EXPANDED + ":not(." + $SHAPE.shape + "-" + index + ")").classed($COMMON.EXPANDED, !1);
27272
+ var shapeAtIndex = main.selectAll("." + $SHAPE.shape + "-" + index).classed($COMMON.EXPANDED, !0).style("cursor", isSelectable ? "pointer" : null).filter(function (d) {
27275
27273
  return $$.isWithinShape(this, d);
27276
27274
  });
27277
27275
  if (shapeAtIndex.empty() && !isTooltipGrouped) {
@@ -37454,7 +37452,7 @@ var AxisRendererHelper = /*#__PURE__*/function () {
37454
37452
  _newArrowCheck(this, _this2);
37455
37453
  selection.attr("transform", function (d) {
37456
37454
  _newArrowCheck(this, _this3);
37457
- return fn(Math.ceil(scale(d)));
37455
+ return isValue(d) ? fn(Math.ceil(scale(d))) : null;
37458
37456
  }.bind(this));
37459
37457
  }.bind(this);
37460
37458
  };
@@ -49237,7 +49235,7 @@ var _defaults = {},
49237
49235
  * bb.version; // "1.0.0"
49238
49236
  * @memberof bb
49239
49237
  */
49240
- version: "3.6.2",
49238
+ version: "3.6.3",
49241
49239
  /**
49242
49240
  * Generate chart
49243
49241
  * - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when:
@@ -49367,7 +49365,7 @@ var _defaults = {},
49367
49365
  };
49368
49366
  /**
49369
49367
  * @namespace bb
49370
- * @version 3.6.2
49368
+ * @version 3.6.3
49371
49369
  */
49372
49370
  ;// CONCATENATED MODULE: ./src/index.ts
49373
49371
 
@@ -49426,6 +49424,9 @@ function _regeneratorRuntime() {
49426
49424
  var exports = {},
49427
49425
  Op = Object.prototype,
49428
49426
  hasOwn = Op.hasOwnProperty,
49427
+ defineProperty = Object.defineProperty || function (obj, key, desc) {
49428
+ obj[key] = desc.value;
49429
+ },
49429
49430
  $Symbol = "function" == typeof Symbol ? Symbol : {},
49430
49431
  iteratorSymbol = $Symbol.iterator || "@@iterator",
49431
49432
  asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
@@ -49449,40 +49450,9 @@ function _regeneratorRuntime() {
49449
49450
  var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
49450
49451
  generator = Object.create(protoGenerator.prototype),
49451
49452
  context = new Context(tryLocsList || []);
49452
- return generator._invoke = function (innerFn, self, context) {
49453
- var state = "suspendedStart";
49454
- return function (method, arg) {
49455
- if ("executing" === state) throw new Error("Generator is already running");
49456
- if ("completed" === state) {
49457
- if ("throw" === method) throw arg;
49458
- return doneResult();
49459
- }
49460
- for (context.method = method, context.arg = arg;;) {
49461
- var delegate = context.delegate;
49462
- if (delegate) {
49463
- var delegateResult = maybeInvokeDelegate(delegate, context);
49464
- if (delegateResult) {
49465
- if (delegateResult === ContinueSentinel) continue;
49466
- return delegateResult;
49467
- }
49468
- }
49469
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
49470
- if ("suspendedStart" === state) throw state = "completed", context.arg;
49471
- context.dispatchException(context.arg);
49472
- } else "return" === context.method && context.abrupt("return", context.arg);
49473
- state = "executing";
49474
- var record = tryCatch(innerFn, self, context);
49475
- if ("normal" === record.type) {
49476
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
49477
- return {
49478
- value: record.arg,
49479
- done: context.done
49480
- };
49481
- }
49482
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
49483
- }
49484
- };
49485
- }(innerFn, self, context), generator;
49453
+ return defineProperty(generator, "_invoke", {
49454
+ value: makeInvokeMethod(innerFn, self, context)
49455
+ }), generator;
49486
49456
  }
49487
49457
  function tryCatch(fn, obj, arg) {
49488
49458
  try {
@@ -49536,13 +49506,49 @@ function _regeneratorRuntime() {
49536
49506
  reject(record.arg);
49537
49507
  }
49538
49508
  var previousPromise;
49539
- this._invoke = function (method, arg) {
49540
- function callInvokeWithMethodAndArg() {
49541
- return new PromiseImpl(function (resolve, reject) {
49542
- invoke(method, arg, resolve, reject);
49543
- });
49509
+ defineProperty(this, "_invoke", {
49510
+ value: function value(method, arg) {
49511
+ function callInvokeWithMethodAndArg() {
49512
+ return new PromiseImpl(function (resolve, reject) {
49513
+ invoke(method, arg, resolve, reject);
49514
+ });
49515
+ }
49516
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
49517
+ }
49518
+ });
49519
+ }
49520
+ function makeInvokeMethod(innerFn, self, context) {
49521
+ var state = "suspendedStart";
49522
+ return function (method, arg) {
49523
+ if ("executing" === state) throw new Error("Generator is already running");
49524
+ if ("completed" === state) {
49525
+ if ("throw" === method) throw arg;
49526
+ return doneResult();
49527
+ }
49528
+ for (context.method = method, context.arg = arg;;) {
49529
+ var delegate = context.delegate;
49530
+ if (delegate) {
49531
+ var delegateResult = maybeInvokeDelegate(delegate, context);
49532
+ if (delegateResult) {
49533
+ if (delegateResult === ContinueSentinel) continue;
49534
+ return delegateResult;
49535
+ }
49536
+ }
49537
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
49538
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
49539
+ context.dispatchException(context.arg);
49540
+ } else "return" === context.method && context.abrupt("return", context.arg);
49541
+ state = "executing";
49542
+ var record = tryCatch(innerFn, self, context);
49543
+ if ("normal" === record.type) {
49544
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
49545
+ return {
49546
+ value: record.arg,
49547
+ done: context.done
49548
+ };
49549
+ }
49550
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
49544
49551
  }
49545
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
49546
49552
  };
49547
49553
  }
49548
49554
  function maybeInvokeDelegate(delegate, context) {
@@ -49600,7 +49606,13 @@ function _regeneratorRuntime() {
49600
49606
  done: !0
49601
49607
  };
49602
49608
  }
49603
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
49609
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
49610
+ value: GeneratorFunctionPrototype,
49611
+ configurable: !0
49612
+ }), defineProperty(GeneratorFunctionPrototype, "constructor", {
49613
+ value: GeneratorFunction,
49614
+ configurable: !0
49615
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
49604
49616
  var ctor = "function" == typeof genFun && genFun.constructor;
49605
49617
  return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
49606
49618
  }, exports.mark = function (genFun) {
@@ -49621,8 +49633,9 @@ function _regeneratorRuntime() {
49621
49633
  return this;
49622
49634
  }), define(Gp, "toString", function () {
49623
49635
  return "[object Generator]";
49624
- }), exports.keys = function (object) {
49625
- var keys = [];
49636
+ }), exports.keys = function (val) {
49637
+ var object = Object(val),
49638
+ keys = [];
49626
49639
  for (var key in object) {
49627
49640
  keys.push(key);
49628
49641
  }