@visactor/vchart 1.4.0 → 1.4.1-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/build/es5/index.js +1 -1
  2. package/build/index.js +177 -165
  3. package/build/index.min.js +1 -1
  4. package/build/tsconfig.tsbuildinfo +1 -1
  5. package/cjs/chart/base-chart.d.ts +4 -4
  6. package/cjs/chart/base-chart.js +17 -12
  7. package/cjs/chart/base-chart.js.map +1 -1
  8. package/cjs/chart/interface/chart.d.ts +1 -1
  9. package/cjs/chart/interface/chart.js.map +1 -1
  10. package/cjs/chart/rose/rose.js +1 -1
  11. package/cjs/chart/rose/rose.js.map +1 -1
  12. package/cjs/component/axis/cartesian/band-axis.js +2 -2
  13. package/cjs/component/axis/cartesian/band-axis.js.map +1 -1
  14. package/cjs/component/axis/cartesian/config.d.ts +1 -0
  15. package/cjs/component/axis/cartesian/config.js +3 -2
  16. package/cjs/component/axis/cartesian/config.js.map +1 -1
  17. package/cjs/component/axis/interface.d.ts +1 -0
  18. package/cjs/component/axis/interface.js.map +1 -1
  19. package/cjs/component/axis/polar/axis.js +5 -4
  20. package/cjs/component/axis/polar/axis.js.map +1 -1
  21. package/cjs/component/axis/polar/band-axis.d.ts +2 -2
  22. package/cjs/component/axis/polar/band-axis.js +4 -3
  23. package/cjs/component/axis/polar/band-axis.js.map +1 -1
  24. package/cjs/component/axis/polar/config.d.ts +1 -0
  25. package/cjs/component/axis/polar/config.js +3 -2
  26. package/cjs/component/axis/polar/config.js.map +1 -1
  27. package/cjs/component/data-zoom/data-zoom/data-zoom.js +1 -1
  28. package/cjs/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
  29. package/cjs/component/label/label.d.ts +1 -1
  30. package/cjs/component/label/label.js +28 -20
  31. package/cjs/component/label/label.js.map +1 -1
  32. package/cjs/component/marker/interface.d.ts +5 -2
  33. package/cjs/component/marker/interface.js.map +1 -1
  34. package/cjs/component/marker/mark-area/interface/theme.d.ts +2 -2
  35. package/cjs/component/marker/mark-area/interface/theme.js.map +1 -1
  36. package/cjs/component/marker/mark-area/mark-area.js.map +1 -1
  37. package/cjs/core/index.d.ts +1 -1
  38. package/cjs/core/index.js +1 -1
  39. package/cjs/core/index.js.map +1 -1
  40. package/cjs/core/vchart.js +2 -1
  41. package/cjs/core/vchart.js.map +1 -1
  42. package/cjs/model/base-model.d.ts +1 -0
  43. package/cjs/model/base-model.js +3 -0
  44. package/cjs/model/base-model.js.map +1 -1
  45. package/cjs/model/interface.d.ts +1 -0
  46. package/cjs/model/interface.js.map +1 -1
  47. package/cjs/series/cartesian/cartesian.js.map +1 -1
  48. package/cjs/series/rose/rose.js +2 -2
  49. package/cjs/series/rose/rose.js.map +1 -1
  50. package/cjs/series/word-cloud/base.js +39 -35
  51. package/cjs/series/word-cloud/base.js.map +1 -1
  52. package/cjs/series/word-cloud/word-cloud-3d.js +39 -35
  53. package/cjs/series/word-cloud/word-cloud-3d.js.map +1 -1
  54. package/cjs/theme/builtin/common/component/axis/common-axis.js +0 -2
  55. package/cjs/theme/builtin/common/component/axis/common-axis.js.map +1 -1
  56. package/cjs/theme/builtin/common/component/crosshair.js +1 -2
  57. package/cjs/theme/builtin/common/component/crosshair.js.map +1 -1
  58. package/cjs/theme/builtin/common/component/data-zoom.js +0 -2
  59. package/cjs/theme/builtin/common/component/data-zoom.js.map +1 -1
  60. package/cjs/theme/builtin/common/component/indicator.js +0 -2
  61. package/cjs/theme/builtin/common/component/indicator.js.map +1 -1
  62. package/cjs/theme/builtin/common/component/legend/continuous.js +0 -4
  63. package/cjs/theme/builtin/common/component/legend/continuous.js.map +1 -1
  64. package/cjs/theme/builtin/common/component/legend/discrete-legend.js +0 -2
  65. package/cjs/theme/builtin/common/component/legend/discrete-legend.js.map +1 -1
  66. package/cjs/theme/builtin/common/component/map-label.js +2 -4
  67. package/cjs/theme/builtin/common/component/map-label.js.map +1 -1
  68. package/cjs/theme/builtin/common/component/mark-area.js +0 -1
  69. package/cjs/theme/builtin/common/component/mark-area.js.map +1 -1
  70. package/cjs/theme/builtin/common/component/mark-line.js +0 -1
  71. package/cjs/theme/builtin/common/component/mark-line.js.map +1 -1
  72. package/cjs/theme/builtin/common/component/poptip.js +0 -2
  73. package/cjs/theme/builtin/common/component/poptip.js.map +1 -1
  74. package/cjs/theme/builtin/common/component/title.js +0 -2
  75. package/cjs/theme/builtin/common/component/title.js.map +1 -1
  76. package/cjs/theme/builtin/common/component/tooltip.js +0 -3
  77. package/cjs/theme/builtin/common/component/tooltip.js.map +1 -1
  78. package/cjs/theme/builtin/common/component/total-label.js +0 -1
  79. package/cjs/theme/builtin/common/component/total-label.js.map +1 -1
  80. package/cjs/theme/builtin/common/mark.js +0 -2
  81. package/cjs/theme/builtin/common/mark.js.map +1 -1
  82. package/cjs/theme/builtin/common/series/circle-packing.js +1 -2
  83. package/cjs/theme/builtin/common/series/circle-packing.js.map +1 -1
  84. package/cjs/theme/builtin/common/series/dot.js +2 -4
  85. package/cjs/theme/builtin/common/series/dot.js.map +1 -1
  86. package/cjs/theme/builtin/common/series/funnel.js +0 -2
  87. package/cjs/theme/builtin/common/series/funnel.js.map +1 -1
  88. package/cjs/theme/builtin/common/series/funnel3d.js +0 -2
  89. package/cjs/theme/builtin/common/series/funnel3d.js.map +1 -1
  90. package/cjs/theme/builtin/common/series/sunburst.js +1 -2
  91. package/cjs/theme/builtin/common/series/sunburst.js.map +1 -1
  92. package/cjs/theme/builtin/common/series/treemap.js +1 -3
  93. package/cjs/theme/builtin/common/series/treemap.js.map +1 -1
  94. package/cjs/theme/builtin/common/series/waterfall.js +1 -2
  95. package/cjs/theme/builtin/common/series/waterfall.js.map +1 -1
  96. package/esm/chart/base-chart.d.ts +4 -4
  97. package/esm/chart/base-chart.js +18 -11
  98. package/esm/chart/base-chart.js.map +1 -1
  99. package/esm/chart/interface/chart.d.ts +1 -1
  100. package/esm/chart/interface/chart.js.map +1 -1
  101. package/esm/chart/rose/rose.js +2 -2
  102. package/esm/chart/rose/rose.js.map +1 -1
  103. package/esm/component/axis/cartesian/band-axis.js +3 -3
  104. package/esm/component/axis/cartesian/band-axis.js.map +1 -1
  105. package/esm/component/axis/cartesian/config.d.ts +1 -0
  106. package/esm/component/axis/cartesian/config.js +2 -0
  107. package/esm/component/axis/cartesian/config.js.map +1 -1
  108. package/esm/component/axis/interface.d.ts +1 -0
  109. package/esm/component/axis/interface.js.map +1 -1
  110. package/esm/component/axis/polar/axis.js +6 -3
  111. package/esm/component/axis/polar/axis.js.map +1 -1
  112. package/esm/component/axis/polar/band-axis.d.ts +2 -2
  113. package/esm/component/axis/polar/band-axis.js +5 -4
  114. package/esm/component/axis/polar/band-axis.js.map +1 -1
  115. package/esm/component/axis/polar/config.d.ts +1 -0
  116. package/esm/component/axis/polar/config.js +2 -0
  117. package/esm/component/axis/polar/config.js.map +1 -1
  118. package/esm/component/data-zoom/data-zoom/data-zoom.js +1 -1
  119. package/esm/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
  120. package/esm/component/label/label.d.ts +1 -1
  121. package/esm/component/label/label.js +27 -19
  122. package/esm/component/label/label.js.map +1 -1
  123. package/esm/component/marker/interface.d.ts +5 -2
  124. package/esm/component/marker/interface.js.map +1 -1
  125. package/esm/component/marker/mark-area/interface/theme.d.ts +2 -2
  126. package/esm/component/marker/mark-area/interface/theme.js.map +1 -1
  127. package/esm/component/marker/mark-area/mark-area.js.map +1 -1
  128. package/esm/core/index.d.ts +1 -1
  129. package/esm/core/index.js +1 -1
  130. package/esm/core/index.js.map +1 -1
  131. package/esm/core/vchart.js +3 -2
  132. package/esm/core/vchart.js.map +1 -1
  133. package/esm/model/base-model.d.ts +1 -0
  134. package/esm/model/base-model.js +3 -0
  135. package/esm/model/base-model.js.map +1 -1
  136. package/esm/model/interface.d.ts +1 -0
  137. package/esm/model/interface.js.map +1 -1
  138. package/esm/series/cartesian/cartesian.js.map +1 -1
  139. package/esm/series/rose/rose.js +2 -2
  140. package/esm/series/rose/rose.js.map +1 -1
  141. package/esm/series/word-cloud/base.js +38 -34
  142. package/esm/series/word-cloud/base.js.map +1 -1
  143. package/esm/series/word-cloud/word-cloud-3d.js +38 -34
  144. package/esm/series/word-cloud/word-cloud-3d.js.map +1 -1
  145. package/esm/theme/builtin/common/component/axis/common-axis.js +0 -2
  146. package/esm/theme/builtin/common/component/axis/common-axis.js.map +1 -1
  147. package/esm/theme/builtin/common/component/crosshair.js +1 -2
  148. package/esm/theme/builtin/common/component/crosshair.js.map +1 -1
  149. package/esm/theme/builtin/common/component/data-zoom.js +0 -2
  150. package/esm/theme/builtin/common/component/data-zoom.js.map +1 -1
  151. package/esm/theme/builtin/common/component/indicator.js +0 -2
  152. package/esm/theme/builtin/common/component/indicator.js.map +1 -1
  153. package/esm/theme/builtin/common/component/legend/continuous.js +0 -4
  154. package/esm/theme/builtin/common/component/legend/continuous.js.map +1 -1
  155. package/esm/theme/builtin/common/component/legend/discrete-legend.js +0 -2
  156. package/esm/theme/builtin/common/component/legend/discrete-legend.js.map +1 -1
  157. package/esm/theme/builtin/common/component/map-label.js +2 -4
  158. package/esm/theme/builtin/common/component/map-label.js.map +1 -1
  159. package/esm/theme/builtin/common/component/mark-area.js +0 -1
  160. package/esm/theme/builtin/common/component/mark-area.js.map +1 -1
  161. package/esm/theme/builtin/common/component/mark-line.js +0 -1
  162. package/esm/theme/builtin/common/component/mark-line.js.map +1 -1
  163. package/esm/theme/builtin/common/component/poptip.js +0 -2
  164. package/esm/theme/builtin/common/component/poptip.js.map +1 -1
  165. package/esm/theme/builtin/common/component/title.js +0 -2
  166. package/esm/theme/builtin/common/component/title.js.map +1 -1
  167. package/esm/theme/builtin/common/component/tooltip.js +0 -3
  168. package/esm/theme/builtin/common/component/tooltip.js.map +1 -1
  169. package/esm/theme/builtin/common/component/total-label.js +0 -1
  170. package/esm/theme/builtin/common/component/total-label.js.map +1 -1
  171. package/esm/theme/builtin/common/mark.js +0 -2
  172. package/esm/theme/builtin/common/mark.js.map +1 -1
  173. package/esm/theme/builtin/common/series/circle-packing.js +1 -2
  174. package/esm/theme/builtin/common/series/circle-packing.js.map +1 -1
  175. package/esm/theme/builtin/common/series/dot.js +2 -4
  176. package/esm/theme/builtin/common/series/dot.js.map +1 -1
  177. package/esm/theme/builtin/common/series/funnel.js +0 -2
  178. package/esm/theme/builtin/common/series/funnel.js.map +1 -1
  179. package/esm/theme/builtin/common/series/funnel3d.js +0 -2
  180. package/esm/theme/builtin/common/series/funnel3d.js.map +1 -1
  181. package/esm/theme/builtin/common/series/sunburst.js +1 -2
  182. package/esm/theme/builtin/common/series/sunburst.js.map +1 -1
  183. package/esm/theme/builtin/common/series/treemap.js +1 -3
  184. package/esm/theme/builtin/common/series/treemap.js.map +1 -1
  185. package/esm/theme/builtin/common/series/waterfall.js +1 -2
  186. package/esm/theme/builtin/common/series/waterfall.js.map +1 -1
  187. package/package.json +9 -9
