@visactor/vchart 1.5.2 → 1.5.3-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 (243) hide show
  1. package/build/es5/index.js +1 -1
  2. package/build/index.js +469 -325
  3. package/build/index.min.js +1 -1
  4. package/build/tsconfig.tsbuildinfo +1 -1
  5. package/cjs/chart/base-chart.d.ts +4 -6
  6. package/cjs/chart/base-chart.js +44 -45
  7. package/cjs/chart/base-chart.js.map +1 -1
  8. package/cjs/chart/gauge/gauge.js +3 -2
  9. package/cjs/chart/gauge/gauge.js.map +1 -1
  10. package/cjs/chart/interface/chart.d.ts +3 -3
  11. package/cjs/chart/interface/chart.js.map +1 -1
  12. package/cjs/chart/sequence/sequence.js +0 -1
  13. package/cjs/chart/sequence/sequence.js.map +1 -1
  14. package/cjs/component/axis/cartesian/linear-axis.js.map +1 -1
  15. package/cjs/component/axis/polar/interface/common.d.ts +1 -0
  16. package/cjs/component/axis/polar/interface/common.js.map +1 -1
  17. package/cjs/component/axis/util.d.ts +3 -3
  18. package/cjs/component/axis/util.js +14 -10
  19. package/cjs/component/axis/util.js.map +1 -1
  20. package/cjs/component/base/base-component.d.ts +1 -2
  21. package/cjs/component/base/base-component.js +2 -39
  22. package/cjs/component/base/base-component.js.map +1 -1
  23. package/cjs/component/base/util.d.ts +2 -3
  24. package/cjs/component/base/util.js +16 -19
  25. package/cjs/component/base/util.js.map +1 -1
  26. package/cjs/component/brush/brush.js +1 -1
  27. package/cjs/component/brush/brush.js.map +1 -1
  28. package/cjs/component/crosshair/util.d.ts +3 -3
  29. package/cjs/component/crosshair/util.js +7 -5
  30. package/cjs/component/crosshair/util.js.map +1 -1
  31. package/cjs/component/tooltip/handler/base.js +6 -6
  32. package/cjs/component/tooltip/handler/base.js.map +1 -1
  33. package/cjs/component/tooltip/handler/utils/attribute.d.ts +3 -3
  34. package/cjs/component/tooltip/handler/utils/attribute.js.map +1 -1
  35. package/cjs/component/util.d.ts +4 -0
  36. package/cjs/component/util.js +14 -0
  37. package/cjs/component/util.js.map +1 -0
  38. package/cjs/constant/waterfall.js +1 -2
  39. package/cjs/constant/word-cloud.js +2 -1
  40. package/cjs/core/index.d.ts +1 -1
  41. package/cjs/core/index.js +1 -1
  42. package/cjs/core/index.js.map +1 -1
  43. package/cjs/core/interface.d.ts +7 -1
  44. package/cjs/core/interface.js.map +1 -1
  45. package/cjs/core/vchart.d.ts +3 -2
  46. package/cjs/core/vchart.js +52 -47
  47. package/cjs/core/vchart.js.map +1 -1
  48. package/cjs/interaction/config.js +1 -2
  49. package/cjs/interaction/dimension-trigger.js +2 -1
  50. package/cjs/mark/base/base-mark.js +4 -5
  51. package/cjs/mark/base/base-mark.js.map +1 -1
  52. package/cjs/mark/box-plot.js +1 -1
  53. package/cjs/model/base-model.d.ts +4 -2
  54. package/cjs/model/base-model.js +51 -11
  55. package/cjs/model/base-model.js.map +1 -1
  56. package/cjs/model/interface.d.ts +10 -3
  57. package/cjs/model/interface.js.map +1 -1
  58. package/cjs/series/area/area.d.ts +1 -1
  59. package/cjs/series/area/area.js +1 -1
  60. package/cjs/series/area/area.js.map +1 -1
  61. package/cjs/series/bar/bar.d.ts +1 -1
  62. package/cjs/series/bar/bar.js +1 -1
  63. package/cjs/series/bar/bar.js.map +1 -1
  64. package/cjs/series/base/base-series.d.ts +4 -3
  65. package/cjs/series/base/base-series.js +12 -46
  66. package/cjs/series/base/base-series.js.map +1 -1
  67. package/cjs/series/cartesian/cartesian.d.ts +3 -0
  68. package/cjs/series/cartesian/cartesian.js +5 -2
  69. package/cjs/series/cartesian/cartesian.js.map +1 -1
  70. package/cjs/series/dot/dot.js +3 -4
  71. package/cjs/series/dot/dot.js.map +1 -1
  72. package/cjs/series/gauge/gauge-pointer.d.ts +1 -0
  73. package/cjs/series/gauge/gauge-pointer.js +1 -1
  74. package/cjs/series/gauge/gauge-pointer.js.map +1 -1
  75. package/cjs/series/heatmap/heatmap.js +1 -1
  76. package/cjs/series/heatmap/heatmap.js.map +1 -1
  77. package/cjs/series/interface/theme.d.ts +2 -0
  78. package/cjs/series/interface/theme.js +3 -2
  79. package/cjs/series/interface/theme.js.map +1 -1
  80. package/cjs/series/link/link.js +1 -1
  81. package/cjs/series/link/link.js.map +1 -1
  82. package/cjs/series/map/map.js +1 -1
  83. package/cjs/series/map/map.js.map +1 -1
  84. package/cjs/series/polar/polar.d.ts +1 -0
  85. package/cjs/series/polar/polar.js +3 -1
  86. package/cjs/series/polar/polar.js.map +1 -1
  87. package/cjs/series/polar/progress-like/progress-like.d.ts +1 -1
  88. package/cjs/series/polar/progress-like/progress-like.js +2 -3
  89. package/cjs/series/polar/progress-like/progress-like.js.map +1 -1
  90. package/cjs/series/progress/circular/circular.js +4 -4
  91. package/cjs/series/progress/circular/circular.js.map +1 -1
  92. package/cjs/series/range-area/interface.d.ts +2 -1
  93. package/cjs/series/range-area/interface.js.map +1 -1
  94. package/cjs/series/rose/rose.d.ts +1 -1
  95. package/cjs/series/rose/rose.js +2 -2
  96. package/cjs/series/rose/rose.js.map +1 -1
  97. package/cjs/series/sankey/sankey.js +14 -16
  98. package/cjs/series/sankey/sankey.js.map +1 -1
  99. package/cjs/series/scatter/scatter.d.ts +1 -2
  100. package/cjs/series/scatter/scatter.js +1 -3
  101. package/cjs/series/scatter/scatter.js.map +1 -1
  102. package/cjs/series/waterfall/waterfall.d.ts +1 -1
  103. package/cjs/series/waterfall/waterfall.js +3 -3
  104. package/cjs/series/waterfall/waterfall.js.map +1 -1
  105. package/cjs/series/word-cloud/base.js +34 -35
  106. package/cjs/series/word-cloud/base.js.map +1 -1
  107. package/cjs/series/word-cloud/word-cloud-3d.js +32 -32
  108. package/cjs/series/word-cloud/word-cloud-3d.js.map +1 -1
  109. package/cjs/theme/builtin/index.d.ts +4 -1
  110. package/cjs/theme/builtin/index.js +13 -8
  111. package/cjs/theme/builtin/index.js.map +1 -1
  112. package/cjs/theme/color-scheme/util.js +2 -1
  113. package/cjs/theme/color-scheme/util.js.map +1 -1
  114. package/cjs/theme/theme-manager.js +4 -3
  115. package/cjs/theme/theme-manager.js.map +1 -1
  116. package/cjs/theme/util.d.ts +5 -0
  117. package/cjs/theme/util.js +34 -0
  118. package/cjs/theme/util.js.map +1 -0
  119. package/cjs/util/spec/merge-theme.d.ts +4 -1
  120. package/cjs/util/spec/merge-theme.js +22 -13
  121. package/cjs/util/spec/merge-theme.js.map +1 -1
  122. package/cjs/util/spec/preprocess.js +1 -0
  123. package/cjs/util/spec/preprocess.js.map +1 -1
  124. package/esm/chart/base-chart.d.ts +4 -6
  125. package/esm/chart/base-chart.js +42 -42
  126. package/esm/chart/base-chart.js.map +1 -1
  127. package/esm/chart/gauge/gauge.js +3 -2
  128. package/esm/chart/gauge/gauge.js.map +1 -1
  129. package/esm/chart/interface/chart.d.ts +3 -3
  130. package/esm/chart/interface/chart.js.map +1 -1
  131. package/esm/chart/sequence/sequence.js +0 -1
  132. package/esm/chart/sequence/sequence.js.map +1 -1
  133. package/esm/component/axis/cartesian/linear-axis.js.map +1 -1
  134. package/esm/component/axis/polar/interface/common.d.ts +1 -0
  135. package/esm/component/axis/polar/interface/common.js.map +1 -1
  136. package/esm/component/axis/util.d.ts +3 -3
  137. package/esm/component/axis/util.js +10 -8
  138. package/esm/component/axis/util.js.map +1 -1
  139. package/esm/component/base/base-component.d.ts +1 -2
  140. package/esm/component/base/base-component.js +3 -40
  141. package/esm/component/base/base-component.js.map +1 -1
  142. package/esm/component/base/util.d.ts +2 -3
  143. package/esm/component/base/util.js +19 -16
  144. package/esm/component/base/util.js.map +1 -1
  145. package/esm/component/brush/brush.js +1 -1
  146. package/esm/component/brush/brush.js.map +1 -1
  147. package/esm/component/crosshair/util.d.ts +3 -3
  148. package/esm/component/crosshair/util.js +8 -4
  149. package/esm/component/crosshair/util.js.map +1 -1
  150. package/esm/component/tooltip/handler/base.js +7 -5
  151. package/esm/component/tooltip/handler/base.js.map +1 -1
  152. package/esm/component/tooltip/handler/utils/attribute.d.ts +3 -3
  153. package/esm/component/tooltip/handler/utils/attribute.js.map +1 -1
  154. package/esm/component/util.d.ts +4 -0
  155. package/esm/component/util.js +6 -0
  156. package/esm/component/util.js.map +1 -0
  157. package/esm/constant/waterfall.js +1 -2
  158. package/esm/constant/word-cloud.js +2 -1
  159. package/esm/core/index.d.ts +1 -1
  160. package/esm/core/index.js +1 -1
  161. package/esm/core/index.js.map +1 -1
  162. package/esm/core/interface.d.ts +7 -1
  163. package/esm/core/interface.js.map +1 -1
  164. package/esm/core/vchart.d.ts +3 -2
  165. package/esm/core/vchart.js +53 -42
  166. package/esm/core/vchart.js.map +1 -1
  167. package/esm/interaction/config.js +1 -2
  168. package/esm/interaction/dimension-trigger.js +2 -1
  169. package/esm/mark/base/base-mark.js +4 -5
  170. package/esm/mark/base/base-mark.js.map +1 -1
  171. package/esm/mark/box-plot.js +1 -1
  172. package/esm/model/base-model.d.ts +4 -2
  173. package/esm/model/base-model.js +53 -10
  174. package/esm/model/base-model.js.map +1 -1
  175. package/esm/model/interface.d.ts +10 -3
  176. package/esm/model/interface.js.map +1 -1
  177. package/esm/series/area/area.d.ts +1 -1
  178. package/esm/series/area/area.js +1 -1
  179. package/esm/series/area/area.js.map +1 -1
  180. package/esm/series/bar/bar.d.ts +1 -1
  181. package/esm/series/bar/bar.js +1 -1
  182. package/esm/series/bar/bar.js.map +1 -1
  183. package/esm/series/base/base-series.d.ts +4 -3
  184. package/esm/series/base/base-series.js +14 -46
  185. package/esm/series/base/base-series.js.map +1 -1
  186. package/esm/series/cartesian/cartesian.d.ts +3 -0
  187. package/esm/series/cartesian/cartesian.js +4 -3
  188. package/esm/series/cartesian/cartesian.js.map +1 -1
  189. package/esm/series/dot/dot.js +2 -4
  190. package/esm/series/dot/dot.js.map +1 -1
  191. package/esm/series/gauge/gauge-pointer.d.ts +1 -0
  192. package/esm/series/gauge/gauge-pointer.js +1 -1
  193. package/esm/series/gauge/gauge-pointer.js.map +1 -1
  194. package/esm/series/heatmap/heatmap.js +1 -1
  195. package/esm/series/heatmap/heatmap.js.map +1 -1
  196. package/esm/series/interface/theme.d.ts +2 -0
  197. package/esm/series/interface/theme.js +4 -1
  198. package/esm/series/interface/theme.js.map +1 -1
  199. package/esm/series/link/link.js +1 -1
  200. package/esm/series/link/link.js.map +1 -1
  201. package/esm/series/map/map.js +1 -1
  202. package/esm/series/map/map.js.map +1 -1
  203. package/esm/series/polar/polar.d.ts +1 -0
  204. package/esm/series/polar/polar.js +3 -2
  205. package/esm/series/polar/polar.js.map +1 -1
  206. package/esm/series/polar/progress-like/progress-like.d.ts +1 -1
  207. package/esm/series/polar/progress-like/progress-like.js +2 -3
  208. package/esm/series/polar/progress-like/progress-like.js.map +1 -1
  209. package/esm/series/progress/circular/circular.js +4 -4
  210. package/esm/series/progress/circular/circular.js.map +1 -1
  211. package/esm/series/range-area/interface.d.ts +2 -1
  212. package/esm/series/range-area/interface.js.map +1 -1
  213. package/esm/series/rose/rose.d.ts +1 -1
  214. package/esm/series/rose/rose.js +1 -1
  215. package/esm/series/rose/rose.js.map +1 -1
  216. package/esm/series/sankey/sankey.js +6 -8
  217. package/esm/series/sankey/sankey.js.map +1 -1
  218. package/esm/series/scatter/scatter.d.ts +1 -2
  219. package/esm/series/scatter/scatter.js +2 -3
  220. package/esm/series/scatter/scatter.js.map +1 -1
  221. package/esm/series/waterfall/waterfall.d.ts +1 -1
  222. package/esm/series/waterfall/waterfall.js +3 -3
  223. package/esm/series/waterfall/waterfall.js.map +1 -1
  224. package/esm/series/word-cloud/base.js +33 -35
  225. package/esm/series/word-cloud/base.js.map +1 -1
  226. package/esm/series/word-cloud/word-cloud-3d.js +32 -32
  227. package/esm/series/word-cloud/word-cloud-3d.js.map +1 -1
  228. package/esm/theme/builtin/index.d.ts +4 -1
  229. package/esm/theme/builtin/index.js +15 -6
  230. package/esm/theme/builtin/index.js.map +1 -1
  231. package/esm/theme/color-scheme/util.js +1 -1
  232. package/esm/theme/color-scheme/util.js.map +1 -1
  233. package/esm/theme/theme-manager.js +5 -4
  234. package/esm/theme/theme-manager.js.map +1 -1
  235. package/esm/theme/util.d.ts +5 -0
  236. package/esm/theme/util.js +34 -0
  237. package/esm/theme/util.js.map +1 -0
  238. package/esm/util/spec/merge-theme.d.ts +4 -1
  239. package/esm/util/spec/merge-theme.js +18 -10
  240. package/esm/util/spec/merge-theme.js.map +1 -1
  241. package/esm/util/spec/preprocess.js +2 -1
  242. package/esm/util/spec/preprocess.js.map +1 -1
  243. package/package.json +14 -14
package/build/index.js CHANGED
@@ -500,7 +500,7 @@
500
500
  const isRegExp = value => isType$1(value, "RegExp");
501
501
  var isRegExp$1 = isRegExp;
502
502
 
503
- const isBase64 = value => new RegExp(/^data:image\/(?:gif|png|jpeg|bmp|webp)(?:;charset=utf-8)?;base64,(?:[A-Za-z0-9]|[+/])+={0,2}/g).test(value);
503
+ const isBase64 = value => new RegExp(/^data:image\/(?:gif|png|jpeg|bmp|webp|svg\+xml)(?:;charset=utf-8)?;base64,(?:[A-Za-z0-9]|[+/])+={0,2}/g).test(value);
504
504
  var isBase64$1 = isBase64;
505
505
 
506
506
  const getType = value => ({}).toString.call(value).replace(/^\[object /, "").replace(/]$/, "");
@@ -26874,7 +26874,7 @@
26874
26874
  return isObject$2(obj) && obj.type === 'palette' && !!obj.key;
26875
26875
  }
26876
26876
  function isProgressiveDataColorScheme(obj) {
26877
- if (!isArray$1(obj)) {
26877
+ if (!isArray$1(obj) || obj.length === 0) {
26878
26878
  return false;
26879
26879
  }
26880
26880
  return obj.every(item => {
@@ -28408,11 +28408,10 @@
28408
28408
  }, this.graphicItem.setAttributes(this.graphicItem.attribute), this.clearGraphicAttributes(), this.mark.needAnimate() && (this.setPrevGraphicAttributes({}), this.setNextGraphicAttributes(attributes), this.setFinalGraphicAttributes(attributes)));
28409
28409
  }
28410
28410
  updateGraphicItem(config) {
28411
- var _a;
28412
28411
  if (!this.graphicItem) return;
28413
28412
  isNil$1(config.clip) || this.graphicItem.setAttribute("clip", config.clip), isNil$1(config.interactive) || this.graphicItem.setAttribute("pickable", config.interactive), isNil$1(config.zIndex) || this.graphicItem.setAttribute("zIndex", config.zIndex), this.diffState === DiffState.exit ? this.graphicItem.releaseStatus = "willRelease" : this.graphicItem.releaseStatus = void 0;
28414
- const markSpec = this.mark.getSpec();
28415
- (null === (_a = markSpec.animation) || void 0 === _a ? void 0 : _a.state) && (this.graphicItem.stateAnimateConfig = markSpec.animation.state);
28413
+ const stateAnimation = this.mark.animate.getAnimationConfigs("state");
28414
+ 0 !== stateAnimation.length && (this.graphicItem.stateAnimateConfig = stateAnimation[0].originConfig);
28416
28415
  }
28417
28416
  getGraphicItem() {
28418
28417
  return this.graphicItem;
@@ -28487,9 +28486,8 @@
28487
28486
  });
