@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.js CHANGED
@@ -26238,6 +26238,9 @@
26238
26238
  }
26239
26239
  return isArray$1(domain[0].fields);
26240
26240
  }
26241
+ function isClass(obj) {
26242
+ return typeof obj === 'function' && /^class\s/.test(obj.toString());
26243
+ }
26241
26244
 
26242
26245
  const GROUP_ATTRIBUTES = ["x", "y", "dx", "dy", "scaleX", "scaleY", "angle", "anchor", "postMatrix", "visible", "clip", "pickable", "childrenPickable", "zIndex", "cursor"];
26243
26246
  class AbstractComponent extends Group$1 {
@@ -40719,8 +40722,9 @@
40719
40722
  let tickLength = 0;
40720
40723
  (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));
40721
40724
  const offset = tickLength + labelLength + space,
40722
- titlePoint = this.getVerticalCoord(point, offset, !1),
40723
- vector = this.getVerticalVector(offset, !1, {
40725
+ actualOffset = this.getActualOffset(offset),
40726
+ titlePoint = this.getVerticalCoord(point, actualOffset, !1),
40727
+ vector = this.getVerticalVector(actualOffset, !1, {
40724
40728
  x: 0,
40725
40729
  y: 0
40726
40730
  });
@@ -40749,11 +40753,11 @@
40749
40753
  if (angle !== Math.PI / 2) {
40750
40754
  const cosValue = Math.abs(Math.cos(null != angle ? angle : 0));
40751
40755
  maxTagWidth = cosValue < 1e-6 ? 1 / 0 : this.attribute.end.x / cosValue;
40752
- } else maxTagWidth = limitSize - offset;
40756
+ } else maxTagWidth = limitSize - actualOffset;
40753
40757
  } else if (angle && 0 !== angle) {
40754
40758
  const sinValue = Math.abs(Math.sin(angle));
40755
40759
  maxTagWidth = sinValue < 1e-6 ? 1 / 0 : this.attribute.end.y / sinValue;
40756
- } else maxTagWidth = limitSize - offset;
40760
+ } else maxTagWidth = limitSize - actualOffset;
40757
40761
  }
40758
40762
  }
40759
40763
  const attrs = Object.assign(Object.assign(Object.assign({}, titlePoint), restAttrs), {
@@ -41058,6 +41062,10 @@
41058
41062
  visibleAll: !1
41059
41063
  });
41060
41064
  }
41065
+ getActualOffset(offset) {
41066
+ const orient = this.attribute.orient;
41067
+ 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;
41068
+ }
41061
41069
  release() {
41062
41070
  super.release(), this._breaks = null;
41063
41071
  }
@@ -54878,7 +54886,17 @@
54878
54886
  return diffResult;
54879
54887
  }
54880
54888
 
