@visactor/vchart 1.12.4-alpha.0 → 1.12.4

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 (179) hide show
  1. package/build/es5/index.js +1 -1
  2. package/build/index.js +226 -173
  3. package/build/index.min.js +1 -1
  4. package/build/tsconfig.tsbuildinfo +1 -1
  5. package/cjs/chart/base/base-chart.d.ts +1 -0
  6. package/cjs/chart/base/base-chart.js +5 -0
  7. package/cjs/chart/base/base-chart.js.map +1 -1
  8. package/cjs/chart/interface/chart.d.ts +1 -0
  9. package/cjs/chart/interface/chart.js.map +1 -1
  10. package/cjs/chart/sankey/sankey-transformer.js +1 -0
  11. package/cjs/chart/sankey/sankey-transformer.js.map +1 -1
  12. package/cjs/component/axis/cartesian/axis.js +14 -6
  13. package/cjs/component/axis/cartesian/axis.js.map +1 -1
  14. package/cjs/component/axis/cartesian/linear-axis.js +1 -1
  15. package/cjs/component/axis/cartesian/linear-axis.js.map +1 -1
  16. package/cjs/component/axis/cartesian/time-axis.js +4 -1
  17. package/cjs/component/axis/cartesian/time-axis.js.map +1 -1
  18. package/cjs/component/axis/mixin/linear-axis-mixin.js +10 -10
  19. package/cjs/component/axis/mixin/linear-axis-mixin.js.map +1 -1
  20. package/cjs/component/axis/polar/axis.js +8 -2
  21. package/cjs/component/axis/polar/axis.js.map +1 -1
  22. package/cjs/component/axis/util.d.ts +3 -0
  23. package/cjs/component/axis/util.js +6 -2
  24. package/cjs/component/axis/util.js.map +1 -1
  25. package/cjs/component/label/label.js +4 -4
  26. package/cjs/component/label/label.js.map +1 -1
  27. package/cjs/component/tooltip/processor/base.d.ts +1 -1
  28. package/cjs/component/tooltip/processor/base.js +1 -2
  29. package/cjs/component/tooltip/processor/base.js.map +1 -1
  30. package/cjs/component/tooltip/processor/dimension-tooltip.js +1 -6
  31. package/cjs/component/tooltip/processor/dimension-tooltip.js.map +1 -1
  32. package/cjs/component/tooltip/processor/group-tooltip.js +4 -4
  33. package/cjs/component/tooltip/processor/group-tooltip.js.map +1 -1
  34. package/cjs/component/tooltip/tooltip.js +2 -6
  35. package/cjs/component/tooltip/tooltip.js.map +1 -1
  36. package/cjs/constant/layout.d.ts +1 -0
  37. package/cjs/constant/layout.js +11 -10
  38. package/cjs/constant/layout.js.map +1 -1
  39. package/cjs/core/index.d.ts +1 -1
  40. package/cjs/core/index.js +1 -1
  41. package/cjs/core/index.js.map +1 -1
  42. package/cjs/core/vchart.d.ts +1 -0
  43. package/cjs/core/vchart.js +3 -0
  44. package/cjs/core/vchart.js.map +1 -1
  45. package/cjs/interaction/interaction.d.ts +2 -0
  46. package/cjs/interaction/interaction.js +10 -0
  47. package/cjs/interaction/interaction.js.map +1 -1
  48. package/cjs/interaction/interface.d.ts +2 -0
  49. package/cjs/interaction/interface.js.map +1 -1
  50. package/cjs/model/tooltip-helper.d.ts +8 -6
  51. package/cjs/model/tooltip-helper.js +1 -4
  52. package/cjs/model/tooltip-helper.js.map +1 -1
  53. package/cjs/region/region.js +4 -3
  54. package/cjs/region/region.js.map +1 -1
  55. package/cjs/series/area/area.js +3 -3
  56. package/cjs/series/area/area.js.map +1 -1
  57. package/cjs/series/bar/bar.js +4 -4
  58. package/cjs/series/bar/bar.js.map +1 -1
  59. package/cjs/series/bar/interface.d.ts +5 -1
  60. package/cjs/series/bar/interface.js.map +1 -1
  61. package/cjs/series/base/base-series.js +4 -3
  62. package/cjs/series/base/base-series.js.map +1 -1
  63. package/cjs/series/dot/dot.js.map +1 -1
  64. package/cjs/series/dot/tooltip-helper.js +6 -17
  65. package/cjs/series/dot/tooltip-helper.js.map +1 -1
  66. package/cjs/series/gauge/gauge-pointer.js +3 -2
  67. package/cjs/series/gauge/gauge-pointer.js.map +1 -1
  68. package/cjs/series/gauge/pointer-tooltip-helper.d.ts +5 -0
  69. package/cjs/series/gauge/pointer-tooltip-helper.js +21 -0
  70. package/cjs/series/gauge/pointer-tooltip-helper.js.map +1 -0
  71. package/cjs/series/line/line.js +2 -2
  72. package/cjs/series/line/line.js.map +1 -1
  73. package/cjs/series/link/tooltip-helper.js +5 -16
  74. package/cjs/series/link/tooltip-helper.js.map +1 -1
  75. package/cjs/series/pie/pie.js +3 -3
  76. package/cjs/series/pie/pie.js.map +1 -1
  77. package/cjs/series/polar/polar.js.map +1 -1
  78. package/cjs/series/radar/radar.js +3 -3
  79. package/cjs/series/radar/radar.js.map +1 -1
  80. package/cjs/series/range-area/range-area.js +1 -1
  81. package/cjs/series/range-area/range-area.js.map +1 -1
  82. package/cjs/series/sankey/interface.d.ts +1 -0
  83. package/cjs/series/sankey/interface.js.map +1 -1
  84. package/cjs/series/sankey/sankey.d.ts +0 -1
  85. package/cjs/series/sankey/sankey.js +1 -0
  86. package/cjs/series/sankey/sankey.js.map +1 -1
  87. package/cjs/series/word-cloud/base.js +9 -10
  88. package/cjs/series/word-cloud/base.js.map +1 -1
  89. package/cjs/util/array.d.ts +1 -1
  90. package/cjs/util/array.js +6 -6
  91. package/cjs/util/array.js.map +1 -1
  92. package/esm/chart/base/base-chart.d.ts +1 -0
  93. package/esm/chart/base/base-chart.js +5 -0
  94. package/esm/chart/base/base-chart.js.map +1 -1
  95. package/esm/chart/interface/chart.d.ts +1 -0
  96. package/esm/chart/interface/chart.js.map +1 -1
  97. package/esm/chart/sankey/sankey-transformer.js +1 -0
  98. package/esm/chart/sankey/sankey-transformer.js.map +1 -1
  99. package/esm/component/axis/cartesian/axis.js +6 -5
  100. package/esm/component/axis/cartesian/axis.js.map +1 -1
  101. package/esm/component/axis/cartesian/linear-axis.js +2 -2
  102. package/esm/component/axis/cartesian/linear-axis.js.map +1 -1
  103. package/esm/component/axis/cartesian/time-axis.js +3 -3
  104. package/esm/component/axis/cartesian/time-axis.js.map +1 -1
  105. package/esm/component/axis/mixin/linear-axis-mixin.js +10 -11
  106. package/esm/component/axis/mixin/linear-axis-mixin.js.map +1 -1
  107. package/esm/component/axis/polar/axis.js +4 -3
  108. package/esm/component/axis/polar/axis.js.map +1 -1
  109. package/esm/component/axis/util.d.ts +3 -0
  110. package/esm/component/axis/util.js +4 -0
  111. package/esm/component/axis/util.js.map +1 -1
  112. package/esm/component/label/label.js +5 -5
  113. package/esm/component/label/label.js.map +1 -1
  114. package/esm/component/tooltip/processor/base.d.ts +1 -1
  115. package/esm/component/tooltip/processor/base.js +1 -2
  116. package/esm/component/tooltip/processor/base.js.map +1 -1
  117. package/esm/component/tooltip/processor/dimension-tooltip.js +1 -6
  118. package/esm/component/tooltip/processor/dimension-tooltip.js.map +1 -1
  119. package/esm/component/tooltip/processor/group-tooltip.js +4 -4
  120. package/esm/component/tooltip/processor/group-tooltip.js.map +1 -1
  121. package/esm/component/tooltip/tooltip.js +2 -5
  122. package/esm/component/tooltip/tooltip.js.map +1 -1
  123. package/esm/constant/layout.d.ts +1 -0
  124. package/esm/constant/layout.js +11 -10
  125. package/esm/constant/layout.js.map +1 -1
  126. package/esm/core/index.d.ts +1 -1
  127. package/esm/core/index.js +1 -1
  128. package/esm/core/index.js.map +1 -1
  129. package/esm/core/vchart.d.ts +1 -0
  130. package/esm/core/vchart.js +3 -0
  131. package/esm/core/vchart.js.map +1 -1
  132. package/esm/interaction/interaction.d.ts +2 -0
  133. package/esm/interaction/interaction.js +10 -0
  134. package/esm/interaction/interaction.js.map +1 -1
  135. package/esm/interaction/interface.d.ts +2 -0
  136. package/esm/interaction/interface.js.map +1 -1
  137. package/esm/model/tooltip-helper.d.ts +8 -6
  138. package/esm/model/tooltip-helper.js +1 -4
  139. package/esm/model/tooltip-helper.js.map +1 -1
  140. package/esm/region/region.js +4 -3
  141. package/esm/region/region.js.map +1 -1
  142. package/esm/series/area/area.js +3 -3
  143. package/esm/series/area/area.js.map +1 -1
  144. package/esm/series/bar/bar.js +5 -5
  145. package/esm/series/bar/bar.js.map +1 -1
  146. package/esm/series/bar/interface.d.ts +5 -1
  147. package/esm/series/bar/interface.js.map +1 -1
  148. package/esm/series/base/base-series.js +5 -2
  149. package/esm/series/base/base-series.js.map +1 -1
  150. package/esm/series/dot/dot.js.map +1 -1
  151. package/esm/series/dot/tooltip-helper.js +6 -17
  152. package/esm/series/dot/tooltip-helper.js.map +1 -1
  153. package/esm/series/gauge/gauge-pointer.js +3 -1
  154. package/esm/series/gauge/gauge-pointer.js.map +1 -1
  155. package/esm/series/gauge/pointer-tooltip-helper.d.ts +5 -0
  156. package/esm/series/gauge/pointer-tooltip-helper.js +15 -0
  157. package/esm/series/gauge/pointer-tooltip-helper.js.map +1 -0
  158. package/esm/series/line/line.js +2 -2
  159. package/esm/series/line/line.js.map +1 -1
  160. package/esm/series/link/tooltip-helper.js +5 -16
  161. package/esm/series/link/tooltip-helper.js.map +1 -1
  162. package/esm/series/pie/pie.js +3 -3
  163. package/esm/series/pie/pie.js.map +1 -1
  164. package/esm/series/polar/polar.js.map +1 -1
  165. package/esm/series/radar/radar.js +3 -3
  166. package/esm/series/radar/radar.js.map +1 -1
  167. package/esm/series/range-area/range-area.js +1 -1
  168. package/esm/series/range-area/range-area.js.map +1 -1
  169. package/esm/series/sankey/interface.d.ts +1 -0
  170. package/esm/series/sankey/interface.js.map +1 -1
  171. package/esm/series/sankey/sankey.d.ts +0 -1
  172. package/esm/series/sankey/sankey.js +1 -0
  173. package/esm/series/sankey/sankey.js.map +1 -1
  174. package/esm/series/word-cloud/base.js +9 -10
  175. package/esm/series/word-cloud/base.js.map +1 -1
  176. package/esm/util/array.d.ts +1 -1
  177. package/esm/util/array.js +4 -4
  178. package/esm/util/array.js.map +1 -1
  179. package/package.json +15 -15
