@visactor/vchart 1.2.0-beta.5 → 1.2.0-beta.6

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.
Files changed (97) hide show
  1. package/build/index.js +193 -102
  2. package/build/index.min.js +1 -1
  3. package/cjs/component/legend/interface.d.ts +2 -2
  4. package/cjs/component/legend/interface.js.map +1 -1
  5. package/cjs/component/tooltip/handler/base.js +9 -9
  6. package/cjs/component/tooltip/handler/base.js.map +1 -1
  7. package/cjs/component/tooltip/handler/dom/interface.d.ts +1 -0
  8. package/cjs/component/tooltip/handler/dom/interface.js.map +1 -1
  9. package/cjs/component/tooltip/handler/dom/util.js +1 -1
  10. package/cjs/component/tooltip/handler/dom/util.js.map +1 -1
  11. package/cjs/component/tooltip/interface/spec.d.ts +1 -0
  12. package/cjs/component/tooltip/interface/spec.js.map +1 -1
  13. package/cjs/component/tooltip/processor/base.d.ts +3 -0
  14. package/cjs/component/tooltip/processor/base.js +40 -1
  15. package/cjs/component/tooltip/processor/base.js.map +1 -1
  16. package/cjs/component/tooltip/processor/dimension-tooltip.d.ts +0 -1
  17. package/cjs/component/tooltip/processor/dimension-tooltip.js +8 -43
  18. package/cjs/component/tooltip/processor/dimension-tooltip.js.map +1 -1
  19. package/cjs/component/tooltip/processor/interface.d.ts +1 -0
  20. package/cjs/component/tooltip/processor/interface.js.map +1 -1
  21. package/cjs/component/tooltip/processor/mark-tooltip.js +4 -2
  22. package/cjs/component/tooltip/processor/mark-tooltip.js.map +1 -1
  23. package/cjs/component/tooltip/tooltip.js +5 -1
  24. package/cjs/component/tooltip/tooltip.js.map +1 -1
  25. package/cjs/constant/event.d.ts +2 -1
  26. package/cjs/constant/event.js +1 -1
  27. package/cjs/constant/event.js.map +1 -1
  28. package/cjs/core/index.d.ts +1 -1
  29. package/cjs/core/index.js +1 -1
  30. package/cjs/core/index.js.map +1 -1
  31. package/cjs/core/interface.d.ts +2 -2
  32. package/cjs/core/interface.js.map +1 -1
  33. package/cjs/core/vchart.d.ts +2 -2
  34. package/cjs/data/transforms/lookup.d.ts +2 -0
  35. package/cjs/data/transforms/lookup.js +4 -1
  36. package/cjs/data/transforms/lookup.js.map +1 -1
  37. package/cjs/data/transforms/map.d.ts +1 -0
  38. package/cjs/data/transforms/map.js +7 -3
  39. package/cjs/data/transforms/map.js.map +1 -1
  40. package/cjs/event/events/dimension/util/common.js +14 -3
  41. package/cjs/event/events/dimension/util/common.js.map +1 -1
  42. package/cjs/event/interface.d.ts +1 -0
  43. package/cjs/event/interface.js.map +1 -1
  44. package/cjs/plugin/components/axis-label-overlap-plugin.js +20 -2
  45. package/cjs/plugin/components/axis-label-overlap-plugin.js.map +1 -1
  46. package/cjs/series/map/map.js +8 -5
  47. package/cjs/series/map/map.js.map +1 -1
  48. package/cjs/typings/tooltip/handler.d.ts +0 -1
  49. package/cjs/typings/tooltip/handler.js.map +1 -1
  50. package/esm/component/legend/interface.d.ts +2 -2
  51. package/esm/component/legend/interface.js.map +1 -1
  52. package/esm/component/tooltip/handler/base.js +8 -8
  53. package/esm/component/tooltip/handler/base.js.map +1 -1
  54. package/esm/component/tooltip/handler/dom/interface.d.ts +1 -0
  55. package/esm/component/tooltip/handler/dom/interface.js.map +1 -1
  56. package/esm/component/tooltip/handler/dom/util.js +1 -1
  57. package/esm/component/tooltip/handler/dom/util.js.map +1 -1
  58. package/esm/component/tooltip/interface/spec.d.ts +1 -0
  59. package/esm/component/tooltip/interface/spec.js.map +1 -1
  60. package/esm/component/tooltip/processor/base.d.ts +3 -0
  61. package/esm/component/tooltip/processor/base.js +43 -0
  62. package/esm/component/tooltip/processor/base.js.map +1 -1
  63. package/esm/component/tooltip/processor/dimension-tooltip.d.ts +0 -1
  64. package/esm/component/tooltip/processor/dimension-tooltip.js +8 -47
  65. package/esm/component/tooltip/processor/dimension-tooltip.js.map +1 -1
  66. package/esm/component/tooltip/processor/interface.d.ts +1 -0
  67. package/esm/component/tooltip/processor/interface.js.map +1 -1
  68. package/esm/component/tooltip/processor/mark-tooltip.js +4 -2
  69. package/esm/component/tooltip/processor/mark-tooltip.js.map +1 -1
  70. package/esm/component/tooltip/tooltip.js +5 -1
  71. package/esm/component/tooltip/tooltip.js.map +1 -1
  72. package/esm/constant/event.d.ts +2 -1
  73. package/esm/constant/event.js +1 -1
  74. package/esm/constant/event.js.map +1 -1
  75. package/esm/core/index.d.ts +1 -1
  76. package/esm/core/index.js +1 -1
  77. package/esm/core/index.js.map +1 -1
  78. package/esm/core/interface.d.ts +2 -2
  79. package/esm/core/interface.js.map +1 -1
  80. package/esm/core/vchart.d.ts +2 -2
  81. package/esm/data/transforms/lookup.d.ts +2 -0
  82. package/esm/data/transforms/lookup.js +5 -2
  83. package/esm/data/transforms/lookup.js.map +1 -1
  84. package/esm/data/transforms/map.d.ts +1 -0
  85. package/esm/data/transforms/map.js +4 -2
  86. package/esm/data/transforms/map.js.map +1 -1
  87. package/esm/event/events/dimension/util/common.js +14 -3
  88. package/esm/event/events/dimension/util/common.js.map +1 -1
  89. package/esm/event/interface.d.ts +1 -0
  90. package/esm/event/interface.js.map +1 -1
  91. package/esm/plugin/components/axis-label-overlap-plugin.js +20 -2
  92. package/esm/plugin/components/axis-label-overlap-plugin.js.map +1 -1
  93. package/esm/series/map/map.js +10 -7
  94. package/esm/series/map/map.js.map +1 -1
  95. package/esm/typings/tooltip/handler.d.ts +0 -1
  96. package/esm/typings/tooltip/handler.js.map +1 -1
  97. package/package.json +2 -2
