billboard.js 3.9.2 → 3.9.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 +153 -123
  3. package/dist/billboard.min.css +1 -1
  4. package/dist/billboard.min.js +2 -2
  5. package/dist/billboard.pkgd.js +159 -134
  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 +8 -13
  18. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +8 -13
  19. package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +8 -13
  20. package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +8 -13
  21. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +8 -13
  22. package/dist/theme/dark.css +1 -1
  23. package/dist/theme/dark.min.css +1 -1
  24. package/dist/theme/datalab.css +1 -1
  25. package/dist/theme/datalab.min.css +1 -1
  26. package/dist/theme/graph.css +1 -1
  27. package/dist/theme/graph.min.css +1 -1
  28. package/dist/theme/insight.css +1 -1
  29. package/dist/theme/insight.min.css +1 -1
  30. package/dist-esm/billboard.js +17 -9
  31. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  32. package/dist-esm/plugin/billboardjs-plugin-sparkline.js +2 -2
  33. package/dist-esm/plugin/billboardjs-plugin-stanford.js +2 -2
  34. package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
  35. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
  36. package/package.json +12 -12
  37. package/src/ChartInternal/shape/arc.ts +14 -4
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.9.2
8
+ * @version 3.9.3
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.5
@@ -35548,75 +35548,76 @@ function title_getTextPos(pos, width) {
35548
35548
  len = d.length;
35549
35549
  var text, row, param, value, i;
35550
35550
  var _loop = function () {
35551
- var _this3 = this;
35552
- row = d[i];
35553
- if (!row || !(getRowValue(row) || getRowValue(row) === 0)) {
35554
- return "continue";
35555
- }
35556
- if (isUndefined(text)) {
35557
- var title = (state.hasAxis || state.hasRadar) && sanitise(titleFormat ? titleFormat(row.x) : row.x);
35558
- text = tplProcess(tpl[0], {
35559
- CLASS_TOOLTIP: $TOOLTIP.tooltip,
35560
- TITLE: isValue(title) ? tplStr ? title : "<tr><th colspan=\"2\">" + title + "</th></tr>" : ""
35561
- });
35562
- }
35563
- if (!row.ratio && $el.arcs) {
35564
- param = ["arc", $$.$el.arcs.select("path." + $ARC.arc + "-" + row.id).data()[0]];
35565
- row.ratio = $$.getRatio.apply($$, param);
35566
- }
35567
- param = [row.ratio, row.id, row.index, d];
35568
- value = sanitise(valueFormat.apply(void 0, [getRowValue(row)].concat(param)));
35569
- if ($$.isAreaRangeType(row)) {
35570
- var _map2 = ["high", "low"].map(function (v) {
35571
- _newArrowCheck(this, _this3);
35572
- return sanitise(valueFormat.apply(void 0, [$$.getRangedData(row, v)].concat(param)));
35573
- }.bind(this)),
35574
- high = _map2[0],
35575
- low = _map2[1];
35576
- value = "<b>Mid:</b> " + value + " <b>High:</b> " + high + " <b>Low:</b> " + low;
35577
- } else if ($$.isCandlestickType(row)) {
35578
- var _map3 = ["open", "high", "low", "close", "volume"].map(function (v) {
35579
- _newArrowCheck(this, _this3);
35580
- return sanitise(valueFormat.apply(void 0, [$$.getRangedData(row, v, "candlestick")].concat(param)));
35581
- }.bind(this)),
35582
- open = _map3[0],
35583
- _high = _map3[1],
35584
- _low = _map3[2],
35585
- close = _map3[3],
35586
- volume = _map3[4];
35587
- value = "<b>Open:</b> " + open + " <b>High:</b> " + _high + " <b>Low:</b> " + _low + " <b>Close:</b> " + close + (volume ? " <b>Volume:</b> " + volume : "");
35588
- } else if ($$.isBarRangeType(row)) {
35589
- var _row$value = row.value,
35590
- start = _row$value[0],
35591
- end = _row$value[1];
35592
- value = valueFormat(start) + " ~ " + valueFormat(end);
35593
- }
35594
- if (value !== undefined) {
35595
- // Skip elements when their name is set to null
35596
- if (row.name === null) {
35597
- return "continue";
35551
+ var _this3 = this;
35552
+ row = d[i];
35553
+ if (!row || !(getRowValue(row) || getRowValue(row) === 0)) {
35554
+ return 0; // continue
35598
35555
  }
35599
- var name = sanitise(nameFormat.apply(void 0, [row.name].concat(param))),
35600
- _color = getBgColor(row),
35601
- contentValue = {
35602
- CLASS_TOOLTIP_NAME: $TOOLTIP.tooltipName + $$.getTargetSelectorSuffix(row.id),
35603
- COLOR: tplStr || !$$.patterns ? _color : "<svg><rect style=\"fill:" + _color + "\" width=\"10\" height=\"10\"></rect></svg>",
35604
- NAME: name,
35605
- VALUE: value
35606
- };
35607
- if (tplStr && isObject(contents.text)) {
35608
- var index = targetIds.indexOf(row.id);
35609
- Object.keys(contents.text).forEach(function (key) {
35610
- _newArrowCheck(this, _this3);
35611
- contentValue[key] = contents.text[key][index];
35612
- }.bind(this));
35556
+ if (isUndefined(text)) {
35557
+ var title = (state.hasAxis || state.hasRadar) && sanitise(titleFormat ? titleFormat(row.x) : row.x);
35558
+ text = tplProcess(tpl[0], {
35559
+ CLASS_TOOLTIP: $TOOLTIP.tooltip,
35560
+ TITLE: isValue(title) ? tplStr ? title : "<tr><th colspan=\"2\">" + title + "</th></tr>" : ""
35561
+ });
35613
35562
  }
35614
- text += tplProcess(tpl[1], contentValue);
35615
- }
35616
- };
35563
+ if (!row.ratio && $el.arcs) {
35564
+ param = ["arc", $$.$el.arcs.select("path." + $ARC.arc + "-" + row.id).data()[0]];
35565
+ row.ratio = $$.getRatio.apply($$, param);
35566
+ }
35567
+ param = [row.ratio, row.id, row.index, d];
35568
+ value = sanitise(valueFormat.apply(void 0, [getRowValue(row)].concat(param)));
35569
+ if ($$.isAreaRangeType(row)) {
35570
+ var _map2 = ["high", "low"].map(function (v) {
35571
+ _newArrowCheck(this, _this3);
35572
+ return sanitise(valueFormat.apply(void 0, [$$.getRangedData(row, v)].concat(param)));
35573
+ }.bind(this)),
35574
+ high = _map2[0],
35575
+ low = _map2[1];
35576
+ value = "<b>Mid:</b> " + value + " <b>High:</b> " + high + " <b>Low:</b> " + low;
35577
+ } else if ($$.isCandlestickType(row)) {
35578
+ var _map3 = ["open", "high", "low", "close", "volume"].map(function (v) {
35579
+ _newArrowCheck(this, _this3);
35580
+ return sanitise(valueFormat.apply(void 0, [$$.getRangedData(row, v, "candlestick")].concat(param)));
35581
+ }.bind(this)),
35582
+ open = _map3[0],
35583
+ _high = _map3[1],
35584
+ _low = _map3[2],
35585
+ close = _map3[3],
35586
+ volume = _map3[4];
35587
+ value = "<b>Open:</b> " + open + " <b>High:</b> " + _high + " <b>Low:</b> " + _low + " <b>Close:</b> " + close + (volume ? " <b>Volume:</b> " + volume : "");
35588
+ } else if ($$.isBarRangeType(row)) {
35589
+ var _row$value = row.value,
35590
+ start = _row$value[0],
35591
+ end = _row$value[1];
35592
+ value = valueFormat(start) + " ~ " + valueFormat(end);
35593
+ }
35594
+ if (value !== undefined) {
35595
+ // Skip elements when their name is set to null
35596
+ if (row.name === null) {
35597
+ return 0; // continue
35598
+ }
35599
+ var name = sanitise(nameFormat.apply(void 0, [row.name].concat(param))),
35600
+ _color = getBgColor(row),
35601
+ contentValue = {
35602
+ CLASS_TOOLTIP_NAME: $TOOLTIP.tooltipName + $$.getTargetSelectorSuffix(row.id),
35603
+ COLOR: tplStr || !$$.patterns ? _color : "<svg><rect style=\"fill:" + _color + "\" width=\"10\" height=\"10\"></rect></svg>",
35604
+ NAME: name,
35605
+ VALUE: value
35606
+ };
35607
+ if (tplStr && isObject(contents.text)) {
35608
+ var index = targetIds.indexOf(row.id);
35609
+ Object.keys(contents.text).forEach(function (key) {
35610
+ _newArrowCheck(this, _this3);
35611
+ contentValue[key] = contents.text[key][index];
35612
+ }.bind(this));
35613
+ }
35614
+ text += tplProcess(tpl[1], contentValue);
35615
+ }
35616
+ },
35617
+ _ret;
35617
35618
  for (i = 0; i < len; i++) {
35618
- var _ret = _loop();
35619
- if (_ret === "continue") continue;
35619
+ _ret = _loop();
35620
+ if (_ret === 0) continue;
35620
35621
  }
35621
35622
  return text + "</table>";
35622
35623
  },
@@ -45251,6 +45252,9 @@ function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {
45251
45252
  }
45252
45253
  ;// CONCATENATED MODULE: ./src/ChartInternal/shape/arc.ts
45253
45254
 
45255
+
45256
+ function arc_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
45257
+ function arc_objectSpread(target) { for (var i = 1, source; i < arguments.length; i++) { source = null != arguments[i] ? arguments[i] : {}; i % 2 ? arc_ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : arc_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
45254
45258
  /**
45255
45259
  * Copyright (c) 2017 ~ present NAVER Corp.
45256
45260
  * billboard.js project is licensed under the MIT license
@@ -45350,17 +45354,43 @@ function getRadiusFn(expandRate) {
45350
45354
  */
45351
45355
  function getAttrTweenFn(fn) {
45352
45356
  return function (d) {
45353
- var interpolate = value(this._current, d);
45357
+ var _this2 = this,
45358
+ getAngleKeyValue = function (_ref) {
45359
+ var _ref$startAngle = _ref.startAngle,
45360
+ startAngle = _ref$startAngle === void 0 ? 0 : _ref$startAngle,
45361
+ _ref$endAngle = _ref.endAngle,
45362
+ endAngle = _ref$endAngle === void 0 ? 0 : _ref$endAngle,
45363
+ _ref$padAngle = _ref.padAngle,
45364
+ padAngle = _ref$padAngle === void 0 ? 0 : _ref$padAngle;
45365
+ _newArrowCheck(this, _this2);
45366
+ return {
45367
+ startAngle: startAngle,
45368
+ endAngle: endAngle,
45369
+ padAngle: padAngle
45370
+ };
45371
+ }.bind(this),
45372
+ interpolate = value(getAngleKeyValue(this._current), getAngleKeyValue(d));
45373
+ // d3.interpolate interpolates id value, if id is given as color string(ex. gold, silver, etc)
45374
+ // to avoid unexpected behavior, interpolate only angle values
45375
+ // https://github.com/naver/billboard.js/issues/3321
45376
+
45354
45377
  this._current = d;
45355
45378
  return function (t) {
45356
- var interpolated = interpolate(t);
45357
- return fn(interpolated);
45379
+ var interpolated = interpolate(t),
45380
+ data = d.data,
45381
+ index = d.index,
45382
+ value = d.value;
45383
+ return fn(arc_objectSpread(arc_objectSpread({}, interpolated), {}, {
45384
+ data: data,
45385
+ index: index,
45386
+ value: value
45387
+ }));
45358
45388
  };
45359
45389
  };
45360
45390
  }
45361
45391
  /* harmony default export */ var arc = ({
45362
45392
  initPie: function initPie() {
45363
- var _this2 = this,
45393
+ var _this3 = this,
45364
45394
  $$ = this,
45365
45395
  config = $$.config,
45366
45396
  dataType = config.data_type,
@@ -45368,10 +45398,10 @@ function getAttrTweenFn(fn) {
45368
45398
  startingAngle = config[dataType + "_startingAngle"] || 0,
45369
45399
  padAngle = (padding ? padding * .01 : config[dataType + "_padAngle"]) || 0;
45370
45400
  $$.pie = pie().startAngle(startingAngle).endAngle(startingAngle + 2 * Math.PI).padAngle(padAngle).value(function (d) {
45371
- var _this3 = this;
45372
- _newArrowCheck(this, _this2);
45401
+ var _this4 = this;
45402
+ _newArrowCheck(this, _this3);
45373
45403
  return d.values.reduce(function (a, b) {
45374
- _newArrowCheck(this, _this3);
45404
+ _newArrowCheck(this, _this4);
45375
45405
  return a + b.value;
45376
45406
  }.bind(this), 0);
45377
45407
  }.bind(this)).sort($$.getSortCompareFn.bind($$)(!0));
@@ -45455,7 +45485,7 @@ function getAttrTweenFn(fn) {
45455
45485
  return startAngle;
45456
45486
  },
45457
45487
  updateAngle: function updateAngle(dValue) {
45458
- var _this4 = this,
45488
+ var _this5 = this,
45459
45489
  $$ = this,
45460
45490
  config = $$.config,
45461
45491
  state = $$.state,
@@ -45476,7 +45506,7 @@ function getAttrTweenFn(fn) {
45476
45506
  }
45477
45507
  pie($$.filterTargetsToShow()).forEach(function (t, i) {
45478
45508
  var _d$data;
45479
- _newArrowCheck(this, _this4);
45509
+ _newArrowCheck(this, _this5);
45480
45510
  if (!found && t.data.id === ((_d$data = d.data) == null ? void 0 : _d$data.id)) {
45481
45511
  found = !0;
45482
45512
  d = t;
@@ -45527,7 +45557,7 @@ function getAttrTweenFn(fn) {
45527
45557
  * @private
45528
45558
  */
45529
45559
  getSvgArcExpanded: function getSvgArcExpanded(rate) {
45530
- var _this5 = this;
45560
+ var _this6 = this;
45531
45561
  if (rate === void 0) {
45532
45562
  rate = 1;
45533
45563
  }
@@ -45538,7 +45568,7 @@ function getAttrTweenFn(fn) {
45538
45568
  corner = _getRadiusFn$call2.corner,
45539
45569
  arc = src_arc().innerRadius(inner).outerRadius(outer);
45540
45570
  return function (d) {
45541
- _newArrowCheck(this, _this5);
45571
+ _newArrowCheck(this, _this6);
45542
45572
  var updated = $$.updateAngle(d),
45543
45573
  outerR = outer(updated);
45544
45574
  var cornerR = 0;
@@ -45558,7 +45588,7 @@ function getAttrTweenFn(fn) {
45558
45588
  * @private
45559
45589
  */
45560
45590
  transformForArcLabel: function transformForArcLabel(d) {
45561
- var _this6 = this,
45591
+ var _this7 = this,
45562
45592
  $$ = this,
45563
45593
  config = $$.config,
45564
45594
  radiusExpanded = $$.state.radiusExpanded,
@@ -45579,14 +45609,14 @@ function getAttrTweenFn(fn) {
45579
45609
  }
45580
45610
  var c = this.svgArc.centroid(updated),
45581
45611
  _c$map = c.map(function (v) {
45582
- _newArrowCheck(this, _this6);
45612
+ _newArrowCheck(this, _this7);
45583
45613
  return isNaN(v) ? 0 : v;
45584
45614
  }.bind(this)),
45585
45615
  x = _c$map[0],
45586
45616
  y = _c$map[1],
45587
45617
  h = Math.sqrt(x * x + y * y);
45588
45618
  var ratio = (_filter$map = ["donut", "pie", "polar"].filter($$.hasType.bind($$)).map(function (v) {
45589
- _newArrowCheck(this, _this6);
45619
+ _newArrowCheck(this, _this7);
45590
45620
  return config[v + "_label_ratio"];
45591
45621
  }.bind(this))) == null ? void 0 : _filter$map[0];
45592
45622
  if (ratio) {
@@ -45628,14 +45658,14 @@ function getAttrTweenFn(fn) {
45628
45658
  }
45629
45659
  },
45630
45660
  expandArc: function expandArc(targetIds) {
45631
- var _this7 = this,
45661
+ var _this8 = this,
45632
45662
  $$ = this,
45633
45663
  transiting = $$.state.transiting,
45634
45664
  $el = $$.$el;
45635
45665
  // MEMO: avoid to cancel transition
45636
45666
  if (transiting) {
45637
45667
  var interval = setInterval(function () {
45638
- _newArrowCheck(this, _this7);
45668
+ _newArrowCheck(this, _this8);
45639
45669
  if (!transiting) {
45640
45670
  clearInterval(interval);
45641
45671
  $el.legend.selectAll("." + $FOCUS.legendItemFocused).size() > 0 && $$.expandArc(targetIds);
@@ -45654,7 +45684,7 @@ function getAttrTweenFn(fn) {
45654
45684
  });
45655
45685
  },
45656
45686
  unexpandArc: function unexpandArc(targetIds) {
45657
- var _this8 = this,
45687
+ var _this9 = this,
45658
45688
  $$ = this,
45659
45689
  transiting = $$.state.transiting,
45660
45690
  svg = $$.$el.svg;
@@ -45663,7 +45693,7 @@ function getAttrTweenFn(fn) {
45663
45693
  }
45664
45694
  var newTargetIds = $$.mapToTargetIds(targetIds);
45665
45695
  svg.selectAll($$.selectorTargets(newTargetIds, "." + $ARC.chartArc)).selectAll("path").transition().duration(function (d) {
45666
- _newArrowCheck(this, _this8);
45696
+ _newArrowCheck(this, _this9);
45667
45697
  return $$.getExpandConfig(d.data.id, "duration");
45668
45698
  }.bind(this)).attrTween("d", getAttrTweenFn($$.svgArc.bind($$)));
45669
45699
  svg.selectAll("" + $ARC.arc).style("opacity", null);
@@ -45697,30 +45727,30 @@ function getAttrTweenFn(fn) {
45697
45727
  return $$.isDonutType(id) && config.donut_expand || $$.isGaugeType(id) && config.gauge_expand || $$.isPieType(id) && config.pie_expand;
45698
45728
  },
45699
45729
  shouldShowArcLabel: function shouldShowArcLabel() {
45700
- var _this9 = this,
45730
+ var _this10 = this,
45701
45731
  $$ = this,
45702
45732
  config = $$.config;
45703
45733
  return ["donut", "gauge", "pie", "polar"].some(function (v) {
45704
- _newArrowCheck(this, _this9);
45734
+ _newArrowCheck(this, _this10);
45705
45735
  return $$.hasType(v) && config[v + "_label_show"];
45706
45736
  }.bind(this));
45707
45737
  },
45708
45738
  getArcLabelFormat: function getArcLabelFormat() {
45709
- var _this10 = this,
45739
+ var _this11 = this,
45710
45740
  $$ = this,
45711
45741
  config = $$.config,
45712
45742
  format = function (v) {
45713
- _newArrowCheck(this, _this10);
45743
+ _newArrowCheck(this, _this11);
45714
45744
  return v;
45715
45745
  }.bind(this);
45716
45746
  ["donut", "gauge", "pie", "polar"].filter($$.hasType.bind($$)).forEach(function (v) {
45717
- _newArrowCheck(this, _this10);
45747
+ _newArrowCheck(this, _this11);
45718
45748
  format = config[v + "_label_format"];
45719
45749
  }.bind(this));
45720
45750
  return isFunction(format) ? format.bind($$.api) : format;
45721
45751
  },
45722
45752
  updateTargetsForArc: function updateTargetsForArc(targets) {
45723
- var _this11 = this,
45753
+ var _this12 = this,
45724
45754
  $$ = this,
45725
45755
  $el = $$.$el,
45726
45756
  hasGauge = $$.hasType("gauge"),
@@ -45729,7 +45759,7 @@ function getAttrTweenFn(fn) {
45729
45759
  classFocus = $$.classFocus.bind($$),
45730
45760
  chartArcs = $el.main.select("." + $ARC.chartArcs),
45731
45761
  mainPieUpdate = chartArcs.selectAll("." + $ARC.chartArc).data($$.pie(targets)).attr("class", function (d) {
45732
- _newArrowCheck(this, _this11);
45762
+ _newArrowCheck(this, _this12);
45733
45763
  return classChartArc(d) + classFocus(d.data);
45734
45764
  }.bind(this)),
45735
45765
  mainPieEnter = mainPieUpdate.enter().append("g").attr("class", classChartArc).call(this.setCssRule(!1, "." + $ARC.chartArcs + " text", ["pointer-events:none", "text-anchor:middle"]));
@@ -45796,7 +45826,7 @@ function getAttrTweenFn(fn) {
45796
45826
  return !1;
45797
45827
  },
45798
45828
  redrawArc: function redrawArc(duration, durationForExit, withTransform) {
45799
- var _this12 = this,
45829
+ var _this13 = this,
45800
45830
  $$ = this,
45801
45831
  config = $$.config,
45802
45832
  state = $$.state,
@@ -45806,10 +45836,10 @@ function getAttrTweenFn(fn) {
45806
45836
  mainArc = main.selectAll("." + $ARC.arcs).selectAll("." + $ARC.arc).data($$.arcData.bind($$));
45807
45837
  mainArc.exit().transition().duration(durationForExit).style("opacity", "0").remove();
45808
45838
  mainArc = mainArc.enter().append("path").attr("class", $$.getClass("arc", !0)).style("fill", function (d) {
45809
- _newArrowCheck(this, _this12);
45839
+ _newArrowCheck(this, _this13);
45810
45840
  return $$.color(d.data);
45811
45841
  }.bind(this)).style("cursor", function (d) {
45812
- _newArrowCheck(this, _this12);
45842
+ _newArrowCheck(this, _this13);
45813
45843
  return isSelectable != null && isSelectable.bind != null && isSelectable.bind($$.api)(d) ? "pointer" : null;
45814
45844
  }.bind(this)).style("opacity", "0").each(function (d) {
45815
45845
  if ($$.isGaugeType(d.data)) {
@@ -45823,19 +45853,19 @@ function getAttrTweenFn(fn) {
45823
45853
  $$.hasMultiArcGauge() && $$.redrawMultiArcGauge();
45824
45854
  }
45825
45855
  mainArc.attr("transform", function (d) {
45826
- _newArrowCheck(this, _this12);
45856
+ _newArrowCheck(this, _this13);
45827
45857
  return !$$.isGaugeType(d.data) && withTransform ? "scale(0)" : "";
45828
45858
  }.bind(this)).style("opacity", function (d) {
45829
45859
  return d === this._current ? "0" : null;
45830
45860
  }).each(function () {
45831
- _newArrowCheck(this, _this12);
45861
+ _newArrowCheck(this, _this13);
45832
45862
  state.transiting = !0;
45833
45863
  }.bind(this)).transition().duration(duration).attrTween("d", function (d) {
45834
- var _this13 = this,
45864
+ var _this14 = this,
45835
45865
  updated = $$.updateAngle(d);
45836
45866
  if (!updated) {
45837
45867
  return function () {
45838
- _newArrowCheck(this, _this13);
45868
+ _newArrowCheck(this, _this14);
45839
45869
  return "M 0 0";
45840
45870
  }.bind(this);
45841
45871
  }
@@ -45854,7 +45884,7 @@ function getAttrTweenFn(fn) {
45854
45884
  return $$.getArc(interpolated, !0);
45855
45885
  };
45856
45886
  }).attr("transform", withTransform ? "scale(1)" : "").style("fill", function (d) {
45857
- _newArrowCheck(this, _this12);
45887
+ _newArrowCheck(this, _this13);
45858
45888
  var color;
45859
45889
  if ($$.levelColor) {
45860
45890
  color = $$.levelColor(d.data.values[0].value);
@@ -45889,7 +45919,7 @@ function getAttrTweenFn(fn) {
45889
45919
  * @private
45890
45920
  */
45891
45921
  redrawNeedle: function redrawNeedle() {
45892
- var _this14 = this,
45922
+ var _this15 = this,
45893
45923
  $$ = this,
45894
45924
  $el = $$.$el,
45895
45925
  config = $$.config,
@@ -45909,7 +45939,7 @@ function getAttrTweenFn(fn) {
45909
45939
  bottomRy = config.arc_needle_bottom_ry,
45910
45940
  needleAngle = $$.getNeedleAngle(),
45911
45941
  updateNeedleValue = function () {
45912
- _newArrowCheck(this, _this14);
45942
+ _newArrowCheck(this, _this15);
45913
45943
  var title = $$.getArcTitleWithNeedleValue();
45914
45944
  title && $$.setArcTitle(title);
45915
45945
  }.bind(this); // needle options
@@ -45925,14 +45955,14 @@ function getAttrTweenFn(fn) {
45925
45955
  * @private
45926
45956
  */
45927
45957
  $el.needle.updateHelper = function (v, updateConfig) {
45928
- var _this15 = this;
45958
+ var _this16 = this;
45929
45959
  if (updateConfig === void 0) {
45930
45960
  updateConfig = !1;
45931
45961
  }
45932
- _newArrowCheck(this, _this14);
45962
+ _newArrowCheck(this, _this15);
45933
45963
  if ($el.needle.style("display") !== "none") {
45934
45964
  $$.$T($el.needle).style("transform", "rotate(" + $$.getNeedleAngle(v) + "deg)").call(endall, function () {
45935
- _newArrowCheck(this, _this15);
45965
+ _newArrowCheck(this, _this16);
45936
45966
  updateConfig && (config.arc_needle_value = v);
45937
45967
  updateNeedleValue();
45938
45968
  }.bind(this));
@@ -45978,7 +46008,7 @@ function getAttrTweenFn(fn) {
45978
46008
  return (startingAngle + radian) * (180 / Math.PI);
45979
46009
  },
45980
46010
  redrawBackgroundArcs: function redrawBackgroundArcs() {
45981
- var _this16 = this,
46011
+ var _this17 = this,
45982
46012
  $$ = this,
45983
46013
  config = $$.config,
45984
46014
  state = $$.state,
@@ -45992,11 +46022,11 @@ function getAttrTweenFn(fn) {
45992
46022
  var index = 0;
45993
46023
  backgroundArc = backgroundArc.selectAll("path." + $ARC.chartArcsBackground).data($$.data.targets);
45994
46024
  backgroundArc.enter().append("path").attr("class", function (d, i) {
45995
- _newArrowCheck(this, _this16);
46025
+ _newArrowCheck(this, _this17);
45996
46026
  return $ARC.chartArcsBackground + " " + $ARC.chartArcsBackground + "-" + i;
45997
- }.bind(this)).merge(backgroundArc).style("fill", config.gauge_background || null).attr("d", function (_ref2) {
45998
- var id = _ref2.id;
45999
- _newArrowCheck(this, _this16);
46027
+ }.bind(this)).merge(backgroundArc).style("fill", config.gauge_background || null).attr("d", function (_ref3) {
46028
+ var id = _ref3.id;
46029
+ _newArrowCheck(this, _this17);
46000
46030
  if (showEmptyTextLabel || state.hiddenTargetIds.indexOf(id) >= 0) {
46001
46031
  return "M 0 0";
46002
46032
  }
@@ -46013,7 +46043,7 @@ function getAttrTweenFn(fn) {
46013
46043
  backgroundArc.exit().remove();
46014
46044
  } else {
46015
46045
  backgroundArc.attr("d", showEmptyTextLabel ? "M 0 0" : function () {
46016
- _newArrowCheck(this, _this16);
46046
+ _newArrowCheck(this, _this17);
46017
46047
  var d = {
46018
46048
  data: [{
46019
46049
  value: config.gauge_max
@@ -46026,7 +46056,7 @@ function getAttrTweenFn(fn) {
46026
46056
  }
46027
46057
  },
46028
46058
  bindArcEvent: function bindArcEvent(arc) {
46029
- var _this17 = this,
46059
+ var _this18 = this,
46030
46060
  $$ = this,
46031
46061
  config = $$.config,
46032
46062
  state = $$.state,
@@ -46074,7 +46104,7 @@ function getAttrTweenFn(fn) {
46074
46104
  selectArc(this, arcData, id);
46075
46105
  $$.setOverOut(!0, arcData);
46076
46106
  }).on("mouseout", function (event, d) {
46077
- _newArrowCheck(this, _this17);
46107
+ _newArrowCheck(this, _this18);
46078
46108
  if (state.transiting) {
46079
46109
  // skip while transiting
46080
46110
  return;
@@ -46095,7 +46125,7 @@ function getAttrTweenFn(fn) {
46095
46125
  // touch events
46096
46126
  if (isTouch && $$.hasArcType() && !$$.radars) {
46097
46127
  var getEventArc = function (event) {
46098
- _newArrowCheck(this, _this17);
46128
+ _newArrowCheck(this, _this18);
46099
46129
  var touch = event.changedTouches[0],
46100
46130
  eventArc = src_select(browser_doc.elementFromPoint(touch.clientX, touch.clientY));
46101
46131
  return eventArc;
@@ -46118,7 +46148,7 @@ function getAttrTweenFn(fn) {
46118
46148
  }
46119
46149
  },
46120
46150
  redrawArcText: function redrawArcText(duration) {
46121
- var _this18 = this,
46151
+ var _this19 = this,
46122
46152
  $$ = this,
46123
46153
  config = $$.config,
46124
46154
  state = $$.state,
@@ -46131,13 +46161,13 @@ function getAttrTweenFn(fn) {
46131
46161
  // for gauge type, update text when has no title & multi data
46132
46162
  if (!(hasGauge && $$.data.targets.length === 1 && config.gauge_title)) {
46133
46163
  text = main.selectAll("." + $ARC.chartArc).select("text").style("opacity", "0").attr("class", function (d) {
46134
- _newArrowCheck(this, _this18);
46164
+ _newArrowCheck(this, _this19);
46135
46165
  return $$.isGaugeType(d.data) ? $GAUGE.gaugeValue : null;
46136
46166
  }.bind(this)).call($$.textForArcLabel.bind($$)).attr("transform", $$.transformForArcLabel.bind($$)).style("font-size", function (d) {
46137
- _newArrowCheck(this, _this18);
46167
+ _newArrowCheck(this, _this19);
46138
46168
  return $$.isGaugeType(d.data) && $$.data.targets.length === 1 && !hasMultiArcGauge ? Math.round(state.radius / 5) + "px" : null;
46139
46169
  }.bind(this)).transition().duration(duration).style("opacity", function (d) {
46140
- _newArrowCheck(this, _this18);
46170
+ _newArrowCheck(this, _this19);
46141
46171
  return $$.isTargetToShow(d.data.id) && $$.isArcType(d.data) ? null : "0";
46142
46172
  }.bind(this));
46143
46173
  hasMultiArcGauge && text.attr("dy", "-.1em");
@@ -46163,14 +46193,14 @@ function getAttrTweenFn(fn) {
46163
46193
  * @private
46164
46194
  */
46165
46195
  getArcElementByIdOrIndex: function getArcElementByIdOrIndex(value) {
46166
- var _this19 = this,
46196
+ var _this20 = this,
46167
46197
  $$ = this,
46168
46198
  arcs = $$.$el.arcs,
46169
46199
  filterFn = isNumber(value) ? function (d) {
46170
- _newArrowCheck(this, _this19);
46200
+ _newArrowCheck(this, _this20);
46171
46201
  return d.index === value;
46172
46202
  }.bind(this) : function (d) {
46173
- _newArrowCheck(this, _this19);
46203
+ _newArrowCheck(this, _this20);
46174
46204
  return d.data.id === value;
46175
46205
  }.bind(this),
46176
46206
  _arcs;
@@ -53082,7 +53112,7 @@ var _defaults = {};
53082
53112
 
53083
53113
  /**
53084
53114
  * @namespace bb
53085
- * @version 3.9.2
53115
+ * @version 3.9.3
53086
53116
  */
53087
53117
  var bb = {
53088
53118
  /**
@@ -53092,7 +53122,7 @@ var bb = {
53092
53122
  * bb.version; // "1.0.0"
53093
53123
  * @memberof bb
53094
53124
  */
53095
- version: "3.9.2",
53125
+ version: "3.9.3",
53096
53126
  /**
53097
53127
  * Generate chart
53098
53128
  * - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when:
@@ -53376,7 +53406,10 @@ function _regeneratorRuntime() {
53376
53406
  if ("executing" === state) throw new Error("Generator is already running");
53377
53407
  if ("completed" === state) {
53378
53408
  if ("throw" === method) throw arg;
53379
- return doneResult();
53409
+ return {
53410
+ value: void 0,
53411
+ done: !0
53412
+ };
53380
53413
  }
53381
53414
  for (context.method = method, context.arg = arg;;) {
53382
53415
  var delegate = context.delegate;
@@ -53429,7 +53462,7 @@ function _regeneratorRuntime() {
53429
53462
  }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
53430
53463
  }
53431
53464
  function values(iterable) {
53432
- if (iterable) {
53465
+ if (iterable || "" === iterable) {
53433
53466
  var iteratorMethod = iterable[iteratorSymbol];
53434
53467
  if (iteratorMethod) return iteratorMethod.call(iterable);
53435
53468
  if ("function" == typeof iterable.next) return iterable;
@@ -53442,15 +53475,7 @@ function _regeneratorRuntime() {
53442
53475
  return next.next = next;
53443
53476
  }
53444
53477
  }
53445
- return {
53446
- next: doneResult
53447
- };
53448
- }
53449
- function doneResult() {
53450
- return {
53451
- value: undefined,
53452
- done: !0
53453
- };
53478
+ throw new TypeError(_typeof(iterable) + " is not iterable");
53454
53479
  }
53455
53480
  return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
53456
53481
  value: GeneratorFunctionPrototype,