package/build/index.js CHANGED
@@ -38138,8 +38138,7 @@
38138
38138
  textAlign: 'left',
38139
38139
  textBaseline: 'middle',
38140
38140
  fontSize: THEME_CONSTANTS.l5FontSize,
38141
- lineHeight: THEME_CONSTANTS.l5LineHeight,
38142
- fontFamily: THEME_CONSTANTS.defaultFontFamily
38141
+ lineHeight: THEME_CONSTANTS.l5LineHeight
38143
38142
  }
38144
38143
  },
38145
38144
  subTitle: {
@@ -38147,8 +38146,7 @@
38147
38146
  textAlign: 'left',
38148
38147
  textBaseline: 'top',
38149
38148
  fontSize: THEME_CONSTANTS.l5FontSize,
38150
- lineHeight: THEME_CONSTANTS.l5LineHeight,
38151
- fontFamily: THEME_CONSTANTS.defaultFontFamily
38149
+ lineHeight: THEME_CONSTANTS.l5LineHeight
38152
38150
  }
38153
38151
  }
38154
38152
  };
@@ -38170,7 +38168,6 @@
38170
38168
  style: {
38171
38169
  fontSize: THEME_CONSTANTS.l4FontSize,
38172
38170
  lineHeight: THEME_CONSTANTS.l4LineHeight,
38173
- fontFamily: THEME_CONSTANTS.defaultFontFamily,
38174
38171
  fill: '#707070'
38175
38172
  },
38176
38173
  line: {
@@ -38183,7 +38180,6 @@
38183
38180
  style: {
38184
38181
  fontSize: THEME_CONSTANTS.l4FontSize,
38185
38182
  lineHeight: THEME_CONSTANTS.l4LineHeight,
38186
- fontFamily: THEME_CONSTANTS.defaultFontFamily,
38187
38183
  fill: '#707070',
38188
38184
  textBaseline: 'middle'
38189
38185
  }
@@ -38207,7 +38203,6 @@
38207
38203
  style: {
38208
38204
  fontSize: THEME_CONSTANTS.l4FontSize,
38209
38205
  lineHeight: THEME_CONSTANTS.l4LineHeight,
38210
- fontFamily: THEME_CONSTANTS.defaultFontFamily,
38211
38206
  fill: '#707070'
38212
38207
  },
38213
38208
  line: {
@@ -38220,7 +38215,6 @@
38220
38215
  style: {
38221
38216
  fontSize: THEME_CONSTANTS.l4FontSize,
38222
38217
  lineHeight: THEME_CONSTANTS.l4LineHeight,
38223
- fontFamily: THEME_CONSTANTS.defaultFontFamily,
38224
38218
  fill: '#707070',
38225
38219
  textBaseline: 'middle'
38226
38220
  }
@@ -38423,8 +38417,7 @@
38423
38417
  style: {
38424
38418
  fill: 'black',
38425
38419
  fontSize: THEME_CONSTANTS.l4FontSize,
38426
- lineHeight: THEME_CONSTANTS.l4LineHeight,
38427
- fontFamily: THEME_CONSTANTS.defaultFontFamily
38420
+ lineHeight: THEME_CONSTANTS.l4LineHeight
38428
38421
  }
38429
38422
  },
38430
38423
  label: {
@@ -38469,8 +38462,7 @@
38469
38462
  textBaseline: 'middle',
38470
38463
  textAlign: 'center',
38471
38464
  fontSize: THEME_CONSTANTS.l5FontSize,
38472
- lineHeight: THEME_CONSTANTS.l5LineHeight,
38473
- fontFamily: THEME_CONSTANTS.defaultFontFamily
38465
+ lineHeight: THEME_CONSTANTS.l5LineHeight
38474
38466
  }
38475
38467
  },
38476
38468
  nonLeafLabel: {
@@ -38481,7 +38473,6 @@
38481
38473
  lineWidth: 2,
38482
38474
  fontSize: THEME_CONSTANTS.l5FontSize,
38483
38475
  lineHeight: THEME_CONSTANTS.l5LineHeight,
38484
- fontFamily: THEME_CONSTANTS.defaultFontFamily,
38485
38476
  textBaseline: 'middle',
38486
38477
  textAlign: 'center'
38487
38478
  }
@@ -40315,9 +40306,9 @@
40315
40306
  });
40316
40307
  (null === (_b = viewOptions.options3d) || void 0 === _b ? void 0 : _b.enable) && stage.set3dOptions(viewOptions.options3d), stage.enableIncrementalAutoRender(), this._viewBox = viewOptions.viewBox, this._view.emit(HOOK_EVENT.AFTER_CREATE_VRENDER_STAGE), this._view.emit(HOOK_EVENT.BEFORE_CREATE_VRENDER_LAYER);
40317
40308
  const layer = null !== (_c = viewOptions.layer) && void 0 !== _c ? _c : stage.defaultLayer;
