evui 3.4.31 → 3.4.32

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.
@@ -8097,7 +8097,7 @@ module.exports = exports;
8097
8097
  /***/ "9224":
8098
8098
  /***/ (function(module) {
8099
8099
 
8100
- module.exports = JSON.parse("{\"a\":\"3.4.31\"}");
8100
+ module.exports = JSON.parse("{\"a\":\"3.4.32\"}");
8101
8101
 
8102
8102
  /***/ }),
8103
8103
 
@@ -47098,6 +47098,26 @@ var plugins_tooltip_modules = {
47098
47098
 
47099
47099
  return ((_this$options$tooltip4 = (_this$options3 = this.options) === null || _this$options3 === void 0 ? void 0 : (_this$options3$toolti = _this$options3.tooltip) === null || _this$options3$toolti === void 0 ? void 0 : (_this$options3$toolti2 = _this$options3$toolti.fontSize) === null || _this$options3$toolti2 === void 0 ? void 0 : _this$options3$toolti2.contents) !== null && _this$options$tooltip4 !== void 0 ? _this$options$tooltip4 : 14) + 2;
47100
47100
  },
47101
+ getBoxPadding: function getBoxPadding() {
47102
+ var _this$options$tooltip5, _this$options4, _this$options4$toolti;
47103
+
47104
+ var _ref = (_this$options$tooltip5 = (_this$options4 = this.options) === null || _this$options4 === void 0 ? void 0 : (_this$options4$toolti = _this$options4.tooltip) === null || _this$options4$toolti === void 0 ? void 0 : _this$options4$toolti.rowPadding) !== null && _this$options$tooltip5 !== void 0 ? _this$options$tooltip5 : {},
47105
+ _ref$top = _ref.top,
47106
+ top = _ref$top === void 0 ? 0 : _ref$top,
47107
+ _ref$right = _ref.right,
47108
+ right = _ref$right === void 0 ? 20 : _ref$right,
47109
+ _ref$bottom = _ref.bottom,
47110
+ bottom = _ref$bottom === void 0 ? 8 : _ref$bottom,
47111
+ _ref$left = _ref.left,
47112
+ left = _ref$left === void 0 ? 16 : _ref$left;
47113
+
47114
+ return {
47115
+ t: top,
47116
+ l: left,
47117
+ b: bottom,
47118
+ r: right
47119
+ };
47120
+ },
47101
47121
 
47102
47122
  /**
47103
47123
  * Set tooltip DOM's position and style
@@ -47120,12 +47140,7 @@ var plugins_tooltip_modules = {
47120
47140
 
47121
47141
  var seriesKeys = Object.keys(items);
47122
47142
  var seriesLen = seriesKeys.length;
47123
- var boxPadding = {
47124
- t: 0,
47125
- b: 8,
47126
- r: 20,
47127
- l: 16
47128
- };
47143
+ var boxPadding = this.getBoxPadding();
47129
47144
  var opt = this.options.tooltip;
47130
47145
  var seriesColorMarginRight = this.getColorMargin(); // calculate and decide width of canvas El(contentsWidth)
47131
47146
 
@@ -47212,9 +47227,9 @@ var plugins_tooltip_modules = {
47212
47227
  * @param {object} centerPosition // {x: number, y: number}
47213
47228
  */
