@visactor/vchart 1.13.21-alpha.0 → 1.13.21-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 (74) hide show
  1. package/build/es5/index.js +1 -1
  2. package/build/index.es.js +314 -327
  3. package/build/index.js +460 -468
  4. package/build/index.min.js +1 -1
  5. package/build/tsconfig.tsbuildinfo +1 -1
  6. package/cjs/chart/index.d.ts +2 -2
  7. package/cjs/chart/index.js +7 -2
  8. package/cjs/chart/index.js.map +1 -1
  9. package/cjs/chart/sankey/sankey-transformer.js +1 -1
  10. package/cjs/chart/sankey/sankey-transformer.js.map +1 -1
  11. package/cjs/constant/funnel.js +1 -2
  12. package/cjs/constant/sunburst.js +2 -1
  13. package/cjs/core/index.d.ts +1 -1
  14. package/cjs/core/index.js +1 -1
  15. package/cjs/core/index.js.map +1 -1
  16. package/cjs/core/interface.js +1 -2
  17. package/cjs/core/vchart.d.ts +0 -2
  18. package/cjs/core/vchart.js +2 -4
  19. package/cjs/core/vchart.js.map +1 -1
  20. package/cjs/data/transforms/sankey.d.ts +0 -2
  21. package/cjs/data/transforms/sankey.js +1 -2
  22. package/cjs/data/transforms/sankey.js.map +1 -1
  23. package/cjs/index.d.ts +2 -0
  24. package/cjs/index.js +2 -1
  25. package/cjs/index.js.map +1 -1
  26. package/cjs/mark/index.d.ts +3 -2
  27. package/cjs/mark/index.js +15 -1
  28. package/cjs/mark/index.js.map +1 -1
  29. package/cjs/plugin/chart/plugin-service.d.ts +0 -1
  30. package/cjs/plugin/chart/plugin-service.js +0 -3
  31. package/cjs/plugin/chart/plugin-service.js.map +1 -1
  32. package/cjs/plugin/chart/scroll/scroll.d.ts +2 -16
  33. package/cjs/plugin/chart/scroll/scroll.js +23 -98
  34. package/cjs/plugin/chart/scroll/scroll.js.map +1 -1
  35. package/cjs/series/sankey/interface.d.ts +0 -3
  36. package/cjs/series/sankey/interface.js.map +1 -1
  37. package/cjs/series/sankey/sankey.d.ts +7 -7
  38. package/cjs/series/sankey/sankey.js +167 -165
  39. package/cjs/series/sankey/sankey.js.map +1 -1
  40. package/esm/chart/index.d.ts +2 -2
  41. package/esm/chart/index.js +2 -2
  42. package/esm/chart/index.js.map +1 -1
  43. package/esm/chart/sankey/sankey-transformer.js +1 -1
  44. package/esm/chart/sankey/sankey-transformer.js.map +1 -1
  45. package/esm/constant/funnel.js +1 -2
  46. package/esm/constant/sunburst.js +2 -1
  47. package/esm/core/index.d.ts +1 -1
  48. package/esm/core/index.js +1 -1
  49. package/esm/core/index.js.map +1 -1
  50. package/esm/core/interface.js +1 -2
  51. package/esm/core/vchart.d.ts +0 -2
  52. package/esm/core/vchart.js +2 -4
  53. package/esm/core/vchart.js.map +1 -1
  54. package/esm/data/transforms/sankey.d.ts +0 -2
  55. package/esm/data/transforms/sankey.js +1 -2
  56. package/esm/data/transforms/sankey.js.map +1 -1
  57. package/esm/index.d.ts +2 -0
  58. package/esm/index.js +4 -0
  59. package/esm/index.js.map +1 -1
  60. package/esm/mark/index.d.ts +3 -2
  61. package/esm/mark/index.js +4 -2
  62. package/esm/mark/index.js.map +1 -1
  63. package/esm/plugin/chart/plugin-service.d.ts +0 -1
  64. package/esm/plugin/chart/plugin-service.js +0 -3
  65. package/esm/plugin/chart/plugin-service.js.map +1 -1
  66. package/esm/plugin/chart/scroll/scroll.d.ts +2 -16
  67. package/esm/plugin/chart/scroll/scroll.js +23 -102
  68. package/esm/plugin/chart/scroll/scroll.js.map +1 -1
  69. package/esm/series/sankey/interface.d.ts +0 -3
  70. package/esm/series/sankey/interface.js.map +1 -1
  71. package/esm/series/sankey/sankey.d.ts +7 -7
  72. package/esm/series/sankey/sankey.js +166 -164
  73. package/esm/series/sankey/sankey.js.map +1 -1
  74. package/package.json +4 -4
package/build/index.js CHANGED
@@ -59751,7 +59751,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
59751
59751
  LayoutLevel[LayoutLevel["CustomMark"] = 70] = "CustomMark";
59752
59752
  })(LayoutLevel || (LayoutLevel = {}));
59753
59753
 
59754
- var AttributeLevel;
59754
+ exports.AttributeLevel = void 0;
59755
59755
  (function (AttributeLevel) {
59756
59756
  AttributeLevel[AttributeLevel["Default"] = 0] = "Default";
59757
59757
  AttributeLevel[AttributeLevel["Theme"] = 1] = "Theme";
@@ -59764,7 +59764,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
59764
59764
  AttributeLevel[AttributeLevel["User_Mark"] = 8] = "User_Mark";
59765
59765
  AttributeLevel[AttributeLevel["User_SeriesStyle"] = 9] = "User_SeriesStyle";
59766
59766
  AttributeLevel[AttributeLevel["Built_In"] = 99] = "Built_In";
59767
- })(AttributeLevel || (AttributeLevel = {}));
59767
+ })(exports.AttributeLevel || (exports.AttributeLevel = {}));
59768
59768
 
59769
59769
  class CompilableBase {
59770
59770
  getOption() {
@@ -60798,7 +60798,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
60798
60798
  this.setMarkStyle(mark, {
60799
60799
  width: () => this.getLayoutRect().width,
60800
60800
  height: () => this.getLayoutRect().height
60801
- }, 'normal', AttributeLevel.Built_In);
60801
+ }, 'normal', exports.AttributeLevel.Built_In);
60802
60802
  this._groupMark.addMark(mark);
60803
60803
  }
60804
60804
  });
@@ -60819,10 +60819,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
60819
60819
  width: () => this.getLayoutRect().width,
60820
60820
  height: () => this.getLayoutRect().height,
60821
60821
  clip
60822
- }, 'normal', AttributeLevel.Built_In);
60822
+ }, 'normal', exports.AttributeLevel.Built_In);
60823
60823
  this.setMarkStyle(groupMark, {
60824
60824
  cornerRadius: (_b = this._spec.style) === null || _b === void 0 ? void 0 : _b.cornerRadius
60825
- }, 'normal', AttributeLevel.User_Mark);
60825
+ }, 'normal', exports.AttributeLevel.User_Mark);
60826
60826
  this._marks.addMark(groupMark);
60827
60827
  return groupMark;
60828
60828
  }
@@ -60840,17 +60840,17 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
60840
60840
  _initBackgroundMarkStyle() {
60841
60841
  var _a, _b;
60842
60842
  if (this._backgroundMark) {
60843
- this.setMarkStyle(this._backgroundMark, Object.assign({ fillOpacity: ((_a = this._spec.style) === null || _a === void 0 ? void 0 : _a.fill) ? 1 : 0 }, this._spec.style), 'normal', AttributeLevel.User_Mark);
60843
+ this.setMarkStyle(this._backgroundMark, Object.assign({ fillOpacity: ((_a = this._spec.style) === null || _a === void 0 ? void 0 : _a.fill) ? 1 : 0 }, this._spec.style), 'normal', exports.AttributeLevel.User_Mark);
60844
60844
  if ((_b = this._spec.clip) !== null && _b !== void 0 ? _b : this._getClipDefaultValue()) {
60845
60845
  this.setMarkStyle(this._backgroundMark, {
60846
60846
  strokeOpacity: 0
60847
- }, 'normal', AttributeLevel.Built_In);
60847
+ }, 'normal', exports.AttributeLevel.Built_In);
60848
60848
  }
60849
60849
  }
60850
60850
  }
60851
60851
  _initForegroundMarkStyle() {
60852
60852
  if (this._foregroundMark) {
60853
- this.setMarkStyle(this._foregroundMark, Object.assign(Object.assign({}, this._spec.style), { fillOpacity: 0, pickable: false }), 'normal', AttributeLevel.User_Mark);
60853
+ this.setMarkStyle(this._foregroundMark, Object.assign(Object.assign({}, this._spec.style), { fillOpacity: 0, pickable: false }), 'normal', exports.AttributeLevel.User_Mark);
60854
60854
  }
60855
60855
  }
60856
60856
  _compareSpec(spec, prevSpec) {
@@ -62367,10 +62367,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
62367
62367
  }
62368
62368
  isUserLevel(level) {
62369
62369
  return [
62370
- AttributeLevel.User_Mark,
62371
- AttributeLevel.User_Series,
62372
- AttributeLevel.User_Chart,
62373
- AttributeLevel.User_SeriesStyle
62370
+ exports.AttributeLevel.User_Mark,
62371
+ exports.AttributeLevel.User_Series,
62372
+ exports.AttributeLevel.User_Chart,
62373
+ exports.AttributeLevel.User_SeriesStyle
62374
62374
  ].includes(level);
62375
62375
  }
62376
62376
  setStyle(style, state = 'normal', level = 0, stateStyle = this.stateStyle) {
@@ -62558,7 +62558,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
62558
62558
  }
62559
62559
  _initSpecStyle(spec, stateStyle, key) {
62560
62560
  if (spec.style) {
62561
- this.setStyle(spec.style, 'normal', AttributeLevel.User_Mark, stateStyle);
62561
+ this.setStyle(spec.style, 'normal', exports.AttributeLevel.User_Mark, stateStyle);
62562
62562
  }
62563
62563
  const state = spec.state;
62564
62564
  if (state) {
@@ -62579,10 +62579,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
62579
62579
  }
62580
62580
  }
62581
62581
  this.state.addStateInfo(stateInfo);
62582
- this.setStyle(style, key, AttributeLevel.User_Mark, stateStyle);
62582
+ this.setStyle(style, key, exports.AttributeLevel.User_Mark, stateStyle);
62583
62583
  }
62584
62584
  else {
62585
- this.setStyle(stateTemp, key, AttributeLevel.User_Mark, stateStyle);
62585
+ this.setStyle(stateTemp, key, exports.AttributeLevel.User_Mark, stateStyle);
62586
62586
  }
62587
62587
  });
62588
62588
  }
@@ -62894,9 +62894,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
62894
62894
  super();
62895
62895
  this.globalInstance = globalInstance;
62896
62896
  }
62897
- getPlugin(name) {
62898
- return this._plugins.find(plugin => plugin.name === name);
62899
- }
62900
62897
  onInit(chartSpec) {
62901
62898
  this._plugins.forEach(plugin => {
62902
62899
  plugin.onInit && plugin.onInit(this, chartSpec);
@@ -63057,9 +63054,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
63057
63054
  getDataSet() {
63058
63055
  return this._dataSet;
63059
63056
  }
63060
- get chartPlugin() {
63061
- return this._chartPlugin;
63062
- }
63063
63057
  constructor(spec, options) {
63064
63058
  var _a, _b, _c, _d, _e, _f, _g, _h;
63065
63059
  this.id = createID();
@@ -64280,7 +64274,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
64280
64274
  };
64281
64275
  registerVChartCore();
64282
64276
 
64283
- const version = "1.13.21-alpha.0";
64277
+ const version = "1.13.21-alpha.1";
64284
64278
 
64285
64279
  const addVChartProperty = (data, op) => {
64286
64280
  const context = op.beforeCall();
@@ -66116,7 +66110,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
66116
66110
  return mark.getAttribute(key, datum);
66117
66111
  };
66118
66112
  });
66119
- this.setMarkStyle(mark, style, DEFAULT_SERIES_STYLE_NAME, AttributeLevel.User_SeriesStyle);
66113
+ this.setMarkStyle(mark, style, DEFAULT_SERIES_STYLE_NAME, exports.AttributeLevel.User_SeriesStyle);
66120
66114
  });
66121
66115
  }
66122
66116
  afterInitMark() {
@@ -66125,7 +66119,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
66125
66119
  this.getMarks().forEach(m => {
66126
66120
  var _a, _b;
66127
66121
  if ((_b = (_a = m.stateStyle) === null || _a === void 0 ? void 0 : _a.normal) === null || _b === void 0 ? void 0 : _b.lineWidth) {
66128
- m.setAttribute('stroke', this.getColorAttribute(), 'normal', AttributeLevel.Base_Series);
66122
+ m.setAttribute('stroke', this.getColorAttribute(), 'normal', exports.AttributeLevel.Base_Series);
66129
66123
  }
66130
66124
  });
66131
66125
  }