40318
- if (this._view.emit(HOOK_EVENT.AFTER_CREATE_VRENDER_LAYER), (null === (_d = this._eventConfig) || void 0 === _d ? void 0 : _d.drag) && (this._dragController = new DragNDrop(layer)), null === (_e = this._eventConfig) || void 0 === _e ? void 0 : _e.gesture) {
40309
+ if (this._view.emit(HOOK_EVENT.AFTER_CREATE_VRENDER_LAYER), (null === (_d = this._eventConfig) || void 0 === _d ? void 0 : _d.drag) && (this._dragController = new DragNDrop(stage)), null === (_e = this._eventConfig) || void 0 === _e ? void 0 : _e.gesture) {
40319
40310
  const gestureConfig = isObject$g(this._eventConfig.gesture) ? this._eventConfig.gesture : {};
40320
- this._gestureController = new Gesture(layer, gestureConfig);
40311
+ this._gestureController = new Gesture(stage, gestureConfig);
40321
40312
  }
40322
40313
  return {
40323
40314
  stage: stage,
@@ -53995,8 +53986,11 @@
53995
53986
  const generateLabelAttributes = (marks, groupSize, encoder, labelStyle, parameters, theme) => {
53996
53987
  var _a;
53997
53988
  const labelTheme = null === (_a = null == theme ? void 0 : theme.components) || void 0 === _a ? void 0 : _a.dataLabel,
53998
- dataLabels = marks.map(mark => {
53989
+ dataLabels = marks.map((mark, index) => {
53999
53990
  var _a, _b, _c, _d, _e, _f;
53991
+ const labelParameters = Object.assign(Object.assign({}, parameters), {
53992
+ labelIndex: index
53993
+ });
54000
53994
  let currentTheme = {};
54001
53995
  switch (mark.markType) {
54002
53996
  case GrammarMarkType.line:
@@ -54024,12 +54018,12 @@
54024
54018
  mark.elements.forEach(element => {
54025
54019
  var _a, _b;
54026
54020
  if ("willRelease" !== element.getGraphicItem().releaseStatus) {
54027
- const attributes = invokeEncoder(encoder, element.getDatum(), element, parameters),
54021
+ const attributes = invokeEncoder(encoder, element.getDatum(), element, labelParameters),
54028
54022
  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);
54029
54023
  data.push(datum);
54030
54024
  }
54031
54025
  });
54032
- const addition = invokeFunctionType(labelStyle, parameters, mark),
54026
+ const addition = invokeFunctionType(labelStyle, labelParameters, mark),
54033
54027
  graphicItemName = null === (_f = mark.graphicItem) || void 0 === _f ? void 0 : _f.name;
54034
54028
  return merge$1({}, currentTheme, {
54035
54029
  data: data,
@@ -55412,8 +55406,7 @@
55412
55406
  cursor: 'pointer',
55413
55407
  fill: { type: 'palette', key: 'primaryFontColor' },
55414
55408
  fontSize: THEME_CONSTANTS.l5FontSize,
55415
- lineHeight: THEME_CONSTANTS.l5LineHeight,
55416
- fontFamily: THEME_CONSTANTS.defaultFontFamily
55409
+ lineHeight: THEME_CONSTANTS.l5LineHeight
55417
55410
  }
55418
55411
  }
55419
55412
  };
@@ -55466,8 +55459,7 @@
55466
55459
  stroke: 'white',
55467
55460
  lineWidth: 2,
55468
55461
  fontSize: THEME_CONSTANTS.l5FontSize,
55469
- lineHeight: THEME_CONSTANTS.l5LineHeight,
55470
- fontFamily: THEME_CONSTANTS.defaultFontFamily
55462
+ lineHeight: THEME_CONSTANTS.l5LineHeight
55471
55463
  }
55472
55464
  }
55473
55465
  };
@@ -55552,7 +55544,6 @@
55552
55544
  style: {
55553
55545
  fontSize: THEME_CONSTANTS.l4FontSize,
55554
55546
  lineHeight: THEME_CONSTANTS.l4LineHeight,
55555
- fontFamily: THEME_CONSTANTS.defaultFontFamily,
55556
55547
  fontWeight: 'normal',
55557
55548
  fillOpacity: 1
55558
55549
  }
@@ -55562,7 +55553,6 @@
55562
55553
  label: {
55563
55554
  style: {
55564
55555
  fontSize: THEME_CONSTANTS.l4FontSize,
55565
- fontFamily: THEME_CONSTANTS.defaultFontFamily,
55566
55556
  fontWeight: 'normal',
55567
55557
  fillOpacity: 1
55568
55558
  }
@@ -55705,7 +55695,6 @@
55705
55695
  space: 10,
55706
55696
  style: {
55707
55697
  fontSize: THEME_CONSTANTS.l5FontSize,
55708
- fontFamily: THEME_CONSTANTS.defaultFontFamily,
55709
55698
  fill: { type: 'palette', key: 'axisFontColor' },
55710
55699
  fontWeight: 'normal',
55711
55700
  fillOpacity: 1
@@ -55716,7 +55705,6 @@
55716
55705
  style: {
55717
55706
  fontSize: THEME_CONSTANTS.l5FontSize,
55718
55707
  lineHeight: THEME_CONSTANTS.l5LineHeight,
55719
- fontFamily: THEME_CONSTANTS.defaultFontFamily,
55720
55708
  fill: { type: 'palette', key: 'secondaryFontColor' },
55721
55709
  fontWeight: 'normal',
55722
55710
  fillOpacity: 1
@@ -55784,8 +55772,7 @@
55784
55772
  style: {
55785
55773
  fontWeight: 'normal',
55786
55774
  fill: { type: 'palette', key: 'labelReverseFontColor' },
55787
- fontSize: THEME_CONSTANTS.l5FontSize,
55788
- fontFamily: THEME_CONSTANTS.defaultFontFamily
55775
+ fontSize: THEME_CONSTANTS.l5FontSize
55789
55776
  },
55790
55777
  labelBackground: {
55791
55778
  padding: {
@@ -55928,7 +55915,6 @@
55928
55915
  style: {
55929
55916
  fontSize: THEME_CONSTANTS.l5FontSize,
55930
55917
  lineHeight: THEME_CONSTANTS.l5LineHeight,
55931
- fontFamily: THEME_CONSTANTS.defaultFontFamily,
55932
55918
  fill: { type: 'palette', key: 'secondaryFontColor', default: '#89909d' }
55933
55919
  }
55934
55920
  },
@@ -55937,7 +55923,6 @@
55937
55923
  style: {
55938
55924
  fontSize: THEME_CONSTANTS.l5FontSize,
55939
55925
  lineHeight: THEME_CONSTANTS.l5LineHeight,
55940
- fontFamily: THEME_CONSTANTS.defaultFontFamily,
55941
55926
  fill: { type: 'palette', key: 'secondaryFontColor', default: '#89909d' }
55942
55927
  }
55943
55928
  },
@@ -55964,7 +55949,6 @@
55964
55949
  autoFit: false,
55965
55950
  style: {
55966
55951
  fontSize: THEME_CONSTANTS.l1FontSize,
55967
- fontFamily: THEME_CONSTANTS.defaultFontFamily,
55968
55952
  fill: { type: 'palette', key: ['titleFontColor', 'primaryFontColor'] },
55969
55953
  fontWeight: 'normal',
55970
55954
  fillOpacity: 1,
@@ -55976,7 +55960,6 @@
55976
55960
  visible: true,
55977
55961
  style: {
55978
55962
  fontSize: THEME_CONSTANTS.l2FontSize,
55979
- fontFamily: THEME_CONSTANTS.defaultFontFamily,
55980
55963
  fill: { type: 'palette', key: 'secondaryFontColor' },
55981
55964
  fontWeight: 'normal',
55982
55965
  fillOpacity: 1,
@@ -55996,7 +55979,6 @@
55996
55979
  textStyle: {
55997
55980
  fontSize: THEME_CONSTANTS.l5FontSize,
55998
55981
  lineHeight: THEME_CONSTANTS.l5LineHeight,
55999
- fontFamily: THEME_CONSTANTS.defaultFontFamily,
56000
55982
  fontWeight: 'normal',
56001
55983
  fill: { type: 'palette', key: ['titleFontColor', 'primaryFontColor'] }
56002
55984
  },
@@ -56009,7 +55991,6 @@
56009
55991
  style: {
56010
55992
  fontSize: THEME_CONSTANTS.l5FontSize,
56011
55993
  lineHeight: THEME_CONSTANTS.l5LineHeight,
56012
- fontFamily: THEME_CONSTANTS.defaultFontFamily,
56013
55994
  fontWeight: 'normal',
56014
55995
  fill: { type: 'palette', key: 'secondaryFontColor', default: '#89909d' }
56015
55996
  },
@@ -56019,7 +56000,6 @@
56019
56000
  style: {
56020
56001
  fontSize: THEME_CONSTANTS.l5FontSize,
56021
56002
  lineHeight: THEME_CONSTANTS.l5LineHeight,
56022
- fontFamily: THEME_CONSTANTS.defaultFontFamily,
56023
56003
  fontWeight: 'normal',
56024
56004
  fill: { type: 'palette', key: 'secondaryFontColor', default: '#89909d' }
56025
56005
  },
@@ -56029,7 +56009,6 @@
56029
56009
  style: {
56030
56010
  fontSize: THEME_CONSTANTS.l5FontSize,
56031
56011
  lineHeight: THEME_CONSTANTS.l5LineHeight,
56032
- fontFamily: THEME_CONSTANTS.defaultFontFamily,
56033
56012
  fontWeight: 'normal',
56034
56013
  fill: { type: 'palette', key: 'secondaryFontColor', default: '#89909d' }
56035
56014
  },
@@ -56079,7 +56058,6 @@
56079
56058
  textStyle: {
56080
56059
  fontSize: THEME_CONSTANTS.l5FontSize,
56081
56060
  lineHeight: THEME_CONSTANTS.l5LineHeight,
56082
- fontFamily: THEME_CONSTANTS.defaultFontFamily,
56083
56061
  fill: { type: 'palette', key: ['titleFontColor', 'primaryFontColor'] },
56084
56062
  fontWeight: 'normal'
56085
56063
  },
@@ -56120,7 +56098,6 @@
56120
56098
  fill: { type: 'palette', key: 'secondaryFontColor', default: '#89909d' },
56121
56099
  fontSize: THEME_CONSTANTS.l5FontSize,
56122
56100
  lineHeight: THEME_CONSTANTS.l5LineHeight,
56123
- fontFamily: THEME_CONSTANTS.defaultFontFamily,
56124
56101
  opacity: 1
56125
56102
  },
56126
56103
  state: {
@@ -56186,8 +56163,7 @@
56186
56163
  textBaseline: 'middle',
56187
56164
  textAlign: 'left',
56188
56165
  fill: 'black',
56189
- fontSize: THEME_CONSTANTS.l6FontSize,
56190
- fontFamily: THEME_CONSTANTS.defaultFontFamily
56166
+ fontSize: THEME_CONSTANTS.l6FontSize
56191
56167
  }
56192
56168
  },
56193
56169
  valueLabel: {
@@ -56196,8 +56172,7 @@
56196
56172
  textBaseline: 'middle',
56197
56173
  textAlign: 'left',
56198
56174
  fill: 'black',
56199
- fontSize: THEME_CONSTANTS.l6FontSize,
56200
- fontFamily: THEME_CONSTANTS.defaultFontFamily
56175
+ fontSize: THEME_CONSTANTS.l6FontSize
56201
56176
  }
56202
56177
  },
56203
56178
  background: {
@@ -56228,7 +56203,6 @@
56228
56203
  label: {
56229
56204
  style: {
56230
56205
  fontSize: THEME_CONSTANTS.l4FontSize,
56231
- fontFamily: THEME_CONSTANTS.defaultFontFamily,
56232
56206
  fontWeight: 'normal',
56233
56207
  fontStyle: 'normal',
56234
56208
  fill: { type: 'palette', key: 'labelReverseFontColor' },
@@ -56281,7 +56255,6 @@
56281
56255
  refY: 5,
56282
56256
  style: {
56283
56257
  fontSize: THEME_CONSTANTS.l4FontSize,
56284
- fontFamily: THEME_CONSTANTS.defaultFontFamily,
56285
56258
  fontWeight: 'normal',
56286
56259
  fontStyle: 'normal',
56287
56260
  fill: { type: 'palette', key: 'labelReverseFontColor' },
@@ -56399,13 +56372,11 @@
56399
56372
  textStyle: {
56400
56373
  fontSize: THEME_CONSTANTS.l3FontSize,
56401
56374
  lineHeight: THEME_CONSTANTS.l3LineHeight,
56402
- fontFamily: THEME_CONSTANTS.defaultFontFamily,
56403
56375
  fill: { type: 'palette', key: ['titleFontColor', 'primaryFontColor'] }
56404
56376
  },
56405
56377
  subtextStyle: {
56406
56378
  fontSize: THEME_CONSTANTS.l4FontSize,
56407
56379
  lineHeight: THEME_CONSTANTS.l4LineHeight,
56408
- fontFamily: THEME_CONSTANTS.defaultFontFamily,
56409
56380
  fill: { type: 'palette', key: 'secondaryFontColor' }
56410
56381
  }
56411
56382
  };
@@ -56440,7 +56411,6 @@
56440
56411
  titleLabel: {
56441
56412
  fontSize: THEME_CONSTANTS.l4FontSize,
56442
56413
  lineHeight: THEME_CONSTANTS.l4LineHeight,
56443
- fontFamily: THEME_CONSTANTS.defaultFontFamily,
56444
56414
  fontColor: { type: 'palette', key: ['titleFontColor', 'primaryFontColor'] },
56445
56415
  fontWeight: 'bold',
56446
56416
  textAlign: 'left',
@@ -56454,7 +56424,6 @@
56454
56424
  keyLabel: {
56455
56425
  fontSize: THEME_CONSTANTS.l4FontSize,
56456
56426
  lineHeight: THEME_CONSTANTS.l4LineHeight,
56457
- fontFamily: THEME_CONSTANTS.defaultFontFamily,
56458
56427
  fontColor: { type: 'palette', key: 'secondaryFontColor' },
56459
56428
  textAlign: 'left',
56460
56429
  textBaseline: 'middle',
@@ -56463,7 +56432,6 @@
56463
56432
  valueLabel: {
56464
56433
  fontSize: THEME_CONSTANTS.l4FontSize,
56465
56434
  lineHeight: THEME_CONSTANTS.l4LineHeight,
56466
- fontFamily: THEME_CONSTANTS.defaultFontFamily,
56467
56435
  fontColor: { type: 'palette', key: ['titleFontColor', 'primaryFontColor'] },
56468
56436
  fontWeight: 'bold',
56469
56437
  textBaseline: 'middle',
@@ -56477,13 +56445,11 @@
56477
56445
  padding: 8,
56478
56446
  titleStyle: {
56479
56447
  fontSize: THEME_CONSTANTS.l5FontSize,
56480
- fontFamily: THEME_CONSTANTS.defaultFontFamily,
56481
56448
  fontWeight: 'bold',
56482
56449
  fill: { type: 'palette', key: ['titleFontColor', 'primaryFontColor'] }
56483
56450
  },
56484
56451
  contentStyle: {
56485
56452
  fontSize: THEME_CONSTANTS.l5FontSize,
56486
- fontFamily: THEME_CONSTANTS.defaultFontFamily,
56487
56453
  fill: { type: 'palette', key: 'secondaryFontColor' }
56488
56454
  },
56489
56455
  panel: {
@@ -56511,7 +56477,6 @@
56511
56477
  animation: false,
56512
56478
  style: {
56513
56479
  fontSize: THEME_CONSTANTS.l4FontSize,
56514
- fontFamily: THEME_CONSTANTS.defaultFontFamily,
56515
56480
  fill: { type: 'palette', key: ['titleFontColor', 'primaryFontColor'] }
56516
56481
  }
56517
56482
  };
@@ -59809,8 +59774,10 @@
59809
59774
  spec = specTransform(spec);
59810
59775
  const lastSpec = this._spec;
59811
59776
  this._spec = spec;
59812
- this._updateCurrentTheme();
59813
- (_a = this._chart) === null || _a === void 0 ? void 0 : _a.setCurrentTheme(this._currentTheme, true);
59777
+ if (!isEqual$1(lastSpec.theme, spec.theme)) {
59778
+ this._updateCurrentTheme();
59779
+ (_a = this._chart) === null || _a === void 0 ? void 0 : _a.setCurrentTheme(this._currentTheme, false);
59780
+ }
59814
59781
  const reSize = this._updateChartConfiguration(lastSpec);
59815
59782
  (_c = (_b = this._compiler) === null || _b === void 0 ? void 0 : _b.getVGrammarView()) === null || _c === void 0 ? void 0 : _c.updateLayoutTag();
59816
59783
  return mergeUpdateResult(this._chart.updateSpec(spec, morphConfig), {
@@ -61163,6 +61130,9 @@
61163
61130
  this._theme = theme;
61164
61131
  this._mergeMarkTheme();
61165
61132
  }
61133
+ setTheme(theme) {
61134
+ this._theme = theme;
61135
+ }
61166
61136
  _mergeMarkTheme() {
61167
61137
  var _a, _b;
61168
61138
  const globalTheme = (_b = (_a = this._option).getTheme) === null || _b === void 0 ? void 0 : _b.call(_a);
@@ -63462,7 +63432,7 @@
63462
63432
  VChart.useMark([ComponentMark, GroupMark, ImageMark]);
63463
63433
  Factory.registerRegion('region', Region);
63464
63434
  Factory.registerLayout('base', Layout);
63465
- const version = "1.4.0";
63435
+ const version = "1.4.1-alpha.1";
63466
63436
  Logger.getInstance(LoggerLevel.Error);
63467
63437
 
63468
63438
  const WordCloud3dAnimation = (params) => {
@@ -67836,6 +67806,7 @@
67836
67806
  this.setLayoutTag(true);
67837
67807
  }
67838
67808
  updateViewBox(viewBox, reLayout) {
67809
+ this._option.viewBox = viewBox;
67839
67810
  this._updateLayoutRect(viewBox);
67840
67811
  this.setLayoutTag(true, null, reLayout);
67841
67812
  }
@@ -68071,7 +68042,18 @@
68071
68042
  this.getAllModels().forEach(model => model.onDataUpdate());
68072
68043
  }
68073
68044
  updateFullData(data, updateGlobalScale = true) {
68074
- this._chartData.updateData(data);
68045
+ array(data).forEach(d => {
68046
+ const dv = this._dataSet.getDataView(d.id);
68047
+ if (dv) {
68048
+ dv.markRunning();
68049
+ }
68050
+ });
68051
+ array(data).forEach(d => {
68052
+ const dv = this._dataSet.getDataView(d.id);
68053
+ if (dv) {
68054
+ updateDataViewInData(dv, d, true);
68055
+ }
68056
+ });
68075
68057
  if (updateGlobalScale) {
68076
68058
  this.updateGlobalScaleDomain();
68077
68059
  }
@@ -68320,28 +68302,28 @@
68320
68302
  getCurrentTheme() {
68321
68303
  return this._theme;
68322
68304
  }
68323
- setCurrentTheme(theme) {
68305
+ setCurrentTheme(theme, reInit = true) {
68324
68306
  this._theme = theme;
68325
68307
  this.setLayoutTag(true);
68326
68308
  this.transformSpec(this._spec);
68327
68309
  this.updateGlobalScaleTheme();
68328
- this.setRegionTheme();
68329
- this.setComponentTheme(theme);
68330
- this.setSeriesTheme(theme);
68310
+ this.setRegionTheme(reInit);
68311
+ this.setComponentTheme(theme, reInit);
68312
+ this.setSeriesTheme(theme, reInit);
68331
68313
  }
68332
- setRegionTheme() {
68314
+ setRegionTheme(reInit = true) {
68333
68315
  this._regions.forEach(r => {
68334
- r.reInit();
68316
+ reInit ? r.reInit() : r.setTheme();
68335
68317
  });
68336
68318
  }
68337
- setComponentTheme(theme) {
68319
+ setComponentTheme(theme, reInit = true) {
68338
68320
  this._components.forEach(c => {
68339
- c.setCurrentTheme(theme.series[c.type], true);
68321
+ reInit ? c.setCurrentTheme(theme.component[c.type], true) : c.setTheme(theme.component[c.type]);
68340
68322
  });
68341
68323
  }
68342
- setSeriesTheme(theme) {
68324
+ setSeriesTheme(theme, reInit = true) {
68343
68325
  this._series.forEach((s) => __awaiter$i(this, void 0, void 0, function* () {
68344
- yield s.setCurrentTheme(theme.series[s.type], true);
68326
+ reInit ? yield s.setCurrentTheme(theme.series[s.type], true) : s.setTheme(theme.series[s.type]);
68345
68327
  }));
68346
68328
  }
68347
68329
  clear() {
@@ -75718,10 +75700,10 @@
75718
75700
  x: () => this.angleAxisHelper.center().x,
75719
75701
  y: () => this.angleAxisHelper.center().y,
75720
75702
  startAngle: (datum) => this.angleAxisHelper.dataToPosition(this.getDatumPositionValues(datum, this.getGroupFields())) -
75721
- this.angleAxisHelper.getBandwidth(0) * 0.5,
75703
+ this.angleAxisHelper.getBandwidth(this.getGroupFields().length - 1) * 0.5,
75722
75704
  endAngle: (datum) => this.angleAxisHelper.dataToPosition(this.getDatumPositionValues(datum, this.getGroupFields())) +
75723
75705
  this.getRoseAngle() -
75724
- this.angleAxisHelper.getBandwidth(0) * 0.5,
75706
+ this.angleAxisHelper.getBandwidth(this.getGroupFields().length - 1) * 0.5,
75725
75707
  fill: this.getColorAttribute(),
75726
75708
  outerRadius: (datum) => valueInScaleRange(this.radiusAxisHelper.dataToPosition([datum[this._radiusField[0]]]), this.radiusAxisHelper.getScale(0)),
75727
75709
  innerRadius: (datum) => {
@@ -75792,6 +75774,9 @@
75792
75774
  axis[configName] = { visible: false };
75793
75775
  }
75794
75776
  });
75777
+ if (axis.orient === 'angle' && isNil$1(axis.bandPosition)) {
75778
+ axis.bandPosition = 0.5;
75779
+ }
75795
75780
  });
75796
75781
  spec.crosshair = array(spec.crosshair || {}).map(crosshairCfg => {
75797
75782
  return mergeSpec({
@@ -82616,7 +82601,7 @@
82616
82601
  }
82617
82602
  }
82618
82603
  initMarkStyle() {
82619
- var _a, _b, _c;
82604
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
82620
82605
  const wordMark = this._wordMark;
82621
82606
  const fillingWordMark = this._fillingWordMark;
82622
82607
  const textField = ((_a = this._spec.word) === null || _a === void 0 ? void 0 : _a.formatMethod) ? WORD_CLOUD_TEXT : this._nameField;
@@ -82635,6 +82620,9 @@
82635
82620
  angle: (datum) => datum.angle,
82636
82621
  visible: (datum) => !datum.isFillingWord
82637
82622
  }, 'normal', AttributeLevel.Series);
82623
+ this.setMarkStyle(wordMark, {
82624
+ 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
82625
+ }, 'normal', AttributeLevel.User_Mark);
82638
82626
  }
82639
82627
  if (fillingWordMark) {
82640
82628
  this.setMarkStyle(fillingWordMark, {
@@ -82651,11 +82639,14 @@
82651
82639
  angle: (datum) => datum.angle,
82652
82640
  visible: (datum) => datum.isFillingWord
82653
82641
  }, 'normal', AttributeLevel.Series);
82642
+ this.setMarkStyle(fillingWordMark, {
82643
+ 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
82644
+ }, 'normal', AttributeLevel.User_Mark);
82654
82645
  }
82655
82646
  this._trigger.registerMark(wordMark);
82656
- (_b = this._tooltipHelper) === null || _b === void 0 ? void 0 : _b.activeTriggerSet.mark.add(wordMark);
82647
+ (_m = this._tooltipHelper) === null || _m === void 0 ? void 0 : _m.activeTriggerSet.mark.add(wordMark);
82657
82648
  this._trigger.registerMark(fillingWordMark);
82658
- (_c = this._tooltipHelper) === null || _c === void 0 ? void 0 : _c.activeTriggerSet.mark.add(fillingWordMark);
82649
+ (_o = this._tooltipHelper) === null || _o === void 0 ? void 0 : _o.activeTriggerSet.mark.add(fillingWordMark);
82659
82650
  }
82660
82651
  initAnimation() {
82661
82652
  [this._wordMark, this._fillingWordMark].forEach(mark => {
@@ -82691,7 +82682,7 @@
82691
82682
  return (datum) => colorList[0];
82692
82683
  }
82693
82684
  compile() {
82694
- 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;
82685
+ 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;
82695
82686
  super.compile();
82696
82687
  const { width, height } = this._region.getLayoutRect();
82697
82688
  if (!isValidNumber$1(width) || !isValidNumber$1(height) || !(height > 0 && width > 0)) {
@@ -82752,9 +82743,9 @@
82752
82743
  fontSizeRange: this._fontSizeRange,
82753
82744
  padding: this._fontPadding,
82754
82745
  rotate: { field: WORD_CLOUD_ANGLE },
82755
- fontFamily: (_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,
82746
+ 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,
82756
82747
  fontWeight: fontWeightField ? { field: fontWeightField } : valueField ? { field: WORD_CLOUD_WEIGHT } : null,
82757
- fontStyle: (_g = this._fontStyleField) !== null && _g !== void 0 ? _g : (_j = (_h = this._spec.word) === null || _h === void 0 ? void 0 : _h.style) === null || _j === void 0 ? void 0 : _j.fontStyle,
82748
+ 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,
82758
82749
  randomVisible: this._random,
82759
82750
  clip: this._wordCloudConfig.drawOutOfBound === 'clip',
82760
82751
  shrink: this._wordCloudConfig.zoomToFit.shrink,
@@ -82771,39 +82762,39 @@
82771
82762
  dataIndexKey: DEFAULT_DATA_KEY,
82772
82763
  size: [width, height],
82773
82764
  shape: this._maskShape,
82774
- text: { field: ((_k = this._spec.word) === null || _k === void 0 ? void 0 : _k.formatMethod) ? WORD_CLOUD_TEXT : this._nameField },
82765
+ text: { field: ((_o = this._spec.word) === null || _o === void 0 ? void 0 : _o.formatMethod) ? WORD_CLOUD_TEXT : this._nameField },
82775
82766
  fontSize: valueField ? { field: valueField } : this._fontSizeRange[0],
82776
82767
  fontSizeRange: this._fontSizeRange,
82777
82768
  padding: this._fontPadding,
82778
82769
  rotateList: rotateAngles,
82779
- fontFamily: (_l = this._fontFamilyField) !== 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.fontFamily,
82770
+ 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,
82780
82771
  fontWeight: fontWeightField ? { field: fontWeightField } : valueField ? { field: WORD_CLOUD_WEIGHT } : null,
82781
- fontStyle: (_p = this._fontStyleField) !== 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.fontStyle,
82782
- fillingFontFamily: (_t = (_s = this._wordCloudShapeConfig) === null || _s === void 0 ? void 0 : _s.fillingFontFamilyField) !== 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.fontFamily,
82772
+ 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,
82773
+ 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,
82783
82774
  fillingPadding: this._fillingFontPadding,
82784
- fillingFontStyle: (_x = (_w = this._wordCloudShapeConfig) === null || _w === void 0 ? void 0 : _w.fillingFontStyleField) !== 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.fontStyle,
82785
- fillingFontWeight: (_1 = (_0 = this._wordCloudShapeConfig) === null || _0 === void 0 ? void 0 : _0.fillingFontWeightField) !== null && _1 !== void 0 ? _1 : (_3 = (_2 = this._spec.word) === null || _2 === void 0 ? void 0 : _2.style) === null || _3 === void 0 ? void 0 : _3.fontWeight,
82775
+ 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,
82776
+ 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,
82786
82777
  fillingRotateList: fillingRotateAngles,
82787
- fillingTimes: (_4 = this._wordCloudShapeConfig) === null || _4 === void 0 ? void 0 : _4.fillingTimes,
82788
- fillingXStep: (_5 = this._wordCloudShapeConfig) === null || _5 === void 0 ? void 0 : _5.fillingXStep,
82789
- fillingYStep: (_6 = this._wordCloudShapeConfig) === null || _6 === void 0 ? void 0 : _6.fillingYStep,
82790
- fillingXRatioStep: (_7 = this._wordCloudShapeConfig) === null || _7 === void 0 ? void 0 : _7.fillingXRatioStep,
82791
- fillingYRatioStep: (_8 = this._wordCloudShapeConfig) === null || _8 === void 0 ? void 0 : _8.fillingYRatioStep,
82792
- fillingInitialOpacity: (_9 = this._wordCloudShapeConfig) === null || _9 === void 0 ? void 0 : _9.fillingInitialOpacity,
82793
- fillingDeltaOpacity: (_10 = this._wordCloudShapeConfig) === null || _10 === void 0 ? void 0 : _10.fillingDeltaOpacity,
82794
- fillingInitialFontSize: (_11 = this._wordCloudShapeConfig) === null || _11 === void 0 ? void 0 : _11.fillingInitialFontSize,
82795
- fillingDeltaFontSize: (_12 = this._wordCloudShapeConfig) === null || _12 === void 0 ? void 0 : _12.fillingDeltaFontSize,
82796
- ratio: (_13 = this._wordCloudShapeConfig) === null || _13 === void 0 ? void 0 : _13.ratio,
82797
- fillingRatio: (_14 = this._wordCloudShapeConfig) === null || _14 === void 0 ? void 0 : _14.fillingRatio,
82798
- removeWhiteBorder: (_15 = this._wordCloudShapeConfig) === null || _15 === void 0 ? void 0 : _15.removeWhiteBorder,
82799
- textLayoutTimes: (_16 = this._wordCloudShapeConfig) === null || _16 === void 0 ? void 0 : _16.textLayoutTimes,
82800
- fontSizeShrinkFactor: (_17 = this._wordCloudShapeConfig) === null || _17 === void 0 ? void 0 : _17.fontSizeShrinkFactor,
82801
- stepFactor: (_18 = this._wordCloudShapeConfig) === null || _18 === void 0 ? void 0 : _18.stepFactor,
82802
- layoutMode: (_19 = this._wordCloudShapeConfig) === null || _19 === void 0 ? void 0 : _19.layoutMode,
82803
- importantWordCount: (_20 = this._wordCloudShapeConfig) === null || _20 === void 0 ? void 0 : _20.importantWordCount,
82804
- globalShinkLimit: (_21 = this._wordCloudShapeConfig) === null || _21 === void 0 ? void 0 : _21.globalShinkLimit,
82805
- fontSizeEnlargeFactor: (_22 = this._wordCloudShapeConfig) === null || _22 === void 0 ? void 0 : _22.fontSizeEnlargeFactor,
82806
- fillingDeltaFontSizeFactor: (_23 = this._wordCloudShapeConfig) === null || _23 === void 0 ? void 0 : _23.fillingDeltaFontSizeFactor
82778
+ fillingTimes: (_13 = this._wordCloudShapeConfig) === null || _13 === void 0 ? void 0 : _13.fillingTimes,
82779
+ fillingXStep: (_14 = this._wordCloudShapeConfig) === null || _14 === void 0 ? void 0 : _14.fillingXStep,
82780
+ fillingYStep: (_15 = this._wordCloudShapeConfig) === null || _15 === void 0 ? void 0 : _15.fillingYStep,
82781
+ fillingXRatioStep: (_16 = this._wordCloudShapeConfig) === null || _16 === void 0 ? void 0 : _16.fillingXRatioStep,
82782
+ fillingYRatioStep: (_17 = this._wordCloudShapeConfig) === null || _17 === void 0 ? void 0 : _17.fillingYRatioStep,
82783
+ fillingInitialOpacity: (_18 = this._wordCloudShapeConfig) === null || _18 === void 0 ? void 0 : _18.fillingInitialOpacity,
82784
+ fillingDeltaOpacity: (_19 = this._wordCloudShapeConfig) === null || _19 === void 0 ? void 0 : _19.fillingDeltaOpacity,
82785
+ fillingInitialFontSize: (_20 = this._wordCloudShapeConfig) === null || _20 === void 0 ? void 0 : _20.fillingInitialFontSize,
82786
+ fillingDeltaFontSize: (_21 = this._wordCloudShapeConfig) === null || _21 === void 0 ? void 0 : _21.fillingDeltaFontSize,
82787
+ ratio: (_22 = this._wordCloudShapeConfig) === null || _22 === void 0 ? void 0 : _22.ratio,
82788
+ fillingRatio: (_23 = this._wordCloudShapeConfig) === null || _23 === void 0 ? void 0 : _23.fillingRatio,
82789
+ removeWhiteBorder: (_24 = this._wordCloudShapeConfig) === null || _24 === void 0 ? void 0 : _24.removeWhiteBorder,
82790
+ textLayoutTimes: (_25 = this._wordCloudShapeConfig) === null || _25 === void 0 ? void 0 : _25.textLayoutTimes,
82791
+ fontSizeShrinkFactor: (_26 = this._wordCloudShapeConfig) === null || _26 === void 0 ? void 0 : _26.fontSizeShrinkFactor,
82792
+ stepFactor: (_27 = this._wordCloudShapeConfig) === null || _27 === void 0 ? void 0 : _27.stepFactor,
82793
+ layoutMode: (_28 = this._wordCloudShapeConfig) === null || _28 === void 0 ? void 0 : _28.layoutMode,
82794
+ importantWordCount: (_29 = this._wordCloudShapeConfig) === null || _29 === void 0 ? void 0 : _29.importantWordCount,
82795
+ globalShinkLimit: (_30 = this._wordCloudShapeConfig) === null || _30 === void 0 ? void 0 : _30.globalShinkLimit,
82796
+ fontSizeEnlargeFactor: (_31 = this._wordCloudShapeConfig) === null || _31 === void 0 ? void 0 : _31.fontSizeEnlargeFactor,
82797
+ fillingDeltaFontSizeFactor: (_32 = this._wordCloudShapeConfig) === null || _32 === void 0 ? void 0 : _32.fillingDeltaFontSizeFactor
82807
82798
  });
82808
82799
  }
82809
82800
  this._data.getProduct().transform(wordCloudTransforms);
@@ -82885,7 +82876,7 @@
82885
82876
  this.type = SeriesTypeEnum.wordCloud3d;
82886
82877
  }
82887
82878
  compile() {
82888
- 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;
82879
+ 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;
82889
82880
  super.compile();
82890
82881
  const wordCloudTransforms = [];
82891
82882
  const valueField = this._valueField;
@@ -82943,9 +82934,9 @@
82943
82934
  fontSizeRange: this._fontSizeRange,
82944
82935
  padding: this._fontPadding,
82945
82936
  rotate: { field: WORD_CLOUD_ANGLE },
82946
- fontFamily: (_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,
82937
+ 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,
82947
82938
  fontWeight: fontWeightField ? { field: fontWeightField } : valueField ? { field: WORD_CLOUD_WEIGHT } : null,
82948
- fontStyle: (_h = this._fontStyleField) !== null && _h !== void 0 ? _h : (_k = (_j = this._spec.word) === null || _j === void 0 ? void 0 : _j.style) === null || _k === void 0 ? void 0 : _k.fontStyle,
82939
+ 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,
82949
82940
  depth_3d: this._spec.depth_3d,
82950
82941
  randomVisible: this._random,
82951
82942
  clip: this._wordCloudConfig.drawOutOfBound === 'clip',
@@ -82962,42 +82953,42 @@
82962
82953
  type: 'wordcloudShape',
82963
82954
  size: [this._region.getLayoutRect().width, this._region.getLayoutRect().height],
82964
82955
  shape: this._maskShape,
82965
- postProjection: (_l = this._spec.postProjection) !== null && _l !== void 0 ? _l : 'StereographicProjection',
82956
+ postProjection: (_p = this._spec.postProjection) !== null && _p !== void 0 ? _p : 'StereographicProjection',
82966
82957
  dataIndexKey: DEFAULT_DATA_KEY,
82967
82958
  text: { field: textField },
82968
82959
  fontSize: valueField ? { field: valueField } : this._fontSizeRange[0],
82969
82960
  fontSizeRange: this._fontSizeRange,
82970
82961
  padding: this._fontPadding,
82971
82962
  rotateList: rotateAngles,
82972
- fontFamily: (_m = this._fontFamilyField) !== null && _m !== void 0 ? _m : (_p = (_o = this._spec.word) === null || _o === void 0 ? void 0 : _o.style) === null || _p === void 0 ? void 0 : _p.fontFamily,
82963
+ 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,
82973
82964
  fontWeight: fontWeightField ? { field: fontWeightField } : valueField ? { field: WORD_CLOUD_WEIGHT } : null,
82974
- fontStyle: (_q = this._fontStyleField) !== 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.fontStyle,
82965
+ 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,
82975
82966
  depth_3d: this._spec.depth_3d,
82976
- fillingFontFamily: (_u = (_t = this._wordCloudShapeConfig) === null || _t === void 0 ? void 0 : _t.fillingFontFamilyField) !== 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.fontFamily,
82967
+ 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,
82977
82968
  fillingPadding: this._fillingFontPadding,
82978
- fillingFontStyle: (_y = (_x = this._wordCloudShapeConfig) === null || _x === void 0 ? void 0 : _x.fillingFontStyleField) !== 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.fontStyle,
82979
- fillingFontWeight: (_2 = (_1 = this._wordCloudShapeConfig) === null || _1 === void 0 ? void 0 : _1.fillingFontWeightField) !== null && _2 !== void 0 ? _2 : (_4 = (_3 = this._spec.word) === null || _3 === void 0 ? void 0 : _3.style) === null || _4 === void 0 ? void 0 : _4.fontWeight,
82969
+ 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,
82970
+ 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,
82980
82971
  fillingRotateList: fillingRotateAngles,
82981
- fillingTimes: (_5 = this._wordCloudShapeConfig) === null || _5 === void 0 ? void 0 : _5.fillingTimes,
82982
- fillingXStep: (_6 = this._wordCloudShapeConfig) === null || _6 === void 0 ? void 0 : _6.fillingXStep,
82983
- fillingYStep: (_7 = this._wordCloudShapeConfig) === null || _7 === void 0 ? void 0 : _7.fillingYStep,
82984
- fillingXRatioStep: (_8 = this._wordCloudShapeConfig) === null || _8 === void 0 ? void 0 : _8.fillingXRatioStep,
82985
- fillingYRatioStep: (_9 = this._wordCloudShapeConfig) === null || _9 === void 0 ? void 0 : _9.fillingYRatioStep,
82986
- fillingInitialOpacity: (_10 = this._wordCloudShapeConfig) === null || _10 === void 0 ? void 0 : _10.fillingInitialOpacity,
82987
- fillingDeltaOpacity: (_11 = this._wordCloudShapeConfig) === null || _11 === void 0 ? void 0 : _11.fillingDeltaOpacity,
82988
- fillingInitialFontSize: (_12 = this._wordCloudShapeConfig) === null || _12 === void 0 ? void 0 : _12.fillingInitialFontSize,
82989
- fillingDeltaFontSize: (_13 = this._wordCloudShapeConfig) === null || _13 === void 0 ? void 0 : _13.fillingDeltaFontSize,
82990
- ratio: (_14 = this._wordCloudShapeConfig) === null || _14 === void 0 ? void 0 : _14.ratio,
82991
- fillingRatio: (_15 = this._wordCloudShapeConfig) === null || _15 === void 0 ? void 0 : _15.fillingRatio,
82992
- removeWhiteBorder: (_16 = this._wordCloudShapeConfig) === null || _16 === void 0 ? void 0 : _16.removeWhiteBorder,
82993
- textLayoutTimes: (_17 = this._wordCloudShapeConfig) === null || _17 === void 0 ? void 0 : _17.textLayoutTimes,
82994
- fontSizeShrinkFactor: (_18 = this._wordCloudShapeConfig) === null || _18 === void 0 ? void 0 : _18.fontSizeShrinkFactor,
82995
- stepFactor: (_19 = this._wordCloudShapeConfig) === null || _19 === void 0 ? void 0 : _19.stepFactor,
82996
- layoutMode: (_20 = this._wordCloudShapeConfig) === null || _20 === void 0 ? void 0 : _20.layoutMode,
82997
- importantWordCount: (_21 = this._wordCloudShapeConfig) === null || _21 === void 0 ? void 0 : _21.importantWordCount,
82998
- globalShinkLimit: (_22 = this._wordCloudShapeConfig) === null || _22 === void 0 ? void 0 : _22.globalShinkLimit,
82999
- fontSizeEnlargeFactor: (_23 = this._wordCloudShapeConfig) === null || _23 === void 0 ? void 0 : _23.fontSizeEnlargeFactor,
83000
- fillingDeltaFontSizeFactor: (_24 = this._wordCloudShapeConfig) === null || _24 === void 0 ? void 0 : _24.fillingDeltaFontSizeFactor
82972
+ fillingTimes: (_14 = this._wordCloudShapeConfig) === null || _14 === void 0 ? void 0 : _14.fillingTimes,
82973
+ fillingXStep: (_15 = this._wordCloudShapeConfig) === null || _15 === void 0 ? void 0 : _15.fillingXStep,
82974
+ fillingYStep: (_16 = this._wordCloudShapeConfig) === null || _16 === void 0 ? void 0 : _16.fillingYStep,
82975
+ fillingXRatioStep: (_17 = this._wordCloudShapeConfig) === null || _17 === void 0 ? void 0 : _17.fillingXRatioStep,
82976
+ fillingYRatioStep: (_18 = this._wordCloudShapeConfig) === null || _18 === void 0 ? void 0 : _18.fillingYRatioStep,
82977
+ fillingInitialOpacity: (_19 = this._wordCloudShapeConfig) === null || _19 === void 0 ? void 0 : _19.fillingInitialOpacity,
82978
+ fillingDeltaOpacity: (_20 = this._wordCloudShapeConfig) === null || _20 === void 0 ? void 0 : _20.fillingDeltaOpacity,
82979
+ fillingInitialFontSize: (_21 = this._wordCloudShapeConfig) === null || _21 === void 0 ? void 0 : _21.fillingInitialFontSize,
82980
+ fillingDeltaFontSize: (_22 = this._wordCloudShapeConfig) === null || _22 === void 0 ? void 0 : _22.fillingDeltaFontSize,
82981
+ ratio: (_23 = this._wordCloudShapeConfig) === null || _23 === void 0 ? void 0 : _23.ratio,
82982
+ fillingRatio: (_24 = this._wordCloudShapeConfig) === null || _24 === void 0 ? void 0 : _24.fillingRatio,
82983
+ removeWhiteBorder: (_25 = this._wordCloudShapeConfig) === null || _25 === void 0 ? void 0 : _25.removeWhiteBorder,
82984
+ textLayoutTimes: (_26 = this._wordCloudShapeConfig) === null || _26 === void 0 ? void 0 : _26.textLayoutTimes,
82985
+ fontSizeShrinkFactor: (_27 = this._wordCloudShapeConfig) === null || _27 === void 0 ? void 0 : _27.fontSizeShrinkFactor,
82986
+ stepFactor: (_28 = this._wordCloudShapeConfig) === null || _28 === void 0 ? void 0 : _28.stepFactor,
82987
+ layoutMode: (_29 = this._wordCloudShapeConfig) === null || _29 === void 0 ? void 0 : _29.layoutMode,
82988
+ importantWordCount: (_30 = this._wordCloudShapeConfig) === null || _30 === void 0 ? void 0 : _30.importantWordCount,
82989
+ globalShinkLimit: (_31 = this._wordCloudShapeConfig) === null || _31 === void 0 ? void 0 : _31.globalShinkLimit,
82990
+ fontSizeEnlargeFactor: (_32 = this._wordCloudShapeConfig) === null || _32 === void 0 ? void 0 : _32.fontSizeEnlargeFactor,
82991
+ fillingDeltaFontSizeFactor: (_33 = this._wordCloudShapeConfig) === null || _33 === void 0 ? void 0 : _33.fillingDeltaFontSizeFactor
83001
82992
  });
83002
82993
  }
83003
82994
  this._data.getProduct().transform(wordCloudTransforms);
@@ -83017,7 +83008,7 @@
83017
83008
  }
83018
83009
  }
83019
83010
  initMarkStyle() {
83020
- var _a, _b;
83011
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
83021
83012
  const wordMark = this._wordMark;
83022
83013
  const fillingWordMark = this._fillingWordMark;
83023
83014
  if (wordMark) {
@@ -83036,6 +83027,9 @@
83036
83027
  angle: (datum) => datum.angle,
83037
83028
  visible: (datum) => !datum.isFillingWord
83038
83029
  }, 'normal', AttributeLevel.Series);
83030
+ this.setMarkStyle(wordMark, {
83031
+ 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
83032
+ }, 'normal', AttributeLevel.User_Mark);
83039
83033
  }
83040
83034
  if (fillingWordMark) {
83041
83035
  this.setMarkStyle(fillingWordMark, {
@@ -83053,11 +83047,14 @@
83053
83047
  angle: (datum) => datum.angle,
83054
83048
  visible: (datum) => datum.isFillingWord
83055
83049
  }, 'normal', AttributeLevel.Series);
83050
+ this.setMarkStyle(fillingWordMark, {
83051
+ 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
83052
+ }, 'normal', AttributeLevel.User_Mark);
83056
83053
  }
83057
83054
  this._trigger.registerMark(wordMark);
83058
- (_a = this._tooltipHelper) === null || _a === void 0 ? void 0 : _a.activeTriggerSet.mark.add(wordMark);
83055
+ (_l = this._tooltipHelper) === null || _l === void 0 ? void 0 : _l.activeTriggerSet.mark.add(wordMark);
83059
83056
  this._trigger.registerMark(fillingWordMark);
83060
- (_b = this._tooltipHelper) === null || _b === void 0 ? void 0 : _b.activeTriggerSet.mark.add(fillingWordMark);
83057
+ (_m = this._tooltipHelper) === null || _m === void 0 ? void 0 : _m.activeTriggerSet.mark.add(fillingWordMark);
83061
83058
  }
83062
83059
  initAnimation() {
83063
83060
  if (this._wordMark) {
@@ -84340,7 +84337,7 @@
84340
84337
  }, orient: this._orient, size: {
84341
84338
  width: this.getLayoutRect().width,
84342
84339
  height: this.getLayoutRect().height
84343
- }, showDetail: (_a = this._spec) === null || _a === void 0 ? void 0 : _a.showDetail, brushSelect: (_c = (_b = this._spec) === null || _b === void 0 ? void 0 : _b.brushSelect) !== null && _c !== void 0 ? _c : false, previewData: this._data.getLatestData(), previewCallbackX: isNeedPreview && this._dataToPositionX, previewCallbackY: isNeedPreview && this._dataToPositionY }, this._getComponentAttrs()));
84340
+ }, showDetail: (_a = this._spec) === null || _a === void 0 ? void 0 : _a.showDetail, brushSelect: (_c = (_b = this._spec) === null || _b === void 0 ? void 0 : _b.brushSelect) !== null && _c !== void 0 ? _c : false, previewData: isNeedPreview && this._data.getLatestData(), previewCallbackX: isNeedPreview && this._dataToPositionX, previewCallbackY: isNeedPreview && this._dataToPositionY }, this._getComponentAttrs()));
84344
84341
  if (this._isHorizontal) {
84345
84342
  isNeedPreview && this._component.setPreviewCallbackY1(this._dataToPositionY2);
84346
84343
  }
@@ -86970,6 +86967,7 @@
86970
86967
 
86971
86968
  const DEFAULT_BAND_INNER_PADDING$1 = 0.1;
86972
86969
  const DEFAULT_BAND_OUTER_PADDING$1 = 0.3;
86970
+ const DEFAULT_BAND_POSITION$1 = 0.5;
86973
86971
 
86974
86972
  class BandAxisMixin {
86975
86973
  valueToPosition(value) {
@@ -87083,12 +87081,12 @@
87083
87081
  };
87084
87082
  }
87085
87083
  dataToPosition(values, cfg = {}) {
87086
- var _a;
87084
+ var _a, _b;
87087
87085
  if (values.length === 0 || this._scales.length === 0) {
87088
87086
  return 0;
87089
87087
  }
87090
87088
  const { position, bandScale } = this.getPosition(values);
87091
- return position + bandScale.bandwidth() * ((_a = cfg.bandPosition) !== null && _a !== void 0 ? _a : 0.5);
87089
+ return (position + bandScale.bandwidth() * ((_b = (_a = cfg.bandPosition) !== null && _a !== void 0 ? _a : this.getSpec().bandPosition) !== null && _b !== void 0 ? _b : DEFAULT_BAND_POSITION$1));
87092
87090
  }
87093
87091
  transformScaleDomain() {
87094
87092
  this.updateFixedWholeLength();
@@ -87271,6 +87269,10 @@
87271
87269
  CartesianSymlogAxis.type = ComponentTypeEnum.cartesianSymlogAxis;
87272
87270
  mixin(CartesianSymlogAxis, LinearAxisMixin);
87273
87271
 
87272
+ const DEFAULT_BAND_INNER_PADDING = 0;
87273
+ const DEFAULT_BAND_OUTER_PADDING = 0;
87274
+ const DEFAULT_BAND_POSITION = 0;
87275
+
87274
87276
  class PolarAxis extends AxisComponent {
87275
87277
  constructor() {
87276
87278
  super(...arguments);
@@ -87532,6 +87534,7 @@
87532
87534
  return this._scale.scale(values);
87533
87535
  }
87534
87536
  positionToData(position) {
87537
+ var _a;
87535
87538
  const coord = this.pointToCoord(position);
87536
87539
  if (this.getOrient() === 'radius') {
87537
87540
  return this._scale.invert(coord.radius);
@@ -87539,12 +87542,14 @@
87539
87542
  if (this._scale.type === 'band') {
87540
87543
  const range = this._scale.range();
87541
87544
  const rangeValue = range[range.length - 1] - range[0];
87545
+ const bandPosition = (_a = this.getSpec().bandPosition) !== null && _a !== void 0 ? _a : DEFAULT_BAND_POSITION;
87546
+ const offset = bandPosition === 0.5 ? 0 : this._scale.bandwidth() / 2;
87542
87547
  if (range[0] < 0) {
87543
- const angle = coord.angle + this._scale.bandwidth() / 2;
87548
+ const angle = coord.angle + offset;
87544
87549
  const transformedAngle = ((angle + Math.abs(range[0])) % rangeValue) - Math.abs(range[0]);
87545
87550
  return this._scale.invert(transformedAngle);
87546
87551
  }
87547
- return this._scale.invert((coord.angle + this._scale.bandwidth() / 2) % rangeValue);
87552
+ return this._scale.invert((coord.angle + offset) % rangeValue);
87548
87553
  }
87549
87554
  return this._scale.invert(coord.angle);
87550
87555
  }
@@ -87736,9 +87741,6 @@
87736
87741
  PolarLinearAxis.type = ComponentTypeEnum.polarLinearAxis;
87737
87742
  mixin(PolarLinearAxis, LinearAxisMixin);
87738
87743
 
87739
- const DEFAULT_BAND_INNER_PADDING = 0;
87740
- const DEFAULT_BAND_OUTER_PADDING = 0;
87741
-
87742
87744
  class PolarBandAxis extends PolarAxis {
87743
87745
  constructor() {
87744
87746
  super(...arguments);
@@ -87748,12 +87750,13 @@
87748
87750
  computeDomain(data) {
87749
87751
  return this.computeBandDomain(data);
87750
87752
  }
87751
- dataToPosition(values) {
87753
+ dataToPosition(values, cfg = {}) {
87754
+ var _a, _b;
87752
87755
  if (values.length === 0 || this._scales.length === 0) {
87753
87756
  return 0;
87754
87757
  }
87755
- const { position } = this.getPosition(values);
87756
- return position;
87758
+ const { position, bandScale } = this.getPosition(values);
87759
+ return (position + bandScale.bandwidth() * ((_b = (_a = cfg.bandPosition) !== null && _a !== void 0 ? _a : this.getSpec().bandPosition) !== null && _b !== void 0 ? _b : DEFAULT_BAND_POSITION));
87757
87760
  }
87758
87761
  updateScaleRange() {
87759
87762
  super.updateScaleRange();
@@ -94274,40 +94277,49 @@
94274
94277
  });
94275
94278
  }
94276
94279
  _updateMultiLabelAttribute(labelInfo, labelComponent) {
94277
- this._updateLabelComponentAttribute(labelComponent.getProduct(), labelInfo.map(({ baseMark }) => baseMark.getProduct()), labelInfo[0]);
94280
+ this._updateLabelComponentAttribute(labelComponent.getProduct(), labelInfo.map(({ baseMark }) => baseMark.getProduct()), labelInfo);
94278
94281
  }
94279
94282
  _updateSingleLabelAttribute(labelInfo, labelComponent) {
94280
94283
  const { baseMark } = labelInfo;
94281
- this._updateLabelComponentAttribute(labelComponent.getProduct(), baseMark.getProduct(), labelInfo);
94284
+ this._updateLabelComponentAttribute(labelComponent.getProduct(), baseMark.getProduct(), [labelInfo]);
94282
94285
  }
94283
- _updateLabelComponentAttribute(component, target, labelInfo) {
94284
- const { baseMark, labelSpec, series, labelMark } = labelInfo;
94286
+ _updateLabelComponentAttribute(component, target, labelInfos) {
94285
94287
  const dependCmp = this._option.getAllComponents().filter(cmp => cmp.type === 'totalLabel');
94286
94288
  component
94287
94289
  .target(target)
94288
94290
  .configure({ interactive: false })
94289
94291
  .depend(dependCmp.map(cmp => cmp.getMarks()[0].getProduct()))
94290
- .labelStyle(() => {
94292
+ .labelStyle((mark, params) => {
94291
94293
  var _a, _b, _c;
94292
- const rule = labelMark.getRule() || baseMark.type;
94293
- const configFunc = (_a = labelRuleMap[rule]) !== null && _a !== void 0 ? _a : labelRuleMap.point;
94294
- const interactive = this._interactiveConfig(labelSpec);
94295
- const passiveLabelSpec = pickWithout(labelSpec, ['position', 'style', 'state']);
94296
- const centerOffset = (_c = (_b = this._spec) === null || _b === void 0 ? void 0 : _b.centerOffset) !== null && _c !== void 0 ? _c : 0;
94297
- return mergeSpec({
94298
- textStyle: Object.assign({ pickable: labelSpec.interactive === true }, labelSpec.style),
94299
- overlap: {
94300
- avoidMarks: this._option
94301
- .getAllComponents()
94302
- .filter(cmp => cmp.type === 'totalLabel')
94303
- .map(cmp => cmp.getMarks()[0].getProductId())
94304
- }
94305
- }, configFunc(labelInfo), Object.assign(Object.assign(Object.assign({}, passiveLabelSpec), interactive), { centerOffset }));
94294
+ const labelInfo = labelInfos[params.labelIndex];
94295
+ if (labelInfo) {
94296
+ const { baseMark, labelSpec, labelMark } = labelInfo;
94297
+ const rule = labelMark.getRule() || baseMark.type;
94298
+ const configFunc = (_a = labelRuleMap[rule]) !== null && _a !== void 0 ? _a : labelRuleMap.point;
94299
+ const interactive = this._interactiveConfig(labelSpec);
94300
+ const passiveLabelSpec = pickWithout(labelSpec, ['position', 'style', 'state']);
94301
+ const centerOffset = (_c = (_b = this._spec) === null || _b === void 0 ? void 0 : _b.centerOffset) !== null && _c !== void 0 ? _c : 0;
94302
+ return mergeSpec({
94303
+ textStyle: Object.assign({ pickable: labelSpec.interactive === true }, labelSpec.style),
94304
+ overlap: {
94305
+ avoidMarks: this._option
94306
+ .getAllComponents()
94307
+ .filter(cmp => cmp.type === 'totalLabel')
94308
+ .map(cmp => cmp.getMarks()[0].getProductId())
94309
+ }
94310
+ }, configFunc(labelInfo), Object.assign(Object.assign(Object.assign({}, passiveLabelSpec), interactive), { centerOffset }));
94311
+ }
94306
94312
  })
94307
- .encode(datum => {
94308
- return labelMark.skipEncode ? { data: datum } : textAttribute(labelInfo, datum, labelSpec.formatMethod);
94313
+ .encode((datum, element, params) => {
94314
+ const labelInfo = labelInfos[params.labelIndex];
94315
+ if (labelInfo) {
94316
+ const { labelSpec, labelMark } = labelInfos[params.labelIndex];
94317
+ return labelMark.skipEncode
94318
+ ? { data: datum }
94319
+ : textAttribute(labelInfos[params.labelIndex], datum, labelSpec.formatMethod);
94320
+ }
94309
94321
  })
94310
- .size(() => series.getRegion().getLayoutRect());
94322
+ .size(() => labelInfos[0].series.getRegion().getLayoutRect());
94311
94323
  }
94312
94324
  compileMarks() {
94313
94325
  this.getMarks().forEach(m => {