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.
package/dist/evui.umd.js CHANGED
@@ -7997,7 +7997,7 @@ $({ target: 'Number', stat: true }, {
7997
7997
  /***/ "9224":
7998
7998
  /***/ (function(module) {
7999
7999
 
8000
- module.exports = JSON.parse("{\"a\":\"3.3.48\"}");
8000
+ module.exports = JSON.parse("{\"a\":\"3.3.50\"}");
8001
8001
 
8002
8002
  /***/ }),
8003
8003
 
@@ -30036,6 +30036,7 @@ var uses_contextMenuEvent = function contextMenuEvent(params) {
30036
30036
  menuItem.disabled = !menuItem.validate(menuItem.itemId, row);
30037
30037
  }
30038
30038
 
30039
+ menuItem.selectedRow = row !== null && row !== void 0 ? row : [];
30039
30040
  return menuItem;
30040
30041
  });
30041
30042
  menuItems.push.apply(menuItems, _toConsumableArray(customItems));
@@ -33171,7 +33172,7 @@ var modules = {
33171
33172
  colorState = series.colorState,
33172
33173
  isGradient = series.isGradient;
33173
33174
  var colorOpt = this.options.heatMapColor;
33174
- var categoryCnt = colorOpt.categoryCnt;
33175
+ var rangeCount = colorOpt.colorsByRange.length || colorOpt.rangeCount;
33175
33176
  var decimalPoint = colorOpt.decimalPoint;
33176
33177
  var minValue;
33177
33178
  var maxValue = 0;
@@ -33192,9 +33193,9 @@ var modules = {
33192
33193
  }
33193
33194
  });
33194
33195
 
33195
- if (isExistError && !isGradient && colorState.length === categoryCnt) {
33196
+ if (isExistError && !isGradient && colorState.length === rangeCount) {
33196
33197
  colorState.push({
33197
- id: "color#".concat(categoryCnt),
33198
+ id: "color#".concat(rangeCount),
33198
33199
  color: colorOpt.error,
33199
33200
  state: 'normal',
33200
33201
  label: 'Error',
@@ -33202,11 +33203,11 @@ var modules = {
33202
33203
  });
33203
33204
  }
33204
33205
 
33205
- var interval = maxValue > minValue ? Math.floor((maxValue - minValue) / categoryCnt) : 1;
33206
+ var interval = maxValue > minValue ? Math.floor((maxValue - minValue) / rangeCount) : 1;
33206
33207
 
33207
- if (maxValue - minValue <= categoryCnt) {
33208
+ if (maxValue - minValue <= rangeCount) {
33208
33209
  if (decimalPoint > 0) {
33209
- interval = +((maxValue - minValue) / categoryCnt).toFixed(decimalPoint);
33210
+ interval = +((maxValue - minValue) / rangeCount).toFixed(decimalPoint);
33210
33211
  } else {
33211
33212
  interval = 1;
33212
33213
  }
@@ -33300,7 +33301,7 @@ var modules = {
33300
33301
  return null;
33301
33302
  }
33302
33303
 
33303
- itemPosition = [this.getItemByPosition([dataInfo.xp, dataInfo.yp], useApproximate, dataIndex)];
33304
+ itemPosition = [this.getItemByPosition([dataInfo.xp, dataInfo.yp], useApproximate, dataIndex, true)];
33304
33305
  } else {
33305
33306
  var seriesList = Object.entries(this.seriesList);
33306
33307
  var firShowSeriesID;
@@ -33325,7 +33326,7 @@ var modules = {
33325
33326
  return null;
33326
33327
  }
33327
33328
 
33328
- 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);
33329
+ 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);
33329
33330
  });
33330
33331
  }
33331
33332
 
