@visactor/vchart-types 1.11.7-alpha.2 → 1.11.7

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.
@@ -28,7 +28,7 @@ export declare class Indicator<T extends IIndicatorSpec> extends BaseComponent<T
28
28
  onRender(ctx: any): void;
29
29
  changeRegions(regions: IRegion[]): void;
30
30
  protected initEvent(): void;
31
- private updateDatum;
31
+ updateDatum(datum: any): void;
32
32
  private initData;
33
33
  updateLayoutAttribute(): void;
34
34
  private _getIndicatorAttrs;
@@ -16,7 +16,9 @@ export interface IIndicatorItemSpec {
16
16
  text?: IFormatMethod<[activeDatum: Datum]> | ITextMarkSpec['text'] | ReturnType<IFormatMethod<[activeDatum: Datum]>>;
17
17
  };
18
18
  }
19
- export type IIndicator = IComponent;
19
+ export type IIndicator = IComponent & {
20
+ updateDatum: (datum: any) => void;
21
+ };
20
22
  export interface IIndicatorSpec extends IComponentSpec {
21
23
  visible?: boolean;
22
24
  fixed?: boolean;
@@ -16,7 +16,7 @@ export type IMarkPointGeoNameSpec = {
16
16
  areaName: string | IDataPosCallback;
17
17
  };
18
18
  export type IMarkPointCoordinateSpec = {
19
- coordinates: IDataPointSpec;
19
+ coordinate: IDataPointSpec;
20
20
  coordinatesOffset?: OffsetPoint;
21
21
  };
22
22
  export type IMarkPointPositionsSpec = {
@@ -6,6 +6,7 @@ export interface ITooltipSpec extends Partial<ITooltipActiveTypeAsKeys<ITooltipP
6
6
  activeType?: TooltipActiveType | TooltipActiveType[];
7
7
  trigger?: MaybeArray<'hover' | 'click'> | 'none';
8
8
  triggerOff?: MaybeArray<'hover' | 'click'> | 'none';
9
+ hideTimer?: number;
9
10
  lockAfterClick?: boolean;
10
11
  style?: Omit<ITooltipTheme<string>, 'offset'>;
11
12
  handler?: Partial<ITooltipHandlerSpec>;
@@ -21,6 +21,7 @@ export declare class Tooltip extends BaseComponent<any> implements ITooltip {
21
21
  static specKey: string;
22
22
  specKey: string;
23
23
  layoutType: 'none';
24
+ private _timer?;
24
25
  protected _spec: ITooltipSpec;
25
26
  static getSpecInfo(chartSpec: any): Maybe<IModelSpecInfo[]>;
26
27
  tooltipHandler?: ITooltipHandler;
@@ -48,7 +49,7 @@ export declare class Tooltip extends BaseComponent<any> implements ITooltip {
48
49
  protected _initEvent(): void;
49
50
  protected _mountEvent: (eType: EventType, query: EventQuery, callback: EventCallback<any>) => void;
50
51
  protected _getMouseOutHandler: (needPointerDetection?: boolean) => (params: BaseEventParams) => void;
51
- protected _handleChartMouseOut: (params: BaseEventParams) => void;
52
+ protected _handleChartMouseOut: (params?: BaseEventParams) => void;
52
53
  protected _getMouseMoveHandler: (isClick: boolean) => (params: BaseEventParams) => void;
53
54
  protected _showTooltipByMouseEvent: (activeType: TooltipActiveType, mouseEventData: TotalMouseEventData, params: BaseEventParams, isClick: boolean, useCache?: boolean) => boolean;
54
55
  protected _getMouseEventData: (params: BaseEventParams) => TotalMouseEventData;
@@ -110,7 +110,7 @@ export declare class VChart implements IVChart {
110
110
  options?: IParserOptions;
111
111
  }[]): Promise<IVChart>;
112
112
  updateDataSync(id: StringOrNumber, data: DataView | Datum[] | string, parserOptions?: IParserOptions, userUpdateOptions?: IUpdateDataResult): IVChart;
113
- updateFullDataSync(data: IDataValues | IDataValues[], reRender?: boolean): IVChart;
113
+ updateFullDataSync(data: IDataValues | IDataValues[], reRender?: boolean, userUpdateOptions?: IUpdateSpecResult): IVChart;
114
114
  updateFullData(data: IDataValues | IDataValues[], reRender?: boolean): Promise<IVChart>;
115
115
  updateSpec(spec: ISpec, forceMerge?: boolean, morphConfig?: IMorphConfig, userUpdateOptions?: IUpdateSpecResult): Promise<IVChart>;
116
116
  updateSpecSync(spec: ISpec, forceMerge?: boolean, morphConfig?: IMorphConfig, userUpdateOptions?: IUpdateSpecResult): IVChart;
@@ -184,6 +184,8 @@ export declare class VChart implements IVChart {
184
184
  unregisterFunction(key: string): void;
185
185
  getFunctionList(): string[];
186
186
  setRuntimeSpec(spec: any): void;
187
+ updateIndicatorDataById(id: string, datum?: Datum): void;
188
+ updateIndicatorDataByIndex(index?: number, datum?: Datum): void;
187
189
  private _initChartPlugin;
188
190
  private _chartPluginApply;
189
191
  protected _getMode(): (typeof RenderModeEnum)["desktop-browser"] | "desktop-browser" | "mobile-browser" | "node" | "worker" | "miniApp" | "wx" | "tt" | "harmony" | "desktop-miniApp" | "lynx";
@@ -59,7 +59,7 @@ export interface IWordCloudSeriesBaseSpec extends ISeriesSpec, IAnimationSpec<st
59
59
  fontWeightField?: string;
60
60
  fontStyleField?: string;
61
61
  colorHexField?: string;
62
- colorMode?: 'linear' | 'ordinal';
62
+ colorMode?: 'ordinal';
63
63
  colorList?: string[];
64
64
  rotateAngles?: number[];
65
65
  fontWeightRange?: [number, number];
@@ -1,4 +1,5 @@
1
1
  export declare function transformComponentStyle(cfg?: any): any;
2
2
  export declare function transformStateStyle(stateStyle: any): {};
3
3
  export declare function transformAxisLabelStateStyle(stateStyle: any): {};
4
+ export declare function transformIndicatorStyle(style: any, datum: any): any;
4
5
  export declare function transformToGraphic(style: any): any;