@@ -67037,12 +67031,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
67037
67031
  if (lineMark) {
67038
67032
  this.setMarkStyle(lineMark, {
67039
67033
  stroke: this.getColorAttribute()
67040
- }, 'normal', AttributeLevel.Series);
67034
+ }, 'normal', exports.AttributeLevel.Series);
67041
67035
  if (this._invalidType !== 'zero') {
67042
67036
  this.setMarkStyle(lineMark, {
67043
67037
  defined: this._getInvalidDefined.bind(this),
67044
67038
  connectedType: this._getInvalidConnectType()
67045
- }, 'normal', AttributeLevel.Series);
67039
+ }, 'normal', exports.AttributeLevel.Series);
67046
67040
  }
67047
67041
  this.event.on(ChartEvent.viewDataStatisticsUpdate, { filter: param => param.model === this }, () => {
67048
67042
  this.encodeDefined(lineMark, 'defined');
@@ -67052,7 +67046,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
67052
67046
  lineJoin: DEFAULT_CLOSE_STROKE_JOIN,
67053
67047
  curveType: DEFAULT_LINEAR_INTERPOLATE,
67054
67048
  closePath: true
67055
- }, 'normal', AttributeLevel.Series);
67049
+ }, 'normal', exports.AttributeLevel.Series);
67056
67050
  }
67057
67051
  else {
67058
67052
  const userCurveType = areaCurveType !== null && areaCurveType !== void 0 ? areaCurveType : (_b = (_a = this.getSpec().line) === null || _a === void 0 ? void 0 : _a.style) === null || _b === void 0 ? void 0 : _b.curveType;
@@ -67063,13 +67057,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
67063
67057
  : userCurveType;
67064
67058
  this.setMarkStyle(lineMark, {
67065
67059
  curveType
67066
- }, 'normal', AttributeLevel.Built_In);
67060
+ }, 'normal', exports.AttributeLevel.Built_In);
67067
67061
  }
67068
67062
  this.setMarkStyle(lineMark, {
67069
67063
  x: this.dataToPositionX.bind(this),
67070
67064
  y: this.dataToPositionY.bind(this),
67071
67065
  z: this._fieldZ ? this.dataToPositionZ.bind(this) : null
67072
- }, 'normal', AttributeLevel.Series);
67066
+ }, 'normal', exports.AttributeLevel.Series);
67073
67067
  }
67074
67068
  return lineMark;
67075
67069
  }
@@ -67143,7 +67137,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
67143
67137
  }
67144
67138
  this._symbolActiveMark.stateStyle[state][key] = {
67145
67139
  style: null,
67146
- level: AttributeLevel.Series,
67140
+ level: exports.AttributeLevel.Series,
67147
67141
  referer: symbolMark
67148
67142
  };
67149
67143
  }
@@ -67161,7 +67155,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
67161
67155
  }
67162
67156
  this.setMarkStyle(symbolMark, {
67163
67157
  fill: this.getColorAttribute()
67164
- }, 'normal', AttributeLevel.Series);
67158
+ }, 'normal', exports.AttributeLevel.Series);
67165
67159
  this.setMarkStyle(symbolMark, {
67166
67160
  x: (datum) => {
67167
67161
  return this._invalidType !== 'zero' && !this._getInvalidDefined(datum)
@@ -67174,7 +67168,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
67174
67168
  : this.dataToPositionY(datum);
67175
67169
  },
67176
67170
  z: this._fieldZ ? this.dataToPositionZ.bind(this) : null
67177
- }, 'normal', AttributeLevel.Series);
67171
+ }, 'normal', exports.AttributeLevel.Series);
67178
67172
  }
67179
67173
  _initSymbolActiveMarkAlone() {
67180
67174
  var _a, _b;
@@ -67211,7 +67205,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
67211
67205
  if (this._invalidType !== 'zero') {
67212
67206
  this.setMarkStyle(labelMark, {
67213
67207
  visible: this._getInvalidDefined.bind(this)
67214
- }, 'normal', AttributeLevel.Series);
67208
+ }, 'normal', exports.AttributeLevel.Series);
67215
67209
  }
67216
67210
  this.event.on(ChartEvent.viewDataStatisticsUpdate, { filter: param => param.model === this }, () => {
67217
67211
  this.encodeDefined(labelMark, 'visible');
@@ -67240,13 +67234,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
67240
67234
  if (((_b = (_a = mark.stateStyle.normal) === null || _a === void 0 ? void 0 : _a[attr]) === null || _b === void 0 ? void 0 : _b.style) === true) {
67241
67235
  return;
67242
67236
  }
67243
- this.setMarkStyle(mark, { [attr]: true }, 'normal', AttributeLevel.Series);
67237
+ this.setMarkStyle(mark, { [attr]: true }, 'normal', exports.AttributeLevel.Series);
67244
67238
  }
67245
67239
  else {
67246
67240
  if (((_d = (_c = mark.stateStyle.normal) === null || _c === void 0 ? void 0 : _c[attr]) === null || _d === void 0 ? void 0 : _d.style) !== true) {
67247
67241
  return;
67248
67242
  }
67249
- this.setMarkStyle(mark, { [attr]: this._getInvalidDefined.bind(this) }, 'normal', AttributeLevel.Series);
67243
+ this.setMarkStyle(mark, { [attr]: this._getInvalidDefined.bind(this) }, 'normal', exports.AttributeLevel.Series);
67250
67244
  }
67251
67245
  if (mark.getProduct()) {
67252
67246
  mark.compileEncode();
@@ -72608,7 +72602,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
72608
72602
  y1: this.dataToPositionY.bind(this),
72609
72603
  z: this._fieldZ ? this.dataToPositionZ.bind(this) : null,
72610
72604
  orient: this._direction
72611
- }, 'normal', AttributeLevel.Series);
72605
+ }, 'normal', exports.AttributeLevel.Series);
72612
72606
  }
72613
72607
  else {
72614
72608
  this.setMarkStyle(this._areaMark, {
@@ -72620,26 +72614,26 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
72620
72614
  },
72621
72615
  y: this.dataToPositionY.bind(this),
72622
72616
  z: this._fieldZ ? this.dataToPositionZ.bind(this) : null
72623
- }, 'normal', AttributeLevel.Series);
72617
+ }, 'normal', exports.AttributeLevel.Series);
72624
72618
  }
72625
72619
  this.setMarkStyle(areaMark, {
72626
72620
  fill: isAreaVisible ? this.getColorAttribute() : false,
72627
72621
  stroke: isLineVisible ? this.getColorAttribute() : false
72628
- }, 'normal', AttributeLevel.Series);
72622
+ }, 'normal', exports.AttributeLevel.Series);
72629
72623
  if (this._invalidType !== 'zero') {
72630
72624
  this.setMarkStyle(areaMark, {
72631
72625
  defined: this._getInvalidDefined.bind(this),
72632
72626
  connectedType: this._getInvalidConnectType()
72633
- }, 'normal', AttributeLevel.Series);
72627
+ }, 'normal', exports.AttributeLevel.Series);
72634
72628
  }
72635
72629
  if (this.getStack()) {
72636
72630
  this.setMarkStyle(areaMark, {
72637
72631
  zIndex: (datum) => -datum[STACK_FIELD_END]
72638
- }, 'normal', AttributeLevel.Series);
72632
+ }, 'normal', exports.AttributeLevel.Series);
72639
72633
  }
72640
72634
  this.setMarkStyle(areaMark, {
72641
72635
  curveType
72642
- }, 'normal', AttributeLevel.Built_In);
72636
+ }, 'normal', exports.AttributeLevel.Built_In);
72643
72637
  Object.keys(areaMark.stateStyle).forEach(state => {
72644
72638
  if (areaMark.stateStyle[state].stroke) {
72645
72639
  areaMark.setPostProcess('stroke', result => {
@@ -73071,7 +73065,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
73071
73065
  if (this._barMark) {
73072
73066
  this.setMarkStyle(this._barMark, {
73073
73067
  fill: this.getColorAttribute()
73074
- }, 'normal', AttributeLevel.Series);
73068
+ }, 'normal', exports.AttributeLevel.Series);
73075
73069
  }
73076
73070
  }
73077
73071
  initLabelMarkStyle(textMark) {
@@ -73294,7 +73288,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
73294
73288
  height: () => this._getBarWidth(this._yAxisHelper),
73295
73289
  width: () => undefined,
73296
73290
  y1: () => undefined
73297
- }, 'normal', AttributeLevel.Series);
73291
+ }, 'normal', exports.AttributeLevel.Series);
73298
73292
  }
73299
73293
  else {
73300
73294
  this.setMarkStyle(this._barMark, {
@@ -73304,7 +73298,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
73304
73298
  width: () => this._getBarWidth(this._xAxisHelper),
73305
73299
  x1: () => undefined,
73306
73300
  height: () => undefined
73307
- }, 'normal', AttributeLevel.Series);
73301
+ }, 'normal', exports.AttributeLevel.Series);
73308
73302
  }
73309
73303
  this._initStackBarMarkStyle();
73310
73304
  this._initBandBarBackgroundMarkStyle();
@@ -73380,8 +73374,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
73380
73374
  y: (datum) => valueInScaleRange(this._dataToPosY(datum) - this._getBarWidth(this._yAxisHelper) / 2, yScale, true),
73381
73375
  height: (datum) => this._getBarWidth(this._yAxisHelper)
73382
73376
  };
73383
- this.setMarkStyle(this._barMark, Object.assign({ x: (datum) => this._getBarXStart(datum, xScale, true), x1: (datum) => this._getBarXEnd(datum, xScale, true) }, yChannels), 'normal', AttributeLevel.Series);
73384
- this.setMarkStyle(this._barBackgroundMark, Object.assign({ x: () => this._getBarBackgroundXStart(xScale), x1: () => this._getBarBackgroundXEnd(xScale) }, yChannels), 'normal', AttributeLevel.Series);
73377
+ this.setMarkStyle(this._barMark, Object.assign({ x: (datum) => this._getBarXStart(datum, xScale, true), x1: (datum) => this._getBarXEnd(datum, xScale, true) }, yChannels), 'normal', exports.AttributeLevel.Series);
73378
+ this.setMarkStyle(this._barBackgroundMark, Object.assign({ x: () => this._getBarBackgroundXStart(xScale), x1: () => this._getBarBackgroundXEnd(xScale) }, yChannels), 'normal', exports.AttributeLevel.Series);
73385
73379
  }
73386
73380
  else {
73387
73381
  const xChannels = isValid$1(this._fieldX2)
@@ -73393,8 +73387,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
73393
73387
  x: (datum) => valueInScaleRange(this._dataToPosX(datum) - this._getBarWidth(this._xAxisHelper) / 2, xScale, true),
73394
73388
  width: (datum) => this._getBarWidth(this._xAxisHelper)
73395
73389
  };
73396
- this.setMarkStyle(this._barMark, Object.assign(Object.assign({}, xChannels), { y: datum => this._getBarYStart(datum, yScale), y1: datum => this._getBarYEnd(datum, yScale) }), 'normal', AttributeLevel.Series);
73397
- this.setMarkStyle(this._barBackgroundMark, Object.assign(Object.assign({}, xChannels), { y: () => this._getBarBackgroundYStart(yScale), y1: () => this._getBarBackgroundYEnd(yScale) }), 'normal', AttributeLevel.Series);
73390
+ this.setMarkStyle(this._barMark, Object.assign(Object.assign({}, xChannels), { y: datum => this._getBarYStart(datum, yScale), y1: datum => this._getBarYEnd(datum, yScale) }), 'normal', exports.AttributeLevel.Series);
73391
+ this.setMarkStyle(this._barBackgroundMark, Object.assign(Object.assign({}, xChannels), { y: () => this._getBarBackgroundYStart(yScale), y1: () => this._getBarBackgroundYEnd(yScale) }), 'normal', exports.AttributeLevel.Series);
73398
73392
  }
73399
73393
  }
73400
73394
  _initBandBarBackgroundMarkStyle() {
@@ -73414,7 +73408,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
73414
73408
  height: () => this._getBarWidth(this._yAxisHelper, scaleDepth),
73415
73409
  width: () => undefined,
73416
73410
  y1: () => undefined
73417
- }, 'normal', AttributeLevel.Series);
73411
+ }, 'normal', exports.AttributeLevel.Series);
73418
73412
  }
73419
73413
  else {
73420
73414
  this.setMarkStyle(this._barBackgroundMark, {
@@ -73424,7 +73418,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
73424
73418
  width: () => this._getBarWidth(this._xAxisHelper, scaleDepth),
73425
73419
  x1: () => undefined,
73426
73420
  height: () => undefined
73427
- }, 'normal', AttributeLevel.Series);
73421
+ }, 'normal', exports.AttributeLevel.Series);
73428
73422
  }
73429
73423
  }
73430
73424
  initAnimation() {
@@ -73908,16 +73902,16 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
73908
73902
  fill: this.getColorAttribute(),
73909
73903
  size: isNumber$1(this._size) || isFunction$1(this._size) ? this._size : SCATTER_DEFAULT_SIZE,
73910
73904
  symbolType: isString$1(this._shape) || isFunction$1(this._shape) ? this._shape : SCATTER_DEFAULT_SHAPE
73911
- }, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
73905
+ }, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
73912
73906
  if (isValid$1(this._sizeField) || isValid$1(this._size)) {
73913
73907
  this.setMarkStyle(symbolMark, {
73914
73908
  size: this.getSizeAttribute(this._sizeField, this._size)
73915
- }, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.User_Mark);
73909
+ }, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.User_Mark);
73916
73910
  }
