evui 3.4.125 → 3.4.127
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 +50 -21
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +50 -21
- 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/chart.core.js +15 -12
- package/src/components/chart/plugins/plugins.interaction.js +25 -2
package/dist/evui.common.js
CHANGED
|
@@ -11174,7 +11174,7 @@ module.exports = exports;
|
|
|
11174
11174
|
/***/ "9224":
|
|
11175
11175
|
/***/ (function(module) {
|
|
11176
11176
|
|
|
11177
|
-
module.exports = JSON.parse("{\"a\":\"3.4.
|
|
11177
|
+
module.exports = JSON.parse("{\"a\":\"3.4.127\"}");
|
|
11178
11178
|
|
|
11179
11179
|
/***/ }),
|
|
11180
11180
|
|
|
@@ -50444,6 +50444,8 @@ function inRange(number, start, end) {
|
|
|
50444
50444
|
|
|
50445
50445
|
|
|
50446
50446
|
|
|
50447
|
+
|
|
50448
|
+
|
|
50447
50449
|
|
|
50448
50450
|
|
|
50449
50451
|
var plugins_interaction_modules = {
|
|
@@ -50497,7 +50499,23 @@ var plugins_interaction_modules = {
|
|
|
50497
50499
|
|
|
50498
50500
|
_this.drawItemsHighlight(hitInfo, ctx);
|
|
50499
50501
|
|
|
50500
|
-
if (tooltip
|
|
50502
|
+
if (typeof (tooltip === null || tooltip === void 0 ? void 0 : tooltip.returnValue) === 'function') {
|
|
50503
|
+
var seriesList = [];
|
|
50504
|
+
Object.keys(hitInfo.items).forEach(function (sId) {
|
|
50505
|
+
seriesList.push({
|
|
50506
|
+
sId: sId,
|
|
50507
|
+
data: hitInfo.items[sId].data,
|
|
50508
|
+
color: hitInfo.items[sId].color,
|
|
50509
|
+
name: hitInfo.items[sId].name,
|
|
50510
|
+
dataId: hitInfo.items[sId].id,
|
|
50511
|
+
index: hitInfo.items[sId].index
|
|
50512
|
+
});
|
|
50513
|
+
});
|
|
50514
|
+
|
|
50515
|
+
_this.hideTooltipDOM();
|
|
50516
|
+
|
|
50517
|
+
tooltip.returnValue(seriesList, e);
|
|
50518
|
+
} else if (tooltip !== null && tooltip !== void 0 && (_tooltip$formatter = tooltip.formatter) !== null && _tooltip$formatter !== void 0 && _tooltip$formatter.html) {
|
|
50501
50519
|
_this.drawCustomTooltip(hitInfo === null || hitInfo === void 0 ? void 0 : hitInfo.items);
|
|
50502
50520
|
|
|
50503
50521
|
_this.setCustomTooltipLayoutPosition(hitInfo, e);
|
|
@@ -50514,6 +50532,10 @@ var plugins_interaction_modules = {
|
|
|
50514
50532
|
}
|
|
50515
50533
|
}
|
|
50516
50534
|
} else if (tooltip.use && _this.isInitTooltip) {
|
|
50535
|
+
if (typeof (tooltip === null || tooltip === void 0 ? void 0 : tooltip.returnValue) === 'function') {
|
|
50536
|
+
tooltip.returnValue([], e);
|
|
50537
|
+
}
|
|
50538
|
+
|
|
50517
50539
|
_this.hideTooltipDOM();
|
|
50518
50540
|
}
|
|
50519
50541
|
|
|
@@ -50552,7 +50574,7 @@ var plugins_interaction_modules = {
|
|
|
50552
50574
|
*/
|
|
50553
50575
|
|
|
50554
50576
|
|
|
50555
|
-
this.onMouseLeave = function () {
|
|
50577
|
+
this.onMouseLeave = function (e) {
|
|
50556
50578
|
var _this$options2 = _this.options,
|
|
50557
50579
|
tooltip = _this$options2.tooltip,
|
|
50558
50580
|
dragSelection = _this$options2.dragSelection;
|
|
@@ -50566,6 +50588,10 @@ var plugins_interaction_modules = {
|
|
|
50566
50588
|
}
|
|
50567
50589
|
|
|
50568
50590
|
if (tooltip.use && _this.isInitTooltip) {
|
|
50591
|
+
if (typeof (tooltip === null || tooltip === void 0 ? void 0 : tooltip.returnValue) === 'function') {
|
|
50592
|
+
tooltip.returnValue([], e);
|
|
50593
|
+
}
|
|
50594
|
+
|
|
50569
50595
|
_this.tooltipClear();
|
|
50570
50596
|
}
|
|
50571
50597
|
|
|
@@ -54394,33 +54420,36 @@ var chart_core_EvChart = /*#__PURE__*/function () {
|
|
|
54394
54420
|
var isReverseOrder = !!this.options.seriesReverse;
|
|
54395
54421
|
|
|
54396
54422
|
for (var jx = isReverseOrder ? chartTypeSet.length - 1 : 0; isReverseOrder ? jx >= 0 : jx < chartTypeSet.length; isReverseOrder ? jx-- : jx++) {
|
|
54397
|
-
var _this$options$realTim;
|
|
54398
|
-
|
|
54399
54423
|
var series = this.seriesList[chartTypeSet[jx]];
|
|
54424
|
+
var shouldInclude = !!(series !== null && series !== void 0 && series.show);
|
|
54400
54425
|
|
|
54401
|
-
if (
|
|
54402
|
-
var
|
|
54426
|
+
if (shouldInclude) {
|
|
54427
|
+
var _this$options$realTim;
|
|
54403
54428
|
|
|
54404
|
-
|
|
54429
|
+
if ((_this$options$realTim = this.options.realTimeScatter) !== null && _this$options$realTim !== void 0 && _this$options$realTim.use) {
|
|
54430
|
+
var _series$data$series$s;
|
|
54405
54431
|
|
|
54406
|
-
|
|
54407
|
-
var _seriesDatas$i;
|
|
54432
|
+
var seriesDatas = (_series$data$series$s = series.data[series.sId]) === null || _series$data$series$s === void 0 ? void 0 : _series$data$series$s.dataGroup;
|
|
54408
54433
|
|
|
54409
|
-
var
|
|
54434
|
+
for (var i = 0; i < seriesDatas.length; i++) {
|
|
54435
|
+
var _seriesDatas$i;
|
|
54410
54436
|
|
|
54411
|
-
|
|
54412
|
-
|
|
54413
|
-
|
|
54437
|
+
var dataItems = ((_seriesDatas$i = seriesDatas[i]) === null || _seriesDatas$i === void 0 ? void 0 : _seriesDatas$i.data) || [];
|
|
54438
|
+
|
|
54439
|
+
for (var j = 0; j < dataItems.length; j++) {
|
|
54440
|
+
var item = dataItems[j];
|
|
54441
|
+
duple.set("".concat(item.x).concat(item.y), series.sId);
|
|
54442
|
+
}
|
|
54414
54443
|
}
|
|
54415
|
-
}
|
|
54416
|
-
|
|
54417
|
-
var _this$data$data$chart;
|
|
54444
|
+
} else {
|
|
54445
|
+
var _this$data$data$chart;
|
|
54418
54446
|
|
|
54419
|
-
|
|
54447
|
+
var _seriesDatas = (_this$data$data$chart = this.data.data[chartTypeSet[jx]]) !== null && _this$data$data$chart !== void 0 ? _this$data$data$chart : [];
|
|
54420
54448
|
|
|
54421
|
-
|
|
54422
|
-
|
|
54423
|
-
|
|
54449
|
+
for (var _i = 0; _i < _seriesDatas.length; _i++) {
|
|
54450
|
+
var _item = _seriesDatas[_i];
|
|
54451
|
+
duple.set("".concat(_item.x).concat(_item.y), series.sId);
|
|
54452
|
+
}
|
|
54424
54453
|
}
|
|
54425
54454
|
}
|
|
54426
54455
|
}
|