evui 3.4.100 → 3.4.102
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/evui.common.js +83 -28
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +83 -28
- package/dist/evui.umd.js.map +1 -1
- package/dist/evui.umd.min.js +1 -1
- package/dist/evui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/chart/element/element.heatmap.js +52 -16
- package/src/components/chart/plugins/plugins.interaction.js +10 -2
- package/src/components/chart/plugins/plugins.tooltip.js +1 -0
- package/src/components/grid/uses.js +7 -1
package/dist/evui.umd.js
CHANGED
|
@@ -11158,7 +11158,7 @@ module.exports = exports;
|
|
|
11158
11158
|
/***/ "9224":
|
|
11159
11159
|
/***/ (function(module) {
|
|
11160
11160
|
|
|
11161
|
-
module.exports = JSON.parse("{\"a\":\"3.4.
|
|
11161
|
+
module.exports = JSON.parse("{\"a\":\"3.4.102\"}");
|
|
11162
11162
|
|
|
11163
11163
|
/***/ }),
|
|
11164
11164
|
|
|
@@ -35048,6 +35048,7 @@ function uniqBy(array, iteratee) {
|
|
|
35048
35048
|
|
|
35049
35049
|
|
|
35050
35050
|
|
|
35051
|
+
|
|
35051
35052
|
|
|
35052
35053
|
|
|
35053
35054
|
var uses_this = undefined;
|
|
@@ -36054,11 +36055,19 @@ var uses_sortEvent = function sortEvent(params) {
|
|
|
36054
36055
|
bCol = _getColumnValue.bCol;
|
|
36055
36056
|
|
|
36056
36057
|
if ((!aCol || typeof aCol === 'string') && (!bCol || typeof bCol === 'string')) {
|
|
36057
|
-
var _aCol, _bCol;
|
|
36058
|
-
|
|
36059
36058
|
aCol = aCol || '';
|
|
36060
36059
|
bCol = bCol || '';
|
|
36061
|
-
|
|
36060
|
+
var lowerA = aCol.toLowerCase();
|
|
36061
|
+
var lowerB = bCol.toLowerCase();
|
|
36062
|
+
|
|
36063
|
+
if (aCol !== bCol && lowerA === lowerB) {
|
|
36064
|
+
var diffIndex = Array.from(aCol).findIndex(function (char, idx) {
|
|
36065
|
+
return char !== bCol[idx];
|
|
36066
|
+
});
|
|
36067
|
+
return sortFn(aCol[diffIndex], bCol[diffIndex]);
|
|
36068
|
+
}
|
|
36069
|
+
|
|
36070
|
+
return sortFn(lowerA, lowerB);
|
|
36062
36071
|
}
|
|
36063
36072
|
|
|
36064
36073
|
return 0;
|
|
@@ -36072,11 +36081,11 @@ var uses_sortEvent = function sortEvent(params) {
|
|
|
36072
36081
|
bCol = _getColumnValue2.bCol;
|
|
36073
36082
|
|
|
36074
36083
|
if (!aCol || typeof aCol === 'string' || typeof aCol === 'number') {
|
|
36075
|
-
var
|
|
36084
|
+
var _aCol, _bCol;
|
|
36076
36085
|
|
|
36077
36086
|
aCol = aCol === '' ? null : aCol;
|
|
36078
36087
|
bCol = bCol === '' ? null : bCol;
|
|
36079
|
-
return numberSortFn((
|
|
36088
|
+
return numberSortFn((_aCol = aCol) !== null && _aCol !== void 0 ? _aCol : null, (_bCol = bCol) !== null && _bCol !== void 0 ? _bCol : null);
|
|
36080
36089
|
}
|
|
36081
36090
|
|
|
36082
36091
|
return 0;
|
|
@@ -43725,6 +43734,18 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
|
43725
43734
|
h: 0
|
|
43726
43735
|
};
|
|
43727
43736
|
this.type = 'heatMap';
|
|
43737
|
+
this.currentLabelInfo = {
|
|
43738
|
+
x: {
|
|
43739
|
+
steps: 0,
|
|
43740
|
+
min: 0,
|
|
43741
|
+
max: 0
|
|
43742
|
+
},
|
|
43743
|
+
y: {
|
|
43744
|
+
steps: 0,
|
|
43745
|
+
min: 0,
|
|
43746
|
+
max: 0
|
|
43747
|
+
}
|
|
43748
|
+
};
|
|
43728
43749
|
}
|
|
43729
43750
|
/**
|
|
43730
43751
|
* create series color axis
|
|
@@ -44000,9 +44021,17 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
|
44000
44021
|
var minmaxY = axesSteps.y[this.yAxisIndex];
|
|
44001
44022
|
this.size.w = xArea / minmaxX.oriSteps;
|
|
44002
44023
|
this.size.h = yArea / minmaxY.oriSteps;
|
|
44003
|
-
this.
|
|
44004
|
-
x:
|
|
44005
|
-
|
|
44024
|
+
this.currentLabelInfo = {
|
|
44025
|
+
x: {
|
|
44026
|
+
steps: minmaxX.oriSteps,
|
|
44027
|
+
min: minmaxX.graphMin,
|
|
44028
|
+
max: minmaxX.graphMax
|
|
44029
|
+
},
|
|
44030
|
+
y: {
|
|
44031
|
+
steps: minmaxY.oriSteps,
|
|
44032
|
+
min: minmaxY.graphMin,
|
|
44033
|
+
max: minmaxY.graphMax
|
|
44034
|
+
}
|
|
44006
44035
|
};
|
|
44007
44036
|
|
|
44008
44037
|
var getOpacity = function getOpacity(item, opacity, index) {
|
|
@@ -44390,10 +44419,8 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
|
44390
44419
|
};
|
|
44391
44420
|
|
|
44392
44421
|
if (labels.x.length && labels.y.length) {
|
|
44393
|
-
var
|
|
44394
|
-
|
|
44395
|
-
var labelXCount = (_this$filterdCount$x = (_this$filterdCount = this.filterdCount) === null || _this$filterdCount === void 0 ? void 0 : _this$filterdCount.x) !== null && _this$filterdCount$x !== void 0 ? _this$filterdCount$x : labels.x.length;
|
|
44396
|
-
var labelYCount = (_this$filterdCount$y = (_this$filterdCount2 = this.filterdCount) === null || _this$filterdCount2 === void 0 ? void 0 : _this$filterdCount2.y) !== null && _this$filterdCount$y !== void 0 ? _this$filterdCount$y : labels.y.length;
|
|
44422
|
+
var labelXCount = this.currentLabelInfo.x.steps || labels.x.length;
|
|
44423
|
+
var labelYCount = this.currentLabelInfo.y.steps || labels.y.length;
|
|
44397
44424
|
var x1 = range.x1,
|
|
44398
44425
|
x2 = range.x2,
|
|
44399
44426
|
y1 = range.y1,
|
|
@@ -44442,10 +44469,17 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
|
44442
44469
|
|
|
44443
44470
|
return blockRange;
|
|
44444
44471
|
}
|
|
44472
|
+
}, {
|
|
44473
|
+
key: "getFilteredLabel",
|
|
44474
|
+
value: function getFilteredLabel(labels, count, min, max) {
|
|
44475
|
+
return labels.length !== count ? labels.filter(function (label) {
|
|
44476
|
+
return min <= label && label <= max;
|
|
44477
|
+
}) : labels;
|
|
44478
|
+
}
|
|
44445
44479
|
}, {
|
|
44446
44480
|
key: "findSelectionRange",
|
|
44447
44481
|
value: function findSelectionRange(rangeInfo) {
|
|
44448
|
-
var
|
|
44482
|
+
var xsp = rangeInfo.xsp,
|
|
44449
44483
|
ycp = rangeInfo.ycp,
|
|
44450
44484
|
width = rangeInfo.width,
|
|
44451
44485
|
height = rangeInfo.height,
|
|
@@ -44460,26 +44494,38 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
|
44460
44494
|
labelY = _this$labels.y;
|
|
44461
44495
|
|
|
44462
44496
|
if (labelX.length && labelY.length) {
|
|
44463
|
-
var
|
|
44464
|
-
|
|
44465
|
-
|
|
44466
|
-
|
|
44497
|
+
var _this$currentLabelInf = this.currentLabelInfo,
|
|
44498
|
+
_this$currentLabelInf2 = _this$currentLabelInf.x,
|
|
44499
|
+
xCurrentCount = _this$currentLabelInf2.steps,
|
|
44500
|
+
xMin = _this$currentLabelInf2.min,
|
|
44501
|
+
xMax = _this$currentLabelInf2.max,
|
|
44502
|
+
_this$currentLabelInf3 = _this$currentLabelInf.y,
|
|
44503
|
+
yCurrentCount = _this$currentLabelInf3.steps,
|
|
44504
|
+
yMin = _this$currentLabelInf3.min,
|
|
44505
|
+
yMax = _this$currentLabelInf3.max;
|
|
44506
|
+
var labelXCount = xCurrentCount || labelX.x.length;
|
|
44507
|
+
var labelYCount = yCurrentCount || labelY.y.length;
|
|
44508
|
+
var gapX = (x2 - x1) / labelXCount;
|
|
44509
|
+
var gapY = (y2 - y1) / labelYCount;
|
|
44510
|
+
var xep = xsp + width;
|
|
44467
44511
|
var ysp = ycp;
|
|
44468
|
-
var yep =
|
|
44512
|
+
var yep = ysp + height;
|
|
44469
44513
|
var xIndex = {
|
|
44470
44514
|
min: Math.floor((xsp - x1) / gapX),
|
|
44471
44515
|
max: Math.floor((xep - x1 - gapX) / gapX)
|
|
44472
44516
|
};
|
|
44473
|
-
var lastIndexY =
|
|
44517
|
+
var lastIndexY = labelYCount - 1;
|
|
44474
44518
|
var yIndex = {
|
|
44475
44519
|
min: lastIndexY - Math.floor((yep - y1 - gapY) / gapY),
|
|
44476
44520
|
max: lastIndexY - Math.floor((ysp - y1) / gapY)
|
|
44477
44521
|
};
|
|
44522
|
+
var filteredLabelX = this.getFilteredLabel(labelX, labelXCount, xMin, xMax);
|
|
44523
|
+
var filteredLabelY = this.getFilteredLabel(labelY, labelYCount, yMin, yMax);
|
|
44478
44524
|
selectionRange = {
|
|
44479
|
-
xMin:
|
|
44480
|
-
xMax:
|
|
44481
|
-
yMin:
|
|
44482
|
-
yMax:
|
|
44525
|
+
xMin: filteredLabelX[xIndex.min],
|
|
44526
|
+
xMax: filteredLabelX[xIndex.max],
|
|
44527
|
+
yMin: filteredLabelY[yIndex.min],
|
|
44528
|
+
yMax: filteredLabelY[yIndex.max]
|
|
44483
44529
|
};
|
|
44484
44530
|
}
|
|
44485
44531
|
|
|
@@ -50462,13 +50508,21 @@ var plugins_interaction_modules = {
|
|
|
50462
50508
|
};
|
|
50463
50509
|
|
|
50464
50510
|
this.onWheel = function (e) {
|
|
50465
|
-
var _this$tooltipDOM, _this$tooltipDOM$styl;
|
|
50511
|
+
var _this$tooltipDOM, _this$tooltipDOM$styl, _this$tooltipDOM2;
|
|
50466
50512
|
|
|
50467
50513
|
var isTooltipVisible = ((_this$tooltipDOM = _this.tooltipDOM) === null || _this$tooltipDOM === void 0 ? void 0 : (_this$tooltipDOM$styl = _this$tooltipDOM.style) === null || _this$tooltipDOM$styl === void 0 ? void 0 : _this$tooltipDOM$styl.display) === 'block';
|
|
50514
|
+
var customTooltip = (_this$tooltipDOM2 = _this.tooltipDOM) === null || _this$tooltipDOM2 === void 0 ? void 0 : _this$tooltipDOM2.querySelector(_this.options.tooltip.htmlScrollTarget);
|
|
50468
50515
|
|
|
50469
|
-
if (isTooltipVisible) {
|
|
50516
|
+
if (isTooltipVisible || customTooltip && customTooltip.scrollHeight > customTooltip.clientHeight) {
|
|
50470
50517
|
e.preventDefault();
|
|
50471
|
-
|
|
50518
|
+
|
|
50519
|
+
if (isTooltipVisible) {
|
|
50520
|
+
_this.tooltipBodyDOM.scrollTop += e.deltaY;
|
|
50521
|
+
}
|
|
50522
|
+
|
|
50523
|
+
if (customTooltip) {
|
|
50524
|
+
customTooltip.scrollTop += e.deltaY;
|
|
50525
|
+
}
|
|
50472
50526
|
}
|
|
50473
50527
|
};
|
|
50474
50528
|
|
|
@@ -52235,7 +52289,8 @@ var plugins_tooltip_modules = {
|
|
|
52235
52289
|
sId: sId,
|
|
52236
52290
|
data: hitInfoItems[sId].data,
|
|
52237
52291
|
color: hitInfoItems[sId].color,
|
|
52238
|
-
name: hitInfoItems[sId].name
|
|
52292
|
+
name: hitInfoItems[sId].name,
|
|
52293
|
+
dataId: hitInfoItems[sId].id
|
|
52239
52294
|
});
|
|
52240
52295
|
});
|
|
52241
52296
|
var userCustomTooltipBody = helpers_util.htmlToElement(opt === null || opt === void 0 ? void 0 : (_opt$formatter3 = opt.formatter) === null || _opt$formatter3 === void 0 ? void 0 : _opt$formatter3.html(seriesList));
|