@visactor/vchart-types 1.7.2 → 1.7.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/animation/utils.d.ts +1 -0
- package/types/chart/bar/bar-3d.d.ts +2 -2
- package/types/chart/cartesian/interface.d.ts +1 -1
- package/types/component/axis/cartesian/util/common.d.ts +0 -2
- package/types/component/axis/interface/common.d.ts +1 -0
- package/types/component/axis/polar/interface/common.d.ts +2 -3
- package/types/component/crosshair/base.d.ts +4 -5
- package/types/component/crosshair/cartesian.d.ts +11 -34
- package/types/component/crosshair/config.d.ts +6 -0
- package/types/component/crosshair/interface/spec.d.ts +7 -3
- package/types/component/crosshair/polar.d.ts +12 -54
- package/types/component/legend/continuous/interface.d.ts +1 -0
- package/types/component/marker/base-marker.d.ts +22 -24
- package/types/component/marker/interface.d.ts +19 -9
- package/types/component/marker/mark-area/interface/spec.d.ts +10 -12
- package/types/component/marker/mark-area/mark-area.d.ts +3 -2
- package/types/component/marker/mark-line/interface/spec.d.ts +20 -9
- package/types/component/marker/mark-line/mark-line.d.ts +4 -2
- package/types/component/marker/mark-point/interface/spec.d.ts +8 -6
- package/types/component/marker/mark-point/mark-point.d.ts +3 -2
- package/types/component/marker/utils.d.ts +13 -2
- package/types/data/transforms/aggregation.d.ts +3 -3
- package/types/model/interface.d.ts +1 -0
- package/types/series/util/utils.d.ts +5 -0
- package/types/typings/visual.d.ts +3 -2
|
@@ -1,5 +1,16 @@
|
|
|
1
|
-
import type { ICartesianSeries } from '../../series/interface';
|
|
1
|
+
import type { ICartesianSeries, ISeries } from '../../series/interface';
|
|
2
2
|
import type { DataView } from '@visactor/vdataset';
|
|
3
3
|
import type { IPoint } from '../../typings';
|
|
4
|
+
import type { IDataPos, MarkerPositionPoint } from './interface';
|
|
5
|
+
import type { IRegion } from '../../region/interface';
|
|
6
|
+
import type { OffsetPoint } from './interface';
|
|
7
|
+
export declare function isAggrSpec(spec: IDataPos): boolean;
|
|
4
8
|
export declare function xyLayout(data: DataView, startRelativeSeries: ICartesianSeries, endRelativeSeries: ICartesianSeries, relativeSeries: ICartesianSeries, autoRange: boolean): IPoint[][];
|
|
5
|
-
export declare function coordinateLayout(data: DataView, relativeSeries: ICartesianSeries, autoRange: boolean): IPoint[];
|
|
9
|
+
export declare function coordinateLayout(data: DataView, relativeSeries: ICartesianSeries, autoRange: boolean, coordinatesOffset: OffsetPoint[] | OffsetPoint): IPoint[];
|
|
10
|
+
export declare function positionLayout(positions: MarkerPositionPoint[], series: ISeries, regionRelative: boolean): IPoint[];
|
|
11
|
+
export declare function computeClipRange(regions: IRegion[]): {
|
|
12
|
+
minX: number;
|
|
13
|
+
maxX: number;
|
|
14
|
+
minY: number;
|
|
15
|
+
maxY: number;
|
|
16
|
+
};
|
|
@@ -15,7 +15,7 @@ export type IOptionSeries = {
|
|
|
15
15
|
getStartRelativeSeries: () => ICartesianSeries;
|
|
16
16
|
getEndRelativeSeries: () => ICartesianSeries;
|
|
17
17
|
};
|
|
18
|
-
export type IOptionCallback = (relativeSeriesData: any, startRelativeSeriesData: any, endRelativeSeriesData: any) => IOptionPos;
|
|
18
|
+
export type IOptionCallback = (relativeSeriesData: any, startRelativeSeriesData: any, endRelativeSeriesData: any, relativeSeries: ICartesianSeries, startRelative: ICartesianSeries, endRelative: ICartesianSeries) => IOptionPos;
|
|
19
19
|
export type IOptionAggr = {
|
|
20
20
|
x?: IOptionPos | IOptionCallback;
|
|
21
21
|
y?: IOptionPos | IOptionCallback;
|
|
@@ -29,6 +29,6 @@ export declare function markerVariance(_data: Array<DataView>, opt: IOption): nu
|
|
|
29
29
|
export declare function markerStandardDeviation(_data: Array<DataView>, opt: IOption): number;
|
|
30
30
|
export declare function markerMedian(_data: Array<DataView>, opt: IOption): number;
|
|
31
31
|
export declare function markerAggregation(_data: Array<DataView>, options: IOptionAggr[]): {
|
|
32
|
-
x: StringOrNumber[] | StringOrNumber | null;
|
|
33
|
-
y: StringOrNumber[] | StringOrNumber | null;
|
|
32
|
+
x: StringOrNumber[] | StringOrNumber | IOptionCallback | null;
|
|
33
|
+
y: StringOrNumber[] | StringOrNumber | IOptionCallback | null;
|
|
34
34
|
}[];
|
|
@@ -89,6 +89,7 @@ export interface ILayoutModel extends IModel {
|
|
|
89
89
|
afterSetLayoutStartPoint: (pos: ILayoutPoint) => void;
|
|
90
90
|
}
|
|
91
91
|
export interface IModelOption extends ICompilableInitOption {
|
|
92
|
+
type: string;
|
|
92
93
|
eventDispatcher: IEventDispatcher;
|
|
93
94
|
dataSet: DataSet;
|
|
94
95
|
map: Map<StringOrNumber, IModel | IMark>;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import type { IAxisHelper as CartesianHelper } from '../../component/axis/cartesian/interface/common';
|
|
2
2
|
import type { Datum } from '../../typings';
|
|
3
3
|
import type { IPolarAxisHelper } from '../../component/axis';
|
|
4
|
+
import type { ICartesianSeries } from '..';
|
|
4
5
|
export declare function isPolarAxisSeries(type: string): boolean;
|
|
5
6
|
export declare function sortDataInAxisHelper(axisHelper: CartesianHelper | IPolarAxisHelper, field: string, dataList: Datum[]): void;
|
|
7
|
+
export declare function getGroupAnimationParams(series: ICartesianSeries): {
|
|
8
|
+
dataIndex: (datum: any) => any;
|
|
9
|
+
dataCount: () => any;
|
|
10
|
+
};
|
|
@@ -9,8 +9,7 @@ import type { IAttributeOpt, IModelMarkAttributeContext } from '../compile/mark'
|
|
|
9
9
|
import type { Datum, StringOrNumber } from './common';
|
|
10
10
|
import type { IPadding } from '@visactor/vutils';
|
|
11
11
|
import type { IColorKey } from '../theme/color-scheme/interface';
|
|
12
|
-
import type { IRepeatType, TextAlignType, TextBaselineType } from '@visactor/vrender-core';
|
|
13
|
-
import type { IRichTextCharacter } from '@visactor/vrender-core';
|
|
12
|
+
import type { IRepeatType, TextAlignType, TextBaselineType, IRichTextCharacter } from '@visactor/vrender-core';
|
|
14
13
|
export interface IVisualSpecBase<D, T> {
|
|
15
14
|
type: ScaleType;
|
|
16
15
|
domain: D[];
|
|
@@ -74,6 +73,7 @@ export interface ICommonSpec {
|
|
|
74
73
|
anchor3d?: [number, number];
|
|
75
74
|
pickMode?: 'accurate' | 'imprecise' | 'custom';
|
|
76
75
|
boundsMode?: 'accurate' | 'imprecise';
|
|
76
|
+
pickStrokeBuffer?: number;
|
|
77
77
|
texture?: TextureType | string;
|
|
78
78
|
textureColor?: string;
|
|
79
79
|
textureSize?: number;
|
|
@@ -128,6 +128,7 @@ export interface ITextMarkSpec extends IFillMarkSpec {
|
|
|
128
128
|
fontStyle?: FontStyle;
|
|
129
129
|
maxLineWidth?: number;
|
|
130
130
|
ellipsis?: string;
|
|
131
|
+
suffixPosition?: 'start' | 'end' | 'middle';
|
|
131
132
|
lineBreak?: string;
|
|
132
133
|
underline?: boolean;
|
|
133
134
|
lineThrough?: boolean;
|