package/build/index.js CHANGED
@@ -51690,6 +51690,7 @@
51690
51690
  ChartEvent["legendItemUnHover"] = "legendItemUnHover";
51691
51691
  ChartEvent["tooltipShow"] = "tooltipShow";
51692
51692
  ChartEvent["tooltipHide"] = "tooltipHide";
51693
+ ChartEvent["tooltipRelease"] = "tooltipRelease";
51693
51694
  })(ChartEvent || (ChartEvent = {}));
51694
51695
  var Event_Source_Type;
51695
51696
  (function (Event_Source_Type) {
@@ -53327,14 +53328,43 @@
53327
53328
  });
53328
53329
  }
53329
53330
  else {
53330
- data.push({
53331
- series,
53332
- datum: viewData.filter((datum) => datum[dimensionField[0]]?.toString() === value?.toString() ||
53333
- (isValid(datum[dimensionField[0]]) &&
53334
- isValid(datum[dimensionField[1]]) &&
53335
- value >= datum[dimensionField[0]] &&
53336
- value < datum[dimensionField[1]]))
53337
- });
53331
+ if (isValid(dimensionField[1])) {
53332
+ data.push({
53333
+ series,
53334
+ datum: viewData.filter((datum) => {
53335
+ if (datum[dimensionField[0]]?.toString() === value?.toString()) {
53336
+ return true;
53337
+ }
53338
+ return (isValid(datum[dimensionField[0]]) &&
53339
+ isValid(datum[dimensionField[1]]) &&
53340
+ value >= datum[dimensionField[0]] &&
53341
+ value < datum[dimensionField[1]]);
53342
+ })
53343
+ });
53344
+ }
53345
+ else {
53346
+ let minDelta = Infinity;
53347
+ let minDatums = [];
53348
+ let deltaSign = 0;
53349
+ viewData.forEach((datum) => {
53350
+ if (isValid(datum[dimensionField[0]])) {
53351
+ const delta = Math.abs(datum[dimensionField[0]] - value);
53352
+ const sign = Math.sign(datum[dimensionField[0]] - value);
53353
+ if (delta < minDelta) {
53354
+ minDelta = delta;
53355
+ minDatums = [datum];
53356
+ deltaSign = sign;
53357
+ }
53358
+ else if (delta === minDelta && sign === deltaSign) {
53359
+ minDatums.push(datum);
53360
+ }
53361
+ }
53362
+ });
53363
+ data.push({
53364
+ series,
53365
+ datum: minDatums
53366
+ });
53367
+ }
53338
53368
  }