28488
28487
  }
28489
28488
  clearStates(hasAnimation) {
28490
- var _a;
28491
- const stateAnimation = isBoolean$1(hasAnimation) ? hasAnimation : !!(null === (_a = this.mark.getSpec().animation) || void 0 === _a ? void 0 : _a.state);
28492
- this.states = [], this.graphicItem && this.graphicItem.clearStates(stateAnimation), this.runtimeStatesEncoder && (this.runtimeStatesEncoder = {});
28489
+ const stateAnimationEnable = isBoolean$1(hasAnimation) ? hasAnimation : 0 !== this.mark.animate.getAnimationConfigs("state").length;
28490
+ this.states = [], this.graphicItem && this.graphicItem.clearStates(stateAnimationEnable), this.runtimeStatesEncoder && (this.runtimeStatesEncoder = {});
28493
28491
  }
28494
28492
  _updateRuntimeStates(state, attrs) {
28495
28493
  this.runtimeStatesEncoder || (this.runtimeStatesEncoder = {}), this.runtimeStatesEncoder[state] = attrs;
@@ -28511,15 +28509,15 @@
28511
28509
  }), this.useStates(nextStates));
28512
28510
  }
28513
28511
  useStates(states, hasAnimation) {
28514
- var _a, _b;
28512
+ var _a;
28515
28513
  if (!this.graphicItem) return;
28516
28514
  this.mark.emit(HOOK_EVENT.BEFORE_ELEMENT_STATE, {
28517
28515
  states: states
28518
28516
  }, this), this.states = states.slice();
28519
28517
  const stateSort = null === (_a = this.mark.getSpec()) || void 0 === _a ? void 0 : _a.stateSort;
28520
28518
  stateSort && this.states.sort(stateSort);
28521
- const stateAnimation = isBoolean$1(hasAnimation) ? hasAnimation : !!(null === (_b = this.mark.getSpec().animation) || void 0 === _b ? void 0 : _b.state);
28522
- this.graphicItem.stateProxy = this.getStateAttrs, this.graphicItem.useStates(this.states, stateAnimation), this.mark.emit(HOOK_EVENT.AFTER_ELEMENT_STATE, {
28519
+ const stateAnimationEnable = isBoolean$1(hasAnimation) ? hasAnimation : 0 !== this.mark.animate.getAnimationConfigs("state").length;
28520
+ this.graphicItem.stateProxy = this.getStateAttrs, this.graphicItem.useStates(this.states, stateAnimationEnable), this.mark.emit(HOOK_EVENT.AFTER_ELEMENT_STATE, {
28523
28521
  states: states
28524
28522
  }, this);
28525
28523
  }
@@ -38031,7 +38029,10 @@
38031
38029
  count = 0;
38032
38030
  this.logger.canLogInfo() && (dt = Date.now(), this.logger.debug(`-- START PROPAGATION (${this._updateCounter}) -----`)), this._beforeEvaluate();
38033
38031
  try {
38034
- for (; this._heap.size() > 0;) grammar = this._heap.pop(), grammar.rank === grammar.qrank ? (next = grammar.run(), next && next.then && (next = yield next), this._logGrammarRunInfo(grammar), this._enqueueTargets(grammar), count += 1) : this._enqueue(grammar);
38032
+ for (; this._heap.size() > 0;) if (grammar = this._heap.pop(), grammar.rank === grammar.qrank) {
38033
+ if (next = grammar.run(), next && next.then && (next = yield next), !this._isRunning) return !1;
38034
+ this._logGrammarRunInfo(grammar), this._enqueueTargets(grammar), count += 1;
38035
+ } else this._enqueue(grammar);
38035
38036
  } catch (err) {
38036
38037
  this._heap.clear(), error = err;
38037
38038
  }
@@ -38047,6 +38048,9 @@
38047
38048
  for (this.logger.canLogInfo() && (dt = Date.now(), this.logger.debug(`-- START PROPAGATION (${this._updateCounter}) -----`)), this._beforeEvaluate(); this._heap.size() > 0;) grammar = this._heap.pop(), grammar.rank === grammar.qrank ? (grammar.runSync(), this._logGrammarRunInfo(grammar), this._enqueueTargets(grammar), count += 1) : this._enqueue(grammar);
38048
38049
  return this._isRunning = !1, this.logger.canLogInfo() && (dt = Date.now() - dt, this.logger.info(`> ${count} grammars updated; ${dt} ms`)), this._afterRunner && this._afterRunner(this), this._finishFirstRender = !0, !0;
38049
38050
  }
38051
+ stop() {
38052
+ this._isRunning && (this._isRunning = !1);
38053
+ }
38050
38054
  runBefore(callback) {
38051
38055
  this._beforeRunner = callback;
38052
38056
  }
@@ -38054,7 +38058,7 @@
38054
38058
  this._afterRunner = callback;
38055
38059
  }
38056
38060
  release() {
38057
- this._heap && (this._heap.clear(), this._heap = null), this.logger = null, this._committed = null;
38061
+ this.stop(), this._heap && (this._heap.clear(), this._heap = null), this.logger = null, this._committed = null;
38058
38062
  }
38059
38063
  }
38060
38064
 
@@ -42979,13 +42983,12 @@
42979
42983
  }), this.clearGraphicAttributes();
42980
42984
  }
42981
42985
  useStates(states, hasAnimation) {
42982
- var _a;
42983
42986
  if (!this.graphicItem) return;
42984
42987
  this.mark.emit(HOOK_EVENT.BEFORE_ELEMENT_STATE, {
42985
42988
  states: states
42986
42989
  }, this), this.states = states.slice();
42987
- const stateAnimation = isBoolean$1(hasAnimation) ? hasAnimation : !!(null === (_a = this.mark.getSpec().animation) || void 0 === _a ? void 0 : _a.state);
42988
- this.graphicItem.glyphStateProxy = this.getStateAttrs, this.graphicItem.useStates(this.states, stateAnimation), this.mark.emit(HOOK_EVENT.AFTER_ELEMENT_STATE, {
42990
+ const stateAnimationEnable = isBoolean$1(hasAnimation) ? hasAnimation : 0 !== this.mark.animate.getAnimationConfigs("state").length;
42991
+ this.graphicItem.glyphStateProxy = this.getStateAttrs, this.graphicItem.useStates(this.states, stateAnimationEnable), this.mark.emit(HOOK_EVENT.AFTER_ELEMENT_STATE, {
42989
42992
  states: states
42990
42993
  }, this);
42991
42994
  }
@@ -43543,6 +43546,10 @@
43543
43546
  constructor(mark, config) {
43544
43547
  this.state = null, this.immediateConfigs = [], this.isEnabled = !0, this.disabledStates = [], this.animators = new Map(), this.elementRecorder = new WeakMap(), this.timelineCount = {}, this.mark = mark, this.configs = normalizeAnimationConfig(null != config ? config : {});
43545
43548
  }
43549
+ getAnimationConfigs(animationState) {
43550
+ var _a;
43551
+ return this.isEnabled ? (null !== (_a = this.configs) && void 0 !== _a ? _a : []).filter(config => config.state === animationState) : [];
43552
+ }
43546
43553
  updateConfig(config) {
43547
43554
  this.configs = normalizeAnimationConfig(null != config ? config : {});
43548
43555
  }
@@ -45841,6 +45848,18 @@
45841
45848
  },
45842
45849
  dataLabels: []
45843
45850
  };
45851
+ const lineDataLabel = {
45852
+ type: "line-data",
45853
+ data: [{
45854
+ text: ""
45855
+ }],
45856
+ position: "top",
45857
+ overlap: {
45858
+ avoidBaseMark: !1,
45859
+ clampForce: !1
45860
+ },
45861
+ smartInvert: !1
45862
+ };
45844
45863
  const lineLabel = {
45845
45864
  type: "line",
45846
45865
  data: [{
@@ -45983,6 +46002,7 @@
45983
46002
  rectLabel: rectLabel,
45984
46003
  symbolLabel: symbolLabel$1,
45985
46004
  arcLabel: arcLabel,
46005
+ lineDataLabel: lineDataLabel,
45986
46006
  datazoom: datazoom,
45987
46007
  continuousPlayer: continuousPlayer,
45988
46008
  discretePlayer: discretePlayer,
@@ -46400,7 +46420,7 @@
46400
46420
  this.event(eventConfig);
46401
46421
  }), (null === (_j = spec.interactions) || void 0 === _j ? void 0 : _j.length) && spec.interactions.forEach(interaction => {
46402
46422
  this.interaction(interaction.type, interaction);
46403
- }), this.emit(HOOK_EVENT.AFTER_PARSE_VIEW), this._needBuildLayoutTree = !0, this._layoutState = LayoutState.before, this;
46423
+ }), !1 === spec.animation ? this.animate.disable() : this.animate.enable(), this.emit(HOOK_EVENT.AFTER_PARSE_VIEW), this._needBuildLayoutTree = !0, this._layoutState = LayoutState.before, this;
46404
46424
  }