54889
+ const BuiltIn_DISAPPEAR_ANIMATE_NAME = `${PREFIX}_BuiltIn_CallBack_Disappear`;
54890
+ var RenderStateEnum;
54891
+ (function (RenderStateEnum) {
54892
+ RenderStateEnum["render"] = "render";
54893
+ RenderStateEnum["disappear"] = "disappear";
54894
+ })(RenderStateEnum || (RenderStateEnum = {}));
54895
+
54881
54896
  class Compiler {
54897
+ get stateAnimationConfig() {
54898
+ return this._stateAnimationConfig;
54899
+ }
54882
54900
  getRootGroup() {
54883
54901
  return this._rootGroup;
54884
54902
  }
@@ -55063,7 +55081,6 @@
55063
55081
  var _a, _b, _c, _d, _e, _f;
55064
55082
  (_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);
55065
55083
  if (this._stage) {
55066
- this.runStageAnimation();
55067
55084
  this._rootMarks.forEach(g => {
55068
55085
  traverseGroupMark(g, m => {
55069
55086
  if (m.needClear) {
@@ -55157,14 +55174,26 @@
55157
55174
  Object.keys(config).forEach(key => {
55158
55175
  const value = config[key];
55159
55176
  if (isArray$1(value)) {
55160
- animationConfig[key] = value.map(item => {
55161
- var _a;
55162
- const options = (_a = item.options) !== null && _a !== void 0 ? _a : {};
55163
- return Object.assign(Object.assign({}, item), { options: (...args) => {
55164
- const _options = typeof options === 'function' ? options(...args) : options;
55165
- return Object.assign({}, _options);
55166
- } });
55167
- });
55177
+ if (key === 'disappear') {
55178
+ animationConfig[key] = value.map(item => {
55179
+ if (isClass(item.callBack)) {
55180
+ return Object.assign(Object.assign({}, item), { custom: item.callBack });
55181
+ }
55182
+ return Object.assign(Object.assign({}, item), { type: BuiltIn_DISAPPEAR_ANIMATE_NAME, customParameters: {
55183
+ callBack: item.callBack
55184
+ } });
55185
+ });
55186
+ }
55187
+ else {
55188
+ animationConfig[key] = value.map(item => {
55189
+ var _a;
55190
+ const options = (_a = item.options) !== null && _a !== void 0 ? _a : {};
55191
+ return Object.assign(Object.assign({}, item), { options: (...args) => {
55192
+ const _options = typeof options === 'function' ? options(...args) : options;
55193
+ return Object.assign({}, _options);
55194
+ } });
55195
+ });
55196
+ }
55168
55197
  }
55169
55198
  else {
55170
55199
  animationConfig[key] = Object.assign({}, config[key]);
@@ -55190,29 +55219,6 @@
55190
55219
  }
55191
55220
  this._stage.context.animationState = animationState;
55192
55221
  }
55193
- runStageAnimation() {
55194
- var _a;
55195
- const animationState = (_a = this._stage.context) === null || _a === void 0 ? void 0 : _a.animationState;
55196
- if (!this._stateAnimationConfig || animationState === AnimationStateEnum.none) {
55197
- return;
55198
- }
55199
- const animationConfigs = array(this._stateAnimationConfig[animationState]).filter(config => config.type);
55200
- if (!animationConfigs.length) {
55201
- return;
55202
- }
55203
- if (animationState === AnimationStateEnum.appear) {
55204
- this._stage.stopAnimationState(AnimationStateEnum.disappear);
55205
- }
55206
- else if (animationState === AnimationStateEnum.disappear) {
55207
- this._stage.stopAnimationState(AnimationStateEnum.appear);
55208
- }
55209
- this._stage.applyAnimationState([animationState], [
55210
- {
55211
- name: animationState,
55212
- animation: animationConfigs
55213
- }
55214
- ]);
55215
- }
55216
55222
  updateViewBox(viewBox, reRender = true) {
55217
55223
  if (!this._stage) {
55218
55224
  return;
@@ -59668,6 +59674,29 @@
59668
59674
  }
59669
59675
  }
59670
59676
 
59677
+ class CallbackDisappearAnimate extends AStageAnimate {
59678
+ constructor(from, to, duration, easing, params) {
59679
+ super(from, to, duration, easing, params);
59680
+ this.currentAnimationRatio = 0;
59681
+ this.animationTime = 0;
59682
+ }
59683
+ onUpdate(end, ratio, out) {
59684
+ super.onUpdate(end, ratio, out);
59685
+ this.currentAnimationRatio = ratio;
59686
+ this.animationTime = ratio * Math.PI * 2;
59687
+ }
59688
+ getAnimationTime() {
59689
+ if (this.currentAnimationRatio > 0) {
59690
+ return this.animationTime;
59691
+ }
59692
+ return Date.now() / 1000.0;
59693
+ }
59694
+ afterStageRender(stage, canvas) {
59695
+ var _a, _b;
59696
+ 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);
59697
+ }
59698
+ }
59699
+
59671
59700
  const DEFAULT_ANIMATION_CONFIG = {
59672
59701
  appear: {
59673
59702
  duration: 1000,
@@ -59698,14 +59727,12 @@
59698
59727
  const ScaleInOutAnimation = {
59699
59728
  appear: { type: 'scaleIn' },
59700
59729
  enter: { type: 'scaleIn' },
59701
- exit: { type: 'scaleOut' },
59702
- disappear: { type: 'scaleOut' }
59730
+ exit: { type: 'scaleOut' }
59703
59731
  };
59704
59732
  const FadeInOutAnimation = {
59705
59733
  appear: { type: 'fadeIn' },
59706
59734
  enter: { type: 'fadeIn' },
59707
- exit: { type: 'fadeOut' },
59708
- disappear: { type: 'fadeOut' }
59735
+ exit: { type: 'fadeOut' }
59709
59736
  };
59710
59737
  const registerScaleInOutAnimation = () => {
59711
59738
  Factory.registerAnimation('scaleInOut', () => ScaleInOutAnimation);
@@ -59728,19 +59755,6 @@
59728
59755
  orient: params.orient()
59729
59756
  };
59730
59757
  }
59731
- },
59732
- disappear: {
59733
- custom: ClipDirectionAnimate,
59734
- customParameters: (datum, g) => {
59735
- return {
59736
- animationType: 'out',
59737
- group: g,
59738
- direction: params.direction(),
59739
- width: params.width(),
59740
- height: params.height(),
59741
- orient: params.orient()
59742
- };
59743
- }
59744
59758
  }
59745
59759
  };
59746
59760
  });
@@ -59764,8 +59778,7 @@
59764
59778
  clipRangeByDimension: params.direction === "horizontal" ? 'y' : 'x'
59765
59779
  }
59766
59780
  }
59767
- ],
59768
- disappear: { type: 'clipOut' }
59781
+ ]
59769
59782
  };
