@visactor/vchart-types 2.0.20-alpha.2 → 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 +3 -3
- package/tsconfig.tsbuildinfo +1 -1
- package/types/compile/compiler.d.ts +0 -2
- package/types/compile/mark/interface.d.ts +1 -0
- package/types/compile/mark/mark-state-manager.d.ts +1 -0
- 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/mark/base/base-mark.d.ts +1 -0
- package/types/mark/interface/common.d.ts +1 -0
- package/types/series/pie/pie.d.ts +2 -0
|
@@ -47,8 +47,6 @@ export declare class Compiler implements ICompiler {
|
|
|
47
47
|
updateLayoutTag(): void;
|
|
48
48
|
protected handleLayoutEnd: () => void;
|
|
49
49
|
protected handleStageRender: () => void;
|
|
50
|
-
private _isGeoRegionRoamDragEnabled;
|
|
51
|
-
private _shouldDisableCanvasTouchAction;
|
|
52
50
|
private _setCanvasStyle;
|
|
53
51
|
compile(ctx: {
|
|
54
52
|
chart: IChart;
|
|
@@ -32,6 +32,7 @@ export interface IMarkStateManager {
|
|
|
32
32
|
addStateInfo: (stateInfo: IStateInfo) => void;
|
|
33
33
|
changeStateInfo: (stateInfo: Partial<IStateInfo>) => void;
|
|
34
34
|
clearStateInfo: (stateValues: StateValue[]) => void;
|
|
35
|
+
clearAllStateInfo: () => void;
|
|
35
36
|
checkOneState: (renderNode: IMarkGraphic, datum: Datum[], state: IStateInfo) => 'in' | 'out' | 'skip';
|
|
36
37
|
checkState: (renderNode: IMarkGraphic, datum: Datum[]) => StateValue[];
|
|
37
38
|
getStateMap: () => StateValueMap;
|
|
@@ -14,6 +14,7 @@ export declare class MarkStateManager extends StateManager implements IMarkState
|
|
|
14
14
|
private _clearStateBeforeSet;
|
|
15
15
|
changeStateInfo(stateInfo: Partial<IStateInfo>): void;
|
|
16
16
|
clearStateInfo(stateValues: StateValue[]): void;
|
|
17
|
+
clearAllStateInfo(): void;
|
|
17
18
|
protected _isMultiMark(): boolean;
|
|
18
19
|
checkOneState(renderNode: IMarkGraphic, datum: Datum[], state: IStateInfo): 'in' | 'out' | 'skip';
|
|
19
20
|
checkState(renderNode: IMarkGraphic, datum: Datum[]): StateValue[];
|
|
@@ -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;
|
|
@@ -99,6 +99,7 @@ export interface IMarkRaw<T extends ICommonSpec> extends ICompilableMark {
|
|
|
99
99
|
needClear?: boolean;
|
|
100
100
|
disableAnimationByState: (state: string | string[]) => void;
|
|
101
101
|
enableAnimationByState: (state: string | string[]) => void;
|
|
102
|
+
clearBeforeReInit: () => void;
|
|
102
103
|
}
|
|
103
104
|
export type IMark = IMarkRaw<ICommonSpec>;
|
|
104
105
|
export interface ICompileMarkConfig extends IMarkConfig {
|
|
@@ -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;
|