@visactor/vchart-types 1.11.7-alpha.1 → 1.11.7-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.
@@ -17,7 +17,7 @@ import type { Datum, IPoint, IRegionQuerier, IShowTooltipOption, ISpec, Maybe, M
17
17
  import type { IBoundsLike, ILogger } from '@visactor/vutils';
18
18
  import { ThemeManager } from '../theme/theme-manager';
19
19
  import type { ITheme } from '../theme';
20
- import type { IModel, IUpdateSpecResult } from '../model/interface';
20
+ import type { IModel, IUpdateDataResult, IUpdateSpecResult } from '../model/interface';
21
21
  import { Compiler } from '../compile/compiler';
22
22
  import type { IMorphConfig } from '../animation/spec';
23
23
  import type { DataLinkAxis, DataLinkSeries, IGlobalConfig, IVChart, IVChartRenderOption } from './interface';
@@ -102,14 +102,14 @@ export declare class VChart implements IVChart {
102
102
  protected _renderAsync(option?: IVChartRenderOption): Promise<IVChart>;
103
103
  private _updateAnimateState;
104
104
  release(): void;
105
- updateData(id: StringOrNumber, data: DataView | Datum[] | string, options?: IParserOptions): Promise<IVChart>;
105
+ updateData(id: StringOrNumber, data: DataView | Datum[] | string, parserOptions?: IParserOptions, userUpdateOptions?: IUpdateDataResult): Promise<IVChart>;
106
106
  private _updateDataById;
107
107
  updateDataInBatches(list: {
108
108
  id: string;
109
109
  data: Datum[];
110
110
  options?: IParserOptions;
111
111
  }[]): Promise<IVChart>;
112
- updateDataSync(id: StringOrNumber, data: DataView | Datum[] | string, options?: IParserOptions): IVChart;
112
+ updateDataSync(id: StringOrNumber, data: DataView | Datum[] | string, parserOptions?: IParserOptions, userUpdateOptions?: IUpdateDataResult): IVChart;
113
113
  updateFullDataSync(data: IDataValues | IDataValues[], reRender?: boolean): IVChart;
114
114
  updateFullData(data: IDataValues | IDataValues[], reRender?: boolean): Promise<IVChart>;
115
115
  updateSpec(spec: ISpec, forceMerge?: boolean, morphConfig?: IMorphConfig, userUpdateOptions?: IUpdateSpecResult): Promise<IVChart>;
@@ -46,6 +46,9 @@ export interface IUpdateSpecResult {
46
46
  reTransformSpec?: boolean;
47
47
  reAnimate?: boolean;
48
48
  }
49
+ export interface IUpdateDataResult {
50
+ reAnimate?: boolean;
51
+ }
49
52
  export interface IModelProduct {
50
53
  srData: IData;
51
54
  }