@visactor/vchart-types 2.0.13-alpha.5 → 2.0.13-alpha.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.
@@ -33,7 +33,6 @@ export declare class Compiler implements ICompiler {
33
33
  protected _height: number;
34
34
  protected _container: IRenderContainer;
35
35
  protected _option: IRenderOption;
36
- getOption(): IRenderOption;
37
36
  private _released;
38
37
  private _layoutState?;
39
38
  private _compileChart;
@@ -6,7 +6,7 @@ import type { IMorphConfig } from '../../animation/spec';
6
6
  import type { IBoundsLike } from '@visactor/vutils';
7
7
  import type { EventSourceType, EventType } from '../../event/interface';
8
8
  import type { IMark, IMarkGraphic } from '../../mark/interface';
9
- import type { IRenderOption, LayoutState } from '../interface/compiler';
9
+ import type { LayoutState } from '../interface/compiler';
10
10
  import type { MarkAnimationSpec } from '../../animation/interface';
11
11
  export type CompilerListenerParameters = {
12
12
  type: EventType;
@@ -27,7 +27,6 @@ export interface IGrammarItemMap<T extends IGrammarItem> {
27
27
  }
28
28
  export type ICompilerModel = Record<GrammarType, IProductMap<IGrammarItem>>;
29
29
  export interface ICompiler {
30
- getOption: () => IRenderOption;
31
30
  isInited?: boolean;
32
31
  readonly stateAnimationConfig?: MarkAnimationSpec;
33
32
  getCanvas: () => HTMLCanvasElement | undefined;
@@ -4,7 +4,7 @@ import { Brush as BrushComponent } from '@visactor/vrender-components';
4
4
  import type { Maybe } from '@visactor/vutils';
5
5
  import type { IModelSpecInfo } from '../../model/interface';
6
6
  import type { IRegion } from '../../region/interface';
7
- import type { IGraphic, IPolygon } from '@visactor/vrender-core';
7
+ import type { IGraphic } from '@visactor/vrender-core';
8
8
  import type { ISeries } from '../../series/interface';
9
9
  import type { IMark, IMarkGraphic } from '../../mark/interface';
10
10
  import type { BrushInteractiveRangeAttr, IBrush, IBrushSpec } from './interface';
@@ -22,7 +22,6 @@ export declare class Brush<T extends IBrushSpec = IBrushSpec> extends BaseCompon
22
22
  protected _brushComponents: BrushComponent[];
23
23
  protected _relativeRegions: IRegion[];
24
24
  protected _linkedSeries: ISeries[];
25
- protected _operateMask: IPolygon;
26
25
  private _itemMap;
27
26
  private _linkedItemMap;
28
27
  protected _inBrushElementsMap: {
@@ -64,7 +63,6 @@ export declare class Brush<T extends IBrushSpec = IBrushSpec> extends BaseCompon
64
63
  };
65
64
  onLayoutEnd(): void;
66
65
  protected _updateBrushComponent(region: IRegion, componentIndex: number): void;
67
- protected _shouldEnableInteractive(): boolean;
68
66
  protected _createBrushComponent(region: IRegion, componentIndex: number): void;
69
67
  protected _getBrushInteractiveAttr(region: IRegion): BrushInteractiveRangeAttr;
70
68
  private _transformBrushedMarkAttr;
@@ -91,6 +89,5 @@ export declare class Brush<T extends IBrushSpec = IBrushSpec> extends BaseCompon
91
89
  protected _getNeedClearVRenderComponents(): IGraphic[];
92
90
  clearGraphic(): void;
93
91
  clear(): void;
94
- clearBrushStateAndMask(): void;
95
92
  }
96
93
  export declare const registerBrush: () => void;
@@ -1,4 +1,4 @@
1
- import type { FederatedPointerEvent, SymbolType } from '@visactor/vrender-core';
1
+ import type { SymbolType } from '@visactor/vrender-core';
2
2
  import type { IPolygonMarkSpec } from '../../typings';
3
3
  import type { IComponent } from '../interface';
4
4
  import type { IDelayType } from '../../typings/event';
@@ -15,8 +15,6 @@ interface IBrushDataBindSpec {
15
15
  axisId?: string | string[];
16
16
  axisIndex?: number | number[];
17
17
  axisRangeExpand?: number;
18
- beforeBrushChange?: (e: FederatedPointerEvent) => void | boolean;
19
- disableDimensionHoverWhenBrushing?: boolean;
20
18
  }
21
19
  export interface IBrushTheme {
22
20
  style?: Partial<IPolygonMarkSpec>;
@@ -4,7 +4,6 @@ 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;
8
7
  clearAxisValue: () => void;
9
8
  setAxisValue: (v: StringOrNumber, axis: IAxis) => void;
10
9
  layoutByValue: (enableRemain?: boolean) => void;
@@ -27,5 +27,4 @@ export interface ITooltip extends IComponent {
27
27
  tooltipHandler?: ITooltipHandler;
28
28
  getVisible: () => boolean;
29
29
  showTooltip: (datum: Datum, options: IShowTooltipOption) => void;
30
- enable?: boolean;
31
30
  }
@@ -29,7 +29,6 @@ export declare class Tooltip extends BaseComponent<any> implements ITooltip {
29
29
  private _isEnterTooltip;
30
30
  protected _spec: ITooltipSpec;
31
31
  tooltipHandler?: ITooltipHandler;
32
- enable?: boolean;
33
32
  processor: ITooltipActiveTypeAsKeys<ITooltipProcessor<MarkTooltipInfo>, ITooltipProcessor<DimensionTooltipInfo>, ITooltipProcessor<GroupTooltipInfo>>;
34
33
  private _alwaysShow;
35
34
  private _cacheInfo;
@@ -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, EventParamsDefinition, EventQuery, EventType, ExtendEventParam } from '../event/interface';
5
+ import type { EventCallback, 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';
@@ -90,9 +90,6 @@ export interface IVChart {
90
90
  getDataSet: () => Maybe<DataSet>;
91
91
  getScale: (scaleId: string) => IBaseScale | null;
92
92
  setDimensionIndex: (value: StringOrNumber, options?: DimensionIndexOption) => void;
93
- disableDimensionHoverEvent: (disabled: boolean) => void;
94
- disableCrossHair: (disabled: boolean) => void;
95
- disableTooltip: (disabled: boolean) => void;
96
93
  convertDatumToPosition: (datum: Datum, dataLinkInfo?: DataLinkSeries, isRelativeToCanvas?: boolean, checkInViewData?: boolean) => IPoint | null;
97
94
  convertValueToPosition: ((value: StringOrNumber, dataLinkInfo: DataLinkAxis, isRelativeToCanvas?: boolean) => number | null) & ((value: [StringOrNumber, StringOrNumber], dataLinkInfo: DataLinkSeries, isRelativeToCanvas?: boolean) => IPoint | null);
98
95
  updateIndicatorDataById: (id: string, datum?: Datum) => void;
@@ -143,8 +140,3 @@ export interface GrammarTransformOption {
143
140
  transform: IMarkDataTransform;
144
141
  runType?: 'beforeJoin' | 'afterEncode';
145
142
  }
146
- export interface UserEvent {
147
- eType: EventType;
148
- query: EventQuery | EventCallback<EventParamsDefinition[EventType]>;
149
- handler?: EventCallback<EventParamsDefinition[EventType]>;
150
- }
@@ -182,9 +182,6 @@ export declare class VChart implements IVChart {
182
182
  getComponents(): import("../component/interface").IComponent[];
183
183
  getScale(scaleId: string): import("@visactor/vscale").IBaseScale;
184
184
  setDimensionIndex(value: StringOrNumber, opt?: DimensionIndexOption): void;
185
- disableDimensionHoverEvent(value?: boolean): void;
186
- disableCrossHair(value?: boolean): void;
187
- disableTooltip(value?: boolean): void;
188
185
  showCrosshair(cb: (axis: IAxis) => false | string | number): void;
189
186
  stopAnimation(): void;
190
187
  reRunNormalAnimation(): void;
@@ -1,8 +1,6 @@
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;
6
4
  private _cacheDimensionInfo;
7
5
  register<Evt extends EventType>(eType: Evt, handler: EventHandler<EventParamsDefinition[Evt]>): void;
8
6
  unregister(): void;