@@ -33353,6 +33354,8 @@ var modules = {
33353
33354
  * @param {array} offset position x and y
33354
33355
  * @param {boolean} useApproximate if it's true. it'll look for closed item on mouse position
33355
33356
  * @param {number} dataIndex selected data index
33357
+ * @param {boolean} useSelectLabelOrItem used to display select label/item at tooltip location
33358
+ *
33356
33359
  * @returns {object} clicked item information
33357
33360
  */
33358
33361
  getItemByPosition: function getItemByPosition(offset) {
@@ -33360,6 +33363,7 @@ var modules = {
33360
33363
 
33361
33364
  var useApproximate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
33362
33365
  var dataIndex = arguments.length > 2 ? arguments[2] : undefined;
33366
+ var useSelectLabelOrItem = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
33363
33367
  var seriesIDs = Object.keys(this.seriesList);
33364
33368
  var isHorizontal = !!this.options.horizontal;
33365
33369
  var maxType = null;
@@ -33377,7 +33381,7 @@ var modules = {
33377
33381
  var findFn = useApproximate ? series.findApproximateData : series.findGraphData;
33378
33382
 
33379
33383
  if (findFn) {
33380
- var item = findFn.call(series, offset, isHorizontal, dataIndex);
33384
+ var item = findFn.call(series, offset, isHorizontal, dataIndex, useSelectLabelOrItem);
33381
33385
  var data = item.data;
33382
33386
  var index = item.index;
33383
33387
 
@@ -33668,7 +33672,7 @@ var modules = {
33668
33672
  offsetX = x;
33669
33673
  }
33670
33674
 
33671
- hitInfo = this.getItemByPosition([offsetX, y], selectLabel === null || selectLabel === void 0 ? void 0 : selectLabel.useApproximateValue, dataIndex);
33675
+ hitInfo = this.getItemByPosition([offsetX, y], selectLabel === null || selectLabel === void 0 ? void 0 : selectLabel.useApproximateValue, dataIndex, true);
33672
33676
  labelIndex = (_hitInfo$maxIndex = hitInfo.maxIndex) !== null && _hitInfo$maxIndex !== void 0 ? _hitInfo$maxIndex : -1;
33673
33677
  }
33674
33678
 
@@ -34705,6 +34709,7 @@ var AXIS_OPTION = {
34705
34709
  startToZero: false,
34706
34710
  showAxis: true,
34707
34711
  axisLineColor: '#C9CFDC',
34712
+ axisLineWidth: 1,
34708
34713
  showGrid: true,
34709
34714
  gridLineColor: '#C9CFDC',
34710
34715
  showIndicator: false,
@@ -35161,6 +35166,9 @@ var element_line_Line = /*#__PURE__*/function () {
35161
35166
  }
35162
35167
  };
35163
35168
  this.data = [];
35169
+ this.beforeMouseXp = 0;
35170
+ this.beforeMouseYp = 0;
35171
+ this.beforeFindItemIndex = -1;
35164
35172
  this.size = {
35165
35173
  comboOffset: 0
35166
35174
  };
@@ -35382,14 +35390,17 @@ var element_line_Line = /*#__PURE__*/function () {
35382
35390
  }
35383
35391
  /**
35384
35392
  * Find graph item
35385
- * @param {array} offset mouse position
35393
+ * @param {array} offset mouse position
35394
+ * @param {boolean} isHorizontal
35395
+ * @param {number} dataIndex selected label data index
35396
+ * @param {boolean} useSelectLabelOrItem used to display select label/item at tooltip location
35386
35397
  *
35387
35398
  * @returns {object} graph item
35388
35399
  */
35389
35400
 
35390
35401
  }, {
35391
35402
  key: "findGraphData",
35392
- value: function findGraphData(offset, isHorizontal, dataIndex) {
35403
+ value: function findGraphData(offset, isHorizontal, dataIndex, useSelectLabelOrItem) {
35393
35404
  var xp = offset[0];
35394
35405
  var yp = offset[1];
35395
35406
  var item = {
@@ -35398,11 +35409,15 @@ var element_line_Line = /*#__PURE__*/function () {
35398
35409
  color: this.color
35399
35410
  };
35400
35411
  var gdata = this.data;
35412
+ var SPARE_XP = 0.5;
35401
35413
 
35402
35414
  if (gdata !== null && gdata !== void 0 && gdata.length) {
35403
35415
  if (typeof dataIndex === 'number' && this.show) {
35404
35416
  item.data = gdata[dataIndex];
35405
35417
  item.index = dataIndex;
35418
+ } else if (typeof this.beforeFindItemIndex === 'number' && this.show && useSelectLabelOrItem) {
35419
+ item.data = gdata[this.beforeFindItemIndex];
35420
+ item.index = this.beforeFindItemIndex;
35406
35421
  } else {
35407
35422
  var _gdata$;
35408
35423
 
@@ -35416,14 +35431,50 @@ var element_line_Line = /*#__PURE__*/function () {
35416
35431
  var y = gdata[m].yp;
35417
35432
 
35418
35433
  if (x - xpInterval < xp && xp < x + xpInterval) {
35419
- item.data = gdata[m];
35420
- item.index = m;
35434
+ var _gdata$m, _gdata$xp, _gdata, _gdata2, _gdata3;
35435
+
35436
+ 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);
35437
+
35438
+ if ((_gdata2 = gdata[m - 1]) !== null && _gdata2 !== void 0 && _gdata2.xp && (_gdata3 = gdata[m + 1]) !== null && _gdata3 !== void 0 && _gdata3.xp && curXpInterval > 0) {
35439
+ var leftXp = xp - gdata[m - 1].xp;
35440
+ var midXp = Math.abs(xp - gdata[m].xp);
35441
+ var rightXp = gdata[m + 1].xp - xp;
35442
+
35443
+ if (Math.abs(this.beforeMouseXp - xp) >= curXpInterval - SPARE_XP && (this.beforeFindItemIndex === m || midXp === rightXp || midXp === leftXp)) {
35444
+ if (this.beforeMouseXp - xp > 0) {
35445
+ item.data = gdata[this.beforeFindItemIndex - 1];
35446
+ item.index = this.beforeFindItemIndex - 1;
35447
+ } else if (this.beforeMouseXp - xp < 0) {
35448
+ item.data = gdata[this.beforeFindItemIndex + 1];
35449
+ item.index = this.beforeFindItemIndex + 1;
35450
+ } else if (this.beforeMouseYp !== yp) {
35451
+ item.data = gdata[this.beforeFindItemIndex];
35452
+ item.index = this.beforeFindItemIndex;
35453
+ }
35454
+ } else {
35455
+ var closeXp = Math.min(leftXp, midXp, rightXp);
35456
+
35457
+ if (closeXp === leftXp) {
35458
+ item.data = gdata[m - 1];
35459
+ item.index = m - 1;
35460
+ } else if (closeXp === rightXp) {
35461
+ item.data = gdata[m + 1];
35462
+ item.index = m + 1;
35463
+ } else {
35464
+ item.data = gdata[m];
35465
+ item.index = m;
35466
+ }
35467
+ }
35468
+ } else {
35469
+ item.data = gdata[m];
35470
+ item.index = m;
35471
+ }
35421
35472
 
35422
35473
  if (y - 6 <= yp && yp <= y + 6) {
35423
35474
  item.hit = true;
35424
35475
  }
35425
35476
 
35426
- return item;
35477
+ break;
35427
35478
  } else if (x + xpInterval > xp) {
35428
35479
  e = m - 1;
35429
35480
  } else {
@@ -35433,6 +35484,15 @@ var element_line_Line = /*#__PURE__*/function () {
35433
35484
  }
35434
35485
  }
35435
35486
 
35487
+ if (!useSelectLabelOrItem) {
35488
+ this.beforeMouseXp = xp;
35489
+ this.beforeMouseYp = yp;
35490
+
35491
+ if (typeof item.index === 'number') {
35492
+ this.beforeFindItemIndex = item.index;
35493
+ }
35494
+ }
35495
+
35436
35496
  return item;
35437
35497
  }
35438
35498
  /**
@@ -36885,10 +36945,11 @@ var element_pie_Pie = /*#__PURE__*/function () {
36885
36945
 
36886
36946
 
36887
36947
 
36948
+
36888
36949
 
36889
36950
 
36890
36951
  var element_heatmap_HeatMap = /*#__PURE__*/function () {
36891
- function HeatMap(sId, opt, colorOpt, isGradient) {
36952
+ function HeatMap(sId, opt, colorOpt, isHorizontal, isGradient) {
36892
36953
  var _this = this;
36893
36954
 
36894
36955
  _classCallCheck(this, HeatMap);
@@ -36897,6 +36958,7 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
36897
36958
  Object.keys(merged).forEach(function (key) {
36898
36959
  _this[key] = merged[key];
36899
36960
  });
36961
+ this.isHorizontal = isHorizontal;
36900
36962
  this.isGradient = isGradient;
36901
36963
  this.createColorState(colorOpt);
36902
36964
  this.sId = sId;
@@ -36926,8 +36988,8 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
36926
36988
  var regex = /[^0-9]&[^,]/g;
36927
36989
  var min = colorOpt.min,
36928
36990
  max = colorOpt.max,
36929
- categoryCnt = colorOpt.categoryCnt,
36930
- categoryColors = colorOpt.categoryColors,
36991
+ rangeCount = colorOpt.rangeCount,
36992
+ colorsByRange = colorOpt.colorsByRange,
36931
36993
  error = colorOpt.error,
36932
36994
  stroke = colorOpt.stroke;
36933
36995
  var minColor = min.includes('#') ? helpers_util.hexToRgb(min) : min.replace(regex, '');
@@ -36957,14 +37019,13 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
36957
37019
  maxG: maxG,
36958
37020
  maxB: maxB
36959
37021
  },
36960
- categoryCnt: categoryCnt,
37022
+ rangeCount: rangeCount,
36961
37023
  start: 0,
36962
37024
  end: 100,
36963
37025
  selectedValue: null
36964
37026
  });
36965
- } else if (categoryColors.length) {
36966
- colorOpt.categoryCnt = categoryColors.length;
36967
- categoryColors.forEach(function (_ref, ix) {
37027
+ } else if (colorsByRange.length) {
37028
+ colorsByRange.forEach(function (_ref, ix) {
36968
37029
  var color = _ref.color,
36969
37030
  label = _ref.label;
36970
37031
  colorState.push({
@@ -36976,11 +37037,11 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
36976
37037
  });
36977
37038
  });
36978
37039
  } else {
36979
- var unitR = Math.floor((minR - maxR) / (categoryCnt - 1));
36980
- var unitG = Math.floor((minG - maxG) / (categoryCnt - 1));
36981
- var unitB = Math.floor((minB - maxB) / (categoryCnt - 1));
37040
+ var unitR = Math.floor((minR - maxR) / (rangeCount - 1));
37041
+ var unitG = Math.floor((minG - maxG) / (rangeCount - 1));
37042
+ var unitB = Math.floor((minB - maxB) / (rangeCount - 1));
36982
37043
 
36983
- for (var ix = 0; ix < categoryCnt; ix++) {
37044
+ for (var ix = 0; ix < rangeCount; ix++) {
36984
37045
  var r = +minR - unitR * ix;
36985
37046
  var g = +minG - unitG * ix;
36986
37047
  var b = +minB - unitB * ix;
@@ -37015,8 +37076,8 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
37015
37076
  return "rgb(".concat(r, ",").concat(g, ",").concat(b, ")");
37016
37077
  }
37017
37078
  }, {
37018
- key: "getColorIndexForIcon",
37019
- value: function getColorIndexForIcon(value) {
37079
+ key: "getColorIndexByValue",
37080
+ value: function getColorIndexByValue(value) {
37020
37081
  var _this$valueOpt = this.valueOpt,
37021
37082
  existError = _this$valueOpt.existError,
37022
37083
  min = _this$valueOpt.min,
@@ -37044,7 +37105,7 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
37044
37105
  max = _this$valueOpt2.max;
37045
37106
  var itemInfo = {
37046
37107
  show: false,
37047
- opacity: 0,
37108
+ opacity: 1,
37048
37109
  dataColor: null,
37049
37110
  id: null,
37050
37111
  isHighlight: null
@@ -37060,11 +37121,10 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
37060
37121
  if (value < 0 || start <= ratio && ratio <= end) {
37061
37122
  itemInfo.show = true;
37062
37123
  itemInfo.isHighlight = selectedValue !== null && Math.floor(value) === Math.floor(min + (max - min) * (selectedValue / 100));
37063
- itemInfo.opacity = 1;
37064
37124
  itemInfo.dataColor = value < 0 ? this.errorColor : this.getColorForGradient(ratio);
37065
37125
  }
37066
37126
  } else {
37067
- var colorIndex = this.getColorIndexForIcon(value);
37127
+ var colorIndex = this.getColorIndexByValue(value);
37068
37128
  var _this$colorState$colo = this.colorState[colorIndex],
37069
37129
  show = _this$colorState$colo.show,
37070
37130
  state = _this$colorState$colo.state,
@@ -37080,18 +37140,26 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
37080
37140
  }
37081
37141
  }, {
37082
37142
  key: "drawItem",
37083
- value: function drawItem(ctx, x, y, w, h) {
37143
+ value: function drawItem(ctx, x, y, w, h, borderOpt) {
37084
37144
  ctx.beginPath();
37085
37145
 
37086
- if (this.stroke.show) {
37087
- var radius = this.stroke.radius;
37146
+ if (borderOpt.show) {
37147
+ var radius = borderOpt.radius;
37148
+
37149
+ if (radius > 0) {
37150
+ var minSize = Math.min(w, h);
37151
+ var r = radius;
37088
37152
 
37089
- if (radius > 0 && radius < h && radius < w) {
37090
- ctx.moveTo(x + radius, y);
37091
- ctx.arcTo(x + w, y, x + w, y + h, radius);
37092
- ctx.arcTo(x + w, y + h, x, y + h, radius);
37093
- ctx.arcTo(x, y + h, x, y, radius);
37094
- ctx.arcTo(x, y, x + w, y, radius);
37153
+ if (r > minSize / 2) {
37154
+ r = Math.floor(minSize / 2);
37155
+ }
37156
+
37157
+ ctx.moveTo(x + r, y);
37158
+ ctx.arcTo(x + w, y, x + w, y + h, r);
37159
+ ctx.arcTo(x + w, y + h, x, y + h, r);
37160
+ ctx.arcTo(x, y + h, x, y, r);
37161
+ ctx.arcTo(x, y, x + w, y, r);
37162
+ ctx.stroke();
37095
37163
  ctx.fill();
37096
37164
  } else {
37097
37165
  ctx.strokeRect(x, y, w, h);
@@ -37141,15 +37209,46 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
37141
37209
  var ctx = param.ctx,
37142
37210
  chartRect = param.chartRect,
37143
37211
  labelOffset = param.labelOffset,
37144
- overlayCtx = param.overlayCtx;
37212
+ overlayCtx = param.overlayCtx,
37213
+ selectLabel = param.selectLabel,
37214
+ legendHitInfo = param.legendHitInfo,
37215
+ selectItem = param.selectItem;
37145
37216
  var xArea = chartRect.chartWidth - (labelOffset.left + labelOffset.right);
37146
37217
  var yArea = chartRect.chartHeight - (labelOffset.top + labelOffset.bottom);
37147
37218
  var xsp = chartRect.x1 + labelOffset.left;
37148
37219
  var ysp = chartRect.y2 - labelOffset.bottom;
37149
37220
  this.size.w = xArea / this.labels.x.length;
37150
37221
  this.size.h = yArea / this.labels.y.length;
37151
- this.data.forEach(function (item) {
37152
- var xp = _this2.calculateXY('x', item.x, xsp);
37222
+
37223
+ var getOpacity = function getOpacity(item, opacity, index) {
37224
+ var selectLabelOption = selectLabel === null || selectLabel === void 0 ? void 0 : selectLabel.option;
37225
+ var useSelectLabel = (selectLabelOption === null || selectLabelOption === void 0 ? void 0 : selectLabelOption.use) && (selectLabelOption === null || selectLabelOption === void 0 ? void 0 : selectLabelOption.useSeriesOpacity);
37226
+ var selectItemOption = selectItem === null || selectItem === void 0 ? void 0 : selectItem.option;
37227
+ var useSelectItem = (selectItemOption === null || selectItemOption === void 0 ? void 0 : selectItemOption.use) && (selectItemOption === null || selectItemOption === void 0 ? void 0 : selectItemOption.useSeriesOpacity);
37228
+
37229
+ if (!legendHitInfo) {
37230
+ var isDownplay = false;
37231
+
37232
+ if (useSelectItem) {
37233
+ var _selectItem$selected;
37234
+
37235
+ 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);
37236
+ } else if (useSelectLabel) {
37237
+ var _selectLabel$selected;
37238
+
37239
+ var selectedLabelList = selectLabel === null || selectLabel === void 0 ? void 0 : (_selectLabel$selected = selectLabel.selected) === null || _selectLabel$selected === void 0 ? void 0 : _selectLabel$selected.label;
37240
+ isDownplay = selectedLabelList.length && !selectedLabelList.includes(_this2.isHorizontal ? item.y : item.x);
37241
+ }
37242
+
37243
+ return isDownplay ? 0.1 : 1;
37244
+ }
37245
+
37246
+ return opacity;
37247
+ };
37248
+
37249
+ this.data.forEach(function (item, index) {
37250
+ var axisLineWidth = 1;
37251
+ var xp = _this2.calculateXY('x', item.x, xsp) + axisLineWidth;
37153
37252
 
37154
37253
  var yp = _this2.calculateXY('y', item.y, ysp);
37155
37254
 
@@ -37165,27 +37264,40 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
37165
37264
  id = _this2$getItemInfo.id,
37166
37265
  isHighlight = _this2$getItemInfo.isHighlight;
37167
37266
 
37267
+ var itemOpacity = getOpacity(item, opacity, index);
37168
37268
  item.dataColor = dataColor;
37169
37269
  item.cId = id;
37170
37270
  ctx.save();
37171
37271
 
37172
37272
  if (show) {
37173
- ctx.fillStyle = helpers_util.colorStringToRgba(item.dataColor, opacity);
37174
-
37175
- if (_this2.stroke.show) {
37176
- var _this2$stroke = _this2.stroke,
37177
- color = _this2$stroke.color,
37178
- lineWidth = _this2$stroke.lineWidth,
37179
- sOpacity = _this2$stroke.opacity;
37180
- ctx.strokeStyle = helpers_util.colorStringToRgba(color, opacity === 1 ? sOpacity : opacity);
37273
+ var _selectItem$selected2;
37274
+
37275
+ ctx.fillStyle = helpers_util.colorStringToRgba(item.dataColor, itemOpacity);
37276
+ var borderOpt = _this2.stroke;
37277
+ var selectItemOption = selectItem === null || selectItem === void 0 ? void 0 : selectItem.option;
37278
+ var useSelectItem = (selectItemOption === null || selectItemOption === void 0 ? void 0 : selectItemOption.use) && (selectItemOption === null || selectItemOption === void 0 ? void 0 : selectItemOption.showBorder);
37279
+ var isHit = index === (selectItem === null || selectItem === void 0 ? void 0 : (_selectItem$selected2 = selectItem.selected) === null || _selectItem$selected2 === void 0 ? void 0 : _selectItem$selected2.dataIndex);
37280
+
37281
+ if (useSelectItem && isHit) {
37282
+ borderOpt = _objectSpread2({
37283
+ show: selectItemOption === null || selectItemOption === void 0 ? void 0 : selectItemOption.showBorder
37284
+ }, selectItemOption === null || selectItemOption === void 0 ? void 0 : selectItemOption.borderStyle);
37285
+ }
37286
+
37287
+ if (borderOpt.show) {
37288
+ var _borderOpt = borderOpt,
37289
+ color = _borderOpt.color,
37290
+ lineWidth = _borderOpt.lineWidth,
37291
+ borderOpacity = _borderOpt.opacity;
37292
+ ctx.strokeStyle = helpers_util.colorStringToRgba(color, itemOpacity === 1 ? borderOpacity : itemOpacity);
37181
37293
  ctx.lineWidth = lineWidth;
37182
- xp += lineWidth * 1.5;
37183
- yp += lineWidth * 1.5;
37184
- w -= lineWidth * 2;
37185
- h -= lineWidth * 2;
37294
+ xp += lineWidth * 0.5;
37295
+ yp += lineWidth * 0.5;
37296
+ w -= lineWidth;
37297
+ h -= lineWidth;
37186
37298
  }
37187
37299
 
37188
- _this2.drawItem(ctx, xp, yp, w, h);
37300
+ _this2.drawItem(ctx, xp, yp, w, h, borderOpt);
37189
37301
 
37190
37302
  ctx.restore();
37191
37303
  item.xp = xp;
@@ -37369,16 +37481,25 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
37369
37481
  }
37370
37482
 
37371
37483
  ctx.save();
37372
- ctx.shadowOffsetX = 2;
37373
- ctx.shadowOffsetY = 2;
37484
+ ctx.shadowOffsetX = 0;
37485
+ ctx.shadowOffsetY = 0;
37374
37486
  ctx.shadowBlur = 4;
37375
37487
 
37376
37488
  if (x !== null && y !== null && isShow) {
37377
37489
  var color = gdata.dataColor;
37378
- ctx.shadowColor = helpers_util.colorStringToRgba('#605F5F');
37490
+ ctx.shadowColor = helpers_util.colorStringToRgba('#959494');
37379
37491
  ctx.strokeStyle = helpers_util.colorStringToRgba(color);
37380
37492
  ctx.fillStyle = helpers_util.colorStringToRgba(color);
37381
- this.drawItem(ctx, x - 2, y - 2, w + 4, h + 4);
37493
+
37494
+ if (this.stroke.show) {
37495
+ var lineWidth = this.stroke.lineWidth;
37496
+ x += lineWidth * 0.5;
37497
+ y += lineWidth * 0.5;
37498
+ w -= lineWidth;
37499
+ h -= lineWidth;
37500
+ }
37501
+
37502
+ this.drawItem(ctx, x - 0.5, y - 0.5, w + 1, h + 1, this.stroke);
37382
37503
  ctx.restore();
37383
37504
 
37384
37505
  if (this.showValue.use) {
@@ -37408,7 +37529,7 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
37408
37529
  name: null
37409
37530
  };
37410
37531
  var gdata = this.data;
37411
- var foundItem = gdata.find(function (data) {
37532
+ var itemIndex = gdata.findIndex(function (data) {
37412
37533
  var x = data.xp,
37413
37534
  y = data.yp,
37414
37535
  wSize = data.w,
@@ -37416,9 +37537,11 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
37416
37537
  return x <= xp && xp <= x + wSize && y <= yp && yp <= y + hSize;
37417
37538
  });
37418
37539
 
37419
- if (foundItem) {
37540
+ if (itemIndex > -1) {
37541
+ var foundItem = gdata[itemIndex];
37420
37542
  item.data = foundItem;
37421
37543
  item.color = foundItem.dataColor;
37544
+ item.index = itemIndex;
37422
37545
  item.hit = true;
37423
37546
  }
37424
37547
 
@@ -37610,7 +37733,7 @@ var model_series_modules = {
37610
37733
  heatMapColor = _this$options.heatMapColor,
37611
37734
  legend = _this$options.legend;
37612
37735
  var isGradient = legend.type === 'gradient';
37613
- return new element_heatmap(id, opt, heatMapColor, isGradient);
37736
+ return new element_heatmap(id, opt, heatMapColor, isHorizontal, isGradient);
37614
37737
  }
37615
37738
 
37616
37739
  return false;
@@ -37927,7 +38050,7 @@ var scale_Scale = /*#__PURE__*/function () {
37927
38050
  }
37928
38051
 
37929
38052
  if (this.showAxis) {
37930
- ctx.lineWidth = 2;
38053
+ ctx.lineWidth = this.axisLineWidth;
37931
38054
  aliasPixel = helpers_util.aliasPixel(ctx.lineWidth);
37932
38055
  ctx.beginPath();
37933
38056
  ctx.strokeStyle = this.axisLineColor;
@@ -38981,7 +39104,7 @@ var scale_step_StepScale = /*#__PURE__*/function (_Scale) {
38981
39104
  }
38982
39105
 
38983
39106
  ctx.fillStyle = this.labelStyle.color;
38984
- ctx.lineWidth = 1;
39107
+ ctx.lineWidth = this.axisLineWidth;
38985
39108
  var aliasPixel = helpers_util.aliasPixel(ctx.lineWidth);
38986
39109
  ctx.beginPath();
38987
39110
  ctx.strokeStyle = this.axisLineColor;
@@ -39395,7 +39518,7 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
39395
39518
  }
39396
39519
 
39397
39520
  ctx.fillStyle = this.labelStyle.color;
39398
- ctx.lineWidth = 1;
39521
+ ctx.lineWidth = this.axisLineWidth;
39399
39522
  var aliasPixel = helpers_util.aliasPixel(ctx.lineWidth);
39400
39523
  ctx.beginPath();
39401
39524
  ctx.strokeStyle = this.axisLineColor;
@@ -40094,6 +40217,10 @@ var plugins_legend_modules = {
40094
40217
  }
40095
40218
 
40096
40219
  var targetId = targetDOM === null || targetDOM === void 0 ? void 0 : (_targetDOM$series4 = targetDOM.series) === null || _targetDOM$series4 === void 0 ? void 0 : _targetDOM$series4.cId;
40220
+ var legendHitInfo = {
40221
+ sId: targetId,
40222
+ type: _this5.options.type
40223
+ };
40097
40224
  series.colorState.forEach(function (colorItem) {
40098
40225
  colorItem.state = colorItem.id === targetId ? 'highlight' : 'downplay';
40099
40226
  });
@@ -40103,6 +40230,9 @@ var plugins_legend_modules = {
40103
40230
  updateSelTip: {
40104
40231
  update: false,
40105
40232
  keepDomain: false
40233
+ },
40234
+ hitInfo: {
40235
+ legend: legendHitInfo
40106
40236
  }
40107
40237
  });
40108
40238
  };
@@ -41519,6 +41649,8 @@ var es_object_from_entries = __webpack_require__("c1f9");
41519
41649
 
41520
41650
 
41521
41651
 
41652
+
41653
+
41522
41654
  var plugins_interaction_modules = {
41523
41655
  /**
41524
41656
  * Hide legend components by manipulating css
@@ -41665,15 +41797,19 @@ var plugins_interaction_modules = {
41665
41797
 
41666
41798
  var hitInfo = _this.getItemByPosition(offset, false);
41667
41799
 
41668
- if (hitInfo.label !== null) {
41669
- _this.render(hitInfo);
41670
- }
41671
-
41672
41800
  args.label = hitInfo.label;
41673
41801
  args.value = hitInfo.value;
41674
41802
  args.seriesId = hitInfo.sId;
41675
41803
  args.dataIndex = hitInfo.maxIndex;
41676
41804
  args.acc = hitInfo.acc;
41805
+
41806
+ if (_this.options.type === 'heatMap') {
41807
+ args.deselect = _this.setDeselectItem(hitInfo);
41808
+ }
41809
+
41810
+ if (hitInfo.label !== null) {
41811
+ _this.render(hitInfo);
41812
+ }
41677
41813
  } else if (_this.options.selectLabel.use && _this.options.selectLabel.useClick) {
41678
41814
  var _offset = _this.getMousePosition(e);
41679
41815
 
@@ -42206,14 +42342,18 @@ var plugins_interaction_modules = {
42206
42342
  var _this3 = this;
42207
42343
 
42208
42344
  if (this.options.selectLabel.use) {
42209
- var limit = this.options.selectLabel.limit;
42210
-
42211
42345
  if (!this.defaultSelectInfo) {
42212
42346
  this.defaultSelectInfo = {
42213
42347
  dataIndex: []
42214
42348
  };
42215
42349
  }
42216
42350
 
42351
+ if (this.options.type === 'heatMap') {
42352
+ this.initSelectedInfoForHeatMap();
42353
+ return;
42354
+ }
42355
+
42356
+ var limit = this.options.selectLabel.limit;
42217
42357
  var infoObj = this.defaultSelectInfo;
42218
42358
  infoObj.dataIndex.splice(limit);
42219
42359
  infoObj.label = infoObj.dataIndex.map(function (i) {
@@ -42238,6 +42378,29 @@ var plugins_interaction_modules = {
42238
42378
  }
42239
42379
  },
42240
42380
 
42381
+ /**
42382
+ * init defaultSelectInfo object for HeatMap.
42383
+ * - at selectLabel using: set each series data and label text
42384
+ */
42385
+ initSelectedInfoForHeatMap: function initSelectedInfoForHeatMap() {
42386
+ var _this4 = this;
42387
+
42388
+ var limit = this.options.selectLabel.limit;
42389
+ var isHorizontal = this.options.horizontal;
42390
+ var infoObj = this.defaultSelectInfo;
42391
+ infoObj.dataIndex.splice(limit);
42392
+ var targetLabel = isHorizontal ? 'y' : 'x';
42393
+ infoObj.label = infoObj.dataIndex.map(function (i) {
42394
+ return _this4.data.labels[targetLabel][i];
42395
+ });
42396
+ var dataValues = Object.values(this.data.data)[0];
42397
+ infoObj.data = dataValues.filter(function (_ref5) {
42398
+ var x = _ref5.x,
42399
+ y = _ref5.y;
42400
+ return infoObj.label.includes(isHorizontal ? y : x);
42401
+ });
42402
+ },
42403
+
42241
42404
  /**
42242
42405
  * Add or delete selected label index, according to policy and option
42243
42406
  * (set each series data and label text)
@@ -42333,12 +42496,12 @@ var plugins_interaction_modules = {
42333
42496
  * object.range: coordinate-based range in graph
42334
42497
  * @returns {object}
42335
42498
  */
42336
- getSelectionRage: function getSelectionRage(_ref5) {
42337
- var xsp = _ref5.xsp,
42338
- ysp = _ref5.ysp,
42339
- width = _ref5.width,
42340
- height = _ref5.height,
42341
- range = _ref5.range;
42499
+ getSelectionRage: function getSelectionRage(_ref6) {
42500
+ var xsp = _ref6.xsp,
42501
+ ysp = _ref6.ysp,
42502
+ width = _ref6.width,
42503
+ height = _ref6.height,
42504
+ range = _ref6.range;
42342
42505
  var dataRangeX = this.axesSteps.x.length ? this.axesSteps.x[0] : null;
42343
42506
  var dataRangeY = this.axesSteps.y.length ? this.axesSteps.y[0] : null;
42344
42507
 
@@ -42395,11 +42558,11 @@ var plugins_interaction_modules = {
42395
42558
 
42396
42559
  var sId = Object.keys(this.seriesList)[0];
42397
42560
 
42398
- var _ref6 = (_this$seriesList$sId$ = this.seriesList[sId].findSelectionRange(range)) !== null && _this$seriesList$sId$ !== void 0 ? _this$seriesList$sId$ : {},
42399
- xMin = _ref6.xMin,
42400
- xMax = _ref6.xMax,
42401
- yMin = _ref6.yMin,
42402
- yMax = _ref6.yMax;
42561
+ var _ref7 = (_this$seriesList$sId$ = this.seriesList[sId].findSelectionRange(range)) !== null && _this$seriesList$sId$ !== void 0 ? _this$seriesList$sId$ : {},
42562
+ xMin = _ref7.xMin,
42563
+ xMax = _ref7.xMax,
42564
+ yMin = _ref7.yMin,
42565
+ yMax = _ref7.yMax;
42403
42566
 
42404
42567
  return {
42405
42568
  xMin: xMin !== null && xMin !== void 0 ? xMin : dataRangeX.graphMin,
@@ -42407,6 +42570,23 @@ var plugins_interaction_modules = {
42407
42570
  yMin: yMin !== null && yMin !== void 0 ? yMin : dataRangeY.graphMin,
42408
42571
  yMax: yMax !== null && yMax !== void 0 ? yMax : dataRangeY.graphMax
42409
42572
  };
42573
+ },
42574
+ setDeselectItem: function setDeselectItem(hitInfo) {
42575
+ var deselect = false;
42576
+
42577
+ if (this.options.selectItem.useDeselectItem) {
42578
+ var _this$defaultSelectIt;
42579
+
42580
+ 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);
42581
+
42582
+ if (!isNaN(hitInfo === null || hitInfo === void 0 ? void 0 : hitInfo.maxIndex) && isEqualSelectItem) {
42583
+ deselect = true;
42584
+ this.defaultSelectItemInfo = null;
42585
+ return true;
42586
+ }
42587
+ }
42588
+
42589
+ return deselect;
42410
42590
  }
42411
42591
  };
42412
42592
  /* harmony default export */ var plugins_interaction = (plugins_interaction_modules);
@@ -43434,7 +43614,8 @@ var element_tip_modules = {
43434
43614
  var isExistSelectedLabel;
43435
43615
 
43436
43616
  if (labelTipOpt.use && labelTipOpt.showTip) {
43437
- isExistSelectedLabel = this.drawLabelTip();
43617
+ var isHeatMap = opt.type === 'heatMap';
43618
+ isExistSelectedLabel = isHeatMap ? this.drawLabelTipForHeatMap() : this.drawLabelTip();
43438
43619
  }
43439
43620
 
43440
43621
  var executeDrawIndicator = function executeDrawIndicator(tipOpt) {
@@ -43814,6 +43995,53 @@ var element_tip_modules = {
43814
43995
  return drawTip;
43815
43996
  },
43816
43997
 
43998
+ /**
43999
+ * Draw Selected Label Tip
44000
+ * @returns {boolean} Whether drew at least one tip
44001
+ */
44002
+ drawLabelTipForHeatMap: function drawLabelTipForHeatMap() {
44003
+ var _this3 = this;
44004
+
44005
+ var opt = this.options;
44006
+ var isHorizontal = !!opt.horizontal;
44007
+ var labelTipOpt = opt.selectLabel;
44008
+ var dataIndex = this.defaultSelectInfo.dataIndex;
44009
+ var drawTip = false;
44010
+
44011
+ if (dataIndex) {
44012
+ drawTip = true;
44013
+ var chartRect = this.chartRect;
44014
+ var labelOffset = this.labelOffset;
44015
+ var aPos = {
44016
+ x1: chartRect.x1 + labelOffset.left,
44017
+ x2: chartRect.x2 - labelOffset.right,
44018
+ y1: chartRect.y1 + labelOffset.top,
44019
+ y2: chartRect.y2 - labelOffset.bottom
44020
+ };
44021
+ var labelAxes = isHorizontal ? this.axesY[0] : this.axesX[0];
44022
+ var labelStartPoint = aPos[labelAxes.units.rectStart];
44023
+ var labelEndPoint = aPos[labelAxes.units.rectEnd];
44024
+ var labelGap = (labelEndPoint - labelStartPoint) / labelAxes.labels.length;
44025
+ var valueAxes = isHorizontal ? this.axesX[0] : this.axesY[0];
44026
+ var offset = 6 * (isHorizontal ? 1 : -1);
44027
+ var gp = aPos[valueAxes.units.rectEnd] + offset;
44028
+ dataIndex === null || dataIndex === void 0 ? void 0 : dataIndex.forEach(function (index) {
44029
+ var labelCenter = Math.round(labelStartPoint + labelGap * index);
44030
+ var dp = labelCenter + labelGap / 2;
44031
+
44032
+ _this3.showTip({
44033
+ context: _this3.bufferCtx,
44034
+ x: isHorizontal ? gp : dp,
44035
+ y: isHorizontal ? dp : gp,
44036
+ opt: labelTipOpt,
44037
+ isSamePos: false
44038
+ });
44039
+ });
44040
+ }
44041
+
44042
+ return drawTip;
44043
+ },
44044
+
43817
44045
  /**
43818
44046
  * Calculate x, y position to draw text tip
43819
44047
  * @param {object} param object for drawing text tip
@@ -44287,7 +44515,6 @@ var chart_core_EvChart = /*#__PURE__*/function () {
44287
44515
 
44288
44516
  switch (chartType) {
44289
44517
  case 'line':
44290
- case 'heatMap':
44291
44518
  {
44292
44519
  var legendHitInfo = hitInfo === null || hitInfo === void 0 ? void 0 : hitInfo.legend;
44293
44520
  series.draw(_objectSpread2({
@@ -44296,10 +44523,34 @@ var chart_core_EvChart = /*#__PURE__*/function () {
44296
44523
  break;
44297
44524
  }
44298
44525
 
44299
- case 'bar':
44526
+ case 'heatMap':
44300
44527
  {
44301
44528
  var _legendHitInfo = hitInfo === null || hitInfo === void 0 ? void 0 : hitInfo.legend;
44302
44529
 
44530
+ var selectInfo = void 0;
44531
+ var defaultSelectInfo = this.defaultSelectItemInfo;
44532
+
44533
+ if (defaultSelectInfo !== null && defaultSelectInfo !== void 0 && defaultSelectInfo.dataIndex || (defaultSelectInfo === null || defaultSelectInfo === void 0 ? void 0 : defaultSelectInfo.dataIndex) === 0) {
44534
+ selectInfo = _objectSpread2({}, defaultSelectInfo);
44535
+ } else {
44536
+ selectInfo = null;
44537
+ }
44538
+
44539
+ series.draw(_objectSpread2({
44540
+ legendHitInfo: _legendHitInfo,
44541
+ selectInfo: selectInfo,
44542
+ selectItem: {
44543
+ option: selectItem,
44544
+ selected: selectInfo
44545
+ }
44546
+ }, opt));
44547
+ break;
44548
+ }
44549
+
44550
+ case 'bar':
44551
+ {
44552
+ var _legendHitInfo2 = hitInfo === null || hitInfo === void 0 ? void 0 : hitInfo.legend;
44553
+
44303
44554
  var _this$options3 = this.options,
44304
44555
  thickness = _this$options3.thickness,
44305
44556
  cPadRatio = _this$options3.cPadRatio,
@@ -44310,7 +44561,7 @@ var chart_core_EvChart = /*#__PURE__*/function () {
44310
44561
  borderRadius: borderRadius,
44311
44562
  showSeriesCount: showSeriesCount,
44312
44563
  showIndex: showIndex,
44313
- legendHitInfo: _legendHitInfo
44564
+ legendHitInfo: _legendHitInfo2
44314
44565
  }, opt));
44315
44566
 
44316
44567
  if (series.show) {
@@ -44324,21 +44575,21 @@ var chart_core_EvChart = /*#__PURE__*/function () {
44324
44575
  {
44325
44576
  var _this$lastHitInfo, _this$defaultSelectIt;
44326
44577
 
44327
- var selectInfo = (_this$lastHitInfo = this.lastHitInfo) !== null && _this$lastHitInfo !== void 0 ? _this$lastHitInfo : {
44578
+ var _selectInfo = (_this$lastHitInfo = this.lastHitInfo) !== null && _this$lastHitInfo !== void 0 ? _this$lastHitInfo : {
44328
44579
  sId: (_this$defaultSelectIt = this.defaultSelectItemInfo) === null || _this$defaultSelectIt === void 0 ? void 0 : _this$defaultSelectIt.seriesID
44329
44580
  };
44330
44581
 
44331
- var _legendHitInfo2 = hitInfo === null || hitInfo === void 0 ? void 0 : hitInfo.legend;
44582
+ var _legendHitInfo3 = hitInfo === null || hitInfo === void 0 ? void 0 : hitInfo.legend;
44332
44583
 
44333
44584
  if (this.options.sunburst) {
44334
44585
  this.drawSunburst({
44335
- selectInfo: selectInfo,
44336
- legendHitInfo: _legendHitInfo2
44586
+ selectInfo: _selectInfo,
44587
+ legendHitInfo: _legendHitInfo3
44337
44588
  });
44338
44589
  } else {
44339
44590
  this.drawPie({
44340
- selectInfo: selectInfo,
44341
- legendHitInfo: _legendHitInfo2
44591
+ selectInfo: _selectInfo,
44592
+ legendHitInfo: _legendHitInfo3
44342
44593
  });
44343
44594
  }
44344
44595
 
@@ -44351,29 +44602,29 @@ var chart_core_EvChart = /*#__PURE__*/function () {
44351
44602
 
44352
44603
  case 'scatter':
44353
44604
  {
44354
- var _legendHitInfo3 = hitInfo === null || hitInfo === void 0 ? void 0 : hitInfo.legend;
44605
+ var _legendHitInfo4 = hitInfo === null || hitInfo === void 0 ? void 0 : hitInfo.legend;
44355
44606
 
44356
- var _selectInfo = void 0;
44607
+ var _selectInfo2 = void 0;
44357
44608
 
44358
44609
  if (selectItem.use && selectItem.useSeriesOpacity) {
44359
44610
  var lastHitInfo = this.lastHitInfo;
44360
- var defaultSelectInfo = this.defaultSelectItemInfo;
44611
+ var _defaultSelectInfo = this.defaultSelectItemInfo;
44361
44612
 
44362
44613
  if (lastHitInfo !== null && lastHitInfo !== void 0 && lastHitInfo.maxIndex || (lastHitInfo === null || lastHitInfo === void 0 ? void 0 : lastHitInfo.maxIndex) === 0) {
44363
- _selectInfo = {
44614
+ _selectInfo2 = {
44364
44615
  seriesID: lastHitInfo.sId,
44365
44616
  dataIndex: lastHitInfo.maxIndex
44366
44617
  };
44367
- } else if (defaultSelectInfo !== null && defaultSelectInfo !== void 0 && defaultSelectInfo.dataIndex || (defaultSelectInfo === null || defaultSelectInfo === void 0 ? void 0 : defaultSelectInfo.dataIndex) === 0) {
44368
- _selectInfo = _objectSpread2({}, defaultSelectInfo);
44618
+ } else if (_defaultSelectInfo !== null && _defaultSelectInfo !== void 0 && _defaultSelectInfo.dataIndex || (_defaultSelectInfo === null || _defaultSelectInfo === void 0 ? void 0 : _defaultSelectInfo.dataIndex) === 0) {
44619
+ _selectInfo2 = _objectSpread2({}, _defaultSelectInfo);
44369
44620
  } else {
44370
- _selectInfo = null;
44621
+ _selectInfo2 = null;
44371
44622
  }
44372
44623
  }
44373
44624
 
44374
44625
  series.draw(_objectSpread2({
44375
- legendHitInfo: _legendHitInfo3,
44376
- selectInfo: _selectInfo
44626
+ legendHitInfo: _legendHitInfo4,
44627
+ selectInfo: _selectInfo2
44377
44628
  }, opt));
44378
44629
  break;
44379
44630
  }
@@ -44853,7 +45104,7 @@ var chart_core_EvChart = /*#__PURE__*/function () {
44853
45104
  if (options.legend.show) {
44854
45105
  var _options$legend, _options$legend$table;
44855
45106
 
44856
- 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';
45107
+ 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';
44857
45108
 
44858
45109
  if (!this.isInitLegend) {
44859
45110
  this.initLegend();
@@ -45747,7 +45998,15 @@ var DEFAULT_OPTIONS = {
45747
45998
  fontFamily: 'Roboto',
45748
45999
  fontWeight: 400
45749
46000
  },
45750
- useSeriesOpacity: false
46001
+ useSeriesOpacity: false,
46002
+ useDeselectItem: false,
46003
+ showBorder: false,
46004
+ borderStyle: {
46005
+ color: '#FFFFFF',
46006
+ lineWidth: 1,
46007
+ opacity: 1,
46008
+ radius: 0
46009
+ }
45751
46010
  },
45752
46011
  selectLabel: {
45753
46012
  use: false,
@@ -45817,8 +46076,8 @@ var DEFAULT_OPTIONS = {
45817
46076
  heatMapColor: {
45818
46077
  min: '#FFFFFF',
45819
46078
  max: '#0052FF',
45820
- categoryCnt: 1,
45821
- categoryColors: [],
46079
+ rangeCount: 1,
46080
+ colorsByRange: [],
45822
46081
  stroke: {
45823
46082
  show: false,
45824
46083
  color: '#FFFFFF',
@@ -45874,6 +46133,7 @@ var chart_uses_useModel = function useModel(selectedLabel) {
45874
46133
  var _click = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(e) {
45875
46134
  var _e$selected, _e$selected2;
45876
46135
 
46136
+ var selectedItem;
45877
46137
  return regeneratorRuntime.wrap(function _callee$(_context) {
45878
46138
  while (1) {
45879
46139
  switch (_context.prev = _context.next) {
@@ -45883,10 +46143,20 @@ var chart_uses_useModel = function useModel(selectedLabel) {
45883
46143
 
45884
46144
  case 2:
45885
46145
  if (e.label) {
45886
- emit('update:selectedItem', {
46146
+ selectedItem = {
45887
46147
  seriesID: e.seriesId,
45888
46148
  dataIndex: e.dataIndex
45889
- });
46149
+ };
46150
+
46151
+ if ('deselect' in e) {
46152
+ if (e.deselect) {
46153
+ selectedItem = null;
46154
+ }
46155
+
46156
+ delete e.deselect;
46157
+ }
46158
+
46159
+ emit('update:selectedItem', selectedItem);
45890
46160
  }
45891
46161
 
45892
46162
  if ((_e$selected = e.selected) !== null && _e$selected !== void 0 && _e$selected.dataIndex) {
@@ -49192,6 +49462,7 @@ var treeGrid_uses_contextMenuEvent = function contextMenuEvent(params) {
49192
49462
  menuItem.disabled = !menuItem.validate(menuItem.itemId, row);
49193
49463
  }
49194
49464
 
49465
+ menuItem.selectedRow = row !== null && row !== void 0 ? row : [];
49195
49466
  return menuItem;
49196
49467
  });
49197
49468
  menuItems.push.apply(menuItems, _toConsumableArray(customItems));