59770
59783
  };
59771
59784
  const registerLineAnimation = () => {
@@ -59815,13 +59828,7 @@
59815
59828
  AnimateExecutor.registerBuiltInAnimate('growPointsOut', GrowPointsOut);
59816
59829
  };
59817
59830
  const registerStageAnimation = () => {
59818
- AnimateExecutor.registerBuiltInAnimate('distortion', Distortion);
59819
- AnimateExecutor.registerBuiltInAnimate('particle', Particle);
59820
- AnimateExecutor.registerBuiltInAnimate('pixelation', Pixelation);
59821
- AnimateExecutor.registerBuiltInAnimate('gaussianBlur', GaussianBlur);
59822
- AnimateExecutor.registerBuiltInAnimate('glitch', Glitch);
59823
- AnimateExecutor.registerBuiltInAnimate('grayscale', Grayscale);
59824
- AnimateExecutor.registerBuiltInAnimate('dissolve', Dissolve);
59831
+ AnimateExecutor.registerBuiltInAnimate(BuiltIn_DISAPPEAR_ANIMATE_NAME, CallbackDisappearAnimate);
59825
59832
  };
59826
59833
 
59827
59834
  const registerAnimate = () => {
@@ -60368,6 +60375,7 @@
60368
60375
  };
60369
60376
  this._observer = null;
60370
60377
  this._context = {};
60378
+ this._renderState = RenderStateEnum.render;
60371
60379
  this._doResize = () => {
60372
60380
  const { width, height } = this.getCurrentSize();
60373
60381
  if (this._currentSize.width !== width || this._currentSize.height !== height) {
@@ -60388,6 +60396,7 @@
60388
60396
  };
60389
60397
  this._updateSpec = (spec, forceMerge = false, userUpdateOptions) => {
60390
60398
  var _a;
60399
+ this._reSetRenderState();
60391
60400
  const lastSpec = this._spec;
60392
60401
  const result = {
60393
60402
  changeBackground: false,
@@ -60860,6 +60869,7 @@
60860
60869
  });
60861
60870
  }
60862
60871
  updateDataSync(id, data, parserOptions, userUpdateOptions) {
60872
+ this._reSetRenderState();
60863
60873
  if (isNil$1(this._dataSet)) {
60864
60874
  return this;
60865
60875
  }
@@ -60877,6 +60887,7 @@
60877
60887
  return this;
60878
60888
  }
60879
60889
  updateFullDataSync(data, reRender = true, userUpdateOptions) {
60890
+ this._reSetRenderState();
60880
60891
  if (this._chart) {
60881
60892
  this._chart.updateFullData(data);
60882
60893
  if (reRender) {
@@ -61601,6 +61612,20 @@
61601
61612
  componentShowContent: this._option.componentShowContent
61602
61613
  };
61603
61614
  }
61615
+ runDisappearAnimation() {
61616
+ this._renderState = RenderStateEnum.disappear;
61617
+ this.getStage().eventSystem.pauseTriggerEvent();
61618
+ this.getStage().applyAnimationState(['disappear'], [
61619
+ {
61620
+ name: 'disappear',
61621
+ animation: this._compiler.stateAnimationConfig.disappear
61622
+ }
61623
+ ]);
61624
+ }
61625
+ _reSetRenderState() {
61626
+ this._renderState = RenderStateEnum.render;
61627
+ this.getStage().eventSystem.resumeTriggerEvent();
61628
+ }
61604
61629
  }
