@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.es.js
CHANGED
|
@@ -53660,27 +53660,27 @@ function specTransform(spec, special = {
|
|
|
53660
53660
|
}
|
|
53661
53661
|
return spec;
|
|
53662
53662
|
}
|
|
53663
|
-
function functionTransform(
|
|
53664
|
-
|
|
53665
|
-
|
|
53663
|
+
function functionTransform(value, registry) {
|
|
53664
|
+
var _a;
|
|
53665
|
+
if (!value) {
|
|
53666
|
+
return value;
|
|
53666
53667
|
}
|
|
53667
|
-
if (
|
|
53668
|
+
if (isString$1(value)) {
|
|
53669
|
+
return (_a = registry.getFunction(value)) !== null && _a !== void 0 ? _a : value;
|
|
53670
|
+
}
|
|
53671
|
+
if (isPlainObject$1(value)) {
|
|
53668
53672
|
const result = {};
|
|
53669
|
-
for (const key in
|
|
53670
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
53671
|
-
|
|
53672
|
-
result[key] = VChart.getFunction(spec[key]);
|
|
53673
|
-
continue;
|
|
53674
|
-
}
|
|
53675
|
-
result[key] = functionTransform(spec[key], VChart);
|
|
53673
|
+
for (const key in value) {
|
|
53674
|
+
if (Object.prototype.hasOwnProperty.call(value, key)) {
|
|
53675
|
+
result[key] = functionTransform(value[key], registry);
|
|
53676
53676
|
}
|
|
53677
53677
|
}
|
|
53678
53678
|
return result;
|
|
53679
53679
|
}
|
|
53680
|
-
if (isArray$1(
|
|
53681
|
-
return
|
|
53680
|
+
if (isArray$1(value)) {
|
|
53681
|
+
return value.map(item => functionTransform(item, registry));
|
|
53682
53682
|
}
|
|
53683
|
-
return
|
|
53683
|
+
return value;
|
|
53684
53684
|
}
|
|
53685
53685
|
function transformFunctionAttribute(att, ...args) {
|
|
53686
53686
|
if (isFunction$1(att)) {
|
|
@@ -55398,6 +55398,33 @@ class Compiler {
|
|
|
55398
55398
|
updateLayoutTag() {
|
|
55399
55399
|
this._layoutState = LayoutState.before;
|
|
55400
55400
|
}
|
|
55401
|
+
_isGeoRegionRoamDragEnabled() {
|
|
55402
|
+
var _a, _b;
|
|
55403
|
+
const chartSpec = (_b = (_a = this._compileChart) === null || _a === void 0 ? void 0 : _a.getSpec) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
55404
|
+
const regions = chartSpec === null || chartSpec === void 0 ? void 0 : chartSpec.region;
|
|
55405
|
+
if (!isArray$1(regions)) {
|
|
55406
|
+
return false;
|
|
55407
|
+
}
|
|
55408
|
+
return regions.some((region) => {
|
|
55409
|
+
var _a;
|
|
55410
|
+
if ((region === null || region === void 0 ? void 0 : region.coordinate) !== 'geo' || !region.roam) {
|
|
55411
|
+
return false;
|
|
55412
|
+
}
|
|
55413
|
+
if (region.roam === true) {
|
|
55414
|
+
return true;
|
|
55415
|
+
}
|
|
55416
|
+
return (_a = region.roam.drag) !== null && _a !== void 0 ? _a : true;
|
|
55417
|
+
});
|
|
55418
|
+
}
|
|
55419
|
+
_shouldDisableCanvasTouchAction() {
|
|
55420
|
+
if (!isTrueBrowser(this._option.mode)) {
|
|
55421
|
+
return false;
|
|
55422
|
+
}
|
|
55423
|
+
const supportsTouchEvents = isValid$1(this._option.supportsTouchEvents)
|
|
55424
|
+
? this._option.supportsTouchEvents
|
|
55425
|
+
: vglobal.supportsTouchEvents;
|
|
55426
|
+
return supportsTouchEvents === false && this._isGeoRegionRoamDragEnabled();
|
|
55427
|
+
}
|
|
55401
55428
|
_setCanvasStyle() {
|
|
55402
55429
|
if (!this._stage) {
|
|
55403
55430
|
return;
|
|
@@ -55408,6 +55435,7 @@ class Compiler {
|
|
|
55408
55435
|
const canvas = this.getCanvas();
|
|
55409
55436
|
if (canvas) {
|
|
55410
55437
|
canvas.style.display = 'block';
|
|
55438
|
+
canvas.style.touchAction = this._shouldDisableCanvasTouchAction() ? 'none' : '';
|
|
55411
55439
|
}
|
|
55412
55440
|
}
|
|
55413
55441
|
}
|
|
@@ -55426,6 +55454,7 @@ class Compiler {
|
|
|
55426
55454
|
this._cachedMarks = null;
|
|
55427
55455
|
}
|
|
55428
55456
|
chart.compile();
|
|
55457
|
+
this._setCanvasStyle();
|
|
55429
55458
|
chart.afterCompile();
|
|
55430
55459
|
}
|
|
55431
55460
|
clearNextRender() {
|
|
@@ -60864,6 +60893,7 @@ class VChart {
|
|
|
60864
60893
|
}
|
|
60865
60894
|
let theme = this._currentTheme;
|
|
60866
60895
|
keys.forEach((key, index) => {
|
|
60896
|
+
var _a;
|
|
60867
60897
|
if (index === 1 && (keys[0] === 'series' || keys[0] === 'component')) {
|
|
60868
60898
|
const buildInTheme = keys[0] === 'series' ? Factory.getSeriesBuiltInTheme(key) : Factory.getComponentBuiltInTheme(key);
|
|
60869
60899
|
theme = theme ? mergeSpec({}, buildInTheme, theme[key]) : buildInTheme;
|
|
@@ -60875,6 +60905,9 @@ class VChart {
|
|
|
60875
60905
|
theme = preprocessTheme({
|
|
60876
60906
|
[key]: theme
|
|
60877
60907
|
}, this._currentTheme.colorScheme, this._currentTheme.token)[key];
|
|
60908
|
+
if ((_a = this.getFunctionList()) === null || _a === void 0 ? void 0 : _a.length) {
|
|
60909
|
+
theme = functionTransform(theme, this);
|
|
60910
|
+
}
|
|
60878
60911
|
}
|
|
60879
60912
|
});
|
|
60880
60913
|
this._cachedProcessedTheme[cacheKey] = theme;
|
|
@@ -62179,7 +62212,7 @@ const lookup = (data, opt) => {
|
|
|
62179
62212
|
});
|
|
62180
62213
|
};
|
|
62181
62214
|
|
|
62182
|
-
const version = "2.0.23-alpha.
|
|
62215
|
+
const version = "2.0.23-alpha.8";
|
|
62183
62216
|
|
|
62184
62217
|
const addVChartProperty = (data, op) => {
|
|
62185
62218
|
const context = op.beforeCall();
|
|
@@ -65394,7 +65427,7 @@ class BaseLineMark extends BaseMark {
|
|
|
65394
65427
|
: null));
|
|
65395
65428
|
}
|
|
65396
65429
|
_runPointsEncoder(newStyles, g, attrs = {}) {
|
|
65397
|
-
var _a, _b
|
|
65430
|
+
var _a, _b;
|
|
65398
65431
|
const data = g.context.data;
|
|
65399
65432
|
const lineAttrs = [];
|
|
65400
65433
|
const points = [];
|
|
@@ -65419,7 +65452,7 @@ class BaseLineMark extends BaseMark {
|
|
|
65419
65452
|
points[index].context = (_a = this._keyGetter(datum)) !== null && _a !== void 0 ? _a : index;
|
|
65420
65453
|
});
|
|
65421
65454
|
if (progressive) {
|
|
65422
|
-
const segments = (
|
|
65455
|
+
const segments = ((_b = g.attribute) === null || _b === void 0 ? void 0 : _b.segments) ? [...g.attribute.segments] : [];
|
|
65423
65456
|
segments.push({
|
|
65424
65457
|
points
|
|
65425
65458
|
});
|
|
@@ -70221,21 +70254,24 @@ class BaseChart extends CompilableBase {
|
|
|
70221
70254
|
this._interaction = new Interaction();
|
|
70222
70255
|
const series = this.getAllSeries();
|
|
70223
70256
|
const mergedTriggers = [];
|
|
70224
|
-
const
|
|
70257
|
+
const groupedTriggers = [];
|
|
70225
70258
|
series.forEach(s => {
|
|
70226
70259
|
const triggers = s.getInteractionTriggers();
|
|
70227
70260
|
if (triggers && triggers.length) {
|
|
70228
70261
|
const regionId = s.getRegion().id;
|
|
70229
70262
|
triggers.forEach(({ trigger, marks }) => {
|
|
70230
|
-
const
|
|
70231
|
-
if (
|
|
70232
|
-
marks.
|
|
70233
|
-
mergedTriggersMarks[interactionId].marks.push(m);
|
|
70234
|
-
});
|
|
70263
|
+
const sameTrigger = groupedTriggers.find(item => item.regionId === regionId && isEqual(item.config, trigger));
|
|
70264
|
+
if (sameTrigger) {
|
|
70265
|
+
sameTrigger.trigger.marks.push(...marks);
|
|
70235
70266
|
}
|
|
70236
70267
|
else {
|
|
70237
|
-
|
|
70238
|
-
|
|
70268
|
+
const mergedTrigger = Object.assign(Object.assign({}, trigger), { marks: [...marks] });
|
|
70269
|
+
groupedTriggers.push({
|
|
70270
|
+
regionId,
|
|
70271
|
+
config: Object.assign({}, trigger),
|
|
70272
|
+
trigger: mergedTrigger
|
|
70273
|
+
});
|
|
70274
|
+
mergedTriggers.push(mergedTrigger);
|
|
70239
70275
|
}
|
|
70240
70276
|
});
|
|
70241
70277
|
}
|
|
@@ -73676,7 +73712,7 @@ class BarSeries extends CartesianSeries {
|
|
|
73676
73712
|
const fieldsX = this._fieldX;
|
|
73677
73713
|
this._data.setTransform([
|
|
73678
73714
|
{
|
|
73679
|
-
type: '
|
|
73715
|
+
type: 'sampling',
|
|
73680
73716
|
size: this._direction === "horizontal" ? height : width,
|
|
73681
73717
|
factor: this._spec.samplingFactor,
|
|
73682
73718
|
yfield: this._direction === "horizontal" ? fieldsX[0] : fieldsY[0],
|
|
@@ -74007,10 +74043,6 @@ class ScatterSeries extends CartesianSeries {
|
|
|
74007
74043
|
if (this._symbolMark.getProduct()) {
|
|
74008
74044
|
this._symbolMark.compileEncode();
|
|
74009
74045
|
}
|
|
74010
|
-
if (this._isGeoCoordinateSeries()) {
|
|
74011
|
-
this._updateSymbolGraphicPosition();
|
|
74012
|
-
this._refreshLabelComponent(true, true);
|
|
74013
|
-
}
|
|
74014
74046
|
}
|
|
74015
74047
|
initLabelMarkStyle(labelMark) {
|
|
74016
74048
|
if (!labelMark) {
|
|
@@ -74058,38 +74090,6 @@ class ScatterSeries extends CartesianSeries {
|
|
|
74058
74090
|
}
|
|
74059
74091
|
return labelGraphic;
|
|
74060
74092
|
}
|
|
74061
|
-
_isGeoCoordinateSeries() {
|
|
74062
|
-
var _a, _b;
|
|
74063
|
-
return ((_b = (_a = this.getXAxisHelper()) === null || _a === void 0 ? void 0 : _a.getAxisType) === null || _b === void 0 ? void 0 : _b.call(_a)) === ComponentTypeEnum.geoCoordinate;
|
|
74064
|
-
}
|
|
74065
|
-
_refreshLabelComponent(resetPostMatrix = false, disableAnimation = false) {
|
|
74066
|
-
var _a, _b;
|
|
74067
|
-
const vgrammarLabel = (_a = this._labelMark) === null || _a === void 0 ? void 0 : _a.getComponent();
|
|
74068
|
-
const labelGraphic = (_b = vgrammarLabel === null || vgrammarLabel === void 0 ? void 0 : vgrammarLabel.getComponent) === null || _b === void 0 ? void 0 : _b.call(vgrammarLabel);
|
|
74069
|
-
if (resetPostMatrix) {
|
|
74070
|
-
if (labelGraphic === null || labelGraphic === void 0 ? void 0 : labelGraphic.attribute.postMatrix) {
|
|
74071
|
-
labelGraphic.setAttributes({
|
|
74072
|
-
postMatrix: new Matrix()
|
|
74073
|
-
});
|
|
74074
|
-
}
|
|
74075
|
-
}
|
|
74076
|
-
if (disableAnimation && (labelGraphic === null || labelGraphic === void 0 ? void 0 : labelGraphic.disableAnimation)) {
|
|
74077
|
-
labelGraphic.disableAnimation();
|
|
74078
|
-
if (!this._enableLabelAnimationHook) {
|
|
74079
|
-
this._enableLabelAnimationHook = () => {
|
|
74080
|
-
var _a, _b, _c, _d;
|
|
74081
|
-
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);
|
|
74082
|
-
(_d = currentLabelGraphic === null || currentLabelGraphic === void 0 ? void 0 : currentLabelGraphic.enableAnimation) === null || _d === void 0 ? void 0 : _d.call(currentLabelGraphic);
|
|
74083
|
-
this.event.off(HOOK_EVENT.AFTER_MARK_RENDER_END, this._enableLabelAnimationHook);
|
|
74084
|
-
this._enableLabelAnimationHook = undefined;
|
|
74085
|
-
};
|
|
74086
|
-
this.event.on(HOOK_EVENT.AFTER_MARK_RENDER_END, this._enableLabelAnimationHook);
|
|
74087
|
-
}
|
|
74088
|
-
}
|
|
74089
|
-
if (vgrammarLabel === null || vgrammarLabel === void 0 ? void 0 : vgrammarLabel.getProduct()) {
|
|
74090
|
-
vgrammarLabel.renderInner();
|
|
74091
|
-
}
|
|
74092
|
-
}
|
|
74093
74093
|
handleZoom(e) {
|
|
74094
74094
|
const { scale, scaleCenter } = e;
|
|
74095
74095
|
if (scale === 1) {
|
|
@@ -74113,7 +74113,7 @@ class ScatterSeries extends CartesianSeries {
|
|
|
74113
74113
|
}
|
|
74114
74114
|
}
|
|
74115
74115
|
onLayoutEnd() {
|
|
74116
|
-
var _a, _b;
|
|
74116
|
+
var _a, _b, _c;
|
|
74117
74117
|
super.onLayoutEnd();
|
|
74118
74118
|
this._updateSymbolGraphicPosition();
|
|
74119
74119
|
const labelGraphic = (_b = (_a = this._labelMark) === null || _a === void 0 ? void 0 : _a.getComponent()) === null || _b === void 0 ? void 0 : _b.getComponent();
|
|
@@ -74122,7 +74122,10 @@ class ScatterSeries extends CartesianSeries {
|
|
|
74122
74122
|
postMatrix: new Matrix()
|
|
74123
74123
|
});
|
|
74124
74124
|
}
|
|
74125
|
-
this.
|
|
74125
|
+
const vgrammarLabel = (_c = this._labelMark) === null || _c === void 0 ? void 0 : _c.getComponent();
|
|
74126
|
+
if (vgrammarLabel) {
|
|
74127
|
+
vgrammarLabel.renderInner();
|
|
74128
|
+
}
|
|
74126
74129
|
}
|
|
74127
74130
|
getDefaultShapeType() {
|
|
74128
74131
|
return 'circle';
|
|
@@ -76548,6 +76551,17 @@ class WaterfallSeries extends BarSeries {
|
|
|
76548
76551
|
bandPosition: this._bandPosition
|
|
76549
76552
|
}));
|
|
76550
76553
|
}
|
|
76554
|
+
_isCategoryAxisInverse() {
|
|
76555
|
+
var _a, _b, _c, _e;
|
|
76556
|
+
return this._direction === "horizontal"
|
|
76557
|
+
? (_b = (_a = this._yAxisHelper) === null || _a === void 0 ? void 0 : _a.isInverse) === null || _b === void 0 ? void 0 : _b.call(_a)
|
|
76558
|
+
: (_e = (_c = this._xAxisHelper) === null || _c === void 0 ? void 0 : _c.isInverse) === null || _e === void 0 ? void 0 : _e.call(_c);
|
|
76559
|
+
}
|
|
76560
|
+
_getLeaderLineCategoryPos(isStart, isDecrease) {
|
|
76561
|
+
const inverse = !!this._isCategoryAxisInverse();
|
|
76562
|
+
const normalPos = isStart ? (isDecrease ? 0 : 1) : isDecrease ? 1 : 0;
|
|
76563
|
+
return inverse ? 1 - normalPos : normalPos;
|
|
76564
|
+
}
|
|
76551
76565
|
initMarkStyle() {
|
|
76552
76566
|
super.initMarkStyle();
|
|
76553
76567
|
const isDecrease = this._spec.calculationMode === 'decrease';
|
|
@@ -76561,9 +76575,9 @@ class WaterfallSeries extends BarSeries {
|
|
|
76561
76575
|
if (!datum.lastIndex) {
|
|
76562
76576
|
return 0;
|
|
76563
76577
|
}
|
|
76564
|
-
return this.totalPositionY(datum, 'lastIndex', isDecrease
|
|
76578
|
+
return this.totalPositionY(datum, 'lastIndex', this._getLeaderLineCategoryPos(true, isDecrease));
|
|
76565
76579
|
},
|
|
76566
|
-
y1: (datum) => this.totalPositionY(datum, 'index', isDecrease
|
|
76580
|
+
y1: (datum) => this.totalPositionY(datum, 'index', this._getLeaderLineCategoryPos(false, isDecrease))
|
|
76567
76581
|
}, 'normal', AttributeLevel.Series);
|
|
76568
76582
|
}
|
|
76569
76583
|
else {
|
|
@@ -76573,9 +76587,9 @@ class WaterfallSeries extends BarSeries {
|
|
|
76573
76587
|
if (!datum.lastIndex) {
|
|
76574
76588
|
return 0;
|
|
76575
76589
|
}
|
|
76576
|
-
return this.totalPositionX(datum, 'lastIndex', isDecrease
|
|
76590
|
+
return this.totalPositionX(datum, 'lastIndex', this._getLeaderLineCategoryPos(true, isDecrease));
|
|
76577
76591
|
},
|
|
76578
|
-
x1: (datum) => this.totalPositionX(datum, 'index', isDecrease
|
|
76592
|
+
x1: (datum) => this.totalPositionX(datum, 'index', this._getLeaderLineCategoryPos(false, isDecrease)),
|
|
76579
76593
|
y: (datum) => this.totalPositionY(datum, 'lastEnd', 0),
|
|
76580
76594
|
y1: (datum) => this.totalPositionY(datum, datum.isTotal ? 'end' : 'start', 0)
|
|
76581
76595
|
}, 'normal', AttributeLevel.Series);
|
|
@@ -79928,14 +79942,11 @@ class RoseSeries extends RoseLikeSeries {
|
|
|
79928
79942
|
fill: this.getColorAttribute(),
|
|
79929
79943
|
outerRadius: (datum) => valueInScaleRange(this.radiusAxisHelper.dataToPosition([datum[this._radiusField[0]]]), this.radiusAxisHelper.getScale(0)),
|
|
79930
79944
|
innerRadius: (datum) => {
|
|
79931
|
-
var _a;
|
|
79932
79945
|
if (!this.getStack()) {
|
|
79933
|
-
return
|
|
79946
|
+
return this._computeLayoutRadius() * this._innerRadius;
|
|
79934
79947
|
}
|
|
79935
79948
|
const stackStart = valueInScaleRange(this.radiusAxisHelper.dataToPosition([datum[this._innerRadiusField[0]]]), this.radiusAxisHelper.getScale(0));
|
|
79936
|
-
return stackStart <= Number.MIN_VALUE
|
|
79937
|
-
? this._computeLayoutRadius() * ((_a = this._spec.innerRadius) !== null && _a !== void 0 ? _a : 0)
|
|
79938
|
-
: stackStart;
|
|
79949
|
+
return stackStart <= Number.MIN_VALUE ? this._computeLayoutRadius() * this._innerRadius : stackStart;
|
|
79939
79950
|
}
|
|
79940
79951
|
});
|
|
79941
79952
|
}
|
|
@@ -79961,7 +79972,7 @@ class RoseSeries extends RoseLikeSeries {
|
|
|
79961
79972
|
const appearPreset = (_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.animationAppear) === null || _b === void 0 ? void 0 : _b.preset;
|
|
79962
79973
|
if (this._roseMark) {
|
|
79963
79974
|
const animationParams = {
|
|
79964
|
-
innerRadius: () =>
|
|
79975
|
+
innerRadius: () => this._computeLayoutRadius() * this._innerRadius
|
|
79965
79976
|
};
|
|
79966
79977
|
this._roseMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('rose')) === null || _c === void 0 ? void 0 : _c(animationParams, appearPreset), userAnimationConfig("rose", this._spec, this._markAttributeContext)));
|
|
79967
79978
|
}
|
|
@@ -93869,16 +93880,17 @@ const registerRoseChart = () => {
|
|
|
93869
93880
|
|
|
93870
93881
|
class RadarChartSpecTransformer extends RoseLikeChartSpecTransformer {
|
|
93871
93882
|
_getDefaultSeriesSpec(spec) {
|
|
93872
|
-
var _a;
|
|
93883
|
+
var _a, _b, _c, _d;
|
|
93873
93884
|
const series = super._getDefaultSeriesSpec(spec);
|
|
93885
|
+
const areaTheme = (_b = (_a = this._option).getTheme) === null || _b === void 0 ? void 0 : _b.call(_a, 'series', 'radar', 'area');
|
|
93874
93886
|
series.line = spec.line;
|
|
93875
93887
|
series.point = spec.point;
|
|
93876
93888
|
series.stack = spec.stack;
|
|
93877
93889
|
series.percent = spec.percent;
|
|
93878
93890
|
series.area = mergeSpec({
|
|
93879
|
-
visible: false
|
|
93891
|
+
visible: (_c = areaTheme === null || areaTheme === void 0 ? void 0 : areaTheme.visible) !== null && _c !== void 0 ? _c : false
|
|
93880
93892
|
}, spec.area);
|
|
93881
|
-
series.seriesMark = (
|
|
93893
|
+
series.seriesMark = (_d = spec.seriesMark) !== null && _d !== void 0 ? _d : 'area';
|
|
93882
93894
|
series.activePoint = spec.activePoint;
|
|
93883
93895
|
series.pointDis = spec.pointDis;
|
|
93884
93896
|
series.pointDisMul = spec.pointDisMul;
|
|
@@ -95638,6 +95650,7 @@ class BaseLegend extends BaseComponent {
|
|
|
95638
95650
|
}
|
|
95639
95651
|
clear() {
|
|
95640
95652
|
super.clear();
|
|
95653
|
+
this._legendComponent = null;
|
|
95641
95654
|
this._cacheAttrs = null;
|
|
95642
95655
|
this._preSelectedData = null;
|
|
95643
95656
|
}
|
|
@@ -106379,7 +106392,7 @@ class ElementActive extends BaseTrigger {
|
|
|
106379
106392
|
const { interaction, state } = this.options;
|
|
106380
106393
|
const statedGraphics = interaction.getStatedGraphics(this);
|
|
106381
106394
|
const g = graphic !== null && graphic !== void 0 ? graphic : statedGraphics === null || statedGraphics === void 0 ? void 0 : statedGraphics[0];
|
|
106382
|
-
if (g && statedGraphics.includes(g)) {
|
|
106395
|
+
if (g && (statedGraphics === null || statedGraphics === void 0 ? void 0 : statedGraphics.includes(g))) {
|
|
106383
106396
|
g.removeState(state);
|
|
106384
106397
|
interaction.setStatedGraphics(this, statedGraphics.filter(sg => sg !== g));
|
|
106385
106398
|
}
|