package/build/index.js CHANGED
@@ -13490,7 +13490,9 @@
13490
13490
  if (children.length) shadowRoot.setTheme({
13491
13491
  [children[0].type]: childAttrs
13492
13492
  }), children.forEach(element => {
13493
- shadowRoot.appendChild(element);
13493
+ element.setAttributes({
13494
+ pickable: !1
13495
+ }), shadowRoot.appendChild(element);
13494
13496
  });else {
13495
13497
  const box = graphic.AABBBounds,
13496
13498
  width = box.width(),
@@ -13502,7 +13504,8 @@
13502
13504
  x: 0,
13503
13505
  y: 0,
13504
13506
  width: width,
13505
- height: height
13507
+ height: height,
13508
+ pickable: !1
13506
13509
  });
13507
13510
  shadowRoot.appendChild(child), children.push(child);
13508
13511
  });
@@ -13889,7 +13892,7 @@
13889
13892
  return this._transMatrix || (this._transMatrix = new Matrix()), this.shouldUpdateLocalMatrix() && (this.doUpdateLocalMatrix(), clearTag && this.clearUpdateLocalPositionTag()), this._transMatrix;
13890
13893
  }
13891
13894
  shouldUpdateAABBBounds() {
13892
- return this.shadowRoot ? !!(this._updateTag & UpdateTag.UPDATE_BOUNDS) || this.shadowRoot.shouldUpdateAABBBounds() : !!(this._updateTag & UpdateTag.UPDATE_BOUNDS);
13895
+ return this.shadowRoot ? (!!(this._updateTag & UpdateTag.UPDATE_BOUNDS) || this.shadowRoot.shouldUpdateAABBBounds()) && application.graphicService.validCheck(this.attribute, this.getGraphicTheme(), this._AABBBounds, this) : !!(this._updateTag & UpdateTag.UPDATE_BOUNDS) && application.graphicService.validCheck(this.attribute, this.getGraphicTheme(), this._AABBBounds, this);
13893
13896
  }
13894
13897
  shouldSelfChangeUpdateAABBBounds() {
13895
13898
  return this.shadowRoot ? !!(this._updateTag & UpdateTag.UPDATE_BOUNDS) || this.shadowRoot.shouldUpdateAABBBounds() : !!(this._updateTag & UpdateTag.UPDATE_BOUNDS);
@@ -18799,7 +18802,6 @@
18799
18802
  return getTheme$1(this).circle;
18800
18803
  }
