@visactor/vchart-types 2.0.13-alpha.2 → 2.0.13-alpha.4

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.
@@ -91,5 +91,8 @@ export declare class Brush<T extends IBrushSpec = IBrushSpec> extends BaseCompon
91
91
  protected _getNeedClearVRenderComponents(): IGraphic[];
92
92
  clearGraphic(): void;
93
93
  clear(): void;
94
+ disableDimensionHover(): void;
95
+ enableDimensionHover(): void;
96
+ clearBrushStateAndMask(): void;
94
97
  }
95
98
  export declare const registerBrush: () => void;
@@ -16,6 +16,7 @@ interface IBrushDataBindSpec {
16
16
  axisIndex?: number | number[];
17
17
  axisRangeExpand?: number;
18
18
  beforeBrushChange?: (e: FederatedPointerEvent) => void | boolean;
19
+ disableDimensionHoverWhenBrushing?: boolean;
19
20
  }
20
21
  export interface IBrushTheme {
21
22
  style?: Partial<IPolygonMarkSpec>;
@@ -4,6 +4,7 @@ import type { IAxis } from '../../axis/interface';
4
4
  import type { IComponentSpec } from '../../base/interface';
5
5
  import type { IComponent } from '../../interface';
6
6
  export interface ICrossHair extends IComponent {
7
+ enable: boolean;
7
8
  clearAxisValue: () => void;
8
9
  setAxisValue: (v: StringOrNumber, axis: IAxis) => void;
9
10
  layoutByValue: (enableRemain?: boolean) => void;
@@ -2,7 +2,7 @@ import type { DataSet, IParserOptions } from '@visactor/vdataset';
2
2
  import type { Datum, IDataValues, IInitOption, IMarkStateSpec, IPoint, IRegionQuerier, IShowTooltipOption, ISpec, ITooltipHandler, Maybe, MaybeArray, StringOrNumber } from '../typings';
3
3
  import type { IMorphConfig } from '../animation/spec';
4
4
  import type { IBoundsLike } from '@visactor/vutils';
5
- import type { EventCallback, EventQuery, EventType, ExtendEventParam } from '../event/interface';
5
+ import type { EventCallback, EventParamsDefinition, EventQuery, EventType, ExtendEventParam } from '../event/interface';
6
6
  import type { IMark, IMarkDataTransform } from '../mark/interface';
7
7
  import type { ISeries } from '../series/interface/series';
8
8
  import type { ITheme } from '../theme/interface';
@@ -140,3 +140,8 @@ export interface GrammarTransformOption {
140
140
  transform: IMarkDataTransform;
141
141
  runType?: 'beforeJoin' | 'afterEncode';
142
142
  }
143
+ export interface UserEvent {
144
+ eType: EventType;
145
+ query: EventQuery | EventCallback<EventParamsDefinition[EventType]>;
146
+ handler?: EventCallback<EventParamsDefinition[EventType]>;
147
+ }
@@ -1,6 +1,8 @@
1
1
  import type { EventHandler, EventParamsDefinition, EventType } from '../../interface';
2
2
  import { DimensionEvent } from './base';
3
3
  export declare class DimensionHoverEvent extends DimensionEvent {
4
+ static _disableDimensionEvent: boolean;
5
+ static disableDimensionEvent(value: boolean): void;
4
6
  private _cacheDimensionInfo;
5
7
  register<Evt extends EventType>(eType: Evt, handler: EventHandler<EventParamsDefinition[Evt]>): void;
6
8
  unregister(): void;