@visactor/vchart 2.0.12-alpha.5 → 2.0.13-alpha.0

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 (178) hide show
  1. package/build/es5/index.js +1 -1
  2. package/build/index.es.js +155 -128
  3. package/build/index.js +155 -128
  4. package/build/index.min.js +2 -2
  5. package/build/tsconfig.tsbuildinfo +1 -1
  6. package/cjs/animation/callback-disappear.d.ts +10 -0
  7. package/cjs/animation/callback-disappear.js +25 -0
  8. package/cjs/animation/callback-disappear.js.map +1 -0
  9. package/cjs/animation/config.d.ts +0 -6
  10. package/cjs/animation/config.js +3 -29
  11. package/cjs/animation/config.js.map +1 -1
  12. package/cjs/animation/interface.d.ts +6 -3
  13. package/cjs/animation/interface.js.map +1 -1
  14. package/cjs/chart/base/base-chart.d.ts +1 -0
  15. package/cjs/chart/base/base-chart.js +7 -2
  16. package/cjs/chart/base/base-chart.js.map +1 -1
  17. package/cjs/compile/compiler.d.ts +1 -1
  18. package/cjs/compile/compiler.js +16 -15
  19. package/cjs/compile/compiler.js.map +1 -1
  20. package/cjs/compile/grammar-item.js +1 -1
  21. package/cjs/compile/interface/compilable-item.d.ts +1 -0
  22. package/cjs/compile/interface/compilable-item.js.map +1 -1
  23. package/cjs/compile/morph.js +1 -1
  24. package/cjs/compile/state-manager.js +1 -1
  25. package/cjs/compile/util.js +1 -1
  26. package/cjs/component/axis/cartesian/axis.js +4 -1
  27. package/cjs/component/axis/cartesian/axis.js.map +1 -1
  28. package/cjs/component/geo/geo-coordinate.js +3 -2
  29. package/cjs/component/geo/geo-coordinate.js.map +1 -1
  30. package/cjs/component/marker/mark-point/base-mark-point.js +22 -20
  31. package/cjs/component/marker/mark-point/base-mark-point.js.map +1 -1
  32. package/cjs/component/tooltip/utils/show-tooltip.js +10 -2
  33. package/cjs/component/tooltip/utils/show-tooltip.js.map +1 -1
  34. package/cjs/constant/animate.d.ts +5 -0
  35. package/cjs/constant/animate.js +15 -0
  36. package/cjs/constant/animate.js.map +1 -0
  37. package/cjs/constant/data.js +1 -2
  38. package/cjs/constant/label.js +2 -1
  39. package/cjs/constant/word-cloud.js +1 -1
  40. package/cjs/core/expression-function.js +2 -1
  41. package/cjs/core/index.d.ts +1 -1
  42. package/cjs/core/index.js +2 -3
  43. package/cjs/core/index.js.map +1 -1
  44. package/cjs/core/vchart.d.ts +3 -0
  45. package/cjs/core/vchart.js +17 -4
  46. package/cjs/core/vchart.js.map +1 -1
  47. package/cjs/env/env.js +1 -1
  48. package/cjs/env/index.js +1 -1
  49. package/cjs/region/interface.d.ts +1 -0
  50. package/cjs/region/interface.js.map +1 -1
  51. package/cjs/series/bar/animation.js +4 -2
  52. package/cjs/series/bar/animation.js.map +1 -1
  53. package/cjs/series/base/base-series.d.ts +0 -1
  54. package/cjs/series/base/base-series.js +2 -7
  55. package/cjs/series/base/base-series.js.map +1 -1
  56. package/cjs/series/circle-packing/animation.js +2 -2
  57. package/cjs/series/circle-packing/animation.js.map +1 -1
  58. package/cjs/series/gauge/animation.js +2 -2
  59. package/cjs/series/gauge/animation.js.map +1 -1
  60. package/cjs/series/heatmap/heatmap.d.ts +1 -1
  61. package/cjs/series/heatmap/heatmap.js +2 -2
  62. package/cjs/series/heatmap/heatmap.js.map +1 -1
  63. package/cjs/series/pie/animation/animation.js +4 -2
  64. package/cjs/series/pie/animation/animation.js.map +1 -1
  65. package/cjs/series/polar/progress-like/animation.js +2 -2
  66. package/cjs/series/polar/progress-like/animation.js.map +1 -1
  67. package/cjs/series/progress/linear/animation.js +4 -2
  68. package/cjs/series/progress/linear/animation.js.map +1 -1
  69. package/cjs/series/radar/animation.js +9 -3
  70. package/cjs/series/radar/animation.js.map +1 -1
  71. package/cjs/series/range-column/animation.js +4 -2
  72. package/cjs/series/range-column/animation.js.map +1 -1
  73. package/cjs/series/rose/animation.js +4 -2
  74. package/cjs/series/rose/animation.js.map +1 -1
  75. package/cjs/series/sankey/animation.js +3 -3
  76. package/cjs/series/sankey/animation.js.map +1 -1
  77. package/cjs/series/sunburst/animation/index.js +4 -2
  78. package/cjs/series/sunburst/animation/index.js.map +1 -1
  79. package/cjs/series/treemap/animation.js +2 -2
  80. package/cjs/series/treemap/animation.js.map +1 -1
  81. package/cjs/series/venn/animation.js +3 -3
  82. package/cjs/series/venn/animation.js.map +1 -1
  83. package/cjs/series/waterfall/animation.js +4 -2
  84. package/cjs/series/waterfall/animation.js.map +1 -1
  85. package/cjs/series/word-cloud/animation.js +1 -1
  86. package/cjs/series/word-cloud/animation.js.map +1 -1
  87. package/cjs/theme/builtin/common/series/heatmap.js +1 -1
  88. package/cjs/theme/builtin/common/series/heatmap.js.map +1 -1
  89. package/cjs/util/type.d.ts +1 -0
  90. package/cjs/util/type.js +6 -2
  91. package/cjs/util/type.js.map +1 -1
  92. package/esm/animation/callback-disappear.d.ts +10 -0
  93. package/esm/animation/callback-disappear.js +17 -0
  94. package/esm/animation/callback-disappear.js.map +1 -0
  95. package/esm/animation/config.d.ts +0 -6
  96. package/esm/animation/config.js +7 -26
  97. package/esm/animation/config.js.map +1 -1
  98. package/esm/animation/interface.d.ts +6 -3
  99. package/esm/animation/interface.js.map +1 -1
  100. package/esm/chart/base/base-chart.d.ts +1 -0
  101. package/esm/chart/base/base-chart.js +7 -1
  102. package/esm/chart/base/base-chart.js.map +1 -1
  103. package/esm/compile/compiler.d.ts +1 -1
  104. package/esm/compile/compiler.js +18 -16
  105. package/esm/compile/compiler.js.map +1 -1
  106. package/esm/compile/grammar-item.js +1 -1
  107. package/esm/compile/interface/compilable-item.d.ts +1 -0
  108. package/esm/compile/interface/compilable-item.js.map +1 -1
  109. package/esm/compile/morph.js +1 -1
  110. package/esm/compile/state-manager.js +1 -1
  111. package/esm/compile/util.js +1 -1
  112. package/esm/component/axis/cartesian/axis.js +4 -1
  113. package/esm/component/axis/cartesian/axis.js.map +1 -1
  114. package/esm/component/geo/geo-coordinate.js +3 -2
  115. package/esm/component/geo/geo-coordinate.js.map +1 -1
  116. package/esm/component/marker/mark-point/base-mark-point.js +22 -20
  117. package/esm/component/marker/mark-point/base-mark-point.js.map +1 -1
  118. package/esm/component/tooltip/utils/show-tooltip.js +10 -2
  119. package/esm/component/tooltip/utils/show-tooltip.js.map +1 -1
  120. package/esm/constant/animate.d.ts +5 -0
  121. package/esm/constant/animate.js +10 -0
  122. package/esm/constant/animate.js.map +1 -0
  123. package/esm/constant/data.js +1 -2
  124. package/esm/constant/label.js +2 -1
  125. package/esm/constant/word-cloud.js +1 -1
  126. package/esm/core/expression-function.js +2 -1
  127. package/esm/core/index.d.ts +1 -1
  128. package/esm/core/index.js +2 -3
  129. package/esm/core/index.js.map +1 -1
  130. package/esm/core/vchart.d.ts +3 -0
  131. package/esm/core/vchart.js +18 -3
  132. package/esm/core/vchart.js.map +1 -1
  133. package/esm/env/env.js +1 -1
  134. package/esm/env/index.js +1 -1
  135. package/esm/region/interface.d.ts +1 -0
  136. package/esm/region/interface.js.map +1 -1
  137. package/esm/series/bar/animation.js +5 -1
  138. package/esm/series/bar/animation.js.map +1 -1
  139. package/esm/series/base/base-series.d.ts +0 -1
  140. package/esm/series/base/base-series.js +2 -6
  141. package/esm/series/base/base-series.js.map +1 -1
  142. package/esm/series/circle-packing/animation.js +3 -1
  143. package/esm/series/circle-packing/animation.js.map +1 -1
  144. package/esm/series/gauge/animation.js +3 -1
  145. package/esm/series/gauge/animation.js.map +1 -1
  146. package/esm/series/heatmap/heatmap.d.ts +1 -1
  147. package/esm/series/heatmap/heatmap.js +2 -2
  148. package/esm/series/heatmap/heatmap.js.map +1 -1
  149. package/esm/series/pie/animation/animation.js +5 -1
  150. package/esm/series/pie/animation/animation.js.map +1 -1
  151. package/esm/series/polar/progress-like/animation.js +3 -1
  152. package/esm/series/polar/progress-like/animation.js.map +1 -1
  153. package/esm/series/progress/linear/animation.js +5 -1
  154. package/esm/series/progress/linear/animation.js.map +1 -1
  155. package/esm/series/radar/animation.js +9 -3
  156. package/esm/series/radar/animation.js.map +1 -1
  157. package/esm/series/range-column/animation.js +5 -1
  158. package/esm/series/range-column/animation.js.map +1 -1
  159. package/esm/series/rose/animation.js +5 -1
  160. package/esm/series/rose/animation.js.map +1 -1
  161. package/esm/series/sankey/animation.js +3 -1
  162. package/esm/series/sankey/animation.js.map +1 -1
  163. package/esm/series/sunburst/animation/index.js +5 -1
  164. package/esm/series/sunburst/animation/index.js.map +1 -1
  165. package/esm/series/treemap/animation.js +3 -1
  166. package/esm/series/treemap/animation.js.map +1 -1
  167. package/esm/series/venn/animation.js +4 -2
  168. package/esm/series/venn/animation.js.map +1 -1
  169. package/esm/series/waterfall/animation.js +5 -1
  170. package/esm/series/waterfall/animation.js.map +1 -1
  171. package/esm/series/word-cloud/animation.js +1 -1
  172. package/esm/series/word-cloud/animation.js.map +1 -1
  173. package/esm/theme/builtin/common/series/heatmap.js +1 -1
  174. package/esm/theme/builtin/common/series/heatmap.js.map +1 -1
  175. package/esm/util/type.d.ts +1 -0
  176. package/esm/util/type.js +4 -0
  177. package/esm/util/type.js.map +1 -1
  178. package/package.json +6 -6