73917
73911
  if (isValid$1(this._shapeField) || isValid$1(this._shape)) {
73918
73912
  this.setMarkStyle(symbolMark, {
73919
73913
  symbolType: this.getShapeAttribute(this._shapeField, this._shape)
73920
- }, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.User_Mark);
73914
+ }, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.User_Mark);
73921
73915
  }
73922
73916
  }
73923
73917
  initTooltip() {
@@ -73929,10 +73923,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
73929
73923
  const fields = [this.getDimensionField()[0], this.getStackValueField()];
73930
73924
  const allValid = fields.every(field => { var _a, _b, _c; return field && ((_c = (_b = (_a = this.getViewDataStatistics()) === null || _a === void 0 ? void 0 : _a.latestData) === null || _b === void 0 ? void 0 : _b[field]) === null || _c === void 0 ? void 0 : _c.allValid); });
73931
73925
  if (this._invalidType === 'zero' || allValid) {
73932
- this.setMarkStyle(this._symbolMark, { visible: true }, 'normal', AttributeLevel.Series);
73926
+ this.setMarkStyle(this._symbolMark, { visible: true }, 'normal', exports.AttributeLevel.Series);
73933
73927
  }
73934
73928
  else {
73935
- this.setMarkStyle(this._symbolMark, { visible: this._getInvalidDefined.bind(this) }, 'normal', AttributeLevel.Series);
73929
+ this.setMarkStyle(this._symbolMark, { visible: this._getInvalidDefined.bind(this) }, 'normal', exports.AttributeLevel.Series);
73936
73930
  }
73937
73931
  if (this._symbolMark.getProduct()) {
73938
73932
  this._symbolMark.compileEncode();
@@ -73949,11 +73943,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
73949
73943
  return datum[this.getStackValueField()];
73950
73944
  },
73951
73945
  z: this._fieldZ ? this.dataToPositionZ.bind(this) : null
73952
- }, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
73946
+ }, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
73953
73947
  if (this._invalidType !== 'zero') {
73954
73948
  this.setMarkStyle(labelMark, {
73955
73949
  visible: this._getInvalidDefined.bind(this)
73956
- }, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
73950
+ }, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
73957
73951
  }
73958
73952
  }
73959
73953
  handleZoom(e) {
@@ -75310,7 +75304,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
75310
75304
  return (_d = this._spec) === null || _d === void 0 ? void 0 : _d.defaultFillColor;
75311
75305
  },
75312
75306
  path: this.getPath.bind(this)
75313
- }, 'normal', AttributeLevel.Series);
75307
+ }, 'normal', exports.AttributeLevel.Series);
75314
75308
  pathMark.setPostProcess('fill', result => {
75315
75309
  if (!isValid$1(result)) {
75316
75310
  return this._spec.defaultFillColor;
@@ -75319,7 +75313,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
75319
75313
  });
75320
75314
  this.setMarkStyle(pathMark, {
75321
75315
  smoothScale: true
75322
- }, 'normal', AttributeLevel.Built_In);
75316
+ }, 'normal', exports.AttributeLevel.Built_In);
75323
75317
  }
75324
75318
  }
75325
75319
  initLabelMarkStyle(labelMark) {
@@ -76433,7 +76427,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
76433
76427
  return this.totalPositionY(datum, 'lastIndex', 1);
76434
76428
  },
76435
76429
  y1: (datum) => this.totalPositionY(datum, 'index', 0)
76436
- }, 'normal', AttributeLevel.Series);
76430
+ }, 'normal', exports.AttributeLevel.Series);
76437
76431
  }
76438
76432
  else {
76439
76433
  this.setMarkStyle(this._leaderLineMark, {
@@ -76447,7 +76441,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
76447
76441
  x1: (datum) => this.totalPositionX(datum, 'index', 0),
76448
76442
  y: (datum) => this.totalPositionY(datum, 'lastEnd', 0),
76449
76443
  y1: (datum) => this.totalPositionY(datum, datum.isTotal ? 'end' : 'start', 0)
76450
- }, 'normal', AttributeLevel.Series);
76444
+ }, 'normal', exports.AttributeLevel.Series);
76451
76445
  }
76452
76446
  }
76453
76447
  }
@@ -76764,7 +76758,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
76764
76758
  };
76765
76759
  const boxPlotMarkStyles = this._direction === "horizontal"
76766
76760
  ? Object.assign(Object.assign({ y: this.dataToPositionY.bind(this) }, commonBoxplotStyles), { boxHeight: () => { var _a; return (_a = this._boxWidth) !== null && _a !== void 0 ? _a : this._getMarkWidth(); }, ruleHeight: () => { var _a; return (_a = this._shaftWidth) !== null && _a !== void 0 ? _a : this._getMarkWidth(); }, q1q3Height: () => { var _a; return (_a = this._boxWidth) !== null && _a !== void 0 ? _a : this._getMarkWidth(); }, minMaxHeight: () => { var _a; return (_a = this._shaftWidth) !== null && _a !== void 0 ? _a : this._getMarkWidth(); } }) : Object.assign(Object.assign({ x: this.dataToPositionX.bind(this) }, commonBoxplotStyles), { boxWidth: () => { var _a; return (_a = this._boxWidth) !== null && _a !== void 0 ? _a : this._getMarkWidth(); }, ruleWidth: () => { var _a; return (_a = this._shaftWidth) !== null && _a !== void 0 ? _a : this._getMarkWidth(); }, q1q3Width: () => { var _a; return (_a = this._boxWidth) !== null && _a !== void 0 ? _a : this._getMarkWidth(); }, minMaxWidth: () => { var _a; return (_a = this._shaftWidth) !== null && _a !== void 0 ? _a : this._getMarkWidth(); } });
76767
- this.setMarkStyle(boxPlotMark, boxPlotMarkStyles, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
76761
+ this.setMarkStyle(boxPlotMark, boxPlotMarkStyles, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
76768
76762
  }
76769
76763
  const outlierMark = this._outlierMark;
76770
76764
  if (outlierMark) {
@@ -76772,7 +76766,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
76772
76766
  fill: (_d = (_c = this._outliersStyle) === null || _c === void 0 ? void 0 : _c.fill) !== null && _d !== void 0 ? _d : this.getColorAttribute(),
76773
76767
  size: isNumber$1((_e = this._outliersStyle) === null || _e === void 0 ? void 0 : _e.size) ? this._outliersStyle.size : DEFAULT_OUTLIER_SIZE,
76774
76768
  symbolType: 'circle'
76775
- }, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
76769
+ }, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
76776
76770
  }
76777
76771
  }
76778
76772
  initBoxPlotMarkStyle() {
@@ -76798,7 +76792,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
76798
76792
  max: (datum) => valueInScaleRange(dataToPosition(this.getDatumPositionValues(datum, this._maxField), {
76799
76793
  bandPosition: this._bandPosition
76800
76794
  }), scale)
76801
- }, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
76795
+ }, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
76802
76796
  }
76803
76797
  const outlierMark = this._outlierMark;
76804
76798
  if (outlierMark && axisHelper) {
@@ -76817,7 +76811,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
76817
76811
  bandPosition: this._bandPosition
76818
76812
  }), scale)
76819
76813
  };
76820
- this.setMarkStyle(outlierMark, outlierMarkPositionChannel, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
76814
+ this.setMarkStyle(outlierMark, outlierMarkPositionChannel, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
76821
76815
  }
76822
76816
  }
76823
76817
  initData() {
@@ -77111,7 +77105,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
77111
77105
  }
77112
77106
  return (_y + _y1) / 2;
77113
77107
  }
77114
- }, 'normal', AttributeLevel.Series);
77108
+ }, 'normal', exports.AttributeLevel.Series);
77115
77109
  }
77116
77110
 
77117
77111
  class RangeColumnSeriesTooltipHelper extends BaseSeriesTooltipHelper {
@@ -77389,7 +77383,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
77389
77383
  bandPosition: this._bandPosition
77390
77384
  });
77391
77385
  }
77392
- }, 'normal', AttributeLevel.Series);
77386
+ }, 'normal', exports.AttributeLevel.Series);
77393
77387
  }
77394
77388
  else {
77395
77389
  this.setMarkStyle(this._areaMark, {
@@ -77402,9 +77396,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
77402
77396
  bandPosition: this._bandPosition
77403
77397
  });
77404
77398
  }
77405
- }, 'normal', AttributeLevel.Series);
77399
+ }, 'normal', exports.AttributeLevel.Series);
77406
77400
  }
77407
- this.setMarkStyle(areaMark, { stroke: false }, 'normal', AttributeLevel.Series);
77401
+ this.setMarkStyle(areaMark, { stroke: false }, 'normal', exports.AttributeLevel.Series);
77408
77402
  }
77409
77403
  }
77410
77404
  initTooltip() {
@@ -78174,14 +78168,14 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
78174
78168
  };
78175
78169
  const pieMark = this._pieMark;
78176
78170
  if (pieMark) {
78177
- this.setMarkStyle(pieMark, initialStyle, 'normal', AttributeLevel.Series);
78171
+ this.setMarkStyle(pieMark, initialStyle, 'normal', exports.AttributeLevel.Series);
78178
78172
  }
78179
78173
  const emptyPieMark = this._emptyArcMark;
78180
78174
  if (emptyPieMark) {
78181
78175
  this.setMarkStyle(emptyPieMark, Object.assign(Object.assign({}, initialStyle), { visible: () => {
78182
78176
  const data = this.getViewData().latestData;
78183
78177
  return !data || !data.length;
78184
- } }), 'normal', AttributeLevel.Series);
78178
+ } }), 'normal', exports.AttributeLevel.Series);
78185
78179
  }
78186
78180
  }
78187
78181
  initInteraction() {
@@ -78197,12 +78191,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
78197
78191
  const pieSpec = this.getSpec()[mark.name];
78198
78192
  if (pieSpec) {
78199
78193
  for (const state in pieSpec.state || {}) {
78200
- this.setMarkStyle(mark, this.generateRadiusStyle(pieSpec.state[state]), state, AttributeLevel.User_Mark);
78194
+ this.setMarkStyle(mark, this.generateRadiusStyle(pieSpec.state[state]), state, exports.AttributeLevel.User_Mark);
78201
78195
  }
78202
78196
  }
78203
78197
  }
78204
78198
  if (mark.name === 'emptyCircle') {
78205
- this.setMarkStyle(mark, this.generateRadiusStyle(spec.style), 'normal', AttributeLevel.User_Mark);
78199
+ this.setMarkStyle(mark, this.generateRadiusStyle(spec.style), 'normal', exports.AttributeLevel.User_Mark);
78206
78200
  }
78207
78201
  }
78208
78202
  initLabelMarkStyle(textMark) {
@@ -78434,7 +78428,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
78434
78428
  if (pieMark) {
78435
78429
  this.setMarkStyle(pieMark, {
78436
78430
  beta: () => this._angle3d
78437
- }, 'normal', AttributeLevel.Series);
78431
+ }, 'normal', exports.AttributeLevel.Series);
78438
78432
  }
78439
78433
  }
78440
78434
  initLabelMarkStyle(textMark, spec = {}) {
@@ -78442,7 +78436,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
78442
78436
  return;
78443
78437
  }
78444
78438
  super.initLabelMarkStyle(textMark);
78445
- this.setMarkStyle(textMark, { support3d: true }, undefined, AttributeLevel.Mark);
78439
+ this.setMarkStyle(textMark, { support3d: true }, undefined, exports.AttributeLevel.Mark);
78446
78440
  }
78447
78441
  }
78448
78442
  Pie3dSeries.type = exports.SeriesTypeEnum.pie3d;
@@ -79451,12 +79445,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
79451
79445
  fill: this.getColorAttribute(),
79452
79446
  curveType: DEFAULT_LINEAR_INTERPOLATE,
79453
79447
  closePath: true
79454
- }, 'normal', AttributeLevel.Series);
79448
+ }, 'normal', exports.AttributeLevel.Series);
79455
79449
  if (this._invalidType !== 'zero') {
79456
79450
  this.setMarkStyle(areaMark, {
79457
79451
  defined: this._getInvalidDefined.bind(this),
79458
79452
  connectedType: this._getInvalidConnectType()
79459
- }, 'normal', AttributeLevel.Series);
79453
+ }, 'normal', exports.AttributeLevel.Series);
79460
79454
  }
79461
79455
  this.event.on(ChartEvent.viewDataStatisticsUpdate, { filter: param => param.model === this }, () => {
79462
79456
  this.encodeDefined(areaMark, 'defined');
@@ -79743,14 +79737,14 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
79743
79737
  y: 0,
79744
79738
  width: 10000,
79745
79739
  height: this._spec.clipHeight
79746
- }, 'normal', AttributeLevel.Series);
79740
+ }, 'normal', exports.AttributeLevel.Series);
79747
79741
  clipMark.setMarkConfig({ interactive: false, clip: true });
79748
79742
  }
79749
79743
  const containerMark = this._containerMark;
79750
79744
  if (containerMark) {
79751
79745
  this.setMarkStyle(containerMark, {
79752
79746
  x: this._spec.leftAppendPadding
79753
- }, 'normal', AttributeLevel.Series);
79747
+ }, 'normal', exports.AttributeLevel.Series);
79754
79748
  containerMark.setMarkConfig({ interactive: false });
