mirror of
https://github.com/VisActor/VChart
synced 2024-11-23 01:29:13 +00:00
refactor: preserve compatibility
This commit is contained in:
parent
ac66a2c3d0
commit
29c2e60fe3
@ -443,9 +443,9 @@ export class BasePieSeries<T extends IBasePieSeriesSpec> extends PolarSeries<T>
|
||||
const prevMarkElement = [...markElements].reverse().find(e => e.data[0]?.[DEFAULT_DATA_INDEX] < dataIndex);
|
||||
|
||||
if (outState.includes(state)) {
|
||||
return prevMarkElement.getNextGraphicAttributes()?.endAngle;
|
||||
return prevMarkElement?.getNextGraphicAttributes()?.endAngle;
|
||||
}
|
||||
return prevMarkElement.getGraphicAttribute('endAngle', true);
|
||||
return prevMarkElement?.getGraphicAttribute('endAngle', true);
|
||||
}
|
||||
};
|
||||
const appearPreset = (this._spec?.animationAppear as IStateAnimateSpec<PieAppearPreset>)?.preset;
|
||||
|
Loading…
Reference in New Issue
Block a user