@visactor/vchart 2.0.1-alpha.5 → 2.0.1

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/build/index.es.js CHANGED
@@ -17747,9 +17747,10 @@ class Polygon extends Graphic {
17747
17747
  return super.needUpdateTag(key, POLYGON_UPDATE_TAG_KEY);
17748
17748
  }
17749
17749
  toCustomPath() {
17750
- const points = this.attribute.points,
17751
- path = new CustomPath2D();
17752
- return points.forEach((point, index) => {
17750
+ let path = super.toCustomPath();
17751
+ if (path) return path;
17752
+ const points = this.attribute.points;
17753
+ return path = new CustomPath2D(), points.forEach((point, index) => {
17753
17754
  0 === index ? path.moveTo(point.x, point.y) : path.lineTo(point.x, point.y);
17754
17755
  }), path.closePath(), path;
17755
17756
  }
@@ -21014,6 +21015,7 @@ let DefaultDrawContribution = class {
21014
21015
  drawContext.updateBounds ? this.useDirtyBounds = !0 : this.useDirtyBounds = !drawContext.stage.params.optimize.disableCheckGraphicWidthOutRange;
21015
21016
  }
21016
21017
  draw(renderService, drawContext) {
21018
+ var _a;
21017
21019
  this.prepareForDraw(renderService, drawContext), drawContext.drawContribution = this, this.currentRenderMap = this.styleRenderMap.get(drawContext.renderStyle) || this.defaultRenderMap, this.currentRenderService = renderService;
21018
21020
  const {
21019
21021
  context: context,
@@ -21028,7 +21030,7 @@ let DefaultDrawContribution = class {
21028
21030
  dirtyBounds.x1 = Math.floor(b.x1), dirtyBounds.y1 = Math.floor(b.y1), dirtyBounds.x2 = Math.ceil(b.x2), dirtyBounds.y2 = Math.ceil(b.y2);
21029
21031
  }
21030
21032
  const d = context.dpr % 1;
21031
- (d || .5 !== d) && (dirtyBounds.x1 = Math.floor(dirtyBounds.x1 * context.dpr) / context.dpr, dirtyBounds.y1 = Math.floor(dirtyBounds.y1 * context.dpr) / context.dpr, dirtyBounds.x2 = Math.ceil(dirtyBounds.x2 * context.dpr) / context.dpr, dirtyBounds.y2 = Math.ceil(dirtyBounds.y2 * context.dpr) / context.dpr), this.backupDirtyBounds.copy(dirtyBounds), context.reset(!1), context.save(), context.setClearMatrix(transMatrix.a, transMatrix.b, transMatrix.c, transMatrix.d, transMatrix.e, transMatrix.f), context.clearMatrix(!1), context.translate(viewBox.x1, viewBox.y1, !0), context.beginPath(), context.rect(dirtyBounds.x1, dirtyBounds.y1, dirtyBounds.width(), dirtyBounds.height()), context.clip(), stage.camera && (this.dirtyBounds.setValue(-1 / 0, -1 / 0, 1 / 0, 1 / 0), this.backupDirtyBounds.setValue(-1 / 0, -1 / 0, 1 / 0, 1 / 0)), this.clearScreen(renderService, context, drawContext), renderService.renderTreeRoots.sort((a, b) => {
21033
+ (d || .5 !== d) && (dirtyBounds.x1 = Math.floor(dirtyBounds.x1 * context.dpr) / context.dpr, dirtyBounds.y1 = Math.floor(dirtyBounds.y1 * context.dpr) / context.dpr, dirtyBounds.x2 = Math.ceil(dirtyBounds.x2 * context.dpr) / context.dpr, dirtyBounds.y2 = Math.ceil(dirtyBounds.y2 * context.dpr) / context.dpr), this.backupDirtyBounds.copy(dirtyBounds), context.reset(!1), context.save(), context.setClearMatrix(transMatrix.a, transMatrix.b, transMatrix.c, transMatrix.d, transMatrix.e, transMatrix.f), context.clearMatrix(!1), context.translate(viewBox.x1, viewBox.y1, !0), context.beginPath(), context.rect(dirtyBounds.x1, dirtyBounds.y1, dirtyBounds.width(), dirtyBounds.height()), context.clip(), stage.camera && (this.dirtyBounds.setValue(-1 / 0, -1 / 0, 1 / 0, 1 / 0), this.backupDirtyBounds.setValue(-1 / 0, -1 / 0, 1 / 0, 1 / 0)), this.clearScreen(renderService, context, drawContext), (null === (_a = renderService.drawParams) || void 0 === _a ? void 0 : _a.stage) && renderService.drawParams.stage.hooks.afterClearScreen.call(renderService.drawParams), renderService.renderTreeRoots.sort((a, b) => {
21032
21034
  var _a, _b;
21033
21035
  return (null !== (_a = a.attribute.zIndex) && void 0 !== _a ? _a : DefaultAttribute.zIndex) - (null !== (_b = b.attribute.zIndex) && void 0 !== _b ? _b : DefaultAttribute.zIndex);
21034
21036
  }).forEach(group => {
@@ -21702,13 +21704,16 @@ class Stage extends Group$1 {
21702
21704
  } else this._skipRender = 1;
21703
21705
  }, this.beforeRender = stage => {
21704
21706
  this._beforeRender && this._beforeRender(stage);
21707
+ }, this.afterClearScreen = drawParams => {
21708
+ this._afterClearScreen && this._afterClearScreen(drawParams);
21705
21709
  }, this.afterRender = stage => {
21706
21710
  this.renderCount++, this._afterRender && this._afterRender(stage), this._afterNextRenderCbs && this._afterNextRenderCbs.forEach(cb => cb(stage)), this._afterNextRenderCbs = null, this.tickedBeforeRender = !1;
21707
21711
  }, this.afterTickCb = () => {
21708
21712
  this.tickedBeforeRender = !0, "rendering" !== this.state && this.renderNextFrame();
21709
21713
  }, this.params = params, this.theme = new Theme(), this.hooks = {
21710
21714
  beforeRender: new SyncHook(["stage"]),
21711
- afterRender: new SyncHook(["stage"])
21715
+ afterRender: new SyncHook(["stage"]),
21716
+ afterClearScreen: new SyncHook(["stage"])
21712
21717
  }, this.global = application.global, !this.global.env && isBrowserEnv() && this.global.setEnv("browser"), this.window = container.get(VWindow), this.renderService = container.get(RenderService), this.pluginService = container.get(PluginService), this.layerService = container.get(LayerService), this.graphicService = container.get(GraphicService), this.pluginService.active(this, params), this.window.create({
21713
21718
  width: params.width,
21714
21719
  height: params.height,
@@ -21720,7 +21725,7 @@ class Stage extends Group$1 {
21720
21725
  canvas: params.canvas
21721
21726
  }), this.state = "normal", this.renderCount = 0, this.tryInitEventSystem(), this._background = null !== (_a = params.background) && void 0 !== _a ? _a : DefaultConfig.BACKGROUND, this.appendChild(this.layerService.createLayer(this, {
21722
21727
  main: !0
21723
- })), this.nextFrameRenderLayerSet = new Set(), this.willNextFrameRender = !1, this.stage = this, this.renderStyle = params.renderStyle, params.autoRender && this.enableAutoRender(), params.autoRefresh && this.enableAutoRefresh(), !1 === params.disableDirtyBounds && this.enableDirtyBounds(), params.enableHtmlAttribute && this.enableHtmlAttribute(params.enableHtmlAttribute), params.ReactDOM && this.enableReactAttribute(params.ReactDOM), params.enableLayout && this.enableLayout(), this.hooks.beforeRender.tap("constructor", this.beforeRender), this.hooks.afterRender.tap("constructor", this.afterRender), this._beforeRender = params.beforeRender, this._afterRender = params.afterRender, this.supportInteractiveLayer = !1 !== params.interactiveLayer, params.optimize || (params.optimize = {
21728
+ })), this.nextFrameRenderLayerSet = new Set(), this.willNextFrameRender = !1, this.stage = this, this.renderStyle = params.renderStyle, params.autoRender && this.enableAutoRender(), params.autoRefresh && this.enableAutoRefresh(), !1 === params.disableDirtyBounds && this.enableDirtyBounds(), params.enableHtmlAttribute && this.enableHtmlAttribute(params.enableHtmlAttribute), params.ReactDOM && this.enableReactAttribute(params.ReactDOM), params.enableLayout && this.enableLayout(), this.hooks.beforeRender.tap("constructor", this.beforeRender), this.hooks.afterRender.tap("constructor", this.afterRender), this.hooks.afterClearScreen.tap("constructor", this.afterClearScreen), this._beforeRender = params.beforeRender, this._afterRender = params.afterRender, this._afterClearScreen = params.afterClearScreen, this.supportInteractiveLayer = !1 !== params.interactiveLayer, params.optimize || (params.optimize = {
21724
21729
  tickRenderMode: "effect"
21725
21730
  }), this.optmize(params.optimize), params.background && isString$1(this._background) && this._background.includes("/") && this.setAttributes({
21726
21731
  background: this._background
@@ -32642,7 +32647,10 @@ class AnimationStateManager {
32642
32647
  reApplyState(state) {
32643
32648
  var _a;
32644
32649
  const stateInfo = null === (_a = this.stateList) || void 0 === _a ? void 0 : _a.find(stateInfo => stateInfo.state === state);
32645
- stateInfo && (stateInfo.executor.stop(), stateInfo.executor.execute(stateInfo.animationConfig));
32650
+ if (stateInfo) {
32651
+ const stateList = this.stateList.slice();
32652
+ stateInfo.executor.stop(), this.stateList = stateList, stateInfo.executor.execute(stateInfo.animationConfig);
32653
+ }
32646
32654
  }
32647
32655
  }
32648
32656
 
@@ -32680,10 +32688,12 @@ class GraphicStateExtension {
32680
32688
  }), this;
32681
32689
  }
32682
32690
  clearAnimationStates() {
32683
- return this._getAnimationStateManager(this).clearState(), this;
32691
+ const stateManager = this._animationStateManager;
32692
+ return stateManager && stateManager.clearState(), this;
32684
32693
  }
32685
32694
  reApplyAnimationState(state, deep = !1) {
32686
- return this._getAnimationStateManager(this).reApplyState(state), deep && this.isContainer && this.forEachChildren(child => {
32695
+ const stateManager = this._animationStateManager;
32696
+ return stateManager && stateManager.reApplyState(state), deep && this.isContainer && this.forEachChildren(child => {
32687
32697
  child.reApplyAnimationState(state, deep);
32688
32698
  }), this;
32689
32699
  }
@@ -36093,9 +36103,8 @@ class StreamLight extends ACustomAnimate {
36093
36103
  w = Math.min(Math.min(currentX + maxLength, maxLength), streamLength - currentX),
36094
36104
  width = w + x > parentWidth ? Math.max(parentWidth - x, 0) : w;
36095
36105
  this.rect.setAttributes({
36096
- x: x,
36097
- width: width,
36098
- dx: Math.min(parentAttr.x1 - parentAttr.x, 0)
36106
+ x: x + Math.min(parentAttr.x1 - parentAttr.x, 0),
36107
+ width: width
36099
36108
  }, !1, {
36100
36109
  type: AttributeUpdateType.ANIMATE_PLAY,
36101
36110
  animationState: {
@@ -36112,9 +36121,8 @@ class StreamLight extends ACustomAnimate {
36112
36121
  const h = Math.min(parentHeight - currentY, maxLength);
36113
36122
  let height;
36114
36123
  y <= 0 ? (height = Math.max(y + h, 0), y = 0) : height = h, this.rect.setAttributes({
36115
- y: y,
36116
- height: height,
36117
- dy: Math.min(parentAttr.y1 - parentAttr.y, 0)
36124
+ y: y + Math.min(parentAttr.y1 - parentAttr.y, 0),
36125
+ height: height
36118
36126
  }, !1, {
36119
36127
  type: AttributeUpdateType.ANIMATE_PLAY,
36120
36128
  animationState: {
@@ -50280,6 +50288,7 @@ class Compiler {
50280
50288
  (_c = (_b = this._option).beforeRender) === null || _c === void 0 ? void 0 : _c.call(_b, stage);
50281
50289
  },
50282
50290
  afterRender: this._option.afterRender,
50291
+ afterClearScreen: this._option.afterClearScreen,
50283
50292
  disableDirtyBounds: true,
50284
50293
  autoRender: true,
50285
50294
  ticker: this._option.ticker,
@@ -56915,7 +56924,7 @@ const lookup = (data, opt) => {
56915
56924
  });
56916
56925
  };
56917
56926
 
56918
- const version = "2.0.1-alpha.5";
56927
+ const version = "2.0.1";
56919
56928
 
56920
56929
  const addVChartProperty = (data, op) => {
56921
56930
  const context = op.beforeCall();
@@ -89714,11 +89723,15 @@ class Tooltip extends BaseComponent {
89714
89723
  });
89715
89724
  };
89716
89725
  this._handleClickToLock = (params) => {
89726
+ var _a, _b;
89717
89727
  if (this._clickLock) {
89718
89728
  this._handleChartMouseOut(params);
89719
89729
  this._clickLock = false;
89720
89730
  }
89721
89731
  else {
89732
+ if (!this._isTooltipShown && !((_b = (_a = this.tooltipHandler) === null || _a === void 0 ? void 0 : _a.isTooltipShown) === null || _b === void 0 ? void 0 : _b.call(_a))) {
89733
+ return;
89734
+ }
89722
89735
  this._clickLock = true;
89723
89736
  }
89724
89737
  };
@@ -90017,6 +90030,9 @@ class Tooltip extends BaseComponent {
90017
90030
  return;
90018
90031
  }
90019
90032
  this._isEnterTooltip = false;
90033
+ if (this._spec.triggerOff === 'none') {
90034
+ return;
90035
+ }
90020
90036
  if (this._cacheEnterableRect) {
90021
90037
  const newRect = (_a = container.getBoundingClientRect) === null || _a === void 0 ? void 0 : _a.call(container);
90022
90038
  if (newRect &&
package/build/index.js CHANGED
@@ -17753,9 +17753,10 @@
17753
17753
  return super.needUpdateTag(key, POLYGON_UPDATE_TAG_KEY);
17754
17754
  }
17755
17755
  toCustomPath() {
17756
- const points = this.attribute.points,
17757
- path = new CustomPath2D();
17758
- return points.forEach((point, index) => {
17756
+ let path = super.toCustomPath();
17757
+ if (path) return path;
17758
+ const points = this.attribute.points;
17759
+ return path = new CustomPath2D(), points.forEach((point, index) => {
17759
17760
  0 === index ? path.moveTo(point.x, point.y) : path.lineTo(point.x, point.y);
17760
17761
  }), path.closePath(), path;
17761
17762
  }
@@ -21020,6 +21021,7 @@
21020
21021
  drawContext.updateBounds ? this.useDirtyBounds = !0 : this.useDirtyBounds = !drawContext.stage.params.optimize.disableCheckGraphicWidthOutRange;
21021
21022
  }
21022
21023
  draw(renderService, drawContext) {
21024
+ var _a;
21023
21025
  this.prepareForDraw(renderService, drawContext), drawContext.drawContribution = this, this.currentRenderMap = this.styleRenderMap.get(drawContext.renderStyle) || this.defaultRenderMap, this.currentRenderService = renderService;
21024
21026
  const {
21025
21027
  context: context,
@@ -21034,7 +21036,7 @@
21034
21036
  dirtyBounds.x1 = Math.floor(b.x1), dirtyBounds.y1 = Math.floor(b.y1), dirtyBounds.x2 = Math.ceil(b.x2), dirtyBounds.y2 = Math.ceil(b.y2);
21035
21037
  }
21036
21038
  const d = context.dpr % 1;
21037
- (d || .5 !== d) && (dirtyBounds.x1 = Math.floor(dirtyBounds.x1 * context.dpr) / context.dpr, dirtyBounds.y1 = Math.floor(dirtyBounds.y1 * context.dpr) / context.dpr, dirtyBounds.x2 = Math.ceil(dirtyBounds.x2 * context.dpr) / context.dpr, dirtyBounds.y2 = Math.ceil(dirtyBounds.y2 * context.dpr) / context.dpr), this.backupDirtyBounds.copy(dirtyBounds), context.reset(!1), context.save(), context.setClearMatrix(transMatrix.a, transMatrix.b, transMatrix.c, transMatrix.d, transMatrix.e, transMatrix.f), context.clearMatrix(!1), context.translate(viewBox.x1, viewBox.y1, !0), context.beginPath(), context.rect(dirtyBounds.x1, dirtyBounds.y1, dirtyBounds.width(), dirtyBounds.height()), context.clip(), stage.camera && (this.dirtyBounds.setValue(-1 / 0, -1 / 0, 1 / 0, 1 / 0), this.backupDirtyBounds.setValue(-1 / 0, -1 / 0, 1 / 0, 1 / 0)), this.clearScreen(renderService, context, drawContext), renderService.renderTreeRoots.sort((a, b) => {
21039
+ (d || .5 !== d) && (dirtyBounds.x1 = Math.floor(dirtyBounds.x1 * context.dpr) / context.dpr, dirtyBounds.y1 = Math.floor(dirtyBounds.y1 * context.dpr) / context.dpr, dirtyBounds.x2 = Math.ceil(dirtyBounds.x2 * context.dpr) / context.dpr, dirtyBounds.y2 = Math.ceil(dirtyBounds.y2 * context.dpr) / context.dpr), this.backupDirtyBounds.copy(dirtyBounds), context.reset(!1), context.save(), context.setClearMatrix(transMatrix.a, transMatrix.b, transMatrix.c, transMatrix.d, transMatrix.e, transMatrix.f), context.clearMatrix(!1), context.translate(viewBox.x1, viewBox.y1, !0), context.beginPath(), context.rect(dirtyBounds.x1, dirtyBounds.y1, dirtyBounds.width(), dirtyBounds.height()), context.clip(), stage.camera && (this.dirtyBounds.setValue(-1 / 0, -1 / 0, 1 / 0, 1 / 0), this.backupDirtyBounds.setValue(-1 / 0, -1 / 0, 1 / 0, 1 / 0)), this.clearScreen(renderService, context, drawContext), (null === (_a = renderService.drawParams) || void 0 === _a ? void 0 : _a.stage) && renderService.drawParams.stage.hooks.afterClearScreen.call(renderService.drawParams), renderService.renderTreeRoots.sort((a, b) => {
21038
21040
  var _a, _b;
21039
21041
  return (null !== (_a = a.attribute.zIndex) && void 0 !== _a ? _a : DefaultAttribute.zIndex) - (null !== (_b = b.attribute.zIndex) && void 0 !== _b ? _b : DefaultAttribute.zIndex);
21040
21042
  }).forEach(group => {
@@ -21708,13 +21710,16 @@
21708
21710
  } else this._skipRender = 1;
21709
21711
  }, this.beforeRender = stage => {
21710
21712
  this._beforeRender && this._beforeRender(stage);
21713
+ }, this.afterClearScreen = drawParams => {
21714
+ this._afterClearScreen && this._afterClearScreen(drawParams);
21711
21715
  }, this.afterRender = stage => {
21712
21716
  this.renderCount++, this._afterRender && this._afterRender(stage), this._afterNextRenderCbs && this._afterNextRenderCbs.forEach(cb => cb(stage)), this._afterNextRenderCbs = null, this.tickedBeforeRender = !1;
21713
21717
  }, this.afterTickCb = () => {
21714
21718
  this.tickedBeforeRender = !0, "rendering" !== this.state && this.renderNextFrame();
21715
21719
  }, this.params = params, this.theme = new Theme(), this.hooks = {
21716
21720
  beforeRender: new SyncHook(["stage"]),
21717
- afterRender: new SyncHook(["stage"])
21721
+ afterRender: new SyncHook(["stage"]),
21722
+ afterClearScreen: new SyncHook(["stage"])
21718
21723
  }, this.global = application.global, !this.global.env && isBrowserEnv() && this.global.setEnv("browser"), this.window = container.get(VWindow), this.renderService = container.get(RenderService), this.pluginService = container.get(PluginService), this.layerService = container.get(LayerService), this.graphicService = container.get(GraphicService), this.pluginService.active(this, params), this.window.create({
21719
21724
  width: params.width,
21720
21725
  height: params.height,
@@ -21726,7 +21731,7 @@
21726
21731
  canvas: params.canvas
21727
21732
  }), this.state = "normal", this.renderCount = 0, this.tryInitEventSystem(), this._background = null !== (_a = params.background) && void 0 !== _a ? _a : DefaultConfig.BACKGROUND, this.appendChild(this.layerService.createLayer(this, {
21728
21733
  main: !0
21729
- })), this.nextFrameRenderLayerSet = new Set(), this.willNextFrameRender = !1, this.stage = this, this.renderStyle = params.renderStyle, params.autoRender && this.enableAutoRender(), params.autoRefresh && this.enableAutoRefresh(), !1 === params.disableDirtyBounds && this.enableDirtyBounds(), params.enableHtmlAttribute && this.enableHtmlAttribute(params.enableHtmlAttribute), params.ReactDOM && this.enableReactAttribute(params.ReactDOM), params.enableLayout && this.enableLayout(), this.hooks.beforeRender.tap("constructor", this.beforeRender), this.hooks.afterRender.tap("constructor", this.afterRender), this._beforeRender = params.beforeRender, this._afterRender = params.afterRender, this.supportInteractiveLayer = !1 !== params.interactiveLayer, params.optimize || (params.optimize = {
21734
+ })), this.nextFrameRenderLayerSet = new Set(), this.willNextFrameRender = !1, this.stage = this, this.renderStyle = params.renderStyle, params.autoRender && this.enableAutoRender(), params.autoRefresh && this.enableAutoRefresh(), !1 === params.disableDirtyBounds && this.enableDirtyBounds(), params.enableHtmlAttribute && this.enableHtmlAttribute(params.enableHtmlAttribute), params.ReactDOM && this.enableReactAttribute(params.ReactDOM), params.enableLayout && this.enableLayout(), this.hooks.beforeRender.tap("constructor", this.beforeRender), this.hooks.afterRender.tap("constructor", this.afterRender), this.hooks.afterClearScreen.tap("constructor", this.afterClearScreen), this._beforeRender = params.beforeRender, this._afterRender = params.afterRender, this._afterClearScreen = params.afterClearScreen, this.supportInteractiveLayer = !1 !== params.interactiveLayer, params.optimize || (params.optimize = {
21730
21735
  tickRenderMode: "effect"
21731
21736
  }), this.optmize(params.optimize), params.background && isString$1(this._background) && this._background.includes("/") && this.setAttributes({
21732
21737
  background: this._background
@@ -32648,7 +32653,10 @@
32648
32653
  reApplyState(state) {
32649
32654
  var _a;
32650
32655
  const stateInfo = null === (_a = this.stateList) || void 0 === _a ? void 0 : _a.find(stateInfo => stateInfo.state === state);
32651
- stateInfo && (stateInfo.executor.stop(), stateInfo.executor.execute(stateInfo.animationConfig));
32656
+ if (stateInfo) {
32657
+ const stateList = this.stateList.slice();
32658
+ stateInfo.executor.stop(), this.stateList = stateList, stateInfo.executor.execute(stateInfo.animationConfig);
32659
+ }
32652
32660
  }
32653
32661
  }
32654
32662
 
@@ -32686,10 +32694,12 @@
32686
32694
  }), this;
32687
32695
  }
32688
32696
  clearAnimationStates() {
32689
- return this._getAnimationStateManager(this).clearState(), this;
32697
+ const stateManager = this._animationStateManager;
32698
+ return stateManager && stateManager.clearState(), this;
32690
32699
  }
32691
32700
  reApplyAnimationState(state, deep = !1) {
32692
- return this._getAnimationStateManager(this).reApplyState(state), deep && this.isContainer && this.forEachChildren(child => {
32701
+ const stateManager = this._animationStateManager;
32702
+ return stateManager && stateManager.reApplyState(state), deep && this.isContainer && this.forEachChildren(child => {
32693
32703
  child.reApplyAnimationState(state, deep);
32694
32704
  }), this;
32695
32705
  }
@@ -36099,9 +36109,8 @@
36099
36109
  w = Math.min(Math.min(currentX + maxLength, maxLength), streamLength - currentX),
36100
36110
  width = w + x > parentWidth ? Math.max(parentWidth - x, 0) : w;
36101
36111
  this.rect.setAttributes({
36102
- x: x,
36103
- width: width,
36104
- dx: Math.min(parentAttr.x1 - parentAttr.x, 0)
36112
+ x: x + Math.min(parentAttr.x1 - parentAttr.x, 0),
36113
+ width: width
36105
36114
  }, !1, {
36106
36115
  type: AttributeUpdateType.ANIMATE_PLAY,
36107
36116
  animationState: {
@@ -36118,9 +36127,8 @@
36118
36127
  const h = Math.min(parentHeight - currentY, maxLength);
36119
36128
  let height;
36120
36129
  y <= 0 ? (height = Math.max(y + h, 0), y = 0) : height = h, this.rect.setAttributes({
36121
- y: y,
36122
- height: height,
36123
- dy: Math.min(parentAttr.y1 - parentAttr.y, 0)
36130
+ y: y + Math.min(parentAttr.y1 - parentAttr.y, 0),
36131
+ height: height
36124
36132
  }, !1, {
36125
36133
  type: AttributeUpdateType.ANIMATE_PLAY,
36126
36134
  animationState: {
@@ -50286,6 +50294,7 @@
50286
50294
  (_c = (_b = this._option).beforeRender) === null || _c === void 0 ? void 0 : _c.call(_b, stage);
50287
50295
  },
50288
50296
  afterRender: this._option.afterRender,
50297
+ afterClearScreen: this._option.afterClearScreen,
50289
50298
  disableDirtyBounds: true,
50290
50299
  autoRender: true,
50291
50300
  ticker: this._option.ticker,
@@ -56921,7 +56930,7 @@
56921
56930
  });
56922
56931
  };
56923
56932
 
56924
- const version = "2.0.1-alpha.5";
56933
+ const version = "2.0.1";
56925
56934
 
56926
56935
  const addVChartProperty = (data, op) => {
56927
56936
  const context = op.beforeCall();
@@ -89720,11 +89729,15 @@
89720
89729
  });
89721
89730
  };
89722
89731
  this._handleClickToLock = (params) => {
89732
+ var _a, _b;
89723
89733
  if (this._clickLock) {
89724
89734
  this._handleChartMouseOut(params);
89725
89735
  this._clickLock = false;
89726
89736
  }
89727
89737
  else {
89738
+ if (!this._isTooltipShown && !((_b = (_a = this.tooltipHandler) === null || _a === void 0 ? void 0 : _a.isTooltipShown) === null || _b === void 0 ? void 0 : _b.call(_a))) {
89739
+ return;
89740
+ }
89728
89741
  this._clickLock = true;
89729
89742
  }
89730
89743
  };
@@ -90023,6 +90036,9 @@
90023
90036
  return;
90024
90037
  }
90025
90038
  this._isEnterTooltip = false;
90039
+ if (this._spec.triggerOff === 'none') {
90040
+ return;
90041
+ }
90026
90042
  if (this._cacheEnterableRect) {
90027
90043
  const newRect = (_a = container.getBoundingClientRect) === null || _a === void 0 ? void 0 : _a.call(container);
90028
90044
  if (newRect &&