evui 3.3.48 → 3.3.50

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.
@@ -7988,7 +7988,7 @@ $({ target: 'Number', stat: true }, {
7988
7988
  /***/ "9224":
7989
7989
  /***/ (function(module) {
7990
7990
 
7991
- module.exports = JSON.parse("{\"a\":\"3.3.48\"}");
7991
+ module.exports = JSON.parse("{\"a\":\"3.3.50\"}");
7992
7992
 
7993
7993
  /***/ }),
7994
7994
 
@@ -30027,6 +30027,7 @@ var uses_contextMenuEvent = function contextMenuEvent(params) {
30027
30027
  menuItem.disabled = !menuItem.validate(menuItem.itemId, row);
30028
30028
  }
30029
30029
 
30030
+ menuItem.selectedRow = row !== null && row !== void 0 ? row : [];
30030
30031
  return menuItem;
30031
30032
  });
30032
30033
  menuItems.push.apply(menuItems, _toConsumableArray(customItems));
@@ -33162,7 +33163,7 @@ var modules = {
33162
33163
  colorState = series.colorState,
33163
33164
  isGradient = series.isGradient;
33164
33165
  var colorOpt = this.options.heatMapColor;
33165
- var categoryCnt = colorOpt.categoryCnt;
33166
+ var rangeCount = colorOpt.colorsByRange.length || colorOpt.rangeCount;
33166
33167
  var decimalPoint = colorOpt.decimalPoint;
33167
33168
  var minValue;
33168
33169
  var maxValue = 0;
@@ -33183,9 +33184,9 @@ var modules = {
33183
33184
  }
33184
33185
  });
33185
33186
 
