@visactor/vchart 2.1.0-alpha.5 → 2.1.0-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/build/es5/index.js +1 -1
  2. package/build/index.es.js +344 -227
  3. package/build/index.js +344 -227
  4. package/build/index.min.js +2 -2
  5. package/build/tsconfig.tsbuildinfo +1 -1
  6. package/cjs/chart/base/base-chart.d.ts +1 -0
  7. package/cjs/chart/base/base-chart.js +10 -2
  8. package/cjs/chart/base/base-chart.js.map +1 -1
  9. package/cjs/chart/gauge/gauge-transformer.js +3 -2
  10. package/cjs/chart/gauge/gauge-transformer.js.map +1 -1
  11. package/cjs/chart/polar/polar-transformer.js +1 -1
  12. package/cjs/chart/polar/polar-transformer.js.map +1 -1
  13. package/cjs/chart/polar/progress-like/progress-like-transformer.js +1 -1
  14. package/cjs/chart/polar/progress-like/progress-like-transformer.js.map +1 -1
  15. package/cjs/chart/progress/circular/circular-progress-transformer.js +3 -2
  16. package/cjs/chart/progress/circular/circular-progress-transformer.js.map +1 -1
  17. package/cjs/chart/progress/linear/linear-progress-transformer.js +1 -1
  18. package/cjs/chart/progress/linear/linear-progress-transformer.js.map +1 -1
  19. package/cjs/chart/radar/radar-transformer.js +3 -2
  20. package/cjs/chart/radar/radar-transformer.js.map +1 -1
  21. package/cjs/chart/range-area/range-area-transformer.js +2 -2
  22. package/cjs/chart/range-area/range-area-transformer.js.map +1 -1
  23. package/cjs/chart/rose/rose-transformer.js +2 -1
  24. package/cjs/chart/rose/rose-transformer.js.map +1 -1
  25. package/cjs/component/axis/polar/band-axis.d.ts +2 -0
  26. package/cjs/component/axis/polar/band-axis.js +3 -0
  27. package/cjs/component/axis/polar/band-axis.js.map +1 -1
  28. package/cjs/component/axis/polar/linear-axis.js +3 -0
  29. package/cjs/component/axis/polar/linear-axis.js.map +1 -1
  30. package/cjs/component/indicator/indicator.js +2 -2
  31. package/cjs/component/indicator/indicator.js.map +1 -1
  32. package/cjs/component/indicator/util.d.ts +4 -3
  33. package/cjs/component/indicator/util.js +1 -1
  34. package/cjs/component/indicator/util.js.map +1 -1
  35. package/cjs/core/expression-function.js +1 -1
  36. package/cjs/core/factory.js +1 -1
  37. package/cjs/core/index.js +1 -1
  38. package/cjs/data/data-view-utils.js +1 -1
  39. package/cjs/data/initialize.js +1 -1
  40. package/cjs/data/register.js +1 -1
  41. package/cjs/data/transforms/box-plot.d.ts +4 -1
  42. package/cjs/data/transforms/box-plot.js +3 -3
  43. package/cjs/data/transforms/box-plot.js.map +1 -1
  44. package/cjs/data/transforms/correlation-center.d.ts +11 -4
  45. package/cjs/data/transforms/correlation-center.js +3 -2
  46. package/cjs/data/transforms/correlation-center.js.map +1 -1
  47. package/cjs/data/transforms/correlation.d.ts +18 -15
  48. package/cjs/data/transforms/correlation.js +22 -17
  49. package/cjs/data/transforms/correlation.js.map +1 -1
  50. package/cjs/data/transforms/funnel.d.ts +10 -8
  51. package/cjs/data/transforms/funnel.js +4 -3
  52. package/cjs/data/transforms/funnel.js.map +1 -1
  53. package/cjs/data/transforms/lookup.d.ts +3 -3
  54. package/cjs/data/transforms/lookup.js +12 -7
  55. package/cjs/data/transforms/lookup.js.map +1 -1
  56. package/cjs/data/transforms/map.d.ts +8 -2
  57. package/cjs/data/transforms/map.js +9 -6
  58. package/cjs/data/transforms/map.js.map +1 -1
  59. package/cjs/data/transforms/sankey.d.ts +12 -4
  60. package/cjs/data/transforms/sankey.js +18 -13
  61. package/cjs/data/transforms/sankey.js.map +1 -1
  62. package/cjs/data/transforms/stack-split.d.ts +2 -1
  63. package/cjs/data/transforms/stack-split.js +1 -1
  64. package/cjs/data/transforms/stack-split.js.map +1 -1
  65. package/cjs/data/transforms/treemap.d.ts +5 -3
  66. package/cjs/data/transforms/treemap.js +7 -6
  67. package/cjs/data/transforms/treemap.js.map +1 -1
  68. package/cjs/data/transforms/venn.d.ts +4 -2
  69. package/cjs/data/transforms/venn.js +4 -4
  70. package/cjs/data/transforms/venn.js.map +1 -1
  71. package/cjs/data/transforms/waterfall.d.ts +4 -2
  72. package/cjs/data/transforms/waterfall.js +7 -7
  73. package/cjs/data/transforms/waterfall.js.map +1 -1
  74. package/cjs/series/base/base-series.js +2 -2
  75. package/cjs/series/base/base-series.js.map +1 -1
  76. package/cjs/series/box-plot/box-plot.js +2 -2
  77. package/cjs/series/box-plot/box-plot.js.map +1 -1
  78. package/cjs/series/correlation/correlation.js +13 -11
  79. package/cjs/series/correlation/correlation.js.map +1 -1
  80. package/cjs/series/dot/dot.d.ts +11 -0
  81. package/cjs/series/dot/dot.js +16 -1
  82. package/cjs/series/dot/dot.js.map +1 -1
  83. package/cjs/series/funnel/funnel.js +5 -8
  84. package/cjs/series/funnel/funnel.js.map +1 -1
  85. package/cjs/series/map/map.js +3 -3
  86. package/cjs/series/map/map.js.map +1 -1
  87. package/cjs/series/polar/progress-like/progress-like.d.ts +2 -0
  88. package/cjs/series/polar/progress-like/progress-like.js +16 -1
  89. package/cjs/series/polar/progress-like/progress-like.js.map +1 -1
  90. package/cjs/series/polar/rose-like/rose-like.d.ts +2 -0
  91. package/cjs/series/polar/rose-like/rose-like.js +15 -1
  92. package/cjs/series/polar/rose-like/rose-like.js.map +1 -1
  93. package/cjs/series/progress/circular/circular.js +2 -1
  94. package/cjs/series/progress/circular/circular.js.map +1 -1
  95. package/cjs/series/progress/linear/linear.js +3 -1
  96. package/cjs/series/progress/linear/linear.js.map +1 -1
  97. package/cjs/series/sankey/sankey.js +35 -33
  98. package/cjs/series/sankey/sankey.js.map +1 -1
  99. package/cjs/series/treemap/treemap.js +23 -20
  100. package/cjs/series/treemap/treemap.js.map +1 -1
  101. package/cjs/series/venn/venn.js +2 -2
  102. package/cjs/series/venn/venn.js.map +1 -1
  103. package/cjs/series/waterfall/waterfall.js +26 -20
  104. package/cjs/series/waterfall/waterfall.js.map +1 -1
  105. package/esm/chart/base/base-chart.d.ts +1 -0
  106. package/esm/chart/base/base-chart.js +9 -2
  107. package/esm/chart/base/base-chart.js.map +1 -1
  108. package/esm/chart/gauge/gauge-transformer.js +3 -2
  109. package/esm/chart/gauge/gauge-transformer.js.map +1 -1
  110. package/esm/chart/polar/polar-transformer.js +1 -1
  111. package/esm/chart/polar/polar-transformer.js.map +1 -1
  112. package/esm/chart/polar/progress-like/progress-like-transformer.js +1 -1
  113. package/esm/chart/polar/progress-like/progress-like-transformer.js.map +1 -1
  114. package/esm/chart/progress/circular/circular-progress-transformer.js +3 -2
  115. package/esm/chart/progress/circular/circular-progress-transformer.js.map +1 -1
  116. package/esm/chart/progress/linear/linear-progress-transformer.js +1 -1
  117. package/esm/chart/progress/linear/linear-progress-transformer.js.map +1 -1
  118. package/esm/chart/radar/radar-transformer.js +3 -2
  119. package/esm/chart/radar/radar-transformer.js.map +1 -1
  120. package/esm/chart/range-area/range-area-transformer.js +2 -2
  121. package/esm/chart/range-area/range-area-transformer.js.map +1 -1
  122. package/esm/chart/rose/rose-transformer.js +2 -1
  123. package/esm/chart/rose/rose-transformer.js.map +1 -1
  124. package/esm/component/axis/polar/band-axis.d.ts +2 -0
  125. package/esm/component/axis/polar/band-axis.js +3 -0
  126. package/esm/component/axis/polar/band-axis.js.map +1 -1
  127. package/esm/component/axis/polar/linear-axis.js +3 -0
  128. package/esm/component/axis/polar/linear-axis.js.map +1 -1
  129. package/esm/component/indicator/indicator.js +2 -2
  130. package/esm/component/indicator/indicator.js.map +1 -1
  131. package/esm/component/indicator/util.d.ts +4 -3
  132. package/esm/component/indicator/util.js +2 -2
  133. package/esm/component/indicator/util.js.map +1 -1
  134. package/esm/core/expression-function.js +1 -1
  135. package/esm/core/factory.js +1 -1
  136. package/esm/core/index.js +1 -1
  137. package/esm/data/data-view-utils.js +1 -1
  138. package/esm/data/initialize.js +1 -1
  139. package/esm/data/register.js +1 -1
  140. package/esm/data/transforms/box-plot.d.ts +4 -1
  141. package/esm/data/transforms/box-plot.js +4 -4
  142. package/esm/data/transforms/box-plot.js.map +1 -1
  143. package/esm/data/transforms/correlation-center.d.ts +11 -4
  144. package/esm/data/transforms/correlation-center.js +4 -2
  145. package/esm/data/transforms/correlation-center.js.map +1 -1
  146. package/esm/data/transforms/correlation.d.ts +18 -15
  147. package/esm/data/transforms/correlation.js +13 -8
  148. package/esm/data/transforms/correlation.js.map +1 -1
  149. package/esm/data/transforms/funnel.d.ts +10 -8
  150. package/esm/data/transforms/funnel.js +5 -3
  151. package/esm/data/transforms/funnel.js.map +1 -1
  152. package/esm/data/transforms/lookup.d.ts +3 -3
  153. package/esm/data/transforms/lookup.js +12 -6
  154. package/esm/data/transforms/lookup.js.map +1 -1
  155. package/esm/data/transforms/map.d.ts +8 -2
  156. package/esm/data/transforms/map.js +11 -6
  157. package/esm/data/transforms/map.js.map +1 -1
  158. package/esm/data/transforms/sankey.d.ts +12 -4
  159. package/esm/data/transforms/sankey.js +19 -14
  160. package/esm/data/transforms/sankey.js.map +1 -1
  161. package/esm/data/transforms/stack-split.d.ts +2 -1
  162. package/esm/data/transforms/stack-split.js +2 -2
  163. package/esm/data/transforms/stack-split.js.map +1 -1
  164. package/esm/data/transforms/treemap.d.ts +5 -3
  165. package/esm/data/transforms/treemap.js +8 -5
  166. package/esm/data/transforms/treemap.js.map +1 -1
  167. package/esm/data/transforms/venn.d.ts +4 -2
  168. package/esm/data/transforms/venn.js +5 -3
  169. package/esm/data/transforms/venn.js.map +1 -1
  170. package/esm/data/transforms/waterfall.d.ts +4 -2
  171. package/esm/data/transforms/waterfall.js +7 -8
  172. package/esm/data/transforms/waterfall.js.map +1 -1
  173. package/esm/series/base/base-series.js +2 -2
  174. package/esm/series/base/base-series.js.map +1 -1
  175. package/esm/series/box-plot/box-plot.js +2 -2
  176. package/esm/series/box-plot/box-plot.js.map +1 -1
  177. package/esm/series/correlation/correlation.js +13 -11
  178. package/esm/series/correlation/correlation.js.map +1 -1
  179. package/esm/series/dot/dot.d.ts +11 -0
  180. package/esm/series/dot/dot.js +17 -0
  181. package/esm/series/dot/dot.js.map +1 -1
  182. package/esm/series/funnel/funnel.js +5 -8
  183. package/esm/series/funnel/funnel.js.map +1 -1
  184. package/esm/series/map/map.js +3 -3
  185. package/esm/series/map/map.js.map +1 -1
  186. package/esm/series/polar/progress-like/progress-like.d.ts +2 -0
  187. package/esm/series/polar/progress-like/progress-like.js +17 -0
  188. package/esm/series/polar/progress-like/progress-like.js.map +1 -1
  189. package/esm/series/polar/rose-like/rose-like.d.ts +2 -0
  190. package/esm/series/polar/rose-like/rose-like.js +16 -0
  191. package/esm/series/polar/rose-like/rose-like.js.map +1 -1
  192. package/esm/series/progress/circular/circular.js +2 -1
  193. package/esm/series/progress/circular/circular.js.map +1 -1
  194. package/esm/series/progress/linear/linear.js +3 -1
  195. package/esm/series/progress/linear/linear.js.map +1 -1
  196. package/esm/series/sankey/sankey.js +35 -33
  197. package/esm/series/sankey/sankey.js.map +1 -1
  198. package/esm/series/treemap/treemap.js +23 -20
  199. package/esm/series/treemap/treemap.js.map +1 -1
  200. package/esm/series/venn/venn.js +2 -2
  201. package/esm/series/venn/venn.js.map +1 -1
  202. package/esm/series/waterfall/waterfall.js +26 -20
  203. package/esm/series/waterfall/waterfall.js.map +1 -1
  204. package/package.json +10 -10
