@visactor/vchart-types 1.8.4 → 1.8.5
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/interface/theme.d.ts +1 -0
- package/types/component/marker/interface.d.ts +3 -4
- package/types/interaction/trigger.d.ts +1 -0
- package/types/theme/builtin/common/component/axis/cartesian-axis.d.ts +1 -0
- package/types/theme/builtin/common-mobile/component/axis/cartesian-axis.d.ts +1 -0
|
@@ -21,6 +21,7 @@ export interface IComponentTheme {
|
|
|
21
21
|
axisLinear?: IAxisCommonTheme;
|
|
22
22
|
axisX?: ICartesianAxisCommonTheme;
|
|
23
23
|
axisY?: ICartesianAxisCommonTheme;
|
|
24
|
+
axisZ?: ICartesianAxisCommonTheme;
|
|
24
25
|
axisRadius?: IPolarAxisCommonTheme;
|
|
25
26
|
axisAngle?: IPolarAxisCommonTheme;
|
|
26
27
|
[ComponentTypeEnum.discreteLegend]?: IDiscreteLegendTheme;
|
|
@@ -12,9 +12,8 @@ export type OffsetPoint = {
|
|
|
12
12
|
export type IAggrType = 'sum' | 'average' | 'min' | 'max' | 'variance' | 'standardDeviation' | 'median';
|
|
13
13
|
export type IDataPos = StringOrNumber | IAggrType;
|
|
14
14
|
export type IDataPosCallback = (relativeSeriesData: Datum[], startRelativeSeriesData: Datum[], endRelativeSeriesData: Datum[], relativeSeries: ICartesianSeries, startRelativeSeries: ICartesianSeries, endRelativeSeries: ICartesianSeries) => StringOrNumber;
|
|
15
|
-
export type IDataPointCallback = (relativeSeriesData: Datum[], relativeSeries: ICartesianSeries) => StringOrNumber;
|
|
16
15
|
export type IDataPointSpec = {
|
|
17
|
-
[key: string]: IDataPos |
|
|
16
|
+
[key: string]: IDataPos | IDataPosCallback;
|
|
18
17
|
refRelativeSeriesIndex?: number;
|
|
19
18
|
refRelativeSeriesId?: StringOrNumber;
|
|
20
19
|
xFieldIndex?: number;
|
|
@@ -27,8 +26,8 @@ export type MarkerPositionPoint = {
|
|
|
27
26
|
y: StringOrNumber;
|
|
28
27
|
};
|
|
29
28
|
export type ICoordinateOption = {
|
|
30
|
-
x?: IOptionAggrField | (
|
|
31
|
-
y?: IOptionAggrField | (
|
|
29
|
+
x?: IOptionAggrField | (IDataPosCallback | StringOrNumber)[];
|
|
30
|
+
y?: IOptionAggrField | (IDataPosCallback | StringOrNumber)[];
|
|
32
31
|
getRefRelativeSeries?: () => ICartesianSeries;
|
|
33
32
|
} & IOptionSeries;
|
|
34
33
|
export type IMarkerPositionsSpec = {
|
|
@@ -14,6 +14,7 @@ export declare class Trigger implements ITrigger {
|
|
|
14
14
|
protected _fields: string[] | null;
|
|
15
15
|
protected _marks: MarkSet;
|
|
16
16
|
protected _markReverse: MarkSet;
|
|
17
|
+
private _isHovered?;
|
|
17
18
|
constructor(spec: ITriggerSpec, option: ITriggerOption);
|
|
18
19
|
setStateKeys(fields: string[]): void;
|
|
19
20
|
registerMark(mark: IMark): void;
|