evui 3.4.125 → 3.4.126

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.
@@ -11174,7 +11174,7 @@ module.exports = exports;
11174
11174
  /***/ "9224":
11175
11175
  /***/ (function(module) {
11176
11176
 
11177
- module.exports = JSON.parse("{\"a\":\"3.4.125\"}");
11177
+ module.exports = JSON.parse("{\"a\":\"3.4.126\"}");
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 !== null && tooltip !== void 0 && (_tooltip$formatter = tooltip.formatter) !== null && _tooltip$formatter !== void 0 && _tooltip$formatter.html) {
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