@visactor/vchart-types 2.0.10 → 2.0.11-alpha.0

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.
@@ -4,7 +4,7 @@ import type { IModelOption, IModelSpecInfo } from '../../model/interface';
4
4
  import type { IBoundsLike } from '@visactor/vutils';
5
5
  import type { ISeriesSpecInfo } from '../../series/interface';
6
6
  import type { IRegionSpecInfo } from '../../region/interface';
7
- import type { IPerformanceHook } from '../../typings';
7
+ import type { IPerformanceHook, TooltipActiveType } from '../../typings';
8
8
  export interface IChartOption extends Omit<IModelOption, 'getChartViewRect' | 'getChartLayoutRect' | 'globalScale' | 'getChart' | 'getSeriesData' | 'animation'> {
9
9
  container: HTMLElement | null;
10
10
  canvas?: HTMLCanvasElement | OffscreenCanvas | string;
@@ -12,6 +12,10 @@ export interface IChartOption extends Omit<IModelOption, 'getChartViewRect' | 'g
12
12
  viewBox?: IBoundsLike;
13
13
  layout?: LayoutCallBack;
14
14
  disableTriggerEvent?: boolean;
15
+ componentShowContent?: {
16
+ tooltip?: boolean | Partial<Record<TooltipActiveType, boolean>>;
17
+ crosshair?: boolean;
18
+ };
15
19
  performanceHook?: IPerformanceHook;
16
20
  }
17
21
  export interface IChartSpecTransformerOption extends Partial<IChartOption> {
@@ -120,6 +120,10 @@ export interface IModelOption extends ICompilableInitOption {
120
120
  animation?: boolean;
121
121
  onError: (...args: any[]) => void;
122
122
  disableTriggerEvent?: boolean;
123
+ componentShowContent?: {
124
+ tooltip?: boolean | Partial<Record<TooltipActiveType, boolean>>;
125
+ crosshair?: boolean;
126
+ };
123
127
  getDimensionInfo?: (chart: IChart | undefined, pos: ILayoutPoint, isTooltip?: boolean) => IDimensionInfo[] | null;
124
128
  getDimensionInfoByValue?: (axis: IAxis, value: any) => IDimensionInfo | null;
125
129
  getRectByDimensionData?: (dimensionData: IDimensionData, layoutStartPoint: ILayoutPoint) => any;
@@ -27,6 +27,7 @@ import type { IColor, ICustomPath2D, IGraphic, IRichTextCharacter } from '@visac
27
27
  import type { ICommonAxisSpec } from '../../component/axis/interface';
28
28
  import type { IMediaQuerySpec } from './media-query';
29
29
  import type { IModelSpec } from '../../model/interface';
30
+ import type { TooltipActiveType } from '../tooltip/handler';
30
31
  export type IChartPadding = ILayoutOrientPadding | number;
31
32
  export interface IInitOption extends Omit<IRenderOption, 'pluginList'> {
32
33
  dom?: string | HTMLElement;
@@ -39,6 +40,10 @@ export interface IInitOption extends Omit<IRenderOption, 'pluginList'> {
39
40
  onError?: (...args: any[]) => void;
40
41
  theme?: string | ITheme;
41
42
  disableTriggerEvent?: boolean;
43
+ componentShowContent?: {
44
+ tooltip?: boolean | Partial<Record<TooltipActiveType, boolean>>;
45
+ crosshair?: boolean;
46
+ };
42
47
  resizeDelay?: number;
43
48
  }
44
49
  export declare enum RenderModeEnum {