61605
61630
  VChart.InstanceManager = InstanceManager;
61606
61631
  VChart.ThemeManager = ThemeManager;
@@ -61717,7 +61742,7 @@
61717
61742
  });
61718
61743
  };
61719
61744
 
61720
- const version = "2.0.11";
61745
+ const version = "2.0.12";
61721
61746
 
61722
61747
  const addVChartProperty = (data, op) => {
61723
61748
  const context = op.beforeCall();
@@ -62767,7 +62792,6 @@
62767
62792
  this.initMarkState();
62768
62793
  if (hasAnimation) {
62769
62794
  this.initAnimation();
62770
- this.initStageAnimation();
62771
62795
  }
62772
62796
  this.afterInitMark();
62773
62797
  this.initEvent();
@@ -63224,13 +63248,6 @@
63224
63248
  }
63225
63249
  initAnimation() {
63226
63250
  }
63227
- initStageAnimation() {
63228
- const compiler = this._option.getCompiler();
63229
- if (!(compiler === null || compiler === void 0 ? void 0 : compiler.setStageAnimationConfig)) {
63230
- return;
63231
- }
63232
- compiler.setStageAnimationConfig(animationConfig({}, userAnimationConfig('stage', this._spec, this._markAttributeContext), null));
63233
- }
63234
63251
  initMarkState() {
63235
63252
  this.initSeriesStyleState();
63236
63253
  }
@@ -67090,7 +67107,10 @@
67090
67107
  maxWidth: this._getTitleLimit(isX)
67091
67108
  },
67092
67109
  items,
67093
- scale: this._scale.clone()
67110
+ scale: this._scale.clone(),
67111
+ maxWidth: this._layout.maxWidth,
67112
+ minWidth: this._layout.minWidth,
67113
+ width: this._spec.width ? this.getLayoutRect().width : undefined
67094
67114
  };
67095
67115
  if (!ignoreGrid) {
67096
67116
  attrs.grid = {
@@ -69746,6 +69766,14 @@
69746
69766
  (_d = (_c = this)._initStack) === null || _d === void 0 ? void 0 : _d.call(_c);
69747
69767
  this.reDataFlow();
69748
69768
  this._initInteractions();
69769
+ this.initStageAnimation();
69770
+ }
69771
+ initStageAnimation() {
69772
+ const compiler = this._option.getCompiler();
69773
+ if (!(compiler === null || compiler === void 0 ? void 0 : compiler.setStageAnimationConfig)) {
69774
+ return;
69775
+ }
69776
+ compiler.setStageAnimationConfig(animationConfig({}, userAnimationConfig('stage', this._spec, {}), null));
69749
69777
  }
69750
69778
  reDataFlow() {
69751
69779
  this._series.forEach(s => { var _a; return (_a = s.getRawData()) === null || _a === void 0 ? void 0 : _a.markRunning(); });
@@ -72421,7 +72449,7 @@
72421
72449
  appear: barPresetAnimation(params, preset),
72422
72450
  enter: barGrowIn(params, false),
72423
72451
  exit: barGrowOut(params, false),
72424
- disappear: barGrowOut(params)
72452
+ disappear: { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration }
72425
72453
  };
72426
72454
  });
72427
72455
  };
@@ -74273,7 +74301,9 @@
74273
74301
  };