package/build/index.es.js CHANGED
@@ -26232,6 +26232,9 @@ function isDataDomainSpec(domain) {
26232
26232
  }
26233
26233
  return isArray$1(domain[0].fields);
26234
26234
  }
26235
+ function isClass(obj) {
26236
+ return typeof obj === 'function' && /^class\s/.test(obj.toString());
26237
+ }
26235
26238
 
26236
26239
  const GROUP_ATTRIBUTES = ["x", "y", "dx", "dy", "scaleX", "scaleY", "angle", "anchor", "postMatrix", "visible", "clip", "pickable", "childrenPickable", "zIndex", "cursor"];
26237
26240
  class AbstractComponent extends Group$1 {
@@ -40713,8 +40716,9 @@ class LineAxis extends AxisBase {
40713
40716
  let tickLength = 0;
40714
40717
  (null === (_b = this.attribute.tick) || void 0 === _b ? void 0 : _b.visible) && !1 === this.attribute.tick.inside && (tickLength = this.attribute.tick.length || 4), (null === (_c = this.attribute.subTick) || void 0 === _c ? void 0 : _c.visible) && !1 === this.attribute.subTick.inside && (tickLength = Math.max(tickLength, this.attribute.subTick.length || 2));
40715
40718
  const offset = tickLength + labelLength + space,
40716
- titlePoint = this.getVerticalCoord(point, offset, !1),
40717
- vector = this.getVerticalVector(offset, !1, {
40719
+ actualOffset = this.getActualOffset(offset),
40720
+ titlePoint = this.getVerticalCoord(point, actualOffset, !1),
40721
+ vector = this.getVerticalVector(actualOffset, !1, {
40718
40722
  x: 0,
40719
40723
  y: 0
40720
40724
  });
@@ -40743,11 +40747,11 @@ class LineAxis extends AxisBase {
40743
40747
  if (angle !== Math.PI / 2) {
40744
40748
  const cosValue = Math.abs(Math.cos(null != angle ? angle : 0));
40745
40749
  maxTagWidth = cosValue < 1e-6 ? 1 / 0 : this.attribute.end.x / cosValue;
40746
- } else maxTagWidth = limitSize - offset;
40750
+ } else maxTagWidth = limitSize - actualOffset;
40747
40751
  } else if (angle && 0 !== angle) {
40748
40752
  const sinValue = Math.abs(Math.sin(angle));
40749
40753
  maxTagWidth = sinValue < 1e-6 ? 1 / 0 : this.attribute.end.y / sinValue;
40750
- } else maxTagWidth = limitSize - offset;
40754
+ } else maxTagWidth = limitSize - actualOffset;
40751
40755
  }
40752
40756
  }
