@visactor/vchart-types 2.0.20-alpha.1 → 2.0.20-alpha.3
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 +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/types/component/axis/base-axis.d.ts +9 -1
- package/types/component/axis/cartesian/interface/spec.d.ts +1 -0
- package/types/component/axis/mixin/band-axis-mixin.d.ts +1 -0
- package/types/component/axis/mixin/linear-axis-mixin.d.ts +1 -0
- package/types/component/legend/continuous/interface.d.ts +5 -2
- package/types/series/pie/pie.d.ts +2 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { IGroup } from '@visactor/vrender-core';
|
|
1
2
|
import type { ITickDataOpt } from '@visactor/vrender-components';
|
|
2
3
|
import type { IBaseScale } from '@visactor/vscale';
|
|
3
4
|
import type { IGraphic } from '@visactor/vrender-core';
|
|
@@ -28,7 +29,10 @@ export declare abstract class AxisComponent<T extends ICommonAxisSpec & Record<s
|
|
|
28
29
|
protected _regionUserId?: StringOrNumber[];
|
|
29
30
|
protected _regionIndex?: number[];
|
|
30
31
|
protected _visible: boolean;
|
|
32
|
+
getVisible(): boolean;
|
|
31
33
|
get visible(): boolean;
|
|
34
|
+
protected _specVisible: boolean;
|
|
35
|
+
protected _hideWhenEmpty: boolean;
|
|
32
36
|
protected _inverse: boolean;
|
|
33
37
|
getInverse(): boolean;
|
|
34
38
|
protected _tick: ITick | undefined;
|
|
@@ -51,7 +55,8 @@ export declare abstract class AxisComponent<T extends ICommonAxisSpec & Record<s
|
|
|
51
55
|
protected _coordinateType: CoordinateType;
|
|
52
56
|
getCoordinateType(): CoordinateType;
|
|
53
57
|
constructor(spec: T, options: IComponentOption);
|
|
54
|
-
|
|
58
|
+
setAttrFromSpec(): void;
|
|
59
|
+
getVRenderComponents(): IGroup[];
|
|
55
60
|
created(): void;
|
|
56
61
|
protected _shouldComputeTickData(): boolean;
|
|
57
62
|
protected _onTickDataChange: (tickData?: ICompilableData) => void;
|
|
@@ -69,6 +74,9 @@ export declare abstract class AxisComponent<T extends ICommonAxisSpec & Record<s
|
|
|
69
74
|
};
|
|
70
75
|
protected initEvent(): void;
|
|
71
76
|
protected updateScaleDomain(): void;
|
|
77
|
+
protected _hasCollectedSeriesData(): boolean;
|
|
78
|
+
protected _refreshVisibilityByData(): boolean;
|
|
79
|
+
protected _syncComponentVisibility(): void;
|
|
72
80
|
protected _clearRawDomain(): void;
|
|
73
81
|
onLayoutEnd(): void;
|
|
74
82
|
protected computeData(updateType?: 'domain' | 'range' | 'force'): void;
|
|
@@ -34,6 +34,7 @@ export interface BandAxisMixin {
|
|
|
34
34
|
_getNormalizedValue: (values: any[], length: number) => number;
|
|
35
35
|
_onTickDataChange: (compilableData: CompilableData) => void;
|
|
36
36
|
registerTicksTransform: () => string;
|
|
37
|
+
_refreshVisibilityByData: () => boolean;
|
|
37
38
|
}
|
|
38
39
|
export declare class BandAxisMixin {
|
|
39
40
|
private _tickDataMap;
|
|
@@ -42,6 +42,7 @@ export interface LinearAxisMixin {
|
|
|
42
42
|
_orient: IOrientType;
|
|
43
43
|
_option: IComponentOption;
|
|
44
44
|
niceLabelFormatter: (value: StringOrNumber) => StringOrNumber;
|
|
45
|
+
_refreshVisibilityByData: () => boolean;
|
|
45
46
|
}
|
|
46
47
|
export declare class LinearAxisMixin {
|
|
47
48
|
protected _extend: {
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
import type { IRectMarkSpec, ISymbolMarkSpec, ITextMarkSpec, StringOrNumber } from '../../../typings';
|
|
2
2
|
import type { ComponentThemeWithDirection } from '../../interface';
|
|
3
3
|
import type { ILegendCommonSpec, NoVisibleMarkStyle } from '../interface';
|
|
4
|
+
import type { HandlerTextStyleContext } from '@visactor/vrender-components';
|
|
4
5
|
type Text = StringOrNumber;
|
|
6
|
+
type ContinuousLegendTextStyle = Omit<NoVisibleMarkStyle<ITextMarkSpec>, 'text'>;
|
|
7
|
+
type ContinuousLegendTextStyleCallback = (value: Text, position: 'start' | 'end', context: HandlerTextStyleContext) => ContinuousLegendTextStyle | undefined;
|
|
5
8
|
export type TextAttribute = {
|
|
6
9
|
visible?: boolean;
|
|
7
10
|
text?: Text;
|
|
8
11
|
space?: number;
|
|
9
|
-
style?:
|
|
12
|
+
style?: ContinuousLegendTextStyle;
|
|
10
13
|
};
|
|
11
14
|
export type HandlerTextAttribute = {
|
|
12
15
|
visible?: boolean;
|
|
13
16
|
precision?: number;
|
|
14
17
|
formatter?: (text: Text) => Text;
|
|
15
18
|
space?: number;
|
|
16
|
-
style?:
|
|
19
|
+
style?: ContinuousLegendTextStyle | ContinuousLegendTextStyleCallback;
|
|
17
20
|
};
|
|
18
21
|
export type IContinuousLegendSpec = ILegendCommonSpec & {
|
|
19
22
|
inverse?: boolean;
|
|
@@ -27,6 +27,7 @@ export declare class BasePieSeries<T extends IBasePieSeriesSpec> extends PolarSe
|
|
|
27
27
|
protected _emptyArcMark: IArcMark | null;
|
|
28
28
|
protected _showAllZero: boolean;
|
|
29
29
|
protected _supportNegative: boolean;
|
|
30
|
+
protected _pendingViewDataLabelUpdate: boolean;
|
|
30
31
|
protected _buildMarkAttributeContext(): void;
|
|
31
32
|
setAttrFromSpec(): void;
|
|
32
33
|
initData(): void;
|
|
@@ -50,6 +51,7 @@ export declare class BasePieSeries<T extends IBasePieSeriesSpec> extends PolarSe
|
|
|
50
51
|
getDimensionField(): string[];
|
|
51
52
|
getMeasureField(): string[];
|
|
52
53
|
private viewDataLabelUpdate;
|
|
54
|
+
private flushViewDataLabelUpdate;
|
|
53
55
|
protected generateRadiusStyle(spec: any): any;
|
|
54
56
|
computeCenter(datum: Datum): IPoint;
|
|
55
57
|
getRadius(state?: StateValueType): number;
|