74274
74302
  this._handleChartZoom = (params, event) => {
74275
74303
  var _a, _b, _c, _d, _e, _f;
74276
- let scale = params.zoomDelta;
74304
+ const rate = isValid$1(this._spec.zoomRate) ? Math.max(0, this._spec.zoomRate) : 1;
74305
+ const delta = Math.max(params.zoomDelta, 1e-6);
74306
+ let scale = Math.pow(delta, rate);
74277
74307
  const _lastActualScale = this._actualScale;
74278
74308
  this._actualScale *= scale;
74279
74309
  if (this._actualScale < ((_a = this._spec.zoomLimit) === null || _a === void 0 ? void 0 : _a.min)) {
@@ -74565,7 +74595,7 @@
74565
74595
  _compareSpec(spec, prevSpec) {
74566
74596
  const result = super._compareSpec(spec, prevSpec);
74567
74597
  if (!result.reMake) {
74568
- result.reMake = ['roam', 'longitudeField', 'latitudeField', 'projection', 'zoomLimit'].some(k => {
74598
+ result.reMake = ['roam', 'longitudeField', 'latitudeField', 'projection', 'zoomLimit', 'zoomRate'].some(k => {
74569
74599
  return !isEqual(prevSpec === null || prevSpec === void 0 ? void 0 : prevSpec[k], spec[k]);
74570
74600
  });
74571
74601
  }
@@ -75151,7 +75181,7 @@
75151
75181
  appear: waterfallPresetAnimation(params, preset),
75152
75182
  enter: barGrowIn(params, false),
75153
75183
  exit: barGrowOut(params, false),
75154
- disappear: barGrowOut(params, false)
75184
+ disappear: { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration }
75155
75185
  };
75156
75186
  });
75157
75187
  };
@@ -77389,7 +77419,7 @@
77389
77419
  appear: rangeColumnPresetAnimation(params, preset),
77390
77420
  enter: rangeColumnGrowIn(params),
77391
77421
  exit: rangeColumnGrowOut(params),
77392
- disappear: rangeColumnGrowOut(params)
77422
+ disappear: { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration }
77393
77423
  }));
77394
77424
  };
77395
77425
 
@@ -78051,7 +78081,7 @@
78051
78081
  appear: piePresetAnimation(params, preset),
78052
78082
  enter: pieEnter(params),
78053
78083
  exit: pieExit(params),
78054
- disappear: pieDisappear(params)
78084
+ disappear: { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration }
78055
78085
  };
78056
78086
  });
78057
78087
  };
@@ -78644,7 +78674,6 @@
78644
78674
  type: growOutType(params.growField)
78645
78675
  };
78646
78676
  };
78647
- const roseDisappear = roseExit;
78648
78677
  function rosePresetAnimation(params, preset) {
78649
78678
  if (preset === false) {
78650
78679
  return {};
@@ -78664,7 +78693,7 @@
78664
78693
  appear: rosePresetAnimation(params, preset),
78665
78694
  enter: roseEnter(params),
78666
78695
  exit: roseExit(params),
78667
- disappear: roseDisappear(params)
78696
+ disappear: { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration }
78668
78697
  };
78669
78698
  });
78670
78699
  };
@@ -79551,7 +79580,7 @@
79551
79580
  appear: preset === 'clipIn' ? undefined : radarPresetAnimation(params, preset, 'in'),
79552
79581
  enter: radarPresetAnimation(params, preset, 'in'),
79553
79582
  exit: radarPresetAnimation(params, preset, 'out'),
79554
- disappear: preset === 'clipIn' ? undefined : radarPresetAnimation(params, preset, 'out'),
79583
+ disappear: preset === 'clipIn' ? undefined : { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration },
79555
79584
  update: [
79556
79585
  {
79557
79586
  channel: ['points', 'center'],
@@ -79571,7 +79600,7 @@
79571
79600
  appear: preset === 'clipIn' ? undefined : radarSymbolPresetAnimation(params, preset, 'in'),
79572
79601
  enter: { type: 'scaleIn' },
79573
79602
  exit: { type: 'scaleOut' },
79574
- disappear: preset === 'clipIn' ? undefined : radarSymbolPresetAnimation(params, preset, 'out'),
79603
+ disappear: preset === 'clipIn' ? undefined : { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration },
79575
79604
  update: [
79576
79605
  {
79577
79606
  options: { excludeChannels: ['x', 'y', 'center'] }
@@ -79588,7 +79617,7 @@
79588
79617
  Factory.registerAnimation('radarGroup', (params, preset) => {
79589
79618
  return {
79590
79619
  appear: radarGroupClipAnimation(params, 'in'),
79591
- disappear: radarGroupClipAnimation(params, 'out')
79620
+ disappear: { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration }
79592
79621
  };
79593
79622
  });
79594
79623
  registerArc();
@@ -80790,7 +80819,7 @@
80790
80819
  Factory.registerAnimation('circularProgress', (params, preset) => ({
80791
80820
  appear: progressLikePresetAnimation(params, preset),
80792
80821
  enter: { type: 'growAngleIn' },
80793
- disappear: { type: 'growAngleOut' }
80822
+ disappear: { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration }
80794
80823
  }));
80795
80824
  };
80796
80825
 
@@ -80995,12 +81024,6 @@
80995
81024
  options: LinearProgressGrowOption(params)
80996
81025
  };
80997
81026
  };
80998
- const linearProgressDisappear = (params) => {
80999
- return {
81000
- type: params.direction === "horizontal" ? 'growWidthOut' : 'growHeightOut',
81001
- options: LinearProgressGrowOption(params)
81002
- };
81003
- };
81004
81027
  const Appear_FadeIn$1 = {
81005
81028
  type: 'fadeIn'
81006
81029
  };
@@ -81020,7 +81043,7 @@
81020
81043
  return {
81021
81044
  appear: linearProgressPresetAnimation(params, preset),
81022
81045
  enter: linearProgressPresetAnimation(params),
81023
- disappear: linearProgressDisappear(params)
81046
+ disappear: { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration }
81024
81047
  };
81025
81048
  });