40753
40757
  const attrs = Object.assign(Object.assign(Object.assign({}, titlePoint), restAttrs), {
@@ -41052,6 +41056,10 @@ class LineAxis extends AxisBase {
41052
41056
  visibleAll: !1
41053
41057
  });
41054
41058
  }
41059
+ getActualOffset(offset) {
41060
+ const orient = this.attribute.orient;
41061
+ return "left" === orient || "right" === orient ? this.attribute.width ? this.attribute.width : (this.attribute.maxWidth && (offset = Math.min(offset, this.attribute.maxWidth)), this.attribute.minWidth && (offset = Math.max(offset, this.attribute.minWidth)), offset) : offset;
41062
+ }
41055
41063
  release() {
41056
41064
  super.release(), this._breaks = null;
41057
41065
  }
@@ -54872,7 +54880,17 @@ function diffMarks(prevMarks, nextMarks, runningConfig) {
54872
54880
  return diffResult;
54873
54881
  }
54874
54882
 
54883
+ const BuiltIn_DISAPPEAR_ANIMATE_NAME = `${PREFIX}_BuiltIn_CallBack_Disappear`;
54884
+ var RenderStateEnum;
54885
+ (function (RenderStateEnum) {
54886
+ RenderStateEnum["render"] = "render";
54887
+ RenderStateEnum["disappear"] = "disappear";
54888
+ })(RenderStateEnum || (RenderStateEnum = {}));
54889
+
54875
54890
  class Compiler {
54891
+ get stateAnimationConfig() {
54892
+ return this._stateAnimationConfig;
54893
+ }
54876
54894
  getRootGroup() {
54877
54895
  return this._rootGroup;
54878
54896
  }
@@ -55057,7 +55075,6 @@ class Compiler {
55057
55075
  var _a, _b, _c, _d, _e, _f;
55058
55076
  (_b = (_a = this._option.performanceHook) === null || _a === void 0 ? void 0 : _a.beforeDoRender) === null || _b === void 0 ? void 0 : _b.call(_a, this._compileChart.getOption().globalInstance);
55059
55077
  if (this._stage) {
55060
- this.runStageAnimation();
55061
55078
  this._rootMarks.forEach(g => {
55062
55079
  traverseGroupMark(g, m => {
55063
55080
  if (m.needClear) {
@@ -55151,14 +55168,26 @@ class Compiler {
55151
55168
  Object.keys(config).forEach(key => {
55152
55169
  const value = config[key];
55153
55170
  if (isArray$1(value)) {
55154
- animationConfig[key] = value.map(item => {
55155
- var _a;
55156
- const options = (_a = item.options) !== null && _a !== void 0 ? _a : {};
55157
- return Object.assign(Object.assign({}, item), { options: (...args) => {
55158
- const _options = typeof options === 'function' ? options(...args) : options;
55159
- return Object.assign({}, _options);
55160
- } });
55161
- });
55171
+ if (key === 'disappear') {
55172
+ animationConfig[key] = value.map(item => {
55173
+ if (isClass(item.callBack)) {
55174
+ return Object.assign(Object.assign({}, item), { custom: item.callBack });
55175
+ }
55176
+ return Object.assign(Object.assign({}, item), { type: BuiltIn_DISAPPEAR_ANIMATE_NAME, customParameters: {
55177
+ callBack: item.callBack
55178
+ } });
55179
+ });
55180
+ }
55181
+ else {
55182
+ animationConfig[key] = value.map(item => {
55183
+ var _a;
55184
+ const options = (_a = item.options) !== null && _a !== void 0 ? _a : {};
55185
+ return Object.assign(Object.assign({}, item), { options: (...args) => {
55186
+ const _options = typeof options === 'function' ? options(...args) : options;
55187
+ return Object.assign({}, _options);
55188
+ } });
55189
+ });
55190
+ }
55162
55191
  }
55163
55192
  else {
55164
55193
  animationConfig[key] = Object.assign({}, config[key]);
@@ -55184,29 +55213,6 @@ class Compiler {
55184
55213
  }
55185
55214
  this._stage.context.animationState = animationState;
55186
55215
  }
55187
- runStageAnimation() {
55188
- var _a;
55189
- const animationState = (_a = this._stage.context) === null || _a === void 0 ? void 0 : _a.animationState;
55190
- if (!this._stateAnimationConfig || animationState === AnimationStateEnum.none) {
55191
- return;
55192
- }
55193
- const animationConfigs = array(this._stateAnimationConfig[animationState]).filter(config => config.type);
55194
- if (!animationConfigs.length) {
55195
- return;
55196
- }
55197
- if (animationState === AnimationStateEnum.appear) {
55198
- this._stage.stopAnimationState(AnimationStateEnum.disappear);
55199
- }
55200
- else if (animationState === AnimationStateEnum.disappear) {
55201
- this._stage.stopAnimationState(AnimationStateEnum.appear);
55202
- }
55203
- this._stage.applyAnimationState([animationState], [
55204
- {
55205
- name: animationState,
55206
- animation: animationConfigs
55207
- }
55208
- ]);
55209
- }
55210
55216
  updateViewBox(viewBox, reRender = true) {
55211
55217
  if (!this._stage) {
55212
55218
  return;
@@ -59662,6 +59668,29 @@ function linePresetAnimation(params, preset) {
59662
59668
  }
59663
59669
  }
59664
59670
 
59671
+ class CallbackDisappearAnimate extends AStageAnimate {
59672
+ constructor(from, to, duration, easing, params) {
59673
+ super(from, to, duration, easing, params);
59674
+ this.currentAnimationRatio = 0;
59675
+ this.animationTime = 0;
59676
+ }
59677
+ onUpdate(end, ratio, out) {
59678
+ super.onUpdate(end, ratio, out);
59679
+ this.currentAnimationRatio = ratio;
59680
+ this.animationTime = ratio * Math.PI * 2;
59681
+ }
59682
+ getAnimationTime() {
59683
+ if (this.currentAnimationRatio > 0) {
59684
+ return this.animationTime;
59685
+ }
59686
+ return Date.now() / 1000.0;
59687
+ }
59688
+ afterStageRender(stage, canvas) {
59689
+ var _a, _b;
59690
+ return (_b = (_a = this.params) === null || _a === void 0 ? void 0 : _a.callBack) === null || _b === void 0 ? void 0 : _b.call(_a, stage, canvas, this.currentAnimationRatio, this.animationTime);
59691
+ }
59692
+ }
59693
+
59665
59694
  const DEFAULT_ANIMATION_CONFIG = {
59666
59695
  appear: {
59667
59696
  duration: 1000,
@@ -59692,14 +59721,12 @@ const DEFAULT_ANIMATION_CONFIG = {
59692
59721
  const ScaleInOutAnimation = {
59693
59722
  appear: { type: 'scaleIn' },
59694
59723
  enter: { type: 'scaleIn' },
59695
- exit: { type: 'scaleOut' },
59696
- disappear: { type: 'scaleOut' }
59724
+ exit: { type: 'scaleOut' }
59697
59725
  };
59698
59726
  const FadeInOutAnimation = {
59699
59727
  appear: { type: 'fadeIn' },
59700
59728
  enter: { type: 'fadeIn' },
59701
- exit: { type: 'fadeOut' },
59702
- disappear: { type: 'fadeOut' }
59729
+ exit: { type: 'fadeOut' }
59703
59730
  };
59704
59731
  const registerScaleInOutAnimation = () => {
59705
59732
  Factory.registerAnimation('scaleInOut', () => ScaleInOutAnimation);
@@ -59722,19 +59749,6 @@ const registerCartesianGroupClipAnimation = () => {
59722
59749
  orient: params.orient()
59723
59750
  };
59724
59751
  }
59725
- },
59726
- disappear: {
59727
- custom: ClipDirectionAnimate,
59728
- customParameters: (datum, g) => {
59729
- return {
59730
- animationType: 'out',
59731
- group: g,
59732
- direction: params.direction(),
59733
- width: params.width(),
59734
- height: params.height(),
59735
- orient: params.orient()
59736
- };
59737
- }
59738
59752
  }
59739
59753
  };
59740
59754
  });
@@ -59758,8 +59772,7 @@ const lineOrAreaAnimation = (params, preset) => {
59758
59772
  clipRangeByDimension: params.direction === "horizontal" ? 'y' : 'x'
59759
59773
  }
59760
59774
  }
59761
- ],
59762
- disappear: { type: 'clipOut' }
59775
+ ]
59763
59776
  };
59764
59777
  };
59765
59778
  const registerLineAnimation = () => {
@@ -59809,13 +59822,7 @@ const registerPolygonAnimation = () => {
59809
59822
  AnimateExecutor.registerBuiltInAnimate('growPointsOut', GrowPointsOut);
59810
59823
  };
59811
59824
  const registerStageAnimation = () => {
59812
- AnimateExecutor.registerBuiltInAnimate('distortion', Distortion);
59813
- AnimateExecutor.registerBuiltInAnimate('particle', Particle);
59814
- AnimateExecutor.registerBuiltInAnimate('pixelation', Pixelation);
59815
- AnimateExecutor.registerBuiltInAnimate('gaussianBlur', GaussianBlur);
59816
- AnimateExecutor.registerBuiltInAnimate('glitch', Glitch);
59817
- AnimateExecutor.registerBuiltInAnimate('grayscale', Grayscale);
59818
- AnimateExecutor.registerBuiltInAnimate('dissolve', Dissolve);
59825
+ AnimateExecutor.registerBuiltInAnimate(BuiltIn_DISAPPEAR_ANIMATE_NAME, CallbackDisappearAnimate);
59819
59826
  };
59820
59827
 
59821
59828
  const registerAnimate = () => {
@@ -60362,6 +60369,7 @@ class VChart {
60362
60369
  };
60363
60370
  this._observer = null;
60364
60371
  this._context = {};
60372
+ this._renderState = RenderStateEnum.render;
60365
60373
  this._doResize = () => {
60366
60374
  const { width, height } = this.getCurrentSize();
60367
60375
  if (this._currentSize.width !== width || this._currentSize.height !== height) {
@@ -60382,6 +60390,7 @@ class VChart {
60382
60390
  };
60383
60391
  this._updateSpec = (spec, forceMerge = false, userUpdateOptions) => {
60384
60392
  var _a;
60393
+ this._reSetRenderState();
60385
60394
  const lastSpec = this._spec;
60386
60395
  const result = {
60387
60396
  changeBackground: false,
@@ -60854,6 +60863,7 @@ class VChart {
60854
60863
  });
60855
60864
  }
60856
60865
  updateDataSync(id, data, parserOptions, userUpdateOptions) {
60866
+ this._reSetRenderState();
60857
60867
  if (isNil$1(this._dataSet)) {
60858
60868
  return this;
60859
60869
  }
@@ -60871,6 +60881,7 @@ class VChart {
60871
60881
  return this;
60872
60882
  }
60873
60883
  updateFullDataSync(data, reRender = true, userUpdateOptions) {
60884
+ this._reSetRenderState();
60874
60885
  if (this._chart) {
60875
60886
  this._chart.updateFullData(data);
60876
60887
  if (reRender) {
@@ -61595,6 +61606,20 @@ class VChart {
61595
61606
  componentShowContent: this._option.componentShowContent
61596
61607
  };
61597
61608
  }
61609
+ runDisappearAnimation() {
61610
+ this._renderState = RenderStateEnum.disappear;
61611
+ this.getStage().eventSystem.pauseTriggerEvent();
61612
+ this.getStage().applyAnimationState(['disappear'], [
61613
+ {
61614
+ name: 'disappear',
61615
+ animation: this._compiler.stateAnimationConfig.disappear
61616
+ }
61617
+ ]);
61618
+ }
61619
+ _reSetRenderState() {
61620
+ this._renderState = RenderStateEnum.render;
61621
+ this.getStage().eventSystem.resumeTriggerEvent();
61622
+ }
61598
61623
  }
61599
61624
  VChart.InstanceManager = InstanceManager;
61600
61625
  VChart.ThemeManager = ThemeManager;
@@ -61711,7 +61736,7 @@ const lookup = (data, opt) => {
61711
61736
  });
61712
61737
  };
61713
61738
 
61714
- const version = "2.0.11";
61739
+ const version = "2.0.12";
61715
61740
 
61716
61741
  const addVChartProperty = (data, op) => {
61717
61742
  const context = op.beforeCall();
@@ -62761,7 +62786,6 @@ class BaseSeries extends BaseModel {
62761
62786
  this.initMarkState();
62762
62787
  if (hasAnimation) {
62763
62788
  this.initAnimation();
62764
- this.initStageAnimation();
62765
62789
  }
62766
62790
  this.afterInitMark();
62767
62791
  this.initEvent();
@@ -63218,13 +63242,6 @@ class BaseSeries extends BaseModel {
63218
63242
  }
63219
63243
  initAnimation() {
63220
63244
  }
63221
- initStageAnimation() {
63222
- const compiler = this._option.getCompiler();
63223
- if (!(compiler === null || compiler === void 0 ? void 0 : compiler.setStageAnimationConfig)) {
63224
- return;
63225
- }
63226
- compiler.setStageAnimationConfig(animationConfig({}, userAnimationConfig('stage', this._spec, this._markAttributeContext), null));
63227
- }
63228
63245
  initMarkState() {
63229
63246
  this.initSeriesStyleState();
63230
63247
  }
@@ -67084,7 +67101,10 @@ class CartesianAxis extends AxisComponent {
67084
67101
  maxWidth: this._getTitleLimit(isX)
67085
67102
  },
67086
67103
  items,
67087
- scale: this._scale.clone()
67104
+ scale: this._scale.clone(),
67105
+ maxWidth: this._layout.maxWidth,
67106
+ minWidth: this._layout.minWidth,
67107
+ width: this._spec.width ? this.getLayoutRect().width : undefined
67088
67108
  };
67089
67109
  if (!ignoreGrid) {
67090
67110
  attrs.grid = {
@@ -69740,6 +69760,14 @@ class BaseChart extends CompilableBase {
69740
69760
  (_d = (_c = this)._initStack) === null || _d === void 0 ? void 0 : _d.call(_c);
69741
69761
  this.reDataFlow();
69742
69762
  this._initInteractions();
69763
+ this.initStageAnimation();
69764
+ }
69765
+ initStageAnimation() {
69766
+ const compiler = this._option.getCompiler();
69767
+ if (!(compiler === null || compiler === void 0 ? void 0 : compiler.setStageAnimationConfig)) {
69768
+ return;
69769
+ }
69770
+ compiler.setStageAnimationConfig(animationConfig({}, userAnimationConfig('stage', this._spec, {}), null));
69743
69771
  }
69744
69772
  reDataFlow() {
69745
69773
  this._series.forEach(s => { var _a; return (_a = s.getRawData()) === null || _a === void 0 ? void 0 : _a.markRunning(); });
@@ -72415,7 +72443,7 @@ const registerBarAnimation = () => {
72415
72443
  appear: barPresetAnimation(params, preset),
72416
72444
  enter: barGrowIn(params, false),
72417
72445
  exit: barGrowOut(params, false),
72418
- disappear: barGrowOut(params)
72446
+ disappear: { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration }
72419
72447
  };
72420
72448
  });
72421
72449
  };
@@ -74267,7 +74295,9 @@ class GeoCoordinate extends BaseComponent {
74267
74295
  };
74268
74296
  this._handleChartZoom = (params, event) => {
74269
74297
  var _a, _b, _c, _d, _e, _f;
74270
- let scale = params.zoomDelta;
74298
+ const rate = isValid$1(this._spec.zoomRate) ? Math.max(0, this._spec.zoomRate) : 1;
74299
+ const delta = Math.max(params.zoomDelta, 1e-6);
74300
+ let scale = Math.pow(delta, rate);
74271
74301
  const _lastActualScale = this._actualScale;
74272
74302
  this._actualScale *= scale;
74273
74303
  if (this._actualScale < ((_a = this._spec.zoomLimit) === null || _a === void 0 ? void 0 : _a.min)) {
@@ -74559,7 +74589,7 @@ class GeoCoordinate extends BaseComponent {
74559
74589
  _compareSpec(spec, prevSpec) {
74560
74590
  const result = super._compareSpec(spec, prevSpec);
74561
74591
  if (!result.reMake) {
74562
- result.reMake = ['roam', 'longitudeField', 'latitudeField', 'projection', 'zoomLimit'].some(k => {
74592
+ result.reMake = ['roam', 'longitudeField', 'latitudeField', 'projection', 'zoomLimit', 'zoomRate'].some(k => {
74563
74593
  return !isEqual(prevSpec === null || prevSpec === void 0 ? void 0 : prevSpec[k], spec[k]);
74564
74594
  });
74565
74595
  }
@@ -75145,7 +75175,7 @@ const registerWaterfallAnimation = () => {
75145
75175
  appear: waterfallPresetAnimation(params, preset),
75146
75176
  enter: barGrowIn(params, false),
75147
75177
  exit: barGrowOut(params, false),
75148
- disappear: barGrowOut(params, false)
75178
+ disappear: { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration }
75149
75179
  };
75150
75180
  });
75151
75181
  };
@@ -77383,7 +77413,7 @@ const registerRangeColumnAnimation = () => {
77383
77413
  appear: rangeColumnPresetAnimation(params, preset),
77384
77414
  enter: rangeColumnGrowIn(params),
77385
77415
  exit: rangeColumnGrowOut(params),
77386
- disappear: rangeColumnGrowOut(params)
77416
+ disappear: { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration }
77387
77417
  }));
77388
77418
  };
77389
77419
 
@@ -78045,7 +78075,7 @@ const registerPieAnimation = () => {
78045
78075
  appear: piePresetAnimation(params, preset),
78046
78076
  enter: pieEnter(params),
78047
78077
  exit: pieExit(params),
78048
- disappear: pieDisappear(params)
78078
+ disappear: { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration }
78049
78079
  };
78050
78080
  });
78051
78081
  };
@@ -78638,7 +78668,6 @@ const roseExit = (params) => {
78638
78668
  type: growOutType(params.growField)
78639
78669
  };
78640
78670
  };
78641
- const roseDisappear = roseExit;
78642
78671
  function rosePresetAnimation(params, preset) {
78643
78672
  if (preset === false) {
78644
78673
  return {};
@@ -78658,7 +78687,7 @@ const registerRoseAnimation = () => {
78658
78687
  appear: rosePresetAnimation(params, preset),
78659
78688
  enter: roseEnter(params),
78660
78689
  exit: roseExit(params),
78661
- disappear: roseDisappear(params)
78690
+ disappear: { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration }
78662
78691
  };
78663
78692
  });
78664
78693
  };
@@ -79545,7 +79574,7 @@ const registerRadarAnimation = () => {
79545
79574
  appear: preset === 'clipIn' ? undefined : radarPresetAnimation(params, preset, 'in'),
79546
79575
  enter: radarPresetAnimation(params, preset, 'in'),
79547
79576
  exit: radarPresetAnimation(params, preset, 'out'),
79548
- disappear: preset === 'clipIn' ? undefined : radarPresetAnimation(params, preset, 'out'),
79577
+ disappear: preset === 'clipIn' ? undefined : { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration },
79549
79578
  update: [
79550
79579
  {
79551
79580
  channel: ['points', 'center'],
@@ -79565,7 +79594,7 @@ const registerRadarAnimation = () => {
79565
79594
  appear: preset === 'clipIn' ? undefined : radarSymbolPresetAnimation(params, preset, 'in'),
79566
79595
  enter: { type: 'scaleIn' },
79567
79596
  exit: { type: 'scaleOut' },
79568
- disappear: preset === 'clipIn' ? undefined : radarSymbolPresetAnimation(params, preset, 'out'),
79597
+ disappear: preset === 'clipIn' ? undefined : { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration },
79569
79598
  update: [
79570
79599
  {
79571
79600
  options: { excludeChannels: ['x', 'y', 'center'] }
@@ -79582,7 +79611,7 @@ const registerRadarAnimation = () => {
79582
79611
  Factory.registerAnimation('radarGroup', (params, preset) => {
79583
79612
  return {
79584
79613
  appear: radarGroupClipAnimation(params, 'in'),
79585
- disappear: radarGroupClipAnimation(params, 'out')
79614
+ disappear: { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration }
79586
79615
  };
79587
79616
  });
79588
79617
  registerArc();
@@ -80784,7 +80813,7 @@ const registerProgressLikeAnimation = () => {
80784
80813
  Factory.registerAnimation('circularProgress', (params, preset) => ({
80785
80814
  appear: progressLikePresetAnimation(params, preset),
80786
80815
  enter: { type: 'growAngleIn' },
80787
- disappear: { type: 'growAngleOut' }
80816
+ disappear: { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration }
80788
80817
  }));
80789
80818
  };
80790
80819
 
@@ -80989,12 +81018,6 @@ const Appear_Grow$2 = (params) => {
80989
81018
  options: LinearProgressGrowOption(params)
80990
81019
  };
80991
81020
  };
80992
- const linearProgressDisappear = (params) => {
80993
- return {
80994
- type: params.direction === "horizontal" ? 'growWidthOut' : 'growHeightOut',
80995
- options: LinearProgressGrowOption(params)
80996
- };
80997
- };
80998
81021
  const Appear_FadeIn$1 = {
80999
81022
  type: 'fadeIn'
81000
81023
  };
@@ -81014,7 +81037,7 @@ const registerLinearProgressAnimation = () => {
81014
81037
  return {
81015
81038
  appear: linearProgressPresetAnimation(params, preset),
81016
81039
  enter: linearProgressPresetAnimation(params),
81017
- disappear: linearProgressDisappear(params)
81040
+ disappear: { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration }
81018
81041
  };
81019
81042
  });
81020
81043
  };
@@ -81658,7 +81681,7 @@ const registerWordCloudAnimation = () => {
81658
81681
  appear: wordcloudPresetAnimation(params, preset),
81659
81682
  enter: { type: 'fadeIn' },
81660
81683
  exit: { type: 'fadeOut' },
81661
- disappear: { type: 'fadeOut' }
81684
+ disappear: { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration }
81662
81685
  }));
81663
81686
  };
81664
81687
 
@@ -87928,7 +87951,7 @@ const registerSunburstAnimation = () => {
87928
87951
  appear: sunburstPresetAnimation(params, preset),
87929
87952
  enter: sunburstEnter(params),
87930
87953
  exit: sunburstExit(params),
87931
- disappear: sunburstExit(params)
87954
+ disappear: { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration }
87932
87955
  }));
87933
87956
  };
87934
87957
 
@@ -88431,7 +88454,7 @@ const registerCirclePackingAnimation = () => {
88431
88454
  appear: circlePackingPresetAnimation(preset),
88432
88455
  enter: { type: 'growRadiusIn' },
88433
88456
  exit: { type: 'growRadiusOut' },
88434
- disappear: { type: 'growRadiusOut' }
88457
+ disappear: { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration }
88435
88458
  }));
88436
88459
  };
88437
88460
 
@@ -88901,7 +88924,7 @@ const registerSankeyAnimation = () => {
88901
88924
  appear: sankeyLinkPresetAnimation(preset),
88902
88925
  enter: { type: 'linkPathGrowIn' },
88903
88926
  exit: { type: 'linkPathGrowOut' },
88904
- disappear: { type: 'linkPathGrowOut' }
88927
+ disappear: { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration }
88905
88928
  }));