33186
- if (isExistError && !isGradient && colorState.length === categoryCnt) {
33187
+ if (isExistError && !isGradient && colorState.length === rangeCount) {
33187
33188
  colorState.push({
33188
- id: "color#".concat(categoryCnt),
33189
+ id: "color#".concat(rangeCount),
33189
33190
  color: colorOpt.error,
33190
33191
  state: 'normal',
33191
33192
  label: 'Error',
@@ -33193,11 +33194,11 @@ var modules = {
33193
33194
  });
33194
33195
  }
33195
33196
 
33196
- var interval = maxValue > minValue ? Math.floor((maxValue - minValue) / categoryCnt) : 1;
33197
+ var interval = maxValue > minValue ? Math.floor((maxValue - minValue) / rangeCount) : 1;
33197
33198
 
33198
- if (maxValue - minValue <= categoryCnt) {
33199
+ if (maxValue - minValue <= rangeCount) {
33199
33200
  if (decimalPoint > 0) {
33200
- interval = +((maxValue - minValue) / categoryCnt).toFixed(decimalPoint);
33201
+ interval = +((maxValue - minValue) / rangeCount).toFixed(decimalPoint);
33201
33202
  } else {
33202
33203
  interval = 1;
33203
33204
  }
@@ -33291,7 +33292,7 @@ var modules = {
33291
33292
  return null;
33292
33293
  }
33293
33294
 
33294
- itemPosition = [this.getItemByPosition([dataInfo.xp, dataInfo.yp], useApproximate, dataIndex)];
33295
+ itemPosition = [this.getItemByPosition([dataInfo.xp, dataInfo.yp], useApproximate, dataIndex, true)];
33295
33296
  } else {
33296
33297
  var seriesList = Object.entries(this.seriesList);
33297
33298
  var firShowSeriesID;
@@ -33316,7 +33317,7 @@ var modules = {
33316
33317
  return null;
33317
33318
  }
33318
33319
 
33319
- return _this6.getItemByPosition([(_dataInfo$xp = dataInfo === null || dataInfo === void 0 ? void 0 : dataInfo.xp) !== null && _dataInfo$xp !== void 0 ? _dataInfo$xp : 0, (_dataInfo$yp = dataInfo === null || dataInfo === void 0 ? void 0 : dataInfo.yp) !== null && _dataInfo$yp !== void 0 ? _dataInfo$yp : 0], useApproximate, idx);
33320
+ return _this6.getItemByPosition([(_dataInfo$xp = dataInfo === null || dataInfo === void 0 ? void 0 : dataInfo.xp) !== null && _dataInfo$xp !== void 0 ? _dataInfo$xp : 0, (_dataInfo$yp = dataInfo === null || dataInfo === void 0 ? void 0 : dataInfo.yp) !== null && _dataInfo$yp !== void 0 ? _dataInfo$yp : 0], useApproximate, idx, true);
33320
33321
  });
33321
33322
  }
33322
33323
 
@@ -33344,6 +33345,8 @@ var modules = {
33344
33345
  * @param {array} offset position x and y
33345
33346
  * @param {boolean} useApproximate if it's true. it'll look for closed item on mouse position
33346
33347
  * @param {number} dataIndex selected data index
33348
+ * @param {boolean} useSelectLabelOrItem used to display select label/item at tooltip location
33349
+ *
33347
33350
  * @returns {object} clicked item information
33348
33351
  */
33349
33352
  getItemByPosition: function getItemByPosition(offset) {
@@ -33351,6 +33354,7 @@ var modules = {
33351
33354
 
33352
33355
  var useApproximate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
33353
33356
  var dataIndex = arguments.length > 2 ? arguments[2] : undefined;
33357
+ var useSelectLabelOrItem = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
33354
33358
  var seriesIDs = Object.keys(this.seriesList);
33355
33359
  var isHorizontal = !!this.options.horizontal;
33356
33360
  var maxType = null;
@@ -33368,7 +33372,7 @@ var modules = {
33368
33372
  var findFn = useApproximate ? series.findApproximateData : series.findGraphData;
33369
33373
 
33370
33374
  if (findFn) {
33371
- var item = findFn.call(series, offset, isHorizontal, dataIndex);
33375
+ var item = findFn.call(series, offset, isHorizontal, dataIndex, useSelectLabelOrItem);
33372
33376
  var data = item.data;
33373
33377
  var index = item.index;
33374
33378
 
@@ -33659,7 +33663,7 @@ var modules = {
33659
33663
  offsetX = x;
33660
33664
  }
33661
33665
 
33662
- hitInfo = this.getItemByPosition([offsetX, y], selectLabel === null || selectLabel === void 0 ? void 0 : selectLabel.useApproximateValue, dataIndex);
33666
+ hitInfo = this.getItemByPosition([offsetX, y], selectLabel === null || selectLabel === void 0 ? void 0 : selectLabel.useApproximateValue, dataIndex, true);
33663
33667
  labelIndex = (_hitInfo$maxIndex = hitInfo.maxIndex) !== null && _hitInfo$maxIndex !== void 0 ? _hitInfo$maxIndex : -1;
33664
33668
  }
33665
33669
 
@@ -34696,6 +34700,7 @@ var AXIS_OPTION = {
34696
34700
  startToZero: false,
34697
34701
  showAxis: true,
34698
34702
  axisLineColor: '#C9CFDC',
34703
+ axisLineWidth: 1,
34699
34704
  showGrid: true,
34700
34705
  gridLineColor: '#C9CFDC',
34701
34706
  showIndicator: false,
@@ -35152,6 +35157,9 @@ var element_line_Line = /*#__PURE__*/function () {
35152
35157
  }
35153
35158
  };
35154
35159
  this.data = [];
35160
+ this.beforeMouseXp = 0;
35161
+ this.beforeMouseYp = 0;
35162
+ this.beforeFindItemIndex = -1;
35155
35163
  this.size = {
35156
35164
  comboOffset: 0
35157
35165
  };
@@ -35373,14 +35381,17 @@ var element_line_Line = /*#__PURE__*/function () {
35373
35381
  }
35374
35382
  /**
35375
35383
  * Find graph item
35376
- * @param {array} offset mouse position
35384
+ * @param {array} offset mouse position
35385
+ * @param {boolean} isHorizontal
35386
+ * @param {number} dataIndex selected label data index
35387
+ * @param {boolean} useSelectLabelOrItem used to display select label/item at tooltip location
35377
35388
  *
35378
35389
  * @returns {object} graph item
35379
35390
  */
35380
35391
 
35381
35392
  }, {
35382
35393
  key: "findGraphData",
35383
- value: function findGraphData(offset, isHorizontal, dataIndex) {
35394
+ value: function findGraphData(offset, isHorizontal, dataIndex, useSelectLabelOrItem) {
35384
35395
  var xp = offset[0];
35385
35396
  var yp = offset[1];
35386
35397
  var item = {
@@ -35389,11 +35400,15 @@ var element_line_Line = /*#__PURE__*/function () {
35389
35400
  color: this.color
35390
35401
  };
35391
35402
  var gdata = this.data;
35403
+ var SPARE_XP = 0.5;
35392
35404
 
35393
35405
  if (gdata !== null && gdata !== void 0 && gdata.length) {
35394
35406
  if (typeof dataIndex === 'number' && this.show) {
35395
35407
  item.data = gdata[dataIndex];
35396
35408
  item.index = dataIndex;
35409
+ } else if (typeof this.beforeFindItemIndex === 'number' && this.show && useSelectLabelOrItem) {
35410
+ item.data = gdata[this.beforeFindItemIndex];
35411
+ item.index = this.beforeFindItemIndex;
35397
35412
  } else {
35398
35413
  var _gdata$;
35399
35414
 
@@ -35407,14 +35422,50 @@ var element_line_Line = /*#__PURE__*/function () {
35407
35422
  var y = gdata[m].yp;
35408
35423
 
35409
35424
  if (x - xpInterval < xp && xp < x + xpInterval) {
35410
- item.data = gdata[m];
35411
- item.index = m;
35425
+ var _gdata$m, _gdata$xp, _gdata, _gdata2, _gdata3;
35426
+
35427
+ var curXpInterval = ((_gdata$m = gdata[m]) === null || _gdata$m === void 0 ? void 0 : _gdata$m.xp) - ((_gdata$xp = (_gdata = gdata[m - 1]) === null || _gdata === void 0 ? void 0 : _gdata.xp) !== null && _gdata$xp !== void 0 ? _gdata$xp : 0);
35428
+
35429
+ if ((_gdata2 = gdata[m - 1]) !== null && _gdata2 !== void 0 && _gdata2.xp && (_gdata3 = gdata[m + 1]) !== null && _gdata3 !== void 0 && _gdata3.xp && curXpInterval > 0) {
35430
+ var leftXp = xp - gdata[m - 1].xp;
35431
+ var midXp = Math.abs(xp - gdata[m].xp);
35432
+ var rightXp = gdata[m + 1].xp - xp;
35433
+
35434
+ if (Math.abs(this.beforeMouseXp - xp) >= curXpInterval - SPARE_XP && (this.beforeFindItemIndex === m || midXp === rightXp || midXp === leftXp)) {
35435
+ if (this.beforeMouseXp - xp > 0) {
35436
+ item.data = gdata[this.beforeFindItemIndex - 1];
35437
+ item.index = this.beforeFindItemIndex - 1;
35438
+ } else if (this.beforeMouseXp - xp < 0) {
35439
+ item.data = gdata[this.beforeFindItemIndex + 1];
35440
+ item.index = this.beforeFindItemIndex + 1;
35441
+ } else if (this.beforeMouseYp !== yp) {
35442
+ item.data = gdata[this.beforeFindItemIndex];
35443
+ item.index = this.beforeFindItemIndex;
35444
+ }
35445
+ } else {
35446
+ var closeXp = Math.min(leftXp, midXp, rightXp);
35447
+
35448
+ if (closeXp === leftXp) {
35449
+ item.data = gdata[m - 1];
35450
+ item.index = m - 1;
35451
+ } else if (closeXp === rightXp) {
35452
+ item.data = gdata[m + 1];
35453
+ item.index = m + 1;
35454
+ } else {
35455
+ item.data = gdata[m];
35456
+ item.index = m;
35457
+ }
35458
+ }
35459
+ } else {
35460
+ item.data = gdata[m];
35461
+ item.index = m;
35462
+ }
35412
35463
 
35413
35464
  if (y - 6 <= yp && yp <= y + 6) {
35414
35465
  item.hit = true;
35415
35466
  }
35416
35467
 
35417
- return item;
35468
+ break;
35418
35469
  } else if (x + xpInterval > xp) {
35419
35470
  e = m - 1;
35420
35471
  } else {
@@ -35424,6 +35475,15 @@ var element_line_Line = /*#__PURE__*/function () {
35424
35475
  }
35425
35476
  }
35426
35477
 
35478
+ if (!useSelectLabelOrItem) {
35479
+ this.beforeMouseXp = xp;
35480
+ this.beforeMouseYp = yp;
35481
+
35482
+ if (typeof item.index === 'number') {
35483
+ this.beforeFindItemIndex = item.index;
35484
+ }
35485
+ }
35486
+
35427
35487
  return item;
35428
35488
  }
35429
35489
  /**
@@ -36876,10 +36936,11 @@ var element_pie_Pie = /*#__PURE__*/function () {
36876
36936
 
36877
36937
 
36878
36938
 
36939
+
36879
36940
 
36880
36941
 
36881
36942
  var element_heatmap_HeatMap = /*#__PURE__*/function () {
36882
- function HeatMap(sId, opt, colorOpt, isGradient) {
36943
+ function HeatMap(sId, opt, colorOpt, isHorizontal, isGradient) {
36883
36944
  var _this = this;
36884
36945
 
36885
36946
  _classCallCheck(this, HeatMap);
@@ -36888,6 +36949,7 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
36888
36949
  Object.keys(merged).forEach(function (key) {
36889
36950
  _this[key] = merged[key];
36890
36951
  });
36952
+ this.isHorizontal = isHorizontal;
36891
36953
  this.isGradient = isGradient;
36892
36954
  this.createColorState(colorOpt);
36893
36955
  this.sId = sId;
@@ -36917,8 +36979,8 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
36917
36979
  var regex = /[^0-9]&[^,]/g;
36918
36980
  var min = colorOpt.min,
36919
36981
  max = colorOpt.max,
36920
- categoryCnt = colorOpt.categoryCnt,
36921
- categoryColors = colorOpt.categoryColors,
36982
+ rangeCount = colorOpt.rangeCount,
36983
+ colorsByRange = colorOpt.colorsByRange,
36922
36984
  error = colorOpt.error,
36923
36985
  stroke = colorOpt.stroke;
36924
36986
  var minColor = min.includes('#') ? helpers_util.hexToRgb(min) : min.replace(regex, '');
@@ -36948,14 +37010,13 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
36948
37010
  maxG: maxG,
36949
37011
  maxB: maxB
36950
37012
  },
36951
- categoryCnt: categoryCnt,
37013
+ rangeCount: rangeCount,
36952
37014
  start: 0,
36953
37015
  end: 100,
36954
37016
  selectedValue: null
36955
37017
  });
36956
- } else if (categoryColors.length) {
36957
- colorOpt.categoryCnt = categoryColors.length;
36958
- categoryColors.forEach(function (_ref, ix) {
37018
+ } else if (colorsByRange.length) {
37019
+ colorsByRange.forEach(function (_ref, ix) {
36959
37020
  var color = _ref.color,
36960
37021
  label = _ref.label;
36961
37022
  colorState.push({
@@ -36967,11 +37028,11 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
36967
37028
  });
36968
37029
  });
36969
37030
  } else {
36970
- var unitR = Math.floor((minR - maxR) / (categoryCnt - 1));
36971
- var unitG = Math.floor((minG - maxG) / (categoryCnt - 1));
36972
- var unitB = Math.floor((minB - maxB) / (categoryCnt - 1));
37031
+ var unitR = Math.floor((minR - maxR) / (rangeCount - 1));
37032
+ var unitG = Math.floor((minG - maxG) / (rangeCount - 1));
37033
+ var unitB = Math.floor((minB - maxB) / (rangeCount - 1));
36973
37034
 
36974
- for (var ix = 0; ix < categoryCnt; ix++) {
37035
+ for (var ix = 0; ix < rangeCount; ix++) {
36975
37036
  var r = +minR - unitR * ix;
36976
37037
  var g = +minG - unitG * ix;
36977
37038
  var b = +minB - unitB * ix;
@@ -37006,8 +37067,8 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
37006
37067
  return "rgb(".concat(r, ",").concat(g, ",").concat(b, ")");
37007
37068
  }
37008
37069
  }, {
37009
- key: "getColorIndexForIcon",
37010
- value: function getColorIndexForIcon(value) {
37070
+ key: "getColorIndexByValue",
37071
+ value: function getColorIndexByValue(value) {
37011
37072
  var _this$valueOpt = this.valueOpt,
37012
37073
  existError = _this$valueOpt.existError,
37013
37074
  min = _this$valueOpt.min,
@@ -37035,7 +37096,7 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
37035
37096
  max = _this$valueOpt2.max;
37036
37097
  var itemInfo = {
37037
37098
  show: false,
37038
- opacity: 0,
37099
+ opacity: 1,
37039
37100
  dataColor: null,
37040
37101
  id: null,
37041
37102
  isHighlight: null
@@ -37051,11 +37112,10 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
37051
37112
  if (value < 0 || start <= ratio && ratio <= end) {
37052
37113
  itemInfo.show = true;
37053
37114
  itemInfo.isHighlight = selectedValue !== null && Math.floor(value) === Math.floor(min + (max - min) * (selectedValue / 100));
37054
- itemInfo.opacity = 1;
37055
37115
  itemInfo.dataColor = value < 0 ? this.errorColor : this.getColorForGradient(ratio);
37056
37116
  }
37057
37117
  } else {
37058
- var colorIndex = this.getColorIndexForIcon(value);
37118
+ var colorIndex = this.getColorIndexByValue(value);
37059
37119
  var _this$colorState$colo = this.colorState[colorIndex],
37060
37120
  show = _this$colorState$colo.show,
37061
37121
  state = _this$colorState$colo.state,
@@ -37071,18 +37131,26 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
37071
37131
  }
37072
37132
  }, {
37073
37133
  key: "drawItem",
37074
- value: function drawItem(ctx, x, y, w, h) {
37134
+ value: function drawItem(ctx, x, y, w, h, borderOpt) {
37075
37135
  ctx.beginPath();
37076
37136
 
37077
- if (this.stroke.show) {
37078
- var radius = this.stroke.radius;
37137
+ if (borderOpt.show) {
37138
+ var radius = borderOpt.radius;
37139
+
37140
+ if (radius > 0) {
37141
+ var minSize = Math.min(w, h);
37142
+ var r = radius;
37079
37143
 
37080
- if (radius > 0 && radius < h && radius < w) {
37081
- ctx.moveTo(x + radius, y);
37082
- ctx.arcTo(x + w, y, x + w, y + h, radius);
37083
- ctx.arcTo(x + w, y + h, x, y + h, radius);
37084
- ctx.arcTo(x, y + h, x, y, radius);
37085
- ctx.arcTo(x, y, x + w, y, radius);
37144
+ if (r > minSize / 2) {
37145
+ r = Math.floor(minSize / 2);
37146
+ }
37147
+
37148
+ ctx.moveTo(x + r, y);
37149
+ ctx.arcTo(x + w, y, x + w, y + h, r);
37150
+ ctx.arcTo(x + w, y + h, x, y + h, r);
37151
+ ctx.arcTo(x, y + h, x, y, r);
37152
+ ctx.arcTo(x, y, x + w, y, r);
37153
+ ctx.stroke();
37086
37154
  ctx.fill();
37087
37155
  } else {
37088
37156
  ctx.strokeRect(x, y, w, h);
@@ -37132,15 +37200,46 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
37132
37200
  var ctx = param.ctx,
37133
37201
  chartRect = param.chartRect,
37134
37202
  labelOffset = param.labelOffset,
37135
- overlayCtx = param.overlayCtx;
37203
+ overlayCtx = param.overlayCtx,
37204
+ selectLabel = param.selectLabel,
37205
+ legendHitInfo = param.legendHitInfo,
37206
+ selectItem = param.selectItem;
37136
37207
  var xArea = chartRect.chartWidth - (labelOffset.left + labelOffset.right);
37137
37208
  var yArea = chartRect.chartHeight - (labelOffset.top + labelOffset.bottom);
37138
37209
  var xsp = chartRect.x1 + labelOffset.left;
37139
37210
  var ysp = chartRect.y2 - labelOffset.bottom;
37140
37211
  this.size.w = xArea / this.labels.x.length;
37141
37212
  this.size.h = yArea / this.labels.y.length;
37142
- this.data.forEach(function (item) {
37143
- var xp = _this2.calculateXY('x', item.x, xsp);
37213
+
37214
+ var getOpacity = function getOpacity(item, opacity, index) {
37215
+ var selectLabelOption = selectLabel === null || selectLabel === void 0 ? void 0 : selectLabel.option;
37216
+ var useSelectLabel = (selectLabelOption === null || selectLabelOption === void 0 ? void 0 : selectLabelOption.use) && (selectLabelOption === null || selectLabelOption === void 0 ? void 0 : selectLabelOption.useSeriesOpacity);
37217
+ var selectItemOption = selectItem === null || selectItem === void 0 ? void 0 : selectItem.option;
37218
+ var useSelectItem = (selectItemOption === null || selectItemOption === void 0 ? void 0 : selectItemOption.use) && (selectItemOption === null || selectItemOption === void 0 ? void 0 : selectItemOption.useSeriesOpacity);
37219
+
37220
+ if (!legendHitInfo) {
37221
+ var isDownplay = false;
37222
+
37223
+ if (useSelectItem) {
37224
+ var _selectItem$selected;
37225
+
37226
+ isDownplay = (selectItem === null || selectItem === void 0 ? void 0 : selectItem.selected) && index !== (selectItem === null || selectItem === void 0 ? void 0 : (_selectItem$selected = selectItem.selected) === null || _selectItem$selected === void 0 ? void 0 : _selectItem$selected.dataIndex);
37227
+ } else if (useSelectLabel) {
37228
+ var _selectLabel$selected;
37229
+
37230
+ var selectedLabelList = selectLabel === null || selectLabel === void 0 ? void 0 : (_selectLabel$selected = selectLabel.selected) === null || _selectLabel$selected === void 0 ? void 0 : _selectLabel$selected.label;
37231
+ isDownplay = selectedLabelList.length && !selectedLabelList.includes(_this2.isHorizontal ? item.y : item.x);
37232
+ }
37233
+
37234
+ return isDownplay ? 0.1 : 1;
37235
+ }
37236
+
37237
+ return opacity;
37238
+ };
37239
+
37240
+ this.data.forEach(function (item, index) {
37241
+ var axisLineWidth = 1;
37242
+ var xp = _this2.calculateXY('x', item.x, xsp) + axisLineWidth;
37144
37243
 
37145
37244
  var yp = _this2.calculateXY('y', item.y, ysp);
37146
37245
 
@@ -37156,27 +37255,40 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
37156
37255
  id = _this2$getItemInfo.id,
37157
37256
  isHighlight = _this2$getItemInfo.isHighlight;
37158
37257
 
37258
+ var itemOpacity = getOpacity(item, opacity, index);
37159
37259
  item.dataColor = dataColor;
37160
37260
  item.cId = id;
37161
37261
  ctx.save();
37162
37262
 
37163
37263
  if (show) {
37164
- ctx.fillStyle = helpers_util.colorStringToRgba(item.dataColor, opacity);
37165
-
37166
- if (_this2.stroke.show) {
37167
- var _this2$stroke = _this2.stroke,
37168
- color = _this2$stroke.color,
37169
- lineWidth = _this2$stroke.lineWidth,
37170
- sOpacity = _this2$stroke.opacity;
37171
- ctx.strokeStyle = helpers_util.colorStringToRgba(color, opacity === 1 ? sOpacity : opacity);
37264
+ var _selectItem$selected2;
37265
+
37266
+ ctx.fillStyle = helpers_util.colorStringToRgba(item.dataColor, itemOpacity);
37267
+ var borderOpt = _this2.stroke;
37268
+ var selectItemOption = selectItem === null || selectItem === void 0 ? void 0 : selectItem.option;
37269
+ var useSelectItem = (selectItemOption === null || selectItemOption === void 0 ? void 0 : selectItemOption.use) && (selectItemOption === null || selectItemOption === void 0 ? void 0 : selectItemOption.showBorder);
37270
+ var isHit = index === (selectItem === null || selectItem === void 0 ? void 0 : (_selectItem$selected2 = selectItem.selected) === null || _selectItem$selected2 === void 0 ? void 0 : _selectItem$selected2.dataIndex);
37271
+
37272
+ if (useSelectItem && isHit) {
37273
+ borderOpt = _objectSpread2({
37274
+ show: selectItemOption === null || selectItemOption === void 0 ? void 0 : selectItemOption.showBorder
37275
+ }, selectItemOption === null || selectItemOption === void 0 ? void 0 : selectItemOption.borderStyle);
37276
+ }
37277
+
37278
+ if (borderOpt.show) {
37279
+ var _borderOpt = borderOpt,
37280
+ color = _borderOpt.color,
37281
+ lineWidth = _borderOpt.lineWidth,
37282
+ borderOpacity = _borderOpt.opacity;
37283
+ ctx.strokeStyle = helpers_util.colorStringToRgba(color, itemOpacity === 1 ? borderOpacity : itemOpacity);
37172
37284
  ctx.lineWidth = lineWidth;
37173
- xp += lineWidth * 1.5;
37174
- yp += lineWidth * 1.5;
37175
- w -= lineWidth * 2;
37176
- h -= lineWidth * 2;
37285
+ xp += lineWidth * 0.5;
37286
+ yp += lineWidth * 0.5;
37287
+ w -= lineWidth;
37288
+ h -= lineWidth;
37177
37289
  }
37178
37290
 
37179
- _this2.drawItem(ctx, xp, yp, w, h);
37291
+ _this2.drawItem(ctx, xp, yp, w, h, borderOpt);
37180
37292
 
37181
37293
  ctx.restore();
37182
37294
  item.xp = xp;
@@ -37360,16 +37472,25 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
37360
37472
  }
37361
37473
 
37362
37474
  ctx.save();
37363
- ctx.shadowOffsetX = 2;
37364
- ctx.shadowOffsetY = 2;
37475
+ ctx.shadowOffsetX = 0;
37476
+ ctx.shadowOffsetY = 0;
37365
37477
  ctx.shadowBlur = 4;
37366
37478
 
37367
37479
  if (x !== null && y !== null && isShow) {
37368
37480
  var color = gdata.dataColor;
37369
- ctx.shadowColor = helpers_util.colorStringToRgba('#605F5F');
37481
+ ctx.shadowColor = helpers_util.colorStringToRgba('#959494');
37370
37482
  ctx.strokeStyle = helpers_util.colorStringToRgba(color);
37371
37483
  ctx.fillStyle = helpers_util.colorStringToRgba(color);
37372
- this.drawItem(ctx, x - 2, y - 2, w + 4, h + 4);
37484
+
37485
+ if (this.stroke.show) {
37486
+ var lineWidth = this.stroke.lineWidth;
37487
+ x += lineWidth * 0.5;
37488
+ y += lineWidth * 0.5;
37489
+ w -= lineWidth;
37490
+ h -= lineWidth;
37491
+ }
37492
+
37493
+ this.drawItem(ctx, x - 0.5, y - 0.5, w + 1, h + 1, this.stroke);
37373
37494
  ctx.restore();
37374
37495
 
37375
37496
  if (this.showValue.use) {
@@ -37399,7 +37520,7 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
37399
37520
  name: null
37400
37521
  };
37401
37522
  var gdata = this.data;
37402
- var foundItem = gdata.find(function (data) {
37523
+ var itemIndex = gdata.findIndex(function (data) {
37403
37524
  var x = data.xp,
37404
37525
  y = data.yp,
37405
37526
  wSize = data.w,
@@ -37407,9 +37528,11 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
37407
37528
  return x <= xp && xp <= x + wSize && y <= yp && yp <= y + hSize;
37408
37529
  });
37409
37530
 
37410
- if (foundItem) {
37531
+ if (itemIndex > -1) {
37532
+ var foundItem = gdata[itemIndex];
37411
37533
  item.data = foundItem;
37412
37534
  item.color = foundItem.dataColor;
37535
+ item.index = itemIndex;
37413
37536
  item.hit = true;
37414
37537
  }
37415
37538
 
@@ -37601,7 +37724,7 @@ var model_series_modules = {
37601
37724
  heatMapColor = _this$options.heatMapColor,
37602
37725
  legend = _this$options.legend;
37603
37726
  var isGradient = legend.type === 'gradient';
37604
- return new element_heatmap(id, opt, heatMapColor, isGradient);
37727
+ return new element_heatmap(id, opt, heatMapColor, isHorizontal, isGradient);
37605
37728
  }
37606
37729
 
37607
37730
  return false;
@@ -37918,7 +38041,7 @@ var scale_Scale = /*#__PURE__*/function () {
37918
38041
  }
37919
38042
 
37920
38043
  if (this.showAxis) {
37921
- ctx.lineWidth = 2;
38044
+ ctx.lineWidth = this.axisLineWidth;
37922
38045
  aliasPixel = helpers_util.aliasPixel(ctx.lineWidth);
37923
38046
  ctx.beginPath();
37924
38047
  ctx.strokeStyle = this.axisLineColor;
@@ -38972,7 +39095,7 @@ var scale_step_StepScale = /*#__PURE__*/function (_Scale) {
38972
39095
  }
38973
39096
 
38974
39097
  ctx.fillStyle = this.labelStyle.color;
38975
- ctx.lineWidth = 1;
39098
+ ctx.lineWidth = this.axisLineWidth;
38976
39099
  var aliasPixel = helpers_util.aliasPixel(ctx.lineWidth);
38977
39100
  ctx.beginPath();
38978
39101
  ctx.strokeStyle = this.axisLineColor;
@@ -39386,7 +39509,7 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
39386
39509
  }
39387
39510
 
39388
39511
  ctx.fillStyle = this.labelStyle.color;
39389
- ctx.lineWidth = 1;
39512
+ ctx.lineWidth = this.axisLineWidth;
39390
39513
  var aliasPixel = helpers_util.aliasPixel(ctx.lineWidth);
39391
39514
  ctx.beginPath();
39392
39515
  ctx.strokeStyle = this.axisLineColor;
@@ -40085,6 +40208,10 @@ var plugins_legend_modules = {
40085
40208
  }
40086
40209
 
40087
40210
  var targetId = targetDOM === null || targetDOM === void 0 ? void 0 : (_targetDOM$series4 = targetDOM.series) === null || _targetDOM$series4 === void 0 ? void 0 : _targetDOM$series4.cId;
40211
+ var legendHitInfo = {
40212
+ sId: targetId,
40213
+ type: _this5.options.type
40214
+ };
40088
40215
  series.colorState.forEach(function (colorItem) {
40089
40216
  colorItem.state = colorItem.id === targetId ? 'highlight' : 'downplay';
40090
40217
  });
@@ -40094,6 +40221,9 @@ var plugins_legend_modules = {
40094
40221
  updateSelTip: {
40095
40222
  update: false,
40096
40223
  keepDomain: false
40224
+ },
40225
+ hitInfo: {
40226
+ legend: legendHitInfo
40097
40227
  }
40098
40228
  });
40099
40229
  };
@@ -41510,6 +41640,8 @@ var es_object_from_entries = __webpack_require__("c1f9");
41510
41640
 
41511
41641
 
41512
41642
 
41643
+
41644
+
41513
41645
  var plugins_interaction_modules = {
41514
41646
  /**
41515
41647
  * Hide legend components by manipulating css
@@ -41656,15 +41788,19 @@ var plugins_interaction_modules = {
41656
41788
 
41657
41789
  var hitInfo = _this.getItemByPosition(offset, false);
41658
41790
 
41659
- if (hitInfo.label !== null) {
41660
- _this.render(hitInfo);
41661
- }
41662
-
41663
41791
  args.label = hitInfo.label;
41664
41792
  args.value = hitInfo.value;
41665
41793
  args.seriesId = hitInfo.sId;
41666
41794
  args.dataIndex = hitInfo.maxIndex;
41667
41795
  args.acc = hitInfo.acc;
41796
+
41797
+ if (_this.options.type === 'heatMap') {
41798
+ args.deselect = _this.setDeselectItem(hitInfo);
41799
+ }
41800
+
41801
+ if (hitInfo.label !== null) {
41802
+ _this.render(hitInfo);
41803
+ }
41668
41804
  } else if (_this.options.selectLabel.use && _this.options.selectLabel.useClick) {
41669
41805
  var _offset = _this.getMousePosition(e);
41670
41806
 
@@ -42197,14 +42333,18 @@ var plugins_interaction_modules = {
42197
42333
  var _this3 = this;
42198
42334
 
42199
42335
  if (this.options.selectLabel.use) {
42200
- var limit = this.options.selectLabel.limit;
42201
-
42202
42336
  if (!this.defaultSelectInfo) {
42203
42337
  this.defaultSelectInfo = {
42204
42338
  dataIndex: []
42205
42339
  };
42206
42340
  }
42207
42341
 
42342
+ if (this.options.type === 'heatMap') {
42343
+ this.initSelectedInfoForHeatMap();
42344
+ return;
42345
+ }
42346
+
42347
+ var limit = this.options.selectLabel.limit;
42208
42348
  var infoObj = this.defaultSelectInfo;
42209
42349
  infoObj.dataIndex.splice(limit);
42210
42350
  infoObj.label = infoObj.dataIndex.map(function (i) {
@@ -42229,6 +42369,29 @@ var plugins_interaction_modules = {
42229
42369
  }
42230
42370
  },
42231
42371
 
42372
+ /**
42373
+ * init defaultSelectInfo object for HeatMap.
42374
+ * - at selectLabel using: set each series data and label text
42375
+ */
42376
+ initSelectedInfoForHeatMap: function initSelectedInfoForHeatMap() {
42377
+ var _this4 = this;
42378
+
42379
+ var limit = this.options.selectLabel.limit;
42380
+ var isHorizontal = this.options.horizontal;
42381
+ var infoObj = this.defaultSelectInfo;
42382
+ infoObj.dataIndex.splice(limit);
42383
+ var targetLabel = isHorizontal ? 'y' : 'x';
42384
+ infoObj.label = infoObj.dataIndex.map(function (i) {
42385
+ return _this4.data.labels[targetLabel][i];
42386
+ });
42387
+ var dataValues = Object.values(this.data.data)[0];
42388
+ infoObj.data = dataValues.filter(function (_ref5) {
42389
+ var x = _ref5.x,
42390
+ y = _ref5.y;
42391
+ return infoObj.label.includes(isHorizontal ? y : x);
42392
+ });
42393
+ },
42394
+
42232
42395
  /**
42233
42396
  * Add or delete selected label index, according to policy and option
42234
42397
  * (set each series data and label text)
@@ -42324,12 +42487,12 @@ var plugins_interaction_modules = {
42324
42487
  * object.range: coordinate-based range in graph
42325
42488
  * @returns {object}
42326
42489
  */
42327
- getSelectionRage: function getSelectionRage(_ref5) {
42328
- var xsp = _ref5.xsp,
42329
- ysp = _ref5.ysp,
42330
- width = _ref5.width,
42331
- height = _ref5.height,
42332
- range = _ref5.range;
42490
+ getSelectionRage: function getSelectionRage(_ref6) {
42491
+ var xsp = _ref6.xsp,
42492
+ ysp = _ref6.ysp,
42493
+ width = _ref6.width,
42494
+ height = _ref6.height,
42495
+ range = _ref6.range;
42333
42496
  var dataRangeX = this.axesSteps.x.length ? this.axesSteps.x[0] : null;
42334
42497
  var dataRangeY = this.axesSteps.y.length ? this.axesSteps.y[0] : null;
42335
42498
 
@@ -42386,11 +42549,11 @@ var plugins_interaction_modules = {
42386
42549
 
42387
42550
  var sId = Object.keys(this.seriesList)[0];
42388
42551
 
42389
- var _ref6 = (_this$seriesList$sId$ = this.seriesList[sId].findSelectionRange(range)) !== null && _this$seriesList$sId$ !== void 0 ? _this$seriesList$sId$ : {},
42390
- xMin = _ref6.xMin,
42391
- xMax = _ref6.xMax,
42392
- yMin = _ref6.yMin,
42393
- yMax = _ref6.yMax;
42552
+ var _ref7 = (_this$seriesList$sId$ = this.seriesList[sId].findSelectionRange(range)) !== null && _this$seriesList$sId$ !== void 0 ? _this$seriesList$sId$ : {},
42553
+ xMin = _ref7.xMin,
42554
+ xMax = _ref7.xMax,
42555
+ yMin = _ref7.yMin,
42556
+ yMax = _ref7.yMax;
42394
42557
 
42395
42558
  return {
42396
42559
  xMin: xMin !== null && xMin !== void 0 ? xMin : dataRangeX.graphMin,
@@ -42398,6 +42561,23 @@ var plugins_interaction_modules = {
42398
42561
  yMin: yMin !== null && yMin !== void 0 ? yMin : dataRangeY.graphMin,
42399
42562
  yMax: yMax !== null && yMax !== void 0 ? yMax : dataRangeY.graphMax
42400
42563
  };
42564
+ },
42565
+ setDeselectItem: function setDeselectItem(hitInfo) {
42566
+ var deselect = false;
42567
+
42568
+ if (this.options.selectItem.useDeselectItem) {
42569
+ var _this$defaultSelectIt;
42570
+
42571
+ var isEqualSelectItem = (hitInfo === null || hitInfo === void 0 ? void 0 : hitInfo.maxIndex) === ((_this$defaultSelectIt = this.defaultSelectItemInfo) === null || _this$defaultSelectIt === void 0 ? void 0 : _this$defaultSelectIt.dataIndex);
42572
+
42573
+ if (!isNaN(hitInfo === null || hitInfo === void 0 ? void 0 : hitInfo.maxIndex) && isEqualSelectItem) {
42574
+ deselect = true;
42575
+ this.defaultSelectItemInfo = null;
42576
+ return true;
42577
+ }
42578
+ }
42579
+
42580
+ return deselect;
42401
42581
  }
42402
42582
  };
42403
42583
  /* harmony default export */ var plugins_interaction = (plugins_interaction_modules);
@@ -43425,7 +43605,8 @@ var element_tip_modules = {
43425
43605
  var isExistSelectedLabel;
43426
43606
 
43427
43607
  if (labelTipOpt.use && labelTipOpt.showTip) {
43428
- isExistSelectedLabel = this.drawLabelTip();
43608
+ var isHeatMap = opt.type === 'heatMap';
43609
+ isExistSelectedLabel = isHeatMap ? this.drawLabelTipForHeatMap() : this.drawLabelTip();
43429
43610
  }
43430
43611
 
43431
43612
  var executeDrawIndicator = function executeDrawIndicator(tipOpt) {
@@ -43805,6 +43986,53 @@ var element_tip_modules = {
43805
43986
  return drawTip;
43806
43987
  },
43807
43988
 
43989
+ /**
43990
+ * Draw Selected Label Tip
43991
+ * @returns {boolean} Whether drew at least one tip
43992
+ */
43993
+ drawLabelTipForHeatMap: function drawLabelTipForHeatMap() {
43994
+ var _this3 = this;
43995
+
43996
+ var opt = this.options;
43997
+ var isHorizontal = !!opt.horizontal;
43998
+ var labelTipOpt = opt.selectLabel;
43999
+ var dataIndex = this.defaultSelectInfo.dataIndex;
44000
+ var drawTip = false;
44001
+
44002
+ if (dataIndex) {
44003
+ drawTip = true;
44004
+ var chartRect = this.chartRect;
44005
+ var labelOffset = this.labelOffset;
44006
+ var aPos = {
44007
+ x1: chartRect.x1 + labelOffset.left,
44008
+ x2: chartRect.x2 - labelOffset.right,
44009
+ y1: chartRect.y1 + labelOffset.top,
44010
+ y2: chartRect.y2 - labelOffset.bottom
44011
+ };
44012
+ var labelAxes = isHorizontal ? this.axesY[0] : this.axesX[0];
44013
+ var labelStartPoint = aPos[labelAxes.units.rectStart];
44014
+ var labelEndPoint = aPos[labelAxes.units.rectEnd];
44015
+ var labelGap = (labelEndPoint - labelStartPoint) / labelAxes.labels.length;
44016
+ var valueAxes = isHorizontal ? this.axesX[0] : this.axesY[0];
44017
+ var offset = 6 * (isHorizontal ? 1 : -1);
44018
+ var gp = aPos[valueAxes.units.rectEnd] + offset;
44019
+ dataIndex === null || dataIndex === void 0 ? void 0 : dataIndex.forEach(function (index) {
44020
+ var labelCenter = Math.round(labelStartPoint + labelGap * index);
44021
+ var dp = labelCenter + labelGap / 2;
44022
+
44023
+ _this3.showTip({
44024
+ context: _this3.bufferCtx,
44025
+ x: isHorizontal ? gp : dp,
44026
+ y: isHorizontal ? dp : gp,
44027
+ opt: labelTipOpt,
44028
+ isSamePos: false
44029
+ });
44030
+ });
44031
+ }
44032
+
44033
+ return drawTip;
44034
+ },
44035
+
43808
44036
  /**
43809
44037
  * Calculate x, y position to draw text tip
43810
44038
  * @param {object} param object for drawing text tip
@@ -44278,7 +44506,6 @@ var chart_core_EvChart = /*#__PURE__*/function () {
44278
44506
 
44279
44507
  switch (chartType) {
44280
44508
  case 'line':
44281
- case 'heatMap':
44282
44509
  {
44283
44510
  var legendHitInfo = hitInfo === null || hitInfo === void 0 ? void 0 : hitInfo.legend;
44284
44511
  series.draw(_objectSpread2({
@@ -44287,10 +44514,34 @@ var chart_core_EvChart = /*#__PURE__*/function () {
44287
44514
  break;
44288
44515
  }
44289
44516
 
44290
- case 'bar':
44517
+ case 'heatMap':
44291
44518
  {
44292
44519
  var _legendHitInfo = hitInfo === null || hitInfo === void 0 ? void 0 : hitInfo.legend;
44293
44520
 
44521
+ var selectInfo = void 0;
44522
+ var defaultSelectInfo = this.defaultSelectItemInfo;
44523
+
44524
+ if (defaultSelectInfo !== null && defaultSelectInfo !== void 0 && defaultSelectInfo.dataIndex || (defaultSelectInfo === null || defaultSelectInfo === void 0 ? void 0 : defaultSelectInfo.dataIndex) === 0) {
44525
+ selectInfo = _objectSpread2({}, defaultSelectInfo);
44526
+ } else {
44527
+ selectInfo = null;
44528
+ }
44529
+
44530
+ series.draw(_objectSpread2({
44531
+ legendHitInfo: _legendHitInfo,
44532
+ selectInfo: selectInfo,
44533
+ selectItem: {
44534
+ option: selectItem,
44535
+ selected: selectInfo
44536
+ }
44537
+ }, opt));
44538
+ break;
44539
+ }
44540
+
44541
+ case 'bar':
44542
+ {
44543
+ var _legendHitInfo2 = hitInfo === null || hitInfo === void 0 ? void 0 : hitInfo.legend;
44544
+
44294
44545
  var _this$options3 = this.options,
44295
44546
  thickness = _this$options3.thickness,
44296
44547
  cPadRatio = _this$options3.cPadRatio,
@@ -44301,7 +44552,7 @@ var chart_core_EvChart = /*#__PURE__*/function () {
44301
44552
  borderRadius: borderRadius,
44302
44553
  showSeriesCount: showSeriesCount,
44303
44554
  showIndex: showIndex,
44304
- legendHitInfo: _legendHitInfo
44555
+ legendHitInfo: _legendHitInfo2
44305
44556
  }, opt));
44306
44557
 
44307
44558
  if (series.show) {
@@ -44315,21 +44566,21 @@ var chart_core_EvChart = /*#__PURE__*/function () {
44315
44566
  {
44316
44567
  var _this$lastHitInfo, _this$defaultSelectIt;
44317
44568
 
44318
- var selectInfo = (_this$lastHitInfo = this.lastHitInfo) !== null && _this$lastHitInfo !== void 0 ? _this$lastHitInfo : {
44569
+ var _selectInfo = (_this$lastHitInfo = this.lastHitInfo) !== null && _this$lastHitInfo !== void 0 ? _this$lastHitInfo : {
44319
44570
  sId: (_this$defaultSelectIt = this.defaultSelectItemInfo) === null || _this$defaultSelectIt === void 0 ? void 0 : _this$defaultSelectIt.seriesID
44320
44571
  };
44321
44572
 
44322
- var _legendHitInfo2 = hitInfo === null || hitInfo === void 0 ? void 0 : hitInfo.legend;
44573
+ var _legendHitInfo3 = hitInfo === null || hitInfo === void 0 ? void 0 : hitInfo.legend;
44323
44574
 
44324
44575
  if (this.options.sunburst) {
44325
44576
  this.drawSunburst({
44326
- selectInfo: selectInfo,
44327
- legendHitInfo: _legendHitInfo2
44577
+ selectInfo: _selectInfo,
44578
+ legendHitInfo: _legendHitInfo3
44328
44579
  });
44329
44580
  } else {
44330
44581
  this.drawPie({
44331
- selectInfo: selectInfo,
44332
- legendHitInfo: _legendHitInfo2
44582
+ selectInfo: _selectInfo,
44583
+ legendHitInfo: _legendHitInfo3
44333
44584
  });
44334
44585
  }
44335
44586
 
@@ -44342,29 +44593,29 @@ var chart_core_EvChart = /*#__PURE__*/function () {
44342
44593
 
44343
44594
  case 'scatter':
44344
44595
  {
44345
- var _legendHitInfo3 = hitInfo === null || hitInfo === void 0 ? void 0 : hitInfo.legend;
44596
+ var _legendHitInfo4 = hitInfo === null || hitInfo === void 0 ? void 0 : hitInfo.legend;
44346
44597
 
44347
- var _selectInfo = void 0;
44598
+ var _selectInfo2 = void 0;
44348
44599
 
44349
44600
  if (selectItem.use && selectItem.useSeriesOpacity) {
44350
44601
  var lastHitInfo = this.lastHitInfo;
44351
- var defaultSelectInfo = this.defaultSelectItemInfo;
44602
+ var _defaultSelectInfo = this.defaultSelectItemInfo;
44352
44603
 
44353
44604
  if (lastHitInfo !== null && lastHitInfo !== void 0 && lastHitInfo.maxIndex || (lastHitInfo === null || lastHitInfo === void 0 ? void 0 : lastHitInfo.maxIndex) === 0) {
44354
- _selectInfo = {
44605
+ _selectInfo2 = {
44355
44606
  seriesID: lastHitInfo.sId,
44356
44607
  dataIndex: lastHitInfo.maxIndex
44357
44608
  };
44358
- } else if (defaultSelectInfo !== null && defaultSelectInfo !== void 0 && defaultSelectInfo.dataIndex || (defaultSelectInfo === null || defaultSelectInfo === void 0 ? void 0 : defaultSelectInfo.dataIndex) === 0) {
44359
- _selectInfo = _objectSpread2({}, defaultSelectInfo);
44609
+ } else if (_defaultSelectInfo !== null && _defaultSelectInfo !== void 0 && _defaultSelectInfo.dataIndex || (_defaultSelectInfo === null || _defaultSelectInfo === void 0 ? void 0 : _defaultSelectInfo.dataIndex) === 0) {
44610
+ _selectInfo2 = _objectSpread2({}, _defaultSelectInfo);
44360
44611
  } else {
44361
- _selectInfo = null;
44612
+ _selectInfo2 = null;
44362
44613
  }
44363
44614
  }
44364
44615
 
44365
44616
  series.draw(_objectSpread2({
44366
- legendHitInfo: _legendHitInfo3,
44367
- selectInfo: _selectInfo
44617
+ legendHitInfo: _legendHitInfo4,
44618
+ selectInfo: _selectInfo2
44368
44619
  }, opt));
44369
44620
  break;
44370
44621
  }
@@ -44844,7 +45095,7 @@ var chart_core_EvChart = /*#__PURE__*/function () {
44844
45095
  if (options.legend.show) {
44845
45096
  var _options$legend, _options$legend$table;
44846
45097
 
44847
- var useTable = !!((_options$legend = options.legend) !== null && _options$legend !== void 0 && (_options$legend$table = _options$legend.table) !== null && _options$legend$table !== void 0 && _options$legend$table.use) && options.type !== 'heatmap' && options.type !== 'scatter';
45098
+ var useTable = !!((_options$legend = options.legend) !== null && _options$legend !== void 0 && (_options$legend$table = _options$legend.table) !== null && _options$legend$table !== void 0 && _options$legend$table.use) && options.type !== 'heatMap' && options.type !== 'scatter';
44848
45099
 
44849
45100
  if (!this.isInitLegend) {
44850
45101
  this.initLegend();
@@ -45738,7 +45989,15 @@ var DEFAULT_OPTIONS = {
45738
45989
  fontFamily: 'Roboto',
45739
45990
  fontWeight: 400
45740
45991
  },
45741
- useSeriesOpacity: false
45992
+ useSeriesOpacity: false,
45993
+ useDeselectItem: false,
45994
+ showBorder: false,
45995
+ borderStyle: {
45996
+ color: '#FFFFFF',
45997
+ lineWidth: 1,
45998
+ opacity: 1,
45999
+ radius: 0
46000
+ }
45742
46001
  },
45743
46002
  selectLabel: {
45744
46003
  use: false,
@@ -45808,8 +46067,8 @@ var DEFAULT_OPTIONS = {
45808
46067
  heatMapColor: {
45809
46068
  min: '#FFFFFF',
45810
46069
  max: '#0052FF',
45811
- categoryCnt: 1,
45812
- categoryColors: [],
46070
+ rangeCount: 1,
46071
+ colorsByRange: [],
45813
46072
  stroke: {
45814
46073
  show: false,
45815
46074
  color: '#FFFFFF',
@@ -45865,6 +46124,7 @@ var chart_uses_useModel = function useModel(selectedLabel) {
45865
46124
  var _click = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(e) {
45866
46125
  var _e$selected, _e$selected2;
45867
46126
 
46127
+ var selectedItem;
45868
46128
  return regeneratorRuntime.wrap(function _callee$(_context) {
45869
46129
  while (1) {
45870
46130
  switch (_context.prev = _context.next) {
@@ -45874,10 +46134,20 @@ var chart_uses_useModel = function useModel(selectedLabel) {
45874
46134
 
45875
46135
  case 2:
45876
46136
  if (e.label) {
45877
- emit('update:selectedItem', {
46137
+ selectedItem = {
45878
46138
  seriesID: e.seriesId,
45879
46139
  dataIndex: e.dataIndex
45880
- });
46140
+ };
46141
+
46142
+ if ('deselect' in e) {
46143
+ if (e.deselect) {
46144
+ selectedItem = null;
46145
+ }
46146
+
46147
+ delete e.deselect;
46148
+ }
46149
+
46150
+ emit('update:selectedItem', selectedItem);
45881
46151
  }
45882
46152
 
45883
46153
  if ((_e$selected = e.selected) !== null && _e$selected !== void 0 && _e$selected.dataIndex) {
@@ -49183,6 +49453,7 @@ var treeGrid_uses_contextMenuEvent = function contextMenuEvent(params) {
49183
49453
  menuItem.disabled = !menuItem.validate(menuItem.itemId, row);
49184
49454
  }
49185
49455
 
49456
+ menuItem.selectedRow = row !== null && row !== void 0 ? row : [];
49186
49457
  return menuItem;
49187
49458
  });
49188
49459
  menuItems.push.apply(menuItems, _toConsumableArray(customItems));