@visactor/vchart-types 2.0.5-alpha.0 → 2.0.5-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.
@@ -95,7 +95,8 @@ export declare enum ChartEvent {
95
95
  afterResize = "afterResize",
96
96
  afterRender = "afterRender",
97
97
  afterLayout = "afterLayout",
98
- afterMarkLayoutEnd = "afterMarkLayoutEnd"
98
+ afterMarkLayoutEnd = "afterMarkLayoutEnd",
99
+ afterWordcloudShapeDraw = "afterWordcloudShapeDraw"
99
100
  }
100
101
  export declare enum Event_Source_Type {
101
102
  chart = "chart",
@@ -5,7 +5,7 @@ import { RenderModeEnum } from '../typings/spec/common';
5
5
  import type { ISeriesConstructor } from '../series/interface';
6
6
  import { type DimensionIndexOption, type IChart, type IChartConstructor, type IChartOption, type IChartSpecInfo } from '../chart/interface';
7
7
  import type { IComponentConstructor } from '../component/interface';
8
- import type { EventCallback, EventQuery, EventType, ExtendEventParam } from '../event/interface';
8
+ import type { EventCallback, EventQuery, EventType, ExtendEventParam, IEvent } from '../event/interface';
9
9
  import type { IParserOptions, Transform } from '@visactor/vdataset';
10
10
  import { DataSet, DataView } from '@visactor/vdataset';
11
11
  import type { IStage } from '@visactor/vrender-core';
@@ -59,6 +59,7 @@ export declare class VChart implements IVChart {
59
59
  private _chartSpecTransformer;
60
60
  private _compiler;
61
61
  private _event;
62
+ get event(): IEvent;
62
63
  private _userEvents;
63
64
  private _eventDispatcher;
64
65
  private _dataSet;
@@ -123,6 +123,7 @@ export interface IModelOption extends ICompilableInitOption {
123
123
  getDimensionInfo?: (chart: IChart | undefined, pos: ILayoutPoint, isTooltip?: boolean) => IDimensionInfo[] | null;
124
124
  getDimensionInfoByValue?: (axis: IAxis, value: any) => IDimensionInfo | null;
125
125
  getRectByDimensionData?: (dimensionData: IDimensionData, layoutStartPoint: ILayoutPoint) => any;
126
+ dispatchEvent?: (key: string, params?: any) => void;
126
127
  }
127
128
  export interface IModelSpecInfo<T extends Record<string, unknown> = any> {
128
129
  type: string | ComponentTypeEnum | SeriesTypeEnum;