@visactor/vchart 1.13.21-alpha.0 → 1.13.21-alpha.2
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.
- package/build/es5/index.js +2 -2
- package/build/index.es.js +326 -317
- package/build/index.js +472 -458
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/chart/index.d.ts +2 -2
- package/cjs/chart/index.js +7 -2
- package/cjs/chart/index.js.map +1 -1
- package/cjs/chart/sankey/sankey-transformer.js +1 -1
- package/cjs/chart/sankey/sankey-transformer.js.map +1 -1
- package/cjs/constant/funnel.js +1 -2
- package/cjs/constant/sunburst.js +2 -1
- package/cjs/core/index.d.ts +1 -1
- package/cjs/core/index.js +1 -1
- package/cjs/core/index.js.map +1 -1
- package/cjs/core/interface.js +1 -2
- package/cjs/core/vchart.js +2 -1
- package/cjs/index.d.ts +2 -0
- package/cjs/index.js +2 -1
- package/cjs/index.js.map +1 -1
- package/cjs/mark/index.d.ts +3 -2
- package/cjs/mark/index.js +15 -1
- package/cjs/mark/index.js.map +1 -1
- package/cjs/series/sankey/interface.d.ts +1 -0
- package/cjs/series/sankey/interface.js.map +1 -1
- package/cjs/series/sankey/sankey.d.ts +7 -7
- package/cjs/series/sankey/sankey.js +167 -163
- package/cjs/series/sankey/sankey.js.map +1 -1
- package/esm/chart/index.d.ts +2 -2
- package/esm/chart/index.js +2 -2
- package/esm/chart/index.js.map +1 -1
- package/esm/chart/sankey/sankey-transformer.js +1 -1
- package/esm/chart/sankey/sankey-transformer.js.map +1 -1
- package/esm/constant/funnel.js +1 -2
- package/esm/constant/sunburst.js +2 -1
- package/esm/core/index.d.ts +1 -1
- package/esm/core/index.js +1 -1
- package/esm/core/index.js.map +1 -1
- package/esm/core/interface.js +1 -2
- package/esm/core/vchart.js +2 -1
- package/esm/index.d.ts +2 -0
- package/esm/index.js +4 -0
- package/esm/index.js.map +1 -1
- package/esm/mark/index.d.ts +3 -2
- package/esm/mark/index.js +4 -2
- package/esm/mark/index.js.map +1 -1
- package/esm/series/sankey/interface.d.ts +1 -0
- package/esm/series/sankey/interface.js.map +1 -1
- package/esm/series/sankey/sankey.d.ts +7 -7
- package/esm/series/sankey/sankey.js +166 -162
- package/esm/series/sankey/sankey.js.map +1 -1
- package/package.json +13 -13
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
|
-
|
|
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
|
}
|
|
@@ -64280,7 +64280,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
64280
64280
|
};
|
|
64281
64281
|
registerVChartCore();
|
|
64282
64282
|
|
|
64283
|
-
const version = "1.13.21-alpha.
|
|
64283
|
+
const version = "1.13.21-alpha.2";
|
|
64284
64284
|
|
|
64285
64285
|
const addVChartProperty = (data, op) => {
|
|
64286
64286
|
const context = op.beforeCall();
|
|
@@ -66116,7 +66116,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66116
66116
|
return mark.getAttribute(key, datum);
|
|
66117
66117
|
};
|
|
66118
66118
|
});
|
|
66119
|
-
this.setMarkStyle(mark, style, DEFAULT_SERIES_STYLE_NAME, AttributeLevel.User_SeriesStyle);
|
|
66119
|
+
this.setMarkStyle(mark, style, DEFAULT_SERIES_STYLE_NAME, exports.AttributeLevel.User_SeriesStyle);
|
|
66120
66120
|
});
|
|
66121
66121
|
}
|
|
66122
66122
|
afterInitMark() {
|
|
@@ -66125,7 +66125,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66125
66125
|
this.getMarks().forEach(m => {
|
|
66126
66126
|
var _a, _b;
|
|
66127
66127
|
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);
|
|
66128
|
+
m.setAttribute('stroke', this.getColorAttribute(), 'normal', exports.AttributeLevel.Base_Series);
|
|
66129
66129
|
}
|
|
66130
66130
|
});
|
|
66131
66131
|
}
|
|
@@ -67037,12 +67037,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
67037
67037
|
if (lineMark) {
|
|
67038
67038
|
this.setMarkStyle(lineMark, {
|
|
67039
67039
|
stroke: this.getColorAttribute()
|
|
67040
|
-
}, 'normal', AttributeLevel.Series);
|
|
67040
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
67041
67041
|
if (this._invalidType !== 'zero') {
|
|
67042
67042
|
this.setMarkStyle(lineMark, {
|
|
67043
67043
|
defined: this._getInvalidDefined.bind(this),
|
|
67044
67044
|
connectedType: this._getInvalidConnectType()
|
|
67045
|
-
}, 'normal', AttributeLevel.Series);
|
|
67045
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
67046
67046
|
}
|
|
67047
67047
|
this.event.on(ChartEvent.viewDataStatisticsUpdate, { filter: param => param.model === this }, () => {
|
|
67048
67048
|
this.encodeDefined(lineMark, 'defined');
|
|
@@ -67052,7 +67052,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
67052
67052
|
lineJoin: DEFAULT_CLOSE_STROKE_JOIN,
|
|
67053
67053
|
curveType: DEFAULT_LINEAR_INTERPOLATE,
|
|
67054
67054
|
closePath: true
|
|
67055
|
-
}, 'normal', AttributeLevel.Series);
|
|
67055
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
67056
67056
|
}
|
|
67057
67057
|
else {
|
|
67058
67058
|
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 +67063,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
67063
67063
|
: userCurveType;
|
|
67064
67064
|
this.setMarkStyle(lineMark, {
|
|
67065
67065
|
curveType
|
|
67066
|
-
}, 'normal', AttributeLevel.Built_In);
|
|
67066
|
+
}, 'normal', exports.AttributeLevel.Built_In);
|
|
67067
67067
|
}
|
|
67068
67068
|
this.setMarkStyle(lineMark, {
|
|
67069
67069
|
x: this.dataToPositionX.bind(this),
|
|
67070
67070
|
y: this.dataToPositionY.bind(this),
|
|
67071
67071
|
z: this._fieldZ ? this.dataToPositionZ.bind(this) : null
|
|
67072
|
-
}, 'normal', AttributeLevel.Series);
|
|
67072
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
67073
67073
|
}
|
|
67074
67074
|
return lineMark;
|
|
67075
67075
|
}
|
|
@@ -67143,7 +67143,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
67143
67143
|
}
|
|
67144
67144
|
this._symbolActiveMark.stateStyle[state][key] = {
|
|
67145
67145
|
style: null,
|
|
67146
|
-
level: AttributeLevel.Series,
|
|
67146
|
+
level: exports.AttributeLevel.Series,
|
|
67147
67147
|
referer: symbolMark
|
|
67148
67148
|
};
|
|
67149
67149
|
}
|
|
@@ -67161,7 +67161,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
67161
67161
|
}
|
|
67162
67162
|
this.setMarkStyle(symbolMark, {
|
|
67163
67163
|
fill: this.getColorAttribute()
|
|
67164
|
-
}, 'normal', AttributeLevel.Series);
|
|
67164
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
67165
67165
|
this.setMarkStyle(symbolMark, {
|
|
67166
67166
|
x: (datum) => {
|
|
67167
67167
|
return this._invalidType !== 'zero' && !this._getInvalidDefined(datum)
|
|
@@ -67174,7 +67174,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
67174
67174
|
: this.dataToPositionY(datum);
|
|
67175
67175
|
},
|
|
67176
67176
|
z: this._fieldZ ? this.dataToPositionZ.bind(this) : null
|
|
67177
|
-
}, 'normal', AttributeLevel.Series);
|
|
67177
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
67178
67178
|
}
|
|
67179
67179
|
_initSymbolActiveMarkAlone() {
|
|
67180
67180
|
var _a, _b;
|
|
@@ -67211,7 +67211,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
67211
67211
|
if (this._invalidType !== 'zero') {
|
|
67212
67212
|
this.setMarkStyle(labelMark, {
|
|
67213
67213
|
visible: this._getInvalidDefined.bind(this)
|
|
67214
|
-
}, 'normal', AttributeLevel.Series);
|
|
67214
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
67215
67215
|
}
|
|
67216
67216
|
this.event.on(ChartEvent.viewDataStatisticsUpdate, { filter: param => param.model === this }, () => {
|
|
67217
67217
|
this.encodeDefined(labelMark, 'visible');
|
|
@@ -67240,13 +67240,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
67240
67240
|
if (((_b = (_a = mark.stateStyle.normal) === null || _a === void 0 ? void 0 : _a[attr]) === null || _b === void 0 ? void 0 : _b.style) === true) {
|
|
67241
67241
|
return;
|
|
67242
67242
|
}
|
|
67243
|
-
this.setMarkStyle(mark, { [attr]: true }, 'normal', AttributeLevel.Series);
|
|
67243
|
+
this.setMarkStyle(mark, { [attr]: true }, 'normal', exports.AttributeLevel.Series);
|
|
67244
67244
|
}
|
|
67245
67245
|
else {
|
|
67246
67246
|
if (((_d = (_c = mark.stateStyle.normal) === null || _c === void 0 ? void 0 : _c[attr]) === null || _d === void 0 ? void 0 : _d.style) !== true) {
|
|
67247
67247
|
return;
|
|
67248
67248
|
}
|
|
67249
|
-
this.setMarkStyle(mark, { [attr]: this._getInvalidDefined.bind(this) }, 'normal', AttributeLevel.Series);
|
|
67249
|
+
this.setMarkStyle(mark, { [attr]: this._getInvalidDefined.bind(this) }, 'normal', exports.AttributeLevel.Series);
|
|
67250
67250
|
}
|
|
67251
67251
|
if (mark.getProduct()) {
|
|
67252
67252
|
mark.compileEncode();
|
|
@@ -72608,7 +72608,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
72608
72608
|
y1: this.dataToPositionY.bind(this),
|
|
72609
72609
|
z: this._fieldZ ? this.dataToPositionZ.bind(this) : null,
|
|
72610
72610
|
orient: this._direction
|
|
72611
|
-
}, 'normal', AttributeLevel.Series);
|
|
72611
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
72612
72612
|
}
|
|
72613
72613
|
else {
|
|
72614
72614
|
this.setMarkStyle(this._areaMark, {
|
|
@@ -72620,26 +72620,26 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
72620
72620
|
},
|
|
72621
72621
|
y: this.dataToPositionY.bind(this),
|
|
72622
72622
|
z: this._fieldZ ? this.dataToPositionZ.bind(this) : null
|
|
72623
|
-
}, 'normal', AttributeLevel.Series);
|
|
72623
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
72624
72624
|
}
|
|
72625
72625
|
this.setMarkStyle(areaMark, {
|
|
72626
72626
|
fill: isAreaVisible ? this.getColorAttribute() : false,
|
|
72627
72627
|
stroke: isLineVisible ? this.getColorAttribute() : false
|
|
72628
|
-
}, 'normal', AttributeLevel.Series);
|
|
72628
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
72629
72629
|
if (this._invalidType !== 'zero') {
|
|
72630
72630
|
this.setMarkStyle(areaMark, {
|
|
72631
72631
|
defined: this._getInvalidDefined.bind(this),
|
|
72632
72632
|
connectedType: this._getInvalidConnectType()
|
|
72633
|
-
}, 'normal', AttributeLevel.Series);
|
|
72633
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
72634
72634
|
}
|
|
72635
72635
|
if (this.getStack()) {
|
|
72636
72636
|
this.setMarkStyle(areaMark, {
|
|
72637
72637
|
zIndex: (datum) => -datum[STACK_FIELD_END]
|
|
72638
|
-
}, 'normal', AttributeLevel.Series);
|
|
72638
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
72639
72639
|
}
|
|
72640
72640
|
this.setMarkStyle(areaMark, {
|
|
72641
72641
|
curveType
|
|
72642
|
-
}, 'normal', AttributeLevel.Built_In);
|
|
72642
|
+
}, 'normal', exports.AttributeLevel.Built_In);
|
|
72643
72643
|
Object.keys(areaMark.stateStyle).forEach(state => {
|
|
72644
72644
|
if (areaMark.stateStyle[state].stroke) {
|
|
72645
72645
|
areaMark.setPostProcess('stroke', result => {
|
|
@@ -73071,7 +73071,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
73071
73071
|
if (this._barMark) {
|
|
73072
73072
|
this.setMarkStyle(this._barMark, {
|
|
73073
73073
|
fill: this.getColorAttribute()
|
|
73074
|
-
}, 'normal', AttributeLevel.Series);
|
|
73074
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
73075
73075
|
}
|
|
73076
73076
|
}
|
|
73077
73077
|
initLabelMarkStyle(textMark) {
|
|
@@ -73294,7 +73294,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
73294
73294
|
height: () => this._getBarWidth(this._yAxisHelper),
|
|
73295
73295
|
width: () => undefined,
|
|
73296
73296
|
y1: () => undefined
|
|
73297
|
-
}, 'normal', AttributeLevel.Series);
|
|
73297
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
73298
73298
|
}
|
|
73299
73299
|
else {
|
|
73300
73300
|
this.setMarkStyle(this._barMark, {
|
|
@@ -73304,7 +73304,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
73304
73304
|
width: () => this._getBarWidth(this._xAxisHelper),
|
|
73305
73305
|
x1: () => undefined,
|
|
73306
73306
|
height: () => undefined
|
|
73307
|
-
}, 'normal', AttributeLevel.Series);
|
|
73307
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
73308
73308
|
}
|
|
73309
73309
|
this._initStackBarMarkStyle();
|
|
73310
73310
|
this._initBandBarBackgroundMarkStyle();
|
|
@@ -73380,8 +73380,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
73380
73380
|
y: (datum) => valueInScaleRange(this._dataToPosY(datum) - this._getBarWidth(this._yAxisHelper) / 2, yScale, true),
|
|
73381
73381
|
height: (datum) => this._getBarWidth(this._yAxisHelper)
|
|
73382
73382
|
};
|
|
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);
|
|
73383
|
+
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);
|
|
73384
|
+
this.setMarkStyle(this._barBackgroundMark, Object.assign({ x: () => this._getBarBackgroundXStart(xScale), x1: () => this._getBarBackgroundXEnd(xScale) }, yChannels), 'normal', exports.AttributeLevel.Series);
|
|
73385
73385
|
}
|
|
73386
73386
|
else {
|
|
73387
73387
|
const xChannels = isValid$1(this._fieldX2)
|
|
@@ -73393,8 +73393,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
73393
73393
|
x: (datum) => valueInScaleRange(this._dataToPosX(datum) - this._getBarWidth(this._xAxisHelper) / 2, xScale, true),
|
|
73394
73394
|
width: (datum) => this._getBarWidth(this._xAxisHelper)
|
|
73395
73395
|
};
|
|
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);
|
|
73396
|
+
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);
|
|
73397
|
+
this.setMarkStyle(this._barBackgroundMark, Object.assign(Object.assign({}, xChannels), { y: () => this._getBarBackgroundYStart(yScale), y1: () => this._getBarBackgroundYEnd(yScale) }), 'normal', exports.AttributeLevel.Series);
|
|
73398
73398
|
}
|
|
73399
73399
|
}
|
|
73400
73400
|
_initBandBarBackgroundMarkStyle() {
|
|
@@ -73414,7 +73414,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
73414
73414
|
height: () => this._getBarWidth(this._yAxisHelper, scaleDepth),
|
|
73415
73415
|
width: () => undefined,
|
|
73416
73416
|
y1: () => undefined
|
|
73417
|
-
}, 'normal', AttributeLevel.Series);
|
|
73417
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
73418
73418
|
}
|
|
73419
73419
|
else {
|
|
73420
73420
|
this.setMarkStyle(this._barBackgroundMark, {
|
|
@@ -73424,7 +73424,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
73424
73424
|
width: () => this._getBarWidth(this._xAxisHelper, scaleDepth),
|
|
73425
73425
|
x1: () => undefined,
|
|
73426
73426
|
height: () => undefined
|
|
73427
|
-
}, 'normal', AttributeLevel.Series);
|
|
73427
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
73428
73428
|
}
|
|
73429
73429
|
}
|
|
73430
73430
|
initAnimation() {
|
|
@@ -73908,16 +73908,16 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
73908
73908
|
fill: this.getColorAttribute(),
|
|
73909
73909
|
size: isNumber$1(this._size) || isFunction$1(this._size) ? this._size : SCATTER_DEFAULT_SIZE,
|
|
73910
73910
|
symbolType: isString$1(this._shape) || isFunction$1(this._shape) ? this._shape : SCATTER_DEFAULT_SHAPE
|
|
73911
|
-
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
|
|
73911
|
+
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
|
|
73912
73912
|
if (isValid$1(this._sizeField) || isValid$1(this._size)) {
|
|
73913
73913
|
this.setMarkStyle(symbolMark, {
|
|
73914
73914
|
size: this.getSizeAttribute(this._sizeField, this._size)
|
|
73915
|
-
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.User_Mark);
|
|
73915
|
+
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.User_Mark);
|
|
73916
73916
|
}
|
|
73917
73917
|
if (isValid$1(this._shapeField) || isValid$1(this._shape)) {
|
|
73918
73918
|
this.setMarkStyle(symbolMark, {
|
|
73919
73919
|
symbolType: this.getShapeAttribute(this._shapeField, this._shape)
|
|
73920
|
-
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.User_Mark);
|
|
73920
|
+
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.User_Mark);
|
|
73921
73921
|
}
|
|
73922
73922
|
}
|
|
73923
73923
|
initTooltip() {
|
|
@@ -73929,10 +73929,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
73929
73929
|
const fields = [this.getDimensionField()[0], this.getStackValueField()];
|
|
73930
73930
|
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
73931
|
if (this._invalidType === 'zero' || allValid) {
|
|
73932
|
-
this.setMarkStyle(this._symbolMark, { visible: true }, 'normal', AttributeLevel.Series);
|
|
73932
|
+
this.setMarkStyle(this._symbolMark, { visible: true }, 'normal', exports.AttributeLevel.Series);
|
|
73933
73933
|
}
|
|
73934
73934
|
else {
|
|
73935
|
-
this.setMarkStyle(this._symbolMark, { visible: this._getInvalidDefined.bind(this) }, 'normal', AttributeLevel.Series);
|
|
73935
|
+
this.setMarkStyle(this._symbolMark, { visible: this._getInvalidDefined.bind(this) }, 'normal', exports.AttributeLevel.Series);
|
|
73936
73936
|
}
|
|
73937
73937
|
if (this._symbolMark.getProduct()) {
|
|
73938
73938
|
this._symbolMark.compileEncode();
|
|
@@ -73949,11 +73949,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
73949
73949
|
return datum[this.getStackValueField()];
|
|
73950
73950
|
},
|
|
73951
73951
|
z: this._fieldZ ? this.dataToPositionZ.bind(this) : null
|
|
73952
|
-
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
|
|
73952
|
+
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
|
|
73953
73953
|
if (this._invalidType !== 'zero') {
|
|
73954
73954
|
this.setMarkStyle(labelMark, {
|
|
73955
73955
|
visible: this._getInvalidDefined.bind(this)
|
|
73956
|
-
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
|
|
73956
|
+
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
|
|
73957
73957
|
}
|
|
73958
73958
|
}
|
|
73959
73959
|
handleZoom(e) {
|
|
@@ -75310,7 +75310,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
75310
75310
|
return (_d = this._spec) === null || _d === void 0 ? void 0 : _d.defaultFillColor;
|
|
75311
75311
|
},
|
|
75312
75312
|
path: this.getPath.bind(this)
|
|
75313
|
-
}, 'normal', AttributeLevel.Series);
|
|
75313
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
75314
75314
|
pathMark.setPostProcess('fill', result => {
|
|
75315
75315
|
if (!isValid$1(result)) {
|
|
75316
75316
|
return this._spec.defaultFillColor;
|
|
@@ -75319,7 +75319,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
75319
75319
|
});
|
|
75320
75320
|
this.setMarkStyle(pathMark, {
|
|
75321
75321
|
smoothScale: true
|
|
75322
|
-
}, 'normal', AttributeLevel.Built_In);
|
|
75322
|
+
}, 'normal', exports.AttributeLevel.Built_In);
|
|
75323
75323
|
}
|
|
75324
75324
|
}
|
|
75325
75325
|
initLabelMarkStyle(labelMark) {
|
|
@@ -76433,7 +76433,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
76433
76433
|
return this.totalPositionY(datum, 'lastIndex', 1);
|
|
76434
76434
|
},
|
|
76435
76435
|
y1: (datum) => this.totalPositionY(datum, 'index', 0)
|
|
76436
|
-
}, 'normal', AttributeLevel.Series);
|
|
76436
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
76437
76437
|
}
|
|
76438
76438
|
else {
|
|
76439
76439
|
this.setMarkStyle(this._leaderLineMark, {
|
|
@@ -76447,7 +76447,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
76447
76447
|
x1: (datum) => this.totalPositionX(datum, 'index', 0),
|
|
76448
76448
|
y: (datum) => this.totalPositionY(datum, 'lastEnd', 0),
|
|
76449
76449
|
y1: (datum) => this.totalPositionY(datum, datum.isTotal ? 'end' : 'start', 0)
|
|
76450
|
-
}, 'normal', AttributeLevel.Series);
|
|
76450
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
76451
76451
|
}
|
|
76452
76452
|
}
|
|
76453
76453
|
}
|
|
@@ -76764,7 +76764,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
76764
76764
|
};
|
|
76765
76765
|
const boxPlotMarkStyles = this._direction === "horizontal"
|
|
76766
76766
|
? 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);
|
|
76767
|
+
this.setMarkStyle(boxPlotMark, boxPlotMarkStyles, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
|
|
76768
76768
|
}
|
|
76769
76769
|
const outlierMark = this._outlierMark;
|
|
76770
76770
|
if (outlierMark) {
|
|
@@ -76772,7 +76772,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
76772
76772
|
fill: (_d = (_c = this._outliersStyle) === null || _c === void 0 ? void 0 : _c.fill) !== null && _d !== void 0 ? _d : this.getColorAttribute(),
|
|
76773
76773
|
size: isNumber$1((_e = this._outliersStyle) === null || _e === void 0 ? void 0 : _e.size) ? this._outliersStyle.size : DEFAULT_OUTLIER_SIZE,
|
|
76774
76774
|
symbolType: 'circle'
|
|
76775
|
-
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
|
|
76775
|
+
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
|
|
76776
76776
|
}
|
|
76777
76777
|
}
|
|
76778
76778
|
initBoxPlotMarkStyle() {
|
|
@@ -76798,7 +76798,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
76798
76798
|
max: (datum) => valueInScaleRange(dataToPosition(this.getDatumPositionValues(datum, this._maxField), {
|
|
76799
76799
|
bandPosition: this._bandPosition
|
|
76800
76800
|
}), scale)
|
|
76801
|
-
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
|
|
76801
|
+
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
|
|
76802
76802
|
}
|
|
76803
76803
|
const outlierMark = this._outlierMark;
|
|
76804
76804
|
if (outlierMark && axisHelper) {
|
|
@@ -76817,7 +76817,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
76817
76817
|
bandPosition: this._bandPosition
|
|
76818
76818
|
}), scale)
|
|
76819
76819
|
};
|
|
76820
|
-
this.setMarkStyle(outlierMark, outlierMarkPositionChannel, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
|
|
76820
|
+
this.setMarkStyle(outlierMark, outlierMarkPositionChannel, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
|
|
76821
76821
|
}
|
|
76822
76822
|
}
|
|
76823
76823
|
initData() {
|
|
@@ -77111,7 +77111,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
77111
77111
|
}
|
|
77112
77112
|
return (_y + _y1) / 2;
|
|
77113
77113
|
}
|
|
77114
|
-
}, 'normal', AttributeLevel.Series);
|
|
77114
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
77115
77115
|
}
|
|
77116
77116
|
|
|
77117
77117
|
class RangeColumnSeriesTooltipHelper extends BaseSeriesTooltipHelper {
|
|
@@ -77389,7 +77389,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
77389
77389
|
bandPosition: this._bandPosition
|
|
77390
77390
|
});
|
|
77391
77391
|
}
|
|
77392
|
-
}, 'normal', AttributeLevel.Series);
|
|
77392
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
77393
77393
|
}
|
|
77394
77394
|
else {
|
|
77395
77395
|
this.setMarkStyle(this._areaMark, {
|
|
@@ -77402,9 +77402,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
77402
77402
|
bandPosition: this._bandPosition
|
|
77403
77403
|
});
|
|
77404
77404
|
}
|
|
77405
|
-
}, 'normal', AttributeLevel.Series);
|
|
77405
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
77406
77406
|
}
|
|
77407
|
-
this.setMarkStyle(areaMark, { stroke: false }, 'normal', AttributeLevel.Series);
|
|
77407
|
+
this.setMarkStyle(areaMark, { stroke: false }, 'normal', exports.AttributeLevel.Series);
|
|
77408
77408
|
}
|
|
77409
77409
|
}
|
|
77410
77410
|
initTooltip() {
|
|
@@ -78174,14 +78174,14 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78174
78174
|
};
|
|
78175
78175
|
const pieMark = this._pieMark;
|
|
78176
78176
|
if (pieMark) {
|
|
78177
|
-
this.setMarkStyle(pieMark, initialStyle, 'normal', AttributeLevel.Series);
|
|
78177
|
+
this.setMarkStyle(pieMark, initialStyle, 'normal', exports.AttributeLevel.Series);
|
|
78178
78178
|
}
|
|
78179
78179
|
const emptyPieMark = this._emptyArcMark;
|
|
78180
78180
|
if (emptyPieMark) {
|
|
78181
78181
|
this.setMarkStyle(emptyPieMark, Object.assign(Object.assign({}, initialStyle), { visible: () => {
|
|
78182
78182
|
const data = this.getViewData().latestData;
|
|
78183
78183
|
return !data || !data.length;
|
|
78184
|
-
} }), 'normal', AttributeLevel.Series);
|
|
78184
|
+
} }), 'normal', exports.AttributeLevel.Series);
|
|
78185
78185
|
}
|
|
78186
78186
|
}
|
|
78187
78187
|
initInteraction() {
|
|
@@ -78197,12 +78197,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78197
78197
|
const pieSpec = this.getSpec()[mark.name];
|
|
78198
78198
|
if (pieSpec) {
|
|
78199
78199
|
for (const state in pieSpec.state || {}) {
|
|
78200
|
-
this.setMarkStyle(mark, this.generateRadiusStyle(pieSpec.state[state]), state, AttributeLevel.User_Mark);
|
|
78200
|
+
this.setMarkStyle(mark, this.generateRadiusStyle(pieSpec.state[state]), state, exports.AttributeLevel.User_Mark);
|
|
78201
78201
|
}
|
|
78202
78202
|
}
|
|
78203
78203
|
}
|
|
78204
78204
|
if (mark.name === 'emptyCircle') {
|
|
78205
|
-
this.setMarkStyle(mark, this.generateRadiusStyle(spec.style), 'normal', AttributeLevel.User_Mark);
|
|
78205
|
+
this.setMarkStyle(mark, this.generateRadiusStyle(spec.style), 'normal', exports.AttributeLevel.User_Mark);
|
|
78206
78206
|
}
|
|
78207
78207
|
}
|
|
78208
78208
|
initLabelMarkStyle(textMark) {
|
|
@@ -78434,7 +78434,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78434
78434
|
if (pieMark) {
|
|
78435
78435
|
this.setMarkStyle(pieMark, {
|
|
78436
78436
|
beta: () => this._angle3d
|
|
78437
|
-
}, 'normal', AttributeLevel.Series);
|
|
78437
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
78438
78438
|
}
|
|
78439
78439
|
}
|
|
78440
78440
|
initLabelMarkStyle(textMark, spec = {}) {
|
|
@@ -78442,7 +78442,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78442
78442
|
return;
|
|
78443
78443
|
}
|
|
78444
78444
|
super.initLabelMarkStyle(textMark);
|
|
78445
|
-
this.setMarkStyle(textMark, { support3d: true }, undefined, AttributeLevel.Mark);
|
|
78445
|
+
this.setMarkStyle(textMark, { support3d: true }, undefined, exports.AttributeLevel.Mark);
|
|
78446
78446
|
}
|
|
78447
78447
|
}
|
|
78448
78448
|
Pie3dSeries.type = exports.SeriesTypeEnum.pie3d;
|
|
@@ -79451,12 +79451,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79451
79451
|
fill: this.getColorAttribute(),
|
|
79452
79452
|
curveType: DEFAULT_LINEAR_INTERPOLATE,
|
|
79453
79453
|
closePath: true
|
|
79454
|
-
}, 'normal', AttributeLevel.Series);
|
|
79454
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
79455
79455
|
if (this._invalidType !== 'zero') {
|
|
79456
79456
|
this.setMarkStyle(areaMark, {
|
|
79457
79457
|
defined: this._getInvalidDefined.bind(this),
|
|
79458
79458
|
connectedType: this._getInvalidConnectType()
|
|
79459
|
-
}, 'normal', AttributeLevel.Series);
|
|
79459
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
79460
79460
|
}
|
|
79461
79461
|
this.event.on(ChartEvent.viewDataStatisticsUpdate, { filter: param => param.model === this }, () => {
|
|
79462
79462
|
this.encodeDefined(areaMark, 'defined');
|
|
@@ -79743,14 +79743,14 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79743
79743
|
y: 0,
|
|
79744
79744
|
width: 10000,
|
|
79745
79745
|
height: this._spec.clipHeight
|
|
79746
|
-
}, 'normal', AttributeLevel.Series);
|
|
79746
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
79747
79747
|
clipMark.setMarkConfig({ interactive: false, clip: true });
|
|
79748
79748
|
}
|
|
79749
79749
|
const containerMark = this._containerMark;
|
|
79750
79750
|
if (containerMark) {
|
|
79751
79751
|
this.setMarkStyle(containerMark, {
|
|
79752
79752
|
x: this._spec.leftAppendPadding
|
|
79753
|
-
}, 'normal', AttributeLevel.Series);
|
|
79753
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
79754
79754
|
containerMark.setMarkConfig({ interactive: false });
|
|
79755
79755
|
}
|
|
79756
79756
|
const gridBackgroundMark = this._gridBackgroundMark;
|
|
@@ -79762,7 +79762,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79762
79762
|
y1: this.dataToGridBackgroundPositionY1.bind(this),
|
|
79763
79763
|
fill: this._gridBackground.fill,
|
|
79764
79764
|
fillOpacity: this.dataToGridBackgroundOpacity.bind(this)
|
|
79765
|
-
}, 'normal', AttributeLevel.Series);
|
|
79765
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
79766
79766
|
}
|
|
79767
79767
|
const gridMark = this._gridMark;
|
|
79768
79768
|
if (gridMark) {
|
|
@@ -79772,7 +79772,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79772
79772
|
y: this.dataToPositionY.bind(this),
|
|
79773
79773
|
x1: this.getRegionRectRight.bind(this),
|
|
79774
79774
|
y1: this.dataToPositionY.bind(this)
|
|
79775
|
-
}, 'normal', AttributeLevel.Series);
|
|
79775
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
79776
79776
|
}
|
|
79777
79777
|
const dotMark = this._dotMark;
|
|
79778
79778
|
if (dotMark) {
|
|
@@ -79781,7 +79781,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79781
79781
|
y: this.dataToPositionY.bind(this),
|
|
79782
79782
|
fill: this.getDotColorAttribute(),
|
|
79783
79783
|
fillOpacity: this.dataToOpacity.bind(this)
|
|
79784
|
-
}, 'normal', AttributeLevel.Series);
|
|
79784
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
79785
79785
|
}
|
|
79786
79786
|
const titleMark = this._titleMark;
|
|
79787
79787
|
if (titleMark) {
|
|
@@ -79792,7 +79792,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79792
79792
|
},
|
|
79793
79793
|
x: this.getRegionRectLeft.bind(this),
|
|
79794
79794
|
y: this.dataToPositionY.bind(this)
|
|
79795
|
-
}, 'normal', AttributeLevel.Series);
|
|
79795
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
79796
79796
|
}
|
|
79797
79797
|
const subTitleMark = this._subTitleMark;
|
|
79798
79798
|
if (subTitleMark) {
|
|
@@ -79803,7 +79803,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79803
79803
|
},
|
|
79804
79804
|
x: this.getRegionRectLeft.bind(this),
|
|
79805
79805
|
y: this.dataToPositionY.bind(this)
|
|
79806
|
-
}, 'normal', AttributeLevel.Series);
|
|
79806
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
79807
79807
|
}
|
|
79808
79808
|
const symbolMark = this._symbolMark;
|
|
79809
79809
|
if (symbolMark) {
|
|
@@ -79811,7 +79811,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79811
79811
|
x: this.getRegionRectLeft.bind(this),
|
|
79812
79812
|
y: this.dataToPositionY.bind(this),
|
|
79813
79813
|
fill: this.getColorAttribute()
|
|
79814
|
-
}, 'normal', AttributeLevel.Series);
|
|
79814
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
79815
79815
|
}
|
|
79816
79816
|
}
|
|
79817
79817
|
dataToGridBackgroundPositionY(datum) {
|
|
@@ -79862,7 +79862,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79862
79862
|
const layoutOffsetX = (_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.leftAppendPadding) !== null && _b !== void 0 ? _b : 0;
|
|
79863
79863
|
this.setMarkStyle(this._clipMark, {
|
|
79864
79864
|
width: this.getLayoutRect().width + layoutOffsetX
|
|
79865
|
-
}, 'normal', AttributeLevel.Series);
|
|
79865
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
79866
79866
|
}
|
|
79867
79867
|
getDefaultColorDomain() {
|
|
79868
79868
|
var _a, _b;
|
|
@@ -80104,7 +80104,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
80104
80104
|
y: 0,
|
|
80105
80105
|
width: 10000,
|
|
80106
80106
|
height: this._spec.clipHeight
|
|
80107
|
-
}, 'normal', AttributeLevel.Series);
|
|
80107
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
80108
80108
|
clipMark.setMarkConfig({ interactive: false, clip: true });
|
|
80109
80109
|
}
|
|
80110
80110
|
const containerMark = this._containerMark;
|
|
@@ -80112,7 +80112,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
80112
80112
|
this.setMarkStyle(containerMark, {
|
|
80113
80113
|
x: this._spec.leftAppendPadding,
|
|
80114
80114
|
width: this.getLayoutRect().width
|
|
80115
|
-
}, 'normal', AttributeLevel.Series);
|
|
80115
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
80116
80116
|
containerMark.setMarkConfig({ interactive: false });
|
|
80117
80117
|
}
|
|
80118
80118
|
const linkMark = this._linkMark;
|
|
@@ -80124,7 +80124,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
80124
80124
|
y: this.dataToPositionYFrom.bind(this),
|
|
80125
80125
|
x1: this.dataToPositionXTo.bind(this),
|
|
80126
80126
|
y1: this.dataToPositionYTo.bind(this)
|
|
80127
|
-
}, 'normal', AttributeLevel.Series);
|
|
80127
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
80128
80128
|
}
|
|
80129
80129
|
const arrowMark = this._arrowMark;
|
|
80130
80130
|
if (arrowMark) {
|
|
@@ -80138,7 +80138,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
80138
80138
|
symbolType: (datum) => {
|
|
80139
80139
|
return this.isPositionYFromHigher(datum) ? 'triangleDown' : 'triangleUp';
|
|
80140
80140
|
}
|
|
80141
|
-
}, 'normal', AttributeLevel.Series);
|
|
80141
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
80142
80142
|
}
|
|
80143
80143
|
}
|
|
80144
80144
|
afterInitMark() {
|
|
@@ -80416,7 +80416,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
80416
80416
|
this.setMarkStyle(groupMark, {
|
|
80417
80417
|
x: 0,
|
|
80418
80418
|
y: 0
|
|
80419
|
-
}, 'normal', AttributeLevel.Series);
|
|
80419
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
80420
80420
|
this._arcGroupMark.setMarkConfig({
|
|
80421
80421
|
interactive: false,
|
|
80422
80422
|
zIndex: this.layoutZIndex,
|
|
@@ -80606,7 +80606,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
80606
80606
|
fill: this.getColorAttribute(),
|
|
80607
80607
|
zIndex: 200,
|
|
80608
80608
|
forceShowCap: true
|
|
80609
|
-
}, 'normal', AttributeLevel.Series);
|
|
80609
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
80610
80610
|
}
|
|
80611
80611
|
}
|
|
80612
80612
|
initInteraction() {
|
|
@@ -80668,7 +80668,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
80668
80668
|
cornerRadius: this._spec.cornerRadius,
|
|
80669
80669
|
fill: this.getColorAttribute(),
|
|
80670
80670
|
zIndex: 100
|
|
80671
|
-
}, 'normal', AttributeLevel.Series);
|
|
80671
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
80672
80672
|
}
|
|
80673
80673
|
}
|
|
80674
80674
|
initAnimation() {
|
|
@@ -80857,7 +80857,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
80857
80857
|
width: this._spec.bandWidth - leftPadding - rightPadding,
|
|
80858
80858
|
cornerRadius: this._spec.cornerRadius,
|
|
80859
80859
|
fill: this.getColorAttribute()
|
|
80860
|
-
}, 'normal', AttributeLevel.Series);
|
|
80860
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
80861
80861
|
}
|
|
80862
80862
|
else {
|
|
80863
80863
|
const progress = this._spec.progress || {};
|
|
@@ -80879,7 +80879,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
80879
80879
|
},
|
|
80880
80880
|
cornerRadius: this._spec.cornerRadius,
|
|
80881
80881
|
fill: this.getColorAttribute()
|
|
80882
|
-
}, 'normal', AttributeLevel.Series);
|
|
80882
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
80883
80883
|
}
|
|
80884
80884
|
}
|
|
80885
80885
|
}
|
|
@@ -80906,7 +80906,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
80906
80906
|
width: this._spec.bandWidth,
|
|
80907
80907
|
height: () => this._scaleY.range()[0],
|
|
80908
80908
|
cornerRadius: this._spec.cornerRadius
|
|
80909
|
-
}, 'normal', AttributeLevel.Series);
|
|
80909
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
80910
80910
|
}
|
|
80911
80911
|
else {
|
|
80912
80912
|
this.setMarkStyle(trackMark, {
|
|
@@ -80919,7 +80919,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
80919
80919
|
height: this._spec.bandWidth,
|
|
80920
80920
|
width: () => this._scaleX.range()[1],
|
|
80921
80921
|
cornerRadius: this._spec.cornerRadius
|
|
80922
|
-
}, 'normal', AttributeLevel.Series);
|
|
80922
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
80923
80923
|
}
|
|
80924
80924
|
}
|
|
80925
80925
|
}
|
|
@@ -81096,7 +81096,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
81096
81096
|
background: () => {
|
|
81097
81097
|
return this._maskCanvas;
|
|
81098
81098
|
}
|
|
81099
|
-
}, 'normal', AttributeLevel.Series);
|
|
81099
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
81100
81100
|
}
|
|
81101
81101
|
}
|
|
81102
81102
|
initMarkStyleOfWord(wordMark, wordSpec, colorHexField, seriesField, isFillingWord) {
|
|
@@ -81116,12 +81116,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
81116
81116
|
fontStyle: (datum) => datum.fontStyle,
|
|
81117
81117
|
angle: (datum) => datum.angle,
|
|
81118
81118
|
visible: (datum) => datum.visible
|
|
81119
|
-
}, 'normal', AttributeLevel.Series);
|
|
81119
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
81120
81120
|
this.setMarkStyle(wordMark, {
|
|
81121
81121
|
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
81122
|
fontWeight: (datum) => datum.fontWeight,
|
|
81123
81123
|
fontFamily: (datum) => datum.fontFamily
|
|
81124
|
-
}, 'normal', AttributeLevel.User_Mark);
|
|
81124
|
+
}, 'normal', exports.AttributeLevel.User_Mark);
|
|
81125
81125
|
}
|
|
81126
81126
|
initTooltip() {
|
|
81127
81127
|
super.initTooltip();
|
|
@@ -83307,7 +83307,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
83307
83307
|
if (wordMark) {
|
|
83308
83308
|
this.setMarkStyle(wordMark, {
|
|
83309
83309
|
z: (datum) => { var _a; return (_a = datum.z) !== null && _a !== void 0 ? _a : 0; }
|
|
83310
|
-
}, 'normal', AttributeLevel.Series);
|
|
83310
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
83311
83311
|
}
|
|
83312
83312
|
}
|
|
83313
83313
|
initAnimation() {
|
|
@@ -83632,11 +83632,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
83632
83632
|
points: (datum) => this.getPoints(datum),
|
|
83633
83633
|
visible: (datum) => isValid$1(datum[this._valueField]),
|
|
83634
83634
|
fill: this.getColorAttribute()
|
|
83635
|
-
}, 'normal', AttributeLevel.Series);
|
|
83635
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
83636
83636
|
}
|
|
83637
83637
|
const funnelTransformMark = this._funnelTransformMark;
|
|
83638
83638
|
if (funnelTransformMark) {
|
|
83639
|
-
this.setMarkStyle(funnelTransformMark, { points: (datum) => this.getPoints(datum) }, 'normal', AttributeLevel.Series);
|
|
83639
|
+
this.setMarkStyle(funnelTransformMark, { points: (datum) => this.getPoints(datum) }, 'normal', exports.AttributeLevel.Series);
|
|
83640
83640
|
}
|
|
83641
83641
|
const outerLabelMark = this._funnelOuterLabelMark.label;
|
|
83642
83642
|
if (outerLabelMark) {
|
|
@@ -83649,13 +83649,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
83649
83649
|
maxLineWidth: (datum) => this._computeOuterLabelLimit(datum),
|
|
83650
83650
|
width: 0,
|
|
83651
83651
|
height: 0
|
|
83652
|
-
}, 'normal', AttributeLevel.Series);
|
|
83652
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
83653
83653
|
if (isFunction$1(this._spec.outerLabel.formatMethod)) {
|
|
83654
83654
|
this.setMarkStyle(outerLabelMark, {
|
|
83655
83655
|
text: (datum) => {
|
|
83656
83656
|
return this._spec.outerLabel.formatMethod(`${datum[this.getCategoryField()]}`, datum);
|
|
83657
83657
|
}
|
|
83658
|
-
}, 'normal', AttributeLevel.User_Mark);
|
|
83658
|
+
}, 'normal', exports.AttributeLevel.User_Mark);
|
|
83659
83659
|
}
|
|
83660
83660
|
}
|
|
83661
83661
|
const outerLabelLineMark = this._funnelOuterLabelMark.line;
|
|
@@ -83665,7 +83665,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
83665
83665
|
y: (datum) => this._computeOuterLabelLinePosition(datum).y1,
|
|
83666
83666
|
x1: (datum) => this._computeOuterLabelLinePosition(datum).x2,
|
|
83667
83667
|
y1: (datum) => this._computeOuterLabelLinePosition(datum).y2
|
|
83668
|
-
}, 'normal', AttributeLevel.Series);
|
|
83668
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
83669
83669
|
}
|
|
83670
83670
|
}
|
|
83671
83671
|
initLabelMarkStyle(labelMark) {
|
|
@@ -83683,7 +83683,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
83683
83683
|
y: (datum) => this._computeLabelPosition(datum).y,
|
|
83684
83684
|
maxLineWidth: (datum) => this._computeLabelLimit(datum, this._spec.label),
|
|
83685
83685
|
stroke: this.getColorAttribute()
|
|
83686
|
-
}, 'normal', AttributeLevel.Series);
|
|
83686
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
83687
83687
|
if ((_a = this._funnelOuterLabelMark) === null || _a === void 0 ? void 0 : _a.label) {
|
|
83688
83688
|
this._funnelOuterLabelMark.label.setDepend(component);
|
|
83689
83689
|
}
|
|
@@ -83701,7 +83701,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
83701
83701
|
x: (datum) => this._computeLabelPosition(datum).x,
|
|
83702
83702
|
y: (datum) => this._computeLabelPosition(datum).y,
|
|
83703
83703
|
maxLineWidth: (datum) => this._computeLabelLimit(datum, this._spec.transformLabel)
|
|
83704
|
-
}, 'normal', AttributeLevel.Series);
|
|
83704
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
83705
83705
|
}
|
|
83706
83706
|
}
|
|
83707
83707
|
initAnimation() {
|
|
@@ -84201,7 +84201,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
84201
84201
|
const width = Math.max(Math.abs(points[0].x - points[1].x), Math.abs(points[2].x - points[3].x));
|
|
84202
84202
|
return (this._computeMaxSize() - width) / 2;
|
|
84203
84203
|
}
|
|
84204
|
-
}, 'normal', AttributeLevel.Series);
|
|
84204
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
84205
84205
|
}
|
|
84206
84206
|
}
|
|
84207
84207
|
initLabelMarkStyle(labelMark) {
|
|
@@ -84216,7 +84216,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
84216
84216
|
const width = Math.max(Math.abs(points[0].x - points[1].x), Math.abs(points[2].x - points[3].x));
|
|
84217
84217
|
return (this._computeMaxSize() - width) / 2;
|
|
84218
84218
|
}
|
|
84219
|
-
}, 'normal', AttributeLevel.Series);
|
|
84219
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
84220
84220
|
this._labelMark = labelMark;
|
|
84221
84221
|
if ((_a = this._funnelOuterLabelMark) === null || _a === void 0 ? void 0 : _a.label) {
|
|
84222
84222
|
this._funnelOuterLabelMark.label.setDepend(labelMark.getComponent());
|
|
@@ -85400,7 +85400,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
85400
85400
|
startAngle: d => d.startAngle,
|
|
85401
85401
|
endAngle: d => d.endAngle,
|
|
85402
85402
|
fill: this.getColorAttribute()
|
|
85403
|
-
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
|
|
85403
|
+
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
|
|
85404
85404
|
}
|
|
85405
85405
|
_initLabelMark() {
|
|
85406
85406
|
if (this._label.visible !== true) {
|
|
@@ -85432,7 +85432,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
85432
85432
|
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
85433
|
fontSize: 10,
|
|
85434
85434
|
text: (d) => d.name
|
|
85435
|
-
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
|
|
85435
|
+
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
|
|
85436
85436
|
}
|
|
85437
85437
|
initTooltip() {
|
|
85438
85438
|
this._tooltipHelper = new SunburstTooltipHelper(this);
|
|
@@ -85690,7 +85690,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
85690
85690
|
endAngle: Math.PI * 2,
|
|
85691
85691
|
fill: this.getColorAttribute(),
|
|
85692
85692
|
zIndex: d => d.depth
|
|
85693
|
-
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
|
|
85693
|
+
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
|
|
85694
85694
|
}
|
|
85695
85695
|
_initLabelMark() {
|
|
85696
85696
|
var _a;
|
|
@@ -85713,7 +85713,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
85713
85713
|
return d.key;
|
|
85714
85714
|
},
|
|
85715
85715
|
cursor: 'pointer'
|
|
85716
|
-
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
|
|
85716
|
+
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
|
|
85717
85717
|
}
|
|
85718
85718
|
getStatisticFields() {
|
|
85719
85719
|
return appendHierarchyFields(super.getStatisticFields(), this._categoryField, this._valueField);
|
|
@@ -85809,7 +85809,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
85809
85809
|
this._ascendingSourceBreadth = (a, b) => ascendingNodeBreadth(this._nodeMap[a.source], this._nodeMap[b.source]) || a.index - b.index, this._ascendingTargetBreadth = (a, b) => ascendingNodeBreadth(this._nodeMap[a.target], this._nodeMap[b.target]) || a.index - b.index, this.options = Object.assign({}, SankeyLayout.defaultOptions, options);
|
|
85810
85810
|
const keyOption = this.options.nodeKey,
|
|
85811
85811
|
keyFunc = isFunction$1(keyOption) ? keyOption : keyOption ? field$3(keyOption) : null;
|
|
85812
|
-
this._getNodeKey = keyFunc
|
|
85812
|
+
this._getNodeKey = keyFunc;
|
|
85813
|
+
const depthOption = this.options.depthKey,
|
|
85814
|
+
depthFunc = isFunction$1(depthOption) ? depthOption : depthOption ? field$3(depthOption) : null;
|
|
85815
|
+
this._getNodeDepth = depthFunc, this._logger = Logger.getInstance(), this._alignFunc = isFunction$1(this.options.setNodeLayer) ? node => this.options.setNodeLayer(node.datum) : alignFunctions[this.options.nodeAlign];
|
|
85813
85816
|
}
|
|
85814
85817
|
layout(data, config) {
|
|
85815
85818
|
if (!data) return null;
|
|
@@ -85914,11 +85917,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
85914
85917
|
calculateNodeValue(originalNodes);
|
|
85915
85918
|
const doSubTree = (subTree, depth, parents) => {
|
|
85916
85919
|
subTree.forEach((node, index) => {
|
|
85920
|
+
var _a;
|
|
85917
85921
|
const nodeKey = this._getNodeKey ? this._getNodeKey(node) : parents ? `${parents[parents.length - 1].key}-${index}` : `${depth}-${index}`,
|
|
85918
85922
|
nodeValue = isNil$1(node.value) ? 0 : toValidNumber$1(node.value);
|
|
85919
85923
|
if (nodeMap[nodeKey]) nodeMap[nodeKey].value = void 0;else {
|
|
85920
85924
|
const nodeElement = {
|
|
85921
|
-
depth: depth,
|
|
85925
|
+
depth: this._getNodeDepth && null !== (_a = this._getNodeDepth(node)) && void 0 !== _a ? _a : depth,
|
|
85922
85926
|
datum: node,
|
|
85923
85927
|
index: index,
|
|
85924
85928
|
key: nodeKey,
|
|
@@ -86036,7 +86040,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
86036
86040
|
}
|
|
86037
86041
|
}
|
|
86038
86042
|
computeNodeDepths(nodes) {
|
|
86039
|
-
var _a;
|
|
86043
|
+
var _a, _b;
|
|
86040
86044
|
const n = nodes.length;
|
|
86041
86045
|
let next,
|
|
86042
86046
|
nextMap,
|
|
@@ -86048,9 +86052,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
86048
86052
|
next = [], nextMap = {};
|
|
86049
86053
|
for (let i = 0, curLen = current.length; i < curLen; i++) {
|
|
86050
86054
|
const node = current[i];
|
|
86051
|
-
if (node
|
|
86052
|
-
const
|
|
86053
|
-
|
|
86055
|
+
if (node) {
|
|
86056
|
+
const tempDepth = setNodeLayer && null !== (_a = setNodeLayer(node.datum)) && void 0 !== _a ? _a : depth;
|
|
86057
|
+
if (node.depth = this._getNodeDepth && null !== (_b = this._getNodeDepth(node.datum)) && void 0 !== _b ? _b : tempDepth, setNodeLayer && (maxDepth = Math.max(node.depth, maxDepth)), node.sourceLinks && node.sourceLinks.length) for (let j = 0, linkLen = node.sourceLinks.length; j < linkLen; j++) {
|
|
86058
|
+
const link = node.sourceLinks[j];
|
|
86059
|
+
nextMap[link.target] || (next.push(this._nodeMap[link.target]), nextMap[link.target] = !0);
|
|
86060
|
+
}
|
|
86054
86061
|
}
|
|
86055
86062
|
}
|
|
86056
86063
|
current = next, depth += 1;
|
|
@@ -86656,28 +86663,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
86656
86663
|
}
|
|
86657
86664
|
}
|
|
86658
86665
|
};
|
|
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
86666
|
this._handleNodeAdjacencyClick = (element, highlightState, blurState) => {
|
|
86682
86667
|
const nodeDatum = element.getDatum();
|
|
86683
86668
|
const highlightNodes = [nodeDatum.key];
|
|
@@ -86737,293 +86722,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
86737
86722
|
}
|
|
86738
86723
|
this._needClear = true;
|
|
86739
86724
|
};
|
|
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
86725
|
}
|
|
87028
86726
|
get direction() {
|
|
87029
86727
|
var _a, _b;
|
|
@@ -87088,6 +86786,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
87088
86786
|
maxLinkHeight: this._spec.maxLinkHeight,
|
|
87089
86787
|
iterations: this._spec.iterations,
|
|
87090
86788
|
nodeKey: this._spec.nodeKey,
|
|
86789
|
+
depthKey: this._spec.depthKey,
|
|
87091
86790
|
linkSortBy: this._spec.linkSortBy,
|
|
87092
86791
|
nodeSortBy: this._spec.nodeSortBy,
|
|
87093
86792
|
setNodeLayer: this._spec.setNodeLayer,
|
|
@@ -87225,10 +86924,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
87225
86924
|
x1: (datum) => datum.x1,
|
|
87226
86925
|
y: (datum) => datum.y0,
|
|
87227
86926
|
y1: (datum) => datum.y1
|
|
87228
|
-
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Mark);
|
|
86927
|
+
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Mark);
|
|
87229
86928
|
this.setMarkStyle(nodeMark, {
|
|
87230
86929
|
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);
|
|
86930
|
+
}, 'normal', exports.AttributeLevel.User_Mark);
|
|
87232
86931
|
}
|
|
87233
86932
|
_initLinkMarkStyle() {
|
|
87234
86933
|
var _a, _b;
|
|
@@ -87243,10 +86942,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
87243
86942
|
y1: (datum) => datum.y1,
|
|
87244
86943
|
thickness: (datum) => datum.thickness,
|
|
87245
86944
|
direction: this.direction
|
|
87246
|
-
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
|
|
86945
|
+
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
|
|
87247
86946
|
this.setMarkStyle(linkMark, {
|
|
87248
86947
|
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);
|
|
86948
|
+
}, 'normal', exports.AttributeLevel.User_Mark);
|
|
87250
86949
|
}
|
|
87251
86950
|
initLabelMarkStyle(labelMark, labelSpec) {
|
|
87252
86951
|
if (!labelMark) {
|
|
@@ -87325,6 +87024,315 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
87325
87024
|
linksSeriesDataUpdate() {
|
|
87326
87025
|
this._linksSeriesData.updateData();
|
|
87327
87026
|
}
|
|
87027
|
+
_handleClearEmpty(highlightState, blurState) {
|
|
87028
|
+
var _a, _b;
|
|
87029
|
+
if (!this._needClear) {
|
|
87030
|
+
return;
|
|
87031
|
+
}
|
|
87032
|
+
const allNodeElements = (_a = this._nodeMark) === null || _a === void 0 ? void 0 : _a.getProductElements();
|
|
87033
|
+
if (!allNodeElements || !allNodeElements.length) {
|
|
87034
|
+
return;
|
|
87035
|
+
}
|
|
87036
|
+
const allLinkElements = (_b = this._linkMark) === null || _b === void 0 ? void 0 : _b.getProductElements();
|
|
87037
|
+
if (!allLinkElements || !allLinkElements.length) {
|
|
87038
|
+
return;
|
|
87039
|
+
}
|
|
87040
|
+
const states = [highlightState, blurState];
|
|
87041
|
+
allNodeElements.forEach(el => {
|
|
87042
|
+
el.removeState(states);
|
|
87043
|
+
});
|
|
87044
|
+
allLinkElements.forEach(el => {
|
|
87045
|
+
el.removeState(states);
|
|
87046
|
+
});
|
|
87047
|
+
this._needClear = false;
|
|
87048
|
+
}
|
|
87049
|
+
_handleNodeRelatedClick(element, highlightState, blurState) {
|
|
87050
|
+
var _a;
|
|
87051
|
+
const nodeDatum = element.getDatum();
|
|
87052
|
+
const allNodeElements = this._nodeMark.getProductElements();
|
|
87053
|
+
if (!allNodeElements || !allNodeElements.length) {
|
|
87054
|
+
return;
|
|
87055
|
+
}
|
|
87056
|
+
const allLinkElements = this._linkMark.getProductElements();
|
|
87057
|
+
if (!allLinkElements || !allLinkElements.length) {
|
|
87058
|
+
return;
|
|
87059
|
+
}
|
|
87060
|
+
const father = ((_a = allLinkElements[0].getDatum()) === null || _a === void 0 ? void 0 : _a.parents) ? 'parents' : 'source';
|
|
87061
|
+
if (father === 'source') {
|
|
87062
|
+
const highlightNodes = [nodeDatum.key];
|
|
87063
|
+
const highlightLinks = [];
|
|
87064
|
+
allLinkElements.forEach((linkEl, i) => {
|
|
87065
|
+
var _a, _b, _c, _d;
|
|
87066
|
+
const linkDatum = linkEl.getDatum();
|
|
87067
|
+
const father = (linkDatum === null || linkDatum === void 0 ? void 0 : linkDatum.parents) ? 'parents' : 'source';
|
|
87068
|
+
if (array(linkDatum[father]).includes(nodeDatum.key)) {
|
|
87069
|
+
if (!highlightLinks.includes((_a = linkDatum.key) !== null && _a !== void 0 ? _a : linkDatum.index)) {
|
|
87070
|
+
highlightLinks.push((_b = linkDatum.key) !== null && _b !== void 0 ? _b : linkDatum.index);
|
|
87071
|
+
}
|
|
87072
|
+
if (!highlightNodes.includes(linkDatum.source)) {
|
|
87073
|
+
highlightNodes.push(linkDatum.source);
|
|
87074
|
+
}
|
|
87075
|
+
if (!highlightNodes.includes(linkDatum.target)) {
|
|
87076
|
+
highlightNodes.push(linkDatum.target);
|
|
87077
|
+
const targetNode = allNodeElements.find(nodeElement => {
|
|
87078
|
+
return nodeElement.data[0].key === linkDatum.target;
|
|
87079
|
+
});
|
|
87080
|
+
let targetNodeSourceLinks = targetNode.data[0].sourceLinks;
|
|
87081
|
+
while ((targetNodeSourceLinks === null || targetNodeSourceLinks === void 0 ? void 0 : targetNodeSourceLinks.length) > 0) {
|
|
87082
|
+
const newTargetNodeSourceLinks = [];
|
|
87083
|
+
targetNodeSourceLinks.forEach((targetNodeSourceLinkDatum) => {
|
|
87084
|
+
var _a, _b;
|
|
87085
|
+
if (!highlightLinks.includes((_a = targetNodeSourceLinkDatum.key) !== null && _a !== void 0 ? _a : targetNodeSourceLinkDatum.index)) {
|
|
87086
|
+
highlightLinks.push((_b = targetNodeSourceLinkDatum.key) !== null && _b !== void 0 ? _b : targetNodeSourceLinkDatum.index);
|
|
87087
|
+
if (!highlightNodes.includes(targetNodeSourceLinkDatum.target)) {
|
|
87088
|
+
highlightNodes.push(targetNodeSourceLinkDatum.target);
|
|
87089
|
+
const sourceNodeTemp = allNodeElements.find(nodeElement => {
|
|
87090
|
+
return nodeElement.data[0].key === targetNodeSourceLinkDatum.target;
|
|
87091
|
+
});
|
|
87092
|
+
newTargetNodeSourceLinks.push(sourceNodeTemp.data[0].targetLinks);
|
|
87093
|
+
}
|
|
87094
|
+
else {
|
|
87095
|
+
return;
|
|
87096
|
+
}
|
|
87097
|
+
}
|
|
87098
|
+
else {
|
|
87099
|
+
return;
|
|
87100
|
+
}
|
|
87101
|
+
});
|
|
87102
|
+
targetNodeSourceLinks = newTargetNodeSourceLinks;
|
|
87103
|
+
return;
|
|
87104
|
+
}
|
|
87105
|
+
}
|
|
87106
|
+
}
|
|
87107
|
+
else if (linkDatum.target === nodeDatum.key) {
|
|
87108
|
+
if (!highlightLinks.includes((_c = linkDatum.key) !== null && _c !== void 0 ? _c : linkDatum.index)) {
|
|
87109
|
+
highlightLinks.push((_d = linkDatum.key) !== null && _d !== void 0 ? _d : linkDatum.index);
|
|
87110
|
+
}
|
|
87111
|
+
if (!highlightNodes.includes(linkDatum.source)) {
|
|
87112
|
+
highlightNodes.push(linkDatum.source);
|
|
87113
|
+
const sourceNode = allNodeElements.find(nodeElement => {
|
|
87114
|
+
return nodeElement.data[0].key === linkDatum.source;
|
|
87115
|
+
});
|
|
87116
|
+
let sourceNodeTargetLinks = sourceNode.data[0].targetLinks;
|
|
87117
|
+
while ((sourceNodeTargetLinks === null || sourceNodeTargetLinks === void 0 ? void 0 : sourceNodeTargetLinks.length) > 0) {
|
|
87118
|
+
const newSourceNodeTargetLinks = [];
|
|
87119
|
+
sourceNodeTargetLinks.forEach((sourceNodeTargetLinkDatum) => {
|
|
87120
|
+
var _a, _b;
|
|
87121
|
+
if (!highlightLinks.includes((_a = sourceNodeTargetLinkDatum.key) !== null && _a !== void 0 ? _a : sourceNodeTargetLinkDatum.index)) {
|
|
87122
|
+
highlightLinks.push((_b = sourceNodeTargetLinkDatum.key) !== null && _b !== void 0 ? _b : sourceNodeTargetLinkDatum.index);
|
|
87123
|
+
if (!highlightNodes.includes(sourceNodeTargetLinkDatum.source)) {
|
|
87124
|
+
highlightNodes.push(sourceNodeTargetLinkDatum.source);
|
|
87125
|
+
const sourceNodeTemp = allNodeElements.find(nodeElement => {
|
|
87126
|
+
return nodeElement.data[0].key === sourceNodeTargetLinkDatum.source;
|
|
87127
|
+
});
|
|
87128
|
+
newSourceNodeTargetLinks.push(sourceNodeTemp.data[0].targetLinks);
|
|
87129
|
+
}
|
|
87130
|
+
else {
|
|
87131
|
+
return;
|
|
87132
|
+
}
|
|
87133
|
+
}
|
|
87134
|
+
else {
|
|
87135
|
+
return;
|
|
87136
|
+
}
|
|
87137
|
+
});
|
|
87138
|
+
sourceNodeTargetLinks = newSourceNodeTargetLinks;
|
|
87139
|
+
return;
|
|
87140
|
+
}
|
|
87141
|
+
}
|
|
87142
|
+
}
|
|
87143
|
+
});
|
|
87144
|
+
if (this._linkMark) {
|
|
87145
|
+
const allLinkElements = this._linkMark.getProductElements();
|
|
87146
|
+
if (!allLinkElements || !allLinkElements.length) {
|
|
87147
|
+
return;
|
|
87148
|
+
}
|
|
87149
|
+
allLinkElements.forEach((linkEl, i) => {
|
|
87150
|
+
var _a;
|
|
87151
|
+
if (highlightLinks.includes((_a = linkEl.getDatum().key) !== null && _a !== void 0 ? _a : linkEl.getDatum().index)) {
|
|
87152
|
+
linkEl.removeState(blurState);
|
|
87153
|
+
linkEl.addState(highlightState);
|
|
87154
|
+
}
|
|
87155
|
+
else {
|
|
87156
|
+
linkEl.removeState(highlightState);
|
|
87157
|
+
linkEl.addState(blurState);
|
|
87158
|
+
}
|
|
87159
|
+
});
|
|
87160
|
+
}
|
|
87161
|
+
if (this._nodeMark) {
|
|
87162
|
+
this._highLightElements(this._nodeMark.getProductElements(), highlightNodes, highlightState, blurState);
|
|
87163
|
+
}
|
|
87164
|
+
}
|
|
87165
|
+
else {
|
|
87166
|
+
const highlightNodes = [nodeDatum.key];
|
|
87167
|
+
const upstreamLinks = nodeDatum.targetLinks.reduce((res, link) => {
|
|
87168
|
+
const dividedLinks = array(link.datum);
|
|
87169
|
+
dividedLinks.forEach(dividedLink => {
|
|
87170
|
+
const parents = dividedLink.parents;
|
|
87171
|
+
const len = parents.length;
|
|
87172
|
+
for (let i = 0; i < len; i++) {
|
|
87173
|
+
const source = parents[i].key;
|
|
87174
|
+
const target = parents[i + 1] ? parents[i + 1].key : nodeDatum.key;
|
|
87175
|
+
const value = dividedLink.value;
|
|
87176
|
+
const existingItem = res.find(item => item.source === source && item.target === target);
|
|
87177
|
+
if (existingItem) {
|
|
87178
|
+
existingItem.value += value;
|
|
87179
|
+
}
|
|
87180
|
+
else {
|
|
87181
|
+
res.push({ source, target, value });
|
|
87182
|
+
}
|
|
87183
|
+
}
|
|
87184
|
+
});
|
|
87185
|
+
return res;
|
|
87186
|
+
}, []);
|
|
87187
|
+
allLinkElements.forEach((linkEl, i) => {
|
|
87188
|
+
const linkDatum = linkEl.getDatum();
|
|
87189
|
+
const originalDatum = linkDatum.datum;
|
|
87190
|
+
const selectedDatum = originalDatum
|
|
87191
|
+
? originalDatum.filter((entry) => entry[father].some((par) => par.key === nodeDatum.key))
|
|
87192
|
+
: null;
|
|
87193
|
+
const upSelectedLink = upstreamLinks.find((upLink) => upLink.source === linkDatum.source && upLink.target === linkDatum.target);
|
|
87194
|
+
if (selectedDatum && selectedDatum.length) {
|
|
87195
|
+
if (!highlightNodes.includes(linkDatum.source)) {
|
|
87196
|
+
highlightNodes.push(linkDatum.source);
|
|
87197
|
+
}
|
|
87198
|
+
if (!highlightNodes.includes(linkDatum.target)) {
|
|
87199
|
+
highlightNodes.push(linkDatum.target);
|
|
87200
|
+
}
|
|
87201
|
+
const val = selectedDatum.reduce((sum, d) => {
|
|
87202
|
+
return (sum += d.value);
|
|
87203
|
+
}, 0);
|
|
87204
|
+
const ratio = val / linkDatum.value;
|
|
87205
|
+
linkEl.removeState(blurState);
|
|
87206
|
+
linkEl.addState(highlightState, { ratio });
|
|
87207
|
+
return;
|
|
87208
|
+
}
|
|
87209
|
+
if (upSelectedLink) {
|
|
87210
|
+
if (!highlightNodes.includes(linkDatum.source)) {
|
|
87211
|
+
highlightNodes.push(linkDatum.source);
|
|
87212
|
+
}
|
|
87213
|
+
if (!highlightNodes.includes(linkDatum.target)) {
|
|
87214
|
+
highlightNodes.push(linkDatum.target);
|
|
87215
|
+
}
|
|
87216
|
+
linkEl.removeState(blurState);
|
|
87217
|
+
linkEl.addState(highlightState, { ratio: upSelectedLink.value / linkDatum.value });
|
|
87218
|
+
return;
|
|
87219
|
+
}
|
|
87220
|
+
linkEl.removeState(highlightState);
|
|
87221
|
+
linkEl.addState(blurState);
|
|
87222
|
+
return;
|
|
87223
|
+
});
|
|
87224
|
+
if (this._nodeMark) {
|
|
87225
|
+
this._highLightElements(this._nodeMark.getProductElements(), highlightNodes, highlightState, blurState);
|
|
87226
|
+
}
|
|
87227
|
+
}
|
|
87228
|
+
this._needClear = true;
|
|
87229
|
+
}
|
|
87230
|
+
_handleLinkRelatedClick(element, highlightState, blurState) {
|
|
87231
|
+
var _a;
|
|
87232
|
+
const allNodeElements = this._nodeMark.getProductElements();
|
|
87233
|
+
if (!allNodeElements || !allNodeElements.length) {
|
|
87234
|
+
return;
|
|
87235
|
+
}
|
|
87236
|
+
const allLinkElements = this._linkMark.getProductElements();
|
|
87237
|
+
if (!allLinkElements || !allLinkElements.length) {
|
|
87238
|
+
return;
|
|
87239
|
+
}
|
|
87240
|
+
const father = ((_a = element.getDatum()) === null || _a === void 0 ? void 0 : _a.parents) ? 'parents' : 'source';
|
|
87241
|
+
if (father === 'source') {
|
|
87242
|
+
const states = [highlightState, blurState];
|
|
87243
|
+
if (this._linkMark) {
|
|
87244
|
+
allLinkElements.forEach(linkEl => {
|
|
87245
|
+
linkEl.removeState(states);
|
|
87246
|
+
});
|
|
87247
|
+
}
|
|
87248
|
+
if (this._nodeMark) {
|
|
87249
|
+
allNodeElements.forEach(el => {
|
|
87250
|
+
el.removeState(states);
|
|
87251
|
+
});
|
|
87252
|
+
}
|
|
87253
|
+
}
|
|
87254
|
+
else {
|
|
87255
|
+
const curLinkDatum = element.getDatum();
|
|
87256
|
+
const highlightNodes = [curLinkDatum.source, curLinkDatum.target];
|
|
87257
|
+
const upstreamLinks = [];
|
|
87258
|
+
const dividedLinks = array(curLinkDatum.datum);
|
|
87259
|
+
dividedLinks.forEach(dividedLink => {
|
|
87260
|
+
const parents = dividedLink.parents;
|
|
87261
|
+
const len = parents.length;
|
|
87262
|
+
for (let i = 0; i < len - 1; i++) {
|
|
87263
|
+
const source = parents[i].key;
|
|
87264
|
+
const target = parents[i + 1].key;
|
|
87265
|
+
const value = dividedLink.value;
|
|
87266
|
+
const existingItem = upstreamLinks.find(item => item.source === source && item.target === target);
|
|
87267
|
+
upstreamLinks.push({
|
|
87268
|
+
source: parents[i].key,
|
|
87269
|
+
target: parents[i + 1].key,
|
|
87270
|
+
value: dividedLink.value
|
|
87271
|
+
});
|
|
87272
|
+
if (existingItem) {
|
|
87273
|
+
existingItem.value += value;
|
|
87274
|
+
}
|
|
87275
|
+
else {
|
|
87276
|
+
upstreamLinks.push({ source, target, value });
|
|
87277
|
+
}
|
|
87278
|
+
}
|
|
87279
|
+
});
|
|
87280
|
+
allLinkElements.forEach(linkEl => {
|
|
87281
|
+
const linkDatum = linkEl.getDatum();
|
|
87282
|
+
const originalDatum = linkDatum.datum;
|
|
87283
|
+
if (linkDatum.source === curLinkDatum.source && linkDatum.target === curLinkDatum.target) {
|
|
87284
|
+
linkEl.removeState(blurState);
|
|
87285
|
+
linkEl.addState(highlightState, { ratio: 1 });
|
|
87286
|
+
return;
|
|
87287
|
+
}
|
|
87288
|
+
const selectedDatum = originalDatum
|
|
87289
|
+
? originalDatum.filter((entry) => {
|
|
87290
|
+
const parentKeysList = entry.parents.map((item) => item.key);
|
|
87291
|
+
return parentKeysList.includes(curLinkDatum.source) && parentKeysList.includes(curLinkDatum.target);
|
|
87292
|
+
})
|
|
87293
|
+
: null;
|
|
87294
|
+
if (selectedDatum && selectedDatum.length) {
|
|
87295
|
+
if (!highlightNodes.includes(linkDatum.source)) {
|
|
87296
|
+
highlightNodes.push(linkDatum.source);
|
|
87297
|
+
}
|
|
87298
|
+
if (!highlightNodes.includes(linkDatum.target)) {
|
|
87299
|
+
highlightNodes.push(linkDatum.target);
|
|
87300
|
+
}
|
|
87301
|
+
const val = selectedDatum
|
|
87302
|
+
.filter((entry) => {
|
|
87303
|
+
return entry.parents.some((par, index) => {
|
|
87304
|
+
var _a;
|
|
87305
|
+
return par.key === curLinkDatum.source && ((_a = entry.parents[index + 1]) === null || _a === void 0 ? void 0 : _a.key) === curLinkDatum.target;
|
|
87306
|
+
});
|
|
87307
|
+
})
|
|
87308
|
+
.reduce((sum, d) => {
|
|
87309
|
+
return (sum += d.value);
|
|
87310
|
+
}, 0);
|
|
87311
|
+
const ratio = val / linkDatum.value;
|
|
87312
|
+
linkEl.removeState(blurState);
|
|
87313
|
+
linkEl.addState(highlightState, { ratio });
|
|
87314
|
+
return;
|
|
87315
|
+
}
|
|
87316
|
+
const upSelectedLink = upstreamLinks.find((upLink) => upLink.source === linkDatum.source && upLink.target === linkDatum.target);
|
|
87317
|
+
if (upSelectedLink) {
|
|
87318
|
+
if (!highlightNodes.includes(linkDatum.source)) {
|
|
87319
|
+
highlightNodes.push(linkDatum.source);
|
|
87320
|
+
}
|
|
87321
|
+
if (!highlightNodes.includes(linkDatum.target)) {
|
|
87322
|
+
highlightNodes.push(linkDatum.target);
|
|
87323
|
+
}
|
|
87324
|
+
linkEl.removeState(blurState);
|
|
87325
|
+
linkEl.addState(highlightState, { ratio: upSelectedLink.value / linkDatum.value });
|
|
87326
|
+
return;
|
|
87327
|
+
}
|
|
87328
|
+
linkEl.removeState(highlightState);
|
|
87329
|
+
linkEl.addState(blurState);
|
|
87330
|
+
return;
|
|
87331
|
+
});
|
|
87332
|
+
this._highLightElements(allNodeElements, highlightNodes, highlightState, blurState);
|
|
87333
|
+
}
|
|
87334
|
+
this._needClear = true;
|
|
87335
|
+
}
|
|
87328
87336
|
_highLightElements(vGrammarElements, highlightNodes, highlightState, blurState) {
|
|
87329
87337
|
if (!vGrammarElements || !vGrammarElements.length) {
|
|
87330
87338
|
return;
|
|
@@ -87796,7 +87804,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
87796
87804
|
x1: datum => datum.x1,
|
|
87797
87805
|
y1: datum => datum.y1,
|
|
87798
87806
|
fill: this.getColorAttribute()
|
|
87799
|
-
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
|
|
87807
|
+
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
|
|
87800
87808
|
}
|
|
87801
87809
|
_initNonLeafMarkStyle() {
|
|
87802
87810
|
if (!this._nonLeafMark) {
|
|
@@ -87808,7 +87816,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
87808
87816
|
x1: datum => datum.x1,
|
|
87809
87817
|
y1: datum => datum.y1,
|
|
87810
87818
|
fill: this.getColorAttribute()
|
|
87811
|
-
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
|
|
87819
|
+
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
|
|
87812
87820
|
}
|
|
87813
87821
|
_initRichStyleOfLabelMark(labelMark) {
|
|
87814
87822
|
if (labelMark.getTextType() === 'rich') {
|
|
@@ -87816,7 +87824,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
87816
87824
|
maxWidth: datum => Math.abs(datum.x0 - datum.x1),
|
|
87817
87825
|
maxHeight: datum => Math.abs(datum.y0 - datum.y1),
|
|
87818
87826
|
ellipsis: true
|
|
87819
|
-
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
|
|
87827
|
+
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
|
|
87820
87828
|
}
|
|
87821
87829
|
}
|
|
87822
87830
|
initLabelMarkStyle(labelMark) {
|
|
@@ -87835,7 +87843,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
87835
87843
|
maxLineWidth: (datum) => {
|
|
87836
87844
|
return datum.x1 === datum.x0 ? Number.MIN_VALUE : datum.x1 - datum.x0;
|
|
87837
87845
|
}
|
|
87838
|
-
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
|
|
87846
|
+
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
|
|
87839
87847
|
this._initRichStyleOfLabelMark(labelMark);
|
|
87840
87848
|
}
|
|
87841
87849
|
initNonLeafLabelMarkStyle(labelMark) {
|
|
@@ -87864,7 +87872,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
87864
87872
|
maxLineWidth: (datum) => {
|
|
87865
87873
|
return datum.x1 === datum.x0 ? Number.MIN_VALUE : datum.x1 - datum.x0;
|
|
87866
87874
|
}
|
|
87867
|
-
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
|
|
87875
|
+
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
|
|
87868
87876
|
this._initRichStyleOfLabelMark(labelMark);
|
|
87869
87877
|
}
|
|
87870
87878
|
initAnimation() {
|
|
@@ -88309,7 +88317,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
88309
88317
|
const segmentSpec = this.getSpec()["segment"];
|
|
88310
88318
|
if (segmentSpec) {
|
|
88311
88319
|
for (const state in segmentSpec.state || {}) {
|
|
88312
|
-
this.setMarkStyle(mark, this.generateRadiusStyle(segmentSpec.state[state]), state, AttributeLevel.User_Mark);
|
|
88320
|
+
this.setMarkStyle(mark, this.generateRadiusStyle(segmentSpec.state[state]), state, exports.AttributeLevel.User_Mark);
|
|
88313
88321
|
}
|
|
88314
88322
|
}
|
|
88315
88323
|
}
|
|
@@ -88487,7 +88495,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
88487
88495
|
return [this.getCellSize(this._xAxisHelper), this.getCellSize(this._yAxisHelper)];
|
|
88488
88496
|
},
|
|
88489
88497
|
fill: this.getColorAttribute()
|
|
88490
|
-
}, 'normal', AttributeLevel.Series);
|
|
88498
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
88491
88499
|
}
|
|
88492
88500
|
initCellBackgroundMarkStyle() {
|
|
88493
88501
|
var _a, _b, _c;
|
|
@@ -88509,7 +88517,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
88509
88517
|
height: () => {
|
|
88510
88518
|
return this.getCellSize(this._yAxisHelper) - padding[0] - padding[2];
|
|
88511
88519
|
}
|
|
88512
|
-
}, 'normal', AttributeLevel.Series);
|
|
88520
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
88513
88521
|
}
|
|
88514
88522
|
getColorAttribute() {
|
|
88515
88523
|
var _a;
|
|
@@ -88919,7 +88927,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
88919
88927
|
fill: (_c = nodePointStyle.fill) !== null && _c !== void 0 ? _c : this.getColorAttribute(),
|
|
88920
88928
|
fillOpacity: (_d = nodePointStyle.fillOpacity) !== null && _d !== void 0 ? _d : 1,
|
|
88921
88929
|
lineWidth: 0
|
|
88922
|
-
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
|
|
88930
|
+
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
|
|
88923
88931
|
}
|
|
88924
88932
|
_initRipplePointMarkStyle() {
|
|
88925
88933
|
var _a, _b, _c, _d, _e;
|
|
@@ -88943,7 +88951,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
88943
88951
|
fill: (_c = ripplePointStyle.fill) !== null && _c !== void 0 ? _c : this.getColorAttribute(),
|
|
88944
88952
|
opacity: (_d = ripplePointStyle.fillOpacity) !== null && _d !== void 0 ? _d : 0.2,
|
|
88945
88953
|
ripple: (_e = ripplePointStyle.ripple) !== null && _e !== void 0 ? _e : 0
|
|
88946
|
-
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
|
|
88954
|
+
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
|
|
88947
88955
|
}
|
|
88948
88956
|
_initCenterPointMarkStyle() {
|
|
88949
88957
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -88965,7 +88973,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
88965
88973
|
},
|
|
88966
88974
|
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
88975
|
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);
|
|
88976
|
+
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
|
|
88969
88977
|
}
|
|
88970
88978
|
initTooltip() {
|
|
88971
88979
|
super.initTooltip();
|
|
@@ -88981,7 +88989,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
88981
88989
|
return datum[this._categoryField];
|
|
88982
88990
|
},
|
|
88983
88991
|
z: this.dataToPositionZ.bind(this)
|
|
88984
|
-
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
|
|
88992
|
+
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
|
|
88985
88993
|
}
|
|
88986
88994
|
initAnimation() {
|
|
88987
88995
|
var _a, _b;
|
|
@@ -89330,7 +89338,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
89330
89338
|
width: () => this._region.getLayoutRect().width,
|
|
89331
89339
|
height: () => this._region.getLayoutRect().height,
|
|
89332
89340
|
path: () => this._getLiquidBackPath(true)
|
|
89333
|
-
}, 'normal', AttributeLevel.Series);
|
|
89341
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
89334
89342
|
this._liquidOutlineMark.setMarkConfig({ interactive: false, zIndex: this.layoutZIndex });
|
|
89335
89343
|
}
|
|
89336
89344
|
_initLiquidBackgroundMarkStyle() {
|
|
@@ -89340,7 +89348,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
89340
89348
|
width: () => this._region.getLayoutRect().width,
|
|
89341
89349
|
height: () => this._region.getLayoutRect().height,
|
|
89342
89350
|
path: () => this._getLiquidBackPath()
|
|
89343
|
-
}, 'normal', AttributeLevel.Series);
|
|
89351
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
89344
89352
|
this._liquidBackgroundMark.setMarkConfig({ interactive: false, zIndex: this.layoutZIndex, clip: true });
|
|
89345
89353
|
}
|
|
89346
89354
|
_initLiquidMarkStyle() {
|
|
@@ -89363,7 +89371,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
89363
89371
|
height: this._getLiquidHeight,
|
|
89364
89372
|
fill: this.getColorAttribute(),
|
|
89365
89373
|
wave: 0
|
|
89366
|
-
}, 'normal', AttributeLevel.Series);
|
|
89374
|
+
}, 'normal', exports.AttributeLevel.Series);
|
|
89367
89375
|
}
|
|
89368
89376
|
}
|
|
89369
89377
|
initTooltip() {
|
|
@@ -90336,7 +90344,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
90336
90344
|
endAngle: Math.PI * 2,
|
|
90337
90345
|
fill: this.getColorAttribute(),
|
|
90338
90346
|
stroke: this.getColorAttribute()
|
|
90339
|
-
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
|
|
90347
|
+
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
|
|
90340
90348
|
}
|
|
90341
90349
|
_initOverlapMarkStyle() {
|
|
90342
90350
|
if (!this._overlapMark) {
|
|
@@ -90352,12 +90360,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
90352
90360
|
zIndex: datum => {
|
|
90353
90361
|
return datum.sets.length * 100;
|
|
90354
90362
|
}
|
|
90355
|
-
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
|
|
90363
|
+
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
|
|
90356
90364
|
this.setMarkStyle(this._overlapMark, {
|
|
90357
90365
|
zIndex: datum => {
|
|
90358
90366
|
return datum.sets.length * 100 + 1;
|
|
90359
90367
|
}
|
|
90360
|
-
}, exports.STATE_VALUE_ENUM.STATE_HOVER, AttributeLevel.Series);
|
|
90368
|
+
}, exports.STATE_VALUE_ENUM.STATE_HOVER, exports.AttributeLevel.Series);
|
|
90361
90369
|
}
|
|
90362
90370
|
initLabelMarkStyle(labelMark) {
|
|
90363
90371
|
if (!labelMark) {
|
|
@@ -90375,7 +90383,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
90375
90383
|
const circleX1 = x + radius;
|
|
90376
90384
|
return Math.min(labelX - circleX0, circleX1 - labelX);
|
|
90377
90385
|
}
|
|
90378
|
-
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
|
|
90386
|
+
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
|
|
90379
90387
|
}
|
|
90380
90388
|
initOverlapLabelMarkStyle(labelMark) {
|
|
90381
90389
|
if (!labelMark) {
|
|
@@ -90387,7 +90395,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
90387
90395
|
x: datum => datum.labelX,
|
|
90388
90396
|
y: datum => datum.labelY,
|
|
90389
90397
|
text: datum => getVennSeriesDataKey(datum.sets)
|
|
90390
|
-
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
|
|
90398
|
+
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
|
|
90391
90399
|
}
|
|
90392
90400
|
initTooltip() {
|
|
90393
90401
|
this._tooltipHelper = new VennTooltipHelper(this);
|
|
@@ -90937,17 +90945,17 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
90937
90945
|
text: (d) => d[this.nameField],
|
|
90938
90946
|
textAlign: 'center',
|
|
90939
90947
|
textBaseline: 'middle'
|
|
90940
|
-
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
|
|
90948
|
+
}, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
|
|
90941
90949
|
}
|
|
90942
90950
|
initMarkStyle() {
|
|
90943
90951
|
const { root, viewBoxRect } = this._parsedSvgResult;
|
|
90944
90952
|
const elements = this._mapViewData.getDataView().latestData;
|
|
90945
90953
|
if (root) {
|
|
90946
|
-
this.setMarkStyle(this._pictogramMark, graphicAttributeTransform.group(root.attributes), 'normal', AttributeLevel.Built_In);
|
|
90954
|
+
this.setMarkStyle(this._pictogramMark, graphicAttributeTransform.group(root.attributes), 'normal', exports.AttributeLevel.Built_In);
|
|
90947
90955
|
if (root.transform) {
|
|
90948
90956
|
this.setMarkStyle(this._pictogramMark, {
|
|
90949
90957
|
postMatrix: () => root.transform
|
|
90950
|
-
}, 'normal', AttributeLevel.Built_In);
|
|
90958
|
+
}, 'normal', exports.AttributeLevel.Built_In);
|
|
90951
90959
|
}
|
|
90952
90960
|
if (viewBoxRect) {
|
|
90953
90961
|
this._pictogramMark.setMarkConfig({
|
|
@@ -90961,17 +90969,17 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
90961
90969
|
const mark = this._idToMark.get(_uniqueId);
|
|
90962
90970
|
const valid = this._validElement(element);
|
|
90963
90971
|
if (mark) {
|
|
90964
|
-
this.setMarkStyle(mark, { keepStrokeScale: true }, 'normal', AttributeLevel.Built_In);
|
|
90972
|
+
this.setMarkStyle(mark, { keepStrokeScale: true }, 'normal', exports.AttributeLevel.Built_In);
|
|
90965
90973
|
if (valid) {
|
|
90966
90974
|
this.initMarkStyleWithSpec(mark, merge$1({}, this._spec.pictogram, this._spec[mark.name]));
|
|
90967
|
-
this.setMarkStyle(mark, attributes, 'normal', AttributeLevel.Series);
|
|
90975
|
+
this.setMarkStyle(mark, attributes, 'normal', exports.AttributeLevel.Series);
|
|
90968
90976
|
mark.setPostProcess('fill', (result, datum) => {
|
|
90969
90977
|
return isValid$1(result) ? result : this._spec.defaultFillColor;
|
|
90970
90978
|
});
|
|
90971
90979
|
}
|
|
90972
90980
|
else {
|
|
90973
90981
|
mark.setMarkConfig({ interactive: false });
|
|
90974
|
-
this.setMarkStyle(mark, attributes, 'normal', AttributeLevel.Built_In);
|
|
90982
|
+
this.setMarkStyle(mark, attributes, 'normal', exports.AttributeLevel.Built_In);
|
|
90975
90983
|
}
|
|
90976
90984
|
}
|
|
90977
90985
|
}
|
|
@@ -92722,6 +92730,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
92722
92730
|
'linkOverlap',
|
|
92723
92731
|
'iterations',
|
|
92724
92732
|
'nodeKey',
|
|
92733
|
+
'depthKey',
|
|
92725
92734
|
'linkSortBy',
|
|
92726
92735
|
'nodeSortBy',
|
|
92727
92736
|
'setNodeLayer',
|
|
@@ -97025,7 +97034,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
97025
97034
|
this.layout.setLayoutRect({
|
|
97026
97035
|
[sizeKey]: isShown ? this[`_${sizeKey}`] : 0
|
|
97027
97036
|
}, {
|
|
97028
|
-
[sizeKey]: AttributeLevel.Built_In
|
|
97037
|
+
[sizeKey]: exports.AttributeLevel.Built_In
|
|
97029
97038
|
});
|
|
97030
97039
|
}
|
|
97031
97040
|
onLayoutStart(layoutRect, viewRect, ctx) {
|
|
@@ -100322,7 +100331,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
100322
100331
|
styleHandler === null || styleHandler === void 0 ? void 0 : styleHandler.call(series, labelMark, labelSpec);
|
|
100323
100332
|
}
|
|
100324
100333
|
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);
|
|
100334
|
+
labelMark.setAttribute('stroke', series.getColorAttribute(), 'normal', exports.AttributeLevel.Base_Series);
|
|
100326
100335
|
}
|
|
100327
100336
|
});
|
|
100328
100337
|
});
|
|
@@ -100514,7 +100523,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
100514
100523
|
text: (datum) => {
|
|
100515
100524
|
return datum[STACK_FIELD_TOTAL];
|
|
100516
100525
|
}
|
|
100517
|
-
}, 'normal', AttributeLevel.Default);
|
|
100526
|
+
}, 'normal', exports.AttributeLevel.Default);
|
|
100518
100527
|
const series = this._getSeries();
|
|
100519
100528
|
(_a = series.initTotalLabelMarkStyle) === null || _a === void 0 ? void 0 : _a.call(series, this._textMark);
|
|
100520
100529
|
}
|
|
@@ -100904,8 +100913,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
100904
100913
|
this._option.getAllSeries().forEach((s) => {
|
|
100905
100914
|
s.getActiveMarks().forEach((m) => {
|
|
100906
100915
|
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);
|
|
100916
|
+
s.setMarkStyle(m, Object.assign({}, inBrushMarkAttr), IN_BRUSH_STATE, exports.AttributeLevel.Series);
|
|
100917
|
+
s.setMarkStyle(m, Object.assign({}, outOfBrushMarkAttr), OUT_BRUSH_STATE, exports.AttributeLevel.Series);
|
|
100909
100918
|
}
|
|
100910
100919
|
});
|
|
100911
100920
|
});
|
|
@@ -104765,6 +104774,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
104765
104774
|
exports.LineSeries = LineSeries;
|
|
104766
104775
|
exports.LinearProgressChart = LinearProgressChart;
|
|
104767
104776
|
exports.LinearProgressSeries = LinearProgressSeries;
|
|
104777
|
+
exports.LinkPathMark = LinkPathMark;
|
|
104768
104778
|
exports.LinkSeries = LinkSeries;
|
|
104769
104779
|
exports.LiquidChart = LiquidChart;
|
|
104770
104780
|
exports.LiquidSeries = LiquidSeries;
|
|
@@ -104828,6 +104838,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
104828
104838
|
exports.STACK_FIELD_TOTAL_PERCENT = STACK_FIELD_TOTAL_PERCENT;
|
|
104829
104839
|
exports.STACK_FIELD_TOTAL_TOP = STACK_FIELD_TOTAL_TOP;
|
|
104830
104840
|
exports.SankeyChart = SankeyChart;
|
|
104841
|
+
exports.SankeyChartSpecTransformer = SankeyChartSpecTransformer;
|
|
104831
104842
|
exports.SankeySeries = SankeySeries;
|
|
104832
104843
|
exports.ScatterChart = ScatterChart;
|
|
104833
104844
|
exports.ScatterSeries = ScatterSeries;
|
|
@@ -104931,6 +104942,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
104931
104942
|
exports.registerContinuousLegend = registerContinuousLegend;
|
|
104932
104943
|
exports.registerCorrelationChart = registerCorrelationChart;
|
|
104933
104944
|
exports.registerCustomMark = registerCustomMark;
|
|
104945
|
+
exports.registerDataSetInstanceParser = registerDataSetInstanceParser;
|
|
104946
|
+
exports.registerDataSetInstanceTransform = registerDataSetInstanceTransform;
|
|
104934
104947
|
exports.registerDataZoom = registerDataZoom;
|
|
104935
104948
|
exports.registerDiscreteLegend = registerDiscreteLegend;
|
|
104936
104949
|
exports.registerDomTooltipHandler = registerDomTooltipHandler;
|
|
@@ -104965,6 +104978,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
104965
104978
|
exports.registerLineSeries = registerLineSeries;
|
|
104966
104979
|
exports.registerLinearProgressChart = registerLinearProgressChart;
|
|
104967
104980
|
exports.registerLinearProgressSeries = registerLinearProgressSeries;
|
|
104981
|
+
exports.registerLinkPathMark = registerLinkPathMark;
|
|
104968
104982
|
exports.registerLinkSeries = registerLinkSeries;
|
|
104969
104983
|
exports.registerLiquidChart = registerLiquidChart;
|
|
104970
104984
|
exports.registerLiquidSeries = registerLiquidSeries;
|