billboard.js 3.11.0 → 3.11.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.
- package/dist/billboard.css +1 -1
- package/dist/billboard.js +230 -134
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +2 -2
- package/dist/billboard.pkgd.js +226 -128
- package/dist/billboard.pkgd.min.js +4 -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 +2 -2
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-stanford.js +2 -2
- package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-tableview.js +2 -2
- package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +2 -2
- 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/theme/modern.css +1 -1
- package/dist/theme/modern.min.css +1 -1
- package/dist-esm/billboard.js +189 -122
- 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 +16 -14
- package/src/ChartInternal/Axis/AxisRenderer.ts +2 -1
- package/src/ChartInternal/ChartInternal.ts +2 -2
- package/src/ChartInternal/data/data.ts +1 -1
- package/src/ChartInternal/data/load.ts +7 -1
- package/src/ChartInternal/interactions/zoom.ts +9 -3
- package/src/ChartInternal/internals/redraw.ts +2 -1
- package/src/ChartInternal/internals/title.ts +2 -2
- package/src/ChartInternal/internals/tooltip.ts +1 -1
- package/src/ChartInternal/shape/point.common.ts +134 -0
- package/src/ChartInternal/shape/point.ts +3 -95
- package/src/ChartInternal/shape/shape.ts +18 -6
- package/src/config/Store/State.ts +1 -1
- package/src/config/resolver/axis.ts +4 -4
- package/src/config/resolver/shape.ts +22 -10
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.11.
|
|
8
|
+
* @version 3.11.2
|
|
9
9
|
*/
|
|
10
10
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
11
11
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
var a = typeof exports === 'object' ? factory(require("d3-axis"), require("d3-brush"), require("d3-drag"), require("d3-dsv"), require("d3-ease"), require("d3-hierarchy"), require("d3-interpolate"), require("d3-scale"), require("d3-selection"), require("d3-shape"), require("d3-time-format"), require("d3-transition"), require("d3-zoom")) : factory(root["d3"], root["d3"], root["d3"], root["d3"], root["d3"], root["d3"], root["d3"], root["d3"], root["d3"], root["d3"], root["d3"], root["d3"], root["d3"]);
|
|
17
17
|
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
18
18
|
}
|
|
19
|
-
})(this, function(__WEBPACK_EXTERNAL_MODULE__10__,
|
|
19
|
+
})(this, function(__WEBPACK_EXTERNAL_MODULE__10__, __WEBPACK_EXTERNAL_MODULE__4__, __WEBPACK_EXTERNAL_MODULE__6__, __WEBPACK_EXTERNAL_MODULE__5__, __WEBPACK_EXTERNAL_MODULE__11__, __WEBPACK_EXTERNAL_MODULE__13__, __WEBPACK_EXTERNAL_MODULE__12__, __WEBPACK_EXTERNAL_MODULE__7__, __WEBPACK_EXTERNAL_MODULE__3__, __WEBPACK_EXTERNAL_MODULE__9__, __WEBPACK_EXTERNAL_MODULE__2__, __WEBPACK_EXTERNAL_MODULE__8__, __WEBPACK_EXTERNAL_MODULE__14__) {
|
|
20
20
|
return /******/ (function() { // webpackBootstrap
|
|
21
21
|
/******/ "use strict";
|
|
22
22
|
/******/ var __webpack_modules__ = ([
|
|
@@ -213,9 +213,9 @@ function _newArrowCheck(innerThis, boundThis) {
|
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
// EXTERNAL MODULE: external {"commonjs":"d3-time-format","commonjs2":"d3-time-format","amd":"d3-time-format","root":"d3"}
|
|
216
|
-
var external_commonjs_d3_time_format_commonjs2_d3_time_format_amd_d3_time_format_root_d3_ = __webpack_require__(
|
|
216
|
+
var external_commonjs_d3_time_format_commonjs2_d3_time_format_amd_d3_time_format_root_d3_ = __webpack_require__(2);
|
|
217
217
|
// EXTERNAL MODULE: external {"commonjs":"d3-selection","commonjs2":"d3-selection","amd":"d3-selection","root":"d3"}
|
|
218
|
-
var external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_ = __webpack_require__(
|
|
218
|
+
var external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_ = __webpack_require__(3);
|
|
219
219
|
;// CONCATENATED MODULE: ./src/module/browser.ts
|
|
220
220
|
|
|
221
221
|
/**
|
|
@@ -378,7 +378,7 @@ function _defineProperty(obj, key, value) {
|
|
|
378
378
|
return obj;
|
|
379
379
|
}
|
|
380
380
|
// EXTERNAL MODULE: external {"commonjs":"d3-brush","commonjs2":"d3-brush","amd":"d3-brush","root":"d3"}
|
|
381
|
-
var external_commonjs_d3_brush_commonjs2_d3_brush_amd_d3_brush_root_d3_ = __webpack_require__(
|
|
381
|
+
var external_commonjs_d3_brush_commonjs2_d3_brush_amd_d3_brush_root_d3_ = __webpack_require__(4);
|
|
382
382
|
;// CONCATENATED MODULE: ./src/module/util.ts
|
|
383
383
|
|
|
384
384
|
|
|
@@ -5687,7 +5687,8 @@ function callDone(fn, resizeAfter) {
|
|
|
5687
5687
|
const $$ = this,
|
|
5688
5688
|
state = $$.state,
|
|
5689
5689
|
$el = $$.$el,
|
|
5690
|
-
$T = $$.$T
|
|
5690
|
+
$T = $$.$T,
|
|
5691
|
+
hasLegendDefsPoint = !!($$.hasLegendDefsPoint != null && $$.hasLegendDefsPoint());
|
|
5691
5692
|
let done = customDoneCb,
|
|
5692
5693
|
targetIds = rawTargetIds;
|
|
5693
5694
|
// reset internally cached data
|
|
@@ -5715,14 +5716,17 @@ function callDone(fn, resizeAfter) {
|
|
|
5715
5716
|
}.bind(this)));
|
|
5716
5717
|
$T(targets).style("opacity", "0").remove().call(endall, done);
|
|
5717
5718
|
targetIds.forEach(function (id) {
|
|
5718
|
-
var _this4 = this
|
|
5719
|
+
var _this4 = this,
|
|
5720
|
+
_$el$defs;
|
|
5719
5721
|
_newArrowCheck(this, _this3);
|
|
5722
|
+
const suffixId = $$.getTargetSelectorSuffix(id);
|
|
5723
|
+
|
|
5720
5724
|
// Reset fadein for future load
|
|
5721
5725
|
state.withoutFadeIn[id] = !1;
|
|
5722
5726
|
|
|
5723
5727
|
// Remove target's elements
|
|
5724
5728
|
if ($el.legend) {
|
|
5725
|
-
$el.legend.selectAll("." + $LEGEND.legendItem +
|
|
5729
|
+
$el.legend.selectAll("." + $LEGEND.legendItem + suffixId).remove();
|
|
5726
5730
|
}
|
|
5727
5731
|
|
|
5728
5732
|
// Remove target
|
|
@@ -5730,6 +5734,9 @@ function callDone(fn, resizeAfter) {
|
|
|
5730
5734
|
_newArrowCheck(this, _this4);
|
|
5731
5735
|
return t.id !== id;
|
|
5732
5736
|
}.bind(this));
|
|
5737
|
+
|
|
5738
|
+
// Remove custom point def element
|
|
5739
|
+
hasLegendDefsPoint && ((_$el$defs = $el.defs) == null ? void 0 : _$el$defs.select("#" + $$.getDefsPointId(suffixId)).remove());
|
|
5733
5740
|
}.bind(this));
|
|
5734
5741
|
|
|
5735
5742
|
// since treemap uses different data types, it needs to be transformed
|
|
@@ -5740,7 +5747,7 @@ function callDone(fn, resizeAfter) {
|
|
|
5740
5747
|
}
|
|
5741
5748
|
});
|
|
5742
5749
|
// EXTERNAL MODULE: external {"commonjs":"d3-drag","commonjs2":"d3-drag","amd":"d3-drag","root":"d3"}
|
|
5743
|
-
var external_commonjs_d3_drag_commonjs2_d3_drag_amd_d3_drag_root_d3_ = __webpack_require__(
|
|
5750
|
+
var external_commonjs_d3_drag_commonjs2_d3_drag_amd_d3_drag_root_d3_ = __webpack_require__(6);
|
|
5744
5751
|
;// CONCATENATED MODULE: ./src/ChartInternal/interactions/interaction.ts
|
|
5745
5752
|
|
|
5746
5753
|
/**
|
|
@@ -6113,7 +6120,7 @@ var external_commonjs_d3_drag_commonjs2_d3_drag_amd_d3_drag_root_d3_ = __webpack
|
|
|
6113
6120
|
}
|
|
6114
6121
|
});
|
|
6115
6122
|
// EXTERNAL MODULE: external {"commonjs":"d3-scale","commonjs2":"d3-scale","amd":"d3-scale","root":"d3"}
|
|
6116
|
-
var external_commonjs_d3_scale_commonjs2_d3_scale_amd_d3_scale_root_d3_ = __webpack_require__(
|
|
6123
|
+
var external_commonjs_d3_scale_commonjs2_d3_scale_amd_d3_scale_root_d3_ = __webpack_require__(7);
|
|
6117
6124
|
;// CONCATENATED MODULE: ./src/ChartInternal/internals/color.ts
|
|
6118
6125
|
|
|
6119
6126
|
var color_this = undefined;
|
|
@@ -7805,10 +7812,10 @@ var external_commonjs_d3_transition_commonjs2_d3_transition_amd_d3_transition_ro
|
|
|
7805
7812
|
// treemap
|
|
7806
7813
|
treemap && $$.updateTreemap(durationForExit);
|
|
7807
7814
|
}
|
|
7808
|
-
|
|
7809
|
-
// @TODO: Axis & Radar type
|
|
7810
7815
|
if (!state.resizing && !treemap && ($$.hasPointType() || state.hasRadar)) {
|
|
7811
7816
|
$$.updateCircle();
|
|
7817
|
+
} else if ($$.hasLegendDefsPoint != null && $$.hasLegendDefsPoint()) {
|
|
7818
|
+
$$.data.targets.forEach($$.point("create", this));
|
|
7812
7819
|
}
|
|
7813
7820
|
|
|
7814
7821
|
// text
|
|
@@ -8597,29 +8604,46 @@ function getGroupedDataPointsFn(d) {
|
|
|
8597
8604
|
return points ? points(d, i)[0][1] : $$.getYScaleById(id)($$.getBaseValue(d));
|
|
8598
8605
|
},
|
|
8599
8606
|
getBarW: function getBarW(type, axis, targetsNum) {
|
|
8600
|
-
var
|
|
8607
|
+
var _config$data_groups,
|
|
8608
|
+
_$$$getZoomTransform,
|
|
8609
|
+
_config$axis_x_min,
|
|
8610
|
+
_config$axis_x_max,
|
|
8611
|
+
_this11 = this;
|
|
8601
8612
|
const $$ = this,
|
|
8602
8613
|
config = $$.config,
|
|
8603
8614
|
org = $$.org,
|
|
8604
8615
|
scale = $$.scale,
|
|
8605
8616
|
maxDataCount = $$.getMaxDataCount(),
|
|
8606
|
-
isGrouped = type === "bar" && config.data_groups.length,
|
|
8617
|
+
isGrouped = type === "bar" && ((_config$data_groups = config.data_groups) == null ? void 0 : _config$data_groups.length),
|
|
8607
8618
|
configName = type + "_width",
|
|
8608
|
-
|
|
8619
|
+
_ref2 = (_$$$getZoomTransform = $$.getZoomTransform == null ? void 0 : $$.getZoomTransform()) != null ? _$$$getZoomTransform : {
|
|
8620
|
+
k: 1
|
|
8621
|
+
},
|
|
8622
|
+
k = _ref2.k,
|
|
8623
|
+
xMinMax = [(_config$axis_x_min = config.axis_x_min) != null ? _config$axis_x_min : org.xDomain[0], (_config$axis_x_max = config.axis_x_max) != null ? _config$axis_x_max : org.xDomain[1]].map($$.axis.isTimeSeries() ? parseDate.bind($$) : Number);
|
|
8624
|
+
let tickInterval = axis.tickInterval(maxDataCount);
|
|
8625
|
+
if (scale.zoom && !$$.axis.isCategorized() && k > 1) {
|
|
8626
|
+
const isSameMinMax = xMinMax.every(function (v, i) {
|
|
8627
|
+
_newArrowCheck(this, _this11);
|
|
8628
|
+
return v === org.xDomain[i];
|
|
8629
|
+
}.bind(this));
|
|
8630
|
+
tickInterval = org.xDomain.map(function (v, i) {
|
|
8609
8631
|
_newArrowCheck(this, _this11);
|
|
8610
|
-
|
|
8632
|
+
const value = isSameMinMax ? v : v - Math.abs(xMinMax[i]);
|
|
8633
|
+
return scale.zoom(value);
|
|
8611
8634
|
}.bind(this)).reduce(function (a, c) {
|
|
8612
8635
|
_newArrowCheck(this, _this11);
|
|
8613
8636
|
return Math.abs(a) + c;
|
|
8614
|
-
}.bind(this)) / maxDataCount
|
|
8615
|
-
|
|
8616
|
-
|
|
8617
|
-
|
|
8618
|
-
|
|
8619
|
-
|
|
8620
|
-
|
|
8621
|
-
|
|
8622
|
-
|
|
8637
|
+
}.bind(this)) / maxDataCount;
|
|
8638
|
+
}
|
|
8639
|
+
const getWidth = function (id) {
|
|
8640
|
+
_newArrowCheck(this, _this11);
|
|
8641
|
+
const width = id ? config[configName][id] : config[configName],
|
|
8642
|
+
ratio = id ? width.ratio : config[configName + "_ratio"],
|
|
8643
|
+
max = id ? width.max : config[configName + "_max"],
|
|
8644
|
+
w = isNumber(width) ? width : targetsNum ? tickInterval * ratio / targetsNum : 0;
|
|
8645
|
+
return max && w > max ? max : w;
|
|
8646
|
+
}.bind(this);
|
|
8623
8647
|
let result = getWidth();
|
|
8624
8648
|
if (!isGrouped && isObjectType(config[configName])) {
|
|
8625
8649
|
result = {
|
|
@@ -9720,9 +9744,9 @@ function getTextXPos(pos, width) {
|
|
|
9720
9744
|
*/
|
|
9721
9745
|
getTitlePadding: function getTitlePadding() {
|
|
9722
9746
|
const $$ = this,
|
|
9723
|
-
|
|
9747
|
+
title = $$.$el.title,
|
|
9724
9748
|
config = $$.config;
|
|
9725
|
-
return (config.title_padding.top || 0) + $$.getTextRect(
|
|
9749
|
+
return (config.title_padding.top || 0) + (title ? $$.getTextRect(title, $TEXT.title).height : 0) + (config.title_padding.bottom || 0);
|
|
9726
9750
|
}
|
|
9727
9751
|
});
|
|
9728
9752
|
;// CONCATENATED MODULE: ./src/ChartInternal/internals/tooltip.ts
|
|
@@ -10076,8 +10100,9 @@ function getTextXPos(pos, width) {
|
|
|
10076
10100
|
y += 15;
|
|
10077
10101
|
} else if (hasArcType) {
|
|
10078
10102
|
if (!(inputType === "touch")) {
|
|
10103
|
+
var _$$$getTitlePadding;
|
|
10079
10104
|
x += (width - (isLegendRight ? $$.getLegendWidth() : 0)) / 2;
|
|
10080
|
-
y += hasGauge ? height : height / 2 + tHeight;
|
|
10105
|
+
y += (hasGauge ? height : height / 2 + tHeight) + ((_$$$getTitlePadding = $$.getTitlePadding == null ? void 0 : $$.getTitlePadding()) != null ? _$$$getTitlePadding : 0);
|
|
10081
10106
|
}
|
|
10082
10107
|
} else if (hasTreemap) {
|
|
10083
10108
|
y += tHeight;
|
|
@@ -10899,7 +10924,7 @@ let ChartInternal = /*#__PURE__*/function () {
|
|
|
10899
10924
|
config.axis_y2_show = !1;
|
|
10900
10925
|
config.subchart_show = !1;
|
|
10901
10926
|
}
|
|
10902
|
-
if ($$.hasPointType()) {
|
|
10927
|
+
if ($$.hasPointType() || $$.hasLegendDefsPoint != null && $$.hasLegendDefsPoint()) {
|
|
10903
10928
|
$$.point = $$.generatePoint();
|
|
10904
10929
|
}
|
|
10905
10930
|
if (state.hasAxis) {
|
|
@@ -11006,7 +11031,7 @@ let ChartInternal = /*#__PURE__*/function () {
|
|
|
11006
11031
|
|
|
11007
11032
|
// Define defs
|
|
11008
11033
|
const hasColorPatterns = isFunction(config.color_tiles) && $$.patterns;
|
|
11009
|
-
if (hasAxis || hasColorPatterns || hasPolar || hasTreemap || config.data_labels_backgroundColors) {
|
|
11034
|
+
if (hasAxis || hasColorPatterns || hasPolar || hasTreemap || config.data_labels_backgroundColors || $$.hasLegendDefsPoint != null && $$.hasLegendDefsPoint()) {
|
|
11010
11035
|
$el.defs = $el.svg.append("defs");
|
|
11011
11036
|
if (hasAxis) {
|
|
11012
11037
|
["id", "idXAxis", "idYAxis", "idGrid"].forEach(function (v) {
|
|
@@ -14530,14 +14555,16 @@ let AxisRenderer = /*#__PURE__*/function () {
|
|
|
14530
14555
|
if (this.params.isCategory) {
|
|
14531
14556
|
interval = tickOffset * 2;
|
|
14532
14557
|
} else {
|
|
14533
|
-
|
|
14558
|
+
var _this$params$owner$sc;
|
|
14559
|
+
const scale = (_this$params$owner$sc = this.params.owner.scale.zoom) != null ? _this$params$owner$sc : this.helper.scale,
|
|
14560
|
+
length = this.g.select("path.domain").node().getTotalLength() - outerTickSize * 2;
|
|
14534
14561
|
interval = length / (size || this.g.selectAll("line").size());
|
|
14535
14562
|
|
|
14536
14563
|
// get the interval by its values
|
|
14537
14564
|
const intervalByValue = tickValues ? tickValues.map(function (v, i, arr) {
|
|
14538
14565
|
_newArrowCheck(this, _this5);
|
|
14539
14566
|
const next = i + 1;
|
|
14540
|
-
return next < arr.length ?
|
|
14567
|
+
return next < arr.length ? scale(arr[next]) - scale(v) : null;
|
|
14541
14568
|
}.bind(this)).filter(Boolean) : [];
|
|
14542
14569
|
interval = Math.min.apply(Math, intervalByValue.concat([interval]));
|
|
14543
14570
|
}
|
|
@@ -19014,8 +19041,20 @@ function axis_objectSpread(e) { for (var r = 1, t; r < arguments.length; r++) {
|
|
|
19014
19041
|
|
|
19015
19042
|
|
|
19016
19043
|
const api = [api_axis, api_category, flow, api_grid, group, api_regions, x];
|
|
19017
|
-
const internal =
|
|
19018
|
-
|
|
19044
|
+
const internal = {
|
|
19045
|
+
axis: Axis,
|
|
19046
|
+
clip: clip,
|
|
19047
|
+
eventrect: eventrect,
|
|
19048
|
+
flow: interactions_flow,
|
|
19049
|
+
grid: internals_grid,
|
|
19050
|
+
region: region,
|
|
19051
|
+
sizeAxis: size_axis
|
|
19052
|
+
};
|
|
19053
|
+
const options = {
|
|
19054
|
+
optDataAxis: data_axis,
|
|
19055
|
+
optAxis: axis_axis,
|
|
19056
|
+
optGrid: common_grid
|
|
19057
|
+
};
|
|
19019
19058
|
// EXTERNAL MODULE: external {"commonjs":"d3-interpolate","commonjs2":"d3-interpolate","amd":"d3-interpolate","root":"d3"}
|
|
19020
19059
|
var external_commonjs_d3_interpolate_commonjs2_d3_interpolate_amd_d3_interpolate_root_d3_ = __webpack_require__(12);
|
|
19021
19060
|
;// CONCATENATED MODULE: ./src/ChartInternal/shape/arc.ts
|
|
@@ -21188,6 +21227,130 @@ function candlestick_objectSpread(e) { for (var r = 1, t; r < arguments.length;
|
|
|
21188
21227
|
return linePoint === !0 || isArray(linePoint) && linePoint.indexOf(d.id) !== -1;
|
|
21189
21228
|
}
|
|
21190
21229
|
});
|
|
21230
|
+
;// CONCATENATED MODULE: ./src/ChartInternal/shape/point.common.ts
|
|
21231
|
+
|
|
21232
|
+
/**
|
|
21233
|
+
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
21234
|
+
* billboard.js project is licensed under the MIT license
|
|
21235
|
+
*/
|
|
21236
|
+
|
|
21237
|
+
|
|
21238
|
+
|
|
21239
|
+
|
|
21240
|
+
/**
|
|
21241
|
+
* Check if point draw methods are valid
|
|
21242
|
+
* @param {string} point point type
|
|
21243
|
+
* @returns {boolean}
|
|
21244
|
+
* @private
|
|
21245
|
+
*/
|
|
21246
|
+
function hasValidPointDrawMethods(point) {
|
|
21247
|
+
return isObjectType(point) && isFunction(point.create) && isFunction(point.update);
|
|
21248
|
+
}
|
|
21249
|
+
|
|
21250
|
+
/**
|
|
21251
|
+
* Insert point info defs element
|
|
21252
|
+
* @param {string} point Point element
|
|
21253
|
+
* @param {string} id Point id
|
|
21254
|
+
* @private
|
|
21255
|
+
*/
|
|
21256
|
+
function insertPointInfoDefs(point, id) {
|
|
21257
|
+
var _this = this,
|
|
21258
|
+
_node$childNodes;
|
|
21259
|
+
const $$ = this,
|
|
21260
|
+
copyAttr = function (from, target) {
|
|
21261
|
+
_newArrowCheck(this, _this);
|
|
21262
|
+
const attribs = from.attributes;
|
|
21263
|
+
for (let i = 0, name; name = attribs[i]; i++) {
|
|
21264
|
+
name = name.name;
|
|
21265
|
+
target.setAttribute(name, from.getAttribute(name));
|
|
21266
|
+
}
|
|
21267
|
+
}.bind(this),
|
|
21268
|
+
doc = new DOMParser().parseFromString(point, "image/svg+xml"),
|
|
21269
|
+
node = doc.documentElement,
|
|
21270
|
+
clone = browser_doc.createElementNS(external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.namespaces.svg, node.nodeName.toLowerCase());
|
|
21271
|
+
clone.id = id;
|
|
21272
|
+
clone.style.fill = "inherit";
|
|
21273
|
+
clone.style.stroke = "inherit";
|
|
21274
|
+
copyAttr(node, clone);
|
|
21275
|
+
if ((_node$childNodes = node.childNodes) != null && _node$childNodes.length) {
|
|
21276
|
+
const parent = (0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(clone);
|
|
21277
|
+
if ("innerHTML" in clone) {
|
|
21278
|
+
parent.html(node.innerHTML);
|
|
21279
|
+
} else {
|
|
21280
|
+
toArray(node.childNodes).forEach(function (v) {
|
|
21281
|
+
_newArrowCheck(this, _this);
|
|
21282
|
+
copyAttr(v, parent.append(v.tagName).node());
|
|
21283
|
+
}.bind(this));
|
|
21284
|
+
}
|
|
21285
|
+
}
|
|
21286
|
+
$$.$el.defs.node().appendChild(clone);
|
|
21287
|
+
}
|
|
21288
|
+
/* harmony default export */ var point_common = ({
|
|
21289
|
+
/**
|
|
21290
|
+
* Check if point type option is valid
|
|
21291
|
+
* @param {string} type point type
|
|
21292
|
+
* @returns {boolean}
|
|
21293
|
+
* @private
|
|
21294
|
+
*/
|
|
21295
|
+
hasValidPointType: function hasValidPointType(type) {
|
|
21296
|
+
return /^(circle|rect(angle)?|polygon|ellipse|use)$/i.test(type || this.config.point_type);
|
|
21297
|
+
},
|
|
21298
|
+
/**
|
|
21299
|
+
* Check if pattern point is set to be used on legend
|
|
21300
|
+
* @returns {boolean}
|
|
21301
|
+
* @private
|
|
21302
|
+
*/
|
|
21303
|
+
hasLegendDefsPoint: function hasLegendDefsPoint() {
|
|
21304
|
+
var _config$point_pattern;
|
|
21305
|
+
const config = this.config;
|
|
21306
|
+
return config.legend_show && ((_config$point_pattern = config.point_pattern) == null ? void 0 : _config$point_pattern.length) && config.legend_usePoint;
|
|
21307
|
+
},
|
|
21308
|
+
getDefsPointId: function getDefsPointId(id) {
|
|
21309
|
+
const datetimeId = this.state.datetimeId;
|
|
21310
|
+
return datetimeId + "-point" + id;
|
|
21311
|
+
},
|
|
21312
|
+
/**
|
|
21313
|
+
* Get generate point function
|
|
21314
|
+
* @returns {Function}
|
|
21315
|
+
* @private
|
|
21316
|
+
*/
|
|
21317
|
+
generatePoint: function generatePoint() {
|
|
21318
|
+
const $$ = this,
|
|
21319
|
+
$el = $$.$el,
|
|
21320
|
+
config = $$.config,
|
|
21321
|
+
ids = [],
|
|
21322
|
+
pattern = notEmpty(config.point_pattern) ? config.point_pattern : [config.point_type];
|
|
21323
|
+
return function (method, context) {
|
|
21324
|
+
for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
21325
|
+
args[_key - 2] = arguments[_key];
|
|
21326
|
+
}
|
|
21327
|
+
return function (d) {
|
|
21328
|
+
var _d$data, _point$method;
|
|
21329
|
+
const id = $$.getTargetSelectorSuffix(d.id || ((_d$data = d.data) == null ? void 0 : _d$data.id) || d),
|
|
21330
|
+
element = (0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(this);
|
|
21331
|
+
ids.indexOf(id) < 0 && ids.push(id);
|
|
21332
|
+
let point = pattern[ids.indexOf(id) % pattern.length];
|
|
21333
|
+
if ($$.hasValidPointType(point)) {
|
|
21334
|
+
point = $$[point];
|
|
21335
|
+
} else if (!hasValidPointDrawMethods(point || config.point_type)) {
|
|
21336
|
+
const pointId = $$.getDefsPointId(id),
|
|
21337
|
+
defsPoint = $el.defs.select("#" + pointId);
|
|
21338
|
+
if (defsPoint.size() < 1) {
|
|
21339
|
+
insertPointInfoDefs.bind($$)(point, pointId);
|
|
21340
|
+
}
|
|
21341
|
+
if (method === "create") {
|
|
21342
|
+
var _$$$custom;
|
|
21343
|
+
return (_$$$custom = $$.custom) == null ? void 0 : _$$$custom.create.bind(context).apply(void 0, [element, pointId].concat(args));
|
|
21344
|
+
} else if (method === "update") {
|
|
21345
|
+
var _$$$custom2;
|
|
21346
|
+
return (_$$$custom2 = $$.custom) == null ? void 0 : _$$$custom2.update.bind(context).apply(void 0, [element].concat(args));
|
|
21347
|
+
}
|
|
21348
|
+
}
|
|
21349
|
+
return (_point$method = point[method]) == null ? void 0 : _point$method.bind(context).apply(void 0, [element].concat(args));
|
|
21350
|
+
};
|
|
21351
|
+
};
|
|
21352
|
+
}
|
|
21353
|
+
});
|
|
21191
21354
|
;// CONCATENATED MODULE: ./src/ChartInternal/shape/point.ts
|
|
21192
21355
|
|
|
21193
21356
|
var point_this = undefined;
|
|
@@ -21198,19 +21361,11 @@ var point_this = undefined;
|
|
|
21198
21361
|
|
|
21199
21362
|
|
|
21200
21363
|
|
|
21201
|
-
|
|
21202
21364
|
const getTransitionName = function () {
|
|
21203
21365
|
_newArrowCheck(this, point_this);
|
|
21204
21366
|
return getRandom();
|
|
21205
21367
|
}.bind(undefined);
|
|
21206
21368
|
/* harmony default export */ var point = ({
|
|
21207
|
-
hasValidPointType: function hasValidPointType(type) {
|
|
21208
|
-
return /^(circle|rect(angle)?|polygon|ellipse|use)$/i.test(type || this.config.point_type);
|
|
21209
|
-
},
|
|
21210
|
-
hasValidPointDrawMethods: function hasValidPointDrawMethods(type) {
|
|
21211
|
-
const pointType = type || this.config.point_type;
|
|
21212
|
-
return isObjectType(pointType) && isFunction(pointType.create) && isFunction(pointType.update);
|
|
21213
|
-
},
|
|
21214
21369
|
initialOpacityForCircle: function initialOpacityForCircle(d) {
|
|
21215
21370
|
const config = this.config,
|
|
21216
21371
|
withoutFadeIn = this.state.withoutFadeIn;
|
|
@@ -21524,41 +21679,6 @@ const getTransitionName = function () {
|
|
|
21524
21679
|
}
|
|
21525
21680
|
return sensitivity;
|
|
21526
21681
|
},
|
|
21527
|
-
insertPointInfoDefs: function insertPointInfoDefs(point, id) {
|
|
21528
|
-
var _this7 = this,
|
|
21529
|
-
_node$childNodes;
|
|
21530
|
-
const $$ = this,
|
|
21531
|
-
copyAttr = function (from, target) {
|
|
21532
|
-
_newArrowCheck(this, _this7);
|
|
21533
|
-
const attribs = from.attributes;
|
|
21534
|
-
for (let i = 0, name; name = attribs[i]; i++) {
|
|
21535
|
-
name = name.name;
|
|
21536
|
-
target.setAttribute(name, from.getAttribute(name));
|
|
21537
|
-
}
|
|
21538
|
-
}.bind(this),
|
|
21539
|
-
doc = new DOMParser().parseFromString(point, "image/svg+xml"),
|
|
21540
|
-
node = doc.documentElement,
|
|
21541
|
-
clone = browser_doc.createElementNS(external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.namespaces.svg, node.nodeName.toLowerCase());
|
|
21542
|
-
clone.id = id;
|
|
21543
|
-
clone.style.fill = "inherit";
|
|
21544
|
-
clone.style.stroke = "inherit";
|
|
21545
|
-
copyAttr(node, clone);
|
|
21546
|
-
if ((_node$childNodes = node.childNodes) != null && _node$childNodes.length) {
|
|
21547
|
-
const parent = (0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(clone);
|
|
21548
|
-
if ("innerHTML" in clone) {
|
|
21549
|
-
parent.html(node.innerHTML);
|
|
21550
|
-
} else {
|
|
21551
|
-
toArray(node.childNodes).forEach(function (v) {
|
|
21552
|
-
_newArrowCheck(this, _this7);
|
|
21553
|
-
copyAttr(v, parent.append(v.tagName).node());
|
|
21554
|
-
}.bind(this));
|
|
21555
|
-
}
|
|
21556
|
-
}
|
|
21557
|
-
$$.$el.defs.node().appendChild(clone);
|
|
21558
|
-
},
|
|
21559
|
-
pointFromDefs: function pointFromDefs(id) {
|
|
21560
|
-
return this.$el.defs.select("#" + id);
|
|
21561
|
-
},
|
|
21562
21682
|
updatePointClass: function updatePointClass(d) {
|
|
21563
21683
|
const $$ = this,
|
|
21564
21684
|
circle = $$.$el.circle;
|
|
@@ -21575,7 +21695,7 @@ const getTransitionName = function () {
|
|
|
21575
21695
|
return pointClass;
|
|
21576
21696
|
},
|
|
21577
21697
|
generateGetLinePoints: function generateGetLinePoints(lineIndices, isSub) {
|
|
21578
|
-
var
|
|
21698
|
+
var _this7 = this;
|
|
21579
21699
|
// partial duplication of generateGetBarPoints
|
|
21580
21700
|
const $$ = this,
|
|
21581
21701
|
config = $$.config,
|
|
@@ -21584,7 +21704,7 @@ const getTransitionName = function () {
|
|
|
21584
21704
|
lineOffset = $$.getShapeOffset($$.isLineType, lineIndices, isSub),
|
|
21585
21705
|
yScale = $$.getYScaleById.bind($$);
|
|
21586
21706
|
return function (d, i) {
|
|
21587
|
-
_newArrowCheck(this,
|
|
21707
|
+
_newArrowCheck(this, _this7);
|
|
21588
21708
|
const y0 = yScale.call($$, d.id, isSub)($$.getShapeYMin(d.id)),
|
|
21589
21709
|
offset = lineOffset(d, i) || y0,
|
|
21590
21710
|
posX = x(d); // offset is for stacked area chart
|
|
@@ -21602,56 +21722,22 @@ const getTransitionName = function () {
|
|
|
21602
21722
|
point, point];
|
|
21603
21723
|
}.bind(this);
|
|
21604
21724
|
},
|
|
21605
|
-
generatePoint: function generatePoint() {
|
|
21606
|
-
const $$ = this,
|
|
21607
|
-
config = $$.config,
|
|
21608
|
-
datetimeId = $$.state.datetimeId,
|
|
21609
|
-
ids = [],
|
|
21610
|
-
pattern = notEmpty(config.point_pattern) ? config.point_pattern : [config.point_type];
|
|
21611
|
-
return function (method, context) {
|
|
21612
|
-
for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
21613
|
-
args[_key - 2] = arguments[_key];
|
|
21614
|
-
}
|
|
21615
|
-
return function (d) {
|
|
21616
|
-
var _d$data;
|
|
21617
|
-
const id = $$.getTargetSelectorSuffix(d.id || ((_d$data = d.data) == null ? void 0 : _d$data.id) || d),
|
|
21618
|
-
element = (0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(this);
|
|
21619
|
-
ids.indexOf(id) < 0 && ids.push(id);
|
|
21620
|
-
let point = pattern[ids.indexOf(id) % pattern.length];
|
|
21621
|
-
if ($$.hasValidPointType(point)) {
|
|
21622
|
-
point = $$[point];
|
|
21623
|
-
} else if (!$$.hasValidPointDrawMethods(point)) {
|
|
21624
|
-
const pointId = datetimeId + "-point" + id,
|
|
21625
|
-
pointFromDefs = $$.pointFromDefs(pointId);
|
|
21626
|
-
if (pointFromDefs.size() < 1) {
|
|
21627
|
-
$$.insertPointInfoDefs(point, pointId);
|
|
21628
|
-
}
|
|
21629
|
-
if (method === "create") {
|
|
21630
|
-
return $$.custom.create.bind(context).apply(void 0, [element, pointId].concat(args));
|
|
21631
|
-
} else if (method === "update") {
|
|
21632
|
-
return $$.custom.update.bind(context).apply(void 0, [element].concat(args));
|
|
21633
|
-
}
|
|
21634
|
-
}
|
|
21635
|
-
return point[method].bind(context).apply(void 0, [element].concat(args));
|
|
21636
|
-
};
|
|
21637
|
-
};
|
|
21638
|
-
},
|
|
21639
21725
|
custom: {
|
|
21640
21726
|
create: function create(element, id, fillStyleFn) {
|
|
21641
21727
|
return element.append("use").attr("xlink:href", "#" + id).attr("class", this.updatePointClass.bind(this)).style("fill", fillStyleFn).node();
|
|
21642
21728
|
},
|
|
21643
21729
|
update: function update(element, xPosFn, yPosFn, fillStyleFn, withTransition, flow, selectedCircles) {
|
|
21644
|
-
var
|
|
21730
|
+
var _this8 = this;
|
|
21645
21731
|
const $$ = this,
|
|
21646
21732
|
_element$node$getBBox = element.node().getBBox(),
|
|
21647
21733
|
width = _element$node$getBBox.width,
|
|
21648
21734
|
height = _element$node$getBBox.height,
|
|
21649
21735
|
xPosFn2 = function (d) {
|
|
21650
|
-
_newArrowCheck(this,
|
|
21736
|
+
_newArrowCheck(this, _this8);
|
|
21651
21737
|
return isValue(d.value) ? xPosFn(d) - width / 2 : 0;
|
|
21652
21738
|
}.bind(this),
|
|
21653
21739
|
yPosFn2 = function (d) {
|
|
21654
|
-
_newArrowCheck(this,
|
|
21740
|
+
_newArrowCheck(this, _this8);
|
|
21655
21741
|
return isValue(d.value) ? yPosFn(d) - height / 2 : 0;
|
|
21656
21742
|
}.bind(this);
|
|
21657
21743
|
let mainCircles = element;
|
|
@@ -21689,23 +21775,23 @@ const getTransitionName = function () {
|
|
|
21689
21775
|
// 'rectangle' data point
|
|
21690
21776
|
rectangle: {
|
|
21691
21777
|
create: function create(element, sizeFn, fillStyleFn) {
|
|
21692
|
-
var
|
|
21778
|
+
var _this9 = this;
|
|
21693
21779
|
const rectSizeFn = function (d) {
|
|
21694
|
-
_newArrowCheck(this,
|
|
21780
|
+
_newArrowCheck(this, _this9);
|
|
21695
21781
|
return sizeFn(d) * 2;
|
|
21696
21782
|
}.bind(this);
|
|
21697
21783
|
return element.append("rect").attr("class", this.updatePointClass.bind(this)).attr("width", rectSizeFn).attr("height", rectSizeFn).style("fill", fillStyleFn).node();
|
|
21698
21784
|
},
|
|
21699
21785
|
update: function update(element, xPosFn, yPosFn, fillStyleFn, withTransition, flow, selectedCircles) {
|
|
21700
|
-
var
|
|
21786
|
+
var _this10 = this;
|
|
21701
21787
|
const $$ = this,
|
|
21702
21788
|
r = $$.config.point_r,
|
|
21703
21789
|
rectXPosFn = function (d) {
|
|
21704
|
-
_newArrowCheck(this,
|
|
21790
|
+
_newArrowCheck(this, _this10);
|
|
21705
21791
|
return xPosFn(d) - r;
|
|
21706
21792
|
}.bind(this),
|
|
21707
21793
|
rectYPosFn = function (d) {
|
|
21708
|
-
_newArrowCheck(this,
|
|
21794
|
+
_newArrowCheck(this, _this10);
|
|
21709
21795
|
return yPosFn(d) - r;
|
|
21710
21796
|
}.bind(this);
|
|
21711
21797
|
let mainCircles = element;
|
|
@@ -23835,6 +23921,7 @@ var shape_this = undefined;
|
|
|
23835
23921
|
|
|
23836
23922
|
|
|
23837
23923
|
|
|
23924
|
+
|
|
23838
23925
|
// Options
|
|
23839
23926
|
|
|
23840
23927
|
|
|
@@ -23862,9 +23949,9 @@ var shape_this = undefined;
|
|
|
23862
23949
|
* @private
|
|
23863
23950
|
*/
|
|
23864
23951
|
function extendAxis(module, option) {
|
|
23865
|
-
extend(ChartInternal.prototype, internal.concat(module));
|
|
23952
|
+
extend(ChartInternal.prototype, Object.values(internal).concat(module));
|
|
23866
23953
|
extend(Chart.prototype, api);
|
|
23867
|
-
Options.setOptions(options.concat(option || []));
|
|
23954
|
+
Options.setOptions(Object.values(options).concat(option || []));
|
|
23868
23955
|
}
|
|
23869
23956
|
|
|
23870
23957
|
/**
|
|
@@ -23874,7 +23961,7 @@ function extendAxis(module, option) {
|
|
|
23874
23961
|
* @private
|
|
23875
23962
|
*/
|
|
23876
23963
|
function extendLine(module, option) {
|
|
23877
|
-
extendAxis([point, line].concat(module || []));
|
|
23964
|
+
extendAxis([point_common, point, line].concat(module || []));
|
|
23878
23965
|
Options.setOptions([common_point, shape_line].concat(option || []));
|
|
23879
23966
|
}
|
|
23880
23967
|
|
|
@@ -23885,8 +23972,8 @@ function extendLine(module, option) {
|
|
|
23885
23972
|
* @private
|
|
23886
23973
|
*/
|
|
23887
23974
|
function extendArc(module, option) {
|
|
23888
|
-
extend(ChartInternal.prototype, [arc].concat(module || []));
|
|
23889
|
-
Options.setOptions(option);
|
|
23975
|
+
extend(ChartInternal.prototype, [arc, point_common].concat(module || []));
|
|
23976
|
+
Options.setOptions([common_point].concat(option || []));
|
|
23890
23977
|
}
|
|
23891
23978
|
|
|
23892
23979
|
// Area types
|
|
@@ -23989,7 +24076,9 @@ let _area = function area() {
|
|
|
23989
24076
|
resolver_shape_radar = function () {
|
|
23990
24077
|
var _this14 = this;
|
|
23991
24078
|
_newArrowCheck(this, shape_this);
|
|
23992
|
-
return extendArc([point, radar], [common_point, shape_radar
|
|
24079
|
+
return extendArc([internal.eventrect, point, radar], [common_point, shape_radar, {
|
|
24080
|
+
axis_x_categories: options.optAxis.axis_x_categories
|
|
24081
|
+
}]), (resolver_shape_radar = function () {
|
|
23993
24082
|
_newArrowCheck(this, _this14);
|
|
23994
24083
|
return TYPE.RADAR;
|
|
23995
24084
|
}.bind(this))();
|
|
@@ -23997,7 +24086,7 @@ let _area = function area() {
|
|
|
23997
24086
|
resolver_shape_bar = function () {
|
|
23998
24087
|
var _this15 = this;
|
|
23999
24088
|
_newArrowCheck(this, shape_this);
|
|
24000
|
-
return extendAxis([bar], shape_bar), (resolver_shape_bar = function () {
|
|
24089
|
+
return extendAxis([bar, point_common], [shape_bar, common_point]), (resolver_shape_bar = function () {
|
|
24001
24090
|
_newArrowCheck(this, _this15);
|
|
24002
24091
|
return TYPE.BAR;
|
|
24003
24092
|
}.bind(this))();
|
|
@@ -24005,7 +24094,7 @@ let _area = function area() {
|
|
|
24005
24094
|
resolver_shape_bubble = function () {
|
|
24006
24095
|
var _this16 = this;
|
|
24007
24096
|
_newArrowCheck(this, shape_this);
|
|
24008
|
-
return extendAxis([point, bubble], [shape_bubble, common_point]), (resolver_shape_bubble = function () {
|
|
24097
|
+
return extendAxis([point_common, point, bubble], [shape_bubble, common_point]), (resolver_shape_bubble = function () {
|
|
24009
24098
|
_newArrowCheck(this, _this16);
|
|
24010
24099
|
return TYPE.BUBBLE;
|
|
24011
24100
|
}.bind(this))();
|
|
@@ -24013,7 +24102,7 @@ let _area = function area() {
|
|
|
24013
24102
|
resolver_shape_candlestick = function () {
|
|
24014
24103
|
var _this17 = this;
|
|
24015
24104
|
_newArrowCheck(this, shape_this);
|
|
24016
|
-
return extendAxis([candlestick], [shape_candlestick]), (resolver_shape_candlestick = function () {
|
|
24105
|
+
return extendAxis([candlestick, point_common], [shape_candlestick, common_point]), (resolver_shape_candlestick = function () {
|
|
24017
24106
|
_newArrowCheck(this, _this17);
|
|
24018
24107
|
return TYPE.CANDLESTICK;
|
|
24019
24108
|
}.bind(this))();
|
|
@@ -24021,7 +24110,7 @@ let _area = function area() {
|
|
|
24021
24110
|
shape_scatter = function () {
|
|
24022
24111
|
var _this18 = this;
|
|
24023
24112
|
_newArrowCheck(this, shape_this);
|
|
24024
|
-
return extendAxis([point], [common_point, scatter]), (shape_scatter = function () {
|
|
24113
|
+
return extendAxis([point_common, point], [common_point, scatter]), (shape_scatter = function () {
|
|
24025
24114
|
_newArrowCheck(this, _this18);
|
|
24026
24115
|
return TYPE.SCATTER;
|
|
24027
24116
|
}.bind(this))();
|
|
@@ -25407,9 +25496,9 @@ function selection_objectSpread(e) { for (var r = 1, t; r < arguments.length; r+
|
|
|
25407
25496
|
if (config.zoom_type === "drag" && e && startEvent.clientX === e.clientX && startEvent.clientY === e.clientY) {
|
|
25408
25497
|
return;
|
|
25409
25498
|
}
|
|
25499
|
+
state.zooming = !1;
|
|
25410
25500
|
$$.redrawEventRect();
|
|
25411
25501
|
$$.updateZoom();
|
|
25412
|
-
state.zooming = !1;
|
|
25413
25502
|
|
|
25414
25503
|
// do not call event cb when is .unzoom() is called
|
|
25415
25504
|
!isUnZoom && (e || state.dragging) && callFn(config.zoom_onzoomend, $$.api, (_$$$state$domain2 = $$.state.domain) != null ? _$$$state$domain2 : $$.zoom.getDomain());
|
|
@@ -25546,6 +25635,13 @@ function selection_objectSpread(e) { for (var r = 1, t; r < arguments.length; r+
|
|
|
25546
25635
|
$el.zoomResetBtn.style("display", null);
|
|
25547
25636
|
}
|
|
25548
25637
|
}
|
|
25638
|
+
},
|
|
25639
|
+
getZoomTransform: function getZoomTransform() {
|
|
25640
|
+
const $$ = this,
|
|
25641
|
+
eventRect = $$.$el.eventRect;
|
|
25642
|
+
return eventRect != null && eventRect.node() ? (0,external_commonjs_d3_zoom_commonjs2_d3_zoom_amd_d3_zoom_root_d3_.zoomTransform)(eventRect.node()) : {
|
|
25643
|
+
k: 1
|
|
25644
|
+
};
|
|
25549
25645
|
}
|
|
25550
25646
|
});
|
|
25551
25647
|
;// CONCATENATED MODULE: ./src/config/Options/data/selection.ts
|
|
@@ -25926,7 +26022,7 @@ let _defaults = {};
|
|
|
25926
26022
|
|
|
25927
26023
|
/**
|
|
25928
26024
|
* @namespace bb
|
|
25929
|
-
* @version 3.11.
|
|
26025
|
+
* @version 3.11.2
|
|
25930
26026
|
*/
|
|
25931
26027
|
const bb = {
|
|
25932
26028
|
/**
|
|
@@ -25936,7 +26032,7 @@ const bb = {
|
|
|
25936
26032
|
* bb.version; // "1.0.0"
|
|
25937
26033
|
* @memberof bb
|
|
25938
26034
|
*/
|
|
25939
|
-
version: "3.11.
|
|
26035
|
+
version: "3.11.2",
|
|
25940
26036
|
/**
|
|
25941
26037
|
* Generate chart
|
|
25942
26038
|
* - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when:
|