@visactor/vchart-types 2.0.13-alpha.4 → 2.0.13-alpha.6
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.
- package/package.json +3 -3
- package/tsconfig.tsbuildinfo +1 -1
- package/types/compile/compiler.d.ts +0 -1
- package/types/compile/interface/compilable-item.d.ts +1 -2
- package/types/component/brush/brush.d.ts +1 -6
- package/types/component/brush/interface.d.ts +1 -3
- package/types/component/crosshair/interface/spec.d.ts +0 -1
- package/types/core/interface.d.ts +1 -6
- package/types/event/events/dimension/dimension-hover.d.ts +0 -2
|
@@ -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 {
|
|
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
|
|
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,8 +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
|
-
disableDimensionHover(): void;
|
|
95
|
-
enableDimensionHover(): void;
|
|
96
|
-
clearBrushStateAndMask(): void;
|
|
97
92
|
}
|
|
98
93
|
export declare const registerBrush: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
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;
|
|
@@ -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,
|
|
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';
|
|
@@ -140,8 +140,3 @@ 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,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;
|