Skip to content

Commit

Permalink
feat: add options for updateFullDataSync
Browse files Browse the repository at this point in the history
  • Loading branch information
skie1997 committed Jul 4, 2024
1 parent c5bb978 commit f5a04c2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/vchart/src/core/vchart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -900,8 +900,16 @@ export class VChart implements IVChart {
* @returns VChart 实例
* @since 1.3.0
*/
updateFullDataSync(data: IDataValues | IDataValues[], reRender: boolean = true) {
updateFullDataSync(
data: IDataValues | IDataValues[],
reRender: boolean = true,
userUpdateOptions?: IUpdateSpecResult
) {
if (this._chart) {
if (userUpdateOptions?.reAnimate) {
this.stopAnimation();
this._updateAnimateState(true);
}
this._chart.updateFullData(data);
if (reRender) {
this._compiler.render();
Expand Down

0 comments on commit f5a04c2

Please sign in to comment.