53339
53369
  }
53340
53370
  }
@@ -58260,7 +58290,7 @@
58260
58290
  VChart.useMark([ComponentMark, GroupMark, ImageMark]);
58261
58291
  Factory.registerRegion('region', Region);
58262
58292
  Factory.registerLayout('base', Layout);
58263
- const version = "1.2.0-beta.5";
58293
+ const version = "1.2.0-beta.6";
58264
58294
  Logger.getInstance(LoggerLevel.Error);
58265
58295
 
58266
58296
  var SeriesMarkNameEnum;
@@ -65200,7 +65230,13 @@
65200
65230
  return map;
65201
65231
  }, new Map());
65202
65232
  let set;
65203
- if (values) {
65233
+ if (isFunction(opt.set)) {
65234
+ set = function (d) {
65235
+ const v = index.get(d[key]);
65236
+ opt.set(d, v);
65237
+ };
65238
+ }
65239
+ else if (values) {
65204
65240
  const m = values.length;
65205
65241
  set = function (d) {
65206
65242
  const v = index.get(d[key]);
@@ -65387,15 +65423,16 @@
65387
65423
  }
65388
65424
  }
65389
65425
 
65426
+ const DEFAULT_MAP_LOOK_UP_KEY = `${PREFIX}_MAP_LOOK_UP_KEY`;
65390
65427
  const map = (data, opt) => {
65391
65428
  if (data.features) {
65392
65429
  data.features.forEach((f, index) => {
65393
65430
  f[DEFAULT_DATA_INDEX] = index;
65394
65431
  if (opt.nameMap) {
65395
- f.name = opt.nameMap[f.properties?.[opt.nameProperty]];
65432
+ f[DEFAULT_MAP_LOOK_UP_KEY] = opt.nameMap[f.properties?.[opt.nameProperty]];
65396
65433
  }
65397
65434
  else {
65398
- f.name = f.properties?.[opt.nameProperty];
65435
+ f[DEFAULT_MAP_LOOK_UP_KEY] = f.properties?.[opt.nameProperty];
65399
65436
  }
65400
65437
  });
65401
65438
  }
@@ -65483,10 +65520,17 @@
65483
65520
  type: 'lookup',
65484
65521
  options: {
65485
65522
  from: () => this._data?.getLatestData(),
65486
- key: 'name',
65523
+ key: DEFAULT_MAP_LOOK_UP_KEY,
65487
65524
  fields: this._nameField,
65488
- values: [this.nameField, this.valueField, this._seriesField ?? DEFAULT_DATA_SERIES_FIELD, DEFAULT_DATA_KEY],
65489
- as: [this.nameField, this.valueField, this._seriesField ?? DEFAULT_DATA_SERIES_FIELD, DEFAULT_DATA_KEY]
65525
+ set: (feature, datum) => {
65526
+ if (datum) {
65527
+ Object.keys(datum).forEach(key => {
65528
+ if (!(key in feature)) {
65529
+ feature[key] = datum[key];
65530
+ }
65531
+ });
65532
+ }
65533
+ }
65490
65534
  }
65491
65535
  });
65492
65536
  this._data?.getDataView().target.addListener('change', mapData.reRunAllTransform);