81026
81049
  };
@@ -81664,7 +81687,7 @@
81664
81687
  appear: wordcloudPresetAnimation(params, preset),
81665
81688
  enter: { type: 'fadeIn' },
81666
81689
  exit: { type: 'fadeOut' },
81667
- disappear: { type: 'fadeOut' }
81690
+ disappear: { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration }
81668
81691
  }));
81669
81692
  };
81670
81693
 
@@ -87934,7 +87957,7 @@
87934
87957
  appear: sunburstPresetAnimation(params, preset),
87935
87958
  enter: sunburstEnter(params),
87936
87959
  exit: sunburstExit(params),
87937
- disappear: sunburstExit(params)
87960
+ disappear: { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration }
87938
87961
  }));
87939
87962
  };
87940
87963
 
@@ -88437,7 +88460,7 @@
88437
88460
  appear: circlePackingPresetAnimation(preset),
88438
88461
  enter: { type: 'growRadiusIn' },
88439
88462
  exit: { type: 'growRadiusOut' },
88440
- disappear: { type: 'growRadiusOut' }
88463
+ disappear: { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration }
88441
88464
  }));
88442
88465
  };
88443
88466
 
@@ -88907,7 +88930,7 @@
88907
88930
  appear: sankeyLinkPresetAnimation(preset),
88908
88931
  enter: { type: 'linkPathGrowIn' },
88909
88932
  exit: { type: 'linkPathGrowOut' },
88910
- disappear: { type: 'linkPathGrowOut' }
88933
+ disappear: { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration }
88911
88934
  }));
88912
88935
  AnimateExecutor.registerBuiltInAnimate('linkPathGrowOut', LinkPathGrowOut);
88913
88936
  AnimateExecutor.registerBuiltInAnimate('linkPathGrowIn', LinkPathGrowIn);
@@ -90101,7 +90124,7 @@
90101
90124
  appear: treemapPresetAnimation(preset),
90102
90125
  enter: { type: 'growCenterIn' },
90103
90126
  exit: { type: 'growCenterOut' },
90104
- disappear: { type: 'growCenterOut' }
90127
+ disappear: { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration }
90105
90128
  };
90106
90129
  });
90107
90130
  };
@@ -90591,7 +90614,7 @@
90591
90614
  return {
90592
90615
  appear: animation,
90593
90616
  enter: animation,
90594
- disappear: { type: 'fadeOut' }
90617
+ disappear: { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration }
90595
90618
  };
90596
90619
  });
90597
90620
  };
@@ -91067,7 +91090,7 @@
91067
91090
  const heatmap = {
91068
91091
  cell: {
91069
91092
  style: {
91070
- shape: 'square',
91093
+ shape: 'rect',
91071
91094
  fillOpacity: 1
91072
91095
  }
91073
91096
  },
@@ -91159,7 +91182,7 @@
91159
91182
  var _a;
91160
91183
  return {
91161
91184
  scale: (_a = this._option.globalScale.getScale('color')) !== null && _a !== void 0 ? _a : this._getDefaultColorScale(),
91162
- field: this.getFieldValue[0]
91185
+ field: this.getFieldValue()[0]
91163
91186
  };
91164
91187
  }