79755
79749
  }
79756
79750
  const gridBackgroundMark = this._gridBackgroundMark;
@@ -79762,7 +79756,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
79762
79756
  y1: this.dataToGridBackgroundPositionY1.bind(this),
79763
79757
  fill: this._gridBackground.fill,
79764
79758
  fillOpacity: this.dataToGridBackgroundOpacity.bind(this)
79765
- }, 'normal', AttributeLevel.Series);
79759
+ }, 'normal', exports.AttributeLevel.Series);
79766
79760
  }
79767
79761
  const gridMark = this._gridMark;
79768
79762
  if (gridMark) {
@@ -79772,7 +79766,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
79772
79766
  y: this.dataToPositionY.bind(this),
79773
79767
  x1: this.getRegionRectRight.bind(this),
79774
79768
  y1: this.dataToPositionY.bind(this)
79775
- }, 'normal', AttributeLevel.Series);
79769
+ }, 'normal', exports.AttributeLevel.Series);
79776
79770
  }
79777
79771
  const dotMark = this._dotMark;
79778
79772
  if (dotMark) {
@@ -79781,7 +79775,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
79781
79775
  y: this.dataToPositionY.bind(this),
79782
79776
  fill: this.getDotColorAttribute(),
79783
79777
  fillOpacity: this.dataToOpacity.bind(this)
79784
- }, 'normal', AttributeLevel.Series);
79778
+ }, 'normal', exports.AttributeLevel.Series);
79785
79779
  }
79786
79780
  const titleMark = this._titleMark;
79787
79781
  if (titleMark) {
@@ -79792,7 +79786,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
79792
79786
  },
79793
79787
  x: this.getRegionRectLeft.bind(this),
79794
79788
  y: this.dataToPositionY.bind(this)
79795
- }, 'normal', AttributeLevel.Series);
79789
+ }, 'normal', exports.AttributeLevel.Series);
79796
79790
  }
79797
79791
  const subTitleMark = this._subTitleMark;
79798
79792
  if (subTitleMark) {
@@ -79803,7 +79797,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
79803
79797
  },
79804
79798
  x: this.getRegionRectLeft.bind(this),
79805
79799
  y: this.dataToPositionY.bind(this)
79806
- }, 'normal', AttributeLevel.Series);
79800
+ }, 'normal', exports.AttributeLevel.Series);
79807
79801
  }
79808
79802
  const symbolMark = this._symbolMark;
79809
79803
  if (symbolMark) {
@@ -79811,7 +79805,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
79811
79805
  x: this.getRegionRectLeft.bind(this),
79812
79806
  y: this.dataToPositionY.bind(this),
79813
79807
  fill: this.getColorAttribute()
79814
- }, 'normal', AttributeLevel.Series);
79808
+ }, 'normal', exports.AttributeLevel.Series);
79815
79809
  }
79816
79810
  }
79817
79811
  dataToGridBackgroundPositionY(datum) {
@@ -79862,7 +79856,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
79862
79856
  const layoutOffsetX = (_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.leftAppendPadding) !== null && _b !== void 0 ? _b : 0;
79863
79857
  this.setMarkStyle(this._clipMark, {
79864
79858
  width: this.getLayoutRect().width + layoutOffsetX
79865
- }, 'normal', AttributeLevel.Series);
79859
+ }, 'normal', exports.AttributeLevel.Series);
79866
79860
  }
79867
79861
  getDefaultColorDomain() {
79868
79862
  var _a, _b;
@@ -80104,7 +80098,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
80104
80098
  y: 0,
80105
80099
  width: 10000,
80106
80100
  height: this._spec.clipHeight
80107
- }, 'normal', AttributeLevel.Series);
80101
+ }, 'normal', exports.AttributeLevel.Series);
80108
80102
  clipMark.setMarkConfig({ interactive: false, clip: true });
80109
80103
  }
80110
80104
  const containerMark = this._containerMark;
@@ -80112,7 +80106,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
80112
80106
  this.setMarkStyle(containerMark, {
80113
80107
  x: this._spec.leftAppendPadding,
80114
80108
  width: this.getLayoutRect().width
80115
- }, 'normal', AttributeLevel.Series);
80109
+ }, 'normal', exports.AttributeLevel.Series);
80116
80110
  containerMark.setMarkConfig({ interactive: false });
80117
80111
  }
80118
80112
  const linkMark = this._linkMark;
@@ -80124,7 +80118,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
80124
80118
  y: this.dataToPositionYFrom.bind(this),
80125
80119
  x1: this.dataToPositionXTo.bind(this),
80126
80120
  y1: this.dataToPositionYTo.bind(this)
80127
- }, 'normal', AttributeLevel.Series);
80121
+ }, 'normal', exports.AttributeLevel.Series);
80128
80122
  }
80129
80123
  const arrowMark = this._arrowMark;
80130
80124
  if (arrowMark) {
@@ -80138,7 +80132,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
80138
80132
  symbolType: (datum) => {
80139
80133
  return this.isPositionYFromHigher(datum) ? 'triangleDown' : 'triangleUp';
80140
80134
  }
80141
- }, 'normal', AttributeLevel.Series);
80135
+ }, 'normal', exports.AttributeLevel.Series);
80142
80136
  }
80143
80137
  }
80144
80138
  afterInitMark() {
@@ -80416,7 +80410,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
80416
80410
  this.setMarkStyle(groupMark, {
80417
80411
  x: 0,
80418
80412
  y: 0
80419
- }, 'normal', AttributeLevel.Series);
80413
+ }, 'normal', exports.AttributeLevel.Series);
80420
80414
  this._arcGroupMark.setMarkConfig({
80421
80415
  interactive: false,
80422
80416
  zIndex: this.layoutZIndex,
@@ -80606,7 +80600,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
80606
80600
  fill: this.getColorAttribute(),
80607
80601
  zIndex: 200,
80608
80602
  forceShowCap: true
80609
- }, 'normal', AttributeLevel.Series);
80603
+ }, 'normal', exports.AttributeLevel.Series);
80610
80604
  }
80611
80605
  }
80612
80606
  initInteraction() {
@@ -80668,7 +80662,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
80668
80662
  cornerRadius: this._spec.cornerRadius,
80669
80663
  fill: this.getColorAttribute(),
80670
80664
  zIndex: 100
80671
- }, 'normal', AttributeLevel.Series);
80665
+ }, 'normal', exports.AttributeLevel.Series);
80672
80666
  }
80673
80667
  }
80674
80668
  initAnimation() {
@@ -80857,7 +80851,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
80857
80851
  width: this._spec.bandWidth - leftPadding - rightPadding,
80858
80852
  cornerRadius: this._spec.cornerRadius,
80859
80853
  fill: this.getColorAttribute()
80860
- }, 'normal', AttributeLevel.Series);
80854
+ }, 'normal', exports.AttributeLevel.Series);
80861
80855
  }
80862
80856
  else {
80863
80857
  const progress = this._spec.progress || {};
@@ -80879,7 +80873,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
80879
80873
  },
80880
80874
  cornerRadius: this._spec.cornerRadius,
80881
80875
  fill: this.getColorAttribute()
80882
- }, 'normal', AttributeLevel.Series);
80876
+ }, 'normal', exports.AttributeLevel.Series);
80883
80877
  }
80884
80878
  }
80885
80879
  }
@@ -80906,7 +80900,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
80906
80900
  width: this._spec.bandWidth,
80907
80901
  height: () => this._scaleY.range()[0],
80908
80902
  cornerRadius: this._spec.cornerRadius
80909
- }, 'normal', AttributeLevel.Series);
80903
+ }, 'normal', exports.AttributeLevel.Series);
80910
80904
  }
80911
80905
  else {
80912
80906
  this.setMarkStyle(trackMark, {
@@ -80919,7 +80913,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
80919
80913
  height: this._spec.bandWidth,
80920
80914
  width: () => this._scaleX.range()[1],
80921
80915
  cornerRadius: this._spec.cornerRadius
80922
- }, 'normal', AttributeLevel.Series);
80916
+ }, 'normal', exports.AttributeLevel.Series);
80923
80917
  }
80924
80918
  }
80925
80919
  }
@@ -81096,7 +81090,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
81096
81090
  background: () => {
81097
81091
  return this._maskCanvas;
81098
81092
  }
81099
- }, 'normal', AttributeLevel.Series);
81093
+ }, 'normal', exports.AttributeLevel.Series);
81100
81094
  }
81101
81095
  }
81102
81096
  initMarkStyleOfWord(wordMark, wordSpec, colorHexField, seriesField, isFillingWord) {
@@ -81116,12 +81110,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
81116
81110
  fontStyle: (datum) => datum.fontStyle,
81117
81111
  angle: (datum) => datum.angle,
81118
81112
  visible: (datum) => datum.visible
81119
- }, 'normal', AttributeLevel.Series);
81113
+ }, 'normal', exports.AttributeLevel.Series);
81120
81114
  this.setMarkStyle(wordMark, {
81121
81115
  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,
81122
81116
  fontWeight: (datum) => datum.fontWeight,
81123
81117
  fontFamily: (datum) => datum.fontFamily
81124
- }, 'normal', AttributeLevel.User_Mark);
81118
+ }, 'normal', exports.AttributeLevel.User_Mark);
81125
81119
  }
81126
81120
  initTooltip() {
81127
81121
  super.initTooltip();
@@ -83307,7 +83301,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
83307
83301
  if (wordMark) {
83308
83302
  this.setMarkStyle(wordMark, {
83309
83303
  z: (datum) => { var _a; return (_a = datum.z) !== null && _a !== void 0 ? _a : 0; }
83310
- }, 'normal', AttributeLevel.Series);
83304
+ }, 'normal', exports.AttributeLevel.Series);
83311
83305
  }
83312
83306
  }
83313
83307
  initAnimation() {
@@ -83632,11 +83626,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
83632
83626
  points: (datum) => this.getPoints(datum),
83633
83627
  visible: (datum) => isValid$1(datum[this._valueField]),
83634
83628
  fill: this.getColorAttribute()
83635
- }, 'normal', AttributeLevel.Series);
83629
+ }, 'normal', exports.AttributeLevel.Series);
83636
83630
  }
83637
83631
  const funnelTransformMark = this._funnelTransformMark;
83638
83632
  if (funnelTransformMark) {
83639
- this.setMarkStyle(funnelTransformMark, { points: (datum) => this.getPoints(datum) }, 'normal', AttributeLevel.Series);
83633
+ this.setMarkStyle(funnelTransformMark, { points: (datum) => this.getPoints(datum) }, 'normal', exports.AttributeLevel.Series);
83640
83634
  }
83641
83635
  const outerLabelMark = this._funnelOuterLabelMark.label;
83642
83636
  if (outerLabelMark) {
@@ -83649,13 +83643,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
83649
83643
  maxLineWidth: (datum) => this._computeOuterLabelLimit(datum),
83650
83644
  width: 0,
83651
83645
  height: 0
83652
- }, 'normal', AttributeLevel.Series);
83646
+ }, 'normal', exports.AttributeLevel.Series);
83653
83647
  if (isFunction$1(this._spec.outerLabel.formatMethod)) {
83654
83648
  this.setMarkStyle(outerLabelMark, {
83655
83649
  text: (datum) => {
83656
83650
  return this._spec.outerLabel.formatMethod(`${datum[this.getCategoryField()]}`, datum);
83657
83651
  }
83658
- }, 'normal', AttributeLevel.User_Mark);
83652
+ }, 'normal', exports.AttributeLevel.User_Mark);
83659
83653
  }
83660
83654
  }
83661
83655
  const outerLabelLineMark = this._funnelOuterLabelMark.line;
@@ -83665,7 +83659,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
83665
83659
  y: (datum) => this._computeOuterLabelLinePosition(datum).y1,
83666
83660
  x1: (datum) => this._computeOuterLabelLinePosition(datum).x2,
83667
83661
  y1: (datum) => this._computeOuterLabelLinePosition(datum).y2
83668
- }, 'normal', AttributeLevel.Series);
83662
+ }, 'normal', exports.AttributeLevel.Series);
83669
83663
  }
83670
83664
  }
83671
83665
  initLabelMarkStyle(labelMark) {
@@ -83683,7 +83677,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
83683
83677
  y: (datum) => this._computeLabelPosition(datum).y,
83684
83678
  maxLineWidth: (datum) => this._computeLabelLimit(datum, this._spec.label),
83685
83679
  stroke: this.getColorAttribute()
83686
- }, 'normal', AttributeLevel.Series);
83680
+ }, 'normal', exports.AttributeLevel.Series);
83687
83681
  if ((_a = this._funnelOuterLabelMark) === null || _a === void 0 ? void 0 : _a.label) {
83688
83682
  this._funnelOuterLabelMark.label.setDepend(component);
83689
83683
  }
@@ -83701,7 +83695,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
83701
83695
  x: (datum) => this._computeLabelPosition(datum).x,
83702
83696
  y: (datum) => this._computeLabelPosition(datum).y,
83703
83697
  maxLineWidth: (datum) => this._computeLabelLimit(datum, this._spec.transformLabel)
