@visactor/vchart 2.0.23-alpha.7 → 2.0.23-alpha.9
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 +1 -1
- package/build/index.es.js +91 -78
- package/build/index.js +91 -78
- package/build/index.min.js +2 -2
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/animation/index.js +1 -2
- package/cjs/chart/base/base-chart.js +13 -7
- package/cjs/chart/base/base-chart.js.map +1 -1
- package/cjs/chart/radar/radar-transformer.js +4 -4
- package/cjs/chart/radar/radar-transformer.js.map +1 -1
- package/cjs/compile/compiler.d.ts +2 -0
- package/cjs/compile/compiler.js +14 -2
- package/cjs/compile/compiler.js.map +1 -1
- package/cjs/compile/state-manager.js +2 -1
- package/cjs/component/legend/base-legend.js +1 -1
- package/cjs/component/legend/base-legend.js.map +1 -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/vchart.js +3 -1
- package/cjs/core/vchart.js.map +1 -1
- package/cjs/interaction/triggers/element-active.js +2 -1
- package/cjs/interaction/triggers/element-active.js.map +1 -1
- package/cjs/mark/base/base-line.js +2 -2
- package/cjs/mark/base/base-line.js.map +1 -1
- package/cjs/series/bar/bar.js +1 -1
- package/cjs/series/bar/bar.js.map +1 -1
- package/cjs/series/rose/rose.js +3 -7
- package/cjs/series/rose/rose.js.map +1 -1
- package/cjs/series/scatter/scatter.d.ts +0 -3
- package/cjs/series/scatter/scatter.js +6 -24
- package/cjs/series/scatter/scatter.js.map +1 -1
- package/cjs/series/treemap/interface.d.ts +1 -1
- package/cjs/series/treemap/interface.js.map +1 -1
- package/cjs/series/waterfall/waterfall.d.ts +2 -0
- package/cjs/series/waterfall/waterfall.js +12 -4
- package/cjs/series/waterfall/waterfall.js.map +1 -1
- package/cjs/typings/spec/common.d.ts +4 -2
- package/cjs/typings/spec/common.js.map +1 -1
- package/cjs/util/spec/transform.d.ts +5 -2
- package/cjs/util/spec/transform.js +7 -11
- package/cjs/util/spec/transform.js.map +1 -1
- package/esm/animation/index.js +1 -2
- package/esm/chart/base/base-chart.js +12 -7
- package/esm/chart/base/base-chart.js.map +1 -1
- package/esm/chart/radar/radar-transformer.js +4 -4
- package/esm/chart/radar/radar-transformer.js.map +1 -1
- package/esm/compile/compiler.d.ts +2 -0
- package/esm/compile/compiler.js +14 -2
- package/esm/compile/compiler.js.map +1 -1
- package/esm/compile/state-manager.js +2 -1
- package/esm/component/legend/base-legend.js +1 -1
- package/esm/component/legend/base-legend.js.map +1 -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/vchart.js +2 -1
- package/esm/core/vchart.js.map +1 -1
- package/esm/interaction/triggers/element-active.js +2 -1
- package/esm/interaction/triggers/element-active.js.map +1 -1
- package/esm/mark/base/base-line.js +2 -2
- package/esm/mark/base/base-line.js.map +1 -1
- package/esm/series/bar/bar.js +1 -1
- package/esm/series/bar/bar.js.map +1 -1
- package/esm/series/rose/rose.js +3 -7
- package/esm/series/rose/rose.js.map +1 -1
- package/esm/series/scatter/scatter.d.ts +0 -3
- package/esm/series/scatter/scatter.js +5 -27
- package/esm/series/scatter/scatter.js.map +1 -1
- package/esm/series/treemap/interface.d.ts +1 -1
- package/esm/series/treemap/interface.js.map +1 -1
- package/esm/series/waterfall/waterfall.d.ts +2 -0
- package/esm/series/waterfall/waterfall.js +12 -4
- package/esm/series/waterfall/waterfall.js.map +1 -1
- package/esm/typings/spec/common.d.ts +4 -2
- package/esm/typings/spec/common.js.map +1 -1
- package/esm/util/spec/transform.d.ts +5 -2
- package/esm/util/spec/transform.js +7 -11
- package/esm/util/spec/transform.js.map +1 -1
- package/package.json +5 -5
package/build/index.js
CHANGED
|
@@ -53666,27 +53666,27 @@
|
|
|
53666
53666
|
}
|
|
53667
53667
|
return spec;
|
|
53668
53668
|
}
|
|
53669
|
-
function functionTransform(
|
|
53670
|
-
|
|
53671
|
-
|
|
53669
|
+
function functionTransform(value, registry) {
|
|
53670
|
+
var _a;
|
|
53671
|
+
if (!value) {
|
|
53672
|
+
return value;
|
|
53672
53673
|
}
|
|
53673
|
-
if (
|
|
53674
|
+
if (isString$1(value)) {
|
|
53675
|
+
return (_a = registry.getFunction(value)) !== null && _a !== void 0 ? _a : value;
|
|
53676
|
+
}
|
|
53677
|
+
if (isPlainObject$1(value)) {
|
|
53674
53678
|
const result = {};
|
|
53675
|
-
for (const key in
|
|
53676
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
53677
|
-
|
|
53678
|
-
result[key] = VChart.getFunction(spec[key]);
|
|
53679
|
-
continue;
|
|
53680
|
-
}
|
|
53681
|
-
result[key] = functionTransform(spec[key], VChart);
|
|
53679
|
+
for (const key in value) {
|
|
53680
|
+
if (Object.prototype.hasOwnProperty.call(value, key)) {
|
|
53681
|
+
result[key] = functionTransform(value[key], registry);
|
|
53682
53682
|
}
|
|
53683
53683
|
}
|
|
53684
53684
|
return result;
|
|
53685
53685
|
}
|
|
53686
|
-
if (isArray$1(
|
|
53687
|
-
return
|
|
53686
|
+
if (isArray$1(value)) {
|
|
53687
|
+
return value.map(item => functionTransform(item, registry));
|
|
53688
53688
|
}
|
|
53689
|
-
return
|
|
53689
|
+
return value;
|
|
53690
53690
|
}
|
|
53691
53691
|
function transformFunctionAttribute(att, ...args) {
|
|
53692
53692
|
if (isFunction$1(att)) {
|
|
@@ -55404,6 +55404,33 @@
|
|
|
55404
55404
|
updateLayoutTag() {
|
|
55405
55405
|
this._layoutState = LayoutState.before;
|
|
55406
55406
|
}
|
|
55407
|
+
_isGeoRegionRoamDragEnabled() {
|
|
55408
|
+
var _a, _b;
|
|
55409
|
+
const chartSpec = (_b = (_a = this._compileChart) === null || _a === void 0 ? void 0 : _a.getSpec) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
55410
|
+
const regions = chartSpec === null || chartSpec === void 0 ? void 0 : chartSpec.region;
|
|
55411
|
+
if (!isArray$1(regions)) {
|
|
55412
|
+
return false;
|
|
55413
|
+
}
|
|
55414
|
+
return regions.some((region) => {
|
|
55415
|
+
var _a;
|
|
55416
|
+
if ((region === null || region === void 0 ? void 0 : region.coordinate) !== 'geo' || !region.roam) {
|
|
55417
|
+
return false;
|
|
55418
|
+
}
|
|
55419
|
+
if (region.roam === true) {
|
|
55420
|
+
return true;
|
|
55421
|
+
}
|
|
55422
|
+
return (_a = region.roam.drag) !== null && _a !== void 0 ? _a : true;
|
|
55423
|
+
});
|
|
55424
|
+
}
|
|
55425
|
+
_shouldDisableCanvasTouchAction() {
|
|
55426
|
+
if (!isTrueBrowser(this._option.mode)) {
|
|
55427
|
+
return false;
|
|
55428
|
+
}
|
|
55429
|
+
const supportsTouchEvents = isValid$1(this._option.supportsTouchEvents)
|
|
55430
|
+
? this._option.supportsTouchEvents
|
|
55431
|
+
: vglobal.supportsTouchEvents;
|
|
55432
|
+
return supportsTouchEvents === false && this._isGeoRegionRoamDragEnabled();
|
|
55433
|
+
}
|
|
55407
55434
|
_setCanvasStyle() {
|
|
55408
55435
|
if (!this._stage) {
|
|
55409
55436
|
return;
|
|
@@ -55414,6 +55441,7 @@
|
|
|
55414
55441
|
const canvas = this.getCanvas();
|
|
55415
55442
|
if (canvas) {
|
|
55416
55443
|
canvas.style.display = 'block';
|
|
55444
|
+
canvas.style.touchAction = this._shouldDisableCanvasTouchAction() ? 'none' : '';
|
|
55417
55445
|
}
|
|
55418
55446
|
}
|
|
55419
55447
|
}
|
|
@@ -55432,6 +55460,7 @@
|
|
|
55432
55460
|
this._cachedMarks = null;
|
|
55433
55461
|
}
|
|
55434
55462
|
chart.compile();
|
|
55463
|
+
this._setCanvasStyle();
|
|
55435
55464
|
chart.afterCompile();
|
|
55436
55465
|
}
|
|
55437
55466
|
clearNextRender() {
|
|
@@ -60870,6 +60899,7 @@
|
|
|
60870
60899
|
}
|
|
60871
60900
|
let theme = this._currentTheme;
|
|
60872
60901
|
keys.forEach((key, index) => {
|
|
60902
|
+
var _a;
|
|
60873
60903
|
if (index === 1 && (keys[0] === 'series' || keys[0] === 'component')) {
|
|
60874
60904
|
const buildInTheme = keys[0] === 'series' ? Factory.getSeriesBuiltInTheme(key) : Factory.getComponentBuiltInTheme(key);
|
|
60875
60905
|
theme = theme ? mergeSpec({}, buildInTheme, theme[key]) : buildInTheme;
|
|
@@ -60881,6 +60911,9 @@
|
|
|
60881
60911
|
theme = preprocessTheme({
|
|
60882
60912
|
[key]: theme
|
|
60883
60913
|
}, this._currentTheme.colorScheme, this._currentTheme.token)[key];
|
|
60914
|
+
if ((_a = this.getFunctionList()) === null || _a === void 0 ? void 0 : _a.length) {
|
|
60915
|
+
theme = functionTransform(theme, this);
|
|
60916
|
+
}
|
|
60884
60917
|
}
|
|
60885
60918
|
});
|
|
60886
60919
|
this._cachedProcessedTheme[cacheKey] = theme;
|
|
@@ -62185,7 +62218,7 @@
|
|
|
62185
62218
|
});
|
|
62186
62219
|
};
|
|
62187
62220
|
|
|
62188
|
-
const version = "2.0.23-alpha.
|
|
62221
|
+
const version = "2.0.23-alpha.8";
|
|
62189
62222
|
|
|
62190
62223
|
const addVChartProperty = (data, op) => {
|
|
62191
62224
|
const context = op.beforeCall();
|
|
@@ -65400,7 +65433,7 @@
|
|
|
65400
65433
|
: null));
|
|
65401
65434
|
}
|
|
65402
65435
|
_runPointsEncoder(newStyles, g, attrs = {}) {
|
|
65403
|
-
var _a, _b
|
|
65436
|
+
var _a, _b;
|
|
65404
65437
|
const data = g.context.data;
|
|
65405
65438
|
const lineAttrs = [];
|
|
65406
65439
|
const points = [];
|
|
@@ -65425,7 +65458,7 @@
|
|
|
65425
65458
|
points[index].context = (_a = this._keyGetter(datum)) !== null && _a !== void 0 ? _a : index;
|
|
65426
65459
|
});
|
|
65427
65460
|
if (progressive) {
|
|
65428
|
-
const segments = (
|
|
65461
|
+
const segments = ((_b = g.attribute) === null || _b === void 0 ? void 0 : _b.segments) ? [...g.attribute.segments] : [];
|
|
65429
65462
|
segments.push({
|
|
65430
65463
|
points
|
|
65431
65464
|
});
|
|
@@ -70227,21 +70260,24 @@
|
|
|
70227
70260
|
this._interaction = new Interaction();
|
|
70228
70261
|
const series = this.getAllSeries();
|
|
70229
70262
|
const mergedTriggers = [];
|
|
70230
|
-
const
|
|
70263
|
+
const groupedTriggers = [];
|
|
70231
70264
|
series.forEach(s => {
|
|
70232
70265
|
const triggers = s.getInteractionTriggers();
|
|
70233
70266
|
if (triggers && triggers.length) {
|
|
70234
70267
|
const regionId = s.getRegion().id;
|
|
70235
70268
|
triggers.forEach(({ trigger, marks }) => {
|
|
70236
|
-
const
|
|
70237
|
-
if (
|
|
70238
|
-
marks.
|
|
70239
|
-
mergedTriggersMarks[interactionId].marks.push(m);
|
|
70240
|
-
});
|
|
70269
|
+
const sameTrigger = groupedTriggers.find(item => item.regionId === regionId && isEqual(item.config, trigger));
|
|
70270
|
+
if (sameTrigger) {
|
|
70271
|
+
sameTrigger.trigger.marks.push(...marks);
|
|
70241
70272
|
}
|
|
70242
70273
|
else {
|
|
70243
|
-
|
|
70244
|
-
|
|
70274
|
+
const mergedTrigger = Object.assign(Object.assign({}, trigger), { marks: [...marks] });
|
|
70275
|
+
groupedTriggers.push({
|
|
70276
|
+
regionId,
|
|
70277
|
+
config: Object.assign({}, trigger),
|
|
70278
|
+
trigger: mergedTrigger
|
|
70279
|
+
});
|
|
70280
|
+
mergedTriggers.push(mergedTrigger);
|
|
70245
70281
|
}
|
|
70246
70282
|
});
|
|
70247
70283
|
}
|
|
@@ -73682,7 +73718,7 @@
|
|
|
73682
73718
|
const fieldsX = this._fieldX;
|
|
73683
73719
|
this._data.setTransform([
|
|
73684
73720
|
{
|
|
73685
|
-
type: '
|
|
73721
|
+
type: 'sampling',
|
|
73686
73722
|
size: this._direction === "horizontal" ? height : width,
|
|
73687
73723
|
factor: this._spec.samplingFactor,
|
|
73688
73724
|
yfield: this._direction === "horizontal" ? fieldsX[0] : fieldsY[0],
|
|
@@ -74013,10 +74049,6 @@
|
|
|
74013
74049
|
if (this._symbolMark.getProduct()) {
|
|
74014
74050
|
this._symbolMark.compileEncode();
|
|
74015
74051
|
}
|
|
74016
|
-
if (this._isGeoCoordinateSeries()) {
|
|
74017
|
-
this._updateSymbolGraphicPosition();
|
|
74018
|
-
this._refreshLabelComponent(true, true);
|
|
74019
|
-
}
|
|
74020
74052
|
}
|
|
74021
74053
|
initLabelMarkStyle(labelMark) {
|
|
74022
74054
|
if (!labelMark) {
|
|
@@ -74064,38 +74096,6 @@
|
|
|
74064
74096
|
}
|
|
74065
74097
|
return labelGraphic;
|
|
74066
74098
|
}
|
|
74067
|
-
_isGeoCoordinateSeries() {
|
|
74068
|
-
var _a, _b;
|
|
74069
|
-
return ((_b = (_a = this.getXAxisHelper()) === null || _a === void 0 ? void 0 : _a.getAxisType) === null || _b === void 0 ? void 0 : _b.call(_a)) === ComponentTypeEnum.geoCoordinate;
|
|
74070
|
-
}
|
|
74071
|
-
_refreshLabelComponent(resetPostMatrix = false, disableAnimation = false) {
|
|
74072
|
-
var _a, _b;
|
|
74073
|
-
const vgrammarLabel = (_a = this._labelMark) === null || _a === void 0 ? void 0 : _a.getComponent();
|
|
74074
|
-
const labelGraphic = (_b = vgrammarLabel === null || vgrammarLabel === void 0 ? void 0 : vgrammarLabel.getComponent) === null || _b === void 0 ? void 0 : _b.call(vgrammarLabel);
|
|
74075
|
-
if (resetPostMatrix) {
|
|
74076
|
-
if (labelGraphic === null || labelGraphic === void 0 ? void 0 : labelGraphic.attribute.postMatrix) {
|
|
74077
|
-
labelGraphic.setAttributes({
|
|
74078
|
-
postMatrix: new Matrix()
|
|
74079
|
-
});
|
|
74080
|
-
}
|
|
74081
|
-
}
|
|
74082
|
-
if (disableAnimation && (labelGraphic === null || labelGraphic === void 0 ? void 0 : labelGraphic.disableAnimation)) {
|
|
74083
|
-
labelGraphic.disableAnimation();
|
|
74084
|
-
if (!this._enableLabelAnimationHook) {
|
|
74085
|
-
this._enableLabelAnimationHook = () => {
|
|
74086
|
-
var _a, _b, _c, _d;
|
|
74087
|
-
const currentLabelGraphic = (_c = (_b = (_a = this._labelMark) === null || _a === void 0 ? void 0 : _a.getComponent()) === null || _b === void 0 ? void 0 : _b.getComponent) === null || _c === void 0 ? void 0 : _c.call(_b);
|
|
74088
|
-
(_d = currentLabelGraphic === null || currentLabelGraphic === void 0 ? void 0 : currentLabelGraphic.enableAnimation) === null || _d === void 0 ? void 0 : _d.call(currentLabelGraphic);
|
|
74089
|
-
this.event.off(HOOK_EVENT.AFTER_MARK_RENDER_END, this._enableLabelAnimationHook);
|
|
74090
|
-
this._enableLabelAnimationHook = undefined;
|
|
74091
|
-
};
|
|
74092
|
-
this.event.on(HOOK_EVENT.AFTER_MARK_RENDER_END, this._enableLabelAnimationHook);
|
|
74093
|
-
}
|
|
74094
|
-
}
|
|
74095
|
-
if (vgrammarLabel === null || vgrammarLabel === void 0 ? void 0 : vgrammarLabel.getProduct()) {
|
|
74096
|
-
vgrammarLabel.renderInner();
|
|
74097
|
-
}
|
|
74098
|
-
}
|
|
74099
74099
|
handleZoom(e) {
|
|
74100
74100
|
const { scale, scaleCenter } = e;
|
|
74101
74101
|
if (scale === 1) {
|
|
@@ -74119,7 +74119,7 @@
|
|
|
74119
74119
|
}
|
|
74120
74120
|
}
|
|
74121
74121
|
onLayoutEnd() {
|
|
74122
|
-
var _a, _b;
|
|
74122
|
+
var _a, _b, _c;
|
|
74123
74123
|
super.onLayoutEnd();
|
|
74124
74124
|
this._updateSymbolGraphicPosition();
|
|
74125
74125
|
const labelGraphic = (_b = (_a = this._labelMark) === null || _a === void 0 ? void 0 : _a.getComponent()) === null || _b === void 0 ? void 0 : _b.getComponent();
|
|
@@ -74128,7 +74128,10 @@
|
|
|
74128
74128
|
postMatrix: new Matrix()
|
|
74129
74129
|
});
|
|
74130
74130
|
}
|
|
74131
|
-
this.
|
|
74131
|
+
const vgrammarLabel = (_c = this._labelMark) === null || _c === void 0 ? void 0 : _c.getComponent();
|
|
74132
|
+
if (vgrammarLabel) {
|
|
74133
|
+
vgrammarLabel.renderInner();
|
|
74134
|
+
}
|
|
74132
74135
|
}
|
|
74133
74136
|
getDefaultShapeType() {
|
|
74134
74137
|
return 'circle';
|
|
@@ -76554,6 +76557,17 @@
|
|
|
76554
76557
|
bandPosition: this._bandPosition
|
|
76555
76558
|
}));
|
|
76556
76559
|
}
|
|
76560
|
+
_isCategoryAxisInverse() {
|
|
76561
|
+
var _a, _b, _c, _e;
|
|
76562
|
+
return this._direction === "horizontal"
|
|
76563
|
+
? (_b = (_a = this._yAxisHelper) === null || _a === void 0 ? void 0 : _a.isInverse) === null || _b === void 0 ? void 0 : _b.call(_a)
|
|
76564
|
+
: (_e = (_c = this._xAxisHelper) === null || _c === void 0 ? void 0 : _c.isInverse) === null || _e === void 0 ? void 0 : _e.call(_c);
|
|
76565
|
+
}
|
|
76566
|
+
_getLeaderLineCategoryPos(isStart, isDecrease) {
|
|
76567
|
+
const inverse = !!this._isCategoryAxisInverse();
|
|
76568
|
+
const normalPos = isStart ? (isDecrease ? 0 : 1) : isDecrease ? 1 : 0;
|
|
76569
|
+
return inverse ? 1 - normalPos : normalPos;
|
|
76570
|
+
}
|
|
76557
76571
|
initMarkStyle() {
|
|
76558
76572
|
super.initMarkStyle();
|
|
76559
76573
|
const isDecrease = this._spec.calculationMode === 'decrease';
|
|
@@ -76567,9 +76581,9 @@
|
|
|
76567
76581
|
if (!datum.lastIndex) {
|
|
76568
76582
|
return 0;
|
|
76569
76583
|
}
|
|
76570
|
-
return this.totalPositionY(datum, 'lastIndex', isDecrease
|
|
76584
|
+
return this.totalPositionY(datum, 'lastIndex', this._getLeaderLineCategoryPos(true, isDecrease));
|
|
76571
76585
|
},
|
|
76572
|
-
y1: (datum) => this.totalPositionY(datum, 'index', isDecrease
|
|
76586
|
+
y1: (datum) => this.totalPositionY(datum, 'index', this._getLeaderLineCategoryPos(false, isDecrease))
|
|
76573
76587
|
}, 'normal', exports.AttributeLevel.Series);
|
|
76574
76588
|
}
|
|
76575
76589
|
else {
|
|
@@ -76579,9 +76593,9 @@
|
|
|
76579
76593
|
if (!datum.lastIndex) {
|
|
76580
76594
|
return 0;
|
|
76581
76595
|
}
|
|
76582
|
-
return this.totalPositionX(datum, 'lastIndex', isDecrease
|
|
76596
|
+
return this.totalPositionX(datum, 'lastIndex', this._getLeaderLineCategoryPos(true, isDecrease));
|
|
76583
76597
|
},
|
|
76584
|
-
x1: (datum) => this.totalPositionX(datum, 'index', isDecrease
|
|
76598
|
+
x1: (datum) => this.totalPositionX(datum, 'index', this._getLeaderLineCategoryPos(false, isDecrease)),
|
|
76585
76599
|
y: (datum) => this.totalPositionY(datum, 'lastEnd', 0),
|
|
76586
76600
|
y1: (datum) => this.totalPositionY(datum, datum.isTotal ? 'end' : 'start', 0)
|
|
76587
76601
|
}, 'normal', exports.AttributeLevel.Series);
|
|
@@ -79934,14 +79948,11 @@
|
|
|
79934
79948
|
fill: this.getColorAttribute(),
|
|
79935
79949
|
outerRadius: (datum) => valueInScaleRange(this.radiusAxisHelper.dataToPosition([datum[this._radiusField[0]]]), this.radiusAxisHelper.getScale(0)),
|
|
79936
79950
|
innerRadius: (datum) => {
|
|
79937
|
-
var _a;
|
|
79938
79951
|
if (!this.getStack()) {
|
|
79939
|
-
return
|
|
79952
|
+
return this._computeLayoutRadius() * this._innerRadius;
|
|
79940
79953
|
}
|
|
79941
79954
|
const stackStart = valueInScaleRange(this.radiusAxisHelper.dataToPosition([datum[this._innerRadiusField[0]]]), this.radiusAxisHelper.getScale(0));
|
|
79942
|
-
return stackStart <= Number.MIN_VALUE
|
|
79943
|
-
? this._computeLayoutRadius() * ((_a = this._spec.innerRadius) !== null && _a !== void 0 ? _a : 0)
|
|
79944
|
-
: stackStart;
|
|
79955
|
+
return stackStart <= Number.MIN_VALUE ? this._computeLayoutRadius() * this._innerRadius : stackStart;
|
|
79945
79956
|
}
|
|
79946
79957
|
});
|
|
79947
79958
|
}
|
|
@@ -79967,7 +79978,7 @@
|
|
|
79967
79978
|
const appearPreset = (_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.animationAppear) === null || _b === void 0 ? void 0 : _b.preset;
|
|
79968
79979
|
if (this._roseMark) {
|
|
79969
79980
|
const animationParams = {
|
|
79970
|
-
innerRadius: () =>
|
|
79981
|
+
innerRadius: () => this._computeLayoutRadius() * this._innerRadius
|
|
79971
79982
|
};
|
|
79972
79983
|
this._roseMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('rose')) === null || _c === void 0 ? void 0 : _c(animationParams, appearPreset), userAnimationConfig("rose", this._spec, this._markAttributeContext)));
|
|
79973
79984
|
}
|
|
@@ -93875,16 +93886,17 @@
|
|
|
93875
93886
|
|
|
93876
93887
|
class RadarChartSpecTransformer extends RoseLikeChartSpecTransformer {
|
|
93877
93888
|
_getDefaultSeriesSpec(spec) {
|
|
93878
|
-
var _a;
|
|
93889
|
+
var _a, _b, _c, _d;
|
|
93879
93890
|
const series = super._getDefaultSeriesSpec(spec);
|
|
93891
|
+
const areaTheme = (_b = (_a = this._option).getTheme) === null || _b === void 0 ? void 0 : _b.call(_a, 'series', 'radar', 'area');
|
|
93880
93892
|
series.line = spec.line;
|
|
93881
93893
|
series.point = spec.point;
|
|
93882
93894
|
series.stack = spec.stack;
|
|
93883
93895
|
series.percent = spec.percent;
|
|
93884
93896
|
series.area = mergeSpec({
|
|
93885
|
-
visible: false
|
|
93897
|
+
visible: (_c = areaTheme === null || areaTheme === void 0 ? void 0 : areaTheme.visible) !== null && _c !== void 0 ? _c : false
|
|
93886
93898
|
}, spec.area);
|
|
93887
|
-
series.seriesMark = (
|
|
93899
|
+
series.seriesMark = (_d = spec.seriesMark) !== null && _d !== void 0 ? _d : 'area';
|
|
93888
93900
|
series.activePoint = spec.activePoint;
|
|
93889
93901
|
series.pointDis = spec.pointDis;
|
|
93890
93902
|
series.pointDisMul = spec.pointDisMul;
|
|
@@ -95644,6 +95656,7 @@
|
|
|
95644
95656
|
}
|
|
95645
95657
|
clear() {
|
|
95646
95658
|
super.clear();
|
|
95659
|
+
this._legendComponent = null;
|
|
95647
95660
|
this._cacheAttrs = null;
|
|
95648
95661
|
this._preSelectedData = null;
|
|
95649
95662
|
}
|
|
@@ -106385,7 +106398,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
106385
106398
|
const { interaction, state } = this.options;
|
|
106386
106399
|
const statedGraphics = interaction.getStatedGraphics(this);
|
|
106387
106400
|
const g = graphic !== null && graphic !== void 0 ? graphic : statedGraphics === null || statedGraphics === void 0 ? void 0 : statedGraphics[0];
|
|
106388
|
-
if (g && statedGraphics.includes(g)) {
|
|
106401
|
+
if (g && (statedGraphics === null || statedGraphics === void 0 ? void 0 : statedGraphics.includes(g))) {
|
|
106389
106402
|
g.removeState(state);
|
|
106390
106403
|
interaction.setStatedGraphics(this, statedGraphics.filter(sg => sg !== g));
|
|
106391
106404
|
}
|