billboard.js 3.9.3 → 3.9.4
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.
- package/dist/billboard.css +1 -1
- package/dist/billboard.js +71 -69
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +2 -2
- package/dist/billboard.pkgd.js +719 -687
- package/dist/billboard.pkgd.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-sparkline.js +14 -14
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-stanford.js +15 -15
- package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-tableview.js +14 -14
- package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.js +11 -11
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.js +649 -619
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +661 -631
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +662 -632
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +661 -631
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +658 -628
- package/dist/theme/dark.css +1 -1
- package/dist/theme/dark.min.css +1 -1
- package/dist/theme/datalab.css +1 -1
- package/dist/theme/datalab.min.css +1 -1
- package/dist/theme/graph.css +1 -1
- package/dist/theme/graph.min.css +1 -1
- package/dist/theme/insight.css +1 -1
- package/dist/theme/insight.min.css +1 -1
- package/dist-esm/billboard.js +14 -12
- package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-sparkline.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-stanford.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
- package/package.json +1 -1
- package/src/ChartInternal/internals/tooltip.ts +3 -3
package/dist/billboard.css
CHANGED
package/dist/billboard.js
CHANGED
|
@@ -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.
|
|
8
|
+
* @version 3.9.4
|
|
9
9
|
*/
|
|
10
10
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
11
11
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
@@ -317,14 +317,14 @@ var TYPE_BY_CATEGORY = {
|
|
|
317
317
|
Spline: [TYPE.SPLINE, TYPE.AREA_SPLINE, TYPE.AREA_SPLINE_RANGE]
|
|
318
318
|
};
|
|
319
319
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
320
|
-
function _typeof(
|
|
320
|
+
function _typeof(o) {
|
|
321
321
|
"@babel/helpers - typeof";
|
|
322
322
|
|
|
323
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
324
|
-
return typeof
|
|
325
|
-
} : function (
|
|
326
|
-
return
|
|
327
|
-
}, _typeof(
|
|
323
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
324
|
+
return typeof o;
|
|
325
|
+
} : function (o) {
|
|
326
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
327
|
+
}, _typeof(o);
|
|
328
328
|
}
|
|
329
329
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
330
330
|
|
|
@@ -367,8 +367,8 @@ var external_commonjs_d3_brush_commonjs2_d3_brush_amd_d3_brush_root_d3_ = __webp
|
|
|
367
367
|
|
|
368
368
|
|
|
369
369
|
var util_this = undefined;
|
|
370
|
-
function ownKeys(
|
|
371
|
-
function _objectSpread(
|
|
370
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
371
|
+
function _objectSpread(e) { for (var r = 1, t; r < arguments.length; r++) { t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
372
372
|
/**
|
|
373
373
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
374
374
|
* billboard.js project is licensed under the MIT license
|
|
@@ -891,7 +891,7 @@ function getCssRules(styleSheets) {
|
|
|
891
891
|
}
|
|
892
892
|
} catch (e) {
|
|
893
893
|
var _window$console;
|
|
894
|
-
(_window$console = win.console) == null
|
|
894
|
+
(_window$console = win.console) == null || _window$console.warn("Error while reading rules from " + sheet.href + ": " + e.toString());
|
|
895
895
|
}
|
|
896
896
|
}.bind(this));
|
|
897
897
|
return rules;
|
|
@@ -1290,8 +1290,8 @@ function logError(head, tail) {
|
|
|
1290
1290
|
}
|
|
1291
1291
|
;// CONCATENATED MODULE: ./src/config/classes.ts
|
|
1292
1292
|
|
|
1293
|
-
function classes_ownKeys(
|
|
1294
|
-
function classes_objectSpread(
|
|
1293
|
+
function classes_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1294
|
+
function classes_objectSpread(e) { for (var r = 1, t; r < arguments.length; r++) { t = null != arguments[r] ? arguments[r] : {}; r % 2 ? classes_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : classes_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1295
1295
|
/**
|
|
1296
1296
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
1297
1297
|
* billboard.js project is licensed under the MIT license
|
|
@@ -3589,8 +3589,8 @@ var tooltip_this = undefined;
|
|
|
3589
3589
|
;// CONCATENATED MODULE: ./src/config/Options/Options.ts
|
|
3590
3590
|
|
|
3591
3591
|
|
|
3592
|
-
function Options_ownKeys(
|
|
3593
|
-
function Options_objectSpread(
|
|
3592
|
+
function Options_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3593
|
+
function Options_objectSpread(e) { for (var r = 1, t; r < arguments.length; r++) { t = null != arguments[r] ? arguments[r] : {}; r % 2 ? Options_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Options_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3594
3594
|
/**
|
|
3595
3595
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
3596
3596
|
* billboard.js project is licensed under the MIT license
|
|
@@ -3855,7 +3855,7 @@ function generateWait() {
|
|
|
3855
3855
|
}
|
|
3856
3856
|
runUntil(function () {
|
|
3857
3857
|
_newArrowCheck(this, _this5);
|
|
3858
|
-
callback == null
|
|
3858
|
+
callback == null || callback();
|
|
3859
3859
|
}.bind(this), loop);
|
|
3860
3860
|
};
|
|
3861
3861
|
f.add = function (t) {
|
|
@@ -4067,7 +4067,7 @@ function json(json, keysParam) {
|
|
|
4067
4067
|
} else {
|
|
4068
4068
|
Object.keys(json).forEach(function (key) {
|
|
4069
4069
|
var tmp = json[key].concat();
|
|
4070
|
-
tmp.unshift == null
|
|
4070
|
+
tmp.unshift == null || tmp.unshift(key);
|
|
4071
4071
|
newRows.push(tmp);
|
|
4072
4072
|
});
|
|
4073
4073
|
data = columns(newRows);
|
|
@@ -4363,7 +4363,7 @@ function getDataKeyForJson(keysParam, config) {
|
|
|
4363
4363
|
}.bind(this));
|
|
4364
4364
|
|
|
4365
4365
|
// this needs to be sorted because its index and value.index is identical
|
|
4366
|
-
(_$$$data$xs$t$id = $$.data.xs[t.id]) == null
|
|
4366
|
+
(_$$$data$xs$t$id = $$.data.xs[t.id]) == null || _$$$data$xs$t$id.sort(function (v1, v2) {
|
|
4367
4367
|
_newArrowCheck(this, _this5);
|
|
4368
4368
|
return v1 - v2;
|
|
4369
4369
|
}.bind(this));
|
|
@@ -5459,7 +5459,7 @@ function callDone(fn, resizeAfter) {
|
|
|
5459
5459
|
var $$ = this,
|
|
5460
5460
|
api = $$.api;
|
|
5461
5461
|
resizeAfter && $$.api.flush(!0);
|
|
5462
|
-
fn == null
|
|
5462
|
+
fn == null || fn.call(api);
|
|
5463
5463
|
}
|
|
5464
5464
|
/* harmony default export */ var load = ({
|
|
5465
5465
|
load: function load(rawTargets, args) {
|
|
@@ -5796,8 +5796,8 @@ var external_commonjs_d3_drag_commonjs2_d3_drag_amd_d3_drag_root_d3_ = __webpack
|
|
|
5796
5796
|
_$$$$el2 = $$.$el,
|
|
5797
5797
|
eventRect = _$$$$el2.eventRect,
|
|
5798
5798
|
zoomResetBtn = _$$$$el2.zoomResetBtn;
|
|
5799
|
-
eventRect == null
|
|
5800
|
-
zoomResetBtn == null
|
|
5799
|
+
eventRect == null || eventRect.on(".zoom wheel.zoom .drag", null);
|
|
5800
|
+
zoomResetBtn == null || zoomResetBtn.on("click", null).style("display", "none");
|
|
5801
5801
|
},
|
|
5802
5802
|
/**
|
|
5803
5803
|
* Unbind all attached events
|
|
@@ -5819,7 +5819,7 @@ var external_commonjs_d3_drag_commonjs2_d3_drag_amd_d3_drag_root_d3_ = __webpack
|
|
|
5819
5819
|
_newArrowCheck(this, _this5);
|
|
5820
5820
|
return v == null ? void 0 : v.on("wheel click mouseover mousemove mouseout touchstart touchmove touchend touchstart.eventRect touchmove.eventRect touchend.eventRect .brush .drag .zoom wheel.zoom dblclick.zoom", null);
|
|
5821
5821
|
}.bind(this));
|
|
5822
|
-
$$.unbindZoomEvent == null
|
|
5822
|
+
$$.unbindZoomEvent == null || $$.unbindZoomEvent();
|
|
5823
5823
|
}
|
|
5824
5824
|
});
|
|
5825
5825
|
;// CONCATENATED MODULE: ./src/ChartInternal/internals/class.ts
|
|
@@ -6509,7 +6509,7 @@ var schemeCategory10 = ["#1f77b4", "#ff7f0e", "#2ca02c", "#d62728", "#9467bd", "
|
|
|
6509
6509
|
org.xDomain = x.domain();
|
|
6510
6510
|
zoomEnabled && $$.zoom.updateScaleExtent();
|
|
6511
6511
|
subX.domain(x.domain());
|
|
6512
|
-
(_$$$brush = $$.brush) == null
|
|
6512
|
+
(_$$$brush = $$.brush) == null || _$$$brush.scale(subX);
|
|
6513
6513
|
}
|
|
6514
6514
|
if (withUpdateXDomain) {
|
|
6515
6515
|
var domainValue = domain || !$$.brush || brushEmpty($$) ? org.xDomain : getBrushSelection($$).map(subX.invert);
|
|
@@ -6739,7 +6739,7 @@ function getLegendColor(id) {
|
|
|
6739
6739
|
}
|
|
6740
6740
|
|
|
6741
6741
|
// toggle legend state
|
|
6742
|
-
(_$el$legend = $el.legend) == null
|
|
6742
|
+
(_$el$legend = $el.legend) == null || _$el$legend.selectAll("." + $LEGEND.legendItem).classed($LEGEND.legendItemHidden, function (id) {
|
|
6743
6743
|
var hide = !$$.isTargetToShow(id);
|
|
6744
6744
|
if (hide) {
|
|
6745
6745
|
this.style.opacity = null;
|
|
@@ -7503,7 +7503,7 @@ var external_commonjs_d3_transition_commonjs2_d3_transition_amd_d3_transition_ro
|
|
|
7503
7503
|
// event rects will redrawn when flow called
|
|
7504
7504
|
if (config.interaction_enabled && !flow && wth.EventRect) {
|
|
7505
7505
|
$$.redrawEventRect();
|
|
7506
|
-
$$.bindZoomEvent == null
|
|
7506
|
+
$$.bindZoomEvent == null || $$.bindZoomEvent();
|
|
7507
7507
|
}
|
|
7508
7508
|
} else {
|
|
7509
7509
|
// arc
|
|
@@ -7528,7 +7528,7 @@ var external_commonjs_d3_transition_commonjs2_d3_transition_amd_d3_transition_ro
|
|
|
7528
7528
|
$$.hasDataLabel() && !$$.hasArcType(null, ["radar"]) && $$.updateText();
|
|
7529
7529
|
|
|
7530
7530
|
// title
|
|
7531
|
-
$$.redrawTitle == null
|
|
7531
|
+
$$.redrawTitle == null || $$.redrawTitle();
|
|
7532
7532
|
initializing && $$.updateTypesElements();
|
|
7533
7533
|
$$.generateRedrawList(targetsToShow, flow, duration, wth.Subchart);
|
|
7534
7534
|
$$.updateTooltipOnRedraw();
|
|
@@ -7890,7 +7890,7 @@ function getScale(type, min, max) {
|
|
|
7890
7890
|
scale.y = (0,external_commonjs_d3_scale_commonjs2_d3_scale_amd_d3_scale_root_d3_.scaleLinear)().rangeRound([padding.top, current.height - padding.bottom]);
|
|
7891
7891
|
} else {
|
|
7892
7892
|
// update for arc
|
|
7893
|
-
$$.updateArc == null
|
|
7893
|
+
$$.updateArc == null || $$.updateArc();
|
|
7894
7894
|
}
|
|
7895
7895
|
},
|
|
7896
7896
|
/**
|
|
@@ -8570,7 +8570,7 @@ var external_commonjs_d3_shape_commonjs2_d3_shape_amd_d3_shape_root_d3_ = __webp
|
|
|
8570
8570
|
$el = $$.$el;
|
|
8571
8571
|
if (hasAxis && !withoutAxis && $$.axis.x && config.axis_rotated) {
|
|
8572
8572
|
var _$$$axis$subX;
|
|
8573
|
-
(_$$$axis$subX = $$.axis.subX) == null
|
|
8573
|
+
(_$$$axis$subX = $$.axis.subX) == null || _$$$axis$subX.create($el.axis.subX);
|
|
8574
8574
|
}
|
|
8575
8575
|
|
|
8576
8576
|
// pass 'withoutAxis' param to not animate at the init rendering
|
|
@@ -8700,7 +8700,7 @@ var external_commonjs_d3_shape_commonjs2_d3_shape_amd_d3_shape_root_d3_ = __webp
|
|
|
8700
8700
|
bottom: 0,
|
|
8701
8701
|
left: 0
|
|
8702
8702
|
};
|
|
8703
|
-
$$.updateSizeForLegend == null
|
|
8703
|
+
$$.updateSizeForLegend == null || $$.updateSizeForLegend(currLegend);
|
|
8704
8704
|
state.width = state.current.width - state.margin.left - state.margin.right;
|
|
8705
8705
|
state.height = state.current.height - state.margin.top - state.margin.bottom;
|
|
8706
8706
|
if (state.width < 0) {
|
|
@@ -8727,7 +8727,7 @@ var external_commonjs_d3_shape_commonjs2_d3_shape_amd_d3_shape_root_d3_ = __webp
|
|
|
8727
8727
|
if (hasGauge && !config.gauge_fullCircle) {
|
|
8728
8728
|
state.arcHeight += state.height - $$.getPaddingBottomForGauge();
|
|
8729
8729
|
}
|
|
8730
|
-
$$.updateRadius == null
|
|
8730
|
+
$$.updateRadius == null || $$.updateRadius();
|
|
8731
8731
|
}
|
|
8732
8732
|
if (state.isLegendRight && isNonAxis) {
|
|
8733
8733
|
state.margin3.left = state.arcWidth / 2 + state.radiusExpanded * 1.1;
|
|
@@ -9687,7 +9687,7 @@ function title_getTextPos(pos, width) {
|
|
|
9687
9687
|
eventRect = _$$$$el.eventRect,
|
|
9688
9688
|
tooltip = _$$$$el.tooltip,
|
|
9689
9689
|
bindto = config.tooltip_contents.bindto,
|
|
9690
|
-
datum = tooltip.datum();
|
|
9690
|
+
datum = tooltip == null || tooltip.datum == null ? void 0 : tooltip.datum();
|
|
9691
9691
|
if (!bindto && datum) {
|
|
9692
9692
|
var _config$tooltip_posit,
|
|
9693
9693
|
_config$tooltip_posit2,
|
|
@@ -9802,11 +9802,12 @@ function title_getTextPos(pos, width) {
|
|
|
9802
9802
|
dataToShow = selectedData.filter(function (d) {
|
|
9803
9803
|
_newArrowCheck(this, _this6);
|
|
9804
9804
|
return d && isValue($$.getBaseValue(d));
|
|
9805
|
-
}.bind(this))
|
|
9805
|
+
}.bind(this)),
|
|
9806
|
+
_tooltip;
|
|
9806
9807
|
if (!tooltip || dataToShow.length === 0 || !config.tooltip_show) {
|
|
9807
9808
|
return;
|
|
9808
9809
|
}
|
|
9809
|
-
var datum = tooltip.datum();
|
|
9810
|
+
var datum = (_tooltip = tooltip) == null || _tooltip.datum == null ? void 0 : _tooltip.datum();
|
|
9810
9811
|
var dataStr = JSON.stringify(selectedData);
|
|
9811
9812
|
if (!datum || datum.current !== dataStr) {
|
|
9812
9813
|
var _selectedData$concat$ = selectedData.concat().sort()[0],
|
|
@@ -9874,7 +9875,8 @@ function title_getTextPos(pos, width) {
|
|
|
9874
9875
|
config = $$.config,
|
|
9875
9876
|
tooltip = $$.$el.tooltip;
|
|
9876
9877
|
if (tooltip && tooltip.style("display") !== "none" && (!config.tooltip_doNotHide || force)) {
|
|
9877
|
-
var
|
|
9878
|
+
var _tooltip$datum$curren,
|
|
9879
|
+
selectedData = JSON.parse((_tooltip$datum$curren = tooltip == null || tooltip.datum == null ? void 0 : tooltip.datum().current) != null ? _tooltip$datum$curren : {});
|
|
9878
9880
|
callFn(config.tooltip_onhide, api, selectedData);
|
|
9879
9881
|
|
|
9880
9882
|
// hide tooltip
|
|
@@ -10932,7 +10934,7 @@ var ChartInternal = /*#__PURE__*/function () {
|
|
|
10932
10934
|
// Point types
|
|
10933
10935
|
var hasPointType = $$.hasType("bubble") || $$.hasType("scatter");
|
|
10934
10936
|
if (hasPointType) {
|
|
10935
|
-
$$.updateTargetForCircle == null
|
|
10937
|
+
$$.updateTargetForCircle == null || $$.updateTargetForCircle();
|
|
10936
10938
|
}
|
|
10937
10939
|
|
|
10938
10940
|
// Fade-in each chart
|
|
@@ -11163,16 +11165,16 @@ function loadConfig(config) {
|
|
|
11163
11165
|
if (state.resizing) {
|
|
11164
11166
|
var _$$$brush;
|
|
11165
11167
|
// arguments[1] is given when is called from resize
|
|
11166
|
-
(_$$$brush = $$.brush) == null
|
|
11168
|
+
(_$$$brush = $$.brush) == null || _$$$brush.updateResize();
|
|
11167
11169
|
} else {
|
|
11168
11170
|
var _$$$axis;
|
|
11169
11171
|
// re-update config info
|
|
11170
|
-
(_$$$axis = $$.axis) == null
|
|
11172
|
+
(_$$$axis = $$.axis) == null || _$$$axis.setOrient();
|
|
11171
11173
|
}
|
|
11172
11174
|
|
|
11173
11175
|
// hide possible reset zoom button
|
|
11174
11176
|
// https://github.com/naver/billboard.js/issues/2201
|
|
11175
|
-
zoomResetBtn == null
|
|
11177
|
+
zoomResetBtn == null || zoomResetBtn.style("display", "none");
|
|
11176
11178
|
$$.scale.zoom = null;
|
|
11177
11179
|
soft ? $$.redraw({
|
|
11178
11180
|
withTransform: !0,
|
|
@@ -12544,9 +12546,9 @@ var tooltip_tooltip = {
|
|
|
12544
12546
|
// reset last touch point index
|
|
12545
12547
|
inputType === "touch" && $$.callOverOutForTouch();
|
|
12546
12548
|
$$.hideTooltip(!0);
|
|
12547
|
-
$$.hideGridFocus == null
|
|
12548
|
-
$$.unexpandCircles == null
|
|
12549
|
-
$$.expandBarTypeShapes == null
|
|
12549
|
+
$$.hideGridFocus == null || $$.hideGridFocus();
|
|
12550
|
+
$$.unexpandCircles == null || $$.unexpandCircles();
|
|
12551
|
+
$$.expandBarTypeShapes == null || $$.expandBarTypeShapes(!1);
|
|
12550
12552
|
}
|
|
12551
12553
|
};
|
|
12552
12554
|
/* harmony default export */ var api_tooltip = ({
|
|
@@ -14563,7 +14565,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
14563
14565
|
} else if (this.x) {
|
|
14564
14566
|
var _this$subX;
|
|
14565
14567
|
this.x.tickValues(values);
|
|
14566
|
-
(_this$subX = this.subX) == null
|
|
14568
|
+
(_this$subX = this.subX) == null || _this$subX.tickValues(values);
|
|
14567
14569
|
}
|
|
14568
14570
|
return values;
|
|
14569
14571
|
};
|
|
@@ -15006,7 +15008,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
15006
15008
|
} else if (this.x) {
|
|
15007
15009
|
var _this$subX2;
|
|
15008
15010
|
this.x.tickValues([]);
|
|
15009
|
-
(_this$subX2 = this.subX) == null
|
|
15011
|
+
(_this$subX2 = this.subX) == null || _this$subX2.tickValues([]);
|
|
15010
15012
|
}
|
|
15011
15013
|
if (config.zoom_rescale && !flow) {
|
|
15012
15014
|
xDomainForZoom = scale.x.orgDomain();
|
|
@@ -15045,8 +15047,8 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
15045
15047
|
// Update sub domain
|
|
15046
15048
|
if (wth.Y) {
|
|
15047
15049
|
var _scale$subY, _scale$subY2;
|
|
15048
|
-
(_scale$subY = scale.subY) == null
|
|
15049
|
-
(_scale$subY2 = scale.subY2) == null
|
|
15050
|
+
(_scale$subY = scale.subY) == null || _scale$subY.domain($$.getYDomain(targetsToShow, "y"));
|
|
15051
|
+
(_scale$subY2 = scale.subY2) == null || _scale$subY2.domain($$.getYDomain(targetsToShow, "y2"));
|
|
15050
15052
|
}
|
|
15051
15053
|
}
|
|
15052
15054
|
|
|
@@ -15167,7 +15169,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
15167
15169
|
// update data's index value to be alinged with the x Axis
|
|
15168
15170
|
$$.updateDataIndexByX(xAxisTickValues);
|
|
15169
15171
|
$$.updateXs(xAxisTickValues);
|
|
15170
|
-
$$.updatePointClass == null
|
|
15172
|
+
$$.updatePointClass == null || $$.updatePointClass(!0);
|
|
15171
15173
|
state.eventReceiver.data = xAxisTickValues;
|
|
15172
15174
|
}
|
|
15173
15175
|
$$.updateEventRectData();
|
|
@@ -15412,7 +15414,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
15412
15414
|
selectedData = $$.getAllValuesOnIndex(index);
|
|
15413
15415
|
if (isTooltipGrouped) {
|
|
15414
15416
|
$$.showTooltip(selectedData, context);
|
|
15415
|
-
$$.showGridFocus == null
|
|
15417
|
+
$$.showGridFocus == null || $$.showGridFocus(selectedData);
|
|
15416
15418
|
if (!isSelectionEnabled || isSelectionGrouped) {
|
|
15417
15419
|
return;
|
|
15418
15420
|
}
|
|
@@ -15424,7 +15426,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
15424
15426
|
return $$.isWithinShape(this, d);
|
|
15425
15427
|
});
|
|
15426
15428
|
if (shapeAtIndex.empty() && !isTooltipGrouped) {
|
|
15427
|
-
$$.hideGridFocus == null
|
|
15429
|
+
$$.hideGridFocus == null || $$.hideGridFocus();
|
|
15428
15430
|
$$.hideTooltip();
|
|
15429
15431
|
isSelectionGrouped || $$.setExpand(index);
|
|
15430
15432
|
}
|
|
@@ -15437,8 +15439,8 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
15437
15439
|
}
|
|
15438
15440
|
if (!isTooltipGrouped) {
|
|
15439
15441
|
$$.showTooltip(d, context);
|
|
15440
|
-
$$.showGridFocus == null
|
|
15441
|
-
$$.unexpandCircles == null
|
|
15442
|
+
$$.showGridFocus == null || $$.showGridFocus(d);
|
|
15443
|
+
$$.unexpandCircles == null || $$.unexpandCircles();
|
|
15442
15444
|
selected.each(function (d) {
|
|
15443
15445
|
_newArrowCheck(this, _this7);
|
|
15444
15446
|
return $$.setExpand(index, d.id);
|
|
@@ -15612,7 +15614,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
15612
15614
|
var index = d.index;
|
|
15613
15615
|
main.selectAll("." + $SHAPE.shape + "-" + index).each(function (d2) {
|
|
15614
15616
|
if (config.data_selection_grouped || $$.isWithinShape(this, d2)) {
|
|
15615
|
-
$$.toggleShape == null
|
|
15617
|
+
$$.toggleShape == null || $$.toggleShape(this, d2, index);
|
|
15616
15618
|
config.data_onclick.bind($$.api)(d2, this);
|
|
15617
15619
|
}
|
|
15618
15620
|
});
|
|
@@ -15665,7 +15667,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
15665
15667
|
if ($$.isBarType(closest.id) || $$.dist(closest, mouse) < config.point_sensitivity) {
|
|
15666
15668
|
$$.$el.main.selectAll("." + $SHAPE.shapes + $$.getTargetSelectorSuffix(closest.id)).selectAll("." + $SHAPE.shape + "-" + closest.index).each(function () {
|
|
15667
15669
|
if (config.data_selection_grouped || $$.isWithinShape(this, closest)) {
|
|
15668
|
-
$$.toggleShape == null
|
|
15670
|
+
$$.toggleShape == null || $$.toggleShape(this, closest, closest.index);
|
|
15669
15671
|
config.data_onclick.bind($$.api)(closest, this);
|
|
15670
15672
|
}
|
|
15671
15673
|
});
|
|
@@ -16361,7 +16363,7 @@ function smoothLines(el, type) {
|
|
|
16361
16363
|
}.bind(this));
|
|
16362
16364
|
});
|
|
16363
16365
|
smoothLines(focusEl, "grid");
|
|
16364
|
-
$$.showCircleFocus == null
|
|
16366
|
+
$$.showCircleFocus == null || $$.showCircleFocus(data);
|
|
16365
16367
|
},
|
|
16366
16368
|
hideGridFocus: function hideGridFocus() {
|
|
16367
16369
|
var $$ = this,
|
|
@@ -16371,7 +16373,7 @@ function smoothLines(el, type) {
|
|
|
16371
16373
|
main = $$.$el.main;
|
|
16372
16374
|
if (inputType === "mouse" || !resizing) {
|
|
16373
16375
|
main.selectAll("line." + $FOCUS.xgridFocus + ", line." + $FOCUS.ygridFocus).style("visibility", "hidden");
|
|
16374
|
-
$$.hideCircleFocus == null
|
|
16376
|
+
$$.hideCircleFocus == null || $$.hideCircleFocus();
|
|
16375
16377
|
}
|
|
16376
16378
|
},
|
|
16377
16379
|
updateGridFocus: function updateGridFocus() {
|
|
@@ -18475,8 +18477,8 @@ function smoothLines(el, type) {
|
|
|
18475
18477
|
});
|
|
18476
18478
|
;// CONCATENATED MODULE: ./src/config/Options/axis/axis.ts
|
|
18477
18479
|
|
|
18478
|
-
function axis_ownKeys(
|
|
18479
|
-
function axis_objectSpread(
|
|
18480
|
+
function axis_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18481
|
+
function axis_objectSpread(e) { for (var r = 1, t; r < arguments.length; r++) { t = null != arguments[r] ? arguments[r] : {}; r % 2 ? axis_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : axis_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18480
18482
|
/**
|
|
18481
18483
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
18482
18484
|
* billboard.js project is licensed under the MIT license
|
|
@@ -18620,8 +18622,8 @@ var external_commonjs_d3_interpolate_commonjs2_d3_interpolate_amd_d3_interpolate
|
|
|
18620
18622
|
;// CONCATENATED MODULE: ./src/ChartInternal/shape/arc.ts
|
|
18621
18623
|
|
|
18622
18624
|
|
|
18623
|
-
function arc_ownKeys(
|
|
18624
|
-
function arc_objectSpread(
|
|
18625
|
+
function arc_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18626
|
+
function arc_objectSpread(e) { for (var r = 1, t; r < arguments.length; r++) { t = null != arguments[r] ? arguments[r] : {}; r % 2 ? arc_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : arc_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18625
18627
|
/**
|
|
18626
18628
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
18627
18629
|
* billboard.js project is licensed under the MIT license
|
|
@@ -19451,7 +19453,7 @@ function getAttrTweenFn(fn) {
|
|
|
19451
19453
|
var arcData;
|
|
19452
19454
|
if (updated) {
|
|
19453
19455
|
arcData = $$.convertToArcData(updated);
|
|
19454
|
-
$$.toggleShape == null
|
|
19456
|
+
$$.toggleShape == null || $$.toggleShape(this, arcData, i);
|
|
19455
19457
|
config.data_onclick.bind($$.api)(arcData, this);
|
|
19456
19458
|
}
|
|
19457
19459
|
});
|
|
@@ -20010,8 +20012,8 @@ function getAttrTweenFn(fn) {
|
|
|
20010
20012
|
;// CONCATENATED MODULE: ./src/ChartInternal/shape/candlestick.ts
|
|
20011
20013
|
|
|
20012
20014
|
|
|
20013
|
-
function candlestick_ownKeys(
|
|
20014
|
-
function candlestick_objectSpread(
|
|
20015
|
+
function candlestick_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20016
|
+
function candlestick_objectSpread(e) { for (var r = 1, t; r < arguments.length; r++) { t = null != arguments[r] ? arguments[r] : {}; r % 2 ? candlestick_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : candlestick_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20015
20017
|
/**
|
|
20016
20018
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
20017
20019
|
* billboard.js project is licensed under the MIT license
|
|
@@ -23601,8 +23603,8 @@ function setSelection(isSelection, ids, indices, resetOther) {
|
|
|
23601
23603
|
$$.updateTargetsForSubchart($$.data.targets);
|
|
23602
23604
|
$target = (_subchart$main = subchart.main) == null ? void 0 : _subchart$main.selectAll("." + $COMMON.target);
|
|
23603
23605
|
}
|
|
23604
|
-
(_$target = $target) == null
|
|
23605
|
-
(_subchart$main2 = subchart.main) == null
|
|
23606
|
+
(_$target = $target) == null || _$target.style("opacity", null);
|
|
23607
|
+
(_subchart$main2 = subchart.main) == null || _subchart$main2.style("display", null);
|
|
23606
23608
|
this.resize();
|
|
23607
23609
|
}
|
|
23608
23610
|
},
|
|
@@ -23876,7 +23878,7 @@ extend(zoom, {
|
|
|
23876
23878
|
if ($$.scale.zoom) {
|
|
23877
23879
|
config.subchart_show ? $$.brush.getSelection().call($$.brush.move, null) : $$.zoom.updateTransformScale(external_commonjs_d3_zoom_commonjs2_d3_zoom_amd_d3_zoom_root_d3_.zoomIdentity);
|
|
23878
23880
|
$$.updateZoom(!0);
|
|
23879
|
-
zoomResetBtn == null
|
|
23881
|
+
zoomResetBtn == null || zoomResetBtn.style("display", "none");
|
|
23880
23882
|
|
|
23881
23883
|
// reset transform
|
|
23882
23884
|
if ((0,external_commonjs_d3_zoom_commonjs2_d3_zoom_amd_d3_zoom_root_d3_.zoomTransform)(eventRect.node()) !== external_commonjs_d3_zoom_commonjs2_d3_zoom_amd_d3_zoom_root_d3_.zoomIdentity) {
|
|
@@ -24009,8 +24011,8 @@ extend(zoom, {
|
|
|
24009
24011
|
;// CONCATENATED MODULE: ./src/ChartInternal/internals/selection.ts
|
|
24010
24012
|
|
|
24011
24013
|
|
|
24012
|
-
function selection_ownKeys(
|
|
24013
|
-
function selection_objectSpread(
|
|
24014
|
+
function selection_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24015
|
+
function selection_objectSpread(e) { for (var r = 1, t; r < arguments.length; r++) { t = null != arguments[r] ? arguments[r] : {}; r % 2 ? selection_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : selection_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24014
24016
|
/**
|
|
24015
24017
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
24016
24018
|
* billboard.js project is licensed under the MIT license
|
|
@@ -24254,7 +24256,7 @@ function selection_objectSpread(target) { for (var i = 1, source; i < arguments.
|
|
|
24254
24256
|
return isNaN(v);
|
|
24255
24257
|
}.bind(this)).length === 0) {
|
|
24256
24258
|
var _subchart$main;
|
|
24257
|
-
(_subchart$main = subchart.main) == null
|
|
24259
|
+
(_subchart$main = subchart.main) == null || _subchart$main.select("." + classes.brush).call(this);
|
|
24258
24260
|
}
|
|
24259
24261
|
return this;
|
|
24260
24262
|
};
|
|
@@ -24597,7 +24599,7 @@ function selection_objectSpread(target) { for (var i = 1, source; i < arguments.
|
|
|
24597
24599
|
var isRotated = config.axis_rotated;
|
|
24598
24600
|
|
|
24599
24601
|
// in case of resize, update range of orgXScale
|
|
24600
|
-
(_org$xScale = org.xScale) == null
|
|
24602
|
+
(_org$xScale = org.xScale) == null || _org$xScale.range(scale.x.range());
|
|
24601
24603
|
|
|
24602
24604
|
// rescale from the original scale
|
|
24603
24605
|
var newScale = transform[isRotated ? "rescaleY" : "rescaleX"](org.xScale || scale.x),
|
|
@@ -25225,7 +25227,7 @@ var _defaults = {};
|
|
|
25225
25227
|
|
|
25226
25228
|
/**
|
|
25227
25229
|
* @namespace bb
|
|
25228
|
-
* @version 3.9.
|
|
25230
|
+
* @version 3.9.4
|
|
25229
25231
|
*/
|
|
25230
25232
|
var bb = {
|
|
25231
25233
|
/**
|
|
@@ -25235,7 +25237,7 @@ var bb = {
|
|
|
25235
25237
|
* bb.version; // "1.0.0"
|
|
25236
25238
|
* @memberof bb
|
|
25237
25239
|
*/
|
|
25238
|
-
version: "3.9.
|
|
25240
|
+
version: "3.9.4",
|
|
25239
25241
|
/**
|
|
25240
25242
|
* Generate chart
|
|
25241
25243
|
* - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when:
|
package/dist/billboard.min.css
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.9.
|
|
8
|
+
* @version 3.9.4
|
|
9
9
|
*/.bb svg{-webkit-tap-highlight-color:rgba(0,0,0,0);font:10px sans-serif}.bb line,.bb path{fill:none;stroke:#000}.bb .bb-button,.bb text{-webkit-user-select:none;-moz-user-select:none;user-select:none}.bb-legend-item-tile,.bb-xgrid-focus,.bb-ygrid,.bb-ygrid-focus{shape-rendering:crispEdges}.bb-chart-arc .bb-gauge-value,.bb-chart-arcs .bb-needle{fill:#000}.bb-chart-arc path{stroke:#fff}.bb-chart-arc rect{stroke:#fff;stroke-width:1}.bb-chart-arc text{fill:#fff;font-size:13px}.bb-axis{shape-rendering:crispEdges}.bb-grid{pointer-events:none}.bb-grid line{stroke:#aaa}.bb-grid text{fill:#aaa}.bb-xgrid,.bb-ygrid{stroke-dasharray:3 3}.bb-text.bb-empty{fill:grey;font-size:2em}.bb-line{stroke-width:1px}.bb-circle._expanded_{stroke-width:1px;stroke:#fff}.bb-selected-circle{fill:#fff;stroke-width:2px}.bb-bar{stroke-width:0}.bb-bar._expanded_{fill-opacity:.75}.bb-candlestick{stroke-width:1px}.bb-candlestick._expanded_{fill-opacity:.75}.bb-circles.bb-focused,.bb-target.bb-focused{opacity:1}.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step,.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step{stroke-width:2px}.bb-circles.bb-defocused,.bb-target.bb-defocused{opacity:.3!important}.bb-circles.bb-defocused .text-overlapping,.bb-target.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4}.bb-brush .extent,.bb-region,.bb-zoom-brush{fill-opacity:.1}.bb-legend-item{font-size:12px;user-select:none}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{fill:#fff;stroke:#d3d3d3;stroke-width:1;opacity:.75}.bb-title{font:14px sans-serif}.bb-chart-treemaps rect{stroke:#fff;stroke-width:1px}.bb-tooltip-container{user-select:none;z-index:10}.bb-tooltip{background-color:#fff;border-collapse:collapse;border-spacing:0;box-shadow:7px 7px 12px -9px #777;empty-cells:show;opacity:.9;white-space:nowrap}.bb-tooltip tr{border:1px solid #ccc}.bb-tooltip th{background-color:#aaa;color:#fff;font-size:14px;padding:2px 5px;text-align:left}.bb-tooltip td{background-color:#fff;border-left:1px dotted #999;font-size:13px;padding:3px 6px}.bb-tooltip td>span,.bb-tooltip td>svg{display:inline-block;height:10px;margin-right:6px;width:10px}.bb-tooltip.value{text-align:right}.bb-area{stroke-width:0;opacity:.2}.bb-chart-arcs-title{dominant-baseline:middle;font-size:1.3em}text.bb-chart-arcs-gauge-title{dominant-baseline:middle;font-size:2.7em}.bb-chart-arcs .bb-chart-arcs-background{fill:#e0e0e0;stroke:#fff}.bb-chart-arcs .bb-chart-arcs-gauge-unit{fill:#000;font-size:16px}.bb-chart-arcs .bb-chart-arcs-gauge-max,.bb-chart-arcs .bb-chart-arcs-gauge-min{fill:#777}.bb-chart-arcs .bb-levels circle{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-arcs .bb-levels text{fill:#848282}.bb-chart-radars .bb-levels polygon{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-radars .bb-levels text{fill:#848282}.bb-chart-radars .bb-axis line{stroke:#848282;stroke-width:.5px}.bb-chart-radars .bb-axis text{cursor:default;font-size:1.15em}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:1px}.bb-button{position:absolute;right:10px;top:10px}.bb-button .bb-zoom-reset{background-color:#fff;border:1px solid #ccc;border-radius:5px;cursor:pointer;font-size:11px;padding:5px}
|