package/build/index.js CHANGED
@@ -15775,13 +15775,11 @@
15775
15775
  };
15776
15776
  }
15777
15777
  recomputeCurrentStatePatch() {
15778
- var _a, _b, _c, _d;
15778
+ var _a, _b;
15779
15779
  if (!(null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length)) return this.effectiveStates = [], this.resolvedStatePatch = void 0, void this.syncSharedStateActiveRegistrations();
15780
- const stateResolveBaseAttrs = null !== (_b = this.baseAttributes) && void 0 !== _b ? _b : this.attribute,
15781
- stateModel = this.createStateModel();
15782
- null === (_c = this.stateEngine) || void 0 === _c || _c.setResolveContext(this, stateResolveBaseAttrs);
15783
- const transition = stateModel.useStates(this.currentStates),
15784
- effectiveStates = null !== (_d = transition.effectiveStates) && void 0 !== _d ? _d : transition.states,
15780
+ const stateResolveBaseAttrs = this.getStateResolveBaseAttrs(),
15781
+ transition = this.createStateModel(stateResolveBaseAttrs).useStates(this.currentStates),
15782
+ effectiveStates = null !== (_b = transition.effectiveStates) && void 0 !== _b ? _b : transition.states,
15785
15783
  resolvedStateAttrs = this.stateEngine && this.compiledStateDefinitions ? Object.assign({}, this.stateEngine.resolvedPatch) : this.getStateStyleResolver(this.stateMergeMode).resolve(stateResolveBaseAttrs, this.states, this.stateProxy, transition.states, this.stateSort);
15786
15784
  this.currentStates = transition.states, this.effectiveStates = [...effectiveStates], this.resolvedStatePatch = resolvedStateAttrs, this.syncSharedStateActiveRegistrations();
15787
15785
  }
@@ -16374,7 +16372,15 @@
16374
16372
  var _a;
16375
16373
  return null === (_a = this.states) || void 0 === _a ? void 0 : _a[stateName];
16376
16374
  }
16377
- createStateModel() {
16375
+ getStateResolveBaseAttrs() {
16376
+ var _a;
16377
+ return null !== (_a = this.baseAttributes) && void 0 !== _a ? _a : this.attribute;
16378
+ }
16379
+ syncStateResolveContext(stateResolveBaseAttrs = this.getStateResolveBaseAttrs()) {
16380
+ var _a;
16381
+ return null === (_a = this.stateEngine) || void 0 === _a || _a.setResolveContext(this, stateResolveBaseAttrs), stateResolveBaseAttrs;
16382
+ }
16383
+ createStateModel(stateResolveBaseAttrs = this.getStateResolveBaseAttrs()) {
16378
16384
  const {
16379
16385
  compiledDefinitions: compiledDefinitions,
16380
16386
  stateProxyEligibility: stateProxyEligibility,
@@ -16387,7 +16393,7 @@
16387
16393
  stateProxyEligibility: stateProxyEligibility,
16388
16394
  states: this.states,
16389
16395
  mergeMode: this.stateMergeMode
16390
- }), this.stateEngineCompiledDefinitions = compiledDefinitions, this.stateEngineStateProxy = this.stateProxy, this.stateEngineStateSort = this.stateSort, this.stateEngineMergeMode = this.stateMergeMode, this.stateEngineStateProxyModeKey = stateProxyModeKey) : (this.stateEngine = void 0, this.stateEngineCompiledDefinitions = void 0, this.stateEngineStateProxyModeKey = void 0), new StateModel({
16396
+ }), this.stateEngineCompiledDefinitions = compiledDefinitions, this.stateEngineStateProxy = this.stateProxy, this.stateEngineStateSort = this.stateSort, this.stateEngineMergeMode = this.stateMergeMode, this.stateEngineStateProxyModeKey = stateProxyModeKey) : (this.stateEngine = void 0, this.stateEngineCompiledDefinitions = void 0, this.stateEngineStateProxyModeKey = void 0), this.syncStateResolveContext(stateResolveBaseAttrs), new StateModel({
16391
16397
  states: this.states,
16392
16398
  currentStates: this.currentStates,
16393
16399
  stateSort: this.stateSort,
@@ -16457,18 +16463,18 @@
16457
16463
  };
16458
16464
  }
16459
16465
  resolveGraphicStateTransition(states, previousStates, forceResolverRefresh = !1) {
16460
- var _a, _b, _c, _d;
16466
+ var _a, _b;
16461
16467
  let transition = this.resolveSimpleLocalStateTransition(states, previousStates);
16462
16468
  const isSimpleLocalTransition = !!transition;
16463
16469
  let resolvedStateAttrs;
16464
16470
  if (transition) resolvedStateAttrs = transition.resolvedStateAttrs;else {
16465
- const stateResolveBaseAttrs = null !== (_a = this.baseAttributes) && void 0 !== _a ? _a : this.attribute,
16466
- stateModel = this.createStateModel();
16467
- null === (_b = this.stateEngine) || void 0 === _b || _b.setResolveContext(this, stateResolveBaseAttrs), forceResolverRefresh && (null === (_c = this.stateEngine) || void 0 === _c || _c.invalidateResolverCache()), transition = stateModel.useStates(states), resolvedStateAttrs = this.stateEngine && this.compiledStateDefinitions ? Object.assign({}, this.stateEngine.resolvedPatch) : this.getStateStyleResolver(this.stateMergeMode).resolve(stateResolveBaseAttrs, this.states, this.stateProxy, transition.states, this.stateSort);
16471
+ const stateResolveBaseAttrs = this.getStateResolveBaseAttrs(),
16472
+ stateModel = this.createStateModel(stateResolveBaseAttrs);
16473
+ forceResolverRefresh && (null === (_a = this.stateEngine) || void 0 === _a || _a.invalidateResolverCache()), transition = stateModel.useStates(states), resolvedStateAttrs = this.stateEngine && this.compiledStateDefinitions ? Object.assign({}, this.stateEngine.resolvedPatch) : this.getStateStyleResolver(this.stateMergeMode).resolve(stateResolveBaseAttrs, this.states, this.stateProxy, transition.states, this.stateSort);
16468
16474
  }
16469
16475
  return {
16470
16476
  transition: transition,
16471
- effectiveStates: null !== (_d = transition.effectiveStates) && void 0 !== _d ? _d : transition.states,
16477
+ effectiveStates: null !== (_b = transition.effectiveStates) && void 0 !== _b ? _b : transition.states,
16472
16478
  resolvedStateAttrs: resolvedStateAttrs,
16473
16479
  isSimpleLocalTransition: isSimpleLocalTransition
16474
16480
  };
@@ -16639,10 +16645,10 @@
16639
16645
  }