83704
- }, 'normal', AttributeLevel.Series);
83698
+ }, 'normal', exports.AttributeLevel.Series);
83705
83699
  }
83706
83700
  }
83707
83701
  initAnimation() {
@@ -84201,7 +84195,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
84201
84195
  const width = Math.max(Math.abs(points[0].x - points[1].x), Math.abs(points[2].x - points[3].x));
84202
84196
  return (this._computeMaxSize() - width) / 2;
84203
84197
  }
84204
- }, 'normal', AttributeLevel.Series);
84198
+ }, 'normal', exports.AttributeLevel.Series);
84205
84199
  }
84206
84200
  }
84207
84201
  initLabelMarkStyle(labelMark) {
@@ -84216,7 +84210,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
84216
84210
  const width = Math.max(Math.abs(points[0].x - points[1].x), Math.abs(points[2].x - points[3].x));
84217
84211
  return (this._computeMaxSize() - width) / 2;
84218
84212
  }
84219
- }, 'normal', AttributeLevel.Series);
84213
+ }, 'normal', exports.AttributeLevel.Series);
84220
84214
  this._labelMark = labelMark;
84221
84215
  if ((_a = this._funnelOuterLabelMark) === null || _a === void 0 ? void 0 : _a.label) {
84222
84216
  this._funnelOuterLabelMark.label.setDepend(labelMark.getComponent());
@@ -85400,7 +85394,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
85400
85394
  startAngle: d => d.startAngle,
85401
85395
  endAngle: d => d.endAngle,
85402
85396
  fill: this.getColorAttribute()
85403
- }, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
85397
+ }, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
85404
85398
  }
85405
85399
  _initLabelMark() {
85406
85400
  if (this._label.visible !== true) {
@@ -85432,7 +85426,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
85432
85426
  angle: (d) => { var _a, _b; return (_b = (_a = d.label) === null || _a === void 0 ? void 0 : _a.angle) !== null && _b !== void 0 ? _b : 0; },
85433
85427
  fontSize: 10,
85434
85428
  text: (d) => d.name
85435
- }, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
85429
+ }, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
85436
85430
  }
85437
85431
  initTooltip() {
85438
85432
  this._tooltipHelper = new SunburstTooltipHelper(this);
@@ -85690,7 +85684,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
85690
85684
  endAngle: Math.PI * 2,
85691
85685
  fill: this.getColorAttribute(),
85692
85686
  zIndex: d => d.depth
85693
- }, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
85687
+ }, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
85694
85688
  }
85695
85689
  _initLabelMark() {
85696
85690
  var _a;
@@ -85713,7 +85707,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
85713
85707
  return d.key;
85714
85708
  },
85715
85709
  cursor: 'pointer'
85716
- }, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
85710
+ }, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
85717
85711
  }
85718
85712
  getStatisticFields() {
85719
85713
  return appendHierarchyFields(super.getStatisticFields(), this._categoryField, this._valueField);
@@ -86454,12 +86448,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
86454
86448
  }
86455
86449
  const layout = new SankeyLayout(op);
86456
86450
  const result = [];
86457
- if (op.customLayout) {
86458
- result.push(op.customLayout(layout, originalData, view, op));
86459
- }
86460
- else {
86461
- result.push(layout.layout(originalData, view));
86462
- }
86451
+ result.push(layout.layout(originalData, view));
86463
86452
  return result;
86464
86453
  };
86465
86454
 
@@ -86656,28 +86645,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
86656
86645
  }
86657
86646
  }
86658
86647
  };
86659
- this._handleClearEmpty = (highlightState, blurState) => {
86660
- var _a, _b;
86661
- if (!this._needClear) {
86662
- return;
86663
- }
86664
- const allNodeElements = (_a = this._nodeMark) === null || _a === void 0 ? void 0 : _a.getProductElements();
86665
- if (!allNodeElements || !allNodeElements.length) {
86666
- return;
86667
- }
86668
- const allLinkElements = (_b = this._linkMark) === null || _b === void 0 ? void 0 : _b.getProductElements();
86669
- if (!allLinkElements || !allLinkElements.length) {
86670
- return;
86671
- }
86672
- const states = [highlightState, blurState];
86673
- allNodeElements.forEach(el => {
86674
- el.removeState(states);
86675
- });
86676
- allLinkElements.forEach(el => {
86677
- el.removeState(states);
86678
- });
86679
- this._needClear = false;
86680
- };
86681
86648
  this._handleNodeAdjacencyClick = (element, highlightState, blurState) => {
86682
86649
  const nodeDatum = element.getDatum();
86683
86650
  const highlightNodes = [nodeDatum.key];
@@ -86737,293 +86704,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
86737
86704
  }
86738
86705
  this._needClear = true;
86739
86706
  };
86740
- this._handleNodeRelatedClick = (element, highlightState, blurState) => {
86741
- var _a;
86742
- const nodeDatum = element.getDatum();
86743
- const allNodeElements = this._nodeMark.getProductElements();
86744
- if (!allNodeElements || !allNodeElements.length) {
86745
- return;
86746
- }
86747
- const allLinkElements = this._linkMark.getProductElements();
86748
- if (!allLinkElements || !allLinkElements.length) {
86749
- return;
86750
- }
86751
- const father = ((_a = allLinkElements[0].getDatum()) === null || _a === void 0 ? void 0 : _a.parents) ? 'parents' : 'source';
86752
- if (father === 'source') {
86753
- const highlightNodes = [nodeDatum.key];
86754
- const highlightLinks = [];
86755
- allLinkElements.forEach((linkEl, i) => {
86756
- var _a, _b, _c, _d;
86757
- const linkDatum = linkEl.getDatum();
86758
- const father = (linkDatum === null || linkDatum === void 0 ? void 0 : linkDatum.parents) ? 'parents' : 'source';
86759
- if (array(linkDatum[father]).includes(nodeDatum.key)) {
86760
- if (!highlightLinks.includes((_a = linkDatum.key) !== null && _a !== void 0 ? _a : linkDatum.index)) {
86761
- highlightLinks.push((_b = linkDatum.key) !== null && _b !== void 0 ? _b : linkDatum.index);
86762
- }
86763
- if (!highlightNodes.includes(linkDatum.source)) {
86764
- highlightNodes.push(linkDatum.source);
86765
- }
86766
- if (!highlightNodes.includes(linkDatum.target)) {
86767
- highlightNodes.push(linkDatum.target);
86768
- const targetNode = allNodeElements.find(nodeElement => {
86769
- return nodeElement.data[0].key === linkDatum.target;
86770
- });
86771
- let targetNodeSourceLinks = targetNode.data[0].sourceLinks;
86772
- while ((targetNodeSourceLinks === null || targetNodeSourceLinks === void 0 ? void 0 : targetNodeSourceLinks.length) > 0) {
86773
- const newTargetNodeSourceLinks = [];
86774
- targetNodeSourceLinks.forEach((targetNodeSourceLinkDatum) => {
86775
- var _a, _b;
86776
- if (!highlightLinks.includes((_a = targetNodeSourceLinkDatum.key) !== null && _a !== void 0 ? _a : targetNodeSourceLinkDatum.index)) {
86777
- highlightLinks.push((_b = targetNodeSourceLinkDatum.key) !== null && _b !== void 0 ? _b : targetNodeSourceLinkDatum.index);
86778
- if (!highlightNodes.includes(targetNodeSourceLinkDatum.target)) {
86779
- highlightNodes.push(targetNodeSourceLinkDatum.target);
86780
- const sourceNodeTemp = allNodeElements.find(nodeElement => {
86781
- return nodeElement.data[0].key === targetNodeSourceLinkDatum.target;
86782
- });
86783
- newTargetNodeSourceLinks.push(sourceNodeTemp.data[0].targetLinks);
86784
- }
86785
- else {
86786
- return;
86787
- }
86788
- }
86789
- else {
86790
- return;
86791
- }
86792
- });
86793
- targetNodeSourceLinks = newTargetNodeSourceLinks;
86794
- return;
86795
- }
86796
- }
86797
- }
86798
- else if (linkDatum.target === nodeDatum.key) {
86799
- if (!highlightLinks.includes((_c = linkDatum.key) !== null && _c !== void 0 ? _c : linkDatum.index)) {
86800
- highlightLinks.push((_d = linkDatum.key) !== null && _d !== void 0 ? _d : linkDatum.index);
86801
- }
86802
- if (!highlightNodes.includes(linkDatum.source)) {
86803
- highlightNodes.push(linkDatum.source);
86804
- const sourceNode = allNodeElements.find(nodeElement => {
86805
- return nodeElement.data[0].key === linkDatum.source;
86806
- });
86807
- let sourceNodeTargetLinks = sourceNode.data[0].targetLinks;
86808
- while ((sourceNodeTargetLinks === null || sourceNodeTargetLinks === void 0 ? void 0 : sourceNodeTargetLinks.length) > 0) {
86809
- const newSourceNodeTargetLinks = [];
86810
- sourceNodeTargetLinks.forEach((sourceNodeTargetLinkDatum) => {
86811
- var _a, _b;
86812
- if (!highlightLinks.includes((_a = sourceNodeTargetLinkDatum.key) !== null && _a !== void 0 ? _a : sourceNodeTargetLinkDatum.index)) {
86813
- highlightLinks.push((_b = sourceNodeTargetLinkDatum.key) !== null && _b !== void 0 ? _b : sourceNodeTargetLinkDatum.index);
86814
- if (!highlightNodes.includes(sourceNodeTargetLinkDatum.source)) {
86815
- highlightNodes.push(sourceNodeTargetLinkDatum.source);
86816
- const sourceNodeTemp = allNodeElements.find(nodeElement => {
86817
- return nodeElement.data[0].key === sourceNodeTargetLinkDatum.source;
86818
- });
86819
- newSourceNodeTargetLinks.push(sourceNodeTemp.data[0].targetLinks);
86820
- }
86821
- else {
86822
- return;
86823
- }
86824
- }
86825
- else {
86826
- return;
86827
- }
86828
- });
86829
- sourceNodeTargetLinks = newSourceNodeTargetLinks;
86830
- return;
86831
- }
86832
- }
86833
- }
86834
- });
86835
- if (this._linkMark) {
86836
- const allLinkElements = this._linkMark.getProductElements();
86837
- if (!allLinkElements || !allLinkElements.length) {
86838
- return;
86839
- }
86840
- allLinkElements.forEach((linkEl, i) => {
86841
- var _a;
86842
- if (highlightLinks.includes((_a = linkEl.getDatum().key) !== null && _a !== void 0 ? _a : linkEl.getDatum().index)) {
86843
- linkEl.removeState(blurState);
86844
- linkEl.addState(highlightState);
86845
- }
86846
- else {
86847
- linkEl.removeState(highlightState);
86848
- linkEl.addState(blurState);
86849
- }
86850
- });
86851
- }
86852
- if (this._nodeMark) {
86853
- this._highLightElements(this._nodeMark.getProductElements(), highlightNodes, highlightState, blurState);
86854
- }
86855
- }
86856
- else {
86857
- const highlightNodes = [nodeDatum.key];
86858
- const upstreamLinks = nodeDatum.targetLinks.reduce((res, link) => {
86859
- const dividedLinks = array(link.datum);
86860
- dividedLinks.forEach(dividedLink => {
86861
- const parents = dividedLink.parents;
86862
- const len = parents.length;
86863
- for (let i = 0; i < len; i++) {
86864
- const source = parents[i].key;
86865
- const target = parents[i + 1] ? parents[i + 1].key : nodeDatum.key;
86866
- const value = dividedLink.value;
86867
- const existingItem = res.find(item => item.source === source && item.target === target);
86868
- if (existingItem) {
86869
- existingItem.value += value;
86870
- }
86871
- else {
86872
- res.push({ source, target, value });
86873
- }
86874
- }
86875
- });
86876
- return res;
86877
- }, []);
86878
- allLinkElements.forEach((linkEl, i) => {
86879
- const linkDatum = linkEl.getDatum();
86880
- const originalDatum = linkDatum.datum;
86881
- const selectedDatum = originalDatum
86882
- ? originalDatum.filter((entry) => entry[father].some((par) => par.key === nodeDatum.key))
86883
- : null;
86884
- const upSelectedLink = upstreamLinks.find((upLink) => upLink.source === linkDatum.source && upLink.target === linkDatum.target);
86885
- if (selectedDatum && selectedDatum.length) {
86886
- if (!highlightNodes.includes(linkDatum.source)) {
86887
- highlightNodes.push(linkDatum.source);
86888
- }
86889
- if (!highlightNodes.includes(linkDatum.target)) {
86890
- highlightNodes.push(linkDatum.target);
86891
- }
86892
- const val = selectedDatum.reduce((sum, d) => {
86893
- return (sum += d.value);
86894
- }, 0);
86895
- const ratio = val / linkDatum.value;
86896
- linkEl.removeState(blurState);
86897
- linkEl.addState(highlightState, { ratio });
86898
- return;
86899
- }
86900
- if (upSelectedLink) {
86901
- if (!highlightNodes.includes(linkDatum.source)) {
86902
- highlightNodes.push(linkDatum.source);
86903
- }
86904
- if (!highlightNodes.includes(linkDatum.target)) {
86905
- highlightNodes.push(linkDatum.target);
86906
- }
86907
- linkEl.removeState(blurState);
86908
- linkEl.addState(highlightState, { ratio: upSelectedLink.value / linkDatum.value });
86909
- return;
86910
- }
86911
- linkEl.removeState(highlightState);
86912
- linkEl.addState(blurState);
86913
- return;
86914
- });
86915
- if (this._nodeMark) {
86916
- this._highLightElements(this._nodeMark.getProductElements(), highlightNodes, highlightState, blurState);
86917
- }
86918
- }
86919
- this._needClear = true;
86920
- };
86921
- this._handleLinkRelatedClick = (element, highlightState, blurState) => {
86922
- var _a;
86923
- const allNodeElements = this._nodeMark.getProductElements();
86924
- if (!allNodeElements || !allNodeElements.length) {
86925
- return;
86926
- }
86927
- const allLinkElements = this._linkMark.getProductElements();
86928
- if (!allLinkElements || !allLinkElements.length) {
86929
- return;
86930
- }
86931
- const father = ((_a = element.getDatum()) === null || _a === void 0 ? void 0 : _a.parents) ? 'parents' : 'source';
86932
- if (father === 'source') {
86933
- const states = [highlightState, blurState];
86934
- if (this._linkMark) {
86935
- allLinkElements.forEach(linkEl => {
86936
- linkEl.removeState(states);
86937
- });
86938
- }
86939
- if (this._nodeMark) {
86940
- allNodeElements.forEach(el => {
86941
- el.removeState(states);
86942
- });
86943
- }
86944
- }
86945
- else {
86946
- const curLinkDatum = element.getDatum();
86947
- const highlightNodes = [curLinkDatum.source, curLinkDatum.target];
86948
- const upstreamLinks = [];
86949
- const dividedLinks = array(curLinkDatum.datum);
86950
- dividedLinks.forEach(dividedLink => {
86951
- const parents = dividedLink.parents;
86952
- const len = parents.length;
86953
- for (let i = 0; i < len - 1; i++) {
86954
- const source = parents[i].key;
86955
- const target = parents[i + 1].key;
86956
- const value = dividedLink.value;
86957
- const existingItem = upstreamLinks.find(item => item.source === source && item.target === target);
86958
- upstreamLinks.push({
86959
- source: parents[i].key,
86960
- target: parents[i + 1].key,
86961
- value: dividedLink.value
86962
- });
86963
- if (existingItem) {
86964
- existingItem.value += value;
86965
- }
86966
- else {
86967
- upstreamLinks.push({ source, target, value });
86968
- }
86969
- }
86970
- });
86971
- allLinkElements.forEach(linkEl => {
86972
- const linkDatum = linkEl.getDatum();
86973
- const originalDatum = linkDatum.datum;
86974
- if (linkDatum.source === curLinkDatum.source && linkDatum.target === curLinkDatum.target) {
86975
- linkEl.removeState(blurState);
86976
- linkEl.addState(highlightState, { ratio: 1 });
86977
- return;
86978
- }
86979
- const selectedDatum = originalDatum
86980
- ? originalDatum.filter((entry) => {
86981
- const parentKeysList = entry.parents.map((item) => item.key);
86982
- return parentKeysList.includes(curLinkDatum.source) && parentKeysList.includes(curLinkDatum.target);
86983
- })
86984
- : null;
86985
- if (selectedDatum && selectedDatum.length) {
86986
- if (!highlightNodes.includes(linkDatum.source)) {
86987
- highlightNodes.push(linkDatum.source);
86988
- }
86989
- if (!highlightNodes.includes(linkDatum.target)) {
86990
- highlightNodes.push(linkDatum.target);
86991
- }
86992
- const val = selectedDatum
86993
- .filter((entry) => {
86994
- return entry.parents.some((par, index) => {
86995
- var _a;
86996
- return par.key === curLinkDatum.source && ((_a = entry.parents[index + 1]) === null || _a === void 0 ? void 0 : _a.key) === curLinkDatum.target;
86997
- });
86998
- })
86999
- .reduce((sum, d) => {
87000
- return (sum += d.value);
87001
- }, 0);
87002
- const ratio = val / linkDatum.value;
87003
- linkEl.removeState(blurState);
87004
- linkEl.addState(highlightState, { ratio });
87005
- return;
87006
- }
87007
- const upSelectedLink = upstreamLinks.find((upLink) => upLink.source === linkDatum.source && upLink.target === linkDatum.target);
87008
- if (upSelectedLink) {
87009
- if (!highlightNodes.includes(linkDatum.source)) {
87010
- highlightNodes.push(linkDatum.source);
87011
- }
87012
- if (!highlightNodes.includes(linkDatum.target)) {
87013
- highlightNodes.push(linkDatum.target);
87014
- }
87015
- linkEl.removeState(blurState);
87016
- linkEl.addState(highlightState, { ratio: upSelectedLink.value / linkDatum.value });
87017
- return;
87018
- }
87019
- linkEl.removeState(highlightState);
87020
- linkEl.addState(blurState);
87021
- return;
87022
- });
87023
- this._highLightElements(allNodeElements, highlightNodes, highlightState, blurState);
87024
- }
87025
- this._needClear = true;
87026
- };
87027
86707
  }