47214
47229
  drawSeriesColorShape: function drawSeriesColorShape(context, shape, centerPosition) {
47215
- var _this$options$tooltip5, _this$options$tooltip6;
47230
+ var _this$options$tooltip6, _this$options$tooltip7;
47216
47231
 
47217
- var fontSize = (_this$options$tooltip5 = this.options.tooltip) === null || _this$options$tooltip5 === void 0 ? void 0 : (_this$options$tooltip6 = _this$options$tooltip5.fontSize) === null || _this$options$tooltip6 === void 0 ? void 0 : _this$options$tooltip6.contents;
47232
+ var fontSize = (_this$options$tooltip6 = this.options.tooltip) === null || _this$options$tooltip6 === void 0 ? void 0 : (_this$options$tooltip7 = _this$options$tooltip6.fontSize) === null || _this$options$tooltip7 === void 0 ? void 0 : _this$options$tooltip7.contents;
47218
47233
  var x = centerPosition.x,
47219
47234
  y = centerPosition.y;
47220
47235
 
@@ -47249,12 +47264,7 @@ var plugins_tooltip_modules = {
47249
47264
  maxValue = _hitInfo$maxTip2[1];
47250
47265
 
47251
47266
  var seriesKeys = this.alignSeriesList(Object.keys(items));
47252
- var boxPadding = {
47253
- t: 0,
47254
- b: 8,
47255
- r: 20,
47256
- l: 16
47257
- };
47267
+ var boxPadding = this.getBoxPadding();
47258
47268
  var isHorizontal = this.options.horizontal;
47259
47269
  var opt = this.options.tooltip;
47260
47270
  var titleFormatter = (_opt$formatter = opt.formatter) === null || _opt$formatter === void 0 ? void 0 : _opt$formatter.title;
@@ -47419,12 +47429,7 @@ var plugins_tooltip_modules = {
47419
47429
  var hitItem = items[sId].data;
47420
47430
  var hitAxis = items[sId].axis;
47421
47431
  var hitColor = items[sId].color;
47422
- var boxPadding = {
47423
- t: 0,
47424
- b: 8,
47425
- r: 20,
47426
- l: 16
47427
- };
47432
+ var boxPadding = this.getBoxPadding();
47428
47433
  var isHorizontal = this.options.horizontal;
47429
47434
  var opt = this.options.tooltip;
47430
47435
  var titleFormatter = (_opt$formatter2 = opt.formatter) === null || _opt$formatter2 === void 0 ? void 0 : _opt$formatter2.title;
@@ -47448,8 +47453,8 @@ var plugins_tooltip_modules = {
47448
47453
  } else {
47449
47454
  var _colorItem$label;
47450
47455
 
47451
- var colorItem = colorState.find(function (_ref) {
47452
- var id = _ref.id;
47456
+ var colorItem = colorState.find(function (_ref2) {
47457
+ var id = _ref2.id;
47453
47458
  return id === hitItem.cId;
47454
47459
  });
47455
47460
  isShow = colorItem === null || colorItem === void 0 ? void 0 : colorItem.show;
@@ -47534,12 +47539,7 @@ var plugins_tooltip_modules = {
47534
47539
  maxValue = _hitInfo$maxTip3[1];
47535
47540
 
47536
47541
  var seriesKeys = this.alignSeriesList(Object.keys(items));
47537
- var boxPadding = {
47538
- t: 0,
47539
- b: 8,
47540
- r: 8,
47541
- l: 8
47542
- };
47542
+ var boxPadding = this.getBoxPadding();
47543
47543
  var opt = this.options.tooltip;
47544
47544
  var textHeight = this.getTextHeight();
47545
47545
  var seriesColorMarginRight = this.getColorMargin();
@@ -47700,9 +47700,9 @@ var plugins_tooltip_modules = {
47700
47700
  * @param hitInfoItems
47701
47701
  */
47702
47702
  drawCustomTooltip: function drawCustomTooltip(hitInfoItems) {
47703
- var _this$options4, _opt$formatter3;
47703
+ var _this$options5, _opt$formatter3;
47704
47704
 
47705
- var opt = (_this$options4 = this.options) === null || _this$options4 === void 0 ? void 0 : _this$options4.tooltip;
47705
+ var opt = (_this$options5 = this.options) === null || _this$options5 === void 0 ? void 0 : _this$options5.tooltip;
47706
47706
 
47707
47707
  if ((_opt$formatter3 = opt.formatter) !== null && _opt$formatter3 !== void 0 && _opt$formatter3.html) {
47708
47708
  var _opt$formatter4, _opt$fontColor$title, _opt$fontColor5;
@@ -50711,6 +50711,12 @@ var DEFAULT_OPTIONS = {
50711
50711
  fontSize: {
50712
50712
  title: 16,
50713
50713
  contents: 14
50714
+ },
50715
+ rowPadding: {
50716
+ top: 0,
50717
+ bottom: 8,
50718
+ right: 20,
50719
+ left: 16
50714
50720
  }
50715
50721
  },
50716
50722
  indicator: {