16640
16646
  }
16641
16647
  invalidateResolver() {
16642
- var _a, _b, _c;
16648
+ var _a, _b;
16643
16649
  if (!this.stateEngine || !(null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) || !this.compiledStateDefinitions) return;
16644
- const stateResolveBaseAttrs = null !== (_b = this.baseAttributes) && void 0 !== _b ? _b : this.attribute;
16645
- this.stateEngine.setResolveContext(this, stateResolveBaseAttrs), this.resolverEpoch = (null !== (_c = this.resolverEpoch) && void 0 !== _c ? _c : 0) + 1, this.stateEngine.invalidateResolverCache();
16650
+ this.syncStateResolveContext();
16651
+ this.resolverEpoch = (null !== (_b = this.resolverEpoch) && void 0 !== _b ? _b : 0) + 1, this.stateEngine.invalidateResolverCache();
16646
16652
  const transition = this.stateEngine.applyStates(this.currentStates),
16647
16653
  resolvedStateAttrs = Object.assign({}, this.stateEngine.resolvedPatch);
16648
16654
  this.effectiveStates = [...transition.effectiveStates], this.resolvedStatePatch = resolvedStateAttrs, this.sharedStateDirty = !1, this.syncSharedStateActiveRegistrations(), this.stopStateAnimates(), this._restoreAttributeFromStaticTruth({
@@ -67808,32 +67814,35 @@
67808
67814
  return specInfos;
67809
67815
  };
67810
67816
 
67817
+ const resolveOptionValue$3 = (option) => (isFunction$1(option) ? option() : option);
67811
67818
  const lookup = (data, opt) => {
67812
- if (!opt.from || !opt.from()) {
67819
+ var _a;
67820
+ const fromData = (_a = opt.from) === null || _a === void 0 ? void 0 : _a.call(opt);
67821
+ if (!fromData) {
67813
67822
  return data;
67814
67823
  }
67815
- const fields = opt.fields;
67824
+ const fields = resolveOptionValue$3(opt.fields);
67816
67825
  const key = opt.key;
67817
67826
  const values = opt.values;
67818
67827
  const defaultValue = opt.default;
67819
67828
  const as = opt.as || [fields];
67820
- const index = opt.from().reduce(function (map, obj) {
67829
+ const index = fromData.reduce(function (map, obj) {
67821
67830
  if (obj[fields]) {
67822
- map.set(obj[fields], obj);
67831
+ map.set(`${obj[fields]}`, obj);
67823
67832
  }
67824
67833
  return map;
67825
67834
  }, new Map());
67826
67835
  let set;
67827
67836
  if (isFunction$1(opt.set)) {
67828
67837
  set = function (d) {
67829
- const v = index.get(d[key]);
67838
+ const v = index.get(`${d[key]}`);
67830
67839
  opt.set(d, v);
67831
67840
  };
67832
67841
  }
67833
67842
  else if (values) {
67834
67843
  const m = values.length;
67835
67844
  set = function (d) {
67836
- const v = index.get(d[key]);
67845
+ const v = index.get(`${d[key]}`);
67837
67846
  if (isNil$1(v)) {
67838
67847
  for (let i = 0; i < m; ++i) {
67839
67848
  d[as[i]] = defaultValue;
@@ -67848,7 +67857,7 @@
67848
67857
  }
67849
67858
  else {
67850
67859
  set = function (d) {
67851
- const v = index.get(d[key]);
67860
+ const v = index.get(`${d[key]}`);
67852
67861
  d[as[0]] = isValid$1(v) ? v : defaultValue;
67853
67862
  };
67854
67863
  }
@@ -69149,9 +69158,9 @@
69149
69158
  });
69150
69159
  this._viewStackData.transform({
69151
69160
  type: 'stackSplit',
69152
- options: {
69161
+ options: () => ({
69153
69162
  fields: this.getStackGroupFields()
69154
- }
69163
+ })
69155
69164
  }, false);
69156
69165
  }
69157
69166
  _noAnimationDataKey(datum, index) {
@@ -76603,6 +76612,9 @@
76603
76612
  const onlyMarkerComponentsRemoved = this._isOnlyMarkerComponentsRemoved(this._spec, spec, currentKeys);
76604
76613
  const onlyComponentSpecsChanged = this._isOnlyComponentSpecsChanged(this._spec, spec, currentKeys);
76605
76614
  const onlySeriesSpecsChanged = this._isOnlySeriesSpecsChanged(this._spec, spec, currentKeys);
76615
+ const onlyComponentOrSeriesSpecsChanged = onlyComponentSpecsChanged || onlySeriesSpecsChanged
76616
+ ? true
76617
+ : this._isOnlyComponentOrSeriesSpecsChanged(this._spec, spec, currentKeys);
76606
76618
  this._spec = spec;
76607
76619
  if (onlyMarkerComponentsRemoved) {
76608
76620
  this._removeMarkerComponentsForEmptySpecs(result);
@@ -76651,7 +76663,7 @@
76651
76663
  return result;
76652
76664
  }
76653
76665
  this.reInit();
76654
- if (!onlySeriesSpecsChanged || !this._canSkipChartDataStages(result)) {
76666
+ if (!onlyComponentOrSeriesSpecsChanged || !this._canSkipChartDataStages(result)) {
76655
76667
  this.updateDataSpec();
76656
76668
  this.reDataFlow();
76657
76669
  this._reRunStackDataFlow();
@@ -76844,6 +76856,24 @@
76844
76856
  });
76845
76857
  return hasSeriesSpecChange && onlySeriesSpecChange;
76846
76858
  }
76859
+ _isOnlyComponentOrSeriesSpecsChanged(currentSpec, nextSpec, specKeys) {
76860
+ var _a, _b;
76861
+ let hasComponentOrSeriesSpecChange = false;
76862
+ const currentSpecRecord = currentSpec;
76863
+ const nextSpecRecord = nextSpec;
76864
+ const seriesRelatedSpecKeys = (_b = (_a = this._specTransformer) === null || _a === void 0 ? void 0 : _a.getSeriesRelatedSpecKeys()) !== null && _b !== void 0 ? _b : {};
76865
+ const onlyComponentOrSeriesSpecChange = specKeys.every(key => {
76866
+ if (isEqual(currentSpecRecord[key], nextSpecRecord[key])) {
76867
+ return true;
76868
+ }
76869
+ if (this._isComponentSpecKey(key) || seriesRelatedSpecKeys[key]) {
76870
+ hasComponentOrSeriesSpecChange = true;
76871
+ return true;
76872
+ }
76873
+ return false;
76874
+ });
76875
+ return hasComponentOrSeriesSpecChange && onlyComponentOrSeriesSpecChange;
76876
+ }
76847
76877
  _canSkipChartDataStages(result) {
76848
76878
  const effects = result.effects;
76849
76879
  return !!(effects === null || effects === void 0 ? void 0 : effects.series) && !effects.remake && !effects.data && !effects.scaleDomain && !result.reMake;
@@ -77745,7 +77775,7 @@
77745
77775
  const result = {
77746
77776
  nodes: {}
77747
77777
  };
77748
- const { fields } = op;
77778
+ const { fields } = isFunction$1(op) ? op() : op;
77749
77779
  if (!(fields === null || fields === void 0 ? void 0 : fields.length)) {
77750
77780
  return result;
77751
77781
  }
@@ -80603,20 +80633,23 @@
80603
80633
  }
80604
80634
 
80605
80635
  const map$1 = (data, opt) => {
80606
- if (data.features) {
80607
- data.features.forEach((f, index) => {
80608
- var _a;
80636
+ const options = isFunction$1(opt) ? opt() : opt;
80637
+ const features = data.features;
80638
+ if (features) {
80639
+ features.forEach((f, index) => {
80640
+ var _a, _b;
80609
80641
  f[DEFAULT_DATA_INDEX] = index;
80610
- const name = (_a = f.properties) === null || _a === void 0 ? void 0 : _a[opt.nameProperty];
80611
- if (opt.nameMap && opt.nameMap[name]) {
80612
- f[DEFAULT_MAP_LOOK_UP_KEY] = opt.nameMap[name];
80642
+ const name = (_a = f.properties) === null || _a === void 0 ? void 0 : _a[options.nameProperty];
80643
+ const mappedName = (_b = options.nameMap) === null || _b === void 0 ? void 0 : _b[`${name}`];
80644
+ if (mappedName) {
80645
+ f[DEFAULT_MAP_LOOK_UP_KEY] = mappedName;
80613
80646
  }
80614
80647
  else {
80615
80648
  f[DEFAULT_MAP_LOOK_UP_KEY] = name;
80616
80649
  }
80617
80650
  });
80618
80651
  }
80619
- return data.features;
80652
+ return features;
80620
80653
  };
80621
80654
 
80622
80655
  class MapSeriesTooltipHelper extends BaseSeriesTooltipHelper {
@@ -81523,17 +81556,17 @@
81523
81556
  .transform({ type: 'copyDataView', options: { deep: true }, level: exports.TransformLevel.copyDataView })
81524
81557
  .transform({
81525
81558
  type: 'map',
81526
- options: {
81559
+ options: () => ({
81527
81560
  nameMap: this._nameMap,
81528
81561
  nameProperty: this._nameProperty
81529
- }
81562
+ })
81530
81563
  })
81531
81564
  .transform({
81532
81565
  type: 'lookup',
81533
81566
  options: {
81534
81567
  from: () => { var _a; return (_a = this._data) === null || _a === void 0 ? void 0 : _a.getLatestData(); },
81535
81568
  key: DEFAULT_MAP_LOOK_UP_KEY,
81536
- fields: this._nameField,
81569
+ fields: () => this._nameField,
81537
81570
  set: (feature, datum) => {
81538
81571
  if (datum) {
81539
81572
  Object.keys(datum).forEach(key => {
@@ -81752,7 +81785,8 @@
81752
81785
  if (!lastData || lastData.length === 0) {
81753
81786
  return lastData;
81754
81787
  }
81755
- const { indexField, total: totalSpec, groupData, calculationMode } = op;
81788
+ const options = isFunction$1(op) ? op() : op;
81789
+ const { indexField, total: totalSpec, groupData, calculationMode } = options;
81756
81790
  const totalData = [];
81757
81791
  const { dimensionValues, dimensionData } = groupData().latestData;
81758
81792
  let indexValues = Array.from(dimensionValues[indexField]);
@@ -81777,7 +81811,7 @@
81777
81811
  positive: temp.end,
81778
81812
  negative: temp.end
81779
81813
  };
81780
- const indexData = op.stackInverse === true ? dimensionData[key].reverse() : dimensionData[key];
81814
+ const indexData = options.stackInverse === true ? dimensionData[key].reverse() : dimensionData[key];
81781
81815
  indexData === null || indexData === void 0 ? void 0 : indexData.forEach((d, i) => {
81782
81816
  if (i === indexData.length - 1) {
81783
81817
  d[STACK_FIELD_TOTAL_TOP] = true;
@@ -81801,12 +81835,12 @@
81801
81835
  };
81802
81836
  const isTotalTag = indexData.some(d => isTotalCheck(d));
81803
81837
  if (isTotalTag) {
81804
- temp = computeTotalWithMultipleData(indexData, key, total, totalData, temp, indexValues, index, op, isTotalCheck);
81838
+ temp = computeTotalWithMultipleData(indexData, key, total, totalData, temp, indexValues, index, options, isTotalCheck);
81805
81839
  totalData.push(total);
81806
81840
  return;
81807
81841
  }
81808
81842
  }
81809
- temp = computeNormalData(indexData, key, total, totalData, temp, indexValues, index, op);
81843
+ temp = computeNormalData(indexData, key, total, totalData, temp, indexValues, index, options);
81810
81844
  totalData.push(total);
81811
81845
  });
81812
81846
  return totalData;
@@ -81977,7 +82011,7 @@
81977
82011
  if (!data) {
81978
82012
  return data;
81979
82013
  }
81980
- const { indexField, valueField, total, seriesField, calculationMode } = op;
82014
+ const { indexField, valueField, total, seriesField, calculationMode } = isFunction$1(op) ? op() : op;
81981
82015
  const totalData = {
81982
82016
  [indexField]: (total === null || total === void 0 ? void 0 : total.text) || 'total',
81983
82017
  [valueField]: data.reduce((pre, cur) => precisionAdd(pre, +cur[valueField]), 0)
@@ -81986,12 +82020,9 @@
81986
82020
  totalData[seriesField] = 'total';
81987
82021
  }
81988
82022
  if (calculationMode === 'decrease') {
81989
- data.unshift(totalData);
81990
- }
81991
- else {
81992
- data.push(totalData);
82023
+ return [totalData, ...data];
81993
82024
  }
81994
- return data;
82025
+ return [...data, totalData];
81995
82026
  };
81996
82027
 
81997
82028
  const Appear_FadeIn$6 = {
@@ -82654,21 +82685,24 @@
82654
82685
  return super.getSeriesKeys();
82655
82686
  }
82656
82687
  initData() {
82657
- var _a, _b, _c;
82688
+ var _a;
82658
82689
  super.initData();
82659
82690
  registerDataSetInstanceTransform(this._dataSet, 'waterfallFillTotal', waterfallFillTotal);
82660
82691
  registerDataSetInstanceTransform(this._dataSet, 'waterfall', waterfall$1);
82661
82692
  if (isNil$1(this._spec.total) || this._spec.total.type === 'end') {
82662
82693
  (_a = this._rawData) === null || _a === void 0 ? void 0 : _a.transform({
82663
82694
  type: 'waterfallFillTotal',
82664
- options: {
82665
- indexField: this.getGroupFields()[0],
82666
- valueField: this.getStackValueField(),
82667
- seriesField: this.getSeriesField(),
82668
- seriesFieldName: this._theme.seriesFieldName,
82669
- total: this._spec.total,
82670
- calculationMode: (_b = this._spec.calculationMode) !== null && _b !== void 0 ? _b : 'increase',
82671
- stackInverse: this.getRegion().getStackInverse()
82695
+ options: () => {
82696
+ var _a;
82697
+ return ({
82698
+ indexField: this.getGroupFields()[0],
82699
+ valueField: this.getStackValueField(),
82700
+ seriesField: this.getSeriesField(),
82701
+ seriesFieldName: this._theme.seriesFieldName,
82702
+ total: this._spec.total,
82703
+ calculationMode: (_a = this._spec.calculationMode) !== null && _a !== void 0 ? _a : 'increase',
82704
+ stackInverse: this.getRegion().getStackInverse()
82705
+ });
82672
82706
  }
82673
82707
  }, false);
82674
82708
  }
@@ -82679,17 +82713,20 @@
82679
82713
  this._totalData = new CompilableData(this._option, totalData);
82680
82714
  totalData.transform({
82681
82715
  type: 'waterfall',
82682
- options: {
82683
- indexField: this.getGroupFields()[0],
82684
- valueField: this.getStackValueField(),
82685
- seriesField: this.getSeriesField(),
82686
- seriesFieldName: this._theme.seriesFieldName,
82687
- startAs: STACK_FIELD_START,
82688
- endAs: STACK_FIELD_END,
82689
- total: this._spec.total,
82690
- calculationMode: (_c = this._spec.calculationMode) !== null && _c !== void 0 ? _c : 'increase',
82691
- groupData: () => this.getGroups().groupData,
82692
- stackInverse: this.getRegion().getStackInverse()
82716
+ options: () => {
82717
+ var _a;
82718
+ return ({
82719
+ indexField: this.getGroupFields()[0],
82720
+ valueField: this.getStackValueField(),
82721
+ seriesField: this.getSeriesField(),
82722
+ seriesFieldName: this._theme.seriesFieldName,
82723
+ startAs: STACK_FIELD_START,
82724
+ endAs: STACK_FIELD_END,
82725
+ total: this._spec.total,
82726
+ calculationMode: (_a = this._spec.calculationMode) !== null && _a !== void 0 ? _a : 'increase',
82727
+ groupData: () => this.getGroups().groupData,
82728
+ stackInverse: this.getRegion().getStackInverse()
82729
+ });
82693
82730
  }
82694
82731
  }, false);
82695
82732
  totalData.target.addListener('change', this._reStackTotal);
@@ -82880,13 +82917,12 @@
82880
82917
 
82881
82918
  const foldOutlierData = (data, op) => {
82882
82919
  const result = [];
82883
- const { outliersField, dimensionField, seriesField } = op;
82920
+ const options = isFunction$1(op) ? op() : op;
82921
+ const { outliersField, dimensionField, seriesField } = options;
82884
82922
  const latestData = data[0].latestData || [];
82885
- latestData.forEach((d) => {
82886
- let outlierValues = d[outliersField];
82887
- if (!isArray$1(outlierValues)) {
82888
- outlierValues = [outlierValues];
82889
- }
82923
+ latestData.forEach(d => {
82924
+ const rawOutlierValues = d[outliersField];
82925
+ const outlierValues = isArray$1(rawOutlierValues) ? rawOutlierValues : [rawOutlierValues];
82890
82926
  result.push(...outlierValues.map((v) => {
82891
82927
  const resData = {
82892
82928
  [BOX_PLOT_OUTLIER_VALUE_FIELD]: v
@@ -83875,11 +83911,11 @@
83875
83911
  outlierDataView.name = `${PREFIX}_series_${this.id}_outlierData`;
83876
83912
  outlierDataView.transform({
83877
83913
  type: 'foldOutlierData',
83878
- options: {
83914
+ options: () => ({
83879
83915
  dimensionField: this._direction === "horizontal" ? this._fieldY : this._fieldX,
83880
83916
  outliersField: this._outliersField,
83881
83917
  seriesField: this._seriesField
83882
- }
83918
+ })
83883
83919
  });
83884
83920
  outlierDataView.transform({
83885
83921
  type: 'addVChartProperty',
@@ -85566,7 +85602,20 @@
85566
85602
  });
85567
85603
  };
85568
85604
 
85605
+ const ROSE_LIKE_SERIES_COMPILE_ONLY_KEYS = {
85606
+ radius: true,
85607
+ outerRadius: true,
85608
+ innerRadius: true,
85609
+ startAngle: true,
85610
+ endAngle: true,
85611
+ centerX: true,
85612
+ centerY: true
85613
+ };
85569
85614
  class RoseLikeSeries extends PolarSeries {
85615
+ _getSpecUpdatePolicy() {
85616
+ const policy = super._getSpecUpdatePolicy();
85617
+ return Object.assign(Object.assign({}, policy), { compileOnlyKeys: Object.assign(Object.assign({}, policy.compileOnlyKeys), ROSE_LIKE_SERIES_COMPILE_ONLY_KEYS) });
85618
+ }
85570
85619
  getStackGroupFields() {
85571
85620
  return this._angleField;
85572
85621
  }
@@ -86034,8 +86083,11 @@
86034
86083
  this._scale = new LinearScale();
86035
86084
  }
86036
86085
  setAttrFromSpec() {
86086
+ var _a, _b;
86037
86087
  super.setAttrFromSpec();
86038
86088
  this.setExtraAttrFromSpec();
86089
+ const tickTransform = (_b = (_a = this._tickData) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.getDataView().transformsArr.find(t => t.type === this.registerTicksTransform());
86090
+ tickTransform && (tickTransform.options = this._tickTransformOption());
86039
86091
  }
86040
86092
  initScales() {
86041
86093
  super.initScales();
@@ -86106,6 +86158,10 @@
86106
86158
  super.initScales();
86107
86159
  this.calcScales(this._defaultBandInnerPadding, this._defaultBandOuterPadding);
86108
86160
  }
86161
+ reInit(spec) {
86162
+ super.reInit(spec);
86163
+ this._updateData();
86164
+ }
86109
86165
  registerTicksTransform() {
86110
86166
  const name = `${this.type}-ticks`;
86111
86167
  registerDataSetInstanceTransform(this._option.dataSet, name, polarAngleAxisDiscreteTicks);
@@ -86791,6 +86847,16 @@
86791
86847
  }
86792
86848
  };
86793
86849
 
86850
+ const DOT_SERIES_COMPILE_ONLY_KEYS = {
86851
+ highLightSeriesGroup: true,
86852
+ titleField: true,
86853
+ subTitleField: true
86854
+ };
86855
+ const DOT_SERIES_COMPILE_ONLY_SUB_KEYS = {
86856
+ grid: {
86857
+ background: true
86858
+ }
86859
+ };
86794
86860
  class DotSeries extends CartesianSeries {
86795
86861
  constructor() {
86796
86862
  super(...arguments);
@@ -86841,6 +86907,10 @@
86841
86907
  this._gridBackground = gridBackground;
86842
86908
  }
86843
86909
  }
86910
+ _getSpecUpdatePolicy() {
86911
+ const policy = super._getSpecUpdatePolicy();
86912
+ return Object.assign(Object.assign({}, policy), { compileOnlyKeys: Object.assign(Object.assign({}, policy.compileOnlyKeys), DOT_SERIES_COMPILE_ONLY_KEYS), compileOnlySubKeys: Object.assign(Object.assign({}, policy.compileOnlySubKeys), DOT_SERIES_COMPILE_ONLY_SUB_KEYS) });
86913
+ }
86844
86914
  initData() {
86845
86915
  var _a;
86846
86916
  super.initData();
@@ -87440,6 +87510,16 @@
87440
87510
 
87441
87511
  const progressLikeSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { ["group"]: { name: "group", type: "group" } });
87442
87512
 
87513
+ const PROGRESS_LIKE_SERIES_COMPILE_ONLY_KEYS = {
87514
+ radius: true,
87515
+ outerRadius: true,
87516
+ innerRadius: true,
87517
+ startAngle: true,
87518
+ endAngle: true,
87519
+ centerX: true,
87520
+ centerY: true,
87521
+ clamp: true
87522
+ };
87443
87523
  class ProgressLikeSeries extends PolarSeries {
87444
87524
  constructor() {
87445
87525
  super(...arguments);
@@ -87505,6 +87585,10 @@
87505
87585
  return this._getAngleValueEndWithoutMask(datum);
87506
87586
  };
87507
87587
  }
87588
+ _getSpecUpdatePolicy() {
87589
+ const policy = super._getSpecUpdatePolicy();
87590
+ return Object.assign(Object.assign({}, policy), { compileOnlyKeys: Object.assign(Object.assign({}, policy.compileOnlyKeys), PROGRESS_LIKE_SERIES_COMPILE_ONLY_KEYS) });
87591
+ }
87508
87592
  setAttrFromSpec() {
87509
87593
  var _a, _b, _c;
87510
87594
  super.setAttrFromSpec();
@@ -87720,7 +87804,8 @@
87720
87804
  };
87721
87805
 
87722
87806
  const CIRCULAR_PROGRESS_SERIES_COMPILE_ONLY_KEYS = {
87723
- cornerRadius: true
87807
+ cornerRadius: true,
87808
+ roundCap: true
87724
87809
  };
87725
87810
  class CircularProgressSeries extends ProgressLikeSeries {
87726
87811
  constructor() {
@@ -87947,7 +88032,9 @@
87947
88032
  };
87948
88033
 
87949
88034
  const LINEAR_PROGRESS_SERIES_COMPILE_ONLY_KEYS = {
87950
- bandWidth: true
88035
+ bandWidth: true,
88036
+ cornerRadius: true,
88037
+ clamp: true
87951
88038
  };
87952
88039
  const LINEAR_PROGRESS_SERIES_COMPILE_ONLY_SUB_KEYS = {
87953
88040
  progress: {
@@ -94018,16 +94105,21 @@
94018
94105
  registerWordCloudSeries();
94019
94106
  };
94020
94107
 
94108
+ const resolveOptionValue$2 = (option) => (isFunction$1(option) ? option() : option);
94021
94109
  const funnel = (originData, op) => {
94022
- var _a, _b;
94110
+ var _a, _b, _c, _d;
94023
94111
  const data = originData.map(datum => (Object.assign({}, datum)));
94024
94112
  if (!data || data.length === 0) {
94025
94113
  return data;
94026
94114
  }
94027
- const { valueField, asTransformRatio, asReachRatio, asHeightRatio, asValueRatio, asNextValueRatio, asLastValueRatio, asLastValue, asCurrentValue, asNextValue, heightVisual = false, isCone = true, range } = op;
94115
+ const { asTransformRatio, asReachRatio, asHeightRatio, asValueRatio, asNextValueRatio, asLastValueRatio, asLastValue, asCurrentValue, asNextValue, } = op;
94116
+ const valueField = resolveOptionValue$2(op.valueField);
94117
+ const heightVisual = (_a = resolveOptionValue$2(op.heightVisual)) !== null && _a !== void 0 ? _a : false;
94118
+ const isCone = (_b = resolveOptionValue$2(op.isCone)) !== null && _b !== void 0 ? _b : true;
94119
+ const range = resolveOptionValue$2(op.range);
94028
94120
  const max = data.reduce((m, d) => Math.max(m, Number.parseFloat(d[valueField]) || -Infinity), -Infinity);
94029
94121
  const min = data.reduce((m, d) => Math.min(m, Number.parseFloat(d[valueField]) || Infinity), Infinity);
94030
- const rangeArr = [(_a = range === null || range === void 0 ? void 0 : range.min) !== null && _a !== void 0 ? _a : min, (_b = range === null || range === void 0 ? void 0 : range.max) !== null && _b !== void 0 ? _b : max];
94122
+ const rangeArr = [(_c = range === null || range === void 0 ? void 0 : range.min) !== null && _c !== void 0 ? _c : min, (_d = range === null || range === void 0 ? void 0 : range.max) !== null && _d !== void 0 ? _d : max];
94031
94123
  data.forEach((d, i) => {
94032
94124
  var _a, _b;
94033
94125
  const currentValue = Number.parseFloat(d[valueField]);
@@ -94055,7 +94147,7 @@
94055
94147
  return data;
94056
94148
  }
94057
94149
  data.shift();
94058
- data.forEach((d) => {
94150
+ data.forEach(d => {
94059
94151
  d[op.asIsTransformLevel] = true;
94060
94152
  });
94061
94153
  return data;
@@ -94233,13 +94325,13 @@
94233
94325
  return fields;
94234
94326
  }
94235
94327
  _statisticViewData() {
94236
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
94328
+ var _a;
94237
94329
  super._statisticViewData();
94238
94330
  this._data.getDataView().transform({
94239
94331
  type: 'funnel',
94240
94332
  options: {
94241
- valueField: this.getValueField(),
94242
- isCone: this._spec.isCone,
94333
+ valueField: () => this.getValueField(),
94334
+ isCone: () => this._spec.isCone,
94243
94335
  asCurrentValue: FUNNEL_CURRENT_VALUE,
94244
94336
  asTransformRatio: FUNNEL_TRANSFORM_RATIO,
94245
94337
  asReachRatio: FUNNEL_REACH_RATIO,
@@ -94249,13 +94341,10 @@
94249
94341
  asLastValueRatio: FUNNEL_LAST_VALUE_RATIO,
94250
94342
  asLastValue: FUNNEL_LAST_VALUE,
94251
94343
  asNextValue: FUNNEL_NEXT_VALUE,
94252
- range: {
94253
- min: (_b = (_a = this._spec.range) === null || _a === void 0 ? void 0 : _a.min) !== null && _b !== void 0 ? _b : (_d = (_c = this.getViewDataStatistics().latestData) === null || _c === void 0 ? void 0 : _c[this.getValueField()]) === null || _d === void 0 ? void 0 : _d.min,
94254
- max: (_f = (_e = this._spec.range) === null || _e === void 0 ? void 0 : _e.max) !== null && _f !== void 0 ? _f : (_h = (_g = this.getViewDataStatistics().latestData) === null || _g === void 0 ? void 0 : _g[this.getValueField()]) === null || _h === void 0 ? void 0 : _h.max
94255
- }
94344
+ range: () => this._spec.range
94256
94345
  }
94257
94346
  });
94258
- (_j = this._viewDataTransform.getDataView()) === null || _j === void 0 ? void 0 : _j.transform({
94347
+ (_a = this._viewDataTransform.getDataView()) === null || _a === void 0 ? void 0 : _a.transform({
94259
94348
  type: 'funnelTransform',
94260
94349
  options: { asIsTransformLevel: FUNNEL_TRANSFORM_LEVEL }
94261
94350
  });
@@ -95674,7 +95763,7 @@
95674
95763
  };
95675
95764
 
95676
95765
  const collectHierarchyField = (set, data, field) => {
95677
- data.forEach((obj) => {
95766
+ data.forEach(obj => {
95678
95767
  if (!isNil$1(obj[field])) {
95679
95768
  set.add(obj[field]);
95680
95769
  }
@@ -95693,7 +95782,7 @@
95693
95782
  links: [],
95694
95783
  nodes: []
95695
95784
  };
95696
- data.forEach((datum) => {
95785
+ data.forEach(datum => {
95697
95786
  if (datum.id === 'links' || datum.id === 'nodes') {
95698
95787
  updateData[datum.id] = datum.values;
95699
95788
  }
@@ -95706,10 +95795,11 @@
95706
95795
  return data;
95707
95796
  };
95708
95797
  const sankeyLayout = (data, op) => {
95709
- if (!data || !(op === null || op === void 0 ? void 0 : op.view) || !data.length) {
95798
+ const options = isFunction$1(op) ? op() : op;
95799
+ if (!data || !(options === null || options === void 0 ? void 0 : options.view) || !data.length) {
95710
95800
  return [];
95711
95801
  }
95712
- const view = op.view();
95802
+ const view = options.view();
95713
95803
  if (view.x1 - view.x0 === 0 ||
95714
95804
  view.y1 - view.y0 === 0 ||
95715
95805
  view.x1 - view.x0 === -Infinity ||
@@ -95719,35 +95809,41 @@
95719
95809
  return [];
95720
95810
  }
95721
95811
  const originalData = data[0];
95722
- if (op.sourceField !== 'source' || op.targetField !== 'target' || op.valueField !== 'value') {
95723
- if (originalData.links) {
95724
- const updatedData = [];
95725
- originalData.links.forEach((datum) => {
95726
- const updatedDatum = {};
95727
- for (const key in datum) {
95728
- if (key === op.sourceField) {
95729
- updatedDatum.source = datum[op.sourceField];
95730
- }
95731
- else if (key === op.targetField) {
95732
- updatedDatum.target = datum[op.targetField];
95733
- }
95734
- else if (key === op.valueField) {
95735
- updatedDatum.value = datum[op.valueField];
95736
- }
95737
- else {
95738
- updatedDatum[key] = datum[key];
95739
- }
95740
- }
95741
- updatedData.push(updatedDatum);
95742
- });
95743
- originalData.links = updatedData;
95744
- }
95745
- }
95746
- const layout = new SankeyLayout(op);
95812
+ const layoutData = normalizeSankeyData(originalData, options);
95813
+ const layout = new SankeyLayout(options);
95747
95814
  const result = [];
95748
- result.push(layout.layout(originalData, view));
95815
+ result.push(layout.layout(layoutData, view));
95749
95816
  return result;
95750
95817
  };
95818
+ const normalizeSankeyData = (data, options) => {
95819
+ if (options.sourceField === 'source' &&
95820
+ options.targetField === 'target' &&
95821
+ options.valueField === 'value') {
95822
+ return data;
95823
+ }
95824
+ const links = data.links;
95825
+ if (!links) {
95826
+ return data;
95827
+ }
95828
+ return Object.assign(Object.assign({}, data), { links: links.map(link => {
95829
+ const updatedLink = {};
95830
+ Object.keys(link).forEach(key => {
95831
+ if (key === options.sourceField) {
95832
+ updatedLink.source = link[options.sourceField];
95833
+ }
95834
+ else if (key === options.targetField) {
95835
+ updatedLink.target = link[options.targetField];
95836
+ }
95837
+ else if (key === options.valueField) {
95838
+ updatedLink.value = link[options.valueField];
95839
+ }
95840
+ else {
95841
+ updatedLink[key] = link[key];
95842
+ }
95843
+ });
95844
+ return updatedLink;
95845
+ }) });
95846
+ };
95751
95847
 
95752
95848
  const sankeyNodes = (data) => {
95753
95849
  var _a, _b;
@@ -96597,7 +96693,6 @@
96597
96693
  this.setSeriesField((_a = this._spec.seriesField) !== null && _a !== void 0 ? _a : this._spec.categoryField);
96598
96694
  }
96599
96695
  initData() {
96600
- var _a, _b, _c, _d;
96601
96696
  super.initData();
96602
96697
  const viewData = this.getViewData();
96603
96698
  const rawData = this.getRawData();
@@ -96609,40 +96704,43 @@
96609
96704
  }, false);
96610
96705
  viewData.transform({
96611
96706
  type: 'sankeyLayout',
96612
- options: {
96613
- view: () => {
96614
- return {
96615
- x0: this._viewBox.x1,
96616
- x1: this._viewBox.x2,
96617
- y0: this._viewBox.y1,
96618
- y1: this._viewBox.y2
96619
- };
96620
- },
96621
- sourceField: this._spec.sourceField,
96622
- targetField: this._spec.targetField,
96623
- valueField: this._spec.valueField,
96624
- direction: this.direction,
96625
- crossNodeAlign: this._spec.crossNodeAlign,
96626
- nodeAlign: (_a = this._spec.nodeAlign) !== null && _a !== void 0 ? _a : 'justify',
96627
- nodeGap: (_b = this._spec.nodeGap) !== null && _b !== void 0 ? _b : 8,
96628
- nodeWidth: (_c = this._spec.nodeWidth) !== null && _c !== void 0 ? _c : 10,
96629
- linkWidth: this._spec.linkWidth,
96630
- minStepWidth: this._spec.minStepWidth,
96631
- minNodeHeight: (_d = this._spec.minNodeHeight) !== null && _d !== void 0 ? _d : 4,
96632
- maxNodeHeight: this._spec.maxNodeHeight,
96633
- minLinkHeight: this._spec.minLinkHeight,
96634
- maxLinkHeight: this._spec.maxLinkHeight,
96635
- iterations: this._spec.iterations,
96636
- nodeKey: this._spec.nodeKey,
96637
- linkSortBy: this._spec.linkSortBy,
96638
- nodeSortBy: this._spec.nodeSortBy,
96639
- setNodeLayer: this._spec.setNodeLayer,
96640
- dropIsolatedNode: this._spec.dropIsolatedNode,
96641
- nodeHeight: this._spec.nodeHeight,
96642
- linkHeight: this._spec.linkHeight,
96643
- equalNodeHeight: this._spec.equalNodeHeight,
96644
- linkOverlap: this._spec.linkOverlap,
96645
- inverse: this._spec.inverse
96707
+ options: () => {
96708
+ var _a, _b, _c, _d;
96709
+ return ({
96710
+ view: () => {
96711
+ return {
96712
+ x0: this._viewBox.x1,
96713
+ x1: this._viewBox.x2,
96714
+ y0: this._viewBox.y1,
96715
+ y1: this._viewBox.y2
96716
+ };
96717
+ },
96718
+ sourceField: this._spec.sourceField,
96719
+ targetField: this._spec.targetField,
96720
+ valueField: this._spec.valueField,
96721
+ direction: this.direction,
96722
+ crossNodeAlign: this._spec.crossNodeAlign,
96723
+ nodeAlign: (_a = this._spec.nodeAlign) !== null && _a !== void 0 ? _a : 'justify',
96724
+ nodeGap: (_b = this._spec.nodeGap) !== null && _b !== void 0 ? _b : 8,
96725
+ nodeWidth: (_c = this._spec.nodeWidth) !== null && _c !== void 0 ? _c : 10,
96726
+ linkWidth: this._spec.linkWidth,
96727
+ minStepWidth: this._spec.minStepWidth,
96728
+ minNodeHeight: (_d = this._spec.minNodeHeight) !== null && _d !== void 0 ? _d : 4,
96729
+ maxNodeHeight: this._spec.maxNodeHeight,
96730
+ minLinkHeight: this._spec.minLinkHeight,
96731
+ maxLinkHeight: this._spec.maxLinkHeight,
96732
+ iterations: this._spec.iterations,
96733
+ nodeKey: this._spec.nodeKey,
96734
+ linkSortBy: this._spec.linkSortBy,
96735
+ nodeSortBy: this._spec.nodeSortBy,
96736
+ setNodeLayer: this._spec.setNodeLayer,
96737
+ dropIsolatedNode: this._spec.dropIsolatedNode,
96738
+ nodeHeight: this._spec.nodeHeight,
96739
+ linkHeight: this._spec.linkHeight,
96740
+ equalNodeHeight: this._spec.equalNodeHeight,
96741
+ linkOverlap: this._spec.linkOverlap,
96742
+ inverse: this._spec.inverse
96743
+ });
96646
96744
  },
96647
96745
  level: exports.TransformLevel.sankeyLayout
96648
96746
  });
@@ -97141,16 +97239,17 @@
97141
97239
  };
97142
97240
 
97143
97241
  const treemapLayout = (data, op) => {
97144
- const viewBox = op.getViewBox();
97242
+ const options = isFunction$1(op) ? op() : op;
97243
+ const viewBox = options.getViewBox();
97145
97244
  if (viewBox) {
97146
- const layout = new TreemapLayout(op);
97147
- const res = layout.layout(data, op.getViewBox());
97245
+ const layout = new TreemapLayout(options);
97246
+ const res = layout.layout(data, viewBox);
97148
97247
  const nodes = [];
97149
- flattenNodes(res, nodes, { maxDepth: op === null || op === void 0 ? void 0 : op.maxDepth });
97150
- nodes.forEach((datum, i) => {
97248
+ flattenNodes(res, nodes, { maxDepth: options === null || options === void 0 ? void 0 : options.maxDepth });
97249
+ nodes.forEach(datum => {
97151
97250
  if (datum) {
97152
97251
  [DEFAULT_HIERARCHY_ROOT, 'name'].forEach(key => {
97153
- datum[key] = datum.datum[datum.depth][op.nameField];
97252
+ datum[key] = datum.datum[datum.depth][options.nameField];
97154
97253
  });
97155
97254
  }
97156
97255
  });
@@ -97241,34 +97340,37 @@
97241
97340
  }
97242
97341
  }
97243
97342
  initData() {
97244
- var _a, _b, _c, _d, _e;
97343
+ var _a;
97245
97344
  super.initData();
97246
97345
  registerDataSetInstanceTransform(this._dataSet, 'treemap', treemapLayout);
97247
97346
  (_a = this._data.getDataView()) === null || _a === void 0 ? void 0 : _a.transform({
97248
97347
  type: 'treemap',
97249
- options: {
97250
- nameField: this._categoryField,
97251
- valueField: this._valueField,
97252
- getViewBox: () => {
97253
- return this._viewBox.empty()
97254
- ? null
97255
- : {
97256
- x0: this._viewBox.x1,
97257
- x1: this._viewBox.x2,
97258
- y0: this._viewBox.y1,
97259
- y1: this._viewBox.y2
97260
- };
97261
- },
97262
- maxDepth: this._maxDepth,
97263
- gapWidth: this._spec.gapWidth,
97264
- padding: this._spec.nodePadding,
97265
- splitType: this._spec.splitType,
97266
- aspectRatio: this._spec.aspectRatio,
97267
- labelPadding: ((_b = this._spec.nonLeafLabel) === null || _b === void 0 ? void 0 : _b.visible) ? (_c = this._spec.nonLeafLabel) === null || _c === void 0 ? void 0 : _c.padding : 0,
97268
- labelPosition: (_d = this._spec.nonLeafLabel) === null || _d === void 0 ? void 0 : _d.position,
97269
- minVisibleArea: (_e = this._spec.minVisibleArea) !== null && _e !== void 0 ? _e : 10,
97270
- minChildrenVisibleArea: this._spec.minChildrenVisibleArea,
97271
- minChildrenVisibleSize: this._spec.minChildrenVisibleSize
97348
+ options: () => {
97349
+ var _a, _b, _c, _d;
97350
+ return ({
97351
+ nameField: this._categoryField,
97352
+ valueField: this._valueField,
97353
+ getViewBox: () => {
97354
+ return this._viewBox.empty()
97355
+ ? null
97356
+ : {
97357
+ x0: this._viewBox.x1,
97358
+ x1: this._viewBox.x2,
97359
+ y0: this._viewBox.y1,
97360
+ y1: this._viewBox.y2
97361
+ };
97362
+ },
97363
+ maxDepth: this._maxDepth,
97364
+ gapWidth: this._spec.gapWidth,
97365
+ padding: this._spec.nodePadding,
97366
+ splitType: this._spec.splitType,
97367
+ aspectRatio: this._spec.aspectRatio,
97368
+ labelPadding: ((_a = this._spec.nonLeafLabel) === null || _a === void 0 ? void 0 : _a.visible) ? (_b = this._spec.nonLeafLabel) === null || _b === void 0 ? void 0 : _b.padding : 0,
97369
+ labelPosition: (_c = this._spec.nonLeafLabel) === null || _c === void 0 ? void 0 : _c.position,
97370
+ minVisibleArea: (_d = this._spec.minVisibleArea) !== null && _d !== void 0 ? _d : 10,
97371
+ minChildrenVisibleArea: this._spec.minChildrenVisibleArea,
97372
+ minChildrenVisibleSize: this._spec.minChildrenVisibleSize
97373
+ });
97272
97374
  }
97273
97375
  });
97274
97376
  if (this.getViewData()) {
@@ -98232,11 +98334,13 @@
98232
98334
  const CORRELATION_Y = `${PREFIX}_CORRELATION_Y`;
98233
98335
  const CORRELATION_SIZE = `${PREFIX}_CORRELATION_SIZE`;
98234
98336
 
98337
+ const resolveOptionValue$1 = (option) => (isFunction$1(option) ? option() : option);
98235
98338
  const correlation$1 = (data, options) => {
98236
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
98339
+ var _a, _b, _c, _d, _e, _f, _g, _h;
98237
98340
  if (!data || !(options === null || options === void 0 ? void 0 : options.view) || !isArray$1(data)) {
98238
98341
  return data;
98239
98342
  }
98343
+ const dataList = data;
98240
98344
  const viewBox = options.view();
98241
98345
  if (viewBox.x1 - viewBox.x0 === 0 ||
98242
98346
  viewBox.y1 - viewBox.y0 === 0 ||
@@ -98246,43 +98350,46 @@
98246
98350
  viewBox.y1 - viewBox.y0 === Infinity) {
98247
98351
  return data;
98248
98352
  }
98249
- const startAngle = degreeToRadian((_a = options.startAngle) !== null && _a !== void 0 ? _a : -90);
98250
- const endAngle = degreeToRadian((_b = options.endAngle) !== null && _b !== void 0 ? _b : 270);
98353
+ const startAngle = degreeToRadian((_a = resolveOptionValue$1(options.startAngle)) !== null && _a !== void 0 ? _a : -90);
98354
+ const endAngle = degreeToRadian((_b = resolveOptionValue$1(options.endAngle)) !== null && _b !== void 0 ? _b : 270);
98251
98355
  const maxRadius = Math.max((viewBox.x1 - viewBox.x0) / 2, (viewBox.y1 - viewBox.y0) / 2);
98252
- const innerRadius = toPercent((_c = options.innerRadius) !== null && _c !== void 0 ? _c : 0, maxRadius);
98253
- const outerRadius = toPercent(options.outerRadius, maxRadius);
98356
+ const innerRadius = toPercent((_c = resolveOptionValue$1(options.innerRadius)) !== null && _c !== void 0 ? _c : 0, maxRadius);
98357
+ const outerRadius = toPercent(resolveOptionValue$1(options.outerRadius), maxRadius);
98358
+ const centerOption = resolveOptionValue$1(options.center);
98254
98359
  const center = [
98255
- isNumber$2((_d = options.center) === null || _d === void 0 ? void 0 : _d[0])
98256
- ? options.center[0]
98257
- : viewBox.x0 + toPercent((_f = (_e = options.center) === null || _e === void 0 ? void 0 : _e[0]) !== null && _f !== void 0 ? _f : '50%', viewBox.x1 - viewBox.x0),
98258
- isNumber$2((_g = options.center) === null || _g === void 0 ? void 0 : _g[1])
98259
- ? options.center[1]
98260
- : viewBox.y0 + toPercent((_j = (_h = options.center) === null || _h === void 0 ? void 0 : _h[1]) !== null && _j !== void 0 ? _j : '50%', viewBox.y1 - viewBox.y0)
98360
+ isNumber$2(centerOption === null || centerOption === void 0 ? void 0 : centerOption[0])
98361
+ ? centerOption[0]
98362
+ : viewBox.x0 + toPercent((_d = centerOption === null || centerOption === void 0 ? void 0 : centerOption[0]) !== null && _d !== void 0 ? _d : '50%', viewBox.x1 - viewBox.x0),
98363
+ isNumber$2(centerOption === null || centerOption === void 0 ? void 0 : centerOption[1])
98364
+ ? centerOption[1]
98365
+ : viewBox.y0 + toPercent((_e = centerOption === null || centerOption === void 0 ? void 0 : centerOption[1]) !== null && _e !== void 0 ? _e : '50%', viewBox.y1 - viewBox.y0)
98261
98366
  ];
98262
- const fieldAccessor = field$2(options.field);
98263
- const values = data.map(fieldAccessor);
98367
+ const fieldAccessor = field$2(resolveOptionValue$1(options.field));
98368
+ const values = dataList.map(fieldAccessor);
98264
98369
  const [min, max] = extent$2(values);
98265
98370
  const radiusScale = min === max
98266
98371
  ? (val) => (innerRadius + outerRadius) / 2
98267
98372
  : (val) => innerRadius + ((outerRadius - innerRadius) * (val - min)) / (max - min);
98268
- const sizeAccessor = !isNil$1(options.radiusField) ? field$2(options.radiusField) : fieldAccessor;
98269
- const defaultSize = (_l = (_k = options === null || options === void 0 ? void 0 : options.radiusRange) === null || _k === void 0 ? void 0 : _k[1]) !== null && _l !== void 0 ? _l : 5;
98373
+ const radiusField = resolveOptionValue$1(options.radiusField);
98374
+ const radiusRange = resolveOptionValue$1(options.radiusRange);
98375
+ const sizeAccessor = !isNil$1(radiusField) ? field$2(radiusField) : fieldAccessor;
98376
+ const defaultSize = (_f = radiusRange === null || radiusRange === void 0 ? void 0 : radiusRange[1]) !== null && _f !== void 0 ? _f : 5;
98270
98377
  let sizeScale = (datum) => defaultSize;
98271
98378
  if (sizeAccessor) {
98272
- const [minSize, maxSize] = sizeAccessor !== fieldAccessor ? extent$2(data.map(sizeAccessor)) : [min, max];
98273
- const minR = (_o = (_m = options.radiusRange) === null || _m === void 0 ? void 0 : _m[0]) !== null && _o !== void 0 ? _o : 5;
98274
- const maxR = (_q = (_p = options.radiusRange) === null || _p === void 0 ? void 0 : _p[1]) !== null && _q !== void 0 ? _q : 5;
98379
+ const [minSize, maxSize] = sizeAccessor !== fieldAccessor ? extent$2(dataList.map(sizeAccessor)) : [min, max];
98380
+ const minR = (_g = radiusRange === null || radiusRange === void 0 ? void 0 : radiusRange[0]) !== null && _g !== void 0 ? _g : 5;
98381
+ const maxR = (_h = radiusRange === null || radiusRange === void 0 ? void 0 : radiusRange[1]) !== null && _h !== void 0 ? _h : 5;
98275
98382
  if (minSize !== maxSize) {
98276
98383
  sizeScale = (datum) => minR + ((maxR - minR) * (sizeAccessor(datum) - minSize)) / (maxSize - minSize);
98277
98384
  }
98278
98385
  }
98279
98386
  const minAngle = Math.min(startAngle, endAngle);
98280
98387
  const maxAngle = Math.max(startAngle, endAngle);
98281
- const angles = getPartialAngles(minAngle, maxAngle, data.length);
98388
+ const angles = getPartialAngles(minAngle, maxAngle, dataList.length);
98282
98389
  const res = [];
98283
98390
  const searchStep = 60;
98284
98391
  const searchAngle = (maxAngle - minAngle) / searchStep;
98285
- data.forEach((datum, index) => {
98392
+ dataList.forEach((datum, index) => {
98286
98393
  const radius = radiusScale(values[index]);
98287
98394
  const size = sizeScale(datum);
98288
98395
  let x;
@@ -98355,15 +98462,20 @@
98355
98462
  return false;
98356
98463
  }
98357
98464
  return arr.some(entry => {
98358
- return Math.pow(item.x - entry.x, 2) + Math.pow(item.y - entry.y, 2) < Math.pow(item.size + entry.size, 2);
98465
+ const x = entry.x;
98466
+ const y = entry.y;
98467
+ const size = entry.size;
98468
+ return Math.pow(item.x - x, 2) + Math.pow(item.y - y, 2) < Math.pow(item.size + size, 2);
98359
98469
  });
98360
98470
  };
98361
98471
 
98472
+ const resolveOptionValue = (option) => (isFunction$1(option) ? option() : option);
98362
98473
  const correlationCenter = (data, options) => {
98363
98474
  if (!data || !isArray$1(data)) {
98364
98475
  return [];
98365
98476
  }
98366
- const { keyword, categoryField } = options;
98477
+ const keyword = resolveOptionValue(options.keyword);
98478
+ const categoryField = resolveOptionValue(options.categoryField);
98367
98479
  const nodeInfo = data[0].latestData[0];
98368
98480
  const centerInfo = {
98369
98481
  [categoryField]: keyword,
@@ -98524,7 +98636,6 @@
98524
98636
  this.setSizeRange(this._spec.sizeRange);
98525
98637
  }
98526
98638
  initData() {
98527
- var _a, _b, _c;
98528
98639
  super.initData();
98529
98640
  if (!this._data) {
98530
98641
  return;
@@ -98540,8 +98651,8 @@
98540
98651
  centerDataView.transform({
98541
98652
  type: 'correlationCenter',
98542
98653
  options: {
98543
- keyword: (_c = (_b = (_a = this._spec.centerLabel) === null || _a === void 0 ? void 0 : _a.style) === null || _b === void 0 ? void 0 : _b.text) !== null && _c !== void 0 ? _c : '',
98544
- categoryField: this._spec.categoryField
98654
+ keyword: () => { var _a, _b, _c; return (_c = (_b = (_a = this._spec.centerLabel) === null || _a === void 0 ? void 0 : _a.style) === null || _b === void 0 ? void 0 : _b.text) !== null && _c !== void 0 ? _c : ''; },
98655
+ categoryField: () => this._spec.categoryField
98545
98656
  }
98546
98657
  });
98547
98658
  this._centerSeriesData = new CompilableData(this._option, centerDataView);
@@ -98564,14 +98675,14 @@
98564
98675
  y1: this._viewBox.y2
98565
98676
  };
98566
98677
  },
98567
- field: this._spec.valueField,
98568
- radiusRange: this._spec.sizeRange,
98569
- radiusField: this._spec.sizeField,
98570
- center: [this._spec.centerX, this._spec.centerY],
98571
- innerRadius: this._spec.innerRadius,
98572
- outerRadius: this._spec.outerRadius,
98573
- startAngle: this._spec.startAngle,
98574
- endAngle: this._spec.endAngle
98678
+ field: () => this._spec.valueField,
98679
+ radiusRange: () => this._spec.sizeRange,
98680
+ radiusField: () => this._spec.sizeField,
98681
+ center: () => [this._spec.centerX, this._spec.centerY],
98682
+ innerRadius: () => this._spec.innerRadius,
98683
+ outerRadius: () => this._spec.outerRadius,
98684
+ startAngle: () => this._spec.startAngle,
98685
+ endAngle: () => this._spec.endAngle
98575
98686
  }
98576
98687
  });
98577
98688
  }
@@ -99349,9 +99460,10 @@
99349
99460
  }
99350
99461
 
99351
99462
  const vennLayout = (data, op) => {
99352
- const viewBox = op.getViewBox();
99463
+ const options = isFunction$1(op) ? op() : op;
99464
+ const viewBox = options.getViewBox();
99353
99465
  if (viewBox && (data === null || data === void 0 ? void 0 : data.length)) {
99354
- return vennTransform(Object.assign({ setField: op.setField, valueField: op.valueField }, viewBox), data);
99466
+ return vennTransform(Object.assign({ setField: options.setField, valueField: options.valueField }, viewBox), data);
99355
99467
  }
99356
99468
  return [];
99357
99469
  };
@@ -99434,7 +99546,7 @@
99434
99546
  registerDataSetInstanceTransform(this._dataSet, 'venn', vennLayout);
99435
99547
  (_a = this._data.getDataView()) === null || _a === void 0 ? void 0 : _a.transform({
99436
99548
  type: 'venn',
99437
- options: {
99549
+ options: () => ({
99438
99550
  getViewBox: () => {
99439
99551
  return this._viewBox.empty()
99440
99552
  ? null
@@ -99447,7 +99559,7 @@
99447
99559
  },
99448
99560
  setField: this._categoryField,
99449
99561
  valueField: this._valueField
99450
- }
99562
+ })
99451
99563
  });
99452
99564
  }
99453
99565
  compile() {
@@ -99867,7 +99979,7 @@
99867
99979
  return indicatorSpec;
99868
99980
  }
99869
99981
  _getDefaultSeriesSpec(spec, pickKeys) {
99870
- const series = super._getDefaultSeriesSpec(spec, ['radius', 'outerRadius', 'innerRadius', 'startAngle', 'endAngle', 'sortDataByAxis'], pickKeys);
99982
+ const series = super._getDefaultSeriesSpec(spec, ['radius', 'outerRadius', 'innerRadius', 'startAngle', 'endAngle', 'centerX', 'centerY', 'sortDataByAxis'], pickKeys);
99871
99983
  return series;
99872
99984
  }
99873
99985
  transformSpec(spec) {
@@ -99891,7 +100003,7 @@
99891
100003
  return false;
99892
100004
  }
99893
100005
  _getDefaultSeriesSpec(spec) {
99894
- const series = super._getDefaultSeriesSpec(spec, ['startAngle', 'endAngle', 'centerX', 'centerY']);
100006
+ const series = super._getDefaultSeriesSpec(spec, ['startAngle', 'endAngle', 'centerX', 'centerY', 'clamp']);
99895
100007
  series.categoryField = spec.categoryField || spec.radiusField;
99896
100008
  series.valueField = spec.valueField || spec.angleField;
99897
100009
  return series;
@@ -100029,6 +100141,7 @@
100029
100141
  _getDefaultSeriesSpec(spec) {
100030
100142
  var _a, _b, _c;
100031
100143
  const series = super._getDefaultSeriesSpec(spec);
100144
+ this._addSeriesRelatedSpecKeys(['radius', 'outerRadius', 'innerRadius']);
100032
100145
  series.radius = (_a = spec.radius) !== null && _a !== void 0 ? _a : POLAR_DEFAULT_RADIUS;
100033
100146
  series.outerRadius = (_b = spec.outerRadius) !== null && _b !== void 0 ? _b : POLAR_DEFAULT_RADIUS;
100034
100147
  series.innerRadius = (_c = spec.innerRadius) !== null && _c !== void 0 ? _c : 0;
@@ -100192,6 +100305,7 @@
100192
100305
  var _a, _b, _c, _d;
100193
100306
  const series = super._getDefaultSeriesSpec(spec);
100194
100307
  const areaTheme = (_b = (_a = this._option).getTheme) === null || _b === void 0 ? void 0 : _b.call(_a, 'series', 'radar', 'area');
100308
+ this._addSeriesRelatedSpecKeys(['line', 'point', 'area']);
100195
100309
  series.line = spec.line;
100196
100310
  series.point = spec.point;
100197
100311
  series.stack = spec.stack;
@@ -100697,7 +100811,7 @@
100697
100811
  _getDefaultSeriesSpec(spec) {
100698
100812
  var _a, _b;
100699
100813
  const series = super._getDefaultSeriesSpec(spec);
100700
- this._addSeriesRelatedSpecKeys(['cornerRadius']);
100814
+ this._addSeriesRelatedSpecKeys(['cornerRadius', 'progress', 'track', 'roundCap']);
100701
100815
  series.progress = spec.progress;
100702
100816
  series.track = spec.track;
100703
100817
  series.tickMask = spec.tickMask;
@@ -100746,6 +100860,7 @@
100746
100860
  class GaugeChartSpecTransformer extends ProgressLikeChartSpecTransformer {
100747
100861
  _getDefaultSeriesSpec(spec) {
100748
100862
  const series = super._getDefaultSeriesSpec(spec);
100863
+ this._addSeriesRelatedSpecKeys(['pin', 'pinBackground', 'pointer']);
100749
100864
  series.radiusField = spec.radiusField;
100750
100865
  series.pin = spec.pin;
100751
100866
  series.pinBackground = spec.pinBackground;
@@ -100987,6 +101102,7 @@
100987
101102
  var _a, _b;
100988
101103
  const series = super._getDefaultSeriesSpec(spec, ['bandWidth', 'progress', 'track', 'clamp']);
100989
101104
  series.direction = (_a = spec.direction) !== null && _a !== void 0 ? _a : 'horizontal';
101105
+ this._addSeriesRelatedSpecKeys(['cornerRadius']);
100990
101106
  series.cornerRadius = (_b = spec.cornerRadius) !== null && _b !== void 0 ? _b : 0;
100991
101107
  return series;
100992
101108
  }
@@ -101502,6 +101618,7 @@
101502
101618
  _getDefaultSeriesSpec(spec) {
101503
101619
  var _a, _b;
101504
101620
  const series = super._getDefaultSeriesSpec(spec);
101621
+ this._addSeriesRelatedSpecKeys(['area', 'point', 'line']);
101505
101622
  series.area = spec.area;
101506
101623
  series.point = spec.point;
101507
101624
  series.line = spec.line;
@@ -106682,7 +106799,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
106682
106799
  };
106683
106800
 
106684
106801
  const indicatorMapper = (data, op) => {
106685
- const { datum, title, content } = op;
106802
+ const { datum, title, content } = isFunction$1(op) ? op() : op;
106686
106803
  const mappedData = [];
106687
106804
  const datumResult = datum.call(null);
106688
106805
  if (title.visible) {
@@ -106814,11 +106931,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
106814
106931
  const displayData = new DataView(this._option.dataSet, { name: `${this.type}_${this.id}_data` });
106815
106932
  displayData.transform({
106816
106933
  type: 'indicatorFilter',
106817
- options: {
106934
+ options: () => ({
106818
106935
  title: this._title,
106819
106936
  content: this._content,
106820
106937
  datum: () => this._activeDatum
106821
- }
106938
+ })
106822
106939
  });
106823
106940
  displayData.target.addListener('change', this.updateDatum.bind(this));
106824
106941
  this._displayData = new CompilableData(this._option, displayData);