18801
18804
  updateAABBBounds(attribute, circleTheme, aabbBounds, full) {
18802
- if (!application.graphicService.validCheck(attribute, circleTheme, aabbBounds, this)) return aabbBounds;
18803
18805
  this.updatePathProxyAABBBounds(aabbBounds) || (full ? this.updateCircleAABBBoundsImprecise(attribute, circleTheme, aabbBounds) : this.updateCircleAABBBoundsAccurate(attribute, circleTheme, aabbBounds));
18804
18806
  const {
18805
18807
  tb1: tb1,
@@ -18992,7 +18994,6 @@
18992
18994
  return getTheme$1(this).text;
18993
18995
  }
18994
18996
  updateAABBBounds(attribute, textTheme, aabbBounds) {
18995
- if (!application.graphicService.validCheck(attribute, textTheme, aabbBounds, this)) return aabbBounds;
18996
18997
  const {
18997
18998
  text = textTheme.text
18998
18999
  } = this.attribute;
@@ -19969,7 +19970,6 @@
19969
19970
  return getTheme$1(this).symbol;
19970
19971
  }
19971
19972
  updateAABBBounds(attribute, symbolTheme, aabbBounds, full) {
19972
- if (!application.graphicService.validCheck(attribute, symbolTheme, aabbBounds, this)) return aabbBounds;
19973
19973
  this.updatePathProxyAABBBounds(aabbBounds) || (full ? this.updateSymbolAABBBoundsImprecise(attribute, symbolTheme, aabbBounds) : this.updateSymbolAABBBoundsAccurate(attribute, symbolTheme, aabbBounds));
19974
19974
  const {
19975
19975
  tb1: tb1,
@@ -20047,7 +20047,6 @@
20047
20047
  return getTheme$1(this).line;
20048
20048
  }
20049
20049
  updateAABBBounds(attribute, lineTheme, aabbBounds) {
20050
- if (!application.graphicService.validCheck(attribute, lineTheme, aabbBounds, this)) return aabbBounds;
20051
20050
  this.updatePathProxyAABBBounds(aabbBounds) || (attribute.segments ? this.updateLineAABBBoundsBySegments(attribute, lineTheme, aabbBounds) : this.updateLineAABBBoundsByPoints(attribute, lineTheme, aabbBounds)), application.graphicService.updateTempAABBBounds(aabbBounds);
20052
20051
  const {
20053
20052
  lineJoin = lineTheme.lineJoin
@@ -20128,7 +20127,6 @@
20128
20127
  return getTheme$1(this).rect;
20129
20128
  }
20130
20129
  updateAABBBounds(attribute, rectTheme, aabbBounds) {
20131
- if (!application.graphicService.validCheck(attribute, rectTheme, aabbBounds, this)) return aabbBounds;
20132
20130
  if (!this.updatePathProxyAABBBounds(aabbBounds)) {
20133
20131
  let {
20134
20132
  width: width,
@@ -20306,9 +20304,9 @@
20306
20304
  return getTheme$1(this).glyph;
20307
20305
  }
20308
20306
  updateAABBBounds(attribute, theme, aabbBounds) {
20309
- return application.graphicService.validCheck(attribute, theme, aabbBounds, this) ? (this.getSubGraphic().forEach(node => {
20307
+ return this.getSubGraphic().forEach(node => {
20310
20308
  aabbBounds.union(node.AABBBounds);
20311
- }), aabbBounds) : aabbBounds;
20309
+ }), aabbBounds;
20312
20310
  }
20313
20311
  doUpdateAABBBounds() {
20314
20312
  this._AABBBounds.clear();
@@ -20632,7 +20630,6 @@
20632
20630
  return getTheme$1(this).image;
20633
20631
  }
20634
20632
  updateAABBBounds(attribute, imageTheme, aabbBounds) {
20635
- if (!application.graphicService.validCheck(attribute, imageTheme, aabbBounds, this)) return aabbBounds;
20636
20633
  if (!this.updatePathProxyAABBBounds(aabbBounds)) {
20637
20634
  const {
20638
20635
  width = imageTheme.width,
@@ -20906,7 +20903,6 @@
20906
20903
  return getTheme$1(this).richtext;
20907
20904
  }
20908
20905
  updateAABBBounds(attribute, richtextTheme, aabbBounds) {
20909
- if (!application.graphicService.validCheck(attribute, richtextTheme, aabbBounds, this)) return aabbBounds;
20910
20906
  const {
20911
20907
  width = richtextTheme.width,
20912
20908
  height = richtextTheme.height,
@@ -21123,7 +21119,6 @@
21123
21119
  return getTheme$1(this).path;
21124
21120
  }
21125
21121
  updateAABBBounds(attribute, pathTheme, aabbBounds) {
21126
- if (!application.graphicService.validCheck(attribute, pathTheme, aabbBounds, this)) return aabbBounds;
21127
21122
  if (!this.updatePathProxyAABBBounds(aabbBounds)) {
21128
21123
  const pathShape = this.getParsedPathShape();
21129
21124
  aabbBounds.union(pathShape.getBounds());
@@ -21189,7 +21184,6 @@
21189
21184
  return getTheme$1(this).area;
21190
21185
  }
21191
21186
  updateAABBBounds(attribute, areaTheme, aabbBounds) {
21192
- if (!application.graphicService.validCheck(attribute, areaTheme, aabbBounds, this)) return aabbBounds;
21193
21187
  this.updatePathProxyAABBBounds(aabbBounds) || (attribute.segments ? this.updateAreaAABBBoundsBySegments(attribute, areaTheme, aabbBounds) : this.updateAreaAABBBoundsByPoints(attribute, areaTheme, aabbBounds)), application.graphicService.updateTempAABBBounds(aabbBounds);
21194
21188
  const {
21195
21189
  lineJoin = areaTheme.lineJoin
@@ -21390,7 +21384,6 @@
21390
21384
  return getTheme$1(this).arc;
21391
21385
  }
21392
21386
  updateAABBBounds(attribute, arcTheme, aabbBounds, full) {
21393
- if (!application.graphicService.validCheck(attribute, arcTheme, aabbBounds, this)) return aabbBounds;
21394
21387
  this.updatePathProxyAABBBounds(aabbBounds) || (full ? this.updateArcAABBBoundsImprecise(attribute, arcTheme, aabbBounds) : this.updateArcAABBBoundsAccurate(attribute, arcTheme, aabbBounds));
21395
21388
  const {
21396
21389
  tb1: tb1,
@@ -21523,7 +21516,6 @@
21523
21516
  return getTheme$1(this).polygon;
21524
21517
  }
21525
21518
  updateAABBBounds(attribute, polygonTheme, aabbBounds) {
21526
- if (!application.graphicService.validCheck(attribute, polygonTheme, aabbBounds, this)) return aabbBounds;
21527
21519
  this.updatePathProxyAABBBounds(aabbBounds) || this.updatePolygonAABBBoundsImprecise(attribute, polygonTheme, aabbBounds), application.graphicService.updateTempAABBBounds(aabbBounds);
21528
21520
  const {
21529
21521
  lineJoin = polygonTheme.lineJoin
@@ -21664,6 +21656,9 @@
21664
21656
  y: 0
21665
21657
  }), this.type = "shadowroot", this.shadowHost = graphic;
21666
21658
  }
21659
+ clearUpdateBoundTag() {
21660
+ super.clearUpdateBoundTag(), this.shadowHost && this.shadowHost.clearUpdateBoundTag();
21661
+ }
21667
21662
  addUpdateBoundTag() {
21668
21663
  super.addUpdateBoundTag(), this.shadowHost && this.shadowHost.addUpdateBoundTag();
21669
21664
  }
@@ -22967,7 +22962,7 @@
22967
22962
  "virtual" === l.layerMode && (l = l.getNativeHandler().mainHandler.layer), list.includes(l) || list.push(l);
22968
22963
  }
22969
22964
  list.forEach(layer => {
22970
- layer.renderCount > this.renderCount || (layer.renderCount = this.renderCount + 1, layer.render({
22965
+ layer.renderCount > this.renderCount || (layer.renderCount = this.renderCount + 1, layer === this.interactiveLayer && this.dirtyBounds && this.dirtyBounds.clear(), layer.render({
22971
22966
  renderService: this.renderService,
22972
22967
  background: layer === this.defaultLayer ? this.background : void 0,
22973
22968
  updateBounds: !(!this.dirtyBounds || this.dirtyBounds.empty()),
@@ -22976,14 +22971,14 @@
22976
22971
  }, Object.assign({
22977
22972
  renderStyle: this.renderStyle
22978
22973
  }, params)));
22979
- }), this.interactiveLayer && !layerList.includes(this.interactiveLayer) && this.interactiveLayer.render({
22974
+ }), this.interactiveLayer && !layerList.includes(this.interactiveLayer) && (this.dirtyBounds && this.dirtyBounds.clear(), this.interactiveLayer.render({
22980
22975
  renderService: this.renderService,
22981
22976
  updateBounds: !(!this.dirtyBounds || this.dirtyBounds.empty()),
22982
22977
  viewBox: this.window.getViewBox(),
22983
22978
  transMatrix: this.window.getViewBoxTransform()
22984
22979
  }, Object.assign({
22985
22980
  renderStyle: this.renderStyle
22986
- }, params));
22981
+ }, params)));
22987
22982
  }
22988
22983
  resizeWindow(w, h) {
22989
22984
  let rerender = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !0;
@@ -24611,14 +24606,14 @@
24611
24606
  Factory$2.registerPlugin("ViewTransform3dPlugin", ViewTransform3dPlugin);
24612
24607
  };
24613
24608
 
24614
- function combineArray(arr) {
24609
+ function combineDomains(domains) {
24615
24610
  const result = [];
24616
- for (let index = 0; index < arr.length; index++) {
24617
- const element = arr[index];
24611
+ for (let index = 0; index < domains.length; index++) {
24612
+ const domain = domains[index];
24618
24613
  if (index === 0) {
24619
- result.push(element[0]);
24614
+ result.push(domain[0]);
24620
24615
  }
24621
- result.push(element[1]);
24616
+ result.push(domain[1]);
24622
24617
  }
24623
24618
  return result;
24624
24619
  }
@@ -31790,6 +31785,9 @@
31790
31785
  y: cy + (dy > 0 ? h : -h)
31791
31786
  };
31792
31787
  }
31788
+ function getAlignOffset(align) {
31789
+ return "left" === align ? 0 : "right" === align ? 1 : .5;
31790
+ }
31793
31791
 
31794
31792
  function loadLabelComponent() {
31795
31793
  registerGroup(), registerText(), registerRichtext(), registerLine();
@@ -32545,7 +32543,7 @@
32545
32543
  restAttributes = __rest$7(attributes, ["data"]);
32546
32544
  super((null == options ? void 0 : options.skipDefault) ? attributes : Object.assign({
32547
32545
  data: data
32548
- }, merge$2({}, ArcLabel.defaultAttributes, restAttributes))), this.name = "arc-label", this._ellipsisWidth = 0, this._arcLeft = new Map(), this._arcRight = new Map();
32546
+ }, merge$2({}, ArcLabel.defaultAttributes, restAttributes))), this.name = "arc-label", this._ellipsisWidth = 0, this._arcLeft = new Map(), this._arcRight = new Map(), this._line2MinLength = 0, this._alignOffset = 0;
32549
32547
  }
32550
32548
  _overlapping(labels) {
32551
32549
  return labels;
@@ -32557,6 +32555,7 @@
32557
32555
  };
32558
32556
  }
32559
32557
  _layout(texts) {
32558
+ var _a;
32560
32559
  if (!texts || !texts.length) return;
32561
32560
  const labels = super._layout(texts),
32562
32561
  textBoundsArray = labels.map(label => this.getGraphicBounds(label)),
@@ -32570,7 +32569,9 @@
32570
32569
  ellipsisWidth = ellipsisTextBounds.x2 - ellipsisTextBounds.x1;
32571
32570
  }
32572
32571
  const data = labels.map(label => label.attribute),
32573
- arcs = this.layoutArcLabels(this.attribute.position, this.attribute, Array.from(this._idToGraphic.values()), data, textBoundsArray, ellipsisWidth);
32572
+ currentMarks = Array.from(this._idToGraphic.values());
32573
+ this._line2MinLength = isFunction$1(this.attribute.line.line2MinLength) ? this.attribute.line.line2MinLength(texts, currentMarks, this.attribute) : this.attribute.line.line2MinLength, this._alignOffset = null !== (_a = isFunction$1(this.attribute.layout.alignOffset) ? this.attribute.layout.alignOffset(texts, currentMarks, this.attribute) : this.attribute.layout.alignOffset) && void 0 !== _a ? _a : 0;
32574
+ const arcs = this.layoutArcLabels(this.attribute.position, this.attribute, currentMarks, data, textBoundsArray, ellipsisWidth);
32574
32575
  for (let i = 0; i < data.length; i++) {
32575
32576
  const textData = data[i],
32576
32577
  basedArc = arcs.find(arc => {
@@ -32676,13 +32677,12 @@
32676
32677
  var _a, _b, _c;
32677
32678
  const center_x = null !== (_a = currentMarks[0].attribute.x) && void 0 !== _a ? _a : 0,
32678
32679
  height = 2 * (null !== (_b = currentMarks[0].attribute.y) && void 0 !== _b ? _b : 0),
32679
- line2MinLength = attribute.line.line2MinLength,
32680
32680
  labelLayout = attribute.layout,
32681
32681
  spaceWidth = attribute.spaceWidth;
32682
32682
  if (arcs.forEach(arc => {
32683
32683
  const direction = isQuadrantLeft(arc.quadrant) ? -1 : 1;
32684
32684
  arc.labelPosition = {
32685
- x: arc.outerCenter.x + direction * (arc.labelSize.width / 2 + line2MinLength + spaceWidth),
32685
+ x: arc.outerCenter.x + direction * (arc.labelSize.width / 2 + this._line2MinLength + spaceWidth),
32686
32686
  y: arc.outerCenter.y
32687
32687
  };
32688
32688
  }), arcs.sort((a, b) => a.labelPosition.y - b.labelPosition.y), !1 !== attribute.coverEnable || "none" === labelLayout.strategy) {
@@ -32692,10 +32692,10 @@
32692
32692
  labelSize: labelSize
32693
32693
  } = arc;
32694
32694
  arc.labelLimit = labelSize.width, arc.pointB = isQuadrantLeft(arc.quadrant) ? {
32695
- x: labelPosition.x + labelSize.width / 2 + line2MinLength + spaceWidth,
32695
+ x: labelPosition.x + labelSize.width / 2 + this._line2MinLength + spaceWidth,
32696
32696
  y: labelPosition.y
32697
32697
  } : {
32698
- x: labelPosition.x - labelSize.width / 2 - line2MinLength - spaceWidth,
32698
+ x: labelPosition.x - labelSize.width / 2 - this._line2MinLength - spaceWidth,
32699
32699
  y: labelPosition.y
32700
32700
  }, this._computeX(arc, attribute, currentMarks);
32701
32701
  }
@@ -32723,21 +32723,23 @@
32723
32723
  const width = 2 * center_x;
32724
32724
  return arcs.forEach(arc => {
32725
32725
  var _a, _b;
32726
- arc.labelVisible && (isLess(arc.pointB.x, line2MinLength + spaceWidth) || isGreater(arc.pointB.x, width - line2MinLength - spaceWidth)) && (arc.labelVisible = !1), arc.angle = null !== (_b = null === (_a = attribute.textStyle) || void 0 === _a ? void 0 : _a.angle) && void 0 !== _b ? _b : 0, attribute.offsetAngle && (arc.angle += attribute.offsetAngle), arc.labelLine = Object.assign({}, attribute.line);
32726
+ arc.labelVisible && (isLess(arc.pointB.x, this._line2MinLength + spaceWidth) || isGreater(arc.pointB.x, width - this._line2MinLength - spaceWidth)) && (arc.labelVisible = !1), arc.angle = null !== (_b = null === (_a = attribute.textStyle) || void 0 === _a ? void 0 : _a.angle) && void 0 !== _b ? _b : 0, attribute.offsetAngle && (arc.angle += attribute.offsetAngle), arc.labelLine = Object.assign(Object.assign({}, attribute.line), {
32727
+ visible: arc.labelVisible
32728
+ });
32727
32729
  }), arcs;
32728
32730
  }
32729
32731
  _computeX(arc, attribute, currentMarks) {
32730
32732
  var _a;
32731
32733
  const center = arc.circleCenter,
32732
- plotLayout_width = 2 * center.x;
32733
- center.y;
32734
+ plotLayout_x1 = 0,
32735
+ plotLayout_x2 = this.attribute.width;
32736
+ this.attribute.height;
32734
32737
  let maxRadius = 0;
32735
32738
  currentMarks.forEach(currentMark => {
32736
32739
  currentMark.attribute.outerRadius > maxRadius && (maxRadius = currentMark.attribute.outerRadius);
32737
32740
  });
32738
32741
  const radiusRatio = this.computeLayoutOuterRadius(maxRadius, attribute.width, attribute.height),
32739
32742
  line1MinLength = attribute.line.line1MinLength,
32740
- line2MinLength = attribute.line.line2MinLength,
32741
32743
  labelLayoutAlign = null === (_a = attribute.layout) || void 0 === _a ? void 0 : _a.align,
32742
32744
  spaceWidth = attribute.spaceWidth,
32743
32745
  {
@@ -32751,9 +32753,9 @@
32751
32753
  }, labelPosition.x = NaN, arc.labelLimit = 0);
32752
32754
  const radius = this.computeRadius(radiusRatio, attribute.width, attribute.height),
32753
32755
  flag = isQuadrantLeft(quadrant) ? -1 : 1;
32754
- let cx = 0;
32755
- let limit = (flag > 0 ? plotLayout_width - pointB.x : pointB.x) - line2MinLength - spaceWidth;
32756
- "labelLine" === labelLayoutAlign && (cx = (radius + line1MinLength + line2MinLength) * flag + center.x, limit = (flag > 0 ? plotLayout_width - cx : cx) - spaceWidth);
32756
+ let cx = 0,
32757
+ limit = (flag > 0 ? plotLayout_x2 - pointB.x : pointB.x - plotLayout_x1) - this._line2MinLength - spaceWidth;
32758
+ "labelLine" === labelLayoutAlign && (cx = (radius + line1MinLength + this._line2MinLength) * flag + center.x, limit = (flag > 0 ? plotLayout_x2 - cx : cx - plotLayout_x1) - spaceWidth);
32757
32759
  const text = this._getFormatLabelText(arc.refDatum, limit);
32758
32760
  arc.labelText = text;
32759
32761
  let labelWidth = Math.min(limit, arc.labelSize.width);
@@ -32761,23 +32763,18 @@
32761
32763
  case "labelLine":
32762
32764
  break;
32763
32765
  case "edge":
32764
- cx = flag > 0 ? plotLayout_width - labelWidth - spaceWidth : labelWidth + spaceWidth;
32766
+ cx = flag > 0 ? plotLayout_x2 - labelWidth - spaceWidth : plotLayout_x1 + labelWidth + spaceWidth;
32765
32767
  break;
32766
32768
  default:
32767
- cx = pointB.x + flag * line2MinLength;
32769
+ cx = pointB.x + flag * this._line2MinLength;
32768
32770
  }
32769
32771
  labelWidth = Math.max(this._ellipsisWidth, labelWidth), arc.labelLimit = labelWidth, arc.pointC = {
32770
32772
  x: cx,
32771
32773
  y: labelPosition.y
32772
32774
  };
32773
- const targetCenterOffset = .5 * (arc.labelLimit < arc.labelSize.width ? arc.labelLimit : arc.labelSize.width);
32774
- if ("edge" === labelLayoutAlign) {
32775
- const alignOffset = 0;
32776
- labelPosition.x = (flag > 0 ? plotLayout_width + alignOffset : alignOffset) - flag * targetCenterOffset;
32777
- } else {
32778
- const alignOffset = 0;
32779
- labelPosition.x = cx + alignOffset + flag * (spaceWidth + targetCenterOffset);
32780
- }
32775
+ const align = this._computeAlign(arc, attribute),
32776
+ targetCenterOffset = getAlignOffset(align) * (arc.labelLimit < arc.labelSize.width ? arc.labelLimit : arc.labelSize.width);
32777
+ "edge" === labelLayoutAlign ? (labelPosition.x = (flag > 0 ? plotLayout_x2 : plotLayout_x1) - flag * targetCenterOffset + flag * this._alignOffset, arc.pointC.x += flag * this._alignOffset) : labelPosition.x = cx + flag * (this._alignOffset + spaceWidth + targetCenterOffset);
32781
32778
  }
32782
32779
  _computeAlign(arc, attribute) {
32783
32780
  var _a, _b, _c, _d, _e, _f;
@@ -33119,6 +33116,7 @@
33119
33116
  type: type
33120
33117
  } = dataLabel,
33121
33118
  id = null !== (_a = dataLabel.id) && void 0 !== _a ? _a : `${baseMarkGroupName}-${type}-${i}`;
33119
+ "arc" === dataLabel.type && (dataLabel.width = size.width, dataLabel.height = size.height);
33122
33120
  let component = this._componentMap.get(id);
33123
33121
  component ? (component.setBitmapTool(tool), component.setBitmap(bitmap), component.setAttributes(dataLabel), currentComponentMap.set(id, component)) : (component = new labelComponent(dataLabel), component.setBitmap(bitmap), component.setBitmapTool(tool), this.add(component), currentComponentMap.set(id, component));
33124
33122
  }
@@ -34056,6 +34054,18 @@
34056
34054
  };
34057
34055
  }