46405
46425
  updateSpec(spec) {
46406
46426
  return this.removeAllInteractions(), this.removeAllGrammars(), this.parseSpec(spec);
@@ -47642,14 +47662,15 @@
47642
47662
  var _a;
47643
47663
  const labelTheme = null === (_a = null == theme ? void 0 : theme.components) || void 0 === _a ? void 0 : _a.dataLabel,
47644
47664
  dataLabels = marks.map((mark, index) => {
47645
- var _a, _b, _c, _d, _e, _f;
47665
+ var _a, _b, _c, _d, _e, _f, _g, _h;
47646
47666
  const labelParameters = Object.assign(Object.assign({}, parameters), {
47647
47667
  labelIndex: index
47648
47668
  });
47649
47669
  let currentTheme = {};
47650
47670
  switch (mark.markType) {
47651
47671
  case GrammarMarkType.line:
47652
- currentTheme = null === (_a = null == theme ? void 0 : theme.components) || void 0 === _a ? void 0 : _a.lineLabel;
47672
+ case GrammarMarkType.area:
47673
+ currentTheme = null === (_a = null == theme ? void 0 : theme.components) || void 0 === _a ? void 0 : _a.lineDataLabel;
47653
47674
  break;
47654
47675
  case GrammarMarkType.rect:
47655
47676
  case GrammarMarkType.interval:
@@ -47669,17 +47690,22 @@
47669
47690
  default:
47670
47691
  currentTheme = null === (_e = null == theme ? void 0 : theme.components) || void 0 === _e ? void 0 : _e.pointLabel;
47671
47692
  }
47672
- const data = [];
47693
+ const data = [],
47694
+ themeDatum = null !== (_g = null === (_f = null == currentTheme ? void 0 : currentTheme.data) || void 0 === _f ? void 0 : _f[0]) && void 0 !== _g ? _g : {};
47673
47695
  mark.elements.forEach(element => {
47674
- var _a, _b;
47675
- if ("willRelease" !== element.getGraphicItem().releaseStatus) {
47696
+ if ("willRelease" !== element.getGraphicItem().releaseStatus) if (mark.isCollectionMark()) {
47697
+ element.getDatum().forEach(entry => {
47698
+ const attributes = invokeEncoder(encoder, entry, element, labelParameters);
47699
+ data.push(merge$1({}, themeDatum, attributes));
47700
+ });
47701
+ } else {
47676
47702
  const attributes = invokeEncoder(encoder, element.getDatum(), element, labelParameters),
47677
- datum = merge$1({}, null !== (_b = null === (_a = null == currentTheme ? void 0 : currentTheme.data) || void 0 === _a ? void 0 : _a[0]) && void 0 !== _b ? _b : {}, attributes);
47703
+ datum = merge$1({}, themeDatum, attributes);
47678
47704
  data.push(datum);
47679
47705
  }
47680
47706
  });
47681
47707
  const addition = invokeFunctionType(labelStyle, labelParameters, mark),
47682
- graphicItemName = null === (_f = mark.graphicItem) || void 0 === _f ? void 0 : _f.name;
47708
+ graphicItemName = null === (_h = mark.graphicItem) || void 0 === _h ? void 0 : _h.name;
47683
47709
  return merge$1({}, currentTheme, {
47684
47710
  data: data,
47685
47711
  baseMarkGroupName: graphicItemName,
@@ -50510,6 +50536,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
50510
50536
 
50511
50537
  const correlationSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { [SeriesMarkNameEnum.nodePoint]: { name: SeriesMarkNameEnum.nodePoint, type: MarkTypeEnum.symbol }, [SeriesMarkNameEnum.ripplePoint]: { name: SeriesMarkNameEnum.ripplePoint, type: MarkTypeEnum.ripple }, [SeriesMarkNameEnum.centerPoint]: { name: SeriesMarkNameEnum.centerPoint, type: MarkTypeEnum.symbol }, [SeriesMarkNameEnum.centerLabel]: { name: SeriesMarkNameEnum.centerLabel, type: MarkTypeEnum.text } });
50512
50538
 
50539
+ const rangeAreaSeriesMark = Object.assign({}, areaSeriesMark);
50540
+
50513
50541
  const seriesMarkInfoMap = {
50514
50542
  [SeriesTypeEnum.bar]: barSeriesMark,
50515
50543
  [SeriesTypeEnum.bar3d]: bar3dSeriesMark,
@@ -50539,7 +50567,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
50539
50567
  [SeriesTypeEnum.rangeColumn]: rangeColumnSeriesMark,
50540
50568
  [SeriesTypeEnum.circlePacking]: circlePackingSeriesMark,
50541
50569
  [SeriesTypeEnum.heatmap]: heatmapSeriesMark,
50542
- [SeriesTypeEnum.correlation]: correlationSeriesMark
50570
+ [SeriesTypeEnum.correlation]: correlationSeriesMark,
50571
+ [SeriesTypeEnum.rangeArea]: rangeAreaSeriesMark
50543
50572
  };
50544
50573
 
50545
50574
  function baseMerge(target, source, shallowArray = false) {
@@ -50656,32 +50685,37 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
50656
50685
  if (!theme) {
50657
50686
  return theme;
50658
50687
  }
50659
- let { colorScheme } = theme;
50660
- if (colorScheme) {
50661
- colorScheme = Object.keys(colorScheme).reduce((scheme, key) => {
50662
- const value = colorScheme[key];
50663
- scheme[key] = transformColorSchemeToStandardStruct(value);
50664
- return scheme;
50665
- }, {});
50666
- }
50688
+ const colorScheme = transformColorSchemeToMerge(theme.colorScheme);
50667
50689
  let { series } = theme;
50668
50690
  const { mark: markByType, markByName } = theme;
50669
50691
  if (markByType || markByName) {
50670
50692
  series = Object.keys(seriesMarkInfoMap).reduce((newSeriesTheme, key) => {
50671
50693
  var _a;
50672
50694
  const value = (_a = series === null || series === void 0 ? void 0 : series[key]) !== null && _a !== void 0 ? _a : {};
50673
- const newValue = {};
50674
- Object.values(seriesMarkInfoMap[key]).forEach(({ type, name }) => {
50675
- var _a, _b;
50676
- newValue[name] = mergeSpec({}, (_a = markByType === null || markByType === void 0 ? void 0 : markByType[array(type)[0]]) !== null && _a !== void 0 ? _a : {}, (_b = markByName === null || markByName === void 0 ? void 0 : markByName[name]) !== null && _b !== void 0 ? _b : {}, value[name]);
50677
- });
50678
- newSeriesTheme[key] = Object.assign(Object.assign({}, value), newValue);
50695
+ newSeriesTheme[key] = transformSeriesThemeToMerge(value, key, markByType, markByName);
50679
50696
  return newSeriesTheme;
50680
50697
  }, {});
50681
50698
  }
50682
50699
  return Object.assign(Object.assign({}, theme), { colorScheme,
50683
50700
  series });
50684
50701
  }
50702
+ function transformColorSchemeToMerge(colorScheme) {
50703
+ if (colorScheme) {
50704
+ colorScheme = Object.keys(colorScheme).reduce((scheme, key) => {
50705
+ const value = colorScheme[key];
50706
+ scheme[key] = transformColorSchemeToStandardStruct(value);
50707
+ return scheme;
50708
+ }, {});
50709
+ }
50710
+ return colorScheme;
50711
+ }
50712
+ function transformSeriesThemeToMerge(seriesTheme, seriesType, markByType, markByName) {
50713
+ const newTheme = {};
50714
+ Object.values(seriesMarkInfoMap[seriesType]).forEach(({ type, name }) => {
50715
+ newTheme[name] = mergeSpec({}, markByType === null || markByType === void 0 ? void 0 : markByType[array(type)[0]], markByName === null || markByName === void 0 ? void 0 : markByName[name], seriesTheme === null || seriesTheme === void 0 ? void 0 : seriesTheme[name]);
50716
+ });
50717
+ return Object.assign(Object.assign({}, seriesTheme), newTheme);
50718
+ }
50685
50719
 
50686
50720
  const colorScheme = {
50687
50721
  default: {
@@ -50728,18 +50762,19 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
50728
50762
  }
50729
50763
  };
50730
50764
 
50731
- const builtinThemeMap = new Map([
50732
- [lightTheme.name, lightTheme],
50733
- [darkTheme.name, darkTheme]
50734
- ]);
50765
+ const builtinThemes = {
50766
+ [lightTheme.name]: lightTheme,
50767
+ [darkTheme.name]: darkTheme
50768
+ };
50735
50769
  const defaultThemeName = lightTheme.name;
50736
- const themes = new Map([[defaultThemeName, builtinThemeMap.get(defaultThemeName)]]);
50737
- const getMergedTheme = (theme) => mergeTheme({}, builtinThemeMap.get(defaultThemeName), theme);
50738
- builtinThemeMap.forEach((theme, name) => {
50739
- if (name !== defaultThemeName) {
50740
- themes.set(name, getMergedTheme(theme));
50741
- }
50742
- });
50770
+ const themes = new Map(Object.keys(builtinThemes).map(key => [key, builtinThemes[key]]));
50771
+ const hasThemeMerged = new Map(Object.keys(builtinThemes).map(key => [key, key === defaultThemeName]));
50772
+ const getMergedTheme = (theme) => mergeTheme({}, themes.get(defaultThemeName), theme);
50773
+ const defaultChartLevelTheme = {
50774
+ background: getActualColor(builtinThemes[defaultThemeName].background, builtinThemes[defaultThemeName].colorScheme),
50775
+ fontFamily: builtinThemes[defaultThemeName].fontFamily,
50776
+ colorScheme: builtinThemes[defaultThemeName].colorScheme
50777
+ };
50743
50778
 
50744
50779
  class InstanceManager {
50745
50780
  static registerInstance(instance) {
@@ -50772,12 +50807,16 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
50772
50807
  return;
50773
50808
  }
50774
50809
  ThemeManager.themes.set(name, getMergedTheme(theme));
50810
+ hasThemeMerged.set(name, true);
50775
50811
  }
50776
50812
  static getTheme(name) {
50813
+ if (hasThemeMerged.has(name) && !hasThemeMerged.get(name)) {
50814
+ ThemeManager.registerTheme(name, ThemeManager.themes.get(name));
50815
+ }
50777
50816
  return ThemeManager.themes.get(name) || ThemeManager.getDefaultTheme();
50778
50817
  }
50779
50818
  static removeTheme(name) {
50780
- return ThemeManager.themes.delete(name);
50819
+ return ThemeManager.themes.delete(name) && hasThemeMerged.delete(name);
50781
50820
  }
50782
50821
  static themeExist(name) {
50783
50822
  if (!isString$1(name)) {
@@ -50877,6 +50916,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
50877
50916
  }
50878
50917
 
50879
50918
  function preprocessSpecOrTheme(type, obj, colorScheme, seriesType) {
50919
+ if (isNil$1(obj)) {
50920
+ return obj;
50921
+ }
50880
50922
  if (isArray$1(obj)) {
50881
50923
  return obj.map(element => {
50882
50924
  if (isObject$2(element) && !isFunction$1(element)) {
@@ -53709,6 +53751,55 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
53709
53751
  }
53710
53752
  }
53711
53753
 
53754
+ const mergeThemeAndGet = (path, currentThemeName, optionTheme, specTheme, colorScheme) => {
53755
+ if (isString$1(specTheme) && ThemeManager.themeExist(specTheme)) {
53756
+ return getMergedValue(getThemeValue(path, specTheme, colorScheme));
53757
+ }
53758
+ else if (isString$1(optionTheme) && ThemeManager.themeExist(optionTheme)) {
53759
+ return getMergedValue(getThemeValue(path, optionTheme, colorScheme), getThemeValue(path, specTheme, colorScheme));
53760
+ }
53761
+ return getMergedValue(getThemeValue(path, currentThemeName, colorScheme), getThemeValue(path, optionTheme, colorScheme), getThemeValue(path, specTheme, colorScheme));
53762
+ };
53763
+ const getThemeValue = (path, theme, colorScheme) => {
53764
+ let themeObject;
53765
+ if (isString$1(theme) && ThemeManager.themeExist(theme)) {
53766
+ themeObject = ThemeManager.getTheme(theme);
53767
+ }
53768
+ else if (isObject$2(theme)) {
53769
+ themeObject = theme;
53770
+ }
53771
+ if (isNil$1(themeObject)) {
53772
+ return undefined;
53773
+ }
53774
+ const paths = path.split('.');
53775
+ const colorSchemePath = 'colorScheme';
53776
+ if (path === colorSchemePath) {
53777
+ return transformColorSchemeToMerge(themeObject.colorScheme);
53778
+ }
53779
+ const backgroundPath = 'background';
53780
+ if (path === backgroundPath) {
53781
+ return getActualColor(themeObject.background, colorScheme);
53782
+ }
53783
+ const seriesPath = 'series';
53784
+ if (paths.length === 2 && paths[0] === seriesPath) {
53785
+ const { markByName, mark } = themeObject;
53786
+ return transformSeriesThemeToMerge(get$1(themeObject, paths), paths[1], mark, markByName);
53787
+ }
53788
+ return get$1(themeObject, paths);
53789
+ };
53790
+ const getMergedValue = (...sources) => {
53791
+ const tmpKey = '__TMP_KEY__';
53792
+ const obj = mergeSpec({}, ...sources.map(source => ({
53793
+ [tmpKey]: source
53794
+ })));
53795
+ return obj[tmpKey];
53796
+ };
53797
+ const getThemeFromOption = (path, option) => {
53798
+ var _a, _b;
53799
+ const { globalTheme = defaultThemeName, optionTheme, specTheme, chartLevelTheme = defaultChartLevelTheme } = (_b = (_a = option.getThemeConfig) === null || _a === void 0 ? void 0 : _a.call(option)) !== null && _b !== void 0 ? _b : {};
53800
+ return mergeThemeAndGet(path, globalTheme, optionTheme, specTheme, chartLevelTheme === null || chartLevelTheme === void 0 ? void 0 : chartLevelTheme.colorScheme);
53801
+ };
53802
+
53712
53803
  class BaseModel extends LayoutItem {
53713
53804
  getData() {
53714
53805
  return this._data;
@@ -53848,19 +53939,26 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
53848
53939
  this.setAttrFromSpec();
53849
53940
  }
53850
53941
  _initTheme(theme) {
53851
- this._theme = theme;
53942
+ if (theme) {
53943
+ this._theme = theme;
53944
+ }
53945
+ else {
53946
+ this._theme = this._getTheme();
53947
+ }
53852
53948
  this._mergeMarkTheme();
53949
+ this._mergeThemeToSpec();
53853
53950
  }
53854
- setTheme(theme) {
53855
- this._theme = theme;
53951
+ _getTheme() {
53952
+ return undefined;
53856
53953
  }
53857
53954
  _mergeMarkTheme() {
53858
53955
  var _a, _b;
53859
- const globalTheme = (_b = (_a = this._option).getTheme) === null || _b === void 0 ? void 0 : _b.call(_a);
53860
- if (isNil$1(globalTheme) || isNil$1(this._theme)) {
53956
+ const config = (_b = (_a = this._option).getThemeConfig) === null || _b === void 0 ? void 0 : _b.call(_a);
53957
+ if (isNil$1(config) || isNil$1(this._theme)) {
53861
53958
  return;
53862
53959
  }
53863
- const { mark: markThemeByType, markByName: markThemeByName } = globalTheme;
53960
+ const markThemeByType = getThemeFromOption('mark', this._option);
53961
+ const markThemeByName = getThemeFromOption('markByName', this._option);
53864
53962
  this.getMarkInfoList().forEach(({ type, name }) => {
53865
53963
  var _a, _b;
53866
53964
  this._theme[name] = mergeSpec({}, (_a = markThemeByType === null || markThemeByType === void 0 ? void 0 : markThemeByType[array(type)[0]]) !== null && _a !== void 0 ? _a : {}, (_b = markThemeByName === null || markThemeByName === void 0 ? void 0 : markThemeByName[name]) !== null && _b !== void 0 ? _b : {}, this._theme[name]);
@@ -53890,17 +53988,28 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
53890
53988
  return obj;
53891
53989
  }
53892
53990
  _prepareSpecAfterMergingTheme(obj) {
53893
- var _a, _b, _c;
53894
53991
  if (!arguments.length) {
53895
53992
  obj = this._spec;
53896
53993
  }
53897
- const newObj = preprocessSpecOrTheme('spec', obj, (_c = (_b = (_a = this._option).getTheme) === null || _b === void 0 ? void 0 : _b.call(_a)) === null || _c === void 0 ? void 0 : _c.colorScheme, this.modelType === 'series' ? this.type : undefined);
53994
+ const newObj = preprocessSpecOrTheme('spec', obj, this.getColorScheme(), this.modelType === 'series' ? this.type : undefined);
53898
53995
  if (!arguments.length) {
53899
53996
  this._spec = newObj;
53900
53997
  }
53901
53998
  return newObj;
53902
53999
  }
53903
- setCurrentTheme(theme, noRender) {
54000
+ setCurrentTheme(noRender) {
54001
+ return __awaiter$h(this, void 0, void 0, function* () {
54002
+ const modifyConfig = () => {
54003
+ this.reInit(this._getTheme());
54004
+ return { change: true, reMake: false };
54005
+ };
54006
+ if (noRender) {
54007
+ modifyConfig();
54008
+ }
54009
+ else {
54010
+ yield this._option.globalInstance.updateCustomConfigAndRerender(modifyConfig);
54011
+ }
54012
+ });
53904
54013
  }
53905
54014
  updateLayoutAttribute() {
53906
54015
  }
@@ -53970,6 +54079,14 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
53970
54079
  _getDataIdKey() {
53971
54080
  return undefined;
53972
54081
  }
54082
+ getColorScheme() {
54083
+ var _a, _b, _c;
54084
+ return ((_c = (_b = (_a = this._option).getThemeConfig) === null || _b === void 0 ? void 0 : _b.call(_a).chartLevelTheme) !== null && _c !== void 0 ? _c : defaultChartLevelTheme).colorScheme;
54085
+ }
54086
+ _getChartLevelTheme() {
54087
+ var _a, _b, _c;
54088
+ return (_c = (_b = (_a = this._option).getThemeConfig) === null || _b === void 0 ? void 0 : _b.call(_a).chartLevelTheme) !== null && _c !== void 0 ? _c : defaultChartLevelTheme;
54089
+ }
53973
54090
  }
53974
54091
 
53975
54092
  function isStateAttrChangeable(key, stateStyle, facetField) {
@@ -56484,7 +56601,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
56484
56601
  }
56485
56602
  }
56486
56603
  _computeGradientAttr(gradientStyle, data, opt) {
56487
- var _a, _b;
56488
56604
  const { gradient, scale, field } = gradientStyle, rest = __rest$8(gradientStyle, ["gradient", "scale", "field"]);
56489
56605
  const markData = this.getDataView();
56490
56606
  let colorScale = scale;
@@ -56498,7 +56614,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
56498
56614
  colorField = globalField;
56499
56615
  }
56500
56616
  }
56501
- const themeColor = computeActualDataScheme(getDataScheme((_b = (_a = this.model.getOption()) === null || _a === void 0 ? void 0 : _a.getTheme()) === null || _b === void 0 ? void 0 : _b.colorScheme, this.model.modelType === 'series' ? this.model.type : undefined), this.model.getDefaultColorDomain());
56617
+ const themeColor = computeActualDataScheme(getDataScheme(this.model.getColorScheme(), this.model.modelType === 'series' ? this.model.type : undefined), this.model.getDefaultColorDomain());
56502
56618
  const computeStyle = {};
56503
56619
  const mergedStyle = Object.assign(Object.assign({}, DEFAULT_GRADIENT_CONFIG[gradient]), rest);
56504
56620
  Object.keys(mergedStyle).forEach(key => {
@@ -56530,7 +56646,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
56530
56646
  return computeStyle;
56531
56647
  }
56532
56648
  _computeBorderAttr(borderStyle, data, opt) {
56533
- var _a, _b, _c;
56649
+ var _a;
56534
56650
  const { scale, field } = borderStyle, mergedStyle = __rest$8(borderStyle, ["scale", "field"]);
56535
56651
  const computeStyle = {};
56536
56652
  Object.keys(mergedStyle).forEach(key => {
@@ -56543,7 +56659,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
56543
56659
  }
56544
56660
  });
56545
56661
  if (!('stroke' in computeStyle)) {
56546
- const themeColor = computeActualDataScheme(getDataScheme((_b = (_a = this.model.getOption()) === null || _a === void 0 ? void 0 : _a.getTheme()) === null || _b === void 0 ? void 0 : _b.colorScheme, this.model.modelType === 'series' ? this.model.type : undefined), this.model.getDefaultColorDomain());
56662
+ const themeColor = computeActualDataScheme(getDataScheme(this.model.getColorScheme(), this.model.modelType === 'series' ? this.model.type : undefined), this.model.getDefaultColorDomain());
56547
56663
  let colorScale = scale;
56548
56664
  let colorField = field;
56549
56665
  if ((!scale || !field) && this.model.modelType === 'series') {
@@ -56557,7 +56673,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
56557
56673
  computeStyle.stroke = (colorScale === null || colorScale === void 0 ? void 0 : colorScale.scale(data[colorField])) || themeColor[0];
56558
56674
  }
56559
56675
  }
56560
- else if (GradientType.includes((_c = mergedStyle.stroke) === null || _c === void 0 ? void 0 : _c.gradient)) {
56676
+ else if (GradientType.includes((_a = mergedStyle.stroke) === null || _a === void 0 ? void 0 : _a.gradient)) {
56561
56677
  computeStyle.stroke = this._computeGradientAttr(mergedStyle.stroke, data, opt);
56562
56678
  }
56563
56679
  return computeStyle;
@@ -57249,13 +57365,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
57249
57365
  }
57250
57366
  };
57251
57367
  this._observer = null;
57368
+ this._currentChartLevelTheme = {};
57252
57369
  this._context = {};
57253
57370
  this._onResize = debounce((...args) => {
57254
- const { width, height } = this._getCurSize();
57255
- if (this._curSize.width !== width || this._curSize.height !== height) {
57256
- this._curSize = { width, height };
57257
- this.resize(width, height);
57258
- }
57371
+ this._doResize();
57259
57372
  }, 100);
57260
57373
  this._option = merge$1(this._option, options);
57261
57374
  this._onError = (_a = this._option) === null || _a === void 0 ? void 0 : _a.onError;
@@ -57292,7 +57405,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
57292
57405
  this._event = new Event$1(this._eventDispatcher, mode);
57293
57406
  this._compiler.initView();
57294
57407
  (_d = this.getStage()) === null || _d === void 0 ? void 0 : _d.setTheme({
57295
- text: { fontFamily: this._currentTheme.fontFamily }
57408
+ text: { fontFamily: this._currentChartLevelTheme.fontFamily }
57296
57409
  });
57297
57410
  this._initDataSet(this._option.dataSet);
57298
57411
  this._autoSize = isTrueBrowser(mode) ? (_f = (_e = spec.autoFit) !== null && _e !== void 0 ? _e : this._option.autoFit) !== null && _f !== void 0 ? _f : true : false;
@@ -57326,7 +57439,15 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
57326
57439
  performanceHook: this._option.performanceHook,
57327
57440
  viewBox: this._viewBox,
57328
57441
  animation: this._option.animation,
57329
- getTheme: () => this._currentTheme,
57442
+ getThemeConfig: () => {
57443
+ var _a;
57444
+ return ({
57445
+ globalTheme: this._currentThemeName,
57446
+ optionTheme: this._option.theme,
57447
+ specTheme: (_a = this._spec) === null || _a === void 0 ? void 0 : _a.theme,
57448
+ chartLevelTheme: this._currentChartLevelTheme
57449
+ });
57450
+ },
57330
57451
  layout: this._option.layout,
57331
57452
  onError: this._onError
57332
57453
  });
@@ -57381,6 +57502,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
57381
57502
  const { width: containerWidth, height: containerHeight } = getContainerSize(this._container, DEFAULT_CHART_WIDTH, DEFAULT_CHART_HEIGHT);
57382
57503
  return { width: (_a = this._spec.width) !== null && _a !== void 0 ? _a : containerWidth, height: (_b = this._spec.height) !== null && _b !== void 0 ? _b : containerHeight };
57383
57504
  }
57505
+ _doResize() {
57506
+ const { width, height } = this._getCurSize();
57507
+ if (this._curSize.width !== width || this._curSize.height !== height) {
57508
+ this._curSize = { width, height };
57509
+ this.resize(width, height);
57510
+ }
57511
+ }
57384
57512
  _initDataSet(dataSet) {
57385
57513
  if (dataSet instanceof DataSet) {
57386
57514
  this._dataSet = dataSet;
@@ -57429,7 +57557,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
57429
57557
  (_a = this._compiler) === null || _a === void 0 ? void 0 : _a.releaseGrammar();
57430
57558
  this._userEvents.forEach(e => { var _a; return (_a = this._event) === null || _a === void 0 ? void 0 : _a.on(e.eType, e.query, e.handler); });
57431
57559
  if (updateResult.reSize) {
57432
- this._onResize();
57560
+ this._doResize();
57433
57561
  }
57434
57562
  }
57435
57563
  else {
@@ -57668,9 +57796,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
57668
57796
  this._spec = spec;
57669
57797
  if (!isEqual$1(lastSpec.theme, spec.theme)) {
57670
57798
  this._updateCurrentTheme();
57671
- (_a = this._chart) === null || _a === void 0 ? void 0 : _a.setCurrentTheme(this._currentTheme, false);
57799
+ (_a = this._chart) === null || _a === void 0 ? void 0 : _a.setCurrentTheme();
57672
57800
  }
57673
- const reSize = this._updateChartConfiguration(lastSpec);
57801
+ const reSize = this._shouldChartResize(lastSpec);
57674
57802
  (_c = (_b = this._compiler) === null || _b === void 0 ? void 0 : _b.getVGrammarView()) === null || _c === void 0 ? void 0 : _c.updateLayoutTag();
57675
57803
  return mergeUpdateResult(this._chart.updateSpec(spec, morphConfig), {
57676
57804
  change: reSize,
@@ -57693,13 +57821,17 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
57693
57821
  spec = mergeSpec({}, this._spec, spec);
57694
57822
  }
57695
57823
  this.updateCustomConfigAndRerenderSync(() => {
57696
- var _a, _b, _c;
57824
+ var _a, _b, _c, _d;
57697
57825
  spec = specTransform(spec);
57698
57826
  spec.data = (_a = spec.data) !== null && _a !== void 0 ? _a : [];
57699
57827
  const lastSpec = this._spec;
57700
57828
  this._spec = spec;
57701
- const reSize = this._updateChartConfiguration(lastSpec);
57702
- (_c = (_b = this._compiler) === null || _b === void 0 ? void 0 : _b.getVGrammarView()) === null || _c === void 0 ? void 0 : _c.updateLayoutTag();
57829
+ if (!isEqual$1(lastSpec.theme, spec.theme)) {
57830
+ this._updateCurrentTheme();
57831
+ (_b = this._chart) === null || _b === void 0 ? void 0 : _b.setCurrentTheme();
57832
+ }
57833
+ const reSize = this._shouldChartResize(lastSpec);
57834
+ (_d = (_c = this._compiler) === null || _c === void 0 ? void 0 : _c.getVGrammarView()) === null || _d === void 0 ? void 0 : _d.updateLayoutTag();
57703
57835
  return mergeUpdateResult(this._chart.updateSpec(spec, morphConfig), {
57704
57836
  change: reSize,
57705
57837
  reMake: false,
@@ -57798,6 +57930,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
57798
57930
  }
57799
57931
  on(eType, query, handler) {
57800
57932
  var _a;
57933
+ if (!this._userEvents) {
57934
+ return;
57935
+ }
57801
57936
  this._userEvents.push({
57802
57937
  eType,
57803
57938
  query: typeof query === 'function' ? null : query,
@@ -57807,6 +57942,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
57807
57942
  }
57808
57943
  off(eType, handler) {
57809
57944
  var _a;
57945
+ if (!this._userEvents || this._userEvents.length === 0) {
57946
+ return;
57947
+ }
57810
57948
  if (handler) {
57811
57949
  const index = this._userEvents.findIndex(e => e.eType === eType && e.handler === handler);
57812
57950
  if (index >= 0) {
@@ -57843,39 +57981,34 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
57843
57981
  this._chart.setHovered(datum, filter, region);
57844
57982
  }
57845
57983
  _updateCurrentTheme(nextThemeName) {
57846
- var _a, _b, _c;
57847
- let optionTheme = this._option.theme;
57848
- let specTheme = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.theme;
57849
- let finalTheme;
57850
- if (ThemeManager.themeExist(nextThemeName)) {
57851
- const newTheme = ThemeManager.getTheme(nextThemeName);
57852
- optionTheme = !optionTheme || isString$1(optionTheme) ? {} : optionTheme;
57853
- specTheme = !specTheme || isString$1(specTheme) ? {} : specTheme;
57854
- finalTheme = mergeTheme({}, newTheme, optionTheme, specTheme);
57984
+ var _a, _b;
57985
+ const optionTheme = this._option.theme;
57986
+ const specTheme = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.theme;
57987
+ if (nextThemeName) {
57855
57988
  this._currentThemeName = nextThemeName;
57856
57989
  }
57857
- else {
57858
- if (isString$1(specTheme) && ThemeManager.themeExist(specTheme)) {
57859
- finalTheme = mergeTheme({}, ThemeManager.getTheme(specTheme));
57860
- this._currentThemeName = specTheme;
57861
- }
57862
- else if (isString$1(optionTheme) && ThemeManager.themeExist(optionTheme)) {
57863
- finalTheme = mergeTheme({}, ThemeManager.getTheme(optionTheme), getThemeObject(specTheme));
57864
- this._currentThemeName = optionTheme;
57865
- }
57866
- else {
57867
- const baseTheme = getThemeObject(this._currentThemeName);
57868
- finalTheme = mergeTheme({}, baseTheme, getThemeObject(optionTheme), getThemeObject(specTheme));
57869
- }
57870
- }
57871
- this._currentTheme = preprocessSpecOrTheme('theme', finalTheme, finalTheme.colorScheme);
57872
- setPoptipTheme(preprocessSpecOrTheme('mark-theme', mergeSpec({}, (_b = this._currentTheme.component) === null || _b === void 0 ? void 0 : _b.poptip)));
57873
- (_c = this._compiler) === null || _c === void 0 ? void 0 : _c.setBackground(this._getBackground());
57990
+ const colorScheme = mergeThemeAndGet('colorScheme', this._currentThemeName, optionTheme, specTheme);
57991
+ this._currentChartLevelTheme = {
57992
+ colorScheme,
57993
+ background: mergeThemeAndGet('background', this._currentThemeName, optionTheme, specTheme, colorScheme),
57994
+ fontFamily: mergeThemeAndGet('fontFamily', this._currentThemeName, optionTheme, specTheme, colorScheme)
57995
+ };
57996
+ setPoptipTheme(preprocessSpecOrTheme('mark-theme', mergeThemeAndGet('component.poptip', this._currentThemeName, optionTheme, specTheme, colorScheme), colorScheme));
57997
+ (_b = this._compiler) === null || _b === void 0 ? void 0 : _b.setBackground(this._getBackground());
57874
57998
  }
57875
- _updateChartConfiguration(oldSpec) {
57999
+ _shouldChartResize(oldSpec) {
57876
58000
  var _a, _b;
57877
58001
  let resize = false;
57878
- if (this._spec.width !== oldSpec.width || this._spec.height !== oldSpec.height) {
58002
+ if (isNil$1(this._spec.width)) {
58003
+ this._spec.width = oldSpec.width;
58004
+ }
58005
+ else if (this._spec.width !== oldSpec.width) {
58006
+ resize = true;
58007
+ }
58008
+ if (isNil$1(this._spec.height)) {
58009
+ this._spec.height = oldSpec.height;
58010
+ }
58011
+ else if (this._spec.height !== oldSpec.height) {
57879
58012
  resize = true;
57880
58013
  }
57881
58014
  const lasAutoSize = this._autoSize;
@@ -57883,15 +58016,14 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
57883
58016
  if (this._autoSize !== lasAutoSize) {
57884
58017
  resize = true;
57885
58018
  }
57886
- this._updateCurrentTheme();
57887
58019
  return resize;
57888
58020
  }
57889
58021
  _getBackground() {
57890
58022
  const specBackground = typeof this._spec.background === 'string' ? this._spec.background : null;
57891
- return specBackground || this._currentTheme.background || this._option.background;
58023
+ return specBackground || this._currentChartLevelTheme.background || this._option.background;
57892
58024
  }
57893
58025
  getCurrentTheme() {
57894
- return this._currentTheme;
58026
+ return getThemeObject(this._currentThemeName);
57895
58027
  }
57896
58028
  getCurrentThemeName() {
57897
58029
  return this._currentThemeName;
@@ -57904,7 +58036,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
57904
58036
  yield this.updateCustomConfigAndRerender(() => {
57905
58037
  var _a;
57906
58038
  this._updateCurrentTheme(name);
57907
- (_a = this._chart) === null || _a === void 0 ? void 0 : _a.setCurrentTheme(this._currentTheme, true);
58039
+ (_a = this._chart) === null || _a === void 0 ? void 0 : _a.setCurrentTheme(true);
57908
58040
  return { change: true, reMake: false };
57909
58041
  });
57910
58042
  return this;
@@ -57917,7 +58049,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
57917
58049
  this.updateCustomConfigAndRerenderSync(() => {
57918
58050
  var _a;
57919
58051
  this._updateCurrentTheme(name);
57920
- (_a = this._chart) === null || _a === void 0 ? void 0 : _a.setCurrentTheme(this._currentTheme, true);
58052
+ (_a = this._chart) === null || _a === void 0 ? void 0 : _a.setCurrentTheme(true);
57921
58053
  return { change: true, reMake: false };
57922
58054
  });
57923
58055
  return this;
@@ -58208,7 +58340,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
58208
58340
  };
58209
58341
  registerVChartCore();
58210
58342
 
58211
- const version = "1.5.2";
58343
+ const version = "1.5.3-alpha.0";
58212
58344
 
58213
58345
  class ChartData {
58214
58346
  get dataList() {
@@ -58646,7 +58778,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
58646
58778
  return this._chartData;
58647
58779
  }
58648
58780
  constructor(spec, option) {
58649
- var _a, _b, _c, _d;
58781
+ var _a, _b, _c;
58650
58782
  super(option);
58651
58783
  this.type = 'chart';
58652
58784
  this.id = createID();
@@ -58770,12 +58902,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
58770
58902
  }
58771
58903
  return undefined;
58772
58904
  };
58773
- this._theme = option.getTheme();
58774
- this._paddingSpec = normalizeLayoutPaddingSpec((_a = spec.padding) !== null && _a !== void 0 ? _a : (_b = this._theme) === null || _b === void 0 ? void 0 : _b.padding);
58905
+ this._paddingSpec = normalizeLayoutPaddingSpec((_a = spec.padding) !== null && _a !== void 0 ? _a : getThemeFromOption('padding', this._option));
58775
58906
  this._event = new Event$1(option.eventDispatcher, option.mode);
58776
58907
  this._dataSet = option.dataSet;
58777
- this._chartData = new ChartData(this._dataSet, (_c = this._option) === null || _c === void 0 ? void 0 : _c.onError);
58778
- this._modelOption = Object.assign(Object.assign({}, option), { mode: this._option.mode, map: this._idMap, getChartLayoutRect: () => this._layoutRect, getChartViewRect: () => this._viewRect, getChart: () => this, globalScale: this._globalScale, onError: (_d = this._option) === null || _d === void 0 ? void 0 : _d.onError });
58908
+ this._chartData = new ChartData(this._dataSet, (_b = this._option) === null || _b === void 0 ? void 0 : _b.onError);
58909
+ this._modelOption = Object.assign(Object.assign({}, option), { mode: this._option.mode, map: this._idMap, getChartLayoutRect: () => this._layoutRect, getChartViewRect: () => this._viewRect, getChart: () => this, globalScale: this._globalScale, onError: (_c = this._option) === null || _c === void 0 ? void 0 : _c.onError });
58779
58910
  this._stack = new Stack(this);
58780
58911
  this._spec = spec;
58781
58912
  }
@@ -58885,7 +59016,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
58885
59016
  if (!region) {
58886
59017
  return;
58887
59018
  }
58888
- const series = Factory.createSeries(spec.type, spec, Object.assign(Object.assign({}, this._modelOption), { region, specIndex: index, specKey: 'series', getTheme: () => this._theme, globalScale: this._globalScale, getSeriesData: this._chartData.getSeriesData.bind(this._chartData), sourceDataList: this._chartData.dataList }));
59019
+ const series = Factory.createSeries(spec.type, spec, Object.assign(Object.assign({}, this._modelOption), { region, specIndex: index, specKey: 'series', globalScale: this._globalScale, getSeriesData: this._chartData.getSeriesData.bind(this._chartData), sourceDataList: this._chartData.dataList }));
58889
59020
  if (series) {
58890
59021
  series.created();
58891
59022
  this._series.push(series);
@@ -58900,7 +59031,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
58900
59031
  return this._series.find(x => x.id === id);
58901
59032
  }
58902
59033
  _createComponent(Component, spec) {
58903
- const component = Component.createComponent(spec, Object.assign(Object.assign({}, this._modelOption), { getAllRegions: this.getAllRegions, getRegionsInIndex: this.getRegionsInIndex, getRegionsInIds: this.getRegionsInIds, getRegionsInUserIdOrIndex: this.getRegionsInUserIdOrIndex, getTheme: () => this._theme, getAllSeries: this.getAllSeries, getSeriesInIndex: this.getSeriesInIndex, getSeriesInIds: this.getSeriesInIds, getSeriesInUserIdOrIndex: this.getSeriesInUserIdOrIndex, getAllComponents: this.getComponents, getComponentByIndex: this.getComponentByIndex, getComponentByUserId: this.getComponentByUserId, getComponentsByKey: this.getComponentsByKey }));
59034
+ const component = Component.createComponent(spec, Object.assign(Object.assign({}, this._modelOption), { getAllRegions: this.getAllRegions, getRegionsInIndex: this.getRegionsInIndex, getRegionsInIds: this.getRegionsInIds, getRegionsInUserIdOrIndex: this.getRegionsInUserIdOrIndex, getAllSeries: this.getAllSeries, getSeriesInIndex: this.getSeriesInIndex, getSeriesInIds: this.getSeriesInIds, getSeriesInUserIdOrIndex: this.getSeriesInUserIdOrIndex, getAllComponents: this.getComponents, getComponentByIndex: this.getComponentByIndex, getComponentByUserId: this.getComponentByUserId, getComponentsByKey: this.getComponentsByKey }));
58904
59035
  if (!component) {
58905
59036
  return;
58906
59037
  }
@@ -58979,10 +59110,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
58979
59110
  if (this._spec.zField || (this._spec.series && this._spec.series.some((s) => s.zField))) {
58980
59111
  use3dLayout = true;
58981
59112
  }
58982
- const layout = new (Factory.getLayoutInKey((_b = (_a = this._spec.layout) === null || _a === void 0 ? void 0 : _a.type) !== null && _b !== void 0 ? _b : (use3dLayout ? 'layout3d' : 'base')))(this._spec.layout, {
58983
- onError: (_c = this._option) === null || _c === void 0 ? void 0 : _c.onError
58984
- });
58985
- this._layoutFunc = layout.layoutItems.bind(layout);
59113
+ const constructor = Factory.getLayoutInKey((_b = (_a = this._spec.layout) === null || _a === void 0 ? void 0 : _a.type) !== null && _b !== void 0 ? _b : (use3dLayout ? 'layout3d' : 'base'));
59114
+ if (constructor) {
59115
+ const layout = new constructor(this._spec.layout, {
59116
+ onError: (_c = this._option) === null || _c === void 0 ? void 0 : _c.onError
59117
+ });
59118
+ this._layoutFunc = layout.layoutItems.bind(layout);
59119
+ }
58986
59120
  }
58987
59121
  }
58988
59122
  layout(params) {
@@ -59093,9 +59227,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
59093
59227
  return this._chartData.getSeriesData(id, index);
59094
59228
  }
59095
59229
  _transformSpecScale() {
59096
- var _a, _b, _c;
59230
+ var _a, _b;
59097
59231
  const scales = (_a = this._spec.scales) !== null && _a !== void 0 ? _a : [];
59098
59232
  let colorScaleSpec = scales.find(s => s.id === 'color');
59233
+ const colorScheme = this.getColorScheme();
59099
59234
  if (!colorScaleSpec) {
59100
59235
  colorScaleSpec = {
59101
59236
  type: 'ordinal',
@@ -59107,12 +59242,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
59107
59242
  if (this._spec.color) {
59108
59243
  const colorSpec = this._spec.color;
59109
59244
  if (isArray$1(colorSpec)) {
59110
- colorScaleSpec.range = colorSpec.map(color => { var _a; return getActualColor(color, (_a = this._theme) === null || _a === void 0 ? void 0 : _a.colorScheme); });
59245
+ colorScaleSpec.range = colorSpec.map(color => getActualColor(color, colorScheme));
59111
59246
  }
59112
59247
  else {
59113
59248
  const tempSpec = colorSpec;
59114
59249
  if (tempSpec.range) {
59115
- tempSpec.range = tempSpec.range.map(color => { var _a; return getActualColor(color, (_a = this._theme) === null || _a === void 0 ? void 0 : _a.colorScheme); });
59250
+ tempSpec.range = tempSpec.range.map(color => getActualColor(color, colorScheme));
59116
59251
  }
59117
59252
  Object.prototype.hasOwnProperty.call(tempSpec, 'type') && (colorScaleSpec.type = tempSpec.type);
59118
59253
  Object.prototype.hasOwnProperty.call(tempSpec, 'domain') && (colorScaleSpec.domain = tempSpec.domain);
@@ -59123,7 +59258,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
59123
59258
  }
59124
59259
  }
59125
59260
  if (!((_b = colorScaleSpec.range) === null || _b === void 0 ? void 0 : _b.length)) {
59126
- colorScaleSpec.range = getDataScheme((_c = this._theme) === null || _c === void 0 ? void 0 : _c.colorScheme);
59261
+ colorScaleSpec.range = getDataScheme(colorScheme);
59127
59262
  colorScaleSpec.rangeTheme = true;
59128
59263
  }
59129
59264
  return scales;
@@ -59145,10 +59280,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
59145
59280
  mergeUpdateResult(result, this._globalScale.updateSpec(this._transformSpecScale()));
59146
59281
  }
59147
59282
  updateGlobalScaleTheme() {
59148
- var _a;
59149
59283
  const colorSpec = this._globalScale.getScaleSpec('color');
59284
+ const colorScheme = this.getColorScheme();
59150
59285
  if (colorSpec.rangeTheme) {
59151
- colorSpec.range = getDataScheme((_a = this._theme) === null || _a === void 0 ? void 0 : _a.colorScheme);
59286
+ colorSpec.range = getDataScheme(colorScheme);
59152
59287
  this._globalScale.getScale('color').range(colorSpec.range);
59153
59288
  }
59154
59289
  }
@@ -59202,8 +59337,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
59202
59337
  return result;
59203
59338
  }
59204
59339
  updateChartConfig(result, oldSpec) {
59205
- var _a, _b;
59206
- this._paddingSpec = normalizeLayoutPaddingSpec((_a = this._spec.padding) !== null && _a !== void 0 ? _a : (_b = this._theme) === null || _b === void 0 ? void 0 : _b.padding);
59340
+ var _a;
59341
+ this._paddingSpec = normalizeLayoutPaddingSpec((_a = this._spec.padding) !== null && _a !== void 0 ? _a : getThemeFromOption('padding', this._option));
59207
59342
  this._updateLayoutRect(this._viewBox);
59208
59343
  if (!isEqual$1(this._spec.background, oldSpec.background)) {
59209
59344
  result.reMake = true;
@@ -59280,7 +59415,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
59280
59415
  label: spec.label,
59281
59416
  seriesStyle: spec.seriesStyle,
59282
59417
  animation: spec.animation,
59283
- animationThreshold: (_a = spec.animationThreshold) !== null && _a !== void 0 ? _a : this._theme.animationThreshold,
59418
+ animationThreshold: (_a = spec.animationThreshold) !== null && _a !== void 0 ? _a : getThemeFromOption('animationThreshold', this._option),
59284
59419
  animationAppear: spec.animationAppear,
59285
59420
  animationDisappear: spec.animationDisappear,
59286
59421
  animationEnter: spec.animationEnter,
@@ -59320,31 +59455,27 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
59320
59455
  this._layoutRect.y = this.padding.top;
59321
59456
  this._event.emit(ChartEvent.layoutRectUpdate, {});
59322
59457
  }
59323
- getCurrentTheme() {
59324
- return this._theme;
59325
- }
59326
- setCurrentTheme(theme, reInit = true) {
59327
- this._theme = theme;
59458
+ setCurrentTheme(reInit = true) {
59328
59459
  this.setLayoutTag(true);
59329
59460
  this.transformSpec(this._spec);
59330
59461
  this.updateGlobalScaleTheme();
59331
59462
  this.setRegionTheme(reInit);
59332
- this.setComponentTheme(theme, reInit);
59333
- this.setSeriesTheme(theme, reInit);
59463
+ this.setComponentTheme(reInit);
59464
+ this.setSeriesTheme(reInit);
59334
59465
  }
59335
59466
  setRegionTheme(reInit = true) {
59336
- this._regions.forEach(r => {
59337
- reInit ? r.reInit() : r.setTheme();
59338
- });
59467
+ this._regions.forEach((r) => __awaiter$h(this, void 0, void 0, function* () {
59468
+ yield r.setCurrentTheme(reInit);
59469
+ }));
59339
59470
  }
59340
- setComponentTheme(theme, reInit = true) {
59341
- this._components.forEach(c => {
59342
- reInit ? c.setCurrentTheme(theme.component[c.type], true) : c.setTheme(theme.component[c.type]);
59343
- });
59471
+ setComponentTheme(reInit = true) {
59472
+ this._components.forEach((c) => __awaiter$h(this, void 0, void 0, function* () {
59473
+ yield c.setCurrentTheme(reInit);
59474
+ }));
59344
59475
  }
59345
- setSeriesTheme(theme, reInit = true) {
59476
+ setSeriesTheme(reInit = true) {
59346
59477
  this._series.forEach((s) => __awaiter$h(this, void 0, void 0, function* () {
59347
- reInit ? yield s.setCurrentTheme(theme.series[s.type], true) : s.setTheme(theme.series[s.type]);
59478
+ yield s.setCurrentTheme(reInit);
59348
59479
  }));
59349
59480
  }
59350
59481
  clear() {
@@ -59628,6 +59759,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
59628
59759
  }
59629
59760
  }
59630
59761
  }
59762
+ getColorScheme() {
59763
+ var _a, _b, _c;
59764
+ return ((_c = (_b = (_a = this._option).getThemeConfig) === null || _b === void 0 ? void 0 : _b.call(_a).chartLevelTheme) !== null && _c !== void 0 ? _c : defaultChartLevelTheme).colorScheme;
59765
+ }
59631
59766
  }
59632
59767
 
59633
59768
  class CartesianChart extends BaseChart {
@@ -60772,7 +60907,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
60772
60907
  this._viewDataMap = new Map();
60773
60908
  this._viewDataFilter = null;
60774
60909
  this._data = null;
60775
- this._stack = false;
60776
60910
  this._percent = false;
60777
60911
  this._stackOffsetSilhouette = false;
60778
60912
  this._invalidType = 'break';
@@ -60835,6 +60969,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
60835
60969
  if (isValid$1(this._spec.stackValue)) {
60836
60970
  this._stack = true;
60837
60971
  }
60972
+ if (isNil$1(this._stack) && this._supportStack && this._seriesField) {
60973
+ this._stack = true;
60974
+ }
60838
60975
  if (isValid$1(this._spec.invalidType)) {
60839
60976
  this._invalidType = this._spec.invalidType;
60840
60977
  }
@@ -61400,12 +61537,15 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
61400
61537
  var _a;
61401
61538
  return this._getSeriesInfo((_a = this._seriesField) !== null && _a !== void 0 ? _a : DEFAULT_DATA_SERIES_FIELD, this.getSeriesKeys());
61402
61539
  }
61403
- getDefaultColorScale() {
61540
+ _getDefaultColorScale() {
61404
61541
  var _a, _b;
61405
61542
  const colorDomain = this.getDefaultColorDomain();
61406
- const colorRange = getDataScheme(this._option.getTheme().colorScheme, this.type);
61543
+ const colorRange = this._getDataScheme();
61407
61544
  return (_b = (_a = new ColorOrdinalScale().domain(colorDomain)).range) === null || _b === void 0 ? void 0 : _b.call(_a, colorRange);
61408
61545
  }
61546
+ _getDataScheme() {
61547
+ return getDataScheme(this.getColorScheme(), this.type);
61548
+ }
61409
61549
  getDefaultColorDomain() {
61410
61550
  var _a, _b;
61411
61551
  return this._seriesField ? (_b = (_a = this._viewDataStatistics) === null || _a === void 0 ? void 0 : _a.latestData[this._seriesField]) === null || _b === void 0 ? void 0 : _b.values : [];
@@ -61413,7 +61553,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
61413
61553
  getColorAttribute() {
61414
61554
  var _a, _b;
61415
61555
  return {
61416
- scale: (_a = this._option.globalScale.getScale('color')) !== null && _a !== void 0 ? _a : this.getDefaultColorScale(),
61556
+ scale: (_a = this._option.globalScale.getScale('color')) !== null && _a !== void 0 ? _a : this._getDefaultColorScale(),
61417
61557
  field: (_b = this._seriesField) !== null && _b !== void 0 ? _b : DEFAULT_DATA_SERIES_FIELD
61418
61558
  };
61419
61559
  }
@@ -61428,30 +61568,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
61428
61568
  }
61429
61569
  onMarkTreePositionUpdate(marks) {
61430
61570
  }
61431
- setCurrentTheme(theme, noRender) {
61432
- return __awaiter$h(this, void 0, void 0, function* () {
61433
- const modifyConfig = () => {
61434
- this.reInit(theme);
61435
- return { change: true, reMake: false };
61436
- };
61437
- if (noRender) {
61438
- modifyConfig();
61439
- }
61440
- else {
61441
- yield this._option.globalInstance.updateCustomConfigAndRerender(modifyConfig);
61442
- }
61443
- });
61444
- }
61445
- _initTheme(theme) {
61446
- var _a;
61447
- const globalTheme = this._option.getTheme();
61448
- if (theme) {
61449
- super._initTheme(theme);
61450
- }
61451
- else {
61452
- super._initTheme((_a = globalTheme.series[this.type]) !== null && _a !== void 0 ? _a : {});
61453
- }
61454
- this._mergeThemeToSpec();
61571
+ _getTheme() {
61572
+ return preprocessSpecOrTheme('theme', getThemeFromOption(`series.${this.type}`, this._option), this.getColorScheme(), this.type);
61455
61573
  }
61456
61574
  _createMark(markInfo, option = {}) {
61457
61575
  var _a, _b, _c, _d;
@@ -61594,6 +61712,19 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
61594
61712
  };
61595
61713
  this._direction = Direction.vertical;
61596
61714
  this._sortDataByAxis = false;
61715
+ this._getInvalidDefined = (datum) => {
61716
+ if (this._xAxisHelper.isContinuous) {
61717
+ if (!couldBeValidNumber(datum[this._specXField[0]])) {
61718
+ return false;
61719
+ }
61720
+ }
61721
+ if (this._yAxisHelper.isContinuous) {
61722
+ if (!couldBeValidNumber(datum[this._specYField[0]])) {
61723
+ return false;
61724
+ }
61725
+ }
61726
+ return true;
61727
+ };
61597
61728
  }
61598
61729
  _buildScaleConfig() {
61599
61730
  this._scaleConfig = {
@@ -61779,6 +61910,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
61779
61910
  this.setFieldX(this._spec.xField);
61780
61911
  this.setFieldY(this._spec.yField);
61781
61912
  this.setFieldZ(this._spec.zField);
61913
+ this._specXField = array(this._spec.xField);
61914
+ this._specYField = array(this._spec.yField);
61782
61915
  if (isValid$1(this._spec.direction)) {
61783
61916
  this._direction = this._spec.direction;
61784
61917
  }
@@ -62392,7 +62525,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
62392
62525
  constructor() {
62393
62526
  super(...arguments);
62394
62527
  this.type = SeriesTypeEnum.area;
62395
- this._stack = true;
62528
+ this._supportStack = true;
62396
62529
  this._sortDataByAxis = false;
62397
62530
  }
62398
62531
  setAttrFromSpec() {
@@ -62715,7 +62848,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
62715
62848
  this.type = SeriesTypeEnum.bar;
62716
62849
  this._barMarkName = SeriesMarkNameEnum.bar;
62717
62850
  this._barMarkType = MarkTypeEnum.rect;
62718
- this._stack = true;
62851
+ this._supportStack = true;
62719
62852
  this._bandPosition = 0;
62720
62853
  }
62721
62854
  initMark() {
@@ -63143,7 +63276,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
63143
63276
  super(...arguments);
63144
63277
  this.type = SeriesTypeEnum.scatter;
63145
63278
  this._invalidType = 'zero';
63146
- this._getInvalidDefined = (datum) => couldBeValidNumber(datum[this.getStackValueField()]) && couldBeValidNumber(datum[this.getDimensionField()[0]]);
63147
63279
  }
63148
63280
  setAttrFromSpec() {
63149
63281
  super.setAttrFromSpec();
@@ -63870,6 +64002,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
63870
64002
  }
63871
64003
  }
63872
64004
 
64005
+ function getComponentThemeFromOption(type, option) {
64006
+ return getThemeFromOption(`component.${type}`, option);
64007
+ }
64008
+
63873
64009
  const DEFAULT_TITLE_STYLE = {
63874
64010
  left: {
63875
64011
  textAlign: 'center',
@@ -63913,19 +64049,29 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
63913
64049
  const orient = spec === null || spec === void 0 ? void 0 : spec.orient;
63914
64050
  return orient === 'angle' || orient === 'radius';
63915
64051
  }
63916
- const getCartesianAxisTheme = (orient, type, theme) => {
63917
- var _a, _b;
63918
- const { axisBand, axisLinear, axisX, axisY, axis } = (_a = theme.component) !== null && _a !== void 0 ? _a : {};
63919
- const axisTypeTheme = (_b = (type === 'band' ? axisBand : ['linear', 'log', 'symlog'].includes(type) ? axisLinear : {})) !== null && _b !== void 0 ? _b : {};
63920
- const axisTheme = isXAxis(orient) ? axisX : axisY;
63921
- return mergeSpec({}, axis, axisTypeTheme, axisTheme);
63922
- };
63923
- const getPolarAxisTheme = (orient, type, theme) => {
63924
- var _a, _b;
63925
- const { axisBand, axisLinear, axisAngle, axisRadius, axis } = (_a = theme.component) !== null && _a !== void 0 ? _a : {};
63926
- const axisTypeTheme = (_b = (type === 'band' ? axisBand : type === 'linear' ? axisLinear : {})) !== null && _b !== void 0 ? _b : {};
63927
- const axisTheme = orient === 'angle' ? axisAngle : axisRadius;
63928
- return mergeSpec({}, axis, axisTypeTheme, axisTheme);
64052
+ const getCartesianAxisTheme = (orient, type, option) => {
64053
+ var _a;
64054
+ const axisTypeTheme = (_a = (type === 'band'
64055
+ ? getComponentThemeFromOption('axisBand', option)
64056
+ : ['linear', 'log', 'symlog'].includes(type)
64057
+ ? getComponentThemeFromOption('axisLinear', option)
64058
+ : {})) !== null && _a !== void 0 ? _a : {};
64059
+ const axisTheme = isXAxis(orient)
64060
+ ? getComponentThemeFromOption('axisX', option)
64061
+ : getComponentThemeFromOption('axisY', option);
64062
+ return mergeSpec({}, getComponentThemeFromOption('axis', option), axisTypeTheme, axisTheme);
64063
+ };
64064
+ const getPolarAxisTheme = (orient, type, option) => {
64065
+ var _a;
64066
+ const axisTypeTheme = (_a = (type === 'band'
64067
+ ? getComponentThemeFromOption('axisBand', option)
64068
+ : type === 'linear'
64069
+ ? getComponentThemeFromOption('axisLinear', option)
64070
+ : {})) !== null && _a !== void 0 ? _a : {};
64071
+ const axisTheme = orient === 'angle'
64072
+ ? getComponentThemeFromOption('axisAngle', option)
64073
+ : getComponentThemeFromOption('axisRadius', option);
64074
+ return mergeSpec({}, getComponentThemeFromOption('axis', option), axisTypeTheme, axisTheme);
63929
64075
  };
63930
64076
 
63931
64077
  function limitTagInBounds(shape, bounds) {
@@ -63971,10 +64117,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
63971
64117
  }
63972
64118
  return null;
63973
64119
  }
63974
- const getCartesianCrosshairTheme = (theme, chart) => {
64120
+ const getCartesianCrosshairTheme = (option, chart) => {
63975
64121
  var _a;
63976
64122
  const axes = chart.getAllComponents().filter(component => component.type.includes('Axis'));
63977
- const { bandField, linearField, xField, yField } = (_a = theme.component.crosshair) !== null && _a !== void 0 ? _a : {};
64123
+ const { bandField, linearField, xField, yField } = (_a = getComponentThemeFromOption(ComponentTypeEnum.crosshair, option)) !== null && _a !== void 0 ? _a : {};
63978
64124
  const xAxis = axes.find(axis => isXAxis(axis.getOrient()));
63979
64125
  let newXField;
63980
64126
  if (isValid$1(xAxis)) {
@@ -63996,10 +64142,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
63996
64142
  yField: newYField
63997
64143
  };
63998
64144
  };
63999
- const getPolarCrosshairTheme = (theme, chart) => {
64145
+ const getPolarCrosshairTheme = (option, chart) => {
64000
64146
  var _a;
64001
64147
  const axes = chart.getAllComponents().filter(component => component.type.includes('Axis'));
64002
- const { bandField, linearField, categoryField, valueField } = (_a = theme.component.crosshair) !== null && _a !== void 0 ? _a : {};
64148
+ const { bandField, linearField, categoryField, valueField } = (_a = getComponentThemeFromOption(ComponentTypeEnum.crosshair, option)) !== null && _a !== void 0 ? _a : {};
64003
64149
  const angleAxis = axes.find(axis => axis.getOrient() === 'angle');
64004
64150
  let newAngleField;
64005
64151
  if (isValid$1(angleAxis)) {
@@ -64043,36 +64189,36 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
64043
64189
  return spec.orient === 'bottom' || spec.orient === 'top' ? 'horizontal' : 'vertical';
64044
64190
  }
64045
64191
 
64046
- function getComponentThemeFromGlobalTheme(type, theme, componentSpec, chart) {
64047
- var _a, _b, _c;
64192
+ function getComponentThemeFromGlobalTheme(type, option, componentSpec) {
64193
+ var _a;
64194
+ const chart = (_a = option.getChart) === null || _a === void 0 ? void 0 : _a.call(option);
64048
64195
  switch (type) {
64049
64196
  case ComponentTypeEnum.cartesianBandAxis:
64050
- return getCartesianAxisTheme(getOrient(componentSpec), 'band', theme);
64197
+ return getCartesianAxisTheme(getOrient(componentSpec), 'band', option);
64051
64198
  case ComponentTypeEnum.cartesianLinearAxis:
64052
- return getCartesianAxisTheme(getOrient(componentSpec), 'linear', theme);
64199
+ return getCartesianAxisTheme(getOrient(componentSpec), 'linear', option);
64053
64200
  case ComponentTypeEnum.cartesianLogAxis:
64054
- return getCartesianAxisTheme(getOrient(componentSpec), 'log', theme);
64201
+ return getCartesianAxisTheme(getOrient(componentSpec), 'log', option);
64055
64202
  case ComponentTypeEnum.cartesianSymlogAxis:
64056
- return getCartesianAxisTheme(getOrient(componentSpec), 'symlog', theme);
64203
+ return getCartesianAxisTheme(getOrient(componentSpec), 'symlog', option);
64057
64204
  case ComponentTypeEnum.cartesianAxis:
64058
64205
  case ComponentTypeEnum.cartesianTimeAxis:
64059
- return getCartesianAxisTheme(getOrient(componentSpec), undefined, theme);
64206
+ return getCartesianAxisTheme(getOrient(componentSpec), undefined, option);
64060
64207
  case ComponentTypeEnum.polarBandAxis:
64061
- return getPolarAxisTheme(componentSpec.orient, 'band', theme);
64208
+ return getPolarAxisTheme(componentSpec.orient, 'band', option);
64062
64209
  case ComponentTypeEnum.polarLinearAxis:
64063
- return getPolarAxisTheme(componentSpec.orient, 'linear', theme);
64210
+ return getPolarAxisTheme(componentSpec.orient, 'linear', option);
64064
64211
  case ComponentTypeEnum.polarAxis:
64065
- return getPolarAxisTheme(componentSpec.orient, undefined, theme);
64212
+ return getPolarAxisTheme(componentSpec.orient, undefined, option);
64066
64213
  case ComponentTypeEnum.cartesianCrosshair:
64067
- return getCartesianCrosshairTheme(theme, chart);
64214
+ return getCartesianCrosshairTheme(option, chart);
64068
64215
  case ComponentTypeEnum.polarCrosshair:
64069
- return getPolarCrosshairTheme(theme, chart);
64216
+ return getPolarCrosshairTheme(option, chart);
64070
64217
  case ComponentTypeEnum.colorLegend:
64071
- return (_a = theme.component) === null || _a === void 0 ? void 0 : _a.colorLegend[getLayout(componentSpec)];
64072
64218
  case ComponentTypeEnum.sizeLegend:
64073
- return (_b = theme.component) === null || _b === void 0 ? void 0 : _b.sizeLegend[getLayout(componentSpec)];
64219
+ return getThemeFromOption(`component.${type}.${getLayout(componentSpec)}`, option);
64074
64220
  default:
64075
- return (_c = theme.component) === null || _c === void 0 ? void 0 : _c[type];
64221
+ return getComponentThemeFromOption(type, option);
64076
64222
  }
64077
64223
  }
64078
64224
 
@@ -64120,29 +64266,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
64120
64266
  y: markEventParams.event.viewY - this.getLayoutStartPoint().y
64121
64267
  };
64122
64268
  }
64123
- setCurrentTheme(theme, noRender) {
64124
- return __awaiter$h(this, void 0, void 0, function* () {
64125
- const modifyConfig = () => {
64126
- this.reInit(theme);
64127
- return { change: true, reMake: false };
64128
- };
64129
- if (noRender) {
64130
- modifyConfig();
64131
- }
64132
- else {
64133
- yield this._option.globalInstance.updateCustomConfigAndRerender(modifyConfig);
64134
- }
64135
- });
64136
- }
64137
- _initTheme(theme) {
64138
- const globalTheme = this._option.getTheme();
64139
- if (theme) {
64140
- super._initTheme(theme);
64141
- }
64142
- else {
64143
- super._initTheme(getComponentThemeFromGlobalTheme(this.type, globalTheme, this._originalSpec, this._option.getChart()));
64144
- }
64145
- this._mergeThemeToSpec();
64269
+ _getTheme() {
64270
+ return preprocessSpecOrTheme('theme', getComponentThemeFromGlobalTheme(this.type, this._option, this._originalSpec), this.getColorScheme());
64146
64271
  }
64147
64272
  _mergeThemeToSpec() {
64148
64273
  super._mergeThemeToSpec();
@@ -64977,7 +65102,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
64977
65102
  fill: (datum) => {
64978
65103
  var _a, _b, _c, _d;
64979
65104
  if (isValid$1(datum[(_a = this._seriesField) !== null && _a !== void 0 ? _a : DEFAULT_DATA_SERIES_FIELD])) {
64980
- return ((_b = this._option.globalScale.getScale('color')) !== null && _b !== void 0 ? _b : this.getDefaultColorScale()).scale(datum[(_c = this._seriesField) !== null && _c !== void 0 ? _c : DEFAULT_DATA_SERIES_FIELD]);
65105
+ return ((_b = this._option.globalScale.getScale('color')) !== null && _b !== void 0 ? _b : this._getDefaultColorScale()).scale(datum[(_c = this._seriesField) !== null && _c !== void 0 ? _c : DEFAULT_DATA_SERIES_FIELD]);
64981
65106
  }
64982
65107
  return (_d = this._spec) === null || _d === void 0 ? void 0 : _d.defaultFillColor;
64983
65108
  },
@@ -65200,6 +65325,19 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
65200
65325
  this._angleField = [];
65201
65326
  this._radiusField = [];
65202
65327
  this._sortDataByAxis = false;
65328
+ this._getInvalidDefined = (datum) => {
65329
+ if (this.angleAxisHelper.isContinuous) {
65330
+ if (!couldBeValidNumber(datum[this._angleField[0]])) {
65331
+ return false;
65332
+ }
65333
+ }
65334
+ if (this.radiusAxisHelper.isContinuous) {
65335
+ if (!couldBeValidNumber(datum[this._radiusField[0]])) {
65336
+ return false;
65337
+ }
65338
+ }
65339
+ return true;
65340
+ };
65203
65341
  }
65204
65342
  get outerRadius() {
65205
65343
  return this._outerRadius;
@@ -66233,7 +66371,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
66233
66371
  constructor() {
66234
66372
  super(...arguments);
66235
66373
  this.type = SeriesTypeEnum.rose;
66236
- this._stack = true;
66374
+ this._supportStack = true;
66237
66375
  this._roseMark = null;
66238
66376
  this._labelMark = null;
66239
66377
  }
@@ -67121,7 +67259,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
67121
67259
  getColorAttribute() {
67122
67260
  var _a, _b, _c;
67123
67261
  return {
67124
- scale: (_a = this._option.globalScale.getScale('color')) !== null && _a !== void 0 ? _a : this.getDefaultColorScale(),
67262
+ scale: (_a = this._option.globalScale.getScale('color')) !== null && _a !== void 0 ? _a : this._getDefaultColorScale(),
67125
67263
  field: (_c = (_b = this._dotTypeField) !== null && _b !== void 0 ? _b : this._seriesField) !== null && _c !== void 0 ? _c : DEFAULT_DATA_SERIES_FIELD
67126
67264
  };
67127
67265
  }
@@ -67538,7 +67676,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
67538
67676
  getColorAttribute() {
67539
67677
  var _a, _b, _c;
67540
67678
  return {
67541
- scale: (_a = this._option.globalScale.getScale('color')) !== null && _a !== void 0 ? _a : this.getDefaultColorScale(),
67679
+ scale: (_a = this._option.globalScale.getScale('color')) !== null && _a !== void 0 ? _a : this._getDefaultColorScale(),
67542
67680
  field: (_c = (_b = this._seriesGroupField) !== null && _b !== void 0 ? _b : this._seriesField) !== null && _c !== void 0 ? _c : DEFAULT_DATA_SERIES_FIELD
67543
67681
  };
67544
67682
  }
@@ -67551,7 +67689,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
67551
67689
  : this._seriesField
67552
67690
  ? (_c = this._viewDataStatistics) === null || _c === void 0 ? void 0 : _c.latestData[this._seriesField].values
67553
67691
  : [];
67554
- const colorRange = getDataScheme(this._option.getTheme().colorScheme, this.type);
67692
+ const colorRange = this._getDataScheme();
67555
67693
  return new ColorOrdinalScale().domain(colorDomain).range(colorRange);
67556
67694
  }
67557
67695
  getDotColorAttribute() {
@@ -67820,7 +67958,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
67820
67958
  if (!region) {
67821
67959
  return;
67822
67960
  }
67823
- const series = Factory.createSeries(spec.type, spec, Object.assign(Object.assign({}, this._modelOption), { region, specIndex: index, specKey: 'series', getTheme: () => this._theme, globalScale: this._globalScale }));
67961
+ const series = Factory.createSeries(spec.type, spec, Object.assign(Object.assign({}, this._modelOption), { region, specIndex: index, specKey: 'series', globalScale: this._globalScale }));
67824
67962
  if (series) {
67825
67963
  series.created();
67826
67964
  this._series.push(series);
@@ -67962,7 +68100,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
67962
68100
  class ProgressLikeSeries extends PolarSeries {
67963
68101
  constructor() {
67964
68102
  super(...arguments);
67965
- this._stack = true;
68103
+ this._supportStack = true;
67966
68104
  this._arcGroupMark = null;
67967
68105
  this._getAngleValueStart = (datum) => {
67968
68106
  const axis = this._getAngleAxis();
@@ -68108,7 +68246,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
68108
68246
  x: 0,
68109
68247
  y: 0,
68110
68248
  path: () => {
68111
- var _a;
68112
68249
  const axis = this._getAngleAxis();
68113
68250
  if (this._isTickMaskVisible(axis)) {
68114
68251
  const { tickMask } = this._spec;
@@ -68116,7 +68253,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
68116
68253
  const subTickData = this._getAngleAxisSubTickData(axis);
68117
68254
  const { x, y } = this.angleAxisHelper.center();
68118
68255
  const radius = this._computeLayoutRadius();
68119
- const markStyle = preprocessSpecOrTheme('mark-spec', style, (_a = this._option.getTheme()) === null || _a === void 0 ? void 0 : _a.colorScheme, this.type);
68256
+ const markStyle = preprocessSpecOrTheme('mark-spec', style, this.getColorScheme(), this.type);
68120
68257
  return subTickData.map(({ value }) => {
68121
68258
  const pos = this.angleAxisHelper.dataToPosition([value]) + degreeToRadian(offsetAngle);
68122
68259
  const angleUnit = degreeToRadian(angle) / 2;
@@ -68306,14 +68443,16 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
68306
68443
  x: () => this.angleAxisHelper.center().x,
68307
68444
  y: () => this.angleAxisHelper.center().y,
68308
68445
  startAngle: () => {
68446
+ const fieldName = this._stack ? STACK_FIELD_START : this._angleField[0];
68309
68447
  const scale = this.angleAxisHelper.getScale(0);
68310
68448
  const domain = scale.domain();
68311
- return this._getAngleValueStart({ [STACK_FIELD_START]: domain[0] });
68449
+ return this._getAngleValueStart({ [fieldName]: domain[0] });
68312
68450
  },
68313
68451
  endAngle: () => {
68452
+ const fieldName = this._stack ? STACK_FIELD_END : this._angleField[0];
68314
68453
  const scale = this.angleAxisHelper.getScale(0);
68315
68454
  const domain = scale.domain();
68316
- return this._getAngleValueEnd({ [STACK_FIELD_END]: domain[domain.length - 1] });
68455
+ return this._getAngleValueEnd({ [fieldName]: domain[domain.length - 1] });
68317
68456
  },
68318
68457
  innerRadius: this._getRadiusValueStart,
68319
68458
  outerRadius: this._getRadiusValueEnd,
@@ -68380,6 +68519,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
68380
68519
  this._pinMark = null;
68381
68520
  this._pointerMark = null;
68382
68521
  this._pinBackgroundMark = null;
68522
+ this._stack = false;
68383
68523
  }
68384
68524
  setAttrFromSpec() {
68385
68525
  var _a;
@@ -68680,7 +68820,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
68680
68820
  return series;
68681
68821
  }
68682
68822
  transformSpec(spec) {
68683
- var _a, _b, _c, _d;
68823
+ var _a, _b, _c, _d, _e;
68684
68824
  super.transformSpec(spec);
68685
68825
  let backgroundSeries = (_a = spec.series) === null || _a === void 0 ? void 0 : _a.find((series) => series.type === SeriesTypeEnum.gauge || series.type === SeriesTypeEnum.circularProgress);
68686
68826
  if (isNil$1(backgroundSeries)) {
@@ -68689,6 +68829,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
68689
68829
  if (isNil$1(backgroundSeries.radiusField) && isNil$1(backgroundSeries.categoryField)) {
68690
68830
  backgroundSeries.radiusField = (_d = (_c = spec.radiusField) !== null && _c !== void 0 ? _c : spec.categoryField) !== null && _d !== void 0 ? _d : spec.seriesField;
68691
68831
  }
68832
+ if (isNil$1(backgroundSeries.valueField) && isNil$1(backgroundSeries.angleField)) {
68833
+ backgroundSeries.valueField = (_e = spec.valueField) !== null && _e !== void 0 ? _e : spec.angleField;
68834
+ }
68692
68835
  }
68693
68836
  if (spec.series.length === 1) {
68694
68837
  spec.series.push(backgroundSeries);
@@ -68886,7 +69029,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
68886
69029
  }
68887
69030
  }
68888
69031
  initMarkStyle() {
68889
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
69032
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
68890
69033
  const wordMark = this._wordMark;
68891
69034
  const fillingWordMark = this._fillingWordMark;
68892
69035
  const textField = ((_a = this._spec.word) === null || _a === void 0 ? void 0 : _a.formatMethod) ? WORD_CLOUD_TEXT : this._nameField;
@@ -68906,7 +69049,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
68906
69049
  visible: (datum) => !datum.isFillingWord
68907
69050
  }, 'normal', AttributeLevel.Series);
68908
69051
  this.setMarkStyle(wordMark, {
68909
- fontFamily: (_d = (_c = (_b = this._spec.word) === null || _b === void 0 ? void 0 : _b.style) === null || _c === void 0 ? void 0 : _c.fontFamily) !== null && _d !== void 0 ? _d : (_f = (_e = this._option) === null || _e === void 0 ? void 0 : _e.getTheme()) === null || _f === void 0 ? void 0 : _f.fontFamily
69052
+ fontFamily: (_d = (_c = (_b = this._spec.word) === null || _b === void 0 ? void 0 : _b.style) === null || _c === void 0 ? void 0 : _c.fontFamily) !== null && _d !== void 0 ? _d : (_e = this._getChartLevelTheme()) === null || _e === void 0 ? void 0 : _e.fontFamily
68910
69053
  }, 'normal', AttributeLevel.User_Mark);
68911
69054
  }
68912
69055
  if (fillingWordMark) {
@@ -68925,7 +69068,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
68925
69068
  visible: (datum) => datum.isFillingWord
68926
69069
  }, 'normal', AttributeLevel.Series);
68927
69070
  this.setMarkStyle(fillingWordMark, {
68928
- fontFamily: (_j = (_h = (_g = this._spec.word) === null || _g === void 0 ? void 0 : _g.style) === null || _h === void 0 ? void 0 : _h.fontFamily) !== null && _j !== void 0 ? _j : (_l = (_k = this._option) === null || _k === void 0 ? void 0 : _k.getTheme()) === null || _l === void 0 ? void 0 : _l.fontFamily
69071
+ fontFamily: (_h = (_g = (_f = this._spec.word) === null || _f === void 0 ? void 0 : _f.style) === null || _g === void 0 ? void 0 : _g.fontFamily) !== null && _h !== void 0 ? _h : (_j = this._getChartLevelTheme()) === null || _j === void 0 ? void 0 : _j.fontFamily
68929
69072
  }, 'normal', AttributeLevel.User_Mark);
68930
69073
  }
68931
69074
  this._trigger.registerMark(wordMark);
@@ -68952,7 +69095,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
68952
69095
  var _a, _b, _c, _d, _e;
68953
69096
  const colorList = isFillingWord ? this._wordCloudShapeConfig.fillingColorList : this._colorList;
68954
69097
  const colorDomain = field ? (_a = this.getViewData()) === null || _a === void 0 ? void 0 : _a.latestData.map((datum) => datum[field]) : [];
68955
- const colorRange = (_c = colorList !== null && colorList !== void 0 ? colorList : (_b = this._option.globalScale.getScale('color')) === null || _b === void 0 ? void 0 : _b.range()) !== null && _c !== void 0 ? _c : getDataScheme(this._option.getTheme().colorScheme, this.type);
69098
+ const colorRange = (_c = colorList !== null && colorList !== void 0 ? colorList : (_b = this._option.globalScale.getScale('color')) === null || _b === void 0 ? void 0 : _b.range()) !== null && _c !== void 0 ? _c : this._getDataScheme();
68956
69099
  return (_e = (_d = new ColorOrdinalScale().domain(colorDomain)).range) === null || _e === void 0 ? void 0 : _e.call(_d, colorRange);
68957
69100
  }
68958
69101
  getWordColorAttribute(field, isFillingWord) {
@@ -68970,7 +69113,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
68970
69113
  return (datum) => colorList[0];
68971
69114
  }
68972
69115
  compile() {
68973
- 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, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32;
69116
+ 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, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29;
68974
69117
  super.compile();
68975
69118
  const { width, height } = this._region.getLayoutRect();
68976
69119
  if (!isValidNumber$1(width) || !isValidNumber$1(height) || !(height > 0 && width > 0)) {
@@ -69031,9 +69174,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
69031
69174
  fontSizeRange: this._fontSizeRange,
69032
69175
  padding: this._fontPadding,
69033
69176
  rotate: { field: WORD_CLOUD_ANGLE },
69034
- fontFamily: (_g = (_d = this._fontFamilyField) !== null && _d !== void 0 ? _d : (_f = (_e = this._spec.word) === null || _e === void 0 ? void 0 : _e.style) === null || _f === void 0 ? void 0 : _f.fontFamily) !== null && _g !== void 0 ? _g : (_j = (_h = this._option) === null || _h === void 0 ? void 0 : _h.getTheme()) === null || _j === void 0 ? void 0 : _j.fontFamily,
69177
+ fontFamily: (_g = (_d = this._fontFamilyField) !== null && _d !== void 0 ? _d : (_f = (_e = this._spec.word) === null || _e === void 0 ? void 0 : _e.style) === null || _f === void 0 ? void 0 : _f.fontFamily) !== null && _g !== void 0 ? _g : (_h = this._getChartLevelTheme()) === null || _h === void 0 ? void 0 : _h.fontFamily,
69035
69178
  fontWeight: fontWeightField ? { field: fontWeightField } : valueField ? { field: WORD_CLOUD_WEIGHT } : null,
69036
- fontStyle: (_k = this._fontStyleField) !== null && _k !== void 0 ? _k : (_m = (_l = this._spec.word) === null || _l === void 0 ? void 0 : _l.style) === null || _m === void 0 ? void 0 : _m.fontStyle,
69179
+ fontStyle: (_j = this._fontStyleField) !== null && _j !== void 0 ? _j : (_l = (_k = this._spec.word) === null || _k === void 0 ? void 0 : _k.style) === null || _l === void 0 ? void 0 : _l.fontStyle,
69037
69180
  randomVisible: this._random,
69038
69181
  clip: this._wordCloudConfig.drawOutOfBound === 'clip',
69039
69182
  shrink: this._wordCloudConfig.zoomToFit.shrink,
@@ -69050,39 +69193,39 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
69050
69193
  dataIndexKey: DEFAULT_DATA_KEY,
69051
69194
  size: [width, height],
69052
69195
  shape: this._maskShape,
69053
- text: { field: ((_o = this._spec.word) === null || _o === void 0 ? void 0 : _o.formatMethod) ? WORD_CLOUD_TEXT : this._nameField },
69196
+ text: { field: ((_m = this._spec.word) === null || _m === void 0 ? void 0 : _m.formatMethod) ? WORD_CLOUD_TEXT : this._nameField },
69054
69197
  fontSize: valueField ? { field: valueField } : this._fontSizeRange[0],
69055
69198
  fontSizeRange: this._fontSizeRange,
69056
69199
  padding: this._fontPadding,
69057
69200
  rotateList: rotateAngles,
69058
- fontFamily: (_s = (_p = this._fontFamilyField) !== null && _p !== void 0 ? _p : (_r = (_q = this._spec.word) === null || _q === void 0 ? void 0 : _q.style) === null || _r === void 0 ? void 0 : _r.fontFamily) !== null && _s !== void 0 ? _s : (_u = (_t = this._option) === null || _t === void 0 ? void 0 : _t.getTheme()) === null || _u === void 0 ? void 0 : _u.fontFamily,
69201
+ fontFamily: (_r = (_o = this._fontFamilyField) !== null && _o !== void 0 ? _o : (_q = (_p = this._spec.word) === null || _p === void 0 ? void 0 : _p.style) === null || _q === void 0 ? void 0 : _q.fontFamily) !== null && _r !== void 0 ? _r : (_s = this._getChartLevelTheme()) === null || _s === void 0 ? void 0 : _s.fontFamily,
69059
69202
  fontWeight: fontWeightField ? { field: fontWeightField } : valueField ? { field: WORD_CLOUD_WEIGHT } : null,
69060
- fontStyle: (_v = this._fontStyleField) !== null && _v !== void 0 ? _v : (_x = (_w = this._spec.word) === null || _w === void 0 ? void 0 : _w.style) === null || _x === void 0 ? void 0 : _x.fontStyle,
69061
- fillingFontFamily: (_2 = (_z = (_y = this._wordCloudShapeConfig) === null || _y === void 0 ? void 0 : _y.fillingFontFamilyField) !== null && _z !== void 0 ? _z : (_1 = (_0 = this._spec.word) === null || _0 === void 0 ? void 0 : _0.style) === null || _1 === void 0 ? void 0 : _1.fontFamily) !== null && _2 !== void 0 ? _2 : (_4 = (_3 = this._option) === null || _3 === void 0 ? void 0 : _3.getTheme()) === null || _4 === void 0 ? void 0 : _4.fontFamily,
69203
+ fontStyle: (_t = this._fontStyleField) !== null && _t !== void 0 ? _t : (_v = (_u = this._spec.word) === null || _u === void 0 ? void 0 : _u.style) === null || _v === void 0 ? void 0 : _v.fontStyle,
69204
+ fillingFontFamily: (_0 = (_x = (_w = this._wordCloudShapeConfig) === null || _w === void 0 ? void 0 : _w.fillingFontFamilyField) !== null && _x !== void 0 ? _x : (_z = (_y = this._spec.word) === null || _y === void 0 ? void 0 : _y.style) === null || _z === void 0 ? void 0 : _z.fontFamily) !== null && _0 !== void 0 ? _0 : (_1 = this._getChartLevelTheme()) === null || _1 === void 0 ? void 0 : _1.fontFamily,
69062
69205
  fillingPadding: this._fillingFontPadding,
69063
- fillingFontStyle: (_6 = (_5 = this._wordCloudShapeConfig) === null || _5 === void 0 ? void 0 : _5.fillingFontStyleField) !== null && _6 !== void 0 ? _6 : (_8 = (_7 = this._spec.word) === null || _7 === void 0 ? void 0 : _7.style) === null || _8 === void 0 ? void 0 : _8.fontStyle,
69064
- fillingFontWeight: (_10 = (_9 = this._wordCloudShapeConfig) === null || _9 === void 0 ? void 0 : _9.fillingFontWeightField) !== null && _10 !== void 0 ? _10 : (_12 = (_11 = this._spec.word) === null || _11 === void 0 ? void 0 : _11.style) === null || _12 === void 0 ? void 0 : _12.fontWeight,
69206
+ fillingFontStyle: (_3 = (_2 = this._wordCloudShapeConfig) === null || _2 === void 0 ? void 0 : _2.fillingFontStyleField) !== null && _3 !== void 0 ? _3 : (_5 = (_4 = this._spec.word) === null || _4 === void 0 ? void 0 : _4.style) === null || _5 === void 0 ? void 0 : _5.fontStyle,
69207
+ fillingFontWeight: (_7 = (_6 = this._wordCloudShapeConfig) === null || _6 === void 0 ? void 0 : _6.fillingFontWeightField) !== null && _7 !== void 0 ? _7 : (_9 = (_8 = this._spec.word) === null || _8 === void 0 ? void 0 : _8.style) === null || _9 === void 0 ? void 0 : _9.fontWeight,
69065
69208
  fillingRotateList: fillingRotateAngles,
69066
- fillingTimes: (_13 = this._wordCloudShapeConfig) === null || _13 === void 0 ? void 0 : _13.fillingTimes,
69067
- fillingXStep: (_14 = this._wordCloudShapeConfig) === null || _14 === void 0 ? void 0 : _14.fillingXStep,
69068
- fillingYStep: (_15 = this._wordCloudShapeConfig) === null || _15 === void 0 ? void 0 : _15.fillingYStep,
69069
- fillingXRatioStep: (_16 = this._wordCloudShapeConfig) === null || _16 === void 0 ? void 0 : _16.fillingXRatioStep,
69070
- fillingYRatioStep: (_17 = this._wordCloudShapeConfig) === null || _17 === void 0 ? void 0 : _17.fillingYRatioStep,
69071
- fillingInitialOpacity: (_18 = this._wordCloudShapeConfig) === null || _18 === void 0 ? void 0 : _18.fillingInitialOpacity,
69072
- fillingDeltaOpacity: (_19 = this._wordCloudShapeConfig) === null || _19 === void 0 ? void 0 : _19.fillingDeltaOpacity,
69073
- fillingInitialFontSize: (_20 = this._wordCloudShapeConfig) === null || _20 === void 0 ? void 0 : _20.fillingInitialFontSize,
69074
- fillingDeltaFontSize: (_21 = this._wordCloudShapeConfig) === null || _21 === void 0 ? void 0 : _21.fillingDeltaFontSize,
69075
- ratio: (_22 = this._wordCloudShapeConfig) === null || _22 === void 0 ? void 0 : _22.ratio,
69076
- fillingRatio: (_23 = this._wordCloudShapeConfig) === null || _23 === void 0 ? void 0 : _23.fillingRatio,
69077
- removeWhiteBorder: (_24 = this._wordCloudShapeConfig) === null || _24 === void 0 ? void 0 : _24.removeWhiteBorder,
69078
- textLayoutTimes: (_25 = this._wordCloudShapeConfig) === null || _25 === void 0 ? void 0 : _25.textLayoutTimes,
69079
- fontSizeShrinkFactor: (_26 = this._wordCloudShapeConfig) === null || _26 === void 0 ? void 0 : _26.fontSizeShrinkFactor,
69080
- stepFactor: (_27 = this._wordCloudShapeConfig) === null || _27 === void 0 ? void 0 : _27.stepFactor,
69081
- layoutMode: (_28 = this._wordCloudShapeConfig) === null || _28 === void 0 ? void 0 : _28.layoutMode,
69082
- importantWordCount: (_29 = this._wordCloudShapeConfig) === null || _29 === void 0 ? void 0 : _29.importantWordCount,
69083
- globalShinkLimit: (_30 = this._wordCloudShapeConfig) === null || _30 === void 0 ? void 0 : _30.globalShinkLimit,
69084
- fontSizeEnlargeFactor: (_31 = this._wordCloudShapeConfig) === null || _31 === void 0 ? void 0 : _31.fontSizeEnlargeFactor,
69085
- fillingDeltaFontSizeFactor: (_32 = this._wordCloudShapeConfig) === null || _32 === void 0 ? void 0 : _32.fillingDeltaFontSizeFactor
69209
+ fillingTimes: (_10 = this._wordCloudShapeConfig) === null || _10 === void 0 ? void 0 : _10.fillingTimes,
69210
+ fillingXStep: (_11 = this._wordCloudShapeConfig) === null || _11 === void 0 ? void 0 : _11.fillingXStep,
69211
+ fillingYStep: (_12 = this._wordCloudShapeConfig) === null || _12 === void 0 ? void 0 : _12.fillingYStep,
69212
+ fillingXRatioStep: (_13 = this._wordCloudShapeConfig) === null || _13 === void 0 ? void 0 : _13.fillingXRatioStep,
69213
+ fillingYRatioStep: (_14 = this._wordCloudShapeConfig) === null || _14 === void 0 ? void 0 : _14.fillingYRatioStep,
69214
+ fillingInitialOpacity: (_15 = this._wordCloudShapeConfig) === null || _15 === void 0 ? void 0 : _15.fillingInitialOpacity,
69215
+ fillingDeltaOpacity: (_16 = this._wordCloudShapeConfig) === null || _16 === void 0 ? void 0 : _16.fillingDeltaOpacity,
69216
+ fillingInitialFontSize: (_17 = this._wordCloudShapeConfig) === null || _17 === void 0 ? void 0 : _17.fillingInitialFontSize,
69217
+ fillingDeltaFontSize: (_18 = this._wordCloudShapeConfig) === null || _18 === void 0 ? void 0 : _18.fillingDeltaFontSize,
69218
+ ratio: (_19 = this._wordCloudShapeConfig) === null || _19 === void 0 ? void 0 : _19.ratio,
69219
+ fillingRatio: (_20 = this._wordCloudShapeConfig) === null || _20 === void 0 ? void 0 : _20.fillingRatio,
69220
+ removeWhiteBorder: (_21 = this._wordCloudShapeConfig) === null || _21 === void 0 ? void 0 : _21.removeWhiteBorder,
69221
+ textLayoutTimes: (_22 = this._wordCloudShapeConfig) === null || _22 === void 0 ? void 0 : _22.textLayoutTimes,
69222
+ fontSizeShrinkFactor: (_23 = this._wordCloudShapeConfig) === null || _23 === void 0 ? void 0 : _23.fontSizeShrinkFactor,
69223
+ stepFactor: (_24 = this._wordCloudShapeConfig) === null || _24 === void 0 ? void 0 : _24.stepFactor,
69224
+ layoutMode: (_25 = this._wordCloudShapeConfig) === null || _25 === void 0 ? void 0 : _25.layoutMode,
69225
+ importantWordCount: (_26 = this._wordCloudShapeConfig) === null || _26 === void 0 ? void 0 : _26.importantWordCount,
69226
+ globalShinkLimit: (_27 = this._wordCloudShapeConfig) === null || _27 === void 0 ? void 0 : _27.globalShinkLimit,
69227
+ fontSizeEnlargeFactor: (_28 = this._wordCloudShapeConfig) === null || _28 === void 0 ? void 0 : _28.fontSizeEnlargeFactor,
69228
+ fillingDeltaFontSizeFactor: (_29 = this._wordCloudShapeConfig) === null || _29 === void 0 ? void 0 : _29.fillingDeltaFontSizeFactor
69086
69229
  });
69087
69230
  }
69088
69231
  this._data.getProduct().transform(wordCloudTransforms);
@@ -71180,7 +71323,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
71180
71323
  this.type = SeriesTypeEnum.wordCloud3d;
71181
71324
  }
71182
71325
  compile() {
71183
- 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, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33;
71326
+ 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, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30;
71184
71327
  super.compile();
71185
71328
  const wordCloudTransforms = [];
71186
71329
  const valueField = this._valueField;
@@ -71238,9 +71381,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
71238
71381
  fontSizeRange: this._fontSizeRange,
71239
71382
  padding: this._fontPadding,
71240
71383
  rotate: { field: WORD_CLOUD_ANGLE },
71241
- fontFamily: (_h = (_e = this._fontFamilyField) !== null && _e !== void 0 ? _e : (_g = (_f = this._spec.word) === null || _f === void 0 ? void 0 : _f.style) === null || _g === void 0 ? void 0 : _g.fontFamily) !== null && _h !== void 0 ? _h : (_k = (_j = this._option) === null || _j === void 0 ? void 0 : _j.getTheme()) === null || _k === void 0 ? void 0 : _k.fontFamily,
71384
+ fontFamily: (_h = (_e = this._fontFamilyField) !== null && _e !== void 0 ? _e : (_g = (_f = this._spec.word) === null || _f === void 0 ? void 0 : _f.style) === null || _g === void 0 ? void 0 : _g.fontFamily) !== null && _h !== void 0 ? _h : (_j = this._getChartLevelTheme()) === null || _j === void 0 ? void 0 : _j.fontFamily,
71242
71385
  fontWeight: fontWeightField ? { field: fontWeightField } : valueField ? { field: WORD_CLOUD_WEIGHT } : null,
71243
- fontStyle: (_l = this._fontStyleField) !== null && _l !== void 0 ? _l : (_o = (_m = this._spec.word) === null || _m === void 0 ? void 0 : _m.style) === null || _o === void 0 ? void 0 : _o.fontStyle,
71386
+ fontStyle: (_k = this._fontStyleField) !== null && _k !== void 0 ? _k : (_m = (_l = this._spec.word) === null || _l === void 0 ? void 0 : _l.style) === null || _m === void 0 ? void 0 : _m.fontStyle,
71244
71387
  depth_3d: this._spec.depth_3d,
71245
71388
  randomVisible: this._random,
71246
71389
  clip: this._wordCloudConfig.drawOutOfBound === 'clip',
@@ -71257,42 +71400,42 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
71257
71400
  type: 'wordcloudShape',
71258
71401
  size: [this._region.getLayoutRect().width, this._region.getLayoutRect().height],
71259
71402
  shape: this._maskShape,
71260
- postProjection: (_p = this._spec.postProjection) !== null && _p !== void 0 ? _p : 'StereographicProjection',
71403
+ postProjection: (_o = this._spec.postProjection) !== null && _o !== void 0 ? _o : 'StereographicProjection',
71261
71404
  dataIndexKey: DEFAULT_DATA_KEY,
71262
71405
  text: { field: textField },
71263
71406
  fontSize: valueField ? { field: valueField } : this._fontSizeRange[0],
71264
71407
  fontSizeRange: this._fontSizeRange,
71265
71408
  padding: this._fontPadding,
71266
71409
  rotateList: rotateAngles,
71267
- fontFamily: (_t = (_q = this._fontFamilyField) !== null && _q !== void 0 ? _q : (_s = (_r = this._spec.word) === null || _r === void 0 ? void 0 : _r.style) === null || _s === void 0 ? void 0 : _s.fontFamily) !== null && _t !== void 0 ? _t : (_v = (_u = this._option) === null || _u === void 0 ? void 0 : _u.getTheme()) === null || _v === void 0 ? void 0 : _v.fontFamily,
71410
+ fontFamily: (_s = (_p = this._fontFamilyField) !== null && _p !== void 0 ? _p : (_r = (_q = this._spec.word) === null || _q === void 0 ? void 0 : _q.style) === null || _r === void 0 ? void 0 : _r.fontFamily) !== null && _s !== void 0 ? _s : (_t = this._getChartLevelTheme()) === null || _t === void 0 ? void 0 : _t.fontFamily,
71268
71411
  fontWeight: fontWeightField ? { field: fontWeightField } : valueField ? { field: WORD_CLOUD_WEIGHT } : null,
71269
- fontStyle: (_w = this._fontStyleField) !== null && _w !== void 0 ? _w : (_y = (_x = this._spec.word) === null || _x === void 0 ? void 0 : _x.style) === null || _y === void 0 ? void 0 : _y.fontStyle,
71412
+ fontStyle: (_u = this._fontStyleField) !== null && _u !== void 0 ? _u : (_w = (_v = this._spec.word) === null || _v === void 0 ? void 0 : _v.style) === null || _w === void 0 ? void 0 : _w.fontStyle,
71270
71413
  depth_3d: this._spec.depth_3d,
71271
- fillingFontFamily: (_3 = (_0 = (_z = this._wordCloudShapeConfig) === null || _z === void 0 ? void 0 : _z.fillingFontFamilyField) !== null && _0 !== void 0 ? _0 : (_2 = (_1 = this._spec.word) === null || _1 === void 0 ? void 0 : _1.style) === null || _2 === void 0 ? void 0 : _2.fontFamily) !== null && _3 !== void 0 ? _3 : (_5 = (_4 = this._option) === null || _4 === void 0 ? void 0 : _4.getTheme()) === null || _5 === void 0 ? void 0 : _5.fontFamily,
71414
+ fillingFontFamily: (_1 = (_y = (_x = this._wordCloudShapeConfig) === null || _x === void 0 ? void 0 : _x.fillingFontFamilyField) !== null && _y !== void 0 ? _y : (_0 = (_z = this._spec.word) === null || _z === void 0 ? void 0 : _z.style) === null || _0 === void 0 ? void 0 : _0.fontFamily) !== null && _1 !== void 0 ? _1 : (_2 = this._getChartLevelTheme()) === null || _2 === void 0 ? void 0 : _2.fontFamily,
71272
71415
  fillingPadding: this._fillingFontPadding,
71273
- fillingFontStyle: (_7 = (_6 = this._wordCloudShapeConfig) === null || _6 === void 0 ? void 0 : _6.fillingFontStyleField) !== null && _7 !== void 0 ? _7 : (_9 = (_8 = this._spec.word) === null || _8 === void 0 ? void 0 : _8.style) === null || _9 === void 0 ? void 0 : _9.fontStyle,
71274
- fillingFontWeight: (_11 = (_10 = this._wordCloudShapeConfig) === null || _10 === void 0 ? void 0 : _10.fillingFontWeightField) !== null && _11 !== void 0 ? _11 : (_13 = (_12 = this._spec.word) === null || _12 === void 0 ? void 0 : _12.style) === null || _13 === void 0 ? void 0 : _13.fontWeight,
71416
+ fillingFontStyle: (_4 = (_3 = this._wordCloudShapeConfig) === null || _3 === void 0 ? void 0 : _3.fillingFontStyleField) !== null && _4 !== void 0 ? _4 : (_6 = (_5 = this._spec.word) === null || _5 === void 0 ? void 0 : _5.style) === null || _6 === void 0 ? void 0 : _6.fontStyle,
71417
+ fillingFontWeight: (_8 = (_7 = this._wordCloudShapeConfig) === null || _7 === void 0 ? void 0 : _7.fillingFontWeightField) !== null && _8 !== void 0 ? _8 : (_10 = (_9 = this._spec.word) === null || _9 === void 0 ? void 0 : _9.style) === null || _10 === void 0 ? void 0 : _10.fontWeight,
71275
71418
  fillingRotateList: fillingRotateAngles,
71276
- fillingTimes: (_14 = this._wordCloudShapeConfig) === null || _14 === void 0 ? void 0 : _14.fillingTimes,
71277
- fillingXStep: (_15 = this._wordCloudShapeConfig) === null || _15 === void 0 ? void 0 : _15.fillingXStep,
71278
- fillingYStep: (_16 = this._wordCloudShapeConfig) === null || _16 === void 0 ? void 0 : _16.fillingYStep,
71279
- fillingXRatioStep: (_17 = this._wordCloudShapeConfig) === null || _17 === void 0 ? void 0 : _17.fillingXRatioStep,
71280
- fillingYRatioStep: (_18 = this._wordCloudShapeConfig) === null || _18 === void 0 ? void 0 : _18.fillingYRatioStep,
71281
- fillingInitialOpacity: (_19 = this._wordCloudShapeConfig) === null || _19 === void 0 ? void 0 : _19.fillingInitialOpacity,
71282
- fillingDeltaOpacity: (_20 = this._wordCloudShapeConfig) === null || _20 === void 0 ? void 0 : _20.fillingDeltaOpacity,
71283
- fillingInitialFontSize: (_21 = this._wordCloudShapeConfig) === null || _21 === void 0 ? void 0 : _21.fillingInitialFontSize,
71284
- fillingDeltaFontSize: (_22 = this._wordCloudShapeConfig) === null || _22 === void 0 ? void 0 : _22.fillingDeltaFontSize,
71285
- ratio: (_23 = this._wordCloudShapeConfig) === null || _23 === void 0 ? void 0 : _23.ratio,
71286
- fillingRatio: (_24 = this._wordCloudShapeConfig) === null || _24 === void 0 ? void 0 : _24.fillingRatio,
71287
- removeWhiteBorder: (_25 = this._wordCloudShapeConfig) === null || _25 === void 0 ? void 0 : _25.removeWhiteBorder,
71288
- textLayoutTimes: (_26 = this._wordCloudShapeConfig) === null || _26 === void 0 ? void 0 : _26.textLayoutTimes,
71289
- fontSizeShrinkFactor: (_27 = this._wordCloudShapeConfig) === null || _27 === void 0 ? void 0 : _27.fontSizeShrinkFactor,
71290
- stepFactor: (_28 = this._wordCloudShapeConfig) === null || _28 === void 0 ? void 0 : _28.stepFactor,
71291
- layoutMode: (_29 = this._wordCloudShapeConfig) === null || _29 === void 0 ? void 0 : _29.layoutMode,
71292
- importantWordCount: (_30 = this._wordCloudShapeConfig) === null || _30 === void 0 ? void 0 : _30.importantWordCount,
71293
- globalShinkLimit: (_31 = this._wordCloudShapeConfig) === null || _31 === void 0 ? void 0 : _31.globalShinkLimit,
71294
- fontSizeEnlargeFactor: (_32 = this._wordCloudShapeConfig) === null || _32 === void 0 ? void 0 : _32.fontSizeEnlargeFactor,
71295
- fillingDeltaFontSizeFactor: (_33 = this._wordCloudShapeConfig) === null || _33 === void 0 ? void 0 : _33.fillingDeltaFontSizeFactor
71419
+ fillingTimes: (_11 = this._wordCloudShapeConfig) === null || _11 === void 0 ? void 0 : _11.fillingTimes,
71420
+ fillingXStep: (_12 = this._wordCloudShapeConfig) === null || _12 === void 0 ? void 0 : _12.fillingXStep,
71421
+ fillingYStep: (_13 = this._wordCloudShapeConfig) === null || _13 === void 0 ? void 0 : _13.fillingYStep,
71422
+ fillingXRatioStep: (_14 = this._wordCloudShapeConfig) === null || _14 === void 0 ? void 0 : _14.fillingXRatioStep,
71423
+ fillingYRatioStep: (_15 = this._wordCloudShapeConfig) === null || _15 === void 0 ? void 0 : _15.fillingYRatioStep,
71424
+ fillingInitialOpacity: (_16 = this._wordCloudShapeConfig) === null || _16 === void 0 ? void 0 : _16.fillingInitialOpacity,
71425
+ fillingDeltaOpacity: (_17 = this._wordCloudShapeConfig) === null || _17 === void 0 ? void 0 : _17.fillingDeltaOpacity,
71426
+ fillingInitialFontSize: (_18 = this._wordCloudShapeConfig) === null || _18 === void 0 ? void 0 : _18.fillingInitialFontSize,
71427
+ fillingDeltaFontSize: (_19 = this._wordCloudShapeConfig) === null || _19 === void 0 ? void 0 : _19.fillingDeltaFontSize,
71428
+ ratio: (_20 = this._wordCloudShapeConfig) === null || _20 === void 0 ? void 0 : _20.ratio,
71429
+ fillingRatio: (_21 = this._wordCloudShapeConfig) === null || _21 === void 0 ? void 0 : _21.fillingRatio,
71430
+ removeWhiteBorder: (_22 = this._wordCloudShapeConfig) === null || _22 === void 0 ? void 0 : _22.removeWhiteBorder,
71431
+ textLayoutTimes: (_23 = this._wordCloudShapeConfig) === null || _23 === void 0 ? void 0 : _23.textLayoutTimes,
71432
+ fontSizeShrinkFactor: (_24 = this._wordCloudShapeConfig) === null || _24 === void 0 ? void 0 : _24.fontSizeShrinkFactor,
71433
+ stepFactor: (_25 = this._wordCloudShapeConfig) === null || _25 === void 0 ? void 0 : _25.stepFactor,
71434
+ layoutMode: (_26 = this._wordCloudShapeConfig) === null || _26 === void 0 ? void 0 : _26.layoutMode,
71435
+ importantWordCount: (_27 = this._wordCloudShapeConfig) === null || _27 === void 0 ? void 0 : _27.importantWordCount,
71436
+ globalShinkLimit: (_28 = this._wordCloudShapeConfig) === null || _28 === void 0 ? void 0 : _28.globalShinkLimit,
71437
+ fontSizeEnlargeFactor: (_29 = this._wordCloudShapeConfig) === null || _29 === void 0 ? void 0 : _29.fontSizeEnlargeFactor,
71438
+ fillingDeltaFontSizeFactor: (_30 = this._wordCloudShapeConfig) === null || _30 === void 0 ? void 0 : _30.fillingDeltaFontSizeFactor
71296
71439
  });
71297
71440
  }
71298
71441
  this._data.getProduct().transform(wordCloudTransforms);
@@ -71312,7 +71455,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
71312
71455
  }
71313
71456
  }
71314
71457
  initMarkStyle() {
71315
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
71458
+ var _a, _b, _c, _d, _e, _f, _g, _h;
71316
71459
  const wordMark = this._wordMark;
71317
71460
  const fillingWordMark = this._fillingWordMark;
71318
71461
  if (wordMark) {
@@ -71332,7 +71475,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
71332
71475
  visible: (datum) => !datum.isFillingWord
71333
71476
  }, 'normal', AttributeLevel.Series);
71334
71477
  this.setMarkStyle(wordMark, {
71335
- fontFamily: (_c = (_b = (_a = this._spec.word) === null || _a === void 0 ? void 0 : _a.style) === null || _b === void 0 ? void 0 : _b.fontFamily) !== null && _c !== void 0 ? _c : (_e = (_d = this._option) === null || _d === void 0 ? void 0 : _d.getTheme()) === null || _e === void 0 ? void 0 : _e.fontFamily
71478
+ fontFamily: (_c = (_b = (_a = this._spec.word) === null || _a === void 0 ? void 0 : _a.style) === null || _b === void 0 ? void 0 : _b.fontFamily) !== null && _c !== void 0 ? _c : (_d = this._getChartLevelTheme()) === null || _d === void 0 ? void 0 : _d.fontFamily
71336
71479
  }, 'normal', AttributeLevel.User_Mark);
71337
71480
  }
71338
71481
  if (fillingWordMark) {
@@ -71352,7 +71495,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
71352
71495
  visible: (datum) => datum.isFillingWord
71353
71496
  }, 'normal', AttributeLevel.Series);
71354
71497
  this.setMarkStyle(fillingWordMark, {
71355
- fontFamily: (_h = (_g = (_f = this._spec.word) === null || _f === void 0 ? void 0 : _f.style) === null || _g === void 0 ? void 0 : _g.fontFamily) !== null && _h !== void 0 ? _h : (_k = (_j = this._option) === null || _j === void 0 ? void 0 : _j.getTheme()) === null || _k === void 0 ? void 0 : _k.fontFamily
71498
+ fontFamily: (_g = (_f = (_e = this._spec.word) === null || _e === void 0 ? void 0 : _e.style) === null || _f === void 0 ? void 0 : _f.fontFamily) !== null && _g !== void 0 ? _g : (_h = this._getChartLevelTheme()) === null || _h === void 0 ? void 0 : _h.fontFamily
71356
71499
  }, 'normal', AttributeLevel.User_Mark);
71357
71500
  }
71358
71501
  this._trigger.registerMark(wordMark);
@@ -75672,7 +75815,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
75672
75815
  constructor() {
75673
75816
  super(...arguments);
75674
75817
  this.type = SeriesTypeEnum.waterfall;
75675
- this._stack = true;
75818
+ this._stack = false;
75676
75819
  this._leaderLineMark = null;
75677
75820
  this._stackLabelMark = null;
75678
75821
  this._labelMark = null;
@@ -75690,7 +75833,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
75690
75833
  }
75691
75834
  setAttrFromSpec() {
75692
75835
  super.setAttrFromSpec();
75693
- this._stack = false;
75836
+ this.setValueFieldToStack();
75694
75837
  this._fieldX = [this._fieldX[0]];
75695
75838
  this._fieldY = [this._fieldY[0]];
75696
75839
  if (isNil$1(this._seriesField)) {
@@ -77625,7 +77768,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
77625
77768
  return;
77626
77769
  }
77627
77770
  const selectedDatum = originalDatum
77628
- ? originalDatum.filter((entry, index) => entry.parents.some((par) => { var _a; return par.key === curLinkDatum.target && ((_a = entry.parents[index - 1]) === null || _a === void 0 ? void 0 : _a.key) === curLinkDatum.source; }))
77771
+ ? originalDatum.filter((entry) => {
77772
+ const parentKeysList = entry.parents.map((item) => item.key);
77773
+ return parentKeysList.includes(curLinkDatum.source) && parentKeysList.includes(curLinkDatum.target);
77774
+ })
77629
77775
  : null;
77630
77776
  if (selectedDatum && selectedDatum.length) {
77631
77777
  if (!highlightNodes.includes(linkDatum.source)) {
@@ -78115,11 +78261,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
78115
78261
  const colorDomain = !isNil$1((_g = (_f = this._option.globalScale.getScale('color')) === null || _f === void 0 ? void 0 : _f.domain()) === null || _g === void 0 ? void 0 : _g[0])
78116
78262
  ? this._option.globalScale.getScale('color').domain()
78117
78263
  : this.getNodeList();
78118
- let colorRange = (_j = (_h = this._option.globalScale.getScale('color')) === null || _h === void 0 ? void 0 : _h.range()) !== null && _j !== void 0 ? _j : getDataScheme(this._option.getTheme().colorScheme, this.type);
78264
+ let colorRange = (_j = (_h = this._option.globalScale.getScale('color')) === null || _h === void 0 ? void 0 : _h.range()) !== null && _j !== void 0 ? _j : this._getDataScheme();
78119
78265
  if (((_k = this._option.globalScale.getScale('color')) === null || _k === void 0 ? void 0 : _k.domain().length) === 0 ||
78120
78266
  isNil$1(this._option.globalScale.getScale('color').domain()[0])) {
78121
78267
  if (colorDomain.length > 10) {
78122
- colorRange = (_l = getDataScheme(this._option.getTheme().colorScheme, this.type)[1]) === null || _l === void 0 ? void 0 : _l.scheme;
78268
+ colorRange = (_l = this._getDataScheme()[1]) === null || _l === void 0 ? void 0 : _l.scheme;
78123
78269
  }
78124
78270
  }
78125
78271
  const ordinalScale = new ColorOrdinalScale();
@@ -78303,8 +78449,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
78303
78449
  }
78304
78450
  }
78305
78451
 
78306
- const rangeAreaSeriesMark = Object.assign({}, areaSeriesMark);
78307
-
78308
78452
  class RangeAreaSeries extends AreaSeries {
78309
78453
  constructor() {
78310
78454
  super(...arguments);
@@ -78536,7 +78680,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
78536
78680
  getColorAttribute() {
78537
78681
  var _a;
78538
78682
  return {
78539
- scale: (_a = this._option.globalScale.getScale('color')) !== null && _a !== void 0 ? _a : this.getDefaultColorScale(),
78683
+ scale: (_a = this._option.globalScale.getScale('color')) !== null && _a !== void 0 ? _a : this._getDefaultColorScale(),
78540
78684
  field: this.getFieldValue[0]
78541
78685
  };
78542
78686
  }
@@ -83356,14 +83500,14 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
83356
83500
  return Object.assign(Object.assign({}, DEFAULT_OPTIONS), { offsetX: (_a = offset === null || offset === void 0 ? void 0 : offset.x) !== null && _a !== void 0 ? _a : DEFAULT_OPTIONS.offsetX, offsetY: (_b = offset === null || offset === void 0 ? void 0 : offset.y) !== null && _b !== void 0 ? _b : DEFAULT_OPTIONS.offsetY });
83357
83501
  }
83358
83502
  _getTooltipBoxSize(actualTooltip, changePositionOnly) {
83359
- var _a, _b, _c, _d, _e, _f;
83503
+ var _a, _b, _c, _d, _e, _f, _g;
83360
83504
  if (!changePositionOnly || isNil$1(this._attributes)) {
83361
- const globalTheme = (_b = (_a = this._chartOption).getTheme) === null || _b === void 0 ? void 0 : _b.call(_a);
83362
- this._attributes = getTooltipAttributes(actualTooltip, this._component.getSpec(), globalTheme);
83505
+ const { chartLevelTheme = defaultChartLevelTheme } = (_c = (_b = (_a = this._chartOption).getThemeConfig) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : {};
83506
+ this._attributes = getTooltipAttributes(actualTooltip, this._component.getSpec(), chartLevelTheme);
83363
83507
  }
83364
83508
  return {
83365
- width: (_d = (_c = this._attributes) === null || _c === void 0 ? void 0 : _c.panel) === null || _d === void 0 ? void 0 : _d.width,
83366
- height: (_f = (_e = this._attributes) === null || _e === void 0 ? void 0 : _e.panel) === null || _f === void 0 ? void 0 : _f.height
83509
+ width: (_e = (_d = this._attributes) === null || _d === void 0 ? void 0 : _d.panel) === null || _e === void 0 ? void 0 : _e.width,
83510
+ height: (_g = (_f = this._attributes) === null || _f === void 0 ? void 0 : _f.panel) === null || _g === void 0 ? void 0 : _g.height
83367
83511
  };
83368
83512
  }
83369
83513
  _getParentElement(spec) {
@@ -89069,7 +89213,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
89069
89213
  this._linkedOutOfBrushElementsMap = {};
89070
89214
  this._needInitOutState = true;
89071
89215
  this._cacheInteractiveRangeAttrs = [];
89072
- this._needEnablePickable = true;
89216
+ this._needEnablePickable = false;
89073
89217
  }
89074
89218
  init() {
89075
89219
  var _a, _b;