@visactor/vchart-types 2.0.11-alpha.8 → 2.0.12-alpha.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.
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IModelInitOption } from '../../model/interface';
|
|
2
2
|
import type { BoxPlotShaftShape, IOutlierMarkSpec, Datum, DirectionType } from '../../typings';
|
|
3
3
|
import { CartesianSeries } from '../cartesian/cartesian';
|
|
4
4
|
import type { SeriesMarkMap } from '../interface';
|
|
5
5
|
import { SeriesTypeEnum } from '../interface/type';
|
|
6
6
|
import type { IBoxPlotSeriesSpec } from './interface';
|
|
7
|
+
import { DataView } from '@visactor/vdataset';
|
|
7
8
|
import type { IMark, ITextMark } from '../../mark/interface';
|
|
8
9
|
import type { ICompilableData } from '../../compile/data';
|
|
9
10
|
import { BoxPlotSeriesSpecTransformer } from './box-plot-transformer';
|
|
@@ -43,7 +44,7 @@ export declare class BoxPlotSeries<T extends IBoxPlotSeriesSpec = IBoxPlotSeries
|
|
|
43
44
|
protected _shaftFillOpacity: number;
|
|
44
45
|
protected _outliersStyle: IOutlierMarkSpec;
|
|
45
46
|
getOutliersStyle(): IOutlierMarkSpec;
|
|
46
|
-
protected
|
|
47
|
+
protected _outlierData: ICompilableData;
|
|
47
48
|
private _autoBoxWidth;
|
|
48
49
|
setAttrFromSpec(): void;
|
|
49
50
|
private _boxPlotMark?;
|
|
@@ -54,6 +55,7 @@ export declare class BoxPlotSeries<T extends IBoxPlotSeriesSpec = IBoxPlotSeries
|
|
|
54
55
|
initLabelMarkStyle(textMark: ITextMark): void;
|
|
55
56
|
initData(): void;
|
|
56
57
|
compileData(): void;
|
|
58
|
+
viewDataUpdate(d: DataView): void;
|
|
57
59
|
init(option: IModelInitOption): void;
|
|
58
60
|
private _getMarkWidth;
|
|
59
61
|
protected _getPosition(direction: DirectionType, datum: Datum): number;
|
|
@@ -65,7 +67,6 @@ export declare class BoxPlotSeries<T extends IBoxPlotSeriesSpec = IBoxPlotSeries
|
|
|
65
67
|
key: string;
|
|
66
68
|
operations: import("../../data/transforms/interface").StatisticOperations;
|
|
67
69
|
}[];
|
|
68
|
-
onEvaluateEnd(ctx: IModelEvaluateOption): void;
|
|
69
70
|
getDefaultShapeType(): string;
|
|
70
71
|
getActiveMarks(): IMark[];
|
|
71
72
|
}
|
|
@@ -158,17 +158,26 @@ export interface IRectMarkSpec extends IFillMarkSpec {
|
|
|
158
158
|
y1?: number;
|
|
159
159
|
}
|
|
160
160
|
export interface IBoxPlotMarkSpec extends ICommonSpec {
|
|
161
|
-
lineWidth?: number;
|
|
162
|
-
boxWidth?: number | string;
|
|
163
|
-
shaftWidth?: number | string;
|
|
164
|
-
shaftShape?: BoxPlotShaftShape;
|
|
165
|
-
boxFill?: string;
|
|
166
|
-
shaftFillOpacity?: number;
|
|
167
161
|
min?: (datum: Datum) => number;
|
|
168
162
|
q1?: (datum: Datum) => number;
|
|
169
163
|
median?: (datum: Datum) => number;
|
|
170
164
|
q3?: (datum: Datum) => number;
|
|
171
165
|
max?: (datum: Datum) => number;
|
|
166
|
+
shaftShape?: BoxPlotShaftShape;
|
|
167
|
+
boxWidth?: number | string;
|
|
168
|
+
boxHeight?: number | string;
|
|
169
|
+
shaftWidth?: number | string;
|
|
170
|
+
ruleWidth?: number | string;
|
|
171
|
+
ruleHeight?: number | string;
|
|
172
|
+
minMaxWidth?: number | string;
|
|
173
|
+
minMaxHeight?: number | string;
|
|
174
|
+
q1q3Width?: number | string;
|
|
175
|
+
q1q3Height?: number | string;
|
|
176
|
+
lineWidth?: number;
|
|
177
|
+
minMaxFillOpacity?: number;
|
|
178
|
+
boxStroke?: string;
|
|
179
|
+
medianStroke?: string;
|
|
180
|
+
boxCornerRadius?: number;
|
|
172
181
|
}
|
|
173
182
|
export interface IRippleMarkSpec extends ICommonSpec {
|
|
174
183
|
ripple?: number;
|