34058
34056
 
34057
+ function normalizeOverflowLimitLength(overflowLimitLength) {
34058
+ return isValidNumber$1(overflowLimitLength) ? {
34059
+ left: overflowLimitLength,
34060
+ right: overflowLimitLength
34061
+ } : isObject$2(overflowLimitLength) ? {
34062
+ left: overflowLimitLength.left || 0,
34063
+ right: overflowLimitLength.right || 0
34064
+ } : {
34065
+ left: 0,
34066
+ right: 0
34067
+ };
34068
+ }
34059
34069
  function autoLimit(labels, config) {
34060
34070
  const {
34061
34071
  limitLength: limitLength,
@@ -34065,6 +34075,7 @@
34065
34075
  axisLength: axisLength
34066
34076
  } = config;
34067
34077
  if (isEmpty(labels) || !isValidNumber$1(limitLength)) return;
34078
+ const overflowLimitLength = normalizeOverflowLimitLength(config.overflowLimitLength);
34068
34079
  labels.forEach(label => {
34069
34080
  var _a;
34070
34081
  const angle = label.attribute.angle,
@@ -34092,8 +34103,15 @@
34092
34103
  x1: x1,
34093
34104
  x2: x2
34094
34105
  } = label.AABBBounds,
34095
- tan = sin / cos;
34096
- limitLabelLength = tan > 0 && x1 <= axisLength && limitLength / tan + x1 > axisLength ? (axisLength - x1) / Math.abs(cos) : tan < 0 && x2 >= 0 && limitLength / tan + x2 < 0 ? x2 / Math.abs(cos) : Math.abs(limitLength / sin);
34106
+ tan = sin / cos,
34107
+ verticalSizeLimit = Math.abs(limitLength / sin);
34108
+ if (tan > 0 && x1 <= axisLength && limitLength / tan + x1 > axisLength) {
34109
+ const lengthLimit = (axisLength - x1) / Math.abs(cos) + overflowLimitLength.right;
34110
+ limitLabelLength = Math.min(lengthLimit, verticalSizeLimit);
34111
+ } else if (tan < 0 && x2 >= 0 && limitLength / tan + x2 < 0) {
34112
+ const lengthLimit = x2 / Math.abs(cos) + overflowLimitLength.left;
34113
+ limitLabelLength = Math.min(lengthLimit, verticalSizeLimit);
34114
+ } else limitLabelLength = verticalSizeLimit;
34097
34115
  } else limitLabelLength = Math.abs(limitLength / cos);
34098
34116
  isValidNumber$1(label.attribute.maxLineWidth) && (limitLabelLength = isValidNumber$1(limitLabelLength) ? Math.min(label.attribute.maxLineWidth, limitLabelLength) : label.attribute.maxLineWidth), label.setAttributes({
34099
34117
  maxLineWidth: limitLabelLength,
@@ -34529,7 +34547,8 @@
34529
34547
  autoHideMethod: autoHideMethod,
34530
34548
  autoHideSeparation: autoHideSeparation,
34531
34549
  lastVisible: lastVisible,
34532
- autoWrap: autoWrap$1
34550
+ autoWrap: autoWrap$1,
34551
+ overflowLimitLength: overflowLimitLength
34533
34552
  } = label;
34534
34553
  if (isFunction$1(layoutFunc)) layoutFunc(labelShapes, labelData, layer, this);else {
34535
34554
  if (autoRotate$1) autoRotate(labelShapes, {
@@ -34553,7 +34572,8 @@
34553
34572
  verticalLimitLength: verticalLimitLength,
34554
34573
  ellipsis: limitEllipsis,
34555
34574
  orient: orient,
34556
- axisLength: axisLength
34575
+ axisLength: axisLength,
34576
+ overflowLimitLength: overflowLimitLength
34557
34577
  });
34558
34578
  }
34559
34579
  autoHide$1 && autoHide(labelShapes, {
@@ -50626,9 +50646,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
50626
50646
  };
50627
50647
  markNodes.forEach(node => {
50628
50648
  const mark = node.mark;
50629
- mark.animate && 0 === mark.animate.getAnimatorCount() ? releaseUp(node) : mark.addEventListener("animationEnd", () => {
50649
+ mark.animate && 0 !== mark.animate.getAnimatorCount() ? mark.addEventListener("animationEnd", () => {
50630
50650
  mark.animate && 0 === mark.animate.getAnimatorCount() && releaseUp(node);
50631
- });
50651
+ }) : releaseUp(node);
50632
50652
  }), this._cachedGrammars.clear();
50633
50653
  }
50634
50654
  runAfter(callback) {
@@ -56488,6 +56508,17 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
56488
56508
  }
56489
56509
  }
56490
56510
  }
56511
+ clearAllEventElement() {
56512
+ if (this._disableTriggerEvent) {
56513
+ return;
56514
+ }
56515
+ for (const [stateValue, elements] of this._stateElements) {
56516
+ elements.forEach(e => {
56517
+ e.clearStates();
56518
+ });
56519
+ this._stateElements.set(stateValue, []);
56520
+ }
56521
+ }
56491
56522
  reverseEventElement(stateValue) {
56492
56523
  if (this._disableTriggerEvent) {
56493
56524
  return;
@@ -56542,12 +56573,22 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
56542
56573
  });