87028
86708
  get direction() {
87029
86709
  var _a, _b;
@@ -87096,8 +86776,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
87096
86776
  linkHeight: this._spec.linkHeight,
87097
86777
  equalNodeHeight: this._spec.equalNodeHeight,
87098
86778
  linkOverlap: this._spec.linkOverlap,
87099
- inverse: this._spec.inverse,
87100
- customLayout: this._spec.customLayout
86779
+ inverse: this._spec.inverse
87101
86780
  },
87102
86781
  level: TransformLevel.sankeyLayout
87103
86782
  });
@@ -87225,10 +86904,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
87225
86904
  x1: (datum) => datum.x1,
87226
86905
  y: (datum) => datum.y0,
87227
86906
  y1: (datum) => datum.y1
87228
- }, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Mark);
86907
+ }, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Mark);
87229
86908
  this.setMarkStyle(nodeMark, {
87230
86909
  fill: (_b = (_a = this._spec.node.style) === null || _a === void 0 ? void 0 : _a.fill) !== null && _b !== void 0 ? _b : this._fillByNode
87231
- }, 'normal', AttributeLevel.User_Mark);
86910
+ }, 'normal', exports.AttributeLevel.User_Mark);
87232
86911
  }
87233
86912
  _initLinkMarkStyle() {
87234
86913
  var _a, _b;
@@ -87243,10 +86922,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
87243
86922
  y1: (datum) => datum.y1,
87244
86923
  thickness: (datum) => datum.thickness,
87245
86924
  direction: this.direction
87246
- }, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
86925
+ }, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
87247
86926
  this.setMarkStyle(linkMark, {
87248
86927
  fill: (_b = (_a = this._spec.link.style) === null || _a === void 0 ? void 0 : _a.fill) !== null && _b !== void 0 ? _b : this._fillByLink
87249
- }, 'normal', AttributeLevel.User_Mark);
86928
+ }, 'normal', exports.AttributeLevel.User_Mark);
87250
86929
  }