91165
91188
  getInteractionTriggers() {
@@ -91180,7 +91203,7 @@
91180
91203
  this._cellMark && this._tooltipHelper.activeTriggerSet.mark.add(this._cellMark);
91181
91204
  }
91182
91205
  getDefaultShapeType() {
91183
- return 'square';
91206
+ return 'rect';
91184
91207
  }
91185
91208
  getDimensionField() {
91186
91209
  return [].concat(this.fieldX, this.fieldY);
@@ -92306,7 +92329,7 @@
92306
92329
  appear: vennCirclePresetAnimation(preset),
92307
92330
  enter: { type: 'growRadiusIn' },
92308
92331
  exit: { type: 'growRadiusOut' },
92309
- disappear: { type: 'growRadiusOut' }
92332
+ disappear: { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration }
92310
92333
  };
92311
92334
  });
92312
92335
  Factory.registerAnimation('vennOverlap', (params, preset) => {
@@ -92315,7 +92338,7 @@
92315
92338
  update: { custom: VennOverlapAnimation },
92316
92339
  enter: { type: 'fadeIn' },
92317
92340
  exit: { type: 'fadeOut' },
92318
- disappear: { type: 'fadeOut' }
92341
+ disappear: { duration: DEFAULT_ANIMATION_CONFIG.disappear.duration }
92319
92342
  };
92320
92343
  });
92321
92344
  };
@@ -95642,11 +95665,15 @@
95642
95665
  });
95643
95666
  return originDatum;
95644
95667
  };
95668
+ const transform = region.getOption().globalInstance.getStage().window.getViewBoxTransform().getInverse();
95645
95669
  const getMockEvent = (originPos) => {
95646
95670
  var _a, _b;
95647
95671
  const pos = bound(originPos);
95648
- const canvasX = (_a = opt.x) !== null && _a !== void 0 ? _a : regionPos.x + pos.x;
95649
- const canvasY = (_b = opt.y) !== null && _b !== void 0 ? _b : regionPos.y + pos.y;
95672
+ const tempX = (_a = opt.x) !== null && _a !== void 0 ? _a : regionPos.x + pos.x;
95673
+ const tempY = (_b = opt.y) !== null && _b !== void 0 ? _b : regionPos.y + pos.y;
95674
+ const canvasPoint = { x: 0, y: 0 };
95675
+ transform.transformPoint({ x: tempX, y: tempY }, canvasPoint);
95676
+ const { x: canvasX, y: canvasY } = canvasPoint;
95650
95677
  return {
95651
95678
  canvasX,
95652
95679
  canvasY,
@@ -102715,9 +102742,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
102715
102742
  return 'cartesian';
102716
102743
  }
102717
102744
  _createMarkerComponent() {
102718
- 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;
102745
+ 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;
102719
102746
  const { itemContent = {}, itemLine = {}, targetSymbol = {} } = this._spec;
102720
- 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"]);
102747
+ 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"]);
102721
102748
  let itemContentState = null;
102722
102749
  let itemContentStyle = null;
102723
102750
  let defaultStyle = {};
@@ -102727,61 +102754,61 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
102727
102754
  dx: 0,
102728
102755
  dy: 0
102729
102756
  };
102730
- itemContentStyle = transformLabelAttributes(merge$1(defaultStyle, (_b = label !== null && label !== void 0 ? label : textStyle) !== null && _b !== void 0 ? _b : style), this._markerData, this._markAttributeContext);
102757
+ 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);
102731
102758
  }
102732
102759
  else if (type === 'richText') {
102733
- itemContentState = (_c = richText === null || richText === void 0 ? void 0 : richText.state) !== null && _c !== void 0 ? _c : state;
102760
+ itemContentState = (_d = richText === null || richText === void 0 ? void 0 : richText.state) !== null && _d !== void 0 ? _d : state;
102734
102761
  defaultStyle = {
102735
102762
  width: 100,
102736
102763
  height: 100
102737
102764
  };
102738
- 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);
102765
+ 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);
102739
102766
  }