88906
88929
  AnimateExecutor.registerBuiltInAnimate('linkPathGrowOut', LinkPathGrowOut);
88907
88930
  AnimateExecutor.registerBuiltInAnimate('linkPathGrowIn', LinkPathGrowIn);
@@ -90095,7 +90118,7 @@ const registerTreemapAnimation = () => {
90095
90118
  appear: treemapPresetAnimation(preset),
90096
90119
  enter: { type: 'growCenterIn' },
90097
90120
  exit: { type: 'growCenterOut' },
90098
- disappear: { type: 'growCenterOut' }
90121
+ disappear: { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration }
90099
90122
  };
90100
90123
  });
90101
90124
  };
@@ -90585,7 +90608,7 @@ const registerGaugePointerAnimation = () => {
90585
90608
  return {
90586
90609
  appear: animation,
90587
90610
  enter: animation,
90588
- disappear: { type: 'fadeOut' }
90611
+ disappear: { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration }
90589
90612
  };
90590
90613
  });
90591
90614
  };
@@ -91061,7 +91084,7 @@ class HeatmapSeriesSpecTransformer extends BaseSeriesSpecTransformer {
91061
91084
  const heatmap = {
91062
91085
  cell: {
91063
91086
  style: {
91064
- shape: 'square',
91087
+ shape: 'rect',
91065
91088
  fillOpacity: 1
91066
91089
  }
91067
91090
  },
@@ -91153,7 +91176,7 @@ class HeatmapSeries extends CartesianSeries {
91153
91176
  var _a;
91154
91177
  return {
91155
91178
  scale: (_a = this._option.globalScale.getScale('color')) !== null && _a !== void 0 ? _a : this._getDefaultColorScale(),
91156
- field: this.getFieldValue[0]
91179
+ field: this.getFieldValue()[0]
91157
91180
  };
91158
91181
  }
91159
91182
  getInteractionTriggers() {
@@ -91174,7 +91197,7 @@ class HeatmapSeries extends CartesianSeries {
91174
91197
  this._cellMark && this._tooltipHelper.activeTriggerSet.mark.add(this._cellMark);
91175
91198
  }
91176
91199
  getDefaultShapeType() {
91177
- return 'square';
91200
+ return 'rect';
91178
91201
  }
91179
91202
  getDimensionField() {
91180
91203
  return [].concat(this.fieldX, this.fieldY);
@@ -92300,7 +92323,7 @@ const registerVennAnimation = () => {
92300
92323
  appear: vennCirclePresetAnimation(preset),
92301
92324
  enter: { type: 'growRadiusIn' },
92302
92325
  exit: { type: 'growRadiusOut' },
92303
- disappear: { type: 'growRadiusOut' }
92326
+ disappear: { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration }
92304
92327
  };
92305
92328
  });
92306
92329
  Factory.registerAnimation('vennOverlap', (params, preset) => {
@@ -92309,7 +92332,7 @@ const registerVennAnimation = () => {
92309
92332
  update: { custom: VennOverlapAnimation },
92310
92333
  enter: { type: 'fadeIn' },
92311
92334
  exit: { type: 'fadeOut' },
92312
- disappear: { type: 'fadeOut' }
92335
+ disappear: { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration }
92313
92336
  };
92314
92337
  });
92315
92338
  };
@@ -95636,11 +95659,15 @@ function showTooltip(datum, options, component) {
95636
95659
  });
