@visactor/vchart-types 1.11.2-alpha.4 → 1.11.2
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 { IChartSpec } from '../../typings';
|
|
1
|
+
import type { IChartSpec, ISeriesSpec } from '../../typings';
|
|
2
2
|
import type { IChartSpecInfo, IChartSpecTransformer, IChartSpecTransformerOption } from '../interface';
|
|
3
3
|
import type { IModelConstructor, IModelSpecInfo } from '../../model/interface';
|
|
4
4
|
import type { IRegionConstructor } from '../../region/interface';
|
|
5
5
|
import type { ISeriesConstructor } from '../../series';
|
|
6
6
|
import type { IComponentConstructor } from '../../component/interface/common';
|
|
7
|
+
import type { ICartesianBandAxisSpec } from '../..//component/axis/cartesian/interface';
|
|
7
8
|
export declare class BaseChartSpecTransformer<T extends IChartSpec> implements IChartSpecTransformer {
|
|
8
9
|
readonly type: string;
|
|
9
10
|
readonly seriesType: string;
|
|
@@ -19,4 +20,11 @@ export declare class BaseChartSpecTransformer<T extends IChartSpec> implements I
|
|
|
19
20
|
forEachSeriesInSpec<K>(chartSpec: T, callbackfn: (constructor: ISeriesConstructor, specInfo: IModelSpecInfo, chartSpecInfo?: IChartSpecInfo) => K, chartSpecInfo?: IChartSpecInfo): K[];
|
|
20
21
|
forEachComponentInSpec<K>(chartSpec: T, callbackfn: (constructor: IComponentConstructor, specInfo: IModelSpecInfo, chartSpecInfo?: IChartSpecInfo) => K, chartSpecInfo?: IChartSpecInfo): K[];
|
|
21
22
|
transformSeriesSpec(spec: T): void;
|
|
23
|
+
protected _findBandAxisBySeries(seriesSpec: ISeriesSpec, seriesIndex: number, axesSpec: any): any;
|
|
24
|
+
protected _applyAxisBandSize(axis: ICartesianBandAxisSpec, extend: number, barWidthSpec: {
|
|
25
|
+
barMaxWidth: number | string;
|
|
26
|
+
barMinWidth: number | string;
|
|
27
|
+
barWidth: number | string;
|
|
28
|
+
barGapInGroup: number | string | (number | string)[];
|
|
29
|
+
}): void;
|
|
22
30
|
}
|
|
@@ -3,5 +3,6 @@ import { BaseChartSpecTransformer } from '../base';
|
|
|
3
3
|
import type { ICommonChartSpec } from './interface';
|
|
4
4
|
export declare class CommonChartSpecTransformer<T extends ICommonChartSpec = ICommonChartSpec> extends BaseChartSpecTransformer<AdaptiveSpec<T, 'series'>> {
|
|
5
5
|
protected _getDefaultSeriesSpec(spec: AdaptiveSpec<T, 'series'>): any;
|
|
6
|
+
protected _transformAxisSpec(spec: AdaptiveSpec<T, 'series'>): void;
|
|
6
7
|
transformSpec(spec: AdaptiveSpec<T, 'series'>): void;
|
|
7
8
|
}
|
|
@@ -38,4 +38,7 @@ export interface ICommonChartSpec extends Omit<IChartSpec, 'series'> {
|
|
|
38
38
|
markLine?: IMarkLineSpec | IMarkLineSpec[];
|
|
39
39
|
markArea?: IMarkAreaSpec | IMarkAreaSpec[];
|
|
40
40
|
markPoint?: IMarkPointSpec | IMarkPointSpec[];
|
|
41
|
+
autoBandSize?: boolean | {
|
|
42
|
+
extend: number;
|
|
43
|
+
};
|
|
41
44
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ISeriesSpec } from '../../typings/spec/common';
|
|
2
2
|
export interface IPolarSeriesSpec extends ISeriesSpec {
|
|
3
|
-
centerX?: number;
|
|
4
|
-
centerY?: number;
|
|
3
|
+
centerX?: number | string;
|
|
4
|
+
centerY?: number | string;
|
|
5
5
|
outerRadius?: number;
|
|
6
6
|
innerRadius?: number;
|
|
7
7
|
startAngle?: number;
|