@visactor/vchart-types 2.0.0-alpha.4 → 2.0.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.
- package/package.json +3 -3
- package/tsconfig.tsbuildinfo +1 -1
- package/types/animation/interface.d.ts +1 -0
- package/types/component/brush/brush.d.ts +1 -1
- package/types/component/crosshair/interface/common.d.ts +3 -1
- package/types/component/crosshair/interface/spec.d.ts +1 -0
- package/types/component/crosshair/interface/theme.d.ts +2 -0
- package/types/component/tooltip/interface/theme.d.ts +3 -0
- package/types/series/bar/bar.d.ts +3 -0
- package/types/series/bar/interface.d.ts +1 -0
|
@@ -58,6 +58,7 @@ export interface CommonAnimationConfigItem {
|
|
|
58
58
|
loop?: boolean | number;
|
|
59
59
|
options?: GraphicFunctionValueType<any>;
|
|
60
60
|
controlOptions?: IAnimationControlOptions;
|
|
61
|
+
selfOnly?: boolean;
|
|
61
62
|
}
|
|
62
63
|
export interface TypeAnimationConfig extends CommonAnimationConfigItem {
|
|
63
64
|
type: string;
|
|
@@ -41,7 +41,6 @@ export declare class Brush<T extends IBrushSpec = IBrushSpec> extends BaseCompon
|
|
|
41
41
|
[elementKey: string]: IMarkGraphic;
|
|
42
42
|
};
|
|
43
43
|
private _cacheInteractiveRangeAttrs;
|
|
44
|
-
private _needDisablePickable;
|
|
45
44
|
private _releatedAxes;
|
|
46
45
|
private _regionAxisMap;
|
|
47
46
|
private _axisDataZoomMap;
|
|
@@ -84,6 +83,7 @@ export declare class Brush<T extends IBrushSpec = IBrushSpec> extends BaseCompon
|
|
|
84
83
|
private _isBrushContainItem;
|
|
85
84
|
protected _initItemMap(itemMap: Record<string, IMark[]>, elementMap: Record<string, IMarkGraphic>, stateName: string): void;
|
|
86
85
|
protected _initMarkBrushState(componentIndex: number, stateName: string): void;
|
|
86
|
+
private _setRegionMarkPickable;
|
|
87
87
|
private _stateClamp;
|
|
88
88
|
private _setAxisAndDataZoom;
|
|
89
89
|
protected _getNeedClearVRenderComponents(): IGraphic[];
|
|
@@ -2,7 +2,7 @@ import type { Dict } from '@visactor/vutils';
|
|
|
2
2
|
import type { IPadding, StringOrNumber } from '../../../typings';
|
|
3
3
|
import type { IAxis } from '../../axis/interface';
|
|
4
4
|
import type { LineCrosshair, RectCrosshair, Tag } from '@visactor/vrender-components';
|
|
5
|
-
import type { IGroup, IRichTextGraphicAttribute, ITextGraphicAttribute } from '@visactor/vrender-core';
|
|
5
|
+
import type { IGroup, IRichTextGraphicAttribute, IText, ITextGraphicAttribute } from '@visactor/vrender-core';
|
|
6
6
|
export type AxisCurrentValueMap = Map<number, {
|
|
7
7
|
datum: StringOrNumber;
|
|
8
8
|
axis: IAxis;
|
|
@@ -31,6 +31,7 @@ export interface IHair {
|
|
|
31
31
|
padding?: IPadding | number | number[];
|
|
32
32
|
panel?: Dict<any>;
|
|
33
33
|
zIndex?: number;
|
|
34
|
+
syncAxisLabelAngle?: boolean;
|
|
34
35
|
};
|
|
35
36
|
smooth?: boolean;
|
|
36
37
|
}
|
|
@@ -56,6 +57,7 @@ export interface ICrosshairInfo {
|
|
|
56
57
|
visible: boolean;
|
|
57
58
|
_isCache?: boolean;
|
|
58
59
|
axis: IAxis;
|
|
60
|
+
axisLabel?: IText;
|
|
59
61
|
sides?: number;
|
|
60
62
|
}
|
|
61
63
|
export interface CrossHairStateItem {
|
|
@@ -65,6 +65,7 @@ export interface ICrosshairLabelSpec {
|
|
|
65
65
|
formatter?: string | string[];
|
|
66
66
|
style?: Partial<ITextMarkSpec>;
|
|
67
67
|
labelBackground?: ICrosshairLabelBackgroundSpec;
|
|
68
|
+
syncAxisLabelAngle?: boolean;
|
|
68
69
|
}
|
|
69
70
|
export interface ICrosshairLabelBackgroundSpec {
|
|
70
71
|
visible?: boolean;
|
|
@@ -6,4 +6,6 @@ export interface ICrosshairTheme extends ICommonCrosshairSpec {
|
|
|
6
6
|
yField?: Partial<ICartesianCrosshairSpec['yField']>;
|
|
7
7
|
categoryField?: Partial<IPolarCrosshairSpec['categoryField']>;
|
|
8
8
|
valueField?: Partial<IPolarCrosshairSpec['valueField']>;
|
|
9
|
+
trigger?: ICommonCrosshairSpec['trigger'];
|
|
10
|
+
triggerOff?: ICommonCrosshairSpec['triggerOff'];
|
|
9
11
|
}
|
|
@@ -2,6 +2,7 @@ import type { ITextAttribute } from '@visactor/vrender-core';
|
|
|
2
2
|
import type { ILayoutNumber, ITooltipShapePattern, StringOrNumber, TextAlign, TextBaseLine } from '../../../typings';
|
|
3
3
|
import type { Padding } from '@visactor/vrender-components';
|
|
4
4
|
import type { ITokenKey } from '../../../theme/token/interface';
|
|
5
|
+
import type { ITooltipSpec } from './spec';
|
|
5
6
|
export interface ITooltipTextTheme<ColorType = string> {
|
|
6
7
|
fontFamily?: string;
|
|
7
8
|
fontSize?: number | ITokenKey;
|
|
@@ -49,4 +50,6 @@ export interface ITooltipTheme<ColorType = string> {
|
|
|
49
50
|
};
|
|
50
51
|
transitionDuration?: number;
|
|
51
52
|
align?: 'left' | 'right';
|
|
53
|
+
trigger?: ITooltipSpec['trigger'];
|
|
54
|
+
triggerOff?: ITooltipSpec['triggerOff'];
|
|
52
55
|
}
|
|
@@ -38,10 +38,13 @@ export declare class BarSeries<T extends IBarSeriesSpec = IBarSeriesSpec> extend
|
|
|
38
38
|
protected _dataToPosX1(datum: Datum): number;
|
|
39
39
|
protected _dataToPosY(datum: Datum): number;
|
|
40
40
|
protected _dataToPosY1(datum: Datum): number;
|
|
41
|
+
protected _getLinearBarRange: (start: number, end: number) => number[];
|
|
41
42
|
protected _getBarXStart: (datum: Datum, scale: IBaseScale, useWholeRange?: boolean) => any;
|
|
42
43
|
protected _getBarXEnd: (datum: Datum, scale: IBaseScale, useWholeRange?: boolean) => any;
|
|
44
|
+
protected _getLinearBarXRange: (datum: Datum, scale: IBaseScale, useWholeRange?: boolean) => number[];
|
|
43
45
|
protected _getBarYStart: (datum: Datum, scale: IBaseScale) => any;
|
|
44
46
|
protected _getBarYEnd: (datum: Datum, scale: IBaseScale) => any;
|
|
47
|
+
protected _getLinearBarYRange: (datum: Datum, scale: IBaseScale, useWholeRange?: boolean) => number[];
|
|
45
48
|
initBandRectMarkStyle(): void;
|
|
46
49
|
protected _initStackBarMarkStyle(): void;
|
|
47
50
|
initLinearRectMarkStyle(): void;
|
|
@@ -33,6 +33,7 @@ export interface IBarSeriesSpec extends ICartesianSeriesSpec, IAnimationSpec<Bar
|
|
|
33
33
|
barGapInGroup?: number | string | (number | string)[];
|
|
34
34
|
barMinHeight?: number;
|
|
35
35
|
stackCornerRadius?: number | number[] | IStackCornerRadiusCallback;
|
|
36
|
+
barGap?: number;
|
|
36
37
|
}
|
|
37
38
|
export interface IBarBackgroundSpec {
|
|
38
39
|
fieldLevel?: number;
|