@visactor/vchart-types 2.0.11-alpha.5 → 2.0.11-alpha.8
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/.rush/temp/shrinkwrap-deps.json +2 -2
- package/package.json +2 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/types/component/axis/cartesian/axis.d.ts +6 -0
- package/types/component/label/util.d.ts +6 -1
- package/types/constant/data.d.ts +1 -0
- package/types/data/transforms/map.d.ts +0 -1
- package/types/index.d.ts +1 -0
- package/types/mark/box-plot.d.ts +1 -0
- package/types/series/box-plot/box-plot-transformer.d.ts +5 -0
- package/types/series/box-plot/box-plot.d.ts +5 -1
|
@@ -52,6 +52,12 @@ export declare abstract class CartesianAxis<T extends ICartesianAxisCommonSpec =
|
|
|
52
52
|
left: number;
|
|
53
53
|
right: number;
|
|
54
54
|
};
|
|
55
|
+
getInnerOffset(): {
|
|
56
|
+
top: number;
|
|
57
|
+
bottom: number;
|
|
58
|
+
left: number;
|
|
59
|
+
right: number;
|
|
60
|
+
};
|
|
55
61
|
constructor(spec: T, options: IComponentOption);
|
|
56
62
|
static getSpecInfo(chartSpec: any): Maybe<IModelSpecInfo[]>;
|
|
57
63
|
static createComponent(specInfo: IModelSpecInfo, options: IComponentOption): IAxis;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { WaterfallSeries } from './../../series/waterfall/waterfall';
|
|
2
2
|
import type { Datum } from '../../typings/common';
|
|
3
3
|
import type { LabelItem, OverlapAttrs, Strategy } from '@visactor/vrender-components';
|
|
4
|
+
import type { IGraphic, IText } from '@visactor/vrender-core';
|
|
4
5
|
import type { ILabelInfo, ILabelSpec } from './interface';
|
|
5
6
|
export declare const labelRuleMap: {
|
|
6
7
|
rect: typeof barLabel;
|
|
@@ -15,6 +16,7 @@ export declare const labelRuleMap: {
|
|
|
15
16
|
arc3d: typeof pieLabel;
|
|
16
17
|
treemap: typeof treemapLabel;
|
|
17
18
|
venn: typeof vennLabel;
|
|
19
|
+
boxPlot: typeof boxPlotLabel;
|
|
18
20
|
};
|
|
19
21
|
export declare function defaultLabelConfig(rule: string, labelInfo: ILabelInfo): any;
|
|
20
22
|
export declare function textAttribute(labelInfo: ILabelInfo, datum: Datum, formatMethod?: ILabelSpec['formatMethod'], formatter?: ILabelSpec['formatter']): Partial<import("../../core").IComposedTextMarkSpec>;
|
|
@@ -47,7 +49,7 @@ export declare function pieLabel(labelInfo: ILabelInfo): {
|
|
|
47
49
|
export declare function stackLabelX(datum2: Datum, series: WaterfallSeries, pos: string, offset: number): number;
|
|
48
50
|
export declare function stackLabelY(datum2: Datum, series: WaterfallSeries, pos: string, offset: number): number;
|
|
49
51
|
export declare function stackLabel(labelInfo: ILabelInfo, datumTransform?: (data: any) => any, attributeTransform?: (label: LabelItem, datum: Datum, att: any) => any): {
|
|
50
|
-
customLayoutFunc: (labels: LabelItem[]) =>
|
|
52
|
+
customLayoutFunc: (labels: LabelItem[]) => IText[];
|
|
51
53
|
dataFilter: (labels: LabelItem[]) => LabelItem[];
|
|
52
54
|
overlap: {
|
|
53
55
|
strategy: any;
|
|
@@ -78,3 +80,6 @@ export declare function sankeyLabel(labelInfo: ILabelInfo): {
|
|
|
78
80
|
offset: number;
|
|
79
81
|
syncState: boolean;
|
|
80
82
|
};
|
|
83
|
+
export declare function boxPlotLabel(labelInfo: ILabelInfo): {
|
|
84
|
+
customLayoutFunc: (labels: LabelItem[], texts: IText[], getRelatedGraphic: (item: LabelItem) => IGraphic) => IText[];
|
|
85
|
+
};
|
package/types/constant/data.d.ts
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export * from './util/spec/transform';
|
|
|
23
23
|
export * from './util/mark';
|
|
24
24
|
export * from './util/region';
|
|
25
25
|
export * from './util/scale';
|
|
26
|
+
export * from './constant/data';
|
|
26
27
|
export * from './component/base';
|
|
27
28
|
export * from './compile/data/compilable-data';
|
|
28
29
|
export * from './animation';
|
package/types/mark/box-plot.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export declare class BoxPlotMark extends GlyphMark<IBoxPlotMarkSpec, {
|
|
|
13
13
|
direction?: 'horizontal' | 'vertical';
|
|
14
14
|
shaftShape?: BoxPlotShaftShape;
|
|
15
15
|
}): void;
|
|
16
|
+
setDataLabelType(): string;
|
|
16
17
|
protected _getDefaultStyle(): IMarkStyle<IBoxPlotMarkSpec>;
|
|
17
18
|
}
|
|
18
19
|
export declare const registerBoxPlotMark: () => void;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BaseSeriesSpecTransformer } from '../base';
|
|
2
|
+
import type { IBoxPlotSeriesSpec, IBoxPlotSeriesTheme } from './interface';
|
|
3
|
+
export declare class BoxPlotSeriesSpecTransformer<T extends IBoxPlotSeriesSpec = IBoxPlotSeriesSpec, K extends IBoxPlotSeriesTheme = IBoxPlotSeriesTheme> extends BaseSeriesSpecTransformer<T, K> {
|
|
4
|
+
protected _transformLabelSpec(spec: T): void;
|
|
5
|
+
}
|
|
@@ -4,8 +4,9 @@ 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 type { IMark } from '../../mark/interface';
|
|
7
|
+
import type { IMark, ITextMark } from '../../mark/interface';
|
|
8
8
|
import type { ICompilableData } from '../../compile/data';
|
|
9
|
+
import { BoxPlotSeriesSpecTransformer } from './box-plot-transformer';
|
|
9
10
|
export declare const DEFAULT_FILL_COLOR = "#FFF";
|
|
10
11
|
export declare const DEFAULT_STROKE_COLOR = "#000";
|
|
11
12
|
export declare class BoxPlotSeries<T extends IBoxPlotSeriesSpec = IBoxPlotSeriesSpec> extends CartesianSeries<T> {
|
|
@@ -15,6 +16,8 @@ export declare class BoxPlotSeries<T extends IBoxPlotSeriesSpec = IBoxPlotSeries
|
|
|
15
16
|
boxPlot: import("./interface").IBoxPlotSeriesTheme;
|
|
16
17
|
};
|
|
17
18
|
static readonly mark: SeriesMarkMap;
|
|
19
|
+
static readonly transformerConstructor: any;
|
|
20
|
+
readonly transformerConstructor: typeof BoxPlotSeriesSpecTransformer;
|
|
18
21
|
protected _bandPosition: number;
|
|
19
22
|
protected _minField: string;
|
|
20
23
|
getMinField(): string;
|
|
@@ -48,6 +51,7 @@ export declare class BoxPlotSeries<T extends IBoxPlotSeriesSpec = IBoxPlotSeries
|
|
|
48
51
|
initMark(): void;
|
|
49
52
|
initMarkStyle(): void;
|
|
50
53
|
initBoxPlotMarkStyle(): void;
|
|
54
|
+
initLabelMarkStyle(textMark: ITextMark): void;
|
|
51
55
|
initData(): void;
|
|
52
56
|
compileData(): void;
|
|
53
57
|
init(option: IModelInitOption): void;
|