@@ -79722,42 +79766,83 @@
79722
79766
  function labelFlush(axisLabels, axis) {
79723
79767
  const { width, height } = axis.getLayoutRect();
79724
79768
  const isX = isXAxis(axis.layoutOrient);
79769
+ const isInverse = axis.getSpec().inverse === true;
79725
79770
  const first = axisLabels[0];
79726
79771
  const last$1 = last(axisLabels);
79727
79772
  if (isX) {
79728
- const start = 0;
79729
- const end = width;
79730
- const startBound = first.AABBBounds.x1;
79731
- const endBound = last$1.AABBBounds.x2;
79732
- if (startBound < start) {
79733
- first.setAttributes({
79734
- x: start,
79735
- textAlign: 'left'
79736
- });
79773
+ if (isInverse) {
79774
+ const start = width;
79775
+ const end = 0;
79776
+ const startBound = first.AABBBounds.x2;
79777
+ const endBound = last$1.AABBBounds.x1;
79778
+ if (startBound > start) {
79779
+ first.setAttributes({
79780
+ x: start,
79781
+ textAlign: 'right'
79782
+ });
79783
+ }
79784
+ if (endBound < end) {
79785
+ last$1.setAttributes({
79786
+ x: end,
79787
+ textAlign: 'left'
79788
+ });
79789
+ }
79737
79790
  }
79738
- if (endBound > end) {
79739
- last$1.setAttributes({
79740
- x: end,
79741
- textAlign: 'right'
79742
- });
79791
+ else {
79792
+ const start = 0;
79793
+ const end = width;
79794
+ const startBound = first.AABBBounds.x1;
79795
+ const endBound = last$1.AABBBounds.x2;
79796
+ if (startBound < start) {
79797
+ first.setAttributes({
79798
+ x: start,
79799
+ textAlign: 'left'
79800
+ });
79801
+ }
79802
+ if (endBound > end) {
79803
+ last$1.setAttributes({
79804
+ x: end,
79805
+ textAlign: 'right'
79806
+ });
79807
+ }
79743
79808
  }
79744
79809
  }
79745
79810
  else {
79746
- const start = height;
79747
- const end = 0;
79748
- const startBound = first.AABBBounds.y2;
79749
- const endBound = last$1.AABBBounds.y1;
79750
- if (startBound > start) {
79751
- first.setAttributes({
79752
- y: start,
79753
- textBaseline: 'bottom'
79754
- });
79811
+ if (isInverse) {
79812
+ const startBound = first.AABBBounds.y1;
79813
+ const endBound = last$1.AABBBounds.y2;
79814
+ const start = 0;
79815
+ const end = height;
79816
+ if (startBound < start) {
79817
+ first.setAttributes({
79818
+ y: start,
79819
+ textBaseline: 'top'
79820
+ });
79821
+ }
79822
+ if (endBound > end) {
79823
+ last$1.setAttributes({
79824
+ y: end,
79825
+ textBaseline: 'bottom'
79826
+ });
79827
+ }
79755
79828
  }
79756
- if (endBound < end) {
79757
- last$1.setAttributes({
79758
- y: end,
79759
- textBaseline: 'top'
79760
- });
79829
+ else {
79830
+ const start = height;
79831
+ const end = 0;
79832
+ const startBound = first.AABBBounds.y2;
79833
+ const endBound = last$1.AABBBounds.y1;
79834
+ if (startBound > start) {
79835
+ first.setAttributes({
79836
+ y: start,
79837
+ textBaseline: 'bottom'
79838
+ });
79839
+ }
79840
+ if (endBound < end) {
79841
+ last$1.setAttributes({
79842
+ y: end,
79843
+ textBaseline: 'top'
79844
+ });
79845
+ }
79761
79846
  }
79762
79847
  }
79763
79848
  }
@@ -86819,9 +86904,8 @@
86819
86904
  this._cacheViewSpec = undefined;
86820
86905
  this._cacheActualTooltip = undefined;
86821
86906
  const spec = this._component.getSpec();
86822
- if (spec.handler?.hideTooltip) {
86823
- spec.handler?.hideTooltip(params);
86824
- return TooltipResult.success;
86907
+ if (spec.handler) {
86908
+ return spec.handler.hideTooltip?.(params) ?? TooltipResult.success;
86825
86909
  }
86826
86910
  this._updateTooltip(false, params);
86827
86911
  return TooltipResult.success;
@@ -86840,8 +86924,8 @@
86840
86924
  if (spec.visible === false) {
86841
86925
  return TooltipResult.failed;
86842
86926
  }
86843
- if (spec.handler?.showTooltip) {
86844
- return spec.handler?.showTooltip(activeType, data, params) ?? TooltipResult.success;
86927
+ if (spec.handler) {
86928
+ return spec.handler.showTooltip?.(activeType, data, params) ?? TooltipResult.success;
86845
86929
  }
86846
86930
  const pattern = spec[activeType];
86847
86931
  if (!pattern) {
@@ -86869,8 +86953,8 @@
86869
86953
  changeTooltipPosition;
86870
86954
  _changeTooltipPosition = (changePositionOnly, actualTooltip, spec, activeType, data, params) => {
86871
86955
  const event = params.event;
86872
- if (spec.handler?.showTooltip) {
86873
- return spec.handler.showTooltip(activeType, data, params) ?? TooltipResult.success;
86956
+ if (spec.handler) {
86957
+ return spec.handler.showTooltip?.(activeType, data, params) ?? TooltipResult.success;
86874
86958
  }
86875
86959
  const pattern = spec[activeType];
86876
86960
  if (!pattern) {
@@ -86901,8 +86985,8 @@
86901
86985
  this._cacheViewSpec = undefined;
86902
86986
  this._cacheActualTooltip = undefined;
86903
86987
  const spec = this._component.getSpec();
86904
- if (spec.handler?.release) {
86905
- spec.handler?.release();
86988
+ if (spec.handler) {
86989
+ spec.handler.release?.();
86906
86990
  return;
86907
86991
  }
86908
86992
  this._removeTooltip();
@@ -87167,7 +87251,7 @@
87167
87251
  const styles = {
87168
87252
  panel: {
87169
87253
  width: getPixelPropertyStr((attributeCache?.panel?.width ?? 0) + lineWidth * 2),
87170
- height: getPixelPropertyStr((attributeCache?.panel?.height ?? 0) + lineWidth * 2),
87254
+ minHeight: getPixelPropertyStr((attributeCache?.panel?.height ?? 0) + lineWidth * 2),
87171
87255
  paddingBottom: getPixelPropertyStr(padding.bottom),
87172
87256
  paddingLeft: getPixelPropertyStr(padding.left),
87173
87257
  paddingRight: getPixelPropertyStr(padding.right),
@@ -88066,33 +88150,24 @@
88066
88150
  }
88067
88151
  return TooltipResult.failed;
88068
88152
  };
88069
- }
88070
-
88071
- class DimensionTooltipProcessor extends BaseTooltipProcessor {
88072
- activeType = 'dimension';
88073
- showTooltip(info, params, changePositionOnly) {
88074
- const newParams = {
88075
- ...params,
88076
- dimensionInfo: this._preprocessDimensionInfo(info),
88077
- changePositionOnly
88078
- };
88079
- return this._showTooltipByHandler(info, newParams);
88080
- }
88081
- shouldHandleTooltip(params, mouseEventData) {
88082
- const { tooltipInfo: info } = mouseEventData;
88083
- if (isNil(info)) {
88084
- return false;
88085
- }
88086
- const helper = params.model?.tooltipHelper;
88087
- const activeType = helper?.activeType ?? this.component.getSpec().activeType;
88088
- if (!activeType.includes('dimension')) {
88089
- return false;
88153
+ _preprocessDimensionInfo(dimensionInfo) {
88154
+ const newDimensionInfo = [];
88155
+ dimensionInfo?.forEach(info => {
88156
+ const di = {
88157
+ ...info,
88158
+ data: info.data.filter(({ series }) => series.getSpec()?.tooltip?.visible !== false)
88159
+ };
88160
+ if (di.data.length > 0) {
88161
+ newDimensionInfo.push(di);
88162
+ }
88163
+ });
88164
+ if (newDimensionInfo.length > 0) {
88165
+ return newDimensionInfo;
88090
88166
  }
88091
- return true;
88167
+ return undefined;
88092
88168
  }
88093
- getMouseEventData(params) {
88169
+ _getDimensionInfo(params) {
88094
88170
  let targetDimensionInfo;
88095
- let ignore;
88096
88171
  const x = params.event.viewX;
88097
88172
  const y = params.event.viewY;
88098
88173
  const chart = this.component.getChart();
@@ -88129,42 +88204,51 @@
88129
88204
  })[0] ?? targetDimensionInfo[0];
88130
88205
  targetDimensionInfo = [dimensionAxisInfo];
88131
88206
  }
88132
- if ([...(this.component.getOption().getAllSeries() ?? [])].some(model => {
88133
- const ignoreTriggers = model.tooltipHelper?.ignoreTriggerSet.dimension;
88134
- return (params.model && ignoreTriggers?.has(params.model)) || (params.mark && ignoreTriggers?.has(params.mark));
88135
- })) {
88136
- ignore = true;
88137
- }
88138
- return {
88139
- tooltipInfo: targetDimensionInfo,
88140
- ignore
88207
+ return targetDimensionInfo;
88208
+ }
88209
+ }
88210
+
88211
+ class DimensionTooltipProcessor extends BaseTooltipProcessor {
88212
+ activeType = 'dimension';
88213
+ showTooltip(info, params, changePositionOnly) {
88214
+ const newParams = {
88215
+ ...params,
88216
+ dimensionInfo: this._preprocessDimensionInfo(info),
88217
+ changePositionOnly
88141
88218
  };
88219
+ return this._showTooltipByHandler(info, newParams);
88142
88220
  }
88143
- _preprocessDimensionInfo(dimensionInfo) {
88144
- const newDimensionInfo = [];
88145
- dimensionInfo?.forEach(info => {
88146
- const di = {
88147
- ...info,
88148
- data: info.data.filter(({ series }) => series.getSpec()?.tooltip?.visible !== false)
88149
- };
88150
- if (di.data.length > 0) {
88151
- newDimensionInfo.push(di);
88152
- }
88153
- });
88154
- if (newDimensionInfo.length > 0) {
88155
- return newDimensionInfo;
88221
+ shouldHandleTooltip(params, mouseEventData) {
88222
+ const { tooltipInfo: info } = mouseEventData;
88223
+ if (isNil(info)) {
88224
+ return false;
88156
88225
  }
88157
- return undefined;
88226
+ const helper = params.model?.tooltipHelper;
88227
+ const activeType = helper?.activeType ?? this.component.getSpec().activeType;
88228
+ if (!activeType.includes('dimension')) {
88229
+ return false;
88230
+ }
88231
+ return true;
88232
+ }
88233
+ getMouseEventData(params) {
88234
+ return {
88235
+ tooltipInfo: this._getDimensionInfo(params),
88236
+ ignore: [...(this.component.getOption().getAllSeries() ?? [])].some(model => {
88237
+ const ignoreTriggers = model.tooltipHelper?.ignoreTriggerSet.dimension;
88238
+ return (params.model && ignoreTriggers?.has(params.model)) || (params.mark && ignoreTriggers?.has(params.mark));
88239
+ })
88240
+ };
88158
88241
  }
88159
88242
  }
88160
88243
 
88161
88244
  class MarkTooltipProcessor extends BaseTooltipProcessor {
88162
88245
  activeType = 'mark';
88163
88246
  showTooltip(info, params, changePositionOnly) {
88164
- const { datum, series } = info;
88247
+ const { datum, series, dimensionInfo } = info;
88165
88248
  const tooltipData = [{ datum: [datum], series }];
88166
88249
  const newParams = {
88167
88250
  ...params,
88251
+ dimensionInfo: this._preprocessDimensionInfo(dimensionInfo),
88168
88252
  changePositionOnly
88169
88253
  };
88170
88254
  return this._showTooltipByHandler(tooltipData, newParams);
@@ -88192,7 +88276,8 @@
88192
88276
  info = {
88193
88277
  mark: params.mark,
88194
88278
  datum: params.datum,
88195
- series
88279
+ series,
88280
+ dimensionInfo: this._getDimensionInfo(params)
88196
88281
  };
88197
88282
  }
88198
88283
  else if (ignoreTriggers?.has(params.model) || ignoreTriggers?.has(params.mark)) {
@@ -88257,6 +88342,9 @@
88257
88342
  this._initEvent();
88258
88343
  }
88259
88344
  release() {
88345
+ this.event.emit(ChartEvent.tooltipRelease, {
88346
+ tooltip: this
88347
+ });
88260
88348
  super.release();
88261
88349
  this._eventList.forEach(({ eventType, handler }) => {
88262
88350
  this.event.off(eventType, handler);
@@ -88310,6 +88398,9 @@
88310
88398
  if (this._alwaysShow) {
88311
88399
  return;
88312
88400
  }
88401
+ if (!this._isTooltipShown && !this.tooltipHandler?.isTooltipShown?.()) {
88402
+ return;
88403
+ }
88313
88404
  const { clientX, clientY } = params.event;
88314
88405
  if (isTrueBrowser(this._option.mode) &&
88315
88406
  (this._isPointerInChart({ x: clientX, y: clientY }) || this._isPointerOnTooltip(params))) {