87251
86930
  initLabelMarkStyle(labelMark, labelSpec) {
87252
86931
  if (!labelMark) {
@@ -87325,6 +87004,315 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
87325
87004
  linksSeriesDataUpdate() {
87326
87005
  this._linksSeriesData.updateData();
87327
87006
  }
87007
+ _handleClearEmpty(highlightState, blurState) {
87008
+ var _a, _b;
87009
+ if (!this._needClear) {
87010
+ return;
87011
+ }
87012
+ const allNodeElements = (_a = this._nodeMark) === null || _a === void 0 ? void 0 : _a.getProductElements();
87013
+ if (!allNodeElements || !allNodeElements.length) {
87014
+ return;
87015
+ }
87016
+ const allLinkElements = (_b = this._linkMark) === null || _b === void 0 ? void 0 : _b.getProductElements();
87017
+ if (!allLinkElements || !allLinkElements.length) {
87018
+ return;
87019
+ }
87020
+ const states = [highlightState, blurState];
87021
+ allNodeElements.forEach(el => {
87022
+ el.removeState(states);
87023
+ });
87024
+ allLinkElements.forEach(el => {
87025
+ el.removeState(states);
87026
+ });
87027
+ this._needClear = false;
87028
+ }
87029
+ _handleNodeRelatedClick(element, highlightState, blurState) {
87030
+ var _a;
87031
+ const nodeDatum = element.getDatum();
87032
+ const allNodeElements = this._nodeMark.getProductElements();
87033
+ if (!allNodeElements || !allNodeElements.length) {
87034
+ return;
87035
+ }
87036
+ const allLinkElements = this._linkMark.getProductElements();
87037
+ if (!allLinkElements || !allLinkElements.length) {
87038
+ return;
87039
+ }
87040
+ const father = ((_a = allLinkElements[0].getDatum()) === null || _a === void 0 ? void 0 : _a.parents) ? 'parents' : 'source';
87041
+ if (father === 'source') {
87042
+ const highlightNodes = [nodeDatum.key];
87043
+ const highlightLinks = [];
87044
+ allLinkElements.forEach((linkEl, i) => {
87045
+ var _a, _b, _c, _d;
87046
+ const linkDatum = linkEl.getDatum();
87047
+ const father = (linkDatum === null || linkDatum === void 0 ? void 0 : linkDatum.parents) ? 'parents' : 'source';
87048
+ if (array(linkDatum[father]).includes(nodeDatum.key)) {
87049
+ if (!highlightLinks.includes((_a = linkDatum.key) !== null && _a !== void 0 ? _a : linkDatum.index)) {
87050
+ highlightLinks.push((_b = linkDatum.key) !== null && _b !== void 0 ? _b : linkDatum.index);
87051
+ }
87052
+ if (!highlightNodes.includes(linkDatum.source)) {
87053
+ highlightNodes.push(linkDatum.source);
87054
+ }
87055
+ if (!highlightNodes.includes(linkDatum.target)) {
87056
+ highlightNodes.push(linkDatum.target);
87057
+ const targetNode = allNodeElements.find(nodeElement => {
87058
+ return nodeElement.data[0].key === linkDatum.target;
87059
+ });
87060
+ let targetNodeSourceLinks = targetNode.data[0].sourceLinks;
87061
+ while ((targetNodeSourceLinks === null || targetNodeSourceLinks === void 0 ? void 0 : targetNodeSourceLinks.length) > 0) {
87062
+ const newTargetNodeSourceLinks = [];
87063
+ targetNodeSourceLinks.forEach((targetNodeSourceLinkDatum) => {
87064
+ var _a, _b;
87065
+ if (!highlightLinks.includes((_a = targetNodeSourceLinkDatum.key) !== null && _a !== void 0 ? _a : targetNodeSourceLinkDatum.index)) {
87066
+ highlightLinks.push((_b = targetNodeSourceLinkDatum.key) !== null && _b !== void 0 ? _b : targetNodeSourceLinkDatum.index);
87067
+ if (!highlightNodes.includes(targetNodeSourceLinkDatum.target)) {
87068
+ highlightNodes.push(targetNodeSourceLinkDatum.target);
87069
+ const sourceNodeTemp = allNodeElements.find(nodeElement => {
87070
+ return nodeElement.data[0].key === targetNodeSourceLinkDatum.target;
87071
+ });
87072
+ newTargetNodeSourceLinks.push(sourceNodeTemp.data[0].targetLinks);
87073
+ }
87074
+ else {
87075
+ return;
87076
+ }
87077
+ }
87078
+ else {
87079
+ return;
87080
+ }
87081
+ });
87082
+ targetNodeSourceLinks = newTargetNodeSourceLinks;
87083
+ return;
87084
+ }
87085
+ }
87086
+ }
87087
+ else if (linkDatum.target === nodeDatum.key) {
87088
+ if (!highlightLinks.includes((_c = linkDatum.key) !== null && _c !== void 0 ? _c : linkDatum.index)) {
87089
+ highlightLinks.push((_d = linkDatum.key) !== null && _d !== void 0 ? _d : linkDatum.index);
87090
+ }
87091
+ if (!highlightNodes.includes(linkDatum.source)) {
87092
+ highlightNodes.push(linkDatum.source);
87093
+ const sourceNode = allNodeElements.find(nodeElement => {
87094
+ return nodeElement.data[0].key === linkDatum.source;
87095
+ });
87096
+ let sourceNodeTargetLinks = sourceNode.data[0].targetLinks;
87097
+ while ((sourceNodeTargetLinks === null || sourceNodeTargetLinks === void 0 ? void 0 : sourceNodeTargetLinks.length) > 0) {
87098
+ const newSourceNodeTargetLinks = [];
87099
+ sourceNodeTargetLinks.forEach((sourceNodeTargetLinkDatum) => {
87100
+ var _a, _b;
87101
+ if (!highlightLinks.includes((_a = sourceNodeTargetLinkDatum.key) !== null && _a !== void 0 ? _a : sourceNodeTargetLinkDatum.index)) {
87102
+ highlightLinks.push((_b = sourceNodeTargetLinkDatum.key) !== null && _b !== void 0 ? _b : sourceNodeTargetLinkDatum.index);
87103
+ if (!highlightNodes.includes(sourceNodeTargetLinkDatum.source)) {
87104
+ highlightNodes.push(sourceNodeTargetLinkDatum.source);
87105
+ const sourceNodeTemp = allNodeElements.find(nodeElement => {
87106
+ return nodeElement.data[0].key === sourceNodeTargetLinkDatum.source;
87107
+ });
87108
+ newSourceNodeTargetLinks.push(sourceNodeTemp.data[0].targetLinks);
87109
+ }
87110
+ else {
87111
+ return;
87112
+ }
87113
+ }
87114
+ else {
87115
+ return;
87116
+ }
87117
+ });
87118
+ sourceNodeTargetLinks = newSourceNodeTargetLinks;
87119
+ return;
87120
+ }
87121
+ }
87122
+ }
87123
+ });
87124
+ if (this._linkMark) {
87125
+ const allLinkElements = this._linkMark.getProductElements();
87126
+ if (!allLinkElements || !allLinkElements.length) {
87127
+ return;
87128
+ }
87129
+ allLinkElements.forEach((linkEl, i) => {
87130
+ var _a;
87131
+ if (highlightLinks.includes((_a = linkEl.getDatum().key) !== null && _a !== void 0 ? _a : linkEl.getDatum().index)) {
87132
+ linkEl.removeState(blurState);
87133
+ linkEl.addState(highlightState);
87134
+ }
87135
+ else {
87136
+ linkEl.removeState(highlightState);
87137
+ linkEl.addState(blurState);
87138
+ }
87139
+ });
87140
+ }
87141
+ if (this._nodeMark) {
87142
+ this._highLightElements(this._nodeMark.getProductElements(), highlightNodes, highlightState, blurState);
87143
+ }
87144
+ }
87145
+ else {
87146
+ const highlightNodes = [nodeDatum.key];
87147
+ const upstreamLinks = nodeDatum.targetLinks.reduce((res, link) => {
87148
+ const dividedLinks = array(link.datum);
87149
+ dividedLinks.forEach(dividedLink => {
87150
+ const parents = dividedLink.parents;
87151
+ const len = parents.length;
87152
+ for (let i = 0; i < len; i++) {
87153
+ const source = parents[i].key;
87154
+ const target = parents[i + 1] ? parents[i + 1].key : nodeDatum.key;
87155
+ const value = dividedLink.value;
87156
+ const existingItem = res.find(item => item.source === source && item.target === target);
87157
+ if (existingItem) {
87158
+ existingItem.value += value;
87159
+ }
87160
+ else {
87161
+ res.push({ source, target, value });
87162
+ }
87163
+ }
87164
+ });
87165
+ return res;
87166
+ }, []);
87167
+ allLinkElements.forEach((linkEl, i) => {
87168
+ const linkDatum = linkEl.getDatum();
87169
+ const originalDatum = linkDatum.datum;
87170
+ const selectedDatum = originalDatum
87171
+ ? originalDatum.filter((entry) => entry[father].some((par) => par.key === nodeDatum.key))
87172
+ : null;
87173
+ const upSelectedLink = upstreamLinks.find((upLink) => upLink.source === linkDatum.source && upLink.target === linkDatum.target);
87174
+ if (selectedDatum && selectedDatum.length) {
87175
+ if (!highlightNodes.includes(linkDatum.source)) {
87176
+ highlightNodes.push(linkDatum.source);
87177
+ }
87178
+ if (!highlightNodes.includes(linkDatum.target)) {
87179
+ highlightNodes.push(linkDatum.target);
87180
+ }
87181
+ const val = selectedDatum.reduce((sum, d) => {
87182
+ return (sum += d.value);
87183
+ }, 0);
87184
+ const ratio = val / linkDatum.value;
87185
+ linkEl.removeState(blurState);
87186
+ linkEl.addState(highlightState, { ratio });
87187
+ return;
87188
+ }
87189
+ if (upSelectedLink) {
87190
+ if (!highlightNodes.includes(linkDatum.source)) {
87191
+ highlightNodes.push(linkDatum.source);
87192
+ }
87193
+ if (!highlightNodes.includes(linkDatum.target)) {
87194
+ highlightNodes.push(linkDatum.target);
87195
+ }
87196
+ linkEl.removeState(blurState);
87197
+ linkEl.addState(highlightState, { ratio: upSelectedLink.value / linkDatum.value });
87198
+ return;
87199
+ }
87200
+ linkEl.removeState(highlightState);
87201
+ linkEl.addState(blurState);
87202
+ return;
87203
+ });
87204
+ if (this._nodeMark) {
87205
+ this._highLightElements(this._nodeMark.getProductElements(), highlightNodes, highlightState, blurState);
87206
+ }
87207
+ }
87208
+ this._needClear = true;
87209
+ }
87210
+ _handleLinkRelatedClick(element, highlightState, blurState) {
87211
+ var _a;
87212
+ const allNodeElements = this._nodeMark.getProductElements();
87213
+ if (!allNodeElements || !allNodeElements.length) {
87214
+ return;
87215
+ }
87216
+ const allLinkElements = this._linkMark.getProductElements();
87217
+ if (!allLinkElements || !allLinkElements.length) {
87218
+ return;
87219
+ }
87220
+ const father = ((_a = element.getDatum()) === null || _a === void 0 ? void 0 : _a.parents) ? 'parents' : 'source';
87221
+ if (father === 'source') {
87222
+ const states = [highlightState, blurState];
87223
+ if (this._linkMark) {
87224
+ allLinkElements.forEach(linkEl => {
87225
+ linkEl.removeState(states);
87226
+ });
87227
+ }
87228
+ if (this._nodeMark) {
87229
+ allNodeElements.forEach(el => {
87230
+ el.removeState(states);
87231
+ });
87232
+ }
87233
+ }
87234
+ else {
87235
+ const curLinkDatum = element.getDatum();
87236
+ const highlightNodes = [curLinkDatum.source, curLinkDatum.target];
87237
+ const upstreamLinks = [];
87238
+ const dividedLinks = array(curLinkDatum.datum);
87239
+ dividedLinks.forEach(dividedLink => {
87240
+ const parents = dividedLink.parents;
87241
+ const len = parents.length;
87242
+ for (let i = 0; i < len - 1; i++) {
87243
+ const source = parents[i].key;
87244
+ const target = parents[i + 1].key;
87245
+ const value = dividedLink.value;
87246
+ const existingItem = upstreamLinks.find(item => item.source === source && item.target === target);
87247
+ upstreamLinks.push({
87248
+ source: parents[i].key,
87249
+ target: parents[i + 1].key,
87250
+ value: dividedLink.value
87251
+ });
87252
+ if (existingItem) {
87253
+ existingItem.value += value;
87254
+ }
87255
+ else {
87256
+ upstreamLinks.push({ source, target, value });
87257
+ }
87258
+ }
87259
+ });
87260
+ allLinkElements.forEach(linkEl => {
87261
+ const linkDatum = linkEl.getDatum();
87262
+ const originalDatum = linkDatum.datum;
87263
+ if (linkDatum.source === curLinkDatum.source && linkDatum.target === curLinkDatum.target) {
87264
+ linkEl.removeState(blurState);
87265
+ linkEl.addState(highlightState, { ratio: 1 });
87266
+ return;
87267
+ }
87268
+ const selectedDatum = originalDatum
87269
+ ? originalDatum.filter((entry) => {
87270
+ const parentKeysList = entry.parents.map((item) => item.key);
87271
+ return parentKeysList.includes(curLinkDatum.source) && parentKeysList.includes(curLinkDatum.target);
87272
+ })
87273
+ : null;
87274
+ if (selectedDatum && selectedDatum.length) {
87275
+ if (!highlightNodes.includes(linkDatum.source)) {
87276
+ highlightNodes.push(linkDatum.source);
87277
+ }
87278
+ if (!highlightNodes.includes(linkDatum.target)) {
87279
+ highlightNodes.push(linkDatum.target);
87280
+ }
87281
+ const val = selectedDatum
87282
+ .filter((entry) => {
87283
+ return entry.parents.some((par, index) => {
87284
+ var _a;
87285
+ return par.key === curLinkDatum.source && ((_a = entry.parents[index + 1]) === null || _a === void 0 ? void 0 : _a.key) === curLinkDatum.target;
87286
+ });
87287
+ })
87288
+ .reduce((sum, d) => {
87289
+ return (sum += d.value);
87290
+ }, 0);
87291
+ const ratio = val / linkDatum.value;
87292
+ linkEl.removeState(blurState);
87293
+ linkEl.addState(highlightState, { ratio });
87294
+ return;
87295
+ }
87296
+ const upSelectedLink = upstreamLinks.find((upLink) => upLink.source === linkDatum.source && upLink.target === linkDatum.target);
87297
+ if (upSelectedLink) {
87298
+ if (!highlightNodes.includes(linkDatum.source)) {
87299
+ highlightNodes.push(linkDatum.source);
87300
+ }
87301
+ if (!highlightNodes.includes(linkDatum.target)) {
87302
+ highlightNodes.push(linkDatum.target);
87303
+ }
87304
+ linkEl.removeState(blurState);
87305
+ linkEl.addState(highlightState, { ratio: upSelectedLink.value / linkDatum.value });
87306
+ return;
87307
+ }
87308
+ linkEl.removeState(highlightState);
87309
+ linkEl.addState(blurState);
87310
+ return;
87311
+ });
87312
+ this._highLightElements(allNodeElements, highlightNodes, highlightState, blurState);
87313
+ }
87314
+ this._needClear = true;
87315
+ }
87328
87316
  _highLightElements(vGrammarElements, highlightNodes, highlightState, blurState) {
87329
87317
  if (!vGrammarElements || !vGrammarElements.length) {
87330
87318
  return;
@@ -87796,7 +87784,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
87796
87784
  x1: datum => datum.x1,
87797
87785
  y1: datum => datum.y1,
87798
87786
  fill: this.getColorAttribute()
87799
- }, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
87787
+ }, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
87800
87788
  }
87801
87789
  _initNonLeafMarkStyle() {
87802
87790
  if (!this._nonLeafMark) {
@@ -87808,7 +87796,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
87808
87796
  x1: datum => datum.x1,
87809
87797
  y1: datum => datum.y1,
87810
87798
  fill: this.getColorAttribute()
87811
- }, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
87799
+ }, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
87812
87800
  }
87813
87801
  _initRichStyleOfLabelMark(labelMark) {
87814
87802
  if (labelMark.getTextType() === 'rich') {
@@ -87816,7 +87804,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
87816
87804
  maxWidth: datum => Math.abs(datum.x0 - datum.x1),
87817
87805
  maxHeight: datum => Math.abs(datum.y0 - datum.y1),
87818
87806
  ellipsis: true
87819
- }, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
87807
+ }, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
87820
87808
  }
87821
87809
  }
87822
87810
  initLabelMarkStyle(labelMark) {
@@ -87835,7 +87823,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
87835
87823
  maxLineWidth: (datum) => {
87836
87824
  return datum.x1 === datum.x0 ? Number.MIN_VALUE : datum.x1 - datum.x0;
87837
87825
  }
87838
- }, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
87826
+ }, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
87839
87827
  this._initRichStyleOfLabelMark(labelMark);
87840
87828
  }
87841
87829
  initNonLeafLabelMarkStyle(labelMark) {
@@ -87864,7 +87852,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
87864
87852
  maxLineWidth: (datum) => {
87865
87853
  return datum.x1 === datum.x0 ? Number.MIN_VALUE : datum.x1 - datum.x0;
87866
87854
  }
87867
- }, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
87855
+ }, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
87868
87856
  this._initRichStyleOfLabelMark(labelMark);
87869
87857
  }
87870
87858
  initAnimation() {
@@ -88309,7 +88297,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
88309
88297
  const segmentSpec = this.getSpec()["segment"];
88310
88298
  if (segmentSpec) {
88311
88299
  for (const state in segmentSpec.state || {}) {
88312
- this.setMarkStyle(mark, this.generateRadiusStyle(segmentSpec.state[state]), state, AttributeLevel.User_Mark);
88300
+ this.setMarkStyle(mark, this.generateRadiusStyle(segmentSpec.state[state]), state, exports.AttributeLevel.User_Mark);
88313
88301
  }
88314
88302
  }
88315
88303
  }
@@ -88487,7 +88475,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
88487
88475
  return [this.getCellSize(this._xAxisHelper), this.getCellSize(this._yAxisHelper)];
88488
88476
  },
88489
88477
  fill: this.getColorAttribute()
88490
- }, 'normal', AttributeLevel.Series);
88478
+ }, 'normal', exports.AttributeLevel.Series);
88491
88479
  }
88492
88480
  initCellBackgroundMarkStyle() {
88493
88481
  var _a, _b, _c;
@@ -88509,7 +88497,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
88509
88497
  height: () => {
88510
88498
  return this.getCellSize(this._yAxisHelper) - padding[0] - padding[2];
88511
88499
  }
88512
- }, 'normal', AttributeLevel.Series);
88500
+ }, 'normal', exports.AttributeLevel.Series);
88513
88501
  }