56543
56574
  }
56544
56575
  }
56576
+ resetAllInteraction() {
56577
+ for (const [stateValue, interactions] of this._vgrammarInteractions) {
56578
+ if (interactions) {
56579
+ interactions.forEach(vgInteraction => {
56580
+ vgInteraction.reset(null);
56581
+ });
56582
+ }
56583
+ }
56584
+ }
56545
56585
  }
56546
56586
 
56547
56587
  const USER_LAYOUT_RECT_LEVEL = 9;
56548
56588
  const DEFAULT_LAYOUT_RECT_LEVEL = 0;
56549
56589
  var LayoutZIndex;
56550
56590
  (function (LayoutZIndex) {
56591
+ LayoutZIndex[LayoutZIndex["SeriesGroup"] = 0] = "SeriesGroup";
56551
56592
  LayoutZIndex[LayoutZIndex["Axis_Grid"] = 50] = "Axis_Grid";
56552
56593
  LayoutZIndex[LayoutZIndex["CrossHair_Grid"] = 100] = "CrossHair_Grid";
56553
56594
  LayoutZIndex[LayoutZIndex["Region"] = 450] = "Region";
@@ -57601,12 +57642,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
57601
57642
  return hasDataZoom || hasScrollBar ? true : this._layout.layoutClip;
57602
57643
  }
57603
57644
  created() {
57604
- var _a;
57645
+ var _a, _b;
57605
57646
  this.initLayout();
57606
57647
  super.created();
57607
57648
  const clip = (_a = this._spec.clip) !== null && _a !== void 0 ? _a : this._getClipDefaultValue();
57608
57649
  this._groupMark = this._createGroupMark('regionGroup', this.userId, this.layoutZIndex);
57609
- this._interactionMark = this._createGroupMark('regionInteractionGroup', this.userId + '_interaction', LayoutZIndex.Interaction);
57650
+ this._interactionMark = this._createGroupMark('regionInteractionGroup', ((_b = this.userId) !== null && _b !== void 0 ? _b : this.type) + '_interaction', LayoutZIndex.Interaction);
57610
57651
  if (!isEmpty(this._spec.style)) {
57611
57652
  this._backgroundMark = this._createMark({ type: "rect", name: 'regionBackground' });
57612
57653
  if (clip) {
@@ -57622,7 +57663,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
57622
57663
  this._groupMark.addMark(mark);
57623
57664
  }
57624
57665
  });
57625
- this._backgroundMark && this._backgroundMark.setZIndex(0);
57666
+ this._backgroundMark && this._backgroundMark.setZIndex(LayoutZIndex.SeriesGroup - 1);
57626
57667
  this._foregroundMark && this._foregroundMark.setZIndex(LayoutZIndex.Mark + 1);
57627
57668
  }
57628
57669
  this.createTrigger();
@@ -60589,6 +60630,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
60589
60630
  }
60590
60631
  this._chart.clearState(state);
60591
60632
  }
60633
+ clearAllStates() {
60634
+ if (!this._chart) {
60635
+ return;
60636
+ }
60637
+ this._chart.clearAllStates();
60638
+ }
60592
60639
  clearSelected() {
60593
60640
  if (!this._chart) {
60594
60641
  return;
@@ -61096,7 +61143,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
61096
61143
  };
61097
61144
  registerVChartCore();
61098
61145
 
61099
- const version = "1.12.4-alpha.0";
61146
+ const version = "1.12.4";
61100
61147
 
61101
61148
  const addVChartProperty = (data, op) => {
61102
61149
  const context = op.beforeCall();
@@ -61112,13 +61159,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
61112
61159
  constructor() {
61113
61160
  this.activeTriggerSet = {
61114
61161
  mark: new Set(),
61115
- dimension: new Set(),
61116
61162
  group: new Set()
61117
61163
  };
61118
61164
  this.ignoreTriggerSet = {
61119
- mark: new Set(),
61120
- dimension: new Set(),
61121
- group: new Set()
61165
+ mark: new Set()
61122
61166
  };
61123
61167
  }
61124
61168
  }
@@ -62155,7 +62199,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
62155
62199
  this._viewDataMap = new Map();
62156
62200
  this._viewDataFilter = null;
62157
62201
  this._data = null;
62158
- this.layoutZIndex = 0;
62202
+ this.layoutZIndex = LayoutZIndex.SeriesGroup;
62159
62203
  this._invalidType = 'break';
62160
62204
  this._region = options.region;
62161
62205
  this._dataSet = options.dataSet;
@@ -64378,6 +64422,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
64378
64422
  rawValue: value
64379
64423
  };
64380
64424
  }
64425
+ function shouldUpdateAxis(preHelper, curHelper, forceUpdate) {
64426
+ return forceUpdate || !preHelper || preHelper.getAxisId() === curHelper.getAxisId();
64427
+ }
64381
64428
 