95637
95660
  return originDatum;
95638
95661
  };
95662
+ const transform = region.getOption().globalInstance.getStage().window.getViewBoxTransform().getInverse();
95639
95663
  const getMockEvent = (originPos) => {
95640
95664
  var _a, _b;
95641
95665
  const pos = bound(originPos);
95642
- const canvasX = (_a = opt.x) !== null && _a !== void 0 ? _a : regionPos.x + pos.x;
95643
- const canvasY = (_b = opt.y) !== null && _b !== void 0 ? _b : regionPos.y + pos.y;
95666
+ const tempX = (_a = opt.x) !== null && _a !== void 0 ? _a : regionPos.x + pos.x;
95667
+ const tempY = (_b = opt.y) !== null && _b !== void 0 ? _b : regionPos.y + pos.y;
95668
+ const canvasPoint = { x: 0, y: 0 };
95669
+ transform.transformPoint({ x: tempX, y: tempY }, canvasPoint);
95670
+ const { x: canvasX, y: canvasY } = canvasPoint;
95644
95671
  return {
95645
95672
  canvasX,
95646
95673
  canvasY,
@@ -102709,9 +102736,9 @@ class BaseMarkPoint extends BaseMarker {
102709
102736
  return 'cartesian';
102710
102737
  }
102711
102738
  _createMarkerComponent() {
102712
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7;
102739
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8;
102713
102740
  const { itemContent = {}, itemLine = {}, targetSymbol = {} } = this._spec;
102714
- const _8 = itemContent, { type = 'text', text: label, symbol, image, richText, customMark, textStyle, symbolStyle, imageStyle, richTextStyle, customMarkStyle, style = {}, state = {} } = _8, restItemContent = __rest$e(_8, ["type", "text", "symbol", "image", "richText", "customMark", "textStyle", "symbolStyle", "imageStyle", "richTextStyle", "customMarkStyle", "style", "state"]);
102741
+ const _9 = itemContent, { type = 'text', text: label, symbol, image, richText, customMark, textStyle, symbolStyle, imageStyle, richTextStyle, customMarkStyle, style = {}, state = {} } = _9, restItemContent = __rest$e(_9, ["type", "text", "symbol", "image", "richText", "customMark", "textStyle", "symbolStyle", "imageStyle", "richTextStyle", "customMarkStyle", "style", "state"]);
102715
102742
  let itemContentState = null;
102716
102743
  let itemContentStyle = null;
102717
102744
  let defaultStyle = {};
@@ -102721,61 +102748,61 @@ class BaseMarkPoint extends BaseMarker {
102721
102748
  dx: 0,
102722
102749
  dy: 0
102723
102750
  };
102724
- itemContentStyle = transformLabelAttributes(merge$1(defaultStyle, (_b = label !== null && label !== void 0 ? label : textStyle) !== null && _b !== void 0 ? _b : style), this._markerData, this._markAttributeContext);
102751
+ itemContentStyle = transformLabelAttributes(Object.assign(Object.assign({}, label), { style: merge$1(defaultStyle, (_c = (_b = label === null || label === void 0 ? void 0 : label.textStyle) !== null && _b !== void 0 ? _b : textStyle) !== null && _c !== void 0 ? _c : style) }), this._markerData, this._markAttributeContext);
102725
102752
  }
102726
102753
  else if (type === 'richText') {
102727
- itemContentState = (_c = richText === null || richText === void 0 ? void 0 : richText.state) !== null && _c !== void 0 ? _c : state;
102754
+ itemContentState = (_d = richText === null || richText === void 0 ? void 0 : richText.state) !== null && _d !== void 0 ? _d : state;
102728
102755
  defaultStyle = {
102729
102756
  width: 100,
102730
102757
  height: 100
102731
102758
  };
102732
- itemContentStyle = transformStyle(merge$1(defaultStyle, (_e = (_d = richText === null || richText === void 0 ? void 0 : richText.style) !== null && _d !== void 0 ? _d : richTextStyle) !== null && _e !== void 0 ? _e : style), this._markerData, this._markAttributeContext);
102759
+ itemContentStyle = transformStyle(merge$1(defaultStyle, (_f = (_e = richText === null || richText === void 0 ? void 0 : richText.style) !== null && _e !== void 0 ? _e : richTextStyle) !== null && _f !== void 0 ? _f : style), this._markerData, this._markAttributeContext);
102733
102760
  }
102734
102761
  else if (type === 'symbol') {
102735
- itemContentState = (_f = symbol === null || symbol === void 0 ? void 0 : symbol.state) !== null && _f !== void 0 ? _f : state;
102762
+ itemContentState = (_g = symbol === null || symbol === void 0 ? void 0 : symbol.state) !== null && _g !== void 0 ? _g : state;
102736
102763
  defaultStyle = {
102737
102764
  symbolType: 'star',
102738
102765
  fill: 'rgb(48, 115, 242)',
102739
102766
  fillOpacity: 0.8,
102740
102767
  size: 20
102741
102768
  };
102742
- itemContentStyle = transformToGraphic(transformStyle(merge$1(defaultStyle, (_h = (_g = symbol === null || symbol === void 0 ? void 0 : symbol.style) !== null && _g !== void 0 ? _g : symbolStyle) !== null && _h !== void 0 ? _h : style), this._markerData, this._markAttributeContext));
102769
+ itemContentStyle = transformToGraphic(transformStyle(merge$1(defaultStyle, (_j = (_h = symbol === null || symbol === void 0 ? void 0 : symbol.style) !== null && _h !== void 0 ? _h : symbolStyle) !== null && _j !== void 0 ? _j : style), this._markerData, this._markAttributeContext));
102743
102770
  }
102744
102771
  else if (type === 'image') {
102745
- itemContentState = (_j = image === null || image === void 0 ? void 0 : image.state) !== null && _j !== void 0 ? _j : state;
102772
+ itemContentState = (_k = image === null || image === void 0 ? void 0 : image.state) !== null && _k !== void 0 ? _k : state;
102746
102773
  defaultStyle = {
102747
102774
  width: 80,
102748
102775
  height: 80
102749
102776
  };
102750
- itemContentStyle = transformStyle(merge$1(defaultStyle, (_l = (_k = image === null || image === void 0 ? void 0 : image.style) !== null && _k !== void 0 ? _k : imageStyle) !== null && _l !== void 0 ? _l : style), this._markerData, this._markAttributeContext);
102777
+ itemContentStyle = transformStyle(merge$1(defaultStyle, (_m = (_l = image === null || image === void 0 ? void 0 : image.style) !== null && _l !== void 0 ? _l : imageStyle) !== null && _m !== void 0 ? _m : style), this._markerData, this._markAttributeContext);
102751
102778
  }
102752
102779
  else if (type === 'custom') {
102753
- itemContentState = (_m = customMark === null || customMark === void 0 ? void 0 : customMark.state) !== null && _m !== void 0 ? _m : state;
102754
- itemContentStyle = transformStyle((_p = (_o = customMark === null || customMark === void 0 ? void 0 : customMark.style) !== null && _o !== void 0 ? _o : customMarkStyle) !== null && _p !== void 0 ? _p : style, this._markerData, this._markAttributeContext);
102780
+ itemContentState = (_o = customMark === null || customMark === void 0 ? void 0 : customMark.state) !== null && _o !== void 0 ? _o : state;
102781
+ itemContentStyle = transformStyle((_q = (_p = customMark === null || customMark === void 0 ? void 0 : customMark.style) !== null && _p !== void 0 ? _p : customMarkStyle) !== null && _q !== void 0 ? _q : style, this._markerData, this._markAttributeContext);
102755
102782
  }
102756
102783
  const markPointAttrs = {
102757
102784
  zIndex: this.layoutZIndex,
102758
- interactive: (_q = this._spec.interactive) !== null && _q !== void 0 ? _q : true,
102759
- hover: (_r = this._spec.interactive) !== null && _r !== void 0 ? _r : true,
102760
- select: (_s = this._spec.interactive) !== null && _s !== void 0 ? _s : true,
102785
+ interactive: (_r = this._spec.interactive) !== null && _r !== void 0 ? _r : true,
102786
+ hover: (_s = this._spec.interactive) !== null && _s !== void 0 ? _s : true,
102787
+ select: (_t = this._spec.interactive) !== null && _t !== void 0 ? _t : true,
102761
102788
  position: { x: 0, y: 0 },
102762
- clipInRange: (_t = this._spec.clip) !== null && _t !== void 0 ? _t : false,
102789
+ clipInRange: (_u = this._spec.clip) !== null && _u !== void 0 ? _u : false,
102763
102790
  itemContent: Object.assign(Object.assign({ type, offsetX: transformOffset(itemContent.offsetX, this._relativeSeries.getRegion()), offsetY: transformOffset(itemContent.offsetX, this._relativeSeries.getRegion()) }, restItemContent), { style: transformStyle(itemContentStyle, this._markerData, this._markAttributeContext) }),
102764
102791
  targetSymbol: {
102765
- offset: (_u = targetSymbol.offset) !== null && _u !== void 0 ? _u : 0,
102766
- visible: (_v = targetSymbol.visible) !== null && _v !== void 0 ? _v : false,
102767
- size: (_w = targetSymbol.size) !== null && _w !== void 0 ? _w : 20,
102792
+ offset: (_v = targetSymbol.offset) !== null && _v !== void 0 ? _v : 0,
102793
+ visible: (_w = targetSymbol.visible) !== null && _w !== void 0 ? _w : false,
102794
+ size: (_x = targetSymbol.size) !== null && _x !== void 0 ? _x : 20,
102768
102795
  style: transformStyle(targetSymbol.style, this._markerData, this._markAttributeContext)
102769
102796
  },
102770
102797
  state: {
102771
- line: transformState((_y = (_x = this._spec.itemLine.line) === null || _x === void 0 ? void 0 : _x.state) !== null && _y !== void 0 ? _y : {}, this._markerData, this._markAttributeContext),
102772
- lineStartSymbol: transformState((_0 = (_z = this._spec.itemLine.startSymbol) === null || _z === void 0 ? void 0 : _z.state) !== null && _0 !== void 0 ? _0 : {}, this._markerData, this._markAttributeContext),
102773
- lineEndSymbol: transformState((_2 = (_1 = this._spec.itemLine.endSymbol) === null || _1 === void 0 ? void 0 : _1.state) !== null && _2 !== void 0 ? _2 : {}, this._markerData, this._markAttributeContext),
102798
+ line: transformState((_z = (_y = this._spec.itemLine.line) === null || _y === void 0 ? void 0 : _y.state) !== null && _z !== void 0 ? _z : {}, this._markerData, this._markAttributeContext),
102799
+ lineStartSymbol: transformState((_1 = (_0 = this._spec.itemLine.startSymbol) === null || _0 === void 0 ? void 0 : _0.state) !== null && _1 !== void 0 ? _1 : {}, this._markerData, this._markAttributeContext),
102800
+ lineEndSymbol: transformState((_3 = (_2 = this._spec.itemLine.endSymbol) === null || _2 === void 0 ? void 0 : _2.state) !== null && _3 !== void 0 ? _3 : {}, this._markerData, this._markAttributeContext),
102774
102801
  itemContent: transformState(itemContentState, this._markerData, this._markAttributeContext),
102775
- textBackground: transformState((_4 = (_3 = this._spec.itemContent.text) === null || _3 === void 0 ? void 0 : _3.labelBackground) === null || _4 === void 0 ? void 0 : _4.state, this._markerData, this._markAttributeContext),
102776
- targetItem: transformState((_6 = (_5 = this._spec.targetSymbol) === null || _5 === void 0 ? void 0 : _5.state) !== null && _6 !== void 0 ? _6 : {}, this._markerData, this._markAttributeContext)
102802
+ textBackground: transformState((_5 = (_4 = this._spec.itemContent.text) === null || _4 === void 0 ? void 0 : _4.labelBackground) === null || _5 === void 0 ? void 0 : _5.state, this._markerData, this._markAttributeContext),
102803
+ targetItem: transformState((_7 = (_6 = this._spec.targetSymbol) === null || _6 === void 0 ? void 0 : _6.state) !== null && _7 !== void 0 ? _7 : {}, this._markerData, this._markAttributeContext)
102777
102804
  },
102778
- animation: (_7 = this._spec.animation) !== null && _7 !== void 0 ? _7 : false,
102805
+ animation: (_8 = this._spec.animation) !== null && _8 !== void 0 ? _8 : false,
102779
102806
  animationEnter: this._spec.animationEnter,
102780
102807
  animationExit: this._spec.animationExit,
102781
102808
  animationUpdate: this._spec.animationUpdate