88514
88502
  getColorAttribute() {
88515
88503
  var _a;
@@ -88919,7 +88907,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
88919
88907
  fill: (_c = nodePointStyle.fill) !== null && _c !== void 0 ? _c : this.getColorAttribute(),
88920
88908
  fillOpacity: (_d = nodePointStyle.fillOpacity) !== null && _d !== void 0 ? _d : 1,
88921
88909
  lineWidth: 0
88922
- }, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
88910
+ }, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
88923
88911
  }
88924
88912
  _initRipplePointMarkStyle() {
88925
88913
  var _a, _b, _c, _d, _e;
@@ -88943,7 +88931,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
88943
88931
  fill: (_c = ripplePointStyle.fill) !== null && _c !== void 0 ? _c : this.getColorAttribute(),
88944
88932
  opacity: (_d = ripplePointStyle.fillOpacity) !== null && _d !== void 0 ? _d : 0.2,
88945
88933
  ripple: (_e = ripplePointStyle.ripple) !== null && _e !== void 0 ? _e : 0
88946
- }, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
88934
+ }, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
88947
88935
  }
88948
88936
  _initCenterPointMarkStyle() {
88949
88937
  var _a, _b, _c, _d, _e, _f;
@@ -88965,7 +88953,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
88965
88953
  },
88966
88954
  fill: (_c = (_b = (_a = this._spec.centerPoint) === null || _a === void 0 ? void 0 : _a.style) === null || _b === void 0 ? void 0 : _b.fill) !== null && _c !== void 0 ? _c : this.getColorAttribute(),
88967
88955
  fillOpacity: (_f = (_e = (_d = this._spec.centerPoint) === null || _d === void 0 ? void 0 : _d.style) === null || _e === void 0 ? void 0 : _e.fillOpacity) !== null && _f !== void 0 ? _f : 1
88968
- }, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
88956
+ }, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
88969
88957
  }
88970
88958
  initTooltip() {
88971
88959
  super.initTooltip();
@@ -88981,7 +88969,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
88981
88969
  return datum[this._categoryField];
88982
88970
  },
88983
88971
  z: this.dataToPositionZ.bind(this)
88984
- }, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
88972
+ }, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
88985
88973
  }
88986
88974
  initAnimation() {
88987
88975
  var _a, _b;
@@ -89330,7 +89318,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
89330
89318
  width: () => this._region.getLayoutRect().width,
89331
89319
  height: () => this._region.getLayoutRect().height,
89332
89320
  path: () => this._getLiquidBackPath(true)
89333
- }, 'normal', AttributeLevel.Series);
89321
+ }, 'normal', exports.AttributeLevel.Series);
89334
89322
  this._liquidOutlineMark.setMarkConfig({ interactive: false, zIndex: this.layoutZIndex });
89335
89323
  }
89336
89324
  _initLiquidBackgroundMarkStyle() {
@@ -89340,7 +89328,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
89340
89328
  width: () => this._region.getLayoutRect().width,
89341
89329
  height: () => this._region.getLayoutRect().height,
89342
89330
  path: () => this._getLiquidBackPath()
89343
- }, 'normal', AttributeLevel.Series);
89331
+ }, 'normal', exports.AttributeLevel.Series);
89344
89332
  this._liquidBackgroundMark.setMarkConfig({ interactive: false, zIndex: this.layoutZIndex, clip: true });
89345
89333
  }
89346
89334
  _initLiquidMarkStyle() {
@@ -89363,7 +89351,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
89363
89351
  height: this._getLiquidHeight,
89364
89352
  fill: this.getColorAttribute(),
89365
89353
  wave: 0
89366
- }, 'normal', AttributeLevel.Series);
89354
+ }, 'normal', exports.AttributeLevel.Series);
89367
89355
  }
89368
89356
  }
89369
89357
  initTooltip() {
@@ -90336,7 +90324,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
90336
90324
  endAngle: Math.PI * 2,
90337
90325
  fill: this.getColorAttribute(),
90338
90326
  stroke: this.getColorAttribute()
90339
- }, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
90327
+ }, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
90340
90328
  }
90341
90329
  _initOverlapMarkStyle() {
90342
90330
  if (!this._overlapMark) {
@@ -90352,12 +90340,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
90352
90340
  zIndex: datum => {
90353
90341
  return datum.sets.length * 100;
90354
90342
  }
90355
- }, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
90343
+ }, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
90356
90344
  this.setMarkStyle(this._overlapMark, {
90357
90345
  zIndex: datum => {
90358
90346
  return datum.sets.length * 100 + 1;
90359
90347
  }
90360
- }, exports.STATE_VALUE_ENUM.STATE_HOVER, AttributeLevel.Series);
90348
+ }, exports.STATE_VALUE_ENUM.STATE_HOVER, exports.AttributeLevel.Series);
90361
90349
  }
90362
90350
  initLabelMarkStyle(labelMark) {
90363
90351
  if (!labelMark) {
@@ -90375,7 +90363,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
90375
90363
  const circleX1 = x + radius;
90376
90364
  return Math.min(labelX - circleX0, circleX1 - labelX);
90377
90365
  }
90378
- }, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
90366
+ }, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
90379
90367
  }
90380
90368
  initOverlapLabelMarkStyle(labelMark) {
90381
90369
  if (!labelMark) {
@@ -90387,7 +90375,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
90387
90375
  x: datum => datum.labelX,
90388
90376
  y: datum => datum.labelY,
90389
90377
  text: datum => getVennSeriesDataKey(datum.sets)
90390
- }, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
90378
+ }, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
90391
90379
  }
90392
90380
  initTooltip() {
90393
90381
  this._tooltipHelper = new VennTooltipHelper(this);
@@ -90937,17 +90925,17 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
90937
90925
  text: (d) => d[this.nameField],
90938
90926
  textAlign: 'center',
90939
90927
  textBaseline: 'middle'
90940
- }, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
90928
+ }, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
90941
90929
  }
90942
90930
  initMarkStyle() {
90943
90931
  const { root, viewBoxRect } = this._parsedSvgResult;
90944
90932
  const elements = this._mapViewData.getDataView().latestData;
90945
90933
  if (root) {
90946
- this.setMarkStyle(this._pictogramMark, graphicAttributeTransform.group(root.attributes), 'normal', AttributeLevel.Built_In);
90934
+ this.setMarkStyle(this._pictogramMark, graphicAttributeTransform.group(root.attributes), 'normal', exports.AttributeLevel.Built_In);
90947
90935
  if (root.transform) {
90948
90936
  this.setMarkStyle(this._pictogramMark, {
90949
90937
  postMatrix: () => root.transform
90950
- }, 'normal', AttributeLevel.Built_In);
90938
+ }, 'normal', exports.AttributeLevel.Built_In);
90951
90939
  }
90952
90940
  if (viewBoxRect) {
90953
90941
  this._pictogramMark.setMarkConfig({
@@ -90961,17 +90949,17 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
90961
90949
  const mark = this._idToMark.get(_uniqueId);
90962
90950
  const valid = this._validElement(element);
90963
90951
  if (mark) {
90964
- this.setMarkStyle(mark, { keepStrokeScale: true }, 'normal', AttributeLevel.Built_In);
90952
+ this.setMarkStyle(mark, { keepStrokeScale: true }, 'normal', exports.AttributeLevel.Built_In);
90965
90953
  if (valid) {
90966
90954
  this.initMarkStyleWithSpec(mark, merge$1({}, this._spec.pictogram, this._spec[mark.name]));
90967
- this.setMarkStyle(mark, attributes, 'normal', AttributeLevel.Series);
90955
+ this.setMarkStyle(mark, attributes, 'normal', exports.AttributeLevel.Series);
90968
90956
  mark.setPostProcess('fill', (result, datum) => {
90969
90957
  return isValid$1(result) ? result : this._spec.defaultFillColor;
90970
90958
  });
90971
90959
  }
90972
90960
  else {
90973
90961
  mark.setMarkConfig({ interactive: false });
90974
- this.setMarkStyle(mark, attributes, 'normal', AttributeLevel.Built_In);
90962
+ this.setMarkStyle(mark, attributes, 'normal', exports.AttributeLevel.Built_In);
90975
90963
  }
90976
90964
  }
90977
90965
  }
@@ -92729,8 +92717,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
92729
92717
  'link',
92730
92718
  'emphasis',
92731
92719
  'inverse',
92732
- 'overflow',
92733
- 'customLayout'
92720
+ 'overflow'
92734
92721
  ]);
92735
92722
  return series;
92736
92723
  }
@@ -97025,7 +97012,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
97025
97012
  this.layout.setLayoutRect({
97026
97013
  [sizeKey]: isShown ? this[`_${sizeKey}`] : 0
97027
97014
  }, {
97028
- [sizeKey]: AttributeLevel.Built_In
97015
+ [sizeKey]: exports.AttributeLevel.Built_In
97029
97016
  });
97030
97017
  }
97031
97018
  onLayoutStart(layoutRect, viewRect, ctx) {
@@ -100322,7 +100309,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
100322
100309
  styleHandler === null || styleHandler === void 0 ? void 0 : styleHandler.call(series, labelMark, labelSpec);
100323
100310
  }
100324
100311
  if ((_b = (_a = labelMark.stateStyle) === null || _a === void 0 ? void 0 : _a.normal) === null || _b === void 0 ? void 0 : _b.lineWidth) {
100325
- labelMark.setAttribute('stroke', series.getColorAttribute(), 'normal', AttributeLevel.Base_Series);
100312
+ labelMark.setAttribute('stroke', series.getColorAttribute(), 'normal', exports.AttributeLevel.Base_Series);
100326
100313
  }
100327
100314
  });
100328
100315
  });
@@ -100514,7 +100501,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
100514
100501
  text: (datum) => {
100515
100502
  return datum[STACK_FIELD_TOTAL];
100516
100503
  }
100517
- }, 'normal', AttributeLevel.Default);
100504
+ }, 'normal', exports.AttributeLevel.Default);
100518
100505
  const series = this._getSeries();
100519
100506
  (_a = series.initTotalLabelMarkStyle) === null || _a === void 0 ? void 0 : _a.call(series, this._textMark);
100520
100507
  }
@@ -100904,8 +100891,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
100904
100891
  this._option.getAllSeries().forEach((s) => {
100905
100892
  s.getActiveMarks().forEach((m) => {
100906
100893
  if (m) {
100907
- s.setMarkStyle(m, Object.assign({}, inBrushMarkAttr), IN_BRUSH_STATE, AttributeLevel.Series);
100908
- s.setMarkStyle(m, Object.assign({}, outOfBrushMarkAttr), OUT_BRUSH_STATE, AttributeLevel.Series);
100894
+ s.setMarkStyle(m, Object.assign({}, inBrushMarkAttr), IN_BRUSH_STATE, exports.AttributeLevel.Series);
100895
+ s.setMarkStyle(m, Object.assign({}, outOfBrushMarkAttr), OUT_BRUSH_STATE, exports.AttributeLevel.Series);
100909
100896
  }
100910
100897
  });
100911
100898
  });
@@ -104765,6 +104752,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
104765
104752
  exports.LineSeries = LineSeries;
104766
104753
  exports.LinearProgressChart = LinearProgressChart;
104767
104754
  exports.LinearProgressSeries = LinearProgressSeries;
104755
+ exports.LinkPathMark = LinkPathMark;
104768
104756
  exports.LinkSeries = LinkSeries;
104769
104757
  exports.LiquidChart = LiquidChart;
104770
104758
  exports.LiquidSeries = LiquidSeries;
@@ -104828,6 +104816,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
104828
104816
  exports.STACK_FIELD_TOTAL_PERCENT = STACK_FIELD_TOTAL_PERCENT;
104829
104817
  exports.STACK_FIELD_TOTAL_TOP = STACK_FIELD_TOTAL_TOP;
104830
104818
  exports.SankeyChart = SankeyChart;
104819
+ exports.SankeyChartSpecTransformer = SankeyChartSpecTransformer;
104831
104820
  exports.SankeySeries = SankeySeries;
104832
104821
  exports.ScatterChart = ScatterChart;
104833
104822
  exports.ScatterSeries = ScatterSeries;
@@ -104931,6 +104920,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
104931
104920
  exports.registerContinuousLegend = registerContinuousLegend;
104932
104921
  exports.registerCorrelationChart = registerCorrelationChart;
104933
104922
  exports.registerCustomMark = registerCustomMark;
104923
+ exports.registerDataSetInstanceParser = registerDataSetInstanceParser;
104924
+ exports.registerDataSetInstanceTransform = registerDataSetInstanceTransform;
104934
104925
  exports.registerDataZoom = registerDataZoom;
104935
104926
  exports.registerDiscreteLegend = registerDiscreteLegend;
104936
104927
  exports.registerDomTooltipHandler = registerDomTooltipHandler;
@@ -104965,6 +104956,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
104965
104956
  exports.registerLineSeries = registerLineSeries;
104966
104957
  exports.registerLinearProgressChart = registerLinearProgressChart;
104967
104958
  exports.registerLinearProgressSeries = registerLinearProgressSeries;
104959
+ exports.registerLinkPathMark = registerLinkPathMark;
104968
104960
  exports.registerLinkSeries = registerLinkSeries;
104969
104961
  exports.registerLiquidChart = registerLiquidChart;
104970
104962
  exports.registerLiquidSeries = registerLiquidSeries;