64382
64429
  class ComponentPluginService extends BasePluginService {
64383
64430
  constructor(component) {
@@ -65222,13 +65269,19 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
65222
65269
  eachSeries(this._regions, s => {
65223
65270
  const orient = this.getOrient();
65224
65271
  if (isXAxis(orient)) {
65225
- s.setXAxisHelper(this.axisHelper());
65272
+ if (shouldUpdateAxis(s.getXAxisHelper(), this.axisHelper(), isValid$1(this._seriesUserId) || isValid$1(this._seriesIndex))) {
65273
+ s.setXAxisHelper(this.axisHelper());
65274
+ }
65226
65275
  }
65227
65276
  else if (isYAxis(orient)) {
65228
- s.setYAxisHelper(this.axisHelper());
65277
+ if (shouldUpdateAxis(s.getYAxisHelper(), this.axisHelper(), isValid$1(this._seriesUserId) || isValid$1(this._seriesIndex))) {
65278
+ s.setYAxisHelper(this.axisHelper());
65279
+ }
65229
65280
  }
65230
65281
  else if (isZAxis(orient)) {
65231
- s.setZAxisHelper(this.axisHelper());
65282
+ if (shouldUpdateAxis(s.getZAxisHelper(), this.axisHelper(), isValid$1(this._seriesUserId) || isValid$1(this._seriesIndex))) {
65283
+ s.setZAxisHelper(this.axisHelper());
65284
+ }
65232
65285
  }
65233
65286
  }, {
65234
65287
  userId: this._seriesUserId,
@@ -65605,16 +65658,22 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
65605
65658
  const orient = this.getOrient();
65606
65659
  eachSeries(this._regions, s => {
65607
65660
  if (isXAxis(orient)) {
65608
- s.setScaleX(this._scale);
65609
- s.setXAxisHelper(this.axisHelper());
65661
+ if (shouldUpdateAxis(s.getXAxisHelper(), this.axisHelper(), isValid$1(this._seriesUserId) || isValid$1(this._seriesIndex))) {
65662
+ s.setScaleX(this._scale);
65663
+ s.setXAxisHelper(this.axisHelper());
65664
+ }
65610
65665
  }
65611
65666
  else if (isYAxis(orient)) {
65612
- s.setScaleY(this._scale);
65613
- s.setYAxisHelper(this.axisHelper());
65667
+ if (shouldUpdateAxis(s.getYAxisHelper(), this.axisHelper(), isValid$1(this._seriesUserId) || isValid$1(this._seriesIndex))) {
65668
+ s.setScaleY(this._scale);
65669
+ s.setYAxisHelper(this.axisHelper());
65670
+ }
65614
65671
  }
65615
65672
  else if (isZAxis(orient)) {
65616
- s.setScaleZ(this._scale);
65617
- s.setZAxisHelper(this.axisHelper());
65673
+ if (shouldUpdateAxis(s.getZAxisHelper(), this.axisHelper(), isValid$1(this._seriesUserId) || isValid$1(this._seriesIndex))) {
65674
+ s.setScaleZ(this._scale);
65675
+ s.setZAxisHelper(this.axisHelper());
65676
+ }
65618
65677
  }
65619
65678
  }, {
65620
65679
  userId: this._seriesUserId,
@@ -65815,6 +65874,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
65815
65874
  .filter((entry) => {
65816
65875
  const { value, rawValue } = entry;
65817
65876
  const domain = this._scale.domain();
65877
+ if (this.getSpec().type === 'log') {
65878
+ return value >= 0 && value <= 1;
65879
+ }
65818
65880
  if (isContinuous(this._scale.type)) {
65819
65881
  return rawValue >= domain[0] && rawValue <= last(domain);
65820
65882
  }
@@ -66016,7 +66078,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
66016
66078
  }
66017
66079
  else if (isFunction$1(tick.tickCount)) {
66018
66080
  const range = this._scale.range();
66019
- let rangeSize = Math.abs(range[range.length - 1] - range[0]);
66081
+ let rangeSize = Math.abs(last(range) - range[0]);
66020
66082
  if (rangeSize === 1 && this._option) {
66021
66083
  const isX = isXAxis(this._orient);
66022
66084
  rangeSize = isX ? this._option.getChartViewRect().width : this._option.getChartViewRect().height;
@@ -66096,15 +66158,15 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
66096
66158
  const breaks = [];
66097
66159
  for (let index = 0; index < this._spec.breaks.length; index++) {
66098
66160
  const { range } = this._spec.breaks[index];
66099
- if (range[0] <= range[1] && (range[1] <= maxDomain || range[1] <= minDomain)) {
66161
+ if (range[0] <= range[1] && range[1] <= maxDomain) {
66100
66162
  breakRanges.push(range);
66101
66163
  breaks.push(this._spec.breaks[index]);
66102
66164
  }
66103
66165
  }
66104
66166
  breakRanges.sort((a, b) => a[0] - b[0]);
66105
66167
  if (breakRanges.length) {
66106
- const { domain: breakDomains, scope: breakScopes } = breakData(values, combineArray(breakRanges));
66107
- domain = combineArray(breakDomains);
66168
+ const { domain: breakDomains, scope: breakScopes } = breakData(values, combineDomains(breakRanges));
66169
+ domain = combineDomains(breakDomains);
66108
66170
  this._break = {
66109
66171
  domain: breakDomains,
66110
66172
  scope: breakScopes,
@@ -66135,7 +66197,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
66135
66197
  return;
66136
66198
  }
66137
66199
  let domainMin = domain[0];
66138
- let domainMax = domain[domain.length - 1];
66200
+ let domainMax = last(domain);
66139
66201
  if (domainMin === domainMax) {
66140
66202
  if (domainMax === 0) {
66141
66203
  domainMax = 1;
@@ -66186,7 +66248,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
66186
66248
  includeZero(domain) {
66187
66249
  if (this._zero) {
66188
66250
  domain[0] = Math.min(domain[0], 0);
66189
- domain[domain.length - 1] = Math.max(domain[domain.length - 1], 0);
66251
+ domain[domain.length - 1] = Math.max(last(domain), 0);
66190
66252
  }
66191
66253
  }
66192
66254
  setExtendDomain(key, value) {
@@ -66245,9 +66307,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
66245
66307
  if (isValid$1(softMax)) {
66246
66308
  let softMaxValue = isFunction$1(softMax) ? softMax(domain) : softMax;
66247
66309
  if (isNil$1(softMaxValue)) {
66248
- softMaxValue = domain[domain.length - 1];
66310
+ softMaxValue = last(domain);
66249
66311
  }
66250
- if (softMaxValue >= domain[domain.length - 1]) {
66312
+ if (softMaxValue >= last(domain)) {
66251
66313
  domain[domain.length - 1] = softMaxValue;
66252
66314
  }
66253
66315
  this._softMaxValue = softMaxValue;
@@ -66287,7 +66349,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
66287
66349
  return this._domainAfterSpec;
66288
66350
  }
66289
66351
  _updateNiceLabelFormatter(domain) {
66290
- const domainSpan = Math.abs(domain[domain.length - 1] - domain[0]);
66352
+ const domainSpan = Math.abs(last(domain) - domain[0]);
66291
66353
  const n = Math.max(-Math.floor(Math.log10(domainSpan)), 0) + 2;
66292
66354
  const unit = Math.pow(10, n);
66293
66355
  this.niceLabelFormatter = (value) => {
@@ -66360,7 +66422,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
66360
66422
  var _a, _b;
66361
66423
  let newRange = super.getNewScaleRange();
66362
66424
  if (((_a = this._spec.breaks) === null || _a === void 0 ? void 0 : _a.length) && ((_b = this._break) === null || _b === void 0 ? void 0 : _b.scope)) {
66363
- newRange = combineArray(this._break.scope).map(val => newRange[0] + (last(newRange) - newRange[0]) * val);
66425
+ newRange = combineDomains(this._break.scope).map(val => newRange[0] + (last(newRange) - newRange[0]) * val);
66364
66426
  }
66365
66427
  return newRange;
66366
66428
  }
@@ -66698,10 +66760,14 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
66698
66760
  this.computeData(params === null || params === void 0 ? void 0 : params.value);
66699
66761
  eachSeries(this._regions, s => {
66700
66762
  if (isXAxis(this.getOrient())) {
66701
- s.setXAxisHelper(this.axisHelper());
66763
+ if (shouldUpdateAxis(s.getXAxisHelper(), this.axisHelper(), isValid$1(this._seriesUserId) || isValid$1(this._seriesIndex))) {
66764
+ s.setXAxisHelper(this.axisHelper());
66765
+ }
66702
66766
  }
66703
66767
  else {
66704
- s.setYAxisHelper(this.axisHelper());
66768
+ if (shouldUpdateAxis(s.getYAxisHelper(), this.axisHelper(), isValid$1(this._seriesUserId) || isValid$1(this._seriesIndex))) {
66769
+ s.setYAxisHelper(this.axisHelper());
66770
+ }
66705
66771
  }
66706
66772
  }, {
66707
66773
  userId: this._seriesUserId,
@@ -66879,9 +66945,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
66879
66945
  }
66880
66946
  initTooltip() {
66881
66947
  super.initTooltip();
66882
- const { dimension, group, mark } = this._tooltipHelper.activeTriggerSet;
66948
+ const { group, mark } = this._tooltipHelper.activeTriggerSet;
66883
66949
  if (this._lineMark) {
66884
- dimension.add(this._lineMark);
66885
66950
  group.add(this._lineMark);
66886
66951
  }
66887
66952
  if (this._symbolMark) {
@@ -68121,6 +68186,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
68121
68186
  return;
68122
68187
  });
68123
68188
  }
68189
+ clearAllStates() {
68190
+ this.getAllRegions().forEach(r => {
68191
+ r.interaction.clearAllEventElement();
68192
+ r.interaction.resetAllInteraction();
68193
+ return;
68194
+ });
68195
+ }
68124
68196
  clearSelected() {
68125
68197
  this.clearState(STATE_VALUE_ENUM.STATE_SELECTED);
68126
68198
  }
@@ -69034,13 +69106,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
69034
69106
  }
69035
69107
  initTooltip() {
69036
69108
  this._tooltipHelper = new AreaSeriesTooltipHelper(this);
69037
- const { dimension, group, mark } = this._tooltipHelper.activeTriggerSet;
69109
+ const { group, mark } = this._tooltipHelper.activeTriggerSet;
69038
69110
  if (this._areaMark) {
69039
- dimension.add(this._areaMark);
69040
69111
  group.add(this._areaMark);
69041
69112
  }
69042
69113
  if (this._lineMark) {
69043
- dimension.add(this._lineMark);
69044
69114
  group.add(this._lineMark);
69045
69115
  }
69046
69116
  if (this._symbolMark) {
@@ -69659,7 +69729,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
69659
69729
  [STACK_FIELD_END_PERCENT]: maxPercent
69660
69730
  }
69661
69731
  : undefined));
69662
- rectPaths.push(createRect(Object.assign(Object.assign({}, (this.direction === "horizontal"
69732
+ const rectAttr = this.direction === "horizontal"
69663
69733
  ? {
69664
69734
  x: this._getBarXStart(mockDatum, xScale),
69665
69735
  x1: this._getBarXEnd(mockDatum, xScale),
@@ -69671,7 +69741,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
69671
69741
  y1: this._getBarYEnd(mockDatum, yScale),
69672
69742
  x: this._getPosition(this.direction, mockDatum),
69673
69743
  width: this._getBarWidth(this._xAxisHelper)
69674
- })), { cornerRadius: this._spec.stackCornerRadius, fill: true })));
69744
+ };
69745
+ rectPaths.push(createRect(Object.assign(Object.assign({}, rectAttr), { cornerRadius: isFunction$1(this._spec.stackCornerRadius)
69746
+ ? this._spec.stackCornerRadius(rectAttr, mockDatum, this._markAttributeContext)
69747
+ : this._spec.stackCornerRadius, fill: true })));
69675
69748
  });
69676
69749
  return rectPaths;
69677
69750
  });
@@ -73759,7 +73832,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
73759
73832
  }
73760
73833
  initTooltip() {
73761
73834
  this._tooltipHelper = new RangeAreaSeriesTooltipHelper(this);
73762
- this._areaMark && this._tooltipHelper.activeTriggerSet.dimension.add(this._areaMark);
73763
73835
  }
73764
73836
  _isFieldAllValid() {
73765
73837
  const viewStatistics = this.getViewDataStatistics();
@@ -74454,12 +74526,14 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
74454
74526
  customShape: (_a = this._spec.pie) === null || _a === void 0 ? void 0 : _a.customShape,
74455
74527
  stateSort: (_b = this._spec.pie) === null || _b === void 0 ? void 0 : _b.stateSort
74456
74528
  });
74457
- this._emptyArcMark = this._createMark({
74458
- name: 'emptyCircle',
74459
- type: 'arc'
74460
- }, {
74461
- dataView: false
74462
- });
74529
+ if (this._showEmptyCircle) {
74530
+ this._emptyArcMark = this._createMark({
74531
+ name: 'emptyCircle',
74532
+ type: 'arc'
74533
+ }, {
74534
+ dataView: false
74535
+ });
74536
+ }
74463
74537
  }
74464
74538
  startAngleScale(datum) {
74465
74539
  return field$2(ARC_START_ANGLE)(datum);
@@ -74493,7 +74567,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
74493
74567
  }
74494
74568
  const emptyPieMark = this._emptyArcMark;
74495
74569
  if (emptyPieMark) {
74496
- this.setMarkStyle(emptyPieMark, Object.assign(Object.assign({}, initialStyle), { visible: () => this._showEmptyCircle && this.getViewData().latestData.length === 0 }), 'normal', AttributeLevel.Series);
74570
+ this.setMarkStyle(emptyPieMark, Object.assign(Object.assign({}, initialStyle), { visible: () => this.getViewData().latestData.length === 0 }), 'normal', AttributeLevel.Series);
74497
74571
  }
74498
74572
  }
74499
74573
  initInteraction() {
@@ -75001,10 +75075,14 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
75001
75075
  this.computeData(param === null || param === void 0 ? void 0 : param.value);
75002
75076
  eachSeries(this._regions, s => {
75003
75077
  if (this.getOrient() === 'radius') {
75004
- s.radiusAxisHelper = this.axisHelper();
75078
+ if (shouldUpdateAxis(s.radiusAxisHelper, this.axisHelper(), isValid$1(this._seriesUserId) || isValid$1(this._seriesIndex))) {
75079
+ s.radiusAxisHelper = this.axisHelper();
75080
+ }
75005
75081
  }
75006
75082
  else {
75007
- s.angleAxisHelper = this.axisHelper();
75083
+ if (shouldUpdateAxis(s.angleAxisHelper, this.axisHelper(), isValid$1(this._seriesUserId) || isValid$1(this._seriesIndex))) {
75084
+ s.angleAxisHelper = this.axisHelper();
75085
+ }
75008
75086
  }
75009
75087
  }, {
75010
75088
  userId: this._seriesUserId,
@@ -75094,12 +75172,16 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
75094
75172
  updateSeriesScale() {
75095
75173
  eachSeries(this._regions, s => {
75096
75174
  if (this.getOrient() === 'radius') {
75097
- s.setRadiusScale(this._scale);
75098
- s.radiusAxisHelper = this.axisHelper();
75175
+ if (shouldUpdateAxis(s.radiusAxisHelper, this.axisHelper(), isValid$1(this._seriesUserId) || isValid$1(this._seriesIndex))) {
75176
+ s.setRadiusScale(this._scale);
75177
+ s.radiusAxisHelper = this.axisHelper();
75178
+ }
75099
75179
  }
75100
75180
  else {
75101
- s.setAngleScale(this._scale);
75102
- s.angleAxisHelper = this.axisHelper();
75181
+ if (shouldUpdateAxis(s.angleAxisHelper, this.axisHelper(), isValid$1(this._seriesUserId) || isValid$1(this._seriesIndex))) {
75182
+ s.setAngleScale(this._scale);
75183
+ s.angleAxisHelper = this.axisHelper();
75184
+ }
75103
75185
  }
75104
75186
  }, {
75105
75187
  userId: this._seriesUserId,
@@ -75817,13 +75899,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
75817
75899
  }
75818
75900
  initTooltip() {
75819
75901
  super.initTooltip();
75820
- const { dimension, group, mark } = this._tooltipHelper.activeTriggerSet;
75902
+ const { group, mark } = this._tooltipHelper.activeTriggerSet;
75821
75903
  if (this._lineMark) {
75822
- dimension.add(this._lineMark);
75823
75904
  group.add(this._lineMark);
75824
75905
  }
75825
75906
  if (this._areaMark) {
75826
- dimension.add(this._areaMark);
75827
75907
  group.add(this._areaMark);
75828
75908
  }
75829
75909
  if (this._symbolMark) {
@@ -75909,40 +75989,26 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
75909
75989
  },
75910
75990
  content: [
75911
75991
  {
75912
- hasShape: true,
75913
- shapeType: 'square',
75914
- shapeColor: this.shapeColorCallback,
75915
- shapeStroke: this.shapeStrokeCallback,
75916
75992
  key: (datum) => datum.type,
75917
75993
  value: (datum) => datum.id
75918
75994
  },
75919
75995
  {
75920
- hasShape: true,
75921
- shapeType: 'square',
75922
- shapeColor: this.shapeColorCallback,
75923
- shapeStroke: this.shapeStrokeCallback,
75924
75996
  key: 'event_time',
75925
75997
  value: (datum) => TimeUtil.getInstance().timeFormat('%Y%m%d', datum.event_time)
75926
75998
  },
75927
75999
  {
75928
- hasShape: true,
75929
- shapeType: 'square',
75930
- shapeColor: this.shapeColorCallback,
75931
- shapeStroke: this.shapeStrokeCallback,
75932
76000
  key: 'action_type',
75933
76001
  value: (datum) => datum.action_type
75934
76002
  },
75935
76003
  {
75936
- shapeType: 'square',
75937
- hasShape: true,
75938
- shapeColor: this.shapeColorCallback,
75939
- shapeStroke: this.shapeStrokeCallback,
75940
76004
  key: 'children',
75941
76005
  value: (datum) => {
75942
76006
  return datum.children;
75943
76007
  }
75944
76008
  }
75945
- ],
76009
+ ].map(entry => {
76010
+ return Object.assign({ hasShape: true, shapeType: 'square', shapeColor: this.shapeColorCallback, shapeStroke: this.shapeStrokeCallback }, entry);
76011
+ }),
75946
76012
  updateContent: (prev, datum, params) => {
75947
76013
  const childrenContent = [];
75948
76014
  const childrenPrev = prev.filter((p) => p.key === 'children');
@@ -76328,38 +76394,24 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
76328
76394
  },
76329
76395
  content: [
76330
76396
  {
76331
- hasShape: true,
76332
- shapeType: 'square',
76333
- shapeColor: this.shapeColorCallback,
76334
- shapeStroke: this.shapeStrokeCallback,
76335
76397
  key: 'time',
76336
76398
  value: (datum) => TimeUtil.getInstance().timeFormat('%Y%m%d %H:%M', datum.from.split('_')[1])
76337
76399
  },
76338
76400
  {
76339
- hasShape: true,
76340
- shapeType: 'square',
76341
- shapeColor: this.shapeColorCallback,
76342
- shapeStroke: this.shapeStrokeCallback,
76343
76401
  key: 'type',
76344
76402
  value: (datum) => datum.action_type
76345
76403
  },
76346
76404
  {
76347
- hasShape: true,
76348
- shapeType: 'square',
76349
- shapeColor: this.shapeColorCallback,
76350
- shapeStroke: this.shapeStrokeCallback,
76351
76405
  key: 'from',
76352
76406
  value: (datum) => datum.from
76353
76407
  },
76354
76408
  {
76355
- hasShape: true,
76356
- shapeType: 'square',
76357
- shapeColor: this.shapeColorCallback,
76358
- shapeStroke: this.shapeStrokeCallback,
76359
76409
  key: 'to',
76360
76410
  value: (datum) => datum.to
76361
76411
  }
76362
- ]
76412
+ ].map(entry => {
76413
+ return Object.assign({ hasShape: true, shapeType: 'square', shapeColor: this.shapeColorCallback, shapeStroke: this.shapeStrokeCallback }, entry);
76414
+ })
76363
76415
  };
76364
76416
  }
76365
76417
  return null;
@@ -77476,7 +77528,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
77476
77528
  }
77477
77529
  }
77478
77530
  initMarkStyleOfWord(wordMark, wordSpec, colorHexField, seriesField, isFillingWord) {
77479
- var _a, _b, _c, _d;
77531
+ var _a, _b;
77480
77532
  if (!wordMark) {
77481
77533
  return;
77482
77534
  }
@@ -77488,16 +77540,15 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
77488
77540
  : (datum) => datum[this._textField],
77489
77541
  x: (datum) => datum.x,
77490
77542
  y: (datum) => datum.y,
77491
- fontFamily: (datum) => datum.fontFamily,
77492
77543
  fontSize: (datum) => datum.fontSize,
77493
77544
  fontStyle: (datum) => datum.fontStyle,
77494
- fontWeight: (datum) => datum.fontWeight,
77495
77545
  angle: (datum) => datum.angle,
77496
- visible: datum => datum.visible
77546
+ visible: (datum) => datum.visible
77497
77547
  }, 'normal', AttributeLevel.Series);
77498
77548
  this.setMarkStyle(wordMark, {
77499
- fontFamily: (_b = (_a = wordSpec === null || wordSpec === void 0 ? void 0 : wordSpec.style) === null || _a === void 0 ? void 0 : _a.fontFamily) !== null && _b !== void 0 ? _b : this._defaultFontFamily,
77500
- fill: (_d = (_c = wordSpec === null || wordSpec === void 0 ? void 0 : wordSpec.style) === null || _c === void 0 ? void 0 : _c.fill) !== null && _d !== void 0 ? _d : this.getWordColor
77549
+ fill: (_b = (_a = wordSpec === null || wordSpec === void 0 ? void 0 : wordSpec.style) === null || _a === void 0 ? void 0 : _a.fill) !== null && _b !== void 0 ? _b : this.getWordColor,
77550
+ fontWeight: (datum) => datum.fontWeight,
77551
+ fontFamily: (datum) => datum.fontFamily
77501
77552
  }, 'normal', AttributeLevel.User_Mark);
77502
77553
  }
77503
77554
  initTooltip() {
@@ -77591,7 +77642,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
77591
77642
  ? { field: this._spec.fontWeightField }
77592
77643
  : this._valueField
77593
77644
  ? this._calculateFontWeight
77594
- : null,
77645
+ : wordStyleSpec.fontWeight,
77595
77646
  fontStyle: (_h = this._spec.fontStyleField) !== null && _h !== void 0 ? _h : wordStyleSpec.fontStyle
77596
77647
  };
77597
77648
  }
@@ -77601,9 +77652,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
77601
77652
  }
77602
77653
  _wordCloudShapeTransformOption() {
77603
77654
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
77604
- const wordStyleSpec = (_b = (_a = this._spec.word) === null || _a === void 0 ? void 0 : _a.style) !== null && _b !== void 0 ? _b : {};
77655
+ const fillingWordStyleSpec = (_b = (_a = this._spec.fillingWord) === null || _a === void 0 ? void 0 : _a.style) !== null && _b !== void 0 ? _b : {};
77605
77656
  const wordCloudShapeConfig = (_c = this._wordCloudShapeConfig) !== null && _c !== void 0 ? _c : {};
77606
- return Object.assign(Object.assign(Object.assign({}, wordCloudShapeConfig), this._getCommonTransformOptions()), { rotateList: this._rotateAngles, fillingRotateList: wordCloudShapeConfig.fillingRotateAngles, fillingFontFamily: (_e = (_d = wordCloudShapeConfig.fillingFontFamilyField) !== null && _d !== void 0 ? _d : wordStyleSpec.fontFamily) !== null && _e !== void 0 ? _e : this._defaultFontFamily, fillingPadding: (_g = (_f = this._spec.fillingWord) === null || _f === void 0 ? void 0 : _f.padding) !== null && _g !== void 0 ? _g : DEFAULT_FONT_PADDING, fillingFontStyle: (_h = wordCloudShapeConfig.fillingFontStyleField) !== null && _h !== void 0 ? _h : wordStyleSpec.fontStyle, fillingFontWeight: (_j = wordCloudShapeConfig.fillingFontWeightField) !== null && _j !== void 0 ? _j : wordStyleSpec.fontWeight });
77657
+ return Object.assign(Object.assign(Object.assign({}, wordCloudShapeConfig), this._getCommonTransformOptions()), { rotateList: this._rotateAngles, fillingRotateList: wordCloudShapeConfig.fillingRotateAngles, fillingFontFamily: (_e = (_d = wordCloudShapeConfig.fillingFontFamilyField) !== null && _d !== void 0 ? _d : fillingWordStyleSpec.fontFamily) !== null && _e !== void 0 ? _e : this._defaultFontFamily, fillingPadding: (_g = (_f = this._spec.fillingWord) === null || _f === void 0 ? void 0 : _f.padding) !== null && _g !== void 0 ? _g : DEFAULT_FONT_PADDING, fillingFontStyle: (_h = wordCloudShapeConfig.fillingFontStyleField) !== null && _h !== void 0 ? _h : fillingWordStyleSpec.fontStyle, fillingFontWeight: (_j = wordCloudShapeConfig.fillingFontWeightField) !== null && _j !== void 0 ? _j : fillingWordStyleSpec.fontWeight });
77607
77658
  }
77608
77659
  getStatisticFields() {
77609
77660
  const fields = [];
@@ -83462,6 +83513,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
83462
83513
  targetField: this._spec.targetField,
83463
83514
  valueField: this._spec.valueField,
83464
83515
  direction: this.direction,
83516
+ crossNodeAlign: this._spec.crossNodeAlign,
83465
83517
  nodeAlign: (_a = this._spec.nodeAlign) !== null && _a !== void 0 ? _a : 'justify',
83466
83518
  nodeGap: (_b = this._spec.nodeGap) !== null && _b !== void 0 ? _b : 8,
83467
83519
  nodeWidth: (_c = this._spec.nodeWidth) !== null && _c !== void 0 ? _c : 10,
@@ -84412,6 +84464,18 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
84412
84464
  }
84413
84465
  }
