@visactor/vchart-types 2.0.10-alpha.1 → 2.0.10
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.
|
@@ -15,6 +15,7 @@ import type { IParserOptions } from '@visactor/vdataset';
|
|
|
15
15
|
import type { IBoundsLike, Maybe } from '@visactor/vutils';
|
|
16
16
|
import { CompilableBase } from '../../compile/compilable-base';
|
|
17
17
|
import type { IGlobalScale } from '../../scale/interface';
|
|
18
|
+
import type { IAxis } from '../../component/axis/interface/common';
|
|
18
19
|
import type { IMorphConfig } from '../../animation/spec';
|
|
19
20
|
import type { IInteraction } from '../../interaction/interface/common';
|
|
20
21
|
export declare class BaseChart<T extends IChartSpec> extends CompilableBase implements IChart {
|
|
@@ -161,5 +162,6 @@ export declare class BaseChart<T extends IChartSpec> extends CompilableBase impl
|
|
|
161
162
|
}): IMarkGraphic[];
|
|
162
163
|
protected _setStateInDatum(stateKey: string, d: MaybeArray<Datum> | null, filter?: (series: ISeries, mark: IMark) => boolean, region?: IRegionQuerier): void;
|
|
163
164
|
setDimensionIndex(value: StringOrNumber, opt: DimensionIndexOption): void;
|
|
165
|
+
showCrosshair(cb: (axis: IAxis) => false | string | number): void;
|
|
164
166
|
getColorScheme(): any;
|
|
165
167
|
}
|
|
@@ -14,6 +14,7 @@ import type { DataView } from '@visactor/vdataset';
|
|
|
14
14
|
import type { IGlobalScale } from '../../scale/interface';
|
|
15
15
|
import type { IMorphConfig } from '../../animation/spec';
|
|
16
16
|
import type { IMarkGraphic } from '../../mark/interface/common';
|
|
17
|
+
import type { IAxis } from '../../component/axis/interface';
|
|
17
18
|
export type DimensionIndexOption = {
|
|
18
19
|
filter?: (cmp: IComponent) => boolean;
|
|
19
20
|
tooltip?: boolean;
|
|
@@ -95,6 +96,7 @@ export interface IChart extends ICompilable {
|
|
|
95
96
|
setCurrentTheme: () => void;
|
|
96
97
|
getSeriesData: (id: StringOrNumber | undefined, index: number | undefined) => DataView | undefined;
|
|
97
98
|
setDimensionIndex: (value: StringOrNumber, opt: DimensionIndexOption) => void;
|
|
99
|
+
showCrosshair: (cb: (axis: IAxis) => false | string | number) => void;
|
|
98
100
|
filterGraphicsByDatum: (datum: MaybeArray<Datum> | null, opt?: {
|
|
99
101
|
filter?: (series: ISeries, mark: IMark) => boolean;
|
|
100
102
|
region?: IRegionQuerier;
|
package/types/core/vchart.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ import { Compiler } from '../compile/compiler';
|
|
|
22
22
|
import type { IMorphConfig } from '../animation/spec';
|
|
23
23
|
import type { DataLinkAxis, DataLinkSeries, IGlobalConfig, IVChart, IVChartRenderOption } from './interface';
|
|
24
24
|
import { InstanceManager } from './instance-manager';
|
|
25
|
+
import type { IAxis } from '../component/axis';
|
|
25
26
|
export declare class VChart implements IVChart {
|
|
26
27
|
readonly id: number;
|
|
27
28
|
static useRegisters(comps: (() => void)[]): void;
|
|
@@ -180,6 +181,7 @@ export declare class VChart implements IVChart {
|
|
|
180
181
|
getComponents(): import("../component/interface").IComponent[];
|
|
181
182
|
getScale(scaleId: string): import("@visactor/vscale").IBaseScale;
|
|
182
183
|
setDimensionIndex(value: StringOrNumber, opt?: DimensionIndexOption): void;
|
|
184
|
+
showCrosshair(cb: (axis: IAxis) => false | string | number): void;
|
|
183
185
|
stopAnimation(): void;
|
|
184
186
|
reRunNormalAnimation(): void;
|
|
185
187
|
pauseAnimation(): void;
|