102740
102767
  else if (type === 'symbol') {
102741
- itemContentState = (_f = symbol === null || symbol === void 0 ? void 0 : symbol.state) !== null && _f !== void 0 ? _f : state;
102768
+ itemContentState = (_g = symbol === null || symbol === void 0 ? void 0 : symbol.state) !== null && _g !== void 0 ? _g : state;
102742
102769
  defaultStyle = {
102743
102770
  symbolType: 'star',
102744
102771
  fill: 'rgb(48, 115, 242)',
102745
102772
  fillOpacity: 0.8,
102746
102773
  size: 20
102747
102774
  };
102748
- 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));
102775
+ 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));
102749
102776
  }
102750
102777
  else if (type === 'image') {
102751
- itemContentState = (_j = image === null || image === void 0 ? void 0 : image.state) !== null && _j !== void 0 ? _j : state;
102778
+ itemContentState = (_k = image === null || image === void 0 ? void 0 : image.state) !== null && _k !== void 0 ? _k : state;
102752
102779
  defaultStyle = {
102753
102780
  width: 80,
102754
102781
  height: 80
102755
102782
  };
102756
- 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);
102783
+ 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);
102757
102784
  }
102758
102785
  else if (type === 'custom') {
102759
- itemContentState = (_m = customMark === null || customMark === void 0 ? void 0 : customMark.state) !== null && _m !== void 0 ? _m : state;
102760
- 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);
102786
+ itemContentState = (_o = customMark === null || customMark === void 0 ? void 0 : customMark.state) !== null && _o !== void 0 ? _o : state;
102787
+ 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);
102761
102788
  }
102762
102789
  const markPointAttrs = {
102763
102790
  zIndex: this.layoutZIndex,
102764
- interactive: (_q = this._spec.interactive) !== null && _q !== void 0 ? _q : true,
102765
- hover: (_r = this._spec.interactive) !== null && _r !== void 0 ? _r : true,
102766
- select: (_s = this._spec.interactive) !== null && _s !== void 0 ? _s : true,
102791
+ interactive: (_r = this._spec.interactive) !== null && _r !== void 0 ? _r : true,
102792
+ hover: (_s = this._spec.interactive) !== null && _s !== void 0 ? _s : true,
102793
+ select: (_t = this._spec.interactive) !== null && _t !== void 0 ? _t : true,
102767
102794
  position: { x: 0, y: 0 },
102768
- clipInRange: (_t = this._spec.clip) !== null && _t !== void 0 ? _t : false,
102795
+ clipInRange: (_u = this._spec.clip) !== null && _u !== void 0 ? _u : false,
102769
102796
  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) }),
102770
102797
  targetSymbol: {
102771
- offset: (_u = targetSymbol.offset) !== null && _u !== void 0 ? _u : 0,
102772
- visible: (_v = targetSymbol.visible) !== null && _v !== void 0 ? _v : false,
102773
- size: (_w = targetSymbol.size) !== null && _w !== void 0 ? _w : 20,
102798
+ offset: (_v = targetSymbol.offset) !== null && _v !== void 0 ? _v : 0,
102799
+ visible: (_w = targetSymbol.visible) !== null && _w !== void 0 ? _w : false,
102800
+ size: (_x = targetSymbol.size) !== null && _x !== void 0 ? _x : 20,
102774
102801
  style: transformStyle(targetSymbol.style, this._markerData, this._markAttributeContext)
102775
102802
  },
102776
102803
  state: {
102777
- 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),
102778
- 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),
102779
- 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),
102804
+ 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),
102805
+ 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),
102806
+ 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),
102780
102807
  itemContent: transformState(itemContentState, this._markerData, this._markAttributeContext),
102781
- 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),
102782
- targetItem: transformState((_6 = (_5 = this._spec.targetSymbol) === null || _5 === void 0 ? void 0 : _5.state) !== null && _6 !== void 0 ? _6 : {}, this._markerData, this._markAttributeContext)
102808
+ 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),
102809
+ targetItem: transformState((_7 = (_6 = this._spec.targetSymbol) === null || _6 === void 0 ? void 0 : _6.state) !== null && _7 !== void 0 ? _7 : {}, this._markerData, this._markAttributeContext)
102783
102810
  },
102784
- animation: (_7 = this._spec.animation) !== null && _7 !== void 0 ? _7 : false,
102811
+ animation: (_8 = this._spec.animation) !== null && _8 !== void 0 ? _8 : false,
102785
102812
  animationEnter: this._spec.animationEnter,
102786
102813
  animationExit: this._spec.animationExit,
102787
102814
  animationUpdate: this._spec.animationUpdate