84414
84466
 
84467
+ class GaugePointerTooltipHelper extends BaseSeriesTooltipHelper {
84468
+ updateTooltipSpec() {
84469
+ var _a;
84470
+ super.updateTooltipSpec();
84471
+ if (isNil$1((_a = this.spec) === null || _a === void 0 ? void 0 : _a.dimension)) {
84472
+ this.spec = Object.assign(Object.assign({}, this.spec), { dimension: {
84473
+ visible: false
84474
+ } });
84475
+ }
84476
+ }
84477
+ }
84478
+
84415
84479
  class GaugePointerSeries extends ProgressLikeSeries {
84416
84480
  constructor() {
84417
84481
  super(...arguments);
@@ -84482,7 +84546,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
84482
84546
  }
84483
84547
  }
84484
84548
  initTooltip() {
84485
- super.initTooltip();
84549
+ this._tooltipHelper = new GaugePointerTooltipHelper(this);
84486
84550
  this._pointerMark && this._tooltipHelper.activeTriggerSet.mark.add(this._pointerMark);
84487
84551
  }
84488
84552
  _getPointerAnchor(datum, markSpec) {
@@ -88307,7 +88371,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
88307
88371
 
88308
88372
  class SankeyChartSpecTransformer extends BaseChartSpecTransformer {
88309
88373
  _getDefaultSeriesSpec(spec) {
88310
- const series = Object.assign(Object.assign({}, super._getDefaultSeriesSpec(spec)), { categoryField: spec.categoryField, valueField: spec.valueField, sourceField: spec.sourceField, targetField: spec.targetField, direction: spec.direction, nodeAlign: spec.nodeAlign, nodeGap: spec.nodeGap, nodeWidth: spec.nodeWidth, linkWidth: spec.linkWidth, minStepWidth: spec.minStepWidth, minNodeHeight: spec.minNodeHeight, minLinkHeight: spec.minLinkHeight, dropIsolatedNode: spec.dropIsolatedNode, nodeHeight: spec.nodeHeight, linkHeight: spec.linkHeight, equalNodeHeight: spec.equalNodeHeight, linkOverlap: spec.linkOverlap, iterations: spec.iterations, nodeKey: spec.nodeKey, linkSortBy: spec.linkSortBy, nodeSortBy: spec.nodeSortBy, setNodeLayer: spec.setNodeLayer, node: spec.node, link: spec.link, label: spec.label, emphasis: spec.emphasis, inverse: spec.inverse });
88374
+ const series = Object.assign(Object.assign({}, super._getDefaultSeriesSpec(spec)), { categoryField: spec.categoryField, valueField: spec.valueField, sourceField: spec.sourceField, targetField: spec.targetField, direction: spec.direction, nodeAlign: spec.nodeAlign, crossNodeAlign: spec.crossNodeAlign, nodeGap: spec.nodeGap, nodeWidth: spec.nodeWidth, linkWidth: spec.linkWidth, minStepWidth: spec.minStepWidth, minNodeHeight: spec.minNodeHeight, minLinkHeight: spec.minLinkHeight, dropIsolatedNode: spec.dropIsolatedNode, nodeHeight: spec.nodeHeight, linkHeight: spec.linkHeight, equalNodeHeight: spec.equalNodeHeight, linkOverlap: spec.linkOverlap, iterations: spec.iterations, nodeKey: spec.nodeKey, linkSortBy: spec.linkSortBy, nodeSortBy: spec.nodeSortBy, setNodeLayer: spec.setNodeLayer, node: spec.node, link: spec.link, label: spec.label, emphasis: spec.emphasis, inverse: spec.inverse });
88311
88375
  const seriesType = this.seriesType;
88312
88376
  if (seriesType) {
88313
88377
  series.type = seriesType;
@@ -90187,9 +90251,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
90187
90251
  this._cacheActualTooltip.content = (_d = (_c = pattern.updateContent) === null || _c === void 0 ? void 0 : _c.call(pattern, content, data, params)) !== null && _d !== void 0 ? _d : content;
90188
90252
  }
90189
90253
  }
90190
- shouldHandleTooltip(params, mouseEventData) {
90254
+ shouldHandleTooltip(params, info) {
90191
90255
  var _a, _b;
90192
- const { tooltipInfo: info } = mouseEventData;
90193
90256
  if (isNil$1(info)) {
90194
90257
  return false;
90195
90258
  }
@@ -90268,14 +90331,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
90268
90331
  return targetDimensionInfo;
90269
90332
  }
90270
90333
  getMouseEventData(params) {
90271
- var _a;
90272
90334
  return {
90273
90335
  tooltipInfo: this._getDimensionInfo(params),
90274
- ignore: [...((_a = this.component.getOption().getAllSeries()) !== null && _a !== void 0 ? _a : [])].some(model => {
90275
- var _a;
90276
- const ignoreTriggers = (_a = model.tooltipHelper) === null || _a === void 0 ? void 0 : _a.ignoreTriggerSet.dimension;
90277
- return (params.model && (ignoreTriggers === null || ignoreTriggers === void 0 ? void 0 : ignoreTriggers.has(params.model))) || (params.mark && (ignoreTriggers === null || ignoreTriggers === void 0 ? void 0 : ignoreTriggers.has(params.mark)));
90278
- })
90336
+ ignore: false
90279
90337
  };
90280
90338
  }
90281
90339
  }
@@ -90332,12 +90390,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
90332
90390
  getMouseEventData(params) {
90333
90391
  var _a, _b;
90334
90392
  let info;
90335
- let ignore;
90336
90393
  if (((_a = params.model) === null || _a === void 0 ? void 0 : _a.modelType) === 'series') {
90337
90394
  const series = params.model;
90338
90395
  const helper = series.tooltipHelper;
90339
90396
  const activeTriggers = helper === null || helper === void 0 ? void 0 : helper.activeTriggerSet.group;
90340
- const ignoreTriggers = helper === null || helper === void 0 ? void 0 : helper.ignoreTriggerSet.group;
90341
90397
  if ((activeTriggers === null || activeTriggers === void 0 ? void 0 : activeTriggers.has(params.model)) || (activeTriggers === null || activeTriggers === void 0 ? void 0 : activeTriggers.has(params.mark))) {
90342
90398
  const patternSpec = this.component.getSpec()[this.activeType];
90343
90399
  const triggerMark = (patternSpec === null || patternSpec === void 0 ? void 0 : patternSpec.triggerMark) ? array(patternSpec.triggerMark) : [];
@@ -90349,13 +90405,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
90349
90405
  };
90350
90406
  }
90351
90407
  }
90352
- else if ((ignoreTriggers === null || ignoreTriggers === void 0 ? void 0 : ignoreTriggers.has(params.model)) || (ignoreTriggers === null || ignoreTriggers === void 0 ? void 0 : ignoreTriggers.has(params.mark))) {
90353
- ignore = true;
90354
- }
90355
90408
  }
90356
90409
  return {
90357
90410
  tooltipInfo: info,
90358
- ignore
90411
+ ignore: false
90359
90412
  };
90360
90413
  }
90361
90414
  _getGroupDatum(params) {
@@ -90516,9 +90569,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
90516
90569
  if (ignoreMark && isMarkInfo(this._cacheInfo)) {
90517
90570
  success.mark = this._showTooltipByMouseEvent('mark', mouseEventData, params, isClick, true);
90518
90571
  }
90519
- else if (ignoreDimension && isDimensionInfo(this._cacheInfo)) {
90520
- success.dimension = this._showTooltipByMouseEvent('dimension', mouseEventData, params, isClick, true);
90521
- }
90522
90572
  else if (isValid$1(dimensionInfo)) {
90523
90573
  success.dimension = this._showTooltipByMouseEvent('dimension', mouseEventData, params, isClick);
90524
90574
  }
@@ -90530,10 +90580,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
90530
90580
  this._showTooltipByMouseEvent = (activeType, mouseEventData, params, isClick, useCache) => {
90531
90581
  var _a;
90532
90582
  const processor = this.processor[activeType];
90533
- if (!processor.shouldHandleTooltip(params, {
90534
- tooltipInfo: mouseEventData.tooltipInfo[activeType],
90535
- ignore: mouseEventData.ignore[activeType]
90536
- })) {
90583
+ if (!processor.shouldHandleTooltip(params, mouseEventData.tooltipInfo[activeType])) {
90537
90584
  return false;
90538
90585
  }
90539
90586
  if (this._timer) {
@@ -96390,6 +96437,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
96390
96437
  });
96391
96438
  if (component) {
96392
96439
  component.setSkipBeforeLayouted(true);
96440
+ if (regionLabelInfo[0] && isValid$1(regionLabelInfo[0].labelSpec.zIndex)) {
96441
+ component.setZIndex(regionLabelInfo[0].labelSpec.zIndex);
96442
+ }
96393
96443
  this._marks.addMark(component);
96394
96444
  this._labelComponentMap.set(component, () => {
96395
96445
  return this._labelInfoMap.get(region);
@@ -96404,6 +96454,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
96404
96454
  support3d: labelInfo.baseMark.getSupport3d()
96405
96455
  });
96406
96456
  if (component) {
96457
+ if (isValid$1(labelInfo.labelSpec.zIndex)) {
96458
+ component.setZIndex(labelInfo.labelSpec.zIndex);
96459
+ }
96407
96460
  component.setSkipBeforeLayouted(true);
96408
96461
  this._marks.addMark(component);
96409
96462
  this._labelComponentMap.set(component, () => {